Updated configure with autoconf 2.58. Set the bug report address.
[wine] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.58 for Wine 20031212.
4 #
5 # Report bugs to <wine-devel@winehq.org>.
6 #
7 # Copyright (C) 2003 Free Software Foundation, Inc.
8 # This configure script is free software; the Free Software Foundation
9 # gives unlimited permission to copy, distribute and modify it.
10 ## --------------------- ##
11 ## M4sh Initialization.  ##
12 ## --------------------- ##
13
14 # Be Bourne compatible
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16   emulate sh
17   NULLCMD=:
18   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19   # is contrary to our usage.  Disable this feature.
20   alias -g '${1+"$@"}'='"$@"'
21 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22   set -o posix
23 fi
24 DUALCASE=1; export DUALCASE # for MKS sh
25
26 # Support unset when possible.
27 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
28   as_unset=unset
29 else
30   as_unset=false
31 fi
32
33
34 # Work around bugs in pre-3.0 UWIN ksh.
35 $as_unset ENV MAIL MAILPATH
36 PS1='$ '
37 PS2='> '
38 PS4='+ '
39
40 # NLS nuisances.
41 for as_var in \
42   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
43   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
44   LC_TELEPHONE LC_TIME
45 do
46   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
47     eval $as_var=C; export $as_var
48   else
49     $as_unset $as_var
50   fi
51 done
52
53 # Required to use basename.
54 if expr a : '\(a\)' >/dev/null 2>&1; then
55   as_expr=expr
56 else
57   as_expr=false
58 fi
59
60 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
61   as_basename=basename
62 else
63   as_basename=false
64 fi
65
66
67 # Name of the executable.
68 as_me=`$as_basename "$0" ||
69 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
70          X"$0" : 'X\(//\)$' \| \
71          X"$0" : 'X\(/\)$' \| \
72          .     : '\(.\)' 2>/dev/null ||
73 echo X/"$0" |
74     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
75           /^X\/\(\/\/\)$/{ s//\1/; q; }
76           /^X\/\(\/\).*/{ s//\1/; q; }
77           s/.*/./; q'`
78
79
80 # PATH needs CR, and LINENO needs CR and PATH.
81 # Avoid depending upon Character Ranges.
82 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
83 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
84 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
85 as_cr_digits='0123456789'
86 as_cr_alnum=$as_cr_Letters$as_cr_digits
87
88 # The user is always right.
89 if test "${PATH_SEPARATOR+set}" != set; then
90   echo "#! /bin/sh" >conf$$.sh
91   echo  "exit 0"   >>conf$$.sh
92   chmod +x conf$$.sh
93   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
94     PATH_SEPARATOR=';'
95   else
96     PATH_SEPARATOR=:
97   fi
98   rm -f conf$$.sh
99 fi
100
101
102   as_lineno_1=$LINENO
103   as_lineno_2=$LINENO
104   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
105   test "x$as_lineno_1" != "x$as_lineno_2" &&
106   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
107   # Find who we are.  Look in the path if we contain no path at all
108   # relative or not.
109   case $0 in
110     *[\\/]* ) as_myself=$0 ;;
111     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
112 for as_dir in $PATH
113 do
114   IFS=$as_save_IFS
115   test -z "$as_dir" && as_dir=.
116   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
117 done
118
119        ;;
120   esac
121   # We did not find ourselves, most probably we were run as `sh COMMAND'
122   # in which case we are not to be found in the path.
123   if test "x$as_myself" = x; then
124     as_myself=$0
125   fi
126   if test ! -f "$as_myself"; then
127     { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
128    { (exit 1); exit 1; }; }
129   fi
130   case $CONFIG_SHELL in
131   '')
132     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
133 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
134 do
135   IFS=$as_save_IFS
136   test -z "$as_dir" && as_dir=.
137   for as_base in sh bash ksh sh5; do
138          case $as_dir in
139          /*)
140            if ("$as_dir/$as_base" -c '
141   as_lineno_1=$LINENO
142   as_lineno_2=$LINENO
143   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
144   test "x$as_lineno_1" != "x$as_lineno_2" &&
145   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
146              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
147              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
148              CONFIG_SHELL=$as_dir/$as_base
149              export CONFIG_SHELL
150              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
151            fi;;
152          esac
153        done
154 done
155 ;;
156   esac
157
158   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
159   # uniformly replaced by the line number.  The first 'sed' inserts a
160   # line-number line before each line; the second 'sed' does the real
161   # work.  The second script uses 'N' to pair each line-number line
162   # with the numbered line, and appends trailing '-' during
163   # substitution so that $LINENO is not a special case at line end.
164   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
165   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
166   sed '=' <$as_myself |
167     sed '
168       N
169       s,$,-,
170       : loop
171       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
172       t loop
173       s,-$,,
174       s,^['$as_cr_digits']*\n,,
175     ' >$as_me.lineno &&
176   chmod +x $as_me.lineno ||
177     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
178    { (exit 1); exit 1; }; }
179
180   # Don't try to exec as it changes $[0], causing all sort of problems
181   # (the dirname of $[0] is not the place where we might find the
182   # original and so on.  Autoconf is especially sensible to this).
183   . ./$as_me.lineno
184   # Exit status is that of the last command.
185   exit
186 }
187
188
189 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
190   *c*,-n*) ECHO_N= ECHO_C='
191 ' ECHO_T='      ' ;;
192   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
193   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
194 esac
195
196 if expr a : '\(a\)' >/dev/null 2>&1; then
197   as_expr=expr
198 else
199   as_expr=false
200 fi
201
202 rm -f conf$$ conf$$.exe conf$$.file
203 echo >conf$$.file
204 if ln -s conf$$.file conf$$ 2>/dev/null; then
205   # We could just check for DJGPP; but this test a) works b) is more generic
206   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
207   if test -f conf$$.exe; then
208     # Don't use ln at all; we don't have any links
209     as_ln_s='cp -p'
210   else
211     as_ln_s='ln -s'
212   fi
213 elif ln conf$$.file conf$$ 2>/dev/null; then
214   as_ln_s=ln
215 else
216   as_ln_s='cp -p'
217 fi
218 rm -f conf$$ conf$$.exe conf$$.file
219
220 if mkdir -p . 2>/dev/null; then
221   as_mkdir_p=:
222 else
223   test -d ./-p && rmdir ./-p
224   as_mkdir_p=false
225 fi
226
227 as_executable_p="test -f"
228
229 # Sed expression to map a string onto a valid CPP name.
230 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
231
232 # Sed expression to map a string onto a valid variable name.
233 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
234
235
236 # IFS
237 # We need space, tab and new line, in precisely that order.
238 as_nl='
239 '
240 IFS="   $as_nl"
241
242 # CDPATH.
243 $as_unset CDPATH
244
245
246 # Name of the host.
247 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
248 # so uname gets run too.
249 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
250
251 exec 6>&1
252
253 #
254 # Initializations.
255 #
256 ac_default_prefix=/usr/local
257 ac_config_libobj_dir=.
258 cross_compiling=no
259 subdirs=
260 MFLAGS=
261 MAKEFLAGS=
262 SHELL=${CONFIG_SHELL-/bin/sh}
263
264 # Maximum number of lines to put in a shell here document.
265 # This variable seems obsolete.  It should probably be removed, and
266 # only ac_max_sed_lines should be used.
267 : ${ac_max_here_lines=38}
268
269 # Identity of this package.
270 PACKAGE_NAME='Wine'
271 PACKAGE_TARNAME='wine'
272 PACKAGE_VERSION='20031212'
273 PACKAGE_STRING='Wine 20031212'
274 PACKAGE_BUGREPORT='wine-devel@winehq.org'
275
276 ac_unique_file="server/atom.c"
277 # Factoring default headers for most tests.
278 ac_includes_default="\
279 #include <stdio.h>
280 #if HAVE_SYS_TYPES_H
281 # include <sys/types.h>
282 #endif
283 #if HAVE_SYS_STAT_H
284 # include <sys/stat.h>
285 #endif
286 #if STDC_HEADERS
287 # include <stdlib.h>
288 # include <stddef.h>
289 #else
290 # if HAVE_STDLIB_H
291 #  include <stdlib.h>
292 # endif
293 #endif
294 #if HAVE_STRING_H
295 # if !STDC_HEADERS && HAVE_MEMORY_H
296 #  include <memory.h>
297 # endif
298 # include <string.h>
299 #endif
300 #if HAVE_STRINGS_H
301 # include <strings.h>
302 #endif
303 #if HAVE_INTTYPES_H
304 # include <inttypes.h>
305 #else
306 # if HAVE_STDINT_H
307 #  include <stdint.h>
308 # endif
309 #endif
310 #if HAVE_UNISTD_H
311 # include <unistd.h>
312 #endif"
313
314 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS WIN16_FILES WIN16_INSTALL build build_cpu build_vendor build_os host host_cpu host_vendor host_os SET_MAKE CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CPP TOOLSDIR X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS YACC LEX LEXLIB LEX_OUTPUT_ROOT XYACC XLEX AS ac_ct_AS LD ac_ct_LD AR ac_ct_AR RANLIB ac_ct_RANLIB STRIP ac_ct_STRIP WINDRES ac_ct_WINDRES LN_S LN LDCONFIG INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA LINT LINTFLAGS DB2HTML DB2PDF DB2PS DB2TXT LIBPTHREAD JPEGLIB EGREP GIFLIB XLIB XFILES OPENGLFILES GLU32FILES OPENGL_LIBS GLUT_LIBS GLUT32FILES NASLIBS CURSESLIBS sane_devel SANELIBS SANEINCL ICULIBS ft_devel ft_devel2 FREETYPEINCL ARTSCCONFIG ARTSLIBS ARTSINCL ALSALIBS AUDIOIOLIBS CAPI4LINUXLIBS EXTRACFLAGS DLLEXT DLLFLAGS DLLIBS LDSHARED LDDLL LIBEXT IMPLIBEXT DLLTOOL ac_ct_DLLTOOL DLLWRAP ac_ct_DLLWRAP LDEXECFLAGS CROSSTEST CROSSCC CROSSWINDRES LDPATH CRTLIBS WINE_BINARIES MAIN_BINARY LDD ALLOCA LIBOBJS LTLIBOBJS'
315 ac_subst_files='MAKE_RULES MAKE_DLL_RULES MAKE_TEST_RULES MAKE_LIB_RULES MAKE_PROG_RULES'
316
317 # Initialize some variables set by options.
318 ac_init_help=
319 ac_init_version=false
320 # The variables have the same names as the options, with
321 # dashes changed to underlines.
322 cache_file=/dev/null
323 exec_prefix=NONE
324 no_create=
325 no_recursion=
326 prefix=NONE
327 program_prefix=NONE
328 program_suffix=NONE
329 program_transform_name=s,x,x,
330 silent=
331 site=
332 srcdir=
333 verbose=
334 x_includes=NONE
335 x_libraries=NONE
336
337 # Installation directory options.
338 # These are left unexpanded so users can "make install exec_prefix=/foo"
339 # and all the variables that are supposed to be based on exec_prefix
340 # by default will actually change.
341 # Use braces instead of parens because sh, perl, etc. also accept them.
342 bindir='${exec_prefix}/bin'
343 sbindir='${exec_prefix}/sbin'
344 libexecdir='${exec_prefix}/libexec'
345 datadir='${prefix}/share'
346 sysconfdir='${prefix}/etc'
347 sharedstatedir='${prefix}/com'
348 localstatedir='${prefix}/var'
349 libdir='${exec_prefix}/lib'
350 includedir='${prefix}/include'
351 oldincludedir='/usr/include'
352 infodir='${prefix}/info'
353 mandir='${prefix}/man'
354
355 ac_prev=
356 for ac_option
357 do
358   # If the previous option needs an argument, assign it.
359   if test -n "$ac_prev"; then
360     eval "$ac_prev=\$ac_option"
361     ac_prev=
362     continue
363   fi
364
365   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
366
367   # Accept the important Cygnus configure options, so we can diagnose typos.
368
369   case $ac_option in
370
371   -bindir | --bindir | --bindi | --bind | --bin | --bi)
372     ac_prev=bindir ;;
373   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
374     bindir=$ac_optarg ;;
375
376   -build | --build | --buil | --bui | --bu)
377     ac_prev=build_alias ;;
378   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
379     build_alias=$ac_optarg ;;
380
381   -cache-file | --cache-file | --cache-fil | --cache-fi \
382   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
383     ac_prev=cache_file ;;
384   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
385   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
386     cache_file=$ac_optarg ;;
387
388   --config-cache | -C)
389     cache_file=config.cache ;;
390
391   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
392     ac_prev=datadir ;;
393   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
394   | --da=*)
395     datadir=$ac_optarg ;;
396
397   -disable-* | --disable-*)
398     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
399     # Reject names that are not valid shell variable names.
400     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
401       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
402    { (exit 1); exit 1; }; }
403     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
404     eval "enable_$ac_feature=no" ;;
405
406   -enable-* | --enable-*)
407     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
408     # Reject names that are not valid shell variable names.
409     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
410       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
411    { (exit 1); exit 1; }; }
412     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
413     case $ac_option in
414       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
415       *) ac_optarg=yes ;;
416     esac
417     eval "enable_$ac_feature='$ac_optarg'" ;;
418
419   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
420   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
421   | --exec | --exe | --ex)
422     ac_prev=exec_prefix ;;
423   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
424   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
425   | --exec=* | --exe=* | --ex=*)
426     exec_prefix=$ac_optarg ;;
427
428   -gas | --gas | --ga | --g)
429     # Obsolete; use --with-gas.
430     with_gas=yes ;;
431
432   -help | --help | --hel | --he | -h)
433     ac_init_help=long ;;
434   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
435     ac_init_help=recursive ;;
436   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
437     ac_init_help=short ;;
438
439   -host | --host | --hos | --ho)
440     ac_prev=host_alias ;;
441   -host=* | --host=* | --hos=* | --ho=*)
442     host_alias=$ac_optarg ;;
443
444   -includedir | --includedir | --includedi | --included | --include \
445   | --includ | --inclu | --incl | --inc)
446     ac_prev=includedir ;;
447   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
448   | --includ=* | --inclu=* | --incl=* | --inc=*)
449     includedir=$ac_optarg ;;
450
451   -infodir | --infodir | --infodi | --infod | --info | --inf)
452     ac_prev=infodir ;;
453   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
454     infodir=$ac_optarg ;;
455
456   -libdir | --libdir | --libdi | --libd)
457     ac_prev=libdir ;;
458   -libdir=* | --libdir=* | --libdi=* | --libd=*)
459     libdir=$ac_optarg ;;
460
461   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
462   | --libexe | --libex | --libe)
463     ac_prev=libexecdir ;;
464   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
465   | --libexe=* | --libex=* | --libe=*)
466     libexecdir=$ac_optarg ;;
467
468   -localstatedir | --localstatedir | --localstatedi | --localstated \
469   | --localstate | --localstat | --localsta | --localst \
470   | --locals | --local | --loca | --loc | --lo)
471     ac_prev=localstatedir ;;
472   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
473   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
474   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
475     localstatedir=$ac_optarg ;;
476
477   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
478     ac_prev=mandir ;;
479   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
480     mandir=$ac_optarg ;;
481
482   -nfp | --nfp | --nf)
483     # Obsolete; use --without-fp.
484     with_fp=no ;;
485
486   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
487   | --no-cr | --no-c | -n)
488     no_create=yes ;;
489
490   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
491   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
492     no_recursion=yes ;;
493
494   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
495   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
496   | --oldin | --oldi | --old | --ol | --o)
497     ac_prev=oldincludedir ;;
498   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
499   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
500   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
501     oldincludedir=$ac_optarg ;;
502
503   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
504     ac_prev=prefix ;;
505   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
506     prefix=$ac_optarg ;;
507
508   -program-prefix | --program-prefix | --program-prefi | --program-pref \
509   | --program-pre | --program-pr | --program-p)
510     ac_prev=program_prefix ;;
511   -program-prefix=* | --program-prefix=* | --program-prefi=* \
512   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
513     program_prefix=$ac_optarg ;;
514
515   -program-suffix | --program-suffix | --program-suffi | --program-suff \
516   | --program-suf | --program-su | --program-s)
517     ac_prev=program_suffix ;;
518   -program-suffix=* | --program-suffix=* | --program-suffi=* \
519   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
520     program_suffix=$ac_optarg ;;
521
522   -program-transform-name | --program-transform-name \
523   | --program-transform-nam | --program-transform-na \
524   | --program-transform-n | --program-transform- \
525   | --program-transform | --program-transfor \
526   | --program-transfo | --program-transf \
527   | --program-trans | --program-tran \
528   | --progr-tra | --program-tr | --program-t)
529     ac_prev=program_transform_name ;;
530   -program-transform-name=* | --program-transform-name=* \
531   | --program-transform-nam=* | --program-transform-na=* \
532   | --program-transform-n=* | --program-transform-=* \
533   | --program-transform=* | --program-transfor=* \
534   | --program-transfo=* | --program-transf=* \
535   | --program-trans=* | --program-tran=* \
536   | --progr-tra=* | --program-tr=* | --program-t=*)
537     program_transform_name=$ac_optarg ;;
538
539   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
540   | -silent | --silent | --silen | --sile | --sil)
541     silent=yes ;;
542
543   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
544     ac_prev=sbindir ;;
545   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
546   | --sbi=* | --sb=*)
547     sbindir=$ac_optarg ;;
548
549   -sharedstatedir | --sharedstatedir | --sharedstatedi \
550   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
551   | --sharedst | --shareds | --shared | --share | --shar \
552   | --sha | --sh)
553     ac_prev=sharedstatedir ;;
554   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
555   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
556   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
557   | --sha=* | --sh=*)
558     sharedstatedir=$ac_optarg ;;
559
560   -site | --site | --sit)
561     ac_prev=site ;;
562   -site=* | --site=* | --sit=*)
563     site=$ac_optarg ;;
564
565   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
566     ac_prev=srcdir ;;
567   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
568     srcdir=$ac_optarg ;;
569
570   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
571   | --syscon | --sysco | --sysc | --sys | --sy)
572     ac_prev=sysconfdir ;;
573   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
574   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
575     sysconfdir=$ac_optarg ;;
576
577   -target | --target | --targe | --targ | --tar | --ta | --t)
578     ac_prev=target_alias ;;
579   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
580     target_alias=$ac_optarg ;;
581
582   -v | -verbose | --verbose | --verbos | --verbo | --verb)
583     verbose=yes ;;
584
585   -version | --version | --versio | --versi | --vers | -V)
586     ac_init_version=: ;;
587
588   -with-* | --with-*)
589     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
590     # Reject names that are not valid shell variable names.
591     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
592       { echo "$as_me: error: invalid package name: $ac_package" >&2
593    { (exit 1); exit 1; }; }
594     ac_package=`echo $ac_package| sed 's/-/_/g'`
595     case $ac_option in
596       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
597       *) ac_optarg=yes ;;
598     esac
599     eval "with_$ac_package='$ac_optarg'" ;;
600
601   -without-* | --without-*)
602     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
603     # Reject names that are not valid shell variable names.
604     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
605       { echo "$as_me: error: invalid package name: $ac_package" >&2
606    { (exit 1); exit 1; }; }
607     ac_package=`echo $ac_package | sed 's/-/_/g'`
608     eval "with_$ac_package=no" ;;
609
610   --x)
611     # Obsolete; use --with-x.
612     with_x=yes ;;
613
614   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
615   | --x-incl | --x-inc | --x-in | --x-i)
616     ac_prev=x_includes ;;
617   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
618   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
619     x_includes=$ac_optarg ;;
620
621   -x-libraries | --x-libraries | --x-librarie | --x-librari \
622   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
623     ac_prev=x_libraries ;;
624   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
625   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
626     x_libraries=$ac_optarg ;;
627
628   -*) { echo "$as_me: error: unrecognized option: $ac_option
629 Try \`$0 --help' for more information." >&2
630    { (exit 1); exit 1; }; }
631     ;;
632
633   *=*)
634     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
635     # Reject names that are not valid shell variable names.
636     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
637       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
638    { (exit 1); exit 1; }; }
639     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
640     eval "$ac_envvar='$ac_optarg'"
641     export $ac_envvar ;;
642
643   *)
644     # FIXME: should be removed in autoconf 3.0.
645     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
646     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
647       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
648     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
649     ;;
650
651   esac
652 done
653
654 if test -n "$ac_prev"; then
655   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
656   { echo "$as_me: error: missing argument to $ac_option" >&2
657    { (exit 1); exit 1; }; }
658 fi
659
660 # Be sure to have absolute paths.
661 for ac_var in exec_prefix prefix
662 do
663   eval ac_val=$`echo $ac_var`
664   case $ac_val in
665     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
666     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
667    { (exit 1); exit 1; }; };;
668   esac
669 done
670
671 # Be sure to have absolute paths.
672 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
673               localstatedir libdir includedir oldincludedir infodir mandir
674 do
675   eval ac_val=$`echo $ac_var`
676   case $ac_val in
677     [\\/$]* | ?:[\\/]* ) ;;
678     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
679    { (exit 1); exit 1; }; };;
680   esac
681 done
682
683 # There might be people who depend on the old broken behavior: `$host'
684 # used to hold the argument of --host etc.
685 # FIXME: To remove some day.
686 build=$build_alias
687 host=$host_alias
688 target=$target_alias
689
690 # FIXME: To remove some day.
691 if test "x$host_alias" != x; then
692   if test "x$build_alias" = x; then
693     cross_compiling=maybe
694     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
695     If a cross compiler is detected then cross compile mode will be used." >&2
696   elif test "x$build_alias" != "x$host_alias"; then
697     cross_compiling=yes
698   fi
699 fi
700
701 ac_tool_prefix=
702 test -n "$host_alias" && ac_tool_prefix=$host_alias-
703
704 test "$silent" = yes && exec 6>/dev/null
705
706
707 # Find the source files, if location was not specified.
708 if test -z "$srcdir"; then
709   ac_srcdir_defaulted=yes
710   # Try the directory containing this script, then its parent.
711   ac_confdir=`(dirname "$0") 2>/dev/null ||
712 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
713          X"$0" : 'X\(//\)[^/]' \| \
714          X"$0" : 'X\(//\)$' \| \
715          X"$0" : 'X\(/\)' \| \
716          .     : '\(.\)' 2>/dev/null ||
717 echo X"$0" |
718     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
719           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
720           /^X\(\/\/\)$/{ s//\1/; q; }
721           /^X\(\/\).*/{ s//\1/; q; }
722           s/.*/./; q'`
723   srcdir=$ac_confdir
724   if test ! -r $srcdir/$ac_unique_file; then
725     srcdir=..
726   fi
727 else
728   ac_srcdir_defaulted=no
729 fi
730 if test ! -r $srcdir/$ac_unique_file; then
731   if test "$ac_srcdir_defaulted" = yes; then
732     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
733    { (exit 1); exit 1; }; }
734   else
735     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
736    { (exit 1); exit 1; }; }
737   fi
738 fi
739 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
740   { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
741    { (exit 1); exit 1; }; }
742 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
743 ac_env_build_alias_set=${build_alias+set}
744 ac_env_build_alias_value=$build_alias
745 ac_cv_env_build_alias_set=${build_alias+set}
746 ac_cv_env_build_alias_value=$build_alias
747 ac_env_host_alias_set=${host_alias+set}
748 ac_env_host_alias_value=$host_alias
749 ac_cv_env_host_alias_set=${host_alias+set}
750 ac_cv_env_host_alias_value=$host_alias
751 ac_env_target_alias_set=${target_alias+set}
752 ac_env_target_alias_value=$target_alias
753 ac_cv_env_target_alias_set=${target_alias+set}
754 ac_cv_env_target_alias_value=$target_alias
755 ac_env_CC_set=${CC+set}
756 ac_env_CC_value=$CC
757 ac_cv_env_CC_set=${CC+set}
758 ac_cv_env_CC_value=$CC
759 ac_env_CFLAGS_set=${CFLAGS+set}
760 ac_env_CFLAGS_value=$CFLAGS
761 ac_cv_env_CFLAGS_set=${CFLAGS+set}
762 ac_cv_env_CFLAGS_value=$CFLAGS
763 ac_env_LDFLAGS_set=${LDFLAGS+set}
764 ac_env_LDFLAGS_value=$LDFLAGS
765 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
766 ac_cv_env_LDFLAGS_value=$LDFLAGS
767 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
768 ac_env_CPPFLAGS_value=$CPPFLAGS
769 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
770 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
771 ac_env_CPP_set=${CPP+set}
772 ac_env_CPP_value=$CPP
773 ac_cv_env_CPP_set=${CPP+set}
774 ac_cv_env_CPP_value=$CPP
775
776 #
777 # Report the --help message.
778 #
779 if test "$ac_init_help" = "long"; then
780   # Omit some internal or obsolete options to make the list less imposing.
781   # This message is too long to be a string in the A/UX 3.1 sh.
782   cat <<_ACEOF
783 \`configure' configures Wine 20031212 to adapt to many kinds of systems.
784
785 Usage: $0 [OPTION]... [VAR=VALUE]...
786
787 To assign environment variables (e.g., CC, CFLAGS...), specify them as
788 VAR=VALUE.  See below for descriptions of some of the useful variables.
789
790 Defaults for the options are specified in brackets.
791
792 Configuration:
793   -h, --help              display this help and exit
794       --help=short        display options specific to this package
795       --help=recursive    display the short help of all the included packages
796   -V, --version           display version information and exit
797   -q, --quiet, --silent   do not print \`checking...' messages
798       --cache-file=FILE   cache test results in FILE [disabled]
799   -C, --config-cache      alias for \`--cache-file=config.cache'
800   -n, --no-create         do not create output files
801       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
802
803 _ACEOF
804
805   cat <<_ACEOF
806 Installation directories:
807   --prefix=PREFIX         install architecture-independent files in PREFIX
808                           [$ac_default_prefix]
809   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
810                           [PREFIX]
811
812 By default, \`make install' will install all the files in
813 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
814 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
815 for instance \`--prefix=\$HOME'.
816
817 For better control, use the options below.
818
819 Fine tuning of the installation directories:
820   --bindir=DIR           user executables [EPREFIX/bin]
821   --sbindir=DIR          system admin executables [EPREFIX/sbin]
822   --libexecdir=DIR       program executables [EPREFIX/libexec]
823   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
824   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
825   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
826   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
827   --libdir=DIR           object code libraries [EPREFIX/lib]
828   --includedir=DIR       C header files [PREFIX/include]
829   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
830   --infodir=DIR          info documentation [PREFIX/info]
831   --mandir=DIR           man documentation [PREFIX/man]
832 _ACEOF
833
834   cat <<\_ACEOF
835
836 X features:
837   --x-includes=DIR    X include files are in DIR
838   --x-libraries=DIR   X library files are in DIR
839
840 System types:
841   --build=BUILD     configure for building on BUILD [guessed]
842   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
843 _ACEOF
844 fi
845
846 if test -n "$ac_init_help"; then
847   case $ac_init_help in
848      short | recursive ) echo "Configuration of Wine 20031212:";;
849    esac
850   cat <<\_ACEOF
851
852 Optional Features:
853   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
854   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
855   --disable-win16
856                           do not include Win16 support
857   --disable-debug
858                           compile out all debugging messages
859   --disable-trace
860                           compile out TRACE messages
861
862 Optional Packages:
863   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
864   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
865   --without-opengl
866                           do not use OpenGL
867   --without-curses
868                           do not use curses
869   --with-wine-tools=<dir>
870                           use Wine tools from directory <dir>
871   --with-x                use the X Window System
872
873 Some influential environment variables:
874   CC
875               C compiler command
876   CFLAGS
877               C compiler flags
878   LDFLAGS
879               linker flags, e.g. -L<lib dir> if you have
880               libraries in a nonstandard directory <lib dir>
881   CPPFLAGS
882               C/C++ preprocessor flags, e.g. -I<include dir> if you
883               have headers in a nonstandard directory <include dir>
884   CPP
885               C preprocessor
886
887 Use these variables to override the choices made by `configure' or to help
888 it to find libraries and programs with nonstandard names/locations.
889
890 Report bugs to <wine-devel@winehq.org>.
891 _ACEOF
892 fi
893
894 if test "$ac_init_help" = "recursive"; then
895   # If there are subdirs, report their specific --help.
896   ac_popdir=`pwd`
897   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
898     test -d $ac_dir || continue
899     ac_builddir=.
900
901 if test "$ac_dir" != .; then
902   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
903   # A "../" for each directory in $ac_dir_suffix.
904   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
905 else
906   ac_dir_suffix= ac_top_builddir=
907 fi
908
909 case $srcdir in
910   .)  # No --srcdir option.  We are building in place.
911     ac_srcdir=.
912     if test -z "$ac_top_builddir"; then
913        ac_top_srcdir=.
914     else
915        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
916     fi ;;
917   [\\/]* | ?:[\\/]* )  # Absolute path.
918     ac_srcdir=$srcdir$ac_dir_suffix;
919     ac_top_srcdir=$srcdir ;;
920   *) # Relative path.
921     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
922     ac_top_srcdir=$ac_top_builddir$srcdir ;;
923 esac
924
925 # Do not use `cd foo && pwd` to compute absolute paths, because
926 # the directories may not exist.
927 case `pwd` in
928 .) ac_abs_builddir="$ac_dir";;
929 *)
930   case "$ac_dir" in
931   .) ac_abs_builddir=`pwd`;;
932   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
933   *) ac_abs_builddir=`pwd`/"$ac_dir";;
934   esac;;
935 esac
936 case $ac_abs_builddir in
937 .) ac_abs_top_builddir=${ac_top_builddir}.;;
938 *)
939   case ${ac_top_builddir}. in
940   .) ac_abs_top_builddir=$ac_abs_builddir;;
941   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
942   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
943   esac;;
944 esac
945 case $ac_abs_builddir in
946 .) ac_abs_srcdir=$ac_srcdir;;
947 *)
948   case $ac_srcdir in
949   .) ac_abs_srcdir=$ac_abs_builddir;;
950   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
951   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
952   esac;;
953 esac
954 case $ac_abs_builddir in
955 .) ac_abs_top_srcdir=$ac_top_srcdir;;
956 *)
957   case $ac_top_srcdir in
958   .) ac_abs_top_srcdir=$ac_abs_builddir;;
959   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
960   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
961   esac;;
962 esac
963
964     cd $ac_dir
965     # Check for guested configure; otherwise get Cygnus style configure.
966     if test -f $ac_srcdir/configure.gnu; then
967       echo
968       $SHELL $ac_srcdir/configure.gnu  --help=recursive
969     elif test -f $ac_srcdir/configure; then
970       echo
971       $SHELL $ac_srcdir/configure  --help=recursive
972     elif test -f $ac_srcdir/configure.ac ||
973            test -f $ac_srcdir/configure.in; then
974       echo
975       $ac_configure --help
976     else
977       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
978     fi
979     cd "$ac_popdir"
980   done
981 fi
982
983 test -n "$ac_init_help" && exit 0
984 if $ac_init_version; then
985   cat <<\_ACEOF
986 Wine configure 20031212
987 generated by GNU Autoconf 2.58
988
989 Copyright (C) 2003 Free Software Foundation, Inc.
990 This configure script is free software; the Free Software Foundation
991 gives unlimited permission to copy, distribute and modify it.
992 _ACEOF
993   exit 0
994 fi
995 exec 5>config.log
996 cat >&5 <<_ACEOF
997 This file contains any messages produced by compilers while
998 running configure, to aid debugging if configure makes a mistake.
999
1000 It was created by Wine $as_me 20031212, which was
1001 generated by GNU Autoconf 2.58.  Invocation command line was
1002
1003   $ $0 $@
1004
1005 _ACEOF
1006 {
1007 cat <<_ASUNAME
1008 ## --------- ##
1009 ## Platform. ##
1010 ## --------- ##
1011
1012 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1013 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1014 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1015 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1016 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1017
1018 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1019 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1020
1021 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1022 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1023 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1024 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1025 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1026 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1027 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1028
1029 _ASUNAME
1030
1031 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1032 for as_dir in $PATH
1033 do
1034   IFS=$as_save_IFS
1035   test -z "$as_dir" && as_dir=.
1036   echo "PATH: $as_dir"
1037 done
1038
1039 } >&5
1040
1041 cat >&5 <<_ACEOF
1042
1043
1044 ## ----------- ##
1045 ## Core tests. ##
1046 ## ----------- ##
1047
1048 _ACEOF
1049
1050
1051 # Keep a trace of the command line.
1052 # Strip out --no-create and --no-recursion so they do not pile up.
1053 # Strip out --silent because we don't want to record it for future runs.
1054 # Also quote any args containing shell meta-characters.
1055 # Make two passes to allow for proper duplicate-argument suppression.
1056 ac_configure_args=
1057 ac_configure_args0=
1058 ac_configure_args1=
1059 ac_sep=
1060 ac_must_keep_next=false
1061 for ac_pass in 1 2
1062 do
1063   for ac_arg
1064   do
1065     case $ac_arg in
1066     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1067     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1068     | -silent | --silent | --silen | --sile | --sil)
1069       continue ;;
1070     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1071       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1072     esac
1073     case $ac_pass in
1074     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1075     2)
1076       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1077       if test $ac_must_keep_next = true; then
1078         ac_must_keep_next=false # Got value, back to normal.
1079       else
1080         case $ac_arg in
1081           *=* | --config-cache | -C | -disable-* | --disable-* \
1082           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1083           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1084           | -with-* | --with-* | -without-* | --without-* | --x)
1085             case "$ac_configure_args0 " in
1086               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1087             esac
1088             ;;
1089           -* ) ac_must_keep_next=true ;;
1090         esac
1091       fi
1092       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1093       # Get rid of the leading space.
1094       ac_sep=" "
1095       ;;
1096     esac
1097   done
1098 done
1099 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1100 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1101
1102 # When interrupted or exit'd, cleanup temporary files, and complete
1103 # config.log.  We remove comments because anyway the quotes in there
1104 # would cause problems or look ugly.
1105 # WARNING: Be sure not to use single quotes in there, as some shells,
1106 # such as our DU 5.0 friend, will then `close' the trap.
1107 trap 'exit_status=$?
1108   # Save into config.log some information that might help in debugging.
1109   {
1110     echo
1111
1112     cat <<\_ASBOX
1113 ## ---------------- ##
1114 ## Cache variables. ##
1115 ## ---------------- ##
1116 _ASBOX
1117     echo
1118     # The following way of writing the cache mishandles newlines in values,
1119 {
1120   (set) 2>&1 |
1121     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1122     *ac_space=\ *)
1123       sed -n \
1124         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1125           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1126       ;;
1127     *)
1128       sed -n \
1129         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1130       ;;
1131     esac;
1132 }
1133     echo
1134
1135     cat <<\_ASBOX
1136 ## ----------------- ##
1137 ## Output variables. ##
1138 ## ----------------- ##
1139 _ASBOX
1140     echo
1141     for ac_var in $ac_subst_vars
1142     do
1143       eval ac_val=$`echo $ac_var`
1144       echo "$ac_var='"'"'$ac_val'"'"'"
1145     done | sort
1146     echo
1147
1148     if test -n "$ac_subst_files"; then
1149       cat <<\_ASBOX
1150 ## ------------- ##
1151 ## Output files. ##
1152 ## ------------- ##
1153 _ASBOX
1154       echo
1155       for ac_var in $ac_subst_files
1156       do
1157         eval ac_val=$`echo $ac_var`
1158         echo "$ac_var='"'"'$ac_val'"'"'"
1159       done | sort
1160       echo
1161     fi
1162
1163     if test -s confdefs.h; then
1164       cat <<\_ASBOX
1165 ## ----------- ##
1166 ## confdefs.h. ##
1167 ## ----------- ##
1168 _ASBOX
1169       echo
1170       sed "/^$/d" confdefs.h | sort
1171       echo
1172     fi
1173     test "$ac_signal" != 0 &&
1174       echo "$as_me: caught signal $ac_signal"
1175     echo "$as_me: exit $exit_status"
1176   } >&5
1177   rm -f core *.core &&
1178   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1179     exit $exit_status
1180      ' 0
1181 for ac_signal in 1 2 13 15; do
1182   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1183 done
1184 ac_signal=0
1185
1186 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1187 rm -rf conftest* confdefs.h
1188 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1189 echo >confdefs.h
1190
1191 # Predefined preprocessor variables.
1192
1193 cat >>confdefs.h <<_ACEOF
1194 #define PACKAGE_NAME "$PACKAGE_NAME"
1195 _ACEOF
1196
1197
1198 cat >>confdefs.h <<_ACEOF
1199 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1200 _ACEOF
1201
1202
1203 cat >>confdefs.h <<_ACEOF
1204 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1205 _ACEOF
1206
1207
1208 cat >>confdefs.h <<_ACEOF
1209 #define PACKAGE_STRING "$PACKAGE_STRING"
1210 _ACEOF
1211
1212
1213 cat >>confdefs.h <<_ACEOF
1214 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1215 _ACEOF
1216
1217
1218 # Let the site file select an alternate cache file if it wants to.
1219 # Prefer explicitly selected file to automatically selected ones.
1220 if test -z "$CONFIG_SITE"; then
1221   if test "x$prefix" != xNONE; then
1222     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1223   else
1224     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1225   fi
1226 fi
1227 for ac_site_file in $CONFIG_SITE; do
1228   if test -r "$ac_site_file"; then
1229     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1230 echo "$as_me: loading site script $ac_site_file" >&6;}
1231     sed 's/^/| /' "$ac_site_file" >&5
1232     . "$ac_site_file"
1233   fi
1234 done
1235
1236 if test -r "$cache_file"; then
1237   # Some versions of bash will fail to source /dev/null (special
1238   # files actually), so we avoid doing that.
1239   if test -f "$cache_file"; then
1240     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1241 echo "$as_me: loading cache $cache_file" >&6;}
1242     case $cache_file in
1243       [\\/]* | ?:[\\/]* ) . $cache_file;;
1244       *)                      . ./$cache_file;;
1245     esac
1246   fi
1247 else
1248   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1249 echo "$as_me: creating cache $cache_file" >&6;}
1250   >$cache_file
1251 fi
1252
1253 # Check that the precious variables saved in the cache have kept the same
1254 # value.
1255 ac_cache_corrupted=false
1256 for ac_var in `(set) 2>&1 |
1257                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1258   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1259   eval ac_new_set=\$ac_env_${ac_var}_set
1260   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1261   eval ac_new_val="\$ac_env_${ac_var}_value"
1262   case $ac_old_set,$ac_new_set in
1263     set,)
1264       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1265 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1266       ac_cache_corrupted=: ;;
1267     ,set)
1268       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1269 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1270       ac_cache_corrupted=: ;;
1271     ,);;
1272     *)
1273       if test "x$ac_old_val" != "x$ac_new_val"; then
1274         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1275 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1276         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1277 echo "$as_me:   former value:  $ac_old_val" >&2;}
1278         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1279 echo "$as_me:   current value: $ac_new_val" >&2;}
1280         ac_cache_corrupted=:
1281       fi;;
1282   esac
1283   # Pass precious variables to config.status.
1284   if test "$ac_new_set" = set; then
1285     case $ac_new_val in
1286     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1287       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1288     *) ac_arg=$ac_var=$ac_new_val ;;
1289     esac
1290     case " $ac_configure_args " in
1291       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1292       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1293     esac
1294   fi
1295 done
1296 if $ac_cache_corrupted; then
1297   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1298 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1299   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1300 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1301    { (exit 1); exit 1; }; }
1302 fi
1303
1304 ac_ext=c
1305 ac_cpp='$CPP $CPPFLAGS'
1306 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1307 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1308 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337           ac_config_headers="$ac_config_headers include/config.h"
1338
1339 ac_aux_dir=
1340 for ac_dir in tools $srcdir/tools; do
1341   if test -f $ac_dir/install-sh; then
1342     ac_aux_dir=$ac_dir
1343     ac_install_sh="$ac_aux_dir/install-sh -c"
1344     break
1345   elif test -f $ac_dir/install.sh; then
1346     ac_aux_dir=$ac_dir
1347     ac_install_sh="$ac_aux_dir/install.sh -c"
1348     break
1349   elif test -f $ac_dir/shtool; then
1350     ac_aux_dir=$ac_dir
1351     ac_install_sh="$ac_aux_dir/shtool install -c"
1352     break
1353   fi
1354 done
1355 if test -z "$ac_aux_dir"; then
1356   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in tools $srcdir/tools" >&5
1357 echo "$as_me: error: cannot find install-sh or install.sh in tools $srcdir/tools" >&2;}
1358    { (exit 1); exit 1; }; }
1359 fi
1360 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1361 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1362 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1363
1364
1365
1366 # Check whether --enable-win16 or --disable-win16 was given.
1367 if test "${enable_win16+set}" = set; then
1368   enableval="$enable_win16"
1369
1370 fi;
1371 # Check whether --enable-debug or --disable-debug was given.
1372 if test "${enable_debug+set}" = set; then
1373   enableval="$enable_debug"
1374
1375 fi;
1376 # Check whether --enable-trace or --disable-trace was given.
1377 if test "${enable_trace+set}" = set; then
1378   enableval="$enable_trace"
1379
1380 fi;
1381
1382
1383 # Check whether --with-opengl or --without-opengl was given.
1384 if test "${with_opengl+set}" = set; then
1385   withval="$with_opengl"
1386
1387 fi;
1388
1389 # Check whether --with-curses or --without-curses was given.
1390 if test "${with_curses+set}" = set; then
1391   withval="$with_curses"
1392
1393 fi;
1394
1395 # Check whether --with-wine-tools or --without-wine-tools was given.
1396 if test "${with_wine_tools+set}" = set; then
1397   withval="$with_wine_tools"
1398
1399 fi;
1400
1401 WIN16_FILES="\$(WIN16_FILES)"
1402
1403 WIN16_INSTALL="\$(WIN16_INSTALL)"
1404
1405 if test "x$enable_win16" = "xno"
1406 then
1407   WIN16_FILES=""
1408   WIN16_INSTALL=""
1409 fi
1410 if test "x$enable_debug" = "xno"
1411 then
1412
1413 cat >>confdefs.h <<\_ACEOF
1414 #define NO_DEBUG_MSGS 1
1415 _ACEOF
1416
1417 fi
1418 if test "x$enable_trace" = "xno" -o "x$enable_debug" = "xno"
1419 then
1420
1421 cat >>confdefs.h <<\_ACEOF
1422 #define NO_TRACE_MSGS 1
1423 _ACEOF
1424
1425 fi
1426
1427
1428 # Make sure we can run config.sub.
1429 $ac_config_sub sun4 >/dev/null 2>&1 ||
1430   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1431 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1432    { (exit 1); exit 1; }; }
1433
1434 echo "$as_me:$LINENO: checking build system type" >&5
1435 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1436 if test "${ac_cv_build+set}" = set; then
1437   echo $ECHO_N "(cached) $ECHO_C" >&6
1438 else
1439   ac_cv_build_alias=$build_alias
1440 test -z "$ac_cv_build_alias" &&
1441   ac_cv_build_alias=`$ac_config_guess`
1442 test -z "$ac_cv_build_alias" &&
1443   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1444 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1445    { (exit 1); exit 1; }; }
1446 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1447   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1448 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1449    { (exit 1); exit 1; }; }
1450
1451 fi
1452 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1453 echo "${ECHO_T}$ac_cv_build" >&6
1454 build=$ac_cv_build
1455 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1456 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1457 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1458
1459
1460 echo "$as_me:$LINENO: checking host system type" >&5
1461 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1462 if test "${ac_cv_host+set}" = set; then
1463   echo $ECHO_N "(cached) $ECHO_C" >&6
1464 else
1465   ac_cv_host_alias=$host_alias
1466 test -z "$ac_cv_host_alias" &&
1467   ac_cv_host_alias=$ac_cv_build_alias
1468 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1469   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1470 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1471    { (exit 1); exit 1; }; }
1472
1473 fi
1474 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1475 echo "${ECHO_T}$ac_cv_host" >&6
1476 host=$ac_cv_host
1477 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1478 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1479 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1480
1481
1482 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1483 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1484 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1485 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1486   echo $ECHO_N "(cached) $ECHO_C" >&6
1487 else
1488   cat >conftest.make <<\_ACEOF
1489 all:
1490         @echo 'ac_maketemp="$(MAKE)"'
1491 _ACEOF
1492 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1493 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1494 if test -n "$ac_maketemp"; then
1495   eval ac_cv_prog_make_${ac_make}_set=yes
1496 else
1497   eval ac_cv_prog_make_${ac_make}_set=no
1498 fi
1499 rm -f conftest.make
1500 fi
1501 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1502   echo "$as_me:$LINENO: result: yes" >&5
1503 echo "${ECHO_T}yes" >&6
1504   SET_MAKE=
1505 else
1506   echo "$as_me:$LINENO: result: no" >&5
1507 echo "${ECHO_T}no" >&6
1508   SET_MAKE="MAKE=${MAKE-make}"
1509 fi
1510
1511 ac_ext=c
1512 ac_cpp='$CPP $CPPFLAGS'
1513 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1514 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1515 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1516 if test -n "$ac_tool_prefix"; then
1517   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1518 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1519 echo "$as_me:$LINENO: checking for $ac_word" >&5
1520 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1521 if test "${ac_cv_prog_CC+set}" = set; then
1522   echo $ECHO_N "(cached) $ECHO_C" >&6
1523 else
1524   if test -n "$CC"; then
1525   ac_cv_prog_CC="$CC" # Let the user override the test.
1526 else
1527 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1528 for as_dir in $PATH
1529 do
1530   IFS=$as_save_IFS
1531   test -z "$as_dir" && as_dir=.
1532   for ac_exec_ext in '' $ac_executable_extensions; do
1533   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1534     ac_cv_prog_CC="${ac_tool_prefix}gcc"
1535     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1536     break 2
1537   fi
1538 done
1539 done
1540
1541 fi
1542 fi
1543 CC=$ac_cv_prog_CC
1544 if test -n "$CC"; then
1545   echo "$as_me:$LINENO: result: $CC" >&5
1546 echo "${ECHO_T}$CC" >&6
1547 else
1548   echo "$as_me:$LINENO: result: no" >&5
1549 echo "${ECHO_T}no" >&6
1550 fi
1551
1552 fi
1553 if test -z "$ac_cv_prog_CC"; then
1554   ac_ct_CC=$CC
1555   # Extract the first word of "gcc", so it can be a program name with args.
1556 set dummy gcc; ac_word=$2
1557 echo "$as_me:$LINENO: checking for $ac_word" >&5
1558 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1559 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1560   echo $ECHO_N "(cached) $ECHO_C" >&6
1561 else
1562   if test -n "$ac_ct_CC"; then
1563   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1564 else
1565 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1566 for as_dir in $PATH
1567 do
1568   IFS=$as_save_IFS
1569   test -z "$as_dir" && as_dir=.
1570   for ac_exec_ext in '' $ac_executable_extensions; do
1571   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1572     ac_cv_prog_ac_ct_CC="gcc"
1573     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1574     break 2
1575   fi
1576 done
1577 done
1578
1579 fi
1580 fi
1581 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1582 if test -n "$ac_ct_CC"; then
1583   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1584 echo "${ECHO_T}$ac_ct_CC" >&6
1585 else
1586   echo "$as_me:$LINENO: result: no" >&5
1587 echo "${ECHO_T}no" >&6
1588 fi
1589
1590   CC=$ac_ct_CC
1591 else
1592   CC="$ac_cv_prog_CC"
1593 fi
1594
1595 if test -z "$CC"; then
1596   if test -n "$ac_tool_prefix"; then
1597   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1598 set dummy ${ac_tool_prefix}cc; ac_word=$2
1599 echo "$as_me:$LINENO: checking for $ac_word" >&5
1600 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1601 if test "${ac_cv_prog_CC+set}" = set; then
1602   echo $ECHO_N "(cached) $ECHO_C" >&6
1603 else
1604   if test -n "$CC"; then
1605   ac_cv_prog_CC="$CC" # Let the user override the test.
1606 else
1607 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1608 for as_dir in $PATH
1609 do
1610   IFS=$as_save_IFS
1611   test -z "$as_dir" && as_dir=.
1612   for ac_exec_ext in '' $ac_executable_extensions; do
1613   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1614     ac_cv_prog_CC="${ac_tool_prefix}cc"
1615     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1616     break 2
1617   fi
1618 done
1619 done
1620
1621 fi
1622 fi
1623 CC=$ac_cv_prog_CC
1624 if test -n "$CC"; then
1625   echo "$as_me:$LINENO: result: $CC" >&5
1626 echo "${ECHO_T}$CC" >&6
1627 else
1628   echo "$as_me:$LINENO: result: no" >&5
1629 echo "${ECHO_T}no" >&6
1630 fi
1631
1632 fi
1633 if test -z "$ac_cv_prog_CC"; then
1634   ac_ct_CC=$CC
1635   # Extract the first word of "cc", so it can be a program name with args.
1636 set dummy cc; ac_word=$2
1637 echo "$as_me:$LINENO: checking for $ac_word" >&5
1638 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1639 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1640   echo $ECHO_N "(cached) $ECHO_C" >&6
1641 else
1642   if test -n "$ac_ct_CC"; then
1643   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1644 else
1645 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1646 for as_dir in $PATH
1647 do
1648   IFS=$as_save_IFS
1649   test -z "$as_dir" && as_dir=.
1650   for ac_exec_ext in '' $ac_executable_extensions; do
1651   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1652     ac_cv_prog_ac_ct_CC="cc"
1653     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1654     break 2
1655   fi
1656 done
1657 done
1658
1659 fi
1660 fi
1661 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1662 if test -n "$ac_ct_CC"; then
1663   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1664 echo "${ECHO_T}$ac_ct_CC" >&6
1665 else
1666   echo "$as_me:$LINENO: result: no" >&5
1667 echo "${ECHO_T}no" >&6
1668 fi
1669
1670   CC=$ac_ct_CC
1671 else
1672   CC="$ac_cv_prog_CC"
1673 fi
1674
1675 fi
1676 if test -z "$CC"; then
1677   # Extract the first word of "cc", so it can be a program name with args.
1678 set dummy cc; ac_word=$2
1679 echo "$as_me:$LINENO: checking for $ac_word" >&5
1680 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1681 if test "${ac_cv_prog_CC+set}" = set; then
1682   echo $ECHO_N "(cached) $ECHO_C" >&6
1683 else
1684   if test -n "$CC"; then
1685   ac_cv_prog_CC="$CC" # Let the user override the test.
1686 else
1687   ac_prog_rejected=no
1688 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1689 for as_dir in $PATH
1690 do
1691   IFS=$as_save_IFS
1692   test -z "$as_dir" && as_dir=.
1693   for ac_exec_ext in '' $ac_executable_extensions; do
1694   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1695     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1696        ac_prog_rejected=yes
1697        continue
1698      fi
1699     ac_cv_prog_CC="cc"
1700     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1701     break 2
1702   fi
1703 done
1704 done
1705
1706 if test $ac_prog_rejected = yes; then
1707   # We found a bogon in the path, so make sure we never use it.
1708   set dummy $ac_cv_prog_CC
1709   shift
1710   if test $# != 0; then
1711     # We chose a different compiler from the bogus one.
1712     # However, it has the same basename, so the bogon will be chosen
1713     # first if we set CC to just the basename; use the full file name.
1714     shift
1715     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1716   fi
1717 fi
1718 fi
1719 fi
1720 CC=$ac_cv_prog_CC
1721 if test -n "$CC"; then
1722   echo "$as_me:$LINENO: result: $CC" >&5
1723 echo "${ECHO_T}$CC" >&6
1724 else
1725   echo "$as_me:$LINENO: result: no" >&5
1726 echo "${ECHO_T}no" >&6
1727 fi
1728
1729 fi
1730 if test -z "$CC"; then
1731   if test -n "$ac_tool_prefix"; then
1732   for ac_prog in cl
1733   do
1734     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1735 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1736 echo "$as_me:$LINENO: checking for $ac_word" >&5
1737 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1738 if test "${ac_cv_prog_CC+set}" = set; then
1739   echo $ECHO_N "(cached) $ECHO_C" >&6
1740 else
1741   if test -n "$CC"; then
1742   ac_cv_prog_CC="$CC" # Let the user override the test.
1743 else
1744 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1745 for as_dir in $PATH
1746 do
1747   IFS=$as_save_IFS
1748   test -z "$as_dir" && as_dir=.
1749   for ac_exec_ext in '' $ac_executable_extensions; do
1750   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1751     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1752     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1753     break 2
1754   fi
1755 done
1756 done
1757
1758 fi
1759 fi
1760 CC=$ac_cv_prog_CC
1761 if test -n "$CC"; then
1762   echo "$as_me:$LINENO: result: $CC" >&5
1763 echo "${ECHO_T}$CC" >&6
1764 else
1765   echo "$as_me:$LINENO: result: no" >&5
1766 echo "${ECHO_T}no" >&6
1767 fi
1768
1769     test -n "$CC" && break
1770   done
1771 fi
1772 if test -z "$CC"; then
1773   ac_ct_CC=$CC
1774   for ac_prog in cl
1775 do
1776   # Extract the first word of "$ac_prog", so it can be a program name with args.
1777 set dummy $ac_prog; ac_word=$2
1778 echo "$as_me:$LINENO: checking for $ac_word" >&5
1779 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1780 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1781   echo $ECHO_N "(cached) $ECHO_C" >&6
1782 else
1783   if test -n "$ac_ct_CC"; then
1784   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1785 else
1786 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1787 for as_dir in $PATH
1788 do
1789   IFS=$as_save_IFS
1790   test -z "$as_dir" && as_dir=.
1791   for ac_exec_ext in '' $ac_executable_extensions; do
1792   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1793     ac_cv_prog_ac_ct_CC="$ac_prog"
1794     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1795     break 2
1796   fi
1797 done
1798 done
1799
1800 fi
1801 fi
1802 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1803 if test -n "$ac_ct_CC"; then
1804   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1805 echo "${ECHO_T}$ac_ct_CC" >&6
1806 else
1807   echo "$as_me:$LINENO: result: no" >&5
1808 echo "${ECHO_T}no" >&6
1809 fi
1810
1811   test -n "$ac_ct_CC" && break
1812 done
1813
1814   CC=$ac_ct_CC
1815 fi
1816
1817 fi
1818
1819
1820 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1821 See \`config.log' for more details." >&5
1822 echo "$as_me: error: no acceptable C compiler found in \$PATH
1823 See \`config.log' for more details." >&2;}
1824    { (exit 1); exit 1; }; }
1825
1826 # Provide some information about the compiler.
1827 echo "$as_me:$LINENO:" \
1828      "checking for C compiler version" >&5
1829 ac_compiler=`set X $ac_compile; echo $2`
1830 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1831   (eval $ac_compiler --version </dev/null >&5) 2>&5
1832   ac_status=$?
1833   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1834   (exit $ac_status); }
1835 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1836   (eval $ac_compiler -v </dev/null >&5) 2>&5
1837   ac_status=$?
1838   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1839   (exit $ac_status); }
1840 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1841   (eval $ac_compiler -V </dev/null >&5) 2>&5
1842   ac_status=$?
1843   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1844   (exit $ac_status); }
1845
1846 cat >conftest.$ac_ext <<_ACEOF
1847 /* confdefs.h.  */
1848 _ACEOF
1849 cat confdefs.h >>conftest.$ac_ext
1850 cat >>conftest.$ac_ext <<_ACEOF
1851 /* end confdefs.h.  */
1852
1853 int
1854 main ()
1855 {
1856
1857   ;
1858   return 0;
1859 }
1860 _ACEOF
1861 ac_clean_files_save=$ac_clean_files
1862 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1863 # Try to create an executable without -o first, disregard a.out.
1864 # It will help us diagnose broken compilers, and finding out an intuition
1865 # of exeext.
1866 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1867 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1868 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1869 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1870   (eval $ac_link_default) 2>&5
1871   ac_status=$?
1872   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1873   (exit $ac_status); }; then
1874   # Find the output, starting from the most likely.  This scheme is
1875 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1876 # resort.
1877
1878 # Be careful to initialize this variable, since it used to be cached.
1879 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1880 ac_cv_exeext=
1881 # b.out is created by i960 compilers.
1882 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1883 do
1884   test -f "$ac_file" || continue
1885   case $ac_file in
1886     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1887         ;;
1888     conftest.$ac_ext )
1889         # This is the source file.
1890         ;;
1891     [ab].out )
1892         # We found the default executable, but exeext='' is most
1893         # certainly right.
1894         break;;
1895     *.* )
1896         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1897         # FIXME: I believe we export ac_cv_exeext for Libtool,
1898         # but it would be cool to find out if it's true.  Does anybody
1899         # maintain Libtool? --akim.
1900         export ac_cv_exeext
1901         break;;
1902     * )
1903         break;;
1904   esac
1905 done
1906 else
1907   echo "$as_me: failed program was:" >&5
1908 sed 's/^/| /' conftest.$ac_ext >&5
1909
1910 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1911 See \`config.log' for more details." >&5
1912 echo "$as_me: error: C compiler cannot create executables
1913 See \`config.log' for more details." >&2;}
1914    { (exit 77); exit 77; }; }
1915 fi
1916
1917 ac_exeext=$ac_cv_exeext
1918 echo "$as_me:$LINENO: result: $ac_file" >&5
1919 echo "${ECHO_T}$ac_file" >&6
1920
1921 # Check the compiler produces executables we can run.  If not, either
1922 # the compiler is broken, or we cross compile.
1923 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1924 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1925 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1926 # If not cross compiling, check that we can run a simple program.
1927 if test "$cross_compiling" != yes; then
1928   if { ac_try='./$ac_file'
1929   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1930   (eval $ac_try) 2>&5
1931   ac_status=$?
1932   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1933   (exit $ac_status); }; }; then
1934     cross_compiling=no
1935   else
1936     if test "$cross_compiling" = maybe; then
1937         cross_compiling=yes
1938     else
1939         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1940 If you meant to cross compile, use \`--host'.
1941 See \`config.log' for more details." >&5
1942 echo "$as_me: error: cannot run C compiled programs.
1943 If you meant to cross compile, use \`--host'.
1944 See \`config.log' for more details." >&2;}
1945    { (exit 1); exit 1; }; }
1946     fi
1947   fi
1948 fi
1949 echo "$as_me:$LINENO: result: yes" >&5
1950 echo "${ECHO_T}yes" >&6
1951
1952 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1953 ac_clean_files=$ac_clean_files_save
1954 # Check the compiler produces executables we can run.  If not, either
1955 # the compiler is broken, or we cross compile.
1956 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1957 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1958 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1959 echo "${ECHO_T}$cross_compiling" >&6
1960
1961 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1962 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1963 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1964   (eval $ac_link) 2>&5
1965   ac_status=$?
1966   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1967   (exit $ac_status); }; then
1968   # If both `conftest.exe' and `conftest' are `present' (well, observable)
1969 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
1970 # work properly (i.e., refer to `conftest.exe'), while it won't with
1971 # `rm'.
1972 for ac_file in conftest.exe conftest conftest.*; do
1973   test -f "$ac_file" || continue
1974   case $ac_file in
1975     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1976     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1977           export ac_cv_exeext
1978           break;;
1979     * ) break;;
1980   esac
1981 done
1982 else
1983   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1984 See \`config.log' for more details." >&5
1985 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1986 See \`config.log' for more details." >&2;}
1987    { (exit 1); exit 1; }; }
1988 fi
1989
1990 rm -f conftest$ac_cv_exeext
1991 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1992 echo "${ECHO_T}$ac_cv_exeext" >&6
1993
1994 rm -f conftest.$ac_ext
1995 EXEEXT=$ac_cv_exeext
1996 ac_exeext=$EXEEXT
1997 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1998 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1999 if test "${ac_cv_objext+set}" = set; then
2000   echo $ECHO_N "(cached) $ECHO_C" >&6
2001 else
2002   cat >conftest.$ac_ext <<_ACEOF
2003 /* confdefs.h.  */
2004 _ACEOF
2005 cat confdefs.h >>conftest.$ac_ext
2006 cat >>conftest.$ac_ext <<_ACEOF
2007 /* end confdefs.h.  */
2008
2009 int
2010 main ()
2011 {
2012
2013   ;
2014   return 0;
2015 }
2016 _ACEOF
2017 rm -f conftest.o conftest.obj
2018 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2019   (eval $ac_compile) 2>&5
2020   ac_status=$?
2021   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2022   (exit $ac_status); }; then
2023   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2024   case $ac_file in
2025     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2026     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2027        break;;
2028   esac
2029 done
2030 else
2031   echo "$as_me: failed program was:" >&5
2032 sed 's/^/| /' conftest.$ac_ext >&5
2033
2034 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2035 See \`config.log' for more details." >&5
2036 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2037 See \`config.log' for more details." >&2;}
2038    { (exit 1); exit 1; }; }
2039 fi
2040
2041 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2042 fi
2043 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2044 echo "${ECHO_T}$ac_cv_objext" >&6
2045 OBJEXT=$ac_cv_objext
2046 ac_objext=$OBJEXT
2047 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2048 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2049 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2050   echo $ECHO_N "(cached) $ECHO_C" >&6
2051 else
2052   cat >conftest.$ac_ext <<_ACEOF
2053 /* confdefs.h.  */
2054 _ACEOF
2055 cat confdefs.h >>conftest.$ac_ext
2056 cat >>conftest.$ac_ext <<_ACEOF
2057 /* end confdefs.h.  */
2058
2059 int
2060 main ()
2061 {
2062 #ifndef __GNUC__
2063        choke me
2064 #endif
2065
2066   ;
2067   return 0;
2068 }
2069 _ACEOF
2070 rm -f conftest.$ac_objext
2071 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2072   (eval $ac_compile) 2>conftest.er1
2073   ac_status=$?
2074   grep -v '^ *+' conftest.er1 >conftest.err
2075   rm -f conftest.er1
2076   cat conftest.err >&5
2077   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2078   (exit $ac_status); } &&
2079          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2080   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2081   (eval $ac_try) 2>&5
2082   ac_status=$?
2083   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2084   (exit $ac_status); }; } &&
2085          { ac_try='test -s conftest.$ac_objext'
2086   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2087   (eval $ac_try) 2>&5
2088   ac_status=$?
2089   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2090   (exit $ac_status); }; }; then
2091   ac_compiler_gnu=yes
2092 else
2093   echo "$as_me: failed program was:" >&5
2094 sed 's/^/| /' conftest.$ac_ext >&5
2095
2096 ac_compiler_gnu=no
2097 fi
2098 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2099 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2100
2101 fi
2102 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2103 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2104 GCC=`test $ac_compiler_gnu = yes && echo yes`
2105 ac_test_CFLAGS=${CFLAGS+set}
2106 ac_save_CFLAGS=$CFLAGS
2107 CFLAGS="-g"
2108 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2109 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2110 if test "${ac_cv_prog_cc_g+set}" = set; then
2111   echo $ECHO_N "(cached) $ECHO_C" >&6
2112 else
2113   cat >conftest.$ac_ext <<_ACEOF
2114 /* confdefs.h.  */
2115 _ACEOF
2116 cat confdefs.h >>conftest.$ac_ext
2117 cat >>conftest.$ac_ext <<_ACEOF
2118 /* end confdefs.h.  */
2119
2120 int
2121 main ()
2122 {
2123
2124   ;
2125   return 0;
2126 }
2127 _ACEOF
2128 rm -f conftest.$ac_objext
2129 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2130   (eval $ac_compile) 2>conftest.er1
2131   ac_status=$?
2132   grep -v '^ *+' conftest.er1 >conftest.err
2133   rm -f conftest.er1
2134   cat conftest.err >&5
2135   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2136   (exit $ac_status); } &&
2137          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2138   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2139   (eval $ac_try) 2>&5
2140   ac_status=$?
2141   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2142   (exit $ac_status); }; } &&
2143          { ac_try='test -s conftest.$ac_objext'
2144   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2145   (eval $ac_try) 2>&5
2146   ac_status=$?
2147   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2148   (exit $ac_status); }; }; then
2149   ac_cv_prog_cc_g=yes
2150 else
2151   echo "$as_me: failed program was:" >&5
2152 sed 's/^/| /' conftest.$ac_ext >&5
2153
2154 ac_cv_prog_cc_g=no
2155 fi
2156 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2157 fi
2158 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2159 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2160 if test "$ac_test_CFLAGS" = set; then
2161   CFLAGS=$ac_save_CFLAGS
2162 elif test $ac_cv_prog_cc_g = yes; then
2163   if test "$GCC" = yes; then
2164     CFLAGS="-g -O2"
2165   else
2166     CFLAGS="-g"
2167   fi
2168 else
2169   if test "$GCC" = yes; then
2170     CFLAGS="-O2"
2171   else
2172     CFLAGS=
2173   fi
2174 fi
2175 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2176 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2177 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2178   echo $ECHO_N "(cached) $ECHO_C" >&6
2179 else
2180   ac_cv_prog_cc_stdc=no
2181 ac_save_CC=$CC
2182 cat >conftest.$ac_ext <<_ACEOF
2183 /* confdefs.h.  */
2184 _ACEOF
2185 cat confdefs.h >>conftest.$ac_ext
2186 cat >>conftest.$ac_ext <<_ACEOF
2187 /* end confdefs.h.  */
2188 #include <stdarg.h>
2189 #include <stdio.h>
2190 #include <sys/types.h>
2191 #include <sys/stat.h>
2192 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2193 struct buf { int x; };
2194 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2195 static char *e (p, i)
2196      char **p;
2197      int i;
2198 {
2199   return p[i];
2200 }
2201 static char *f (char * (*g) (char **, int), char **p, ...)
2202 {
2203   char *s;
2204   va_list v;
2205   va_start (v,p);
2206   s = g (p, va_arg (v,int));
2207   va_end (v);
2208   return s;
2209 }
2210
2211 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2212    function prototypes and stuff, but not '\xHH' hex character constants.
2213    These don't provoke an error unfortunately, instead are silently treated
2214    as 'x'.  The following induces an error, until -std1 is added to get
2215    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2216    array size at least.  It's necessary to write '\x00'==0 to get something
2217    that's true only with -std1.  */
2218 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2219
2220 int test (int i, double x);
2221 struct s1 {int (*f) (int a);};
2222 struct s2 {int (*f) (double a);};
2223 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2224 int argc;
2225 char **argv;
2226 int
2227 main ()
2228 {
2229 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2230   ;
2231   return 0;
2232 }
2233 _ACEOF
2234 # Don't try gcc -ansi; that turns off useful extensions and
2235 # breaks some systems' header files.
2236 # AIX                   -qlanglvl=ansi
2237 # Ultrix and OSF/1      -std1
2238 # HP-UX 10.20 and later -Ae
2239 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2240 # SVR4                  -Xc -D__EXTENSIONS__
2241 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2242 do
2243   CC="$ac_save_CC $ac_arg"
2244   rm -f conftest.$ac_objext
2245 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2246   (eval $ac_compile) 2>conftest.er1
2247   ac_status=$?
2248   grep -v '^ *+' conftest.er1 >conftest.err
2249   rm -f conftest.er1
2250   cat conftest.err >&5
2251   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2252   (exit $ac_status); } &&
2253          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2254   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2255   (eval $ac_try) 2>&5
2256   ac_status=$?
2257   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2258   (exit $ac_status); }; } &&
2259          { ac_try='test -s conftest.$ac_objext'
2260   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2261   (eval $ac_try) 2>&5
2262   ac_status=$?
2263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2264   (exit $ac_status); }; }; then
2265   ac_cv_prog_cc_stdc=$ac_arg
2266 break
2267 else
2268   echo "$as_me: failed program was:" >&5
2269 sed 's/^/| /' conftest.$ac_ext >&5
2270
2271 fi
2272 rm -f conftest.err conftest.$ac_objext
2273 done
2274 rm -f conftest.$ac_ext conftest.$ac_objext
2275 CC=$ac_save_CC
2276
2277 fi
2278
2279 case "x$ac_cv_prog_cc_stdc" in
2280   x|xno)
2281     echo "$as_me:$LINENO: result: none needed" >&5
2282 echo "${ECHO_T}none needed" >&6 ;;
2283   *)
2284     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2285 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2286     CC="$CC $ac_cv_prog_cc_stdc" ;;
2287 esac
2288
2289 # Some people use a C++ compiler to compile C.  Since we use `exit',
2290 # in C++ we need to declare it.  In case someone uses the same compiler
2291 # for both compiling C and C++ we need to have the C++ compiler decide
2292 # the declaration of exit, since it's the most demanding environment.
2293 cat >conftest.$ac_ext <<_ACEOF
2294 #ifndef __cplusplus
2295   choke me
2296 #endif
2297 _ACEOF
2298 rm -f conftest.$ac_objext
2299 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2300   (eval $ac_compile) 2>conftest.er1
2301   ac_status=$?
2302   grep -v '^ *+' conftest.er1 >conftest.err
2303   rm -f conftest.er1
2304   cat conftest.err >&5
2305   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2306   (exit $ac_status); } &&
2307          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2308   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2309   (eval $ac_try) 2>&5
2310   ac_status=$?
2311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2312   (exit $ac_status); }; } &&
2313          { ac_try='test -s conftest.$ac_objext'
2314   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2315   (eval $ac_try) 2>&5
2316   ac_status=$?
2317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2318   (exit $ac_status); }; }; then
2319   for ac_declaration in \
2320    '' \
2321    'extern "C" void std::exit (int) throw (); using std::exit;' \
2322    'extern "C" void std::exit (int); using std::exit;' \
2323    'extern "C" void exit (int) throw ();' \
2324    'extern "C" void exit (int);' \
2325    'void exit (int);'
2326 do
2327   cat >conftest.$ac_ext <<_ACEOF
2328 /* confdefs.h.  */
2329 _ACEOF
2330 cat confdefs.h >>conftest.$ac_ext
2331 cat >>conftest.$ac_ext <<_ACEOF
2332 /* end confdefs.h.  */
2333 $ac_declaration
2334 #include <stdlib.h>
2335 int
2336 main ()
2337 {
2338 exit (42);
2339   ;
2340   return 0;
2341 }
2342 _ACEOF
2343 rm -f conftest.$ac_objext
2344 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2345   (eval $ac_compile) 2>conftest.er1
2346   ac_status=$?
2347   grep -v '^ *+' conftest.er1 >conftest.err
2348   rm -f conftest.er1
2349   cat conftest.err >&5
2350   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2351   (exit $ac_status); } &&
2352          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2353   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2354   (eval $ac_try) 2>&5
2355   ac_status=$?
2356   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2357   (exit $ac_status); }; } &&
2358          { ac_try='test -s conftest.$ac_objext'
2359   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2360   (eval $ac_try) 2>&5
2361   ac_status=$?
2362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2363   (exit $ac_status); }; }; then
2364   :
2365 else
2366   echo "$as_me: failed program was:" >&5
2367 sed 's/^/| /' conftest.$ac_ext >&5
2368
2369 continue
2370 fi
2371 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2372   cat >conftest.$ac_ext <<_ACEOF
2373 /* confdefs.h.  */
2374 _ACEOF
2375 cat confdefs.h >>conftest.$ac_ext
2376 cat >>conftest.$ac_ext <<_ACEOF
2377 /* end confdefs.h.  */
2378 $ac_declaration
2379 int
2380 main ()
2381 {
2382 exit (42);
2383   ;
2384   return 0;
2385 }
2386 _ACEOF
2387 rm -f conftest.$ac_objext
2388 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2389   (eval $ac_compile) 2>conftest.er1
2390   ac_status=$?
2391   grep -v '^ *+' conftest.er1 >conftest.err
2392   rm -f conftest.er1
2393   cat conftest.err >&5
2394   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2395   (exit $ac_status); } &&
2396          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2397   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2398   (eval $ac_try) 2>&5
2399   ac_status=$?
2400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2401   (exit $ac_status); }; } &&
2402          { ac_try='test -s conftest.$ac_objext'
2403   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2404   (eval $ac_try) 2>&5
2405   ac_status=$?
2406   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2407   (exit $ac_status); }; }; then
2408   break
2409 else
2410   echo "$as_me: failed program was:" >&5
2411 sed 's/^/| /' conftest.$ac_ext >&5
2412
2413 fi
2414 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2415 done
2416 rm -f conftest*
2417 if test -n "$ac_declaration"; then
2418   echo '#ifdef __cplusplus' >>confdefs.h
2419   echo $ac_declaration      >>confdefs.h
2420   echo '#endif'             >>confdefs.h
2421 fi
2422
2423 else
2424   echo "$as_me: failed program was:" >&5
2425 sed 's/^/| /' conftest.$ac_ext >&5
2426
2427 fi
2428 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2429 ac_ext=c
2430 ac_cpp='$CPP $CPPFLAGS'
2431 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2432 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2433 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2434
2435 ac_ext=c
2436 ac_cpp='$CPP $CPPFLAGS'
2437 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2438 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2439 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2440 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2441 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2442 # On Suns, sometimes $CPP names a directory.
2443 if test -n "$CPP" && test -d "$CPP"; then
2444   CPP=
2445 fi
2446 if test -z "$CPP"; then
2447   if test "${ac_cv_prog_CPP+set}" = set; then
2448   echo $ECHO_N "(cached) $ECHO_C" >&6
2449 else
2450       # Double quotes because CPP needs to be expanded
2451     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2452     do
2453       ac_preproc_ok=false
2454 for ac_c_preproc_warn_flag in '' yes
2455 do
2456   # Use a header file that comes with gcc, so configuring glibc
2457   # with a fresh cross-compiler works.
2458   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2459   # <limits.h> exists even on freestanding compilers.
2460   # On the NeXT, cc -E runs the code through the compiler's parser,
2461   # not just through cpp. "Syntax error" is here to catch this case.
2462   cat >conftest.$ac_ext <<_ACEOF
2463 /* confdefs.h.  */
2464 _ACEOF
2465 cat confdefs.h >>conftest.$ac_ext
2466 cat >>conftest.$ac_ext <<_ACEOF
2467 /* end confdefs.h.  */
2468 #ifdef __STDC__
2469 # include <limits.h>
2470 #else
2471 # include <assert.h>
2472 #endif
2473                      Syntax error
2474 _ACEOF
2475 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2476   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2477   ac_status=$?
2478   grep -v '^ *+' conftest.er1 >conftest.err
2479   rm -f conftest.er1
2480   cat conftest.err >&5
2481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2482   (exit $ac_status); } >/dev/null; then
2483   if test -s conftest.err; then
2484     ac_cpp_err=$ac_c_preproc_warn_flag
2485     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2486   else
2487     ac_cpp_err=
2488   fi
2489 else
2490   ac_cpp_err=yes
2491 fi
2492 if test -z "$ac_cpp_err"; then
2493   :
2494 else
2495   echo "$as_me: failed program was:" >&5
2496 sed 's/^/| /' conftest.$ac_ext >&5
2497
2498   # Broken: fails on valid input.
2499 continue
2500 fi
2501 rm -f conftest.err conftest.$ac_ext
2502
2503   # OK, works on sane cases.  Now check whether non-existent headers
2504   # can be detected and how.
2505   cat >conftest.$ac_ext <<_ACEOF
2506 /* confdefs.h.  */
2507 _ACEOF
2508 cat confdefs.h >>conftest.$ac_ext
2509 cat >>conftest.$ac_ext <<_ACEOF
2510 /* end confdefs.h.  */
2511 #include <ac_nonexistent.h>
2512 _ACEOF
2513 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2514   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2515   ac_status=$?
2516   grep -v '^ *+' conftest.er1 >conftest.err
2517   rm -f conftest.er1
2518   cat conftest.err >&5
2519   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2520   (exit $ac_status); } >/dev/null; then
2521   if test -s conftest.err; then
2522     ac_cpp_err=$ac_c_preproc_warn_flag
2523     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2524   else
2525     ac_cpp_err=
2526   fi
2527 else
2528   ac_cpp_err=yes
2529 fi
2530 if test -z "$ac_cpp_err"; then
2531   # Broken: success on invalid input.
2532 continue
2533 else
2534   echo "$as_me: failed program was:" >&5
2535 sed 's/^/| /' conftest.$ac_ext >&5
2536
2537   # Passes both tests.
2538 ac_preproc_ok=:
2539 break
2540 fi
2541 rm -f conftest.err conftest.$ac_ext
2542
2543 done
2544 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2545 rm -f conftest.err conftest.$ac_ext
2546 if $ac_preproc_ok; then
2547   break
2548 fi
2549
2550     done
2551     ac_cv_prog_CPP=$CPP
2552
2553 fi
2554   CPP=$ac_cv_prog_CPP
2555 else
2556   ac_cv_prog_CPP=$CPP
2557 fi
2558 echo "$as_me:$LINENO: result: $CPP" >&5
2559 echo "${ECHO_T}$CPP" >&6
2560 ac_preproc_ok=false
2561 for ac_c_preproc_warn_flag in '' yes
2562 do
2563   # Use a header file that comes with gcc, so configuring glibc
2564   # with a fresh cross-compiler works.
2565   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2566   # <limits.h> exists even on freestanding compilers.
2567   # On the NeXT, cc -E runs the code through the compiler's parser,
2568   # not just through cpp. "Syntax error" is here to catch this case.
2569   cat >conftest.$ac_ext <<_ACEOF
2570 /* confdefs.h.  */
2571 _ACEOF
2572 cat confdefs.h >>conftest.$ac_ext
2573 cat >>conftest.$ac_ext <<_ACEOF
2574 /* end confdefs.h.  */
2575 #ifdef __STDC__
2576 # include <limits.h>
2577 #else
2578 # include <assert.h>
2579 #endif
2580                      Syntax error
2581 _ACEOF
2582 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2583   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2584   ac_status=$?
2585   grep -v '^ *+' conftest.er1 >conftest.err
2586   rm -f conftest.er1
2587   cat conftest.err >&5
2588   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2589   (exit $ac_status); } >/dev/null; then
2590   if test -s conftest.err; then
2591     ac_cpp_err=$ac_c_preproc_warn_flag
2592     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2593   else
2594     ac_cpp_err=
2595   fi
2596 else
2597   ac_cpp_err=yes
2598 fi
2599 if test -z "$ac_cpp_err"; then
2600   :
2601 else
2602   echo "$as_me: failed program was:" >&5
2603 sed 's/^/| /' conftest.$ac_ext >&5
2604
2605   # Broken: fails on valid input.
2606 continue
2607 fi
2608 rm -f conftest.err conftest.$ac_ext
2609
2610   # OK, works on sane cases.  Now check whether non-existent headers
2611   # can be detected and how.
2612   cat >conftest.$ac_ext <<_ACEOF
2613 /* confdefs.h.  */
2614 _ACEOF
2615 cat confdefs.h >>conftest.$ac_ext
2616 cat >>conftest.$ac_ext <<_ACEOF
2617 /* end confdefs.h.  */
2618 #include <ac_nonexistent.h>
2619 _ACEOF
2620 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2621   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2622   ac_status=$?
2623   grep -v '^ *+' conftest.er1 >conftest.err
2624   rm -f conftest.er1
2625   cat conftest.err >&5
2626   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2627   (exit $ac_status); } >/dev/null; then
2628   if test -s conftest.err; then
2629     ac_cpp_err=$ac_c_preproc_warn_flag
2630     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2631   else
2632     ac_cpp_err=
2633   fi
2634 else
2635   ac_cpp_err=yes
2636 fi
2637 if test -z "$ac_cpp_err"; then
2638   # Broken: success on invalid input.
2639 continue
2640 else
2641   echo "$as_me: failed program was:" >&5
2642 sed 's/^/| /' conftest.$ac_ext >&5
2643
2644   # Passes both tests.
2645 ac_preproc_ok=:
2646 break
2647 fi
2648 rm -f conftest.err conftest.$ac_ext
2649
2650 done
2651 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2652 rm -f conftest.err conftest.$ac_ext
2653 if $ac_preproc_ok; then
2654   :
2655 else
2656   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2657 See \`config.log' for more details." >&5
2658 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2659 See \`config.log' for more details." >&2;}
2660    { (exit 1); exit 1; }; }
2661 fi
2662
2663 ac_ext=c
2664 ac_cpp='$CPP $CPPFLAGS'
2665 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2666 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2667 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2668
2669
2670 echo "$as_me:$LINENO: checking for the directory containing the Wine tools" >&5
2671 echo $ECHO_N "checking for the directory containing the Wine tools... $ECHO_C" >&6
2672 if test "${wine_cv_toolsdir+set}" = set; then
2673   echo $ECHO_N "(cached) $ECHO_C" >&6
2674 else
2675   if test -z "$with_wine_tools"; then
2676      if test "$cross_compiling" = "yes"; then
2677        { { echo "$as_me:$LINENO: error: you must use the --with-wine-tools option when cross-compiling." >&5
2678 echo "$as_me: error: you must use the --with-wine-tools option when cross-compiling." >&2;}
2679    { (exit 1); exit 1; }; }
2680      else
2681        wine_cv_toolsdir="\$(TOPOBJDIR)"
2682      fi
2683    elif test -d "$with_wine_tools/tools/winebuild"; then
2684      case $with_wine_tools in
2685        /*) wine_cv_toolsdir="$with_wine_tools" ;;
2686        *)  wine_cv_toolsdir="\$(TOPOBJDIR)/$with_wine_tools" ;;
2687      esac
2688    else
2689      { { echo "$as_me:$LINENO: error: could not find Wine tools in $with_wine_tools." >&5
2690 echo "$as_me: error: could not find Wine tools in $with_wine_tools." >&2;}
2691    { (exit 1); exit 1; }; }
2692    fi
2693 fi
2694 echo "$as_me:$LINENO: result: $wine_cv_toolsdir" >&5
2695 echo "${ECHO_T}$wine_cv_toolsdir" >&6
2696 TOOLSDIR=$wine_cv_toolsdir
2697
2698
2699
2700
2701 echo "$as_me:$LINENO: checking for X" >&5
2702 echo $ECHO_N "checking for X... $ECHO_C" >&6
2703
2704
2705 # Check whether --with-x or --without-x was given.
2706 if test "${with_x+set}" = set; then
2707   withval="$with_x"
2708
2709 fi;
2710 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
2711 if test "x$with_x" = xno; then
2712   # The user explicitly disabled X.
2713   have_x=disabled
2714 else
2715   if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
2716     # Both variables are already set.
2717     have_x=yes
2718   else
2719     if test "${ac_cv_have_x+set}" = set; then
2720   echo $ECHO_N "(cached) $ECHO_C" >&6
2721 else
2722   # One or both of the vars are not set, and there is no cached value.
2723 ac_x_includes=no ac_x_libraries=no
2724 rm -fr conftest.dir
2725 if mkdir conftest.dir; then
2726   cd conftest.dir
2727   # Make sure to not put "make" in the Imakefile rules, since we grep it out.
2728   cat >Imakefile <<'_ACEOF'
2729 acfindx:
2730         @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
2731 _ACEOF
2732   if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
2733     # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2734     eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
2735     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
2736     for ac_extension in a so sl; do
2737       if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
2738          test -f $ac_im_libdir/libX11.$ac_extension; then
2739         ac_im_usrlibdir=$ac_im_libdir; break
2740       fi
2741     done
2742     # Screen out bogus values from the imake configuration.  They are
2743     # bogus both because they are the default anyway, and because
2744     # using them would break gcc on systems where it needs fixed includes.
2745     case $ac_im_incroot in
2746         /usr/include) ;;
2747         *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
2748     esac
2749     case $ac_im_usrlibdir in
2750         /usr/lib | /lib) ;;
2751         *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
2752     esac
2753   fi
2754   cd ..
2755   rm -fr conftest.dir
2756 fi
2757
2758 # Standard set of common directories for X headers.
2759 # Check X11 before X11Rn because it is often a symlink to the current release.
2760 ac_x_header_dirs='
2761 /usr/X11/include
2762 /usr/X11R6/include
2763 /usr/X11R5/include
2764 /usr/X11R4/include
2765
2766 /usr/include/X11
2767 /usr/include/X11R6
2768 /usr/include/X11R5
2769 /usr/include/X11R4
2770
2771 /usr/local/X11/include
2772 /usr/local/X11R6/include
2773 /usr/local/X11R5/include
2774 /usr/local/X11R4/include
2775
2776 /usr/local/include/X11
2777 /usr/local/include/X11R6
2778 /usr/local/include/X11R5
2779 /usr/local/include/X11R4
2780
2781 /usr/X386/include
2782 /usr/x386/include
2783 /usr/XFree86/include/X11
2784
2785 /usr/include
2786 /usr/local/include
2787 /usr/unsupported/include
2788 /usr/athena/include
2789 /usr/local/x11r5/include
2790 /usr/lpp/Xamples/include
2791
2792 /usr/openwin/include
2793 /usr/openwin/share/include'
2794
2795 if test "$ac_x_includes" = no; then
2796   # Guess where to find include files, by looking for Intrinsic.h.
2797   # First, try using that file with no special directory specified.
2798   cat >conftest.$ac_ext <<_ACEOF
2799 /* confdefs.h.  */
2800 _ACEOF
2801 cat confdefs.h >>conftest.$ac_ext
2802 cat >>conftest.$ac_ext <<_ACEOF
2803 /* end confdefs.h.  */
2804 #include <X11/Intrinsic.h>
2805 _ACEOF
2806 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2807   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2808   ac_status=$?
2809   grep -v '^ *+' conftest.er1 >conftest.err
2810   rm -f conftest.er1
2811   cat conftest.err >&5
2812   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2813   (exit $ac_status); } >/dev/null; then
2814   if test -s conftest.err; then
2815     ac_cpp_err=$ac_c_preproc_warn_flag
2816     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2817   else
2818     ac_cpp_err=
2819   fi
2820 else
2821   ac_cpp_err=yes
2822 fi
2823 if test -z "$ac_cpp_err"; then
2824   # We can compile using X headers with no special include directory.
2825 ac_x_includes=
2826 else
2827   echo "$as_me: failed program was:" >&5
2828 sed 's/^/| /' conftest.$ac_ext >&5
2829
2830   for ac_dir in $ac_x_header_dirs; do
2831   if test -r "$ac_dir/X11/Intrinsic.h"; then
2832     ac_x_includes=$ac_dir
2833     break
2834   fi
2835 done
2836 fi
2837 rm -f conftest.err conftest.$ac_ext
2838 fi # $ac_x_includes = no
2839
2840 if test "$ac_x_libraries" = no; then
2841   # Check for the libraries.
2842   # See if we find them without any special options.
2843   # Don't add to $LIBS permanently.
2844   ac_save_LIBS=$LIBS
2845   LIBS="-lXt $LIBS"
2846   cat >conftest.$ac_ext <<_ACEOF
2847 /* confdefs.h.  */
2848 _ACEOF
2849 cat confdefs.h >>conftest.$ac_ext
2850 cat >>conftest.$ac_ext <<_ACEOF
2851 /* end confdefs.h.  */
2852 #include <X11/Intrinsic.h>
2853 int
2854 main ()
2855 {
2856 XtMalloc (0)
2857   ;
2858   return 0;
2859 }
2860 _ACEOF
2861 rm -f conftest.$ac_objext conftest$ac_exeext
2862 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2863   (eval $ac_link) 2>conftest.er1
2864   ac_status=$?
2865   grep -v '^ *+' conftest.er1 >conftest.err
2866   rm -f conftest.er1
2867   cat conftest.err >&5
2868   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2869   (exit $ac_status); } &&
2870          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2871   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2872   (eval $ac_try) 2>&5
2873   ac_status=$?
2874   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2875   (exit $ac_status); }; } &&
2876          { ac_try='test -s conftest$ac_exeext'
2877   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2878   (eval $ac_try) 2>&5
2879   ac_status=$?
2880   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2881   (exit $ac_status); }; }; then
2882   LIBS=$ac_save_LIBS
2883 # We can link X programs with no special library path.
2884 ac_x_libraries=
2885 else
2886   echo "$as_me: failed program was:" >&5
2887 sed 's/^/| /' conftest.$ac_ext >&5
2888
2889 LIBS=$ac_save_LIBS
2890 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
2891 do
2892   # Don't even attempt the hair of trying to link an X program!
2893   for ac_extension in a so sl; do
2894     if test -r $ac_dir/libXt.$ac_extension; then
2895       ac_x_libraries=$ac_dir
2896       break 2
2897     fi
2898   done
2899 done
2900 fi
2901 rm -f conftest.err conftest.$ac_objext \
2902       conftest$ac_exeext conftest.$ac_ext
2903 fi # $ac_x_libraries = no
2904
2905 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
2906   # Didn't find X anywhere.  Cache the known absence of X.
2907   ac_cv_have_x="have_x=no"
2908 else
2909   # Record where we found X for the cache.
2910   ac_cv_have_x="have_x=yes \
2911                 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
2912 fi
2913 fi
2914
2915   fi
2916   eval "$ac_cv_have_x"
2917 fi # $with_x != no
2918
2919 if test "$have_x" != yes; then
2920   echo "$as_me:$LINENO: result: $have_x" >&5
2921 echo "${ECHO_T}$have_x" >&6
2922   no_x=yes
2923 else
2924   # If each of the values was on the command line, it overrides each guess.
2925   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
2926   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
2927   # Update the cache value to reflect the command line values.
2928   ac_cv_have_x="have_x=yes \
2929                 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
2930   echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
2931 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
2932 fi
2933
2934 if test "$no_x" = yes; then
2935   # Not all programs may use this symbol, but it does not hurt to define it.
2936
2937 cat >>confdefs.h <<\_ACEOF
2938 #define X_DISPLAY_MISSING 1
2939 _ACEOF
2940
2941   X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
2942 else
2943   if test -n "$x_includes"; then
2944     X_CFLAGS="$X_CFLAGS -I$x_includes"
2945   fi
2946
2947   # It would also be nice to do this for all -L options, not just this one.
2948   if test -n "$x_libraries"; then
2949     X_LIBS="$X_LIBS -L$x_libraries"
2950     # For Solaris; some versions of Sun CC require a space after -R and
2951     # others require no space.  Words are not sufficient . . . .
2952     case `(uname -sr) 2>/dev/null` in
2953     "SunOS 5"*)
2954       echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
2955 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
2956       ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
2957       cat >conftest.$ac_ext <<_ACEOF
2958 /* confdefs.h.  */
2959 _ACEOF
2960 cat confdefs.h >>conftest.$ac_ext
2961 cat >>conftest.$ac_ext <<_ACEOF
2962 /* end confdefs.h.  */
2963
2964 int
2965 main ()
2966 {
2967
2968   ;
2969   return 0;
2970 }
2971 _ACEOF
2972 rm -f conftest.$ac_objext conftest$ac_exeext
2973 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2974   (eval $ac_link) 2>conftest.er1
2975   ac_status=$?
2976   grep -v '^ *+' conftest.er1 >conftest.err
2977   rm -f conftest.er1
2978   cat conftest.err >&5
2979   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2980   (exit $ac_status); } &&
2981          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2982   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2983   (eval $ac_try) 2>&5
2984   ac_status=$?
2985   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2986   (exit $ac_status); }; } &&
2987          { ac_try='test -s conftest$ac_exeext'
2988   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2989   (eval $ac_try) 2>&5
2990   ac_status=$?
2991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2992   (exit $ac_status); }; }; then
2993   ac_R_nospace=yes
2994 else
2995   echo "$as_me: failed program was:" >&5
2996 sed 's/^/| /' conftest.$ac_ext >&5
2997
2998 ac_R_nospace=no
2999 fi
3000 rm -f conftest.err conftest.$ac_objext \
3001       conftest$ac_exeext conftest.$ac_ext
3002       if test $ac_R_nospace = yes; then
3003         echo "$as_me:$LINENO: result: no" >&5
3004 echo "${ECHO_T}no" >&6
3005         X_LIBS="$X_LIBS -R$x_libraries"
3006       else
3007         LIBS="$ac_xsave_LIBS -R $x_libraries"
3008         cat >conftest.$ac_ext <<_ACEOF
3009 /* confdefs.h.  */
3010 _ACEOF
3011 cat confdefs.h >>conftest.$ac_ext
3012 cat >>conftest.$ac_ext <<_ACEOF
3013 /* end confdefs.h.  */
3014
3015 int
3016 main ()
3017 {
3018
3019   ;
3020   return 0;
3021 }
3022 _ACEOF
3023 rm -f conftest.$ac_objext conftest$ac_exeext
3024 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3025   (eval $ac_link) 2>conftest.er1
3026   ac_status=$?
3027   grep -v '^ *+' conftest.er1 >conftest.err
3028   rm -f conftest.er1
3029   cat conftest.err >&5
3030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3031   (exit $ac_status); } &&
3032          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3033   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3034   (eval $ac_try) 2>&5
3035   ac_status=$?
3036   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3037   (exit $ac_status); }; } &&
3038          { ac_try='test -s conftest$ac_exeext'
3039   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3040   (eval $ac_try) 2>&5
3041   ac_status=$?
3042   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3043   (exit $ac_status); }; }; then
3044   ac_R_space=yes
3045 else
3046   echo "$as_me: failed program was:" >&5
3047 sed 's/^/| /' conftest.$ac_ext >&5
3048
3049 ac_R_space=no
3050 fi
3051 rm -f conftest.err conftest.$ac_objext \
3052       conftest$ac_exeext conftest.$ac_ext
3053         if test $ac_R_space = yes; then
3054           echo "$as_me:$LINENO: result: yes" >&5
3055 echo "${ECHO_T}yes" >&6
3056           X_LIBS="$X_LIBS -R $x_libraries"
3057         else
3058           echo "$as_me:$LINENO: result: neither works" >&5
3059 echo "${ECHO_T}neither works" >&6
3060         fi
3061       fi
3062       LIBS=$ac_xsave_LIBS
3063     esac
3064   fi
3065
3066   # Check for system-dependent libraries X programs must link with.
3067   # Do this before checking for the system-independent R6 libraries
3068   # (-lICE), since we may need -lsocket or whatever for X linking.
3069
3070   if test "$ISC" = yes; then
3071     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
3072   else
3073     # Martyn Johnson says this is needed for Ultrix, if the X
3074     # libraries were built with DECnet support.  And Karl Berry says
3075     # the Alpha needs dnet_stub (dnet does not exist).
3076     ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
3077     cat >conftest.$ac_ext <<_ACEOF
3078 /* confdefs.h.  */
3079 _ACEOF
3080 cat confdefs.h >>conftest.$ac_ext
3081 cat >>conftest.$ac_ext <<_ACEOF
3082 /* end confdefs.h.  */
3083
3084 /* Override any gcc2 internal prototype to avoid an error.  */
3085 #ifdef __cplusplus
3086 extern "C"
3087 #endif
3088 /* We use char because int might match the return type of a gcc2
3089    builtin and then its argument prototype would still apply.  */
3090 char XOpenDisplay ();
3091 int
3092 main ()
3093 {
3094 XOpenDisplay ();
3095   ;
3096   return 0;
3097 }
3098 _ACEOF
3099 rm -f conftest.$ac_objext conftest$ac_exeext
3100 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3101   (eval $ac_link) 2>conftest.er1
3102   ac_status=$?
3103   grep -v '^ *+' conftest.er1 >conftest.err
3104   rm -f conftest.er1
3105   cat conftest.err >&5
3106   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3107   (exit $ac_status); } &&
3108          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3109   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3110   (eval $ac_try) 2>&5
3111   ac_status=$?
3112   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3113   (exit $ac_status); }; } &&
3114          { ac_try='test -s conftest$ac_exeext'
3115   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3116   (eval $ac_try) 2>&5
3117   ac_status=$?
3118   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3119   (exit $ac_status); }; }; then
3120   :
3121 else
3122   echo "$as_me: failed program was:" >&5
3123 sed 's/^/| /' conftest.$ac_ext >&5
3124
3125 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
3126 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
3127 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
3128   echo $ECHO_N "(cached) $ECHO_C" >&6
3129 else
3130   ac_check_lib_save_LIBS=$LIBS
3131 LIBS="-ldnet  $LIBS"
3132 cat >conftest.$ac_ext <<_ACEOF
3133 /* confdefs.h.  */
3134 _ACEOF
3135 cat confdefs.h >>conftest.$ac_ext
3136 cat >>conftest.$ac_ext <<_ACEOF
3137 /* end confdefs.h.  */
3138
3139 /* Override any gcc2 internal prototype to avoid an error.  */
3140 #ifdef __cplusplus
3141 extern "C"
3142 #endif
3143 /* We use char because int might match the return type of a gcc2
3144    builtin and then its argument prototype would still apply.  */
3145 char dnet_ntoa ();
3146 int
3147 main ()
3148 {
3149 dnet_ntoa ();
3150   ;
3151   return 0;
3152 }
3153 _ACEOF
3154 rm -f conftest.$ac_objext conftest$ac_exeext
3155 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3156   (eval $ac_link) 2>conftest.er1
3157   ac_status=$?
3158   grep -v '^ *+' conftest.er1 >conftest.err
3159   rm -f conftest.er1
3160   cat conftest.err >&5
3161   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3162   (exit $ac_status); } &&
3163          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3164   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3165   (eval $ac_try) 2>&5
3166   ac_status=$?
3167   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3168   (exit $ac_status); }; } &&
3169          { ac_try='test -s conftest$ac_exeext'
3170   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3171   (eval $ac_try) 2>&5
3172   ac_status=$?
3173   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3174   (exit $ac_status); }; }; then
3175   ac_cv_lib_dnet_dnet_ntoa=yes
3176 else
3177   echo "$as_me: failed program was:" >&5
3178 sed 's/^/| /' conftest.$ac_ext >&5
3179
3180 ac_cv_lib_dnet_dnet_ntoa=no
3181 fi
3182 rm -f conftest.err conftest.$ac_objext \
3183       conftest$ac_exeext conftest.$ac_ext
3184 LIBS=$ac_check_lib_save_LIBS
3185 fi
3186 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
3187 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
3188 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
3189   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
3190 fi
3191
3192     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
3193       echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
3194 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
3195 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
3196   echo $ECHO_N "(cached) $ECHO_C" >&6
3197 else
3198   ac_check_lib_save_LIBS=$LIBS
3199 LIBS="-ldnet_stub  $LIBS"
3200 cat >conftest.$ac_ext <<_ACEOF
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 dnet_ntoa ();
3214 int
3215 main ()
3216 {
3217 dnet_ntoa ();
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>conftest.er1
3225   ac_status=$?
3226   grep -v '^ *+' conftest.er1 >conftest.err
3227   rm -f conftest.er1
3228   cat conftest.err >&5
3229   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3230   (exit $ac_status); } &&
3231          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3232   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3233   (eval $ac_try) 2>&5
3234   ac_status=$?
3235   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3236   (exit $ac_status); }; } &&
3237          { ac_try='test -s conftest$ac_exeext'
3238   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3239   (eval $ac_try) 2>&5
3240   ac_status=$?
3241   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3242   (exit $ac_status); }; }; then
3243   ac_cv_lib_dnet_stub_dnet_ntoa=yes
3244 else
3245   echo "$as_me: failed program was:" >&5
3246 sed 's/^/| /' conftest.$ac_ext >&5
3247
3248 ac_cv_lib_dnet_stub_dnet_ntoa=no
3249 fi
3250 rm -f conftest.err conftest.$ac_objext \
3251       conftest$ac_exeext conftest.$ac_ext
3252 LIBS=$ac_check_lib_save_LIBS
3253 fi
3254 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
3255 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
3256 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
3257   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
3258 fi
3259
3260     fi
3261 fi
3262 rm -f conftest.err conftest.$ac_objext \
3263       conftest$ac_exeext conftest.$ac_ext
3264     LIBS="$ac_xsave_LIBS"
3265
3266     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
3267     # to get the SysV transport functions.
3268     # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
3269     # needs -lnsl.
3270     # The nsl library prevents programs from opening the X display
3271     # on Irix 5.2, according to T.E. Dickey.
3272     # The functions gethostbyname, getservbyname, and inet_addr are
3273     # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
3274     echo "$as_me:$LINENO: checking for gethostbyname" >&5
3275 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
3276 if test "${ac_cv_func_gethostbyname+set}" = set; then
3277   echo $ECHO_N "(cached) $ECHO_C" >&6
3278 else
3279   cat >conftest.$ac_ext <<_ACEOF
3280 /* confdefs.h.  */
3281 _ACEOF
3282 cat confdefs.h >>conftest.$ac_ext
3283 cat >>conftest.$ac_ext <<_ACEOF
3284 /* end confdefs.h.  */
3285 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
3286    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
3287 #define gethostbyname innocuous_gethostbyname
3288
3289 /* System header to define __stub macros and hopefully few prototypes,
3290     which can conflict with char gethostbyname (); below.
3291     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3292     <limits.h> exists even on freestanding compilers.  */
3293
3294 #ifdef __STDC__
3295 # include <limits.h>
3296 #else
3297 # include <assert.h>
3298 #endif
3299
3300 #undef gethostbyname
3301
3302 /* Override any gcc2 internal prototype to avoid an error.  */
3303 #ifdef __cplusplus
3304 extern "C"
3305 {
3306 #endif
3307 /* We use char because int might match the return type of a gcc2
3308    builtin and then its argument prototype would still apply.  */
3309 char gethostbyname ();
3310 /* The GNU C library defines this for functions which it implements
3311     to always fail with ENOSYS.  Some functions are actually named
3312     something starting with __ and the normal name is an alias.  */
3313 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
3314 choke me
3315 #else
3316 char (*f) () = gethostbyname;
3317 #endif
3318 #ifdef __cplusplus
3319 }
3320 #endif
3321
3322 int
3323 main ()
3324 {
3325 return f != gethostbyname;
3326   ;
3327   return 0;
3328 }
3329 _ACEOF
3330 rm -f conftest.$ac_objext conftest$ac_exeext
3331 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3332   (eval $ac_link) 2>conftest.er1
3333   ac_status=$?
3334   grep -v '^ *+' conftest.er1 >conftest.err
3335   rm -f conftest.er1
3336   cat conftest.err >&5
3337   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3338   (exit $ac_status); } &&
3339          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3340   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3341   (eval $ac_try) 2>&5
3342   ac_status=$?
3343   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3344   (exit $ac_status); }; } &&
3345          { ac_try='test -s conftest$ac_exeext'
3346   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3347   (eval $ac_try) 2>&5
3348   ac_status=$?
3349   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3350   (exit $ac_status); }; }; then
3351   ac_cv_func_gethostbyname=yes
3352 else
3353   echo "$as_me: failed program was:" >&5
3354 sed 's/^/| /' conftest.$ac_ext >&5
3355
3356 ac_cv_func_gethostbyname=no
3357 fi
3358 rm -f conftest.err conftest.$ac_objext \
3359       conftest$ac_exeext conftest.$ac_ext
3360 fi
3361 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
3362 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
3363
3364     if test $ac_cv_func_gethostbyname = no; then
3365       echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
3366 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
3367 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
3368   echo $ECHO_N "(cached) $ECHO_C" >&6
3369 else
3370   ac_check_lib_save_LIBS=$LIBS
3371 LIBS="-lnsl  $LIBS"
3372 cat >conftest.$ac_ext <<_ACEOF
3373 /* confdefs.h.  */
3374 _ACEOF
3375 cat confdefs.h >>conftest.$ac_ext
3376 cat >>conftest.$ac_ext <<_ACEOF
3377 /* end confdefs.h.  */
3378
3379 /* Override any gcc2 internal prototype to avoid an error.  */
3380 #ifdef __cplusplus
3381 extern "C"
3382 #endif
3383 /* We use char because int might match the return type of a gcc2
3384    builtin and then its argument prototype would still apply.  */
3385 char gethostbyname ();
3386 int
3387 main ()
3388 {
3389 gethostbyname ();
3390   ;
3391   return 0;
3392 }
3393 _ACEOF
3394 rm -f conftest.$ac_objext conftest$ac_exeext
3395 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3396   (eval $ac_link) 2>conftest.er1
3397   ac_status=$?
3398   grep -v '^ *+' conftest.er1 >conftest.err
3399   rm -f conftest.er1
3400   cat conftest.err >&5
3401   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3402   (exit $ac_status); } &&
3403          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3404   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3405   (eval $ac_try) 2>&5
3406   ac_status=$?
3407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3408   (exit $ac_status); }; } &&
3409          { ac_try='test -s conftest$ac_exeext'
3410   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3411   (eval $ac_try) 2>&5
3412   ac_status=$?
3413   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3414   (exit $ac_status); }; }; then
3415   ac_cv_lib_nsl_gethostbyname=yes
3416 else
3417   echo "$as_me: failed program was:" >&5
3418 sed 's/^/| /' conftest.$ac_ext >&5
3419
3420 ac_cv_lib_nsl_gethostbyname=no
3421 fi
3422 rm -f conftest.err conftest.$ac_objext \
3423       conftest$ac_exeext conftest.$ac_ext
3424 LIBS=$ac_check_lib_save_LIBS
3425 fi
3426 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
3427 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
3428 if test $ac_cv_lib_nsl_gethostbyname = yes; then
3429   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
3430 fi
3431
3432       if test $ac_cv_lib_nsl_gethostbyname = no; then
3433         echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
3434 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
3435 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
3436   echo $ECHO_N "(cached) $ECHO_C" >&6
3437 else
3438   ac_check_lib_save_LIBS=$LIBS
3439 LIBS="-lbsd  $LIBS"
3440 cat >conftest.$ac_ext <<_ACEOF
3441 /* confdefs.h.  */
3442 _ACEOF
3443 cat confdefs.h >>conftest.$ac_ext
3444 cat >>conftest.$ac_ext <<_ACEOF
3445 /* end confdefs.h.  */
3446
3447 /* Override any gcc2 internal prototype to avoid an error.  */
3448 #ifdef __cplusplus
3449 extern "C"
3450 #endif
3451 /* We use char because int might match the return type of a gcc2
3452    builtin and then its argument prototype would still apply.  */
3453 char gethostbyname ();
3454 int
3455 main ()
3456 {
3457 gethostbyname ();
3458   ;
3459   return 0;
3460 }
3461 _ACEOF
3462 rm -f conftest.$ac_objext conftest$ac_exeext
3463 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3464   (eval $ac_link) 2>conftest.er1
3465   ac_status=$?
3466   grep -v '^ *+' conftest.er1 >conftest.err
3467   rm -f conftest.er1
3468   cat conftest.err >&5
3469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3470   (exit $ac_status); } &&
3471          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3472   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3473   (eval $ac_try) 2>&5
3474   ac_status=$?
3475   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3476   (exit $ac_status); }; } &&
3477          { ac_try='test -s conftest$ac_exeext'
3478   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3479   (eval $ac_try) 2>&5
3480   ac_status=$?
3481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3482   (exit $ac_status); }; }; then
3483   ac_cv_lib_bsd_gethostbyname=yes
3484 else
3485   echo "$as_me: failed program was:" >&5
3486 sed 's/^/| /' conftest.$ac_ext >&5
3487
3488 ac_cv_lib_bsd_gethostbyname=no
3489 fi
3490 rm -f conftest.err conftest.$ac_objext \
3491       conftest$ac_exeext conftest.$ac_ext
3492 LIBS=$ac_check_lib_save_LIBS
3493 fi
3494 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
3495 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
3496 if test $ac_cv_lib_bsd_gethostbyname = yes; then
3497   X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
3498 fi
3499
3500       fi
3501     fi
3502
3503     # lieder@skyler.mavd.honeywell.com says without -lsocket,
3504     # socket/setsockopt and other routines are undefined under SCO ODT
3505     # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
3506     # on later versions), says Simon Leinen: it contains gethostby*
3507     # variants that don't use the name server (or something).  -lsocket
3508     # must be given before -lnsl if both are needed.  We assume that
3509     # if connect needs -lnsl, so does gethostbyname.
3510     echo "$as_me:$LINENO: checking for connect" >&5
3511 echo $ECHO_N "checking for connect... $ECHO_C" >&6
3512 if test "${ac_cv_func_connect+set}" = set; then
3513   echo $ECHO_N "(cached) $ECHO_C" >&6
3514 else
3515   cat >conftest.$ac_ext <<_ACEOF
3516 /* confdefs.h.  */
3517 _ACEOF
3518 cat confdefs.h >>conftest.$ac_ext
3519 cat >>conftest.$ac_ext <<_ACEOF
3520 /* end confdefs.h.  */
3521 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
3522    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
3523 #define connect innocuous_connect
3524
3525 /* System header to define __stub macros and hopefully few prototypes,
3526     which can conflict with char connect (); below.
3527     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3528     <limits.h> exists even on freestanding compilers.  */
3529
3530 #ifdef __STDC__
3531 # include <limits.h>
3532 #else
3533 # include <assert.h>
3534 #endif
3535
3536 #undef connect
3537
3538 /* Override any gcc2 internal prototype to avoid an error.  */
3539 #ifdef __cplusplus
3540 extern "C"
3541 {
3542 #endif
3543 /* We use char because int might match the return type of a gcc2
3544    builtin and then its argument prototype would still apply.  */
3545 char connect ();
3546 /* The GNU C library defines this for functions which it implements
3547     to always fail with ENOSYS.  Some functions are actually named
3548     something starting with __ and the normal name is an alias.  */
3549 #if defined (__stub_connect) || defined (__stub___connect)
3550 choke me
3551 #else
3552 char (*f) () = connect;
3553 #endif
3554 #ifdef __cplusplus
3555 }
3556 #endif
3557
3558 int
3559 main ()
3560 {
3561 return f != connect;
3562   ;
3563   return 0;
3564 }
3565 _ACEOF
3566 rm -f conftest.$ac_objext conftest$ac_exeext
3567 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3568   (eval $ac_link) 2>conftest.er1
3569   ac_status=$?
3570   grep -v '^ *+' conftest.er1 >conftest.err
3571   rm -f conftest.er1
3572   cat conftest.err >&5
3573   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3574   (exit $ac_status); } &&
3575          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3576   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3577   (eval $ac_try) 2>&5
3578   ac_status=$?
3579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3580   (exit $ac_status); }; } &&
3581          { ac_try='test -s conftest$ac_exeext'
3582   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3583   (eval $ac_try) 2>&5
3584   ac_status=$?
3585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3586   (exit $ac_status); }; }; then
3587   ac_cv_func_connect=yes
3588 else
3589   echo "$as_me: failed program was:" >&5
3590 sed 's/^/| /' conftest.$ac_ext >&5
3591
3592 ac_cv_func_connect=no
3593 fi
3594 rm -f conftest.err conftest.$ac_objext \
3595       conftest$ac_exeext conftest.$ac_ext
3596 fi
3597 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
3598 echo "${ECHO_T}$ac_cv_func_connect" >&6
3599
3600     if test $ac_cv_func_connect = no; then
3601       echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
3602 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
3603 if test "${ac_cv_lib_socket_connect+set}" = set; then
3604   echo $ECHO_N "(cached) $ECHO_C" >&6
3605 else
3606   ac_check_lib_save_LIBS=$LIBS
3607 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
3608 cat >conftest.$ac_ext <<_ACEOF
3609 /* confdefs.h.  */
3610 _ACEOF
3611 cat confdefs.h >>conftest.$ac_ext
3612 cat >>conftest.$ac_ext <<_ACEOF
3613 /* end confdefs.h.  */
3614
3615 /* Override any gcc2 internal prototype to avoid an error.  */
3616 #ifdef __cplusplus
3617 extern "C"
3618 #endif
3619 /* We use char because int might match the return type of a gcc2
3620    builtin and then its argument prototype would still apply.  */
3621 char connect ();
3622 int
3623 main ()
3624 {
3625 connect ();
3626   ;
3627   return 0;
3628 }
3629 _ACEOF
3630 rm -f conftest.$ac_objext conftest$ac_exeext
3631 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3632   (eval $ac_link) 2>conftest.er1
3633   ac_status=$?
3634   grep -v '^ *+' conftest.er1 >conftest.err
3635   rm -f conftest.er1
3636   cat conftest.err >&5
3637   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3638   (exit $ac_status); } &&
3639          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3640   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3641   (eval $ac_try) 2>&5
3642   ac_status=$?
3643   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3644   (exit $ac_status); }; } &&
3645          { ac_try='test -s conftest$ac_exeext'
3646   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3647   (eval $ac_try) 2>&5
3648   ac_status=$?
3649   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3650   (exit $ac_status); }; }; then
3651   ac_cv_lib_socket_connect=yes
3652 else
3653   echo "$as_me: failed program was:" >&5
3654 sed 's/^/| /' conftest.$ac_ext >&5
3655
3656 ac_cv_lib_socket_connect=no
3657 fi
3658 rm -f conftest.err conftest.$ac_objext \
3659       conftest$ac_exeext conftest.$ac_ext
3660 LIBS=$ac_check_lib_save_LIBS
3661 fi
3662 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
3663 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
3664 if test $ac_cv_lib_socket_connect = yes; then
3665   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
3666 fi
3667
3668     fi
3669
3670     # Guillermo Gomez says -lposix is necessary on A/UX.
3671     echo "$as_me:$LINENO: checking for remove" >&5
3672 echo $ECHO_N "checking for remove... $ECHO_C" >&6
3673 if test "${ac_cv_func_remove+set}" = set; then
3674   echo $ECHO_N "(cached) $ECHO_C" >&6
3675 else
3676   cat >conftest.$ac_ext <<_ACEOF
3677 /* confdefs.h.  */
3678 _ACEOF
3679 cat confdefs.h >>conftest.$ac_ext
3680 cat >>conftest.$ac_ext <<_ACEOF
3681 /* end confdefs.h.  */
3682 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
3683    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
3684 #define remove innocuous_remove
3685
3686 /* System header to define __stub macros and hopefully few prototypes,
3687     which can conflict with char remove (); below.
3688     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3689     <limits.h> exists even on freestanding compilers.  */
3690
3691 #ifdef __STDC__
3692 # include <limits.h>
3693 #else
3694 # include <assert.h>
3695 #endif
3696
3697 #undef remove
3698
3699 /* Override any gcc2 internal prototype to avoid an error.  */
3700 #ifdef __cplusplus
3701 extern "C"
3702 {
3703 #endif
3704 /* We use char because int might match the return type of a gcc2
3705    builtin and then its argument prototype would still apply.  */
3706 char remove ();
3707 /* The GNU C library defines this for functions which it implements
3708     to always fail with ENOSYS.  Some functions are actually named
3709     something starting with __ and the normal name is an alias.  */
3710 #if defined (__stub_remove) || defined (__stub___remove)
3711 choke me
3712 #else
3713 char (*f) () = remove;
3714 #endif
3715 #ifdef __cplusplus
3716 }
3717 #endif
3718
3719 int
3720 main ()
3721 {
3722 return f != remove;
3723   ;
3724   return 0;
3725 }
3726 _ACEOF
3727 rm -f conftest.$ac_objext conftest$ac_exeext
3728 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3729   (eval $ac_link) 2>conftest.er1
3730   ac_status=$?
3731   grep -v '^ *+' conftest.er1 >conftest.err
3732   rm -f conftest.er1
3733   cat conftest.err >&5
3734   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3735   (exit $ac_status); } &&
3736          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3737   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3738   (eval $ac_try) 2>&5
3739   ac_status=$?
3740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3741   (exit $ac_status); }; } &&
3742          { ac_try='test -s conftest$ac_exeext'
3743   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3744   (eval $ac_try) 2>&5
3745   ac_status=$?
3746   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3747   (exit $ac_status); }; }; then
3748   ac_cv_func_remove=yes
3749 else
3750   echo "$as_me: failed program was:" >&5
3751 sed 's/^/| /' conftest.$ac_ext >&5
3752
3753 ac_cv_func_remove=no
3754 fi
3755 rm -f conftest.err conftest.$ac_objext \
3756       conftest$ac_exeext conftest.$ac_ext
3757 fi
3758 echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
3759 echo "${ECHO_T}$ac_cv_func_remove" >&6
3760
3761     if test $ac_cv_func_remove = no; then
3762       echo "$as_me:$LINENO: checking for remove in -lposix" >&5
3763 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
3764 if test "${ac_cv_lib_posix_remove+set}" = set; then
3765   echo $ECHO_N "(cached) $ECHO_C" >&6
3766 else
3767   ac_check_lib_save_LIBS=$LIBS
3768 LIBS="-lposix  $LIBS"
3769 cat >conftest.$ac_ext <<_ACEOF
3770 /* confdefs.h.  */
3771 _ACEOF
3772 cat confdefs.h >>conftest.$ac_ext
3773 cat >>conftest.$ac_ext <<_ACEOF
3774 /* end confdefs.h.  */
3775
3776 /* Override any gcc2 internal prototype to avoid an error.  */
3777 #ifdef __cplusplus
3778 extern "C"
3779 #endif
3780 /* We use char because int might match the return type of a gcc2
3781    builtin and then its argument prototype would still apply.  */
3782 char remove ();
3783 int
3784 main ()
3785 {
3786 remove ();
3787   ;
3788   return 0;
3789 }
3790 _ACEOF
3791 rm -f conftest.$ac_objext conftest$ac_exeext
3792 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3793   (eval $ac_link) 2>conftest.er1
3794   ac_status=$?
3795   grep -v '^ *+' conftest.er1 >conftest.err
3796   rm -f conftest.er1
3797   cat conftest.err >&5
3798   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3799   (exit $ac_status); } &&
3800          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3801   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3802   (eval $ac_try) 2>&5
3803   ac_status=$?
3804   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3805   (exit $ac_status); }; } &&
3806          { ac_try='test -s conftest$ac_exeext'
3807   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3808   (eval $ac_try) 2>&5
3809   ac_status=$?
3810   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3811   (exit $ac_status); }; }; then
3812   ac_cv_lib_posix_remove=yes
3813 else
3814   echo "$as_me: failed program was:" >&5
3815 sed 's/^/| /' conftest.$ac_ext >&5
3816
3817 ac_cv_lib_posix_remove=no
3818 fi
3819 rm -f conftest.err conftest.$ac_objext \
3820       conftest$ac_exeext conftest.$ac_ext
3821 LIBS=$ac_check_lib_save_LIBS
3822 fi
3823 echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
3824 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
3825 if test $ac_cv_lib_posix_remove = yes; then
3826   X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
3827 fi
3828
3829     fi
3830
3831     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
3832     echo "$as_me:$LINENO: checking for shmat" >&5
3833 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
3834 if test "${ac_cv_func_shmat+set}" = set; then
3835   echo $ECHO_N "(cached) $ECHO_C" >&6
3836 else
3837   cat >conftest.$ac_ext <<_ACEOF
3838 /* confdefs.h.  */
3839 _ACEOF
3840 cat confdefs.h >>conftest.$ac_ext
3841 cat >>conftest.$ac_ext <<_ACEOF
3842 /* end confdefs.h.  */
3843 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
3844    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
3845 #define shmat innocuous_shmat
3846
3847 /* System header to define __stub macros and hopefully few prototypes,
3848     which can conflict with char shmat (); below.
3849     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3850     <limits.h> exists even on freestanding compilers.  */
3851
3852 #ifdef __STDC__
3853 # include <limits.h>
3854 #else
3855 # include <assert.h>
3856 #endif
3857
3858 #undef shmat
3859
3860 /* Override any gcc2 internal prototype to avoid an error.  */
3861 #ifdef __cplusplus
3862 extern "C"
3863 {
3864 #endif
3865 /* We use char because int might match the return type of a gcc2
3866    builtin and then its argument prototype would still apply.  */
3867 char shmat ();
3868 /* The GNU C library defines this for functions which it implements
3869     to always fail with ENOSYS.  Some functions are actually named
3870     something starting with __ and the normal name is an alias.  */
3871 #if defined (__stub_shmat) || defined (__stub___shmat)
3872 choke me
3873 #else
3874 char (*f) () = shmat;
3875 #endif
3876 #ifdef __cplusplus
3877 }
3878 #endif
3879
3880 int
3881 main ()
3882 {
3883 return f != shmat;
3884   ;
3885   return 0;
3886 }
3887 _ACEOF
3888 rm -f conftest.$ac_objext conftest$ac_exeext
3889 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3890   (eval $ac_link) 2>conftest.er1
3891   ac_status=$?
3892   grep -v '^ *+' conftest.er1 >conftest.err
3893   rm -f conftest.er1
3894   cat conftest.err >&5
3895   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3896   (exit $ac_status); } &&
3897          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3898   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3899   (eval $ac_try) 2>&5
3900   ac_status=$?
3901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3902   (exit $ac_status); }; } &&
3903          { ac_try='test -s conftest$ac_exeext'
3904   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3905   (eval $ac_try) 2>&5
3906   ac_status=$?
3907   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3908   (exit $ac_status); }; }; then
3909   ac_cv_func_shmat=yes
3910 else
3911   echo "$as_me: failed program was:" >&5
3912 sed 's/^/| /' conftest.$ac_ext >&5
3913
3914 ac_cv_func_shmat=no
3915 fi
3916 rm -f conftest.err conftest.$ac_objext \
3917       conftest$ac_exeext conftest.$ac_ext
3918 fi
3919 echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
3920 echo "${ECHO_T}$ac_cv_func_shmat" >&6
3921
3922     if test $ac_cv_func_shmat = no; then
3923       echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
3924 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
3925 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
3926   echo $ECHO_N "(cached) $ECHO_C" >&6
3927 else
3928   ac_check_lib_save_LIBS=$LIBS
3929 LIBS="-lipc  $LIBS"
3930 cat >conftest.$ac_ext <<_ACEOF
3931 /* confdefs.h.  */
3932 _ACEOF
3933 cat confdefs.h >>conftest.$ac_ext
3934 cat >>conftest.$ac_ext <<_ACEOF
3935 /* end confdefs.h.  */
3936
3937 /* Override any gcc2 internal prototype to avoid an error.  */
3938 #ifdef __cplusplus
3939 extern "C"
3940 #endif
3941 /* We use char because int might match the return type of a gcc2
3942    builtin and then its argument prototype would still apply.  */
3943 char shmat ();
3944 int
3945 main ()
3946 {
3947 shmat ();
3948   ;
3949   return 0;
3950 }
3951 _ACEOF
3952 rm -f conftest.$ac_objext conftest$ac_exeext
3953 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3954   (eval $ac_link) 2>conftest.er1
3955   ac_status=$?
3956   grep -v '^ *+' conftest.er1 >conftest.err
3957   rm -f conftest.er1
3958   cat conftest.err >&5
3959   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3960   (exit $ac_status); } &&
3961          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3962   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3963   (eval $ac_try) 2>&5
3964   ac_status=$?
3965   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3966   (exit $ac_status); }; } &&
3967          { ac_try='test -s conftest$ac_exeext'
3968   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3969   (eval $ac_try) 2>&5
3970   ac_status=$?
3971   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3972   (exit $ac_status); }; }; then
3973   ac_cv_lib_ipc_shmat=yes
3974 else
3975   echo "$as_me: failed program was:" >&5
3976 sed 's/^/| /' conftest.$ac_ext >&5
3977
3978 ac_cv_lib_ipc_shmat=no
3979 fi
3980 rm -f conftest.err conftest.$ac_objext \
3981       conftest$ac_exeext conftest.$ac_ext
3982 LIBS=$ac_check_lib_save_LIBS
3983 fi
3984 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
3985 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
3986 if test $ac_cv_lib_ipc_shmat = yes; then
3987   X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
3988 fi
3989
3990     fi
3991   fi
3992
3993   # Check for libraries that X11R6 Xt/Xaw programs need.
3994   ac_save_LDFLAGS=$LDFLAGS
3995   test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
3996   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
3997   # check for ICE first), but we must link in the order -lSM -lICE or
3998   # we get undefined symbols.  So assume we have SM if we have ICE.
3999   # These have to be linked with before -lX11, unlike the other
4000   # libraries we check for below, so use a different variable.
4001   # John Interrante, Karl Berry
4002   echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
4003 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
4004 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
4005   echo $ECHO_N "(cached) $ECHO_C" >&6
4006 else
4007   ac_check_lib_save_LIBS=$LIBS
4008 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
4009 cat >conftest.$ac_ext <<_ACEOF
4010 /* confdefs.h.  */
4011 _ACEOF
4012 cat confdefs.h >>conftest.$ac_ext
4013 cat >>conftest.$ac_ext <<_ACEOF
4014 /* end confdefs.h.  */
4015
4016 /* Override any gcc2 internal prototype to avoid an error.  */
4017 #ifdef __cplusplus
4018 extern "C"
4019 #endif
4020 /* We use char because int might match the return type of a gcc2
4021    builtin and then its argument prototype would still apply.  */
4022 char IceConnectionNumber ();
4023 int
4024 main ()
4025 {
4026 IceConnectionNumber ();
4027   ;
4028   return 0;
4029 }
4030 _ACEOF
4031 rm -f conftest.$ac_objext conftest$ac_exeext
4032 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4033   (eval $ac_link) 2>conftest.er1
4034   ac_status=$?
4035   grep -v '^ *+' conftest.er1 >conftest.err
4036   rm -f conftest.er1
4037   cat conftest.err >&5
4038   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4039   (exit $ac_status); } &&
4040          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4041   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4042   (eval $ac_try) 2>&5
4043   ac_status=$?
4044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4045   (exit $ac_status); }; } &&
4046          { ac_try='test -s conftest$ac_exeext'
4047   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4048   (eval $ac_try) 2>&5
4049   ac_status=$?
4050   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4051   (exit $ac_status); }; }; then
4052   ac_cv_lib_ICE_IceConnectionNumber=yes
4053 else
4054   echo "$as_me: failed program was:" >&5
4055 sed 's/^/| /' conftest.$ac_ext >&5
4056
4057 ac_cv_lib_ICE_IceConnectionNumber=no
4058 fi
4059 rm -f conftest.err conftest.$ac_objext \
4060       conftest$ac_exeext conftest.$ac_ext
4061 LIBS=$ac_check_lib_save_LIBS
4062 fi
4063 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
4064 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
4065 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
4066   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
4067 fi
4068
4069   LDFLAGS=$ac_save_LDFLAGS
4070
4071 fi
4072
4073 for ac_prog in 'bison -y' byacc
4074 do
4075   # Extract the first word of "$ac_prog", so it can be a program name with args.
4076 set dummy $ac_prog; ac_word=$2
4077 echo "$as_me:$LINENO: checking for $ac_word" >&5
4078 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4079 if test "${ac_cv_prog_YACC+set}" = set; then
4080   echo $ECHO_N "(cached) $ECHO_C" >&6
4081 else
4082   if test -n "$YACC"; then
4083   ac_cv_prog_YACC="$YACC" # Let the user override the test.
4084 else
4085 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4086 for as_dir in $PATH
4087 do
4088   IFS=$as_save_IFS
4089   test -z "$as_dir" && as_dir=.
4090   for ac_exec_ext in '' $ac_executable_extensions; do
4091   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4092     ac_cv_prog_YACC="$ac_prog"
4093     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4094     break 2
4095   fi
4096 done
4097 done
4098
4099 fi
4100 fi
4101 YACC=$ac_cv_prog_YACC
4102 if test -n "$YACC"; then
4103   echo "$as_me:$LINENO: result: $YACC" >&5
4104 echo "${ECHO_T}$YACC" >&6
4105 else
4106   echo "$as_me:$LINENO: result: no" >&5
4107 echo "${ECHO_T}no" >&6
4108 fi
4109
4110   test -n "$YACC" && break
4111 done
4112 test -n "$YACC" || YACC="yacc"
4113
4114 for ac_prog in flex lex
4115 do
4116   # Extract the first word of "$ac_prog", so it can be a program name with args.
4117 set dummy $ac_prog; ac_word=$2
4118 echo "$as_me:$LINENO: checking for $ac_word" >&5
4119 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4120 if test "${ac_cv_prog_LEX+set}" = set; then
4121   echo $ECHO_N "(cached) $ECHO_C" >&6
4122 else
4123   if test -n "$LEX"; then
4124   ac_cv_prog_LEX="$LEX" # Let the user override the test.
4125 else
4126 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4127 for as_dir in $PATH
4128 do
4129   IFS=$as_save_IFS
4130   test -z "$as_dir" && as_dir=.
4131   for ac_exec_ext in '' $ac_executable_extensions; do
4132   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4133     ac_cv_prog_LEX="$ac_prog"
4134     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4135     break 2
4136   fi
4137 done
4138 done
4139
4140 fi
4141 fi
4142 LEX=$ac_cv_prog_LEX
4143 if test -n "$LEX"; then
4144   echo "$as_me:$LINENO: result: $LEX" >&5
4145 echo "${ECHO_T}$LEX" >&6
4146 else
4147   echo "$as_me:$LINENO: result: no" >&5
4148 echo "${ECHO_T}no" >&6
4149 fi
4150
4151   test -n "$LEX" && break
4152 done
4153 test -n "$LEX" || LEX=":"
4154
4155 if test -z "$LEXLIB"
4156 then
4157   echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
4158 echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
4159 if test "${ac_cv_lib_fl_yywrap+set}" = set; then
4160   echo $ECHO_N "(cached) $ECHO_C" >&6
4161 else
4162   ac_check_lib_save_LIBS=$LIBS
4163 LIBS="-lfl  $LIBS"
4164 cat >conftest.$ac_ext <<_ACEOF
4165 /* confdefs.h.  */
4166 _ACEOF
4167 cat confdefs.h >>conftest.$ac_ext
4168 cat >>conftest.$ac_ext <<_ACEOF
4169 /* end confdefs.h.  */
4170
4171 /* Override any gcc2 internal prototype to avoid an error.  */
4172 #ifdef __cplusplus
4173 extern "C"
4174 #endif
4175 /* We use char because int might match the return type of a gcc2
4176    builtin and then its argument prototype would still apply.  */
4177 char yywrap ();
4178 int
4179 main ()
4180 {
4181 yywrap ();
4182   ;
4183   return 0;
4184 }
4185 _ACEOF
4186 rm -f conftest.$ac_objext conftest$ac_exeext
4187 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4188   (eval $ac_link) 2>conftest.er1
4189   ac_status=$?
4190   grep -v '^ *+' conftest.er1 >conftest.err
4191   rm -f conftest.er1
4192   cat conftest.err >&5
4193   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4194   (exit $ac_status); } &&
4195          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4196   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4197   (eval $ac_try) 2>&5
4198   ac_status=$?
4199   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4200   (exit $ac_status); }; } &&
4201          { ac_try='test -s conftest$ac_exeext'
4202   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4203   (eval $ac_try) 2>&5
4204   ac_status=$?
4205   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4206   (exit $ac_status); }; }; then
4207   ac_cv_lib_fl_yywrap=yes
4208 else
4209   echo "$as_me: failed program was:" >&5
4210 sed 's/^/| /' conftest.$ac_ext >&5
4211
4212 ac_cv_lib_fl_yywrap=no
4213 fi
4214 rm -f conftest.err conftest.$ac_objext \
4215       conftest$ac_exeext conftest.$ac_ext
4216 LIBS=$ac_check_lib_save_LIBS
4217 fi
4218 echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
4219 echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
4220 if test $ac_cv_lib_fl_yywrap = yes; then
4221   LEXLIB="-lfl"
4222 else
4223   echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
4224 echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
4225 if test "${ac_cv_lib_l_yywrap+set}" = set; then
4226   echo $ECHO_N "(cached) $ECHO_C" >&6
4227 else
4228   ac_check_lib_save_LIBS=$LIBS
4229 LIBS="-ll  $LIBS"
4230 cat >conftest.$ac_ext <<_ACEOF
4231 /* confdefs.h.  */
4232 _ACEOF
4233 cat confdefs.h >>conftest.$ac_ext
4234 cat >>conftest.$ac_ext <<_ACEOF
4235 /* end confdefs.h.  */
4236
4237 /* Override any gcc2 internal prototype to avoid an error.  */
4238 #ifdef __cplusplus
4239 extern "C"
4240 #endif
4241 /* We use char because int might match the return type of a gcc2
4242    builtin and then its argument prototype would still apply.  */
4243 char yywrap ();
4244 int
4245 main ()
4246 {
4247 yywrap ();
4248   ;
4249   return 0;
4250 }
4251 _ACEOF
4252 rm -f conftest.$ac_objext conftest$ac_exeext
4253 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4254   (eval $ac_link) 2>conftest.er1
4255   ac_status=$?
4256   grep -v '^ *+' conftest.er1 >conftest.err
4257   rm -f conftest.er1
4258   cat conftest.err >&5
4259   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4260   (exit $ac_status); } &&
4261          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4262   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4263   (eval $ac_try) 2>&5
4264   ac_status=$?
4265   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4266   (exit $ac_status); }; } &&
4267          { ac_try='test -s conftest$ac_exeext'
4268   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4269   (eval $ac_try) 2>&5
4270   ac_status=$?
4271   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4272   (exit $ac_status); }; }; then
4273   ac_cv_lib_l_yywrap=yes
4274 else
4275   echo "$as_me: failed program was:" >&5
4276 sed 's/^/| /' conftest.$ac_ext >&5
4277
4278 ac_cv_lib_l_yywrap=no
4279 fi
4280 rm -f conftest.err conftest.$ac_objext \
4281       conftest$ac_exeext conftest.$ac_ext
4282 LIBS=$ac_check_lib_save_LIBS
4283 fi
4284 echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
4285 echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
4286 if test $ac_cv_lib_l_yywrap = yes; then
4287   LEXLIB="-ll"
4288 fi
4289
4290 fi
4291
4292 fi
4293
4294 if test "x$LEX" != "x:"; then
4295   echo "$as_me:$LINENO: checking lex output file root" >&5
4296 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
4297 if test "${ac_cv_prog_lex_root+set}" = set; then
4298   echo $ECHO_N "(cached) $ECHO_C" >&6
4299 else
4300   # The minimal lex program is just a single line: %%.  But some broken lexes
4301 # (Solaris, I think it was) want two %% lines, so accommodate them.
4302 cat >conftest.l <<_ACEOF
4303 %%
4304 %%
4305 _ACEOF
4306 { (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
4307   (eval $LEX conftest.l) 2>&5
4308   ac_status=$?
4309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4310   (exit $ac_status); }
4311 if test -f lex.yy.c; then
4312   ac_cv_prog_lex_root=lex.yy
4313 elif test -f lexyy.c; then
4314   ac_cv_prog_lex_root=lexyy
4315 else
4316   { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
4317 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
4318    { (exit 1); exit 1; }; }
4319 fi
4320 fi
4321 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
4322 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
4323 rm -f conftest.l
4324 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
4325
4326 echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
4327 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
4328 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
4329   echo $ECHO_N "(cached) $ECHO_C" >&6
4330 else
4331   # POSIX says lex can declare yytext either as a pointer or an array; the
4332 # default is implementation-dependent. Figure out which it is, since
4333 # not all implementations provide the %pointer and %array declarations.
4334 ac_cv_prog_lex_yytext_pointer=no
4335 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
4336 ac_save_LIBS=$LIBS
4337 LIBS="$LIBS $LEXLIB"
4338 cat >conftest.$ac_ext <<_ACEOF
4339 `cat $LEX_OUTPUT_ROOT.c`
4340 _ACEOF
4341 rm -f conftest.$ac_objext conftest$ac_exeext
4342 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4343   (eval $ac_link) 2>conftest.er1
4344   ac_status=$?
4345   grep -v '^ *+' conftest.er1 >conftest.err
4346   rm -f conftest.er1
4347   cat conftest.err >&5
4348   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4349   (exit $ac_status); } &&
4350          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4351   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4352   (eval $ac_try) 2>&5
4353   ac_status=$?
4354   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4355   (exit $ac_status); }; } &&
4356          { ac_try='test -s conftest$ac_exeext'
4357   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4358   (eval $ac_try) 2>&5
4359   ac_status=$?
4360   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4361   (exit $ac_status); }; }; then
4362   ac_cv_prog_lex_yytext_pointer=yes
4363 else
4364   echo "$as_me: failed program was:" >&5
4365 sed 's/^/| /' conftest.$ac_ext >&5
4366
4367 fi
4368 rm -f conftest.err conftest.$ac_objext \
4369       conftest$ac_exeext conftest.$ac_ext
4370 LIBS=$ac_save_LIBS
4371 rm -f "${LEX_OUTPUT_ROOT}.c"
4372
4373 fi
4374 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
4375 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
4376 if test $ac_cv_prog_lex_yytext_pointer = yes; then
4377
4378 cat >>confdefs.h <<\_ACEOF
4379 #define YYTEXT_POINTER 1
4380 _ACEOF
4381
4382 fi
4383
4384 fi
4385
4386 for ac_prog in $YACC bison yacc
4387 do
4388   # Extract the first word of "$ac_prog", so it can be a program name with args.
4389 set dummy $ac_prog; ac_word=$2
4390 echo "$as_me:$LINENO: checking for $ac_word" >&5
4391 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4392 if test "${ac_cv_prog_XYACC+set}" = set; then
4393   echo $ECHO_N "(cached) $ECHO_C" >&6
4394 else
4395   if test -n "$XYACC"; then
4396   ac_cv_prog_XYACC="$XYACC" # Let the user override the test.
4397 else
4398 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4399 for as_dir in $PATH
4400 do
4401   IFS=$as_save_IFS
4402   test -z "$as_dir" && as_dir=.
4403   for ac_exec_ext in '' $ac_executable_extensions; do
4404   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4405     ac_cv_prog_XYACC="$ac_prog"
4406     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4407     break 2
4408   fi
4409 done
4410 done
4411
4412 fi
4413 fi
4414 XYACC=$ac_cv_prog_XYACC
4415 if test -n "$XYACC"; then
4416   echo "$as_me:$LINENO: result: $XYACC" >&5
4417 echo "${ECHO_T}$XYACC" >&6
4418 else
4419   echo "$as_me:$LINENO: result: no" >&5
4420 echo "${ECHO_T}no" >&6
4421 fi
4422
4423   test -n "$XYACC" && break
4424 done
4425 test -n "$XYACC" || XYACC="none"
4426
4427 if test "$XYACC" = "none"
4428 then
4429   { { echo "$as_me:$LINENO: error: no suitable bison/yacc found. Please install the 'bison' package." >&5
4430 echo "$as_me: error: no suitable bison/yacc found. Please install the 'bison' package." >&2;}
4431    { (exit 1); exit 1; }; }
4432 fi
4433 for ac_prog in $LEX flex lex
4434 do
4435   # Extract the first word of "$ac_prog", so it can be a program name with args.
4436 set dummy $ac_prog; ac_word=$2
4437 echo "$as_me:$LINENO: checking for $ac_word" >&5
4438 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4439 if test "${ac_cv_prog_XLEX+set}" = set; then
4440   echo $ECHO_N "(cached) $ECHO_C" >&6
4441 else
4442   if test -n "$XLEX"; then
4443   ac_cv_prog_XLEX="$XLEX" # Let the user override the test.
4444 else
4445 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4446 for as_dir in $PATH
4447 do
4448   IFS=$as_save_IFS
4449   test -z "$as_dir" && as_dir=.
4450   for ac_exec_ext in '' $ac_executable_extensions; do
4451   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4452     ac_cv_prog_XLEX="$ac_prog"
4453     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4454     break 2
4455   fi
4456 done
4457 done
4458
4459 fi
4460 fi
4461 XLEX=$ac_cv_prog_XLEX
4462 if test -n "$XLEX"; then
4463   echo "$as_me:$LINENO: result: $XLEX" >&5
4464 echo "${ECHO_T}$XLEX" >&6
4465 else
4466   echo "$as_me:$LINENO: result: no" >&5
4467 echo "${ECHO_T}no" >&6
4468 fi
4469
4470   test -n "$XLEX" && break
4471 done
4472 test -n "$XLEX" || XLEX="none"
4473
4474 if test "$XLEX" = "none"
4475 then
4476   { { echo "$as_me:$LINENO: error: no suitable lex found. Please install the 'flex' package." >&5
4477 echo "$as_me: error: no suitable lex found. Please install the 'flex' package." >&2;}
4478    { (exit 1); exit 1; }; }
4479 fi
4480
4481 if test -n "$ac_tool_prefix"; then
4482   for ac_prog in gas as
4483   do
4484     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4485 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4486 echo "$as_me:$LINENO: checking for $ac_word" >&5
4487 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4488 if test "${ac_cv_prog_AS+set}" = set; then
4489   echo $ECHO_N "(cached) $ECHO_C" >&6
4490 else
4491   if test -n "$AS"; then
4492   ac_cv_prog_AS="$AS" # Let the user override the test.
4493 else
4494 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4495 for as_dir in $PATH
4496 do
4497   IFS=$as_save_IFS
4498   test -z "$as_dir" && as_dir=.
4499   for ac_exec_ext in '' $ac_executable_extensions; do
4500   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4501     ac_cv_prog_AS="$ac_tool_prefix$ac_prog"
4502     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4503     break 2
4504   fi
4505 done
4506 done
4507
4508 fi
4509 fi
4510 AS=$ac_cv_prog_AS
4511 if test -n "$AS"; then
4512   echo "$as_me:$LINENO: result: $AS" >&5
4513 echo "${ECHO_T}$AS" >&6
4514 else
4515   echo "$as_me:$LINENO: result: no" >&5
4516 echo "${ECHO_T}no" >&6
4517 fi
4518
4519     test -n "$AS" && break
4520   done
4521 fi
4522 if test -z "$AS"; then
4523   ac_ct_AS=$AS
4524   for ac_prog in gas as
4525 do
4526   # Extract the first word of "$ac_prog", so it can be a program name with args.
4527 set dummy $ac_prog; ac_word=$2
4528 echo "$as_me:$LINENO: checking for $ac_word" >&5
4529 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4530 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
4531   echo $ECHO_N "(cached) $ECHO_C" >&6
4532 else
4533   if test -n "$ac_ct_AS"; then
4534   ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
4535 else
4536 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4537 for as_dir in $PATH
4538 do
4539   IFS=$as_save_IFS
4540   test -z "$as_dir" && as_dir=.
4541   for ac_exec_ext in '' $ac_executable_extensions; do
4542   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4543     ac_cv_prog_ac_ct_AS="$ac_prog"
4544     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4545     break 2
4546   fi
4547 done
4548 done
4549
4550 fi
4551 fi
4552 ac_ct_AS=$ac_cv_prog_ac_ct_AS
4553 if test -n "$ac_ct_AS"; then
4554   echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
4555 echo "${ECHO_T}$ac_ct_AS" >&6
4556 else
4557   echo "$as_me:$LINENO: result: no" >&5
4558 echo "${ECHO_T}no" >&6
4559 fi
4560
4561   test -n "$ac_ct_AS" && break
4562 done
4563 test -n "$ac_ct_AS" || ac_ct_AS="as"
4564
4565   AS=$ac_ct_AS
4566 fi
4567
4568 if test -n "$ac_tool_prefix"; then
4569   # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
4570 set dummy ${ac_tool_prefix}ld; ac_word=$2
4571 echo "$as_me:$LINENO: checking for $ac_word" >&5
4572 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4573 if test "${ac_cv_prog_LD+set}" = set; then
4574   echo $ECHO_N "(cached) $ECHO_C" >&6
4575 else
4576   if test -n "$LD"; then
4577   ac_cv_prog_LD="$LD" # Let the user override the test.
4578 else
4579 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4580 for as_dir in $PATH
4581 do
4582   IFS=$as_save_IFS
4583   test -z "$as_dir" && as_dir=.
4584   for ac_exec_ext in '' $ac_executable_extensions; do
4585   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4586     ac_cv_prog_LD="${ac_tool_prefix}ld"
4587     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4588     break 2
4589   fi
4590 done
4591 done
4592
4593 fi
4594 fi
4595 LD=$ac_cv_prog_LD
4596 if test -n "$LD"; then
4597   echo "$as_me:$LINENO: result: $LD" >&5
4598 echo "${ECHO_T}$LD" >&6
4599 else
4600   echo "$as_me:$LINENO: result: no" >&5
4601 echo "${ECHO_T}no" >&6
4602 fi
4603
4604 fi
4605 if test -z "$ac_cv_prog_LD"; then
4606   ac_ct_LD=$LD
4607   # Extract the first word of "ld", so it can be a program name with args.
4608 set dummy ld; ac_word=$2
4609 echo "$as_me:$LINENO: checking for $ac_word" >&5
4610 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4611 if test "${ac_cv_prog_ac_ct_LD+set}" = set; then
4612   echo $ECHO_N "(cached) $ECHO_C" >&6
4613 else
4614   if test -n "$ac_ct_LD"; then
4615   ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test.
4616 else
4617 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4618 for as_dir in $PATH
4619 do
4620   IFS=$as_save_IFS
4621   test -z "$as_dir" && as_dir=.
4622   for ac_exec_ext in '' $ac_executable_extensions; do
4623   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4624     ac_cv_prog_ac_ct_LD="ld"
4625     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4626     break 2
4627   fi
4628 done
4629 done
4630
4631   test -z "$ac_cv_prog_ac_ct_LD" && ac_cv_prog_ac_ct_LD="ld"
4632 fi
4633 fi
4634 ac_ct_LD=$ac_cv_prog_ac_ct_LD
4635 if test -n "$ac_ct_LD"; then
4636   echo "$as_me:$LINENO: result: $ac_ct_LD" >&5
4637 echo "${ECHO_T}$ac_ct_LD" >&6
4638 else
4639   echo "$as_me:$LINENO: result: no" >&5
4640 echo "${ECHO_T}no" >&6
4641 fi
4642
4643   LD=$ac_ct_LD
4644 else
4645   LD="$ac_cv_prog_LD"
4646 fi
4647
4648 if test -n "$ac_tool_prefix"; then
4649   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4650 set dummy ${ac_tool_prefix}ar; ac_word=$2
4651 echo "$as_me:$LINENO: checking for $ac_word" >&5
4652 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4653 if test "${ac_cv_prog_AR+set}" = set; then
4654   echo $ECHO_N "(cached) $ECHO_C" >&6
4655 else
4656   if test -n "$AR"; then
4657   ac_cv_prog_AR="$AR" # Let the user override the test.
4658 else
4659 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4660 for as_dir in $PATH
4661 do
4662   IFS=$as_save_IFS
4663   test -z "$as_dir" && as_dir=.
4664   for ac_exec_ext in '' $ac_executable_extensions; do
4665   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4666     ac_cv_prog_AR="${ac_tool_prefix}ar"
4667     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4668     break 2
4669   fi
4670 done
4671 done
4672
4673 fi
4674 fi
4675 AR=$ac_cv_prog_AR
4676 if test -n "$AR"; then
4677   echo "$as_me:$LINENO: result: $AR" >&5
4678 echo "${ECHO_T}$AR" >&6
4679 else
4680   echo "$as_me:$LINENO: result: no" >&5
4681 echo "${ECHO_T}no" >&6
4682 fi
4683
4684 fi
4685 if test -z "$ac_cv_prog_AR"; then
4686   ac_ct_AR=$AR
4687   # Extract the first word of "ar", so it can be a program name with args.
4688 set dummy ar; ac_word=$2
4689 echo "$as_me:$LINENO: checking for $ac_word" >&5
4690 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4691 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
4692   echo $ECHO_N "(cached) $ECHO_C" >&6
4693 else
4694   if test -n "$ac_ct_AR"; then
4695   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4696 else
4697 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4698 for as_dir in $PATH
4699 do
4700   IFS=$as_save_IFS
4701   test -z "$as_dir" && as_dir=.
4702   for ac_exec_ext in '' $ac_executable_extensions; do
4703   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4704     ac_cv_prog_ac_ct_AR="ar"
4705     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4706     break 2
4707   fi
4708 done
4709 done
4710
4711   test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar"
4712 fi
4713 fi
4714 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4715 if test -n "$ac_ct_AR"; then
4716   echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
4717 echo "${ECHO_T}$ac_ct_AR" >&6
4718 else
4719   echo "$as_me:$LINENO: result: no" >&5
4720 echo "${ECHO_T}no" >&6
4721 fi
4722
4723   AR=$ac_ct_AR
4724 else
4725   AR="$ac_cv_prog_AR"
4726 fi
4727
4728 if test -n "$ac_tool_prefix"; then
4729   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4730 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4731 echo "$as_me:$LINENO: checking for $ac_word" >&5
4732 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4733 if test "${ac_cv_prog_RANLIB+set}" = set; then
4734   echo $ECHO_N "(cached) $ECHO_C" >&6
4735 else
4736   if test -n "$RANLIB"; then
4737   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4738 else
4739 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4740 for as_dir in $PATH
4741 do
4742   IFS=$as_save_IFS
4743   test -z "$as_dir" && as_dir=.
4744   for ac_exec_ext in '' $ac_executable_extensions; do
4745   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4746     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4747     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4748     break 2
4749   fi
4750 done
4751 done
4752
4753 fi
4754 fi
4755 RANLIB=$ac_cv_prog_RANLIB
4756 if test -n "$RANLIB"; then
4757   echo "$as_me:$LINENO: result: $RANLIB" >&5
4758 echo "${ECHO_T}$RANLIB" >&6
4759 else
4760   echo "$as_me:$LINENO: result: no" >&5
4761 echo "${ECHO_T}no" >&6
4762 fi
4763
4764 fi
4765 if test -z "$ac_cv_prog_RANLIB"; then
4766   ac_ct_RANLIB=$RANLIB
4767   # Extract the first word of "ranlib", so it can be a program name with args.
4768 set dummy ranlib; ac_word=$2
4769 echo "$as_me:$LINENO: checking for $ac_word" >&5
4770 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4771 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4772   echo $ECHO_N "(cached) $ECHO_C" >&6
4773 else
4774   if test -n "$ac_ct_RANLIB"; then
4775   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4776 else
4777 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4778 for as_dir in $PATH
4779 do
4780   IFS=$as_save_IFS
4781   test -z "$as_dir" && as_dir=.
4782   for ac_exec_ext in '' $ac_executable_extensions; do
4783   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4784     ac_cv_prog_ac_ct_RANLIB="ranlib"
4785     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4786     break 2
4787   fi
4788 done
4789 done
4790
4791   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4792 fi
4793 fi
4794 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4795 if test -n "$ac_ct_RANLIB"; then
4796   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4797 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4798 else
4799   echo "$as_me:$LINENO: result: no" >&5
4800 echo "${ECHO_T}no" >&6
4801 fi
4802
4803   RANLIB=$ac_ct_RANLIB
4804 else
4805   RANLIB="$ac_cv_prog_RANLIB"
4806 fi
4807
4808 if test -n "$ac_tool_prefix"; then
4809   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4810 set dummy ${ac_tool_prefix}strip; 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_STRIP+set}" = set; then
4814   echo $ECHO_N "(cached) $ECHO_C" >&6
4815 else
4816   if test -n "$STRIP"; then
4817   ac_cv_prog_STRIP="$STRIP" # 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_STRIP="${ac_tool_prefix}strip"
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 STRIP=$ac_cv_prog_STRIP
4836 if test -n "$STRIP"; then
4837   echo "$as_me:$LINENO: result: $STRIP" >&5
4838 echo "${ECHO_T}$STRIP" >&6
4839 else
4840   echo "$as_me:$LINENO: result: no" >&5
4841 echo "${ECHO_T}no" >&6
4842 fi
4843
4844 fi
4845 if test -z "$ac_cv_prog_STRIP"; then
4846   ac_ct_STRIP=$STRIP
4847   # Extract the first word of "strip", so it can be a program name with args.
4848 set dummy strip; ac_word=$2
4849 echo "$as_me:$LINENO: checking for $ac_word" >&5
4850 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4851 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4852   echo $ECHO_N "(cached) $ECHO_C" >&6
4853 else
4854   if test -n "$ac_ct_STRIP"; then
4855   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4856 else
4857 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4858 for as_dir in $PATH
4859 do
4860   IFS=$as_save_IFS
4861   test -z "$as_dir" && as_dir=.
4862   for ac_exec_ext in '' $ac_executable_extensions; do
4863   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4864     ac_cv_prog_ac_ct_STRIP="strip"
4865     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4866     break 2
4867   fi
4868 done
4869 done
4870
4871   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP="strip"
4872 fi
4873 fi
4874 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4875 if test -n "$ac_ct_STRIP"; then
4876   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4877 echo "${ECHO_T}$ac_ct_STRIP" >&6
4878 else
4879   echo "$as_me:$LINENO: result: no" >&5
4880 echo "${ECHO_T}no" >&6
4881 fi
4882
4883   STRIP=$ac_ct_STRIP
4884 else
4885   STRIP="$ac_cv_prog_STRIP"
4886 fi
4887
4888 if test -n "$ac_tool_prefix"; then
4889   # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
4890 set dummy ${ac_tool_prefix}windres; ac_word=$2
4891 echo "$as_me:$LINENO: checking for $ac_word" >&5
4892 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4893 if test "${ac_cv_prog_WINDRES+set}" = set; then
4894   echo $ECHO_N "(cached) $ECHO_C" >&6
4895 else
4896   if test -n "$WINDRES"; then
4897   ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
4898 else
4899 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4900 for as_dir in $PATH
4901 do
4902   IFS=$as_save_IFS
4903   test -z "$as_dir" && as_dir=.
4904   for ac_exec_ext in '' $ac_executable_extensions; do
4905   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4906     ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
4907     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4908     break 2
4909   fi
4910 done
4911 done
4912
4913 fi
4914 fi
4915 WINDRES=$ac_cv_prog_WINDRES
4916 if test -n "$WINDRES"; then
4917   echo "$as_me:$LINENO: result: $WINDRES" >&5
4918 echo "${ECHO_T}$WINDRES" >&6
4919 else
4920   echo "$as_me:$LINENO: result: no" >&5
4921 echo "${ECHO_T}no" >&6
4922 fi
4923
4924 fi
4925 if test -z "$ac_cv_prog_WINDRES"; then
4926   ac_ct_WINDRES=$WINDRES
4927   # Extract the first word of "windres", so it can be a program name with args.
4928 set dummy windres; ac_word=$2
4929 echo "$as_me:$LINENO: checking for $ac_word" >&5
4930 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4931 if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
4932   echo $ECHO_N "(cached) $ECHO_C" >&6
4933 else
4934   if test -n "$ac_ct_WINDRES"; then
4935   ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
4936 else
4937 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4938 for as_dir in $PATH
4939 do
4940   IFS=$as_save_IFS
4941   test -z "$as_dir" && as_dir=.
4942   for ac_exec_ext in '' $ac_executable_extensions; do
4943   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4944     ac_cv_prog_ac_ct_WINDRES="windres"
4945     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4946     break 2
4947   fi
4948 done
4949 done
4950
4951   test -z "$ac_cv_prog_ac_ct_WINDRES" && ac_cv_prog_ac_ct_WINDRES="false"
4952 fi
4953 fi
4954 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
4955 if test -n "$ac_ct_WINDRES"; then
4956   echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
4957 echo "${ECHO_T}$ac_ct_WINDRES" >&6
4958 else
4959   echo "$as_me:$LINENO: result: no" >&5
4960 echo "${ECHO_T}no" >&6
4961 fi
4962
4963   WINDRES=$ac_ct_WINDRES
4964 else
4965   WINDRES="$ac_cv_prog_WINDRES"
4966 fi
4967
4968 echo "$as_me:$LINENO: checking whether ln -s works" >&5
4969 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4970 LN_S=$as_ln_s
4971 if test "$LN_S" = "ln -s"; then
4972   echo "$as_me:$LINENO: result: yes" >&5
4973 echo "${ECHO_T}yes" >&6
4974 else
4975   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4976 echo "${ECHO_T}no, using $LN_S" >&6
4977 fi
4978
4979 echo "$as_me:$LINENO: checking whether ln works" >&5
4980 echo $ECHO_N "checking whether ln works... $ECHO_C" >&6
4981 rm -f conf$$ conf$$.file
4982 echo >conf$$.file
4983 if ln conf$$.file conf$$ 2>/dev/null; then
4984   LN=ln
4985
4986   echo "$as_me:$LINENO: result: yes" >&5
4987 echo "${ECHO_T}yes" >&6
4988 else
4989   LN="cp -p"
4990
4991   echo "$as_me:$LINENO: result: no, using $LN" >&5
4992 echo "${ECHO_T}no, using $LN" >&6
4993 fi
4994 rm -f conf$$ conf$$.file
4995 # Extract the first word of "ldconfig", so it can be a program name with args.
4996 set dummy ldconfig; ac_word=$2
4997 echo "$as_me:$LINENO: checking for $ac_word" >&5
4998 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4999 if test "${ac_cv_path_LDCONFIG+set}" = set; then
5000   echo $ECHO_N "(cached) $ECHO_C" >&6
5001 else
5002   case $LDCONFIG in
5003   [\\/]* | ?:[\\/]*)
5004   ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
5005   ;;
5006   *)
5007   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5008 for as_dir in /sbin /usr/sbin $PATH
5009 do
5010   IFS=$as_save_IFS
5011   test -z "$as_dir" && as_dir=.
5012   for ac_exec_ext in '' $ac_executable_extensions; do
5013   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5014     ac_cv_path_LDCONFIG="$as_dir/$ac_word$ac_exec_ext"
5015     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5016     break 2
5017   fi
5018 done
5019 done
5020
5021   test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG="true"
5022   ;;
5023 esac
5024 fi
5025 LDCONFIG=$ac_cv_path_LDCONFIG
5026
5027 if test -n "$LDCONFIG"; then
5028   echo "$as_me:$LINENO: result: $LDCONFIG" >&5
5029 echo "${ECHO_T}$LDCONFIG" >&6
5030 else
5031   echo "$as_me:$LINENO: result: no" >&5
5032 echo "${ECHO_T}no" >&6
5033 fi
5034
5035 # Find a good install program.  We prefer a C program (faster),
5036 # so one script is as good as another.  But avoid the broken or
5037 # incompatible versions:
5038 # SysV /etc/install, /usr/sbin/install
5039 # SunOS /usr/etc/install
5040 # IRIX /sbin/install
5041 # AIX /bin/install
5042 # AmigaOS /C/install, which installs bootblocks on floppy discs
5043 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5044 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
5045 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5046 # OS/2's system install, which has a completely different semantic
5047 # ./install, which can be erroneously created by make from ./install.sh.
5048 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
5049 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
5050 if test -z "$INSTALL"; then
5051 if test "${ac_cv_path_install+set}" = set; then
5052   echo $ECHO_N "(cached) $ECHO_C" >&6
5053 else
5054   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5055 for as_dir in $PATH
5056 do
5057   IFS=$as_save_IFS
5058   test -z "$as_dir" && as_dir=.
5059   # Account for people who put trailing slashes in PATH elements.
5060 case $as_dir/ in
5061   ./ | .// | /cC/* | \
5062   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5063   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
5064   /usr/ucb/* ) ;;
5065   *)
5066     # OSF1 and SCO ODT 3.0 have their own names for install.
5067     # Don't use installbsd from OSF since it installs stuff as root
5068     # by default.
5069     for ac_prog in ginstall scoinst install; do
5070       for ac_exec_ext in '' $ac_executable_extensions; do
5071         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
5072           if test $ac_prog = install &&
5073             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5074             # AIX install.  It has an incompatible calling convention.
5075             :
5076           elif test $ac_prog = install &&
5077             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5078             # program-specific install script used by HP pwplus--don't use.
5079             :
5080           else
5081             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5082             break 3
5083           fi
5084         fi
5085       done
5086     done
5087     ;;
5088 esac
5089 done
5090
5091
5092 fi
5093   if test "${ac_cv_path_install+set}" = set; then
5094     INSTALL=$ac_cv_path_install
5095   else
5096     # As a last resort, use the slow shell script.  We don't cache a
5097     # path for INSTALL within a source directory, because that will
5098     # break other packages using the cache if that directory is
5099     # removed, or if the path is relative.
5100     INSTALL=$ac_install_sh
5101   fi
5102 fi
5103 echo "$as_me:$LINENO: result: $INSTALL" >&5
5104 echo "${ECHO_T}$INSTALL" >&6
5105
5106 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5107 # It thinks the first close brace ends the variable substitution.
5108 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5109
5110 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5111
5112 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5113
5114 case "$INSTALL" in
5115   [\\/$]* | ?:[\\/]* ) ;;
5116   *)  INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;;
5117 esac
5118
5119 for ac_prog in lclint lint
5120 do
5121   # Extract the first word of "$ac_prog", so it can be a program name with args.
5122 set dummy $ac_prog; ac_word=$2
5123 echo "$as_me:$LINENO: checking for $ac_word" >&5
5124 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5125 if test "${ac_cv_prog_LINT+set}" = set; then
5126   echo $ECHO_N "(cached) $ECHO_C" >&6
5127 else
5128   if test -n "$LINT"; then
5129   ac_cv_prog_LINT="$LINT" # Let the user override the test.
5130 else
5131 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5132 for as_dir in $PATH
5133 do
5134   IFS=$as_save_IFS
5135   test -z "$as_dir" && as_dir=.
5136   for ac_exec_ext in '' $ac_executable_extensions; do
5137   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5138     ac_cv_prog_LINT="$ac_prog"
5139     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5140     break 2
5141   fi
5142 done
5143 done
5144
5145 fi
5146 fi
5147 LINT=$ac_cv_prog_LINT
5148 if test -n "$LINT"; then
5149   echo "$as_me:$LINENO: result: $LINT" >&5
5150 echo "${ECHO_T}$LINT" >&6
5151 else
5152   echo "$as_me:$LINENO: result: no" >&5
5153 echo "${ECHO_T}no" >&6
5154 fi
5155
5156   test -n "$LINT" && break
5157 done
5158
5159 if test "$LINT" = "lint"
5160 then
5161   LINTFLAGS="$LINTFLAGS -errchk=%all,no%longptr64 -errhdr=%user -Ncheck=macro -Nlevel=4"
5162   fi
5163
5164
5165
5166 for ac_prog in docbook2html db2html
5167 do
5168   # Extract the first word of "$ac_prog", so it can be a program name with args.
5169 set dummy $ac_prog; ac_word=$2
5170 echo "$as_me:$LINENO: checking for $ac_word" >&5
5171 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5172 if test "${ac_cv_prog_DB2HTML+set}" = set; then
5173   echo $ECHO_N "(cached) $ECHO_C" >&6
5174 else
5175   if test -n "$DB2HTML"; then
5176   ac_cv_prog_DB2HTML="$DB2HTML" # Let the user override the test.
5177 else
5178 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5179 for as_dir in $PATH
5180 do
5181   IFS=$as_save_IFS
5182   test -z "$as_dir" && as_dir=.
5183   for ac_exec_ext in '' $ac_executable_extensions; do
5184   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5185     ac_cv_prog_DB2HTML="$ac_prog"
5186     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5187     break 2
5188   fi
5189 done
5190 done
5191
5192 fi
5193 fi
5194 DB2HTML=$ac_cv_prog_DB2HTML
5195 if test -n "$DB2HTML"; then
5196   echo "$as_me:$LINENO: result: $DB2HTML" >&5
5197 echo "${ECHO_T}$DB2HTML" >&6
5198 else
5199   echo "$as_me:$LINENO: result: no" >&5
5200 echo "${ECHO_T}no" >&6
5201 fi
5202
5203   test -n "$DB2HTML" && break
5204 done
5205 test -n "$DB2HTML" || DB2HTML="false"
5206
5207
5208
5209 for ac_prog in docbook2pdf db2pdf
5210 do
5211   # Extract the first word of "$ac_prog", so it can be a program name with args.
5212 set dummy $ac_prog; ac_word=$2
5213 echo "$as_me:$LINENO: checking for $ac_word" >&5
5214 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5215 if test "${ac_cv_prog_DB2PDF+set}" = set; then
5216   echo $ECHO_N "(cached) $ECHO_C" >&6
5217 else
5218   if test -n "$DB2PDF"; then
5219   ac_cv_prog_DB2PDF="$DB2PDF" # Let the user override the test.
5220 else
5221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5222 for as_dir in $PATH
5223 do
5224   IFS=$as_save_IFS
5225   test -z "$as_dir" && as_dir=.
5226   for ac_exec_ext in '' $ac_executable_extensions; do
5227   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5228     ac_cv_prog_DB2PDF="$ac_prog"
5229     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5230     break 2
5231   fi
5232 done
5233 done
5234
5235 fi
5236 fi
5237 DB2PDF=$ac_cv_prog_DB2PDF
5238 if test -n "$DB2PDF"; then
5239   echo "$as_me:$LINENO: result: $DB2PDF" >&5
5240 echo "${ECHO_T}$DB2PDF" >&6
5241 else
5242   echo "$as_me:$LINENO: result: no" >&5
5243 echo "${ECHO_T}no" >&6
5244 fi
5245
5246   test -n "$DB2PDF" && break
5247 done
5248 test -n "$DB2PDF" || DB2PDF="false"
5249
5250
5251
5252 for ac_prog in docbook2ps db2ps
5253 do
5254   # Extract the first word of "$ac_prog", so it can be a program name with args.
5255 set dummy $ac_prog; ac_word=$2
5256 echo "$as_me:$LINENO: checking for $ac_word" >&5
5257 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5258 if test "${ac_cv_prog_DB2PS+set}" = set; then
5259   echo $ECHO_N "(cached) $ECHO_C" >&6
5260 else
5261   if test -n "$DB2PS"; then
5262   ac_cv_prog_DB2PS="$DB2PS" # Let the user override the test.
5263 else
5264 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5265 for as_dir in $PATH
5266 do
5267   IFS=$as_save_IFS
5268   test -z "$as_dir" && as_dir=.
5269   for ac_exec_ext in '' $ac_executable_extensions; do
5270   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5271     ac_cv_prog_DB2PS="$ac_prog"
5272     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5273     break 2
5274   fi
5275 done
5276 done
5277
5278 fi
5279 fi
5280 DB2PS=$ac_cv_prog_DB2PS
5281 if test -n "$DB2PS"; then
5282   echo "$as_me:$LINENO: result: $DB2PS" >&5
5283 echo "${ECHO_T}$DB2PS" >&6
5284 else
5285   echo "$as_me:$LINENO: result: no" >&5
5286 echo "${ECHO_T}no" >&6
5287 fi
5288
5289   test -n "$DB2PS" && break
5290 done
5291 test -n "$DB2PS" || DB2PS="false"
5292
5293
5294
5295 for ac_prog in docbook2txt db2txt
5296 do
5297   # Extract the first word of "$ac_prog", so it can be a program name with args.
5298 set dummy $ac_prog; ac_word=$2
5299 echo "$as_me:$LINENO: checking for $ac_word" >&5
5300 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5301 if test "${ac_cv_prog_DB2TXT+set}" = set; then
5302   echo $ECHO_N "(cached) $ECHO_C" >&6
5303 else
5304   if test -n "$DB2TXT"; then
5305   ac_cv_prog_DB2TXT="$DB2TXT" # Let the user override the test.
5306 else
5307 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5308 for as_dir in $PATH
5309 do
5310   IFS=$as_save_IFS
5311   test -z "$as_dir" && as_dir=.
5312   for ac_exec_ext in '' $ac_executable_extensions; do
5313   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5314     ac_cv_prog_DB2TXT="$ac_prog"
5315     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5316     break 2
5317   fi
5318 done
5319 done
5320
5321 fi
5322 fi
5323 DB2TXT=$ac_cv_prog_DB2TXT
5324 if test -n "$DB2TXT"; then
5325   echo "$as_me:$LINENO: result: $DB2TXT" >&5
5326 echo "${ECHO_T}$DB2TXT" >&6
5327 else
5328   echo "$as_me:$LINENO: result: no" >&5
5329 echo "${ECHO_T}no" >&6
5330 fi
5331
5332   test -n "$DB2TXT" && break
5333 done
5334 test -n "$DB2TXT" || DB2TXT="false"
5335
5336
5337
5338
5339
5340 echo "$as_me:$LINENO: checking for sqrt in -lm" >&5
5341 echo $ECHO_N "checking for sqrt in -lm... $ECHO_C" >&6
5342 if test "${ac_cv_lib_m_sqrt+set}" = set; then
5343   echo $ECHO_N "(cached) $ECHO_C" >&6
5344 else
5345   ac_check_lib_save_LIBS=$LIBS
5346 LIBS="-lm  $LIBS"
5347 cat >conftest.$ac_ext <<_ACEOF
5348 /* confdefs.h.  */
5349 _ACEOF
5350 cat confdefs.h >>conftest.$ac_ext
5351 cat >>conftest.$ac_ext <<_ACEOF
5352 /* end confdefs.h.  */
5353
5354 /* Override any gcc2 internal prototype to avoid an error.  */
5355 #ifdef __cplusplus
5356 extern "C"
5357 #endif
5358 /* We use char because int might match the return type of a gcc2
5359    builtin and then its argument prototype would still apply.  */
5360 char sqrt ();
5361 int
5362 main ()
5363 {
5364 sqrt ();
5365   ;
5366   return 0;
5367 }
5368 _ACEOF
5369 rm -f conftest.$ac_objext conftest$ac_exeext
5370 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5371   (eval $ac_link) 2>conftest.er1
5372   ac_status=$?
5373   grep -v '^ *+' conftest.er1 >conftest.err
5374   rm -f conftest.er1
5375   cat conftest.err >&5
5376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5377   (exit $ac_status); } &&
5378          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
5379   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5380   (eval $ac_try) 2>&5
5381   ac_status=$?
5382   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5383   (exit $ac_status); }; } &&
5384          { ac_try='test -s conftest$ac_exeext'
5385   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5386   (eval $ac_try) 2>&5
5387   ac_status=$?
5388   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5389   (exit $ac_status); }; }; then
5390   ac_cv_lib_m_sqrt=yes
5391 else
5392   echo "$as_me: failed program was:" >&5
5393 sed 's/^/| /' conftest.$ac_ext >&5
5394
5395 ac_cv_lib_m_sqrt=no
5396 fi
5397 rm -f conftest.err conftest.$ac_objext \
5398       conftest$ac_exeext conftest.$ac_ext
5399 LIBS=$ac_check_lib_save_LIBS
5400 fi
5401 echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrt" >&5
5402 echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6
5403 if test $ac_cv_lib_m_sqrt = yes; then
5404   cat >>confdefs.h <<_ACEOF
5405 #define HAVE_LIBM 1
5406 _ACEOF
5407
5408   LIBS="-lm $LIBS"
5409
5410 fi
5411
5412
5413 echo "$as_me:$LINENO: checking for i386_set_ldt in -li386" >&5
5414 echo $ECHO_N "checking for i386_set_ldt in -li386... $ECHO_C" >&6
5415 if test "${ac_cv_lib_i386_i386_set_ldt+set}" = set; then
5416   echo $ECHO_N "(cached) $ECHO_C" >&6
5417 else
5418   ac_check_lib_save_LIBS=$LIBS
5419 LIBS="-li386  $LIBS"
5420 cat >conftest.$ac_ext <<_ACEOF
5421 /* confdefs.h.  */
5422 _ACEOF
5423 cat confdefs.h >>conftest.$ac_ext
5424 cat >>conftest.$ac_ext <<_ACEOF
5425 /* end confdefs.h.  */
5426
5427 /* Override any gcc2 internal prototype to avoid an error.  */
5428 #ifdef __cplusplus
5429 extern "C"
5430 #endif
5431 /* We use char because int might match the return type of a gcc2
5432    builtin and then its argument prototype would still apply.  */
5433 char i386_set_ldt ();
5434 int
5435 main ()
5436 {
5437 i386_set_ldt ();
5438   ;
5439   return 0;
5440 }
5441 _ACEOF
5442 rm -f conftest.$ac_objext conftest$ac_exeext
5443 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5444   (eval $ac_link) 2>conftest.er1
5445   ac_status=$?
5446   grep -v '^ *+' conftest.er1 >conftest.err
5447   rm -f conftest.er1
5448   cat conftest.err >&5
5449   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5450   (exit $ac_status); } &&
5451          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
5452   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5453   (eval $ac_try) 2>&5
5454   ac_status=$?
5455   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5456   (exit $ac_status); }; } &&
5457          { ac_try='test -s conftest$ac_exeext'
5458   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5459   (eval $ac_try) 2>&5
5460   ac_status=$?
5461   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5462   (exit $ac_status); }; }; then
5463   ac_cv_lib_i386_i386_set_ldt=yes
5464 else
5465   echo "$as_me: failed program was:" >&5
5466 sed 's/^/| /' conftest.$ac_ext >&5
5467
5468 ac_cv_lib_i386_i386_set_ldt=no
5469 fi
5470 rm -f conftest.err conftest.$ac_objext \
5471       conftest$ac_exeext conftest.$ac_ext
5472 LIBS=$ac_check_lib_save_LIBS
5473 fi
5474 echo "$as_me:$LINENO: result: $ac_cv_lib_i386_i386_set_ldt" >&5
5475 echo "${ECHO_T}$ac_cv_lib_i386_i386_set_ldt" >&6
5476 if test $ac_cv_lib_i386_i386_set_ldt = yes; then
5477   cat >>confdefs.h <<_ACEOF
5478 #define HAVE_LIBI386 1
5479 _ACEOF
5480
5481   LIBS="-li386 $LIBS"
5482
5483 fi
5484
5485
5486 echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5
5487 echo $ECHO_N "checking for _oss_ioctl in -lossaudio... $ECHO_C" >&6
5488 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then
5489   echo $ECHO_N "(cached) $ECHO_C" >&6
5490 else
5491   ac_check_lib_save_LIBS=$LIBS
5492 LIBS="-lossaudio  $LIBS"
5493 cat >conftest.$ac_ext <<_ACEOF
5494 /* confdefs.h.  */
5495 _ACEOF
5496 cat confdefs.h >>conftest.$ac_ext
5497 cat >>conftest.$ac_ext <<_ACEOF
5498 /* end confdefs.h.  */
5499
5500 /* Override any gcc2 internal prototype to avoid an error.  */
5501 #ifdef __cplusplus
5502 extern "C"
5503 #endif
5504 /* We use char because int might match the return type of a gcc2
5505    builtin and then its argument prototype would still apply.  */
5506 char _oss_ioctl ();
5507 int
5508 main ()
5509 {
5510 _oss_ioctl ();
5511   ;
5512   return 0;
5513 }
5514 _ACEOF
5515 rm -f conftest.$ac_objext conftest$ac_exeext
5516 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5517   (eval $ac_link) 2>conftest.er1
5518   ac_status=$?
5519   grep -v '^ *+' conftest.er1 >conftest.err
5520   rm -f conftest.er1
5521   cat conftest.err >&5
5522   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5523   (exit $ac_status); } &&
5524          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
5525   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5526   (eval $ac_try) 2>&5
5527   ac_status=$?
5528   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5529   (exit $ac_status); }; } &&
5530          { ac_try='test -s conftest$ac_exeext'
5531   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5532   (eval $ac_try) 2>&5
5533   ac_status=$?
5534   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5535   (exit $ac_status); }; }; then
5536   ac_cv_lib_ossaudio__oss_ioctl=yes
5537 else
5538   echo "$as_me: failed program was:" >&5
5539 sed 's/^/| /' conftest.$ac_ext >&5
5540
5541 ac_cv_lib_ossaudio__oss_ioctl=no
5542 fi
5543 rm -f conftest.err conftest.$ac_objext \
5544       conftest$ac_exeext conftest.$ac_ext
5545 LIBS=$ac_check_lib_save_LIBS
5546 fi
5547 echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
5548 echo "${ECHO_T}$ac_cv_lib_ossaudio__oss_ioctl" >&6
5549 if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then
5550   cat >>confdefs.h <<_ACEOF
5551 #define HAVE_LIBOSSAUDIO 1
5552 _ACEOF
5553
5554   LIBS="-lossaudio $LIBS"
5555
5556 fi
5557
5558
5559 for ac_func in iswalnum
5560 do
5561 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5562 echo "$as_me:$LINENO: checking for $ac_func" >&5
5563 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5564 if eval "test \"\${$as_ac_var+set}\" = set"; then
5565   echo $ECHO_N "(cached) $ECHO_C" >&6
5566 else
5567   cat >conftest.$ac_ext <<_ACEOF
5568 /* confdefs.h.  */
5569 _ACEOF
5570 cat confdefs.h >>conftest.$ac_ext
5571 cat >>conftest.$ac_ext <<_ACEOF
5572 /* end confdefs.h.  */
5573 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5574    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
5575 #define $ac_func innocuous_$ac_func
5576
5577 /* System header to define __stub macros and hopefully few prototypes,
5578     which can conflict with char $ac_func (); below.
5579     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5580     <limits.h> exists even on freestanding compilers.  */
5581
5582 #ifdef __STDC__
5583 # include <limits.h>
5584 #else
5585 # include <assert.h>
5586 #endif
5587
5588 #undef $ac_func
5589
5590 /* Override any gcc2 internal prototype to avoid an error.  */
5591 #ifdef __cplusplus
5592 extern "C"
5593 {
5594 #endif
5595 /* We use char because int might match the return type of a gcc2
5596    builtin and then its argument prototype would still apply.  */
5597 char $ac_func ();
5598 /* The GNU C library defines this for functions which it implements
5599     to always fail with ENOSYS.  Some functions are actually named
5600     something starting with __ and the normal name is an alias.  */
5601 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5602 choke me
5603 #else
5604 char (*f) () = $ac_func;
5605 #endif
5606 #ifdef __cplusplus
5607 }
5608 #endif
5609
5610 int
5611 main ()
5612 {
5613 return f != $ac_func;
5614   ;
5615   return 0;
5616 }
5617 _ACEOF
5618 rm -f conftest.$ac_objext conftest$ac_exeext
5619 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5620   (eval $ac_link) 2>conftest.er1
5621   ac_status=$?
5622   grep -v '^ *+' conftest.er1 >conftest.err
5623   rm -f conftest.er1
5624   cat conftest.err >&5
5625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5626   (exit $ac_status); } &&
5627          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
5628   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5629   (eval $ac_try) 2>&5
5630   ac_status=$?
5631   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5632   (exit $ac_status); }; } &&
5633          { ac_try='test -s conftest$ac_exeext'
5634   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5635   (eval $ac_try) 2>&5
5636   ac_status=$?
5637   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5638   (exit $ac_status); }; }; then
5639   eval "$as_ac_var=yes"
5640 else
5641   echo "$as_me: failed program was:" >&5
5642 sed 's/^/| /' conftest.$ac_ext >&5
5643
5644 eval "$as_ac_var=no"
5645 fi
5646 rm -f conftest.err conftest.$ac_objext \
5647       conftest$ac_exeext conftest.$ac_ext
5648 fi
5649 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5650 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5651 if test `eval echo '${'$as_ac_var'}'` = yes; then
5652   cat >>confdefs.h <<_ACEOF
5653 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5654 _ACEOF
5655
5656 else
5657
5658 echo "$as_me:$LINENO: checking for iswalnum in -lw" >&5
5659 echo $ECHO_N "checking for iswalnum in -lw... $ECHO_C" >&6
5660 if test "${ac_cv_lib_w_iswalnum+set}" = set; then
5661   echo $ECHO_N "(cached) $ECHO_C" >&6
5662 else
5663   ac_check_lib_save_LIBS=$LIBS
5664 LIBS="-lw  $LIBS"
5665 cat >conftest.$ac_ext <<_ACEOF
5666 /* confdefs.h.  */
5667 _ACEOF
5668 cat confdefs.h >>conftest.$ac_ext
5669 cat >>conftest.$ac_ext <<_ACEOF
5670 /* end confdefs.h.  */
5671
5672 /* Override any gcc2 internal prototype to avoid an error.  */
5673 #ifdef __cplusplus
5674 extern "C"
5675 #endif
5676 /* We use char because int might match the return type of a gcc2
5677    builtin and then its argument prototype would still apply.  */
5678 char iswalnum ();
5679 int
5680 main ()
5681 {
5682 iswalnum ();
5683   ;
5684   return 0;
5685 }
5686 _ACEOF
5687 rm -f conftest.$ac_objext conftest$ac_exeext
5688 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5689   (eval $ac_link) 2>conftest.er1
5690   ac_status=$?
5691   grep -v '^ *+' conftest.er1 >conftest.err
5692   rm -f conftest.er1
5693   cat conftest.err >&5
5694   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5695   (exit $ac_status); } &&
5696          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
5697   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5698   (eval $ac_try) 2>&5
5699   ac_status=$?
5700   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5701   (exit $ac_status); }; } &&
5702          { ac_try='test -s conftest$ac_exeext'
5703   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5704   (eval $ac_try) 2>&5
5705   ac_status=$?
5706   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5707   (exit $ac_status); }; }; then
5708   ac_cv_lib_w_iswalnum=yes
5709 else
5710   echo "$as_me: failed program was:" >&5
5711 sed 's/^/| /' conftest.$ac_ext >&5
5712
5713 ac_cv_lib_w_iswalnum=no
5714 fi
5715 rm -f conftest.err conftest.$ac_objext \
5716       conftest$ac_exeext conftest.$ac_ext
5717 LIBS=$ac_check_lib_save_LIBS
5718 fi
5719 echo "$as_me:$LINENO: result: $ac_cv_lib_w_iswalnum" >&5
5720 echo "${ECHO_T}$ac_cv_lib_w_iswalnum" >&6
5721 if test $ac_cv_lib_w_iswalnum = yes; then
5722   cat >>confdefs.h <<_ACEOF
5723 #define HAVE_LIBW 1
5724 _ACEOF
5725
5726   LIBS="-lw $LIBS"
5727
5728 fi
5729
5730 fi
5731 done
5732
5733
5734 for ac_func in gethostbyname
5735 do
5736 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5737 echo "$as_me:$LINENO: checking for $ac_func" >&5
5738 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5739 if eval "test \"\${$as_ac_var+set}\" = set"; then
5740   echo $ECHO_N "(cached) $ECHO_C" >&6
5741 else
5742   cat >conftest.$ac_ext <<_ACEOF
5743 /* confdefs.h.  */
5744 _ACEOF
5745 cat confdefs.h >>conftest.$ac_ext
5746 cat >>conftest.$ac_ext <<_ACEOF
5747 /* end confdefs.h.  */
5748 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5749    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
5750 #define $ac_func innocuous_$ac_func
5751
5752 /* System header to define __stub macros and hopefully few prototypes,
5753     which can conflict with char $ac_func (); below.
5754     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5755     <limits.h> exists even on freestanding compilers.  */
5756
5757 #ifdef __STDC__
5758 # include <limits.h>
5759 #else
5760 # include <assert.h>
5761 #endif
5762
5763 #undef $ac_func
5764
5765 /* Override any gcc2 internal prototype to avoid an error.  */
5766 #ifdef __cplusplus
5767 extern "C"
5768 {
5769 #endif
5770 /* We use char because int might match the return type of a gcc2
5771    builtin and then its argument prototype would still apply.  */
5772 char $ac_func ();
5773 /* The GNU C library defines this for functions which it implements
5774     to always fail with ENOSYS.  Some functions are actually named
5775     something starting with __ and the normal name is an alias.  */
5776 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5777 choke me
5778 #else
5779 char (*f) () = $ac_func;
5780 #endif
5781 #ifdef __cplusplus
5782 }
5783 #endif
5784
5785 int
5786 main ()
5787 {
5788 return f != $ac_func;
5789   ;
5790   return 0;
5791 }
5792 _ACEOF
5793 rm -f conftest.$ac_objext conftest$ac_exeext
5794 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5795   (eval $ac_link) 2>conftest.er1
5796   ac_status=$?
5797   grep -v '^ *+' conftest.er1 >conftest.err
5798   rm -f conftest.er1
5799   cat conftest.err >&5
5800   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5801   (exit $ac_status); } &&
5802          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
5803   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5804   (eval $ac_try) 2>&5
5805   ac_status=$?
5806   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5807   (exit $ac_status); }; } &&
5808          { ac_try='test -s conftest$ac_exeext'
5809   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5810   (eval $ac_try) 2>&5
5811   ac_status=$?
5812   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5813   (exit $ac_status); }; }; then
5814   eval "$as_ac_var=yes"
5815 else
5816   echo "$as_me: failed program was:" >&5
5817 sed 's/^/| /' conftest.$ac_ext >&5
5818
5819 eval "$as_ac_var=no"
5820 fi
5821 rm -f conftest.err conftest.$ac_objext \
5822       conftest$ac_exeext conftest.$ac_ext
5823 fi
5824 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5825 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5826 if test `eval echo '${'$as_ac_var'}'` = yes; then
5827   cat >>confdefs.h <<_ACEOF
5828 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5829 _ACEOF
5830
5831 else
5832
5833 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
5834 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
5835 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
5836   echo $ECHO_N "(cached) $ECHO_C" >&6
5837 else
5838   ac_check_lib_save_LIBS=$LIBS
5839 LIBS="-lnsl  $LIBS"
5840 cat >conftest.$ac_ext <<_ACEOF
5841 /* confdefs.h.  */
5842 _ACEOF
5843 cat confdefs.h >>conftest.$ac_ext
5844 cat >>conftest.$ac_ext <<_ACEOF
5845 /* end confdefs.h.  */
5846
5847 /* Override any gcc2 internal prototype to avoid an error.  */
5848 #ifdef __cplusplus
5849 extern "C"
5850 #endif
5851 /* We use char because int might match the return type of a gcc2
5852    builtin and then its argument prototype would still apply.  */
5853 char gethostbyname ();
5854 int
5855 main ()
5856 {
5857 gethostbyname ();
5858   ;
5859   return 0;
5860 }
5861 _ACEOF
5862 rm -f conftest.$ac_objext conftest$ac_exeext
5863 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5864   (eval $ac_link) 2>conftest.er1
5865   ac_status=$?
5866   grep -v '^ *+' conftest.er1 >conftest.err
5867   rm -f conftest.er1
5868   cat conftest.err >&5
5869   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5870   (exit $ac_status); } &&
5871          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
5872   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5873   (eval $ac_try) 2>&5
5874   ac_status=$?
5875   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5876   (exit $ac_status); }; } &&
5877          { ac_try='test -s conftest$ac_exeext'
5878   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5879   (eval $ac_try) 2>&5
5880   ac_status=$?
5881   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5882   (exit $ac_status); }; }; then
5883   ac_cv_lib_nsl_gethostbyname=yes
5884 else
5885   echo "$as_me: failed program was:" >&5
5886 sed 's/^/| /' conftest.$ac_ext >&5
5887
5888 ac_cv_lib_nsl_gethostbyname=no
5889 fi
5890 rm -f conftest.err conftest.$ac_objext \
5891       conftest$ac_exeext conftest.$ac_ext
5892 LIBS=$ac_check_lib_save_LIBS
5893 fi
5894 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
5895 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
5896 if test $ac_cv_lib_nsl_gethostbyname = yes; then
5897   cat >>confdefs.h <<_ACEOF
5898 #define HAVE_LIBNSL 1
5899 _ACEOF
5900
5901   LIBS="-lnsl $LIBS"
5902
5903 fi
5904
5905 fi
5906 done
5907
5908
5909 for ac_func in connect
5910 do
5911 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5912 echo "$as_me:$LINENO: checking for $ac_func" >&5
5913 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5914 if eval "test \"\${$as_ac_var+set}\" = set"; then
5915   echo $ECHO_N "(cached) $ECHO_C" >&6
5916 else
5917   cat >conftest.$ac_ext <<_ACEOF
5918 /* confdefs.h.  */
5919 _ACEOF
5920 cat confdefs.h >>conftest.$ac_ext
5921 cat >>conftest.$ac_ext <<_ACEOF
5922 /* end confdefs.h.  */
5923 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5924    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
5925 #define $ac_func innocuous_$ac_func
5926
5927 /* System header to define __stub macros and hopefully few prototypes,
5928     which can conflict with char $ac_func (); below.
5929     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5930     <limits.h> exists even on freestanding compilers.  */
5931
5932 #ifdef __STDC__
5933 # include <limits.h>
5934 #else
5935 # include <assert.h>
5936 #endif
5937
5938 #undef $ac_func
5939
5940 /* Override any gcc2 internal prototype to avoid an error.  */
5941 #ifdef __cplusplus
5942 extern "C"
5943 {
5944 #endif
5945 /* We use char because int might match the return type of a gcc2
5946    builtin and then its argument prototype would still apply.  */
5947 char $ac_func ();
5948 /* The GNU C library defines this for functions which it implements
5949     to always fail with ENOSYS.  Some functions are actually named
5950     something starting with __ and the normal name is an alias.  */
5951 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5952 choke me
5953 #else
5954 char (*f) () = $ac_func;
5955 #endif
5956 #ifdef __cplusplus
5957 }
5958 #endif
5959
5960 int
5961 main ()
5962 {
5963 return f != $ac_func;
5964   ;
5965   return 0;
5966 }
5967 _ACEOF
5968 rm -f conftest.$ac_objext conftest$ac_exeext
5969 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5970   (eval $ac_link) 2>conftest.er1
5971   ac_status=$?
5972   grep -v '^ *+' conftest.er1 >conftest.err
5973   rm -f conftest.er1
5974   cat conftest.err >&5
5975   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5976   (exit $ac_status); } &&
5977          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
5978   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5979   (eval $ac_try) 2>&5
5980   ac_status=$?
5981   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5982   (exit $ac_status); }; } &&
5983          { ac_try='test -s conftest$ac_exeext'
5984   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5985   (eval $ac_try) 2>&5
5986   ac_status=$?
5987   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5988   (exit $ac_status); }; }; then
5989   eval "$as_ac_var=yes"
5990 else
5991   echo "$as_me: failed program was:" >&5
5992 sed 's/^/| /' conftest.$ac_ext >&5
5993
5994 eval "$as_ac_var=no"
5995 fi
5996 rm -f conftest.err conftest.$ac_objext \
5997       conftest$ac_exeext conftest.$ac_ext
5998 fi
5999 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6000 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6001 if test `eval echo '${'$as_ac_var'}'` = yes; then
6002   cat >>confdefs.h <<_ACEOF
6003 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6004 _ACEOF
6005
6006 else
6007
6008 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
6009 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
6010 if test "${ac_cv_lib_socket_connect+set}" = set; then
6011   echo $ECHO_N "(cached) $ECHO_C" >&6
6012 else
6013   ac_check_lib_save_LIBS=$LIBS
6014 LIBS="-lsocket  $LIBS"
6015 cat >conftest.$ac_ext <<_ACEOF
6016 /* confdefs.h.  */
6017 _ACEOF
6018 cat confdefs.h >>conftest.$ac_ext
6019 cat >>conftest.$ac_ext <<_ACEOF
6020 /* end confdefs.h.  */
6021
6022 /* Override any gcc2 internal prototype to avoid an error.  */
6023 #ifdef __cplusplus
6024 extern "C"
6025 #endif
6026 /* We use char because int might match the return type of a gcc2
6027    builtin and then its argument prototype would still apply.  */
6028 char connect ();
6029 int
6030 main ()
6031 {
6032 connect ();
6033   ;
6034   return 0;
6035 }
6036 _ACEOF
6037 rm -f conftest.$ac_objext conftest$ac_exeext
6038 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6039   (eval $ac_link) 2>conftest.er1
6040   ac_status=$?
6041   grep -v '^ *+' conftest.er1 >conftest.err
6042   rm -f conftest.er1
6043   cat conftest.err >&5
6044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6045   (exit $ac_status); } &&
6046          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6047   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6048   (eval $ac_try) 2>&5
6049   ac_status=$?
6050   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6051   (exit $ac_status); }; } &&
6052          { ac_try='test -s conftest$ac_exeext'
6053   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6054   (eval $ac_try) 2>&5
6055   ac_status=$?
6056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6057   (exit $ac_status); }; }; then
6058   ac_cv_lib_socket_connect=yes
6059 else
6060   echo "$as_me: failed program was:" >&5
6061 sed 's/^/| /' conftest.$ac_ext >&5
6062
6063 ac_cv_lib_socket_connect=no
6064 fi
6065 rm -f conftest.err conftest.$ac_objext \
6066       conftest$ac_exeext conftest.$ac_ext
6067 LIBS=$ac_check_lib_save_LIBS
6068 fi
6069 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
6070 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
6071 if test $ac_cv_lib_socket_connect = yes; then
6072   cat >>confdefs.h <<_ACEOF
6073 #define HAVE_LIBSOCKET 1
6074 _ACEOF
6075
6076   LIBS="-lsocket $LIBS"
6077
6078 fi
6079
6080 fi
6081 done
6082
6083
6084 for ac_func in inet_aton
6085 do
6086 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6087 echo "$as_me:$LINENO: checking for $ac_func" >&5
6088 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6089 if eval "test \"\${$as_ac_var+set}\" = set"; then
6090   echo $ECHO_N "(cached) $ECHO_C" >&6
6091 else
6092   cat >conftest.$ac_ext <<_ACEOF
6093 /* confdefs.h.  */
6094 _ACEOF
6095 cat confdefs.h >>conftest.$ac_ext
6096 cat >>conftest.$ac_ext <<_ACEOF
6097 /* end confdefs.h.  */
6098 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6099    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
6100 #define $ac_func innocuous_$ac_func
6101
6102 /* System header to define __stub macros and hopefully few prototypes,
6103     which can conflict with char $ac_func (); below.
6104     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6105     <limits.h> exists even on freestanding compilers.  */
6106
6107 #ifdef __STDC__
6108 # include <limits.h>
6109 #else
6110 # include <assert.h>
6111 #endif
6112
6113 #undef $ac_func
6114
6115 /* Override any gcc2 internal prototype to avoid an error.  */
6116 #ifdef __cplusplus
6117 extern "C"
6118 {
6119 #endif
6120 /* We use char because int might match the return type of a gcc2
6121    builtin and then its argument prototype would still apply.  */
6122 char $ac_func ();
6123 /* The GNU C library defines this for functions which it implements
6124     to always fail with ENOSYS.  Some functions are actually named
6125     something starting with __ and the normal name is an alias.  */
6126 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6127 choke me
6128 #else
6129 char (*f) () = $ac_func;
6130 #endif
6131 #ifdef __cplusplus
6132 }
6133 #endif
6134
6135 int
6136 main ()
6137 {
6138 return f != $ac_func;
6139   ;
6140   return 0;
6141 }
6142 _ACEOF
6143 rm -f conftest.$ac_objext conftest$ac_exeext
6144 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6145   (eval $ac_link) 2>conftest.er1
6146   ac_status=$?
6147   grep -v '^ *+' conftest.er1 >conftest.err
6148   rm -f conftest.er1
6149   cat conftest.err >&5
6150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6151   (exit $ac_status); } &&
6152          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6153   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6154   (eval $ac_try) 2>&5
6155   ac_status=$?
6156   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6157   (exit $ac_status); }; } &&
6158          { ac_try='test -s conftest$ac_exeext'
6159   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6160   (eval $ac_try) 2>&5
6161   ac_status=$?
6162   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6163   (exit $ac_status); }; }; then
6164   eval "$as_ac_var=yes"
6165 else
6166   echo "$as_me: failed program was:" >&5
6167 sed 's/^/| /' conftest.$ac_ext >&5
6168
6169 eval "$as_ac_var=no"
6170 fi
6171 rm -f conftest.err conftest.$ac_objext \
6172       conftest$ac_exeext conftest.$ac_ext
6173 fi
6174 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6175 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6176 if test `eval echo '${'$as_ac_var'}'` = yes; then
6177   cat >>confdefs.h <<_ACEOF
6178 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6179 _ACEOF
6180
6181 else
6182
6183 echo "$as_me:$LINENO: checking for inet_aton in -lresolv" >&5
6184 echo $ECHO_N "checking for inet_aton in -lresolv... $ECHO_C" >&6
6185 if test "${ac_cv_lib_resolv_inet_aton+set}" = set; then
6186   echo $ECHO_N "(cached) $ECHO_C" >&6
6187 else
6188   ac_check_lib_save_LIBS=$LIBS
6189 LIBS="-lresolv  $LIBS"
6190 cat >conftest.$ac_ext <<_ACEOF
6191 /* confdefs.h.  */
6192 _ACEOF
6193 cat confdefs.h >>conftest.$ac_ext
6194 cat >>conftest.$ac_ext <<_ACEOF
6195 /* end confdefs.h.  */
6196
6197 /* Override any gcc2 internal prototype to avoid an error.  */
6198 #ifdef __cplusplus
6199 extern "C"
6200 #endif
6201 /* We use char because int might match the return type of a gcc2
6202    builtin and then its argument prototype would still apply.  */
6203 char inet_aton ();
6204 int
6205 main ()
6206 {
6207 inet_aton ();
6208   ;
6209   return 0;
6210 }
6211 _ACEOF
6212 rm -f conftest.$ac_objext conftest$ac_exeext
6213 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6214   (eval $ac_link) 2>conftest.er1
6215   ac_status=$?
6216   grep -v '^ *+' conftest.er1 >conftest.err
6217   rm -f conftest.er1
6218   cat conftest.err >&5
6219   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6220   (exit $ac_status); } &&
6221          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6222   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6223   (eval $ac_try) 2>&5
6224   ac_status=$?
6225   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6226   (exit $ac_status); }; } &&
6227          { ac_try='test -s conftest$ac_exeext'
6228   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6229   (eval $ac_try) 2>&5
6230   ac_status=$?
6231   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6232   (exit $ac_status); }; }; then
6233   ac_cv_lib_resolv_inet_aton=yes
6234 else
6235   echo "$as_me: failed program was:" >&5
6236 sed 's/^/| /' conftest.$ac_ext >&5
6237
6238 ac_cv_lib_resolv_inet_aton=no
6239 fi
6240 rm -f conftest.err conftest.$ac_objext \
6241       conftest$ac_exeext conftest.$ac_ext
6242 LIBS=$ac_check_lib_save_LIBS
6243 fi
6244 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_aton" >&5
6245 echo "${ECHO_T}$ac_cv_lib_resolv_inet_aton" >&6
6246 if test $ac_cv_lib_resolv_inet_aton = yes; then
6247   cat >>confdefs.h <<_ACEOF
6248 #define HAVE_LIBRESOLV 1
6249 _ACEOF
6250
6251   LIBS="-lresolv $LIBS"
6252
6253 fi
6254
6255 fi
6256 done
6257
6258
6259 echo "$as_me:$LINENO: checking for _xpg4_setrunelocale in -lxpg4" >&5
6260 echo $ECHO_N "checking for _xpg4_setrunelocale in -lxpg4... $ECHO_C" >&6
6261 if test "${ac_cv_lib_xpg4__xpg4_setrunelocale+set}" = set; then
6262   echo $ECHO_N "(cached) $ECHO_C" >&6
6263 else
6264   ac_check_lib_save_LIBS=$LIBS
6265 LIBS="-lxpg4  $LIBS"
6266 cat >conftest.$ac_ext <<_ACEOF
6267 /* confdefs.h.  */
6268 _ACEOF
6269 cat confdefs.h >>conftest.$ac_ext
6270 cat >>conftest.$ac_ext <<_ACEOF
6271 /* end confdefs.h.  */
6272
6273 /* Override any gcc2 internal prototype to avoid an error.  */
6274 #ifdef __cplusplus
6275 extern "C"
6276 #endif
6277 /* We use char because int might match the return type of a gcc2
6278    builtin and then its argument prototype would still apply.  */
6279 char _xpg4_setrunelocale ();
6280 int
6281 main ()
6282 {
6283 _xpg4_setrunelocale ();
6284   ;
6285   return 0;
6286 }
6287 _ACEOF
6288 rm -f conftest.$ac_objext conftest$ac_exeext
6289 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6290   (eval $ac_link) 2>conftest.er1
6291   ac_status=$?
6292   grep -v '^ *+' conftest.er1 >conftest.err
6293   rm -f conftest.er1
6294   cat conftest.err >&5
6295   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6296   (exit $ac_status); } &&
6297          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6298   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6299   (eval $ac_try) 2>&5
6300   ac_status=$?
6301   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6302   (exit $ac_status); }; } &&
6303          { ac_try='test -s conftest$ac_exeext'
6304   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6305   (eval $ac_try) 2>&5
6306   ac_status=$?
6307   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6308   (exit $ac_status); }; }; then
6309   ac_cv_lib_xpg4__xpg4_setrunelocale=yes
6310 else
6311   echo "$as_me: failed program was:" >&5
6312 sed 's/^/| /' conftest.$ac_ext >&5
6313
6314 ac_cv_lib_xpg4__xpg4_setrunelocale=no
6315 fi
6316 rm -f conftest.err conftest.$ac_objext \
6317       conftest$ac_exeext conftest.$ac_ext
6318 LIBS=$ac_check_lib_save_LIBS
6319 fi
6320 echo "$as_me:$LINENO: result: $ac_cv_lib_xpg4__xpg4_setrunelocale" >&5
6321 echo "${ECHO_T}$ac_cv_lib_xpg4__xpg4_setrunelocale" >&6
6322 if test $ac_cv_lib_xpg4__xpg4_setrunelocale = yes; then
6323   cat >>confdefs.h <<_ACEOF
6324 #define HAVE_LIBXPG4 1
6325 _ACEOF
6326
6327   LIBS="-lxpg4 $LIBS"
6328
6329 fi
6330
6331
6332 echo "$as_me:$LINENO: checking for poll in -lpoll" >&5
6333 echo $ECHO_N "checking for poll in -lpoll... $ECHO_C" >&6
6334 if test "${ac_cv_lib_poll_poll+set}" = set; then
6335   echo $ECHO_N "(cached) $ECHO_C" >&6
6336 else
6337   ac_check_lib_save_LIBS=$LIBS
6338 LIBS="-lpoll  $LIBS"
6339 cat >conftest.$ac_ext <<_ACEOF
6340 /* confdefs.h.  */
6341 _ACEOF
6342 cat confdefs.h >>conftest.$ac_ext
6343 cat >>conftest.$ac_ext <<_ACEOF
6344 /* end confdefs.h.  */
6345
6346 /* Override any gcc2 internal prototype to avoid an error.  */
6347 #ifdef __cplusplus
6348 extern "C"
6349 #endif
6350 /* We use char because int might match the return type of a gcc2
6351    builtin and then its argument prototype would still apply.  */
6352 char poll ();
6353 int
6354 main ()
6355 {
6356 poll ();
6357   ;
6358   return 0;
6359 }
6360 _ACEOF
6361 rm -f conftest.$ac_objext conftest$ac_exeext
6362 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6363   (eval $ac_link) 2>conftest.er1
6364   ac_status=$?
6365   grep -v '^ *+' conftest.er1 >conftest.err
6366   rm -f conftest.er1
6367   cat conftest.err >&5
6368   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6369   (exit $ac_status); } &&
6370          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6371   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6372   (eval $ac_try) 2>&5
6373   ac_status=$?
6374   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6375   (exit $ac_status); }; } &&
6376          { ac_try='test -s conftest$ac_exeext'
6377   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6378   (eval $ac_try) 2>&5
6379   ac_status=$?
6380   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6381   (exit $ac_status); }; }; then
6382   ac_cv_lib_poll_poll=yes
6383 else
6384   echo "$as_me: failed program was:" >&5
6385 sed 's/^/| /' conftest.$ac_ext >&5
6386
6387 ac_cv_lib_poll_poll=no
6388 fi
6389 rm -f conftest.err conftest.$ac_objext \
6390       conftest$ac_exeext conftest.$ac_ext
6391 LIBS=$ac_check_lib_save_LIBS
6392 fi
6393 echo "$as_me:$LINENO: result: $ac_cv_lib_poll_poll" >&5
6394 echo "${ECHO_T}$ac_cv_lib_poll_poll" >&6
6395 if test $ac_cv_lib_poll_poll = yes; then
6396   cat >>confdefs.h <<_ACEOF
6397 #define HAVE_LIBPOLL 1
6398 _ACEOF
6399
6400   LIBS="-lpoll $LIBS"
6401
6402 fi
6403
6404 echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
6405 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6
6406 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
6407   echo $ECHO_N "(cached) $ECHO_C" >&6
6408 else
6409   ac_check_lib_save_LIBS=$LIBS
6410 LIBS="-lpthread  $LIBS"
6411 cat >conftest.$ac_ext <<_ACEOF
6412 /* confdefs.h.  */
6413 _ACEOF
6414 cat confdefs.h >>conftest.$ac_ext
6415 cat >>conftest.$ac_ext <<_ACEOF
6416 /* end confdefs.h.  */
6417
6418 /* Override any gcc2 internal prototype to avoid an error.  */
6419 #ifdef __cplusplus
6420 extern "C"
6421 #endif
6422 /* We use char because int might match the return type of a gcc2
6423    builtin and then its argument prototype would still apply.  */
6424 char pthread_create ();
6425 int
6426 main ()
6427 {
6428 pthread_create ();
6429   ;
6430   return 0;
6431 }
6432 _ACEOF
6433 rm -f conftest.$ac_objext conftest$ac_exeext
6434 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6435   (eval $ac_link) 2>conftest.er1
6436   ac_status=$?
6437   grep -v '^ *+' conftest.er1 >conftest.err
6438   rm -f conftest.er1
6439   cat conftest.err >&5
6440   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6441   (exit $ac_status); } &&
6442          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6443   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6444   (eval $ac_try) 2>&5
6445   ac_status=$?
6446   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6447   (exit $ac_status); }; } &&
6448          { ac_try='test -s conftest$ac_exeext'
6449   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6450   (eval $ac_try) 2>&5
6451   ac_status=$?
6452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6453   (exit $ac_status); }; }; then
6454   ac_cv_lib_pthread_pthread_create=yes
6455 else
6456   echo "$as_me: failed program was:" >&5
6457 sed 's/^/| /' conftest.$ac_ext >&5
6458
6459 ac_cv_lib_pthread_pthread_create=no
6460 fi
6461 rm -f conftest.err conftest.$ac_objext \
6462       conftest$ac_exeext conftest.$ac_ext
6463 LIBS=$ac_check_lib_save_LIBS
6464 fi
6465 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
6466 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6
6467 if test $ac_cv_lib_pthread_pthread_create = yes; then
6468   LIBPTHREAD="-lpthread"
6469
6470 fi
6471
6472
6473 JPEGLIB=""
6474
6475 echo "$as_me:$LINENO: checking for egrep" >&5
6476 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
6477 if test "${ac_cv_prog_egrep+set}" = set; then
6478   echo $ECHO_N "(cached) $ECHO_C" >&6
6479 else
6480   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
6481     then ac_cv_prog_egrep='grep -E'
6482     else ac_cv_prog_egrep='egrep'
6483     fi
6484 fi
6485 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
6486 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
6487  EGREP=$ac_cv_prog_egrep
6488
6489
6490 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6491 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6492 if test "${ac_cv_header_stdc+set}" = set; then
6493   echo $ECHO_N "(cached) $ECHO_C" >&6
6494 else
6495   cat >conftest.$ac_ext <<_ACEOF
6496 /* confdefs.h.  */
6497 _ACEOF
6498 cat confdefs.h >>conftest.$ac_ext
6499 cat >>conftest.$ac_ext <<_ACEOF
6500 /* end confdefs.h.  */
6501 #include <stdlib.h>
6502 #include <stdarg.h>
6503 #include <string.h>
6504 #include <float.h>
6505
6506 int
6507 main ()
6508 {
6509
6510   ;
6511   return 0;
6512 }
6513 _ACEOF
6514 rm -f conftest.$ac_objext
6515 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6516   (eval $ac_compile) 2>conftest.er1
6517   ac_status=$?
6518   grep -v '^ *+' conftest.er1 >conftest.err
6519   rm -f conftest.er1
6520   cat conftest.err >&5
6521   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6522   (exit $ac_status); } &&
6523          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6524   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6525   (eval $ac_try) 2>&5
6526   ac_status=$?
6527   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6528   (exit $ac_status); }; } &&
6529          { ac_try='test -s conftest.$ac_objext'
6530   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6531   (eval $ac_try) 2>&5
6532   ac_status=$?
6533   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6534   (exit $ac_status); }; }; then
6535   ac_cv_header_stdc=yes
6536 else
6537   echo "$as_me: failed program was:" >&5
6538 sed 's/^/| /' conftest.$ac_ext >&5
6539
6540 ac_cv_header_stdc=no
6541 fi
6542 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6543
6544 if test $ac_cv_header_stdc = yes; then
6545   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6546   cat >conftest.$ac_ext <<_ACEOF
6547 /* confdefs.h.  */
6548 _ACEOF
6549 cat confdefs.h >>conftest.$ac_ext
6550 cat >>conftest.$ac_ext <<_ACEOF
6551 /* end confdefs.h.  */
6552 #include <string.h>
6553
6554 _ACEOF
6555 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6556   $EGREP "memchr" >/dev/null 2>&1; then
6557   :
6558 else
6559   ac_cv_header_stdc=no
6560 fi
6561 rm -f conftest*
6562
6563 fi
6564
6565 if test $ac_cv_header_stdc = yes; then
6566   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6567   cat >conftest.$ac_ext <<_ACEOF
6568 /* confdefs.h.  */
6569 _ACEOF
6570 cat confdefs.h >>conftest.$ac_ext
6571 cat >>conftest.$ac_ext <<_ACEOF
6572 /* end confdefs.h.  */
6573 #include <stdlib.h>
6574
6575 _ACEOF
6576 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6577   $EGREP "free" >/dev/null 2>&1; then
6578   :
6579 else
6580   ac_cv_header_stdc=no
6581 fi
6582 rm -f conftest*
6583
6584 fi
6585
6586 if test $ac_cv_header_stdc = yes; then
6587   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6588   if test "$cross_compiling" = yes; then
6589   :
6590 else
6591   cat >conftest.$ac_ext <<_ACEOF
6592 /* confdefs.h.  */
6593 _ACEOF
6594 cat confdefs.h >>conftest.$ac_ext
6595 cat >>conftest.$ac_ext <<_ACEOF
6596 /* end confdefs.h.  */
6597 #include <ctype.h>
6598 #if ((' ' & 0x0FF) == 0x020)
6599 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6600 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6601 #else
6602 # define ISLOWER(c) \
6603                    (('a' <= (c) && (c) <= 'i') \
6604                      || ('j' <= (c) && (c) <= 'r') \
6605                      || ('s' <= (c) && (c) <= 'z'))
6606 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6607 #endif
6608
6609 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6610 int
6611 main ()
6612 {
6613   int i;
6614   for (i = 0; i < 256; i++)
6615     if (XOR (islower (i), ISLOWER (i))
6616         || toupper (i) != TOUPPER (i))
6617       exit(2);
6618   exit (0);
6619 }
6620 _ACEOF
6621 rm -f conftest$ac_exeext
6622 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6623   (eval $ac_link) 2>&5
6624   ac_status=$?
6625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6626   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6627   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6628   (eval $ac_try) 2>&5
6629   ac_status=$?
6630   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6631   (exit $ac_status); }; }; then
6632   :
6633 else
6634   echo "$as_me: program exited with status $ac_status" >&5
6635 echo "$as_me: failed program was:" >&5
6636 sed 's/^/| /' conftest.$ac_ext >&5
6637
6638 ( exit $ac_status )
6639 ac_cv_header_stdc=no
6640 fi
6641 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6642 fi
6643 fi
6644 fi
6645 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6646 echo "${ECHO_T}$ac_cv_header_stdc" >&6
6647 if test $ac_cv_header_stdc = yes; then
6648
6649 cat >>confdefs.h <<\_ACEOF
6650 #define STDC_HEADERS 1
6651 _ACEOF
6652
6653 fi
6654
6655 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6656
6657
6658
6659
6660
6661
6662
6663
6664
6665 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6666                   inttypes.h stdint.h unistd.h
6667 do
6668 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6669 echo "$as_me:$LINENO: checking for $ac_header" >&5
6670 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6671 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6672   echo $ECHO_N "(cached) $ECHO_C" >&6
6673 else
6674   cat >conftest.$ac_ext <<_ACEOF
6675 /* confdefs.h.  */
6676 _ACEOF
6677 cat confdefs.h >>conftest.$ac_ext
6678 cat >>conftest.$ac_ext <<_ACEOF
6679 /* end confdefs.h.  */
6680 $ac_includes_default
6681
6682 #include <$ac_header>
6683 _ACEOF
6684 rm -f conftest.$ac_objext
6685 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6686   (eval $ac_compile) 2>conftest.er1
6687   ac_status=$?
6688   grep -v '^ *+' conftest.er1 >conftest.err
6689   rm -f conftest.er1
6690   cat conftest.err >&5
6691   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6692   (exit $ac_status); } &&
6693          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6694   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6695   (eval $ac_try) 2>&5
6696   ac_status=$?
6697   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6698   (exit $ac_status); }; } &&
6699          { ac_try='test -s conftest.$ac_objext'
6700   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6701   (eval $ac_try) 2>&5
6702   ac_status=$?
6703   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6704   (exit $ac_status); }; }; then
6705   eval "$as_ac_Header=yes"
6706 else
6707   echo "$as_me: failed program was:" >&5
6708 sed 's/^/| /' conftest.$ac_ext >&5
6709
6710 eval "$as_ac_Header=no"
6711 fi
6712 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6713 fi
6714 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6715 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6716 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6717   cat >>confdefs.h <<_ACEOF
6718 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6719 _ACEOF
6720
6721 fi
6722
6723 done
6724
6725
6726
6727 for ac_header in jpeglib.h
6728 do
6729 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6730 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6731   echo "$as_me:$LINENO: checking for $ac_header" >&5
6732 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6733 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6734   echo $ECHO_N "(cached) $ECHO_C" >&6
6735 fi
6736 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6737 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6738 else
6739   # Is the header compilable?
6740 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6741 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6742 cat >conftest.$ac_ext <<_ACEOF
6743 /* confdefs.h.  */
6744 _ACEOF
6745 cat confdefs.h >>conftest.$ac_ext
6746 cat >>conftest.$ac_ext <<_ACEOF
6747 /* end confdefs.h.  */
6748 $ac_includes_default
6749 #include <$ac_header>
6750 _ACEOF
6751 rm -f conftest.$ac_objext
6752 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6753   (eval $ac_compile) 2>conftest.er1
6754   ac_status=$?
6755   grep -v '^ *+' conftest.er1 >conftest.err
6756   rm -f conftest.er1
6757   cat conftest.err >&5
6758   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6759   (exit $ac_status); } &&
6760          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6761   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6762   (eval $ac_try) 2>&5
6763   ac_status=$?
6764   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6765   (exit $ac_status); }; } &&
6766          { ac_try='test -s conftest.$ac_objext'
6767   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6768   (eval $ac_try) 2>&5
6769   ac_status=$?
6770   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6771   (exit $ac_status); }; }; then
6772   ac_header_compiler=yes
6773 else
6774   echo "$as_me: failed program was:" >&5
6775 sed 's/^/| /' conftest.$ac_ext >&5
6776
6777 ac_header_compiler=no
6778 fi
6779 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6780 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6781 echo "${ECHO_T}$ac_header_compiler" >&6
6782
6783 # Is the header present?
6784 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6785 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6786 cat >conftest.$ac_ext <<_ACEOF
6787 /* confdefs.h.  */
6788 _ACEOF
6789 cat confdefs.h >>conftest.$ac_ext
6790 cat >>conftest.$ac_ext <<_ACEOF
6791 /* end confdefs.h.  */
6792 #include <$ac_header>
6793 _ACEOF
6794 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6795   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6796   ac_status=$?
6797   grep -v '^ *+' conftest.er1 >conftest.err
6798   rm -f conftest.er1
6799   cat conftest.err >&5
6800   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6801   (exit $ac_status); } >/dev/null; then
6802   if test -s conftest.err; then
6803     ac_cpp_err=$ac_c_preproc_warn_flag
6804     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6805   else
6806     ac_cpp_err=
6807   fi
6808 else
6809   ac_cpp_err=yes
6810 fi
6811 if test -z "$ac_cpp_err"; then
6812   ac_header_preproc=yes
6813 else
6814   echo "$as_me: failed program was:" >&5
6815 sed 's/^/| /' conftest.$ac_ext >&5
6816
6817   ac_header_preproc=no
6818 fi
6819 rm -f conftest.err conftest.$ac_ext
6820 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6821 echo "${ECHO_T}$ac_header_preproc" >&6
6822
6823 # So?  What about this header?
6824 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6825   yes:no: )
6826     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6827 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6828     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6829 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6830     ac_header_preproc=yes
6831     ;;
6832   no:yes:* )
6833     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6834 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6835     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6836 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6837     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6838 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6839     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6840 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6841     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6842 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6843     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6844 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6845     (
6846       cat <<\_ASBOX
6847 ## ------------------------------------ ##
6848 ## Report this to wine-devel@winehq.org ##
6849 ## ------------------------------------ ##
6850 _ASBOX
6851     ) |
6852       sed "s/^/$as_me: WARNING:     /" >&2
6853     ;;
6854 esac
6855 echo "$as_me:$LINENO: checking for $ac_header" >&5
6856 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6857 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6858   echo $ECHO_N "(cached) $ECHO_C" >&6
6859 else
6860   eval "$as_ac_Header=\$ac_header_preproc"
6861 fi
6862 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6863 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6864
6865 fi
6866 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6867   cat >>confdefs.h <<_ACEOF
6868 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6869 _ACEOF
6870  echo "$as_me:$LINENO: checking for jpeg_start_decompress in -ljpeg" >&5
6871 echo $ECHO_N "checking for jpeg_start_decompress in -ljpeg... $ECHO_C" >&6
6872 if test "${ac_cv_lib_jpeg_jpeg_start_decompress+set}" = set; then
6873   echo $ECHO_N "(cached) $ECHO_C" >&6
6874 else
6875   ac_check_lib_save_LIBS=$LIBS
6876 LIBS="-ljpeg  $LIBS"
6877 cat >conftest.$ac_ext <<_ACEOF
6878 /* confdefs.h.  */
6879 _ACEOF
6880 cat confdefs.h >>conftest.$ac_ext
6881 cat >>conftest.$ac_ext <<_ACEOF
6882 /* end confdefs.h.  */
6883
6884 /* Override any gcc2 internal prototype to avoid an error.  */
6885 #ifdef __cplusplus
6886 extern "C"
6887 #endif
6888 /* We use char because int might match the return type of a gcc2
6889    builtin and then its argument prototype would still apply.  */
6890 char jpeg_start_decompress ();
6891 int
6892 main ()
6893 {
6894 jpeg_start_decompress ();
6895   ;
6896   return 0;
6897 }
6898 _ACEOF
6899 rm -f conftest.$ac_objext conftest$ac_exeext
6900 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6901   (eval $ac_link) 2>conftest.er1
6902   ac_status=$?
6903   grep -v '^ *+' conftest.er1 >conftest.err
6904   rm -f conftest.er1
6905   cat conftest.err >&5
6906   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6907   (exit $ac_status); } &&
6908          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6909   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6910   (eval $ac_try) 2>&5
6911   ac_status=$?
6912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6913   (exit $ac_status); }; } &&
6914          { ac_try='test -s conftest$ac_exeext'
6915   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6916   (eval $ac_try) 2>&5
6917   ac_status=$?
6918   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6919   (exit $ac_status); }; }; then
6920   ac_cv_lib_jpeg_jpeg_start_decompress=yes
6921 else
6922   echo "$as_me: failed program was:" >&5
6923 sed 's/^/| /' conftest.$ac_ext >&5
6924
6925 ac_cv_lib_jpeg_jpeg_start_decompress=no
6926 fi
6927 rm -f conftest.err conftest.$ac_objext \
6928       conftest$ac_exeext conftest.$ac_ext
6929 LIBS=$ac_check_lib_save_LIBS
6930 fi
6931 echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_start_decompress" >&5
6932 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_start_decompress" >&6
6933 if test $ac_cv_lib_jpeg_jpeg_start_decompress = yes; then
6934
6935 cat >>confdefs.h <<\_ACEOF
6936 #define HAVE_LIBJPEG 1
6937 _ACEOF
6938
6939         JPEGLIB="-ljpeg"
6940
6941 fi
6942
6943
6944 fi
6945
6946 done
6947
6948
6949 GIFLIB=""
6950
6951
6952 for ac_header in gif_lib.h
6953 do
6954 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6955 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6956   echo "$as_me:$LINENO: checking for $ac_header" >&5
6957 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6958 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6959   echo $ECHO_N "(cached) $ECHO_C" >&6
6960 fi
6961 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6962 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6963 else
6964   # Is the header compilable?
6965 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6966 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6967 cat >conftest.$ac_ext <<_ACEOF
6968 /* confdefs.h.  */
6969 _ACEOF
6970 cat confdefs.h >>conftest.$ac_ext
6971 cat >>conftest.$ac_ext <<_ACEOF
6972 /* end confdefs.h.  */
6973 $ac_includes_default
6974 #include <$ac_header>
6975 _ACEOF
6976 rm -f conftest.$ac_objext
6977 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6978   (eval $ac_compile) 2>conftest.er1
6979   ac_status=$?
6980   grep -v '^ *+' conftest.er1 >conftest.err
6981   rm -f conftest.er1
6982   cat conftest.err >&5
6983   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6984   (exit $ac_status); } &&
6985          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6986   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6987   (eval $ac_try) 2>&5
6988   ac_status=$?
6989   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6990   (exit $ac_status); }; } &&
6991          { ac_try='test -s conftest.$ac_objext'
6992   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6993   (eval $ac_try) 2>&5
6994   ac_status=$?
6995   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6996   (exit $ac_status); }; }; then
6997   ac_header_compiler=yes
6998 else
6999   echo "$as_me: failed program was:" >&5
7000 sed 's/^/| /' conftest.$ac_ext >&5
7001
7002 ac_header_compiler=no
7003 fi
7004 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7005 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7006 echo "${ECHO_T}$ac_header_compiler" >&6
7007
7008 # Is the header present?
7009 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7010 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7011 cat >conftest.$ac_ext <<_ACEOF
7012 /* confdefs.h.  */
7013 _ACEOF
7014 cat confdefs.h >>conftest.$ac_ext
7015 cat >>conftest.$ac_ext <<_ACEOF
7016 /* end confdefs.h.  */
7017 #include <$ac_header>
7018 _ACEOF
7019 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7020   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7021   ac_status=$?
7022   grep -v '^ *+' conftest.er1 >conftest.err
7023   rm -f conftest.er1
7024   cat conftest.err >&5
7025   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7026   (exit $ac_status); } >/dev/null; then
7027   if test -s conftest.err; then
7028     ac_cpp_err=$ac_c_preproc_warn_flag
7029     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7030   else
7031     ac_cpp_err=
7032   fi
7033 else
7034   ac_cpp_err=yes
7035 fi
7036 if test -z "$ac_cpp_err"; then
7037   ac_header_preproc=yes
7038 else
7039   echo "$as_me: failed program was:" >&5
7040 sed 's/^/| /' conftest.$ac_ext >&5
7041
7042   ac_header_preproc=no
7043 fi
7044 rm -f conftest.err conftest.$ac_ext
7045 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7046 echo "${ECHO_T}$ac_header_preproc" >&6
7047
7048 # So?  What about this header?
7049 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7050   yes:no: )
7051     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7052 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7053     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7054 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7055     ac_header_preproc=yes
7056     ;;
7057   no:yes:* )
7058     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7059 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7060     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
7061 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
7062     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7063 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7064     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
7065 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
7066     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7067 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7068     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7069 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7070     (
7071       cat <<\_ASBOX
7072 ## ------------------------------------ ##
7073 ## Report this to wine-devel@winehq.org ##
7074 ## ------------------------------------ ##
7075 _ASBOX
7076     ) |
7077       sed "s/^/$as_me: WARNING:     /" >&2
7078     ;;
7079 esac
7080 echo "$as_me:$LINENO: checking for $ac_header" >&5
7081 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7082 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7083   echo $ECHO_N "(cached) $ECHO_C" >&6
7084 else
7085   eval "$as_ac_Header=\$ac_header_preproc"
7086 fi
7087 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7088 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7089
7090 fi
7091 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7092   cat >>confdefs.h <<_ACEOF
7093 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7094 _ACEOF
7095  echo "$as_me:$LINENO: checking for DGifOpen in -lungif" >&5
7096 echo $ECHO_N "checking for DGifOpen in -lungif... $ECHO_C" >&6
7097 if test "${ac_cv_lib_ungif_DGifOpen+set}" = set; then
7098   echo $ECHO_N "(cached) $ECHO_C" >&6
7099 else
7100   ac_check_lib_save_LIBS=$LIBS
7101 LIBS="-lungif  $LIBS"
7102 cat >conftest.$ac_ext <<_ACEOF
7103 /* confdefs.h.  */
7104 _ACEOF
7105 cat confdefs.h >>conftest.$ac_ext
7106 cat >>conftest.$ac_ext <<_ACEOF
7107 /* end confdefs.h.  */
7108
7109 /* Override any gcc2 internal prototype to avoid an error.  */
7110 #ifdef __cplusplus
7111 extern "C"
7112 #endif
7113 /* We use char because int might match the return type of a gcc2
7114    builtin and then its argument prototype would still apply.  */
7115 char DGifOpen ();
7116 int
7117 main ()
7118 {
7119 DGifOpen ();
7120   ;
7121   return 0;
7122 }
7123 _ACEOF
7124 rm -f conftest.$ac_objext conftest$ac_exeext
7125 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7126   (eval $ac_link) 2>conftest.er1
7127   ac_status=$?
7128   grep -v '^ *+' conftest.er1 >conftest.err
7129   rm -f conftest.er1
7130   cat conftest.err >&5
7131   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7132   (exit $ac_status); } &&
7133          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
7134   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7135   (eval $ac_try) 2>&5
7136   ac_status=$?
7137   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7138   (exit $ac_status); }; } &&
7139          { ac_try='test -s conftest$ac_exeext'
7140   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7141   (eval $ac_try) 2>&5
7142   ac_status=$?
7143   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7144   (exit $ac_status); }; }; then
7145   ac_cv_lib_ungif_DGifOpen=yes
7146 else
7147   echo "$as_me: failed program was:" >&5
7148 sed 's/^/| /' conftest.$ac_ext >&5
7149
7150 ac_cv_lib_ungif_DGifOpen=no
7151 fi
7152 rm -f conftest.err conftest.$ac_objext \
7153       conftest$ac_exeext conftest.$ac_ext
7154 LIBS=$ac_check_lib_save_LIBS
7155 fi
7156 echo "$as_me:$LINENO: result: $ac_cv_lib_ungif_DGifOpen" >&5
7157 echo "${ECHO_T}$ac_cv_lib_ungif_DGifOpen" >&6
7158 if test $ac_cv_lib_ungif_DGifOpen = yes; then
7159
7160 cat >>confdefs.h <<\_ACEOF
7161 #define HAVE_LIBGIF 1
7162 _ACEOF
7163
7164          GIFLIB="-lungif"
7165 else
7166   echo "$as_me:$LINENO: checking for DGifOpen in -lgif" >&5
7167 echo $ECHO_N "checking for DGifOpen in -lgif... $ECHO_C" >&6
7168 if test "${ac_cv_lib_gif_DGifOpen+set}" = set; then
7169   echo $ECHO_N "(cached) $ECHO_C" >&6
7170 else
7171   ac_check_lib_save_LIBS=$LIBS
7172 LIBS="-lgif  $LIBS"
7173 cat >conftest.$ac_ext <<_ACEOF
7174 /* confdefs.h.  */
7175 _ACEOF
7176 cat confdefs.h >>conftest.$ac_ext
7177 cat >>conftest.$ac_ext <<_ACEOF
7178 /* end confdefs.h.  */
7179
7180 /* Override any gcc2 internal prototype to avoid an error.  */
7181 #ifdef __cplusplus
7182 extern "C"
7183 #endif
7184 /* We use char because int might match the return type of a gcc2
7185    builtin and then its argument prototype would still apply.  */
7186 char DGifOpen ();
7187 int
7188 main ()
7189 {
7190 DGifOpen ();
7191   ;
7192   return 0;
7193 }
7194 _ACEOF
7195 rm -f conftest.$ac_objext conftest$ac_exeext
7196 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7197   (eval $ac_link) 2>conftest.er1
7198   ac_status=$?
7199   grep -v '^ *+' conftest.er1 >conftest.err
7200   rm -f conftest.er1
7201   cat conftest.err >&5
7202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7203   (exit $ac_status); } &&
7204          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
7205   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7206   (eval $ac_try) 2>&5
7207   ac_status=$?
7208   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7209   (exit $ac_status); }; } &&
7210          { ac_try='test -s conftest$ac_exeext'
7211   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7212   (eval $ac_try) 2>&5
7213   ac_status=$?
7214   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7215   (exit $ac_status); }; }; then
7216   ac_cv_lib_gif_DGifOpen=yes
7217 else
7218   echo "$as_me: failed program was:" >&5
7219 sed 's/^/| /' conftest.$ac_ext >&5
7220
7221 ac_cv_lib_gif_DGifOpen=no
7222 fi
7223 rm -f conftest.err conftest.$ac_objext \
7224       conftest$ac_exeext conftest.$ac_ext
7225 LIBS=$ac_check_lib_save_LIBS
7226 fi
7227 echo "$as_me:$LINENO: result: $ac_cv_lib_gif_DGifOpen" >&5
7228 echo "${ECHO_T}$ac_cv_lib_gif_DGifOpen" >&6
7229 if test $ac_cv_lib_gif_DGifOpen = yes; then
7230   cat >>confdefs.h <<\_ACEOF
7231 #define HAVE_LIBGIF 1
7232 _ACEOF
7233
7234                        GIFLIB="-lgif"
7235 fi
7236
7237 fi
7238
7239 fi
7240
7241 done
7242
7243
7244
7245
7246 XFILES=""
7247
7248 OPENGLFILES=""
7249
7250 GLU32FILES=""
7251
7252 OPENGL_LIBS=""
7253 if test "$have_x" = "yes"
7254 then
7255     XLIB="-lXext -lX11"
7256     ac_save_CPPFLAGS="$CPPFLAGS"
7257     CPPFLAGS="$CPPFLAGS $X_CFLAGS"
7258
7259
7260 for ac_header in X11/Xlib.h
7261 do
7262 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7263 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7264   echo "$as_me:$LINENO: checking for $ac_header" >&5
7265 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7266 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7267   echo $ECHO_N "(cached) $ECHO_C" >&6
7268 fi
7269 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7270 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7271 else
7272   # Is the header compilable?
7273 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7274 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7275 cat >conftest.$ac_ext <<_ACEOF
7276 /* confdefs.h.  */
7277 _ACEOF
7278 cat confdefs.h >>conftest.$ac_ext
7279 cat >>conftest.$ac_ext <<_ACEOF
7280 /* end confdefs.h.  */
7281 $ac_includes_default
7282 #include <$ac_header>
7283 _ACEOF
7284 rm -f conftest.$ac_objext
7285 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7286   (eval $ac_compile) 2>conftest.er1
7287   ac_status=$?
7288   grep -v '^ *+' conftest.er1 >conftest.err
7289   rm -f conftest.er1
7290   cat conftest.err >&5
7291   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7292   (exit $ac_status); } &&
7293          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
7294   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7295   (eval $ac_try) 2>&5
7296   ac_status=$?
7297   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7298   (exit $ac_status); }; } &&
7299          { ac_try='test -s conftest.$ac_objext'
7300   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7301   (eval $ac_try) 2>&5
7302   ac_status=$?
7303   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7304   (exit $ac_status); }; }; then
7305   ac_header_compiler=yes
7306 else
7307   echo "$as_me: failed program was:" >&5
7308 sed 's/^/| /' conftest.$ac_ext >&5
7309
7310 ac_header_compiler=no
7311 fi
7312 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7313 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7314 echo "${ECHO_T}$ac_header_compiler" >&6
7315
7316 # Is the header present?
7317 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7318 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7319 cat >conftest.$ac_ext <<_ACEOF
7320 /* confdefs.h.  */
7321 _ACEOF
7322 cat confdefs.h >>conftest.$ac_ext
7323 cat >>conftest.$ac_ext <<_ACEOF
7324 /* end confdefs.h.  */
7325 #include <$ac_header>
7326 _ACEOF
7327 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7328   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7329   ac_status=$?
7330   grep -v '^ *+' conftest.er1 >conftest.err
7331   rm -f conftest.er1
7332   cat conftest.err >&5
7333   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7334   (exit $ac_status); } >/dev/null; then
7335   if test -s conftest.err; then
7336     ac_cpp_err=$ac_c_preproc_warn_flag
7337     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7338   else
7339     ac_cpp_err=
7340   fi
7341 else
7342   ac_cpp_err=yes
7343 fi
7344 if test -z "$ac_cpp_err"; then
7345   ac_header_preproc=yes
7346 else
7347   echo "$as_me: failed program was:" >&5
7348 sed 's/^/| /' conftest.$ac_ext >&5
7349
7350   ac_header_preproc=no
7351 fi
7352 rm -f conftest.err conftest.$ac_ext
7353 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7354 echo "${ECHO_T}$ac_header_preproc" >&6
7355
7356 # So?  What about this header?
7357 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7358   yes:no: )
7359     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7360 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7361     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7362 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7363     ac_header_preproc=yes
7364     ;;
7365   no:yes:* )
7366     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7367 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7368     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
7369 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
7370     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7371 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7372     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
7373 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
7374     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7375 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7376     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7377 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7378     (
7379       cat <<\_ASBOX
7380 ## ------------------------------------ ##
7381 ## Report this to wine-devel@winehq.org ##
7382 ## ------------------------------------ ##
7383 _ASBOX
7384     ) |
7385       sed "s/^/$as_me: WARNING:     /" >&2
7386     ;;
7387 esac
7388 echo "$as_me:$LINENO: checking for $ac_header" >&5
7389 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7390 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7391   echo $ECHO_N "(cached) $ECHO_C" >&6
7392 else
7393   eval "$as_ac_Header=\$ac_header_preproc"
7394 fi
7395 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7396 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7397
7398 fi
7399 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7400   cat >>confdefs.h <<_ACEOF
7401 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7402 _ACEOF
7403
7404
7405
7406
7407
7408
7409
7410
7411
7412
7413 for ac_header in X11/XKBlib.h \
7414                           X11/Xutil.h \
7415                           X11/extensions/shape.h \
7416                           X11/extensions/XShm.h \
7417                           X11/extensions/Xrandr.h \
7418                           X11/extensions/Xrender.h \
7419                           X11/extensions/Xvlib.h \
7420                           X11/extensions/xf86dga.h \
7421                           X11/extensions/xf86vmode.h
7422 do
7423 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7424 echo "$as_me:$LINENO: checking for $ac_header" >&5
7425 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7426 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7427   echo $ECHO_N "(cached) $ECHO_C" >&6
7428 else
7429   cat >conftest.$ac_ext <<_ACEOF
7430 /* confdefs.h.  */
7431 _ACEOF
7432 cat confdefs.h >>conftest.$ac_ext
7433 cat >>conftest.$ac_ext <<_ACEOF
7434 /* end confdefs.h.  */
7435 #include <X11/Xlib.h>
7436                           #ifdef HAVE_X11_XUTIL_H
7437                           # include <X11/Xutil.h>
7438                           #endif
7439
7440 #include <$ac_header>
7441 _ACEOF
7442 rm -f conftest.$ac_objext
7443 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7444   (eval $ac_compile) 2>conftest.er1
7445   ac_status=$?
7446   grep -v '^ *+' conftest.er1 >conftest.err
7447   rm -f conftest.er1
7448   cat conftest.err >&5
7449   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7450   (exit $ac_status); } &&
7451          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
7452   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7453   (eval $ac_try) 2>&5
7454   ac_status=$?
7455   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7456   (exit $ac_status); }; } &&
7457          { ac_try='test -s conftest.$ac_objext'
7458   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7459   (eval $ac_try) 2>&5
7460   ac_status=$?
7461   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7462   (exit $ac_status); }; }; then
7463   eval "$as_ac_Header=yes"
7464 else
7465   echo "$as_me: failed program was:" >&5
7466 sed 's/^/| /' conftest.$ac_ext >&5
7467
7468 eval "$as_ac_Header=no"
7469 fi
7470 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7471 fi
7472 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7473 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7474 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7475   cat >>confdefs.h <<_ACEOF
7476 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7477 _ACEOF
7478
7479 fi
7480
7481 done
7482
7483
7484                 if test "$ac_cv_header_X11_XKBlib_h" = "yes"
7485         then
7486               echo "$as_me:$LINENO: checking for XkbQueryExtension in -lX11" >&5
7487 echo $ECHO_N "checking for XkbQueryExtension in -lX11... $ECHO_C" >&6
7488 if test "${ac_cv_lib_X11_XkbQueryExtension+set}" = set; then
7489   echo $ECHO_N "(cached) $ECHO_C" >&6
7490 else
7491   ac_check_lib_save_LIBS=$LIBS
7492 LIBS="-lX11 $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
7493 cat >conftest.$ac_ext <<_ACEOF
7494 /* confdefs.h.  */
7495 _ACEOF
7496 cat confdefs.h >>conftest.$ac_ext
7497 cat >>conftest.$ac_ext <<_ACEOF
7498 /* end confdefs.h.  */
7499
7500 /* Override any gcc2 internal prototype to avoid an error.  */
7501 #ifdef __cplusplus
7502 extern "C"
7503 #endif
7504 /* We use char because int might match the return type of a gcc2
7505    builtin and then its argument prototype would still apply.  */
7506 char XkbQueryExtension ();
7507 int
7508 main ()
7509 {
7510 XkbQueryExtension ();
7511   ;
7512   return 0;
7513 }
7514 _ACEOF
7515 rm -f conftest.$ac_objext conftest$ac_exeext
7516 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7517   (eval $ac_link) 2>conftest.er1
7518   ac_status=$?
7519   grep -v '^ *+' conftest.er1 >conftest.err
7520   rm -f conftest.er1
7521   cat conftest.err >&5
7522   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7523   (exit $ac_status); } &&
7524          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
7525   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7526   (eval $ac_try) 2>&5
7527   ac_status=$?
7528   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7529   (exit $ac_status); }; } &&
7530          { ac_try='test -s conftest$ac_exeext'
7531   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7532   (eval $ac_try) 2>&5
7533   ac_status=$?
7534   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7535   (exit $ac_status); }; }; then
7536   ac_cv_lib_X11_XkbQueryExtension=yes
7537 else
7538   echo "$as_me: failed program was:" >&5
7539 sed 's/^/| /' conftest.$ac_ext >&5
7540
7541 ac_cv_lib_X11_XkbQueryExtension=no
7542 fi
7543 rm -f conftest.err conftest.$ac_objext \
7544       conftest$ac_exeext conftest.$ac_ext
7545 LIBS=$ac_check_lib_save_LIBS
7546 fi
7547 echo "$as_me:$LINENO: result: $ac_cv_lib_X11_XkbQueryExtension" >&5
7548 echo "${ECHO_T}$ac_cv_lib_X11_XkbQueryExtension" >&6
7549 if test $ac_cv_lib_X11_XkbQueryExtension = yes; then
7550
7551 cat >>confdefs.h <<\_ACEOF
7552 #define HAVE_XKB 1
7553 _ACEOF
7554
7555 fi
7556
7557         fi
7558
7559                 if test "$ac_cv_header_X11_extensions_XShm_h" = "yes"
7560         then
7561               echo "$as_me:$LINENO: checking for XShmQueryExtension in -lXext" >&5
7562 echo $ECHO_N "checking for XShmQueryExtension in -lXext... $ECHO_C" >&6
7563 if test "${ac_cv_lib_Xext_XShmQueryExtension+set}" = set; then
7564   echo $ECHO_N "(cached) $ECHO_C" >&6
7565 else
7566   ac_check_lib_save_LIBS=$LIBS
7567 LIBS="-lXext $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
7568 cat >conftest.$ac_ext <<_ACEOF
7569 /* confdefs.h.  */
7570 _ACEOF
7571 cat confdefs.h >>conftest.$ac_ext
7572 cat >>conftest.$ac_ext <<_ACEOF
7573 /* end confdefs.h.  */
7574
7575 /* Override any gcc2 internal prototype to avoid an error.  */
7576 #ifdef __cplusplus
7577 extern "C"
7578 #endif
7579 /* We use char because int might match the return type of a gcc2
7580    builtin and then its argument prototype would still apply.  */
7581 char XShmQueryExtension ();
7582 int
7583 main ()
7584 {
7585 XShmQueryExtension ();
7586   ;
7587   return 0;
7588 }
7589 _ACEOF
7590 rm -f conftest.$ac_objext conftest$ac_exeext
7591 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7592   (eval $ac_link) 2>conftest.er1
7593   ac_status=$?
7594   grep -v '^ *+' conftest.er1 >conftest.err
7595   rm -f conftest.er1
7596   cat conftest.err >&5
7597   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7598   (exit $ac_status); } &&
7599          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
7600   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7601   (eval $ac_try) 2>&5
7602   ac_status=$?
7603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7604   (exit $ac_status); }; } &&
7605          { ac_try='test -s conftest$ac_exeext'
7606   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7607   (eval $ac_try) 2>&5
7608   ac_status=$?
7609   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7610   (exit $ac_status); }; }; then
7611   ac_cv_lib_Xext_XShmQueryExtension=yes
7612 else
7613   echo "$as_me: failed program was:" >&5
7614 sed 's/^/| /' conftest.$ac_ext >&5
7615
7616 ac_cv_lib_Xext_XShmQueryExtension=no
7617 fi
7618 rm -f conftest.err conftest.$ac_objext \
7619       conftest$ac_exeext conftest.$ac_ext
7620 LIBS=$ac_check_lib_save_LIBS
7621 fi
7622 echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShmQueryExtension" >&5
7623 echo "${ECHO_T}$ac_cv_lib_Xext_XShmQueryExtension" >&6
7624 if test $ac_cv_lib_Xext_XShmQueryExtension = yes; then
7625
7626 cat >>confdefs.h <<\_ACEOF
7627 #define HAVE_LIBXXSHM 1
7628 _ACEOF
7629
7630 fi
7631
7632         fi
7633
7634                 if test "$ac_cv_header_X11_extensions_shape_h" = "yes"
7635         then
7636               echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
7637 echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6
7638 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
7639   echo $ECHO_N "(cached) $ECHO_C" >&6
7640 else
7641   ac_check_lib_save_LIBS=$LIBS
7642 LIBS="-lXext $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
7643 cat >conftest.$ac_ext <<_ACEOF
7644 /* confdefs.h.  */
7645 _ACEOF
7646 cat confdefs.h >>conftest.$ac_ext
7647 cat >>conftest.$ac_ext <<_ACEOF
7648 /* end confdefs.h.  */
7649
7650 /* Override any gcc2 internal prototype to avoid an error.  */
7651 #ifdef __cplusplus
7652 extern "C"
7653 #endif
7654 /* We use char because int might match the return type of a gcc2
7655    builtin and then its argument prototype would still apply.  */
7656 char XShapeQueryExtension ();
7657 int
7658 main ()
7659 {
7660 XShapeQueryExtension ();
7661   ;
7662   return 0;
7663 }
7664 _ACEOF
7665 rm -f conftest.$ac_objext conftest$ac_exeext
7666 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7667   (eval $ac_link) 2>conftest.er1
7668   ac_status=$?
7669   grep -v '^ *+' conftest.er1 >conftest.err
7670   rm -f conftest.er1
7671   cat conftest.err >&5
7672   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7673   (exit $ac_status); } &&
7674          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
7675   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7676   (eval $ac_try) 2>&5
7677   ac_status=$?
7678   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7679   (exit $ac_status); }; } &&
7680          { ac_try='test -s conftest$ac_exeext'
7681   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7682   (eval $ac_try) 2>&5
7683   ac_status=$?
7684   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7685   (exit $ac_status); }; }; then
7686   ac_cv_lib_Xext_XShapeQueryExtension=yes
7687 else
7688   echo "$as_me: failed program was:" >&5
7689 sed 's/^/| /' conftest.$ac_ext >&5
7690
7691 ac_cv_lib_Xext_XShapeQueryExtension=no
7692 fi
7693 rm -f conftest.err conftest.$ac_objext \
7694       conftest$ac_exeext conftest.$ac_ext
7695 LIBS=$ac_check_lib_save_LIBS
7696 fi
7697 echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
7698 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6
7699 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
7700
7701 cat >>confdefs.h <<\_ACEOF
7702 #define HAVE_LIBXSHAPE 1
7703 _ACEOF
7704
7705 fi
7706
7707         fi
7708
7709                 if test "$ac_cv_header_X11_extensions_xf86dga_h" = "yes"
7710         then
7711               echo "$as_me:$LINENO: checking for XDGAQueryExtension in -lXxf86dga" >&5
7712 echo $ECHO_N "checking for XDGAQueryExtension in -lXxf86dga... $ECHO_C" >&6
7713 if test "${ac_cv_lib_Xxf86dga_XDGAQueryExtension+set}" = set; then
7714   echo $ECHO_N "(cached) $ECHO_C" >&6
7715 else
7716   ac_check_lib_save_LIBS=$LIBS
7717 LIBS="-lXxf86dga $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
7718 cat >conftest.$ac_ext <<_ACEOF
7719 /* confdefs.h.  */
7720 _ACEOF
7721 cat confdefs.h >>conftest.$ac_ext
7722 cat >>conftest.$ac_ext <<_ACEOF
7723 /* end confdefs.h.  */
7724
7725 /* Override any gcc2 internal prototype to avoid an error.  */
7726 #ifdef __cplusplus
7727 extern "C"
7728 #endif
7729 /* We use char because int might match the return type of a gcc2
7730    builtin and then its argument prototype would still apply.  */
7731 char XDGAQueryExtension ();
7732 int
7733 main ()
7734 {
7735 XDGAQueryExtension ();
7736   ;
7737   return 0;
7738 }
7739 _ACEOF
7740 rm -f conftest.$ac_objext conftest$ac_exeext
7741 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7742   (eval $ac_link) 2>conftest.er1
7743   ac_status=$?
7744   grep -v '^ *+' conftest.er1 >conftest.err
7745   rm -f conftest.er1
7746   cat conftest.err >&5
7747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7748   (exit $ac_status); } &&
7749          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
7750   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7751   (eval $ac_try) 2>&5
7752   ac_status=$?
7753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7754   (exit $ac_status); }; } &&
7755          { ac_try='test -s conftest$ac_exeext'
7756   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7757   (eval $ac_try) 2>&5
7758   ac_status=$?
7759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7760   (exit $ac_status); }; }; then
7761   ac_cv_lib_Xxf86dga_XDGAQueryExtension=yes
7762 else
7763   echo "$as_me: failed program was:" >&5
7764 sed 's/^/| /' conftest.$ac_ext >&5
7765
7766 ac_cv_lib_Xxf86dga_XDGAQueryExtension=no
7767 fi
7768 rm -f conftest.err conftest.$ac_objext \
7769       conftest$ac_exeext conftest.$ac_ext
7770 LIBS=$ac_check_lib_save_LIBS
7771 fi
7772 echo "$as_me:$LINENO: result: $ac_cv_lib_Xxf86dga_XDGAQueryExtension" >&5
7773 echo "${ECHO_T}$ac_cv_lib_Xxf86dga_XDGAQueryExtension" >&6
7774 if test $ac_cv_lib_Xxf86dga_XDGAQueryExtension = yes; then
7775
7776 cat >>confdefs.h <<\_ACEOF
7777 #define HAVE_LIBXXF86DGA2 1
7778 _ACEOF
7779
7780                   X_PRE_LIBS="$X_PRE_LIBS -lXxf86dga"
7781
7782 else
7783                                        echo "$as_me:$LINENO: checking for XF86DGAQueryExtension in -lXxf86dga" >&5
7784 echo $ECHO_N "checking for XF86DGAQueryExtension in -lXxf86dga... $ECHO_C" >&6
7785 if test "${ac_cv_lib_Xxf86dga_XF86DGAQueryExtension+set}" = set; then
7786   echo $ECHO_N "(cached) $ECHO_C" >&6
7787 else
7788   ac_check_lib_save_LIBS=$LIBS
7789 LIBS="-lXxf86dga $X_LIBS -lXext -lX11 $X_EXTRA_LIBS
7790                    $LIBS"
7791 cat >conftest.$ac_ext <<_ACEOF
7792 /* confdefs.h.  */
7793 _ACEOF
7794 cat confdefs.h >>conftest.$ac_ext
7795 cat >>conftest.$ac_ext <<_ACEOF
7796 /* end confdefs.h.  */
7797
7798 /* Override any gcc2 internal prototype to avoid an error.  */
7799 #ifdef __cplusplus
7800 extern "C"
7801 #endif
7802 /* We use char because int might match the return type of a gcc2
7803    builtin and then its argument prototype would still apply.  */
7804 char XF86DGAQueryExtension ();
7805 int
7806 main ()
7807 {
7808 XF86DGAQueryExtension ();
7809   ;
7810   return 0;
7811 }
7812 _ACEOF
7813 rm -f conftest.$ac_objext conftest$ac_exeext
7814 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7815   (eval $ac_link) 2>conftest.er1
7816   ac_status=$?
7817   grep -v '^ *+' conftest.er1 >conftest.err
7818   rm -f conftest.er1
7819   cat conftest.err >&5
7820   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7821   (exit $ac_status); } &&
7822          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
7823   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7824   (eval $ac_try) 2>&5
7825   ac_status=$?
7826   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7827   (exit $ac_status); }; } &&
7828          { ac_try='test -s conftest$ac_exeext'
7829   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7830   (eval $ac_try) 2>&5
7831   ac_status=$?
7832   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7833   (exit $ac_status); }; }; then
7834   ac_cv_lib_Xxf86dga_XF86DGAQueryExtension=yes
7835 else
7836   echo "$as_me: failed program was:" >&5
7837 sed 's/^/| /' conftest.$ac_ext >&5
7838
7839 ac_cv_lib_Xxf86dga_XF86DGAQueryExtension=no
7840 fi
7841 rm -f conftest.err conftest.$ac_objext \
7842       conftest$ac_exeext conftest.$ac_ext
7843 LIBS=$ac_check_lib_save_LIBS
7844 fi
7845 echo "$as_me:$LINENO: result: $ac_cv_lib_Xxf86dga_XF86DGAQueryExtension" >&5
7846 echo "${ECHO_T}$ac_cv_lib_Xxf86dga_XF86DGAQueryExtension" >&6
7847 if test $ac_cv_lib_Xxf86dga_XF86DGAQueryExtension = yes; then
7848
7849 cat >>confdefs.h <<\_ACEOF
7850 #define HAVE_LIBXXF86DGA 1
7851 _ACEOF
7852
7853                       X_PRE_LIBS="$X_PRE_LIBS -lXxf86dga"
7854
7855 fi
7856
7857
7858 fi
7859
7860         fi
7861
7862                 if test "$ac_cv_header_X11_extensions_xf86vmode_h" = "yes"
7863         then
7864                 echo "$as_me:$LINENO: checking for XF86VidModeQueryExtension in -lXxf86vm" >&5
7865 echo $ECHO_N "checking for XF86VidModeQueryExtension in -lXxf86vm... $ECHO_C" >&6
7866 if test "${ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension+set}" = set; then
7867   echo $ECHO_N "(cached) $ECHO_C" >&6
7868 else
7869   ac_check_lib_save_LIBS=$LIBS
7870 LIBS="-lXxf86vm $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
7871 cat >conftest.$ac_ext <<_ACEOF
7872 /* confdefs.h.  */
7873 _ACEOF
7874 cat confdefs.h >>conftest.$ac_ext
7875 cat >>conftest.$ac_ext <<_ACEOF
7876 /* end confdefs.h.  */
7877
7878 /* Override any gcc2 internal prototype to avoid an error.  */
7879 #ifdef __cplusplus
7880 extern "C"
7881 #endif
7882 /* We use char because int might match the return type of a gcc2
7883    builtin and then its argument prototype would still apply.  */
7884 char XF86VidModeQueryExtension ();
7885 int
7886 main ()
7887 {
7888 XF86VidModeQueryExtension ();
7889   ;
7890   return 0;
7891 }
7892 _ACEOF
7893 rm -f conftest.$ac_objext conftest$ac_exeext
7894 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7895   (eval $ac_link) 2>conftest.er1
7896   ac_status=$?
7897   grep -v '^ *+' conftest.er1 >conftest.err
7898   rm -f conftest.er1
7899   cat conftest.err >&5
7900   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7901   (exit $ac_status); } &&
7902          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
7903   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7904   (eval $ac_try) 2>&5
7905   ac_status=$?
7906   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7907   (exit $ac_status); }; } &&
7908          { ac_try='test -s conftest$ac_exeext'
7909   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7910   (eval $ac_try) 2>&5
7911   ac_status=$?
7912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7913   (exit $ac_status); }; }; then
7914   ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=yes
7915 else
7916   echo "$as_me: failed program was:" >&5
7917 sed 's/^/| /' conftest.$ac_ext >&5
7918
7919 ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=no
7920 fi
7921 rm -f conftest.err conftest.$ac_objext \
7922       conftest$ac_exeext conftest.$ac_ext
7923 LIBS=$ac_check_lib_save_LIBS
7924 fi
7925 echo "$as_me:$LINENO: result: $ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&5
7926 echo "${ECHO_T}$ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&6
7927 if test $ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension = yes; then
7928
7929 cat >>confdefs.h <<\_ACEOF
7930 #define HAVE_LIBXXF86VM 1
7931 _ACEOF
7932
7933                      X_PRE_LIBS="$X_PRE_LIBS -lXxf86vm"
7934
7935 fi
7936
7937         fi
7938
7939                 if test "$ac_cv_header_X11_extensions_Xrandr_h" = "yes"
7940         then
7941                 echo "$as_me:$LINENO: checking for XRRSetScreenConfigAndRate in -lXrandr" >&5
7942 echo $ECHO_N "checking for XRRSetScreenConfigAndRate in -lXrandr... $ECHO_C" >&6
7943 if test "${ac_cv_lib_Xrandr_XRRSetScreenConfigAndRate+set}" = set; then
7944   echo $ECHO_N "(cached) $ECHO_C" >&6
7945 else
7946   ac_check_lib_save_LIBS=$LIBS
7947 LIBS="-lXrandr $X_LIBS -lXrender -lXext -lX11 $X_EXTRA_LIBS $LIBS"
7948 cat >conftest.$ac_ext <<_ACEOF
7949 /* confdefs.h.  */
7950 _ACEOF
7951 cat confdefs.h >>conftest.$ac_ext
7952 cat >>conftest.$ac_ext <<_ACEOF
7953 /* end confdefs.h.  */
7954
7955 /* Override any gcc2 internal prototype to avoid an error.  */
7956 #ifdef __cplusplus
7957 extern "C"
7958 #endif
7959 /* We use char because int might match the return type of a gcc2
7960    builtin and then its argument prototype would still apply.  */
7961 char XRRSetScreenConfigAndRate ();
7962 int
7963 main ()
7964 {
7965 XRRSetScreenConfigAndRate ();
7966   ;
7967   return 0;
7968 }
7969 _ACEOF
7970 rm -f conftest.$ac_objext conftest$ac_exeext
7971 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7972   (eval $ac_link) 2>conftest.er1
7973   ac_status=$?
7974   grep -v '^ *+' conftest.er1 >conftest.err
7975   rm -f conftest.er1
7976   cat conftest.err >&5
7977   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7978   (exit $ac_status); } &&
7979          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
7980   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7981   (eval $ac_try) 2>&5
7982   ac_status=$?
7983   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7984   (exit $ac_status); }; } &&
7985          { ac_try='test -s conftest$ac_exeext'
7986   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7987   (eval $ac_try) 2>&5
7988   ac_status=$?
7989   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7990   (exit $ac_status); }; }; then
7991   ac_cv_lib_Xrandr_XRRSetScreenConfigAndRate=yes
7992 else
7993   echo "$as_me: failed program was:" >&5
7994 sed 's/^/| /' conftest.$ac_ext >&5
7995
7996 ac_cv_lib_Xrandr_XRRSetScreenConfigAndRate=no
7997 fi
7998 rm -f conftest.err conftest.$ac_objext \
7999       conftest$ac_exeext conftest.$ac_ext
8000 LIBS=$ac_check_lib_save_LIBS
8001 fi
8002 echo "$as_me:$LINENO: result: $ac_cv_lib_Xrandr_XRRSetScreenConfigAndRate" >&5
8003 echo "${ECHO_T}$ac_cv_lib_Xrandr_XRRSetScreenConfigAndRate" >&6
8004 if test $ac_cv_lib_Xrandr_XRRSetScreenConfigAndRate = yes; then
8005
8006 cat >>confdefs.h <<\_ACEOF
8007 #define HAVE_LIBXRANDR 1
8008 _ACEOF
8009
8010                      X_PRE_LIBS="$X_PRE_LIBS -lXrandr -lXrender"
8011
8012 fi
8013
8014         fi
8015
8016                 if test "$ac_cv_header_X11_extensions_Xvlib_h" = "yes"
8017         then
8018                 echo "$as_me:$LINENO: checking for XvShmCreateImage in -lXv" >&5
8019 echo $ECHO_N "checking for XvShmCreateImage in -lXv... $ECHO_C" >&6
8020 if test "${ac_cv_lib_Xv_XvShmCreateImage+set}" = set; then
8021   echo $ECHO_N "(cached) $ECHO_C" >&6
8022 else
8023   ac_check_lib_save_LIBS=$LIBS
8024 LIBS="-lXv $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
8025 cat >conftest.$ac_ext <<_ACEOF
8026 /* confdefs.h.  */
8027 _ACEOF
8028 cat confdefs.h >>conftest.$ac_ext
8029 cat >>conftest.$ac_ext <<_ACEOF
8030 /* end confdefs.h.  */
8031
8032 /* Override any gcc2 internal prototype to avoid an error.  */
8033 #ifdef __cplusplus
8034 extern "C"
8035 #endif
8036 /* We use char because int might match the return type of a gcc2
8037    builtin and then its argument prototype would still apply.  */
8038 char XvShmCreateImage ();
8039 int
8040 main ()
8041 {
8042 XvShmCreateImage ();
8043   ;
8044   return 0;
8045 }
8046 _ACEOF
8047 rm -f conftest.$ac_objext conftest$ac_exeext
8048 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8049   (eval $ac_link) 2>conftest.er1
8050   ac_status=$?
8051   grep -v '^ *+' conftest.er1 >conftest.err
8052   rm -f conftest.er1
8053   cat conftest.err >&5
8054   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8055   (exit $ac_status); } &&
8056          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8057   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8058   (eval $ac_try) 2>&5
8059   ac_status=$?
8060   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8061   (exit $ac_status); }; } &&
8062          { ac_try='test -s conftest$ac_exeext'
8063   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8064   (eval $ac_try) 2>&5
8065   ac_status=$?
8066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8067   (exit $ac_status); }; }; then
8068   ac_cv_lib_Xv_XvShmCreateImage=yes
8069 else
8070   echo "$as_me: failed program was:" >&5
8071 sed 's/^/| /' conftest.$ac_ext >&5
8072
8073 ac_cv_lib_Xv_XvShmCreateImage=no
8074 fi
8075 rm -f conftest.err conftest.$ac_objext \
8076       conftest$ac_exeext conftest.$ac_ext
8077 LIBS=$ac_check_lib_save_LIBS
8078 fi
8079 echo "$as_me:$LINENO: result: $ac_cv_lib_Xv_XvShmCreateImage" >&5
8080 echo "${ECHO_T}$ac_cv_lib_Xv_XvShmCreateImage" >&6
8081 if test $ac_cv_lib_Xv_XvShmCreateImage = yes; then
8082
8083 cat >>confdefs.h <<\_ACEOF
8084 #define HAVE_XVIDEO 1
8085 _ACEOF
8086
8087                      X_PRE_LIBS="$X_PRE_LIBS -lXv"
8088
8089 fi
8090
8091         fi
8092
8093
8094 fi
8095
8096 done
8097
8098         if test "x$with_opengl" != "xno"
8099     then
8100         if test -f /usr/X11R6/lib/libGL.a -a ! -f /usr/X11R6/lib/libGL.so
8101         then
8102             { { echo "$as_me:$LINENO: error: /usr/X11R6/lib/libGL.a is present on your system.
8103 This prevents linking to OpenGL. Delete the file and restart configure." >&5
8104 echo "$as_me: error: /usr/X11R6/lib/libGL.a is present on your system.
8105 This prevents linking to OpenGL. Delete the file and restart configure." >&2;}
8106    { (exit 1); exit 1; }; }
8107         fi
8108
8109
8110
8111 for ac_header in GL/gl.h GL/glx.h
8112 do
8113 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8114 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8115   echo "$as_me:$LINENO: checking for $ac_header" >&5
8116 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8117 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8118   echo $ECHO_N "(cached) $ECHO_C" >&6
8119 fi
8120 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8121 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8122 else
8123   # Is the header compilable?
8124 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8125 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8126 cat >conftest.$ac_ext <<_ACEOF
8127 /* confdefs.h.  */
8128 _ACEOF
8129 cat confdefs.h >>conftest.$ac_ext
8130 cat >>conftest.$ac_ext <<_ACEOF
8131 /* end confdefs.h.  */
8132 $ac_includes_default
8133 #include <$ac_header>
8134 _ACEOF
8135 rm -f conftest.$ac_objext
8136 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8137   (eval $ac_compile) 2>conftest.er1
8138   ac_status=$?
8139   grep -v '^ *+' conftest.er1 >conftest.err
8140   rm -f conftest.er1
8141   cat conftest.err >&5
8142   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8143   (exit $ac_status); } &&
8144          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8145   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8146   (eval $ac_try) 2>&5
8147   ac_status=$?
8148   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8149   (exit $ac_status); }; } &&
8150          { ac_try='test -s conftest.$ac_objext'
8151   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8152   (eval $ac_try) 2>&5
8153   ac_status=$?
8154   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8155   (exit $ac_status); }; }; then
8156   ac_header_compiler=yes
8157 else
8158   echo "$as_me: failed program was:" >&5
8159 sed 's/^/| /' conftest.$ac_ext >&5
8160
8161 ac_header_compiler=no
8162 fi
8163 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8164 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8165 echo "${ECHO_T}$ac_header_compiler" >&6
8166
8167 # Is the header present?
8168 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8169 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8170 cat >conftest.$ac_ext <<_ACEOF
8171 /* confdefs.h.  */
8172 _ACEOF
8173 cat confdefs.h >>conftest.$ac_ext
8174 cat >>conftest.$ac_ext <<_ACEOF
8175 /* end confdefs.h.  */
8176 #include <$ac_header>
8177 _ACEOF
8178 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8179   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8180   ac_status=$?
8181   grep -v '^ *+' conftest.er1 >conftest.err
8182   rm -f conftest.er1
8183   cat conftest.err >&5
8184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8185   (exit $ac_status); } >/dev/null; then
8186   if test -s conftest.err; then
8187     ac_cpp_err=$ac_c_preproc_warn_flag
8188     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8189   else
8190     ac_cpp_err=
8191   fi
8192 else
8193   ac_cpp_err=yes
8194 fi
8195 if test -z "$ac_cpp_err"; then
8196   ac_header_preproc=yes
8197 else
8198   echo "$as_me: failed program was:" >&5
8199 sed 's/^/| /' conftest.$ac_ext >&5
8200
8201   ac_header_preproc=no
8202 fi
8203 rm -f conftest.err conftest.$ac_ext
8204 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8205 echo "${ECHO_T}$ac_header_preproc" >&6
8206
8207 # So?  What about this header?
8208 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8209   yes:no: )
8210     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8211 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8212     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8213 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8214     ac_header_preproc=yes
8215     ;;
8216   no:yes:* )
8217     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8218 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8219     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8220 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8221     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8222 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8223     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8224 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8225     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8226 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8227     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8228 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8229     (
8230       cat <<\_ASBOX
8231 ## ------------------------------------ ##
8232 ## Report this to wine-devel@winehq.org ##
8233 ## ------------------------------------ ##
8234 _ASBOX
8235     ) |
8236       sed "s/^/$as_me: WARNING:     /" >&2
8237     ;;
8238 esac
8239 echo "$as_me:$LINENO: checking for $ac_header" >&5
8240 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8241 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8242   echo $ECHO_N "(cached) $ECHO_C" >&6
8243 else
8244   eval "$as_ac_Header=\$ac_header_preproc"
8245 fi
8246 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8247 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8248
8249 fi
8250 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8251   cat >>confdefs.h <<_ACEOF
8252 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8253 _ACEOF
8254
8255 fi
8256
8257 done
8258
8259         if test "$ac_cv_header_GL_gl_h" = "yes" -a "$ac_cv_header_GL_glx_h" = "yes"
8260         then
8261
8262 for ac_header in GL/glext.h
8263 do
8264 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8265 echo "$as_me:$LINENO: checking for $ac_header" >&5
8266 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8267 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8268   echo $ECHO_N "(cached) $ECHO_C" >&6
8269 else
8270   cat >conftest.$ac_ext <<_ACEOF
8271 /* confdefs.h.  */
8272 _ACEOF
8273 cat confdefs.h >>conftest.$ac_ext
8274 cat >>conftest.$ac_ext <<_ACEOF
8275 /* end confdefs.h.  */
8276 #include <GL/glx.h>
8277
8278 #include <$ac_header>
8279 _ACEOF
8280 rm -f conftest.$ac_objext
8281 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8282   (eval $ac_compile) 2>conftest.er1
8283   ac_status=$?
8284   grep -v '^ *+' conftest.er1 >conftest.err
8285   rm -f conftest.er1
8286   cat conftest.err >&5
8287   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8288   (exit $ac_status); } &&
8289          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8290   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8291   (eval $ac_try) 2>&5
8292   ac_status=$?
8293   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8294   (exit $ac_status); }; } &&
8295          { ac_try='test -s conftest.$ac_objext'
8296   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8297   (eval $ac_try) 2>&5
8298   ac_status=$?
8299   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8300   (exit $ac_status); }; }; then
8301   eval "$as_ac_Header=yes"
8302 else
8303   echo "$as_me: failed program was:" >&5
8304 sed 's/^/| /' conftest.$ac_ext >&5
8305
8306 eval "$as_ac_Header=no"
8307 fi
8308 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8309 fi
8310 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8311 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8312 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8313   cat >>confdefs.h <<_ACEOF
8314 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8315 _ACEOF
8316
8317 fi
8318
8319 done
8320
8321                     echo "$as_me:$LINENO: checking for up-to-date OpenGL version" >&5
8322 echo $ECHO_N "checking for up-to-date OpenGL version... $ECHO_C" >&6
8323 if test "${wine_cv_opengl_version_OK+set}" = set; then
8324   echo $ECHO_N "(cached) $ECHO_C" >&6
8325 else
8326   cat >conftest.$ac_ext <<_ACEOF
8327 /* confdefs.h.  */
8328 _ACEOF
8329 cat confdefs.h >>conftest.$ac_ext
8330 cat >>conftest.$ac_ext <<_ACEOF
8331 /* end confdefs.h.  */
8332 #include <GL/gl.h>
8333 int
8334 main ()
8335 {
8336 GLenum test = GL_UNSIGNED_SHORT_5_6_5;
8337   ;
8338   return 0;
8339 }
8340 _ACEOF
8341 rm -f conftest.$ac_objext
8342 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8343   (eval $ac_compile) 2>conftest.er1
8344   ac_status=$?
8345   grep -v '^ *+' conftest.er1 >conftest.err
8346   rm -f conftest.er1
8347   cat conftest.err >&5
8348   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8349   (exit $ac_status); } &&
8350          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8351   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8352   (eval $ac_try) 2>&5
8353   ac_status=$?
8354   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8355   (exit $ac_status); }; } &&
8356          { ac_try='test -s conftest.$ac_objext'
8357   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8358   (eval $ac_try) 2>&5
8359   ac_status=$?
8360   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8361   (exit $ac_status); }; }; then
8362   wine_cv_opengl_version_OK="yes"
8363 else
8364   echo "$as_me: failed program was:" >&5
8365 sed 's/^/| /' conftest.$ac_ext >&5
8366
8367 wine_cv_opengl_version_OK="no"
8368
8369 fi
8370 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8371
8372 fi
8373 echo "$as_me:$LINENO: result: $wine_cv_opengl_version_OK" >&5
8374 echo "${ECHO_T}$wine_cv_opengl_version_OK" >&6
8375
8376             if test "$wine_cv_opengl_version_OK" = "yes"
8377             then
8378                                 echo "$as_me:$LINENO: checking for glXCreateContext in -lGL" >&5
8379 echo $ECHO_N "checking for glXCreateContext in -lGL... $ECHO_C" >&6
8380 if test "${ac_cv_lib_GL_glXCreateContext+set}" = set; then
8381   echo $ECHO_N "(cached) $ECHO_C" >&6
8382 else
8383   ac_check_lib_save_LIBS=$LIBS
8384 LIBS="-lGL $X_LIBS -lXext -lX11 -lm $X_EXTRA_LIBS $LIBS"
8385 cat >conftest.$ac_ext <<_ACEOF
8386 /* confdefs.h.  */
8387 _ACEOF
8388 cat confdefs.h >>conftest.$ac_ext
8389 cat >>conftest.$ac_ext <<_ACEOF
8390 /* end confdefs.h.  */
8391
8392 /* Override any gcc2 internal prototype to avoid an error.  */
8393 #ifdef __cplusplus
8394 extern "C"
8395 #endif
8396 /* We use char because int might match the return type of a gcc2
8397    builtin and then its argument prototype would still apply.  */
8398 char glXCreateContext ();
8399 int
8400 main ()
8401 {
8402 glXCreateContext ();
8403   ;
8404   return 0;
8405 }
8406 _ACEOF
8407 rm -f conftest.$ac_objext conftest$ac_exeext
8408 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8409   (eval $ac_link) 2>conftest.er1
8410   ac_status=$?
8411   grep -v '^ *+' conftest.er1 >conftest.err
8412   rm -f conftest.er1
8413   cat conftest.err >&5
8414   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8415   (exit $ac_status); } &&
8416          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8417   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8418   (eval $ac_try) 2>&5
8419   ac_status=$?
8420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8421   (exit $ac_status); }; } &&
8422          { ac_try='test -s conftest$ac_exeext'
8423   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8424   (eval $ac_try) 2>&5
8425   ac_status=$?
8426   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8427   (exit $ac_status); }; }; then
8428   ac_cv_lib_GL_glXCreateContext=yes
8429 else
8430   echo "$as_me: failed program was:" >&5
8431 sed 's/^/| /' conftest.$ac_ext >&5
8432
8433 ac_cv_lib_GL_glXCreateContext=no
8434 fi
8435 rm -f conftest.err conftest.$ac_objext \
8436       conftest$ac_exeext conftest.$ac_ext
8437 LIBS=$ac_check_lib_save_LIBS
8438 fi
8439 echo "$as_me:$LINENO: result: $ac_cv_lib_GL_glXCreateContext" >&5
8440 echo "${ECHO_T}$ac_cv_lib_GL_glXCreateContext" >&6
8441 if test $ac_cv_lib_GL_glXCreateContext = yes; then
8442   OPENGL_LIBS="-lGL"
8443
8444 fi
8445
8446
8447                 if test "$ac_cv_lib_GL_glXCreateContext" = "yes"
8448                 then
8449                         OPENGLFILES='$(OPENGLFILES)'
8450
8451 cat >>confdefs.h <<\_ACEOF
8452 #define HAVE_OPENGL 1
8453 _ACEOF
8454
8455
8456                         echo "$as_me:$LINENO: checking for glXGetProcAddressARB in -lGL" >&5
8457 echo $ECHO_N "checking for glXGetProcAddressARB in -lGL... $ECHO_C" >&6
8458 if test "${ac_cv_lib_GL_glXGetProcAddressARB+set}" = set; then
8459   echo $ECHO_N "(cached) $ECHO_C" >&6
8460 else
8461   ac_check_lib_save_LIBS=$LIBS
8462 LIBS="-lGL $X_LIBS -lXext -lX11 -lm $X_EXTRA_LIBS $LIBS"
8463 cat >conftest.$ac_ext <<_ACEOF
8464 /* confdefs.h.  */
8465 _ACEOF
8466 cat confdefs.h >>conftest.$ac_ext
8467 cat >>conftest.$ac_ext <<_ACEOF
8468 /* end confdefs.h.  */
8469
8470 /* Override any gcc2 internal prototype to avoid an error.  */
8471 #ifdef __cplusplus
8472 extern "C"
8473 #endif
8474 /* We use char because int might match the return type of a gcc2
8475    builtin and then its argument prototype would still apply.  */
8476 char glXGetProcAddressARB ();
8477 int
8478 main ()
8479 {
8480 glXGetProcAddressARB ();
8481   ;
8482   return 0;
8483 }
8484 _ACEOF
8485 rm -f conftest.$ac_objext conftest$ac_exeext
8486 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8487   (eval $ac_link) 2>conftest.er1
8488   ac_status=$?
8489   grep -v '^ *+' conftest.er1 >conftest.err
8490   rm -f conftest.er1
8491   cat conftest.err >&5
8492   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8493   (exit $ac_status); } &&
8494          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8495   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8496   (eval $ac_try) 2>&5
8497   ac_status=$?
8498   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8499   (exit $ac_status); }; } &&
8500          { ac_try='test -s conftest$ac_exeext'
8501   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8502   (eval $ac_try) 2>&5
8503   ac_status=$?
8504   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8505   (exit $ac_status); }; }; then
8506   ac_cv_lib_GL_glXGetProcAddressARB=yes
8507 else
8508   echo "$as_me: failed program was:" >&5
8509 sed 's/^/| /' conftest.$ac_ext >&5
8510
8511 ac_cv_lib_GL_glXGetProcAddressARB=no
8512 fi
8513 rm -f conftest.err conftest.$ac_objext \
8514       conftest$ac_exeext conftest.$ac_ext
8515 LIBS=$ac_check_lib_save_LIBS
8516 fi
8517 echo "$as_me:$LINENO: result: $ac_cv_lib_GL_glXGetProcAddressARB" >&5
8518 echo "${ECHO_T}$ac_cv_lib_GL_glXGetProcAddressARB" >&6
8519 if test $ac_cv_lib_GL_glXGetProcAddressARB = yes; then
8520
8521 cat >>confdefs.h <<\_ACEOF
8522 #define HAVE_GLX_GETPROCADDRESS 1
8523 _ACEOF
8524
8525 fi
8526
8527
8528                         if test "$ac_cv_lib_GL_glXGetProcAddressARB" = "yes"
8529                         then
8530                                echo "$as_me:$LINENO: checking for OpenGL extension functions prototypes" >&5
8531 echo $ECHO_N "checking for OpenGL extension functions prototypes... $ECHO_C" >&6
8532 if test "${wine_cv_extension_prototypes+set}" = set; then
8533   echo $ECHO_N "(cached) $ECHO_C" >&6
8534 else
8535   cat >conftest.$ac_ext <<_ACEOF
8536 /* confdefs.h.  */
8537 _ACEOF
8538 cat confdefs.h >>conftest.$ac_ext
8539 cat >>conftest.$ac_ext <<_ACEOF
8540 /* end confdefs.h.  */
8541 #include <GL/gl.h>
8542                                                   #ifdef HAVE_GL_GLEXT_H
8543                                                   # include <GL/glext.h>
8544                                                   #endif
8545
8546 int
8547 main ()
8548 {
8549 PFNGLCOLORTABLEEXTPROC test_proc;
8550   ;
8551   return 0;
8552 }
8553 _ACEOF
8554 rm -f conftest.$ac_objext
8555 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8556   (eval $ac_compile) 2>conftest.er1
8557   ac_status=$?
8558   grep -v '^ *+' conftest.er1 >conftest.err
8559   rm -f conftest.er1
8560   cat conftest.err >&5
8561   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8562   (exit $ac_status); } &&
8563          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8564   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8565   (eval $ac_try) 2>&5
8566   ac_status=$?
8567   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8568   (exit $ac_status); }; } &&
8569          { ac_try='test -s conftest.$ac_objext'
8570   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8571   (eval $ac_try) 2>&5
8572   ac_status=$?
8573   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8574   (exit $ac_status); }; }; then
8575   wine_cv_extension_prototypes="yes"
8576 else
8577   echo "$as_me: failed program was:" >&5
8578 sed 's/^/| /' conftest.$ac_ext >&5
8579
8580 wine_cv_extension_prototypes="no"
8581
8582 fi
8583 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8584
8585 fi
8586 echo "$as_me:$LINENO: result: $wine_cv_extension_prototypes" >&5
8587 echo "${ECHO_T}$wine_cv_extension_prototypes" >&6
8588                                 if test "$wine_cv_extension_prototypes" = "yes"
8589                                 then
8590
8591 cat >>confdefs.h <<\_ACEOF
8592 #define HAVE_GLEXT_PROTOTYPES 1
8593 _ACEOF
8594
8595                                 fi
8596                         fi
8597
8598                 fi
8599                                 echo "$as_me:$LINENO: checking for gluLookAt in -lGLU" >&5
8600 echo $ECHO_N "checking for gluLookAt in -lGLU... $ECHO_C" >&6
8601 if test "${ac_cv_lib_GLU_gluLookAt+set}" = set; then
8602   echo $ECHO_N "(cached) $ECHO_C" >&6
8603 else
8604   ac_check_lib_save_LIBS=$LIBS
8605 LIBS="-lGLU $OPENGL_LIBS $X_LIBS $X_PRE_LIBS -lXext -lX11 -lm $X_EXTRA_LIBS
8606                  $LIBS"
8607 cat >conftest.$ac_ext <<_ACEOF
8608 /* confdefs.h.  */
8609 _ACEOF
8610 cat confdefs.h >>conftest.$ac_ext
8611 cat >>conftest.$ac_ext <<_ACEOF
8612 /* end confdefs.h.  */
8613
8614 /* Override any gcc2 internal prototype to avoid an error.  */
8615 #ifdef __cplusplus
8616 extern "C"
8617 #endif
8618 /* We use char because int might match the return type of a gcc2
8619    builtin and then its argument prototype would still apply.  */
8620 char gluLookAt ();
8621 int
8622 main ()
8623 {
8624 gluLookAt ();
8625   ;
8626   return 0;
8627 }
8628 _ACEOF
8629 rm -f conftest.$ac_objext conftest$ac_exeext
8630 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8631   (eval $ac_link) 2>conftest.er1
8632   ac_status=$?
8633   grep -v '^ *+' conftest.er1 >conftest.err
8634   rm -f conftest.er1
8635   cat conftest.err >&5
8636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8637   (exit $ac_status); } &&
8638          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8639   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8640   (eval $ac_try) 2>&5
8641   ac_status=$?
8642   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8643   (exit $ac_status); }; } &&
8644          { ac_try='test -s conftest$ac_exeext'
8645   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8646   (eval $ac_try) 2>&5
8647   ac_status=$?
8648   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8649   (exit $ac_status); }; }; then
8650   ac_cv_lib_GLU_gluLookAt=yes
8651 else
8652   echo "$as_me: failed program was:" >&5
8653 sed 's/^/| /' conftest.$ac_ext >&5
8654
8655 ac_cv_lib_GLU_gluLookAt=no
8656 fi
8657 rm -f conftest.err conftest.$ac_objext \
8658       conftest$ac_exeext conftest.$ac_ext
8659 LIBS=$ac_check_lib_save_LIBS
8660 fi
8661 echo "$as_me:$LINENO: result: $ac_cv_lib_GLU_gluLookAt" >&5
8662 echo "${ECHO_T}$ac_cv_lib_GLU_gluLookAt" >&6
8663 if test $ac_cv_lib_GLU_gluLookAt = yes; then
8664   OPENGL_LIBS="$OPENGL_LIBS -lGLU"
8665                              GLU32FILES='$(GLU32FILES)'
8666
8667 fi
8668
8669              fi
8670
8671                           echo "$as_me:$LINENO: checking for glutMainLoop in -lglut" >&5
8672 echo $ECHO_N "checking for glutMainLoop in -lglut... $ECHO_C" >&6
8673 if test "${ac_cv_lib_glut_glutMainLoop+set}" = set; then
8674   echo $ECHO_N "(cached) $ECHO_C" >&6
8675 else
8676   ac_check_lib_save_LIBS=$LIBS
8677 LIBS="-lglut $OPENGL_LIBS $X_LIBS $X_PRE_LIBS -lXmu -lXi -lX11 $X_EXTRA_LIBS $LIBS"
8678 cat >conftest.$ac_ext <<_ACEOF
8679 /* confdefs.h.  */
8680 _ACEOF
8681 cat confdefs.h >>conftest.$ac_ext
8682 cat >>conftest.$ac_ext <<_ACEOF
8683 /* end confdefs.h.  */
8684
8685 /* Override any gcc2 internal prototype to avoid an error.  */
8686 #ifdef __cplusplus
8687 extern "C"
8688 #endif
8689 /* We use char because int might match the return type of a gcc2
8690    builtin and then its argument prototype would still apply.  */
8691 char glutMainLoop ();
8692 int
8693 main ()
8694 {
8695 glutMainLoop ();
8696   ;
8697   return 0;
8698 }
8699 _ACEOF
8700 rm -f conftest.$ac_objext conftest$ac_exeext
8701 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8702   (eval $ac_link) 2>conftest.er1
8703   ac_status=$?
8704   grep -v '^ *+' conftest.er1 >conftest.err
8705   rm -f conftest.er1
8706   cat conftest.err >&5
8707   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8708   (exit $ac_status); } &&
8709          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8710   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8711   (eval $ac_try) 2>&5
8712   ac_status=$?
8713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8714   (exit $ac_status); }; } &&
8715          { ac_try='test -s conftest$ac_exeext'
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_cv_lib_glut_glutMainLoop=yes
8722 else
8723   echo "$as_me: failed program was:" >&5
8724 sed 's/^/| /' conftest.$ac_ext >&5
8725
8726 ac_cv_lib_glut_glutMainLoop=no
8727 fi
8728 rm -f conftest.err conftest.$ac_objext \
8729       conftest$ac_exeext conftest.$ac_ext
8730 LIBS=$ac_check_lib_save_LIBS
8731 fi
8732 echo "$as_me:$LINENO: result: $ac_cv_lib_glut_glutMainLoop" >&5
8733 echo "${ECHO_T}$ac_cv_lib_glut_glutMainLoop" >&6
8734 if test $ac_cv_lib_glut_glutMainLoop = yes; then
8735   GLUT_LIBS="-lglut -lXmu -lXi"
8736
8737                         GLUT32FILES='$(GLUT32FILES)'
8738
8739 fi
8740
8741          fi
8742     fi
8743
8744         NASLIBS=""
8745
8746
8747 for ac_header in audio/audiolib.h
8748 do
8749 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8750 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8751   echo "$as_me:$LINENO: checking for $ac_header" >&5
8752 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8753 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8754   echo $ECHO_N "(cached) $ECHO_C" >&6
8755 fi
8756 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8757 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8758 else
8759   # Is the header compilable?
8760 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8761 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8762 cat >conftest.$ac_ext <<_ACEOF
8763 /* confdefs.h.  */
8764 _ACEOF
8765 cat confdefs.h >>conftest.$ac_ext
8766 cat >>conftest.$ac_ext <<_ACEOF
8767 /* end confdefs.h.  */
8768 $ac_includes_default
8769 #include <$ac_header>
8770 _ACEOF
8771 rm -f conftest.$ac_objext
8772 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8773   (eval $ac_compile) 2>conftest.er1
8774   ac_status=$?
8775   grep -v '^ *+' conftest.er1 >conftest.err
8776   rm -f conftest.er1
8777   cat conftest.err >&5
8778   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8779   (exit $ac_status); } &&
8780          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8781   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8782   (eval $ac_try) 2>&5
8783   ac_status=$?
8784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8785   (exit $ac_status); }; } &&
8786          { ac_try='test -s conftest.$ac_objext'
8787   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8788   (eval $ac_try) 2>&5
8789   ac_status=$?
8790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8791   (exit $ac_status); }; }; then
8792   ac_header_compiler=yes
8793 else
8794   echo "$as_me: failed program was:" >&5
8795 sed 's/^/| /' conftest.$ac_ext >&5
8796
8797 ac_header_compiler=no
8798 fi
8799 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8800 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8801 echo "${ECHO_T}$ac_header_compiler" >&6
8802
8803 # Is the header present?
8804 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8805 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8806 cat >conftest.$ac_ext <<_ACEOF
8807 /* confdefs.h.  */
8808 _ACEOF
8809 cat confdefs.h >>conftest.$ac_ext
8810 cat >>conftest.$ac_ext <<_ACEOF
8811 /* end confdefs.h.  */
8812 #include <$ac_header>
8813 _ACEOF
8814 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8815   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8816   ac_status=$?
8817   grep -v '^ *+' conftest.er1 >conftest.err
8818   rm -f conftest.er1
8819   cat conftest.err >&5
8820   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8821   (exit $ac_status); } >/dev/null; then
8822   if test -s conftest.err; then
8823     ac_cpp_err=$ac_c_preproc_warn_flag
8824     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8825   else
8826     ac_cpp_err=
8827   fi
8828 else
8829   ac_cpp_err=yes
8830 fi
8831 if test -z "$ac_cpp_err"; then
8832   ac_header_preproc=yes
8833 else
8834   echo "$as_me: failed program was:" >&5
8835 sed 's/^/| /' conftest.$ac_ext >&5
8836
8837   ac_header_preproc=no
8838 fi
8839 rm -f conftest.err conftest.$ac_ext
8840 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8841 echo "${ECHO_T}$ac_header_preproc" >&6
8842
8843 # So?  What about this header?
8844 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8845   yes:no: )
8846     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8847 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8848     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8849 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8850     ac_header_preproc=yes
8851     ;;
8852   no:yes:* )
8853     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8854 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8855     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8856 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8857     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8858 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8859     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8860 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8861     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8862 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8863     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8864 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8865     (
8866       cat <<\_ASBOX
8867 ## ------------------------------------ ##
8868 ## Report this to wine-devel@winehq.org ##
8869 ## ------------------------------------ ##
8870 _ASBOX
8871     ) |
8872       sed "s/^/$as_me: WARNING:     /" >&2
8873     ;;
8874 esac
8875 echo "$as_me:$LINENO: checking for $ac_header" >&5
8876 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8877 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8878   echo $ECHO_N "(cached) $ECHO_C" >&6
8879 else
8880   eval "$as_ac_Header=\$ac_header_preproc"
8881 fi
8882 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8883 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8884
8885 fi
8886 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8887   cat >>confdefs.h <<_ACEOF
8888 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8889 _ACEOF
8890
8891 for ac_header in audio/soundlib.h
8892 do
8893 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8894 echo "$as_me:$LINENO: checking for $ac_header" >&5
8895 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8896 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8897   echo $ECHO_N "(cached) $ECHO_C" >&6
8898 else
8899   cat >conftest.$ac_ext <<_ACEOF
8900 /* confdefs.h.  */
8901 _ACEOF
8902 cat confdefs.h >>conftest.$ac_ext
8903 cat >>conftest.$ac_ext <<_ACEOF
8904 /* end confdefs.h.  */
8905 #include <audio/audiolib.h>
8906
8907 #include <$ac_header>
8908 _ACEOF
8909 rm -f conftest.$ac_objext
8910 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8911   (eval $ac_compile) 2>conftest.er1
8912   ac_status=$?
8913   grep -v '^ *+' conftest.er1 >conftest.err
8914   rm -f conftest.er1
8915   cat conftest.err >&5
8916   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8917   (exit $ac_status); } &&
8918          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8919   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8920   (eval $ac_try) 2>&5
8921   ac_status=$?
8922   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8923   (exit $ac_status); }; } &&
8924          { ac_try='test -s conftest.$ac_objext'
8925   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8926   (eval $ac_try) 2>&5
8927   ac_status=$?
8928   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8929   (exit $ac_status); }; }; then
8930   eval "$as_ac_Header=yes"
8931 else
8932   echo "$as_me: failed program was:" >&5
8933 sed 's/^/| /' conftest.$ac_ext >&5
8934
8935 eval "$as_ac_Header=no"
8936 fi
8937 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8938 fi
8939 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8940 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8941 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8942   cat >>confdefs.h <<_ACEOF
8943 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8944 _ACEOF
8945
8946 fi
8947
8948 done
8949
8950           echo "$as_me:$LINENO: checking for AuCreateFlow in -laudio" >&5
8951 echo $ECHO_N "checking for AuCreateFlow in -laudio... $ECHO_C" >&6
8952 if test "${ac_cv_lib_audio_AuCreateFlow+set}" = set; then
8953   echo $ECHO_N "(cached) $ECHO_C" >&6
8954 else
8955   ac_check_lib_save_LIBS=$LIBS
8956 LIBS="-laudio -lXt $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
8957 cat >conftest.$ac_ext <<_ACEOF
8958 /* confdefs.h.  */
8959 _ACEOF
8960 cat confdefs.h >>conftest.$ac_ext
8961 cat >>conftest.$ac_ext <<_ACEOF
8962 /* end confdefs.h.  */
8963
8964 /* Override any gcc2 internal prototype to avoid an error.  */
8965 #ifdef __cplusplus
8966 extern "C"
8967 #endif
8968 /* We use char because int might match the return type of a gcc2
8969    builtin and then its argument prototype would still apply.  */
8970 char AuCreateFlow ();
8971 int
8972 main ()
8973 {
8974 AuCreateFlow ();
8975   ;
8976   return 0;
8977 }
8978 _ACEOF
8979 rm -f conftest.$ac_objext conftest$ac_exeext
8980 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8981   (eval $ac_link) 2>conftest.er1
8982   ac_status=$?
8983   grep -v '^ *+' conftest.er1 >conftest.err
8984   rm -f conftest.er1
8985   cat conftest.err >&5
8986   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8987   (exit $ac_status); } &&
8988          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8989   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8990   (eval $ac_try) 2>&5
8991   ac_status=$?
8992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8993   (exit $ac_status); }; } &&
8994          { ac_try='test -s conftest$ac_exeext'
8995   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8996   (eval $ac_try) 2>&5
8997   ac_status=$?
8998   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8999   (exit $ac_status); }; }; then
9000   ac_cv_lib_audio_AuCreateFlow=yes
9001 else
9002   echo "$as_me: failed program was:" >&5
9003 sed 's/^/| /' conftest.$ac_ext >&5
9004
9005 ac_cv_lib_audio_AuCreateFlow=no
9006 fi
9007 rm -f conftest.err conftest.$ac_objext \
9008       conftest$ac_exeext conftest.$ac_ext
9009 LIBS=$ac_check_lib_save_LIBS
9010 fi
9011 echo "$as_me:$LINENO: result: $ac_cv_lib_audio_AuCreateFlow" >&5
9012 echo "${ECHO_T}$ac_cv_lib_audio_AuCreateFlow" >&6
9013 if test $ac_cv_lib_audio_AuCreateFlow = yes; then
9014
9015 cat >>confdefs.h <<\_ACEOF
9016 #define HAVE_NAS 1
9017 _ACEOF
9018
9019                         NASLIBS="-laudio -lXt $X_LIBS -lXext -lX11 $X_EXTRA_LIBS"
9020 fi
9021
9022 fi
9023
9024 done
9025
9026
9027     CPPFLAGS="$ac_save_CPPFLAGS"
9028     XFILES='$(XFILES)'
9029 else
9030     XLIB=""
9031     X_CFLAGS=""
9032     X_LIBS=""
9033 fi
9034
9035 CURSESLIBS=""
9036 if test "x$with_curses" != "xno"
9037 then
9038
9039 for ac_header in ncurses.h
9040 do
9041 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9042 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9043   echo "$as_me:$LINENO: checking for $ac_header" >&5
9044 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9045 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9046   echo $ECHO_N "(cached) $ECHO_C" >&6
9047 fi
9048 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9049 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9050 else
9051   # Is the header compilable?
9052 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9053 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9054 cat >conftest.$ac_ext <<_ACEOF
9055 /* confdefs.h.  */
9056 _ACEOF
9057 cat confdefs.h >>conftest.$ac_ext
9058 cat >>conftest.$ac_ext <<_ACEOF
9059 /* end confdefs.h.  */
9060 $ac_includes_default
9061 #include <$ac_header>
9062 _ACEOF
9063 rm -f conftest.$ac_objext
9064 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9065   (eval $ac_compile) 2>conftest.er1
9066   ac_status=$?
9067   grep -v '^ *+' conftest.er1 >conftest.err
9068   rm -f conftest.er1
9069   cat conftest.err >&5
9070   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9071   (exit $ac_status); } &&
9072          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
9073   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9074   (eval $ac_try) 2>&5
9075   ac_status=$?
9076   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9077   (exit $ac_status); }; } &&
9078          { ac_try='test -s conftest.$ac_objext'
9079   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9080   (eval $ac_try) 2>&5
9081   ac_status=$?
9082   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9083   (exit $ac_status); }; }; then
9084   ac_header_compiler=yes
9085 else
9086   echo "$as_me: failed program was:" >&5
9087 sed 's/^/| /' conftest.$ac_ext >&5
9088
9089 ac_header_compiler=no
9090 fi
9091 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9092 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9093 echo "${ECHO_T}$ac_header_compiler" >&6
9094
9095 # Is the header present?
9096 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9097 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9098 cat >conftest.$ac_ext <<_ACEOF
9099 /* confdefs.h.  */
9100 _ACEOF
9101 cat confdefs.h >>conftest.$ac_ext
9102 cat >>conftest.$ac_ext <<_ACEOF
9103 /* end confdefs.h.  */
9104 #include <$ac_header>
9105 _ACEOF
9106 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9107   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9108   ac_status=$?
9109   grep -v '^ *+' conftest.er1 >conftest.err
9110   rm -f conftest.er1
9111   cat conftest.err >&5
9112   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9113   (exit $ac_status); } >/dev/null; then
9114   if test -s conftest.err; then
9115     ac_cpp_err=$ac_c_preproc_warn_flag
9116     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9117   else
9118     ac_cpp_err=
9119   fi
9120 else
9121   ac_cpp_err=yes
9122 fi
9123 if test -z "$ac_cpp_err"; then
9124   ac_header_preproc=yes
9125 else
9126   echo "$as_me: failed program was:" >&5
9127 sed 's/^/| /' conftest.$ac_ext >&5
9128
9129   ac_header_preproc=no
9130 fi
9131 rm -f conftest.err conftest.$ac_ext
9132 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9133 echo "${ECHO_T}$ac_header_preproc" >&6
9134
9135 # So?  What about this header?
9136 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9137   yes:no: )
9138     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9139 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9140     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9141 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9142     ac_header_preproc=yes
9143     ;;
9144   no:yes:* )
9145     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9146 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9147     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9148 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9149     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9150 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9151     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9152 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9153     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9154 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9155     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9156 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9157     (
9158       cat <<\_ASBOX
9159 ## ------------------------------------ ##
9160 ## Report this to wine-devel@winehq.org ##
9161 ## ------------------------------------ ##
9162 _ASBOX
9163     ) |
9164       sed "s/^/$as_me: WARNING:     /" >&2
9165     ;;
9166 esac
9167 echo "$as_me:$LINENO: checking for $ac_header" >&5
9168 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9169 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9170   echo $ECHO_N "(cached) $ECHO_C" >&6
9171 else
9172   eval "$as_ac_Header=\$ac_header_preproc"
9173 fi
9174 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9175 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9176
9177 fi
9178 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9179   cat >>confdefs.h <<_ACEOF
9180 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9181 _ACEOF
9182  echo "$as_me:$LINENO: checking for waddch in -lncurses" >&5
9183 echo $ECHO_N "checking for waddch in -lncurses... $ECHO_C" >&6
9184 if test "${ac_cv_lib_ncurses_waddch+set}" = set; then
9185   echo $ECHO_N "(cached) $ECHO_C" >&6
9186 else
9187   ac_check_lib_save_LIBS=$LIBS
9188 LIBS="-lncurses  $LIBS"
9189 cat >conftest.$ac_ext <<_ACEOF
9190 /* confdefs.h.  */
9191 _ACEOF
9192 cat confdefs.h >>conftest.$ac_ext
9193 cat >>conftest.$ac_ext <<_ACEOF
9194 /* end confdefs.h.  */
9195
9196 /* Override any gcc2 internal prototype to avoid an error.  */
9197 #ifdef __cplusplus
9198 extern "C"
9199 #endif
9200 /* We use char because int might match the return type of a gcc2
9201    builtin and then its argument prototype would still apply.  */
9202 char waddch ();
9203 int
9204 main ()
9205 {
9206 waddch ();
9207   ;
9208   return 0;
9209 }
9210 _ACEOF
9211 rm -f conftest.$ac_objext conftest$ac_exeext
9212 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9213   (eval $ac_link) 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); } &&
9220          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
9221   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9222   (eval $ac_try) 2>&5
9223   ac_status=$?
9224   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9225   (exit $ac_status); }; } &&
9226          { ac_try='test -s conftest$ac_exeext'
9227   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9228   (eval $ac_try) 2>&5
9229   ac_status=$?
9230   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9231   (exit $ac_status); }; }; then
9232   ac_cv_lib_ncurses_waddch=yes
9233 else
9234   echo "$as_me: failed program was:" >&5
9235 sed 's/^/| /' conftest.$ac_ext >&5
9236
9237 ac_cv_lib_ncurses_waddch=no
9238 fi
9239 rm -f conftest.err conftest.$ac_objext \
9240       conftest$ac_exeext conftest.$ac_ext
9241 LIBS=$ac_check_lib_save_LIBS
9242 fi
9243 echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_waddch" >&5
9244 echo "${ECHO_T}$ac_cv_lib_ncurses_waddch" >&6
9245 if test $ac_cv_lib_ncurses_waddch = yes; then
9246
9247 cat >>confdefs.h <<\_ACEOF
9248 #define HAVE_LIBNCURSES 1
9249 _ACEOF
9250
9251              CURSESLIBS="-lncurses"
9252 else
9253
9254 for ac_header in curses.h
9255 do
9256 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9257 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9258   echo "$as_me:$LINENO: checking for $ac_header" >&5
9259 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9260 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9261   echo $ECHO_N "(cached) $ECHO_C" >&6
9262 fi
9263 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9264 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9265 else
9266   # Is the header compilable?
9267 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9268 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9269 cat >conftest.$ac_ext <<_ACEOF
9270 /* confdefs.h.  */
9271 _ACEOF
9272 cat confdefs.h >>conftest.$ac_ext
9273 cat >>conftest.$ac_ext <<_ACEOF
9274 /* end confdefs.h.  */
9275 $ac_includes_default
9276 #include <$ac_header>
9277 _ACEOF
9278 rm -f conftest.$ac_objext
9279 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9280   (eval $ac_compile) 2>conftest.er1
9281   ac_status=$?
9282   grep -v '^ *+' conftest.er1 >conftest.err
9283   rm -f conftest.er1
9284   cat conftest.err >&5
9285   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9286   (exit $ac_status); } &&
9287          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
9288   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9289   (eval $ac_try) 2>&5
9290   ac_status=$?
9291   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9292   (exit $ac_status); }; } &&
9293          { ac_try='test -s conftest.$ac_objext'
9294   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9295   (eval $ac_try) 2>&5
9296   ac_status=$?
9297   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9298   (exit $ac_status); }; }; then
9299   ac_header_compiler=yes
9300 else
9301   echo "$as_me: failed program was:" >&5
9302 sed 's/^/| /' conftest.$ac_ext >&5
9303
9304 ac_header_compiler=no
9305 fi
9306 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9307 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9308 echo "${ECHO_T}$ac_header_compiler" >&6
9309
9310 # Is the header present?
9311 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9312 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9313 cat >conftest.$ac_ext <<_ACEOF
9314 /* confdefs.h.  */
9315 _ACEOF
9316 cat confdefs.h >>conftest.$ac_ext
9317 cat >>conftest.$ac_ext <<_ACEOF
9318 /* end confdefs.h.  */
9319 #include <$ac_header>
9320 _ACEOF
9321 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9322   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9323   ac_status=$?
9324   grep -v '^ *+' conftest.er1 >conftest.err
9325   rm -f conftest.er1
9326   cat conftest.err >&5
9327   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9328   (exit $ac_status); } >/dev/null; then
9329   if test -s conftest.err; then
9330     ac_cpp_err=$ac_c_preproc_warn_flag
9331     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9332   else
9333     ac_cpp_err=
9334   fi
9335 else
9336   ac_cpp_err=yes
9337 fi
9338 if test -z "$ac_cpp_err"; then
9339   ac_header_preproc=yes
9340 else
9341   echo "$as_me: failed program was:" >&5
9342 sed 's/^/| /' conftest.$ac_ext >&5
9343
9344   ac_header_preproc=no
9345 fi
9346 rm -f conftest.err conftest.$ac_ext
9347 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9348 echo "${ECHO_T}$ac_header_preproc" >&6
9349
9350 # So?  What about this header?
9351 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9352   yes:no: )
9353     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9354 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9355     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9356 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9357     ac_header_preproc=yes
9358     ;;
9359   no:yes:* )
9360     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9361 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9362     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9363 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9364     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9365 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9366     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9367 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9368     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9369 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9370     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9371 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9372     (
9373       cat <<\_ASBOX
9374 ## ------------------------------------ ##
9375 ## Report this to wine-devel@winehq.org ##
9376 ## ------------------------------------ ##
9377 _ASBOX
9378     ) |
9379       sed "s/^/$as_me: WARNING:     /" >&2
9380     ;;
9381 esac
9382 echo "$as_me:$LINENO: checking for $ac_header" >&5
9383 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9384 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9385   echo $ECHO_N "(cached) $ECHO_C" >&6
9386 else
9387   eval "$as_ac_Header=\$ac_header_preproc"
9388 fi
9389 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9390 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9391
9392 fi
9393 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9394   cat >>confdefs.h <<_ACEOF
9395 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9396 _ACEOF
9397  echo "$as_me:$LINENO: checking for waddch in -lcurses" >&5
9398 echo $ECHO_N "checking for waddch in -lcurses... $ECHO_C" >&6
9399 if test "${ac_cv_lib_curses_waddch+set}" = set; then
9400   echo $ECHO_N "(cached) $ECHO_C" >&6
9401 else
9402   ac_check_lib_save_LIBS=$LIBS
9403 LIBS="-lcurses  $LIBS"
9404 cat >conftest.$ac_ext <<_ACEOF
9405 /* confdefs.h.  */
9406 _ACEOF
9407 cat confdefs.h >>conftest.$ac_ext
9408 cat >>conftest.$ac_ext <<_ACEOF
9409 /* end confdefs.h.  */
9410
9411 /* Override any gcc2 internal prototype to avoid an error.  */
9412 #ifdef __cplusplus
9413 extern "C"
9414 #endif
9415 /* We use char because int might match the return type of a gcc2
9416    builtin and then its argument prototype would still apply.  */
9417 char waddch ();
9418 int
9419 main ()
9420 {
9421 waddch ();
9422   ;
9423   return 0;
9424 }
9425 _ACEOF
9426 rm -f conftest.$ac_objext conftest$ac_exeext
9427 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9428   (eval $ac_link) 2>conftest.er1
9429   ac_status=$?
9430   grep -v '^ *+' conftest.er1 >conftest.err
9431   rm -f conftest.er1
9432   cat conftest.err >&5
9433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9434   (exit $ac_status); } &&
9435          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
9436   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9437   (eval $ac_try) 2>&5
9438   ac_status=$?
9439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9440   (exit $ac_status); }; } &&
9441          { ac_try='test -s conftest$ac_exeext'
9442   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9443   (eval $ac_try) 2>&5
9444   ac_status=$?
9445   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9446   (exit $ac_status); }; }; then
9447   ac_cv_lib_curses_waddch=yes
9448 else
9449   echo "$as_me: failed program was:" >&5
9450 sed 's/^/| /' conftest.$ac_ext >&5
9451
9452 ac_cv_lib_curses_waddch=no
9453 fi
9454 rm -f conftest.err conftest.$ac_objext \
9455       conftest$ac_exeext conftest.$ac_ext
9456 LIBS=$ac_check_lib_save_LIBS
9457 fi
9458 echo "$as_me:$LINENO: result: $ac_cv_lib_curses_waddch" >&5
9459 echo "${ECHO_T}$ac_cv_lib_curses_waddch" >&6
9460 if test $ac_cv_lib_curses_waddch = yes; then
9461
9462 cat >>confdefs.h <<\_ACEOF
9463 #define HAVE_LIBCURSES 1
9464 _ACEOF
9465
9466                       CURSESLIBS="-lcurses"
9467 fi
9468
9469 fi
9470
9471 done
9472
9473 fi
9474
9475 fi
9476
9477 done
9478
9479     saved_libs="$LIBS"
9480     LIBS="$CURSESLIBS $LIBS"
9481
9482
9483 for ac_func in getbkgd resizeterm
9484 do
9485 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9486 echo "$as_me:$LINENO: checking for $ac_func" >&5
9487 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9488 if eval "test \"\${$as_ac_var+set}\" = set"; then
9489   echo $ECHO_N "(cached) $ECHO_C" >&6
9490 else
9491   cat >conftest.$ac_ext <<_ACEOF
9492 /* confdefs.h.  */
9493 _ACEOF
9494 cat confdefs.h >>conftest.$ac_ext
9495 cat >>conftest.$ac_ext <<_ACEOF
9496 /* end confdefs.h.  */
9497 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9498    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9499 #define $ac_func innocuous_$ac_func
9500
9501 /* System header to define __stub macros and hopefully few prototypes,
9502     which can conflict with char $ac_func (); below.
9503     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9504     <limits.h> exists even on freestanding compilers.  */
9505
9506 #ifdef __STDC__
9507 # include <limits.h>
9508 #else
9509 # include <assert.h>
9510 #endif
9511
9512 #undef $ac_func
9513
9514 /* Override any gcc2 internal prototype to avoid an error.  */
9515 #ifdef __cplusplus
9516 extern "C"
9517 {
9518 #endif
9519 /* We use char because int might match the return type of a gcc2
9520    builtin and then its argument prototype would still apply.  */
9521 char $ac_func ();
9522 /* The GNU C library defines this for functions which it implements
9523     to always fail with ENOSYS.  Some functions are actually named
9524     something starting with __ and the normal name is an alias.  */
9525 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9526 choke me
9527 #else
9528 char (*f) () = $ac_func;
9529 #endif
9530 #ifdef __cplusplus
9531 }
9532 #endif
9533
9534 int
9535 main ()
9536 {
9537 return f != $ac_func;
9538   ;
9539   return 0;
9540 }
9541 _ACEOF
9542 rm -f conftest.$ac_objext conftest$ac_exeext
9543 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9544   (eval $ac_link) 2>conftest.er1
9545   ac_status=$?
9546   grep -v '^ *+' conftest.er1 >conftest.err
9547   rm -f conftest.er1
9548   cat conftest.err >&5
9549   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9550   (exit $ac_status); } &&
9551          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
9552   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9553   (eval $ac_try) 2>&5
9554   ac_status=$?
9555   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9556   (exit $ac_status); }; } &&
9557          { ac_try='test -s conftest$ac_exeext'
9558   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9559   (eval $ac_try) 2>&5
9560   ac_status=$?
9561   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9562   (exit $ac_status); }; }; then
9563   eval "$as_ac_var=yes"
9564 else
9565   echo "$as_me: failed program was:" >&5
9566 sed 's/^/| /' conftest.$ac_ext >&5
9567
9568 eval "$as_ac_var=no"
9569 fi
9570 rm -f conftest.err conftest.$ac_objext \
9571       conftest$ac_exeext conftest.$ac_ext
9572 fi
9573 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9574 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9575 if test `eval echo '${'$as_ac_var'}'` = yes; then
9576   cat >>confdefs.h <<_ACEOF
9577 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9578 _ACEOF
9579
9580 fi
9581 done
9582
9583     LIBS="$saved_libs"
9584 fi
9585
9586
9587 # Extract the first word of "sane-config", so it can be a program name with args.
9588 set dummy sane-config; ac_word=$2
9589 echo "$as_me:$LINENO: checking for $ac_word" >&5
9590 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9591 if test "${ac_cv_prog_sane_devel+set}" = set; then
9592   echo $ECHO_N "(cached) $ECHO_C" >&6
9593 else
9594   if test -n "$sane_devel"; then
9595   ac_cv_prog_sane_devel="$sane_devel" # Let the user override the test.
9596 else
9597 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9598 for as_dir in $PATH
9599 do
9600   IFS=$as_save_IFS
9601   test -z "$as_dir" && as_dir=.
9602   for ac_exec_ext in '' $ac_executable_extensions; do
9603   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9604     ac_cv_prog_sane_devel="sane-config"
9605     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9606     break 2
9607   fi
9608 done
9609 done
9610
9611   test -z "$ac_cv_prog_sane_devel" && ac_cv_prog_sane_devel="no"
9612 fi
9613 fi
9614 sane_devel=$ac_cv_prog_sane_devel
9615 if test -n "$sane_devel"; then
9616   echo "$as_me:$LINENO: result: $sane_devel" >&5
9617 echo "${ECHO_T}$sane_devel" >&6
9618 else
9619   echo "$as_me:$LINENO: result: no" >&5
9620 echo "${ECHO_T}no" >&6
9621 fi
9622
9623 if test "$sane_devel" = "no"
9624 then
9625     SANELIBS=""
9626     SANEINCL=""
9627 else
9628     SANELIBS="`$sane_devel --libs`"
9629     SANEINCL="`$sane_devel --cflags`"
9630     ac_save_CPPFLAGS="$CPPFLAGS"
9631     ac_save_LIBS="$LIBS"
9632     CPPFLAGS="$CPPFLAGS $SANEINCL"
9633     LIBS="$LIBS $SANELIBS"
9634     if test "${ac_cv_header_sane_sane_h+set}" = set; then
9635   echo "$as_me:$LINENO: checking for sane/sane.h" >&5
9636 echo $ECHO_N "checking for sane/sane.h... $ECHO_C" >&6
9637 if test "${ac_cv_header_sane_sane_h+set}" = set; then
9638   echo $ECHO_N "(cached) $ECHO_C" >&6
9639 fi
9640 echo "$as_me:$LINENO: result: $ac_cv_header_sane_sane_h" >&5
9641 echo "${ECHO_T}$ac_cv_header_sane_sane_h" >&6
9642 else
9643   # Is the header compilable?
9644 echo "$as_me:$LINENO: checking sane/sane.h usability" >&5
9645 echo $ECHO_N "checking sane/sane.h usability... $ECHO_C" >&6
9646 cat >conftest.$ac_ext <<_ACEOF
9647 /* confdefs.h.  */
9648 _ACEOF
9649 cat confdefs.h >>conftest.$ac_ext
9650 cat >>conftest.$ac_ext <<_ACEOF
9651 /* end confdefs.h.  */
9652 $ac_includes_default
9653 #include <sane/sane.h>
9654 _ACEOF
9655 rm -f conftest.$ac_objext
9656 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9657   (eval $ac_compile) 2>conftest.er1
9658   ac_status=$?
9659   grep -v '^ *+' conftest.er1 >conftest.err
9660   rm -f conftest.er1
9661   cat conftest.err >&5
9662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9663   (exit $ac_status); } &&
9664          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
9665   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9666   (eval $ac_try) 2>&5
9667   ac_status=$?
9668   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9669   (exit $ac_status); }; } &&
9670          { ac_try='test -s conftest.$ac_objext'
9671   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9672   (eval $ac_try) 2>&5
9673   ac_status=$?
9674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9675   (exit $ac_status); }; }; then
9676   ac_header_compiler=yes
9677 else
9678   echo "$as_me: failed program was:" >&5
9679 sed 's/^/| /' conftest.$ac_ext >&5
9680
9681 ac_header_compiler=no
9682 fi
9683 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9684 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9685 echo "${ECHO_T}$ac_header_compiler" >&6
9686
9687 # Is the header present?
9688 echo "$as_me:$LINENO: checking sane/sane.h presence" >&5
9689 echo $ECHO_N "checking sane/sane.h presence... $ECHO_C" >&6
9690 cat >conftest.$ac_ext <<_ACEOF
9691 /* confdefs.h.  */
9692 _ACEOF
9693 cat confdefs.h >>conftest.$ac_ext
9694 cat >>conftest.$ac_ext <<_ACEOF
9695 /* end confdefs.h.  */
9696 #include <sane/sane.h>
9697 _ACEOF
9698 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9699   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9700   ac_status=$?
9701   grep -v '^ *+' conftest.er1 >conftest.err
9702   rm -f conftest.er1
9703   cat conftest.err >&5
9704   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9705   (exit $ac_status); } >/dev/null; then
9706   if test -s conftest.err; then
9707     ac_cpp_err=$ac_c_preproc_warn_flag
9708     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9709   else
9710     ac_cpp_err=
9711   fi
9712 else
9713   ac_cpp_err=yes
9714 fi
9715 if test -z "$ac_cpp_err"; then
9716   ac_header_preproc=yes
9717 else
9718   echo "$as_me: failed program was:" >&5
9719 sed 's/^/| /' conftest.$ac_ext >&5
9720
9721   ac_header_preproc=no
9722 fi
9723 rm -f conftest.err conftest.$ac_ext
9724 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9725 echo "${ECHO_T}$ac_header_preproc" >&6
9726
9727 # So?  What about this header?
9728 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9729   yes:no: )
9730     { echo "$as_me:$LINENO: WARNING: sane/sane.h: accepted by the compiler, rejected by the preprocessor!" >&5
9731 echo "$as_me: WARNING: sane/sane.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9732     { echo "$as_me:$LINENO: WARNING: sane/sane.h: proceeding with the compiler's result" >&5
9733 echo "$as_me: WARNING: sane/sane.h: proceeding with the compiler's result" >&2;}
9734     ac_header_preproc=yes
9735     ;;
9736   no:yes:* )
9737     { echo "$as_me:$LINENO: WARNING: sane/sane.h: present but cannot be compiled" >&5
9738 echo "$as_me: WARNING: sane/sane.h: present but cannot be compiled" >&2;}
9739     { echo "$as_me:$LINENO: WARNING: sane/sane.h:     check for missing prerequisite headers?" >&5
9740 echo "$as_me: WARNING: sane/sane.h:     check for missing prerequisite headers?" >&2;}
9741     { echo "$as_me:$LINENO: WARNING: sane/sane.h: see the Autoconf documentation" >&5
9742 echo "$as_me: WARNING: sane/sane.h: see the Autoconf documentation" >&2;}
9743     { echo "$as_me:$LINENO: WARNING: sane/sane.h:     section \"Present But Cannot Be Compiled\"" >&5
9744 echo "$as_me: WARNING: sane/sane.h:     section \"Present But Cannot Be Compiled\"" >&2;}
9745     { echo "$as_me:$LINENO: WARNING: sane/sane.h: proceeding with the preprocessor's result" >&5
9746 echo "$as_me: WARNING: sane/sane.h: proceeding with the preprocessor's result" >&2;}
9747     { echo "$as_me:$LINENO: WARNING: sane/sane.h: in the future, the compiler will take precedence" >&5
9748 echo "$as_me: WARNING: sane/sane.h: in the future, the compiler will take precedence" >&2;}
9749     (
9750       cat <<\_ASBOX
9751 ## ------------------------------------ ##
9752 ## Report this to wine-devel@winehq.org ##
9753 ## ------------------------------------ ##
9754 _ASBOX
9755     ) |
9756       sed "s/^/$as_me: WARNING:     /" >&2
9757     ;;
9758 esac
9759 echo "$as_me:$LINENO: checking for sane/sane.h" >&5
9760 echo $ECHO_N "checking for sane/sane.h... $ECHO_C" >&6
9761 if test "${ac_cv_header_sane_sane_h+set}" = set; then
9762   echo $ECHO_N "(cached) $ECHO_C" >&6
9763 else
9764   ac_cv_header_sane_sane_h=$ac_header_preproc
9765 fi
9766 echo "$as_me:$LINENO: result: $ac_cv_header_sane_sane_h" >&5
9767 echo "${ECHO_T}$ac_cv_header_sane_sane_h" >&6
9768
9769 fi
9770 if test $ac_cv_header_sane_sane_h = yes; then
9771   echo "$as_me:$LINENO: checking for sane_open in -lsane" >&5
9772 echo $ECHO_N "checking for sane_open in -lsane... $ECHO_C" >&6
9773 if test "${ac_cv_lib_sane_sane_open+set}" = set; then
9774   echo $ECHO_N "(cached) $ECHO_C" >&6
9775 else
9776   ac_check_lib_save_LIBS=$LIBS
9777 LIBS="-lsane  $LIBS"
9778 cat >conftest.$ac_ext <<_ACEOF
9779 /* confdefs.h.  */
9780 _ACEOF
9781 cat confdefs.h >>conftest.$ac_ext
9782 cat >>conftest.$ac_ext <<_ACEOF
9783 /* end confdefs.h.  */
9784
9785 /* Override any gcc2 internal prototype to avoid an error.  */
9786 #ifdef __cplusplus
9787 extern "C"
9788 #endif
9789 /* We use char because int might match the return type of a gcc2
9790    builtin and then its argument prototype would still apply.  */
9791 char sane_open ();
9792 int
9793 main ()
9794 {
9795 sane_open ();
9796   ;
9797   return 0;
9798 }
9799 _ACEOF
9800 rm -f conftest.$ac_objext conftest$ac_exeext
9801 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9802   (eval $ac_link) 2>conftest.er1
9803   ac_status=$?
9804   grep -v '^ *+' conftest.er1 >conftest.err
9805   rm -f conftest.er1
9806   cat conftest.err >&5
9807   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9808   (exit $ac_status); } &&
9809          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
9810   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9811   (eval $ac_try) 2>&5
9812   ac_status=$?
9813   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9814   (exit $ac_status); }; } &&
9815          { ac_try='test -s conftest$ac_exeext'
9816   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9817   (eval $ac_try) 2>&5
9818   ac_status=$?
9819   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9820   (exit $ac_status); }; }; then
9821   ac_cv_lib_sane_sane_open=yes
9822 else
9823   echo "$as_me: failed program was:" >&5
9824 sed 's/^/| /' conftest.$ac_ext >&5
9825
9826 ac_cv_lib_sane_sane_open=no
9827 fi
9828 rm -f conftest.err conftest.$ac_objext \
9829       conftest$ac_exeext conftest.$ac_ext
9830 LIBS=$ac_check_lib_save_LIBS
9831 fi
9832 echo "$as_me:$LINENO: result: $ac_cv_lib_sane_sane_open" >&5
9833 echo "${ECHO_T}$ac_cv_lib_sane_sane_open" >&6
9834 if test $ac_cv_lib_sane_sane_open = yes; then
9835
9836 cat >>confdefs.h <<\_ACEOF
9837 #define HAVE_SANE 1
9838 _ACEOF
9839
9840 else
9841   SANELIBS=""
9842                                   SANEINCL=""
9843 fi
9844
9845 else
9846   SANELIBS=""
9847                     SANEINCL=""
9848 fi
9849
9850
9851     LIBS="$ac_save_LIBS"
9852     CPPFLAGS="$ac_save_CPPFLAGS"
9853 fi
9854
9855
9856
9857
9858 for ac_header in unicode/ubidi.h
9859 do
9860 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9861 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9862   echo "$as_me:$LINENO: checking for $ac_header" >&5
9863 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9864 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9865   echo $ECHO_N "(cached) $ECHO_C" >&6
9866 fi
9867 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9868 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9869 else
9870   # Is the header compilable?
9871 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9872 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9873 cat >conftest.$ac_ext <<_ACEOF
9874 /* confdefs.h.  */
9875 _ACEOF
9876 cat confdefs.h >>conftest.$ac_ext
9877 cat >>conftest.$ac_ext <<_ACEOF
9878 /* end confdefs.h.  */
9879 $ac_includes_default
9880 #include <$ac_header>
9881 _ACEOF
9882 rm -f conftest.$ac_objext
9883 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9884   (eval $ac_compile) 2>conftest.er1
9885   ac_status=$?
9886   grep -v '^ *+' conftest.er1 >conftest.err
9887   rm -f conftest.er1
9888   cat conftest.err >&5
9889   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9890   (exit $ac_status); } &&
9891          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
9892   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9893   (eval $ac_try) 2>&5
9894   ac_status=$?
9895   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9896   (exit $ac_status); }; } &&
9897          { ac_try='test -s conftest.$ac_objext'
9898   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9899   (eval $ac_try) 2>&5
9900   ac_status=$?
9901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9902   (exit $ac_status); }; }; then
9903   ac_header_compiler=yes
9904 else
9905   echo "$as_me: failed program was:" >&5
9906 sed 's/^/| /' conftest.$ac_ext >&5
9907
9908 ac_header_compiler=no
9909 fi
9910 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9911 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9912 echo "${ECHO_T}$ac_header_compiler" >&6
9913
9914 # Is the header present?
9915 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9916 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9917 cat >conftest.$ac_ext <<_ACEOF
9918 /* confdefs.h.  */
9919 _ACEOF
9920 cat confdefs.h >>conftest.$ac_ext
9921 cat >>conftest.$ac_ext <<_ACEOF
9922 /* end confdefs.h.  */
9923 #include <$ac_header>
9924 _ACEOF
9925 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9926   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9927   ac_status=$?
9928   grep -v '^ *+' conftest.er1 >conftest.err
9929   rm -f conftest.er1
9930   cat conftest.err >&5
9931   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9932   (exit $ac_status); } >/dev/null; then
9933   if test -s conftest.err; then
9934     ac_cpp_err=$ac_c_preproc_warn_flag
9935     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9936   else
9937     ac_cpp_err=
9938   fi
9939 else
9940   ac_cpp_err=yes
9941 fi
9942 if test -z "$ac_cpp_err"; then
9943   ac_header_preproc=yes
9944 else
9945   echo "$as_me: failed program was:" >&5
9946 sed 's/^/| /' conftest.$ac_ext >&5
9947
9948   ac_header_preproc=no
9949 fi
9950 rm -f conftest.err conftest.$ac_ext
9951 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9952 echo "${ECHO_T}$ac_header_preproc" >&6
9953
9954 # So?  What about this header?
9955 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9956   yes:no: )
9957     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9958 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9959     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9960 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9961     ac_header_preproc=yes
9962     ;;
9963   no:yes:* )
9964     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9965 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9966     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9967 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9968     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9969 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9970     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9971 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9972     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9973 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9974     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9975 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9976     (
9977       cat <<\_ASBOX
9978 ## ------------------------------------ ##
9979 ## Report this to wine-devel@winehq.org ##
9980 ## ------------------------------------ ##
9981 _ASBOX
9982     ) |
9983       sed "s/^/$as_me: WARNING:     /" >&2
9984     ;;
9985 esac
9986 echo "$as_me:$LINENO: checking for $ac_header" >&5
9987 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9988 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9989   echo $ECHO_N "(cached) $ECHO_C" >&6
9990 else
9991   eval "$as_ac_Header=\$ac_header_preproc"
9992 fi
9993 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9994 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9995
9996 fi
9997 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9998   cat >>confdefs.h <<_ACEOF
9999 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10000 _ACEOF
10001
10002 fi
10003
10004 done
10005
10006 if test "$ac_cv_header_unicode_ubidi_h" = "yes"
10007 then
10008     echo "$as_me:$LINENO: checking whether we can statically link the ICU libraries" >&5
10009 echo $ECHO_N "checking whether we can statically link the ICU libraries... $ECHO_C" >&6
10010 if test "${ac_cv_lib_icu+set}" = set; then
10011   echo $ECHO_N "(cached) $ECHO_C" >&6
10012 else
10013   saved_libs="$LIBS"
10014          ICU_LIB_DIR="${ICU_LIB_DIR-/usr/lib}"
10015          ICUUC_LIB="${ICUUC_LIB-$ICU_LIB_DIR/libicuuc.a}"
10016          ICUDATA_LIB="${ICUDATA_LIB-$ICU_LIB_DIR/libicudata.a}"
10017          LIBS="$LIBS $ICUUC_LIB $ICUDATA_LIB -lstdc++ -lgcc_s"
10018          cat >conftest.$ac_ext <<_ACEOF
10019 /* confdefs.h.  */
10020 _ACEOF
10021 cat confdefs.h >>conftest.$ac_ext
10022 cat >>conftest.$ac_ext <<_ACEOF
10023 /* end confdefs.h.  */
10024 #include <unicode/ubidi.h>
10025 int
10026 main ()
10027 {
10028 ubidi_open()
10029   ;
10030   return 0;
10031 }
10032 _ACEOF
10033 rm -f conftest.$ac_objext conftest$ac_exeext
10034 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10035   (eval $ac_link) 2>conftest.er1
10036   ac_status=$?
10037   grep -v '^ *+' conftest.er1 >conftest.err
10038   rm -f conftest.er1
10039   cat conftest.err >&5
10040   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10041   (exit $ac_status); } &&
10042          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
10043   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10044   (eval $ac_try) 2>&5
10045   ac_status=$?
10046   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10047   (exit $ac_status); }; } &&
10048          { ac_try='test -s conftest$ac_exeext'
10049   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10050   (eval $ac_try) 2>&5
10051   ac_status=$?
10052   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10053   (exit $ac_status); }; }; then
10054   ac_cv_lib_icu="yes"
10055 else
10056   echo "$as_me: failed program was:" >&5
10057 sed 's/^/| /' conftest.$ac_ext >&5
10058
10059 ac_cv_lib_icu="no"
10060 fi
10061 rm -f conftest.err conftest.$ac_objext \
10062       conftest$ac_exeext conftest.$ac_ext
10063         LIBS="$saved_libs"
10064 fi
10065 echo "$as_me:$LINENO: result: $ac_cv_lib_icu" >&5
10066 echo "${ECHO_T}$ac_cv_lib_icu" >&6
10067     if test "$ac_cv_lib_icu" = "yes"
10068     then
10069
10070 cat >>confdefs.h <<\_ACEOF
10071 #define HAVE_ICU 1
10072 _ACEOF
10073
10074         ICULIBS="$ICUUC_LIB $ICUDATA_LIB -lstdc++ -lgcc_s"
10075
10076     fi
10077 fi
10078
10079 echo "$as_me:$LINENO: checking for FT_Init_FreeType in -lfreetype" >&5
10080 echo $ECHO_N "checking for FT_Init_FreeType in -lfreetype... $ECHO_C" >&6
10081 if test "${ac_cv_lib_freetype_FT_Init_FreeType+set}" = set; then
10082   echo $ECHO_N "(cached) $ECHO_C" >&6
10083 else
10084   ac_check_lib_save_LIBS=$LIBS
10085 LIBS="-lfreetype $X_LIBS $LIBS"
10086 cat >conftest.$ac_ext <<_ACEOF
10087 /* confdefs.h.  */
10088 _ACEOF
10089 cat confdefs.h >>conftest.$ac_ext
10090 cat >>conftest.$ac_ext <<_ACEOF
10091 /* end confdefs.h.  */
10092
10093 /* Override any gcc2 internal prototype to avoid an error.  */
10094 #ifdef __cplusplus
10095 extern "C"
10096 #endif
10097 /* We use char because int might match the return type of a gcc2
10098    builtin and then its argument prototype would still apply.  */
10099 char FT_Init_FreeType ();
10100 int
10101 main ()
10102 {
10103 FT_Init_FreeType ();
10104   ;
10105   return 0;
10106 }
10107 _ACEOF
10108 rm -f conftest.$ac_objext conftest$ac_exeext
10109 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10110   (eval $ac_link) 2>conftest.er1
10111   ac_status=$?
10112   grep -v '^ *+' conftest.er1 >conftest.err
10113   rm -f conftest.er1
10114   cat conftest.err >&5
10115   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10116   (exit $ac_status); } &&
10117          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
10118   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10119   (eval $ac_try) 2>&5
10120   ac_status=$?
10121   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10122   (exit $ac_status); }; } &&
10123          { ac_try='test -s conftest$ac_exeext'
10124   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10125   (eval $ac_try) 2>&5
10126   ac_status=$?
10127   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10128   (exit $ac_status); }; }; then
10129   ac_cv_lib_freetype_FT_Init_FreeType=yes
10130 else
10131   echo "$as_me: failed program was:" >&5
10132 sed 's/^/| /' conftest.$ac_ext >&5
10133
10134 ac_cv_lib_freetype_FT_Init_FreeType=no
10135 fi
10136 rm -f conftest.err conftest.$ac_objext \
10137       conftest$ac_exeext conftest.$ac_ext
10138 LIBS=$ac_check_lib_save_LIBS
10139 fi
10140 echo "$as_me:$LINENO: result: $ac_cv_lib_freetype_FT_Init_FreeType" >&5
10141 echo "${ECHO_T}$ac_cv_lib_freetype_FT_Init_FreeType" >&6
10142 if test $ac_cv_lib_freetype_FT_Init_FreeType = yes; then
10143   ft_lib=yes
10144 else
10145   ft_lib=no
10146 fi
10147
10148 if test "$ft_lib" = "no"
10149 then
10150     FREETYPEINCL=""
10151     wine_cv_msg_freetype=no
10152 else
10153     # Extract the first word of "freetype-config", so it can be a program name with args.
10154 set dummy freetype-config; ac_word=$2
10155 echo "$as_me:$LINENO: checking for $ac_word" >&5
10156 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10157 if test "${ac_cv_prog_ft_devel+set}" = set; then
10158   echo $ECHO_N "(cached) $ECHO_C" >&6
10159 else
10160   if test -n "$ft_devel"; then
10161   ac_cv_prog_ft_devel="$ft_devel" # Let the user override the test.
10162 else
10163 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10164 for as_dir in $PATH
10165 do
10166   IFS=$as_save_IFS
10167   test -z "$as_dir" && as_dir=.
10168   for ac_exec_ext in '' $ac_executable_extensions; do
10169   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10170     ac_cv_prog_ft_devel="freetype-config"
10171     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10172     break 2
10173   fi
10174 done
10175 done
10176
10177   test -z "$ac_cv_prog_ft_devel" && ac_cv_prog_ft_devel="no"
10178 fi
10179 fi
10180 ft_devel=$ac_cv_prog_ft_devel
10181 if test -n "$ft_devel"; then
10182   echo "$as_me:$LINENO: result: $ft_devel" >&5
10183 echo "${ECHO_T}$ft_devel" >&6
10184 else
10185   echo "$as_me:$LINENO: result: no" >&5
10186 echo "${ECHO_T}no" >&6
10187 fi
10188
10189     if test "$ft_devel" = "no"
10190     then
10191         # Extract the first word of "freetype2-config", so it can be a program name with args.
10192 set dummy freetype2-config; ac_word=$2
10193 echo "$as_me:$LINENO: checking for $ac_word" >&5
10194 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10195 if test "${ac_cv_prog_ft_devel2+set}" = set; then
10196   echo $ECHO_N "(cached) $ECHO_C" >&6
10197 else
10198   if test -n "$ft_devel2"; then
10199   ac_cv_prog_ft_devel2="$ft_devel2" # Let the user override the test.
10200 else
10201 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10202 for as_dir in $PATH
10203 do
10204   IFS=$as_save_IFS
10205   test -z "$as_dir" && as_dir=.
10206   for ac_exec_ext in '' $ac_executable_extensions; do
10207   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10208     ac_cv_prog_ft_devel2="freetype2-config"
10209     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10210     break 2
10211   fi
10212 done
10213 done
10214
10215   test -z "$ac_cv_prog_ft_devel2" && ac_cv_prog_ft_devel2="no"
10216 fi
10217 fi
10218 ft_devel2=$ac_cv_prog_ft_devel2
10219 if test -n "$ft_devel2"; then
10220   echo "$as_me:$LINENO: result: $ft_devel2" >&5
10221 echo "${ECHO_T}$ft_devel2" >&6
10222 else
10223   echo "$as_me:$LINENO: result: no" >&5
10224 echo "${ECHO_T}no" >&6
10225 fi
10226
10227         if test "$ft_devel2" = "freetype2-config"
10228         then
10229                 ft_devel=$ft_devel2
10230         fi
10231     fi
10232     if test "$ft_devel" = "no"
10233     then
10234         FREETYPEINCL=""
10235         wine_cv_msg_freetype=yes
10236     else
10237         FREETYPEINCL=`$ft_devel --cflags`
10238         ac_save_CPPFLAGS="$CPPFLAGS"
10239         CPPFLAGS="$FREETYPEINCL $CPPFLAGS"
10240
10241
10242
10243
10244
10245
10246
10247
10248
10249 for ac_header in ft2build.h \
10250                          freetype/freetype.h \
10251                          freetype/ftglyph.h \
10252                          freetype/tttables.h \
10253                          freetype/ftnames.h \
10254                          freetype/ftsnames.h \
10255                          freetype/ttnameid.h \
10256                          freetype/ftoutln.h \
10257                          freetype/internal/sfnt.h
10258 do
10259 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10260 echo "$as_me:$LINENO: checking for $ac_header" >&5
10261 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10262 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10263   echo $ECHO_N "(cached) $ECHO_C" >&6
10264 else
10265   cat >conftest.$ac_ext <<_ACEOF
10266 /* confdefs.h.  */
10267 _ACEOF
10268 cat confdefs.h >>conftest.$ac_ext
10269 cat >>conftest.$ac_ext <<_ACEOF
10270 /* end confdefs.h.  */
10271 #if HAVE_FT2BUILD_H
10272                           #include <ft2build.h>
10273                           #endif
10274
10275 #include <$ac_header>
10276 _ACEOF
10277 rm -f conftest.$ac_objext
10278 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10279   (eval $ac_compile) 2>conftest.er1
10280   ac_status=$?
10281   grep -v '^ *+' conftest.er1 >conftest.err
10282   rm -f conftest.er1
10283   cat conftest.err >&5
10284   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10285   (exit $ac_status); } &&
10286          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
10287   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10288   (eval $ac_try) 2>&5
10289   ac_status=$?
10290   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10291   (exit $ac_status); }; } &&
10292          { ac_try='test -s conftest.$ac_objext'
10293   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10294   (eval $ac_try) 2>&5
10295   ac_status=$?
10296   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10297   (exit $ac_status); }; }; then
10298   eval "$as_ac_Header=yes"
10299 else
10300   echo "$as_me: failed program was:" >&5
10301 sed 's/^/| /' conftest.$ac_ext >&5
10302
10303 eval "$as_ac_Header=no"
10304 fi
10305 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10306 fi
10307 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10308 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10309 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10310   cat >>confdefs.h <<_ACEOF
10311 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10312 _ACEOF
10313
10314 fi
10315
10316 done
10317
10318         cat >conftest.$ac_ext <<_ACEOF
10319 /* confdefs.h.  */
10320 _ACEOF
10321 cat confdefs.h >>conftest.$ac_ext
10322 cat >>conftest.$ac_ext <<_ACEOF
10323 /* end confdefs.h.  */
10324 #include <ft2build.h>
10325                     #include <freetype/fttrigon.h>
10326 _ACEOF
10327 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10328   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10329   ac_status=$?
10330   grep -v '^ *+' conftest.er1 >conftest.err
10331   rm -f conftest.er1
10332   cat conftest.err >&5
10333   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10334   (exit $ac_status); } >/dev/null; then
10335   if test -s conftest.err; then
10336     ac_cpp_err=$ac_c_preproc_warn_flag
10337     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10338   else
10339     ac_cpp_err=
10340   fi
10341 else
10342   ac_cpp_err=yes
10343 fi
10344 if test -z "$ac_cpp_err"; then
10345
10346 cat >>confdefs.h <<\_ACEOF
10347 #define HAVE_FREETYPE_FTTRIGON_H 1
10348 _ACEOF
10349
10350                     wine_cv_fttrigon=yes
10351 else
10352   echo "$as_me: failed program was:" >&5
10353 sed 's/^/| /' conftest.$ac_ext >&5
10354
10355   wine_cv_fttrigon=no
10356 fi
10357 rm -f conftest.err conftest.$ac_ext
10358         CPPFLAGS="$ac_save_CPPFLAGS"
10359                 if test "$ac_cv_header_freetype_freetype_h" = "yes" -a "$wine_cv_fttrigon" = "yes"
10360         then
10361
10362 cat >>confdefs.h <<\_ACEOF
10363 #define HAVE_FREETYPE 1
10364 _ACEOF
10365
10366             wine_cv_msg_freetype=no
10367         else
10368             FREETYPEINCL=""
10369             wine_cv_msg_freetype=yes
10370         fi
10371     fi
10372 fi
10373
10374
10375 echo "$as_me:$LINENO: checking for parport header/ppdev.h" >&5
10376 echo $ECHO_N "checking for parport header/ppdev.h... $ECHO_C" >&6
10377 if test "${ac_cv_c_ppdev+set}" = set; then
10378   echo $ECHO_N "(cached) $ECHO_C" >&6
10379 else
10380   cat >conftest.$ac_ext <<_ACEOF
10381 /* confdefs.h.  */
10382 _ACEOF
10383 cat confdefs.h >>conftest.$ac_ext
10384 cat >>conftest.$ac_ext <<_ACEOF
10385 /* end confdefs.h.  */
10386 #include <linux/ppdev.h>
10387 int
10388 main ()
10389 {
10390 ioctl (1,PPCLAIM,0)
10391   ;
10392   return 0;
10393 }
10394 _ACEOF
10395 rm -f conftest.$ac_objext
10396 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10397   (eval $ac_compile) 2>conftest.er1
10398   ac_status=$?
10399   grep -v '^ *+' conftest.er1 >conftest.err
10400   rm -f conftest.er1
10401   cat conftest.err >&5
10402   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10403   (exit $ac_status); } &&
10404          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
10405   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10406   (eval $ac_try) 2>&5
10407   ac_status=$?
10408   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10409   (exit $ac_status); }; } &&
10410          { ac_try='test -s conftest.$ac_objext'
10411   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10412   (eval $ac_try) 2>&5
10413   ac_status=$?
10414   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10415   (exit $ac_status); }; }; then
10416   ac_cv_c_ppdev="yes"
10417 else
10418   echo "$as_me: failed program was:" >&5
10419 sed 's/^/| /' conftest.$ac_ext >&5
10420
10421 ac_cv_c_ppdev="no"
10422 fi
10423 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10424
10425 fi
10426 echo "$as_me:$LINENO: result: $ac_cv_c_ppdev" >&5
10427 echo "${ECHO_T}$ac_cv_c_ppdev" >&6
10428 if test "$ac_cv_c_ppdev" = "yes"
10429 then
10430
10431 cat >>confdefs.h <<\_ACEOF
10432 #define HAVE_PPDEV 1
10433 _ACEOF
10434
10435 fi
10436
10437 echo "$as_me:$LINENO: checking for va_copy" >&5
10438 echo $ECHO_N "checking for va_copy... $ECHO_C" >&6
10439 if test "${ac_cv_c_va_copy+set}" = set; then
10440   echo $ECHO_N "(cached) $ECHO_C" >&6
10441 else
10442   cat >conftest.$ac_ext <<_ACEOF
10443 /* confdefs.h.  */
10444 _ACEOF
10445 cat confdefs.h >>conftest.$ac_ext
10446 cat >>conftest.$ac_ext <<_ACEOF
10447 /* end confdefs.h.  */
10448 #include <stdarg.h>
10449 int
10450 main ()
10451 {
10452 va_list ap1, ap2;
10453     va_copy(ap1,ap2);
10454
10455   ;
10456   return 0;
10457 }
10458 _ACEOF
10459 rm -f conftest.$ac_objext conftest$ac_exeext
10460 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10461   (eval $ac_link) 2>conftest.er1
10462   ac_status=$?
10463   grep -v '^ *+' conftest.er1 >conftest.err
10464   rm -f conftest.er1
10465   cat conftest.err >&5
10466   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10467   (exit $ac_status); } &&
10468          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
10469   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10470   (eval $ac_try) 2>&5
10471   ac_status=$?
10472   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10473   (exit $ac_status); }; } &&
10474          { ac_try='test -s conftest$ac_exeext'
10475   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10476   (eval $ac_try) 2>&5
10477   ac_status=$?
10478   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10479   (exit $ac_status); }; }; then
10480   ac_cv_c_va_copy="yes"
10481 else
10482   echo "$as_me: failed program was:" >&5
10483 sed 's/^/| /' conftest.$ac_ext >&5
10484
10485 ac_cv_c_va_copy="no"
10486 fi
10487 rm -f conftest.err conftest.$ac_objext \
10488       conftest$ac_exeext conftest.$ac_ext
10489
10490 fi
10491 echo "$as_me:$LINENO: result: $ac_cv_c_va_copy" >&5
10492 echo "${ECHO_T}$ac_cv_c_va_copy" >&6
10493 if test "$ac_cv_c_va_copy" = "yes"
10494 then
10495
10496 cat >>confdefs.h <<\_ACEOF
10497 #define HAVE_VA_COPY 1
10498 _ACEOF
10499
10500 fi
10501 echo "$as_me:$LINENO: checking for __va_copy" >&5
10502 echo $ECHO_N "checking for __va_copy... $ECHO_C" >&6
10503 if test "${ac_cv_c___va_copy+set}" = set; then
10504   echo $ECHO_N "(cached) $ECHO_C" >&6
10505 else
10506   cat >conftest.$ac_ext <<_ACEOF
10507 /* confdefs.h.  */
10508 _ACEOF
10509 cat confdefs.h >>conftest.$ac_ext
10510 cat >>conftest.$ac_ext <<_ACEOF
10511 /* end confdefs.h.  */
10512 #include <stdarg.h>
10513 int
10514 main ()
10515 {
10516 va_list ap1, ap2;
10517     __va_copy(ap1,ap2);
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>conftest.er1
10526   ac_status=$?
10527   grep -v '^ *+' conftest.er1 >conftest.err
10528   rm -f conftest.er1
10529   cat conftest.err >&5
10530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10531   (exit $ac_status); } &&
10532          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
10533   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10534   (eval $ac_try) 2>&5
10535   ac_status=$?
10536   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10537   (exit $ac_status); }; } &&
10538          { ac_try='test -s conftest$ac_exeext'
10539   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10540   (eval $ac_try) 2>&5
10541   ac_status=$?
10542   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10543   (exit $ac_status); }; }; then
10544   ac_cv_c___va_copy="yes"
10545 else
10546   echo "$as_me: failed program was:" >&5
10547 sed 's/^/| /' conftest.$ac_ext >&5
10548
10549 ac_cv_c___va_copy="no"
10550 fi
10551 rm -f conftest.err conftest.$ac_objext \
10552       conftest$ac_exeext conftest.$ac_ext
10553
10554 fi
10555 echo "$as_me:$LINENO: result: $ac_cv_c___va_copy" >&5
10556 echo "${ECHO_T}$ac_cv_c___va_copy" >&6
10557 if test "$ac_cv_c___va_copy" = "yes"
10558 then
10559
10560 cat >>confdefs.h <<\_ACEOF
10561 #define HAVE___VA_COPY 1
10562 _ACEOF
10563
10564 fi
10565
10566 echo "$as_me:$LINENO: checking for sigsetjmp" >&5
10567 echo $ECHO_N "checking for sigsetjmp... $ECHO_C" >&6
10568 if test "${ac_cv_c_sigsetjmp+set}" = set; then
10569   echo $ECHO_N "(cached) $ECHO_C" >&6
10570 else
10571   cat >conftest.$ac_ext <<_ACEOF
10572 /* confdefs.h.  */
10573 _ACEOF
10574 cat confdefs.h >>conftest.$ac_ext
10575 cat >>conftest.$ac_ext <<_ACEOF
10576 /* end confdefs.h.  */
10577 #include <setjmp.h>
10578 int
10579 main ()
10580 {
10581 sigjmp_buf buf;
10582     sigsetjmp( buf, 1 );
10583     siglongjmp( buf, 1 );
10584   ;
10585   return 0;
10586 }
10587 _ACEOF
10588 rm -f conftest.$ac_objext conftest$ac_exeext
10589 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10590   (eval $ac_link) 2>conftest.er1
10591   ac_status=$?
10592   grep -v '^ *+' conftest.er1 >conftest.err
10593   rm -f conftest.er1
10594   cat conftest.err >&5
10595   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10596   (exit $ac_status); } &&
10597          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
10598   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10599   (eval $ac_try) 2>&5
10600   ac_status=$?
10601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10602   (exit $ac_status); }; } &&
10603          { ac_try='test -s conftest$ac_exeext'
10604   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10605   (eval $ac_try) 2>&5
10606   ac_status=$?
10607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10608   (exit $ac_status); }; }; then
10609   ac_cv_c_sigsetjmp="yes"
10610 else
10611   echo "$as_me: failed program was:" >&5
10612 sed 's/^/| /' conftest.$ac_ext >&5
10613
10614 ac_cv_c_sigsetjmp="no"
10615 fi
10616 rm -f conftest.err conftest.$ac_objext \
10617       conftest$ac_exeext conftest.$ac_ext
10618
10619 fi
10620 echo "$as_me:$LINENO: result: $ac_cv_c_sigsetjmp" >&5
10621 echo "${ECHO_T}$ac_cv_c_sigsetjmp" >&6
10622 if test "$ac_cv_c_sigsetjmp" = "yes"
10623 then
10624
10625 cat >>confdefs.h <<\_ACEOF
10626 #define HAVE_SIGSETJMP 1
10627 _ACEOF
10628
10629 fi
10630
10631 echo "$as_me:$LINENO: checking for pthread_rwlock_t" >&5
10632 echo $ECHO_N "checking for pthread_rwlock_t... $ECHO_C" >&6
10633 if test "${ac_cv_type_pthread_rwlock_t+set}" = set; then
10634   echo $ECHO_N "(cached) $ECHO_C" >&6
10635 else
10636   cat >conftest.$ac_ext <<_ACEOF
10637 /* confdefs.h.  */
10638 _ACEOF
10639 cat confdefs.h >>conftest.$ac_ext
10640 cat >>conftest.$ac_ext <<_ACEOF
10641 /* end confdefs.h.  */
10642 #define _GNU_SOURCE
10643 #include <pthread.h>
10644
10645 int
10646 main ()
10647 {
10648 if ((pthread_rwlock_t *) 0)
10649   return 0;
10650 if (sizeof (pthread_rwlock_t))
10651   return 0;
10652   ;
10653   return 0;
10654 }
10655 _ACEOF
10656 rm -f conftest.$ac_objext
10657 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10658   (eval $ac_compile) 2>conftest.er1
10659   ac_status=$?
10660   grep -v '^ *+' conftest.er1 >conftest.err
10661   rm -f conftest.er1
10662   cat conftest.err >&5
10663   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10664   (exit $ac_status); } &&
10665          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
10666   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10667   (eval $ac_try) 2>&5
10668   ac_status=$?
10669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10670   (exit $ac_status); }; } &&
10671          { ac_try='test -s conftest.$ac_objext'
10672   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10673   (eval $ac_try) 2>&5
10674   ac_status=$?
10675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10676   (exit $ac_status); }; }; then
10677   ac_cv_type_pthread_rwlock_t=yes
10678 else
10679   echo "$as_me: failed program was:" >&5
10680 sed 's/^/| /' conftest.$ac_ext >&5
10681
10682 ac_cv_type_pthread_rwlock_t=no
10683 fi
10684 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10685 fi
10686 echo "$as_me:$LINENO: result: $ac_cv_type_pthread_rwlock_t" >&5
10687 echo "${ECHO_T}$ac_cv_type_pthread_rwlock_t" >&6
10688 if test $ac_cv_type_pthread_rwlock_t = yes; then
10689
10690 cat >>confdefs.h <<_ACEOF
10691 #define HAVE_PTHREAD_RWLOCK_T 1
10692 _ACEOF
10693
10694
10695 fi
10696 echo "$as_me:$LINENO: checking for pthread_rwlockattr_t" >&5
10697 echo $ECHO_N "checking for pthread_rwlockattr_t... $ECHO_C" >&6
10698 if test "${ac_cv_type_pthread_rwlockattr_t+set}" = set; then
10699   echo $ECHO_N "(cached) $ECHO_C" >&6
10700 else
10701   cat >conftest.$ac_ext <<_ACEOF
10702 /* confdefs.h.  */
10703 _ACEOF
10704 cat confdefs.h >>conftest.$ac_ext
10705 cat >>conftest.$ac_ext <<_ACEOF
10706 /* end confdefs.h.  */
10707 #define _GNU_SOURCE
10708 #include <pthread.h>
10709
10710 int
10711 main ()
10712 {
10713 if ((pthread_rwlockattr_t *) 0)
10714   return 0;
10715 if (sizeof (pthread_rwlockattr_t))
10716   return 0;
10717   ;
10718   return 0;
10719 }
10720 _ACEOF
10721 rm -f conftest.$ac_objext
10722 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10723   (eval $ac_compile) 2>conftest.er1
10724   ac_status=$?
10725   grep -v '^ *+' conftest.er1 >conftest.err
10726   rm -f conftest.er1
10727   cat conftest.err >&5
10728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10729   (exit $ac_status); } &&
10730          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
10731   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10732   (eval $ac_try) 2>&5
10733   ac_status=$?
10734   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10735   (exit $ac_status); }; } &&
10736          { ac_try='test -s conftest.$ac_objext'
10737   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10738   (eval $ac_try) 2>&5
10739   ac_status=$?
10740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10741   (exit $ac_status); }; }; then
10742   ac_cv_type_pthread_rwlockattr_t=yes
10743 else
10744   echo "$as_me: failed program was:" >&5
10745 sed 's/^/| /' conftest.$ac_ext >&5
10746
10747 ac_cv_type_pthread_rwlockattr_t=no
10748 fi
10749 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10750 fi
10751 echo "$as_me:$LINENO: result: $ac_cv_type_pthread_rwlockattr_t" >&5
10752 echo "${ECHO_T}$ac_cv_type_pthread_rwlockattr_t" >&6
10753 if test $ac_cv_type_pthread_rwlockattr_t = yes; then
10754
10755 cat >>confdefs.h <<_ACEOF
10756 #define HAVE_PTHREAD_RWLOCKATTR_T 1
10757 _ACEOF
10758
10759
10760 fi
10761
10762
10763 ac_save_LIBS="$LIBS"
10764 LIBS="$LIBS $LIBPTHREAD"
10765
10766 for ac_func in pthread_getattr_np
10767 do
10768 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10769 echo "$as_me:$LINENO: checking for $ac_func" >&5
10770 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10771 if eval "test \"\${$as_ac_var+set}\" = set"; then
10772   echo $ECHO_N "(cached) $ECHO_C" >&6
10773 else
10774   cat >conftest.$ac_ext <<_ACEOF
10775 /* confdefs.h.  */
10776 _ACEOF
10777 cat confdefs.h >>conftest.$ac_ext
10778 cat >>conftest.$ac_ext <<_ACEOF
10779 /* end confdefs.h.  */
10780 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10781    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10782 #define $ac_func innocuous_$ac_func
10783
10784 /* System header to define __stub macros and hopefully few prototypes,
10785     which can conflict with char $ac_func (); below.
10786     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10787     <limits.h> exists even on freestanding compilers.  */
10788
10789 #ifdef __STDC__
10790 # include <limits.h>
10791 #else
10792 # include <assert.h>
10793 #endif
10794
10795 #undef $ac_func
10796
10797 /* Override any gcc2 internal prototype to avoid an error.  */
10798 #ifdef __cplusplus
10799 extern "C"
10800 {
10801 #endif
10802 /* We use char because int might match the return type of a gcc2
10803    builtin and then its argument prototype would still apply.  */
10804 char $ac_func ();
10805 /* The GNU C library defines this for functions which it implements
10806     to always fail with ENOSYS.  Some functions are actually named
10807     something starting with __ and the normal name is an alias.  */
10808 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10809 choke me
10810 #else
10811 char (*f) () = $ac_func;
10812 #endif
10813 #ifdef __cplusplus
10814 }
10815 #endif
10816
10817 int
10818 main ()
10819 {
10820 return f != $ac_func;
10821   ;
10822   return 0;
10823 }
10824 _ACEOF
10825 rm -f conftest.$ac_objext conftest$ac_exeext
10826 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10827   (eval $ac_link) 2>conftest.er1
10828   ac_status=$?
10829   grep -v '^ *+' conftest.er1 >conftest.err
10830   rm -f conftest.er1
10831   cat conftest.err >&5
10832   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10833   (exit $ac_status); } &&
10834          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
10835   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10836   (eval $ac_try) 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   eval "$as_ac_var=yes"
10847 else
10848   echo "$as_me: failed program was:" >&5
10849 sed 's/^/| /' conftest.$ac_ext >&5
10850
10851 eval "$as_ac_var=no"
10852 fi
10853 rm -f conftest.err conftest.$ac_objext \
10854       conftest$ac_exeext conftest.$ac_ext
10855 fi
10856 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10857 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10858 if test `eval echo '${'$as_ac_var'}'` = yes; then
10859   cat >>confdefs.h <<_ACEOF
10860 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10861 _ACEOF
10862
10863 fi
10864 done
10865
10866 LIBS="$ac_save_LIBS"
10867
10868
10869
10870
10871 for ac_header in sys/soundcard.h machine/soundcard.h soundcard.h
10872 do
10873 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10874 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10875   echo "$as_me:$LINENO: checking for $ac_header" >&5
10876 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10877 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10878   echo $ECHO_N "(cached) $ECHO_C" >&6
10879 fi
10880 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10881 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10882 else
10883   # Is the header compilable?
10884 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10885 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10886 cat >conftest.$ac_ext <<_ACEOF
10887 /* confdefs.h.  */
10888 _ACEOF
10889 cat confdefs.h >>conftest.$ac_ext
10890 cat >>conftest.$ac_ext <<_ACEOF
10891 /* end confdefs.h.  */
10892 $ac_includes_default
10893 #include <$ac_header>
10894 _ACEOF
10895 rm -f conftest.$ac_objext
10896 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10897   (eval $ac_compile) 2>conftest.er1
10898   ac_status=$?
10899   grep -v '^ *+' conftest.er1 >conftest.err
10900   rm -f conftest.er1
10901   cat conftest.err >&5
10902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10903   (exit $ac_status); } &&
10904          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
10905   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10906   (eval $ac_try) 2>&5
10907   ac_status=$?
10908   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10909   (exit $ac_status); }; } &&
10910          { ac_try='test -s conftest.$ac_objext'
10911   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10912   (eval $ac_try) 2>&5
10913   ac_status=$?
10914   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10915   (exit $ac_status); }; }; then
10916   ac_header_compiler=yes
10917 else
10918   echo "$as_me: failed program was:" >&5
10919 sed 's/^/| /' conftest.$ac_ext >&5
10920
10921 ac_header_compiler=no
10922 fi
10923 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10924 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10925 echo "${ECHO_T}$ac_header_compiler" >&6
10926
10927 # Is the header present?
10928 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10929 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10930 cat >conftest.$ac_ext <<_ACEOF
10931 /* confdefs.h.  */
10932 _ACEOF
10933 cat confdefs.h >>conftest.$ac_ext
10934 cat >>conftest.$ac_ext <<_ACEOF
10935 /* end confdefs.h.  */
10936 #include <$ac_header>
10937 _ACEOF
10938 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10939   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10940   ac_status=$?
10941   grep -v '^ *+' conftest.er1 >conftest.err
10942   rm -f conftest.er1
10943   cat conftest.err >&5
10944   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10945   (exit $ac_status); } >/dev/null; then
10946   if test -s conftest.err; then
10947     ac_cpp_err=$ac_c_preproc_warn_flag
10948     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10949   else
10950     ac_cpp_err=
10951   fi
10952 else
10953   ac_cpp_err=yes
10954 fi
10955 if test -z "$ac_cpp_err"; then
10956   ac_header_preproc=yes
10957 else
10958   echo "$as_me: failed program was:" >&5
10959 sed 's/^/| /' conftest.$ac_ext >&5
10960
10961   ac_header_preproc=no
10962 fi
10963 rm -f conftest.err conftest.$ac_ext
10964 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10965 echo "${ECHO_T}$ac_header_preproc" >&6
10966
10967 # So?  What about this header?
10968 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10969   yes:no: )
10970     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10971 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10972     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10973 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10974     ac_header_preproc=yes
10975     ;;
10976   no:yes:* )
10977     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10978 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10979     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10980 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10981     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10982 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10983     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10984 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10985     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10986 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10987     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10988 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10989     (
10990       cat <<\_ASBOX
10991 ## ------------------------------------ ##
10992 ## Report this to wine-devel@winehq.org ##
10993 ## ------------------------------------ ##
10994 _ASBOX
10995     ) |
10996       sed "s/^/$as_me: WARNING:     /" >&2
10997     ;;
10998 esac
10999 echo "$as_me:$LINENO: checking for $ac_header" >&5
11000 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11001 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11002   echo $ECHO_N "(cached) $ECHO_C" >&6
11003 else
11004   eval "$as_ac_Header=\$ac_header_preproc"
11005 fi
11006 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11007 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11008
11009 fi
11010 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11011   cat >>confdefs.h <<_ACEOF
11012 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11013 _ACEOF
11014  break
11015 fi
11016
11017 done
11018
11019
11020 echo "$as_me:$LINENO: checking for Open Sound System" >&5
11021 echo $ECHO_N "checking for Open Sound System... $ECHO_C" >&6
11022 if test "${ac_cv_c_opensoundsystem+set}" = set; then
11023   echo $ECHO_N "(cached) $ECHO_C" >&6
11024 else
11025   cat >conftest.$ac_ext <<_ACEOF
11026 /* confdefs.h.  */
11027 _ACEOF
11028 cat confdefs.h >>conftest.$ac_ext
11029 cat >>conftest.$ac_ext <<_ACEOF
11030 /* end confdefs.h.  */
11031
11032         #if defined(HAVE_SYS_SOUNDCARD_H)
11033                 #include <sys/soundcard.h>
11034         #elif defined(HAVE_MACHINE_SOUNDCARD_H)
11035                 #include <machine/soundcard.h>
11036         #elif defined(HAVE_SOUNDCARD_H)
11037                 #include <soundcard.h>
11038         #endif
11039
11040 int
11041 main ()
11042 {
11043
11044
11045 /* check for one of the Open Sound System specific SNDCTL_ defines */
11046 #if !defined(SNDCTL_DSP_STEREO)
11047 #error No open sound system
11048 #endif
11049
11050   ;
11051   return 0;
11052 }
11053 _ACEOF
11054 rm -f conftest.$ac_objext
11055 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11056   (eval $ac_compile) 2>conftest.er1
11057   ac_status=$?
11058   grep -v '^ *+' conftest.er1 >conftest.err
11059   rm -f conftest.er1
11060   cat conftest.err >&5
11061   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11062   (exit $ac_status); } &&
11063          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
11064   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11065   (eval $ac_try) 2>&5
11066   ac_status=$?
11067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11068   (exit $ac_status); }; } &&
11069          { ac_try='test -s conftest.$ac_objext'
11070   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11071   (eval $ac_try) 2>&5
11072   ac_status=$?
11073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11074   (exit $ac_status); }; }; then
11075   ac_cv_c_opensoundsystem="yes"
11076 else
11077   echo "$as_me: failed program was:" >&5
11078 sed 's/^/| /' conftest.$ac_ext >&5
11079
11080 ac_cv_c_opensoundsystem="no"
11081 fi
11082 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11083 fi
11084 echo "$as_me:$LINENO: result: $ac_cv_c_opensoundsystem" >&5
11085 echo "${ECHO_T}$ac_cv_c_opensoundsystem" >&6
11086
11087 if test "$ac_cv_c_opensoundsystem" = "yes"
11088 then
11089
11090 cat >>confdefs.h <<\_ACEOF
11091 #define HAVE_OSS 1
11092 _ACEOF
11093
11094 fi
11095
11096 echo "$as_me:$LINENO: checking for Open Sound System/MIDI interface" >&5
11097 echo $ECHO_N "checking for Open Sound System/MIDI interface... $ECHO_C" >&6
11098 if test "${ac_cv_c_opensoundsystem_midi+set}" = set; then
11099   echo $ECHO_N "(cached) $ECHO_C" >&6
11100 else
11101   cat >conftest.$ac_ext <<_ACEOF
11102 /* confdefs.h.  */
11103 _ACEOF
11104 cat confdefs.h >>conftest.$ac_ext
11105 cat >>conftest.$ac_ext <<_ACEOF
11106 /* end confdefs.h.  */
11107
11108         #if defined(HAVE_SYS_SOUNDCARD_H)
11109                 #include <sys/soundcard.h>
11110         #elif defined(HAVE_MACHINE_SOUNDCARD_H)
11111                 #include <machine/soundcard.h>
11112         #elif defined(HAVE_SOUNDCARD_H)
11113                 #include <soundcard.h>
11114         #endif
11115
11116 int
11117 main ()
11118 {
11119
11120
11121 /* check for one of the Open Sound System specific SNDCTL_SEQ defines */
11122 #if !defined(SNDCTL_SEQ_SYNC)
11123 #error No open sound system MIDI interface
11124 #endif
11125
11126   ;
11127   return 0;
11128 }
11129 _ACEOF
11130 rm -f conftest.$ac_objext
11131 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11132   (eval $ac_compile) 2>conftest.er1
11133   ac_status=$?
11134   grep -v '^ *+' conftest.er1 >conftest.err
11135   rm -f conftest.er1
11136   cat conftest.err >&5
11137   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11138   (exit $ac_status); } &&
11139          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
11140   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11141   (eval $ac_try) 2>&5
11142   ac_status=$?
11143   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11144   (exit $ac_status); }; } &&
11145          { ac_try='test -s conftest.$ac_objext'
11146   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11147   (eval $ac_try) 2>&5
11148   ac_status=$?
11149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11150   (exit $ac_status); }; }; then
11151   ac_cv_c_opensoundsystem_midi="yes"
11152 else
11153   echo "$as_me: failed program was:" >&5
11154 sed 's/^/| /' conftest.$ac_ext >&5
11155
11156 ac_cv_c_opensoundsystem_midi="no"
11157 fi
11158 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11159 fi
11160 echo "$as_me:$LINENO: result: $ac_cv_c_opensoundsystem_midi" >&5
11161 echo "${ECHO_T}$ac_cv_c_opensoundsystem_midi" >&6
11162
11163 if test "$ac_cv_c_opensoundsystem_midi" = "yes"
11164 then
11165
11166 cat >>confdefs.h <<\_ACEOF
11167 #define HAVE_OSS_MIDI 1
11168 _ACEOF
11169
11170 fi
11171
11172 # Extract the first word of "artsc-config", so it can be a program name with args.
11173 set dummy artsc-config; ac_word=$2
11174 echo "$as_me:$LINENO: checking for $ac_word" >&5
11175 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11176 if test "${ac_cv_path_ARTSCCONFIG+set}" = set; then
11177   echo $ECHO_N "(cached) $ECHO_C" >&6
11178 else
11179   case $ARTSCCONFIG in
11180   [\\/]* | ?:[\\/]*)
11181   ac_cv_path_ARTSCCONFIG="$ARTSCCONFIG" # Let the user override the test with a path.
11182   ;;
11183   *)
11184   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11185 for as_dir in $PATH
11186 do
11187   IFS=$as_save_IFS
11188   test -z "$as_dir" && as_dir=.
11189   for ac_exec_ext in '' $ac_executable_extensions; do
11190   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11191     ac_cv_path_ARTSCCONFIG="$as_dir/$ac_word$ac_exec_ext"
11192     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11193     break 2
11194   fi
11195 done
11196 done
11197
11198   ;;
11199 esac
11200 fi
11201 ARTSCCONFIG=$ac_cv_path_ARTSCCONFIG
11202
11203 if test -n "$ARTSCCONFIG"; then
11204   echo "$as_me:$LINENO: result: $ARTSCCONFIG" >&5
11205 echo "${ECHO_T}$ARTSCCONFIG" >&6
11206 else
11207   echo "$as_me:$LINENO: result: no" >&5
11208 echo "${ECHO_T}no" >&6
11209 fi
11210
11211 echo "$as_me:$LINENO: checking for aRts Sound server" >&5
11212 echo $ECHO_N "checking for aRts Sound server... $ECHO_C" >&6
11213 if test "${ac_cv_c_artsserver+set}" = set; then
11214   echo $ECHO_N "(cached) $ECHO_C" >&6
11215 else
11216   if test x$ARTSCCONFIG = x -o x$ARTSCCONFIG = x'"$ARTSCCONFIG"';
11217         then
11218             ac_cv_c_artsserver=no
11219         else
11220             ARTSC_CFLAGS=`$ARTSCCONFIG --cflags`
11221             ARTSC_LIBS=`$ARTSCCONFIG --libs`
11222             ac_cv_c_artsserver=no
11223             save_CFLAGS="$CFLAGS"
11224             CFLAGS="$CFLAGS $ARTSC_CFLAGS"
11225             cat >conftest.$ac_ext <<_ACEOF
11226 /* confdefs.h.  */
11227 _ACEOF
11228 cat confdefs.h >>conftest.$ac_ext
11229 cat >>conftest.$ac_ext <<_ACEOF
11230 /* end confdefs.h.  */
11231
11232              #include <artsc.h>
11233
11234 int
11235 main ()
11236 {
11237
11238              arts_stream_t stream;
11239
11240   ;
11241   return 0;
11242 }
11243 _ACEOF
11244 rm -f conftest.$ac_objext
11245 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11246   (eval $ac_compile) 2>conftest.er1
11247   ac_status=$?
11248   grep -v '^ *+' conftest.er1 >conftest.err
11249   rm -f conftest.er1
11250   cat conftest.err >&5
11251   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11252   (exit $ac_status); } &&
11253          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
11254   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11255   (eval $ac_try) 2>&5
11256   ac_status=$?
11257   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11258   (exit $ac_status); }; } &&
11259          { ac_try='test -s conftest.$ac_objext'
11260   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11261   (eval $ac_try) 2>&5
11262   ac_status=$?
11263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11264   (exit $ac_status); }; }; then
11265
11266             ac_cv_c_artsserver=yes
11267
11268 else
11269   echo "$as_me: failed program was:" >&5
11270 sed 's/^/| /' conftest.$ac_ext >&5
11271
11272 fi
11273 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11274             CFLAGS="$save_CFLAGS"
11275         fi
11276 fi
11277 echo "$as_me:$LINENO: result: $ac_cv_c_artsserver" >&5
11278 echo "${ECHO_T}$ac_cv_c_artsserver" >&6
11279
11280 if test "$ac_cv_c_artsserver" = "yes"
11281 then
11282     ARTSLIBS=$ARTSC_LIBS
11283
11284     ARTSINCL=$ARTSC_CFLAGS
11285
11286
11287
11288 cat >>confdefs.h <<\_ACEOF
11289 #define HAVE_ARTS 1
11290 _ACEOF
11291
11292 fi
11293
11294 ALSALIBS=""
11295
11296
11297
11298 for ac_header in alsa/asoundlib.h sys/asoundlib.h
11299 do
11300 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11301 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11302   echo "$as_me:$LINENO: checking for $ac_header" >&5
11303 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11304 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11305   echo $ECHO_N "(cached) $ECHO_C" >&6
11306 fi
11307 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11308 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11309 else
11310   # Is the header compilable?
11311 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11312 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11313 cat >conftest.$ac_ext <<_ACEOF
11314 /* confdefs.h.  */
11315 _ACEOF
11316 cat confdefs.h >>conftest.$ac_ext
11317 cat >>conftest.$ac_ext <<_ACEOF
11318 /* end confdefs.h.  */
11319 $ac_includes_default
11320 #include <$ac_header>
11321 _ACEOF
11322 rm -f conftest.$ac_objext
11323 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11324   (eval $ac_compile) 2>conftest.er1
11325   ac_status=$?
11326   grep -v '^ *+' conftest.er1 >conftest.err
11327   rm -f conftest.er1
11328   cat conftest.err >&5
11329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11330   (exit $ac_status); } &&
11331          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
11332   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11333   (eval $ac_try) 2>&5
11334   ac_status=$?
11335   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11336   (exit $ac_status); }; } &&
11337          { ac_try='test -s conftest.$ac_objext'
11338   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11339   (eval $ac_try) 2>&5
11340   ac_status=$?
11341   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11342   (exit $ac_status); }; }; then
11343   ac_header_compiler=yes
11344 else
11345   echo "$as_me: failed program was:" >&5
11346 sed 's/^/| /' conftest.$ac_ext >&5
11347
11348 ac_header_compiler=no
11349 fi
11350 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11351 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11352 echo "${ECHO_T}$ac_header_compiler" >&6
11353
11354 # Is the header present?
11355 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11356 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11357 cat >conftest.$ac_ext <<_ACEOF
11358 /* confdefs.h.  */
11359 _ACEOF
11360 cat confdefs.h >>conftest.$ac_ext
11361 cat >>conftest.$ac_ext <<_ACEOF
11362 /* end confdefs.h.  */
11363 #include <$ac_header>
11364 _ACEOF
11365 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11366   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11367   ac_status=$?
11368   grep -v '^ *+' conftest.er1 >conftest.err
11369   rm -f conftest.er1
11370   cat conftest.err >&5
11371   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11372   (exit $ac_status); } >/dev/null; then
11373   if test -s conftest.err; then
11374     ac_cpp_err=$ac_c_preproc_warn_flag
11375     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11376   else
11377     ac_cpp_err=
11378   fi
11379 else
11380   ac_cpp_err=yes
11381 fi
11382 if test -z "$ac_cpp_err"; then
11383   ac_header_preproc=yes
11384 else
11385   echo "$as_me: failed program was:" >&5
11386 sed 's/^/| /' conftest.$ac_ext >&5
11387
11388   ac_header_preproc=no
11389 fi
11390 rm -f conftest.err conftest.$ac_ext
11391 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11392 echo "${ECHO_T}$ac_header_preproc" >&6
11393
11394 # So?  What about this header?
11395 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11396   yes:no: )
11397     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11398 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11399     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11400 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11401     ac_header_preproc=yes
11402     ;;
11403   no:yes:* )
11404     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11405 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11406     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11407 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11408     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11409 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11410     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11411 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11412     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11413 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11414     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11415 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11416     (
11417       cat <<\_ASBOX
11418 ## ------------------------------------ ##
11419 ## Report this to wine-devel@winehq.org ##
11420 ## ------------------------------------ ##
11421 _ASBOX
11422     ) |
11423       sed "s/^/$as_me: WARNING:     /" >&2
11424     ;;
11425 esac
11426 echo "$as_me:$LINENO: checking for $ac_header" >&5
11427 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11428 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11429   echo $ECHO_N "(cached) $ECHO_C" >&6
11430 else
11431   eval "$as_ac_Header=\$ac_header_preproc"
11432 fi
11433 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11434 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11435
11436 fi
11437 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11438   cat >>confdefs.h <<_ACEOF
11439 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11440 _ACEOF
11441  break
11442 fi
11443
11444 done
11445
11446 if test "$ac_cv_header_sys_asoundlib_h" = "yes" -o "$ac_cv_header_alsa_asoundlib_h" = "yes"
11447 then
11448     echo "$as_me:$LINENO: checking for snd_pcm_open in -lasound" >&5
11449 echo $ECHO_N "checking for snd_pcm_open in -lasound... $ECHO_C" >&6
11450 if test "${ac_cv_lib_asound_snd_pcm_open+set}" = set; then
11451   echo $ECHO_N "(cached) $ECHO_C" >&6
11452 else
11453   ac_check_lib_save_LIBS=$LIBS
11454 LIBS="-lasound  $LIBS"
11455 cat >conftest.$ac_ext <<_ACEOF
11456 /* confdefs.h.  */
11457 _ACEOF
11458 cat confdefs.h >>conftest.$ac_ext
11459 cat >>conftest.$ac_ext <<_ACEOF
11460 /* end confdefs.h.  */
11461
11462 /* Override any gcc2 internal prototype to avoid an error.  */
11463 #ifdef __cplusplus
11464 extern "C"
11465 #endif
11466 /* We use char because int might match the return type of a gcc2
11467    builtin and then its argument prototype would still apply.  */
11468 char snd_pcm_open ();
11469 int
11470 main ()
11471 {
11472 snd_pcm_open ();
11473   ;
11474   return 0;
11475 }
11476 _ACEOF
11477 rm -f conftest.$ac_objext conftest$ac_exeext
11478 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11479   (eval $ac_link) 2>conftest.er1
11480   ac_status=$?
11481   grep -v '^ *+' conftest.er1 >conftest.err
11482   rm -f conftest.er1
11483   cat conftest.err >&5
11484   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11485   (exit $ac_status); } &&
11486          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
11487   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11488   (eval $ac_try) 2>&5
11489   ac_status=$?
11490   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11491   (exit $ac_status); }; } &&
11492          { ac_try='test -s conftest$ac_exeext'
11493   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11494   (eval $ac_try) 2>&5
11495   ac_status=$?
11496   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11497   (exit $ac_status); }; }; then
11498   ac_cv_lib_asound_snd_pcm_open=yes
11499 else
11500   echo "$as_me: failed program was:" >&5
11501 sed 's/^/| /' conftest.$ac_ext >&5
11502
11503 ac_cv_lib_asound_snd_pcm_open=no
11504 fi
11505 rm -f conftest.err conftest.$ac_objext \
11506       conftest$ac_exeext conftest.$ac_ext
11507 LIBS=$ac_check_lib_save_LIBS
11508 fi
11509 echo "$as_me:$LINENO: result: $ac_cv_lib_asound_snd_pcm_open" >&5
11510 echo "${ECHO_T}$ac_cv_lib_asound_snd_pcm_open" >&6
11511 if test $ac_cv_lib_asound_snd_pcm_open = yes; then
11512
11513 cat >>confdefs.h <<\_ACEOF
11514 #define HAVE_ALSA 1
11515 _ACEOF
11516
11517         ALSALIBS="-lasound"
11518 fi
11519
11520 fi
11521
11522
11523 AUDIOIOLIBS=""
11524
11525
11526 for ac_header in libaudioio.h
11527 do
11528 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11529 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11530   echo "$as_me:$LINENO: checking for $ac_header" >&5
11531 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11532 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11533   echo $ECHO_N "(cached) $ECHO_C" >&6
11534 fi
11535 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11536 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11537 else
11538   # Is the header compilable?
11539 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11540 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11541 cat >conftest.$ac_ext <<_ACEOF
11542 /* confdefs.h.  */
11543 _ACEOF
11544 cat confdefs.h >>conftest.$ac_ext
11545 cat >>conftest.$ac_ext <<_ACEOF
11546 /* end confdefs.h.  */
11547 $ac_includes_default
11548 #include <$ac_header>
11549 _ACEOF
11550 rm -f conftest.$ac_objext
11551 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11552   (eval $ac_compile) 2>conftest.er1
11553   ac_status=$?
11554   grep -v '^ *+' conftest.er1 >conftest.err
11555   rm -f conftest.er1
11556   cat conftest.err >&5
11557   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11558   (exit $ac_status); } &&
11559          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
11560   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11561   (eval $ac_try) 2>&5
11562   ac_status=$?
11563   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11564   (exit $ac_status); }; } &&
11565          { ac_try='test -s conftest.$ac_objext'
11566   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11567   (eval $ac_try) 2>&5
11568   ac_status=$?
11569   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11570   (exit $ac_status); }; }; then
11571   ac_header_compiler=yes
11572 else
11573   echo "$as_me: failed program was:" >&5
11574 sed 's/^/| /' conftest.$ac_ext >&5
11575
11576 ac_header_compiler=no
11577 fi
11578 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11579 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11580 echo "${ECHO_T}$ac_header_compiler" >&6
11581
11582 # Is the header present?
11583 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11584 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11585 cat >conftest.$ac_ext <<_ACEOF
11586 /* confdefs.h.  */
11587 _ACEOF
11588 cat confdefs.h >>conftest.$ac_ext
11589 cat >>conftest.$ac_ext <<_ACEOF
11590 /* end confdefs.h.  */
11591 #include <$ac_header>
11592 _ACEOF
11593 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11594   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11595   ac_status=$?
11596   grep -v '^ *+' conftest.er1 >conftest.err
11597   rm -f conftest.er1
11598   cat conftest.err >&5
11599   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11600   (exit $ac_status); } >/dev/null; then
11601   if test -s conftest.err; then
11602     ac_cpp_err=$ac_c_preproc_warn_flag
11603     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11604   else
11605     ac_cpp_err=
11606   fi
11607 else
11608   ac_cpp_err=yes
11609 fi
11610 if test -z "$ac_cpp_err"; then
11611   ac_header_preproc=yes
11612 else
11613   echo "$as_me: failed program was:" >&5
11614 sed 's/^/| /' conftest.$ac_ext >&5
11615
11616   ac_header_preproc=no
11617 fi
11618 rm -f conftest.err conftest.$ac_ext
11619 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11620 echo "${ECHO_T}$ac_header_preproc" >&6
11621
11622 # So?  What about this header?
11623 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11624   yes:no: )
11625     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11626 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11627     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11628 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11629     ac_header_preproc=yes
11630     ;;
11631   no:yes:* )
11632     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11633 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11634     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11635 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11636     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11637 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11638     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11639 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11640     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11641 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11642     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11643 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11644     (
11645       cat <<\_ASBOX
11646 ## ------------------------------------ ##
11647 ## Report this to wine-devel@winehq.org ##
11648 ## ------------------------------------ ##
11649 _ASBOX
11650     ) |
11651       sed "s/^/$as_me: WARNING:     /" >&2
11652     ;;
11653 esac
11654 echo "$as_me:$LINENO: checking for $ac_header" >&5
11655 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11656 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11657   echo $ECHO_N "(cached) $ECHO_C" >&6
11658 else
11659   eval "$as_ac_Header=\$ac_header_preproc"
11660 fi
11661 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11662 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11663
11664 fi
11665 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11666   cat >>confdefs.h <<_ACEOF
11667 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11668 _ACEOF
11669  echo "$as_me:$LINENO: checking for AudioIOGetVersion in -laudioio" >&5
11670 echo $ECHO_N "checking for AudioIOGetVersion in -laudioio... $ECHO_C" >&6
11671 if test "${ac_cv_lib_audioio_AudioIOGetVersion+set}" = set; then
11672   echo $ECHO_N "(cached) $ECHO_C" >&6
11673 else
11674   ac_check_lib_save_LIBS=$LIBS
11675 LIBS="-laudioio  $LIBS"
11676 cat >conftest.$ac_ext <<_ACEOF
11677 /* confdefs.h.  */
11678 _ACEOF
11679 cat confdefs.h >>conftest.$ac_ext
11680 cat >>conftest.$ac_ext <<_ACEOF
11681 /* end confdefs.h.  */
11682
11683 /* Override any gcc2 internal prototype to avoid an error.  */
11684 #ifdef __cplusplus
11685 extern "C"
11686 #endif
11687 /* We use char because int might match the return type of a gcc2
11688    builtin and then its argument prototype would still apply.  */
11689 char AudioIOGetVersion ();
11690 int
11691 main ()
11692 {
11693 AudioIOGetVersion ();
11694   ;
11695   return 0;
11696 }
11697 _ACEOF
11698 rm -f conftest.$ac_objext conftest$ac_exeext
11699 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11700   (eval $ac_link) 2>conftest.er1
11701   ac_status=$?
11702   grep -v '^ *+' conftest.er1 >conftest.err
11703   rm -f conftest.er1
11704   cat conftest.err >&5
11705   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11706   (exit $ac_status); } &&
11707          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
11708   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11709   (eval $ac_try) 2>&5
11710   ac_status=$?
11711   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11712   (exit $ac_status); }; } &&
11713          { ac_try='test -s conftest$ac_exeext'
11714   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11715   (eval $ac_try) 2>&5
11716   ac_status=$?
11717   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11718   (exit $ac_status); }; }; then
11719   ac_cv_lib_audioio_AudioIOGetVersion=yes
11720 else
11721   echo "$as_me: failed program was:" >&5
11722 sed 's/^/| /' conftest.$ac_ext >&5
11723
11724 ac_cv_lib_audioio_AudioIOGetVersion=no
11725 fi
11726 rm -f conftest.err conftest.$ac_objext \
11727       conftest$ac_exeext conftest.$ac_ext
11728 LIBS=$ac_check_lib_save_LIBS
11729 fi
11730 echo "$as_me:$LINENO: result: $ac_cv_lib_audioio_AudioIOGetVersion" >&5
11731 echo "${ECHO_T}$ac_cv_lib_audioio_AudioIOGetVersion" >&6
11732 if test $ac_cv_lib_audioio_AudioIOGetVersion = yes; then
11733   AUDIOIOLIBS="-laudioio"
11734
11735 cat >>confdefs.h <<\_ACEOF
11736 #define HAVE_LIBAUDIOIO 1
11737 _ACEOF
11738
11739 fi
11740
11741 fi
11742
11743 done
11744
11745
11746
11747
11748 for ac_header in capi20.h
11749 do
11750 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11751 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11752   echo "$as_me:$LINENO: checking for $ac_header" >&5
11753 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11754 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11755   echo $ECHO_N "(cached) $ECHO_C" >&6
11756 fi
11757 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11758 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11759 else
11760   # Is the header compilable?
11761 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11762 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11763 cat >conftest.$ac_ext <<_ACEOF
11764 /* confdefs.h.  */
11765 _ACEOF
11766 cat confdefs.h >>conftest.$ac_ext
11767 cat >>conftest.$ac_ext <<_ACEOF
11768 /* end confdefs.h.  */
11769 $ac_includes_default
11770 #include <$ac_header>
11771 _ACEOF
11772 rm -f conftest.$ac_objext
11773 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11774   (eval $ac_compile) 2>conftest.er1
11775   ac_status=$?
11776   grep -v '^ *+' conftest.er1 >conftest.err
11777   rm -f conftest.er1
11778   cat conftest.err >&5
11779   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11780   (exit $ac_status); } &&
11781          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
11782   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11783   (eval $ac_try) 2>&5
11784   ac_status=$?
11785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11786   (exit $ac_status); }; } &&
11787          { ac_try='test -s conftest.$ac_objext'
11788   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11789   (eval $ac_try) 2>&5
11790   ac_status=$?
11791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11792   (exit $ac_status); }; }; then
11793   ac_header_compiler=yes
11794 else
11795   echo "$as_me: failed program was:" >&5
11796 sed 's/^/| /' conftest.$ac_ext >&5
11797
11798 ac_header_compiler=no
11799 fi
11800 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11801 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11802 echo "${ECHO_T}$ac_header_compiler" >&6
11803
11804 # Is the header present?
11805 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11806 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11807 cat >conftest.$ac_ext <<_ACEOF
11808 /* confdefs.h.  */
11809 _ACEOF
11810 cat confdefs.h >>conftest.$ac_ext
11811 cat >>conftest.$ac_ext <<_ACEOF
11812 /* end confdefs.h.  */
11813 #include <$ac_header>
11814 _ACEOF
11815 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11816   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11817   ac_status=$?
11818   grep -v '^ *+' conftest.er1 >conftest.err
11819   rm -f conftest.er1
11820   cat conftest.err >&5
11821   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11822   (exit $ac_status); } >/dev/null; then
11823   if test -s conftest.err; then
11824     ac_cpp_err=$ac_c_preproc_warn_flag
11825     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11826   else
11827     ac_cpp_err=
11828   fi
11829 else
11830   ac_cpp_err=yes
11831 fi
11832 if test -z "$ac_cpp_err"; then
11833   ac_header_preproc=yes
11834 else
11835   echo "$as_me: failed program was:" >&5
11836 sed 's/^/| /' conftest.$ac_ext >&5
11837
11838   ac_header_preproc=no
11839 fi
11840 rm -f conftest.err conftest.$ac_ext
11841 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11842 echo "${ECHO_T}$ac_header_preproc" >&6
11843
11844 # So?  What about this header?
11845 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11846   yes:no: )
11847     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11848 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11849     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11850 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11851     ac_header_preproc=yes
11852     ;;
11853   no:yes:* )
11854     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11855 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11856     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11857 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11858     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11859 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11860     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11861 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11862     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11863 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11864     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11865 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11866     (
11867       cat <<\_ASBOX
11868 ## ------------------------------------ ##
11869 ## Report this to wine-devel@winehq.org ##
11870 ## ------------------------------------ ##
11871 _ASBOX
11872     ) |
11873       sed "s/^/$as_me: WARNING:     /" >&2
11874     ;;
11875 esac
11876 echo "$as_me:$LINENO: checking for $ac_header" >&5
11877 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11878 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11879   echo $ECHO_N "(cached) $ECHO_C" >&6
11880 else
11881   eval "$as_ac_Header=\$ac_header_preproc"
11882 fi
11883 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11884 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11885
11886 fi
11887 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11888   cat >>confdefs.h <<_ACEOF
11889 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11890 _ACEOF
11891
11892
11893 for ac_header in linux/capi.h
11894 do
11895 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11896 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11897   echo "$as_me:$LINENO: checking for $ac_header" >&5
11898 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11899 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11900   echo $ECHO_N "(cached) $ECHO_C" >&6
11901 fi
11902 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11903 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11904 else
11905   # Is the header compilable?
11906 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11907 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11908 cat >conftest.$ac_ext <<_ACEOF
11909 /* confdefs.h.  */
11910 _ACEOF
11911 cat confdefs.h >>conftest.$ac_ext
11912 cat >>conftest.$ac_ext <<_ACEOF
11913 /* end confdefs.h.  */
11914 $ac_includes_default
11915 #include <$ac_header>
11916 _ACEOF
11917 rm -f conftest.$ac_objext
11918 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11919   (eval $ac_compile) 2>conftest.er1
11920   ac_status=$?
11921   grep -v '^ *+' conftest.er1 >conftest.err
11922   rm -f conftest.er1
11923   cat conftest.err >&5
11924   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11925   (exit $ac_status); } &&
11926          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
11927   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11928   (eval $ac_try) 2>&5
11929   ac_status=$?
11930   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11931   (exit $ac_status); }; } &&
11932          { ac_try='test -s conftest.$ac_objext'
11933   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11934   (eval $ac_try) 2>&5
11935   ac_status=$?
11936   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11937   (exit $ac_status); }; }; then
11938   ac_header_compiler=yes
11939 else
11940   echo "$as_me: failed program was:" >&5
11941 sed 's/^/| /' conftest.$ac_ext >&5
11942
11943 ac_header_compiler=no
11944 fi
11945 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11946 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11947 echo "${ECHO_T}$ac_header_compiler" >&6
11948
11949 # Is the header present?
11950 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11951 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11952 cat >conftest.$ac_ext <<_ACEOF
11953 /* confdefs.h.  */
11954 _ACEOF
11955 cat confdefs.h >>conftest.$ac_ext
11956 cat >>conftest.$ac_ext <<_ACEOF
11957 /* end confdefs.h.  */
11958 #include <$ac_header>
11959 _ACEOF
11960 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11961   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11962   ac_status=$?
11963   grep -v '^ *+' conftest.er1 >conftest.err
11964   rm -f conftest.er1
11965   cat conftest.err >&5
11966   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11967   (exit $ac_status); } >/dev/null; then
11968   if test -s conftest.err; then
11969     ac_cpp_err=$ac_c_preproc_warn_flag
11970     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11971   else
11972     ac_cpp_err=
11973   fi
11974 else
11975   ac_cpp_err=yes
11976 fi
11977 if test -z "$ac_cpp_err"; then
11978   ac_header_preproc=yes
11979 else
11980   echo "$as_me: failed program was:" >&5
11981 sed 's/^/| /' conftest.$ac_ext >&5
11982
11983   ac_header_preproc=no
11984 fi
11985 rm -f conftest.err conftest.$ac_ext
11986 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11987 echo "${ECHO_T}$ac_header_preproc" >&6
11988
11989 # So?  What about this header?
11990 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11991   yes:no: )
11992     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11993 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11994     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11995 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11996     ac_header_preproc=yes
11997     ;;
11998   no:yes:* )
11999     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12000 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12001     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
12002 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
12003     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12004 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12005     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
12006 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
12007     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12008 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12009     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12010 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12011     (
12012       cat <<\_ASBOX
12013 ## ------------------------------------ ##
12014 ## Report this to wine-devel@winehq.org ##
12015 ## ------------------------------------ ##
12016 _ASBOX
12017     ) |
12018       sed "s/^/$as_me: WARNING:     /" >&2
12019     ;;
12020 esac
12021 echo "$as_me:$LINENO: checking for $ac_header" >&5
12022 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12023 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12024   echo $ECHO_N "(cached) $ECHO_C" >&6
12025 else
12026   eval "$as_ac_Header=\$ac_header_preproc"
12027 fi
12028 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12029 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12030
12031 fi
12032 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12033   cat >>confdefs.h <<_ACEOF
12034 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12035 _ACEOF
12036
12037                 echo "$as_me:$LINENO: checking for capi20_register in -lcapi20" >&5
12038 echo $ECHO_N "checking for capi20_register in -lcapi20... $ECHO_C" >&6
12039 if test "${ac_cv_lib_capi20_capi20_register+set}" = set; then
12040   echo $ECHO_N "(cached) $ECHO_C" >&6
12041 else
12042   ac_check_lib_save_LIBS=$LIBS
12043 LIBS="-lcapi20  $LIBS"
12044 cat >conftest.$ac_ext <<_ACEOF
12045 /* confdefs.h.  */
12046 _ACEOF
12047 cat confdefs.h >>conftest.$ac_ext
12048 cat >>conftest.$ac_ext <<_ACEOF
12049 /* end confdefs.h.  */
12050
12051 /* Override any gcc2 internal prototype to avoid an error.  */
12052 #ifdef __cplusplus
12053 extern "C"
12054 #endif
12055 /* We use char because int might match the return type of a gcc2
12056    builtin and then its argument prototype would still apply.  */
12057 char capi20_register ();
12058 int
12059 main ()
12060 {
12061 capi20_register ();
12062   ;
12063   return 0;
12064 }
12065 _ACEOF
12066 rm -f conftest.$ac_objext conftest$ac_exeext
12067 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12068   (eval $ac_link) 2>conftest.er1
12069   ac_status=$?
12070   grep -v '^ *+' conftest.er1 >conftest.err
12071   rm -f conftest.er1
12072   cat conftest.err >&5
12073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12074   (exit $ac_status); } &&
12075          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
12076   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12077   (eval $ac_try) 2>&5
12078   ac_status=$?
12079   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12080   (exit $ac_status); }; } &&
12081          { ac_try='test -s conftest$ac_exeext'
12082   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12083   (eval $ac_try) 2>&5
12084   ac_status=$?
12085   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12086   (exit $ac_status); }; }; then
12087   ac_cv_lib_capi20_capi20_register=yes
12088 else
12089   echo "$as_me: failed program was:" >&5
12090 sed 's/^/| /' conftest.$ac_ext >&5
12091
12092 ac_cv_lib_capi20_capi20_register=no
12093 fi
12094 rm -f conftest.err conftest.$ac_objext \
12095       conftest$ac_exeext conftest.$ac_ext
12096 LIBS=$ac_check_lib_save_LIBS
12097 fi
12098 echo "$as_me:$LINENO: result: $ac_cv_lib_capi20_capi20_register" >&5
12099 echo "${ECHO_T}$ac_cv_lib_capi20_capi20_register" >&6
12100 if test $ac_cv_lib_capi20_capi20_register = yes; then
12101
12102
12103 cat >>confdefs.h <<\_ACEOF
12104 #define HAVE_CAPI4LINUX 1
12105 _ACEOF
12106
12107                         CAPI4LINUXLIBS="-lcapi20"
12108
12109
12110 fi
12111
12112
12113 fi
12114
12115 done
12116
12117
12118 fi
12119
12120 done
12121
12122
12123
12124 echo "$as_me:$LINENO: checking whether mmap64 works defined as mmap" >&5
12125 echo $ECHO_N "checking whether mmap64 works defined as mmap... $ECHO_C" >&6
12126 if test "${ac_cv_mmap64_works+set}" = set; then
12127   echo $ECHO_N "(cached) $ECHO_C" >&6
12128 else
12129   if test "$cross_compiling" = yes; then
12130   ac_cv_mmap64_works="no"
12131 else
12132   cat >conftest.$ac_ext <<_ACEOF
12133 /* confdefs.h.  */
12134 _ACEOF
12135 cat confdefs.h >>conftest.$ac_ext
12136 cat >>conftest.$ac_ext <<_ACEOF
12137 /* end confdefs.h.  */
12138
12139                 #define _FILE_OFFSET_BITS 64
12140                 #include <stdio.h>
12141                 #include <unistd.h>
12142                 #include <fcntl.h>
12143                 #include <sys/mman.h>
12144                 #include <errno.h>
12145
12146                 int main(int argc,char **argv) {
12147                         int fd = open("conftest.map",O_CREAT|O_RDWR,0600);
12148                         if (fd == -1) exit(1);
12149
12150                         unlink("conftest.map");
12151
12152                         write(fd,"test",4);
12153
12154                         if ((-1 == mmap(0,4,PROT_READ|PROT_WRITE,MAP_SHARED,fd,0)) &&
12155                             (errno == EINVAL)
12156                         ) {
12157                                 exit(1);
12158                         }
12159                         close(fd);
12160                         fprintf(stderr,"success!\n");
12161                         exit(0);
12162                 }
12163
12164
12165 _ACEOF
12166 rm -f conftest$ac_exeext
12167 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12168   (eval $ac_link) 2>&5
12169   ac_status=$?
12170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12171   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12172   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12173   (eval $ac_try) 2>&5
12174   ac_status=$?
12175   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12176   (exit $ac_status); }; }; then
12177   ac_cv_mmap64_works="yes"
12178 else
12179   echo "$as_me: program exited with status $ac_status" >&5
12180 echo "$as_me: failed program was:" >&5
12181 sed 's/^/| /' conftest.$ac_ext >&5
12182
12183 ( exit $ac_status )
12184 ac_cv_mmap64_works="no"
12185 fi
12186 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12187 fi
12188 fi
12189 echo "$as_me:$LINENO: result: $ac_cv_mmap64_works" >&5
12190 echo "${ECHO_T}$ac_cv_mmap64_works" >&6
12191
12192 if test "$ac_cv_mmap64_works" = "yes"
12193 then
12194
12195 cat >>confdefs.h <<\_ACEOF
12196 #define _FILE_OFFSET_BITS 64
12197 _ACEOF
12198
12199 fi
12200
12201
12202 EXTRACFLAGS=""
12203
12204 if test "x${GCC}" = "xyes"
12205 then
12206   EXTRACFLAGS=-Wall
12207
12208     echo "$as_me:$LINENO: checking for gcc strength-reduce bug" >&5
12209 echo $ECHO_N "checking for gcc strength-reduce bug... $ECHO_C" >&6
12210 if test "${ac_cv_c_gcc_strength_bug+set}" = set; then
12211   echo $ECHO_N "(cached) $ECHO_C" >&6
12212 else
12213   if test "$cross_compiling" = yes; then
12214   ac_cv_c_gcc_strength_bug="yes"
12215 else
12216   cat >conftest.$ac_ext <<_ACEOF
12217 /* confdefs.h.  */
12218 _ACEOF
12219 cat confdefs.h >>conftest.$ac_ext
12220 cat >>conftest.$ac_ext <<_ACEOF
12221 /* end confdefs.h.  */
12222
12223 int     L[4] = {0,1,2,3};
12224 int main(void) {
12225   static int Array[3];
12226   unsigned int B = 3;
12227   int i;
12228   for(i=0; i<B; i++) Array[i] = i - 3;
12229   for(i=0; i<4 - 1; i++) L[i] = L[i + 1];
12230   L[i] = 4;
12231
12232   exit( Array[1] != -2 || L[2] != 3);
12233 }
12234 _ACEOF
12235 rm -f conftest$ac_exeext
12236 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12237   (eval $ac_link) 2>&5
12238   ac_status=$?
12239   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12240   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12241   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12242   (eval $ac_try) 2>&5
12243   ac_status=$?
12244   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12245   (exit $ac_status); }; }; then
12246   ac_cv_c_gcc_strength_bug="no"
12247 else
12248   echo "$as_me: program exited with status $ac_status" >&5
12249 echo "$as_me: failed program was:" >&5
12250 sed 's/^/| /' conftest.$ac_ext >&5
12251
12252 ( exit $ac_status )
12253 ac_cv_c_gcc_strength_bug="yes"
12254 fi
12255 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12256 fi
12257 fi
12258 echo "$as_me:$LINENO: result: $ac_cv_c_gcc_strength_bug" >&5
12259 echo "${ECHO_T}$ac_cv_c_gcc_strength_bug" >&6
12260   if test "$ac_cv_c_gcc_strength_bug" = "yes"
12261   then
12262     EXTRACFLAGS="$EXTRACFLAGS -fno-strength-reduce"
12263   fi
12264
12265     echo "$as_me:$LINENO: checking for gcc -mpreferred-stack-boundary=2 support" >&5
12266 echo $ECHO_N "checking for gcc -mpreferred-stack-boundary=2 support... $ECHO_C" >&6
12267 if test "${ac_cv_c_gcc_stack_boundary+set}" = set; then
12268   echo $ECHO_N "(cached) $ECHO_C" >&6
12269 else
12270   ac_wine_try_cflags_saved=$CFLAGS
12271 CFLAGS="$CFLAGS -mpreferred-stack-boundary=2"
12272 cat >conftest.$ac_ext <<_ACEOF
12273 /* confdefs.h.  */
12274 _ACEOF
12275 cat confdefs.h >>conftest.$ac_ext
12276 cat >>conftest.$ac_ext <<_ACEOF
12277 /* end confdefs.h.  */
12278
12279 int
12280 main ()
12281 {
12282
12283   ;
12284   return 0;
12285 }
12286 _ACEOF
12287 rm -f conftest.$ac_objext conftest$ac_exeext
12288 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12289   (eval $ac_link) 2>conftest.er1
12290   ac_status=$?
12291   grep -v '^ *+' conftest.er1 >conftest.err
12292   rm -f conftest.er1
12293   cat conftest.err >&5
12294   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12295   (exit $ac_status); } &&
12296          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
12297   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12298   (eval $ac_try) 2>&5
12299   ac_status=$?
12300   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12301   (exit $ac_status); }; } &&
12302          { ac_try='test -s conftest$ac_exeext'
12303   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12304   (eval $ac_try) 2>&5
12305   ac_status=$?
12306   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12307   (exit $ac_status); }; }; then
12308   ac_cv_c_gcc_stack_boundary="yes"
12309 else
12310   echo "$as_me: failed program was:" >&5
12311 sed 's/^/| /' conftest.$ac_ext >&5
12312
12313 ac_cv_c_gcc_stack_boundary="no"
12314 fi
12315 rm -f conftest.err conftest.$ac_objext \
12316       conftest$ac_exeext conftest.$ac_ext
12317 CFLAGS=$ac_wine_try_cflags_saved
12318 fi
12319 echo "$as_me:$LINENO: result: $ac_cv_c_gcc_stack_boundary" >&5
12320 echo "${ECHO_T}$ac_cv_c_gcc_stack_boundary" >&6
12321   if test "$ac_cv_c_gcc_stack_boundary" = "yes"
12322   then
12323     EXTRACFLAGS="$EXTRACFLAGS -mpreferred-stack-boundary=2"
12324   fi
12325
12326     echo "$as_me:$LINENO: checking for gcc -fno-strict-aliasing support" >&5
12327 echo $ECHO_N "checking for gcc -fno-strict-aliasing support... $ECHO_C" >&6
12328 if test "${ac_cv_c_gcc_no_strict_aliasing+set}" = set; then
12329   echo $ECHO_N "(cached) $ECHO_C" >&6
12330 else
12331   ac_wine_try_cflags_saved=$CFLAGS
12332 CFLAGS="$CFLAGS -fno-strict-aliasing"
12333 cat >conftest.$ac_ext <<_ACEOF
12334 /* confdefs.h.  */
12335 _ACEOF
12336 cat confdefs.h >>conftest.$ac_ext
12337 cat >>conftest.$ac_ext <<_ACEOF
12338 /* end confdefs.h.  */
12339
12340 int
12341 main ()
12342 {
12343
12344   ;
12345   return 0;
12346 }
12347 _ACEOF
12348 rm -f conftest.$ac_objext conftest$ac_exeext
12349 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12350   (eval $ac_link) 2>conftest.er1
12351   ac_status=$?
12352   grep -v '^ *+' conftest.er1 >conftest.err
12353   rm -f conftest.er1
12354   cat conftest.err >&5
12355   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12356   (exit $ac_status); } &&
12357          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
12358   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12359   (eval $ac_try) 2>&5
12360   ac_status=$?
12361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12362   (exit $ac_status); }; } &&
12363          { ac_try='test -s conftest$ac_exeext'
12364   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12365   (eval $ac_try) 2>&5
12366   ac_status=$?
12367   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12368   (exit $ac_status); }; }; then
12369   ac_cv_c_gcc_no_strict_aliasing="yes"
12370 else
12371   echo "$as_me: failed program was:" >&5
12372 sed 's/^/| /' conftest.$ac_ext >&5
12373
12374 ac_cv_c_gcc_no_strict_aliasing="no"
12375 fi
12376 rm -f conftest.err conftest.$ac_objext \
12377       conftest$ac_exeext conftest.$ac_ext
12378 CFLAGS=$ac_wine_try_cflags_saved
12379 fi
12380 echo "$as_me:$LINENO: result: $ac_cv_c_gcc_no_strict_aliasing" >&5
12381 echo "${ECHO_T}$ac_cv_c_gcc_no_strict_aliasing" >&6
12382   if test "$ac_cv_c_gcc_no_strict_aliasing" = "yes"
12383   then
12384     EXTRACFLAGS="$EXTRACFLAGS -fno-strict-aliasing"
12385   fi
12386
12387     echo "$as_me:$LINENO: checking for gcc -gstabs+ support" >&5
12388 echo $ECHO_N "checking for gcc -gstabs+ support... $ECHO_C" >&6
12389 if test "${ac_cv_c_gcc_gstabs+set}" = set; then
12390   echo $ECHO_N "(cached) $ECHO_C" >&6
12391 else
12392   ac_wine_try_cflags_saved=$CFLAGS
12393 CFLAGS="$CFLAGS -gstabs+"
12394 cat >conftest.$ac_ext <<_ACEOF
12395 /* confdefs.h.  */
12396 _ACEOF
12397 cat confdefs.h >>conftest.$ac_ext
12398 cat >>conftest.$ac_ext <<_ACEOF
12399 /* end confdefs.h.  */
12400
12401 int
12402 main ()
12403 {
12404
12405   ;
12406   return 0;
12407 }
12408 _ACEOF
12409 rm -f conftest.$ac_objext conftest$ac_exeext
12410 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12411   (eval $ac_link) 2>conftest.er1
12412   ac_status=$?
12413   grep -v '^ *+' conftest.er1 >conftest.err
12414   rm -f conftest.er1
12415   cat conftest.err >&5
12416   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12417   (exit $ac_status); } &&
12418          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
12419   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12420   (eval $ac_try) 2>&5
12421   ac_status=$?
12422   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12423   (exit $ac_status); }; } &&
12424          { ac_try='test -s conftest$ac_exeext'
12425   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12426   (eval $ac_try) 2>&5
12427   ac_status=$?
12428   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12429   (exit $ac_status); }; }; then
12430   ac_cv_c_gcc_gstabs="yes"
12431 else
12432   echo "$as_me: failed program was:" >&5
12433 sed 's/^/| /' conftest.$ac_ext >&5
12434
12435 ac_cv_c_gcc_gstabs="no"
12436 fi
12437 rm -f conftest.err conftest.$ac_objext \
12438       conftest$ac_exeext conftest.$ac_ext
12439 CFLAGS=$ac_wine_try_cflags_saved
12440 fi
12441 echo "$as_me:$LINENO: result: $ac_cv_c_gcc_gstabs" >&5
12442 echo "${ECHO_T}$ac_cv_c_gcc_gstabs" >&6
12443   if test "$ac_cv_c_gcc_gstabs" = "yes"
12444   then
12445     EXTRACFLAGS="$EXTRACFLAGS -gstabs+"
12446   fi
12447
12448     saved_CFLAGS="$CFLAGS"
12449   CFLAGS="$CFLAGS -Wpointer-arith -Werror"
12450   echo "$as_me:$LINENO: checking for broken string.h that generates warnings" >&5
12451 echo $ECHO_N "checking for broken string.h that generates warnings... $ECHO_C" >&6
12452 if test "${ac_cv_c_string_h_warnings+set}" = set; then
12453   echo $ECHO_N "(cached) $ECHO_C" >&6
12454 else
12455   cat >conftest.$ac_ext <<_ACEOF
12456 /* confdefs.h.  */
12457 _ACEOF
12458 cat confdefs.h >>conftest.$ac_ext
12459 cat >>conftest.$ac_ext <<_ACEOF
12460 /* end confdefs.h.  */
12461 #include <string.h>
12462 int
12463 main ()
12464 {
12465
12466   ;
12467   return 0;
12468 }
12469 _ACEOF
12470 rm -f conftest.$ac_objext
12471 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12472   (eval $ac_compile) 2>conftest.er1
12473   ac_status=$?
12474   grep -v '^ *+' conftest.er1 >conftest.err
12475   rm -f conftest.er1
12476   cat conftest.err >&5
12477   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12478   (exit $ac_status); } &&
12479          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
12480   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12481   (eval $ac_try) 2>&5
12482   ac_status=$?
12483   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12484   (exit $ac_status); }; } &&
12485          { ac_try='test -s conftest.$ac_objext'
12486   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12487   (eval $ac_try) 2>&5
12488   ac_status=$?
12489   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12490   (exit $ac_status); }; }; then
12491   ac_cv_c_string_h_warnings=no
12492 else
12493   echo "$as_me: failed program was:" >&5
12494 sed 's/^/| /' conftest.$ac_ext >&5
12495
12496 ac_cv_c_string_h_warnings=yes
12497 fi
12498 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12499 fi
12500 echo "$as_me:$LINENO: result: $ac_cv_c_string_h_warnings" >&5
12501 echo "${ECHO_T}$ac_cv_c_string_h_warnings" >&6
12502   CFLAGS="$saved_CFLAGS"
12503   if test "$ac_cv_c_string_h_warnings" = "no"
12504   then
12505     EXTRACFLAGS="$EXTRACFLAGS -Wpointer-arith"
12506   fi
12507 fi
12508
12509
12510 echo "$as_me:$LINENO: checking how to define a function in assembly code" >&5
12511 echo $ECHO_N "checking how to define a function in assembly code... $ECHO_C" >&6
12512 if test "${ac_cv_asm_func_def+set}" = set; then
12513   echo $ECHO_N "(cached) $ECHO_C" >&6
12514 else
12515   cat >conftest.$ac_ext <<_ACEOF
12516 /* confdefs.h.  */
12517 _ACEOF
12518 cat confdefs.h >>conftest.$ac_ext
12519 cat >>conftest.$ac_ext <<_ACEOF
12520 /* end confdefs.h.  */
12521 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"); }
12522
12523 int
12524 main ()
12525 {
12526
12527   ;
12528   return 0;
12529 }
12530 _ACEOF
12531 rm -f conftest.$ac_objext conftest$ac_exeext
12532 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12533   (eval $ac_link) 2>conftest.er1
12534   ac_status=$?
12535   grep -v '^ *+' conftest.er1 >conftest.err
12536   rm -f conftest.er1
12537   cat conftest.err >&5
12538   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12539   (exit $ac_status); } &&
12540          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
12541   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12542   (eval $ac_try) 2>&5
12543   ac_status=$?
12544   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12545   (exit $ac_status); }; } &&
12546          { ac_try='test -s conftest$ac_exeext'
12547   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12548   (eval $ac_try) 2>&5
12549   ac_status=$?
12550   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12551   (exit $ac_status); }; }; then
12552   ac_cv_asm_func_def=".def"
12553 else
12554   echo "$as_me: failed program was:" >&5
12555 sed 's/^/| /' conftest.$ac_ext >&5
12556
12557 cat >conftest.$ac_ext <<_ACEOF
12558 /* confdefs.h.  */
12559 _ACEOF
12560 cat confdefs.h >>conftest.$ac_ext
12561 cat >>conftest.$ac_ext <<_ACEOF
12562 /* end confdefs.h.  */
12563 void ac_asm(void) { asm("\t.globl _ac_test\n\t.type _ac_test,@function\n_ac_test:\t.long 0"); }
12564
12565 int
12566 main ()
12567 {
12568
12569   ;
12570   return 0;
12571 }
12572 _ACEOF
12573 rm -f conftest.$ac_objext conftest$ac_exeext
12574 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12575   (eval $ac_link) 2>conftest.er1
12576   ac_status=$?
12577   grep -v '^ *+' conftest.er1 >conftest.err
12578   rm -f conftest.er1
12579   cat conftest.err >&5
12580   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12581   (exit $ac_status); } &&
12582          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
12583   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12584   (eval $ac_try) 2>&5
12585   ac_status=$?
12586   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12587   (exit $ac_status); }; } &&
12588          { ac_try='test -s conftest$ac_exeext'
12589   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12590   (eval $ac_try) 2>&5
12591   ac_status=$?
12592   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12593   (exit $ac_status); }; }; then
12594   ac_cv_asm_func_def=".type @function"
12595 else
12596   echo "$as_me: failed program was:" >&5
12597 sed 's/^/| /' conftest.$ac_ext >&5
12598
12599 cat >conftest.$ac_ext <<_ACEOF
12600 /* confdefs.h.  */
12601 _ACEOF
12602 cat confdefs.h >>conftest.$ac_ext
12603 cat >>conftest.$ac_ext <<_ACEOF
12604 /* end confdefs.h.  */
12605 void ac_asm(void) { asm("\t.globl _ac_test\n\t.type _ac_test,2\n_ac_test:\t.long 0"); }
12606
12607 int
12608 main ()
12609 {
12610
12611   ;
12612   return 0;
12613 }
12614 _ACEOF
12615 rm -f conftest.$ac_objext conftest$ac_exeext
12616 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12617   (eval $ac_link) 2>conftest.er1
12618   ac_status=$?
12619   grep -v '^ *+' conftest.er1 >conftest.err
12620   rm -f conftest.er1
12621   cat conftest.err >&5
12622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12623   (exit $ac_status); } &&
12624          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
12625   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12626   (eval $ac_try) 2>&5
12627   ac_status=$?
12628   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12629   (exit $ac_status); }; } &&
12630          { ac_try='test -s conftest$ac_exeext'
12631   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12632   (eval $ac_try) 2>&5
12633   ac_status=$?
12634   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12635   (exit $ac_status); }; }; then
12636   ac_cv_asm_func_def=".type 2"
12637 else
12638   echo "$as_me: failed program was:" >&5
12639 sed 's/^/| /' conftest.$ac_ext >&5
12640
12641 ac_cv_asm_func_def="unknown"
12642 fi
12643 rm -f conftest.err conftest.$ac_objext \
12644       conftest$ac_exeext conftest.$ac_ext
12645 fi
12646 rm -f conftest.err conftest.$ac_objext \
12647       conftest$ac_exeext conftest.$ac_ext
12648 fi
12649 rm -f conftest.err conftest.$ac_objext \
12650       conftest$ac_exeext conftest.$ac_ext
12651 fi
12652 echo "$as_me:$LINENO: result: $ac_cv_asm_func_def" >&5
12653 echo "${ECHO_T}$ac_cv_asm_func_def" >&6
12654
12655
12656
12657 case "$ac_cv_asm_func_def" in
12658   ".def")
12659      cat >>confdefs.h <<\_ACEOF
12660 #define __ASM_FUNC(name) ".def " __ASM_NAME(name) "; .scl 2; .type 32; .endef"
12661 _ACEOF
12662  ;;
12663   ".type @function")
12664      cat >>confdefs.h <<\_ACEOF
12665 #define __ASM_FUNC(name) ".type " __ASM_NAME(name) ",@function"
12666 _ACEOF
12667  ;;
12668   ".type 2")
12669      cat >>confdefs.h <<\_ACEOF
12670 #define __ASM_FUNC(name) ".type " __ASM_NAME(name) ",2"
12671 _ACEOF
12672  ;;
12673   *)
12674      cat >>confdefs.h <<\_ACEOF
12675 #define __ASM_FUNC(name) ""
12676 _ACEOF
12677  ;;
12678 esac
12679
12680
12681 echo "$as_me:$LINENO: checking whether external symbols need an underscore prefix" >&5
12682 echo $ECHO_N "checking whether external symbols need an underscore prefix... $ECHO_C" >&6
12683 if test "${ac_cv_c_extern_prefix+set}" = set; then
12684   echo $ECHO_N "(cached) $ECHO_C" >&6
12685 else
12686   cat >conftest.$ac_ext <<_ACEOF
12687 /* confdefs.h.  */
12688 _ACEOF
12689 cat confdefs.h >>conftest.$ac_ext
12690 cat >>conftest.$ac_ext <<_ACEOF
12691 /* end confdefs.h.  */
12692 void ac_asm(void) { asm(".globl _ac_test\n_ac_test:\t.long 0"); }
12693 extern int ac_test;
12694 int
12695 main ()
12696 {
12697 if (ac_test) return 1
12698   ;
12699   return 0;
12700 }
12701 _ACEOF
12702 rm -f conftest.$ac_objext conftest$ac_exeext
12703 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12704   (eval $ac_link) 2>conftest.er1
12705   ac_status=$?
12706   grep -v '^ *+' conftest.er1 >conftest.err
12707   rm -f conftest.er1
12708   cat conftest.err >&5
12709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12710   (exit $ac_status); } &&
12711          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
12712   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12713   (eval $ac_try) 2>&5
12714   ac_status=$?
12715   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12716   (exit $ac_status); }; } &&
12717          { ac_try='test -s conftest$ac_exeext'
12718   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12719   (eval $ac_try) 2>&5
12720   ac_status=$?
12721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12722   (exit $ac_status); }; }; then
12723   ac_cv_c_extern_prefix="yes"
12724 else
12725   echo "$as_me: failed program was:" >&5
12726 sed 's/^/| /' conftest.$ac_ext >&5
12727
12728 ac_cv_c_extern_prefix="no"
12729 fi
12730 rm -f conftest.err conftest.$ac_objext \
12731       conftest$ac_exeext conftest.$ac_ext
12732 fi
12733 echo "$as_me:$LINENO: result: $ac_cv_c_extern_prefix" >&5
12734 echo "${ECHO_T}$ac_cv_c_extern_prefix" >&6
12735
12736
12737
12738 if test "$ac_cv_c_extern_prefix" = "yes"
12739 then
12740   cat >>confdefs.h <<\_ACEOF
12741 #define __ASM_NAME(name) "_" name
12742 _ACEOF
12743
12744 else
12745   cat >>confdefs.h <<\_ACEOF
12746 #define __ASM_NAME(name) name
12747 _ACEOF
12748
12749 fi
12750
12751
12752 echo "$as_me:$LINENO: checking whether assembler accepts .string" >&5
12753 echo $ECHO_N "checking whether assembler accepts .string... $ECHO_C" >&6
12754 if test "${ac_cv_c_asm_string+set}" = set; then
12755   echo $ECHO_N "(cached) $ECHO_C" >&6
12756 else
12757   cat >conftest.$ac_ext <<_ACEOF
12758 /* confdefs.h.  */
12759 _ACEOF
12760 cat confdefs.h >>conftest.$ac_ext
12761 cat >>conftest.$ac_ext <<_ACEOF
12762 /* end confdefs.h.  */
12763 void ac_asm(void) { asm(".data\n\t.string \"test\"\n\t.text"); }
12764
12765 int
12766 main ()
12767 {
12768
12769   ;
12770   return 0;
12771 }
12772 _ACEOF
12773 rm -f conftest.$ac_objext conftest$ac_exeext
12774 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12775   (eval $ac_link) 2>conftest.er1
12776   ac_status=$?
12777   grep -v '^ *+' conftest.er1 >conftest.err
12778   rm -f conftest.er1
12779   cat conftest.err >&5
12780   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12781   (exit $ac_status); } &&
12782          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
12783   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12784   (eval $ac_try) 2>&5
12785   ac_status=$?
12786   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12787   (exit $ac_status); }; } &&
12788          { ac_try='test -s conftest$ac_exeext'
12789   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12790   (eval $ac_try) 2>&5
12791   ac_status=$?
12792   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12793   (exit $ac_status); }; }; then
12794   ac_cv_c_asm_string="yes"
12795 else
12796   echo "$as_me: failed program was:" >&5
12797 sed 's/^/| /' conftest.$ac_ext >&5
12798
12799 ac_cv_c_asm_string="no"
12800 fi
12801 rm -f conftest.err conftest.$ac_objext \
12802       conftest$ac_exeext conftest.$ac_ext
12803 fi
12804 echo "$as_me:$LINENO: result: $ac_cv_c_asm_string" >&5
12805 echo "${ECHO_T}$ac_cv_c_asm_string" >&6
12806 if test "$ac_cv_c_asm_string" = "yes"
12807 then
12808
12809 cat >>confdefs.h <<\_ACEOF
12810 #define __ASM_STRING ".string"
12811 _ACEOF
12812
12813 else
12814     echo "$as_me:$LINENO: checking whether assembler accepts .asciz" >&5
12815 echo $ECHO_N "checking whether assembler accepts .asciz... $ECHO_C" >&6
12816 if test "${ac_cv_c_asm_asciz+set}" = set; then
12817   echo $ECHO_N "(cached) $ECHO_C" >&6
12818 else
12819   cat >conftest.$ac_ext <<_ACEOF
12820 /* confdefs.h.  */
12821 _ACEOF
12822 cat confdefs.h >>conftest.$ac_ext
12823 cat >>conftest.$ac_ext <<_ACEOF
12824 /* end confdefs.h.  */
12825 void ac_asm(void) { asm(".data\n\t.asciz \"test\"\n\t.text"); }
12826
12827 int
12828 main ()
12829 {
12830
12831   ;
12832   return 0;
12833 }
12834 _ACEOF
12835 rm -f conftest.$ac_objext conftest$ac_exeext
12836 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12837   (eval $ac_link) 2>conftest.er1
12838   ac_status=$?
12839   grep -v '^ *+' conftest.er1 >conftest.err
12840   rm -f conftest.er1
12841   cat conftest.err >&5
12842   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12843   (exit $ac_status); } &&
12844          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
12845   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12846   (eval $ac_try) 2>&5
12847   ac_status=$?
12848   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12849   (exit $ac_status); }; } &&
12850          { ac_try='test -s conftest$ac_exeext'
12851   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12852   (eval $ac_try) 2>&5
12853   ac_status=$?
12854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12855   (exit $ac_status); }; }; then
12856   ac_cv_c_asm_asciz="yes"
12857 else
12858   echo "$as_me: failed program was:" >&5
12859 sed 's/^/| /' conftest.$ac_ext >&5
12860
12861 ac_cv_c_asm_asciz="no"
12862 fi
12863 rm -f conftest.err conftest.$ac_objext \
12864       conftest$ac_exeext conftest.$ac_ext
12865 fi
12866 echo "$as_me:$LINENO: result: $ac_cv_c_asm_asciz" >&5
12867 echo "${ECHO_T}$ac_cv_c_asm_asciz" >&6
12868     if test "$ac_cv_c_asm_asciz" = "yes"
12869     then
12870       cat >>confdefs.h <<\_ACEOF
12871 #define __ASM_STRING ".asciz"
12872 _ACEOF
12873
12874     else
12875       cat >>confdefs.h <<\_ACEOF
12876 #define __ASM_STRING ".ascii"
12877 _ACEOF
12878
12879     fi
12880 fi
12881
12882
12883 echo "$as_me:$LINENO: checking whether assembler accepts .short" >&5
12884 echo $ECHO_N "checking whether assembler accepts .short... $ECHO_C" >&6
12885 if test "${ac_cv_c_asm_short+set}" = set; then
12886   echo $ECHO_N "(cached) $ECHO_C" >&6
12887 else
12888   cat >conftest.$ac_ext <<_ACEOF
12889 /* confdefs.h.  */
12890 _ACEOF
12891 cat confdefs.h >>conftest.$ac_ext
12892 cat >>conftest.$ac_ext <<_ACEOF
12893 /* end confdefs.h.  */
12894 void ac_asm(void) { asm(".data\n\t.short 1\n\t.text"); }
12895
12896 int
12897 main ()
12898 {
12899
12900   ;
12901   return 0;
12902 }
12903 _ACEOF
12904 rm -f conftest.$ac_objext conftest$ac_exeext
12905 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12906   (eval $ac_link) 2>conftest.er1
12907   ac_status=$?
12908   grep -v '^ *+' conftest.er1 >conftest.err
12909   rm -f conftest.er1
12910   cat conftest.err >&5
12911   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12912   (exit $ac_status); } &&
12913          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
12914   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12915   (eval $ac_try) 2>&5
12916   ac_status=$?
12917   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12918   (exit $ac_status); }; } &&
12919          { ac_try='test -s conftest$ac_exeext'
12920   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12921   (eval $ac_try) 2>&5
12922   ac_status=$?
12923   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12924   (exit $ac_status); }; }; then
12925   ac_cv_c_asm_short="yes"
12926 else
12927   echo "$as_me: failed program was:" >&5
12928 sed 's/^/| /' conftest.$ac_ext >&5
12929
12930 ac_cv_c_asm_short="no"
12931 fi
12932 rm -f conftest.err conftest.$ac_objext \
12933       conftest$ac_exeext conftest.$ac_ext
12934 fi
12935 echo "$as_me:$LINENO: result: $ac_cv_c_asm_short" >&5
12936 echo "${ECHO_T}$ac_cv_c_asm_short" >&6
12937 if test "$ac_cv_c_asm_short" = "yes"
12938 then
12939
12940 cat >>confdefs.h <<\_ACEOF
12941 #define __ASM_SHORT ".short"
12942 _ACEOF
12943
12944 else
12945   cat >>confdefs.h <<\_ACEOF
12946 #define __ASM_SHORT ".half"
12947 _ACEOF
12948
12949 fi
12950
12951
12952 DLLEXT=""
12953
12954 DLLFLAGS="-D_REENTRANT"
12955
12956 DLLIBS=""
12957
12958 LDSHARED=""
12959
12960 LDDLL=""
12961
12962 LIBEXT="so"
12963
12964 IMPLIBEXT="def"
12965
12966
12967 case $host_os in
12968   cygwin*|mingw32*)
12969     if test -n "$ac_tool_prefix"; then
12970   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
12971 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
12972 echo "$as_me:$LINENO: checking for $ac_word" >&5
12973 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12974 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
12975   echo $ECHO_N "(cached) $ECHO_C" >&6
12976 else
12977   if test -n "$DLLTOOL"; then
12978   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
12979 else
12980 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12981 for as_dir in $PATH
12982 do
12983   IFS=$as_save_IFS
12984   test -z "$as_dir" && as_dir=.
12985   for ac_exec_ext in '' $ac_executable_extensions; do
12986   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12987     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
12988     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12989     break 2
12990   fi
12991 done
12992 done
12993
12994 fi
12995 fi
12996 DLLTOOL=$ac_cv_prog_DLLTOOL
12997 if test -n "$DLLTOOL"; then
12998   echo "$as_me:$LINENO: result: $DLLTOOL" >&5
12999 echo "${ECHO_T}$DLLTOOL" >&6
13000 else
13001   echo "$as_me:$LINENO: result: no" >&5
13002 echo "${ECHO_T}no" >&6
13003 fi
13004
13005 fi
13006 if test -z "$ac_cv_prog_DLLTOOL"; then
13007   ac_ct_DLLTOOL=$DLLTOOL
13008   # Extract the first word of "dlltool", so it can be a program name with args.
13009 set dummy dlltool; ac_word=$2
13010 echo "$as_me:$LINENO: checking for $ac_word" >&5
13011 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13012 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
13013   echo $ECHO_N "(cached) $ECHO_C" >&6
13014 else
13015   if test -n "$ac_ct_DLLTOOL"; then
13016   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
13017 else
13018 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13019 for as_dir in $PATH
13020 do
13021   IFS=$as_save_IFS
13022   test -z "$as_dir" && as_dir=.
13023   for ac_exec_ext in '' $ac_executable_extensions; do
13024   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13025     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
13026     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13027     break 2
13028   fi
13029 done
13030 done
13031
13032   test -z "$ac_cv_prog_ac_ct_DLLTOOL" && ac_cv_prog_ac_ct_DLLTOOL="false"
13033 fi
13034 fi
13035 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
13036 if test -n "$ac_ct_DLLTOOL"; then
13037   echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
13038 echo "${ECHO_T}$ac_ct_DLLTOOL" >&6
13039 else
13040   echo "$as_me:$LINENO: result: no" >&5
13041 echo "${ECHO_T}no" >&6
13042 fi
13043
13044   DLLTOOL=$ac_ct_DLLTOOL
13045 else
13046   DLLTOOL="$ac_cv_prog_DLLTOOL"
13047 fi
13048
13049     if test -n "$ac_tool_prefix"; then
13050   # Extract the first word of "${ac_tool_prefix}dllwrap", so it can be a program name with args.
13051 set dummy ${ac_tool_prefix}dllwrap; ac_word=$2
13052 echo "$as_me:$LINENO: checking for $ac_word" >&5
13053 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13054 if test "${ac_cv_prog_DLLWRAP+set}" = set; then
13055   echo $ECHO_N "(cached) $ECHO_C" >&6
13056 else
13057   if test -n "$DLLWRAP"; then
13058   ac_cv_prog_DLLWRAP="$DLLWRAP" # Let the user override the test.
13059 else
13060 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13061 for as_dir in $PATH
13062 do
13063   IFS=$as_save_IFS
13064   test -z "$as_dir" && as_dir=.
13065   for ac_exec_ext in '' $ac_executable_extensions; do
13066   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13067     ac_cv_prog_DLLWRAP="${ac_tool_prefix}dllwrap"
13068     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13069     break 2
13070   fi
13071 done
13072 done
13073
13074 fi
13075 fi
13076 DLLWRAP=$ac_cv_prog_DLLWRAP
13077 if test -n "$DLLWRAP"; then
13078   echo "$as_me:$LINENO: result: $DLLWRAP" >&5
13079 echo "${ECHO_T}$DLLWRAP" >&6
13080 else
13081   echo "$as_me:$LINENO: result: no" >&5
13082 echo "${ECHO_T}no" >&6
13083 fi
13084
13085 fi
13086 if test -z "$ac_cv_prog_DLLWRAP"; then
13087   ac_ct_DLLWRAP=$DLLWRAP
13088   # Extract the first word of "dllwrap", so it can be a program name with args.
13089 set dummy dllwrap; ac_word=$2
13090 echo "$as_me:$LINENO: checking for $ac_word" >&5
13091 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13092 if test "${ac_cv_prog_ac_ct_DLLWRAP+set}" = set; then
13093   echo $ECHO_N "(cached) $ECHO_C" >&6
13094 else
13095   if test -n "$ac_ct_DLLWRAP"; then
13096   ac_cv_prog_ac_ct_DLLWRAP="$ac_ct_DLLWRAP" # Let the user override the test.
13097 else
13098 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13099 for as_dir in $PATH
13100 do
13101   IFS=$as_save_IFS
13102   test -z "$as_dir" && as_dir=.
13103   for ac_exec_ext in '' $ac_executable_extensions; do
13104   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13105     ac_cv_prog_ac_ct_DLLWRAP="dllwrap"
13106     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13107     break 2
13108   fi
13109 done
13110 done
13111
13112   test -z "$ac_cv_prog_ac_ct_DLLWRAP" && ac_cv_prog_ac_ct_DLLWRAP="false"
13113 fi
13114 fi
13115 ac_ct_DLLWRAP=$ac_cv_prog_ac_ct_DLLWRAP
13116 if test -n "$ac_ct_DLLWRAP"; then
13117   echo "$as_me:$LINENO: result: $ac_ct_DLLWRAP" >&5
13118 echo "${ECHO_T}$ac_ct_DLLWRAP" >&6
13119 else
13120   echo "$as_me:$LINENO: result: no" >&5
13121 echo "${ECHO_T}no" >&6
13122 fi
13123
13124   DLLWRAP=$ac_ct_DLLWRAP
13125 else
13126   DLLWRAP="$ac_cv_prog_DLLWRAP"
13127 fi
13128
13129     if test "$DLLWRAP" = "false"; then
13130       LIBEXT="a"
13131     else
13132             LIBEXT="dll"
13133     fi
13134     IMPLIBEXT="a"
13135     ;;
13136   *)
13137
13138 for ac_header in dlfcn.h
13139 do
13140 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13141 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13142   echo "$as_me:$LINENO: checking for $ac_header" >&5
13143 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13144 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13145   echo $ECHO_N "(cached) $ECHO_C" >&6
13146 fi
13147 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13148 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13149 else
13150   # Is the header compilable?
13151 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13152 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13153 cat >conftest.$ac_ext <<_ACEOF
13154 /* confdefs.h.  */
13155 _ACEOF
13156 cat confdefs.h >>conftest.$ac_ext
13157 cat >>conftest.$ac_ext <<_ACEOF
13158 /* end confdefs.h.  */
13159 $ac_includes_default
13160 #include <$ac_header>
13161 _ACEOF
13162 rm -f conftest.$ac_objext
13163 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13164   (eval $ac_compile) 2>conftest.er1
13165   ac_status=$?
13166   grep -v '^ *+' conftest.er1 >conftest.err
13167   rm -f conftest.er1
13168   cat conftest.err >&5
13169   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13170   (exit $ac_status); } &&
13171          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
13172   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13173   (eval $ac_try) 2>&5
13174   ac_status=$?
13175   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13176   (exit $ac_status); }; } &&
13177          { ac_try='test -s conftest.$ac_objext'
13178   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13179   (eval $ac_try) 2>&5
13180   ac_status=$?
13181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13182   (exit $ac_status); }; }; then
13183   ac_header_compiler=yes
13184 else
13185   echo "$as_me: failed program was:" >&5
13186 sed 's/^/| /' conftest.$ac_ext >&5
13187
13188 ac_header_compiler=no
13189 fi
13190 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13191 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13192 echo "${ECHO_T}$ac_header_compiler" >&6
13193
13194 # Is the header present?
13195 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13196 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13197 cat >conftest.$ac_ext <<_ACEOF
13198 /* confdefs.h.  */
13199 _ACEOF
13200 cat confdefs.h >>conftest.$ac_ext
13201 cat >>conftest.$ac_ext <<_ACEOF
13202 /* end confdefs.h.  */
13203 #include <$ac_header>
13204 _ACEOF
13205 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13206   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13207   ac_status=$?
13208   grep -v '^ *+' conftest.er1 >conftest.err
13209   rm -f conftest.er1
13210   cat conftest.err >&5
13211   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13212   (exit $ac_status); } >/dev/null; then
13213   if test -s conftest.err; then
13214     ac_cpp_err=$ac_c_preproc_warn_flag
13215     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13216   else
13217     ac_cpp_err=
13218   fi
13219 else
13220   ac_cpp_err=yes
13221 fi
13222 if test -z "$ac_cpp_err"; then
13223   ac_header_preproc=yes
13224 else
13225   echo "$as_me: failed program was:" >&5
13226 sed 's/^/| /' conftest.$ac_ext >&5
13227
13228   ac_header_preproc=no
13229 fi
13230 rm -f conftest.err conftest.$ac_ext
13231 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13232 echo "${ECHO_T}$ac_header_preproc" >&6
13233
13234 # So?  What about this header?
13235 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13236   yes:no: )
13237     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13238 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13239     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13240 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13241     ac_header_preproc=yes
13242     ;;
13243   no:yes:* )
13244     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13245 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13246     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
13247 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
13248     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13249 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13250     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
13251 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
13252     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13253 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13254     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13255 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13256     (
13257       cat <<\_ASBOX
13258 ## ------------------------------------ ##
13259 ## Report this to wine-devel@winehq.org ##
13260 ## ------------------------------------ ##
13261 _ASBOX
13262     ) |
13263       sed "s/^/$as_me: WARNING:     /" >&2
13264     ;;
13265 esac
13266 echo "$as_me:$LINENO: checking for $ac_header" >&5
13267 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13268 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13269   echo $ECHO_N "(cached) $ECHO_C" >&6
13270 else
13271   eval "$as_ac_Header=\$ac_header_preproc"
13272 fi
13273 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13274 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13275
13276 fi
13277 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13278   cat >>confdefs.h <<_ACEOF
13279 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13280 _ACEOF
13281
13282 for ac_func in dlopen
13283 do
13284 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13285 echo "$as_me:$LINENO: checking for $ac_func" >&5
13286 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13287 if eval "test \"\${$as_ac_var+set}\" = set"; then
13288   echo $ECHO_N "(cached) $ECHO_C" >&6
13289 else
13290   cat >conftest.$ac_ext <<_ACEOF
13291 /* confdefs.h.  */
13292 _ACEOF
13293 cat confdefs.h >>conftest.$ac_ext
13294 cat >>conftest.$ac_ext <<_ACEOF
13295 /* end confdefs.h.  */
13296 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13297    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
13298 #define $ac_func innocuous_$ac_func
13299
13300 /* System header to define __stub macros and hopefully few prototypes,
13301     which can conflict with char $ac_func (); below.
13302     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13303     <limits.h> exists even on freestanding compilers.  */
13304
13305 #ifdef __STDC__
13306 # include <limits.h>
13307 #else
13308 # include <assert.h>
13309 #endif
13310
13311 #undef $ac_func
13312
13313 /* Override any gcc2 internal prototype to avoid an error.  */
13314 #ifdef __cplusplus
13315 extern "C"
13316 {
13317 #endif
13318 /* We use char because int might match the return type of a gcc2
13319    builtin and then its argument prototype would still apply.  */
13320 char $ac_func ();
13321 /* The GNU C library defines this for functions which it implements
13322     to always fail with ENOSYS.  Some functions are actually named
13323     something starting with __ and the normal name is an alias.  */
13324 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13325 choke me
13326 #else
13327 char (*f) () = $ac_func;
13328 #endif
13329 #ifdef __cplusplus
13330 }
13331 #endif
13332
13333 int
13334 main ()
13335 {
13336 return f != $ac_func;
13337   ;
13338   return 0;
13339 }
13340 _ACEOF
13341 rm -f conftest.$ac_objext conftest$ac_exeext
13342 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13343   (eval $ac_link) 2>conftest.er1
13344   ac_status=$?
13345   grep -v '^ *+' conftest.er1 >conftest.err
13346   rm -f conftest.er1
13347   cat conftest.err >&5
13348   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13349   (exit $ac_status); } &&
13350          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
13351   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13352   (eval $ac_try) 2>&5
13353   ac_status=$?
13354   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13355   (exit $ac_status); }; } &&
13356          { ac_try='test -s conftest$ac_exeext'
13357   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13358   (eval $ac_try) 2>&5
13359   ac_status=$?
13360   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13361   (exit $ac_status); }; }; then
13362   eval "$as_ac_var=yes"
13363 else
13364   echo "$as_me: failed program was:" >&5
13365 sed 's/^/| /' conftest.$ac_ext >&5
13366
13367 eval "$as_ac_var=no"
13368 fi
13369 rm -f conftest.err conftest.$ac_objext \
13370       conftest$ac_exeext conftest.$ac_ext
13371 fi
13372 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13373 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13374 if test `eval echo '${'$as_ac_var'}'` = yes; then
13375   cat >>confdefs.h <<_ACEOF
13376 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13377 _ACEOF
13378
13379 else
13380   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
13381 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
13382 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
13383   echo $ECHO_N "(cached) $ECHO_C" >&6
13384 else
13385   ac_check_lib_save_LIBS=$LIBS
13386 LIBS="-ldl  $LIBS"
13387 cat >conftest.$ac_ext <<_ACEOF
13388 /* confdefs.h.  */
13389 _ACEOF
13390 cat confdefs.h >>conftest.$ac_ext
13391 cat >>conftest.$ac_ext <<_ACEOF
13392 /* end confdefs.h.  */
13393
13394 /* Override any gcc2 internal prototype to avoid an error.  */
13395 #ifdef __cplusplus
13396 extern "C"
13397 #endif
13398 /* We use char because int might match the return type of a gcc2
13399    builtin and then its argument prototype would still apply.  */
13400 char dlopen ();
13401 int
13402 main ()
13403 {
13404 dlopen ();
13405   ;
13406   return 0;
13407 }
13408 _ACEOF
13409 rm -f conftest.$ac_objext conftest$ac_exeext
13410 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13411   (eval $ac_link) 2>conftest.er1
13412   ac_status=$?
13413   grep -v '^ *+' conftest.er1 >conftest.err
13414   rm -f conftest.er1
13415   cat conftest.err >&5
13416   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13417   (exit $ac_status); } &&
13418          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
13419   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13420   (eval $ac_try) 2>&5
13421   ac_status=$?
13422   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13423   (exit $ac_status); }; } &&
13424          { ac_try='test -s conftest$ac_exeext'
13425   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13426   (eval $ac_try) 2>&5
13427   ac_status=$?
13428   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13429   (exit $ac_status); }; }; then
13430   ac_cv_lib_dl_dlopen=yes
13431 else
13432   echo "$as_me: failed program was:" >&5
13433 sed 's/^/| /' conftest.$ac_ext >&5
13434
13435 ac_cv_lib_dl_dlopen=no
13436 fi
13437 rm -f conftest.err conftest.$ac_objext \
13438       conftest$ac_exeext conftest.$ac_ext
13439 LIBS=$ac_check_lib_save_LIBS
13440 fi
13441 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
13442 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
13443 if test $ac_cv_lib_dl_dlopen = yes; then
13444
13445 cat >>confdefs.h <<\_ACEOF
13446 #define HAVE_DLOPEN 1
13447 _ACEOF
13448
13449                           DLLIBS="-ldl"
13450 else
13451   LIBEXT="a"
13452 fi
13453
13454 fi
13455 done
13456
13457 else
13458   LIBEXT="a"
13459 fi
13460
13461 done
13462
13463
13464     if test "$LIBEXT" = "so"
13465     then
13466       DLLFLAGS="$DLLFLAGS -fPIC"
13467       DLLEXT=".so"
13468       echo "$as_me:$LINENO: checking whether we can build a GNU style ELF dll" >&5
13469 echo $ECHO_N "checking whether we can build a GNU style ELF dll... $ECHO_C" >&6
13470 if test "${ac_cv_c_dll_gnuelf+set}" = set; then
13471   echo $ECHO_N "(cached) $ECHO_C" >&6
13472 else
13473   ac_wine_try_cflags_saved=$CFLAGS
13474 CFLAGS="$CFLAGS -fPIC -shared -Wl,-soname,conftest.so.1.0,-Bsymbolic"
13475 cat >conftest.$ac_ext <<_ACEOF
13476 /* confdefs.h.  */
13477 _ACEOF
13478 cat confdefs.h >>conftest.$ac_ext
13479 cat >>conftest.$ac_ext <<_ACEOF
13480 /* end confdefs.h.  */
13481
13482 int
13483 main ()
13484 {
13485
13486   ;
13487   return 0;
13488 }
13489 _ACEOF
13490 rm -f conftest.$ac_objext conftest$ac_exeext
13491 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13492   (eval $ac_link) 2>conftest.er1
13493   ac_status=$?
13494   grep -v '^ *+' conftest.er1 >conftest.err
13495   rm -f conftest.er1
13496   cat conftest.err >&5
13497   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13498   (exit $ac_status); } &&
13499          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
13500   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13501   (eval $ac_try) 2>&5
13502   ac_status=$?
13503   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13504   (exit $ac_status); }; } &&
13505          { ac_try='test -s conftest$ac_exeext'
13506   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13507   (eval $ac_try) 2>&5
13508   ac_status=$?
13509   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13510   (exit $ac_status); }; }; then
13511   ac_cv_c_dll_gnuelf="yes"
13512 else
13513   echo "$as_me: failed program was:" >&5
13514 sed 's/^/| /' conftest.$ac_ext >&5
13515
13516 ac_cv_c_dll_gnuelf="no"
13517 fi
13518 rm -f conftest.err conftest.$ac_objext \
13519       conftest$ac_exeext conftest.$ac_ext
13520 CFLAGS=$ac_wine_try_cflags_saved
13521 fi
13522 echo "$as_me:$LINENO: result: $ac_cv_c_dll_gnuelf" >&5
13523 echo "${ECHO_T}$ac_cv_c_dll_gnuelf" >&6
13524       if test "$ac_cv_c_dll_gnuelf" = "yes"
13525       then
13526         LDSHARED="\$(CC) -shared \$(SONAME:%=-Wl,-soname,%)"
13527         LDDLL="\$(CC) -shared -Wl,-Bsymbolic"
13528         echo "$as_me:$LINENO: checking whether the linker accepts -z defs" >&5
13529 echo $ECHO_N "checking whether the linker accepts -z defs... $ECHO_C" >&6
13530 if test "${ac_cv_c_dll_zdefs+set}" = set; then
13531   echo $ECHO_N "(cached) $ECHO_C" >&6
13532 else
13533   ac_wine_try_cflags_saved=$CFLAGS
13534 CFLAGS="$CFLAGS -fPIC -shared -Wl,-Bsymbolic,-z,defs"
13535 cat >conftest.$ac_ext <<_ACEOF
13536 /* confdefs.h.  */
13537 _ACEOF
13538 cat confdefs.h >>conftest.$ac_ext
13539 cat >>conftest.$ac_ext <<_ACEOF
13540 /* end confdefs.h.  */
13541
13542 int
13543 main ()
13544 {
13545
13546   ;
13547   return 0;
13548 }
13549 _ACEOF
13550 rm -f conftest.$ac_objext conftest$ac_exeext
13551 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13552   (eval $ac_link) 2>conftest.er1
13553   ac_status=$?
13554   grep -v '^ *+' conftest.er1 >conftest.err
13555   rm -f conftest.er1
13556   cat conftest.err >&5
13557   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13558   (exit $ac_status); } &&
13559          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
13560   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13561   (eval $ac_try) 2>&5
13562   ac_status=$?
13563   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13564   (exit $ac_status); }; } &&
13565          { ac_try='test -s conftest$ac_exeext'
13566   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13567   (eval $ac_try) 2>&5
13568   ac_status=$?
13569   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13570   (exit $ac_status); }; }; then
13571   ac_cv_c_dll_zdefs="yes"
13572 else
13573   echo "$as_me: failed program was:" >&5
13574 sed 's/^/| /' conftest.$ac_ext >&5
13575
13576 ac_cv_c_dll_zdefs="no"
13577 fi
13578 rm -f conftest.err conftest.$ac_objext \
13579       conftest$ac_exeext conftest.$ac_ext
13580 CFLAGS=$ac_wine_try_cflags_saved
13581 fi
13582 echo "$as_me:$LINENO: result: $ac_cv_c_dll_zdefs" >&5
13583 echo "${ECHO_T}$ac_cv_c_dll_zdefs" >&6
13584         if test "$ac_cv_c_dll_zdefs" = "yes"
13585         then
13586           LDDLL="$LDDLL,-z,defs"
13587         fi
13588
13589         echo "$as_me:$LINENO: checking whether the linker accepts --export-dynamic" >&5
13590 echo $ECHO_N "checking whether the linker accepts --export-dynamic... $ECHO_C" >&6
13591 if test "${ac_cv_c_export_dynamic+set}" = set; then
13592   echo $ECHO_N "(cached) $ECHO_C" >&6
13593 else
13594   ac_wine_try_cflags_saved=$CFLAGS
13595 CFLAGS="$CFLAGS -fPIC -Wl,--export-dynamic"
13596 cat >conftest.$ac_ext <<_ACEOF
13597 /* confdefs.h.  */
13598 _ACEOF
13599 cat confdefs.h >>conftest.$ac_ext
13600 cat >>conftest.$ac_ext <<_ACEOF
13601 /* end confdefs.h.  */
13602
13603 int
13604 main ()
13605 {
13606
13607   ;
13608   return 0;
13609 }
13610 _ACEOF
13611 rm -f conftest.$ac_objext conftest$ac_exeext
13612 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13613   (eval $ac_link) 2>conftest.er1
13614   ac_status=$?
13615   grep -v '^ *+' conftest.er1 >conftest.err
13616   rm -f conftest.er1
13617   cat conftest.err >&5
13618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13619   (exit $ac_status); } &&
13620          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
13621   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13622   (eval $ac_try) 2>&5
13623   ac_status=$?
13624   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13625   (exit $ac_status); }; } &&
13626          { ac_try='test -s conftest$ac_exeext'
13627   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13628   (eval $ac_try) 2>&5
13629   ac_status=$?
13630   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13631   (exit $ac_status); }; }; then
13632   ac_cv_c_export_dynamic="yes"
13633 else
13634   echo "$as_me: failed program was:" >&5
13635 sed 's/^/| /' conftest.$ac_ext >&5
13636
13637 ac_cv_c_export_dynamic="no"
13638 fi
13639 rm -f conftest.err conftest.$ac_objext \
13640       conftest$ac_exeext conftest.$ac_ext
13641 CFLAGS=$ac_wine_try_cflags_saved
13642 fi
13643 echo "$as_me:$LINENO: result: $ac_cv_c_export_dynamic" >&5
13644 echo "${ECHO_T}$ac_cv_c_export_dynamic" >&6
13645         if test "$ac_cv_c_export_dynamic" = "yes"
13646         then
13647           LDEXECFLAGS="-Wl,--export-dynamic"
13648
13649         fi
13650
13651         case $host_cpu in
13652           *i[3456789]86*)
13653             echo "$as_me:$LINENO: checking whether we can relocate the executable to 0x00110000" >&5
13654 echo $ECHO_N "checking whether we can relocate the executable to 0x00110000... $ECHO_C" >&6
13655 if test "${ac_cv_ld_reloc_exec+set}" = set; then
13656   echo $ECHO_N "(cached) $ECHO_C" >&6
13657 else
13658   saved_CFLAGS="$CFLAGS"
13659                CFLAGS="$CFLAGS -Wl,--section-start,.interp=0x00110400"
13660                if test "$cross_compiling" = yes; then
13661   ac_cv_ld_reloc_exec="no"
13662 else
13663   cat >conftest.$ac_ext <<_ACEOF
13664 /* confdefs.h.  */
13665 _ACEOF
13666 cat confdefs.h >>conftest.$ac_ext
13667 cat >>conftest.$ac_ext <<_ACEOF
13668 /* end confdefs.h.  */
13669 #include <unistd.h>
13670                            int main() { return (sbrk(32*1024*1024) == (void *)-1); }
13671 _ACEOF
13672 rm -f conftest$ac_exeext
13673 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13674   (eval $ac_link) 2>&5
13675   ac_status=$?
13676   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13677   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13678   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13679   (eval $ac_try) 2>&5
13680   ac_status=$?
13681   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13682   (exit $ac_status); }; }; then
13683   ac_cv_ld_reloc_exec="yes"
13684 else
13685   echo "$as_me: program exited with status $ac_status" >&5
13686 echo "$as_me: failed program was:" >&5
13687 sed 's/^/| /' conftest.$ac_ext >&5
13688
13689 ( exit $ac_status )
13690 ac_cv_ld_reloc_exec="no"
13691 fi
13692 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13693 fi
13694                CFLAGS="$saved_CFLAGS"
13695 fi
13696 echo "$as_me:$LINENO: result: $ac_cv_ld_reloc_exec" >&5
13697 echo "${ECHO_T}$ac_cv_ld_reloc_exec" >&6
13698             if test "$ac_cv_ld_reloc_exec" = "yes"
13699             then
13700               LDEXECFLAGS="$LDEXECFLAGS -Wl,--section-start,.interp=0x00110400"
13701             fi
13702             ;;
13703         esac
13704
13705       else
13706         echo "$as_me:$LINENO: checking whether we can build a UnixWare (Solaris) dll" >&5
13707 echo $ECHO_N "checking whether we can build a UnixWare (Solaris) dll... $ECHO_C" >&6
13708 if test "${ac_cv_c_dll_unixware+set}" = set; then
13709   echo $ECHO_N "(cached) $ECHO_C" >&6
13710 else
13711   ac_wine_try_cflags_saved=$CFLAGS
13712 CFLAGS="$CFLAGS -fPIC -Wl,-G,-h,conftest.so.1.0,-B,symbolic"
13713 cat >conftest.$ac_ext <<_ACEOF
13714 /* confdefs.h.  */
13715 _ACEOF
13716 cat confdefs.h >>conftest.$ac_ext
13717 cat >>conftest.$ac_ext <<_ACEOF
13718 /* end confdefs.h.  */
13719
13720 int
13721 main ()
13722 {
13723
13724   ;
13725   return 0;
13726 }
13727 _ACEOF
13728 rm -f conftest.$ac_objext conftest$ac_exeext
13729 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13730   (eval $ac_link) 2>conftest.er1
13731   ac_status=$?
13732   grep -v '^ *+' conftest.er1 >conftest.err
13733   rm -f conftest.er1
13734   cat conftest.err >&5
13735   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13736   (exit $ac_status); } &&
13737          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
13738   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13739   (eval $ac_try) 2>&5
13740   ac_status=$?
13741   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13742   (exit $ac_status); }; } &&
13743          { ac_try='test -s conftest$ac_exeext'
13744   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13745   (eval $ac_try) 2>&5
13746   ac_status=$?
13747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13748   (exit $ac_status); }; }; then
13749   ac_cv_c_dll_unixware="yes"
13750 else
13751   echo "$as_me: failed program was:" >&5
13752 sed 's/^/| /' conftest.$ac_ext >&5
13753
13754 ac_cv_c_dll_unixware="no"
13755 fi
13756 rm -f conftest.err conftest.$ac_objext \
13757       conftest$ac_exeext conftest.$ac_ext
13758 CFLAGS=$ac_wine_try_cflags_saved
13759 fi
13760 echo "$as_me:$LINENO: result: $ac_cv_c_dll_unixware" >&5
13761 echo "${ECHO_T}$ac_cv_c_dll_unixware" >&6
13762         if test "$ac_cv_c_dll_unixware" = "yes"
13763         then
13764           LDSHARED="\$(CC) -Wl,-G \$(SONAME:%=-Wl,-h,%)"
13765           LDDLL="\$(CC) -Wl,-G,-B,symbolic"
13766
13767         else
13768           echo "$as_me:$LINENO: checking whether we can build a Mach-O (Mac OS X/Darwin) dll" >&5
13769 echo $ECHO_N "checking whether we can build a Mach-O (Mac OS X/Darwin) dll... $ECHO_C" >&6
13770 if test "${ac_cv_c_dll_macho+set}" = set; then
13771   echo $ECHO_N "(cached) $ECHO_C" >&6
13772 else
13773   ac_wine_try_cflags_saved=$CFLAGS
13774 CFLAGS="$CFLAGS -bundle"
13775 cat >conftest.$ac_ext <<_ACEOF
13776 /* confdefs.h.  */
13777 _ACEOF
13778 cat confdefs.h >>conftest.$ac_ext
13779 cat >>conftest.$ac_ext <<_ACEOF
13780 /* end confdefs.h.  */
13781
13782 int
13783 main ()
13784 {
13785
13786   ;
13787   return 0;
13788 }
13789 _ACEOF
13790 rm -f conftest.$ac_objext conftest$ac_exeext
13791 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13792   (eval $ac_link) 2>conftest.er1
13793   ac_status=$?
13794   grep -v '^ *+' conftest.er1 >conftest.err
13795   rm -f conftest.er1
13796   cat conftest.err >&5
13797   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13798   (exit $ac_status); } &&
13799          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
13800   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13801   (eval $ac_try) 2>&5
13802   ac_status=$?
13803   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13804   (exit $ac_status); }; } &&
13805          { ac_try='test -s conftest$ac_exeext'
13806   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13807   (eval $ac_try) 2>&5
13808   ac_status=$?
13809   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13810   (exit $ac_status); }; }; then
13811   ac_cv_c_dll_macho="yes"
13812 else
13813   echo "$as_me: failed program was:" >&5
13814 sed 's/^/| /' conftest.$ac_ext >&5
13815
13816 ac_cv_c_dll_macho="no"
13817 fi
13818 rm -f conftest.err conftest.$ac_objext \
13819       conftest$ac_exeext conftest.$ac_ext
13820 CFLAGS=$ac_wine_try_cflags_saved
13821 fi
13822 echo "$as_me:$LINENO: result: $ac_cv_c_dll_macho" >&5
13823 echo "${ECHO_T}$ac_cv_c_dll_macho" >&6
13824           if test "$ac_cv_c_dll_macho" = "yes"
13825           then
13826             LIBEXT="dylib"
13827             LDDLL="\$(CC) -bundle -flat_namespace -undefined suppress"
13828             LDSHARED="\$(CC) -dynamiclib"
13829             CFLAGS="$CFLAGS -ffixed-r13 -no-cpp-precomp"
13830           fi
13831         fi
13832       fi
13833     fi
13834
13835         CROSSTEST=""
13836
13837     if test "$cross_compiling" = "no"
13838     then
13839       for ac_prog in i586-mingw32msvc-gcc i386-mingw32-gcc mingw-gcc
13840 do
13841   # Extract the first word of "$ac_prog", so it can be a program name with args.
13842 set dummy $ac_prog; ac_word=$2
13843 echo "$as_me:$LINENO: checking for $ac_word" >&5
13844 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13845 if test "${ac_cv_prog_CROSSCC+set}" = set; then
13846   echo $ECHO_N "(cached) $ECHO_C" >&6
13847 else
13848   if test -n "$CROSSCC"; then
13849   ac_cv_prog_CROSSCC="$CROSSCC" # Let the user override the test.
13850 else
13851 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13852 for as_dir in $PATH
13853 do
13854   IFS=$as_save_IFS
13855   test -z "$as_dir" && as_dir=.
13856   for ac_exec_ext in '' $ac_executable_extensions; do
13857   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13858     ac_cv_prog_CROSSCC="$ac_prog"
13859     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13860     break 2
13861   fi
13862 done
13863 done
13864
13865 fi
13866 fi
13867 CROSSCC=$ac_cv_prog_CROSSCC
13868 if test -n "$CROSSCC"; then
13869   echo "$as_me:$LINENO: result: $CROSSCC" >&5
13870 echo "${ECHO_T}$CROSSCC" >&6
13871 else
13872   echo "$as_me:$LINENO: result: no" >&5
13873 echo "${ECHO_T}no" >&6
13874 fi
13875
13876   test -n "$CROSSCC" && break
13877 done
13878 test -n "$CROSSCC" || CROSSCC="false"
13879
13880       for ac_prog in i586-mingw32msvc-dlltool i386-mingw32-dlltool mingw-dlltool
13881 do
13882   # Extract the first word of "$ac_prog", so it can be a program name with args.
13883 set dummy $ac_prog; ac_word=$2
13884 echo "$as_me:$LINENO: checking for $ac_word" >&5
13885 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13886 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
13887   echo $ECHO_N "(cached) $ECHO_C" >&6
13888 else
13889   if test -n "$DLLTOOL"; then
13890   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
13891 else
13892 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13893 for as_dir in $PATH
13894 do
13895   IFS=$as_save_IFS
13896   test -z "$as_dir" && as_dir=.
13897   for ac_exec_ext in '' $ac_executable_extensions; do
13898   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13899     ac_cv_prog_DLLTOOL="$ac_prog"
13900     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13901     break 2
13902   fi
13903 done
13904 done
13905
13906 fi
13907 fi
13908 DLLTOOL=$ac_cv_prog_DLLTOOL
13909 if test -n "$DLLTOOL"; then
13910   echo "$as_me:$LINENO: result: $DLLTOOL" >&5
13911 echo "${ECHO_T}$DLLTOOL" >&6
13912 else
13913   echo "$as_me:$LINENO: result: no" >&5
13914 echo "${ECHO_T}no" >&6
13915 fi
13916
13917   test -n "$DLLTOOL" && break
13918 done
13919 test -n "$DLLTOOL" || DLLTOOL="false"
13920
13921       for ac_prog in i586-mingw32msvc-windres i386-mingw32-windres mingw-windres
13922 do
13923   # Extract the first word of "$ac_prog", so it can be a program name with args.
13924 set dummy $ac_prog; ac_word=$2
13925 echo "$as_me:$LINENO: checking for $ac_word" >&5
13926 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13927 if test "${ac_cv_prog_CROSSWINDRES+set}" = set; then
13928   echo $ECHO_N "(cached) $ECHO_C" >&6
13929 else
13930   if test -n "$CROSSWINDRES"; then
13931   ac_cv_prog_CROSSWINDRES="$CROSSWINDRES" # Let the user override the test.
13932 else
13933 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13934 for as_dir in $PATH
13935 do
13936   IFS=$as_save_IFS
13937   test -z "$as_dir" && as_dir=.
13938   for ac_exec_ext in '' $ac_executable_extensions; do
13939   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13940     ac_cv_prog_CROSSWINDRES="$ac_prog"
13941     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13942     break 2
13943   fi
13944 done
13945 done
13946
13947 fi
13948 fi
13949 CROSSWINDRES=$ac_cv_prog_CROSSWINDRES
13950 if test -n "$CROSSWINDRES"; then
13951   echo "$as_me:$LINENO: result: $CROSSWINDRES" >&5
13952 echo "${ECHO_T}$CROSSWINDRES" >&6
13953 else
13954   echo "$as_me:$LINENO: result: no" >&5
13955 echo "${ECHO_T}no" >&6
13956 fi
13957
13958   test -n "$CROSSWINDRES" && break
13959 done
13960 test -n "$CROSSWINDRES" || CROSSWINDRES="false"
13961
13962       if test "$CROSSCC" != "false"; then CROSSTEST="\$(CROSSTEST)"; fi
13963     fi
13964     ;;
13965 esac
13966
13967 if test "$LIBEXT" = "a"; then
13968   { { echo "$as_me:$LINENO: error: could not find a way to build shared libraries.
13969 It is currently not possible to build Wine without shared library
13970 (.so) support to allow transparent switch between .so and .dll files.
13971 If you are using Linux, you will need a newer binutils.
13972 " >&5
13973 echo "$as_me: error: could not find a way to build shared libraries.
13974 It is currently not possible to build Wine without shared library
13975 (.so) support to allow transparent switch between .so and .dll files.
13976 If you are using Linux, you will need a newer binutils.
13977 " >&2;}
13978    { (exit 1); exit 1; }; }
13979 fi
13980
13981 case $build_os in
13982   cygwin*|mingw32*)
13983     LDPATH="PATH=\"\$(TOOLSDIR)/libs/unicode:\$\$PATH\""
13984  ;;
13985   darwin*|macosx*)
13986     LDPATH="DYLD_LIBRARY_PATH=\"\$(TOOLSDIR)/libs/unicode:\$\$DYLD_LIBRARY_PATH\""
13987  ;;
13988   *)
13989     LDPATH="LD_LIBRARY_PATH=\"\$(TOOLSDIR)/libs/unicode:\$\$LD_LIBRARY_PATH\""
13990  ;;
13991 esac
13992
13993 case $host_os in
13994   mingw32*)
13995     CRTLIBS="-lmsvcrt"
13996  ;;
13997 esac
13998
13999 case $host_os in
14000   linux*)
14001     WINE_BINARIES="wine-glibc wine-kthread wine-pthread"
14002
14003     MAIN_BINARY="wine-glibc"
14004
14005     ;;
14006   *)
14007     WINE_BINARIES="wine-kthread"
14008
14009     MAIN_BINARY="wine-kthread"
14010
14011     ;;
14012 esac
14013
14014
14015 if test "$LIBEXT" = "so"
14016 then
14017   # Extract the first word of "ldd", so it can be a program name with args.
14018 set dummy ldd; ac_word=$2
14019 echo "$as_me:$LINENO: checking for $ac_word" >&5
14020 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14021 if test "${ac_cv_path_LDD+set}" = set; then
14022   echo $ECHO_N "(cached) $ECHO_C" >&6
14023 else
14024   case $LDD in
14025   [\\/]* | ?:[\\/]*)
14026   ac_cv_path_LDD="$LDD" # Let the user override the test with a path.
14027   ;;
14028   *)
14029   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14030 as_dummy="/sbin:/usr/sbin:$PATH"
14031 for as_dir in $as_dummy
14032 do
14033   IFS=$as_save_IFS
14034   test -z "$as_dir" && as_dir=.
14035   for ac_exec_ext in '' $ac_executable_extensions; do
14036   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14037     ac_cv_path_LDD="$as_dir/$ac_word$ac_exec_ext"
14038     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14039     break 2
14040   fi
14041 done
14042 done
14043
14044   test -z "$ac_cv_path_LDD" && ac_cv_path_LDD="true"
14045   ;;
14046 esac
14047 fi
14048 LDD=$ac_cv_path_LDD
14049
14050 if test -n "$LDD"; then
14051   echo "$as_me:$LINENO: result: $LDD" >&5
14052 echo "${ECHO_T}$LDD" >&6
14053 else
14054   echo "$as_me:$LINENO: result: no" >&5
14055 echo "${ECHO_T}no" >&6
14056 fi
14057
14058
14059 echo "$as_me:$LINENO: checking for -lX11 soname" >&5
14060 echo $ECHO_N "checking for -lX11 soname... $ECHO_C" >&6
14061 if test "${ac_cv_lib_soname_X11+set}" = set; then
14062   echo $ECHO_N "(cached) $ECHO_C" >&6
14063 else
14064   ac_get_soname_save_LIBS=$LIBS
14065 LIBS="-lX11 $X_LIBS $X_EXTRA_LIBS $LIBS"
14066   cat >conftest.$ac_ext <<_ACEOF
14067 /* confdefs.h.  */
14068 _ACEOF
14069 cat confdefs.h >>conftest.$ac_ext
14070 cat >>conftest.$ac_ext <<_ACEOF
14071 /* end confdefs.h.  */
14072
14073 /* Override any gcc2 internal prototype to avoid an error.  */
14074 #ifdef __cplusplus
14075 extern "C"
14076 #endif
14077 /* We use char because int might match the return type of a gcc2
14078    builtin and then its argument prototype would still apply.  */
14079 char XCreateWindow ();
14080 int
14081 main ()
14082 {
14083 XCreateWindow ();
14084   ;
14085   return 0;
14086 }
14087 _ACEOF
14088 rm -f conftest.$ac_objext conftest$ac_exeext
14089 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14090   (eval $ac_link) 2>conftest.er1
14091   ac_status=$?
14092   grep -v '^ *+' conftest.er1 >conftest.err
14093   rm -f conftest.er1
14094   cat conftest.err >&5
14095   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14096   (exit $ac_status); } &&
14097          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
14098   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14099   (eval $ac_try) 2>&5
14100   ac_status=$?
14101   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14102   (exit $ac_status); }; } &&
14103          { ac_try='test -s conftest$ac_exeext'
14104   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14105   (eval $ac_try) 2>&5
14106   ac_status=$?
14107   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14108   (exit $ac_status); }; }; then
14109   ac_cv_lib_soname_X11=`$ac_cv_path_LDD conftest$ac_exeext | grep libX11\\.so | sed 's/^.*\(libX11\.so[^         ]*\).*$/\1/'`
14110   if test "x$ac_cv_lib_soname_X11" = "x"
14111   then
14112      ac_cv_lib_soname_X11="libX11.so"
14113   fi
14114 else
14115   echo "$as_me: failed program was:" >&5
14116 sed 's/^/| /' conftest.$ac_ext >&5
14117
14118 ac_cv_lib_soname_X11="libX11.so"
14119 fi
14120 rm -f conftest.err conftest.$ac_objext \
14121       conftest$ac_exeext conftest.$ac_ext
14122   LIBS=$ac_get_soname_save_LIBS
14123 fi
14124 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_X11" >&5
14125 echo "${ECHO_T}$ac_cv_lib_soname_X11" >&6
14126 if test "x$ac_cv_lib_soname_X11" != xNONE
14127 then
14128 cat >>confdefs.h <<_ACEOF
14129 #define SONAME_LIBX11 "$ac_cv_lib_soname_X11"
14130 _ACEOF
14131 fi
14132
14133 echo "$as_me:$LINENO: checking for -lXext soname" >&5
14134 echo $ECHO_N "checking for -lXext soname... $ECHO_C" >&6
14135 if test "${ac_cv_lib_soname_Xext+set}" = set; then
14136   echo $ECHO_N "(cached) $ECHO_C" >&6
14137 else
14138   ac_get_soname_save_LIBS=$LIBS
14139 LIBS="-lXext $X_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
14140   cat >conftest.$ac_ext <<_ACEOF
14141 /* confdefs.h.  */
14142 _ACEOF
14143 cat confdefs.h >>conftest.$ac_ext
14144 cat >>conftest.$ac_ext <<_ACEOF
14145 /* end confdefs.h.  */
14146
14147 /* Override any gcc2 internal prototype to avoid an error.  */
14148 #ifdef __cplusplus
14149 extern "C"
14150 #endif
14151 /* We use char because int might match the return type of a gcc2
14152    builtin and then its argument prototype would still apply.  */
14153 char XextCreateExtension ();
14154 int
14155 main ()
14156 {
14157 XextCreateExtension ();
14158   ;
14159   return 0;
14160 }
14161 _ACEOF
14162 rm -f conftest.$ac_objext conftest$ac_exeext
14163 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14164   (eval $ac_link) 2>conftest.er1
14165   ac_status=$?
14166   grep -v '^ *+' conftest.er1 >conftest.err
14167   rm -f conftest.er1
14168   cat conftest.err >&5
14169   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14170   (exit $ac_status); } &&
14171          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
14172   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14173   (eval $ac_try) 2>&5
14174   ac_status=$?
14175   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14176   (exit $ac_status); }; } &&
14177          { ac_try='test -s conftest$ac_exeext'
14178   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14179   (eval $ac_try) 2>&5
14180   ac_status=$?
14181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14182   (exit $ac_status); }; }; then
14183   ac_cv_lib_soname_Xext=`$ac_cv_path_LDD conftest$ac_exeext | grep libXext\\.so | sed 's/^.*\(libXext\.so[^      ]*\).*$/\1/'`
14184   if test "x$ac_cv_lib_soname_Xext" = "x"
14185   then
14186      ac_cv_lib_soname_Xext="libXext.so"
14187   fi
14188 else
14189   echo "$as_me: failed program was:" >&5
14190 sed 's/^/| /' conftest.$ac_ext >&5
14191
14192 ac_cv_lib_soname_Xext="libXext.so"
14193 fi
14194 rm -f conftest.err conftest.$ac_objext \
14195       conftest$ac_exeext conftest.$ac_ext
14196   LIBS=$ac_get_soname_save_LIBS
14197 fi
14198 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_Xext" >&5
14199 echo "${ECHO_T}$ac_cv_lib_soname_Xext" >&6
14200 if test "x$ac_cv_lib_soname_Xext" != xNONE
14201 then
14202 cat >>confdefs.h <<_ACEOF
14203 #define SONAME_LIBXEXT "$ac_cv_lib_soname_Xext"
14204 _ACEOF
14205 fi
14206
14207 echo "$as_me:$LINENO: checking for -lXrender soname" >&5
14208 echo $ECHO_N "checking for -lXrender soname... $ECHO_C" >&6
14209 if test "${ac_cv_lib_soname_Xrender+set}" = set; then
14210   echo $ECHO_N "(cached) $ECHO_C" >&6
14211 else
14212   ac_get_soname_save_LIBS=$LIBS
14213 LIBS="-lXrender $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
14214   cat >conftest.$ac_ext <<_ACEOF
14215 /* confdefs.h.  */
14216 _ACEOF
14217 cat confdefs.h >>conftest.$ac_ext
14218 cat >>conftest.$ac_ext <<_ACEOF
14219 /* end confdefs.h.  */
14220
14221 /* Override any gcc2 internal prototype to avoid an error.  */
14222 #ifdef __cplusplus
14223 extern "C"
14224 #endif
14225 /* We use char because int might match the return type of a gcc2
14226    builtin and then its argument prototype would still apply.  */
14227 char XRenderQueryExtension ();
14228 int
14229 main ()
14230 {
14231 XRenderQueryExtension ();
14232   ;
14233   return 0;
14234 }
14235 _ACEOF
14236 rm -f conftest.$ac_objext conftest$ac_exeext
14237 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14238   (eval $ac_link) 2>conftest.er1
14239   ac_status=$?
14240   grep -v '^ *+' conftest.er1 >conftest.err
14241   rm -f conftest.er1
14242   cat conftest.err >&5
14243   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14244   (exit $ac_status); } &&
14245          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
14246   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14247   (eval $ac_try) 2>&5
14248   ac_status=$?
14249   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14250   (exit $ac_status); }; } &&
14251          { ac_try='test -s conftest$ac_exeext'
14252   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14253   (eval $ac_try) 2>&5
14254   ac_status=$?
14255   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14256   (exit $ac_status); }; }; then
14257   ac_cv_lib_soname_Xrender=`$ac_cv_path_LDD conftest$ac_exeext | grep libXrender\\.so | sed 's/^.*\(libXrender\.so[^     ]*\).*$/\1/'`
14258   if test "x$ac_cv_lib_soname_Xrender" = "x"
14259   then
14260      ac_cv_lib_soname_Xrender="libXrender.so"
14261   fi
14262 else
14263   echo "$as_me: failed program was:" >&5
14264 sed 's/^/| /' conftest.$ac_ext >&5
14265
14266 ac_cv_lib_soname_Xrender="libXrender.so"
14267 fi
14268 rm -f conftest.err conftest.$ac_objext \
14269       conftest$ac_exeext conftest.$ac_ext
14270   LIBS=$ac_get_soname_save_LIBS
14271 fi
14272 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_Xrender" >&5
14273 echo "${ECHO_T}$ac_cv_lib_soname_Xrender" >&6
14274 if test "x$ac_cv_lib_soname_Xrender" != xNONE
14275 then
14276 cat >>confdefs.h <<_ACEOF
14277 #define SONAME_LIBXRENDER "$ac_cv_lib_soname_Xrender"
14278 _ACEOF
14279 fi
14280
14281 echo "$as_me:$LINENO: checking for -lfreetype soname" >&5
14282 echo $ECHO_N "checking for -lfreetype soname... $ECHO_C" >&6
14283 if test "${ac_cv_lib_soname_freetype+set}" = set; then
14284   echo $ECHO_N "(cached) $ECHO_C" >&6
14285 else
14286   ac_get_soname_save_LIBS=$LIBS
14287 LIBS="-lfreetype $X_LIBS $LIBS"
14288   cat >conftest.$ac_ext <<_ACEOF
14289 /* confdefs.h.  */
14290 _ACEOF
14291 cat confdefs.h >>conftest.$ac_ext
14292 cat >>conftest.$ac_ext <<_ACEOF
14293 /* end confdefs.h.  */
14294
14295 /* Override any gcc2 internal prototype to avoid an error.  */
14296 #ifdef __cplusplus
14297 extern "C"
14298 #endif
14299 /* We use char because int might match the return type of a gcc2
14300    builtin and then its argument prototype would still apply.  */
14301 char FT_Init_FreeType ();
14302 int
14303 main ()
14304 {
14305 FT_Init_FreeType ();
14306   ;
14307   return 0;
14308 }
14309 _ACEOF
14310 rm -f conftest.$ac_objext conftest$ac_exeext
14311 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14312   (eval $ac_link) 2>conftest.er1
14313   ac_status=$?
14314   grep -v '^ *+' conftest.er1 >conftest.err
14315   rm -f conftest.er1
14316   cat conftest.err >&5
14317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14318   (exit $ac_status); } &&
14319          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
14320   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14321   (eval $ac_try) 2>&5
14322   ac_status=$?
14323   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14324   (exit $ac_status); }; } &&
14325          { ac_try='test -s conftest$ac_exeext'
14326   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14327   (eval $ac_try) 2>&5
14328   ac_status=$?
14329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14330   (exit $ac_status); }; }; then
14331   ac_cv_lib_soname_freetype=`$ac_cv_path_LDD conftest$ac_exeext | grep libfreetype\\.so | sed 's/^.*\(libfreetype\.so[^  ]*\).*$/\1/'`
14332   if test "x$ac_cv_lib_soname_freetype" = "x"
14333   then
14334      ac_cv_lib_soname_freetype="libfreetype.so"
14335   fi
14336 else
14337   echo "$as_me: failed program was:" >&5
14338 sed 's/^/| /' conftest.$ac_ext >&5
14339
14340 ac_cv_lib_soname_freetype="libfreetype.so"
14341 fi
14342 rm -f conftest.err conftest.$ac_objext \
14343       conftest$ac_exeext conftest.$ac_ext
14344   LIBS=$ac_get_soname_save_LIBS
14345 fi
14346 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_freetype" >&5
14347 echo "${ECHO_T}$ac_cv_lib_soname_freetype" >&6
14348 if test "x$ac_cv_lib_soname_freetype" != xNONE
14349 then
14350 cat >>confdefs.h <<_ACEOF
14351 #define SONAME_LIBFREETYPE "$ac_cv_lib_soname_freetype"
14352 _ACEOF
14353 fi
14354
14355 echo "$as_me:$LINENO: checking for -lGL soname" >&5
14356 echo $ECHO_N "checking for -lGL soname... $ECHO_C" >&6
14357 if test "${ac_cv_lib_soname_GL+set}" = set; then
14358   echo $ECHO_N "(cached) $ECHO_C" >&6
14359 else
14360   ac_get_soname_save_LIBS=$LIBS
14361 LIBS="-lGL $X_LIBS $X_EXTRA_LIBS $LIBS"
14362   cat >conftest.$ac_ext <<_ACEOF
14363 /* confdefs.h.  */
14364 _ACEOF
14365 cat confdefs.h >>conftest.$ac_ext
14366 cat >>conftest.$ac_ext <<_ACEOF
14367 /* end confdefs.h.  */
14368
14369 /* Override any gcc2 internal prototype to avoid an error.  */
14370 #ifdef __cplusplus
14371 extern "C"
14372 #endif
14373 /* We use char because int might match the return type of a gcc2
14374    builtin and then its argument prototype would still apply.  */
14375 char glXQueryExtension ();
14376 int
14377 main ()
14378 {
14379 glXQueryExtension ();
14380   ;
14381   return 0;
14382 }
14383 _ACEOF
14384 rm -f conftest.$ac_objext conftest$ac_exeext
14385 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14386   (eval $ac_link) 2>conftest.er1
14387   ac_status=$?
14388   grep -v '^ *+' conftest.er1 >conftest.err
14389   rm -f conftest.er1
14390   cat conftest.err >&5
14391   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14392   (exit $ac_status); } &&
14393          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
14394   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14395   (eval $ac_try) 2>&5
14396   ac_status=$?
14397   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14398   (exit $ac_status); }; } &&
14399          { ac_try='test -s conftest$ac_exeext'
14400   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14401   (eval $ac_try) 2>&5
14402   ac_status=$?
14403   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14404   (exit $ac_status); }; }; then
14405   ac_cv_lib_soname_GL=`$ac_cv_path_LDD conftest$ac_exeext | grep libGL\\.so | sed 's/^.*\(libGL\.so[^    ]*\).*$/\1/'`
14406   if test "x$ac_cv_lib_soname_GL" = "x"
14407   then
14408      ac_cv_lib_soname_GL="libGL.so"
14409   fi
14410 else
14411   echo "$as_me: failed program was:" >&5
14412 sed 's/^/| /' conftest.$ac_ext >&5
14413
14414 ac_cv_lib_soname_GL="libGL.so"
14415 fi
14416 rm -f conftest.err conftest.$ac_objext \
14417       conftest$ac_exeext conftest.$ac_ext
14418   LIBS=$ac_get_soname_save_LIBS
14419 fi
14420 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_GL" >&5
14421 echo "${ECHO_T}$ac_cv_lib_soname_GL" >&6
14422 if test "x$ac_cv_lib_soname_GL" != xNONE
14423 then
14424 cat >>confdefs.h <<_ACEOF
14425 #define SONAME_LIBGL "$ac_cv_lib_soname_GL"
14426 _ACEOF
14427 fi
14428
14429 echo "$as_me:$LINENO: checking for -lcups soname" >&5
14430 echo $ECHO_N "checking for -lcups soname... $ECHO_C" >&6
14431 if test "${ac_cv_lib_soname_cups+set}" = set; then
14432   echo $ECHO_N "(cached) $ECHO_C" >&6
14433 else
14434   ac_get_soname_save_LIBS=$LIBS
14435 LIBS="-lcups  $LIBS"
14436   cat >conftest.$ac_ext <<_ACEOF
14437 /* confdefs.h.  */
14438 _ACEOF
14439 cat confdefs.h >>conftest.$ac_ext
14440 cat >>conftest.$ac_ext <<_ACEOF
14441 /* end confdefs.h.  */
14442
14443 /* Override any gcc2 internal prototype to avoid an error.  */
14444 #ifdef __cplusplus
14445 extern "C"
14446 #endif
14447 /* We use char because int might match the return type of a gcc2
14448    builtin and then its argument prototype would still apply.  */
14449 char cupsGetDefault ();
14450 int
14451 main ()
14452 {
14453 cupsGetDefault ();
14454   ;
14455   return 0;
14456 }
14457 _ACEOF
14458 rm -f conftest.$ac_objext conftest$ac_exeext
14459 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14460   (eval $ac_link) 2>conftest.er1
14461   ac_status=$?
14462   grep -v '^ *+' conftest.er1 >conftest.err
14463   rm -f conftest.er1
14464   cat conftest.err >&5
14465   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14466   (exit $ac_status); } &&
14467          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
14468   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14469   (eval $ac_try) 2>&5
14470   ac_status=$?
14471   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14472   (exit $ac_status); }; } &&
14473          { ac_try='test -s conftest$ac_exeext'
14474   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14475   (eval $ac_try) 2>&5
14476   ac_status=$?
14477   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14478   (exit $ac_status); }; }; then
14479   ac_cv_lib_soname_cups=`$ac_cv_path_LDD conftest$ac_exeext | grep libcups\\.so | sed 's/^.*\(libcups\.so[^      ]*\).*$/\1/'`
14480   if test "x$ac_cv_lib_soname_cups" = "x"
14481   then
14482      ac_cv_lib_soname_cups="libcups.so"
14483   fi
14484 else
14485   echo "$as_me: failed program was:" >&5
14486 sed 's/^/| /' conftest.$ac_ext >&5
14487
14488 ac_cv_lib_soname_cups="libcups.so"
14489 fi
14490 rm -f conftest.err conftest.$ac_objext \
14491       conftest$ac_exeext conftest.$ac_ext
14492   LIBS=$ac_get_soname_save_LIBS
14493 fi
14494 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_cups" >&5
14495 echo "${ECHO_T}$ac_cv_lib_soname_cups" >&6
14496 if test "x$ac_cv_lib_soname_cups" != xNONE
14497 then
14498 cat >>confdefs.h <<_ACEOF
14499 #define SONAME_LIBCUPS "$ac_cv_lib_soname_cups"
14500 _ACEOF
14501 fi
14502
14503 echo "$as_me:$LINENO: checking for -ljack soname" >&5
14504 echo $ECHO_N "checking for -ljack soname... $ECHO_C" >&6
14505 if test "${ac_cv_lib_soname_jack+set}" = set; then
14506   echo $ECHO_N "(cached) $ECHO_C" >&6
14507 else
14508   ac_get_soname_save_LIBS=$LIBS
14509 LIBS="-ljack  $LIBS"
14510   cat >conftest.$ac_ext <<_ACEOF
14511 /* confdefs.h.  */
14512 _ACEOF
14513 cat confdefs.h >>conftest.$ac_ext
14514 cat >>conftest.$ac_ext <<_ACEOF
14515 /* end confdefs.h.  */
14516
14517 /* Override any gcc2 internal prototype to avoid an error.  */
14518 #ifdef __cplusplus
14519 extern "C"
14520 #endif
14521 /* We use char because int might match the return type of a gcc2
14522    builtin and then its argument prototype would still apply.  */
14523 char jack_client_new ();
14524 int
14525 main ()
14526 {
14527 jack_client_new ();
14528   ;
14529   return 0;
14530 }
14531 _ACEOF
14532 rm -f conftest.$ac_objext conftest$ac_exeext
14533 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14534   (eval $ac_link) 2>conftest.er1
14535   ac_status=$?
14536   grep -v '^ *+' conftest.er1 >conftest.err
14537   rm -f conftest.er1
14538   cat conftest.err >&5
14539   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14540   (exit $ac_status); } &&
14541          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
14542   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14543   (eval $ac_try) 2>&5
14544   ac_status=$?
14545   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14546   (exit $ac_status); }; } &&
14547          { ac_try='test -s conftest$ac_exeext'
14548   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14549   (eval $ac_try) 2>&5
14550   ac_status=$?
14551   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14552   (exit $ac_status); }; }; then
14553   ac_cv_lib_soname_jack=`$ac_cv_path_LDD conftest$ac_exeext | grep libjack\\.so | sed 's/^.*\(libjack\.so[^      ]*\).*$/\1/'`
14554   if test "x$ac_cv_lib_soname_jack" = "x"
14555   then
14556      ac_cv_lib_soname_jack="libjack.so"
14557   fi
14558 else
14559   echo "$as_me: failed program was:" >&5
14560 sed 's/^/| /' conftest.$ac_ext >&5
14561
14562 ac_cv_lib_soname_jack="libjack.so"
14563 fi
14564 rm -f conftest.err conftest.$ac_objext \
14565       conftest$ac_exeext conftest.$ac_ext
14566   LIBS=$ac_get_soname_save_LIBS
14567 fi
14568 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_jack" >&5
14569 echo "${ECHO_T}$ac_cv_lib_soname_jack" >&6
14570 if test "x$ac_cv_lib_soname_jack" != xNONE
14571 then
14572 cat >>confdefs.h <<_ACEOF
14573 #define SONAME_LIBJACK "$ac_cv_lib_soname_jack"
14574 _ACEOF
14575 fi
14576
14577 echo "$as_me:$LINENO: checking for -lfontconfig soname" >&5
14578 echo $ECHO_N "checking for -lfontconfig soname... $ECHO_C" >&6
14579 if test "${ac_cv_lib_soname_fontconfig+set}" = set; then
14580   echo $ECHO_N "(cached) $ECHO_C" >&6
14581 else
14582   ac_get_soname_save_LIBS=$LIBS
14583 LIBS="-lfontconfig  $LIBS"
14584   cat >conftest.$ac_ext <<_ACEOF
14585 /* confdefs.h.  */
14586 _ACEOF
14587 cat confdefs.h >>conftest.$ac_ext
14588 cat >>conftest.$ac_ext <<_ACEOF
14589 /* end confdefs.h.  */
14590
14591 /* Override any gcc2 internal prototype to avoid an error.  */
14592 #ifdef __cplusplus
14593 extern "C"
14594 #endif
14595 /* We use char because int might match the return type of a gcc2
14596    builtin and then its argument prototype would still apply.  */
14597 char FcInit ();
14598 int
14599 main ()
14600 {
14601 FcInit ();
14602   ;
14603   return 0;
14604 }
14605 _ACEOF
14606 rm -f conftest.$ac_objext conftest$ac_exeext
14607 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14608   (eval $ac_link) 2>conftest.er1
14609   ac_status=$?
14610   grep -v '^ *+' conftest.er1 >conftest.err
14611   rm -f conftest.er1
14612   cat conftest.err >&5
14613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14614   (exit $ac_status); } &&
14615          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
14616   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14617   (eval $ac_try) 2>&5
14618   ac_status=$?
14619   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14620   (exit $ac_status); }; } &&
14621          { ac_try='test -s conftest$ac_exeext'
14622   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14623   (eval $ac_try) 2>&5
14624   ac_status=$?
14625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14626   (exit $ac_status); }; }; then
14627   ac_cv_lib_soname_fontconfig=`$ac_cv_path_LDD conftest$ac_exeext | grep libfontconfig\\.so | sed 's/^.*\(libfontconfig\.so[^    ]*\).*$/\1/'`
14628   if test "x$ac_cv_lib_soname_fontconfig" = "x"
14629   then
14630      ac_cv_lib_soname_fontconfig="libfontconfig.so"
14631   fi
14632 else
14633   echo "$as_me: failed program was:" >&5
14634 sed 's/^/| /' conftest.$ac_ext >&5
14635
14636 ac_cv_lib_soname_fontconfig="libfontconfig.so"
14637 fi
14638 rm -f conftest.err conftest.$ac_objext \
14639       conftest$ac_exeext conftest.$ac_ext
14640   LIBS=$ac_get_soname_save_LIBS
14641 fi
14642 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_fontconfig" >&5
14643 echo "${ECHO_T}$ac_cv_lib_soname_fontconfig" >&6
14644 if test "x$ac_cv_lib_soname_fontconfig" != xNONE
14645 then
14646 cat >>confdefs.h <<_ACEOF
14647 #define SONAME_LIBFONTCONFIG "$ac_cv_lib_soname_fontconfig"
14648 _ACEOF
14649 fi
14650
14651 echo "$as_me:$LINENO: checking for -lssl soname" >&5
14652 echo $ECHO_N "checking for -lssl soname... $ECHO_C" >&6
14653 if test "${ac_cv_lib_soname_ssl+set}" = set; then
14654   echo $ECHO_N "(cached) $ECHO_C" >&6
14655 else
14656   ac_get_soname_save_LIBS=$LIBS
14657 LIBS="-lssl  $LIBS"
14658   cat >conftest.$ac_ext <<_ACEOF
14659 /* confdefs.h.  */
14660 _ACEOF
14661 cat confdefs.h >>conftest.$ac_ext
14662 cat >>conftest.$ac_ext <<_ACEOF
14663 /* end confdefs.h.  */
14664
14665 /* Override any gcc2 internal prototype to avoid an error.  */
14666 #ifdef __cplusplus
14667 extern "C"
14668 #endif
14669 /* We use char because int might match the return type of a gcc2
14670    builtin and then its argument prototype would still apply.  */
14671 char SSL_library_init ();
14672 int
14673 main ()
14674 {
14675 SSL_library_init ();
14676   ;
14677   return 0;
14678 }
14679 _ACEOF
14680 rm -f conftest.$ac_objext conftest$ac_exeext
14681 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14682   (eval $ac_link) 2>conftest.er1
14683   ac_status=$?
14684   grep -v '^ *+' conftest.er1 >conftest.err
14685   rm -f conftest.er1
14686   cat conftest.err >&5
14687   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14688   (exit $ac_status); } &&
14689          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
14690   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14691   (eval $ac_try) 2>&5
14692   ac_status=$?
14693   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14694   (exit $ac_status); }; } &&
14695          { ac_try='test -s conftest$ac_exeext'
14696   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14697   (eval $ac_try) 2>&5
14698   ac_status=$?
14699   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14700   (exit $ac_status); }; }; then
14701   ac_cv_lib_soname_ssl=`$ac_cv_path_LDD conftest$ac_exeext | grep libssl\\.so | sed 's/^.*\(libssl\.so[^         ]*\).*$/\1/'`
14702   if test "x$ac_cv_lib_soname_ssl" = "x"
14703   then
14704      ac_cv_lib_soname_ssl="libssl.so"
14705   fi
14706 else
14707   echo "$as_me: failed program was:" >&5
14708 sed 's/^/| /' conftest.$ac_ext >&5
14709
14710 ac_cv_lib_soname_ssl="libssl.so"
14711 fi
14712 rm -f conftest.err conftest.$ac_objext \
14713       conftest$ac_exeext conftest.$ac_ext
14714   LIBS=$ac_get_soname_save_LIBS
14715 fi
14716 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_ssl" >&5
14717 echo "${ECHO_T}$ac_cv_lib_soname_ssl" >&6
14718 if test "x$ac_cv_lib_soname_ssl" != xNONE
14719 then
14720 cat >>confdefs.h <<_ACEOF
14721 #define SONAME_LIBSSL "$ac_cv_lib_soname_ssl"
14722 _ACEOF
14723 fi
14724
14725 echo "$as_me:$LINENO: checking for -lcrypto soname" >&5
14726 echo $ECHO_N "checking for -lcrypto soname... $ECHO_C" >&6
14727 if test "${ac_cv_lib_soname_crypto+set}" = set; then
14728   echo $ECHO_N "(cached) $ECHO_C" >&6
14729 else
14730   ac_get_soname_save_LIBS=$LIBS
14731 LIBS="-lcrypto  $LIBS"
14732   cat >conftest.$ac_ext <<_ACEOF
14733 /* confdefs.h.  */
14734 _ACEOF
14735 cat confdefs.h >>conftest.$ac_ext
14736 cat >>conftest.$ac_ext <<_ACEOF
14737 /* end confdefs.h.  */
14738
14739 /* Override any gcc2 internal prototype to avoid an error.  */
14740 #ifdef __cplusplus
14741 extern "C"
14742 #endif
14743 /* We use char because int might match the return type of a gcc2
14744    builtin and then its argument prototype would still apply.  */
14745 char BIO_new_socket ();
14746 int
14747 main ()
14748 {
14749 BIO_new_socket ();
14750   ;
14751   return 0;
14752 }
14753 _ACEOF
14754 rm -f conftest.$ac_objext conftest$ac_exeext
14755 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14756   (eval $ac_link) 2>conftest.er1
14757   ac_status=$?
14758   grep -v '^ *+' conftest.er1 >conftest.err
14759   rm -f conftest.er1
14760   cat conftest.err >&5
14761   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14762   (exit $ac_status); } &&
14763          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
14764   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14765   (eval $ac_try) 2>&5
14766   ac_status=$?
14767   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14768   (exit $ac_status); }; } &&
14769          { ac_try='test -s conftest$ac_exeext'
14770   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14771   (eval $ac_try) 2>&5
14772   ac_status=$?
14773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14774   (exit $ac_status); }; }; then
14775   ac_cv_lib_soname_crypto=`$ac_cv_path_LDD conftest$ac_exeext | grep libcrypto\\.so | sed 's/^.*\(libcrypto\.so[^        ]*\).*$/\1/'`
14776   if test "x$ac_cv_lib_soname_crypto" = "x"
14777   then
14778      ac_cv_lib_soname_crypto="libcrypto.so"
14779   fi
14780 else
14781   echo "$as_me: failed program was:" >&5
14782 sed 's/^/| /' conftest.$ac_ext >&5
14783
14784 ac_cv_lib_soname_crypto="libcrypto.so"
14785 fi
14786 rm -f conftest.err conftest.$ac_objext \
14787       conftest$ac_exeext conftest.$ac_ext
14788   LIBS=$ac_get_soname_save_LIBS
14789 fi
14790 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_crypto" >&5
14791 echo "${ECHO_T}$ac_cv_lib_soname_crypto" >&6
14792 if test "x$ac_cv_lib_soname_crypto" != xNONE
14793 then
14794 cat >>confdefs.h <<_ACEOF
14795 #define SONAME_LIBCRYPTO "$ac_cv_lib_soname_crypto"
14796 _ACEOF
14797 fi
14798
14799 echo "$as_me:$LINENO: checking for -lncurses soname" >&5
14800 echo $ECHO_N "checking for -lncurses soname... $ECHO_C" >&6
14801 if test "${ac_cv_lib_soname_ncurses+set}" = set; then
14802   echo $ECHO_N "(cached) $ECHO_C" >&6
14803 else
14804   ac_get_soname_save_LIBS=$LIBS
14805 LIBS="-lncurses  $LIBS"
14806   cat >conftest.$ac_ext <<_ACEOF
14807 /* confdefs.h.  */
14808 _ACEOF
14809 cat confdefs.h >>conftest.$ac_ext
14810 cat >>conftest.$ac_ext <<_ACEOF
14811 /* end confdefs.h.  */
14812
14813 /* Override any gcc2 internal prototype to avoid an error.  */
14814 #ifdef __cplusplus
14815 extern "C"
14816 #endif
14817 /* We use char because int might match the return type of a gcc2
14818    builtin and then its argument prototype would still apply.  */
14819 char waddch ();
14820 int
14821 main ()
14822 {
14823 waddch ();
14824   ;
14825   return 0;
14826 }
14827 _ACEOF
14828 rm -f conftest.$ac_objext conftest$ac_exeext
14829 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14830   (eval $ac_link) 2>conftest.er1
14831   ac_status=$?
14832   grep -v '^ *+' conftest.er1 >conftest.err
14833   rm -f conftest.er1
14834   cat conftest.err >&5
14835   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14836   (exit $ac_status); } &&
14837          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
14838   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14839   (eval $ac_try) 2>&5
14840   ac_status=$?
14841   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14842   (exit $ac_status); }; } &&
14843          { ac_try='test -s conftest$ac_exeext'
14844   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14845   (eval $ac_try) 2>&5
14846   ac_status=$?
14847   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14848   (exit $ac_status); }; }; then
14849   ac_cv_lib_soname_ncurses=`$ac_cv_path_LDD conftest$ac_exeext | grep libncurses\\.so | sed 's/^.*\(libncurses\.so[^     ]*\).*$/\1/'`
14850   if test "x$ac_cv_lib_soname_ncurses" = "x"
14851   then
14852      ac_cv_lib_soname_ncurses="libncurses.so"
14853   fi
14854 else
14855   echo "$as_me: failed program was:" >&5
14856 sed 's/^/| /' conftest.$ac_ext >&5
14857
14858 ac_cv_lib_soname_ncurses="libncurses.so"
14859 fi
14860 rm -f conftest.err conftest.$ac_objext \
14861       conftest$ac_exeext conftest.$ac_ext
14862   LIBS=$ac_get_soname_save_LIBS
14863 fi
14864 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_ncurses" >&5
14865 echo "${ECHO_T}$ac_cv_lib_soname_ncurses" >&6
14866 if test "x$ac_cv_lib_soname_ncurses" != xNONE
14867 then
14868 cat >>confdefs.h <<_ACEOF
14869 #define SONAME_LIBNCURSES "$ac_cv_lib_soname_ncurses"
14870 _ACEOF
14871 fi
14872
14873 echo "$as_me:$LINENO: checking for -lcurses soname" >&5
14874 echo $ECHO_N "checking for -lcurses soname... $ECHO_C" >&6
14875 if test "${ac_cv_lib_soname_curses+set}" = set; then
14876   echo $ECHO_N "(cached) $ECHO_C" >&6
14877 else
14878   ac_get_soname_save_LIBS=$LIBS
14879 LIBS="-lcurses  $LIBS"
14880   cat >conftest.$ac_ext <<_ACEOF
14881 /* confdefs.h.  */
14882 _ACEOF
14883 cat confdefs.h >>conftest.$ac_ext
14884 cat >>conftest.$ac_ext <<_ACEOF
14885 /* end confdefs.h.  */
14886
14887 /* Override any gcc2 internal prototype to avoid an error.  */
14888 #ifdef __cplusplus
14889 extern "C"
14890 #endif
14891 /* We use char because int might match the return type of a gcc2
14892    builtin and then its argument prototype would still apply.  */
14893 char waddch ();
14894 int
14895 main ()
14896 {
14897 waddch ();
14898   ;
14899   return 0;
14900 }
14901 _ACEOF
14902 rm -f conftest.$ac_objext conftest$ac_exeext
14903 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14904   (eval $ac_link) 2>conftest.er1
14905   ac_status=$?
14906   grep -v '^ *+' conftest.er1 >conftest.err
14907   rm -f conftest.er1
14908   cat conftest.err >&5
14909   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14910   (exit $ac_status); } &&
14911          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
14912   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14913   (eval $ac_try) 2>&5
14914   ac_status=$?
14915   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14916   (exit $ac_status); }; } &&
14917          { ac_try='test -s conftest$ac_exeext'
14918   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14919   (eval $ac_try) 2>&5
14920   ac_status=$?
14921   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14922   (exit $ac_status); }; }; then
14923   ac_cv_lib_soname_curses=`$ac_cv_path_LDD conftest$ac_exeext | grep libcurses\\.so | sed 's/^.*\(libcurses\.so[^        ]*\).*$/\1/'`
14924   if test "x$ac_cv_lib_soname_curses" = "x"
14925   then
14926      ac_cv_lib_soname_curses="libcurses.so"
14927   fi
14928 else
14929   echo "$as_me: failed program was:" >&5
14930 sed 's/^/| /' conftest.$ac_ext >&5
14931
14932 ac_cv_lib_soname_curses="libcurses.so"
14933 fi
14934 rm -f conftest.err conftest.$ac_objext \
14935       conftest$ac_exeext conftest.$ac_ext
14936   LIBS=$ac_get_soname_save_LIBS
14937 fi
14938 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_curses" >&5
14939 echo "${ECHO_T}$ac_cv_lib_soname_curses" >&6
14940 if test "x$ac_cv_lib_soname_curses" != xNONE
14941 then
14942 cat >>confdefs.h <<_ACEOF
14943 #define SONAME_LIBCURSES "$ac_cv_lib_soname_curses"
14944 _ACEOF
14945 fi
14946 fi
14947
14948
14949
14950 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
14951 # for constant arguments.  Useless!
14952 echo "$as_me:$LINENO: checking for working alloca.h" >&5
14953 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
14954 if test "${ac_cv_working_alloca_h+set}" = set; then
14955   echo $ECHO_N "(cached) $ECHO_C" >&6
14956 else
14957   cat >conftest.$ac_ext <<_ACEOF
14958 /* confdefs.h.  */
14959 _ACEOF
14960 cat confdefs.h >>conftest.$ac_ext
14961 cat >>conftest.$ac_ext <<_ACEOF
14962 /* end confdefs.h.  */
14963 #include <alloca.h>
14964 int
14965 main ()
14966 {
14967 char *p = (char *) alloca (2 * sizeof (int));
14968   ;
14969   return 0;
14970 }
14971 _ACEOF
14972 rm -f conftest.$ac_objext conftest$ac_exeext
14973 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14974   (eval $ac_link) 2>conftest.er1
14975   ac_status=$?
14976   grep -v '^ *+' conftest.er1 >conftest.err
14977   rm -f conftest.er1
14978   cat conftest.err >&5
14979   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14980   (exit $ac_status); } &&
14981          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
14982   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14983   (eval $ac_try) 2>&5
14984   ac_status=$?
14985   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14986   (exit $ac_status); }; } &&
14987          { ac_try='test -s conftest$ac_exeext'
14988   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14989   (eval $ac_try) 2>&5
14990   ac_status=$?
14991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14992   (exit $ac_status); }; }; then
14993   ac_cv_working_alloca_h=yes
14994 else
14995   echo "$as_me: failed program was:" >&5
14996 sed 's/^/| /' conftest.$ac_ext >&5
14997
14998 ac_cv_working_alloca_h=no
14999 fi
15000 rm -f conftest.err conftest.$ac_objext \
15001       conftest$ac_exeext conftest.$ac_ext
15002 fi
15003 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
15004 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
15005 if test $ac_cv_working_alloca_h = yes; then
15006
15007 cat >>confdefs.h <<\_ACEOF
15008 #define HAVE_ALLOCA_H 1
15009 _ACEOF
15010
15011 fi
15012
15013 echo "$as_me:$LINENO: checking for alloca" >&5
15014 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
15015 if test "${ac_cv_func_alloca_works+set}" = set; then
15016   echo $ECHO_N "(cached) $ECHO_C" >&6
15017 else
15018   cat >conftest.$ac_ext <<_ACEOF
15019 /* confdefs.h.  */
15020 _ACEOF
15021 cat confdefs.h >>conftest.$ac_ext
15022 cat >>conftest.$ac_ext <<_ACEOF
15023 /* end confdefs.h.  */
15024 #ifdef __GNUC__
15025 # define alloca __builtin_alloca
15026 #else
15027 # ifdef _MSC_VER
15028 #  include <malloc.h>
15029 #  define alloca _alloca
15030 # else
15031 #  if HAVE_ALLOCA_H
15032 #   include <alloca.h>
15033 #  else
15034 #   ifdef _AIX
15035  #pragma alloca
15036 #   else
15037 #    ifndef alloca /* predefined by HP cc +Olibcalls */
15038 char *alloca ();
15039 #    endif
15040 #   endif
15041 #  endif
15042 # endif
15043 #endif
15044
15045 int
15046 main ()
15047 {
15048 char *p = (char *) alloca (1);
15049   ;
15050   return 0;
15051 }
15052 _ACEOF
15053 rm -f conftest.$ac_objext conftest$ac_exeext
15054 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15055   (eval $ac_link) 2>conftest.er1
15056   ac_status=$?
15057   grep -v '^ *+' conftest.er1 >conftest.err
15058   rm -f conftest.er1
15059   cat conftest.err >&5
15060   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15061   (exit $ac_status); } &&
15062          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
15063   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15064   (eval $ac_try) 2>&5
15065   ac_status=$?
15066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15067   (exit $ac_status); }; } &&
15068          { ac_try='test -s conftest$ac_exeext'
15069   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15070   (eval $ac_try) 2>&5
15071   ac_status=$?
15072   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15073   (exit $ac_status); }; }; then
15074   ac_cv_func_alloca_works=yes
15075 else
15076   echo "$as_me: failed program was:" >&5
15077 sed 's/^/| /' conftest.$ac_ext >&5
15078
15079 ac_cv_func_alloca_works=no
15080 fi
15081 rm -f conftest.err conftest.$ac_objext \
15082       conftest$ac_exeext conftest.$ac_ext
15083 fi
15084 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
15085 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
15086
15087 if test $ac_cv_func_alloca_works = yes; then
15088
15089 cat >>confdefs.h <<\_ACEOF
15090 #define HAVE_ALLOCA 1
15091 _ACEOF
15092
15093 else
15094   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
15095 # that cause trouble.  Some versions do not even contain alloca or
15096 # contain a buggy version.  If you still want to use their alloca,
15097 # use ar to extract alloca.o from them instead of compiling alloca.c.
15098
15099 ALLOCA=alloca.$ac_objext
15100
15101 cat >>confdefs.h <<\_ACEOF
15102 #define C_ALLOCA 1
15103 _ACEOF
15104
15105
15106 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
15107 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
15108 if test "${ac_cv_os_cray+set}" = set; then
15109   echo $ECHO_N "(cached) $ECHO_C" >&6
15110 else
15111   cat >conftest.$ac_ext <<_ACEOF
15112 /* confdefs.h.  */
15113 _ACEOF
15114 cat confdefs.h >>conftest.$ac_ext
15115 cat >>conftest.$ac_ext <<_ACEOF
15116 /* end confdefs.h.  */
15117 #if defined(CRAY) && ! defined(CRAY2)
15118 webecray
15119 #else
15120 wenotbecray
15121 #endif
15122
15123 _ACEOF
15124 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15125   $EGREP "webecray" >/dev/null 2>&1; then
15126   ac_cv_os_cray=yes
15127 else
15128   ac_cv_os_cray=no
15129 fi
15130 rm -f conftest*
15131
15132 fi
15133 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
15134 echo "${ECHO_T}$ac_cv_os_cray" >&6
15135 if test $ac_cv_os_cray = yes; then
15136   for ac_func in _getb67 GETB67 getb67; do
15137     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15138 echo "$as_me:$LINENO: checking for $ac_func" >&5
15139 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15140 if eval "test \"\${$as_ac_var+set}\" = set"; then
15141   echo $ECHO_N "(cached) $ECHO_C" >&6
15142 else
15143   cat >conftest.$ac_ext <<_ACEOF
15144 /* confdefs.h.  */
15145 _ACEOF
15146 cat confdefs.h >>conftest.$ac_ext
15147 cat >>conftest.$ac_ext <<_ACEOF
15148 /* end confdefs.h.  */
15149 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15150    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15151 #define $ac_func innocuous_$ac_func
15152
15153 /* System header to define __stub macros and hopefully few prototypes,
15154     which can conflict with char $ac_func (); below.
15155     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15156     <limits.h> exists even on freestanding compilers.  */
15157
15158 #ifdef __STDC__
15159 # include <limits.h>
15160 #else
15161 # include <assert.h>
15162 #endif
15163
15164 #undef $ac_func
15165
15166 /* Override any gcc2 internal prototype to avoid an error.  */
15167 #ifdef __cplusplus
15168 extern "C"
15169 {
15170 #endif
15171 /* We use char because int might match the return type of a gcc2
15172    builtin and then its argument prototype would still apply.  */
15173 char $ac_func ();
15174 /* The GNU C library defines this for functions which it implements
15175     to always fail with ENOSYS.  Some functions are actually named
15176     something starting with __ and the normal name is an alias.  */
15177 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15178 choke me
15179 #else
15180 char (*f) () = $ac_func;
15181 #endif
15182 #ifdef __cplusplus
15183 }
15184 #endif
15185
15186 int
15187 main ()
15188 {
15189 return f != $ac_func;
15190   ;
15191   return 0;
15192 }
15193 _ACEOF
15194 rm -f conftest.$ac_objext conftest$ac_exeext
15195 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15196   (eval $ac_link) 2>conftest.er1
15197   ac_status=$?
15198   grep -v '^ *+' conftest.er1 >conftest.err
15199   rm -f conftest.er1
15200   cat conftest.err >&5
15201   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15202   (exit $ac_status); } &&
15203          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
15204   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15205   (eval $ac_try) 2>&5
15206   ac_status=$?
15207   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15208   (exit $ac_status); }; } &&
15209          { ac_try='test -s conftest$ac_exeext'
15210   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15211   (eval $ac_try) 2>&5
15212   ac_status=$?
15213   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15214   (exit $ac_status); }; }; then
15215   eval "$as_ac_var=yes"
15216 else
15217   echo "$as_me: failed program was:" >&5
15218 sed 's/^/| /' conftest.$ac_ext >&5
15219
15220 eval "$as_ac_var=no"
15221 fi
15222 rm -f conftest.err conftest.$ac_objext \
15223       conftest$ac_exeext conftest.$ac_ext
15224 fi
15225 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15226 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15227 if test `eval echo '${'$as_ac_var'}'` = yes; then
15228
15229 cat >>confdefs.h <<_ACEOF
15230 #define CRAY_STACKSEG_END $ac_func
15231 _ACEOF
15232
15233     break
15234 fi
15235
15236   done
15237 fi
15238
15239 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
15240 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
15241 if test "${ac_cv_c_stack_direction+set}" = set; then
15242   echo $ECHO_N "(cached) $ECHO_C" >&6
15243 else
15244   if test "$cross_compiling" = yes; then
15245   ac_cv_c_stack_direction=0
15246 else
15247   cat >conftest.$ac_ext <<_ACEOF
15248 /* confdefs.h.  */
15249 _ACEOF
15250 cat confdefs.h >>conftest.$ac_ext
15251 cat >>conftest.$ac_ext <<_ACEOF
15252 /* end confdefs.h.  */
15253 int
15254 find_stack_direction ()
15255 {
15256   static char *addr = 0;
15257   auto char dummy;
15258   if (addr == 0)
15259     {
15260       addr = &dummy;
15261       return find_stack_direction ();
15262     }
15263   else
15264     return (&dummy > addr) ? 1 : -1;
15265 }
15266
15267 int
15268 main ()
15269 {
15270   exit (find_stack_direction () < 0);
15271 }
15272 _ACEOF
15273 rm -f conftest$ac_exeext
15274 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15275   (eval $ac_link) 2>&5
15276   ac_status=$?
15277   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15278   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15279   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15280   (eval $ac_try) 2>&5
15281   ac_status=$?
15282   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15283   (exit $ac_status); }; }; then
15284   ac_cv_c_stack_direction=1
15285 else
15286   echo "$as_me: program exited with status $ac_status" >&5
15287 echo "$as_me: failed program was:" >&5
15288 sed 's/^/| /' conftest.$ac_ext >&5
15289
15290 ( exit $ac_status )
15291 ac_cv_c_stack_direction=-1
15292 fi
15293 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15294 fi
15295 fi
15296 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
15297 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
15298
15299 cat >>confdefs.h <<_ACEOF
15300 #define STACK_DIRECTION $ac_cv_c_stack_direction
15301 _ACEOF
15302
15303
15304 fi
15305
15306
15307
15308
15309
15310
15311
15312
15313
15314
15315
15316
15317
15318
15319
15320
15321
15322
15323
15324
15325
15326
15327
15328
15329
15330
15331
15332
15333
15334
15335
15336
15337
15338
15339
15340
15341
15342
15343
15344
15345
15346
15347
15348
15349
15350
15351
15352
15353
15354
15355
15356
15357
15358 for ac_func in \
15359         _lwp_create \
15360         _lwp_self \
15361         _pclose \
15362         _popen \
15363         _snprintf \
15364         _spawnvp \
15365         _stricmp \
15366         _strnicmp \
15367         _vsnprintf \
15368         chsize \
15369         clone \
15370         finite \
15371         fpclass \
15372         ftruncate \
15373         ftruncate64 \
15374         getnetbyaddr \
15375         getnetbyname \
15376         getopt_long \
15377         getpagesize \
15378         getprotobyname \
15379         getprotobynumber \
15380         getpwuid \
15381         getservbyport \
15382         gettid \
15383         gettimeofday \
15384         inet_network \
15385         lseek64 \
15386         lstat \
15387         memmove \
15388         mmap \
15389         pclose \
15390         popen \
15391         pread \
15392         pwrite \
15393         rfork \
15394         select \
15395         sendmsg \
15396         settimeofday \
15397         sigaltstack \
15398         snprintf \
15399         spawnvp \
15400         statfs \
15401         strcasecmp \
15402         strerror \
15403         strncasecmp \
15404         tcgetattr \
15405         timegm \
15406         usleep \
15407         vfscanf \
15408         vsnprintf \
15409         wait4 \
15410         waitpid \
15411
15412 do
15413 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15414 echo "$as_me:$LINENO: checking for $ac_func" >&5
15415 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15416 if eval "test \"\${$as_ac_var+set}\" = set"; then
15417   echo $ECHO_N "(cached) $ECHO_C" >&6
15418 else
15419   cat >conftest.$ac_ext <<_ACEOF
15420 /* confdefs.h.  */
15421 _ACEOF
15422 cat confdefs.h >>conftest.$ac_ext
15423 cat >>conftest.$ac_ext <<_ACEOF
15424 /* end confdefs.h.  */
15425 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15426    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15427 #define $ac_func innocuous_$ac_func
15428
15429 /* System header to define __stub macros and hopefully few prototypes,
15430     which can conflict with char $ac_func (); below.
15431     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15432     <limits.h> exists even on freestanding compilers.  */
15433
15434 #ifdef __STDC__
15435 # include <limits.h>
15436 #else
15437 # include <assert.h>
15438 #endif
15439
15440 #undef $ac_func
15441
15442 /* Override any gcc2 internal prototype to avoid an error.  */
15443 #ifdef __cplusplus
15444 extern "C"
15445 {
15446 #endif
15447 /* We use char because int might match the return type of a gcc2
15448    builtin and then its argument prototype would still apply.  */
15449 char $ac_func ();
15450 /* The GNU C library defines this for functions which it implements
15451     to always fail with ENOSYS.  Some functions are actually named
15452     something starting with __ and the normal name is an alias.  */
15453 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15454 choke me
15455 #else
15456 char (*f) () = $ac_func;
15457 #endif
15458 #ifdef __cplusplus
15459 }
15460 #endif
15461
15462 int
15463 main ()
15464 {
15465 return f != $ac_func;
15466   ;
15467   return 0;
15468 }
15469 _ACEOF
15470 rm -f conftest.$ac_objext conftest$ac_exeext
15471 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15472   (eval $ac_link) 2>conftest.er1
15473   ac_status=$?
15474   grep -v '^ *+' conftest.er1 >conftest.err
15475   rm -f conftest.er1
15476   cat conftest.err >&5
15477   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15478   (exit $ac_status); } &&
15479          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
15480   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15481   (eval $ac_try) 2>&5
15482   ac_status=$?
15483   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15484   (exit $ac_status); }; } &&
15485          { ac_try='test -s conftest$ac_exeext'
15486   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15487   (eval $ac_try) 2>&5
15488   ac_status=$?
15489   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15490   (exit $ac_status); }; }; then
15491   eval "$as_ac_var=yes"
15492 else
15493   echo "$as_me: failed program was:" >&5
15494 sed 's/^/| /' conftest.$ac_ext >&5
15495
15496 eval "$as_ac_var=no"
15497 fi
15498 rm -f conftest.err conftest.$ac_objext \
15499       conftest$ac_exeext conftest.$ac_ext
15500 fi
15501 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15502 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15503 if test `eval echo '${'$as_ac_var'}'` = yes; then
15504   cat >>confdefs.h <<_ACEOF
15505 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15506 _ACEOF
15507
15508 fi
15509 done
15510
15511
15512
15513
15514
15515
15516
15517
15518
15519
15520
15521
15522
15523
15524
15525
15526
15527
15528
15529
15530
15531
15532
15533
15534
15535
15536
15537
15538
15539
15540
15541
15542
15543
15544
15545
15546
15547
15548
15549
15550
15551
15552
15553
15554
15555
15556
15557
15558
15559
15560
15561
15562
15563
15564
15565
15566
15567
15568
15569
15570
15571
15572
15573
15574
15575
15576
15577
15578
15579
15580
15581
15582
15583
15584
15585
15586
15587
15588
15589
15590
15591
15592
15593 for ac_header in \
15594         arpa/inet.h \
15595         arpa/nameser.h \
15596         cups/cups.h \
15597         direct.h \
15598         elf.h \
15599         float.h \
15600         fontconfig/fontconfig.h \
15601         getopt.h \
15602         ieeefp.h \
15603         io.h \
15604         jack/jack.h \
15605         libio.h \
15606         libutil.h \
15607         link.h \
15608         linux/cdrom.h \
15609         linux/hdreg.h \
15610         linux/input.h \
15611         linux/joystick.h \
15612         linux/major.h \
15613         linux/param.h \
15614         linux/serial.h \
15615         linux/ucdrom.h \
15616         machine/cpu.h \
15617         netdb.h \
15618         netinet/in.h \
15619         netinet/in_systm.h \
15620         netinet/tcp.h \
15621         netinet/tcp_fsm.h \
15622         openssl/ssl.h \
15623         process.h \
15624         pthread.h \
15625         pty.h \
15626         pwd.h \
15627         regex.h \
15628         sched.h \
15629         scsi/sg.h \
15630         scsi/scsi.h \
15631         scsi/scsi_ioctl.h \
15632         socket.h \
15633         stdint.h \
15634         strings.h \
15635         sys/cdio.h \
15636         sys/errno.h \
15637         sys/file.h \
15638         sys/filio.h \
15639         sys/inttypes.h \
15640         sys/ioctl.h \
15641         sys/ipc.h \
15642         sys/link.h \
15643         sys/lwp.h \
15644         sys/mman.h \
15645         sys/modem.h \
15646         sys/msg.h \
15647         sys/param.h \
15648         sys/poll.h \
15649         sys/ptrace.h \
15650         sys/reg.h \
15651         sys/scsiio.h \
15652         sys/shm.h \
15653         sys/signal.h \
15654         sys/socket.h \
15655         sys/sockio.h \
15656         sys/statfs.h \
15657         sys/strtio.h \
15658         sys/syscall.h \
15659         sys/sysctl.h \
15660         sys/time.h \
15661         sys/times.h \
15662         sys/uio.h \
15663         sys/un.h \
15664         sys/v86.h \
15665         sys/v86intr.h \
15666         sys/vfs.h \
15667         sys/vm86.h \
15668         sys/wait.h \
15669         syscall.h \
15670         termios.h \
15671         unistd.h \
15672         utime.h \
15673         valgrind/memcheck.h
15674
15675 do
15676 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15677 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15678   echo "$as_me:$LINENO: checking for $ac_header" >&5
15679 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15680 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15681   echo $ECHO_N "(cached) $ECHO_C" >&6
15682 fi
15683 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15684 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15685 else
15686   # Is the header compilable?
15687 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15688 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15689 cat >conftest.$ac_ext <<_ACEOF
15690 /* confdefs.h.  */
15691 _ACEOF
15692 cat confdefs.h >>conftest.$ac_ext
15693 cat >>conftest.$ac_ext <<_ACEOF
15694 /* end confdefs.h.  */
15695 $ac_includes_default
15696 #include <$ac_header>
15697 _ACEOF
15698 rm -f conftest.$ac_objext
15699 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15700   (eval $ac_compile) 2>conftest.er1
15701   ac_status=$?
15702   grep -v '^ *+' conftest.er1 >conftest.err
15703   rm -f conftest.er1
15704   cat conftest.err >&5
15705   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15706   (exit $ac_status); } &&
15707          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
15708   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15709   (eval $ac_try) 2>&5
15710   ac_status=$?
15711   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15712   (exit $ac_status); }; } &&
15713          { ac_try='test -s conftest.$ac_objext'
15714   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15715   (eval $ac_try) 2>&5
15716   ac_status=$?
15717   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15718   (exit $ac_status); }; }; then
15719   ac_header_compiler=yes
15720 else
15721   echo "$as_me: failed program was:" >&5
15722 sed 's/^/| /' conftest.$ac_ext >&5
15723
15724 ac_header_compiler=no
15725 fi
15726 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15727 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15728 echo "${ECHO_T}$ac_header_compiler" >&6
15729
15730 # Is the header present?
15731 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15732 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15733 cat >conftest.$ac_ext <<_ACEOF
15734 /* confdefs.h.  */
15735 _ACEOF
15736 cat confdefs.h >>conftest.$ac_ext
15737 cat >>conftest.$ac_ext <<_ACEOF
15738 /* end confdefs.h.  */
15739 #include <$ac_header>
15740 _ACEOF
15741 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15742   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15743   ac_status=$?
15744   grep -v '^ *+' conftest.er1 >conftest.err
15745   rm -f conftest.er1
15746   cat conftest.err >&5
15747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15748   (exit $ac_status); } >/dev/null; then
15749   if test -s conftest.err; then
15750     ac_cpp_err=$ac_c_preproc_warn_flag
15751     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15752   else
15753     ac_cpp_err=
15754   fi
15755 else
15756   ac_cpp_err=yes
15757 fi
15758 if test -z "$ac_cpp_err"; then
15759   ac_header_preproc=yes
15760 else
15761   echo "$as_me: failed program was:" >&5
15762 sed 's/^/| /' conftest.$ac_ext >&5
15763
15764   ac_header_preproc=no
15765 fi
15766 rm -f conftest.err conftest.$ac_ext
15767 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15768 echo "${ECHO_T}$ac_header_preproc" >&6
15769
15770 # So?  What about this header?
15771 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15772   yes:no: )
15773     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15774 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15775     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15776 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15777     ac_header_preproc=yes
15778     ;;
15779   no:yes:* )
15780     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15781 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15782     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15783 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15784     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15785 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15786     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15787 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15788     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15789 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15790     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15791 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15792     (
15793       cat <<\_ASBOX
15794 ## ------------------------------------ ##
15795 ## Report this to wine-devel@winehq.org ##
15796 ## ------------------------------------ ##
15797 _ASBOX
15798     ) |
15799       sed "s/^/$as_me: WARNING:     /" >&2
15800     ;;
15801 esac
15802 echo "$as_me:$LINENO: checking for $ac_header" >&5
15803 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15804 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15805   echo $ECHO_N "(cached) $ECHO_C" >&6
15806 else
15807   eval "$as_ac_Header=\$ac_header_preproc"
15808 fi
15809 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15810 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15811
15812 fi
15813 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15814   cat >>confdefs.h <<_ACEOF
15815 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15816 _ACEOF
15817
15818 fi
15819
15820 done
15821
15822 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
15823 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
15824 if test "${ac_cv_header_stat_broken+set}" = set; then
15825   echo $ECHO_N "(cached) $ECHO_C" >&6
15826 else
15827   cat >conftest.$ac_ext <<_ACEOF
15828 /* confdefs.h.  */
15829 _ACEOF
15830 cat confdefs.h >>conftest.$ac_ext
15831 cat >>conftest.$ac_ext <<_ACEOF
15832 /* end confdefs.h.  */
15833 #include <sys/types.h>
15834 #include <sys/stat.h>
15835
15836 #if defined(S_ISBLK) && defined(S_IFDIR)
15837 # if S_ISBLK (S_IFDIR)
15838 You lose.
15839 # endif
15840 #endif
15841
15842 #if defined(S_ISBLK) && defined(S_IFCHR)
15843 # if S_ISBLK (S_IFCHR)
15844 You lose.
15845 # endif
15846 #endif
15847
15848 #if defined(S_ISLNK) && defined(S_IFREG)
15849 # if S_ISLNK (S_IFREG)
15850 You lose.
15851 # endif
15852 #endif
15853
15854 #if defined(S_ISSOCK) && defined(S_IFREG)
15855 # if S_ISSOCK (S_IFREG)
15856 You lose.
15857 # endif
15858 #endif
15859
15860 _ACEOF
15861 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15862   $EGREP "You lose" >/dev/null 2>&1; then
15863   ac_cv_header_stat_broken=yes
15864 else
15865   ac_cv_header_stat_broken=no
15866 fi
15867 rm -f conftest*
15868
15869 fi
15870 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
15871 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
15872 if test $ac_cv_header_stat_broken = yes; then
15873
15874 cat >>confdefs.h <<\_ACEOF
15875 #define STAT_MACROS_BROKEN 1
15876 _ACEOF
15877
15878 fi
15879
15880
15881
15882
15883
15884 for ac_header in sys/mount.h sys/user.h
15885 do
15886 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15887 echo "$as_me:$LINENO: checking for $ac_header" >&5
15888 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15889 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15890   echo $ECHO_N "(cached) $ECHO_C" >&6
15891 else
15892   cat >conftest.$ac_ext <<_ACEOF
15893 /* confdefs.h.  */
15894 _ACEOF
15895 cat confdefs.h >>conftest.$ac_ext
15896 cat >>conftest.$ac_ext <<_ACEOF
15897 /* end confdefs.h.  */
15898 #include <sys/types.h>
15899      #if HAVE_SYS_PARAM_H
15900      # include <sys/param.h>
15901      #endif
15902
15903 #include <$ac_header>
15904 _ACEOF
15905 rm -f conftest.$ac_objext
15906 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15907   (eval $ac_compile) 2>conftest.er1
15908   ac_status=$?
15909   grep -v '^ *+' conftest.er1 >conftest.err
15910   rm -f conftest.er1
15911   cat conftest.err >&5
15912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15913   (exit $ac_status); } &&
15914          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
15915   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15916   (eval $ac_try) 2>&5
15917   ac_status=$?
15918   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15919   (exit $ac_status); }; } &&
15920          { ac_try='test -s conftest.$ac_objext'
15921   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15922   (eval $ac_try) 2>&5
15923   ac_status=$?
15924   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15925   (exit $ac_status); }; }; then
15926   eval "$as_ac_Header=yes"
15927 else
15928   echo "$as_me: failed program was:" >&5
15929 sed 's/^/| /' conftest.$ac_ext >&5
15930
15931 eval "$as_ac_Header=no"
15932 fi
15933 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15934 fi
15935 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15936 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15937 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15938   cat >>confdefs.h <<_ACEOF
15939 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15940 _ACEOF
15941
15942 fi
15943
15944 done
15945
15946
15947
15948
15949
15950
15951
15952 for ac_header in net/if.h net/if_arp.h net/if_dl.h net/if_types.h net/route.h
15953 do
15954 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15955 echo "$as_me:$LINENO: checking for $ac_header" >&5
15956 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15957 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15958   echo $ECHO_N "(cached) $ECHO_C" >&6
15959 else
15960   cat >conftest.$ac_ext <<_ACEOF
15961 /* confdefs.h.  */
15962 _ACEOF
15963 cat confdefs.h >>conftest.$ac_ext
15964 cat >>conftest.$ac_ext <<_ACEOF
15965 /* end confdefs.h.  */
15966 #include <sys/types.h>
15967      #if HAVE_SYS_SOCKET_H
15968      # include <sys/socket.h>
15969      #endif
15970
15971 #include <$ac_header>
15972 _ACEOF
15973 rm -f conftest.$ac_objext
15974 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15975   (eval $ac_compile) 2>conftest.er1
15976   ac_status=$?
15977   grep -v '^ *+' conftest.er1 >conftest.err
15978   rm -f conftest.er1
15979   cat conftest.err >&5
15980   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15981   (exit $ac_status); } &&
15982          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
15983   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15984   (eval $ac_try) 2>&5
15985   ac_status=$?
15986   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15987   (exit $ac_status); }; } &&
15988          { ac_try='test -s conftest.$ac_objext'
15989   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15990   (eval $ac_try) 2>&5
15991   ac_status=$?
15992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15993   (exit $ac_status); }; }; then
15994   eval "$as_ac_Header=yes"
15995 else
15996   echo "$as_me: failed program was:" >&5
15997 sed 's/^/| /' conftest.$ac_ext >&5
15998
15999 eval "$as_ac_Header=no"
16000 fi
16001 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16002 fi
16003 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16004 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16005 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16006   cat >>confdefs.h <<_ACEOF
16007 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16008 _ACEOF
16009
16010 fi
16011
16012 done
16013
16014
16015
16016 for ac_header in resolv.h
16017 do
16018 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16019 echo "$as_me:$LINENO: checking for $ac_header" >&5
16020 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16021 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16022   echo $ECHO_N "(cached) $ECHO_C" >&6
16023 else
16024   cat >conftest.$ac_ext <<_ACEOF
16025 /* confdefs.h.  */
16026 _ACEOF
16027 cat confdefs.h >>conftest.$ac_ext
16028 cat >>conftest.$ac_ext <<_ACEOF
16029 /* end confdefs.h.  */
16030 #include <sys/types.h>
16031      #if HAVE_SYS_SOCKET_H
16032      # include <sys/socket.h>
16033      #endif
16034      #if HAVE_NETINET_IN_H
16035      # include <netinet/in.h>
16036      #endif
16037      #if HAVE_ARPA_NAMESER_H
16038      # include <arpa/nameser.h>
16039      #endif
16040
16041 #include <$ac_header>
16042 _ACEOF
16043 rm -f conftest.$ac_objext
16044 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16045   (eval $ac_compile) 2>conftest.er1
16046   ac_status=$?
16047   grep -v '^ *+' conftest.er1 >conftest.err
16048   rm -f conftest.er1
16049   cat conftest.err >&5
16050   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16051   (exit $ac_status); } &&
16052          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
16053   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16054   (eval $ac_try) 2>&5
16055   ac_status=$?
16056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16057   (exit $ac_status); }; } &&
16058          { ac_try='test -s conftest.$ac_objext'
16059   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16060   (eval $ac_try) 2>&5
16061   ac_status=$?
16062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16063   (exit $ac_status); }; }; then
16064   eval "$as_ac_Header=yes"
16065 else
16066   echo "$as_me: failed program was:" >&5
16067 sed 's/^/| /' conftest.$ac_ext >&5
16068
16069 eval "$as_ac_Header=no"
16070 fi
16071 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16072 fi
16073 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16074 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16075 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16076   cat >>confdefs.h <<_ACEOF
16077 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16078 _ACEOF
16079
16080 fi
16081
16082 done
16083
16084
16085
16086 for ac_header in netinet/ip.h
16087 do
16088 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16089 echo "$as_me:$LINENO: checking for $ac_header" >&5
16090 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16091 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16092   echo $ECHO_N "(cached) $ECHO_C" >&6
16093 else
16094   cat >conftest.$ac_ext <<_ACEOF
16095 /* confdefs.h.  */
16096 _ACEOF
16097 cat confdefs.h >>conftest.$ac_ext
16098 cat >>conftest.$ac_ext <<_ACEOF
16099 /* end confdefs.h.  */
16100 #include <sys/types.h>
16101      #if HAVE_SYS_SOCKET_H
16102      # include <sys/socket.h>
16103      #endif
16104      #if HAVE_NETINET_IN_SYSTM_H
16105      # include <netinet/in_systm.h>
16106      #endif
16107
16108 #include <$ac_header>
16109 _ACEOF
16110 rm -f conftest.$ac_objext
16111 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16112   (eval $ac_compile) 2>conftest.er1
16113   ac_status=$?
16114   grep -v '^ *+' conftest.er1 >conftest.err
16115   rm -f conftest.er1
16116   cat conftest.err >&5
16117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16118   (exit $ac_status); } &&
16119          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
16120   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16121   (eval $ac_try) 2>&5
16122   ac_status=$?
16123   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16124   (exit $ac_status); }; } &&
16125          { ac_try='test -s conftest.$ac_objext'
16126   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16127   (eval $ac_try) 2>&5
16128   ac_status=$?
16129   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16130   (exit $ac_status); }; }; then
16131   eval "$as_ac_Header=yes"
16132 else
16133   echo "$as_me: failed program was:" >&5
16134 sed 's/^/| /' conftest.$ac_ext >&5
16135
16136 eval "$as_ac_Header=no"
16137 fi
16138 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16139 fi
16140 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16141 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16142 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16143   cat >>confdefs.h <<_ACEOF
16144 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16145 _ACEOF
16146
16147 fi
16148
16149 done
16150
16151
16152
16153 for ac_header in ucontext.h
16154 do
16155 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16156 echo "$as_me:$LINENO: checking for $ac_header" >&5
16157 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16158 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16159   echo $ECHO_N "(cached) $ECHO_C" >&6
16160 else
16161   cat >conftest.$ac_ext <<_ACEOF
16162 /* confdefs.h.  */
16163 _ACEOF
16164 cat confdefs.h >>conftest.$ac_ext
16165 cat >>conftest.$ac_ext <<_ACEOF
16166 /* end confdefs.h.  */
16167 #include <signal.h>
16168
16169 #include <$ac_header>
16170 _ACEOF
16171 rm -f conftest.$ac_objext
16172 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16173   (eval $ac_compile) 2>conftest.er1
16174   ac_status=$?
16175   grep -v '^ *+' conftest.er1 >conftest.err
16176   rm -f conftest.er1
16177   cat conftest.err >&5
16178   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16179   (exit $ac_status); } &&
16180          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
16181   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16182   (eval $ac_try) 2>&5
16183   ac_status=$?
16184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16185   (exit $ac_status); }; } &&
16186          { ac_try='test -s conftest.$ac_objext'
16187   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16188   (eval $ac_try) 2>&5
16189   ac_status=$?
16190   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16191   (exit $ac_status); }; }; then
16192   eval "$as_ac_Header=yes"
16193 else
16194   echo "$as_me: failed program was:" >&5
16195 sed 's/^/| /' conftest.$ac_ext >&5
16196
16197 eval "$as_ac_Header=no"
16198 fi
16199 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16200 fi
16201 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16202 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16203 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16204   cat >>confdefs.h <<_ACEOF
16205 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16206 _ACEOF
16207
16208 fi
16209
16210 done
16211
16212
16213
16214 echo "$as_me:$LINENO: checking for GNU style IPX support" >&5
16215 echo $ECHO_N "checking for GNU style IPX support... $ECHO_C" >&6
16216 if test "${ac_cv_c_ipx_gnu+set}" = set; then
16217   echo $ECHO_N "(cached) $ECHO_C" >&6
16218 else
16219   cat >conftest.$ac_ext <<_ACEOF
16220 /* confdefs.h.  */
16221 _ACEOF
16222 cat confdefs.h >>conftest.$ac_ext
16223 cat >>conftest.$ac_ext <<_ACEOF
16224 /* end confdefs.h.  */
16225 #include <sys/types.h>
16226     #ifdef HAVE_SYS_SOCKET_H
16227     # include <sys/socket.h>
16228     #endif
16229     #include <netipx/ipx.h>
16230 int
16231 main ()
16232 {
16233 ((struct sockaddr_ipx *)0)->sipx_family == AF_IPX
16234   ;
16235   return 0;
16236 }
16237 _ACEOF
16238 rm -f conftest.$ac_objext
16239 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16240   (eval $ac_compile) 2>conftest.er1
16241   ac_status=$?
16242   grep -v '^ *+' conftest.er1 >conftest.err
16243   rm -f conftest.er1
16244   cat conftest.err >&5
16245   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16246   (exit $ac_status); } &&
16247          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
16248   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16249   (eval $ac_try) 2>&5
16250   ac_status=$?
16251   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16252   (exit $ac_status); }; } &&
16253          { ac_try='test -s conftest.$ac_objext'
16254   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16255   (eval $ac_try) 2>&5
16256   ac_status=$?
16257   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16258   (exit $ac_status); }; }; then
16259   ac_cv_c_ipx_gnu="yes"
16260 else
16261   echo "$as_me: failed program was:" >&5
16262 sed 's/^/| /' conftest.$ac_ext >&5
16263
16264 ac_cv_c_ipx_gnu="no"
16265 fi
16266 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16267
16268 fi
16269 echo "$as_me:$LINENO: result: $ac_cv_c_ipx_gnu" >&5
16270 echo "${ECHO_T}$ac_cv_c_ipx_gnu" >&6
16271 if test "$ac_cv_c_ipx_gnu" = "yes"
16272 then
16273
16274 cat >>confdefs.h <<\_ACEOF
16275 #define HAVE_IPX_GNU 1
16276 _ACEOF
16277
16278 fi
16279
16280 if test "$ac_cv_c_ipx_gnu" = "no"
16281 then
16282  echo "$as_me:$LINENO: checking for linux style IPX support" >&5
16283 echo $ECHO_N "checking for linux style IPX support... $ECHO_C" >&6
16284 if test "${ac_cv_c_ipx_linux+set}" = set; then
16285   echo $ECHO_N "(cached) $ECHO_C" >&6
16286 else
16287   cat >conftest.$ac_ext <<_ACEOF
16288 /* confdefs.h.  */
16289 _ACEOF
16290 cat confdefs.h >>conftest.$ac_ext
16291 cat >>conftest.$ac_ext <<_ACEOF
16292 /* end confdefs.h.  */
16293 #include <sys/types.h>
16294      #ifdef HAVE_SYS_SOCKET_H
16295      # include <sys/socket.h>
16296      #endif
16297      #include <asm/types.h>
16298      #include <linux/ipx.h>
16299 int
16300 main ()
16301 {
16302 ((struct sockaddr_ipx *)0)->sipx_family == AF_IPX
16303   ;
16304   return 0;
16305 }
16306 _ACEOF
16307 rm -f conftest.$ac_objext
16308 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16309   (eval $ac_compile) 2>conftest.er1
16310   ac_status=$?
16311   grep -v '^ *+' conftest.er1 >conftest.err
16312   rm -f conftest.er1
16313   cat conftest.err >&5
16314   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16315   (exit $ac_status); } &&
16316          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
16317   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16318   (eval $ac_try) 2>&5
16319   ac_status=$?
16320   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16321   (exit $ac_status); }; } &&
16322          { ac_try='test -s conftest.$ac_objext'
16323   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16324   (eval $ac_try) 2>&5
16325   ac_status=$?
16326   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16327   (exit $ac_status); }; }; then
16328   ac_cv_c_ipx_linux="yes"
16329 else
16330   echo "$as_me: failed program was:" >&5
16331 sed 's/^/| /' conftest.$ac_ext >&5
16332
16333 ac_cv_c_ipx_linux="no"
16334 fi
16335 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16336
16337 fi
16338 echo "$as_me:$LINENO: result: $ac_cv_c_ipx_linux" >&5
16339 echo "${ECHO_T}$ac_cv_c_ipx_linux" >&6
16340   if test "$ac_cv_c_ipx_linux" = "yes"
16341   then
16342
16343 cat >>confdefs.h <<\_ACEOF
16344 #define HAVE_IPX_LINUX 1
16345 _ACEOF
16346
16347   fi
16348 fi
16349
16350
16351 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
16352 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
16353 if test "${ac_cv_c_const+set}" = set; then
16354   echo $ECHO_N "(cached) $ECHO_C" >&6
16355 else
16356   cat >conftest.$ac_ext <<_ACEOF
16357 /* confdefs.h.  */
16358 _ACEOF
16359 cat confdefs.h >>conftest.$ac_ext
16360 cat >>conftest.$ac_ext <<_ACEOF
16361 /* end confdefs.h.  */
16362
16363 int
16364 main ()
16365 {
16366 /* FIXME: Include the comments suggested by Paul. */
16367 #ifndef __cplusplus
16368   /* Ultrix mips cc rejects this.  */
16369   typedef int charset[2];
16370   const charset x;
16371   /* SunOS 4.1.1 cc rejects this.  */
16372   char const *const *ccp;
16373   char **p;
16374   /* NEC SVR4.0.2 mips cc rejects this.  */
16375   struct point {int x, y;};
16376   static struct point const zero = {0,0};
16377   /* AIX XL C 1.02.0.0 rejects this.
16378      It does not let you subtract one const X* pointer from another in
16379      an arm of an if-expression whose if-part is not a constant
16380      expression */
16381   const char *g = "string";
16382   ccp = &g + (g ? g-g : 0);
16383   /* HPUX 7.0 cc rejects these. */
16384   ++ccp;
16385   p = (char**) ccp;
16386   ccp = (char const *const *) p;
16387   { /* SCO 3.2v4 cc rejects this.  */
16388     char *t;
16389     char const *s = 0 ? (char *) 0 : (char const *) 0;
16390
16391     *t++ = 0;
16392   }
16393   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
16394     int x[] = {25, 17};
16395     const int *foo = &x[0];
16396     ++foo;
16397   }
16398   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
16399     typedef const int *iptr;
16400     iptr p = 0;
16401     ++p;
16402   }
16403   { /* AIX XL C 1.02.0.0 rejects this saying
16404        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
16405     struct s { int j; const int *ap[3]; };
16406     struct s *b; b->j = 5;
16407   }
16408   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
16409     const int foo = 10;
16410   }
16411 #endif
16412
16413   ;
16414   return 0;
16415 }
16416 _ACEOF
16417 rm -f conftest.$ac_objext
16418 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16419   (eval $ac_compile) 2>conftest.er1
16420   ac_status=$?
16421   grep -v '^ *+' conftest.er1 >conftest.err
16422   rm -f conftest.er1
16423   cat conftest.err >&5
16424   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16425   (exit $ac_status); } &&
16426          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
16427   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16428   (eval $ac_try) 2>&5
16429   ac_status=$?
16430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16431   (exit $ac_status); }; } &&
16432          { ac_try='test -s conftest.$ac_objext'
16433   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16434   (eval $ac_try) 2>&5
16435   ac_status=$?
16436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16437   (exit $ac_status); }; }; then
16438   ac_cv_c_const=yes
16439 else
16440   echo "$as_me: failed program was:" >&5
16441 sed 's/^/| /' conftest.$ac_ext >&5
16442
16443 ac_cv_c_const=no
16444 fi
16445 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16446 fi
16447 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
16448 echo "${ECHO_T}$ac_cv_c_const" >&6
16449 if test $ac_cv_c_const = no; then
16450
16451 cat >>confdefs.h <<\_ACEOF
16452 #define const
16453 _ACEOF
16454
16455 fi
16456
16457 echo "$as_me:$LINENO: checking for inline" >&5
16458 echo $ECHO_N "checking for inline... $ECHO_C" >&6
16459 if test "${ac_cv_c_inline+set}" = set; then
16460   echo $ECHO_N "(cached) $ECHO_C" >&6
16461 else
16462   ac_cv_c_inline=no
16463 for ac_kw in inline __inline__ __inline; do
16464   cat >conftest.$ac_ext <<_ACEOF
16465 /* confdefs.h.  */
16466 _ACEOF
16467 cat confdefs.h >>conftest.$ac_ext
16468 cat >>conftest.$ac_ext <<_ACEOF
16469 /* end confdefs.h.  */
16470 #ifndef __cplusplus
16471 typedef int foo_t;
16472 static $ac_kw foo_t static_foo () {return 0; }
16473 $ac_kw foo_t foo () {return 0; }
16474 #endif
16475
16476 _ACEOF
16477 rm -f conftest.$ac_objext
16478 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16479   (eval $ac_compile) 2>conftest.er1
16480   ac_status=$?
16481   grep -v '^ *+' conftest.er1 >conftest.err
16482   rm -f conftest.er1
16483   cat conftest.err >&5
16484   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16485   (exit $ac_status); } &&
16486          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
16487   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16488   (eval $ac_try) 2>&5
16489   ac_status=$?
16490   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16491   (exit $ac_status); }; } &&
16492          { ac_try='test -s conftest.$ac_objext'
16493   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16494   (eval $ac_try) 2>&5
16495   ac_status=$?
16496   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16497   (exit $ac_status); }; }; then
16498   ac_cv_c_inline=$ac_kw; break
16499 else
16500   echo "$as_me: failed program was:" >&5
16501 sed 's/^/| /' conftest.$ac_ext >&5
16502
16503 fi
16504 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16505 done
16506
16507 fi
16508 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
16509 echo "${ECHO_T}$ac_cv_c_inline" >&6
16510
16511
16512 case $ac_cv_c_inline in
16513   inline | yes) ;;
16514   *)
16515     case $ac_cv_c_inline in
16516       no) ac_val=;;
16517       *) ac_val=$ac_cv_c_inline;;
16518     esac
16519     cat >>confdefs.h <<_ACEOF
16520 #ifndef __cplusplus
16521 #define inline $ac_val
16522 #endif
16523 _ACEOF
16524     ;;
16525 esac
16526
16527 echo "$as_me:$LINENO: checking for mode_t" >&5
16528 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
16529 if test "${ac_cv_type_mode_t+set}" = set; then
16530   echo $ECHO_N "(cached) $ECHO_C" >&6
16531 else
16532   cat >conftest.$ac_ext <<_ACEOF
16533 /* confdefs.h.  */
16534 _ACEOF
16535 cat confdefs.h >>conftest.$ac_ext
16536 cat >>conftest.$ac_ext <<_ACEOF
16537 /* end confdefs.h.  */
16538 $ac_includes_default
16539 int
16540 main ()
16541 {
16542 if ((mode_t *) 0)
16543   return 0;
16544 if (sizeof (mode_t))
16545   return 0;
16546   ;
16547   return 0;
16548 }
16549 _ACEOF
16550 rm -f conftest.$ac_objext
16551 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16552   (eval $ac_compile) 2>conftest.er1
16553   ac_status=$?
16554   grep -v '^ *+' conftest.er1 >conftest.err
16555   rm -f conftest.er1
16556   cat conftest.err >&5
16557   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16558   (exit $ac_status); } &&
16559          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
16560   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16561   (eval $ac_try) 2>&5
16562   ac_status=$?
16563   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16564   (exit $ac_status); }; } &&
16565          { ac_try='test -s conftest.$ac_objext'
16566   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16567   (eval $ac_try) 2>&5
16568   ac_status=$?
16569   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16570   (exit $ac_status); }; }; then
16571   ac_cv_type_mode_t=yes
16572 else
16573   echo "$as_me: failed program was:" >&5
16574 sed 's/^/| /' conftest.$ac_ext >&5
16575
16576 ac_cv_type_mode_t=no
16577 fi
16578 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16579 fi
16580 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
16581 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
16582 if test $ac_cv_type_mode_t = yes; then
16583
16584 cat >>confdefs.h <<_ACEOF
16585 #define HAVE_MODE_T 1
16586 _ACEOF
16587
16588
16589 fi
16590 echo "$as_me:$LINENO: checking for off_t" >&5
16591 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
16592 if test "${ac_cv_type_off_t+set}" = set; then
16593   echo $ECHO_N "(cached) $ECHO_C" >&6
16594 else
16595   cat >conftest.$ac_ext <<_ACEOF
16596 /* confdefs.h.  */
16597 _ACEOF
16598 cat confdefs.h >>conftest.$ac_ext
16599 cat >>conftest.$ac_ext <<_ACEOF
16600 /* end confdefs.h.  */
16601 $ac_includes_default
16602 int
16603 main ()
16604 {
16605 if ((off_t *) 0)
16606   return 0;
16607 if (sizeof (off_t))
16608   return 0;
16609   ;
16610   return 0;
16611 }
16612 _ACEOF
16613 rm -f conftest.$ac_objext
16614 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16615   (eval $ac_compile) 2>conftest.er1
16616   ac_status=$?
16617   grep -v '^ *+' conftest.er1 >conftest.err
16618   rm -f conftest.er1
16619   cat conftest.err >&5
16620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16621   (exit $ac_status); } &&
16622          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
16623   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16624   (eval $ac_try) 2>&5
16625   ac_status=$?
16626   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16627   (exit $ac_status); }; } &&
16628          { ac_try='test -s conftest.$ac_objext'
16629   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16630   (eval $ac_try) 2>&5
16631   ac_status=$?
16632   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16633   (exit $ac_status); }; }; then
16634   ac_cv_type_off_t=yes
16635 else
16636   echo "$as_me: failed program was:" >&5
16637 sed 's/^/| /' conftest.$ac_ext >&5
16638
16639 ac_cv_type_off_t=no
16640 fi
16641 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16642 fi
16643 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
16644 echo "${ECHO_T}$ac_cv_type_off_t" >&6
16645 if test $ac_cv_type_off_t = yes; then
16646
16647 cat >>confdefs.h <<_ACEOF
16648 #define HAVE_OFF_T 1
16649 _ACEOF
16650
16651
16652 fi
16653 echo "$as_me:$LINENO: checking for pid_t" >&5
16654 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
16655 if test "${ac_cv_type_pid_t+set}" = set; then
16656   echo $ECHO_N "(cached) $ECHO_C" >&6
16657 else
16658   cat >conftest.$ac_ext <<_ACEOF
16659 /* confdefs.h.  */
16660 _ACEOF
16661 cat confdefs.h >>conftest.$ac_ext
16662 cat >>conftest.$ac_ext <<_ACEOF
16663 /* end confdefs.h.  */
16664 $ac_includes_default
16665 int
16666 main ()
16667 {
16668 if ((pid_t *) 0)
16669   return 0;
16670 if (sizeof (pid_t))
16671   return 0;
16672   ;
16673   return 0;
16674 }
16675 _ACEOF
16676 rm -f conftest.$ac_objext
16677 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16678   (eval $ac_compile) 2>conftest.er1
16679   ac_status=$?
16680   grep -v '^ *+' conftest.er1 >conftest.err
16681   rm -f conftest.er1
16682   cat conftest.err >&5
16683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16684   (exit $ac_status); } &&
16685          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
16686   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16687   (eval $ac_try) 2>&5
16688   ac_status=$?
16689   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16690   (exit $ac_status); }; } &&
16691          { ac_try='test -s conftest.$ac_objext'
16692   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16693   (eval $ac_try) 2>&5
16694   ac_status=$?
16695   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16696   (exit $ac_status); }; }; then
16697   ac_cv_type_pid_t=yes
16698 else
16699   echo "$as_me: failed program was:" >&5
16700 sed 's/^/| /' conftest.$ac_ext >&5
16701
16702 ac_cv_type_pid_t=no
16703 fi
16704 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16705 fi
16706 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
16707 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
16708 if test $ac_cv_type_pid_t = yes; then
16709
16710 cat >>confdefs.h <<_ACEOF
16711 #define HAVE_PID_T 1
16712 _ACEOF
16713
16714
16715 fi
16716 echo "$as_me:$LINENO: checking for size_t" >&5
16717 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
16718 if test "${ac_cv_type_size_t+set}" = set; then
16719   echo $ECHO_N "(cached) $ECHO_C" >&6
16720 else
16721   cat >conftest.$ac_ext <<_ACEOF
16722 /* confdefs.h.  */
16723 _ACEOF
16724 cat confdefs.h >>conftest.$ac_ext
16725 cat >>conftest.$ac_ext <<_ACEOF
16726 /* end confdefs.h.  */
16727 $ac_includes_default
16728 int
16729 main ()
16730 {
16731 if ((size_t *) 0)
16732   return 0;
16733 if (sizeof (size_t))
16734   return 0;
16735   ;
16736   return 0;
16737 }
16738 _ACEOF
16739 rm -f conftest.$ac_objext
16740 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16741   (eval $ac_compile) 2>conftest.er1
16742   ac_status=$?
16743   grep -v '^ *+' conftest.er1 >conftest.err
16744   rm -f conftest.er1
16745   cat conftest.err >&5
16746   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16747   (exit $ac_status); } &&
16748          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
16749   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16750   (eval $ac_try) 2>&5
16751   ac_status=$?
16752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16753   (exit $ac_status); }; } &&
16754          { ac_try='test -s conftest.$ac_objext'
16755   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16756   (eval $ac_try) 2>&5
16757   ac_status=$?
16758   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16759   (exit $ac_status); }; }; then
16760   ac_cv_type_size_t=yes
16761 else
16762   echo "$as_me: failed program was:" >&5
16763 sed 's/^/| /' conftest.$ac_ext >&5
16764
16765 ac_cv_type_size_t=no
16766 fi
16767 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16768 fi
16769 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
16770 echo "${ECHO_T}$ac_cv_type_size_t" >&6
16771 if test $ac_cv_type_size_t = yes; then
16772
16773 cat >>confdefs.h <<_ACEOF
16774 #define HAVE_SIZE_T 1
16775 _ACEOF
16776
16777
16778 fi
16779 echo "$as_me:$LINENO: checking for ssize_t" >&5
16780 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
16781 if test "${ac_cv_type_ssize_t+set}" = set; then
16782   echo $ECHO_N "(cached) $ECHO_C" >&6
16783 else
16784   cat >conftest.$ac_ext <<_ACEOF
16785 /* confdefs.h.  */
16786 _ACEOF
16787 cat confdefs.h >>conftest.$ac_ext
16788 cat >>conftest.$ac_ext <<_ACEOF
16789 /* end confdefs.h.  */
16790 $ac_includes_default
16791 int
16792 main ()
16793 {
16794 if ((ssize_t *) 0)
16795   return 0;
16796 if (sizeof (ssize_t))
16797   return 0;
16798   ;
16799   return 0;
16800 }
16801 _ACEOF
16802 rm -f conftest.$ac_objext
16803 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16804   (eval $ac_compile) 2>conftest.er1
16805   ac_status=$?
16806   grep -v '^ *+' conftest.er1 >conftest.err
16807   rm -f conftest.er1
16808   cat conftest.err >&5
16809   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16810   (exit $ac_status); } &&
16811          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
16812   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16813   (eval $ac_try) 2>&5
16814   ac_status=$?
16815   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16816   (exit $ac_status); }; } &&
16817          { ac_try='test -s conftest.$ac_objext'
16818   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16819   (eval $ac_try) 2>&5
16820   ac_status=$?
16821   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16822   (exit $ac_status); }; }; then
16823   ac_cv_type_ssize_t=yes
16824 else
16825   echo "$as_me: failed program was:" >&5
16826 sed 's/^/| /' conftest.$ac_ext >&5
16827
16828 ac_cv_type_ssize_t=no
16829 fi
16830 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16831 fi
16832 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
16833 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
16834 if test $ac_cv_type_ssize_t = yes; then
16835
16836 cat >>confdefs.h <<_ACEOF
16837 #define HAVE_SSIZE_T 1
16838 _ACEOF
16839
16840
16841 fi
16842
16843 echo "$as_me:$LINENO: checking for long long" >&5
16844 echo $ECHO_N "checking for long long... $ECHO_C" >&6
16845 if test "${ac_cv_type_long_long+set}" = set; then
16846   echo $ECHO_N "(cached) $ECHO_C" >&6
16847 else
16848   cat >conftest.$ac_ext <<_ACEOF
16849 /* confdefs.h.  */
16850 _ACEOF
16851 cat confdefs.h >>conftest.$ac_ext
16852 cat >>conftest.$ac_ext <<_ACEOF
16853 /* end confdefs.h.  */
16854 $ac_includes_default
16855 int
16856 main ()
16857 {
16858 if ((long long *) 0)
16859   return 0;
16860 if (sizeof (long long))
16861   return 0;
16862   ;
16863   return 0;
16864 }
16865 _ACEOF
16866 rm -f conftest.$ac_objext
16867 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16868   (eval $ac_compile) 2>conftest.er1
16869   ac_status=$?
16870   grep -v '^ *+' conftest.er1 >conftest.err
16871   rm -f conftest.er1
16872   cat conftest.err >&5
16873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16874   (exit $ac_status); } &&
16875          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
16876   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16877   (eval $ac_try) 2>&5
16878   ac_status=$?
16879   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16880   (exit $ac_status); }; } &&
16881          { ac_try='test -s conftest.$ac_objext'
16882   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16883   (eval $ac_try) 2>&5
16884   ac_status=$?
16885   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16886   (exit $ac_status); }; }; then
16887   ac_cv_type_long_long=yes
16888 else
16889   echo "$as_me: failed program was:" >&5
16890 sed 's/^/| /' conftest.$ac_ext >&5
16891
16892 ac_cv_type_long_long=no
16893 fi
16894 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16895 fi
16896 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
16897 echo "${ECHO_T}$ac_cv_type_long_long" >&6
16898
16899 echo "$as_me:$LINENO: checking size of long long" >&5
16900 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
16901 if test "${ac_cv_sizeof_long_long+set}" = set; then
16902   echo $ECHO_N "(cached) $ECHO_C" >&6
16903 else
16904   if test "$ac_cv_type_long_long" = yes; then
16905   # The cast to unsigned long works around a bug in the HP C Compiler
16906   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16907   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16908   # This bug is HP SR number 8606223364.
16909   if test "$cross_compiling" = yes; then
16910   # Depending upon the size, compute the lo and hi bounds.
16911 cat >conftest.$ac_ext <<_ACEOF
16912 /* confdefs.h.  */
16913 _ACEOF
16914 cat confdefs.h >>conftest.$ac_ext
16915 cat >>conftest.$ac_ext <<_ACEOF
16916 /* end confdefs.h.  */
16917 $ac_includes_default
16918 int
16919 main ()
16920 {
16921 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
16922 test_array [0] = 0
16923
16924   ;
16925   return 0;
16926 }
16927 _ACEOF
16928 rm -f conftest.$ac_objext
16929 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16930   (eval $ac_compile) 2>conftest.er1
16931   ac_status=$?
16932   grep -v '^ *+' conftest.er1 >conftest.err
16933   rm -f conftest.er1
16934   cat conftest.err >&5
16935   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16936   (exit $ac_status); } &&
16937          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
16938   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16939   (eval $ac_try) 2>&5
16940   ac_status=$?
16941   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16942   (exit $ac_status); }; } &&
16943          { ac_try='test -s conftest.$ac_objext'
16944   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16945   (eval $ac_try) 2>&5
16946   ac_status=$?
16947   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16948   (exit $ac_status); }; }; then
16949   ac_lo=0 ac_mid=0
16950   while :; do
16951     cat >conftest.$ac_ext <<_ACEOF
16952 /* confdefs.h.  */
16953 _ACEOF
16954 cat confdefs.h >>conftest.$ac_ext
16955 cat >>conftest.$ac_ext <<_ACEOF
16956 /* end confdefs.h.  */
16957 $ac_includes_default
16958 int
16959 main ()
16960 {
16961 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
16962 test_array [0] = 0
16963
16964   ;
16965   return 0;
16966 }
16967 _ACEOF
16968 rm -f conftest.$ac_objext
16969 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16970   (eval $ac_compile) 2>conftest.er1
16971   ac_status=$?
16972   grep -v '^ *+' conftest.er1 >conftest.err
16973   rm -f conftest.er1
16974   cat conftest.err >&5
16975   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16976   (exit $ac_status); } &&
16977          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
16978   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16979   (eval $ac_try) 2>&5
16980   ac_status=$?
16981   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16982   (exit $ac_status); }; } &&
16983          { ac_try='test -s conftest.$ac_objext'
16984   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16985   (eval $ac_try) 2>&5
16986   ac_status=$?
16987   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16988   (exit $ac_status); }; }; then
16989   ac_hi=$ac_mid; break
16990 else
16991   echo "$as_me: failed program was:" >&5
16992 sed 's/^/| /' conftest.$ac_ext >&5
16993
16994 ac_lo=`expr $ac_mid + 1`
16995                     if test $ac_lo -le $ac_mid; then
16996                       ac_lo= ac_hi=
16997                       break
16998                     fi
16999                     ac_mid=`expr 2 '*' $ac_mid + 1`
17000 fi
17001 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17002   done
17003 else
17004   echo "$as_me: failed program was:" >&5
17005 sed 's/^/| /' conftest.$ac_ext >&5
17006
17007 cat >conftest.$ac_ext <<_ACEOF
17008 /* confdefs.h.  */
17009 _ACEOF
17010 cat confdefs.h >>conftest.$ac_ext
17011 cat >>conftest.$ac_ext <<_ACEOF
17012 /* end confdefs.h.  */
17013 $ac_includes_default
17014 int
17015 main ()
17016 {
17017 static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
17018 test_array [0] = 0
17019
17020   ;
17021   return 0;
17022 }
17023 _ACEOF
17024 rm -f conftest.$ac_objext
17025 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17026   (eval $ac_compile) 2>conftest.er1
17027   ac_status=$?
17028   grep -v '^ *+' conftest.er1 >conftest.err
17029   rm -f conftest.er1
17030   cat conftest.err >&5
17031   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17032   (exit $ac_status); } &&
17033          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
17034   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17035   (eval $ac_try) 2>&5
17036   ac_status=$?
17037   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17038   (exit $ac_status); }; } &&
17039          { ac_try='test -s conftest.$ac_objext'
17040   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17041   (eval $ac_try) 2>&5
17042   ac_status=$?
17043   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17044   (exit $ac_status); }; }; then
17045   ac_hi=-1 ac_mid=-1
17046   while :; do
17047     cat >conftest.$ac_ext <<_ACEOF
17048 /* confdefs.h.  */
17049 _ACEOF
17050 cat confdefs.h >>conftest.$ac_ext
17051 cat >>conftest.$ac_ext <<_ACEOF
17052 /* end confdefs.h.  */
17053 $ac_includes_default
17054 int
17055 main ()
17056 {
17057 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
17058 test_array [0] = 0
17059
17060   ;
17061   return 0;
17062 }
17063 _ACEOF
17064 rm -f conftest.$ac_objext
17065 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17066   (eval $ac_compile) 2>conftest.er1
17067   ac_status=$?
17068   grep -v '^ *+' conftest.er1 >conftest.err
17069   rm -f conftest.er1
17070   cat conftest.err >&5
17071   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17072   (exit $ac_status); } &&
17073          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
17074   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17075   (eval $ac_try) 2>&5
17076   ac_status=$?
17077   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17078   (exit $ac_status); }; } &&
17079          { ac_try='test -s conftest.$ac_objext'
17080   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17081   (eval $ac_try) 2>&5
17082   ac_status=$?
17083   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17084   (exit $ac_status); }; }; then
17085   ac_lo=$ac_mid; break
17086 else
17087   echo "$as_me: failed program was:" >&5
17088 sed 's/^/| /' conftest.$ac_ext >&5
17089
17090 ac_hi=`expr '(' $ac_mid ')' - 1`
17091                        if test $ac_mid -le $ac_hi; then
17092                          ac_lo= ac_hi=
17093                          break
17094                        fi
17095                        ac_mid=`expr 2 '*' $ac_mid`
17096 fi
17097 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17098   done
17099 else
17100   echo "$as_me: failed program was:" >&5
17101 sed 's/^/| /' conftest.$ac_ext >&5
17102
17103 ac_lo= ac_hi=
17104 fi
17105 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17106 fi
17107 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17108 # Binary search between lo and hi bounds.
17109 while test "x$ac_lo" != "x$ac_hi"; do
17110   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
17111   cat >conftest.$ac_ext <<_ACEOF
17112 /* confdefs.h.  */
17113 _ACEOF
17114 cat confdefs.h >>conftest.$ac_ext
17115 cat >>conftest.$ac_ext <<_ACEOF
17116 /* end confdefs.h.  */
17117 $ac_includes_default
17118 int
17119 main ()
17120 {
17121 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
17122 test_array [0] = 0
17123
17124   ;
17125   return 0;
17126 }
17127 _ACEOF
17128 rm -f conftest.$ac_objext
17129 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17130   (eval $ac_compile) 2>conftest.er1
17131   ac_status=$?
17132   grep -v '^ *+' conftest.er1 >conftest.err
17133   rm -f conftest.er1
17134   cat conftest.err >&5
17135   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17136   (exit $ac_status); } &&
17137          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
17138   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17139   (eval $ac_try) 2>&5
17140   ac_status=$?
17141   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17142   (exit $ac_status); }; } &&
17143          { ac_try='test -s conftest.$ac_objext'
17144   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17145   (eval $ac_try) 2>&5
17146   ac_status=$?
17147   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17148   (exit $ac_status); }; }; then
17149   ac_hi=$ac_mid
17150 else
17151   echo "$as_me: failed program was:" >&5
17152 sed 's/^/| /' conftest.$ac_ext >&5
17153
17154 ac_lo=`expr '(' $ac_mid ')' + 1`
17155 fi
17156 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17157 done
17158 case $ac_lo in
17159 ?*) ac_cv_sizeof_long_long=$ac_lo;;
17160 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
17161 See \`config.log' for more details." >&5
17162 echo "$as_me: error: cannot compute sizeof (long long), 77
17163 See \`config.log' for more details." >&2;}
17164    { (exit 1); exit 1; }; } ;;
17165 esac
17166 else
17167   if test "$cross_compiling" = yes; then
17168   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
17169 See \`config.log' for more details." >&5
17170 echo "$as_me: error: cannot run test program while cross compiling
17171 See \`config.log' for more details." >&2;}
17172    { (exit 1); exit 1; }; }
17173 else
17174   cat >conftest.$ac_ext <<_ACEOF
17175 /* confdefs.h.  */
17176 _ACEOF
17177 cat confdefs.h >>conftest.$ac_ext
17178 cat >>conftest.$ac_ext <<_ACEOF
17179 /* end confdefs.h.  */
17180 $ac_includes_default
17181 long longval () { return (long) (sizeof (long long)); }
17182 unsigned long ulongval () { return (long) (sizeof (long long)); }
17183 #include <stdio.h>
17184 #include <stdlib.h>
17185 int
17186 main ()
17187 {
17188
17189   FILE *f = fopen ("conftest.val", "w");
17190   if (! f)
17191     exit (1);
17192   if (((long) (sizeof (long long))) < 0)
17193     {
17194       long i = longval ();
17195       if (i != ((long) (sizeof (long long))))
17196         exit (1);
17197       fprintf (f, "%ld\n", i);
17198     }
17199   else
17200     {
17201       unsigned long i = ulongval ();
17202       if (i != ((long) (sizeof (long long))))
17203         exit (1);
17204       fprintf (f, "%lu\n", i);
17205     }
17206   exit (ferror (f) || fclose (f) != 0);
17207
17208   ;
17209   return 0;
17210 }
17211 _ACEOF
17212 rm -f conftest$ac_exeext
17213 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17214   (eval $ac_link) 2>&5
17215   ac_status=$?
17216   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17217   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17218   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17219   (eval $ac_try) 2>&5
17220   ac_status=$?
17221   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17222   (exit $ac_status); }; }; then
17223   ac_cv_sizeof_long_long=`cat conftest.val`
17224 else
17225   echo "$as_me: program exited with status $ac_status" >&5
17226 echo "$as_me: failed program was:" >&5
17227 sed 's/^/| /' conftest.$ac_ext >&5
17228
17229 ( exit $ac_status )
17230 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
17231 See \`config.log' for more details." >&5
17232 echo "$as_me: error: cannot compute sizeof (long long), 77
17233 See \`config.log' for more details." >&2;}
17234    { (exit 1); exit 1; }; }
17235 fi
17236 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17237 fi
17238 fi
17239 rm -f conftest.val
17240 else
17241   ac_cv_sizeof_long_long=0
17242 fi
17243 fi
17244 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
17245 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
17246 cat >>confdefs.h <<_ACEOF
17247 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
17248 _ACEOF
17249
17250
17251
17252 echo "$as_me:$LINENO: checking whether linux/input.h is for real" >&5
17253 echo $ECHO_N "checking whether linux/input.h is for real... $ECHO_C" >&6
17254 if test "${wine_cv_linux_input_h+set}" = set; then
17255   echo $ECHO_N "(cached) $ECHO_C" >&6
17256 else
17257   cat >conftest.$ac_ext <<_ACEOF
17258 /* confdefs.h.  */
17259 _ACEOF
17260 cat confdefs.h >>conftest.$ac_ext
17261 cat >>conftest.$ac_ext <<_ACEOF
17262 /* end confdefs.h.  */
17263
17264             #include <linux/input.h>
17265
17266 int
17267 main ()
17268 {
17269
17270             int foo = EVIOCGBIT(EV_ABS,42);
17271             int bar = BTN_PINKIE;
17272             int fortytwo = 42;
17273
17274   ;
17275   return 0;
17276 }
17277 _ACEOF
17278 rm -f conftest.$ac_objext
17279 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17280   (eval $ac_compile) 2>conftest.er1
17281   ac_status=$?
17282   grep -v '^ *+' conftest.er1 >conftest.err
17283   rm -f conftest.er1
17284   cat conftest.err >&5
17285   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17286   (exit $ac_status); } &&
17287          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
17288   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17289   (eval $ac_try) 2>&5
17290   ac_status=$?
17291   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17292   (exit $ac_status); }; } &&
17293          { ac_try='test -s conftest.$ac_objext'
17294   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17295   (eval $ac_try) 2>&5
17296   ac_status=$?
17297   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17298   (exit $ac_status); }; }; then
17299   wine_cv_linux_input_h=yes
17300 else
17301   echo "$as_me: failed program was:" >&5
17302 sed 's/^/| /' conftest.$ac_ext >&5
17303
17304 wine_cv_linux_input_h=no
17305 fi
17306 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17307
17308 fi
17309 echo "$as_me:$LINENO: result: $wine_cv_linux_input_h" >&5
17310 echo "${ECHO_T}$wine_cv_linux_input_h" >&6
17311     if test "$wine_cv_linux_input_h" = "yes"
17312     then
17313
17314 cat >>confdefs.h <<\_ACEOF
17315 #define HAVE_CORRECT_LINUXINPUT_H 1
17316 _ACEOF
17317
17318     fi
17319
17320
17321 echo "$as_me:$LINENO: checking whether we can use re-entrant gethostbyname_r Linux style" >&5
17322 echo $ECHO_N "checking whether we can use re-entrant gethostbyname_r Linux style... $ECHO_C" >&6
17323 if test "${wine_cv_linux_gethostbyname_r_6+set}" = set; then
17324   echo $ECHO_N "(cached) $ECHO_C" >&6
17325 else
17326   cat >conftest.$ac_ext <<_ACEOF
17327 /* confdefs.h.  */
17328 _ACEOF
17329 cat confdefs.h >>conftest.$ac_ext
17330 cat >>conftest.$ac_ext <<_ACEOF
17331 /* end confdefs.h.  */
17332
17333 #include <netdb.h>
17334
17335 int
17336 main ()
17337 {
17338
17339     char *name=NULL;
17340     struct hostent he;
17341     struct hostent *result;
17342     char *buf=NULL;
17343     int bufsize=0;
17344     int res,errnr;
17345     char *addr=NULL;
17346     int addrlen=0;
17347     int addrtype=0;
17348     res=gethostbyname_r(name,&he,buf,bufsize,&result,&errnr);
17349     res=gethostbyaddr_r(addr, addrlen, addrtype,&he,buf,bufsize,&result,&errnr);
17350
17351   ;
17352   return 0;
17353 }
17354 _ACEOF
17355 rm -f conftest.$ac_objext
17356 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17357   (eval $ac_compile) 2>conftest.er1
17358   ac_status=$?
17359   grep -v '^ *+' conftest.er1 >conftest.err
17360   rm -f conftest.er1
17361   cat conftest.err >&5
17362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17363   (exit $ac_status); } &&
17364          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
17365   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17366   (eval $ac_try) 2>&5
17367   ac_status=$?
17368   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17369   (exit $ac_status); }; } &&
17370          { ac_try='test -s conftest.$ac_objext'
17371   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17372   (eval $ac_try) 2>&5
17373   ac_status=$?
17374   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17375   (exit $ac_status); }; }; then
17376   wine_cv_linux_gethostbyname_r_6=yes
17377 else
17378   echo "$as_me: failed program was:" >&5
17379 sed 's/^/| /' conftest.$ac_ext >&5
17380
17381 wine_cv_linux_gethostbyname_r_6=no
17382
17383 fi
17384 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17385
17386 fi
17387 echo "$as_me:$LINENO: result: $wine_cv_linux_gethostbyname_r_6" >&5
17388 echo "${ECHO_T}$wine_cv_linux_gethostbyname_r_6" >&6
17389    if test "$wine_cv_linux_gethostbyname_r_6" = "yes"
17390    then
17391
17392 cat >>confdefs.h <<\_ACEOF
17393 #define HAVE_LINUX_GETHOSTBYNAME_R_6 1
17394 _ACEOF
17395
17396    fi
17397
17398 if test "$ac_cv_header_linux_joystick_h" = "yes"
17399 then
17400    echo "$as_me:$LINENO: checking whether linux/joystick.h uses the Linux 2.2+ API" >&5
17401 echo $ECHO_N "checking whether linux/joystick.h uses the Linux 2.2+ API... $ECHO_C" >&6
17402 if test "${wine_cv_linux_joystick_22_api+set}" = set; then
17403   echo $ECHO_N "(cached) $ECHO_C" >&6
17404 else
17405   cat >conftest.$ac_ext <<_ACEOF
17406 /* confdefs.h.  */
17407 _ACEOF
17408 cat confdefs.h >>conftest.$ac_ext
17409 cat >>conftest.$ac_ext <<_ACEOF
17410 /* end confdefs.h.  */
17411
17412         #include <sys/ioctl.h>
17413         #include <linux/joystick.h>
17414
17415         struct js_event blub;
17416         #if !defined(JS_EVENT_AXIS) || !defined(JS_EVENT_BUTTON)
17417         #error "no 2.2 header"
17418         #endif
17419
17420 int
17421 main ()
17422 {
17423 /*empty*/
17424   ;
17425   return 0;
17426 }
17427 _ACEOF
17428 rm -f conftest.$ac_objext
17429 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17430   (eval $ac_compile) 2>conftest.er1
17431   ac_status=$?
17432   grep -v '^ *+' conftest.er1 >conftest.err
17433   rm -f conftest.er1
17434   cat conftest.err >&5
17435   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17436   (exit $ac_status); } &&
17437          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
17438   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17439   (eval $ac_try) 2>&5
17440   ac_status=$?
17441   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17442   (exit $ac_status); }; } &&
17443          { ac_try='test -s conftest.$ac_objext'
17444   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17445   (eval $ac_try) 2>&5
17446   ac_status=$?
17447   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17448   (exit $ac_status); }; }; then
17449   wine_cv_linux_joystick_22_api=yes
17450 else
17451   echo "$as_me: failed program was:" >&5
17452 sed 's/^/| /' conftest.$ac_ext >&5
17453
17454 wine_cv_linux_joystick_22_api=no
17455 fi
17456 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17457
17458 fi
17459 echo "$as_me:$LINENO: result: $wine_cv_linux_joystick_22_api" >&5
17460 echo "${ECHO_T}$wine_cv_linux_joystick_22_api" >&6
17461    if test "$wine_cv_linux_joystick_22_api" = "yes"
17462    then
17463
17464 cat >>confdefs.h <<\_ACEOF
17465 #define HAVE_LINUX_22_JOYSTICK_API 1
17466 _ACEOF
17467
17468    fi
17469 fi
17470
17471
17472 if test "$ac_cv_header_sys_vfs_h" = "yes"
17473 then
17474     echo "$as_me:$LINENO: checking whether sys/vfs.h defines statfs" >&5
17475 echo $ECHO_N "checking whether sys/vfs.h defines statfs... $ECHO_C" >&6
17476 if test "${wine_cv_sys_vfs_has_statfs+set}" = set; then
17477   echo $ECHO_N "(cached) $ECHO_C" >&6
17478 else
17479   cat >conftest.$ac_ext <<_ACEOF
17480 /* confdefs.h.  */
17481 _ACEOF
17482 cat confdefs.h >>conftest.$ac_ext
17483 cat >>conftest.$ac_ext <<_ACEOF
17484 /* end confdefs.h.  */
17485
17486         #include <sys/types.h>
17487         #ifdef HAVE_SYS_PARAM_H
17488         # include <sys/param.h>
17489         #endif
17490         #include <sys/vfs.h>
17491
17492 int
17493 main ()
17494 {
17495
17496                 struct statfs stfs;
17497
17498                 memset(&stfs,0,sizeof(stfs));
17499
17500   ;
17501   return 0;
17502 }
17503 _ACEOF
17504 rm -f conftest.$ac_objext
17505 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17506   (eval $ac_compile) 2>conftest.er1
17507   ac_status=$?
17508   grep -v '^ *+' conftest.er1 >conftest.err
17509   rm -f conftest.er1
17510   cat conftest.err >&5
17511   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17512   (exit $ac_status); } &&
17513          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
17514   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17515   (eval $ac_try) 2>&5
17516   ac_status=$?
17517   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17518   (exit $ac_status); }; } &&
17519          { ac_try='test -s conftest.$ac_objext'
17520   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17521   (eval $ac_try) 2>&5
17522   ac_status=$?
17523   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17524   (exit $ac_status); }; }; then
17525   wine_cv_sys_vfs_has_statfs=yes
17526 else
17527   echo "$as_me: failed program was:" >&5
17528 sed 's/^/| /' conftest.$ac_ext >&5
17529
17530 wine_cv_sys_vfs_has_statfs=no
17531
17532 fi
17533 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17534
17535 fi
17536 echo "$as_me:$LINENO: result: $wine_cv_sys_vfs_has_statfs" >&5
17537 echo "${ECHO_T}$wine_cv_sys_vfs_has_statfs" >&6
17538     if test "$wine_cv_sys_vfs_has_statfs" = "yes"
17539     then
17540
17541 cat >>confdefs.h <<\_ACEOF
17542 #define STATFS_DEFINED_BY_SYS_VFS 1
17543 _ACEOF
17544
17545     fi
17546 fi
17547
17548 if test "$ac_cv_header_sys_statfs_h" = "yes"
17549 then
17550     echo "$as_me:$LINENO: checking whether sys/statfs.h defines statfs" >&5
17551 echo $ECHO_N "checking whether sys/statfs.h defines statfs... $ECHO_C" >&6
17552 if test "${wine_cv_sys_statfs_has_statfs+set}" = set; then
17553   echo $ECHO_N "(cached) $ECHO_C" >&6
17554 else
17555   cat >conftest.$ac_ext <<_ACEOF
17556 /* confdefs.h.  */
17557 _ACEOF
17558 cat confdefs.h >>conftest.$ac_ext
17559 cat >>conftest.$ac_ext <<_ACEOF
17560 /* end confdefs.h.  */
17561
17562         #include <sys/types.h>
17563         #ifdef HAVE_SYS_PARAM_H
17564         # include <sys/param.h>
17565         #endif
17566         #include <sys/statfs.h>
17567
17568 int
17569 main ()
17570 {
17571
17572                 struct statfs stfs;
17573
17574   ;
17575   return 0;
17576 }
17577 _ACEOF
17578 rm -f conftest.$ac_objext
17579 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17580   (eval $ac_compile) 2>conftest.er1
17581   ac_status=$?
17582   grep -v '^ *+' conftest.er1 >conftest.err
17583   rm -f conftest.er1
17584   cat conftest.err >&5
17585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17586   (exit $ac_status); } &&
17587          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
17588   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17589   (eval $ac_try) 2>&5
17590   ac_status=$?
17591   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17592   (exit $ac_status); }; } &&
17593          { ac_try='test -s conftest.$ac_objext'
17594   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17595   (eval $ac_try) 2>&5
17596   ac_status=$?
17597   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17598   (exit $ac_status); }; }; then
17599   wine_cv_sys_statfs_has_statfs=yes
17600 else
17601   echo "$as_me: failed program was:" >&5
17602 sed 's/^/| /' conftest.$ac_ext >&5
17603
17604 wine_cv_sys_statfs_has_statfs=no
17605
17606 fi
17607 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17608
17609 fi
17610 echo "$as_me:$LINENO: result: $wine_cv_sys_statfs_has_statfs" >&5
17611 echo "${ECHO_T}$wine_cv_sys_statfs_has_statfs" >&6
17612     if test "$wine_cv_sys_statfs_has_statfs" = "yes"
17613     then
17614
17615 cat >>confdefs.h <<\_ACEOF
17616 #define STATFS_DEFINED_BY_SYS_STATFS 1
17617 _ACEOF
17618
17619     fi
17620 fi
17621
17622 if test "$ac_cv_header_sys_mount_h" = "yes"
17623 then
17624     echo "$as_me:$LINENO: checking whether sys/mount.h defines statfs" >&5
17625 echo $ECHO_N "checking whether sys/mount.h defines statfs... $ECHO_C" >&6
17626 if test "${wine_cv_sys_mount_has_statfs+set}" = set; then
17627   echo $ECHO_N "(cached) $ECHO_C" >&6
17628 else
17629   cat >conftest.$ac_ext <<_ACEOF
17630 /* confdefs.h.  */
17631 _ACEOF
17632 cat confdefs.h >>conftest.$ac_ext
17633 cat >>conftest.$ac_ext <<_ACEOF
17634 /* end confdefs.h.  */
17635
17636         #include <sys/types.h>
17637         #ifdef HAVE_SYS_PARAM_H
17638         # include <sys/param.h>
17639         #endif
17640         #include <sys/mount.h>
17641
17642 int
17643 main ()
17644 {
17645
17646                 struct statfs stfs;
17647
17648   ;
17649   return 0;
17650 }
17651 _ACEOF
17652 rm -f conftest.$ac_objext
17653 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17654   (eval $ac_compile) 2>conftest.er1
17655   ac_status=$?
17656   grep -v '^ *+' conftest.er1 >conftest.err
17657   rm -f conftest.er1
17658   cat conftest.err >&5
17659   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17660   (exit $ac_status); } &&
17661          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
17662   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17663   (eval $ac_try) 2>&5
17664   ac_status=$?
17665   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17666   (exit $ac_status); }; } &&
17667          { ac_try='test -s conftest.$ac_objext'
17668   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17669   (eval $ac_try) 2>&5
17670   ac_status=$?
17671   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17672   (exit $ac_status); }; }; then
17673   wine_cv_sys_mount_has_statfs=yes
17674 else
17675   echo "$as_me: failed program was:" >&5
17676 sed 's/^/| /' conftest.$ac_ext >&5
17677
17678 wine_cv_sys_mount_has_statfs=no
17679
17680 fi
17681 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17682
17683 fi
17684 echo "$as_me:$LINENO: result: $wine_cv_sys_mount_has_statfs" >&5
17685 echo "${ECHO_T}$wine_cv_sys_mount_has_statfs" >&6
17686     if test "$wine_cv_sys_mount_has_statfs" = "yes"
17687     then
17688
17689 cat >>confdefs.h <<\_ACEOF
17690 #define STATFS_DEFINED_BY_SYS_MOUNT 1
17691 _ACEOF
17692
17693     fi
17694 fi
17695
17696
17697 echo "$as_me:$LINENO: checking for struct statfs.f_bfree" >&5
17698 echo $ECHO_N "checking for struct statfs.f_bfree... $ECHO_C" >&6
17699 if test "${ac_cv_member_struct_statfs_f_bfree+set}" = set; then
17700   echo $ECHO_N "(cached) $ECHO_C" >&6
17701 else
17702   cat >conftest.$ac_ext <<_ACEOF
17703 /* confdefs.h.  */
17704 _ACEOF
17705 cat confdefs.h >>conftest.$ac_ext
17706 cat >>conftest.$ac_ext <<_ACEOF
17707 /* end confdefs.h.  */
17708 #include <sys/types.h>
17709 #ifdef HAVE_SYS_PARAM_H
17710 # include <sys/param.h>
17711 #endif
17712 #ifdef STATFS_DEFINED_BY_SYS_MOUNT
17713 # include <sys/mount.h>
17714 #else
17715 # ifdef STATFS_DEFINED_BY_SYS_VFS
17716 #  include <sys/vfs.h>
17717 # else
17718 #  ifdef STATFS_DEFINED_BY_SYS_STATFS
17719 #   include <sys/statfs.h>
17720 #  endif
17721 # endif
17722 #endif
17723
17724 int
17725 main ()
17726 {
17727 static struct statfs ac_aggr;
17728 if (ac_aggr.f_bfree)
17729 return 0;
17730   ;
17731   return 0;
17732 }
17733 _ACEOF
17734 rm -f conftest.$ac_objext
17735 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17736   (eval $ac_compile) 2>conftest.er1
17737   ac_status=$?
17738   grep -v '^ *+' conftest.er1 >conftest.err
17739   rm -f conftest.er1
17740   cat conftest.err >&5
17741   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17742   (exit $ac_status); } &&
17743          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
17744   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17745   (eval $ac_try) 2>&5
17746   ac_status=$?
17747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17748   (exit $ac_status); }; } &&
17749          { ac_try='test -s conftest.$ac_objext'
17750   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17751   (eval $ac_try) 2>&5
17752   ac_status=$?
17753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17754   (exit $ac_status); }; }; then
17755   ac_cv_member_struct_statfs_f_bfree=yes
17756 else
17757   echo "$as_me: failed program was:" >&5
17758 sed 's/^/| /' conftest.$ac_ext >&5
17759
17760 cat >conftest.$ac_ext <<_ACEOF
17761 /* confdefs.h.  */
17762 _ACEOF
17763 cat confdefs.h >>conftest.$ac_ext
17764 cat >>conftest.$ac_ext <<_ACEOF
17765 /* end confdefs.h.  */
17766 #include <sys/types.h>
17767 #ifdef HAVE_SYS_PARAM_H
17768 # include <sys/param.h>
17769 #endif
17770 #ifdef STATFS_DEFINED_BY_SYS_MOUNT
17771 # include <sys/mount.h>
17772 #else
17773 # ifdef STATFS_DEFINED_BY_SYS_VFS
17774 #  include <sys/vfs.h>
17775 # else
17776 #  ifdef STATFS_DEFINED_BY_SYS_STATFS
17777 #   include <sys/statfs.h>
17778 #  endif
17779 # endif
17780 #endif
17781
17782 int
17783 main ()
17784 {
17785 static struct statfs ac_aggr;
17786 if (sizeof ac_aggr.f_bfree)
17787 return 0;
17788   ;
17789   return 0;
17790 }
17791 _ACEOF
17792 rm -f conftest.$ac_objext
17793 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17794   (eval $ac_compile) 2>conftest.er1
17795   ac_status=$?
17796   grep -v '^ *+' conftest.er1 >conftest.err
17797   rm -f conftest.er1
17798   cat conftest.err >&5
17799   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17800   (exit $ac_status); } &&
17801          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
17802   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17803   (eval $ac_try) 2>&5
17804   ac_status=$?
17805   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17806   (exit $ac_status); }; } &&
17807          { ac_try='test -s conftest.$ac_objext'
17808   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17809   (eval $ac_try) 2>&5
17810   ac_status=$?
17811   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17812   (exit $ac_status); }; }; then
17813   ac_cv_member_struct_statfs_f_bfree=yes
17814 else
17815   echo "$as_me: failed program was:" >&5
17816 sed 's/^/| /' conftest.$ac_ext >&5
17817
17818 ac_cv_member_struct_statfs_f_bfree=no
17819 fi
17820 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17821 fi
17822 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17823 fi
17824 echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_bfree" >&5
17825 echo "${ECHO_T}$ac_cv_member_struct_statfs_f_bfree" >&6
17826 if test $ac_cv_member_struct_statfs_f_bfree = yes; then
17827
17828 cat >>confdefs.h <<_ACEOF
17829 #define HAVE_STRUCT_STATFS_F_BFREE 1
17830 _ACEOF
17831
17832
17833 fi
17834 echo "$as_me:$LINENO: checking for struct statfs.f_bavail" >&5
17835 echo $ECHO_N "checking for struct statfs.f_bavail... $ECHO_C" >&6
17836 if test "${ac_cv_member_struct_statfs_f_bavail+set}" = set; then
17837   echo $ECHO_N "(cached) $ECHO_C" >&6
17838 else
17839   cat >conftest.$ac_ext <<_ACEOF
17840 /* confdefs.h.  */
17841 _ACEOF
17842 cat confdefs.h >>conftest.$ac_ext
17843 cat >>conftest.$ac_ext <<_ACEOF
17844 /* end confdefs.h.  */
17845 #include <sys/types.h>
17846 #ifdef HAVE_SYS_PARAM_H
17847 # include <sys/param.h>
17848 #endif
17849 #ifdef STATFS_DEFINED_BY_SYS_MOUNT
17850 # include <sys/mount.h>
17851 #else
17852 # ifdef STATFS_DEFINED_BY_SYS_VFS
17853 #  include <sys/vfs.h>
17854 # else
17855 #  ifdef STATFS_DEFINED_BY_SYS_STATFS
17856 #   include <sys/statfs.h>
17857 #  endif
17858 # endif
17859 #endif
17860
17861 int
17862 main ()
17863 {
17864 static struct statfs ac_aggr;
17865 if (ac_aggr.f_bavail)
17866 return 0;
17867   ;
17868   return 0;
17869 }
17870 _ACEOF
17871 rm -f conftest.$ac_objext
17872 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17873   (eval $ac_compile) 2>conftest.er1
17874   ac_status=$?
17875   grep -v '^ *+' conftest.er1 >conftest.err
17876   rm -f conftest.er1
17877   cat conftest.err >&5
17878   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17879   (exit $ac_status); } &&
17880          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
17881   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17882   (eval $ac_try) 2>&5
17883   ac_status=$?
17884   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17885   (exit $ac_status); }; } &&
17886          { ac_try='test -s conftest.$ac_objext'
17887   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17888   (eval $ac_try) 2>&5
17889   ac_status=$?
17890   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17891   (exit $ac_status); }; }; then
17892   ac_cv_member_struct_statfs_f_bavail=yes
17893 else
17894   echo "$as_me: failed program was:" >&5
17895 sed 's/^/| /' conftest.$ac_ext >&5
17896
17897 cat >conftest.$ac_ext <<_ACEOF
17898 /* confdefs.h.  */
17899 _ACEOF
17900 cat confdefs.h >>conftest.$ac_ext
17901 cat >>conftest.$ac_ext <<_ACEOF
17902 /* end confdefs.h.  */
17903 #include <sys/types.h>
17904 #ifdef HAVE_SYS_PARAM_H
17905 # include <sys/param.h>
17906 #endif
17907 #ifdef STATFS_DEFINED_BY_SYS_MOUNT
17908 # include <sys/mount.h>
17909 #else
17910 # ifdef STATFS_DEFINED_BY_SYS_VFS
17911 #  include <sys/vfs.h>
17912 # else
17913 #  ifdef STATFS_DEFINED_BY_SYS_STATFS
17914 #   include <sys/statfs.h>
17915 #  endif
17916 # endif
17917 #endif
17918
17919 int
17920 main ()
17921 {
17922 static struct statfs ac_aggr;
17923 if (sizeof ac_aggr.f_bavail)
17924 return 0;
17925   ;
17926   return 0;
17927 }
17928 _ACEOF
17929 rm -f conftest.$ac_objext
17930 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17931   (eval $ac_compile) 2>conftest.er1
17932   ac_status=$?
17933   grep -v '^ *+' conftest.er1 >conftest.err
17934   rm -f conftest.er1
17935   cat conftest.err >&5
17936   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17937   (exit $ac_status); } &&
17938          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
17939   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17940   (eval $ac_try) 2>&5
17941   ac_status=$?
17942   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17943   (exit $ac_status); }; } &&
17944          { ac_try='test -s conftest.$ac_objext'
17945   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17946   (eval $ac_try) 2>&5
17947   ac_status=$?
17948   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17949   (exit $ac_status); }; }; then
17950   ac_cv_member_struct_statfs_f_bavail=yes
17951 else
17952   echo "$as_me: failed program was:" >&5
17953 sed 's/^/| /' conftest.$ac_ext >&5
17954
17955 ac_cv_member_struct_statfs_f_bavail=no
17956 fi
17957 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17958 fi
17959 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17960 fi
17961 echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_bavail" >&5
17962 echo "${ECHO_T}$ac_cv_member_struct_statfs_f_bavail" >&6
17963 if test $ac_cv_member_struct_statfs_f_bavail = yes; then
17964
17965 cat >>confdefs.h <<_ACEOF
17966 #define HAVE_STRUCT_STATFS_F_BAVAIL 1
17967 _ACEOF
17968
17969
17970 fi
17971
17972
17973 echo "$as_me:$LINENO: checking for struct msghdr.msg_accrights" >&5
17974 echo $ECHO_N "checking for struct msghdr.msg_accrights... $ECHO_C" >&6
17975 if test "${ac_cv_member_struct_msghdr_msg_accrights+set}" = set; then
17976   echo $ECHO_N "(cached) $ECHO_C" >&6
17977 else
17978   cat >conftest.$ac_ext <<_ACEOF
17979 /* confdefs.h.  */
17980 _ACEOF
17981 cat confdefs.h >>conftest.$ac_ext
17982 cat >>conftest.$ac_ext <<_ACEOF
17983 /* end confdefs.h.  */
17984 #include <sys/types.h>
17985 #ifdef HAVE_SYS_SOCKET_H
17986 # include <sys/socket.h>
17987 #endif
17988 #ifdef HAVE_SYS_UN_H
17989 # include <sys/un.h>
17990 #endif
17991
17992 int
17993 main ()
17994 {
17995 static struct msghdr ac_aggr;
17996 if (ac_aggr.msg_accrights)
17997 return 0;
17998   ;
17999   return 0;
18000 }
18001 _ACEOF
18002 rm -f conftest.$ac_objext
18003 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18004   (eval $ac_compile) 2>conftest.er1
18005   ac_status=$?
18006   grep -v '^ *+' conftest.er1 >conftest.err
18007   rm -f conftest.er1
18008   cat conftest.err >&5
18009   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18010   (exit $ac_status); } &&
18011          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
18012   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18013   (eval $ac_try) 2>&5
18014   ac_status=$?
18015   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18016   (exit $ac_status); }; } &&
18017          { ac_try='test -s conftest.$ac_objext'
18018   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18019   (eval $ac_try) 2>&5
18020   ac_status=$?
18021   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18022   (exit $ac_status); }; }; then
18023   ac_cv_member_struct_msghdr_msg_accrights=yes
18024 else
18025   echo "$as_me: failed program was:" >&5
18026 sed 's/^/| /' conftest.$ac_ext >&5
18027
18028 cat >conftest.$ac_ext <<_ACEOF
18029 /* confdefs.h.  */
18030 _ACEOF
18031 cat confdefs.h >>conftest.$ac_ext
18032 cat >>conftest.$ac_ext <<_ACEOF
18033 /* end confdefs.h.  */
18034 #include <sys/types.h>
18035 #ifdef HAVE_SYS_SOCKET_H
18036 # include <sys/socket.h>
18037 #endif
18038 #ifdef HAVE_SYS_UN_H
18039 # include <sys/un.h>
18040 #endif
18041
18042 int
18043 main ()
18044 {
18045 static struct msghdr ac_aggr;
18046 if (sizeof ac_aggr.msg_accrights)
18047 return 0;
18048   ;
18049   return 0;
18050 }
18051 _ACEOF
18052 rm -f conftest.$ac_objext
18053 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18054   (eval $ac_compile) 2>conftest.er1
18055   ac_status=$?
18056   grep -v '^ *+' conftest.er1 >conftest.err
18057   rm -f conftest.er1
18058   cat conftest.err >&5
18059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18060   (exit $ac_status); } &&
18061          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
18062   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18063   (eval $ac_try) 2>&5
18064   ac_status=$?
18065   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18066   (exit $ac_status); }; } &&
18067          { ac_try='test -s conftest.$ac_objext'
18068   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18069   (eval $ac_try) 2>&5
18070   ac_status=$?
18071   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18072   (exit $ac_status); }; }; then
18073   ac_cv_member_struct_msghdr_msg_accrights=yes
18074 else
18075   echo "$as_me: failed program was:" >&5
18076 sed 's/^/| /' conftest.$ac_ext >&5
18077
18078 ac_cv_member_struct_msghdr_msg_accrights=no
18079 fi
18080 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18081 fi
18082 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18083 fi
18084 echo "$as_me:$LINENO: result: $ac_cv_member_struct_msghdr_msg_accrights" >&5
18085 echo "${ECHO_T}$ac_cv_member_struct_msghdr_msg_accrights" >&6
18086 if test $ac_cv_member_struct_msghdr_msg_accrights = yes; then
18087
18088 cat >>confdefs.h <<_ACEOF
18089 #define HAVE_STRUCT_MSGHDR_MSG_ACCRIGHTS 1
18090 _ACEOF
18091
18092
18093 fi
18094 echo "$as_me:$LINENO: checking for struct sockaddr.sa_len" >&5
18095 echo $ECHO_N "checking for struct sockaddr.sa_len... $ECHO_C" >&6
18096 if test "${ac_cv_member_struct_sockaddr_sa_len+set}" = set; then
18097   echo $ECHO_N "(cached) $ECHO_C" >&6
18098 else
18099   cat >conftest.$ac_ext <<_ACEOF
18100 /* confdefs.h.  */
18101 _ACEOF
18102 cat confdefs.h >>conftest.$ac_ext
18103 cat >>conftest.$ac_ext <<_ACEOF
18104 /* end confdefs.h.  */
18105 #include <sys/types.h>
18106 #ifdef HAVE_SYS_SOCKET_H
18107 # include <sys/socket.h>
18108 #endif
18109 #ifdef HAVE_SYS_UN_H
18110 # include <sys/un.h>
18111 #endif
18112
18113 int
18114 main ()
18115 {
18116 static struct sockaddr ac_aggr;
18117 if (ac_aggr.sa_len)
18118 return 0;
18119   ;
18120   return 0;
18121 }
18122 _ACEOF
18123 rm -f conftest.$ac_objext
18124 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18125   (eval $ac_compile) 2>conftest.er1
18126   ac_status=$?
18127   grep -v '^ *+' conftest.er1 >conftest.err
18128   rm -f conftest.er1
18129   cat conftest.err >&5
18130   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18131   (exit $ac_status); } &&
18132          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
18133   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18134   (eval $ac_try) 2>&5
18135   ac_status=$?
18136   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18137   (exit $ac_status); }; } &&
18138          { ac_try='test -s conftest.$ac_objext'
18139   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18140   (eval $ac_try) 2>&5
18141   ac_status=$?
18142   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18143   (exit $ac_status); }; }; then
18144   ac_cv_member_struct_sockaddr_sa_len=yes
18145 else
18146   echo "$as_me: failed program was:" >&5
18147 sed 's/^/| /' conftest.$ac_ext >&5
18148
18149 cat >conftest.$ac_ext <<_ACEOF
18150 /* confdefs.h.  */
18151 _ACEOF
18152 cat confdefs.h >>conftest.$ac_ext
18153 cat >>conftest.$ac_ext <<_ACEOF
18154 /* end confdefs.h.  */
18155 #include <sys/types.h>
18156 #ifdef HAVE_SYS_SOCKET_H
18157 # include <sys/socket.h>
18158 #endif
18159 #ifdef HAVE_SYS_UN_H
18160 # include <sys/un.h>
18161 #endif
18162
18163 int
18164 main ()
18165 {
18166 static struct sockaddr ac_aggr;
18167 if (sizeof ac_aggr.sa_len)
18168 return 0;
18169   ;
18170   return 0;
18171 }
18172 _ACEOF
18173 rm -f conftest.$ac_objext
18174 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18175   (eval $ac_compile) 2>conftest.er1
18176   ac_status=$?
18177   grep -v '^ *+' conftest.er1 >conftest.err
18178   rm -f conftest.er1
18179   cat conftest.err >&5
18180   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18181   (exit $ac_status); } &&
18182          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
18183   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18184   (eval $ac_try) 2>&5
18185   ac_status=$?
18186   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18187   (exit $ac_status); }; } &&
18188          { ac_try='test -s conftest.$ac_objext'
18189   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18190   (eval $ac_try) 2>&5
18191   ac_status=$?
18192   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18193   (exit $ac_status); }; }; then
18194   ac_cv_member_struct_sockaddr_sa_len=yes
18195 else
18196   echo "$as_me: failed program was:" >&5
18197 sed 's/^/| /' conftest.$ac_ext >&5
18198
18199 ac_cv_member_struct_sockaddr_sa_len=no
18200 fi
18201 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18202 fi
18203 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18204 fi
18205 echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_sa_len" >&5
18206 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_sa_len" >&6
18207 if test $ac_cv_member_struct_sockaddr_sa_len = yes; then
18208
18209 cat >>confdefs.h <<_ACEOF
18210 #define HAVE_STRUCT_SOCKADDR_SA_LEN 1
18211 _ACEOF
18212
18213
18214 fi
18215 echo "$as_me:$LINENO: checking for struct sockaddr_un.sun_len" >&5
18216 echo $ECHO_N "checking for struct sockaddr_un.sun_len... $ECHO_C" >&6
18217 if test "${ac_cv_member_struct_sockaddr_un_sun_len+set}" = set; then
18218   echo $ECHO_N "(cached) $ECHO_C" >&6
18219 else
18220   cat >conftest.$ac_ext <<_ACEOF
18221 /* confdefs.h.  */
18222 _ACEOF
18223 cat confdefs.h >>conftest.$ac_ext
18224 cat >>conftest.$ac_ext <<_ACEOF
18225 /* end confdefs.h.  */
18226 #include <sys/types.h>
18227 #ifdef HAVE_SYS_SOCKET_H
18228 # include <sys/socket.h>
18229 #endif
18230 #ifdef HAVE_SYS_UN_H
18231 # include <sys/un.h>
18232 #endif
18233
18234 int
18235 main ()
18236 {
18237 static struct sockaddr_un ac_aggr;
18238 if (ac_aggr.sun_len)
18239 return 0;
18240   ;
18241   return 0;
18242 }
18243 _ACEOF
18244 rm -f conftest.$ac_objext
18245 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18246   (eval $ac_compile) 2>conftest.er1
18247   ac_status=$?
18248   grep -v '^ *+' conftest.er1 >conftest.err
18249   rm -f conftest.er1
18250   cat conftest.err >&5
18251   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18252   (exit $ac_status); } &&
18253          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
18254   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18255   (eval $ac_try) 2>&5
18256   ac_status=$?
18257   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18258   (exit $ac_status); }; } &&
18259          { ac_try='test -s conftest.$ac_objext'
18260   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18261   (eval $ac_try) 2>&5
18262   ac_status=$?
18263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18264   (exit $ac_status); }; }; then
18265   ac_cv_member_struct_sockaddr_un_sun_len=yes
18266 else
18267   echo "$as_me: failed program was:" >&5
18268 sed 's/^/| /' conftest.$ac_ext >&5
18269
18270 cat >conftest.$ac_ext <<_ACEOF
18271 /* confdefs.h.  */
18272 _ACEOF
18273 cat confdefs.h >>conftest.$ac_ext
18274 cat >>conftest.$ac_ext <<_ACEOF
18275 /* end confdefs.h.  */
18276 #include <sys/types.h>
18277 #ifdef HAVE_SYS_SOCKET_H
18278 # include <sys/socket.h>
18279 #endif
18280 #ifdef HAVE_SYS_UN_H
18281 # include <sys/un.h>
18282 #endif
18283
18284 int
18285 main ()
18286 {
18287 static struct sockaddr_un ac_aggr;
18288 if (sizeof ac_aggr.sun_len)
18289 return 0;
18290   ;
18291   return 0;
18292 }
18293 _ACEOF
18294 rm -f conftest.$ac_objext
18295 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18296   (eval $ac_compile) 2>conftest.er1
18297   ac_status=$?
18298   grep -v '^ *+' conftest.er1 >conftest.err
18299   rm -f conftest.er1
18300   cat conftest.err >&5
18301   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18302   (exit $ac_status); } &&
18303          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
18304   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18305   (eval $ac_try) 2>&5
18306   ac_status=$?
18307   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18308   (exit $ac_status); }; } &&
18309          { ac_try='test -s conftest.$ac_objext'
18310   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18311   (eval $ac_try) 2>&5
18312   ac_status=$?
18313   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18314   (exit $ac_status); }; }; then
18315   ac_cv_member_struct_sockaddr_un_sun_len=yes
18316 else
18317   echo "$as_me: failed program was:" >&5
18318 sed 's/^/| /' conftest.$ac_ext >&5
18319
18320 ac_cv_member_struct_sockaddr_un_sun_len=no
18321 fi
18322 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18323 fi
18324 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18325 fi
18326 echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_un_sun_len" >&5
18327 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_un_sun_len" >&6
18328 if test $ac_cv_member_struct_sockaddr_un_sun_len = yes; then
18329
18330 cat >>confdefs.h <<_ACEOF
18331 #define HAVE_STRUCT_SOCKADDR_UN_SUN_LEN 1
18332 _ACEOF
18333
18334
18335 fi
18336
18337
18338 echo "$as_me:$LINENO: checking for siginfo_t.si_fd" >&5
18339 echo $ECHO_N "checking for siginfo_t.si_fd... $ECHO_C" >&6
18340 if test "${ac_cv_member_siginfo_t_si_fd+set}" = set; then
18341   echo $ECHO_N "(cached) $ECHO_C" >&6
18342 else
18343   cat >conftest.$ac_ext <<_ACEOF
18344 /* confdefs.h.  */
18345 _ACEOF
18346 cat confdefs.h >>conftest.$ac_ext
18347 cat >>conftest.$ac_ext <<_ACEOF
18348 /* end confdefs.h.  */
18349 #include <signal.h>
18350
18351 int
18352 main ()
18353 {
18354 static siginfo_t ac_aggr;
18355 if (ac_aggr.si_fd)
18356 return 0;
18357   ;
18358   return 0;
18359 }
18360 _ACEOF
18361 rm -f conftest.$ac_objext
18362 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18363   (eval $ac_compile) 2>conftest.er1
18364   ac_status=$?
18365   grep -v '^ *+' conftest.er1 >conftest.err
18366   rm -f conftest.er1
18367   cat conftest.err >&5
18368   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18369   (exit $ac_status); } &&
18370          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
18371   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18372   (eval $ac_try) 2>&5
18373   ac_status=$?
18374   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18375   (exit $ac_status); }; } &&
18376          { ac_try='test -s conftest.$ac_objext'
18377   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18378   (eval $ac_try) 2>&5
18379   ac_status=$?
18380   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18381   (exit $ac_status); }; }; then
18382   ac_cv_member_siginfo_t_si_fd=yes
18383 else
18384   echo "$as_me: failed program was:" >&5
18385 sed 's/^/| /' conftest.$ac_ext >&5
18386
18387 cat >conftest.$ac_ext <<_ACEOF
18388 /* confdefs.h.  */
18389 _ACEOF
18390 cat confdefs.h >>conftest.$ac_ext
18391 cat >>conftest.$ac_ext <<_ACEOF
18392 /* end confdefs.h.  */
18393 #include <signal.h>
18394
18395 int
18396 main ()
18397 {
18398 static siginfo_t ac_aggr;
18399 if (sizeof ac_aggr.si_fd)
18400 return 0;
18401   ;
18402   return 0;
18403 }
18404 _ACEOF
18405 rm -f conftest.$ac_objext
18406 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18407   (eval $ac_compile) 2>conftest.er1
18408   ac_status=$?
18409   grep -v '^ *+' conftest.er1 >conftest.err
18410   rm -f conftest.er1
18411   cat conftest.err >&5
18412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18413   (exit $ac_status); } &&
18414          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
18415   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18416   (eval $ac_try) 2>&5
18417   ac_status=$?
18418   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18419   (exit $ac_status); }; } &&
18420          { ac_try='test -s conftest.$ac_objext'
18421   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18422   (eval $ac_try) 2>&5
18423   ac_status=$?
18424   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18425   (exit $ac_status); }; }; then
18426   ac_cv_member_siginfo_t_si_fd=yes
18427 else
18428   echo "$as_me: failed program was:" >&5
18429 sed 's/^/| /' conftest.$ac_ext >&5
18430
18431 ac_cv_member_siginfo_t_si_fd=no
18432 fi
18433 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18434 fi
18435 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18436 fi
18437 echo "$as_me:$LINENO: result: $ac_cv_member_siginfo_t_si_fd" >&5
18438 echo "${ECHO_T}$ac_cv_member_siginfo_t_si_fd" >&6
18439 if test $ac_cv_member_siginfo_t_si_fd = yes; then
18440
18441 cat >>confdefs.h <<_ACEOF
18442 #define HAVE_SIGINFO_T_SI_FD 1
18443 _ACEOF
18444
18445
18446 fi
18447
18448
18449 echo "$as_me:$LINENO: checking for struct option.name" >&5
18450 echo $ECHO_N "checking for struct option.name... $ECHO_C" >&6
18451 if test "${ac_cv_member_struct_option_name+set}" = set; then
18452   echo $ECHO_N "(cached) $ECHO_C" >&6
18453 else
18454   cat >conftest.$ac_ext <<_ACEOF
18455 /* confdefs.h.  */
18456 _ACEOF
18457 cat confdefs.h >>conftest.$ac_ext
18458 cat >>conftest.$ac_ext <<_ACEOF
18459 /* end confdefs.h.  */
18460 #ifdef HAVE_GETOPT_H
18461 #include <getopt.h>
18462 #endif
18463
18464 int
18465 main ()
18466 {
18467 static struct option ac_aggr;
18468 if (ac_aggr.name)
18469 return 0;
18470   ;
18471   return 0;
18472 }
18473 _ACEOF
18474 rm -f conftest.$ac_objext
18475 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18476   (eval $ac_compile) 2>conftest.er1
18477   ac_status=$?
18478   grep -v '^ *+' conftest.er1 >conftest.err
18479   rm -f conftest.er1
18480   cat conftest.err >&5
18481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18482   (exit $ac_status); } &&
18483          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
18484   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18485   (eval $ac_try) 2>&5
18486   ac_status=$?
18487   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18488   (exit $ac_status); }; } &&
18489          { ac_try='test -s conftest.$ac_objext'
18490   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18491   (eval $ac_try) 2>&5
18492   ac_status=$?
18493   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18494   (exit $ac_status); }; }; then
18495   ac_cv_member_struct_option_name=yes
18496 else
18497   echo "$as_me: failed program was:" >&5
18498 sed 's/^/| /' conftest.$ac_ext >&5
18499
18500 cat >conftest.$ac_ext <<_ACEOF
18501 /* confdefs.h.  */
18502 _ACEOF
18503 cat confdefs.h >>conftest.$ac_ext
18504 cat >>conftest.$ac_ext <<_ACEOF
18505 /* end confdefs.h.  */
18506 #ifdef HAVE_GETOPT_H
18507 #include <getopt.h>
18508 #endif
18509
18510 int
18511 main ()
18512 {
18513 static struct option ac_aggr;
18514 if (sizeof ac_aggr.name)
18515 return 0;
18516   ;
18517   return 0;
18518 }
18519 _ACEOF
18520 rm -f conftest.$ac_objext
18521 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18522   (eval $ac_compile) 2>conftest.er1
18523   ac_status=$?
18524   grep -v '^ *+' conftest.er1 >conftest.err
18525   rm -f conftest.er1
18526   cat conftest.err >&5
18527   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18528   (exit $ac_status); } &&
18529          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
18530   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18531   (eval $ac_try) 2>&5
18532   ac_status=$?
18533   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18534   (exit $ac_status); }; } &&
18535          { ac_try='test -s conftest.$ac_objext'
18536   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18537   (eval $ac_try) 2>&5
18538   ac_status=$?
18539   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18540   (exit $ac_status); }; }; then
18541   ac_cv_member_struct_option_name=yes
18542 else
18543   echo "$as_me: failed program was:" >&5
18544 sed 's/^/| /' conftest.$ac_ext >&5
18545
18546 ac_cv_member_struct_option_name=no
18547 fi
18548 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18549 fi
18550 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18551 fi
18552 echo "$as_me:$LINENO: result: $ac_cv_member_struct_option_name" >&5
18553 echo "${ECHO_T}$ac_cv_member_struct_option_name" >&6
18554 if test $ac_cv_member_struct_option_name = yes; then
18555
18556 cat >>confdefs.h <<_ACEOF
18557 #define HAVE_STRUCT_OPTION_NAME 1
18558 _ACEOF
18559
18560
18561 fi
18562
18563
18564 echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
18565 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
18566 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
18567   echo $ECHO_N "(cached) $ECHO_C" >&6
18568 else
18569   cat >conftest.$ac_ext <<_ACEOF
18570 /* confdefs.h.  */
18571 _ACEOF
18572 cat confdefs.h >>conftest.$ac_ext
18573 cat >>conftest.$ac_ext <<_ACEOF
18574 /* end confdefs.h.  */
18575 $ac_includes_default
18576 int
18577 main ()
18578 {
18579 static struct stat ac_aggr;
18580 if (ac_aggr.st_blocks)
18581 return 0;
18582   ;
18583   return 0;
18584 }
18585 _ACEOF
18586 rm -f conftest.$ac_objext
18587 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18588   (eval $ac_compile) 2>conftest.er1
18589   ac_status=$?
18590   grep -v '^ *+' conftest.er1 >conftest.err
18591   rm -f conftest.er1
18592   cat conftest.err >&5
18593   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18594   (exit $ac_status); } &&
18595          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
18596   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18597   (eval $ac_try) 2>&5
18598   ac_status=$?
18599   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18600   (exit $ac_status); }; } &&
18601          { ac_try='test -s conftest.$ac_objext'
18602   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18603   (eval $ac_try) 2>&5
18604   ac_status=$?
18605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18606   (exit $ac_status); }; }; then
18607   ac_cv_member_struct_stat_st_blocks=yes
18608 else
18609   echo "$as_me: failed program was:" >&5
18610 sed 's/^/| /' conftest.$ac_ext >&5
18611
18612 cat >conftest.$ac_ext <<_ACEOF
18613 /* confdefs.h.  */
18614 _ACEOF
18615 cat confdefs.h >>conftest.$ac_ext
18616 cat >>conftest.$ac_ext <<_ACEOF
18617 /* end confdefs.h.  */
18618 $ac_includes_default
18619 int
18620 main ()
18621 {
18622 static struct stat ac_aggr;
18623 if (sizeof ac_aggr.st_blocks)
18624 return 0;
18625   ;
18626   return 0;
18627 }
18628 _ACEOF
18629 rm -f conftest.$ac_objext
18630 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18631   (eval $ac_compile) 2>conftest.er1
18632   ac_status=$?
18633   grep -v '^ *+' conftest.er1 >conftest.err
18634   rm -f conftest.er1
18635   cat conftest.err >&5
18636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18637   (exit $ac_status); } &&
18638          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
18639   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18640   (eval $ac_try) 2>&5
18641   ac_status=$?
18642   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18643   (exit $ac_status); }; } &&
18644          { ac_try='test -s conftest.$ac_objext'
18645   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18646   (eval $ac_try) 2>&5
18647   ac_status=$?
18648   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18649   (exit $ac_status); }; }; then
18650   ac_cv_member_struct_stat_st_blocks=yes
18651 else
18652   echo "$as_me: failed program was:" >&5
18653 sed 's/^/| /' conftest.$ac_ext >&5
18654
18655 ac_cv_member_struct_stat_st_blocks=no
18656 fi
18657 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18658 fi
18659 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18660 fi
18661 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
18662 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
18663 if test $ac_cv_member_struct_stat_st_blocks = yes; then
18664
18665 cat >>confdefs.h <<_ACEOF
18666 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
18667 _ACEOF
18668
18669
18670 fi
18671
18672
18673
18674 case $host_cpu in
18675   *i[3456789]86*) echo "$as_me:$LINENO: checking whether we need to define __i386__" >&5
18676 echo $ECHO_N "checking whether we need to define __i386__... $ECHO_C" >&6
18677 if test "${ac_cv_cpp_def___i386__+set}" = set; then
18678   echo $ECHO_N "(cached) $ECHO_C" >&6
18679 else
18680   cat >conftest.$ac_ext <<_ACEOF
18681 /* confdefs.h.  */
18682 _ACEOF
18683 cat confdefs.h >>conftest.$ac_ext
18684 cat >>conftest.$ac_ext <<_ACEOF
18685 /* end confdefs.h.  */
18686 #ifndef __i386__
18687 yes
18688 #endif
18689 _ACEOF
18690 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18691   $EGREP "yes" >/dev/null 2>&1; then
18692   ac_cv_cpp_def___i386__=yes
18693 else
18694   ac_cv_cpp_def___i386__=no
18695 fi
18696 rm -f conftest*
18697
18698 fi
18699 echo "$as_me:$LINENO: result: $ac_cv_cpp_def___i386__" >&5
18700 echo "${ECHO_T}$ac_cv_cpp_def___i386__" >&6
18701 if test $ac_cv_cpp_def___i386__ = yes; then
18702   CFLAGS="$CFLAGS -D__i386__"
18703   LINTFLAGS="$LINTFLAGS -D__i386__"
18704 fi
18705  ;;
18706   *alpha*)          echo "$as_me:$LINENO: checking whether we need to define __ALPHA__" >&5
18707 echo $ECHO_N "checking whether we need to define __ALPHA__... $ECHO_C" >&6
18708 if test "${ac_cv_cpp_def___ALPHA__+set}" = set; then
18709   echo $ECHO_N "(cached) $ECHO_C" >&6
18710 else
18711   cat >conftest.$ac_ext <<_ACEOF
18712 /* confdefs.h.  */
18713 _ACEOF
18714 cat confdefs.h >>conftest.$ac_ext
18715 cat >>conftest.$ac_ext <<_ACEOF
18716 /* end confdefs.h.  */
18717 #ifndef __ALPHA__
18718 yes
18719 #endif
18720 _ACEOF
18721 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18722   $EGREP "yes" >/dev/null 2>&1; then
18723   ac_cv_cpp_def___ALPHA__=yes
18724 else
18725   ac_cv_cpp_def___ALPHA__=no
18726 fi
18727 rm -f conftest*
18728
18729 fi
18730 echo "$as_me:$LINENO: result: $ac_cv_cpp_def___ALPHA__" >&5
18731 echo "${ECHO_T}$ac_cv_cpp_def___ALPHA__" >&6
18732 if test $ac_cv_cpp_def___ALPHA__ = yes; then
18733   CFLAGS="$CFLAGS -D__ALPHA__"
18734   LINTFLAGS="$LINTFLAGS -D__ALPHA__"
18735 fi
18736  ;;
18737   *sparc*)          echo "$as_me:$LINENO: checking whether we need to define __sparc__" >&5
18738 echo $ECHO_N "checking whether we need to define __sparc__... $ECHO_C" >&6
18739 if test "${ac_cv_cpp_def___sparc__+set}" = set; then
18740   echo $ECHO_N "(cached) $ECHO_C" >&6
18741 else
18742   cat >conftest.$ac_ext <<_ACEOF
18743 /* confdefs.h.  */
18744 _ACEOF
18745 cat confdefs.h >>conftest.$ac_ext
18746 cat >>conftest.$ac_ext <<_ACEOF
18747 /* end confdefs.h.  */
18748 #ifndef __sparc__
18749 yes
18750 #endif
18751 _ACEOF
18752 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18753   $EGREP "yes" >/dev/null 2>&1; then
18754   ac_cv_cpp_def___sparc__=yes
18755 else
18756   ac_cv_cpp_def___sparc__=no
18757 fi
18758 rm -f conftest*
18759
18760 fi
18761 echo "$as_me:$LINENO: result: $ac_cv_cpp_def___sparc__" >&5
18762 echo "${ECHO_T}$ac_cv_cpp_def___sparc__" >&6
18763 if test $ac_cv_cpp_def___sparc__ = yes; then
18764   CFLAGS="$CFLAGS -D__sparc__"
18765   LINTFLAGS="$LINTFLAGS -D__sparc__"
18766 fi
18767  ;;
18768   *powerpc*)        echo "$as_me:$LINENO: checking whether we need to define __powerpc__" >&5
18769 echo $ECHO_N "checking whether we need to define __powerpc__... $ECHO_C" >&6
18770 if test "${ac_cv_cpp_def___powerpc__+set}" = set; then
18771   echo $ECHO_N "(cached) $ECHO_C" >&6
18772 else
18773   cat >conftest.$ac_ext <<_ACEOF
18774 /* confdefs.h.  */
18775 _ACEOF
18776 cat confdefs.h >>conftest.$ac_ext
18777 cat >>conftest.$ac_ext <<_ACEOF
18778 /* end confdefs.h.  */
18779 #ifndef __powerpc__
18780 yes
18781 #endif
18782 _ACEOF
18783 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18784   $EGREP "yes" >/dev/null 2>&1; then
18785   ac_cv_cpp_def___powerpc__=yes
18786 else
18787   ac_cv_cpp_def___powerpc__=no
18788 fi
18789 rm -f conftest*
18790
18791 fi
18792 echo "$as_me:$LINENO: result: $ac_cv_cpp_def___powerpc__" >&5
18793 echo "${ECHO_T}$ac_cv_cpp_def___powerpc__" >&6
18794 if test $ac_cv_cpp_def___powerpc__ = yes; then
18795   CFLAGS="$CFLAGS -D__powerpc__"
18796   LINTFLAGS="$LINTFLAGS -D__powerpc__"
18797 fi
18798  ;;
18799 esac
18800
18801 case $host_vendor in
18802   *sun*) echo "$as_me:$LINENO: checking whether we need to define __sun__" >&5
18803 echo $ECHO_N "checking whether we need to define __sun__... $ECHO_C" >&6
18804 if test "${ac_cv_cpp_def___sun__+set}" = set; then
18805   echo $ECHO_N "(cached) $ECHO_C" >&6
18806 else
18807   cat >conftest.$ac_ext <<_ACEOF
18808 /* confdefs.h.  */
18809 _ACEOF
18810 cat confdefs.h >>conftest.$ac_ext
18811 cat >>conftest.$ac_ext <<_ACEOF
18812 /* end confdefs.h.  */
18813 #ifndef __sun__
18814 yes
18815 #endif
18816 _ACEOF
18817 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18818   $EGREP "yes" >/dev/null 2>&1; then
18819   ac_cv_cpp_def___sun__=yes
18820 else
18821   ac_cv_cpp_def___sun__=no
18822 fi
18823 rm -f conftest*
18824
18825 fi
18826 echo "$as_me:$LINENO: result: $ac_cv_cpp_def___sun__" >&5
18827 echo "${ECHO_T}$ac_cv_cpp_def___sun__" >&6
18828 if test $ac_cv_cpp_def___sun__ = yes; then
18829   CFLAGS="$CFLAGS -D__sun__"
18830   LINTFLAGS="$LINTFLAGS -D__sun__"
18831 fi
18832  ;;
18833 esac
18834
18835
18836
18837
18838
18839           ac_config_commands="$ac_config_commands controls"
18840
18841           ac_config_commands="$ac_config_commands dlls/ddraw/d3ddevice"
18842
18843           ac_config_commands="$ac_config_commands dlls/ddraw/dclipper"
18844
18845           ac_config_commands="$ac_config_commands dlls/ddraw/ddraw"
18846
18847           ac_config_commands="$ac_config_commands dlls/ddraw/direct3d"
18848
18849           ac_config_commands="$ac_config_commands dlls/ddraw/dpalette"
18850
18851           ac_config_commands="$ac_config_commands dlls/ddraw/dsurface"
18852
18853           ac_config_commands="$ac_config_commands dlls/dinput/joystick"
18854
18855           ac_config_commands="$ac_config_commands dlls/dinput/keyboard"
18856
18857           ac_config_commands="$ac_config_commands dlls/dinput/mouse"
18858
18859           ac_config_commands="$ac_config_commands dlls/gdi/enhmfdrv"
18860
18861           ac_config_commands="$ac_config_commands dlls/gdi/mfdrv"
18862
18863           ac_config_commands="$ac_config_commands dlls/kernel/messages"
18864
18865           ac_config_commands="$ac_config_commands dlls/user/dde"
18866
18867           ac_config_commands="$ac_config_commands dlls/user/resources"
18868
18869           ac_config_commands="$ac_config_commands dlls/wineps/data"
18870
18871           ac_config_commands="$ac_config_commands files"
18872
18873           ac_config_commands="$ac_config_commands graphics"
18874
18875           ac_config_commands="$ac_config_commands include/wine"
18876
18877           ac_config_commands="$ac_config_commands misc"
18878
18879           ac_config_commands="$ac_config_commands objects"
18880
18881           ac_config_commands="$ac_config_commands programs/regedit/tests"
18882
18883           ac_config_commands="$ac_config_commands windows"
18884
18885
18886 MAKE_RULES=Make.rules
18887
18888
18889 MAKE_DLL_RULES=dlls/Makedll.rules
18890
18891
18892 MAKE_TEST_RULES=dlls/Maketest.rules
18893
18894
18895 MAKE_LIB_RULES=libs/Makelib.rules
18896
18897
18898 MAKE_PROG_RULES=programs/Makeprog.rules
18899
18900
18901                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             ac_config_files="$ac_config_files Make.rules dlls/Makedll.rules dlls/Maketest.rules libs/Makelib.rules programs/Makeprog.rules Makefile dlls/Makefile dlls/advapi32/Makefile dlls/advapi32/tests/Makefile dlls/avicap32/Makefile dlls/avifil32/Makefile dlls/cabinet/Makefile dlls/capi2032/Makefile dlls/cfgmgr32/Makefile dlls/comcat/Makefile dlls/comctl32/Makefile dlls/comctl32/tests/Makefile dlls/commdlg/Makefile dlls/crtdll/Makefile dlls/crypt32/Makefile dlls/ctl3d/Makefile dlls/wined3d/Makefile dlls/d3d8/Makefile dlls/d3d9/Makefile dlls/d3dim/Makefile dlls/d3dx8/Makefile dlls/dciman32/Makefile dlls/ddraw/Makefile dlls/ddraw/tests/Makefile dlls/devenum/Makefile dlls/dinput/Makefile dlls/dinput8/Makefile dlls/dmband/Makefile dlls/dmcompos/Makefile dlls/dmime/Makefile dlls/dmloader/Makefile dlls/dmscript/Makefile dlls/dmstyle/Makefile dlls/dmsynth/Makefile dlls/dmusic/Makefile dlls/dmusic32/Makefile dlls/dplay/Makefile dlls/dplayx/Makefile dlls/dpnhpast/Makefile dlls/dsound/Makefile dlls/dsound/tests/Makefile dlls/gdi/Makefile dlls/gdi/tests/Makefile dlls/glu32/Makefile dlls/glut32/Makefile dlls/icmp/Makefile dlls/imagehlp/Makefile dlls/imm32/Makefile dlls/iphlpapi/Makefile dlls/kernel/Makefile dlls/kernel/tests/Makefile dlls/lzexpand/Makefile dlls/mapi32/Makefile dlls/mpr/Makefile dlls/msacm/Makefile dlls/msacm/imaadp32/Makefile dlls/msacm/msadp32/Makefile dlls/msacm/msg711/Makefile dlls/msacm/winemp3/Makefile dlls/msdmo/Makefile dlls/mshtml/Makefile dlls/msi/Makefile dlls/msimg32/Makefile dlls/msisys/Makefile dlls/msnet32/Makefile dlls/msvcrt/Makefile dlls/msvcrt/tests/Makefile dlls/msvcrt20/Makefile dlls/msvcrtd/Makefile dlls/msvideo/Makefile dlls/msvideo/msrle32/Makefile dlls/mswsock/Makefile dlls/netapi32/Makefile dlls/netapi32/tests/Makefile dlls/newdev/Makefile dlls/ntdll/Makefile dlls/ntdll/tests/Makefile dlls/odbc32/Makefile dlls/ole32/Makefile dlls/oleacc/Makefile dlls/oleaut32/Makefile dlls/oleaut32/tests/Makefile dlls/olecli/Makefile dlls/oledlg/Makefile dlls/olepro32/Makefile dlls/olesvr/Makefile dlls/opengl32/Makefile dlls/psapi/Makefile dlls/qcap/Makefile dlls/quartz/Makefile dlls/rasapi32/Makefile dlls/richedit/Makefile dlls/rpcrt4/Makefile dlls/rpcrt4/tests/Makefile dlls/serialui/Makefile dlls/setupapi/Makefile dlls/shdocvw/Makefile dlls/shell32/Makefile dlls/shell32/tests/Makefile dlls/shfolder/Makefile dlls/shlwapi/Makefile dlls/shlwapi/tests/Makefile dlls/snmpapi/Makefile dlls/sti/Makefile dlls/tapi32/Makefile dlls/ttydrv/Makefile dlls/twain/Makefile dlls/unicows/Makefile dlls/url/Makefile dlls/urlmon/Makefile dlls/urlmon/tests/Makefile dlls/user/Makefile dlls/user/tests/Makefile dlls/uxtheme/Makefile dlls/version/Makefile dlls/win32s/Makefile dlls/winaspi/Makefile dlls/winedos/Makefile dlls/wineps/Makefile dlls/wininet/Makefile dlls/wininet/tests/Makefile dlls/winmm/Makefile dlls/winmm/joystick/Makefile dlls/winmm/mcianim/Makefile dlls/winmm/mciavi/Makefile dlls/winmm/mcicda/Makefile dlls/winmm/mciseq/Makefile dlls/winmm/mciwave/Makefile dlls/winmm/midimap/Makefile dlls/winmm/tests/Makefile dlls/winmm/wavemap/Makefile dlls/winmm/winealsa/Makefile dlls/winmm/winearts/Makefile dlls/winmm/wineaudioio/Makefile dlls/winmm/winenas/Makefile dlls/winmm/winejack/Makefile dlls/winmm/wineoss/Makefile dlls/winnls/Makefile dlls/winsock/Makefile dlls/winsock/tests/Makefile dlls/winspool/Makefile dlls/winspool/tests/Makefile dlls/wintab32/Makefile dlls/wintrust/Makefile dlls/wow32/Makefile dlls/wsock32/Makefile dlls/x11drv/Makefile documentation/Makefile include/Makefile libs/Makefile libs/port/Makefile libs/unicode/Makefile libs/uuid/Makefile libs/wine/Makefile libs/wpp/Makefile loader/Makefile programs/Makefile programs/avitools/Makefile programs/clock/Makefile programs/cmdlgtst/Makefile programs/control/Makefile programs/expand/Makefile programs/notepad/Makefile programs/progman/Makefile programs/regedit/Makefile programs/regsvr32/Makefile programs/rpcss/Makefile programs/rundll32/Makefile programs/start/Makefile programs/uninstaller/Makefile programs/view/Makefile programs/wcmd/Makefile programs/wineboot/Makefile programs/winecfg/Makefile programs/wineconsole/Makefile programs/winedbg/Makefile programs/winefile/Makefile programs/winemenubuilder/Makefile programs/winemine/Makefile programs/winepath/Makefile programs/winetest/Makefile programs/winevdm/Makefile programs/winhelp/Makefile programs/winver/Makefile server/Makefile tools/Makefile tools/widl/Makefile tools/winapi/Makefile tools/winebuild/Makefile tools/winedump/Makefile tools/winegcc/Makefile tools/wmc/Makefile tools/wrc/Makefile"
18902
18903
18904 cat >confcache <<\_ACEOF
18905 # This file is a shell script that caches the results of configure
18906 # tests run on this system so they can be shared between configure
18907 # scripts and configure runs, see configure's option --config-cache.
18908 # It is not useful on other systems.  If it contains results you don't
18909 # want to keep, you may remove or edit it.
18910 #
18911 # config.status only pays attention to the cache file if you give it
18912 # the --recheck option to rerun configure.
18913 #
18914 # `ac_cv_env_foo' variables (set or unset) will be overridden when
18915 # loading this file, other *unset* `ac_cv_foo' will be assigned the
18916 # following values.
18917
18918 _ACEOF
18919
18920 # The following way of writing the cache mishandles newlines in values,
18921 # but we know of no workaround that is simple, portable, and efficient.
18922 # So, don't put newlines in cache variables' values.
18923 # Ultrix sh set writes to stderr and can't be redirected directly,
18924 # and sets the high bit in the cache file unless we assign to the vars.
18925 {
18926   (set) 2>&1 |
18927     case `(ac_space=' '; set | grep ac_space) 2>&1` in
18928     *ac_space=\ *)
18929       # `set' does not quote correctly, so add quotes (double-quote
18930       # substitution turns \\\\ into \\, and sed turns \\ into \).
18931       sed -n \
18932         "s/'/'\\\\''/g;
18933           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18934       ;;
18935     *)
18936       # `set' quotes correctly as required by POSIX, so do not add quotes.
18937       sed -n \
18938         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
18939       ;;
18940     esac;
18941 } |
18942   sed '
18943      t clear
18944      : clear
18945      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18946      t end
18947      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18948      : end' >>confcache
18949 if diff $cache_file confcache >/dev/null 2>&1; then :; else
18950   if test -w $cache_file; then
18951     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
18952     cat confcache >$cache_file
18953   else
18954     echo "not updating unwritable cache $cache_file"
18955   fi
18956 fi
18957 rm -f confcache
18958
18959 test "x$prefix" = xNONE && prefix=$ac_default_prefix
18960 # Let make expand exec_prefix.
18961 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18962
18963 # VPATH may cause trouble with some makes, so we remove $(srcdir),
18964 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
18965 # trailing colons and then remove the whole line if VPATH becomes empty
18966 # (actually we leave an empty line to preserve line numbers).
18967 if test "x$srcdir" = x.; then
18968   ac_vpsub='/^[  ]*VPATH[        ]*=/{
18969 s/:*\$(srcdir):*/:/;
18970 s/:*\${srcdir}:*/:/;
18971 s/:*@srcdir@:*/:/;
18972 s/^\([^=]*=[     ]*\):*/\1/;
18973 s/:*$//;
18974 s/^[^=]*=[       ]*$//;
18975 }'
18976 fi
18977
18978 DEFS=-DHAVE_CONFIG_H
18979
18980 ac_libobjs=
18981 ac_ltlibobjs=
18982 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
18983   # 1. Remove the extension, and $U if already installed.
18984   ac_i=`echo "$ac_i" |
18985          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
18986   # 2. Add them.
18987   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
18988   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
18989 done
18990 LIBOBJS=$ac_libobjs
18991
18992 LTLIBOBJS=$ac_ltlibobjs
18993
18994
18995
18996 : ${CONFIG_STATUS=./config.status}
18997 ac_clean_files_save=$ac_clean_files
18998 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
18999 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
19000 echo "$as_me: creating $CONFIG_STATUS" >&6;}
19001 cat >$CONFIG_STATUS <<_ACEOF
19002 #! $SHELL
19003 # Generated by $as_me.
19004 # Run this file to recreate the current configuration.
19005 # Compiler output produced by configure, useful for debugging
19006 # configure, is in config.log if it exists.
19007
19008 debug=false
19009 ac_cs_recheck=false
19010 ac_cs_silent=false
19011 SHELL=\${CONFIG_SHELL-$SHELL}
19012 _ACEOF
19013
19014 cat >>$CONFIG_STATUS <<\_ACEOF
19015 ## --------------------- ##
19016 ## M4sh Initialization.  ##
19017 ## --------------------- ##
19018
19019 # Be Bourne compatible
19020 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
19021   emulate sh
19022   NULLCMD=:
19023   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19024   # is contrary to our usage.  Disable this feature.
19025   alias -g '${1+"$@"}'='"$@"'
19026 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
19027   set -o posix
19028 fi
19029 DUALCASE=1; export DUALCASE # for MKS sh
19030
19031 # Support unset when possible.
19032 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
19033   as_unset=unset
19034 else
19035   as_unset=false
19036 fi
19037
19038
19039 # Work around bugs in pre-3.0 UWIN ksh.
19040 $as_unset ENV MAIL MAILPATH
19041 PS1='$ '
19042 PS2='> '
19043 PS4='+ '
19044
19045 # NLS nuisances.
19046 for as_var in \
19047   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
19048   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
19049   LC_TELEPHONE LC_TIME
19050 do
19051   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
19052     eval $as_var=C; export $as_var
19053   else
19054     $as_unset $as_var
19055   fi
19056 done
19057
19058 # Required to use basename.
19059 if expr a : '\(a\)' >/dev/null 2>&1; then
19060   as_expr=expr
19061 else
19062   as_expr=false
19063 fi
19064
19065 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
19066   as_basename=basename
19067 else
19068   as_basename=false
19069 fi
19070
19071
19072 # Name of the executable.
19073 as_me=`$as_basename "$0" ||
19074 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
19075          X"$0" : 'X\(//\)$' \| \
19076          X"$0" : 'X\(/\)$' \| \
19077          .     : '\(.\)' 2>/dev/null ||
19078 echo X/"$0" |
19079     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
19080           /^X\/\(\/\/\)$/{ s//\1/; q; }
19081           /^X\/\(\/\).*/{ s//\1/; q; }
19082           s/.*/./; q'`
19083
19084
19085 # PATH needs CR, and LINENO needs CR and PATH.
19086 # Avoid depending upon Character Ranges.
19087 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
19088 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
19089 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
19090 as_cr_digits='0123456789'
19091 as_cr_alnum=$as_cr_Letters$as_cr_digits
19092
19093 # The user is always right.
19094 if test "${PATH_SEPARATOR+set}" != set; then
19095   echo "#! /bin/sh" >conf$$.sh
19096   echo  "exit 0"   >>conf$$.sh
19097   chmod +x conf$$.sh
19098   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
19099     PATH_SEPARATOR=';'
19100   else
19101     PATH_SEPARATOR=:
19102   fi
19103   rm -f conf$$.sh
19104 fi
19105
19106
19107   as_lineno_1=$LINENO
19108   as_lineno_2=$LINENO
19109   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
19110   test "x$as_lineno_1" != "x$as_lineno_2" &&
19111   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
19112   # Find who we are.  Look in the path if we contain no path at all
19113   # relative or not.
19114   case $0 in
19115     *[\\/]* ) as_myself=$0 ;;
19116     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19117 for as_dir in $PATH
19118 do
19119   IFS=$as_save_IFS
19120   test -z "$as_dir" && as_dir=.
19121   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
19122 done
19123
19124        ;;
19125   esac
19126   # We did not find ourselves, most probably we were run as `sh COMMAND'
19127   # in which case we are not to be found in the path.
19128   if test "x$as_myself" = x; then
19129     as_myself=$0
19130   fi
19131   if test ! -f "$as_myself"; then
19132     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
19133 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
19134    { (exit 1); exit 1; }; }
19135   fi
19136   case $CONFIG_SHELL in
19137   '')
19138     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19139 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
19140 do
19141   IFS=$as_save_IFS
19142   test -z "$as_dir" && as_dir=.
19143   for as_base in sh bash ksh sh5; do
19144          case $as_dir in
19145          /*)
19146            if ("$as_dir/$as_base" -c '
19147   as_lineno_1=$LINENO
19148   as_lineno_2=$LINENO
19149   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
19150   test "x$as_lineno_1" != "x$as_lineno_2" &&
19151   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
19152              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
19153              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
19154              CONFIG_SHELL=$as_dir/$as_base
19155              export CONFIG_SHELL
19156              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
19157            fi;;
19158          esac
19159        done
19160 done
19161 ;;
19162   esac
19163
19164   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
19165   # uniformly replaced by the line number.  The first 'sed' inserts a
19166   # line-number line before each line; the second 'sed' does the real
19167   # work.  The second script uses 'N' to pair each line-number line
19168   # with the numbered line, and appends trailing '-' during
19169   # substitution so that $LINENO is not a special case at line end.
19170   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
19171   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
19172   sed '=' <$as_myself |
19173     sed '
19174       N
19175       s,$,-,
19176       : loop
19177       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
19178       t loop
19179       s,-$,,
19180       s,^['$as_cr_digits']*\n,,
19181     ' >$as_me.lineno &&
19182   chmod +x $as_me.lineno ||
19183     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
19184 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
19185    { (exit 1); exit 1; }; }
19186
19187   # Don't try to exec as it changes $[0], causing all sort of problems
19188   # (the dirname of $[0] is not the place where we might find the
19189   # original and so on.  Autoconf is especially sensible to this).
19190   . ./$as_me.lineno
19191   # Exit status is that of the last command.
19192   exit
19193 }
19194
19195
19196 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
19197   *c*,-n*) ECHO_N= ECHO_C='
19198 ' ECHO_T='      ' ;;
19199   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
19200   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
19201 esac
19202
19203 if expr a : '\(a\)' >/dev/null 2>&1; then
19204   as_expr=expr
19205 else
19206   as_expr=false
19207 fi
19208
19209 rm -f conf$$ conf$$.exe conf$$.file
19210 echo >conf$$.file
19211 if ln -s conf$$.file conf$$ 2>/dev/null; then
19212   # We could just check for DJGPP; but this test a) works b) is more generic
19213   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
19214   if test -f conf$$.exe; then
19215     # Don't use ln at all; we don't have any links
19216     as_ln_s='cp -p'
19217   else
19218     as_ln_s='ln -s'
19219   fi
19220 elif ln conf$$.file conf$$ 2>/dev/null; then
19221   as_ln_s=ln
19222 else
19223   as_ln_s='cp -p'
19224 fi
19225 rm -f conf$$ conf$$.exe conf$$.file
19226
19227 if mkdir -p . 2>/dev/null; then
19228   as_mkdir_p=:
19229 else
19230   test -d ./-p && rmdir ./-p
19231   as_mkdir_p=false
19232 fi
19233
19234 as_executable_p="test -f"
19235
19236 # Sed expression to map a string onto a valid CPP name.
19237 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
19238
19239 # Sed expression to map a string onto a valid variable name.
19240 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
19241
19242
19243 # IFS
19244 # We need space, tab and new line, in precisely that order.
19245 as_nl='
19246 '
19247 IFS="   $as_nl"
19248
19249 # CDPATH.
19250 $as_unset CDPATH
19251
19252 exec 6>&1
19253
19254 # Open the log real soon, to keep \$[0] and so on meaningful, and to
19255 # report actual input values of CONFIG_FILES etc. instead of their
19256 # values after options handling.  Logging --version etc. is OK.
19257 exec 5>>config.log
19258 {
19259   echo
19260   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
19261 ## Running $as_me. ##
19262 _ASBOX
19263 } >&5
19264 cat >&5 <<_CSEOF
19265
19266 This file was extended by Wine $as_me 20031212, which was
19267 generated by GNU Autoconf 2.58.  Invocation command line was
19268
19269   CONFIG_FILES    = $CONFIG_FILES
19270   CONFIG_HEADERS  = $CONFIG_HEADERS
19271   CONFIG_LINKS    = $CONFIG_LINKS
19272   CONFIG_COMMANDS = $CONFIG_COMMANDS
19273   $ $0 $@
19274
19275 _CSEOF
19276 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
19277 echo >&5
19278 _ACEOF
19279
19280 # Files that config.status was made for.
19281 if test -n "$ac_config_files"; then
19282   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
19283 fi
19284
19285 if test -n "$ac_config_headers"; then
19286   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
19287 fi
19288
19289 if test -n "$ac_config_links"; then
19290   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
19291 fi
19292
19293 if test -n "$ac_config_commands"; then
19294   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
19295 fi
19296
19297 cat >>$CONFIG_STATUS <<\_ACEOF
19298
19299 ac_cs_usage="\
19300 \`$as_me' instantiates files from templates according to the
19301 current configuration.
19302
19303 Usage: $0 [OPTIONS] [FILE]...
19304
19305   -h, --help       print this help, then exit
19306   -V, --version    print version number, then exit
19307   -q, --quiet      do not print progress messages
19308   -d, --debug      don't remove temporary files
19309       --recheck    update $as_me by reconfiguring in the same conditions
19310   --file=FILE[:TEMPLATE]
19311                    instantiate the configuration file FILE
19312   --header=FILE[:TEMPLATE]
19313                    instantiate the configuration header FILE
19314
19315 Configuration files:
19316 $config_files
19317
19318 Configuration headers:
19319 $config_headers
19320
19321 Configuration commands:
19322 $config_commands
19323
19324 Report bugs to <bug-autoconf@gnu.org>."
19325 _ACEOF
19326
19327 cat >>$CONFIG_STATUS <<_ACEOF
19328 ac_cs_version="\\
19329 Wine config.status 20031212
19330 configured by $0, generated by GNU Autoconf 2.58,
19331   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
19332
19333 Copyright (C) 2003 Free Software Foundation, Inc.
19334 This config.status script is free software; the Free Software Foundation
19335 gives unlimited permission to copy, distribute and modify it."
19336 srcdir=$srcdir
19337 INSTALL="$INSTALL"
19338 _ACEOF
19339
19340 cat >>$CONFIG_STATUS <<\_ACEOF
19341 # If no file are specified by the user, then we need to provide default
19342 # value.  By we need to know if files were specified by the user.
19343 ac_need_defaults=:
19344 while test $# != 0
19345 do
19346   case $1 in
19347   --*=*)
19348     ac_option=`expr "x$1" : 'x\([^=]*\)='`
19349     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
19350     ac_shift=:
19351     ;;
19352   -*)
19353     ac_option=$1
19354     ac_optarg=$2
19355     ac_shift=shift
19356     ;;
19357   *) # This is not an option, so the user has probably given explicit
19358      # arguments.
19359      ac_option=$1
19360      ac_need_defaults=false;;
19361   esac
19362
19363   case $ac_option in
19364   # Handling of the options.
19365 _ACEOF
19366 cat >>$CONFIG_STATUS <<\_ACEOF
19367   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
19368     ac_cs_recheck=: ;;
19369   --version | --vers* | -V )
19370     echo "$ac_cs_version"; exit 0 ;;
19371   --he | --h)
19372     # Conflict between --help and --header
19373     { { echo "$as_me:$LINENO: error: ambiguous option: $1
19374 Try \`$0 --help' for more information." >&5
19375 echo "$as_me: error: ambiguous option: $1
19376 Try \`$0 --help' for more information." >&2;}
19377    { (exit 1); exit 1; }; };;
19378   --help | --hel | -h )
19379     echo "$ac_cs_usage"; exit 0 ;;
19380   --debug | --d* | -d )
19381     debug=: ;;
19382   --file | --fil | --fi | --f )
19383     $ac_shift
19384     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
19385     ac_need_defaults=false;;
19386   --header | --heade | --head | --hea )
19387     $ac_shift
19388     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
19389     ac_need_defaults=false;;
19390   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
19391   | -silent | --silent | --silen | --sile | --sil | --si | --s)
19392     ac_cs_silent=: ;;
19393
19394   # This is an error.
19395   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
19396 Try \`$0 --help' for more information." >&5
19397 echo "$as_me: error: unrecognized option: $1
19398 Try \`$0 --help' for more information." >&2;}
19399    { (exit 1); exit 1; }; } ;;
19400
19401   *) ac_config_targets="$ac_config_targets $1" ;;
19402
19403   esac
19404   shift
19405 done
19406
19407 ac_configure_extra_args=
19408
19409 if $ac_cs_silent; then
19410   exec 6>/dev/null
19411   ac_configure_extra_args="$ac_configure_extra_args --silent"
19412 fi
19413
19414 _ACEOF
19415 cat >>$CONFIG_STATUS <<_ACEOF
19416 if \$ac_cs_recheck; then
19417   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
19418   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
19419 fi
19420
19421 _ACEOF
19422
19423
19424
19425
19426
19427 cat >>$CONFIG_STATUS <<\_ACEOF
19428 for ac_config_target in $ac_config_targets
19429 do
19430   case "$ac_config_target" in
19431   # Handling of arguments.
19432   "Make.rules" ) CONFIG_FILES="$CONFIG_FILES Make.rules" ;;
19433   "dlls/Makedll.rules" ) CONFIG_FILES="$CONFIG_FILES dlls/Makedll.rules" ;;
19434   "dlls/Maketest.rules" ) CONFIG_FILES="$CONFIG_FILES dlls/Maketest.rules" ;;
19435   "libs/Makelib.rules" ) CONFIG_FILES="$CONFIG_FILES libs/Makelib.rules" ;;
19436   "programs/Makeprog.rules" ) CONFIG_FILES="$CONFIG_FILES programs/Makeprog.rules" ;;
19437   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
19438   "dlls/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/Makefile" ;;
19439   "dlls/advapi32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/advapi32/Makefile" ;;
19440   "dlls/advapi32/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/advapi32/tests/Makefile" ;;
19441   "dlls/avicap32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/avicap32/Makefile" ;;
19442   "dlls/avifil32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/avifil32/Makefile" ;;
19443   "dlls/cabinet/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/cabinet/Makefile" ;;
19444   "dlls/capi2032/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/capi2032/Makefile" ;;
19445   "dlls/cfgmgr32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/cfgmgr32/Makefile" ;;
19446   "dlls/comcat/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/comcat/Makefile" ;;
19447   "dlls/comctl32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/comctl32/Makefile" ;;
19448   "dlls/comctl32/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/comctl32/tests/Makefile" ;;
19449   "dlls/commdlg/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/commdlg/Makefile" ;;
19450   "dlls/crtdll/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/crtdll/Makefile" ;;
19451   "dlls/crypt32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/crypt32/Makefile" ;;
19452   "dlls/ctl3d/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ctl3d/Makefile" ;;
19453   "dlls/wined3d/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wined3d/Makefile" ;;
19454   "dlls/d3d8/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/d3d8/Makefile" ;;
19455   "dlls/d3d9/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/d3d9/Makefile" ;;
19456   "dlls/d3dim/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/d3dim/Makefile" ;;
19457   "dlls/d3dx8/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/d3dx8/Makefile" ;;
19458   "dlls/dciman32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dciman32/Makefile" ;;
19459   "dlls/ddraw/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ddraw/Makefile" ;;
19460   "dlls/ddraw/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ddraw/tests/Makefile" ;;
19461   "dlls/devenum/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/devenum/Makefile" ;;
19462   "dlls/dinput/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dinput/Makefile" ;;
19463   "dlls/dinput8/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dinput8/Makefile" ;;
19464   "dlls/dmband/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dmband/Makefile" ;;
19465   "dlls/dmcompos/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dmcompos/Makefile" ;;
19466   "dlls/dmime/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dmime/Makefile" ;;
19467   "dlls/dmloader/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dmloader/Makefile" ;;
19468   "dlls/dmscript/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dmscript/Makefile" ;;
19469   "dlls/dmstyle/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dmstyle/Makefile" ;;
19470   "dlls/dmsynth/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dmsynth/Makefile" ;;
19471   "dlls/dmusic/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dmusic/Makefile" ;;
19472   "dlls/dmusic32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dmusic32/Makefile" ;;
19473   "dlls/dplay/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dplay/Makefile" ;;
19474   "dlls/dplayx/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dplayx/Makefile" ;;
19475   "dlls/dpnhpast/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dpnhpast/Makefile" ;;
19476   "dlls/dsound/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dsound/Makefile" ;;
19477   "dlls/dsound/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dsound/tests/Makefile" ;;
19478   "dlls/gdi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/gdi/Makefile" ;;
19479   "dlls/gdi/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/gdi/tests/Makefile" ;;
19480   "dlls/glu32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/glu32/Makefile" ;;
19481   "dlls/glut32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/glut32/Makefile" ;;
19482   "dlls/icmp/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/icmp/Makefile" ;;
19483   "dlls/imagehlp/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/imagehlp/Makefile" ;;
19484   "dlls/imm32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/imm32/Makefile" ;;
19485   "dlls/iphlpapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/iphlpapi/Makefile" ;;
19486   "dlls/kernel/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/kernel/Makefile" ;;
19487   "dlls/kernel/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/kernel/tests/Makefile" ;;
19488   "dlls/lzexpand/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/lzexpand/Makefile" ;;
19489   "dlls/mapi32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/mapi32/Makefile" ;;
19490   "dlls/mpr/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/mpr/Makefile" ;;
19491   "dlls/msacm/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msacm/Makefile" ;;
19492   "dlls/msacm/imaadp32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msacm/imaadp32/Makefile" ;;
19493   "dlls/msacm/msadp32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msacm/msadp32/Makefile" ;;
19494   "dlls/msacm/msg711/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msacm/msg711/Makefile" ;;
19495   "dlls/msacm/winemp3/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msacm/winemp3/Makefile" ;;
19496   "dlls/msdmo/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msdmo/Makefile" ;;
19497   "dlls/mshtml/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/mshtml/Makefile" ;;
19498   "dlls/msi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msi/Makefile" ;;
19499   "dlls/msimg32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msimg32/Makefile" ;;
19500   "dlls/msisys/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msisys/Makefile" ;;
19501   "dlls/msnet32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msnet32/Makefile" ;;
19502   "dlls/msvcrt/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvcrt/Makefile" ;;
19503   "dlls/msvcrt/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvcrt/tests/Makefile" ;;
19504   "dlls/msvcrt20/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvcrt20/Makefile" ;;
19505   "dlls/msvcrtd/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvcrtd/Makefile" ;;
19506   "dlls/msvideo/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvideo/Makefile" ;;
19507   "dlls/msvideo/msrle32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvideo/msrle32/Makefile" ;;
19508   "dlls/mswsock/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/mswsock/Makefile" ;;
19509   "dlls/netapi32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/netapi32/Makefile" ;;
19510   "dlls/netapi32/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/netapi32/tests/Makefile" ;;
19511   "dlls/newdev/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/newdev/Makefile" ;;
19512   "dlls/ntdll/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ntdll/Makefile" ;;
19513   "dlls/ntdll/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ntdll/tests/Makefile" ;;
19514   "dlls/odbc32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/odbc32/Makefile" ;;
19515   "dlls/ole32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ole32/Makefile" ;;
19516   "dlls/oleacc/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/oleacc/Makefile" ;;
19517   "dlls/oleaut32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/oleaut32/Makefile" ;;
19518   "dlls/oleaut32/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/oleaut32/tests/Makefile" ;;
19519   "dlls/olecli/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/olecli/Makefile" ;;
19520   "dlls/oledlg/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/oledlg/Makefile" ;;
19521   "dlls/olepro32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/olepro32/Makefile" ;;
19522   "dlls/olesvr/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/olesvr/Makefile" ;;
19523   "dlls/opengl32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/opengl32/Makefile" ;;
19524   "dlls/psapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/psapi/Makefile" ;;
19525   "dlls/qcap/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/qcap/Makefile" ;;
19526   "dlls/quartz/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/quartz/Makefile" ;;
19527   "dlls/rasapi32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/rasapi32/Makefile" ;;
19528   "dlls/richedit/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/richedit/Makefile" ;;
19529   "dlls/rpcrt4/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/rpcrt4/Makefile" ;;
19530   "dlls/rpcrt4/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/rpcrt4/tests/Makefile" ;;
19531   "dlls/serialui/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/serialui/Makefile" ;;
19532   "dlls/setupapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/setupapi/Makefile" ;;
19533   "dlls/shdocvw/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shdocvw/Makefile" ;;
19534   "dlls/shell32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shell32/Makefile" ;;
19535   "dlls/shell32/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shell32/tests/Makefile" ;;
19536   "dlls/shfolder/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shfolder/Makefile" ;;
19537   "dlls/shlwapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shlwapi/Makefile" ;;
19538   "dlls/shlwapi/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shlwapi/tests/Makefile" ;;
19539   "dlls/snmpapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/snmpapi/Makefile" ;;
19540   "dlls/sti/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/sti/Makefile" ;;
19541   "dlls/tapi32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/tapi32/Makefile" ;;
19542   "dlls/ttydrv/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ttydrv/Makefile" ;;
19543   "dlls/twain/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/twain/Makefile" ;;
19544   "dlls/unicows/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/unicows/Makefile" ;;
19545   "dlls/url/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/url/Makefile" ;;
19546   "dlls/urlmon/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/urlmon/Makefile" ;;
19547   "dlls/urlmon/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/urlmon/tests/Makefile" ;;
19548   "dlls/user/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/user/Makefile" ;;
19549   "dlls/user/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/user/tests/Makefile" ;;
19550   "dlls/uxtheme/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/uxtheme/Makefile" ;;
19551   "dlls/version/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/version/Makefile" ;;
19552   "dlls/win32s/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/win32s/Makefile" ;;
19553   "dlls/winaspi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winaspi/Makefile" ;;
19554   "dlls/winedos/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winedos/Makefile" ;;
19555   "dlls/wineps/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wineps/Makefile" ;;
19556   "dlls/wininet/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wininet/Makefile" ;;
19557   "dlls/wininet/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wininet/tests/Makefile" ;;
19558   "dlls/winmm/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/Makefile" ;;
19559   "dlls/winmm/joystick/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/joystick/Makefile" ;;
19560   "dlls/winmm/mcianim/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/mcianim/Makefile" ;;
19561   "dlls/winmm/mciavi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/mciavi/Makefile" ;;
19562   "dlls/winmm/mcicda/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/mcicda/Makefile" ;;
19563   "dlls/winmm/mciseq/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/mciseq/Makefile" ;;
19564   "dlls/winmm/mciwave/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/mciwave/Makefile" ;;
19565   "dlls/winmm/midimap/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/midimap/Makefile" ;;
19566   "dlls/winmm/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/tests/Makefile" ;;
19567   "dlls/winmm/wavemap/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/wavemap/Makefile" ;;
19568   "dlls/winmm/winealsa/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/winealsa/Makefile" ;;
19569   "dlls/winmm/winearts/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/winearts/Makefile" ;;
19570   "dlls/winmm/wineaudioio/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/wineaudioio/Makefile" ;;
19571   "dlls/winmm/winenas/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/winenas/Makefile" ;;
19572   "dlls/winmm/winejack/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/winejack/Makefile" ;;
19573   "dlls/winmm/wineoss/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/wineoss/Makefile" ;;
19574   "dlls/winnls/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winnls/Makefile" ;;
19575   "dlls/winsock/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winsock/Makefile" ;;
19576   "dlls/winsock/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winsock/tests/Makefile" ;;
19577   "dlls/winspool/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winspool/Makefile" ;;
19578   "dlls/winspool/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winspool/tests/Makefile" ;;
19579   "dlls/wintab32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wintab32/Makefile" ;;
19580   "dlls/wintrust/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wintrust/Makefile" ;;
19581   "dlls/wow32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wow32/Makefile" ;;
19582   "dlls/wsock32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wsock32/Makefile" ;;
19583   "dlls/x11drv/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/x11drv/Makefile" ;;
19584   "documentation/Makefile" ) CONFIG_FILES="$CONFIG_FILES documentation/Makefile" ;;
19585   "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
19586   "libs/Makefile" ) CONFIG_FILES="$CONFIG_FILES libs/Makefile" ;;
19587   "libs/port/Makefile" ) CONFIG_FILES="$CONFIG_FILES libs/port/Makefile" ;;
19588   "libs/unicode/Makefile" ) CONFIG_FILES="$CONFIG_FILES libs/unicode/Makefile" ;;
19589   "libs/uuid/Makefile" ) CONFIG_FILES="$CONFIG_FILES libs/uuid/Makefile" ;;
19590   "libs/wine/Makefile" ) CONFIG_FILES="$CONFIG_FILES libs/wine/Makefile" ;;
19591   "libs/wpp/Makefile" ) CONFIG_FILES="$CONFIG_FILES libs/wpp/Makefile" ;;
19592   "loader/Makefile" ) CONFIG_FILES="$CONFIG_FILES loader/Makefile" ;;
19593   "programs/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/Makefile" ;;
19594   "programs/avitools/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/avitools/Makefile" ;;
19595   "programs/clock/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/clock/Makefile" ;;
19596   "programs/cmdlgtst/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/cmdlgtst/Makefile" ;;
19597   "programs/control/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/control/Makefile" ;;
19598   "programs/expand/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/expand/Makefile" ;;
19599   "programs/notepad/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/notepad/Makefile" ;;
19600   "programs/progman/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/progman/Makefile" ;;
19601   "programs/regedit/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/regedit/Makefile" ;;
19602   "programs/regsvr32/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/regsvr32/Makefile" ;;
19603   "programs/rpcss/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/rpcss/Makefile" ;;
19604   "programs/rundll32/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/rundll32/Makefile" ;;
19605   "programs/start/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/start/Makefile" ;;
19606   "programs/uninstaller/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/uninstaller/Makefile" ;;
19607   "programs/view/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/view/Makefile" ;;
19608   "programs/wcmd/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/wcmd/Makefile" ;;
19609   "programs/wineboot/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/wineboot/Makefile" ;;
19610   "programs/winecfg/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winecfg/Makefile" ;;
19611   "programs/wineconsole/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/wineconsole/Makefile" ;;
19612   "programs/winedbg/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winedbg/Makefile" ;;
19613   "programs/winefile/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winefile/Makefile" ;;
19614   "programs/winemenubuilder/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winemenubuilder/Makefile" ;;
19615   "programs/winemine/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winemine/Makefile" ;;
19616   "programs/winepath/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winepath/Makefile" ;;
19617   "programs/winetest/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winetest/Makefile" ;;
19618   "programs/winevdm/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winevdm/Makefile" ;;
19619   "programs/winhelp/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winhelp/Makefile" ;;
19620   "programs/winver/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winver/Makefile" ;;
19621   "server/Makefile" ) CONFIG_FILES="$CONFIG_FILES server/Makefile" ;;
19622   "tools/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
19623   "tools/widl/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/widl/Makefile" ;;
19624   "tools/winapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/winapi/Makefile" ;;
19625   "tools/winebuild/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/winebuild/Makefile" ;;
19626   "tools/winedump/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/winedump/Makefile" ;;
19627   "tools/winegcc/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/winegcc/Makefile" ;;
19628   "tools/wmc/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/wmc/Makefile" ;;
19629   "tools/wrc/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/wrc/Makefile" ;;
19630   "controls" ) CONFIG_COMMANDS="$CONFIG_COMMANDS controls" ;;
19631   "dlls/ddraw/d3ddevice" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/d3ddevice" ;;
19632   "dlls/ddraw/dclipper" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/dclipper" ;;
19633   "dlls/ddraw/ddraw" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/ddraw" ;;
19634   "dlls/ddraw/direct3d" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/direct3d" ;;
19635   "dlls/ddraw/dpalette" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/dpalette" ;;
19636   "dlls/ddraw/dsurface" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/dsurface" ;;
19637   "dlls/dinput/joystick" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/dinput/joystick" ;;
19638   "dlls/dinput/keyboard" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/dinput/keyboard" ;;
19639   "dlls/dinput/mouse" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/dinput/mouse" ;;
19640   "dlls/gdi/enhmfdrv" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/gdi/enhmfdrv" ;;
19641   "dlls/gdi/mfdrv" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/gdi/mfdrv" ;;
19642   "dlls/kernel/messages" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/kernel/messages" ;;
19643   "dlls/user/dde" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/user/dde" ;;
19644   "dlls/user/resources" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/user/resources" ;;
19645   "dlls/wineps/data" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/wineps/data" ;;
19646   "files" ) CONFIG_COMMANDS="$CONFIG_COMMANDS files" ;;
19647   "graphics" ) CONFIG_COMMANDS="$CONFIG_COMMANDS graphics" ;;
19648   "include/wine" ) CONFIG_COMMANDS="$CONFIG_COMMANDS include/wine" ;;
19649   "misc" ) CONFIG_COMMANDS="$CONFIG_COMMANDS misc" ;;
19650   "objects" ) CONFIG_COMMANDS="$CONFIG_COMMANDS objects" ;;
19651   "programs/regedit/tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS programs/regedit/tests" ;;
19652   "windows" ) CONFIG_COMMANDS="$CONFIG_COMMANDS windows" ;;
19653   "include/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
19654   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
19655 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
19656    { (exit 1); exit 1; }; };;
19657   esac
19658 done
19659
19660 # If the user did not use the arguments to specify the items to instantiate,
19661 # then the envvar interface is used.  Set only those that are not.
19662 # We use the long form for the default assignment because of an extremely
19663 # bizarre bug on SunOS 4.1.3.
19664 if $ac_need_defaults; then
19665   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
19666   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
19667   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
19668 fi
19669
19670 # Have a temporary directory for convenience.  Make it in the build tree
19671 # simply because there is no reason to put it here, and in addition,
19672 # creating and moving files from /tmp can sometimes cause problems.
19673 # Create a temporary directory, and hook for its removal unless debugging.
19674 $debug ||
19675 {
19676   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
19677   trap '{ (exit 1); exit 1; }' 1 2 13 15
19678 }
19679
19680 # Create a (secure) tmp directory for tmp files.
19681
19682 {
19683   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
19684   test -n "$tmp" && test -d "$tmp"
19685 }  ||
19686 {
19687   tmp=./confstat$$-$RANDOM
19688   (umask 077 && mkdir $tmp)
19689 } ||
19690 {
19691    echo "$me: cannot create a temporary directory in ." >&2
19692    { (exit 1); exit 1; }
19693 }
19694
19695 _ACEOF
19696
19697 cat >>$CONFIG_STATUS <<_ACEOF
19698
19699 #
19700 # CONFIG_FILES section.
19701 #
19702
19703 # No need to generate the scripts if there are no CONFIG_FILES.
19704 # This happens for instance when ./config.status config.h
19705 if test -n "\$CONFIG_FILES"; then
19706   # Protect against being on the right side of a sed subst in config.status.
19707   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
19708    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
19709 s,@SHELL@,$SHELL,;t t
19710 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
19711 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
19712 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
19713 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
19714 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
19715 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
19716 s,@exec_prefix@,$exec_prefix,;t t
19717 s,@prefix@,$prefix,;t t
19718 s,@program_transform_name@,$program_transform_name,;t t
19719 s,@bindir@,$bindir,;t t
19720 s,@sbindir@,$sbindir,;t t
19721 s,@libexecdir@,$libexecdir,;t t
19722 s,@datadir@,$datadir,;t t
19723 s,@sysconfdir@,$sysconfdir,;t t
19724 s,@sharedstatedir@,$sharedstatedir,;t t
19725 s,@localstatedir@,$localstatedir,;t t
19726 s,@libdir@,$libdir,;t t
19727 s,@includedir@,$includedir,;t t
19728 s,@oldincludedir@,$oldincludedir,;t t
19729 s,@infodir@,$infodir,;t t
19730 s,@mandir@,$mandir,;t t
19731 s,@build_alias@,$build_alias,;t t
19732 s,@host_alias@,$host_alias,;t t
19733 s,@target_alias@,$target_alias,;t t
19734 s,@DEFS@,$DEFS,;t t
19735 s,@ECHO_C@,$ECHO_C,;t t
19736 s,@ECHO_N@,$ECHO_N,;t t
19737 s,@ECHO_T@,$ECHO_T,;t t
19738 s,@LIBS@,$LIBS,;t t
19739 s,@WIN16_FILES@,$WIN16_FILES,;t t
19740 s,@WIN16_INSTALL@,$WIN16_INSTALL,;t t
19741 s,@build@,$build,;t t
19742 s,@build_cpu@,$build_cpu,;t t
19743 s,@build_vendor@,$build_vendor,;t t
19744 s,@build_os@,$build_os,;t t
19745 s,@host@,$host,;t t
19746 s,@host_cpu@,$host_cpu,;t t
19747 s,@host_vendor@,$host_vendor,;t t
19748 s,@host_os@,$host_os,;t t
19749 s,@SET_MAKE@,$SET_MAKE,;t t
19750 s,@CC@,$CC,;t t
19751 s,@CFLAGS@,$CFLAGS,;t t
19752 s,@LDFLAGS@,$LDFLAGS,;t t
19753 s,@CPPFLAGS@,$CPPFLAGS,;t t
19754 s,@ac_ct_CC@,$ac_ct_CC,;t t
19755 s,@EXEEXT@,$EXEEXT,;t t
19756 s,@OBJEXT@,$OBJEXT,;t t
19757 s,@CPP@,$CPP,;t t
19758 s,@TOOLSDIR@,$TOOLSDIR,;t t
19759 s,@X_CFLAGS@,$X_CFLAGS,;t t
19760 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
19761 s,@X_LIBS@,$X_LIBS,;t t
19762 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
19763 s,@YACC@,$YACC,;t t
19764 s,@LEX@,$LEX,;t t
19765 s,@LEXLIB@,$LEXLIB,;t t
19766 s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
19767 s,@XYACC@,$XYACC,;t t
19768 s,@XLEX@,$XLEX,;t t
19769 s,@AS@,$AS,;t t
19770 s,@ac_ct_AS@,$ac_ct_AS,;t t
19771 s,@LD@,$LD,;t t
19772 s,@ac_ct_LD@,$ac_ct_LD,;t t
19773 s,@AR@,$AR,;t t
19774 s,@ac_ct_AR@,$ac_ct_AR,;t t
19775 s,@RANLIB@,$RANLIB,;t t
19776 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
19777 s,@STRIP@,$STRIP,;t t
19778 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
19779 s,@WINDRES@,$WINDRES,;t t
19780 s,@ac_ct_WINDRES@,$ac_ct_WINDRES,;t t
19781 s,@LN_S@,$LN_S,;t t
19782 s,@LN@,$LN,;t t
19783 s,@LDCONFIG@,$LDCONFIG,;t t
19784 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
19785 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
19786 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
19787 s,@LINT@,$LINT,;t t
19788 s,@LINTFLAGS@,$LINTFLAGS,;t t
19789 s,@DB2HTML@,$DB2HTML,;t t
19790 s,@DB2PDF@,$DB2PDF,;t t
19791 s,@DB2PS@,$DB2PS,;t t
19792 s,@DB2TXT@,$DB2TXT,;t t
19793 s,@LIBPTHREAD@,$LIBPTHREAD,;t t
19794 s,@JPEGLIB@,$JPEGLIB,;t t
19795 s,@EGREP@,$EGREP,;t t
19796 s,@GIFLIB@,$GIFLIB,;t t
19797 s,@XLIB@,$XLIB,;t t
19798 s,@XFILES@,$XFILES,;t t
19799 s,@OPENGLFILES@,$OPENGLFILES,;t t
19800 s,@GLU32FILES@,$GLU32FILES,;t t
19801 s,@OPENGL_LIBS@,$OPENGL_LIBS,;t t
19802 s,@GLUT_LIBS@,$GLUT_LIBS,;t t
19803 s,@GLUT32FILES@,$GLUT32FILES,;t t
19804 s,@NASLIBS@,$NASLIBS,;t t
19805 s,@CURSESLIBS@,$CURSESLIBS,;t t
19806 s,@sane_devel@,$sane_devel,;t t
19807 s,@SANELIBS@,$SANELIBS,;t t
19808 s,@SANEINCL@,$SANEINCL,;t t
19809 s,@ICULIBS@,$ICULIBS,;t t
19810 s,@ft_devel@,$ft_devel,;t t
19811 s,@ft_devel2@,$ft_devel2,;t t
19812 s,@FREETYPEINCL@,$FREETYPEINCL,;t t
19813 s,@ARTSCCONFIG@,$ARTSCCONFIG,;t t
19814 s,@ARTSLIBS@,$ARTSLIBS,;t t
19815 s,@ARTSINCL@,$ARTSINCL,;t t
19816 s,@ALSALIBS@,$ALSALIBS,;t t
19817 s,@AUDIOIOLIBS@,$AUDIOIOLIBS,;t t
19818 s,@CAPI4LINUXLIBS@,$CAPI4LINUXLIBS,;t t
19819 s,@EXTRACFLAGS@,$EXTRACFLAGS,;t t
19820 s,@DLLEXT@,$DLLEXT,;t t
19821 s,@DLLFLAGS@,$DLLFLAGS,;t t
19822 s,@DLLIBS@,$DLLIBS,;t t
19823 s,@LDSHARED@,$LDSHARED,;t t
19824 s,@LDDLL@,$LDDLL,;t t
19825 s,@LIBEXT@,$LIBEXT,;t t
19826 s,@IMPLIBEXT@,$IMPLIBEXT,;t t
19827 s,@DLLTOOL@,$DLLTOOL,;t t
19828 s,@ac_ct_DLLTOOL@,$ac_ct_DLLTOOL,;t t
19829 s,@DLLWRAP@,$DLLWRAP,;t t
19830 s,@ac_ct_DLLWRAP@,$ac_ct_DLLWRAP,;t t
19831 s,@LDEXECFLAGS@,$LDEXECFLAGS,;t t
19832 s,@CROSSTEST@,$CROSSTEST,;t t
19833 s,@CROSSCC@,$CROSSCC,;t t
19834 s,@CROSSWINDRES@,$CROSSWINDRES,;t t
19835 s,@LDPATH@,$LDPATH,;t t
19836 s,@CRTLIBS@,$CRTLIBS,;t t
19837 s,@WINE_BINARIES@,$WINE_BINARIES,;t t
19838 s,@MAIN_BINARY@,$MAIN_BINARY,;t t
19839 s,@LDD@,$LDD,;t t
19840 s,@ALLOCA@,$ALLOCA,;t t
19841 s,@LIBOBJS@,$LIBOBJS,;t t
19842 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
19843 /@MAKE_RULES@/r $MAKE_RULES
19844 s,@MAKE_RULES@,,;t t
19845 /@MAKE_DLL_RULES@/r $MAKE_DLL_RULES
19846 s,@MAKE_DLL_RULES@,,;t t
19847 /@MAKE_TEST_RULES@/r $MAKE_TEST_RULES
19848 s,@MAKE_TEST_RULES@,,;t t
19849 /@MAKE_LIB_RULES@/r $MAKE_LIB_RULES
19850 s,@MAKE_LIB_RULES@,,;t t
19851 /@MAKE_PROG_RULES@/r $MAKE_PROG_RULES
19852 s,@MAKE_PROG_RULES@,,;t t
19853 CEOF
19854
19855 _ACEOF
19856
19857   cat >>$CONFIG_STATUS <<\_ACEOF
19858   # Split the substitutions into bite-sized pieces for seds with
19859   # small command number limits, like on Digital OSF/1 and HP-UX.
19860   ac_max_sed_lines=48
19861   ac_sed_frag=1 # Number of current file.
19862   ac_beg=1 # First line for current file.
19863   ac_end=$ac_max_sed_lines # Line after last line for current file.
19864   ac_more_lines=:
19865   ac_sed_cmds=
19866   while $ac_more_lines; do
19867     if test $ac_beg -gt 1; then
19868       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
19869     else
19870       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
19871     fi
19872     if test ! -s $tmp/subs.frag; then
19873       ac_more_lines=false
19874     else
19875       # The purpose of the label and of the branching condition is to
19876       # speed up the sed processing (if there are no `@' at all, there
19877       # is no need to browse any of the substitutions).
19878       # These are the two extra sed commands mentioned above.
19879       (echo ':t
19880   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
19881       if test -z "$ac_sed_cmds"; then
19882         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
19883       else
19884         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
19885       fi
19886       ac_sed_frag=`expr $ac_sed_frag + 1`
19887       ac_beg=$ac_end
19888       ac_end=`expr $ac_end + $ac_max_sed_lines`
19889     fi
19890   done
19891   if test -z "$ac_sed_cmds"; then
19892     ac_sed_cmds=cat
19893   fi
19894 fi # test -n "$CONFIG_FILES"
19895
19896 _ACEOF
19897 cat >>$CONFIG_STATUS <<\_ACEOF
19898 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
19899   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
19900   case $ac_file in
19901   - | *:- | *:-:* ) # input from stdin
19902         cat >$tmp/stdin
19903         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
19904         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
19905   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
19906         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
19907   * )   ac_file_in=$ac_file.in ;;
19908   esac
19909
19910   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
19911   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
19912 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19913          X"$ac_file" : 'X\(//\)[^/]' \| \
19914          X"$ac_file" : 'X\(//\)$' \| \
19915          X"$ac_file" : 'X\(/\)' \| \
19916          .     : '\(.\)' 2>/dev/null ||
19917 echo X"$ac_file" |
19918     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19919           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19920           /^X\(\/\/\)$/{ s//\1/; q; }
19921           /^X\(\/\).*/{ s//\1/; q; }
19922           s/.*/./; q'`
19923   { if $as_mkdir_p; then
19924     mkdir -p "$ac_dir"
19925   else
19926     as_dir="$ac_dir"
19927     as_dirs=
19928     while test ! -d "$as_dir"; do
19929       as_dirs="$as_dir $as_dirs"
19930       as_dir=`(dirname "$as_dir") 2>/dev/null ||
19931 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19932          X"$as_dir" : 'X\(//\)[^/]' \| \
19933          X"$as_dir" : 'X\(//\)$' \| \
19934          X"$as_dir" : 'X\(/\)' \| \
19935          .     : '\(.\)' 2>/dev/null ||
19936 echo X"$as_dir" |
19937     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19938           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19939           /^X\(\/\/\)$/{ s//\1/; q; }
19940           /^X\(\/\).*/{ s//\1/; q; }
19941           s/.*/./; q'`
19942     done
19943     test ! -n "$as_dirs" || mkdir $as_dirs
19944   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
19945 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
19946    { (exit 1); exit 1; }; }; }
19947
19948   ac_builddir=.
19949
19950 if test "$ac_dir" != .; then
19951   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
19952   # A "../" for each directory in $ac_dir_suffix.
19953   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
19954 else
19955   ac_dir_suffix= ac_top_builddir=
19956 fi
19957
19958 case $srcdir in
19959   .)  # No --srcdir option.  We are building in place.
19960     ac_srcdir=.
19961     if test -z "$ac_top_builddir"; then
19962        ac_top_srcdir=.
19963     else
19964        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
19965     fi ;;
19966   [\\/]* | ?:[\\/]* )  # Absolute path.
19967     ac_srcdir=$srcdir$ac_dir_suffix;
19968     ac_top_srcdir=$srcdir ;;
19969   *) # Relative path.
19970     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
19971     ac_top_srcdir=$ac_top_builddir$srcdir ;;
19972 esac
19973
19974 # Do not use `cd foo && pwd` to compute absolute paths, because
19975 # the directories may not exist.
19976 case `pwd` in
19977 .) ac_abs_builddir="$ac_dir";;
19978 *)
19979   case "$ac_dir" in
19980   .) ac_abs_builddir=`pwd`;;
19981   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
19982   *) ac_abs_builddir=`pwd`/"$ac_dir";;
19983   esac;;
19984 esac
19985 case $ac_abs_builddir in
19986 .) ac_abs_top_builddir=${ac_top_builddir}.;;
19987 *)
19988   case ${ac_top_builddir}. in
19989   .) ac_abs_top_builddir=$ac_abs_builddir;;
19990   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
19991   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
19992   esac;;
19993 esac
19994 case $ac_abs_builddir in
19995 .) ac_abs_srcdir=$ac_srcdir;;
19996 *)
19997   case $ac_srcdir in
19998   .) ac_abs_srcdir=$ac_abs_builddir;;
19999   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
20000   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
20001   esac;;
20002 esac
20003 case $ac_abs_builddir in
20004 .) ac_abs_top_srcdir=$ac_top_srcdir;;
20005 *)
20006   case $ac_top_srcdir in
20007   .) ac_abs_top_srcdir=$ac_abs_builddir;;
20008   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
20009   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
20010   esac;;
20011 esac
20012
20013
20014   case $INSTALL in
20015   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
20016   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
20017   esac
20018
20019   # Let's still pretend it is `configure' which instantiates (i.e., don't
20020   # use $as_me), people would be surprised to read:
20021   #    /* config.h.  Generated by config.status.  */
20022   if test x"$ac_file" = x-; then
20023     configure_input=
20024   else
20025     configure_input="$ac_file.  "
20026   fi
20027   configure_input=$configure_input"Generated from `echo $ac_file_in |
20028                                      sed 's,.*/,,'` by configure."
20029
20030   # First look for the input files in the build tree, otherwise in the
20031   # src tree.
20032   ac_file_inputs=`IFS=:
20033     for f in $ac_file_in; do
20034       case $f in
20035       -) echo $tmp/stdin ;;
20036       [\\/$]*)
20037          # Absolute (can't be DOS-style, as IFS=:)
20038          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20039 echo "$as_me: error: cannot find input file: $f" >&2;}
20040    { (exit 1); exit 1; }; }
20041          echo "$f";;
20042       *) # Relative
20043          if test -f "$f"; then
20044            # Build tree
20045            echo "$f"
20046          elif test -f "$srcdir/$f"; then
20047            # Source tree
20048            echo "$srcdir/$f"
20049          else
20050            # /dev/null tree
20051            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20052 echo "$as_me: error: cannot find input file: $f" >&2;}
20053    { (exit 1); exit 1; }; }
20054          fi;;
20055       esac
20056     done` || { (exit 1); exit 1; }
20057
20058   if test x"$ac_file" != x-; then
20059     { echo "$as_me:$LINENO: creating $ac_file" >&5
20060 echo "$as_me: creating $ac_file" >&6;}
20061     rm -f "$ac_file"
20062   fi
20063 _ACEOF
20064 cat >>$CONFIG_STATUS <<_ACEOF
20065   sed "$ac_vpsub
20066 $extrasub
20067 _ACEOF
20068 cat >>$CONFIG_STATUS <<\_ACEOF
20069 :t
20070 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20071 s,@configure_input@,$configure_input,;t t
20072 s,@srcdir@,$ac_srcdir,;t t
20073 s,@abs_srcdir@,$ac_abs_srcdir,;t t
20074 s,@top_srcdir@,$ac_top_srcdir,;t t
20075 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
20076 s,@builddir@,$ac_builddir,;t t
20077 s,@abs_builddir@,$ac_abs_builddir,;t t
20078 s,@top_builddir@,$ac_top_builddir,;t t
20079 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
20080 s,@INSTALL@,$ac_INSTALL,;t t
20081 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
20082   rm -f $tmp/stdin
20083   if test x"$ac_file" != x-; then
20084     mv $tmp/out $ac_file
20085   else
20086     cat $tmp/out
20087     rm -f $tmp/out
20088   fi
20089
20090 done
20091 _ACEOF
20092 cat >>$CONFIG_STATUS <<\_ACEOF
20093
20094 #
20095 # CONFIG_HEADER section.
20096 #
20097
20098 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
20099 # NAME is the cpp macro being defined and VALUE is the value it is being given.
20100 #
20101 # ac_d sets the value in "#define NAME VALUE" lines.
20102 ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
20103 ac_dB='[         ].*$,\1#\2'
20104 ac_dC=' '
20105 ac_dD=',;t'
20106 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
20107 ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
20108 ac_uB='$,\1#\2define\3'
20109 ac_uC=' '
20110 ac_uD=',;t'
20111
20112 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
20113   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
20114   case $ac_file in
20115   - | *:- | *:-:* ) # input from stdin
20116         cat >$tmp/stdin
20117         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20118         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20119   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20120         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20121   * )   ac_file_in=$ac_file.in ;;
20122   esac
20123
20124   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
20125 echo "$as_me: creating $ac_file" >&6;}
20126
20127   # First look for the input files in the build tree, otherwise in the
20128   # src tree.
20129   ac_file_inputs=`IFS=:
20130     for f in $ac_file_in; do
20131       case $f in
20132       -) echo $tmp/stdin ;;
20133       [\\/$]*)
20134          # Absolute (can't be DOS-style, as IFS=:)
20135          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20136 echo "$as_me: error: cannot find input file: $f" >&2;}
20137    { (exit 1); exit 1; }; }
20138          # Do quote $f, to prevent DOS paths from being IFS'd.
20139          echo "$f";;
20140       *) # Relative
20141          if test -f "$f"; then
20142            # Build tree
20143            echo "$f"
20144          elif test -f "$srcdir/$f"; then
20145            # Source tree
20146            echo "$srcdir/$f"
20147          else
20148            # /dev/null tree
20149            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20150 echo "$as_me: error: cannot find input file: $f" >&2;}
20151    { (exit 1); exit 1; }; }
20152          fi;;
20153       esac
20154     done` || { (exit 1); exit 1; }
20155   # Remove the trailing spaces.
20156   sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
20157
20158 _ACEOF
20159
20160 # Transform confdefs.h into two sed scripts, `conftest.defines' and
20161 # `conftest.undefs', that substitutes the proper values into
20162 # config.h.in to produce config.h.  The first handles `#define'
20163 # templates, and the second `#undef' templates.
20164 # And first: Protect against being on the right side of a sed subst in
20165 # config.status.  Protect against being in an unquoted here document
20166 # in config.status.
20167 rm -f conftest.defines conftest.undefs
20168 # Using a here document instead of a string reduces the quoting nightmare.
20169 # Putting comments in sed scripts is not portable.
20170 #
20171 # `end' is used to avoid that the second main sed command (meant for
20172 # 0-ary CPP macros) applies to n-ary macro definitions.
20173 # See the Autoconf documentation for `clear'.
20174 cat >confdef2sed.sed <<\_ACEOF
20175 s/[\\&,]/\\&/g
20176 s,[\\$`],\\&,g
20177 t clear
20178 : clear
20179 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
20180 t end
20181 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
20182 : end
20183 _ACEOF
20184 # If some macros were called several times there might be several times
20185 # the same #defines, which is useless.  Nevertheless, we may not want to
20186 # sort them, since we want the *last* AC-DEFINE to be honored.
20187 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
20188 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
20189 rm -f confdef2sed.sed
20190
20191 # This sed command replaces #undef with comments.  This is necessary, for
20192 # example, in the case of _POSIX_SOURCE, which is predefined and required
20193 # on some systems where configure will not decide to define it.
20194 cat >>conftest.undefs <<\_ACEOF
20195 s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
20196 _ACEOF
20197
20198 # Break up conftest.defines because some shells have a limit on the size
20199 # of here documents, and old seds have small limits too (100 cmds).
20200 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
20201 echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
20202 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
20203 echo '  :' >>$CONFIG_STATUS
20204 rm -f conftest.tail
20205 while grep . conftest.defines >/dev/null
20206 do
20207   # Write a limited-size here document to $tmp/defines.sed.
20208   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
20209   # Speed up: don't consider the non `#define' lines.
20210   echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
20211   # Work around the forget-to-reset-the-flag bug.
20212   echo 't clr' >>$CONFIG_STATUS
20213   echo ': clr' >>$CONFIG_STATUS
20214   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
20215   echo 'CEOF
20216   sed -f $tmp/defines.sed $tmp/in >$tmp/out
20217   rm -f $tmp/in
20218   mv $tmp/out $tmp/in
20219 ' >>$CONFIG_STATUS
20220   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
20221   rm -f conftest.defines
20222   mv conftest.tail conftest.defines
20223 done
20224 rm -f conftest.defines
20225 echo '  fi # grep' >>$CONFIG_STATUS
20226 echo >>$CONFIG_STATUS
20227
20228 # Break up conftest.undefs because some shells have a limit on the size
20229 # of here documents, and old seds have small limits too (100 cmds).
20230 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
20231 rm -f conftest.tail
20232 while grep . conftest.undefs >/dev/null
20233 do
20234   # Write a limited-size here document to $tmp/undefs.sed.
20235   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
20236   # Speed up: don't consider the non `#undef'
20237   echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
20238   # Work around the forget-to-reset-the-flag bug.
20239   echo 't clr' >>$CONFIG_STATUS
20240   echo ': clr' >>$CONFIG_STATUS
20241   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
20242   echo 'CEOF
20243   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
20244   rm -f $tmp/in
20245   mv $tmp/out $tmp/in
20246 ' >>$CONFIG_STATUS
20247   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
20248   rm -f conftest.undefs
20249   mv conftest.tail conftest.undefs
20250 done
20251 rm -f conftest.undefs
20252
20253 cat >>$CONFIG_STATUS <<\_ACEOF
20254   # Let's still pretend it is `configure' which instantiates (i.e., don't
20255   # use $as_me), people would be surprised to read:
20256   #    /* config.h.  Generated by config.status.  */
20257   if test x"$ac_file" = x-; then
20258     echo "/* Generated by configure.  */" >$tmp/config.h
20259   else
20260     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
20261   fi
20262   cat $tmp/in >>$tmp/config.h
20263   rm -f $tmp/in
20264   if test x"$ac_file" != x-; then
20265     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
20266       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
20267 echo "$as_me: $ac_file is unchanged" >&6;}
20268     else
20269       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
20270 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20271          X"$ac_file" : 'X\(//\)[^/]' \| \
20272          X"$ac_file" : 'X\(//\)$' \| \
20273          X"$ac_file" : 'X\(/\)' \| \
20274          .     : '\(.\)' 2>/dev/null ||
20275 echo X"$ac_file" |
20276     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20277           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20278           /^X\(\/\/\)$/{ s//\1/; q; }
20279           /^X\(\/\).*/{ s//\1/; q; }
20280           s/.*/./; q'`
20281       { if $as_mkdir_p; then
20282     mkdir -p "$ac_dir"
20283   else
20284     as_dir="$ac_dir"
20285     as_dirs=
20286     while test ! -d "$as_dir"; do
20287       as_dirs="$as_dir $as_dirs"
20288       as_dir=`(dirname "$as_dir") 2>/dev/null ||
20289 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20290          X"$as_dir" : 'X\(//\)[^/]' \| \
20291          X"$as_dir" : 'X\(//\)$' \| \
20292          X"$as_dir" : 'X\(/\)' \| \
20293          .     : '\(.\)' 2>/dev/null ||
20294 echo X"$as_dir" |
20295     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20296           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20297           /^X\(\/\/\)$/{ s//\1/; q; }
20298           /^X\(\/\).*/{ s//\1/; q; }
20299           s/.*/./; q'`
20300     done
20301     test ! -n "$as_dirs" || mkdir $as_dirs
20302   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
20303 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
20304    { (exit 1); exit 1; }; }; }
20305
20306       rm -f $ac_file
20307       mv $tmp/config.h $ac_file
20308     fi
20309   else
20310     cat $tmp/config.h
20311     rm -f $tmp/config.h
20312   fi
20313 done
20314 _ACEOF
20315 cat >>$CONFIG_STATUS <<\_ACEOF
20316
20317 #
20318 # CONFIG_COMMANDS section.
20319 #
20320 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
20321   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
20322   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
20323   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
20324 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20325          X"$ac_dest" : 'X\(//\)[^/]' \| \
20326          X"$ac_dest" : 'X\(//\)$' \| \
20327          X"$ac_dest" : 'X\(/\)' \| \
20328          .     : '\(.\)' 2>/dev/null ||
20329 echo X"$ac_dest" |
20330     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20331           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20332           /^X\(\/\/\)$/{ s//\1/; q; }
20333           /^X\(\/\).*/{ s//\1/; q; }
20334           s/.*/./; q'`
20335   { if $as_mkdir_p; then
20336     mkdir -p "$ac_dir"
20337   else
20338     as_dir="$ac_dir"
20339     as_dirs=
20340     while test ! -d "$as_dir"; do
20341       as_dirs="$as_dir $as_dirs"
20342       as_dir=`(dirname "$as_dir") 2>/dev/null ||
20343 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20344          X"$as_dir" : 'X\(//\)[^/]' \| \
20345          X"$as_dir" : 'X\(//\)$' \| \
20346          X"$as_dir" : 'X\(/\)' \| \
20347          .     : '\(.\)' 2>/dev/null ||
20348 echo X"$as_dir" |
20349     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20350           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20351           /^X\(\/\/\)$/{ s//\1/; q; }
20352           /^X\(\/\).*/{ s//\1/; q; }
20353           s/.*/./; q'`
20354     done
20355     test ! -n "$as_dirs" || mkdir $as_dirs
20356   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
20357 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
20358    { (exit 1); exit 1; }; }; }
20359
20360   ac_builddir=.
20361
20362 if test "$ac_dir" != .; then
20363   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
20364   # A "../" for each directory in $ac_dir_suffix.
20365   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
20366 else
20367   ac_dir_suffix= ac_top_builddir=
20368 fi
20369
20370 case $srcdir in
20371   .)  # No --srcdir option.  We are building in place.
20372     ac_srcdir=.
20373     if test -z "$ac_top_builddir"; then
20374        ac_top_srcdir=.
20375     else
20376        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
20377     fi ;;
20378   [\\/]* | ?:[\\/]* )  # Absolute path.
20379     ac_srcdir=$srcdir$ac_dir_suffix;
20380     ac_top_srcdir=$srcdir ;;
20381   *) # Relative path.
20382     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
20383     ac_top_srcdir=$ac_top_builddir$srcdir ;;
20384 esac
20385
20386 # Do not use `cd foo && pwd` to compute absolute paths, because
20387 # the directories may not exist.
20388 case `pwd` in
20389 .) ac_abs_builddir="$ac_dir";;
20390 *)
20391   case "$ac_dir" in
20392   .) ac_abs_builddir=`pwd`;;
20393   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
20394   *) ac_abs_builddir=`pwd`/"$ac_dir";;
20395   esac;;
20396 esac
20397 case $ac_abs_builddir in
20398 .) ac_abs_top_builddir=${ac_top_builddir}.;;
20399 *)
20400   case ${ac_top_builddir}. in
20401   .) ac_abs_top_builddir=$ac_abs_builddir;;
20402   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
20403   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
20404   esac;;
20405 esac
20406 case $ac_abs_builddir in
20407 .) ac_abs_srcdir=$ac_srcdir;;
20408 *)
20409   case $ac_srcdir in
20410   .) ac_abs_srcdir=$ac_abs_builddir;;
20411   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
20412   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
20413   esac;;
20414 esac
20415 case $ac_abs_builddir in
20416 .) ac_abs_top_srcdir=$ac_top_srcdir;;
20417 *)
20418   case $ac_top_srcdir in
20419   .) ac_abs_top_srcdir=$ac_abs_builddir;;
20420   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
20421   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
20422   esac;;
20423 esac
20424
20425
20426   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
20427 echo "$as_me: executing $ac_dest commands" >&6;}
20428   case $ac_dest in
20429     controls ) test -d "controls" || ({ echo "$as_me:$LINENO: creating controls" >&5
20430 echo "$as_me: creating controls" >&6;} && mkdir "controls") ;;
20431     dlls/ddraw/d3ddevice ) test -d "dlls/ddraw/d3ddevice" || ({ echo "$as_me:$LINENO: creating dlls/ddraw/d3ddevice" >&5
20432 echo "$as_me: creating dlls/ddraw/d3ddevice" >&6;} && mkdir "dlls/ddraw/d3ddevice") ;;
20433     dlls/ddraw/dclipper ) test -d "dlls/ddraw/dclipper" || ({ echo "$as_me:$LINENO: creating dlls/ddraw/dclipper" >&5
20434 echo "$as_me: creating dlls/ddraw/dclipper" >&6;} && mkdir "dlls/ddraw/dclipper") ;;
20435     dlls/ddraw/ddraw ) test -d "dlls/ddraw/ddraw" || ({ echo "$as_me:$LINENO: creating dlls/ddraw/ddraw" >&5
20436 echo "$as_me: creating dlls/ddraw/ddraw" >&6;} && mkdir "dlls/ddraw/ddraw") ;;
20437     dlls/ddraw/direct3d ) test -d "dlls/ddraw/direct3d" || ({ echo "$as_me:$LINENO: creating dlls/ddraw/direct3d" >&5
20438 echo "$as_me: creating dlls/ddraw/direct3d" >&6;} && mkdir "dlls/ddraw/direct3d") ;;
20439     dlls/ddraw/dpalette ) test -d "dlls/ddraw/dpalette" || ({ echo "$as_me:$LINENO: creating dlls/ddraw/dpalette" >&5
20440 echo "$as_me: creating dlls/ddraw/dpalette" >&6;} && mkdir "dlls/ddraw/dpalette") ;;
20441     dlls/ddraw/dsurface ) test -d "dlls/ddraw/dsurface" || ({ echo "$as_me:$LINENO: creating dlls/ddraw/dsurface" >&5
20442 echo "$as_me: creating dlls/ddraw/dsurface" >&6;} && mkdir "dlls/ddraw/dsurface") ;;
20443     dlls/dinput/joystick ) test -d "dlls/dinput/joystick" || ({ echo "$as_me:$LINENO: creating dlls/dinput/joystick" >&5
20444 echo "$as_me: creating dlls/dinput/joystick" >&6;} && mkdir "dlls/dinput/joystick") ;;
20445     dlls/dinput/keyboard ) test -d "dlls/dinput/keyboard" || ({ echo "$as_me:$LINENO: creating dlls/dinput/keyboard" >&5
20446 echo "$as_me: creating dlls/dinput/keyboard" >&6;} && mkdir "dlls/dinput/keyboard") ;;
20447     dlls/dinput/mouse ) test -d "dlls/dinput/mouse" || ({ echo "$as_me:$LINENO: creating dlls/dinput/mouse" >&5
20448 echo "$as_me: creating dlls/dinput/mouse" >&6;} && mkdir "dlls/dinput/mouse") ;;
20449     dlls/gdi/enhmfdrv ) test -d "dlls/gdi/enhmfdrv" || ({ echo "$as_me:$LINENO: creating dlls/gdi/enhmfdrv" >&5
20450 echo "$as_me: creating dlls/gdi/enhmfdrv" >&6;} && mkdir "dlls/gdi/enhmfdrv") ;;
20451     dlls/gdi/mfdrv ) test -d "dlls/gdi/mfdrv" || ({ echo "$as_me:$LINENO: creating dlls/gdi/mfdrv" >&5
20452 echo "$as_me: creating dlls/gdi/mfdrv" >&6;} && mkdir "dlls/gdi/mfdrv") ;;
20453     dlls/kernel/messages ) test -d "dlls/kernel/messages" || ({ echo "$as_me:$LINENO: creating dlls/kernel/messages" >&5
20454 echo "$as_me: creating dlls/kernel/messages" >&6;} && mkdir "dlls/kernel/messages") ;;
20455     dlls/user/dde ) test -d "dlls/user/dde" || ({ echo "$as_me:$LINENO: creating dlls/user/dde" >&5
20456 echo "$as_me: creating dlls/user/dde" >&6;} && mkdir "dlls/user/dde") ;;
20457     dlls/user/resources ) test -d "dlls/user/resources" || ({ echo "$as_me:$LINENO: creating dlls/user/resources" >&5
20458 echo "$as_me: creating dlls/user/resources" >&6;} && mkdir "dlls/user/resources") ;;
20459     dlls/wineps/data ) test -d "dlls/wineps/data" || ({ echo "$as_me:$LINENO: creating dlls/wineps/data" >&5
20460 echo "$as_me: creating dlls/wineps/data" >&6;} && mkdir "dlls/wineps/data") ;;
20461     files ) test -d "files" || ({ echo "$as_me:$LINENO: creating files" >&5
20462 echo "$as_me: creating files" >&6;} && mkdir "files") ;;
20463     graphics ) test -d "graphics" || ({ echo "$as_me:$LINENO: creating graphics" >&5
20464 echo "$as_me: creating graphics" >&6;} && mkdir "graphics") ;;
20465     include/wine ) test -d "include/wine" || ({ echo "$as_me:$LINENO: creating include/wine" >&5
20466 echo "$as_me: creating include/wine" >&6;} && mkdir "include/wine") ;;
20467     misc ) test -d "misc" || ({ echo "$as_me:$LINENO: creating misc" >&5
20468 echo "$as_me: creating misc" >&6;} && mkdir "misc") ;;
20469     objects ) test -d "objects" || ({ echo "$as_me:$LINENO: creating objects" >&5
20470 echo "$as_me: creating objects" >&6;} && mkdir "objects") ;;
20471     programs/regedit/tests ) test -d "programs/regedit/tests" || ({ echo "$as_me:$LINENO: creating programs/regedit/tests" >&5
20472 echo "$as_me: creating programs/regedit/tests" >&6;} && mkdir "programs/regedit/tests") ;;
20473     windows ) test -d "windows" || ({ echo "$as_me:$LINENO: creating windows" >&5
20474 echo "$as_me: creating windows" >&6;} && mkdir "windows") ;;
20475   esac
20476 done
20477 _ACEOF
20478
20479 cat >>$CONFIG_STATUS <<\_ACEOF
20480
20481 { (exit 0); exit 0; }
20482 _ACEOF
20483 chmod +x $CONFIG_STATUS
20484 ac_clean_files=$ac_clean_files_save
20485
20486
20487 # configure is writing to config.log, and then calls config.status.
20488 # config.status does its own redirection, appending to config.log.
20489 # Unfortunately, on DOS this fails, as config.log is still kept open
20490 # by configure, so config.status won't be able to write to it; its
20491 # output is simply discarded.  So we exec the FD to /dev/null,
20492 # effectively closing config.log, so it can be properly (re)opened and
20493 # appended to by config.status.  When coming back to configure, we
20494 # need to make the FD available again.
20495 if test "$no_create" != yes; then
20496   ac_cs_success=:
20497   ac_config_status_args=
20498   test "$silent" = yes &&
20499     ac_config_status_args="$ac_config_status_args --quiet"
20500   exec 5>/dev/null
20501   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
20502   exec 5>>config.log
20503   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
20504   # would make configure fail if this is the last instruction.
20505   $ac_cs_success || { (exit 1); exit 1; }
20506 fi
20507
20508
20509 if test "$have_x" = "no"
20510 then
20511   echo
20512   echo "*** Warning: X development files not found. Wine will be built without"
20513   echo "*** X support, which currently does not work, and would probably not be"
20514   echo "*** what you want anyway. You will need to install devel packages of"
20515   echo "*** Xlib/Xfree86 at the very least."
20516 fi
20517
20518 if test "$wine_cv_opengl_version_OK" = "no"
20519 then
20520   echo
20521   echo "*** Warning: old Mesa headers detected. Wine will be built without Direct3D"
20522   echo "*** support. Consider upgrading your Mesa libraries (http://www.mesa3d.org/)."
20523 fi
20524
20525 if test "$wine_cv_msg_freetype" = "yes"
20526 then
20527   echo
20528   echo "*** Note: Your system appears to have the FreeType 2 runtime libraries"
20529   echo "*** installed, but 'freetype-config' is not in your PATH. Install the"
20530   echo "*** freetype-devel package (or its equivalent on your distribution) to"
20531   echo "*** enable Wine to use TrueType fonts."
20532 fi
20533
20534 echo
20535 echo "Configure finished.  Do 'make depend && make' to compile Wine."
20536 echo
20537