Add -gstabs+ option if supported (based on a patch by Marcus
[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 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 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}ld", so it can be a program name with args.
4177 set dummy ${ac_tool_prefix}ld; 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_LD+set}" = set; then
4181   echo $ECHO_N "(cached) $ECHO_C" >&6
4182 else
4183   if test -n "$LD"; then
4184   ac_cv_prog_LD="$LD" # 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_LD="${ac_tool_prefix}ld"
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 LD=$ac_cv_prog_LD
4203 if test -n "$LD"; then
4204   echo "$as_me:$LINENO: result: $LD" >&5
4205 echo "${ECHO_T}$LD" >&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_LD"; then
4213   ac_ct_LD=$LD
4214   # Extract the first word of "ld", so it can be a program name with args.
4215 set dummy ld; 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_LD+set}" = set; then
4219   echo $ECHO_N "(cached) $ECHO_C" >&6
4220 else
4221   if test -n "$ac_ct_LD"; then
4222   ac_cv_prog_ac_ct_LD="$ac_ct_LD" # 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_LD="ld"
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_LD" && ac_cv_prog_ac_ct_LD="ld"
4239 fi
4240 fi
4241 ac_ct_LD=$ac_cv_prog_ac_ct_LD
4242 if test -n "$ac_ct_LD"; then
4243   echo "$as_me:$LINENO: result: $ac_ct_LD" >&5
4244 echo "${ECHO_T}$ac_ct_LD" >&6
4245 else
4246   echo "$as_me:$LINENO: result: no" >&5
4247 echo "${ECHO_T}no" >&6
4248 fi
4249
4250   LD=$ac_ct_LD
4251 else
4252   LD="$ac_cv_prog_LD"
4253 fi
4254
4255 if test -n "$ac_tool_prefix"; then
4256   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4257 set dummy ${ac_tool_prefix}ar; 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_AR+set}" = set; then
4261   echo $ECHO_N "(cached) $ECHO_C" >&6
4262 else
4263   if test -n "$AR"; then
4264   ac_cv_prog_AR="$AR" # 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_AR="${ac_tool_prefix}ar"
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 AR=$ac_cv_prog_AR
4283 if test -n "$AR"; then
4284   echo "$as_me:$LINENO: result: $AR" >&5
4285 echo "${ECHO_T}$AR" >&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_AR"; then
4293   ac_ct_AR=$AR
4294   # Extract the first word of "ar", so it can be a program name with args.
4295 set dummy ar; 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_AR+set}" = set; then
4299   echo $ECHO_N "(cached) $ECHO_C" >&6
4300 else
4301   if test -n "$ac_ct_AR"; then
4302   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # 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_AR="ar"
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_AR" && ac_cv_prog_ac_ct_AR="ar"
4319 fi
4320 fi
4321 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4322 if test -n "$ac_ct_AR"; then
4323   echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
4324 echo "${ECHO_T}$ac_ct_AR" >&6
4325 else
4326   echo "$as_me:$LINENO: result: no" >&5
4327 echo "${ECHO_T}no" >&6
4328 fi
4329
4330   AR=$ac_ct_AR
4331 else
4332   AR="$ac_cv_prog_AR"
4333 fi
4334
4335 if test -n "$ac_tool_prefix"; then
4336   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4337 set dummy ${ac_tool_prefix}ranlib; 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_RANLIB+set}" = set; then
4341   echo $ECHO_N "(cached) $ECHO_C" >&6
4342 else
4343   if test -n "$RANLIB"; then
4344   ac_cv_prog_RANLIB="$RANLIB" # 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_RANLIB="${ac_tool_prefix}ranlib"
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 RANLIB=$ac_cv_prog_RANLIB
4363 if test -n "$RANLIB"; then
4364   echo "$as_me:$LINENO: result: $RANLIB" >&5
4365 echo "${ECHO_T}$RANLIB" >&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_RANLIB"; then
4373   ac_ct_RANLIB=$RANLIB
4374   # Extract the first word of "ranlib", so it can be a program name with args.
4375 set dummy ranlib; 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_RANLIB+set}" = set; then
4379   echo $ECHO_N "(cached) $ECHO_C" >&6
4380 else
4381   if test -n "$ac_ct_RANLIB"; then
4382   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # 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_RANLIB="ranlib"
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_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4399 fi
4400 fi
4401 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4402 if test -n "$ac_ct_RANLIB"; then
4403   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4404 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4405 else
4406   echo "$as_me:$LINENO: result: no" >&5
4407 echo "${ECHO_T}no" >&6
4408 fi
4409
4410   RANLIB=$ac_ct_RANLIB
4411 else
4412   RANLIB="$ac_cv_prog_RANLIB"
4413 fi
4414
4415 if test -n "$ac_tool_prefix"; then
4416   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4417 set dummy ${ac_tool_prefix}strip; 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_STRIP+set}" = set; then
4421   echo $ECHO_N "(cached) $ECHO_C" >&6
4422 else
4423   if test -n "$STRIP"; then
4424   ac_cv_prog_STRIP="$STRIP" # 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_STRIP="${ac_tool_prefix}strip"
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 STRIP=$ac_cv_prog_STRIP
4443 if test -n "$STRIP"; then
4444   echo "$as_me:$LINENO: result: $STRIP" >&5
4445 echo "${ECHO_T}$STRIP" >&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_STRIP"; then
4453   ac_ct_STRIP=$STRIP
4454   # Extract the first word of "strip", so it can be a program name with args.
4455 set dummy strip; 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_STRIP+set}" = set; then
4459   echo $ECHO_N "(cached) $ECHO_C" >&6
4460 else
4461   if test -n "$ac_ct_STRIP"; then
4462   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # 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_STRIP="strip"
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_STRIP" && ac_cv_prog_ac_ct_STRIP="strip"
4479 fi
4480 fi
4481 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4482 if test -n "$ac_ct_STRIP"; then
4483   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4484 echo "${ECHO_T}$ac_ct_STRIP" >&6
4485 else
4486   echo "$as_me:$LINENO: result: no" >&5
4487 echo "${ECHO_T}no" >&6
4488 fi
4489
4490   STRIP=$ac_ct_STRIP
4491 else
4492   STRIP="$ac_cv_prog_STRIP"
4493 fi
4494
4495 if test -n "$ac_tool_prefix"; then
4496   # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
4497 set dummy ${ac_tool_prefix}windres; 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_WINDRES+set}" = set; then
4501   echo $ECHO_N "(cached) $ECHO_C" >&6
4502 else
4503   if test -n "$WINDRES"; then
4504   ac_cv_prog_WINDRES="$WINDRES" # 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_WINDRES="${ac_tool_prefix}windres"
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 WINDRES=$ac_cv_prog_WINDRES
4523 if test -n "$WINDRES"; then
4524   echo "$as_me:$LINENO: result: $WINDRES" >&5
4525 echo "${ECHO_T}$WINDRES" >&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_WINDRES"; then
4533   ac_ct_WINDRES=$WINDRES
4534   # Extract the first word of "windres", so it can be a program name with args.
4535 set dummy windres; 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_WINDRES+set}" = set; then
4539   echo $ECHO_N "(cached) $ECHO_C" >&6
4540 else
4541   if test -n "$ac_ct_WINDRES"; then
4542   ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # 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_WINDRES="windres"
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_WINDRES" && ac_cv_prog_ac_ct_WINDRES="false"
4559 fi
4560 fi
4561 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
4562 if test -n "$ac_ct_WINDRES"; then
4563   echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
4564 echo "${ECHO_T}$ac_ct_WINDRES" >&6
4565 else
4566   echo "$as_me:$LINENO: result: no" >&5
4567 echo "${ECHO_T}no" >&6
4568 fi
4569
4570   WINDRES=$ac_ct_WINDRES
4571 else
4572   WINDRES="$ac_cv_prog_WINDRES"
4573 fi
4574
4575 echo "$as_me:$LINENO: checking whether ln -s works" >&5
4576 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4577 LN_S=$as_ln_s
4578 if test "$LN_S" = "ln -s"; then
4579   echo "$as_me:$LINENO: result: yes" >&5
4580 echo "${ECHO_T}yes" >&6
4581 else
4582   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4583 echo "${ECHO_T}no, using $LN_S" >&6
4584 fi
4585
4586 echo "$as_me:$LINENO: checking whether ln works" >&5
4587 echo $ECHO_N "checking whether ln works... $ECHO_C" >&6
4588 rm -f conf$$ conf$$.file
4589 echo >conf$$.file
4590 if ln conf$$.file conf$$ 2>/dev/null; then
4591   LN=ln
4592
4593   echo "$as_me:$LINENO: result: yes" >&5
4594 echo "${ECHO_T}yes" >&6
4595 else
4596   LN="cp -p"
4597
4598   echo "$as_me:$LINENO: result: no, using $LN" >&5
4599 echo "${ECHO_T}no, using $LN" >&6
4600 fi
4601 rm -f conf$$ conf$$.file
4602 # Extract the first word of "c2man", so it can be a program name with args.
4603 set dummy c2man; ac_word=$2
4604 echo "$as_me:$LINENO: checking for $ac_word" >&5
4605 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4606 if test "${ac_cv_prog_C2MAN+set}" = set; then
4607   echo $ECHO_N "(cached) $ECHO_C" >&6
4608 else
4609   if test -n "$C2MAN"; then
4610   ac_cv_prog_C2MAN="$C2MAN" # Let the user override the test.
4611 else
4612 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4613 for as_dir in $PATH
4614 do
4615   IFS=$as_save_IFS
4616   test -z "$as_dir" && as_dir=.
4617   for ac_exec_ext in '' $ac_executable_extensions; do
4618   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4619     ac_cv_prog_C2MAN="c2man"
4620     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4621     break 2
4622   fi
4623 done
4624 done
4625
4626   test -z "$ac_cv_prog_C2MAN" && ac_cv_prog_C2MAN="\$(TOPSRCDIR)/tools/c2man.pl"
4627 fi
4628 fi
4629 C2MAN=$ac_cv_prog_C2MAN
4630 if test -n "$C2MAN"; then
4631   echo "$as_me:$LINENO: result: $C2MAN" >&5
4632 echo "${ECHO_T}$C2MAN" >&6
4633 else
4634   echo "$as_me:$LINENO: result: no" >&5
4635 echo "${ECHO_T}no" >&6
4636 fi
4637
4638 # Extract the first word of "ldconfig", so it can be a program name with args.
4639 set dummy ldconfig; ac_word=$2
4640 echo "$as_me:$LINENO: checking for $ac_word" >&5
4641 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4642 if test "${ac_cv_path_LDCONFIG+set}" = set; then
4643   echo $ECHO_N "(cached) $ECHO_C" >&6
4644 else
4645   case $LDCONFIG in
4646   [\\/]* | ?:[\\/]*)
4647   ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
4648   ;;
4649   *)
4650   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4651 for as_dir in /sbin /usr/sbin $PATH
4652 do
4653   IFS=$as_save_IFS
4654   test -z "$as_dir" && as_dir=.
4655   for ac_exec_ext in '' $ac_executable_extensions; do
4656   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4657     ac_cv_path_LDCONFIG="$as_dir/$ac_word$ac_exec_ext"
4658     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4659     break 2
4660   fi
4661 done
4662 done
4663
4664   test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG="true"
4665   ;;
4666 esac
4667 fi
4668 LDCONFIG=$ac_cv_path_LDCONFIG
4669
4670 if test -n "$LDCONFIG"; then
4671   echo "$as_me:$LINENO: result: $LDCONFIG" >&5
4672 echo "${ECHO_T}$LDCONFIG" >&6
4673 else
4674   echo "$as_me:$LINENO: result: no" >&5
4675 echo "${ECHO_T}no" >&6
4676 fi
4677
4678 # Find a good install program.  We prefer a C program (faster),
4679 # so one script is as good as another.  But avoid the broken or
4680 # incompatible versions:
4681 # SysV /etc/install, /usr/sbin/install
4682 # SunOS /usr/etc/install
4683 # IRIX /sbin/install
4684 # AIX /bin/install
4685 # AmigaOS /C/install, which installs bootblocks on floppy discs
4686 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4687 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4688 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4689 # ./install, which can be erroneously created by make from ./install.sh.
4690 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4691 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
4692 if test -z "$INSTALL"; then
4693 if test "${ac_cv_path_install+set}" = set; then
4694   echo $ECHO_N "(cached) $ECHO_C" >&6
4695 else
4696   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4697 for as_dir in $PATH
4698 do
4699   IFS=$as_save_IFS
4700   test -z "$as_dir" && as_dir=.
4701   # Account for people who put trailing slashes in PATH elements.
4702 case $as_dir/ in
4703   ./ | .// | /cC/* | \
4704   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4705   /usr/ucb/* ) ;;
4706   *)
4707     # OSF1 and SCO ODT 3.0 have their own names for install.
4708     # Don't use installbsd from OSF since it installs stuff as root
4709     # by default.
4710     for ac_prog in ginstall scoinst install; do
4711       for ac_exec_ext in '' $ac_executable_extensions; do
4712         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4713           if test $ac_prog = install &&
4714             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4715             # AIX install.  It has an incompatible calling convention.
4716             :
4717           elif test $ac_prog = install &&
4718             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4719             # program-specific install script used by HP pwplus--don't use.
4720             :
4721           else
4722             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4723             break 3
4724           fi
4725         fi
4726       done
4727     done
4728     ;;
4729 esac
4730 done
4731
4732
4733 fi
4734   if test "${ac_cv_path_install+set}" = set; then
4735     INSTALL=$ac_cv_path_install
4736   else
4737     # As a last resort, use the slow shell script.  We don't cache a
4738     # path for INSTALL within a source directory, because that will
4739     # break other packages using the cache if that directory is
4740     # removed, or if the path is relative.
4741     INSTALL=$ac_install_sh
4742   fi
4743 fi
4744 echo "$as_me:$LINENO: result: $INSTALL" >&5
4745 echo "${ECHO_T}$INSTALL" >&6
4746
4747 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4748 # It thinks the first close brace ends the variable substitution.
4749 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4750
4751 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4752
4753 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4754
4755 case "$INSTALL" in
4756   [\\/$]* | ?:[\\/]* ) ;;
4757   *)  INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;;
4758 esac
4759
4760 for ac_prog in lclint lint
4761 do
4762   # Extract the first word of "$ac_prog", so it can be a program name with args.
4763 set dummy $ac_prog; ac_word=$2
4764 echo "$as_me:$LINENO: checking for $ac_word" >&5
4765 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4766 if test "${ac_cv_prog_LINT+set}" = set; then
4767   echo $ECHO_N "(cached) $ECHO_C" >&6
4768 else
4769   if test -n "$LINT"; then
4770   ac_cv_prog_LINT="$LINT" # Let the user override the test.
4771 else
4772 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4773 for as_dir in $PATH
4774 do
4775   IFS=$as_save_IFS
4776   test -z "$as_dir" && as_dir=.
4777   for ac_exec_ext in '' $ac_executable_extensions; do
4778   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4779     ac_cv_prog_LINT="$ac_prog"
4780     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4781     break 2
4782   fi
4783 done
4784 done
4785
4786 fi
4787 fi
4788 LINT=$ac_cv_prog_LINT
4789 if test -n "$LINT"; then
4790   echo "$as_me:$LINENO: result: $LINT" >&5
4791 echo "${ECHO_T}$LINT" >&6
4792 else
4793   echo "$as_me:$LINENO: result: no" >&5
4794 echo "${ECHO_T}no" >&6
4795 fi
4796
4797   test -n "$LINT" && break
4798 done
4799
4800 if test "$LINT" = "lint"
4801 then
4802   LINTFLAGS="$LINTFLAGS -errchk=%all,no%longptr64 -errhdr=%user -Ncheck=macro -Nlevel=4"
4803   fi
4804
4805
4806
4807 for ac_prog in docbook2html db2html
4808 do
4809   # Extract the first word of "$ac_prog", so it can be a program name with args.
4810 set dummy $ac_prog; ac_word=$2
4811 echo "$as_me:$LINENO: checking for $ac_word" >&5
4812 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4813 if test "${ac_cv_prog_DB2HTML+set}" = set; then
4814   echo $ECHO_N "(cached) $ECHO_C" >&6
4815 else
4816   if test -n "$DB2HTML"; then
4817   ac_cv_prog_DB2HTML="$DB2HTML" # Let the user override the test.
4818 else
4819 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4820 for as_dir in $PATH
4821 do
4822   IFS=$as_save_IFS
4823   test -z "$as_dir" && as_dir=.
4824   for ac_exec_ext in '' $ac_executable_extensions; do
4825   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4826     ac_cv_prog_DB2HTML="$ac_prog"
4827     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4828     break 2
4829   fi
4830 done
4831 done
4832
4833 fi
4834 fi
4835 DB2HTML=$ac_cv_prog_DB2HTML
4836 if test -n "$DB2HTML"; then
4837   echo "$as_me:$LINENO: result: $DB2HTML" >&5
4838 echo "${ECHO_T}$DB2HTML" >&6
4839 else
4840   echo "$as_me:$LINENO: result: no" >&5
4841 echo "${ECHO_T}no" >&6
4842 fi
4843
4844   test -n "$DB2HTML" && break
4845 done
4846 test -n "$DB2HTML" || DB2HTML="false"
4847
4848
4849
4850 for ac_prog in docbook2pdf db2pdf
4851 do
4852   # Extract the first word of "$ac_prog", so it can be a program name with args.
4853 set dummy $ac_prog; ac_word=$2
4854 echo "$as_me:$LINENO: checking for $ac_word" >&5
4855 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4856 if test "${ac_cv_prog_DB2PDF+set}" = set; then
4857   echo $ECHO_N "(cached) $ECHO_C" >&6
4858 else
4859   if test -n "$DB2PDF"; then
4860   ac_cv_prog_DB2PDF="$DB2PDF" # Let the user override the test.
4861 else
4862 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4863 for as_dir in $PATH
4864 do
4865   IFS=$as_save_IFS
4866   test -z "$as_dir" && as_dir=.
4867   for ac_exec_ext in '' $ac_executable_extensions; do
4868   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4869     ac_cv_prog_DB2PDF="$ac_prog"
4870     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4871     break 2
4872   fi
4873 done
4874 done
4875
4876 fi
4877 fi
4878 DB2PDF=$ac_cv_prog_DB2PDF
4879 if test -n "$DB2PDF"; then
4880   echo "$as_me:$LINENO: result: $DB2PDF" >&5
4881 echo "${ECHO_T}$DB2PDF" >&6
4882 else
4883   echo "$as_me:$LINENO: result: no" >&5
4884 echo "${ECHO_T}no" >&6
4885 fi
4886
4887   test -n "$DB2PDF" && break
4888 done
4889 test -n "$DB2PDF" || DB2PDF="false"
4890
4891
4892
4893 for ac_prog in docbook2ps db2ps
4894 do
4895   # Extract the first word of "$ac_prog", so it can be a program name with args.
4896 set dummy $ac_prog; ac_word=$2
4897 echo "$as_me:$LINENO: checking for $ac_word" >&5
4898 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4899 if test "${ac_cv_prog_DB2PS+set}" = set; then
4900   echo $ECHO_N "(cached) $ECHO_C" >&6
4901 else
4902   if test -n "$DB2PS"; then
4903   ac_cv_prog_DB2PS="$DB2PS" # Let the user override the test.
4904 else
4905 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4906 for as_dir in $PATH
4907 do
4908   IFS=$as_save_IFS
4909   test -z "$as_dir" && as_dir=.
4910   for ac_exec_ext in '' $ac_executable_extensions; do
4911   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4912     ac_cv_prog_DB2PS="$ac_prog"
4913     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4914     break 2
4915   fi
4916 done
4917 done
4918
4919 fi
4920 fi
4921 DB2PS=$ac_cv_prog_DB2PS
4922 if test -n "$DB2PS"; then
4923   echo "$as_me:$LINENO: result: $DB2PS" >&5
4924 echo "${ECHO_T}$DB2PS" >&6
4925 else
4926   echo "$as_me:$LINENO: result: no" >&5
4927 echo "${ECHO_T}no" >&6
4928 fi
4929
4930   test -n "$DB2PS" && break
4931 done
4932 test -n "$DB2PS" || DB2PS="false"
4933
4934
4935
4936
4937
4938 echo "$as_me:$LINENO: checking for sqrt in -lm" >&5
4939 echo $ECHO_N "checking for sqrt in -lm... $ECHO_C" >&6
4940 if test "${ac_cv_lib_m_sqrt+set}" = set; then
4941   echo $ECHO_N "(cached) $ECHO_C" >&6
4942 else
4943   ac_check_lib_save_LIBS=$LIBS
4944 LIBS="-lm  $LIBS"
4945 cat >conftest.$ac_ext <<_ACEOF
4946 #line $LINENO "configure"
4947 /* confdefs.h.  */
4948 _ACEOF
4949 cat confdefs.h >>conftest.$ac_ext
4950 cat >>conftest.$ac_ext <<_ACEOF
4951 /* end confdefs.h.  */
4952
4953 /* Override any gcc2 internal prototype to avoid an error.  */
4954 #ifdef __cplusplus
4955 extern "C"
4956 #endif
4957 /* We use char because int might match the return type of a gcc2
4958    builtin and then its argument prototype would still apply.  */
4959 char sqrt ();
4960 int
4961 main ()
4962 {
4963 sqrt ();
4964   ;
4965   return 0;
4966 }
4967 _ACEOF
4968 rm -f conftest.$ac_objext conftest$ac_exeext
4969 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4970   (eval $ac_link) 2>&5
4971   ac_status=$?
4972   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4973   (exit $ac_status); } &&
4974          { ac_try='test -s conftest$ac_exeext'
4975   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4976   (eval $ac_try) 2>&5
4977   ac_status=$?
4978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4979   (exit $ac_status); }; }; then
4980   ac_cv_lib_m_sqrt=yes
4981 else
4982   echo "$as_me: failed program was:" >&5
4983 sed 's/^/| /' conftest.$ac_ext >&5
4984
4985 ac_cv_lib_m_sqrt=no
4986 fi
4987 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4988 LIBS=$ac_check_lib_save_LIBS
4989 fi
4990 echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrt" >&5
4991 echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6
4992 if test $ac_cv_lib_m_sqrt = yes; then
4993   cat >>confdefs.h <<_ACEOF
4994 #define HAVE_LIBM 1
4995 _ACEOF
4996
4997   LIBS="-lm $LIBS"
4998
4999 fi
5000
5001
5002 echo "$as_me:$LINENO: checking for i386_set_ldt in -li386" >&5
5003 echo $ECHO_N "checking for i386_set_ldt in -li386... $ECHO_C" >&6
5004 if test "${ac_cv_lib_i386_i386_set_ldt+set}" = set; then
5005   echo $ECHO_N "(cached) $ECHO_C" >&6
5006 else
5007   ac_check_lib_save_LIBS=$LIBS
5008 LIBS="-li386  $LIBS"
5009 cat >conftest.$ac_ext <<_ACEOF
5010 #line $LINENO "configure"
5011 /* confdefs.h.  */
5012 _ACEOF
5013 cat confdefs.h >>conftest.$ac_ext
5014 cat >>conftest.$ac_ext <<_ACEOF
5015 /* end confdefs.h.  */
5016
5017 /* Override any gcc2 internal prototype to avoid an error.  */
5018 #ifdef __cplusplus
5019 extern "C"
5020 #endif
5021 /* We use char because int might match the return type of a gcc2
5022    builtin and then its argument prototype would still apply.  */
5023 char i386_set_ldt ();
5024 int
5025 main ()
5026 {
5027 i386_set_ldt ();
5028   ;
5029   return 0;
5030 }
5031 _ACEOF
5032 rm -f conftest.$ac_objext conftest$ac_exeext
5033 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5034   (eval $ac_link) 2>&5
5035   ac_status=$?
5036   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5037   (exit $ac_status); } &&
5038          { ac_try='test -s conftest$ac_exeext'
5039   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5040   (eval $ac_try) 2>&5
5041   ac_status=$?
5042   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5043   (exit $ac_status); }; }; then
5044   ac_cv_lib_i386_i386_set_ldt=yes
5045 else
5046   echo "$as_me: failed program was:" >&5
5047 sed 's/^/| /' conftest.$ac_ext >&5
5048
5049 ac_cv_lib_i386_i386_set_ldt=no
5050 fi
5051 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5052 LIBS=$ac_check_lib_save_LIBS
5053 fi
5054 echo "$as_me:$LINENO: result: $ac_cv_lib_i386_i386_set_ldt" >&5
5055 echo "${ECHO_T}$ac_cv_lib_i386_i386_set_ldt" >&6
5056 if test $ac_cv_lib_i386_i386_set_ldt = yes; then
5057   cat >>confdefs.h <<_ACEOF
5058 #define HAVE_LIBI386 1
5059 _ACEOF
5060
5061   LIBS="-li386 $LIBS"
5062
5063 fi
5064
5065
5066 echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5
5067 echo $ECHO_N "checking for _oss_ioctl in -lossaudio... $ECHO_C" >&6
5068 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then
5069   echo $ECHO_N "(cached) $ECHO_C" >&6
5070 else
5071   ac_check_lib_save_LIBS=$LIBS
5072 LIBS="-lossaudio  $LIBS"
5073 cat >conftest.$ac_ext <<_ACEOF
5074 #line $LINENO "configure"
5075 /* confdefs.h.  */
5076 _ACEOF
5077 cat confdefs.h >>conftest.$ac_ext
5078 cat >>conftest.$ac_ext <<_ACEOF
5079 /* end confdefs.h.  */
5080
5081 /* Override any gcc2 internal prototype to avoid an error.  */
5082 #ifdef __cplusplus
5083 extern "C"
5084 #endif
5085 /* We use char because int might match the return type of a gcc2
5086    builtin and then its argument prototype would still apply.  */
5087 char _oss_ioctl ();
5088 int
5089 main ()
5090 {
5091 _oss_ioctl ();
5092   ;
5093   return 0;
5094 }
5095 _ACEOF
5096 rm -f conftest.$ac_objext conftest$ac_exeext
5097 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5098   (eval $ac_link) 2>&5
5099   ac_status=$?
5100   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5101   (exit $ac_status); } &&
5102          { ac_try='test -s conftest$ac_exeext'
5103   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5104   (eval $ac_try) 2>&5
5105   ac_status=$?
5106   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5107   (exit $ac_status); }; }; then
5108   ac_cv_lib_ossaudio__oss_ioctl=yes
5109 else
5110   echo "$as_me: failed program was:" >&5
5111 sed 's/^/| /' conftest.$ac_ext >&5
5112
5113 ac_cv_lib_ossaudio__oss_ioctl=no
5114 fi
5115 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5116 LIBS=$ac_check_lib_save_LIBS
5117 fi
5118 echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
5119 echo "${ECHO_T}$ac_cv_lib_ossaudio__oss_ioctl" >&6
5120 if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then
5121   cat >>confdefs.h <<_ACEOF
5122 #define HAVE_LIBOSSAUDIO 1
5123 _ACEOF
5124
5125   LIBS="-lossaudio $LIBS"
5126
5127 fi
5128
5129
5130 for ac_func in iswalnum
5131 do
5132 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5133 echo "$as_me:$LINENO: checking for $ac_func" >&5
5134 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5135 if eval "test \"\${$as_ac_var+set}\" = set"; then
5136   echo $ECHO_N "(cached) $ECHO_C" >&6
5137 else
5138   cat >conftest.$ac_ext <<_ACEOF
5139 #line $LINENO "configure"
5140 /* confdefs.h.  */
5141 _ACEOF
5142 cat confdefs.h >>conftest.$ac_ext
5143 cat >>conftest.$ac_ext <<_ACEOF
5144 /* end confdefs.h.  */
5145 /* System header to define __stub macros and hopefully few prototypes,
5146     which can conflict with char $ac_func (); below.
5147     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5148     <limits.h> exists even on freestanding compilers.  */
5149 #ifdef __STDC__
5150 # include <limits.h>
5151 #else
5152 # include <assert.h>
5153 #endif
5154 /* Override any gcc2 internal prototype to avoid an error.  */
5155 #ifdef __cplusplus
5156 extern "C"
5157 {
5158 #endif
5159 /* We use char because int might match the return type of a gcc2
5160    builtin and then its argument prototype would still apply.  */
5161 char $ac_func ();
5162 /* The GNU C library defines this for functions which it implements
5163     to always fail with ENOSYS.  Some functions are actually named
5164     something starting with __ and the normal name is an alias.  */
5165 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5166 choke me
5167 #else
5168 char (*f) () = $ac_func;
5169 #endif
5170 #ifdef __cplusplus
5171 }
5172 #endif
5173
5174 int
5175 main ()
5176 {
5177 return f != $ac_func;
5178   ;
5179   return 0;
5180 }
5181 _ACEOF
5182 rm -f conftest.$ac_objext conftest$ac_exeext
5183 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5184   (eval $ac_link) 2>&5
5185   ac_status=$?
5186   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5187   (exit $ac_status); } &&
5188          { ac_try='test -s conftest$ac_exeext'
5189   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5190   (eval $ac_try) 2>&5
5191   ac_status=$?
5192   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5193   (exit $ac_status); }; }; then
5194   eval "$as_ac_var=yes"
5195 else
5196   echo "$as_me: failed program was:" >&5
5197 sed 's/^/| /' conftest.$ac_ext >&5
5198
5199 eval "$as_ac_var=no"
5200 fi
5201 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5202 fi
5203 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5204 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5205 if test `eval echo '${'$as_ac_var'}'` = yes; then
5206   cat >>confdefs.h <<_ACEOF
5207 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5208 _ACEOF
5209
5210 else
5211
5212 echo "$as_me:$LINENO: checking for iswalnum in -lw" >&5
5213 echo $ECHO_N "checking for iswalnum in -lw... $ECHO_C" >&6
5214 if test "${ac_cv_lib_w_iswalnum+set}" = set; then
5215   echo $ECHO_N "(cached) $ECHO_C" >&6
5216 else
5217   ac_check_lib_save_LIBS=$LIBS
5218 LIBS="-lw  $LIBS"
5219 cat >conftest.$ac_ext <<_ACEOF
5220 #line $LINENO "configure"
5221 /* confdefs.h.  */
5222 _ACEOF
5223 cat confdefs.h >>conftest.$ac_ext
5224 cat >>conftest.$ac_ext <<_ACEOF
5225 /* end confdefs.h.  */
5226
5227 /* Override any gcc2 internal prototype to avoid an error.  */
5228 #ifdef __cplusplus
5229 extern "C"
5230 #endif
5231 /* We use char because int might match the return type of a gcc2
5232    builtin and then its argument prototype would still apply.  */
5233 char iswalnum ();
5234 int
5235 main ()
5236 {
5237 iswalnum ();
5238   ;
5239   return 0;
5240 }
5241 _ACEOF
5242 rm -f conftest.$ac_objext conftest$ac_exeext
5243 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5244   (eval $ac_link) 2>&5
5245   ac_status=$?
5246   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5247   (exit $ac_status); } &&
5248          { ac_try='test -s conftest$ac_exeext'
5249   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5250   (eval $ac_try) 2>&5
5251   ac_status=$?
5252   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5253   (exit $ac_status); }; }; then
5254   ac_cv_lib_w_iswalnum=yes
5255 else
5256   echo "$as_me: failed program was:" >&5
5257 sed 's/^/| /' conftest.$ac_ext >&5
5258
5259 ac_cv_lib_w_iswalnum=no
5260 fi
5261 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5262 LIBS=$ac_check_lib_save_LIBS
5263 fi
5264 echo "$as_me:$LINENO: result: $ac_cv_lib_w_iswalnum" >&5
5265 echo "${ECHO_T}$ac_cv_lib_w_iswalnum" >&6
5266 if test $ac_cv_lib_w_iswalnum = yes; then
5267   cat >>confdefs.h <<_ACEOF
5268 #define HAVE_LIBW 1
5269 _ACEOF
5270
5271   LIBS="-lw $LIBS"
5272
5273 fi
5274
5275 fi
5276 done
5277
5278
5279 for ac_func in gethostbyname
5280 do
5281 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5282 echo "$as_me:$LINENO: checking for $ac_func" >&5
5283 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5284 if eval "test \"\${$as_ac_var+set}\" = set"; then
5285   echo $ECHO_N "(cached) $ECHO_C" >&6
5286 else
5287   cat >conftest.$ac_ext <<_ACEOF
5288 #line $LINENO "configure"
5289 /* confdefs.h.  */
5290 _ACEOF
5291 cat confdefs.h >>conftest.$ac_ext
5292 cat >>conftest.$ac_ext <<_ACEOF
5293 /* end confdefs.h.  */
5294 /* System header to define __stub macros and hopefully few prototypes,
5295     which can conflict with char $ac_func (); below.
5296     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5297     <limits.h> exists even on freestanding compilers.  */
5298 #ifdef __STDC__
5299 # include <limits.h>
5300 #else
5301 # include <assert.h>
5302 #endif
5303 /* Override any gcc2 internal prototype to avoid an error.  */
5304 #ifdef __cplusplus
5305 extern "C"
5306 {
5307 #endif
5308 /* We use char because int might match the return type of a gcc2
5309    builtin and then its argument prototype would still apply.  */
5310 char $ac_func ();
5311 /* The GNU C library defines this for functions which it implements
5312     to always fail with ENOSYS.  Some functions are actually named
5313     something starting with __ and the normal name is an alias.  */
5314 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5315 choke me
5316 #else
5317 char (*f) () = $ac_func;
5318 #endif
5319 #ifdef __cplusplus
5320 }
5321 #endif
5322
5323 int
5324 main ()
5325 {
5326 return f != $ac_func;
5327   ;
5328   return 0;
5329 }
5330 _ACEOF
5331 rm -f conftest.$ac_objext conftest$ac_exeext
5332 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5333   (eval $ac_link) 2>&5
5334   ac_status=$?
5335   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5336   (exit $ac_status); } &&
5337          { ac_try='test -s conftest$ac_exeext'
5338   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5339   (eval $ac_try) 2>&5
5340   ac_status=$?
5341   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5342   (exit $ac_status); }; }; then
5343   eval "$as_ac_var=yes"
5344 else
5345   echo "$as_me: failed program was:" >&5
5346 sed 's/^/| /' conftest.$ac_ext >&5
5347
5348 eval "$as_ac_var=no"
5349 fi
5350 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5351 fi
5352 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5353 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5354 if test `eval echo '${'$as_ac_var'}'` = yes; then
5355   cat >>confdefs.h <<_ACEOF
5356 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5357 _ACEOF
5358
5359 else
5360
5361 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
5362 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
5363 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
5364   echo $ECHO_N "(cached) $ECHO_C" >&6
5365 else
5366   ac_check_lib_save_LIBS=$LIBS
5367 LIBS="-lnsl  $LIBS"
5368 cat >conftest.$ac_ext <<_ACEOF
5369 #line $LINENO "configure"
5370 /* confdefs.h.  */
5371 _ACEOF
5372 cat confdefs.h >>conftest.$ac_ext
5373 cat >>conftest.$ac_ext <<_ACEOF
5374 /* end confdefs.h.  */
5375
5376 /* Override any gcc2 internal prototype to avoid an error.  */
5377 #ifdef __cplusplus
5378 extern "C"
5379 #endif
5380 /* We use char because int might match the return type of a gcc2
5381    builtin and then its argument prototype would still apply.  */
5382 char gethostbyname ();
5383 int
5384 main ()
5385 {
5386 gethostbyname ();
5387   ;
5388   return 0;
5389 }
5390 _ACEOF
5391 rm -f conftest.$ac_objext conftest$ac_exeext
5392 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5393   (eval $ac_link) 2>&5
5394   ac_status=$?
5395   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5396   (exit $ac_status); } &&
5397          { ac_try='test -s conftest$ac_exeext'
5398   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5399   (eval $ac_try) 2>&5
5400   ac_status=$?
5401   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5402   (exit $ac_status); }; }; then
5403   ac_cv_lib_nsl_gethostbyname=yes
5404 else
5405   echo "$as_me: failed program was:" >&5
5406 sed 's/^/| /' conftest.$ac_ext >&5
5407
5408 ac_cv_lib_nsl_gethostbyname=no
5409 fi
5410 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5411 LIBS=$ac_check_lib_save_LIBS
5412 fi
5413 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
5414 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
5415 if test $ac_cv_lib_nsl_gethostbyname = yes; then
5416   cat >>confdefs.h <<_ACEOF
5417 #define HAVE_LIBNSL 1
5418 _ACEOF
5419
5420   LIBS="-lnsl $LIBS"
5421
5422 fi
5423
5424 fi
5425 done
5426
5427
5428 for ac_func in connect
5429 do
5430 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5431 echo "$as_me:$LINENO: checking for $ac_func" >&5
5432 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5433 if eval "test \"\${$as_ac_var+set}\" = set"; then
5434   echo $ECHO_N "(cached) $ECHO_C" >&6
5435 else
5436   cat >conftest.$ac_ext <<_ACEOF
5437 #line $LINENO "configure"
5438 /* confdefs.h.  */
5439 _ACEOF
5440 cat confdefs.h >>conftest.$ac_ext
5441 cat >>conftest.$ac_ext <<_ACEOF
5442 /* end confdefs.h.  */
5443 /* System header to define __stub macros and hopefully few prototypes,
5444     which can conflict with char $ac_func (); below.
5445     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5446     <limits.h> exists even on freestanding compilers.  */
5447 #ifdef __STDC__
5448 # include <limits.h>
5449 #else
5450 # include <assert.h>
5451 #endif
5452 /* Override any gcc2 internal prototype to avoid an error.  */
5453 #ifdef __cplusplus
5454 extern "C"
5455 {
5456 #endif
5457 /* We use char because int might match the return type of a gcc2
5458    builtin and then its argument prototype would still apply.  */
5459 char $ac_func ();
5460 /* The GNU C library defines this for functions which it implements
5461     to always fail with ENOSYS.  Some functions are actually named
5462     something starting with __ and the normal name is an alias.  */
5463 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5464 choke me
5465 #else
5466 char (*f) () = $ac_func;
5467 #endif
5468 #ifdef __cplusplus
5469 }
5470 #endif
5471
5472 int
5473 main ()
5474 {
5475 return f != $ac_func;
5476   ;
5477   return 0;
5478 }
5479 _ACEOF
5480 rm -f conftest.$ac_objext conftest$ac_exeext
5481 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5482   (eval $ac_link) 2>&5
5483   ac_status=$?
5484   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5485   (exit $ac_status); } &&
5486          { ac_try='test -s conftest$ac_exeext'
5487   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5488   (eval $ac_try) 2>&5
5489   ac_status=$?
5490   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5491   (exit $ac_status); }; }; then
5492   eval "$as_ac_var=yes"
5493 else
5494   echo "$as_me: failed program was:" >&5
5495 sed 's/^/| /' conftest.$ac_ext >&5
5496
5497 eval "$as_ac_var=no"
5498 fi
5499 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5500 fi
5501 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5502 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5503 if test `eval echo '${'$as_ac_var'}'` = yes; then
5504   cat >>confdefs.h <<_ACEOF
5505 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5506 _ACEOF
5507
5508 else
5509
5510 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
5511 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
5512 if test "${ac_cv_lib_socket_connect+set}" = set; then
5513   echo $ECHO_N "(cached) $ECHO_C" >&6
5514 else
5515   ac_check_lib_save_LIBS=$LIBS
5516 LIBS="-lsocket  $LIBS"
5517 cat >conftest.$ac_ext <<_ACEOF
5518 #line $LINENO "configure"
5519 /* confdefs.h.  */
5520 _ACEOF
5521 cat confdefs.h >>conftest.$ac_ext
5522 cat >>conftest.$ac_ext <<_ACEOF
5523 /* end confdefs.h.  */
5524
5525 /* Override any gcc2 internal prototype to avoid an error.  */
5526 #ifdef __cplusplus
5527 extern "C"
5528 #endif
5529 /* We use char because int might match the return type of a gcc2
5530    builtin and then its argument prototype would still apply.  */
5531 char connect ();
5532 int
5533 main ()
5534 {
5535 connect ();
5536   ;
5537   return 0;
5538 }
5539 _ACEOF
5540 rm -f conftest.$ac_objext conftest$ac_exeext
5541 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5542   (eval $ac_link) 2>&5
5543   ac_status=$?
5544   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5545   (exit $ac_status); } &&
5546          { ac_try='test -s conftest$ac_exeext'
5547   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5548   (eval $ac_try) 2>&5
5549   ac_status=$?
5550   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5551   (exit $ac_status); }; }; then
5552   ac_cv_lib_socket_connect=yes
5553 else
5554   echo "$as_me: failed program was:" >&5
5555 sed 's/^/| /' conftest.$ac_ext >&5
5556
5557 ac_cv_lib_socket_connect=no
5558 fi
5559 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5560 LIBS=$ac_check_lib_save_LIBS
5561 fi
5562 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
5563 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
5564 if test $ac_cv_lib_socket_connect = yes; then
5565   cat >>confdefs.h <<_ACEOF
5566 #define HAVE_LIBSOCKET 1
5567 _ACEOF
5568
5569   LIBS="-lsocket $LIBS"
5570
5571 fi
5572
5573 fi
5574 done
5575
5576
5577 for ac_func in inet_aton
5578 do
5579 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5580 echo "$as_me:$LINENO: checking for $ac_func" >&5
5581 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5582 if eval "test \"\${$as_ac_var+set}\" = set"; then
5583   echo $ECHO_N "(cached) $ECHO_C" >&6
5584 else
5585   cat >conftest.$ac_ext <<_ACEOF
5586 #line $LINENO "configure"
5587 /* confdefs.h.  */
5588 _ACEOF
5589 cat confdefs.h >>conftest.$ac_ext
5590 cat >>conftest.$ac_ext <<_ACEOF
5591 /* end confdefs.h.  */
5592 /* System header to define __stub macros and hopefully few prototypes,
5593     which can conflict with char $ac_func (); below.
5594     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5595     <limits.h> exists even on freestanding compilers.  */
5596 #ifdef __STDC__
5597 # include <limits.h>
5598 #else
5599 # include <assert.h>
5600 #endif
5601 /* Override any gcc2 internal prototype to avoid an error.  */
5602 #ifdef __cplusplus
5603 extern "C"
5604 {
5605 #endif
5606 /* We use char because int might match the return type of a gcc2
5607    builtin and then its argument prototype would still apply.  */
5608 char $ac_func ();
5609 /* The GNU C library defines this for functions which it implements
5610     to always fail with ENOSYS.  Some functions are actually named
5611     something starting with __ and the normal name is an alias.  */
5612 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5613 choke me
5614 #else
5615 char (*f) () = $ac_func;
5616 #endif
5617 #ifdef __cplusplus
5618 }
5619 #endif
5620
5621 int
5622 main ()
5623 {
5624 return f != $ac_func;
5625   ;
5626   return 0;
5627 }
5628 _ACEOF
5629 rm -f conftest.$ac_objext conftest$ac_exeext
5630 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5631   (eval $ac_link) 2>&5
5632   ac_status=$?
5633   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5634   (exit $ac_status); } &&
5635          { ac_try='test -s conftest$ac_exeext'
5636   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5637   (eval $ac_try) 2>&5
5638   ac_status=$?
5639   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5640   (exit $ac_status); }; }; then
5641   eval "$as_ac_var=yes"
5642 else
5643   echo "$as_me: failed program was:" >&5
5644 sed 's/^/| /' conftest.$ac_ext >&5
5645
5646 eval "$as_ac_var=no"
5647 fi
5648 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5649 fi
5650 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5651 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5652 if test `eval echo '${'$as_ac_var'}'` = yes; then
5653   cat >>confdefs.h <<_ACEOF
5654 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5655 _ACEOF
5656
5657 else
5658
5659 echo "$as_me:$LINENO: checking for inet_aton in -lresolv" >&5
5660 echo $ECHO_N "checking for inet_aton in -lresolv... $ECHO_C" >&6
5661 if test "${ac_cv_lib_resolv_inet_aton+set}" = set; then
5662   echo $ECHO_N "(cached) $ECHO_C" >&6
5663 else
5664   ac_check_lib_save_LIBS=$LIBS
5665 LIBS="-lresolv  $LIBS"
5666 cat >conftest.$ac_ext <<_ACEOF
5667 #line $LINENO "configure"
5668 /* confdefs.h.  */
5669 _ACEOF
5670 cat confdefs.h >>conftest.$ac_ext
5671 cat >>conftest.$ac_ext <<_ACEOF
5672 /* end confdefs.h.  */
5673
5674 /* Override any gcc2 internal prototype to avoid an error.  */
5675 #ifdef __cplusplus
5676 extern "C"
5677 #endif
5678 /* We use char because int might match the return type of a gcc2
5679    builtin and then its argument prototype would still apply.  */
5680 char inet_aton ();
5681 int
5682 main ()
5683 {
5684 inet_aton ();
5685   ;
5686   return 0;
5687 }
5688 _ACEOF
5689 rm -f conftest.$ac_objext conftest$ac_exeext
5690 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5691   (eval $ac_link) 2>&5
5692   ac_status=$?
5693   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5694   (exit $ac_status); } &&
5695          { ac_try='test -s conftest$ac_exeext'
5696   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5697   (eval $ac_try) 2>&5
5698   ac_status=$?
5699   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5700   (exit $ac_status); }; }; then
5701   ac_cv_lib_resolv_inet_aton=yes
5702 else
5703   echo "$as_me: failed program was:" >&5
5704 sed 's/^/| /' conftest.$ac_ext >&5
5705
5706 ac_cv_lib_resolv_inet_aton=no
5707 fi
5708 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5709 LIBS=$ac_check_lib_save_LIBS
5710 fi
5711 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_aton" >&5
5712 echo "${ECHO_T}$ac_cv_lib_resolv_inet_aton" >&6
5713 if test $ac_cv_lib_resolv_inet_aton = yes; then
5714   cat >>confdefs.h <<_ACEOF
5715 #define HAVE_LIBRESOLV 1
5716 _ACEOF
5717
5718   LIBS="-lresolv $LIBS"
5719
5720 fi
5721
5722 fi
5723 done
5724
5725
5726 echo "$as_me:$LINENO: checking for _xpg4_setrunelocale in -lxpg4" >&5
5727 echo $ECHO_N "checking for _xpg4_setrunelocale in -lxpg4... $ECHO_C" >&6
5728 if test "${ac_cv_lib_xpg4__xpg4_setrunelocale+set}" = set; then
5729   echo $ECHO_N "(cached) $ECHO_C" >&6
5730 else
5731   ac_check_lib_save_LIBS=$LIBS
5732 LIBS="-lxpg4  $LIBS"
5733 cat >conftest.$ac_ext <<_ACEOF
5734 #line $LINENO "configure"
5735 /* confdefs.h.  */
5736 _ACEOF
5737 cat confdefs.h >>conftest.$ac_ext
5738 cat >>conftest.$ac_ext <<_ACEOF
5739 /* end confdefs.h.  */
5740
5741 /* Override any gcc2 internal prototype to avoid an error.  */
5742 #ifdef __cplusplus
5743 extern "C"
5744 #endif
5745 /* We use char because int might match the return type of a gcc2
5746    builtin and then its argument prototype would still apply.  */
5747 char _xpg4_setrunelocale ();
5748 int
5749 main ()
5750 {
5751 _xpg4_setrunelocale ();
5752   ;
5753   return 0;
5754 }
5755 _ACEOF
5756 rm -f conftest.$ac_objext conftest$ac_exeext
5757 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5758   (eval $ac_link) 2>&5
5759   ac_status=$?
5760   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5761   (exit $ac_status); } &&
5762          { ac_try='test -s conftest$ac_exeext'
5763   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5764   (eval $ac_try) 2>&5
5765   ac_status=$?
5766   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5767   (exit $ac_status); }; }; then
5768   ac_cv_lib_xpg4__xpg4_setrunelocale=yes
5769 else
5770   echo "$as_me: failed program was:" >&5
5771 sed 's/^/| /' conftest.$ac_ext >&5
5772
5773 ac_cv_lib_xpg4__xpg4_setrunelocale=no
5774 fi
5775 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5776 LIBS=$ac_check_lib_save_LIBS
5777 fi
5778 echo "$as_me:$LINENO: result: $ac_cv_lib_xpg4__xpg4_setrunelocale" >&5
5779 echo "${ECHO_T}$ac_cv_lib_xpg4__xpg4_setrunelocale" >&6
5780 if test $ac_cv_lib_xpg4__xpg4_setrunelocale = yes; then
5781   cat >>confdefs.h <<_ACEOF
5782 #define HAVE_LIBXPG4 1
5783 _ACEOF
5784
5785   LIBS="-lxpg4 $LIBS"
5786
5787 fi
5788
5789
5790 echo "$as_me:$LINENO: checking for mmap in -lmmap" >&5
5791 echo $ECHO_N "checking for mmap in -lmmap... $ECHO_C" >&6
5792 if test "${ac_cv_lib_mmap_mmap+set}" = set; then
5793   echo $ECHO_N "(cached) $ECHO_C" >&6
5794 else
5795   ac_check_lib_save_LIBS=$LIBS
5796 LIBS="-lmmap  $LIBS"
5797 cat >conftest.$ac_ext <<_ACEOF
5798 #line $LINENO "configure"
5799 /* confdefs.h.  */
5800 _ACEOF
5801 cat confdefs.h >>conftest.$ac_ext
5802 cat >>conftest.$ac_ext <<_ACEOF
5803 /* end confdefs.h.  */
5804
5805 /* Override any gcc2 internal prototype to avoid an error.  */
5806 #ifdef __cplusplus
5807 extern "C"
5808 #endif
5809 /* We use char because int might match the return type of a gcc2
5810    builtin and then its argument prototype would still apply.  */
5811 char mmap ();
5812 int
5813 main ()
5814 {
5815 mmap ();
5816   ;
5817   return 0;
5818 }
5819 _ACEOF
5820 rm -f conftest.$ac_objext conftest$ac_exeext
5821 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5822   (eval $ac_link) 2>&5
5823   ac_status=$?
5824   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5825   (exit $ac_status); } &&
5826          { ac_try='test -s conftest$ac_exeext'
5827   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5828   (eval $ac_try) 2>&5
5829   ac_status=$?
5830   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5831   (exit $ac_status); }; }; then
5832   ac_cv_lib_mmap_mmap=yes
5833 else
5834   echo "$as_me: failed program was:" >&5
5835 sed 's/^/| /' conftest.$ac_ext >&5
5836
5837 ac_cv_lib_mmap_mmap=no
5838 fi
5839 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5840 LIBS=$ac_check_lib_save_LIBS
5841 fi
5842 echo "$as_me:$LINENO: result: $ac_cv_lib_mmap_mmap" >&5
5843 echo "${ECHO_T}$ac_cv_lib_mmap_mmap" >&6
5844 if test $ac_cv_lib_mmap_mmap = yes; then
5845   cat >>confdefs.h <<_ACEOF
5846 #define HAVE_LIBMMAP 1
5847 _ACEOF
5848
5849   LIBS="-lmmap $LIBS"
5850
5851 fi
5852
5853
5854 JPEGLIB=""
5855
5856 echo "$as_me:$LINENO: checking for egrep" >&5
5857 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
5858 if test "${ac_cv_prog_egrep+set}" = set; then
5859   echo $ECHO_N "(cached) $ECHO_C" >&6
5860 else
5861   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
5862     then ac_cv_prog_egrep='grep -E'
5863     else ac_cv_prog_egrep='egrep'
5864     fi
5865 fi
5866 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
5867 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
5868  EGREP=$ac_cv_prog_egrep
5869
5870
5871 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5872 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5873 if test "${ac_cv_header_stdc+set}" = set; then
5874   echo $ECHO_N "(cached) $ECHO_C" >&6
5875 else
5876   cat >conftest.$ac_ext <<_ACEOF
5877 #line $LINENO "configure"
5878 /* confdefs.h.  */
5879 _ACEOF
5880 cat confdefs.h >>conftest.$ac_ext
5881 cat >>conftest.$ac_ext <<_ACEOF
5882 /* end confdefs.h.  */
5883 #include <stdlib.h>
5884 #include <stdarg.h>
5885 #include <string.h>
5886 #include <float.h>
5887
5888 int
5889 main ()
5890 {
5891
5892   ;
5893   return 0;
5894 }
5895 _ACEOF
5896 rm -f conftest.$ac_objext
5897 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5898   (eval $ac_compile) 2>&5
5899   ac_status=$?
5900   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5901   (exit $ac_status); } &&
5902          { ac_try='test -s conftest.$ac_objext'
5903   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5904   (eval $ac_try) 2>&5
5905   ac_status=$?
5906   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5907   (exit $ac_status); }; }; then
5908   ac_cv_header_stdc=yes
5909 else
5910   echo "$as_me: failed program was:" >&5
5911 sed 's/^/| /' conftest.$ac_ext >&5
5912
5913 ac_cv_header_stdc=no
5914 fi
5915 rm -f conftest.$ac_objext conftest.$ac_ext
5916
5917 if test $ac_cv_header_stdc = yes; then
5918   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5919   cat >conftest.$ac_ext <<_ACEOF
5920 #line $LINENO "configure"
5921 /* confdefs.h.  */
5922 _ACEOF
5923 cat confdefs.h >>conftest.$ac_ext
5924 cat >>conftest.$ac_ext <<_ACEOF
5925 /* end confdefs.h.  */
5926 #include <string.h>
5927
5928 _ACEOF
5929 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5930   $EGREP "memchr" >/dev/null 2>&1; then
5931   :
5932 else
5933   ac_cv_header_stdc=no
5934 fi
5935 rm -f conftest*
5936
5937 fi
5938
5939 if test $ac_cv_header_stdc = yes; then
5940   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5941   cat >conftest.$ac_ext <<_ACEOF
5942 #line $LINENO "configure"
5943 /* confdefs.h.  */
5944 _ACEOF
5945 cat confdefs.h >>conftest.$ac_ext
5946 cat >>conftest.$ac_ext <<_ACEOF
5947 /* end confdefs.h.  */
5948 #include <stdlib.h>
5949
5950 _ACEOF
5951 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5952   $EGREP "free" >/dev/null 2>&1; then
5953   :
5954 else
5955   ac_cv_header_stdc=no
5956 fi
5957 rm -f conftest*
5958
5959 fi
5960
5961 if test $ac_cv_header_stdc = yes; then
5962   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5963   if test "$cross_compiling" = yes; then
5964   :
5965 else
5966   cat >conftest.$ac_ext <<_ACEOF
5967 #line $LINENO "configure"
5968 /* confdefs.h.  */
5969 _ACEOF
5970 cat confdefs.h >>conftest.$ac_ext
5971 cat >>conftest.$ac_ext <<_ACEOF
5972 /* end confdefs.h.  */
5973 #include <ctype.h>
5974 #if ((' ' & 0x0FF) == 0x020)
5975 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5976 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5977 #else
5978 # define ISLOWER(c) \
5979                    (('a' <= (c) && (c) <= 'i') \
5980                      || ('j' <= (c) && (c) <= 'r') \
5981                      || ('s' <= (c) && (c) <= 'z'))
5982 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5983 #endif
5984
5985 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5986 int
5987 main ()
5988 {
5989   int i;
5990   for (i = 0; i < 256; i++)
5991     if (XOR (islower (i), ISLOWER (i))
5992         || toupper (i) != TOUPPER (i))
5993       exit(2);
5994   exit (0);
5995 }
5996 _ACEOF
5997 rm -f conftest$ac_exeext
5998 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5999   (eval $ac_link) 2>&5
6000   ac_status=$?
6001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6002   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6003   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6004   (eval $ac_try) 2>&5
6005   ac_status=$?
6006   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6007   (exit $ac_status); }; }; then
6008   :
6009 else
6010   echo "$as_me: program exited with status $ac_status" >&5
6011 echo "$as_me: failed program was:" >&5
6012 sed 's/^/| /' conftest.$ac_ext >&5
6013
6014 ( exit $ac_status )
6015 ac_cv_header_stdc=no
6016 fi
6017 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6018 fi
6019 fi
6020 fi
6021 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6022 echo "${ECHO_T}$ac_cv_header_stdc" >&6
6023 if test $ac_cv_header_stdc = yes; then
6024
6025 cat >>confdefs.h <<\_ACEOF
6026 #define STDC_HEADERS 1
6027 _ACEOF
6028
6029 fi
6030
6031 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6032
6033
6034
6035
6036
6037
6038
6039
6040
6041 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6042                   inttypes.h stdint.h unistd.h
6043 do
6044 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6045 echo "$as_me:$LINENO: checking for $ac_header" >&5
6046 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6047 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6048   echo $ECHO_N "(cached) $ECHO_C" >&6
6049 else
6050   cat >conftest.$ac_ext <<_ACEOF
6051 #line $LINENO "configure"
6052 /* confdefs.h.  */
6053 _ACEOF
6054 cat confdefs.h >>conftest.$ac_ext
6055 cat >>conftest.$ac_ext <<_ACEOF
6056 /* end confdefs.h.  */
6057 $ac_includes_default
6058
6059 #include <$ac_header>
6060 _ACEOF
6061 rm -f conftest.$ac_objext
6062 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6063   (eval $ac_compile) 2>&5
6064   ac_status=$?
6065   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6066   (exit $ac_status); } &&
6067          { ac_try='test -s conftest.$ac_objext'
6068   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6069   (eval $ac_try) 2>&5
6070   ac_status=$?
6071   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6072   (exit $ac_status); }; }; then
6073   eval "$as_ac_Header=yes"
6074 else
6075   echo "$as_me: failed program was:" >&5
6076 sed 's/^/| /' conftest.$ac_ext >&5
6077
6078 eval "$as_ac_Header=no"
6079 fi
6080 rm -f conftest.$ac_objext conftest.$ac_ext
6081 fi
6082 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6083 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6084 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6085   cat >>confdefs.h <<_ACEOF
6086 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6087 _ACEOF
6088
6089 fi
6090
6091 done
6092
6093
6094
6095 for ac_header in jpeglib.h
6096 do
6097 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6098 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6099   echo "$as_me:$LINENO: checking for $ac_header" >&5
6100 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6101 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6102   echo $ECHO_N "(cached) $ECHO_C" >&6
6103 fi
6104 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6105 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6106 else
6107   # Is the header compilable?
6108 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6109 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6110 cat >conftest.$ac_ext <<_ACEOF
6111 #line $LINENO "configure"
6112 /* confdefs.h.  */
6113 _ACEOF
6114 cat confdefs.h >>conftest.$ac_ext
6115 cat >>conftest.$ac_ext <<_ACEOF
6116 /* end confdefs.h.  */
6117 $ac_includes_default
6118 #include <$ac_header>
6119 _ACEOF
6120 rm -f conftest.$ac_objext
6121 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6122   (eval $ac_compile) 2>&5
6123   ac_status=$?
6124   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6125   (exit $ac_status); } &&
6126          { ac_try='test -s conftest.$ac_objext'
6127   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6128   (eval $ac_try) 2>&5
6129   ac_status=$?
6130   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6131   (exit $ac_status); }; }; then
6132   ac_header_compiler=yes
6133 else
6134   echo "$as_me: failed program was:" >&5
6135 sed 's/^/| /' conftest.$ac_ext >&5
6136
6137 ac_header_compiler=no
6138 fi
6139 rm -f conftest.$ac_objext conftest.$ac_ext
6140 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6141 echo "${ECHO_T}$ac_header_compiler" >&6
6142
6143 # Is the header present?
6144 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6145 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6146 cat >conftest.$ac_ext <<_ACEOF
6147 #line $LINENO "configure"
6148 /* confdefs.h.  */
6149 _ACEOF
6150 cat confdefs.h >>conftest.$ac_ext
6151 cat >>conftest.$ac_ext <<_ACEOF
6152 /* end confdefs.h.  */
6153 #include <$ac_header>
6154 _ACEOF
6155 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6156   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6157   ac_status=$?
6158   grep -v '^ *+' conftest.er1 >conftest.err
6159   rm -f conftest.er1
6160   cat conftest.err >&5
6161   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6162   (exit $ac_status); } >/dev/null; then
6163   if test -s conftest.err; then
6164     ac_cpp_err=$ac_c_preproc_warn_flag
6165   else
6166     ac_cpp_err=
6167   fi
6168 else
6169   ac_cpp_err=yes
6170 fi
6171 if test -z "$ac_cpp_err"; then
6172   ac_header_preproc=yes
6173 else
6174   echo "$as_me: failed program was:" >&5
6175 sed 's/^/| /' conftest.$ac_ext >&5
6176
6177   ac_header_preproc=no
6178 fi
6179 rm -f conftest.err conftest.$ac_ext
6180 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6181 echo "${ECHO_T}$ac_header_preproc" >&6
6182
6183 # So?  What about this header?
6184 case $ac_header_compiler:$ac_header_preproc in
6185   yes:no )
6186     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6187 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6188     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6189 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6190     (
6191       cat <<\_ASBOX
6192 ## ------------------------------------ ##
6193 ## Report this to bug-autoconf@gnu.org. ##
6194 ## ------------------------------------ ##
6195 _ASBOX
6196     ) |
6197       sed "s/^/$as_me: WARNING:     /" >&2
6198     ;;
6199   no:yes )
6200     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6201 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6202     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6203 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6204     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6205 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6206     (
6207       cat <<\_ASBOX
6208 ## ------------------------------------ ##
6209 ## Report this to bug-autoconf@gnu.org. ##
6210 ## ------------------------------------ ##
6211 _ASBOX
6212     ) |
6213       sed "s/^/$as_me: WARNING:     /" >&2
6214     ;;
6215 esac
6216 echo "$as_me:$LINENO: checking for $ac_header" >&5
6217 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6218 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6219   echo $ECHO_N "(cached) $ECHO_C" >&6
6220 else
6221   eval "$as_ac_Header=$ac_header_preproc"
6222 fi
6223 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6224 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6225
6226 fi
6227 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6228   cat >>confdefs.h <<_ACEOF
6229 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6230 _ACEOF
6231  echo "$as_me:$LINENO: checking for jpeg_start_decompress in -ljpeg" >&5
6232 echo $ECHO_N "checking for jpeg_start_decompress in -ljpeg... $ECHO_C" >&6
6233 if test "${ac_cv_lib_jpeg_jpeg_start_decompress+set}" = set; then
6234   echo $ECHO_N "(cached) $ECHO_C" >&6
6235 else
6236   ac_check_lib_save_LIBS=$LIBS
6237 LIBS="-ljpeg  $LIBS"
6238 cat >conftest.$ac_ext <<_ACEOF
6239 #line $LINENO "configure"
6240 /* confdefs.h.  */
6241 _ACEOF
6242 cat confdefs.h >>conftest.$ac_ext
6243 cat >>conftest.$ac_ext <<_ACEOF
6244 /* end confdefs.h.  */
6245
6246 /* Override any gcc2 internal prototype to avoid an error.  */
6247 #ifdef __cplusplus
6248 extern "C"
6249 #endif
6250 /* We use char because int might match the return type of a gcc2
6251    builtin and then its argument prototype would still apply.  */
6252 char jpeg_start_decompress ();
6253 int
6254 main ()
6255 {
6256 jpeg_start_decompress ();
6257   ;
6258   return 0;
6259 }
6260 _ACEOF
6261 rm -f conftest.$ac_objext conftest$ac_exeext
6262 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6263   (eval $ac_link) 2>&5
6264   ac_status=$?
6265   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6266   (exit $ac_status); } &&
6267          { ac_try='test -s conftest$ac_exeext'
6268   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6269   (eval $ac_try) 2>&5
6270   ac_status=$?
6271   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6272   (exit $ac_status); }; }; then
6273   ac_cv_lib_jpeg_jpeg_start_decompress=yes
6274 else
6275   echo "$as_me: failed program was:" >&5
6276 sed 's/^/| /' conftest.$ac_ext >&5
6277
6278 ac_cv_lib_jpeg_jpeg_start_decompress=no
6279 fi
6280 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6281 LIBS=$ac_check_lib_save_LIBS
6282 fi
6283 echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_start_decompress" >&5
6284 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_start_decompress" >&6
6285 if test $ac_cv_lib_jpeg_jpeg_start_decompress = yes; then
6286
6287 cat >>confdefs.h <<\_ACEOF
6288 #define HAVE_LIBJPEG 1
6289 _ACEOF
6290
6291         JPEGLIB="-ljpeg"
6292
6293 fi
6294
6295
6296 fi
6297
6298 done
6299
6300
6301
6302
6303
6304 XFILES=""
6305
6306 OPENGLFILES=""
6307
6308 GLU32FILES=""
6309
6310 OPENGL_LIBS=""
6311 if test "$have_x" = "yes"
6312 then
6313     XLIB="-lXext -lX11"
6314     ac_save_CPPFLAGS="$CPPFLAGS"
6315     CPPFLAGS="$CPPFLAGS $X_CFLAGS"
6316
6317
6318 for ac_header in X11/Xlib.h
6319 do
6320 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6321 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6322   echo "$as_me:$LINENO: checking for $ac_header" >&5
6323 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6324 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6325   echo $ECHO_N "(cached) $ECHO_C" >&6
6326 fi
6327 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6328 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6329 else
6330   # Is the header compilable?
6331 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6332 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6333 cat >conftest.$ac_ext <<_ACEOF
6334 #line $LINENO "configure"
6335 /* confdefs.h.  */
6336 _ACEOF
6337 cat confdefs.h >>conftest.$ac_ext
6338 cat >>conftest.$ac_ext <<_ACEOF
6339 /* end confdefs.h.  */
6340 $ac_includes_default
6341 #include <$ac_header>
6342 _ACEOF
6343 rm -f conftest.$ac_objext
6344 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6345   (eval $ac_compile) 2>&5
6346   ac_status=$?
6347   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6348   (exit $ac_status); } &&
6349          { ac_try='test -s conftest.$ac_objext'
6350   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6351   (eval $ac_try) 2>&5
6352   ac_status=$?
6353   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6354   (exit $ac_status); }; }; then
6355   ac_header_compiler=yes
6356 else
6357   echo "$as_me: failed program was:" >&5
6358 sed 's/^/| /' conftest.$ac_ext >&5
6359
6360 ac_header_compiler=no
6361 fi
6362 rm -f conftest.$ac_objext conftest.$ac_ext
6363 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6364 echo "${ECHO_T}$ac_header_compiler" >&6
6365
6366 # Is the header present?
6367 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6368 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6369 cat >conftest.$ac_ext <<_ACEOF
6370 #line $LINENO "configure"
6371 /* confdefs.h.  */
6372 _ACEOF
6373 cat confdefs.h >>conftest.$ac_ext
6374 cat >>conftest.$ac_ext <<_ACEOF
6375 /* end confdefs.h.  */
6376 #include <$ac_header>
6377 _ACEOF
6378 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6379   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6380   ac_status=$?
6381   grep -v '^ *+' conftest.er1 >conftest.err
6382   rm -f conftest.er1
6383   cat conftest.err >&5
6384   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6385   (exit $ac_status); } >/dev/null; then
6386   if test -s conftest.err; then
6387     ac_cpp_err=$ac_c_preproc_warn_flag
6388   else
6389     ac_cpp_err=
6390   fi
6391 else
6392   ac_cpp_err=yes
6393 fi
6394 if test -z "$ac_cpp_err"; then
6395   ac_header_preproc=yes
6396 else
6397   echo "$as_me: failed program was:" >&5
6398 sed 's/^/| /' conftest.$ac_ext >&5
6399
6400   ac_header_preproc=no
6401 fi
6402 rm -f conftest.err conftest.$ac_ext
6403 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6404 echo "${ECHO_T}$ac_header_preproc" >&6
6405
6406 # So?  What about this header?
6407 case $ac_header_compiler:$ac_header_preproc in
6408   yes:no )
6409     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6410 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6411     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6412 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6413     (
6414       cat <<\_ASBOX
6415 ## ------------------------------------ ##
6416 ## Report this to bug-autoconf@gnu.org. ##
6417 ## ------------------------------------ ##
6418 _ASBOX
6419     ) |
6420       sed "s/^/$as_me: WARNING:     /" >&2
6421     ;;
6422   no:yes )
6423     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6424 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6425     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6426 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6427     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6428 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6429     (
6430       cat <<\_ASBOX
6431 ## ------------------------------------ ##
6432 ## Report this to bug-autoconf@gnu.org. ##
6433 ## ------------------------------------ ##
6434 _ASBOX
6435     ) |
6436       sed "s/^/$as_me: WARNING:     /" >&2
6437     ;;
6438 esac
6439 echo "$as_me:$LINENO: checking for $ac_header" >&5
6440 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6441 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6442   echo $ECHO_N "(cached) $ECHO_C" >&6
6443 else
6444   eval "$as_ac_Header=$ac_header_preproc"
6445 fi
6446 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6447 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6448
6449 fi
6450 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6451   cat >>confdefs.h <<_ACEOF
6452 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6453 _ACEOF
6454
6455
6456 for ac_header in X11/XKBlib.h
6457 do
6458 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6459 echo "$as_me:$LINENO: checking for $ac_header" >&5
6460 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6461 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6462   echo $ECHO_N "(cached) $ECHO_C" >&6
6463 else
6464   cat >conftest.$ac_ext <<_ACEOF
6465 #line $LINENO "configure"
6466 /* confdefs.h.  */
6467 _ACEOF
6468 cat confdefs.h >>conftest.$ac_ext
6469 cat >>conftest.$ac_ext <<_ACEOF
6470 /* end confdefs.h.  */
6471 #include <X11/Xlib.h>
6472
6473 #include <$ac_header>
6474 _ACEOF
6475 rm -f conftest.$ac_objext
6476 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6477   (eval $ac_compile) 2>&5
6478   ac_status=$?
6479   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6480   (exit $ac_status); } &&
6481          { ac_try='test -s conftest.$ac_objext'
6482   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6483   (eval $ac_try) 2>&5
6484   ac_status=$?
6485   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6486   (exit $ac_status); }; }; then
6487   eval "$as_ac_Header=yes"
6488 else
6489   echo "$as_me: failed program was:" >&5
6490 sed 's/^/| /' conftest.$ac_ext >&5
6491
6492 eval "$as_ac_Header=no"
6493 fi
6494 rm -f conftest.$ac_objext conftest.$ac_ext
6495 fi
6496 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6497 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6498 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6499   cat >>confdefs.h <<_ACEOF
6500 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6501 _ACEOF
6502                 echo "$as_me:$LINENO: checking for XkbQueryExtension in -lX11" >&5
6503 echo $ECHO_N "checking for XkbQueryExtension in -lX11... $ECHO_C" >&6
6504 if test "${ac_cv_lib_X11_XkbQueryExtension+set}" = set; then
6505   echo $ECHO_N "(cached) $ECHO_C" >&6
6506 else
6507   ac_check_lib_save_LIBS=$LIBS
6508 LIBS="-lX11 $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
6509 cat >conftest.$ac_ext <<_ACEOF
6510 #line $LINENO "configure"
6511 /* confdefs.h.  */
6512 _ACEOF
6513 cat confdefs.h >>conftest.$ac_ext
6514 cat >>conftest.$ac_ext <<_ACEOF
6515 /* end confdefs.h.  */
6516
6517 /* Override any gcc2 internal prototype to avoid an error.  */
6518 #ifdef __cplusplus
6519 extern "C"
6520 #endif
6521 /* We use char because int might match the return type of a gcc2
6522    builtin and then its argument prototype would still apply.  */
6523 char XkbQueryExtension ();
6524 int
6525 main ()
6526 {
6527 XkbQueryExtension ();
6528   ;
6529   return 0;
6530 }
6531 _ACEOF
6532 rm -f conftest.$ac_objext conftest$ac_exeext
6533 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6534   (eval $ac_link) 2>&5
6535   ac_status=$?
6536   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6537   (exit $ac_status); } &&
6538          { ac_try='test -s conftest$ac_exeext'
6539   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6540   (eval $ac_try) 2>&5
6541   ac_status=$?
6542   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6543   (exit $ac_status); }; }; then
6544   ac_cv_lib_X11_XkbQueryExtension=yes
6545 else
6546   echo "$as_me: failed program was:" >&5
6547 sed 's/^/| /' conftest.$ac_ext >&5
6548
6549 ac_cv_lib_X11_XkbQueryExtension=no
6550 fi
6551 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6552 LIBS=$ac_check_lib_save_LIBS
6553 fi
6554 echo "$as_me:$LINENO: result: $ac_cv_lib_X11_XkbQueryExtension" >&5
6555 echo "${ECHO_T}$ac_cv_lib_X11_XkbQueryExtension" >&6
6556 if test $ac_cv_lib_X11_XkbQueryExtension = yes; then
6557
6558 cat >>confdefs.h <<\_ACEOF
6559 #define HAVE_XKB 1
6560 _ACEOF
6561
6562 fi
6563
6564
6565 else
6566   { echo "$as_me:$LINENO: WARNING: Xkb extension not found, Wine will be built without it" >&5
6567 echo "$as_me: WARNING: Xkb extension not found, Wine will be built without it" >&2;}
6568 fi
6569
6570 done
6571
6572
6573
6574 for ac_header in X11/extensions/XShm.h
6575 do
6576 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6577 echo "$as_me:$LINENO: checking for $ac_header" >&5
6578 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6579 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6580   echo $ECHO_N "(cached) $ECHO_C" >&6
6581 else
6582   cat >conftest.$ac_ext <<_ACEOF
6583 #line $LINENO "configure"
6584 /* confdefs.h.  */
6585 _ACEOF
6586 cat confdefs.h >>conftest.$ac_ext
6587 cat >>conftest.$ac_ext <<_ACEOF
6588 /* end confdefs.h.  */
6589 #include <X11/Xlib.h>
6590
6591 #include <$ac_header>
6592 _ACEOF
6593 rm -f conftest.$ac_objext
6594 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6595   (eval $ac_compile) 2>&5
6596   ac_status=$?
6597   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6598   (exit $ac_status); } &&
6599          { ac_try='test -s conftest.$ac_objext'
6600   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6601   (eval $ac_try) 2>&5
6602   ac_status=$?
6603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6604   (exit $ac_status); }; }; then
6605   eval "$as_ac_Header=yes"
6606 else
6607   echo "$as_me: failed program was:" >&5
6608 sed 's/^/| /' conftest.$ac_ext >&5
6609
6610 eval "$as_ac_Header=no"
6611 fi
6612 rm -f conftest.$ac_objext conftest.$ac_ext
6613 fi
6614 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6615 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6616 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6617   cat >>confdefs.h <<_ACEOF
6618 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6619 _ACEOF
6620                 echo "$as_me:$LINENO: checking for XShmQueryExtension in -lXext" >&5
6621 echo $ECHO_N "checking for XShmQueryExtension in -lXext... $ECHO_C" >&6
6622 if test "${ac_cv_lib_Xext_XShmQueryExtension+set}" = set; then
6623   echo $ECHO_N "(cached) $ECHO_C" >&6
6624 else
6625   ac_check_lib_save_LIBS=$LIBS
6626 LIBS="-lXext $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
6627 cat >conftest.$ac_ext <<_ACEOF
6628 #line $LINENO "configure"
6629 /* confdefs.h.  */
6630 _ACEOF
6631 cat confdefs.h >>conftest.$ac_ext
6632 cat >>conftest.$ac_ext <<_ACEOF
6633 /* end confdefs.h.  */
6634
6635 /* Override any gcc2 internal prototype to avoid an error.  */
6636 #ifdef __cplusplus
6637 extern "C"
6638 #endif
6639 /* We use char because int might match the return type of a gcc2
6640    builtin and then its argument prototype would still apply.  */
6641 char XShmQueryExtension ();
6642 int
6643 main ()
6644 {
6645 XShmQueryExtension ();
6646   ;
6647   return 0;
6648 }
6649 _ACEOF
6650 rm -f conftest.$ac_objext conftest$ac_exeext
6651 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6652   (eval $ac_link) 2>&5
6653   ac_status=$?
6654   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6655   (exit $ac_status); } &&
6656          { ac_try='test -s conftest$ac_exeext'
6657   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6658   (eval $ac_try) 2>&5
6659   ac_status=$?
6660   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6661   (exit $ac_status); }; }; then
6662   ac_cv_lib_Xext_XShmQueryExtension=yes
6663 else
6664   echo "$as_me: failed program was:" >&5
6665 sed 's/^/| /' conftest.$ac_ext >&5
6666
6667 ac_cv_lib_Xext_XShmQueryExtension=no
6668 fi
6669 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6670 LIBS=$ac_check_lib_save_LIBS
6671 fi
6672 echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShmQueryExtension" >&5
6673 echo "${ECHO_T}$ac_cv_lib_Xext_XShmQueryExtension" >&6
6674 if test $ac_cv_lib_Xext_XShmQueryExtension = yes; then
6675
6676 cat >>confdefs.h <<\_ACEOF
6677 #define HAVE_LIBXXSHM 1
6678 _ACEOF
6679
6680 fi
6681
6682
6683 else
6684   { echo "$as_me:$LINENO: WARNING: XShm extension not found, Wine will be built without it" >&5
6685 echo "$as_me: WARNING: XShm extension not found, Wine will be built without it" >&2;}
6686 fi
6687
6688 done
6689
6690
6691
6692 for ac_header in X11/Xutil.h
6693 do
6694 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6695 echo "$as_me:$LINENO: checking for $ac_header" >&5
6696 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6697 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6698   echo $ECHO_N "(cached) $ECHO_C" >&6
6699 else
6700   cat >conftest.$ac_ext <<_ACEOF
6701 #line $LINENO "configure"
6702 /* confdefs.h.  */
6703 _ACEOF
6704 cat confdefs.h >>conftest.$ac_ext
6705 cat >>conftest.$ac_ext <<_ACEOF
6706 /* end confdefs.h.  */
6707 #include <X11/Xlib.h>
6708
6709 #include <$ac_header>
6710 _ACEOF
6711 rm -f conftest.$ac_objext
6712 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6713   (eval $ac_compile) 2>&5
6714   ac_status=$?
6715   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6716   (exit $ac_status); } &&
6717          { ac_try='test -s conftest.$ac_objext'
6718   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6719   (eval $ac_try) 2>&5
6720   ac_status=$?
6721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6722   (exit $ac_status); }; }; then
6723   eval "$as_ac_Header=yes"
6724 else
6725   echo "$as_me: failed program was:" >&5
6726 sed 's/^/| /' conftest.$ac_ext >&5
6727
6728 eval "$as_ac_Header=no"
6729 fi
6730 rm -f conftest.$ac_objext conftest.$ac_ext
6731 fi
6732 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6733 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6734 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6735   cat >>confdefs.h <<_ACEOF
6736 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6737 _ACEOF
6738
6739 fi
6740
6741 done
6742
6743
6744
6745 for ac_header in X11/extensions/shape.h
6746 do
6747 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6748 echo "$as_me:$LINENO: checking for $ac_header" >&5
6749 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6750 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6751   echo $ECHO_N "(cached) $ECHO_C" >&6
6752 else
6753   cat >conftest.$ac_ext <<_ACEOF
6754 #line $LINENO "configure"
6755 /* confdefs.h.  */
6756 _ACEOF
6757 cat confdefs.h >>conftest.$ac_ext
6758 cat >>conftest.$ac_ext <<_ACEOF
6759 /* end confdefs.h.  */
6760 #include <X11/Xlib.h>
6761              #ifdef HAVE_X11_XUTIL_H
6762              # include <X11/Xutil.h>
6763              #endif
6764
6765 #include <$ac_header>
6766 _ACEOF
6767 rm -f conftest.$ac_objext
6768 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6769   (eval $ac_compile) 2>&5
6770   ac_status=$?
6771   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6772   (exit $ac_status); } &&
6773          { ac_try='test -s conftest.$ac_objext'
6774   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6775   (eval $ac_try) 2>&5
6776   ac_status=$?
6777   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6778   (exit $ac_status); }; }; then
6779   eval "$as_ac_Header=yes"
6780 else
6781   echo "$as_me: failed program was:" >&5
6782 sed 's/^/| /' conftest.$ac_ext >&5
6783
6784 eval "$as_ac_Header=no"
6785 fi
6786 rm -f conftest.$ac_objext conftest.$ac_ext
6787 fi
6788 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6789 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6790 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6791   cat >>confdefs.h <<_ACEOF
6792 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6793 _ACEOF
6794                 echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
6795 echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6
6796 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
6797   echo $ECHO_N "(cached) $ECHO_C" >&6
6798 else
6799   ac_check_lib_save_LIBS=$LIBS
6800 LIBS="-lXext $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
6801 cat >conftest.$ac_ext <<_ACEOF
6802 #line $LINENO "configure"
6803 /* confdefs.h.  */
6804 _ACEOF
6805 cat confdefs.h >>conftest.$ac_ext
6806 cat >>conftest.$ac_ext <<_ACEOF
6807 /* end confdefs.h.  */
6808
6809 /* Override any gcc2 internal prototype to avoid an error.  */
6810 #ifdef __cplusplus
6811 extern "C"
6812 #endif
6813 /* We use char because int might match the return type of a gcc2
6814    builtin and then its argument prototype would still apply.  */
6815 char XShapeQueryExtension ();
6816 int
6817 main ()
6818 {
6819 XShapeQueryExtension ();
6820   ;
6821   return 0;
6822 }
6823 _ACEOF
6824 rm -f conftest.$ac_objext conftest$ac_exeext
6825 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6826   (eval $ac_link) 2>&5
6827   ac_status=$?
6828   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6829   (exit $ac_status); } &&
6830          { ac_try='test -s conftest$ac_exeext'
6831   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6832   (eval $ac_try) 2>&5
6833   ac_status=$?
6834   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6835   (exit $ac_status); }; }; then
6836   ac_cv_lib_Xext_XShapeQueryExtension=yes
6837 else
6838   echo "$as_me: failed program was:" >&5
6839 sed 's/^/| /' conftest.$ac_ext >&5
6840
6841 ac_cv_lib_Xext_XShapeQueryExtension=no
6842 fi
6843 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6844 LIBS=$ac_check_lib_save_LIBS
6845 fi
6846 echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
6847 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6
6848 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
6849
6850 cat >>confdefs.h <<\_ACEOF
6851 #define HAVE_LIBXSHAPE 1
6852 _ACEOF
6853
6854 fi
6855
6856
6857 else
6858   { echo "$as_me:$LINENO: WARNING: XShape extension not found, Wine will be built without it" >&5
6859 echo "$as_me: WARNING: XShape extension not found, Wine will be built without it" >&2;}
6860 fi
6861
6862 done
6863
6864
6865
6866 for ac_header in X11/extensions/xf86dga.h
6867 do
6868 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6869 echo "$as_me:$LINENO: checking for $ac_header" >&5
6870 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6871 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6872   echo $ECHO_N "(cached) $ECHO_C" >&6
6873 else
6874   cat >conftest.$ac_ext <<_ACEOF
6875 #line $LINENO "configure"
6876 /* confdefs.h.  */
6877 _ACEOF
6878 cat confdefs.h >>conftest.$ac_ext
6879 cat >>conftest.$ac_ext <<_ACEOF
6880 /* end confdefs.h.  */
6881 #include <X11/Xlib.h>
6882
6883 #include <$ac_header>
6884 _ACEOF
6885 rm -f conftest.$ac_objext
6886 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6887   (eval $ac_compile) 2>&5
6888   ac_status=$?
6889   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6890   (exit $ac_status); } &&
6891          { ac_try='test -s conftest.$ac_objext'
6892   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6893   (eval $ac_try) 2>&5
6894   ac_status=$?
6895   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6896   (exit $ac_status); }; }; then
6897   eval "$as_ac_Header=yes"
6898 else
6899   echo "$as_me: failed program was:" >&5
6900 sed 's/^/| /' conftest.$ac_ext >&5
6901
6902 eval "$as_ac_Header=no"
6903 fi
6904 rm -f conftest.$ac_objext conftest.$ac_ext
6905 fi
6906 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6907 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6908 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6909   cat >>confdefs.h <<_ACEOF
6910 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6911 _ACEOF
6912                               echo "$as_me:$LINENO: checking for XDGAQueryExtension in -lXxf86dga" >&5
6913 echo $ECHO_N "checking for XDGAQueryExtension in -lXxf86dga... $ECHO_C" >&6
6914 if test "${ac_cv_lib_Xxf86dga_XDGAQueryExtension+set}" = set; then
6915   echo $ECHO_N "(cached) $ECHO_C" >&6
6916 else
6917   ac_check_lib_save_LIBS=$LIBS
6918 LIBS="-lXxf86dga $X_LIBS -lXext -lX11 $X_EXTRA_LIBS
6919                $LIBS"
6920 cat >conftest.$ac_ext <<_ACEOF
6921 #line $LINENO "configure"
6922 /* confdefs.h.  */
6923 _ACEOF
6924 cat confdefs.h >>conftest.$ac_ext
6925 cat >>conftest.$ac_ext <<_ACEOF
6926 /* end confdefs.h.  */
6927
6928 /* Override any gcc2 internal prototype to avoid an error.  */
6929 #ifdef __cplusplus
6930 extern "C"
6931 #endif
6932 /* We use char because int might match the return type of a gcc2
6933    builtin and then its argument prototype would still apply.  */
6934 char XDGAQueryExtension ();
6935 int
6936 main ()
6937 {
6938 XDGAQueryExtension ();
6939   ;
6940   return 0;
6941 }
6942 _ACEOF
6943 rm -f conftest.$ac_objext conftest$ac_exeext
6944 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6945   (eval $ac_link) 2>&5
6946   ac_status=$?
6947   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6948   (exit $ac_status); } &&
6949          { ac_try='test -s conftest$ac_exeext'
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   ac_cv_lib_Xxf86dga_XDGAQueryExtension=yes
6956 else
6957   echo "$as_me: failed program was:" >&5
6958 sed 's/^/| /' conftest.$ac_ext >&5
6959
6960 ac_cv_lib_Xxf86dga_XDGAQueryExtension=no
6961 fi
6962 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6963 LIBS=$ac_check_lib_save_LIBS
6964 fi
6965 echo "$as_me:$LINENO: result: $ac_cv_lib_Xxf86dga_XDGAQueryExtension" >&5
6966 echo "${ECHO_T}$ac_cv_lib_Xxf86dga_XDGAQueryExtension" >&6
6967 if test $ac_cv_lib_Xxf86dga_XDGAQueryExtension = yes; then
6968
6969 cat >>confdefs.h <<\_ACEOF
6970 #define HAVE_LIBXXF86DGA2 1
6971 _ACEOF
6972
6973                   X_PRE_LIBS="$X_PRE_LIBS -lXxf86dga"
6974
6975 else
6976                                        echo "$as_me:$LINENO: checking for XF86DGAQueryExtension in -lXxf86dga" >&5
6977 echo $ECHO_N "checking for XF86DGAQueryExtension in -lXxf86dga... $ECHO_C" >&6
6978 if test "${ac_cv_lib_Xxf86dga_XF86DGAQueryExtension+set}" = set; then
6979   echo $ECHO_N "(cached) $ECHO_C" >&6
6980 else
6981   ac_check_lib_save_LIBS=$LIBS
6982 LIBS="-lXxf86dga $X_LIBS -lXext -lX11 $X_EXTRA_LIBS
6983                    $LIBS"
6984 cat >conftest.$ac_ext <<_ACEOF
6985 #line $LINENO "configure"
6986 /* confdefs.h.  */
6987 _ACEOF
6988 cat confdefs.h >>conftest.$ac_ext
6989 cat >>conftest.$ac_ext <<_ACEOF
6990 /* end confdefs.h.  */
6991
6992 /* Override any gcc2 internal prototype to avoid an error.  */
6993 #ifdef __cplusplus
6994 extern "C"
6995 #endif
6996 /* We use char because int might match the return type of a gcc2
6997    builtin and then its argument prototype would still apply.  */
6998 char XF86DGAQueryExtension ();
6999 int
7000 main ()
7001 {
7002 XF86DGAQueryExtension ();
7003   ;
7004   return 0;
7005 }
7006 _ACEOF
7007 rm -f conftest.$ac_objext conftest$ac_exeext
7008 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7009   (eval $ac_link) 2>&5
7010   ac_status=$?
7011   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7012   (exit $ac_status); } &&
7013          { ac_try='test -s conftest$ac_exeext'
7014   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7015   (eval $ac_try) 2>&5
7016   ac_status=$?
7017   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7018   (exit $ac_status); }; }; then
7019   ac_cv_lib_Xxf86dga_XF86DGAQueryExtension=yes
7020 else
7021   echo "$as_me: failed program was:" >&5
7022 sed 's/^/| /' conftest.$ac_ext >&5
7023
7024 ac_cv_lib_Xxf86dga_XF86DGAQueryExtension=no
7025 fi
7026 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7027 LIBS=$ac_check_lib_save_LIBS
7028 fi
7029 echo "$as_me:$LINENO: result: $ac_cv_lib_Xxf86dga_XF86DGAQueryExtension" >&5
7030 echo "${ECHO_T}$ac_cv_lib_Xxf86dga_XF86DGAQueryExtension" >&6
7031 if test $ac_cv_lib_Xxf86dga_XF86DGAQueryExtension = yes; then
7032
7033 cat >>confdefs.h <<\_ACEOF
7034 #define HAVE_LIBXXF86DGA 1
7035 _ACEOF
7036
7037                       X_PRE_LIBS="$X_PRE_LIBS -lXxf86dga"
7038
7039 fi
7040
7041
7042 fi
7043
7044
7045 else
7046   { echo "$as_me:$LINENO: WARNING: DGA extension not found, Wine will be built without it" >&5
7047 echo "$as_me: WARNING: DGA extension not found, Wine will be built without it" >&2;}
7048 fi
7049
7050 done
7051
7052
7053
7054 for ac_header in X11/extensions/xf86vmode.h
7055 do
7056 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7057 echo "$as_me:$LINENO: checking for $ac_header" >&5
7058 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7059 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7060   echo $ECHO_N "(cached) $ECHO_C" >&6
7061 else
7062   cat >conftest.$ac_ext <<_ACEOF
7063 #line $LINENO "configure"
7064 /* confdefs.h.  */
7065 _ACEOF
7066 cat confdefs.h >>conftest.$ac_ext
7067 cat >>conftest.$ac_ext <<_ACEOF
7068 /* end confdefs.h.  */
7069 #include <X11/Xlib.h>
7070
7071 #include <$ac_header>
7072 _ACEOF
7073 rm -f conftest.$ac_objext
7074 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7075   (eval $ac_compile) 2>&5
7076   ac_status=$?
7077   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7078   (exit $ac_status); } &&
7079          { ac_try='test -s conftest.$ac_objext'
7080   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7081   (eval $ac_try) 2>&5
7082   ac_status=$?
7083   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7084   (exit $ac_status); }; }; then
7085   eval "$as_ac_Header=yes"
7086 else
7087   echo "$as_me: failed program was:" >&5
7088 sed 's/^/| /' conftest.$ac_ext >&5
7089
7090 eval "$as_ac_Header=no"
7091 fi
7092 rm -f conftest.$ac_objext conftest.$ac_ext
7093 fi
7094 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7095 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7096 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7097   cat >>confdefs.h <<_ACEOF
7098 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7099 _ACEOF
7100                   echo "$as_me:$LINENO: checking for XF86VidModeQueryExtension in -lXxf86vm" >&5
7101 echo $ECHO_N "checking for XF86VidModeQueryExtension in -lXxf86vm... $ECHO_C" >&6
7102 if test "${ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension+set}" = set; then
7103   echo $ECHO_N "(cached) $ECHO_C" >&6
7104 else
7105   ac_check_lib_save_LIBS=$LIBS
7106 LIBS="-lXxf86vm $X_LIBS -lXext -lX11 $X_EXTRA_LIBS
7107                  $LIBS"
7108 cat >conftest.$ac_ext <<_ACEOF
7109 #line $LINENO "configure"
7110 /* confdefs.h.  */
7111 _ACEOF
7112 cat confdefs.h >>conftest.$ac_ext
7113 cat >>conftest.$ac_ext <<_ACEOF
7114 /* end confdefs.h.  */
7115
7116 /* Override any gcc2 internal prototype to avoid an error.  */
7117 #ifdef __cplusplus
7118 extern "C"
7119 #endif
7120 /* We use char because int might match the return type of a gcc2
7121    builtin and then its argument prototype would still apply.  */
7122 char XF86VidModeQueryExtension ();
7123 int
7124 main ()
7125 {
7126 XF86VidModeQueryExtension ();
7127   ;
7128   return 0;
7129 }
7130 _ACEOF
7131 rm -f conftest.$ac_objext conftest$ac_exeext
7132 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7133   (eval $ac_link) 2>&5
7134   ac_status=$?
7135   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7136   (exit $ac_status); } &&
7137          { ac_try='test -s conftest$ac_exeext'
7138   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7139   (eval $ac_try) 2>&5
7140   ac_status=$?
7141   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7142   (exit $ac_status); }; }; then
7143   ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=yes
7144 else
7145   echo "$as_me: failed program was:" >&5
7146 sed 's/^/| /' conftest.$ac_ext >&5
7147
7148 ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=no
7149 fi
7150 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7151 LIBS=$ac_check_lib_save_LIBS
7152 fi
7153 echo "$as_me:$LINENO: result: $ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&5
7154 echo "${ECHO_T}$ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&6
7155 if test $ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension = yes; then
7156
7157 cat >>confdefs.h <<\_ACEOF
7158 #define HAVE_LIBXXF86VM 1
7159 _ACEOF
7160
7161                      X_PRE_LIBS="$X_PRE_LIBS -lXxf86vm"
7162
7163 fi
7164
7165
7166 else
7167   { echo "$as_me:$LINENO: WARNING: XFree86 VMODE extension not found, Wine will be built without it" >&5
7168 echo "$as_me: WARNING: XFree86 VMODE extension not found, Wine will be built without it" >&2;}
7169 fi
7170
7171 done
7172
7173
7174
7175 for ac_header in X11/extensions/Xvlib.h
7176 do
7177 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7178 echo "$as_me:$LINENO: checking for $ac_header" >&5
7179 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7180 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7181   echo $ECHO_N "(cached) $ECHO_C" >&6
7182 else
7183   cat >conftest.$ac_ext <<_ACEOF
7184 #line $LINENO "configure"
7185 /* confdefs.h.  */
7186 _ACEOF
7187 cat confdefs.h >>conftest.$ac_ext
7188 cat >>conftest.$ac_ext <<_ACEOF
7189 /* end confdefs.h.  */
7190 #include <X11/Xlib.h>
7191
7192 #include <$ac_header>
7193 _ACEOF
7194 rm -f conftest.$ac_objext
7195 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7196   (eval $ac_compile) 2>&5
7197   ac_status=$?
7198   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7199   (exit $ac_status); } &&
7200          { ac_try='test -s conftest.$ac_objext'
7201   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7202   (eval $ac_try) 2>&5
7203   ac_status=$?
7204   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7205   (exit $ac_status); }; }; then
7206   eval "$as_ac_Header=yes"
7207 else
7208   echo "$as_me: failed program was:" >&5
7209 sed 's/^/| /' conftest.$ac_ext >&5
7210
7211 eval "$as_ac_Header=no"
7212 fi
7213 rm -f conftest.$ac_objext conftest.$ac_ext
7214 fi
7215 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7216 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7217 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7218   cat >>confdefs.h <<_ACEOF
7219 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7220 _ACEOF
7221                   echo "$as_me:$LINENO: checking for XvShmCreateImage in -lXv" >&5
7222 echo $ECHO_N "checking for XvShmCreateImage in -lXv... $ECHO_C" >&6
7223 if test "${ac_cv_lib_Xv_XvShmCreateImage+set}" = set; then
7224   echo $ECHO_N "(cached) $ECHO_C" >&6
7225 else
7226   ac_check_lib_save_LIBS=$LIBS
7227 LIBS="-lXv $X_LIBS -lXext -lX11 $X_EXTRA_LIBS
7228                  $LIBS"
7229 cat >conftest.$ac_ext <<_ACEOF
7230 #line $LINENO "configure"
7231 /* confdefs.h.  */
7232 _ACEOF
7233 cat confdefs.h >>conftest.$ac_ext
7234 cat >>conftest.$ac_ext <<_ACEOF
7235 /* end confdefs.h.  */
7236
7237 /* Override any gcc2 internal prototype to avoid an error.  */
7238 #ifdef __cplusplus
7239 extern "C"
7240 #endif
7241 /* We use char because int might match the return type of a gcc2
7242    builtin and then its argument prototype would still apply.  */
7243 char XvShmCreateImage ();
7244 int
7245 main ()
7246 {
7247 XvShmCreateImage ();
7248   ;
7249   return 0;
7250 }
7251 _ACEOF
7252 rm -f conftest.$ac_objext conftest$ac_exeext
7253 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7254   (eval $ac_link) 2>&5
7255   ac_status=$?
7256   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7257   (exit $ac_status); } &&
7258          { ac_try='test -s conftest$ac_exeext'
7259   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7260   (eval $ac_try) 2>&5
7261   ac_status=$?
7262   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7263   (exit $ac_status); }; }; then
7264   ac_cv_lib_Xv_XvShmCreateImage=yes
7265 else
7266   echo "$as_me: failed program was:" >&5
7267 sed 's/^/| /' conftest.$ac_ext >&5
7268
7269 ac_cv_lib_Xv_XvShmCreateImage=no
7270 fi
7271 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7272 LIBS=$ac_check_lib_save_LIBS
7273 fi
7274 echo "$as_me:$LINENO: result: $ac_cv_lib_Xv_XvShmCreateImage" >&5
7275 echo "${ECHO_T}$ac_cv_lib_Xv_XvShmCreateImage" >&6
7276 if test $ac_cv_lib_Xv_XvShmCreateImage = yes; then
7277
7278 cat >>confdefs.h <<\_ACEOF
7279 #define HAVE_XVIDEO 1
7280 _ACEOF
7281
7282                      X_PRE_LIBS="$X_PRE_LIBS -lXv"
7283
7284 fi
7285
7286
7287 else
7288   { echo "$as_me:$LINENO: WARNING: XVideo extension not found, Wine will be built without it" >&5
7289 echo "$as_me: WARNING: XVideo extension not found, Wine will be built without it" >&2;}
7290 fi
7291
7292 done
7293
7294
7295
7296 for ac_header in X11/extensions/Xrender.h
7297 do
7298 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7299 echo "$as_me:$LINENO: checking for $ac_header" >&5
7300 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7301 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7302   echo $ECHO_N "(cached) $ECHO_C" >&6
7303 else
7304   cat >conftest.$ac_ext <<_ACEOF
7305 #line $LINENO "configure"
7306 /* confdefs.h.  */
7307 _ACEOF
7308 cat confdefs.h >>conftest.$ac_ext
7309 cat >>conftest.$ac_ext <<_ACEOF
7310 /* end confdefs.h.  */
7311 #include <X11/Xlib.h>
7312
7313 #include <$ac_header>
7314 _ACEOF
7315 rm -f conftest.$ac_objext
7316 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7317   (eval $ac_compile) 2>&5
7318   ac_status=$?
7319   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7320   (exit $ac_status); } &&
7321          { ac_try='test -s conftest.$ac_objext'
7322   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7323   (eval $ac_try) 2>&5
7324   ac_status=$?
7325   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7326   (exit $ac_status); }; }; then
7327   eval "$as_ac_Header=yes"
7328 else
7329   echo "$as_me: failed program was:" >&5
7330 sed 's/^/| /' conftest.$ac_ext >&5
7331
7332 eval "$as_ac_Header=no"
7333 fi
7334 rm -f conftest.$ac_objext conftest.$ac_ext
7335 fi
7336 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7337 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7338 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7339   cat >>confdefs.h <<_ACEOF
7340 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7341 _ACEOF
7342
7343 fi
7344
7345 done
7346
7347
7348
7349 fi
7350
7351 done
7352
7353         if test "x$with_opengl" != "xno"
7354     then
7355         if test -f /usr/X11R6/lib/libGL.a -a ! -f /usr/X11R6/lib/libGL.so
7356         then
7357             { { echo "$as_me:$LINENO: error: /usr/X11R6/lib/libGL.a is present on your system.
7358 This prevents linking to OpenGL. Delete the file and restart configure." >&5
7359 echo "$as_me: error: /usr/X11R6/lib/libGL.a is present on your system.
7360 This prevents linking to OpenGL. Delete the file and restart configure." >&2;}
7361    { (exit 1); exit 1; }; }
7362         fi
7363
7364
7365
7366 for ac_header in GL/gl.h GL/glx.h
7367 do
7368 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7369 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7370   echo "$as_me:$LINENO: checking for $ac_header" >&5
7371 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7372 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7373   echo $ECHO_N "(cached) $ECHO_C" >&6
7374 fi
7375 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7376 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7377 else
7378   # Is the header compilable?
7379 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7380 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7381 cat >conftest.$ac_ext <<_ACEOF
7382 #line $LINENO "configure"
7383 /* confdefs.h.  */
7384 _ACEOF
7385 cat confdefs.h >>conftest.$ac_ext
7386 cat >>conftest.$ac_ext <<_ACEOF
7387 /* end confdefs.h.  */
7388 $ac_includes_default
7389 #include <$ac_header>
7390 _ACEOF
7391 rm -f conftest.$ac_objext
7392 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7393   (eval $ac_compile) 2>&5
7394   ac_status=$?
7395   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7396   (exit $ac_status); } &&
7397          { ac_try='test -s conftest.$ac_objext'
7398   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7399   (eval $ac_try) 2>&5
7400   ac_status=$?
7401   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7402   (exit $ac_status); }; }; then
7403   ac_header_compiler=yes
7404 else
7405   echo "$as_me: failed program was:" >&5
7406 sed 's/^/| /' conftest.$ac_ext >&5
7407
7408 ac_header_compiler=no
7409 fi
7410 rm -f conftest.$ac_objext conftest.$ac_ext
7411 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7412 echo "${ECHO_T}$ac_header_compiler" >&6
7413
7414 # Is the header present?
7415 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7416 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7417 cat >conftest.$ac_ext <<_ACEOF
7418 #line $LINENO "configure"
7419 /* confdefs.h.  */
7420 _ACEOF
7421 cat confdefs.h >>conftest.$ac_ext
7422 cat >>conftest.$ac_ext <<_ACEOF
7423 /* end confdefs.h.  */
7424 #include <$ac_header>
7425 _ACEOF
7426 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7427   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7428   ac_status=$?
7429   grep -v '^ *+' conftest.er1 >conftest.err
7430   rm -f conftest.er1
7431   cat conftest.err >&5
7432   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7433   (exit $ac_status); } >/dev/null; then
7434   if test -s conftest.err; then
7435     ac_cpp_err=$ac_c_preproc_warn_flag
7436   else
7437     ac_cpp_err=
7438   fi
7439 else
7440   ac_cpp_err=yes
7441 fi
7442 if test -z "$ac_cpp_err"; then
7443   ac_header_preproc=yes
7444 else
7445   echo "$as_me: failed program was:" >&5
7446 sed 's/^/| /' conftest.$ac_ext >&5
7447
7448   ac_header_preproc=no
7449 fi
7450 rm -f conftest.err conftest.$ac_ext
7451 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7452 echo "${ECHO_T}$ac_header_preproc" >&6
7453
7454 # So?  What about this header?
7455 case $ac_header_compiler:$ac_header_preproc in
7456   yes:no )
7457     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7458 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7459     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7460 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7461     (
7462       cat <<\_ASBOX
7463 ## ------------------------------------ ##
7464 ## Report this to bug-autoconf@gnu.org. ##
7465 ## ------------------------------------ ##
7466 _ASBOX
7467     ) |
7468       sed "s/^/$as_me: WARNING:     /" >&2
7469     ;;
7470   no:yes )
7471     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7472 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7473     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7474 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7475     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7476 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7477     (
7478       cat <<\_ASBOX
7479 ## ------------------------------------ ##
7480 ## Report this to bug-autoconf@gnu.org. ##
7481 ## ------------------------------------ ##
7482 _ASBOX
7483     ) |
7484       sed "s/^/$as_me: WARNING:     /" >&2
7485     ;;
7486 esac
7487 echo "$as_me:$LINENO: checking for $ac_header" >&5
7488 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7489 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7490   echo $ECHO_N "(cached) $ECHO_C" >&6
7491 else
7492   eval "$as_ac_Header=$ac_header_preproc"
7493 fi
7494 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7495 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7496
7497 fi
7498 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7499   cat >>confdefs.h <<_ACEOF
7500 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7501 _ACEOF
7502
7503 fi
7504
7505 done
7506
7507         if test "$ac_cv_header_GL_gl_h" = "yes" -a "$ac_cv_header_GL_glx_h" = "yes"
7508         then
7509
7510 for ac_header in GL/glext.h
7511 do
7512 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7513 echo "$as_me:$LINENO: checking for $ac_header" >&5
7514 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7515 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7516   echo $ECHO_N "(cached) $ECHO_C" >&6
7517 else
7518   cat >conftest.$ac_ext <<_ACEOF
7519 #line $LINENO "configure"
7520 /* confdefs.h.  */
7521 _ACEOF
7522 cat confdefs.h >>conftest.$ac_ext
7523 cat >>conftest.$ac_ext <<_ACEOF
7524 /* end confdefs.h.  */
7525 #include <GL/glx.h>
7526
7527 #include <$ac_header>
7528 _ACEOF
7529 rm -f conftest.$ac_objext
7530 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7531   (eval $ac_compile) 2>&5
7532   ac_status=$?
7533   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7534   (exit $ac_status); } &&
7535          { ac_try='test -s conftest.$ac_objext'
7536   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7537   (eval $ac_try) 2>&5
7538   ac_status=$?
7539   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7540   (exit $ac_status); }; }; then
7541   eval "$as_ac_Header=yes"
7542 else
7543   echo "$as_me: failed program was:" >&5
7544 sed 's/^/| /' conftest.$ac_ext >&5
7545
7546 eval "$as_ac_Header=no"
7547 fi
7548 rm -f conftest.$ac_objext conftest.$ac_ext
7549 fi
7550 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7551 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7552 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7553   cat >>confdefs.h <<_ACEOF
7554 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7555 _ACEOF
7556
7557 fi
7558
7559 done
7560
7561                     echo "$as_me:$LINENO: checking for up-to-date OpenGL version" >&5
7562 echo $ECHO_N "checking for up-to-date OpenGL version... $ECHO_C" >&6
7563 if test "${wine_cv_opengl_version_OK+set}" = set; then
7564   echo $ECHO_N "(cached) $ECHO_C" >&6
7565 else
7566   cat >conftest.$ac_ext <<_ACEOF
7567 #line $LINENO "configure"
7568 /* confdefs.h.  */
7569 _ACEOF
7570 cat confdefs.h >>conftest.$ac_ext
7571 cat >>conftest.$ac_ext <<_ACEOF
7572 /* end confdefs.h.  */
7573 #include <GL/gl.h>
7574 int
7575 main ()
7576 {
7577 GLenum test = GL_UNSIGNED_SHORT_5_6_5;
7578   ;
7579   return 0;
7580 }
7581 _ACEOF
7582 rm -f conftest.$ac_objext
7583 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7584   (eval $ac_compile) 2>&5
7585   ac_status=$?
7586   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7587   (exit $ac_status); } &&
7588          { ac_try='test -s conftest.$ac_objext'
7589   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7590   (eval $ac_try) 2>&5
7591   ac_status=$?
7592   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7593   (exit $ac_status); }; }; then
7594   wine_cv_opengl_version_OK="yes"
7595 else
7596   echo "$as_me: failed program was:" >&5
7597 sed 's/^/| /' conftest.$ac_ext >&5
7598
7599 wine_cv_opengl_version_OK="no"
7600
7601 fi
7602 rm -f conftest.$ac_objext conftest.$ac_ext
7603
7604 fi
7605 echo "$as_me:$LINENO: result: $wine_cv_opengl_version_OK" >&5
7606 echo "${ECHO_T}$wine_cv_opengl_version_OK" >&6
7607
7608             if test "$wine_cv_opengl_version_OK" = "yes"
7609             then
7610                                 echo "$as_me:$LINENO: checking for glXCreateContext in -lGL" >&5
7611 echo $ECHO_N "checking for glXCreateContext in -lGL... $ECHO_C" >&6
7612 if test "${ac_cv_lib_GL_glXCreateContext+set}" = set; then
7613   echo $ECHO_N "(cached) $ECHO_C" >&6
7614 else
7615   ac_check_lib_save_LIBS=$LIBS
7616 LIBS="-lGL $X_LIBS -lXext -lX11 -lm $X_EXTRA_LIBS $LIBS"
7617 cat >conftest.$ac_ext <<_ACEOF
7618 #line $LINENO "configure"
7619 /* confdefs.h.  */
7620 _ACEOF
7621 cat confdefs.h >>conftest.$ac_ext
7622 cat >>conftest.$ac_ext <<_ACEOF
7623 /* end confdefs.h.  */
7624
7625 /* Override any gcc2 internal prototype to avoid an error.  */
7626 #ifdef __cplusplus
7627 extern "C"
7628 #endif
7629 /* We use char because int might match the return type of a gcc2
7630    builtin and then its argument prototype would still apply.  */
7631 char glXCreateContext ();
7632 int
7633 main ()
7634 {
7635 glXCreateContext ();
7636   ;
7637   return 0;
7638 }
7639 _ACEOF
7640 rm -f conftest.$ac_objext conftest$ac_exeext
7641 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7642   (eval $ac_link) 2>&5
7643   ac_status=$?
7644   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7645   (exit $ac_status); } &&
7646          { ac_try='test -s conftest$ac_exeext'
7647   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7648   (eval $ac_try) 2>&5
7649   ac_status=$?
7650   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7651   (exit $ac_status); }; }; then
7652   ac_cv_lib_GL_glXCreateContext=yes
7653 else
7654   echo "$as_me: failed program was:" >&5
7655 sed 's/^/| /' conftest.$ac_ext >&5
7656
7657 ac_cv_lib_GL_glXCreateContext=no
7658 fi
7659 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7660 LIBS=$ac_check_lib_save_LIBS
7661 fi
7662 echo "$as_me:$LINENO: result: $ac_cv_lib_GL_glXCreateContext" >&5
7663 echo "${ECHO_T}$ac_cv_lib_GL_glXCreateContext" >&6
7664 if test $ac_cv_lib_GL_glXCreateContext = yes; then
7665   OPENGL_LIBS="-lGL"
7666
7667 fi
7668
7669
7670                 if test "$ac_cv_lib_GL_glXCreateContext" = "yes"
7671                 then
7672                         OPENGLFILES='$(OPENGLFILES)'
7673
7674 cat >>confdefs.h <<\_ACEOF
7675 #define HAVE_OPENGL 1
7676 _ACEOF
7677
7678
7679                         echo "$as_me:$LINENO: checking for glXGetProcAddressARB in -lGL" >&5
7680 echo $ECHO_N "checking for glXGetProcAddressARB in -lGL... $ECHO_C" >&6
7681 if test "${ac_cv_lib_GL_glXGetProcAddressARB+set}" = set; then
7682   echo $ECHO_N "(cached) $ECHO_C" >&6
7683 else
7684   ac_check_lib_save_LIBS=$LIBS
7685 LIBS="-lGL $X_LIBS -lXext -lX11 -lm $X_EXTRA_LIBS $LIBS"
7686 cat >conftest.$ac_ext <<_ACEOF
7687 #line $LINENO "configure"
7688 /* confdefs.h.  */
7689 _ACEOF
7690 cat confdefs.h >>conftest.$ac_ext
7691 cat >>conftest.$ac_ext <<_ACEOF
7692 /* end confdefs.h.  */
7693
7694 /* Override any gcc2 internal prototype to avoid an error.  */
7695 #ifdef __cplusplus
7696 extern "C"
7697 #endif
7698 /* We use char because int might match the return type of a gcc2
7699    builtin and then its argument prototype would still apply.  */
7700 char glXGetProcAddressARB ();
7701 int
7702 main ()
7703 {
7704 glXGetProcAddressARB ();
7705   ;
7706   return 0;
7707 }
7708 _ACEOF
7709 rm -f conftest.$ac_objext conftest$ac_exeext
7710 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7711   (eval $ac_link) 2>&5
7712   ac_status=$?
7713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7714   (exit $ac_status); } &&
7715          { ac_try='test -s conftest$ac_exeext'
7716   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7717   (eval $ac_try) 2>&5
7718   ac_status=$?
7719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7720   (exit $ac_status); }; }; then
7721   ac_cv_lib_GL_glXGetProcAddressARB=yes
7722 else
7723   echo "$as_me: failed program was:" >&5
7724 sed 's/^/| /' conftest.$ac_ext >&5
7725
7726 ac_cv_lib_GL_glXGetProcAddressARB=no
7727 fi
7728 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7729 LIBS=$ac_check_lib_save_LIBS
7730 fi
7731 echo "$as_me:$LINENO: result: $ac_cv_lib_GL_glXGetProcAddressARB" >&5
7732 echo "${ECHO_T}$ac_cv_lib_GL_glXGetProcAddressARB" >&6
7733 if test $ac_cv_lib_GL_glXGetProcAddressARB = yes; then
7734
7735 cat >>confdefs.h <<\_ACEOF
7736 #define HAVE_GLX_GETPROCADDRESS 1
7737 _ACEOF
7738
7739 fi
7740
7741
7742                         if test "$ac_cv_lib_GL_glXGetProcAddressARB" = "yes"
7743                         then
7744                                echo "$as_me:$LINENO: checking for OpenGL extension functions prototypes" >&5
7745 echo $ECHO_N "checking for OpenGL extension functions prototypes... $ECHO_C" >&6
7746 if test "${wine_cv_extension_prototypes+set}" = set; then
7747   echo $ECHO_N "(cached) $ECHO_C" >&6
7748 else
7749   cat >conftest.$ac_ext <<_ACEOF
7750 #line $LINENO "configure"
7751 /* confdefs.h.  */
7752 _ACEOF
7753 cat confdefs.h >>conftest.$ac_ext
7754 cat >>conftest.$ac_ext <<_ACEOF
7755 /* end confdefs.h.  */
7756 #include <GL/gl.h>
7757                                                   #ifdef HAVE_GL_GLEXT_H
7758                                                   # include <GL/glext.h>
7759                                                   #endif
7760
7761 int
7762 main ()
7763 {
7764 PFNGLCOLORTABLEEXTPROC test_proc;
7765   ;
7766   return 0;
7767 }
7768 _ACEOF
7769 rm -f conftest.$ac_objext
7770 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7771   (eval $ac_compile) 2>&5
7772   ac_status=$?
7773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7774   (exit $ac_status); } &&
7775          { ac_try='test -s conftest.$ac_objext'
7776   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7777   (eval $ac_try) 2>&5
7778   ac_status=$?
7779   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7780   (exit $ac_status); }; }; then
7781   wine_cv_extension_prototypes="yes"
7782 else
7783   echo "$as_me: failed program was:" >&5
7784 sed 's/^/| /' conftest.$ac_ext >&5
7785
7786 wine_cv_extension_prototypes="no"
7787
7788 fi
7789 rm -f conftest.$ac_objext conftest.$ac_ext
7790
7791 fi
7792 echo "$as_me:$LINENO: result: $wine_cv_extension_prototypes" >&5
7793 echo "${ECHO_T}$wine_cv_extension_prototypes" >&6
7794                                 if test "$wine_cv_extension_prototypes" = "yes"
7795                                 then
7796
7797 cat >>confdefs.h <<\_ACEOF
7798 #define HAVE_GLEXT_PROTOTYPES 1
7799 _ACEOF
7800
7801                                 fi
7802                         fi
7803
7804                 fi
7805                                 echo "$as_me:$LINENO: checking for gluLookAt in -lGLU" >&5
7806 echo $ECHO_N "checking for gluLookAt in -lGLU... $ECHO_C" >&6
7807 if test "${ac_cv_lib_GLU_gluLookAt+set}" = set; then
7808   echo $ECHO_N "(cached) $ECHO_C" >&6
7809 else
7810   ac_check_lib_save_LIBS=$LIBS
7811 LIBS="-lGLU $OPENGL_LIBS $X_LIBS $X_PRE_LIBS -lXext -lX11 -lm $X_EXTRA_LIBS
7812                  $LIBS"
7813 cat >conftest.$ac_ext <<_ACEOF
7814 #line $LINENO "configure"
7815 /* confdefs.h.  */
7816 _ACEOF
7817 cat confdefs.h >>conftest.$ac_ext
7818 cat >>conftest.$ac_ext <<_ACEOF
7819 /* end confdefs.h.  */
7820
7821 /* Override any gcc2 internal prototype to avoid an error.  */
7822 #ifdef __cplusplus
7823 extern "C"
7824 #endif
7825 /* We use char because int might match the return type of a gcc2
7826    builtin and then its argument prototype would still apply.  */
7827 char gluLookAt ();
7828 int
7829 main ()
7830 {
7831 gluLookAt ();
7832   ;
7833   return 0;
7834 }
7835 _ACEOF
7836 rm -f conftest.$ac_objext conftest$ac_exeext
7837 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7838   (eval $ac_link) 2>&5
7839   ac_status=$?
7840   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7841   (exit $ac_status); } &&
7842          { ac_try='test -s conftest$ac_exeext'
7843   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7844   (eval $ac_try) 2>&5
7845   ac_status=$?
7846   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7847   (exit $ac_status); }; }; then
7848   ac_cv_lib_GLU_gluLookAt=yes
7849 else
7850   echo "$as_me: failed program was:" >&5
7851 sed 's/^/| /' conftest.$ac_ext >&5
7852
7853 ac_cv_lib_GLU_gluLookAt=no
7854 fi
7855 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7856 LIBS=$ac_check_lib_save_LIBS
7857 fi
7858 echo "$as_me:$LINENO: result: $ac_cv_lib_GLU_gluLookAt" >&5
7859 echo "${ECHO_T}$ac_cv_lib_GLU_gluLookAt" >&6
7860 if test $ac_cv_lib_GLU_gluLookAt = yes; then
7861   OPENGL_LIBS="$OPENGL_LIBS -lGLU"
7862                              GLU32FILES='$(GLU32FILES)'
7863
7864 fi
7865
7866              fi
7867          fi
7868     fi
7869
7870         NASLIBS=""
7871
7872
7873 for ac_header in audio/audiolib.h
7874 do
7875 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7876 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7877   echo "$as_me:$LINENO: checking for $ac_header" >&5
7878 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7879 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7880   echo $ECHO_N "(cached) $ECHO_C" >&6
7881 fi
7882 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7883 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7884 else
7885   # Is the header compilable?
7886 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7887 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7888 cat >conftest.$ac_ext <<_ACEOF
7889 #line $LINENO "configure"
7890 /* confdefs.h.  */
7891 _ACEOF
7892 cat confdefs.h >>conftest.$ac_ext
7893 cat >>conftest.$ac_ext <<_ACEOF
7894 /* end confdefs.h.  */
7895 $ac_includes_default
7896 #include <$ac_header>
7897 _ACEOF
7898 rm -f conftest.$ac_objext
7899 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7900   (eval $ac_compile) 2>&5
7901   ac_status=$?
7902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7903   (exit $ac_status); } &&
7904          { ac_try='test -s conftest.$ac_objext'
7905   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7906   (eval $ac_try) 2>&5
7907   ac_status=$?
7908   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7909   (exit $ac_status); }; }; then
7910   ac_header_compiler=yes
7911 else
7912   echo "$as_me: failed program was:" >&5
7913 sed 's/^/| /' conftest.$ac_ext >&5
7914
7915 ac_header_compiler=no
7916 fi
7917 rm -f conftest.$ac_objext conftest.$ac_ext
7918 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7919 echo "${ECHO_T}$ac_header_compiler" >&6
7920
7921 # Is the header present?
7922 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7923 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7924 cat >conftest.$ac_ext <<_ACEOF
7925 #line $LINENO "configure"
7926 /* confdefs.h.  */
7927 _ACEOF
7928 cat confdefs.h >>conftest.$ac_ext
7929 cat >>conftest.$ac_ext <<_ACEOF
7930 /* end confdefs.h.  */
7931 #include <$ac_header>
7932 _ACEOF
7933 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7934   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7935   ac_status=$?
7936   grep -v '^ *+' conftest.er1 >conftest.err
7937   rm -f conftest.er1
7938   cat conftest.err >&5
7939   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7940   (exit $ac_status); } >/dev/null; then
7941   if test -s conftest.err; then
7942     ac_cpp_err=$ac_c_preproc_warn_flag
7943   else
7944     ac_cpp_err=
7945   fi
7946 else
7947   ac_cpp_err=yes
7948 fi
7949 if test -z "$ac_cpp_err"; then
7950   ac_header_preproc=yes
7951 else
7952   echo "$as_me: failed program was:" >&5
7953 sed 's/^/| /' conftest.$ac_ext >&5
7954
7955   ac_header_preproc=no
7956 fi
7957 rm -f conftest.err conftest.$ac_ext
7958 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7959 echo "${ECHO_T}$ac_header_preproc" >&6
7960
7961 # So?  What about this header?
7962 case $ac_header_compiler:$ac_header_preproc in
7963   yes:no )
7964     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7965 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7966     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7967 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7968     (
7969       cat <<\_ASBOX
7970 ## ------------------------------------ ##
7971 ## Report this to bug-autoconf@gnu.org. ##
7972 ## ------------------------------------ ##
7973 _ASBOX
7974     ) |
7975       sed "s/^/$as_me: WARNING:     /" >&2
7976     ;;
7977   no:yes )
7978     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7979 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7980     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7981 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7982     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7983 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7984     (
7985       cat <<\_ASBOX
7986 ## ------------------------------------ ##
7987 ## Report this to bug-autoconf@gnu.org. ##
7988 ## ------------------------------------ ##
7989 _ASBOX
7990     ) |
7991       sed "s/^/$as_me: WARNING:     /" >&2
7992     ;;
7993 esac
7994 echo "$as_me:$LINENO: checking for $ac_header" >&5
7995 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7996 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7997   echo $ECHO_N "(cached) $ECHO_C" >&6
7998 else
7999   eval "$as_ac_Header=$ac_header_preproc"
8000 fi
8001 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8002 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8003
8004 fi
8005 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8006   cat >>confdefs.h <<_ACEOF
8007 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8008 _ACEOF
8009
8010 for ac_header in audio/soundlib.h
8011 do
8012 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8013 echo "$as_me:$LINENO: checking for $ac_header" >&5
8014 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8015 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8016   echo $ECHO_N "(cached) $ECHO_C" >&6
8017 else
8018   cat >conftest.$ac_ext <<_ACEOF
8019 #line $LINENO "configure"
8020 /* confdefs.h.  */
8021 _ACEOF
8022 cat confdefs.h >>conftest.$ac_ext
8023 cat >>conftest.$ac_ext <<_ACEOF
8024 /* end confdefs.h.  */
8025 #include <audio/audiolib.h>
8026
8027 #include <$ac_header>
8028 _ACEOF
8029 rm -f conftest.$ac_objext
8030 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8031   (eval $ac_compile) 2>&5
8032   ac_status=$?
8033   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8034   (exit $ac_status); } &&
8035          { ac_try='test -s conftest.$ac_objext'
8036   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8037   (eval $ac_try) 2>&5
8038   ac_status=$?
8039   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8040   (exit $ac_status); }; }; then
8041   eval "$as_ac_Header=yes"
8042 else
8043   echo "$as_me: failed program was:" >&5
8044 sed 's/^/| /' conftest.$ac_ext >&5
8045
8046 eval "$as_ac_Header=no"
8047 fi
8048 rm -f conftest.$ac_objext conftest.$ac_ext
8049 fi
8050 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8051 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8052 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8053   cat >>confdefs.h <<_ACEOF
8054 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8055 _ACEOF
8056
8057 fi
8058
8059 done
8060
8061           echo "$as_me:$LINENO: checking for AuCreateFlow in -laudio" >&5
8062 echo $ECHO_N "checking for AuCreateFlow in -laudio... $ECHO_C" >&6
8063 if test "${ac_cv_lib_audio_AuCreateFlow+set}" = set; then
8064   echo $ECHO_N "(cached) $ECHO_C" >&6
8065 else
8066   ac_check_lib_save_LIBS=$LIBS
8067 LIBS="-laudio -lXt $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
8068 cat >conftest.$ac_ext <<_ACEOF
8069 #line $LINENO "configure"
8070 /* confdefs.h.  */
8071 _ACEOF
8072 cat confdefs.h >>conftest.$ac_ext
8073 cat >>conftest.$ac_ext <<_ACEOF
8074 /* end confdefs.h.  */
8075
8076 /* Override any gcc2 internal prototype to avoid an error.  */
8077 #ifdef __cplusplus
8078 extern "C"
8079 #endif
8080 /* We use char because int might match the return type of a gcc2
8081    builtin and then its argument prototype would still apply.  */
8082 char AuCreateFlow ();
8083 int
8084 main ()
8085 {
8086 AuCreateFlow ();
8087   ;
8088   return 0;
8089 }
8090 _ACEOF
8091 rm -f conftest.$ac_objext conftest$ac_exeext
8092 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8093   (eval $ac_link) 2>&5
8094   ac_status=$?
8095   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8096   (exit $ac_status); } &&
8097          { ac_try='test -s conftest$ac_exeext'
8098   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8099   (eval $ac_try) 2>&5
8100   ac_status=$?
8101   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8102   (exit $ac_status); }; }; then
8103   ac_cv_lib_audio_AuCreateFlow=yes
8104 else
8105   echo "$as_me: failed program was:" >&5
8106 sed 's/^/| /' conftest.$ac_ext >&5
8107
8108 ac_cv_lib_audio_AuCreateFlow=no
8109 fi
8110 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8111 LIBS=$ac_check_lib_save_LIBS
8112 fi
8113 echo "$as_me:$LINENO: result: $ac_cv_lib_audio_AuCreateFlow" >&5
8114 echo "${ECHO_T}$ac_cv_lib_audio_AuCreateFlow" >&6
8115 if test $ac_cv_lib_audio_AuCreateFlow = yes; then
8116
8117 cat >>confdefs.h <<\_ACEOF
8118 #define HAVE_NAS 1
8119 _ACEOF
8120
8121                         NASLIBS="-laudio -lXt $X_LIBS -lXext -lX11 $X_EXTRA_LIBS"
8122 fi
8123
8124 fi
8125
8126 done
8127
8128
8129     CPPFLAGS="$ac_save_CPPFLAGS"
8130     XFILES='$(XFILES)'
8131 else
8132     XLIB=""
8133     X_CFLAGS=""
8134     X_LIBS=""
8135 fi
8136
8137 CURSESLIBS=""
8138 if test "x$with_curses" != "xno"
8139 then
8140
8141 for ac_header in ncurses.h
8142 do
8143 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8144 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8145   echo "$as_me:$LINENO: checking for $ac_header" >&5
8146 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8147 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8148   echo $ECHO_N "(cached) $ECHO_C" >&6
8149 fi
8150 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8151 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8152 else
8153   # Is the header compilable?
8154 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8155 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8156 cat >conftest.$ac_ext <<_ACEOF
8157 #line $LINENO "configure"
8158 /* confdefs.h.  */
8159 _ACEOF
8160 cat confdefs.h >>conftest.$ac_ext
8161 cat >>conftest.$ac_ext <<_ACEOF
8162 /* end confdefs.h.  */
8163 $ac_includes_default
8164 #include <$ac_header>
8165 _ACEOF
8166 rm -f conftest.$ac_objext
8167 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8168   (eval $ac_compile) 2>&5
8169   ac_status=$?
8170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8171   (exit $ac_status); } &&
8172          { ac_try='test -s conftest.$ac_objext'
8173   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8174   (eval $ac_try) 2>&5
8175   ac_status=$?
8176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8177   (exit $ac_status); }; }; then
8178   ac_header_compiler=yes
8179 else
8180   echo "$as_me: failed program was:" >&5
8181 sed 's/^/| /' conftest.$ac_ext >&5
8182
8183 ac_header_compiler=no
8184 fi
8185 rm -f conftest.$ac_objext conftest.$ac_ext
8186 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8187 echo "${ECHO_T}$ac_header_compiler" >&6
8188
8189 # Is the header present?
8190 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8191 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8192 cat >conftest.$ac_ext <<_ACEOF
8193 #line $LINENO "configure"
8194 /* confdefs.h.  */
8195 _ACEOF
8196 cat confdefs.h >>conftest.$ac_ext
8197 cat >>conftest.$ac_ext <<_ACEOF
8198 /* end confdefs.h.  */
8199 #include <$ac_header>
8200 _ACEOF
8201 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8202   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8203   ac_status=$?
8204   grep -v '^ *+' conftest.er1 >conftest.err
8205   rm -f conftest.er1
8206   cat conftest.err >&5
8207   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8208   (exit $ac_status); } >/dev/null; then
8209   if test -s conftest.err; then
8210     ac_cpp_err=$ac_c_preproc_warn_flag
8211   else
8212     ac_cpp_err=
8213   fi
8214 else
8215   ac_cpp_err=yes
8216 fi
8217 if test -z "$ac_cpp_err"; then
8218   ac_header_preproc=yes
8219 else
8220   echo "$as_me: failed program was:" >&5
8221 sed 's/^/| /' conftest.$ac_ext >&5
8222
8223   ac_header_preproc=no
8224 fi
8225 rm -f conftest.err conftest.$ac_ext
8226 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8227 echo "${ECHO_T}$ac_header_preproc" >&6
8228
8229 # So?  What about this header?
8230 case $ac_header_compiler:$ac_header_preproc in
8231   yes:no )
8232     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8233 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8234     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8235 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8236     (
8237       cat <<\_ASBOX
8238 ## ------------------------------------ ##
8239 ## Report this to bug-autoconf@gnu.org. ##
8240 ## ------------------------------------ ##
8241 _ASBOX
8242     ) |
8243       sed "s/^/$as_me: WARNING:     /" >&2
8244     ;;
8245   no:yes )
8246     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8247 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8248     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8249 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8250     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8251 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8252     (
8253       cat <<\_ASBOX
8254 ## ------------------------------------ ##
8255 ## Report this to bug-autoconf@gnu.org. ##
8256 ## ------------------------------------ ##
8257 _ASBOX
8258     ) |
8259       sed "s/^/$as_me: WARNING:     /" >&2
8260     ;;
8261 esac
8262 echo "$as_me:$LINENO: checking for $ac_header" >&5
8263 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8264 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8265   echo $ECHO_N "(cached) $ECHO_C" >&6
8266 else
8267   eval "$as_ac_Header=$ac_header_preproc"
8268 fi
8269 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8270 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8271
8272 fi
8273 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8274   cat >>confdefs.h <<_ACEOF
8275 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8276 _ACEOF
8277  echo "$as_me:$LINENO: checking for waddch in -lncurses" >&5
8278 echo $ECHO_N "checking for waddch in -lncurses... $ECHO_C" >&6
8279 if test "${ac_cv_lib_ncurses_waddch+set}" = set; then
8280   echo $ECHO_N "(cached) $ECHO_C" >&6
8281 else
8282   ac_check_lib_save_LIBS=$LIBS
8283 LIBS="-lncurses  $LIBS"
8284 cat >conftest.$ac_ext <<_ACEOF
8285 #line $LINENO "configure"
8286 /* confdefs.h.  */
8287 _ACEOF
8288 cat confdefs.h >>conftest.$ac_ext
8289 cat >>conftest.$ac_ext <<_ACEOF
8290 /* end confdefs.h.  */
8291
8292 /* Override any gcc2 internal prototype to avoid an error.  */
8293 #ifdef __cplusplus
8294 extern "C"
8295 #endif
8296 /* We use char because int might match the return type of a gcc2
8297    builtin and then its argument prototype would still apply.  */
8298 char waddch ();
8299 int
8300 main ()
8301 {
8302 waddch ();
8303   ;
8304   return 0;
8305 }
8306 _ACEOF
8307 rm -f conftest.$ac_objext conftest$ac_exeext
8308 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8309   (eval $ac_link) 2>&5
8310   ac_status=$?
8311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8312   (exit $ac_status); } &&
8313          { ac_try='test -s conftest$ac_exeext'
8314   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8315   (eval $ac_try) 2>&5
8316   ac_status=$?
8317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8318   (exit $ac_status); }; }; then
8319   ac_cv_lib_ncurses_waddch=yes
8320 else
8321   echo "$as_me: failed program was:" >&5
8322 sed 's/^/| /' conftest.$ac_ext >&5
8323
8324 ac_cv_lib_ncurses_waddch=no
8325 fi
8326 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8327 LIBS=$ac_check_lib_save_LIBS
8328 fi
8329 echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_waddch" >&5
8330 echo "${ECHO_T}$ac_cv_lib_ncurses_waddch" >&6
8331 if test $ac_cv_lib_ncurses_waddch = yes; then
8332
8333 cat >>confdefs.h <<\_ACEOF
8334 #define HAVE_LIBNCURSES 1
8335 _ACEOF
8336
8337              CURSESLIBS="-lncurses"
8338 else
8339
8340 for ac_header in curses.h
8341 do
8342 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8343 if eval "test \"\${$as_ac_Header+set}\" = set"; then
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 fi
8349 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8350 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8351 else
8352   # Is the header compilable?
8353 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8354 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8355 cat >conftest.$ac_ext <<_ACEOF
8356 #line $LINENO "configure"
8357 /* confdefs.h.  */
8358 _ACEOF
8359 cat confdefs.h >>conftest.$ac_ext
8360 cat >>conftest.$ac_ext <<_ACEOF
8361 /* end confdefs.h.  */
8362 $ac_includes_default
8363 #include <$ac_header>
8364 _ACEOF
8365 rm -f conftest.$ac_objext
8366 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8367   (eval $ac_compile) 2>&5
8368   ac_status=$?
8369   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8370   (exit $ac_status); } &&
8371          { ac_try='test -s conftest.$ac_objext'
8372   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8373   (eval $ac_try) 2>&5
8374   ac_status=$?
8375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8376   (exit $ac_status); }; }; then
8377   ac_header_compiler=yes
8378 else
8379   echo "$as_me: failed program was:" >&5
8380 sed 's/^/| /' conftest.$ac_ext >&5
8381
8382 ac_header_compiler=no
8383 fi
8384 rm -f conftest.$ac_objext conftest.$ac_ext
8385 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8386 echo "${ECHO_T}$ac_header_compiler" >&6
8387
8388 # Is the header present?
8389 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8390 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8391 cat >conftest.$ac_ext <<_ACEOF
8392 #line $LINENO "configure"
8393 /* confdefs.h.  */
8394 _ACEOF
8395 cat confdefs.h >>conftest.$ac_ext
8396 cat >>conftest.$ac_ext <<_ACEOF
8397 /* end confdefs.h.  */
8398 #include <$ac_header>
8399 _ACEOF
8400 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8401   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8402   ac_status=$?
8403   grep -v '^ *+' conftest.er1 >conftest.err
8404   rm -f conftest.er1
8405   cat conftest.err >&5
8406   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8407   (exit $ac_status); } >/dev/null; then
8408   if test -s conftest.err; then
8409     ac_cpp_err=$ac_c_preproc_warn_flag
8410   else
8411     ac_cpp_err=
8412   fi
8413 else
8414   ac_cpp_err=yes
8415 fi
8416 if test -z "$ac_cpp_err"; then
8417   ac_header_preproc=yes
8418 else
8419   echo "$as_me: failed program was:" >&5
8420 sed 's/^/| /' conftest.$ac_ext >&5
8421
8422   ac_header_preproc=no
8423 fi
8424 rm -f conftest.err conftest.$ac_ext
8425 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8426 echo "${ECHO_T}$ac_header_preproc" >&6
8427
8428 # So?  What about this header?
8429 case $ac_header_compiler:$ac_header_preproc in
8430   yes:no )
8431     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8432 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8433     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8434 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8435     (
8436       cat <<\_ASBOX
8437 ## ------------------------------------ ##
8438 ## Report this to bug-autoconf@gnu.org. ##
8439 ## ------------------------------------ ##
8440 _ASBOX
8441     ) |
8442       sed "s/^/$as_me: WARNING:     /" >&2
8443     ;;
8444   no:yes )
8445     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8446 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8447     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8448 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8449     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8450 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8451     (
8452       cat <<\_ASBOX
8453 ## ------------------------------------ ##
8454 ## Report this to bug-autoconf@gnu.org. ##
8455 ## ------------------------------------ ##
8456 _ASBOX
8457     ) |
8458       sed "s/^/$as_me: WARNING:     /" >&2
8459     ;;
8460 esac
8461 echo "$as_me:$LINENO: checking for $ac_header" >&5
8462 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8463 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8464   echo $ECHO_N "(cached) $ECHO_C" >&6
8465 else
8466   eval "$as_ac_Header=$ac_header_preproc"
8467 fi
8468 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8469 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8470
8471 fi
8472 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8473   cat >>confdefs.h <<_ACEOF
8474 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8475 _ACEOF
8476  echo "$as_me:$LINENO: checking for waddch in -lcurses" >&5
8477 echo $ECHO_N "checking for waddch in -lcurses... $ECHO_C" >&6
8478 if test "${ac_cv_lib_curses_waddch+set}" = set; then
8479   echo $ECHO_N "(cached) $ECHO_C" >&6
8480 else
8481   ac_check_lib_save_LIBS=$LIBS
8482 LIBS="-lcurses  $LIBS"
8483 cat >conftest.$ac_ext <<_ACEOF
8484 #line $LINENO "configure"
8485 /* confdefs.h.  */
8486 _ACEOF
8487 cat confdefs.h >>conftest.$ac_ext
8488 cat >>conftest.$ac_ext <<_ACEOF
8489 /* end confdefs.h.  */
8490
8491 /* Override any gcc2 internal prototype to avoid an error.  */
8492 #ifdef __cplusplus
8493 extern "C"
8494 #endif
8495 /* We use char because int might match the return type of a gcc2
8496    builtin and then its argument prototype would still apply.  */
8497 char waddch ();
8498 int
8499 main ()
8500 {
8501 waddch ();
8502   ;
8503   return 0;
8504 }
8505 _ACEOF
8506 rm -f conftest.$ac_objext conftest$ac_exeext
8507 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8508   (eval $ac_link) 2>&5
8509   ac_status=$?
8510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8511   (exit $ac_status); } &&
8512          { ac_try='test -s conftest$ac_exeext'
8513   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8514   (eval $ac_try) 2>&5
8515   ac_status=$?
8516   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8517   (exit $ac_status); }; }; then
8518   ac_cv_lib_curses_waddch=yes
8519 else
8520   echo "$as_me: failed program was:" >&5
8521 sed 's/^/| /' conftest.$ac_ext >&5
8522
8523 ac_cv_lib_curses_waddch=no
8524 fi
8525 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8526 LIBS=$ac_check_lib_save_LIBS
8527 fi
8528 echo "$as_me:$LINENO: result: $ac_cv_lib_curses_waddch" >&5
8529 echo "${ECHO_T}$ac_cv_lib_curses_waddch" >&6
8530 if test $ac_cv_lib_curses_waddch = yes; then
8531
8532 cat >>confdefs.h <<\_ACEOF
8533 #define HAVE_LIBCURSES 1
8534 _ACEOF
8535
8536                       CURSESLIBS="-lcurses"
8537 fi
8538
8539 fi
8540
8541 done
8542
8543 fi
8544
8545 fi
8546
8547 done
8548
8549     saved_libs="$LIBS"
8550     LIBS="$CURSESLIBS $LIBS"
8551
8552
8553 for ac_func in getbkgd resizeterm
8554 do
8555 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8556 echo "$as_me:$LINENO: checking for $ac_func" >&5
8557 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8558 if eval "test \"\${$as_ac_var+set}\" = set"; then
8559   echo $ECHO_N "(cached) $ECHO_C" >&6
8560 else
8561   cat >conftest.$ac_ext <<_ACEOF
8562 #line $LINENO "configure"
8563 /* confdefs.h.  */
8564 _ACEOF
8565 cat confdefs.h >>conftest.$ac_ext
8566 cat >>conftest.$ac_ext <<_ACEOF
8567 /* end confdefs.h.  */
8568 /* System header to define __stub macros and hopefully few prototypes,
8569     which can conflict with char $ac_func (); below.
8570     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8571     <limits.h> exists even on freestanding compilers.  */
8572 #ifdef __STDC__
8573 # include <limits.h>
8574 #else
8575 # include <assert.h>
8576 #endif
8577 /* Override any gcc2 internal prototype to avoid an error.  */
8578 #ifdef __cplusplus
8579 extern "C"
8580 {
8581 #endif
8582 /* We use char because int might match the return type of a gcc2
8583    builtin and then its argument prototype would still apply.  */
8584 char $ac_func ();
8585 /* The GNU C library defines this for functions which it implements
8586     to always fail with ENOSYS.  Some functions are actually named
8587     something starting with __ and the normal name is an alias.  */
8588 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8589 choke me
8590 #else
8591 char (*f) () = $ac_func;
8592 #endif
8593 #ifdef __cplusplus
8594 }
8595 #endif
8596
8597 int
8598 main ()
8599 {
8600 return f != $ac_func;
8601   ;
8602   return 0;
8603 }
8604 _ACEOF
8605 rm -f conftest.$ac_objext conftest$ac_exeext
8606 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8607   (eval $ac_link) 2>&5
8608   ac_status=$?
8609   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8610   (exit $ac_status); } &&
8611          { ac_try='test -s conftest$ac_exeext'
8612   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8613   (eval $ac_try) 2>&5
8614   ac_status=$?
8615   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8616   (exit $ac_status); }; }; then
8617   eval "$as_ac_var=yes"
8618 else
8619   echo "$as_me: failed program was:" >&5
8620 sed 's/^/| /' conftest.$ac_ext >&5
8621
8622 eval "$as_ac_var=no"
8623 fi
8624 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8625 fi
8626 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8627 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8628 if test `eval echo '${'$as_ac_var'}'` = yes; then
8629   cat >>confdefs.h <<_ACEOF
8630 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8631 _ACEOF
8632
8633 fi
8634 done
8635
8636     LIBS="$saved_libs"
8637 fi
8638
8639
8640 # Extract the first word of "sane-config", so it can be a program name with args.
8641 set dummy sane-config; ac_word=$2
8642 echo "$as_me:$LINENO: checking for $ac_word" >&5
8643 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8644 if test "${ac_cv_prog_sane_devel+set}" = set; then
8645   echo $ECHO_N "(cached) $ECHO_C" >&6
8646 else
8647   if test -n "$sane_devel"; then
8648   ac_cv_prog_sane_devel="$sane_devel" # Let the user override the test.
8649 else
8650 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8651 for as_dir in $PATH
8652 do
8653   IFS=$as_save_IFS
8654   test -z "$as_dir" && as_dir=.
8655   for ac_exec_ext in '' $ac_executable_extensions; do
8656   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8657     ac_cv_prog_sane_devel="sane-config"
8658     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8659     break 2
8660   fi
8661 done
8662 done
8663
8664   test -z "$ac_cv_prog_sane_devel" && ac_cv_prog_sane_devel="no"
8665 fi
8666 fi
8667 sane_devel=$ac_cv_prog_sane_devel
8668 if test -n "$sane_devel"; then
8669   echo "$as_me:$LINENO: result: $sane_devel" >&5
8670 echo "${ECHO_T}$sane_devel" >&6
8671 else
8672   echo "$as_me:$LINENO: result: no" >&5
8673 echo "${ECHO_T}no" >&6
8674 fi
8675
8676 if test "$sane_devel" = "no"
8677 then
8678     SANELIBS=""
8679     SANEINCL=""
8680 else
8681     SANELIBS="`$sane_devel --libs`"
8682     SANEINCL="`$sane_devel --cflags`"
8683     ac_save_CPPFLAGS="$CPPFLAGS"
8684     ac_save_LIBS="$LIBS"
8685     CPPFLAGS="$CPPFLAGS $SANEINCL"
8686     LIBS="$LIBS $SANELIBS"
8687     if test "${ac_cv_header_sane_sane_h+set}" = set; then
8688   echo "$as_me:$LINENO: checking for sane/sane.h" >&5
8689 echo $ECHO_N "checking for sane/sane.h... $ECHO_C" >&6
8690 if test "${ac_cv_header_sane_sane_h+set}" = set; then
8691   echo $ECHO_N "(cached) $ECHO_C" >&6
8692 fi
8693 echo "$as_me:$LINENO: result: $ac_cv_header_sane_sane_h" >&5
8694 echo "${ECHO_T}$ac_cv_header_sane_sane_h" >&6
8695 else
8696   # Is the header compilable?
8697 echo "$as_me:$LINENO: checking sane/sane.h usability" >&5
8698 echo $ECHO_N "checking sane/sane.h usability... $ECHO_C" >&6
8699 cat >conftest.$ac_ext <<_ACEOF
8700 #line $LINENO "configure"
8701 /* confdefs.h.  */
8702 _ACEOF
8703 cat confdefs.h >>conftest.$ac_ext
8704 cat >>conftest.$ac_ext <<_ACEOF
8705 /* end confdefs.h.  */
8706 $ac_includes_default
8707 #include <sane/sane.h>
8708 _ACEOF
8709 rm -f conftest.$ac_objext
8710 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8711   (eval $ac_compile) 2>&5
8712   ac_status=$?
8713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8714   (exit $ac_status); } &&
8715          { ac_try='test -s conftest.$ac_objext'
8716   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8717   (eval $ac_try) 2>&5
8718   ac_status=$?
8719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8720   (exit $ac_status); }; }; then
8721   ac_header_compiler=yes
8722 else
8723   echo "$as_me: failed program was:" >&5
8724 sed 's/^/| /' conftest.$ac_ext >&5
8725
8726 ac_header_compiler=no
8727 fi
8728 rm -f conftest.$ac_objext conftest.$ac_ext
8729 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8730 echo "${ECHO_T}$ac_header_compiler" >&6
8731
8732 # Is the header present?
8733 echo "$as_me:$LINENO: checking sane/sane.h presence" >&5
8734 echo $ECHO_N "checking sane/sane.h presence... $ECHO_C" >&6
8735 cat >conftest.$ac_ext <<_ACEOF
8736 #line $LINENO "configure"
8737 /* confdefs.h.  */
8738 _ACEOF
8739 cat confdefs.h >>conftest.$ac_ext
8740 cat >>conftest.$ac_ext <<_ACEOF
8741 /* end confdefs.h.  */
8742 #include <sane/sane.h>
8743 _ACEOF
8744 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8745   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8746   ac_status=$?
8747   grep -v '^ *+' conftest.er1 >conftest.err
8748   rm -f conftest.er1
8749   cat conftest.err >&5
8750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8751   (exit $ac_status); } >/dev/null; then
8752   if test -s conftest.err; then
8753     ac_cpp_err=$ac_c_preproc_warn_flag
8754   else
8755     ac_cpp_err=
8756   fi
8757 else
8758   ac_cpp_err=yes
8759 fi
8760 if test -z "$ac_cpp_err"; then
8761   ac_header_preproc=yes
8762 else
8763   echo "$as_me: failed program was:" >&5
8764 sed 's/^/| /' conftest.$ac_ext >&5
8765
8766   ac_header_preproc=no
8767 fi
8768 rm -f conftest.err conftest.$ac_ext
8769 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8770 echo "${ECHO_T}$ac_header_preproc" >&6
8771
8772 # So?  What about this header?
8773 case $ac_header_compiler:$ac_header_preproc in
8774   yes:no )
8775     { echo "$as_me:$LINENO: WARNING: sane/sane.h: accepted by the compiler, rejected by the preprocessor!" >&5
8776 echo "$as_me: WARNING: sane/sane.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8777     { echo "$as_me:$LINENO: WARNING: sane/sane.h: proceeding with the preprocessor's result" >&5
8778 echo "$as_me: WARNING: sane/sane.h: proceeding with the preprocessor's result" >&2;}
8779     (
8780       cat <<\_ASBOX
8781 ## ------------------------------------ ##
8782 ## Report this to bug-autoconf@gnu.org. ##
8783 ## ------------------------------------ ##
8784 _ASBOX
8785     ) |
8786       sed "s/^/$as_me: WARNING:     /" >&2
8787     ;;
8788   no:yes )
8789     { echo "$as_me:$LINENO: WARNING: sane/sane.h: present but cannot be compiled" >&5
8790 echo "$as_me: WARNING: sane/sane.h: present but cannot be compiled" >&2;}
8791     { echo "$as_me:$LINENO: WARNING: sane/sane.h: check for missing prerequisite headers?" >&5
8792 echo "$as_me: WARNING: sane/sane.h: check for missing prerequisite headers?" >&2;}
8793     { echo "$as_me:$LINENO: WARNING: sane/sane.h: proceeding with the preprocessor's result" >&5
8794 echo "$as_me: WARNING: sane/sane.h: proceeding with the preprocessor's result" >&2;}
8795     (
8796       cat <<\_ASBOX
8797 ## ------------------------------------ ##
8798 ## Report this to bug-autoconf@gnu.org. ##
8799 ## ------------------------------------ ##
8800 _ASBOX
8801     ) |
8802       sed "s/^/$as_me: WARNING:     /" >&2
8803     ;;
8804 esac
8805 echo "$as_me:$LINENO: checking for sane/sane.h" >&5
8806 echo $ECHO_N "checking for sane/sane.h... $ECHO_C" >&6
8807 if test "${ac_cv_header_sane_sane_h+set}" = set; then
8808   echo $ECHO_N "(cached) $ECHO_C" >&6
8809 else
8810   ac_cv_header_sane_sane_h=$ac_header_preproc
8811 fi
8812 echo "$as_me:$LINENO: result: $ac_cv_header_sane_sane_h" >&5
8813 echo "${ECHO_T}$ac_cv_header_sane_sane_h" >&6
8814
8815 fi
8816 if test $ac_cv_header_sane_sane_h = yes; then
8817   echo "$as_me:$LINENO: checking for sane_open in -lsane" >&5
8818 echo $ECHO_N "checking for sane_open in -lsane... $ECHO_C" >&6
8819 if test "${ac_cv_lib_sane_sane_open+set}" = set; then
8820   echo $ECHO_N "(cached) $ECHO_C" >&6
8821 else
8822   ac_check_lib_save_LIBS=$LIBS
8823 LIBS="-lsane  $LIBS"
8824 cat >conftest.$ac_ext <<_ACEOF
8825 #line $LINENO "configure"
8826 /* confdefs.h.  */
8827 _ACEOF
8828 cat confdefs.h >>conftest.$ac_ext
8829 cat >>conftest.$ac_ext <<_ACEOF
8830 /* end confdefs.h.  */
8831
8832 /* Override any gcc2 internal prototype to avoid an error.  */
8833 #ifdef __cplusplus
8834 extern "C"
8835 #endif
8836 /* We use char because int might match the return type of a gcc2
8837    builtin and then its argument prototype would still apply.  */
8838 char sane_open ();
8839 int
8840 main ()
8841 {
8842 sane_open ();
8843   ;
8844   return 0;
8845 }
8846 _ACEOF
8847 rm -f conftest.$ac_objext conftest$ac_exeext
8848 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8849   (eval $ac_link) 2>&5
8850   ac_status=$?
8851   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8852   (exit $ac_status); } &&
8853          { ac_try='test -s conftest$ac_exeext'
8854   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8855   (eval $ac_try) 2>&5
8856   ac_status=$?
8857   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8858   (exit $ac_status); }; }; then
8859   ac_cv_lib_sane_sane_open=yes
8860 else
8861   echo "$as_me: failed program was:" >&5
8862 sed 's/^/| /' conftest.$ac_ext >&5
8863
8864 ac_cv_lib_sane_sane_open=no
8865 fi
8866 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8867 LIBS=$ac_check_lib_save_LIBS
8868 fi
8869 echo "$as_me:$LINENO: result: $ac_cv_lib_sane_sane_open" >&5
8870 echo "${ECHO_T}$ac_cv_lib_sane_sane_open" >&6
8871 if test $ac_cv_lib_sane_sane_open = yes; then
8872
8873 cat >>confdefs.h <<\_ACEOF
8874 #define HAVE_SANE 1
8875 _ACEOF
8876
8877 else
8878   SANELIBS=""
8879                                   SANEINCL=""
8880 fi
8881
8882 else
8883   SANELIBS=""
8884                     SANEINCL=""
8885 fi
8886
8887
8888     LIBS="$ac_save_LIBS"
8889     CPPFLAGS="$ac_save_CPPFLAGS"
8890 fi
8891
8892
8893
8894 echo "$as_me:$LINENO: checking for FT_Init_FreeType in -lfreetype" >&5
8895 echo $ECHO_N "checking for FT_Init_FreeType in -lfreetype... $ECHO_C" >&6
8896 if test "${ac_cv_lib_freetype_FT_Init_FreeType+set}" = set; then
8897   echo $ECHO_N "(cached) $ECHO_C" >&6
8898 else
8899   ac_check_lib_save_LIBS=$LIBS
8900 LIBS="-lfreetype $X_LIBS $LIBS"
8901 cat >conftest.$ac_ext <<_ACEOF
8902 #line $LINENO "configure"
8903 /* confdefs.h.  */
8904 _ACEOF
8905 cat confdefs.h >>conftest.$ac_ext
8906 cat >>conftest.$ac_ext <<_ACEOF
8907 /* end confdefs.h.  */
8908
8909 /* Override any gcc2 internal prototype to avoid an error.  */
8910 #ifdef __cplusplus
8911 extern "C"
8912 #endif
8913 /* We use char because int might match the return type of a gcc2
8914    builtin and then its argument prototype would still apply.  */
8915 char FT_Init_FreeType ();
8916 int
8917 main ()
8918 {
8919 FT_Init_FreeType ();
8920   ;
8921   return 0;
8922 }
8923 _ACEOF
8924 rm -f conftest.$ac_objext conftest$ac_exeext
8925 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8926   (eval $ac_link) 2>&5
8927   ac_status=$?
8928   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8929   (exit $ac_status); } &&
8930          { ac_try='test -s conftest$ac_exeext'
8931   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8932   (eval $ac_try) 2>&5
8933   ac_status=$?
8934   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8935   (exit $ac_status); }; }; then
8936   ac_cv_lib_freetype_FT_Init_FreeType=yes
8937 else
8938   echo "$as_me: failed program was:" >&5
8939 sed 's/^/| /' conftest.$ac_ext >&5
8940
8941 ac_cv_lib_freetype_FT_Init_FreeType=no
8942 fi
8943 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8944 LIBS=$ac_check_lib_save_LIBS
8945 fi
8946 echo "$as_me:$LINENO: result: $ac_cv_lib_freetype_FT_Init_FreeType" >&5
8947 echo "${ECHO_T}$ac_cv_lib_freetype_FT_Init_FreeType" >&6
8948 if test $ac_cv_lib_freetype_FT_Init_FreeType = yes; then
8949   ft_lib=yes
8950 else
8951   ft_lib=no
8952 fi
8953
8954 if test "$ft_lib" = "no"
8955 then
8956     FREETYPEINCL=""
8957     wine_cv_msg_freetype=no
8958 else
8959     # Extract the first word of "freetype-config", so it can be a program name with args.
8960 set dummy freetype-config; ac_word=$2
8961 echo "$as_me:$LINENO: checking for $ac_word" >&5
8962 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8963 if test "${ac_cv_prog_ft_devel+set}" = set; then
8964   echo $ECHO_N "(cached) $ECHO_C" >&6
8965 else
8966   if test -n "$ft_devel"; then
8967   ac_cv_prog_ft_devel="$ft_devel" # Let the user override the test.
8968 else
8969 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8970 for as_dir in $PATH
8971 do
8972   IFS=$as_save_IFS
8973   test -z "$as_dir" && as_dir=.
8974   for ac_exec_ext in '' $ac_executable_extensions; do
8975   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8976     ac_cv_prog_ft_devel="freetype-config"
8977     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8978     break 2
8979   fi
8980 done
8981 done
8982
8983   test -z "$ac_cv_prog_ft_devel" && ac_cv_prog_ft_devel="no"
8984 fi
8985 fi
8986 ft_devel=$ac_cv_prog_ft_devel
8987 if test -n "$ft_devel"; then
8988   echo "$as_me:$LINENO: result: $ft_devel" >&5
8989 echo "${ECHO_T}$ft_devel" >&6
8990 else
8991   echo "$as_me:$LINENO: result: no" >&5
8992 echo "${ECHO_T}no" >&6
8993 fi
8994
8995     if test "$ft_devel" = "no"
8996     then
8997         # Extract the first word of "freetype2-config", so it can be a program name with args.
8998 set dummy freetype2-config; ac_word=$2
8999 echo "$as_me:$LINENO: checking for $ac_word" >&5
9000 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9001 if test "${ac_cv_prog_ft_devel2+set}" = set; then
9002   echo $ECHO_N "(cached) $ECHO_C" >&6
9003 else
9004   if test -n "$ft_devel2"; then
9005   ac_cv_prog_ft_devel2="$ft_devel2" # Let the user override the test.
9006 else
9007 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9008 for as_dir in $PATH
9009 do
9010   IFS=$as_save_IFS
9011   test -z "$as_dir" && as_dir=.
9012   for ac_exec_ext in '' $ac_executable_extensions; do
9013   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9014     ac_cv_prog_ft_devel2="freetype2-config"
9015     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9016     break 2
9017   fi
9018 done
9019 done
9020
9021   test -z "$ac_cv_prog_ft_devel2" && ac_cv_prog_ft_devel2="no"
9022 fi
9023 fi
9024 ft_devel2=$ac_cv_prog_ft_devel2
9025 if test -n "$ft_devel2"; then
9026   echo "$as_me:$LINENO: result: $ft_devel2" >&5
9027 echo "${ECHO_T}$ft_devel2" >&6
9028 else
9029   echo "$as_me:$LINENO: result: no" >&5
9030 echo "${ECHO_T}no" >&6
9031 fi
9032
9033         if test "$ft_devel2" = "freetype2-config"
9034         then
9035                 ft_devel=$ft_devel2
9036         fi
9037     fi
9038     if test "$ft_devel" = "no"
9039     then
9040         FREETYPEINCL=""
9041         wine_cv_msg_freetype=yes
9042     else
9043         FREETYPEINCL=`$ft_devel --cflags`
9044         ac_save_CPPFLAGS="$CPPFLAGS"
9045         CPPFLAGS="$FREETYPEINCL $CPPFLAGS"
9046
9047
9048
9049
9050
9051
9052
9053
9054 for ac_header in freetype/freetype.h \
9055                          freetype/ftglyph.h \
9056                          freetype/tttables.h \
9057                          freetype/ftnames.h \
9058                          freetype/ftsnames.h \
9059                          freetype/ttnameid.h \
9060                          freetype/ftoutln.h \
9061                          freetype/internal/sfnt.h
9062 do
9063 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9064 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9065   echo "$as_me:$LINENO: checking for $ac_header" >&5
9066 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9067 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9068   echo $ECHO_N "(cached) $ECHO_C" >&6
9069 fi
9070 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9071 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9072 else
9073   # Is the header compilable?
9074 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9075 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9076 cat >conftest.$ac_ext <<_ACEOF
9077 #line $LINENO "configure"
9078 /* confdefs.h.  */
9079 _ACEOF
9080 cat confdefs.h >>conftest.$ac_ext
9081 cat >>conftest.$ac_ext <<_ACEOF
9082 /* end confdefs.h.  */
9083 $ac_includes_default
9084 #include <$ac_header>
9085 _ACEOF
9086 rm -f conftest.$ac_objext
9087 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9088   (eval $ac_compile) 2>&5
9089   ac_status=$?
9090   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9091   (exit $ac_status); } &&
9092          { ac_try='test -s conftest.$ac_objext'
9093   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9094   (eval $ac_try) 2>&5
9095   ac_status=$?
9096   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9097   (exit $ac_status); }; }; then
9098   ac_header_compiler=yes
9099 else
9100   echo "$as_me: failed program was:" >&5
9101 sed 's/^/| /' conftest.$ac_ext >&5
9102
9103 ac_header_compiler=no
9104 fi
9105 rm -f conftest.$ac_objext conftest.$ac_ext
9106 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9107 echo "${ECHO_T}$ac_header_compiler" >&6
9108
9109 # Is the header present?
9110 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9111 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9112 cat >conftest.$ac_ext <<_ACEOF
9113 #line $LINENO "configure"
9114 /* confdefs.h.  */
9115 _ACEOF
9116 cat confdefs.h >>conftest.$ac_ext
9117 cat >>conftest.$ac_ext <<_ACEOF
9118 /* end confdefs.h.  */
9119 #include <$ac_header>
9120 _ACEOF
9121 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9122   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9123   ac_status=$?
9124   grep -v '^ *+' conftest.er1 >conftest.err
9125   rm -f conftest.er1
9126   cat conftest.err >&5
9127   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9128   (exit $ac_status); } >/dev/null; then
9129   if test -s conftest.err; then
9130     ac_cpp_err=$ac_c_preproc_warn_flag
9131   else
9132     ac_cpp_err=
9133   fi
9134 else
9135   ac_cpp_err=yes
9136 fi
9137 if test -z "$ac_cpp_err"; then
9138   ac_header_preproc=yes
9139 else
9140   echo "$as_me: failed program was:" >&5
9141 sed 's/^/| /' conftest.$ac_ext >&5
9142
9143   ac_header_preproc=no
9144 fi
9145 rm -f conftest.err conftest.$ac_ext
9146 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9147 echo "${ECHO_T}$ac_header_preproc" >&6
9148
9149 # So?  What about this header?
9150 case $ac_header_compiler:$ac_header_preproc in
9151   yes:no )
9152     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9153 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9154     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9155 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9156     (
9157       cat <<\_ASBOX
9158 ## ------------------------------------ ##
9159 ## Report this to bug-autoconf@gnu.org. ##
9160 ## ------------------------------------ ##
9161 _ASBOX
9162     ) |
9163       sed "s/^/$as_me: WARNING:     /" >&2
9164     ;;
9165   no:yes )
9166     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9167 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9168     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9169 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9170     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9171 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9172     (
9173       cat <<\_ASBOX
9174 ## ------------------------------------ ##
9175 ## Report this to bug-autoconf@gnu.org. ##
9176 ## ------------------------------------ ##
9177 _ASBOX
9178     ) |
9179       sed "s/^/$as_me: WARNING:     /" >&2
9180     ;;
9181 esac
9182 echo "$as_me:$LINENO: checking for $ac_header" >&5
9183 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9184 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9185   echo $ECHO_N "(cached) $ECHO_C" >&6
9186 else
9187   eval "$as_ac_Header=$ac_header_preproc"
9188 fi
9189 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9190 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9191
9192 fi
9193 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9194   cat >>confdefs.h <<_ACEOF
9195 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9196 _ACEOF
9197
9198 fi
9199
9200 done
9201
9202         cat >conftest.$ac_ext <<_ACEOF
9203 #line $LINENO "configure"
9204 /* confdefs.h.  */
9205 _ACEOF
9206 cat confdefs.h >>conftest.$ac_ext
9207 cat >>conftest.$ac_ext <<_ACEOF
9208 /* end confdefs.h.  */
9209 #include <ft2build.h>
9210                     #include <freetype/fttrigon.h>
9211 _ACEOF
9212 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9213   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9214   ac_status=$?
9215   grep -v '^ *+' conftest.er1 >conftest.err
9216   rm -f conftest.er1
9217   cat conftest.err >&5
9218   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9219   (exit $ac_status); } >/dev/null; then
9220   if test -s conftest.err; then
9221     ac_cpp_err=$ac_c_preproc_warn_flag
9222   else
9223     ac_cpp_err=
9224   fi
9225 else
9226   ac_cpp_err=yes
9227 fi
9228 if test -z "$ac_cpp_err"; then
9229
9230 cat >>confdefs.h <<\_ACEOF
9231 #define HAVE_FREETYPE_FTTRIGON_H 1
9232 _ACEOF
9233
9234                     wine_cv_fttrigon=yes
9235 else
9236   echo "$as_me: failed program was:" >&5
9237 sed 's/^/| /' conftest.$ac_ext >&5
9238
9239   wine_cv_fttrigon=no
9240 fi
9241 rm -f conftest.err conftest.$ac_ext
9242         CPPFLAGS="$ac_save_CPPFLAGS"
9243                 if test "$ac_cv_header_freetype_freetype_h" = "yes" -a "$wine_cv_fttrigon" = "yes"
9244         then
9245
9246 cat >>confdefs.h <<\_ACEOF
9247 #define HAVE_FREETYPE 1
9248 _ACEOF
9249
9250             wine_cv_msg_freetype=no
9251         else
9252             FREETYPEINCL=""
9253             wine_cv_msg_freetype=yes
9254         fi
9255     fi
9256 fi
9257
9258
9259 echo "$as_me:$LINENO: checking for parport header/ppdev.h" >&5
9260 echo $ECHO_N "checking for parport header/ppdev.h... $ECHO_C" >&6
9261 if test "${ac_cv_c_ppdev+set}" = set; then
9262   echo $ECHO_N "(cached) $ECHO_C" >&6
9263 else
9264   cat >conftest.$ac_ext <<_ACEOF
9265 #line $LINENO "configure"
9266 /* confdefs.h.  */
9267 _ACEOF
9268 cat confdefs.h >>conftest.$ac_ext
9269 cat >>conftest.$ac_ext <<_ACEOF
9270 /* end confdefs.h.  */
9271 #include <linux/ppdev.h>
9272 int
9273 main ()
9274 {
9275 ioctl (1,PPCLAIM,0)
9276   ;
9277   return 0;
9278 }
9279 _ACEOF
9280 rm -f conftest.$ac_objext
9281 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9282   (eval $ac_compile) 2>&5
9283   ac_status=$?
9284   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9285   (exit $ac_status); } &&
9286          { ac_try='test -s conftest.$ac_objext'
9287   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9288   (eval $ac_try) 2>&5
9289   ac_status=$?
9290   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9291   (exit $ac_status); }; }; then
9292   ac_cv_c_ppdev="yes"
9293 else
9294   echo "$as_me: failed program was:" >&5
9295 sed 's/^/| /' conftest.$ac_ext >&5
9296
9297 ac_cv_c_ppdev="no"
9298 fi
9299 rm -f conftest.$ac_objext conftest.$ac_ext
9300
9301 fi
9302 echo "$as_me:$LINENO: result: $ac_cv_c_ppdev" >&5
9303 echo "${ECHO_T}$ac_cv_c_ppdev" >&6
9304 if test "$ac_cv_c_ppdev" = "yes"
9305 then
9306
9307 cat >>confdefs.h <<\_ACEOF
9308 #define HAVE_PPDEV 1
9309 _ACEOF
9310
9311 fi
9312
9313 echo "$as_me:$LINENO: checking for va_copy" >&5
9314 echo $ECHO_N "checking for va_copy... $ECHO_C" >&6
9315 if test "${ac_cv_c_va_copy+set}" = set; then
9316   echo $ECHO_N "(cached) $ECHO_C" >&6
9317 else
9318   cat >conftest.$ac_ext <<_ACEOF
9319 #line $LINENO "configure"
9320 /* confdefs.h.  */
9321 _ACEOF
9322 cat confdefs.h >>conftest.$ac_ext
9323 cat >>conftest.$ac_ext <<_ACEOF
9324 /* end confdefs.h.  */
9325 #include <stdarg.h>
9326 int
9327 main ()
9328 {
9329 va_list ap1, ap2;
9330     va_copy(ap1,ap2);
9331
9332   ;
9333   return 0;
9334 }
9335 _ACEOF
9336 rm -f conftest.$ac_objext conftest$ac_exeext
9337 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9338   (eval $ac_link) 2>&5
9339   ac_status=$?
9340   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9341   (exit $ac_status); } &&
9342          { ac_try='test -s conftest$ac_exeext'
9343   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9344   (eval $ac_try) 2>&5
9345   ac_status=$?
9346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9347   (exit $ac_status); }; }; then
9348   ac_cv_c_va_copy="yes"
9349 else
9350   echo "$as_me: failed program was:" >&5
9351 sed 's/^/| /' conftest.$ac_ext >&5
9352
9353 ac_cv_c_va_copy="no"
9354 fi
9355 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9356
9357 fi
9358 echo "$as_me:$LINENO: result: $ac_cv_c_va_copy" >&5
9359 echo "${ECHO_T}$ac_cv_c_va_copy" >&6
9360 if test "$ac_cv_c_va_copy" = "yes"
9361 then
9362
9363 cat >>confdefs.h <<\_ACEOF
9364 #define HAVE_VA_COPY 1
9365 _ACEOF
9366
9367 fi
9368 echo "$as_me:$LINENO: checking for __va_copy" >&5
9369 echo $ECHO_N "checking for __va_copy... $ECHO_C" >&6
9370 if test "${ac_cv_c___va_copy+set}" = set; then
9371   echo $ECHO_N "(cached) $ECHO_C" >&6
9372 else
9373   cat >conftest.$ac_ext <<_ACEOF
9374 #line $LINENO "configure"
9375 /* confdefs.h.  */
9376 _ACEOF
9377 cat confdefs.h >>conftest.$ac_ext
9378 cat >>conftest.$ac_ext <<_ACEOF
9379 /* end confdefs.h.  */
9380 #include <stdarg.h>
9381 int
9382 main ()
9383 {
9384 va_list ap1, ap2;
9385     __va_copy(ap1,ap2);
9386
9387   ;
9388   return 0;
9389 }
9390 _ACEOF
9391 rm -f conftest.$ac_objext conftest$ac_exeext
9392 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9393   (eval $ac_link) 2>&5
9394   ac_status=$?
9395   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9396   (exit $ac_status); } &&
9397          { ac_try='test -s conftest$ac_exeext'
9398   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9399   (eval $ac_try) 2>&5
9400   ac_status=$?
9401   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9402   (exit $ac_status); }; }; then
9403   ac_cv_c___va_copy="yes"
9404 else
9405   echo "$as_me: failed program was:" >&5
9406 sed 's/^/| /' conftest.$ac_ext >&5
9407
9408 ac_cv_c___va_copy="no"
9409 fi
9410 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9411
9412 fi
9413 echo "$as_me:$LINENO: result: $ac_cv_c___va_copy" >&5
9414 echo "${ECHO_T}$ac_cv_c___va_copy" >&6
9415 if test "$ac_cv_c___va_copy" = "yes"
9416 then
9417
9418 cat >>confdefs.h <<\_ACEOF
9419 #define HAVE___VA_COPY 1
9420 _ACEOF
9421
9422 fi
9423
9424 echo "$as_me:$LINENO: checking for GNU style IPX support" >&5
9425 echo $ECHO_N "checking for GNU style IPX support... $ECHO_C" >&6
9426 if test "${ac_cv_c_ipx_gnu+set}" = set; then
9427   echo $ECHO_N "(cached) $ECHO_C" >&6
9428 else
9429   cat >conftest.$ac_ext <<_ACEOF
9430 #line $LINENO "configure"
9431 /* confdefs.h.  */
9432 _ACEOF
9433 cat confdefs.h >>conftest.$ac_ext
9434 cat >>conftest.$ac_ext <<_ACEOF
9435 /* end confdefs.h.  */
9436 #include <sys/types.h>
9437     #ifdef HAVE_SYS_SOCKET_H
9438     # include <sys/socket.h>
9439     #endif
9440     #include <netipx/ipx.h>
9441 int
9442 main ()
9443 {
9444 ((struct sockaddr_ipx *)0)->sipx_family == AF_IPX
9445   ;
9446   return 0;
9447 }
9448 _ACEOF
9449 rm -f conftest.$ac_objext
9450 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9451   (eval $ac_compile) 2>&5
9452   ac_status=$?
9453   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9454   (exit $ac_status); } &&
9455          { ac_try='test -s conftest.$ac_objext'
9456   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9457   (eval $ac_try) 2>&5
9458   ac_status=$?
9459   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9460   (exit $ac_status); }; }; then
9461   ac_cv_c_ipx_gnu="yes"
9462 else
9463   echo "$as_me: failed program was:" >&5
9464 sed 's/^/| /' conftest.$ac_ext >&5
9465
9466 ac_cv_c_ipx_gnu="no"
9467 fi
9468 rm -f conftest.$ac_objext conftest.$ac_ext
9469
9470 fi
9471 echo "$as_me:$LINENO: result: $ac_cv_c_ipx_gnu" >&5
9472 echo "${ECHO_T}$ac_cv_c_ipx_gnu" >&6
9473 if test "$ac_cv_c_ipx_gnu" = "yes"
9474 then
9475
9476 cat >>confdefs.h <<\_ACEOF
9477 #define HAVE_IPX_GNU 1
9478 _ACEOF
9479
9480 fi
9481
9482 if test "$ac_cv_c_ipx_gnu" = "no"
9483 then
9484  echo "$as_me:$LINENO: checking for linux style IPX support" >&5
9485 echo $ECHO_N "checking for linux style IPX support... $ECHO_C" >&6
9486 if test "${ac_cv_c_ipx_linux+set}" = set; then
9487   echo $ECHO_N "(cached) $ECHO_C" >&6
9488 else
9489   cat >conftest.$ac_ext <<_ACEOF
9490 #line $LINENO "configure"
9491 /* confdefs.h.  */
9492 _ACEOF
9493 cat confdefs.h >>conftest.$ac_ext
9494 cat >>conftest.$ac_ext <<_ACEOF
9495 /* end confdefs.h.  */
9496 #include <sys/types.h>
9497      #ifdef HAVE_SYS_SOCKET_H
9498      # include <sys/socket.h>
9499      #endif
9500      #include <asm/types.h>
9501      #include <linux/ipx.h>
9502 int
9503 main ()
9504 {
9505 ((struct sockaddr_ipx *)0)->sipx_family == AF_IPX
9506   ;
9507   return 0;
9508 }
9509 _ACEOF
9510 rm -f conftest.$ac_objext
9511 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9512   (eval $ac_compile) 2>&5
9513   ac_status=$?
9514   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9515   (exit $ac_status); } &&
9516          { ac_try='test -s conftest.$ac_objext'
9517   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9518   (eval $ac_try) 2>&5
9519   ac_status=$?
9520   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9521   (exit $ac_status); }; }; then
9522   ac_cv_c_ipx_linux="yes"
9523 else
9524   echo "$as_me: failed program was:" >&5
9525 sed 's/^/| /' conftest.$ac_ext >&5
9526
9527 ac_cv_c_ipx_linux="no"
9528 fi
9529 rm -f conftest.$ac_objext conftest.$ac_ext
9530
9531 fi
9532 echo "$as_me:$LINENO: result: $ac_cv_c_ipx_linux" >&5
9533 echo "${ECHO_T}$ac_cv_c_ipx_linux" >&6
9534   if test "$ac_cv_c_ipx_linux" = "yes"
9535   then
9536
9537 cat >>confdefs.h <<\_ACEOF
9538 #define HAVE_IPX_LINUX 1
9539 _ACEOF
9540
9541   fi
9542 fi
9543
9544
9545
9546
9547 for ac_header in sys/soundcard.h machine/soundcard.h soundcard.h
9548 do
9549 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9550 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9551   echo "$as_me:$LINENO: checking for $ac_header" >&5
9552 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9553 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9554   echo $ECHO_N "(cached) $ECHO_C" >&6
9555 fi
9556 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9557 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9558 else
9559   # Is the header compilable?
9560 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9561 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9562 cat >conftest.$ac_ext <<_ACEOF
9563 #line $LINENO "configure"
9564 /* confdefs.h.  */
9565 _ACEOF
9566 cat confdefs.h >>conftest.$ac_ext
9567 cat >>conftest.$ac_ext <<_ACEOF
9568 /* end confdefs.h.  */
9569 $ac_includes_default
9570 #include <$ac_header>
9571 _ACEOF
9572 rm -f conftest.$ac_objext
9573 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9574   (eval $ac_compile) 2>&5
9575   ac_status=$?
9576   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9577   (exit $ac_status); } &&
9578          { ac_try='test -s conftest.$ac_objext'
9579   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9580   (eval $ac_try) 2>&5
9581   ac_status=$?
9582   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9583   (exit $ac_status); }; }; then
9584   ac_header_compiler=yes
9585 else
9586   echo "$as_me: failed program was:" >&5
9587 sed 's/^/| /' conftest.$ac_ext >&5
9588
9589 ac_header_compiler=no
9590 fi
9591 rm -f conftest.$ac_objext conftest.$ac_ext
9592 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9593 echo "${ECHO_T}$ac_header_compiler" >&6
9594
9595 # Is the header present?
9596 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9597 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9598 cat >conftest.$ac_ext <<_ACEOF
9599 #line $LINENO "configure"
9600 /* confdefs.h.  */
9601 _ACEOF
9602 cat confdefs.h >>conftest.$ac_ext
9603 cat >>conftest.$ac_ext <<_ACEOF
9604 /* end confdefs.h.  */
9605 #include <$ac_header>
9606 _ACEOF
9607 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9608   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9609   ac_status=$?
9610   grep -v '^ *+' conftest.er1 >conftest.err
9611   rm -f conftest.er1
9612   cat conftest.err >&5
9613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9614   (exit $ac_status); } >/dev/null; then
9615   if test -s conftest.err; then
9616     ac_cpp_err=$ac_c_preproc_warn_flag
9617   else
9618     ac_cpp_err=
9619   fi
9620 else
9621   ac_cpp_err=yes
9622 fi
9623 if test -z "$ac_cpp_err"; then
9624   ac_header_preproc=yes
9625 else
9626   echo "$as_me: failed program was:" >&5
9627 sed 's/^/| /' conftest.$ac_ext >&5
9628
9629   ac_header_preproc=no
9630 fi
9631 rm -f conftest.err conftest.$ac_ext
9632 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9633 echo "${ECHO_T}$ac_header_preproc" >&6
9634
9635 # So?  What about this header?
9636 case $ac_header_compiler:$ac_header_preproc in
9637   yes:no )
9638     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9639 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9640     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9641 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9642     (
9643       cat <<\_ASBOX
9644 ## ------------------------------------ ##
9645 ## Report this to bug-autoconf@gnu.org. ##
9646 ## ------------------------------------ ##
9647 _ASBOX
9648     ) |
9649       sed "s/^/$as_me: WARNING:     /" >&2
9650     ;;
9651   no:yes )
9652     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9653 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9654     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9655 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9656     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9657 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9658     (
9659       cat <<\_ASBOX
9660 ## ------------------------------------ ##
9661 ## Report this to bug-autoconf@gnu.org. ##
9662 ## ------------------------------------ ##
9663 _ASBOX
9664     ) |
9665       sed "s/^/$as_me: WARNING:     /" >&2
9666     ;;
9667 esac
9668 echo "$as_me:$LINENO: checking for $ac_header" >&5
9669 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9670 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9671   echo $ECHO_N "(cached) $ECHO_C" >&6
9672 else
9673   eval "$as_ac_Header=$ac_header_preproc"
9674 fi
9675 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9676 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9677
9678 fi
9679 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9680   cat >>confdefs.h <<_ACEOF
9681 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9682 _ACEOF
9683  break
9684 fi
9685
9686 done
9687
9688
9689 echo "$as_me:$LINENO: checking for Open Sound System" >&5
9690 echo $ECHO_N "checking for Open Sound System... $ECHO_C" >&6
9691 if test "${ac_cv_c_opensoundsystem+set}" = set; then
9692   echo $ECHO_N "(cached) $ECHO_C" >&6
9693 else
9694   cat >conftest.$ac_ext <<_ACEOF
9695 #line $LINENO "configure"
9696 /* confdefs.h.  */
9697 _ACEOF
9698 cat confdefs.h >>conftest.$ac_ext
9699 cat >>conftest.$ac_ext <<_ACEOF
9700 /* end confdefs.h.  */
9701
9702         #if defined(HAVE_SYS_SOUNDCARD_H)
9703                 #include <sys/soundcard.h>
9704         #elif defined(HAVE_MACHINE_SOUNDCARD_H)
9705                 #include <machine/soundcard.h>
9706         #elif defined(HAVE_SOUNDCARD_H)
9707                 #include <soundcard.h>
9708         #endif
9709
9710 int
9711 main ()
9712 {
9713
9714
9715 /* check for one of the Open Sound System specific SNDCTL_ defines */
9716 #if !defined(SNDCTL_DSP_STEREO)
9717 #error No open sound system
9718 #endif
9719
9720   ;
9721   return 0;
9722 }
9723 _ACEOF
9724 rm -f conftest.$ac_objext
9725 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9726   (eval $ac_compile) 2>&5
9727   ac_status=$?
9728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9729   (exit $ac_status); } &&
9730          { ac_try='test -s conftest.$ac_objext'
9731   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9732   (eval $ac_try) 2>&5
9733   ac_status=$?
9734   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9735   (exit $ac_status); }; }; then
9736   ac_cv_c_opensoundsystem="yes"
9737 else
9738   echo "$as_me: failed program was:" >&5
9739 sed 's/^/| /' conftest.$ac_ext >&5
9740
9741 ac_cv_c_opensoundsystem="no"
9742 fi
9743 rm -f conftest.$ac_objext conftest.$ac_ext
9744 fi
9745 echo "$as_me:$LINENO: result: $ac_cv_c_opensoundsystem" >&5
9746 echo "${ECHO_T}$ac_cv_c_opensoundsystem" >&6
9747
9748 if test "$ac_cv_c_opensoundsystem" = "yes"
9749 then
9750
9751 cat >>confdefs.h <<\_ACEOF
9752 #define HAVE_OSS 1
9753 _ACEOF
9754
9755 fi
9756
9757 echo "$as_me:$LINENO: checking for Open Sound System/MIDI interface" >&5
9758 echo $ECHO_N "checking for Open Sound System/MIDI interface... $ECHO_C" >&6
9759 if test "${ac_cv_c_opensoundsystem_midi+set}" = set; then
9760   echo $ECHO_N "(cached) $ECHO_C" >&6
9761 else
9762   cat >conftest.$ac_ext <<_ACEOF
9763 #line $LINENO "configure"
9764 /* confdefs.h.  */
9765 _ACEOF
9766 cat confdefs.h >>conftest.$ac_ext
9767 cat >>conftest.$ac_ext <<_ACEOF
9768 /* end confdefs.h.  */
9769
9770         #if defined(HAVE_SYS_SOUNDCARD_H)
9771                 #include <sys/soundcard.h>
9772         #elif defined(HAVE_MACHINE_SOUNDCARD_H)
9773                 #include <machine/soundcard.h>
9774         #elif defined(HAVE_SOUNDCARD_H)
9775                 #include <soundcard.h>
9776         #endif
9777
9778 int
9779 main ()
9780 {
9781
9782
9783 /* check for one of the Open Sound System specific SNDCTL_SEQ defines */
9784 #if !defined(SNDCTL_SEQ_SYNC)
9785 #error No open sound system MIDI interface
9786 #endif
9787
9788   ;
9789   return 0;
9790 }
9791 _ACEOF
9792 rm -f conftest.$ac_objext
9793 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9794   (eval $ac_compile) 2>&5
9795   ac_status=$?
9796   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9797   (exit $ac_status); } &&
9798          { ac_try='test -s conftest.$ac_objext'
9799   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9800   (eval $ac_try) 2>&5
9801   ac_status=$?
9802   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9803   (exit $ac_status); }; }; then
9804   ac_cv_c_opensoundsystem_midi="yes"
9805 else
9806   echo "$as_me: failed program was:" >&5
9807 sed 's/^/| /' conftest.$ac_ext >&5
9808
9809 ac_cv_c_opensoundsystem_midi="no"
9810 fi
9811 rm -f conftest.$ac_objext conftest.$ac_ext
9812 fi
9813 echo "$as_me:$LINENO: result: $ac_cv_c_opensoundsystem_midi" >&5
9814 echo "${ECHO_T}$ac_cv_c_opensoundsystem_midi" >&6
9815
9816 if test "$ac_cv_c_opensoundsystem_midi" = "yes"
9817 then
9818
9819 cat >>confdefs.h <<\_ACEOF
9820 #define HAVE_OSS_MIDI 1
9821 _ACEOF
9822
9823 fi
9824
9825 # Extract the first word of "artsc-config", so it can be a program name with args.
9826 set dummy artsc-config; ac_word=$2
9827 echo "$as_me:$LINENO: checking for $ac_word" >&5
9828 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9829 if test "${ac_cv_path_ARTSCCONFIG+set}" = set; then
9830   echo $ECHO_N "(cached) $ECHO_C" >&6
9831 else
9832   case $ARTSCCONFIG in
9833   [\\/]* | ?:[\\/]*)
9834   ac_cv_path_ARTSCCONFIG="$ARTSCCONFIG" # Let the user override the test with a path.
9835   ;;
9836   *)
9837   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9838 for as_dir in $PATH
9839 do
9840   IFS=$as_save_IFS
9841   test -z "$as_dir" && as_dir=.
9842   for ac_exec_ext in '' $ac_executable_extensions; do
9843   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9844     ac_cv_path_ARTSCCONFIG="$as_dir/$ac_word$ac_exec_ext"
9845     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9846     break 2
9847   fi
9848 done
9849 done
9850
9851   ;;
9852 esac
9853 fi
9854 ARTSCCONFIG=$ac_cv_path_ARTSCCONFIG
9855
9856 if test -n "$ARTSCCONFIG"; then
9857   echo "$as_me:$LINENO: result: $ARTSCCONFIG" >&5
9858 echo "${ECHO_T}$ARTSCCONFIG" >&6
9859 else
9860   echo "$as_me:$LINENO: result: no" >&5
9861 echo "${ECHO_T}no" >&6
9862 fi
9863
9864 echo "$as_me:$LINENO: checking for aRts Sound server" >&5
9865 echo $ECHO_N "checking for aRts Sound server... $ECHO_C" >&6
9866 if test "${ac_cv_c_artsserver+set}" = set; then
9867   echo $ECHO_N "(cached) $ECHO_C" >&6
9868 else
9869   if test x$ARTSCCONFIG = x -o x$ARTSCCONFIG = x'"$ARTSCCONFIG"';
9870         then
9871             ac_cv_c_artsserver=no
9872         else
9873             ARTSC_CFLAGS=`$ARTSCCONFIG --cflags`
9874             ARTSC_LIBS=`$ARTSCCONFIG --libs`
9875             ac_cv_c_artsserver=no
9876             save_CFLAGS="$CFLAGS"
9877             CFLAGS="$CFLAGS $ARTSC_CFLAGS"
9878             cat >conftest.$ac_ext <<_ACEOF
9879 #line $LINENO "configure"
9880 /* confdefs.h.  */
9881 _ACEOF
9882 cat confdefs.h >>conftest.$ac_ext
9883 cat >>conftest.$ac_ext <<_ACEOF
9884 /* end confdefs.h.  */
9885
9886              #include <artsc.h>
9887
9888 int
9889 main ()
9890 {
9891
9892              arts_stream_t stream;
9893
9894   ;
9895   return 0;
9896 }
9897 _ACEOF
9898 rm -f conftest.$ac_objext
9899 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9900   (eval $ac_compile) 2>&5
9901   ac_status=$?
9902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9903   (exit $ac_status); } &&
9904          { ac_try='test -s conftest.$ac_objext'
9905   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9906   (eval $ac_try) 2>&5
9907   ac_status=$?
9908   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9909   (exit $ac_status); }; }; then
9910
9911             ac_cv_c_artsserver=yes
9912
9913 else
9914   echo "$as_me: failed program was:" >&5
9915 sed 's/^/| /' conftest.$ac_ext >&5
9916
9917 fi
9918 rm -f conftest.$ac_objext conftest.$ac_ext
9919             CFLAGS="$save_CFLAGS"
9920         fi
9921 fi
9922 echo "$as_me:$LINENO: result: $ac_cv_c_artsserver" >&5
9923 echo "${ECHO_T}$ac_cv_c_artsserver" >&6
9924
9925 if test "$ac_cv_c_artsserver" = "yes"
9926 then
9927     ARTSLIBS=$ARTSC_LIBS
9928
9929     ARTSINCL=$ARTSC_CFLAGS
9930
9931
9932
9933 cat >>confdefs.h <<\_ACEOF
9934 #define HAVE_ARTS 1
9935 _ACEOF
9936
9937 fi
9938
9939 ALSALIBS=""
9940
9941
9942
9943 for ac_header in alsa/asoundlib.h sys/asoundlib.h
9944 do
9945 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9946 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9947   echo "$as_me:$LINENO: checking for $ac_header" >&5
9948 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9949 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9950   echo $ECHO_N "(cached) $ECHO_C" >&6
9951 fi
9952 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9953 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9954 else
9955   # Is the header compilable?
9956 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9957 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9958 cat >conftest.$ac_ext <<_ACEOF
9959 #line $LINENO "configure"
9960 /* confdefs.h.  */
9961 _ACEOF
9962 cat confdefs.h >>conftest.$ac_ext
9963 cat >>conftest.$ac_ext <<_ACEOF
9964 /* end confdefs.h.  */
9965 $ac_includes_default
9966 #include <$ac_header>
9967 _ACEOF
9968 rm -f conftest.$ac_objext
9969 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9970   (eval $ac_compile) 2>&5
9971   ac_status=$?
9972   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9973   (exit $ac_status); } &&
9974          { ac_try='test -s conftest.$ac_objext'
9975   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9976   (eval $ac_try) 2>&5
9977   ac_status=$?
9978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9979   (exit $ac_status); }; }; then
9980   ac_header_compiler=yes
9981 else
9982   echo "$as_me: failed program was:" >&5
9983 sed 's/^/| /' conftest.$ac_ext >&5
9984
9985 ac_header_compiler=no
9986 fi
9987 rm -f conftest.$ac_objext conftest.$ac_ext
9988 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9989 echo "${ECHO_T}$ac_header_compiler" >&6
9990
9991 # Is the header present?
9992 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9993 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9994 cat >conftest.$ac_ext <<_ACEOF
9995 #line $LINENO "configure"
9996 /* confdefs.h.  */
9997 _ACEOF
9998 cat confdefs.h >>conftest.$ac_ext
9999 cat >>conftest.$ac_ext <<_ACEOF
10000 /* end confdefs.h.  */
10001 #include <$ac_header>
10002 _ACEOF
10003 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10004   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10005   ac_status=$?
10006   grep -v '^ *+' conftest.er1 >conftest.err
10007   rm -f conftest.er1
10008   cat conftest.err >&5
10009   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10010   (exit $ac_status); } >/dev/null; then
10011   if test -s conftest.err; then
10012     ac_cpp_err=$ac_c_preproc_warn_flag
10013   else
10014     ac_cpp_err=
10015   fi
10016 else
10017   ac_cpp_err=yes
10018 fi
10019 if test -z "$ac_cpp_err"; then
10020   ac_header_preproc=yes
10021 else
10022   echo "$as_me: failed program was:" >&5
10023 sed 's/^/| /' conftest.$ac_ext >&5
10024
10025   ac_header_preproc=no
10026 fi
10027 rm -f conftest.err conftest.$ac_ext
10028 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10029 echo "${ECHO_T}$ac_header_preproc" >&6
10030
10031 # So?  What about this header?
10032 case $ac_header_compiler:$ac_header_preproc in
10033   yes:no )
10034     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10035 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10036     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10037 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10038     (
10039       cat <<\_ASBOX
10040 ## ------------------------------------ ##
10041 ## Report this to bug-autoconf@gnu.org. ##
10042 ## ------------------------------------ ##
10043 _ASBOX
10044     ) |
10045       sed "s/^/$as_me: WARNING:     /" >&2
10046     ;;
10047   no:yes )
10048     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10049 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10050     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10051 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10052     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10053 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10054     (
10055       cat <<\_ASBOX
10056 ## ------------------------------------ ##
10057 ## Report this to bug-autoconf@gnu.org. ##
10058 ## ------------------------------------ ##
10059 _ASBOX
10060     ) |
10061       sed "s/^/$as_me: WARNING:     /" >&2
10062     ;;
10063 esac
10064 echo "$as_me:$LINENO: checking for $ac_header" >&5
10065 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10066 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10067   echo $ECHO_N "(cached) $ECHO_C" >&6
10068 else
10069   eval "$as_ac_Header=$ac_header_preproc"
10070 fi
10071 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10072 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10073
10074 fi
10075 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10076   cat >>confdefs.h <<_ACEOF
10077 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10078 _ACEOF
10079  break
10080 fi
10081
10082 done
10083
10084 if test "$ac_cv_header_sys_asoundlib_h" = "yes" -o "$ac_cv_header_alsa_asoundlib_h" = "yes"
10085 then
10086     echo "$as_me:$LINENO: checking for snd_pcm_open in -lasound" >&5
10087 echo $ECHO_N "checking for snd_pcm_open in -lasound... $ECHO_C" >&6
10088 if test "${ac_cv_lib_asound_snd_pcm_open+set}" = set; then
10089   echo $ECHO_N "(cached) $ECHO_C" >&6
10090 else
10091   ac_check_lib_save_LIBS=$LIBS
10092 LIBS="-lasound  $LIBS"
10093 cat >conftest.$ac_ext <<_ACEOF
10094 #line $LINENO "configure"
10095 /* confdefs.h.  */
10096 _ACEOF
10097 cat confdefs.h >>conftest.$ac_ext
10098 cat >>conftest.$ac_ext <<_ACEOF
10099 /* end confdefs.h.  */
10100
10101 /* Override any gcc2 internal prototype to avoid an error.  */
10102 #ifdef __cplusplus
10103 extern "C"
10104 #endif
10105 /* We use char because int might match the return type of a gcc2
10106    builtin and then its argument prototype would still apply.  */
10107 char snd_pcm_open ();
10108 int
10109 main ()
10110 {
10111 snd_pcm_open ();
10112   ;
10113   return 0;
10114 }
10115 _ACEOF
10116 rm -f conftest.$ac_objext conftest$ac_exeext
10117 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10118   (eval $ac_link) 2>&5
10119   ac_status=$?
10120   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10121   (exit $ac_status); } &&
10122          { ac_try='test -s conftest$ac_exeext'
10123   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10124   (eval $ac_try) 2>&5
10125   ac_status=$?
10126   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10127   (exit $ac_status); }; }; then
10128   ac_cv_lib_asound_snd_pcm_open=yes
10129 else
10130   echo "$as_me: failed program was:" >&5
10131 sed 's/^/| /' conftest.$ac_ext >&5
10132
10133 ac_cv_lib_asound_snd_pcm_open=no
10134 fi
10135 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10136 LIBS=$ac_check_lib_save_LIBS
10137 fi
10138 echo "$as_me:$LINENO: result: $ac_cv_lib_asound_snd_pcm_open" >&5
10139 echo "${ECHO_T}$ac_cv_lib_asound_snd_pcm_open" >&6
10140 if test $ac_cv_lib_asound_snd_pcm_open = yes; then
10141
10142 cat >>confdefs.h <<\_ACEOF
10143 #define HAVE_ALSA 1
10144 _ACEOF
10145
10146         ALSALIBS="-lasound"
10147 fi
10148
10149 fi
10150
10151
10152 AUDIOIOLIBS=""
10153
10154
10155 for ac_header in libaudioio.h
10156 do
10157 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10158 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10159   echo "$as_me:$LINENO: checking for $ac_header" >&5
10160 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10161 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10162   echo $ECHO_N "(cached) $ECHO_C" >&6
10163 fi
10164 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10165 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10166 else
10167   # Is the header compilable?
10168 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10169 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10170 cat >conftest.$ac_ext <<_ACEOF
10171 #line $LINENO "configure"
10172 /* confdefs.h.  */
10173 _ACEOF
10174 cat confdefs.h >>conftest.$ac_ext
10175 cat >>conftest.$ac_ext <<_ACEOF
10176 /* end confdefs.h.  */
10177 $ac_includes_default
10178 #include <$ac_header>
10179 _ACEOF
10180 rm -f conftest.$ac_objext
10181 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10182   (eval $ac_compile) 2>&5
10183   ac_status=$?
10184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10185   (exit $ac_status); } &&
10186          { ac_try='test -s conftest.$ac_objext'
10187   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10188   (eval $ac_try) 2>&5
10189   ac_status=$?
10190   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10191   (exit $ac_status); }; }; then
10192   ac_header_compiler=yes
10193 else
10194   echo "$as_me: failed program was:" >&5
10195 sed 's/^/| /' conftest.$ac_ext >&5
10196
10197 ac_header_compiler=no
10198 fi
10199 rm -f conftest.$ac_objext conftest.$ac_ext
10200 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10201 echo "${ECHO_T}$ac_header_compiler" >&6
10202
10203 # Is the header present?
10204 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10205 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10206 cat >conftest.$ac_ext <<_ACEOF
10207 #line $LINENO "configure"
10208 /* confdefs.h.  */
10209 _ACEOF
10210 cat confdefs.h >>conftest.$ac_ext
10211 cat >>conftest.$ac_ext <<_ACEOF
10212 /* end confdefs.h.  */
10213 #include <$ac_header>
10214 _ACEOF
10215 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10216   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10217   ac_status=$?
10218   grep -v '^ *+' conftest.er1 >conftest.err
10219   rm -f conftest.er1
10220   cat conftest.err >&5
10221   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10222   (exit $ac_status); } >/dev/null; then
10223   if test -s conftest.err; then
10224     ac_cpp_err=$ac_c_preproc_warn_flag
10225   else
10226     ac_cpp_err=
10227   fi
10228 else
10229   ac_cpp_err=yes
10230 fi
10231 if test -z "$ac_cpp_err"; then
10232   ac_header_preproc=yes
10233 else
10234   echo "$as_me: failed program was:" >&5
10235 sed 's/^/| /' conftest.$ac_ext >&5
10236
10237   ac_header_preproc=no
10238 fi
10239 rm -f conftest.err conftest.$ac_ext
10240 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10241 echo "${ECHO_T}$ac_header_preproc" >&6
10242
10243 # So?  What about this header?
10244 case $ac_header_compiler:$ac_header_preproc in
10245   yes:no )
10246     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10247 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10248     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10249 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10250     (
10251       cat <<\_ASBOX
10252 ## ------------------------------------ ##
10253 ## Report this to bug-autoconf@gnu.org. ##
10254 ## ------------------------------------ ##
10255 _ASBOX
10256     ) |
10257       sed "s/^/$as_me: WARNING:     /" >&2
10258     ;;
10259   no:yes )
10260     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10261 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10262     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10263 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10264     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10265 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10266     (
10267       cat <<\_ASBOX
10268 ## ------------------------------------ ##
10269 ## Report this to bug-autoconf@gnu.org. ##
10270 ## ------------------------------------ ##
10271 _ASBOX
10272     ) |
10273       sed "s/^/$as_me: WARNING:     /" >&2
10274     ;;
10275 esac
10276 echo "$as_me:$LINENO: checking for $ac_header" >&5
10277 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10278 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10279   echo $ECHO_N "(cached) $ECHO_C" >&6
10280 else
10281   eval "$as_ac_Header=$ac_header_preproc"
10282 fi
10283 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10284 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10285
10286 fi
10287 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10288   cat >>confdefs.h <<_ACEOF
10289 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10290 _ACEOF
10291  echo "$as_me:$LINENO: checking for AudioIOGetVersion in -laudioio" >&5
10292 echo $ECHO_N "checking for AudioIOGetVersion in -laudioio... $ECHO_C" >&6
10293 if test "${ac_cv_lib_audioio_AudioIOGetVersion+set}" = set; then
10294   echo $ECHO_N "(cached) $ECHO_C" >&6
10295 else
10296   ac_check_lib_save_LIBS=$LIBS
10297 LIBS="-laudioio  $LIBS"
10298 cat >conftest.$ac_ext <<_ACEOF
10299 #line $LINENO "configure"
10300 /* confdefs.h.  */
10301 _ACEOF
10302 cat confdefs.h >>conftest.$ac_ext
10303 cat >>conftest.$ac_ext <<_ACEOF
10304 /* end confdefs.h.  */
10305
10306 /* Override any gcc2 internal prototype to avoid an error.  */
10307 #ifdef __cplusplus
10308 extern "C"
10309 #endif
10310 /* We use char because int might match the return type of a gcc2
10311    builtin and then its argument prototype would still apply.  */
10312 char AudioIOGetVersion ();
10313 int
10314 main ()
10315 {
10316 AudioIOGetVersion ();
10317   ;
10318   return 0;
10319 }
10320 _ACEOF
10321 rm -f conftest.$ac_objext conftest$ac_exeext
10322 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10323   (eval $ac_link) 2>&5
10324   ac_status=$?
10325   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10326   (exit $ac_status); } &&
10327          { ac_try='test -s conftest$ac_exeext'
10328   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10329   (eval $ac_try) 2>&5
10330   ac_status=$?
10331   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10332   (exit $ac_status); }; }; then
10333   ac_cv_lib_audioio_AudioIOGetVersion=yes
10334 else
10335   echo "$as_me: failed program was:" >&5
10336 sed 's/^/| /' conftest.$ac_ext >&5
10337
10338 ac_cv_lib_audioio_AudioIOGetVersion=no
10339 fi
10340 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10341 LIBS=$ac_check_lib_save_LIBS
10342 fi
10343 echo "$as_me:$LINENO: result: $ac_cv_lib_audioio_AudioIOGetVersion" >&5
10344 echo "${ECHO_T}$ac_cv_lib_audioio_AudioIOGetVersion" >&6
10345 if test $ac_cv_lib_audioio_AudioIOGetVersion = yes; then
10346   AUDIOIOLIBS="-laudioio"
10347
10348 cat >>confdefs.h <<\_ACEOF
10349 #define HAVE_LIBAUDIOIO 1
10350 _ACEOF
10351
10352 fi
10353
10354 fi
10355
10356 done
10357
10358
10359
10360 echo "$as_me:$LINENO: checking whether mmap64 works defined as mmap" >&5
10361 echo $ECHO_N "checking whether mmap64 works defined as mmap... $ECHO_C" >&6
10362 if test "${ac_cv_mmap64_works+set}" = set; then
10363   echo $ECHO_N "(cached) $ECHO_C" >&6
10364 else
10365   if test "$cross_compiling" = yes; then
10366   ac_cv_mmap64_works="no"
10367 else
10368   cat >conftest.$ac_ext <<_ACEOF
10369 #line $LINENO "configure"
10370 /* confdefs.h.  */
10371 _ACEOF
10372 cat confdefs.h >>conftest.$ac_ext
10373 cat >>conftest.$ac_ext <<_ACEOF
10374 /* end confdefs.h.  */
10375
10376                 #define _FILE_OFFSET_BITS 64
10377                 #include <stdio.h>
10378                 #include <unistd.h>
10379                 #include <fcntl.h>
10380                 #include <sys/mman.h>
10381                 #include <errno.h>
10382
10383                 int main(int argc,char **argv) {
10384                         int fd = open("conftest.map",O_CREAT|O_RDWR,0600);
10385                         if (fd == -1) exit(1);
10386
10387                         unlink("conftest.map");
10388
10389                         write(fd,"test",4);
10390
10391                         if ((-1 == mmap(0,4,PROT_READ|PROT_WRITE,MAP_SHARED,fd,0)) &&
10392                             (errno == EINVAL)
10393                         ) {
10394                                 exit(1);
10395                         }
10396                         close(fd);
10397                         fprintf(stderr,"success!\n");
10398                         exit(0);
10399                 }
10400
10401
10402 _ACEOF
10403 rm -f conftest$ac_exeext
10404 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10405   (eval $ac_link) 2>&5
10406   ac_status=$?
10407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10408   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10409   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10410   (eval $ac_try) 2>&5
10411   ac_status=$?
10412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10413   (exit $ac_status); }; }; then
10414   ac_cv_mmap64_works="yes"
10415 else
10416   echo "$as_me: program exited with status $ac_status" >&5
10417 echo "$as_me: failed program was:" >&5
10418 sed 's/^/| /' conftest.$ac_ext >&5
10419
10420 ( exit $ac_status )
10421 ac_cv_mmap64_works="no"
10422 fi
10423 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10424 fi
10425 fi
10426 echo "$as_me:$LINENO: result: $ac_cv_mmap64_works" >&5
10427 echo "${ECHO_T}$ac_cv_mmap64_works" >&6
10428
10429 if test "$ac_cv_mmap64_works" = "yes"
10430 then
10431
10432 cat >>confdefs.h <<\_ACEOF
10433 #define _FILE_OFFSET_BITS 64
10434 _ACEOF
10435
10436 fi
10437
10438
10439 if test "x${GCC}" = "xyes"
10440 then
10441   CFLAGS="$CFLAGS -Wall"
10442   echo "$as_me:$LINENO: checking for gcc strength-reduce bug" >&5
10443 echo $ECHO_N "checking for gcc strength-reduce bug... $ECHO_C" >&6
10444 if test "${ac_cv_c_gcc_strength_bug+set}" = set; then
10445   echo $ECHO_N "(cached) $ECHO_C" >&6
10446 else
10447   if test "$cross_compiling" = yes; then
10448   ac_cv_c_gcc_strength_bug="yes"
10449 else
10450   cat >conftest.$ac_ext <<_ACEOF
10451 #line $LINENO "configure"
10452 /* confdefs.h.  */
10453 _ACEOF
10454 cat confdefs.h >>conftest.$ac_ext
10455 cat >>conftest.$ac_ext <<_ACEOF
10456 /* end confdefs.h.  */
10457
10458 int     L[4] = {0,1,2,3};
10459 int main(void) {
10460   static int Array[3];
10461   unsigned int B = 3;
10462   int i;
10463   for(i=0; i<B; i++) Array[i] = i - 3;
10464   for(i=0; i<4 - 1; i++) L[i] = L[i + 1];
10465   L[i] = 4;
10466
10467   exit( Array[1] != -2 || L[2] != 3);
10468 }
10469 _ACEOF
10470 rm -f conftest$ac_exeext
10471 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10472   (eval $ac_link) 2>&5
10473   ac_status=$?
10474   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10475   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10476   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10477   (eval $ac_try) 2>&5
10478   ac_status=$?
10479   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10480   (exit $ac_status); }; }; then
10481   ac_cv_c_gcc_strength_bug="no"
10482 else
10483   echo "$as_me: program exited with status $ac_status" >&5
10484 echo "$as_me: failed program was:" >&5
10485 sed 's/^/| /' conftest.$ac_ext >&5
10486
10487 ( exit $ac_status )
10488 ac_cv_c_gcc_strength_bug="yes"
10489 fi
10490 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10491 fi
10492 fi
10493 echo "$as_me:$LINENO: result: $ac_cv_c_gcc_strength_bug" >&5
10494 echo "${ECHO_T}$ac_cv_c_gcc_strength_bug" >&6
10495   if test "$ac_cv_c_gcc_strength_bug" = "yes"
10496   then
10497     CFLAGS="$CFLAGS -fno-strength-reduce"
10498   fi
10499
10500     echo "$as_me:$LINENO: checking for gcc -mpreferred-stack-boundary=2 support" >&5
10501 echo $ECHO_N "checking for gcc -mpreferred-stack-boundary=2 support... $ECHO_C" >&6
10502 if test "${ac_cv_c_gcc_stack_boundary+set}" = set; then
10503   echo $ECHO_N "(cached) $ECHO_C" >&6
10504 else
10505   ac_wine_try_cflags_saved=$CFLAGS
10506 CFLAGS="$CFLAGS -mpreferred-stack-boundary=2"
10507 cat >conftest.$ac_ext <<_ACEOF
10508 #line $LINENO "configure"
10509 /* confdefs.h.  */
10510 _ACEOF
10511 cat confdefs.h >>conftest.$ac_ext
10512 cat >>conftest.$ac_ext <<_ACEOF
10513 /* end confdefs.h.  */
10514
10515 int
10516 main ()
10517 {
10518
10519   ;
10520   return 0;
10521 }
10522 _ACEOF
10523 rm -f conftest.$ac_objext conftest$ac_exeext
10524 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10525   (eval $ac_link) 2>&5
10526   ac_status=$?
10527   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10528   (exit $ac_status); } &&
10529          { ac_try='test -s conftest$ac_exeext'
10530   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10531   (eval $ac_try) 2>&5
10532   ac_status=$?
10533   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10534   (exit $ac_status); }; }; then
10535   ac_cv_c_gcc_stack_boundary="yes"
10536 else
10537   echo "$as_me: failed program was:" >&5
10538 sed 's/^/| /' conftest.$ac_ext >&5
10539
10540 ac_cv_c_gcc_stack_boundary="no"
10541 fi
10542 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10543 CFLAGS=$ac_wine_try_cflags_saved
10544 fi
10545 echo "$as_me:$LINENO: result: $ac_cv_c_gcc_stack_boundary" >&5
10546 echo "${ECHO_T}$ac_cv_c_gcc_stack_boundary" >&6
10547   if test "$ac_cv_c_gcc_stack_boundary" = "yes"
10548   then
10549     CFLAGS="$CFLAGS -mpreferred-stack-boundary=2"
10550   fi
10551
10552     echo "$as_me:$LINENO: checking for gcc -gstabs+ support" >&5
10553 echo $ECHO_N "checking for gcc -gstabs+ support... $ECHO_C" >&6
10554 if test "${ac_cv_c_gcc_gstabs+set}" = set; then
10555   echo $ECHO_N "(cached) $ECHO_C" >&6
10556 else
10557   ac_wine_try_cflags_saved=$CFLAGS
10558 CFLAGS="$CFLAGS -gstabs+"
10559 cat >conftest.$ac_ext <<_ACEOF
10560 #line $LINENO "configure"
10561 /* confdefs.h.  */
10562 _ACEOF
10563 cat confdefs.h >>conftest.$ac_ext
10564 cat >>conftest.$ac_ext <<_ACEOF
10565 /* end confdefs.h.  */
10566
10567 int
10568 main ()
10569 {
10570
10571   ;
10572   return 0;
10573 }
10574 _ACEOF
10575 rm -f conftest.$ac_objext conftest$ac_exeext
10576 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10577   (eval $ac_link) 2>&5
10578   ac_status=$?
10579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10580   (exit $ac_status); } &&
10581          { ac_try='test -s conftest$ac_exeext'
10582   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10583   (eval $ac_try) 2>&5
10584   ac_status=$?
10585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10586   (exit $ac_status); }; }; then
10587   ac_cv_c_gcc_gstabs="yes"
10588 else
10589   echo "$as_me: failed program was:" >&5
10590 sed 's/^/| /' conftest.$ac_ext >&5
10591
10592 ac_cv_c_gcc_gstabs="no"
10593 fi
10594 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10595 CFLAGS=$ac_wine_try_cflags_saved
10596 fi
10597 echo "$as_me:$LINENO: result: $ac_cv_c_gcc_gstabs" >&5
10598 echo "${ECHO_T}$ac_cv_c_gcc_gstabs" >&6
10599   if test "$ac_cv_c_gcc_gstabs" = "yes"
10600   then
10601     CFLAGS="$CFLAGS -gstabs+"
10602   fi
10603 fi
10604
10605
10606 echo "$as_me:$LINENO: checking how to define a function in assembly code" >&5
10607 echo $ECHO_N "checking how to define a function in assembly code... $ECHO_C" >&6
10608 if test "${ac_cv_asm_func_def+set}" = set; then
10609   echo $ECHO_N "(cached) $ECHO_C" >&6
10610 else
10611   cat >conftest.$ac_ext <<_ACEOF
10612 #line $LINENO "configure"
10613 /* confdefs.h.  */
10614 _ACEOF
10615 cat confdefs.h >>conftest.$ac_ext
10616 cat >>conftest.$ac_ext <<_ACEOF
10617 /* end confdefs.h.  */
10618 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"); }
10619
10620 int
10621 main ()
10622 {
10623
10624   ;
10625   return 0;
10626 }
10627 _ACEOF
10628 rm -f conftest.$ac_objext conftest$ac_exeext
10629 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10630   (eval $ac_link) 2>&5
10631   ac_status=$?
10632   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10633   (exit $ac_status); } &&
10634          { ac_try='test -s conftest$ac_exeext'
10635   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10636   (eval $ac_try) 2>&5
10637   ac_status=$?
10638   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10639   (exit $ac_status); }; }; then
10640   ac_cv_asm_func_def=".def"
10641 else
10642   echo "$as_me: failed program was:" >&5
10643 sed 's/^/| /' conftest.$ac_ext >&5
10644
10645 cat >conftest.$ac_ext <<_ACEOF
10646 #line $LINENO "configure"
10647 /* confdefs.h.  */
10648 _ACEOF
10649 cat confdefs.h >>conftest.$ac_ext
10650 cat >>conftest.$ac_ext <<_ACEOF
10651 /* end confdefs.h.  */
10652 void ac_asm(void) { asm("\t.globl _ac_test\n\t.type _ac_test,@function\n_ac_test:\t.long 0"); }
10653
10654 int
10655 main ()
10656 {
10657
10658   ;
10659   return 0;
10660 }
10661 _ACEOF
10662 rm -f conftest.$ac_objext conftest$ac_exeext
10663 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10664   (eval $ac_link) 2>&5
10665   ac_status=$?
10666   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10667   (exit $ac_status); } &&
10668          { ac_try='test -s conftest$ac_exeext'
10669   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10670   (eval $ac_try) 2>&5
10671   ac_status=$?
10672   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10673   (exit $ac_status); }; }; then
10674   ac_cv_asm_func_def=".type @function"
10675 else
10676   echo "$as_me: failed program was:" >&5
10677 sed 's/^/| /' conftest.$ac_ext >&5
10678
10679 cat >conftest.$ac_ext <<_ACEOF
10680 #line $LINENO "configure"
10681 /* confdefs.h.  */
10682 _ACEOF
10683 cat confdefs.h >>conftest.$ac_ext
10684 cat >>conftest.$ac_ext <<_ACEOF
10685 /* end confdefs.h.  */
10686 void ac_asm(void) { asm("\t.globl _ac_test\n\t.type _ac_test,2\n_ac_test:\t.long 0"); }
10687
10688 int
10689 main ()
10690 {
10691
10692   ;
10693   return 0;
10694 }
10695 _ACEOF
10696 rm -f conftest.$ac_objext conftest$ac_exeext
10697 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10698   (eval $ac_link) 2>&5
10699   ac_status=$?
10700   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10701   (exit $ac_status); } &&
10702          { ac_try='test -s conftest$ac_exeext'
10703   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10704   (eval $ac_try) 2>&5
10705   ac_status=$?
10706   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10707   (exit $ac_status); }; }; then
10708   ac_cv_asm_func_def=".type 2"
10709 else
10710   echo "$as_me: failed program was:" >&5
10711 sed 's/^/| /' conftest.$ac_ext >&5
10712
10713 ac_cv_asm_func_def="unknown"
10714 fi
10715 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10716 fi
10717 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10718 fi
10719 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10720 fi
10721 echo "$as_me:$LINENO: result: $ac_cv_asm_func_def" >&5
10722 echo "${ECHO_T}$ac_cv_asm_func_def" >&6
10723
10724
10725
10726 case "$ac_cv_asm_func_def" in
10727   ".def")
10728      cat >>confdefs.h <<\_ACEOF
10729 #define __ASM_FUNC(name) ".def " __ASM_NAME(name) "; .scl 2; .type 32; .endef"
10730 _ACEOF
10731  ;;
10732   ".type @function")
10733      cat >>confdefs.h <<\_ACEOF
10734 #define __ASM_FUNC(name) ".type " __ASM_NAME(name) ",@function"
10735 _ACEOF
10736  ;;
10737   ".type 2")
10738      cat >>confdefs.h <<\_ACEOF
10739 #define __ASM_FUNC(name) ".type " __ASM_NAME(name) ",2"
10740 _ACEOF
10741  ;;
10742   *)
10743      cat >>confdefs.h <<\_ACEOF
10744 #define __ASM_FUNC(name) ""
10745 _ACEOF
10746  ;;
10747 esac
10748
10749
10750 echo "$as_me:$LINENO: checking whether external symbols need an underscore prefix" >&5
10751 echo $ECHO_N "checking whether external symbols need an underscore prefix... $ECHO_C" >&6
10752 if test "${ac_cv_c_extern_prefix+set}" = set; then
10753   echo $ECHO_N "(cached) $ECHO_C" >&6
10754 else
10755   cat >conftest.$ac_ext <<_ACEOF
10756 #line $LINENO "configure"
10757 /* confdefs.h.  */
10758 _ACEOF
10759 cat confdefs.h >>conftest.$ac_ext
10760 cat >>conftest.$ac_ext <<_ACEOF
10761 /* end confdefs.h.  */
10762 void ac_asm(void) { asm(".globl _ac_test\n_ac_test:\t.long 0"); }
10763 extern int ac_test;
10764 int
10765 main ()
10766 {
10767 if (ac_test) return 1
10768   ;
10769   return 0;
10770 }
10771 _ACEOF
10772 rm -f conftest.$ac_objext conftest$ac_exeext
10773 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10774   (eval $ac_link) 2>&5
10775   ac_status=$?
10776   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10777   (exit $ac_status); } &&
10778          { ac_try='test -s conftest$ac_exeext'
10779   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10780   (eval $ac_try) 2>&5
10781   ac_status=$?
10782   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10783   (exit $ac_status); }; }; then
10784   ac_cv_c_extern_prefix="yes"
10785 else
10786   echo "$as_me: failed program was:" >&5
10787 sed 's/^/| /' conftest.$ac_ext >&5
10788
10789 ac_cv_c_extern_prefix="no"
10790 fi
10791 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10792 fi
10793 echo "$as_me:$LINENO: result: $ac_cv_c_extern_prefix" >&5
10794 echo "${ECHO_T}$ac_cv_c_extern_prefix" >&6
10795
10796
10797
10798 if test "$ac_cv_c_extern_prefix" = "yes"
10799 then
10800   cat >>confdefs.h <<\_ACEOF
10801 #define __ASM_NAME(name) "_" name
10802 _ACEOF
10803
10804 else
10805   cat >>confdefs.h <<\_ACEOF
10806 #define __ASM_NAME(name) name
10807 _ACEOF
10808
10809 fi
10810
10811
10812 echo "$as_me:$LINENO: checking whether assembler accepts .string" >&5
10813 echo $ECHO_N "checking whether assembler accepts .string... $ECHO_C" >&6
10814 if test "${ac_cv_c_asm_string+set}" = set; then
10815   echo $ECHO_N "(cached) $ECHO_C" >&6
10816 else
10817   cat >conftest.$ac_ext <<_ACEOF
10818 #line $LINENO "configure"
10819 /* confdefs.h.  */
10820 _ACEOF
10821 cat confdefs.h >>conftest.$ac_ext
10822 cat >>conftest.$ac_ext <<_ACEOF
10823 /* end confdefs.h.  */
10824 void ac_asm(void) { asm(".data\n\t.string \"test\"\n\t.text"); }
10825
10826 int
10827 main ()
10828 {
10829
10830   ;
10831   return 0;
10832 }
10833 _ACEOF
10834 rm -f conftest.$ac_objext conftest$ac_exeext
10835 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10836   (eval $ac_link) 2>&5
10837   ac_status=$?
10838   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10839   (exit $ac_status); } &&
10840          { ac_try='test -s conftest$ac_exeext'
10841   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10842   (eval $ac_try) 2>&5
10843   ac_status=$?
10844   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10845   (exit $ac_status); }; }; then
10846   ac_cv_c_asm_string="yes"
10847 else
10848   echo "$as_me: failed program was:" >&5
10849 sed 's/^/| /' conftest.$ac_ext >&5
10850
10851 ac_cv_c_asm_string="no"
10852 fi
10853 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10854 fi
10855 echo "$as_me:$LINENO: result: $ac_cv_c_asm_string" >&5
10856 echo "${ECHO_T}$ac_cv_c_asm_string" >&6
10857 if test "$ac_cv_c_asm_string" = "yes"
10858 then
10859
10860 cat >>confdefs.h <<\_ACEOF
10861 #define HAVE_ASM_STRING 1
10862 _ACEOF
10863
10864 fi
10865
10866
10867 DLLEXT=""
10868
10869 DLLFLAGS=""
10870
10871 DLLIBS=""
10872
10873 LDDLLFLAGS=""
10874
10875 LDSHARED=""
10876
10877 LIBEXT="so"
10878
10879 IMPLIBEXT="def"
10880
10881
10882 case $host_os in
10883   cygwin*|mingw32*)
10884     if test -n "$ac_tool_prefix"; then
10885   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
10886 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
10887 echo "$as_me:$LINENO: checking for $ac_word" >&5
10888 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10889 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
10890   echo $ECHO_N "(cached) $ECHO_C" >&6
10891 else
10892   if test -n "$DLLTOOL"; then
10893   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
10894 else
10895 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10896 for as_dir in $PATH
10897 do
10898   IFS=$as_save_IFS
10899   test -z "$as_dir" && as_dir=.
10900   for ac_exec_ext in '' $ac_executable_extensions; do
10901   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10902     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
10903     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10904     break 2
10905   fi
10906 done
10907 done
10908
10909 fi
10910 fi
10911 DLLTOOL=$ac_cv_prog_DLLTOOL
10912 if test -n "$DLLTOOL"; then
10913   echo "$as_me:$LINENO: result: $DLLTOOL" >&5
10914 echo "${ECHO_T}$DLLTOOL" >&6
10915 else
10916   echo "$as_me:$LINENO: result: no" >&5
10917 echo "${ECHO_T}no" >&6
10918 fi
10919
10920 fi
10921 if test -z "$ac_cv_prog_DLLTOOL"; then
10922   ac_ct_DLLTOOL=$DLLTOOL
10923   # Extract the first word of "dlltool", so it can be a program name with args.
10924 set dummy dlltool; ac_word=$2
10925 echo "$as_me:$LINENO: checking for $ac_word" >&5
10926 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10927 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
10928   echo $ECHO_N "(cached) $ECHO_C" >&6
10929 else
10930   if test -n "$ac_ct_DLLTOOL"; then
10931   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
10932 else
10933 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10934 for as_dir in $PATH
10935 do
10936   IFS=$as_save_IFS
10937   test -z "$as_dir" && as_dir=.
10938   for ac_exec_ext in '' $ac_executable_extensions; do
10939   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10940     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
10941     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10942     break 2
10943   fi
10944 done
10945 done
10946
10947   test -z "$ac_cv_prog_ac_ct_DLLTOOL" && ac_cv_prog_ac_ct_DLLTOOL="false"
10948 fi
10949 fi
10950 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
10951 if test -n "$ac_ct_DLLTOOL"; then
10952   echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
10953 echo "${ECHO_T}$ac_ct_DLLTOOL" >&6
10954 else
10955   echo "$as_me:$LINENO: result: no" >&5
10956 echo "${ECHO_T}no" >&6
10957 fi
10958
10959   DLLTOOL=$ac_ct_DLLTOOL
10960 else
10961   DLLTOOL="$ac_cv_prog_DLLTOOL"
10962 fi
10963
10964     if test -n "$ac_tool_prefix"; then
10965   # Extract the first word of "${ac_tool_prefix}dllwrap", so it can be a program name with args.
10966 set dummy ${ac_tool_prefix}dllwrap; ac_word=$2
10967 echo "$as_me:$LINENO: checking for $ac_word" >&5
10968 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10969 if test "${ac_cv_prog_DLLWRAP+set}" = set; then
10970   echo $ECHO_N "(cached) $ECHO_C" >&6
10971 else
10972   if test -n "$DLLWRAP"; then
10973   ac_cv_prog_DLLWRAP="$DLLWRAP" # Let the user override the test.
10974 else
10975 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10976 for as_dir in $PATH
10977 do
10978   IFS=$as_save_IFS
10979   test -z "$as_dir" && as_dir=.
10980   for ac_exec_ext in '' $ac_executable_extensions; do
10981   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10982     ac_cv_prog_DLLWRAP="${ac_tool_prefix}dllwrap"
10983     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10984     break 2
10985   fi
10986 done
10987 done
10988
10989 fi
10990 fi
10991 DLLWRAP=$ac_cv_prog_DLLWRAP
10992 if test -n "$DLLWRAP"; then
10993   echo "$as_me:$LINENO: result: $DLLWRAP" >&5
10994 echo "${ECHO_T}$DLLWRAP" >&6
10995 else
10996   echo "$as_me:$LINENO: result: no" >&5
10997 echo "${ECHO_T}no" >&6
10998 fi
10999
11000 fi
11001 if test -z "$ac_cv_prog_DLLWRAP"; then
11002   ac_ct_DLLWRAP=$DLLWRAP
11003   # Extract the first word of "dllwrap", so it can be a program name with args.
11004 set dummy dllwrap; ac_word=$2
11005 echo "$as_me:$LINENO: checking for $ac_word" >&5
11006 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11007 if test "${ac_cv_prog_ac_ct_DLLWRAP+set}" = set; then
11008   echo $ECHO_N "(cached) $ECHO_C" >&6
11009 else
11010   if test -n "$ac_ct_DLLWRAP"; then
11011   ac_cv_prog_ac_ct_DLLWRAP="$ac_ct_DLLWRAP" # Let the user override the test.
11012 else
11013 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11014 for as_dir in $PATH
11015 do
11016   IFS=$as_save_IFS
11017   test -z "$as_dir" && as_dir=.
11018   for ac_exec_ext in '' $ac_executable_extensions; do
11019   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11020     ac_cv_prog_ac_ct_DLLWRAP="dllwrap"
11021     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11022     break 2
11023   fi
11024 done
11025 done
11026
11027   test -z "$ac_cv_prog_ac_ct_DLLWRAP" && ac_cv_prog_ac_ct_DLLWRAP="false"
11028 fi
11029 fi
11030 ac_ct_DLLWRAP=$ac_cv_prog_ac_ct_DLLWRAP
11031 if test -n "$ac_ct_DLLWRAP"; then
11032   echo "$as_me:$LINENO: result: $ac_ct_DLLWRAP" >&5
11033 echo "${ECHO_T}$ac_ct_DLLWRAP" >&6
11034 else
11035   echo "$as_me:$LINENO: result: no" >&5
11036 echo "${ECHO_T}no" >&6
11037 fi
11038
11039   DLLWRAP=$ac_ct_DLLWRAP
11040 else
11041   DLLWRAP="$ac_cv_prog_DLLWRAP"
11042 fi
11043
11044     if test "$DLLWRAP" = "false"; then
11045       LIBEXT="a"
11046     else
11047             LIBEXT="dll"
11048     fi
11049     IMPLIBEXT="a"
11050     ;;
11051   *)
11052
11053 for ac_header in dlfcn.h
11054 do
11055 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11056 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11057   echo "$as_me:$LINENO: checking for $ac_header" >&5
11058 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11059 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11060   echo $ECHO_N "(cached) $ECHO_C" >&6
11061 fi
11062 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11063 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11064 else
11065   # Is the header compilable?
11066 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11067 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11068 cat >conftest.$ac_ext <<_ACEOF
11069 #line $LINENO "configure"
11070 /* confdefs.h.  */
11071 _ACEOF
11072 cat confdefs.h >>conftest.$ac_ext
11073 cat >>conftest.$ac_ext <<_ACEOF
11074 /* end confdefs.h.  */
11075 $ac_includes_default
11076 #include <$ac_header>
11077 _ACEOF
11078 rm -f conftest.$ac_objext
11079 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11080   (eval $ac_compile) 2>&5
11081   ac_status=$?
11082   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11083   (exit $ac_status); } &&
11084          { ac_try='test -s conftest.$ac_objext'
11085   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11086   (eval $ac_try) 2>&5
11087   ac_status=$?
11088   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11089   (exit $ac_status); }; }; then
11090   ac_header_compiler=yes
11091 else
11092   echo "$as_me: failed program was:" >&5
11093 sed 's/^/| /' conftest.$ac_ext >&5
11094
11095 ac_header_compiler=no
11096 fi
11097 rm -f conftest.$ac_objext conftest.$ac_ext
11098 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11099 echo "${ECHO_T}$ac_header_compiler" >&6
11100
11101 # Is the header present?
11102 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11103 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11104 cat >conftest.$ac_ext <<_ACEOF
11105 #line $LINENO "configure"
11106 /* confdefs.h.  */
11107 _ACEOF
11108 cat confdefs.h >>conftest.$ac_ext
11109 cat >>conftest.$ac_ext <<_ACEOF
11110 /* end confdefs.h.  */
11111 #include <$ac_header>
11112 _ACEOF
11113 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11114   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11115   ac_status=$?
11116   grep -v '^ *+' conftest.er1 >conftest.err
11117   rm -f conftest.er1
11118   cat conftest.err >&5
11119   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11120   (exit $ac_status); } >/dev/null; then
11121   if test -s conftest.err; then
11122     ac_cpp_err=$ac_c_preproc_warn_flag
11123   else
11124     ac_cpp_err=
11125   fi
11126 else
11127   ac_cpp_err=yes
11128 fi
11129 if test -z "$ac_cpp_err"; then
11130   ac_header_preproc=yes
11131 else
11132   echo "$as_me: failed program was:" >&5
11133 sed 's/^/| /' conftest.$ac_ext >&5
11134
11135   ac_header_preproc=no
11136 fi
11137 rm -f conftest.err conftest.$ac_ext
11138 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11139 echo "${ECHO_T}$ac_header_preproc" >&6
11140
11141 # So?  What about this header?
11142 case $ac_header_compiler:$ac_header_preproc in
11143   yes:no )
11144     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11145 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11146     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11147 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11148     (
11149       cat <<\_ASBOX
11150 ## ------------------------------------ ##
11151 ## Report this to bug-autoconf@gnu.org. ##
11152 ## ------------------------------------ ##
11153 _ASBOX
11154     ) |
11155       sed "s/^/$as_me: WARNING:     /" >&2
11156     ;;
11157   no:yes )
11158     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11159 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11160     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11161 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11162     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11163 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11164     (
11165       cat <<\_ASBOX
11166 ## ------------------------------------ ##
11167 ## Report this to bug-autoconf@gnu.org. ##
11168 ## ------------------------------------ ##
11169 _ASBOX
11170     ) |
11171       sed "s/^/$as_me: WARNING:     /" >&2
11172     ;;
11173 esac
11174 echo "$as_me:$LINENO: checking for $ac_header" >&5
11175 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11176 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11177   echo $ECHO_N "(cached) $ECHO_C" >&6
11178 else
11179   eval "$as_ac_Header=$ac_header_preproc"
11180 fi
11181 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11182 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11183
11184 fi
11185 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11186   cat >>confdefs.h <<_ACEOF
11187 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11188 _ACEOF
11189
11190 for ac_func in dlopen
11191 do
11192 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11193 echo "$as_me:$LINENO: checking for $ac_func" >&5
11194 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11195 if eval "test \"\${$as_ac_var+set}\" = set"; then
11196   echo $ECHO_N "(cached) $ECHO_C" >&6
11197 else
11198   cat >conftest.$ac_ext <<_ACEOF
11199 #line $LINENO "configure"
11200 /* confdefs.h.  */
11201 _ACEOF
11202 cat confdefs.h >>conftest.$ac_ext
11203 cat >>conftest.$ac_ext <<_ACEOF
11204 /* end confdefs.h.  */
11205 /* System header to define __stub macros and hopefully few prototypes,
11206     which can conflict with char $ac_func (); below.
11207     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11208     <limits.h> exists even on freestanding compilers.  */
11209 #ifdef __STDC__
11210 # include <limits.h>
11211 #else
11212 # include <assert.h>
11213 #endif
11214 /* Override any gcc2 internal prototype to avoid an error.  */
11215 #ifdef __cplusplus
11216 extern "C"
11217 {
11218 #endif
11219 /* We use char because int might match the return type of a gcc2
11220    builtin and then its argument prototype would still apply.  */
11221 char $ac_func ();
11222 /* The GNU C library defines this for functions which it implements
11223     to always fail with ENOSYS.  Some functions are actually named
11224     something starting with __ and the normal name is an alias.  */
11225 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11226 choke me
11227 #else
11228 char (*f) () = $ac_func;
11229 #endif
11230 #ifdef __cplusplus
11231 }
11232 #endif
11233
11234 int
11235 main ()
11236 {
11237 return f != $ac_func;
11238   ;
11239   return 0;
11240 }
11241 _ACEOF
11242 rm -f conftest.$ac_objext conftest$ac_exeext
11243 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11244   (eval $ac_link) 2>&5
11245   ac_status=$?
11246   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11247   (exit $ac_status); } &&
11248          { ac_try='test -s conftest$ac_exeext'
11249   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11250   (eval $ac_try) 2>&5
11251   ac_status=$?
11252   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11253   (exit $ac_status); }; }; then
11254   eval "$as_ac_var=yes"
11255 else
11256   echo "$as_me: failed program was:" >&5
11257 sed 's/^/| /' conftest.$ac_ext >&5
11258
11259 eval "$as_ac_var=no"
11260 fi
11261 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11262 fi
11263 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11264 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11265 if test `eval echo '${'$as_ac_var'}'` = yes; then
11266   cat >>confdefs.h <<_ACEOF
11267 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11268 _ACEOF
11269
11270 else
11271   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11272 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11273 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11274   echo $ECHO_N "(cached) $ECHO_C" >&6
11275 else
11276   ac_check_lib_save_LIBS=$LIBS
11277 LIBS="-ldl  $LIBS"
11278 cat >conftest.$ac_ext <<_ACEOF
11279 #line $LINENO "configure"
11280 /* confdefs.h.  */
11281 _ACEOF
11282 cat confdefs.h >>conftest.$ac_ext
11283 cat >>conftest.$ac_ext <<_ACEOF
11284 /* end confdefs.h.  */
11285
11286 /* Override any gcc2 internal prototype to avoid an error.  */
11287 #ifdef __cplusplus
11288 extern "C"
11289 #endif
11290 /* We use char because int might match the return type of a gcc2
11291    builtin and then its argument prototype would still apply.  */
11292 char dlopen ();
11293 int
11294 main ()
11295 {
11296 dlopen ();
11297   ;
11298   return 0;
11299 }
11300 _ACEOF
11301 rm -f conftest.$ac_objext conftest$ac_exeext
11302 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11303   (eval $ac_link) 2>&5
11304   ac_status=$?
11305   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11306   (exit $ac_status); } &&
11307          { ac_try='test -s conftest$ac_exeext'
11308   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11309   (eval $ac_try) 2>&5
11310   ac_status=$?
11311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11312   (exit $ac_status); }; }; then
11313   ac_cv_lib_dl_dlopen=yes
11314 else
11315   echo "$as_me: failed program was:" >&5
11316 sed 's/^/| /' conftest.$ac_ext >&5
11317
11318 ac_cv_lib_dl_dlopen=no
11319 fi
11320 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11321 LIBS=$ac_check_lib_save_LIBS
11322 fi
11323 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11324 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11325 if test $ac_cv_lib_dl_dlopen = yes; then
11326
11327 cat >>confdefs.h <<\_ACEOF
11328 #define HAVE_DLOPEN 1
11329 _ACEOF
11330
11331                           DLLIBS="-ldl"
11332 else
11333   LIBEXT="a"
11334 fi
11335
11336 fi
11337 done
11338
11339 else
11340   LIBEXT="a"
11341 fi
11342
11343 done
11344
11345
11346     if test "$LIBEXT" = "so"
11347     then
11348       DLLFLAGS="-fPIC"
11349       DLLEXT=".so"
11350       echo "$as_me:$LINENO: checking whether we can build a GNU style ELF dll" >&5
11351 echo $ECHO_N "checking whether we can build a GNU style ELF dll... $ECHO_C" >&6
11352 if test "${ac_cv_c_dll_gnuelf+set}" = set; then
11353   echo $ECHO_N "(cached) $ECHO_C" >&6
11354 else
11355   ac_wine_try_cflags_saved=$CFLAGS
11356 CFLAGS="$CFLAGS -fPIC -shared -Wl,-soname,conftest.so.1.0,-Bsymbolic"
11357 cat >conftest.$ac_ext <<_ACEOF
11358 #line $LINENO "configure"
11359 /* confdefs.h.  */
11360 _ACEOF
11361 cat confdefs.h >>conftest.$ac_ext
11362 cat >>conftest.$ac_ext <<_ACEOF
11363 /* end confdefs.h.  */
11364
11365 int
11366 main ()
11367 {
11368
11369   ;
11370   return 0;
11371 }
11372 _ACEOF
11373 rm -f conftest.$ac_objext conftest$ac_exeext
11374 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11375   (eval $ac_link) 2>&5
11376   ac_status=$?
11377   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11378   (exit $ac_status); } &&
11379          { ac_try='test -s conftest$ac_exeext'
11380   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11381   (eval $ac_try) 2>&5
11382   ac_status=$?
11383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11384   (exit $ac_status); }; }; then
11385   ac_cv_c_dll_gnuelf="yes"
11386 else
11387   echo "$as_me: failed program was:" >&5
11388 sed 's/^/| /' conftest.$ac_ext >&5
11389
11390 ac_cv_c_dll_gnuelf="no"
11391 fi
11392 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11393 CFLAGS=$ac_wine_try_cflags_saved
11394 fi
11395 echo "$as_me:$LINENO: result: $ac_cv_c_dll_gnuelf" >&5
11396 echo "${ECHO_T}$ac_cv_c_dll_gnuelf" >&6
11397       if test "$ac_cv_c_dll_gnuelf" = "yes"
11398       then
11399         LDSHARED="\$(CC) -shared \$(SONAME:%=-Wl,-soname,%)"
11400         LDDLLFLAGS="-Wl,-Bsymbolic"
11401         echo "$as_me:$LINENO: checking whether the linker accepts -z defs" >&5
11402 echo $ECHO_N "checking whether the linker accepts -z defs... $ECHO_C" >&6
11403 if test "${ac_cv_c_dll_zdefs+set}" = set; then
11404   echo $ECHO_N "(cached) $ECHO_C" >&6
11405 else
11406   ac_wine_try_cflags_saved=$CFLAGS
11407 CFLAGS="$CFLAGS -fPIC -shared -Wl,-Bsymbolic,-z,defs"
11408 cat >conftest.$ac_ext <<_ACEOF
11409 #line $LINENO "configure"
11410 /* confdefs.h.  */
11411 _ACEOF
11412 cat confdefs.h >>conftest.$ac_ext
11413 cat >>conftest.$ac_ext <<_ACEOF
11414 /* end confdefs.h.  */
11415
11416 int
11417 main ()
11418 {
11419
11420   ;
11421   return 0;
11422 }
11423 _ACEOF
11424 rm -f conftest.$ac_objext conftest$ac_exeext
11425 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11426   (eval $ac_link) 2>&5
11427   ac_status=$?
11428   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11429   (exit $ac_status); } &&
11430          { ac_try='test -s conftest$ac_exeext'
11431   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11432   (eval $ac_try) 2>&5
11433   ac_status=$?
11434   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11435   (exit $ac_status); }; }; then
11436   ac_cv_c_dll_zdefs="yes"
11437 else
11438   echo "$as_me: failed program was:" >&5
11439 sed 's/^/| /' conftest.$ac_ext >&5
11440
11441 ac_cv_c_dll_zdefs="no"
11442 fi
11443 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11444 CFLAGS=$ac_wine_try_cflags_saved
11445 fi
11446 echo "$as_me:$LINENO: result: $ac_cv_c_dll_zdefs" >&5
11447 echo "${ECHO_T}$ac_cv_c_dll_zdefs" >&6
11448         if test "$ac_cv_c_dll_zdefs" = "yes"
11449         then
11450           LDDLLFLAGS="$LDDLLFLAGS,-z,defs"
11451         fi
11452       else
11453         echo "$as_me:$LINENO: checking whether we can build a UnixWare (Solaris) dll" >&5
11454 echo $ECHO_N "checking whether we can build a UnixWare (Solaris) dll... $ECHO_C" >&6
11455 if test "${ac_cv_c_dll_unixware+set}" = set; then
11456   echo $ECHO_N "(cached) $ECHO_C" >&6
11457 else
11458   ac_wine_try_cflags_saved=$CFLAGS
11459 CFLAGS="$CFLAGS -fPIC -Wl,-G,-h,conftest.so.1.0,-B,symbolic"
11460 cat >conftest.$ac_ext <<_ACEOF
11461 #line $LINENO "configure"
11462 /* confdefs.h.  */
11463 _ACEOF
11464 cat confdefs.h >>conftest.$ac_ext
11465 cat >>conftest.$ac_ext <<_ACEOF
11466 /* end confdefs.h.  */
11467
11468 int
11469 main ()
11470 {
11471
11472   ;
11473   return 0;
11474 }
11475 _ACEOF
11476 rm -f conftest.$ac_objext conftest$ac_exeext
11477 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11478   (eval $ac_link) 2>&5
11479   ac_status=$?
11480   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11481   (exit $ac_status); } &&
11482          { ac_try='test -s conftest$ac_exeext'
11483   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11484   (eval $ac_try) 2>&5
11485   ac_status=$?
11486   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11487   (exit $ac_status); }; }; then
11488   ac_cv_c_dll_unixware="yes"
11489 else
11490   echo "$as_me: failed program was:" >&5
11491 sed 's/^/| /' conftest.$ac_ext >&5
11492
11493 ac_cv_c_dll_unixware="no"
11494 fi
11495 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11496 CFLAGS=$ac_wine_try_cflags_saved
11497 fi
11498 echo "$as_me:$LINENO: result: $ac_cv_c_dll_unixware" >&5
11499 echo "${ECHO_T}$ac_cv_c_dll_unixware" >&6
11500         if test "$ac_cv_c_dll_unixware" = "yes"
11501         then
11502           LDSHARED="\$(CC) -Wl,-G \$(SONAME:%=-Wl,-h,%)"
11503           LDDLLFLAGS="-Wl,-B,symbolic"
11504         fi
11505       fi
11506     fi
11507
11508         CROSSTEST=""
11509
11510     if test "$cross_compiling" = "no"
11511     then
11512       for ac_prog in i586-mingw32msvc-gcc
11513 do
11514   # Extract the first word of "$ac_prog", so it can be a program name with args.
11515 set dummy $ac_prog; ac_word=$2
11516 echo "$as_me:$LINENO: checking for $ac_word" >&5
11517 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11518 if test "${ac_cv_prog_CROSSCC+set}" = set; then
11519   echo $ECHO_N "(cached) $ECHO_C" >&6
11520 else
11521   if test -n "$CROSSCC"; then
11522   ac_cv_prog_CROSSCC="$CROSSCC" # Let the user override the test.
11523 else
11524 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11525 for as_dir in $PATH
11526 do
11527   IFS=$as_save_IFS
11528   test -z "$as_dir" && as_dir=.
11529   for ac_exec_ext in '' $ac_executable_extensions; do
11530   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11531     ac_cv_prog_CROSSCC="$ac_prog"
11532     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11533     break 2
11534   fi
11535 done
11536 done
11537
11538 fi
11539 fi
11540 CROSSCC=$ac_cv_prog_CROSSCC
11541 if test -n "$CROSSCC"; then
11542   echo "$as_me:$LINENO: result: $CROSSCC" >&5
11543 echo "${ECHO_T}$CROSSCC" >&6
11544 else
11545   echo "$as_me:$LINENO: result: no" >&5
11546 echo "${ECHO_T}no" >&6
11547 fi
11548
11549   test -n "$CROSSCC" && break
11550 done
11551 test -n "$CROSSCC" || CROSSCC="false"
11552
11553       for ac_prog in i586-mingw32msvc-dlltool
11554 do
11555   # Extract the first word of "$ac_prog", so it can be a program name with args.
11556 set dummy $ac_prog; ac_word=$2
11557 echo "$as_me:$LINENO: checking for $ac_word" >&5
11558 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11559 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
11560   echo $ECHO_N "(cached) $ECHO_C" >&6
11561 else
11562   if test -n "$DLLTOOL"; then
11563   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
11564 else
11565 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11566 for as_dir in $PATH
11567 do
11568   IFS=$as_save_IFS
11569   test -z "$as_dir" && as_dir=.
11570   for ac_exec_ext in '' $ac_executable_extensions; do
11571   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11572     ac_cv_prog_DLLTOOL="$ac_prog"
11573     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11574     break 2
11575   fi
11576 done
11577 done
11578
11579 fi
11580 fi
11581 DLLTOOL=$ac_cv_prog_DLLTOOL
11582 if test -n "$DLLTOOL"; then
11583   echo "$as_me:$LINENO: result: $DLLTOOL" >&5
11584 echo "${ECHO_T}$DLLTOOL" >&6
11585 else
11586   echo "$as_me:$LINENO: result: no" >&5
11587 echo "${ECHO_T}no" >&6
11588 fi
11589
11590   test -n "$DLLTOOL" && break
11591 done
11592 test -n "$DLLTOOL" || DLLTOOL="false"
11593
11594       if test "$CROSSCC" != "false"; then CROSSTEST="\$(CROSSTEST)"; fi
11595     fi
11596     ;;
11597 esac
11598
11599 if test "$LIBEXT" = "a"; then
11600   { { echo "$as_me:$LINENO: error: could not find a way to build shared libraries.
11601 It is currently not possible to build Wine without shared library
11602 (.so) support to allow transparent switch between .so and .dll files.
11603 If you are using Linux, you will need a newer binutils.
11604 " >&5
11605 echo "$as_me: error: could not find a way to build shared libraries.
11606 It is currently not possible to build Wine without shared library
11607 (.so) support to allow transparent switch between .so and .dll files.
11608 If you are using Linux, you will need a newer binutils.
11609 " >&2;}
11610    { (exit 1); exit 1; }; }
11611 fi
11612
11613 case $build_os in
11614   cygwin*|mingw32*)
11615     LDPATH="PATH=\"\$(TOOLSDIR)/library:\$(TOOLSDIR)/unicode:\$\$PATH\""
11616  ;;
11617   *)
11618     LDPATH="LD_LIBRARY_PATH=\"\$(TOOLSDIR)/library:\$(TOOLSDIR)/unicode:\$\$LD_LIBRARY_PATH\""
11619  ;;
11620 esac
11621
11622 CRTLIBS=""
11623
11624 case $host_os in
11625   mingw32*)
11626     CRTLIBS="-lmsvcrt" ;;
11627 esac
11628
11629
11630 if test "$LIBEXT" = "so"
11631 then
11632   # Extract the first word of "ldd", so it can be a program name with args.
11633 set dummy ldd; ac_word=$2
11634 echo "$as_me:$LINENO: checking for $ac_word" >&5
11635 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11636 if test "${ac_cv_path_LDD+set}" = set; then
11637   echo $ECHO_N "(cached) $ECHO_C" >&6
11638 else
11639   case $LDD in
11640   [\\/]* | ?:[\\/]*)
11641   ac_cv_path_LDD="$LDD" # Let the user override the test with a path.
11642   ;;
11643   *)
11644   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11645 as_dummy="/sbin:/usr/sbin:$PATH"
11646 for as_dir in $as_dummy
11647 do
11648   IFS=$as_save_IFS
11649   test -z "$as_dir" && as_dir=.
11650   for ac_exec_ext in '' $ac_executable_extensions; do
11651   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11652     ac_cv_path_LDD="$as_dir/$ac_word$ac_exec_ext"
11653     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11654     break 2
11655   fi
11656 done
11657 done
11658
11659   test -z "$ac_cv_path_LDD" && ac_cv_path_LDD="true"
11660   ;;
11661 esac
11662 fi
11663 LDD=$ac_cv_path_LDD
11664
11665 if test -n "$LDD"; then
11666   echo "$as_me:$LINENO: result: $LDD" >&5
11667 echo "${ECHO_T}$LDD" >&6
11668 else
11669   echo "$as_me:$LINENO: result: no" >&5
11670 echo "${ECHO_T}no" >&6
11671 fi
11672
11673
11674 echo "$as_me:$LINENO: checking for -lX11 soname" >&5
11675 echo $ECHO_N "checking for -lX11 soname... $ECHO_C" >&6
11676 if test "${ac_cv_lib_soname_X11+set}" = set; then
11677   echo $ECHO_N "(cached) $ECHO_C" >&6
11678 else
11679   ac_get_soname_save_LIBS=$LIBS
11680 LIBS="-lX11 $X_LIBS $X_EXTRA_LIBS $LIBS"
11681   cat >conftest.$ac_ext <<_ACEOF
11682 #line $LINENO "configure"
11683 /* confdefs.h.  */
11684 _ACEOF
11685 cat confdefs.h >>conftest.$ac_ext
11686 cat >>conftest.$ac_ext <<_ACEOF
11687 /* end confdefs.h.  */
11688
11689 /* Override any gcc2 internal prototype to avoid an error.  */
11690 #ifdef __cplusplus
11691 extern "C"
11692 #endif
11693 /* We use char because int might match the return type of a gcc2
11694    builtin and then its argument prototype would still apply.  */
11695 char XCreateWindow ();
11696 int
11697 main ()
11698 {
11699 XCreateWindow ();
11700   ;
11701   return 0;
11702 }
11703 _ACEOF
11704 rm -f conftest.$ac_objext conftest$ac_exeext
11705 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11706   (eval $ac_link) 2>&5
11707   ac_status=$?
11708   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11709   (exit $ac_status); } &&
11710          { ac_try='test -s conftest$ac_exeext'
11711   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11712   (eval $ac_try) 2>&5
11713   ac_status=$?
11714   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11715   (exit $ac_status); }; }; then
11716   ac_cv_lib_soname_X11=`$ac_cv_path_LDD conftest$ac_exeext | grep libX11\\.so | sed 's/^[       ]*\([^  ]*\)[   ]*=>.*$/\1/'`
11717   if test "x$ac_cv_lib_soname_X11" = "x"
11718   then
11719      ac_cv_lib_soname_X11="libX11.so"
11720   fi
11721 else
11722   echo "$as_me: failed program was:" >&5
11723 sed 's/^/| /' conftest.$ac_ext >&5
11724
11725 ac_cv_lib_soname_X11="libX11.so"
11726 fi
11727 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11728   LIBS=$ac_get_soname_save_LIBS
11729 fi
11730 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_X11" >&5
11731 echo "${ECHO_T}$ac_cv_lib_soname_X11" >&6
11732 if test "x$ac_cv_lib_soname_X11" != xNONE
11733 then
11734 cat >>confdefs.h <<_ACEOF
11735 #define SONAME_LIBX11 "$ac_cv_lib_soname_X11"
11736 _ACEOF
11737 fi
11738
11739 echo "$as_me:$LINENO: checking for -lXext soname" >&5
11740 echo $ECHO_N "checking for -lXext soname... $ECHO_C" >&6
11741 if test "${ac_cv_lib_soname_Xext+set}" = set; then
11742   echo $ECHO_N "(cached) $ECHO_C" >&6
11743 else
11744   ac_get_soname_save_LIBS=$LIBS
11745 LIBS="-lXext $X_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
11746   cat >conftest.$ac_ext <<_ACEOF
11747 #line $LINENO "configure"
11748 /* confdefs.h.  */
11749 _ACEOF
11750 cat confdefs.h >>conftest.$ac_ext
11751 cat >>conftest.$ac_ext <<_ACEOF
11752 /* end confdefs.h.  */
11753
11754 /* Override any gcc2 internal prototype to avoid an error.  */
11755 #ifdef __cplusplus
11756 extern "C"
11757 #endif
11758 /* We use char because int might match the return type of a gcc2
11759    builtin and then its argument prototype would still apply.  */
11760 char XextCreateExtension ();
11761 int
11762 main ()
11763 {
11764 XextCreateExtension ();
11765   ;
11766   return 0;
11767 }
11768 _ACEOF
11769 rm -f conftest.$ac_objext conftest$ac_exeext
11770 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11771   (eval $ac_link) 2>&5
11772   ac_status=$?
11773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11774   (exit $ac_status); } &&
11775          { ac_try='test -s conftest$ac_exeext'
11776   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11777   (eval $ac_try) 2>&5
11778   ac_status=$?
11779   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11780   (exit $ac_status); }; }; then
11781   ac_cv_lib_soname_Xext=`$ac_cv_path_LDD conftest$ac_exeext | grep libXext\\.so | sed 's/^[     ]*\([^  ]*\)[   ]*=>.*$/\1/'`
11782   if test "x$ac_cv_lib_soname_Xext" = "x"
11783   then
11784      ac_cv_lib_soname_Xext="libXext.so"
11785   fi
11786 else
11787   echo "$as_me: failed program was:" >&5
11788 sed 's/^/| /' conftest.$ac_ext >&5
11789
11790 ac_cv_lib_soname_Xext="libXext.so"
11791 fi
11792 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11793   LIBS=$ac_get_soname_save_LIBS
11794 fi
11795 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_Xext" >&5
11796 echo "${ECHO_T}$ac_cv_lib_soname_Xext" >&6
11797 if test "x$ac_cv_lib_soname_Xext" != xNONE
11798 then
11799 cat >>confdefs.h <<_ACEOF
11800 #define SONAME_LIBXEXT "$ac_cv_lib_soname_Xext"
11801 _ACEOF
11802 fi
11803
11804 echo "$as_me:$LINENO: checking for -lXrender soname" >&5
11805 echo $ECHO_N "checking for -lXrender soname... $ECHO_C" >&6
11806 if test "${ac_cv_lib_soname_Xrender+set}" = set; then
11807   echo $ECHO_N "(cached) $ECHO_C" >&6
11808 else
11809   ac_get_soname_save_LIBS=$LIBS
11810 LIBS="-lXrender $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
11811   cat >conftest.$ac_ext <<_ACEOF
11812 #line $LINENO "configure"
11813 /* confdefs.h.  */
11814 _ACEOF
11815 cat confdefs.h >>conftest.$ac_ext
11816 cat >>conftest.$ac_ext <<_ACEOF
11817 /* end confdefs.h.  */
11818
11819 /* Override any gcc2 internal prototype to avoid an error.  */
11820 #ifdef __cplusplus
11821 extern "C"
11822 #endif
11823 /* We use char because int might match the return type of a gcc2
11824    builtin and then its argument prototype would still apply.  */
11825 char XRenderQueryExtension ();
11826 int
11827 main ()
11828 {
11829 XRenderQueryExtension ();
11830   ;
11831   return 0;
11832 }
11833 _ACEOF
11834 rm -f conftest.$ac_objext conftest$ac_exeext
11835 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11836   (eval $ac_link) 2>&5
11837   ac_status=$?
11838   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11839   (exit $ac_status); } &&
11840          { ac_try='test -s conftest$ac_exeext'
11841   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11842   (eval $ac_try) 2>&5
11843   ac_status=$?
11844   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11845   (exit $ac_status); }; }; then
11846   ac_cv_lib_soname_Xrender=`$ac_cv_path_LDD conftest$ac_exeext | grep libXrender\\.so | sed 's/^[       ]*\([^  ]*\)[   ]*=>.*$/\1/'`
11847   if test "x$ac_cv_lib_soname_Xrender" = "x"
11848   then
11849      ac_cv_lib_soname_Xrender="libXrender.so"
11850   fi
11851 else
11852   echo "$as_me: failed program was:" >&5
11853 sed 's/^/| /' conftest.$ac_ext >&5
11854
11855 ac_cv_lib_soname_Xrender="libXrender.so"
11856 fi
11857 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11858   LIBS=$ac_get_soname_save_LIBS
11859 fi
11860 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_Xrender" >&5
11861 echo "${ECHO_T}$ac_cv_lib_soname_Xrender" >&6
11862 if test "x$ac_cv_lib_soname_Xrender" != xNONE
11863 then
11864 cat >>confdefs.h <<_ACEOF
11865 #define SONAME_LIBXRENDER "$ac_cv_lib_soname_Xrender"
11866 _ACEOF
11867 fi
11868
11869 echo "$as_me:$LINENO: checking for -lfreetype soname" >&5
11870 echo $ECHO_N "checking for -lfreetype soname... $ECHO_C" >&6
11871 if test "${ac_cv_lib_soname_freetype+set}" = set; then
11872   echo $ECHO_N "(cached) $ECHO_C" >&6
11873 else
11874   ac_get_soname_save_LIBS=$LIBS
11875 LIBS="-lfreetype $X_LIBS $LIBS"
11876   cat >conftest.$ac_ext <<_ACEOF
11877 #line $LINENO "configure"
11878 /* confdefs.h.  */
11879 _ACEOF
11880 cat confdefs.h >>conftest.$ac_ext
11881 cat >>conftest.$ac_ext <<_ACEOF
11882 /* end confdefs.h.  */
11883
11884 /* Override any gcc2 internal prototype to avoid an error.  */
11885 #ifdef __cplusplus
11886 extern "C"
11887 #endif
11888 /* We use char because int might match the return type of a gcc2
11889    builtin and then its argument prototype would still apply.  */
11890 char FT_Init_FreeType ();
11891 int
11892 main ()
11893 {
11894 FT_Init_FreeType ();
11895   ;
11896   return 0;
11897 }
11898 _ACEOF
11899 rm -f conftest.$ac_objext conftest$ac_exeext
11900 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11901   (eval $ac_link) 2>&5
11902   ac_status=$?
11903   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11904   (exit $ac_status); } &&
11905          { ac_try='test -s conftest$ac_exeext'
11906   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11907   (eval $ac_try) 2>&5
11908   ac_status=$?
11909   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11910   (exit $ac_status); }; }; then
11911   ac_cv_lib_soname_freetype=`$ac_cv_path_LDD conftest$ac_exeext | grep libfreetype\\.so | sed 's/^[     ]*\([^  ]*\)[   ]*=>.*$/\1/'`
11912   if test "x$ac_cv_lib_soname_freetype" = "x"
11913   then
11914      ac_cv_lib_soname_freetype="libfreetype.so"
11915   fi
11916 else
11917   echo "$as_me: failed program was:" >&5
11918 sed 's/^/| /' conftest.$ac_ext >&5
11919
11920 ac_cv_lib_soname_freetype="libfreetype.so"
11921 fi
11922 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11923   LIBS=$ac_get_soname_save_LIBS
11924 fi
11925 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_freetype" >&5
11926 echo "${ECHO_T}$ac_cv_lib_soname_freetype" >&6
11927 if test "x$ac_cv_lib_soname_freetype" != xNONE
11928 then
11929 cat >>confdefs.h <<_ACEOF
11930 #define SONAME_LIBFREETYPE "$ac_cv_lib_soname_freetype"
11931 _ACEOF
11932 fi
11933
11934 echo "$as_me:$LINENO: checking for -lGL soname" >&5
11935 echo $ECHO_N "checking for -lGL soname... $ECHO_C" >&6
11936 if test "${ac_cv_lib_soname_GL+set}" = set; then
11937   echo $ECHO_N "(cached) $ECHO_C" >&6
11938 else
11939   ac_get_soname_save_LIBS=$LIBS
11940 LIBS="-lGL $X_LIBS $X_EXTRA_LIBS $LIBS"
11941   cat >conftest.$ac_ext <<_ACEOF
11942 #line $LINENO "configure"
11943 /* confdefs.h.  */
11944 _ACEOF
11945 cat confdefs.h >>conftest.$ac_ext
11946 cat >>conftest.$ac_ext <<_ACEOF
11947 /* end confdefs.h.  */
11948
11949 /* Override any gcc2 internal prototype to avoid an error.  */
11950 #ifdef __cplusplus
11951 extern "C"
11952 #endif
11953 /* We use char because int might match the return type of a gcc2
11954    builtin and then its argument prototype would still apply.  */
11955 char glXQueryExtension ();
11956 int
11957 main ()
11958 {
11959 glXQueryExtension ();
11960   ;
11961   return 0;
11962 }
11963 _ACEOF
11964 rm -f conftest.$ac_objext conftest$ac_exeext
11965 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11966   (eval $ac_link) 2>&5
11967   ac_status=$?
11968   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11969   (exit $ac_status); } &&
11970          { ac_try='test -s conftest$ac_exeext'
11971   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11972   (eval $ac_try) 2>&5
11973   ac_status=$?
11974   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11975   (exit $ac_status); }; }; then
11976   ac_cv_lib_soname_GL=`$ac_cv_path_LDD conftest$ac_exeext | grep libGL\\.so | sed 's/^[         ]*\([^  ]*\)[   ]*=>.*$/\1/'`
11977   if test "x$ac_cv_lib_soname_GL" = "x"
11978   then
11979      ac_cv_lib_soname_GL="libGL.so"
11980   fi
11981 else
11982   echo "$as_me: failed program was:" >&5
11983 sed 's/^/| /' conftest.$ac_ext >&5
11984
11985 ac_cv_lib_soname_GL="libGL.so"
11986 fi
11987 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11988   LIBS=$ac_get_soname_save_LIBS
11989 fi
11990 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_GL" >&5
11991 echo "${ECHO_T}$ac_cv_lib_soname_GL" >&6
11992 if test "x$ac_cv_lib_soname_GL" != xNONE
11993 then
11994 cat >>confdefs.h <<_ACEOF
11995 #define SONAME_LIBGL "$ac_cv_lib_soname_GL"
11996 _ACEOF
11997 fi
11998
11999 echo "$as_me:$LINENO: checking for -lcups soname" >&5
12000 echo $ECHO_N "checking for -lcups soname... $ECHO_C" >&6
12001 if test "${ac_cv_lib_soname_cups+set}" = set; then
12002   echo $ECHO_N "(cached) $ECHO_C" >&6
12003 else
12004   ac_get_soname_save_LIBS=$LIBS
12005 LIBS="-lcups  $LIBS"
12006   cat >conftest.$ac_ext <<_ACEOF
12007 #line $LINENO "configure"
12008 /* confdefs.h.  */
12009 _ACEOF
12010 cat confdefs.h >>conftest.$ac_ext
12011 cat >>conftest.$ac_ext <<_ACEOF
12012 /* end confdefs.h.  */
12013
12014 /* Override any gcc2 internal prototype to avoid an error.  */
12015 #ifdef __cplusplus
12016 extern "C"
12017 #endif
12018 /* We use char because int might match the return type of a gcc2
12019    builtin and then its argument prototype would still apply.  */
12020 char cupsGetDefault ();
12021 int
12022 main ()
12023 {
12024 cupsGetDefault ();
12025   ;
12026   return 0;
12027 }
12028 _ACEOF
12029 rm -f conftest.$ac_objext conftest$ac_exeext
12030 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12031   (eval $ac_link) 2>&5
12032   ac_status=$?
12033   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12034   (exit $ac_status); } &&
12035          { ac_try='test -s conftest$ac_exeext'
12036   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12037   (eval $ac_try) 2>&5
12038   ac_status=$?
12039   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12040   (exit $ac_status); }; }; then
12041   ac_cv_lib_soname_cups=`$ac_cv_path_LDD conftest$ac_exeext | grep libcups\\.so | sed 's/^[     ]*\([^  ]*\)[   ]*=>.*$/\1/'`
12042   if test "x$ac_cv_lib_soname_cups" = "x"
12043   then
12044      ac_cv_lib_soname_cups="libcups.so"
12045   fi
12046 else
12047   echo "$as_me: failed program was:" >&5
12048 sed 's/^/| /' conftest.$ac_ext >&5
12049
12050 ac_cv_lib_soname_cups="libcups.so"
12051 fi
12052 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12053   LIBS=$ac_get_soname_save_LIBS
12054 fi
12055 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_cups" >&5
12056 echo "${ECHO_T}$ac_cv_lib_soname_cups" >&6
12057 if test "x$ac_cv_lib_soname_cups" != xNONE
12058 then
12059 cat >>confdefs.h <<_ACEOF
12060 #define SONAME_LIBCUPS "$ac_cv_lib_soname_cups"
12061 _ACEOF
12062 fi
12063
12064 echo "$as_me:$LINENO: checking for -ljack soname" >&5
12065 echo $ECHO_N "checking for -ljack soname... $ECHO_C" >&6
12066 if test "${ac_cv_lib_soname_jack+set}" = set; then
12067   echo $ECHO_N "(cached) $ECHO_C" >&6
12068 else
12069   ac_get_soname_save_LIBS=$LIBS
12070 LIBS="-ljack  $LIBS"
12071   cat >conftest.$ac_ext <<_ACEOF
12072 #line $LINENO "configure"
12073 /* confdefs.h.  */
12074 _ACEOF
12075 cat confdefs.h >>conftest.$ac_ext
12076 cat >>conftest.$ac_ext <<_ACEOF
12077 /* end confdefs.h.  */
12078
12079 /* Override any gcc2 internal prototype to avoid an error.  */
12080 #ifdef __cplusplus
12081 extern "C"
12082 #endif
12083 /* We use char because int might match the return type of a gcc2
12084    builtin and then its argument prototype would still apply.  */
12085 char jack_client_new ();
12086 int
12087 main ()
12088 {
12089 jack_client_new ();
12090   ;
12091   return 0;
12092 }
12093 _ACEOF
12094 rm -f conftest.$ac_objext conftest$ac_exeext
12095 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12096   (eval $ac_link) 2>&5
12097   ac_status=$?
12098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12099   (exit $ac_status); } &&
12100          { ac_try='test -s conftest$ac_exeext'
12101   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12102   (eval $ac_try) 2>&5
12103   ac_status=$?
12104   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12105   (exit $ac_status); }; }; then
12106   ac_cv_lib_soname_jack=`$ac_cv_path_LDD conftest$ac_exeext | grep libjack\\.so | sed 's/^[     ]*\([^  ]*\)[   ]*=>.*$/\1/'`
12107   if test "x$ac_cv_lib_soname_jack" = "x"
12108   then
12109      ac_cv_lib_soname_jack="libjack.so"
12110   fi
12111 else
12112   echo "$as_me: failed program was:" >&5
12113 sed 's/^/| /' conftest.$ac_ext >&5
12114
12115 ac_cv_lib_soname_jack="libjack.so"
12116 fi
12117 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12118   LIBS=$ac_get_soname_save_LIBS
12119 fi
12120 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_jack" >&5
12121 echo "${ECHO_T}$ac_cv_lib_soname_jack" >&6
12122 if test "x$ac_cv_lib_soname_jack" != xNONE
12123 then
12124 cat >>confdefs.h <<_ACEOF
12125 #define SONAME_LIBJACK "$ac_cv_lib_soname_jack"
12126 _ACEOF
12127 fi
12128 fi
12129
12130
12131
12132 wine_cv_libc_reentrant=no
12133 echo "$as_me:$LINENO: checking for reentrant libc: __errno_location" >&5
12134 echo $ECHO_N "checking for reentrant libc: __errno_location... $ECHO_C" >&6
12135 if test "${wine_cv_libc_r___errno_location+set}" = set; then
12136   echo $ECHO_N "(cached) $ECHO_C" >&6
12137 else
12138   if test "$cross_compiling" = yes; then
12139   wine_cv_libc_r___errno_location=yes
12140 else
12141   cat >conftest.$ac_ext <<_ACEOF
12142 #line $LINENO "configure"
12143 /* confdefs.h.  */
12144 _ACEOF
12145 cat confdefs.h >>conftest.$ac_ext
12146 cat >>conftest.$ac_ext <<_ACEOF
12147 /* end confdefs.h.  */
12148 int myerrno = 0;
12149 int *__errno_location(){return &myerrno;}
12150 main(){close(333); close(333); exit(!myerrno);}
12151 _ACEOF
12152 rm -f conftest$ac_exeext
12153 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12154   (eval $ac_link) 2>&5
12155   ac_status=$?
12156   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12157   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12158   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12159   (eval $ac_try) 2>&5
12160   ac_status=$?
12161   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12162   (exit $ac_status); }; }; then
12163   wine_cv_libc_r___errno_location=yes
12164 else
12165   echo "$as_me: program exited with status $ac_status" >&5
12166 echo "$as_me: failed program was:" >&5
12167 sed 's/^/| /' conftest.$ac_ext >&5
12168
12169 ( exit $ac_status )
12170 wine_cv_libc_r___errno_location=no
12171 fi
12172 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12173 fi
12174 fi
12175 echo "$as_me:$LINENO: result: $wine_cv_libc_r___errno_location" >&5
12176 echo "${ECHO_T}$wine_cv_libc_r___errno_location" >&6
12177 if test "$wine_cv_libc_r___errno_location" = "yes"; then
12178   wine_cv_libc_reentrant=__errno_location
12179 else
12180     echo "$as_me:$LINENO: checking for reentrant libc: __error" >&5
12181 echo $ECHO_N "checking for reentrant libc: __error... $ECHO_C" >&6
12182 if test "${wine_cv_libc_r___error+set}" = set; then
12183   echo $ECHO_N "(cached) $ECHO_C" >&6
12184 else
12185   if test "$cross_compiling" = yes; then
12186   wine_cv_libc_r___error=yes
12187 else
12188   cat >conftest.$ac_ext <<_ACEOF
12189 #line $LINENO "configure"
12190 /* confdefs.h.  */
12191 _ACEOF
12192 cat confdefs.h >>conftest.$ac_ext
12193 cat >>conftest.$ac_ext <<_ACEOF
12194 /* end confdefs.h.  */
12195 int myerrno = 0;
12196 int *__error(){return &myerrno;}
12197 main(){close(333); close(333); exit(!myerrno);}
12198 _ACEOF
12199 rm -f conftest$ac_exeext
12200 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12201   (eval $ac_link) 2>&5
12202   ac_status=$?
12203   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12204   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12205   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12206   (eval $ac_try) 2>&5
12207   ac_status=$?
12208   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12209   (exit $ac_status); }; }; then
12210   wine_cv_libc_r___error=yes
12211 else
12212   echo "$as_me: program exited with status $ac_status" >&5
12213 echo "$as_me: failed program was:" >&5
12214 sed 's/^/| /' conftest.$ac_ext >&5
12215
12216 ( exit $ac_status )
12217 wine_cv_libc_r___error=no
12218 fi
12219 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12220 fi
12221 fi
12222 echo "$as_me:$LINENO: result: $wine_cv_libc_r___error" >&5
12223 echo "${ECHO_T}$wine_cv_libc_r___error" >&6
12224 if test "$wine_cv_libc_r___error" = "yes"; then
12225   wine_cv_libc_reentrant=__error
12226 else
12227       echo "$as_me:$LINENO: checking for reentrant libc: ___errno" >&5
12228 echo $ECHO_N "checking for reentrant libc: ___errno... $ECHO_C" >&6
12229 if test "${wine_cv_libc_r____errno+set}" = set; then
12230   echo $ECHO_N "(cached) $ECHO_C" >&6
12231 else
12232   if test "$cross_compiling" = yes; then
12233   wine_cv_libc_r____errno=yes
12234 else
12235   cat >conftest.$ac_ext <<_ACEOF
12236 #line $LINENO "configure"
12237 /* confdefs.h.  */
12238 _ACEOF
12239 cat confdefs.h >>conftest.$ac_ext
12240 cat >>conftest.$ac_ext <<_ACEOF
12241 /* end confdefs.h.  */
12242 int myerrno = 0;
12243 int *___errno(){return &myerrno;}
12244 main(){close(333); close(333); exit(!myerrno);}
12245 _ACEOF
12246 rm -f conftest$ac_exeext
12247 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12248   (eval $ac_link) 2>&5
12249   ac_status=$?
12250   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12251   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12252   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12253   (eval $ac_try) 2>&5
12254   ac_status=$?
12255   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12256   (exit $ac_status); }; }; then
12257   wine_cv_libc_r____errno=yes
12258 else
12259   echo "$as_me: program exited with status $ac_status" >&5
12260 echo "$as_me: failed program was:" >&5
12261 sed 's/^/| /' conftest.$ac_ext >&5
12262
12263 ( exit $ac_status )
12264 wine_cv_libc_r____errno=no
12265 fi
12266 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12267 fi
12268 fi
12269 echo "$as_me:$LINENO: result: $wine_cv_libc_r____errno" >&5
12270 echo "${ECHO_T}$wine_cv_libc_r____errno" >&6
12271 if test "$wine_cv_libc_r____errno" = "yes"; then
12272   wine_cv_libc_reentrant=___errno
12273 else
12274         echo "$as_me:$LINENO: checking for reentrant libc: __thr_errno" >&5
12275 echo $ECHO_N "checking for reentrant libc: __thr_errno... $ECHO_C" >&6
12276 if test "${wine_cv_libc_r___thr_errno+set}" = set; then
12277   echo $ECHO_N "(cached) $ECHO_C" >&6
12278 else
12279   if test "$cross_compiling" = yes; then
12280   wine_cv_libc_r___thr_errno=yes
12281 else
12282   cat >conftest.$ac_ext <<_ACEOF
12283 #line $LINENO "configure"
12284 /* confdefs.h.  */
12285 _ACEOF
12286 cat confdefs.h >>conftest.$ac_ext
12287 cat >>conftest.$ac_ext <<_ACEOF
12288 /* end confdefs.h.  */
12289 int myerrno = 0;
12290 int *__thr_errno(){return &myerrno;}
12291 main(){close(333); close(333); exit(!myerrno);}
12292 _ACEOF
12293 rm -f conftest$ac_exeext
12294 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12295   (eval $ac_link) 2>&5
12296   ac_status=$?
12297   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12298   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12299   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12300   (eval $ac_try) 2>&5
12301   ac_status=$?
12302   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12303   (exit $ac_status); }; }; then
12304   wine_cv_libc_r___thr_errno=yes
12305 else
12306   echo "$as_me: program exited with status $ac_status" >&5
12307 echo "$as_me: failed program was:" >&5
12308 sed 's/^/| /' conftest.$ac_ext >&5
12309
12310 ( exit $ac_status )
12311 wine_cv_libc_r___thr_errno=no
12312 fi
12313 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12314 fi
12315 fi
12316 echo "$as_me:$LINENO: result: $wine_cv_libc_r___thr_errno" >&5
12317 echo "${ECHO_T}$wine_cv_libc_r___thr_errno" >&6
12318 if test "$wine_cv_libc_r___thr_errno" = "yes"; then
12319   wine_cv_libc_reentrant=__thr_errno
12320 else
12321           echo "$as_me:$LINENO: checking for reentrant libc: __errno" >&5
12322 echo $ECHO_N "checking for reentrant libc: __errno... $ECHO_C" >&6
12323 if test "${wine_cv_libc_r___errno+set}" = set; then
12324   echo $ECHO_N "(cached) $ECHO_C" >&6
12325 else
12326   if test "$cross_compiling" = yes; then
12327   wine_cv_libc_r___errno=yes
12328 else
12329   cat >conftest.$ac_ext <<_ACEOF
12330 #line $LINENO "configure"
12331 /* confdefs.h.  */
12332 _ACEOF
12333 cat confdefs.h >>conftest.$ac_ext
12334 cat >>conftest.$ac_ext <<_ACEOF
12335 /* end confdefs.h.  */
12336 int myerrno = 0;
12337 int *__errno(){return &myerrno;}
12338 main(){close(333); close(333); exit(!myerrno);}
12339 _ACEOF
12340 rm -f conftest$ac_exeext
12341 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12342   (eval $ac_link) 2>&5
12343   ac_status=$?
12344   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12345   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12346   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12347   (eval $ac_try) 2>&5
12348   ac_status=$?
12349   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12350   (exit $ac_status); }; }; then
12351   wine_cv_libc_r___errno=yes
12352 else
12353   echo "$as_me: program exited with status $ac_status" >&5
12354 echo "$as_me: failed program was:" >&5
12355 sed 's/^/| /' conftest.$ac_ext >&5
12356
12357 ( exit $ac_status )
12358 wine_cv_libc_r___errno=no
12359 fi
12360 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12361 fi
12362 fi
12363 echo "$as_me:$LINENO: result: $wine_cv_libc_r___errno" >&5
12364 echo "${ECHO_T}$wine_cv_libc_r___errno" >&6
12365 if test "$wine_cv_libc_r___errno" = "yes"; then
12366   wine_cv_libc_reentrant=__errno
12367 fi
12368
12369
12370 fi
12371
12372 fi
12373
12374 fi
12375
12376 fi
12377
12378
12379 if test "$wine_cv_libc_reentrant" != "no"
12380 then
12381
12382 cat >>confdefs.h <<_ACEOF
12383 #define ERRNO_LOCATION $wine_cv_libc_reentrant
12384 _ACEOF
12385
12386 fi
12387
12388
12389 if test "$have_x" = "yes"
12390 then
12391 echo "$as_me:$LINENO: checking for reentrant X libraries" >&5
12392 echo $ECHO_N "checking for reentrant X libraries... $ECHO_C" >&6
12393 if test "${wine_cv_x_reentrant+set}" = set; then
12394   echo $ECHO_N "(cached) $ECHO_C" >&6
12395 else
12396   libX11_check=none
12397     for dir in "$x_libraries" /usr/lib /usr/local/lib /lib; do
12398         if test -r $dir/libX11.so; then
12399             libX11_check="-D $dir/libX11.so"
12400             break
12401         fi
12402         if test -r $dir/libX11.a; then
12403             libX11_check="$dir/libX11.a"
12404             break
12405         fi
12406     done
12407     if test "$libX11_check" != "none"; then
12408         if nm $libX11_check | grep $wine_cv_libc_reentrant >/dev/null 2>&1
12409         then
12410             wine_cv_x_reentrant=yes
12411         else
12412             wine_cv_x_reentrant=no
12413         fi
12414     else
12415         wine_cv_x_reentrant=unknown
12416     fi
12417 fi
12418 echo "$as_me:$LINENO: result: $wine_cv_x_reentrant" >&5
12419 echo "${ECHO_T}$wine_cv_x_reentrant" >&6
12420 fi
12421
12422
12423 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
12424 # for constant arguments.  Useless!
12425 echo "$as_me:$LINENO: checking for working alloca.h" >&5
12426 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
12427 if test "${ac_cv_working_alloca_h+set}" = set; then
12428   echo $ECHO_N "(cached) $ECHO_C" >&6
12429 else
12430   cat >conftest.$ac_ext <<_ACEOF
12431 #line $LINENO "configure"
12432 /* confdefs.h.  */
12433 _ACEOF
12434 cat confdefs.h >>conftest.$ac_ext
12435 cat >>conftest.$ac_ext <<_ACEOF
12436 /* end confdefs.h.  */
12437 #include <alloca.h>
12438 int
12439 main ()
12440 {
12441 char *p = (char *) alloca (2 * sizeof (int));
12442   ;
12443   return 0;
12444 }
12445 _ACEOF
12446 rm -f conftest.$ac_objext conftest$ac_exeext
12447 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12448   (eval $ac_link) 2>&5
12449   ac_status=$?
12450   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12451   (exit $ac_status); } &&
12452          { ac_try='test -s conftest$ac_exeext'
12453   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12454   (eval $ac_try) 2>&5
12455   ac_status=$?
12456   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12457   (exit $ac_status); }; }; then
12458   ac_cv_working_alloca_h=yes
12459 else
12460   echo "$as_me: failed program was:" >&5
12461 sed 's/^/| /' conftest.$ac_ext >&5
12462
12463 ac_cv_working_alloca_h=no
12464 fi
12465 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12466 fi
12467 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
12468 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
12469 if test $ac_cv_working_alloca_h = yes; then
12470
12471 cat >>confdefs.h <<\_ACEOF
12472 #define HAVE_ALLOCA_H 1
12473 _ACEOF
12474
12475 fi
12476
12477 echo "$as_me:$LINENO: checking for alloca" >&5
12478 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
12479 if test "${ac_cv_func_alloca_works+set}" = set; then
12480   echo $ECHO_N "(cached) $ECHO_C" >&6
12481 else
12482   cat >conftest.$ac_ext <<_ACEOF
12483 #line $LINENO "configure"
12484 /* confdefs.h.  */
12485 _ACEOF
12486 cat confdefs.h >>conftest.$ac_ext
12487 cat >>conftest.$ac_ext <<_ACEOF
12488 /* end confdefs.h.  */
12489 #ifdef __GNUC__
12490 # define alloca __builtin_alloca
12491 #else
12492 # ifdef _MSC_VER
12493 #  include <malloc.h>
12494 #  define alloca _alloca
12495 # else
12496 #  if HAVE_ALLOCA_H
12497 #   include <alloca.h>
12498 #  else
12499 #   ifdef _AIX
12500  #pragma alloca
12501 #   else
12502 #    ifndef alloca /* predefined by HP cc +Olibcalls */
12503 char *alloca ();
12504 #    endif
12505 #   endif
12506 #  endif
12507 # endif
12508 #endif
12509
12510 int
12511 main ()
12512 {
12513 char *p = (char *) alloca (1);
12514   ;
12515   return 0;
12516 }
12517 _ACEOF
12518 rm -f conftest.$ac_objext conftest$ac_exeext
12519 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12520   (eval $ac_link) 2>&5
12521   ac_status=$?
12522   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12523   (exit $ac_status); } &&
12524          { ac_try='test -s conftest$ac_exeext'
12525   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12526   (eval $ac_try) 2>&5
12527   ac_status=$?
12528   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12529   (exit $ac_status); }; }; then
12530   ac_cv_func_alloca_works=yes
12531 else
12532   echo "$as_me: failed program was:" >&5
12533 sed 's/^/| /' conftest.$ac_ext >&5
12534
12535 ac_cv_func_alloca_works=no
12536 fi
12537 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12538 fi
12539 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
12540 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
12541
12542 if test $ac_cv_func_alloca_works = yes; then
12543
12544 cat >>confdefs.h <<\_ACEOF
12545 #define HAVE_ALLOCA 1
12546 _ACEOF
12547
12548 else
12549   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
12550 # that cause trouble.  Some versions do not even contain alloca or
12551 # contain a buggy version.  If you still want to use their alloca,
12552 # use ar to extract alloca.o from them instead of compiling alloca.c.
12553
12554 ALLOCA=alloca.$ac_objext
12555
12556 cat >>confdefs.h <<\_ACEOF
12557 #define C_ALLOCA 1
12558 _ACEOF
12559
12560
12561 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
12562 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
12563 if test "${ac_cv_os_cray+set}" = set; then
12564   echo $ECHO_N "(cached) $ECHO_C" >&6
12565 else
12566   cat >conftest.$ac_ext <<_ACEOF
12567 #line $LINENO "configure"
12568 /* confdefs.h.  */
12569 _ACEOF
12570 cat confdefs.h >>conftest.$ac_ext
12571 cat >>conftest.$ac_ext <<_ACEOF
12572 /* end confdefs.h.  */
12573 #if defined(CRAY) && ! defined(CRAY2)
12574 webecray
12575 #else
12576 wenotbecray
12577 #endif
12578
12579 _ACEOF
12580 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12581   $EGREP "webecray" >/dev/null 2>&1; then
12582   ac_cv_os_cray=yes
12583 else
12584   ac_cv_os_cray=no
12585 fi
12586 rm -f conftest*
12587
12588 fi
12589 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
12590 echo "${ECHO_T}$ac_cv_os_cray" >&6
12591 if test $ac_cv_os_cray = yes; then
12592   for ac_func in _getb67 GETB67 getb67; do
12593     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12594 echo "$as_me:$LINENO: checking for $ac_func" >&5
12595 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12596 if eval "test \"\${$as_ac_var+set}\" = set"; then
12597   echo $ECHO_N "(cached) $ECHO_C" >&6
12598 else
12599   cat >conftest.$ac_ext <<_ACEOF
12600 #line $LINENO "configure"
12601 /* confdefs.h.  */
12602 _ACEOF
12603 cat confdefs.h >>conftest.$ac_ext
12604 cat >>conftest.$ac_ext <<_ACEOF
12605 /* end confdefs.h.  */
12606 /* System header to define __stub macros and hopefully few prototypes,
12607     which can conflict with char $ac_func (); below.
12608     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12609     <limits.h> exists even on freestanding compilers.  */
12610 #ifdef __STDC__
12611 # include <limits.h>
12612 #else
12613 # include <assert.h>
12614 #endif
12615 /* Override any gcc2 internal prototype to avoid an error.  */
12616 #ifdef __cplusplus
12617 extern "C"
12618 {
12619 #endif
12620 /* We use char because int might match the return type of a gcc2
12621    builtin and then its argument prototype would still apply.  */
12622 char $ac_func ();
12623 /* The GNU C library defines this for functions which it implements
12624     to always fail with ENOSYS.  Some functions are actually named
12625     something starting with __ and the normal name is an alias.  */
12626 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12627 choke me
12628 #else
12629 char (*f) () = $ac_func;
12630 #endif
12631 #ifdef __cplusplus
12632 }
12633 #endif
12634
12635 int
12636 main ()
12637 {
12638 return f != $ac_func;
12639   ;
12640   return 0;
12641 }
12642 _ACEOF
12643 rm -f conftest.$ac_objext 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); } &&
12649          { ac_try='test -s conftest$ac_exeext'
12650   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12651   (eval $ac_try) 2>&5
12652   ac_status=$?
12653   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12654   (exit $ac_status); }; }; then
12655   eval "$as_ac_var=yes"
12656 else
12657   echo "$as_me: failed program was:" >&5
12658 sed 's/^/| /' conftest.$ac_ext >&5
12659
12660 eval "$as_ac_var=no"
12661 fi
12662 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12663 fi
12664 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12665 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12666 if test `eval echo '${'$as_ac_var'}'` = yes; then
12667
12668 cat >>confdefs.h <<_ACEOF
12669 #define CRAY_STACKSEG_END $ac_func
12670 _ACEOF
12671
12672     break
12673 fi
12674
12675   done
12676 fi
12677
12678 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
12679 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
12680 if test "${ac_cv_c_stack_direction+set}" = set; then
12681   echo $ECHO_N "(cached) $ECHO_C" >&6
12682 else
12683   if test "$cross_compiling" = yes; then
12684   ac_cv_c_stack_direction=0
12685 else
12686   cat >conftest.$ac_ext <<_ACEOF
12687 #line $LINENO "configure"
12688 /* confdefs.h.  */
12689 _ACEOF
12690 cat confdefs.h >>conftest.$ac_ext
12691 cat >>conftest.$ac_ext <<_ACEOF
12692 /* end confdefs.h.  */
12693 int
12694 find_stack_direction ()
12695 {
12696   static char *addr = 0;
12697   auto char dummy;
12698   if (addr == 0)
12699     {
12700       addr = &dummy;
12701       return find_stack_direction ();
12702     }
12703   else
12704     return (&dummy > addr) ? 1 : -1;
12705 }
12706
12707 int
12708 main ()
12709 {
12710   exit (find_stack_direction () < 0);
12711 }
12712 _ACEOF
12713 rm -f conftest$ac_exeext
12714 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12715   (eval $ac_link) 2>&5
12716   ac_status=$?
12717   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12718   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12719   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12720   (eval $ac_try) 2>&5
12721   ac_status=$?
12722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12723   (exit $ac_status); }; }; then
12724   ac_cv_c_stack_direction=1
12725 else
12726   echo "$as_me: program exited with status $ac_status" >&5
12727 echo "$as_me: failed program was:" >&5
12728 sed 's/^/| /' conftest.$ac_ext >&5
12729
12730 ( exit $ac_status )
12731 ac_cv_c_stack_direction=-1
12732 fi
12733 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12734 fi
12735 fi
12736 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
12737 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
12738
12739 cat >>confdefs.h <<_ACEOF
12740 #define STACK_DIRECTION $ac_cv_c_stack_direction
12741 _ACEOF
12742
12743
12744 fi
12745
12746
12747
12748
12749
12750
12751
12752
12753
12754
12755
12756
12757
12758
12759
12760
12761
12762
12763
12764
12765
12766
12767
12768
12769
12770
12771
12772
12773
12774
12775
12776
12777
12778
12779
12780
12781
12782
12783
12784
12785
12786
12787
12788
12789
12790
12791
12792
12793
12794
12795
12796
12797
12798
12799
12800
12801 for ac_func in \
12802         _lwp_create \
12803         _pclose \
12804         _popen \
12805         _snprintf \
12806         _stricmp \
12807         _strnicmp \
12808         chsize \
12809         clone \
12810         ecvt \
12811         fcvt \
12812         finite \
12813         fpclass \
12814         ftruncate \
12815         ftruncate64 \
12816         gcvt \
12817         getnetbyaddr \
12818         getnetbyname \
12819         getopt_long \
12820         getpagesize \
12821         getprotobyname \
12822         getprotobynumber \
12823         getpwuid \
12824         getservbyport \
12825         getsockopt \
12826         inet_network \
12827         lseek64 \
12828         lstat \
12829         memmove \
12830         mkstemp \
12831         mmap \
12832         pclose \
12833         popen \
12834         pread \
12835         pthread_getspecific \
12836         pthread_key_create \
12837         pthread_mutex_lock \
12838         pthread_mutex_unlock \
12839         pthread_setspecific \
12840         pwrite \
12841         rfork \
12842         select \
12843         sendmsg \
12844         settimeofday \
12845         sigaltstack \
12846         snprintf \
12847         statfs \
12848         strcasecmp \
12849         strerror \
12850         strncasecmp \
12851         tcgetattr \
12852         timegm \
12853         usleep \
12854         vfscanf \
12855         wait4 \
12856         waitpid \
12857
12858 do
12859 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12860 echo "$as_me:$LINENO: checking for $ac_func" >&5
12861 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12862 if eval "test \"\${$as_ac_var+set}\" = set"; then
12863   echo $ECHO_N "(cached) $ECHO_C" >&6
12864 else
12865   cat >conftest.$ac_ext <<_ACEOF
12866 #line $LINENO "configure"
12867 /* confdefs.h.  */
12868 _ACEOF
12869 cat confdefs.h >>conftest.$ac_ext
12870 cat >>conftest.$ac_ext <<_ACEOF
12871 /* end confdefs.h.  */
12872 /* System header to define __stub macros and hopefully few prototypes,
12873     which can conflict with char $ac_func (); below.
12874     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12875     <limits.h> exists even on freestanding compilers.  */
12876 #ifdef __STDC__
12877 # include <limits.h>
12878 #else
12879 # include <assert.h>
12880 #endif
12881 /* Override any gcc2 internal prototype to avoid an error.  */
12882 #ifdef __cplusplus
12883 extern "C"
12884 {
12885 #endif
12886 /* We use char because int might match the return type of a gcc2
12887    builtin and then its argument prototype would still apply.  */
12888 char $ac_func ();
12889 /* The GNU C library defines this for functions which it implements
12890     to always fail with ENOSYS.  Some functions are actually named
12891     something starting with __ and the normal name is an alias.  */
12892 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12893 choke me
12894 #else
12895 char (*f) () = $ac_func;
12896 #endif
12897 #ifdef __cplusplus
12898 }
12899 #endif
12900
12901 int
12902 main ()
12903 {
12904 return f != $ac_func;
12905   ;
12906   return 0;
12907 }
12908 _ACEOF
12909 rm -f conftest.$ac_objext conftest$ac_exeext
12910 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12911   (eval $ac_link) 2>&5
12912   ac_status=$?
12913   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12914   (exit $ac_status); } &&
12915          { ac_try='test -s conftest$ac_exeext'
12916   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12917   (eval $ac_try) 2>&5
12918   ac_status=$?
12919   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12920   (exit $ac_status); }; }; then
12921   eval "$as_ac_var=yes"
12922 else
12923   echo "$as_me: failed program was:" >&5
12924 sed 's/^/| /' conftest.$ac_ext >&5
12925
12926 eval "$as_ac_var=no"
12927 fi
12928 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12929 fi
12930 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12931 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12932 if test `eval echo '${'$as_ac_var'}'` = yes; then
12933   cat >>confdefs.h <<_ACEOF
12934 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12935 _ACEOF
12936
12937 fi
12938 done
12939
12940
12941
12942
12943
12944
12945
12946
12947
12948
12949
12950
12951
12952
12953
12954
12955
12956
12957
12958
12959
12960
12961
12962
12963
12964
12965
12966
12967
12968
12969
12970
12971
12972
12973
12974
12975
12976
12977
12978
12979
12980
12981
12982
12983
12984
12985
12986
12987
12988
12989
12990
12991
12992
12993
12994
12995
12996
12997
12998
12999
13000
13001
13002
13003
13004
13005
13006
13007
13008
13009
13010
13011 for ac_header in \
13012         arpa/inet.h \
13013         arpa/nameser.h \
13014         cups/cups.h \
13015         direct.h \
13016         elf.h \
13017         float.h \
13018         getopt.h \
13019         ieeefp.h \
13020         io.h \
13021         jack/jack.h \
13022         libio.h \
13023         libutil.h \
13024         link.h \
13025         linux/cdrom.h \
13026         linux/hdreg.h \
13027         linux/input.h \
13028         linux/joystick.h \
13029         linux/major.h \
13030         linux/param.h \
13031         linux/serial.h \
13032         linux/ucdrom.h \
13033         netdb.h \
13034         netinet/in.h \
13035         netinet/in_systm.h \
13036         netinet/tcp.h \
13037         pty.h \
13038         pwd.h \
13039         sched.h \
13040         scsi/sg.h \
13041         socket.h \
13042         stdint.h \
13043         strings.h \
13044         sys/cdio.h \
13045         sys/errno.h \
13046         sys/file.h \
13047         sys/filio.h \
13048         sys/inttypes.h \
13049         sys/ioctl.h \
13050         sys/ipc.h \
13051         sys/link.h \
13052         sys/lwp.h \
13053         sys/mman.h \
13054         sys/modem.h \
13055         sys/msg.h \
13056         sys/param.h \
13057         sys/poll.h \
13058         sys/ptrace.h \
13059         sys/reg.h \
13060         sys/shm.h \
13061         sys/signal.h \
13062         sys/socket.h \
13063         sys/sockio.h \
13064         sys/statfs.h \
13065         sys/strtio.h \
13066         sys/syscall.h \
13067         sys/sysctl.h \
13068         sys/time.h \
13069         sys/times.h \
13070         sys/uio.h \
13071         sys/un.h \
13072         sys/v86.h \
13073         sys/v86intr.h \
13074         sys/vfs.h \
13075         sys/vm86.h \
13076         sys/wait.h \
13077         syscall.h \
13078         termios.h \
13079         unistd.h \
13080         utime.h \
13081
13082 do
13083 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13084 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13085   echo "$as_me:$LINENO: checking for $ac_header" >&5
13086 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13087 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13088   echo $ECHO_N "(cached) $ECHO_C" >&6
13089 fi
13090 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13091 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13092 else
13093   # Is the header compilable?
13094 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13095 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13096 cat >conftest.$ac_ext <<_ACEOF
13097 #line $LINENO "configure"
13098 /* confdefs.h.  */
13099 _ACEOF
13100 cat confdefs.h >>conftest.$ac_ext
13101 cat >>conftest.$ac_ext <<_ACEOF
13102 /* end confdefs.h.  */
13103 $ac_includes_default
13104 #include <$ac_header>
13105 _ACEOF
13106 rm -f conftest.$ac_objext
13107 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13108   (eval $ac_compile) 2>&5
13109   ac_status=$?
13110   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13111   (exit $ac_status); } &&
13112          { ac_try='test -s conftest.$ac_objext'
13113   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13114   (eval $ac_try) 2>&5
13115   ac_status=$?
13116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13117   (exit $ac_status); }; }; then
13118   ac_header_compiler=yes
13119 else
13120   echo "$as_me: failed program was:" >&5
13121 sed 's/^/| /' conftest.$ac_ext >&5
13122
13123 ac_header_compiler=no
13124 fi
13125 rm -f conftest.$ac_objext conftest.$ac_ext
13126 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13127 echo "${ECHO_T}$ac_header_compiler" >&6
13128
13129 # Is the header present?
13130 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13131 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13132 cat >conftest.$ac_ext <<_ACEOF
13133 #line $LINENO "configure"
13134 /* confdefs.h.  */
13135 _ACEOF
13136 cat confdefs.h >>conftest.$ac_ext
13137 cat >>conftest.$ac_ext <<_ACEOF
13138 /* end confdefs.h.  */
13139 #include <$ac_header>
13140 _ACEOF
13141 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13142   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13143   ac_status=$?
13144   grep -v '^ *+' conftest.er1 >conftest.err
13145   rm -f conftest.er1
13146   cat conftest.err >&5
13147   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13148   (exit $ac_status); } >/dev/null; then
13149   if test -s conftest.err; then
13150     ac_cpp_err=$ac_c_preproc_warn_flag
13151   else
13152     ac_cpp_err=
13153   fi
13154 else
13155   ac_cpp_err=yes
13156 fi
13157 if test -z "$ac_cpp_err"; then
13158   ac_header_preproc=yes
13159 else
13160   echo "$as_me: failed program was:" >&5
13161 sed 's/^/| /' conftest.$ac_ext >&5
13162
13163   ac_header_preproc=no
13164 fi
13165 rm -f conftest.err conftest.$ac_ext
13166 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13167 echo "${ECHO_T}$ac_header_preproc" >&6
13168
13169 # So?  What about this header?
13170 case $ac_header_compiler:$ac_header_preproc in
13171   yes:no )
13172     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13173 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13174     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13175 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13176     (
13177       cat <<\_ASBOX
13178 ## ------------------------------------ ##
13179 ## Report this to bug-autoconf@gnu.org. ##
13180 ## ------------------------------------ ##
13181 _ASBOX
13182     ) |
13183       sed "s/^/$as_me: WARNING:     /" >&2
13184     ;;
13185   no:yes )
13186     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13187 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13188     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13189 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13190     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13191 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13192     (
13193       cat <<\_ASBOX
13194 ## ------------------------------------ ##
13195 ## Report this to bug-autoconf@gnu.org. ##
13196 ## ------------------------------------ ##
13197 _ASBOX
13198     ) |
13199       sed "s/^/$as_me: WARNING:     /" >&2
13200     ;;
13201 esac
13202 echo "$as_me:$LINENO: checking for $ac_header" >&5
13203 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13204 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13205   echo $ECHO_N "(cached) $ECHO_C" >&6
13206 else
13207   eval "$as_ac_Header=$ac_header_preproc"
13208 fi
13209 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13210 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13211
13212 fi
13213 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13214   cat >>confdefs.h <<_ACEOF
13215 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13216 _ACEOF
13217
13218 fi
13219
13220 done
13221
13222 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
13223 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
13224 if test "${ac_cv_header_stat_broken+set}" = set; then
13225   echo $ECHO_N "(cached) $ECHO_C" >&6
13226 else
13227   cat >conftest.$ac_ext <<_ACEOF
13228 #line $LINENO "configure"
13229 /* confdefs.h.  */
13230 _ACEOF
13231 cat confdefs.h >>conftest.$ac_ext
13232 cat >>conftest.$ac_ext <<_ACEOF
13233 /* end confdefs.h.  */
13234 #include <sys/types.h>
13235 #include <sys/stat.h>
13236
13237 #if defined(S_ISBLK) && defined(S_IFDIR)
13238 # if S_ISBLK (S_IFDIR)
13239 You lose.
13240 # endif
13241 #endif
13242
13243 #if defined(S_ISBLK) && defined(S_IFCHR)
13244 # if S_ISBLK (S_IFCHR)
13245 You lose.
13246 # endif
13247 #endif
13248
13249 #if defined(S_ISLNK) && defined(S_IFREG)
13250 # if S_ISLNK (S_IFREG)
13251 You lose.
13252 # endif
13253 #endif
13254
13255 #if defined(S_ISSOCK) && defined(S_IFREG)
13256 # if S_ISSOCK (S_IFREG)
13257 You lose.
13258 # endif
13259 #endif
13260
13261 _ACEOF
13262 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13263   $EGREP "You lose" >/dev/null 2>&1; then
13264   ac_cv_header_stat_broken=yes
13265 else
13266   ac_cv_header_stat_broken=no
13267 fi
13268 rm -f conftest*
13269
13270 fi
13271 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
13272 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
13273 if test $ac_cv_header_stat_broken = yes; then
13274
13275 cat >>confdefs.h <<\_ACEOF
13276 #define STAT_MACROS_BROKEN 1
13277 _ACEOF
13278
13279 fi
13280
13281
13282
13283
13284
13285 for ac_header in sys/mount.h sys/user.h
13286 do
13287 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13288 echo "$as_me:$LINENO: checking for $ac_header" >&5
13289 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13290 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13291   echo $ECHO_N "(cached) $ECHO_C" >&6
13292 else
13293   cat >conftest.$ac_ext <<_ACEOF
13294 #line $LINENO "configure"
13295 /* confdefs.h.  */
13296 _ACEOF
13297 cat confdefs.h >>conftest.$ac_ext
13298 cat >>conftest.$ac_ext <<_ACEOF
13299 /* end confdefs.h.  */
13300 #include <sys/types.h>
13301      #if HAVE_SYS_PARAM_H
13302      # include <sys/param.h>
13303      #endif
13304
13305 #include <$ac_header>
13306 _ACEOF
13307 rm -f conftest.$ac_objext
13308 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13309   (eval $ac_compile) 2>&5
13310   ac_status=$?
13311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13312   (exit $ac_status); } &&
13313          { ac_try='test -s conftest.$ac_objext'
13314   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13315   (eval $ac_try) 2>&5
13316   ac_status=$?
13317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13318   (exit $ac_status); }; }; then
13319   eval "$as_ac_Header=yes"
13320 else
13321   echo "$as_me: failed program was:" >&5
13322 sed 's/^/| /' conftest.$ac_ext >&5
13323
13324 eval "$as_ac_Header=no"
13325 fi
13326 rm -f conftest.$ac_objext conftest.$ac_ext
13327 fi
13328 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13329 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13330 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13331   cat >>confdefs.h <<_ACEOF
13332 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13333 _ACEOF
13334
13335 fi
13336
13337 done
13338
13339
13340
13341 for ac_header in net/if.h
13342 do
13343 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13344 echo "$as_me:$LINENO: checking for $ac_header" >&5
13345 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13346 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13347   echo $ECHO_N "(cached) $ECHO_C" >&6
13348 else
13349   cat >conftest.$ac_ext <<_ACEOF
13350 #line $LINENO "configure"
13351 /* confdefs.h.  */
13352 _ACEOF
13353 cat confdefs.h >>conftest.$ac_ext
13354 cat >>conftest.$ac_ext <<_ACEOF
13355 /* end confdefs.h.  */
13356 #include <sys/types.h>
13357      #if HAVE_SYS_SOCKET_H
13358      # include <sys/socket.h>
13359      #endif
13360
13361 #include <$ac_header>
13362 _ACEOF
13363 rm -f conftest.$ac_objext
13364 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13365   (eval $ac_compile) 2>&5
13366   ac_status=$?
13367   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13368   (exit $ac_status); } &&
13369          { ac_try='test -s conftest.$ac_objext'
13370   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13371   (eval $ac_try) 2>&5
13372   ac_status=$?
13373   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13374   (exit $ac_status); }; }; then
13375   eval "$as_ac_Header=yes"
13376 else
13377   echo "$as_me: failed program was:" >&5
13378 sed 's/^/| /' conftest.$ac_ext >&5
13379
13380 eval "$as_ac_Header=no"
13381 fi
13382 rm -f conftest.$ac_objext conftest.$ac_ext
13383 fi
13384 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13385 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13386 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13387   cat >>confdefs.h <<_ACEOF
13388 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13389 _ACEOF
13390
13391 fi
13392
13393 done
13394
13395
13396
13397 for ac_header in netinet/ip.h
13398 do
13399 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13400 echo "$as_me:$LINENO: checking for $ac_header" >&5
13401 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13402 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13403   echo $ECHO_N "(cached) $ECHO_C" >&6
13404 else
13405   cat >conftest.$ac_ext <<_ACEOF
13406 #line $LINENO "configure"
13407 /* confdefs.h.  */
13408 _ACEOF
13409 cat confdefs.h >>conftest.$ac_ext
13410 cat >>conftest.$ac_ext <<_ACEOF
13411 /* end confdefs.h.  */
13412 #include <sys/types.h>
13413      #if HAVE_SYS_SOCKET_H
13414      # include <sys/socket.h>
13415      #endif
13416      #if HAVE_NETINET_IN_SYSTM_H
13417      # include <netinet/in_systm.h>
13418      #endif
13419
13420 #include <$ac_header>
13421 _ACEOF
13422 rm -f conftest.$ac_objext
13423 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13424   (eval $ac_compile) 2>&5
13425   ac_status=$?
13426   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13427   (exit $ac_status); } &&
13428          { ac_try='test -s conftest.$ac_objext'
13429   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13430   (eval $ac_try) 2>&5
13431   ac_status=$?
13432   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13433   (exit $ac_status); }; }; then
13434   eval "$as_ac_Header=yes"
13435 else
13436   echo "$as_me: failed program was:" >&5
13437 sed 's/^/| /' conftest.$ac_ext >&5
13438
13439 eval "$as_ac_Header=no"
13440 fi
13441 rm -f conftest.$ac_objext conftest.$ac_ext
13442 fi
13443 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13444 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13445 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13446   cat >>confdefs.h <<_ACEOF
13447 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13448 _ACEOF
13449
13450 fi
13451
13452 done
13453
13454
13455
13456 for ac_header in resolv.h
13457 do
13458 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13459 echo "$as_me:$LINENO: checking for $ac_header" >&5
13460 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13461 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13462   echo $ECHO_N "(cached) $ECHO_C" >&6
13463 else
13464   cat >conftest.$ac_ext <<_ACEOF
13465 #line $LINENO "configure"
13466 /* confdefs.h.  */
13467 _ACEOF
13468 cat confdefs.h >>conftest.$ac_ext
13469 cat >>conftest.$ac_ext <<_ACEOF
13470 /* end confdefs.h.  */
13471 #include <sys/types.h>
13472      #if HAVE_SYS_SOCKET_H
13473      # include <sys/socket.h>
13474      #endif
13475
13476 #include <$ac_header>
13477 _ACEOF
13478 rm -f conftest.$ac_objext
13479 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13480   (eval $ac_compile) 2>&5
13481   ac_status=$?
13482   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13483   (exit $ac_status); } &&
13484          { ac_try='test -s conftest.$ac_objext'
13485   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13486   (eval $ac_try) 2>&5
13487   ac_status=$?
13488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13489   (exit $ac_status); }; }; then
13490   eval "$as_ac_Header=yes"
13491 else
13492   echo "$as_me: failed program was:" >&5
13493 sed 's/^/| /' conftest.$ac_ext >&5
13494
13495 eval "$as_ac_Header=no"
13496 fi
13497 rm -f conftest.$ac_objext conftest.$ac_ext
13498 fi
13499 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13500 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13501 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13502   cat >>confdefs.h <<_ACEOF
13503 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13504 _ACEOF
13505
13506 fi
13507
13508 done
13509
13510
13511
13512 for ac_header in ucontext.h
13513 do
13514 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13515 echo "$as_me:$LINENO: checking for $ac_header" >&5
13516 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13517 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13518   echo $ECHO_N "(cached) $ECHO_C" >&6
13519 else
13520   cat >conftest.$ac_ext <<_ACEOF
13521 #line $LINENO "configure"
13522 /* confdefs.h.  */
13523 _ACEOF
13524 cat confdefs.h >>conftest.$ac_ext
13525 cat >>conftest.$ac_ext <<_ACEOF
13526 /* end confdefs.h.  */
13527 #include <signal.h>
13528
13529 #include <$ac_header>
13530 _ACEOF
13531 rm -f conftest.$ac_objext
13532 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13533   (eval $ac_compile) 2>&5
13534   ac_status=$?
13535   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13536   (exit $ac_status); } &&
13537          { ac_try='test -s conftest.$ac_objext'
13538   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13539   (eval $ac_try) 2>&5
13540   ac_status=$?
13541   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13542   (exit $ac_status); }; }; then
13543   eval "$as_ac_Header=yes"
13544 else
13545   echo "$as_me: failed program was:" >&5
13546 sed 's/^/| /' conftest.$ac_ext >&5
13547
13548 eval "$as_ac_Header=no"
13549 fi
13550 rm -f conftest.$ac_objext conftest.$ac_ext
13551 fi
13552 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13553 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13554 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13555   cat >>confdefs.h <<_ACEOF
13556 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13557 _ACEOF
13558
13559 fi
13560
13561 done
13562
13563
13564
13565 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
13566 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
13567 if test "${ac_cv_c_const+set}" = set; then
13568   echo $ECHO_N "(cached) $ECHO_C" >&6
13569 else
13570   cat >conftest.$ac_ext <<_ACEOF
13571 #line $LINENO "configure"
13572 /* confdefs.h.  */
13573 _ACEOF
13574 cat confdefs.h >>conftest.$ac_ext
13575 cat >>conftest.$ac_ext <<_ACEOF
13576 /* end confdefs.h.  */
13577
13578 int
13579 main ()
13580 {
13581 /* FIXME: Include the comments suggested by Paul. */
13582 #ifndef __cplusplus
13583   /* Ultrix mips cc rejects this.  */
13584   typedef int charset[2];
13585   const charset x;
13586   /* SunOS 4.1.1 cc rejects this.  */
13587   char const *const *ccp;
13588   char **p;
13589   /* NEC SVR4.0.2 mips cc rejects this.  */
13590   struct point {int x, y;};
13591   static struct point const zero = {0,0};
13592   /* AIX XL C 1.02.0.0 rejects this.
13593      It does not let you subtract one const X* pointer from another in
13594      an arm of an if-expression whose if-part is not a constant
13595      expression */
13596   const char *g = "string";
13597   ccp = &g + (g ? g-g : 0);
13598   /* HPUX 7.0 cc rejects these. */
13599   ++ccp;
13600   p = (char**) ccp;
13601   ccp = (char const *const *) p;
13602   { /* SCO 3.2v4 cc rejects this.  */
13603     char *t;
13604     char const *s = 0 ? (char *) 0 : (char const *) 0;
13605
13606     *t++ = 0;
13607   }
13608   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
13609     int x[] = {25, 17};
13610     const int *foo = &x[0];
13611     ++foo;
13612   }
13613   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
13614     typedef const int *iptr;
13615     iptr p = 0;
13616     ++p;
13617   }
13618   { /* AIX XL C 1.02.0.0 rejects this saying
13619        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
13620     struct s { int j; const int *ap[3]; };
13621     struct s *b; b->j = 5;
13622   }
13623   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
13624     const int foo = 10;
13625   }
13626 #endif
13627
13628   ;
13629   return 0;
13630 }
13631 _ACEOF
13632 rm -f conftest.$ac_objext
13633 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13634   (eval $ac_compile) 2>&5
13635   ac_status=$?
13636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13637   (exit $ac_status); } &&
13638          { ac_try='test -s conftest.$ac_objext'
13639   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13640   (eval $ac_try) 2>&5
13641   ac_status=$?
13642   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13643   (exit $ac_status); }; }; then
13644   ac_cv_c_const=yes
13645 else
13646   echo "$as_me: failed program was:" >&5
13647 sed 's/^/| /' conftest.$ac_ext >&5
13648
13649 ac_cv_c_const=no
13650 fi
13651 rm -f conftest.$ac_objext conftest.$ac_ext
13652 fi
13653 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
13654 echo "${ECHO_T}$ac_cv_c_const" >&6
13655 if test $ac_cv_c_const = no; then
13656
13657 cat >>confdefs.h <<\_ACEOF
13658 #define const
13659 _ACEOF
13660
13661 fi
13662
13663 echo "$as_me:$LINENO: checking for inline" >&5
13664 echo $ECHO_N "checking for inline... $ECHO_C" >&6
13665 if test "${ac_cv_c_inline+set}" = set; then
13666   echo $ECHO_N "(cached) $ECHO_C" >&6
13667 else
13668   ac_cv_c_inline=no
13669 for ac_kw in inline __inline__ __inline; do
13670   cat >conftest.$ac_ext <<_ACEOF
13671 #line $LINENO "configure"
13672 /* confdefs.h.  */
13673 _ACEOF
13674 cat confdefs.h >>conftest.$ac_ext
13675 cat >>conftest.$ac_ext <<_ACEOF
13676 /* end confdefs.h.  */
13677 #ifndef __cplusplus
13678 typedef int foo_t;
13679 static $ac_kw foo_t static_foo () {return 0; }
13680 $ac_kw foo_t foo () {return 0; }
13681 #endif
13682
13683 _ACEOF
13684 rm -f conftest.$ac_objext
13685 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13686   (eval $ac_compile) 2>&5
13687   ac_status=$?
13688   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13689   (exit $ac_status); } &&
13690          { ac_try='test -s conftest.$ac_objext'
13691   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13692   (eval $ac_try) 2>&5
13693   ac_status=$?
13694   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13695   (exit $ac_status); }; }; then
13696   ac_cv_c_inline=$ac_kw; break
13697 else
13698   echo "$as_me: failed program was:" >&5
13699 sed 's/^/| /' conftest.$ac_ext >&5
13700
13701 fi
13702 rm -f conftest.$ac_objext conftest.$ac_ext
13703 done
13704
13705 fi
13706 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
13707 echo "${ECHO_T}$ac_cv_c_inline" >&6
13708 case $ac_cv_c_inline in
13709   inline | yes) ;;
13710   no)
13711 cat >>confdefs.h <<\_ACEOF
13712 #define inline
13713 _ACEOF
13714  ;;
13715   *)  cat >>confdefs.h <<_ACEOF
13716 #define inline $ac_cv_c_inline
13717 _ACEOF
13718  ;;
13719 esac
13720
13721 echo "$as_me:$LINENO: checking for mode_t" >&5
13722 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
13723 if test "${ac_cv_type_mode_t+set}" = set; then
13724   echo $ECHO_N "(cached) $ECHO_C" >&6
13725 else
13726   cat >conftest.$ac_ext <<_ACEOF
13727 #line $LINENO "configure"
13728 /* confdefs.h.  */
13729 _ACEOF
13730 cat confdefs.h >>conftest.$ac_ext
13731 cat >>conftest.$ac_ext <<_ACEOF
13732 /* end confdefs.h.  */
13733 $ac_includes_default
13734 int
13735 main ()
13736 {
13737 if ((mode_t *) 0)
13738   return 0;
13739 if (sizeof (mode_t))
13740   return 0;
13741   ;
13742   return 0;
13743 }
13744 _ACEOF
13745 rm -f conftest.$ac_objext
13746 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13747   (eval $ac_compile) 2>&5
13748   ac_status=$?
13749   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13750   (exit $ac_status); } &&
13751          { ac_try='test -s conftest.$ac_objext'
13752   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13753   (eval $ac_try) 2>&5
13754   ac_status=$?
13755   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13756   (exit $ac_status); }; }; then
13757   ac_cv_type_mode_t=yes
13758 else
13759   echo "$as_me: failed program was:" >&5
13760 sed 's/^/| /' conftest.$ac_ext >&5
13761
13762 ac_cv_type_mode_t=no
13763 fi
13764 rm -f conftest.$ac_objext conftest.$ac_ext
13765 fi
13766 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
13767 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
13768 if test $ac_cv_type_mode_t = yes; then
13769
13770 cat >>confdefs.h <<_ACEOF
13771 #define HAVE_MODE_T 1
13772 _ACEOF
13773
13774
13775 fi
13776 echo "$as_me:$LINENO: checking for off_t" >&5
13777 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
13778 if test "${ac_cv_type_off_t+set}" = set; then
13779   echo $ECHO_N "(cached) $ECHO_C" >&6
13780 else
13781   cat >conftest.$ac_ext <<_ACEOF
13782 #line $LINENO "configure"
13783 /* confdefs.h.  */
13784 _ACEOF
13785 cat confdefs.h >>conftest.$ac_ext
13786 cat >>conftest.$ac_ext <<_ACEOF
13787 /* end confdefs.h.  */
13788 $ac_includes_default
13789 int
13790 main ()
13791 {
13792 if ((off_t *) 0)
13793   return 0;
13794 if (sizeof (off_t))
13795   return 0;
13796   ;
13797   return 0;
13798 }
13799 _ACEOF
13800 rm -f conftest.$ac_objext
13801 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13802   (eval $ac_compile) 2>&5
13803   ac_status=$?
13804   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13805   (exit $ac_status); } &&
13806          { ac_try='test -s conftest.$ac_objext'
13807   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13808   (eval $ac_try) 2>&5
13809   ac_status=$?
13810   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13811   (exit $ac_status); }; }; then
13812   ac_cv_type_off_t=yes
13813 else
13814   echo "$as_me: failed program was:" >&5
13815 sed 's/^/| /' conftest.$ac_ext >&5
13816
13817 ac_cv_type_off_t=no
13818 fi
13819 rm -f conftest.$ac_objext conftest.$ac_ext
13820 fi
13821 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
13822 echo "${ECHO_T}$ac_cv_type_off_t" >&6
13823 if test $ac_cv_type_off_t = yes; then
13824
13825 cat >>confdefs.h <<_ACEOF
13826 #define HAVE_OFF_T 1
13827 _ACEOF
13828
13829
13830 fi
13831 echo "$as_me:$LINENO: checking for pid_t" >&5
13832 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
13833 if test "${ac_cv_type_pid_t+set}" = set; then
13834   echo $ECHO_N "(cached) $ECHO_C" >&6
13835 else
13836   cat >conftest.$ac_ext <<_ACEOF
13837 #line $LINENO "configure"
13838 /* confdefs.h.  */
13839 _ACEOF
13840 cat confdefs.h >>conftest.$ac_ext
13841 cat >>conftest.$ac_ext <<_ACEOF
13842 /* end confdefs.h.  */
13843 $ac_includes_default
13844 int
13845 main ()
13846 {
13847 if ((pid_t *) 0)
13848   return 0;
13849 if (sizeof (pid_t))
13850   return 0;
13851   ;
13852   return 0;
13853 }
13854 _ACEOF
13855 rm -f conftest.$ac_objext
13856 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13857   (eval $ac_compile) 2>&5
13858   ac_status=$?
13859   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13860   (exit $ac_status); } &&
13861          { ac_try='test -s conftest.$ac_objext'
13862   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13863   (eval $ac_try) 2>&5
13864   ac_status=$?
13865   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13866   (exit $ac_status); }; }; then
13867   ac_cv_type_pid_t=yes
13868 else
13869   echo "$as_me: failed program was:" >&5
13870 sed 's/^/| /' conftest.$ac_ext >&5
13871
13872 ac_cv_type_pid_t=no
13873 fi
13874 rm -f conftest.$ac_objext conftest.$ac_ext
13875 fi
13876 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
13877 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
13878 if test $ac_cv_type_pid_t = yes; then
13879
13880 cat >>confdefs.h <<_ACEOF
13881 #define HAVE_PID_T 1
13882 _ACEOF
13883
13884
13885 fi
13886 echo "$as_me:$LINENO: checking for size_t" >&5
13887 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
13888 if test "${ac_cv_type_size_t+set}" = set; then
13889   echo $ECHO_N "(cached) $ECHO_C" >&6
13890 else
13891   cat >conftest.$ac_ext <<_ACEOF
13892 #line $LINENO "configure"
13893 /* confdefs.h.  */
13894 _ACEOF
13895 cat confdefs.h >>conftest.$ac_ext
13896 cat >>conftest.$ac_ext <<_ACEOF
13897 /* end confdefs.h.  */
13898 $ac_includes_default
13899 int
13900 main ()
13901 {
13902 if ((size_t *) 0)
13903   return 0;
13904 if (sizeof (size_t))
13905   return 0;
13906   ;
13907   return 0;
13908 }
13909 _ACEOF
13910 rm -f conftest.$ac_objext
13911 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13912   (eval $ac_compile) 2>&5
13913   ac_status=$?
13914   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13915   (exit $ac_status); } &&
13916          { ac_try='test -s conftest.$ac_objext'
13917   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13918   (eval $ac_try) 2>&5
13919   ac_status=$?
13920   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13921   (exit $ac_status); }; }; then
13922   ac_cv_type_size_t=yes
13923 else
13924   echo "$as_me: failed program was:" >&5
13925 sed 's/^/| /' conftest.$ac_ext >&5
13926
13927 ac_cv_type_size_t=no
13928 fi
13929 rm -f conftest.$ac_objext conftest.$ac_ext
13930 fi
13931 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
13932 echo "${ECHO_T}$ac_cv_type_size_t" >&6
13933 if test $ac_cv_type_size_t = yes; then
13934
13935 cat >>confdefs.h <<_ACEOF
13936 #define HAVE_SIZE_T 1
13937 _ACEOF
13938
13939
13940 fi
13941 echo "$as_me:$LINENO: checking for ssize_t" >&5
13942 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
13943 if test "${ac_cv_type_ssize_t+set}" = set; then
13944   echo $ECHO_N "(cached) $ECHO_C" >&6
13945 else
13946   cat >conftest.$ac_ext <<_ACEOF
13947 #line $LINENO "configure"
13948 /* confdefs.h.  */
13949 _ACEOF
13950 cat confdefs.h >>conftest.$ac_ext
13951 cat >>conftest.$ac_ext <<_ACEOF
13952 /* end confdefs.h.  */
13953 $ac_includes_default
13954 int
13955 main ()
13956 {
13957 if ((ssize_t *) 0)
13958   return 0;
13959 if (sizeof (ssize_t))
13960   return 0;
13961   ;
13962   return 0;
13963 }
13964 _ACEOF
13965 rm -f conftest.$ac_objext
13966 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13967   (eval $ac_compile) 2>&5
13968   ac_status=$?
13969   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13970   (exit $ac_status); } &&
13971          { ac_try='test -s conftest.$ac_objext'
13972   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13973   (eval $ac_try) 2>&5
13974   ac_status=$?
13975   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13976   (exit $ac_status); }; }; then
13977   ac_cv_type_ssize_t=yes
13978 else
13979   echo "$as_me: failed program was:" >&5
13980 sed 's/^/| /' conftest.$ac_ext >&5
13981
13982 ac_cv_type_ssize_t=no
13983 fi
13984 rm -f conftest.$ac_objext conftest.$ac_ext
13985 fi
13986 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
13987 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
13988 if test $ac_cv_type_ssize_t = yes; then
13989
13990 cat >>confdefs.h <<_ACEOF
13991 #define HAVE_SSIZE_T 1
13992 _ACEOF
13993
13994
13995 fi
13996
13997 echo "$as_me:$LINENO: checking for long long" >&5
13998 echo $ECHO_N "checking for long long... $ECHO_C" >&6
13999 if test "${ac_cv_type_long_long+set}" = set; then
14000   echo $ECHO_N "(cached) $ECHO_C" >&6
14001 else
14002   cat >conftest.$ac_ext <<_ACEOF
14003 #line $LINENO "configure"
14004 /* confdefs.h.  */
14005 _ACEOF
14006 cat confdefs.h >>conftest.$ac_ext
14007 cat >>conftest.$ac_ext <<_ACEOF
14008 /* end confdefs.h.  */
14009 $ac_includes_default
14010 int
14011 main ()
14012 {
14013 if ((long long *) 0)
14014   return 0;
14015 if (sizeof (long long))
14016   return 0;
14017   ;
14018   return 0;
14019 }
14020 _ACEOF
14021 rm -f conftest.$ac_objext
14022 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14023   (eval $ac_compile) 2>&5
14024   ac_status=$?
14025   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14026   (exit $ac_status); } &&
14027          { ac_try='test -s conftest.$ac_objext'
14028   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14029   (eval $ac_try) 2>&5
14030   ac_status=$?
14031   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14032   (exit $ac_status); }; }; then
14033   ac_cv_type_long_long=yes
14034 else
14035   echo "$as_me: failed program was:" >&5
14036 sed 's/^/| /' conftest.$ac_ext >&5
14037
14038 ac_cv_type_long_long=no
14039 fi
14040 rm -f conftest.$ac_objext conftest.$ac_ext
14041 fi
14042 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
14043 echo "${ECHO_T}$ac_cv_type_long_long" >&6
14044
14045 echo "$as_me:$LINENO: checking size of long long" >&5
14046 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
14047 if test "${ac_cv_sizeof_long_long+set}" = set; then
14048   echo $ECHO_N "(cached) $ECHO_C" >&6
14049 else
14050   if test "$ac_cv_type_long_long" = yes; then
14051   # The cast to unsigned long works around a bug in the HP C Compiler
14052   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14053   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14054   # This bug is HP SR number 8606223364.
14055   if test "$cross_compiling" = yes; then
14056   # Depending upon the size, compute the lo and hi bounds.
14057 cat >conftest.$ac_ext <<_ACEOF
14058 #line $LINENO "configure"
14059 /* confdefs.h.  */
14060 _ACEOF
14061 cat confdefs.h >>conftest.$ac_ext
14062 cat >>conftest.$ac_ext <<_ACEOF
14063 /* end confdefs.h.  */
14064 $ac_includes_default
14065 int
14066 main ()
14067 {
14068 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
14069 test_array [0] = 0
14070
14071   ;
14072   return 0;
14073 }
14074 _ACEOF
14075 rm -f conftest.$ac_objext
14076 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14077   (eval $ac_compile) 2>&5
14078   ac_status=$?
14079   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14080   (exit $ac_status); } &&
14081          { ac_try='test -s conftest.$ac_objext'
14082   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14083   (eval $ac_try) 2>&5
14084   ac_status=$?
14085   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14086   (exit $ac_status); }; }; then
14087   ac_lo=0 ac_mid=0
14088   while :; do
14089     cat >conftest.$ac_ext <<_ACEOF
14090 #line $LINENO "configure"
14091 /* confdefs.h.  */
14092 _ACEOF
14093 cat confdefs.h >>conftest.$ac_ext
14094 cat >>conftest.$ac_ext <<_ACEOF
14095 /* end confdefs.h.  */
14096 $ac_includes_default
14097 int
14098 main ()
14099 {
14100 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
14101 test_array [0] = 0
14102
14103   ;
14104   return 0;
14105 }
14106 _ACEOF
14107 rm -f conftest.$ac_objext
14108 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14109   (eval $ac_compile) 2>&5
14110   ac_status=$?
14111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14112   (exit $ac_status); } &&
14113          { ac_try='test -s conftest.$ac_objext'
14114   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14115   (eval $ac_try) 2>&5
14116   ac_status=$?
14117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14118   (exit $ac_status); }; }; then
14119   ac_hi=$ac_mid; break
14120 else
14121   echo "$as_me: failed program was:" >&5
14122 sed 's/^/| /' conftest.$ac_ext >&5
14123
14124 ac_lo=`expr $ac_mid + 1`
14125                     if test $ac_lo -le $ac_mid; then
14126                       ac_lo= ac_hi=
14127                       break
14128                     fi
14129                     ac_mid=`expr 2 '*' $ac_mid + 1`
14130 fi
14131 rm -f conftest.$ac_objext conftest.$ac_ext
14132   done
14133 else
14134   echo "$as_me: failed program was:" >&5
14135 sed 's/^/| /' conftest.$ac_ext >&5
14136
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 static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
14149 test_array [0] = 0
14150
14151   ;
14152   return 0;
14153 }
14154 _ACEOF
14155 rm -f conftest.$ac_objext
14156 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14157   (eval $ac_compile) 2>&5
14158   ac_status=$?
14159   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14160   (exit $ac_status); } &&
14161          { ac_try='test -s conftest.$ac_objext'
14162   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14163   (eval $ac_try) 2>&5
14164   ac_status=$?
14165   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14166   (exit $ac_status); }; }; then
14167   ac_hi=-1 ac_mid=-1
14168   while :; do
14169     cat >conftest.$ac_ext <<_ACEOF
14170 #line $LINENO "configure"
14171 /* confdefs.h.  */
14172 _ACEOF
14173 cat confdefs.h >>conftest.$ac_ext
14174 cat >>conftest.$ac_ext <<_ACEOF
14175 /* end confdefs.h.  */
14176 $ac_includes_default
14177 int
14178 main ()
14179 {
14180 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
14181 test_array [0] = 0
14182
14183   ;
14184   return 0;
14185 }
14186 _ACEOF
14187 rm -f conftest.$ac_objext
14188 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14189   (eval $ac_compile) 2>&5
14190   ac_status=$?
14191   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14192   (exit $ac_status); } &&
14193          { ac_try='test -s conftest.$ac_objext'
14194   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14195   (eval $ac_try) 2>&5
14196   ac_status=$?
14197   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14198   (exit $ac_status); }; }; then
14199   ac_lo=$ac_mid; break
14200 else
14201   echo "$as_me: failed program was:" >&5
14202 sed 's/^/| /' conftest.$ac_ext >&5
14203
14204 ac_hi=`expr '(' $ac_mid ')' - 1`
14205                        if test $ac_mid -le $ac_hi; then
14206                          ac_lo= ac_hi=
14207                          break
14208                        fi
14209                        ac_mid=`expr 2 '*' $ac_mid`
14210 fi
14211 rm -f conftest.$ac_objext conftest.$ac_ext
14212   done
14213 else
14214   echo "$as_me: failed program was:" >&5
14215 sed 's/^/| /' conftest.$ac_ext >&5
14216
14217 ac_lo= ac_hi=
14218 fi
14219 rm -f conftest.$ac_objext conftest.$ac_ext
14220 fi
14221 rm -f conftest.$ac_objext conftest.$ac_ext
14222 # Binary search between lo and hi bounds.
14223 while test "x$ac_lo" != "x$ac_hi"; do
14224   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14225   cat >conftest.$ac_ext <<_ACEOF
14226 #line $LINENO "configure"
14227 /* confdefs.h.  */
14228 _ACEOF
14229 cat confdefs.h >>conftest.$ac_ext
14230 cat >>conftest.$ac_ext <<_ACEOF
14231 /* end confdefs.h.  */
14232 $ac_includes_default
14233 int
14234 main ()
14235 {
14236 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
14237 test_array [0] = 0
14238
14239   ;
14240   return 0;
14241 }
14242 _ACEOF
14243 rm -f conftest.$ac_objext
14244 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14245   (eval $ac_compile) 2>&5
14246   ac_status=$?
14247   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14248   (exit $ac_status); } &&
14249          { ac_try='test -s conftest.$ac_objext'
14250   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14251   (eval $ac_try) 2>&5
14252   ac_status=$?
14253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14254   (exit $ac_status); }; }; then
14255   ac_hi=$ac_mid
14256 else
14257   echo "$as_me: failed program was:" >&5
14258 sed 's/^/| /' conftest.$ac_ext >&5
14259
14260 ac_lo=`expr '(' $ac_mid ')' + 1`
14261 fi
14262 rm -f conftest.$ac_objext conftest.$ac_ext
14263 done
14264 case $ac_lo in
14265 ?*) ac_cv_sizeof_long_long=$ac_lo;;
14266 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
14267 See \`config.log' for more details." >&5
14268 echo "$as_me: error: cannot compute sizeof (long long), 77
14269 See \`config.log' for more details." >&2;}
14270    { (exit 1); exit 1; }; } ;;
14271 esac
14272 else
14273   if test "$cross_compiling" = yes; then
14274   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14275 See \`config.log' for more details." >&5
14276 echo "$as_me: error: cannot run test program while cross compiling
14277 See \`config.log' for more details." >&2;}
14278    { (exit 1); exit 1; }; }
14279 else
14280   cat >conftest.$ac_ext <<_ACEOF
14281 #line $LINENO "configure"
14282 /* confdefs.h.  */
14283 _ACEOF
14284 cat confdefs.h >>conftest.$ac_ext
14285 cat >>conftest.$ac_ext <<_ACEOF
14286 /* end confdefs.h.  */
14287 $ac_includes_default
14288 long longval () { return (long) (sizeof (long long)); }
14289 unsigned long ulongval () { return (long) (sizeof (long long)); }
14290 #include <stdio.h>
14291 #include <stdlib.h>
14292 int
14293 main ()
14294 {
14295
14296   FILE *f = fopen ("conftest.val", "w");
14297   if (! f)
14298     exit (1);
14299   if (((long) (sizeof (long long))) < 0)
14300     {
14301       long i = longval ();
14302       if (i != ((long) (sizeof (long long))))
14303         exit (1);
14304       fprintf (f, "%ld\n", i);
14305     }
14306   else
14307     {
14308       unsigned long i = ulongval ();
14309       if (i != ((long) (sizeof (long long))))
14310         exit (1);
14311       fprintf (f, "%lu\n", i);
14312     }
14313   exit (ferror (f) || fclose (f) != 0);
14314
14315   ;
14316   return 0;
14317 }
14318 _ACEOF
14319 rm -f conftest$ac_exeext
14320 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14321   (eval $ac_link) 2>&5
14322   ac_status=$?
14323   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14324   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14325   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14326   (eval $ac_try) 2>&5
14327   ac_status=$?
14328   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14329   (exit $ac_status); }; }; then
14330   ac_cv_sizeof_long_long=`cat conftest.val`
14331 else
14332   echo "$as_me: program exited with status $ac_status" >&5
14333 echo "$as_me: failed program was:" >&5
14334 sed 's/^/| /' conftest.$ac_ext >&5
14335
14336 ( exit $ac_status )
14337 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
14338 See \`config.log' for more details." >&5
14339 echo "$as_me: error: cannot compute sizeof (long long), 77
14340 See \`config.log' for more details." >&2;}
14341    { (exit 1); exit 1; }; }
14342 fi
14343 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14344 fi
14345 fi
14346 rm -f conftest.val
14347 else
14348   ac_cv_sizeof_long_long=0
14349 fi
14350 fi
14351 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
14352 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
14353 cat >>confdefs.h <<_ACEOF
14354 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
14355 _ACEOF
14356
14357
14358
14359 echo "$as_me:$LINENO: checking whether linux/input.h is for real" >&5
14360 echo $ECHO_N "checking whether linux/input.h is for real... $ECHO_C" >&6
14361 if test "${wine_cv_linux_input_h+set}" = set; then
14362   echo $ECHO_N "(cached) $ECHO_C" >&6
14363 else
14364   cat >conftest.$ac_ext <<_ACEOF
14365 #line $LINENO "configure"
14366 /* confdefs.h.  */
14367 _ACEOF
14368 cat confdefs.h >>conftest.$ac_ext
14369 cat >>conftest.$ac_ext <<_ACEOF
14370 /* end confdefs.h.  */
14371
14372             #include <linux/input.h>
14373
14374 int
14375 main ()
14376 {
14377
14378             int foo = EVIOCGBIT(EV_ABS,42);
14379             int bar = BTN_PINKIE;
14380             int fortytwo = 42;
14381
14382   ;
14383   return 0;
14384 }
14385 _ACEOF
14386 rm -f conftest.$ac_objext
14387 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14388   (eval $ac_compile) 2>&5
14389   ac_status=$?
14390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14391   (exit $ac_status); } &&
14392          { ac_try='test -s conftest.$ac_objext'
14393   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14394   (eval $ac_try) 2>&5
14395   ac_status=$?
14396   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14397   (exit $ac_status); }; }; then
14398   wine_cv_linux_input_h=yes
14399 else
14400   echo "$as_me: failed program was:" >&5
14401 sed 's/^/| /' conftest.$ac_ext >&5
14402
14403 wine_cv_linux_input_h=no
14404 fi
14405 rm -f conftest.$ac_objext conftest.$ac_ext
14406
14407 fi
14408 echo "$as_me:$LINENO: result: $wine_cv_linux_input_h" >&5
14409 echo "${ECHO_T}$wine_cv_linux_input_h" >&6
14410     if test "$wine_cv_linux_input_h" = "yes"
14411     then
14412
14413 cat >>confdefs.h <<\_ACEOF
14414 #define HAVE_CORRECT_LINUXINPUT_H 1
14415 _ACEOF
14416
14417     fi
14418
14419
14420 echo "$as_me:$LINENO: checking whether we can use re-entrant gethostbyname_r Linux style" >&5
14421 echo $ECHO_N "checking whether we can use re-entrant gethostbyname_r Linux style... $ECHO_C" >&6
14422 if test "${wine_cv_linux_gethostbyname_r_6+set}" = set; then
14423   echo $ECHO_N "(cached) $ECHO_C" >&6
14424 else
14425   cat >conftest.$ac_ext <<_ACEOF
14426 #line $LINENO "configure"
14427 /* confdefs.h.  */
14428 _ACEOF
14429 cat confdefs.h >>conftest.$ac_ext
14430 cat >>conftest.$ac_ext <<_ACEOF
14431 /* end confdefs.h.  */
14432
14433 #include <netdb.h>
14434
14435 int
14436 main ()
14437 {
14438
14439     char *name=NULL;
14440     struct hostent he;
14441     struct hostent *result;
14442     char *buf=NULL;
14443     int bufsize=0;
14444     int res,errnr;
14445     char *addr=NULL;
14446     int addrlen=0;
14447     int addrtype=0;
14448     res=gethostbyname_r(name,&he,buf,bufsize,&result,&errnr);
14449     res=gethostbyaddr_r(addr, addrlen, addrtype,&he,buf,bufsize,&result,&errnr);
14450
14451   ;
14452   return 0;
14453 }
14454 _ACEOF
14455 rm -f conftest.$ac_objext
14456 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14457   (eval $ac_compile) 2>&5
14458   ac_status=$?
14459   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14460   (exit $ac_status); } &&
14461          { ac_try='test -s conftest.$ac_objext'
14462   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14463   (eval $ac_try) 2>&5
14464   ac_status=$?
14465   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14466   (exit $ac_status); }; }; then
14467   wine_cv_linux_gethostbyname_r_6=yes
14468 else
14469   echo "$as_me: failed program was:" >&5
14470 sed 's/^/| /' conftest.$ac_ext >&5
14471
14472 wine_cv_linux_gethostbyname_r_6=no
14473
14474 fi
14475 rm -f conftest.$ac_objext conftest.$ac_ext
14476
14477 fi
14478 echo "$as_me:$LINENO: result: $wine_cv_linux_gethostbyname_r_6" >&5
14479 echo "${ECHO_T}$wine_cv_linux_gethostbyname_r_6" >&6
14480    if test "$wine_cv_linux_gethostbyname_r_6" = "yes"
14481    then
14482
14483 cat >>confdefs.h <<\_ACEOF
14484 #define HAVE_LINUX_GETHOSTBYNAME_R_6 1
14485 _ACEOF
14486
14487    fi
14488
14489 if test "$ac_cv_header_linux_joystick_h" = "yes"
14490 then
14491    echo "$as_me:$LINENO: checking whether linux/joystick.h uses the Linux 2.2+ API" >&5
14492 echo $ECHO_N "checking whether linux/joystick.h uses the Linux 2.2+ API... $ECHO_C" >&6
14493 if test "${wine_cv_linux_joystick_22_api+set}" = set; then
14494   echo $ECHO_N "(cached) $ECHO_C" >&6
14495 else
14496   cat >conftest.$ac_ext <<_ACEOF
14497 #line $LINENO "configure"
14498 /* confdefs.h.  */
14499 _ACEOF
14500 cat confdefs.h >>conftest.$ac_ext
14501 cat >>conftest.$ac_ext <<_ACEOF
14502 /* end confdefs.h.  */
14503
14504         #include <sys/ioctl.h>
14505         #include <linux/joystick.h>
14506
14507         struct js_event blub;
14508         #if !defined(JS_EVENT_AXIS) || !defined(JS_EVENT_BUTTON)
14509         #error "no 2.2 header"
14510         #endif
14511
14512 int
14513 main ()
14514 {
14515 /*empty*/
14516   ;
14517   return 0;
14518 }
14519 _ACEOF
14520 rm -f conftest.$ac_objext
14521 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14522   (eval $ac_compile) 2>&5
14523   ac_status=$?
14524   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14525   (exit $ac_status); } &&
14526          { ac_try='test -s conftest.$ac_objext'
14527   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14528   (eval $ac_try) 2>&5
14529   ac_status=$?
14530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14531   (exit $ac_status); }; }; then
14532   wine_cv_linux_joystick_22_api=yes
14533 else
14534   echo "$as_me: failed program was:" >&5
14535 sed 's/^/| /' conftest.$ac_ext >&5
14536
14537 wine_cv_linux_joystick_22_api=no
14538 fi
14539 rm -f conftest.$ac_objext conftest.$ac_ext
14540
14541 fi
14542 echo "$as_me:$LINENO: result: $wine_cv_linux_joystick_22_api" >&5
14543 echo "${ECHO_T}$wine_cv_linux_joystick_22_api" >&6
14544    if test "$wine_cv_linux_joystick_22_api" = "yes"
14545    then
14546
14547 cat >>confdefs.h <<\_ACEOF
14548 #define HAVE_LINUX_22_JOYSTICK_API 1
14549 _ACEOF
14550
14551    fi
14552 fi
14553
14554
14555 if test "$ac_cv_header_sys_vfs_h" = "yes"
14556 then
14557     echo "$as_me:$LINENO: checking whether sys/vfs.h defines statfs" >&5
14558 echo $ECHO_N "checking whether sys/vfs.h defines statfs... $ECHO_C" >&6
14559 if test "${wine_cv_sys_vfs_has_statfs+set}" = set; then
14560   echo $ECHO_N "(cached) $ECHO_C" >&6
14561 else
14562   cat >conftest.$ac_ext <<_ACEOF
14563 #line $LINENO "configure"
14564 /* confdefs.h.  */
14565 _ACEOF
14566 cat confdefs.h >>conftest.$ac_ext
14567 cat >>conftest.$ac_ext <<_ACEOF
14568 /* end confdefs.h.  */
14569
14570         #include <sys/types.h>
14571         #ifdef HAVE_SYS_PARAM_H
14572         # include <sys/param.h>
14573         #endif
14574         #include <sys/vfs.h>
14575
14576 int
14577 main ()
14578 {
14579
14580                 struct statfs stfs;
14581
14582                 memset(&stfs,0,sizeof(stfs));
14583
14584   ;
14585   return 0;
14586 }
14587 _ACEOF
14588 rm -f conftest.$ac_objext
14589 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14590   (eval $ac_compile) 2>&5
14591   ac_status=$?
14592   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14593   (exit $ac_status); } &&
14594          { ac_try='test -s conftest.$ac_objext'
14595   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14596   (eval $ac_try) 2>&5
14597   ac_status=$?
14598   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14599   (exit $ac_status); }; }; then
14600   wine_cv_sys_vfs_has_statfs=yes
14601 else
14602   echo "$as_me: failed program was:" >&5
14603 sed 's/^/| /' conftest.$ac_ext >&5
14604
14605 wine_cv_sys_vfs_has_statfs=no
14606
14607 fi
14608 rm -f conftest.$ac_objext conftest.$ac_ext
14609
14610 fi
14611 echo "$as_me:$LINENO: result: $wine_cv_sys_vfs_has_statfs" >&5
14612 echo "${ECHO_T}$wine_cv_sys_vfs_has_statfs" >&6
14613     if test "$wine_cv_sys_vfs_has_statfs" = "yes"
14614     then
14615
14616 cat >>confdefs.h <<\_ACEOF
14617 #define STATFS_DEFINED_BY_SYS_VFS 1
14618 _ACEOF
14619
14620     fi
14621 fi
14622
14623 if test "$ac_cv_header_sys_statfs_h" = "yes"
14624 then
14625     echo "$as_me:$LINENO: checking whether sys/statfs.h defines statfs" >&5
14626 echo $ECHO_N "checking whether sys/statfs.h defines statfs... $ECHO_C" >&6
14627 if test "${wine_cv_sys_statfs_has_statfs+set}" = set; then
14628   echo $ECHO_N "(cached) $ECHO_C" >&6
14629 else
14630   cat >conftest.$ac_ext <<_ACEOF
14631 #line $LINENO "configure"
14632 /* confdefs.h.  */
14633 _ACEOF
14634 cat confdefs.h >>conftest.$ac_ext
14635 cat >>conftest.$ac_ext <<_ACEOF
14636 /* end confdefs.h.  */
14637
14638         #include <sys/types.h>
14639         #ifdef HAVE_SYS_PARAM_H
14640         # include <sys/param.h>
14641         #endif
14642         #include <sys/statfs.h>
14643
14644 int
14645 main ()
14646 {
14647
14648                 struct statfs stfs;
14649
14650   ;
14651   return 0;
14652 }
14653 _ACEOF
14654 rm -f conftest.$ac_objext
14655 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14656   (eval $ac_compile) 2>&5
14657   ac_status=$?
14658   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14659   (exit $ac_status); } &&
14660          { ac_try='test -s conftest.$ac_objext'
14661   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14662   (eval $ac_try) 2>&5
14663   ac_status=$?
14664   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14665   (exit $ac_status); }; }; then
14666   wine_cv_sys_statfs_has_statfs=yes
14667 else
14668   echo "$as_me: failed program was:" >&5
14669 sed 's/^/| /' conftest.$ac_ext >&5
14670
14671 wine_cv_sys_statfs_has_statfs=no
14672
14673 fi
14674 rm -f conftest.$ac_objext conftest.$ac_ext
14675
14676 fi
14677 echo "$as_me:$LINENO: result: $wine_cv_sys_statfs_has_statfs" >&5
14678 echo "${ECHO_T}$wine_cv_sys_statfs_has_statfs" >&6
14679     if test "$wine_cv_sys_statfs_has_statfs" = "yes"
14680     then
14681
14682 cat >>confdefs.h <<\_ACEOF
14683 #define STATFS_DEFINED_BY_SYS_STATFS 1
14684 _ACEOF
14685
14686     fi
14687 fi
14688
14689 if test "$ac_cv_header_sys_mount_h" = "yes"
14690 then
14691     echo "$as_me:$LINENO: checking whether sys/mount.h defines statfs" >&5
14692 echo $ECHO_N "checking whether sys/mount.h defines statfs... $ECHO_C" >&6
14693 if test "${wine_cv_sys_mount_has_statfs+set}" = set; then
14694   echo $ECHO_N "(cached) $ECHO_C" >&6
14695 else
14696   cat >conftest.$ac_ext <<_ACEOF
14697 #line $LINENO "configure"
14698 /* confdefs.h.  */
14699 _ACEOF
14700 cat confdefs.h >>conftest.$ac_ext
14701 cat >>conftest.$ac_ext <<_ACEOF
14702 /* end confdefs.h.  */
14703
14704         #include <sys/types.h>
14705         #ifdef HAVE_SYS_PARAM_H
14706         # include <sys/param.h>
14707         #endif
14708         #include <sys/mount.h>
14709
14710 int
14711 main ()
14712 {
14713
14714                 struct statfs stfs;
14715
14716   ;
14717   return 0;
14718 }
14719 _ACEOF
14720 rm -f conftest.$ac_objext
14721 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14722   (eval $ac_compile) 2>&5
14723   ac_status=$?
14724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14725   (exit $ac_status); } &&
14726          { ac_try='test -s conftest.$ac_objext'
14727   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14728   (eval $ac_try) 2>&5
14729   ac_status=$?
14730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14731   (exit $ac_status); }; }; then
14732   wine_cv_sys_mount_has_statfs=yes
14733 else
14734   echo "$as_me: failed program was:" >&5
14735 sed 's/^/| /' conftest.$ac_ext >&5
14736
14737 wine_cv_sys_mount_has_statfs=no
14738
14739 fi
14740 rm -f conftest.$ac_objext conftest.$ac_ext
14741
14742 fi
14743 echo "$as_me:$LINENO: result: $wine_cv_sys_mount_has_statfs" >&5
14744 echo "${ECHO_T}$wine_cv_sys_mount_has_statfs" >&6
14745     if test "$wine_cv_sys_mount_has_statfs" = "yes"
14746     then
14747
14748 cat >>confdefs.h <<\_ACEOF
14749 #define STATFS_DEFINED_BY_SYS_MOUNT 1
14750 _ACEOF
14751
14752     fi
14753 fi
14754
14755
14756 echo "$as_me:$LINENO: checking for f_bfree in struct statfs" >&5
14757 echo $ECHO_N "checking for f_bfree in struct statfs... $ECHO_C" >&6
14758 if test "${ac_cv_c_statfs_f_bfree+set}" = set; then
14759   echo $ECHO_N "(cached) $ECHO_C" >&6
14760 else
14761   cat >conftest.$ac_ext <<_ACEOF
14762 #line $LINENO "configure"
14763 /* confdefs.h.  */
14764 _ACEOF
14765 cat confdefs.h >>conftest.$ac_ext
14766 cat >>conftest.$ac_ext <<_ACEOF
14767 /* end confdefs.h.  */
14768 #include <sys/types.h>
14769 #ifdef HAVE_SYS_PARAM_H
14770 # include <sys/param.h>
14771 #endif
14772 #ifdef STATFS_DEFINED_BY_SYS_MOUNT
14773 # include <sys/mount.h>
14774 #else
14775 # ifdef STATFS_DEFINED_BY_SYS_VFS
14776 #  include <sys/vfs.h>
14777 # else
14778 #  ifdef STATFS_DEFINED_BY_SYS_STATFS
14779 #   include <sys/statfs.h>
14780 #  endif
14781 # endif
14782 #endif
14783 int
14784 main ()
14785 {
14786 struct statfs s; s.f_bfree = 0
14787   ;
14788   return 0;
14789 }
14790 _ACEOF
14791 rm -f conftest.$ac_objext
14792 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14793   (eval $ac_compile) 2>&5
14794   ac_status=$?
14795   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14796   (exit $ac_status); } &&
14797          { ac_try='test -s conftest.$ac_objext'
14798   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14799   (eval $ac_try) 2>&5
14800   ac_status=$?
14801   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14802   (exit $ac_status); }; }; then
14803   ac_cv_c_statfs_f_bfree="yes"
14804 else
14805   echo "$as_me: failed program was:" >&5
14806 sed 's/^/| /' conftest.$ac_ext >&5
14807
14808 ac_cv_c_statfs_f_bfree="no"
14809 fi
14810 rm -f conftest.$ac_objext conftest.$ac_ext
14811 fi
14812 echo "$as_me:$LINENO: result: $ac_cv_c_statfs_f_bfree" >&5
14813 echo "${ECHO_T}$ac_cv_c_statfs_f_bfree" >&6
14814 if  test "x$ac_cv_c_statfs_f_bfree" = "xyes"; then
14815
14816 cat >>confdefs.h <<\_ACEOF
14817 #define STATFS_HAS_BFREE 1
14818 _ACEOF
14819
14820 fi
14821
14822
14823
14824 echo "$as_me:$LINENO: checking for f_bavail in struct statfs" >&5
14825 echo $ECHO_N "checking for f_bavail in struct statfs... $ECHO_C" >&6
14826 if test "${ac_cv_c_statfs_f_bavail+set}" = set; then
14827   echo $ECHO_N "(cached) $ECHO_C" >&6
14828 else
14829   cat >conftest.$ac_ext <<_ACEOF
14830 #line $LINENO "configure"
14831 /* confdefs.h.  */
14832 _ACEOF
14833 cat confdefs.h >>conftest.$ac_ext
14834 cat >>conftest.$ac_ext <<_ACEOF
14835 /* end confdefs.h.  */
14836 #include <sys/types.h>
14837 #ifdef HAVE_SYS_PARAM_H
14838 # include <sys/param.h>
14839 #endif
14840 #ifdef STATFS_DEFINED_BY_SYS_MOUNT
14841 # include <sys/mount.h>
14842 #else
14843 # ifdef STATFS_DEFINED_BY_SYS_VFS
14844 #  include <sys/vfs.h>
14845 # else
14846 #  ifdef STATFS_DEFINED_BY_SYS_STATFS
14847 #   include <sys/statfs.h>
14848 #  endif
14849 # endif
14850 #endif
14851 int
14852 main ()
14853 {
14854 struct statfs s; s.f_bavail = 0
14855   ;
14856   return 0;
14857 }
14858 _ACEOF
14859 rm -f conftest.$ac_objext
14860 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14861   (eval $ac_compile) 2>&5
14862   ac_status=$?
14863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14864   (exit $ac_status); } &&
14865          { ac_try='test -s conftest.$ac_objext'
14866   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14867   (eval $ac_try) 2>&5
14868   ac_status=$?
14869   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14870   (exit $ac_status); }; }; then
14871   ac_cv_c_statfs_f_bavail="yes"
14872 else
14873   echo "$as_me: failed program was:" >&5
14874 sed 's/^/| /' conftest.$ac_ext >&5
14875
14876 ac_cv_c_statfs_f_bavail="no"
14877 fi
14878 rm -f conftest.$ac_objext conftest.$ac_ext
14879 fi
14880 echo "$as_me:$LINENO: result: $ac_cv_c_statfs_f_bavail" >&5
14881 echo "${ECHO_T}$ac_cv_c_statfs_f_bavail" >&6
14882 if  test "x$ac_cv_c_statfs_f_bavail" = "xyes"; then
14883
14884 cat >>confdefs.h <<\_ACEOF
14885 #define STATFS_HAS_BAVAIL 1
14886 _ACEOF
14887
14888 fi
14889
14890
14891
14892 echo "$as_me:$LINENO: checking for msg_accrights in struct msghdr" >&5
14893 echo $ECHO_N "checking for msg_accrights in struct msghdr... $ECHO_C" >&6
14894 if test "${ac_cv_c_msghdr_msg_accrights+set}" = set; then
14895   echo $ECHO_N "(cached) $ECHO_C" >&6
14896 else
14897   cat >conftest.$ac_ext <<_ACEOF
14898 #line $LINENO "configure"
14899 /* confdefs.h.  */
14900 _ACEOF
14901 cat confdefs.h >>conftest.$ac_ext
14902 cat >>conftest.$ac_ext <<_ACEOF
14903 /* end confdefs.h.  */
14904 #include <sys/types.h>
14905 #ifdef HAVE_SYS_SOCKET_H
14906 # include <sys/socket.h>
14907 #endif
14908 int
14909 main ()
14910 {
14911 struct msghdr s; s.msg_accrights = 0
14912   ;
14913   return 0;
14914 }
14915 _ACEOF
14916 rm -f conftest.$ac_objext
14917 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14918   (eval $ac_compile) 2>&5
14919   ac_status=$?
14920   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14921   (exit $ac_status); } &&
14922          { ac_try='test -s conftest.$ac_objext'
14923   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14924   (eval $ac_try) 2>&5
14925   ac_status=$?
14926   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14927   (exit $ac_status); }; }; then
14928   ac_cv_c_msghdr_msg_accrights="yes"
14929 else
14930   echo "$as_me: failed program was:" >&5
14931 sed 's/^/| /' conftest.$ac_ext >&5
14932
14933 ac_cv_c_msghdr_msg_accrights="no"
14934 fi
14935 rm -f conftest.$ac_objext conftest.$ac_ext
14936 fi
14937 echo "$as_me:$LINENO: result: $ac_cv_c_msghdr_msg_accrights" >&5
14938 echo "${ECHO_T}$ac_cv_c_msghdr_msg_accrights" >&6
14939 if  test "x$ac_cv_c_msghdr_msg_accrights" = "xyes"; then
14940
14941 cat >>confdefs.h <<\_ACEOF
14942 #define HAVE_MSGHDR_ACCRIGHTS 1
14943 _ACEOF
14944
14945 fi
14946
14947
14948
14949 echo "$as_me:$LINENO: checking for sa_len in struct sockaddr" >&5
14950 echo $ECHO_N "checking for sa_len in struct sockaddr... $ECHO_C" >&6
14951 if test "${ac_cv_c_sockaddr_sa_len+set}" = set; then
14952   echo $ECHO_N "(cached) $ECHO_C" >&6
14953 else
14954   cat >conftest.$ac_ext <<_ACEOF
14955 #line $LINENO "configure"
14956 /* confdefs.h.  */
14957 _ACEOF
14958 cat confdefs.h >>conftest.$ac_ext
14959 cat >>conftest.$ac_ext <<_ACEOF
14960 /* end confdefs.h.  */
14961 #include <sys/types.h>
14962 #ifdef HAVE_SYS_SOCKET_H
14963 # include <sys/socket.h>
14964 #endif
14965 int
14966 main ()
14967 {
14968 struct sockaddr s; s.sa_len = 0
14969   ;
14970   return 0;
14971 }
14972 _ACEOF
14973 rm -f conftest.$ac_objext
14974 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14975   (eval $ac_compile) 2>&5
14976   ac_status=$?
14977   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14978   (exit $ac_status); } &&
14979          { ac_try='test -s conftest.$ac_objext'
14980   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14981   (eval $ac_try) 2>&5
14982   ac_status=$?
14983   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14984   (exit $ac_status); }; }; then
14985   ac_cv_c_sockaddr_sa_len="yes"
14986 else
14987   echo "$as_me: failed program was:" >&5
14988 sed 's/^/| /' conftest.$ac_ext >&5
14989
14990 ac_cv_c_sockaddr_sa_len="no"
14991 fi
14992 rm -f conftest.$ac_objext conftest.$ac_ext
14993 fi
14994 echo "$as_me:$LINENO: result: $ac_cv_c_sockaddr_sa_len" >&5
14995 echo "${ECHO_T}$ac_cv_c_sockaddr_sa_len" >&6
14996 if  test "x$ac_cv_c_sockaddr_sa_len" = "xyes"; then
14997
14998 cat >>confdefs.h <<\_ACEOF
14999 #define HAVE_SOCKADDR_SA_LEN 1
15000 _ACEOF
15001
15002 fi
15003
15004
15005
15006 echo "$as_me:$LINENO: checking for sun_len in struct sockaddr_un" >&5
15007 echo $ECHO_N "checking for sun_len in struct sockaddr_un... $ECHO_C" >&6
15008 if test "${ac_cv_c_sockaddr_un_sun_len+set}" = set; then
15009   echo $ECHO_N "(cached) $ECHO_C" >&6
15010 else
15011   cat >conftest.$ac_ext <<_ACEOF
15012 #line $LINENO "configure"
15013 /* confdefs.h.  */
15014 _ACEOF
15015 cat confdefs.h >>conftest.$ac_ext
15016 cat >>conftest.$ac_ext <<_ACEOF
15017 /* end confdefs.h.  */
15018 #include <sys/types.h>
15019 #ifdef HAVE_SYS_SOCKET_H
15020 # include <sys/socket.h>
15021 #endif
15022 #ifdef HAVE_SYS_UN_H
15023 # include <sys/un.h>
15024 #endif
15025 int
15026 main ()
15027 {
15028 struct sockaddr_un s; s.sun_len = 0
15029   ;
15030   return 0;
15031 }
15032 _ACEOF
15033 rm -f conftest.$ac_objext
15034 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15035   (eval $ac_compile) 2>&5
15036   ac_status=$?
15037   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15038   (exit $ac_status); } &&
15039          { ac_try='test -s conftest.$ac_objext'
15040   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15041   (eval $ac_try) 2>&5
15042   ac_status=$?
15043   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15044   (exit $ac_status); }; }; then
15045   ac_cv_c_sockaddr_un_sun_len="yes"
15046 else
15047   echo "$as_me: failed program was:" >&5
15048 sed 's/^/| /' conftest.$ac_ext >&5
15049
15050 ac_cv_c_sockaddr_un_sun_len="no"
15051 fi
15052 rm -f conftest.$ac_objext conftest.$ac_ext
15053 fi
15054 echo "$as_me:$LINENO: result: $ac_cv_c_sockaddr_un_sun_len" >&5
15055 echo "${ECHO_T}$ac_cv_c_sockaddr_un_sun_len" >&6
15056 if  test "x$ac_cv_c_sockaddr_un_sun_len" = "xyes"; then
15057
15058 cat >>confdefs.h <<\_ACEOF
15059 #define HAVE_SOCKADDR_SUN_LEN 1
15060 _ACEOF
15061
15062 fi
15063
15064
15065
15066
15067 case $host_cpu in
15068   *i[3456789]86*) echo "$as_me:$LINENO: checking whether we need to define __i386__" >&5
15069 echo $ECHO_N "checking whether we need to define __i386__... $ECHO_C" >&6
15070 if test "${ac_cv_cpp_def___i386__+set}" = set; then
15071   echo $ECHO_N "(cached) $ECHO_C" >&6
15072 else
15073   cat >conftest.$ac_ext <<_ACEOF
15074 #line $LINENO "configure"
15075 /* confdefs.h.  */
15076 _ACEOF
15077 cat confdefs.h >>conftest.$ac_ext
15078 cat >>conftest.$ac_ext <<_ACEOF
15079 /* end confdefs.h.  */
15080 #ifndef __i386__
15081 yes
15082 #endif
15083 _ACEOF
15084 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15085   $EGREP "yes" >/dev/null 2>&1; then
15086   ac_cv_cpp_def___i386__=yes
15087 else
15088   ac_cv_cpp_def___i386__=no
15089 fi
15090 rm -f conftest*
15091
15092 fi
15093 echo "$as_me:$LINENO: result: $ac_cv_cpp_def___i386__" >&5
15094 echo "${ECHO_T}$ac_cv_cpp_def___i386__" >&6
15095 if test $ac_cv_cpp_def___i386__ = yes; then
15096   CFLAGS="$CFLAGS -D__i386__"
15097   LINTFLAGS="$LINTFLAGS -D__i386__"
15098 fi
15099  ;;
15100   *alpha*)          echo "$as_me:$LINENO: checking whether we need to define __ALPHA__" >&5
15101 echo $ECHO_N "checking whether we need to define __ALPHA__... $ECHO_C" >&6
15102 if test "${ac_cv_cpp_def___ALPHA__+set}" = set; then
15103   echo $ECHO_N "(cached) $ECHO_C" >&6
15104 else
15105   cat >conftest.$ac_ext <<_ACEOF
15106 #line $LINENO "configure"
15107 /* confdefs.h.  */
15108 _ACEOF
15109 cat confdefs.h >>conftest.$ac_ext
15110 cat >>conftest.$ac_ext <<_ACEOF
15111 /* end confdefs.h.  */
15112 #ifndef __ALPHA__
15113 yes
15114 #endif
15115 _ACEOF
15116 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15117   $EGREP "yes" >/dev/null 2>&1; then
15118   ac_cv_cpp_def___ALPHA__=yes
15119 else
15120   ac_cv_cpp_def___ALPHA__=no
15121 fi
15122 rm -f conftest*
15123
15124 fi
15125 echo "$as_me:$LINENO: result: $ac_cv_cpp_def___ALPHA__" >&5
15126 echo "${ECHO_T}$ac_cv_cpp_def___ALPHA__" >&6
15127 if test $ac_cv_cpp_def___ALPHA__ = yes; then
15128   CFLAGS="$CFLAGS -D__ALPHA__"
15129   LINTFLAGS="$LINTFLAGS -D__ALPHA__"
15130 fi
15131  ;;
15132   *sparc*)          echo "$as_me:$LINENO: checking whether we need to define __sparc__" >&5
15133 echo $ECHO_N "checking whether we need to define __sparc__... $ECHO_C" >&6
15134 if test "${ac_cv_cpp_def___sparc__+set}" = set; then
15135   echo $ECHO_N "(cached) $ECHO_C" >&6
15136 else
15137   cat >conftest.$ac_ext <<_ACEOF
15138 #line $LINENO "configure"
15139 /* confdefs.h.  */
15140 _ACEOF
15141 cat confdefs.h >>conftest.$ac_ext
15142 cat >>conftest.$ac_ext <<_ACEOF
15143 /* end confdefs.h.  */
15144 #ifndef __sparc__
15145 yes
15146 #endif
15147 _ACEOF
15148 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15149   $EGREP "yes" >/dev/null 2>&1; then
15150   ac_cv_cpp_def___sparc__=yes
15151 else
15152   ac_cv_cpp_def___sparc__=no
15153 fi
15154 rm -f conftest*
15155
15156 fi
15157 echo "$as_me:$LINENO: result: $ac_cv_cpp_def___sparc__" >&5
15158 echo "${ECHO_T}$ac_cv_cpp_def___sparc__" >&6
15159 if test $ac_cv_cpp_def___sparc__ = yes; then
15160   CFLAGS="$CFLAGS -D__sparc__"
15161   LINTFLAGS="$LINTFLAGS -D__sparc__"
15162 fi
15163  ;;
15164 esac
15165
15166 case $host_vendor in
15167   *sun*) echo "$as_me:$LINENO: checking whether we need to define __sun__" >&5
15168 echo $ECHO_N "checking whether we need to define __sun__... $ECHO_C" >&6
15169 if test "${ac_cv_cpp_def___sun__+set}" = set; then
15170   echo $ECHO_N "(cached) $ECHO_C" >&6
15171 else
15172   cat >conftest.$ac_ext <<_ACEOF
15173 #line $LINENO "configure"
15174 /* confdefs.h.  */
15175 _ACEOF
15176 cat confdefs.h >>conftest.$ac_ext
15177 cat >>conftest.$ac_ext <<_ACEOF
15178 /* end confdefs.h.  */
15179 #ifndef __sun__
15180 yes
15181 #endif
15182 _ACEOF
15183 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15184   $EGREP "yes" >/dev/null 2>&1; then
15185   ac_cv_cpp_def___sun__=yes
15186 else
15187   ac_cv_cpp_def___sun__=no
15188 fi
15189 rm -f conftest*
15190
15191 fi
15192 echo "$as_me:$LINENO: result: $ac_cv_cpp_def___sun__" >&5
15193 echo "${ECHO_T}$ac_cv_cpp_def___sun__" >&6
15194 if test $ac_cv_cpp_def___sun__ = yes; then
15195   CFLAGS="$CFLAGS -D__sun__"
15196   LINTFLAGS="$LINTFLAGS -D__sun__"
15197 fi
15198  ;;
15199 esac
15200
15201
15202
15203
15204
15205           ac_config_commands="$ac_config_commands controls"
15206
15207           ac_config_commands="$ac_config_commands dlls/ddraw/d3ddevice"
15208
15209           ac_config_commands="$ac_config_commands dlls/ddraw/dclipper"
15210
15211           ac_config_commands="$ac_config_commands dlls/ddraw/ddraw"
15212
15213           ac_config_commands="$ac_config_commands dlls/ddraw/direct3d"
15214
15215           ac_config_commands="$ac_config_commands dlls/ddraw/dpalette"
15216
15217           ac_config_commands="$ac_config_commands dlls/ddraw/dsurface"
15218
15219           ac_config_commands="$ac_config_commands dlls/dinput/joystick"
15220
15221           ac_config_commands="$ac_config_commands dlls/dinput/keyboard"
15222
15223           ac_config_commands="$ac_config_commands dlls/dinput/mouse"
15224
15225           ac_config_commands="$ac_config_commands dlls/gdi/enhmfdrv"
15226
15227           ac_config_commands="$ac_config_commands dlls/gdi/mfdrv"
15228
15229           ac_config_commands="$ac_config_commands dlls/gdi/win16drv"
15230
15231           ac_config_commands="$ac_config_commands dlls/kernel/messages"
15232
15233           ac_config_commands="$ac_config_commands dlls/user/dde"
15234
15235           ac_config_commands="$ac_config_commands dlls/user/resources"
15236
15237           ac_config_commands="$ac_config_commands dlls/wineps/data"
15238
15239           ac_config_commands="$ac_config_commands files"
15240
15241           ac_config_commands="$ac_config_commands graphics"
15242
15243           ac_config_commands="$ac_config_commands graphics/x11drv"
15244
15245           ac_config_commands="$ac_config_commands if1632"
15246
15247           ac_config_commands="$ac_config_commands include/wine"
15248
15249           ac_config_commands="$ac_config_commands loader"
15250
15251           ac_config_commands="$ac_config_commands loader/ne"
15252
15253           ac_config_commands="$ac_config_commands memory"
15254
15255           ac_config_commands="$ac_config_commands misc"
15256
15257           ac_config_commands="$ac_config_commands msdos"
15258
15259           ac_config_commands="$ac_config_commands objects"
15260
15261           ac_config_commands="$ac_config_commands programs/regapi/tests"
15262
15263           ac_config_commands="$ac_config_commands programs/regedit/tests"
15264
15265           ac_config_commands="$ac_config_commands relay32"
15266
15267           ac_config_commands="$ac_config_commands scheduler"
15268
15269           ac_config_commands="$ac_config_commands win32"
15270
15271           ac_config_commands="$ac_config_commands windows"
15272
15273
15274 MAKE_RULES=Make.rules
15275
15276
15277 MAKE_DLL_RULES=dlls/Makedll.rules
15278
15279
15280 MAKE_TEST_RULES=dlls/Maketest.rules
15281
15282
15283 MAKE_PROG_RULES=programs/Makeprog.rules
15284
15285
15286                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         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/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"
15287
15288
15289 cat >confcache <<\_ACEOF
15290 # This file is a shell script that caches the results of configure
15291 # tests run on this system so they can be shared between configure
15292 # scripts and configure runs, see configure's option --config-cache.
15293 # It is not useful on other systems.  If it contains results you don't
15294 # want to keep, you may remove or edit it.
15295 #
15296 # config.status only pays attention to the cache file if you give it
15297 # the --recheck option to rerun configure.
15298 #
15299 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15300 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15301 # following values.
15302
15303 _ACEOF
15304
15305 # The following way of writing the cache mishandles newlines in values,
15306 # but we know of no workaround that is simple, portable, and efficient.
15307 # So, don't put newlines in cache variables' values.
15308 # Ultrix sh set writes to stderr and can't be redirected directly,
15309 # and sets the high bit in the cache file unless we assign to the vars.
15310 {
15311   (set) 2>&1 |
15312     case `(ac_space=' '; set | grep ac_space) 2>&1` in
15313     *ac_space=\ *)
15314       # `set' does not quote correctly, so add quotes (double-quote
15315       # substitution turns \\\\ into \\, and sed turns \\ into \).
15316       sed -n \
15317         "s/'/'\\\\''/g;
15318           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15319       ;;
15320     *)
15321       # `set' quotes correctly as required by POSIX, so do not add quotes.
15322       sed -n \
15323         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
15324       ;;
15325     esac;
15326 } |
15327   sed '
15328      t clear
15329      : clear
15330      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15331      t end
15332      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15333      : end' >>confcache
15334 if diff $cache_file confcache >/dev/null 2>&1; then :; else
15335   if test -w $cache_file; then
15336     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
15337     cat confcache >$cache_file
15338   else
15339     echo "not updating unwritable cache $cache_file"
15340   fi
15341 fi
15342 rm -f confcache
15343
15344 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15345 # Let make expand exec_prefix.
15346 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15347
15348 # VPATH may cause trouble with some makes, so we remove $(srcdir),
15349 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
15350 # trailing colons and then remove the whole line if VPATH becomes empty
15351 # (actually we leave an empty line to preserve line numbers).
15352 if test "x$srcdir" = x.; then
15353   ac_vpsub='/^[         ]*VPATH[        ]*=/{
15354 s/:*\$(srcdir):*/:/;
15355 s/:*\${srcdir}:*/:/;
15356 s/:*@srcdir@:*/:/;
15357 s/^\([^=]*=[    ]*\):*/\1/;
15358 s/:*$//;
15359 s/^[^=]*=[      ]*$//;
15360 }'
15361 fi
15362
15363 DEFS=-DHAVE_CONFIG_H
15364
15365 ac_libobjs=
15366 ac_ltlibobjs=
15367 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15368   # 1. Remove the extension, and $U if already installed.
15369   ac_i=`echo "$ac_i" |
15370          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
15371   # 2. Add them.
15372   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
15373   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
15374 done
15375 LIBOBJS=$ac_libobjs
15376
15377 LTLIBOBJS=$ac_ltlibobjs
15378
15379
15380
15381 : ${CONFIG_STATUS=./config.status}
15382 ac_clean_files_save=$ac_clean_files
15383 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15384 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
15385 echo "$as_me: creating $CONFIG_STATUS" >&6;}
15386 cat >$CONFIG_STATUS <<_ACEOF
15387 #! $SHELL
15388 # Generated by $as_me.
15389 # Run this file to recreate the current configuration.
15390 # Compiler output produced by configure, useful for debugging
15391 # configure, is in config.log if it exists.
15392
15393 debug=false
15394 ac_cs_recheck=false
15395 ac_cs_silent=false
15396 SHELL=\${CONFIG_SHELL-$SHELL}
15397 _ACEOF
15398
15399 cat >>$CONFIG_STATUS <<\_ACEOF
15400 ## --------------------- ##
15401 ## M4sh Initialization.  ##
15402 ## --------------------- ##
15403
15404 # Be Bourne compatible
15405 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
15406   emulate sh
15407   NULLCMD=:
15408   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
15409   # is contrary to our usage.  Disable this feature.
15410   alias -g '${1+"$@"}'='"$@"'
15411 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
15412   set -o posix
15413 fi
15414
15415 # Support unset when possible.
15416 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
15417   as_unset=unset
15418 else
15419   as_unset=false
15420 fi
15421
15422
15423 # Work around bugs in pre-3.0 UWIN ksh.
15424 $as_unset ENV MAIL MAILPATH
15425 PS1='$ '
15426 PS2='> '
15427 PS4='+ '
15428
15429 # NLS nuisances.
15430 for as_var in \
15431   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
15432   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
15433   LC_TELEPHONE LC_TIME
15434 do
15435   if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
15436     eval $as_var=C; export $as_var
15437   else
15438     $as_unset $as_var
15439   fi
15440 done
15441
15442 # Required to use basename.
15443 if expr a : '\(a\)' >/dev/null 2>&1; then
15444   as_expr=expr
15445 else
15446   as_expr=false
15447 fi
15448
15449 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
15450   as_basename=basename
15451 else
15452   as_basename=false
15453 fi
15454
15455
15456 # Name of the executable.
15457 as_me=`$as_basename "$0" ||
15458 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15459          X"$0" : 'X\(//\)$' \| \
15460          X"$0" : 'X\(/\)$' \| \
15461          .     : '\(.\)' 2>/dev/null ||
15462 echo X/"$0" |
15463     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
15464           /^X\/\(\/\/\)$/{ s//\1/; q; }
15465           /^X\/\(\/\).*/{ s//\1/; q; }
15466           s/.*/./; q'`
15467
15468
15469 # PATH needs CR, and LINENO needs CR and PATH.
15470 # Avoid depending upon Character Ranges.
15471 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15472 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15473 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15474 as_cr_digits='0123456789'
15475 as_cr_alnum=$as_cr_Letters$as_cr_digits
15476
15477 # The user is always right.
15478 if test "${PATH_SEPARATOR+set}" != set; then
15479   echo "#! /bin/sh" >conf$$.sh
15480   echo  "exit 0"   >>conf$$.sh
15481   chmod +x conf$$.sh
15482   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
15483     PATH_SEPARATOR=';'
15484   else
15485     PATH_SEPARATOR=:
15486   fi
15487   rm -f conf$$.sh
15488 fi
15489
15490
15491   as_lineno_1=$LINENO
15492   as_lineno_2=$LINENO
15493   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
15494   test "x$as_lineno_1" != "x$as_lineno_2" &&
15495   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
15496   # Find who we are.  Look in the path if we contain no path at all
15497   # relative or not.
15498   case $0 in
15499     *[\\/]* ) as_myself=$0 ;;
15500     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15501 for as_dir in $PATH
15502 do
15503   IFS=$as_save_IFS
15504   test -z "$as_dir" && as_dir=.
15505   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15506 done
15507
15508        ;;
15509   esac
15510   # We did not find ourselves, most probably we were run as `sh COMMAND'
15511   # in which case we are not to be found in the path.
15512   if test "x$as_myself" = x; then
15513     as_myself=$0
15514   fi
15515   if test ! -f "$as_myself"; then
15516     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
15517 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
15518    { (exit 1); exit 1; }; }
15519   fi
15520   case $CONFIG_SHELL in
15521   '')
15522     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15523 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
15524 do
15525   IFS=$as_save_IFS
15526   test -z "$as_dir" && as_dir=.
15527   for as_base in sh bash ksh sh5; do
15528          case $as_dir in
15529          /*)
15530            if ("$as_dir/$as_base" -c '
15531   as_lineno_1=$LINENO
15532   as_lineno_2=$LINENO
15533   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
15534   test "x$as_lineno_1" != "x$as_lineno_2" &&
15535   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
15536              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
15537              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
15538              CONFIG_SHELL=$as_dir/$as_base
15539              export CONFIG_SHELL
15540              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
15541            fi;;
15542          esac
15543        done
15544 done
15545 ;;
15546   esac
15547
15548   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
15549   # uniformly replaced by the line number.  The first 'sed' inserts a
15550   # line-number line before each line; the second 'sed' does the real
15551   # work.  The second script uses 'N' to pair each line-number line
15552   # with the numbered line, and appends trailing '-' during
15553   # substitution so that $LINENO is not a special case at line end.
15554   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
15555   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
15556   sed '=' <$as_myself |
15557     sed '
15558       N
15559       s,$,-,
15560       : loop
15561       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
15562       t loop
15563       s,-$,,
15564       s,^['$as_cr_digits']*\n,,
15565     ' >$as_me.lineno &&
15566   chmod +x $as_me.lineno ||
15567     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
15568 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
15569    { (exit 1); exit 1; }; }
15570
15571   # Don't try to exec as it changes $[0], causing all sort of problems
15572   # (the dirname of $[0] is not the place where we might find the
15573   # original and so on.  Autoconf is especially sensible to this).
15574   . ./$as_me.lineno
15575   # Exit status is that of the last command.
15576   exit
15577 }
15578
15579
15580 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
15581   *c*,-n*) ECHO_N= ECHO_C='
15582 ' ECHO_T='      ' ;;
15583   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
15584   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
15585 esac
15586
15587 if expr a : '\(a\)' >/dev/null 2>&1; then
15588   as_expr=expr
15589 else
15590   as_expr=false
15591 fi
15592
15593 rm -f conf$$ conf$$.exe conf$$.file
15594 echo >conf$$.file
15595 if ln -s conf$$.file conf$$ 2>/dev/null; then
15596   # We could just check for DJGPP; but this test a) works b) is more generic
15597   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
15598   if test -f conf$$.exe; then
15599     # Don't use ln at all; we don't have any links
15600     as_ln_s='cp -p'
15601   else
15602     as_ln_s='ln -s'
15603   fi
15604 elif ln conf$$.file conf$$ 2>/dev/null; then
15605   as_ln_s=ln
15606 else
15607   as_ln_s='cp -p'
15608 fi
15609 rm -f conf$$ conf$$.exe conf$$.file
15610
15611 if mkdir -p . 2>/dev/null; then
15612   as_mkdir_p=:
15613 else
15614   as_mkdir_p=false
15615 fi
15616
15617 as_executable_p="test -f"
15618
15619 # Sed expression to map a string onto a valid CPP name.
15620 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
15621
15622 # Sed expression to map a string onto a valid variable name.
15623 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
15624
15625
15626 # IFS
15627 # We need space, tab and new line, in precisely that order.
15628 as_nl='
15629 '
15630 IFS="   $as_nl"
15631
15632 # CDPATH.
15633 $as_unset CDPATH
15634
15635 exec 6>&1
15636
15637 # Open the log real soon, to keep \$[0] and so on meaningful, and to
15638 # report actual input values of CONFIG_FILES etc. instead of their
15639 # values after options handling.  Logging --version etc. is OK.
15640 exec 5>>config.log
15641 {
15642   echo
15643   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15644 ## Running $as_me. ##
15645 _ASBOX
15646 } >&5
15647 cat >&5 <<_CSEOF
15648
15649 This file was extended by Wine $as_me 20021219, which was
15650 generated by GNU Autoconf 2.57.  Invocation command line was
15651
15652   CONFIG_FILES    = $CONFIG_FILES
15653   CONFIG_HEADERS  = $CONFIG_HEADERS
15654   CONFIG_LINKS    = $CONFIG_LINKS
15655   CONFIG_COMMANDS = $CONFIG_COMMANDS
15656   $ $0 $@
15657
15658 _CSEOF
15659 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
15660 echo >&5
15661 _ACEOF
15662
15663 # Files that config.status was made for.
15664 if test -n "$ac_config_files"; then
15665   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
15666 fi
15667
15668 if test -n "$ac_config_headers"; then
15669   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
15670 fi
15671
15672 if test -n "$ac_config_links"; then
15673   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
15674 fi
15675
15676 if test -n "$ac_config_commands"; then
15677   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
15678 fi
15679
15680 cat >>$CONFIG_STATUS <<\_ACEOF
15681
15682 ac_cs_usage="\
15683 \`$as_me' instantiates files from templates according to the
15684 current configuration.
15685
15686 Usage: $0 [OPTIONS] [FILE]...
15687
15688   -h, --help       print this help, then exit
15689   -V, --version    print version number, then exit
15690   -q, --quiet      do not print progress messages
15691   -d, --debug      don't remove temporary files
15692       --recheck    update $as_me by reconfiguring in the same conditions
15693   --file=FILE[:TEMPLATE]
15694                    instantiate the configuration file FILE
15695   --header=FILE[:TEMPLATE]
15696                    instantiate the configuration header FILE
15697
15698 Configuration files:
15699 $config_files
15700
15701 Configuration headers:
15702 $config_headers
15703
15704 Configuration commands:
15705 $config_commands
15706
15707 Report bugs to <bug-autoconf@gnu.org>."
15708 _ACEOF
15709
15710 cat >>$CONFIG_STATUS <<_ACEOF
15711 ac_cs_version="\\
15712 Wine config.status 20021219
15713 configured by $0, generated by GNU Autoconf 2.57,
15714   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
15715
15716 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
15717 Free Software Foundation, Inc.
15718 This config.status script is free software; the Free Software Foundation
15719 gives unlimited permission to copy, distribute and modify it."
15720 srcdir=$srcdir
15721 INSTALL="$INSTALL"
15722 _ACEOF
15723
15724 cat >>$CONFIG_STATUS <<\_ACEOF
15725 # If no file are specified by the user, then we need to provide default
15726 # value.  By we need to know if files were specified by the user.
15727 ac_need_defaults=:
15728 while test $# != 0
15729 do
15730   case $1 in
15731   --*=*)
15732     ac_option=`expr "x$1" : 'x\([^=]*\)='`
15733     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
15734     ac_shift=:
15735     ;;
15736   -*)
15737     ac_option=$1
15738     ac_optarg=$2
15739     ac_shift=shift
15740     ;;
15741   *) # This is not an option, so the user has probably given explicit
15742      # arguments.
15743      ac_option=$1
15744      ac_need_defaults=false;;
15745   esac
15746
15747   case $ac_option in
15748   # Handling of the options.
15749 _ACEOF
15750 cat >>$CONFIG_STATUS <<\_ACEOF
15751   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15752     ac_cs_recheck=: ;;
15753   --version | --vers* | -V )
15754     echo "$ac_cs_version"; exit 0 ;;
15755   --he | --h)
15756     # Conflict between --help and --header
15757     { { echo "$as_me:$LINENO: error: ambiguous option: $1
15758 Try \`$0 --help' for more information." >&5
15759 echo "$as_me: error: ambiguous option: $1
15760 Try \`$0 --help' for more information." >&2;}
15761    { (exit 1); exit 1; }; };;
15762   --help | --hel | -h )
15763     echo "$ac_cs_usage"; exit 0 ;;
15764   --debug | --d* | -d )
15765     debug=: ;;
15766   --file | --fil | --fi | --f )
15767     $ac_shift
15768     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
15769     ac_need_defaults=false;;
15770   --header | --heade | --head | --hea )
15771     $ac_shift
15772     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
15773     ac_need_defaults=false;;
15774   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15775   | -silent | --silent | --silen | --sile | --sil | --si | --s)
15776     ac_cs_silent=: ;;
15777
15778   # This is an error.
15779   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
15780 Try \`$0 --help' for more information." >&5
15781 echo "$as_me: error: unrecognized option: $1
15782 Try \`$0 --help' for more information." >&2;}
15783    { (exit 1); exit 1; }; } ;;
15784
15785   *) ac_config_targets="$ac_config_targets $1" ;;
15786
15787   esac
15788   shift
15789 done
15790
15791 ac_configure_extra_args=
15792
15793 if $ac_cs_silent; then
15794   exec 6>/dev/null
15795   ac_configure_extra_args="$ac_configure_extra_args --silent"
15796 fi
15797
15798 _ACEOF
15799 cat >>$CONFIG_STATUS <<_ACEOF
15800 if \$ac_cs_recheck; then
15801   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
15802   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15803 fi
15804
15805 _ACEOF
15806
15807
15808
15809
15810
15811 cat >>$CONFIG_STATUS <<\_ACEOF
15812 for ac_config_target in $ac_config_targets
15813 do
15814   case "$ac_config_target" in
15815   # Handling of arguments.
15816   "Make.rules" ) CONFIG_FILES="$CONFIG_FILES Make.rules" ;;
15817   "dlls/Makedll.rules" ) CONFIG_FILES="$CONFIG_FILES dlls/Makedll.rules" ;;
15818   "dlls/Maketest.rules" ) CONFIG_FILES="$CONFIG_FILES dlls/Maketest.rules" ;;
15819   "programs/Makeprog.rules" ) CONFIG_FILES="$CONFIG_FILES programs/Makeprog.rules" ;;
15820   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15821   "dlls/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/Makefile" ;;
15822   "dlls/advapi32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/advapi32/Makefile" ;;
15823   "dlls/advapi32/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/advapi32/tests/Makefile" ;;
15824   "dlls/avicap32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/avicap32/Makefile" ;;
15825   "dlls/avifil32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/avifil32/Makefile" ;;
15826   "dlls/cabinet/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/cabinet/Makefile" ;;
15827   "dlls/comcat/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/comcat/Makefile" ;;
15828   "dlls/comctl32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/comctl32/Makefile" ;;
15829   "dlls/commdlg/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/commdlg/Makefile" ;;
15830   "dlls/crtdll/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/crtdll/Makefile" ;;
15831   "dlls/crypt32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/crypt32/Makefile" ;;
15832   "dlls/ctl3d/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ctl3d/Makefile" ;;
15833   "dlls/d3d8/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/d3d8/Makefile" ;;
15834   "dlls/d3dx8/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/d3dx8/Makefile" ;;
15835   "dlls/dciman32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dciman32/Makefile" ;;
15836   "dlls/ddraw/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ddraw/Makefile" ;;
15837   "dlls/devenum/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/devenum/Makefile" ;;
15838   "dlls/dinput/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dinput/Makefile" ;;
15839   "dlls/dinput8/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dinput8/Makefile" ;;
15840   "dlls/dplay/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dplay/Makefile" ;;
15841   "dlls/dplayx/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dplayx/Makefile" ;;
15842   "dlls/dsound/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dsound/Makefile" ;;
15843   "dlls/dsound/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dsound/tests/Makefile" ;;
15844   "dlls/gdi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/gdi/Makefile" ;;
15845   "dlls/gdi/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/gdi/tests/Makefile" ;;
15846   "dlls/glu32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/glu32/Makefile" ;;
15847   "dlls/icmp/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/icmp/Makefile" ;;
15848   "dlls/imagehlp/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/imagehlp/Makefile" ;;
15849   "dlls/imm32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/imm32/Makefile" ;;
15850   "dlls/kernel/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/kernel/Makefile" ;;
15851   "dlls/kernel/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/kernel/tests/Makefile" ;;
15852   "dlls/lzexpand/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/lzexpand/Makefile" ;;
15853   "dlls/mapi32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/mapi32/Makefile" ;;
15854   "dlls/mpr/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/mpr/Makefile" ;;
15855   "dlls/msacm/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msacm/Makefile" ;;
15856   "dlls/msacm/imaadp32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msacm/imaadp32/Makefile" ;;
15857   "dlls/msacm/msadp32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msacm/msadp32/Makefile" ;;
15858   "dlls/msacm/msg711/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msacm/msg711/Makefile" ;;
15859   "dlls/msacm/winemp3/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msacm/winemp3/Makefile" ;;
15860   "dlls/msdmo/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msdmo/Makefile" ;;
15861   "dlls/msimg32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msimg32/Makefile" ;;
15862   "dlls/msisys/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msisys/Makefile" ;;
15863   "dlls/msnet32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msnet32/Makefile" ;;
15864   "dlls/msvcrt/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvcrt/Makefile" ;;
15865   "dlls/msvcrt/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvcrt/tests/Makefile" ;;
15866   "dlls/msvcrt20/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvcrt20/Makefile" ;;
15867   "dlls/msvideo/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvideo/Makefile" ;;
15868   "dlls/msvideo/msrle32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvideo/msrle32/Makefile" ;;
15869   "dlls/netapi32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/netapi32/Makefile" ;;
15870   "dlls/netapi32/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/netapi32/tests/Makefile" ;;
15871   "dlls/ntdll/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ntdll/Makefile" ;;
15872   "dlls/ntdll/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ntdll/tests/Makefile" ;;
15873   "dlls/odbc32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/odbc32/Makefile" ;;
15874   "dlls/ole32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ole32/Makefile" ;;
15875   "dlls/oleaut32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/oleaut32/Makefile" ;;
15876   "dlls/oleaut32/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/oleaut32/tests/Makefile" ;;
15877   "dlls/olecli/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/olecli/Makefile" ;;
15878   "dlls/oledlg/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/oledlg/Makefile" ;;
15879   "dlls/olepro32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/olepro32/Makefile" ;;
15880   "dlls/olesvr/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/olesvr/Makefile" ;;
15881   "dlls/opengl32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/opengl32/Makefile" ;;
15882   "dlls/psapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/psapi/Makefile" ;;
15883   "dlls/qcap/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/qcap/Makefile" ;;
15884   "dlls/quartz/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/quartz/Makefile" ;;
15885   "dlls/rasapi32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/rasapi32/Makefile" ;;
15886   "dlls/richedit/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/richedit/Makefile" ;;
15887   "dlls/rpcrt4/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/rpcrt4/Makefile" ;;
15888   "dlls/rpcrt4/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/rpcrt4/tests/Makefile" ;;
15889   "dlls/serialui/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/serialui/Makefile" ;;
15890   "dlls/setupapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/setupapi/Makefile" ;;
15891   "dlls/shdocvw/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shdocvw/Makefile" ;;
15892   "dlls/shell32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shell32/Makefile" ;;
15893   "dlls/shell32/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shell32/tests/Makefile" ;;
15894   "dlls/shfolder/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shfolder/Makefile" ;;
15895   "dlls/shlwapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shlwapi/Makefile" ;;
15896   "dlls/shlwapi/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shlwapi/tests/Makefile" ;;
15897   "dlls/snmpapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/snmpapi/Makefile" ;;
15898   "dlls/sti/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/sti/Makefile" ;;
15899   "dlls/tapi32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/tapi32/Makefile" ;;
15900   "dlls/ttydrv/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ttydrv/Makefile" ;;
15901   "dlls/twain/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/twain/Makefile" ;;
15902   "dlls/url/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/url/Makefile" ;;
15903   "dlls/urlmon/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/urlmon/Makefile" ;;
15904   "dlls/urlmon/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/urlmon/tests/Makefile" ;;
15905   "dlls/user/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/user/Makefile" ;;
15906   "dlls/user/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/user/tests/Makefile" ;;
15907   "dlls/version/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/version/Makefile" ;;
15908   "dlls/win32s/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/win32s/Makefile" ;;
15909   "dlls/winaspi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winaspi/Makefile" ;;
15910   "dlls/winedos/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winedos/Makefile" ;;
15911   "dlls/wineps/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wineps/Makefile" ;;
15912   "dlls/wininet/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wininet/Makefile" ;;
15913   "dlls/wininet/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wininet/tests/Makefile" ;;
15914   "dlls/winmm/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/Makefile" ;;
15915   "dlls/winmm/joystick/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/joystick/Makefile" ;;
15916   "dlls/winmm/mcianim/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/mcianim/Makefile" ;;
15917   "dlls/winmm/mciavi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/mciavi/Makefile" ;;
15918   "dlls/winmm/mcicda/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/mcicda/Makefile" ;;
15919   "dlls/winmm/mciseq/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/mciseq/Makefile" ;;
15920   "dlls/winmm/mciwave/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/mciwave/Makefile" ;;
15921   "dlls/winmm/midimap/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/midimap/Makefile" ;;
15922   "dlls/winmm/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/tests/Makefile" ;;
15923   "dlls/winmm/wavemap/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/wavemap/Makefile" ;;
15924   "dlls/winmm/winealsa/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/winealsa/Makefile" ;;
15925   "dlls/winmm/winearts/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/winearts/Makefile" ;;
15926   "dlls/winmm/wineaudioio/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/wineaudioio/Makefile" ;;
15927   "dlls/winmm/winenas/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/winenas/Makefile" ;;
15928   "dlls/winmm/winejack/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/winejack/Makefile" ;;
15929   "dlls/winmm/wineoss/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/wineoss/Makefile" ;;
15930   "dlls/winnls/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winnls/Makefile" ;;
15931   "dlls/winsock/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winsock/Makefile" ;;
15932   "dlls/winsock/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winsock/tests/Makefile" ;;
15933   "dlls/winspool/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winspool/Makefile" ;;
15934   "dlls/wintab32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wintab32/Makefile" ;;
15935   "dlls/wintrust/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wintrust/Makefile" ;;
15936   "dlls/wow32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wow32/Makefile" ;;
15937   "dlls/wsock32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wsock32/Makefile" ;;
15938   "dlls/x11drv/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/x11drv/Makefile" ;;
15939   "documentation/Makefile" ) CONFIG_FILES="$CONFIG_FILES documentation/Makefile" ;;
15940   "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
15941   "library/Makefile" ) CONFIG_FILES="$CONFIG_FILES library/Makefile" ;;
15942   "miscemu/Makefile" ) CONFIG_FILES="$CONFIG_FILES miscemu/Makefile" ;;
15943   "ole/Makefile" ) CONFIG_FILES="$CONFIG_FILES ole/Makefile" ;;
15944   "programs/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/Makefile" ;;
15945   "programs/avitools/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/avitools/Makefile" ;;
15946   "programs/clock/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/clock/Makefile" ;;
15947   "programs/cmdlgtst/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/cmdlgtst/Makefile" ;;
15948   "programs/control/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/control/Makefile" ;;
15949   "programs/expand/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/expand/Makefile" ;;
15950   "programs/notepad/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/notepad/Makefile" ;;
15951   "programs/osversioncheck/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/osversioncheck/Makefile" ;;
15952   "programs/progman/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/progman/Makefile" ;;
15953   "programs/regapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/regapi/Makefile" ;;
15954   "programs/regedit/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/regedit/Makefile" ;;
15955   "programs/regsvr32/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/regsvr32/Makefile" ;;
15956   "programs/regtest/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/regtest/Makefile" ;;
15957   "programs/rpcss/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/rpcss/Makefile" ;;
15958   "programs/rundll32/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/rundll32/Makefile" ;;
15959   "programs/uninstaller/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/uninstaller/Makefile" ;;
15960   "programs/view/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/view/Makefile" ;;
15961   "programs/wcmd/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/wcmd/Makefile" ;;
15962   "programs/wineboot/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/wineboot/Makefile" ;;
15963   "programs/wineconsole/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/wineconsole/Makefile" ;;
15964   "programs/winedbg/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winedbg/Makefile" ;;
15965   "programs/winefile/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winefile/Makefile" ;;
15966   "programs/winemine/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winemine/Makefile" ;;
15967   "programs/winepath/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winepath/Makefile" ;;
15968   "programs/winhelp/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winhelp/Makefile" ;;
15969   "programs/winver/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winver/Makefile" ;;
15970   "server/Makefile" ) CONFIG_FILES="$CONFIG_FILES server/Makefile" ;;
15971   "tools/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
15972   "tools/widl/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/widl/Makefile" ;;
15973   "tools/winapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/winapi/Makefile" ;;
15974   "tools/winebuild/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/winebuild/Makefile" ;;
15975   "tools/winedump/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/winedump/Makefile" ;;
15976   "tools/wmc/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/wmc/Makefile" ;;
15977   "tools/wpp/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/wpp/Makefile" ;;
15978   "tools/wrc/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/wrc/Makefile" ;;
15979   "unicode/Makefile" ) CONFIG_FILES="$CONFIG_FILES unicode/Makefile" ;;
15980   "controls" ) CONFIG_COMMANDS="$CONFIG_COMMANDS controls" ;;
15981   "dlls/ddraw/d3ddevice" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/d3ddevice" ;;
15982   "dlls/ddraw/dclipper" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/dclipper" ;;
15983   "dlls/ddraw/ddraw" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/ddraw" ;;
15984   "dlls/ddraw/direct3d" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/direct3d" ;;
15985   "dlls/ddraw/dpalette" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/dpalette" ;;
15986   "dlls/ddraw/dsurface" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/dsurface" ;;
15987   "dlls/dinput/joystick" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/dinput/joystick" ;;
15988   "dlls/dinput/keyboard" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/dinput/keyboard" ;;
15989   "dlls/dinput/mouse" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/dinput/mouse" ;;
15990   "dlls/gdi/enhmfdrv" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/gdi/enhmfdrv" ;;
15991   "dlls/gdi/mfdrv" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/gdi/mfdrv" ;;
15992   "dlls/gdi/win16drv" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/gdi/win16drv" ;;
15993   "dlls/kernel/messages" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/kernel/messages" ;;
15994   "dlls/user/dde" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/user/dde" ;;
15995   "dlls/user/resources" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/user/resources" ;;
15996   "dlls/wineps/data" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/wineps/data" ;;
15997   "files" ) CONFIG_COMMANDS="$CONFIG_COMMANDS files" ;;
15998   "graphics" ) CONFIG_COMMANDS="$CONFIG_COMMANDS graphics" ;;
15999   "graphics/x11drv" ) CONFIG_COMMANDS="$CONFIG_COMMANDS graphics/x11drv" ;;
16000   "if1632" ) CONFIG_COMMANDS="$CONFIG_COMMANDS if1632" ;;
16001   "include/wine" ) CONFIG_COMMANDS="$CONFIG_COMMANDS include/wine" ;;
16002   "loader" ) CONFIG_COMMANDS="$CONFIG_COMMANDS loader" ;;
16003   "loader/ne" ) CONFIG_COMMANDS="$CONFIG_COMMANDS loader/ne" ;;
16004   "memory" ) CONFIG_COMMANDS="$CONFIG_COMMANDS memory" ;;
16005   "misc" ) CONFIG_COMMANDS="$CONFIG_COMMANDS misc" ;;
16006   "msdos" ) CONFIG_COMMANDS="$CONFIG_COMMANDS msdos" ;;
16007   "objects" ) CONFIG_COMMANDS="$CONFIG_COMMANDS objects" ;;
16008   "programs/regapi/tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS programs/regapi/tests" ;;
16009   "programs/regedit/tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS programs/regedit/tests" ;;
16010   "relay32" ) CONFIG_COMMANDS="$CONFIG_COMMANDS relay32" ;;
16011   "scheduler" ) CONFIG_COMMANDS="$CONFIG_COMMANDS scheduler" ;;
16012   "win32" ) CONFIG_COMMANDS="$CONFIG_COMMANDS win32" ;;
16013   "windows" ) CONFIG_COMMANDS="$CONFIG_COMMANDS windows" ;;
16014   "include/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
16015   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
16016 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
16017    { (exit 1); exit 1; }; };;
16018   esac
16019 done
16020
16021 # If the user did not use the arguments to specify the items to instantiate,
16022 # then the envvar interface is used.  Set only those that are not.
16023 # We use the long form for the default assignment because of an extremely
16024 # bizarre bug on SunOS 4.1.3.
16025 if $ac_need_defaults; then
16026   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16027   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16028   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16029 fi
16030
16031 # Have a temporary directory for convenience.  Make it in the build tree
16032 # simply because there is no reason to put it here, and in addition,
16033 # creating and moving files from /tmp can sometimes cause problems.
16034 # Create a temporary directory, and hook for its removal unless debugging.
16035 $debug ||
16036 {
16037   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
16038   trap '{ (exit 1); exit 1; }' 1 2 13 15
16039 }
16040
16041 # Create a (secure) tmp directory for tmp files.
16042
16043 {
16044   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
16045   test -n "$tmp" && test -d "$tmp"
16046 }  ||
16047 {
16048   tmp=./confstat$$-$RANDOM
16049   (umask 077 && mkdir $tmp)
16050 } ||
16051 {
16052    echo "$me: cannot create a temporary directory in ." >&2
16053    { (exit 1); exit 1; }
16054 }
16055
16056 _ACEOF
16057
16058 cat >>$CONFIG_STATUS <<_ACEOF
16059
16060 #
16061 # CONFIG_FILES section.
16062 #
16063
16064 # No need to generate the scripts if there are no CONFIG_FILES.
16065 # This happens for instance when ./config.status config.h
16066 if test -n "\$CONFIG_FILES"; then
16067   # Protect against being on the right side of a sed subst in config.status.
16068   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
16069    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
16070 s,@SHELL@,$SHELL,;t t
16071 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
16072 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
16073 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
16074 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
16075 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
16076 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
16077 s,@exec_prefix@,$exec_prefix,;t t
16078 s,@prefix@,$prefix,;t t
16079 s,@program_transform_name@,$program_transform_name,;t t
16080 s,@bindir@,$bindir,;t t
16081 s,@sbindir@,$sbindir,;t t
16082 s,@libexecdir@,$libexecdir,;t t
16083 s,@datadir@,$datadir,;t t
16084 s,@sysconfdir@,$sysconfdir,;t t
16085 s,@sharedstatedir@,$sharedstatedir,;t t
16086 s,@localstatedir@,$localstatedir,;t t
16087 s,@libdir@,$libdir,;t t
16088 s,@includedir@,$includedir,;t t
16089 s,@oldincludedir@,$oldincludedir,;t t
16090 s,@infodir@,$infodir,;t t
16091 s,@mandir@,$mandir,;t t
16092 s,@build_alias@,$build_alias,;t t
16093 s,@host_alias@,$host_alias,;t t
16094 s,@target_alias@,$target_alias,;t t
16095 s,@DEFS@,$DEFS,;t t
16096 s,@ECHO_C@,$ECHO_C,;t t
16097 s,@ECHO_N@,$ECHO_N,;t t
16098 s,@ECHO_T@,$ECHO_T,;t t
16099 s,@LIBS@,$LIBS,;t t
16100 s,@OPTIONS@,$OPTIONS,;t t
16101 s,@WIN16_FILES@,$WIN16_FILES,;t t
16102 s,@WIN16_INSTALL@,$WIN16_INSTALL,;t t
16103 s,@build@,$build,;t t
16104 s,@build_cpu@,$build_cpu,;t t
16105 s,@build_vendor@,$build_vendor,;t t
16106 s,@build_os@,$build_os,;t t
16107 s,@host@,$host,;t t
16108 s,@host_cpu@,$host_cpu,;t t
16109 s,@host_vendor@,$host_vendor,;t t
16110 s,@host_os@,$host_os,;t t
16111 s,@SET_MAKE@,$SET_MAKE,;t t
16112 s,@CC@,$CC,;t t
16113 s,@CFLAGS@,$CFLAGS,;t t
16114 s,@LDFLAGS@,$LDFLAGS,;t t
16115 s,@CPPFLAGS@,$CPPFLAGS,;t t
16116 s,@ac_ct_CC@,$ac_ct_CC,;t t
16117 s,@EXEEXT@,$EXEEXT,;t t
16118 s,@OBJEXT@,$OBJEXT,;t t
16119 s,@CPP@,$CPP,;t t
16120 s,@TOOLSDIR@,$TOOLSDIR,;t t
16121 s,@X_CFLAGS@,$X_CFLAGS,;t t
16122 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
16123 s,@X_LIBS@,$X_LIBS,;t t
16124 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
16125 s,@YACC@,$YACC,;t t
16126 s,@LEX@,$LEX,;t t
16127 s,@LEXLIB@,$LEXLIB,;t t
16128 s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
16129 s,@XYACC@,$XYACC,;t t
16130 s,@XLEX@,$XLEX,;t t
16131 s,@LD@,$LD,;t t
16132 s,@ac_ct_LD@,$ac_ct_LD,;t t
16133 s,@AR@,$AR,;t t
16134 s,@ac_ct_AR@,$ac_ct_AR,;t t
16135 s,@RANLIB@,$RANLIB,;t t
16136 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
16137 s,@STRIP@,$STRIP,;t t
16138 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
16139 s,@WINDRES@,$WINDRES,;t t
16140 s,@ac_ct_WINDRES@,$ac_ct_WINDRES,;t t
16141 s,@LN_S@,$LN_S,;t t
16142 s,@LN@,$LN,;t t
16143 s,@C2MAN@,$C2MAN,;t t
16144 s,@LDCONFIG@,$LDCONFIG,;t t
16145 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
16146 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
16147 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
16148 s,@LINT@,$LINT,;t t
16149 s,@LINTFLAGS@,$LINTFLAGS,;t t
16150 s,@DB2HTML@,$DB2HTML,;t t
16151 s,@DB2PDF@,$DB2PDF,;t t
16152 s,@DB2PS@,$DB2PS,;t t
16153 s,@JPEGLIB@,$JPEGLIB,;t t
16154 s,@EGREP@,$EGREP,;t t
16155 s,@XLIB@,$XLIB,;t t
16156 s,@XFILES@,$XFILES,;t t
16157 s,@OPENGLFILES@,$OPENGLFILES,;t t
16158 s,@GLU32FILES@,$GLU32FILES,;t t
16159 s,@OPENGL_LIBS@,$OPENGL_LIBS,;t t
16160 s,@NASLIBS@,$NASLIBS,;t t
16161 s,@CURSESLIBS@,$CURSESLIBS,;t t
16162 s,@sane_devel@,$sane_devel,;t t
16163 s,@SANELIBS@,$SANELIBS,;t t
16164 s,@SANEINCL@,$SANEINCL,;t t
16165 s,@ft_devel@,$ft_devel,;t t
16166 s,@ft_devel2@,$ft_devel2,;t t
16167 s,@FREETYPEINCL@,$FREETYPEINCL,;t t
16168 s,@ARTSCCONFIG@,$ARTSCCONFIG,;t t
16169 s,@ARTSLIBS@,$ARTSLIBS,;t t
16170 s,@ARTSINCL@,$ARTSINCL,;t t
16171 s,@ALSALIBS@,$ALSALIBS,;t t
16172 s,@AUDIOIOLIBS@,$AUDIOIOLIBS,;t t
16173 s,@DLLEXT@,$DLLEXT,;t t
16174 s,@DLLFLAGS@,$DLLFLAGS,;t t
16175 s,@DLLIBS@,$DLLIBS,;t t
16176 s,@LDDLLFLAGS@,$LDDLLFLAGS,;t t
16177 s,@LDSHARED@,$LDSHARED,;t t
16178 s,@LIBEXT@,$LIBEXT,;t t
16179 s,@IMPLIBEXT@,$IMPLIBEXT,;t t
16180 s,@DLLTOOL@,$DLLTOOL,;t t
16181 s,@ac_ct_DLLTOOL@,$ac_ct_DLLTOOL,;t t
16182 s,@DLLWRAP@,$DLLWRAP,;t t
16183 s,@ac_ct_DLLWRAP@,$ac_ct_DLLWRAP,;t t
16184 s,@CROSSTEST@,$CROSSTEST,;t t
16185 s,@CROSSCC@,$CROSSCC,;t t
16186 s,@LDPATH@,$LDPATH,;t t
16187 s,@CRTLIBS@,$CRTLIBS,;t t
16188 s,@LDD@,$LDD,;t t
16189 s,@ALLOCA@,$ALLOCA,;t t
16190 s,@LIBOBJS@,$LIBOBJS,;t t
16191 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
16192 /@MAKE_RULES@/r $MAKE_RULES
16193 s,@MAKE_RULES@,,;t t
16194 /@MAKE_DLL_RULES@/r $MAKE_DLL_RULES
16195 s,@MAKE_DLL_RULES@,,;t t
16196 /@MAKE_TEST_RULES@/r $MAKE_TEST_RULES
16197 s,@MAKE_TEST_RULES@,,;t t
16198 /@MAKE_PROG_RULES@/r $MAKE_PROG_RULES
16199 s,@MAKE_PROG_RULES@,,;t t
16200 CEOF
16201
16202 _ACEOF
16203
16204   cat >>$CONFIG_STATUS <<\_ACEOF
16205   # Split the substitutions into bite-sized pieces for seds with
16206   # small command number limits, like on Digital OSF/1 and HP-UX.
16207   ac_max_sed_lines=48
16208   ac_sed_frag=1 # Number of current file.
16209   ac_beg=1 # First line for current file.
16210   ac_end=$ac_max_sed_lines # Line after last line for current file.
16211   ac_more_lines=:
16212   ac_sed_cmds=
16213   while $ac_more_lines; do
16214     if test $ac_beg -gt 1; then
16215       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
16216     else
16217       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
16218     fi
16219     if test ! -s $tmp/subs.frag; then
16220       ac_more_lines=false
16221     else
16222       # The purpose of the label and of the branching condition is to
16223       # speed up the sed processing (if there are no `@' at all, there
16224       # is no need to browse any of the substitutions).
16225       # These are the two extra sed commands mentioned above.
16226       (echo ':t
16227   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
16228       if test -z "$ac_sed_cmds"; then
16229         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
16230       else
16231         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
16232       fi
16233       ac_sed_frag=`expr $ac_sed_frag + 1`
16234       ac_beg=$ac_end
16235       ac_end=`expr $ac_end + $ac_max_sed_lines`
16236     fi
16237   done
16238   if test -z "$ac_sed_cmds"; then
16239     ac_sed_cmds=cat
16240   fi
16241 fi # test -n "$CONFIG_FILES"
16242
16243 _ACEOF
16244 cat >>$CONFIG_STATUS <<\_ACEOF
16245 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
16246   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
16247   case $ac_file in
16248   - | *:- | *:-:* ) # input from stdin
16249         cat >$tmp/stdin
16250         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
16251         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
16252   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
16253         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
16254   * )   ac_file_in=$ac_file.in ;;
16255   esac
16256
16257   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
16258   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
16259 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16260          X"$ac_file" : 'X\(//\)[^/]' \| \
16261          X"$ac_file" : 'X\(//\)$' \| \
16262          X"$ac_file" : 'X\(/\)' \| \
16263          .     : '\(.\)' 2>/dev/null ||
16264 echo X"$ac_file" |
16265     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16266           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16267           /^X\(\/\/\)$/{ s//\1/; q; }
16268           /^X\(\/\).*/{ s//\1/; q; }
16269           s/.*/./; q'`
16270   { if $as_mkdir_p; then
16271     mkdir -p "$ac_dir"
16272   else
16273     as_dir="$ac_dir"
16274     as_dirs=
16275     while test ! -d "$as_dir"; do
16276       as_dirs="$as_dir $as_dirs"
16277       as_dir=`(dirname "$as_dir") 2>/dev/null ||
16278 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16279          X"$as_dir" : 'X\(//\)[^/]' \| \
16280          X"$as_dir" : 'X\(//\)$' \| \
16281          X"$as_dir" : 'X\(/\)' \| \
16282          .     : '\(.\)' 2>/dev/null ||
16283 echo X"$as_dir" |
16284     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16285           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16286           /^X\(\/\/\)$/{ s//\1/; q; }
16287           /^X\(\/\).*/{ s//\1/; q; }
16288           s/.*/./; q'`
16289     done
16290     test ! -n "$as_dirs" || mkdir $as_dirs
16291   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
16292 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
16293    { (exit 1); exit 1; }; }; }
16294
16295   ac_builddir=.
16296
16297 if test "$ac_dir" != .; then
16298   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
16299   # A "../" for each directory in $ac_dir_suffix.
16300   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
16301 else
16302   ac_dir_suffix= ac_top_builddir=
16303 fi
16304
16305 case $srcdir in
16306   .)  # No --srcdir option.  We are building in place.
16307     ac_srcdir=.
16308     if test -z "$ac_top_builddir"; then
16309        ac_top_srcdir=.
16310     else
16311        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
16312     fi ;;
16313   [\\/]* | ?:[\\/]* )  # Absolute path.
16314     ac_srcdir=$srcdir$ac_dir_suffix;
16315     ac_top_srcdir=$srcdir ;;
16316   *) # Relative path.
16317     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
16318     ac_top_srcdir=$ac_top_builddir$srcdir ;;
16319 esac
16320 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
16321 # absolute.
16322 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
16323 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
16324 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
16325 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
16326
16327
16328   case $INSTALL in
16329   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16330   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
16331   esac
16332
16333   if test x"$ac_file" != x-; then
16334     { echo "$as_me:$LINENO: creating $ac_file" >&5
16335 echo "$as_me: creating $ac_file" >&6;}
16336     rm -f "$ac_file"
16337   fi
16338   # Let's still pretend it is `configure' which instantiates (i.e., don't
16339   # use $as_me), people would be surprised to read:
16340   #    /* config.h.  Generated by config.status.  */
16341   if test x"$ac_file" = x-; then
16342     configure_input=
16343   else
16344     configure_input="$ac_file.  "
16345   fi
16346   configure_input=$configure_input"Generated from `echo $ac_file_in |
16347                                      sed 's,.*/,,'` by configure."
16348
16349   # First look for the input files in the build tree, otherwise in the
16350   # src tree.
16351   ac_file_inputs=`IFS=:
16352     for f in $ac_file_in; do
16353       case $f in
16354       -) echo $tmp/stdin ;;
16355       [\\/$]*)
16356          # Absolute (can't be DOS-style, as IFS=:)
16357          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
16358 echo "$as_me: error: cannot find input file: $f" >&2;}
16359    { (exit 1); exit 1; }; }
16360          echo $f;;
16361       *) # Relative
16362          if test -f "$f"; then
16363            # Build tree
16364            echo $f
16365          elif test -f "$srcdir/$f"; then
16366            # Source tree
16367            echo $srcdir/$f
16368          else
16369            # /dev/null tree
16370            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
16371 echo "$as_me: error: cannot find input file: $f" >&2;}
16372    { (exit 1); exit 1; }; }
16373          fi;;
16374       esac
16375     done` || { (exit 1); exit 1; }
16376 _ACEOF
16377 cat >>$CONFIG_STATUS <<_ACEOF
16378   sed "$ac_vpsub
16379 $extrasub
16380 _ACEOF
16381 cat >>$CONFIG_STATUS <<\_ACEOF
16382 :t
16383 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16384 s,@configure_input@,$configure_input,;t t
16385 s,@srcdir@,$ac_srcdir,;t t
16386 s,@abs_srcdir@,$ac_abs_srcdir,;t t
16387 s,@top_srcdir@,$ac_top_srcdir,;t t
16388 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
16389 s,@builddir@,$ac_builddir,;t t
16390 s,@abs_builddir@,$ac_abs_builddir,;t t
16391 s,@top_builddir@,$ac_top_builddir,;t t
16392 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
16393 s,@INSTALL@,$ac_INSTALL,;t t
16394 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
16395   rm -f $tmp/stdin
16396   if test x"$ac_file" != x-; then
16397     mv $tmp/out $ac_file
16398   else
16399     cat $tmp/out
16400     rm -f $tmp/out
16401   fi
16402
16403 done
16404 _ACEOF
16405 cat >>$CONFIG_STATUS <<\_ACEOF
16406
16407 #
16408 # CONFIG_HEADER section.
16409 #
16410
16411 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
16412 # NAME is the cpp macro being defined and VALUE is the value it is being given.
16413 #
16414 # ac_d sets the value in "#define NAME VALUE" lines.
16415 ac_dA='s,^\([   ]*\)#\([        ]*define[       ][      ]*\)'
16416 ac_dB='[        ].*$,\1#\2'
16417 ac_dC=' '
16418 ac_dD=',;t'
16419 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
16420 ac_uA='s,^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
16421 ac_uB='$,\1#\2define\3'
16422 ac_uC=' '
16423 ac_uD=',;t'
16424
16425 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
16426   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
16427   case $ac_file in
16428   - | *:- | *:-:* ) # input from stdin
16429         cat >$tmp/stdin
16430         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
16431         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
16432   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
16433         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
16434   * )   ac_file_in=$ac_file.in ;;
16435   esac
16436
16437   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
16438 echo "$as_me: creating $ac_file" >&6;}
16439
16440   # First look for the input files in the build tree, otherwise in the
16441   # src tree.
16442   ac_file_inputs=`IFS=:
16443     for f in $ac_file_in; do
16444       case $f in
16445       -) echo $tmp/stdin ;;
16446       [\\/$]*)
16447          # Absolute (can't be DOS-style, as IFS=:)
16448          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
16449 echo "$as_me: error: cannot find input file: $f" >&2;}
16450    { (exit 1); exit 1; }; }
16451          echo $f;;
16452       *) # Relative
16453          if test -f "$f"; then
16454            # Build tree
16455            echo $f
16456          elif test -f "$srcdir/$f"; then
16457            # Source tree
16458            echo $srcdir/$f
16459          else
16460            # /dev/null tree
16461            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
16462 echo "$as_me: error: cannot find input file: $f" >&2;}
16463    { (exit 1); exit 1; }; }
16464          fi;;
16465       esac
16466     done` || { (exit 1); exit 1; }
16467   # Remove the trailing spaces.
16468   sed 's/[      ]*$//' $ac_file_inputs >$tmp/in
16469
16470 _ACEOF
16471
16472 # Transform confdefs.h into two sed scripts, `conftest.defines' and
16473 # `conftest.undefs', that substitutes the proper values into
16474 # config.h.in to produce config.h.  The first handles `#define'
16475 # templates, and the second `#undef' templates.
16476 # And first: Protect against being on the right side of a sed subst in
16477 # config.status.  Protect against being in an unquoted here document
16478 # in config.status.
16479 rm -f conftest.defines conftest.undefs
16480 # Using a here document instead of a string reduces the quoting nightmare.
16481 # Putting comments in sed scripts is not portable.
16482 #
16483 # `end' is used to avoid that the second main sed command (meant for
16484 # 0-ary CPP macros) applies to n-ary macro definitions.
16485 # See the Autoconf documentation for `clear'.
16486 cat >confdef2sed.sed <<\_ACEOF
16487 s/[\\&,]/\\&/g
16488 s,[\\$`],\\&,g
16489 t clear
16490 : clear
16491 s,^[    ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
16492 t end
16493 s,^[    ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
16494 : end
16495 _ACEOF
16496 # If some macros were called several times there might be several times
16497 # the same #defines, which is useless.  Nevertheless, we may not want to
16498 # sort them, since we want the *last* AC-DEFINE to be honored.
16499 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
16500 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
16501 rm -f confdef2sed.sed
16502
16503 # This sed command replaces #undef with comments.  This is necessary, for
16504 # example, in the case of _POSIX_SOURCE, which is predefined and required
16505 # on some systems where configure will not decide to define it.
16506 cat >>conftest.undefs <<\_ACEOF
16507 s,^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
16508 _ACEOF
16509
16510 # Break up conftest.defines because some shells have a limit on the size
16511 # of here documents, and old seds have small limits too (100 cmds).
16512 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
16513 echo '  if grep "^[     ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
16514 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
16515 echo '  :' >>$CONFIG_STATUS
16516 rm -f conftest.tail
16517 while grep . conftest.defines >/dev/null
16518 do
16519   # Write a limited-size here document to $tmp/defines.sed.
16520   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
16521   # Speed up: don't consider the non `#define' lines.
16522   echo '/^[     ]*#[    ]*define/!b' >>$CONFIG_STATUS
16523   # Work around the forget-to-reset-the-flag bug.
16524   echo 't clr' >>$CONFIG_STATUS
16525   echo ': clr' >>$CONFIG_STATUS
16526   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
16527   echo 'CEOF
16528   sed -f $tmp/defines.sed $tmp/in >$tmp/out
16529   rm -f $tmp/in
16530   mv $tmp/out $tmp/in
16531 ' >>$CONFIG_STATUS
16532   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
16533   rm -f conftest.defines
16534   mv conftest.tail conftest.defines
16535 done
16536 rm -f conftest.defines
16537 echo '  fi # grep' >>$CONFIG_STATUS
16538 echo >>$CONFIG_STATUS
16539
16540 # Break up conftest.undefs because some shells have a limit on the size
16541 # of here documents, and old seds have small limits too (100 cmds).
16542 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
16543 rm -f conftest.tail
16544 while grep . conftest.undefs >/dev/null
16545 do
16546   # Write a limited-size here document to $tmp/undefs.sed.
16547   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
16548   # Speed up: don't consider the non `#undef'
16549   echo '/^[     ]*#[    ]*undef/!b' >>$CONFIG_STATUS
16550   # Work around the forget-to-reset-the-flag bug.
16551   echo 't clr' >>$CONFIG_STATUS
16552   echo ': clr' >>$CONFIG_STATUS
16553   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
16554   echo 'CEOF
16555   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
16556   rm -f $tmp/in
16557   mv $tmp/out $tmp/in
16558 ' >>$CONFIG_STATUS
16559   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
16560   rm -f conftest.undefs
16561   mv conftest.tail conftest.undefs
16562 done
16563 rm -f conftest.undefs
16564
16565 cat >>$CONFIG_STATUS <<\_ACEOF
16566   # Let's still pretend it is `configure' which instantiates (i.e., don't
16567   # use $as_me), people would be surprised to read:
16568   #    /* config.h.  Generated by config.status.  */
16569   if test x"$ac_file" = x-; then
16570     echo "/* Generated by configure.  */" >$tmp/config.h
16571   else
16572     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
16573   fi
16574   cat $tmp/in >>$tmp/config.h
16575   rm -f $tmp/in
16576   if test x"$ac_file" != x-; then
16577     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
16578       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
16579 echo "$as_me: $ac_file is unchanged" >&6;}
16580     else
16581       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
16582 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16583          X"$ac_file" : 'X\(//\)[^/]' \| \
16584          X"$ac_file" : 'X\(//\)$' \| \
16585          X"$ac_file" : 'X\(/\)' \| \
16586          .     : '\(.\)' 2>/dev/null ||
16587 echo X"$ac_file" |
16588     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16589           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16590           /^X\(\/\/\)$/{ s//\1/; q; }
16591           /^X\(\/\).*/{ s//\1/; q; }
16592           s/.*/./; q'`
16593       { if $as_mkdir_p; then
16594     mkdir -p "$ac_dir"
16595   else
16596     as_dir="$ac_dir"
16597     as_dirs=
16598     while test ! -d "$as_dir"; do
16599       as_dirs="$as_dir $as_dirs"
16600       as_dir=`(dirname "$as_dir") 2>/dev/null ||
16601 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16602          X"$as_dir" : 'X\(//\)[^/]' \| \
16603          X"$as_dir" : 'X\(//\)$' \| \
16604          X"$as_dir" : 'X\(/\)' \| \
16605          .     : '\(.\)' 2>/dev/null ||
16606 echo X"$as_dir" |
16607     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16608           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16609           /^X\(\/\/\)$/{ s//\1/; q; }
16610           /^X\(\/\).*/{ s//\1/; q; }
16611           s/.*/./; q'`
16612     done
16613     test ! -n "$as_dirs" || mkdir $as_dirs
16614   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
16615 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
16616    { (exit 1); exit 1; }; }; }
16617
16618       rm -f $ac_file
16619       mv $tmp/config.h $ac_file
16620     fi
16621   else
16622     cat $tmp/config.h
16623     rm -f $tmp/config.h
16624   fi
16625 done
16626 _ACEOF
16627 cat >>$CONFIG_STATUS <<\_ACEOF
16628
16629 #
16630 # CONFIG_COMMANDS section.
16631 #
16632 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
16633   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
16634   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
16635   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
16636 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16637          X"$ac_dest" : 'X\(//\)[^/]' \| \
16638          X"$ac_dest" : 'X\(//\)$' \| \
16639          X"$ac_dest" : 'X\(/\)' \| \
16640          .     : '\(.\)' 2>/dev/null ||
16641 echo X"$ac_dest" |
16642     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16643           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16644           /^X\(\/\/\)$/{ s//\1/; q; }
16645           /^X\(\/\).*/{ s//\1/; q; }
16646           s/.*/./; q'`
16647   ac_builddir=.
16648
16649 if test "$ac_dir" != .; then
16650   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
16651   # A "../" for each directory in $ac_dir_suffix.
16652   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
16653 else
16654   ac_dir_suffix= ac_top_builddir=
16655 fi
16656
16657 case $srcdir in
16658   .)  # No --srcdir option.  We are building in place.
16659     ac_srcdir=.
16660     if test -z "$ac_top_builddir"; then
16661        ac_top_srcdir=.
16662     else
16663        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
16664     fi ;;
16665   [\\/]* | ?:[\\/]* )  # Absolute path.
16666     ac_srcdir=$srcdir$ac_dir_suffix;
16667     ac_top_srcdir=$srcdir ;;
16668   *) # Relative path.
16669     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
16670     ac_top_srcdir=$ac_top_builddir$srcdir ;;
16671 esac
16672 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
16673 # absolute.
16674 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
16675 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
16676 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
16677 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
16678
16679
16680   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
16681 echo "$as_me: executing $ac_dest commands" >&6;}
16682   case $ac_dest in
16683     controls ) test -d "controls" || ({ echo "$as_me:$LINENO: creating controls" >&5
16684 echo "$as_me: creating controls" >&6;} && mkdir "controls") ;;
16685     dlls/ddraw/d3ddevice ) test -d "dlls/ddraw/d3ddevice" || ({ echo "$as_me:$LINENO: creating dlls/ddraw/d3ddevice" >&5
16686 echo "$as_me: creating dlls/ddraw/d3ddevice" >&6;} && mkdir "dlls/ddraw/d3ddevice") ;;
16687     dlls/ddraw/dclipper ) test -d "dlls/ddraw/dclipper" || ({ echo "$as_me:$LINENO: creating dlls/ddraw/dclipper" >&5
16688 echo "$as_me: creating dlls/ddraw/dclipper" >&6;} && mkdir "dlls/ddraw/dclipper") ;;
16689     dlls/ddraw/ddraw ) test -d "dlls/ddraw/ddraw" || ({ echo "$as_me:$LINENO: creating dlls/ddraw/ddraw" >&5
16690 echo "$as_me: creating dlls/ddraw/ddraw" >&6;} && mkdir "dlls/ddraw/ddraw") ;;
16691     dlls/ddraw/direct3d ) test -d "dlls/ddraw/direct3d" || ({ echo "$as_me:$LINENO: creating dlls/ddraw/direct3d" >&5
16692 echo "$as_me: creating dlls/ddraw/direct3d" >&6;} && mkdir "dlls/ddraw/direct3d") ;;
16693     dlls/ddraw/dpalette ) test -d "dlls/ddraw/dpalette" || ({ echo "$as_me:$LINENO: creating dlls/ddraw/dpalette" >&5
16694 echo "$as_me: creating dlls/ddraw/dpalette" >&6;} && mkdir "dlls/ddraw/dpalette") ;;
16695     dlls/ddraw/dsurface ) test -d "dlls/ddraw/dsurface" || ({ echo "$as_me:$LINENO: creating dlls/ddraw/dsurface" >&5
16696 echo "$as_me: creating dlls/ddraw/dsurface" >&6;} && mkdir "dlls/ddraw/dsurface") ;;
16697     dlls/dinput/joystick ) test -d "dlls/dinput/joystick" || ({ echo "$as_me:$LINENO: creating dlls/dinput/joystick" >&5
16698 echo "$as_me: creating dlls/dinput/joystick" >&6;} && mkdir "dlls/dinput/joystick") ;;
16699     dlls/dinput/keyboard ) test -d "dlls/dinput/keyboard" || ({ echo "$as_me:$LINENO: creating dlls/dinput/keyboard" >&5
16700 echo "$as_me: creating dlls/dinput/keyboard" >&6;} && mkdir "dlls/dinput/keyboard") ;;
16701     dlls/dinput/mouse ) test -d "dlls/dinput/mouse" || ({ echo "$as_me:$LINENO: creating dlls/dinput/mouse" >&5
16702 echo "$as_me: creating dlls/dinput/mouse" >&6;} && mkdir "dlls/dinput/mouse") ;;
16703     dlls/gdi/enhmfdrv ) test -d "dlls/gdi/enhmfdrv" || ({ echo "$as_me:$LINENO: creating dlls/gdi/enhmfdrv" >&5
16704 echo "$as_me: creating dlls/gdi/enhmfdrv" >&6;} && mkdir "dlls/gdi/enhmfdrv") ;;
16705     dlls/gdi/mfdrv ) test -d "dlls/gdi/mfdrv" || ({ echo "$as_me:$LINENO: creating dlls/gdi/mfdrv" >&5
16706 echo "$as_me: creating dlls/gdi/mfdrv" >&6;} && mkdir "dlls/gdi/mfdrv") ;;
16707     dlls/gdi/win16drv ) test -d "dlls/gdi/win16drv" || ({ echo "$as_me:$LINENO: creating dlls/gdi/win16drv" >&5
16708 echo "$as_me: creating dlls/gdi/win16drv" >&6;} && mkdir "dlls/gdi/win16drv") ;;
16709     dlls/kernel/messages ) test -d "dlls/kernel/messages" || ({ echo "$as_me:$LINENO: creating dlls/kernel/messages" >&5
16710 echo "$as_me: creating dlls/kernel/messages" >&6;} && mkdir "dlls/kernel/messages") ;;
16711     dlls/user/dde ) test -d "dlls/user/dde" || ({ echo "$as_me:$LINENO: creating dlls/user/dde" >&5
16712 echo "$as_me: creating dlls/user/dde" >&6;} && mkdir "dlls/user/dde") ;;
16713     dlls/user/resources ) test -d "dlls/user/resources" || ({ echo "$as_me:$LINENO: creating dlls/user/resources" >&5
16714 echo "$as_me: creating dlls/user/resources" >&6;} && mkdir "dlls/user/resources") ;;
16715     dlls/wineps/data ) test -d "dlls/wineps/data" || ({ echo "$as_me:$LINENO: creating dlls/wineps/data" >&5
16716 echo "$as_me: creating dlls/wineps/data" >&6;} && mkdir "dlls/wineps/data") ;;
16717     files ) test -d "files" || ({ echo "$as_me:$LINENO: creating files" >&5
16718 echo "$as_me: creating files" >&6;} && mkdir "files") ;;
16719     graphics ) test -d "graphics" || ({ echo "$as_me:$LINENO: creating graphics" >&5
16720 echo "$as_me: creating graphics" >&6;} && mkdir "graphics") ;;
16721     graphics/x11drv ) test -d "graphics/x11drv" || ({ echo "$as_me:$LINENO: creating graphics/x11drv" >&5
16722 echo "$as_me: creating graphics/x11drv" >&6;} && mkdir "graphics/x11drv") ;;
16723     if1632 ) test -d "if1632" || ({ echo "$as_me:$LINENO: creating if1632" >&5
16724 echo "$as_me: creating if1632" >&6;} && mkdir "if1632") ;;
16725     include/wine ) test -d "include/wine" || ({ echo "$as_me:$LINENO: creating include/wine" >&5
16726 echo "$as_me: creating include/wine" >&6;} && mkdir "include/wine") ;;
16727     loader ) test -d "loader" || ({ echo "$as_me:$LINENO: creating loader" >&5
16728 echo "$as_me: creating loader" >&6;} && mkdir "loader") ;;
16729     loader/ne ) test -d "loader/ne" || ({ echo "$as_me:$LINENO: creating loader/ne" >&5
16730 echo "$as_me: creating loader/ne" >&6;} && mkdir "loader/ne") ;;
16731     memory ) test -d "memory" || ({ echo "$as_me:$LINENO: creating memory" >&5
16732 echo "$as_me: creating memory" >&6;} && mkdir "memory") ;;
16733     misc ) test -d "misc" || ({ echo "$as_me:$LINENO: creating misc" >&5
16734 echo "$as_me: creating misc" >&6;} && mkdir "misc") ;;
16735     msdos ) test -d "msdos" || ({ echo "$as_me:$LINENO: creating msdos" >&5
16736 echo "$as_me: creating msdos" >&6;} && mkdir "msdos") ;;
16737     objects ) test -d "objects" || ({ echo "$as_me:$LINENO: creating objects" >&5
16738 echo "$as_me: creating objects" >&6;} && mkdir "objects") ;;
16739     programs/regapi/tests ) test -d "programs/regapi/tests" || ({ echo "$as_me:$LINENO: creating programs/regapi/tests" >&5
16740 echo "$as_me: creating programs/regapi/tests" >&6;} && mkdir "programs/regapi/tests") ;;
16741     programs/regedit/tests ) test -d "programs/regedit/tests" || ({ echo "$as_me:$LINENO: creating programs/regedit/tests" >&5
16742 echo "$as_me: creating programs/regedit/tests" >&6;} && mkdir "programs/regedit/tests") ;;
16743     relay32 ) test -d "relay32" || ({ echo "$as_me:$LINENO: creating relay32" >&5
16744 echo "$as_me: creating relay32" >&6;} && mkdir "relay32") ;;
16745     scheduler ) test -d "scheduler" || ({ echo "$as_me:$LINENO: creating scheduler" >&5
16746 echo "$as_me: creating scheduler" >&6;} && mkdir "scheduler") ;;
16747     win32 ) test -d "win32" || ({ echo "$as_me:$LINENO: creating win32" >&5
16748 echo "$as_me: creating win32" >&6;} && mkdir "win32") ;;
16749     windows ) test -d "windows" || ({ echo "$as_me:$LINENO: creating windows" >&5
16750 echo "$as_me: creating windows" >&6;} && mkdir "windows") ;;
16751   esac
16752 done
16753 _ACEOF
16754
16755 cat >>$CONFIG_STATUS <<\_ACEOF
16756
16757 { (exit 0); exit 0; }
16758 _ACEOF
16759 chmod +x $CONFIG_STATUS
16760 ac_clean_files=$ac_clean_files_save
16761
16762
16763 # configure is writing to config.log, and then calls config.status.
16764 # config.status does its own redirection, appending to config.log.
16765 # Unfortunately, on DOS this fails, as config.log is still kept open
16766 # by configure, so config.status won't be able to write to it; its
16767 # output is simply discarded.  So we exec the FD to /dev/null,
16768 # effectively closing config.log, so it can be properly (re)opened and
16769 # appended to by config.status.  When coming back to configure, we
16770 # need to make the FD available again.
16771 if test "$no_create" != yes; then
16772   ac_cs_success=:
16773   ac_config_status_args=
16774   test "$silent" = yes &&
16775     ac_config_status_args="$ac_config_status_args --quiet"
16776   exec 5>/dev/null
16777   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16778   exec 5>>config.log
16779   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16780   # would make configure fail if this is the last instruction.
16781   $ac_cs_success || { (exit 1); exit 1; }
16782 fi
16783
16784
16785 if test "$have_x" = "no"
16786 then
16787   echo
16788   echo "*** Warning: X development files not found. Wine will be built without"
16789   echo "*** X support, which currently does not work, and would probably not be"
16790   echo "*** what you want anyway. You will need to install devel packages of"
16791   echo "*** Xlib/Xfree86 at the very least."
16792 fi
16793
16794 if test "$ac_cv_lib_ncurses_resizeterm" = "no" -a "$ac_cv_lib_ncurses_waddch" = "yes"
16795 then
16796   echo
16797   echo "*** Warning: resizeterm not found in ncurses. Wine will be built without"
16798   echo "*** terminal resize support. Consider upgrading ncurses."
16799 fi
16800
16801 if test "$wine_cv_libc_reentrant" = "no"
16802 then
16803   echo
16804   echo "*** Warning: non-reentrant libc detected. Wine will be built without"
16805   echo "*** threading support. Consider upgrading libc to a more recent"
16806   echo "*** reentrant version of libc."
16807 fi
16808
16809 if test "$have_x" = "yes" -a "$wine_cv_x_reentrant" != "yes"
16810 then
16811   echo
16812   echo "*** Warning: non-reentrant X11 library detected. Multi-threaded"
16813   echo "*** applications won't work properly. You should upgrade your X11 library."
16814 fi
16815
16816 if test "$wine_cv_opengl_version_OK" = "no"
16817 then
16818   echo
16819   echo "*** Warning: old Mesa headers detected. Wine will be built without Direct3D"
16820   echo "*** support. Consider upgrading your Mesa libraries (http://www.mesa3d.org/)."
16821 fi
16822
16823 if test "$wine_cv_msg_freetype" = "yes"
16824 then
16825   echo
16826   echo "*** Note: Your system appears to have the FreeType 2 runtime libraries"
16827   echo "*** installed, but 'freetype-config' is not in your PATH. Install the"
16828   echo "*** freetype-devel package (or its equivalent on your distribution) to"
16829   echo "*** enable Wine to use TrueType fonts."
16830 fi
16831
16832 echo
16833 echo "Configure finished.  Do 'make depend && make' to compile Wine."
16834 echo
16835