Get rid of the static module list.
[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
7414 for ac_header in X11/XKBlib.h \
7415                           X11/Xutil.h \
7416                           X11/extensions/shape.h \
7417                           X11/extensions/XInput.h \
7418                           X11/extensions/XShm.h \
7419                           X11/extensions/Xrandr.h \
7420                           X11/extensions/Xrender.h \
7421                           X11/extensions/Xvlib.h \
7422                           X11/extensions/xf86dga.h \
7423                           X11/extensions/xf86vmode.h
7424 do
7425 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7426 echo "$as_me:$LINENO: checking for $ac_header" >&5
7427 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7428 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7429   echo $ECHO_N "(cached) $ECHO_C" >&6
7430 else
7431   cat >conftest.$ac_ext <<_ACEOF
7432 /* confdefs.h.  */
7433 _ACEOF
7434 cat confdefs.h >>conftest.$ac_ext
7435 cat >>conftest.$ac_ext <<_ACEOF
7436 /* end confdefs.h.  */
7437 #include <X11/Xlib.h>
7438                           #ifdef HAVE_X11_XUTIL_H
7439                           # include <X11/Xutil.h>
7440                           #endif
7441
7442 #include <$ac_header>
7443 _ACEOF
7444 rm -f conftest.$ac_objext
7445 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7446   (eval $ac_compile) 2>conftest.er1
7447   ac_status=$?
7448   grep -v '^ *+' conftest.er1 >conftest.err
7449   rm -f conftest.er1
7450   cat conftest.err >&5
7451   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7452   (exit $ac_status); } &&
7453          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
7454   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7455   (eval $ac_try) 2>&5
7456   ac_status=$?
7457   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7458   (exit $ac_status); }; } &&
7459          { ac_try='test -s conftest.$ac_objext'
7460   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7461   (eval $ac_try) 2>&5
7462   ac_status=$?
7463   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7464   (exit $ac_status); }; }; then
7465   eval "$as_ac_Header=yes"
7466 else
7467   echo "$as_me: failed program was:" >&5
7468 sed 's/^/| /' conftest.$ac_ext >&5
7469
7470 eval "$as_ac_Header=no"
7471 fi
7472 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7473 fi
7474 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7475 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7476 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7477   cat >>confdefs.h <<_ACEOF
7478 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7479 _ACEOF
7480
7481 fi
7482
7483 done
7484
7485
7486                 if test "$ac_cv_header_X11_XKBlib_h" = "yes"
7487         then
7488               echo "$as_me:$LINENO: checking for XkbQueryExtension in -lX11" >&5
7489 echo $ECHO_N "checking for XkbQueryExtension in -lX11... $ECHO_C" >&6
7490 if test "${ac_cv_lib_X11_XkbQueryExtension+set}" = set; then
7491   echo $ECHO_N "(cached) $ECHO_C" >&6
7492 else
7493   ac_check_lib_save_LIBS=$LIBS
7494 LIBS="-lX11 $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
7495 cat >conftest.$ac_ext <<_ACEOF
7496 /* confdefs.h.  */
7497 _ACEOF
7498 cat confdefs.h >>conftest.$ac_ext
7499 cat >>conftest.$ac_ext <<_ACEOF
7500 /* end confdefs.h.  */
7501
7502 /* Override any gcc2 internal prototype to avoid an error.  */
7503 #ifdef __cplusplus
7504 extern "C"
7505 #endif
7506 /* We use char because int might match the return type of a gcc2
7507    builtin and then its argument prototype would still apply.  */
7508 char XkbQueryExtension ();
7509 int
7510 main ()
7511 {
7512 XkbQueryExtension ();
7513   ;
7514   return 0;
7515 }
7516 _ACEOF
7517 rm -f conftest.$ac_objext conftest$ac_exeext
7518 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7519   (eval $ac_link) 2>conftest.er1
7520   ac_status=$?
7521   grep -v '^ *+' conftest.er1 >conftest.err
7522   rm -f conftest.er1
7523   cat conftest.err >&5
7524   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7525   (exit $ac_status); } &&
7526          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
7527   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7528   (eval $ac_try) 2>&5
7529   ac_status=$?
7530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7531   (exit $ac_status); }; } &&
7532          { ac_try='test -s conftest$ac_exeext'
7533   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7534   (eval $ac_try) 2>&5
7535   ac_status=$?
7536   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7537   (exit $ac_status); }; }; then
7538   ac_cv_lib_X11_XkbQueryExtension=yes
7539 else
7540   echo "$as_me: failed program was:" >&5
7541 sed 's/^/| /' conftest.$ac_ext >&5
7542
7543 ac_cv_lib_X11_XkbQueryExtension=no
7544 fi
7545 rm -f conftest.err conftest.$ac_objext \
7546       conftest$ac_exeext conftest.$ac_ext
7547 LIBS=$ac_check_lib_save_LIBS
7548 fi
7549 echo "$as_me:$LINENO: result: $ac_cv_lib_X11_XkbQueryExtension" >&5
7550 echo "${ECHO_T}$ac_cv_lib_X11_XkbQueryExtension" >&6
7551 if test $ac_cv_lib_X11_XkbQueryExtension = yes; then
7552
7553 cat >>confdefs.h <<\_ACEOF
7554 #define HAVE_XKB 1
7555 _ACEOF
7556
7557 fi
7558
7559         fi
7560
7561                 if test "$ac_cv_header_X11_extensions_XShm_h" = "yes"
7562         then
7563               echo "$as_me:$LINENO: checking for XShmQueryExtension in -lXext" >&5
7564 echo $ECHO_N "checking for XShmQueryExtension in -lXext... $ECHO_C" >&6
7565 if test "${ac_cv_lib_Xext_XShmQueryExtension+set}" = set; then
7566   echo $ECHO_N "(cached) $ECHO_C" >&6
7567 else
7568   ac_check_lib_save_LIBS=$LIBS
7569 LIBS="-lXext $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
7570 cat >conftest.$ac_ext <<_ACEOF
7571 /* confdefs.h.  */
7572 _ACEOF
7573 cat confdefs.h >>conftest.$ac_ext
7574 cat >>conftest.$ac_ext <<_ACEOF
7575 /* end confdefs.h.  */
7576
7577 /* Override any gcc2 internal prototype to avoid an error.  */
7578 #ifdef __cplusplus
7579 extern "C"
7580 #endif
7581 /* We use char because int might match the return type of a gcc2
7582    builtin and then its argument prototype would still apply.  */
7583 char XShmQueryExtension ();
7584 int
7585 main ()
7586 {
7587 XShmQueryExtension ();
7588   ;
7589   return 0;
7590 }
7591 _ACEOF
7592 rm -f conftest.$ac_objext conftest$ac_exeext
7593 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7594   (eval $ac_link) 2>conftest.er1
7595   ac_status=$?
7596   grep -v '^ *+' conftest.er1 >conftest.err
7597   rm -f conftest.er1
7598   cat conftest.err >&5
7599   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7600   (exit $ac_status); } &&
7601          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
7602   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7603   (eval $ac_try) 2>&5
7604   ac_status=$?
7605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7606   (exit $ac_status); }; } &&
7607          { ac_try='test -s conftest$ac_exeext'
7608   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7609   (eval $ac_try) 2>&5
7610   ac_status=$?
7611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7612   (exit $ac_status); }; }; then
7613   ac_cv_lib_Xext_XShmQueryExtension=yes
7614 else
7615   echo "$as_me: failed program was:" >&5
7616 sed 's/^/| /' conftest.$ac_ext >&5
7617
7618 ac_cv_lib_Xext_XShmQueryExtension=no
7619 fi
7620 rm -f conftest.err conftest.$ac_objext \
7621       conftest$ac_exeext conftest.$ac_ext
7622 LIBS=$ac_check_lib_save_LIBS
7623 fi
7624 echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShmQueryExtension" >&5
7625 echo "${ECHO_T}$ac_cv_lib_Xext_XShmQueryExtension" >&6
7626 if test $ac_cv_lib_Xext_XShmQueryExtension = yes; then
7627
7628 cat >>confdefs.h <<\_ACEOF
7629 #define HAVE_LIBXXSHM 1
7630 _ACEOF
7631
7632 fi
7633
7634         fi
7635
7636                 if test "$ac_cv_header_X11_extensions_shape_h" = "yes"
7637         then
7638               echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
7639 echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6
7640 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
7641   echo $ECHO_N "(cached) $ECHO_C" >&6
7642 else
7643   ac_check_lib_save_LIBS=$LIBS
7644 LIBS="-lXext $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
7645 cat >conftest.$ac_ext <<_ACEOF
7646 /* confdefs.h.  */
7647 _ACEOF
7648 cat confdefs.h >>conftest.$ac_ext
7649 cat >>conftest.$ac_ext <<_ACEOF
7650 /* end confdefs.h.  */
7651
7652 /* Override any gcc2 internal prototype to avoid an error.  */
7653 #ifdef __cplusplus
7654 extern "C"
7655 #endif
7656 /* We use char because int might match the return type of a gcc2
7657    builtin and then its argument prototype would still apply.  */
7658 char XShapeQueryExtension ();
7659 int
7660 main ()
7661 {
7662 XShapeQueryExtension ();
7663   ;
7664   return 0;
7665 }
7666 _ACEOF
7667 rm -f conftest.$ac_objext conftest$ac_exeext
7668 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7669   (eval $ac_link) 2>conftest.er1
7670   ac_status=$?
7671   grep -v '^ *+' conftest.er1 >conftest.err
7672   rm -f conftest.er1
7673   cat conftest.err >&5
7674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7675   (exit $ac_status); } &&
7676          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
7677   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7678   (eval $ac_try) 2>&5
7679   ac_status=$?
7680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7681   (exit $ac_status); }; } &&
7682          { ac_try='test -s conftest$ac_exeext'
7683   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7684   (eval $ac_try) 2>&5
7685   ac_status=$?
7686   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7687   (exit $ac_status); }; }; then
7688   ac_cv_lib_Xext_XShapeQueryExtension=yes
7689 else
7690   echo "$as_me: failed program was:" >&5
7691 sed 's/^/| /' conftest.$ac_ext >&5
7692
7693 ac_cv_lib_Xext_XShapeQueryExtension=no
7694 fi
7695 rm -f conftest.err conftest.$ac_objext \
7696       conftest$ac_exeext conftest.$ac_ext
7697 LIBS=$ac_check_lib_save_LIBS
7698 fi
7699 echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
7700 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6
7701 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
7702
7703 cat >>confdefs.h <<\_ACEOF
7704 #define HAVE_LIBXSHAPE 1
7705 _ACEOF
7706
7707 fi
7708
7709         fi
7710
7711                 if test "$ac_cv_header_X11_extensions_xf86dga_h" = "yes"
7712         then
7713               echo "$as_me:$LINENO: checking for XDGAQueryExtension in -lXxf86dga" >&5
7714 echo $ECHO_N "checking for XDGAQueryExtension in -lXxf86dga... $ECHO_C" >&6
7715 if test "${ac_cv_lib_Xxf86dga_XDGAQueryExtension+set}" = set; then
7716   echo $ECHO_N "(cached) $ECHO_C" >&6
7717 else
7718   ac_check_lib_save_LIBS=$LIBS
7719 LIBS="-lXxf86dga $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
7720 cat >conftest.$ac_ext <<_ACEOF
7721 /* confdefs.h.  */
7722 _ACEOF
7723 cat confdefs.h >>conftest.$ac_ext
7724 cat >>conftest.$ac_ext <<_ACEOF
7725 /* end confdefs.h.  */
7726
7727 /* Override any gcc2 internal prototype to avoid an error.  */
7728 #ifdef __cplusplus
7729 extern "C"
7730 #endif
7731 /* We use char because int might match the return type of a gcc2
7732    builtin and then its argument prototype would still apply.  */
7733 char XDGAQueryExtension ();
7734 int
7735 main ()
7736 {
7737 XDGAQueryExtension ();
7738   ;
7739   return 0;
7740 }
7741 _ACEOF
7742 rm -f conftest.$ac_objext conftest$ac_exeext
7743 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7744   (eval $ac_link) 2>conftest.er1
7745   ac_status=$?
7746   grep -v '^ *+' conftest.er1 >conftest.err
7747   rm -f conftest.er1
7748   cat conftest.err >&5
7749   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7750   (exit $ac_status); } &&
7751          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
7752   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7753   (eval $ac_try) 2>&5
7754   ac_status=$?
7755   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7756   (exit $ac_status); }; } &&
7757          { ac_try='test -s conftest$ac_exeext'
7758   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7759   (eval $ac_try) 2>&5
7760   ac_status=$?
7761   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7762   (exit $ac_status); }; }; then
7763   ac_cv_lib_Xxf86dga_XDGAQueryExtension=yes
7764 else
7765   echo "$as_me: failed program was:" >&5
7766 sed 's/^/| /' conftest.$ac_ext >&5
7767
7768 ac_cv_lib_Xxf86dga_XDGAQueryExtension=no
7769 fi
7770 rm -f conftest.err conftest.$ac_objext \
7771       conftest$ac_exeext conftest.$ac_ext
7772 LIBS=$ac_check_lib_save_LIBS
7773 fi
7774 echo "$as_me:$LINENO: result: $ac_cv_lib_Xxf86dga_XDGAQueryExtension" >&5
7775 echo "${ECHO_T}$ac_cv_lib_Xxf86dga_XDGAQueryExtension" >&6
7776 if test $ac_cv_lib_Xxf86dga_XDGAQueryExtension = yes; then
7777
7778 cat >>confdefs.h <<\_ACEOF
7779 #define HAVE_LIBXXF86DGA2 1
7780 _ACEOF
7781
7782                   X_PRE_LIBS="$X_PRE_LIBS -lXxf86dga"
7783
7784 else
7785                                        echo "$as_me:$LINENO: checking for XF86DGAQueryExtension in -lXxf86dga" >&5
7786 echo $ECHO_N "checking for XF86DGAQueryExtension in -lXxf86dga... $ECHO_C" >&6
7787 if test "${ac_cv_lib_Xxf86dga_XF86DGAQueryExtension+set}" = set; then
7788   echo $ECHO_N "(cached) $ECHO_C" >&6
7789 else
7790   ac_check_lib_save_LIBS=$LIBS
7791 LIBS="-lXxf86dga $X_LIBS -lXext -lX11 $X_EXTRA_LIBS
7792                    $LIBS"
7793 cat >conftest.$ac_ext <<_ACEOF
7794 /* confdefs.h.  */
7795 _ACEOF
7796 cat confdefs.h >>conftest.$ac_ext
7797 cat >>conftest.$ac_ext <<_ACEOF
7798 /* end confdefs.h.  */
7799
7800 /* Override any gcc2 internal prototype to avoid an error.  */
7801 #ifdef __cplusplus
7802 extern "C"
7803 #endif
7804 /* We use char because int might match the return type of a gcc2
7805    builtin and then its argument prototype would still apply.  */
7806 char XF86DGAQueryExtension ();
7807 int
7808 main ()
7809 {
7810 XF86DGAQueryExtension ();
7811   ;
7812   return 0;
7813 }
7814 _ACEOF
7815 rm -f conftest.$ac_objext conftest$ac_exeext
7816 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7817   (eval $ac_link) 2>conftest.er1
7818   ac_status=$?
7819   grep -v '^ *+' conftest.er1 >conftest.err
7820   rm -f conftest.er1
7821   cat conftest.err >&5
7822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7823   (exit $ac_status); } &&
7824          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
7825   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7826   (eval $ac_try) 2>&5
7827   ac_status=$?
7828   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7829   (exit $ac_status); }; } &&
7830          { ac_try='test -s conftest$ac_exeext'
7831   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7832   (eval $ac_try) 2>&5
7833   ac_status=$?
7834   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7835   (exit $ac_status); }; }; then
7836   ac_cv_lib_Xxf86dga_XF86DGAQueryExtension=yes
7837 else
7838   echo "$as_me: failed program was:" >&5
7839 sed 's/^/| /' conftest.$ac_ext >&5
7840
7841 ac_cv_lib_Xxf86dga_XF86DGAQueryExtension=no
7842 fi
7843 rm -f conftest.err conftest.$ac_objext \
7844       conftest$ac_exeext conftest.$ac_ext
7845 LIBS=$ac_check_lib_save_LIBS
7846 fi
7847 echo "$as_me:$LINENO: result: $ac_cv_lib_Xxf86dga_XF86DGAQueryExtension" >&5
7848 echo "${ECHO_T}$ac_cv_lib_Xxf86dga_XF86DGAQueryExtension" >&6
7849 if test $ac_cv_lib_Xxf86dga_XF86DGAQueryExtension = yes; then
7850
7851 cat >>confdefs.h <<\_ACEOF
7852 #define HAVE_LIBXXF86DGA 1
7853 _ACEOF
7854
7855                       X_PRE_LIBS="$X_PRE_LIBS -lXxf86dga"
7856
7857 fi
7858
7859
7860 fi
7861
7862         fi
7863
7864                 if test "$ac_cv_header_X11_extensions_xf86vmode_h" = "yes"
7865         then
7866                 echo "$as_me:$LINENO: checking for XF86VidModeQueryExtension in -lXxf86vm" >&5
7867 echo $ECHO_N "checking for XF86VidModeQueryExtension in -lXxf86vm... $ECHO_C" >&6
7868 if test "${ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension+set}" = set; then
7869   echo $ECHO_N "(cached) $ECHO_C" >&6
7870 else
7871   ac_check_lib_save_LIBS=$LIBS
7872 LIBS="-lXxf86vm $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
7873 cat >conftest.$ac_ext <<_ACEOF
7874 /* confdefs.h.  */
7875 _ACEOF
7876 cat confdefs.h >>conftest.$ac_ext
7877 cat >>conftest.$ac_ext <<_ACEOF
7878 /* end confdefs.h.  */
7879
7880 /* Override any gcc2 internal prototype to avoid an error.  */
7881 #ifdef __cplusplus
7882 extern "C"
7883 #endif
7884 /* We use char because int might match the return type of a gcc2
7885    builtin and then its argument prototype would still apply.  */
7886 char XF86VidModeQueryExtension ();
7887 int
7888 main ()
7889 {
7890 XF86VidModeQueryExtension ();
7891   ;
7892   return 0;
7893 }
7894 _ACEOF
7895 rm -f conftest.$ac_objext conftest$ac_exeext
7896 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7897   (eval $ac_link) 2>conftest.er1
7898   ac_status=$?
7899   grep -v '^ *+' conftest.er1 >conftest.err
7900   rm -f conftest.er1
7901   cat conftest.err >&5
7902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7903   (exit $ac_status); } &&
7904          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
7905   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7906   (eval $ac_try) 2>&5
7907   ac_status=$?
7908   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7909   (exit $ac_status); }; } &&
7910          { ac_try='test -s conftest$ac_exeext'
7911   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7912   (eval $ac_try) 2>&5
7913   ac_status=$?
7914   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7915   (exit $ac_status); }; }; then
7916   ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=yes
7917 else
7918   echo "$as_me: failed program was:" >&5
7919 sed 's/^/| /' conftest.$ac_ext >&5
7920
7921 ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=no
7922 fi
7923 rm -f conftest.err conftest.$ac_objext \
7924       conftest$ac_exeext conftest.$ac_ext
7925 LIBS=$ac_check_lib_save_LIBS
7926 fi
7927 echo "$as_me:$LINENO: result: $ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&5
7928 echo "${ECHO_T}$ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&6
7929 if test $ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension = yes; then
7930
7931 cat >>confdefs.h <<\_ACEOF
7932 #define HAVE_LIBXXF86VM 1
7933 _ACEOF
7934
7935                      X_PRE_LIBS="$X_PRE_LIBS -lXxf86vm"
7936
7937 fi
7938
7939         fi
7940
7941                 if test "$ac_cv_header_X11_extensions_Xrandr_h" = "yes"
7942         then
7943                 echo "$as_me:$LINENO: checking for XRRSetScreenConfigAndRate in -lXrandr" >&5
7944 echo $ECHO_N "checking for XRRSetScreenConfigAndRate in -lXrandr... $ECHO_C" >&6
7945 if test "${ac_cv_lib_Xrandr_XRRSetScreenConfigAndRate+set}" = set; then
7946   echo $ECHO_N "(cached) $ECHO_C" >&6
7947 else
7948   ac_check_lib_save_LIBS=$LIBS
7949 LIBS="-lXrandr $X_LIBS -lXrender -lXext -lX11 $X_EXTRA_LIBS $LIBS"
7950 cat >conftest.$ac_ext <<_ACEOF
7951 /* confdefs.h.  */
7952 _ACEOF
7953 cat confdefs.h >>conftest.$ac_ext
7954 cat >>conftest.$ac_ext <<_ACEOF
7955 /* end confdefs.h.  */
7956
7957 /* Override any gcc2 internal prototype to avoid an error.  */
7958 #ifdef __cplusplus
7959 extern "C"
7960 #endif
7961 /* We use char because int might match the return type of a gcc2
7962    builtin and then its argument prototype would still apply.  */
7963 char XRRSetScreenConfigAndRate ();
7964 int
7965 main ()
7966 {
7967 XRRSetScreenConfigAndRate ();
7968   ;
7969   return 0;
7970 }
7971 _ACEOF
7972 rm -f conftest.$ac_objext conftest$ac_exeext
7973 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7974   (eval $ac_link) 2>conftest.er1
7975   ac_status=$?
7976   grep -v '^ *+' conftest.er1 >conftest.err
7977   rm -f conftest.er1
7978   cat conftest.err >&5
7979   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7980   (exit $ac_status); } &&
7981          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
7982   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7983   (eval $ac_try) 2>&5
7984   ac_status=$?
7985   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7986   (exit $ac_status); }; } &&
7987          { ac_try='test -s conftest$ac_exeext'
7988   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7989   (eval $ac_try) 2>&5
7990   ac_status=$?
7991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7992   (exit $ac_status); }; }; then
7993   ac_cv_lib_Xrandr_XRRSetScreenConfigAndRate=yes
7994 else
7995   echo "$as_me: failed program was:" >&5
7996 sed 's/^/| /' conftest.$ac_ext >&5
7997
7998 ac_cv_lib_Xrandr_XRRSetScreenConfigAndRate=no
7999 fi
8000 rm -f conftest.err conftest.$ac_objext \
8001       conftest$ac_exeext conftest.$ac_ext
8002 LIBS=$ac_check_lib_save_LIBS
8003 fi
8004 echo "$as_me:$LINENO: result: $ac_cv_lib_Xrandr_XRRSetScreenConfigAndRate" >&5
8005 echo "${ECHO_T}$ac_cv_lib_Xrandr_XRRSetScreenConfigAndRate" >&6
8006 if test $ac_cv_lib_Xrandr_XRRSetScreenConfigAndRate = yes; then
8007
8008 cat >>confdefs.h <<\_ACEOF
8009 #define HAVE_LIBXRANDR 1
8010 _ACEOF
8011
8012                      X_PRE_LIBS="$X_PRE_LIBS -lXrandr -lXrender"
8013
8014 fi
8015
8016         fi
8017
8018                 if test "$ac_cv_header_X11_extensions_Xvlib_h" = "yes"
8019         then
8020                 echo "$as_me:$LINENO: checking for XvShmCreateImage in -lXv" >&5
8021 echo $ECHO_N "checking for XvShmCreateImage in -lXv... $ECHO_C" >&6
8022 if test "${ac_cv_lib_Xv_XvShmCreateImage+set}" = set; then
8023   echo $ECHO_N "(cached) $ECHO_C" >&6
8024 else
8025   ac_check_lib_save_LIBS=$LIBS
8026 LIBS="-lXv $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
8027 cat >conftest.$ac_ext <<_ACEOF
8028 /* confdefs.h.  */
8029 _ACEOF
8030 cat confdefs.h >>conftest.$ac_ext
8031 cat >>conftest.$ac_ext <<_ACEOF
8032 /* end confdefs.h.  */
8033
8034 /* Override any gcc2 internal prototype to avoid an error.  */
8035 #ifdef __cplusplus
8036 extern "C"
8037 #endif
8038 /* We use char because int might match the return type of a gcc2
8039    builtin and then its argument prototype would still apply.  */
8040 char XvShmCreateImage ();
8041 int
8042 main ()
8043 {
8044 XvShmCreateImage ();
8045   ;
8046   return 0;
8047 }
8048 _ACEOF
8049 rm -f conftest.$ac_objext conftest$ac_exeext
8050 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8051   (eval $ac_link) 2>conftest.er1
8052   ac_status=$?
8053   grep -v '^ *+' conftest.er1 >conftest.err
8054   rm -f conftest.er1
8055   cat conftest.err >&5
8056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8057   (exit $ac_status); } &&
8058          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8059   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8060   (eval $ac_try) 2>&5
8061   ac_status=$?
8062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8063   (exit $ac_status); }; } &&
8064          { ac_try='test -s conftest$ac_exeext'
8065   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8066   (eval $ac_try) 2>&5
8067   ac_status=$?
8068   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8069   (exit $ac_status); }; }; then
8070   ac_cv_lib_Xv_XvShmCreateImage=yes
8071 else
8072   echo "$as_me: failed program was:" >&5
8073 sed 's/^/| /' conftest.$ac_ext >&5
8074
8075 ac_cv_lib_Xv_XvShmCreateImage=no
8076 fi
8077 rm -f conftest.err conftest.$ac_objext \
8078       conftest$ac_exeext conftest.$ac_ext
8079 LIBS=$ac_check_lib_save_LIBS
8080 fi
8081 echo "$as_me:$LINENO: result: $ac_cv_lib_Xv_XvShmCreateImage" >&5
8082 echo "${ECHO_T}$ac_cv_lib_Xv_XvShmCreateImage" >&6
8083 if test $ac_cv_lib_Xv_XvShmCreateImage = yes; then
8084
8085 cat >>confdefs.h <<\_ACEOF
8086 #define HAVE_XVIDEO 1
8087 _ACEOF
8088
8089                      X_PRE_LIBS="$X_PRE_LIBS -lXv"
8090
8091 fi
8092
8093         fi
8094
8095
8096 fi
8097
8098 done
8099
8100         if test "x$with_opengl" != "xno"
8101     then
8102         if test -f /usr/X11R6/lib/libGL.a -a ! -f /usr/X11R6/lib/libGL.so
8103         then
8104             { { echo "$as_me:$LINENO: error: /usr/X11R6/lib/libGL.a is present on your system.
8105 This prevents linking to OpenGL. Delete the file and restart configure." >&5
8106 echo "$as_me: error: /usr/X11R6/lib/libGL.a is present on your system.
8107 This prevents linking to OpenGL. Delete the file and restart configure." >&2;}
8108    { (exit 1); exit 1; }; }
8109         fi
8110
8111
8112
8113 for ac_header in GL/gl.h GL/glx.h
8114 do
8115 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8116 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8117   echo "$as_me:$LINENO: checking for $ac_header" >&5
8118 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8119 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8120   echo $ECHO_N "(cached) $ECHO_C" >&6
8121 fi
8122 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8123 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8124 else
8125   # Is the header compilable?
8126 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8127 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8128 cat >conftest.$ac_ext <<_ACEOF
8129 /* confdefs.h.  */
8130 _ACEOF
8131 cat confdefs.h >>conftest.$ac_ext
8132 cat >>conftest.$ac_ext <<_ACEOF
8133 /* end confdefs.h.  */
8134 $ac_includes_default
8135 #include <$ac_header>
8136 _ACEOF
8137 rm -f conftest.$ac_objext
8138 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8139   (eval $ac_compile) 2>conftest.er1
8140   ac_status=$?
8141   grep -v '^ *+' conftest.er1 >conftest.err
8142   rm -f conftest.er1
8143   cat conftest.err >&5
8144   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8145   (exit $ac_status); } &&
8146          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8147   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8148   (eval $ac_try) 2>&5
8149   ac_status=$?
8150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8151   (exit $ac_status); }; } &&
8152          { ac_try='test -s conftest.$ac_objext'
8153   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8154   (eval $ac_try) 2>&5
8155   ac_status=$?
8156   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8157   (exit $ac_status); }; }; then
8158   ac_header_compiler=yes
8159 else
8160   echo "$as_me: failed program was:" >&5
8161 sed 's/^/| /' conftest.$ac_ext >&5
8162
8163 ac_header_compiler=no
8164 fi
8165 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8166 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8167 echo "${ECHO_T}$ac_header_compiler" >&6
8168
8169 # Is the header present?
8170 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8171 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8172 cat >conftest.$ac_ext <<_ACEOF
8173 /* confdefs.h.  */
8174 _ACEOF
8175 cat confdefs.h >>conftest.$ac_ext
8176 cat >>conftest.$ac_ext <<_ACEOF
8177 /* end confdefs.h.  */
8178 #include <$ac_header>
8179 _ACEOF
8180 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8181   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8182   ac_status=$?
8183   grep -v '^ *+' conftest.er1 >conftest.err
8184   rm -f conftest.er1
8185   cat conftest.err >&5
8186   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8187   (exit $ac_status); } >/dev/null; then
8188   if test -s conftest.err; then
8189     ac_cpp_err=$ac_c_preproc_warn_flag
8190     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8191   else
8192     ac_cpp_err=
8193   fi
8194 else
8195   ac_cpp_err=yes
8196 fi
8197 if test -z "$ac_cpp_err"; then
8198   ac_header_preproc=yes
8199 else
8200   echo "$as_me: failed program was:" >&5
8201 sed 's/^/| /' conftest.$ac_ext >&5
8202
8203   ac_header_preproc=no
8204 fi
8205 rm -f conftest.err conftest.$ac_ext
8206 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8207 echo "${ECHO_T}$ac_header_preproc" >&6
8208
8209 # So?  What about this header?
8210 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8211   yes:no: )
8212     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8213 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8214     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8215 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8216     ac_header_preproc=yes
8217     ;;
8218   no:yes:* )
8219     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8220 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8221     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8222 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8223     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8224 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8225     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8226 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8227     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8228 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8229     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8230 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8231     (
8232       cat <<\_ASBOX
8233 ## ------------------------------------ ##
8234 ## Report this to wine-devel@winehq.org ##
8235 ## ------------------------------------ ##
8236 _ASBOX
8237     ) |
8238       sed "s/^/$as_me: WARNING:     /" >&2
8239     ;;
8240 esac
8241 echo "$as_me:$LINENO: checking for $ac_header" >&5
8242 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8243 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8244   echo $ECHO_N "(cached) $ECHO_C" >&6
8245 else
8246   eval "$as_ac_Header=\$ac_header_preproc"
8247 fi
8248 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8249 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8250
8251 fi
8252 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8253   cat >>confdefs.h <<_ACEOF
8254 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8255 _ACEOF
8256
8257 fi
8258
8259 done
8260
8261         if test "$ac_cv_header_GL_gl_h" = "yes" -a "$ac_cv_header_GL_glx_h" = "yes"
8262         then
8263
8264 for ac_header in GL/glext.h
8265 do
8266 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8267 echo "$as_me:$LINENO: checking for $ac_header" >&5
8268 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8269 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8270   echo $ECHO_N "(cached) $ECHO_C" >&6
8271 else
8272   cat >conftest.$ac_ext <<_ACEOF
8273 /* confdefs.h.  */
8274 _ACEOF
8275 cat confdefs.h >>conftest.$ac_ext
8276 cat >>conftest.$ac_ext <<_ACEOF
8277 /* end confdefs.h.  */
8278 #include <GL/glx.h>
8279
8280 #include <$ac_header>
8281 _ACEOF
8282 rm -f conftest.$ac_objext
8283 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8284   (eval $ac_compile) 2>conftest.er1
8285   ac_status=$?
8286   grep -v '^ *+' conftest.er1 >conftest.err
8287   rm -f conftest.er1
8288   cat conftest.err >&5
8289   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8290   (exit $ac_status); } &&
8291          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8292   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8293   (eval $ac_try) 2>&5
8294   ac_status=$?
8295   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8296   (exit $ac_status); }; } &&
8297          { ac_try='test -s conftest.$ac_objext'
8298   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8299   (eval $ac_try) 2>&5
8300   ac_status=$?
8301   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8302   (exit $ac_status); }; }; then
8303   eval "$as_ac_Header=yes"
8304 else
8305   echo "$as_me: failed program was:" >&5
8306 sed 's/^/| /' conftest.$ac_ext >&5
8307
8308 eval "$as_ac_Header=no"
8309 fi
8310 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8311 fi
8312 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8313 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8314 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8315   cat >>confdefs.h <<_ACEOF
8316 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8317 _ACEOF
8318
8319 fi
8320
8321 done
8322
8323                     echo "$as_me:$LINENO: checking for up-to-date OpenGL version" >&5
8324 echo $ECHO_N "checking for up-to-date OpenGL version... $ECHO_C" >&6
8325 if test "${wine_cv_opengl_version_OK+set}" = set; then
8326   echo $ECHO_N "(cached) $ECHO_C" >&6
8327 else
8328   cat >conftest.$ac_ext <<_ACEOF
8329 /* confdefs.h.  */
8330 _ACEOF
8331 cat confdefs.h >>conftest.$ac_ext
8332 cat >>conftest.$ac_ext <<_ACEOF
8333 /* end confdefs.h.  */
8334 #include <GL/gl.h>
8335 int
8336 main ()
8337 {
8338 GLenum test = GL_UNSIGNED_SHORT_5_6_5;
8339   ;
8340   return 0;
8341 }
8342 _ACEOF
8343 rm -f conftest.$ac_objext
8344 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8345   (eval $ac_compile) 2>conftest.er1
8346   ac_status=$?
8347   grep -v '^ *+' conftest.er1 >conftest.err
8348   rm -f conftest.er1
8349   cat conftest.err >&5
8350   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8351   (exit $ac_status); } &&
8352          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8353   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8354   (eval $ac_try) 2>&5
8355   ac_status=$?
8356   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8357   (exit $ac_status); }; } &&
8358          { ac_try='test -s conftest.$ac_objext'
8359   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8360   (eval $ac_try) 2>&5
8361   ac_status=$?
8362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8363   (exit $ac_status); }; }; then
8364   wine_cv_opengl_version_OK="yes"
8365 else
8366   echo "$as_me: failed program was:" >&5
8367 sed 's/^/| /' conftest.$ac_ext >&5
8368
8369 wine_cv_opengl_version_OK="no"
8370
8371 fi
8372 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8373
8374 fi
8375 echo "$as_me:$LINENO: result: $wine_cv_opengl_version_OK" >&5
8376 echo "${ECHO_T}$wine_cv_opengl_version_OK" >&6
8377
8378             if test "$wine_cv_opengl_version_OK" = "yes"
8379             then
8380                                 echo "$as_me:$LINENO: checking for glXCreateContext in -lGL" >&5
8381 echo $ECHO_N "checking for glXCreateContext in -lGL... $ECHO_C" >&6
8382 if test "${ac_cv_lib_GL_glXCreateContext+set}" = set; then
8383   echo $ECHO_N "(cached) $ECHO_C" >&6
8384 else
8385   ac_check_lib_save_LIBS=$LIBS
8386 LIBS="-lGL $X_LIBS -lXext -lX11 -lm $X_EXTRA_LIBS $LIBS"
8387 cat >conftest.$ac_ext <<_ACEOF
8388 /* confdefs.h.  */
8389 _ACEOF
8390 cat confdefs.h >>conftest.$ac_ext
8391 cat >>conftest.$ac_ext <<_ACEOF
8392 /* end confdefs.h.  */
8393
8394 /* Override any gcc2 internal prototype to avoid an error.  */
8395 #ifdef __cplusplus
8396 extern "C"
8397 #endif
8398 /* We use char because int might match the return type of a gcc2
8399    builtin and then its argument prototype would still apply.  */
8400 char glXCreateContext ();
8401 int
8402 main ()
8403 {
8404 glXCreateContext ();
8405   ;
8406   return 0;
8407 }
8408 _ACEOF
8409 rm -f conftest.$ac_objext conftest$ac_exeext
8410 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8411   (eval $ac_link) 2>conftest.er1
8412   ac_status=$?
8413   grep -v '^ *+' conftest.er1 >conftest.err
8414   rm -f conftest.er1
8415   cat conftest.err >&5
8416   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8417   (exit $ac_status); } &&
8418          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8419   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8420   (eval $ac_try) 2>&5
8421   ac_status=$?
8422   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8423   (exit $ac_status); }; } &&
8424          { ac_try='test -s conftest$ac_exeext'
8425   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8426   (eval $ac_try) 2>&5
8427   ac_status=$?
8428   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8429   (exit $ac_status); }; }; then
8430   ac_cv_lib_GL_glXCreateContext=yes
8431 else
8432   echo "$as_me: failed program was:" >&5
8433 sed 's/^/| /' conftest.$ac_ext >&5
8434
8435 ac_cv_lib_GL_glXCreateContext=no
8436 fi
8437 rm -f conftest.err conftest.$ac_objext \
8438       conftest$ac_exeext conftest.$ac_ext
8439 LIBS=$ac_check_lib_save_LIBS
8440 fi
8441 echo "$as_me:$LINENO: result: $ac_cv_lib_GL_glXCreateContext" >&5
8442 echo "${ECHO_T}$ac_cv_lib_GL_glXCreateContext" >&6
8443 if test $ac_cv_lib_GL_glXCreateContext = yes; then
8444   OPENGL_LIBS="-lGL"
8445
8446 fi
8447
8448
8449                 if test "$ac_cv_lib_GL_glXCreateContext" = "yes"
8450                 then
8451                         OPENGLFILES='$(OPENGLFILES)'
8452
8453 cat >>confdefs.h <<\_ACEOF
8454 #define HAVE_OPENGL 1
8455 _ACEOF
8456
8457
8458                         echo "$as_me:$LINENO: checking for glXGetProcAddressARB in -lGL" >&5
8459 echo $ECHO_N "checking for glXGetProcAddressARB in -lGL... $ECHO_C" >&6
8460 if test "${ac_cv_lib_GL_glXGetProcAddressARB+set}" = set; then
8461   echo $ECHO_N "(cached) $ECHO_C" >&6
8462 else
8463   ac_check_lib_save_LIBS=$LIBS
8464 LIBS="-lGL $X_LIBS -lXext -lX11 -lm $X_EXTRA_LIBS $LIBS"
8465 cat >conftest.$ac_ext <<_ACEOF
8466 /* confdefs.h.  */
8467 _ACEOF
8468 cat confdefs.h >>conftest.$ac_ext
8469 cat >>conftest.$ac_ext <<_ACEOF
8470 /* end confdefs.h.  */
8471
8472 /* Override any gcc2 internal prototype to avoid an error.  */
8473 #ifdef __cplusplus
8474 extern "C"
8475 #endif
8476 /* We use char because int might match the return type of a gcc2
8477    builtin and then its argument prototype would still apply.  */
8478 char glXGetProcAddressARB ();
8479 int
8480 main ()
8481 {
8482 glXGetProcAddressARB ();
8483   ;
8484   return 0;
8485 }
8486 _ACEOF
8487 rm -f conftest.$ac_objext conftest$ac_exeext
8488 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8489   (eval $ac_link) 2>conftest.er1
8490   ac_status=$?
8491   grep -v '^ *+' conftest.er1 >conftest.err
8492   rm -f conftest.er1
8493   cat conftest.err >&5
8494   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8495   (exit $ac_status); } &&
8496          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8497   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8498   (eval $ac_try) 2>&5
8499   ac_status=$?
8500   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8501   (exit $ac_status); }; } &&
8502          { ac_try='test -s conftest$ac_exeext'
8503   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8504   (eval $ac_try) 2>&5
8505   ac_status=$?
8506   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8507   (exit $ac_status); }; }; then
8508   ac_cv_lib_GL_glXGetProcAddressARB=yes
8509 else
8510   echo "$as_me: failed program was:" >&5
8511 sed 's/^/| /' conftest.$ac_ext >&5
8512
8513 ac_cv_lib_GL_glXGetProcAddressARB=no
8514 fi
8515 rm -f conftest.err conftest.$ac_objext \
8516       conftest$ac_exeext conftest.$ac_ext
8517 LIBS=$ac_check_lib_save_LIBS
8518 fi
8519 echo "$as_me:$LINENO: result: $ac_cv_lib_GL_glXGetProcAddressARB" >&5
8520 echo "${ECHO_T}$ac_cv_lib_GL_glXGetProcAddressARB" >&6
8521 if test $ac_cv_lib_GL_glXGetProcAddressARB = yes; then
8522
8523 cat >>confdefs.h <<\_ACEOF
8524 #define HAVE_GLX_GETPROCADDRESS 1
8525 _ACEOF
8526
8527 fi
8528
8529
8530                         if test "$ac_cv_lib_GL_glXGetProcAddressARB" = "yes"
8531                         then
8532                                echo "$as_me:$LINENO: checking for OpenGL extension functions prototypes" >&5
8533 echo $ECHO_N "checking for OpenGL extension functions prototypes... $ECHO_C" >&6
8534 if test "${wine_cv_extension_prototypes+set}" = set; then
8535   echo $ECHO_N "(cached) $ECHO_C" >&6
8536 else
8537   cat >conftest.$ac_ext <<_ACEOF
8538 /* confdefs.h.  */
8539 _ACEOF
8540 cat confdefs.h >>conftest.$ac_ext
8541 cat >>conftest.$ac_ext <<_ACEOF
8542 /* end confdefs.h.  */
8543 #include <GL/gl.h>
8544                                                   #ifdef HAVE_GL_GLEXT_H
8545                                                   # include <GL/glext.h>
8546                                                   #endif
8547
8548 int
8549 main ()
8550 {
8551 PFNGLCOLORTABLEEXTPROC test_proc;
8552   ;
8553   return 0;
8554 }
8555 _ACEOF
8556 rm -f conftest.$ac_objext
8557 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8558   (eval $ac_compile) 2>conftest.er1
8559   ac_status=$?
8560   grep -v '^ *+' conftest.er1 >conftest.err
8561   rm -f conftest.er1
8562   cat conftest.err >&5
8563   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8564   (exit $ac_status); } &&
8565          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8566   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8567   (eval $ac_try) 2>&5
8568   ac_status=$?
8569   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8570   (exit $ac_status); }; } &&
8571          { ac_try='test -s conftest.$ac_objext'
8572   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8573   (eval $ac_try) 2>&5
8574   ac_status=$?
8575   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8576   (exit $ac_status); }; }; then
8577   wine_cv_extension_prototypes="yes"
8578 else
8579   echo "$as_me: failed program was:" >&5
8580 sed 's/^/| /' conftest.$ac_ext >&5
8581
8582 wine_cv_extension_prototypes="no"
8583
8584 fi
8585 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8586
8587 fi
8588 echo "$as_me:$LINENO: result: $wine_cv_extension_prototypes" >&5
8589 echo "${ECHO_T}$wine_cv_extension_prototypes" >&6
8590                                 if test "$wine_cv_extension_prototypes" = "yes"
8591                                 then
8592
8593 cat >>confdefs.h <<\_ACEOF
8594 #define HAVE_GLEXT_PROTOTYPES 1
8595 _ACEOF
8596
8597                                 fi
8598                         fi
8599
8600                 fi
8601                                 echo "$as_me:$LINENO: checking for gluLookAt in -lGLU" >&5
8602 echo $ECHO_N "checking for gluLookAt in -lGLU... $ECHO_C" >&6
8603 if test "${ac_cv_lib_GLU_gluLookAt+set}" = set; then
8604   echo $ECHO_N "(cached) $ECHO_C" >&6
8605 else
8606   ac_check_lib_save_LIBS=$LIBS
8607 LIBS="-lGLU $OPENGL_LIBS $X_LIBS $X_PRE_LIBS -lXext -lX11 -lm $X_EXTRA_LIBS
8608                  $LIBS"
8609 cat >conftest.$ac_ext <<_ACEOF
8610 /* confdefs.h.  */
8611 _ACEOF
8612 cat confdefs.h >>conftest.$ac_ext
8613 cat >>conftest.$ac_ext <<_ACEOF
8614 /* end confdefs.h.  */
8615
8616 /* Override any gcc2 internal prototype to avoid an error.  */
8617 #ifdef __cplusplus
8618 extern "C"
8619 #endif
8620 /* We use char because int might match the return type of a gcc2
8621    builtin and then its argument prototype would still apply.  */
8622 char gluLookAt ();
8623 int
8624 main ()
8625 {
8626 gluLookAt ();
8627   ;
8628   return 0;
8629 }
8630 _ACEOF
8631 rm -f conftest.$ac_objext conftest$ac_exeext
8632 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8633   (eval $ac_link) 2>conftest.er1
8634   ac_status=$?
8635   grep -v '^ *+' conftest.er1 >conftest.err
8636   rm -f conftest.er1
8637   cat conftest.err >&5
8638   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8639   (exit $ac_status); } &&
8640          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8641   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8642   (eval $ac_try) 2>&5
8643   ac_status=$?
8644   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8645   (exit $ac_status); }; } &&
8646          { ac_try='test -s conftest$ac_exeext'
8647   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8648   (eval $ac_try) 2>&5
8649   ac_status=$?
8650   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8651   (exit $ac_status); }; }; then
8652   ac_cv_lib_GLU_gluLookAt=yes
8653 else
8654   echo "$as_me: failed program was:" >&5
8655 sed 's/^/| /' conftest.$ac_ext >&5
8656
8657 ac_cv_lib_GLU_gluLookAt=no
8658 fi
8659 rm -f conftest.err conftest.$ac_objext \
8660       conftest$ac_exeext conftest.$ac_ext
8661 LIBS=$ac_check_lib_save_LIBS
8662 fi
8663 echo "$as_me:$LINENO: result: $ac_cv_lib_GLU_gluLookAt" >&5
8664 echo "${ECHO_T}$ac_cv_lib_GLU_gluLookAt" >&6
8665 if test $ac_cv_lib_GLU_gluLookAt = yes; then
8666   OPENGL_LIBS="$OPENGL_LIBS -lGLU"
8667                              GLU32FILES='$(GLU32FILES)'
8668
8669 fi
8670
8671              fi
8672
8673                           echo "$as_me:$LINENO: checking for glutMainLoop in -lglut" >&5
8674 echo $ECHO_N "checking for glutMainLoop in -lglut... $ECHO_C" >&6
8675 if test "${ac_cv_lib_glut_glutMainLoop+set}" = set; then
8676   echo $ECHO_N "(cached) $ECHO_C" >&6
8677 else
8678   ac_check_lib_save_LIBS=$LIBS
8679 LIBS="-lglut $OPENGL_LIBS $X_LIBS $X_PRE_LIBS -lXmu -lXi -lX11 $X_EXTRA_LIBS $LIBS"
8680 cat >conftest.$ac_ext <<_ACEOF
8681 /* confdefs.h.  */
8682 _ACEOF
8683 cat confdefs.h >>conftest.$ac_ext
8684 cat >>conftest.$ac_ext <<_ACEOF
8685 /* end confdefs.h.  */
8686
8687 /* Override any gcc2 internal prototype to avoid an error.  */
8688 #ifdef __cplusplus
8689 extern "C"
8690 #endif
8691 /* We use char because int might match the return type of a gcc2
8692    builtin and then its argument prototype would still apply.  */
8693 char glutMainLoop ();
8694 int
8695 main ()
8696 {
8697 glutMainLoop ();
8698   ;
8699   return 0;
8700 }
8701 _ACEOF
8702 rm -f conftest.$ac_objext conftest$ac_exeext
8703 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8704   (eval $ac_link) 2>conftest.er1
8705   ac_status=$?
8706   grep -v '^ *+' conftest.er1 >conftest.err
8707   rm -f conftest.er1
8708   cat conftest.err >&5
8709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8710   (exit $ac_status); } &&
8711          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8712   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8713   (eval $ac_try) 2>&5
8714   ac_status=$?
8715   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8716   (exit $ac_status); }; } &&
8717          { ac_try='test -s conftest$ac_exeext'
8718   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8719   (eval $ac_try) 2>&5
8720   ac_status=$?
8721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8722   (exit $ac_status); }; }; then
8723   ac_cv_lib_glut_glutMainLoop=yes
8724 else
8725   echo "$as_me: failed program was:" >&5
8726 sed 's/^/| /' conftest.$ac_ext >&5
8727
8728 ac_cv_lib_glut_glutMainLoop=no
8729 fi
8730 rm -f conftest.err conftest.$ac_objext \
8731       conftest$ac_exeext conftest.$ac_ext
8732 LIBS=$ac_check_lib_save_LIBS
8733 fi
8734 echo "$as_me:$LINENO: result: $ac_cv_lib_glut_glutMainLoop" >&5
8735 echo "${ECHO_T}$ac_cv_lib_glut_glutMainLoop" >&6
8736 if test $ac_cv_lib_glut_glutMainLoop = yes; then
8737   GLUT_LIBS="-lglut -lXmu -lXi"
8738
8739                         GLUT32FILES='$(GLUT32FILES)'
8740
8741 fi
8742
8743          fi
8744     fi
8745
8746         NASLIBS=""
8747
8748
8749 for ac_header in audio/audiolib.h
8750 do
8751 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8752 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8753   echo "$as_me:$LINENO: checking for $ac_header" >&5
8754 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8755 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8756   echo $ECHO_N "(cached) $ECHO_C" >&6
8757 fi
8758 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8759 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8760 else
8761   # Is the header compilable?
8762 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8763 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8764 cat >conftest.$ac_ext <<_ACEOF
8765 /* confdefs.h.  */
8766 _ACEOF
8767 cat confdefs.h >>conftest.$ac_ext
8768 cat >>conftest.$ac_ext <<_ACEOF
8769 /* end confdefs.h.  */
8770 $ac_includes_default
8771 #include <$ac_header>
8772 _ACEOF
8773 rm -f conftest.$ac_objext
8774 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8775   (eval $ac_compile) 2>conftest.er1
8776   ac_status=$?
8777   grep -v '^ *+' conftest.er1 >conftest.err
8778   rm -f conftest.er1
8779   cat conftest.err >&5
8780   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8781   (exit $ac_status); } &&
8782          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8783   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8784   (eval $ac_try) 2>&5
8785   ac_status=$?
8786   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8787   (exit $ac_status); }; } &&
8788          { ac_try='test -s conftest.$ac_objext'
8789   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8790   (eval $ac_try) 2>&5
8791   ac_status=$?
8792   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8793   (exit $ac_status); }; }; then
8794   ac_header_compiler=yes
8795 else
8796   echo "$as_me: failed program was:" >&5
8797 sed 's/^/| /' conftest.$ac_ext >&5
8798
8799 ac_header_compiler=no
8800 fi
8801 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8802 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8803 echo "${ECHO_T}$ac_header_compiler" >&6
8804
8805 # Is the header present?
8806 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8807 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8808 cat >conftest.$ac_ext <<_ACEOF
8809 /* confdefs.h.  */
8810 _ACEOF
8811 cat confdefs.h >>conftest.$ac_ext
8812 cat >>conftest.$ac_ext <<_ACEOF
8813 /* end confdefs.h.  */
8814 #include <$ac_header>
8815 _ACEOF
8816 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8817   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8818   ac_status=$?
8819   grep -v '^ *+' conftest.er1 >conftest.err
8820   rm -f conftest.er1
8821   cat conftest.err >&5
8822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8823   (exit $ac_status); } >/dev/null; then
8824   if test -s conftest.err; then
8825     ac_cpp_err=$ac_c_preproc_warn_flag
8826     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8827   else
8828     ac_cpp_err=
8829   fi
8830 else
8831   ac_cpp_err=yes
8832 fi
8833 if test -z "$ac_cpp_err"; then
8834   ac_header_preproc=yes
8835 else
8836   echo "$as_me: failed program was:" >&5
8837 sed 's/^/| /' conftest.$ac_ext >&5
8838
8839   ac_header_preproc=no
8840 fi
8841 rm -f conftest.err conftest.$ac_ext
8842 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8843 echo "${ECHO_T}$ac_header_preproc" >&6
8844
8845 # So?  What about this header?
8846 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8847   yes:no: )
8848     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8849 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8850     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8851 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8852     ac_header_preproc=yes
8853     ;;
8854   no:yes:* )
8855     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8856 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8857     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8858 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8859     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8860 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8861     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8862 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8863     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8864 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8865     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8866 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8867     (
8868       cat <<\_ASBOX
8869 ## ------------------------------------ ##
8870 ## Report this to wine-devel@winehq.org ##
8871 ## ------------------------------------ ##
8872 _ASBOX
8873     ) |
8874       sed "s/^/$as_me: WARNING:     /" >&2
8875     ;;
8876 esac
8877 echo "$as_me:$LINENO: checking for $ac_header" >&5
8878 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8879 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8880   echo $ECHO_N "(cached) $ECHO_C" >&6
8881 else
8882   eval "$as_ac_Header=\$ac_header_preproc"
8883 fi
8884 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8885 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8886
8887 fi
8888 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8889   cat >>confdefs.h <<_ACEOF
8890 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8891 _ACEOF
8892
8893 for ac_header in audio/soundlib.h
8894 do
8895 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8896 echo "$as_me:$LINENO: checking for $ac_header" >&5
8897 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8898 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8899   echo $ECHO_N "(cached) $ECHO_C" >&6
8900 else
8901   cat >conftest.$ac_ext <<_ACEOF
8902 /* confdefs.h.  */
8903 _ACEOF
8904 cat confdefs.h >>conftest.$ac_ext
8905 cat >>conftest.$ac_ext <<_ACEOF
8906 /* end confdefs.h.  */
8907 #include <audio/audiolib.h>
8908
8909 #include <$ac_header>
8910 _ACEOF
8911 rm -f conftest.$ac_objext
8912 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8913   (eval $ac_compile) 2>conftest.er1
8914   ac_status=$?
8915   grep -v '^ *+' conftest.er1 >conftest.err
8916   rm -f conftest.er1
8917   cat conftest.err >&5
8918   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8919   (exit $ac_status); } &&
8920          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8921   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8922   (eval $ac_try) 2>&5
8923   ac_status=$?
8924   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8925   (exit $ac_status); }; } &&
8926          { ac_try='test -s conftest.$ac_objext'
8927   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8928   (eval $ac_try) 2>&5
8929   ac_status=$?
8930   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8931   (exit $ac_status); }; }; then
8932   eval "$as_ac_Header=yes"
8933 else
8934   echo "$as_me: failed program was:" >&5
8935 sed 's/^/| /' conftest.$ac_ext >&5
8936
8937 eval "$as_ac_Header=no"
8938 fi
8939 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8940 fi
8941 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8942 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8943 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8944   cat >>confdefs.h <<_ACEOF
8945 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8946 _ACEOF
8947
8948 fi
8949
8950 done
8951
8952           echo "$as_me:$LINENO: checking for AuCreateFlow in -laudio" >&5
8953 echo $ECHO_N "checking for AuCreateFlow in -laudio... $ECHO_C" >&6
8954 if test "${ac_cv_lib_audio_AuCreateFlow+set}" = set; then
8955   echo $ECHO_N "(cached) $ECHO_C" >&6
8956 else
8957   ac_check_lib_save_LIBS=$LIBS
8958 LIBS="-laudio -lXt $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
8959 cat >conftest.$ac_ext <<_ACEOF
8960 /* confdefs.h.  */
8961 _ACEOF
8962 cat confdefs.h >>conftest.$ac_ext
8963 cat >>conftest.$ac_ext <<_ACEOF
8964 /* end confdefs.h.  */
8965
8966 /* Override any gcc2 internal prototype to avoid an error.  */
8967 #ifdef __cplusplus
8968 extern "C"
8969 #endif
8970 /* We use char because int might match the return type of a gcc2
8971    builtin and then its argument prototype would still apply.  */
8972 char AuCreateFlow ();
8973 int
8974 main ()
8975 {
8976 AuCreateFlow ();
8977   ;
8978   return 0;
8979 }
8980 _ACEOF
8981 rm -f conftest.$ac_objext conftest$ac_exeext
8982 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8983   (eval $ac_link) 2>conftest.er1
8984   ac_status=$?
8985   grep -v '^ *+' conftest.er1 >conftest.err
8986   rm -f conftest.er1
8987   cat conftest.err >&5
8988   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8989   (exit $ac_status); } &&
8990          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8991   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8992   (eval $ac_try) 2>&5
8993   ac_status=$?
8994   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8995   (exit $ac_status); }; } &&
8996          { ac_try='test -s conftest$ac_exeext'
8997   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8998   (eval $ac_try) 2>&5
8999   ac_status=$?
9000   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9001   (exit $ac_status); }; }; then
9002   ac_cv_lib_audio_AuCreateFlow=yes
9003 else
9004   echo "$as_me: failed program was:" >&5
9005 sed 's/^/| /' conftest.$ac_ext >&5
9006
9007 ac_cv_lib_audio_AuCreateFlow=no
9008 fi
9009 rm -f conftest.err conftest.$ac_objext \
9010       conftest$ac_exeext conftest.$ac_ext
9011 LIBS=$ac_check_lib_save_LIBS
9012 fi
9013 echo "$as_me:$LINENO: result: $ac_cv_lib_audio_AuCreateFlow" >&5
9014 echo "${ECHO_T}$ac_cv_lib_audio_AuCreateFlow" >&6
9015 if test $ac_cv_lib_audio_AuCreateFlow = yes; then
9016
9017 cat >>confdefs.h <<\_ACEOF
9018 #define HAVE_NAS 1
9019 _ACEOF
9020
9021                         NASLIBS="-laudio -lXt $X_LIBS -lXext -lX11 $X_EXTRA_LIBS"
9022 fi
9023
9024 fi
9025
9026 done
9027
9028
9029     CPPFLAGS="$ac_save_CPPFLAGS"
9030     XFILES='$(XFILES)'
9031 else
9032     XLIB=""
9033     X_CFLAGS=""
9034     X_LIBS=""
9035 fi
9036
9037 CURSESLIBS=""
9038 if test "x$with_curses" != "xno"
9039 then
9040
9041 for ac_header in ncurses.h
9042 do
9043 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9044 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9045   echo "$as_me:$LINENO: checking for $ac_header" >&5
9046 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9047 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9048   echo $ECHO_N "(cached) $ECHO_C" >&6
9049 fi
9050 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9051 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9052 else
9053   # Is the header compilable?
9054 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9055 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9056 cat >conftest.$ac_ext <<_ACEOF
9057 /* confdefs.h.  */
9058 _ACEOF
9059 cat confdefs.h >>conftest.$ac_ext
9060 cat >>conftest.$ac_ext <<_ACEOF
9061 /* end confdefs.h.  */
9062 $ac_includes_default
9063 #include <$ac_header>
9064 _ACEOF
9065 rm -f conftest.$ac_objext
9066 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9067   (eval $ac_compile) 2>conftest.er1
9068   ac_status=$?
9069   grep -v '^ *+' conftest.er1 >conftest.err
9070   rm -f conftest.er1
9071   cat conftest.err >&5
9072   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9073   (exit $ac_status); } &&
9074          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
9075   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9076   (eval $ac_try) 2>&5
9077   ac_status=$?
9078   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9079   (exit $ac_status); }; } &&
9080          { ac_try='test -s conftest.$ac_objext'
9081   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9082   (eval $ac_try) 2>&5
9083   ac_status=$?
9084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9085   (exit $ac_status); }; }; then
9086   ac_header_compiler=yes
9087 else
9088   echo "$as_me: failed program was:" >&5
9089 sed 's/^/| /' conftest.$ac_ext >&5
9090
9091 ac_header_compiler=no
9092 fi
9093 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9094 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9095 echo "${ECHO_T}$ac_header_compiler" >&6
9096
9097 # Is the header present?
9098 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9099 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9100 cat >conftest.$ac_ext <<_ACEOF
9101 /* confdefs.h.  */
9102 _ACEOF
9103 cat confdefs.h >>conftest.$ac_ext
9104 cat >>conftest.$ac_ext <<_ACEOF
9105 /* end confdefs.h.  */
9106 #include <$ac_header>
9107 _ACEOF
9108 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9109   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9110   ac_status=$?
9111   grep -v '^ *+' conftest.er1 >conftest.err
9112   rm -f conftest.er1
9113   cat conftest.err >&5
9114   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9115   (exit $ac_status); } >/dev/null; then
9116   if test -s conftest.err; then
9117     ac_cpp_err=$ac_c_preproc_warn_flag
9118     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9119   else
9120     ac_cpp_err=
9121   fi
9122 else
9123   ac_cpp_err=yes
9124 fi
9125 if test -z "$ac_cpp_err"; then
9126   ac_header_preproc=yes
9127 else
9128   echo "$as_me: failed program was:" >&5
9129 sed 's/^/| /' conftest.$ac_ext >&5
9130
9131   ac_header_preproc=no
9132 fi
9133 rm -f conftest.err conftest.$ac_ext
9134 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9135 echo "${ECHO_T}$ac_header_preproc" >&6
9136
9137 # So?  What about this header?
9138 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9139   yes:no: )
9140     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9141 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9142     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9143 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9144     ac_header_preproc=yes
9145     ;;
9146   no:yes:* )
9147     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9148 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9149     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9150 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9151     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9152 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9153     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9154 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9155     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9156 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9157     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9158 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9159     (
9160       cat <<\_ASBOX
9161 ## ------------------------------------ ##
9162 ## Report this to wine-devel@winehq.org ##
9163 ## ------------------------------------ ##
9164 _ASBOX
9165     ) |
9166       sed "s/^/$as_me: WARNING:     /" >&2
9167     ;;
9168 esac
9169 echo "$as_me:$LINENO: checking for $ac_header" >&5
9170 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9171 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9172   echo $ECHO_N "(cached) $ECHO_C" >&6
9173 else
9174   eval "$as_ac_Header=\$ac_header_preproc"
9175 fi
9176 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9177 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9178
9179 fi
9180 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9181   cat >>confdefs.h <<_ACEOF
9182 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9183 _ACEOF
9184  echo "$as_me:$LINENO: checking for waddch in -lncurses" >&5
9185 echo $ECHO_N "checking for waddch in -lncurses... $ECHO_C" >&6
9186 if test "${ac_cv_lib_ncurses_waddch+set}" = set; then
9187   echo $ECHO_N "(cached) $ECHO_C" >&6
9188 else
9189   ac_check_lib_save_LIBS=$LIBS
9190 LIBS="-lncurses  $LIBS"
9191 cat >conftest.$ac_ext <<_ACEOF
9192 /* confdefs.h.  */
9193 _ACEOF
9194 cat confdefs.h >>conftest.$ac_ext
9195 cat >>conftest.$ac_ext <<_ACEOF
9196 /* end confdefs.h.  */
9197
9198 /* Override any gcc2 internal prototype to avoid an error.  */
9199 #ifdef __cplusplus
9200 extern "C"
9201 #endif
9202 /* We use char because int might match the return type of a gcc2
9203    builtin and then its argument prototype would still apply.  */
9204 char waddch ();
9205 int
9206 main ()
9207 {
9208 waddch ();
9209   ;
9210   return 0;
9211 }
9212 _ACEOF
9213 rm -f conftest.$ac_objext conftest$ac_exeext
9214 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9215   (eval $ac_link) 2>conftest.er1
9216   ac_status=$?
9217   grep -v '^ *+' conftest.er1 >conftest.err
9218   rm -f conftest.er1
9219   cat conftest.err >&5
9220   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9221   (exit $ac_status); } &&
9222          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
9223   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9224   (eval $ac_try) 2>&5
9225   ac_status=$?
9226   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9227   (exit $ac_status); }; } &&
9228          { ac_try='test -s conftest$ac_exeext'
9229   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9230   (eval $ac_try) 2>&5
9231   ac_status=$?
9232   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9233   (exit $ac_status); }; }; then
9234   ac_cv_lib_ncurses_waddch=yes
9235 else
9236   echo "$as_me: failed program was:" >&5
9237 sed 's/^/| /' conftest.$ac_ext >&5
9238
9239 ac_cv_lib_ncurses_waddch=no
9240 fi
9241 rm -f conftest.err conftest.$ac_objext \
9242       conftest$ac_exeext conftest.$ac_ext
9243 LIBS=$ac_check_lib_save_LIBS
9244 fi
9245 echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_waddch" >&5
9246 echo "${ECHO_T}$ac_cv_lib_ncurses_waddch" >&6
9247 if test $ac_cv_lib_ncurses_waddch = yes; then
9248
9249 cat >>confdefs.h <<\_ACEOF
9250 #define HAVE_LIBNCURSES 1
9251 _ACEOF
9252
9253              CURSESLIBS="-lncurses"
9254 else
9255
9256 for ac_header in curses.h
9257 do
9258 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9259 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9260   echo "$as_me:$LINENO: checking for $ac_header" >&5
9261 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9262 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9263   echo $ECHO_N "(cached) $ECHO_C" >&6
9264 fi
9265 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9266 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9267 else
9268   # Is the header compilable?
9269 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9270 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9271 cat >conftest.$ac_ext <<_ACEOF
9272 /* confdefs.h.  */
9273 _ACEOF
9274 cat confdefs.h >>conftest.$ac_ext
9275 cat >>conftest.$ac_ext <<_ACEOF
9276 /* end confdefs.h.  */
9277 $ac_includes_default
9278 #include <$ac_header>
9279 _ACEOF
9280 rm -f conftest.$ac_objext
9281 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9282   (eval $ac_compile) 2>conftest.er1
9283   ac_status=$?
9284   grep -v '^ *+' conftest.er1 >conftest.err
9285   rm -f conftest.er1
9286   cat conftest.err >&5
9287   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9288   (exit $ac_status); } &&
9289          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
9290   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9291   (eval $ac_try) 2>&5
9292   ac_status=$?
9293   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9294   (exit $ac_status); }; } &&
9295          { ac_try='test -s conftest.$ac_objext'
9296   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9297   (eval $ac_try) 2>&5
9298   ac_status=$?
9299   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9300   (exit $ac_status); }; }; then
9301   ac_header_compiler=yes
9302 else
9303   echo "$as_me: failed program was:" >&5
9304 sed 's/^/| /' conftest.$ac_ext >&5
9305
9306 ac_header_compiler=no
9307 fi
9308 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9309 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9310 echo "${ECHO_T}$ac_header_compiler" >&6
9311
9312 # Is the header present?
9313 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9314 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9315 cat >conftest.$ac_ext <<_ACEOF
9316 /* confdefs.h.  */
9317 _ACEOF
9318 cat confdefs.h >>conftest.$ac_ext
9319 cat >>conftest.$ac_ext <<_ACEOF
9320 /* end confdefs.h.  */
9321 #include <$ac_header>
9322 _ACEOF
9323 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9324   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9325   ac_status=$?
9326   grep -v '^ *+' conftest.er1 >conftest.err
9327   rm -f conftest.er1
9328   cat conftest.err >&5
9329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9330   (exit $ac_status); } >/dev/null; then
9331   if test -s conftest.err; then
9332     ac_cpp_err=$ac_c_preproc_warn_flag
9333     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9334   else
9335     ac_cpp_err=
9336   fi
9337 else
9338   ac_cpp_err=yes
9339 fi
9340 if test -z "$ac_cpp_err"; then
9341   ac_header_preproc=yes
9342 else
9343   echo "$as_me: failed program was:" >&5
9344 sed 's/^/| /' conftest.$ac_ext >&5
9345
9346   ac_header_preproc=no
9347 fi
9348 rm -f conftest.err conftest.$ac_ext
9349 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9350 echo "${ECHO_T}$ac_header_preproc" >&6
9351
9352 # So?  What about this header?
9353 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9354   yes:no: )
9355     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9356 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9357     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9358 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9359     ac_header_preproc=yes
9360     ;;
9361   no:yes:* )
9362     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9363 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9364     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9365 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9366     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9367 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9368     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9369 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9370     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9371 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9372     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9373 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9374     (
9375       cat <<\_ASBOX
9376 ## ------------------------------------ ##
9377 ## Report this to wine-devel@winehq.org ##
9378 ## ------------------------------------ ##
9379 _ASBOX
9380     ) |
9381       sed "s/^/$as_me: WARNING:     /" >&2
9382     ;;
9383 esac
9384 echo "$as_me:$LINENO: checking for $ac_header" >&5
9385 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9386 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9387   echo $ECHO_N "(cached) $ECHO_C" >&6
9388 else
9389   eval "$as_ac_Header=\$ac_header_preproc"
9390 fi
9391 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9392 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9393
9394 fi
9395 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9396   cat >>confdefs.h <<_ACEOF
9397 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9398 _ACEOF
9399  echo "$as_me:$LINENO: checking for waddch in -lcurses" >&5
9400 echo $ECHO_N "checking for waddch in -lcurses... $ECHO_C" >&6
9401 if test "${ac_cv_lib_curses_waddch+set}" = set; then
9402   echo $ECHO_N "(cached) $ECHO_C" >&6
9403 else
9404   ac_check_lib_save_LIBS=$LIBS
9405 LIBS="-lcurses  $LIBS"
9406 cat >conftest.$ac_ext <<_ACEOF
9407 /* confdefs.h.  */
9408 _ACEOF
9409 cat confdefs.h >>conftest.$ac_ext
9410 cat >>conftest.$ac_ext <<_ACEOF
9411 /* end confdefs.h.  */
9412
9413 /* Override any gcc2 internal prototype to avoid an error.  */
9414 #ifdef __cplusplus
9415 extern "C"
9416 #endif
9417 /* We use char because int might match the return type of a gcc2
9418    builtin and then its argument prototype would still apply.  */
9419 char waddch ();
9420 int
9421 main ()
9422 {
9423 waddch ();
9424   ;
9425   return 0;
9426 }
9427 _ACEOF
9428 rm -f conftest.$ac_objext conftest$ac_exeext
9429 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9430   (eval $ac_link) 2>conftest.er1
9431   ac_status=$?
9432   grep -v '^ *+' conftest.er1 >conftest.err
9433   rm -f conftest.er1
9434   cat conftest.err >&5
9435   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9436   (exit $ac_status); } &&
9437          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
9438   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9439   (eval $ac_try) 2>&5
9440   ac_status=$?
9441   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9442   (exit $ac_status); }; } &&
9443          { ac_try='test -s conftest$ac_exeext'
9444   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9445   (eval $ac_try) 2>&5
9446   ac_status=$?
9447   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9448   (exit $ac_status); }; }; then
9449   ac_cv_lib_curses_waddch=yes
9450 else
9451   echo "$as_me: failed program was:" >&5
9452 sed 's/^/| /' conftest.$ac_ext >&5
9453
9454 ac_cv_lib_curses_waddch=no
9455 fi
9456 rm -f conftest.err conftest.$ac_objext \
9457       conftest$ac_exeext conftest.$ac_ext
9458 LIBS=$ac_check_lib_save_LIBS
9459 fi
9460 echo "$as_me:$LINENO: result: $ac_cv_lib_curses_waddch" >&5
9461 echo "${ECHO_T}$ac_cv_lib_curses_waddch" >&6
9462 if test $ac_cv_lib_curses_waddch = yes; then
9463
9464 cat >>confdefs.h <<\_ACEOF
9465 #define HAVE_LIBCURSES 1
9466 _ACEOF
9467
9468                       CURSESLIBS="-lcurses"
9469 fi
9470
9471 fi
9472
9473 done
9474
9475 fi
9476
9477 fi
9478
9479 done
9480
9481     saved_libs="$LIBS"
9482     LIBS="$CURSESLIBS $LIBS"
9483
9484
9485 for ac_func in getbkgd resizeterm
9486 do
9487 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9488 echo "$as_me:$LINENO: checking for $ac_func" >&5
9489 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9490 if eval "test \"\${$as_ac_var+set}\" = set"; then
9491   echo $ECHO_N "(cached) $ECHO_C" >&6
9492 else
9493   cat >conftest.$ac_ext <<_ACEOF
9494 /* confdefs.h.  */
9495 _ACEOF
9496 cat confdefs.h >>conftest.$ac_ext
9497 cat >>conftest.$ac_ext <<_ACEOF
9498 /* end confdefs.h.  */
9499 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9500    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9501 #define $ac_func innocuous_$ac_func
9502
9503 /* System header to define __stub macros and hopefully few prototypes,
9504     which can conflict with char $ac_func (); below.
9505     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9506     <limits.h> exists even on freestanding compilers.  */
9507
9508 #ifdef __STDC__
9509 # include <limits.h>
9510 #else
9511 # include <assert.h>
9512 #endif
9513
9514 #undef $ac_func
9515
9516 /* Override any gcc2 internal prototype to avoid an error.  */
9517 #ifdef __cplusplus
9518 extern "C"
9519 {
9520 #endif
9521 /* We use char because int might match the return type of a gcc2
9522    builtin and then its argument prototype would still apply.  */
9523 char $ac_func ();
9524 /* The GNU C library defines this for functions which it implements
9525     to always fail with ENOSYS.  Some functions are actually named
9526     something starting with __ and the normal name is an alias.  */
9527 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9528 choke me
9529 #else
9530 char (*f) () = $ac_func;
9531 #endif
9532 #ifdef __cplusplus
9533 }
9534 #endif
9535
9536 int
9537 main ()
9538 {
9539 return f != $ac_func;
9540   ;
9541   return 0;
9542 }
9543 _ACEOF
9544 rm -f conftest.$ac_objext conftest$ac_exeext
9545 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9546   (eval $ac_link) 2>conftest.er1
9547   ac_status=$?
9548   grep -v '^ *+' conftest.er1 >conftest.err
9549   rm -f conftest.er1
9550   cat conftest.err >&5
9551   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9552   (exit $ac_status); } &&
9553          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
9554   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9555   (eval $ac_try) 2>&5
9556   ac_status=$?
9557   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9558   (exit $ac_status); }; } &&
9559          { ac_try='test -s conftest$ac_exeext'
9560   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9561   (eval $ac_try) 2>&5
9562   ac_status=$?
9563   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9564   (exit $ac_status); }; }; then
9565   eval "$as_ac_var=yes"
9566 else
9567   echo "$as_me: failed program was:" >&5
9568 sed 's/^/| /' conftest.$ac_ext >&5
9569
9570 eval "$as_ac_var=no"
9571 fi
9572 rm -f conftest.err conftest.$ac_objext \
9573       conftest$ac_exeext conftest.$ac_ext
9574 fi
9575 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9576 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9577 if test `eval echo '${'$as_ac_var'}'` = yes; then
9578   cat >>confdefs.h <<_ACEOF
9579 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9580 _ACEOF
9581
9582 fi
9583 done
9584
9585     LIBS="$saved_libs"
9586 fi
9587
9588
9589 # Extract the first word of "sane-config", so it can be a program name with args.
9590 set dummy sane-config; ac_word=$2
9591 echo "$as_me:$LINENO: checking for $ac_word" >&5
9592 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9593 if test "${ac_cv_prog_sane_devel+set}" = set; then
9594   echo $ECHO_N "(cached) $ECHO_C" >&6
9595 else
9596   if test -n "$sane_devel"; then
9597   ac_cv_prog_sane_devel="$sane_devel" # Let the user override the test.
9598 else
9599 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9600 for as_dir in $PATH
9601 do
9602   IFS=$as_save_IFS
9603   test -z "$as_dir" && as_dir=.
9604   for ac_exec_ext in '' $ac_executable_extensions; do
9605   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9606     ac_cv_prog_sane_devel="sane-config"
9607     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9608     break 2
9609   fi
9610 done
9611 done
9612
9613   test -z "$ac_cv_prog_sane_devel" && ac_cv_prog_sane_devel="no"
9614 fi
9615 fi
9616 sane_devel=$ac_cv_prog_sane_devel
9617 if test -n "$sane_devel"; then
9618   echo "$as_me:$LINENO: result: $sane_devel" >&5
9619 echo "${ECHO_T}$sane_devel" >&6
9620 else
9621   echo "$as_me:$LINENO: result: no" >&5
9622 echo "${ECHO_T}no" >&6
9623 fi
9624
9625 if test "$sane_devel" = "no"
9626 then
9627     SANELIBS=""
9628     SANEINCL=""
9629 else
9630     SANELIBS="`$sane_devel --libs`"
9631     SANEINCL="`$sane_devel --cflags`"
9632     ac_save_CPPFLAGS="$CPPFLAGS"
9633     ac_save_LIBS="$LIBS"
9634     CPPFLAGS="$CPPFLAGS $SANEINCL"
9635     LIBS="$LIBS $SANELIBS"
9636     if test "${ac_cv_header_sane_sane_h+set}" = set; then
9637   echo "$as_me:$LINENO: checking for sane/sane.h" >&5
9638 echo $ECHO_N "checking for sane/sane.h... $ECHO_C" >&6
9639 if test "${ac_cv_header_sane_sane_h+set}" = set; then
9640   echo $ECHO_N "(cached) $ECHO_C" >&6
9641 fi
9642 echo "$as_me:$LINENO: result: $ac_cv_header_sane_sane_h" >&5
9643 echo "${ECHO_T}$ac_cv_header_sane_sane_h" >&6
9644 else
9645   # Is the header compilable?
9646 echo "$as_me:$LINENO: checking sane/sane.h usability" >&5
9647 echo $ECHO_N "checking sane/sane.h usability... $ECHO_C" >&6
9648 cat >conftest.$ac_ext <<_ACEOF
9649 /* confdefs.h.  */
9650 _ACEOF
9651 cat confdefs.h >>conftest.$ac_ext
9652 cat >>conftest.$ac_ext <<_ACEOF
9653 /* end confdefs.h.  */
9654 $ac_includes_default
9655 #include <sane/sane.h>
9656 _ACEOF
9657 rm -f conftest.$ac_objext
9658 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9659   (eval $ac_compile) 2>conftest.er1
9660   ac_status=$?
9661   grep -v '^ *+' conftest.er1 >conftest.err
9662   rm -f conftest.er1
9663   cat conftest.err >&5
9664   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9665   (exit $ac_status); } &&
9666          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
9667   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9668   (eval $ac_try) 2>&5
9669   ac_status=$?
9670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9671   (exit $ac_status); }; } &&
9672          { ac_try='test -s conftest.$ac_objext'
9673   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9674   (eval $ac_try) 2>&5
9675   ac_status=$?
9676   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9677   (exit $ac_status); }; }; then
9678   ac_header_compiler=yes
9679 else
9680   echo "$as_me: failed program was:" >&5
9681 sed 's/^/| /' conftest.$ac_ext >&5
9682
9683 ac_header_compiler=no
9684 fi
9685 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9686 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9687 echo "${ECHO_T}$ac_header_compiler" >&6
9688
9689 # Is the header present?
9690 echo "$as_me:$LINENO: checking sane/sane.h presence" >&5
9691 echo $ECHO_N "checking sane/sane.h presence... $ECHO_C" >&6
9692 cat >conftest.$ac_ext <<_ACEOF
9693 /* confdefs.h.  */
9694 _ACEOF
9695 cat confdefs.h >>conftest.$ac_ext
9696 cat >>conftest.$ac_ext <<_ACEOF
9697 /* end confdefs.h.  */
9698 #include <sane/sane.h>
9699 _ACEOF
9700 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9701   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9702   ac_status=$?
9703   grep -v '^ *+' conftest.er1 >conftest.err
9704   rm -f conftest.er1
9705   cat conftest.err >&5
9706   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9707   (exit $ac_status); } >/dev/null; then
9708   if test -s conftest.err; then
9709     ac_cpp_err=$ac_c_preproc_warn_flag
9710     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9711   else
9712     ac_cpp_err=
9713   fi
9714 else
9715   ac_cpp_err=yes
9716 fi
9717 if test -z "$ac_cpp_err"; then
9718   ac_header_preproc=yes
9719 else
9720   echo "$as_me: failed program was:" >&5
9721 sed 's/^/| /' conftest.$ac_ext >&5
9722
9723   ac_header_preproc=no
9724 fi
9725 rm -f conftest.err conftest.$ac_ext
9726 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9727 echo "${ECHO_T}$ac_header_preproc" >&6
9728
9729 # So?  What about this header?
9730 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9731   yes:no: )
9732     { echo "$as_me:$LINENO: WARNING: sane/sane.h: accepted by the compiler, rejected by the preprocessor!" >&5
9733 echo "$as_me: WARNING: sane/sane.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9734     { echo "$as_me:$LINENO: WARNING: sane/sane.h: proceeding with the compiler's result" >&5
9735 echo "$as_me: WARNING: sane/sane.h: proceeding with the compiler's result" >&2;}
9736     ac_header_preproc=yes
9737     ;;
9738   no:yes:* )
9739     { echo "$as_me:$LINENO: WARNING: sane/sane.h: present but cannot be compiled" >&5
9740 echo "$as_me: WARNING: sane/sane.h: present but cannot be compiled" >&2;}
9741     { echo "$as_me:$LINENO: WARNING: sane/sane.h:     check for missing prerequisite headers?" >&5
9742 echo "$as_me: WARNING: sane/sane.h:     check for missing prerequisite headers?" >&2;}
9743     { echo "$as_me:$LINENO: WARNING: sane/sane.h: see the Autoconf documentation" >&5
9744 echo "$as_me: WARNING: sane/sane.h: see the Autoconf documentation" >&2;}
9745     { echo "$as_me:$LINENO: WARNING: sane/sane.h:     section \"Present But Cannot Be Compiled\"" >&5
9746 echo "$as_me: WARNING: sane/sane.h:     section \"Present But Cannot Be Compiled\"" >&2;}
9747     { echo "$as_me:$LINENO: WARNING: sane/sane.h: proceeding with the preprocessor's result" >&5
9748 echo "$as_me: WARNING: sane/sane.h: proceeding with the preprocessor's result" >&2;}
9749     { echo "$as_me:$LINENO: WARNING: sane/sane.h: in the future, the compiler will take precedence" >&5
9750 echo "$as_me: WARNING: sane/sane.h: in the future, the compiler will take precedence" >&2;}
9751     (
9752       cat <<\_ASBOX
9753 ## ------------------------------------ ##
9754 ## Report this to wine-devel@winehq.org ##
9755 ## ------------------------------------ ##
9756 _ASBOX
9757     ) |
9758       sed "s/^/$as_me: WARNING:     /" >&2
9759     ;;
9760 esac
9761 echo "$as_me:$LINENO: checking for sane/sane.h" >&5
9762 echo $ECHO_N "checking for sane/sane.h... $ECHO_C" >&6
9763 if test "${ac_cv_header_sane_sane_h+set}" = set; then
9764   echo $ECHO_N "(cached) $ECHO_C" >&6
9765 else
9766   ac_cv_header_sane_sane_h=$ac_header_preproc
9767 fi
9768 echo "$as_me:$LINENO: result: $ac_cv_header_sane_sane_h" >&5
9769 echo "${ECHO_T}$ac_cv_header_sane_sane_h" >&6
9770
9771 fi
9772 if test $ac_cv_header_sane_sane_h = yes; then
9773   echo "$as_me:$LINENO: checking for sane_open in -lsane" >&5
9774 echo $ECHO_N "checking for sane_open in -lsane... $ECHO_C" >&6
9775 if test "${ac_cv_lib_sane_sane_open+set}" = set; then
9776   echo $ECHO_N "(cached) $ECHO_C" >&6
9777 else
9778   ac_check_lib_save_LIBS=$LIBS
9779 LIBS="-lsane  $LIBS"
9780 cat >conftest.$ac_ext <<_ACEOF
9781 /* confdefs.h.  */
9782 _ACEOF
9783 cat confdefs.h >>conftest.$ac_ext
9784 cat >>conftest.$ac_ext <<_ACEOF
9785 /* end confdefs.h.  */
9786
9787 /* Override any gcc2 internal prototype to avoid an error.  */
9788 #ifdef __cplusplus
9789 extern "C"
9790 #endif
9791 /* We use char because int might match the return type of a gcc2
9792    builtin and then its argument prototype would still apply.  */
9793 char sane_open ();
9794 int
9795 main ()
9796 {
9797 sane_open ();
9798   ;
9799   return 0;
9800 }
9801 _ACEOF
9802 rm -f conftest.$ac_objext conftest$ac_exeext
9803 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9804   (eval $ac_link) 2>conftest.er1
9805   ac_status=$?
9806   grep -v '^ *+' conftest.er1 >conftest.err
9807   rm -f conftest.er1
9808   cat conftest.err >&5
9809   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9810   (exit $ac_status); } &&
9811          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
9812   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9813   (eval $ac_try) 2>&5
9814   ac_status=$?
9815   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9816   (exit $ac_status); }; } &&
9817          { ac_try='test -s conftest$ac_exeext'
9818   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9819   (eval $ac_try) 2>&5
9820   ac_status=$?
9821   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9822   (exit $ac_status); }; }; then
9823   ac_cv_lib_sane_sane_open=yes
9824 else
9825   echo "$as_me: failed program was:" >&5
9826 sed 's/^/| /' conftest.$ac_ext >&5
9827
9828 ac_cv_lib_sane_sane_open=no
9829 fi
9830 rm -f conftest.err conftest.$ac_objext \
9831       conftest$ac_exeext conftest.$ac_ext
9832 LIBS=$ac_check_lib_save_LIBS
9833 fi
9834 echo "$as_me:$LINENO: result: $ac_cv_lib_sane_sane_open" >&5
9835 echo "${ECHO_T}$ac_cv_lib_sane_sane_open" >&6
9836 if test $ac_cv_lib_sane_sane_open = yes; then
9837
9838 cat >>confdefs.h <<\_ACEOF
9839 #define HAVE_SANE 1
9840 _ACEOF
9841
9842 else
9843   SANELIBS=""
9844                                   SANEINCL=""
9845 fi
9846
9847 else
9848   SANELIBS=""
9849                     SANEINCL=""
9850 fi
9851
9852
9853     LIBS="$ac_save_LIBS"
9854     CPPFLAGS="$ac_save_CPPFLAGS"
9855 fi
9856
9857
9858
9859
9860 for ac_header in unicode/ubidi.h
9861 do
9862 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9863 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9864   echo "$as_me:$LINENO: checking for $ac_header" >&5
9865 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9866 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9867   echo $ECHO_N "(cached) $ECHO_C" >&6
9868 fi
9869 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9870 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9871 else
9872   # Is the header compilable?
9873 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9874 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9875 cat >conftest.$ac_ext <<_ACEOF
9876 /* confdefs.h.  */
9877 _ACEOF
9878 cat confdefs.h >>conftest.$ac_ext
9879 cat >>conftest.$ac_ext <<_ACEOF
9880 /* end confdefs.h.  */
9881 $ac_includes_default
9882 #include <$ac_header>
9883 _ACEOF
9884 rm -f conftest.$ac_objext
9885 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9886   (eval $ac_compile) 2>conftest.er1
9887   ac_status=$?
9888   grep -v '^ *+' conftest.er1 >conftest.err
9889   rm -f conftest.er1
9890   cat conftest.err >&5
9891   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9892   (exit $ac_status); } &&
9893          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
9894   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9895   (eval $ac_try) 2>&5
9896   ac_status=$?
9897   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9898   (exit $ac_status); }; } &&
9899          { ac_try='test -s conftest.$ac_objext'
9900   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9901   (eval $ac_try) 2>&5
9902   ac_status=$?
9903   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9904   (exit $ac_status); }; }; then
9905   ac_header_compiler=yes
9906 else
9907   echo "$as_me: failed program was:" >&5
9908 sed 's/^/| /' conftest.$ac_ext >&5
9909
9910 ac_header_compiler=no
9911 fi
9912 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9913 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9914 echo "${ECHO_T}$ac_header_compiler" >&6
9915
9916 # Is the header present?
9917 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9918 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9919 cat >conftest.$ac_ext <<_ACEOF
9920 /* confdefs.h.  */
9921 _ACEOF
9922 cat confdefs.h >>conftest.$ac_ext
9923 cat >>conftest.$ac_ext <<_ACEOF
9924 /* end confdefs.h.  */
9925 #include <$ac_header>
9926 _ACEOF
9927 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9928   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9929   ac_status=$?
9930   grep -v '^ *+' conftest.er1 >conftest.err
9931   rm -f conftest.er1
9932   cat conftest.err >&5
9933   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9934   (exit $ac_status); } >/dev/null; then
9935   if test -s conftest.err; then
9936     ac_cpp_err=$ac_c_preproc_warn_flag
9937     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9938   else
9939     ac_cpp_err=
9940   fi
9941 else
9942   ac_cpp_err=yes
9943 fi
9944 if test -z "$ac_cpp_err"; then
9945   ac_header_preproc=yes
9946 else
9947   echo "$as_me: failed program was:" >&5
9948 sed 's/^/| /' conftest.$ac_ext >&5
9949
9950   ac_header_preproc=no
9951 fi
9952 rm -f conftest.err conftest.$ac_ext
9953 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9954 echo "${ECHO_T}$ac_header_preproc" >&6
9955
9956 # So?  What about this header?
9957 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9958   yes:no: )
9959     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9960 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9961     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9962 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9963     ac_header_preproc=yes
9964     ;;
9965   no:yes:* )
9966     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9967 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9968     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9969 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9970     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9971 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9972     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9973 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9974     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9975 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9976     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9977 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9978     (
9979       cat <<\_ASBOX
9980 ## ------------------------------------ ##
9981 ## Report this to wine-devel@winehq.org ##
9982 ## ------------------------------------ ##
9983 _ASBOX
9984     ) |
9985       sed "s/^/$as_me: WARNING:     /" >&2
9986     ;;
9987 esac
9988 echo "$as_me:$LINENO: checking for $ac_header" >&5
9989 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9990 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9991   echo $ECHO_N "(cached) $ECHO_C" >&6
9992 else
9993   eval "$as_ac_Header=\$ac_header_preproc"
9994 fi
9995 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9996 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9997
9998 fi
9999 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10000   cat >>confdefs.h <<_ACEOF
10001 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10002 _ACEOF
10003
10004 fi
10005
10006 done
10007
10008 if test "$ac_cv_header_unicode_ubidi_h" = "yes"
10009 then
10010     echo "$as_me:$LINENO: checking whether we can statically link the ICU libraries" >&5
10011 echo $ECHO_N "checking whether we can statically link the ICU libraries... $ECHO_C" >&6
10012 if test "${ac_cv_lib_icu+set}" = set; then
10013   echo $ECHO_N "(cached) $ECHO_C" >&6
10014 else
10015   saved_libs="$LIBS"
10016          ICU_LIB_DIR="${ICU_LIB_DIR-/usr/lib}"
10017          ICUUC_LIB="${ICUUC_LIB-$ICU_LIB_DIR/libicuuc.a}"
10018          ICUDATA_LIB="${ICUDATA_LIB-$ICU_LIB_DIR/libicudata.a}"
10019          LIBS="$LIBS $ICUUC_LIB $ICUDATA_LIB -lstdc++ -lgcc_s"
10020          cat >conftest.$ac_ext <<_ACEOF
10021 /* confdefs.h.  */
10022 _ACEOF
10023 cat confdefs.h >>conftest.$ac_ext
10024 cat >>conftest.$ac_ext <<_ACEOF
10025 /* end confdefs.h.  */
10026 #include <unicode/ubidi.h>
10027 int
10028 main ()
10029 {
10030 ubidi_open()
10031   ;
10032   return 0;
10033 }
10034 _ACEOF
10035 rm -f conftest.$ac_objext conftest$ac_exeext
10036 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10037   (eval $ac_link) 2>conftest.er1
10038   ac_status=$?
10039   grep -v '^ *+' conftest.er1 >conftest.err
10040   rm -f conftest.er1
10041   cat conftest.err >&5
10042   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10043   (exit $ac_status); } &&
10044          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
10045   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10046   (eval $ac_try) 2>&5
10047   ac_status=$?
10048   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10049   (exit $ac_status); }; } &&
10050          { ac_try='test -s conftest$ac_exeext'
10051   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10052   (eval $ac_try) 2>&5
10053   ac_status=$?
10054   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10055   (exit $ac_status); }; }; then
10056   ac_cv_lib_icu="yes"
10057 else
10058   echo "$as_me: failed program was:" >&5
10059 sed 's/^/| /' conftest.$ac_ext >&5
10060
10061 ac_cv_lib_icu="no"
10062 fi
10063 rm -f conftest.err conftest.$ac_objext \
10064       conftest$ac_exeext conftest.$ac_ext
10065         LIBS="$saved_libs"
10066 fi
10067 echo "$as_me:$LINENO: result: $ac_cv_lib_icu" >&5
10068 echo "${ECHO_T}$ac_cv_lib_icu" >&6
10069     if test "$ac_cv_lib_icu" = "yes"
10070     then
10071
10072 cat >>confdefs.h <<\_ACEOF
10073 #define HAVE_ICU 1
10074 _ACEOF
10075
10076         ICULIBS="$ICUUC_LIB $ICUDATA_LIB -lstdc++ -lgcc_s"
10077
10078     fi
10079 fi
10080
10081 echo "$as_me:$LINENO: checking for FT_Init_FreeType in -lfreetype" >&5
10082 echo $ECHO_N "checking for FT_Init_FreeType in -lfreetype... $ECHO_C" >&6
10083 if test "${ac_cv_lib_freetype_FT_Init_FreeType+set}" = set; then
10084   echo $ECHO_N "(cached) $ECHO_C" >&6
10085 else
10086   ac_check_lib_save_LIBS=$LIBS
10087 LIBS="-lfreetype $X_LIBS $LIBS"
10088 cat >conftest.$ac_ext <<_ACEOF
10089 /* confdefs.h.  */
10090 _ACEOF
10091 cat confdefs.h >>conftest.$ac_ext
10092 cat >>conftest.$ac_ext <<_ACEOF
10093 /* end confdefs.h.  */
10094
10095 /* Override any gcc2 internal prototype to avoid an error.  */
10096 #ifdef __cplusplus
10097 extern "C"
10098 #endif
10099 /* We use char because int might match the return type of a gcc2
10100    builtin and then its argument prototype would still apply.  */
10101 char FT_Init_FreeType ();
10102 int
10103 main ()
10104 {
10105 FT_Init_FreeType ();
10106   ;
10107   return 0;
10108 }
10109 _ACEOF
10110 rm -f conftest.$ac_objext conftest$ac_exeext
10111 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10112   (eval $ac_link) 2>conftest.er1
10113   ac_status=$?
10114   grep -v '^ *+' conftest.er1 >conftest.err
10115   rm -f conftest.er1
10116   cat conftest.err >&5
10117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10118   (exit $ac_status); } &&
10119          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
10120   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10121   (eval $ac_try) 2>&5
10122   ac_status=$?
10123   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10124   (exit $ac_status); }; } &&
10125          { ac_try='test -s conftest$ac_exeext'
10126   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10127   (eval $ac_try) 2>&5
10128   ac_status=$?
10129   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10130   (exit $ac_status); }; }; then
10131   ac_cv_lib_freetype_FT_Init_FreeType=yes
10132 else
10133   echo "$as_me: failed program was:" >&5
10134 sed 's/^/| /' conftest.$ac_ext >&5
10135
10136 ac_cv_lib_freetype_FT_Init_FreeType=no
10137 fi
10138 rm -f conftest.err conftest.$ac_objext \
10139       conftest$ac_exeext conftest.$ac_ext
10140 LIBS=$ac_check_lib_save_LIBS
10141 fi
10142 echo "$as_me:$LINENO: result: $ac_cv_lib_freetype_FT_Init_FreeType" >&5
10143 echo "${ECHO_T}$ac_cv_lib_freetype_FT_Init_FreeType" >&6
10144 if test $ac_cv_lib_freetype_FT_Init_FreeType = yes; then
10145   ft_lib=yes
10146 else
10147   ft_lib=no
10148 fi
10149
10150 if test "$ft_lib" = "no"
10151 then
10152     FREETYPEINCL=""
10153     wine_cv_msg_freetype=no
10154 else
10155     # Extract the first word of "freetype-config", so it can be a program name with args.
10156 set dummy freetype-config; ac_word=$2
10157 echo "$as_me:$LINENO: checking for $ac_word" >&5
10158 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10159 if test "${ac_cv_prog_ft_devel+set}" = set; then
10160   echo $ECHO_N "(cached) $ECHO_C" >&6
10161 else
10162   if test -n "$ft_devel"; then
10163   ac_cv_prog_ft_devel="$ft_devel" # Let the user override the test.
10164 else
10165 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10166 for as_dir in $PATH
10167 do
10168   IFS=$as_save_IFS
10169   test -z "$as_dir" && as_dir=.
10170   for ac_exec_ext in '' $ac_executable_extensions; do
10171   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10172     ac_cv_prog_ft_devel="freetype-config"
10173     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10174     break 2
10175   fi
10176 done
10177 done
10178
10179   test -z "$ac_cv_prog_ft_devel" && ac_cv_prog_ft_devel="no"
10180 fi
10181 fi
10182 ft_devel=$ac_cv_prog_ft_devel
10183 if test -n "$ft_devel"; then
10184   echo "$as_me:$LINENO: result: $ft_devel" >&5
10185 echo "${ECHO_T}$ft_devel" >&6
10186 else
10187   echo "$as_me:$LINENO: result: no" >&5
10188 echo "${ECHO_T}no" >&6
10189 fi
10190
10191     if test "$ft_devel" = "no"
10192     then
10193         # Extract the first word of "freetype2-config", so it can be a program name with args.
10194 set dummy freetype2-config; ac_word=$2
10195 echo "$as_me:$LINENO: checking for $ac_word" >&5
10196 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10197 if test "${ac_cv_prog_ft_devel2+set}" = set; then
10198   echo $ECHO_N "(cached) $ECHO_C" >&6
10199 else
10200   if test -n "$ft_devel2"; then
10201   ac_cv_prog_ft_devel2="$ft_devel2" # Let the user override the test.
10202 else
10203 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10204 for as_dir in $PATH
10205 do
10206   IFS=$as_save_IFS
10207   test -z "$as_dir" && as_dir=.
10208   for ac_exec_ext in '' $ac_executable_extensions; do
10209   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10210     ac_cv_prog_ft_devel2="freetype2-config"
10211     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10212     break 2
10213   fi
10214 done
10215 done
10216
10217   test -z "$ac_cv_prog_ft_devel2" && ac_cv_prog_ft_devel2="no"
10218 fi
10219 fi
10220 ft_devel2=$ac_cv_prog_ft_devel2
10221 if test -n "$ft_devel2"; then
10222   echo "$as_me:$LINENO: result: $ft_devel2" >&5
10223 echo "${ECHO_T}$ft_devel2" >&6
10224 else
10225   echo "$as_me:$LINENO: result: no" >&5
10226 echo "${ECHO_T}no" >&6
10227 fi
10228
10229         if test "$ft_devel2" = "freetype2-config"
10230         then
10231                 ft_devel=$ft_devel2
10232         fi
10233     fi
10234     if test "$ft_devel" = "no"
10235     then
10236         FREETYPEINCL=""
10237         wine_cv_msg_freetype=yes
10238     else
10239         FREETYPEINCL=`$ft_devel --cflags`
10240         ac_save_CPPFLAGS="$CPPFLAGS"
10241         CPPFLAGS="$FREETYPEINCL $CPPFLAGS"
10242
10243
10244
10245
10246
10247
10248
10249
10250
10251 for ac_header in ft2build.h \
10252                          freetype/freetype.h \
10253                          freetype/ftglyph.h \
10254                          freetype/tttables.h \
10255                          freetype/ftnames.h \
10256                          freetype/ftsnames.h \
10257                          freetype/ttnameid.h \
10258                          freetype/ftoutln.h \
10259                          freetype/internal/sfnt.h
10260 do
10261 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10262 echo "$as_me:$LINENO: checking for $ac_header" >&5
10263 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10264 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10265   echo $ECHO_N "(cached) $ECHO_C" >&6
10266 else
10267   cat >conftest.$ac_ext <<_ACEOF
10268 /* confdefs.h.  */
10269 _ACEOF
10270 cat confdefs.h >>conftest.$ac_ext
10271 cat >>conftest.$ac_ext <<_ACEOF
10272 /* end confdefs.h.  */
10273 #if HAVE_FT2BUILD_H
10274                           #include <ft2build.h>
10275                           #endif
10276
10277 #include <$ac_header>
10278 _ACEOF
10279 rm -f conftest.$ac_objext
10280 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10281   (eval $ac_compile) 2>conftest.er1
10282   ac_status=$?
10283   grep -v '^ *+' conftest.er1 >conftest.err
10284   rm -f conftest.er1
10285   cat conftest.err >&5
10286   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10287   (exit $ac_status); } &&
10288          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
10289   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10290   (eval $ac_try) 2>&5
10291   ac_status=$?
10292   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10293   (exit $ac_status); }; } &&
10294          { ac_try='test -s conftest.$ac_objext'
10295   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10296   (eval $ac_try) 2>&5
10297   ac_status=$?
10298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10299   (exit $ac_status); }; }; then
10300   eval "$as_ac_Header=yes"
10301 else
10302   echo "$as_me: failed program was:" >&5
10303 sed 's/^/| /' conftest.$ac_ext >&5
10304
10305 eval "$as_ac_Header=no"
10306 fi
10307 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10308 fi
10309 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10310 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10311 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10312   cat >>confdefs.h <<_ACEOF
10313 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10314 _ACEOF
10315
10316 fi
10317
10318 done
10319
10320         cat >conftest.$ac_ext <<_ACEOF
10321 /* confdefs.h.  */
10322 _ACEOF
10323 cat confdefs.h >>conftest.$ac_ext
10324 cat >>conftest.$ac_ext <<_ACEOF
10325 /* end confdefs.h.  */
10326 #include <ft2build.h>
10327                     #include <freetype/fttrigon.h>
10328 _ACEOF
10329 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10330   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10331   ac_status=$?
10332   grep -v '^ *+' conftest.er1 >conftest.err
10333   rm -f conftest.er1
10334   cat conftest.err >&5
10335   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10336   (exit $ac_status); } >/dev/null; then
10337   if test -s conftest.err; then
10338     ac_cpp_err=$ac_c_preproc_warn_flag
10339     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10340   else
10341     ac_cpp_err=
10342   fi
10343 else
10344   ac_cpp_err=yes
10345 fi
10346 if test -z "$ac_cpp_err"; then
10347
10348 cat >>confdefs.h <<\_ACEOF
10349 #define HAVE_FREETYPE_FTTRIGON_H 1
10350 _ACEOF
10351
10352                     wine_cv_fttrigon=yes
10353 else
10354   echo "$as_me: failed program was:" >&5
10355 sed 's/^/| /' conftest.$ac_ext >&5
10356
10357   wine_cv_fttrigon=no
10358 fi
10359 rm -f conftest.err conftest.$ac_ext
10360         CPPFLAGS="$ac_save_CPPFLAGS"
10361                 if test "$ac_cv_header_freetype_freetype_h" = "yes" -a "$wine_cv_fttrigon" = "yes"
10362         then
10363
10364 cat >>confdefs.h <<\_ACEOF
10365 #define HAVE_FREETYPE 1
10366 _ACEOF
10367
10368             wine_cv_msg_freetype=no
10369         else
10370             FREETYPEINCL=""
10371             wine_cv_msg_freetype=yes
10372         fi
10373     fi
10374 fi
10375
10376
10377 echo "$as_me:$LINENO: checking for parport header/ppdev.h" >&5
10378 echo $ECHO_N "checking for parport header/ppdev.h... $ECHO_C" >&6
10379 if test "${ac_cv_c_ppdev+set}" = set; then
10380   echo $ECHO_N "(cached) $ECHO_C" >&6
10381 else
10382   cat >conftest.$ac_ext <<_ACEOF
10383 /* confdefs.h.  */
10384 _ACEOF
10385 cat confdefs.h >>conftest.$ac_ext
10386 cat >>conftest.$ac_ext <<_ACEOF
10387 /* end confdefs.h.  */
10388 #include <linux/ppdev.h>
10389 int
10390 main ()
10391 {
10392 ioctl (1,PPCLAIM,0)
10393   ;
10394   return 0;
10395 }
10396 _ACEOF
10397 rm -f conftest.$ac_objext
10398 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10399   (eval $ac_compile) 2>conftest.er1
10400   ac_status=$?
10401   grep -v '^ *+' conftest.er1 >conftest.err
10402   rm -f conftest.er1
10403   cat conftest.err >&5
10404   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10405   (exit $ac_status); } &&
10406          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
10407   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10408   (eval $ac_try) 2>&5
10409   ac_status=$?
10410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10411   (exit $ac_status); }; } &&
10412          { ac_try='test -s conftest.$ac_objext'
10413   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10414   (eval $ac_try) 2>&5
10415   ac_status=$?
10416   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10417   (exit $ac_status); }; }; then
10418   ac_cv_c_ppdev="yes"
10419 else
10420   echo "$as_me: failed program was:" >&5
10421 sed 's/^/| /' conftest.$ac_ext >&5
10422
10423 ac_cv_c_ppdev="no"
10424 fi
10425 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10426
10427 fi
10428 echo "$as_me:$LINENO: result: $ac_cv_c_ppdev" >&5
10429 echo "${ECHO_T}$ac_cv_c_ppdev" >&6
10430 if test "$ac_cv_c_ppdev" = "yes"
10431 then
10432
10433 cat >>confdefs.h <<\_ACEOF
10434 #define HAVE_PPDEV 1
10435 _ACEOF
10436
10437 fi
10438
10439 echo "$as_me:$LINENO: checking for va_copy" >&5
10440 echo $ECHO_N "checking for va_copy... $ECHO_C" >&6
10441 if test "${ac_cv_c_va_copy+set}" = set; then
10442   echo $ECHO_N "(cached) $ECHO_C" >&6
10443 else
10444   cat >conftest.$ac_ext <<_ACEOF
10445 /* confdefs.h.  */
10446 _ACEOF
10447 cat confdefs.h >>conftest.$ac_ext
10448 cat >>conftest.$ac_ext <<_ACEOF
10449 /* end confdefs.h.  */
10450 #include <stdarg.h>
10451 int
10452 main ()
10453 {
10454 va_list ap1, ap2;
10455     va_copy(ap1,ap2);
10456
10457   ;
10458   return 0;
10459 }
10460 _ACEOF
10461 rm -f conftest.$ac_objext conftest$ac_exeext
10462 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10463   (eval $ac_link) 2>conftest.er1
10464   ac_status=$?
10465   grep -v '^ *+' conftest.er1 >conftest.err
10466   rm -f conftest.er1
10467   cat conftest.err >&5
10468   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10469   (exit $ac_status); } &&
10470          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
10471   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10472   (eval $ac_try) 2>&5
10473   ac_status=$?
10474   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10475   (exit $ac_status); }; } &&
10476          { ac_try='test -s conftest$ac_exeext'
10477   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10478   (eval $ac_try) 2>&5
10479   ac_status=$?
10480   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10481   (exit $ac_status); }; }; then
10482   ac_cv_c_va_copy="yes"
10483 else
10484   echo "$as_me: failed program was:" >&5
10485 sed 's/^/| /' conftest.$ac_ext >&5
10486
10487 ac_cv_c_va_copy="no"
10488 fi
10489 rm -f conftest.err conftest.$ac_objext \
10490       conftest$ac_exeext conftest.$ac_ext
10491
10492 fi
10493 echo "$as_me:$LINENO: result: $ac_cv_c_va_copy" >&5
10494 echo "${ECHO_T}$ac_cv_c_va_copy" >&6
10495 if test "$ac_cv_c_va_copy" = "yes"
10496 then
10497
10498 cat >>confdefs.h <<\_ACEOF
10499 #define HAVE_VA_COPY 1
10500 _ACEOF
10501
10502 fi
10503 echo "$as_me:$LINENO: checking for __va_copy" >&5
10504 echo $ECHO_N "checking for __va_copy... $ECHO_C" >&6
10505 if test "${ac_cv_c___va_copy+set}" = set; then
10506   echo $ECHO_N "(cached) $ECHO_C" >&6
10507 else
10508   cat >conftest.$ac_ext <<_ACEOF
10509 /* confdefs.h.  */
10510 _ACEOF
10511 cat confdefs.h >>conftest.$ac_ext
10512 cat >>conftest.$ac_ext <<_ACEOF
10513 /* end confdefs.h.  */
10514 #include <stdarg.h>
10515 int
10516 main ()
10517 {
10518 va_list ap1, ap2;
10519     __va_copy(ap1,ap2);
10520
10521   ;
10522   return 0;
10523 }
10524 _ACEOF
10525 rm -f conftest.$ac_objext conftest$ac_exeext
10526 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10527   (eval $ac_link) 2>conftest.er1
10528   ac_status=$?
10529   grep -v '^ *+' conftest.er1 >conftest.err
10530   rm -f conftest.er1
10531   cat conftest.err >&5
10532   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10533   (exit $ac_status); } &&
10534          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
10535   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10536   (eval $ac_try) 2>&5
10537   ac_status=$?
10538   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10539   (exit $ac_status); }; } &&
10540          { ac_try='test -s conftest$ac_exeext'
10541   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10542   (eval $ac_try) 2>&5
10543   ac_status=$?
10544   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10545   (exit $ac_status); }; }; then
10546   ac_cv_c___va_copy="yes"
10547 else
10548   echo "$as_me: failed program was:" >&5
10549 sed 's/^/| /' conftest.$ac_ext >&5
10550
10551 ac_cv_c___va_copy="no"
10552 fi
10553 rm -f conftest.err conftest.$ac_objext \
10554       conftest$ac_exeext conftest.$ac_ext
10555
10556 fi
10557 echo "$as_me:$LINENO: result: $ac_cv_c___va_copy" >&5
10558 echo "${ECHO_T}$ac_cv_c___va_copy" >&6
10559 if test "$ac_cv_c___va_copy" = "yes"
10560 then
10561
10562 cat >>confdefs.h <<\_ACEOF
10563 #define HAVE___VA_COPY 1
10564 _ACEOF
10565
10566 fi
10567
10568 echo "$as_me:$LINENO: checking for sigsetjmp" >&5
10569 echo $ECHO_N "checking for sigsetjmp... $ECHO_C" >&6
10570 if test "${ac_cv_c_sigsetjmp+set}" = set; then
10571   echo $ECHO_N "(cached) $ECHO_C" >&6
10572 else
10573   cat >conftest.$ac_ext <<_ACEOF
10574 /* confdefs.h.  */
10575 _ACEOF
10576 cat confdefs.h >>conftest.$ac_ext
10577 cat >>conftest.$ac_ext <<_ACEOF
10578 /* end confdefs.h.  */
10579 #include <setjmp.h>
10580 int
10581 main ()
10582 {
10583 sigjmp_buf buf;
10584     sigsetjmp( buf, 1 );
10585     siglongjmp( buf, 1 );
10586   ;
10587   return 0;
10588 }
10589 _ACEOF
10590 rm -f conftest.$ac_objext conftest$ac_exeext
10591 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10592   (eval $ac_link) 2>conftest.er1
10593   ac_status=$?
10594   grep -v '^ *+' conftest.er1 >conftest.err
10595   rm -f conftest.er1
10596   cat conftest.err >&5
10597   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10598   (exit $ac_status); } &&
10599          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
10600   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10601   (eval $ac_try) 2>&5
10602   ac_status=$?
10603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10604   (exit $ac_status); }; } &&
10605          { ac_try='test -s conftest$ac_exeext'
10606   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10607   (eval $ac_try) 2>&5
10608   ac_status=$?
10609   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10610   (exit $ac_status); }; }; then
10611   ac_cv_c_sigsetjmp="yes"
10612 else
10613   echo "$as_me: failed program was:" >&5
10614 sed 's/^/| /' conftest.$ac_ext >&5
10615
10616 ac_cv_c_sigsetjmp="no"
10617 fi
10618 rm -f conftest.err conftest.$ac_objext \
10619       conftest$ac_exeext conftest.$ac_ext
10620
10621 fi
10622 echo "$as_me:$LINENO: result: $ac_cv_c_sigsetjmp" >&5
10623 echo "${ECHO_T}$ac_cv_c_sigsetjmp" >&6
10624 if test "$ac_cv_c_sigsetjmp" = "yes"
10625 then
10626
10627 cat >>confdefs.h <<\_ACEOF
10628 #define HAVE_SIGSETJMP 1
10629 _ACEOF
10630
10631 fi
10632
10633 echo "$as_me:$LINENO: checking for pthread_rwlock_t" >&5
10634 echo $ECHO_N "checking for pthread_rwlock_t... $ECHO_C" >&6
10635 if test "${ac_cv_type_pthread_rwlock_t+set}" = set; then
10636   echo $ECHO_N "(cached) $ECHO_C" >&6
10637 else
10638   cat >conftest.$ac_ext <<_ACEOF
10639 /* confdefs.h.  */
10640 _ACEOF
10641 cat confdefs.h >>conftest.$ac_ext
10642 cat >>conftest.$ac_ext <<_ACEOF
10643 /* end confdefs.h.  */
10644 #define _GNU_SOURCE
10645 #include <pthread.h>
10646
10647 int
10648 main ()
10649 {
10650 if ((pthread_rwlock_t *) 0)
10651   return 0;
10652 if (sizeof (pthread_rwlock_t))
10653   return 0;
10654   ;
10655   return 0;
10656 }
10657 _ACEOF
10658 rm -f conftest.$ac_objext
10659 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10660   (eval $ac_compile) 2>conftest.er1
10661   ac_status=$?
10662   grep -v '^ *+' conftest.er1 >conftest.err
10663   rm -f conftest.er1
10664   cat conftest.err >&5
10665   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10666   (exit $ac_status); } &&
10667          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
10668   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10669   (eval $ac_try) 2>&5
10670   ac_status=$?
10671   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10672   (exit $ac_status); }; } &&
10673          { ac_try='test -s conftest.$ac_objext'
10674   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10675   (eval $ac_try) 2>&5
10676   ac_status=$?
10677   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10678   (exit $ac_status); }; }; then
10679   ac_cv_type_pthread_rwlock_t=yes
10680 else
10681   echo "$as_me: failed program was:" >&5
10682 sed 's/^/| /' conftest.$ac_ext >&5
10683
10684 ac_cv_type_pthread_rwlock_t=no
10685 fi
10686 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10687 fi
10688 echo "$as_me:$LINENO: result: $ac_cv_type_pthread_rwlock_t" >&5
10689 echo "${ECHO_T}$ac_cv_type_pthread_rwlock_t" >&6
10690 if test $ac_cv_type_pthread_rwlock_t = yes; then
10691
10692 cat >>confdefs.h <<_ACEOF
10693 #define HAVE_PTHREAD_RWLOCK_T 1
10694 _ACEOF
10695
10696
10697 fi
10698 echo "$as_me:$LINENO: checking for pthread_rwlockattr_t" >&5
10699 echo $ECHO_N "checking for pthread_rwlockattr_t... $ECHO_C" >&6
10700 if test "${ac_cv_type_pthread_rwlockattr_t+set}" = set; then
10701   echo $ECHO_N "(cached) $ECHO_C" >&6
10702 else
10703   cat >conftest.$ac_ext <<_ACEOF
10704 /* confdefs.h.  */
10705 _ACEOF
10706 cat confdefs.h >>conftest.$ac_ext
10707 cat >>conftest.$ac_ext <<_ACEOF
10708 /* end confdefs.h.  */
10709 #define _GNU_SOURCE
10710 #include <pthread.h>
10711
10712 int
10713 main ()
10714 {
10715 if ((pthread_rwlockattr_t *) 0)
10716   return 0;
10717 if (sizeof (pthread_rwlockattr_t))
10718   return 0;
10719   ;
10720   return 0;
10721 }
10722 _ACEOF
10723 rm -f conftest.$ac_objext
10724 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10725   (eval $ac_compile) 2>conftest.er1
10726   ac_status=$?
10727   grep -v '^ *+' conftest.er1 >conftest.err
10728   rm -f conftest.er1
10729   cat conftest.err >&5
10730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10731   (exit $ac_status); } &&
10732          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
10733   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10734   (eval $ac_try) 2>&5
10735   ac_status=$?
10736   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10737   (exit $ac_status); }; } &&
10738          { ac_try='test -s conftest.$ac_objext'
10739   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10740   (eval $ac_try) 2>&5
10741   ac_status=$?
10742   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10743   (exit $ac_status); }; }; then
10744   ac_cv_type_pthread_rwlockattr_t=yes
10745 else
10746   echo "$as_me: failed program was:" >&5
10747 sed 's/^/| /' conftest.$ac_ext >&5
10748
10749 ac_cv_type_pthread_rwlockattr_t=no
10750 fi
10751 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10752 fi
10753 echo "$as_me:$LINENO: result: $ac_cv_type_pthread_rwlockattr_t" >&5
10754 echo "${ECHO_T}$ac_cv_type_pthread_rwlockattr_t" >&6
10755 if test $ac_cv_type_pthread_rwlockattr_t = yes; then
10756
10757 cat >>confdefs.h <<_ACEOF
10758 #define HAVE_PTHREAD_RWLOCKATTR_T 1
10759 _ACEOF
10760
10761
10762 fi
10763
10764
10765 ac_save_LIBS="$LIBS"
10766 LIBS="$LIBS $LIBPTHREAD"
10767
10768 for ac_func in pthread_getattr_np
10769 do
10770 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10771 echo "$as_me:$LINENO: checking for $ac_func" >&5
10772 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10773 if eval "test \"\${$as_ac_var+set}\" = set"; then
10774   echo $ECHO_N "(cached) $ECHO_C" >&6
10775 else
10776   cat >conftest.$ac_ext <<_ACEOF
10777 /* confdefs.h.  */
10778 _ACEOF
10779 cat confdefs.h >>conftest.$ac_ext
10780 cat >>conftest.$ac_ext <<_ACEOF
10781 /* end confdefs.h.  */
10782 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10783    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10784 #define $ac_func innocuous_$ac_func
10785
10786 /* System header to define __stub macros and hopefully few prototypes,
10787     which can conflict with char $ac_func (); below.
10788     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10789     <limits.h> exists even on freestanding compilers.  */
10790
10791 #ifdef __STDC__
10792 # include <limits.h>
10793 #else
10794 # include <assert.h>
10795 #endif
10796
10797 #undef $ac_func
10798
10799 /* Override any gcc2 internal prototype to avoid an error.  */
10800 #ifdef __cplusplus
10801 extern "C"
10802 {
10803 #endif
10804 /* We use char because int might match the return type of a gcc2
10805    builtin and then its argument prototype would still apply.  */
10806 char $ac_func ();
10807 /* The GNU C library defines this for functions which it implements
10808     to always fail with ENOSYS.  Some functions are actually named
10809     something starting with __ and the normal name is an alias.  */
10810 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10811 choke me
10812 #else
10813 char (*f) () = $ac_func;
10814 #endif
10815 #ifdef __cplusplus
10816 }
10817 #endif
10818
10819 int
10820 main ()
10821 {
10822 return f != $ac_func;
10823   ;
10824   return 0;
10825 }
10826 _ACEOF
10827 rm -f conftest.$ac_objext conftest$ac_exeext
10828 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10829   (eval $ac_link) 2>conftest.er1
10830   ac_status=$?
10831   grep -v '^ *+' conftest.er1 >conftest.err
10832   rm -f conftest.er1
10833   cat conftest.err >&5
10834   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10835   (exit $ac_status); } &&
10836          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
10837   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10838   (eval $ac_try) 2>&5
10839   ac_status=$?
10840   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10841   (exit $ac_status); }; } &&
10842          { ac_try='test -s conftest$ac_exeext'
10843   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10844   (eval $ac_try) 2>&5
10845   ac_status=$?
10846   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10847   (exit $ac_status); }; }; then
10848   eval "$as_ac_var=yes"
10849 else
10850   echo "$as_me: failed program was:" >&5
10851 sed 's/^/| /' conftest.$ac_ext >&5
10852
10853 eval "$as_ac_var=no"
10854 fi
10855 rm -f conftest.err conftest.$ac_objext \
10856       conftest$ac_exeext conftest.$ac_ext
10857 fi
10858 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10859 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10860 if test `eval echo '${'$as_ac_var'}'` = yes; then
10861   cat >>confdefs.h <<_ACEOF
10862 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10863 _ACEOF
10864
10865 fi
10866 done
10867
10868 LIBS="$ac_save_LIBS"
10869
10870
10871
10872
10873 for ac_header in sys/soundcard.h machine/soundcard.h soundcard.h
10874 do
10875 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10876 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10877   echo "$as_me:$LINENO: checking for $ac_header" >&5
10878 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10879 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10880   echo $ECHO_N "(cached) $ECHO_C" >&6
10881 fi
10882 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10883 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10884 else
10885   # Is the header compilable?
10886 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10887 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10888 cat >conftest.$ac_ext <<_ACEOF
10889 /* confdefs.h.  */
10890 _ACEOF
10891 cat confdefs.h >>conftest.$ac_ext
10892 cat >>conftest.$ac_ext <<_ACEOF
10893 /* end confdefs.h.  */
10894 $ac_includes_default
10895 #include <$ac_header>
10896 _ACEOF
10897 rm -f conftest.$ac_objext
10898 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10899   (eval $ac_compile) 2>conftest.er1
10900   ac_status=$?
10901   grep -v '^ *+' conftest.er1 >conftest.err
10902   rm -f conftest.er1
10903   cat conftest.err >&5
10904   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10905   (exit $ac_status); } &&
10906          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
10907   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10908   (eval $ac_try) 2>&5
10909   ac_status=$?
10910   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10911   (exit $ac_status); }; } &&
10912          { ac_try='test -s conftest.$ac_objext'
10913   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10914   (eval $ac_try) 2>&5
10915   ac_status=$?
10916   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10917   (exit $ac_status); }; }; then
10918   ac_header_compiler=yes
10919 else
10920   echo "$as_me: failed program was:" >&5
10921 sed 's/^/| /' conftest.$ac_ext >&5
10922
10923 ac_header_compiler=no
10924 fi
10925 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10926 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10927 echo "${ECHO_T}$ac_header_compiler" >&6
10928
10929 # Is the header present?
10930 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10931 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10932 cat >conftest.$ac_ext <<_ACEOF
10933 /* confdefs.h.  */
10934 _ACEOF
10935 cat confdefs.h >>conftest.$ac_ext
10936 cat >>conftest.$ac_ext <<_ACEOF
10937 /* end confdefs.h.  */
10938 #include <$ac_header>
10939 _ACEOF
10940 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10941   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10942   ac_status=$?
10943   grep -v '^ *+' conftest.er1 >conftest.err
10944   rm -f conftest.er1
10945   cat conftest.err >&5
10946   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10947   (exit $ac_status); } >/dev/null; then
10948   if test -s conftest.err; then
10949     ac_cpp_err=$ac_c_preproc_warn_flag
10950     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10951   else
10952     ac_cpp_err=
10953   fi
10954 else
10955   ac_cpp_err=yes
10956 fi
10957 if test -z "$ac_cpp_err"; then
10958   ac_header_preproc=yes
10959 else
10960   echo "$as_me: failed program was:" >&5
10961 sed 's/^/| /' conftest.$ac_ext >&5
10962
10963   ac_header_preproc=no
10964 fi
10965 rm -f conftest.err conftest.$ac_ext
10966 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10967 echo "${ECHO_T}$ac_header_preproc" >&6
10968
10969 # So?  What about this header?
10970 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10971   yes:no: )
10972     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10973 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10974     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10975 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10976     ac_header_preproc=yes
10977     ;;
10978   no:yes:* )
10979     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10980 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10981     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10982 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10983     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10984 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10985     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10986 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10987     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10988 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10989     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10990 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10991     (
10992       cat <<\_ASBOX
10993 ## ------------------------------------ ##
10994 ## Report this to wine-devel@winehq.org ##
10995 ## ------------------------------------ ##
10996 _ASBOX
10997     ) |
10998       sed "s/^/$as_me: WARNING:     /" >&2
10999     ;;
11000 esac
11001 echo "$as_me:$LINENO: checking for $ac_header" >&5
11002 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11003 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11004   echo $ECHO_N "(cached) $ECHO_C" >&6
11005 else
11006   eval "$as_ac_Header=\$ac_header_preproc"
11007 fi
11008 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11009 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11010
11011 fi
11012 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11013   cat >>confdefs.h <<_ACEOF
11014 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11015 _ACEOF
11016  break
11017 fi
11018
11019 done
11020
11021
11022 echo "$as_me:$LINENO: checking for Open Sound System" >&5
11023 echo $ECHO_N "checking for Open Sound System... $ECHO_C" >&6
11024 if test "${ac_cv_c_opensoundsystem+set}" = set; then
11025   echo $ECHO_N "(cached) $ECHO_C" >&6
11026 else
11027   cat >conftest.$ac_ext <<_ACEOF
11028 /* confdefs.h.  */
11029 _ACEOF
11030 cat confdefs.h >>conftest.$ac_ext
11031 cat >>conftest.$ac_ext <<_ACEOF
11032 /* end confdefs.h.  */
11033
11034         #if defined(HAVE_SYS_SOUNDCARD_H)
11035                 #include <sys/soundcard.h>
11036         #elif defined(HAVE_MACHINE_SOUNDCARD_H)
11037                 #include <machine/soundcard.h>
11038         #elif defined(HAVE_SOUNDCARD_H)
11039                 #include <soundcard.h>
11040         #endif
11041
11042 int
11043 main ()
11044 {
11045
11046
11047 /* check for one of the Open Sound System specific SNDCTL_ defines */
11048 #if !defined(SNDCTL_DSP_STEREO)
11049 #error No open sound system
11050 #endif
11051
11052   ;
11053   return 0;
11054 }
11055 _ACEOF
11056 rm -f conftest.$ac_objext
11057 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11058   (eval $ac_compile) 2>conftest.er1
11059   ac_status=$?
11060   grep -v '^ *+' conftest.er1 >conftest.err
11061   rm -f conftest.er1
11062   cat conftest.err >&5
11063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11064   (exit $ac_status); } &&
11065          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
11066   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11067   (eval $ac_try) 2>&5
11068   ac_status=$?
11069   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11070   (exit $ac_status); }; } &&
11071          { ac_try='test -s conftest.$ac_objext'
11072   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11073   (eval $ac_try) 2>&5
11074   ac_status=$?
11075   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11076   (exit $ac_status); }; }; then
11077   ac_cv_c_opensoundsystem="yes"
11078 else
11079   echo "$as_me: failed program was:" >&5
11080 sed 's/^/| /' conftest.$ac_ext >&5
11081
11082 ac_cv_c_opensoundsystem="no"
11083 fi
11084 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11085 fi
11086 echo "$as_me:$LINENO: result: $ac_cv_c_opensoundsystem" >&5
11087 echo "${ECHO_T}$ac_cv_c_opensoundsystem" >&6
11088
11089 if test "$ac_cv_c_opensoundsystem" = "yes"
11090 then
11091
11092 cat >>confdefs.h <<\_ACEOF
11093 #define HAVE_OSS 1
11094 _ACEOF
11095
11096 fi
11097
11098 echo "$as_me:$LINENO: checking for Open Sound System/MIDI interface" >&5
11099 echo $ECHO_N "checking for Open Sound System/MIDI interface... $ECHO_C" >&6
11100 if test "${ac_cv_c_opensoundsystem_midi+set}" = set; then
11101   echo $ECHO_N "(cached) $ECHO_C" >&6
11102 else
11103   cat >conftest.$ac_ext <<_ACEOF
11104 /* confdefs.h.  */
11105 _ACEOF
11106 cat confdefs.h >>conftest.$ac_ext
11107 cat >>conftest.$ac_ext <<_ACEOF
11108 /* end confdefs.h.  */
11109
11110         #if defined(HAVE_SYS_SOUNDCARD_H)
11111                 #include <sys/soundcard.h>
11112         #elif defined(HAVE_MACHINE_SOUNDCARD_H)
11113                 #include <machine/soundcard.h>
11114         #elif defined(HAVE_SOUNDCARD_H)
11115                 #include <soundcard.h>
11116         #endif
11117
11118 int
11119 main ()
11120 {
11121
11122
11123 /* check for one of the Open Sound System specific SNDCTL_SEQ defines */
11124 #if !defined(SNDCTL_SEQ_SYNC)
11125 #error No open sound system MIDI interface
11126 #endif
11127
11128   ;
11129   return 0;
11130 }
11131 _ACEOF
11132 rm -f conftest.$ac_objext
11133 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11134   (eval $ac_compile) 2>conftest.er1
11135   ac_status=$?
11136   grep -v '^ *+' conftest.er1 >conftest.err
11137   rm -f conftest.er1
11138   cat conftest.err >&5
11139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11140   (exit $ac_status); } &&
11141          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
11142   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11143   (eval $ac_try) 2>&5
11144   ac_status=$?
11145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11146   (exit $ac_status); }; } &&
11147          { ac_try='test -s conftest.$ac_objext'
11148   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11149   (eval $ac_try) 2>&5
11150   ac_status=$?
11151   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11152   (exit $ac_status); }; }; then
11153   ac_cv_c_opensoundsystem_midi="yes"
11154 else
11155   echo "$as_me: failed program was:" >&5
11156 sed 's/^/| /' conftest.$ac_ext >&5
11157
11158 ac_cv_c_opensoundsystem_midi="no"
11159 fi
11160 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11161 fi
11162 echo "$as_me:$LINENO: result: $ac_cv_c_opensoundsystem_midi" >&5
11163 echo "${ECHO_T}$ac_cv_c_opensoundsystem_midi" >&6
11164
11165 if test "$ac_cv_c_opensoundsystem_midi" = "yes"
11166 then
11167
11168 cat >>confdefs.h <<\_ACEOF
11169 #define HAVE_OSS_MIDI 1
11170 _ACEOF
11171
11172 fi
11173
11174 # Extract the first word of "artsc-config", so it can be a program name with args.
11175 set dummy artsc-config; ac_word=$2
11176 echo "$as_me:$LINENO: checking for $ac_word" >&5
11177 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11178 if test "${ac_cv_path_ARTSCCONFIG+set}" = set; then
11179   echo $ECHO_N "(cached) $ECHO_C" >&6
11180 else
11181   case $ARTSCCONFIG in
11182   [\\/]* | ?:[\\/]*)
11183   ac_cv_path_ARTSCCONFIG="$ARTSCCONFIG" # Let the user override the test with a path.
11184   ;;
11185   *)
11186   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11187 for as_dir in $PATH
11188 do
11189   IFS=$as_save_IFS
11190   test -z "$as_dir" && as_dir=.
11191   for ac_exec_ext in '' $ac_executable_extensions; do
11192   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11193     ac_cv_path_ARTSCCONFIG="$as_dir/$ac_word$ac_exec_ext"
11194     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11195     break 2
11196   fi
11197 done
11198 done
11199
11200   ;;
11201 esac
11202 fi
11203 ARTSCCONFIG=$ac_cv_path_ARTSCCONFIG
11204
11205 if test -n "$ARTSCCONFIG"; then
11206   echo "$as_me:$LINENO: result: $ARTSCCONFIG" >&5
11207 echo "${ECHO_T}$ARTSCCONFIG" >&6
11208 else
11209   echo "$as_me:$LINENO: result: no" >&5
11210 echo "${ECHO_T}no" >&6
11211 fi
11212
11213 echo "$as_me:$LINENO: checking for aRts Sound server" >&5
11214 echo $ECHO_N "checking for aRts Sound server... $ECHO_C" >&6
11215 if test "${ac_cv_c_artsserver+set}" = set; then
11216   echo $ECHO_N "(cached) $ECHO_C" >&6
11217 else
11218   if test x$ARTSCCONFIG = x -o x$ARTSCCONFIG = x'"$ARTSCCONFIG"';
11219         then
11220             ac_cv_c_artsserver=no
11221         else
11222             ARTSC_CFLAGS=`$ARTSCCONFIG --cflags`
11223             ARTSC_LIBS=`$ARTSCCONFIG --libs`
11224             ac_cv_c_artsserver=no
11225             save_CFLAGS="$CFLAGS"
11226             CFLAGS="$CFLAGS $ARTSC_CFLAGS"
11227             cat >conftest.$ac_ext <<_ACEOF
11228 /* confdefs.h.  */
11229 _ACEOF
11230 cat confdefs.h >>conftest.$ac_ext
11231 cat >>conftest.$ac_ext <<_ACEOF
11232 /* end confdefs.h.  */
11233
11234              #include <artsc.h>
11235
11236 int
11237 main ()
11238 {
11239
11240              arts_stream_t stream;
11241
11242   ;
11243   return 0;
11244 }
11245 _ACEOF
11246 rm -f conftest.$ac_objext
11247 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11248   (eval $ac_compile) 2>conftest.er1
11249   ac_status=$?
11250   grep -v '^ *+' conftest.er1 >conftest.err
11251   rm -f conftest.er1
11252   cat conftest.err >&5
11253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11254   (exit $ac_status); } &&
11255          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
11256   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11257   (eval $ac_try) 2>&5
11258   ac_status=$?
11259   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11260   (exit $ac_status); }; } &&
11261          { ac_try='test -s conftest.$ac_objext'
11262   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11263   (eval $ac_try) 2>&5
11264   ac_status=$?
11265   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11266   (exit $ac_status); }; }; then
11267
11268             ac_cv_c_artsserver=yes
11269
11270 else
11271   echo "$as_me: failed program was:" >&5
11272 sed 's/^/| /' conftest.$ac_ext >&5
11273
11274 fi
11275 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11276             CFLAGS="$save_CFLAGS"
11277         fi
11278 fi
11279 echo "$as_me:$LINENO: result: $ac_cv_c_artsserver" >&5
11280 echo "${ECHO_T}$ac_cv_c_artsserver" >&6
11281
11282 if test "$ac_cv_c_artsserver" = "yes"
11283 then
11284     ARTSLIBS=$ARTSC_LIBS
11285
11286     ARTSINCL=$ARTSC_CFLAGS
11287
11288
11289
11290 cat >>confdefs.h <<\_ACEOF
11291 #define HAVE_ARTS 1
11292 _ACEOF
11293
11294 fi
11295
11296 ALSALIBS=""
11297
11298
11299
11300 for ac_header in alsa/asoundlib.h sys/asoundlib.h
11301 do
11302 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11303 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11304   echo "$as_me:$LINENO: checking for $ac_header" >&5
11305 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11306 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11307   echo $ECHO_N "(cached) $ECHO_C" >&6
11308 fi
11309 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11310 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11311 else
11312   # Is the header compilable?
11313 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11314 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11315 cat >conftest.$ac_ext <<_ACEOF
11316 /* confdefs.h.  */
11317 _ACEOF
11318 cat confdefs.h >>conftest.$ac_ext
11319 cat >>conftest.$ac_ext <<_ACEOF
11320 /* end confdefs.h.  */
11321 $ac_includes_default
11322 #include <$ac_header>
11323 _ACEOF
11324 rm -f conftest.$ac_objext
11325 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11326   (eval $ac_compile) 2>conftest.er1
11327   ac_status=$?
11328   grep -v '^ *+' conftest.er1 >conftest.err
11329   rm -f conftest.er1
11330   cat conftest.err >&5
11331   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11332   (exit $ac_status); } &&
11333          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
11334   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11335   (eval $ac_try) 2>&5
11336   ac_status=$?
11337   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11338   (exit $ac_status); }; } &&
11339          { ac_try='test -s conftest.$ac_objext'
11340   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11341   (eval $ac_try) 2>&5
11342   ac_status=$?
11343   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11344   (exit $ac_status); }; }; then
11345   ac_header_compiler=yes
11346 else
11347   echo "$as_me: failed program was:" >&5
11348 sed 's/^/| /' conftest.$ac_ext >&5
11349
11350 ac_header_compiler=no
11351 fi
11352 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11353 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11354 echo "${ECHO_T}$ac_header_compiler" >&6
11355
11356 # Is the header present?
11357 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11358 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11359 cat >conftest.$ac_ext <<_ACEOF
11360 /* confdefs.h.  */
11361 _ACEOF
11362 cat confdefs.h >>conftest.$ac_ext
11363 cat >>conftest.$ac_ext <<_ACEOF
11364 /* end confdefs.h.  */
11365 #include <$ac_header>
11366 _ACEOF
11367 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11368   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11369   ac_status=$?
11370   grep -v '^ *+' conftest.er1 >conftest.err
11371   rm -f conftest.er1
11372   cat conftest.err >&5
11373   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11374   (exit $ac_status); } >/dev/null; then
11375   if test -s conftest.err; then
11376     ac_cpp_err=$ac_c_preproc_warn_flag
11377     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11378   else
11379     ac_cpp_err=
11380   fi
11381 else
11382   ac_cpp_err=yes
11383 fi
11384 if test -z "$ac_cpp_err"; then
11385   ac_header_preproc=yes
11386 else
11387   echo "$as_me: failed program was:" >&5
11388 sed 's/^/| /' conftest.$ac_ext >&5
11389
11390   ac_header_preproc=no
11391 fi
11392 rm -f conftest.err conftest.$ac_ext
11393 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11394 echo "${ECHO_T}$ac_header_preproc" >&6
11395
11396 # So?  What about this header?
11397 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11398   yes:no: )
11399     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11400 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11401     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11402 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11403     ac_header_preproc=yes
11404     ;;
11405   no:yes:* )
11406     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11407 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11408     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11409 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11410     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11411 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11412     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11413 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11414     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11415 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11416     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11417 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11418     (
11419       cat <<\_ASBOX
11420 ## ------------------------------------ ##
11421 ## Report this to wine-devel@winehq.org ##
11422 ## ------------------------------------ ##
11423 _ASBOX
11424     ) |
11425       sed "s/^/$as_me: WARNING:     /" >&2
11426     ;;
11427 esac
11428 echo "$as_me:$LINENO: checking for $ac_header" >&5
11429 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11430 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11431   echo $ECHO_N "(cached) $ECHO_C" >&6
11432 else
11433   eval "$as_ac_Header=\$ac_header_preproc"
11434 fi
11435 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11436 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11437
11438 fi
11439 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11440   cat >>confdefs.h <<_ACEOF
11441 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11442 _ACEOF
11443  break
11444 fi
11445
11446 done
11447
11448 if test "$ac_cv_header_sys_asoundlib_h" = "yes" -o "$ac_cv_header_alsa_asoundlib_h" = "yes"
11449 then
11450     echo "$as_me:$LINENO: checking for snd_pcm_open in -lasound" >&5
11451 echo $ECHO_N "checking for snd_pcm_open in -lasound... $ECHO_C" >&6
11452 if test "${ac_cv_lib_asound_snd_pcm_open+set}" = set; then
11453   echo $ECHO_N "(cached) $ECHO_C" >&6
11454 else
11455   ac_check_lib_save_LIBS=$LIBS
11456 LIBS="-lasound  $LIBS"
11457 cat >conftest.$ac_ext <<_ACEOF
11458 /* confdefs.h.  */
11459 _ACEOF
11460 cat confdefs.h >>conftest.$ac_ext
11461 cat >>conftest.$ac_ext <<_ACEOF
11462 /* end confdefs.h.  */
11463
11464 /* Override any gcc2 internal prototype to avoid an error.  */
11465 #ifdef __cplusplus
11466 extern "C"
11467 #endif
11468 /* We use char because int might match the return type of a gcc2
11469    builtin and then its argument prototype would still apply.  */
11470 char snd_pcm_open ();
11471 int
11472 main ()
11473 {
11474 snd_pcm_open ();
11475   ;
11476   return 0;
11477 }
11478 _ACEOF
11479 rm -f conftest.$ac_objext conftest$ac_exeext
11480 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11481   (eval $ac_link) 2>conftest.er1
11482   ac_status=$?
11483   grep -v '^ *+' conftest.er1 >conftest.err
11484   rm -f conftest.er1
11485   cat conftest.err >&5
11486   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11487   (exit $ac_status); } &&
11488          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
11489   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11490   (eval $ac_try) 2>&5
11491   ac_status=$?
11492   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11493   (exit $ac_status); }; } &&
11494          { ac_try='test -s conftest$ac_exeext'
11495   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11496   (eval $ac_try) 2>&5
11497   ac_status=$?
11498   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11499   (exit $ac_status); }; }; then
11500   ac_cv_lib_asound_snd_pcm_open=yes
11501 else
11502   echo "$as_me: failed program was:" >&5
11503 sed 's/^/| /' conftest.$ac_ext >&5
11504
11505 ac_cv_lib_asound_snd_pcm_open=no
11506 fi
11507 rm -f conftest.err conftest.$ac_objext \
11508       conftest$ac_exeext conftest.$ac_ext
11509 LIBS=$ac_check_lib_save_LIBS
11510 fi
11511 echo "$as_me:$LINENO: result: $ac_cv_lib_asound_snd_pcm_open" >&5
11512 echo "${ECHO_T}$ac_cv_lib_asound_snd_pcm_open" >&6
11513 if test $ac_cv_lib_asound_snd_pcm_open = yes; then
11514
11515 cat >>confdefs.h <<\_ACEOF
11516 #define HAVE_ALSA 1
11517 _ACEOF
11518
11519         ALSALIBS="-lasound"
11520 fi
11521
11522 fi
11523
11524
11525 AUDIOIOLIBS=""
11526
11527
11528 for ac_header in libaudioio.h
11529 do
11530 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11531 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11532   echo "$as_me:$LINENO: checking for $ac_header" >&5
11533 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11534 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11535   echo $ECHO_N "(cached) $ECHO_C" >&6
11536 fi
11537 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11538 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11539 else
11540   # Is the header compilable?
11541 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11542 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11543 cat >conftest.$ac_ext <<_ACEOF
11544 /* confdefs.h.  */
11545 _ACEOF
11546 cat confdefs.h >>conftest.$ac_ext
11547 cat >>conftest.$ac_ext <<_ACEOF
11548 /* end confdefs.h.  */
11549 $ac_includes_default
11550 #include <$ac_header>
11551 _ACEOF
11552 rm -f conftest.$ac_objext
11553 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11554   (eval $ac_compile) 2>conftest.er1
11555   ac_status=$?
11556   grep -v '^ *+' conftest.er1 >conftest.err
11557   rm -f conftest.er1
11558   cat conftest.err >&5
11559   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11560   (exit $ac_status); } &&
11561          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
11562   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11563   (eval $ac_try) 2>&5
11564   ac_status=$?
11565   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11566   (exit $ac_status); }; } &&
11567          { ac_try='test -s conftest.$ac_objext'
11568   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11569   (eval $ac_try) 2>&5
11570   ac_status=$?
11571   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11572   (exit $ac_status); }; }; then
11573   ac_header_compiler=yes
11574 else
11575   echo "$as_me: failed program was:" >&5
11576 sed 's/^/| /' conftest.$ac_ext >&5
11577
11578 ac_header_compiler=no
11579 fi
11580 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11581 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11582 echo "${ECHO_T}$ac_header_compiler" >&6
11583
11584 # Is the header present?
11585 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11586 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11587 cat >conftest.$ac_ext <<_ACEOF
11588 /* confdefs.h.  */
11589 _ACEOF
11590 cat confdefs.h >>conftest.$ac_ext
11591 cat >>conftest.$ac_ext <<_ACEOF
11592 /* end confdefs.h.  */
11593 #include <$ac_header>
11594 _ACEOF
11595 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11596   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11597   ac_status=$?
11598   grep -v '^ *+' conftest.er1 >conftest.err
11599   rm -f conftest.er1
11600   cat conftest.err >&5
11601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11602   (exit $ac_status); } >/dev/null; then
11603   if test -s conftest.err; then
11604     ac_cpp_err=$ac_c_preproc_warn_flag
11605     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11606   else
11607     ac_cpp_err=
11608   fi
11609 else
11610   ac_cpp_err=yes
11611 fi
11612 if test -z "$ac_cpp_err"; then
11613   ac_header_preproc=yes
11614 else
11615   echo "$as_me: failed program was:" >&5
11616 sed 's/^/| /' conftest.$ac_ext >&5
11617
11618   ac_header_preproc=no
11619 fi
11620 rm -f conftest.err conftest.$ac_ext
11621 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11622 echo "${ECHO_T}$ac_header_preproc" >&6
11623
11624 # So?  What about this header?
11625 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11626   yes:no: )
11627     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11628 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11629     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11630 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11631     ac_header_preproc=yes
11632     ;;
11633   no:yes:* )
11634     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11635 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11636     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11637 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11638     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11639 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11640     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11641 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11642     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11643 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11644     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11645 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11646     (
11647       cat <<\_ASBOX
11648 ## ------------------------------------ ##
11649 ## Report this to wine-devel@winehq.org ##
11650 ## ------------------------------------ ##
11651 _ASBOX
11652     ) |
11653       sed "s/^/$as_me: WARNING:     /" >&2
11654     ;;
11655 esac
11656 echo "$as_me:$LINENO: checking for $ac_header" >&5
11657 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11658 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11659   echo $ECHO_N "(cached) $ECHO_C" >&6
11660 else
11661   eval "$as_ac_Header=\$ac_header_preproc"
11662 fi
11663 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11664 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11665
11666 fi
11667 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11668   cat >>confdefs.h <<_ACEOF
11669 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11670 _ACEOF
11671  echo "$as_me:$LINENO: checking for AudioIOGetVersion in -laudioio" >&5
11672 echo $ECHO_N "checking for AudioIOGetVersion in -laudioio... $ECHO_C" >&6
11673 if test "${ac_cv_lib_audioio_AudioIOGetVersion+set}" = set; then
11674   echo $ECHO_N "(cached) $ECHO_C" >&6
11675 else
11676   ac_check_lib_save_LIBS=$LIBS
11677 LIBS="-laudioio  $LIBS"
11678 cat >conftest.$ac_ext <<_ACEOF
11679 /* confdefs.h.  */
11680 _ACEOF
11681 cat confdefs.h >>conftest.$ac_ext
11682 cat >>conftest.$ac_ext <<_ACEOF
11683 /* end confdefs.h.  */
11684
11685 /* Override any gcc2 internal prototype to avoid an error.  */
11686 #ifdef __cplusplus
11687 extern "C"
11688 #endif
11689 /* We use char because int might match the return type of a gcc2
11690    builtin and then its argument prototype would still apply.  */
11691 char AudioIOGetVersion ();
11692 int
11693 main ()
11694 {
11695 AudioIOGetVersion ();
11696   ;
11697   return 0;
11698 }
11699 _ACEOF
11700 rm -f conftest.$ac_objext conftest$ac_exeext
11701 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11702   (eval $ac_link) 2>conftest.er1
11703   ac_status=$?
11704   grep -v '^ *+' conftest.er1 >conftest.err
11705   rm -f conftest.er1
11706   cat conftest.err >&5
11707   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11708   (exit $ac_status); } &&
11709          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
11710   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11711   (eval $ac_try) 2>&5
11712   ac_status=$?
11713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11714   (exit $ac_status); }; } &&
11715          { ac_try='test -s conftest$ac_exeext'
11716   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11717   (eval $ac_try) 2>&5
11718   ac_status=$?
11719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11720   (exit $ac_status); }; }; then
11721   ac_cv_lib_audioio_AudioIOGetVersion=yes
11722 else
11723   echo "$as_me: failed program was:" >&5
11724 sed 's/^/| /' conftest.$ac_ext >&5
11725
11726 ac_cv_lib_audioio_AudioIOGetVersion=no
11727 fi
11728 rm -f conftest.err conftest.$ac_objext \
11729       conftest$ac_exeext conftest.$ac_ext
11730 LIBS=$ac_check_lib_save_LIBS
11731 fi
11732 echo "$as_me:$LINENO: result: $ac_cv_lib_audioio_AudioIOGetVersion" >&5
11733 echo "${ECHO_T}$ac_cv_lib_audioio_AudioIOGetVersion" >&6
11734 if test $ac_cv_lib_audioio_AudioIOGetVersion = yes; then
11735   AUDIOIOLIBS="-laudioio"
11736
11737 cat >>confdefs.h <<\_ACEOF
11738 #define HAVE_LIBAUDIOIO 1
11739 _ACEOF
11740
11741 fi
11742
11743 fi
11744
11745 done
11746
11747
11748
11749
11750 for ac_header in capi20.h
11751 do
11752 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11753 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11754   echo "$as_me:$LINENO: checking for $ac_header" >&5
11755 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11756 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11757   echo $ECHO_N "(cached) $ECHO_C" >&6
11758 fi
11759 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11760 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11761 else
11762   # Is the header compilable?
11763 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11764 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11765 cat >conftest.$ac_ext <<_ACEOF
11766 /* confdefs.h.  */
11767 _ACEOF
11768 cat confdefs.h >>conftest.$ac_ext
11769 cat >>conftest.$ac_ext <<_ACEOF
11770 /* end confdefs.h.  */
11771 $ac_includes_default
11772 #include <$ac_header>
11773 _ACEOF
11774 rm -f conftest.$ac_objext
11775 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11776   (eval $ac_compile) 2>conftest.er1
11777   ac_status=$?
11778   grep -v '^ *+' conftest.er1 >conftest.err
11779   rm -f conftest.er1
11780   cat conftest.err >&5
11781   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11782   (exit $ac_status); } &&
11783          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
11784   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11785   (eval $ac_try) 2>&5
11786   ac_status=$?
11787   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11788   (exit $ac_status); }; } &&
11789          { ac_try='test -s conftest.$ac_objext'
11790   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11791   (eval $ac_try) 2>&5
11792   ac_status=$?
11793   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11794   (exit $ac_status); }; }; then
11795   ac_header_compiler=yes
11796 else
11797   echo "$as_me: failed program was:" >&5
11798 sed 's/^/| /' conftest.$ac_ext >&5
11799
11800 ac_header_compiler=no
11801 fi
11802 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11803 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11804 echo "${ECHO_T}$ac_header_compiler" >&6
11805
11806 # Is the header present?
11807 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11808 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11809 cat >conftest.$ac_ext <<_ACEOF
11810 /* confdefs.h.  */
11811 _ACEOF
11812 cat confdefs.h >>conftest.$ac_ext
11813 cat >>conftest.$ac_ext <<_ACEOF
11814 /* end confdefs.h.  */
11815 #include <$ac_header>
11816 _ACEOF
11817 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11818   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11819   ac_status=$?
11820   grep -v '^ *+' conftest.er1 >conftest.err
11821   rm -f conftest.er1
11822   cat conftest.err >&5
11823   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11824   (exit $ac_status); } >/dev/null; then
11825   if test -s conftest.err; then
11826     ac_cpp_err=$ac_c_preproc_warn_flag
11827     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11828   else
11829     ac_cpp_err=
11830   fi
11831 else
11832   ac_cpp_err=yes
11833 fi
11834 if test -z "$ac_cpp_err"; then
11835   ac_header_preproc=yes
11836 else
11837   echo "$as_me: failed program was:" >&5
11838 sed 's/^/| /' conftest.$ac_ext >&5
11839
11840   ac_header_preproc=no
11841 fi
11842 rm -f conftest.err conftest.$ac_ext
11843 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11844 echo "${ECHO_T}$ac_header_preproc" >&6
11845
11846 # So?  What about this header?
11847 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11848   yes:no: )
11849     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11850 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11851     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11852 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11853     ac_header_preproc=yes
11854     ;;
11855   no:yes:* )
11856     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11857 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11858     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11859 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11860     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11861 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11862     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11863 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11864     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11865 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11866     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11867 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11868     (
11869       cat <<\_ASBOX
11870 ## ------------------------------------ ##
11871 ## Report this to wine-devel@winehq.org ##
11872 ## ------------------------------------ ##
11873 _ASBOX
11874     ) |
11875       sed "s/^/$as_me: WARNING:     /" >&2
11876     ;;
11877 esac
11878 echo "$as_me:$LINENO: checking for $ac_header" >&5
11879 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11880 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11881   echo $ECHO_N "(cached) $ECHO_C" >&6
11882 else
11883   eval "$as_ac_Header=\$ac_header_preproc"
11884 fi
11885 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11886 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11887
11888 fi
11889 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11890   cat >>confdefs.h <<_ACEOF
11891 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11892 _ACEOF
11893
11894
11895 for ac_header in linux/capi.h
11896 do
11897 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11898 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11899   echo "$as_me:$LINENO: checking for $ac_header" >&5
11900 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11901 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11902   echo $ECHO_N "(cached) $ECHO_C" >&6
11903 fi
11904 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11905 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11906 else
11907   # Is the header compilable?
11908 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11909 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11910 cat >conftest.$ac_ext <<_ACEOF
11911 /* confdefs.h.  */
11912 _ACEOF
11913 cat confdefs.h >>conftest.$ac_ext
11914 cat >>conftest.$ac_ext <<_ACEOF
11915 /* end confdefs.h.  */
11916 $ac_includes_default
11917 #include <$ac_header>
11918 _ACEOF
11919 rm -f conftest.$ac_objext
11920 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11921   (eval $ac_compile) 2>conftest.er1
11922   ac_status=$?
11923   grep -v '^ *+' conftest.er1 >conftest.err
11924   rm -f conftest.er1
11925   cat conftest.err >&5
11926   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11927   (exit $ac_status); } &&
11928          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
11929   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11930   (eval $ac_try) 2>&5
11931   ac_status=$?
11932   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11933   (exit $ac_status); }; } &&
11934          { ac_try='test -s conftest.$ac_objext'
11935   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11936   (eval $ac_try) 2>&5
11937   ac_status=$?
11938   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11939   (exit $ac_status); }; }; then
11940   ac_header_compiler=yes
11941 else
11942   echo "$as_me: failed program was:" >&5
11943 sed 's/^/| /' conftest.$ac_ext >&5
11944
11945 ac_header_compiler=no
11946 fi
11947 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11948 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11949 echo "${ECHO_T}$ac_header_compiler" >&6
11950
11951 # Is the header present?
11952 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11953 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11954 cat >conftest.$ac_ext <<_ACEOF
11955 /* confdefs.h.  */
11956 _ACEOF
11957 cat confdefs.h >>conftest.$ac_ext
11958 cat >>conftest.$ac_ext <<_ACEOF
11959 /* end confdefs.h.  */
11960 #include <$ac_header>
11961 _ACEOF
11962 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11963   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11964   ac_status=$?
11965   grep -v '^ *+' conftest.er1 >conftest.err
11966   rm -f conftest.er1
11967   cat conftest.err >&5
11968   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11969   (exit $ac_status); } >/dev/null; then
11970   if test -s conftest.err; then
11971     ac_cpp_err=$ac_c_preproc_warn_flag
11972     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11973   else
11974     ac_cpp_err=
11975   fi
11976 else
11977   ac_cpp_err=yes
11978 fi
11979 if test -z "$ac_cpp_err"; then
11980   ac_header_preproc=yes
11981 else
11982   echo "$as_me: failed program was:" >&5
11983 sed 's/^/| /' conftest.$ac_ext >&5
11984
11985   ac_header_preproc=no
11986 fi
11987 rm -f conftest.err conftest.$ac_ext
11988 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11989 echo "${ECHO_T}$ac_header_preproc" >&6
11990
11991 # So?  What about this header?
11992 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11993   yes:no: )
11994     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11995 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11996     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11997 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11998     ac_header_preproc=yes
11999     ;;
12000   no:yes:* )
12001     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12002 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12003     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
12004 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
12005     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12006 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12007     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
12008 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
12009     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12010 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12011     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12012 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12013     (
12014       cat <<\_ASBOX
12015 ## ------------------------------------ ##
12016 ## Report this to wine-devel@winehq.org ##
12017 ## ------------------------------------ ##
12018 _ASBOX
12019     ) |
12020       sed "s/^/$as_me: WARNING:     /" >&2
12021     ;;
12022 esac
12023 echo "$as_me:$LINENO: checking for $ac_header" >&5
12024 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12025 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12026   echo $ECHO_N "(cached) $ECHO_C" >&6
12027 else
12028   eval "$as_ac_Header=\$ac_header_preproc"
12029 fi
12030 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12031 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12032
12033 fi
12034 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12035   cat >>confdefs.h <<_ACEOF
12036 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12037 _ACEOF
12038
12039                 echo "$as_me:$LINENO: checking for capi20_register in -lcapi20" >&5
12040 echo $ECHO_N "checking for capi20_register in -lcapi20... $ECHO_C" >&6
12041 if test "${ac_cv_lib_capi20_capi20_register+set}" = set; then
12042   echo $ECHO_N "(cached) $ECHO_C" >&6
12043 else
12044   ac_check_lib_save_LIBS=$LIBS
12045 LIBS="-lcapi20  $LIBS"
12046 cat >conftest.$ac_ext <<_ACEOF
12047 /* confdefs.h.  */
12048 _ACEOF
12049 cat confdefs.h >>conftest.$ac_ext
12050 cat >>conftest.$ac_ext <<_ACEOF
12051 /* end confdefs.h.  */
12052
12053 /* Override any gcc2 internal prototype to avoid an error.  */
12054 #ifdef __cplusplus
12055 extern "C"
12056 #endif
12057 /* We use char because int might match the return type of a gcc2
12058    builtin and then its argument prototype would still apply.  */
12059 char capi20_register ();
12060 int
12061 main ()
12062 {
12063 capi20_register ();
12064   ;
12065   return 0;
12066 }
12067 _ACEOF
12068 rm -f conftest.$ac_objext conftest$ac_exeext
12069 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12070   (eval $ac_link) 2>conftest.er1
12071   ac_status=$?
12072   grep -v '^ *+' conftest.er1 >conftest.err
12073   rm -f conftest.er1
12074   cat conftest.err >&5
12075   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12076   (exit $ac_status); } &&
12077          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
12078   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12079   (eval $ac_try) 2>&5
12080   ac_status=$?
12081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12082   (exit $ac_status); }; } &&
12083          { ac_try='test -s conftest$ac_exeext'
12084   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12085   (eval $ac_try) 2>&5
12086   ac_status=$?
12087   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12088   (exit $ac_status); }; }; then
12089   ac_cv_lib_capi20_capi20_register=yes
12090 else
12091   echo "$as_me: failed program was:" >&5
12092 sed 's/^/| /' conftest.$ac_ext >&5
12093
12094 ac_cv_lib_capi20_capi20_register=no
12095 fi
12096 rm -f conftest.err conftest.$ac_objext \
12097       conftest$ac_exeext conftest.$ac_ext
12098 LIBS=$ac_check_lib_save_LIBS
12099 fi
12100 echo "$as_me:$LINENO: result: $ac_cv_lib_capi20_capi20_register" >&5
12101 echo "${ECHO_T}$ac_cv_lib_capi20_capi20_register" >&6
12102 if test $ac_cv_lib_capi20_capi20_register = yes; then
12103
12104
12105 cat >>confdefs.h <<\_ACEOF
12106 #define HAVE_CAPI4LINUX 1
12107 _ACEOF
12108
12109                         CAPI4LINUXLIBS="-lcapi20"
12110
12111
12112 fi
12113
12114
12115 fi
12116
12117 done
12118
12119
12120 fi
12121
12122 done
12123
12124
12125
12126 echo "$as_me:$LINENO: checking whether mmap64 works defined as mmap" >&5
12127 echo $ECHO_N "checking whether mmap64 works defined as mmap... $ECHO_C" >&6
12128 if test "${ac_cv_mmap64_works+set}" = set; then
12129   echo $ECHO_N "(cached) $ECHO_C" >&6
12130 else
12131   if test "$cross_compiling" = yes; then
12132   ac_cv_mmap64_works="no"
12133 else
12134   cat >conftest.$ac_ext <<_ACEOF
12135 /* confdefs.h.  */
12136 _ACEOF
12137 cat confdefs.h >>conftest.$ac_ext
12138 cat >>conftest.$ac_ext <<_ACEOF
12139 /* end confdefs.h.  */
12140
12141                 #define _FILE_OFFSET_BITS 64
12142                 #include <stdio.h>
12143                 #include <unistd.h>
12144                 #include <fcntl.h>
12145                 #include <sys/mman.h>
12146                 #include <errno.h>
12147
12148                 int main(int argc,char **argv) {
12149                         int fd = open("conftest.map",O_CREAT|O_RDWR,0600);
12150                         if (fd == -1) exit(1);
12151
12152                         unlink("conftest.map");
12153
12154                         write(fd,"test",4);
12155
12156                         if ((-1 == mmap(0,4,PROT_READ|PROT_WRITE,MAP_SHARED,fd,0)) &&
12157                             (errno == EINVAL)
12158                         ) {
12159                                 exit(1);
12160                         }
12161                         close(fd);
12162                         fprintf(stderr,"success!\n");
12163                         exit(0);
12164                 }
12165
12166
12167 _ACEOF
12168 rm -f conftest$ac_exeext
12169 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12170   (eval $ac_link) 2>&5
12171   ac_status=$?
12172   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12173   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12174   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12175   (eval $ac_try) 2>&5
12176   ac_status=$?
12177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12178   (exit $ac_status); }; }; then
12179   ac_cv_mmap64_works="yes"
12180 else
12181   echo "$as_me: program exited with status $ac_status" >&5
12182 echo "$as_me: failed program was:" >&5
12183 sed 's/^/| /' conftest.$ac_ext >&5
12184
12185 ( exit $ac_status )
12186 ac_cv_mmap64_works="no"
12187 fi
12188 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12189 fi
12190 fi
12191 echo "$as_me:$LINENO: result: $ac_cv_mmap64_works" >&5
12192 echo "${ECHO_T}$ac_cv_mmap64_works" >&6
12193
12194 if test "$ac_cv_mmap64_works" = "yes"
12195 then
12196
12197 cat >>confdefs.h <<\_ACEOF
12198 #define _FILE_OFFSET_BITS 64
12199 _ACEOF
12200
12201 fi
12202
12203
12204 EXTRACFLAGS=""
12205
12206 if test "x${GCC}" = "xyes"
12207 then
12208   EXTRACFLAGS="-Wall -pipe"
12209
12210     echo "$as_me:$LINENO: checking for gcc strength-reduce bug" >&5
12211 echo $ECHO_N "checking for gcc strength-reduce bug... $ECHO_C" >&6
12212 if test "${ac_cv_c_gcc_strength_bug+set}" = set; then
12213   echo $ECHO_N "(cached) $ECHO_C" >&6
12214 else
12215   if test "$cross_compiling" = yes; then
12216   ac_cv_c_gcc_strength_bug="yes"
12217 else
12218   cat >conftest.$ac_ext <<_ACEOF
12219 /* confdefs.h.  */
12220 _ACEOF
12221 cat confdefs.h >>conftest.$ac_ext
12222 cat >>conftest.$ac_ext <<_ACEOF
12223 /* end confdefs.h.  */
12224
12225 int     L[4] = {0,1,2,3};
12226 int main(void) {
12227   static int Array[3];
12228   unsigned int B = 3;
12229   int i;
12230   for(i=0; i<B; i++) Array[i] = i - 3;
12231   for(i=0; i<4 - 1; i++) L[i] = L[i + 1];
12232   L[i] = 4;
12233
12234   exit( Array[1] != -2 || L[2] != 3);
12235 }
12236 _ACEOF
12237 rm -f conftest$ac_exeext
12238 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12239   (eval $ac_link) 2>&5
12240   ac_status=$?
12241   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12242   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12243   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12244   (eval $ac_try) 2>&5
12245   ac_status=$?
12246   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12247   (exit $ac_status); }; }; then
12248   ac_cv_c_gcc_strength_bug="no"
12249 else
12250   echo "$as_me: program exited with status $ac_status" >&5
12251 echo "$as_me: failed program was:" >&5
12252 sed 's/^/| /' conftest.$ac_ext >&5
12253
12254 ( exit $ac_status )
12255 ac_cv_c_gcc_strength_bug="yes"
12256 fi
12257 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12258 fi
12259 fi
12260 echo "$as_me:$LINENO: result: $ac_cv_c_gcc_strength_bug" >&5
12261 echo "${ECHO_T}$ac_cv_c_gcc_strength_bug" >&6
12262   if test "$ac_cv_c_gcc_strength_bug" = "yes"
12263   then
12264     EXTRACFLAGS="$EXTRACFLAGS -fno-strength-reduce"
12265   fi
12266
12267     echo "$as_me:$LINENO: checking for gcc -mpreferred-stack-boundary=2 support" >&5
12268 echo $ECHO_N "checking for gcc -mpreferred-stack-boundary=2 support... $ECHO_C" >&6
12269 if test "${ac_cv_c_gcc_stack_boundary+set}" = set; then
12270   echo $ECHO_N "(cached) $ECHO_C" >&6
12271 else
12272   ac_wine_try_cflags_saved=$CFLAGS
12273 CFLAGS="$CFLAGS -mpreferred-stack-boundary=2"
12274 cat >conftest.$ac_ext <<_ACEOF
12275 /* confdefs.h.  */
12276 _ACEOF
12277 cat confdefs.h >>conftest.$ac_ext
12278 cat >>conftest.$ac_ext <<_ACEOF
12279 /* end confdefs.h.  */
12280
12281 int
12282 main ()
12283 {
12284
12285   ;
12286   return 0;
12287 }
12288 _ACEOF
12289 rm -f conftest.$ac_objext conftest$ac_exeext
12290 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12291   (eval $ac_link) 2>conftest.er1
12292   ac_status=$?
12293   grep -v '^ *+' conftest.er1 >conftest.err
12294   rm -f conftest.er1
12295   cat conftest.err >&5
12296   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12297   (exit $ac_status); } &&
12298          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
12299   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12300   (eval $ac_try) 2>&5
12301   ac_status=$?
12302   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12303   (exit $ac_status); }; } &&
12304          { ac_try='test -s conftest$ac_exeext'
12305   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12306   (eval $ac_try) 2>&5
12307   ac_status=$?
12308   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12309   (exit $ac_status); }; }; then
12310   ac_cv_c_gcc_stack_boundary="yes"
12311 else
12312   echo "$as_me: failed program was:" >&5
12313 sed 's/^/| /' conftest.$ac_ext >&5
12314
12315 ac_cv_c_gcc_stack_boundary="no"
12316 fi
12317 rm -f conftest.err conftest.$ac_objext \
12318       conftest$ac_exeext conftest.$ac_ext
12319 CFLAGS=$ac_wine_try_cflags_saved
12320 fi
12321 echo "$as_me:$LINENO: result: $ac_cv_c_gcc_stack_boundary" >&5
12322 echo "${ECHO_T}$ac_cv_c_gcc_stack_boundary" >&6
12323   if test "$ac_cv_c_gcc_stack_boundary" = "yes"
12324   then
12325     EXTRACFLAGS="$EXTRACFLAGS -mpreferred-stack-boundary=2"
12326   fi
12327
12328     echo "$as_me:$LINENO: checking for gcc -fno-strict-aliasing support" >&5
12329 echo $ECHO_N "checking for gcc -fno-strict-aliasing support... $ECHO_C" >&6
12330 if test "${ac_cv_c_gcc_no_strict_aliasing+set}" = set; then
12331   echo $ECHO_N "(cached) $ECHO_C" >&6
12332 else
12333   ac_wine_try_cflags_saved=$CFLAGS
12334 CFLAGS="$CFLAGS -fno-strict-aliasing"
12335 cat >conftest.$ac_ext <<_ACEOF
12336 /* confdefs.h.  */
12337 _ACEOF
12338 cat confdefs.h >>conftest.$ac_ext
12339 cat >>conftest.$ac_ext <<_ACEOF
12340 /* end confdefs.h.  */
12341
12342 int
12343 main ()
12344 {
12345
12346   ;
12347   return 0;
12348 }
12349 _ACEOF
12350 rm -f conftest.$ac_objext conftest$ac_exeext
12351 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12352   (eval $ac_link) 2>conftest.er1
12353   ac_status=$?
12354   grep -v '^ *+' conftest.er1 >conftest.err
12355   rm -f conftest.er1
12356   cat conftest.err >&5
12357   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12358   (exit $ac_status); } &&
12359          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
12360   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12361   (eval $ac_try) 2>&5
12362   ac_status=$?
12363   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12364   (exit $ac_status); }; } &&
12365          { ac_try='test -s conftest$ac_exeext'
12366   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12367   (eval $ac_try) 2>&5
12368   ac_status=$?
12369   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12370   (exit $ac_status); }; }; then
12371   ac_cv_c_gcc_no_strict_aliasing="yes"
12372 else
12373   echo "$as_me: failed program was:" >&5
12374 sed 's/^/| /' conftest.$ac_ext >&5
12375
12376 ac_cv_c_gcc_no_strict_aliasing="no"
12377 fi
12378 rm -f conftest.err conftest.$ac_objext \
12379       conftest$ac_exeext conftest.$ac_ext
12380 CFLAGS=$ac_wine_try_cflags_saved
12381 fi
12382 echo "$as_me:$LINENO: result: $ac_cv_c_gcc_no_strict_aliasing" >&5
12383 echo "${ECHO_T}$ac_cv_c_gcc_no_strict_aliasing" >&6
12384   if test "$ac_cv_c_gcc_no_strict_aliasing" = "yes"
12385   then
12386     EXTRACFLAGS="$EXTRACFLAGS -fno-strict-aliasing"
12387   fi
12388
12389     echo "$as_me:$LINENO: checking for gcc -gstabs+ support" >&5
12390 echo $ECHO_N "checking for gcc -gstabs+ support... $ECHO_C" >&6
12391 if test "${ac_cv_c_gcc_gstabs+set}" = set; then
12392   echo $ECHO_N "(cached) $ECHO_C" >&6
12393 else
12394   ac_wine_try_cflags_saved=$CFLAGS
12395 CFLAGS="$CFLAGS -gstabs+"
12396 cat >conftest.$ac_ext <<_ACEOF
12397 /* confdefs.h.  */
12398 _ACEOF
12399 cat confdefs.h >>conftest.$ac_ext
12400 cat >>conftest.$ac_ext <<_ACEOF
12401 /* end confdefs.h.  */
12402
12403 int
12404 main ()
12405 {
12406
12407   ;
12408   return 0;
12409 }
12410 _ACEOF
12411 rm -f conftest.$ac_objext conftest$ac_exeext
12412 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12413   (eval $ac_link) 2>conftest.er1
12414   ac_status=$?
12415   grep -v '^ *+' conftest.er1 >conftest.err
12416   rm -f conftest.er1
12417   cat conftest.err >&5
12418   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12419   (exit $ac_status); } &&
12420          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
12421   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12422   (eval $ac_try) 2>&5
12423   ac_status=$?
12424   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12425   (exit $ac_status); }; } &&
12426          { ac_try='test -s conftest$ac_exeext'
12427   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12428   (eval $ac_try) 2>&5
12429   ac_status=$?
12430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12431   (exit $ac_status); }; }; then
12432   ac_cv_c_gcc_gstabs="yes"
12433 else
12434   echo "$as_me: failed program was:" >&5
12435 sed 's/^/| /' conftest.$ac_ext >&5
12436
12437 ac_cv_c_gcc_gstabs="no"
12438 fi
12439 rm -f conftest.err conftest.$ac_objext \
12440       conftest$ac_exeext conftest.$ac_ext
12441 CFLAGS=$ac_wine_try_cflags_saved
12442 fi
12443 echo "$as_me:$LINENO: result: $ac_cv_c_gcc_gstabs" >&5
12444 echo "${ECHO_T}$ac_cv_c_gcc_gstabs" >&6
12445   if test "$ac_cv_c_gcc_gstabs" = "yes"
12446   then
12447     EXTRACFLAGS="$EXTRACFLAGS -gstabs+"
12448   fi
12449
12450     saved_CFLAGS="$CFLAGS"
12451   CFLAGS="$CFLAGS -Wpointer-arith -Werror"
12452   echo "$as_me:$LINENO: checking for broken string.h that generates warnings" >&5
12453 echo $ECHO_N "checking for broken string.h that generates warnings... $ECHO_C" >&6
12454 if test "${ac_cv_c_string_h_warnings+set}" = set; then
12455   echo $ECHO_N "(cached) $ECHO_C" >&6
12456 else
12457   cat >conftest.$ac_ext <<_ACEOF
12458 /* confdefs.h.  */
12459 _ACEOF
12460 cat confdefs.h >>conftest.$ac_ext
12461 cat >>conftest.$ac_ext <<_ACEOF
12462 /* end confdefs.h.  */
12463 #include <string.h>
12464 int
12465 main ()
12466 {
12467
12468   ;
12469   return 0;
12470 }
12471 _ACEOF
12472 rm -f conftest.$ac_objext
12473 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12474   (eval $ac_compile) 2>conftest.er1
12475   ac_status=$?
12476   grep -v '^ *+' conftest.er1 >conftest.err
12477   rm -f conftest.er1
12478   cat conftest.err >&5
12479   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12480   (exit $ac_status); } &&
12481          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
12482   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12483   (eval $ac_try) 2>&5
12484   ac_status=$?
12485   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12486   (exit $ac_status); }; } &&
12487          { ac_try='test -s conftest.$ac_objext'
12488   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12489   (eval $ac_try) 2>&5
12490   ac_status=$?
12491   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12492   (exit $ac_status); }; }; then
12493   ac_cv_c_string_h_warnings=no
12494 else
12495   echo "$as_me: failed program was:" >&5
12496 sed 's/^/| /' conftest.$ac_ext >&5
12497
12498 ac_cv_c_string_h_warnings=yes
12499 fi
12500 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12501 fi
12502 echo "$as_me:$LINENO: result: $ac_cv_c_string_h_warnings" >&5
12503 echo "${ECHO_T}$ac_cv_c_string_h_warnings" >&6
12504   CFLAGS="$saved_CFLAGS"
12505   if test "$ac_cv_c_string_h_warnings" = "no"
12506   then
12507     EXTRACFLAGS="$EXTRACFLAGS -Wpointer-arith"
12508   fi
12509 fi
12510
12511
12512 echo "$as_me:$LINENO: checking how to define a function in assembly code" >&5
12513 echo $ECHO_N "checking how to define a function in assembly code... $ECHO_C" >&6
12514 if test "${ac_cv_asm_func_def+set}" = set; then
12515   echo $ECHO_N "(cached) $ECHO_C" >&6
12516 else
12517   cat >conftest.$ac_ext <<_ACEOF
12518 /* confdefs.h.  */
12519 _ACEOF
12520 cat confdefs.h >>conftest.$ac_ext
12521 cat >>conftest.$ac_ext <<_ACEOF
12522 /* end confdefs.h.  */
12523 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"); }
12524
12525 int
12526 main ()
12527 {
12528
12529   ;
12530   return 0;
12531 }
12532 _ACEOF
12533 rm -f conftest.$ac_objext conftest$ac_exeext
12534 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12535   (eval $ac_link) 2>conftest.er1
12536   ac_status=$?
12537   grep -v '^ *+' conftest.er1 >conftest.err
12538   rm -f conftest.er1
12539   cat conftest.err >&5
12540   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12541   (exit $ac_status); } &&
12542          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
12543   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12544   (eval $ac_try) 2>&5
12545   ac_status=$?
12546   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12547   (exit $ac_status); }; } &&
12548          { ac_try='test -s conftest$ac_exeext'
12549   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12550   (eval $ac_try) 2>&5
12551   ac_status=$?
12552   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12553   (exit $ac_status); }; }; then
12554   ac_cv_asm_func_def=".def"
12555 else
12556   echo "$as_me: failed program was:" >&5
12557 sed 's/^/| /' conftest.$ac_ext >&5
12558
12559 cat >conftest.$ac_ext <<_ACEOF
12560 /* confdefs.h.  */
12561 _ACEOF
12562 cat confdefs.h >>conftest.$ac_ext
12563 cat >>conftest.$ac_ext <<_ACEOF
12564 /* end confdefs.h.  */
12565 void ac_asm(void) { asm("\t.globl _ac_test\n\t.type _ac_test,@function\n_ac_test:\t.long 0"); }
12566
12567 int
12568 main ()
12569 {
12570
12571   ;
12572   return 0;
12573 }
12574 _ACEOF
12575 rm -f conftest.$ac_objext conftest$ac_exeext
12576 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12577   (eval $ac_link) 2>conftest.er1
12578   ac_status=$?
12579   grep -v '^ *+' conftest.er1 >conftest.err
12580   rm -f conftest.er1
12581   cat conftest.err >&5
12582   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12583   (exit $ac_status); } &&
12584          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
12585   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12586   (eval $ac_try) 2>&5
12587   ac_status=$?
12588   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12589   (exit $ac_status); }; } &&
12590          { ac_try='test -s conftest$ac_exeext'
12591   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12592   (eval $ac_try) 2>&5
12593   ac_status=$?
12594   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12595   (exit $ac_status); }; }; then
12596   ac_cv_asm_func_def=".type @function"
12597 else
12598   echo "$as_me: failed program was:" >&5
12599 sed 's/^/| /' conftest.$ac_ext >&5
12600
12601 cat >conftest.$ac_ext <<_ACEOF
12602 /* confdefs.h.  */
12603 _ACEOF
12604 cat confdefs.h >>conftest.$ac_ext
12605 cat >>conftest.$ac_ext <<_ACEOF
12606 /* end confdefs.h.  */
12607 void ac_asm(void) { asm("\t.globl _ac_test\n\t.type _ac_test,2\n_ac_test:\t.long 0"); }
12608
12609 int
12610 main ()
12611 {
12612
12613   ;
12614   return 0;
12615 }
12616 _ACEOF
12617 rm -f conftest.$ac_objext conftest$ac_exeext
12618 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12619   (eval $ac_link) 2>conftest.er1
12620   ac_status=$?
12621   grep -v '^ *+' conftest.er1 >conftest.err
12622   rm -f conftest.er1
12623   cat conftest.err >&5
12624   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12625   (exit $ac_status); } &&
12626          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
12627   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12628   (eval $ac_try) 2>&5
12629   ac_status=$?
12630   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12631   (exit $ac_status); }; } &&
12632          { ac_try='test -s conftest$ac_exeext'
12633   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12634   (eval $ac_try) 2>&5
12635   ac_status=$?
12636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12637   (exit $ac_status); }; }; then
12638   ac_cv_asm_func_def=".type 2"
12639 else
12640   echo "$as_me: failed program was:" >&5
12641 sed 's/^/| /' conftest.$ac_ext >&5
12642
12643 ac_cv_asm_func_def="unknown"
12644 fi
12645 rm -f conftest.err conftest.$ac_objext \
12646       conftest$ac_exeext conftest.$ac_ext
12647 fi
12648 rm -f conftest.err conftest.$ac_objext \
12649       conftest$ac_exeext conftest.$ac_ext
12650 fi
12651 rm -f conftest.err conftest.$ac_objext \
12652       conftest$ac_exeext conftest.$ac_ext
12653 fi
12654 echo "$as_me:$LINENO: result: $ac_cv_asm_func_def" >&5
12655 echo "${ECHO_T}$ac_cv_asm_func_def" >&6
12656
12657
12658
12659 case "$ac_cv_asm_func_def" in
12660   ".def")
12661      cat >>confdefs.h <<\_ACEOF
12662 #define __ASM_FUNC(name) ".def " __ASM_NAME(name) "; .scl 2; .type 32; .endef"
12663 _ACEOF
12664  ;;
12665   ".type @function")
12666      cat >>confdefs.h <<\_ACEOF
12667 #define __ASM_FUNC(name) ".type " __ASM_NAME(name) ",@function"
12668 _ACEOF
12669  ;;
12670   ".type 2")
12671      cat >>confdefs.h <<\_ACEOF
12672 #define __ASM_FUNC(name) ".type " __ASM_NAME(name) ",2"
12673 _ACEOF
12674  ;;
12675   *)
12676      cat >>confdefs.h <<\_ACEOF
12677 #define __ASM_FUNC(name) ""
12678 _ACEOF
12679  ;;
12680 esac
12681
12682
12683 echo "$as_me:$LINENO: checking whether external symbols need an underscore prefix" >&5
12684 echo $ECHO_N "checking whether external symbols need an underscore prefix... $ECHO_C" >&6
12685 if test "${ac_cv_c_extern_prefix+set}" = set; then
12686   echo $ECHO_N "(cached) $ECHO_C" >&6
12687 else
12688   cat >conftest.$ac_ext <<_ACEOF
12689 /* confdefs.h.  */
12690 _ACEOF
12691 cat confdefs.h >>conftest.$ac_ext
12692 cat >>conftest.$ac_ext <<_ACEOF
12693 /* end confdefs.h.  */
12694 void ac_asm(void) { asm(".globl _ac_test\n_ac_test:\t.long 0"); }
12695 extern int ac_test;
12696 int
12697 main ()
12698 {
12699 if (ac_test) return 1
12700   ;
12701   return 0;
12702 }
12703 _ACEOF
12704 rm -f conftest.$ac_objext conftest$ac_exeext
12705 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12706   (eval $ac_link) 2>conftest.er1
12707   ac_status=$?
12708   grep -v '^ *+' conftest.er1 >conftest.err
12709   rm -f conftest.er1
12710   cat conftest.err >&5
12711   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12712   (exit $ac_status); } &&
12713          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
12714   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12715   (eval $ac_try) 2>&5
12716   ac_status=$?
12717   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12718   (exit $ac_status); }; } &&
12719          { ac_try='test -s conftest$ac_exeext'
12720   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12721   (eval $ac_try) 2>&5
12722   ac_status=$?
12723   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12724   (exit $ac_status); }; }; then
12725   ac_cv_c_extern_prefix="yes"
12726 else
12727   echo "$as_me: failed program was:" >&5
12728 sed 's/^/| /' conftest.$ac_ext >&5
12729
12730 ac_cv_c_extern_prefix="no"
12731 fi
12732 rm -f conftest.err conftest.$ac_objext \
12733       conftest$ac_exeext conftest.$ac_ext
12734 fi
12735 echo "$as_me:$LINENO: result: $ac_cv_c_extern_prefix" >&5
12736 echo "${ECHO_T}$ac_cv_c_extern_prefix" >&6
12737
12738
12739
12740 if test "$ac_cv_c_extern_prefix" = "yes"
12741 then
12742   cat >>confdefs.h <<\_ACEOF
12743 #define __ASM_NAME(name) "_" name
12744 _ACEOF
12745
12746 else
12747   cat >>confdefs.h <<\_ACEOF
12748 #define __ASM_NAME(name) name
12749 _ACEOF
12750
12751 fi
12752
12753
12754 echo "$as_me:$LINENO: checking for assembler keyword for ASCII strings" >&5
12755 echo $ECHO_N "checking for assembler keyword for ASCII strings... $ECHO_C" >&6
12756 if test "${ac_cv_c_asm_string+set}" = set; then
12757   echo $ECHO_N "(cached) $ECHO_C" >&6
12758 else
12759   cat >conftest.$ac_ext <<_ACEOF
12760 /* confdefs.h.  */
12761 _ACEOF
12762 cat confdefs.h >>conftest.$ac_ext
12763 cat >>conftest.$ac_ext <<_ACEOF
12764 /* end confdefs.h.  */
12765 void ac_asm(void) { asm(".data\\n\\t.string \\"test\\"\\n\\t.text"); }
12766
12767 int
12768 main ()
12769 {
12770
12771   ;
12772   return 0;
12773 }
12774 _ACEOF
12775 rm -f conftest.$ac_objext conftest$ac_exeext
12776 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12777   (eval $ac_link) 2>conftest.er1
12778   ac_status=$?
12779   grep -v '^ *+' conftest.er1 >conftest.err
12780   rm -f conftest.er1
12781   cat conftest.err >&5
12782   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12783   (exit $ac_status); } &&
12784          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
12785   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12786   (eval $ac_try) 2>&5
12787   ac_status=$?
12788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12789   (exit $ac_status); }; } &&
12790          { ac_try='test -s conftest$ac_exeext'
12791   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12792   (eval $ac_try) 2>&5
12793   ac_status=$?
12794   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12795   (exit $ac_status); }; }; then
12796   ac_cv_c_asm_string=".string"
12797 else
12798   echo "$as_me: failed program was:" >&5
12799 sed 's/^/| /' conftest.$ac_ext >&5
12800
12801 cat >conftest.$ac_ext <<_ACEOF
12802 /* confdefs.h.  */
12803 _ACEOF
12804 cat confdefs.h >>conftest.$ac_ext
12805 cat >>conftest.$ac_ext <<_ACEOF
12806 /* end confdefs.h.  */
12807 void ac_asm(void) { asm(".data\\n\\t.asciz \\"test\\"\\n\\t.text"); }
12808
12809 int
12810 main ()
12811 {
12812
12813   ;
12814   return 0;
12815 }
12816 _ACEOF
12817 rm -f conftest.$ac_objext conftest$ac_exeext
12818 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12819   (eval $ac_link) 2>conftest.er1
12820   ac_status=$?
12821   grep -v '^ *+' conftest.er1 >conftest.err
12822   rm -f conftest.er1
12823   cat conftest.err >&5
12824   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12825   (exit $ac_status); } &&
12826          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
12827   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12828   (eval $ac_try) 2>&5
12829   ac_status=$?
12830   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12831   (exit $ac_status); }; } &&
12832          { ac_try='test -s conftest$ac_exeext'
12833   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12834   (eval $ac_try) 2>&5
12835   ac_status=$?
12836   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12837   (exit $ac_status); }; }; then
12838   ac_cv_c_asm_string=".asciz"
12839 else
12840   echo "$as_me: failed program was:" >&5
12841 sed 's/^/| /' conftest.$ac_ext >&5
12842
12843 cat >conftest.$ac_ext <<_ACEOF
12844 /* confdefs.h.  */
12845 _ACEOF
12846 cat confdefs.h >>conftest.$ac_ext
12847 cat >>conftest.$ac_ext <<_ACEOF
12848 /* end confdefs.h.  */
12849 void ac_asm(void) { asm(".data\\n\\t.ascii \\"test\\"\\n\\t.text"); }
12850
12851 int
12852 main ()
12853 {
12854
12855   ;
12856   return 0;
12857 }
12858 _ACEOF
12859 rm -f conftest.$ac_objext conftest$ac_exeext
12860 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12861   (eval $ac_link) 2>conftest.er1
12862   ac_status=$?
12863   grep -v '^ *+' conftest.er1 >conftest.err
12864   rm -f conftest.er1
12865   cat conftest.err >&5
12866   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12867   (exit $ac_status); } &&
12868          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
12869   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12870   (eval $ac_try) 2>&5
12871   ac_status=$?
12872   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12873   (exit $ac_status); }; } &&
12874          { ac_try='test -s conftest$ac_exeext'
12875   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12876   (eval $ac_try) 2>&5
12877   ac_status=$?
12878   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12879   (exit $ac_status); }; }; then
12880   ac_cv_c_asm_string=".ascii"
12881 else
12882   echo "$as_me: failed program was:" >&5
12883 sed 's/^/| /' conftest.$ac_ext >&5
12884
12885 { { echo "$as_me:$LINENO: error: could not discover how to produce C strings with assembler." >&5
12886 echo "$as_me: error: could not discover how to produce C strings with assembler." >&2;}
12887    { (exit 1); exit 1; }; }
12888 fi
12889 rm -f conftest.err conftest.$ac_objext \
12890       conftest$ac_exeext conftest.$ac_ext
12891 fi
12892 rm -f conftest.err conftest.$ac_objext \
12893       conftest$ac_exeext conftest.$ac_ext
12894 fi
12895 rm -f conftest.err conftest.$ac_objext \
12896       conftest$ac_exeext conftest.$ac_ext
12897 fi
12898 echo "$as_me:$LINENO: result: $ac_cv_c_asm_string" >&5
12899 echo "${ECHO_T}$ac_cv_c_asm_string" >&6
12900
12901
12902 cat >>confdefs.h <<_ACEOF
12903 #define __ASM_STRING "$ac_cv_c_asm_string"
12904 _ACEOF
12905
12906
12907
12908 echo "$as_me:$LINENO: checking for assembler keyword for word values" >&5
12909 echo $ECHO_N "checking for assembler keyword for word values... $ECHO_C" >&6
12910 if test "${ac_cv_c_asm_short+set}" = set; then
12911   echo $ECHO_N "(cached) $ECHO_C" >&6
12912 else
12913   cat >conftest.$ac_ext <<_ACEOF
12914 /* confdefs.h.  */
12915 _ACEOF
12916 cat confdefs.h >>conftest.$ac_ext
12917 cat >>conftest.$ac_ext <<_ACEOF
12918 /* end confdefs.h.  */
12919 void ac_asm(void) { asm(".data\\n\\t.short 1\\n\\t.text"); }
12920
12921 int
12922 main ()
12923 {
12924
12925   ;
12926   return 0;
12927 }
12928 _ACEOF
12929 rm -f conftest.$ac_objext conftest$ac_exeext
12930 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12931   (eval $ac_link) 2>conftest.er1
12932   ac_status=$?
12933   grep -v '^ *+' conftest.er1 >conftest.err
12934   rm -f conftest.er1
12935   cat conftest.err >&5
12936   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12937   (exit $ac_status); } &&
12938          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
12939   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12940   (eval $ac_try) 2>&5
12941   ac_status=$?
12942   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12943   (exit $ac_status); }; } &&
12944          { ac_try='test -s conftest$ac_exeext'
12945   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12946   (eval $ac_try) 2>&5
12947   ac_status=$?
12948   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12949   (exit $ac_status); }; }; then
12950   ac_cv_c_asm_short=".short"
12951 else
12952   echo "$as_me: failed program was:" >&5
12953 sed 's/^/| /' conftest.$ac_ext >&5
12954
12955 cat >conftest.$ac_ext <<_ACEOF
12956 /* confdefs.h.  */
12957 _ACEOF
12958 cat confdefs.h >>conftest.$ac_ext
12959 cat >>conftest.$ac_ext <<_ACEOF
12960 /* end confdefs.h.  */
12961 void ac_asm(void) { asm(".data\\n\\t.half 1\\n\\t.text"); }
12962
12963 int
12964 main ()
12965 {
12966
12967   ;
12968   return 0;
12969 }
12970 _ACEOF
12971 rm -f conftest.$ac_objext conftest$ac_exeext
12972 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12973   (eval $ac_link) 2>conftest.er1
12974   ac_status=$?
12975   grep -v '^ *+' conftest.er1 >conftest.err
12976   rm -f conftest.er1
12977   cat conftest.err >&5
12978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12979   (exit $ac_status); } &&
12980          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
12981   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12982   (eval $ac_try) 2>&5
12983   ac_status=$?
12984   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12985   (exit $ac_status); }; } &&
12986          { ac_try='test -s conftest$ac_exeext'
12987   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12988   (eval $ac_try) 2>&5
12989   ac_status=$?
12990   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12991   (exit $ac_status); }; }; then
12992   ac_cv_c_asm_short=".half"
12993 else
12994   echo "$as_me: failed program was:" >&5
12995 sed 's/^/| /' conftest.$ac_ext >&5
12996
12997 { { echo "$as_me:$LINENO: error: could not discover how to specify word values with assembler." >&5
12998 echo "$as_me: error: could not discover how to specify word values with assembler." >&2;}
12999    { (exit 1); exit 1; }; }
13000 fi
13001 rm -f conftest.err conftest.$ac_objext \
13002       conftest$ac_exeext conftest.$ac_ext
13003 fi
13004 rm -f conftest.err conftest.$ac_objext \
13005       conftest$ac_exeext conftest.$ac_ext
13006 fi
13007 echo "$as_me:$LINENO: result: $ac_cv_c_asm_short" >&5
13008 echo "${ECHO_T}$ac_cv_c_asm_short" >&6
13009
13010
13011 cat >>confdefs.h <<_ACEOF
13012 #define __ASM_SHORT "$ac_cv_c_asm_short"
13013 _ACEOF
13014
13015
13016
13017 DLLEXT=""
13018
13019 DLLFLAGS="-D_REENTRANT"
13020
13021 DLLIBS=""
13022
13023 LDSHARED=""
13024
13025 LDDLL=""
13026
13027 LIBEXT="so"
13028
13029 IMPLIBEXT="def"
13030
13031
13032 case $host_os in
13033   cygwin*|mingw32*)
13034     if test -n "$ac_tool_prefix"; then
13035   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
13036 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
13037 echo "$as_me:$LINENO: checking for $ac_word" >&5
13038 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13039 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
13040   echo $ECHO_N "(cached) $ECHO_C" >&6
13041 else
13042   if test -n "$DLLTOOL"; then
13043   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
13044 else
13045 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13046 for as_dir in $PATH
13047 do
13048   IFS=$as_save_IFS
13049   test -z "$as_dir" && as_dir=.
13050   for ac_exec_ext in '' $ac_executable_extensions; do
13051   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13052     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
13053     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13054     break 2
13055   fi
13056 done
13057 done
13058
13059 fi
13060 fi
13061 DLLTOOL=$ac_cv_prog_DLLTOOL
13062 if test -n "$DLLTOOL"; then
13063   echo "$as_me:$LINENO: result: $DLLTOOL" >&5
13064 echo "${ECHO_T}$DLLTOOL" >&6
13065 else
13066   echo "$as_me:$LINENO: result: no" >&5
13067 echo "${ECHO_T}no" >&6
13068 fi
13069
13070 fi
13071 if test -z "$ac_cv_prog_DLLTOOL"; then
13072   ac_ct_DLLTOOL=$DLLTOOL
13073   # Extract the first word of "dlltool", so it can be a program name with args.
13074 set dummy dlltool; ac_word=$2
13075 echo "$as_me:$LINENO: checking for $ac_word" >&5
13076 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13077 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
13078   echo $ECHO_N "(cached) $ECHO_C" >&6
13079 else
13080   if test -n "$ac_ct_DLLTOOL"; then
13081   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
13082 else
13083 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13084 for as_dir in $PATH
13085 do
13086   IFS=$as_save_IFS
13087   test -z "$as_dir" && as_dir=.
13088   for ac_exec_ext in '' $ac_executable_extensions; do
13089   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13090     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
13091     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13092     break 2
13093   fi
13094 done
13095 done
13096
13097   test -z "$ac_cv_prog_ac_ct_DLLTOOL" && ac_cv_prog_ac_ct_DLLTOOL="false"
13098 fi
13099 fi
13100 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
13101 if test -n "$ac_ct_DLLTOOL"; then
13102   echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
13103 echo "${ECHO_T}$ac_ct_DLLTOOL" >&6
13104 else
13105   echo "$as_me:$LINENO: result: no" >&5
13106 echo "${ECHO_T}no" >&6
13107 fi
13108
13109   DLLTOOL=$ac_ct_DLLTOOL
13110 else
13111   DLLTOOL="$ac_cv_prog_DLLTOOL"
13112 fi
13113
13114     if test -n "$ac_tool_prefix"; then
13115   # Extract the first word of "${ac_tool_prefix}dllwrap", so it can be a program name with args.
13116 set dummy ${ac_tool_prefix}dllwrap; ac_word=$2
13117 echo "$as_me:$LINENO: checking for $ac_word" >&5
13118 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13119 if test "${ac_cv_prog_DLLWRAP+set}" = set; then
13120   echo $ECHO_N "(cached) $ECHO_C" >&6
13121 else
13122   if test -n "$DLLWRAP"; then
13123   ac_cv_prog_DLLWRAP="$DLLWRAP" # Let the user override the test.
13124 else
13125 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13126 for as_dir in $PATH
13127 do
13128   IFS=$as_save_IFS
13129   test -z "$as_dir" && as_dir=.
13130   for ac_exec_ext in '' $ac_executable_extensions; do
13131   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13132     ac_cv_prog_DLLWRAP="${ac_tool_prefix}dllwrap"
13133     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13134     break 2
13135   fi
13136 done
13137 done
13138
13139 fi
13140 fi
13141 DLLWRAP=$ac_cv_prog_DLLWRAP
13142 if test -n "$DLLWRAP"; then
13143   echo "$as_me:$LINENO: result: $DLLWRAP" >&5
13144 echo "${ECHO_T}$DLLWRAP" >&6
13145 else
13146   echo "$as_me:$LINENO: result: no" >&5
13147 echo "${ECHO_T}no" >&6
13148 fi
13149
13150 fi
13151 if test -z "$ac_cv_prog_DLLWRAP"; then
13152   ac_ct_DLLWRAP=$DLLWRAP
13153   # Extract the first word of "dllwrap", so it can be a program name with args.
13154 set dummy dllwrap; ac_word=$2
13155 echo "$as_me:$LINENO: checking for $ac_word" >&5
13156 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13157 if test "${ac_cv_prog_ac_ct_DLLWRAP+set}" = set; then
13158   echo $ECHO_N "(cached) $ECHO_C" >&6
13159 else
13160   if test -n "$ac_ct_DLLWRAP"; then
13161   ac_cv_prog_ac_ct_DLLWRAP="$ac_ct_DLLWRAP" # Let the user override the test.
13162 else
13163 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13164 for as_dir in $PATH
13165 do
13166   IFS=$as_save_IFS
13167   test -z "$as_dir" && as_dir=.
13168   for ac_exec_ext in '' $ac_executable_extensions; do
13169   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13170     ac_cv_prog_ac_ct_DLLWRAP="dllwrap"
13171     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13172     break 2
13173   fi
13174 done
13175 done
13176
13177   test -z "$ac_cv_prog_ac_ct_DLLWRAP" && ac_cv_prog_ac_ct_DLLWRAP="false"
13178 fi
13179 fi
13180 ac_ct_DLLWRAP=$ac_cv_prog_ac_ct_DLLWRAP
13181 if test -n "$ac_ct_DLLWRAP"; then
13182   echo "$as_me:$LINENO: result: $ac_ct_DLLWRAP" >&5
13183 echo "${ECHO_T}$ac_ct_DLLWRAP" >&6
13184 else
13185   echo "$as_me:$LINENO: result: no" >&5
13186 echo "${ECHO_T}no" >&6
13187 fi
13188
13189   DLLWRAP=$ac_ct_DLLWRAP
13190 else
13191   DLLWRAP="$ac_cv_prog_DLLWRAP"
13192 fi
13193
13194     if test "$DLLWRAP" = "false"; then
13195       LIBEXT="a"
13196     else
13197             LIBEXT="dll"
13198     fi
13199     IMPLIBEXT="a"
13200     ;;
13201   *)
13202
13203 for ac_header in dlfcn.h
13204 do
13205 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13206 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13207   echo "$as_me:$LINENO: checking for $ac_header" >&5
13208 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13209 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13210   echo $ECHO_N "(cached) $ECHO_C" >&6
13211 fi
13212 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13213 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13214 else
13215   # Is the header compilable?
13216 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13217 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13218 cat >conftest.$ac_ext <<_ACEOF
13219 /* confdefs.h.  */
13220 _ACEOF
13221 cat confdefs.h >>conftest.$ac_ext
13222 cat >>conftest.$ac_ext <<_ACEOF
13223 /* end confdefs.h.  */
13224 $ac_includes_default
13225 #include <$ac_header>
13226 _ACEOF
13227 rm -f conftest.$ac_objext
13228 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13229   (eval $ac_compile) 2>conftest.er1
13230   ac_status=$?
13231   grep -v '^ *+' conftest.er1 >conftest.err
13232   rm -f conftest.er1
13233   cat conftest.err >&5
13234   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13235   (exit $ac_status); } &&
13236          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
13237   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13238   (eval $ac_try) 2>&5
13239   ac_status=$?
13240   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13241   (exit $ac_status); }; } &&
13242          { ac_try='test -s conftest.$ac_objext'
13243   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13244   (eval $ac_try) 2>&5
13245   ac_status=$?
13246   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13247   (exit $ac_status); }; }; then
13248   ac_header_compiler=yes
13249 else
13250   echo "$as_me: failed program was:" >&5
13251 sed 's/^/| /' conftest.$ac_ext >&5
13252
13253 ac_header_compiler=no
13254 fi
13255 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13256 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13257 echo "${ECHO_T}$ac_header_compiler" >&6
13258
13259 # Is the header present?
13260 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13261 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13262 cat >conftest.$ac_ext <<_ACEOF
13263 /* confdefs.h.  */
13264 _ACEOF
13265 cat confdefs.h >>conftest.$ac_ext
13266 cat >>conftest.$ac_ext <<_ACEOF
13267 /* end confdefs.h.  */
13268 #include <$ac_header>
13269 _ACEOF
13270 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13271   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13272   ac_status=$?
13273   grep -v '^ *+' conftest.er1 >conftest.err
13274   rm -f conftest.er1
13275   cat conftest.err >&5
13276   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13277   (exit $ac_status); } >/dev/null; then
13278   if test -s conftest.err; then
13279     ac_cpp_err=$ac_c_preproc_warn_flag
13280     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13281   else
13282     ac_cpp_err=
13283   fi
13284 else
13285   ac_cpp_err=yes
13286 fi
13287 if test -z "$ac_cpp_err"; then
13288   ac_header_preproc=yes
13289 else
13290   echo "$as_me: failed program was:" >&5
13291 sed 's/^/| /' conftest.$ac_ext >&5
13292
13293   ac_header_preproc=no
13294 fi
13295 rm -f conftest.err conftest.$ac_ext
13296 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13297 echo "${ECHO_T}$ac_header_preproc" >&6
13298
13299 # So?  What about this header?
13300 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13301   yes:no: )
13302     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13303 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13304     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13305 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13306     ac_header_preproc=yes
13307     ;;
13308   no:yes:* )
13309     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13310 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13311     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
13312 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
13313     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13314 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13315     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
13316 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
13317     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13318 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13319     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13320 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13321     (
13322       cat <<\_ASBOX
13323 ## ------------------------------------ ##
13324 ## Report this to wine-devel@winehq.org ##
13325 ## ------------------------------------ ##
13326 _ASBOX
13327     ) |
13328       sed "s/^/$as_me: WARNING:     /" >&2
13329     ;;
13330 esac
13331 echo "$as_me:$LINENO: checking for $ac_header" >&5
13332 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13333 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13334   echo $ECHO_N "(cached) $ECHO_C" >&6
13335 else
13336   eval "$as_ac_Header=\$ac_header_preproc"
13337 fi
13338 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13339 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13340
13341 fi
13342 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13343   cat >>confdefs.h <<_ACEOF
13344 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13345 _ACEOF
13346
13347 for ac_func in dlopen
13348 do
13349 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13350 echo "$as_me:$LINENO: checking for $ac_func" >&5
13351 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13352 if eval "test \"\${$as_ac_var+set}\" = set"; then
13353   echo $ECHO_N "(cached) $ECHO_C" >&6
13354 else
13355   cat >conftest.$ac_ext <<_ACEOF
13356 /* confdefs.h.  */
13357 _ACEOF
13358 cat confdefs.h >>conftest.$ac_ext
13359 cat >>conftest.$ac_ext <<_ACEOF
13360 /* end confdefs.h.  */
13361 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13362    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
13363 #define $ac_func innocuous_$ac_func
13364
13365 /* System header to define __stub macros and hopefully few prototypes,
13366     which can conflict with char $ac_func (); below.
13367     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13368     <limits.h> exists even on freestanding compilers.  */
13369
13370 #ifdef __STDC__
13371 # include <limits.h>
13372 #else
13373 # include <assert.h>
13374 #endif
13375
13376 #undef $ac_func
13377
13378 /* Override any gcc2 internal prototype to avoid an error.  */
13379 #ifdef __cplusplus
13380 extern "C"
13381 {
13382 #endif
13383 /* We use char because int might match the return type of a gcc2
13384    builtin and then its argument prototype would still apply.  */
13385 char $ac_func ();
13386 /* The GNU C library defines this for functions which it implements
13387     to always fail with ENOSYS.  Some functions are actually named
13388     something starting with __ and the normal name is an alias.  */
13389 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13390 choke me
13391 #else
13392 char (*f) () = $ac_func;
13393 #endif
13394 #ifdef __cplusplus
13395 }
13396 #endif
13397
13398 int
13399 main ()
13400 {
13401 return f != $ac_func;
13402   ;
13403   return 0;
13404 }
13405 _ACEOF
13406 rm -f conftest.$ac_objext conftest$ac_exeext
13407 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13408   (eval $ac_link) 2>conftest.er1
13409   ac_status=$?
13410   grep -v '^ *+' conftest.er1 >conftest.err
13411   rm -f conftest.er1
13412   cat conftest.err >&5
13413   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13414   (exit $ac_status); } &&
13415          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
13416   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13417   (eval $ac_try) 2>&5
13418   ac_status=$?
13419   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13420   (exit $ac_status); }; } &&
13421          { ac_try='test -s conftest$ac_exeext'
13422   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13423   (eval $ac_try) 2>&5
13424   ac_status=$?
13425   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13426   (exit $ac_status); }; }; then
13427   eval "$as_ac_var=yes"
13428 else
13429   echo "$as_me: failed program was:" >&5
13430 sed 's/^/| /' conftest.$ac_ext >&5
13431
13432 eval "$as_ac_var=no"
13433 fi
13434 rm -f conftest.err conftest.$ac_objext \
13435       conftest$ac_exeext conftest.$ac_ext
13436 fi
13437 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13438 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13439 if test `eval echo '${'$as_ac_var'}'` = yes; then
13440   cat >>confdefs.h <<_ACEOF
13441 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13442 _ACEOF
13443
13444 else
13445   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
13446 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
13447 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
13448   echo $ECHO_N "(cached) $ECHO_C" >&6
13449 else
13450   ac_check_lib_save_LIBS=$LIBS
13451 LIBS="-ldl  $LIBS"
13452 cat >conftest.$ac_ext <<_ACEOF
13453 /* confdefs.h.  */
13454 _ACEOF
13455 cat confdefs.h >>conftest.$ac_ext
13456 cat >>conftest.$ac_ext <<_ACEOF
13457 /* end confdefs.h.  */
13458
13459 /* Override any gcc2 internal prototype to avoid an error.  */
13460 #ifdef __cplusplus
13461 extern "C"
13462 #endif
13463 /* We use char because int might match the return type of a gcc2
13464    builtin and then its argument prototype would still apply.  */
13465 char dlopen ();
13466 int
13467 main ()
13468 {
13469 dlopen ();
13470   ;
13471   return 0;
13472 }
13473 _ACEOF
13474 rm -f conftest.$ac_objext conftest$ac_exeext
13475 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13476   (eval $ac_link) 2>conftest.er1
13477   ac_status=$?
13478   grep -v '^ *+' conftest.er1 >conftest.err
13479   rm -f conftest.er1
13480   cat conftest.err >&5
13481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13482   (exit $ac_status); } &&
13483          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
13484   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13485   (eval $ac_try) 2>&5
13486   ac_status=$?
13487   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13488   (exit $ac_status); }; } &&
13489          { ac_try='test -s conftest$ac_exeext'
13490   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13491   (eval $ac_try) 2>&5
13492   ac_status=$?
13493   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13494   (exit $ac_status); }; }; then
13495   ac_cv_lib_dl_dlopen=yes
13496 else
13497   echo "$as_me: failed program was:" >&5
13498 sed 's/^/| /' conftest.$ac_ext >&5
13499
13500 ac_cv_lib_dl_dlopen=no
13501 fi
13502 rm -f conftest.err conftest.$ac_objext \
13503       conftest$ac_exeext conftest.$ac_ext
13504 LIBS=$ac_check_lib_save_LIBS
13505 fi
13506 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
13507 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
13508 if test $ac_cv_lib_dl_dlopen = yes; then
13509
13510 cat >>confdefs.h <<\_ACEOF
13511 #define HAVE_DLOPEN 1
13512 _ACEOF
13513
13514                           DLLIBS="-ldl"
13515 else
13516   LIBEXT="a"
13517 fi
13518
13519 fi
13520 done
13521
13522 else
13523   LIBEXT="a"
13524 fi
13525
13526 done
13527
13528
13529     if test "$LIBEXT" = "so"
13530     then
13531       DLLFLAGS="$DLLFLAGS -fPIC"
13532       DLLEXT=".so"
13533       echo "$as_me:$LINENO: checking whether we can build a GNU style ELF dll" >&5
13534 echo $ECHO_N "checking whether we can build a GNU style ELF dll... $ECHO_C" >&6
13535 if test "${ac_cv_c_dll_gnuelf+set}" = set; then
13536   echo $ECHO_N "(cached) $ECHO_C" >&6
13537 else
13538   ac_wine_try_cflags_saved=$CFLAGS
13539 CFLAGS="$CFLAGS -fPIC -shared -Wl,-soname,conftest.so.1.0,-Bsymbolic"
13540 cat >conftest.$ac_ext <<_ACEOF
13541 /* confdefs.h.  */
13542 _ACEOF
13543 cat confdefs.h >>conftest.$ac_ext
13544 cat >>conftest.$ac_ext <<_ACEOF
13545 /* end confdefs.h.  */
13546
13547 int
13548 main ()
13549 {
13550
13551   ;
13552   return 0;
13553 }
13554 _ACEOF
13555 rm -f conftest.$ac_objext conftest$ac_exeext
13556 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13557   (eval $ac_link) 2>conftest.er1
13558   ac_status=$?
13559   grep -v '^ *+' conftest.er1 >conftest.err
13560   rm -f conftest.er1
13561   cat conftest.err >&5
13562   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13563   (exit $ac_status); } &&
13564          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
13565   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13566   (eval $ac_try) 2>&5
13567   ac_status=$?
13568   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13569   (exit $ac_status); }; } &&
13570          { ac_try='test -s conftest$ac_exeext'
13571   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13572   (eval $ac_try) 2>&5
13573   ac_status=$?
13574   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13575   (exit $ac_status); }; }; then
13576   ac_cv_c_dll_gnuelf="yes"
13577 else
13578   echo "$as_me: failed program was:" >&5
13579 sed 's/^/| /' conftest.$ac_ext >&5
13580
13581 ac_cv_c_dll_gnuelf="no"
13582 fi
13583 rm -f conftest.err conftest.$ac_objext \
13584       conftest$ac_exeext conftest.$ac_ext
13585 CFLAGS=$ac_wine_try_cflags_saved
13586 fi
13587 echo "$as_me:$LINENO: result: $ac_cv_c_dll_gnuelf" >&5
13588 echo "${ECHO_T}$ac_cv_c_dll_gnuelf" >&6
13589       if test "$ac_cv_c_dll_gnuelf" = "yes"
13590       then
13591         LDSHARED="\$(CC) -shared \$(SONAME:%=-Wl,-soname,%)"
13592         LDDLL="\$(CC) -shared -Wl,-Bsymbolic"
13593         echo "$as_me:$LINENO: checking whether the linker accepts -z defs" >&5
13594 echo $ECHO_N "checking whether the linker accepts -z defs... $ECHO_C" >&6
13595 if test "${ac_cv_c_dll_zdefs+set}" = set; then
13596   echo $ECHO_N "(cached) $ECHO_C" >&6
13597 else
13598   ac_wine_try_cflags_saved=$CFLAGS
13599 CFLAGS="$CFLAGS -fPIC -shared -Wl,-Bsymbolic,-z,defs"
13600 cat >conftest.$ac_ext <<_ACEOF
13601 /* confdefs.h.  */
13602 _ACEOF
13603 cat confdefs.h >>conftest.$ac_ext
13604 cat >>conftest.$ac_ext <<_ACEOF
13605 /* end confdefs.h.  */
13606
13607 int
13608 main ()
13609 {
13610
13611   ;
13612   return 0;
13613 }
13614 _ACEOF
13615 rm -f conftest.$ac_objext conftest$ac_exeext
13616 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13617   (eval $ac_link) 2>conftest.er1
13618   ac_status=$?
13619   grep -v '^ *+' conftest.er1 >conftest.err
13620   rm -f conftest.er1
13621   cat conftest.err >&5
13622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13623   (exit $ac_status); } &&
13624          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
13625   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13626   (eval $ac_try) 2>&5
13627   ac_status=$?
13628   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13629   (exit $ac_status); }; } &&
13630          { ac_try='test -s conftest$ac_exeext'
13631   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13632   (eval $ac_try) 2>&5
13633   ac_status=$?
13634   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13635   (exit $ac_status); }; }; then
13636   ac_cv_c_dll_zdefs="yes"
13637 else
13638   echo "$as_me: failed program was:" >&5
13639 sed 's/^/| /' conftest.$ac_ext >&5
13640
13641 ac_cv_c_dll_zdefs="no"
13642 fi
13643 rm -f conftest.err conftest.$ac_objext \
13644       conftest$ac_exeext conftest.$ac_ext
13645 CFLAGS=$ac_wine_try_cflags_saved
13646 fi
13647 echo "$as_me:$LINENO: result: $ac_cv_c_dll_zdefs" >&5
13648 echo "${ECHO_T}$ac_cv_c_dll_zdefs" >&6
13649         if test "$ac_cv_c_dll_zdefs" = "yes"
13650         then
13651           LDDLL="$LDDLL,-z,defs"
13652         fi
13653
13654         echo "$as_me:$LINENO: checking whether the linker accepts -init and -fini" >&5
13655 echo $ECHO_N "checking whether the linker accepts -init and -fini... $ECHO_C" >&6
13656 if test "${ac_cv_c_dll_init_fini+set}" = set; then
13657   echo $ECHO_N "(cached) $ECHO_C" >&6
13658 else
13659   ac_wine_try_cflags_saved=$CFLAGS
13660 CFLAGS="$CFLAGS -fPIC -shared -Wl,-Bsymbolic,-init,__wine_spec_init,-fini,__wine_spec_fini"
13661 cat >conftest.$ac_ext <<_ACEOF
13662 /* confdefs.h.  */
13663 _ACEOF
13664 cat confdefs.h >>conftest.$ac_ext
13665 cat >>conftest.$ac_ext <<_ACEOF
13666 /* end confdefs.h.  */
13667
13668 int
13669 main ()
13670 {
13671
13672   ;
13673   return 0;
13674 }
13675 _ACEOF
13676 rm -f conftest.$ac_objext conftest$ac_exeext
13677 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13678   (eval $ac_link) 2>conftest.er1
13679   ac_status=$?
13680   grep -v '^ *+' conftest.er1 >conftest.err
13681   rm -f conftest.er1
13682   cat conftest.err >&5
13683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13684   (exit $ac_status); } &&
13685          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
13686   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13687   (eval $ac_try) 2>&5
13688   ac_status=$?
13689   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13690   (exit $ac_status); }; } &&
13691          { ac_try='test -s conftest$ac_exeext'
13692   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13693   (eval $ac_try) 2>&5
13694   ac_status=$?
13695   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13696   (exit $ac_status); }; }; then
13697   ac_cv_c_dll_init_fini="yes"
13698 else
13699   echo "$as_me: failed program was:" >&5
13700 sed 's/^/| /' conftest.$ac_ext >&5
13701
13702 ac_cv_c_dll_init_fini="no"
13703 fi
13704 rm -f conftest.err conftest.$ac_objext \
13705       conftest$ac_exeext conftest.$ac_ext
13706 CFLAGS=$ac_wine_try_cflags_saved
13707 fi
13708 echo "$as_me:$LINENO: result: $ac_cv_c_dll_init_fini" >&5
13709 echo "${ECHO_T}$ac_cv_c_dll_init_fini" >&6
13710         if test "$ac_cv_c_dll_init_fini" = "yes"
13711         then
13712
13713 cat >>confdefs.h <<\_ACEOF
13714 #define HAVE_LINKER_INIT_FINI 1
13715 _ACEOF
13716
13717           LDDLL="$LDDLL,-init,__wine_spec_init,-fini,__wine_spec_fini"
13718         fi
13719
13720         echo "$as_me:$LINENO: checking whether the linker accepts --export-dynamic" >&5
13721 echo $ECHO_N "checking whether the linker accepts --export-dynamic... $ECHO_C" >&6
13722 if test "${ac_cv_c_export_dynamic+set}" = set; then
13723   echo $ECHO_N "(cached) $ECHO_C" >&6
13724 else
13725   ac_wine_try_cflags_saved=$CFLAGS
13726 CFLAGS="$CFLAGS -fPIC -Wl,--export-dynamic"
13727 cat >conftest.$ac_ext <<_ACEOF
13728 /* confdefs.h.  */
13729 _ACEOF
13730 cat confdefs.h >>conftest.$ac_ext
13731 cat >>conftest.$ac_ext <<_ACEOF
13732 /* end confdefs.h.  */
13733
13734 int
13735 main ()
13736 {
13737
13738   ;
13739   return 0;
13740 }
13741 _ACEOF
13742 rm -f conftest.$ac_objext conftest$ac_exeext
13743 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13744   (eval $ac_link) 2>conftest.er1
13745   ac_status=$?
13746   grep -v '^ *+' conftest.er1 >conftest.err
13747   rm -f conftest.er1
13748   cat conftest.err >&5
13749   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13750   (exit $ac_status); } &&
13751          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
13752   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13753   (eval $ac_try) 2>&5
13754   ac_status=$?
13755   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13756   (exit $ac_status); }; } &&
13757          { ac_try='test -s conftest$ac_exeext'
13758   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13759   (eval $ac_try) 2>&5
13760   ac_status=$?
13761   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13762   (exit $ac_status); }; }; then
13763   ac_cv_c_export_dynamic="yes"
13764 else
13765   echo "$as_me: failed program was:" >&5
13766 sed 's/^/| /' conftest.$ac_ext >&5
13767
13768 ac_cv_c_export_dynamic="no"
13769 fi
13770 rm -f conftest.err conftest.$ac_objext \
13771       conftest$ac_exeext conftest.$ac_ext
13772 CFLAGS=$ac_wine_try_cflags_saved
13773 fi
13774 echo "$as_me:$LINENO: result: $ac_cv_c_export_dynamic" >&5
13775 echo "${ECHO_T}$ac_cv_c_export_dynamic" >&6
13776         if test "$ac_cv_c_export_dynamic" = "yes"
13777         then
13778           LDEXECFLAGS="-Wl,--export-dynamic"
13779
13780         fi
13781
13782         case $host_cpu in
13783           *i[3456789]86*)
13784             echo "$as_me:$LINENO: checking whether we can relocate the executable to 0x00110000" >&5
13785 echo $ECHO_N "checking whether we can relocate the executable to 0x00110000... $ECHO_C" >&6
13786 if test "${ac_cv_ld_reloc_exec+set}" = set; then
13787   echo $ECHO_N "(cached) $ECHO_C" >&6
13788 else
13789   saved_CFLAGS="$CFLAGS"
13790                CFLAGS="$CFLAGS -Wl,--section-start,.interp=0x00110400"
13791                if test "$cross_compiling" = yes; then
13792   ac_cv_ld_reloc_exec="no"
13793 else
13794   cat >conftest.$ac_ext <<_ACEOF
13795 /* confdefs.h.  */
13796 _ACEOF
13797 cat confdefs.h >>conftest.$ac_ext
13798 cat >>conftest.$ac_ext <<_ACEOF
13799 /* end confdefs.h.  */
13800 #include <unistd.h>
13801                            int main() { return (sbrk(32*1024*1024) == (void *)-1); }
13802 _ACEOF
13803 rm -f conftest$ac_exeext
13804 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13805   (eval $ac_link) 2>&5
13806   ac_status=$?
13807   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13808   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13809   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13810   (eval $ac_try) 2>&5
13811   ac_status=$?
13812   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13813   (exit $ac_status); }; }; then
13814   ac_cv_ld_reloc_exec="yes"
13815 else
13816   echo "$as_me: program exited with status $ac_status" >&5
13817 echo "$as_me: failed program was:" >&5
13818 sed 's/^/| /' conftest.$ac_ext >&5
13819
13820 ( exit $ac_status )
13821 ac_cv_ld_reloc_exec="no"
13822 fi
13823 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13824 fi
13825                CFLAGS="$saved_CFLAGS"
13826 fi
13827 echo "$as_me:$LINENO: result: $ac_cv_ld_reloc_exec" >&5
13828 echo "${ECHO_T}$ac_cv_ld_reloc_exec" >&6
13829             if test "$ac_cv_ld_reloc_exec" = "yes"
13830             then
13831               LDEXECFLAGS="$LDEXECFLAGS -Wl,--section-start,.interp=0x00110400"
13832             fi
13833             ;;
13834         esac
13835
13836       else
13837         echo "$as_me:$LINENO: checking whether we can build a UnixWare (Solaris) dll" >&5
13838 echo $ECHO_N "checking whether we can build a UnixWare (Solaris) dll... $ECHO_C" >&6
13839 if test "${ac_cv_c_dll_unixware+set}" = set; then
13840   echo $ECHO_N "(cached) $ECHO_C" >&6
13841 else
13842   ac_wine_try_cflags_saved=$CFLAGS
13843 CFLAGS="$CFLAGS -fPIC -Wl,-G,-h,conftest.so.1.0,-B,symbolic"
13844 cat >conftest.$ac_ext <<_ACEOF
13845 /* confdefs.h.  */
13846 _ACEOF
13847 cat confdefs.h >>conftest.$ac_ext
13848 cat >>conftest.$ac_ext <<_ACEOF
13849 /* end confdefs.h.  */
13850
13851 int
13852 main ()
13853 {
13854
13855   ;
13856   return 0;
13857 }
13858 _ACEOF
13859 rm -f conftest.$ac_objext conftest$ac_exeext
13860 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13861   (eval $ac_link) 2>conftest.er1
13862   ac_status=$?
13863   grep -v '^ *+' conftest.er1 >conftest.err
13864   rm -f conftest.er1
13865   cat conftest.err >&5
13866   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13867   (exit $ac_status); } &&
13868          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
13869   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13870   (eval $ac_try) 2>&5
13871   ac_status=$?
13872   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13873   (exit $ac_status); }; } &&
13874          { ac_try='test -s conftest$ac_exeext'
13875   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13876   (eval $ac_try) 2>&5
13877   ac_status=$?
13878   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13879   (exit $ac_status); }; }; then
13880   ac_cv_c_dll_unixware="yes"
13881 else
13882   echo "$as_me: failed program was:" >&5
13883 sed 's/^/| /' conftest.$ac_ext >&5
13884
13885 ac_cv_c_dll_unixware="no"
13886 fi
13887 rm -f conftest.err conftest.$ac_objext \
13888       conftest$ac_exeext conftest.$ac_ext
13889 CFLAGS=$ac_wine_try_cflags_saved
13890 fi
13891 echo "$as_me:$LINENO: result: $ac_cv_c_dll_unixware" >&5
13892 echo "${ECHO_T}$ac_cv_c_dll_unixware" >&6
13893         if test "$ac_cv_c_dll_unixware" = "yes"
13894         then
13895           LDSHARED="\$(CC) -Wl,-G \$(SONAME:%=-Wl,-h,%)"
13896           LDDLL="\$(CC) -Wl,-G,-B,symbolic"
13897
13898         else
13899           echo "$as_me:$LINENO: checking whether we can build a Mach-O (Mac OS X/Darwin) dll" >&5
13900 echo $ECHO_N "checking whether we can build a Mach-O (Mac OS X/Darwin) dll... $ECHO_C" >&6
13901 if test "${ac_cv_c_dll_macho+set}" = set; then
13902   echo $ECHO_N "(cached) $ECHO_C" >&6
13903 else
13904   ac_wine_try_cflags_saved=$CFLAGS
13905 CFLAGS="$CFLAGS -bundle"
13906 cat >conftest.$ac_ext <<_ACEOF
13907 /* confdefs.h.  */
13908 _ACEOF
13909 cat confdefs.h >>conftest.$ac_ext
13910 cat >>conftest.$ac_ext <<_ACEOF
13911 /* end confdefs.h.  */
13912
13913 int
13914 main ()
13915 {
13916
13917   ;
13918   return 0;
13919 }
13920 _ACEOF
13921 rm -f conftest.$ac_objext conftest$ac_exeext
13922 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13923   (eval $ac_link) 2>conftest.er1
13924   ac_status=$?
13925   grep -v '^ *+' conftest.er1 >conftest.err
13926   rm -f conftest.er1
13927   cat conftest.err >&5
13928   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13929   (exit $ac_status); } &&
13930          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
13931   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13932   (eval $ac_try) 2>&5
13933   ac_status=$?
13934   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13935   (exit $ac_status); }; } &&
13936          { ac_try='test -s conftest$ac_exeext'
13937   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13938   (eval $ac_try) 2>&5
13939   ac_status=$?
13940   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13941   (exit $ac_status); }; }; then
13942   ac_cv_c_dll_macho="yes"
13943 else
13944   echo "$as_me: failed program was:" >&5
13945 sed 's/^/| /' conftest.$ac_ext >&5
13946
13947 ac_cv_c_dll_macho="no"
13948 fi
13949 rm -f conftest.err conftest.$ac_objext \
13950       conftest$ac_exeext conftest.$ac_ext
13951 CFLAGS=$ac_wine_try_cflags_saved
13952 fi
13953 echo "$as_me:$LINENO: result: $ac_cv_c_dll_macho" >&5
13954 echo "${ECHO_T}$ac_cv_c_dll_macho" >&6
13955           if test "$ac_cv_c_dll_macho" = "yes"
13956           then
13957             LIBEXT="dylib"
13958             LDDLL="\$(CC) -bundle -flat_namespace -undefined suppress"
13959             LDSHARED="\$(CC) -dynamiclib"
13960             CFLAGS="$CFLAGS -ffixed-r13 -no-cpp-precomp"
13961           fi
13962         fi
13963       fi
13964     fi
13965
13966         CROSSTEST=""
13967
13968     if test "$cross_compiling" = "no"
13969     then
13970       for ac_prog in i586-mingw32msvc-gcc i386-mingw32-gcc mingw-gcc
13971 do
13972   # Extract the first word of "$ac_prog", so it can be a program name with args.
13973 set dummy $ac_prog; ac_word=$2
13974 echo "$as_me:$LINENO: checking for $ac_word" >&5
13975 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13976 if test "${ac_cv_prog_CROSSCC+set}" = set; then
13977   echo $ECHO_N "(cached) $ECHO_C" >&6
13978 else
13979   if test -n "$CROSSCC"; then
13980   ac_cv_prog_CROSSCC="$CROSSCC" # Let the user override the test.
13981 else
13982 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13983 for as_dir in $PATH
13984 do
13985   IFS=$as_save_IFS
13986   test -z "$as_dir" && as_dir=.
13987   for ac_exec_ext in '' $ac_executable_extensions; do
13988   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13989     ac_cv_prog_CROSSCC="$ac_prog"
13990     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13991     break 2
13992   fi
13993 done
13994 done
13995
13996 fi
13997 fi
13998 CROSSCC=$ac_cv_prog_CROSSCC
13999 if test -n "$CROSSCC"; then
14000   echo "$as_me:$LINENO: result: $CROSSCC" >&5
14001 echo "${ECHO_T}$CROSSCC" >&6
14002 else
14003   echo "$as_me:$LINENO: result: no" >&5
14004 echo "${ECHO_T}no" >&6
14005 fi
14006
14007   test -n "$CROSSCC" && break
14008 done
14009 test -n "$CROSSCC" || CROSSCC="false"
14010
14011       for ac_prog in i586-mingw32msvc-dlltool i386-mingw32-dlltool mingw-dlltool
14012 do
14013   # Extract the first word of "$ac_prog", so it can be a program name with args.
14014 set dummy $ac_prog; ac_word=$2
14015 echo "$as_me:$LINENO: checking for $ac_word" >&5
14016 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14017 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
14018   echo $ECHO_N "(cached) $ECHO_C" >&6
14019 else
14020   if test -n "$DLLTOOL"; then
14021   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
14022 else
14023 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14024 for as_dir in $PATH
14025 do
14026   IFS=$as_save_IFS
14027   test -z "$as_dir" && as_dir=.
14028   for ac_exec_ext in '' $ac_executable_extensions; do
14029   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14030     ac_cv_prog_DLLTOOL="$ac_prog"
14031     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14032     break 2
14033   fi
14034 done
14035 done
14036
14037 fi
14038 fi
14039 DLLTOOL=$ac_cv_prog_DLLTOOL
14040 if test -n "$DLLTOOL"; then
14041   echo "$as_me:$LINENO: result: $DLLTOOL" >&5
14042 echo "${ECHO_T}$DLLTOOL" >&6
14043 else
14044   echo "$as_me:$LINENO: result: no" >&5
14045 echo "${ECHO_T}no" >&6
14046 fi
14047
14048   test -n "$DLLTOOL" && break
14049 done
14050 test -n "$DLLTOOL" || DLLTOOL="false"
14051
14052       for ac_prog in i586-mingw32msvc-windres i386-mingw32-windres mingw-windres
14053 do
14054   # Extract the first word of "$ac_prog", so it can be a program name with args.
14055 set dummy $ac_prog; ac_word=$2
14056 echo "$as_me:$LINENO: checking for $ac_word" >&5
14057 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14058 if test "${ac_cv_prog_CROSSWINDRES+set}" = set; then
14059   echo $ECHO_N "(cached) $ECHO_C" >&6
14060 else
14061   if test -n "$CROSSWINDRES"; then
14062   ac_cv_prog_CROSSWINDRES="$CROSSWINDRES" # Let the user override the test.
14063 else
14064 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14065 for as_dir in $PATH
14066 do
14067   IFS=$as_save_IFS
14068   test -z "$as_dir" && as_dir=.
14069   for ac_exec_ext in '' $ac_executable_extensions; do
14070   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14071     ac_cv_prog_CROSSWINDRES="$ac_prog"
14072     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14073     break 2
14074   fi
14075 done
14076 done
14077
14078 fi
14079 fi
14080 CROSSWINDRES=$ac_cv_prog_CROSSWINDRES
14081 if test -n "$CROSSWINDRES"; then
14082   echo "$as_me:$LINENO: result: $CROSSWINDRES" >&5
14083 echo "${ECHO_T}$CROSSWINDRES" >&6
14084 else
14085   echo "$as_me:$LINENO: result: no" >&5
14086 echo "${ECHO_T}no" >&6
14087 fi
14088
14089   test -n "$CROSSWINDRES" && break
14090 done
14091 test -n "$CROSSWINDRES" || CROSSWINDRES="false"
14092
14093       if test "$CROSSCC" != "false"; then CROSSTEST="\$(CROSSTEST)"; fi
14094     fi
14095     ;;
14096 esac
14097
14098 if test "$LIBEXT" = "a"; then
14099   { { echo "$as_me:$LINENO: error: could not find a way to build shared libraries.
14100 It is currently not possible to build Wine without shared library
14101 (.so) support to allow transparent switch between .so and .dll files.
14102 If you are using Linux, you will need a newer binutils.
14103 " >&5
14104 echo "$as_me: error: could not find a way to build shared libraries.
14105 It is currently not possible to build Wine without shared library
14106 (.so) support to allow transparent switch between .so and .dll files.
14107 If you are using Linux, you will need a newer binutils.
14108 " >&2;}
14109    { (exit 1); exit 1; }; }
14110 fi
14111
14112 case $build_os in
14113   cygwin*|mingw32*)
14114     LDPATH="PATH=\"\$(TOOLSDIR)/libs/unicode:\$\$PATH\""
14115  ;;
14116   darwin*|macosx*)
14117     LDPATH="DYLD_LIBRARY_PATH=\"\$(TOOLSDIR)/libs/unicode:\$\$DYLD_LIBRARY_PATH\""
14118  ;;
14119   *)
14120     LDPATH="LD_LIBRARY_PATH=\"\$(TOOLSDIR)/libs/unicode:\$\$LD_LIBRARY_PATH\""
14121  ;;
14122 esac
14123
14124 case $host_os in
14125   mingw32*)
14126     CRTLIBS="-lmsvcrt"
14127  ;;
14128 esac
14129
14130 case $host_os in
14131   linux*)
14132     WINE_BINARIES="wine-glibc wine-kthread wine-pthread"
14133
14134     MAIN_BINARY="wine-glibc"
14135
14136     ;;
14137   *)
14138     WINE_BINARIES="wine-kthread"
14139
14140     MAIN_BINARY="wine-kthread"
14141
14142     ;;
14143 esac
14144
14145
14146 if test "$LIBEXT" = "so"
14147 then
14148   # Extract the first word of "ldd", so it can be a program name with args.
14149 set dummy ldd; ac_word=$2
14150 echo "$as_me:$LINENO: checking for $ac_word" >&5
14151 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14152 if test "${ac_cv_path_LDD+set}" = set; then
14153   echo $ECHO_N "(cached) $ECHO_C" >&6
14154 else
14155   case $LDD in
14156   [\\/]* | ?:[\\/]*)
14157   ac_cv_path_LDD="$LDD" # Let the user override the test with a path.
14158   ;;
14159   *)
14160   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14161 as_dummy="/sbin:/usr/sbin:$PATH"
14162 for as_dir in $as_dummy
14163 do
14164   IFS=$as_save_IFS
14165   test -z "$as_dir" && as_dir=.
14166   for ac_exec_ext in '' $ac_executable_extensions; do
14167   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14168     ac_cv_path_LDD="$as_dir/$ac_word$ac_exec_ext"
14169     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14170     break 2
14171   fi
14172 done
14173 done
14174
14175   test -z "$ac_cv_path_LDD" && ac_cv_path_LDD="true"
14176   ;;
14177 esac
14178 fi
14179 LDD=$ac_cv_path_LDD
14180
14181 if test -n "$LDD"; then
14182   echo "$as_me:$LINENO: result: $LDD" >&5
14183 echo "${ECHO_T}$LDD" >&6
14184 else
14185   echo "$as_me:$LINENO: result: no" >&5
14186 echo "${ECHO_T}no" >&6
14187 fi
14188
14189
14190 echo "$as_me:$LINENO: checking for -lX11 soname" >&5
14191 echo $ECHO_N "checking for -lX11 soname... $ECHO_C" >&6
14192 if test "${ac_cv_lib_soname_X11+set}" = set; then
14193   echo $ECHO_N "(cached) $ECHO_C" >&6
14194 else
14195   ac_get_soname_save_LIBS=$LIBS
14196 LIBS="-lX11 $X_LIBS $X_EXTRA_LIBS $LIBS"
14197   cat >conftest.$ac_ext <<_ACEOF
14198 /* confdefs.h.  */
14199 _ACEOF
14200 cat confdefs.h >>conftest.$ac_ext
14201 cat >>conftest.$ac_ext <<_ACEOF
14202 /* end confdefs.h.  */
14203
14204 /* Override any gcc2 internal prototype to avoid an error.  */
14205 #ifdef __cplusplus
14206 extern "C"
14207 #endif
14208 /* We use char because int might match the return type of a gcc2
14209    builtin and then its argument prototype would still apply.  */
14210 char XCreateWindow ();
14211 int
14212 main ()
14213 {
14214 XCreateWindow ();
14215   ;
14216   return 0;
14217 }
14218 _ACEOF
14219 rm -f conftest.$ac_objext conftest$ac_exeext
14220 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14221   (eval $ac_link) 2>conftest.er1
14222   ac_status=$?
14223   grep -v '^ *+' conftest.er1 >conftest.err
14224   rm -f conftest.er1
14225   cat conftest.err >&5
14226   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14227   (exit $ac_status); } &&
14228          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
14229   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14230   (eval $ac_try) 2>&5
14231   ac_status=$?
14232   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14233   (exit $ac_status); }; } &&
14234          { ac_try='test -s conftest$ac_exeext'
14235   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14236   (eval $ac_try) 2>&5
14237   ac_status=$?
14238   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14239   (exit $ac_status); }; }; then
14240   ac_cv_lib_soname_X11=`$ac_cv_path_LDD conftest$ac_exeext | grep libX11\\.so | sed 's/^.*\(libX11\.so[^         ]*\).*$/\1/'`
14241   if test "x$ac_cv_lib_soname_X11" = "x"
14242   then
14243      ac_cv_lib_soname_X11="libX11.so"
14244   fi
14245 else
14246   echo "$as_me: failed program was:" >&5
14247 sed 's/^/| /' conftest.$ac_ext >&5
14248
14249 ac_cv_lib_soname_X11="libX11.so"
14250 fi
14251 rm -f conftest.err conftest.$ac_objext \
14252       conftest$ac_exeext conftest.$ac_ext
14253   LIBS=$ac_get_soname_save_LIBS
14254 fi
14255 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_X11" >&5
14256 echo "${ECHO_T}$ac_cv_lib_soname_X11" >&6
14257 if test "x$ac_cv_lib_soname_X11" != xNONE
14258 then
14259 cat >>confdefs.h <<_ACEOF
14260 #define SONAME_LIBX11 "$ac_cv_lib_soname_X11"
14261 _ACEOF
14262 fi
14263
14264 echo "$as_me:$LINENO: checking for -lXext soname" >&5
14265 echo $ECHO_N "checking for -lXext soname... $ECHO_C" >&6
14266 if test "${ac_cv_lib_soname_Xext+set}" = set; then
14267   echo $ECHO_N "(cached) $ECHO_C" >&6
14268 else
14269   ac_get_soname_save_LIBS=$LIBS
14270 LIBS="-lXext $X_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
14271   cat >conftest.$ac_ext <<_ACEOF
14272 /* confdefs.h.  */
14273 _ACEOF
14274 cat confdefs.h >>conftest.$ac_ext
14275 cat >>conftest.$ac_ext <<_ACEOF
14276 /* end confdefs.h.  */
14277
14278 /* Override any gcc2 internal prototype to avoid an error.  */
14279 #ifdef __cplusplus
14280 extern "C"
14281 #endif
14282 /* We use char because int might match the return type of a gcc2
14283    builtin and then its argument prototype would still apply.  */
14284 char XextCreateExtension ();
14285 int
14286 main ()
14287 {
14288 XextCreateExtension ();
14289   ;
14290   return 0;
14291 }
14292 _ACEOF
14293 rm -f conftest.$ac_objext conftest$ac_exeext
14294 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14295   (eval $ac_link) 2>conftest.er1
14296   ac_status=$?
14297   grep -v '^ *+' conftest.er1 >conftest.err
14298   rm -f conftest.er1
14299   cat conftest.err >&5
14300   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14301   (exit $ac_status); } &&
14302          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
14303   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14304   (eval $ac_try) 2>&5
14305   ac_status=$?
14306   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14307   (exit $ac_status); }; } &&
14308          { ac_try='test -s conftest$ac_exeext'
14309   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14310   (eval $ac_try) 2>&5
14311   ac_status=$?
14312   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14313   (exit $ac_status); }; }; then
14314   ac_cv_lib_soname_Xext=`$ac_cv_path_LDD conftest$ac_exeext | grep libXext\\.so | sed 's/^.*\(libXext\.so[^      ]*\).*$/\1/'`
14315   if test "x$ac_cv_lib_soname_Xext" = "x"
14316   then
14317      ac_cv_lib_soname_Xext="libXext.so"
14318   fi
14319 else
14320   echo "$as_me: failed program was:" >&5
14321 sed 's/^/| /' conftest.$ac_ext >&5
14322
14323 ac_cv_lib_soname_Xext="libXext.so"
14324 fi
14325 rm -f conftest.err conftest.$ac_objext \
14326       conftest$ac_exeext conftest.$ac_ext
14327   LIBS=$ac_get_soname_save_LIBS
14328 fi
14329 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_Xext" >&5
14330 echo "${ECHO_T}$ac_cv_lib_soname_Xext" >&6
14331 if test "x$ac_cv_lib_soname_Xext" != xNONE
14332 then
14333 cat >>confdefs.h <<_ACEOF
14334 #define SONAME_LIBXEXT "$ac_cv_lib_soname_Xext"
14335 _ACEOF
14336 fi
14337
14338 echo "$as_me:$LINENO: checking for -lXi soname" >&5
14339 echo $ECHO_N "checking for -lXi soname... $ECHO_C" >&6
14340 if test "${ac_cv_lib_soname_Xi+set}" = set; then
14341   echo $ECHO_N "(cached) $ECHO_C" >&6
14342 else
14343   ac_get_soname_save_LIBS=$LIBS
14344 LIBS="-lXi $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
14345   cat >conftest.$ac_ext <<_ACEOF
14346 /* confdefs.h.  */
14347 _ACEOF
14348 cat confdefs.h >>conftest.$ac_ext
14349 cat >>conftest.$ac_ext <<_ACEOF
14350 /* end confdefs.h.  */
14351
14352 /* Override any gcc2 internal prototype to avoid an error.  */
14353 #ifdef __cplusplus
14354 extern "C"
14355 #endif
14356 /* We use char because int might match the return type of a gcc2
14357    builtin and then its argument prototype would still apply.  */
14358 char XOpenDevice ();
14359 int
14360 main ()
14361 {
14362 XOpenDevice ();
14363   ;
14364   return 0;
14365 }
14366 _ACEOF
14367 rm -f conftest.$ac_objext conftest$ac_exeext
14368 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14369   (eval $ac_link) 2>conftest.er1
14370   ac_status=$?
14371   grep -v '^ *+' conftest.er1 >conftest.err
14372   rm -f conftest.er1
14373   cat conftest.err >&5
14374   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14375   (exit $ac_status); } &&
14376          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
14377   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14378   (eval $ac_try) 2>&5
14379   ac_status=$?
14380   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14381   (exit $ac_status); }; } &&
14382          { ac_try='test -s conftest$ac_exeext'
14383   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14384   (eval $ac_try) 2>&5
14385   ac_status=$?
14386   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14387   (exit $ac_status); }; }; then
14388   ac_cv_lib_soname_Xi=`$ac_cv_path_LDD conftest$ac_exeext | grep libXi\\.so | sed 's/^.*\(libXi\.so[^    ]*\).*$/\1/'`
14389   if test "x$ac_cv_lib_soname_Xi" = "x"
14390   then
14391      ac_cv_lib_soname_Xi="libXi.so"
14392   fi
14393 else
14394   echo "$as_me: failed program was:" >&5
14395 sed 's/^/| /' conftest.$ac_ext >&5
14396
14397 ac_cv_lib_soname_Xi="libXi.so"
14398 fi
14399 rm -f conftest.err conftest.$ac_objext \
14400       conftest$ac_exeext conftest.$ac_ext
14401   LIBS=$ac_get_soname_save_LIBS
14402 fi
14403 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_Xi" >&5
14404 echo "${ECHO_T}$ac_cv_lib_soname_Xi" >&6
14405 if test "x$ac_cv_lib_soname_Xi" != xNONE
14406 then
14407 cat >>confdefs.h <<_ACEOF
14408 #define SONAME_LIBXI "$ac_cv_lib_soname_Xi"
14409 _ACEOF
14410 fi
14411
14412 echo "$as_me:$LINENO: checking for -lXrender soname" >&5
14413 echo $ECHO_N "checking for -lXrender soname... $ECHO_C" >&6
14414 if test "${ac_cv_lib_soname_Xrender+set}" = set; then
14415   echo $ECHO_N "(cached) $ECHO_C" >&6
14416 else
14417   ac_get_soname_save_LIBS=$LIBS
14418 LIBS="-lXrender $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
14419   cat >conftest.$ac_ext <<_ACEOF
14420 /* confdefs.h.  */
14421 _ACEOF
14422 cat confdefs.h >>conftest.$ac_ext
14423 cat >>conftest.$ac_ext <<_ACEOF
14424 /* end confdefs.h.  */
14425
14426 /* Override any gcc2 internal prototype to avoid an error.  */
14427 #ifdef __cplusplus
14428 extern "C"
14429 #endif
14430 /* We use char because int might match the return type of a gcc2
14431    builtin and then its argument prototype would still apply.  */
14432 char XRenderQueryExtension ();
14433 int
14434 main ()
14435 {
14436 XRenderQueryExtension ();
14437   ;
14438   return 0;
14439 }
14440 _ACEOF
14441 rm -f conftest.$ac_objext conftest$ac_exeext
14442 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14443   (eval $ac_link) 2>conftest.er1
14444   ac_status=$?
14445   grep -v '^ *+' conftest.er1 >conftest.err
14446   rm -f conftest.er1
14447   cat conftest.err >&5
14448   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14449   (exit $ac_status); } &&
14450          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
14451   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14452   (eval $ac_try) 2>&5
14453   ac_status=$?
14454   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14455   (exit $ac_status); }; } &&
14456          { ac_try='test -s conftest$ac_exeext'
14457   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14458   (eval $ac_try) 2>&5
14459   ac_status=$?
14460   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14461   (exit $ac_status); }; }; then
14462   ac_cv_lib_soname_Xrender=`$ac_cv_path_LDD conftest$ac_exeext | grep libXrender\\.so | sed 's/^.*\(libXrender\.so[^     ]*\).*$/\1/'`
14463   if test "x$ac_cv_lib_soname_Xrender" = "x"
14464   then
14465      ac_cv_lib_soname_Xrender="libXrender.so"
14466   fi
14467 else
14468   echo "$as_me: failed program was:" >&5
14469 sed 's/^/| /' conftest.$ac_ext >&5
14470
14471 ac_cv_lib_soname_Xrender="libXrender.so"
14472 fi
14473 rm -f conftest.err conftest.$ac_objext \
14474       conftest$ac_exeext conftest.$ac_ext
14475   LIBS=$ac_get_soname_save_LIBS
14476 fi
14477 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_Xrender" >&5
14478 echo "${ECHO_T}$ac_cv_lib_soname_Xrender" >&6
14479 if test "x$ac_cv_lib_soname_Xrender" != xNONE
14480 then
14481 cat >>confdefs.h <<_ACEOF
14482 #define SONAME_LIBXRENDER "$ac_cv_lib_soname_Xrender"
14483 _ACEOF
14484 fi
14485
14486 echo "$as_me:$LINENO: checking for -lfreetype soname" >&5
14487 echo $ECHO_N "checking for -lfreetype soname... $ECHO_C" >&6
14488 if test "${ac_cv_lib_soname_freetype+set}" = set; then
14489   echo $ECHO_N "(cached) $ECHO_C" >&6
14490 else
14491   ac_get_soname_save_LIBS=$LIBS
14492 LIBS="-lfreetype $X_LIBS $LIBS"
14493   cat >conftest.$ac_ext <<_ACEOF
14494 /* confdefs.h.  */
14495 _ACEOF
14496 cat confdefs.h >>conftest.$ac_ext
14497 cat >>conftest.$ac_ext <<_ACEOF
14498 /* end confdefs.h.  */
14499
14500 /* Override any gcc2 internal prototype to avoid an error.  */
14501 #ifdef __cplusplus
14502 extern "C"
14503 #endif
14504 /* We use char because int might match the return type of a gcc2
14505    builtin and then its argument prototype would still apply.  */
14506 char FT_Init_FreeType ();
14507 int
14508 main ()
14509 {
14510 FT_Init_FreeType ();
14511   ;
14512   return 0;
14513 }
14514 _ACEOF
14515 rm -f conftest.$ac_objext conftest$ac_exeext
14516 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14517   (eval $ac_link) 2>conftest.er1
14518   ac_status=$?
14519   grep -v '^ *+' conftest.er1 >conftest.err
14520   rm -f conftest.er1
14521   cat conftest.err >&5
14522   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14523   (exit $ac_status); } &&
14524          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
14525   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14526   (eval $ac_try) 2>&5
14527   ac_status=$?
14528   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14529   (exit $ac_status); }; } &&
14530          { ac_try='test -s conftest$ac_exeext'
14531   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14532   (eval $ac_try) 2>&5
14533   ac_status=$?
14534   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14535   (exit $ac_status); }; }; then
14536   ac_cv_lib_soname_freetype=`$ac_cv_path_LDD conftest$ac_exeext | grep libfreetype\\.so | sed 's/^.*\(libfreetype\.so[^  ]*\).*$/\1/'`
14537   if test "x$ac_cv_lib_soname_freetype" = "x"
14538   then
14539      ac_cv_lib_soname_freetype="libfreetype.so"
14540   fi
14541 else
14542   echo "$as_me: failed program was:" >&5
14543 sed 's/^/| /' conftest.$ac_ext >&5
14544
14545 ac_cv_lib_soname_freetype="libfreetype.so"
14546 fi
14547 rm -f conftest.err conftest.$ac_objext \
14548       conftest$ac_exeext conftest.$ac_ext
14549   LIBS=$ac_get_soname_save_LIBS
14550 fi
14551 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_freetype" >&5
14552 echo "${ECHO_T}$ac_cv_lib_soname_freetype" >&6
14553 if test "x$ac_cv_lib_soname_freetype" != xNONE
14554 then
14555 cat >>confdefs.h <<_ACEOF
14556 #define SONAME_LIBFREETYPE "$ac_cv_lib_soname_freetype"
14557 _ACEOF
14558 fi
14559
14560 echo "$as_me:$LINENO: checking for -lGL soname" >&5
14561 echo $ECHO_N "checking for -lGL soname... $ECHO_C" >&6
14562 if test "${ac_cv_lib_soname_GL+set}" = set; then
14563   echo $ECHO_N "(cached) $ECHO_C" >&6
14564 else
14565   ac_get_soname_save_LIBS=$LIBS
14566 LIBS="-lGL $X_LIBS $X_EXTRA_LIBS $LIBS"
14567   cat >conftest.$ac_ext <<_ACEOF
14568 /* confdefs.h.  */
14569 _ACEOF
14570 cat confdefs.h >>conftest.$ac_ext
14571 cat >>conftest.$ac_ext <<_ACEOF
14572 /* end confdefs.h.  */
14573
14574 /* Override any gcc2 internal prototype to avoid an error.  */
14575 #ifdef __cplusplus
14576 extern "C"
14577 #endif
14578 /* We use char because int might match the return type of a gcc2
14579    builtin and then its argument prototype would still apply.  */
14580 char glXQueryExtension ();
14581 int
14582 main ()
14583 {
14584 glXQueryExtension ();
14585   ;
14586   return 0;
14587 }
14588 _ACEOF
14589 rm -f conftest.$ac_objext conftest$ac_exeext
14590 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14591   (eval $ac_link) 2>conftest.er1
14592   ac_status=$?
14593   grep -v '^ *+' conftest.er1 >conftest.err
14594   rm -f conftest.er1
14595   cat conftest.err >&5
14596   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14597   (exit $ac_status); } &&
14598          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
14599   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14600   (eval $ac_try) 2>&5
14601   ac_status=$?
14602   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14603   (exit $ac_status); }; } &&
14604          { ac_try='test -s conftest$ac_exeext'
14605   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14606   (eval $ac_try) 2>&5
14607   ac_status=$?
14608   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14609   (exit $ac_status); }; }; then
14610   ac_cv_lib_soname_GL=`$ac_cv_path_LDD conftest$ac_exeext | grep libGL\\.so | sed 's/^.*\(libGL\.so[^    ]*\).*$/\1/'`
14611   if test "x$ac_cv_lib_soname_GL" = "x"
14612   then
14613      ac_cv_lib_soname_GL="libGL.so"
14614   fi
14615 else
14616   echo "$as_me: failed program was:" >&5
14617 sed 's/^/| /' conftest.$ac_ext >&5
14618
14619 ac_cv_lib_soname_GL="libGL.so"
14620 fi
14621 rm -f conftest.err conftest.$ac_objext \
14622       conftest$ac_exeext conftest.$ac_ext
14623   LIBS=$ac_get_soname_save_LIBS
14624 fi
14625 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_GL" >&5
14626 echo "${ECHO_T}$ac_cv_lib_soname_GL" >&6
14627 if test "x$ac_cv_lib_soname_GL" != xNONE
14628 then
14629 cat >>confdefs.h <<_ACEOF
14630 #define SONAME_LIBGL "$ac_cv_lib_soname_GL"
14631 _ACEOF
14632 fi
14633
14634 echo "$as_me:$LINENO: checking for -lcups soname" >&5
14635 echo $ECHO_N "checking for -lcups soname... $ECHO_C" >&6
14636 if test "${ac_cv_lib_soname_cups+set}" = set; then
14637   echo $ECHO_N "(cached) $ECHO_C" >&6
14638 else
14639   ac_get_soname_save_LIBS=$LIBS
14640 LIBS="-lcups  $LIBS"
14641   cat >conftest.$ac_ext <<_ACEOF
14642 /* confdefs.h.  */
14643 _ACEOF
14644 cat confdefs.h >>conftest.$ac_ext
14645 cat >>conftest.$ac_ext <<_ACEOF
14646 /* end confdefs.h.  */
14647
14648 /* Override any gcc2 internal prototype to avoid an error.  */
14649 #ifdef __cplusplus
14650 extern "C"
14651 #endif
14652 /* We use char because int might match the return type of a gcc2
14653    builtin and then its argument prototype would still apply.  */
14654 char cupsGetDefault ();
14655 int
14656 main ()
14657 {
14658 cupsGetDefault ();
14659   ;
14660   return 0;
14661 }
14662 _ACEOF
14663 rm -f conftest.$ac_objext conftest$ac_exeext
14664 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14665   (eval $ac_link) 2>conftest.er1
14666   ac_status=$?
14667   grep -v '^ *+' conftest.er1 >conftest.err
14668   rm -f conftest.er1
14669   cat conftest.err >&5
14670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14671   (exit $ac_status); } &&
14672          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
14673   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14674   (eval $ac_try) 2>&5
14675   ac_status=$?
14676   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14677   (exit $ac_status); }; } &&
14678          { ac_try='test -s conftest$ac_exeext'
14679   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14680   (eval $ac_try) 2>&5
14681   ac_status=$?
14682   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14683   (exit $ac_status); }; }; then
14684   ac_cv_lib_soname_cups=`$ac_cv_path_LDD conftest$ac_exeext | grep libcups\\.so | sed 's/^.*\(libcups\.so[^      ]*\).*$/\1/'`
14685   if test "x$ac_cv_lib_soname_cups" = "x"
14686   then
14687      ac_cv_lib_soname_cups="libcups.so"
14688   fi
14689 else
14690   echo "$as_me: failed program was:" >&5
14691 sed 's/^/| /' conftest.$ac_ext >&5
14692
14693 ac_cv_lib_soname_cups="libcups.so"
14694 fi
14695 rm -f conftest.err conftest.$ac_objext \
14696       conftest$ac_exeext conftest.$ac_ext
14697   LIBS=$ac_get_soname_save_LIBS
14698 fi
14699 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_cups" >&5
14700 echo "${ECHO_T}$ac_cv_lib_soname_cups" >&6
14701 if test "x$ac_cv_lib_soname_cups" != xNONE
14702 then
14703 cat >>confdefs.h <<_ACEOF
14704 #define SONAME_LIBCUPS "$ac_cv_lib_soname_cups"
14705 _ACEOF
14706 fi
14707
14708 echo "$as_me:$LINENO: checking for -ljack soname" >&5
14709 echo $ECHO_N "checking for -ljack soname... $ECHO_C" >&6
14710 if test "${ac_cv_lib_soname_jack+set}" = set; then
14711   echo $ECHO_N "(cached) $ECHO_C" >&6
14712 else
14713   ac_get_soname_save_LIBS=$LIBS
14714 LIBS="-ljack  $LIBS"
14715   cat >conftest.$ac_ext <<_ACEOF
14716 /* confdefs.h.  */
14717 _ACEOF
14718 cat confdefs.h >>conftest.$ac_ext
14719 cat >>conftest.$ac_ext <<_ACEOF
14720 /* end confdefs.h.  */
14721
14722 /* Override any gcc2 internal prototype to avoid an error.  */
14723 #ifdef __cplusplus
14724 extern "C"
14725 #endif
14726 /* We use char because int might match the return type of a gcc2
14727    builtin and then its argument prototype would still apply.  */
14728 char jack_client_new ();
14729 int
14730 main ()
14731 {
14732 jack_client_new ();
14733   ;
14734   return 0;
14735 }
14736 _ACEOF
14737 rm -f conftest.$ac_objext conftest$ac_exeext
14738 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14739   (eval $ac_link) 2>conftest.er1
14740   ac_status=$?
14741   grep -v '^ *+' conftest.er1 >conftest.err
14742   rm -f conftest.er1
14743   cat conftest.err >&5
14744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14745   (exit $ac_status); } &&
14746          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
14747   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14748   (eval $ac_try) 2>&5
14749   ac_status=$?
14750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14751   (exit $ac_status); }; } &&
14752          { ac_try='test -s conftest$ac_exeext'
14753   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14754   (eval $ac_try) 2>&5
14755   ac_status=$?
14756   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14757   (exit $ac_status); }; }; then
14758   ac_cv_lib_soname_jack=`$ac_cv_path_LDD conftest$ac_exeext | grep libjack\\.so | sed 's/^.*\(libjack\.so[^      ]*\).*$/\1/'`
14759   if test "x$ac_cv_lib_soname_jack" = "x"
14760   then
14761      ac_cv_lib_soname_jack="libjack.so"
14762   fi
14763 else
14764   echo "$as_me: failed program was:" >&5
14765 sed 's/^/| /' conftest.$ac_ext >&5
14766
14767 ac_cv_lib_soname_jack="libjack.so"
14768 fi
14769 rm -f conftest.err conftest.$ac_objext \
14770       conftest$ac_exeext conftest.$ac_ext
14771   LIBS=$ac_get_soname_save_LIBS
14772 fi
14773 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_jack" >&5
14774 echo "${ECHO_T}$ac_cv_lib_soname_jack" >&6
14775 if test "x$ac_cv_lib_soname_jack" != xNONE
14776 then
14777 cat >>confdefs.h <<_ACEOF
14778 #define SONAME_LIBJACK "$ac_cv_lib_soname_jack"
14779 _ACEOF
14780 fi
14781
14782 echo "$as_me:$LINENO: checking for -lfontconfig soname" >&5
14783 echo $ECHO_N "checking for -lfontconfig soname... $ECHO_C" >&6
14784 if test "${ac_cv_lib_soname_fontconfig+set}" = set; then
14785   echo $ECHO_N "(cached) $ECHO_C" >&6
14786 else
14787   ac_get_soname_save_LIBS=$LIBS
14788 LIBS="-lfontconfig  $LIBS"
14789   cat >conftest.$ac_ext <<_ACEOF
14790 /* confdefs.h.  */
14791 _ACEOF
14792 cat confdefs.h >>conftest.$ac_ext
14793 cat >>conftest.$ac_ext <<_ACEOF
14794 /* end confdefs.h.  */
14795
14796 /* Override any gcc2 internal prototype to avoid an error.  */
14797 #ifdef __cplusplus
14798 extern "C"
14799 #endif
14800 /* We use char because int might match the return type of a gcc2
14801    builtin and then its argument prototype would still apply.  */
14802 char FcInit ();
14803 int
14804 main ()
14805 {
14806 FcInit ();
14807   ;
14808   return 0;
14809 }
14810 _ACEOF
14811 rm -f conftest.$ac_objext conftest$ac_exeext
14812 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14813   (eval $ac_link) 2>conftest.er1
14814   ac_status=$?
14815   grep -v '^ *+' conftest.er1 >conftest.err
14816   rm -f conftest.er1
14817   cat conftest.err >&5
14818   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14819   (exit $ac_status); } &&
14820          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
14821   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14822   (eval $ac_try) 2>&5
14823   ac_status=$?
14824   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14825   (exit $ac_status); }; } &&
14826          { ac_try='test -s conftest$ac_exeext'
14827   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14828   (eval $ac_try) 2>&5
14829   ac_status=$?
14830   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14831   (exit $ac_status); }; }; then
14832   ac_cv_lib_soname_fontconfig=`$ac_cv_path_LDD conftest$ac_exeext | grep libfontconfig\\.so | sed 's/^.*\(libfontconfig\.so[^    ]*\).*$/\1/'`
14833   if test "x$ac_cv_lib_soname_fontconfig" = "x"
14834   then
14835      ac_cv_lib_soname_fontconfig="libfontconfig.so"
14836   fi
14837 else
14838   echo "$as_me: failed program was:" >&5
14839 sed 's/^/| /' conftest.$ac_ext >&5
14840
14841 ac_cv_lib_soname_fontconfig="libfontconfig.so"
14842 fi
14843 rm -f conftest.err conftest.$ac_objext \
14844       conftest$ac_exeext conftest.$ac_ext
14845   LIBS=$ac_get_soname_save_LIBS
14846 fi
14847 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_fontconfig" >&5
14848 echo "${ECHO_T}$ac_cv_lib_soname_fontconfig" >&6
14849 if test "x$ac_cv_lib_soname_fontconfig" != xNONE
14850 then
14851 cat >>confdefs.h <<_ACEOF
14852 #define SONAME_LIBFONTCONFIG "$ac_cv_lib_soname_fontconfig"
14853 _ACEOF
14854 fi
14855
14856 echo "$as_me:$LINENO: checking for -lssl soname" >&5
14857 echo $ECHO_N "checking for -lssl soname... $ECHO_C" >&6
14858 if test "${ac_cv_lib_soname_ssl+set}" = set; then
14859   echo $ECHO_N "(cached) $ECHO_C" >&6
14860 else
14861   ac_get_soname_save_LIBS=$LIBS
14862 LIBS="-lssl  $LIBS"
14863   cat >conftest.$ac_ext <<_ACEOF
14864 /* confdefs.h.  */
14865 _ACEOF
14866 cat confdefs.h >>conftest.$ac_ext
14867 cat >>conftest.$ac_ext <<_ACEOF
14868 /* end confdefs.h.  */
14869
14870 /* Override any gcc2 internal prototype to avoid an error.  */
14871 #ifdef __cplusplus
14872 extern "C"
14873 #endif
14874 /* We use char because int might match the return type of a gcc2
14875    builtin and then its argument prototype would still apply.  */
14876 char SSL_library_init ();
14877 int
14878 main ()
14879 {
14880 SSL_library_init ();
14881   ;
14882   return 0;
14883 }
14884 _ACEOF
14885 rm -f conftest.$ac_objext conftest$ac_exeext
14886 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14887   (eval $ac_link) 2>conftest.er1
14888   ac_status=$?
14889   grep -v '^ *+' conftest.er1 >conftest.err
14890   rm -f conftest.er1
14891   cat conftest.err >&5
14892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14893   (exit $ac_status); } &&
14894          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
14895   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14896   (eval $ac_try) 2>&5
14897   ac_status=$?
14898   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14899   (exit $ac_status); }; } &&
14900          { ac_try='test -s conftest$ac_exeext'
14901   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14902   (eval $ac_try) 2>&5
14903   ac_status=$?
14904   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14905   (exit $ac_status); }; }; then
14906   ac_cv_lib_soname_ssl=`$ac_cv_path_LDD conftest$ac_exeext | grep libssl\\.so | sed 's/^.*\(libssl\.so[^         ]*\).*$/\1/'`
14907   if test "x$ac_cv_lib_soname_ssl" = "x"
14908   then
14909      ac_cv_lib_soname_ssl="libssl.so"
14910   fi
14911 else
14912   echo "$as_me: failed program was:" >&5
14913 sed 's/^/| /' conftest.$ac_ext >&5
14914
14915 ac_cv_lib_soname_ssl="libssl.so"
14916 fi
14917 rm -f conftest.err conftest.$ac_objext \
14918       conftest$ac_exeext conftest.$ac_ext
14919   LIBS=$ac_get_soname_save_LIBS
14920 fi
14921 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_ssl" >&5
14922 echo "${ECHO_T}$ac_cv_lib_soname_ssl" >&6
14923 if test "x$ac_cv_lib_soname_ssl" != xNONE
14924 then
14925 cat >>confdefs.h <<_ACEOF
14926 #define SONAME_LIBSSL "$ac_cv_lib_soname_ssl"
14927 _ACEOF
14928 fi
14929
14930 echo "$as_me:$LINENO: checking for -lcrypto soname" >&5
14931 echo $ECHO_N "checking for -lcrypto soname... $ECHO_C" >&6
14932 if test "${ac_cv_lib_soname_crypto+set}" = set; then
14933   echo $ECHO_N "(cached) $ECHO_C" >&6
14934 else
14935   ac_get_soname_save_LIBS=$LIBS
14936 LIBS="-lcrypto  $LIBS"
14937   cat >conftest.$ac_ext <<_ACEOF
14938 /* confdefs.h.  */
14939 _ACEOF
14940 cat confdefs.h >>conftest.$ac_ext
14941 cat >>conftest.$ac_ext <<_ACEOF
14942 /* end confdefs.h.  */
14943
14944 /* Override any gcc2 internal prototype to avoid an error.  */
14945 #ifdef __cplusplus
14946 extern "C"
14947 #endif
14948 /* We use char because int might match the return type of a gcc2
14949    builtin and then its argument prototype would still apply.  */
14950 char BIO_new_socket ();
14951 int
14952 main ()
14953 {
14954 BIO_new_socket ();
14955   ;
14956   return 0;
14957 }
14958 _ACEOF
14959 rm -f conftest.$ac_objext conftest$ac_exeext
14960 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14961   (eval $ac_link) 2>conftest.er1
14962   ac_status=$?
14963   grep -v '^ *+' conftest.er1 >conftest.err
14964   rm -f conftest.er1
14965   cat conftest.err >&5
14966   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14967   (exit $ac_status); } &&
14968          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
14969   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14970   (eval $ac_try) 2>&5
14971   ac_status=$?
14972   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14973   (exit $ac_status); }; } &&
14974          { ac_try='test -s conftest$ac_exeext'
14975   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14976   (eval $ac_try) 2>&5
14977   ac_status=$?
14978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14979   (exit $ac_status); }; }; then
14980   ac_cv_lib_soname_crypto=`$ac_cv_path_LDD conftest$ac_exeext | grep libcrypto\\.so | sed 's/^.*\(libcrypto\.so[^        ]*\).*$/\1/'`
14981   if test "x$ac_cv_lib_soname_crypto" = "x"
14982   then
14983      ac_cv_lib_soname_crypto="libcrypto.so"
14984   fi
14985 else
14986   echo "$as_me: failed program was:" >&5
14987 sed 's/^/| /' conftest.$ac_ext >&5
14988
14989 ac_cv_lib_soname_crypto="libcrypto.so"
14990 fi
14991 rm -f conftest.err conftest.$ac_objext \
14992       conftest$ac_exeext conftest.$ac_ext
14993   LIBS=$ac_get_soname_save_LIBS
14994 fi
14995 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_crypto" >&5
14996 echo "${ECHO_T}$ac_cv_lib_soname_crypto" >&6
14997 if test "x$ac_cv_lib_soname_crypto" != xNONE
14998 then
14999 cat >>confdefs.h <<_ACEOF
15000 #define SONAME_LIBCRYPTO "$ac_cv_lib_soname_crypto"
15001 _ACEOF
15002 fi
15003
15004 echo "$as_me:$LINENO: checking for -lncurses soname" >&5
15005 echo $ECHO_N "checking for -lncurses soname... $ECHO_C" >&6
15006 if test "${ac_cv_lib_soname_ncurses+set}" = set; then
15007   echo $ECHO_N "(cached) $ECHO_C" >&6
15008 else
15009   ac_get_soname_save_LIBS=$LIBS
15010 LIBS="-lncurses  $LIBS"
15011   cat >conftest.$ac_ext <<_ACEOF
15012 /* confdefs.h.  */
15013 _ACEOF
15014 cat confdefs.h >>conftest.$ac_ext
15015 cat >>conftest.$ac_ext <<_ACEOF
15016 /* end confdefs.h.  */
15017
15018 /* Override any gcc2 internal prototype to avoid an error.  */
15019 #ifdef __cplusplus
15020 extern "C"
15021 #endif
15022 /* We use char because int might match the return type of a gcc2
15023    builtin and then its argument prototype would still apply.  */
15024 char waddch ();
15025 int
15026 main ()
15027 {
15028 waddch ();
15029   ;
15030   return 0;
15031 }
15032 _ACEOF
15033 rm -f conftest.$ac_objext conftest$ac_exeext
15034 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15035   (eval $ac_link) 2>conftest.er1
15036   ac_status=$?
15037   grep -v '^ *+' conftest.er1 >conftest.err
15038   rm -f conftest.er1
15039   cat conftest.err >&5
15040   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15041   (exit $ac_status); } &&
15042          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
15043   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15044   (eval $ac_try) 2>&5
15045   ac_status=$?
15046   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15047   (exit $ac_status); }; } &&
15048          { ac_try='test -s conftest$ac_exeext'
15049   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15050   (eval $ac_try) 2>&5
15051   ac_status=$?
15052   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15053   (exit $ac_status); }; }; then
15054   ac_cv_lib_soname_ncurses=`$ac_cv_path_LDD conftest$ac_exeext | grep libncurses\\.so | sed 's/^.*\(libncurses\.so[^     ]*\).*$/\1/'`
15055   if test "x$ac_cv_lib_soname_ncurses" = "x"
15056   then
15057      ac_cv_lib_soname_ncurses="libncurses.so"
15058   fi
15059 else
15060   echo "$as_me: failed program was:" >&5
15061 sed 's/^/| /' conftest.$ac_ext >&5
15062
15063 ac_cv_lib_soname_ncurses="libncurses.so"
15064 fi
15065 rm -f conftest.err conftest.$ac_objext \
15066       conftest$ac_exeext conftest.$ac_ext
15067   LIBS=$ac_get_soname_save_LIBS
15068 fi
15069 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_ncurses" >&5
15070 echo "${ECHO_T}$ac_cv_lib_soname_ncurses" >&6
15071 if test "x$ac_cv_lib_soname_ncurses" != xNONE
15072 then
15073 cat >>confdefs.h <<_ACEOF
15074 #define SONAME_LIBNCURSES "$ac_cv_lib_soname_ncurses"
15075 _ACEOF
15076 fi
15077
15078 echo "$as_me:$LINENO: checking for -lcurses soname" >&5
15079 echo $ECHO_N "checking for -lcurses soname... $ECHO_C" >&6
15080 if test "${ac_cv_lib_soname_curses+set}" = set; then
15081   echo $ECHO_N "(cached) $ECHO_C" >&6
15082 else
15083   ac_get_soname_save_LIBS=$LIBS
15084 LIBS="-lcurses  $LIBS"
15085   cat >conftest.$ac_ext <<_ACEOF
15086 /* confdefs.h.  */
15087 _ACEOF
15088 cat confdefs.h >>conftest.$ac_ext
15089 cat >>conftest.$ac_ext <<_ACEOF
15090 /* end confdefs.h.  */
15091
15092 /* Override any gcc2 internal prototype to avoid an error.  */
15093 #ifdef __cplusplus
15094 extern "C"
15095 #endif
15096 /* We use char because int might match the return type of a gcc2
15097    builtin and then its argument prototype would still apply.  */
15098 char waddch ();
15099 int
15100 main ()
15101 {
15102 waddch ();
15103   ;
15104   return 0;
15105 }
15106 _ACEOF
15107 rm -f conftest.$ac_objext conftest$ac_exeext
15108 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15109   (eval $ac_link) 2>conftest.er1
15110   ac_status=$?
15111   grep -v '^ *+' conftest.er1 >conftest.err
15112   rm -f conftest.er1
15113   cat conftest.err >&5
15114   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15115   (exit $ac_status); } &&
15116          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
15117   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15118   (eval $ac_try) 2>&5
15119   ac_status=$?
15120   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15121   (exit $ac_status); }; } &&
15122          { ac_try='test -s conftest$ac_exeext'
15123   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15124   (eval $ac_try) 2>&5
15125   ac_status=$?
15126   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15127   (exit $ac_status); }; }; then
15128   ac_cv_lib_soname_curses=`$ac_cv_path_LDD conftest$ac_exeext | grep libcurses\\.so | sed 's/^.*\(libcurses\.so[^        ]*\).*$/\1/'`
15129   if test "x$ac_cv_lib_soname_curses" = "x"
15130   then
15131      ac_cv_lib_soname_curses="libcurses.so"
15132   fi
15133 else
15134   echo "$as_me: failed program was:" >&5
15135 sed 's/^/| /' conftest.$ac_ext >&5
15136
15137 ac_cv_lib_soname_curses="libcurses.so"
15138 fi
15139 rm -f conftest.err conftest.$ac_objext \
15140       conftest$ac_exeext conftest.$ac_ext
15141   LIBS=$ac_get_soname_save_LIBS
15142 fi
15143 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_curses" >&5
15144 echo "${ECHO_T}$ac_cv_lib_soname_curses" >&6
15145 if test "x$ac_cv_lib_soname_curses" != xNONE
15146 then
15147 cat >>confdefs.h <<_ACEOF
15148 #define SONAME_LIBCURSES "$ac_cv_lib_soname_curses"
15149 _ACEOF
15150 fi
15151 fi
15152
15153
15154
15155 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
15156 # for constant arguments.  Useless!
15157 echo "$as_me:$LINENO: checking for working alloca.h" >&5
15158 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
15159 if test "${ac_cv_working_alloca_h+set}" = set; then
15160   echo $ECHO_N "(cached) $ECHO_C" >&6
15161 else
15162   cat >conftest.$ac_ext <<_ACEOF
15163 /* confdefs.h.  */
15164 _ACEOF
15165 cat confdefs.h >>conftest.$ac_ext
15166 cat >>conftest.$ac_ext <<_ACEOF
15167 /* end confdefs.h.  */
15168 #include <alloca.h>
15169 int
15170 main ()
15171 {
15172 char *p = (char *) alloca (2 * sizeof (int));
15173   ;
15174   return 0;
15175 }
15176 _ACEOF
15177 rm -f conftest.$ac_objext conftest$ac_exeext
15178 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15179   (eval $ac_link) 2>conftest.er1
15180   ac_status=$?
15181   grep -v '^ *+' conftest.er1 >conftest.err
15182   rm -f conftest.er1
15183   cat conftest.err >&5
15184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15185   (exit $ac_status); } &&
15186          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
15187   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15188   (eval $ac_try) 2>&5
15189   ac_status=$?
15190   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15191   (exit $ac_status); }; } &&
15192          { ac_try='test -s conftest$ac_exeext'
15193   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15194   (eval $ac_try) 2>&5
15195   ac_status=$?
15196   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15197   (exit $ac_status); }; }; then
15198   ac_cv_working_alloca_h=yes
15199 else
15200   echo "$as_me: failed program was:" >&5
15201 sed 's/^/| /' conftest.$ac_ext >&5
15202
15203 ac_cv_working_alloca_h=no
15204 fi
15205 rm -f conftest.err conftest.$ac_objext \
15206       conftest$ac_exeext conftest.$ac_ext
15207 fi
15208 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
15209 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
15210 if test $ac_cv_working_alloca_h = yes; then
15211
15212 cat >>confdefs.h <<\_ACEOF
15213 #define HAVE_ALLOCA_H 1
15214 _ACEOF
15215
15216 fi
15217
15218 echo "$as_me:$LINENO: checking for alloca" >&5
15219 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
15220 if test "${ac_cv_func_alloca_works+set}" = set; then
15221   echo $ECHO_N "(cached) $ECHO_C" >&6
15222 else
15223   cat >conftest.$ac_ext <<_ACEOF
15224 /* confdefs.h.  */
15225 _ACEOF
15226 cat confdefs.h >>conftest.$ac_ext
15227 cat >>conftest.$ac_ext <<_ACEOF
15228 /* end confdefs.h.  */
15229 #ifdef __GNUC__
15230 # define alloca __builtin_alloca
15231 #else
15232 # ifdef _MSC_VER
15233 #  include <malloc.h>
15234 #  define alloca _alloca
15235 # else
15236 #  if HAVE_ALLOCA_H
15237 #   include <alloca.h>
15238 #  else
15239 #   ifdef _AIX
15240  #pragma alloca
15241 #   else
15242 #    ifndef alloca /* predefined by HP cc +Olibcalls */
15243 char *alloca ();
15244 #    endif
15245 #   endif
15246 #  endif
15247 # endif
15248 #endif
15249
15250 int
15251 main ()
15252 {
15253 char *p = (char *) alloca (1);
15254   ;
15255   return 0;
15256 }
15257 _ACEOF
15258 rm -f conftest.$ac_objext conftest$ac_exeext
15259 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15260   (eval $ac_link) 2>conftest.er1
15261   ac_status=$?
15262   grep -v '^ *+' conftest.er1 >conftest.err
15263   rm -f conftest.er1
15264   cat conftest.err >&5
15265   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15266   (exit $ac_status); } &&
15267          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
15268   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15269   (eval $ac_try) 2>&5
15270   ac_status=$?
15271   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15272   (exit $ac_status); }; } &&
15273          { ac_try='test -s conftest$ac_exeext'
15274   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15275   (eval $ac_try) 2>&5
15276   ac_status=$?
15277   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15278   (exit $ac_status); }; }; then
15279   ac_cv_func_alloca_works=yes
15280 else
15281   echo "$as_me: failed program was:" >&5
15282 sed 's/^/| /' conftest.$ac_ext >&5
15283
15284 ac_cv_func_alloca_works=no
15285 fi
15286 rm -f conftest.err conftest.$ac_objext \
15287       conftest$ac_exeext conftest.$ac_ext
15288 fi
15289 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
15290 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
15291
15292 if test $ac_cv_func_alloca_works = yes; then
15293
15294 cat >>confdefs.h <<\_ACEOF
15295 #define HAVE_ALLOCA 1
15296 _ACEOF
15297
15298 else
15299   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
15300 # that cause trouble.  Some versions do not even contain alloca or
15301 # contain a buggy version.  If you still want to use their alloca,
15302 # use ar to extract alloca.o from them instead of compiling alloca.c.
15303
15304 ALLOCA=alloca.$ac_objext
15305
15306 cat >>confdefs.h <<\_ACEOF
15307 #define C_ALLOCA 1
15308 _ACEOF
15309
15310
15311 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
15312 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
15313 if test "${ac_cv_os_cray+set}" = set; then
15314   echo $ECHO_N "(cached) $ECHO_C" >&6
15315 else
15316   cat >conftest.$ac_ext <<_ACEOF
15317 /* confdefs.h.  */
15318 _ACEOF
15319 cat confdefs.h >>conftest.$ac_ext
15320 cat >>conftest.$ac_ext <<_ACEOF
15321 /* end confdefs.h.  */
15322 #if defined(CRAY) && ! defined(CRAY2)
15323 webecray
15324 #else
15325 wenotbecray
15326 #endif
15327
15328 _ACEOF
15329 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15330   $EGREP "webecray" >/dev/null 2>&1; then
15331   ac_cv_os_cray=yes
15332 else
15333   ac_cv_os_cray=no
15334 fi
15335 rm -f conftest*
15336
15337 fi
15338 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
15339 echo "${ECHO_T}$ac_cv_os_cray" >&6
15340 if test $ac_cv_os_cray = yes; then
15341   for ac_func in _getb67 GETB67 getb67; do
15342     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15343 echo "$as_me:$LINENO: checking for $ac_func" >&5
15344 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15345 if eval "test \"\${$as_ac_var+set}\" = set"; then
15346   echo $ECHO_N "(cached) $ECHO_C" >&6
15347 else
15348   cat >conftest.$ac_ext <<_ACEOF
15349 /* confdefs.h.  */
15350 _ACEOF
15351 cat confdefs.h >>conftest.$ac_ext
15352 cat >>conftest.$ac_ext <<_ACEOF
15353 /* end confdefs.h.  */
15354 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15355    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15356 #define $ac_func innocuous_$ac_func
15357
15358 /* System header to define __stub macros and hopefully few prototypes,
15359     which can conflict with char $ac_func (); below.
15360     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15361     <limits.h> exists even on freestanding compilers.  */
15362
15363 #ifdef __STDC__
15364 # include <limits.h>
15365 #else
15366 # include <assert.h>
15367 #endif
15368
15369 #undef $ac_func
15370
15371 /* Override any gcc2 internal prototype to avoid an error.  */
15372 #ifdef __cplusplus
15373 extern "C"
15374 {
15375 #endif
15376 /* We use char because int might match the return type of a gcc2
15377    builtin and then its argument prototype would still apply.  */
15378 char $ac_func ();
15379 /* The GNU C library defines this for functions which it implements
15380     to always fail with ENOSYS.  Some functions are actually named
15381     something starting with __ and the normal name is an alias.  */
15382 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15383 choke me
15384 #else
15385 char (*f) () = $ac_func;
15386 #endif
15387 #ifdef __cplusplus
15388 }
15389 #endif
15390
15391 int
15392 main ()
15393 {
15394 return f != $ac_func;
15395   ;
15396   return 0;
15397 }
15398 _ACEOF
15399 rm -f conftest.$ac_objext conftest$ac_exeext
15400 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15401   (eval $ac_link) 2>conftest.er1
15402   ac_status=$?
15403   grep -v '^ *+' conftest.er1 >conftest.err
15404   rm -f conftest.er1
15405   cat conftest.err >&5
15406   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15407   (exit $ac_status); } &&
15408          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
15409   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15410   (eval $ac_try) 2>&5
15411   ac_status=$?
15412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15413   (exit $ac_status); }; } &&
15414          { ac_try='test -s conftest$ac_exeext'
15415   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15416   (eval $ac_try) 2>&5
15417   ac_status=$?
15418   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15419   (exit $ac_status); }; }; then
15420   eval "$as_ac_var=yes"
15421 else
15422   echo "$as_me: failed program was:" >&5
15423 sed 's/^/| /' conftest.$ac_ext >&5
15424
15425 eval "$as_ac_var=no"
15426 fi
15427 rm -f conftest.err conftest.$ac_objext \
15428       conftest$ac_exeext conftest.$ac_ext
15429 fi
15430 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15431 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15432 if test `eval echo '${'$as_ac_var'}'` = yes; then
15433
15434 cat >>confdefs.h <<_ACEOF
15435 #define CRAY_STACKSEG_END $ac_func
15436 _ACEOF
15437
15438     break
15439 fi
15440
15441   done
15442 fi
15443
15444 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
15445 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
15446 if test "${ac_cv_c_stack_direction+set}" = set; then
15447   echo $ECHO_N "(cached) $ECHO_C" >&6
15448 else
15449   if test "$cross_compiling" = yes; then
15450   ac_cv_c_stack_direction=0
15451 else
15452   cat >conftest.$ac_ext <<_ACEOF
15453 /* confdefs.h.  */
15454 _ACEOF
15455 cat confdefs.h >>conftest.$ac_ext
15456 cat >>conftest.$ac_ext <<_ACEOF
15457 /* end confdefs.h.  */
15458 int
15459 find_stack_direction ()
15460 {
15461   static char *addr = 0;
15462   auto char dummy;
15463   if (addr == 0)
15464     {
15465       addr = &dummy;
15466       return find_stack_direction ();
15467     }
15468   else
15469     return (&dummy > addr) ? 1 : -1;
15470 }
15471
15472 int
15473 main ()
15474 {
15475   exit (find_stack_direction () < 0);
15476 }
15477 _ACEOF
15478 rm -f conftest$ac_exeext
15479 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15480   (eval $ac_link) 2>&5
15481   ac_status=$?
15482   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15483   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15484   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15485   (eval $ac_try) 2>&5
15486   ac_status=$?
15487   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15488   (exit $ac_status); }; }; then
15489   ac_cv_c_stack_direction=1
15490 else
15491   echo "$as_me: program exited with status $ac_status" >&5
15492 echo "$as_me: failed program was:" >&5
15493 sed 's/^/| /' conftest.$ac_ext >&5
15494
15495 ( exit $ac_status )
15496 ac_cv_c_stack_direction=-1
15497 fi
15498 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15499 fi
15500 fi
15501 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
15502 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
15503
15504 cat >>confdefs.h <<_ACEOF
15505 #define STACK_DIRECTION $ac_cv_c_stack_direction
15506 _ACEOF
15507
15508
15509 fi
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 for ac_func in \
15565         _lwp_create \
15566         _lwp_self \
15567         _pclose \
15568         _popen \
15569         _snprintf \
15570         _spawnvp \
15571         _stricmp \
15572         _strnicmp \
15573         _vsnprintf \
15574         chsize \
15575         clone \
15576         finite \
15577         fpclass \
15578         ftruncate \
15579         ftruncate64 \
15580         getnetbyaddr \
15581         getnetbyname \
15582         getopt_long \
15583         getpagesize \
15584         getprotobyname \
15585         getprotobynumber \
15586         getpwuid \
15587         getservbyport \
15588         gettid \
15589         gettimeofday \
15590         inet_network \
15591         lseek64 \
15592         lstat \
15593         memmove \
15594         mmap \
15595         pclose \
15596         popen \
15597         pread \
15598         pwrite \
15599         readlink \
15600         rfork \
15601         select \
15602         sendmsg \
15603         settimeofday \
15604         sigaltstack \
15605         snprintf \
15606         spawnvp \
15607         statfs \
15608         strcasecmp \
15609         strerror \
15610         strncasecmp \
15611         tcgetattr \
15612         timegm \
15613         usleep \
15614         vfscanf \
15615         vsnprintf \
15616         wait4 \
15617         waitpid \
15618
15619 do
15620 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15621 echo "$as_me:$LINENO: checking for $ac_func" >&5
15622 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15623 if eval "test \"\${$as_ac_var+set}\" = set"; then
15624   echo $ECHO_N "(cached) $ECHO_C" >&6
15625 else
15626   cat >conftest.$ac_ext <<_ACEOF
15627 /* confdefs.h.  */
15628 _ACEOF
15629 cat confdefs.h >>conftest.$ac_ext
15630 cat >>conftest.$ac_ext <<_ACEOF
15631 /* end confdefs.h.  */
15632 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15633    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15634 #define $ac_func innocuous_$ac_func
15635
15636 /* System header to define __stub macros and hopefully few prototypes,
15637     which can conflict with char $ac_func (); below.
15638     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15639     <limits.h> exists even on freestanding compilers.  */
15640
15641 #ifdef __STDC__
15642 # include <limits.h>
15643 #else
15644 # include <assert.h>
15645 #endif
15646
15647 #undef $ac_func
15648
15649 /* Override any gcc2 internal prototype to avoid an error.  */
15650 #ifdef __cplusplus
15651 extern "C"
15652 {
15653 #endif
15654 /* We use char because int might match the return type of a gcc2
15655    builtin and then its argument prototype would still apply.  */
15656 char $ac_func ();
15657 /* The GNU C library defines this for functions which it implements
15658     to always fail with ENOSYS.  Some functions are actually named
15659     something starting with __ and the normal name is an alias.  */
15660 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15661 choke me
15662 #else
15663 char (*f) () = $ac_func;
15664 #endif
15665 #ifdef __cplusplus
15666 }
15667 #endif
15668
15669 int
15670 main ()
15671 {
15672 return f != $ac_func;
15673   ;
15674   return 0;
15675 }
15676 _ACEOF
15677 rm -f conftest.$ac_objext conftest$ac_exeext
15678 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15679   (eval $ac_link) 2>conftest.er1
15680   ac_status=$?
15681   grep -v '^ *+' conftest.er1 >conftest.err
15682   rm -f conftest.er1
15683   cat conftest.err >&5
15684   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15685   (exit $ac_status); } &&
15686          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
15687   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15688   (eval $ac_try) 2>&5
15689   ac_status=$?
15690   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15691   (exit $ac_status); }; } &&
15692          { ac_try='test -s conftest$ac_exeext'
15693   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15694   (eval $ac_try) 2>&5
15695   ac_status=$?
15696   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15697   (exit $ac_status); }; }; then
15698   eval "$as_ac_var=yes"
15699 else
15700   echo "$as_me: failed program was:" >&5
15701 sed 's/^/| /' conftest.$ac_ext >&5
15702
15703 eval "$as_ac_var=no"
15704 fi
15705 rm -f conftest.err conftest.$ac_objext \
15706       conftest$ac_exeext conftest.$ac_ext
15707 fi
15708 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15709 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15710 if test `eval echo '${'$as_ac_var'}'` = yes; then
15711   cat >>confdefs.h <<_ACEOF
15712 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15713 _ACEOF
15714
15715 fi
15716 done
15717
15718
15719
15720
15721
15722
15723
15724
15725
15726
15727
15728
15729
15730
15731
15732
15733
15734
15735
15736
15737
15738
15739
15740
15741
15742
15743
15744
15745
15746
15747
15748
15749
15750
15751
15752
15753
15754
15755
15756
15757
15758
15759
15760
15761
15762
15763
15764
15765
15766
15767
15768
15769
15770
15771
15772
15773
15774
15775
15776
15777
15778
15779
15780
15781
15782
15783
15784
15785
15786
15787
15788
15789
15790
15791
15792
15793
15794
15795
15796
15797
15798
15799
15800 for ac_header in \
15801         arpa/inet.h \
15802         arpa/nameser.h \
15803         cups/cups.h \
15804         direct.h \
15805         elf.h \
15806         float.h \
15807         fontconfig/fontconfig.h \
15808         getopt.h \
15809         ieeefp.h \
15810         io.h \
15811         jack/jack.h \
15812         libio.h \
15813         libutil.h \
15814         link.h \
15815         linux/cdrom.h \
15816         linux/hdreg.h \
15817         linux/input.h \
15818         linux/joystick.h \
15819         linux/major.h \
15820         linux/param.h \
15821         linux/serial.h \
15822         linux/ucdrom.h \
15823         machine/cpu.h \
15824         netdb.h \
15825         netinet/in.h \
15826         netinet/in_systm.h \
15827         netinet/tcp.h \
15828         netinet/tcp_fsm.h \
15829         openssl/ssl.h \
15830         process.h \
15831         pthread.h \
15832         pty.h \
15833         pwd.h \
15834         regex.h \
15835         sched.h \
15836         scsi/sg.h \
15837         scsi/scsi.h \
15838         scsi/scsi_ioctl.h \
15839         socket.h \
15840         stdint.h \
15841         strings.h \
15842         sys/cdio.h \
15843         sys/errno.h \
15844         sys/file.h \
15845         sys/filio.h \
15846         sys/inttypes.h \
15847         sys/ioctl.h \
15848         sys/ipc.h \
15849         sys/link.h \
15850         sys/lwp.h \
15851         sys/mman.h \
15852         sys/modem.h \
15853         sys/msg.h \
15854         sys/param.h \
15855         sys/poll.h \
15856         sys/ptrace.h \
15857         sys/reg.h \
15858         sys/scsiio.h \
15859         sys/shm.h \
15860         sys/signal.h \
15861         sys/socket.h \
15862         sys/sockio.h \
15863         sys/statfs.h \
15864         sys/strtio.h \
15865         sys/syscall.h \
15866         sys/sysctl.h \
15867         sys/time.h \
15868         sys/times.h \
15869         sys/uio.h \
15870         sys/un.h \
15871         sys/v86.h \
15872         sys/v86intr.h \
15873         sys/vfs.h \
15874         sys/vm86.h \
15875         sys/wait.h \
15876         syscall.h \
15877         termios.h \
15878         unistd.h \
15879         utime.h \
15880         valgrind/memcheck.h
15881
15882 do
15883 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15884 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15885   echo "$as_me:$LINENO: checking for $ac_header" >&5
15886 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15887 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15888   echo $ECHO_N "(cached) $ECHO_C" >&6
15889 fi
15890 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15891 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15892 else
15893   # Is the header compilable?
15894 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15895 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15896 cat >conftest.$ac_ext <<_ACEOF
15897 /* confdefs.h.  */
15898 _ACEOF
15899 cat confdefs.h >>conftest.$ac_ext
15900 cat >>conftest.$ac_ext <<_ACEOF
15901 /* end confdefs.h.  */
15902 $ac_includes_default
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   ac_header_compiler=yes
15927 else
15928   echo "$as_me: failed program was:" >&5
15929 sed 's/^/| /' conftest.$ac_ext >&5
15930
15931 ac_header_compiler=no
15932 fi
15933 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15934 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15935 echo "${ECHO_T}$ac_header_compiler" >&6
15936
15937 # Is the header present?
15938 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15939 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15940 cat >conftest.$ac_ext <<_ACEOF
15941 /* confdefs.h.  */
15942 _ACEOF
15943 cat confdefs.h >>conftest.$ac_ext
15944 cat >>conftest.$ac_ext <<_ACEOF
15945 /* end confdefs.h.  */
15946 #include <$ac_header>
15947 _ACEOF
15948 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15949   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15950   ac_status=$?
15951   grep -v '^ *+' conftest.er1 >conftest.err
15952   rm -f conftest.er1
15953   cat conftest.err >&5
15954   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15955   (exit $ac_status); } >/dev/null; then
15956   if test -s conftest.err; then
15957     ac_cpp_err=$ac_c_preproc_warn_flag
15958     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15959   else
15960     ac_cpp_err=
15961   fi
15962 else
15963   ac_cpp_err=yes
15964 fi
15965 if test -z "$ac_cpp_err"; then
15966   ac_header_preproc=yes
15967 else
15968   echo "$as_me: failed program was:" >&5
15969 sed 's/^/| /' conftest.$ac_ext >&5
15970
15971   ac_header_preproc=no
15972 fi
15973 rm -f conftest.err conftest.$ac_ext
15974 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15975 echo "${ECHO_T}$ac_header_preproc" >&6
15976
15977 # So?  What about this header?
15978 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15979   yes:no: )
15980     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15981 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15982     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15983 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15984     ac_header_preproc=yes
15985     ;;
15986   no:yes:* )
15987     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15988 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15989     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15990 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15991     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15992 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15993     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15994 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15995     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15996 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15997     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15998 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15999     (
16000       cat <<\_ASBOX
16001 ## ------------------------------------ ##
16002 ## Report this to wine-devel@winehq.org ##
16003 ## ------------------------------------ ##
16004 _ASBOX
16005     ) |
16006       sed "s/^/$as_me: WARNING:     /" >&2
16007     ;;
16008 esac
16009 echo "$as_me:$LINENO: checking for $ac_header" >&5
16010 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16011 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16012   echo $ECHO_N "(cached) $ECHO_C" >&6
16013 else
16014   eval "$as_ac_Header=\$ac_header_preproc"
16015 fi
16016 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16017 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16018
16019 fi
16020 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16021   cat >>confdefs.h <<_ACEOF
16022 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16023 _ACEOF
16024
16025 fi
16026
16027 done
16028
16029 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
16030 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
16031 if test "${ac_cv_header_stat_broken+set}" = set; then
16032   echo $ECHO_N "(cached) $ECHO_C" >&6
16033 else
16034   cat >conftest.$ac_ext <<_ACEOF
16035 /* confdefs.h.  */
16036 _ACEOF
16037 cat confdefs.h >>conftest.$ac_ext
16038 cat >>conftest.$ac_ext <<_ACEOF
16039 /* end confdefs.h.  */
16040 #include <sys/types.h>
16041 #include <sys/stat.h>
16042
16043 #if defined(S_ISBLK) && defined(S_IFDIR)
16044 # if S_ISBLK (S_IFDIR)
16045 You lose.
16046 # endif
16047 #endif
16048
16049 #if defined(S_ISBLK) && defined(S_IFCHR)
16050 # if S_ISBLK (S_IFCHR)
16051 You lose.
16052 # endif
16053 #endif
16054
16055 #if defined(S_ISLNK) && defined(S_IFREG)
16056 # if S_ISLNK (S_IFREG)
16057 You lose.
16058 # endif
16059 #endif
16060
16061 #if defined(S_ISSOCK) && defined(S_IFREG)
16062 # if S_ISSOCK (S_IFREG)
16063 You lose.
16064 # endif
16065 #endif
16066
16067 _ACEOF
16068 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16069   $EGREP "You lose" >/dev/null 2>&1; then
16070   ac_cv_header_stat_broken=yes
16071 else
16072   ac_cv_header_stat_broken=no
16073 fi
16074 rm -f conftest*
16075
16076 fi
16077 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
16078 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
16079 if test $ac_cv_header_stat_broken = yes; then
16080
16081 cat >>confdefs.h <<\_ACEOF
16082 #define STAT_MACROS_BROKEN 1
16083 _ACEOF
16084
16085 fi
16086
16087
16088
16089
16090
16091 for ac_header in sys/mount.h sys/user.h
16092 do
16093 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16094 echo "$as_me:$LINENO: checking for $ac_header" >&5
16095 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16096 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16097   echo $ECHO_N "(cached) $ECHO_C" >&6
16098 else
16099   cat >conftest.$ac_ext <<_ACEOF
16100 /* confdefs.h.  */
16101 _ACEOF
16102 cat confdefs.h >>conftest.$ac_ext
16103 cat >>conftest.$ac_ext <<_ACEOF
16104 /* end confdefs.h.  */
16105 #include <sys/types.h>
16106      #if HAVE_SYS_PARAM_H
16107      # include <sys/param.h>
16108      #endif
16109
16110 #include <$ac_header>
16111 _ACEOF
16112 rm -f conftest.$ac_objext
16113 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16114   (eval $ac_compile) 2>conftest.er1
16115   ac_status=$?
16116   grep -v '^ *+' conftest.er1 >conftest.err
16117   rm -f conftest.er1
16118   cat conftest.err >&5
16119   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16120   (exit $ac_status); } &&
16121          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
16122   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16123   (eval $ac_try) 2>&5
16124   ac_status=$?
16125   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16126   (exit $ac_status); }; } &&
16127          { ac_try='test -s conftest.$ac_objext'
16128   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16129   (eval $ac_try) 2>&5
16130   ac_status=$?
16131   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16132   (exit $ac_status); }; }; then
16133   eval "$as_ac_Header=yes"
16134 else
16135   echo "$as_me: failed program was:" >&5
16136 sed 's/^/| /' conftest.$ac_ext >&5
16137
16138 eval "$as_ac_Header=no"
16139 fi
16140 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16141 fi
16142 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16143 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16144 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16145   cat >>confdefs.h <<_ACEOF
16146 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16147 _ACEOF
16148
16149 fi
16150
16151 done
16152
16153
16154
16155
16156
16157
16158
16159 for ac_header in net/if.h net/if_arp.h net/if_dl.h net/if_types.h net/route.h
16160 do
16161 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16162 echo "$as_me:$LINENO: checking for $ac_header" >&5
16163 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16164 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16165   echo $ECHO_N "(cached) $ECHO_C" >&6
16166 else
16167   cat >conftest.$ac_ext <<_ACEOF
16168 /* confdefs.h.  */
16169 _ACEOF
16170 cat confdefs.h >>conftest.$ac_ext
16171 cat >>conftest.$ac_ext <<_ACEOF
16172 /* end confdefs.h.  */
16173 #include <sys/types.h>
16174      #if HAVE_SYS_SOCKET_H
16175      # include <sys/socket.h>
16176      #endif
16177
16178 #include <$ac_header>
16179 _ACEOF
16180 rm -f conftest.$ac_objext
16181 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16182   (eval $ac_compile) 2>conftest.er1
16183   ac_status=$?
16184   grep -v '^ *+' conftest.er1 >conftest.err
16185   rm -f conftest.er1
16186   cat conftest.err >&5
16187   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16188   (exit $ac_status); } &&
16189          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
16190   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16191   (eval $ac_try) 2>&5
16192   ac_status=$?
16193   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16194   (exit $ac_status); }; } &&
16195          { ac_try='test -s conftest.$ac_objext'
16196   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16197   (eval $ac_try) 2>&5
16198   ac_status=$?
16199   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16200   (exit $ac_status); }; }; then
16201   eval "$as_ac_Header=yes"
16202 else
16203   echo "$as_me: failed program was:" >&5
16204 sed 's/^/| /' conftest.$ac_ext >&5
16205
16206 eval "$as_ac_Header=no"
16207 fi
16208 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16209 fi
16210 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16211 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16212 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16213   cat >>confdefs.h <<_ACEOF
16214 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16215 _ACEOF
16216
16217 fi
16218
16219 done
16220
16221
16222
16223 for ac_header in resolv.h
16224 do
16225 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16226 echo "$as_me:$LINENO: checking for $ac_header" >&5
16227 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16228 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16229   echo $ECHO_N "(cached) $ECHO_C" >&6
16230 else
16231   cat >conftest.$ac_ext <<_ACEOF
16232 /* confdefs.h.  */
16233 _ACEOF
16234 cat confdefs.h >>conftest.$ac_ext
16235 cat >>conftest.$ac_ext <<_ACEOF
16236 /* end confdefs.h.  */
16237 #include <sys/types.h>
16238      #if HAVE_SYS_SOCKET_H
16239      # include <sys/socket.h>
16240      #endif
16241      #if HAVE_NETINET_IN_H
16242      # include <netinet/in.h>
16243      #endif
16244      #if HAVE_ARPA_NAMESER_H
16245      # include <arpa/nameser.h>
16246      #endif
16247
16248 #include <$ac_header>
16249 _ACEOF
16250 rm -f conftest.$ac_objext
16251 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16252   (eval $ac_compile) 2>conftest.er1
16253   ac_status=$?
16254   grep -v '^ *+' conftest.er1 >conftest.err
16255   rm -f conftest.er1
16256   cat conftest.err >&5
16257   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16258   (exit $ac_status); } &&
16259          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
16260   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16261   (eval $ac_try) 2>&5
16262   ac_status=$?
16263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16264   (exit $ac_status); }; } &&
16265          { ac_try='test -s conftest.$ac_objext'
16266   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16267   (eval $ac_try) 2>&5
16268   ac_status=$?
16269   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16270   (exit $ac_status); }; }; then
16271   eval "$as_ac_Header=yes"
16272 else
16273   echo "$as_me: failed program was:" >&5
16274 sed 's/^/| /' conftest.$ac_ext >&5
16275
16276 eval "$as_ac_Header=no"
16277 fi
16278 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16279 fi
16280 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16281 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16282 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16283   cat >>confdefs.h <<_ACEOF
16284 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16285 _ACEOF
16286
16287 fi
16288
16289 done
16290
16291
16292
16293 for ac_header in netinet/ip.h
16294 do
16295 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16296 echo "$as_me:$LINENO: checking for $ac_header" >&5
16297 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16298 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16299   echo $ECHO_N "(cached) $ECHO_C" >&6
16300 else
16301   cat >conftest.$ac_ext <<_ACEOF
16302 /* confdefs.h.  */
16303 _ACEOF
16304 cat confdefs.h >>conftest.$ac_ext
16305 cat >>conftest.$ac_ext <<_ACEOF
16306 /* end confdefs.h.  */
16307 #include <sys/types.h>
16308      #if HAVE_SYS_SOCKET_H
16309      # include <sys/socket.h>
16310      #endif
16311      #if HAVE_NETINET_IN_SYSTM_H
16312      # include <netinet/in_systm.h>
16313      #endif
16314
16315 #include <$ac_header>
16316 _ACEOF
16317 rm -f conftest.$ac_objext
16318 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16319   (eval $ac_compile) 2>conftest.er1
16320   ac_status=$?
16321   grep -v '^ *+' conftest.er1 >conftest.err
16322   rm -f conftest.er1
16323   cat conftest.err >&5
16324   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16325   (exit $ac_status); } &&
16326          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
16327   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16328   (eval $ac_try) 2>&5
16329   ac_status=$?
16330   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16331   (exit $ac_status); }; } &&
16332          { ac_try='test -s conftest.$ac_objext'
16333   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16334   (eval $ac_try) 2>&5
16335   ac_status=$?
16336   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16337   (exit $ac_status); }; }; then
16338   eval "$as_ac_Header=yes"
16339 else
16340   echo "$as_me: failed program was:" >&5
16341 sed 's/^/| /' conftest.$ac_ext >&5
16342
16343 eval "$as_ac_Header=no"
16344 fi
16345 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16346 fi
16347 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16348 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16349 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16350   cat >>confdefs.h <<_ACEOF
16351 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16352 _ACEOF
16353
16354 fi
16355
16356 done
16357
16358
16359
16360 for ac_header in ucontext.h
16361 do
16362 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16363 echo "$as_me:$LINENO: checking for $ac_header" >&5
16364 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16365 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16366   echo $ECHO_N "(cached) $ECHO_C" >&6
16367 else
16368   cat >conftest.$ac_ext <<_ACEOF
16369 /* confdefs.h.  */
16370 _ACEOF
16371 cat confdefs.h >>conftest.$ac_ext
16372 cat >>conftest.$ac_ext <<_ACEOF
16373 /* end confdefs.h.  */
16374 #include <signal.h>
16375
16376 #include <$ac_header>
16377 _ACEOF
16378 rm -f conftest.$ac_objext
16379 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16380   (eval $ac_compile) 2>conftest.er1
16381   ac_status=$?
16382   grep -v '^ *+' conftest.er1 >conftest.err
16383   rm -f conftest.er1
16384   cat conftest.err >&5
16385   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16386   (exit $ac_status); } &&
16387          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
16388   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16389   (eval $ac_try) 2>&5
16390   ac_status=$?
16391   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16392   (exit $ac_status); }; } &&
16393          { ac_try='test -s conftest.$ac_objext'
16394   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16395   (eval $ac_try) 2>&5
16396   ac_status=$?
16397   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16398   (exit $ac_status); }; }; then
16399   eval "$as_ac_Header=yes"
16400 else
16401   echo "$as_me: failed program was:" >&5
16402 sed 's/^/| /' conftest.$ac_ext >&5
16403
16404 eval "$as_ac_Header=no"
16405 fi
16406 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16407 fi
16408 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16409 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16410 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16411   cat >>confdefs.h <<_ACEOF
16412 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16413 _ACEOF
16414
16415 fi
16416
16417 done
16418
16419
16420
16421 echo "$as_me:$LINENO: checking for GNU style IPX support" >&5
16422 echo $ECHO_N "checking for GNU style IPX support... $ECHO_C" >&6
16423 if test "${ac_cv_c_ipx_gnu+set}" = set; then
16424   echo $ECHO_N "(cached) $ECHO_C" >&6
16425 else
16426   cat >conftest.$ac_ext <<_ACEOF
16427 /* confdefs.h.  */
16428 _ACEOF
16429 cat confdefs.h >>conftest.$ac_ext
16430 cat >>conftest.$ac_ext <<_ACEOF
16431 /* end confdefs.h.  */
16432 #include <sys/types.h>
16433     #ifdef HAVE_SYS_SOCKET_H
16434     # include <sys/socket.h>
16435     #endif
16436     #include <netipx/ipx.h>
16437 int
16438 main ()
16439 {
16440 ((struct sockaddr_ipx *)0)->sipx_family == AF_IPX
16441   ;
16442   return 0;
16443 }
16444 _ACEOF
16445 rm -f conftest.$ac_objext
16446 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16447   (eval $ac_compile) 2>conftest.er1
16448   ac_status=$?
16449   grep -v '^ *+' conftest.er1 >conftest.err
16450   rm -f conftest.er1
16451   cat conftest.err >&5
16452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16453   (exit $ac_status); } &&
16454          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
16455   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16456   (eval $ac_try) 2>&5
16457   ac_status=$?
16458   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16459   (exit $ac_status); }; } &&
16460          { ac_try='test -s conftest.$ac_objext'
16461   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16462   (eval $ac_try) 2>&5
16463   ac_status=$?
16464   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16465   (exit $ac_status); }; }; then
16466   ac_cv_c_ipx_gnu="yes"
16467 else
16468   echo "$as_me: failed program was:" >&5
16469 sed 's/^/| /' conftest.$ac_ext >&5
16470
16471 ac_cv_c_ipx_gnu="no"
16472 fi
16473 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16474
16475 fi
16476 echo "$as_me:$LINENO: result: $ac_cv_c_ipx_gnu" >&5
16477 echo "${ECHO_T}$ac_cv_c_ipx_gnu" >&6
16478 if test "$ac_cv_c_ipx_gnu" = "yes"
16479 then
16480
16481 cat >>confdefs.h <<\_ACEOF
16482 #define HAVE_IPX_GNU 1
16483 _ACEOF
16484
16485 fi
16486
16487 if test "$ac_cv_c_ipx_gnu" = "no"
16488 then
16489  echo "$as_me:$LINENO: checking for linux style IPX support" >&5
16490 echo $ECHO_N "checking for linux style IPX support... $ECHO_C" >&6
16491 if test "${ac_cv_c_ipx_linux+set}" = set; then
16492   echo $ECHO_N "(cached) $ECHO_C" >&6
16493 else
16494   cat >conftest.$ac_ext <<_ACEOF
16495 /* confdefs.h.  */
16496 _ACEOF
16497 cat confdefs.h >>conftest.$ac_ext
16498 cat >>conftest.$ac_ext <<_ACEOF
16499 /* end confdefs.h.  */
16500 #include <sys/types.h>
16501      #ifdef HAVE_SYS_SOCKET_H
16502      # include <sys/socket.h>
16503      #endif
16504      #include <asm/types.h>
16505      #include <linux/ipx.h>
16506 int
16507 main ()
16508 {
16509 ((struct sockaddr_ipx *)0)->sipx_family == AF_IPX
16510   ;
16511   return 0;
16512 }
16513 _ACEOF
16514 rm -f conftest.$ac_objext
16515 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16516   (eval $ac_compile) 2>conftest.er1
16517   ac_status=$?
16518   grep -v '^ *+' conftest.er1 >conftest.err
16519   rm -f conftest.er1
16520   cat conftest.err >&5
16521   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16522   (exit $ac_status); } &&
16523          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
16524   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16525   (eval $ac_try) 2>&5
16526   ac_status=$?
16527   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16528   (exit $ac_status); }; } &&
16529          { ac_try='test -s conftest.$ac_objext'
16530   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16531   (eval $ac_try) 2>&5
16532   ac_status=$?
16533   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16534   (exit $ac_status); }; }; then
16535   ac_cv_c_ipx_linux="yes"
16536 else
16537   echo "$as_me: failed program was:" >&5
16538 sed 's/^/| /' conftest.$ac_ext >&5
16539
16540 ac_cv_c_ipx_linux="no"
16541 fi
16542 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16543
16544 fi
16545 echo "$as_me:$LINENO: result: $ac_cv_c_ipx_linux" >&5
16546 echo "${ECHO_T}$ac_cv_c_ipx_linux" >&6
16547   if test "$ac_cv_c_ipx_linux" = "yes"
16548   then
16549
16550 cat >>confdefs.h <<\_ACEOF
16551 #define HAVE_IPX_LINUX 1
16552 _ACEOF
16553
16554   fi
16555 fi
16556
16557
16558 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
16559 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
16560 if test "${ac_cv_c_const+set}" = set; then
16561   echo $ECHO_N "(cached) $ECHO_C" >&6
16562 else
16563   cat >conftest.$ac_ext <<_ACEOF
16564 /* confdefs.h.  */
16565 _ACEOF
16566 cat confdefs.h >>conftest.$ac_ext
16567 cat >>conftest.$ac_ext <<_ACEOF
16568 /* end confdefs.h.  */
16569
16570 int
16571 main ()
16572 {
16573 /* FIXME: Include the comments suggested by Paul. */
16574 #ifndef __cplusplus
16575   /* Ultrix mips cc rejects this.  */
16576   typedef int charset[2];
16577   const charset x;
16578   /* SunOS 4.1.1 cc rejects this.  */
16579   char const *const *ccp;
16580   char **p;
16581   /* NEC SVR4.0.2 mips cc rejects this.  */
16582   struct point {int x, y;};
16583   static struct point const zero = {0,0};
16584   /* AIX XL C 1.02.0.0 rejects this.
16585      It does not let you subtract one const X* pointer from another in
16586      an arm of an if-expression whose if-part is not a constant
16587      expression */
16588   const char *g = "string";
16589   ccp = &g + (g ? g-g : 0);
16590   /* HPUX 7.0 cc rejects these. */
16591   ++ccp;
16592   p = (char**) ccp;
16593   ccp = (char const *const *) p;
16594   { /* SCO 3.2v4 cc rejects this.  */
16595     char *t;
16596     char const *s = 0 ? (char *) 0 : (char const *) 0;
16597
16598     *t++ = 0;
16599   }
16600   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
16601     int x[] = {25, 17};
16602     const int *foo = &x[0];
16603     ++foo;
16604   }
16605   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
16606     typedef const int *iptr;
16607     iptr p = 0;
16608     ++p;
16609   }
16610   { /* AIX XL C 1.02.0.0 rejects this saying
16611        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
16612     struct s { int j; const int *ap[3]; };
16613     struct s *b; b->j = 5;
16614   }
16615   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
16616     const int foo = 10;
16617   }
16618 #endif
16619
16620   ;
16621   return 0;
16622 }
16623 _ACEOF
16624 rm -f conftest.$ac_objext
16625 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16626   (eval $ac_compile) 2>conftest.er1
16627   ac_status=$?
16628   grep -v '^ *+' conftest.er1 >conftest.err
16629   rm -f conftest.er1
16630   cat conftest.err >&5
16631   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16632   (exit $ac_status); } &&
16633          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
16634   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16635   (eval $ac_try) 2>&5
16636   ac_status=$?
16637   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16638   (exit $ac_status); }; } &&
16639          { ac_try='test -s conftest.$ac_objext'
16640   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16641   (eval $ac_try) 2>&5
16642   ac_status=$?
16643   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16644   (exit $ac_status); }; }; then
16645   ac_cv_c_const=yes
16646 else
16647   echo "$as_me: failed program was:" >&5
16648 sed 's/^/| /' conftest.$ac_ext >&5
16649
16650 ac_cv_c_const=no
16651 fi
16652 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16653 fi
16654 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
16655 echo "${ECHO_T}$ac_cv_c_const" >&6
16656 if test $ac_cv_c_const = no; then
16657
16658 cat >>confdefs.h <<\_ACEOF
16659 #define const
16660 _ACEOF
16661
16662 fi
16663
16664 echo "$as_me:$LINENO: checking for inline" >&5
16665 echo $ECHO_N "checking for inline... $ECHO_C" >&6
16666 if test "${ac_cv_c_inline+set}" = set; then
16667   echo $ECHO_N "(cached) $ECHO_C" >&6
16668 else
16669   ac_cv_c_inline=no
16670 for ac_kw in inline __inline__ __inline; do
16671   cat >conftest.$ac_ext <<_ACEOF
16672 /* confdefs.h.  */
16673 _ACEOF
16674 cat confdefs.h >>conftest.$ac_ext
16675 cat >>conftest.$ac_ext <<_ACEOF
16676 /* end confdefs.h.  */
16677 #ifndef __cplusplus
16678 typedef int foo_t;
16679 static $ac_kw foo_t static_foo () {return 0; }
16680 $ac_kw foo_t foo () {return 0; }
16681 #endif
16682
16683 _ACEOF
16684 rm -f conftest.$ac_objext
16685 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16686   (eval $ac_compile) 2>conftest.er1
16687   ac_status=$?
16688   grep -v '^ *+' conftest.er1 >conftest.err
16689   rm -f conftest.er1
16690   cat conftest.err >&5
16691   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16692   (exit $ac_status); } &&
16693          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
16694   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16695   (eval $ac_try) 2>&5
16696   ac_status=$?
16697   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16698   (exit $ac_status); }; } &&
16699          { ac_try='test -s conftest.$ac_objext'
16700   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16701   (eval $ac_try) 2>&5
16702   ac_status=$?
16703   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16704   (exit $ac_status); }; }; then
16705   ac_cv_c_inline=$ac_kw; break
16706 else
16707   echo "$as_me: failed program was:" >&5
16708 sed 's/^/| /' conftest.$ac_ext >&5
16709
16710 fi
16711 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16712 done
16713
16714 fi
16715 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
16716 echo "${ECHO_T}$ac_cv_c_inline" >&6
16717
16718
16719 case $ac_cv_c_inline in
16720   inline | yes) ;;
16721   *)
16722     case $ac_cv_c_inline in
16723       no) ac_val=;;
16724       *) ac_val=$ac_cv_c_inline;;
16725     esac
16726     cat >>confdefs.h <<_ACEOF
16727 #ifndef __cplusplus
16728 #define inline $ac_val
16729 #endif
16730 _ACEOF
16731     ;;
16732 esac
16733
16734 echo "$as_me:$LINENO: checking for mode_t" >&5
16735 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
16736 if test "${ac_cv_type_mode_t+set}" = set; then
16737   echo $ECHO_N "(cached) $ECHO_C" >&6
16738 else
16739   cat >conftest.$ac_ext <<_ACEOF
16740 /* confdefs.h.  */
16741 _ACEOF
16742 cat confdefs.h >>conftest.$ac_ext
16743 cat >>conftest.$ac_ext <<_ACEOF
16744 /* end confdefs.h.  */
16745 $ac_includes_default
16746 int
16747 main ()
16748 {
16749 if ((mode_t *) 0)
16750   return 0;
16751 if (sizeof (mode_t))
16752   return 0;
16753   ;
16754   return 0;
16755 }
16756 _ACEOF
16757 rm -f conftest.$ac_objext
16758 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16759   (eval $ac_compile) 2>conftest.er1
16760   ac_status=$?
16761   grep -v '^ *+' conftest.er1 >conftest.err
16762   rm -f conftest.er1
16763   cat conftest.err >&5
16764   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16765   (exit $ac_status); } &&
16766          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
16767   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16768   (eval $ac_try) 2>&5
16769   ac_status=$?
16770   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16771   (exit $ac_status); }; } &&
16772          { ac_try='test -s conftest.$ac_objext'
16773   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16774   (eval $ac_try) 2>&5
16775   ac_status=$?
16776   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16777   (exit $ac_status); }; }; then
16778   ac_cv_type_mode_t=yes
16779 else
16780   echo "$as_me: failed program was:" >&5
16781 sed 's/^/| /' conftest.$ac_ext >&5
16782
16783 ac_cv_type_mode_t=no
16784 fi
16785 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16786 fi
16787 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
16788 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
16789 if test $ac_cv_type_mode_t = yes; then
16790
16791 cat >>confdefs.h <<_ACEOF
16792 #define HAVE_MODE_T 1
16793 _ACEOF
16794
16795
16796 fi
16797 echo "$as_me:$LINENO: checking for off_t" >&5
16798 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
16799 if test "${ac_cv_type_off_t+set}" = set; then
16800   echo $ECHO_N "(cached) $ECHO_C" >&6
16801 else
16802   cat >conftest.$ac_ext <<_ACEOF
16803 /* confdefs.h.  */
16804 _ACEOF
16805 cat confdefs.h >>conftest.$ac_ext
16806 cat >>conftest.$ac_ext <<_ACEOF
16807 /* end confdefs.h.  */
16808 $ac_includes_default
16809 int
16810 main ()
16811 {
16812 if ((off_t *) 0)
16813   return 0;
16814 if (sizeof (off_t))
16815   return 0;
16816   ;
16817   return 0;
16818 }
16819 _ACEOF
16820 rm -f conftest.$ac_objext
16821 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16822   (eval $ac_compile) 2>conftest.er1
16823   ac_status=$?
16824   grep -v '^ *+' conftest.er1 >conftest.err
16825   rm -f conftest.er1
16826   cat conftest.err >&5
16827   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16828   (exit $ac_status); } &&
16829          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
16830   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16831   (eval $ac_try) 2>&5
16832   ac_status=$?
16833   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16834   (exit $ac_status); }; } &&
16835          { ac_try='test -s conftest.$ac_objext'
16836   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16837   (eval $ac_try) 2>&5
16838   ac_status=$?
16839   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16840   (exit $ac_status); }; }; then
16841   ac_cv_type_off_t=yes
16842 else
16843   echo "$as_me: failed program was:" >&5
16844 sed 's/^/| /' conftest.$ac_ext >&5
16845
16846 ac_cv_type_off_t=no
16847 fi
16848 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16849 fi
16850 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
16851 echo "${ECHO_T}$ac_cv_type_off_t" >&6
16852 if test $ac_cv_type_off_t = yes; then
16853
16854 cat >>confdefs.h <<_ACEOF
16855 #define HAVE_OFF_T 1
16856 _ACEOF
16857
16858
16859 fi
16860 echo "$as_me:$LINENO: checking for pid_t" >&5
16861 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
16862 if test "${ac_cv_type_pid_t+set}" = set; then
16863   echo $ECHO_N "(cached) $ECHO_C" >&6
16864 else
16865   cat >conftest.$ac_ext <<_ACEOF
16866 /* confdefs.h.  */
16867 _ACEOF
16868 cat confdefs.h >>conftest.$ac_ext
16869 cat >>conftest.$ac_ext <<_ACEOF
16870 /* end confdefs.h.  */
16871 $ac_includes_default
16872 int
16873 main ()
16874 {
16875 if ((pid_t *) 0)
16876   return 0;
16877 if (sizeof (pid_t))
16878   return 0;
16879   ;
16880   return 0;
16881 }
16882 _ACEOF
16883 rm -f conftest.$ac_objext
16884 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16885   (eval $ac_compile) 2>conftest.er1
16886   ac_status=$?
16887   grep -v '^ *+' conftest.er1 >conftest.err
16888   rm -f conftest.er1
16889   cat conftest.err >&5
16890   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16891   (exit $ac_status); } &&
16892          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
16893   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16894   (eval $ac_try) 2>&5
16895   ac_status=$?
16896   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16897   (exit $ac_status); }; } &&
16898          { ac_try='test -s conftest.$ac_objext'
16899   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16900   (eval $ac_try) 2>&5
16901   ac_status=$?
16902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16903   (exit $ac_status); }; }; then
16904   ac_cv_type_pid_t=yes
16905 else
16906   echo "$as_me: failed program was:" >&5
16907 sed 's/^/| /' conftest.$ac_ext >&5
16908
16909 ac_cv_type_pid_t=no
16910 fi
16911 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16912 fi
16913 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
16914 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
16915 if test $ac_cv_type_pid_t = yes; then
16916
16917 cat >>confdefs.h <<_ACEOF
16918 #define HAVE_PID_T 1
16919 _ACEOF
16920
16921
16922 fi
16923 echo "$as_me:$LINENO: checking for size_t" >&5
16924 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
16925 if test "${ac_cv_type_size_t+set}" = set; then
16926   echo $ECHO_N "(cached) $ECHO_C" >&6
16927 else
16928   cat >conftest.$ac_ext <<_ACEOF
16929 /* confdefs.h.  */
16930 _ACEOF
16931 cat confdefs.h >>conftest.$ac_ext
16932 cat >>conftest.$ac_ext <<_ACEOF
16933 /* end confdefs.h.  */
16934 $ac_includes_default
16935 int
16936 main ()
16937 {
16938 if ((size_t *) 0)
16939   return 0;
16940 if (sizeof (size_t))
16941   return 0;
16942   ;
16943   return 0;
16944 }
16945 _ACEOF
16946 rm -f conftest.$ac_objext
16947 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16948   (eval $ac_compile) 2>conftest.er1
16949   ac_status=$?
16950   grep -v '^ *+' conftest.er1 >conftest.err
16951   rm -f conftest.er1
16952   cat conftest.err >&5
16953   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16954   (exit $ac_status); } &&
16955          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
16956   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16957   (eval $ac_try) 2>&5
16958   ac_status=$?
16959   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16960   (exit $ac_status); }; } &&
16961          { ac_try='test -s conftest.$ac_objext'
16962   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16963   (eval $ac_try) 2>&5
16964   ac_status=$?
16965   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16966   (exit $ac_status); }; }; then
16967   ac_cv_type_size_t=yes
16968 else
16969   echo "$as_me: failed program was:" >&5
16970 sed 's/^/| /' conftest.$ac_ext >&5
16971
16972 ac_cv_type_size_t=no
16973 fi
16974 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16975 fi
16976 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
16977 echo "${ECHO_T}$ac_cv_type_size_t" >&6
16978 if test $ac_cv_type_size_t = yes; then
16979
16980 cat >>confdefs.h <<_ACEOF
16981 #define HAVE_SIZE_T 1
16982 _ACEOF
16983
16984
16985 fi
16986 echo "$as_me:$LINENO: checking for ssize_t" >&5
16987 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
16988 if test "${ac_cv_type_ssize_t+set}" = set; then
16989   echo $ECHO_N "(cached) $ECHO_C" >&6
16990 else
16991   cat >conftest.$ac_ext <<_ACEOF
16992 /* confdefs.h.  */
16993 _ACEOF
16994 cat confdefs.h >>conftest.$ac_ext
16995 cat >>conftest.$ac_ext <<_ACEOF
16996 /* end confdefs.h.  */
16997 $ac_includes_default
16998 int
16999 main ()
17000 {
17001 if ((ssize_t *) 0)
17002   return 0;
17003 if (sizeof (ssize_t))
17004   return 0;
17005   ;
17006   return 0;
17007 }
17008 _ACEOF
17009 rm -f conftest.$ac_objext
17010 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17011   (eval $ac_compile) 2>conftest.er1
17012   ac_status=$?
17013   grep -v '^ *+' conftest.er1 >conftest.err
17014   rm -f conftest.er1
17015   cat conftest.err >&5
17016   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17017   (exit $ac_status); } &&
17018          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
17019   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17020   (eval $ac_try) 2>&5
17021   ac_status=$?
17022   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17023   (exit $ac_status); }; } &&
17024          { ac_try='test -s conftest.$ac_objext'
17025   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17026   (eval $ac_try) 2>&5
17027   ac_status=$?
17028   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17029   (exit $ac_status); }; }; then
17030   ac_cv_type_ssize_t=yes
17031 else
17032   echo "$as_me: failed program was:" >&5
17033 sed 's/^/| /' conftest.$ac_ext >&5
17034
17035 ac_cv_type_ssize_t=no
17036 fi
17037 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17038 fi
17039 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
17040 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
17041 if test $ac_cv_type_ssize_t = yes; then
17042
17043 cat >>confdefs.h <<_ACEOF
17044 #define HAVE_SSIZE_T 1
17045 _ACEOF
17046
17047
17048 fi
17049
17050 echo "$as_me:$LINENO: checking for long long" >&5
17051 echo $ECHO_N "checking for long long... $ECHO_C" >&6
17052 if test "${ac_cv_type_long_long+set}" = set; then
17053   echo $ECHO_N "(cached) $ECHO_C" >&6
17054 else
17055   cat >conftest.$ac_ext <<_ACEOF
17056 /* confdefs.h.  */
17057 _ACEOF
17058 cat confdefs.h >>conftest.$ac_ext
17059 cat >>conftest.$ac_ext <<_ACEOF
17060 /* end confdefs.h.  */
17061 $ac_includes_default
17062 int
17063 main ()
17064 {
17065 if ((long long *) 0)
17066   return 0;
17067 if (sizeof (long long))
17068   return 0;
17069   ;
17070   return 0;
17071 }
17072 _ACEOF
17073 rm -f conftest.$ac_objext
17074 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17075   (eval $ac_compile) 2>conftest.er1
17076   ac_status=$?
17077   grep -v '^ *+' conftest.er1 >conftest.err
17078   rm -f conftest.er1
17079   cat conftest.err >&5
17080   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17081   (exit $ac_status); } &&
17082          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
17083   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17084   (eval $ac_try) 2>&5
17085   ac_status=$?
17086   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17087   (exit $ac_status); }; } &&
17088          { ac_try='test -s conftest.$ac_objext'
17089   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17090   (eval $ac_try) 2>&5
17091   ac_status=$?
17092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17093   (exit $ac_status); }; }; then
17094   ac_cv_type_long_long=yes
17095 else
17096   echo "$as_me: failed program was:" >&5
17097 sed 's/^/| /' conftest.$ac_ext >&5
17098
17099 ac_cv_type_long_long=no
17100 fi
17101 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17102 fi
17103 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
17104 echo "${ECHO_T}$ac_cv_type_long_long" >&6
17105
17106 echo "$as_me:$LINENO: checking size of long long" >&5
17107 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
17108 if test "${ac_cv_sizeof_long_long+set}" = set; then
17109   echo $ECHO_N "(cached) $ECHO_C" >&6
17110 else
17111   if test "$ac_cv_type_long_long" = yes; then
17112   # The cast to unsigned long works around a bug in the HP C Compiler
17113   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17114   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17115   # This bug is HP SR number 8606223364.
17116   if test "$cross_compiling" = yes; then
17117   # Depending upon the size, compute the lo and hi bounds.
17118 cat >conftest.$ac_ext <<_ACEOF
17119 /* confdefs.h.  */
17120 _ACEOF
17121 cat confdefs.h >>conftest.$ac_ext
17122 cat >>conftest.$ac_ext <<_ACEOF
17123 /* end confdefs.h.  */
17124 $ac_includes_default
17125 int
17126 main ()
17127 {
17128 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
17129 test_array [0] = 0
17130
17131   ;
17132   return 0;
17133 }
17134 _ACEOF
17135 rm -f conftest.$ac_objext
17136 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17137   (eval $ac_compile) 2>conftest.er1
17138   ac_status=$?
17139   grep -v '^ *+' conftest.er1 >conftest.err
17140   rm -f conftest.er1
17141   cat conftest.err >&5
17142   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17143   (exit $ac_status); } &&
17144          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
17145   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17146   (eval $ac_try) 2>&5
17147   ac_status=$?
17148   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17149   (exit $ac_status); }; } &&
17150          { ac_try='test -s conftest.$ac_objext'
17151   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17152   (eval $ac_try) 2>&5
17153   ac_status=$?
17154   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17155   (exit $ac_status); }; }; then
17156   ac_lo=0 ac_mid=0
17157   while :; do
17158     cat >conftest.$ac_ext <<_ACEOF
17159 /* confdefs.h.  */
17160 _ACEOF
17161 cat confdefs.h >>conftest.$ac_ext
17162 cat >>conftest.$ac_ext <<_ACEOF
17163 /* end confdefs.h.  */
17164 $ac_includes_default
17165 int
17166 main ()
17167 {
17168 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
17169 test_array [0] = 0
17170
17171   ;
17172   return 0;
17173 }
17174 _ACEOF
17175 rm -f conftest.$ac_objext
17176 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17177   (eval $ac_compile) 2>conftest.er1
17178   ac_status=$?
17179   grep -v '^ *+' conftest.er1 >conftest.err
17180   rm -f conftest.er1
17181   cat conftest.err >&5
17182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17183   (exit $ac_status); } &&
17184          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
17185   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17186   (eval $ac_try) 2>&5
17187   ac_status=$?
17188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17189   (exit $ac_status); }; } &&
17190          { ac_try='test -s conftest.$ac_objext'
17191   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17192   (eval $ac_try) 2>&5
17193   ac_status=$?
17194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17195   (exit $ac_status); }; }; then
17196   ac_hi=$ac_mid; break
17197 else
17198   echo "$as_me: failed program was:" >&5
17199 sed 's/^/| /' conftest.$ac_ext >&5
17200
17201 ac_lo=`expr $ac_mid + 1`
17202                     if test $ac_lo -le $ac_mid; then
17203                       ac_lo= ac_hi=
17204                       break
17205                     fi
17206                     ac_mid=`expr 2 '*' $ac_mid + 1`
17207 fi
17208 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17209   done
17210 else
17211   echo "$as_me: failed program was:" >&5
17212 sed 's/^/| /' conftest.$ac_ext >&5
17213
17214 cat >conftest.$ac_ext <<_ACEOF
17215 /* confdefs.h.  */
17216 _ACEOF
17217 cat confdefs.h >>conftest.$ac_ext
17218 cat >>conftest.$ac_ext <<_ACEOF
17219 /* end confdefs.h.  */
17220 $ac_includes_default
17221 int
17222 main ()
17223 {
17224 static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
17225 test_array [0] = 0
17226
17227   ;
17228   return 0;
17229 }
17230 _ACEOF
17231 rm -f conftest.$ac_objext
17232 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17233   (eval $ac_compile) 2>conftest.er1
17234   ac_status=$?
17235   grep -v '^ *+' conftest.er1 >conftest.err
17236   rm -f conftest.er1
17237   cat conftest.err >&5
17238   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17239   (exit $ac_status); } &&
17240          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
17241   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17242   (eval $ac_try) 2>&5
17243   ac_status=$?
17244   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17245   (exit $ac_status); }; } &&
17246          { ac_try='test -s conftest.$ac_objext'
17247   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17248   (eval $ac_try) 2>&5
17249   ac_status=$?
17250   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17251   (exit $ac_status); }; }; then
17252   ac_hi=-1 ac_mid=-1
17253   while :; do
17254     cat >conftest.$ac_ext <<_ACEOF
17255 /* confdefs.h.  */
17256 _ACEOF
17257 cat confdefs.h >>conftest.$ac_ext
17258 cat >>conftest.$ac_ext <<_ACEOF
17259 /* end confdefs.h.  */
17260 $ac_includes_default
17261 int
17262 main ()
17263 {
17264 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
17265 test_array [0] = 0
17266
17267   ;
17268   return 0;
17269 }
17270 _ACEOF
17271 rm -f conftest.$ac_objext
17272 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17273   (eval $ac_compile) 2>conftest.er1
17274   ac_status=$?
17275   grep -v '^ *+' conftest.er1 >conftest.err
17276   rm -f conftest.er1
17277   cat conftest.err >&5
17278   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17279   (exit $ac_status); } &&
17280          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
17281   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17282   (eval $ac_try) 2>&5
17283   ac_status=$?
17284   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17285   (exit $ac_status); }; } &&
17286          { ac_try='test -s conftest.$ac_objext'
17287   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17288   (eval $ac_try) 2>&5
17289   ac_status=$?
17290   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17291   (exit $ac_status); }; }; then
17292   ac_lo=$ac_mid; break
17293 else
17294   echo "$as_me: failed program was:" >&5
17295 sed 's/^/| /' conftest.$ac_ext >&5
17296
17297 ac_hi=`expr '(' $ac_mid ')' - 1`
17298                        if test $ac_mid -le $ac_hi; then
17299                          ac_lo= ac_hi=
17300                          break
17301                        fi
17302                        ac_mid=`expr 2 '*' $ac_mid`
17303 fi
17304 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17305   done
17306 else
17307   echo "$as_me: failed program was:" >&5
17308 sed 's/^/| /' conftest.$ac_ext >&5
17309
17310 ac_lo= ac_hi=
17311 fi
17312 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17313 fi
17314 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17315 # Binary search between lo and hi bounds.
17316 while test "x$ac_lo" != "x$ac_hi"; do
17317   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
17318   cat >conftest.$ac_ext <<_ACEOF
17319 /* confdefs.h.  */
17320 _ACEOF
17321 cat confdefs.h >>conftest.$ac_ext
17322 cat >>conftest.$ac_ext <<_ACEOF
17323 /* end confdefs.h.  */
17324 $ac_includes_default
17325 int
17326 main ()
17327 {
17328 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
17329 test_array [0] = 0
17330
17331   ;
17332   return 0;
17333 }
17334 _ACEOF
17335 rm -f conftest.$ac_objext
17336 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17337   (eval $ac_compile) 2>conftest.er1
17338   ac_status=$?
17339   grep -v '^ *+' conftest.er1 >conftest.err
17340   rm -f conftest.er1
17341   cat conftest.err >&5
17342   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17343   (exit $ac_status); } &&
17344          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
17345   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17346   (eval $ac_try) 2>&5
17347   ac_status=$?
17348   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17349   (exit $ac_status); }; } &&
17350          { ac_try='test -s conftest.$ac_objext'
17351   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17352   (eval $ac_try) 2>&5
17353   ac_status=$?
17354   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17355   (exit $ac_status); }; }; then
17356   ac_hi=$ac_mid
17357 else
17358   echo "$as_me: failed program was:" >&5
17359 sed 's/^/| /' conftest.$ac_ext >&5
17360
17361 ac_lo=`expr '(' $ac_mid ')' + 1`
17362 fi
17363 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17364 done
17365 case $ac_lo in
17366 ?*) ac_cv_sizeof_long_long=$ac_lo;;
17367 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
17368 See \`config.log' for more details." >&5
17369 echo "$as_me: error: cannot compute sizeof (long long), 77
17370 See \`config.log' for more details." >&2;}
17371    { (exit 1); exit 1; }; } ;;
17372 esac
17373 else
17374   if test "$cross_compiling" = yes; then
17375   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
17376 See \`config.log' for more details." >&5
17377 echo "$as_me: error: cannot run test program while cross compiling
17378 See \`config.log' for more details." >&2;}
17379    { (exit 1); exit 1; }; }
17380 else
17381   cat >conftest.$ac_ext <<_ACEOF
17382 /* confdefs.h.  */
17383 _ACEOF
17384 cat confdefs.h >>conftest.$ac_ext
17385 cat >>conftest.$ac_ext <<_ACEOF
17386 /* end confdefs.h.  */
17387 $ac_includes_default
17388 long longval () { return (long) (sizeof (long long)); }
17389 unsigned long ulongval () { return (long) (sizeof (long long)); }
17390 #include <stdio.h>
17391 #include <stdlib.h>
17392 int
17393 main ()
17394 {
17395
17396   FILE *f = fopen ("conftest.val", "w");
17397   if (! f)
17398     exit (1);
17399   if (((long) (sizeof (long long))) < 0)
17400     {
17401       long i = longval ();
17402       if (i != ((long) (sizeof (long long))))
17403         exit (1);
17404       fprintf (f, "%ld\n", i);
17405     }
17406   else
17407     {
17408       unsigned long i = ulongval ();
17409       if (i != ((long) (sizeof (long long))))
17410         exit (1);
17411       fprintf (f, "%lu\n", i);
17412     }
17413   exit (ferror (f) || fclose (f) != 0);
17414
17415   ;
17416   return 0;
17417 }
17418 _ACEOF
17419 rm -f conftest$ac_exeext
17420 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17421   (eval $ac_link) 2>&5
17422   ac_status=$?
17423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17424   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17425   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17426   (eval $ac_try) 2>&5
17427   ac_status=$?
17428   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17429   (exit $ac_status); }; }; then
17430   ac_cv_sizeof_long_long=`cat conftest.val`
17431 else
17432   echo "$as_me: program exited with status $ac_status" >&5
17433 echo "$as_me: failed program was:" >&5
17434 sed 's/^/| /' conftest.$ac_ext >&5
17435
17436 ( exit $ac_status )
17437 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
17438 See \`config.log' for more details." >&5
17439 echo "$as_me: error: cannot compute sizeof (long long), 77
17440 See \`config.log' for more details." >&2;}
17441    { (exit 1); exit 1; }; }
17442 fi
17443 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17444 fi
17445 fi
17446 rm -f conftest.val
17447 else
17448   ac_cv_sizeof_long_long=0
17449 fi
17450 fi
17451 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
17452 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
17453 cat >>confdefs.h <<_ACEOF
17454 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
17455 _ACEOF
17456
17457
17458
17459 echo "$as_me:$LINENO: checking whether linux/input.h is for real" >&5
17460 echo $ECHO_N "checking whether linux/input.h is for real... $ECHO_C" >&6
17461 if test "${wine_cv_linux_input_h+set}" = set; then
17462   echo $ECHO_N "(cached) $ECHO_C" >&6
17463 else
17464   cat >conftest.$ac_ext <<_ACEOF
17465 /* confdefs.h.  */
17466 _ACEOF
17467 cat confdefs.h >>conftest.$ac_ext
17468 cat >>conftest.$ac_ext <<_ACEOF
17469 /* end confdefs.h.  */
17470
17471             #include <linux/input.h>
17472
17473 int
17474 main ()
17475 {
17476
17477             int foo = EVIOCGBIT(EV_ABS,42);
17478             int bar = BTN_PINKIE;
17479             int fortytwo = 42;
17480
17481   ;
17482   return 0;
17483 }
17484 _ACEOF
17485 rm -f conftest.$ac_objext
17486 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17487   (eval $ac_compile) 2>conftest.er1
17488   ac_status=$?
17489   grep -v '^ *+' conftest.er1 >conftest.err
17490   rm -f conftest.er1
17491   cat conftest.err >&5
17492   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17493   (exit $ac_status); } &&
17494          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
17495   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17496   (eval $ac_try) 2>&5
17497   ac_status=$?
17498   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17499   (exit $ac_status); }; } &&
17500          { ac_try='test -s conftest.$ac_objext'
17501   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17502   (eval $ac_try) 2>&5
17503   ac_status=$?
17504   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17505   (exit $ac_status); }; }; then
17506   wine_cv_linux_input_h=yes
17507 else
17508   echo "$as_me: failed program was:" >&5
17509 sed 's/^/| /' conftest.$ac_ext >&5
17510
17511 wine_cv_linux_input_h=no
17512 fi
17513 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17514
17515 fi
17516 echo "$as_me:$LINENO: result: $wine_cv_linux_input_h" >&5
17517 echo "${ECHO_T}$wine_cv_linux_input_h" >&6
17518     if test "$wine_cv_linux_input_h" = "yes"
17519     then
17520
17521 cat >>confdefs.h <<\_ACEOF
17522 #define HAVE_CORRECT_LINUXINPUT_H 1
17523 _ACEOF
17524
17525     fi
17526
17527
17528 echo "$as_me:$LINENO: checking whether we can use re-entrant gethostbyname_r Linux style" >&5
17529 echo $ECHO_N "checking whether we can use re-entrant gethostbyname_r Linux style... $ECHO_C" >&6
17530 if test "${wine_cv_linux_gethostbyname_r_6+set}" = set; then
17531   echo $ECHO_N "(cached) $ECHO_C" >&6
17532 else
17533   cat >conftest.$ac_ext <<_ACEOF
17534 /* confdefs.h.  */
17535 _ACEOF
17536 cat confdefs.h >>conftest.$ac_ext
17537 cat >>conftest.$ac_ext <<_ACEOF
17538 /* end confdefs.h.  */
17539
17540 #include <netdb.h>
17541
17542 int
17543 main ()
17544 {
17545
17546     char *name=NULL;
17547     struct hostent he;
17548     struct hostent *result;
17549     char *buf=NULL;
17550     int bufsize=0;
17551     int res,errnr;
17552     char *addr=NULL;
17553     int addrlen=0;
17554     int addrtype=0;
17555     res=gethostbyname_r(name,&he,buf,bufsize,&result,&errnr);
17556     res=gethostbyaddr_r(addr, addrlen, addrtype,&he,buf,bufsize,&result,&errnr);
17557
17558   ;
17559   return 0;
17560 }
17561 _ACEOF
17562 rm -f conftest.$ac_objext conftest$ac_exeext
17563 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17564   (eval $ac_link) 2>conftest.er1
17565   ac_status=$?
17566   grep -v '^ *+' conftest.er1 >conftest.err
17567   rm -f conftest.er1
17568   cat conftest.err >&5
17569   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17570   (exit $ac_status); } &&
17571          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
17572   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17573   (eval $ac_try) 2>&5
17574   ac_status=$?
17575   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17576   (exit $ac_status); }; } &&
17577          { ac_try='test -s conftest$ac_exeext'
17578   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17579   (eval $ac_try) 2>&5
17580   ac_status=$?
17581   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17582   (exit $ac_status); }; }; then
17583   wine_cv_linux_gethostbyname_r_6=yes
17584 else
17585   echo "$as_me: failed program was:" >&5
17586 sed 's/^/| /' conftest.$ac_ext >&5
17587
17588 wine_cv_linux_gethostbyname_r_6=no
17589
17590 fi
17591 rm -f conftest.err conftest.$ac_objext \
17592       conftest$ac_exeext conftest.$ac_ext
17593
17594 fi
17595 echo "$as_me:$LINENO: result: $wine_cv_linux_gethostbyname_r_6" >&5
17596 echo "${ECHO_T}$wine_cv_linux_gethostbyname_r_6" >&6
17597    if test "$wine_cv_linux_gethostbyname_r_6" = "yes"
17598    then
17599
17600 cat >>confdefs.h <<\_ACEOF
17601 #define HAVE_LINUX_GETHOSTBYNAME_R_6 1
17602 _ACEOF
17603
17604    fi
17605
17606 if test "$ac_cv_header_linux_joystick_h" = "yes"
17607 then
17608    echo "$as_me:$LINENO: checking whether linux/joystick.h uses the Linux 2.2+ API" >&5
17609 echo $ECHO_N "checking whether linux/joystick.h uses the Linux 2.2+ API... $ECHO_C" >&6
17610 if test "${wine_cv_linux_joystick_22_api+set}" = set; then
17611   echo $ECHO_N "(cached) $ECHO_C" >&6
17612 else
17613   cat >conftest.$ac_ext <<_ACEOF
17614 /* confdefs.h.  */
17615 _ACEOF
17616 cat confdefs.h >>conftest.$ac_ext
17617 cat >>conftest.$ac_ext <<_ACEOF
17618 /* end confdefs.h.  */
17619
17620         #include <sys/ioctl.h>
17621         #include <linux/joystick.h>
17622
17623         struct js_event blub;
17624         #if !defined(JS_EVENT_AXIS) || !defined(JS_EVENT_BUTTON)
17625         #error "no 2.2 header"
17626         #endif
17627
17628 int
17629 main ()
17630 {
17631 /*empty*/
17632   ;
17633   return 0;
17634 }
17635 _ACEOF
17636 rm -f conftest.$ac_objext
17637 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17638   (eval $ac_compile) 2>conftest.er1
17639   ac_status=$?
17640   grep -v '^ *+' conftest.er1 >conftest.err
17641   rm -f conftest.er1
17642   cat conftest.err >&5
17643   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17644   (exit $ac_status); } &&
17645          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
17646   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17647   (eval $ac_try) 2>&5
17648   ac_status=$?
17649   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17650   (exit $ac_status); }; } &&
17651          { ac_try='test -s conftest.$ac_objext'
17652   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17653   (eval $ac_try) 2>&5
17654   ac_status=$?
17655   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17656   (exit $ac_status); }; }; then
17657   wine_cv_linux_joystick_22_api=yes
17658 else
17659   echo "$as_me: failed program was:" >&5
17660 sed 's/^/| /' conftest.$ac_ext >&5
17661
17662 wine_cv_linux_joystick_22_api=no
17663 fi
17664 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17665
17666 fi
17667 echo "$as_me:$LINENO: result: $wine_cv_linux_joystick_22_api" >&5
17668 echo "${ECHO_T}$wine_cv_linux_joystick_22_api" >&6
17669    if test "$wine_cv_linux_joystick_22_api" = "yes"
17670    then
17671
17672 cat >>confdefs.h <<\_ACEOF
17673 #define HAVE_LINUX_22_JOYSTICK_API 1
17674 _ACEOF
17675
17676    fi
17677 fi
17678
17679
17680 if test "$ac_cv_header_sys_vfs_h" = "yes"
17681 then
17682     echo "$as_me:$LINENO: checking whether sys/vfs.h defines statfs" >&5
17683 echo $ECHO_N "checking whether sys/vfs.h defines statfs... $ECHO_C" >&6
17684 if test "${wine_cv_sys_vfs_has_statfs+set}" = set; then
17685   echo $ECHO_N "(cached) $ECHO_C" >&6
17686 else
17687   cat >conftest.$ac_ext <<_ACEOF
17688 /* confdefs.h.  */
17689 _ACEOF
17690 cat confdefs.h >>conftest.$ac_ext
17691 cat >>conftest.$ac_ext <<_ACEOF
17692 /* end confdefs.h.  */
17693
17694         #include <sys/types.h>
17695         #ifdef HAVE_SYS_PARAM_H
17696         # include <sys/param.h>
17697         #endif
17698         #include <sys/vfs.h>
17699
17700 int
17701 main ()
17702 {
17703
17704                 struct statfs stfs;
17705
17706                 memset(&stfs,0,sizeof(stfs));
17707
17708   ;
17709   return 0;
17710 }
17711 _ACEOF
17712 rm -f conftest.$ac_objext
17713 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17714   (eval $ac_compile) 2>conftest.er1
17715   ac_status=$?
17716   grep -v '^ *+' conftest.er1 >conftest.err
17717   rm -f conftest.er1
17718   cat conftest.err >&5
17719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17720   (exit $ac_status); } &&
17721          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
17722   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17723   (eval $ac_try) 2>&5
17724   ac_status=$?
17725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17726   (exit $ac_status); }; } &&
17727          { ac_try='test -s conftest.$ac_objext'
17728   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17729   (eval $ac_try) 2>&5
17730   ac_status=$?
17731   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17732   (exit $ac_status); }; }; then
17733   wine_cv_sys_vfs_has_statfs=yes
17734 else
17735   echo "$as_me: failed program was:" >&5
17736 sed 's/^/| /' conftest.$ac_ext >&5
17737
17738 wine_cv_sys_vfs_has_statfs=no
17739
17740 fi
17741 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17742
17743 fi
17744 echo "$as_me:$LINENO: result: $wine_cv_sys_vfs_has_statfs" >&5
17745 echo "${ECHO_T}$wine_cv_sys_vfs_has_statfs" >&6
17746     if test "$wine_cv_sys_vfs_has_statfs" = "yes"
17747     then
17748
17749 cat >>confdefs.h <<\_ACEOF
17750 #define STATFS_DEFINED_BY_SYS_VFS 1
17751 _ACEOF
17752
17753     fi
17754 fi
17755
17756 if test "$ac_cv_header_sys_statfs_h" = "yes"
17757 then
17758     echo "$as_me:$LINENO: checking whether sys/statfs.h defines statfs" >&5
17759 echo $ECHO_N "checking whether sys/statfs.h defines statfs... $ECHO_C" >&6
17760 if test "${wine_cv_sys_statfs_has_statfs+set}" = set; then
17761   echo $ECHO_N "(cached) $ECHO_C" >&6
17762 else
17763   cat >conftest.$ac_ext <<_ACEOF
17764 /* confdefs.h.  */
17765 _ACEOF
17766 cat confdefs.h >>conftest.$ac_ext
17767 cat >>conftest.$ac_ext <<_ACEOF
17768 /* end confdefs.h.  */
17769
17770         #include <sys/types.h>
17771         #ifdef HAVE_SYS_PARAM_H
17772         # include <sys/param.h>
17773         #endif
17774         #include <sys/statfs.h>
17775
17776 int
17777 main ()
17778 {
17779
17780                 struct statfs stfs;
17781
17782   ;
17783   return 0;
17784 }
17785 _ACEOF
17786 rm -f conftest.$ac_objext
17787 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17788   (eval $ac_compile) 2>conftest.er1
17789   ac_status=$?
17790   grep -v '^ *+' conftest.er1 >conftest.err
17791   rm -f conftest.er1
17792   cat conftest.err >&5
17793   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17794   (exit $ac_status); } &&
17795          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
17796   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17797   (eval $ac_try) 2>&5
17798   ac_status=$?
17799   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17800   (exit $ac_status); }; } &&
17801          { ac_try='test -s conftest.$ac_objext'
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); }; }; then
17807   wine_cv_sys_statfs_has_statfs=yes
17808 else
17809   echo "$as_me: failed program was:" >&5
17810 sed 's/^/| /' conftest.$ac_ext >&5
17811
17812 wine_cv_sys_statfs_has_statfs=no
17813
17814 fi
17815 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17816
17817 fi
17818 echo "$as_me:$LINENO: result: $wine_cv_sys_statfs_has_statfs" >&5
17819 echo "${ECHO_T}$wine_cv_sys_statfs_has_statfs" >&6
17820     if test "$wine_cv_sys_statfs_has_statfs" = "yes"
17821     then
17822
17823 cat >>confdefs.h <<\_ACEOF
17824 #define STATFS_DEFINED_BY_SYS_STATFS 1
17825 _ACEOF
17826
17827     fi
17828 fi
17829
17830 if test "$ac_cv_header_sys_mount_h" = "yes"
17831 then
17832     echo "$as_me:$LINENO: checking whether sys/mount.h defines statfs" >&5
17833 echo $ECHO_N "checking whether sys/mount.h defines statfs... $ECHO_C" >&6
17834 if test "${wine_cv_sys_mount_has_statfs+set}" = set; then
17835   echo $ECHO_N "(cached) $ECHO_C" >&6
17836 else
17837   cat >conftest.$ac_ext <<_ACEOF
17838 /* confdefs.h.  */
17839 _ACEOF
17840 cat confdefs.h >>conftest.$ac_ext
17841 cat >>conftest.$ac_ext <<_ACEOF
17842 /* end confdefs.h.  */
17843
17844         #include <sys/types.h>
17845         #ifdef HAVE_SYS_PARAM_H
17846         # include <sys/param.h>
17847         #endif
17848         #include <sys/mount.h>
17849
17850 int
17851 main ()
17852 {
17853
17854                 struct statfs stfs;
17855
17856   ;
17857   return 0;
17858 }
17859 _ACEOF
17860 rm -f conftest.$ac_objext
17861 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17862   (eval $ac_compile) 2>conftest.er1
17863   ac_status=$?
17864   grep -v '^ *+' conftest.er1 >conftest.err
17865   rm -f conftest.er1
17866   cat conftest.err >&5
17867   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17868   (exit $ac_status); } &&
17869          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
17870   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17871   (eval $ac_try) 2>&5
17872   ac_status=$?
17873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17874   (exit $ac_status); }; } &&
17875          { ac_try='test -s conftest.$ac_objext'
17876   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17877   (eval $ac_try) 2>&5
17878   ac_status=$?
17879   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17880   (exit $ac_status); }; }; then
17881   wine_cv_sys_mount_has_statfs=yes
17882 else
17883   echo "$as_me: failed program was:" >&5
17884 sed 's/^/| /' conftest.$ac_ext >&5
17885
17886 wine_cv_sys_mount_has_statfs=no
17887
17888 fi
17889 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17890
17891 fi
17892 echo "$as_me:$LINENO: result: $wine_cv_sys_mount_has_statfs" >&5
17893 echo "${ECHO_T}$wine_cv_sys_mount_has_statfs" >&6
17894     if test "$wine_cv_sys_mount_has_statfs" = "yes"
17895     then
17896
17897 cat >>confdefs.h <<\_ACEOF
17898 #define STATFS_DEFINED_BY_SYS_MOUNT 1
17899 _ACEOF
17900
17901     fi
17902 fi
17903
17904
17905 echo "$as_me:$LINENO: checking for struct statfs.f_bfree" >&5
17906 echo $ECHO_N "checking for struct statfs.f_bfree... $ECHO_C" >&6
17907 if test "${ac_cv_member_struct_statfs_f_bfree+set}" = set; then
17908   echo $ECHO_N "(cached) $ECHO_C" >&6
17909 else
17910   cat >conftest.$ac_ext <<_ACEOF
17911 /* confdefs.h.  */
17912 _ACEOF
17913 cat confdefs.h >>conftest.$ac_ext
17914 cat >>conftest.$ac_ext <<_ACEOF
17915 /* end confdefs.h.  */
17916 #include <sys/types.h>
17917 #ifdef HAVE_SYS_PARAM_H
17918 # include <sys/param.h>
17919 #endif
17920 #ifdef STATFS_DEFINED_BY_SYS_MOUNT
17921 # include <sys/mount.h>
17922 #else
17923 # ifdef STATFS_DEFINED_BY_SYS_VFS
17924 #  include <sys/vfs.h>
17925 # else
17926 #  ifdef STATFS_DEFINED_BY_SYS_STATFS
17927 #   include <sys/statfs.h>
17928 #  endif
17929 # endif
17930 #endif
17931
17932 int
17933 main ()
17934 {
17935 static struct statfs ac_aggr;
17936 if (ac_aggr.f_bfree)
17937 return 0;
17938   ;
17939   return 0;
17940 }
17941 _ACEOF
17942 rm -f conftest.$ac_objext
17943 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17944   (eval $ac_compile) 2>conftest.er1
17945   ac_status=$?
17946   grep -v '^ *+' conftest.er1 >conftest.err
17947   rm -f conftest.er1
17948   cat conftest.err >&5
17949   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17950   (exit $ac_status); } &&
17951          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
17952   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17953   (eval $ac_try) 2>&5
17954   ac_status=$?
17955   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17956   (exit $ac_status); }; } &&
17957          { ac_try='test -s conftest.$ac_objext'
17958   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17959   (eval $ac_try) 2>&5
17960   ac_status=$?
17961   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17962   (exit $ac_status); }; }; then
17963   ac_cv_member_struct_statfs_f_bfree=yes
17964 else
17965   echo "$as_me: failed program was:" >&5
17966 sed 's/^/| /' conftest.$ac_ext >&5
17967
17968 cat >conftest.$ac_ext <<_ACEOF
17969 /* confdefs.h.  */
17970 _ACEOF
17971 cat confdefs.h >>conftest.$ac_ext
17972 cat >>conftest.$ac_ext <<_ACEOF
17973 /* end confdefs.h.  */
17974 #include <sys/types.h>
17975 #ifdef HAVE_SYS_PARAM_H
17976 # include <sys/param.h>
17977 #endif
17978 #ifdef STATFS_DEFINED_BY_SYS_MOUNT
17979 # include <sys/mount.h>
17980 #else
17981 # ifdef STATFS_DEFINED_BY_SYS_VFS
17982 #  include <sys/vfs.h>
17983 # else
17984 #  ifdef STATFS_DEFINED_BY_SYS_STATFS
17985 #   include <sys/statfs.h>
17986 #  endif
17987 # endif
17988 #endif
17989
17990 int
17991 main ()
17992 {
17993 static struct statfs ac_aggr;
17994 if (sizeof ac_aggr.f_bfree)
17995 return 0;
17996   ;
17997   return 0;
17998 }
17999 _ACEOF
18000 rm -f conftest.$ac_objext
18001 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18002   (eval $ac_compile) 2>conftest.er1
18003   ac_status=$?
18004   grep -v '^ *+' conftest.er1 >conftest.err
18005   rm -f conftest.er1
18006   cat conftest.err >&5
18007   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18008   (exit $ac_status); } &&
18009          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
18010   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18011   (eval $ac_try) 2>&5
18012   ac_status=$?
18013   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18014   (exit $ac_status); }; } &&
18015          { ac_try='test -s conftest.$ac_objext'
18016   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18017   (eval $ac_try) 2>&5
18018   ac_status=$?
18019   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18020   (exit $ac_status); }; }; then
18021   ac_cv_member_struct_statfs_f_bfree=yes
18022 else
18023   echo "$as_me: failed program was:" >&5
18024 sed 's/^/| /' conftest.$ac_ext >&5
18025
18026 ac_cv_member_struct_statfs_f_bfree=no
18027 fi
18028 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18029 fi
18030 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18031 fi
18032 echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_bfree" >&5
18033 echo "${ECHO_T}$ac_cv_member_struct_statfs_f_bfree" >&6
18034 if test $ac_cv_member_struct_statfs_f_bfree = yes; then
18035
18036 cat >>confdefs.h <<_ACEOF
18037 #define HAVE_STRUCT_STATFS_F_BFREE 1
18038 _ACEOF
18039
18040
18041 fi
18042 echo "$as_me:$LINENO: checking for struct statfs.f_bavail" >&5
18043 echo $ECHO_N "checking for struct statfs.f_bavail... $ECHO_C" >&6
18044 if test "${ac_cv_member_struct_statfs_f_bavail+set}" = set; then
18045   echo $ECHO_N "(cached) $ECHO_C" >&6
18046 else
18047   cat >conftest.$ac_ext <<_ACEOF
18048 /* confdefs.h.  */
18049 _ACEOF
18050 cat confdefs.h >>conftest.$ac_ext
18051 cat >>conftest.$ac_ext <<_ACEOF
18052 /* end confdefs.h.  */
18053 #include <sys/types.h>
18054 #ifdef HAVE_SYS_PARAM_H
18055 # include <sys/param.h>
18056 #endif
18057 #ifdef STATFS_DEFINED_BY_SYS_MOUNT
18058 # include <sys/mount.h>
18059 #else
18060 # ifdef STATFS_DEFINED_BY_SYS_VFS
18061 #  include <sys/vfs.h>
18062 # else
18063 #  ifdef STATFS_DEFINED_BY_SYS_STATFS
18064 #   include <sys/statfs.h>
18065 #  endif
18066 # endif
18067 #endif
18068
18069 int
18070 main ()
18071 {
18072 static struct statfs ac_aggr;
18073 if (ac_aggr.f_bavail)
18074 return 0;
18075   ;
18076   return 0;
18077 }
18078 _ACEOF
18079 rm -f conftest.$ac_objext
18080 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18081   (eval $ac_compile) 2>conftest.er1
18082   ac_status=$?
18083   grep -v '^ *+' conftest.er1 >conftest.err
18084   rm -f conftest.er1
18085   cat conftest.err >&5
18086   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18087   (exit $ac_status); } &&
18088          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
18089   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18090   (eval $ac_try) 2>&5
18091   ac_status=$?
18092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18093   (exit $ac_status); }; } &&
18094          { ac_try='test -s conftest.$ac_objext'
18095   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18096   (eval $ac_try) 2>&5
18097   ac_status=$?
18098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18099   (exit $ac_status); }; }; then
18100   ac_cv_member_struct_statfs_f_bavail=yes
18101 else
18102   echo "$as_me: failed program was:" >&5
18103 sed 's/^/| /' conftest.$ac_ext >&5
18104
18105 cat >conftest.$ac_ext <<_ACEOF
18106 /* confdefs.h.  */
18107 _ACEOF
18108 cat confdefs.h >>conftest.$ac_ext
18109 cat >>conftest.$ac_ext <<_ACEOF
18110 /* end confdefs.h.  */
18111 #include <sys/types.h>
18112 #ifdef HAVE_SYS_PARAM_H
18113 # include <sys/param.h>
18114 #endif
18115 #ifdef STATFS_DEFINED_BY_SYS_MOUNT
18116 # include <sys/mount.h>
18117 #else
18118 # ifdef STATFS_DEFINED_BY_SYS_VFS
18119 #  include <sys/vfs.h>
18120 # else
18121 #  ifdef STATFS_DEFINED_BY_SYS_STATFS
18122 #   include <sys/statfs.h>
18123 #  endif
18124 # endif
18125 #endif
18126
18127 int
18128 main ()
18129 {
18130 static struct statfs ac_aggr;
18131 if (sizeof ac_aggr.f_bavail)
18132 return 0;
18133   ;
18134   return 0;
18135 }
18136 _ACEOF
18137 rm -f conftest.$ac_objext
18138 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18139   (eval $ac_compile) 2>conftest.er1
18140   ac_status=$?
18141   grep -v '^ *+' conftest.er1 >conftest.err
18142   rm -f conftest.er1
18143   cat conftest.err >&5
18144   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18145   (exit $ac_status); } &&
18146          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
18147   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18148   (eval $ac_try) 2>&5
18149   ac_status=$?
18150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18151   (exit $ac_status); }; } &&
18152          { ac_try='test -s conftest.$ac_objext'
18153   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18154   (eval $ac_try) 2>&5
18155   ac_status=$?
18156   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18157   (exit $ac_status); }; }; then
18158   ac_cv_member_struct_statfs_f_bavail=yes
18159 else
18160   echo "$as_me: failed program was:" >&5
18161 sed 's/^/| /' conftest.$ac_ext >&5
18162
18163 ac_cv_member_struct_statfs_f_bavail=no
18164 fi
18165 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18166 fi
18167 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18168 fi
18169 echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_bavail" >&5
18170 echo "${ECHO_T}$ac_cv_member_struct_statfs_f_bavail" >&6
18171 if test $ac_cv_member_struct_statfs_f_bavail = yes; then
18172
18173 cat >>confdefs.h <<_ACEOF
18174 #define HAVE_STRUCT_STATFS_F_BAVAIL 1
18175 _ACEOF
18176
18177
18178 fi
18179
18180
18181 echo "$as_me:$LINENO: checking for struct msghdr.msg_accrights" >&5
18182 echo $ECHO_N "checking for struct msghdr.msg_accrights... $ECHO_C" >&6
18183 if test "${ac_cv_member_struct_msghdr_msg_accrights+set}" = set; then
18184   echo $ECHO_N "(cached) $ECHO_C" >&6
18185 else
18186   cat >conftest.$ac_ext <<_ACEOF
18187 /* confdefs.h.  */
18188 _ACEOF
18189 cat confdefs.h >>conftest.$ac_ext
18190 cat >>conftest.$ac_ext <<_ACEOF
18191 /* end confdefs.h.  */
18192 #include <sys/types.h>
18193 #ifdef HAVE_SYS_SOCKET_H
18194 # include <sys/socket.h>
18195 #endif
18196 #ifdef HAVE_SYS_UN_H
18197 # include <sys/un.h>
18198 #endif
18199
18200 int
18201 main ()
18202 {
18203 static struct msghdr ac_aggr;
18204 if (ac_aggr.msg_accrights)
18205 return 0;
18206   ;
18207   return 0;
18208 }
18209 _ACEOF
18210 rm -f conftest.$ac_objext
18211 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18212   (eval $ac_compile) 2>conftest.er1
18213   ac_status=$?
18214   grep -v '^ *+' conftest.er1 >conftest.err
18215   rm -f conftest.er1
18216   cat conftest.err >&5
18217   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18218   (exit $ac_status); } &&
18219          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
18220   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18221   (eval $ac_try) 2>&5
18222   ac_status=$?
18223   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18224   (exit $ac_status); }; } &&
18225          { ac_try='test -s conftest.$ac_objext'
18226   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18227   (eval $ac_try) 2>&5
18228   ac_status=$?
18229   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18230   (exit $ac_status); }; }; then
18231   ac_cv_member_struct_msghdr_msg_accrights=yes
18232 else
18233   echo "$as_me: failed program was:" >&5
18234 sed 's/^/| /' conftest.$ac_ext >&5
18235
18236 cat >conftest.$ac_ext <<_ACEOF
18237 /* confdefs.h.  */
18238 _ACEOF
18239 cat confdefs.h >>conftest.$ac_ext
18240 cat >>conftest.$ac_ext <<_ACEOF
18241 /* end confdefs.h.  */
18242 #include <sys/types.h>
18243 #ifdef HAVE_SYS_SOCKET_H
18244 # include <sys/socket.h>
18245 #endif
18246 #ifdef HAVE_SYS_UN_H
18247 # include <sys/un.h>
18248 #endif
18249
18250 int
18251 main ()
18252 {
18253 static struct msghdr ac_aggr;
18254 if (sizeof ac_aggr.msg_accrights)
18255 return 0;
18256   ;
18257   return 0;
18258 }
18259 _ACEOF
18260 rm -f conftest.$ac_objext
18261 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18262   (eval $ac_compile) 2>conftest.er1
18263   ac_status=$?
18264   grep -v '^ *+' conftest.er1 >conftest.err
18265   rm -f conftest.er1
18266   cat conftest.err >&5
18267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18268   (exit $ac_status); } &&
18269          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
18270   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18271   (eval $ac_try) 2>&5
18272   ac_status=$?
18273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18274   (exit $ac_status); }; } &&
18275          { ac_try='test -s conftest.$ac_objext'
18276   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18277   (eval $ac_try) 2>&5
18278   ac_status=$?
18279   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18280   (exit $ac_status); }; }; then
18281   ac_cv_member_struct_msghdr_msg_accrights=yes
18282 else
18283   echo "$as_me: failed program was:" >&5
18284 sed 's/^/| /' conftest.$ac_ext >&5
18285
18286 ac_cv_member_struct_msghdr_msg_accrights=no
18287 fi
18288 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18289 fi
18290 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18291 fi
18292 echo "$as_me:$LINENO: result: $ac_cv_member_struct_msghdr_msg_accrights" >&5
18293 echo "${ECHO_T}$ac_cv_member_struct_msghdr_msg_accrights" >&6
18294 if test $ac_cv_member_struct_msghdr_msg_accrights = yes; then
18295
18296 cat >>confdefs.h <<_ACEOF
18297 #define HAVE_STRUCT_MSGHDR_MSG_ACCRIGHTS 1
18298 _ACEOF
18299
18300
18301 fi
18302 echo "$as_me:$LINENO: checking for struct sockaddr.sa_len" >&5
18303 echo $ECHO_N "checking for struct sockaddr.sa_len... $ECHO_C" >&6
18304 if test "${ac_cv_member_struct_sockaddr_sa_len+set}" = set; then
18305   echo $ECHO_N "(cached) $ECHO_C" >&6
18306 else
18307   cat >conftest.$ac_ext <<_ACEOF
18308 /* confdefs.h.  */
18309 _ACEOF
18310 cat confdefs.h >>conftest.$ac_ext
18311 cat >>conftest.$ac_ext <<_ACEOF
18312 /* end confdefs.h.  */
18313 #include <sys/types.h>
18314 #ifdef HAVE_SYS_SOCKET_H
18315 # include <sys/socket.h>
18316 #endif
18317 #ifdef HAVE_SYS_UN_H
18318 # include <sys/un.h>
18319 #endif
18320
18321 int
18322 main ()
18323 {
18324 static struct sockaddr ac_aggr;
18325 if (ac_aggr.sa_len)
18326 return 0;
18327   ;
18328   return 0;
18329 }
18330 _ACEOF
18331 rm -f conftest.$ac_objext
18332 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18333   (eval $ac_compile) 2>conftest.er1
18334   ac_status=$?
18335   grep -v '^ *+' conftest.er1 >conftest.err
18336   rm -f conftest.er1
18337   cat conftest.err >&5
18338   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18339   (exit $ac_status); } &&
18340          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
18341   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18342   (eval $ac_try) 2>&5
18343   ac_status=$?
18344   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18345   (exit $ac_status); }; } &&
18346          { ac_try='test -s conftest.$ac_objext'
18347   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18348   (eval $ac_try) 2>&5
18349   ac_status=$?
18350   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18351   (exit $ac_status); }; }; then
18352   ac_cv_member_struct_sockaddr_sa_len=yes
18353 else
18354   echo "$as_me: failed program was:" >&5
18355 sed 's/^/| /' conftest.$ac_ext >&5
18356
18357 cat >conftest.$ac_ext <<_ACEOF
18358 /* confdefs.h.  */
18359 _ACEOF
18360 cat confdefs.h >>conftest.$ac_ext
18361 cat >>conftest.$ac_ext <<_ACEOF
18362 /* end confdefs.h.  */
18363 #include <sys/types.h>
18364 #ifdef HAVE_SYS_SOCKET_H
18365 # include <sys/socket.h>
18366 #endif
18367 #ifdef HAVE_SYS_UN_H
18368 # include <sys/un.h>
18369 #endif
18370
18371 int
18372 main ()
18373 {
18374 static struct sockaddr ac_aggr;
18375 if (sizeof ac_aggr.sa_len)
18376 return 0;
18377   ;
18378   return 0;
18379 }
18380 _ACEOF
18381 rm -f conftest.$ac_objext
18382 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18383   (eval $ac_compile) 2>conftest.er1
18384   ac_status=$?
18385   grep -v '^ *+' conftest.er1 >conftest.err
18386   rm -f conftest.er1
18387   cat conftest.err >&5
18388   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18389   (exit $ac_status); } &&
18390          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
18391   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18392   (eval $ac_try) 2>&5
18393   ac_status=$?
18394   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18395   (exit $ac_status); }; } &&
18396          { ac_try='test -s conftest.$ac_objext'
18397   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18398   (eval $ac_try) 2>&5
18399   ac_status=$?
18400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18401   (exit $ac_status); }; }; then
18402   ac_cv_member_struct_sockaddr_sa_len=yes
18403 else
18404   echo "$as_me: failed program was:" >&5
18405 sed 's/^/| /' conftest.$ac_ext >&5
18406
18407 ac_cv_member_struct_sockaddr_sa_len=no
18408 fi
18409 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18410 fi
18411 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18412 fi
18413 echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_sa_len" >&5
18414 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_sa_len" >&6
18415 if test $ac_cv_member_struct_sockaddr_sa_len = yes; then
18416
18417 cat >>confdefs.h <<_ACEOF
18418 #define HAVE_STRUCT_SOCKADDR_SA_LEN 1
18419 _ACEOF
18420
18421
18422 fi
18423 echo "$as_me:$LINENO: checking for struct sockaddr_un.sun_len" >&5
18424 echo $ECHO_N "checking for struct sockaddr_un.sun_len... $ECHO_C" >&6
18425 if test "${ac_cv_member_struct_sockaddr_un_sun_len+set}" = set; then
18426   echo $ECHO_N "(cached) $ECHO_C" >&6
18427 else
18428   cat >conftest.$ac_ext <<_ACEOF
18429 /* confdefs.h.  */
18430 _ACEOF
18431 cat confdefs.h >>conftest.$ac_ext
18432 cat >>conftest.$ac_ext <<_ACEOF
18433 /* end confdefs.h.  */
18434 #include <sys/types.h>
18435 #ifdef HAVE_SYS_SOCKET_H
18436 # include <sys/socket.h>
18437 #endif
18438 #ifdef HAVE_SYS_UN_H
18439 # include <sys/un.h>
18440 #endif
18441
18442 int
18443 main ()
18444 {
18445 static struct sockaddr_un ac_aggr;
18446 if (ac_aggr.sun_len)
18447 return 0;
18448   ;
18449   return 0;
18450 }
18451 _ACEOF
18452 rm -f conftest.$ac_objext
18453 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18454   (eval $ac_compile) 2>conftest.er1
18455   ac_status=$?
18456   grep -v '^ *+' conftest.er1 >conftest.err
18457   rm -f conftest.er1
18458   cat conftest.err >&5
18459   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18460   (exit $ac_status); } &&
18461          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
18462   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18463   (eval $ac_try) 2>&5
18464   ac_status=$?
18465   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18466   (exit $ac_status); }; } &&
18467          { ac_try='test -s conftest.$ac_objext'
18468   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18469   (eval $ac_try) 2>&5
18470   ac_status=$?
18471   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18472   (exit $ac_status); }; }; then
18473   ac_cv_member_struct_sockaddr_un_sun_len=yes
18474 else
18475   echo "$as_me: failed program was:" >&5
18476 sed 's/^/| /' conftest.$ac_ext >&5
18477
18478 cat >conftest.$ac_ext <<_ACEOF
18479 /* confdefs.h.  */
18480 _ACEOF
18481 cat confdefs.h >>conftest.$ac_ext
18482 cat >>conftest.$ac_ext <<_ACEOF
18483 /* end confdefs.h.  */
18484 #include <sys/types.h>
18485 #ifdef HAVE_SYS_SOCKET_H
18486 # include <sys/socket.h>
18487 #endif
18488 #ifdef HAVE_SYS_UN_H
18489 # include <sys/un.h>
18490 #endif
18491
18492 int
18493 main ()
18494 {
18495 static struct sockaddr_un ac_aggr;
18496 if (sizeof ac_aggr.sun_len)
18497 return 0;
18498   ;
18499   return 0;
18500 }
18501 _ACEOF
18502 rm -f conftest.$ac_objext
18503 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18504   (eval $ac_compile) 2>conftest.er1
18505   ac_status=$?
18506   grep -v '^ *+' conftest.er1 >conftest.err
18507   rm -f conftest.er1
18508   cat conftest.err >&5
18509   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18510   (exit $ac_status); } &&
18511          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
18512   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18513   (eval $ac_try) 2>&5
18514   ac_status=$?
18515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18516   (exit $ac_status); }; } &&
18517          { ac_try='test -s conftest.$ac_objext'
18518   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18519   (eval $ac_try) 2>&5
18520   ac_status=$?
18521   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18522   (exit $ac_status); }; }; then
18523   ac_cv_member_struct_sockaddr_un_sun_len=yes
18524 else
18525   echo "$as_me: failed program was:" >&5
18526 sed 's/^/| /' conftest.$ac_ext >&5
18527
18528 ac_cv_member_struct_sockaddr_un_sun_len=no
18529 fi
18530 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18531 fi
18532 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18533 fi
18534 echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_un_sun_len" >&5
18535 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_un_sun_len" >&6
18536 if test $ac_cv_member_struct_sockaddr_un_sun_len = yes; then
18537
18538 cat >>confdefs.h <<_ACEOF
18539 #define HAVE_STRUCT_SOCKADDR_UN_SUN_LEN 1
18540 _ACEOF
18541
18542
18543 fi
18544
18545
18546 echo "$as_me:$LINENO: checking for siginfo_t.si_fd" >&5
18547 echo $ECHO_N "checking for siginfo_t.si_fd... $ECHO_C" >&6
18548 if test "${ac_cv_member_siginfo_t_si_fd+set}" = set; then
18549   echo $ECHO_N "(cached) $ECHO_C" >&6
18550 else
18551   cat >conftest.$ac_ext <<_ACEOF
18552 /* confdefs.h.  */
18553 _ACEOF
18554 cat confdefs.h >>conftest.$ac_ext
18555 cat >>conftest.$ac_ext <<_ACEOF
18556 /* end confdefs.h.  */
18557 #include <signal.h>
18558
18559 int
18560 main ()
18561 {
18562 static siginfo_t ac_aggr;
18563 if (ac_aggr.si_fd)
18564 return 0;
18565   ;
18566   return 0;
18567 }
18568 _ACEOF
18569 rm -f conftest.$ac_objext
18570 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18571   (eval $ac_compile) 2>conftest.er1
18572   ac_status=$?
18573   grep -v '^ *+' conftest.er1 >conftest.err
18574   rm -f conftest.er1
18575   cat conftest.err >&5
18576   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18577   (exit $ac_status); } &&
18578          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
18579   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18580   (eval $ac_try) 2>&5
18581   ac_status=$?
18582   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18583   (exit $ac_status); }; } &&
18584          { ac_try='test -s conftest.$ac_objext'
18585   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18586   (eval $ac_try) 2>&5
18587   ac_status=$?
18588   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18589   (exit $ac_status); }; }; then
18590   ac_cv_member_siginfo_t_si_fd=yes
18591 else
18592   echo "$as_me: failed program was:" >&5
18593 sed 's/^/| /' conftest.$ac_ext >&5
18594
18595 cat >conftest.$ac_ext <<_ACEOF
18596 /* confdefs.h.  */
18597 _ACEOF
18598 cat confdefs.h >>conftest.$ac_ext
18599 cat >>conftest.$ac_ext <<_ACEOF
18600 /* end confdefs.h.  */
18601 #include <signal.h>
18602
18603 int
18604 main ()
18605 {
18606 static siginfo_t ac_aggr;
18607 if (sizeof ac_aggr.si_fd)
18608 return 0;
18609   ;
18610   return 0;
18611 }
18612 _ACEOF
18613 rm -f conftest.$ac_objext
18614 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18615   (eval $ac_compile) 2>conftest.er1
18616   ac_status=$?
18617   grep -v '^ *+' conftest.er1 >conftest.err
18618   rm -f conftest.er1
18619   cat conftest.err >&5
18620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18621   (exit $ac_status); } &&
18622          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
18623   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18624   (eval $ac_try) 2>&5
18625   ac_status=$?
18626   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18627   (exit $ac_status); }; } &&
18628          { ac_try='test -s conftest.$ac_objext'
18629   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18630   (eval $ac_try) 2>&5
18631   ac_status=$?
18632   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18633   (exit $ac_status); }; }; then
18634   ac_cv_member_siginfo_t_si_fd=yes
18635 else
18636   echo "$as_me: failed program was:" >&5
18637 sed 's/^/| /' conftest.$ac_ext >&5
18638
18639 ac_cv_member_siginfo_t_si_fd=no
18640 fi
18641 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18642 fi
18643 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18644 fi
18645 echo "$as_me:$LINENO: result: $ac_cv_member_siginfo_t_si_fd" >&5
18646 echo "${ECHO_T}$ac_cv_member_siginfo_t_si_fd" >&6
18647 if test $ac_cv_member_siginfo_t_si_fd = yes; then
18648
18649 cat >>confdefs.h <<_ACEOF
18650 #define HAVE_SIGINFO_T_SI_FD 1
18651 _ACEOF
18652
18653
18654 fi
18655
18656
18657 echo "$as_me:$LINENO: checking for struct option.name" >&5
18658 echo $ECHO_N "checking for struct option.name... $ECHO_C" >&6
18659 if test "${ac_cv_member_struct_option_name+set}" = set; then
18660   echo $ECHO_N "(cached) $ECHO_C" >&6
18661 else
18662   cat >conftest.$ac_ext <<_ACEOF
18663 /* confdefs.h.  */
18664 _ACEOF
18665 cat confdefs.h >>conftest.$ac_ext
18666 cat >>conftest.$ac_ext <<_ACEOF
18667 /* end confdefs.h.  */
18668 #ifdef HAVE_GETOPT_H
18669 #include <getopt.h>
18670 #endif
18671
18672 int
18673 main ()
18674 {
18675 static struct option ac_aggr;
18676 if (ac_aggr.name)
18677 return 0;
18678   ;
18679   return 0;
18680 }
18681 _ACEOF
18682 rm -f conftest.$ac_objext
18683 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18684   (eval $ac_compile) 2>conftest.er1
18685   ac_status=$?
18686   grep -v '^ *+' conftest.er1 >conftest.err
18687   rm -f conftest.er1
18688   cat conftest.err >&5
18689   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18690   (exit $ac_status); } &&
18691          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
18692   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18693   (eval $ac_try) 2>&5
18694   ac_status=$?
18695   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18696   (exit $ac_status); }; } &&
18697          { ac_try='test -s conftest.$ac_objext'
18698   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18699   (eval $ac_try) 2>&5
18700   ac_status=$?
18701   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18702   (exit $ac_status); }; }; then
18703   ac_cv_member_struct_option_name=yes
18704 else
18705   echo "$as_me: failed program was:" >&5
18706 sed 's/^/| /' conftest.$ac_ext >&5
18707
18708 cat >conftest.$ac_ext <<_ACEOF
18709 /* confdefs.h.  */
18710 _ACEOF
18711 cat confdefs.h >>conftest.$ac_ext
18712 cat >>conftest.$ac_ext <<_ACEOF
18713 /* end confdefs.h.  */
18714 #ifdef HAVE_GETOPT_H
18715 #include <getopt.h>
18716 #endif
18717
18718 int
18719 main ()
18720 {
18721 static struct option ac_aggr;
18722 if (sizeof ac_aggr.name)
18723 return 0;
18724   ;
18725   return 0;
18726 }
18727 _ACEOF
18728 rm -f conftest.$ac_objext
18729 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18730   (eval $ac_compile) 2>conftest.er1
18731   ac_status=$?
18732   grep -v '^ *+' conftest.er1 >conftest.err
18733   rm -f conftest.er1
18734   cat conftest.err >&5
18735   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18736   (exit $ac_status); } &&
18737          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
18738   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18739   (eval $ac_try) 2>&5
18740   ac_status=$?
18741   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18742   (exit $ac_status); }; } &&
18743          { ac_try='test -s conftest.$ac_objext'
18744   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18745   (eval $ac_try) 2>&5
18746   ac_status=$?
18747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18748   (exit $ac_status); }; }; then
18749   ac_cv_member_struct_option_name=yes
18750 else
18751   echo "$as_me: failed program was:" >&5
18752 sed 's/^/| /' conftest.$ac_ext >&5
18753
18754 ac_cv_member_struct_option_name=no
18755 fi
18756 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18757 fi
18758 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18759 fi
18760 echo "$as_me:$LINENO: result: $ac_cv_member_struct_option_name" >&5
18761 echo "${ECHO_T}$ac_cv_member_struct_option_name" >&6
18762 if test $ac_cv_member_struct_option_name = yes; then
18763
18764 cat >>confdefs.h <<_ACEOF
18765 #define HAVE_STRUCT_OPTION_NAME 1
18766 _ACEOF
18767
18768
18769 fi
18770
18771
18772 echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
18773 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
18774 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
18775   echo $ECHO_N "(cached) $ECHO_C" >&6
18776 else
18777   cat >conftest.$ac_ext <<_ACEOF
18778 /* confdefs.h.  */
18779 _ACEOF
18780 cat confdefs.h >>conftest.$ac_ext
18781 cat >>conftest.$ac_ext <<_ACEOF
18782 /* end confdefs.h.  */
18783 $ac_includes_default
18784 int
18785 main ()
18786 {
18787 static struct stat ac_aggr;
18788 if (ac_aggr.st_blocks)
18789 return 0;
18790   ;
18791   return 0;
18792 }
18793 _ACEOF
18794 rm -f conftest.$ac_objext
18795 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18796   (eval $ac_compile) 2>conftest.er1
18797   ac_status=$?
18798   grep -v '^ *+' conftest.er1 >conftest.err
18799   rm -f conftest.er1
18800   cat conftest.err >&5
18801   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18802   (exit $ac_status); } &&
18803          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
18804   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18805   (eval $ac_try) 2>&5
18806   ac_status=$?
18807   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18808   (exit $ac_status); }; } &&
18809          { ac_try='test -s conftest.$ac_objext'
18810   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18811   (eval $ac_try) 2>&5
18812   ac_status=$?
18813   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18814   (exit $ac_status); }; }; then
18815   ac_cv_member_struct_stat_st_blocks=yes
18816 else
18817   echo "$as_me: failed program was:" >&5
18818 sed 's/^/| /' conftest.$ac_ext >&5
18819
18820 cat >conftest.$ac_ext <<_ACEOF
18821 /* confdefs.h.  */
18822 _ACEOF
18823 cat confdefs.h >>conftest.$ac_ext
18824 cat >>conftest.$ac_ext <<_ACEOF
18825 /* end confdefs.h.  */
18826 $ac_includes_default
18827 int
18828 main ()
18829 {
18830 static struct stat ac_aggr;
18831 if (sizeof ac_aggr.st_blocks)
18832 return 0;
18833   ;
18834   return 0;
18835 }
18836 _ACEOF
18837 rm -f conftest.$ac_objext
18838 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18839   (eval $ac_compile) 2>conftest.er1
18840   ac_status=$?
18841   grep -v '^ *+' conftest.er1 >conftest.err
18842   rm -f conftest.er1
18843   cat conftest.err >&5
18844   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18845   (exit $ac_status); } &&
18846          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
18847   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18848   (eval $ac_try) 2>&5
18849   ac_status=$?
18850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18851   (exit $ac_status); }; } &&
18852          { ac_try='test -s conftest.$ac_objext'
18853   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18854   (eval $ac_try) 2>&5
18855   ac_status=$?
18856   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18857   (exit $ac_status); }; }; then
18858   ac_cv_member_struct_stat_st_blocks=yes
18859 else
18860   echo "$as_me: failed program was:" >&5
18861 sed 's/^/| /' conftest.$ac_ext >&5
18862
18863 ac_cv_member_struct_stat_st_blocks=no
18864 fi
18865 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18866 fi
18867 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18868 fi
18869 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
18870 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
18871 if test $ac_cv_member_struct_stat_st_blocks = yes; then
18872
18873 cat >>confdefs.h <<_ACEOF
18874 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
18875 _ACEOF
18876
18877
18878 fi
18879
18880
18881
18882 case $host_cpu in
18883   *i[3456789]86*) echo "$as_me:$LINENO: checking whether we need to define __i386__" >&5
18884 echo $ECHO_N "checking whether we need to define __i386__... $ECHO_C" >&6
18885 if test "${ac_cv_cpp_def___i386__+set}" = set; then
18886   echo $ECHO_N "(cached) $ECHO_C" >&6
18887 else
18888   cat >conftest.$ac_ext <<_ACEOF
18889 /* confdefs.h.  */
18890 _ACEOF
18891 cat confdefs.h >>conftest.$ac_ext
18892 cat >>conftest.$ac_ext <<_ACEOF
18893 /* end confdefs.h.  */
18894 #ifndef __i386__
18895 yes
18896 #endif
18897 _ACEOF
18898 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18899   $EGREP "yes" >/dev/null 2>&1; then
18900   ac_cv_cpp_def___i386__=yes
18901 else
18902   ac_cv_cpp_def___i386__=no
18903 fi
18904 rm -f conftest*
18905
18906 fi
18907 echo "$as_me:$LINENO: result: $ac_cv_cpp_def___i386__" >&5
18908 echo "${ECHO_T}$ac_cv_cpp_def___i386__" >&6
18909 if test $ac_cv_cpp_def___i386__ = yes; then
18910   CFLAGS="$CFLAGS -D__i386__"
18911   LINTFLAGS="$LINTFLAGS -D__i386__"
18912 fi
18913  ;;
18914   *alpha*)          echo "$as_me:$LINENO: checking whether we need to define __ALPHA__" >&5
18915 echo $ECHO_N "checking whether we need to define __ALPHA__... $ECHO_C" >&6
18916 if test "${ac_cv_cpp_def___ALPHA__+set}" = set; then
18917   echo $ECHO_N "(cached) $ECHO_C" >&6
18918 else
18919   cat >conftest.$ac_ext <<_ACEOF
18920 /* confdefs.h.  */
18921 _ACEOF
18922 cat confdefs.h >>conftest.$ac_ext
18923 cat >>conftest.$ac_ext <<_ACEOF
18924 /* end confdefs.h.  */
18925 #ifndef __ALPHA__
18926 yes
18927 #endif
18928 _ACEOF
18929 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18930   $EGREP "yes" >/dev/null 2>&1; then
18931   ac_cv_cpp_def___ALPHA__=yes
18932 else
18933   ac_cv_cpp_def___ALPHA__=no
18934 fi
18935 rm -f conftest*
18936
18937 fi
18938 echo "$as_me:$LINENO: result: $ac_cv_cpp_def___ALPHA__" >&5
18939 echo "${ECHO_T}$ac_cv_cpp_def___ALPHA__" >&6
18940 if test $ac_cv_cpp_def___ALPHA__ = yes; then
18941   CFLAGS="$CFLAGS -D__ALPHA__"
18942   LINTFLAGS="$LINTFLAGS -D__ALPHA__"
18943 fi
18944  ;;
18945   *sparc*)          echo "$as_me:$LINENO: checking whether we need to define __sparc__" >&5
18946 echo $ECHO_N "checking whether we need to define __sparc__... $ECHO_C" >&6
18947 if test "${ac_cv_cpp_def___sparc__+set}" = set; then
18948   echo $ECHO_N "(cached) $ECHO_C" >&6
18949 else
18950   cat >conftest.$ac_ext <<_ACEOF
18951 /* confdefs.h.  */
18952 _ACEOF
18953 cat confdefs.h >>conftest.$ac_ext
18954 cat >>conftest.$ac_ext <<_ACEOF
18955 /* end confdefs.h.  */
18956 #ifndef __sparc__
18957 yes
18958 #endif
18959 _ACEOF
18960 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18961   $EGREP "yes" >/dev/null 2>&1; then
18962   ac_cv_cpp_def___sparc__=yes
18963 else
18964   ac_cv_cpp_def___sparc__=no
18965 fi
18966 rm -f conftest*
18967
18968 fi
18969 echo "$as_me:$LINENO: result: $ac_cv_cpp_def___sparc__" >&5
18970 echo "${ECHO_T}$ac_cv_cpp_def___sparc__" >&6
18971 if test $ac_cv_cpp_def___sparc__ = yes; then
18972   CFLAGS="$CFLAGS -D__sparc__"
18973   LINTFLAGS="$LINTFLAGS -D__sparc__"
18974 fi
18975  ;;
18976   *powerpc*)        echo "$as_me:$LINENO: checking whether we need to define __powerpc__" >&5
18977 echo $ECHO_N "checking whether we need to define __powerpc__... $ECHO_C" >&6
18978 if test "${ac_cv_cpp_def___powerpc__+set}" = set; then
18979   echo $ECHO_N "(cached) $ECHO_C" >&6
18980 else
18981   cat >conftest.$ac_ext <<_ACEOF
18982 /* confdefs.h.  */
18983 _ACEOF
18984 cat confdefs.h >>conftest.$ac_ext
18985 cat >>conftest.$ac_ext <<_ACEOF
18986 /* end confdefs.h.  */
18987 #ifndef __powerpc__
18988 yes
18989 #endif
18990 _ACEOF
18991 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18992   $EGREP "yes" >/dev/null 2>&1; then
18993   ac_cv_cpp_def___powerpc__=yes
18994 else
18995   ac_cv_cpp_def___powerpc__=no
18996 fi
18997 rm -f conftest*
18998
18999 fi
19000 echo "$as_me:$LINENO: result: $ac_cv_cpp_def___powerpc__" >&5
19001 echo "${ECHO_T}$ac_cv_cpp_def___powerpc__" >&6
19002 if test $ac_cv_cpp_def___powerpc__ = yes; then
19003   CFLAGS="$CFLAGS -D__powerpc__"
19004   LINTFLAGS="$LINTFLAGS -D__powerpc__"
19005 fi
19006  ;;
19007 esac
19008
19009 case $host_vendor in
19010   *sun*) echo "$as_me:$LINENO: checking whether we need to define __sun__" >&5
19011 echo $ECHO_N "checking whether we need to define __sun__... $ECHO_C" >&6
19012 if test "${ac_cv_cpp_def___sun__+set}" = set; then
19013   echo $ECHO_N "(cached) $ECHO_C" >&6
19014 else
19015   cat >conftest.$ac_ext <<_ACEOF
19016 /* confdefs.h.  */
19017 _ACEOF
19018 cat confdefs.h >>conftest.$ac_ext
19019 cat >>conftest.$ac_ext <<_ACEOF
19020 /* end confdefs.h.  */
19021 #ifndef __sun__
19022 yes
19023 #endif
19024 _ACEOF
19025 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19026   $EGREP "yes" >/dev/null 2>&1; then
19027   ac_cv_cpp_def___sun__=yes
19028 else
19029   ac_cv_cpp_def___sun__=no
19030 fi
19031 rm -f conftest*
19032
19033 fi
19034 echo "$as_me:$LINENO: result: $ac_cv_cpp_def___sun__" >&5
19035 echo "${ECHO_T}$ac_cv_cpp_def___sun__" >&6
19036 if test $ac_cv_cpp_def___sun__ = yes; then
19037   CFLAGS="$CFLAGS -D__sun__"
19038   LINTFLAGS="$LINTFLAGS -D__sun__"
19039 fi
19040  ;;
19041 esac
19042
19043
19044
19045
19046
19047           ac_config_commands="$ac_config_commands controls"
19048
19049           ac_config_commands="$ac_config_commands dlls/ddraw/d3ddevice"
19050
19051           ac_config_commands="$ac_config_commands dlls/ddraw/dclipper"
19052
19053           ac_config_commands="$ac_config_commands dlls/ddraw/ddraw"
19054
19055           ac_config_commands="$ac_config_commands dlls/ddraw/direct3d"
19056
19057           ac_config_commands="$ac_config_commands dlls/ddraw/dpalette"
19058
19059           ac_config_commands="$ac_config_commands dlls/ddraw/dsurface"
19060
19061           ac_config_commands="$ac_config_commands dlls/dinput/joystick"
19062
19063           ac_config_commands="$ac_config_commands dlls/dinput/keyboard"
19064
19065           ac_config_commands="$ac_config_commands dlls/dinput/mouse"
19066
19067           ac_config_commands="$ac_config_commands dlls/gdi/enhmfdrv"
19068
19069           ac_config_commands="$ac_config_commands dlls/gdi/mfdrv"
19070
19071           ac_config_commands="$ac_config_commands dlls/kernel/messages"
19072
19073           ac_config_commands="$ac_config_commands dlls/user/dde"
19074
19075           ac_config_commands="$ac_config_commands dlls/user/resources"
19076
19077           ac_config_commands="$ac_config_commands dlls/wineps/data"
19078
19079           ac_config_commands="$ac_config_commands files"
19080
19081           ac_config_commands="$ac_config_commands graphics"
19082
19083           ac_config_commands="$ac_config_commands include/wine"
19084
19085           ac_config_commands="$ac_config_commands misc"
19086
19087           ac_config_commands="$ac_config_commands objects"
19088
19089           ac_config_commands="$ac_config_commands programs/regedit/tests"
19090
19091           ac_config_commands="$ac_config_commands windows"
19092
19093
19094 MAKE_RULES=Make.rules
19095
19096
19097 MAKE_DLL_RULES=dlls/Makedll.rules
19098
19099
19100 MAKE_TEST_RULES=dlls/Maketest.rules
19101
19102
19103 MAKE_LIB_RULES=libs/Makelib.rules
19104
19105
19106 MAKE_PROG_RULES=programs/Makeprog.rules
19107
19108
19109                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     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/iccvid/Makefile dlls/icmp/Makefile dlls/imagehlp/Makefile dlls/imm32/Makefile dlls/iphlpapi/Makefile dlls/iphlpapi/tests/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/msvcrt40/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/winebrowser/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"
19110
19111
19112 cat >confcache <<\_ACEOF
19113 # This file is a shell script that caches the results of configure
19114 # tests run on this system so they can be shared between configure
19115 # scripts and configure runs, see configure's option --config-cache.
19116 # It is not useful on other systems.  If it contains results you don't
19117 # want to keep, you may remove or edit it.
19118 #
19119 # config.status only pays attention to the cache file if you give it
19120 # the --recheck option to rerun configure.
19121 #
19122 # `ac_cv_env_foo' variables (set or unset) will be overridden when
19123 # loading this file, other *unset* `ac_cv_foo' will be assigned the
19124 # following values.
19125
19126 _ACEOF
19127
19128 # The following way of writing the cache mishandles newlines in values,
19129 # but we know of no workaround that is simple, portable, and efficient.
19130 # So, don't put newlines in cache variables' values.
19131 # Ultrix sh set writes to stderr and can't be redirected directly,
19132 # and sets the high bit in the cache file unless we assign to the vars.
19133 {
19134   (set) 2>&1 |
19135     case `(ac_space=' '; set | grep ac_space) 2>&1` in
19136     *ac_space=\ *)
19137       # `set' does not quote correctly, so add quotes (double-quote
19138       # substitution turns \\\\ into \\, and sed turns \\ into \).
19139       sed -n \
19140         "s/'/'\\\\''/g;
19141           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
19142       ;;
19143     *)
19144       # `set' quotes correctly as required by POSIX, so do not add quotes.
19145       sed -n \
19146         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
19147       ;;
19148     esac;
19149 } |
19150   sed '
19151      t clear
19152      : clear
19153      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
19154      t end
19155      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19156      : end' >>confcache
19157 if diff $cache_file confcache >/dev/null 2>&1; then :; else
19158   if test -w $cache_file; then
19159     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
19160     cat confcache >$cache_file
19161   else
19162     echo "not updating unwritable cache $cache_file"
19163   fi
19164 fi
19165 rm -f confcache
19166
19167 test "x$prefix" = xNONE && prefix=$ac_default_prefix
19168 # Let make expand exec_prefix.
19169 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
19170
19171 # VPATH may cause trouble with some makes, so we remove $(srcdir),
19172 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
19173 # trailing colons and then remove the whole line if VPATH becomes empty
19174 # (actually we leave an empty line to preserve line numbers).
19175 if test "x$srcdir" = x.; then
19176   ac_vpsub='/^[  ]*VPATH[        ]*=/{
19177 s/:*\$(srcdir):*/:/;
19178 s/:*\${srcdir}:*/:/;
19179 s/:*@srcdir@:*/:/;
19180 s/^\([^=]*=[     ]*\):*/\1/;
19181 s/:*$//;
19182 s/^[^=]*=[       ]*$//;
19183 }'
19184 fi
19185
19186 DEFS=-DHAVE_CONFIG_H
19187
19188 ac_libobjs=
19189 ac_ltlibobjs=
19190 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
19191   # 1. Remove the extension, and $U if already installed.
19192   ac_i=`echo "$ac_i" |
19193          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
19194   # 2. Add them.
19195   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
19196   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
19197 done
19198 LIBOBJS=$ac_libobjs
19199
19200 LTLIBOBJS=$ac_ltlibobjs
19201
19202
19203
19204 : ${CONFIG_STATUS=./config.status}
19205 ac_clean_files_save=$ac_clean_files
19206 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
19207 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
19208 echo "$as_me: creating $CONFIG_STATUS" >&6;}
19209 cat >$CONFIG_STATUS <<_ACEOF
19210 #! $SHELL
19211 # Generated by $as_me.
19212 # Run this file to recreate the current configuration.
19213 # Compiler output produced by configure, useful for debugging
19214 # configure, is in config.log if it exists.
19215
19216 debug=false
19217 ac_cs_recheck=false
19218 ac_cs_silent=false
19219 SHELL=\${CONFIG_SHELL-$SHELL}
19220 _ACEOF
19221
19222 cat >>$CONFIG_STATUS <<\_ACEOF
19223 ## --------------------- ##
19224 ## M4sh Initialization.  ##
19225 ## --------------------- ##
19226
19227 # Be Bourne compatible
19228 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
19229   emulate sh
19230   NULLCMD=:
19231   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19232   # is contrary to our usage.  Disable this feature.
19233   alias -g '${1+"$@"}'='"$@"'
19234 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
19235   set -o posix
19236 fi
19237 DUALCASE=1; export DUALCASE # for MKS sh
19238
19239 # Support unset when possible.
19240 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
19241   as_unset=unset
19242 else
19243   as_unset=false
19244 fi
19245
19246
19247 # Work around bugs in pre-3.0 UWIN ksh.
19248 $as_unset ENV MAIL MAILPATH
19249 PS1='$ '
19250 PS2='> '
19251 PS4='+ '
19252
19253 # NLS nuisances.
19254 for as_var in \
19255   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
19256   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
19257   LC_TELEPHONE LC_TIME
19258 do
19259   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
19260     eval $as_var=C; export $as_var
19261   else
19262     $as_unset $as_var
19263   fi
19264 done
19265
19266 # Required to use basename.
19267 if expr a : '\(a\)' >/dev/null 2>&1; then
19268   as_expr=expr
19269 else
19270   as_expr=false
19271 fi
19272
19273 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
19274   as_basename=basename
19275 else
19276   as_basename=false
19277 fi
19278
19279
19280 # Name of the executable.
19281 as_me=`$as_basename "$0" ||
19282 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
19283          X"$0" : 'X\(//\)$' \| \
19284          X"$0" : 'X\(/\)$' \| \
19285          .     : '\(.\)' 2>/dev/null ||
19286 echo X/"$0" |
19287     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
19288           /^X\/\(\/\/\)$/{ s//\1/; q; }
19289           /^X\/\(\/\).*/{ s//\1/; q; }
19290           s/.*/./; q'`
19291
19292
19293 # PATH needs CR, and LINENO needs CR and PATH.
19294 # Avoid depending upon Character Ranges.
19295 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
19296 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
19297 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
19298 as_cr_digits='0123456789'
19299 as_cr_alnum=$as_cr_Letters$as_cr_digits
19300
19301 # The user is always right.
19302 if test "${PATH_SEPARATOR+set}" != set; then
19303   echo "#! /bin/sh" >conf$$.sh
19304   echo  "exit 0"   >>conf$$.sh
19305   chmod +x conf$$.sh
19306   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
19307     PATH_SEPARATOR=';'
19308   else
19309     PATH_SEPARATOR=:
19310   fi
19311   rm -f conf$$.sh
19312 fi
19313
19314
19315   as_lineno_1=$LINENO
19316   as_lineno_2=$LINENO
19317   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
19318   test "x$as_lineno_1" != "x$as_lineno_2" &&
19319   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
19320   # Find who we are.  Look in the path if we contain no path at all
19321   # relative or not.
19322   case $0 in
19323     *[\\/]* ) as_myself=$0 ;;
19324     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19325 for as_dir in $PATH
19326 do
19327   IFS=$as_save_IFS
19328   test -z "$as_dir" && as_dir=.
19329   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
19330 done
19331
19332        ;;
19333   esac
19334   # We did not find ourselves, most probably we were run as `sh COMMAND'
19335   # in which case we are not to be found in the path.
19336   if test "x$as_myself" = x; then
19337     as_myself=$0
19338   fi
19339   if test ! -f "$as_myself"; then
19340     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
19341 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
19342    { (exit 1); exit 1; }; }
19343   fi
19344   case $CONFIG_SHELL in
19345   '')
19346     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19347 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
19348 do
19349   IFS=$as_save_IFS
19350   test -z "$as_dir" && as_dir=.
19351   for as_base in sh bash ksh sh5; do
19352          case $as_dir in
19353          /*)
19354            if ("$as_dir/$as_base" -c '
19355   as_lineno_1=$LINENO
19356   as_lineno_2=$LINENO
19357   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
19358   test "x$as_lineno_1" != "x$as_lineno_2" &&
19359   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
19360              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
19361              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
19362              CONFIG_SHELL=$as_dir/$as_base
19363              export CONFIG_SHELL
19364              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
19365            fi;;
19366          esac
19367        done
19368 done
19369 ;;
19370   esac
19371
19372   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
19373   # uniformly replaced by the line number.  The first 'sed' inserts a
19374   # line-number line before each line; the second 'sed' does the real
19375   # work.  The second script uses 'N' to pair each line-number line
19376   # with the numbered line, and appends trailing '-' during
19377   # substitution so that $LINENO is not a special case at line end.
19378   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
19379   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
19380   sed '=' <$as_myself |
19381     sed '
19382       N
19383       s,$,-,
19384       : loop
19385       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
19386       t loop
19387       s,-$,,
19388       s,^['$as_cr_digits']*\n,,
19389     ' >$as_me.lineno &&
19390   chmod +x $as_me.lineno ||
19391     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
19392 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
19393    { (exit 1); exit 1; }; }
19394
19395   # Don't try to exec as it changes $[0], causing all sort of problems
19396   # (the dirname of $[0] is not the place where we might find the
19397   # original and so on.  Autoconf is especially sensible to this).
19398   . ./$as_me.lineno
19399   # Exit status is that of the last command.
19400   exit
19401 }
19402
19403
19404 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
19405   *c*,-n*) ECHO_N= ECHO_C='
19406 ' ECHO_T='      ' ;;
19407   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
19408   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
19409 esac
19410
19411 if expr a : '\(a\)' >/dev/null 2>&1; then
19412   as_expr=expr
19413 else
19414   as_expr=false
19415 fi
19416
19417 rm -f conf$$ conf$$.exe conf$$.file
19418 echo >conf$$.file
19419 if ln -s conf$$.file conf$$ 2>/dev/null; then
19420   # We could just check for DJGPP; but this test a) works b) is more generic
19421   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
19422   if test -f conf$$.exe; then
19423     # Don't use ln at all; we don't have any links
19424     as_ln_s='cp -p'
19425   else
19426     as_ln_s='ln -s'
19427   fi
19428 elif ln conf$$.file conf$$ 2>/dev/null; then
19429   as_ln_s=ln
19430 else
19431   as_ln_s='cp -p'
19432 fi
19433 rm -f conf$$ conf$$.exe conf$$.file
19434
19435 if mkdir -p . 2>/dev/null; then
19436   as_mkdir_p=:
19437 else
19438   test -d ./-p && rmdir ./-p
19439   as_mkdir_p=false
19440 fi
19441
19442 as_executable_p="test -f"
19443
19444 # Sed expression to map a string onto a valid CPP name.
19445 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
19446
19447 # Sed expression to map a string onto a valid variable name.
19448 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
19449
19450
19451 # IFS
19452 # We need space, tab and new line, in precisely that order.
19453 as_nl='
19454 '
19455 IFS="   $as_nl"
19456
19457 # CDPATH.
19458 $as_unset CDPATH
19459
19460 exec 6>&1
19461
19462 # Open the log real soon, to keep \$[0] and so on meaningful, and to
19463 # report actual input values of CONFIG_FILES etc. instead of their
19464 # values after options handling.  Logging --version etc. is OK.
19465 exec 5>>config.log
19466 {
19467   echo
19468   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
19469 ## Running $as_me. ##
19470 _ASBOX
19471 } >&5
19472 cat >&5 <<_CSEOF
19473
19474 This file was extended by Wine $as_me 20031212, which was
19475 generated by GNU Autoconf 2.58.  Invocation command line was
19476
19477   CONFIG_FILES    = $CONFIG_FILES
19478   CONFIG_HEADERS  = $CONFIG_HEADERS
19479   CONFIG_LINKS    = $CONFIG_LINKS
19480   CONFIG_COMMANDS = $CONFIG_COMMANDS
19481   $ $0 $@
19482
19483 _CSEOF
19484 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
19485 echo >&5
19486 _ACEOF
19487
19488 # Files that config.status was made for.
19489 if test -n "$ac_config_files"; then
19490   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
19491 fi
19492
19493 if test -n "$ac_config_headers"; then
19494   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
19495 fi
19496
19497 if test -n "$ac_config_links"; then
19498   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
19499 fi
19500
19501 if test -n "$ac_config_commands"; then
19502   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
19503 fi
19504
19505 cat >>$CONFIG_STATUS <<\_ACEOF
19506
19507 ac_cs_usage="\
19508 \`$as_me' instantiates files from templates according to the
19509 current configuration.
19510
19511 Usage: $0 [OPTIONS] [FILE]...
19512
19513   -h, --help       print this help, then exit
19514   -V, --version    print version number, then exit
19515   -q, --quiet      do not print progress messages
19516   -d, --debug      don't remove temporary files
19517       --recheck    update $as_me by reconfiguring in the same conditions
19518   --file=FILE[:TEMPLATE]
19519                    instantiate the configuration file FILE
19520   --header=FILE[:TEMPLATE]
19521                    instantiate the configuration header FILE
19522
19523 Configuration files:
19524 $config_files
19525
19526 Configuration headers:
19527 $config_headers
19528
19529 Configuration commands:
19530 $config_commands
19531
19532 Report bugs to <bug-autoconf@gnu.org>."
19533 _ACEOF
19534
19535 cat >>$CONFIG_STATUS <<_ACEOF
19536 ac_cs_version="\\
19537 Wine config.status 20031212
19538 configured by $0, generated by GNU Autoconf 2.58,
19539   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
19540
19541 Copyright (C) 2003 Free Software Foundation, Inc.
19542 This config.status script is free software; the Free Software Foundation
19543 gives unlimited permission to copy, distribute and modify it."
19544 srcdir=$srcdir
19545 INSTALL="$INSTALL"
19546 _ACEOF
19547
19548 cat >>$CONFIG_STATUS <<\_ACEOF
19549 # If no file are specified by the user, then we need to provide default
19550 # value.  By we need to know if files were specified by the user.
19551 ac_need_defaults=:
19552 while test $# != 0
19553 do
19554   case $1 in
19555   --*=*)
19556     ac_option=`expr "x$1" : 'x\([^=]*\)='`
19557     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
19558     ac_shift=:
19559     ;;
19560   -*)
19561     ac_option=$1
19562     ac_optarg=$2
19563     ac_shift=shift
19564     ;;
19565   *) # This is not an option, so the user has probably given explicit
19566      # arguments.
19567      ac_option=$1
19568      ac_need_defaults=false;;
19569   esac
19570
19571   case $ac_option in
19572   # Handling of the options.
19573 _ACEOF
19574 cat >>$CONFIG_STATUS <<\_ACEOF
19575   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
19576     ac_cs_recheck=: ;;
19577   --version | --vers* | -V )
19578     echo "$ac_cs_version"; exit 0 ;;
19579   --he | --h)
19580     # Conflict between --help and --header
19581     { { echo "$as_me:$LINENO: error: ambiguous option: $1
19582 Try \`$0 --help' for more information." >&5
19583 echo "$as_me: error: ambiguous option: $1
19584 Try \`$0 --help' for more information." >&2;}
19585    { (exit 1); exit 1; }; };;
19586   --help | --hel | -h )
19587     echo "$ac_cs_usage"; exit 0 ;;
19588   --debug | --d* | -d )
19589     debug=: ;;
19590   --file | --fil | --fi | --f )
19591     $ac_shift
19592     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
19593     ac_need_defaults=false;;
19594   --header | --heade | --head | --hea )
19595     $ac_shift
19596     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
19597     ac_need_defaults=false;;
19598   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
19599   | -silent | --silent | --silen | --sile | --sil | --si | --s)
19600     ac_cs_silent=: ;;
19601
19602   # This is an error.
19603   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
19604 Try \`$0 --help' for more information." >&5
19605 echo "$as_me: error: unrecognized option: $1
19606 Try \`$0 --help' for more information." >&2;}
19607    { (exit 1); exit 1; }; } ;;
19608
19609   *) ac_config_targets="$ac_config_targets $1" ;;
19610
19611   esac
19612   shift
19613 done
19614
19615 ac_configure_extra_args=
19616
19617 if $ac_cs_silent; then
19618   exec 6>/dev/null
19619   ac_configure_extra_args="$ac_configure_extra_args --silent"
19620 fi
19621
19622 _ACEOF
19623 cat >>$CONFIG_STATUS <<_ACEOF
19624 if \$ac_cs_recheck; then
19625   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
19626   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
19627 fi
19628
19629 _ACEOF
19630
19631
19632
19633
19634
19635 cat >>$CONFIG_STATUS <<\_ACEOF
19636 for ac_config_target in $ac_config_targets
19637 do
19638   case "$ac_config_target" in
19639   # Handling of arguments.
19640   "Make.rules" ) CONFIG_FILES="$CONFIG_FILES Make.rules" ;;
19641   "dlls/Makedll.rules" ) CONFIG_FILES="$CONFIG_FILES dlls/Makedll.rules" ;;
19642   "dlls/Maketest.rules" ) CONFIG_FILES="$CONFIG_FILES dlls/Maketest.rules" ;;
19643   "libs/Makelib.rules" ) CONFIG_FILES="$CONFIG_FILES libs/Makelib.rules" ;;
19644   "programs/Makeprog.rules" ) CONFIG_FILES="$CONFIG_FILES programs/Makeprog.rules" ;;
19645   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
19646   "dlls/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/Makefile" ;;
19647   "dlls/advapi32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/advapi32/Makefile" ;;
19648   "dlls/advapi32/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/advapi32/tests/Makefile" ;;
19649   "dlls/avicap32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/avicap32/Makefile" ;;
19650   "dlls/avifil32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/avifil32/Makefile" ;;
19651   "dlls/cabinet/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/cabinet/Makefile" ;;
19652   "dlls/capi2032/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/capi2032/Makefile" ;;
19653   "dlls/cfgmgr32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/cfgmgr32/Makefile" ;;
19654   "dlls/comcat/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/comcat/Makefile" ;;
19655   "dlls/comctl32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/comctl32/Makefile" ;;
19656   "dlls/comctl32/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/comctl32/tests/Makefile" ;;
19657   "dlls/commdlg/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/commdlg/Makefile" ;;
19658   "dlls/crtdll/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/crtdll/Makefile" ;;
19659   "dlls/crypt32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/crypt32/Makefile" ;;
19660   "dlls/ctl3d/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ctl3d/Makefile" ;;
19661   "dlls/wined3d/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wined3d/Makefile" ;;
19662   "dlls/d3d8/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/d3d8/Makefile" ;;
19663   "dlls/d3d9/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/d3d9/Makefile" ;;
19664   "dlls/d3dim/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/d3dim/Makefile" ;;
19665   "dlls/d3dx8/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/d3dx8/Makefile" ;;
19666   "dlls/dciman32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dciman32/Makefile" ;;
19667   "dlls/ddraw/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ddraw/Makefile" ;;
19668   "dlls/ddraw/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ddraw/tests/Makefile" ;;
19669   "dlls/devenum/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/devenum/Makefile" ;;
19670   "dlls/dinput/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dinput/Makefile" ;;
19671   "dlls/dinput8/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dinput8/Makefile" ;;
19672   "dlls/dmband/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dmband/Makefile" ;;
19673   "dlls/dmcompos/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dmcompos/Makefile" ;;
19674   "dlls/dmime/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dmime/Makefile" ;;
19675   "dlls/dmloader/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dmloader/Makefile" ;;
19676   "dlls/dmscript/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dmscript/Makefile" ;;
19677   "dlls/dmstyle/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dmstyle/Makefile" ;;
19678   "dlls/dmsynth/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dmsynth/Makefile" ;;
19679   "dlls/dmusic/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dmusic/Makefile" ;;
19680   "dlls/dmusic32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dmusic32/Makefile" ;;
19681   "dlls/dplay/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dplay/Makefile" ;;
19682   "dlls/dplayx/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dplayx/Makefile" ;;
19683   "dlls/dpnhpast/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dpnhpast/Makefile" ;;
19684   "dlls/dsound/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dsound/Makefile" ;;
19685   "dlls/dsound/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dsound/tests/Makefile" ;;
19686   "dlls/gdi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/gdi/Makefile" ;;
19687   "dlls/gdi/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/gdi/tests/Makefile" ;;
19688   "dlls/glu32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/glu32/Makefile" ;;
19689   "dlls/glut32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/glut32/Makefile" ;;
19690   "dlls/iccvid/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/iccvid/Makefile" ;;
19691   "dlls/icmp/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/icmp/Makefile" ;;
19692   "dlls/imagehlp/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/imagehlp/Makefile" ;;
19693   "dlls/imm32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/imm32/Makefile" ;;
19694   "dlls/iphlpapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/iphlpapi/Makefile" ;;
19695   "dlls/iphlpapi/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/iphlpapi/tests/Makefile" ;;
19696   "dlls/kernel/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/kernel/Makefile" ;;
19697   "dlls/kernel/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/kernel/tests/Makefile" ;;
19698   "dlls/lzexpand/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/lzexpand/Makefile" ;;
19699   "dlls/mapi32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/mapi32/Makefile" ;;
19700   "dlls/mpr/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/mpr/Makefile" ;;
19701   "dlls/msacm/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msacm/Makefile" ;;
19702   "dlls/msacm/imaadp32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msacm/imaadp32/Makefile" ;;
19703   "dlls/msacm/msadp32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msacm/msadp32/Makefile" ;;
19704   "dlls/msacm/msg711/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msacm/msg711/Makefile" ;;
19705   "dlls/msacm/winemp3/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msacm/winemp3/Makefile" ;;
19706   "dlls/msdmo/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msdmo/Makefile" ;;
19707   "dlls/mshtml/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/mshtml/Makefile" ;;
19708   "dlls/msi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msi/Makefile" ;;
19709   "dlls/msimg32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msimg32/Makefile" ;;
19710   "dlls/msisys/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msisys/Makefile" ;;
19711   "dlls/msnet32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msnet32/Makefile" ;;
19712   "dlls/msvcrt/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvcrt/Makefile" ;;
19713   "dlls/msvcrt/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvcrt/tests/Makefile" ;;
19714   "dlls/msvcrt20/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvcrt20/Makefile" ;;
19715   "dlls/msvcrt40/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvcrt40/Makefile" ;;
19716   "dlls/msvcrtd/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvcrtd/Makefile" ;;
19717   "dlls/msvideo/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvideo/Makefile" ;;
19718   "dlls/msvideo/msrle32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvideo/msrle32/Makefile" ;;
19719   "dlls/mswsock/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/mswsock/Makefile" ;;
19720   "dlls/netapi32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/netapi32/Makefile" ;;
19721   "dlls/netapi32/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/netapi32/tests/Makefile" ;;
19722   "dlls/newdev/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/newdev/Makefile" ;;
19723   "dlls/ntdll/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ntdll/Makefile" ;;
19724   "dlls/ntdll/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ntdll/tests/Makefile" ;;
19725   "dlls/odbc32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/odbc32/Makefile" ;;
19726   "dlls/ole32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ole32/Makefile" ;;
19727   "dlls/oleacc/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/oleacc/Makefile" ;;
19728   "dlls/oleaut32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/oleaut32/Makefile" ;;
19729   "dlls/oleaut32/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/oleaut32/tests/Makefile" ;;
19730   "dlls/olecli/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/olecli/Makefile" ;;
19731   "dlls/oledlg/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/oledlg/Makefile" ;;
19732   "dlls/olepro32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/olepro32/Makefile" ;;
19733   "dlls/olesvr/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/olesvr/Makefile" ;;
19734   "dlls/opengl32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/opengl32/Makefile" ;;
19735   "dlls/psapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/psapi/Makefile" ;;
19736   "dlls/qcap/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/qcap/Makefile" ;;
19737   "dlls/quartz/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/quartz/Makefile" ;;
19738   "dlls/rasapi32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/rasapi32/Makefile" ;;
19739   "dlls/richedit/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/richedit/Makefile" ;;
19740   "dlls/rpcrt4/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/rpcrt4/Makefile" ;;
19741   "dlls/rpcrt4/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/rpcrt4/tests/Makefile" ;;
19742   "dlls/serialui/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/serialui/Makefile" ;;
19743   "dlls/setupapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/setupapi/Makefile" ;;
19744   "dlls/shdocvw/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shdocvw/Makefile" ;;
19745   "dlls/shell32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shell32/Makefile" ;;
19746   "dlls/shell32/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shell32/tests/Makefile" ;;
19747   "dlls/shfolder/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shfolder/Makefile" ;;
19748   "dlls/shlwapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shlwapi/Makefile" ;;
19749   "dlls/shlwapi/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shlwapi/tests/Makefile" ;;
19750   "dlls/snmpapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/snmpapi/Makefile" ;;
19751   "dlls/sti/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/sti/Makefile" ;;
19752   "dlls/tapi32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/tapi32/Makefile" ;;
19753   "dlls/ttydrv/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ttydrv/Makefile" ;;
19754   "dlls/twain/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/twain/Makefile" ;;
19755   "dlls/unicows/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/unicows/Makefile" ;;
19756   "dlls/url/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/url/Makefile" ;;
19757   "dlls/urlmon/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/urlmon/Makefile" ;;
19758   "dlls/urlmon/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/urlmon/tests/Makefile" ;;
19759   "dlls/user/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/user/Makefile" ;;
19760   "dlls/user/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/user/tests/Makefile" ;;
19761   "dlls/uxtheme/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/uxtheme/Makefile" ;;
19762   "dlls/version/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/version/Makefile" ;;
19763   "dlls/win32s/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/win32s/Makefile" ;;
19764   "dlls/winaspi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winaspi/Makefile" ;;
19765   "dlls/winedos/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winedos/Makefile" ;;
19766   "dlls/wineps/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wineps/Makefile" ;;
19767   "dlls/wininet/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wininet/Makefile" ;;
19768   "dlls/wininet/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wininet/tests/Makefile" ;;
19769   "dlls/winmm/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/Makefile" ;;
19770   "dlls/winmm/joystick/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/joystick/Makefile" ;;
19771   "dlls/winmm/mcianim/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/mcianim/Makefile" ;;
19772   "dlls/winmm/mciavi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/mciavi/Makefile" ;;
19773   "dlls/winmm/mcicda/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/mcicda/Makefile" ;;
19774   "dlls/winmm/mciseq/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/mciseq/Makefile" ;;
19775   "dlls/winmm/mciwave/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/mciwave/Makefile" ;;
19776   "dlls/winmm/midimap/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/midimap/Makefile" ;;
19777   "dlls/winmm/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/tests/Makefile" ;;
19778   "dlls/winmm/wavemap/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/wavemap/Makefile" ;;
19779   "dlls/winmm/winealsa/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/winealsa/Makefile" ;;
19780   "dlls/winmm/winearts/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/winearts/Makefile" ;;
19781   "dlls/winmm/wineaudioio/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/wineaudioio/Makefile" ;;
19782   "dlls/winmm/winenas/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/winenas/Makefile" ;;
19783   "dlls/winmm/winejack/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/winejack/Makefile" ;;
19784   "dlls/winmm/wineoss/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/wineoss/Makefile" ;;
19785   "dlls/winnls/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winnls/Makefile" ;;
19786   "dlls/winsock/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winsock/Makefile" ;;
19787   "dlls/winsock/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winsock/tests/Makefile" ;;
19788   "dlls/winspool/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winspool/Makefile" ;;
19789   "dlls/winspool/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winspool/tests/Makefile" ;;
19790   "dlls/wintab32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wintab32/Makefile" ;;
19791   "dlls/wintrust/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wintrust/Makefile" ;;
19792   "dlls/wow32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wow32/Makefile" ;;
19793   "dlls/wsock32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wsock32/Makefile" ;;
19794   "dlls/x11drv/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/x11drv/Makefile" ;;
19795   "documentation/Makefile" ) CONFIG_FILES="$CONFIG_FILES documentation/Makefile" ;;
19796   "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
19797   "libs/Makefile" ) CONFIG_FILES="$CONFIG_FILES libs/Makefile" ;;
19798   "libs/port/Makefile" ) CONFIG_FILES="$CONFIG_FILES libs/port/Makefile" ;;
19799   "libs/unicode/Makefile" ) CONFIG_FILES="$CONFIG_FILES libs/unicode/Makefile" ;;
19800   "libs/uuid/Makefile" ) CONFIG_FILES="$CONFIG_FILES libs/uuid/Makefile" ;;
19801   "libs/wine/Makefile" ) CONFIG_FILES="$CONFIG_FILES libs/wine/Makefile" ;;
19802   "libs/wpp/Makefile" ) CONFIG_FILES="$CONFIG_FILES libs/wpp/Makefile" ;;
19803   "loader/Makefile" ) CONFIG_FILES="$CONFIG_FILES loader/Makefile" ;;
19804   "programs/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/Makefile" ;;
19805   "programs/avitools/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/avitools/Makefile" ;;
19806   "programs/clock/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/clock/Makefile" ;;
19807   "programs/cmdlgtst/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/cmdlgtst/Makefile" ;;
19808   "programs/control/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/control/Makefile" ;;
19809   "programs/expand/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/expand/Makefile" ;;
19810   "programs/notepad/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/notepad/Makefile" ;;
19811   "programs/progman/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/progman/Makefile" ;;
19812   "programs/regedit/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/regedit/Makefile" ;;
19813   "programs/regsvr32/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/regsvr32/Makefile" ;;
19814   "programs/rpcss/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/rpcss/Makefile" ;;
19815   "programs/rundll32/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/rundll32/Makefile" ;;
19816   "programs/start/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/start/Makefile" ;;
19817   "programs/uninstaller/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/uninstaller/Makefile" ;;
19818   "programs/view/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/view/Makefile" ;;
19819   "programs/wcmd/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/wcmd/Makefile" ;;
19820   "programs/wineboot/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/wineboot/Makefile" ;;
19821   "programs/winebrowser/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winebrowser/Makefile" ;;
19822   "programs/winecfg/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winecfg/Makefile" ;;
19823   "programs/wineconsole/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/wineconsole/Makefile" ;;
19824   "programs/winedbg/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winedbg/Makefile" ;;
19825   "programs/winefile/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winefile/Makefile" ;;
19826   "programs/winemenubuilder/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winemenubuilder/Makefile" ;;
19827   "programs/winemine/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winemine/Makefile" ;;
19828   "programs/winepath/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winepath/Makefile" ;;
19829   "programs/winetest/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winetest/Makefile" ;;
19830   "programs/winevdm/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winevdm/Makefile" ;;
19831   "programs/winhelp/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winhelp/Makefile" ;;
19832   "programs/winver/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winver/Makefile" ;;
19833   "server/Makefile" ) CONFIG_FILES="$CONFIG_FILES server/Makefile" ;;
19834   "tools/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
19835   "tools/widl/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/widl/Makefile" ;;
19836   "tools/winapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/winapi/Makefile" ;;
19837   "tools/winebuild/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/winebuild/Makefile" ;;
19838   "tools/winedump/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/winedump/Makefile" ;;
19839   "tools/winegcc/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/winegcc/Makefile" ;;
19840   "tools/wmc/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/wmc/Makefile" ;;
19841   "tools/wrc/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/wrc/Makefile" ;;
19842   "controls" ) CONFIG_COMMANDS="$CONFIG_COMMANDS controls" ;;
19843   "dlls/ddraw/d3ddevice" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/d3ddevice" ;;
19844   "dlls/ddraw/dclipper" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/dclipper" ;;
19845   "dlls/ddraw/ddraw" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/ddraw" ;;
19846   "dlls/ddraw/direct3d" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/direct3d" ;;
19847   "dlls/ddraw/dpalette" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/dpalette" ;;
19848   "dlls/ddraw/dsurface" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/dsurface" ;;
19849   "dlls/dinput/joystick" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/dinput/joystick" ;;
19850   "dlls/dinput/keyboard" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/dinput/keyboard" ;;
19851   "dlls/dinput/mouse" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/dinput/mouse" ;;
19852   "dlls/gdi/enhmfdrv" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/gdi/enhmfdrv" ;;
19853   "dlls/gdi/mfdrv" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/gdi/mfdrv" ;;
19854   "dlls/kernel/messages" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/kernel/messages" ;;
19855   "dlls/user/dde" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/user/dde" ;;
19856   "dlls/user/resources" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/user/resources" ;;
19857   "dlls/wineps/data" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/wineps/data" ;;
19858   "files" ) CONFIG_COMMANDS="$CONFIG_COMMANDS files" ;;
19859   "graphics" ) CONFIG_COMMANDS="$CONFIG_COMMANDS graphics" ;;
19860   "include/wine" ) CONFIG_COMMANDS="$CONFIG_COMMANDS include/wine" ;;
19861   "misc" ) CONFIG_COMMANDS="$CONFIG_COMMANDS misc" ;;
19862   "objects" ) CONFIG_COMMANDS="$CONFIG_COMMANDS objects" ;;
19863   "programs/regedit/tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS programs/regedit/tests" ;;
19864   "windows" ) CONFIG_COMMANDS="$CONFIG_COMMANDS windows" ;;
19865   "include/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
19866   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
19867 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
19868    { (exit 1); exit 1; }; };;
19869   esac
19870 done
19871
19872 # If the user did not use the arguments to specify the items to instantiate,
19873 # then the envvar interface is used.  Set only those that are not.
19874 # We use the long form for the default assignment because of an extremely
19875 # bizarre bug on SunOS 4.1.3.
19876 if $ac_need_defaults; then
19877   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
19878   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
19879   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
19880 fi
19881
19882 # Have a temporary directory for convenience.  Make it in the build tree
19883 # simply because there is no reason to put it here, and in addition,
19884 # creating and moving files from /tmp can sometimes cause problems.
19885 # Create a temporary directory, and hook for its removal unless debugging.
19886 $debug ||
19887 {
19888   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
19889   trap '{ (exit 1); exit 1; }' 1 2 13 15
19890 }
19891
19892 # Create a (secure) tmp directory for tmp files.
19893
19894 {
19895   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
19896   test -n "$tmp" && test -d "$tmp"
19897 }  ||
19898 {
19899   tmp=./confstat$$-$RANDOM
19900   (umask 077 && mkdir $tmp)
19901 } ||
19902 {
19903    echo "$me: cannot create a temporary directory in ." >&2
19904    { (exit 1); exit 1; }
19905 }
19906
19907 _ACEOF
19908
19909 cat >>$CONFIG_STATUS <<_ACEOF
19910
19911 #
19912 # CONFIG_FILES section.
19913 #
19914
19915 # No need to generate the scripts if there are no CONFIG_FILES.
19916 # This happens for instance when ./config.status config.h
19917 if test -n "\$CONFIG_FILES"; then
19918   # Protect against being on the right side of a sed subst in config.status.
19919   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
19920    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
19921 s,@SHELL@,$SHELL,;t t
19922 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
19923 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
19924 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
19925 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
19926 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
19927 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
19928 s,@exec_prefix@,$exec_prefix,;t t
19929 s,@prefix@,$prefix,;t t
19930 s,@program_transform_name@,$program_transform_name,;t t
19931 s,@bindir@,$bindir,;t t
19932 s,@sbindir@,$sbindir,;t t
19933 s,@libexecdir@,$libexecdir,;t t
19934 s,@datadir@,$datadir,;t t
19935 s,@sysconfdir@,$sysconfdir,;t t
19936 s,@sharedstatedir@,$sharedstatedir,;t t
19937 s,@localstatedir@,$localstatedir,;t t
19938 s,@libdir@,$libdir,;t t
19939 s,@includedir@,$includedir,;t t
19940 s,@oldincludedir@,$oldincludedir,;t t
19941 s,@infodir@,$infodir,;t t
19942 s,@mandir@,$mandir,;t t
19943 s,@build_alias@,$build_alias,;t t
19944 s,@host_alias@,$host_alias,;t t
19945 s,@target_alias@,$target_alias,;t t
19946 s,@DEFS@,$DEFS,;t t
19947 s,@ECHO_C@,$ECHO_C,;t t
19948 s,@ECHO_N@,$ECHO_N,;t t
19949 s,@ECHO_T@,$ECHO_T,;t t
19950 s,@LIBS@,$LIBS,;t t
19951 s,@WIN16_FILES@,$WIN16_FILES,;t t
19952 s,@WIN16_INSTALL@,$WIN16_INSTALL,;t t
19953 s,@build@,$build,;t t
19954 s,@build_cpu@,$build_cpu,;t t
19955 s,@build_vendor@,$build_vendor,;t t
19956 s,@build_os@,$build_os,;t t
19957 s,@host@,$host,;t t
19958 s,@host_cpu@,$host_cpu,;t t
19959 s,@host_vendor@,$host_vendor,;t t
19960 s,@host_os@,$host_os,;t t
19961 s,@SET_MAKE@,$SET_MAKE,;t t
19962 s,@CC@,$CC,;t t
19963 s,@CFLAGS@,$CFLAGS,;t t
19964 s,@LDFLAGS@,$LDFLAGS,;t t
19965 s,@CPPFLAGS@,$CPPFLAGS,;t t
19966 s,@ac_ct_CC@,$ac_ct_CC,;t t
19967 s,@EXEEXT@,$EXEEXT,;t t
19968 s,@OBJEXT@,$OBJEXT,;t t
19969 s,@CPP@,$CPP,;t t
19970 s,@TOOLSDIR@,$TOOLSDIR,;t t
19971 s,@X_CFLAGS@,$X_CFLAGS,;t t
19972 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
19973 s,@X_LIBS@,$X_LIBS,;t t
19974 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
19975 s,@YACC@,$YACC,;t t
19976 s,@LEX@,$LEX,;t t
19977 s,@LEXLIB@,$LEXLIB,;t t
19978 s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
19979 s,@XYACC@,$XYACC,;t t
19980 s,@XLEX@,$XLEX,;t t
19981 s,@AS@,$AS,;t t
19982 s,@ac_ct_AS@,$ac_ct_AS,;t t
19983 s,@LD@,$LD,;t t
19984 s,@ac_ct_LD@,$ac_ct_LD,;t t
19985 s,@AR@,$AR,;t t
19986 s,@ac_ct_AR@,$ac_ct_AR,;t t
19987 s,@RANLIB@,$RANLIB,;t t
19988 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
19989 s,@STRIP@,$STRIP,;t t
19990 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
19991 s,@WINDRES@,$WINDRES,;t t
19992 s,@ac_ct_WINDRES@,$ac_ct_WINDRES,;t t
19993 s,@LN_S@,$LN_S,;t t
19994 s,@LN@,$LN,;t t
19995 s,@LDCONFIG@,$LDCONFIG,;t t
19996 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
19997 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
19998 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
19999 s,@LINT@,$LINT,;t t
20000 s,@LINTFLAGS@,$LINTFLAGS,;t t
20001 s,@DB2HTML@,$DB2HTML,;t t
20002 s,@DB2PDF@,$DB2PDF,;t t
20003 s,@DB2PS@,$DB2PS,;t t
20004 s,@DB2TXT@,$DB2TXT,;t t
20005 s,@LIBPTHREAD@,$LIBPTHREAD,;t t
20006 s,@JPEGLIB@,$JPEGLIB,;t t
20007 s,@EGREP@,$EGREP,;t t
20008 s,@GIFLIB@,$GIFLIB,;t t
20009 s,@XLIB@,$XLIB,;t t
20010 s,@XFILES@,$XFILES,;t t
20011 s,@OPENGLFILES@,$OPENGLFILES,;t t
20012 s,@GLU32FILES@,$GLU32FILES,;t t
20013 s,@OPENGL_LIBS@,$OPENGL_LIBS,;t t
20014 s,@GLUT_LIBS@,$GLUT_LIBS,;t t
20015 s,@GLUT32FILES@,$GLUT32FILES,;t t
20016 s,@NASLIBS@,$NASLIBS,;t t
20017 s,@CURSESLIBS@,$CURSESLIBS,;t t
20018 s,@sane_devel@,$sane_devel,;t t
20019 s,@SANELIBS@,$SANELIBS,;t t
20020 s,@SANEINCL@,$SANEINCL,;t t
20021 s,@ICULIBS@,$ICULIBS,;t t
20022 s,@ft_devel@,$ft_devel,;t t
20023 s,@ft_devel2@,$ft_devel2,;t t
20024 s,@FREETYPEINCL@,$FREETYPEINCL,;t t
20025 s,@ARTSCCONFIG@,$ARTSCCONFIG,;t t
20026 s,@ARTSLIBS@,$ARTSLIBS,;t t
20027 s,@ARTSINCL@,$ARTSINCL,;t t
20028 s,@ALSALIBS@,$ALSALIBS,;t t
20029 s,@AUDIOIOLIBS@,$AUDIOIOLIBS,;t t
20030 s,@CAPI4LINUXLIBS@,$CAPI4LINUXLIBS,;t t
20031 s,@EXTRACFLAGS@,$EXTRACFLAGS,;t t
20032 s,@DLLEXT@,$DLLEXT,;t t
20033 s,@DLLFLAGS@,$DLLFLAGS,;t t
20034 s,@DLLIBS@,$DLLIBS,;t t
20035 s,@LDSHARED@,$LDSHARED,;t t
20036 s,@LDDLL@,$LDDLL,;t t
20037 s,@LIBEXT@,$LIBEXT,;t t
20038 s,@IMPLIBEXT@,$IMPLIBEXT,;t t
20039 s,@DLLTOOL@,$DLLTOOL,;t t
20040 s,@ac_ct_DLLTOOL@,$ac_ct_DLLTOOL,;t t
20041 s,@DLLWRAP@,$DLLWRAP,;t t
20042 s,@ac_ct_DLLWRAP@,$ac_ct_DLLWRAP,;t t
20043 s,@LDEXECFLAGS@,$LDEXECFLAGS,;t t
20044 s,@CROSSTEST@,$CROSSTEST,;t t
20045 s,@CROSSCC@,$CROSSCC,;t t
20046 s,@CROSSWINDRES@,$CROSSWINDRES,;t t
20047 s,@LDPATH@,$LDPATH,;t t
20048 s,@CRTLIBS@,$CRTLIBS,;t t
20049 s,@WINE_BINARIES@,$WINE_BINARIES,;t t
20050 s,@MAIN_BINARY@,$MAIN_BINARY,;t t
20051 s,@LDD@,$LDD,;t t
20052 s,@ALLOCA@,$ALLOCA,;t t
20053 s,@LIBOBJS@,$LIBOBJS,;t t
20054 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
20055 /@MAKE_RULES@/r $MAKE_RULES
20056 s,@MAKE_RULES@,,;t t
20057 /@MAKE_DLL_RULES@/r $MAKE_DLL_RULES
20058 s,@MAKE_DLL_RULES@,,;t t
20059 /@MAKE_TEST_RULES@/r $MAKE_TEST_RULES
20060 s,@MAKE_TEST_RULES@,,;t t
20061 /@MAKE_LIB_RULES@/r $MAKE_LIB_RULES
20062 s,@MAKE_LIB_RULES@,,;t t
20063 /@MAKE_PROG_RULES@/r $MAKE_PROG_RULES
20064 s,@MAKE_PROG_RULES@,,;t t
20065 CEOF
20066
20067 _ACEOF
20068
20069   cat >>$CONFIG_STATUS <<\_ACEOF
20070   # Split the substitutions into bite-sized pieces for seds with
20071   # small command number limits, like on Digital OSF/1 and HP-UX.
20072   ac_max_sed_lines=48
20073   ac_sed_frag=1 # Number of current file.
20074   ac_beg=1 # First line for current file.
20075   ac_end=$ac_max_sed_lines # Line after last line for current file.
20076   ac_more_lines=:
20077   ac_sed_cmds=
20078   while $ac_more_lines; do
20079     if test $ac_beg -gt 1; then
20080       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
20081     else
20082       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
20083     fi
20084     if test ! -s $tmp/subs.frag; then
20085       ac_more_lines=false
20086     else
20087       # The purpose of the label and of the branching condition is to
20088       # speed up the sed processing (if there are no `@' at all, there
20089       # is no need to browse any of the substitutions).
20090       # These are the two extra sed commands mentioned above.
20091       (echo ':t
20092   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
20093       if test -z "$ac_sed_cmds"; then
20094         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
20095       else
20096         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
20097       fi
20098       ac_sed_frag=`expr $ac_sed_frag + 1`
20099       ac_beg=$ac_end
20100       ac_end=`expr $ac_end + $ac_max_sed_lines`
20101     fi
20102   done
20103   if test -z "$ac_sed_cmds"; then
20104     ac_sed_cmds=cat
20105   fi
20106 fi # test -n "$CONFIG_FILES"
20107
20108 _ACEOF
20109 cat >>$CONFIG_STATUS <<\_ACEOF
20110 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
20111   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
20112   case $ac_file in
20113   - | *:- | *:-:* ) # input from stdin
20114         cat >$tmp/stdin
20115         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20116         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20117   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20118         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20119   * )   ac_file_in=$ac_file.in ;;
20120   esac
20121
20122   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
20123   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
20124 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20125          X"$ac_file" : 'X\(//\)[^/]' \| \
20126          X"$ac_file" : 'X\(//\)$' \| \
20127          X"$ac_file" : 'X\(/\)' \| \
20128          .     : '\(.\)' 2>/dev/null ||
20129 echo X"$ac_file" |
20130     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20131           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20132           /^X\(\/\/\)$/{ s//\1/; q; }
20133           /^X\(\/\).*/{ s//\1/; q; }
20134           s/.*/./; q'`
20135   { if $as_mkdir_p; then
20136     mkdir -p "$ac_dir"
20137   else
20138     as_dir="$ac_dir"
20139     as_dirs=
20140     while test ! -d "$as_dir"; do
20141       as_dirs="$as_dir $as_dirs"
20142       as_dir=`(dirname "$as_dir") 2>/dev/null ||
20143 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20144          X"$as_dir" : 'X\(//\)[^/]' \| \
20145          X"$as_dir" : 'X\(//\)$' \| \
20146          X"$as_dir" : 'X\(/\)' \| \
20147          .     : '\(.\)' 2>/dev/null ||
20148 echo X"$as_dir" |
20149     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20150           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20151           /^X\(\/\/\)$/{ s//\1/; q; }
20152           /^X\(\/\).*/{ s//\1/; q; }
20153           s/.*/./; q'`
20154     done
20155     test ! -n "$as_dirs" || mkdir $as_dirs
20156   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
20157 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
20158    { (exit 1); exit 1; }; }; }
20159
20160   ac_builddir=.
20161
20162 if test "$ac_dir" != .; then
20163   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
20164   # A "../" for each directory in $ac_dir_suffix.
20165   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
20166 else
20167   ac_dir_suffix= ac_top_builddir=
20168 fi
20169
20170 case $srcdir in
20171   .)  # No --srcdir option.  We are building in place.
20172     ac_srcdir=.
20173     if test -z "$ac_top_builddir"; then
20174        ac_top_srcdir=.
20175     else
20176        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
20177     fi ;;
20178   [\\/]* | ?:[\\/]* )  # Absolute path.
20179     ac_srcdir=$srcdir$ac_dir_suffix;
20180     ac_top_srcdir=$srcdir ;;
20181   *) # Relative path.
20182     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
20183     ac_top_srcdir=$ac_top_builddir$srcdir ;;
20184 esac
20185
20186 # Do not use `cd foo && pwd` to compute absolute paths, because
20187 # the directories may not exist.
20188 case `pwd` in
20189 .) ac_abs_builddir="$ac_dir";;
20190 *)
20191   case "$ac_dir" in
20192   .) ac_abs_builddir=`pwd`;;
20193   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
20194   *) ac_abs_builddir=`pwd`/"$ac_dir";;
20195   esac;;
20196 esac
20197 case $ac_abs_builddir in
20198 .) ac_abs_top_builddir=${ac_top_builddir}.;;
20199 *)
20200   case ${ac_top_builddir}. in
20201   .) ac_abs_top_builddir=$ac_abs_builddir;;
20202   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
20203   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
20204   esac;;
20205 esac
20206 case $ac_abs_builddir in
20207 .) ac_abs_srcdir=$ac_srcdir;;
20208 *)
20209   case $ac_srcdir in
20210   .) ac_abs_srcdir=$ac_abs_builddir;;
20211   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
20212   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
20213   esac;;
20214 esac
20215 case $ac_abs_builddir in
20216 .) ac_abs_top_srcdir=$ac_top_srcdir;;
20217 *)
20218   case $ac_top_srcdir in
20219   .) ac_abs_top_srcdir=$ac_abs_builddir;;
20220   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
20221   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
20222   esac;;
20223 esac
20224
20225
20226   case $INSTALL in
20227   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
20228   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
20229   esac
20230
20231   # Let's still pretend it is `configure' which instantiates (i.e., don't
20232   # use $as_me), people would be surprised to read:
20233   #    /* config.h.  Generated by config.status.  */
20234   if test x"$ac_file" = x-; then
20235     configure_input=
20236   else
20237     configure_input="$ac_file.  "
20238   fi
20239   configure_input=$configure_input"Generated from `echo $ac_file_in |
20240                                      sed 's,.*/,,'` by configure."
20241
20242   # First look for the input files in the build tree, otherwise in the
20243   # src tree.
20244   ac_file_inputs=`IFS=:
20245     for f in $ac_file_in; do
20246       case $f in
20247       -) echo $tmp/stdin ;;
20248       [\\/$]*)
20249          # Absolute (can't be DOS-style, as IFS=:)
20250          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20251 echo "$as_me: error: cannot find input file: $f" >&2;}
20252    { (exit 1); exit 1; }; }
20253          echo "$f";;
20254       *) # Relative
20255          if test -f "$f"; then
20256            # Build tree
20257            echo "$f"
20258          elif test -f "$srcdir/$f"; then
20259            # Source tree
20260            echo "$srcdir/$f"
20261          else
20262            # /dev/null tree
20263            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20264 echo "$as_me: error: cannot find input file: $f" >&2;}
20265    { (exit 1); exit 1; }; }
20266          fi;;
20267       esac
20268     done` || { (exit 1); exit 1; }
20269
20270   if test x"$ac_file" != x-; then
20271     { echo "$as_me:$LINENO: creating $ac_file" >&5
20272 echo "$as_me: creating $ac_file" >&6;}
20273     rm -f "$ac_file"
20274   fi
20275 _ACEOF
20276 cat >>$CONFIG_STATUS <<_ACEOF
20277   sed "$ac_vpsub
20278 $extrasub
20279 _ACEOF
20280 cat >>$CONFIG_STATUS <<\_ACEOF
20281 :t
20282 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20283 s,@configure_input@,$configure_input,;t t
20284 s,@srcdir@,$ac_srcdir,;t t
20285 s,@abs_srcdir@,$ac_abs_srcdir,;t t
20286 s,@top_srcdir@,$ac_top_srcdir,;t t
20287 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
20288 s,@builddir@,$ac_builddir,;t t
20289 s,@abs_builddir@,$ac_abs_builddir,;t t
20290 s,@top_builddir@,$ac_top_builddir,;t t
20291 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
20292 s,@INSTALL@,$ac_INSTALL,;t t
20293 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
20294   rm -f $tmp/stdin
20295   if test x"$ac_file" != x-; then
20296     mv $tmp/out $ac_file
20297   else
20298     cat $tmp/out
20299     rm -f $tmp/out
20300   fi
20301
20302 done
20303 _ACEOF
20304 cat >>$CONFIG_STATUS <<\_ACEOF
20305
20306 #
20307 # CONFIG_HEADER section.
20308 #
20309
20310 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
20311 # NAME is the cpp macro being defined and VALUE is the value it is being given.
20312 #
20313 # ac_d sets the value in "#define NAME VALUE" lines.
20314 ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
20315 ac_dB='[         ].*$,\1#\2'
20316 ac_dC=' '
20317 ac_dD=',;t'
20318 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
20319 ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
20320 ac_uB='$,\1#\2define\3'
20321 ac_uC=' '
20322 ac_uD=',;t'
20323
20324 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
20325   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
20326   case $ac_file in
20327   - | *:- | *:-:* ) # input from stdin
20328         cat >$tmp/stdin
20329         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20330         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20331   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20332         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20333   * )   ac_file_in=$ac_file.in ;;
20334   esac
20335
20336   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
20337 echo "$as_me: creating $ac_file" >&6;}
20338
20339   # First look for the input files in the build tree, otherwise in the
20340   # src tree.
20341   ac_file_inputs=`IFS=:
20342     for f in $ac_file_in; do
20343       case $f in
20344       -) echo $tmp/stdin ;;
20345       [\\/$]*)
20346          # Absolute (can't be DOS-style, as IFS=:)
20347          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20348 echo "$as_me: error: cannot find input file: $f" >&2;}
20349    { (exit 1); exit 1; }; }
20350          # Do quote $f, to prevent DOS paths from being IFS'd.
20351          echo "$f";;
20352       *) # Relative
20353          if test -f "$f"; then
20354            # Build tree
20355            echo "$f"
20356          elif test -f "$srcdir/$f"; then
20357            # Source tree
20358            echo "$srcdir/$f"
20359          else
20360            # /dev/null tree
20361            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20362 echo "$as_me: error: cannot find input file: $f" >&2;}
20363    { (exit 1); exit 1; }; }
20364          fi;;
20365       esac
20366     done` || { (exit 1); exit 1; }
20367   # Remove the trailing spaces.
20368   sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
20369
20370 _ACEOF
20371
20372 # Transform confdefs.h into two sed scripts, `conftest.defines' and
20373 # `conftest.undefs', that substitutes the proper values into
20374 # config.h.in to produce config.h.  The first handles `#define'
20375 # templates, and the second `#undef' templates.
20376 # And first: Protect against being on the right side of a sed subst in
20377 # config.status.  Protect against being in an unquoted here document
20378 # in config.status.
20379 rm -f conftest.defines conftest.undefs
20380 # Using a here document instead of a string reduces the quoting nightmare.
20381 # Putting comments in sed scripts is not portable.
20382 #
20383 # `end' is used to avoid that the second main sed command (meant for
20384 # 0-ary CPP macros) applies to n-ary macro definitions.
20385 # See the Autoconf documentation for `clear'.
20386 cat >confdef2sed.sed <<\_ACEOF
20387 s/[\\&,]/\\&/g
20388 s,[\\$`],\\&,g
20389 t clear
20390 : clear
20391 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
20392 t end
20393 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
20394 : end
20395 _ACEOF
20396 # If some macros were called several times there might be several times
20397 # the same #defines, which is useless.  Nevertheless, we may not want to
20398 # sort them, since we want the *last* AC-DEFINE to be honored.
20399 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
20400 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
20401 rm -f confdef2sed.sed
20402
20403 # This sed command replaces #undef with comments.  This is necessary, for
20404 # example, in the case of _POSIX_SOURCE, which is predefined and required
20405 # on some systems where configure will not decide to define it.
20406 cat >>conftest.undefs <<\_ACEOF
20407 s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
20408 _ACEOF
20409
20410 # Break up conftest.defines because some shells have a limit on the size
20411 # of here documents, and old seds have small limits too (100 cmds).
20412 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
20413 echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
20414 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
20415 echo '  :' >>$CONFIG_STATUS
20416 rm -f conftest.tail
20417 while grep . conftest.defines >/dev/null
20418 do
20419   # Write a limited-size here document to $tmp/defines.sed.
20420   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
20421   # Speed up: don't consider the non `#define' lines.
20422   echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
20423   # Work around the forget-to-reset-the-flag bug.
20424   echo 't clr' >>$CONFIG_STATUS
20425   echo ': clr' >>$CONFIG_STATUS
20426   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
20427   echo 'CEOF
20428   sed -f $tmp/defines.sed $tmp/in >$tmp/out
20429   rm -f $tmp/in
20430   mv $tmp/out $tmp/in
20431 ' >>$CONFIG_STATUS
20432   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
20433   rm -f conftest.defines
20434   mv conftest.tail conftest.defines
20435 done
20436 rm -f conftest.defines
20437 echo '  fi # grep' >>$CONFIG_STATUS
20438 echo >>$CONFIG_STATUS
20439
20440 # Break up conftest.undefs because some shells have a limit on the size
20441 # of here documents, and old seds have small limits too (100 cmds).
20442 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
20443 rm -f conftest.tail
20444 while grep . conftest.undefs >/dev/null
20445 do
20446   # Write a limited-size here document to $tmp/undefs.sed.
20447   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
20448   # Speed up: don't consider the non `#undef'
20449   echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
20450   # Work around the forget-to-reset-the-flag bug.
20451   echo 't clr' >>$CONFIG_STATUS
20452   echo ': clr' >>$CONFIG_STATUS
20453   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
20454   echo 'CEOF
20455   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
20456   rm -f $tmp/in
20457   mv $tmp/out $tmp/in
20458 ' >>$CONFIG_STATUS
20459   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
20460   rm -f conftest.undefs
20461   mv conftest.tail conftest.undefs
20462 done
20463 rm -f conftest.undefs
20464
20465 cat >>$CONFIG_STATUS <<\_ACEOF
20466   # Let's still pretend it is `configure' which instantiates (i.e., don't
20467   # use $as_me), people would be surprised to read:
20468   #    /* config.h.  Generated by config.status.  */
20469   if test x"$ac_file" = x-; then
20470     echo "/* Generated by configure.  */" >$tmp/config.h
20471   else
20472     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
20473   fi
20474   cat $tmp/in >>$tmp/config.h
20475   rm -f $tmp/in
20476   if test x"$ac_file" != x-; then
20477     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
20478       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
20479 echo "$as_me: $ac_file is unchanged" >&6;}
20480     else
20481       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
20482 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20483          X"$ac_file" : 'X\(//\)[^/]' \| \
20484          X"$ac_file" : 'X\(//\)$' \| \
20485          X"$ac_file" : 'X\(/\)' \| \
20486          .     : '\(.\)' 2>/dev/null ||
20487 echo X"$ac_file" |
20488     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20489           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20490           /^X\(\/\/\)$/{ s//\1/; q; }
20491           /^X\(\/\).*/{ s//\1/; q; }
20492           s/.*/./; q'`
20493       { if $as_mkdir_p; then
20494     mkdir -p "$ac_dir"
20495   else
20496     as_dir="$ac_dir"
20497     as_dirs=
20498     while test ! -d "$as_dir"; do
20499       as_dirs="$as_dir $as_dirs"
20500       as_dir=`(dirname "$as_dir") 2>/dev/null ||
20501 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20502          X"$as_dir" : 'X\(//\)[^/]' \| \
20503          X"$as_dir" : 'X\(//\)$' \| \
20504          X"$as_dir" : 'X\(/\)' \| \
20505          .     : '\(.\)' 2>/dev/null ||
20506 echo X"$as_dir" |
20507     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20508           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20509           /^X\(\/\/\)$/{ s//\1/; q; }
20510           /^X\(\/\).*/{ s//\1/; q; }
20511           s/.*/./; q'`
20512     done
20513     test ! -n "$as_dirs" || mkdir $as_dirs
20514   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
20515 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
20516    { (exit 1); exit 1; }; }; }
20517
20518       rm -f $ac_file
20519       mv $tmp/config.h $ac_file
20520     fi
20521   else
20522     cat $tmp/config.h
20523     rm -f $tmp/config.h
20524   fi
20525 done
20526 _ACEOF
20527 cat >>$CONFIG_STATUS <<\_ACEOF
20528
20529 #
20530 # CONFIG_COMMANDS section.
20531 #
20532 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
20533   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
20534   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
20535   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
20536 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20537          X"$ac_dest" : 'X\(//\)[^/]' \| \
20538          X"$ac_dest" : 'X\(//\)$' \| \
20539          X"$ac_dest" : 'X\(/\)' \| \
20540          .     : '\(.\)' 2>/dev/null ||
20541 echo X"$ac_dest" |
20542     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20543           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20544           /^X\(\/\/\)$/{ s//\1/; q; }
20545           /^X\(\/\).*/{ s//\1/; q; }
20546           s/.*/./; q'`
20547   { if $as_mkdir_p; then
20548     mkdir -p "$ac_dir"
20549   else
20550     as_dir="$ac_dir"
20551     as_dirs=
20552     while test ! -d "$as_dir"; do
20553       as_dirs="$as_dir $as_dirs"
20554       as_dir=`(dirname "$as_dir") 2>/dev/null ||
20555 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20556          X"$as_dir" : 'X\(//\)[^/]' \| \
20557          X"$as_dir" : 'X\(//\)$' \| \
20558          X"$as_dir" : 'X\(/\)' \| \
20559          .     : '\(.\)' 2>/dev/null ||
20560 echo X"$as_dir" |
20561     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20562           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20563           /^X\(\/\/\)$/{ s//\1/; q; }
20564           /^X\(\/\).*/{ s//\1/; q; }
20565           s/.*/./; q'`
20566     done
20567     test ! -n "$as_dirs" || mkdir $as_dirs
20568   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
20569 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
20570    { (exit 1); exit 1; }; }; }
20571
20572   ac_builddir=.
20573
20574 if test "$ac_dir" != .; then
20575   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
20576   # A "../" for each directory in $ac_dir_suffix.
20577   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
20578 else
20579   ac_dir_suffix= ac_top_builddir=
20580 fi
20581
20582 case $srcdir in
20583   .)  # No --srcdir option.  We are building in place.
20584     ac_srcdir=.
20585     if test -z "$ac_top_builddir"; then
20586        ac_top_srcdir=.
20587     else
20588        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
20589     fi ;;
20590   [\\/]* | ?:[\\/]* )  # Absolute path.
20591     ac_srcdir=$srcdir$ac_dir_suffix;
20592     ac_top_srcdir=$srcdir ;;
20593   *) # Relative path.
20594     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
20595     ac_top_srcdir=$ac_top_builddir$srcdir ;;
20596 esac
20597
20598 # Do not use `cd foo && pwd` to compute absolute paths, because
20599 # the directories may not exist.
20600 case `pwd` in
20601 .) ac_abs_builddir="$ac_dir";;
20602 *)
20603   case "$ac_dir" in
20604   .) ac_abs_builddir=`pwd`;;
20605   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
20606   *) ac_abs_builddir=`pwd`/"$ac_dir";;
20607   esac;;
20608 esac
20609 case $ac_abs_builddir in
20610 .) ac_abs_top_builddir=${ac_top_builddir}.;;
20611 *)
20612   case ${ac_top_builddir}. in
20613   .) ac_abs_top_builddir=$ac_abs_builddir;;
20614   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
20615   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
20616   esac;;
20617 esac
20618 case $ac_abs_builddir in
20619 .) ac_abs_srcdir=$ac_srcdir;;
20620 *)
20621   case $ac_srcdir in
20622   .) ac_abs_srcdir=$ac_abs_builddir;;
20623   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
20624   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
20625   esac;;
20626 esac
20627 case $ac_abs_builddir in
20628 .) ac_abs_top_srcdir=$ac_top_srcdir;;
20629 *)
20630   case $ac_top_srcdir in
20631   .) ac_abs_top_srcdir=$ac_abs_builddir;;
20632   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
20633   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
20634   esac;;
20635 esac
20636
20637
20638   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
20639 echo "$as_me: executing $ac_dest commands" >&6;}
20640   case $ac_dest in
20641     controls ) test -d "controls" || ({ echo "$as_me:$LINENO: creating controls" >&5
20642 echo "$as_me: creating controls" >&6;} && mkdir "controls") ;;
20643     dlls/ddraw/d3ddevice ) test -d "dlls/ddraw/d3ddevice" || ({ echo "$as_me:$LINENO: creating dlls/ddraw/d3ddevice" >&5
20644 echo "$as_me: creating dlls/ddraw/d3ddevice" >&6;} && mkdir "dlls/ddraw/d3ddevice") ;;
20645     dlls/ddraw/dclipper ) test -d "dlls/ddraw/dclipper" || ({ echo "$as_me:$LINENO: creating dlls/ddraw/dclipper" >&5
20646 echo "$as_me: creating dlls/ddraw/dclipper" >&6;} && mkdir "dlls/ddraw/dclipper") ;;
20647     dlls/ddraw/ddraw ) test -d "dlls/ddraw/ddraw" || ({ echo "$as_me:$LINENO: creating dlls/ddraw/ddraw" >&5
20648 echo "$as_me: creating dlls/ddraw/ddraw" >&6;} && mkdir "dlls/ddraw/ddraw") ;;
20649     dlls/ddraw/direct3d ) test -d "dlls/ddraw/direct3d" || ({ echo "$as_me:$LINENO: creating dlls/ddraw/direct3d" >&5
20650 echo "$as_me: creating dlls/ddraw/direct3d" >&6;} && mkdir "dlls/ddraw/direct3d") ;;
20651     dlls/ddraw/dpalette ) test -d "dlls/ddraw/dpalette" || ({ echo "$as_me:$LINENO: creating dlls/ddraw/dpalette" >&5
20652 echo "$as_me: creating dlls/ddraw/dpalette" >&6;} && mkdir "dlls/ddraw/dpalette") ;;
20653     dlls/ddraw/dsurface ) test -d "dlls/ddraw/dsurface" || ({ echo "$as_me:$LINENO: creating dlls/ddraw/dsurface" >&5
20654 echo "$as_me: creating dlls/ddraw/dsurface" >&6;} && mkdir "dlls/ddraw/dsurface") ;;
20655     dlls/dinput/joystick ) test -d "dlls/dinput/joystick" || ({ echo "$as_me:$LINENO: creating dlls/dinput/joystick" >&5
20656 echo "$as_me: creating dlls/dinput/joystick" >&6;} && mkdir "dlls/dinput/joystick") ;;
20657     dlls/dinput/keyboard ) test -d "dlls/dinput/keyboard" || ({ echo "$as_me:$LINENO: creating dlls/dinput/keyboard" >&5
20658 echo "$as_me: creating dlls/dinput/keyboard" >&6;} && mkdir "dlls/dinput/keyboard") ;;
20659     dlls/dinput/mouse ) test -d "dlls/dinput/mouse" || ({ echo "$as_me:$LINENO: creating dlls/dinput/mouse" >&5
20660 echo "$as_me: creating dlls/dinput/mouse" >&6;} && mkdir "dlls/dinput/mouse") ;;
20661     dlls/gdi/enhmfdrv ) test -d "dlls/gdi/enhmfdrv" || ({ echo "$as_me:$LINENO: creating dlls/gdi/enhmfdrv" >&5
20662 echo "$as_me: creating dlls/gdi/enhmfdrv" >&6;} && mkdir "dlls/gdi/enhmfdrv") ;;
20663     dlls/gdi/mfdrv ) test -d "dlls/gdi/mfdrv" || ({ echo "$as_me:$LINENO: creating dlls/gdi/mfdrv" >&5
20664 echo "$as_me: creating dlls/gdi/mfdrv" >&6;} && mkdir "dlls/gdi/mfdrv") ;;
20665     dlls/kernel/messages ) test -d "dlls/kernel/messages" || ({ echo "$as_me:$LINENO: creating dlls/kernel/messages" >&5
20666 echo "$as_me: creating dlls/kernel/messages" >&6;} && mkdir "dlls/kernel/messages") ;;
20667     dlls/user/dde ) test -d "dlls/user/dde" || ({ echo "$as_me:$LINENO: creating dlls/user/dde" >&5
20668 echo "$as_me: creating dlls/user/dde" >&6;} && mkdir "dlls/user/dde") ;;
20669     dlls/user/resources ) test -d "dlls/user/resources" || ({ echo "$as_me:$LINENO: creating dlls/user/resources" >&5
20670 echo "$as_me: creating dlls/user/resources" >&6;} && mkdir "dlls/user/resources") ;;
20671     dlls/wineps/data ) test -d "dlls/wineps/data" || ({ echo "$as_me:$LINENO: creating dlls/wineps/data" >&5
20672 echo "$as_me: creating dlls/wineps/data" >&6;} && mkdir "dlls/wineps/data") ;;
20673     files ) test -d "files" || ({ echo "$as_me:$LINENO: creating files" >&5
20674 echo "$as_me: creating files" >&6;} && mkdir "files") ;;
20675     graphics ) test -d "graphics" || ({ echo "$as_me:$LINENO: creating graphics" >&5
20676 echo "$as_me: creating graphics" >&6;} && mkdir "graphics") ;;
20677     include/wine ) test -d "include/wine" || ({ echo "$as_me:$LINENO: creating include/wine" >&5
20678 echo "$as_me: creating include/wine" >&6;} && mkdir "include/wine") ;;
20679     misc ) test -d "misc" || ({ echo "$as_me:$LINENO: creating misc" >&5
20680 echo "$as_me: creating misc" >&6;} && mkdir "misc") ;;
20681     objects ) test -d "objects" || ({ echo "$as_me:$LINENO: creating objects" >&5
20682 echo "$as_me: creating objects" >&6;} && mkdir "objects") ;;
20683     programs/regedit/tests ) test -d "programs/regedit/tests" || ({ echo "$as_me:$LINENO: creating programs/regedit/tests" >&5
20684 echo "$as_me: creating programs/regedit/tests" >&6;} && mkdir "programs/regedit/tests") ;;
20685     windows ) test -d "windows" || ({ echo "$as_me:$LINENO: creating windows" >&5
20686 echo "$as_me: creating windows" >&6;} && mkdir "windows") ;;
20687   esac
20688 done
20689 _ACEOF
20690
20691 cat >>$CONFIG_STATUS <<\_ACEOF
20692
20693 { (exit 0); exit 0; }
20694 _ACEOF
20695 chmod +x $CONFIG_STATUS
20696 ac_clean_files=$ac_clean_files_save
20697
20698
20699 # configure is writing to config.log, and then calls config.status.
20700 # config.status does its own redirection, appending to config.log.
20701 # Unfortunately, on DOS this fails, as config.log is still kept open
20702 # by configure, so config.status won't be able to write to it; its
20703 # output is simply discarded.  So we exec the FD to /dev/null,
20704 # effectively closing config.log, so it can be properly (re)opened and
20705 # appended to by config.status.  When coming back to configure, we
20706 # need to make the FD available again.
20707 if test "$no_create" != yes; then
20708   ac_cs_success=:
20709   ac_config_status_args=
20710   test "$silent" = yes &&
20711     ac_config_status_args="$ac_config_status_args --quiet"
20712   exec 5>/dev/null
20713   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
20714   exec 5>>config.log
20715   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
20716   # would make configure fail if this is the last instruction.
20717   $ac_cs_success || { (exit 1); exit 1; }
20718 fi
20719
20720
20721 if test "$have_x" = "no"
20722 then
20723   echo
20724   echo "*** Warning: X development files not found. Wine will be built without"
20725   echo "*** X support, which currently does not work, and would probably not be"
20726   echo "*** what you want anyway. You will need to install devel packages of"
20727   echo "*** Xlib/Xfree86 at the very least."
20728 fi
20729
20730 if test "$wine_cv_opengl_version_OK" = "no"
20731 then
20732   echo
20733   echo "*** Warning: old Mesa headers detected. Wine will be built without Direct3D"
20734   echo "*** support. Consider upgrading your Mesa libraries (http://www.mesa3d.org/)."
20735 fi
20736
20737 if test "$wine_cv_msg_freetype" = "yes"
20738 then
20739   echo
20740   echo "*** Note: Your system appears to have the FreeType 2 runtime libraries"
20741   echo "*** installed, but 'freetype-config' is not in your PATH. Install the"
20742   echo "*** freetype-devel package (or its equivalent on your distribution) to"
20743   echo "*** enable Wine to use TrueType fonts."
20744 fi
20745
20746 echo
20747 echo "Configure finished.  Do 'make depend && make' to compile Wine."
20748 echo
20749