Split the module building functionality of NE_LoadExeHeader into
[wine] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59 for Wine 20050419.
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='20050419'
273 PACKAGE_STRING='Wine 20050419'
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 DLLDEFS 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 CXX CXXFLAGS ac_ct_CXX CPPBIN ac_ct_CPPBIN TOOLSDIR CPP X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS LEX LEXLIB LEX_OUTPUT_ROOT XLEX BISON 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 EGREP LDCONFIG INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA LINT LINTFLAGS FONTFORGE LIBPTHREAD XLIB XFILES OPENGLFILES GLU32FILES OPENGL_LIBS GLUT_LIBS GLUT32FILES NASLIBS CURSESLIBS sane_devel SANELIBS SANEINCL ICULIBS ft_devel ft_devel2 FREETYPELIBS FREETYPEINCL FONTSSUBDIRS ARTSCCONFIG ARTSLIBS ARTSINCL ALSALIBS AUDIOIOLIBS EXTRACFLAGS DLLEXT DLLFLAGS DLLIBS LDSHARED LDDLLFLAGS LIBEXT IMPLIBEXT DLLTOOL ac_ct_DLLTOOL DLLWRAP ac_ct_DLLWRAP LDEXECFLAGS LDLIBWINEFLAGS COREFOUNDATIONLIB IOKITLIB CROSSTEST CROSSCC CROSSWINDRES LDPATH CRTLIBS SOCKETLIBS 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_CXX_set=${CXX+set}
772 ac_env_CXX_value=$CXX
773 ac_cv_env_CXX_set=${CXX+set}
774 ac_cv_env_CXX_value=$CXX
775 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
776 ac_env_CXXFLAGS_value=$CXXFLAGS
777 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
778 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
779 ac_env_CPP_set=${CPP+set}
780 ac_env_CPP_value=$CPP
781 ac_cv_env_CPP_set=${CPP+set}
782 ac_cv_env_CPP_value=$CPP
783
784 #
785 # Report the --help message.
786 #
787 if test "$ac_init_help" = "long"; then
788   # Omit some internal or obsolete options to make the list less imposing.
789   # This message is too long to be a string in the A/UX 3.1 sh.
790   cat <<_ACEOF
791 \`configure' configures Wine 20050419 to adapt to many kinds of systems.
792
793 Usage: $0 [OPTION]... [VAR=VALUE]...
794
795 To assign environment variables (e.g., CC, CFLAGS...), specify them as
796 VAR=VALUE.  See below for descriptions of some of the useful variables.
797
798 Defaults for the options are specified in brackets.
799
800 Configuration:
801   -h, --help              display this help and exit
802       --help=short        display options specific to this package
803       --help=recursive    display the short help of all the included packages
804   -V, --version           display version information and exit
805   -q, --quiet, --silent   do not print \`checking...' messages
806       --cache-file=FILE   cache test results in FILE [disabled]
807   -C, --config-cache      alias for \`--cache-file=config.cache'
808   -n, --no-create         do not create output files
809       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
810
811 _ACEOF
812
813   cat <<_ACEOF
814 Installation directories:
815   --prefix=PREFIX         install architecture-independent files in PREFIX
816                           [$ac_default_prefix]
817   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
818                           [PREFIX]
819
820 By default, \`make install' will install all the files in
821 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
822 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
823 for instance \`--prefix=\$HOME'.
824
825 For better control, use the options below.
826
827 Fine tuning of the installation directories:
828   --bindir=DIR           user executables [EPREFIX/bin]
829   --sbindir=DIR          system admin executables [EPREFIX/sbin]
830   --libexecdir=DIR       program executables [EPREFIX/libexec]
831   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
832   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
833   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
834   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
835   --libdir=DIR           object code libraries [EPREFIX/lib]
836   --includedir=DIR       C header files [PREFIX/include]
837   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
838   --infodir=DIR          info documentation [PREFIX/info]
839   --mandir=DIR           man documentation [PREFIX/man]
840 _ACEOF
841
842   cat <<\_ACEOF
843
844 X features:
845   --x-includes=DIR    X include files are in DIR
846   --x-libraries=DIR   X library files are in DIR
847
848 System types:
849   --build=BUILD     configure for building on BUILD [guessed]
850   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
851 _ACEOF
852 fi
853
854 if test -n "$ac_init_help"; then
855   case $ac_init_help in
856      short | recursive ) echo "Configuration of Wine 20050419:";;
857    esac
858   cat <<\_ACEOF
859
860 Optional Features:
861   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
862   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
863   --disable-win16         do not include Win16 support
864   --disable-debug         compile out all debugging messages
865   --disable-trace         compile out TRACE messages
866   --enable-win64          build a Win64 emulator on AMD64 (won't run Win32
867                           binaries)
868
869 Optional Packages:
870   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
871   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
872   --without-opengl        do not use OpenGL
873   --without-curses        do not use curses
874   --with-wine-tools=<dir> use Wine tools from directory <dir>
875   --with-x                use the X Window System
876
877 Some influential environment variables:
878   CC          C compiler command
879   CFLAGS      C compiler flags
880   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
881               nonstandard directory <lib dir>
882   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
883               headers in a nonstandard directory <include dir>
884   CXX         C++ compiler command
885   CXXFLAGS    C++ compiler flags
886   CPP         C preprocessor
887
888 Use these variables to override the choices made by `configure' or to help
889 it to find libraries and programs with nonstandard names/locations.
890
891 Report bugs to <wine-devel@winehq.org>.
892 _ACEOF
893 fi
894
895 if test "$ac_init_help" = "recursive"; then
896   # If there are subdirs, report their specific --help.
897   ac_popdir=`pwd`
898   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
899     test -d $ac_dir || continue
900     ac_builddir=.
901
902 if test "$ac_dir" != .; then
903   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
904   # A "../" for each directory in $ac_dir_suffix.
905   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
906 else
907   ac_dir_suffix= ac_top_builddir=
908 fi
909
910 case $srcdir in
911   .)  # No --srcdir option.  We are building in place.
912     ac_srcdir=.
913     if test -z "$ac_top_builddir"; then
914        ac_top_srcdir=.
915     else
916        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
917     fi ;;
918   [\\/]* | ?:[\\/]* )  # Absolute path.
919     ac_srcdir=$srcdir$ac_dir_suffix;
920     ac_top_srcdir=$srcdir ;;
921   *) # Relative path.
922     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
923     ac_top_srcdir=$ac_top_builddir$srcdir ;;
924 esac
925
926 # Do not use `cd foo && pwd` to compute absolute paths, because
927 # the directories may not exist.
928 case `pwd` in
929 .) ac_abs_builddir="$ac_dir";;
930 *)
931   case "$ac_dir" in
932   .) ac_abs_builddir=`pwd`;;
933   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
934   *) ac_abs_builddir=`pwd`/"$ac_dir";;
935   esac;;
936 esac
937 case $ac_abs_builddir in
938 .) ac_abs_top_builddir=${ac_top_builddir}.;;
939 *)
940   case ${ac_top_builddir}. in
941   .) ac_abs_top_builddir=$ac_abs_builddir;;
942   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
943   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
944   esac;;
945 esac
946 case $ac_abs_builddir in
947 .) ac_abs_srcdir=$ac_srcdir;;
948 *)
949   case $ac_srcdir in
950   .) ac_abs_srcdir=$ac_abs_builddir;;
951   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
952   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
953   esac;;
954 esac
955 case $ac_abs_builddir in
956 .) ac_abs_top_srcdir=$ac_top_srcdir;;
957 *)
958   case $ac_top_srcdir in
959   .) ac_abs_top_srcdir=$ac_abs_builddir;;
960   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
961   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
962   esac;;
963 esac
964
965     cd $ac_dir
966     # Check for guested configure; otherwise get Cygnus style configure.
967     if test -f $ac_srcdir/configure.gnu; then
968       echo
969       $SHELL $ac_srcdir/configure.gnu  --help=recursive
970     elif test -f $ac_srcdir/configure; then
971       echo
972       $SHELL $ac_srcdir/configure  --help=recursive
973     elif test -f $ac_srcdir/configure.ac ||
974            test -f $ac_srcdir/configure.in; then
975       echo
976       $ac_configure --help
977     else
978       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
979     fi
980     cd "$ac_popdir"
981   done
982 fi
983
984 test -n "$ac_init_help" && exit 0
985 if $ac_init_version; then
986   cat <<\_ACEOF
987 Wine configure 20050419
988 generated by GNU Autoconf 2.59
989
990 Copyright (C) 2003 Free Software Foundation, Inc.
991 This configure script is free software; the Free Software Foundation
992 gives unlimited permission to copy, distribute and modify it.
993 _ACEOF
994   exit 0
995 fi
996 exec 5>config.log
997 cat >&5 <<_ACEOF
998 This file contains any messages produced by compilers while
999 running configure, to aid debugging if configure makes a mistake.
1000
1001 It was created by Wine $as_me 20050419, which was
1002 generated by GNU Autoconf 2.59.  Invocation command line was
1003
1004   $ $0 $@
1005
1006 _ACEOF
1007 {
1008 cat <<_ASUNAME
1009 ## --------- ##
1010 ## Platform. ##
1011 ## --------- ##
1012
1013 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1014 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1015 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1016 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1017 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1018
1019 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1020 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1021
1022 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1023 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1024 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1025 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1026 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1027 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1028 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1029
1030 _ASUNAME
1031
1032 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1033 for as_dir in $PATH
1034 do
1035   IFS=$as_save_IFS
1036   test -z "$as_dir" && as_dir=.
1037   echo "PATH: $as_dir"
1038 done
1039
1040 } >&5
1041
1042 cat >&5 <<_ACEOF
1043
1044
1045 ## ----------- ##
1046 ## Core tests. ##
1047 ## ----------- ##
1048
1049 _ACEOF
1050
1051
1052 # Keep a trace of the command line.
1053 # Strip out --no-create and --no-recursion so they do not pile up.
1054 # Strip out --silent because we don't want to record it for future runs.
1055 # Also quote any args containing shell meta-characters.
1056 # Make two passes to allow for proper duplicate-argument suppression.
1057 ac_configure_args=
1058 ac_configure_args0=
1059 ac_configure_args1=
1060 ac_sep=
1061 ac_must_keep_next=false
1062 for ac_pass in 1 2
1063 do
1064   for ac_arg
1065   do
1066     case $ac_arg in
1067     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1068     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1069     | -silent | --silent | --silen | --sile | --sil)
1070       continue ;;
1071     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1072       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1073     esac
1074     case $ac_pass in
1075     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1076     2)
1077       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1078       if test $ac_must_keep_next = true; then
1079         ac_must_keep_next=false # Got value, back to normal.
1080       else
1081         case $ac_arg in
1082           *=* | --config-cache | -C | -disable-* | --disable-* \
1083           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1084           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1085           | -with-* | --with-* | -without-* | --without-* | --x)
1086             case "$ac_configure_args0 " in
1087               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1088             esac
1089             ;;
1090           -* ) ac_must_keep_next=true ;;
1091         esac
1092       fi
1093       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1094       # Get rid of the leading space.
1095       ac_sep=" "
1096       ;;
1097     esac
1098   done
1099 done
1100 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1101 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1102
1103 # When interrupted or exit'd, cleanup temporary files, and complete
1104 # config.log.  We remove comments because anyway the quotes in there
1105 # would cause problems or look ugly.
1106 # WARNING: Be sure not to use single quotes in there, as some shells,
1107 # such as our DU 5.0 friend, will then `close' the trap.
1108 trap 'exit_status=$?
1109   # Save into config.log some information that might help in debugging.
1110   {
1111     echo
1112
1113     cat <<\_ASBOX
1114 ## ---------------- ##
1115 ## Cache variables. ##
1116 ## ---------------- ##
1117 _ASBOX
1118     echo
1119     # The following way of writing the cache mishandles newlines in values,
1120 {
1121   (set) 2>&1 |
1122     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1123     *ac_space=\ *)
1124       sed -n \
1125         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1126           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1127       ;;
1128     *)
1129       sed -n \
1130         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1131       ;;
1132     esac;
1133 }
1134     echo
1135
1136     cat <<\_ASBOX
1137 ## ----------------- ##
1138 ## Output variables. ##
1139 ## ----------------- ##
1140 _ASBOX
1141     echo
1142     for ac_var in $ac_subst_vars
1143     do
1144       eval ac_val=$`echo $ac_var`
1145       echo "$ac_var='"'"'$ac_val'"'"'"
1146     done | sort
1147     echo
1148
1149     if test -n "$ac_subst_files"; then
1150       cat <<\_ASBOX
1151 ## ------------- ##
1152 ## Output files. ##
1153 ## ------------- ##
1154 _ASBOX
1155       echo
1156       for ac_var in $ac_subst_files
1157       do
1158         eval ac_val=$`echo $ac_var`
1159         echo "$ac_var='"'"'$ac_val'"'"'"
1160       done | sort
1161       echo
1162     fi
1163
1164     if test -s confdefs.h; then
1165       cat <<\_ASBOX
1166 ## ----------- ##
1167 ## confdefs.h. ##
1168 ## ----------- ##
1169 _ASBOX
1170       echo
1171       sed "/^$/d" confdefs.h | sort
1172       echo
1173     fi
1174     test "$ac_signal" != 0 &&
1175       echo "$as_me: caught signal $ac_signal"
1176     echo "$as_me: exit $exit_status"
1177   } >&5
1178   rm -f core *.core &&
1179   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1180     exit $exit_status
1181      ' 0
1182 for ac_signal in 1 2 13 15; do
1183   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1184 done
1185 ac_signal=0
1186
1187 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1188 rm -rf conftest* confdefs.h
1189 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1190 echo >confdefs.h
1191
1192 # Predefined preprocessor variables.
1193
1194 cat >>confdefs.h <<_ACEOF
1195 #define PACKAGE_NAME "$PACKAGE_NAME"
1196 _ACEOF
1197
1198
1199 cat >>confdefs.h <<_ACEOF
1200 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1201 _ACEOF
1202
1203
1204 cat >>confdefs.h <<_ACEOF
1205 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1206 _ACEOF
1207
1208
1209 cat >>confdefs.h <<_ACEOF
1210 #define PACKAGE_STRING "$PACKAGE_STRING"
1211 _ACEOF
1212
1213
1214 cat >>confdefs.h <<_ACEOF
1215 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1216 _ACEOF
1217
1218
1219 # Let the site file select an alternate cache file if it wants to.
1220 # Prefer explicitly selected file to automatically selected ones.
1221 if test -z "$CONFIG_SITE"; then
1222   if test "x$prefix" != xNONE; then
1223     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1224   else
1225     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1226   fi
1227 fi
1228 for ac_site_file in $CONFIG_SITE; do
1229   if test -r "$ac_site_file"; then
1230     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1231 echo "$as_me: loading site script $ac_site_file" >&6;}
1232     sed 's/^/| /' "$ac_site_file" >&5
1233     . "$ac_site_file"
1234   fi
1235 done
1236
1237 if test -r "$cache_file"; then
1238   # Some versions of bash will fail to source /dev/null (special
1239   # files actually), so we avoid doing that.
1240   if test -f "$cache_file"; then
1241     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1242 echo "$as_me: loading cache $cache_file" >&6;}
1243     case $cache_file in
1244       [\\/]* | ?:[\\/]* ) . $cache_file;;
1245       *)                      . ./$cache_file;;
1246     esac
1247   fi
1248 else
1249   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1250 echo "$as_me: creating cache $cache_file" >&6;}
1251   >$cache_file
1252 fi
1253
1254 # Check that the precious variables saved in the cache have kept the same
1255 # value.
1256 ac_cache_corrupted=false
1257 for ac_var in `(set) 2>&1 |
1258                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1259   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1260   eval ac_new_set=\$ac_env_${ac_var}_set
1261   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1262   eval ac_new_val="\$ac_env_${ac_var}_value"
1263   case $ac_old_set,$ac_new_set in
1264     set,)
1265       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1266 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1267       ac_cache_corrupted=: ;;
1268     ,set)
1269       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1270 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1271       ac_cache_corrupted=: ;;
1272     ,);;
1273     *)
1274       if test "x$ac_old_val" != "x$ac_new_val"; then
1275         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1276 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1277         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1278 echo "$as_me:   former value:  $ac_old_val" >&2;}
1279         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1280 echo "$as_me:   current value: $ac_new_val" >&2;}
1281         ac_cache_corrupted=:
1282       fi;;
1283   esac
1284   # Pass precious variables to config.status.
1285   if test "$ac_new_set" = set; then
1286     case $ac_new_val in
1287     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1288       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1289     *) ac_arg=$ac_var=$ac_new_val ;;
1290     esac
1291     case " $ac_configure_args " in
1292       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1293       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1294     esac
1295   fi
1296 done
1297 if $ac_cache_corrupted; then
1298   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1299 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1300   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1301 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1302    { (exit 1); exit 1; }; }
1303 fi
1304
1305 ac_ext=c
1306 ac_cpp='$CPP $CPPFLAGS'
1307 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1308 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1309 ac_compiler_gnu=$ac_cv_c_compiler_gnu
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
1338           ac_config_headers="$ac_config_headers include/config.h"
1339
1340 ac_aux_dir=
1341 for ac_dir in tools $srcdir/tools; do
1342   if test -f $ac_dir/install-sh; then
1343     ac_aux_dir=$ac_dir
1344     ac_install_sh="$ac_aux_dir/install-sh -c"
1345     break
1346   elif test -f $ac_dir/install.sh; then
1347     ac_aux_dir=$ac_dir
1348     ac_install_sh="$ac_aux_dir/install.sh -c"
1349     break
1350   elif test -f $ac_dir/shtool; then
1351     ac_aux_dir=$ac_dir
1352     ac_install_sh="$ac_aux_dir/shtool install -c"
1353     break
1354   fi
1355 done
1356 if test -z "$ac_aux_dir"; then
1357   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in tools $srcdir/tools" >&5
1358 echo "$as_me: error: cannot find install-sh or install.sh in tools $srcdir/tools" >&2;}
1359    { (exit 1); exit 1; }; }
1360 fi
1361 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1362 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1363 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1364
1365
1366
1367 # Check whether --enable-win16 or --disable-win16 was given.
1368 if test "${enable_win16+set}" = set; then
1369   enableval="$enable_win16"
1370
1371 fi;
1372 # Check whether --enable-debug or --disable-debug was given.
1373 if test "${enable_debug+set}" = set; then
1374   enableval="$enable_debug"
1375
1376 fi;
1377 # Check whether --enable-trace or --disable-trace was given.
1378 if test "${enable_trace+set}" = set; then
1379   enableval="$enable_trace"
1380
1381 fi;
1382 # Check whether --enable-win64 or --disable-win64 was given.
1383 if test "${enable_win64+set}" = set; then
1384   enableval="$enable_win64"
1385
1386 fi;
1387
1388
1389 # Check whether --with-opengl or --without-opengl was given.
1390 if test "${with_opengl+set}" = set; then
1391   withval="$with_opengl"
1392
1393 fi;
1394
1395 # Check whether --with-curses or --without-curses was given.
1396 if test "${with_curses+set}" = set; then
1397   withval="$with_curses"
1398
1399 fi;
1400
1401 # Check whether --with-wine-tools or --without-wine-tools was given.
1402 if test "${with_wine_tools+set}" = set; then
1403   withval="$with_wine_tools"
1404
1405 fi;
1406
1407 WIN16_FILES="\$(WIN16_FILES)"
1408
1409 WIN16_INSTALL="\$(WIN16_INSTALL)"
1410
1411 if test "x$enable_win16" = "xno"
1412 then
1413   WIN16_FILES=""
1414   WIN16_INSTALL=""
1415 fi
1416
1417 DLLDEFS=""
1418
1419 if test "x$enable_debug" = "xno"
1420 then
1421   DLLDEFS="$DLLDEFS -DWINE_NO_DEBUG_MSGS"
1422 fi
1423 if test "x$enable_trace" = "xno" -o "x$enable_debug" = "xno"
1424 then
1425   DLLDEFS="$DLLDEFS -DWINE_NO_TRACE_MSGS"
1426 fi
1427
1428
1429 # Make sure we can run config.sub.
1430 $ac_config_sub sun4 >/dev/null 2>&1 ||
1431   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1432 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1433    { (exit 1); exit 1; }; }
1434
1435 echo "$as_me:$LINENO: checking build system type" >&5
1436 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1437 if test "${ac_cv_build+set}" = set; then
1438   echo $ECHO_N "(cached) $ECHO_C" >&6
1439 else
1440   ac_cv_build_alias=$build_alias
1441 test -z "$ac_cv_build_alias" &&
1442   ac_cv_build_alias=`$ac_config_guess`
1443 test -z "$ac_cv_build_alias" &&
1444   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1445 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1446    { (exit 1); exit 1; }; }
1447 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1448   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1449 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1450    { (exit 1); exit 1; }; }
1451
1452 fi
1453 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1454 echo "${ECHO_T}$ac_cv_build" >&6
1455 build=$ac_cv_build
1456 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1457 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1458 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1459
1460
1461 echo "$as_me:$LINENO: checking host system type" >&5
1462 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1463 if test "${ac_cv_host+set}" = set; then
1464   echo $ECHO_N "(cached) $ECHO_C" >&6
1465 else
1466   ac_cv_host_alias=$host_alias
1467 test -z "$ac_cv_host_alias" &&
1468   ac_cv_host_alias=$ac_cv_build_alias
1469 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1470   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1471 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1472    { (exit 1); exit 1; }; }
1473
1474 fi
1475 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1476 echo "${ECHO_T}$ac_cv_host" >&6
1477 host=$ac_cv_host
1478 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1479 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1480 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1481
1482
1483 case $host in
1484   x86_64*linux*)
1485     if test "x$enable_win64" != "xyes"
1486     then
1487       test -n "$CC" || CC="gcc -m32"
1488       test -n "$LD" || LD="ld -m elf_i386"
1489       test -n "$AS" || AS="as --32"
1490       host_cpu="i386"
1491     fi
1492     ;;
1493 esac
1494
1495 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1496 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1497 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1498 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1499   echo $ECHO_N "(cached) $ECHO_C" >&6
1500 else
1501   cat >conftest.make <<\_ACEOF
1502 all:
1503         @echo 'ac_maketemp="$(MAKE)"'
1504 _ACEOF
1505 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1506 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1507 if test -n "$ac_maketemp"; then
1508   eval ac_cv_prog_make_${ac_make}_set=yes
1509 else
1510   eval ac_cv_prog_make_${ac_make}_set=no
1511 fi
1512 rm -f conftest.make
1513 fi
1514 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1515   echo "$as_me:$LINENO: result: yes" >&5
1516 echo "${ECHO_T}yes" >&6
1517   SET_MAKE=
1518 else
1519   echo "$as_me:$LINENO: result: no" >&5
1520 echo "${ECHO_T}no" >&6
1521   SET_MAKE="MAKE=${MAKE-make}"
1522 fi
1523
1524 ac_ext=c
1525 ac_cpp='$CPP $CPPFLAGS'
1526 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1527 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1528 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1529 if test -n "$ac_tool_prefix"; then
1530   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1531 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1532 echo "$as_me:$LINENO: checking for $ac_word" >&5
1533 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1534 if test "${ac_cv_prog_CC+set}" = set; then
1535   echo $ECHO_N "(cached) $ECHO_C" >&6
1536 else
1537   if test -n "$CC"; then
1538   ac_cv_prog_CC="$CC" # Let the user override the test.
1539 else
1540 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1541 for as_dir in $PATH
1542 do
1543   IFS=$as_save_IFS
1544   test -z "$as_dir" && as_dir=.
1545   for ac_exec_ext in '' $ac_executable_extensions; do
1546   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1547     ac_cv_prog_CC="${ac_tool_prefix}gcc"
1548     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1549     break 2
1550   fi
1551 done
1552 done
1553
1554 fi
1555 fi
1556 CC=$ac_cv_prog_CC
1557 if test -n "$CC"; then
1558   echo "$as_me:$LINENO: result: $CC" >&5
1559 echo "${ECHO_T}$CC" >&6
1560 else
1561   echo "$as_me:$LINENO: result: no" >&5
1562 echo "${ECHO_T}no" >&6
1563 fi
1564
1565 fi
1566 if test -z "$ac_cv_prog_CC"; then
1567   ac_ct_CC=$CC
1568   # Extract the first word of "gcc", so it can be a program name with args.
1569 set dummy gcc; ac_word=$2
1570 echo "$as_me:$LINENO: checking for $ac_word" >&5
1571 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1572 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1573   echo $ECHO_N "(cached) $ECHO_C" >&6
1574 else
1575   if test -n "$ac_ct_CC"; then
1576   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1577 else
1578 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1579 for as_dir in $PATH
1580 do
1581   IFS=$as_save_IFS
1582   test -z "$as_dir" && as_dir=.
1583   for ac_exec_ext in '' $ac_executable_extensions; do
1584   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1585     ac_cv_prog_ac_ct_CC="gcc"
1586     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1587     break 2
1588   fi
1589 done
1590 done
1591
1592 fi
1593 fi
1594 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1595 if test -n "$ac_ct_CC"; then
1596   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1597 echo "${ECHO_T}$ac_ct_CC" >&6
1598 else
1599   echo "$as_me:$LINENO: result: no" >&5
1600 echo "${ECHO_T}no" >&6
1601 fi
1602
1603   CC=$ac_ct_CC
1604 else
1605   CC="$ac_cv_prog_CC"
1606 fi
1607
1608 if test -z "$CC"; then
1609   if test -n "$ac_tool_prefix"; then
1610   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1611 set dummy ${ac_tool_prefix}cc; ac_word=$2
1612 echo "$as_me:$LINENO: checking for $ac_word" >&5
1613 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1614 if test "${ac_cv_prog_CC+set}" = set; then
1615   echo $ECHO_N "(cached) $ECHO_C" >&6
1616 else
1617   if test -n "$CC"; then
1618   ac_cv_prog_CC="$CC" # Let the user override the test.
1619 else
1620 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1621 for as_dir in $PATH
1622 do
1623   IFS=$as_save_IFS
1624   test -z "$as_dir" && as_dir=.
1625   for ac_exec_ext in '' $ac_executable_extensions; do
1626   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1627     ac_cv_prog_CC="${ac_tool_prefix}cc"
1628     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1629     break 2
1630   fi
1631 done
1632 done
1633
1634 fi
1635 fi
1636 CC=$ac_cv_prog_CC
1637 if test -n "$CC"; then
1638   echo "$as_me:$LINENO: result: $CC" >&5
1639 echo "${ECHO_T}$CC" >&6
1640 else
1641   echo "$as_me:$LINENO: result: no" >&5
1642 echo "${ECHO_T}no" >&6
1643 fi
1644
1645 fi
1646 if test -z "$ac_cv_prog_CC"; then
1647   ac_ct_CC=$CC
1648   # Extract the first word of "cc", so it can be a program name with args.
1649 set dummy cc; ac_word=$2
1650 echo "$as_me:$LINENO: checking for $ac_word" >&5
1651 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1652 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1653   echo $ECHO_N "(cached) $ECHO_C" >&6
1654 else
1655   if test -n "$ac_ct_CC"; then
1656   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1657 else
1658 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1659 for as_dir in $PATH
1660 do
1661   IFS=$as_save_IFS
1662   test -z "$as_dir" && as_dir=.
1663   for ac_exec_ext in '' $ac_executable_extensions; do
1664   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1665     ac_cv_prog_ac_ct_CC="cc"
1666     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1667     break 2
1668   fi
1669 done
1670 done
1671
1672 fi
1673 fi
1674 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1675 if test -n "$ac_ct_CC"; then
1676   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1677 echo "${ECHO_T}$ac_ct_CC" >&6
1678 else
1679   echo "$as_me:$LINENO: result: no" >&5
1680 echo "${ECHO_T}no" >&6
1681 fi
1682
1683   CC=$ac_ct_CC
1684 else
1685   CC="$ac_cv_prog_CC"
1686 fi
1687
1688 fi
1689 if test -z "$CC"; then
1690   # Extract the first word of "cc", so it can be a program name with args.
1691 set dummy cc; ac_word=$2
1692 echo "$as_me:$LINENO: checking for $ac_word" >&5
1693 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1694 if test "${ac_cv_prog_CC+set}" = set; then
1695   echo $ECHO_N "(cached) $ECHO_C" >&6
1696 else
1697   if test -n "$CC"; then
1698   ac_cv_prog_CC="$CC" # Let the user override the test.
1699 else
1700   ac_prog_rejected=no
1701 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1702 for as_dir in $PATH
1703 do
1704   IFS=$as_save_IFS
1705   test -z "$as_dir" && as_dir=.
1706   for ac_exec_ext in '' $ac_executable_extensions; do
1707   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1708     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1709        ac_prog_rejected=yes
1710        continue
1711      fi
1712     ac_cv_prog_CC="cc"
1713     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1714     break 2
1715   fi
1716 done
1717 done
1718
1719 if test $ac_prog_rejected = yes; then
1720   # We found a bogon in the path, so make sure we never use it.
1721   set dummy $ac_cv_prog_CC
1722   shift
1723   if test $# != 0; then
1724     # We chose a different compiler from the bogus one.
1725     # However, it has the same basename, so the bogon will be chosen
1726     # first if we set CC to just the basename; use the full file name.
1727     shift
1728     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1729   fi
1730 fi
1731 fi
1732 fi
1733 CC=$ac_cv_prog_CC
1734 if test -n "$CC"; then
1735   echo "$as_me:$LINENO: result: $CC" >&5
1736 echo "${ECHO_T}$CC" >&6
1737 else
1738   echo "$as_me:$LINENO: result: no" >&5
1739 echo "${ECHO_T}no" >&6
1740 fi
1741
1742 fi
1743 if test -z "$CC"; then
1744   if test -n "$ac_tool_prefix"; then
1745   for ac_prog in cl
1746   do
1747     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1748 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1749 echo "$as_me:$LINENO: checking for $ac_word" >&5
1750 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1751 if test "${ac_cv_prog_CC+set}" = set; then
1752   echo $ECHO_N "(cached) $ECHO_C" >&6
1753 else
1754   if test -n "$CC"; then
1755   ac_cv_prog_CC="$CC" # Let the user override the test.
1756 else
1757 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1758 for as_dir in $PATH
1759 do
1760   IFS=$as_save_IFS
1761   test -z "$as_dir" && as_dir=.
1762   for ac_exec_ext in '' $ac_executable_extensions; do
1763   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1764     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1765     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1766     break 2
1767   fi
1768 done
1769 done
1770
1771 fi
1772 fi
1773 CC=$ac_cv_prog_CC
1774 if test -n "$CC"; then
1775   echo "$as_me:$LINENO: result: $CC" >&5
1776 echo "${ECHO_T}$CC" >&6
1777 else
1778   echo "$as_me:$LINENO: result: no" >&5
1779 echo "${ECHO_T}no" >&6
1780 fi
1781
1782     test -n "$CC" && break
1783   done
1784 fi
1785 if test -z "$CC"; then
1786   ac_ct_CC=$CC
1787   for ac_prog in cl
1788 do
1789   # Extract the first word of "$ac_prog", so it can be a program name with args.
1790 set dummy $ac_prog; ac_word=$2
1791 echo "$as_me:$LINENO: checking for $ac_word" >&5
1792 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1793 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1794   echo $ECHO_N "(cached) $ECHO_C" >&6
1795 else
1796   if test -n "$ac_ct_CC"; then
1797   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1798 else
1799 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1800 for as_dir in $PATH
1801 do
1802   IFS=$as_save_IFS
1803   test -z "$as_dir" && as_dir=.
1804   for ac_exec_ext in '' $ac_executable_extensions; do
1805   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1806     ac_cv_prog_ac_ct_CC="$ac_prog"
1807     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1808     break 2
1809   fi
1810 done
1811 done
1812
1813 fi
1814 fi
1815 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1816 if test -n "$ac_ct_CC"; then
1817   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1818 echo "${ECHO_T}$ac_ct_CC" >&6
1819 else
1820   echo "$as_me:$LINENO: result: no" >&5
1821 echo "${ECHO_T}no" >&6
1822 fi
1823
1824   test -n "$ac_ct_CC" && break
1825 done
1826
1827   CC=$ac_ct_CC
1828 fi
1829
1830 fi
1831
1832
1833 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1834 See \`config.log' for more details." >&5
1835 echo "$as_me: error: no acceptable C compiler found in \$PATH
1836 See \`config.log' for more details." >&2;}
1837    { (exit 1); exit 1; }; }
1838
1839 # Provide some information about the compiler.
1840 echo "$as_me:$LINENO:" \
1841      "checking for C compiler version" >&5
1842 ac_compiler=`set X $ac_compile; echo $2`
1843 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1844   (eval $ac_compiler --version </dev/null >&5) 2>&5
1845   ac_status=$?
1846   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1847   (exit $ac_status); }
1848 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1849   (eval $ac_compiler -v </dev/null >&5) 2>&5
1850   ac_status=$?
1851   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1852   (exit $ac_status); }
1853 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1854   (eval $ac_compiler -V </dev/null >&5) 2>&5
1855   ac_status=$?
1856   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1857   (exit $ac_status); }
1858
1859 cat >conftest.$ac_ext <<_ACEOF
1860 /* confdefs.h.  */
1861 _ACEOF
1862 cat confdefs.h >>conftest.$ac_ext
1863 cat >>conftest.$ac_ext <<_ACEOF
1864 /* end confdefs.h.  */
1865
1866 int
1867 main ()
1868 {
1869
1870   ;
1871   return 0;
1872 }
1873 _ACEOF
1874 ac_clean_files_save=$ac_clean_files
1875 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1876 # Try to create an executable without -o first, disregard a.out.
1877 # It will help us diagnose broken compilers, and finding out an intuition
1878 # of exeext.
1879 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1880 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1881 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1882 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1883   (eval $ac_link_default) 2>&5
1884   ac_status=$?
1885   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1886   (exit $ac_status); }; then
1887   # Find the output, starting from the most likely.  This scheme is
1888 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1889 # resort.
1890
1891 # Be careful to initialize this variable, since it used to be cached.
1892 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1893 ac_cv_exeext=
1894 # b.out is created by i960 compilers.
1895 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1896 do
1897   test -f "$ac_file" || continue
1898   case $ac_file in
1899     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1900         ;;
1901     conftest.$ac_ext )
1902         # This is the source file.
1903         ;;
1904     [ab].out )
1905         # We found the default executable, but exeext='' is most
1906         # certainly right.
1907         break;;
1908     *.* )
1909         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1910         # FIXME: I believe we export ac_cv_exeext for Libtool,
1911         # but it would be cool to find out if it's true.  Does anybody
1912         # maintain Libtool? --akim.
1913         export ac_cv_exeext
1914         break;;
1915     * )
1916         break;;
1917   esac
1918 done
1919 else
1920   echo "$as_me: failed program was:" >&5
1921 sed 's/^/| /' conftest.$ac_ext >&5
1922
1923 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1924 See \`config.log' for more details." >&5
1925 echo "$as_me: error: C compiler cannot create executables
1926 See \`config.log' for more details." >&2;}
1927    { (exit 77); exit 77; }; }
1928 fi
1929
1930 ac_exeext=$ac_cv_exeext
1931 echo "$as_me:$LINENO: result: $ac_file" >&5
1932 echo "${ECHO_T}$ac_file" >&6
1933
1934 # Check the compiler produces executables we can run.  If not, either
1935 # the compiler is broken, or we cross compile.
1936 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1937 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1938 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1939 # If not cross compiling, check that we can run a simple program.
1940 if test "$cross_compiling" != yes; then
1941   if { ac_try='./$ac_file'
1942   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1943   (eval $ac_try) 2>&5
1944   ac_status=$?
1945   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1946   (exit $ac_status); }; }; then
1947     cross_compiling=no
1948   else
1949     if test "$cross_compiling" = maybe; then
1950         cross_compiling=yes
1951     else
1952         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1953 If you meant to cross compile, use \`--host'.
1954 See \`config.log' for more details." >&5
1955 echo "$as_me: error: cannot run C compiled programs.
1956 If you meant to cross compile, use \`--host'.
1957 See \`config.log' for more details." >&2;}
1958    { (exit 1); exit 1; }; }
1959     fi
1960   fi
1961 fi
1962 echo "$as_me:$LINENO: result: yes" >&5
1963 echo "${ECHO_T}yes" >&6
1964
1965 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1966 ac_clean_files=$ac_clean_files_save
1967 # Check the compiler produces executables we can run.  If not, either
1968 # the compiler is broken, or we cross compile.
1969 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1970 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1971 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1972 echo "${ECHO_T}$cross_compiling" >&6
1973
1974 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1975 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1976 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1977   (eval $ac_link) 2>&5
1978   ac_status=$?
1979   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1980   (exit $ac_status); }; then
1981   # If both `conftest.exe' and `conftest' are `present' (well, observable)
1982 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
1983 # work properly (i.e., refer to `conftest.exe'), while it won't with
1984 # `rm'.
1985 for ac_file in conftest.exe conftest conftest.*; do
1986   test -f "$ac_file" || continue
1987   case $ac_file in
1988     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1989     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1990           export ac_cv_exeext
1991           break;;
1992     * ) break;;
1993   esac
1994 done
1995 else
1996   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1997 See \`config.log' for more details." >&5
1998 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1999 See \`config.log' for more details." >&2;}
2000    { (exit 1); exit 1; }; }
2001 fi
2002
2003 rm -f conftest$ac_cv_exeext
2004 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2005 echo "${ECHO_T}$ac_cv_exeext" >&6
2006
2007 rm -f conftest.$ac_ext
2008 EXEEXT=$ac_cv_exeext
2009 ac_exeext=$EXEEXT
2010 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2011 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2012 if test "${ac_cv_objext+set}" = set; then
2013   echo $ECHO_N "(cached) $ECHO_C" >&6
2014 else
2015   cat >conftest.$ac_ext <<_ACEOF
2016 /* confdefs.h.  */
2017 _ACEOF
2018 cat confdefs.h >>conftest.$ac_ext
2019 cat >>conftest.$ac_ext <<_ACEOF
2020 /* end confdefs.h.  */
2021
2022 int
2023 main ()
2024 {
2025
2026   ;
2027   return 0;
2028 }
2029 _ACEOF
2030 rm -f conftest.o conftest.obj
2031 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2032   (eval $ac_compile) 2>&5
2033   ac_status=$?
2034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2035   (exit $ac_status); }; then
2036   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2037   case $ac_file in
2038     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2039     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2040        break;;
2041   esac
2042 done
2043 else
2044   echo "$as_me: failed program was:" >&5
2045 sed 's/^/| /' conftest.$ac_ext >&5
2046
2047 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2048 See \`config.log' for more details." >&5
2049 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2050 See \`config.log' for more details." >&2;}
2051    { (exit 1); exit 1; }; }
2052 fi
2053
2054 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2055 fi
2056 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2057 echo "${ECHO_T}$ac_cv_objext" >&6
2058 OBJEXT=$ac_cv_objext
2059 ac_objext=$OBJEXT
2060 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2061 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2062 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2063   echo $ECHO_N "(cached) $ECHO_C" >&6
2064 else
2065   cat >conftest.$ac_ext <<_ACEOF
2066 /* confdefs.h.  */
2067 _ACEOF
2068 cat confdefs.h >>conftest.$ac_ext
2069 cat >>conftest.$ac_ext <<_ACEOF
2070 /* end confdefs.h.  */
2071
2072 int
2073 main ()
2074 {
2075 #ifndef __GNUC__
2076        choke me
2077 #endif
2078
2079   ;
2080   return 0;
2081 }
2082 _ACEOF
2083 rm -f conftest.$ac_objext
2084 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2085   (eval $ac_compile) 2>conftest.er1
2086   ac_status=$?
2087   grep -v '^ *+' conftest.er1 >conftest.err
2088   rm -f conftest.er1
2089   cat conftest.err >&5
2090   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2091   (exit $ac_status); } &&
2092          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2093   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2094   (eval $ac_try) 2>&5
2095   ac_status=$?
2096   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2097   (exit $ac_status); }; } &&
2098          { ac_try='test -s conftest.$ac_objext'
2099   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2100   (eval $ac_try) 2>&5
2101   ac_status=$?
2102   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2103   (exit $ac_status); }; }; then
2104   ac_compiler_gnu=yes
2105 else
2106   echo "$as_me: failed program was:" >&5
2107 sed 's/^/| /' conftest.$ac_ext >&5
2108
2109 ac_compiler_gnu=no
2110 fi
2111 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2112 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2113
2114 fi
2115 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2116 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2117 GCC=`test $ac_compiler_gnu = yes && echo yes`
2118 ac_test_CFLAGS=${CFLAGS+set}
2119 ac_save_CFLAGS=$CFLAGS
2120 CFLAGS="-g"
2121 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2122 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2123 if test "${ac_cv_prog_cc_g+set}" = set; then
2124   echo $ECHO_N "(cached) $ECHO_C" >&6
2125 else
2126   cat >conftest.$ac_ext <<_ACEOF
2127 /* confdefs.h.  */
2128 _ACEOF
2129 cat confdefs.h >>conftest.$ac_ext
2130 cat >>conftest.$ac_ext <<_ACEOF
2131 /* end confdefs.h.  */
2132
2133 int
2134 main ()
2135 {
2136
2137   ;
2138   return 0;
2139 }
2140 _ACEOF
2141 rm -f conftest.$ac_objext
2142 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2143   (eval $ac_compile) 2>conftest.er1
2144   ac_status=$?
2145   grep -v '^ *+' conftest.er1 >conftest.err
2146   rm -f conftest.er1
2147   cat conftest.err >&5
2148   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2149   (exit $ac_status); } &&
2150          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2151   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2152   (eval $ac_try) 2>&5
2153   ac_status=$?
2154   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2155   (exit $ac_status); }; } &&
2156          { ac_try='test -s conftest.$ac_objext'
2157   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2158   (eval $ac_try) 2>&5
2159   ac_status=$?
2160   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2161   (exit $ac_status); }; }; then
2162   ac_cv_prog_cc_g=yes
2163 else
2164   echo "$as_me: failed program was:" >&5
2165 sed 's/^/| /' conftest.$ac_ext >&5
2166
2167 ac_cv_prog_cc_g=no
2168 fi
2169 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2170 fi
2171 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2172 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2173 if test "$ac_test_CFLAGS" = set; then
2174   CFLAGS=$ac_save_CFLAGS
2175 elif test $ac_cv_prog_cc_g = yes; then
2176   if test "$GCC" = yes; then
2177     CFLAGS="-g -O2"
2178   else
2179     CFLAGS="-g"
2180   fi
2181 else
2182   if test "$GCC" = yes; then
2183     CFLAGS="-O2"
2184   else
2185     CFLAGS=
2186   fi
2187 fi
2188 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2189 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2190 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2191   echo $ECHO_N "(cached) $ECHO_C" >&6
2192 else
2193   ac_cv_prog_cc_stdc=no
2194 ac_save_CC=$CC
2195 cat >conftest.$ac_ext <<_ACEOF
2196 /* confdefs.h.  */
2197 _ACEOF
2198 cat confdefs.h >>conftest.$ac_ext
2199 cat >>conftest.$ac_ext <<_ACEOF
2200 /* end confdefs.h.  */
2201 #include <stdarg.h>
2202 #include <stdio.h>
2203 #include <sys/types.h>
2204 #include <sys/stat.h>
2205 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2206 struct buf { int x; };
2207 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2208 static char *e (p, i)
2209      char **p;
2210      int i;
2211 {
2212   return p[i];
2213 }
2214 static char *f (char * (*g) (char **, int), char **p, ...)
2215 {
2216   char *s;
2217   va_list v;
2218   va_start (v,p);
2219   s = g (p, va_arg (v,int));
2220   va_end (v);
2221   return s;
2222 }
2223
2224 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2225    function prototypes and stuff, but not '\xHH' hex character constants.
2226    These don't provoke an error unfortunately, instead are silently treated
2227    as 'x'.  The following induces an error, until -std1 is added to get
2228    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2229    array size at least.  It's necessary to write '\x00'==0 to get something
2230    that's true only with -std1.  */
2231 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2232
2233 int test (int i, double x);
2234 struct s1 {int (*f) (int a);};
2235 struct s2 {int (*f) (double a);};
2236 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2237 int argc;
2238 char **argv;
2239 int
2240 main ()
2241 {
2242 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2243   ;
2244   return 0;
2245 }
2246 _ACEOF
2247 # Don't try gcc -ansi; that turns off useful extensions and
2248 # breaks some systems' header files.
2249 # AIX                   -qlanglvl=ansi
2250 # Ultrix and OSF/1      -std1
2251 # HP-UX 10.20 and later -Ae
2252 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2253 # SVR4                  -Xc -D__EXTENSIONS__
2254 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2255 do
2256   CC="$ac_save_CC $ac_arg"
2257   rm -f conftest.$ac_objext
2258 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2259   (eval $ac_compile) 2>conftest.er1
2260   ac_status=$?
2261   grep -v '^ *+' conftest.er1 >conftest.err
2262   rm -f conftest.er1
2263   cat conftest.err >&5
2264   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2265   (exit $ac_status); } &&
2266          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2267   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2268   (eval $ac_try) 2>&5
2269   ac_status=$?
2270   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2271   (exit $ac_status); }; } &&
2272          { ac_try='test -s conftest.$ac_objext'
2273   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2274   (eval $ac_try) 2>&5
2275   ac_status=$?
2276   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2277   (exit $ac_status); }; }; then
2278   ac_cv_prog_cc_stdc=$ac_arg
2279 break
2280 else
2281   echo "$as_me: failed program was:" >&5
2282 sed 's/^/| /' conftest.$ac_ext >&5
2283
2284 fi
2285 rm -f conftest.err conftest.$ac_objext
2286 done
2287 rm -f conftest.$ac_ext conftest.$ac_objext
2288 CC=$ac_save_CC
2289
2290 fi
2291
2292 case "x$ac_cv_prog_cc_stdc" in
2293   x|xno)
2294     echo "$as_me:$LINENO: result: none needed" >&5
2295 echo "${ECHO_T}none needed" >&6 ;;
2296   *)
2297     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2298 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2299     CC="$CC $ac_cv_prog_cc_stdc" ;;
2300 esac
2301
2302 # Some people use a C++ compiler to compile C.  Since we use `exit',
2303 # in C++ we need to declare it.  In case someone uses the same compiler
2304 # for both compiling C and C++ we need to have the C++ compiler decide
2305 # the declaration of exit, since it's the most demanding environment.
2306 cat >conftest.$ac_ext <<_ACEOF
2307 #ifndef __cplusplus
2308   choke me
2309 #endif
2310 _ACEOF
2311 rm -f conftest.$ac_objext
2312 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2313   (eval $ac_compile) 2>conftest.er1
2314   ac_status=$?
2315   grep -v '^ *+' conftest.er1 >conftest.err
2316   rm -f conftest.er1
2317   cat conftest.err >&5
2318   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2319   (exit $ac_status); } &&
2320          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2321   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2322   (eval $ac_try) 2>&5
2323   ac_status=$?
2324   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2325   (exit $ac_status); }; } &&
2326          { ac_try='test -s conftest.$ac_objext'
2327   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2328   (eval $ac_try) 2>&5
2329   ac_status=$?
2330   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2331   (exit $ac_status); }; }; then
2332   for ac_declaration in \
2333    '' \
2334    'extern "C" void std::exit (int) throw (); using std::exit;' \
2335    'extern "C" void std::exit (int); using std::exit;' \
2336    'extern "C" void exit (int) throw ();' \
2337    'extern "C" void exit (int);' \
2338    'void exit (int);'
2339 do
2340   cat >conftest.$ac_ext <<_ACEOF
2341 /* confdefs.h.  */
2342 _ACEOF
2343 cat confdefs.h >>conftest.$ac_ext
2344 cat >>conftest.$ac_ext <<_ACEOF
2345 /* end confdefs.h.  */
2346 $ac_declaration
2347 #include <stdlib.h>
2348 int
2349 main ()
2350 {
2351 exit (42);
2352   ;
2353   return 0;
2354 }
2355 _ACEOF
2356 rm -f conftest.$ac_objext
2357 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2358   (eval $ac_compile) 2>conftest.er1
2359   ac_status=$?
2360   grep -v '^ *+' conftest.er1 >conftest.err
2361   rm -f conftest.er1
2362   cat conftest.err >&5
2363   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2364   (exit $ac_status); } &&
2365          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2366   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2367   (eval $ac_try) 2>&5
2368   ac_status=$?
2369   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2370   (exit $ac_status); }; } &&
2371          { ac_try='test -s conftest.$ac_objext'
2372   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2373   (eval $ac_try) 2>&5
2374   ac_status=$?
2375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2376   (exit $ac_status); }; }; then
2377   :
2378 else
2379   echo "$as_me: failed program was:" >&5
2380 sed 's/^/| /' conftest.$ac_ext >&5
2381
2382 continue
2383 fi
2384 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2385   cat >conftest.$ac_ext <<_ACEOF
2386 /* confdefs.h.  */
2387 _ACEOF
2388 cat confdefs.h >>conftest.$ac_ext
2389 cat >>conftest.$ac_ext <<_ACEOF
2390 /* end confdefs.h.  */
2391 $ac_declaration
2392 int
2393 main ()
2394 {
2395 exit (42);
2396   ;
2397   return 0;
2398 }
2399 _ACEOF
2400 rm -f conftest.$ac_objext
2401 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2402   (eval $ac_compile) 2>conftest.er1
2403   ac_status=$?
2404   grep -v '^ *+' conftest.er1 >conftest.err
2405   rm -f conftest.er1
2406   cat conftest.err >&5
2407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2408   (exit $ac_status); } &&
2409          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2410   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2411   (eval $ac_try) 2>&5
2412   ac_status=$?
2413   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2414   (exit $ac_status); }; } &&
2415          { ac_try='test -s conftest.$ac_objext'
2416   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2417   (eval $ac_try) 2>&5
2418   ac_status=$?
2419   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2420   (exit $ac_status); }; }; then
2421   break
2422 else
2423   echo "$as_me: failed program was:" >&5
2424 sed 's/^/| /' conftest.$ac_ext >&5
2425
2426 fi
2427 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2428 done
2429 rm -f conftest*
2430 if test -n "$ac_declaration"; then
2431   echo '#ifdef __cplusplus' >>confdefs.h
2432   echo $ac_declaration      >>confdefs.h
2433   echo '#endif'             >>confdefs.h
2434 fi
2435
2436 else
2437   echo "$as_me: failed program was:" >&5
2438 sed 's/^/| /' conftest.$ac_ext >&5
2439
2440 fi
2441 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2442 ac_ext=c
2443 ac_cpp='$CPP $CPPFLAGS'
2444 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2445 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2446 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2447
2448 ac_ext=cc
2449 ac_cpp='$CXXCPP $CPPFLAGS'
2450 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2451 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2452 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2453 if test -n "$ac_tool_prefix"; then
2454   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2455   do
2456     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2457 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2458 echo "$as_me:$LINENO: checking for $ac_word" >&5
2459 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2460 if test "${ac_cv_prog_CXX+set}" = set; then
2461   echo $ECHO_N "(cached) $ECHO_C" >&6
2462 else
2463   if test -n "$CXX"; then
2464   ac_cv_prog_CXX="$CXX" # Let the user override the test.
2465 else
2466 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2467 for as_dir in $PATH
2468 do
2469   IFS=$as_save_IFS
2470   test -z "$as_dir" && as_dir=.
2471   for ac_exec_ext in '' $ac_executable_extensions; do
2472   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2473     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2474     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2475     break 2
2476   fi
2477 done
2478 done
2479
2480 fi
2481 fi
2482 CXX=$ac_cv_prog_CXX
2483 if test -n "$CXX"; then
2484   echo "$as_me:$LINENO: result: $CXX" >&5
2485 echo "${ECHO_T}$CXX" >&6
2486 else
2487   echo "$as_me:$LINENO: result: no" >&5
2488 echo "${ECHO_T}no" >&6
2489 fi
2490
2491     test -n "$CXX" && break
2492   done
2493 fi
2494 if test -z "$CXX"; then
2495   ac_ct_CXX=$CXX
2496   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2497 do
2498   # Extract the first word of "$ac_prog", so it can be a program name with args.
2499 set dummy $ac_prog; ac_word=$2
2500 echo "$as_me:$LINENO: checking for $ac_word" >&5
2501 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2502 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2503   echo $ECHO_N "(cached) $ECHO_C" >&6
2504 else
2505   if test -n "$ac_ct_CXX"; then
2506   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2507 else
2508 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2509 for as_dir in $PATH
2510 do
2511   IFS=$as_save_IFS
2512   test -z "$as_dir" && as_dir=.
2513   for ac_exec_ext in '' $ac_executable_extensions; do
2514   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2515     ac_cv_prog_ac_ct_CXX="$ac_prog"
2516     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2517     break 2
2518   fi
2519 done
2520 done
2521
2522 fi
2523 fi
2524 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2525 if test -n "$ac_ct_CXX"; then
2526   echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2527 echo "${ECHO_T}$ac_ct_CXX" >&6
2528 else
2529   echo "$as_me:$LINENO: result: no" >&5
2530 echo "${ECHO_T}no" >&6
2531 fi
2532
2533   test -n "$ac_ct_CXX" && break
2534 done
2535 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2536
2537   CXX=$ac_ct_CXX
2538 fi
2539
2540
2541 # Provide some information about the compiler.
2542 echo "$as_me:$LINENO:" \
2543      "checking for C++ compiler version" >&5
2544 ac_compiler=`set X $ac_compile; echo $2`
2545 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2546   (eval $ac_compiler --version </dev/null >&5) 2>&5
2547   ac_status=$?
2548   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2549   (exit $ac_status); }
2550 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2551   (eval $ac_compiler -v </dev/null >&5) 2>&5
2552   ac_status=$?
2553   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2554   (exit $ac_status); }
2555 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2556   (eval $ac_compiler -V </dev/null >&5) 2>&5
2557   ac_status=$?
2558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2559   (exit $ac_status); }
2560
2561 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2562 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2563 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2564   echo $ECHO_N "(cached) $ECHO_C" >&6
2565 else
2566   cat >conftest.$ac_ext <<_ACEOF
2567 /* confdefs.h.  */
2568 _ACEOF
2569 cat confdefs.h >>conftest.$ac_ext
2570 cat >>conftest.$ac_ext <<_ACEOF
2571 /* end confdefs.h.  */
2572
2573 int
2574 main ()
2575 {
2576 #ifndef __GNUC__
2577        choke me
2578 #endif
2579
2580   ;
2581   return 0;
2582 }
2583 _ACEOF
2584 rm -f conftest.$ac_objext
2585 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2586   (eval $ac_compile) 2>conftest.er1
2587   ac_status=$?
2588   grep -v '^ *+' conftest.er1 >conftest.err
2589   rm -f conftest.er1
2590   cat conftest.err >&5
2591   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2592   (exit $ac_status); } &&
2593          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
2594   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2595   (eval $ac_try) 2>&5
2596   ac_status=$?
2597   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2598   (exit $ac_status); }; } &&
2599          { ac_try='test -s conftest.$ac_objext'
2600   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2601   (eval $ac_try) 2>&5
2602   ac_status=$?
2603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2604   (exit $ac_status); }; }; then
2605   ac_compiler_gnu=yes
2606 else
2607   echo "$as_me: failed program was:" >&5
2608 sed 's/^/| /' conftest.$ac_ext >&5
2609
2610 ac_compiler_gnu=no
2611 fi
2612 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2613 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2614
2615 fi
2616 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2617 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2618 GXX=`test $ac_compiler_gnu = yes && echo yes`
2619 ac_test_CXXFLAGS=${CXXFLAGS+set}
2620 ac_save_CXXFLAGS=$CXXFLAGS
2621 CXXFLAGS="-g"
2622 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2623 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2624 if test "${ac_cv_prog_cxx_g+set}" = set; then
2625   echo $ECHO_N "(cached) $ECHO_C" >&6
2626 else
2627   cat >conftest.$ac_ext <<_ACEOF
2628 /* confdefs.h.  */
2629 _ACEOF
2630 cat confdefs.h >>conftest.$ac_ext
2631 cat >>conftest.$ac_ext <<_ACEOF
2632 /* end confdefs.h.  */
2633
2634 int
2635 main ()
2636 {
2637
2638   ;
2639   return 0;
2640 }
2641 _ACEOF
2642 rm -f conftest.$ac_objext
2643 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2644   (eval $ac_compile) 2>conftest.er1
2645   ac_status=$?
2646   grep -v '^ *+' conftest.er1 >conftest.err
2647   rm -f conftest.er1
2648   cat conftest.err >&5
2649   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2650   (exit $ac_status); } &&
2651          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
2652   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2653   (eval $ac_try) 2>&5
2654   ac_status=$?
2655   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2656   (exit $ac_status); }; } &&
2657          { ac_try='test -s conftest.$ac_objext'
2658   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2659   (eval $ac_try) 2>&5
2660   ac_status=$?
2661   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2662   (exit $ac_status); }; }; then
2663   ac_cv_prog_cxx_g=yes
2664 else
2665   echo "$as_me: failed program was:" >&5
2666 sed 's/^/| /' conftest.$ac_ext >&5
2667
2668 ac_cv_prog_cxx_g=no
2669 fi
2670 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2671 fi
2672 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2673 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2674 if test "$ac_test_CXXFLAGS" = set; then
2675   CXXFLAGS=$ac_save_CXXFLAGS
2676 elif test $ac_cv_prog_cxx_g = yes; then
2677   if test "$GXX" = yes; then
2678     CXXFLAGS="-g -O2"
2679   else
2680     CXXFLAGS="-g"
2681   fi
2682 else
2683   if test "$GXX" = yes; then
2684     CXXFLAGS="-O2"
2685   else
2686     CXXFLAGS=
2687   fi
2688 fi
2689 for ac_declaration in \
2690    '' \
2691    'extern "C" void std::exit (int) throw (); using std::exit;' \
2692    'extern "C" void std::exit (int); using std::exit;' \
2693    'extern "C" void exit (int) throw ();' \
2694    'extern "C" void exit (int);' \
2695    'void exit (int);'
2696 do
2697   cat >conftest.$ac_ext <<_ACEOF
2698 /* confdefs.h.  */
2699 _ACEOF
2700 cat confdefs.h >>conftest.$ac_ext
2701 cat >>conftest.$ac_ext <<_ACEOF
2702 /* end confdefs.h.  */
2703 $ac_declaration
2704 #include <stdlib.h>
2705 int
2706 main ()
2707 {
2708 exit (42);
2709   ;
2710   return 0;
2711 }
2712 _ACEOF
2713 rm -f conftest.$ac_objext
2714 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2715   (eval $ac_compile) 2>conftest.er1
2716   ac_status=$?
2717   grep -v '^ *+' conftest.er1 >conftest.err
2718   rm -f conftest.er1
2719   cat conftest.err >&5
2720   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2721   (exit $ac_status); } &&
2722          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
2723   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2724   (eval $ac_try) 2>&5
2725   ac_status=$?
2726   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2727   (exit $ac_status); }; } &&
2728          { ac_try='test -s conftest.$ac_objext'
2729   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2730   (eval $ac_try) 2>&5
2731   ac_status=$?
2732   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2733   (exit $ac_status); }; }; then
2734   :
2735 else
2736   echo "$as_me: failed program was:" >&5
2737 sed 's/^/| /' conftest.$ac_ext >&5
2738
2739 continue
2740 fi
2741 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2742   cat >conftest.$ac_ext <<_ACEOF
2743 /* confdefs.h.  */
2744 _ACEOF
2745 cat confdefs.h >>conftest.$ac_ext
2746 cat >>conftest.$ac_ext <<_ACEOF
2747 /* end confdefs.h.  */
2748 $ac_declaration
2749 int
2750 main ()
2751 {
2752 exit (42);
2753   ;
2754   return 0;
2755 }
2756 _ACEOF
2757 rm -f conftest.$ac_objext
2758 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2759   (eval $ac_compile) 2>conftest.er1
2760   ac_status=$?
2761   grep -v '^ *+' conftest.er1 >conftest.err
2762   rm -f conftest.er1
2763   cat conftest.err >&5
2764   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2765   (exit $ac_status); } &&
2766          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
2767   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2768   (eval $ac_try) 2>&5
2769   ac_status=$?
2770   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2771   (exit $ac_status); }; } &&
2772          { ac_try='test -s conftest.$ac_objext'
2773   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2774   (eval $ac_try) 2>&5
2775   ac_status=$?
2776   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2777   (exit $ac_status); }; }; then
2778   break
2779 else
2780   echo "$as_me: failed program was:" >&5
2781 sed 's/^/| /' conftest.$ac_ext >&5
2782
2783 fi
2784 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2785 done
2786 rm -f conftest*
2787 if test -n "$ac_declaration"; then
2788   echo '#ifdef __cplusplus' >>confdefs.h
2789   echo $ac_declaration      >>confdefs.h
2790   echo '#endif'             >>confdefs.h
2791 fi
2792
2793 ac_ext=c
2794 ac_cpp='$CPP $CPPFLAGS'
2795 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2796 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2797 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2798
2799 if test -n "$ac_tool_prefix"; then
2800   # Extract the first word of "${ac_tool_prefix}cpp", so it can be a program name with args.
2801 set dummy ${ac_tool_prefix}cpp; ac_word=$2
2802 echo "$as_me:$LINENO: checking for $ac_word" >&5
2803 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2804 if test "${ac_cv_prog_CPPBIN+set}" = set; then
2805   echo $ECHO_N "(cached) $ECHO_C" >&6
2806 else
2807   if test -n "$CPPBIN"; then
2808   ac_cv_prog_CPPBIN="$CPPBIN" # Let the user override the test.
2809 else
2810 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2811 for as_dir in $PATH
2812 do
2813   IFS=$as_save_IFS
2814   test -z "$as_dir" && as_dir=.
2815   for ac_exec_ext in '' $ac_executable_extensions; do
2816   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2817     ac_cv_prog_CPPBIN="${ac_tool_prefix}cpp"
2818     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2819     break 2
2820   fi
2821 done
2822 done
2823
2824 fi
2825 fi
2826 CPPBIN=$ac_cv_prog_CPPBIN
2827 if test -n "$CPPBIN"; then
2828   echo "$as_me:$LINENO: result: $CPPBIN" >&5
2829 echo "${ECHO_T}$CPPBIN" >&6
2830 else
2831   echo "$as_me:$LINENO: result: no" >&5
2832 echo "${ECHO_T}no" >&6
2833 fi
2834
2835 fi
2836 if test -z "$ac_cv_prog_CPPBIN"; then
2837   ac_ct_CPPBIN=$CPPBIN
2838   # Extract the first word of "cpp", so it can be a program name with args.
2839 set dummy cpp; ac_word=$2
2840 echo "$as_me:$LINENO: checking for $ac_word" >&5
2841 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2842 if test "${ac_cv_prog_ac_ct_CPPBIN+set}" = set; then
2843   echo $ECHO_N "(cached) $ECHO_C" >&6
2844 else
2845   if test -n "$ac_ct_CPPBIN"; then
2846   ac_cv_prog_ac_ct_CPPBIN="$ac_ct_CPPBIN" # Let the user override the test.
2847 else
2848 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2849 for as_dir in $PATH
2850 do
2851   IFS=$as_save_IFS
2852   test -z "$as_dir" && as_dir=.
2853   for ac_exec_ext in '' $ac_executable_extensions; do
2854   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2855     ac_cv_prog_ac_ct_CPPBIN="cpp"
2856     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2857     break 2
2858   fi
2859 done
2860 done
2861
2862   test -z "$ac_cv_prog_ac_ct_CPPBIN" && ac_cv_prog_ac_ct_CPPBIN="cpp"
2863 fi
2864 fi
2865 ac_ct_CPPBIN=$ac_cv_prog_ac_ct_CPPBIN
2866 if test -n "$ac_ct_CPPBIN"; then
2867   echo "$as_me:$LINENO: result: $ac_ct_CPPBIN" >&5
2868 echo "${ECHO_T}$ac_ct_CPPBIN" >&6
2869 else
2870   echo "$as_me:$LINENO: result: no" >&5
2871 echo "${ECHO_T}no" >&6
2872 fi
2873
2874   CPPBIN=$ac_ct_CPPBIN
2875 else
2876   CPPBIN="$ac_cv_prog_CPPBIN"
2877 fi
2878
2879
2880 echo "$as_me:$LINENO: checking for the directory containing the Wine tools" >&5
2881 echo $ECHO_N "checking for the directory containing the Wine tools... $ECHO_C" >&6
2882 if test "${wine_cv_toolsdir+set}" = set; then
2883   echo $ECHO_N "(cached) $ECHO_C" >&6
2884 else
2885   if test -z "$with_wine_tools"; then
2886      if test "$cross_compiling" = "yes"; then
2887        { { echo "$as_me:$LINENO: error: you must use the --with-wine-tools option when cross-compiling." >&5
2888 echo "$as_me: error: you must use the --with-wine-tools option when cross-compiling." >&2;}
2889    { (exit 1); exit 1; }; }
2890      else
2891        wine_cv_toolsdir="\$(TOPOBJDIR)"
2892      fi
2893    elif test -d "$with_wine_tools/tools/winebuild"; then
2894      case $with_wine_tools in
2895        /*) wine_cv_toolsdir="$with_wine_tools" ;;
2896        *)  wine_cv_toolsdir="\$(TOPOBJDIR)/$with_wine_tools" ;;
2897      esac
2898    else
2899      { { echo "$as_me:$LINENO: error: could not find Wine tools in $with_wine_tools." >&5
2900 echo "$as_me: error: could not find Wine tools in $with_wine_tools." >&2;}
2901    { (exit 1); exit 1; }; }
2902    fi
2903 fi
2904 echo "$as_me:$LINENO: result: $wine_cv_toolsdir" >&5
2905 echo "${ECHO_T}$wine_cv_toolsdir" >&6
2906 TOOLSDIR=$wine_cv_toolsdir
2907
2908
2909
2910 ac_ext=c
2911 ac_cpp='$CPP $CPPFLAGS'
2912 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2913 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2914 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2915 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2916 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2917 # On Suns, sometimes $CPP names a directory.
2918 if test -n "$CPP" && test -d "$CPP"; then
2919   CPP=
2920 fi
2921 if test -z "$CPP"; then
2922   if test "${ac_cv_prog_CPP+set}" = set; then
2923   echo $ECHO_N "(cached) $ECHO_C" >&6
2924 else
2925       # Double quotes because CPP needs to be expanded
2926     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2927     do
2928       ac_preproc_ok=false
2929 for ac_c_preproc_warn_flag in '' yes
2930 do
2931   # Use a header file that comes with gcc, so configuring glibc
2932   # with a fresh cross-compiler works.
2933   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2934   # <limits.h> exists even on freestanding compilers.
2935   # On the NeXT, cc -E runs the code through the compiler's parser,
2936   # not just through cpp. "Syntax error" is here to catch this case.
2937   cat >conftest.$ac_ext <<_ACEOF
2938 /* confdefs.h.  */
2939 _ACEOF
2940 cat confdefs.h >>conftest.$ac_ext
2941 cat >>conftest.$ac_ext <<_ACEOF
2942 /* end confdefs.h.  */
2943 #ifdef __STDC__
2944 # include <limits.h>
2945 #else
2946 # include <assert.h>
2947 #endif
2948                      Syntax error
2949 _ACEOF
2950 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2951   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2952   ac_status=$?
2953   grep -v '^ *+' conftest.er1 >conftest.err
2954   rm -f conftest.er1
2955   cat conftest.err >&5
2956   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2957   (exit $ac_status); } >/dev/null; then
2958   if test -s conftest.err; then
2959     ac_cpp_err=$ac_c_preproc_warn_flag
2960     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2961   else
2962     ac_cpp_err=
2963   fi
2964 else
2965   ac_cpp_err=yes
2966 fi
2967 if test -z "$ac_cpp_err"; then
2968   :
2969 else
2970   echo "$as_me: failed program was:" >&5
2971 sed 's/^/| /' conftest.$ac_ext >&5
2972
2973   # Broken: fails on valid input.
2974 continue
2975 fi
2976 rm -f conftest.err conftest.$ac_ext
2977
2978   # OK, works on sane cases.  Now check whether non-existent headers
2979   # can be detected and how.
2980   cat >conftest.$ac_ext <<_ACEOF
2981 /* confdefs.h.  */
2982 _ACEOF
2983 cat confdefs.h >>conftest.$ac_ext
2984 cat >>conftest.$ac_ext <<_ACEOF
2985 /* end confdefs.h.  */
2986 #include <ac_nonexistent.h>
2987 _ACEOF
2988 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2989   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2990   ac_status=$?
2991   grep -v '^ *+' conftest.er1 >conftest.err
2992   rm -f conftest.er1
2993   cat conftest.err >&5
2994   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2995   (exit $ac_status); } >/dev/null; then
2996   if test -s conftest.err; then
2997     ac_cpp_err=$ac_c_preproc_warn_flag
2998     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2999   else
3000     ac_cpp_err=
3001   fi
3002 else
3003   ac_cpp_err=yes
3004 fi
3005 if test -z "$ac_cpp_err"; then
3006   # Broken: success on invalid input.
3007 continue
3008 else
3009   echo "$as_me: failed program was:" >&5
3010 sed 's/^/| /' conftest.$ac_ext >&5
3011
3012   # Passes both tests.
3013 ac_preproc_ok=:
3014 break
3015 fi
3016 rm -f conftest.err conftest.$ac_ext
3017
3018 done
3019 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3020 rm -f conftest.err conftest.$ac_ext
3021 if $ac_preproc_ok; then
3022   break
3023 fi
3024
3025     done
3026     ac_cv_prog_CPP=$CPP
3027
3028 fi
3029   CPP=$ac_cv_prog_CPP
3030 else
3031   ac_cv_prog_CPP=$CPP
3032 fi
3033 echo "$as_me:$LINENO: result: $CPP" >&5
3034 echo "${ECHO_T}$CPP" >&6
3035 ac_preproc_ok=false
3036 for ac_c_preproc_warn_flag in '' yes
3037 do
3038   # Use a header file that comes with gcc, so configuring glibc
3039   # with a fresh cross-compiler works.
3040   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3041   # <limits.h> exists even on freestanding compilers.
3042   # On the NeXT, cc -E runs the code through the compiler's parser,
3043   # not just through cpp. "Syntax error" is here to catch this case.
3044   cat >conftest.$ac_ext <<_ACEOF
3045 /* confdefs.h.  */
3046 _ACEOF
3047 cat confdefs.h >>conftest.$ac_ext
3048 cat >>conftest.$ac_ext <<_ACEOF
3049 /* end confdefs.h.  */
3050 #ifdef __STDC__
3051 # include <limits.h>
3052 #else
3053 # include <assert.h>
3054 #endif
3055                      Syntax error
3056 _ACEOF
3057 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3058   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3059   ac_status=$?
3060   grep -v '^ *+' conftest.er1 >conftest.err
3061   rm -f conftest.er1
3062   cat conftest.err >&5
3063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3064   (exit $ac_status); } >/dev/null; then
3065   if test -s conftest.err; then
3066     ac_cpp_err=$ac_c_preproc_warn_flag
3067     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3068   else
3069     ac_cpp_err=
3070   fi
3071 else
3072   ac_cpp_err=yes
3073 fi
3074 if test -z "$ac_cpp_err"; then
3075   :
3076 else
3077   echo "$as_me: failed program was:" >&5
3078 sed 's/^/| /' conftest.$ac_ext >&5
3079
3080   # Broken: fails on valid input.
3081 continue
3082 fi
3083 rm -f conftest.err conftest.$ac_ext
3084
3085   # OK, works on sane cases.  Now check whether non-existent headers
3086   # can be detected and how.
3087   cat >conftest.$ac_ext <<_ACEOF
3088 /* confdefs.h.  */
3089 _ACEOF
3090 cat confdefs.h >>conftest.$ac_ext
3091 cat >>conftest.$ac_ext <<_ACEOF
3092 /* end confdefs.h.  */
3093 #include <ac_nonexistent.h>
3094 _ACEOF
3095 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3096   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3097   ac_status=$?
3098   grep -v '^ *+' conftest.er1 >conftest.err
3099   rm -f conftest.er1
3100   cat conftest.err >&5
3101   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3102   (exit $ac_status); } >/dev/null; then
3103   if test -s conftest.err; then
3104     ac_cpp_err=$ac_c_preproc_warn_flag
3105     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3106   else
3107     ac_cpp_err=
3108   fi
3109 else
3110   ac_cpp_err=yes
3111 fi
3112 if test -z "$ac_cpp_err"; then
3113   # Broken: success on invalid input.
3114 continue
3115 else
3116   echo "$as_me: failed program was:" >&5
3117 sed 's/^/| /' conftest.$ac_ext >&5
3118
3119   # Passes both tests.
3120 ac_preproc_ok=:
3121 break
3122 fi
3123 rm -f conftest.err conftest.$ac_ext
3124
3125 done
3126 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3127 rm -f conftest.err conftest.$ac_ext
3128 if $ac_preproc_ok; then
3129   :
3130 else
3131   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3132 See \`config.log' for more details." >&5
3133 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3134 See \`config.log' for more details." >&2;}
3135    { (exit 1); exit 1; }; }
3136 fi
3137
3138 ac_ext=c
3139 ac_cpp='$CPP $CPPFLAGS'
3140 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3141 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3142 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3143
3144
3145
3146 if test "x$ac_path_x_has_been_run" != xyes; then
3147   echo "$as_me:$LINENO: checking for X" >&5
3148 echo $ECHO_N "checking for X... $ECHO_C" >&6
3149
3150 ac_path_x_has_been_run=yes
3151
3152 # Check whether --with-x or --without-x was given.
3153 if test "${with_x+set}" = set; then
3154   withval="$with_x"
3155
3156 fi;
3157 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
3158 if test "x$with_x" = xno; then
3159   # The user explicitly disabled X.
3160   have_x=disabled
3161 else
3162   if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
3163     # Both variables are already set.
3164     have_x=yes
3165   else
3166     if test "${ac_cv_have_x+set}" = set; then
3167   echo $ECHO_N "(cached) $ECHO_C" >&6
3168 else
3169   # One or both of the vars are not set, and there is no cached value.
3170 ac_x_includes=no ac_x_libraries=no
3171 rm -fr conftest.dir
3172 if mkdir conftest.dir; then
3173   cd conftest.dir
3174   # Make sure to not put "make" in the Imakefile rules, since we grep it out.
3175   cat >Imakefile <<'_ACEOF'
3176 acfindx:
3177         @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
3178 _ACEOF
3179   if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
3180     # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3181     eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
3182     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
3183     for ac_extension in a so sl; do
3184       if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
3185          test -f $ac_im_libdir/libX11.$ac_extension; then
3186         ac_im_usrlibdir=$ac_im_libdir; break
3187       fi
3188     done
3189     # Screen out bogus values from the imake configuration.  They are
3190     # bogus both because they are the default anyway, and because
3191     # using them would break gcc on systems where it needs fixed includes.
3192     case $ac_im_incroot in
3193         /usr/include) ;;
3194         *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
3195     esac
3196     case $ac_im_usrlibdir in
3197         /usr/lib | /lib) ;;
3198         *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
3199     esac
3200   fi
3201   cd ..
3202   rm -fr conftest.dir
3203 fi
3204
3205 # Standard set of common directories for X headers.
3206 # Check X11 before X11Rn because it is often a symlink to the current release.
3207 ac_x_header_dirs='
3208 /usr/X11/include
3209 /usr/X11R6/include
3210 /usr/X11R5/include
3211 /usr/X11R4/include
3212
3213 /usr/include/X11
3214 /usr/include/X11R6
3215 /usr/include/X11R5
3216 /usr/include/X11R4
3217
3218 /usr/local/X11/include
3219 /usr/local/X11R6/include
3220 /usr/local/X11R5/include
3221 /usr/local/X11R4/include
3222
3223 /usr/local/include/X11
3224 /usr/local/include/X11R6
3225 /usr/local/include/X11R5
3226 /usr/local/include/X11R4
3227
3228 /usr/X386/include
3229 /usr/x386/include
3230 /usr/XFree86/include/X11
3231
3232 /usr/include
3233 /usr/local/include
3234 /usr/unsupported/include
3235 /usr/athena/include
3236 /usr/local/x11r5/include
3237 /usr/lpp/Xamples/include
3238
3239 /usr/openwin/include
3240 /usr/openwin/share/include'
3241
3242 if test "$ac_x_includes" = no; then
3243   # Guess where to find include files, by looking for a specified header file.
3244   # First, try using that file with no special directory specified.
3245   cat >conftest.$ac_ext <<_ACEOF
3246 /* confdefs.h.  */
3247 _ACEOF
3248 cat confdefs.h >>conftest.$ac_ext
3249 cat >>conftest.$ac_ext <<_ACEOF
3250 /* end confdefs.h.  */
3251 #include <X11/Intrinsic.h>
3252 _ACEOF
3253 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3254   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3255   ac_status=$?
3256   grep -v '^ *+' conftest.er1 >conftest.err
3257   rm -f conftest.er1
3258   cat conftest.err >&5
3259   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3260   (exit $ac_status); } >/dev/null; then
3261   if test -s conftest.err; then
3262     ac_cpp_err=$ac_c_preproc_warn_flag
3263     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3264   else
3265     ac_cpp_err=
3266   fi
3267 else
3268   ac_cpp_err=yes
3269 fi
3270 if test -z "$ac_cpp_err"; then
3271   # We can compile using X headers with no special include directory.
3272 ac_x_includes=
3273 else
3274   echo "$as_me: failed program was:" >&5
3275 sed 's/^/| /' conftest.$ac_ext >&5
3276
3277   for ac_dir in $ac_x_header_dirs; do
3278   if test -r "$ac_dir/X11/Intrinsic.h"; then
3279     ac_x_includes=$ac_dir
3280     break
3281   fi
3282 done
3283 fi
3284 rm -f conftest.err conftest.$ac_ext
3285 fi # $ac_x_includes = no
3286
3287 if test "$ac_x_libraries" = no; then
3288   # Check for the libraries.
3289   # See if we find them without any special options.
3290   # Don't add to $LIBS permanently.
3291   ac_save_LIBS=$LIBS
3292   LIBS="-lXt $LIBS"
3293   cat >conftest.$ac_ext <<_ACEOF
3294 /* confdefs.h.  */
3295 _ACEOF
3296 cat confdefs.h >>conftest.$ac_ext
3297 cat >>conftest.$ac_ext <<_ACEOF
3298 /* end confdefs.h.  */
3299 #include <X11/Intrinsic.h>
3300 int
3301 main ()
3302 {
3303 XtMalloc (0)
3304   ;
3305   return 0;
3306 }
3307 _ACEOF
3308 rm -f conftest.$ac_objext conftest$ac_exeext
3309 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3310   (eval $ac_link) 2>conftest.er1
3311   ac_status=$?
3312   grep -v '^ *+' conftest.er1 >conftest.err
3313   rm -f conftest.er1
3314   cat conftest.err >&5
3315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3316   (exit $ac_status); } &&
3317          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3318   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3319   (eval $ac_try) 2>&5
3320   ac_status=$?
3321   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3322   (exit $ac_status); }; } &&
3323          { ac_try='test -s conftest$ac_exeext'
3324   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3325   (eval $ac_try) 2>&5
3326   ac_status=$?
3327   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3328   (exit $ac_status); }; }; then
3329   LIBS=$ac_save_LIBS
3330 # We can link X programs with no special library path.
3331 ac_x_libraries=
3332 else
3333   echo "$as_me: failed program was:" >&5
3334 sed 's/^/| /' conftest.$ac_ext >&5
3335
3336 LIBS=$ac_save_LIBS
3337 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
3338 do
3339   # Don't even attempt the hair of trying to link an X program!
3340   for ac_extension in a so sl; do
3341     if test -r $ac_dir/libXt.$ac_extension; then
3342       ac_x_libraries=$ac_dir
3343       break 2
3344     fi
3345   done
3346 done
3347 fi
3348 rm -f conftest.err conftest.$ac_objext \
3349       conftest$ac_exeext conftest.$ac_ext
3350 fi # $ac_x_libraries = no
3351
3352 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
3353   # Didn't find X anywhere.  Cache the known absence of X.
3354   ac_cv_have_x="have_x=no"
3355 else
3356   # Record where we found X for the cache.
3357   ac_cv_have_x="have_x=yes \
3358                 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
3359 fi
3360 fi
3361
3362   fi
3363   eval "$ac_cv_have_x"
3364 fi # $with_x != no
3365
3366 if test "$have_x" != yes; then
3367   echo "$as_me:$LINENO: result: $have_x" >&5
3368 echo "${ECHO_T}$have_x" >&6
3369   no_x=yes
3370 else
3371   # If each of the values was on the command line, it overrides each guess.
3372   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
3373   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
3374   # Update the cache value to reflect the command line values.
3375   ac_cv_have_x="have_x=yes \
3376                 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
3377   # It might be that x_includes is empty (headers are found in the
3378   # standard search path. Then output the corresponding message
3379   ac_out_x_includes=$x_includes
3380   test "x$x_includes" = x && ac_out_x_includes="in standard search path"
3381   echo "$as_me:$LINENO: result: libraries $x_libraries, headers $ac_out_x_includes" >&5
3382 echo "${ECHO_T}libraries $x_libraries, headers $ac_out_x_includes" >&6
3383 fi
3384
3385 fi
3386 if test "$no_x" = yes; then
3387   # Not all programs may use this symbol, but it does not hurt to define it.
3388
3389 cat >>confdefs.h <<\_ACEOF
3390 #define X_DISPLAY_MISSING 1
3391 _ACEOF
3392
3393   X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
3394 else
3395   if test -n "$x_includes"; then
3396     X_CFLAGS="$X_CFLAGS -I$x_includes"
3397   fi
3398
3399   # It would also be nice to do this for all -L options, not just this one.
3400   if test -n "$x_libraries"; then
3401     X_LIBS="$X_LIBS -L$x_libraries"
3402     # For Solaris; some versions of Sun CC require a space after -R and
3403     # others require no space.  Words are not sufficient . . . .
3404     case `(uname -sr) 2>/dev/null` in
3405     "SunOS 5"*)
3406       echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
3407 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
3408       ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
3409       cat >conftest.$ac_ext <<_ACEOF
3410 /* confdefs.h.  */
3411 _ACEOF
3412 cat confdefs.h >>conftest.$ac_ext
3413 cat >>conftest.$ac_ext <<_ACEOF
3414 /* end confdefs.h.  */
3415
3416 int
3417 main ()
3418 {
3419
3420   ;
3421   return 0;
3422 }
3423 _ACEOF
3424 rm -f conftest.$ac_objext conftest$ac_exeext
3425 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3426   (eval $ac_link) 2>conftest.er1
3427   ac_status=$?
3428   grep -v '^ *+' conftest.er1 >conftest.err
3429   rm -f conftest.er1
3430   cat conftest.err >&5
3431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3432   (exit $ac_status); } &&
3433          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3434   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3435   (eval $ac_try) 2>&5
3436   ac_status=$?
3437   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3438   (exit $ac_status); }; } &&
3439          { ac_try='test -s conftest$ac_exeext'
3440   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3441   (eval $ac_try) 2>&5
3442   ac_status=$?
3443   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3444   (exit $ac_status); }; }; then
3445   ac_R_nospace=yes
3446 else
3447   echo "$as_me: failed program was:" >&5
3448 sed 's/^/| /' conftest.$ac_ext >&5
3449
3450 ac_R_nospace=no
3451 fi
3452 rm -f conftest.err conftest.$ac_objext \
3453       conftest$ac_exeext conftest.$ac_ext
3454       if test $ac_R_nospace = yes; then
3455         echo "$as_me:$LINENO: result: no" >&5
3456 echo "${ECHO_T}no" >&6
3457         X_LIBS="$X_LIBS -R$x_libraries"
3458       else
3459         LIBS="$ac_xsave_LIBS -R $x_libraries"
3460         cat >conftest.$ac_ext <<_ACEOF
3461 /* confdefs.h.  */
3462 _ACEOF
3463 cat confdefs.h >>conftest.$ac_ext
3464 cat >>conftest.$ac_ext <<_ACEOF
3465 /* end confdefs.h.  */
3466
3467 int
3468 main ()
3469 {
3470
3471   ;
3472   return 0;
3473 }
3474 _ACEOF
3475 rm -f conftest.$ac_objext conftest$ac_exeext
3476 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3477   (eval $ac_link) 2>conftest.er1
3478   ac_status=$?
3479   grep -v '^ *+' conftest.er1 >conftest.err
3480   rm -f conftest.er1
3481   cat conftest.err >&5
3482   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3483   (exit $ac_status); } &&
3484          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3485   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3486   (eval $ac_try) 2>&5
3487   ac_status=$?
3488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3489   (exit $ac_status); }; } &&
3490          { ac_try='test -s conftest$ac_exeext'
3491   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3492   (eval $ac_try) 2>&5
3493   ac_status=$?
3494   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3495   (exit $ac_status); }; }; then
3496   ac_R_space=yes
3497 else
3498   echo "$as_me: failed program was:" >&5
3499 sed 's/^/| /' conftest.$ac_ext >&5
3500
3501 ac_R_space=no
3502 fi
3503 rm -f conftest.err conftest.$ac_objext \
3504       conftest$ac_exeext conftest.$ac_ext
3505         if test $ac_R_space = yes; then
3506           echo "$as_me:$LINENO: result: yes" >&5
3507 echo "${ECHO_T}yes" >&6
3508           X_LIBS="$X_LIBS -R $x_libraries"
3509         else
3510           echo "$as_me:$LINENO: result: neither works" >&5
3511 echo "${ECHO_T}neither works" >&6
3512         fi
3513       fi
3514       LIBS=$ac_xsave_LIBS
3515     esac
3516   fi
3517
3518   # Check for system-dependent libraries X programs must link with.
3519   # Do this before checking for the system-independent R6 libraries
3520   # (-lICE), since we may need -lsocket or whatever for X linking.
3521
3522   if test "$ISC" = yes; then
3523     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
3524   else
3525     # Martyn Johnson says this is needed for Ultrix, if the X
3526     # libraries were built with DECnet support.  And Karl Berry says
3527     # the Alpha needs dnet_stub (dnet does not exist).
3528     ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
3529     cat >conftest.$ac_ext <<_ACEOF
3530 /* confdefs.h.  */
3531 _ACEOF
3532 cat confdefs.h >>conftest.$ac_ext
3533 cat >>conftest.$ac_ext <<_ACEOF
3534 /* end confdefs.h.  */
3535
3536 /* Override any gcc2 internal prototype to avoid an error.  */
3537 #ifdef __cplusplus
3538 extern "C"
3539 #endif
3540 /* We use char because int might match the return type of a gcc2
3541    builtin and then its argument prototype would still apply.  */
3542 char XOpenDisplay ();
3543 int
3544 main ()
3545 {
3546 XOpenDisplay ();
3547   ;
3548   return 0;
3549 }
3550 _ACEOF
3551 rm -f conftest.$ac_objext conftest$ac_exeext
3552 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3553   (eval $ac_link) 2>conftest.er1
3554   ac_status=$?
3555   grep -v '^ *+' conftest.er1 >conftest.err
3556   rm -f conftest.er1
3557   cat conftest.err >&5
3558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3559   (exit $ac_status); } &&
3560          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3561   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3562   (eval $ac_try) 2>&5
3563   ac_status=$?
3564   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3565   (exit $ac_status); }; } &&
3566          { ac_try='test -s conftest$ac_exeext'
3567   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3568   (eval $ac_try) 2>&5
3569   ac_status=$?
3570   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3571   (exit $ac_status); }; }; then
3572   :
3573 else
3574   echo "$as_me: failed program was:" >&5
3575 sed 's/^/| /' conftest.$ac_ext >&5
3576
3577 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
3578 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
3579 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
3580   echo $ECHO_N "(cached) $ECHO_C" >&6
3581 else
3582   ac_check_lib_save_LIBS=$LIBS
3583 LIBS="-ldnet  $LIBS"
3584 cat >conftest.$ac_ext <<_ACEOF
3585 /* confdefs.h.  */
3586 _ACEOF
3587 cat confdefs.h >>conftest.$ac_ext
3588 cat >>conftest.$ac_ext <<_ACEOF
3589 /* end confdefs.h.  */
3590
3591 /* Override any gcc2 internal prototype to avoid an error.  */
3592 #ifdef __cplusplus
3593 extern "C"
3594 #endif
3595 /* We use char because int might match the return type of a gcc2
3596    builtin and then its argument prototype would still apply.  */
3597 char dnet_ntoa ();
3598 int
3599 main ()
3600 {
3601 dnet_ntoa ();
3602   ;
3603   return 0;
3604 }
3605 _ACEOF
3606 rm -f conftest.$ac_objext conftest$ac_exeext
3607 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3608   (eval $ac_link) 2>conftest.er1
3609   ac_status=$?
3610   grep -v '^ *+' conftest.er1 >conftest.err
3611   rm -f conftest.er1
3612   cat conftest.err >&5
3613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3614   (exit $ac_status); } &&
3615          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3616   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3617   (eval $ac_try) 2>&5
3618   ac_status=$?
3619   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3620   (exit $ac_status); }; } &&
3621          { ac_try='test -s conftest$ac_exeext'
3622   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3623   (eval $ac_try) 2>&5
3624   ac_status=$?
3625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3626   (exit $ac_status); }; }; then
3627   ac_cv_lib_dnet_dnet_ntoa=yes
3628 else
3629   echo "$as_me: failed program was:" >&5
3630 sed 's/^/| /' conftest.$ac_ext >&5
3631
3632 ac_cv_lib_dnet_dnet_ntoa=no
3633 fi
3634 rm -f conftest.err conftest.$ac_objext \
3635       conftest$ac_exeext conftest.$ac_ext
3636 LIBS=$ac_check_lib_save_LIBS
3637 fi
3638 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
3639 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
3640 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
3641   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
3642 fi
3643
3644     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
3645       echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
3646 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
3647 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
3648   echo $ECHO_N "(cached) $ECHO_C" >&6
3649 else
3650   ac_check_lib_save_LIBS=$LIBS
3651 LIBS="-ldnet_stub  $LIBS"
3652 cat >conftest.$ac_ext <<_ACEOF
3653 /* confdefs.h.  */
3654 _ACEOF
3655 cat confdefs.h >>conftest.$ac_ext
3656 cat >>conftest.$ac_ext <<_ACEOF
3657 /* end confdefs.h.  */
3658
3659 /* Override any gcc2 internal prototype to avoid an error.  */
3660 #ifdef __cplusplus
3661 extern "C"
3662 #endif
3663 /* We use char because int might match the return type of a gcc2
3664    builtin and then its argument prototype would still apply.  */
3665 char dnet_ntoa ();
3666 int
3667 main ()
3668 {
3669 dnet_ntoa ();
3670   ;
3671   return 0;
3672 }
3673 _ACEOF
3674 rm -f conftest.$ac_objext conftest$ac_exeext
3675 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3676   (eval $ac_link) 2>conftest.er1
3677   ac_status=$?
3678   grep -v '^ *+' conftest.er1 >conftest.err
3679   rm -f conftest.er1
3680   cat conftest.err >&5
3681   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3682   (exit $ac_status); } &&
3683          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3684   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3685   (eval $ac_try) 2>&5
3686   ac_status=$?
3687   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3688   (exit $ac_status); }; } &&
3689          { ac_try='test -s conftest$ac_exeext'
3690   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3691   (eval $ac_try) 2>&5
3692   ac_status=$?
3693   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3694   (exit $ac_status); }; }; then
3695   ac_cv_lib_dnet_stub_dnet_ntoa=yes
3696 else
3697   echo "$as_me: failed program was:" >&5
3698 sed 's/^/| /' conftest.$ac_ext >&5
3699
3700 ac_cv_lib_dnet_stub_dnet_ntoa=no
3701 fi
3702 rm -f conftest.err conftest.$ac_objext \
3703       conftest$ac_exeext conftest.$ac_ext
3704 LIBS=$ac_check_lib_save_LIBS
3705 fi
3706 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
3707 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
3708 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
3709   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
3710 fi
3711
3712     fi
3713 fi
3714 rm -f conftest.err conftest.$ac_objext \
3715       conftest$ac_exeext conftest.$ac_ext
3716     LIBS="$ac_xsave_LIBS"
3717
3718     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
3719     # to get the SysV transport functions.
3720     # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
3721     # needs -lnsl.
3722     # The nsl library prevents programs from opening the X display
3723     # on Irix 5.2, according to T.E. Dickey.
3724     # The functions gethostbyname, getservbyname, and inet_addr are
3725     # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
3726     echo "$as_me:$LINENO: checking for gethostbyname" >&5
3727 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
3728 if test "${ac_cv_func_gethostbyname+set}" = set; then
3729   echo $ECHO_N "(cached) $ECHO_C" >&6
3730 else
3731   cat >conftest.$ac_ext <<_ACEOF
3732 /* confdefs.h.  */
3733 _ACEOF
3734 cat confdefs.h >>conftest.$ac_ext
3735 cat >>conftest.$ac_ext <<_ACEOF
3736 /* end confdefs.h.  */
3737 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
3738    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
3739 #define gethostbyname innocuous_gethostbyname
3740
3741 /* System header to define __stub macros and hopefully few prototypes,
3742     which can conflict with char gethostbyname (); below.
3743     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3744     <limits.h> exists even on freestanding compilers.  */
3745
3746 #ifdef __STDC__
3747 # include <limits.h>
3748 #else
3749 # include <assert.h>
3750 #endif
3751
3752 #undef gethostbyname
3753
3754 /* Override any gcc2 internal prototype to avoid an error.  */
3755 #ifdef __cplusplus
3756 extern "C"
3757 {
3758 #endif
3759 /* We use char because int might match the return type of a gcc2
3760    builtin and then its argument prototype would still apply.  */
3761 char gethostbyname ();
3762 /* The GNU C library defines this for functions which it implements
3763     to always fail with ENOSYS.  Some functions are actually named
3764     something starting with __ and the normal name is an alias.  */
3765 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
3766 choke me
3767 #else
3768 char (*f) () = gethostbyname;
3769 #endif
3770 #ifdef __cplusplus
3771 }
3772 #endif
3773
3774 int
3775 main ()
3776 {
3777 return f != gethostbyname;
3778   ;
3779   return 0;
3780 }
3781 _ACEOF
3782 rm -f conftest.$ac_objext conftest$ac_exeext
3783 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3784   (eval $ac_link) 2>conftest.er1
3785   ac_status=$?
3786   grep -v '^ *+' conftest.er1 >conftest.err
3787   rm -f conftest.er1
3788   cat conftest.err >&5
3789   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3790   (exit $ac_status); } &&
3791          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3792   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3793   (eval $ac_try) 2>&5
3794   ac_status=$?
3795   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3796   (exit $ac_status); }; } &&
3797          { ac_try='test -s conftest$ac_exeext'
3798   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3799   (eval $ac_try) 2>&5
3800   ac_status=$?
3801   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3802   (exit $ac_status); }; }; then
3803   ac_cv_func_gethostbyname=yes
3804 else
3805   echo "$as_me: failed program was:" >&5
3806 sed 's/^/| /' conftest.$ac_ext >&5
3807
3808 ac_cv_func_gethostbyname=no
3809 fi
3810 rm -f conftest.err conftest.$ac_objext \
3811       conftest$ac_exeext conftest.$ac_ext
3812 fi
3813 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
3814 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
3815
3816     if test $ac_cv_func_gethostbyname = no; then
3817       echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
3818 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
3819 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
3820   echo $ECHO_N "(cached) $ECHO_C" >&6
3821 else
3822   ac_check_lib_save_LIBS=$LIBS
3823 LIBS="-lnsl  $LIBS"
3824 cat >conftest.$ac_ext <<_ACEOF
3825 /* confdefs.h.  */
3826 _ACEOF
3827 cat confdefs.h >>conftest.$ac_ext
3828 cat >>conftest.$ac_ext <<_ACEOF
3829 /* end confdefs.h.  */
3830
3831 /* Override any gcc2 internal prototype to avoid an error.  */
3832 #ifdef __cplusplus
3833 extern "C"
3834 #endif
3835 /* We use char because int might match the return type of a gcc2
3836    builtin and then its argument prototype would still apply.  */
3837 char gethostbyname ();
3838 int
3839 main ()
3840 {
3841 gethostbyname ();
3842   ;
3843   return 0;
3844 }
3845 _ACEOF
3846 rm -f conftest.$ac_objext conftest$ac_exeext
3847 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3848   (eval $ac_link) 2>conftest.er1
3849   ac_status=$?
3850   grep -v '^ *+' conftest.er1 >conftest.err
3851   rm -f conftest.er1
3852   cat conftest.err >&5
3853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3854   (exit $ac_status); } &&
3855          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3856   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3857   (eval $ac_try) 2>&5
3858   ac_status=$?
3859   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3860   (exit $ac_status); }; } &&
3861          { ac_try='test -s conftest$ac_exeext'
3862   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3863   (eval $ac_try) 2>&5
3864   ac_status=$?
3865   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3866   (exit $ac_status); }; }; then
3867   ac_cv_lib_nsl_gethostbyname=yes
3868 else
3869   echo "$as_me: failed program was:" >&5
3870 sed 's/^/| /' conftest.$ac_ext >&5
3871
3872 ac_cv_lib_nsl_gethostbyname=no
3873 fi
3874 rm -f conftest.err conftest.$ac_objext \
3875       conftest$ac_exeext conftest.$ac_ext
3876 LIBS=$ac_check_lib_save_LIBS
3877 fi
3878 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
3879 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
3880 if test $ac_cv_lib_nsl_gethostbyname = yes; then
3881   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
3882 fi
3883
3884       if test $ac_cv_lib_nsl_gethostbyname = no; then
3885         echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
3886 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
3887 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
3888   echo $ECHO_N "(cached) $ECHO_C" >&6
3889 else
3890   ac_check_lib_save_LIBS=$LIBS
3891 LIBS="-lbsd  $LIBS"
3892 cat >conftest.$ac_ext <<_ACEOF
3893 /* confdefs.h.  */
3894 _ACEOF
3895 cat confdefs.h >>conftest.$ac_ext
3896 cat >>conftest.$ac_ext <<_ACEOF
3897 /* end confdefs.h.  */
3898
3899 /* Override any gcc2 internal prototype to avoid an error.  */
3900 #ifdef __cplusplus
3901 extern "C"
3902 #endif
3903 /* We use char because int might match the return type of a gcc2
3904    builtin and then its argument prototype would still apply.  */
3905 char gethostbyname ();
3906 int
3907 main ()
3908 {
3909 gethostbyname ();
3910   ;
3911   return 0;
3912 }
3913 _ACEOF
3914 rm -f conftest.$ac_objext conftest$ac_exeext
3915 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3916   (eval $ac_link) 2>conftest.er1
3917   ac_status=$?
3918   grep -v '^ *+' conftest.er1 >conftest.err
3919   rm -f conftest.er1
3920   cat conftest.err >&5
3921   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3922   (exit $ac_status); } &&
3923          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3924   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3925   (eval $ac_try) 2>&5
3926   ac_status=$?
3927   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3928   (exit $ac_status); }; } &&
3929          { ac_try='test -s conftest$ac_exeext'
3930   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3931   (eval $ac_try) 2>&5
3932   ac_status=$?
3933   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3934   (exit $ac_status); }; }; then
3935   ac_cv_lib_bsd_gethostbyname=yes
3936 else
3937   echo "$as_me: failed program was:" >&5
3938 sed 's/^/| /' conftest.$ac_ext >&5
3939
3940 ac_cv_lib_bsd_gethostbyname=no
3941 fi
3942 rm -f conftest.err conftest.$ac_objext \
3943       conftest$ac_exeext conftest.$ac_ext
3944 LIBS=$ac_check_lib_save_LIBS
3945 fi
3946 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
3947 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
3948 if test $ac_cv_lib_bsd_gethostbyname = yes; then
3949   X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
3950 fi
3951
3952       fi
3953     fi
3954
3955     # lieder@skyler.mavd.honeywell.com says without -lsocket,
3956     # socket/setsockopt and other routines are undefined under SCO ODT
3957     # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
3958     # on later versions), says Simon Leinen: it contains gethostby*
3959     # variants that don't use the name server (or something).  -lsocket
3960     # must be given before -lnsl if both are needed.  We assume that
3961     # if connect needs -lnsl, so does gethostbyname.
3962     echo "$as_me:$LINENO: checking for connect" >&5
3963 echo $ECHO_N "checking for connect... $ECHO_C" >&6
3964 if test "${ac_cv_func_connect+set}" = set; then
3965   echo $ECHO_N "(cached) $ECHO_C" >&6
3966 else
3967   cat >conftest.$ac_ext <<_ACEOF
3968 /* confdefs.h.  */
3969 _ACEOF
3970 cat confdefs.h >>conftest.$ac_ext
3971 cat >>conftest.$ac_ext <<_ACEOF
3972 /* end confdefs.h.  */
3973 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
3974    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
3975 #define connect innocuous_connect
3976
3977 /* System header to define __stub macros and hopefully few prototypes,
3978     which can conflict with char connect (); below.
3979     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3980     <limits.h> exists even on freestanding compilers.  */
3981
3982 #ifdef __STDC__
3983 # include <limits.h>
3984 #else
3985 # include <assert.h>
3986 #endif
3987
3988 #undef connect
3989
3990 /* Override any gcc2 internal prototype to avoid an error.  */
3991 #ifdef __cplusplus
3992 extern "C"
3993 {
3994 #endif
3995 /* We use char because int might match the return type of a gcc2
3996    builtin and then its argument prototype would still apply.  */
3997 char connect ();
3998 /* The GNU C library defines this for functions which it implements
3999     to always fail with ENOSYS.  Some functions are actually named
4000     something starting with __ and the normal name is an alias.  */
4001 #if defined (__stub_connect) || defined (__stub___connect)
4002 choke me
4003 #else
4004 char (*f) () = connect;
4005 #endif
4006 #ifdef __cplusplus
4007 }
4008 #endif
4009
4010 int
4011 main ()
4012 {
4013 return f != connect;
4014   ;
4015   return 0;
4016 }
4017 _ACEOF
4018 rm -f conftest.$ac_objext conftest$ac_exeext
4019 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4020   (eval $ac_link) 2>conftest.er1
4021   ac_status=$?
4022   grep -v '^ *+' conftest.er1 >conftest.err
4023   rm -f conftest.er1
4024   cat conftest.err >&5
4025   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4026   (exit $ac_status); } &&
4027          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4028   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4029   (eval $ac_try) 2>&5
4030   ac_status=$?
4031   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4032   (exit $ac_status); }; } &&
4033          { ac_try='test -s conftest$ac_exeext'
4034   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4035   (eval $ac_try) 2>&5
4036   ac_status=$?
4037   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4038   (exit $ac_status); }; }; then
4039   ac_cv_func_connect=yes
4040 else
4041   echo "$as_me: failed program was:" >&5
4042 sed 's/^/| /' conftest.$ac_ext >&5
4043
4044 ac_cv_func_connect=no
4045 fi
4046 rm -f conftest.err conftest.$ac_objext \
4047       conftest$ac_exeext conftest.$ac_ext
4048 fi
4049 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
4050 echo "${ECHO_T}$ac_cv_func_connect" >&6
4051
4052     if test $ac_cv_func_connect = no; then
4053       echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
4054 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
4055 if test "${ac_cv_lib_socket_connect+set}" = set; then
4056   echo $ECHO_N "(cached) $ECHO_C" >&6
4057 else
4058   ac_check_lib_save_LIBS=$LIBS
4059 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
4060 cat >conftest.$ac_ext <<_ACEOF
4061 /* confdefs.h.  */
4062 _ACEOF
4063 cat confdefs.h >>conftest.$ac_ext
4064 cat >>conftest.$ac_ext <<_ACEOF
4065 /* end confdefs.h.  */
4066
4067 /* Override any gcc2 internal prototype to avoid an error.  */
4068 #ifdef __cplusplus
4069 extern "C"
4070 #endif
4071 /* We use char because int might match the return type of a gcc2
4072    builtin and then its argument prototype would still apply.  */
4073 char connect ();
4074 int
4075 main ()
4076 {
4077 connect ();
4078   ;
4079   return 0;
4080 }
4081 _ACEOF
4082 rm -f conftest.$ac_objext conftest$ac_exeext
4083 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4084   (eval $ac_link) 2>conftest.er1
4085   ac_status=$?
4086   grep -v '^ *+' conftest.er1 >conftest.err
4087   rm -f conftest.er1
4088   cat conftest.err >&5
4089   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4090   (exit $ac_status); } &&
4091          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4092   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4093   (eval $ac_try) 2>&5
4094   ac_status=$?
4095   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4096   (exit $ac_status); }; } &&
4097          { ac_try='test -s conftest$ac_exeext'
4098   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4099   (eval $ac_try) 2>&5
4100   ac_status=$?
4101   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4102   (exit $ac_status); }; }; then
4103   ac_cv_lib_socket_connect=yes
4104 else
4105   echo "$as_me: failed program was:" >&5
4106 sed 's/^/| /' conftest.$ac_ext >&5
4107
4108 ac_cv_lib_socket_connect=no
4109 fi
4110 rm -f conftest.err conftest.$ac_objext \
4111       conftest$ac_exeext conftest.$ac_ext
4112 LIBS=$ac_check_lib_save_LIBS
4113 fi
4114 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
4115 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
4116 if test $ac_cv_lib_socket_connect = yes; then
4117   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
4118 fi
4119
4120     fi
4121
4122     # Guillermo Gomez says -lposix is necessary on A/UX.
4123     echo "$as_me:$LINENO: checking for remove" >&5
4124 echo $ECHO_N "checking for remove... $ECHO_C" >&6
4125 if test "${ac_cv_func_remove+set}" = set; then
4126   echo $ECHO_N "(cached) $ECHO_C" >&6
4127 else
4128   cat >conftest.$ac_ext <<_ACEOF
4129 /* confdefs.h.  */
4130 _ACEOF
4131 cat confdefs.h >>conftest.$ac_ext
4132 cat >>conftest.$ac_ext <<_ACEOF
4133 /* end confdefs.h.  */
4134 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
4135    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
4136 #define remove innocuous_remove
4137
4138 /* System header to define __stub macros and hopefully few prototypes,
4139     which can conflict with char remove (); below.
4140     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4141     <limits.h> exists even on freestanding compilers.  */
4142
4143 #ifdef __STDC__
4144 # include <limits.h>
4145 #else
4146 # include <assert.h>
4147 #endif
4148
4149 #undef remove
4150
4151 /* Override any gcc2 internal prototype to avoid an error.  */
4152 #ifdef __cplusplus
4153 extern "C"
4154 {
4155 #endif
4156 /* We use char because int might match the return type of a gcc2
4157    builtin and then its argument prototype would still apply.  */
4158 char remove ();
4159 /* The GNU C library defines this for functions which it implements
4160     to always fail with ENOSYS.  Some functions are actually named
4161     something starting with __ and the normal name is an alias.  */
4162 #if defined (__stub_remove) || defined (__stub___remove)
4163 choke me
4164 #else
4165 char (*f) () = remove;
4166 #endif
4167 #ifdef __cplusplus
4168 }
4169 #endif
4170
4171 int
4172 main ()
4173 {
4174 return f != remove;
4175   ;
4176   return 0;
4177 }
4178 _ACEOF
4179 rm -f conftest.$ac_objext conftest$ac_exeext
4180 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4181   (eval $ac_link) 2>conftest.er1
4182   ac_status=$?
4183   grep -v '^ *+' conftest.er1 >conftest.err
4184   rm -f conftest.er1
4185   cat conftest.err >&5
4186   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4187   (exit $ac_status); } &&
4188          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4189   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4190   (eval $ac_try) 2>&5
4191   ac_status=$?
4192   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4193   (exit $ac_status); }; } &&
4194          { ac_try='test -s conftest$ac_exeext'
4195   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4196   (eval $ac_try) 2>&5
4197   ac_status=$?
4198   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4199   (exit $ac_status); }; }; then
4200   ac_cv_func_remove=yes
4201 else
4202   echo "$as_me: failed program was:" >&5
4203 sed 's/^/| /' conftest.$ac_ext >&5
4204
4205 ac_cv_func_remove=no
4206 fi
4207 rm -f conftest.err conftest.$ac_objext \
4208       conftest$ac_exeext conftest.$ac_ext
4209 fi
4210 echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
4211 echo "${ECHO_T}$ac_cv_func_remove" >&6
4212
4213     if test $ac_cv_func_remove = no; then
4214       echo "$as_me:$LINENO: checking for remove in -lposix" >&5
4215 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
4216 if test "${ac_cv_lib_posix_remove+set}" = set; then
4217   echo $ECHO_N "(cached) $ECHO_C" >&6
4218 else
4219   ac_check_lib_save_LIBS=$LIBS
4220 LIBS="-lposix  $LIBS"
4221 cat >conftest.$ac_ext <<_ACEOF
4222 /* confdefs.h.  */
4223 _ACEOF
4224 cat confdefs.h >>conftest.$ac_ext
4225 cat >>conftest.$ac_ext <<_ACEOF
4226 /* end confdefs.h.  */
4227
4228 /* Override any gcc2 internal prototype to avoid an error.  */
4229 #ifdef __cplusplus
4230 extern "C"
4231 #endif
4232 /* We use char because int might match the return type of a gcc2
4233    builtin and then its argument prototype would still apply.  */
4234 char remove ();
4235 int
4236 main ()
4237 {
4238 remove ();
4239   ;
4240   return 0;
4241 }
4242 _ACEOF
4243 rm -f conftest.$ac_objext conftest$ac_exeext
4244 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4245   (eval $ac_link) 2>conftest.er1
4246   ac_status=$?
4247   grep -v '^ *+' conftest.er1 >conftest.err
4248   rm -f conftest.er1
4249   cat conftest.err >&5
4250   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4251   (exit $ac_status); } &&
4252          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4253   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4254   (eval $ac_try) 2>&5
4255   ac_status=$?
4256   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4257   (exit $ac_status); }; } &&
4258          { ac_try='test -s conftest$ac_exeext'
4259   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4260   (eval $ac_try) 2>&5
4261   ac_status=$?
4262   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4263   (exit $ac_status); }; }; then
4264   ac_cv_lib_posix_remove=yes
4265 else
4266   echo "$as_me: failed program was:" >&5
4267 sed 's/^/| /' conftest.$ac_ext >&5
4268
4269 ac_cv_lib_posix_remove=no
4270 fi
4271 rm -f conftest.err conftest.$ac_objext \
4272       conftest$ac_exeext conftest.$ac_ext
4273 LIBS=$ac_check_lib_save_LIBS
4274 fi
4275 echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
4276 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
4277 if test $ac_cv_lib_posix_remove = yes; then
4278   X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
4279 fi
4280
4281     fi
4282
4283     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
4284     echo "$as_me:$LINENO: checking for shmat" >&5
4285 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
4286 if test "${ac_cv_func_shmat+set}" = set; then
4287   echo $ECHO_N "(cached) $ECHO_C" >&6
4288 else
4289   cat >conftest.$ac_ext <<_ACEOF
4290 /* confdefs.h.  */
4291 _ACEOF
4292 cat confdefs.h >>conftest.$ac_ext
4293 cat >>conftest.$ac_ext <<_ACEOF
4294 /* end confdefs.h.  */
4295 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
4296    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
4297 #define shmat innocuous_shmat
4298
4299 /* System header to define __stub macros and hopefully few prototypes,
4300     which can conflict with char shmat (); below.
4301     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4302     <limits.h> exists even on freestanding compilers.  */
4303
4304 #ifdef __STDC__
4305 # include <limits.h>
4306 #else
4307 # include <assert.h>
4308 #endif
4309
4310 #undef shmat
4311
4312 /* Override any gcc2 internal prototype to avoid an error.  */
4313 #ifdef __cplusplus
4314 extern "C"
4315 {
4316 #endif
4317 /* We use char because int might match the return type of a gcc2
4318    builtin and then its argument prototype would still apply.  */
4319 char shmat ();
4320 /* The GNU C library defines this for functions which it implements
4321     to always fail with ENOSYS.  Some functions are actually named
4322     something starting with __ and the normal name is an alias.  */
4323 #if defined (__stub_shmat) || defined (__stub___shmat)
4324 choke me
4325 #else
4326 char (*f) () = shmat;
4327 #endif
4328 #ifdef __cplusplus
4329 }
4330 #endif
4331
4332 int
4333 main ()
4334 {
4335 return f != shmat;
4336   ;
4337   return 0;
4338 }
4339 _ACEOF
4340 rm -f conftest.$ac_objext conftest$ac_exeext
4341 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4342   (eval $ac_link) 2>conftest.er1
4343   ac_status=$?
4344   grep -v '^ *+' conftest.er1 >conftest.err
4345   rm -f conftest.er1
4346   cat conftest.err >&5
4347   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4348   (exit $ac_status); } &&
4349          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4350   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4351   (eval $ac_try) 2>&5
4352   ac_status=$?
4353   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4354   (exit $ac_status); }; } &&
4355          { ac_try='test -s conftest$ac_exeext'
4356   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4357   (eval $ac_try) 2>&5
4358   ac_status=$?
4359   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4360   (exit $ac_status); }; }; then
4361   ac_cv_func_shmat=yes
4362 else
4363   echo "$as_me: failed program was:" >&5
4364 sed 's/^/| /' conftest.$ac_ext >&5
4365
4366 ac_cv_func_shmat=no
4367 fi
4368 rm -f conftest.err conftest.$ac_objext \
4369       conftest$ac_exeext conftest.$ac_ext
4370 fi
4371 echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
4372 echo "${ECHO_T}$ac_cv_func_shmat" >&6
4373
4374     if test $ac_cv_func_shmat = no; then
4375       echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
4376 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
4377 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
4378   echo $ECHO_N "(cached) $ECHO_C" >&6
4379 else
4380   ac_check_lib_save_LIBS=$LIBS
4381 LIBS="-lipc  $LIBS"
4382 cat >conftest.$ac_ext <<_ACEOF
4383 /* confdefs.h.  */
4384 _ACEOF
4385 cat confdefs.h >>conftest.$ac_ext
4386 cat >>conftest.$ac_ext <<_ACEOF
4387 /* end confdefs.h.  */
4388
4389 /* Override any gcc2 internal prototype to avoid an error.  */
4390 #ifdef __cplusplus
4391 extern "C"
4392 #endif
4393 /* We use char because int might match the return type of a gcc2
4394    builtin and then its argument prototype would still apply.  */
4395 char shmat ();
4396 int
4397 main ()
4398 {
4399 shmat ();
4400   ;
4401   return 0;
4402 }
4403 _ACEOF
4404 rm -f conftest.$ac_objext conftest$ac_exeext
4405 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4406   (eval $ac_link) 2>conftest.er1
4407   ac_status=$?
4408   grep -v '^ *+' conftest.er1 >conftest.err
4409   rm -f conftest.er1
4410   cat conftest.err >&5
4411   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4412   (exit $ac_status); } &&
4413          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4414   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4415   (eval $ac_try) 2>&5
4416   ac_status=$?
4417   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4418   (exit $ac_status); }; } &&
4419          { ac_try='test -s conftest$ac_exeext'
4420   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4421   (eval $ac_try) 2>&5
4422   ac_status=$?
4423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4424   (exit $ac_status); }; }; then
4425   ac_cv_lib_ipc_shmat=yes
4426 else
4427   echo "$as_me: failed program was:" >&5
4428 sed 's/^/| /' conftest.$ac_ext >&5
4429
4430 ac_cv_lib_ipc_shmat=no
4431 fi
4432 rm -f conftest.err conftest.$ac_objext \
4433       conftest$ac_exeext conftest.$ac_ext
4434 LIBS=$ac_check_lib_save_LIBS
4435 fi
4436 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
4437 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
4438 if test $ac_cv_lib_ipc_shmat = yes; then
4439   X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
4440 fi
4441
4442     fi
4443   fi
4444
4445   # Check for libraries that X11R6 Xt/Xaw programs need.
4446   ac_save_LDFLAGS=$LDFLAGS
4447   test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
4448   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
4449   # check for ICE first), but we must link in the order -lSM -lICE or
4450   # we get undefined symbols.  So assume we have SM if we have ICE.
4451   # These have to be linked with before -lX11, unlike the other
4452   # libraries we check for below, so use a different variable.
4453   # John Interrante, Karl Berry
4454   echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
4455 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
4456 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
4457   echo $ECHO_N "(cached) $ECHO_C" >&6
4458 else
4459   ac_check_lib_save_LIBS=$LIBS
4460 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
4461 cat >conftest.$ac_ext <<_ACEOF
4462 /* confdefs.h.  */
4463 _ACEOF
4464 cat confdefs.h >>conftest.$ac_ext
4465 cat >>conftest.$ac_ext <<_ACEOF
4466 /* end confdefs.h.  */
4467
4468 /* Override any gcc2 internal prototype to avoid an error.  */
4469 #ifdef __cplusplus
4470 extern "C"
4471 #endif
4472 /* We use char because int might match the return type of a gcc2
4473    builtin and then its argument prototype would still apply.  */
4474 char IceConnectionNumber ();
4475 int
4476 main ()
4477 {
4478 IceConnectionNumber ();
4479   ;
4480   return 0;
4481 }
4482 _ACEOF
4483 rm -f conftest.$ac_objext conftest$ac_exeext
4484 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4485   (eval $ac_link) 2>conftest.er1
4486   ac_status=$?
4487   grep -v '^ *+' conftest.er1 >conftest.err
4488   rm -f conftest.er1
4489   cat conftest.err >&5
4490   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4491   (exit $ac_status); } &&
4492          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4493   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4494   (eval $ac_try) 2>&5
4495   ac_status=$?
4496   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4497   (exit $ac_status); }; } &&
4498          { ac_try='test -s conftest$ac_exeext'
4499   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4500   (eval $ac_try) 2>&5
4501   ac_status=$?
4502   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4503   (exit $ac_status); }; }; then
4504   ac_cv_lib_ICE_IceConnectionNumber=yes
4505 else
4506   echo "$as_me: failed program was:" >&5
4507 sed 's/^/| /' conftest.$ac_ext >&5
4508
4509 ac_cv_lib_ICE_IceConnectionNumber=no
4510 fi
4511 rm -f conftest.err conftest.$ac_objext \
4512       conftest$ac_exeext conftest.$ac_ext
4513 LIBS=$ac_check_lib_save_LIBS
4514 fi
4515 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
4516 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
4517 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
4518   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
4519 fi
4520
4521   LDFLAGS=$ac_save_LDFLAGS
4522
4523 fi
4524
4525 for ac_prog in flex lex
4526 do
4527   # Extract the first word of "$ac_prog", so it can be a program name with args.
4528 set dummy $ac_prog; ac_word=$2
4529 echo "$as_me:$LINENO: checking for $ac_word" >&5
4530 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4531 if test "${ac_cv_prog_LEX+set}" = set; then
4532   echo $ECHO_N "(cached) $ECHO_C" >&6
4533 else
4534   if test -n "$LEX"; then
4535   ac_cv_prog_LEX="$LEX" # Let the user override the test.
4536 else
4537 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4538 for as_dir in $PATH
4539 do
4540   IFS=$as_save_IFS
4541   test -z "$as_dir" && as_dir=.
4542   for ac_exec_ext in '' $ac_executable_extensions; do
4543   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4544     ac_cv_prog_LEX="$ac_prog"
4545     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4546     break 2
4547   fi
4548 done
4549 done
4550
4551 fi
4552 fi
4553 LEX=$ac_cv_prog_LEX
4554 if test -n "$LEX"; then
4555   echo "$as_me:$LINENO: result: $LEX" >&5
4556 echo "${ECHO_T}$LEX" >&6
4557 else
4558   echo "$as_me:$LINENO: result: no" >&5
4559 echo "${ECHO_T}no" >&6
4560 fi
4561
4562   test -n "$LEX" && break
4563 done
4564 test -n "$LEX" || LEX=":"
4565
4566 if test -z "$LEXLIB"
4567 then
4568   echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
4569 echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
4570 if test "${ac_cv_lib_fl_yywrap+set}" = set; then
4571   echo $ECHO_N "(cached) $ECHO_C" >&6
4572 else
4573   ac_check_lib_save_LIBS=$LIBS
4574 LIBS="-lfl  $LIBS"
4575 cat >conftest.$ac_ext <<_ACEOF
4576 /* confdefs.h.  */
4577 _ACEOF
4578 cat confdefs.h >>conftest.$ac_ext
4579 cat >>conftest.$ac_ext <<_ACEOF
4580 /* end confdefs.h.  */
4581
4582 /* Override any gcc2 internal prototype to avoid an error.  */
4583 #ifdef __cplusplus
4584 extern "C"
4585 #endif
4586 /* We use char because int might match the return type of a gcc2
4587    builtin and then its argument prototype would still apply.  */
4588 char yywrap ();
4589 int
4590 main ()
4591 {
4592 yywrap ();
4593   ;
4594   return 0;
4595 }
4596 _ACEOF
4597 rm -f conftest.$ac_objext conftest$ac_exeext
4598 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4599   (eval $ac_link) 2>conftest.er1
4600   ac_status=$?
4601   grep -v '^ *+' conftest.er1 >conftest.err
4602   rm -f conftest.er1
4603   cat conftest.err >&5
4604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4605   (exit $ac_status); } &&
4606          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4607   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4608   (eval $ac_try) 2>&5
4609   ac_status=$?
4610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4611   (exit $ac_status); }; } &&
4612          { ac_try='test -s conftest$ac_exeext'
4613   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4614   (eval $ac_try) 2>&5
4615   ac_status=$?
4616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4617   (exit $ac_status); }; }; then
4618   ac_cv_lib_fl_yywrap=yes
4619 else
4620   echo "$as_me: failed program was:" >&5
4621 sed 's/^/| /' conftest.$ac_ext >&5
4622
4623 ac_cv_lib_fl_yywrap=no
4624 fi
4625 rm -f conftest.err conftest.$ac_objext \
4626       conftest$ac_exeext conftest.$ac_ext
4627 LIBS=$ac_check_lib_save_LIBS
4628 fi
4629 echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
4630 echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
4631 if test $ac_cv_lib_fl_yywrap = yes; then
4632   LEXLIB="-lfl"
4633 else
4634   echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
4635 echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
4636 if test "${ac_cv_lib_l_yywrap+set}" = set; then
4637   echo $ECHO_N "(cached) $ECHO_C" >&6
4638 else
4639   ac_check_lib_save_LIBS=$LIBS
4640 LIBS="-ll  $LIBS"
4641 cat >conftest.$ac_ext <<_ACEOF
4642 /* confdefs.h.  */
4643 _ACEOF
4644 cat confdefs.h >>conftest.$ac_ext
4645 cat >>conftest.$ac_ext <<_ACEOF
4646 /* end confdefs.h.  */
4647
4648 /* Override any gcc2 internal prototype to avoid an error.  */
4649 #ifdef __cplusplus
4650 extern "C"
4651 #endif
4652 /* We use char because int might match the return type of a gcc2
4653    builtin and then its argument prototype would still apply.  */
4654 char yywrap ();
4655 int
4656 main ()
4657 {
4658 yywrap ();
4659   ;
4660   return 0;
4661 }
4662 _ACEOF
4663 rm -f conftest.$ac_objext conftest$ac_exeext
4664 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4665   (eval $ac_link) 2>conftest.er1
4666   ac_status=$?
4667   grep -v '^ *+' conftest.er1 >conftest.err
4668   rm -f conftest.er1
4669   cat conftest.err >&5
4670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4671   (exit $ac_status); } &&
4672          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4673   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4674   (eval $ac_try) 2>&5
4675   ac_status=$?
4676   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4677   (exit $ac_status); }; } &&
4678          { ac_try='test -s conftest$ac_exeext'
4679   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4680   (eval $ac_try) 2>&5
4681   ac_status=$?
4682   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4683   (exit $ac_status); }; }; then
4684   ac_cv_lib_l_yywrap=yes
4685 else
4686   echo "$as_me: failed program was:" >&5
4687 sed 's/^/| /' conftest.$ac_ext >&5
4688
4689 ac_cv_lib_l_yywrap=no
4690 fi
4691 rm -f conftest.err conftest.$ac_objext \
4692       conftest$ac_exeext conftest.$ac_ext
4693 LIBS=$ac_check_lib_save_LIBS
4694 fi
4695 echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
4696 echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
4697 if test $ac_cv_lib_l_yywrap = yes; then
4698   LEXLIB="-ll"
4699 fi
4700
4701 fi
4702
4703 fi
4704
4705 if test "x$LEX" != "x:"; then
4706   echo "$as_me:$LINENO: checking lex output file root" >&5
4707 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
4708 if test "${ac_cv_prog_lex_root+set}" = set; then
4709   echo $ECHO_N "(cached) $ECHO_C" >&6
4710 else
4711   # The minimal lex program is just a single line: %%.  But some broken lexes
4712 # (Solaris, I think it was) want two %% lines, so accommodate them.
4713 cat >conftest.l <<_ACEOF
4714 %%
4715 %%
4716 _ACEOF
4717 { (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
4718   (eval $LEX conftest.l) 2>&5
4719   ac_status=$?
4720   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4721   (exit $ac_status); }
4722 if test -f lex.yy.c; then
4723   ac_cv_prog_lex_root=lex.yy
4724 elif test -f lexyy.c; then
4725   ac_cv_prog_lex_root=lexyy
4726 else
4727   { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
4728 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
4729    { (exit 1); exit 1; }; }
4730 fi
4731 fi
4732 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
4733 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
4734 rm -f conftest.l
4735 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
4736
4737 echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
4738 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
4739 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
4740   echo $ECHO_N "(cached) $ECHO_C" >&6
4741 else
4742   # POSIX says lex can declare yytext either as a pointer or an array; the
4743 # default is implementation-dependent. Figure out which it is, since
4744 # not all implementations provide the %pointer and %array declarations.
4745 ac_cv_prog_lex_yytext_pointer=no
4746 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
4747 ac_save_LIBS=$LIBS
4748 LIBS="$LIBS $LEXLIB"
4749 cat >conftest.$ac_ext <<_ACEOF
4750 `cat $LEX_OUTPUT_ROOT.c`
4751 _ACEOF
4752 rm -f conftest.$ac_objext conftest$ac_exeext
4753 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4754   (eval $ac_link) 2>conftest.er1
4755   ac_status=$?
4756   grep -v '^ *+' conftest.er1 >conftest.err
4757   rm -f conftest.er1
4758   cat conftest.err >&5
4759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4760   (exit $ac_status); } &&
4761          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4762   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4763   (eval $ac_try) 2>&5
4764   ac_status=$?
4765   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4766   (exit $ac_status); }; } &&
4767          { ac_try='test -s conftest$ac_exeext'
4768   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4769   (eval $ac_try) 2>&5
4770   ac_status=$?
4771   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4772   (exit $ac_status); }; }; then
4773   ac_cv_prog_lex_yytext_pointer=yes
4774 else
4775   echo "$as_me: failed program was:" >&5
4776 sed 's/^/| /' conftest.$ac_ext >&5
4777
4778 fi
4779 rm -f conftest.err conftest.$ac_objext \
4780       conftest$ac_exeext conftest.$ac_ext
4781 LIBS=$ac_save_LIBS
4782 rm -f "${LEX_OUTPUT_ROOT}.c"
4783
4784 fi
4785 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
4786 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
4787 if test $ac_cv_prog_lex_yytext_pointer = yes; then
4788
4789 cat >>confdefs.h <<\_ACEOF
4790 #define YYTEXT_POINTER 1
4791 _ACEOF
4792
4793 fi
4794
4795 fi
4796
4797 for ac_prog in $LEX flex lex
4798 do
4799   # Extract the first word of "$ac_prog", so it can be a program name with args.
4800 set dummy $ac_prog; ac_word=$2
4801 echo "$as_me:$LINENO: checking for $ac_word" >&5
4802 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4803 if test "${ac_cv_prog_XLEX+set}" = set; then
4804   echo $ECHO_N "(cached) $ECHO_C" >&6
4805 else
4806   if test -n "$XLEX"; then
4807   ac_cv_prog_XLEX="$XLEX" # Let the user override the test.
4808 else
4809 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4810 for as_dir in $PATH
4811 do
4812   IFS=$as_save_IFS
4813   test -z "$as_dir" && as_dir=.
4814   for ac_exec_ext in '' $ac_executable_extensions; do
4815   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4816     ac_cv_prog_XLEX="$ac_prog"
4817     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4818     break 2
4819   fi
4820 done
4821 done
4822
4823 fi
4824 fi
4825 XLEX=$ac_cv_prog_XLEX
4826 if test -n "$XLEX"; then
4827   echo "$as_me:$LINENO: result: $XLEX" >&5
4828 echo "${ECHO_T}$XLEX" >&6
4829 else
4830   echo "$as_me:$LINENO: result: no" >&5
4831 echo "${ECHO_T}no" >&6
4832 fi
4833
4834   test -n "$XLEX" && break
4835 done
4836 test -n "$XLEX" || XLEX="none"
4837
4838 if test "$XLEX" = "none"
4839 then
4840   { { echo "$as_me:$LINENO: error: no suitable lex found. Please install the 'flex' package." >&5
4841 echo "$as_me: error: no suitable lex found. Please install the 'flex' package." >&2;}
4842    { (exit 1); exit 1; }; }
4843 fi
4844
4845 for ac_prog in bison
4846 do
4847   # Extract the first word of "$ac_prog", so it can be a program name with args.
4848 set dummy $ac_prog; 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_BISON+set}" = set; then
4852   echo $ECHO_N "(cached) $ECHO_C" >&6
4853 else
4854   if test -n "$BISON"; then
4855   ac_cv_prog_BISON="$BISON" # 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_BISON="$ac_prog"
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 fi
4872 fi
4873 BISON=$ac_cv_prog_BISON
4874 if test -n "$BISON"; then
4875   echo "$as_me:$LINENO: result: $BISON" >&5
4876 echo "${ECHO_T}$BISON" >&6
4877 else
4878   echo "$as_me:$LINENO: result: no" >&5
4879 echo "${ECHO_T}no" >&6
4880 fi
4881
4882   test -n "$BISON" && break
4883 done
4884 test -n "$BISON" || BISON="none"
4885
4886 if test "$BISON" = "none"
4887 then
4888   { { echo "$as_me:$LINENO: error: no suitable bison found. Please install the 'bison' package." >&5
4889 echo "$as_me: error: no suitable bison found. Please install the 'bison' package." >&2;}
4890    { (exit 1); exit 1; }; }
4891 fi
4892
4893 if test -n "$ac_tool_prefix"; then
4894   for ac_prog in gas as
4895   do
4896     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4897 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4898 echo "$as_me:$LINENO: checking for $ac_word" >&5
4899 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4900 if test "${ac_cv_prog_AS+set}" = set; then
4901   echo $ECHO_N "(cached) $ECHO_C" >&6
4902 else
4903   if test -n "$AS"; then
4904   ac_cv_prog_AS="$AS" # Let the user override the test.
4905 else
4906 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4907 for as_dir in $PATH
4908 do
4909   IFS=$as_save_IFS
4910   test -z "$as_dir" && as_dir=.
4911   for ac_exec_ext in '' $ac_executable_extensions; do
4912   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4913     ac_cv_prog_AS="$ac_tool_prefix$ac_prog"
4914     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4915     break 2
4916   fi
4917 done
4918 done
4919
4920 fi
4921 fi
4922 AS=$ac_cv_prog_AS
4923 if test -n "$AS"; then
4924   echo "$as_me:$LINENO: result: $AS" >&5
4925 echo "${ECHO_T}$AS" >&6
4926 else
4927   echo "$as_me:$LINENO: result: no" >&5
4928 echo "${ECHO_T}no" >&6
4929 fi
4930
4931     test -n "$AS" && break
4932   done
4933 fi
4934 if test -z "$AS"; then
4935   ac_ct_AS=$AS
4936   for ac_prog in gas as
4937 do
4938   # Extract the first word of "$ac_prog", so it can be a program name with args.
4939 set dummy $ac_prog; ac_word=$2
4940 echo "$as_me:$LINENO: checking for $ac_word" >&5
4941 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4942 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
4943   echo $ECHO_N "(cached) $ECHO_C" >&6
4944 else
4945   if test -n "$ac_ct_AS"; then
4946   ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
4947 else
4948 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4949 for as_dir in $PATH
4950 do
4951   IFS=$as_save_IFS
4952   test -z "$as_dir" && as_dir=.
4953   for ac_exec_ext in '' $ac_executable_extensions; do
4954   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4955     ac_cv_prog_ac_ct_AS="$ac_prog"
4956     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4957     break 2
4958   fi
4959 done
4960 done
4961
4962 fi
4963 fi
4964 ac_ct_AS=$ac_cv_prog_ac_ct_AS
4965 if test -n "$ac_ct_AS"; then
4966   echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
4967 echo "${ECHO_T}$ac_ct_AS" >&6
4968 else
4969   echo "$as_me:$LINENO: result: no" >&5
4970 echo "${ECHO_T}no" >&6
4971 fi
4972
4973   test -n "$ac_ct_AS" && break
4974 done
4975 test -n "$ac_ct_AS" || ac_ct_AS="as"
4976
4977   AS=$ac_ct_AS
4978 fi
4979
4980 if test -n "$ac_tool_prefix"; then
4981   # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
4982 set dummy ${ac_tool_prefix}ld; ac_word=$2
4983 echo "$as_me:$LINENO: checking for $ac_word" >&5
4984 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4985 if test "${ac_cv_prog_LD+set}" = set; then
4986   echo $ECHO_N "(cached) $ECHO_C" >&6
4987 else
4988   if test -n "$LD"; then
4989   ac_cv_prog_LD="$LD" # Let the user override the test.
4990 else
4991 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4992 for as_dir in $PATH
4993 do
4994   IFS=$as_save_IFS
4995   test -z "$as_dir" && as_dir=.
4996   for ac_exec_ext in '' $ac_executable_extensions; do
4997   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4998     ac_cv_prog_LD="${ac_tool_prefix}ld"
4999     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5000     break 2
5001   fi
5002 done
5003 done
5004
5005 fi
5006 fi
5007 LD=$ac_cv_prog_LD
5008 if test -n "$LD"; then
5009   echo "$as_me:$LINENO: result: $LD" >&5
5010 echo "${ECHO_T}$LD" >&6
5011 else
5012   echo "$as_me:$LINENO: result: no" >&5
5013 echo "${ECHO_T}no" >&6
5014 fi
5015
5016 fi
5017 if test -z "$ac_cv_prog_LD"; then
5018   ac_ct_LD=$LD
5019   # Extract the first word of "ld", so it can be a program name with args.
5020 set dummy ld; ac_word=$2
5021 echo "$as_me:$LINENO: checking for $ac_word" >&5
5022 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5023 if test "${ac_cv_prog_ac_ct_LD+set}" = set; then
5024   echo $ECHO_N "(cached) $ECHO_C" >&6
5025 else
5026   if test -n "$ac_ct_LD"; then
5027   ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test.
5028 else
5029 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5030 for as_dir in $PATH
5031 do
5032   IFS=$as_save_IFS
5033   test -z "$as_dir" && as_dir=.
5034   for ac_exec_ext in '' $ac_executable_extensions; do
5035   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5036     ac_cv_prog_ac_ct_LD="ld"
5037     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5038     break 2
5039   fi
5040 done
5041 done
5042
5043   test -z "$ac_cv_prog_ac_ct_LD" && ac_cv_prog_ac_ct_LD="ld"
5044 fi
5045 fi
5046 ac_ct_LD=$ac_cv_prog_ac_ct_LD
5047 if test -n "$ac_ct_LD"; then
5048   echo "$as_me:$LINENO: result: $ac_ct_LD" >&5
5049 echo "${ECHO_T}$ac_ct_LD" >&6
5050 else
5051   echo "$as_me:$LINENO: result: no" >&5
5052 echo "${ECHO_T}no" >&6
5053 fi
5054
5055   LD=$ac_ct_LD
5056 else
5057   LD="$ac_cv_prog_LD"
5058 fi
5059
5060 if test -n "$ac_tool_prefix"; then
5061   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5062 set dummy ${ac_tool_prefix}ar; ac_word=$2
5063 echo "$as_me:$LINENO: checking for $ac_word" >&5
5064 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5065 if test "${ac_cv_prog_AR+set}" = set; then
5066   echo $ECHO_N "(cached) $ECHO_C" >&6
5067 else
5068   if test -n "$AR"; then
5069   ac_cv_prog_AR="$AR" # Let the user override the test.
5070 else
5071 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5072 for as_dir in $PATH
5073 do
5074   IFS=$as_save_IFS
5075   test -z "$as_dir" && as_dir=.
5076   for ac_exec_ext in '' $ac_executable_extensions; do
5077   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5078     ac_cv_prog_AR="${ac_tool_prefix}ar"
5079     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5080     break 2
5081   fi
5082 done
5083 done
5084
5085 fi
5086 fi
5087 AR=$ac_cv_prog_AR
5088 if test -n "$AR"; then
5089   echo "$as_me:$LINENO: result: $AR" >&5
5090 echo "${ECHO_T}$AR" >&6
5091 else
5092   echo "$as_me:$LINENO: result: no" >&5
5093 echo "${ECHO_T}no" >&6
5094 fi
5095
5096 fi
5097 if test -z "$ac_cv_prog_AR"; then
5098   ac_ct_AR=$AR
5099   # Extract the first word of "ar", so it can be a program name with args.
5100 set dummy ar; ac_word=$2
5101 echo "$as_me:$LINENO: checking for $ac_word" >&5
5102 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5103 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5104   echo $ECHO_N "(cached) $ECHO_C" >&6
5105 else
5106   if test -n "$ac_ct_AR"; then
5107   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5108 else
5109 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5110 for as_dir in $PATH
5111 do
5112   IFS=$as_save_IFS
5113   test -z "$as_dir" && as_dir=.
5114   for ac_exec_ext in '' $ac_executable_extensions; do
5115   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5116     ac_cv_prog_ac_ct_AR="ar"
5117     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5118     break 2
5119   fi
5120 done
5121 done
5122
5123   test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar"
5124 fi
5125 fi
5126 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5127 if test -n "$ac_ct_AR"; then
5128   echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5129 echo "${ECHO_T}$ac_ct_AR" >&6
5130 else
5131   echo "$as_me:$LINENO: result: no" >&5
5132 echo "${ECHO_T}no" >&6
5133 fi
5134
5135   AR=$ac_ct_AR
5136 else
5137   AR="$ac_cv_prog_AR"
5138 fi
5139
5140 if test -n "$ac_tool_prefix"; then
5141   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5142 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5143 echo "$as_me:$LINENO: checking for $ac_word" >&5
5144 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5145 if test "${ac_cv_prog_RANLIB+set}" = set; then
5146   echo $ECHO_N "(cached) $ECHO_C" >&6
5147 else
5148   if test -n "$RANLIB"; then
5149   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5150 else
5151 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5152 for as_dir in $PATH
5153 do
5154   IFS=$as_save_IFS
5155   test -z "$as_dir" && as_dir=.
5156   for ac_exec_ext in '' $ac_executable_extensions; do
5157   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5158     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5159     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5160     break 2
5161   fi
5162 done
5163 done
5164
5165 fi
5166 fi
5167 RANLIB=$ac_cv_prog_RANLIB
5168 if test -n "$RANLIB"; then
5169   echo "$as_me:$LINENO: result: $RANLIB" >&5
5170 echo "${ECHO_T}$RANLIB" >&6
5171 else
5172   echo "$as_me:$LINENO: result: no" >&5
5173 echo "${ECHO_T}no" >&6
5174 fi
5175
5176 fi
5177 if test -z "$ac_cv_prog_RANLIB"; then
5178   ac_ct_RANLIB=$RANLIB
5179   # Extract the first word of "ranlib", so it can be a program name with args.
5180 set dummy ranlib; ac_word=$2
5181 echo "$as_me:$LINENO: checking for $ac_word" >&5
5182 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5183 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5184   echo $ECHO_N "(cached) $ECHO_C" >&6
5185 else
5186   if test -n "$ac_ct_RANLIB"; then
5187   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5188 else
5189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5190 for as_dir in $PATH
5191 do
5192   IFS=$as_save_IFS
5193   test -z "$as_dir" && as_dir=.
5194   for ac_exec_ext in '' $ac_executable_extensions; do
5195   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5196     ac_cv_prog_ac_ct_RANLIB="ranlib"
5197     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5198     break 2
5199   fi
5200 done
5201 done
5202
5203   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5204 fi
5205 fi
5206 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5207 if test -n "$ac_ct_RANLIB"; then
5208   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5209 echo "${ECHO_T}$ac_ct_RANLIB" >&6
5210 else
5211   echo "$as_me:$LINENO: result: no" >&5
5212 echo "${ECHO_T}no" >&6
5213 fi
5214
5215   RANLIB=$ac_ct_RANLIB
5216 else
5217   RANLIB="$ac_cv_prog_RANLIB"
5218 fi
5219
5220 if test -n "$ac_tool_prefix"; then
5221   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5222 set dummy ${ac_tool_prefix}strip; ac_word=$2
5223 echo "$as_me:$LINENO: checking for $ac_word" >&5
5224 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5225 if test "${ac_cv_prog_STRIP+set}" = set; then
5226   echo $ECHO_N "(cached) $ECHO_C" >&6
5227 else
5228   if test -n "$STRIP"; then
5229   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5230 else
5231 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5232 for as_dir in $PATH
5233 do
5234   IFS=$as_save_IFS
5235   test -z "$as_dir" && as_dir=.
5236   for ac_exec_ext in '' $ac_executable_extensions; do
5237   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5238     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5239     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5240     break 2
5241   fi
5242 done
5243 done
5244
5245 fi
5246 fi
5247 STRIP=$ac_cv_prog_STRIP
5248 if test -n "$STRIP"; then
5249   echo "$as_me:$LINENO: result: $STRIP" >&5
5250 echo "${ECHO_T}$STRIP" >&6
5251 else
5252   echo "$as_me:$LINENO: result: no" >&5
5253 echo "${ECHO_T}no" >&6
5254 fi
5255
5256 fi
5257 if test -z "$ac_cv_prog_STRIP"; then
5258   ac_ct_STRIP=$STRIP
5259   # Extract the first word of "strip", so it can be a program name with args.
5260 set dummy strip; ac_word=$2
5261 echo "$as_me:$LINENO: checking for $ac_word" >&5
5262 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5263 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5264   echo $ECHO_N "(cached) $ECHO_C" >&6
5265 else
5266   if test -n "$ac_ct_STRIP"; then
5267   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5268 else
5269 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5270 for as_dir in $PATH
5271 do
5272   IFS=$as_save_IFS
5273   test -z "$as_dir" && as_dir=.
5274   for ac_exec_ext in '' $ac_executable_extensions; do
5275   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5276     ac_cv_prog_ac_ct_STRIP="strip"
5277     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5278     break 2
5279   fi
5280 done
5281 done
5282
5283   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP="strip"
5284 fi
5285 fi
5286 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5287 if test -n "$ac_ct_STRIP"; then
5288   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5289 echo "${ECHO_T}$ac_ct_STRIP" >&6
5290 else
5291   echo "$as_me:$LINENO: result: no" >&5
5292 echo "${ECHO_T}no" >&6
5293 fi
5294
5295   STRIP=$ac_ct_STRIP
5296 else
5297   STRIP="$ac_cv_prog_STRIP"
5298 fi
5299
5300 if test -n "$ac_tool_prefix"; then
5301   # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
5302 set dummy ${ac_tool_prefix}windres; ac_word=$2
5303 echo "$as_me:$LINENO: checking for $ac_word" >&5
5304 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5305 if test "${ac_cv_prog_WINDRES+set}" = set; then
5306   echo $ECHO_N "(cached) $ECHO_C" >&6
5307 else
5308   if test -n "$WINDRES"; then
5309   ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
5310 else
5311 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5312 for as_dir in $PATH
5313 do
5314   IFS=$as_save_IFS
5315   test -z "$as_dir" && as_dir=.
5316   for ac_exec_ext in '' $ac_executable_extensions; do
5317   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5318     ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
5319     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5320     break 2
5321   fi
5322 done
5323 done
5324
5325 fi
5326 fi
5327 WINDRES=$ac_cv_prog_WINDRES
5328 if test -n "$WINDRES"; then
5329   echo "$as_me:$LINENO: result: $WINDRES" >&5
5330 echo "${ECHO_T}$WINDRES" >&6
5331 else
5332   echo "$as_me:$LINENO: result: no" >&5
5333 echo "${ECHO_T}no" >&6
5334 fi
5335
5336 fi
5337 if test -z "$ac_cv_prog_WINDRES"; then
5338   ac_ct_WINDRES=$WINDRES
5339   # Extract the first word of "windres", so it can be a program name with args.
5340 set dummy windres; ac_word=$2
5341 echo "$as_me:$LINENO: checking for $ac_word" >&5
5342 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5343 if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
5344   echo $ECHO_N "(cached) $ECHO_C" >&6
5345 else
5346   if test -n "$ac_ct_WINDRES"; then
5347   ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
5348 else
5349 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5350 for as_dir in $PATH
5351 do
5352   IFS=$as_save_IFS
5353   test -z "$as_dir" && as_dir=.
5354   for ac_exec_ext in '' $ac_executable_extensions; do
5355   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5356     ac_cv_prog_ac_ct_WINDRES="windres"
5357     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5358     break 2
5359   fi
5360 done
5361 done
5362
5363   test -z "$ac_cv_prog_ac_ct_WINDRES" && ac_cv_prog_ac_ct_WINDRES="false"
5364 fi
5365 fi
5366 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
5367 if test -n "$ac_ct_WINDRES"; then
5368   echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
5369 echo "${ECHO_T}$ac_ct_WINDRES" >&6
5370 else
5371   echo "$as_me:$LINENO: result: no" >&5
5372 echo "${ECHO_T}no" >&6
5373 fi
5374
5375   WINDRES=$ac_ct_WINDRES
5376 else
5377   WINDRES="$ac_cv_prog_WINDRES"
5378 fi
5379
5380 echo "$as_me:$LINENO: checking whether ln -s works" >&5
5381 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
5382 LN_S=$as_ln_s
5383 if test "$LN_S" = "ln -s"; then
5384   echo "$as_me:$LINENO: result: yes" >&5
5385 echo "${ECHO_T}yes" >&6
5386 else
5387   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5388 echo "${ECHO_T}no, using $LN_S" >&6
5389 fi
5390
5391 echo "$as_me:$LINENO: checking whether ln works" >&5
5392 echo $ECHO_N "checking whether ln works... $ECHO_C" >&6
5393 rm -f conf$$ conf$$.file
5394 echo >conf$$.file
5395 if ln conf$$.file conf$$ 2>/dev/null; then
5396   LN=ln
5397
5398   echo "$as_me:$LINENO: result: yes" >&5
5399 echo "${ECHO_T}yes" >&6
5400 else
5401   LN="cp -p"
5402
5403   echo "$as_me:$LINENO: result: no, using $LN" >&5
5404 echo "${ECHO_T}no, using $LN" >&6
5405 fi
5406 rm -f conf$$ conf$$.file
5407 echo "$as_me:$LINENO: checking for egrep" >&5
5408 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
5409 if test "${ac_cv_prog_egrep+set}" = set; then
5410   echo $ECHO_N "(cached) $ECHO_C" >&6
5411 else
5412   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
5413     then ac_cv_prog_egrep='grep -E'
5414     else ac_cv_prog_egrep='egrep'
5415     fi
5416 fi
5417 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
5418 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
5419  EGREP=$ac_cv_prog_egrep
5420
5421
5422 # Extract the first word of "ldconfig", so it can be a program name with args.
5423 set dummy ldconfig; ac_word=$2
5424 echo "$as_me:$LINENO: checking for $ac_word" >&5
5425 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5426 if test "${ac_cv_path_LDCONFIG+set}" = set; then
5427   echo $ECHO_N "(cached) $ECHO_C" >&6
5428 else
5429   case $LDCONFIG in
5430   [\\/]* | ?:[\\/]*)
5431   ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
5432   ;;
5433   *)
5434   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5435 for as_dir in /sbin /usr/sbin $PATH
5436 do
5437   IFS=$as_save_IFS
5438   test -z "$as_dir" && as_dir=.
5439   for ac_exec_ext in '' $ac_executable_extensions; do
5440   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5441     ac_cv_path_LDCONFIG="$as_dir/$ac_word$ac_exec_ext"
5442     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5443     break 2
5444   fi
5445 done
5446 done
5447
5448   test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG="true"
5449   ;;
5450 esac
5451 fi
5452 LDCONFIG=$ac_cv_path_LDCONFIG
5453
5454 if test -n "$LDCONFIG"; then
5455   echo "$as_me:$LINENO: result: $LDCONFIG" >&5
5456 echo "${ECHO_T}$LDCONFIG" >&6
5457 else
5458   echo "$as_me:$LINENO: result: no" >&5
5459 echo "${ECHO_T}no" >&6
5460 fi
5461
5462 # Find a good install program.  We prefer a C program (faster),
5463 # so one script is as good as another.  But avoid the broken or
5464 # incompatible versions:
5465 # SysV /etc/install, /usr/sbin/install
5466 # SunOS /usr/etc/install
5467 # IRIX /sbin/install
5468 # AIX /bin/install
5469 # AmigaOS /C/install, which installs bootblocks on floppy discs
5470 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5471 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
5472 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5473 # OS/2's system install, which has a completely different semantic
5474 # ./install, which can be erroneously created by make from ./install.sh.
5475 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
5476 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
5477 if test -z "$INSTALL"; then
5478 if test "${ac_cv_path_install+set}" = set; then
5479   echo $ECHO_N "(cached) $ECHO_C" >&6
5480 else
5481   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5482 for as_dir in $PATH
5483 do
5484   IFS=$as_save_IFS
5485   test -z "$as_dir" && as_dir=.
5486   # Account for people who put trailing slashes in PATH elements.
5487 case $as_dir/ in
5488   ./ | .// | /cC/* | \
5489   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5490   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
5491   /usr/ucb/* ) ;;
5492   *)
5493     # OSF1 and SCO ODT 3.0 have their own names for install.
5494     # Don't use installbsd from OSF since it installs stuff as root
5495     # by default.
5496     for ac_prog in ginstall scoinst install; do
5497       for ac_exec_ext in '' $ac_executable_extensions; do
5498         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
5499           if test $ac_prog = install &&
5500             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5501             # AIX install.  It has an incompatible calling convention.
5502             :
5503           elif test $ac_prog = install &&
5504             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5505             # program-specific install script used by HP pwplus--don't use.
5506             :
5507           else
5508             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5509             break 3
5510           fi
5511         fi
5512       done
5513     done
5514     ;;
5515 esac
5516 done
5517
5518
5519 fi
5520   if test "${ac_cv_path_install+set}" = set; then
5521     INSTALL=$ac_cv_path_install
5522   else
5523     # As a last resort, use the slow shell script.  We don't cache a
5524     # path for INSTALL within a source directory, because that will
5525     # break other packages using the cache if that directory is
5526     # removed, or if the path is relative.
5527     INSTALL=$ac_install_sh
5528   fi
5529 fi
5530 echo "$as_me:$LINENO: result: $INSTALL" >&5
5531 echo "${ECHO_T}$INSTALL" >&6
5532
5533 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5534 # It thinks the first close brace ends the variable substitution.
5535 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5536
5537 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5538
5539 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5540
5541 case "$INSTALL" in
5542   [\\/$]* | ?:[\\/]* ) ;;
5543   *)  INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;;
5544 esac
5545
5546 for ac_prog in lclint lint
5547 do
5548   # Extract the first word of "$ac_prog", so it can be a program name with args.
5549 set dummy $ac_prog; ac_word=$2
5550 echo "$as_me:$LINENO: checking for $ac_word" >&5
5551 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5552 if test "${ac_cv_prog_LINT+set}" = set; then
5553   echo $ECHO_N "(cached) $ECHO_C" >&6
5554 else
5555   if test -n "$LINT"; then
5556   ac_cv_prog_LINT="$LINT" # Let the user override the test.
5557 else
5558 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5559 for as_dir in $PATH
5560 do
5561   IFS=$as_save_IFS
5562   test -z "$as_dir" && as_dir=.
5563   for ac_exec_ext in '' $ac_executable_extensions; do
5564   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5565     ac_cv_prog_LINT="$ac_prog"
5566     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5567     break 2
5568   fi
5569 done
5570 done
5571
5572 fi
5573 fi
5574 LINT=$ac_cv_prog_LINT
5575 if test -n "$LINT"; then
5576   echo "$as_me:$LINENO: result: $LINT" >&5
5577 echo "${ECHO_T}$LINT" >&6
5578 else
5579   echo "$as_me:$LINENO: result: no" >&5
5580 echo "${ECHO_T}no" >&6
5581 fi
5582
5583   test -n "$LINT" && break
5584 done
5585
5586 if test "$LINT" = "lint"
5587 then
5588   LINTFLAGS="$LINTFLAGS -errchk=%all,no%longptr64 -errhdr=%user -Ncheck=macro -Nlevel=4"
5589   fi
5590
5591
5592
5593 for ac_prog in fontforge
5594 do
5595   # Extract the first word of "$ac_prog", so it can be a program name with args.
5596 set dummy $ac_prog; ac_word=$2
5597 echo "$as_me:$LINENO: checking for $ac_word" >&5
5598 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5599 if test "${ac_cv_prog_FONTFORGE+set}" = set; then
5600   echo $ECHO_N "(cached) $ECHO_C" >&6
5601 else
5602   if test -n "$FONTFORGE"; then
5603   ac_cv_prog_FONTFORGE="$FONTFORGE" # Let the user override the test.
5604 else
5605 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5606 for as_dir in $PATH
5607 do
5608   IFS=$as_save_IFS
5609   test -z "$as_dir" && as_dir=.
5610   for ac_exec_ext in '' $ac_executable_extensions; do
5611   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5612     ac_cv_prog_FONTFORGE="$ac_prog"
5613     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5614     break 2
5615   fi
5616 done
5617 done
5618
5619 fi
5620 fi
5621 FONTFORGE=$ac_cv_prog_FONTFORGE
5622 if test -n "$FONTFORGE"; then
5623   echo "$as_me:$LINENO: result: $FONTFORGE" >&5
5624 echo "${ECHO_T}$FONTFORGE" >&6
5625 else
5626   echo "$as_me:$LINENO: result: no" >&5
5627 echo "${ECHO_T}no" >&6
5628 fi
5629
5630   test -n "$FONTFORGE" && break
5631 done
5632 test -n "$FONTFORGE" || FONTFORGE="false"
5633
5634
5635
5636
5637 echo "$as_me:$LINENO: checking for i386_set_ldt in -li386" >&5
5638 echo $ECHO_N "checking for i386_set_ldt in -li386... $ECHO_C" >&6
5639 if test "${ac_cv_lib_i386_i386_set_ldt+set}" = set; then
5640   echo $ECHO_N "(cached) $ECHO_C" >&6
5641 else
5642   ac_check_lib_save_LIBS=$LIBS
5643 LIBS="-li386  $LIBS"
5644 cat >conftest.$ac_ext <<_ACEOF
5645 /* confdefs.h.  */
5646 _ACEOF
5647 cat confdefs.h >>conftest.$ac_ext
5648 cat >>conftest.$ac_ext <<_ACEOF
5649 /* end confdefs.h.  */
5650
5651 /* Override any gcc2 internal prototype to avoid an error.  */
5652 #ifdef __cplusplus
5653 extern "C"
5654 #endif
5655 /* We use char because int might match the return type of a gcc2
5656    builtin and then its argument prototype would still apply.  */
5657 char i386_set_ldt ();
5658 int
5659 main ()
5660 {
5661 i386_set_ldt ();
5662   ;
5663   return 0;
5664 }
5665 _ACEOF
5666 rm -f conftest.$ac_objext conftest$ac_exeext
5667 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5668   (eval $ac_link) 2>conftest.er1
5669   ac_status=$?
5670   grep -v '^ *+' conftest.er1 >conftest.err
5671   rm -f conftest.er1
5672   cat conftest.err >&5
5673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5674   (exit $ac_status); } &&
5675          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
5676   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5677   (eval $ac_try) 2>&5
5678   ac_status=$?
5679   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5680   (exit $ac_status); }; } &&
5681          { ac_try='test -s conftest$ac_exeext'
5682   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5683   (eval $ac_try) 2>&5
5684   ac_status=$?
5685   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5686   (exit $ac_status); }; }; then
5687   ac_cv_lib_i386_i386_set_ldt=yes
5688 else
5689   echo "$as_me: failed program was:" >&5
5690 sed 's/^/| /' conftest.$ac_ext >&5
5691
5692 ac_cv_lib_i386_i386_set_ldt=no
5693 fi
5694 rm -f conftest.err conftest.$ac_objext \
5695       conftest$ac_exeext conftest.$ac_ext
5696 LIBS=$ac_check_lib_save_LIBS
5697 fi
5698 echo "$as_me:$LINENO: result: $ac_cv_lib_i386_i386_set_ldt" >&5
5699 echo "${ECHO_T}$ac_cv_lib_i386_i386_set_ldt" >&6
5700 if test $ac_cv_lib_i386_i386_set_ldt = yes; then
5701   cat >>confdefs.h <<_ACEOF
5702 #define HAVE_LIBI386 1
5703 _ACEOF
5704
5705   LIBS="-li386 $LIBS"
5706
5707 fi
5708
5709
5710 echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5
5711 echo $ECHO_N "checking for _oss_ioctl in -lossaudio... $ECHO_C" >&6
5712 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then
5713   echo $ECHO_N "(cached) $ECHO_C" >&6
5714 else
5715   ac_check_lib_save_LIBS=$LIBS
5716 LIBS="-lossaudio  $LIBS"
5717 cat >conftest.$ac_ext <<_ACEOF
5718 /* confdefs.h.  */
5719 _ACEOF
5720 cat confdefs.h >>conftest.$ac_ext
5721 cat >>conftest.$ac_ext <<_ACEOF
5722 /* end confdefs.h.  */
5723
5724 /* Override any gcc2 internal prototype to avoid an error.  */
5725 #ifdef __cplusplus
5726 extern "C"
5727 #endif
5728 /* We use char because int might match the return type of a gcc2
5729    builtin and then its argument prototype would still apply.  */
5730 char _oss_ioctl ();
5731 int
5732 main ()
5733 {
5734 _oss_ioctl ();
5735   ;
5736   return 0;
5737 }
5738 _ACEOF
5739 rm -f conftest.$ac_objext conftest$ac_exeext
5740 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5741   (eval $ac_link) 2>conftest.er1
5742   ac_status=$?
5743   grep -v '^ *+' conftest.er1 >conftest.err
5744   rm -f conftest.er1
5745   cat conftest.err >&5
5746   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5747   (exit $ac_status); } &&
5748          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
5749   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5750   (eval $ac_try) 2>&5
5751   ac_status=$?
5752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5753   (exit $ac_status); }; } &&
5754          { ac_try='test -s conftest$ac_exeext'
5755   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5756   (eval $ac_try) 2>&5
5757   ac_status=$?
5758   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5759   (exit $ac_status); }; }; then
5760   ac_cv_lib_ossaudio__oss_ioctl=yes
5761 else
5762   echo "$as_me: failed program was:" >&5
5763 sed 's/^/| /' conftest.$ac_ext >&5
5764
5765 ac_cv_lib_ossaudio__oss_ioctl=no
5766 fi
5767 rm -f conftest.err conftest.$ac_objext \
5768       conftest$ac_exeext conftest.$ac_ext
5769 LIBS=$ac_check_lib_save_LIBS
5770 fi
5771 echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
5772 echo "${ECHO_T}$ac_cv_lib_ossaudio__oss_ioctl" >&6
5773 if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then
5774   cat >>confdefs.h <<_ACEOF
5775 #define HAVE_LIBOSSAUDIO 1
5776 _ACEOF
5777
5778   LIBS="-lossaudio $LIBS"
5779
5780 fi
5781
5782
5783 for ac_func in iswalnum
5784 do
5785 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5786 echo "$as_me:$LINENO: checking for $ac_func" >&5
5787 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5788 if eval "test \"\${$as_ac_var+set}\" = set"; then
5789   echo $ECHO_N "(cached) $ECHO_C" >&6
5790 else
5791   cat >conftest.$ac_ext <<_ACEOF
5792 /* confdefs.h.  */
5793 _ACEOF
5794 cat confdefs.h >>conftest.$ac_ext
5795 cat >>conftest.$ac_ext <<_ACEOF
5796 /* end confdefs.h.  */
5797 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5798    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
5799 #define $ac_func innocuous_$ac_func
5800
5801 /* System header to define __stub macros and hopefully few prototypes,
5802     which can conflict with char $ac_func (); below.
5803     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5804     <limits.h> exists even on freestanding compilers.  */
5805
5806 #ifdef __STDC__
5807 # include <limits.h>
5808 #else
5809 # include <assert.h>
5810 #endif
5811
5812 #undef $ac_func
5813
5814 /* Override any gcc2 internal prototype to avoid an error.  */
5815 #ifdef __cplusplus
5816 extern "C"
5817 {
5818 #endif
5819 /* We use char because int might match the return type of a gcc2
5820    builtin and then its argument prototype would still apply.  */
5821 char $ac_func ();
5822 /* The GNU C library defines this for functions which it implements
5823     to always fail with ENOSYS.  Some functions are actually named
5824     something starting with __ and the normal name is an alias.  */
5825 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5826 choke me
5827 #else
5828 char (*f) () = $ac_func;
5829 #endif
5830 #ifdef __cplusplus
5831 }
5832 #endif
5833
5834 int
5835 main ()
5836 {
5837 return f != $ac_func;
5838   ;
5839   return 0;
5840 }
5841 _ACEOF
5842 rm -f conftest.$ac_objext conftest$ac_exeext
5843 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5844   (eval $ac_link) 2>conftest.er1
5845   ac_status=$?
5846   grep -v '^ *+' conftest.er1 >conftest.err
5847   rm -f conftest.er1
5848   cat conftest.err >&5
5849   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5850   (exit $ac_status); } &&
5851          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
5852   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5853   (eval $ac_try) 2>&5
5854   ac_status=$?
5855   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5856   (exit $ac_status); }; } &&
5857          { ac_try='test -s conftest$ac_exeext'
5858   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5859   (eval $ac_try) 2>&5
5860   ac_status=$?
5861   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5862   (exit $ac_status); }; }; then
5863   eval "$as_ac_var=yes"
5864 else
5865   echo "$as_me: failed program was:" >&5
5866 sed 's/^/| /' conftest.$ac_ext >&5
5867
5868 eval "$as_ac_var=no"
5869 fi
5870 rm -f conftest.err conftest.$ac_objext \
5871       conftest$ac_exeext conftest.$ac_ext
5872 fi
5873 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5874 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5875 if test `eval echo '${'$as_ac_var'}'` = yes; then
5876   cat >>confdefs.h <<_ACEOF
5877 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5878 _ACEOF
5879
5880 else
5881
5882 echo "$as_me:$LINENO: checking for iswalnum in -lw" >&5
5883 echo $ECHO_N "checking for iswalnum in -lw... $ECHO_C" >&6
5884 if test "${ac_cv_lib_w_iswalnum+set}" = set; then
5885   echo $ECHO_N "(cached) $ECHO_C" >&6
5886 else
5887   ac_check_lib_save_LIBS=$LIBS
5888 LIBS="-lw  $LIBS"
5889 cat >conftest.$ac_ext <<_ACEOF
5890 /* confdefs.h.  */
5891 _ACEOF
5892 cat confdefs.h >>conftest.$ac_ext
5893 cat >>conftest.$ac_ext <<_ACEOF
5894 /* end confdefs.h.  */
5895
5896 /* Override any gcc2 internal prototype to avoid an error.  */
5897 #ifdef __cplusplus
5898 extern "C"
5899 #endif
5900 /* We use char because int might match the return type of a gcc2
5901    builtin and then its argument prototype would still apply.  */
5902 char iswalnum ();
5903 int
5904 main ()
5905 {
5906 iswalnum ();
5907   ;
5908   return 0;
5909 }
5910 _ACEOF
5911 rm -f conftest.$ac_objext conftest$ac_exeext
5912 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5913   (eval $ac_link) 2>conftest.er1
5914   ac_status=$?
5915   grep -v '^ *+' conftest.er1 >conftest.err
5916   rm -f conftest.er1
5917   cat conftest.err >&5
5918   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5919   (exit $ac_status); } &&
5920          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
5921   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5922   (eval $ac_try) 2>&5
5923   ac_status=$?
5924   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5925   (exit $ac_status); }; } &&
5926          { ac_try='test -s conftest$ac_exeext'
5927   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5928   (eval $ac_try) 2>&5
5929   ac_status=$?
5930   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5931   (exit $ac_status); }; }; then
5932   ac_cv_lib_w_iswalnum=yes
5933 else
5934   echo "$as_me: failed program was:" >&5
5935 sed 's/^/| /' conftest.$ac_ext >&5
5936
5937 ac_cv_lib_w_iswalnum=no
5938 fi
5939 rm -f conftest.err conftest.$ac_objext \
5940       conftest$ac_exeext conftest.$ac_ext
5941 LIBS=$ac_check_lib_save_LIBS
5942 fi
5943 echo "$as_me:$LINENO: result: $ac_cv_lib_w_iswalnum" >&5
5944 echo "${ECHO_T}$ac_cv_lib_w_iswalnum" >&6
5945 if test $ac_cv_lib_w_iswalnum = yes; then
5946   cat >>confdefs.h <<_ACEOF
5947 #define HAVE_LIBW 1
5948 _ACEOF
5949
5950   LIBS="-lw $LIBS"
5951
5952 fi
5953
5954 fi
5955 done
5956
5957
5958 for ac_func in gethostbyname
5959 do
5960 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5961 echo "$as_me:$LINENO: checking for $ac_func" >&5
5962 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5963 if eval "test \"\${$as_ac_var+set}\" = set"; then
5964   echo $ECHO_N "(cached) $ECHO_C" >&6
5965 else
5966   cat >conftest.$ac_ext <<_ACEOF
5967 /* confdefs.h.  */
5968 _ACEOF
5969 cat confdefs.h >>conftest.$ac_ext
5970 cat >>conftest.$ac_ext <<_ACEOF
5971 /* end confdefs.h.  */
5972 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5973    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
5974 #define $ac_func innocuous_$ac_func
5975
5976 /* System header to define __stub macros and hopefully few prototypes,
5977     which can conflict with char $ac_func (); below.
5978     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5979     <limits.h> exists even on freestanding compilers.  */
5980
5981 #ifdef __STDC__
5982 # include <limits.h>
5983 #else
5984 # include <assert.h>
5985 #endif
5986
5987 #undef $ac_func
5988
5989 /* Override any gcc2 internal prototype to avoid an error.  */
5990 #ifdef __cplusplus
5991 extern "C"
5992 {
5993 #endif
5994 /* We use char because int might match the return type of a gcc2
5995    builtin and then its argument prototype would still apply.  */
5996 char $ac_func ();
5997 /* The GNU C library defines this for functions which it implements
5998     to always fail with ENOSYS.  Some functions are actually named
5999     something starting with __ and the normal name is an alias.  */
6000 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6001 choke me
6002 #else
6003 char (*f) () = $ac_func;
6004 #endif
6005 #ifdef __cplusplus
6006 }
6007 #endif
6008
6009 int
6010 main ()
6011 {
6012 return f != $ac_func;
6013   ;
6014   return 0;
6015 }
6016 _ACEOF
6017 rm -f conftest.$ac_objext conftest$ac_exeext
6018 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6019   (eval $ac_link) 2>conftest.er1
6020   ac_status=$?
6021   grep -v '^ *+' conftest.er1 >conftest.err
6022   rm -f conftest.er1
6023   cat conftest.err >&5
6024   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6025   (exit $ac_status); } &&
6026          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6027   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6028   (eval $ac_try) 2>&5
6029   ac_status=$?
6030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6031   (exit $ac_status); }; } &&
6032          { ac_try='test -s conftest$ac_exeext'
6033   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6034   (eval $ac_try) 2>&5
6035   ac_status=$?
6036   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6037   (exit $ac_status); }; }; then
6038   eval "$as_ac_var=yes"
6039 else
6040   echo "$as_me: failed program was:" >&5
6041 sed 's/^/| /' conftest.$ac_ext >&5
6042
6043 eval "$as_ac_var=no"
6044 fi
6045 rm -f conftest.err conftest.$ac_objext \
6046       conftest$ac_exeext conftest.$ac_ext
6047 fi
6048 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6049 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6050 if test `eval echo '${'$as_ac_var'}'` = yes; then
6051   cat >>confdefs.h <<_ACEOF
6052 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6053 _ACEOF
6054
6055 else
6056
6057 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
6058 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
6059 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
6060   echo $ECHO_N "(cached) $ECHO_C" >&6
6061 else
6062   ac_check_lib_save_LIBS=$LIBS
6063 LIBS="-lnsl  $LIBS"
6064 cat >conftest.$ac_ext <<_ACEOF
6065 /* confdefs.h.  */
6066 _ACEOF
6067 cat confdefs.h >>conftest.$ac_ext
6068 cat >>conftest.$ac_ext <<_ACEOF
6069 /* end confdefs.h.  */
6070
6071 /* Override any gcc2 internal prototype to avoid an error.  */
6072 #ifdef __cplusplus
6073 extern "C"
6074 #endif
6075 /* We use char because int might match the return type of a gcc2
6076    builtin and then its argument prototype would still apply.  */
6077 char gethostbyname ();
6078 int
6079 main ()
6080 {
6081 gethostbyname ();
6082   ;
6083   return 0;
6084 }
6085 _ACEOF
6086 rm -f conftest.$ac_objext conftest$ac_exeext
6087 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6088   (eval $ac_link) 2>conftest.er1
6089   ac_status=$?
6090   grep -v '^ *+' conftest.er1 >conftest.err
6091   rm -f conftest.er1
6092   cat conftest.err >&5
6093   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6094   (exit $ac_status); } &&
6095          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6096   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6097   (eval $ac_try) 2>&5
6098   ac_status=$?
6099   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6100   (exit $ac_status); }; } &&
6101          { ac_try='test -s conftest$ac_exeext'
6102   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6103   (eval $ac_try) 2>&5
6104   ac_status=$?
6105   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6106   (exit $ac_status); }; }; then
6107   ac_cv_lib_nsl_gethostbyname=yes
6108 else
6109   echo "$as_me: failed program was:" >&5
6110 sed 's/^/| /' conftest.$ac_ext >&5
6111
6112 ac_cv_lib_nsl_gethostbyname=no
6113 fi
6114 rm -f conftest.err conftest.$ac_objext \
6115       conftest$ac_exeext conftest.$ac_ext
6116 LIBS=$ac_check_lib_save_LIBS
6117 fi
6118 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
6119 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
6120 if test $ac_cv_lib_nsl_gethostbyname = yes; then
6121   cat >>confdefs.h <<_ACEOF
6122 #define HAVE_LIBNSL 1
6123 _ACEOF
6124
6125   LIBS="-lnsl $LIBS"
6126
6127 fi
6128
6129 fi
6130 done
6131
6132
6133 for ac_func in connect
6134 do
6135 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6136 echo "$as_me:$LINENO: checking for $ac_func" >&5
6137 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6138 if eval "test \"\${$as_ac_var+set}\" = set"; then
6139   echo $ECHO_N "(cached) $ECHO_C" >&6
6140 else
6141   cat >conftest.$ac_ext <<_ACEOF
6142 /* confdefs.h.  */
6143 _ACEOF
6144 cat confdefs.h >>conftest.$ac_ext
6145 cat >>conftest.$ac_ext <<_ACEOF
6146 /* end confdefs.h.  */
6147 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6148    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
6149 #define $ac_func innocuous_$ac_func
6150
6151 /* System header to define __stub macros and hopefully few prototypes,
6152     which can conflict with char $ac_func (); below.
6153     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6154     <limits.h> exists even on freestanding compilers.  */
6155
6156 #ifdef __STDC__
6157 # include <limits.h>
6158 #else
6159 # include <assert.h>
6160 #endif
6161
6162 #undef $ac_func
6163
6164 /* Override any gcc2 internal prototype to avoid an error.  */
6165 #ifdef __cplusplus
6166 extern "C"
6167 {
6168 #endif
6169 /* We use char because int might match the return type of a gcc2
6170    builtin and then its argument prototype would still apply.  */
6171 char $ac_func ();
6172 /* The GNU C library defines this for functions which it implements
6173     to always fail with ENOSYS.  Some functions are actually named
6174     something starting with __ and the normal name is an alias.  */
6175 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6176 choke me
6177 #else
6178 char (*f) () = $ac_func;
6179 #endif
6180 #ifdef __cplusplus
6181 }
6182 #endif
6183
6184 int
6185 main ()
6186 {
6187 return f != $ac_func;
6188   ;
6189   return 0;
6190 }
6191 _ACEOF
6192 rm -f conftest.$ac_objext conftest$ac_exeext
6193 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6194   (eval $ac_link) 2>conftest.er1
6195   ac_status=$?
6196   grep -v '^ *+' conftest.er1 >conftest.err
6197   rm -f conftest.er1
6198   cat conftest.err >&5
6199   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6200   (exit $ac_status); } &&
6201          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6202   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6203   (eval $ac_try) 2>&5
6204   ac_status=$?
6205   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6206   (exit $ac_status); }; } &&
6207          { ac_try='test -s conftest$ac_exeext'
6208   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6209   (eval $ac_try) 2>&5
6210   ac_status=$?
6211   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6212   (exit $ac_status); }; }; then
6213   eval "$as_ac_var=yes"
6214 else
6215   echo "$as_me: failed program was:" >&5
6216 sed 's/^/| /' conftest.$ac_ext >&5
6217
6218 eval "$as_ac_var=no"
6219 fi
6220 rm -f conftest.err conftest.$ac_objext \
6221       conftest$ac_exeext conftest.$ac_ext
6222 fi
6223 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6224 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6225 if test `eval echo '${'$as_ac_var'}'` = yes; then
6226   cat >>confdefs.h <<_ACEOF
6227 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6228 _ACEOF
6229
6230 else
6231
6232 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
6233 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
6234 if test "${ac_cv_lib_socket_connect+set}" = set; then
6235   echo $ECHO_N "(cached) $ECHO_C" >&6
6236 else
6237   ac_check_lib_save_LIBS=$LIBS
6238 LIBS="-lsocket  $LIBS"
6239 cat >conftest.$ac_ext <<_ACEOF
6240 /* confdefs.h.  */
6241 _ACEOF
6242 cat confdefs.h >>conftest.$ac_ext
6243 cat >>conftest.$ac_ext <<_ACEOF
6244 /* end confdefs.h.  */
6245
6246 /* Override any gcc2 internal prototype to avoid an error.  */
6247 #ifdef __cplusplus
6248 extern "C"
6249 #endif
6250 /* We use char because int might match the return type of a gcc2
6251    builtin and then its argument prototype would still apply.  */
6252 char connect ();
6253 int
6254 main ()
6255 {
6256 connect ();
6257   ;
6258   return 0;
6259 }
6260 _ACEOF
6261 rm -f conftest.$ac_objext conftest$ac_exeext
6262 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6263   (eval $ac_link) 2>conftest.er1
6264   ac_status=$?
6265   grep -v '^ *+' conftest.er1 >conftest.err
6266   rm -f conftest.er1
6267   cat conftest.err >&5
6268   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6269   (exit $ac_status); } &&
6270          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6271   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6272   (eval $ac_try) 2>&5
6273   ac_status=$?
6274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6275   (exit $ac_status); }; } &&
6276          { ac_try='test -s conftest$ac_exeext'
6277   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6278   (eval $ac_try) 2>&5
6279   ac_status=$?
6280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6281   (exit $ac_status); }; }; then
6282   ac_cv_lib_socket_connect=yes
6283 else
6284   echo "$as_me: failed program was:" >&5
6285 sed 's/^/| /' conftest.$ac_ext >&5
6286
6287 ac_cv_lib_socket_connect=no
6288 fi
6289 rm -f conftest.err conftest.$ac_objext \
6290       conftest$ac_exeext conftest.$ac_ext
6291 LIBS=$ac_check_lib_save_LIBS
6292 fi
6293 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
6294 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
6295 if test $ac_cv_lib_socket_connect = yes; then
6296   cat >>confdefs.h <<_ACEOF
6297 #define HAVE_LIBSOCKET 1
6298 _ACEOF
6299
6300   LIBS="-lsocket $LIBS"
6301
6302 fi
6303
6304 fi
6305 done
6306
6307
6308 for ac_func in inet_aton
6309 do
6310 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6311 echo "$as_me:$LINENO: checking for $ac_func" >&5
6312 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6313 if eval "test \"\${$as_ac_var+set}\" = set"; then
6314   echo $ECHO_N "(cached) $ECHO_C" >&6
6315 else
6316   cat >conftest.$ac_ext <<_ACEOF
6317 /* confdefs.h.  */
6318 _ACEOF
6319 cat confdefs.h >>conftest.$ac_ext
6320 cat >>conftest.$ac_ext <<_ACEOF
6321 /* end confdefs.h.  */
6322 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6323    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
6324 #define $ac_func innocuous_$ac_func
6325
6326 /* System header to define __stub macros and hopefully few prototypes,
6327     which can conflict with char $ac_func (); below.
6328     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6329     <limits.h> exists even on freestanding compilers.  */
6330
6331 #ifdef __STDC__
6332 # include <limits.h>
6333 #else
6334 # include <assert.h>
6335 #endif
6336
6337 #undef $ac_func
6338
6339 /* Override any gcc2 internal prototype to avoid an error.  */
6340 #ifdef __cplusplus
6341 extern "C"
6342 {
6343 #endif
6344 /* We use char because int might match the return type of a gcc2
6345    builtin and then its argument prototype would still apply.  */
6346 char $ac_func ();
6347 /* The GNU C library defines this for functions which it implements
6348     to always fail with ENOSYS.  Some functions are actually named
6349     something starting with __ and the normal name is an alias.  */
6350 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6351 choke me
6352 #else
6353 char (*f) () = $ac_func;
6354 #endif
6355 #ifdef __cplusplus
6356 }
6357 #endif
6358
6359 int
6360 main ()
6361 {
6362 return f != $ac_func;
6363   ;
6364   return 0;
6365 }
6366 _ACEOF
6367 rm -f conftest.$ac_objext conftest$ac_exeext
6368 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6369   (eval $ac_link) 2>conftest.er1
6370   ac_status=$?
6371   grep -v '^ *+' conftest.er1 >conftest.err
6372   rm -f conftest.er1
6373   cat conftest.err >&5
6374   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6375   (exit $ac_status); } &&
6376          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
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); }; } &&
6382          { ac_try='test -s conftest$ac_exeext'
6383   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6384   (eval $ac_try) 2>&5
6385   ac_status=$?
6386   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6387   (exit $ac_status); }; }; then
6388   eval "$as_ac_var=yes"
6389 else
6390   echo "$as_me: failed program was:" >&5
6391 sed 's/^/| /' conftest.$ac_ext >&5
6392
6393 eval "$as_ac_var=no"
6394 fi
6395 rm -f conftest.err conftest.$ac_objext \
6396       conftest$ac_exeext conftest.$ac_ext
6397 fi
6398 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6399 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6400 if test `eval echo '${'$as_ac_var'}'` = yes; then
6401   cat >>confdefs.h <<_ACEOF
6402 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6403 _ACEOF
6404
6405 else
6406
6407 echo "$as_me:$LINENO: checking for inet_aton in -lresolv" >&5
6408 echo $ECHO_N "checking for inet_aton in -lresolv... $ECHO_C" >&6
6409 if test "${ac_cv_lib_resolv_inet_aton+set}" = set; then
6410   echo $ECHO_N "(cached) $ECHO_C" >&6
6411 else
6412   ac_check_lib_save_LIBS=$LIBS
6413 LIBS="-lresolv  $LIBS"
6414 cat >conftest.$ac_ext <<_ACEOF
6415 /* confdefs.h.  */
6416 _ACEOF
6417 cat confdefs.h >>conftest.$ac_ext
6418 cat >>conftest.$ac_ext <<_ACEOF
6419 /* end confdefs.h.  */
6420
6421 /* Override any gcc2 internal prototype to avoid an error.  */
6422 #ifdef __cplusplus
6423 extern "C"
6424 #endif
6425 /* We use char because int might match the return type of a gcc2
6426    builtin and then its argument prototype would still apply.  */
6427 char inet_aton ();
6428 int
6429 main ()
6430 {
6431 inet_aton ();
6432   ;
6433   return 0;
6434 }
6435 _ACEOF
6436 rm -f conftest.$ac_objext conftest$ac_exeext
6437 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6438   (eval $ac_link) 2>conftest.er1
6439   ac_status=$?
6440   grep -v '^ *+' conftest.er1 >conftest.err
6441   rm -f conftest.er1
6442   cat conftest.err >&5
6443   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6444   (exit $ac_status); } &&
6445          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6446   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6447   (eval $ac_try) 2>&5
6448   ac_status=$?
6449   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6450   (exit $ac_status); }; } &&
6451          { ac_try='test -s conftest$ac_exeext'
6452   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6453   (eval $ac_try) 2>&5
6454   ac_status=$?
6455   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6456   (exit $ac_status); }; }; then
6457   ac_cv_lib_resolv_inet_aton=yes
6458 else
6459   echo "$as_me: failed program was:" >&5
6460 sed 's/^/| /' conftest.$ac_ext >&5
6461
6462 ac_cv_lib_resolv_inet_aton=no
6463 fi
6464 rm -f conftest.err conftest.$ac_objext \
6465       conftest$ac_exeext conftest.$ac_ext
6466 LIBS=$ac_check_lib_save_LIBS
6467 fi
6468 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_aton" >&5
6469 echo "${ECHO_T}$ac_cv_lib_resolv_inet_aton" >&6
6470 if test $ac_cv_lib_resolv_inet_aton = yes; then
6471   cat >>confdefs.h <<_ACEOF
6472 #define HAVE_LIBRESOLV 1
6473 _ACEOF
6474
6475   LIBS="-lresolv $LIBS"
6476
6477 fi
6478
6479 fi
6480 done
6481
6482
6483 echo "$as_me:$LINENO: checking for _xpg4_setrunelocale in -lxpg4" >&5
6484 echo $ECHO_N "checking for _xpg4_setrunelocale in -lxpg4... $ECHO_C" >&6
6485 if test "${ac_cv_lib_xpg4__xpg4_setrunelocale+set}" = set; then
6486   echo $ECHO_N "(cached) $ECHO_C" >&6
6487 else
6488   ac_check_lib_save_LIBS=$LIBS
6489 LIBS="-lxpg4  $LIBS"
6490 cat >conftest.$ac_ext <<_ACEOF
6491 /* confdefs.h.  */
6492 _ACEOF
6493 cat confdefs.h >>conftest.$ac_ext
6494 cat >>conftest.$ac_ext <<_ACEOF
6495 /* end confdefs.h.  */
6496
6497 /* Override any gcc2 internal prototype to avoid an error.  */
6498 #ifdef __cplusplus
6499 extern "C"
6500 #endif
6501 /* We use char because int might match the return type of a gcc2
6502    builtin and then its argument prototype would still apply.  */
6503 char _xpg4_setrunelocale ();
6504 int
6505 main ()
6506 {
6507 _xpg4_setrunelocale ();
6508   ;
6509   return 0;
6510 }
6511 _ACEOF
6512 rm -f conftest.$ac_objext conftest$ac_exeext
6513 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6514   (eval $ac_link) 2>conftest.er1
6515   ac_status=$?
6516   grep -v '^ *+' conftest.er1 >conftest.err
6517   rm -f conftest.er1
6518   cat conftest.err >&5
6519   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6520   (exit $ac_status); } &&
6521          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6522   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6523   (eval $ac_try) 2>&5
6524   ac_status=$?
6525   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6526   (exit $ac_status); }; } &&
6527          { ac_try='test -s conftest$ac_exeext'
6528   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6529   (eval $ac_try) 2>&5
6530   ac_status=$?
6531   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6532   (exit $ac_status); }; }; then
6533   ac_cv_lib_xpg4__xpg4_setrunelocale=yes
6534 else
6535   echo "$as_me: failed program was:" >&5
6536 sed 's/^/| /' conftest.$ac_ext >&5
6537
6538 ac_cv_lib_xpg4__xpg4_setrunelocale=no
6539 fi
6540 rm -f conftest.err conftest.$ac_objext \
6541       conftest$ac_exeext conftest.$ac_ext
6542 LIBS=$ac_check_lib_save_LIBS
6543 fi
6544 echo "$as_me:$LINENO: result: $ac_cv_lib_xpg4__xpg4_setrunelocale" >&5
6545 echo "${ECHO_T}$ac_cv_lib_xpg4__xpg4_setrunelocale" >&6
6546 if test $ac_cv_lib_xpg4__xpg4_setrunelocale = yes; then
6547   cat >>confdefs.h <<_ACEOF
6548 #define HAVE_LIBXPG4 1
6549 _ACEOF
6550
6551   LIBS="-lxpg4 $LIBS"
6552
6553 fi
6554
6555
6556 echo "$as_me:$LINENO: checking for poll in -lpoll" >&5
6557 echo $ECHO_N "checking for poll in -lpoll... $ECHO_C" >&6
6558 if test "${ac_cv_lib_poll_poll+set}" = set; then
6559   echo $ECHO_N "(cached) $ECHO_C" >&6
6560 else
6561   ac_check_lib_save_LIBS=$LIBS
6562 LIBS="-lpoll  $LIBS"
6563 cat >conftest.$ac_ext <<_ACEOF
6564 /* confdefs.h.  */
6565 _ACEOF
6566 cat confdefs.h >>conftest.$ac_ext
6567 cat >>conftest.$ac_ext <<_ACEOF
6568 /* end confdefs.h.  */
6569
6570 /* Override any gcc2 internal prototype to avoid an error.  */
6571 #ifdef __cplusplus
6572 extern "C"
6573 #endif
6574 /* We use char because int might match the return type of a gcc2
6575    builtin and then its argument prototype would still apply.  */
6576 char poll ();
6577 int
6578 main ()
6579 {
6580 poll ();
6581   ;
6582   return 0;
6583 }
6584 _ACEOF
6585 rm -f conftest.$ac_objext conftest$ac_exeext
6586 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6587   (eval $ac_link) 2>conftest.er1
6588   ac_status=$?
6589   grep -v '^ *+' conftest.er1 >conftest.err
6590   rm -f conftest.er1
6591   cat conftest.err >&5
6592   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6593   (exit $ac_status); } &&
6594          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6595   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6596   (eval $ac_try) 2>&5
6597   ac_status=$?
6598   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6599   (exit $ac_status); }; } &&
6600          { ac_try='test -s conftest$ac_exeext'
6601   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6602   (eval $ac_try) 2>&5
6603   ac_status=$?
6604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6605   (exit $ac_status); }; }; then
6606   ac_cv_lib_poll_poll=yes
6607 else
6608   echo "$as_me: failed program was:" >&5
6609 sed 's/^/| /' conftest.$ac_ext >&5
6610
6611 ac_cv_lib_poll_poll=no
6612 fi
6613 rm -f conftest.err conftest.$ac_objext \
6614       conftest$ac_exeext conftest.$ac_ext
6615 LIBS=$ac_check_lib_save_LIBS
6616 fi
6617 echo "$as_me:$LINENO: result: $ac_cv_lib_poll_poll" >&5
6618 echo "${ECHO_T}$ac_cv_lib_poll_poll" >&6
6619 if test $ac_cv_lib_poll_poll = yes; then
6620   cat >>confdefs.h <<_ACEOF
6621 #define HAVE_LIBPOLL 1
6622 _ACEOF
6623
6624   LIBS="-lpoll $LIBS"
6625
6626 fi
6627
6628
6629 echo "$as_me:$LINENO: checking for res_9_init in -lresolv" >&5
6630 echo $ECHO_N "checking for res_9_init in -lresolv... $ECHO_C" >&6
6631 if test "${ac_cv_lib_resolv_res_9_init+set}" = set; then
6632   echo $ECHO_N "(cached) $ECHO_C" >&6
6633 else
6634   ac_check_lib_save_LIBS=$LIBS
6635 LIBS="-lresolv  $LIBS"
6636 cat >conftest.$ac_ext <<_ACEOF
6637 /* confdefs.h.  */
6638 _ACEOF
6639 cat confdefs.h >>conftest.$ac_ext
6640 cat >>conftest.$ac_ext <<_ACEOF
6641 /* end confdefs.h.  */
6642
6643 /* Override any gcc2 internal prototype to avoid an error.  */
6644 #ifdef __cplusplus
6645 extern "C"
6646 #endif
6647 /* We use char because int might match the return type of a gcc2
6648    builtin and then its argument prototype would still apply.  */
6649 char res_9_init ();
6650 int
6651 main ()
6652 {
6653 res_9_init ();
6654   ;
6655   return 0;
6656 }
6657 _ACEOF
6658 rm -f conftest.$ac_objext conftest$ac_exeext
6659 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6660   (eval $ac_link) 2>conftest.er1
6661   ac_status=$?
6662   grep -v '^ *+' conftest.er1 >conftest.err
6663   rm -f conftest.er1
6664   cat conftest.err >&5
6665   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6666   (exit $ac_status); } &&
6667          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6668   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6669   (eval $ac_try) 2>&5
6670   ac_status=$?
6671   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6672   (exit $ac_status); }; } &&
6673          { ac_try='test -s conftest$ac_exeext'
6674   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6675   (eval $ac_try) 2>&5
6676   ac_status=$?
6677   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6678   (exit $ac_status); }; }; then
6679   ac_cv_lib_resolv_res_9_init=yes
6680 else
6681   echo "$as_me: failed program was:" >&5
6682 sed 's/^/| /' conftest.$ac_ext >&5
6683
6684 ac_cv_lib_resolv_res_9_init=no
6685 fi
6686 rm -f conftest.err conftest.$ac_objext \
6687       conftest$ac_exeext conftest.$ac_ext
6688 LIBS=$ac_check_lib_save_LIBS
6689 fi
6690 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_9_init" >&5
6691 echo "${ECHO_T}$ac_cv_lib_resolv_res_9_init" >&6
6692 if test $ac_cv_lib_resolv_res_9_init = yes; then
6693   cat >>confdefs.h <<_ACEOF
6694 #define HAVE_LIBRESOLV 1
6695 _ACEOF
6696
6697   LIBS="-lresolv $LIBS"
6698
6699 fi
6700
6701 echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
6702 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6
6703 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
6704   echo $ECHO_N "(cached) $ECHO_C" >&6
6705 else
6706   ac_check_lib_save_LIBS=$LIBS
6707 LIBS="-lpthread  $LIBS"
6708 cat >conftest.$ac_ext <<_ACEOF
6709 /* confdefs.h.  */
6710 _ACEOF
6711 cat confdefs.h >>conftest.$ac_ext
6712 cat >>conftest.$ac_ext <<_ACEOF
6713 /* end confdefs.h.  */
6714
6715 /* Override any gcc2 internal prototype to avoid an error.  */
6716 #ifdef __cplusplus
6717 extern "C"
6718 #endif
6719 /* We use char because int might match the return type of a gcc2
6720    builtin and then its argument prototype would still apply.  */
6721 char pthread_create ();
6722 int
6723 main ()
6724 {
6725 pthread_create ();
6726   ;
6727   return 0;
6728 }
6729 _ACEOF
6730 rm -f conftest.$ac_objext conftest$ac_exeext
6731 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6732   (eval $ac_link) 2>conftest.er1
6733   ac_status=$?
6734   grep -v '^ *+' conftest.er1 >conftest.err
6735   rm -f conftest.er1
6736   cat conftest.err >&5
6737   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6738   (exit $ac_status); } &&
6739          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6740   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6741   (eval $ac_try) 2>&5
6742   ac_status=$?
6743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6744   (exit $ac_status); }; } &&
6745          { ac_try='test -s conftest$ac_exeext'
6746   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6747   (eval $ac_try) 2>&5
6748   ac_status=$?
6749   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6750   (exit $ac_status); }; }; then
6751   ac_cv_lib_pthread_pthread_create=yes
6752 else
6753   echo "$as_me: failed program was:" >&5
6754 sed 's/^/| /' conftest.$ac_ext >&5
6755
6756 ac_cv_lib_pthread_pthread_create=no
6757 fi
6758 rm -f conftest.err conftest.$ac_objext \
6759       conftest$ac_exeext conftest.$ac_ext
6760 LIBS=$ac_check_lib_save_LIBS
6761 fi
6762 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
6763 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6
6764 if test $ac_cv_lib_pthread_pthread_create = yes; then
6765   LIBPTHREAD="-lpthread"
6766
6767 fi
6768
6769
6770
6771
6772 XFILES=""
6773
6774 OPENGLFILES=""
6775
6776 GLU32FILES=""
6777
6778 OPENGL_LIBS=""
6779
6780
6781 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6782 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6783 if test "${ac_cv_header_stdc+set}" = set; then
6784   echo $ECHO_N "(cached) $ECHO_C" >&6
6785 else
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 <stdlib.h>
6793 #include <stdarg.h>
6794 #include <string.h>
6795 #include <float.h>
6796
6797 int
6798 main ()
6799 {
6800
6801   ;
6802   return 0;
6803 }
6804 _ACEOF
6805 rm -f conftest.$ac_objext
6806 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6807   (eval $ac_compile) 2>conftest.er1
6808   ac_status=$?
6809   grep -v '^ *+' conftest.er1 >conftest.err
6810   rm -f conftest.er1
6811   cat conftest.err >&5
6812   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6813   (exit $ac_status); } &&
6814          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6815   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6816   (eval $ac_try) 2>&5
6817   ac_status=$?
6818   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6819   (exit $ac_status); }; } &&
6820          { ac_try='test -s conftest.$ac_objext'
6821   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6822   (eval $ac_try) 2>&5
6823   ac_status=$?
6824   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6825   (exit $ac_status); }; }; then
6826   ac_cv_header_stdc=yes
6827 else
6828   echo "$as_me: failed program was:" >&5
6829 sed 's/^/| /' conftest.$ac_ext >&5
6830
6831 ac_cv_header_stdc=no
6832 fi
6833 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6834
6835 if test $ac_cv_header_stdc = yes; then
6836   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6837   cat >conftest.$ac_ext <<_ACEOF
6838 /* confdefs.h.  */
6839 _ACEOF
6840 cat confdefs.h >>conftest.$ac_ext
6841 cat >>conftest.$ac_ext <<_ACEOF
6842 /* end confdefs.h.  */
6843 #include <string.h>
6844
6845 _ACEOF
6846 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6847   $EGREP "memchr" >/dev/null 2>&1; then
6848   :
6849 else
6850   ac_cv_header_stdc=no
6851 fi
6852 rm -f conftest*
6853
6854 fi
6855
6856 if test $ac_cv_header_stdc = yes; then
6857   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6858   cat >conftest.$ac_ext <<_ACEOF
6859 /* confdefs.h.  */
6860 _ACEOF
6861 cat confdefs.h >>conftest.$ac_ext
6862 cat >>conftest.$ac_ext <<_ACEOF
6863 /* end confdefs.h.  */
6864 #include <stdlib.h>
6865
6866 _ACEOF
6867 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6868   $EGREP "free" >/dev/null 2>&1; then
6869   :
6870 else
6871   ac_cv_header_stdc=no
6872 fi
6873 rm -f conftest*
6874
6875 fi
6876
6877 if test $ac_cv_header_stdc = yes; then
6878   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6879   if test "$cross_compiling" = yes; then
6880   :
6881 else
6882   cat >conftest.$ac_ext <<_ACEOF
6883 /* confdefs.h.  */
6884 _ACEOF
6885 cat confdefs.h >>conftest.$ac_ext
6886 cat >>conftest.$ac_ext <<_ACEOF
6887 /* end confdefs.h.  */
6888 #include <ctype.h>
6889 #if ((' ' & 0x0FF) == 0x020)
6890 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6891 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6892 #else
6893 # define ISLOWER(c) \
6894                    (('a' <= (c) && (c) <= 'i') \
6895                      || ('j' <= (c) && (c) <= 'r') \
6896                      || ('s' <= (c) && (c) <= 'z'))
6897 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6898 #endif
6899
6900 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6901 int
6902 main ()
6903 {
6904   int i;
6905   for (i = 0; i < 256; i++)
6906     if (XOR (islower (i), ISLOWER (i))
6907         || toupper (i) != TOUPPER (i))
6908       exit(2);
6909   exit (0);
6910 }
6911 _ACEOF
6912 rm -f conftest$ac_exeext
6913 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6914   (eval $ac_link) 2>&5
6915   ac_status=$?
6916   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6917   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6918   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6919   (eval $ac_try) 2>&5
6920   ac_status=$?
6921   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6922   (exit $ac_status); }; }; then
6923   :
6924 else
6925   echo "$as_me: program exited with status $ac_status" >&5
6926 echo "$as_me: failed program was:" >&5
6927 sed 's/^/| /' conftest.$ac_ext >&5
6928
6929 ( exit $ac_status )
6930 ac_cv_header_stdc=no
6931 fi
6932 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6933 fi
6934 fi
6935 fi
6936 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6937 echo "${ECHO_T}$ac_cv_header_stdc" >&6
6938 if test $ac_cv_header_stdc = yes; then
6939
6940 cat >>confdefs.h <<\_ACEOF
6941 #define STDC_HEADERS 1
6942 _ACEOF
6943
6944 fi
6945
6946 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6947
6948
6949
6950
6951
6952
6953
6954
6955
6956 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6957                   inttypes.h stdint.h unistd.h
6958 do
6959 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6960 echo "$as_me:$LINENO: checking for $ac_header" >&5
6961 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6962 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6963   echo $ECHO_N "(cached) $ECHO_C" >&6
6964 else
6965   cat >conftest.$ac_ext <<_ACEOF
6966 /* confdefs.h.  */
6967 _ACEOF
6968 cat confdefs.h >>conftest.$ac_ext
6969 cat >>conftest.$ac_ext <<_ACEOF
6970 /* end confdefs.h.  */
6971 $ac_includes_default
6972
6973 #include <$ac_header>
6974 _ACEOF
6975 rm -f conftest.$ac_objext
6976 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6977   (eval $ac_compile) 2>conftest.er1
6978   ac_status=$?
6979   grep -v '^ *+' conftest.er1 >conftest.err
6980   rm -f conftest.er1
6981   cat conftest.err >&5
6982   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6983   (exit $ac_status); } &&
6984          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6985   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6986   (eval $ac_try) 2>&5
6987   ac_status=$?
6988   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6989   (exit $ac_status); }; } &&
6990          { ac_try='test -s conftest.$ac_objext'
6991   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6992   (eval $ac_try) 2>&5
6993   ac_status=$?
6994   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6995   (exit $ac_status); }; }; then
6996   eval "$as_ac_Header=yes"
6997 else
6998   echo "$as_me: failed program was:" >&5
6999 sed 's/^/| /' conftest.$ac_ext >&5
7000
7001 eval "$as_ac_Header=no"
7002 fi
7003 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7004 fi
7005 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7006 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7007 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7008   cat >>confdefs.h <<_ACEOF
7009 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7010 _ACEOF
7011
7012 fi
7013
7014 done
7015
7016
7017
7018
7019
7020
7021
7022
7023
7024
7025
7026
7027
7028
7029
7030
7031
7032
7033
7034
7035
7036
7037
7038
7039
7040
7041
7042
7043
7044
7045
7046
7047
7048
7049
7050
7051
7052
7053
7054
7055
7056
7057
7058
7059
7060
7061
7062
7063
7064
7065
7066
7067
7068
7069
7070
7071
7072
7073
7074
7075
7076
7077
7078
7079
7080
7081
7082
7083
7084
7085
7086
7087
7088
7089
7090
7091
7092
7093
7094
7095
7096
7097
7098
7099
7100
7101
7102 for ac_header in \
7103         arpa/inet.h \
7104         arpa/nameser.h \
7105         asm/types.h \
7106         cups/cups.h \
7107         direct.h \
7108         elf.h \
7109         float.h \
7110         fontconfig/fontconfig.h \
7111         getopt.h \
7112         gif_lib.h \
7113         ieeefp.h \
7114         io.h \
7115         jack/jack.h \
7116         jpeglib.h \
7117         lcms/lcms.h \
7118         lcms.h \
7119         link.h \
7120         linux/cdrom.h \
7121         linux/compiler.h \
7122         linux/hdreg.h \
7123         linux/input.h \
7124         linux/ioctl.h \
7125         linux/joystick.h \
7126         linux/major.h \
7127         linux/param.h \
7128         linux/serial.h \
7129         linux/ucdrom.h \
7130         machine/cpu.h \
7131         mntent.h \
7132         netdb.h \
7133         netinet/in.h \
7134         netinet/in_systm.h \
7135         netinet/tcp.h \
7136         netinet/tcp_fsm.h \
7137         openssl/ssl.h \
7138         poll.h \
7139         process.h \
7140         pthread.h \
7141         pwd.h \
7142         regex.h \
7143         sched.h \
7144         scsi/sg.h \
7145         scsi/scsi.h \
7146         scsi/scsi_ioctl.h \
7147         stdint.h \
7148         strings.h \
7149         sys/cdio.h \
7150         sys/elf32.h \
7151         sys/errno.h \
7152         sys/epoll.h \
7153         sys/exec_elf.h \
7154         sys/filio.h \
7155         sys/ioctl.h \
7156         sys/ipc.h \
7157         sys/link.h \
7158         sys/lwp.h \
7159         sys/mman.h \
7160         sys/modem.h \
7161         sys/msg.h \
7162         sys/param.h \
7163         sys/poll.h \
7164         sys/ptrace.h \
7165         sys/reg.h \
7166         sys/scsiio.h \
7167         sys/shm.h \
7168         sys/signal.h \
7169         sys/socket.h \
7170         sys/sockio.h \
7171         sys/statfs.h \
7172         sys/statvfs.h \
7173         sys/strtio.h \
7174         sys/syscall.h \
7175         sys/sysctl.h \
7176         sys/time.h \
7177         sys/times.h \
7178         sys/uio.h \
7179         sys/un.h \
7180         sys/vfs.h \
7181         sys/vm86.h \
7182         sys/wait.h \
7183         syscall.h \
7184         termios.h \
7185         unistd.h \
7186         utime.h \
7187         valgrind/memcheck.h
7188
7189 do
7190 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7191 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7192   echo "$as_me:$LINENO: checking for $ac_header" >&5
7193 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7194 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7195   echo $ECHO_N "(cached) $ECHO_C" >&6
7196 fi
7197 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7198 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7199 else
7200   # Is the header compilable?
7201 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7202 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7203 cat >conftest.$ac_ext <<_ACEOF
7204 /* confdefs.h.  */
7205 _ACEOF
7206 cat confdefs.h >>conftest.$ac_ext
7207 cat >>conftest.$ac_ext <<_ACEOF
7208 /* end confdefs.h.  */
7209 $ac_includes_default
7210 #include <$ac_header>
7211 _ACEOF
7212 rm -f conftest.$ac_objext
7213 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7214   (eval $ac_compile) 2>conftest.er1
7215   ac_status=$?
7216   grep -v '^ *+' conftest.er1 >conftest.err
7217   rm -f conftest.er1
7218   cat conftest.err >&5
7219   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7220   (exit $ac_status); } &&
7221          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
7222   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7223   (eval $ac_try) 2>&5
7224   ac_status=$?
7225   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7226   (exit $ac_status); }; } &&
7227          { ac_try='test -s conftest.$ac_objext'
7228   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7229   (eval $ac_try) 2>&5
7230   ac_status=$?
7231   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7232   (exit $ac_status); }; }; then
7233   ac_header_compiler=yes
7234 else
7235   echo "$as_me: failed program was:" >&5
7236 sed 's/^/| /' conftest.$ac_ext >&5
7237
7238 ac_header_compiler=no
7239 fi
7240 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7241 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7242 echo "${ECHO_T}$ac_header_compiler" >&6
7243
7244 # Is the header present?
7245 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7246 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7247 cat >conftest.$ac_ext <<_ACEOF
7248 /* confdefs.h.  */
7249 _ACEOF
7250 cat confdefs.h >>conftest.$ac_ext
7251 cat >>conftest.$ac_ext <<_ACEOF
7252 /* end confdefs.h.  */
7253 #include <$ac_header>
7254 _ACEOF
7255 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7256   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7257   ac_status=$?
7258   grep -v '^ *+' conftest.er1 >conftest.err
7259   rm -f conftest.er1
7260   cat conftest.err >&5
7261   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7262   (exit $ac_status); } >/dev/null; then
7263   if test -s conftest.err; then
7264     ac_cpp_err=$ac_c_preproc_warn_flag
7265     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7266   else
7267     ac_cpp_err=
7268   fi
7269 else
7270   ac_cpp_err=yes
7271 fi
7272 if test -z "$ac_cpp_err"; then
7273   ac_header_preproc=yes
7274 else
7275   echo "$as_me: failed program was:" >&5
7276 sed 's/^/| /' conftest.$ac_ext >&5
7277
7278   ac_header_preproc=no
7279 fi
7280 rm -f conftest.err conftest.$ac_ext
7281 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7282 echo "${ECHO_T}$ac_header_preproc" >&6
7283
7284 # So?  What about this header?
7285 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7286   yes:no: )
7287     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7288 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7289     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7290 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7291     ac_header_preproc=yes
7292     ;;
7293   no:yes:* )
7294     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7295 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7296     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
7297 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
7298     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7299 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7300     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
7301 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
7302     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7303 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7304     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7305 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7306     (
7307       cat <<\_ASBOX
7308 ## ------------------------------------ ##
7309 ## Report this to wine-devel@winehq.org ##
7310 ## ------------------------------------ ##
7311 _ASBOX
7312     ) |
7313       sed "s/^/$as_me: WARNING:     /" >&2
7314     ;;
7315 esac
7316 echo "$as_me:$LINENO: checking for $ac_header" >&5
7317 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7318 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7319   echo $ECHO_N "(cached) $ECHO_C" >&6
7320 else
7321   eval "$as_ac_Header=\$ac_header_preproc"
7322 fi
7323 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7324 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7325
7326 fi
7327 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7328   cat >>confdefs.h <<_ACEOF
7329 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7330 _ACEOF
7331
7332 fi
7333
7334 done
7335
7336 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
7337 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
7338 if test "${ac_cv_header_stat_broken+set}" = set; then
7339   echo $ECHO_N "(cached) $ECHO_C" >&6
7340 else
7341   cat >conftest.$ac_ext <<_ACEOF
7342 /* confdefs.h.  */
7343 _ACEOF
7344 cat confdefs.h >>conftest.$ac_ext
7345 cat >>conftest.$ac_ext <<_ACEOF
7346 /* end confdefs.h.  */
7347 #include <sys/types.h>
7348 #include <sys/stat.h>
7349
7350 #if defined(S_ISBLK) && defined(S_IFDIR)
7351 # if S_ISBLK (S_IFDIR)
7352 You lose.
7353 # endif
7354 #endif
7355
7356 #if defined(S_ISBLK) && defined(S_IFCHR)
7357 # if S_ISBLK (S_IFCHR)
7358 You lose.
7359 # endif
7360 #endif
7361
7362 #if defined(S_ISLNK) && defined(S_IFREG)
7363 # if S_ISLNK (S_IFREG)
7364 You lose.
7365 # endif
7366 #endif
7367
7368 #if defined(S_ISSOCK) && defined(S_IFREG)
7369 # if S_ISSOCK (S_IFREG)
7370 You lose.
7371 # endif
7372 #endif
7373
7374 _ACEOF
7375 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7376   $EGREP "You lose" >/dev/null 2>&1; then
7377   ac_cv_header_stat_broken=yes
7378 else
7379   ac_cv_header_stat_broken=no
7380 fi
7381 rm -f conftest*
7382
7383 fi
7384 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
7385 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
7386 if test $ac_cv_header_stat_broken = yes; then
7387
7388 cat >>confdefs.h <<\_ACEOF
7389 #define STAT_MACROS_BROKEN 1
7390 _ACEOF
7391
7392 fi
7393
7394
7395
7396 if test "$have_x" = "yes"
7397 then
7398     XLIB="-lXext -lX11"
7399     ac_save_CPPFLAGS="$CPPFLAGS"
7400     CPPFLAGS="$CPPFLAGS $X_CFLAGS"
7401
7402
7403 for ac_header in X11/Xlib.h
7404 do
7405 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7406 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7407   echo "$as_me:$LINENO: checking for $ac_header" >&5
7408 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7409 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7410   echo $ECHO_N "(cached) $ECHO_C" >&6
7411 fi
7412 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7413 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7414 else
7415   # Is the header compilable?
7416 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7417 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7418 cat >conftest.$ac_ext <<_ACEOF
7419 /* confdefs.h.  */
7420 _ACEOF
7421 cat confdefs.h >>conftest.$ac_ext
7422 cat >>conftest.$ac_ext <<_ACEOF
7423 /* end confdefs.h.  */
7424 $ac_includes_default
7425 #include <$ac_header>
7426 _ACEOF
7427 rm -f conftest.$ac_objext
7428 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7429   (eval $ac_compile) 2>conftest.er1
7430   ac_status=$?
7431   grep -v '^ *+' conftest.er1 >conftest.err
7432   rm -f conftest.er1
7433   cat conftest.err >&5
7434   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7435   (exit $ac_status); } &&
7436          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
7437   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7438   (eval $ac_try) 2>&5
7439   ac_status=$?
7440   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7441   (exit $ac_status); }; } &&
7442          { ac_try='test -s conftest.$ac_objext'
7443   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7444   (eval $ac_try) 2>&5
7445   ac_status=$?
7446   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7447   (exit $ac_status); }; }; then
7448   ac_header_compiler=yes
7449 else
7450   echo "$as_me: failed program was:" >&5
7451 sed 's/^/| /' conftest.$ac_ext >&5
7452
7453 ac_header_compiler=no
7454 fi
7455 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7456 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7457 echo "${ECHO_T}$ac_header_compiler" >&6
7458
7459 # Is the header present?
7460 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7461 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7462 cat >conftest.$ac_ext <<_ACEOF
7463 /* confdefs.h.  */
7464 _ACEOF
7465 cat confdefs.h >>conftest.$ac_ext
7466 cat >>conftest.$ac_ext <<_ACEOF
7467 /* end confdefs.h.  */
7468 #include <$ac_header>
7469 _ACEOF
7470 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7471   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7472   ac_status=$?
7473   grep -v '^ *+' conftest.er1 >conftest.err
7474   rm -f conftest.er1
7475   cat conftest.err >&5
7476   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7477   (exit $ac_status); } >/dev/null; then
7478   if test -s conftest.err; then
7479     ac_cpp_err=$ac_c_preproc_warn_flag
7480     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7481   else
7482     ac_cpp_err=
7483   fi
7484 else
7485   ac_cpp_err=yes
7486 fi
7487 if test -z "$ac_cpp_err"; then
7488   ac_header_preproc=yes
7489 else
7490   echo "$as_me: failed program was:" >&5
7491 sed 's/^/| /' conftest.$ac_ext >&5
7492
7493   ac_header_preproc=no
7494 fi
7495 rm -f conftest.err conftest.$ac_ext
7496 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7497 echo "${ECHO_T}$ac_header_preproc" >&6
7498
7499 # So?  What about this header?
7500 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7501   yes:no: )
7502     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7503 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7504     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7505 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7506     ac_header_preproc=yes
7507     ;;
7508   no:yes:* )
7509     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7510 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7511     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
7512 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
7513     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7514 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7515     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
7516 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
7517     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7518 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7519     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7520 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7521     (
7522       cat <<\_ASBOX
7523 ## ------------------------------------ ##
7524 ## Report this to wine-devel@winehq.org ##
7525 ## ------------------------------------ ##
7526 _ASBOX
7527     ) |
7528       sed "s/^/$as_me: WARNING:     /" >&2
7529     ;;
7530 esac
7531 echo "$as_me:$LINENO: checking for $ac_header" >&5
7532 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7533 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7534   echo $ECHO_N "(cached) $ECHO_C" >&6
7535 else
7536   eval "$as_ac_Header=\$ac_header_preproc"
7537 fi
7538 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7539 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7540
7541 fi
7542 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7543   cat >>confdefs.h <<_ACEOF
7544 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7545 _ACEOF
7546
7547
7548
7549
7550
7551
7552
7553
7554
7555
7556 for ac_header in X11/XKBlib.h \
7557                           X11/Xutil.h \
7558                           X11/extensions/shape.h \
7559                           X11/extensions/XInput.h \
7560                           X11/extensions/XShm.h \
7561                           X11/extensions/Xrandr.h \
7562                           X11/extensions/Xrender.h \
7563                           X11/extensions/xf86dga.h \
7564                           X11/extensions/xf86vmode.h
7565 do
7566 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7567 echo "$as_me:$LINENO: checking for $ac_header" >&5
7568 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7569 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7570   echo $ECHO_N "(cached) $ECHO_C" >&6
7571 else
7572   cat >conftest.$ac_ext <<_ACEOF
7573 /* confdefs.h.  */
7574 _ACEOF
7575 cat confdefs.h >>conftest.$ac_ext
7576 cat >>conftest.$ac_ext <<_ACEOF
7577 /* end confdefs.h.  */
7578 #include <X11/Xlib.h>
7579                           #ifdef HAVE_X11_XUTIL_H
7580                           # include <X11/Xutil.h>
7581                           #endif
7582
7583 #include <$ac_header>
7584 _ACEOF
7585 rm -f conftest.$ac_objext
7586 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7587   (eval $ac_compile) 2>conftest.er1
7588   ac_status=$?
7589   grep -v '^ *+' conftest.er1 >conftest.err
7590   rm -f conftest.er1
7591   cat conftest.err >&5
7592   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7593   (exit $ac_status); } &&
7594          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
7595   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7596   (eval $ac_try) 2>&5
7597   ac_status=$?
7598   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7599   (exit $ac_status); }; } &&
7600          { ac_try='test -s conftest.$ac_objext'
7601   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7602   (eval $ac_try) 2>&5
7603   ac_status=$?
7604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7605   (exit $ac_status); }; }; then
7606   eval "$as_ac_Header=yes"
7607 else
7608   echo "$as_me: failed program was:" >&5
7609 sed 's/^/| /' conftest.$ac_ext >&5
7610
7611 eval "$as_ac_Header=no"
7612 fi
7613 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7614 fi
7615 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7616 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7617 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7618   cat >>confdefs.h <<_ACEOF
7619 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7620 _ACEOF
7621
7622 fi
7623
7624 done
7625
7626
7627                 if test "$ac_cv_header_X11_XKBlib_h" = "yes"
7628         then
7629               echo "$as_me:$LINENO: checking for XkbQueryExtension in -lX11" >&5
7630 echo $ECHO_N "checking for XkbQueryExtension in -lX11... $ECHO_C" >&6
7631 if test "${ac_cv_lib_X11_XkbQueryExtension+set}" = set; then
7632   echo $ECHO_N "(cached) $ECHO_C" >&6
7633 else
7634   ac_check_lib_save_LIBS=$LIBS
7635 LIBS="-lX11 $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
7636 cat >conftest.$ac_ext <<_ACEOF
7637 /* confdefs.h.  */
7638 _ACEOF
7639 cat confdefs.h >>conftest.$ac_ext
7640 cat >>conftest.$ac_ext <<_ACEOF
7641 /* end confdefs.h.  */
7642
7643 /* Override any gcc2 internal prototype to avoid an error.  */
7644 #ifdef __cplusplus
7645 extern "C"
7646 #endif
7647 /* We use char because int might match the return type of a gcc2
7648    builtin and then its argument prototype would still apply.  */
7649 char XkbQueryExtension ();
7650 int
7651 main ()
7652 {
7653 XkbQueryExtension ();
7654   ;
7655   return 0;
7656 }
7657 _ACEOF
7658 rm -f conftest.$ac_objext conftest$ac_exeext
7659 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7660   (eval $ac_link) 2>conftest.er1
7661   ac_status=$?
7662   grep -v '^ *+' conftest.er1 >conftest.err
7663   rm -f conftest.er1
7664   cat conftest.err >&5
7665   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7666   (exit $ac_status); } &&
7667          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
7668   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7669   (eval $ac_try) 2>&5
7670   ac_status=$?
7671   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7672   (exit $ac_status); }; } &&
7673          { ac_try='test -s conftest$ac_exeext'
7674   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7675   (eval $ac_try) 2>&5
7676   ac_status=$?
7677   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7678   (exit $ac_status); }; }; then
7679   ac_cv_lib_X11_XkbQueryExtension=yes
7680 else
7681   echo "$as_me: failed program was:" >&5
7682 sed 's/^/| /' conftest.$ac_ext >&5
7683
7684 ac_cv_lib_X11_XkbQueryExtension=no
7685 fi
7686 rm -f conftest.err conftest.$ac_objext \
7687       conftest$ac_exeext conftest.$ac_ext
7688 LIBS=$ac_check_lib_save_LIBS
7689 fi
7690 echo "$as_me:$LINENO: result: $ac_cv_lib_X11_XkbQueryExtension" >&5
7691 echo "${ECHO_T}$ac_cv_lib_X11_XkbQueryExtension" >&6
7692 if test $ac_cv_lib_X11_XkbQueryExtension = yes; then
7693
7694 cat >>confdefs.h <<\_ACEOF
7695 #define HAVE_XKB 1
7696 _ACEOF
7697
7698 fi
7699
7700         fi
7701
7702                 if test "$ac_cv_header_X11_extensions_XShm_h" = "yes"
7703         then
7704               echo "$as_me:$LINENO: checking for XShmQueryExtension in -lXext" >&5
7705 echo $ECHO_N "checking for XShmQueryExtension in -lXext... $ECHO_C" >&6
7706 if test "${ac_cv_lib_Xext_XShmQueryExtension+set}" = set; then
7707   echo $ECHO_N "(cached) $ECHO_C" >&6
7708 else
7709   ac_check_lib_save_LIBS=$LIBS
7710 LIBS="-lXext $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
7711 cat >conftest.$ac_ext <<_ACEOF
7712 /* confdefs.h.  */
7713 _ACEOF
7714 cat confdefs.h >>conftest.$ac_ext
7715 cat >>conftest.$ac_ext <<_ACEOF
7716 /* end confdefs.h.  */
7717
7718 /* Override any gcc2 internal prototype to avoid an error.  */
7719 #ifdef __cplusplus
7720 extern "C"
7721 #endif
7722 /* We use char because int might match the return type of a gcc2
7723    builtin and then its argument prototype would still apply.  */
7724 char XShmQueryExtension ();
7725 int
7726 main ()
7727 {
7728 XShmQueryExtension ();
7729   ;
7730   return 0;
7731 }
7732 _ACEOF
7733 rm -f conftest.$ac_objext conftest$ac_exeext
7734 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7735   (eval $ac_link) 2>conftest.er1
7736   ac_status=$?
7737   grep -v '^ *+' conftest.er1 >conftest.err
7738   rm -f conftest.er1
7739   cat conftest.err >&5
7740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7741   (exit $ac_status); } &&
7742          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
7743   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7744   (eval $ac_try) 2>&5
7745   ac_status=$?
7746   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7747   (exit $ac_status); }; } &&
7748          { ac_try='test -s conftest$ac_exeext'
7749   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7750   (eval $ac_try) 2>&5
7751   ac_status=$?
7752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7753   (exit $ac_status); }; }; then
7754   ac_cv_lib_Xext_XShmQueryExtension=yes
7755 else
7756   echo "$as_me: failed program was:" >&5
7757 sed 's/^/| /' conftest.$ac_ext >&5
7758
7759 ac_cv_lib_Xext_XShmQueryExtension=no
7760 fi
7761 rm -f conftest.err conftest.$ac_objext \
7762       conftest$ac_exeext conftest.$ac_ext
7763 LIBS=$ac_check_lib_save_LIBS
7764 fi
7765 echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShmQueryExtension" >&5
7766 echo "${ECHO_T}$ac_cv_lib_Xext_XShmQueryExtension" >&6
7767 if test $ac_cv_lib_Xext_XShmQueryExtension = yes; then
7768
7769 cat >>confdefs.h <<\_ACEOF
7770 #define HAVE_LIBXXSHM 1
7771 _ACEOF
7772
7773 fi
7774
7775         fi
7776
7777                 if test "$ac_cv_header_X11_extensions_shape_h" = "yes"
7778         then
7779               echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
7780 echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6
7781 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
7782   echo $ECHO_N "(cached) $ECHO_C" >&6
7783 else
7784   ac_check_lib_save_LIBS=$LIBS
7785 LIBS="-lXext $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
7786 cat >conftest.$ac_ext <<_ACEOF
7787 /* confdefs.h.  */
7788 _ACEOF
7789 cat confdefs.h >>conftest.$ac_ext
7790 cat >>conftest.$ac_ext <<_ACEOF
7791 /* end confdefs.h.  */
7792
7793 /* Override any gcc2 internal prototype to avoid an error.  */
7794 #ifdef __cplusplus
7795 extern "C"
7796 #endif
7797 /* We use char because int might match the return type of a gcc2
7798    builtin and then its argument prototype would still apply.  */
7799 char XShapeQueryExtension ();
7800 int
7801 main ()
7802 {
7803 XShapeQueryExtension ();
7804   ;
7805   return 0;
7806 }
7807 _ACEOF
7808 rm -f conftest.$ac_objext conftest$ac_exeext
7809 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7810   (eval $ac_link) 2>conftest.er1
7811   ac_status=$?
7812   grep -v '^ *+' conftest.er1 >conftest.err
7813   rm -f conftest.er1
7814   cat conftest.err >&5
7815   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7816   (exit $ac_status); } &&
7817          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
7818   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7819   (eval $ac_try) 2>&5
7820   ac_status=$?
7821   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7822   (exit $ac_status); }; } &&
7823          { ac_try='test -s conftest$ac_exeext'
7824   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7825   (eval $ac_try) 2>&5
7826   ac_status=$?
7827   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7828   (exit $ac_status); }; }; then
7829   ac_cv_lib_Xext_XShapeQueryExtension=yes
7830 else
7831   echo "$as_me: failed program was:" >&5
7832 sed 's/^/| /' conftest.$ac_ext >&5
7833
7834 ac_cv_lib_Xext_XShapeQueryExtension=no
7835 fi
7836 rm -f conftest.err conftest.$ac_objext \
7837       conftest$ac_exeext conftest.$ac_ext
7838 LIBS=$ac_check_lib_save_LIBS
7839 fi
7840 echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
7841 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6
7842 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
7843
7844 cat >>confdefs.h <<\_ACEOF
7845 #define HAVE_LIBXSHAPE 1
7846 _ACEOF
7847
7848 fi
7849
7850         fi
7851
7852                 if test "$ac_cv_header_X11_extensions_xf86dga_h" = "yes"
7853         then
7854               echo "$as_me:$LINENO: checking for XDGAQueryExtension in -lXxf86dga" >&5
7855 echo $ECHO_N "checking for XDGAQueryExtension in -lXxf86dga... $ECHO_C" >&6
7856 if test "${ac_cv_lib_Xxf86dga_XDGAQueryExtension+set}" = set; then
7857   echo $ECHO_N "(cached) $ECHO_C" >&6
7858 else
7859   ac_check_lib_save_LIBS=$LIBS
7860 LIBS="-lXxf86dga $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
7861 cat >conftest.$ac_ext <<_ACEOF
7862 /* confdefs.h.  */
7863 _ACEOF
7864 cat confdefs.h >>conftest.$ac_ext
7865 cat >>conftest.$ac_ext <<_ACEOF
7866 /* end confdefs.h.  */
7867
7868 /* Override any gcc2 internal prototype to avoid an error.  */
7869 #ifdef __cplusplus
7870 extern "C"
7871 #endif
7872 /* We use char because int might match the return type of a gcc2
7873    builtin and then its argument prototype would still apply.  */
7874 char XDGAQueryExtension ();
7875 int
7876 main ()
7877 {
7878 XDGAQueryExtension ();
7879   ;
7880   return 0;
7881 }
7882 _ACEOF
7883 rm -f conftest.$ac_objext conftest$ac_exeext
7884 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7885   (eval $ac_link) 2>conftest.er1
7886   ac_status=$?
7887   grep -v '^ *+' conftest.er1 >conftest.err
7888   rm -f conftest.er1
7889   cat conftest.err >&5
7890   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7891   (exit $ac_status); } &&
7892          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
7893   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7894   (eval $ac_try) 2>&5
7895   ac_status=$?
7896   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7897   (exit $ac_status); }; } &&
7898          { ac_try='test -s conftest$ac_exeext'
7899   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7900   (eval $ac_try) 2>&5
7901   ac_status=$?
7902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7903   (exit $ac_status); }; }; then
7904   ac_cv_lib_Xxf86dga_XDGAQueryExtension=yes
7905 else
7906   echo "$as_me: failed program was:" >&5
7907 sed 's/^/| /' conftest.$ac_ext >&5
7908
7909 ac_cv_lib_Xxf86dga_XDGAQueryExtension=no
7910 fi
7911 rm -f conftest.err conftest.$ac_objext \
7912       conftest$ac_exeext conftest.$ac_ext
7913 LIBS=$ac_check_lib_save_LIBS
7914 fi
7915 echo "$as_me:$LINENO: result: $ac_cv_lib_Xxf86dga_XDGAQueryExtension" >&5
7916 echo "${ECHO_T}$ac_cv_lib_Xxf86dga_XDGAQueryExtension" >&6
7917 if test $ac_cv_lib_Xxf86dga_XDGAQueryExtension = yes; then
7918
7919 cat >>confdefs.h <<\_ACEOF
7920 #define HAVE_LIBXXF86DGA2 1
7921 _ACEOF
7922
7923                   X_PRE_LIBS="$X_PRE_LIBS -lXxf86dga"
7924
7925 fi
7926
7927         fi
7928
7929                 if test "$ac_cv_header_X11_extensions_xf86vmode_h" = "yes"
7930         then
7931                 echo "$as_me:$LINENO: checking for XF86VidModeQueryExtension in -lXxf86vm" >&5
7932 echo $ECHO_N "checking for XF86VidModeQueryExtension in -lXxf86vm... $ECHO_C" >&6
7933 if test "${ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension+set}" = set; then
7934   echo $ECHO_N "(cached) $ECHO_C" >&6
7935 else
7936   ac_check_lib_save_LIBS=$LIBS
7937 LIBS="-lXxf86vm $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
7938 cat >conftest.$ac_ext <<_ACEOF
7939 /* confdefs.h.  */
7940 _ACEOF
7941 cat confdefs.h >>conftest.$ac_ext
7942 cat >>conftest.$ac_ext <<_ACEOF
7943 /* end confdefs.h.  */
7944
7945 /* Override any gcc2 internal prototype to avoid an error.  */
7946 #ifdef __cplusplus
7947 extern "C"
7948 #endif
7949 /* We use char because int might match the return type of a gcc2
7950    builtin and then its argument prototype would still apply.  */
7951 char XF86VidModeQueryExtension ();
7952 int
7953 main ()
7954 {
7955 XF86VidModeQueryExtension ();
7956   ;
7957   return 0;
7958 }
7959 _ACEOF
7960 rm -f conftest.$ac_objext conftest$ac_exeext
7961 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7962   (eval $ac_link) 2>conftest.er1
7963   ac_status=$?
7964   grep -v '^ *+' conftest.er1 >conftest.err
7965   rm -f conftest.er1
7966   cat conftest.err >&5
7967   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7968   (exit $ac_status); } &&
7969          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
7970   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7971   (eval $ac_try) 2>&5
7972   ac_status=$?
7973   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7974   (exit $ac_status); }; } &&
7975          { ac_try='test -s conftest$ac_exeext'
7976   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7977   (eval $ac_try) 2>&5
7978   ac_status=$?
7979   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7980   (exit $ac_status); }; }; then
7981   ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=yes
7982 else
7983   echo "$as_me: failed program was:" >&5
7984 sed 's/^/| /' conftest.$ac_ext >&5
7985
7986 ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=no
7987 fi
7988 rm -f conftest.err conftest.$ac_objext \
7989       conftest$ac_exeext conftest.$ac_ext
7990 LIBS=$ac_check_lib_save_LIBS
7991 fi
7992 echo "$as_me:$LINENO: result: $ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&5
7993 echo "${ECHO_T}$ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&6
7994 if test $ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension = yes; then
7995
7996 cat >>confdefs.h <<\_ACEOF
7997 #define HAVE_LIBXXF86VM 1
7998 _ACEOF
7999
8000                      X_PRE_LIBS="$X_PRE_LIBS -lXxf86vm"
8001
8002 fi
8003
8004         fi
8005
8006                 if test "$ac_cv_header_X11_extensions_Xrandr_h" = "yes"
8007         then
8008                 cat >conftest.$ac_ext <<_ACEOF
8009 /* confdefs.h.  */
8010 _ACEOF
8011 cat confdefs.h >>conftest.$ac_ext
8012 cat >>conftest.$ac_ext <<_ACEOF
8013 /* end confdefs.h.  */
8014 #include <X11/Xlib.h>
8015 #include <X11/extensions/Xrandr.h>
8016 int
8017 main ()
8018 {
8019 static typeof(XRRSetScreenConfigAndRate) * func;
8020   ;
8021   return 0;
8022 }
8023 _ACEOF
8024 rm -f conftest.$ac_objext
8025 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8026   (eval $ac_compile) 2>conftest.er1
8027   ac_status=$?
8028   grep -v '^ *+' conftest.er1 >conftest.err
8029   rm -f conftest.er1
8030   cat conftest.err >&5
8031   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8032   (exit $ac_status); } &&
8033          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8034   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8035   (eval $ac_try) 2>&5
8036   ac_status=$?
8037   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8038   (exit $ac_status); }; } &&
8039          { ac_try='test -s conftest.$ac_objext'
8040   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8041   (eval $ac_try) 2>&5
8042   ac_status=$?
8043   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8044   (exit $ac_status); }; }; then
8045
8046 cat >>confdefs.h <<\_ACEOF
8047 #define HAVE_LIBXRANDR 1
8048 _ACEOF
8049
8050 else
8051   echo "$as_me: failed program was:" >&5
8052 sed 's/^/| /' conftest.$ac_ext >&5
8053
8054 fi
8055 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8056         fi
8057
8058                 if test "$ac_cv_header_X11_extensions_Xrender_h" = "yes"
8059         then
8060               echo "$as_me:$LINENO: checking for XRenderSetPictureTransform in -lXrender" >&5
8061 echo $ECHO_N "checking for XRenderSetPictureTransform in -lXrender... $ECHO_C" >&6
8062 if test "${ac_cv_lib_Xrender_XRenderSetPictureTransform+set}" = set; then
8063   echo $ECHO_N "(cached) $ECHO_C" >&6
8064 else
8065   ac_check_lib_save_LIBS=$LIBS
8066 LIBS="-lXrender $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
8067 cat >conftest.$ac_ext <<_ACEOF
8068 /* confdefs.h.  */
8069 _ACEOF
8070 cat confdefs.h >>conftest.$ac_ext
8071 cat >>conftest.$ac_ext <<_ACEOF
8072 /* end confdefs.h.  */
8073
8074 /* Override any gcc2 internal prototype to avoid an error.  */
8075 #ifdef __cplusplus
8076 extern "C"
8077 #endif
8078 /* We use char because int might match the return type of a gcc2
8079    builtin and then its argument prototype would still apply.  */
8080 char XRenderSetPictureTransform ();
8081 int
8082 main ()
8083 {
8084 XRenderSetPictureTransform ();
8085   ;
8086   return 0;
8087 }
8088 _ACEOF
8089 rm -f conftest.$ac_objext conftest$ac_exeext
8090 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8091   (eval $ac_link) 2>conftest.er1
8092   ac_status=$?
8093   grep -v '^ *+' conftest.er1 >conftest.err
8094   rm -f conftest.er1
8095   cat conftest.err >&5
8096   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8097   (exit $ac_status); } &&
8098          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8099   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8100   (eval $ac_try) 2>&5
8101   ac_status=$?
8102   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8103   (exit $ac_status); }; } &&
8104          { ac_try='test -s conftest$ac_exeext'
8105   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8106   (eval $ac_try) 2>&5
8107   ac_status=$?
8108   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8109   (exit $ac_status); }; }; then
8110   ac_cv_lib_Xrender_XRenderSetPictureTransform=yes
8111 else
8112   echo "$as_me: failed program was:" >&5
8113 sed 's/^/| /' conftest.$ac_ext >&5
8114
8115 ac_cv_lib_Xrender_XRenderSetPictureTransform=no
8116 fi
8117 rm -f conftest.err conftest.$ac_objext \
8118       conftest$ac_exeext conftest.$ac_ext
8119 LIBS=$ac_check_lib_save_LIBS
8120 fi
8121 echo "$as_me:$LINENO: result: $ac_cv_lib_Xrender_XRenderSetPictureTransform" >&5
8122 echo "${ECHO_T}$ac_cv_lib_Xrender_XRenderSetPictureTransform" >&6
8123 if test $ac_cv_lib_Xrender_XRenderSetPictureTransform = yes; then
8124
8125 cat >>confdefs.h <<\_ACEOF
8126 #define HAVE_XRENDERSETPICTURETRANSFORM 1
8127 _ACEOF
8128
8129 fi
8130
8131         fi
8132
8133
8134 fi
8135
8136 done
8137
8138         if test "x$with_opengl" != "xno"
8139     then
8140         if test -f /usr/X11R6/lib/libGL.a -a ! -f /usr/X11R6/lib/libGL.so
8141         then
8142             { { echo "$as_me:$LINENO: error: /usr/X11R6/lib/libGL.a is present on your system.
8143 This prevents linking to OpenGL. Delete the file and restart configure." >&5
8144 echo "$as_me: error: /usr/X11R6/lib/libGL.a is present on your system.
8145 This prevents linking to OpenGL. Delete the file and restart configure." >&2;}
8146    { (exit 1); exit 1; }; }
8147         fi
8148
8149
8150
8151 for ac_header in GL/gl.h GL/glx.h
8152 do
8153 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8154 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8155   echo "$as_me:$LINENO: checking for $ac_header" >&5
8156 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8157 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8158   echo $ECHO_N "(cached) $ECHO_C" >&6
8159 fi
8160 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8161 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8162 else
8163   # Is the header compilable?
8164 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8165 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8166 cat >conftest.$ac_ext <<_ACEOF
8167 /* confdefs.h.  */
8168 _ACEOF
8169 cat confdefs.h >>conftest.$ac_ext
8170 cat >>conftest.$ac_ext <<_ACEOF
8171 /* end confdefs.h.  */
8172 $ac_includes_default
8173 #include <$ac_header>
8174 _ACEOF
8175 rm -f conftest.$ac_objext
8176 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8177   (eval $ac_compile) 2>conftest.er1
8178   ac_status=$?
8179   grep -v '^ *+' conftest.er1 >conftest.err
8180   rm -f conftest.er1
8181   cat conftest.err >&5
8182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8183   (exit $ac_status); } &&
8184          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8185   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8186   (eval $ac_try) 2>&5
8187   ac_status=$?
8188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8189   (exit $ac_status); }; } &&
8190          { ac_try='test -s conftest.$ac_objext'
8191   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8192   (eval $ac_try) 2>&5
8193   ac_status=$?
8194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8195   (exit $ac_status); }; }; then
8196   ac_header_compiler=yes
8197 else
8198   echo "$as_me: failed program was:" >&5
8199 sed 's/^/| /' conftest.$ac_ext >&5
8200
8201 ac_header_compiler=no
8202 fi
8203 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8204 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8205 echo "${ECHO_T}$ac_header_compiler" >&6
8206
8207 # Is the header present?
8208 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8209 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8210 cat >conftest.$ac_ext <<_ACEOF
8211 /* confdefs.h.  */
8212 _ACEOF
8213 cat confdefs.h >>conftest.$ac_ext
8214 cat >>conftest.$ac_ext <<_ACEOF
8215 /* end confdefs.h.  */
8216 #include <$ac_header>
8217 _ACEOF
8218 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8219   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8220   ac_status=$?
8221   grep -v '^ *+' conftest.er1 >conftest.err
8222   rm -f conftest.er1
8223   cat conftest.err >&5
8224   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8225   (exit $ac_status); } >/dev/null; then
8226   if test -s conftest.err; then
8227     ac_cpp_err=$ac_c_preproc_warn_flag
8228     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8229   else
8230     ac_cpp_err=
8231   fi
8232 else
8233   ac_cpp_err=yes
8234 fi
8235 if test -z "$ac_cpp_err"; then
8236   ac_header_preproc=yes
8237 else
8238   echo "$as_me: failed program was:" >&5
8239 sed 's/^/| /' conftest.$ac_ext >&5
8240
8241   ac_header_preproc=no
8242 fi
8243 rm -f conftest.err conftest.$ac_ext
8244 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8245 echo "${ECHO_T}$ac_header_preproc" >&6
8246
8247 # So?  What about this header?
8248 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8249   yes:no: )
8250     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8251 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8252     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8253 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8254     ac_header_preproc=yes
8255     ;;
8256   no:yes:* )
8257     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8258 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8259     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8260 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8261     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8262 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8263     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8264 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8265     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8266 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8267     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8268 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8269     (
8270       cat <<\_ASBOX
8271 ## ------------------------------------ ##
8272 ## Report this to wine-devel@winehq.org ##
8273 ## ------------------------------------ ##
8274 _ASBOX
8275     ) |
8276       sed "s/^/$as_me: WARNING:     /" >&2
8277     ;;
8278 esac
8279 echo "$as_me:$LINENO: checking for $ac_header" >&5
8280 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8281 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8282   echo $ECHO_N "(cached) $ECHO_C" >&6
8283 else
8284   eval "$as_ac_Header=\$ac_header_preproc"
8285 fi
8286 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8287 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8288
8289 fi
8290 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8291   cat >>confdefs.h <<_ACEOF
8292 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8293 _ACEOF
8294
8295 fi
8296
8297 done
8298
8299         if test "$ac_cv_header_GL_gl_h" = "yes" -a "$ac_cv_header_GL_glx_h" = "yes"
8300         then
8301
8302 for ac_header in GL/glext.h
8303 do
8304 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8305 echo "$as_me:$LINENO: checking for $ac_header" >&5
8306 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8307 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8308   echo $ECHO_N "(cached) $ECHO_C" >&6
8309 else
8310   cat >conftest.$ac_ext <<_ACEOF
8311 /* confdefs.h.  */
8312 _ACEOF
8313 cat confdefs.h >>conftest.$ac_ext
8314 cat >>conftest.$ac_ext <<_ACEOF
8315 /* end confdefs.h.  */
8316 #include <GL/glx.h>
8317
8318 #include <$ac_header>
8319 _ACEOF
8320 rm -f conftest.$ac_objext
8321 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8322   (eval $ac_compile) 2>conftest.er1
8323   ac_status=$?
8324   grep -v '^ *+' conftest.er1 >conftest.err
8325   rm -f conftest.er1
8326   cat conftest.err >&5
8327   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8328   (exit $ac_status); } &&
8329          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8330   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8331   (eval $ac_try) 2>&5
8332   ac_status=$?
8333   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8334   (exit $ac_status); }; } &&
8335          { ac_try='test -s conftest.$ac_objext'
8336   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8337   (eval $ac_try) 2>&5
8338   ac_status=$?
8339   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8340   (exit $ac_status); }; }; then
8341   eval "$as_ac_Header=yes"
8342 else
8343   echo "$as_me: failed program was:" >&5
8344 sed 's/^/| /' conftest.$ac_ext >&5
8345
8346 eval "$as_ac_Header=no"
8347 fi
8348 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8349 fi
8350 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8351 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8352 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8353   cat >>confdefs.h <<_ACEOF
8354 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8355 _ACEOF
8356
8357 fi
8358
8359 done
8360
8361                     echo "$as_me:$LINENO: checking for up-to-date OpenGL version" >&5
8362 echo $ECHO_N "checking for up-to-date OpenGL version... $ECHO_C" >&6
8363 if test "${wine_cv_opengl_version_OK+set}" = set; then
8364   echo $ECHO_N "(cached) $ECHO_C" >&6
8365 else
8366   cat >conftest.$ac_ext <<_ACEOF
8367 /* confdefs.h.  */
8368 _ACEOF
8369 cat confdefs.h >>conftest.$ac_ext
8370 cat >>conftest.$ac_ext <<_ACEOF
8371 /* end confdefs.h.  */
8372 #include <GL/gl.h>
8373 int
8374 main ()
8375 {
8376 GLenum test = GL_UNSIGNED_SHORT_5_6_5;
8377   ;
8378   return 0;
8379 }
8380 _ACEOF
8381 rm -f conftest.$ac_objext
8382 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8383   (eval $ac_compile) 2>conftest.er1
8384   ac_status=$?
8385   grep -v '^ *+' conftest.er1 >conftest.err
8386   rm -f conftest.er1
8387   cat conftest.err >&5
8388   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8389   (exit $ac_status); } &&
8390          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8391   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8392   (eval $ac_try) 2>&5
8393   ac_status=$?
8394   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8395   (exit $ac_status); }; } &&
8396          { ac_try='test -s conftest.$ac_objext'
8397   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8398   (eval $ac_try) 2>&5
8399   ac_status=$?
8400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8401   (exit $ac_status); }; }; then
8402   wine_cv_opengl_version_OK="yes"
8403 else
8404   echo "$as_me: failed program was:" >&5
8405 sed 's/^/| /' conftest.$ac_ext >&5
8406
8407 wine_cv_opengl_version_OK="no"
8408
8409 fi
8410 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8411
8412 fi
8413 echo "$as_me:$LINENO: result: $wine_cv_opengl_version_OK" >&5
8414 echo "${ECHO_T}$wine_cv_opengl_version_OK" >&6
8415
8416             if test "$wine_cv_opengl_version_OK" = "yes"
8417             then
8418                                 echo "$as_me:$LINENO: checking for glXCreateContext in -lGL" >&5
8419 echo $ECHO_N "checking for glXCreateContext in -lGL... $ECHO_C" >&6
8420 if test "${ac_cv_lib_GL_glXCreateContext+set}" = set; then
8421   echo $ECHO_N "(cached) $ECHO_C" >&6
8422 else
8423   ac_check_lib_save_LIBS=$LIBS
8424 LIBS="-lGL $X_LIBS -lXext -lX11 -lm $X_EXTRA_LIBS $LIBS"
8425 cat >conftest.$ac_ext <<_ACEOF
8426 /* confdefs.h.  */
8427 _ACEOF
8428 cat confdefs.h >>conftest.$ac_ext
8429 cat >>conftest.$ac_ext <<_ACEOF
8430 /* end confdefs.h.  */
8431
8432 /* Override any gcc2 internal prototype to avoid an error.  */
8433 #ifdef __cplusplus
8434 extern "C"
8435 #endif
8436 /* We use char because int might match the return type of a gcc2
8437    builtin and then its argument prototype would still apply.  */
8438 char glXCreateContext ();
8439 int
8440 main ()
8441 {
8442 glXCreateContext ();
8443   ;
8444   return 0;
8445 }
8446 _ACEOF
8447 rm -f conftest.$ac_objext conftest$ac_exeext
8448 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8449   (eval $ac_link) 2>conftest.er1
8450   ac_status=$?
8451   grep -v '^ *+' conftest.er1 >conftest.err
8452   rm -f conftest.er1
8453   cat conftest.err >&5
8454   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8455   (exit $ac_status); } &&
8456          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8457   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8458   (eval $ac_try) 2>&5
8459   ac_status=$?
8460   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8461   (exit $ac_status); }; } &&
8462          { ac_try='test -s conftest$ac_exeext'
8463   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8464   (eval $ac_try) 2>&5
8465   ac_status=$?
8466   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8467   (exit $ac_status); }; }; then
8468   ac_cv_lib_GL_glXCreateContext=yes
8469 else
8470   echo "$as_me: failed program was:" >&5
8471 sed 's/^/| /' conftest.$ac_ext >&5
8472
8473 ac_cv_lib_GL_glXCreateContext=no
8474 fi
8475 rm -f conftest.err conftest.$ac_objext \
8476       conftest$ac_exeext conftest.$ac_ext
8477 LIBS=$ac_check_lib_save_LIBS
8478 fi
8479 echo "$as_me:$LINENO: result: $ac_cv_lib_GL_glXCreateContext" >&5
8480 echo "${ECHO_T}$ac_cv_lib_GL_glXCreateContext" >&6
8481 if test $ac_cv_lib_GL_glXCreateContext = yes; then
8482   OPENGL_LIBS="-lGL"
8483
8484 fi
8485
8486
8487                 if test "$ac_cv_lib_GL_glXCreateContext" = "yes"
8488                 then
8489                         OPENGLFILES='$(OPENGLFILES)'
8490
8491 cat >>confdefs.h <<\_ACEOF
8492 #define HAVE_OPENGL 1
8493 _ACEOF
8494
8495                 fi
8496                                 echo "$as_me:$LINENO: checking for gluLookAt in -lGLU" >&5
8497 echo $ECHO_N "checking for gluLookAt in -lGLU... $ECHO_C" >&6
8498 if test "${ac_cv_lib_GLU_gluLookAt+set}" = set; then
8499   echo $ECHO_N "(cached) $ECHO_C" >&6
8500 else
8501   ac_check_lib_save_LIBS=$LIBS
8502 LIBS="-lGLU $OPENGL_LIBS $X_LIBS $X_PRE_LIBS -lXext -lX11 -lm $X_EXTRA_LIBS
8503                  $LIBS"
8504 cat >conftest.$ac_ext <<_ACEOF
8505 /* confdefs.h.  */
8506 _ACEOF
8507 cat confdefs.h >>conftest.$ac_ext
8508 cat >>conftest.$ac_ext <<_ACEOF
8509 /* end confdefs.h.  */
8510
8511 /* Override any gcc2 internal prototype to avoid an error.  */
8512 #ifdef __cplusplus
8513 extern "C"
8514 #endif
8515 /* We use char because int might match the return type of a gcc2
8516    builtin and then its argument prototype would still apply.  */
8517 char gluLookAt ();
8518 int
8519 main ()
8520 {
8521 gluLookAt ();
8522   ;
8523   return 0;
8524 }
8525 _ACEOF
8526 rm -f conftest.$ac_objext conftest$ac_exeext
8527 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8528   (eval $ac_link) 2>conftest.er1
8529   ac_status=$?
8530   grep -v '^ *+' conftest.er1 >conftest.err
8531   rm -f conftest.er1
8532   cat conftest.err >&5
8533   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8534   (exit $ac_status); } &&
8535          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8536   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8537   (eval $ac_try) 2>&5
8538   ac_status=$?
8539   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8540   (exit $ac_status); }; } &&
8541          { ac_try='test -s conftest$ac_exeext'
8542   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8543   (eval $ac_try) 2>&5
8544   ac_status=$?
8545   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8546   (exit $ac_status); }; }; then
8547   ac_cv_lib_GLU_gluLookAt=yes
8548 else
8549   echo "$as_me: failed program was:" >&5
8550 sed 's/^/| /' conftest.$ac_ext >&5
8551
8552 ac_cv_lib_GLU_gluLookAt=no
8553 fi
8554 rm -f conftest.err conftest.$ac_objext \
8555       conftest$ac_exeext conftest.$ac_ext
8556 LIBS=$ac_check_lib_save_LIBS
8557 fi
8558 echo "$as_me:$LINENO: result: $ac_cv_lib_GLU_gluLookAt" >&5
8559 echo "${ECHO_T}$ac_cv_lib_GLU_gluLookAt" >&6
8560 if test $ac_cv_lib_GLU_gluLookAt = yes; then
8561   OPENGL_LIBS="$OPENGL_LIBS -lGLU"
8562                              GLU32FILES='$(GLU32FILES)'
8563
8564 fi
8565
8566              fi
8567
8568                           echo "$as_me:$LINENO: checking for glutMainLoop in -lglut" >&5
8569 echo $ECHO_N "checking for glutMainLoop in -lglut... $ECHO_C" >&6
8570 if test "${ac_cv_lib_glut_glutMainLoop+set}" = set; then
8571   echo $ECHO_N "(cached) $ECHO_C" >&6
8572 else
8573   ac_check_lib_save_LIBS=$LIBS
8574 LIBS="-lglut $OPENGL_LIBS $X_LIBS $X_PRE_LIBS -lXmu -lXi -lX11 $X_EXTRA_LIBS $LIBS"
8575 cat >conftest.$ac_ext <<_ACEOF
8576 /* confdefs.h.  */
8577 _ACEOF
8578 cat confdefs.h >>conftest.$ac_ext
8579 cat >>conftest.$ac_ext <<_ACEOF
8580 /* end confdefs.h.  */
8581
8582 /* Override any gcc2 internal prototype to avoid an error.  */
8583 #ifdef __cplusplus
8584 extern "C"
8585 #endif
8586 /* We use char because int might match the return type of a gcc2
8587    builtin and then its argument prototype would still apply.  */
8588 char glutMainLoop ();
8589 int
8590 main ()
8591 {
8592 glutMainLoop ();
8593   ;
8594   return 0;
8595 }
8596 _ACEOF
8597 rm -f conftest.$ac_objext conftest$ac_exeext
8598 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8599   (eval $ac_link) 2>conftest.er1
8600   ac_status=$?
8601   grep -v '^ *+' conftest.er1 >conftest.err
8602   rm -f conftest.er1
8603   cat conftest.err >&5
8604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8605   (exit $ac_status); } &&
8606          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8607   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8608   (eval $ac_try) 2>&5
8609   ac_status=$?
8610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8611   (exit $ac_status); }; } &&
8612          { ac_try='test -s conftest$ac_exeext'
8613   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8614   (eval $ac_try) 2>&5
8615   ac_status=$?
8616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8617   (exit $ac_status); }; }; then
8618   ac_cv_lib_glut_glutMainLoop=yes
8619 else
8620   echo "$as_me: failed program was:" >&5
8621 sed 's/^/| /' conftest.$ac_ext >&5
8622
8623 ac_cv_lib_glut_glutMainLoop=no
8624 fi
8625 rm -f conftest.err conftest.$ac_objext \
8626       conftest$ac_exeext conftest.$ac_ext
8627 LIBS=$ac_check_lib_save_LIBS
8628 fi
8629 echo "$as_me:$LINENO: result: $ac_cv_lib_glut_glutMainLoop" >&5
8630 echo "${ECHO_T}$ac_cv_lib_glut_glutMainLoop" >&6
8631 if test $ac_cv_lib_glut_glutMainLoop = yes; then
8632   GLUT_LIBS="-lglut -lXmu -lXi"
8633
8634                         GLUT32FILES='$(GLUT32FILES)'
8635
8636 fi
8637
8638          fi
8639     fi
8640
8641         NASLIBS=""
8642
8643
8644 for ac_header in audio/audiolib.h
8645 do
8646 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8647 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8648   echo "$as_me:$LINENO: checking for $ac_header" >&5
8649 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8650 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8651   echo $ECHO_N "(cached) $ECHO_C" >&6
8652 fi
8653 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8654 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8655 else
8656   # Is the header compilable?
8657 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8658 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8659 cat >conftest.$ac_ext <<_ACEOF
8660 /* confdefs.h.  */
8661 _ACEOF
8662 cat confdefs.h >>conftest.$ac_ext
8663 cat >>conftest.$ac_ext <<_ACEOF
8664 /* end confdefs.h.  */
8665 $ac_includes_default
8666 #include <$ac_header>
8667 _ACEOF
8668 rm -f conftest.$ac_objext
8669 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8670   (eval $ac_compile) 2>conftest.er1
8671   ac_status=$?
8672   grep -v '^ *+' conftest.er1 >conftest.err
8673   rm -f conftest.er1
8674   cat conftest.err >&5
8675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8676   (exit $ac_status); } &&
8677          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8678   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8679   (eval $ac_try) 2>&5
8680   ac_status=$?
8681   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8682   (exit $ac_status); }; } &&
8683          { ac_try='test -s conftest.$ac_objext'
8684   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8685   (eval $ac_try) 2>&5
8686   ac_status=$?
8687   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8688   (exit $ac_status); }; }; then
8689   ac_header_compiler=yes
8690 else
8691   echo "$as_me: failed program was:" >&5
8692 sed 's/^/| /' conftest.$ac_ext >&5
8693
8694 ac_header_compiler=no
8695 fi
8696 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8697 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8698 echo "${ECHO_T}$ac_header_compiler" >&6
8699
8700 # Is the header present?
8701 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8702 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8703 cat >conftest.$ac_ext <<_ACEOF
8704 /* confdefs.h.  */
8705 _ACEOF
8706 cat confdefs.h >>conftest.$ac_ext
8707 cat >>conftest.$ac_ext <<_ACEOF
8708 /* end confdefs.h.  */
8709 #include <$ac_header>
8710 _ACEOF
8711 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8712   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8713   ac_status=$?
8714   grep -v '^ *+' conftest.er1 >conftest.err
8715   rm -f conftest.er1
8716   cat conftest.err >&5
8717   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8718   (exit $ac_status); } >/dev/null; then
8719   if test -s conftest.err; then
8720     ac_cpp_err=$ac_c_preproc_warn_flag
8721     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8722   else
8723     ac_cpp_err=
8724   fi
8725 else
8726   ac_cpp_err=yes
8727 fi
8728 if test -z "$ac_cpp_err"; then
8729   ac_header_preproc=yes
8730 else
8731   echo "$as_me: failed program was:" >&5
8732 sed 's/^/| /' conftest.$ac_ext >&5
8733
8734   ac_header_preproc=no
8735 fi
8736 rm -f conftest.err conftest.$ac_ext
8737 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8738 echo "${ECHO_T}$ac_header_preproc" >&6
8739
8740 # So?  What about this header?
8741 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8742   yes:no: )
8743     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8744 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8745     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8746 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8747     ac_header_preproc=yes
8748     ;;
8749   no:yes:* )
8750     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8751 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8752     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8753 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8754     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8755 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8756     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8757 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8758     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8759 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8760     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8761 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8762     (
8763       cat <<\_ASBOX
8764 ## ------------------------------------ ##
8765 ## Report this to wine-devel@winehq.org ##
8766 ## ------------------------------------ ##
8767 _ASBOX
8768     ) |
8769       sed "s/^/$as_me: WARNING:     /" >&2
8770     ;;
8771 esac
8772 echo "$as_me:$LINENO: checking for $ac_header" >&5
8773 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8774 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8775   echo $ECHO_N "(cached) $ECHO_C" >&6
8776 else
8777   eval "$as_ac_Header=\$ac_header_preproc"
8778 fi
8779 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8780 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8781
8782 fi
8783 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8784   cat >>confdefs.h <<_ACEOF
8785 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8786 _ACEOF
8787
8788 for ac_header in audio/soundlib.h
8789 do
8790 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8791 echo "$as_me:$LINENO: checking for $ac_header" >&5
8792 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8793 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8794   echo $ECHO_N "(cached) $ECHO_C" >&6
8795 else
8796   cat >conftest.$ac_ext <<_ACEOF
8797 /* confdefs.h.  */
8798 _ACEOF
8799 cat confdefs.h >>conftest.$ac_ext
8800 cat >>conftest.$ac_ext <<_ACEOF
8801 /* end confdefs.h.  */
8802 #include <audio/audiolib.h>
8803
8804 #include <$ac_header>
8805 _ACEOF
8806 rm -f conftest.$ac_objext
8807 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8808   (eval $ac_compile) 2>conftest.er1
8809   ac_status=$?
8810   grep -v '^ *+' conftest.er1 >conftest.err
8811   rm -f conftest.er1
8812   cat conftest.err >&5
8813   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8814   (exit $ac_status); } &&
8815          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8816   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8817   (eval $ac_try) 2>&5
8818   ac_status=$?
8819   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8820   (exit $ac_status); }; } &&
8821          { ac_try='test -s conftest.$ac_objext'
8822   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8823   (eval $ac_try) 2>&5
8824   ac_status=$?
8825   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8826   (exit $ac_status); }; }; then
8827   eval "$as_ac_Header=yes"
8828 else
8829   echo "$as_me: failed program was:" >&5
8830 sed 's/^/| /' conftest.$ac_ext >&5
8831
8832 eval "$as_ac_Header=no"
8833 fi
8834 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8835 fi
8836 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8837 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8838 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8839   cat >>confdefs.h <<_ACEOF
8840 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8841 _ACEOF
8842
8843 fi
8844
8845 done
8846
8847           echo "$as_me:$LINENO: checking for AuCreateFlow in -laudio" >&5
8848 echo $ECHO_N "checking for AuCreateFlow in -laudio... $ECHO_C" >&6
8849 if test "${ac_cv_lib_audio_AuCreateFlow+set}" = set; then
8850   echo $ECHO_N "(cached) $ECHO_C" >&6
8851 else
8852   ac_check_lib_save_LIBS=$LIBS
8853 LIBS="-laudio -lXt $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
8854 cat >conftest.$ac_ext <<_ACEOF
8855 /* confdefs.h.  */
8856 _ACEOF
8857 cat confdefs.h >>conftest.$ac_ext
8858 cat >>conftest.$ac_ext <<_ACEOF
8859 /* end confdefs.h.  */
8860
8861 /* Override any gcc2 internal prototype to avoid an error.  */
8862 #ifdef __cplusplus
8863 extern "C"
8864 #endif
8865 /* We use char because int might match the return type of a gcc2
8866    builtin and then its argument prototype would still apply.  */
8867 char AuCreateFlow ();
8868 int
8869 main ()
8870 {
8871 AuCreateFlow ();
8872   ;
8873   return 0;
8874 }
8875 _ACEOF
8876 rm -f conftest.$ac_objext conftest$ac_exeext
8877 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8878   (eval $ac_link) 2>conftest.er1
8879   ac_status=$?
8880   grep -v '^ *+' conftest.er1 >conftest.err
8881   rm -f conftest.er1
8882   cat conftest.err >&5
8883   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8884   (exit $ac_status); } &&
8885          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8886   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8887   (eval $ac_try) 2>&5
8888   ac_status=$?
8889   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8890   (exit $ac_status); }; } &&
8891          { ac_try='test -s conftest$ac_exeext'
8892   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8893   (eval $ac_try) 2>&5
8894   ac_status=$?
8895   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8896   (exit $ac_status); }; }; then
8897   ac_cv_lib_audio_AuCreateFlow=yes
8898 else
8899   echo "$as_me: failed program was:" >&5
8900 sed 's/^/| /' conftest.$ac_ext >&5
8901
8902 ac_cv_lib_audio_AuCreateFlow=no
8903 fi
8904 rm -f conftest.err conftest.$ac_objext \
8905       conftest$ac_exeext conftest.$ac_ext
8906 LIBS=$ac_check_lib_save_LIBS
8907 fi
8908 echo "$as_me:$LINENO: result: $ac_cv_lib_audio_AuCreateFlow" >&5
8909 echo "${ECHO_T}$ac_cv_lib_audio_AuCreateFlow" >&6
8910 if test $ac_cv_lib_audio_AuCreateFlow = yes; then
8911
8912 cat >>confdefs.h <<\_ACEOF
8913 #define HAVE_NAS 1
8914 _ACEOF
8915
8916                         NASLIBS="-laudio -lXt $X_LIBS -lXext -lX11 $X_EXTRA_LIBS"
8917 fi
8918
8919 fi
8920
8921 done
8922
8923
8924     CPPFLAGS="$ac_save_CPPFLAGS"
8925     XFILES='$(XFILES)'
8926 else
8927     XLIB=""
8928     X_CFLAGS=""
8929     X_LIBS=""
8930 fi
8931
8932 CURSESLIBS=""
8933 if test "x$with_curses" != "xno"
8934 then
8935
8936 for ac_header in ncurses.h
8937 do
8938 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8939 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8940   echo "$as_me:$LINENO: checking for $ac_header" >&5
8941 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8942 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8943   echo $ECHO_N "(cached) $ECHO_C" >&6
8944 fi
8945 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8946 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8947 else
8948   # Is the header compilable?
8949 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8950 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8951 cat >conftest.$ac_ext <<_ACEOF
8952 /* confdefs.h.  */
8953 _ACEOF
8954 cat confdefs.h >>conftest.$ac_ext
8955 cat >>conftest.$ac_ext <<_ACEOF
8956 /* end confdefs.h.  */
8957 $ac_includes_default
8958 #include <$ac_header>
8959 _ACEOF
8960 rm -f conftest.$ac_objext
8961 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8962   (eval $ac_compile) 2>conftest.er1
8963   ac_status=$?
8964   grep -v '^ *+' conftest.er1 >conftest.err
8965   rm -f conftest.er1
8966   cat conftest.err >&5
8967   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8968   (exit $ac_status); } &&
8969          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8970   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8971   (eval $ac_try) 2>&5
8972   ac_status=$?
8973   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8974   (exit $ac_status); }; } &&
8975          { ac_try='test -s conftest.$ac_objext'
8976   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8977   (eval $ac_try) 2>&5
8978   ac_status=$?
8979   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8980   (exit $ac_status); }; }; then
8981   ac_header_compiler=yes
8982 else
8983   echo "$as_me: failed program was:" >&5
8984 sed 's/^/| /' conftest.$ac_ext >&5
8985
8986 ac_header_compiler=no
8987 fi
8988 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8989 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8990 echo "${ECHO_T}$ac_header_compiler" >&6
8991
8992 # Is the header present?
8993 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8994 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8995 cat >conftest.$ac_ext <<_ACEOF
8996 /* confdefs.h.  */
8997 _ACEOF
8998 cat confdefs.h >>conftest.$ac_ext
8999 cat >>conftest.$ac_ext <<_ACEOF
9000 /* end confdefs.h.  */
9001 #include <$ac_header>
9002 _ACEOF
9003 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9004   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9005   ac_status=$?
9006   grep -v '^ *+' conftest.er1 >conftest.err
9007   rm -f conftest.er1
9008   cat conftest.err >&5
9009   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9010   (exit $ac_status); } >/dev/null; then
9011   if test -s conftest.err; then
9012     ac_cpp_err=$ac_c_preproc_warn_flag
9013     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9014   else
9015     ac_cpp_err=
9016   fi
9017 else
9018   ac_cpp_err=yes
9019 fi
9020 if test -z "$ac_cpp_err"; then
9021   ac_header_preproc=yes
9022 else
9023   echo "$as_me: failed program was:" >&5
9024 sed 's/^/| /' conftest.$ac_ext >&5
9025
9026   ac_header_preproc=no
9027 fi
9028 rm -f conftest.err conftest.$ac_ext
9029 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9030 echo "${ECHO_T}$ac_header_preproc" >&6
9031
9032 # So?  What about this header?
9033 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9034   yes:no: )
9035     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9036 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9037     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9038 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9039     ac_header_preproc=yes
9040     ;;
9041   no:yes:* )
9042     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9043 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9044     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9045 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9046     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9047 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9048     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9049 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9050     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9051 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9052     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9053 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9054     (
9055       cat <<\_ASBOX
9056 ## ------------------------------------ ##
9057 ## Report this to wine-devel@winehq.org ##
9058 ## ------------------------------------ ##
9059 _ASBOX
9060     ) |
9061       sed "s/^/$as_me: WARNING:     /" >&2
9062     ;;
9063 esac
9064 echo "$as_me:$LINENO: checking for $ac_header" >&5
9065 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9066 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9067   echo $ECHO_N "(cached) $ECHO_C" >&6
9068 else
9069   eval "$as_ac_Header=\$ac_header_preproc"
9070 fi
9071 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9072 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9073
9074 fi
9075 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9076   cat >>confdefs.h <<_ACEOF
9077 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9078 _ACEOF
9079  echo "$as_me:$LINENO: checking for waddch in -lncurses" >&5
9080 echo $ECHO_N "checking for waddch in -lncurses... $ECHO_C" >&6
9081 if test "${ac_cv_lib_ncurses_waddch+set}" = set; then
9082   echo $ECHO_N "(cached) $ECHO_C" >&6
9083 else
9084   ac_check_lib_save_LIBS=$LIBS
9085 LIBS="-lncurses  $LIBS"
9086 cat >conftest.$ac_ext <<_ACEOF
9087 /* confdefs.h.  */
9088 _ACEOF
9089 cat confdefs.h >>conftest.$ac_ext
9090 cat >>conftest.$ac_ext <<_ACEOF
9091 /* end confdefs.h.  */
9092
9093 /* Override any gcc2 internal prototype to avoid an error.  */
9094 #ifdef __cplusplus
9095 extern "C"
9096 #endif
9097 /* We use char because int might match the return type of a gcc2
9098    builtin and then its argument prototype would still apply.  */
9099 char waddch ();
9100 int
9101 main ()
9102 {
9103 waddch ();
9104   ;
9105   return 0;
9106 }
9107 _ACEOF
9108 rm -f conftest.$ac_objext conftest$ac_exeext
9109 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9110   (eval $ac_link) 2>conftest.er1
9111   ac_status=$?
9112   grep -v '^ *+' conftest.er1 >conftest.err
9113   rm -f conftest.er1
9114   cat conftest.err >&5
9115   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9116   (exit $ac_status); } &&
9117          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
9118   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9119   (eval $ac_try) 2>&5
9120   ac_status=$?
9121   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9122   (exit $ac_status); }; } &&
9123          { ac_try='test -s conftest$ac_exeext'
9124   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9125   (eval $ac_try) 2>&5
9126   ac_status=$?
9127   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9128   (exit $ac_status); }; }; then
9129   ac_cv_lib_ncurses_waddch=yes
9130 else
9131   echo "$as_me: failed program was:" >&5
9132 sed 's/^/| /' conftest.$ac_ext >&5
9133
9134 ac_cv_lib_ncurses_waddch=no
9135 fi
9136 rm -f conftest.err conftest.$ac_objext \
9137       conftest$ac_exeext conftest.$ac_ext
9138 LIBS=$ac_check_lib_save_LIBS
9139 fi
9140 echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_waddch" >&5
9141 echo "${ECHO_T}$ac_cv_lib_ncurses_waddch" >&6
9142 if test $ac_cv_lib_ncurses_waddch = yes; then
9143
9144 cat >>confdefs.h <<\_ACEOF
9145 #define HAVE_LIBNCURSES 1
9146 _ACEOF
9147
9148              CURSESLIBS="-lncurses"
9149 else
9150
9151 for ac_header in curses.h
9152 do
9153 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9154 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9155   echo "$as_me:$LINENO: checking for $ac_header" >&5
9156 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9157 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9158   echo $ECHO_N "(cached) $ECHO_C" >&6
9159 fi
9160 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9161 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9162 else
9163   # Is the header compilable?
9164 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9165 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9166 cat >conftest.$ac_ext <<_ACEOF
9167 /* confdefs.h.  */
9168 _ACEOF
9169 cat confdefs.h >>conftest.$ac_ext
9170 cat >>conftest.$ac_ext <<_ACEOF
9171 /* end confdefs.h.  */
9172 $ac_includes_default
9173 #include <$ac_header>
9174 _ACEOF
9175 rm -f conftest.$ac_objext
9176 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9177   (eval $ac_compile) 2>conftest.er1
9178   ac_status=$?
9179   grep -v '^ *+' conftest.er1 >conftest.err
9180   rm -f conftest.er1
9181   cat conftest.err >&5
9182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9183   (exit $ac_status); } &&
9184          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
9185   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9186   (eval $ac_try) 2>&5
9187   ac_status=$?
9188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9189   (exit $ac_status); }; } &&
9190          { ac_try='test -s conftest.$ac_objext'
9191   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9192   (eval $ac_try) 2>&5
9193   ac_status=$?
9194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9195   (exit $ac_status); }; }; then
9196   ac_header_compiler=yes
9197 else
9198   echo "$as_me: failed program was:" >&5
9199 sed 's/^/| /' conftest.$ac_ext >&5
9200
9201 ac_header_compiler=no
9202 fi
9203 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9204 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9205 echo "${ECHO_T}$ac_header_compiler" >&6
9206
9207 # Is the header present?
9208 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9209 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9210 cat >conftest.$ac_ext <<_ACEOF
9211 /* confdefs.h.  */
9212 _ACEOF
9213 cat confdefs.h >>conftest.$ac_ext
9214 cat >>conftest.$ac_ext <<_ACEOF
9215 /* end confdefs.h.  */
9216 #include <$ac_header>
9217 _ACEOF
9218 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9219   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9220   ac_status=$?
9221   grep -v '^ *+' conftest.er1 >conftest.err
9222   rm -f conftest.er1
9223   cat conftest.err >&5
9224   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9225   (exit $ac_status); } >/dev/null; then
9226   if test -s conftest.err; then
9227     ac_cpp_err=$ac_c_preproc_warn_flag
9228     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9229   else
9230     ac_cpp_err=
9231   fi
9232 else
9233   ac_cpp_err=yes
9234 fi
9235 if test -z "$ac_cpp_err"; then
9236   ac_header_preproc=yes
9237 else
9238   echo "$as_me: failed program was:" >&5
9239 sed 's/^/| /' conftest.$ac_ext >&5
9240
9241   ac_header_preproc=no
9242 fi
9243 rm -f conftest.err conftest.$ac_ext
9244 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9245 echo "${ECHO_T}$ac_header_preproc" >&6
9246
9247 # So?  What about this header?
9248 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9249   yes:no: )
9250     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9251 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9252     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9253 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9254     ac_header_preproc=yes
9255     ;;
9256   no:yes:* )
9257     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9258 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9259     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9260 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9261     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9262 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9263     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9264 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9265     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9266 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9267     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9268 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9269     (
9270       cat <<\_ASBOX
9271 ## ------------------------------------ ##
9272 ## Report this to wine-devel@winehq.org ##
9273 ## ------------------------------------ ##
9274 _ASBOX
9275     ) |
9276       sed "s/^/$as_me: WARNING:     /" >&2
9277     ;;
9278 esac
9279 echo "$as_me:$LINENO: checking for $ac_header" >&5
9280 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9281 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9282   echo $ECHO_N "(cached) $ECHO_C" >&6
9283 else
9284   eval "$as_ac_Header=\$ac_header_preproc"
9285 fi
9286 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9287 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9288
9289 fi
9290 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9291   cat >>confdefs.h <<_ACEOF
9292 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9293 _ACEOF
9294  echo "$as_me:$LINENO: checking for waddch in -lcurses" >&5
9295 echo $ECHO_N "checking for waddch in -lcurses... $ECHO_C" >&6
9296 if test "${ac_cv_lib_curses_waddch+set}" = set; then
9297   echo $ECHO_N "(cached) $ECHO_C" >&6
9298 else
9299   ac_check_lib_save_LIBS=$LIBS
9300 LIBS="-lcurses  $LIBS"
9301 cat >conftest.$ac_ext <<_ACEOF
9302 /* confdefs.h.  */
9303 _ACEOF
9304 cat confdefs.h >>conftest.$ac_ext
9305 cat >>conftest.$ac_ext <<_ACEOF
9306 /* end confdefs.h.  */
9307
9308 /* Override any gcc2 internal prototype to avoid an error.  */
9309 #ifdef __cplusplus
9310 extern "C"
9311 #endif
9312 /* We use char because int might match the return type of a gcc2
9313    builtin and then its argument prototype would still apply.  */
9314 char waddch ();
9315 int
9316 main ()
9317 {
9318 waddch ();
9319   ;
9320   return 0;
9321 }
9322 _ACEOF
9323 rm -f conftest.$ac_objext conftest$ac_exeext
9324 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9325   (eval $ac_link) 2>conftest.er1
9326   ac_status=$?
9327   grep -v '^ *+' conftest.er1 >conftest.err
9328   rm -f conftest.er1
9329   cat conftest.err >&5
9330   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9331   (exit $ac_status); } &&
9332          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
9333   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9334   (eval $ac_try) 2>&5
9335   ac_status=$?
9336   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9337   (exit $ac_status); }; } &&
9338          { ac_try='test -s conftest$ac_exeext'
9339   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9340   (eval $ac_try) 2>&5
9341   ac_status=$?
9342   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9343   (exit $ac_status); }; }; then
9344   ac_cv_lib_curses_waddch=yes
9345 else
9346   echo "$as_me: failed program was:" >&5
9347 sed 's/^/| /' conftest.$ac_ext >&5
9348
9349 ac_cv_lib_curses_waddch=no
9350 fi
9351 rm -f conftest.err conftest.$ac_objext \
9352       conftest$ac_exeext conftest.$ac_ext
9353 LIBS=$ac_check_lib_save_LIBS
9354 fi
9355 echo "$as_me:$LINENO: result: $ac_cv_lib_curses_waddch" >&5
9356 echo "${ECHO_T}$ac_cv_lib_curses_waddch" >&6
9357 if test $ac_cv_lib_curses_waddch = yes; then
9358
9359 cat >>confdefs.h <<\_ACEOF
9360 #define HAVE_LIBCURSES 1
9361 _ACEOF
9362
9363                       CURSESLIBS="-lcurses"
9364 fi
9365
9366 fi
9367
9368 done
9369
9370 fi
9371
9372 fi
9373
9374 done
9375
9376 fi
9377
9378
9379 # Extract the first word of "sane-config", so it can be a program name with args.
9380 set dummy sane-config; ac_word=$2
9381 echo "$as_me:$LINENO: checking for $ac_word" >&5
9382 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9383 if test "${ac_cv_prog_sane_devel+set}" = set; then
9384   echo $ECHO_N "(cached) $ECHO_C" >&6
9385 else
9386   if test -n "$sane_devel"; then
9387   ac_cv_prog_sane_devel="$sane_devel" # Let the user override the test.
9388 else
9389 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9390 for as_dir in $PATH
9391 do
9392   IFS=$as_save_IFS
9393   test -z "$as_dir" && as_dir=.
9394   for ac_exec_ext in '' $ac_executable_extensions; do
9395   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9396     ac_cv_prog_sane_devel="sane-config"
9397     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9398     break 2
9399   fi
9400 done
9401 done
9402
9403   test -z "$ac_cv_prog_sane_devel" && ac_cv_prog_sane_devel="no"
9404 fi
9405 fi
9406 sane_devel=$ac_cv_prog_sane_devel
9407 if test -n "$sane_devel"; then
9408   echo "$as_me:$LINENO: result: $sane_devel" >&5
9409 echo "${ECHO_T}$sane_devel" >&6
9410 else
9411   echo "$as_me:$LINENO: result: no" >&5
9412 echo "${ECHO_T}no" >&6
9413 fi
9414
9415 if test "$sane_devel" = "no"
9416 then
9417     SANELIBS=""
9418     SANEINCL=""
9419 else
9420     SANELIBS="`$sane_devel --libs`"
9421     SANEINCL="`$sane_devel --cflags`"
9422     ac_save_CPPFLAGS="$CPPFLAGS"
9423     ac_save_LIBS="$LIBS"
9424     CPPFLAGS="$CPPFLAGS $SANEINCL"
9425     LIBS="$LIBS $SANELIBS"
9426     if test "${ac_cv_header_sane_sane_h+set}" = set; then
9427   echo "$as_me:$LINENO: checking for sane/sane.h" >&5
9428 echo $ECHO_N "checking for sane/sane.h... $ECHO_C" >&6
9429 if test "${ac_cv_header_sane_sane_h+set}" = set; then
9430   echo $ECHO_N "(cached) $ECHO_C" >&6
9431 fi
9432 echo "$as_me:$LINENO: result: $ac_cv_header_sane_sane_h" >&5
9433 echo "${ECHO_T}$ac_cv_header_sane_sane_h" >&6
9434 else
9435   # Is the header compilable?
9436 echo "$as_me:$LINENO: checking sane/sane.h usability" >&5
9437 echo $ECHO_N "checking sane/sane.h usability... $ECHO_C" >&6
9438 cat >conftest.$ac_ext <<_ACEOF
9439 /* confdefs.h.  */
9440 _ACEOF
9441 cat confdefs.h >>conftest.$ac_ext
9442 cat >>conftest.$ac_ext <<_ACEOF
9443 /* end confdefs.h.  */
9444 $ac_includes_default
9445 #include <sane/sane.h>
9446 _ACEOF
9447 rm -f conftest.$ac_objext
9448 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9449   (eval $ac_compile) 2>conftest.er1
9450   ac_status=$?
9451   grep -v '^ *+' conftest.er1 >conftest.err
9452   rm -f conftest.er1
9453   cat conftest.err >&5
9454   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9455   (exit $ac_status); } &&
9456          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
9457   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9458   (eval $ac_try) 2>&5
9459   ac_status=$?
9460   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9461   (exit $ac_status); }; } &&
9462          { ac_try='test -s conftest.$ac_objext'
9463   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9464   (eval $ac_try) 2>&5
9465   ac_status=$?
9466   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9467   (exit $ac_status); }; }; then
9468   ac_header_compiler=yes
9469 else
9470   echo "$as_me: failed program was:" >&5
9471 sed 's/^/| /' conftest.$ac_ext >&5
9472
9473 ac_header_compiler=no
9474 fi
9475 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9476 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9477 echo "${ECHO_T}$ac_header_compiler" >&6
9478
9479 # Is the header present?
9480 echo "$as_me:$LINENO: checking sane/sane.h presence" >&5
9481 echo $ECHO_N "checking sane/sane.h presence... $ECHO_C" >&6
9482 cat >conftest.$ac_ext <<_ACEOF
9483 /* confdefs.h.  */
9484 _ACEOF
9485 cat confdefs.h >>conftest.$ac_ext
9486 cat >>conftest.$ac_ext <<_ACEOF
9487 /* end confdefs.h.  */
9488 #include <sane/sane.h>
9489 _ACEOF
9490 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9491   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9492   ac_status=$?
9493   grep -v '^ *+' conftest.er1 >conftest.err
9494   rm -f conftest.er1
9495   cat conftest.err >&5
9496   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9497   (exit $ac_status); } >/dev/null; then
9498   if test -s conftest.err; then
9499     ac_cpp_err=$ac_c_preproc_warn_flag
9500     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9501   else
9502     ac_cpp_err=
9503   fi
9504 else
9505   ac_cpp_err=yes
9506 fi
9507 if test -z "$ac_cpp_err"; then
9508   ac_header_preproc=yes
9509 else
9510   echo "$as_me: failed program was:" >&5
9511 sed 's/^/| /' conftest.$ac_ext >&5
9512
9513   ac_header_preproc=no
9514 fi
9515 rm -f conftest.err conftest.$ac_ext
9516 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9517 echo "${ECHO_T}$ac_header_preproc" >&6
9518
9519 # So?  What about this header?
9520 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9521   yes:no: )
9522     { echo "$as_me:$LINENO: WARNING: sane/sane.h: accepted by the compiler, rejected by the preprocessor!" >&5
9523 echo "$as_me: WARNING: sane/sane.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9524     { echo "$as_me:$LINENO: WARNING: sane/sane.h: proceeding with the compiler's result" >&5
9525 echo "$as_me: WARNING: sane/sane.h: proceeding with the compiler's result" >&2;}
9526     ac_header_preproc=yes
9527     ;;
9528   no:yes:* )
9529     { echo "$as_me:$LINENO: WARNING: sane/sane.h: present but cannot be compiled" >&5
9530 echo "$as_me: WARNING: sane/sane.h: present but cannot be compiled" >&2;}
9531     { echo "$as_me:$LINENO: WARNING: sane/sane.h:     check for missing prerequisite headers?" >&5
9532 echo "$as_me: WARNING: sane/sane.h:     check for missing prerequisite headers?" >&2;}
9533     { echo "$as_me:$LINENO: WARNING: sane/sane.h: see the Autoconf documentation" >&5
9534 echo "$as_me: WARNING: sane/sane.h: see the Autoconf documentation" >&2;}
9535     { echo "$as_me:$LINENO: WARNING: sane/sane.h:     section \"Present But Cannot Be Compiled\"" >&5
9536 echo "$as_me: WARNING: sane/sane.h:     section \"Present But Cannot Be Compiled\"" >&2;}
9537     { echo "$as_me:$LINENO: WARNING: sane/sane.h: proceeding with the preprocessor's result" >&5
9538 echo "$as_me: WARNING: sane/sane.h: proceeding with the preprocessor's result" >&2;}
9539     { echo "$as_me:$LINENO: WARNING: sane/sane.h: in the future, the compiler will take precedence" >&5
9540 echo "$as_me: WARNING: sane/sane.h: in the future, the compiler will take precedence" >&2;}
9541     (
9542       cat <<\_ASBOX
9543 ## ------------------------------------ ##
9544 ## Report this to wine-devel@winehq.org ##
9545 ## ------------------------------------ ##
9546 _ASBOX
9547     ) |
9548       sed "s/^/$as_me: WARNING:     /" >&2
9549     ;;
9550 esac
9551 echo "$as_me:$LINENO: checking for sane/sane.h" >&5
9552 echo $ECHO_N "checking for sane/sane.h... $ECHO_C" >&6
9553 if test "${ac_cv_header_sane_sane_h+set}" = set; then
9554   echo $ECHO_N "(cached) $ECHO_C" >&6
9555 else
9556   ac_cv_header_sane_sane_h=$ac_header_preproc
9557 fi
9558 echo "$as_me:$LINENO: result: $ac_cv_header_sane_sane_h" >&5
9559 echo "${ECHO_T}$ac_cv_header_sane_sane_h" >&6
9560
9561 fi
9562 if test $ac_cv_header_sane_sane_h = yes; then
9563   echo "$as_me:$LINENO: checking for sane_open in -lsane" >&5
9564 echo $ECHO_N "checking for sane_open in -lsane... $ECHO_C" >&6
9565 if test "${ac_cv_lib_sane_sane_open+set}" = set; then
9566   echo $ECHO_N "(cached) $ECHO_C" >&6
9567 else
9568   ac_check_lib_save_LIBS=$LIBS
9569 LIBS="-lsane  $LIBS"
9570 cat >conftest.$ac_ext <<_ACEOF
9571 /* confdefs.h.  */
9572 _ACEOF
9573 cat confdefs.h >>conftest.$ac_ext
9574 cat >>conftest.$ac_ext <<_ACEOF
9575 /* end confdefs.h.  */
9576
9577 /* Override any gcc2 internal prototype to avoid an error.  */
9578 #ifdef __cplusplus
9579 extern "C"
9580 #endif
9581 /* We use char because int might match the return type of a gcc2
9582    builtin and then its argument prototype would still apply.  */
9583 char sane_open ();
9584 int
9585 main ()
9586 {
9587 sane_open ();
9588   ;
9589   return 0;
9590 }
9591 _ACEOF
9592 rm -f conftest.$ac_objext conftest$ac_exeext
9593 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9594   (eval $ac_link) 2>conftest.er1
9595   ac_status=$?
9596   grep -v '^ *+' conftest.er1 >conftest.err
9597   rm -f conftest.er1
9598   cat conftest.err >&5
9599   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9600   (exit $ac_status); } &&
9601          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
9602   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9603   (eval $ac_try) 2>&5
9604   ac_status=$?
9605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9606   (exit $ac_status); }; } &&
9607          { ac_try='test -s conftest$ac_exeext'
9608   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9609   (eval $ac_try) 2>&5
9610   ac_status=$?
9611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9612   (exit $ac_status); }; }; then
9613   ac_cv_lib_sane_sane_open=yes
9614 else
9615   echo "$as_me: failed program was:" >&5
9616 sed 's/^/| /' conftest.$ac_ext >&5
9617
9618 ac_cv_lib_sane_sane_open=no
9619 fi
9620 rm -f conftest.err conftest.$ac_objext \
9621       conftest$ac_exeext conftest.$ac_ext
9622 LIBS=$ac_check_lib_save_LIBS
9623 fi
9624 echo "$as_me:$LINENO: result: $ac_cv_lib_sane_sane_open" >&5
9625 echo "${ECHO_T}$ac_cv_lib_sane_sane_open" >&6
9626 if test $ac_cv_lib_sane_sane_open = yes; then
9627
9628 cat >>confdefs.h <<\_ACEOF
9629 #define HAVE_SANE 1
9630 _ACEOF
9631
9632 else
9633   SANELIBS=""
9634                                   SANEINCL=""
9635 fi
9636
9637 else
9638   SANELIBS=""
9639                     SANEINCL=""
9640 fi
9641
9642
9643     LIBS="$ac_save_LIBS"
9644     CPPFLAGS="$ac_save_CPPFLAGS"
9645 fi
9646
9647
9648
9649
9650 for ac_header in unicode/ubidi.h
9651 do
9652 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9653 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9654   echo "$as_me:$LINENO: checking for $ac_header" >&5
9655 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9656 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9657   echo $ECHO_N "(cached) $ECHO_C" >&6
9658 fi
9659 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9660 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9661 else
9662   # Is the header compilable?
9663 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9664 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9665 cat >conftest.$ac_ext <<_ACEOF
9666 /* confdefs.h.  */
9667 _ACEOF
9668 cat confdefs.h >>conftest.$ac_ext
9669 cat >>conftest.$ac_ext <<_ACEOF
9670 /* end confdefs.h.  */
9671 $ac_includes_default
9672 #include <$ac_header>
9673 _ACEOF
9674 rm -f conftest.$ac_objext
9675 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9676   (eval $ac_compile) 2>conftest.er1
9677   ac_status=$?
9678   grep -v '^ *+' conftest.er1 >conftest.err
9679   rm -f conftest.er1
9680   cat conftest.err >&5
9681   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9682   (exit $ac_status); } &&
9683          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
9684   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9685   (eval $ac_try) 2>&5
9686   ac_status=$?
9687   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9688   (exit $ac_status); }; } &&
9689          { ac_try='test -s conftest.$ac_objext'
9690   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9691   (eval $ac_try) 2>&5
9692   ac_status=$?
9693   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9694   (exit $ac_status); }; }; then
9695   ac_header_compiler=yes
9696 else
9697   echo "$as_me: failed program was:" >&5
9698 sed 's/^/| /' conftest.$ac_ext >&5
9699
9700 ac_header_compiler=no
9701 fi
9702 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9703 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9704 echo "${ECHO_T}$ac_header_compiler" >&6
9705
9706 # Is the header present?
9707 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9708 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9709 cat >conftest.$ac_ext <<_ACEOF
9710 /* confdefs.h.  */
9711 _ACEOF
9712 cat confdefs.h >>conftest.$ac_ext
9713 cat >>conftest.$ac_ext <<_ACEOF
9714 /* end confdefs.h.  */
9715 #include <$ac_header>
9716 _ACEOF
9717 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9718   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9719   ac_status=$?
9720   grep -v '^ *+' conftest.er1 >conftest.err
9721   rm -f conftest.er1
9722   cat conftest.err >&5
9723   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9724   (exit $ac_status); } >/dev/null; then
9725   if test -s conftest.err; then
9726     ac_cpp_err=$ac_c_preproc_warn_flag
9727     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9728   else
9729     ac_cpp_err=
9730   fi
9731 else
9732   ac_cpp_err=yes
9733 fi
9734 if test -z "$ac_cpp_err"; then
9735   ac_header_preproc=yes
9736 else
9737   echo "$as_me: failed program was:" >&5
9738 sed 's/^/| /' conftest.$ac_ext >&5
9739
9740   ac_header_preproc=no
9741 fi
9742 rm -f conftest.err conftest.$ac_ext
9743 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9744 echo "${ECHO_T}$ac_header_preproc" >&6
9745
9746 # So?  What about this header?
9747 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9748   yes:no: )
9749     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9750 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9751     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9752 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9753     ac_header_preproc=yes
9754     ;;
9755   no:yes:* )
9756     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9757 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9758     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9759 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9760     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9761 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9762     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9763 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9764     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9765 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9766     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9767 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9768     (
9769       cat <<\_ASBOX
9770 ## ------------------------------------ ##
9771 ## Report this to wine-devel@winehq.org ##
9772 ## ------------------------------------ ##
9773 _ASBOX
9774     ) |
9775       sed "s/^/$as_me: WARNING:     /" >&2
9776     ;;
9777 esac
9778 echo "$as_me:$LINENO: checking for $ac_header" >&5
9779 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9780 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9781   echo $ECHO_N "(cached) $ECHO_C" >&6
9782 else
9783   eval "$as_ac_Header=\$ac_header_preproc"
9784 fi
9785 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9786 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9787
9788 fi
9789 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9790   cat >>confdefs.h <<_ACEOF
9791 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9792 _ACEOF
9793
9794 fi
9795
9796 done
9797
9798 if test "$ac_cv_header_unicode_ubidi_h" = "yes"
9799 then
9800     saved_libs="$LIBS"
9801     ICU_LIB_DIR="${ICU_LIB_DIR-/usr/lib}"
9802     ICUUC_LIB="${ICUUC_LIB-$ICU_LIB_DIR/libsicuuc.a}"
9803     ICUDATA_LIB="${ICUDATA_LIB-$ICU_LIB_DIR/libsicudata.a}"
9804     echo "$as_me:$LINENO: checking whether can link with ICU libraries $ICUUC_LIB and $ICUDATA_LIB" >&5
9805 echo $ECHO_N "checking whether can link with ICU libraries $ICUUC_LIB and $ICUDATA_LIB... $ECHO_C" >&6
9806     LIBS="$LIBS $ICUUC_LIB $ICUDATA_LIB -lstdc++ -lgcc_s"
9807     cat >conftest.$ac_ext <<_ACEOF
9808 /* confdefs.h.  */
9809 _ACEOF
9810 cat confdefs.h >>conftest.$ac_ext
9811 cat >>conftest.$ac_ext <<_ACEOF
9812 /* end confdefs.h.  */
9813 #include <unicode/ubidi.h>
9814 int
9815 main ()
9816 {
9817 ubidi_open()
9818   ;
9819   return 0;
9820 }
9821 _ACEOF
9822 rm -f conftest.$ac_objext conftest$ac_exeext
9823 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9824   (eval $ac_link) 2>conftest.er1
9825   ac_status=$?
9826   grep -v '^ *+' conftest.er1 >conftest.err
9827   rm -f conftest.er1
9828   cat conftest.err >&5
9829   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9830   (exit $ac_status); } &&
9831          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
9832   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9833   (eval $ac_try) 2>&5
9834   ac_status=$?
9835   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9836   (exit $ac_status); }; } &&
9837          { ac_try='test -s conftest$ac_exeext'
9838   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9839   (eval $ac_try) 2>&5
9840   ac_status=$?
9841   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9842   (exit $ac_status); }; }; then
9843
9844 cat >>confdefs.h <<\_ACEOF
9845 #define HAVE_ICU 1
9846 _ACEOF
9847
9848                  ICULIBS="$ICUUC_LIB $ICUDATA_LIB -lstdc++ -lgcc_s"
9849
9850                  echo "$as_me:$LINENO: result: yes" >&5
9851 echo "${ECHO_T}yes" >&6
9852 else
9853   echo "$as_me: failed program was:" >&5
9854 sed 's/^/| /' conftest.$ac_ext >&5
9855
9856 echo "$as_me:$LINENO: result: no" >&5
9857 echo "${ECHO_T}no" >&6
9858 fi
9859 rm -f conftest.err conftest.$ac_objext \
9860       conftest$ac_exeext conftest.$ac_ext
9861     LIBS="$saved_libs"
9862 fi
9863
9864 echo "$as_me:$LINENO: checking for FT_Init_FreeType in -lfreetype" >&5
9865 echo $ECHO_N "checking for FT_Init_FreeType in -lfreetype... $ECHO_C" >&6
9866 if test "${ac_cv_lib_freetype_FT_Init_FreeType+set}" = set; then
9867   echo $ECHO_N "(cached) $ECHO_C" >&6
9868 else
9869   ac_check_lib_save_LIBS=$LIBS
9870 LIBS="-lfreetype $X_LIBS $LIBS"
9871 cat >conftest.$ac_ext <<_ACEOF
9872 /* confdefs.h.  */
9873 _ACEOF
9874 cat confdefs.h >>conftest.$ac_ext
9875 cat >>conftest.$ac_ext <<_ACEOF
9876 /* end confdefs.h.  */
9877
9878 /* Override any gcc2 internal prototype to avoid an error.  */
9879 #ifdef __cplusplus
9880 extern "C"
9881 #endif
9882 /* We use char because int might match the return type of a gcc2
9883    builtin and then its argument prototype would still apply.  */
9884 char FT_Init_FreeType ();
9885 int
9886 main ()
9887 {
9888 FT_Init_FreeType ();
9889   ;
9890   return 0;
9891 }
9892 _ACEOF
9893 rm -f conftest.$ac_objext conftest$ac_exeext
9894 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9895   (eval $ac_link) 2>conftest.er1
9896   ac_status=$?
9897   grep -v '^ *+' conftest.er1 >conftest.err
9898   rm -f conftest.er1
9899   cat conftest.err >&5
9900   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9901   (exit $ac_status); } &&
9902          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
9903   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9904   (eval $ac_try) 2>&5
9905   ac_status=$?
9906   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9907   (exit $ac_status); }; } &&
9908          { ac_try='test -s conftest$ac_exeext'
9909   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9910   (eval $ac_try) 2>&5
9911   ac_status=$?
9912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9913   (exit $ac_status); }; }; then
9914   ac_cv_lib_freetype_FT_Init_FreeType=yes
9915 else
9916   echo "$as_me: failed program was:" >&5
9917 sed 's/^/| /' conftest.$ac_ext >&5
9918
9919 ac_cv_lib_freetype_FT_Init_FreeType=no
9920 fi
9921 rm -f conftest.err conftest.$ac_objext \
9922       conftest$ac_exeext conftest.$ac_ext
9923 LIBS=$ac_check_lib_save_LIBS
9924 fi
9925 echo "$as_me:$LINENO: result: $ac_cv_lib_freetype_FT_Init_FreeType" >&5
9926 echo "${ECHO_T}$ac_cv_lib_freetype_FT_Init_FreeType" >&6
9927 if test $ac_cv_lib_freetype_FT_Init_FreeType = yes; then
9928   ft_lib=yes
9929 else
9930   ft_lib=no
9931 fi
9932
9933 if test "$ft_lib" = "no"
9934 then
9935     FREETYPELIBS=""
9936     FREETYPEINCL=""
9937     wine_cv_msg_freetype=no
9938 else
9939     # Extract the first word of "freetype-config", so it can be a program name with args.
9940 set dummy freetype-config; ac_word=$2
9941 echo "$as_me:$LINENO: checking for $ac_word" >&5
9942 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9943 if test "${ac_cv_prog_ft_devel+set}" = set; then
9944   echo $ECHO_N "(cached) $ECHO_C" >&6
9945 else
9946   if test -n "$ft_devel"; then
9947   ac_cv_prog_ft_devel="$ft_devel" # Let the user override the test.
9948 else
9949 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9950 for as_dir in $PATH
9951 do
9952   IFS=$as_save_IFS
9953   test -z "$as_dir" && as_dir=.
9954   for ac_exec_ext in '' $ac_executable_extensions; do
9955   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9956     ac_cv_prog_ft_devel="freetype-config"
9957     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9958     break 2
9959   fi
9960 done
9961 done
9962
9963   test -z "$ac_cv_prog_ft_devel" && ac_cv_prog_ft_devel="no"
9964 fi
9965 fi
9966 ft_devel=$ac_cv_prog_ft_devel
9967 if test -n "$ft_devel"; then
9968   echo "$as_me:$LINENO: result: $ft_devel" >&5
9969 echo "${ECHO_T}$ft_devel" >&6
9970 else
9971   echo "$as_me:$LINENO: result: no" >&5
9972 echo "${ECHO_T}no" >&6
9973 fi
9974
9975     if test "$ft_devel" = "no"
9976     then
9977         # Extract the first word of "freetype2-config", so it can be a program name with args.
9978 set dummy freetype2-config; ac_word=$2
9979 echo "$as_me:$LINENO: checking for $ac_word" >&5
9980 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9981 if test "${ac_cv_prog_ft_devel2+set}" = set; then
9982   echo $ECHO_N "(cached) $ECHO_C" >&6
9983 else
9984   if test -n "$ft_devel2"; then
9985   ac_cv_prog_ft_devel2="$ft_devel2" # Let the user override the test.
9986 else
9987 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9988 for as_dir in $PATH
9989 do
9990   IFS=$as_save_IFS
9991   test -z "$as_dir" && as_dir=.
9992   for ac_exec_ext in '' $ac_executable_extensions; do
9993   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9994     ac_cv_prog_ft_devel2="freetype2-config"
9995     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9996     break 2
9997   fi
9998 done
9999 done
10000
10001   test -z "$ac_cv_prog_ft_devel2" && ac_cv_prog_ft_devel2="no"
10002 fi
10003 fi
10004 ft_devel2=$ac_cv_prog_ft_devel2
10005 if test -n "$ft_devel2"; then
10006   echo "$as_me:$LINENO: result: $ft_devel2" >&5
10007 echo "${ECHO_T}$ft_devel2" >&6
10008 else
10009   echo "$as_me:$LINENO: result: no" >&5
10010 echo "${ECHO_T}no" >&6
10011 fi
10012
10013         if test "$ft_devel2" = "freetype2-config"
10014         then
10015                 ft_devel=$ft_devel2
10016         fi
10017     fi
10018     if test "$ft_devel" = "no"
10019     then
10020         FREETYPELIBS=""
10021         FREETYPEINCL=""
10022         wine_cv_msg_freetype=yes
10023     else
10024         FREETYPELIBS=`$ft_devel --libs`
10025         FREETYPEINCL=`$ft_devel --cflags`
10026         ac_save_CPPFLAGS="$CPPFLAGS"
10027         CPPFLAGS="$FREETYPEINCL $CPPFLAGS"
10028
10029
10030
10031
10032
10033
10034
10035
10036
10037
10038 for ac_header in ft2build.h \
10039                          freetype/freetype.h \
10040                          freetype/ftglyph.h \
10041                          freetype/tttables.h \
10042                          freetype/ftnames.h \
10043                          freetype/ftsnames.h \
10044                          freetype/ttnameid.h \
10045                          freetype/ftoutln.h \
10046                          freetype/ftwinfnt.h \
10047                          freetype/internal/sfnt.h
10048 do
10049 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10050 echo "$as_me:$LINENO: checking for $ac_header" >&5
10051 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10052 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10053   echo $ECHO_N "(cached) $ECHO_C" >&6
10054 else
10055   cat >conftest.$ac_ext <<_ACEOF
10056 /* confdefs.h.  */
10057 _ACEOF
10058 cat confdefs.h >>conftest.$ac_ext
10059 cat >>conftest.$ac_ext <<_ACEOF
10060 /* end confdefs.h.  */
10061 #if HAVE_FT2BUILD_H
10062                           #include <ft2build.h>
10063                           #endif
10064
10065 #include <$ac_header>
10066 _ACEOF
10067 rm -f conftest.$ac_objext
10068 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10069   (eval $ac_compile) 2>conftest.er1
10070   ac_status=$?
10071   grep -v '^ *+' conftest.er1 >conftest.err
10072   rm -f conftest.er1
10073   cat conftest.err >&5
10074   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10075   (exit $ac_status); } &&
10076          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
10077   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10078   (eval $ac_try) 2>&5
10079   ac_status=$?
10080   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10081   (exit $ac_status); }; } &&
10082          { ac_try='test -s conftest.$ac_objext'
10083   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10084   (eval $ac_try) 2>&5
10085   ac_status=$?
10086   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10087   (exit $ac_status); }; }; then
10088   eval "$as_ac_Header=yes"
10089 else
10090   echo "$as_me: failed program was:" >&5
10091 sed 's/^/| /' conftest.$ac_ext >&5
10092
10093 eval "$as_ac_Header=no"
10094 fi
10095 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10096 fi
10097 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10098 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10099 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10100   cat >>confdefs.h <<_ACEOF
10101 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10102 _ACEOF
10103
10104 fi
10105
10106 done
10107
10108         cat >conftest.$ac_ext <<_ACEOF
10109 /* confdefs.h.  */
10110 _ACEOF
10111 cat confdefs.h >>conftest.$ac_ext
10112 cat >>conftest.$ac_ext <<_ACEOF
10113 /* end confdefs.h.  */
10114 #include <ft2build.h>
10115                     #include <freetype/fttrigon.h>
10116 _ACEOF
10117 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10118   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10119   ac_status=$?
10120   grep -v '^ *+' conftest.er1 >conftest.err
10121   rm -f conftest.er1
10122   cat conftest.err >&5
10123   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10124   (exit $ac_status); } >/dev/null; then
10125   if test -s conftest.err; then
10126     ac_cpp_err=$ac_c_preproc_warn_flag
10127     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10128   else
10129     ac_cpp_err=
10130   fi
10131 else
10132   ac_cpp_err=yes
10133 fi
10134 if test -z "$ac_cpp_err"; then
10135
10136 cat >>confdefs.h <<\_ACEOF
10137 #define HAVE_FREETYPE_FTTRIGON_H 1
10138 _ACEOF
10139
10140                     wine_cv_fttrigon=yes
10141 else
10142   echo "$as_me: failed program was:" >&5
10143 sed 's/^/| /' conftest.$ac_ext >&5
10144
10145   wine_cv_fttrigon=no
10146 fi
10147 rm -f conftest.err conftest.$ac_ext
10148         CPPFLAGS="$ac_save_CPPFLAGS"
10149                 if test "$ac_cv_header_freetype_freetype_h" = "yes" -a "$wine_cv_fttrigon" = "yes"
10150         then
10151
10152 cat >>confdefs.h <<\_ACEOF
10153 #define HAVE_FREETYPE 1
10154 _ACEOF
10155
10156             wine_cv_msg_freetype=no
10157         else
10158             FREETYPELIBS=""
10159             FREETYPEINCL=""
10160             wine_cv_msg_freetype=yes
10161         fi
10162     fi
10163 fi
10164
10165
10166
10167 if test "$FONTFORGE" != "false" -a -n "$FREETYPELIBS"
10168 then
10169   FONTSSUBDIRS="fonts"
10170
10171 fi
10172
10173 echo "$as_me:$LINENO: checking for parport header/ppdev.h" >&5
10174 echo $ECHO_N "checking for parport header/ppdev.h... $ECHO_C" >&6
10175 if test "${ac_cv_c_ppdev+set}" = set; then
10176   echo $ECHO_N "(cached) $ECHO_C" >&6
10177 else
10178   cat >conftest.$ac_ext <<_ACEOF
10179 /* confdefs.h.  */
10180 _ACEOF
10181 cat confdefs.h >>conftest.$ac_ext
10182 cat >>conftest.$ac_ext <<_ACEOF
10183 /* end confdefs.h.  */
10184 #include <linux/ppdev.h>
10185 int
10186 main ()
10187 {
10188 ioctl (1,PPCLAIM,0)
10189   ;
10190   return 0;
10191 }
10192 _ACEOF
10193 rm -f conftest.$ac_objext
10194 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10195   (eval $ac_compile) 2>conftest.er1
10196   ac_status=$?
10197   grep -v '^ *+' conftest.er1 >conftest.err
10198   rm -f conftest.er1
10199   cat conftest.err >&5
10200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10201   (exit $ac_status); } &&
10202          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
10203   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10204   (eval $ac_try) 2>&5
10205   ac_status=$?
10206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10207   (exit $ac_status); }; } &&
10208          { ac_try='test -s conftest.$ac_objext'
10209   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10210   (eval $ac_try) 2>&5
10211   ac_status=$?
10212   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10213   (exit $ac_status); }; }; then
10214   ac_cv_c_ppdev="yes"
10215 else
10216   echo "$as_me: failed program was:" >&5
10217 sed 's/^/| /' conftest.$ac_ext >&5
10218
10219 ac_cv_c_ppdev="no"
10220 fi
10221 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10222
10223 fi
10224 echo "$as_me:$LINENO: result: $ac_cv_c_ppdev" >&5
10225 echo "${ECHO_T}$ac_cv_c_ppdev" >&6
10226 if test "$ac_cv_c_ppdev" = "yes"
10227 then
10228
10229 cat >>confdefs.h <<\_ACEOF
10230 #define HAVE_PPDEV 1
10231 _ACEOF
10232
10233 fi
10234
10235 echo "$as_me:$LINENO: checking for va_copy" >&5
10236 echo $ECHO_N "checking for va_copy... $ECHO_C" >&6
10237 if test "${ac_cv_c_va_copy+set}" = set; then
10238   echo $ECHO_N "(cached) $ECHO_C" >&6
10239 else
10240   cat >conftest.$ac_ext <<_ACEOF
10241 /* confdefs.h.  */
10242 _ACEOF
10243 cat confdefs.h >>conftest.$ac_ext
10244 cat >>conftest.$ac_ext <<_ACEOF
10245 /* end confdefs.h.  */
10246 #include <stdarg.h>
10247 int
10248 main ()
10249 {
10250 va_list ap1, ap2;
10251     va_copy(ap1,ap2);
10252
10253   ;
10254   return 0;
10255 }
10256 _ACEOF
10257 rm -f conftest.$ac_objext conftest$ac_exeext
10258 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10259   (eval $ac_link) 2>conftest.er1
10260   ac_status=$?
10261   grep -v '^ *+' conftest.er1 >conftest.err
10262   rm -f conftest.er1
10263   cat conftest.err >&5
10264   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10265   (exit $ac_status); } &&
10266          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
10267   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10268   (eval $ac_try) 2>&5
10269   ac_status=$?
10270   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10271   (exit $ac_status); }; } &&
10272          { ac_try='test -s conftest$ac_exeext'
10273   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10274   (eval $ac_try) 2>&5
10275   ac_status=$?
10276   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10277   (exit $ac_status); }; }; then
10278   ac_cv_c_va_copy="yes"
10279 else
10280   echo "$as_me: failed program was:" >&5
10281 sed 's/^/| /' conftest.$ac_ext >&5
10282
10283 ac_cv_c_va_copy="no"
10284 fi
10285 rm -f conftest.err conftest.$ac_objext \
10286       conftest$ac_exeext conftest.$ac_ext
10287
10288 fi
10289 echo "$as_me:$LINENO: result: $ac_cv_c_va_copy" >&5
10290 echo "${ECHO_T}$ac_cv_c_va_copy" >&6
10291 if test "$ac_cv_c_va_copy" = "yes"
10292 then
10293
10294 cat >>confdefs.h <<\_ACEOF
10295 #define HAVE_VA_COPY 1
10296 _ACEOF
10297
10298 fi
10299 echo "$as_me:$LINENO: checking for __va_copy" >&5
10300 echo $ECHO_N "checking for __va_copy... $ECHO_C" >&6
10301 if test "${ac_cv_c___va_copy+set}" = set; then
10302   echo $ECHO_N "(cached) $ECHO_C" >&6
10303 else
10304   cat >conftest.$ac_ext <<_ACEOF
10305 /* confdefs.h.  */
10306 _ACEOF
10307 cat confdefs.h >>conftest.$ac_ext
10308 cat >>conftest.$ac_ext <<_ACEOF
10309 /* end confdefs.h.  */
10310 #include <stdarg.h>
10311 int
10312 main ()
10313 {
10314 va_list ap1, ap2;
10315     __va_copy(ap1,ap2);
10316
10317   ;
10318   return 0;
10319 }
10320 _ACEOF
10321 rm -f conftest.$ac_objext conftest$ac_exeext
10322 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10323   (eval $ac_link) 2>conftest.er1
10324   ac_status=$?
10325   grep -v '^ *+' conftest.er1 >conftest.err
10326   rm -f conftest.er1
10327   cat conftest.err >&5
10328   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10329   (exit $ac_status); } &&
10330          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
10331   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10332   (eval $ac_try) 2>&5
10333   ac_status=$?
10334   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10335   (exit $ac_status); }; } &&
10336          { ac_try='test -s conftest$ac_exeext'
10337   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10338   (eval $ac_try) 2>&5
10339   ac_status=$?
10340   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10341   (exit $ac_status); }; }; then
10342   ac_cv_c___va_copy="yes"
10343 else
10344   echo "$as_me: failed program was:" >&5
10345 sed 's/^/| /' conftest.$ac_ext >&5
10346
10347 ac_cv_c___va_copy="no"
10348 fi
10349 rm -f conftest.err conftest.$ac_objext \
10350       conftest$ac_exeext conftest.$ac_ext
10351
10352 fi
10353 echo "$as_me:$LINENO: result: $ac_cv_c___va_copy" >&5
10354 echo "${ECHO_T}$ac_cv_c___va_copy" >&6
10355 if test "$ac_cv_c___va_copy" = "yes"
10356 then
10357
10358 cat >>confdefs.h <<\_ACEOF
10359 #define HAVE___VA_COPY 1
10360 _ACEOF
10361
10362 fi
10363
10364 echo "$as_me:$LINENO: checking for sigsetjmp" >&5
10365 echo $ECHO_N "checking for sigsetjmp... $ECHO_C" >&6
10366 if test "${ac_cv_c_sigsetjmp+set}" = set; then
10367   echo $ECHO_N "(cached) $ECHO_C" >&6
10368 else
10369   cat >conftest.$ac_ext <<_ACEOF
10370 /* confdefs.h.  */
10371 _ACEOF
10372 cat confdefs.h >>conftest.$ac_ext
10373 cat >>conftest.$ac_ext <<_ACEOF
10374 /* end confdefs.h.  */
10375 #include <setjmp.h>
10376 int
10377 main ()
10378 {
10379 sigjmp_buf buf;
10380     sigsetjmp( buf, 1 );
10381     siglongjmp( buf, 1 );
10382   ;
10383   return 0;
10384 }
10385 _ACEOF
10386 rm -f conftest.$ac_objext conftest$ac_exeext
10387 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10388   (eval $ac_link) 2>conftest.er1
10389   ac_status=$?
10390   grep -v '^ *+' conftest.er1 >conftest.err
10391   rm -f conftest.er1
10392   cat conftest.err >&5
10393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10394   (exit $ac_status); } &&
10395          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
10396   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10397   (eval $ac_try) 2>&5
10398   ac_status=$?
10399   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10400   (exit $ac_status); }; } &&
10401          { ac_try='test -s conftest$ac_exeext'
10402   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10403   (eval $ac_try) 2>&5
10404   ac_status=$?
10405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10406   (exit $ac_status); }; }; then
10407   ac_cv_c_sigsetjmp="yes"
10408 else
10409   echo "$as_me: failed program was:" >&5
10410 sed 's/^/| /' conftest.$ac_ext >&5
10411
10412 ac_cv_c_sigsetjmp="no"
10413 fi
10414 rm -f conftest.err conftest.$ac_objext \
10415       conftest$ac_exeext conftest.$ac_ext
10416
10417 fi
10418 echo "$as_me:$LINENO: result: $ac_cv_c_sigsetjmp" >&5
10419 echo "${ECHO_T}$ac_cv_c_sigsetjmp" >&6
10420 if test "$ac_cv_c_sigsetjmp" = "yes"
10421 then
10422
10423 cat >>confdefs.h <<\_ACEOF
10424 #define HAVE_SIGSETJMP 1
10425 _ACEOF
10426
10427 fi
10428
10429 echo "$as_me:$LINENO: checking for pthread_rwlock_t" >&5
10430 echo $ECHO_N "checking for pthread_rwlock_t... $ECHO_C" >&6
10431 if test "${ac_cv_type_pthread_rwlock_t+set}" = set; then
10432   echo $ECHO_N "(cached) $ECHO_C" >&6
10433 else
10434   cat >conftest.$ac_ext <<_ACEOF
10435 /* confdefs.h.  */
10436 _ACEOF
10437 cat confdefs.h >>conftest.$ac_ext
10438 cat >>conftest.$ac_ext <<_ACEOF
10439 /* end confdefs.h.  */
10440 #define _GNU_SOURCE
10441 #include <pthread.h>
10442
10443 int
10444 main ()
10445 {
10446 if ((pthread_rwlock_t *) 0)
10447   return 0;
10448 if (sizeof (pthread_rwlock_t))
10449   return 0;
10450   ;
10451   return 0;
10452 }
10453 _ACEOF
10454 rm -f conftest.$ac_objext
10455 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10456   (eval $ac_compile) 2>conftest.er1
10457   ac_status=$?
10458   grep -v '^ *+' conftest.er1 >conftest.err
10459   rm -f conftest.er1
10460   cat conftest.err >&5
10461   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10462   (exit $ac_status); } &&
10463          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
10464   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10465   (eval $ac_try) 2>&5
10466   ac_status=$?
10467   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10468   (exit $ac_status); }; } &&
10469          { ac_try='test -s conftest.$ac_objext'
10470   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10471   (eval $ac_try) 2>&5
10472   ac_status=$?
10473   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10474   (exit $ac_status); }; }; then
10475   ac_cv_type_pthread_rwlock_t=yes
10476 else
10477   echo "$as_me: failed program was:" >&5
10478 sed 's/^/| /' conftest.$ac_ext >&5
10479
10480 ac_cv_type_pthread_rwlock_t=no
10481 fi
10482 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10483 fi
10484 echo "$as_me:$LINENO: result: $ac_cv_type_pthread_rwlock_t" >&5
10485 echo "${ECHO_T}$ac_cv_type_pthread_rwlock_t" >&6
10486 if test $ac_cv_type_pthread_rwlock_t = yes; then
10487
10488 cat >>confdefs.h <<_ACEOF
10489 #define HAVE_PTHREAD_RWLOCK_T 1
10490 _ACEOF
10491
10492
10493 fi
10494 echo "$as_me:$LINENO: checking for pthread_rwlockattr_t" >&5
10495 echo $ECHO_N "checking for pthread_rwlockattr_t... $ECHO_C" >&6
10496 if test "${ac_cv_type_pthread_rwlockattr_t+set}" = set; then
10497   echo $ECHO_N "(cached) $ECHO_C" >&6
10498 else
10499   cat >conftest.$ac_ext <<_ACEOF
10500 /* confdefs.h.  */
10501 _ACEOF
10502 cat confdefs.h >>conftest.$ac_ext
10503 cat >>conftest.$ac_ext <<_ACEOF
10504 /* end confdefs.h.  */
10505 #define _GNU_SOURCE
10506 #include <pthread.h>
10507
10508 int
10509 main ()
10510 {
10511 if ((pthread_rwlockattr_t *) 0)
10512   return 0;
10513 if (sizeof (pthread_rwlockattr_t))
10514   return 0;
10515   ;
10516   return 0;
10517 }
10518 _ACEOF
10519 rm -f conftest.$ac_objext
10520 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10521   (eval $ac_compile) 2>conftest.er1
10522   ac_status=$?
10523   grep -v '^ *+' conftest.er1 >conftest.err
10524   rm -f conftest.er1
10525   cat conftest.err >&5
10526   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10527   (exit $ac_status); } &&
10528          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
10529   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10530   (eval $ac_try) 2>&5
10531   ac_status=$?
10532   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10533   (exit $ac_status); }; } &&
10534          { ac_try='test -s conftest.$ac_objext'
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); }; }; then
10540   ac_cv_type_pthread_rwlockattr_t=yes
10541 else
10542   echo "$as_me: failed program was:" >&5
10543 sed 's/^/| /' conftest.$ac_ext >&5
10544
10545 ac_cv_type_pthread_rwlockattr_t=no
10546 fi
10547 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10548 fi
10549 echo "$as_me:$LINENO: result: $ac_cv_type_pthread_rwlockattr_t" >&5
10550 echo "${ECHO_T}$ac_cv_type_pthread_rwlockattr_t" >&6
10551 if test $ac_cv_type_pthread_rwlockattr_t = yes; then
10552
10553 cat >>confdefs.h <<_ACEOF
10554 #define HAVE_PTHREAD_RWLOCKATTR_T 1
10555 _ACEOF
10556
10557
10558 fi
10559
10560
10561 ac_save_LIBS="$LIBS"
10562 LIBS="$LIBS $LIBPTHREAD"
10563
10564
10565
10566 for ac_func in \
10567         pthread_getattr_np \
10568         pthread_get_stackaddr_np \
10569         pthread_get_stacksize_np \
10570
10571 do
10572 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10573 echo "$as_me:$LINENO: checking for $ac_func" >&5
10574 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10575 if eval "test \"\${$as_ac_var+set}\" = set"; then
10576   echo $ECHO_N "(cached) $ECHO_C" >&6
10577 else
10578   cat >conftest.$ac_ext <<_ACEOF
10579 /* confdefs.h.  */
10580 _ACEOF
10581 cat confdefs.h >>conftest.$ac_ext
10582 cat >>conftest.$ac_ext <<_ACEOF
10583 /* end confdefs.h.  */
10584 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10585    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10586 #define $ac_func innocuous_$ac_func
10587
10588 /* System header to define __stub macros and hopefully few prototypes,
10589     which can conflict with char $ac_func (); below.
10590     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10591     <limits.h> exists even on freestanding compilers.  */
10592
10593 #ifdef __STDC__
10594 # include <limits.h>
10595 #else
10596 # include <assert.h>
10597 #endif
10598
10599 #undef $ac_func
10600
10601 /* Override any gcc2 internal prototype to avoid an error.  */
10602 #ifdef __cplusplus
10603 extern "C"
10604 {
10605 #endif
10606 /* We use char because int might match the return type of a gcc2
10607    builtin and then its argument prototype would still apply.  */
10608 char $ac_func ();
10609 /* The GNU C library defines this for functions which it implements
10610     to always fail with ENOSYS.  Some functions are actually named
10611     something starting with __ and the normal name is an alias.  */
10612 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10613 choke me
10614 #else
10615 char (*f) () = $ac_func;
10616 #endif
10617 #ifdef __cplusplus
10618 }
10619 #endif
10620
10621 int
10622 main ()
10623 {
10624 return f != $ac_func;
10625   ;
10626   return 0;
10627 }
10628 _ACEOF
10629 rm -f conftest.$ac_objext conftest$ac_exeext
10630 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10631   (eval $ac_link) 2>conftest.er1
10632   ac_status=$?
10633   grep -v '^ *+' conftest.er1 >conftest.err
10634   rm -f conftest.er1
10635   cat conftest.err >&5
10636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10637   (exit $ac_status); } &&
10638          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
10639   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10640   (eval $ac_try) 2>&5
10641   ac_status=$?
10642   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10643   (exit $ac_status); }; } &&
10644          { ac_try='test -s conftest$ac_exeext'
10645   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10646   (eval $ac_try) 2>&5
10647   ac_status=$?
10648   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10649   (exit $ac_status); }; }; then
10650   eval "$as_ac_var=yes"
10651 else
10652   echo "$as_me: failed program was:" >&5
10653 sed 's/^/| /' conftest.$ac_ext >&5
10654
10655 eval "$as_ac_var=no"
10656 fi
10657 rm -f conftest.err conftest.$ac_objext \
10658       conftest$ac_exeext conftest.$ac_ext
10659 fi
10660 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10661 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10662 if test `eval echo '${'$as_ac_var'}'` = yes; then
10663   cat >>confdefs.h <<_ACEOF
10664 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10665 _ACEOF
10666
10667 fi
10668 done
10669
10670 LIBS="$ac_save_LIBS"
10671
10672
10673
10674
10675 for ac_header in sys/soundcard.h machine/soundcard.h soundcard.h
10676 do
10677 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10678 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10679   echo "$as_me:$LINENO: checking for $ac_header" >&5
10680 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10681 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10682   echo $ECHO_N "(cached) $ECHO_C" >&6
10683 fi
10684 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10685 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10686 else
10687   # Is the header compilable?
10688 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10689 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10690 cat >conftest.$ac_ext <<_ACEOF
10691 /* confdefs.h.  */
10692 _ACEOF
10693 cat confdefs.h >>conftest.$ac_ext
10694 cat >>conftest.$ac_ext <<_ACEOF
10695 /* end confdefs.h.  */
10696 $ac_includes_default
10697 #include <$ac_header>
10698 _ACEOF
10699 rm -f conftest.$ac_objext
10700 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10701   (eval $ac_compile) 2>conftest.er1
10702   ac_status=$?
10703   grep -v '^ *+' conftest.er1 >conftest.err
10704   rm -f conftest.er1
10705   cat conftest.err >&5
10706   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10707   (exit $ac_status); } &&
10708          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
10709   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10710   (eval $ac_try) 2>&5
10711   ac_status=$?
10712   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10713   (exit $ac_status); }; } &&
10714          { ac_try='test -s conftest.$ac_objext'
10715   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10716   (eval $ac_try) 2>&5
10717   ac_status=$?
10718   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10719   (exit $ac_status); }; }; then
10720   ac_header_compiler=yes
10721 else
10722   echo "$as_me: failed program was:" >&5
10723 sed 's/^/| /' conftest.$ac_ext >&5
10724
10725 ac_header_compiler=no
10726 fi
10727 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10728 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10729 echo "${ECHO_T}$ac_header_compiler" >&6
10730
10731 # Is the header present?
10732 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10733 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10734 cat >conftest.$ac_ext <<_ACEOF
10735 /* confdefs.h.  */
10736 _ACEOF
10737 cat confdefs.h >>conftest.$ac_ext
10738 cat >>conftest.$ac_ext <<_ACEOF
10739 /* end confdefs.h.  */
10740 #include <$ac_header>
10741 _ACEOF
10742 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10743   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10744   ac_status=$?
10745   grep -v '^ *+' conftest.er1 >conftest.err
10746   rm -f conftest.er1
10747   cat conftest.err >&5
10748   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10749   (exit $ac_status); } >/dev/null; then
10750   if test -s conftest.err; then
10751     ac_cpp_err=$ac_c_preproc_warn_flag
10752     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10753   else
10754     ac_cpp_err=
10755   fi
10756 else
10757   ac_cpp_err=yes
10758 fi
10759 if test -z "$ac_cpp_err"; then
10760   ac_header_preproc=yes
10761 else
10762   echo "$as_me: failed program was:" >&5
10763 sed 's/^/| /' conftest.$ac_ext >&5
10764
10765   ac_header_preproc=no
10766 fi
10767 rm -f conftest.err conftest.$ac_ext
10768 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10769 echo "${ECHO_T}$ac_header_preproc" >&6
10770
10771 # So?  What about this header?
10772 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10773   yes:no: )
10774     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10775 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10776     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10777 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10778     ac_header_preproc=yes
10779     ;;
10780   no:yes:* )
10781     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10782 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10783     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10784 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10785     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10786 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10787     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10788 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10789     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10790 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10791     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10792 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10793     (
10794       cat <<\_ASBOX
10795 ## ------------------------------------ ##
10796 ## Report this to wine-devel@winehq.org ##
10797 ## ------------------------------------ ##
10798 _ASBOX
10799     ) |
10800       sed "s/^/$as_me: WARNING:     /" >&2
10801     ;;
10802 esac
10803 echo "$as_me:$LINENO: checking for $ac_header" >&5
10804 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10805 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10806   echo $ECHO_N "(cached) $ECHO_C" >&6
10807 else
10808   eval "$as_ac_Header=\$ac_header_preproc"
10809 fi
10810 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10811 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10812
10813 fi
10814 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10815   cat >>confdefs.h <<_ACEOF
10816 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10817 _ACEOF
10818  break
10819 fi
10820
10821 done
10822
10823
10824 echo "$as_me:$LINENO: checking for Open Sound System" >&5
10825 echo $ECHO_N "checking for Open Sound System... $ECHO_C" >&6
10826 if test "${ac_cv_c_opensoundsystem+set}" = set; then
10827   echo $ECHO_N "(cached) $ECHO_C" >&6
10828 else
10829   cat >conftest.$ac_ext <<_ACEOF
10830 /* confdefs.h.  */
10831 _ACEOF
10832 cat confdefs.h >>conftest.$ac_ext
10833 cat >>conftest.$ac_ext <<_ACEOF
10834 /* end confdefs.h.  */
10835
10836         #if defined(HAVE_SYS_SOUNDCARD_H)
10837                 #include <sys/soundcard.h>
10838         #elif defined(HAVE_MACHINE_SOUNDCARD_H)
10839                 #include <machine/soundcard.h>
10840         #elif defined(HAVE_SOUNDCARD_H)
10841                 #include <soundcard.h>
10842         #endif
10843
10844 int
10845 main ()
10846 {
10847
10848
10849 /* check for one of the Open Sound System specific SNDCTL_ defines */
10850 #if !defined(SNDCTL_DSP_STEREO)
10851 #error No open sound system
10852 #endif
10853
10854   ;
10855   return 0;
10856 }
10857 _ACEOF
10858 rm -f conftest.$ac_objext
10859 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10860   (eval $ac_compile) 2>conftest.er1
10861   ac_status=$?
10862   grep -v '^ *+' conftest.er1 >conftest.err
10863   rm -f conftest.er1
10864   cat conftest.err >&5
10865   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10866   (exit $ac_status); } &&
10867          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
10868   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10869   (eval $ac_try) 2>&5
10870   ac_status=$?
10871   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10872   (exit $ac_status); }; } &&
10873          { ac_try='test -s conftest.$ac_objext'
10874   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10875   (eval $ac_try) 2>&5
10876   ac_status=$?
10877   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10878   (exit $ac_status); }; }; then
10879   ac_cv_c_opensoundsystem="yes"
10880 else
10881   echo "$as_me: failed program was:" >&5
10882 sed 's/^/| /' conftest.$ac_ext >&5
10883
10884 ac_cv_c_opensoundsystem="no"
10885 fi
10886 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10887 fi
10888 echo "$as_me:$LINENO: result: $ac_cv_c_opensoundsystem" >&5
10889 echo "${ECHO_T}$ac_cv_c_opensoundsystem" >&6
10890
10891 if test "$ac_cv_c_opensoundsystem" = "yes"
10892 then
10893
10894 cat >>confdefs.h <<\_ACEOF
10895 #define HAVE_OSS 1
10896 _ACEOF
10897
10898 fi
10899
10900 echo "$as_me:$LINENO: checking for Open Sound System/MIDI interface" >&5
10901 echo $ECHO_N "checking for Open Sound System/MIDI interface... $ECHO_C" >&6
10902 if test "${ac_cv_c_opensoundsystem_midi+set}" = set; then
10903   echo $ECHO_N "(cached) $ECHO_C" >&6
10904 else
10905   cat >conftest.$ac_ext <<_ACEOF
10906 /* confdefs.h.  */
10907 _ACEOF
10908 cat confdefs.h >>conftest.$ac_ext
10909 cat >>conftest.$ac_ext <<_ACEOF
10910 /* end confdefs.h.  */
10911
10912         #if defined(HAVE_SYS_SOUNDCARD_H)
10913                 #include <sys/soundcard.h>
10914         #elif defined(HAVE_MACHINE_SOUNDCARD_H)
10915                 #include <machine/soundcard.h>
10916         #elif defined(HAVE_SOUNDCARD_H)
10917                 #include <soundcard.h>
10918         #endif
10919
10920 int
10921 main ()
10922 {
10923
10924
10925 /* check for one of the Open Sound System specific SNDCTL_SEQ defines */
10926 #if !defined(SNDCTL_SEQ_SYNC)
10927 #error No open sound system MIDI interface
10928 #endif
10929
10930   ;
10931   return 0;
10932 }
10933 _ACEOF
10934 rm -f conftest.$ac_objext
10935 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10936   (eval $ac_compile) 2>conftest.er1
10937   ac_status=$?
10938   grep -v '^ *+' conftest.er1 >conftest.err
10939   rm -f conftest.er1
10940   cat conftest.err >&5
10941   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10942   (exit $ac_status); } &&
10943          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
10944   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10945   (eval $ac_try) 2>&5
10946   ac_status=$?
10947   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10948   (exit $ac_status); }; } &&
10949          { ac_try='test -s conftest.$ac_objext'
10950   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10951   (eval $ac_try) 2>&5
10952   ac_status=$?
10953   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10954   (exit $ac_status); }; }; then
10955   ac_cv_c_opensoundsystem_midi="yes"
10956 else
10957   echo "$as_me: failed program was:" >&5
10958 sed 's/^/| /' conftest.$ac_ext >&5
10959
10960 ac_cv_c_opensoundsystem_midi="no"
10961 fi
10962 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10963 fi
10964 echo "$as_me:$LINENO: result: $ac_cv_c_opensoundsystem_midi" >&5
10965 echo "${ECHO_T}$ac_cv_c_opensoundsystem_midi" >&6
10966
10967 if test "$ac_cv_c_opensoundsystem_midi" = "yes"
10968 then
10969
10970 cat >>confdefs.h <<\_ACEOF
10971 #define HAVE_OSS_MIDI 1
10972 _ACEOF
10973
10974 fi
10975
10976 # Extract the first word of "artsc-config", so it can be a program name with args.
10977 set dummy artsc-config; ac_word=$2
10978 echo "$as_me:$LINENO: checking for $ac_word" >&5
10979 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10980 if test "${ac_cv_path_ARTSCCONFIG+set}" = set; then
10981   echo $ECHO_N "(cached) $ECHO_C" >&6
10982 else
10983   case $ARTSCCONFIG in
10984   [\\/]* | ?:[\\/]*)
10985   ac_cv_path_ARTSCCONFIG="$ARTSCCONFIG" # Let the user override the test with a path.
10986   ;;
10987   *)
10988   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10989 for as_dir in $PATH
10990 do
10991   IFS=$as_save_IFS
10992   test -z "$as_dir" && as_dir=.
10993   for ac_exec_ext in '' $ac_executable_extensions; do
10994   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10995     ac_cv_path_ARTSCCONFIG="$as_dir/$ac_word$ac_exec_ext"
10996     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10997     break 2
10998   fi
10999 done
11000 done
11001
11002   ;;
11003 esac
11004 fi
11005 ARTSCCONFIG=$ac_cv_path_ARTSCCONFIG
11006
11007 if test -n "$ARTSCCONFIG"; then
11008   echo "$as_me:$LINENO: result: $ARTSCCONFIG" >&5
11009 echo "${ECHO_T}$ARTSCCONFIG" >&6
11010 else
11011   echo "$as_me:$LINENO: result: no" >&5
11012 echo "${ECHO_T}no" >&6
11013 fi
11014
11015 if test x$ARTSCCONFIG != x -a x$ARTSCCONFIG != x'"$ARTSCCONFIG"';
11016 then
11017     ARTSC_CFLAGS=""
11018     for i in `$ARTSCCONFIG --cflags`
11019     do
11020       case "$i" in
11021         -I*) ARTSC_CFLAGS="$ARTSC_CFLAGS $i";;
11022       esac
11023     done
11024     ARTSC_LIBS=`$ARTSCCONFIG --libs`
11025     save_CFLAGS="$CFLAGS"
11026     CFLAGS="$CFLAGS $ARTSC_CFLAGS"
11027     echo "$as_me:$LINENO: checking for arts_init in -lartsc" >&5
11028 echo $ECHO_N "checking for arts_init in -lartsc... $ECHO_C" >&6
11029 if test "${ac_cv_lib_artsc_arts_init+set}" = set; then
11030   echo $ECHO_N "(cached) $ECHO_C" >&6
11031 else
11032   ac_check_lib_save_LIBS=$LIBS
11033 LIBS="-lartsc  $LIBS"
11034 cat >conftest.$ac_ext <<_ACEOF
11035 /* confdefs.h.  */
11036 _ACEOF
11037 cat confdefs.h >>conftest.$ac_ext
11038 cat >>conftest.$ac_ext <<_ACEOF
11039 /* end confdefs.h.  */
11040
11041 /* Override any gcc2 internal prototype to avoid an error.  */
11042 #ifdef __cplusplus
11043 extern "C"
11044 #endif
11045 /* We use char because int might match the return type of a gcc2
11046    builtin and then its argument prototype would still apply.  */
11047 char arts_init ();
11048 int
11049 main ()
11050 {
11051 arts_init ();
11052   ;
11053   return 0;
11054 }
11055 _ACEOF
11056 rm -f conftest.$ac_objext conftest$ac_exeext
11057 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11058   (eval $ac_link) 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_exeext'
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_lib_artsc_arts_init=yes
11078 else
11079   echo "$as_me: failed program was:" >&5
11080 sed 's/^/| /' conftest.$ac_ext >&5
11081
11082 ac_cv_lib_artsc_arts_init=no
11083 fi
11084 rm -f conftest.err conftest.$ac_objext \
11085       conftest$ac_exeext conftest.$ac_ext
11086 LIBS=$ac_check_lib_save_LIBS
11087 fi
11088 echo "$as_me:$LINENO: result: $ac_cv_lib_artsc_arts_init" >&5
11089 echo "${ECHO_T}$ac_cv_lib_artsc_arts_init" >&6
11090 if test $ac_cv_lib_artsc_arts_init = yes; then
11091   cat >conftest.$ac_ext <<_ACEOF
11092 /* confdefs.h.  */
11093 _ACEOF
11094 cat confdefs.h >>conftest.$ac_ext
11095 cat >>conftest.$ac_ext <<_ACEOF
11096 /* end confdefs.h.  */
11097 #include <artsc.h>
11098 int
11099 main ()
11100 {
11101 arts_stream_t stream;
11102   ;
11103   return 0;
11104 }
11105 _ACEOF
11106 rm -f conftest.$ac_objext
11107 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11108   (eval $ac_compile) 2>conftest.er1
11109   ac_status=$?
11110   grep -v '^ *+' conftest.er1 >conftest.err
11111   rm -f conftest.er1
11112   cat conftest.err >&5
11113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11114   (exit $ac_status); } &&
11115          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
11116   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11117   (eval $ac_try) 2>&5
11118   ac_status=$?
11119   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11120   (exit $ac_status); }; } &&
11121          { ac_try='test -s conftest.$ac_objext'
11122   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11123   (eval $ac_try) 2>&5
11124   ac_status=$?
11125   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11126   (exit $ac_status); }; }; then
11127   ARTSLIBS=$ARTSC_LIBS
11128
11129             ARTSINCL=$ARTSC_CFLAGS
11130
11131
11132 cat >>confdefs.h <<\_ACEOF
11133 #define HAVE_ARTS 1
11134 _ACEOF
11135
11136 else
11137   echo "$as_me: failed program was:" >&5
11138 sed 's/^/| /' conftest.$ac_ext >&5
11139
11140 fi
11141 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11142 fi
11143
11144     CFLAGS="$save_CFLAGS"
11145 fi
11146
11147 ALSALIBS=""
11148
11149
11150
11151 for ac_header in alsa/asoundlib.h sys/asoundlib.h
11152 do
11153 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11154 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11155   echo "$as_me:$LINENO: checking for $ac_header" >&5
11156 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11157 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11158   echo $ECHO_N "(cached) $ECHO_C" >&6
11159 fi
11160 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11161 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11162 else
11163   # Is the header compilable?
11164 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11165 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11166 cat >conftest.$ac_ext <<_ACEOF
11167 /* confdefs.h.  */
11168 _ACEOF
11169 cat confdefs.h >>conftest.$ac_ext
11170 cat >>conftest.$ac_ext <<_ACEOF
11171 /* end confdefs.h.  */
11172 $ac_includes_default
11173 #include <$ac_header>
11174 _ACEOF
11175 rm -f conftest.$ac_objext
11176 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11177   (eval $ac_compile) 2>conftest.er1
11178   ac_status=$?
11179   grep -v '^ *+' conftest.er1 >conftest.err
11180   rm -f conftest.er1
11181   cat conftest.err >&5
11182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11183   (exit $ac_status); } &&
11184          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
11185   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11186   (eval $ac_try) 2>&5
11187   ac_status=$?
11188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11189   (exit $ac_status); }; } &&
11190          { ac_try='test -s conftest.$ac_objext'
11191   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11192   (eval $ac_try) 2>&5
11193   ac_status=$?
11194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11195   (exit $ac_status); }; }; then
11196   ac_header_compiler=yes
11197 else
11198   echo "$as_me: failed program was:" >&5
11199 sed 's/^/| /' conftest.$ac_ext >&5
11200
11201 ac_header_compiler=no
11202 fi
11203 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11204 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11205 echo "${ECHO_T}$ac_header_compiler" >&6
11206
11207 # Is the header present?
11208 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11209 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11210 cat >conftest.$ac_ext <<_ACEOF
11211 /* confdefs.h.  */
11212 _ACEOF
11213 cat confdefs.h >>conftest.$ac_ext
11214 cat >>conftest.$ac_ext <<_ACEOF
11215 /* end confdefs.h.  */
11216 #include <$ac_header>
11217 _ACEOF
11218 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11219   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11220   ac_status=$?
11221   grep -v '^ *+' conftest.er1 >conftest.err
11222   rm -f conftest.er1
11223   cat conftest.err >&5
11224   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11225   (exit $ac_status); } >/dev/null; then
11226   if test -s conftest.err; then
11227     ac_cpp_err=$ac_c_preproc_warn_flag
11228     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11229   else
11230     ac_cpp_err=
11231   fi
11232 else
11233   ac_cpp_err=yes
11234 fi
11235 if test -z "$ac_cpp_err"; then
11236   ac_header_preproc=yes
11237 else
11238   echo "$as_me: failed program was:" >&5
11239 sed 's/^/| /' conftest.$ac_ext >&5
11240
11241   ac_header_preproc=no
11242 fi
11243 rm -f conftest.err conftest.$ac_ext
11244 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11245 echo "${ECHO_T}$ac_header_preproc" >&6
11246
11247 # So?  What about this header?
11248 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11249   yes:no: )
11250     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11251 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11252     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11253 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11254     ac_header_preproc=yes
11255     ;;
11256   no:yes:* )
11257     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11258 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11259     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11260 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11261     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11262 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11263     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11264 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11265     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11266 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11267     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11268 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11269     (
11270       cat <<\_ASBOX
11271 ## ------------------------------------ ##
11272 ## Report this to wine-devel@winehq.org ##
11273 ## ------------------------------------ ##
11274 _ASBOX
11275     ) |
11276       sed "s/^/$as_me: WARNING:     /" >&2
11277     ;;
11278 esac
11279 echo "$as_me:$LINENO: checking for $ac_header" >&5
11280 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11281 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11282   echo $ECHO_N "(cached) $ECHO_C" >&6
11283 else
11284   eval "$as_ac_Header=\$ac_header_preproc"
11285 fi
11286 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11287 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11288
11289 fi
11290 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11291   cat >>confdefs.h <<_ACEOF
11292 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11293 _ACEOF
11294  break
11295 fi
11296
11297 done
11298
11299 if test "$ac_cv_header_sys_asoundlib_h" = "yes" -o "$ac_cv_header_alsa_asoundlib_h" = "yes"
11300 then
11301     echo "$as_me:$LINENO: checking for snd_pcm_hw_params_get_access in -lasound" >&5
11302 echo $ECHO_N "checking for snd_pcm_hw_params_get_access in -lasound... $ECHO_C" >&6
11303 if test "${ac_cv_lib_asound_snd_pcm_hw_params_get_access+set}" = set; then
11304   echo $ECHO_N "(cached) $ECHO_C" >&6
11305 else
11306   ac_check_lib_save_LIBS=$LIBS
11307 LIBS="-lasound  $LIBS"
11308 cat >conftest.$ac_ext <<_ACEOF
11309 /* confdefs.h.  */
11310 _ACEOF
11311 cat confdefs.h >>conftest.$ac_ext
11312 cat >>conftest.$ac_ext <<_ACEOF
11313 /* end confdefs.h.  */
11314
11315 /* Override any gcc2 internal prototype to avoid an error.  */
11316 #ifdef __cplusplus
11317 extern "C"
11318 #endif
11319 /* We use char because int might match the return type of a gcc2
11320    builtin and then its argument prototype would still apply.  */
11321 char snd_pcm_hw_params_get_access ();
11322 int
11323 main ()
11324 {
11325 snd_pcm_hw_params_get_access ();
11326   ;
11327   return 0;
11328 }
11329 _ACEOF
11330 rm -f conftest.$ac_objext conftest$ac_exeext
11331 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11332   (eval $ac_link) 2>conftest.er1
11333   ac_status=$?
11334   grep -v '^ *+' conftest.er1 >conftest.err
11335   rm -f conftest.er1
11336   cat conftest.err >&5
11337   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11338   (exit $ac_status); } &&
11339          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
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); }; } &&
11345          { ac_try='test -s conftest$ac_exeext'
11346   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11347   (eval $ac_try) 2>&5
11348   ac_status=$?
11349   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11350   (exit $ac_status); }; }; then
11351   ac_cv_lib_asound_snd_pcm_hw_params_get_access=yes
11352 else
11353   echo "$as_me: failed program was:" >&5
11354 sed 's/^/| /' conftest.$ac_ext >&5
11355
11356 ac_cv_lib_asound_snd_pcm_hw_params_get_access=no
11357 fi
11358 rm -f conftest.err conftest.$ac_objext \
11359       conftest$ac_exeext conftest.$ac_ext
11360 LIBS=$ac_check_lib_save_LIBS
11361 fi
11362 echo "$as_me:$LINENO: result: $ac_cv_lib_asound_snd_pcm_hw_params_get_access" >&5
11363 echo "${ECHO_T}$ac_cv_lib_asound_snd_pcm_hw_params_get_access" >&6
11364 if test $ac_cv_lib_asound_snd_pcm_hw_params_get_access = yes; then
11365   cat >conftest.$ac_ext <<_ACEOF
11366 /* confdefs.h.  */
11367 _ACEOF
11368 cat confdefs.h >>conftest.$ac_ext
11369 cat >>conftest.$ac_ext <<_ACEOF
11370 /* end confdefs.h.  */
11371 #ifdef HAVE_ALSA_ASOUNDLIB_H
11372 #include <alsa/asoundlib.h>
11373 #elif defined(HAVE_SYS_ASOUNDLIB_H)
11374 #include <sys/asoundlib.h>
11375 #endif
11376 int
11377 main ()
11378 {
11379 int ret = snd_pcm_hw_params_get_access(NULL, NULL)
11380   ;
11381   return 0;
11382 }
11383 _ACEOF
11384 rm -f conftest.$ac_objext
11385 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11386   (eval $ac_compile) 2>conftest.er1
11387   ac_status=$?
11388   grep -v '^ *+' conftest.er1 >conftest.err
11389   rm -f conftest.er1
11390   cat conftest.err >&5
11391   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11392   (exit $ac_status); } &&
11393          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
11394   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11395   (eval $ac_try) 2>&5
11396   ac_status=$?
11397   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11398   (exit $ac_status); }; } &&
11399          { ac_try='test -s conftest.$ac_objext'
11400   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11401   (eval $ac_try) 2>&5
11402   ac_status=$?
11403   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11404   (exit $ac_status); }; }; then
11405
11406 cat >>confdefs.h <<\_ACEOF
11407 #define HAVE_ALSA 1
11408 _ACEOF
11409
11410                          ALSALIBS="-lasound"
11411 else
11412   echo "$as_me: failed program was:" >&5
11413 sed 's/^/| /' conftest.$ac_ext >&5
11414
11415 fi
11416 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11417 fi
11418
11419 fi
11420
11421
11422 AUDIOIOLIBS=""
11423
11424
11425 for ac_header in libaudioio.h
11426 do
11427 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11428 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11429   echo "$as_me:$LINENO: checking for $ac_header" >&5
11430 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11431 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11432   echo $ECHO_N "(cached) $ECHO_C" >&6
11433 fi
11434 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11435 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11436 else
11437   # Is the header compilable?
11438 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11439 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11440 cat >conftest.$ac_ext <<_ACEOF
11441 /* confdefs.h.  */
11442 _ACEOF
11443 cat confdefs.h >>conftest.$ac_ext
11444 cat >>conftest.$ac_ext <<_ACEOF
11445 /* end confdefs.h.  */
11446 $ac_includes_default
11447 #include <$ac_header>
11448 _ACEOF
11449 rm -f conftest.$ac_objext
11450 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11451   (eval $ac_compile) 2>conftest.er1
11452   ac_status=$?
11453   grep -v '^ *+' conftest.er1 >conftest.err
11454   rm -f conftest.er1
11455   cat conftest.err >&5
11456   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11457   (exit $ac_status); } &&
11458          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
11459   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11460   (eval $ac_try) 2>&5
11461   ac_status=$?
11462   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11463   (exit $ac_status); }; } &&
11464          { ac_try='test -s conftest.$ac_objext'
11465   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11466   (eval $ac_try) 2>&5
11467   ac_status=$?
11468   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11469   (exit $ac_status); }; }; then
11470   ac_header_compiler=yes
11471 else
11472   echo "$as_me: failed program was:" >&5
11473 sed 's/^/| /' conftest.$ac_ext >&5
11474
11475 ac_header_compiler=no
11476 fi
11477 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11478 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11479 echo "${ECHO_T}$ac_header_compiler" >&6
11480
11481 # Is the header present?
11482 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11483 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11484 cat >conftest.$ac_ext <<_ACEOF
11485 /* confdefs.h.  */
11486 _ACEOF
11487 cat confdefs.h >>conftest.$ac_ext
11488 cat >>conftest.$ac_ext <<_ACEOF
11489 /* end confdefs.h.  */
11490 #include <$ac_header>
11491 _ACEOF
11492 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11493   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11494   ac_status=$?
11495   grep -v '^ *+' conftest.er1 >conftest.err
11496   rm -f conftest.er1
11497   cat conftest.err >&5
11498   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11499   (exit $ac_status); } >/dev/null; then
11500   if test -s conftest.err; then
11501     ac_cpp_err=$ac_c_preproc_warn_flag
11502     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11503   else
11504     ac_cpp_err=
11505   fi
11506 else
11507   ac_cpp_err=yes
11508 fi
11509 if test -z "$ac_cpp_err"; then
11510   ac_header_preproc=yes
11511 else
11512   echo "$as_me: failed program was:" >&5
11513 sed 's/^/| /' conftest.$ac_ext >&5
11514
11515   ac_header_preproc=no
11516 fi
11517 rm -f conftest.err conftest.$ac_ext
11518 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11519 echo "${ECHO_T}$ac_header_preproc" >&6
11520
11521 # So?  What about this header?
11522 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11523   yes:no: )
11524     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11525 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11526     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11527 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11528     ac_header_preproc=yes
11529     ;;
11530   no:yes:* )
11531     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11532 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11533     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11534 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11535     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11536 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11537     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11538 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11539     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11540 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11541     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11542 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11543     (
11544       cat <<\_ASBOX
11545 ## ------------------------------------ ##
11546 ## Report this to wine-devel@winehq.org ##
11547 ## ------------------------------------ ##
11548 _ASBOX
11549     ) |
11550       sed "s/^/$as_me: WARNING:     /" >&2
11551     ;;
11552 esac
11553 echo "$as_me:$LINENO: checking for $ac_header" >&5
11554 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11555 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11556   echo $ECHO_N "(cached) $ECHO_C" >&6
11557 else
11558   eval "$as_ac_Header=\$ac_header_preproc"
11559 fi
11560 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11561 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11562
11563 fi
11564 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11565   cat >>confdefs.h <<_ACEOF
11566 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11567 _ACEOF
11568  echo "$as_me:$LINENO: checking for AudioIOGetVersion in -laudioio" >&5
11569 echo $ECHO_N "checking for AudioIOGetVersion in -laudioio... $ECHO_C" >&6
11570 if test "${ac_cv_lib_audioio_AudioIOGetVersion+set}" = set; then
11571   echo $ECHO_N "(cached) $ECHO_C" >&6
11572 else
11573   ac_check_lib_save_LIBS=$LIBS
11574 LIBS="-laudioio  $LIBS"
11575 cat >conftest.$ac_ext <<_ACEOF
11576 /* confdefs.h.  */
11577 _ACEOF
11578 cat confdefs.h >>conftest.$ac_ext
11579 cat >>conftest.$ac_ext <<_ACEOF
11580 /* end confdefs.h.  */
11581
11582 /* Override any gcc2 internal prototype to avoid an error.  */
11583 #ifdef __cplusplus
11584 extern "C"
11585 #endif
11586 /* We use char because int might match the return type of a gcc2
11587    builtin and then its argument prototype would still apply.  */
11588 char AudioIOGetVersion ();
11589 int
11590 main ()
11591 {
11592 AudioIOGetVersion ();
11593   ;
11594   return 0;
11595 }
11596 _ACEOF
11597 rm -f conftest.$ac_objext conftest$ac_exeext
11598 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11599   (eval $ac_link) 2>conftest.er1
11600   ac_status=$?
11601   grep -v '^ *+' conftest.er1 >conftest.err
11602   rm -f conftest.er1
11603   cat conftest.err >&5
11604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11605   (exit $ac_status); } &&
11606          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
11607   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11608   (eval $ac_try) 2>&5
11609   ac_status=$?
11610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11611   (exit $ac_status); }; } &&
11612          { ac_try='test -s conftest$ac_exeext'
11613   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11614   (eval $ac_try) 2>&5
11615   ac_status=$?
11616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11617   (exit $ac_status); }; }; then
11618   ac_cv_lib_audioio_AudioIOGetVersion=yes
11619 else
11620   echo "$as_me: failed program was:" >&5
11621 sed 's/^/| /' conftest.$ac_ext >&5
11622
11623 ac_cv_lib_audioio_AudioIOGetVersion=no
11624 fi
11625 rm -f conftest.err conftest.$ac_objext \
11626       conftest$ac_exeext conftest.$ac_ext
11627 LIBS=$ac_check_lib_save_LIBS
11628 fi
11629 echo "$as_me:$LINENO: result: $ac_cv_lib_audioio_AudioIOGetVersion" >&5
11630 echo "${ECHO_T}$ac_cv_lib_audioio_AudioIOGetVersion" >&6
11631 if test $ac_cv_lib_audioio_AudioIOGetVersion = yes; then
11632   AUDIOIOLIBS="-laudioio"
11633
11634 cat >>confdefs.h <<\_ACEOF
11635 #define HAVE_LIBAUDIOIO 1
11636 _ACEOF
11637
11638 fi
11639
11640 fi
11641
11642 done
11643
11644
11645
11646
11647 for ac_header in capi20.h
11648 do
11649 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11650 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11651   echo "$as_me:$LINENO: checking for $ac_header" >&5
11652 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11653 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11654   echo $ECHO_N "(cached) $ECHO_C" >&6
11655 fi
11656 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11657 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11658 else
11659   # Is the header compilable?
11660 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11661 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11662 cat >conftest.$ac_ext <<_ACEOF
11663 /* confdefs.h.  */
11664 _ACEOF
11665 cat confdefs.h >>conftest.$ac_ext
11666 cat >>conftest.$ac_ext <<_ACEOF
11667 /* end confdefs.h.  */
11668 $ac_includes_default
11669 #include <$ac_header>
11670 _ACEOF
11671 rm -f conftest.$ac_objext
11672 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11673   (eval $ac_compile) 2>conftest.er1
11674   ac_status=$?
11675   grep -v '^ *+' conftest.er1 >conftest.err
11676   rm -f conftest.er1
11677   cat conftest.err >&5
11678   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11679   (exit $ac_status); } &&
11680          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
11681   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11682   (eval $ac_try) 2>&5
11683   ac_status=$?
11684   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11685   (exit $ac_status); }; } &&
11686          { ac_try='test -s conftest.$ac_objext'
11687   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11688   (eval $ac_try) 2>&5
11689   ac_status=$?
11690   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11691   (exit $ac_status); }; }; then
11692   ac_header_compiler=yes
11693 else
11694   echo "$as_me: failed program was:" >&5
11695 sed 's/^/| /' conftest.$ac_ext >&5
11696
11697 ac_header_compiler=no
11698 fi
11699 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11700 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11701 echo "${ECHO_T}$ac_header_compiler" >&6
11702
11703 # Is the header present?
11704 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11705 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11706 cat >conftest.$ac_ext <<_ACEOF
11707 /* confdefs.h.  */
11708 _ACEOF
11709 cat confdefs.h >>conftest.$ac_ext
11710 cat >>conftest.$ac_ext <<_ACEOF
11711 /* end confdefs.h.  */
11712 #include <$ac_header>
11713 _ACEOF
11714 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11715   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11716   ac_status=$?
11717   grep -v '^ *+' conftest.er1 >conftest.err
11718   rm -f conftest.er1
11719   cat conftest.err >&5
11720   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11721   (exit $ac_status); } >/dev/null; then
11722   if test -s conftest.err; then
11723     ac_cpp_err=$ac_c_preproc_warn_flag
11724     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11725   else
11726     ac_cpp_err=
11727   fi
11728 else
11729   ac_cpp_err=yes
11730 fi
11731 if test -z "$ac_cpp_err"; then
11732   ac_header_preproc=yes
11733 else
11734   echo "$as_me: failed program was:" >&5
11735 sed 's/^/| /' conftest.$ac_ext >&5
11736
11737   ac_header_preproc=no
11738 fi
11739 rm -f conftest.err conftest.$ac_ext
11740 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11741 echo "${ECHO_T}$ac_header_preproc" >&6
11742
11743 # So?  What about this header?
11744 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11745   yes:no: )
11746     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11747 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11748     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11749 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11750     ac_header_preproc=yes
11751     ;;
11752   no:yes:* )
11753     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11754 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11755     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11756 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11757     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11758 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11759     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11760 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11761     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11762 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11763     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11764 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11765     (
11766       cat <<\_ASBOX
11767 ## ------------------------------------ ##
11768 ## Report this to wine-devel@winehq.org ##
11769 ## ------------------------------------ ##
11770 _ASBOX
11771     ) |
11772       sed "s/^/$as_me: WARNING:     /" >&2
11773     ;;
11774 esac
11775 echo "$as_me:$LINENO: checking for $ac_header" >&5
11776 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11777 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11778   echo $ECHO_N "(cached) $ECHO_C" >&6
11779 else
11780   eval "$as_ac_Header=\$ac_header_preproc"
11781 fi
11782 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11783 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11784
11785 fi
11786 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11787   cat >>confdefs.h <<_ACEOF
11788 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11789 _ACEOF
11790
11791
11792 for ac_header in linux/capi.h
11793 do
11794 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11795 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11796   echo "$as_me:$LINENO: checking for $ac_header" >&5
11797 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11798 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11799   echo $ECHO_N "(cached) $ECHO_C" >&6
11800 fi
11801 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11802 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11803 else
11804   # Is the header compilable?
11805 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11806 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11807 cat >conftest.$ac_ext <<_ACEOF
11808 /* confdefs.h.  */
11809 _ACEOF
11810 cat confdefs.h >>conftest.$ac_ext
11811 cat >>conftest.$ac_ext <<_ACEOF
11812 /* end confdefs.h.  */
11813 $ac_includes_default
11814 #include <$ac_header>
11815 _ACEOF
11816 rm -f conftest.$ac_objext
11817 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11818   (eval $ac_compile) 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); } &&
11825          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
11826   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11827   (eval $ac_try) 2>&5
11828   ac_status=$?
11829   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11830   (exit $ac_status); }; } &&
11831          { ac_try='test -s conftest.$ac_objext'
11832   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11833   (eval $ac_try) 2>&5
11834   ac_status=$?
11835   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11836   (exit $ac_status); }; }; then
11837   ac_header_compiler=yes
11838 else
11839   echo "$as_me: failed program was:" >&5
11840 sed 's/^/| /' conftest.$ac_ext >&5
11841
11842 ac_header_compiler=no
11843 fi
11844 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11845 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11846 echo "${ECHO_T}$ac_header_compiler" >&6
11847
11848 # Is the header present?
11849 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11850 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11851 cat >conftest.$ac_ext <<_ACEOF
11852 /* confdefs.h.  */
11853 _ACEOF
11854 cat confdefs.h >>conftest.$ac_ext
11855 cat >>conftest.$ac_ext <<_ACEOF
11856 /* end confdefs.h.  */
11857 #include <$ac_header>
11858 _ACEOF
11859 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11860   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11861   ac_status=$?
11862   grep -v '^ *+' conftest.er1 >conftest.err
11863   rm -f conftest.er1
11864   cat conftest.err >&5
11865   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11866   (exit $ac_status); } >/dev/null; then
11867   if test -s conftest.err; then
11868     ac_cpp_err=$ac_c_preproc_warn_flag
11869     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11870   else
11871     ac_cpp_err=
11872   fi
11873 else
11874   ac_cpp_err=yes
11875 fi
11876 if test -z "$ac_cpp_err"; then
11877   ac_header_preproc=yes
11878 else
11879   echo "$as_me: failed program was:" >&5
11880 sed 's/^/| /' conftest.$ac_ext >&5
11881
11882   ac_header_preproc=no
11883 fi
11884 rm -f conftest.err conftest.$ac_ext
11885 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11886 echo "${ECHO_T}$ac_header_preproc" >&6
11887
11888 # So?  What about this header?
11889 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11890   yes:no: )
11891     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11892 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11893     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11894 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11895     ac_header_preproc=yes
11896     ;;
11897   no:yes:* )
11898     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11899 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11900     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11901 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11902     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11903 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11904     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11905 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11906     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11907 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11908     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11909 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11910     (
11911       cat <<\_ASBOX
11912 ## ------------------------------------ ##
11913 ## Report this to wine-devel@winehq.org ##
11914 ## ------------------------------------ ##
11915 _ASBOX
11916     ) |
11917       sed "s/^/$as_me: WARNING:     /" >&2
11918     ;;
11919 esac
11920 echo "$as_me:$LINENO: checking for $ac_header" >&5
11921 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11922 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11923   echo $ECHO_N "(cached) $ECHO_C" >&6
11924 else
11925   eval "$as_ac_Header=\$ac_header_preproc"
11926 fi
11927 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11928 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11929
11930 fi
11931 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11932   cat >>confdefs.h <<_ACEOF
11933 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11934 _ACEOF
11935
11936                 echo "$as_me:$LINENO: checking for capi20_register in -lcapi20" >&5
11937 echo $ECHO_N "checking for capi20_register in -lcapi20... $ECHO_C" >&6
11938 if test "${ac_cv_lib_capi20_capi20_register+set}" = set; then
11939   echo $ECHO_N "(cached) $ECHO_C" >&6
11940 else
11941   ac_check_lib_save_LIBS=$LIBS
11942 LIBS="-lcapi20  $LIBS"
11943 cat >conftest.$ac_ext <<_ACEOF
11944 /* confdefs.h.  */
11945 _ACEOF
11946 cat confdefs.h >>conftest.$ac_ext
11947 cat >>conftest.$ac_ext <<_ACEOF
11948 /* end confdefs.h.  */
11949
11950 /* Override any gcc2 internal prototype to avoid an error.  */
11951 #ifdef __cplusplus
11952 extern "C"
11953 #endif
11954 /* We use char because int might match the return type of a gcc2
11955    builtin and then its argument prototype would still apply.  */
11956 char capi20_register ();
11957 int
11958 main ()
11959 {
11960 capi20_register ();
11961   ;
11962   return 0;
11963 }
11964 _ACEOF
11965 rm -f conftest.$ac_objext conftest$ac_exeext
11966 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11967   (eval $ac_link) 2>conftest.er1
11968   ac_status=$?
11969   grep -v '^ *+' conftest.er1 >conftest.err
11970   rm -f conftest.er1
11971   cat conftest.err >&5
11972   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11973   (exit $ac_status); } &&
11974          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
11975   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11976   (eval $ac_try) 2>&5
11977   ac_status=$?
11978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11979   (exit $ac_status); }; } &&
11980          { ac_try='test -s conftest$ac_exeext'
11981   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11982   (eval $ac_try) 2>&5
11983   ac_status=$?
11984   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11985   (exit $ac_status); }; }; then
11986   ac_cv_lib_capi20_capi20_register=yes
11987 else
11988   echo "$as_me: failed program was:" >&5
11989 sed 's/^/| /' conftest.$ac_ext >&5
11990
11991 ac_cv_lib_capi20_capi20_register=no
11992 fi
11993 rm -f conftest.err conftest.$ac_objext \
11994       conftest$ac_exeext conftest.$ac_ext
11995 LIBS=$ac_check_lib_save_LIBS
11996 fi
11997 echo "$as_me:$LINENO: result: $ac_cv_lib_capi20_capi20_register" >&5
11998 echo "${ECHO_T}$ac_cv_lib_capi20_capi20_register" >&6
11999 if test $ac_cv_lib_capi20_capi20_register = yes; then
12000
12001
12002 cat >>confdefs.h <<\_ACEOF
12003 #define HAVE_CAPI4LINUX 1
12004 _ACEOF
12005
12006
12007 fi
12008
12009
12010 fi
12011
12012 done
12013
12014
12015 fi
12016
12017 done
12018
12019
12020
12021 echo "$as_me:$LINENO: checking whether mmap64 works defined as mmap" >&5
12022 echo $ECHO_N "checking whether mmap64 works defined as mmap... $ECHO_C" >&6
12023 if test "${ac_cv_mmap64_works+set}" = set; then
12024   echo $ECHO_N "(cached) $ECHO_C" >&6
12025 else
12026   if test "$cross_compiling" = yes; then
12027   ac_cv_mmap64_works="no"
12028 else
12029   cat >conftest.$ac_ext <<_ACEOF
12030 /* confdefs.h.  */
12031 _ACEOF
12032 cat confdefs.h >>conftest.$ac_ext
12033 cat >>conftest.$ac_ext <<_ACEOF
12034 /* end confdefs.h.  */
12035
12036                 #define _FILE_OFFSET_BITS 64
12037                 #include <stdio.h>
12038                 #include <unistd.h>
12039                 #include <fcntl.h>
12040                 #include <sys/mman.h>
12041                 #include <errno.h>
12042
12043                 int main(int argc,char **argv) {
12044                         int fd = open("conftest.map",O_CREAT|O_RDWR,0600);
12045                         if (fd == -1) exit(1);
12046
12047                         unlink("conftest.map");
12048
12049                         write(fd,"test",4);
12050
12051                         if ((-1 == mmap(0,4,PROT_READ|PROT_WRITE,MAP_SHARED,fd,0)) &&
12052                             (errno == EINVAL)
12053                         ) {
12054                                 exit(1);
12055                         }
12056                         close(fd);
12057                         fprintf(stderr,"success!\n");
12058                         exit(0);
12059                 }
12060
12061
12062 _ACEOF
12063 rm -f conftest$ac_exeext
12064 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12065   (eval $ac_link) 2>&5
12066   ac_status=$?
12067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12068   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12069   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12070   (eval $ac_try) 2>&5
12071   ac_status=$?
12072   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12073   (exit $ac_status); }; }; then
12074   ac_cv_mmap64_works="yes"
12075 else
12076   echo "$as_me: program exited with status $ac_status" >&5
12077 echo "$as_me: failed program was:" >&5
12078 sed 's/^/| /' conftest.$ac_ext >&5
12079
12080 ( exit $ac_status )
12081 ac_cv_mmap64_works="no"
12082 fi
12083 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12084 fi
12085 fi
12086 echo "$as_me:$LINENO: result: $ac_cv_mmap64_works" >&5
12087 echo "${ECHO_T}$ac_cv_mmap64_works" >&6
12088
12089 if test "$ac_cv_mmap64_works" = "yes"
12090 then
12091
12092 cat >>confdefs.h <<\_ACEOF
12093 #define _FILE_OFFSET_BITS 64
12094 _ACEOF
12095
12096 fi
12097
12098
12099 EXTRACFLAGS=""
12100
12101 if test "x${GCC}" = "xyes"
12102 then
12103   EXTRACFLAGS="-Wall -pipe"
12104
12105     echo "$as_me:$LINENO: checking for gcc strength-reduce bug" >&5
12106 echo $ECHO_N "checking for gcc strength-reduce bug... $ECHO_C" >&6
12107 if test "${ac_cv_c_gcc_strength_bug+set}" = set; then
12108   echo $ECHO_N "(cached) $ECHO_C" >&6
12109 else
12110   if test "$cross_compiling" = yes; then
12111   ac_cv_c_gcc_strength_bug="yes"
12112 else
12113   cat >conftest.$ac_ext <<_ACEOF
12114 /* confdefs.h.  */
12115 _ACEOF
12116 cat confdefs.h >>conftest.$ac_ext
12117 cat >>conftest.$ac_ext <<_ACEOF
12118 /* end confdefs.h.  */
12119
12120 int     L[4] = {0,1,2,3};
12121 int main(void) {
12122   static int Array[3];
12123   unsigned int B = 3;
12124   int i;
12125   for(i=0; i<B; i++) Array[i] = i - 3;
12126   for(i=0; i<4 - 1; i++) L[i] = L[i + 1];
12127   L[i] = 4;
12128
12129   exit( Array[1] != -2 || L[2] != 3);
12130 }
12131 _ACEOF
12132 rm -f conftest$ac_exeext
12133 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12134   (eval $ac_link) 2>&5
12135   ac_status=$?
12136   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12137   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12138   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12139   (eval $ac_try) 2>&5
12140   ac_status=$?
12141   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12142   (exit $ac_status); }; }; then
12143   ac_cv_c_gcc_strength_bug="no"
12144 else
12145   echo "$as_me: program exited with status $ac_status" >&5
12146 echo "$as_me: failed program was:" >&5
12147 sed 's/^/| /' conftest.$ac_ext >&5
12148
12149 ( exit $ac_status )
12150 ac_cv_c_gcc_strength_bug="yes"
12151 fi
12152 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12153 fi
12154 fi
12155 echo "$as_me:$LINENO: result: $ac_cv_c_gcc_strength_bug" >&5
12156 echo "${ECHO_T}$ac_cv_c_gcc_strength_bug" >&6
12157   if test "$ac_cv_c_gcc_strength_bug" = "yes"
12158   then
12159     EXTRACFLAGS="$EXTRACFLAGS -fno-strength-reduce"
12160   fi
12161
12162     echo "$as_me:$LINENO: checking for gcc -fshort-wchar support" >&5
12163 echo $ECHO_N "checking for gcc -fshort-wchar support... $ECHO_C" >&6
12164 if test "${ac_cv_c_gcc_fshort_wchar+set}" = set; then
12165   echo $ECHO_N "(cached) $ECHO_C" >&6
12166 else
12167   ac_wine_try_cflags_saved=$CFLAGS
12168 CFLAGS="$CFLAGS -fshort-wchar"
12169 cat >conftest.$ac_ext <<_ACEOF
12170 /* confdefs.h.  */
12171 _ACEOF
12172 cat confdefs.h >>conftest.$ac_ext
12173 cat >>conftest.$ac_ext <<_ACEOF
12174 /* end confdefs.h.  */
12175
12176 int
12177 main ()
12178 {
12179
12180   ;
12181   return 0;
12182 }
12183 _ACEOF
12184 rm -f conftest.$ac_objext conftest$ac_exeext
12185 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12186   (eval $ac_link) 2>conftest.er1
12187   ac_status=$?
12188   grep -v '^ *+' conftest.er1 >conftest.err
12189   rm -f conftest.er1
12190   cat conftest.err >&5
12191   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12192   (exit $ac_status); } &&
12193          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
12194   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12195   (eval $ac_try) 2>&5
12196   ac_status=$?
12197   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12198   (exit $ac_status); }; } &&
12199          { ac_try='test -s conftest$ac_exeext'
12200   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12201   (eval $ac_try) 2>&5
12202   ac_status=$?
12203   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12204   (exit $ac_status); }; }; then
12205   ac_cv_c_gcc_fshort_wchar="yes"
12206 else
12207   echo "$as_me: failed program was:" >&5
12208 sed 's/^/| /' conftest.$ac_ext >&5
12209
12210 ac_cv_c_gcc_fshort_wchar="no"
12211 fi
12212 rm -f conftest.err conftest.$ac_objext \
12213       conftest$ac_exeext conftest.$ac_ext
12214 CFLAGS=$ac_wine_try_cflags_saved
12215 fi
12216 echo "$as_me:$LINENO: result: $ac_cv_c_gcc_fshort_wchar" >&5
12217 echo "${ECHO_T}$ac_cv_c_gcc_fshort_wchar" >&6
12218   if test "$ac_cv_c_gcc_fshort_wchar" = "yes"
12219   then
12220
12221 cat >>confdefs.h <<\_ACEOF
12222 #define CC_FLAG_SHORT_WCHAR "-fshort-wchar"
12223 _ACEOF
12224
12225   fi
12226
12227     echo "$as_me:$LINENO: checking for gcc -mpreferred-stack-boundary=2 support" >&5
12228 echo $ECHO_N "checking for gcc -mpreferred-stack-boundary=2 support... $ECHO_C" >&6
12229 if test "${ac_cv_c_gcc_stack_boundary+set}" = set; then
12230   echo $ECHO_N "(cached) $ECHO_C" >&6
12231 else
12232   ac_wine_try_cflags_saved=$CFLAGS
12233 CFLAGS="$CFLAGS -mpreferred-stack-boundary=2"
12234 cat >conftest.$ac_ext <<_ACEOF
12235 /* confdefs.h.  */
12236 _ACEOF
12237 cat confdefs.h >>conftest.$ac_ext
12238 cat >>conftest.$ac_ext <<_ACEOF
12239 /* end confdefs.h.  */
12240
12241 int
12242 main ()
12243 {
12244
12245   ;
12246   return 0;
12247 }
12248 _ACEOF
12249 rm -f conftest.$ac_objext conftest$ac_exeext
12250 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12251   (eval $ac_link) 2>conftest.er1
12252   ac_status=$?
12253   grep -v '^ *+' conftest.er1 >conftest.err
12254   rm -f conftest.er1
12255   cat conftest.err >&5
12256   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12257   (exit $ac_status); } &&
12258          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
12259   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12260   (eval $ac_try) 2>&5
12261   ac_status=$?
12262   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12263   (exit $ac_status); }; } &&
12264          { ac_try='test -s conftest$ac_exeext'
12265   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12266   (eval $ac_try) 2>&5
12267   ac_status=$?
12268   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12269   (exit $ac_status); }; }; then
12270   ac_cv_c_gcc_stack_boundary="yes"
12271 else
12272   echo "$as_me: failed program was:" >&5
12273 sed 's/^/| /' conftest.$ac_ext >&5
12274
12275 ac_cv_c_gcc_stack_boundary="no"
12276 fi
12277 rm -f conftest.err conftest.$ac_objext \
12278       conftest$ac_exeext conftest.$ac_ext
12279 CFLAGS=$ac_wine_try_cflags_saved
12280 fi
12281 echo "$as_me:$LINENO: result: $ac_cv_c_gcc_stack_boundary" >&5
12282 echo "${ECHO_T}$ac_cv_c_gcc_stack_boundary" >&6
12283   if test "$ac_cv_c_gcc_stack_boundary" = "yes"
12284   then
12285     EXTRACFLAGS="$EXTRACFLAGS -mpreferred-stack-boundary=2"
12286   fi
12287
12288     echo "$as_me:$LINENO: checking for gcc -fno-strict-aliasing support" >&5
12289 echo $ECHO_N "checking for gcc -fno-strict-aliasing support... $ECHO_C" >&6
12290 if test "${ac_cv_c_gcc_no_strict_aliasing+set}" = set; then
12291   echo $ECHO_N "(cached) $ECHO_C" >&6
12292 else
12293   ac_wine_try_cflags_saved=$CFLAGS
12294 CFLAGS="$CFLAGS -fno-strict-aliasing"
12295 cat >conftest.$ac_ext <<_ACEOF
12296 /* confdefs.h.  */
12297 _ACEOF
12298 cat confdefs.h >>conftest.$ac_ext
12299 cat >>conftest.$ac_ext <<_ACEOF
12300 /* end confdefs.h.  */
12301
12302 int
12303 main ()
12304 {
12305
12306   ;
12307   return 0;
12308 }
12309 _ACEOF
12310 rm -f conftest.$ac_objext conftest$ac_exeext
12311 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12312   (eval $ac_link) 2>conftest.er1
12313   ac_status=$?
12314   grep -v '^ *+' conftest.er1 >conftest.err
12315   rm -f conftest.er1
12316   cat conftest.err >&5
12317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12318   (exit $ac_status); } &&
12319          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
12320   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12321   (eval $ac_try) 2>&5
12322   ac_status=$?
12323   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12324   (exit $ac_status); }; } &&
12325          { ac_try='test -s conftest$ac_exeext'
12326   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12327   (eval $ac_try) 2>&5
12328   ac_status=$?
12329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12330   (exit $ac_status); }; }; then
12331   ac_cv_c_gcc_no_strict_aliasing="yes"
12332 else
12333   echo "$as_me: failed program was:" >&5
12334 sed 's/^/| /' conftest.$ac_ext >&5
12335
12336 ac_cv_c_gcc_no_strict_aliasing="no"
12337 fi
12338 rm -f conftest.err conftest.$ac_objext \
12339       conftest$ac_exeext conftest.$ac_ext
12340 CFLAGS=$ac_wine_try_cflags_saved
12341 fi
12342 echo "$as_me:$LINENO: result: $ac_cv_c_gcc_no_strict_aliasing" >&5
12343 echo "${ECHO_T}$ac_cv_c_gcc_no_strict_aliasing" >&6
12344   if test "$ac_cv_c_gcc_no_strict_aliasing" = "yes"
12345   then
12346     EXTRACFLAGS="$EXTRACFLAGS -fno-strict-aliasing"
12347   fi
12348
12349     echo "$as_me:$LINENO: checking for gcc -gstabs+ support" >&5
12350 echo $ECHO_N "checking for gcc -gstabs+ support... $ECHO_C" >&6
12351 if test "${ac_cv_c_gcc_gstabs+set}" = set; then
12352   echo $ECHO_N "(cached) $ECHO_C" >&6
12353 else
12354   ac_wine_try_cflags_saved=$CFLAGS
12355 CFLAGS="$CFLAGS -gstabs+"
12356 cat >conftest.$ac_ext <<_ACEOF
12357 /* confdefs.h.  */
12358 _ACEOF
12359 cat confdefs.h >>conftest.$ac_ext
12360 cat >>conftest.$ac_ext <<_ACEOF
12361 /* end confdefs.h.  */
12362
12363 int
12364 main ()
12365 {
12366
12367   ;
12368   return 0;
12369 }
12370 _ACEOF
12371 rm -f conftest.$ac_objext conftest$ac_exeext
12372 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12373   (eval $ac_link) 2>conftest.er1
12374   ac_status=$?
12375   grep -v '^ *+' conftest.er1 >conftest.err
12376   rm -f conftest.er1
12377   cat conftest.err >&5
12378   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12379   (exit $ac_status); } &&
12380          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
12381   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12382   (eval $ac_try) 2>&5
12383   ac_status=$?
12384   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12385   (exit $ac_status); }; } &&
12386          { ac_try='test -s conftest$ac_exeext'
12387   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12388   (eval $ac_try) 2>&5
12389   ac_status=$?
12390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12391   (exit $ac_status); }; }; then
12392   ac_cv_c_gcc_gstabs="yes"
12393 else
12394   echo "$as_me: failed program was:" >&5
12395 sed 's/^/| /' conftest.$ac_ext >&5
12396
12397 ac_cv_c_gcc_gstabs="no"
12398 fi
12399 rm -f conftest.err conftest.$ac_objext \
12400       conftest$ac_exeext conftest.$ac_ext
12401 CFLAGS=$ac_wine_try_cflags_saved
12402 fi
12403 echo "$as_me:$LINENO: result: $ac_cv_c_gcc_gstabs" >&5
12404 echo "${ECHO_T}$ac_cv_c_gcc_gstabs" >&6
12405   if test "$ac_cv_c_gcc_gstabs" = "yes"
12406   then
12407     EXTRACFLAGS="$EXTRACFLAGS -gstabs+"
12408   fi
12409
12410     saved_CFLAGS="$CFLAGS"
12411   CFLAGS="$CFLAGS -Wpointer-arith -Werror"
12412   echo "$as_me:$LINENO: checking for broken string.h that generates warnings" >&5
12413 echo $ECHO_N "checking for broken string.h that generates warnings... $ECHO_C" >&6
12414 if test "${ac_cv_c_string_h_warnings+set}" = set; then
12415   echo $ECHO_N "(cached) $ECHO_C" >&6
12416 else
12417   cat >conftest.$ac_ext <<_ACEOF
12418 /* confdefs.h.  */
12419 _ACEOF
12420 cat confdefs.h >>conftest.$ac_ext
12421 cat >>conftest.$ac_ext <<_ACEOF
12422 /* end confdefs.h.  */
12423 #include <string.h>
12424 int
12425 main ()
12426 {
12427
12428   ;
12429   return 0;
12430 }
12431 _ACEOF
12432 rm -f conftest.$ac_objext
12433 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12434   (eval $ac_compile) 2>conftest.er1
12435   ac_status=$?
12436   grep -v '^ *+' conftest.er1 >conftest.err
12437   rm -f conftest.er1
12438   cat conftest.err >&5
12439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12440   (exit $ac_status); } &&
12441          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
12442   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12443   (eval $ac_try) 2>&5
12444   ac_status=$?
12445   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12446   (exit $ac_status); }; } &&
12447          { ac_try='test -s conftest.$ac_objext'
12448   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12449   (eval $ac_try) 2>&5
12450   ac_status=$?
12451   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12452   (exit $ac_status); }; }; then
12453   ac_cv_c_string_h_warnings=no
12454 else
12455   echo "$as_me: failed program was:" >&5
12456 sed 's/^/| /' conftest.$ac_ext >&5
12457
12458 ac_cv_c_string_h_warnings=yes
12459 fi
12460 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12461 fi
12462 echo "$as_me:$LINENO: result: $ac_cv_c_string_h_warnings" >&5
12463 echo "${ECHO_T}$ac_cv_c_string_h_warnings" >&6
12464   CFLAGS="$saved_CFLAGS"
12465   if test "$ac_cv_c_string_h_warnings" = "no"
12466   then
12467     EXTRACFLAGS="$EXTRACFLAGS -Wpointer-arith"
12468   fi
12469 fi
12470
12471
12472 echo "$as_me:$LINENO: checking how to define a function in assembly code" >&5
12473 echo $ECHO_N "checking how to define a function in assembly code... $ECHO_C" >&6
12474 if test "${ac_cv_asm_func_def+set}" = set; then
12475   echo $ECHO_N "(cached) $ECHO_C" >&6
12476 else
12477   cat >conftest.$ac_ext <<_ACEOF
12478 /* confdefs.h.  */
12479 _ACEOF
12480 cat confdefs.h >>conftest.$ac_ext
12481 cat >>conftest.$ac_ext <<_ACEOF
12482 /* end confdefs.h.  */
12483 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"); }
12484
12485 int
12486 main ()
12487 {
12488
12489   ;
12490   return 0;
12491 }
12492 _ACEOF
12493 rm -f conftest.$ac_objext conftest$ac_exeext
12494 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12495   (eval $ac_link) 2>conftest.er1
12496   ac_status=$?
12497   grep -v '^ *+' conftest.er1 >conftest.err
12498   rm -f conftest.er1
12499   cat conftest.err >&5
12500   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12501   (exit $ac_status); } &&
12502          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
12503   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12504   (eval $ac_try) 2>&5
12505   ac_status=$?
12506   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12507   (exit $ac_status); }; } &&
12508          { ac_try='test -s conftest$ac_exeext'
12509   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12510   (eval $ac_try) 2>&5
12511   ac_status=$?
12512   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12513   (exit $ac_status); }; }; then
12514   ac_cv_asm_func_def=".def"
12515 else
12516   echo "$as_me: failed program was:" >&5
12517 sed 's/^/| /' conftest.$ac_ext >&5
12518
12519 cat >conftest.$ac_ext <<_ACEOF
12520 /* confdefs.h.  */
12521 _ACEOF
12522 cat confdefs.h >>conftest.$ac_ext
12523 cat >>conftest.$ac_ext <<_ACEOF
12524 /* end confdefs.h.  */
12525 void ac_asm(void) { asm("\t.globl _ac_test\n\t.type _ac_test,@function\n_ac_test:\t.long 0"); }
12526
12527 int
12528 main ()
12529 {
12530
12531   ;
12532   return 0;
12533 }
12534 _ACEOF
12535 rm -f conftest.$ac_objext conftest$ac_exeext
12536 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12537   (eval $ac_link) 2>conftest.er1
12538   ac_status=$?
12539   grep -v '^ *+' conftest.er1 >conftest.err
12540   rm -f conftest.er1
12541   cat conftest.err >&5
12542   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12543   (exit $ac_status); } &&
12544          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
12545   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12546   (eval $ac_try) 2>&5
12547   ac_status=$?
12548   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12549   (exit $ac_status); }; } &&
12550          { ac_try='test -s conftest$ac_exeext'
12551   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12552   (eval $ac_try) 2>&5
12553   ac_status=$?
12554   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12555   (exit $ac_status); }; }; then
12556   ac_cv_asm_func_def=".type @function"
12557 else
12558   echo "$as_me: failed program was:" >&5
12559 sed 's/^/| /' conftest.$ac_ext >&5
12560
12561 cat >conftest.$ac_ext <<_ACEOF
12562 /* confdefs.h.  */
12563 _ACEOF
12564 cat confdefs.h >>conftest.$ac_ext
12565 cat >>conftest.$ac_ext <<_ACEOF
12566 /* end confdefs.h.  */
12567 void ac_asm(void) { asm("\t.globl _ac_test\n\t.type _ac_test,2\n_ac_test:\t.long 0"); }
12568
12569 int
12570 main ()
12571 {
12572
12573   ;
12574   return 0;
12575 }
12576 _ACEOF
12577 rm -f conftest.$ac_objext conftest$ac_exeext
12578 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12579   (eval $ac_link) 2>conftest.er1
12580   ac_status=$?
12581   grep -v '^ *+' conftest.er1 >conftest.err
12582   rm -f conftest.er1
12583   cat conftest.err >&5
12584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12585   (exit $ac_status); } &&
12586          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
12587   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12588   (eval $ac_try) 2>&5
12589   ac_status=$?
12590   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12591   (exit $ac_status); }; } &&
12592          { ac_try='test -s conftest$ac_exeext'
12593   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12594   (eval $ac_try) 2>&5
12595   ac_status=$?
12596   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12597   (exit $ac_status); }; }; then
12598   ac_cv_asm_func_def=".type 2"
12599 else
12600   echo "$as_me: failed program was:" >&5
12601 sed 's/^/| /' conftest.$ac_ext >&5
12602
12603 ac_cv_asm_func_def="unknown"
12604 fi
12605 rm -f conftest.err conftest.$ac_objext \
12606       conftest$ac_exeext conftest.$ac_ext
12607 fi
12608 rm -f conftest.err conftest.$ac_objext \
12609       conftest$ac_exeext conftest.$ac_ext
12610 fi
12611 rm -f conftest.err conftest.$ac_objext \
12612       conftest$ac_exeext conftest.$ac_ext
12613 fi
12614 echo "$as_me:$LINENO: result: $ac_cv_asm_func_def" >&5
12615 echo "${ECHO_T}$ac_cv_asm_func_def" >&6
12616
12617
12618
12619 case "$ac_cv_asm_func_def" in
12620   ".def")
12621      cat >>confdefs.h <<\_ACEOF
12622 #define __ASM_FUNC(name) ".def " __ASM_NAME(name) "; .scl 2; .type 32; .endef"
12623 _ACEOF
12624  ;;
12625   ".type @function")
12626      cat >>confdefs.h <<\_ACEOF
12627 #define __ASM_FUNC(name) ".type " __ASM_NAME(name) ",@function"
12628 _ACEOF
12629  ;;
12630   ".type 2")
12631      cat >>confdefs.h <<\_ACEOF
12632 #define __ASM_FUNC(name) ".type " __ASM_NAME(name) ",2"
12633 _ACEOF
12634  ;;
12635   *)
12636      cat >>confdefs.h <<\_ACEOF
12637 #define __ASM_FUNC(name) ""
12638 _ACEOF
12639  ;;
12640 esac
12641
12642
12643 echo "$as_me:$LINENO: checking whether external symbols need an underscore prefix" >&5
12644 echo $ECHO_N "checking whether external symbols need an underscore prefix... $ECHO_C" >&6
12645 if test "${ac_cv_c_extern_prefix+set}" = set; then
12646   echo $ECHO_N "(cached) $ECHO_C" >&6
12647 else
12648   cat >conftest.$ac_ext <<_ACEOF
12649 /* confdefs.h.  */
12650 _ACEOF
12651 cat confdefs.h >>conftest.$ac_ext
12652 cat >>conftest.$ac_ext <<_ACEOF
12653 /* end confdefs.h.  */
12654 void ac_asm(void) { asm(".globl _ac_test\n_ac_test:\t.long 0"); }
12655 extern int ac_test;
12656 int
12657 main ()
12658 {
12659 if (ac_test) return 1
12660   ;
12661   return 0;
12662 }
12663 _ACEOF
12664 rm -f conftest.$ac_objext conftest$ac_exeext
12665 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12666   (eval $ac_link) 2>conftest.er1
12667   ac_status=$?
12668   grep -v '^ *+' conftest.er1 >conftest.err
12669   rm -f conftest.er1
12670   cat conftest.err >&5
12671   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12672   (exit $ac_status); } &&
12673          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
12674   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12675   (eval $ac_try) 2>&5
12676   ac_status=$?
12677   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12678   (exit $ac_status); }; } &&
12679          { ac_try='test -s conftest$ac_exeext'
12680   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12681   (eval $ac_try) 2>&5
12682   ac_status=$?
12683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12684   (exit $ac_status); }; }; then
12685   ac_cv_c_extern_prefix="yes"
12686 else
12687   echo "$as_me: failed program was:" >&5
12688 sed 's/^/| /' conftest.$ac_ext >&5
12689
12690 ac_cv_c_extern_prefix="no"
12691 fi
12692 rm -f conftest.err conftest.$ac_objext \
12693       conftest$ac_exeext conftest.$ac_ext
12694 fi
12695 echo "$as_me:$LINENO: result: $ac_cv_c_extern_prefix" >&5
12696 echo "${ECHO_T}$ac_cv_c_extern_prefix" >&6
12697
12698
12699
12700 if test "$ac_cv_c_extern_prefix" = "yes"
12701 then
12702   cat >>confdefs.h <<\_ACEOF
12703 #define __ASM_NAME(name) "_" name
12704 _ACEOF
12705
12706 else
12707   cat >>confdefs.h <<\_ACEOF
12708 #define __ASM_NAME(name) name
12709 _ACEOF
12710
12711 fi
12712
12713
12714 echo "$as_me:$LINENO: checking for assembler keyword for ASCII strings" >&5
12715 echo $ECHO_N "checking for assembler keyword for ASCII strings... $ECHO_C" >&6
12716 if test "${ac_cv_c_asm_string+set}" = set; then
12717   echo $ECHO_N "(cached) $ECHO_C" >&6
12718 else
12719   cat >conftest.$ac_ext <<_ACEOF
12720 /* confdefs.h.  */
12721 _ACEOF
12722 cat confdefs.h >>conftest.$ac_ext
12723 cat >>conftest.$ac_ext <<_ACEOF
12724 /* end confdefs.h.  */
12725 void ac_asm(void) { asm(".data\\n\\t.string \\"test\\"\\n\\t.text"); }
12726
12727 int
12728 main ()
12729 {
12730
12731   ;
12732   return 0;
12733 }
12734 _ACEOF
12735 rm -f conftest.$ac_objext conftest$ac_exeext
12736 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12737   (eval $ac_link) 2>conftest.er1
12738   ac_status=$?
12739   grep -v '^ *+' conftest.er1 >conftest.err
12740   rm -f conftest.er1
12741   cat conftest.err >&5
12742   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12743   (exit $ac_status); } &&
12744          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
12745   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12746   (eval $ac_try) 2>&5
12747   ac_status=$?
12748   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12749   (exit $ac_status); }; } &&
12750          { ac_try='test -s conftest$ac_exeext'
12751   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12752   (eval $ac_try) 2>&5
12753   ac_status=$?
12754   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12755   (exit $ac_status); }; }; then
12756   ac_cv_c_asm_string=".string"
12757 else
12758   echo "$as_me: failed program was:" >&5
12759 sed 's/^/| /' conftest.$ac_ext >&5
12760
12761 cat >conftest.$ac_ext <<_ACEOF
12762 /* confdefs.h.  */
12763 _ACEOF
12764 cat confdefs.h >>conftest.$ac_ext
12765 cat >>conftest.$ac_ext <<_ACEOF
12766 /* end confdefs.h.  */
12767 void ac_asm(void) { asm(".data\\n\\t.asciz \\"test\\"\\n\\t.text"); }
12768
12769 int
12770 main ()
12771 {
12772
12773   ;
12774   return 0;
12775 }
12776 _ACEOF
12777 rm -f conftest.$ac_objext conftest$ac_exeext
12778 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12779   (eval $ac_link) 2>conftest.er1
12780   ac_status=$?
12781   grep -v '^ *+' conftest.er1 >conftest.err
12782   rm -f conftest.er1
12783   cat conftest.err >&5
12784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12785   (exit $ac_status); } &&
12786          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
12787   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12788   (eval $ac_try) 2>&5
12789   ac_status=$?
12790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12791   (exit $ac_status); }; } &&
12792          { ac_try='test -s conftest$ac_exeext'
12793   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12794   (eval $ac_try) 2>&5
12795   ac_status=$?
12796   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12797   (exit $ac_status); }; }; then
12798   ac_cv_c_asm_string=".asciz"
12799 else
12800   echo "$as_me: failed program was:" >&5
12801 sed 's/^/| /' conftest.$ac_ext >&5
12802
12803 cat >conftest.$ac_ext <<_ACEOF
12804 /* confdefs.h.  */
12805 _ACEOF
12806 cat confdefs.h >>conftest.$ac_ext
12807 cat >>conftest.$ac_ext <<_ACEOF
12808 /* end confdefs.h.  */
12809 void ac_asm(void) { asm(".data\\n\\t.ascii \\"test\\"\\n\\t.text"); }
12810
12811 int
12812 main ()
12813 {
12814
12815   ;
12816   return 0;
12817 }
12818 _ACEOF
12819 rm -f conftest.$ac_objext conftest$ac_exeext
12820 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12821   (eval $ac_link) 2>conftest.er1
12822   ac_status=$?
12823   grep -v '^ *+' conftest.er1 >conftest.err
12824   rm -f conftest.er1
12825   cat conftest.err >&5
12826   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12827   (exit $ac_status); } &&
12828          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
12829   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12830   (eval $ac_try) 2>&5
12831   ac_status=$?
12832   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12833   (exit $ac_status); }; } &&
12834          { ac_try='test -s conftest$ac_exeext'
12835   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12836   (eval $ac_try) 2>&5
12837   ac_status=$?
12838   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12839   (exit $ac_status); }; }; then
12840   ac_cv_c_asm_string=".ascii"
12841 else
12842   echo "$as_me: failed program was:" >&5
12843 sed 's/^/| /' conftest.$ac_ext >&5
12844
12845 { { echo "$as_me:$LINENO: error: could not discover how to produce C strings with assembler." >&5
12846 echo "$as_me: error: could not discover how to produce C strings with assembler." >&2;}
12847    { (exit 1); exit 1; }; }
12848 fi
12849 rm -f conftest.err conftest.$ac_objext \
12850       conftest$ac_exeext conftest.$ac_ext
12851 fi
12852 rm -f conftest.err conftest.$ac_objext \
12853       conftest$ac_exeext conftest.$ac_ext
12854 fi
12855 rm -f conftest.err conftest.$ac_objext \
12856       conftest$ac_exeext conftest.$ac_ext
12857 fi
12858 echo "$as_me:$LINENO: result: $ac_cv_c_asm_string" >&5
12859 echo "${ECHO_T}$ac_cv_c_asm_string" >&6
12860
12861
12862 cat >>confdefs.h <<_ACEOF
12863 #define __ASM_STRING "$ac_cv_c_asm_string"
12864 _ACEOF
12865
12866
12867
12868 echo "$as_me:$LINENO: checking for assembler keyword for word values" >&5
12869 echo $ECHO_N "checking for assembler keyword for word values... $ECHO_C" >&6
12870 if test "${ac_cv_c_asm_short+set}" = set; then
12871   echo $ECHO_N "(cached) $ECHO_C" >&6
12872 else
12873   cat >conftest.$ac_ext <<_ACEOF
12874 /* confdefs.h.  */
12875 _ACEOF
12876 cat confdefs.h >>conftest.$ac_ext
12877 cat >>conftest.$ac_ext <<_ACEOF
12878 /* end confdefs.h.  */
12879 void ac_asm(void) { asm(".data\\n\\t.short 1\\n\\t.text"); }
12880
12881 int
12882 main ()
12883 {
12884
12885   ;
12886   return 0;
12887 }
12888 _ACEOF
12889 rm -f conftest.$ac_objext conftest$ac_exeext
12890 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12891   (eval $ac_link) 2>conftest.er1
12892   ac_status=$?
12893   grep -v '^ *+' conftest.er1 >conftest.err
12894   rm -f conftest.er1
12895   cat conftest.err >&5
12896   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12897   (exit $ac_status); } &&
12898          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
12899   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12900   (eval $ac_try) 2>&5
12901   ac_status=$?
12902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12903   (exit $ac_status); }; } &&
12904          { ac_try='test -s conftest$ac_exeext'
12905   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12906   (eval $ac_try) 2>&5
12907   ac_status=$?
12908   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12909   (exit $ac_status); }; }; then
12910   ac_cv_c_asm_short=".short"
12911 else
12912   echo "$as_me: failed program was:" >&5
12913 sed 's/^/| /' conftest.$ac_ext >&5
12914
12915 cat >conftest.$ac_ext <<_ACEOF
12916 /* confdefs.h.  */
12917 _ACEOF
12918 cat confdefs.h >>conftest.$ac_ext
12919 cat >>conftest.$ac_ext <<_ACEOF
12920 /* end confdefs.h.  */
12921 void ac_asm(void) { asm(".data\\n\\t.half 1\\n\\t.text"); }
12922
12923 int
12924 main ()
12925 {
12926
12927   ;
12928   return 0;
12929 }
12930 _ACEOF
12931 rm -f conftest.$ac_objext conftest$ac_exeext
12932 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12933   (eval $ac_link) 2>conftest.er1
12934   ac_status=$?
12935   grep -v '^ *+' conftest.er1 >conftest.err
12936   rm -f conftest.er1
12937   cat conftest.err >&5
12938   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12939   (exit $ac_status); } &&
12940          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
12941   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12942   (eval $ac_try) 2>&5
12943   ac_status=$?
12944   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12945   (exit $ac_status); }; } &&
12946          { ac_try='test -s conftest$ac_exeext'
12947   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12948   (eval $ac_try) 2>&5
12949   ac_status=$?
12950   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12951   (exit $ac_status); }; }; then
12952   ac_cv_c_asm_short=".half"
12953 else
12954   echo "$as_me: failed program was:" >&5
12955 sed 's/^/| /' conftest.$ac_ext >&5
12956
12957 { { echo "$as_me:$LINENO: error: could not discover how to specify word values with assembler." >&5
12958 echo "$as_me: error: could not discover how to specify word values with assembler." >&2;}
12959    { (exit 1); exit 1; }; }
12960 fi
12961 rm -f conftest.err conftest.$ac_objext \
12962       conftest$ac_exeext conftest.$ac_ext
12963 fi
12964 rm -f conftest.err conftest.$ac_objext \
12965       conftest$ac_exeext conftest.$ac_ext
12966 fi
12967 echo "$as_me:$LINENO: result: $ac_cv_c_asm_short" >&5
12968 echo "${ECHO_T}$ac_cv_c_asm_short" >&6
12969
12970
12971 cat >>confdefs.h <<_ACEOF
12972 #define __ASM_SHORT "$ac_cv_c_asm_short"
12973 _ACEOF
12974
12975
12976
12977 echo "$as_me:$LINENO: checking for .size in assembler" >&5
12978 echo $ECHO_N "checking for .size in assembler... $ECHO_C" >&6
12979 if test "${ac_cv_c_asm_size+set}" = set; then
12980   echo $ECHO_N "(cached) $ECHO_C" >&6
12981 else
12982   cat >conftest.$ac_ext <<_ACEOF
12983 /* confdefs.h.  */
12984 _ACEOF
12985 cat confdefs.h >>conftest.$ac_ext
12986 cat >>conftest.$ac_ext <<_ACEOF
12987 /* end confdefs.h.  */
12988 void ac_asm(void) { asm(".globl _ac_test\n.size _ac_test, . - _ac_test"); }
12989
12990 int
12991 main ()
12992 {
12993
12994   ;
12995   return 0;
12996 }
12997 _ACEOF
12998 rm -f conftest.$ac_objext conftest$ac_exeext
12999 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13000   (eval $ac_link) 2>conftest.er1
13001   ac_status=$?
13002   grep -v '^ *+' conftest.er1 >conftest.err
13003   rm -f conftest.er1
13004   cat conftest.err >&5
13005   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13006   (exit $ac_status); } &&
13007          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
13008   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13009   (eval $ac_try) 2>&5
13010   ac_status=$?
13011   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13012   (exit $ac_status); }; } &&
13013          { ac_try='test -s conftest$ac_exeext'
13014   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13015   (eval $ac_try) 2>&5
13016   ac_status=$?
13017   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13018   (exit $ac_status); }; }; then
13019   ac_cv_c_asm_size="yes"
13020 else
13021   echo "$as_me: failed program was:" >&5
13022 sed 's/^/| /' conftest.$ac_ext >&5
13023
13024 ac_cv_c_asm_size="no"
13025 fi
13026 rm -f conftest.err conftest.$ac_objext \
13027       conftest$ac_exeext conftest.$ac_ext
13028 fi
13029 echo "$as_me:$LINENO: result: $ac_cv_c_asm_size" >&5
13030 echo "${ECHO_T}$ac_cv_c_asm_size" >&6
13031
13032 if test "$ac_cv_c_asm_size" = "yes"
13033 then
13034
13035 cat >>confdefs.h <<\_ACEOF
13036 #define HAVE_ASM_DOT_SIZE 1
13037 _ACEOF
13038
13039 fi
13040
13041
13042 DLLEXT=""
13043
13044 DLLFLAGS="-D_REENTRANT"
13045
13046 DLLIBS=""
13047
13048 LDSHARED=""
13049
13050 LDDLLFLAGS=""
13051
13052 LIBEXT="so"
13053
13054 IMPLIBEXT="def"
13055
13056
13057 case $host_os in
13058   cygwin*|mingw32*)
13059     if test -n "$ac_tool_prefix"; then
13060   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
13061 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
13062 echo "$as_me:$LINENO: checking for $ac_word" >&5
13063 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13064 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
13065   echo $ECHO_N "(cached) $ECHO_C" >&6
13066 else
13067   if test -n "$DLLTOOL"; then
13068   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
13069 else
13070 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13071 for as_dir in $PATH
13072 do
13073   IFS=$as_save_IFS
13074   test -z "$as_dir" && as_dir=.
13075   for ac_exec_ext in '' $ac_executable_extensions; do
13076   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13077     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
13078     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13079     break 2
13080   fi
13081 done
13082 done
13083
13084 fi
13085 fi
13086 DLLTOOL=$ac_cv_prog_DLLTOOL
13087 if test -n "$DLLTOOL"; then
13088   echo "$as_me:$LINENO: result: $DLLTOOL" >&5
13089 echo "${ECHO_T}$DLLTOOL" >&6
13090 else
13091   echo "$as_me:$LINENO: result: no" >&5
13092 echo "${ECHO_T}no" >&6
13093 fi
13094
13095 fi
13096 if test -z "$ac_cv_prog_DLLTOOL"; then
13097   ac_ct_DLLTOOL=$DLLTOOL
13098   # Extract the first word of "dlltool", so it can be a program name with args.
13099 set dummy dlltool; ac_word=$2
13100 echo "$as_me:$LINENO: checking for $ac_word" >&5
13101 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13102 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
13103   echo $ECHO_N "(cached) $ECHO_C" >&6
13104 else
13105   if test -n "$ac_ct_DLLTOOL"; then
13106   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
13107 else
13108 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13109 for as_dir in $PATH
13110 do
13111   IFS=$as_save_IFS
13112   test -z "$as_dir" && as_dir=.
13113   for ac_exec_ext in '' $ac_executable_extensions; do
13114   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13115     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
13116     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13117     break 2
13118   fi
13119 done
13120 done
13121
13122   test -z "$ac_cv_prog_ac_ct_DLLTOOL" && ac_cv_prog_ac_ct_DLLTOOL="false"
13123 fi
13124 fi
13125 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
13126 if test -n "$ac_ct_DLLTOOL"; then
13127   echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
13128 echo "${ECHO_T}$ac_ct_DLLTOOL" >&6
13129 else
13130   echo "$as_me:$LINENO: result: no" >&5
13131 echo "${ECHO_T}no" >&6
13132 fi
13133
13134   DLLTOOL=$ac_ct_DLLTOOL
13135 else
13136   DLLTOOL="$ac_cv_prog_DLLTOOL"
13137 fi
13138
13139     if test -n "$ac_tool_prefix"; then
13140   # Extract the first word of "${ac_tool_prefix}dllwrap", so it can be a program name with args.
13141 set dummy ${ac_tool_prefix}dllwrap; ac_word=$2
13142 echo "$as_me:$LINENO: checking for $ac_word" >&5
13143 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13144 if test "${ac_cv_prog_DLLWRAP+set}" = set; then
13145   echo $ECHO_N "(cached) $ECHO_C" >&6
13146 else
13147   if test -n "$DLLWRAP"; then
13148   ac_cv_prog_DLLWRAP="$DLLWRAP" # Let the user override the test.
13149 else
13150 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13151 for as_dir in $PATH
13152 do
13153   IFS=$as_save_IFS
13154   test -z "$as_dir" && as_dir=.
13155   for ac_exec_ext in '' $ac_executable_extensions; do
13156   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13157     ac_cv_prog_DLLWRAP="${ac_tool_prefix}dllwrap"
13158     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13159     break 2
13160   fi
13161 done
13162 done
13163
13164 fi
13165 fi
13166 DLLWRAP=$ac_cv_prog_DLLWRAP
13167 if test -n "$DLLWRAP"; then
13168   echo "$as_me:$LINENO: result: $DLLWRAP" >&5
13169 echo "${ECHO_T}$DLLWRAP" >&6
13170 else
13171   echo "$as_me:$LINENO: result: no" >&5
13172 echo "${ECHO_T}no" >&6
13173 fi
13174
13175 fi
13176 if test -z "$ac_cv_prog_DLLWRAP"; then
13177   ac_ct_DLLWRAP=$DLLWRAP
13178   # Extract the first word of "dllwrap", so it can be a program name with args.
13179 set dummy dllwrap; ac_word=$2
13180 echo "$as_me:$LINENO: checking for $ac_word" >&5
13181 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13182 if test "${ac_cv_prog_ac_ct_DLLWRAP+set}" = set; then
13183   echo $ECHO_N "(cached) $ECHO_C" >&6
13184 else
13185   if test -n "$ac_ct_DLLWRAP"; then
13186   ac_cv_prog_ac_ct_DLLWRAP="$ac_ct_DLLWRAP" # Let the user override the test.
13187 else
13188 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13189 for as_dir in $PATH
13190 do
13191   IFS=$as_save_IFS
13192   test -z "$as_dir" && as_dir=.
13193   for ac_exec_ext in '' $ac_executable_extensions; do
13194   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13195     ac_cv_prog_ac_ct_DLLWRAP="dllwrap"
13196     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13197     break 2
13198   fi
13199 done
13200 done
13201
13202   test -z "$ac_cv_prog_ac_ct_DLLWRAP" && ac_cv_prog_ac_ct_DLLWRAP="false"
13203 fi
13204 fi
13205 ac_ct_DLLWRAP=$ac_cv_prog_ac_ct_DLLWRAP
13206 if test -n "$ac_ct_DLLWRAP"; then
13207   echo "$as_me:$LINENO: result: $ac_ct_DLLWRAP" >&5
13208 echo "${ECHO_T}$ac_ct_DLLWRAP" >&6
13209 else
13210   echo "$as_me:$LINENO: result: no" >&5
13211 echo "${ECHO_T}no" >&6
13212 fi
13213
13214   DLLWRAP=$ac_ct_DLLWRAP
13215 else
13216   DLLWRAP="$ac_cv_prog_DLLWRAP"
13217 fi
13218
13219     if test "$DLLWRAP" = "false"; then
13220       LIBEXT="a"
13221     else
13222             LIBEXT="dll"
13223     fi
13224     IMPLIBEXT="a"
13225         WIN16_FILES=""
13226     WIN16_INSTALL=""
13227     ;;
13228   *)
13229
13230 for ac_header in dlfcn.h
13231 do
13232 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13233 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13234   echo "$as_me:$LINENO: checking for $ac_header" >&5
13235 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13236 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13237   echo $ECHO_N "(cached) $ECHO_C" >&6
13238 fi
13239 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13240 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13241 else
13242   # Is the header compilable?
13243 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13244 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13245 cat >conftest.$ac_ext <<_ACEOF
13246 /* confdefs.h.  */
13247 _ACEOF
13248 cat confdefs.h >>conftest.$ac_ext
13249 cat >>conftest.$ac_ext <<_ACEOF
13250 /* end confdefs.h.  */
13251 $ac_includes_default
13252 #include <$ac_header>
13253 _ACEOF
13254 rm -f conftest.$ac_objext
13255 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13256   (eval $ac_compile) 2>conftest.er1
13257   ac_status=$?
13258   grep -v '^ *+' conftest.er1 >conftest.err
13259   rm -f conftest.er1
13260   cat conftest.err >&5
13261   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13262   (exit $ac_status); } &&
13263          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
13264   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13265   (eval $ac_try) 2>&5
13266   ac_status=$?
13267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13268   (exit $ac_status); }; } &&
13269          { ac_try='test -s conftest.$ac_objext'
13270   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13271   (eval $ac_try) 2>&5
13272   ac_status=$?
13273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13274   (exit $ac_status); }; }; then
13275   ac_header_compiler=yes
13276 else
13277   echo "$as_me: failed program was:" >&5
13278 sed 's/^/| /' conftest.$ac_ext >&5
13279
13280 ac_header_compiler=no
13281 fi
13282 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13283 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13284 echo "${ECHO_T}$ac_header_compiler" >&6
13285
13286 # Is the header present?
13287 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13288 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13289 cat >conftest.$ac_ext <<_ACEOF
13290 /* confdefs.h.  */
13291 _ACEOF
13292 cat confdefs.h >>conftest.$ac_ext
13293 cat >>conftest.$ac_ext <<_ACEOF
13294 /* end confdefs.h.  */
13295 #include <$ac_header>
13296 _ACEOF
13297 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13298   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13299   ac_status=$?
13300   grep -v '^ *+' conftest.er1 >conftest.err
13301   rm -f conftest.er1
13302   cat conftest.err >&5
13303   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13304   (exit $ac_status); } >/dev/null; then
13305   if test -s conftest.err; then
13306     ac_cpp_err=$ac_c_preproc_warn_flag
13307     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13308   else
13309     ac_cpp_err=
13310   fi
13311 else
13312   ac_cpp_err=yes
13313 fi
13314 if test -z "$ac_cpp_err"; then
13315   ac_header_preproc=yes
13316 else
13317   echo "$as_me: failed program was:" >&5
13318 sed 's/^/| /' conftest.$ac_ext >&5
13319
13320   ac_header_preproc=no
13321 fi
13322 rm -f conftest.err conftest.$ac_ext
13323 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13324 echo "${ECHO_T}$ac_header_preproc" >&6
13325
13326 # So?  What about this header?
13327 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13328   yes:no: )
13329     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13330 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13331     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13332 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13333     ac_header_preproc=yes
13334     ;;
13335   no:yes:* )
13336     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13337 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13338     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
13339 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
13340     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13341 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13342     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
13343 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
13344     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13345 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13346     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13347 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13348     (
13349       cat <<\_ASBOX
13350 ## ------------------------------------ ##
13351 ## Report this to wine-devel@winehq.org ##
13352 ## ------------------------------------ ##
13353 _ASBOX
13354     ) |
13355       sed "s/^/$as_me: WARNING:     /" >&2
13356     ;;
13357 esac
13358 echo "$as_me:$LINENO: checking for $ac_header" >&5
13359 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13360 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13361   echo $ECHO_N "(cached) $ECHO_C" >&6
13362 else
13363   eval "$as_ac_Header=\$ac_header_preproc"
13364 fi
13365 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13366 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13367
13368 fi
13369 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13370   cat >>confdefs.h <<_ACEOF
13371 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13372 _ACEOF
13373
13374 for ac_func in dlopen
13375 do
13376 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13377 echo "$as_me:$LINENO: checking for $ac_func" >&5
13378 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13379 if eval "test \"\${$as_ac_var+set}\" = set"; then
13380   echo $ECHO_N "(cached) $ECHO_C" >&6
13381 else
13382   cat >conftest.$ac_ext <<_ACEOF
13383 /* confdefs.h.  */
13384 _ACEOF
13385 cat confdefs.h >>conftest.$ac_ext
13386 cat >>conftest.$ac_ext <<_ACEOF
13387 /* end confdefs.h.  */
13388 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13389    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
13390 #define $ac_func innocuous_$ac_func
13391
13392 /* System header to define __stub macros and hopefully few prototypes,
13393     which can conflict with char $ac_func (); below.
13394     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13395     <limits.h> exists even on freestanding compilers.  */
13396
13397 #ifdef __STDC__
13398 # include <limits.h>
13399 #else
13400 # include <assert.h>
13401 #endif
13402
13403 #undef $ac_func
13404
13405 /* Override any gcc2 internal prototype to avoid an error.  */
13406 #ifdef __cplusplus
13407 extern "C"
13408 {
13409 #endif
13410 /* We use char because int might match the return type of a gcc2
13411    builtin and then its argument prototype would still apply.  */
13412 char $ac_func ();
13413 /* The GNU C library defines this for functions which it implements
13414     to always fail with ENOSYS.  Some functions are actually named
13415     something starting with __ and the normal name is an alias.  */
13416 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13417 choke me
13418 #else
13419 char (*f) () = $ac_func;
13420 #endif
13421 #ifdef __cplusplus
13422 }
13423 #endif
13424
13425 int
13426 main ()
13427 {
13428 return f != $ac_func;
13429   ;
13430   return 0;
13431 }
13432 _ACEOF
13433 rm -f conftest.$ac_objext conftest$ac_exeext
13434 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13435   (eval $ac_link) 2>conftest.er1
13436   ac_status=$?
13437   grep -v '^ *+' conftest.er1 >conftest.err
13438   rm -f conftest.er1
13439   cat conftest.err >&5
13440   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13441   (exit $ac_status); } &&
13442          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
13443   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13444   (eval $ac_try) 2>&5
13445   ac_status=$?
13446   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13447   (exit $ac_status); }; } &&
13448          { ac_try='test -s conftest$ac_exeext'
13449   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13450   (eval $ac_try) 2>&5
13451   ac_status=$?
13452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13453   (exit $ac_status); }; }; then
13454   eval "$as_ac_var=yes"
13455 else
13456   echo "$as_me: failed program was:" >&5
13457 sed 's/^/| /' conftest.$ac_ext >&5
13458
13459 eval "$as_ac_var=no"
13460 fi
13461 rm -f conftest.err conftest.$ac_objext \
13462       conftest$ac_exeext conftest.$ac_ext
13463 fi
13464 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13465 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13466 if test `eval echo '${'$as_ac_var'}'` = yes; then
13467   cat >>confdefs.h <<_ACEOF
13468 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13469 _ACEOF
13470
13471 else
13472   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
13473 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
13474 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
13475   echo $ECHO_N "(cached) $ECHO_C" >&6
13476 else
13477   ac_check_lib_save_LIBS=$LIBS
13478 LIBS="-ldl  $LIBS"
13479 cat >conftest.$ac_ext <<_ACEOF
13480 /* confdefs.h.  */
13481 _ACEOF
13482 cat confdefs.h >>conftest.$ac_ext
13483 cat >>conftest.$ac_ext <<_ACEOF
13484 /* end confdefs.h.  */
13485
13486 /* Override any gcc2 internal prototype to avoid an error.  */
13487 #ifdef __cplusplus
13488 extern "C"
13489 #endif
13490 /* We use char because int might match the return type of a gcc2
13491    builtin and then its argument prototype would still apply.  */
13492 char dlopen ();
13493 int
13494 main ()
13495 {
13496 dlopen ();
13497   ;
13498   return 0;
13499 }
13500 _ACEOF
13501 rm -f conftest.$ac_objext conftest$ac_exeext
13502 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13503   (eval $ac_link) 2>conftest.er1
13504   ac_status=$?
13505   grep -v '^ *+' conftest.er1 >conftest.err
13506   rm -f conftest.er1
13507   cat conftest.err >&5
13508   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13509   (exit $ac_status); } &&
13510          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
13511   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13512   (eval $ac_try) 2>&5
13513   ac_status=$?
13514   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13515   (exit $ac_status); }; } &&
13516          { ac_try='test -s conftest$ac_exeext'
13517   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13518   (eval $ac_try) 2>&5
13519   ac_status=$?
13520   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13521   (exit $ac_status); }; }; then
13522   ac_cv_lib_dl_dlopen=yes
13523 else
13524   echo "$as_me: failed program was:" >&5
13525 sed 's/^/| /' conftest.$ac_ext >&5
13526
13527 ac_cv_lib_dl_dlopen=no
13528 fi
13529 rm -f conftest.err conftest.$ac_objext \
13530       conftest$ac_exeext conftest.$ac_ext
13531 LIBS=$ac_check_lib_save_LIBS
13532 fi
13533 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
13534 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
13535 if test $ac_cv_lib_dl_dlopen = yes; then
13536
13537 cat >>confdefs.h <<\_ACEOF
13538 #define HAVE_DLOPEN 1
13539 _ACEOF
13540
13541                           DLLIBS="-ldl"
13542 else
13543   LIBEXT="a"
13544 fi
13545
13546 fi
13547 done
13548
13549 else
13550   LIBEXT="a"
13551 fi
13552
13553 done
13554
13555
13556     if test "$LIBEXT" = "so"
13557     then
13558       DLLFLAGS="$DLLFLAGS -fPIC"
13559       DLLEXT=".so"
13560       echo "$as_me:$LINENO: checking whether we can build a GNU style ELF dll" >&5
13561 echo $ECHO_N "checking whether we can build a GNU style ELF dll... $ECHO_C" >&6
13562 if test "${ac_cv_c_dll_gnuelf+set}" = set; then
13563   echo $ECHO_N "(cached) $ECHO_C" >&6
13564 else
13565   ac_wine_try_cflags_saved=$CFLAGS
13566 CFLAGS="$CFLAGS -fPIC -shared -Wl,-soname,conftest.so.1.0,-Bsymbolic"
13567 cat >conftest.$ac_ext <<_ACEOF
13568 void myfunc() {}
13569 _ACEOF
13570 rm -f conftest.$ac_objext conftest$ac_exeext
13571 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13572   (eval $ac_link) 2>conftest.er1
13573   ac_status=$?
13574   grep -v '^ *+' conftest.er1 >conftest.err
13575   rm -f conftest.er1
13576   cat conftest.err >&5
13577   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13578   (exit $ac_status); } &&
13579          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
13580   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13581   (eval $ac_try) 2>&5
13582   ac_status=$?
13583   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13584   (exit $ac_status); }; } &&
13585          { ac_try='test -s conftest$ac_exeext'
13586   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13587   (eval $ac_try) 2>&5
13588   ac_status=$?
13589   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13590   (exit $ac_status); }; }; then
13591   ac_cv_c_dll_gnuelf="yes"
13592 else
13593   echo "$as_me: failed program was:" >&5
13594 sed 's/^/| /' conftest.$ac_ext >&5
13595
13596 ac_cv_c_dll_gnuelf="no"
13597 fi
13598 rm -f conftest.err conftest.$ac_objext \
13599       conftest$ac_exeext conftest.$ac_ext
13600 CFLAGS=$ac_wine_try_cflags_saved
13601 fi
13602 echo "$as_me:$LINENO: result: $ac_cv_c_dll_gnuelf" >&5
13603 echo "${ECHO_T}$ac_cv_c_dll_gnuelf" >&6
13604       if test "$ac_cv_c_dll_gnuelf" = "yes"
13605       then
13606         LDSHARED="\$(CC) -shared \$(SONAME:%=-Wl,-soname,%)"
13607         LDDLLFLAGS="-shared -Wl,-Bsymbolic"
13608         echo "$as_me:$LINENO: checking whether the linker accepts -z defs" >&5
13609 echo $ECHO_N "checking whether the linker accepts -z defs... $ECHO_C" >&6
13610 if test "${ac_cv_c_dll_zdefs+set}" = set; then
13611   echo $ECHO_N "(cached) $ECHO_C" >&6
13612 else
13613   ac_wine_try_cflags_saved=$CFLAGS
13614 CFLAGS="$CFLAGS -fPIC -shared -Wl,-Bsymbolic,-z,defs"
13615 cat >conftest.$ac_ext <<_ACEOF
13616 /* confdefs.h.  */
13617 _ACEOF
13618 cat confdefs.h >>conftest.$ac_ext
13619 cat >>conftest.$ac_ext <<_ACEOF
13620 /* end confdefs.h.  */
13621
13622 int
13623 main ()
13624 {
13625
13626   ;
13627   return 0;
13628 }
13629 _ACEOF
13630 rm -f conftest.$ac_objext conftest$ac_exeext
13631 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13632   (eval $ac_link) 2>conftest.er1
13633   ac_status=$?
13634   grep -v '^ *+' conftest.er1 >conftest.err
13635   rm -f conftest.er1
13636   cat conftest.err >&5
13637   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13638   (exit $ac_status); } &&
13639          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
13640   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13641   (eval $ac_try) 2>&5
13642   ac_status=$?
13643   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13644   (exit $ac_status); }; } &&
13645          { ac_try='test -s conftest$ac_exeext'
13646   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13647   (eval $ac_try) 2>&5
13648   ac_status=$?
13649   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13650   (exit $ac_status); }; }; then
13651   ac_cv_c_dll_zdefs="yes"
13652 else
13653   echo "$as_me: failed program was:" >&5
13654 sed 's/^/| /' conftest.$ac_ext >&5
13655
13656 ac_cv_c_dll_zdefs="no"
13657 fi
13658 rm -f conftest.err conftest.$ac_objext \
13659       conftest$ac_exeext conftest.$ac_ext
13660 CFLAGS=$ac_wine_try_cflags_saved
13661 fi
13662 echo "$as_me:$LINENO: result: $ac_cv_c_dll_zdefs" >&5
13663 echo "${ECHO_T}$ac_cv_c_dll_zdefs" >&6
13664         if test "$ac_cv_c_dll_zdefs" = "yes"
13665         then
13666           LDDLLFLAGS="$LDDLLFLAGS,-z,defs"
13667         fi
13668
13669         echo "$as_me:$LINENO: checking whether the linker accepts -init and -fini" >&5
13670 echo $ECHO_N "checking whether the linker accepts -init and -fini... $ECHO_C" >&6
13671 if test "${ac_cv_c_dll_init_fini+set}" = set; then
13672   echo $ECHO_N "(cached) $ECHO_C" >&6
13673 else
13674   ac_wine_try_cflags_saved=$CFLAGS
13675 CFLAGS="$CFLAGS -fPIC -shared -Wl,-Bsymbolic,-init,__wine_spec_init,-fini,__wine_spec_fini"
13676 cat >conftest.$ac_ext <<_ACEOF
13677 /* confdefs.h.  */
13678 _ACEOF
13679 cat confdefs.h >>conftest.$ac_ext
13680 cat >>conftest.$ac_ext <<_ACEOF
13681 /* end confdefs.h.  */
13682
13683 int
13684 main ()
13685 {
13686
13687   ;
13688   return 0;
13689 }
13690 _ACEOF
13691 rm -f conftest.$ac_objext conftest$ac_exeext
13692 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13693   (eval $ac_link) 2>conftest.er1
13694   ac_status=$?
13695   grep -v '^ *+' conftest.er1 >conftest.err
13696   rm -f conftest.er1
13697   cat conftest.err >&5
13698   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13699   (exit $ac_status); } &&
13700          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
13701   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13702   (eval $ac_try) 2>&5
13703   ac_status=$?
13704   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13705   (exit $ac_status); }; } &&
13706          { ac_try='test -s conftest$ac_exeext'
13707   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13708   (eval $ac_try) 2>&5
13709   ac_status=$?
13710   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13711   (exit $ac_status); }; }; then
13712   ac_cv_c_dll_init_fini="yes"
13713 else
13714   echo "$as_me: failed program was:" >&5
13715 sed 's/^/| /' conftest.$ac_ext >&5
13716
13717 ac_cv_c_dll_init_fini="no"
13718 fi
13719 rm -f conftest.err conftest.$ac_objext \
13720       conftest$ac_exeext conftest.$ac_ext
13721 CFLAGS=$ac_wine_try_cflags_saved
13722 fi
13723 echo "$as_me:$LINENO: result: $ac_cv_c_dll_init_fini" >&5
13724 echo "${ECHO_T}$ac_cv_c_dll_init_fini" >&6
13725         if test "$ac_cv_c_dll_init_fini" = "yes"
13726         then
13727           LDDLLFLAGS="$LDDLLFLAGS,-init,__wine_spec_init,-fini,__wine_spec_fini"
13728         fi
13729
13730         echo "$as_me:$LINENO: checking whether the linker accepts version scripts" >&5
13731 echo $ECHO_N "checking whether the linker accepts version scripts... $ECHO_C" >&6
13732 if test "${ac_cv_c_ld_version_scripts+set}" = set; then
13733   echo $ECHO_N "(cached) $ECHO_C" >&6
13734 else
13735   echo '{ global: *; };' >conftest.map
13736            ac_wine_try_cflags_saved=$CFLAGS
13737 CFLAGS="$CFLAGS -fPIC -shared -Wl,--version-script=conftest.map"
13738 cat >conftest.$ac_ext <<_ACEOF
13739 /* confdefs.h.  */
13740 _ACEOF
13741 cat confdefs.h >>conftest.$ac_ext
13742 cat >>conftest.$ac_ext <<_ACEOF
13743 /* end confdefs.h.  */
13744
13745 int
13746 main ()
13747 {
13748
13749   ;
13750   return 0;
13751 }
13752 _ACEOF
13753 rm -f conftest.$ac_objext conftest$ac_exeext
13754 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13755   (eval $ac_link) 2>conftest.er1
13756   ac_status=$?
13757   grep -v '^ *+' conftest.er1 >conftest.err
13758   rm -f conftest.er1
13759   cat conftest.err >&5
13760   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13761   (exit $ac_status); } &&
13762          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
13763   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13764   (eval $ac_try) 2>&5
13765   ac_status=$?
13766   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13767   (exit $ac_status); }; } &&
13768          { ac_try='test -s conftest$ac_exeext'
13769   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13770   (eval $ac_try) 2>&5
13771   ac_status=$?
13772   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13773   (exit $ac_status); }; }; then
13774   ac_cv_c_ld_version_scripts="yes"
13775 else
13776   echo "$as_me: failed program was:" >&5
13777 sed 's/^/| /' conftest.$ac_ext >&5
13778
13779 ac_cv_c_ld_version_scripts="no"
13780 fi
13781 rm -f conftest.err conftest.$ac_objext \
13782       conftest$ac_exeext conftest.$ac_ext
13783 CFLAGS=$ac_wine_try_cflags_saved
13784            rm -f conftest.map
13785 fi
13786 echo "$as_me:$LINENO: result: $ac_cv_c_ld_version_scripts" >&5
13787 echo "${ECHO_T}$ac_cv_c_ld_version_scripts" >&6
13788         if test "$ac_cv_c_ld_version_scripts" = "yes"
13789         then
13790           LDSHARED="$LDSHARED \$(VERSCRIPT:%=-Wl,--version-script=%)"
13791         fi
13792
13793         echo "$as_me:$LINENO: checking whether the linker accepts --export-dynamic" >&5
13794 echo $ECHO_N "checking whether the linker accepts --export-dynamic... $ECHO_C" >&6
13795 if test "${ac_cv_c_export_dynamic+set}" = set; then
13796   echo $ECHO_N "(cached) $ECHO_C" >&6
13797 else
13798   ac_wine_try_cflags_saved=$CFLAGS
13799 CFLAGS="$CFLAGS -fPIC -Wl,--export-dynamic"
13800 cat >conftest.$ac_ext <<_ACEOF
13801 /* confdefs.h.  */
13802 _ACEOF
13803 cat confdefs.h >>conftest.$ac_ext
13804 cat >>conftest.$ac_ext <<_ACEOF
13805 /* end confdefs.h.  */
13806
13807 int
13808 main ()
13809 {
13810
13811   ;
13812   return 0;
13813 }
13814 _ACEOF
13815 rm -f conftest.$ac_objext conftest$ac_exeext
13816 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13817   (eval $ac_link) 2>conftest.er1
13818   ac_status=$?
13819   grep -v '^ *+' conftest.er1 >conftest.err
13820   rm -f conftest.er1
13821   cat conftest.err >&5
13822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13823   (exit $ac_status); } &&
13824          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
13825   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13826   (eval $ac_try) 2>&5
13827   ac_status=$?
13828   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13829   (exit $ac_status); }; } &&
13830          { ac_try='test -s conftest$ac_exeext'
13831   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13832   (eval $ac_try) 2>&5
13833   ac_status=$?
13834   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13835   (exit $ac_status); }; }; then
13836   ac_cv_c_export_dynamic="yes"
13837 else
13838   echo "$as_me: failed program was:" >&5
13839 sed 's/^/| /' conftest.$ac_ext >&5
13840
13841 ac_cv_c_export_dynamic="no"
13842 fi
13843 rm -f conftest.err conftest.$ac_objext \
13844       conftest$ac_exeext conftest.$ac_ext
13845 CFLAGS=$ac_wine_try_cflags_saved
13846 fi
13847 echo "$as_me:$LINENO: result: $ac_cv_c_export_dynamic" >&5
13848 echo "${ECHO_T}$ac_cv_c_export_dynamic" >&6
13849         if test "$ac_cv_c_export_dynamic" = "yes"
13850         then
13851           LDEXECFLAGS="-Wl,--export-dynamic"
13852
13853         fi
13854
13855         case $host_cpu in
13856           *i[3456789]86*)
13857             echo "$as_me:$LINENO: checking whether we can relocate the executable to 0x77f00000" >&5
13858 echo $ECHO_N "checking whether we can relocate the executable to 0x77f00000... $ECHO_C" >&6
13859 if test "${ac_cv_ld_reloc_exec+set}" = set; then
13860   echo $ECHO_N "(cached) $ECHO_C" >&6
13861 else
13862   ac_wine_try_cflags_saved=$CFLAGS
13863 CFLAGS="$CFLAGS -Wl,--section-start,.interp=0x77f00400"
13864 cat >conftest.$ac_ext <<_ACEOF
13865 /* confdefs.h.  */
13866 _ACEOF
13867 cat confdefs.h >>conftest.$ac_ext
13868 cat >>conftest.$ac_ext <<_ACEOF
13869 /* end confdefs.h.  */
13870
13871 int
13872 main ()
13873 {
13874
13875   ;
13876   return 0;
13877 }
13878 _ACEOF
13879 rm -f conftest.$ac_objext conftest$ac_exeext
13880 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13881   (eval $ac_link) 2>conftest.er1
13882   ac_status=$?
13883   grep -v '^ *+' conftest.er1 >conftest.err
13884   rm -f conftest.er1
13885   cat conftest.err >&5
13886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13887   (exit $ac_status); } &&
13888          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
13889   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13890   (eval $ac_try) 2>&5
13891   ac_status=$?
13892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13893   (exit $ac_status); }; } &&
13894          { ac_try='test -s conftest$ac_exeext'
13895   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13896   (eval $ac_try) 2>&5
13897   ac_status=$?
13898   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13899   (exit $ac_status); }; }; then
13900   ac_cv_ld_reloc_exec="yes"
13901 else
13902   echo "$as_me: failed program was:" >&5
13903 sed 's/^/| /' conftest.$ac_ext >&5
13904
13905 ac_cv_ld_reloc_exec="no"
13906 fi
13907 rm -f conftest.err conftest.$ac_objext \
13908       conftest$ac_exeext conftest.$ac_ext
13909 CFLAGS=$ac_wine_try_cflags_saved
13910 fi
13911 echo "$as_me:$LINENO: result: $ac_cv_ld_reloc_exec" >&5
13912 echo "${ECHO_T}$ac_cv_ld_reloc_exec" >&6
13913             if test "$ac_cv_ld_reloc_exec" = "yes"
13914             then
13915               LDEXECFLAGS="$LDEXECFLAGS -Wl,--section-start,.interp=0x77f00400"
13916             fi
13917             ;;
13918         esac
13919
13920       else
13921         echo "$as_me:$LINENO: checking whether we can build a UnixWare (Solaris) dll" >&5
13922 echo $ECHO_N "checking whether we can build a UnixWare (Solaris) dll... $ECHO_C" >&6
13923 if test "${ac_cv_c_dll_unixware+set}" = set; then
13924   echo $ECHO_N "(cached) $ECHO_C" >&6
13925 else
13926   ac_wine_try_cflags_saved=$CFLAGS
13927 CFLAGS="$CFLAGS -fPIC -Wl,-G,-h,conftest.so.1.0,-B,symbolic"
13928 cat >conftest.$ac_ext <<_ACEOF
13929 void myfunc() {}
13930 _ACEOF
13931 rm -f conftest.$ac_objext conftest$ac_exeext
13932 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13933   (eval $ac_link) 2>conftest.er1
13934   ac_status=$?
13935   grep -v '^ *+' conftest.er1 >conftest.err
13936   rm -f conftest.er1
13937   cat conftest.err >&5
13938   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13939   (exit $ac_status); } &&
13940          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
13941   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13942   (eval $ac_try) 2>&5
13943   ac_status=$?
13944   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13945   (exit $ac_status); }; } &&
13946          { ac_try='test -s conftest$ac_exeext'
13947   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13948   (eval $ac_try) 2>&5
13949   ac_status=$?
13950   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13951   (exit $ac_status); }; }; then
13952   ac_cv_c_dll_unixware="yes"
13953 else
13954   echo "$as_me: failed program was:" >&5
13955 sed 's/^/| /' conftest.$ac_ext >&5
13956
13957 ac_cv_c_dll_unixware="no"
13958 fi
13959 rm -f conftest.err conftest.$ac_objext \
13960       conftest$ac_exeext conftest.$ac_ext
13961 CFLAGS=$ac_wine_try_cflags_saved
13962 fi
13963 echo "$as_me:$LINENO: result: $ac_cv_c_dll_unixware" >&5
13964 echo "${ECHO_T}$ac_cv_c_dll_unixware" >&6
13965         if test "$ac_cv_c_dll_unixware" = "yes"
13966         then
13967           LDSHARED="\$(CC) -Wl,-G \$(SONAME:%=-Wl,-h,%)"
13968           LDDLLFLAGS="-Wl,-G,-B,symbolic"
13969
13970         else
13971           echo "$as_me:$LINENO: checking whether we can build a Mach-O (Mac OS X/Darwin) dll" >&5
13972 echo $ECHO_N "checking whether we can build a Mach-O (Mac OS X/Darwin) dll... $ECHO_C" >&6
13973 if test "${ac_cv_c_dll_macho+set}" = set; then
13974   echo $ECHO_N "(cached) $ECHO_C" >&6
13975 else
13976   ac_wine_try_cflags_saved=$CFLAGS
13977 CFLAGS="$CFLAGS -bundle"
13978 cat >conftest.$ac_ext <<_ACEOF
13979 void myfunc() {}
13980 _ACEOF
13981 rm -f conftest.$ac_objext conftest$ac_exeext
13982 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13983   (eval $ac_link) 2>conftest.er1
13984   ac_status=$?
13985   grep -v '^ *+' conftest.er1 >conftest.err
13986   rm -f conftest.er1
13987   cat conftest.err >&5
13988   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13989   (exit $ac_status); } &&
13990          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
13991   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13992   (eval $ac_try) 2>&5
13993   ac_status=$?
13994   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13995   (exit $ac_status); }; } &&
13996          { ac_try='test -s conftest$ac_exeext'
13997   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13998   (eval $ac_try) 2>&5
13999   ac_status=$?
14000   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14001   (exit $ac_status); }; }; then
14002   ac_cv_c_dll_macho="yes"
14003 else
14004   echo "$as_me: failed program was:" >&5
14005 sed 's/^/| /' conftest.$ac_ext >&5
14006
14007 ac_cv_c_dll_macho="no"
14008 fi
14009 rm -f conftest.err conftest.$ac_objext \
14010       conftest$ac_exeext conftest.$ac_ext
14011 CFLAGS=$ac_wine_try_cflags_saved
14012 fi
14013 echo "$as_me:$LINENO: result: $ac_cv_c_dll_macho" >&5
14014 echo "${ECHO_T}$ac_cv_c_dll_macho" >&6
14015           if test "$ac_cv_c_dll_macho" = "yes"
14016           then
14017             LIBEXT="dylib"
14018             LDDLLFLAGS="-bundle -flat_namespace -undefined suppress -read_only_relocs warning"
14019             LDSHARED="\$(CC) -dynamiclib"
14020             CFLAGS="$CFLAGS -ffixed-r13 -no-cpp-precomp"
14021             STRIP="$STRIP -u -r"
14022                         LDEXECFLAGS="-seg1addr 0x120000"
14023
14024                         LDLIBWINEFLAGS="-seg1addr 0x140000"
14025
14026                     COREFOUNDATIONLIB="-framework CoreFoundation"
14027
14028             IOKITLIB="-framework IOKit"
14029
14030                     IOKITLIB="$IOKITLIB $COREFOUNDATIONLIB"
14031           else
14032             echo "$as_me:$LINENO: checking whether we can build an HP-UX dll" >&5
14033 echo $ECHO_N "checking whether we can build an HP-UX dll... $ECHO_C" >&6
14034 if test "${ac_cv_c_dll_hpux+set}" = set; then
14035   echo $ECHO_N "(cached) $ECHO_C" >&6
14036 else
14037   ac_wine_try_cflags_saved=$CFLAGS
14038 CFLAGS="$CFLAGS -shared"
14039 cat >conftest.$ac_ext <<_ACEOF
14040 void myfunc() {}
14041 _ACEOF
14042 rm -f conftest.$ac_objext conftest$ac_exeext
14043 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14044   (eval $ac_link) 2>conftest.er1
14045   ac_status=$?
14046   grep -v '^ *+' conftest.er1 >conftest.err
14047   rm -f conftest.er1
14048   cat conftest.err >&5
14049   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14050   (exit $ac_status); } &&
14051          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
14052   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14053   (eval $ac_try) 2>&5
14054   ac_status=$?
14055   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14056   (exit $ac_status); }; } &&
14057          { ac_try='test -s conftest$ac_exeext'
14058   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14059   (eval $ac_try) 2>&5
14060   ac_status=$?
14061   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14062   (exit $ac_status); }; }; then
14063   ac_cv_c_dll_hpux="yes"
14064 else
14065   echo "$as_me: failed program was:" >&5
14066 sed 's/^/| /' conftest.$ac_ext >&5
14067
14068 ac_cv_c_dll_hpux="no"
14069 fi
14070 rm -f conftest.err conftest.$ac_objext \
14071       conftest$ac_exeext conftest.$ac_ext
14072 CFLAGS=$ac_wine_try_cflags_saved
14073 fi
14074 echo "$as_me:$LINENO: result: $ac_cv_c_dll_hpux" >&5
14075 echo "${ECHO_T}$ac_cv_c_dll_hpux" >&6
14076             if test "$ac_cv_c_dll_hpux" = "yes"
14077             then
14078               LIBEXT="sl"
14079               DLLEXT=".sl"
14080               LDDLLFLAGS="-shared -fPIC"
14081               LDSHARED="\$(CC) -shared"
14082             fi
14083           fi
14084         fi
14085       fi
14086     fi
14087
14088         CROSSTEST=""
14089
14090     if test "$cross_compiling" = "no"
14091     then
14092       for ac_prog in i586-mingw32msvc-gcc i386-mingw32msvc-gcc i386-mingw32-gcc mingw-gcc
14093 do
14094   # Extract the first word of "$ac_prog", so it can be a program name with args.
14095 set dummy $ac_prog; ac_word=$2
14096 echo "$as_me:$LINENO: checking for $ac_word" >&5
14097 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14098 if test "${ac_cv_prog_CROSSCC+set}" = set; then
14099   echo $ECHO_N "(cached) $ECHO_C" >&6
14100 else
14101   if test -n "$CROSSCC"; then
14102   ac_cv_prog_CROSSCC="$CROSSCC" # Let the user override the test.
14103 else
14104 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14105 for as_dir in $PATH
14106 do
14107   IFS=$as_save_IFS
14108   test -z "$as_dir" && as_dir=.
14109   for ac_exec_ext in '' $ac_executable_extensions; do
14110   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14111     ac_cv_prog_CROSSCC="$ac_prog"
14112     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14113     break 2
14114   fi
14115 done
14116 done
14117
14118 fi
14119 fi
14120 CROSSCC=$ac_cv_prog_CROSSCC
14121 if test -n "$CROSSCC"; then
14122   echo "$as_me:$LINENO: result: $CROSSCC" >&5
14123 echo "${ECHO_T}$CROSSCC" >&6
14124 else
14125   echo "$as_me:$LINENO: result: no" >&5
14126 echo "${ECHO_T}no" >&6
14127 fi
14128
14129   test -n "$CROSSCC" && break
14130 done
14131 test -n "$CROSSCC" || CROSSCC="false"
14132
14133       for ac_prog in i586-mingw32msvc-dlltool i386-mingw32msvc-dlltool i386-mingw32-dlltool mingw-dlltool
14134 do
14135   # Extract the first word of "$ac_prog", so it can be a program name with args.
14136 set dummy $ac_prog; ac_word=$2
14137 echo "$as_me:$LINENO: checking for $ac_word" >&5
14138 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14139 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
14140   echo $ECHO_N "(cached) $ECHO_C" >&6
14141 else
14142   if test -n "$DLLTOOL"; then
14143   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
14144 else
14145 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14146 for as_dir in $PATH
14147 do
14148   IFS=$as_save_IFS
14149   test -z "$as_dir" && as_dir=.
14150   for ac_exec_ext in '' $ac_executable_extensions; do
14151   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14152     ac_cv_prog_DLLTOOL="$ac_prog"
14153     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14154     break 2
14155   fi
14156 done
14157 done
14158
14159 fi
14160 fi
14161 DLLTOOL=$ac_cv_prog_DLLTOOL
14162 if test -n "$DLLTOOL"; then
14163   echo "$as_me:$LINENO: result: $DLLTOOL" >&5
14164 echo "${ECHO_T}$DLLTOOL" >&6
14165 else
14166   echo "$as_me:$LINENO: result: no" >&5
14167 echo "${ECHO_T}no" >&6
14168 fi
14169
14170   test -n "$DLLTOOL" && break
14171 done
14172 test -n "$DLLTOOL" || DLLTOOL="false"
14173
14174       for ac_prog in i586-mingw32msvc-windres i386-mingw32msvc-windres i386-mingw32-windres mingw-windres
14175 do
14176   # Extract the first word of "$ac_prog", so it can be a program name with args.
14177 set dummy $ac_prog; ac_word=$2
14178 echo "$as_me:$LINENO: checking for $ac_word" >&5
14179 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14180 if test "${ac_cv_prog_CROSSWINDRES+set}" = set; then
14181   echo $ECHO_N "(cached) $ECHO_C" >&6
14182 else
14183   if test -n "$CROSSWINDRES"; then
14184   ac_cv_prog_CROSSWINDRES="$CROSSWINDRES" # Let the user override the test.
14185 else
14186 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14187 for as_dir in $PATH
14188 do
14189   IFS=$as_save_IFS
14190   test -z "$as_dir" && as_dir=.
14191   for ac_exec_ext in '' $ac_executable_extensions; do
14192   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14193     ac_cv_prog_CROSSWINDRES="$ac_prog"
14194     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14195     break 2
14196   fi
14197 done
14198 done
14199
14200 fi
14201 fi
14202 CROSSWINDRES=$ac_cv_prog_CROSSWINDRES
14203 if test -n "$CROSSWINDRES"; then
14204   echo "$as_me:$LINENO: result: $CROSSWINDRES" >&5
14205 echo "${ECHO_T}$CROSSWINDRES" >&6
14206 else
14207   echo "$as_me:$LINENO: result: no" >&5
14208 echo "${ECHO_T}no" >&6
14209 fi
14210
14211   test -n "$CROSSWINDRES" && break
14212 done
14213 test -n "$CROSSWINDRES" || CROSSWINDRES="false"
14214
14215       if test "$CROSSCC" != "false"; then CROSSTEST="\$(CROSSTEST)"; fi
14216     fi
14217     ;;
14218 esac
14219
14220 if test "$LIBEXT" = "a"; then
14221   { { echo "$as_me:$LINENO: error: could not find a way to build shared libraries.
14222 It is currently not possible to build Wine without shared library
14223 (.so) support to allow transparent switch between .so and .dll files.
14224 If you are using Linux, you will need a newer binutils.
14225 " >&5
14226 echo "$as_me: error: could not find a way to build shared libraries.
14227 It is currently not possible to build Wine without shared library
14228 (.so) support to allow transparent switch between .so and .dll files.
14229 If you are using Linux, you will need a newer binutils.
14230 " >&2;}
14231    { (exit 1); exit 1; }; }
14232 fi
14233
14234 case $build_os in
14235   cygwin*|mingw32*)
14236     LDPATH="PATH=\"\$(TOOLSDIR)/libs/unicode:\$\$PATH\""
14237  ;;
14238   darwin*|macosx*)
14239     LDPATH="DYLD_LIBRARY_PATH=\"\$(TOOLSDIR)/libs/unicode:\$\$DYLD_LIBRARY_PATH\""
14240  ;;
14241   *)
14242     LDPATH="LD_LIBRARY_PATH=\"\$(TOOLSDIR)/libs/unicode:\$\$LD_LIBRARY_PATH\""
14243  ;;
14244 esac
14245
14246 case $host_os in
14247   mingw32*)
14248     CRTLIBS="-lmsvcrt"
14249
14250     SOCKETLIBS="-lws2_32"
14251
14252     ;;
14253 esac
14254
14255 case $host_os in
14256   linux*)
14257     case $host_cpu in
14258       *i[3456789]86*) WINE_BINARIES="wine-glibc wine-kthread wine-pthread wine-preloader"
14259  ;;
14260       *) WINE_BINARIES="wine-glibc wine-kthread wine-pthread"
14261  ;;
14262     esac
14263     MAIN_BINARY="wine-glibc"
14264
14265     ;;
14266   darwin*)
14267     WINE_BINARIES="wine-pthread"
14268
14269     MAIN_BINARY="wine-pthread"
14270
14271     ;;
14272   *)
14273     WINE_BINARIES="wine-kthread"
14274
14275     MAIN_BINARY="wine-kthread"
14276
14277     ;;
14278 esac
14279
14280
14281 if test "$LIBEXT" = "so" -o "$LIBEXT" = "dylib"
14282 then
14283   # Extract the first word of "ldd", so it can be a program name with args.
14284 set dummy ldd; ac_word=$2
14285 echo "$as_me:$LINENO: checking for $ac_word" >&5
14286 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14287 if test "${ac_cv_path_LDD+set}" = set; then
14288   echo $ECHO_N "(cached) $ECHO_C" >&6
14289 else
14290   case $LDD in
14291   [\\/]* | ?:[\\/]*)
14292   ac_cv_path_LDD="$LDD" # Let the user override the test with a path.
14293   ;;
14294   *)
14295   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14296 as_dummy="/sbin:/usr/sbin:$PATH"
14297 for as_dir in $as_dummy
14298 do
14299   IFS=$as_save_IFS
14300   test -z "$as_dir" && as_dir=.
14301   for ac_exec_ext in '' $ac_executable_extensions; do
14302   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14303     ac_cv_path_LDD="$as_dir/$ac_word$ac_exec_ext"
14304     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14305     break 2
14306   fi
14307 done
14308 done
14309
14310   test -z "$ac_cv_path_LDD" && ac_cv_path_LDD="true"
14311   ;;
14312 esac
14313 fi
14314 LDD=$ac_cv_path_LDD
14315
14316 if test -n "$LDD"; then
14317   echo "$as_me:$LINENO: result: $LDD" >&5
14318 echo "${ECHO_T}$LDD" >&6
14319 else
14320   echo "$as_me:$LINENO: result: no" >&5
14321 echo "${ECHO_T}no" >&6
14322 fi
14323
14324
14325 echo "$as_me:$LINENO: checking for -lX11 soname" >&5
14326 echo $ECHO_N "checking for -lX11 soname... $ECHO_C" >&6
14327 if test "${ac_cv_lib_soname_X11+set}" = set; then
14328   echo $ECHO_N "(cached) $ECHO_C" >&6
14329 else
14330   ac_get_soname_save_LIBS=$LIBS
14331 LIBS="-lX11 $X_LIBS $X_EXTRA_LIBS $LIBS"
14332   cat >conftest.$ac_ext <<_ACEOF
14333 /* confdefs.h.  */
14334 _ACEOF
14335 cat confdefs.h >>conftest.$ac_ext
14336 cat >>conftest.$ac_ext <<_ACEOF
14337 /* end confdefs.h.  */
14338
14339 /* Override any gcc2 internal prototype to avoid an error.  */
14340 #ifdef __cplusplus
14341 extern "C"
14342 #endif
14343 /* We use char because int might match the return type of a gcc2
14344    builtin and then its argument prototype would still apply.  */
14345 char XCreateWindow ();
14346 int
14347 main ()
14348 {
14349 XCreateWindow ();
14350   ;
14351   return 0;
14352 }
14353 _ACEOF
14354 rm -f conftest.$ac_objext conftest$ac_exeext
14355 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14356   (eval $ac_link) 2>conftest.er1
14357   ac_status=$?
14358   grep -v '^ *+' conftest.er1 >conftest.err
14359   rm -f conftest.er1
14360   cat conftest.err >&5
14361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14362   (exit $ac_status); } &&
14363          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
14364   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14365   (eval $ac_try) 2>&5
14366   ac_status=$?
14367   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14368   (exit $ac_status); }; } &&
14369          { ac_try='test -s conftest$ac_exeext'
14370   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14371   (eval $ac_try) 2>&5
14372   ac_status=$?
14373   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14374   (exit $ac_status); }; }; then
14375   ac_cv_lib_soname_X11=`$ac_cv_path_LDD conftest$ac_exeext | grep libX11\\.$LIBEXT | sed "s/^.*\(libX11\.$LIBEXT[^       ]*\).*$/\1/"`
14376   if test "x$ac_cv_lib_soname_X11" = "x"
14377   then
14378      ac_cv_lib_soname_X11="libX11.$LIBEXT"
14379   fi
14380 else
14381   echo "$as_me: failed program was:" >&5
14382 sed 's/^/| /' conftest.$ac_ext >&5
14383
14384 ac_cv_lib_soname_X11="libX11.$LIBEXT"
14385 fi
14386 rm -f conftest.err conftest.$ac_objext \
14387       conftest$ac_exeext conftest.$ac_ext
14388   LIBS=$ac_get_soname_save_LIBS
14389 fi
14390 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_X11" >&5
14391 echo "${ECHO_T}$ac_cv_lib_soname_X11" >&6
14392 if test "x$ac_cv_lib_soname_X11" != xNONE
14393 then
14394 cat >>confdefs.h <<_ACEOF
14395 #define SONAME_LIBX11 "$ac_cv_lib_soname_X11"
14396 _ACEOF
14397 fi
14398
14399 echo "$as_me:$LINENO: checking for -lXext soname" >&5
14400 echo $ECHO_N "checking for -lXext soname... $ECHO_C" >&6
14401 if test "${ac_cv_lib_soname_Xext+set}" = set; then
14402   echo $ECHO_N "(cached) $ECHO_C" >&6
14403 else
14404   ac_get_soname_save_LIBS=$LIBS
14405 LIBS="-lXext $X_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
14406   cat >conftest.$ac_ext <<_ACEOF
14407 /* confdefs.h.  */
14408 _ACEOF
14409 cat confdefs.h >>conftest.$ac_ext
14410 cat >>conftest.$ac_ext <<_ACEOF
14411 /* end confdefs.h.  */
14412
14413 /* Override any gcc2 internal prototype to avoid an error.  */
14414 #ifdef __cplusplus
14415 extern "C"
14416 #endif
14417 /* We use char because int might match the return type of a gcc2
14418    builtin and then its argument prototype would still apply.  */
14419 char XextCreateExtension ();
14420 int
14421 main ()
14422 {
14423 XextCreateExtension ();
14424   ;
14425   return 0;
14426 }
14427 _ACEOF
14428 rm -f conftest.$ac_objext conftest$ac_exeext
14429 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14430   (eval $ac_link) 2>conftest.er1
14431   ac_status=$?
14432   grep -v '^ *+' conftest.er1 >conftest.err
14433   rm -f conftest.er1
14434   cat conftest.err >&5
14435   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14436   (exit $ac_status); } &&
14437          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
14438   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14439   (eval $ac_try) 2>&5
14440   ac_status=$?
14441   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14442   (exit $ac_status); }; } &&
14443          { ac_try='test -s conftest$ac_exeext'
14444   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14445   (eval $ac_try) 2>&5
14446   ac_status=$?
14447   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14448   (exit $ac_status); }; }; then
14449   ac_cv_lib_soname_Xext=`$ac_cv_path_LDD conftest$ac_exeext | grep libXext\\.$LIBEXT | sed "s/^.*\(libXext\.$LIBEXT[^    ]*\).*$/\1/"`
14450   if test "x$ac_cv_lib_soname_Xext" = "x"
14451   then
14452      ac_cv_lib_soname_Xext="libXext.$LIBEXT"
14453   fi
14454 else
14455   echo "$as_me: failed program was:" >&5
14456 sed 's/^/| /' conftest.$ac_ext >&5
14457
14458 ac_cv_lib_soname_Xext="libXext.$LIBEXT"
14459 fi
14460 rm -f conftest.err conftest.$ac_objext \
14461       conftest$ac_exeext conftest.$ac_ext
14462   LIBS=$ac_get_soname_save_LIBS
14463 fi
14464 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_Xext" >&5
14465 echo "${ECHO_T}$ac_cv_lib_soname_Xext" >&6
14466 if test "x$ac_cv_lib_soname_Xext" != xNONE
14467 then
14468 cat >>confdefs.h <<_ACEOF
14469 #define SONAME_LIBXEXT "$ac_cv_lib_soname_Xext"
14470 _ACEOF
14471 fi
14472
14473 echo "$as_me:$LINENO: checking for -lXi soname" >&5
14474 echo $ECHO_N "checking for -lXi soname... $ECHO_C" >&6
14475 if test "${ac_cv_lib_soname_Xi+set}" = set; then
14476   echo $ECHO_N "(cached) $ECHO_C" >&6
14477 else
14478   ac_get_soname_save_LIBS=$LIBS
14479 LIBS="-lXi $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
14480   cat >conftest.$ac_ext <<_ACEOF
14481 /* confdefs.h.  */
14482 _ACEOF
14483 cat confdefs.h >>conftest.$ac_ext
14484 cat >>conftest.$ac_ext <<_ACEOF
14485 /* end confdefs.h.  */
14486
14487 /* Override any gcc2 internal prototype to avoid an error.  */
14488 #ifdef __cplusplus
14489 extern "C"
14490 #endif
14491 /* We use char because int might match the return type of a gcc2
14492    builtin and then its argument prototype would still apply.  */
14493 char XOpenDevice ();
14494 int
14495 main ()
14496 {
14497 XOpenDevice ();
14498   ;
14499   return 0;
14500 }
14501 _ACEOF
14502 rm -f conftest.$ac_objext conftest$ac_exeext
14503 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14504   (eval $ac_link) 2>conftest.er1
14505   ac_status=$?
14506   grep -v '^ *+' conftest.er1 >conftest.err
14507   rm -f conftest.er1
14508   cat conftest.err >&5
14509   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14510   (exit $ac_status); } &&
14511          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
14512   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14513   (eval $ac_try) 2>&5
14514   ac_status=$?
14515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14516   (exit $ac_status); }; } &&
14517          { ac_try='test -s conftest$ac_exeext'
14518   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14519   (eval $ac_try) 2>&5
14520   ac_status=$?
14521   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14522   (exit $ac_status); }; }; then
14523   ac_cv_lib_soname_Xi=`$ac_cv_path_LDD conftest$ac_exeext | grep libXi\\.$LIBEXT | sed "s/^.*\(libXi\.$LIBEXT[^  ]*\).*$/\1/"`
14524   if test "x$ac_cv_lib_soname_Xi" = "x"
14525   then
14526      ac_cv_lib_soname_Xi="libXi.$LIBEXT"
14527   fi
14528 else
14529   echo "$as_me: failed program was:" >&5
14530 sed 's/^/| /' conftest.$ac_ext >&5
14531
14532 ac_cv_lib_soname_Xi="libXi.$LIBEXT"
14533 fi
14534 rm -f conftest.err conftest.$ac_objext \
14535       conftest$ac_exeext conftest.$ac_ext
14536   LIBS=$ac_get_soname_save_LIBS
14537 fi
14538 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_Xi" >&5
14539 echo "${ECHO_T}$ac_cv_lib_soname_Xi" >&6
14540 if test "x$ac_cv_lib_soname_Xi" != xNONE
14541 then
14542 cat >>confdefs.h <<_ACEOF
14543 #define SONAME_LIBXI "$ac_cv_lib_soname_Xi"
14544 _ACEOF
14545 fi
14546
14547 echo "$as_me:$LINENO: checking for -lXrender soname" >&5
14548 echo $ECHO_N "checking for -lXrender soname... $ECHO_C" >&6
14549 if test "${ac_cv_lib_soname_Xrender+set}" = set; then
14550   echo $ECHO_N "(cached) $ECHO_C" >&6
14551 else
14552   ac_get_soname_save_LIBS=$LIBS
14553 LIBS="-lXrender $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
14554   cat >conftest.$ac_ext <<_ACEOF
14555 /* confdefs.h.  */
14556 _ACEOF
14557 cat confdefs.h >>conftest.$ac_ext
14558 cat >>conftest.$ac_ext <<_ACEOF
14559 /* end confdefs.h.  */
14560
14561 /* Override any gcc2 internal prototype to avoid an error.  */
14562 #ifdef __cplusplus
14563 extern "C"
14564 #endif
14565 /* We use char because int might match the return type of a gcc2
14566    builtin and then its argument prototype would still apply.  */
14567 char XRenderQueryExtension ();
14568 int
14569 main ()
14570 {
14571 XRenderQueryExtension ();
14572   ;
14573   return 0;
14574 }
14575 _ACEOF
14576 rm -f conftest.$ac_objext conftest$ac_exeext
14577 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14578   (eval $ac_link) 2>conftest.er1
14579   ac_status=$?
14580   grep -v '^ *+' conftest.er1 >conftest.err
14581   rm -f conftest.er1
14582   cat conftest.err >&5
14583   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14584   (exit $ac_status); } &&
14585          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
14586   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14587   (eval $ac_try) 2>&5
14588   ac_status=$?
14589   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14590   (exit $ac_status); }; } &&
14591          { ac_try='test -s conftest$ac_exeext'
14592   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14593   (eval $ac_try) 2>&5
14594   ac_status=$?
14595   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14596   (exit $ac_status); }; }; then
14597   ac_cv_lib_soname_Xrender=`$ac_cv_path_LDD conftest$ac_exeext | grep libXrender\\.$LIBEXT | sed "s/^.*\(libXrender\.$LIBEXT[^   ]*\).*$/\1/"`
14598   if test "x$ac_cv_lib_soname_Xrender" = "x"
14599   then
14600      ac_cv_lib_soname_Xrender="libXrender.$LIBEXT"
14601   fi
14602 else
14603   echo "$as_me: failed program was:" >&5
14604 sed 's/^/| /' conftest.$ac_ext >&5
14605
14606 ac_cv_lib_soname_Xrender="libXrender.$LIBEXT"
14607 fi
14608 rm -f conftest.err conftest.$ac_objext \
14609       conftest$ac_exeext conftest.$ac_ext
14610   LIBS=$ac_get_soname_save_LIBS
14611 fi
14612 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_Xrender" >&5
14613 echo "${ECHO_T}$ac_cv_lib_soname_Xrender" >&6
14614 if test "x$ac_cv_lib_soname_Xrender" != xNONE
14615 then
14616 cat >>confdefs.h <<_ACEOF
14617 #define SONAME_LIBXRENDER "$ac_cv_lib_soname_Xrender"
14618 _ACEOF
14619 fi
14620
14621 echo "$as_me:$LINENO: checking for -lXrandr soname" >&5
14622 echo $ECHO_N "checking for -lXrandr soname... $ECHO_C" >&6
14623 if test "${ac_cv_lib_soname_Xrandr+set}" = set; then
14624   echo $ECHO_N "(cached) $ECHO_C" >&6
14625 else
14626   ac_get_soname_save_LIBS=$LIBS
14627 LIBS="-lXrandr $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
14628   cat >conftest.$ac_ext <<_ACEOF
14629 /* confdefs.h.  */
14630 _ACEOF
14631 cat confdefs.h >>conftest.$ac_ext
14632 cat >>conftest.$ac_ext <<_ACEOF
14633 /* end confdefs.h.  */
14634
14635 /* Override any gcc2 internal prototype to avoid an error.  */
14636 #ifdef __cplusplus
14637 extern "C"
14638 #endif
14639 /* We use char because int might match the return type of a gcc2
14640    builtin and then its argument prototype would still apply.  */
14641 char XRRQueryExtension ();
14642 int
14643 main ()
14644 {
14645 XRRQueryExtension ();
14646   ;
14647   return 0;
14648 }
14649 _ACEOF
14650 rm -f conftest.$ac_objext conftest$ac_exeext
14651 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14652   (eval $ac_link) 2>conftest.er1
14653   ac_status=$?
14654   grep -v '^ *+' conftest.er1 >conftest.err
14655   rm -f conftest.er1
14656   cat conftest.err >&5
14657   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14658   (exit $ac_status); } &&
14659          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
14660   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14661   (eval $ac_try) 2>&5
14662   ac_status=$?
14663   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14664   (exit $ac_status); }; } &&
14665          { ac_try='test -s conftest$ac_exeext'
14666   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14667   (eval $ac_try) 2>&5
14668   ac_status=$?
14669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14670   (exit $ac_status); }; }; then
14671   ac_cv_lib_soname_Xrandr=`$ac_cv_path_LDD conftest$ac_exeext | grep libXrandr\\.$LIBEXT | sed "s/^.*\(libXrandr\.$LIBEXT[^      ]*\).*$/\1/"`
14672   if test "x$ac_cv_lib_soname_Xrandr" = "x"
14673   then
14674      ac_cv_lib_soname_Xrandr="libXrandr.$LIBEXT"
14675   fi
14676 else
14677   echo "$as_me: failed program was:" >&5
14678 sed 's/^/| /' conftest.$ac_ext >&5
14679
14680 ac_cv_lib_soname_Xrandr="libXrandr.$LIBEXT"
14681 fi
14682 rm -f conftest.err conftest.$ac_objext \
14683       conftest$ac_exeext conftest.$ac_ext
14684   LIBS=$ac_get_soname_save_LIBS
14685 fi
14686 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_Xrandr" >&5
14687 echo "${ECHO_T}$ac_cv_lib_soname_Xrandr" >&6
14688 if test "x$ac_cv_lib_soname_Xrandr" != xNONE
14689 then
14690 cat >>confdefs.h <<_ACEOF
14691 #define SONAME_LIBXRANDR "$ac_cv_lib_soname_Xrandr"
14692 _ACEOF
14693 fi
14694
14695 echo "$as_me:$LINENO: checking for -lfreetype soname" >&5
14696 echo $ECHO_N "checking for -lfreetype soname... $ECHO_C" >&6
14697 if test "${ac_cv_lib_soname_freetype+set}" = set; then
14698   echo $ECHO_N "(cached) $ECHO_C" >&6
14699 else
14700   ac_get_soname_save_LIBS=$LIBS
14701 LIBS="-lfreetype $X_LIBS $LIBS"
14702   cat >conftest.$ac_ext <<_ACEOF
14703 /* confdefs.h.  */
14704 _ACEOF
14705 cat confdefs.h >>conftest.$ac_ext
14706 cat >>conftest.$ac_ext <<_ACEOF
14707 /* end confdefs.h.  */
14708
14709 /* Override any gcc2 internal prototype to avoid an error.  */
14710 #ifdef __cplusplus
14711 extern "C"
14712 #endif
14713 /* We use char because int might match the return type of a gcc2
14714    builtin and then its argument prototype would still apply.  */
14715 char FT_Init_FreeType ();
14716 int
14717 main ()
14718 {
14719 FT_Init_FreeType ();
14720   ;
14721   return 0;
14722 }
14723 _ACEOF
14724 rm -f conftest.$ac_objext conftest$ac_exeext
14725 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14726   (eval $ac_link) 2>conftest.er1
14727   ac_status=$?
14728   grep -v '^ *+' conftest.er1 >conftest.err
14729   rm -f conftest.er1
14730   cat conftest.err >&5
14731   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14732   (exit $ac_status); } &&
14733          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
14734   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14735   (eval $ac_try) 2>&5
14736   ac_status=$?
14737   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14738   (exit $ac_status); }; } &&
14739          { ac_try='test -s conftest$ac_exeext'
14740   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14741   (eval $ac_try) 2>&5
14742   ac_status=$?
14743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14744   (exit $ac_status); }; }; then
14745   ac_cv_lib_soname_freetype=`$ac_cv_path_LDD conftest$ac_exeext | grep libfreetype\\.$LIBEXT | sed "s/^.*\(libfreetype\.$LIBEXT[^        ]*\).*$/\1/"`
14746   if test "x$ac_cv_lib_soname_freetype" = "x"
14747   then
14748      ac_cv_lib_soname_freetype="libfreetype.$LIBEXT"
14749   fi
14750 else
14751   echo "$as_me: failed program was:" >&5
14752 sed 's/^/| /' conftest.$ac_ext >&5
14753
14754 ac_cv_lib_soname_freetype="libfreetype.$LIBEXT"
14755 fi
14756 rm -f conftest.err conftest.$ac_objext \
14757       conftest$ac_exeext conftest.$ac_ext
14758   LIBS=$ac_get_soname_save_LIBS
14759 fi
14760 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_freetype" >&5
14761 echo "${ECHO_T}$ac_cv_lib_soname_freetype" >&6
14762 if test "x$ac_cv_lib_soname_freetype" != xNONE
14763 then
14764 cat >>confdefs.h <<_ACEOF
14765 #define SONAME_LIBFREETYPE "$ac_cv_lib_soname_freetype"
14766 _ACEOF
14767 fi
14768
14769 echo "$as_me:$LINENO: checking for -lGL soname" >&5
14770 echo $ECHO_N "checking for -lGL soname... $ECHO_C" >&6
14771 if test "${ac_cv_lib_soname_GL+set}" = set; then
14772   echo $ECHO_N "(cached) $ECHO_C" >&6
14773 else
14774   ac_get_soname_save_LIBS=$LIBS
14775 LIBS="-lGL $X_LIBS $X_EXTRA_LIBS $LIBS"
14776   cat >conftest.$ac_ext <<_ACEOF
14777 /* confdefs.h.  */
14778 _ACEOF
14779 cat confdefs.h >>conftest.$ac_ext
14780 cat >>conftest.$ac_ext <<_ACEOF
14781 /* end confdefs.h.  */
14782
14783 /* Override any gcc2 internal prototype to avoid an error.  */
14784 #ifdef __cplusplus
14785 extern "C"
14786 #endif
14787 /* We use char because int might match the return type of a gcc2
14788    builtin and then its argument prototype would still apply.  */
14789 char glXQueryExtension ();
14790 int
14791 main ()
14792 {
14793 glXQueryExtension ();
14794   ;
14795   return 0;
14796 }
14797 _ACEOF
14798 rm -f conftest.$ac_objext conftest$ac_exeext
14799 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14800   (eval $ac_link) 2>conftest.er1
14801   ac_status=$?
14802   grep -v '^ *+' conftest.er1 >conftest.err
14803   rm -f conftest.er1
14804   cat conftest.err >&5
14805   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14806   (exit $ac_status); } &&
14807          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
14808   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14809   (eval $ac_try) 2>&5
14810   ac_status=$?
14811   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14812   (exit $ac_status); }; } &&
14813          { ac_try='test -s conftest$ac_exeext'
14814   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14815   (eval $ac_try) 2>&5
14816   ac_status=$?
14817   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14818   (exit $ac_status); }; }; then
14819   ac_cv_lib_soname_GL=`$ac_cv_path_LDD conftest$ac_exeext | grep libGL\\.$LIBEXT | sed "s/^.*\(libGL\.$LIBEXT[^  ]*\).*$/\1/"`
14820   if test "x$ac_cv_lib_soname_GL" = "x"
14821   then
14822      ac_cv_lib_soname_GL="libGL.$LIBEXT"
14823   fi
14824 else
14825   echo "$as_me: failed program was:" >&5
14826 sed 's/^/| /' conftest.$ac_ext >&5
14827
14828 ac_cv_lib_soname_GL="libGL.$LIBEXT"
14829 fi
14830 rm -f conftest.err conftest.$ac_objext \
14831       conftest$ac_exeext conftest.$ac_ext
14832   LIBS=$ac_get_soname_save_LIBS
14833 fi
14834 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_GL" >&5
14835 echo "${ECHO_T}$ac_cv_lib_soname_GL" >&6
14836 if test "x$ac_cv_lib_soname_GL" != xNONE
14837 then
14838 cat >>confdefs.h <<_ACEOF
14839 #define SONAME_LIBGL "$ac_cv_lib_soname_GL"
14840 _ACEOF
14841 fi
14842
14843 echo "$as_me:$LINENO: checking for -ltxc_dxtn soname" >&5
14844 echo $ECHO_N "checking for -ltxc_dxtn soname... $ECHO_C" >&6
14845 if test "${ac_cv_lib_soname_txc_dxtn+set}" = set; then
14846   echo $ECHO_N "(cached) $ECHO_C" >&6
14847 else
14848   ac_get_soname_save_LIBS=$LIBS
14849 LIBS="-ltxc_dxtn  $LIBS"
14850   cat >conftest.$ac_ext <<_ACEOF
14851 /* confdefs.h.  */
14852 _ACEOF
14853 cat confdefs.h >>conftest.$ac_ext
14854 cat >>conftest.$ac_ext <<_ACEOF
14855 /* end confdefs.h.  */
14856
14857 /* Override any gcc2 internal prototype to avoid an error.  */
14858 #ifdef __cplusplus
14859 extern "C"
14860 #endif
14861 /* We use char because int might match the return type of a gcc2
14862    builtin and then its argument prototype would still apply.  */
14863 char fetch_2d_texel_rgba_dxt1 ();
14864 int
14865 main ()
14866 {
14867 fetch_2d_texel_rgba_dxt1 ();
14868   ;
14869   return 0;
14870 }
14871 _ACEOF
14872 rm -f conftest.$ac_objext conftest$ac_exeext
14873 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14874   (eval $ac_link) 2>conftest.er1
14875   ac_status=$?
14876   grep -v '^ *+' conftest.er1 >conftest.err
14877   rm -f conftest.er1
14878   cat conftest.err >&5
14879   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14880   (exit $ac_status); } &&
14881          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
14882   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14883   (eval $ac_try) 2>&5
14884   ac_status=$?
14885   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14886   (exit $ac_status); }; } &&
14887          { ac_try='test -s conftest$ac_exeext'
14888   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14889   (eval $ac_try) 2>&5
14890   ac_status=$?
14891   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14892   (exit $ac_status); }; }; then
14893   ac_cv_lib_soname_txc_dxtn=`$ac_cv_path_LDD conftest$ac_exeext | grep libtxc_dxtn\\.$LIBEXT | sed "s/^.*\(libtxc_dxtn\.$LIBEXT[^        ]*\).*$/\1/"`
14894   if test "x$ac_cv_lib_soname_txc_dxtn" = "x"
14895   then
14896      ac_cv_lib_soname_txc_dxtn="libtxc_dxtn.$LIBEXT"
14897   fi
14898 else
14899   echo "$as_me: failed program was:" >&5
14900 sed 's/^/| /' conftest.$ac_ext >&5
14901
14902 ac_cv_lib_soname_txc_dxtn="libtxc_dxtn.$LIBEXT"
14903 fi
14904 rm -f conftest.err conftest.$ac_objext \
14905       conftest$ac_exeext conftest.$ac_ext
14906   LIBS=$ac_get_soname_save_LIBS
14907 fi
14908 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_txc_dxtn" >&5
14909 echo "${ECHO_T}$ac_cv_lib_soname_txc_dxtn" >&6
14910 if test "x$ac_cv_lib_soname_txc_dxtn" != xNONE
14911 then
14912 cat >>confdefs.h <<_ACEOF
14913 #define SONAME_LIBTXC_DXTN "$ac_cv_lib_soname_txc_dxtn"
14914 _ACEOF
14915 fi
14916
14917 echo "$as_me:$LINENO: checking for -lcups soname" >&5
14918 echo $ECHO_N "checking for -lcups soname... $ECHO_C" >&6
14919 if test "${ac_cv_lib_soname_cups+set}" = set; then
14920   echo $ECHO_N "(cached) $ECHO_C" >&6
14921 else
14922   ac_get_soname_save_LIBS=$LIBS
14923 LIBS="-lcups  $LIBS"
14924   cat >conftest.$ac_ext <<_ACEOF
14925 /* confdefs.h.  */
14926 _ACEOF
14927 cat confdefs.h >>conftest.$ac_ext
14928 cat >>conftest.$ac_ext <<_ACEOF
14929 /* end confdefs.h.  */
14930
14931 /* Override any gcc2 internal prototype to avoid an error.  */
14932 #ifdef __cplusplus
14933 extern "C"
14934 #endif
14935 /* We use char because int might match the return type of a gcc2
14936    builtin and then its argument prototype would still apply.  */
14937 char cupsGetDefault ();
14938 int
14939 main ()
14940 {
14941 cupsGetDefault ();
14942   ;
14943   return 0;
14944 }
14945 _ACEOF
14946 rm -f conftest.$ac_objext conftest$ac_exeext
14947 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14948   (eval $ac_link) 2>conftest.er1
14949   ac_status=$?
14950   grep -v '^ *+' conftest.er1 >conftest.err
14951   rm -f conftest.er1
14952   cat conftest.err >&5
14953   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14954   (exit $ac_status); } &&
14955          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
14956   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14957   (eval $ac_try) 2>&5
14958   ac_status=$?
14959   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14960   (exit $ac_status); }; } &&
14961          { ac_try='test -s conftest$ac_exeext'
14962   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14963   (eval $ac_try) 2>&5
14964   ac_status=$?
14965   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14966   (exit $ac_status); }; }; then
14967   ac_cv_lib_soname_cups=`$ac_cv_path_LDD conftest$ac_exeext | grep libcups\\.$LIBEXT | sed "s/^.*\(libcups\.$LIBEXT[^    ]*\).*$/\1/"`
14968   if test "x$ac_cv_lib_soname_cups" = "x"
14969   then
14970      ac_cv_lib_soname_cups="libcups.$LIBEXT"
14971   fi
14972 else
14973   echo "$as_me: failed program was:" >&5
14974 sed 's/^/| /' conftest.$ac_ext >&5
14975
14976 ac_cv_lib_soname_cups="libcups.$LIBEXT"
14977 fi
14978 rm -f conftest.err conftest.$ac_objext \
14979       conftest$ac_exeext conftest.$ac_ext
14980   LIBS=$ac_get_soname_save_LIBS
14981 fi
14982 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_cups" >&5
14983 echo "${ECHO_T}$ac_cv_lib_soname_cups" >&6
14984 if test "x$ac_cv_lib_soname_cups" != xNONE
14985 then
14986 cat >>confdefs.h <<_ACEOF
14987 #define SONAME_LIBCUPS "$ac_cv_lib_soname_cups"
14988 _ACEOF
14989 fi
14990
14991 echo "$as_me:$LINENO: checking for -ljack soname" >&5
14992 echo $ECHO_N "checking for -ljack soname... $ECHO_C" >&6
14993 if test "${ac_cv_lib_soname_jack+set}" = set; then
14994   echo $ECHO_N "(cached) $ECHO_C" >&6
14995 else
14996   ac_get_soname_save_LIBS=$LIBS
14997 LIBS="-ljack  $LIBS"
14998   cat >conftest.$ac_ext <<_ACEOF
14999 /* confdefs.h.  */
15000 _ACEOF
15001 cat confdefs.h >>conftest.$ac_ext
15002 cat >>conftest.$ac_ext <<_ACEOF
15003 /* end confdefs.h.  */
15004
15005 /* Override any gcc2 internal prototype to avoid an error.  */
15006 #ifdef __cplusplus
15007 extern "C"
15008 #endif
15009 /* We use char because int might match the return type of a gcc2
15010    builtin and then its argument prototype would still apply.  */
15011 char jack_client_new ();
15012 int
15013 main ()
15014 {
15015 jack_client_new ();
15016   ;
15017   return 0;
15018 }
15019 _ACEOF
15020 rm -f conftest.$ac_objext conftest$ac_exeext
15021 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15022   (eval $ac_link) 2>conftest.er1
15023   ac_status=$?
15024   grep -v '^ *+' conftest.er1 >conftest.err
15025   rm -f conftest.er1
15026   cat conftest.err >&5
15027   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15028   (exit $ac_status); } &&
15029          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
15030   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15031   (eval $ac_try) 2>&5
15032   ac_status=$?
15033   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15034   (exit $ac_status); }; } &&
15035          { ac_try='test -s conftest$ac_exeext'
15036   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15037   (eval $ac_try) 2>&5
15038   ac_status=$?
15039   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15040   (exit $ac_status); }; }; then
15041   ac_cv_lib_soname_jack=`$ac_cv_path_LDD conftest$ac_exeext | grep libjack\\.$LIBEXT | sed "s/^.*\(libjack\.$LIBEXT[^    ]*\).*$/\1/"`
15042   if test "x$ac_cv_lib_soname_jack" = "x"
15043   then
15044      ac_cv_lib_soname_jack="libjack.$LIBEXT"
15045   fi
15046 else
15047   echo "$as_me: failed program was:" >&5
15048 sed 's/^/| /' conftest.$ac_ext >&5
15049
15050 ac_cv_lib_soname_jack="libjack.$LIBEXT"
15051 fi
15052 rm -f conftest.err conftest.$ac_objext \
15053       conftest$ac_exeext conftest.$ac_ext
15054   LIBS=$ac_get_soname_save_LIBS
15055 fi
15056 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_jack" >&5
15057 echo "${ECHO_T}$ac_cv_lib_soname_jack" >&6
15058 if test "x$ac_cv_lib_soname_jack" != xNONE
15059 then
15060 cat >>confdefs.h <<_ACEOF
15061 #define SONAME_LIBJACK "$ac_cv_lib_soname_jack"
15062 _ACEOF
15063 fi
15064
15065 echo "$as_me:$LINENO: checking for -lfontconfig soname" >&5
15066 echo $ECHO_N "checking for -lfontconfig soname... $ECHO_C" >&6
15067 if test "${ac_cv_lib_soname_fontconfig+set}" = set; then
15068   echo $ECHO_N "(cached) $ECHO_C" >&6
15069 else
15070   ac_get_soname_save_LIBS=$LIBS
15071 LIBS="-lfontconfig  $LIBS"
15072   cat >conftest.$ac_ext <<_ACEOF
15073 /* confdefs.h.  */
15074 _ACEOF
15075 cat confdefs.h >>conftest.$ac_ext
15076 cat >>conftest.$ac_ext <<_ACEOF
15077 /* end confdefs.h.  */
15078
15079 /* Override any gcc2 internal prototype to avoid an error.  */
15080 #ifdef __cplusplus
15081 extern "C"
15082 #endif
15083 /* We use char because int might match the return type of a gcc2
15084    builtin and then its argument prototype would still apply.  */
15085 char FcInit ();
15086 int
15087 main ()
15088 {
15089 FcInit ();
15090   ;
15091   return 0;
15092 }
15093 _ACEOF
15094 rm -f conftest.$ac_objext conftest$ac_exeext
15095 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15096   (eval $ac_link) 2>conftest.er1
15097   ac_status=$?
15098   grep -v '^ *+' conftest.er1 >conftest.err
15099   rm -f conftest.er1
15100   cat conftest.err >&5
15101   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15102   (exit $ac_status); } &&
15103          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
15104   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15105   (eval $ac_try) 2>&5
15106   ac_status=$?
15107   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15108   (exit $ac_status); }; } &&
15109          { ac_try='test -s conftest$ac_exeext'
15110   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15111   (eval $ac_try) 2>&5
15112   ac_status=$?
15113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15114   (exit $ac_status); }; }; then
15115   ac_cv_lib_soname_fontconfig=`$ac_cv_path_LDD conftest$ac_exeext | grep libfontconfig\\.$LIBEXT | sed "s/^.*\(libfontconfig\.$LIBEXT[^  ]*\).*$/\1/"`
15116   if test "x$ac_cv_lib_soname_fontconfig" = "x"
15117   then
15118      ac_cv_lib_soname_fontconfig="libfontconfig.$LIBEXT"
15119   fi
15120 else
15121   echo "$as_me: failed program was:" >&5
15122 sed 's/^/| /' conftest.$ac_ext >&5
15123
15124 ac_cv_lib_soname_fontconfig="libfontconfig.$LIBEXT"
15125 fi
15126 rm -f conftest.err conftest.$ac_objext \
15127       conftest$ac_exeext conftest.$ac_ext
15128   LIBS=$ac_get_soname_save_LIBS
15129 fi
15130 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_fontconfig" >&5
15131 echo "${ECHO_T}$ac_cv_lib_soname_fontconfig" >&6
15132 if test "x$ac_cv_lib_soname_fontconfig" != xNONE
15133 then
15134 cat >>confdefs.h <<_ACEOF
15135 #define SONAME_LIBFONTCONFIG "$ac_cv_lib_soname_fontconfig"
15136 _ACEOF
15137 fi
15138
15139 echo "$as_me:$LINENO: checking for -lssl soname" >&5
15140 echo $ECHO_N "checking for -lssl soname... $ECHO_C" >&6
15141 if test "${ac_cv_lib_soname_ssl+set}" = set; then
15142   echo $ECHO_N "(cached) $ECHO_C" >&6
15143 else
15144   ac_get_soname_save_LIBS=$LIBS
15145 LIBS="-lssl  $LIBS"
15146   cat >conftest.$ac_ext <<_ACEOF
15147 /* confdefs.h.  */
15148 _ACEOF
15149 cat confdefs.h >>conftest.$ac_ext
15150 cat >>conftest.$ac_ext <<_ACEOF
15151 /* end confdefs.h.  */
15152
15153 /* Override any gcc2 internal prototype to avoid an error.  */
15154 #ifdef __cplusplus
15155 extern "C"
15156 #endif
15157 /* We use char because int might match the return type of a gcc2
15158    builtin and then its argument prototype would still apply.  */
15159 char SSL_library_init ();
15160 int
15161 main ()
15162 {
15163 SSL_library_init ();
15164   ;
15165   return 0;
15166 }
15167 _ACEOF
15168 rm -f conftest.$ac_objext conftest$ac_exeext
15169 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15170   (eval $ac_link) 2>conftest.er1
15171   ac_status=$?
15172   grep -v '^ *+' conftest.er1 >conftest.err
15173   rm -f conftest.er1
15174   cat conftest.err >&5
15175   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15176   (exit $ac_status); } &&
15177          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
15178   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15179   (eval $ac_try) 2>&5
15180   ac_status=$?
15181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15182   (exit $ac_status); }; } &&
15183          { ac_try='test -s conftest$ac_exeext'
15184   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15185   (eval $ac_try) 2>&5
15186   ac_status=$?
15187   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15188   (exit $ac_status); }; }; then
15189   ac_cv_lib_soname_ssl=`$ac_cv_path_LDD conftest$ac_exeext | grep libssl\\.$LIBEXT | sed "s/^.*\(libssl\.$LIBEXT[^       ]*\).*$/\1/"`
15190   if test "x$ac_cv_lib_soname_ssl" = "x"
15191   then
15192      ac_cv_lib_soname_ssl="libssl.$LIBEXT"
15193   fi
15194 else
15195   echo "$as_me: failed program was:" >&5
15196 sed 's/^/| /' conftest.$ac_ext >&5
15197
15198 ac_cv_lib_soname_ssl="libssl.$LIBEXT"
15199 fi
15200 rm -f conftest.err conftest.$ac_objext \
15201       conftest$ac_exeext conftest.$ac_ext
15202   LIBS=$ac_get_soname_save_LIBS
15203 fi
15204 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_ssl" >&5
15205 echo "${ECHO_T}$ac_cv_lib_soname_ssl" >&6
15206 if test "x$ac_cv_lib_soname_ssl" != xNONE
15207 then
15208 cat >>confdefs.h <<_ACEOF
15209 #define SONAME_LIBSSL "$ac_cv_lib_soname_ssl"
15210 _ACEOF
15211 fi
15212
15213 echo "$as_me:$LINENO: checking for -lcrypto soname" >&5
15214 echo $ECHO_N "checking for -lcrypto soname... $ECHO_C" >&6
15215 if test "${ac_cv_lib_soname_crypto+set}" = set; then
15216   echo $ECHO_N "(cached) $ECHO_C" >&6
15217 else
15218   ac_get_soname_save_LIBS=$LIBS
15219 LIBS="-lcrypto  $LIBS"
15220   cat >conftest.$ac_ext <<_ACEOF
15221 /* confdefs.h.  */
15222 _ACEOF
15223 cat confdefs.h >>conftest.$ac_ext
15224 cat >>conftest.$ac_ext <<_ACEOF
15225 /* end confdefs.h.  */
15226
15227 /* Override any gcc2 internal prototype to avoid an error.  */
15228 #ifdef __cplusplus
15229 extern "C"
15230 #endif
15231 /* We use char because int might match the return type of a gcc2
15232    builtin and then its argument prototype would still apply.  */
15233 char BIO_new_socket ();
15234 int
15235 main ()
15236 {
15237 BIO_new_socket ();
15238   ;
15239   return 0;
15240 }
15241 _ACEOF
15242 rm -f conftest.$ac_objext conftest$ac_exeext
15243 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15244   (eval $ac_link) 2>conftest.er1
15245   ac_status=$?
15246   grep -v '^ *+' conftest.er1 >conftest.err
15247   rm -f conftest.er1
15248   cat conftest.err >&5
15249   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15250   (exit $ac_status); } &&
15251          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
15252   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15253   (eval $ac_try) 2>&5
15254   ac_status=$?
15255   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15256   (exit $ac_status); }; } &&
15257          { ac_try='test -s conftest$ac_exeext'
15258   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15259   (eval $ac_try) 2>&5
15260   ac_status=$?
15261   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15262   (exit $ac_status); }; }; then
15263   ac_cv_lib_soname_crypto=`$ac_cv_path_LDD conftest$ac_exeext | grep libcrypto\\.$LIBEXT | sed "s/^.*\(libcrypto\.$LIBEXT[^      ]*\).*$/\1/"`
15264   if test "x$ac_cv_lib_soname_crypto" = "x"
15265   then
15266      ac_cv_lib_soname_crypto="libcrypto.$LIBEXT"
15267   fi
15268 else
15269   echo "$as_me: failed program was:" >&5
15270 sed 's/^/| /' conftest.$ac_ext >&5
15271
15272 ac_cv_lib_soname_crypto="libcrypto.$LIBEXT"
15273 fi
15274 rm -f conftest.err conftest.$ac_objext \
15275       conftest$ac_exeext conftest.$ac_ext
15276   LIBS=$ac_get_soname_save_LIBS
15277 fi
15278 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_crypto" >&5
15279 echo "${ECHO_T}$ac_cv_lib_soname_crypto" >&6
15280 if test "x$ac_cv_lib_soname_crypto" != xNONE
15281 then
15282 cat >>confdefs.h <<_ACEOF
15283 #define SONAME_LIBCRYPTO "$ac_cv_lib_soname_crypto"
15284 _ACEOF
15285 fi
15286
15287 echo "$as_me:$LINENO: checking for -lncurses soname" >&5
15288 echo $ECHO_N "checking for -lncurses soname... $ECHO_C" >&6
15289 if test "${ac_cv_lib_soname_ncurses+set}" = set; then
15290   echo $ECHO_N "(cached) $ECHO_C" >&6
15291 else
15292   ac_get_soname_save_LIBS=$LIBS
15293 LIBS="-lncurses  $LIBS"
15294   cat >conftest.$ac_ext <<_ACEOF
15295 /* confdefs.h.  */
15296 _ACEOF
15297 cat confdefs.h >>conftest.$ac_ext
15298 cat >>conftest.$ac_ext <<_ACEOF
15299 /* end confdefs.h.  */
15300
15301 /* Override any gcc2 internal prototype to avoid an error.  */
15302 #ifdef __cplusplus
15303 extern "C"
15304 #endif
15305 /* We use char because int might match the return type of a gcc2
15306    builtin and then its argument prototype would still apply.  */
15307 char waddch ();
15308 int
15309 main ()
15310 {
15311 waddch ();
15312   ;
15313   return 0;
15314 }
15315 _ACEOF
15316 rm -f conftest.$ac_objext conftest$ac_exeext
15317 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15318   (eval $ac_link) 2>conftest.er1
15319   ac_status=$?
15320   grep -v '^ *+' conftest.er1 >conftest.err
15321   rm -f conftest.er1
15322   cat conftest.err >&5
15323   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15324   (exit $ac_status); } &&
15325          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
15326   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15327   (eval $ac_try) 2>&5
15328   ac_status=$?
15329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15330   (exit $ac_status); }; } &&
15331          { ac_try='test -s conftest$ac_exeext'
15332   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15333   (eval $ac_try) 2>&5
15334   ac_status=$?
15335   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15336   (exit $ac_status); }; }; then
15337   ac_cv_lib_soname_ncurses=`$ac_cv_path_LDD conftest$ac_exeext | grep libncurses\\.$LIBEXT | sed "s/^.*\(libncurses\.$LIBEXT[^   ]*\).*$/\1/"`
15338   if test "x$ac_cv_lib_soname_ncurses" = "x"
15339   then
15340      ac_cv_lib_soname_ncurses="libncurses.$LIBEXT"
15341   fi
15342 else
15343   echo "$as_me: failed program was:" >&5
15344 sed 's/^/| /' conftest.$ac_ext >&5
15345
15346 ac_cv_lib_soname_ncurses="libncurses.$LIBEXT"
15347 fi
15348 rm -f conftest.err conftest.$ac_objext \
15349       conftest$ac_exeext conftest.$ac_ext
15350   LIBS=$ac_get_soname_save_LIBS
15351 fi
15352 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_ncurses" >&5
15353 echo "${ECHO_T}$ac_cv_lib_soname_ncurses" >&6
15354 if test "x$ac_cv_lib_soname_ncurses" != xNONE
15355 then
15356 cat >>confdefs.h <<_ACEOF
15357 #define SONAME_LIBNCURSES "$ac_cv_lib_soname_ncurses"
15358 _ACEOF
15359 fi
15360
15361 echo "$as_me:$LINENO: checking for -lcurses soname" >&5
15362 echo $ECHO_N "checking for -lcurses soname... $ECHO_C" >&6
15363 if test "${ac_cv_lib_soname_curses+set}" = set; then
15364   echo $ECHO_N "(cached) $ECHO_C" >&6
15365 else
15366   ac_get_soname_save_LIBS=$LIBS
15367 LIBS="-lcurses  $LIBS"
15368   cat >conftest.$ac_ext <<_ACEOF
15369 /* confdefs.h.  */
15370 _ACEOF
15371 cat confdefs.h >>conftest.$ac_ext
15372 cat >>conftest.$ac_ext <<_ACEOF
15373 /* end confdefs.h.  */
15374
15375 /* Override any gcc2 internal prototype to avoid an error.  */
15376 #ifdef __cplusplus
15377 extern "C"
15378 #endif
15379 /* We use char because int might match the return type of a gcc2
15380    builtin and then its argument prototype would still apply.  */
15381 char waddch ();
15382 int
15383 main ()
15384 {
15385 waddch ();
15386   ;
15387   return 0;
15388 }
15389 _ACEOF
15390 rm -f conftest.$ac_objext conftest$ac_exeext
15391 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15392   (eval $ac_link) 2>conftest.er1
15393   ac_status=$?
15394   grep -v '^ *+' conftest.er1 >conftest.err
15395   rm -f conftest.er1
15396   cat conftest.err >&5
15397   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15398   (exit $ac_status); } &&
15399          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
15400   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15401   (eval $ac_try) 2>&5
15402   ac_status=$?
15403   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15404   (exit $ac_status); }; } &&
15405          { ac_try='test -s conftest$ac_exeext'
15406   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15407   (eval $ac_try) 2>&5
15408   ac_status=$?
15409   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15410   (exit $ac_status); }; }; then
15411   ac_cv_lib_soname_curses=`$ac_cv_path_LDD conftest$ac_exeext | grep libcurses\\.$LIBEXT | sed "s/^.*\(libcurses\.$LIBEXT[^      ]*\).*$/\1/"`
15412   if test "x$ac_cv_lib_soname_curses" = "x"
15413   then
15414      ac_cv_lib_soname_curses="libcurses.$LIBEXT"
15415   fi
15416 else
15417   echo "$as_me: failed program was:" >&5
15418 sed 's/^/| /' conftest.$ac_ext >&5
15419
15420 ac_cv_lib_soname_curses="libcurses.$LIBEXT"
15421 fi
15422 rm -f conftest.err conftest.$ac_objext \
15423       conftest$ac_exeext conftest.$ac_ext
15424   LIBS=$ac_get_soname_save_LIBS
15425 fi
15426 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_curses" >&5
15427 echo "${ECHO_T}$ac_cv_lib_soname_curses" >&6
15428 if test "x$ac_cv_lib_soname_curses" != xNONE
15429 then
15430 cat >>confdefs.h <<_ACEOF
15431 #define SONAME_LIBCURSES "$ac_cv_lib_soname_curses"
15432 _ACEOF
15433 fi
15434
15435 echo "$as_me:$LINENO: checking for -ljpeg soname" >&5
15436 echo $ECHO_N "checking for -ljpeg soname... $ECHO_C" >&6
15437 if test "${ac_cv_lib_soname_jpeg+set}" = set; then
15438   echo $ECHO_N "(cached) $ECHO_C" >&6
15439 else
15440   ac_get_soname_save_LIBS=$LIBS
15441 LIBS="-ljpeg  $LIBS"
15442   cat >conftest.$ac_ext <<_ACEOF
15443 /* confdefs.h.  */
15444 _ACEOF
15445 cat confdefs.h >>conftest.$ac_ext
15446 cat >>conftest.$ac_ext <<_ACEOF
15447 /* end confdefs.h.  */
15448
15449 /* Override any gcc2 internal prototype to avoid an error.  */
15450 #ifdef __cplusplus
15451 extern "C"
15452 #endif
15453 /* We use char because int might match the return type of a gcc2
15454    builtin and then its argument prototype would still apply.  */
15455 char jpeg_start_decompress ();
15456 int
15457 main ()
15458 {
15459 jpeg_start_decompress ();
15460   ;
15461   return 0;
15462 }
15463 _ACEOF
15464 rm -f conftest.$ac_objext conftest$ac_exeext
15465 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15466   (eval $ac_link) 2>conftest.er1
15467   ac_status=$?
15468   grep -v '^ *+' conftest.er1 >conftest.err
15469   rm -f conftest.er1
15470   cat conftest.err >&5
15471   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15472   (exit $ac_status); } &&
15473          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
15474   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15475   (eval $ac_try) 2>&5
15476   ac_status=$?
15477   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15478   (exit $ac_status); }; } &&
15479          { ac_try='test -s conftest$ac_exeext'
15480   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15481   (eval $ac_try) 2>&5
15482   ac_status=$?
15483   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15484   (exit $ac_status); }; }; then
15485   ac_cv_lib_soname_jpeg=`$ac_cv_path_LDD conftest$ac_exeext | grep libjpeg\\.$LIBEXT | sed "s/^.*\(libjpeg\.$LIBEXT[^    ]*\).*$/\1/"`
15486   if test "x$ac_cv_lib_soname_jpeg" = "x"
15487   then
15488      ac_cv_lib_soname_jpeg="libjpeg.$LIBEXT"
15489   fi
15490 else
15491   echo "$as_me: failed program was:" >&5
15492 sed 's/^/| /' conftest.$ac_ext >&5
15493
15494 ac_cv_lib_soname_jpeg="libjpeg.$LIBEXT"
15495 fi
15496 rm -f conftest.err conftest.$ac_objext \
15497       conftest$ac_exeext conftest.$ac_ext
15498   LIBS=$ac_get_soname_save_LIBS
15499 fi
15500 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_jpeg" >&5
15501 echo "${ECHO_T}$ac_cv_lib_soname_jpeg" >&6
15502 if test "x$ac_cv_lib_soname_jpeg" != xNONE
15503 then
15504 cat >>confdefs.h <<_ACEOF
15505 #define SONAME_LIBJPEG "$ac_cv_lib_soname_jpeg"
15506 _ACEOF
15507 fi
15508
15509 echo "$as_me:$LINENO: checking for -lungif soname" >&5
15510 echo $ECHO_N "checking for -lungif soname... $ECHO_C" >&6
15511 if test "${ac_cv_lib_soname_ungif+set}" = set; then
15512   echo $ECHO_N "(cached) $ECHO_C" >&6
15513 else
15514   ac_get_soname_save_LIBS=$LIBS
15515 LIBS="-lungif  $LIBS"
15516   cat >conftest.$ac_ext <<_ACEOF
15517 /* confdefs.h.  */
15518 _ACEOF
15519 cat confdefs.h >>conftest.$ac_ext
15520 cat >>conftest.$ac_ext <<_ACEOF
15521 /* end confdefs.h.  */
15522
15523 /* Override any gcc2 internal prototype to avoid an error.  */
15524 #ifdef __cplusplus
15525 extern "C"
15526 #endif
15527 /* We use char because int might match the return type of a gcc2
15528    builtin and then its argument prototype would still apply.  */
15529 char DGifOpen ();
15530 int
15531 main ()
15532 {
15533 DGifOpen ();
15534   ;
15535   return 0;
15536 }
15537 _ACEOF
15538 rm -f conftest.$ac_objext conftest$ac_exeext
15539 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15540   (eval $ac_link) 2>conftest.er1
15541   ac_status=$?
15542   grep -v '^ *+' conftest.er1 >conftest.err
15543   rm -f conftest.er1
15544   cat conftest.err >&5
15545   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15546   (exit $ac_status); } &&
15547          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
15548   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15549   (eval $ac_try) 2>&5
15550   ac_status=$?
15551   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15552   (exit $ac_status); }; } &&
15553          { ac_try='test -s conftest$ac_exeext'
15554   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15555   (eval $ac_try) 2>&5
15556   ac_status=$?
15557   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15558   (exit $ac_status); }; }; then
15559   ac_cv_lib_soname_ungif=`$ac_cv_path_LDD conftest$ac_exeext | grep libungif\\.$LIBEXT | sed "s/^.*\(libungif\.$LIBEXT[^         ]*\).*$/\1/"`
15560   if test "x$ac_cv_lib_soname_ungif" = "x"
15561   then
15562      ac_cv_lib_soname_ungif="libungif.$LIBEXT"
15563   fi
15564 else
15565   echo "$as_me: failed program was:" >&5
15566 sed 's/^/| /' conftest.$ac_ext >&5
15567
15568 ac_cv_lib_soname_ungif="libungif.$LIBEXT"
15569 fi
15570 rm -f conftest.err conftest.$ac_objext \
15571       conftest$ac_exeext conftest.$ac_ext
15572   LIBS=$ac_get_soname_save_LIBS
15573 fi
15574 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_ungif" >&5
15575 echo "${ECHO_T}$ac_cv_lib_soname_ungif" >&6
15576 if test "x$ac_cv_lib_soname_ungif" != xNONE
15577 then
15578 cat >>confdefs.h <<_ACEOF
15579 #define SONAME_LIBUNGIF "$ac_cv_lib_soname_ungif"
15580 _ACEOF
15581 fi
15582
15583 echo "$as_me:$LINENO: checking for -lgif soname" >&5
15584 echo $ECHO_N "checking for -lgif soname... $ECHO_C" >&6
15585 if test "${ac_cv_lib_soname_gif+set}" = set; then
15586   echo $ECHO_N "(cached) $ECHO_C" >&6
15587 else
15588   ac_get_soname_save_LIBS=$LIBS
15589 LIBS="-lgif  $LIBS"
15590   cat >conftest.$ac_ext <<_ACEOF
15591 /* confdefs.h.  */
15592 _ACEOF
15593 cat confdefs.h >>conftest.$ac_ext
15594 cat >>conftest.$ac_ext <<_ACEOF
15595 /* end confdefs.h.  */
15596
15597 /* Override any gcc2 internal prototype to avoid an error.  */
15598 #ifdef __cplusplus
15599 extern "C"
15600 #endif
15601 /* We use char because int might match the return type of a gcc2
15602    builtin and then its argument prototype would still apply.  */
15603 char DGifOpen ();
15604 int
15605 main ()
15606 {
15607 DGifOpen ();
15608   ;
15609   return 0;
15610 }
15611 _ACEOF
15612 rm -f conftest.$ac_objext conftest$ac_exeext
15613 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15614   (eval $ac_link) 2>conftest.er1
15615   ac_status=$?
15616   grep -v '^ *+' conftest.er1 >conftest.err
15617   rm -f conftest.er1
15618   cat conftest.err >&5
15619   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15620   (exit $ac_status); } &&
15621          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
15622   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15623   (eval $ac_try) 2>&5
15624   ac_status=$?
15625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15626   (exit $ac_status); }; } &&
15627          { ac_try='test -s conftest$ac_exeext'
15628   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15629   (eval $ac_try) 2>&5
15630   ac_status=$?
15631   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15632   (exit $ac_status); }; }; then
15633   ac_cv_lib_soname_gif=`$ac_cv_path_LDD conftest$ac_exeext | grep libgif\\.$LIBEXT | sed "s/^.*\(libgif\.$LIBEXT[^       ]*\).*$/\1/"`
15634   if test "x$ac_cv_lib_soname_gif" = "x"
15635   then
15636      ac_cv_lib_soname_gif="libgif.$LIBEXT"
15637   fi
15638 else
15639   echo "$as_me: failed program was:" >&5
15640 sed 's/^/| /' conftest.$ac_ext >&5
15641
15642 ac_cv_lib_soname_gif="libgif.$LIBEXT"
15643 fi
15644 rm -f conftest.err conftest.$ac_objext \
15645       conftest$ac_exeext conftest.$ac_ext
15646   LIBS=$ac_get_soname_save_LIBS
15647 fi
15648 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_gif" >&5
15649 echo "${ECHO_T}$ac_cv_lib_soname_gif" >&6
15650 if test "x$ac_cv_lib_soname_gif" != xNONE
15651 then
15652 cat >>confdefs.h <<_ACEOF
15653 #define SONAME_LIBGIF "$ac_cv_lib_soname_gif"
15654 _ACEOF
15655 fi
15656
15657 echo "$as_me:$LINENO: checking for -llcms soname" >&5
15658 echo $ECHO_N "checking for -llcms soname... $ECHO_C" >&6
15659 if test "${ac_cv_lib_soname_lcms+set}" = set; then
15660   echo $ECHO_N "(cached) $ECHO_C" >&6
15661 else
15662   ac_get_soname_save_LIBS=$LIBS
15663 LIBS="-llcms  $LIBS"
15664   cat >conftest.$ac_ext <<_ACEOF
15665 /* confdefs.h.  */
15666 _ACEOF
15667 cat confdefs.h >>conftest.$ac_ext
15668 cat >>conftest.$ac_ext <<_ACEOF
15669 /* end confdefs.h.  */
15670
15671 /* Override any gcc2 internal prototype to avoid an error.  */
15672 #ifdef __cplusplus
15673 extern "C"
15674 #endif
15675 /* We use char because int might match the return type of a gcc2
15676    builtin and then its argument prototype would still apply.  */
15677 char cmsOpenProfileFromFile ();
15678 int
15679 main ()
15680 {
15681 cmsOpenProfileFromFile ();
15682   ;
15683   return 0;
15684 }
15685 _ACEOF
15686 rm -f conftest.$ac_objext conftest$ac_exeext
15687 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15688   (eval $ac_link) 2>conftest.er1
15689   ac_status=$?
15690   grep -v '^ *+' conftest.er1 >conftest.err
15691   rm -f conftest.er1
15692   cat conftest.err >&5
15693   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15694   (exit $ac_status); } &&
15695          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
15696   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15697   (eval $ac_try) 2>&5
15698   ac_status=$?
15699   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15700   (exit $ac_status); }; } &&
15701          { ac_try='test -s conftest$ac_exeext'
15702   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15703   (eval $ac_try) 2>&5
15704   ac_status=$?
15705   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15706   (exit $ac_status); }; }; then
15707   ac_cv_lib_soname_lcms=`$ac_cv_path_LDD conftest$ac_exeext | grep liblcms\\.$LIBEXT | sed "s/^.*\(liblcms\.$LIBEXT[^    ]*\).*$/\1/"`
15708   if test "x$ac_cv_lib_soname_lcms" = "x"
15709   then
15710      ac_cv_lib_soname_lcms="liblcms.$LIBEXT"
15711   fi
15712 else
15713   echo "$as_me: failed program was:" >&5
15714 sed 's/^/| /' conftest.$ac_ext >&5
15715
15716 ac_cv_lib_soname_lcms="liblcms.$LIBEXT"
15717 fi
15718 rm -f conftest.err conftest.$ac_objext \
15719       conftest$ac_exeext conftest.$ac_ext
15720   LIBS=$ac_get_soname_save_LIBS
15721 fi
15722 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_lcms" >&5
15723 echo "${ECHO_T}$ac_cv_lib_soname_lcms" >&6
15724 if test "x$ac_cv_lib_soname_lcms" != xNONE
15725 then
15726 cat >>confdefs.h <<_ACEOF
15727 #define SONAME_LIBLCMS "$ac_cv_lib_soname_lcms"
15728 _ACEOF
15729 fi
15730
15731 echo "$as_me:$LINENO: checking for -lcapi20 soname" >&5
15732 echo $ECHO_N "checking for -lcapi20 soname... $ECHO_C" >&6
15733 if test "${ac_cv_lib_soname_capi20+set}" = set; then
15734   echo $ECHO_N "(cached) $ECHO_C" >&6
15735 else
15736   ac_get_soname_save_LIBS=$LIBS
15737 LIBS="-lcapi20  $LIBS"
15738   cat >conftest.$ac_ext <<_ACEOF
15739 /* confdefs.h.  */
15740 _ACEOF
15741 cat confdefs.h >>conftest.$ac_ext
15742 cat >>conftest.$ac_ext <<_ACEOF
15743 /* end confdefs.h.  */
15744
15745 /* Override any gcc2 internal prototype to avoid an error.  */
15746 #ifdef __cplusplus
15747 extern "C"
15748 #endif
15749 /* We use char because int might match the return type of a gcc2
15750    builtin and then its argument prototype would still apply.  */
15751 char capi20_isinstalled ();
15752 int
15753 main ()
15754 {
15755 capi20_isinstalled ();
15756   ;
15757   return 0;
15758 }
15759 _ACEOF
15760 rm -f conftest.$ac_objext conftest$ac_exeext
15761 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15762   (eval $ac_link) 2>conftest.er1
15763   ac_status=$?
15764   grep -v '^ *+' conftest.er1 >conftest.err
15765   rm -f conftest.er1
15766   cat conftest.err >&5
15767   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15768   (exit $ac_status); } &&
15769          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
15770   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15771   (eval $ac_try) 2>&5
15772   ac_status=$?
15773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15774   (exit $ac_status); }; } &&
15775          { ac_try='test -s conftest$ac_exeext'
15776   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15777   (eval $ac_try) 2>&5
15778   ac_status=$?
15779   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15780   (exit $ac_status); }; }; then
15781   ac_cv_lib_soname_capi20=`$ac_cv_path_LDD conftest$ac_exeext | grep libcapi20\\.$LIBEXT | sed "s/^.*\(libcapi20\.$LIBEXT[^      ]*\).*$/\1/"`
15782   if test "x$ac_cv_lib_soname_capi20" = "x"
15783   then
15784      ac_cv_lib_soname_capi20="libcapi20.$LIBEXT"
15785   fi
15786 else
15787   echo "$as_me: failed program was:" >&5
15788 sed 's/^/| /' conftest.$ac_ext >&5
15789
15790 ac_cv_lib_soname_capi20="libcapi20.$LIBEXT"
15791 fi
15792 rm -f conftest.err conftest.$ac_objext \
15793       conftest$ac_exeext conftest.$ac_ext
15794   LIBS=$ac_get_soname_save_LIBS
15795 fi
15796 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_capi20" >&5
15797 echo "${ECHO_T}$ac_cv_lib_soname_capi20" >&6
15798 if test "x$ac_cv_lib_soname_capi20" != xNONE
15799 then
15800 cat >>confdefs.h <<_ACEOF
15801 #define SONAME_LIBCAPI20 "$ac_cv_lib_soname_capi20"
15802 _ACEOF
15803 fi
15804 fi
15805
15806
15807
15808 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
15809 # for constant arguments.  Useless!
15810 echo "$as_me:$LINENO: checking for working alloca.h" >&5
15811 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
15812 if test "${ac_cv_working_alloca_h+set}" = set; then
15813   echo $ECHO_N "(cached) $ECHO_C" >&6
15814 else
15815   cat >conftest.$ac_ext <<_ACEOF
15816 /* confdefs.h.  */
15817 _ACEOF
15818 cat confdefs.h >>conftest.$ac_ext
15819 cat >>conftest.$ac_ext <<_ACEOF
15820 /* end confdefs.h.  */
15821 #include <alloca.h>
15822 int
15823 main ()
15824 {
15825 char *p = (char *) alloca (2 * sizeof (int));
15826   ;
15827   return 0;
15828 }
15829 _ACEOF
15830 rm -f conftest.$ac_objext conftest$ac_exeext
15831 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15832   (eval $ac_link) 2>conftest.er1
15833   ac_status=$?
15834   grep -v '^ *+' conftest.er1 >conftest.err
15835   rm -f conftest.er1
15836   cat conftest.err >&5
15837   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15838   (exit $ac_status); } &&
15839          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
15840   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15841   (eval $ac_try) 2>&5
15842   ac_status=$?
15843   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15844   (exit $ac_status); }; } &&
15845          { ac_try='test -s conftest$ac_exeext'
15846   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15847   (eval $ac_try) 2>&5
15848   ac_status=$?
15849   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15850   (exit $ac_status); }; }; then
15851   ac_cv_working_alloca_h=yes
15852 else
15853   echo "$as_me: failed program was:" >&5
15854 sed 's/^/| /' conftest.$ac_ext >&5
15855
15856 ac_cv_working_alloca_h=no
15857 fi
15858 rm -f conftest.err conftest.$ac_objext \
15859       conftest$ac_exeext conftest.$ac_ext
15860 fi
15861 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
15862 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
15863 if test $ac_cv_working_alloca_h = yes; then
15864
15865 cat >>confdefs.h <<\_ACEOF
15866 #define HAVE_ALLOCA_H 1
15867 _ACEOF
15868
15869 fi
15870
15871 echo "$as_me:$LINENO: checking for alloca" >&5
15872 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
15873 if test "${ac_cv_func_alloca_works+set}" = set; then
15874   echo $ECHO_N "(cached) $ECHO_C" >&6
15875 else
15876   cat >conftest.$ac_ext <<_ACEOF
15877 /* confdefs.h.  */
15878 _ACEOF
15879 cat confdefs.h >>conftest.$ac_ext
15880 cat >>conftest.$ac_ext <<_ACEOF
15881 /* end confdefs.h.  */
15882 #ifdef __GNUC__
15883 # define alloca __builtin_alloca
15884 #else
15885 # ifdef _MSC_VER
15886 #  include <malloc.h>
15887 #  define alloca _alloca
15888 # else
15889 #  if HAVE_ALLOCA_H
15890 #   include <alloca.h>
15891 #  else
15892 #   ifdef _AIX
15893  #pragma alloca
15894 #   else
15895 #    ifndef alloca /* predefined by HP cc +Olibcalls */
15896 char *alloca ();
15897 #    endif
15898 #   endif
15899 #  endif
15900 # endif
15901 #endif
15902
15903 int
15904 main ()
15905 {
15906 char *p = (char *) alloca (1);
15907   ;
15908   return 0;
15909 }
15910 _ACEOF
15911 rm -f conftest.$ac_objext conftest$ac_exeext
15912 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15913   (eval $ac_link) 2>conftest.er1
15914   ac_status=$?
15915   grep -v '^ *+' conftest.er1 >conftest.err
15916   rm -f conftest.er1
15917   cat conftest.err >&5
15918   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15919   (exit $ac_status); } &&
15920          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
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); }; } &&
15926          { ac_try='test -s conftest$ac_exeext'
15927   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15928   (eval $ac_try) 2>&5
15929   ac_status=$?
15930   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15931   (exit $ac_status); }; }; then
15932   ac_cv_func_alloca_works=yes
15933 else
15934   echo "$as_me: failed program was:" >&5
15935 sed 's/^/| /' conftest.$ac_ext >&5
15936
15937 ac_cv_func_alloca_works=no
15938 fi
15939 rm -f conftest.err conftest.$ac_objext \
15940       conftest$ac_exeext conftest.$ac_ext
15941 fi
15942 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
15943 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
15944
15945 if test $ac_cv_func_alloca_works = yes; then
15946
15947 cat >>confdefs.h <<\_ACEOF
15948 #define HAVE_ALLOCA 1
15949 _ACEOF
15950
15951 else
15952   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
15953 # that cause trouble.  Some versions do not even contain alloca or
15954 # contain a buggy version.  If you still want to use their alloca,
15955 # use ar to extract alloca.o from them instead of compiling alloca.c.
15956
15957 ALLOCA=alloca.$ac_objext
15958
15959 cat >>confdefs.h <<\_ACEOF
15960 #define C_ALLOCA 1
15961 _ACEOF
15962
15963
15964 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
15965 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
15966 if test "${ac_cv_os_cray+set}" = set; then
15967   echo $ECHO_N "(cached) $ECHO_C" >&6
15968 else
15969   cat >conftest.$ac_ext <<_ACEOF
15970 /* confdefs.h.  */
15971 _ACEOF
15972 cat confdefs.h >>conftest.$ac_ext
15973 cat >>conftest.$ac_ext <<_ACEOF
15974 /* end confdefs.h.  */
15975 #if defined(CRAY) && ! defined(CRAY2)
15976 webecray
15977 #else
15978 wenotbecray
15979 #endif
15980
15981 _ACEOF
15982 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15983   $EGREP "webecray" >/dev/null 2>&1; then
15984   ac_cv_os_cray=yes
15985 else
15986   ac_cv_os_cray=no
15987 fi
15988 rm -f conftest*
15989
15990 fi
15991 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
15992 echo "${ECHO_T}$ac_cv_os_cray" >&6
15993 if test $ac_cv_os_cray = yes; then
15994   for ac_func in _getb67 GETB67 getb67; do
15995     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15996 echo "$as_me:$LINENO: checking for $ac_func" >&5
15997 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15998 if eval "test \"\${$as_ac_var+set}\" = set"; then
15999   echo $ECHO_N "(cached) $ECHO_C" >&6
16000 else
16001   cat >conftest.$ac_ext <<_ACEOF
16002 /* confdefs.h.  */
16003 _ACEOF
16004 cat confdefs.h >>conftest.$ac_ext
16005 cat >>conftest.$ac_ext <<_ACEOF
16006 /* end confdefs.h.  */
16007 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16008    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16009 #define $ac_func innocuous_$ac_func
16010
16011 /* System header to define __stub macros and hopefully few prototypes,
16012     which can conflict with char $ac_func (); below.
16013     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16014     <limits.h> exists even on freestanding compilers.  */
16015
16016 #ifdef __STDC__
16017 # include <limits.h>
16018 #else
16019 # include <assert.h>
16020 #endif
16021
16022 #undef $ac_func
16023
16024 /* Override any gcc2 internal prototype to avoid an error.  */
16025 #ifdef __cplusplus
16026 extern "C"
16027 {
16028 #endif
16029 /* We use char because int might match the return type of a gcc2
16030    builtin and then its argument prototype would still apply.  */
16031 char $ac_func ();
16032 /* The GNU C library defines this for functions which it implements
16033     to always fail with ENOSYS.  Some functions are actually named
16034     something starting with __ and the normal name is an alias.  */
16035 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16036 choke me
16037 #else
16038 char (*f) () = $ac_func;
16039 #endif
16040 #ifdef __cplusplus
16041 }
16042 #endif
16043
16044 int
16045 main ()
16046 {
16047 return f != $ac_func;
16048   ;
16049   return 0;
16050 }
16051 _ACEOF
16052 rm -f conftest.$ac_objext conftest$ac_exeext
16053 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16054   (eval $ac_link) 2>conftest.er1
16055   ac_status=$?
16056   grep -v '^ *+' conftest.er1 >conftest.err
16057   rm -f conftest.er1
16058   cat conftest.err >&5
16059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16060   (exit $ac_status); } &&
16061          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
16062   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16063   (eval $ac_try) 2>&5
16064   ac_status=$?
16065   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16066   (exit $ac_status); }; } &&
16067          { ac_try='test -s conftest$ac_exeext'
16068   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16069   (eval $ac_try) 2>&5
16070   ac_status=$?
16071   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16072   (exit $ac_status); }; }; then
16073   eval "$as_ac_var=yes"
16074 else
16075   echo "$as_me: failed program was:" >&5
16076 sed 's/^/| /' conftest.$ac_ext >&5
16077
16078 eval "$as_ac_var=no"
16079 fi
16080 rm -f conftest.err conftest.$ac_objext \
16081       conftest$ac_exeext conftest.$ac_ext
16082 fi
16083 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16084 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16085 if test `eval echo '${'$as_ac_var'}'` = yes; then
16086
16087 cat >>confdefs.h <<_ACEOF
16088 #define CRAY_STACKSEG_END $ac_func
16089 _ACEOF
16090
16091     break
16092 fi
16093
16094   done
16095 fi
16096
16097 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
16098 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
16099 if test "${ac_cv_c_stack_direction+set}" = set; then
16100   echo $ECHO_N "(cached) $ECHO_C" >&6
16101 else
16102   if test "$cross_compiling" = yes; then
16103   ac_cv_c_stack_direction=0
16104 else
16105   cat >conftest.$ac_ext <<_ACEOF
16106 /* confdefs.h.  */
16107 _ACEOF
16108 cat confdefs.h >>conftest.$ac_ext
16109 cat >>conftest.$ac_ext <<_ACEOF
16110 /* end confdefs.h.  */
16111 int
16112 find_stack_direction ()
16113 {
16114   static char *addr = 0;
16115   auto char dummy;
16116   if (addr == 0)
16117     {
16118       addr = &dummy;
16119       return find_stack_direction ();
16120     }
16121   else
16122     return (&dummy > addr) ? 1 : -1;
16123 }
16124
16125 int
16126 main ()
16127 {
16128   exit (find_stack_direction () < 0);
16129 }
16130 _ACEOF
16131 rm -f conftest$ac_exeext
16132 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16133   (eval $ac_link) 2>&5
16134   ac_status=$?
16135   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16136   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16137   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16138   (eval $ac_try) 2>&5
16139   ac_status=$?
16140   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16141   (exit $ac_status); }; }; then
16142   ac_cv_c_stack_direction=1
16143 else
16144   echo "$as_me: program exited with status $ac_status" >&5
16145 echo "$as_me: failed program was:" >&5
16146 sed 's/^/| /' conftest.$ac_ext >&5
16147
16148 ( exit $ac_status )
16149 ac_cv_c_stack_direction=-1
16150 fi
16151 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16152 fi
16153 fi
16154 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
16155 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
16156
16157 cat >>confdefs.h <<_ACEOF
16158 #define STACK_DIRECTION $ac_cv_c_stack_direction
16159 _ACEOF
16160
16161
16162 fi
16163
16164
16165
16166
16167
16168
16169
16170
16171
16172
16173
16174
16175
16176
16177
16178
16179
16180
16181
16182
16183
16184
16185
16186
16187
16188
16189
16190
16191
16192
16193
16194
16195
16196
16197
16198
16199
16200
16201
16202
16203
16204
16205
16206
16207
16208
16209
16210
16211
16212
16213
16214
16215
16216
16217
16218
16219
16220
16221
16222
16223
16224 for ac_func in \
16225         _lwp_create \
16226         _lwp_self \
16227         _pclose \
16228         _popen \
16229         _snprintf \
16230         _spawnvp \
16231         _stricmp \
16232         _strnicmp \
16233         _vsnprintf \
16234         chsize \
16235         clone \
16236         epoll_create \
16237         ffs \
16238         finite \
16239         fork \
16240         fpclass \
16241         fstatfs \
16242         fstatvfs \
16243         ftruncate \
16244         futimes \
16245         futimesat \
16246         getnetbyname \
16247         getopt_long \
16248         getpagesize \
16249         getprotobyname \
16250         getprotobynumber \
16251         getpwuid \
16252         getservbyport \
16253         gettid \
16254         gettimeofday \
16255         getuid \
16256         inet_network \
16257         lstat \
16258         memmove \
16259         mmap \
16260         pclose \
16261         popen \
16262         pread \
16263         pwrite \
16264         readlink \
16265         rfork \
16266         sched_yield \
16267         select \
16268         sendmsg \
16269         settimeofday \
16270         sigaltstack \
16271         sigprocmask \
16272         snprintf \
16273         spawnvp \
16274         statfs \
16275         statvfs \
16276         strcasecmp \
16277         strerror \
16278         strncasecmp \
16279         tcgetattr \
16280         timegm \
16281         usleep \
16282         vsnprintf \
16283         wait4 \
16284         waitpid \
16285
16286 do
16287 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16288 echo "$as_me:$LINENO: checking for $ac_func" >&5
16289 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16290 if eval "test \"\${$as_ac_var+set}\" = set"; then
16291   echo $ECHO_N "(cached) $ECHO_C" >&6
16292 else
16293   cat >conftest.$ac_ext <<_ACEOF
16294 /* confdefs.h.  */
16295 _ACEOF
16296 cat confdefs.h >>conftest.$ac_ext
16297 cat >>conftest.$ac_ext <<_ACEOF
16298 /* end confdefs.h.  */
16299 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16300    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16301 #define $ac_func innocuous_$ac_func
16302
16303 /* System header to define __stub macros and hopefully few prototypes,
16304     which can conflict with char $ac_func (); below.
16305     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16306     <limits.h> exists even on freestanding compilers.  */
16307
16308 #ifdef __STDC__
16309 # include <limits.h>
16310 #else
16311 # include <assert.h>
16312 #endif
16313
16314 #undef $ac_func
16315
16316 /* Override any gcc2 internal prototype to avoid an error.  */
16317 #ifdef __cplusplus
16318 extern "C"
16319 {
16320 #endif
16321 /* We use char because int might match the return type of a gcc2
16322    builtin and then its argument prototype would still apply.  */
16323 char $ac_func ();
16324 /* The GNU C library defines this for functions which it implements
16325     to always fail with ENOSYS.  Some functions are actually named
16326     something starting with __ and the normal name is an alias.  */
16327 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16328 choke me
16329 #else
16330 char (*f) () = $ac_func;
16331 #endif
16332 #ifdef __cplusplus
16333 }
16334 #endif
16335
16336 int
16337 main ()
16338 {
16339 return f != $ac_func;
16340   ;
16341   return 0;
16342 }
16343 _ACEOF
16344 rm -f conftest.$ac_objext conftest$ac_exeext
16345 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16346   (eval $ac_link) 2>conftest.er1
16347   ac_status=$?
16348   grep -v '^ *+' conftest.er1 >conftest.err
16349   rm -f conftest.er1
16350   cat conftest.err >&5
16351   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16352   (exit $ac_status); } &&
16353          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
16354   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16355   (eval $ac_try) 2>&5
16356   ac_status=$?
16357   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16358   (exit $ac_status); }; } &&
16359          { ac_try='test -s conftest$ac_exeext'
16360   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16361   (eval $ac_try) 2>&5
16362   ac_status=$?
16363   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16364   (exit $ac_status); }; }; then
16365   eval "$as_ac_var=yes"
16366 else
16367   echo "$as_me: failed program was:" >&5
16368 sed 's/^/| /' conftest.$ac_ext >&5
16369
16370 eval "$as_ac_var=no"
16371 fi
16372 rm -f conftest.err conftest.$ac_objext \
16373       conftest$ac_exeext conftest.$ac_ext
16374 fi
16375 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16376 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16377 if test `eval echo '${'$as_ac_var'}'` = yes; then
16378   cat >>confdefs.h <<_ACEOF
16379 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16380 _ACEOF
16381
16382 fi
16383 done
16384
16385
16386
16387
16388
16389 for ac_header in sys/mount.h sys/user.h
16390 do
16391 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16392 echo "$as_me:$LINENO: checking for $ac_header" >&5
16393 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16394 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16395   echo $ECHO_N "(cached) $ECHO_C" >&6
16396 else
16397   cat >conftest.$ac_ext <<_ACEOF
16398 /* confdefs.h.  */
16399 _ACEOF
16400 cat confdefs.h >>conftest.$ac_ext
16401 cat >>conftest.$ac_ext <<_ACEOF
16402 /* end confdefs.h.  */
16403 #include <sys/types.h>
16404      #if HAVE_SYS_PARAM_H
16405      # include <sys/param.h>
16406      #endif
16407
16408 #include <$ac_header>
16409 _ACEOF
16410 rm -f conftest.$ac_objext
16411 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16412   (eval $ac_compile) 2>conftest.er1
16413   ac_status=$?
16414   grep -v '^ *+' conftest.er1 >conftest.err
16415   rm -f conftest.er1
16416   cat conftest.err >&5
16417   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16418   (exit $ac_status); } &&
16419          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
16420   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16421   (eval $ac_try) 2>&5
16422   ac_status=$?
16423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16424   (exit $ac_status); }; } &&
16425          { ac_try='test -s conftest.$ac_objext'
16426   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16427   (eval $ac_try) 2>&5
16428   ac_status=$?
16429   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16430   (exit $ac_status); }; }; then
16431   eval "$as_ac_Header=yes"
16432 else
16433   echo "$as_me: failed program was:" >&5
16434 sed 's/^/| /' conftest.$ac_ext >&5
16435
16436 eval "$as_ac_Header=no"
16437 fi
16438 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16439 fi
16440 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16441 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16442 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16443   cat >>confdefs.h <<_ACEOF
16444 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16445 _ACEOF
16446
16447 fi
16448
16449 done
16450
16451
16452
16453
16454
16455
16456
16457 for ac_header in net/if.h net/if_arp.h net/if_dl.h net/if_types.h net/route.h
16458 do
16459 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16460 echo "$as_me:$LINENO: checking for $ac_header" >&5
16461 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16462 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16463   echo $ECHO_N "(cached) $ECHO_C" >&6
16464 else
16465   cat >conftest.$ac_ext <<_ACEOF
16466 /* confdefs.h.  */
16467 _ACEOF
16468 cat confdefs.h >>conftest.$ac_ext
16469 cat >>conftest.$ac_ext <<_ACEOF
16470 /* end confdefs.h.  */
16471 #include <sys/types.h>
16472      #if HAVE_SYS_SOCKET_H
16473      # include <sys/socket.h>
16474      #endif
16475
16476 #include <$ac_header>
16477 _ACEOF
16478 rm -f conftest.$ac_objext
16479 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16480   (eval $ac_compile) 2>conftest.er1
16481   ac_status=$?
16482   grep -v '^ *+' conftest.er1 >conftest.err
16483   rm -f conftest.er1
16484   cat conftest.err >&5
16485   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16486   (exit $ac_status); } &&
16487          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
16488   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16489   (eval $ac_try) 2>&5
16490   ac_status=$?
16491   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16492   (exit $ac_status); }; } &&
16493          { ac_try='test -s conftest.$ac_objext'
16494   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16495   (eval $ac_try) 2>&5
16496   ac_status=$?
16497   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16498   (exit $ac_status); }; }; then
16499   eval "$as_ac_Header=yes"
16500 else
16501   echo "$as_me: failed program was:" >&5
16502 sed 's/^/| /' conftest.$ac_ext >&5
16503
16504 eval "$as_ac_Header=no"
16505 fi
16506 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16507 fi
16508 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16509 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16510 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16511   cat >>confdefs.h <<_ACEOF
16512 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16513 _ACEOF
16514
16515 fi
16516
16517 done
16518
16519
16520
16521 for ac_header in resolv.h
16522 do
16523 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16524 echo "$as_me:$LINENO: checking for $ac_header" >&5
16525 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16526 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16527   echo $ECHO_N "(cached) $ECHO_C" >&6
16528 else
16529   cat >conftest.$ac_ext <<_ACEOF
16530 /* confdefs.h.  */
16531 _ACEOF
16532 cat confdefs.h >>conftest.$ac_ext
16533 cat >>conftest.$ac_ext <<_ACEOF
16534 /* end confdefs.h.  */
16535 #include <sys/types.h>
16536      #if HAVE_SYS_SOCKET_H
16537      # include <sys/socket.h>
16538      #endif
16539      #if HAVE_NETINET_IN_H
16540      # include <netinet/in.h>
16541      #endif
16542      #if HAVE_ARPA_NAMESER_H
16543      # include <arpa/nameser.h>
16544      #endif
16545
16546 #include <$ac_header>
16547 _ACEOF
16548 rm -f conftest.$ac_objext
16549 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16550   (eval $ac_compile) 2>conftest.er1
16551   ac_status=$?
16552   grep -v '^ *+' conftest.er1 >conftest.err
16553   rm -f conftest.er1
16554   cat conftest.err >&5
16555   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16556   (exit $ac_status); } &&
16557          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
16558   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16559   (eval $ac_try) 2>&5
16560   ac_status=$?
16561   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16562   (exit $ac_status); }; } &&
16563          { ac_try='test -s conftest.$ac_objext'
16564   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16565   (eval $ac_try) 2>&5
16566   ac_status=$?
16567   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16568   (exit $ac_status); }; }; then
16569   eval "$as_ac_Header=yes"
16570 else
16571   echo "$as_me: failed program was:" >&5
16572 sed 's/^/| /' conftest.$ac_ext >&5
16573
16574 eval "$as_ac_Header=no"
16575 fi
16576 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16577 fi
16578 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16579 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16580 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16581   cat >>confdefs.h <<_ACEOF
16582 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16583 _ACEOF
16584
16585 fi
16586
16587 done
16588
16589
16590
16591 for ac_header in ucontext.h
16592 do
16593 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16594 echo "$as_me:$LINENO: checking for $ac_header" >&5
16595 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16596 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16597   echo $ECHO_N "(cached) $ECHO_C" >&6
16598 else
16599   cat >conftest.$ac_ext <<_ACEOF
16600 /* confdefs.h.  */
16601 _ACEOF
16602 cat confdefs.h >>conftest.$ac_ext
16603 cat >>conftest.$ac_ext <<_ACEOF
16604 /* end confdefs.h.  */
16605 #include <signal.h>
16606
16607 #include <$ac_header>
16608 _ACEOF
16609 rm -f conftest.$ac_objext
16610 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16611   (eval $ac_compile) 2>conftest.er1
16612   ac_status=$?
16613   grep -v '^ *+' conftest.er1 >conftest.err
16614   rm -f conftest.er1
16615   cat conftest.err >&5
16616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16617   (exit $ac_status); } &&
16618          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
16619   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16620   (eval $ac_try) 2>&5
16621   ac_status=$?
16622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16623   (exit $ac_status); }; } &&
16624          { ac_try='test -s conftest.$ac_objext'
16625   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16626   (eval $ac_try) 2>&5
16627   ac_status=$?
16628   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16629   (exit $ac_status); }; }; then
16630   eval "$as_ac_Header=yes"
16631 else
16632   echo "$as_me: failed program was:" >&5
16633 sed 's/^/| /' conftest.$ac_ext >&5
16634
16635 eval "$as_ac_Header=no"
16636 fi
16637 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16638 fi
16639 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16640 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16641 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16642   cat >>confdefs.h <<_ACEOF
16643 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16644 _ACEOF
16645
16646 fi
16647
16648 done
16649
16650
16651
16652
16653 for ac_header in linux/videodev.h
16654 do
16655 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16656 echo "$as_me:$LINENO: checking for $ac_header" >&5
16657 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16658 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16659   echo $ECHO_N "(cached) $ECHO_C" >&6
16660 else
16661   cat >conftest.$ac_ext <<_ACEOF
16662 /* confdefs.h.  */
16663 _ACEOF
16664 cat confdefs.h >>conftest.$ac_ext
16665 cat >>conftest.$ac_ext <<_ACEOF
16666 /* end confdefs.h.  */
16667 #ifdef HAVE_SYS_TIME_H
16668 #include <sys/time.h>
16669 #endif
16670 #ifdef HAVE_ASM_TYPES_H
16671 #include <asm/types.h>
16672 #endif
16673
16674 #include <$ac_header>
16675 _ACEOF
16676 rm -f conftest.$ac_objext
16677 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16678   (eval $ac_compile) 2>conftest.er1
16679   ac_status=$?
16680   grep -v '^ *+' conftest.er1 >conftest.err
16681   rm -f conftest.er1
16682   cat conftest.err >&5
16683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16684   (exit $ac_status); } &&
16685          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
16686   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16687   (eval $ac_try) 2>&5
16688   ac_status=$?
16689   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16690   (exit $ac_status); }; } &&
16691          { ac_try='test -s conftest.$ac_objext'
16692   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16693   (eval $ac_try) 2>&5
16694   ac_status=$?
16695   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16696   (exit $ac_status); }; }; then
16697   eval "$as_ac_Header=yes"
16698 else
16699   echo "$as_me: failed program was:" >&5
16700 sed 's/^/| /' conftest.$ac_ext >&5
16701
16702 eval "$as_ac_Header=no"
16703 fi
16704 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16705 fi
16706 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16707 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16708 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16709   cat >>confdefs.h <<_ACEOF
16710 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16711 _ACEOF
16712
16713 fi
16714
16715 done
16716
16717
16718
16719 echo "$as_me:$LINENO: checking for GNU style IPX support" >&5
16720 echo $ECHO_N "checking for GNU style IPX support... $ECHO_C" >&6
16721 if test "${ac_cv_c_ipx_gnu+set}" = set; then
16722   echo $ECHO_N "(cached) $ECHO_C" >&6
16723 else
16724   cat >conftest.$ac_ext <<_ACEOF
16725 /* confdefs.h.  */
16726 _ACEOF
16727 cat confdefs.h >>conftest.$ac_ext
16728 cat >>conftest.$ac_ext <<_ACEOF
16729 /* end confdefs.h.  */
16730 #include <sys/types.h>
16731     #ifdef HAVE_SYS_SOCKET_H
16732     # include <sys/socket.h>
16733     #endif
16734     #include <netipx/ipx.h>
16735 int
16736 main ()
16737 {
16738 ((struct sockaddr_ipx *)0)->sipx_family == AF_IPX
16739   ;
16740   return 0;
16741 }
16742 _ACEOF
16743 rm -f conftest.$ac_objext
16744 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16745   (eval $ac_compile) 2>conftest.er1
16746   ac_status=$?
16747   grep -v '^ *+' conftest.er1 >conftest.err
16748   rm -f conftest.er1
16749   cat conftest.err >&5
16750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16751   (exit $ac_status); } &&
16752          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
16753   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16754   (eval $ac_try) 2>&5
16755   ac_status=$?
16756   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16757   (exit $ac_status); }; } &&
16758          { ac_try='test -s conftest.$ac_objext'
16759   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16760   (eval $ac_try) 2>&5
16761   ac_status=$?
16762   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16763   (exit $ac_status); }; }; then
16764   ac_cv_c_ipx_gnu="yes"
16765 else
16766   echo "$as_me: failed program was:" >&5
16767 sed 's/^/| /' conftest.$ac_ext >&5
16768
16769 ac_cv_c_ipx_gnu="no"
16770 fi
16771 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16772
16773 fi
16774 echo "$as_me:$LINENO: result: $ac_cv_c_ipx_gnu" >&5
16775 echo "${ECHO_T}$ac_cv_c_ipx_gnu" >&6
16776 if test "$ac_cv_c_ipx_gnu" = "yes"
16777 then
16778
16779 cat >>confdefs.h <<\_ACEOF
16780 #define HAVE_IPX_GNU 1
16781 _ACEOF
16782
16783 fi
16784
16785 if test "$ac_cv_c_ipx_gnu" = "no"
16786 then
16787  echo "$as_me:$LINENO: checking for linux style IPX support" >&5
16788 echo $ECHO_N "checking for linux style IPX support... $ECHO_C" >&6
16789 if test "${ac_cv_c_ipx_linux+set}" = set; then
16790   echo $ECHO_N "(cached) $ECHO_C" >&6
16791 else
16792   cat >conftest.$ac_ext <<_ACEOF
16793 /* confdefs.h.  */
16794 _ACEOF
16795 cat confdefs.h >>conftest.$ac_ext
16796 cat >>conftest.$ac_ext <<_ACEOF
16797 /* end confdefs.h.  */
16798 #include <sys/types.h>
16799      #ifdef HAVE_SYS_SOCKET_H
16800      # include <sys/socket.h>
16801      #endif
16802      #include <asm/types.h>
16803      #include <linux/ipx.h>
16804 int
16805 main ()
16806 {
16807 ((struct sockaddr_ipx *)0)->sipx_family == AF_IPX
16808   ;
16809   return 0;
16810 }
16811 _ACEOF
16812 rm -f conftest.$ac_objext
16813 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16814   (eval $ac_compile) 2>conftest.er1
16815   ac_status=$?
16816   grep -v '^ *+' conftest.er1 >conftest.err
16817   rm -f conftest.er1
16818   cat conftest.err >&5
16819   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16820   (exit $ac_status); } &&
16821          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
16822   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16823   (eval $ac_try) 2>&5
16824   ac_status=$?
16825   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16826   (exit $ac_status); }; } &&
16827          { ac_try='test -s conftest.$ac_objext'
16828   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16829   (eval $ac_try) 2>&5
16830   ac_status=$?
16831   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16832   (exit $ac_status); }; }; then
16833   ac_cv_c_ipx_linux="yes"
16834 else
16835   echo "$as_me: failed program was:" >&5
16836 sed 's/^/| /' conftest.$ac_ext >&5
16837
16838 ac_cv_c_ipx_linux="no"
16839 fi
16840 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16841
16842 fi
16843 echo "$as_me:$LINENO: result: $ac_cv_c_ipx_linux" >&5
16844 echo "${ECHO_T}$ac_cv_c_ipx_linux" >&6
16845   if test "$ac_cv_c_ipx_linux" = "yes"
16846   then
16847
16848 cat >>confdefs.h <<\_ACEOF
16849 #define HAVE_IPX_LINUX 1
16850 _ACEOF
16851
16852   fi
16853 fi
16854
16855
16856 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
16857 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
16858 if test "${ac_cv_c_const+set}" = set; then
16859   echo $ECHO_N "(cached) $ECHO_C" >&6
16860 else
16861   cat >conftest.$ac_ext <<_ACEOF
16862 /* confdefs.h.  */
16863 _ACEOF
16864 cat confdefs.h >>conftest.$ac_ext
16865 cat >>conftest.$ac_ext <<_ACEOF
16866 /* end confdefs.h.  */
16867
16868 int
16869 main ()
16870 {
16871 /* FIXME: Include the comments suggested by Paul. */
16872 #ifndef __cplusplus
16873   /* Ultrix mips cc rejects this.  */
16874   typedef int charset[2];
16875   const charset x;
16876   /* SunOS 4.1.1 cc rejects this.  */
16877   char const *const *ccp;
16878   char **p;
16879   /* NEC SVR4.0.2 mips cc rejects this.  */
16880   struct point {int x, y;};
16881   static struct point const zero = {0,0};
16882   /* AIX XL C 1.02.0.0 rejects this.
16883      It does not let you subtract one const X* pointer from another in
16884      an arm of an if-expression whose if-part is not a constant
16885      expression */
16886   const char *g = "string";
16887   ccp = &g + (g ? g-g : 0);
16888   /* HPUX 7.0 cc rejects these. */
16889   ++ccp;
16890   p = (char**) ccp;
16891   ccp = (char const *const *) p;
16892   { /* SCO 3.2v4 cc rejects this.  */
16893     char *t;
16894     char const *s = 0 ? (char *) 0 : (char const *) 0;
16895
16896     *t++ = 0;
16897   }
16898   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
16899     int x[] = {25, 17};
16900     const int *foo = &x[0];
16901     ++foo;
16902   }
16903   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
16904     typedef const int *iptr;
16905     iptr p = 0;
16906     ++p;
16907   }
16908   { /* AIX XL C 1.02.0.0 rejects this saying
16909        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
16910     struct s { int j; const int *ap[3]; };
16911     struct s *b; b->j = 5;
16912   }
16913   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
16914     const int foo = 10;
16915   }
16916 #endif
16917
16918   ;
16919   return 0;
16920 }
16921 _ACEOF
16922 rm -f conftest.$ac_objext
16923 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16924   (eval $ac_compile) 2>conftest.er1
16925   ac_status=$?
16926   grep -v '^ *+' conftest.er1 >conftest.err
16927   rm -f conftest.er1
16928   cat conftest.err >&5
16929   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16930   (exit $ac_status); } &&
16931          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
16932   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16933   (eval $ac_try) 2>&5
16934   ac_status=$?
16935   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16936   (exit $ac_status); }; } &&
16937          { ac_try='test -s conftest.$ac_objext'
16938   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16939   (eval $ac_try) 2>&5
16940   ac_status=$?
16941   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16942   (exit $ac_status); }; }; then
16943   ac_cv_c_const=yes
16944 else
16945   echo "$as_me: failed program was:" >&5
16946 sed 's/^/| /' conftest.$ac_ext >&5
16947
16948 ac_cv_c_const=no
16949 fi
16950 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16951 fi
16952 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
16953 echo "${ECHO_T}$ac_cv_c_const" >&6
16954 if test $ac_cv_c_const = no; then
16955
16956 cat >>confdefs.h <<\_ACEOF
16957 #define const
16958 _ACEOF
16959
16960 fi
16961
16962 echo "$as_me:$LINENO: checking for inline" >&5
16963 echo $ECHO_N "checking for inline... $ECHO_C" >&6
16964 if test "${ac_cv_c_inline+set}" = set; then
16965   echo $ECHO_N "(cached) $ECHO_C" >&6
16966 else
16967   ac_cv_c_inline=no
16968 for ac_kw in inline __inline__ __inline; do
16969   cat >conftest.$ac_ext <<_ACEOF
16970 /* confdefs.h.  */
16971 _ACEOF
16972 cat confdefs.h >>conftest.$ac_ext
16973 cat >>conftest.$ac_ext <<_ACEOF
16974 /* end confdefs.h.  */
16975 #ifndef __cplusplus
16976 typedef int foo_t;
16977 static $ac_kw foo_t static_foo () {return 0; }
16978 $ac_kw foo_t foo () {return 0; }
16979 #endif
16980
16981 _ACEOF
16982 rm -f conftest.$ac_objext
16983 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16984   (eval $ac_compile) 2>conftest.er1
16985   ac_status=$?
16986   grep -v '^ *+' conftest.er1 >conftest.err
16987   rm -f conftest.er1
16988   cat conftest.err >&5
16989   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16990   (exit $ac_status); } &&
16991          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
16992   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16993   (eval $ac_try) 2>&5
16994   ac_status=$?
16995   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16996   (exit $ac_status); }; } &&
16997          { ac_try='test -s conftest.$ac_objext'
16998   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16999   (eval $ac_try) 2>&5
17000   ac_status=$?
17001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17002   (exit $ac_status); }; }; then
17003   ac_cv_c_inline=$ac_kw; break
17004 else
17005   echo "$as_me: failed program was:" >&5
17006 sed 's/^/| /' conftest.$ac_ext >&5
17007
17008 fi
17009 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17010 done
17011
17012 fi
17013 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
17014 echo "${ECHO_T}$ac_cv_c_inline" >&6
17015
17016
17017 case $ac_cv_c_inline in
17018   inline | yes) ;;
17019   *)
17020     case $ac_cv_c_inline in
17021       no) ac_val=;;
17022       *) ac_val=$ac_cv_c_inline;;
17023     esac
17024     cat >>confdefs.h <<_ACEOF
17025 #ifndef __cplusplus
17026 #define inline $ac_val
17027 #endif
17028 _ACEOF
17029     ;;
17030 esac
17031
17032 echo "$as_me:$LINENO: checking for mode_t" >&5
17033 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
17034 if test "${ac_cv_type_mode_t+set}" = set; then
17035   echo $ECHO_N "(cached) $ECHO_C" >&6
17036 else
17037   cat >conftest.$ac_ext <<_ACEOF
17038 /* confdefs.h.  */
17039 _ACEOF
17040 cat confdefs.h >>conftest.$ac_ext
17041 cat >>conftest.$ac_ext <<_ACEOF
17042 /* end confdefs.h.  */
17043 $ac_includes_default
17044 int
17045 main ()
17046 {
17047 if ((mode_t *) 0)
17048   return 0;
17049 if (sizeof (mode_t))
17050   return 0;
17051   ;
17052   return 0;
17053 }
17054 _ACEOF
17055 rm -f conftest.$ac_objext
17056 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17057   (eval $ac_compile) 2>conftest.er1
17058   ac_status=$?
17059   grep -v '^ *+' conftest.er1 >conftest.err
17060   rm -f conftest.er1
17061   cat conftest.err >&5
17062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17063   (exit $ac_status); } &&
17064          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
17065   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17066   (eval $ac_try) 2>&5
17067   ac_status=$?
17068   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17069   (exit $ac_status); }; } &&
17070          { ac_try='test -s conftest.$ac_objext'
17071   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17072   (eval $ac_try) 2>&5
17073   ac_status=$?
17074   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17075   (exit $ac_status); }; }; then
17076   ac_cv_type_mode_t=yes
17077 else
17078   echo "$as_me: failed program was:" >&5
17079 sed 's/^/| /' conftest.$ac_ext >&5
17080
17081 ac_cv_type_mode_t=no
17082 fi
17083 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17084 fi
17085 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
17086 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
17087 if test $ac_cv_type_mode_t = yes; then
17088
17089 cat >>confdefs.h <<_ACEOF
17090 #define HAVE_MODE_T 1
17091 _ACEOF
17092
17093
17094 fi
17095 echo "$as_me:$LINENO: checking for off_t" >&5
17096 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
17097 if test "${ac_cv_type_off_t+set}" = set; then
17098   echo $ECHO_N "(cached) $ECHO_C" >&6
17099 else
17100   cat >conftest.$ac_ext <<_ACEOF
17101 /* confdefs.h.  */
17102 _ACEOF
17103 cat confdefs.h >>conftest.$ac_ext
17104 cat >>conftest.$ac_ext <<_ACEOF
17105 /* end confdefs.h.  */
17106 $ac_includes_default
17107 int
17108 main ()
17109 {
17110 if ((off_t *) 0)
17111   return 0;
17112 if (sizeof (off_t))
17113   return 0;
17114   ;
17115   return 0;
17116 }
17117 _ACEOF
17118 rm -f conftest.$ac_objext
17119 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17120   (eval $ac_compile) 2>conftest.er1
17121   ac_status=$?
17122   grep -v '^ *+' conftest.er1 >conftest.err
17123   rm -f conftest.er1
17124   cat conftest.err >&5
17125   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17126   (exit $ac_status); } &&
17127          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
17128   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17129   (eval $ac_try) 2>&5
17130   ac_status=$?
17131   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17132   (exit $ac_status); }; } &&
17133          { ac_try='test -s conftest.$ac_objext'
17134   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17135   (eval $ac_try) 2>&5
17136   ac_status=$?
17137   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17138   (exit $ac_status); }; }; then
17139   ac_cv_type_off_t=yes
17140 else
17141   echo "$as_me: failed program was:" >&5
17142 sed 's/^/| /' conftest.$ac_ext >&5
17143
17144 ac_cv_type_off_t=no
17145 fi
17146 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17147 fi
17148 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
17149 echo "${ECHO_T}$ac_cv_type_off_t" >&6
17150 if test $ac_cv_type_off_t = yes; then
17151
17152 cat >>confdefs.h <<_ACEOF
17153 #define HAVE_OFF_T 1
17154 _ACEOF
17155
17156
17157 fi
17158 echo "$as_me:$LINENO: checking for pid_t" >&5
17159 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
17160 if test "${ac_cv_type_pid_t+set}" = set; then
17161   echo $ECHO_N "(cached) $ECHO_C" >&6
17162 else
17163   cat >conftest.$ac_ext <<_ACEOF
17164 /* confdefs.h.  */
17165 _ACEOF
17166 cat confdefs.h >>conftest.$ac_ext
17167 cat >>conftest.$ac_ext <<_ACEOF
17168 /* end confdefs.h.  */
17169 $ac_includes_default
17170 int
17171 main ()
17172 {
17173 if ((pid_t *) 0)
17174   return 0;
17175 if (sizeof (pid_t))
17176   return 0;
17177   ;
17178   return 0;
17179 }
17180 _ACEOF
17181 rm -f conftest.$ac_objext
17182 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17183   (eval $ac_compile) 2>conftest.er1
17184   ac_status=$?
17185   grep -v '^ *+' conftest.er1 >conftest.err
17186   rm -f conftest.er1
17187   cat conftest.err >&5
17188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17189   (exit $ac_status); } &&
17190          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
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); }; } &&
17196          { ac_try='test -s conftest.$ac_objext'
17197   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17198   (eval $ac_try) 2>&5
17199   ac_status=$?
17200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17201   (exit $ac_status); }; }; then
17202   ac_cv_type_pid_t=yes
17203 else
17204   echo "$as_me: failed program was:" >&5
17205 sed 's/^/| /' conftest.$ac_ext >&5
17206
17207 ac_cv_type_pid_t=no
17208 fi
17209 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17210 fi
17211 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
17212 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
17213 if test $ac_cv_type_pid_t = yes; then
17214
17215 cat >>confdefs.h <<_ACEOF
17216 #define HAVE_PID_T 1
17217 _ACEOF
17218
17219
17220 fi
17221 echo "$as_me:$LINENO: checking for size_t" >&5
17222 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
17223 if test "${ac_cv_type_size_t+set}" = set; then
17224   echo $ECHO_N "(cached) $ECHO_C" >&6
17225 else
17226   cat >conftest.$ac_ext <<_ACEOF
17227 /* confdefs.h.  */
17228 _ACEOF
17229 cat confdefs.h >>conftest.$ac_ext
17230 cat >>conftest.$ac_ext <<_ACEOF
17231 /* end confdefs.h.  */
17232 $ac_includes_default
17233 int
17234 main ()
17235 {
17236 if ((size_t *) 0)
17237   return 0;
17238 if (sizeof (size_t))
17239   return 0;
17240   ;
17241   return 0;
17242 }
17243 _ACEOF
17244 rm -f conftest.$ac_objext
17245 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17246   (eval $ac_compile) 2>conftest.er1
17247   ac_status=$?
17248   grep -v '^ *+' conftest.er1 >conftest.err
17249   rm -f conftest.er1
17250   cat conftest.err >&5
17251   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17252   (exit $ac_status); } &&
17253          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
17254   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17255   (eval $ac_try) 2>&5
17256   ac_status=$?
17257   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17258   (exit $ac_status); }; } &&
17259          { ac_try='test -s conftest.$ac_objext'
17260   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17261   (eval $ac_try) 2>&5
17262   ac_status=$?
17263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17264   (exit $ac_status); }; }; then
17265   ac_cv_type_size_t=yes
17266 else
17267   echo "$as_me: failed program was:" >&5
17268 sed 's/^/| /' conftest.$ac_ext >&5
17269
17270 ac_cv_type_size_t=no
17271 fi
17272 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17273 fi
17274 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
17275 echo "${ECHO_T}$ac_cv_type_size_t" >&6
17276 if test $ac_cv_type_size_t = yes; then
17277
17278 cat >>confdefs.h <<_ACEOF
17279 #define HAVE_SIZE_T 1
17280 _ACEOF
17281
17282
17283 fi
17284 echo "$as_me:$LINENO: checking for ssize_t" >&5
17285 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
17286 if test "${ac_cv_type_ssize_t+set}" = set; then
17287   echo $ECHO_N "(cached) $ECHO_C" >&6
17288 else
17289   cat >conftest.$ac_ext <<_ACEOF
17290 /* confdefs.h.  */
17291 _ACEOF
17292 cat confdefs.h >>conftest.$ac_ext
17293 cat >>conftest.$ac_ext <<_ACEOF
17294 /* end confdefs.h.  */
17295 $ac_includes_default
17296 int
17297 main ()
17298 {
17299 if ((ssize_t *) 0)
17300   return 0;
17301 if (sizeof (ssize_t))
17302   return 0;
17303   ;
17304   return 0;
17305 }
17306 _ACEOF
17307 rm -f conftest.$ac_objext
17308 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17309   (eval $ac_compile) 2>conftest.er1
17310   ac_status=$?
17311   grep -v '^ *+' conftest.er1 >conftest.err
17312   rm -f conftest.er1
17313   cat conftest.err >&5
17314   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17315   (exit $ac_status); } &&
17316          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
17317   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17318   (eval $ac_try) 2>&5
17319   ac_status=$?
17320   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17321   (exit $ac_status); }; } &&
17322          { ac_try='test -s conftest.$ac_objext'
17323   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17324   (eval $ac_try) 2>&5
17325   ac_status=$?
17326   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17327   (exit $ac_status); }; }; then
17328   ac_cv_type_ssize_t=yes
17329 else
17330   echo "$as_me: failed program was:" >&5
17331 sed 's/^/| /' conftest.$ac_ext >&5
17332
17333 ac_cv_type_ssize_t=no
17334 fi
17335 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17336 fi
17337 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
17338 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
17339 if test $ac_cv_type_ssize_t = yes; then
17340
17341 cat >>confdefs.h <<_ACEOF
17342 #define HAVE_SSIZE_T 1
17343 _ACEOF
17344
17345
17346 fi
17347 echo "$as_me:$LINENO: checking for long long" >&5
17348 echo $ECHO_N "checking for long long... $ECHO_C" >&6
17349 if test "${ac_cv_type_long_long+set}" = set; then
17350   echo $ECHO_N "(cached) $ECHO_C" >&6
17351 else
17352   cat >conftest.$ac_ext <<_ACEOF
17353 /* confdefs.h.  */
17354 _ACEOF
17355 cat confdefs.h >>conftest.$ac_ext
17356 cat >>conftest.$ac_ext <<_ACEOF
17357 /* end confdefs.h.  */
17358 $ac_includes_default
17359 int
17360 main ()
17361 {
17362 if ((long long *) 0)
17363   return 0;
17364 if (sizeof (long long))
17365   return 0;
17366   ;
17367   return 0;
17368 }
17369 _ACEOF
17370 rm -f conftest.$ac_objext
17371 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17372   (eval $ac_compile) 2>conftest.er1
17373   ac_status=$?
17374   grep -v '^ *+' conftest.er1 >conftest.err
17375   rm -f conftest.er1
17376   cat conftest.err >&5
17377   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17378   (exit $ac_status); } &&
17379          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
17380   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17381   (eval $ac_try) 2>&5
17382   ac_status=$?
17383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17384   (exit $ac_status); }; } &&
17385          { ac_try='test -s conftest.$ac_objext'
17386   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17387   (eval $ac_try) 2>&5
17388   ac_status=$?
17389   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17390   (exit $ac_status); }; }; then
17391   ac_cv_type_long_long=yes
17392 else
17393   echo "$as_me: failed program was:" >&5
17394 sed 's/^/| /' conftest.$ac_ext >&5
17395
17396 ac_cv_type_long_long=no
17397 fi
17398 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17399 fi
17400 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
17401 echo "${ECHO_T}$ac_cv_type_long_long" >&6
17402 if test $ac_cv_type_long_long = yes; then
17403
17404 cat >>confdefs.h <<_ACEOF
17405 #define HAVE_LONG_LONG 1
17406 _ACEOF
17407
17408
17409 fi
17410 echo "$as_me:$LINENO: checking for fsblkcnt_t" >&5
17411 echo $ECHO_N "checking for fsblkcnt_t... $ECHO_C" >&6
17412 if test "${ac_cv_type_fsblkcnt_t+set}" = set; then
17413   echo $ECHO_N "(cached) $ECHO_C" >&6
17414 else
17415   cat >conftest.$ac_ext <<_ACEOF
17416 /* confdefs.h.  */
17417 _ACEOF
17418 cat confdefs.h >>conftest.$ac_ext
17419 cat >>conftest.$ac_ext <<_ACEOF
17420 /* end confdefs.h.  */
17421 $ac_includes_default
17422 int
17423 main ()
17424 {
17425 if ((fsblkcnt_t *) 0)
17426   return 0;
17427 if (sizeof (fsblkcnt_t))
17428   return 0;
17429   ;
17430   return 0;
17431 }
17432 _ACEOF
17433 rm -f conftest.$ac_objext
17434 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17435   (eval $ac_compile) 2>conftest.er1
17436   ac_status=$?
17437   grep -v '^ *+' conftest.er1 >conftest.err
17438   rm -f conftest.er1
17439   cat conftest.err >&5
17440   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17441   (exit $ac_status); } &&
17442          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
17443   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17444   (eval $ac_try) 2>&5
17445   ac_status=$?
17446   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17447   (exit $ac_status); }; } &&
17448          { ac_try='test -s conftest.$ac_objext'
17449   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17450   (eval $ac_try) 2>&5
17451   ac_status=$?
17452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17453   (exit $ac_status); }; }; then
17454   ac_cv_type_fsblkcnt_t=yes
17455 else
17456   echo "$as_me: failed program was:" >&5
17457 sed 's/^/| /' conftest.$ac_ext >&5
17458
17459 ac_cv_type_fsblkcnt_t=no
17460 fi
17461 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17462 fi
17463 echo "$as_me:$LINENO: result: $ac_cv_type_fsblkcnt_t" >&5
17464 echo "${ECHO_T}$ac_cv_type_fsblkcnt_t" >&6
17465 if test $ac_cv_type_fsblkcnt_t = yes; then
17466
17467 cat >>confdefs.h <<_ACEOF
17468 #define HAVE_FSBLKCNT_T 1
17469 _ACEOF
17470
17471
17472 fi
17473 echo "$as_me:$LINENO: checking for fsfilcnt_t" >&5
17474 echo $ECHO_N "checking for fsfilcnt_t... $ECHO_C" >&6
17475 if test "${ac_cv_type_fsfilcnt_t+set}" = set; then
17476   echo $ECHO_N "(cached) $ECHO_C" >&6
17477 else
17478   cat >conftest.$ac_ext <<_ACEOF
17479 /* confdefs.h.  */
17480 _ACEOF
17481 cat confdefs.h >>conftest.$ac_ext
17482 cat >>conftest.$ac_ext <<_ACEOF
17483 /* end confdefs.h.  */
17484 $ac_includes_default
17485 int
17486 main ()
17487 {
17488 if ((fsfilcnt_t *) 0)
17489   return 0;
17490 if (sizeof (fsfilcnt_t))
17491   return 0;
17492   ;
17493   return 0;
17494 }
17495 _ACEOF
17496 rm -f conftest.$ac_objext
17497 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17498   (eval $ac_compile) 2>conftest.er1
17499   ac_status=$?
17500   grep -v '^ *+' conftest.er1 >conftest.err
17501   rm -f conftest.er1
17502   cat conftest.err >&5
17503   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17504   (exit $ac_status); } &&
17505          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
17506   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17507   (eval $ac_try) 2>&5
17508   ac_status=$?
17509   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17510   (exit $ac_status); }; } &&
17511          { ac_try='test -s conftest.$ac_objext'
17512   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17513   (eval $ac_try) 2>&5
17514   ac_status=$?
17515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17516   (exit $ac_status); }; }; then
17517   ac_cv_type_fsfilcnt_t=yes
17518 else
17519   echo "$as_me: failed program was:" >&5
17520 sed 's/^/| /' conftest.$ac_ext >&5
17521
17522 ac_cv_type_fsfilcnt_t=no
17523 fi
17524 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17525 fi
17526 echo "$as_me:$LINENO: result: $ac_cv_type_fsfilcnt_t" >&5
17527 echo "${ECHO_T}$ac_cv_type_fsfilcnt_t" >&6
17528 if test $ac_cv_type_fsfilcnt_t = yes; then
17529
17530 cat >>confdefs.h <<_ACEOF
17531 #define HAVE_FSFILCNT_T 1
17532 _ACEOF
17533
17534
17535 fi
17536
17537 echo "$as_me:$LINENO: checking for sigset_t" >&5
17538 echo $ECHO_N "checking for sigset_t... $ECHO_C" >&6
17539 if test "${ac_cv_type_sigset_t+set}" = set; then
17540   echo $ECHO_N "(cached) $ECHO_C" >&6
17541 else
17542   cat >conftest.$ac_ext <<_ACEOF
17543 /* confdefs.h.  */
17544 _ACEOF
17545 cat confdefs.h >>conftest.$ac_ext
17546 cat >>conftest.$ac_ext <<_ACEOF
17547 /* end confdefs.h.  */
17548 #include <signal.h>
17549
17550 int
17551 main ()
17552 {
17553 if ((sigset_t *) 0)
17554   return 0;
17555 if (sizeof (sigset_t))
17556   return 0;
17557   ;
17558   return 0;
17559 }
17560 _ACEOF
17561 rm -f conftest.$ac_objext
17562 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17563   (eval $ac_compile) 2>conftest.er1
17564   ac_status=$?
17565   grep -v '^ *+' conftest.er1 >conftest.err
17566   rm -f conftest.er1
17567   cat conftest.err >&5
17568   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17569   (exit $ac_status); } &&
17570          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
17571   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17572   (eval $ac_try) 2>&5
17573   ac_status=$?
17574   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17575   (exit $ac_status); }; } &&
17576          { ac_try='test -s conftest.$ac_objext'
17577   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17578   (eval $ac_try) 2>&5
17579   ac_status=$?
17580   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17581   (exit $ac_status); }; }; then
17582   ac_cv_type_sigset_t=yes
17583 else
17584   echo "$as_me: failed program was:" >&5
17585 sed 's/^/| /' conftest.$ac_ext >&5
17586
17587 ac_cv_type_sigset_t=no
17588 fi
17589 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17590 fi
17591 echo "$as_me:$LINENO: result: $ac_cv_type_sigset_t" >&5
17592 echo "${ECHO_T}$ac_cv_type_sigset_t" >&6
17593 if test $ac_cv_type_sigset_t = yes; then
17594
17595 cat >>confdefs.h <<_ACEOF
17596 #define HAVE_SIGSET_T 1
17597 _ACEOF
17598
17599
17600 fi
17601
17602
17603 echo "$as_me:$LINENO: checking whether linux/input.h is for real" >&5
17604 echo $ECHO_N "checking whether linux/input.h is for real... $ECHO_C" >&6
17605 if test "${wine_cv_linux_input_h+set}" = set; then
17606   echo $ECHO_N "(cached) $ECHO_C" >&6
17607 else
17608   cat >conftest.$ac_ext <<_ACEOF
17609 /* confdefs.h.  */
17610 _ACEOF
17611 cat confdefs.h >>conftest.$ac_ext
17612 cat >>conftest.$ac_ext <<_ACEOF
17613 /* end confdefs.h.  */
17614
17615             #include <linux/input.h>
17616
17617 int
17618 main ()
17619 {
17620
17621             int foo = EVIOCGBIT(EV_ABS,42);
17622             int bar = BTN_PINKIE;
17623             int fortytwo = 42;
17624
17625   ;
17626   return 0;
17627 }
17628 _ACEOF
17629 rm -f conftest.$ac_objext
17630 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17631   (eval $ac_compile) 2>conftest.er1
17632   ac_status=$?
17633   grep -v '^ *+' conftest.er1 >conftest.err
17634   rm -f conftest.er1
17635   cat conftest.err >&5
17636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17637   (exit $ac_status); } &&
17638          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
17639   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17640   (eval $ac_try) 2>&5
17641   ac_status=$?
17642   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17643   (exit $ac_status); }; } &&
17644          { ac_try='test -s conftest.$ac_objext'
17645   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17646   (eval $ac_try) 2>&5
17647   ac_status=$?
17648   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17649   (exit $ac_status); }; }; then
17650   wine_cv_linux_input_h=yes
17651 else
17652   echo "$as_me: failed program was:" >&5
17653 sed 's/^/| /' conftest.$ac_ext >&5
17654
17655 wine_cv_linux_input_h=no
17656 fi
17657 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17658
17659 fi
17660 echo "$as_me:$LINENO: result: $wine_cv_linux_input_h" >&5
17661 echo "${ECHO_T}$wine_cv_linux_input_h" >&6
17662     if test "$wine_cv_linux_input_h" = "yes"
17663     then
17664
17665 cat >>confdefs.h <<\_ACEOF
17666 #define HAVE_CORRECT_LINUXINPUT_H 1
17667 _ACEOF
17668
17669     fi
17670
17671 echo "$as_me:$LINENO: checking for sigaddset" >&5
17672 echo $ECHO_N "checking for sigaddset... $ECHO_C" >&6
17673 if test "${wine_cv_have_sigaddset+set}" = set; then
17674   echo $ECHO_N "(cached) $ECHO_C" >&6
17675 else
17676   cat >conftest.$ac_ext <<_ACEOF
17677 /* confdefs.h.  */
17678 _ACEOF
17679 cat confdefs.h >>conftest.$ac_ext
17680 cat >>conftest.$ac_ext <<_ACEOF
17681 /* end confdefs.h.  */
17682 #include <signal.h>
17683 int
17684 main ()
17685 {
17686 sigset_t set; sigaddset(&set,SIGTERM);
17687   ;
17688   return 0;
17689 }
17690 _ACEOF
17691 rm -f conftest.$ac_objext conftest$ac_exeext
17692 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17693   (eval $ac_link) 2>conftest.er1
17694   ac_status=$?
17695   grep -v '^ *+' conftest.er1 >conftest.err
17696   rm -f conftest.er1
17697   cat conftest.err >&5
17698   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17699   (exit $ac_status); } &&
17700          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
17701   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17702   (eval $ac_try) 2>&5
17703   ac_status=$?
17704   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17705   (exit $ac_status); }; } &&
17706          { ac_try='test -s conftest$ac_exeext'
17707   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17708   (eval $ac_try) 2>&5
17709   ac_status=$?
17710   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17711   (exit $ac_status); }; }; then
17712   wine_cv_have_sigaddset=yes
17713 else
17714   echo "$as_me: failed program was:" >&5
17715 sed 's/^/| /' conftest.$ac_ext >&5
17716
17717 wine_cv_have_sigaddset=no
17718 fi
17719 rm -f conftest.err conftest.$ac_objext \
17720       conftest$ac_exeext conftest.$ac_ext
17721 fi
17722 echo "$as_me:$LINENO: result: $wine_cv_have_sigaddset" >&5
17723 echo "${ECHO_T}$wine_cv_have_sigaddset" >&6
17724 if test "$wine_cv_have_sigaddset" = "yes"
17725 then
17726
17727 cat >>confdefs.h <<\_ACEOF
17728 #define HAVE_SIGADDSET 1
17729 _ACEOF
17730
17731 fi
17732
17733
17734 echo "$as_me:$LINENO: checking whether we can use re-entrant gethostbyname_r Linux style" >&5
17735 echo $ECHO_N "checking whether we can use re-entrant gethostbyname_r Linux style... $ECHO_C" >&6
17736 if test "${wine_cv_linux_gethostbyname_r_6+set}" = set; then
17737   echo $ECHO_N "(cached) $ECHO_C" >&6
17738 else
17739   cat >conftest.$ac_ext <<_ACEOF
17740 /* confdefs.h.  */
17741 _ACEOF
17742 cat confdefs.h >>conftest.$ac_ext
17743 cat >>conftest.$ac_ext <<_ACEOF
17744 /* end confdefs.h.  */
17745
17746 #include <netdb.h>
17747
17748 int
17749 main ()
17750 {
17751
17752     char *name=NULL;
17753     struct hostent he;
17754     struct hostent *result;
17755     char *buf=NULL;
17756     int bufsize=0;
17757     int res,errnr;
17758     char *addr=NULL;
17759     int addrlen=0;
17760     int addrtype=0;
17761     res=gethostbyname_r(name,&he,buf,bufsize,&result,&errnr);
17762     res=gethostbyaddr_r(addr, addrlen, addrtype,&he,buf,bufsize,&result,&errnr);
17763
17764   ;
17765   return 0;
17766 }
17767 _ACEOF
17768 rm -f conftest.$ac_objext conftest$ac_exeext
17769 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17770   (eval $ac_link) 2>conftest.er1
17771   ac_status=$?
17772   grep -v '^ *+' conftest.er1 >conftest.err
17773   rm -f conftest.er1
17774   cat conftest.err >&5
17775   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17776   (exit $ac_status); } &&
17777          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
17778   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17779   (eval $ac_try) 2>&5
17780   ac_status=$?
17781   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17782   (exit $ac_status); }; } &&
17783          { ac_try='test -s conftest$ac_exeext'
17784   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17785   (eval $ac_try) 2>&5
17786   ac_status=$?
17787   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17788   (exit $ac_status); }; }; then
17789   wine_cv_linux_gethostbyname_r_6=yes
17790 else
17791   echo "$as_me: failed program was:" >&5
17792 sed 's/^/| /' conftest.$ac_ext >&5
17793
17794 wine_cv_linux_gethostbyname_r_6=no
17795
17796 fi
17797 rm -f conftest.err conftest.$ac_objext \
17798       conftest$ac_exeext conftest.$ac_ext
17799
17800 fi
17801 echo "$as_me:$LINENO: result: $wine_cv_linux_gethostbyname_r_6" >&5
17802 echo "${ECHO_T}$wine_cv_linux_gethostbyname_r_6" >&6
17803    if test "$wine_cv_linux_gethostbyname_r_6" = "yes"
17804    then
17805
17806 cat >>confdefs.h <<\_ACEOF
17807 #define HAVE_LINUX_GETHOSTBYNAME_R_6 1
17808 _ACEOF
17809
17810    fi
17811
17812 if test "$ac_cv_header_linux_joystick_h" = "yes"
17813 then
17814    echo "$as_me:$LINENO: checking whether linux/joystick.h uses the Linux 2.2+ API" >&5
17815 echo $ECHO_N "checking whether linux/joystick.h uses the Linux 2.2+ API... $ECHO_C" >&6
17816 if test "${wine_cv_linux_joystick_22_api+set}" = set; then
17817   echo $ECHO_N "(cached) $ECHO_C" >&6
17818 else
17819   cat >conftest.$ac_ext <<_ACEOF
17820 /* confdefs.h.  */
17821 _ACEOF
17822 cat confdefs.h >>conftest.$ac_ext
17823 cat >>conftest.$ac_ext <<_ACEOF
17824 /* end confdefs.h.  */
17825
17826         #include <sys/ioctl.h>
17827         #include <linux/joystick.h>
17828
17829         struct js_event blub;
17830         #if !defined(JS_EVENT_AXIS) || !defined(JS_EVENT_BUTTON)
17831         #error "no 2.2 header"
17832         #endif
17833
17834 int
17835 main ()
17836 {
17837 /*empty*/
17838   ;
17839   return 0;
17840 }
17841 _ACEOF
17842 rm -f conftest.$ac_objext
17843 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17844   (eval $ac_compile) 2>conftest.er1
17845   ac_status=$?
17846   grep -v '^ *+' conftest.er1 >conftest.err
17847   rm -f conftest.er1
17848   cat conftest.err >&5
17849   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17850   (exit $ac_status); } &&
17851          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
17852   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17853   (eval $ac_try) 2>&5
17854   ac_status=$?
17855   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17856   (exit $ac_status); }; } &&
17857          { ac_try='test -s conftest.$ac_objext'
17858   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17859   (eval $ac_try) 2>&5
17860   ac_status=$?
17861   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17862   (exit $ac_status); }; }; then
17863   wine_cv_linux_joystick_22_api=yes
17864 else
17865   echo "$as_me: failed program was:" >&5
17866 sed 's/^/| /' conftest.$ac_ext >&5
17867
17868 wine_cv_linux_joystick_22_api=no
17869 fi
17870 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17871
17872 fi
17873 echo "$as_me:$LINENO: result: $wine_cv_linux_joystick_22_api" >&5
17874 echo "${ECHO_T}$wine_cv_linux_joystick_22_api" >&6
17875    if test "$wine_cv_linux_joystick_22_api" = "yes"
17876    then
17877
17878 cat >>confdefs.h <<\_ACEOF
17879 #define HAVE_LINUX_22_JOYSTICK_API 1
17880 _ACEOF
17881
17882    fi
17883 fi
17884
17885
17886 if test "$ac_cv_header_sys_vfs_h" = "yes"
17887 then
17888     echo "$as_me:$LINENO: checking whether sys/vfs.h defines statfs" >&5
17889 echo $ECHO_N "checking whether sys/vfs.h defines statfs... $ECHO_C" >&6
17890 if test "${wine_cv_sys_vfs_has_statfs+set}" = set; then
17891   echo $ECHO_N "(cached) $ECHO_C" >&6
17892 else
17893   cat >conftest.$ac_ext <<_ACEOF
17894 /* confdefs.h.  */
17895 _ACEOF
17896 cat confdefs.h >>conftest.$ac_ext
17897 cat >>conftest.$ac_ext <<_ACEOF
17898 /* end confdefs.h.  */
17899
17900         #include <sys/types.h>
17901         #ifdef HAVE_SYS_PARAM_H
17902         # include <sys/param.h>
17903         #endif
17904         #include <sys/vfs.h>
17905
17906 int
17907 main ()
17908 {
17909
17910                 struct statfs stfs;
17911
17912                 memset(&stfs,0,sizeof(stfs));
17913
17914   ;
17915   return 0;
17916 }
17917 _ACEOF
17918 rm -f conftest.$ac_objext
17919 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17920   (eval $ac_compile) 2>conftest.er1
17921   ac_status=$?
17922   grep -v '^ *+' conftest.er1 >conftest.err
17923   rm -f conftest.er1
17924   cat conftest.err >&5
17925   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17926   (exit $ac_status); } &&
17927          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
17928   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17929   (eval $ac_try) 2>&5
17930   ac_status=$?
17931   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17932   (exit $ac_status); }; } &&
17933          { ac_try='test -s conftest.$ac_objext'
17934   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17935   (eval $ac_try) 2>&5
17936   ac_status=$?
17937   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17938   (exit $ac_status); }; }; then
17939   wine_cv_sys_vfs_has_statfs=yes
17940 else
17941   echo "$as_me: failed program was:" >&5
17942 sed 's/^/| /' conftest.$ac_ext >&5
17943
17944 wine_cv_sys_vfs_has_statfs=no
17945
17946 fi
17947 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17948
17949 fi
17950 echo "$as_me:$LINENO: result: $wine_cv_sys_vfs_has_statfs" >&5
17951 echo "${ECHO_T}$wine_cv_sys_vfs_has_statfs" >&6
17952     if test "$wine_cv_sys_vfs_has_statfs" = "yes"
17953     then
17954
17955 cat >>confdefs.h <<\_ACEOF
17956 #define STATFS_DEFINED_BY_SYS_VFS 1
17957 _ACEOF
17958
17959     fi
17960 fi
17961
17962 if test "$ac_cv_header_sys_statfs_h" = "yes"
17963 then
17964     echo "$as_me:$LINENO: checking whether sys/statfs.h defines statfs" >&5
17965 echo $ECHO_N "checking whether sys/statfs.h defines statfs... $ECHO_C" >&6
17966 if test "${wine_cv_sys_statfs_has_statfs+set}" = set; then
17967   echo $ECHO_N "(cached) $ECHO_C" >&6
17968 else
17969   cat >conftest.$ac_ext <<_ACEOF
17970 /* confdefs.h.  */
17971 _ACEOF
17972 cat confdefs.h >>conftest.$ac_ext
17973 cat >>conftest.$ac_ext <<_ACEOF
17974 /* end confdefs.h.  */
17975
17976         #include <sys/types.h>
17977         #ifdef HAVE_SYS_PARAM_H
17978         # include <sys/param.h>
17979         #endif
17980         #include <sys/statfs.h>
17981
17982 int
17983 main ()
17984 {
17985
17986                 struct statfs stfs;
17987
17988   ;
17989   return 0;
17990 }
17991 _ACEOF
17992 rm -f conftest.$ac_objext
17993 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17994   (eval $ac_compile) 2>conftest.er1
17995   ac_status=$?
17996   grep -v '^ *+' conftest.er1 >conftest.err
17997   rm -f conftest.er1
17998   cat conftest.err >&5
17999   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18000   (exit $ac_status); } &&
18001          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
18002   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18003   (eval $ac_try) 2>&5
18004   ac_status=$?
18005   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18006   (exit $ac_status); }; } &&
18007          { ac_try='test -s conftest.$ac_objext'
18008   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18009   (eval $ac_try) 2>&5
18010   ac_status=$?
18011   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18012   (exit $ac_status); }; }; then
18013   wine_cv_sys_statfs_has_statfs=yes
18014 else
18015   echo "$as_me: failed program was:" >&5
18016 sed 's/^/| /' conftest.$ac_ext >&5
18017
18018 wine_cv_sys_statfs_has_statfs=no
18019
18020 fi
18021 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18022
18023 fi
18024 echo "$as_me:$LINENO: result: $wine_cv_sys_statfs_has_statfs" >&5
18025 echo "${ECHO_T}$wine_cv_sys_statfs_has_statfs" >&6
18026     if test "$wine_cv_sys_statfs_has_statfs" = "yes"
18027     then
18028
18029 cat >>confdefs.h <<\_ACEOF
18030 #define STATFS_DEFINED_BY_SYS_STATFS 1
18031 _ACEOF
18032
18033     fi
18034 fi
18035
18036 if test "$ac_cv_header_sys_mount_h" = "yes"
18037 then
18038     echo "$as_me:$LINENO: checking whether sys/mount.h defines statfs" >&5
18039 echo $ECHO_N "checking whether sys/mount.h defines statfs... $ECHO_C" >&6
18040 if test "${wine_cv_sys_mount_has_statfs+set}" = set; then
18041   echo $ECHO_N "(cached) $ECHO_C" >&6
18042 else
18043   cat >conftest.$ac_ext <<_ACEOF
18044 /* confdefs.h.  */
18045 _ACEOF
18046 cat confdefs.h >>conftest.$ac_ext
18047 cat >>conftest.$ac_ext <<_ACEOF
18048 /* end confdefs.h.  */
18049
18050         #include <sys/types.h>
18051         #ifdef HAVE_SYS_PARAM_H
18052         # include <sys/param.h>
18053         #endif
18054         #include <sys/mount.h>
18055
18056 int
18057 main ()
18058 {
18059
18060                 struct statfs stfs;
18061
18062   ;
18063   return 0;
18064 }
18065 _ACEOF
18066 rm -f conftest.$ac_objext
18067 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18068   (eval $ac_compile) 2>conftest.er1
18069   ac_status=$?
18070   grep -v '^ *+' conftest.er1 >conftest.err
18071   rm -f conftest.er1
18072   cat conftest.err >&5
18073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18074   (exit $ac_status); } &&
18075          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
18076   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18077   (eval $ac_try) 2>&5
18078   ac_status=$?
18079   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18080   (exit $ac_status); }; } &&
18081          { ac_try='test -s conftest.$ac_objext'
18082   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18083   (eval $ac_try) 2>&5
18084   ac_status=$?
18085   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18086   (exit $ac_status); }; }; then
18087   wine_cv_sys_mount_has_statfs=yes
18088 else
18089   echo "$as_me: failed program was:" >&5
18090 sed 's/^/| /' conftest.$ac_ext >&5
18091
18092 wine_cv_sys_mount_has_statfs=no
18093
18094 fi
18095 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18096
18097 fi
18098 echo "$as_me:$LINENO: result: $wine_cv_sys_mount_has_statfs" >&5
18099 echo "${ECHO_T}$wine_cv_sys_mount_has_statfs" >&6
18100     if test "$wine_cv_sys_mount_has_statfs" = "yes"
18101     then
18102
18103 cat >>confdefs.h <<\_ACEOF
18104 #define STATFS_DEFINED_BY_SYS_MOUNT 1
18105 _ACEOF
18106
18107     fi
18108 fi
18109
18110
18111 echo "$as_me:$LINENO: checking for struct statfs.f_bfree" >&5
18112 echo $ECHO_N "checking for struct statfs.f_bfree... $ECHO_C" >&6
18113 if test "${ac_cv_member_struct_statfs_f_bfree+set}" = set; then
18114   echo $ECHO_N "(cached) $ECHO_C" >&6
18115 else
18116   cat >conftest.$ac_ext <<_ACEOF
18117 /* confdefs.h.  */
18118 _ACEOF
18119 cat confdefs.h >>conftest.$ac_ext
18120 cat >>conftest.$ac_ext <<_ACEOF
18121 /* end confdefs.h.  */
18122 #include <sys/types.h>
18123 #ifdef HAVE_SYS_PARAM_H
18124 # include <sys/param.h>
18125 #endif
18126 #ifdef STATFS_DEFINED_BY_SYS_MOUNT
18127 # include <sys/mount.h>
18128 #else
18129 # ifdef STATFS_DEFINED_BY_SYS_VFS
18130 #  include <sys/vfs.h>
18131 # else
18132 #  ifdef STATFS_DEFINED_BY_SYS_STATFS
18133 #   include <sys/statfs.h>
18134 #  endif
18135 # endif
18136 #endif
18137
18138 int
18139 main ()
18140 {
18141 static struct statfs ac_aggr;
18142 if (ac_aggr.f_bfree)
18143 return 0;
18144   ;
18145   return 0;
18146 }
18147 _ACEOF
18148 rm -f conftest.$ac_objext
18149 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18150   (eval $ac_compile) 2>conftest.er1
18151   ac_status=$?
18152   grep -v '^ *+' conftest.er1 >conftest.err
18153   rm -f conftest.er1
18154   cat conftest.err >&5
18155   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18156   (exit $ac_status); } &&
18157          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
18158   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18159   (eval $ac_try) 2>&5
18160   ac_status=$?
18161   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18162   (exit $ac_status); }; } &&
18163          { ac_try='test -s conftest.$ac_objext'
18164   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18165   (eval $ac_try) 2>&5
18166   ac_status=$?
18167   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18168   (exit $ac_status); }; }; then
18169   ac_cv_member_struct_statfs_f_bfree=yes
18170 else
18171   echo "$as_me: failed program was:" >&5
18172 sed 's/^/| /' conftest.$ac_ext >&5
18173
18174 cat >conftest.$ac_ext <<_ACEOF
18175 /* confdefs.h.  */
18176 _ACEOF
18177 cat confdefs.h >>conftest.$ac_ext
18178 cat >>conftest.$ac_ext <<_ACEOF
18179 /* end confdefs.h.  */
18180 #include <sys/types.h>
18181 #ifdef HAVE_SYS_PARAM_H
18182 # include <sys/param.h>
18183 #endif
18184 #ifdef STATFS_DEFINED_BY_SYS_MOUNT
18185 # include <sys/mount.h>
18186 #else
18187 # ifdef STATFS_DEFINED_BY_SYS_VFS
18188 #  include <sys/vfs.h>
18189 # else
18190 #  ifdef STATFS_DEFINED_BY_SYS_STATFS
18191 #   include <sys/statfs.h>
18192 #  endif
18193 # endif
18194 #endif
18195
18196 int
18197 main ()
18198 {
18199 static struct statfs ac_aggr;
18200 if (sizeof ac_aggr.f_bfree)
18201 return 0;
18202   ;
18203   return 0;
18204 }
18205 _ACEOF
18206 rm -f conftest.$ac_objext
18207 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18208   (eval $ac_compile) 2>conftest.er1
18209   ac_status=$?
18210   grep -v '^ *+' conftest.er1 >conftest.err
18211   rm -f conftest.er1
18212   cat conftest.err >&5
18213   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18214   (exit $ac_status); } &&
18215          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
18216   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18217   (eval $ac_try) 2>&5
18218   ac_status=$?
18219   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18220   (exit $ac_status); }; } &&
18221          { ac_try='test -s conftest.$ac_objext'
18222   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18223   (eval $ac_try) 2>&5
18224   ac_status=$?
18225   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18226   (exit $ac_status); }; }; then
18227   ac_cv_member_struct_statfs_f_bfree=yes
18228 else
18229   echo "$as_me: failed program was:" >&5
18230 sed 's/^/| /' conftest.$ac_ext >&5
18231
18232 ac_cv_member_struct_statfs_f_bfree=no
18233 fi
18234 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18235 fi
18236 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18237 fi
18238 echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_bfree" >&5
18239 echo "${ECHO_T}$ac_cv_member_struct_statfs_f_bfree" >&6
18240 if test $ac_cv_member_struct_statfs_f_bfree = yes; then
18241
18242 cat >>confdefs.h <<_ACEOF
18243 #define HAVE_STRUCT_STATFS_F_BFREE 1
18244 _ACEOF
18245
18246
18247 fi
18248 echo "$as_me:$LINENO: checking for struct statfs.f_bavail" >&5
18249 echo $ECHO_N "checking for struct statfs.f_bavail... $ECHO_C" >&6
18250 if test "${ac_cv_member_struct_statfs_f_bavail+set}" = set; then
18251   echo $ECHO_N "(cached) $ECHO_C" >&6
18252 else
18253   cat >conftest.$ac_ext <<_ACEOF
18254 /* confdefs.h.  */
18255 _ACEOF
18256 cat confdefs.h >>conftest.$ac_ext
18257 cat >>conftest.$ac_ext <<_ACEOF
18258 /* end confdefs.h.  */
18259 #include <sys/types.h>
18260 #ifdef HAVE_SYS_PARAM_H
18261 # include <sys/param.h>
18262 #endif
18263 #ifdef STATFS_DEFINED_BY_SYS_MOUNT
18264 # include <sys/mount.h>
18265 #else
18266 # ifdef STATFS_DEFINED_BY_SYS_VFS
18267 #  include <sys/vfs.h>
18268 # else
18269 #  ifdef STATFS_DEFINED_BY_SYS_STATFS
18270 #   include <sys/statfs.h>
18271 #  endif
18272 # endif
18273 #endif
18274
18275 int
18276 main ()
18277 {
18278 static struct statfs ac_aggr;
18279 if (ac_aggr.f_bavail)
18280 return 0;
18281   ;
18282   return 0;
18283 }
18284 _ACEOF
18285 rm -f conftest.$ac_objext
18286 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18287   (eval $ac_compile) 2>conftest.er1
18288   ac_status=$?
18289   grep -v '^ *+' conftest.er1 >conftest.err
18290   rm -f conftest.er1
18291   cat conftest.err >&5
18292   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18293   (exit $ac_status); } &&
18294          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
18295   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18296   (eval $ac_try) 2>&5
18297   ac_status=$?
18298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18299   (exit $ac_status); }; } &&
18300          { ac_try='test -s conftest.$ac_objext'
18301   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18302   (eval $ac_try) 2>&5
18303   ac_status=$?
18304   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18305   (exit $ac_status); }; }; then
18306   ac_cv_member_struct_statfs_f_bavail=yes
18307 else
18308   echo "$as_me: failed program was:" >&5
18309 sed 's/^/| /' conftest.$ac_ext >&5
18310
18311 cat >conftest.$ac_ext <<_ACEOF
18312 /* confdefs.h.  */
18313 _ACEOF
18314 cat confdefs.h >>conftest.$ac_ext
18315 cat >>conftest.$ac_ext <<_ACEOF
18316 /* end confdefs.h.  */
18317 #include <sys/types.h>
18318 #ifdef HAVE_SYS_PARAM_H
18319 # include <sys/param.h>
18320 #endif
18321 #ifdef STATFS_DEFINED_BY_SYS_MOUNT
18322 # include <sys/mount.h>
18323 #else
18324 # ifdef STATFS_DEFINED_BY_SYS_VFS
18325 #  include <sys/vfs.h>
18326 # else
18327 #  ifdef STATFS_DEFINED_BY_SYS_STATFS
18328 #   include <sys/statfs.h>
18329 #  endif
18330 # endif
18331 #endif
18332
18333 int
18334 main ()
18335 {
18336 static struct statfs ac_aggr;
18337 if (sizeof ac_aggr.f_bavail)
18338 return 0;
18339   ;
18340   return 0;
18341 }
18342 _ACEOF
18343 rm -f conftest.$ac_objext
18344 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18345   (eval $ac_compile) 2>conftest.er1
18346   ac_status=$?
18347   grep -v '^ *+' conftest.er1 >conftest.err
18348   rm -f conftest.er1
18349   cat conftest.err >&5
18350   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18351   (exit $ac_status); } &&
18352          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
18353   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18354   (eval $ac_try) 2>&5
18355   ac_status=$?
18356   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18357   (exit $ac_status); }; } &&
18358          { ac_try='test -s conftest.$ac_objext'
18359   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18360   (eval $ac_try) 2>&5
18361   ac_status=$?
18362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18363   (exit $ac_status); }; }; then
18364   ac_cv_member_struct_statfs_f_bavail=yes
18365 else
18366   echo "$as_me: failed program was:" >&5
18367 sed 's/^/| /' conftest.$ac_ext >&5
18368
18369 ac_cv_member_struct_statfs_f_bavail=no
18370 fi
18371 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18372 fi
18373 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18374 fi
18375 echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_bavail" >&5
18376 echo "${ECHO_T}$ac_cv_member_struct_statfs_f_bavail" >&6
18377 if test $ac_cv_member_struct_statfs_f_bavail = yes; then
18378
18379 cat >>confdefs.h <<_ACEOF
18380 #define HAVE_STRUCT_STATFS_F_BAVAIL 1
18381 _ACEOF
18382
18383
18384 fi
18385 echo "$as_me:$LINENO: checking for struct statfs.f_frsize" >&5
18386 echo $ECHO_N "checking for struct statfs.f_frsize... $ECHO_C" >&6
18387 if test "${ac_cv_member_struct_statfs_f_frsize+set}" = set; then
18388   echo $ECHO_N "(cached) $ECHO_C" >&6
18389 else
18390   cat >conftest.$ac_ext <<_ACEOF
18391 /* confdefs.h.  */
18392 _ACEOF
18393 cat confdefs.h >>conftest.$ac_ext
18394 cat >>conftest.$ac_ext <<_ACEOF
18395 /* end confdefs.h.  */
18396 #include <sys/types.h>
18397 #ifdef HAVE_SYS_PARAM_H
18398 # include <sys/param.h>
18399 #endif
18400 #ifdef STATFS_DEFINED_BY_SYS_MOUNT
18401 # include <sys/mount.h>
18402 #else
18403 # ifdef STATFS_DEFINED_BY_SYS_VFS
18404 #  include <sys/vfs.h>
18405 # else
18406 #  ifdef STATFS_DEFINED_BY_SYS_STATFS
18407 #   include <sys/statfs.h>
18408 #  endif
18409 # endif
18410 #endif
18411
18412 int
18413 main ()
18414 {
18415 static struct statfs ac_aggr;
18416 if (ac_aggr.f_frsize)
18417 return 0;
18418   ;
18419   return 0;
18420 }
18421 _ACEOF
18422 rm -f conftest.$ac_objext
18423 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18424   (eval $ac_compile) 2>conftest.er1
18425   ac_status=$?
18426   grep -v '^ *+' conftest.er1 >conftest.err
18427   rm -f conftest.er1
18428   cat conftest.err >&5
18429   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18430   (exit $ac_status); } &&
18431          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
18432   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18433   (eval $ac_try) 2>&5
18434   ac_status=$?
18435   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18436   (exit $ac_status); }; } &&
18437          { ac_try='test -s conftest.$ac_objext'
18438   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18439   (eval $ac_try) 2>&5
18440   ac_status=$?
18441   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18442   (exit $ac_status); }; }; then
18443   ac_cv_member_struct_statfs_f_frsize=yes
18444 else
18445   echo "$as_me: failed program was:" >&5
18446 sed 's/^/| /' conftest.$ac_ext >&5
18447
18448 cat >conftest.$ac_ext <<_ACEOF
18449 /* confdefs.h.  */
18450 _ACEOF
18451 cat confdefs.h >>conftest.$ac_ext
18452 cat >>conftest.$ac_ext <<_ACEOF
18453 /* end confdefs.h.  */
18454 #include <sys/types.h>
18455 #ifdef HAVE_SYS_PARAM_H
18456 # include <sys/param.h>
18457 #endif
18458 #ifdef STATFS_DEFINED_BY_SYS_MOUNT
18459 # include <sys/mount.h>
18460 #else
18461 # ifdef STATFS_DEFINED_BY_SYS_VFS
18462 #  include <sys/vfs.h>
18463 # else
18464 #  ifdef STATFS_DEFINED_BY_SYS_STATFS
18465 #   include <sys/statfs.h>
18466 #  endif
18467 # endif
18468 #endif
18469
18470 int
18471 main ()
18472 {
18473 static struct statfs ac_aggr;
18474 if (sizeof ac_aggr.f_frsize)
18475 return 0;
18476   ;
18477   return 0;
18478 }
18479 _ACEOF
18480 rm -f conftest.$ac_objext
18481 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18482   (eval $ac_compile) 2>conftest.er1
18483   ac_status=$?
18484   grep -v '^ *+' conftest.er1 >conftest.err
18485   rm -f conftest.er1
18486   cat conftest.err >&5
18487   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18488   (exit $ac_status); } &&
18489          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
18490   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18491   (eval $ac_try) 2>&5
18492   ac_status=$?
18493   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18494   (exit $ac_status); }; } &&
18495          { ac_try='test -s conftest.$ac_objext'
18496   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18497   (eval $ac_try) 2>&5
18498   ac_status=$?
18499   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18500   (exit $ac_status); }; }; then
18501   ac_cv_member_struct_statfs_f_frsize=yes
18502 else
18503   echo "$as_me: failed program was:" >&5
18504 sed 's/^/| /' conftest.$ac_ext >&5
18505
18506 ac_cv_member_struct_statfs_f_frsize=no
18507 fi
18508 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18509 fi
18510 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18511 fi
18512 echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_frsize" >&5
18513 echo "${ECHO_T}$ac_cv_member_struct_statfs_f_frsize" >&6
18514 if test $ac_cv_member_struct_statfs_f_frsize = yes; then
18515
18516 cat >>confdefs.h <<_ACEOF
18517 #define HAVE_STRUCT_STATFS_F_FRSIZE 1
18518 _ACEOF
18519
18520
18521 fi
18522 echo "$as_me:$LINENO: checking for struct statfs.f_ffree" >&5
18523 echo $ECHO_N "checking for struct statfs.f_ffree... $ECHO_C" >&6
18524 if test "${ac_cv_member_struct_statfs_f_ffree+set}" = set; then
18525   echo $ECHO_N "(cached) $ECHO_C" >&6
18526 else
18527   cat >conftest.$ac_ext <<_ACEOF
18528 /* confdefs.h.  */
18529 _ACEOF
18530 cat confdefs.h >>conftest.$ac_ext
18531 cat >>conftest.$ac_ext <<_ACEOF
18532 /* end confdefs.h.  */
18533 #include <sys/types.h>
18534 #ifdef HAVE_SYS_PARAM_H
18535 # include <sys/param.h>
18536 #endif
18537 #ifdef STATFS_DEFINED_BY_SYS_MOUNT
18538 # include <sys/mount.h>
18539 #else
18540 # ifdef STATFS_DEFINED_BY_SYS_VFS
18541 #  include <sys/vfs.h>
18542 # else
18543 #  ifdef STATFS_DEFINED_BY_SYS_STATFS
18544 #   include <sys/statfs.h>
18545 #  endif
18546 # endif
18547 #endif
18548
18549 int
18550 main ()
18551 {
18552 static struct statfs ac_aggr;
18553 if (ac_aggr.f_ffree)
18554 return 0;
18555   ;
18556   return 0;
18557 }
18558 _ACEOF
18559 rm -f conftest.$ac_objext
18560 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18561   (eval $ac_compile) 2>conftest.er1
18562   ac_status=$?
18563   grep -v '^ *+' conftest.er1 >conftest.err
18564   rm -f conftest.er1
18565   cat conftest.err >&5
18566   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18567   (exit $ac_status); } &&
18568          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
18569   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18570   (eval $ac_try) 2>&5
18571   ac_status=$?
18572   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18573   (exit $ac_status); }; } &&
18574          { ac_try='test -s conftest.$ac_objext'
18575   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18576   (eval $ac_try) 2>&5
18577   ac_status=$?
18578   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18579   (exit $ac_status); }; }; then
18580   ac_cv_member_struct_statfs_f_ffree=yes
18581 else
18582   echo "$as_me: failed program was:" >&5
18583 sed 's/^/| /' conftest.$ac_ext >&5
18584
18585 cat >conftest.$ac_ext <<_ACEOF
18586 /* confdefs.h.  */
18587 _ACEOF
18588 cat confdefs.h >>conftest.$ac_ext
18589 cat >>conftest.$ac_ext <<_ACEOF
18590 /* end confdefs.h.  */
18591 #include <sys/types.h>
18592 #ifdef HAVE_SYS_PARAM_H
18593 # include <sys/param.h>
18594 #endif
18595 #ifdef STATFS_DEFINED_BY_SYS_MOUNT
18596 # include <sys/mount.h>
18597 #else
18598 # ifdef STATFS_DEFINED_BY_SYS_VFS
18599 #  include <sys/vfs.h>
18600 # else
18601 #  ifdef STATFS_DEFINED_BY_SYS_STATFS
18602 #   include <sys/statfs.h>
18603 #  endif
18604 # endif
18605 #endif
18606
18607 int
18608 main ()
18609 {
18610 static struct statfs ac_aggr;
18611 if (sizeof ac_aggr.f_ffree)
18612 return 0;
18613   ;
18614   return 0;
18615 }
18616 _ACEOF
18617 rm -f conftest.$ac_objext
18618 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18619   (eval $ac_compile) 2>conftest.er1
18620   ac_status=$?
18621   grep -v '^ *+' conftest.er1 >conftest.err
18622   rm -f conftest.er1
18623   cat conftest.err >&5
18624   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18625   (exit $ac_status); } &&
18626          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
18627   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18628   (eval $ac_try) 2>&5
18629   ac_status=$?
18630   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18631   (exit $ac_status); }; } &&
18632          { ac_try='test -s conftest.$ac_objext'
18633   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18634   (eval $ac_try) 2>&5
18635   ac_status=$?
18636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18637   (exit $ac_status); }; }; then
18638   ac_cv_member_struct_statfs_f_ffree=yes
18639 else
18640   echo "$as_me: failed program was:" >&5
18641 sed 's/^/| /' conftest.$ac_ext >&5
18642
18643 ac_cv_member_struct_statfs_f_ffree=no
18644 fi
18645 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18646 fi
18647 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18648 fi
18649 echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_ffree" >&5
18650 echo "${ECHO_T}$ac_cv_member_struct_statfs_f_ffree" >&6
18651 if test $ac_cv_member_struct_statfs_f_ffree = yes; then
18652
18653 cat >>confdefs.h <<_ACEOF
18654 #define HAVE_STRUCT_STATFS_F_FFREE 1
18655 _ACEOF
18656
18657
18658 fi
18659 echo "$as_me:$LINENO: checking for struct statfs.f_favail" >&5
18660 echo $ECHO_N "checking for struct statfs.f_favail... $ECHO_C" >&6
18661 if test "${ac_cv_member_struct_statfs_f_favail+set}" = set; then
18662   echo $ECHO_N "(cached) $ECHO_C" >&6
18663 else
18664   cat >conftest.$ac_ext <<_ACEOF
18665 /* confdefs.h.  */
18666 _ACEOF
18667 cat confdefs.h >>conftest.$ac_ext
18668 cat >>conftest.$ac_ext <<_ACEOF
18669 /* end confdefs.h.  */
18670 #include <sys/types.h>
18671 #ifdef HAVE_SYS_PARAM_H
18672 # include <sys/param.h>
18673 #endif
18674 #ifdef STATFS_DEFINED_BY_SYS_MOUNT
18675 # include <sys/mount.h>
18676 #else
18677 # ifdef STATFS_DEFINED_BY_SYS_VFS
18678 #  include <sys/vfs.h>
18679 # else
18680 #  ifdef STATFS_DEFINED_BY_SYS_STATFS
18681 #   include <sys/statfs.h>
18682 #  endif
18683 # endif
18684 #endif
18685
18686 int
18687 main ()
18688 {
18689 static struct statfs ac_aggr;
18690 if (ac_aggr.f_favail)
18691 return 0;
18692   ;
18693   return 0;
18694 }
18695 _ACEOF
18696 rm -f conftest.$ac_objext
18697 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18698   (eval $ac_compile) 2>conftest.er1
18699   ac_status=$?
18700   grep -v '^ *+' conftest.er1 >conftest.err
18701   rm -f conftest.er1
18702   cat conftest.err >&5
18703   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18704   (exit $ac_status); } &&
18705          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
18706   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18707   (eval $ac_try) 2>&5
18708   ac_status=$?
18709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18710   (exit $ac_status); }; } &&
18711          { ac_try='test -s conftest.$ac_objext'
18712   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18713   (eval $ac_try) 2>&5
18714   ac_status=$?
18715   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18716   (exit $ac_status); }; }; then
18717   ac_cv_member_struct_statfs_f_favail=yes
18718 else
18719   echo "$as_me: failed program was:" >&5
18720 sed 's/^/| /' conftest.$ac_ext >&5
18721
18722 cat >conftest.$ac_ext <<_ACEOF
18723 /* confdefs.h.  */
18724 _ACEOF
18725 cat confdefs.h >>conftest.$ac_ext
18726 cat >>conftest.$ac_ext <<_ACEOF
18727 /* end confdefs.h.  */
18728 #include <sys/types.h>
18729 #ifdef HAVE_SYS_PARAM_H
18730 # include <sys/param.h>
18731 #endif
18732 #ifdef STATFS_DEFINED_BY_SYS_MOUNT
18733 # include <sys/mount.h>
18734 #else
18735 # ifdef STATFS_DEFINED_BY_SYS_VFS
18736 #  include <sys/vfs.h>
18737 # else
18738 #  ifdef STATFS_DEFINED_BY_SYS_STATFS
18739 #   include <sys/statfs.h>
18740 #  endif
18741 # endif
18742 #endif
18743
18744 int
18745 main ()
18746 {
18747 static struct statfs ac_aggr;
18748 if (sizeof ac_aggr.f_favail)
18749 return 0;
18750   ;
18751   return 0;
18752 }
18753 _ACEOF
18754 rm -f conftest.$ac_objext
18755 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18756   (eval $ac_compile) 2>conftest.er1
18757   ac_status=$?
18758   grep -v '^ *+' conftest.er1 >conftest.err
18759   rm -f conftest.er1
18760   cat conftest.err >&5
18761   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18762   (exit $ac_status); } &&
18763          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
18764   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18765   (eval $ac_try) 2>&5
18766   ac_status=$?
18767   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18768   (exit $ac_status); }; } &&
18769          { ac_try='test -s conftest.$ac_objext'
18770   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18771   (eval $ac_try) 2>&5
18772   ac_status=$?
18773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18774   (exit $ac_status); }; }; then
18775   ac_cv_member_struct_statfs_f_favail=yes
18776 else
18777   echo "$as_me: failed program was:" >&5
18778 sed 's/^/| /' conftest.$ac_ext >&5
18779
18780 ac_cv_member_struct_statfs_f_favail=no
18781 fi
18782 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18783 fi
18784 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18785 fi
18786 echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_favail" >&5
18787 echo "${ECHO_T}$ac_cv_member_struct_statfs_f_favail" >&6
18788 if test $ac_cv_member_struct_statfs_f_favail = yes; then
18789
18790 cat >>confdefs.h <<_ACEOF
18791 #define HAVE_STRUCT_STATFS_F_FAVAIL 1
18792 _ACEOF
18793
18794
18795 fi
18796 echo "$as_me:$LINENO: checking for struct statfs.f_namelen" >&5
18797 echo $ECHO_N "checking for struct statfs.f_namelen... $ECHO_C" >&6
18798 if test "${ac_cv_member_struct_statfs_f_namelen+set}" = set; then
18799   echo $ECHO_N "(cached) $ECHO_C" >&6
18800 else
18801   cat >conftest.$ac_ext <<_ACEOF
18802 /* confdefs.h.  */
18803 _ACEOF
18804 cat confdefs.h >>conftest.$ac_ext
18805 cat >>conftest.$ac_ext <<_ACEOF
18806 /* end confdefs.h.  */
18807 #include <sys/types.h>
18808 #ifdef HAVE_SYS_PARAM_H
18809 # include <sys/param.h>
18810 #endif
18811 #ifdef STATFS_DEFINED_BY_SYS_MOUNT
18812 # include <sys/mount.h>
18813 #else
18814 # ifdef STATFS_DEFINED_BY_SYS_VFS
18815 #  include <sys/vfs.h>
18816 # else
18817 #  ifdef STATFS_DEFINED_BY_SYS_STATFS
18818 #   include <sys/statfs.h>
18819 #  endif
18820 # endif
18821 #endif
18822
18823 int
18824 main ()
18825 {
18826 static struct statfs ac_aggr;
18827 if (ac_aggr.f_namelen)
18828 return 0;
18829   ;
18830   return 0;
18831 }
18832 _ACEOF
18833 rm -f conftest.$ac_objext
18834 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18835   (eval $ac_compile) 2>conftest.er1
18836   ac_status=$?
18837   grep -v '^ *+' conftest.er1 >conftest.err
18838   rm -f conftest.er1
18839   cat conftest.err >&5
18840   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18841   (exit $ac_status); } &&
18842          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
18843   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18844   (eval $ac_try) 2>&5
18845   ac_status=$?
18846   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18847   (exit $ac_status); }; } &&
18848          { ac_try='test -s conftest.$ac_objext'
18849   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18850   (eval $ac_try) 2>&5
18851   ac_status=$?
18852   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18853   (exit $ac_status); }; }; then
18854   ac_cv_member_struct_statfs_f_namelen=yes
18855 else
18856   echo "$as_me: failed program was:" >&5
18857 sed 's/^/| /' conftest.$ac_ext >&5
18858
18859 cat >conftest.$ac_ext <<_ACEOF
18860 /* confdefs.h.  */
18861 _ACEOF
18862 cat confdefs.h >>conftest.$ac_ext
18863 cat >>conftest.$ac_ext <<_ACEOF
18864 /* end confdefs.h.  */
18865 #include <sys/types.h>
18866 #ifdef HAVE_SYS_PARAM_H
18867 # include <sys/param.h>
18868 #endif
18869 #ifdef STATFS_DEFINED_BY_SYS_MOUNT
18870 # include <sys/mount.h>
18871 #else
18872 # ifdef STATFS_DEFINED_BY_SYS_VFS
18873 #  include <sys/vfs.h>
18874 # else
18875 #  ifdef STATFS_DEFINED_BY_SYS_STATFS
18876 #   include <sys/statfs.h>
18877 #  endif
18878 # endif
18879 #endif
18880
18881 int
18882 main ()
18883 {
18884 static struct statfs ac_aggr;
18885 if (sizeof ac_aggr.f_namelen)
18886 return 0;
18887   ;
18888   return 0;
18889 }
18890 _ACEOF
18891 rm -f conftest.$ac_objext
18892 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18893   (eval $ac_compile) 2>conftest.er1
18894   ac_status=$?
18895   grep -v '^ *+' conftest.er1 >conftest.err
18896   rm -f conftest.er1
18897   cat conftest.err >&5
18898   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18899   (exit $ac_status); } &&
18900          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
18901   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18902   (eval $ac_try) 2>&5
18903   ac_status=$?
18904   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18905   (exit $ac_status); }; } &&
18906          { ac_try='test -s conftest.$ac_objext'
18907   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18908   (eval $ac_try) 2>&5
18909   ac_status=$?
18910   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18911   (exit $ac_status); }; }; then
18912   ac_cv_member_struct_statfs_f_namelen=yes
18913 else
18914   echo "$as_me: failed program was:" >&5
18915 sed 's/^/| /' conftest.$ac_ext >&5
18916
18917 ac_cv_member_struct_statfs_f_namelen=no
18918 fi
18919 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18920 fi
18921 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18922 fi
18923 echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_namelen" >&5
18924 echo "${ECHO_T}$ac_cv_member_struct_statfs_f_namelen" >&6
18925 if test $ac_cv_member_struct_statfs_f_namelen = yes; then
18926
18927 cat >>confdefs.h <<_ACEOF
18928 #define HAVE_STRUCT_STATFS_F_NAMELEN 1
18929 _ACEOF
18930
18931
18932 fi
18933
18934
18935 echo "$as_me:$LINENO: checking for struct statvfs.f_blocks" >&5
18936 echo $ECHO_N "checking for struct statvfs.f_blocks... $ECHO_C" >&6
18937 if test "${ac_cv_member_struct_statvfs_f_blocks+set}" = set; then
18938   echo $ECHO_N "(cached) $ECHO_C" >&6
18939 else
18940   cat >conftest.$ac_ext <<_ACEOF
18941 /* confdefs.h.  */
18942 _ACEOF
18943 cat confdefs.h >>conftest.$ac_ext
18944 cat >>conftest.$ac_ext <<_ACEOF
18945 /* end confdefs.h.  */
18946 #ifdef HAVE_SYS_STATVFS_H
18947 #include <sys/statvfs.h>
18948 #endif
18949
18950 int
18951 main ()
18952 {
18953 static struct statvfs ac_aggr;
18954 if (ac_aggr.f_blocks)
18955 return 0;
18956   ;
18957   return 0;
18958 }
18959 _ACEOF
18960 rm -f conftest.$ac_objext
18961 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18962   (eval $ac_compile) 2>conftest.er1
18963   ac_status=$?
18964   grep -v '^ *+' conftest.er1 >conftest.err
18965   rm -f conftest.er1
18966   cat conftest.err >&5
18967   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18968   (exit $ac_status); } &&
18969          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
18970   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18971   (eval $ac_try) 2>&5
18972   ac_status=$?
18973   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18974   (exit $ac_status); }; } &&
18975          { ac_try='test -s conftest.$ac_objext'
18976   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18977   (eval $ac_try) 2>&5
18978   ac_status=$?
18979   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18980   (exit $ac_status); }; }; then
18981   ac_cv_member_struct_statvfs_f_blocks=yes
18982 else
18983   echo "$as_me: failed program was:" >&5
18984 sed 's/^/| /' conftest.$ac_ext >&5
18985
18986 cat >conftest.$ac_ext <<_ACEOF
18987 /* confdefs.h.  */
18988 _ACEOF
18989 cat confdefs.h >>conftest.$ac_ext
18990 cat >>conftest.$ac_ext <<_ACEOF
18991 /* end confdefs.h.  */
18992 #ifdef HAVE_SYS_STATVFS_H
18993 #include <sys/statvfs.h>
18994 #endif
18995
18996 int
18997 main ()
18998 {
18999 static struct statvfs ac_aggr;
19000 if (sizeof ac_aggr.f_blocks)
19001 return 0;
19002   ;
19003   return 0;
19004 }
19005 _ACEOF
19006 rm -f conftest.$ac_objext
19007 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19008   (eval $ac_compile) 2>conftest.er1
19009   ac_status=$?
19010   grep -v '^ *+' conftest.er1 >conftest.err
19011   rm -f conftest.er1
19012   cat conftest.err >&5
19013   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19014   (exit $ac_status); } &&
19015          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
19016   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19017   (eval $ac_try) 2>&5
19018   ac_status=$?
19019   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19020   (exit $ac_status); }; } &&
19021          { ac_try='test -s conftest.$ac_objext'
19022   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19023   (eval $ac_try) 2>&5
19024   ac_status=$?
19025   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19026   (exit $ac_status); }; }; then
19027   ac_cv_member_struct_statvfs_f_blocks=yes
19028 else
19029   echo "$as_me: failed program was:" >&5
19030 sed 's/^/| /' conftest.$ac_ext >&5
19031
19032 ac_cv_member_struct_statvfs_f_blocks=no
19033 fi
19034 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19035 fi
19036 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19037 fi
19038 echo "$as_me:$LINENO: result: $ac_cv_member_struct_statvfs_f_blocks" >&5
19039 echo "${ECHO_T}$ac_cv_member_struct_statvfs_f_blocks" >&6
19040 if test $ac_cv_member_struct_statvfs_f_blocks = yes; then
19041
19042 cat >>confdefs.h <<_ACEOF
19043 #define HAVE_STRUCT_STATVFS_F_BLOCKS 1
19044 _ACEOF
19045
19046
19047 fi
19048
19049
19050 echo "$as_me:$LINENO: checking for struct msghdr.msg_accrights" >&5
19051 echo $ECHO_N "checking for struct msghdr.msg_accrights... $ECHO_C" >&6
19052 if test "${ac_cv_member_struct_msghdr_msg_accrights+set}" = set; then
19053   echo $ECHO_N "(cached) $ECHO_C" >&6
19054 else
19055   cat >conftest.$ac_ext <<_ACEOF
19056 /* confdefs.h.  */
19057 _ACEOF
19058 cat confdefs.h >>conftest.$ac_ext
19059 cat >>conftest.$ac_ext <<_ACEOF
19060 /* end confdefs.h.  */
19061 #include <sys/types.h>
19062 #ifdef HAVE_SYS_SOCKET_H
19063 # include <sys/socket.h>
19064 #endif
19065 #ifdef HAVE_SYS_UN_H
19066 # include <sys/un.h>
19067 #endif
19068
19069 int
19070 main ()
19071 {
19072 static struct msghdr ac_aggr;
19073 if (ac_aggr.msg_accrights)
19074 return 0;
19075   ;
19076   return 0;
19077 }
19078 _ACEOF
19079 rm -f conftest.$ac_objext
19080 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19081   (eval $ac_compile) 2>conftest.er1
19082   ac_status=$?
19083   grep -v '^ *+' conftest.er1 >conftest.err
19084   rm -f conftest.er1
19085   cat conftest.err >&5
19086   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19087   (exit $ac_status); } &&
19088          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
19089   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19090   (eval $ac_try) 2>&5
19091   ac_status=$?
19092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19093   (exit $ac_status); }; } &&
19094          { ac_try='test -s conftest.$ac_objext'
19095   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19096   (eval $ac_try) 2>&5
19097   ac_status=$?
19098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19099   (exit $ac_status); }; }; then
19100   ac_cv_member_struct_msghdr_msg_accrights=yes
19101 else
19102   echo "$as_me: failed program was:" >&5
19103 sed 's/^/| /' conftest.$ac_ext >&5
19104
19105 cat >conftest.$ac_ext <<_ACEOF
19106 /* confdefs.h.  */
19107 _ACEOF
19108 cat confdefs.h >>conftest.$ac_ext
19109 cat >>conftest.$ac_ext <<_ACEOF
19110 /* end confdefs.h.  */
19111 #include <sys/types.h>
19112 #ifdef HAVE_SYS_SOCKET_H
19113 # include <sys/socket.h>
19114 #endif
19115 #ifdef HAVE_SYS_UN_H
19116 # include <sys/un.h>
19117 #endif
19118
19119 int
19120 main ()
19121 {
19122 static struct msghdr ac_aggr;
19123 if (sizeof ac_aggr.msg_accrights)
19124 return 0;
19125   ;
19126   return 0;
19127 }
19128 _ACEOF
19129 rm -f conftest.$ac_objext
19130 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19131   (eval $ac_compile) 2>conftest.er1
19132   ac_status=$?
19133   grep -v '^ *+' conftest.er1 >conftest.err
19134   rm -f conftest.er1
19135   cat conftest.err >&5
19136   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19137   (exit $ac_status); } &&
19138          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
19139   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19140   (eval $ac_try) 2>&5
19141   ac_status=$?
19142   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19143   (exit $ac_status); }; } &&
19144          { ac_try='test -s conftest.$ac_objext'
19145   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19146   (eval $ac_try) 2>&5
19147   ac_status=$?
19148   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19149   (exit $ac_status); }; }; then
19150   ac_cv_member_struct_msghdr_msg_accrights=yes
19151 else
19152   echo "$as_me: failed program was:" >&5
19153 sed 's/^/| /' conftest.$ac_ext >&5
19154
19155 ac_cv_member_struct_msghdr_msg_accrights=no
19156 fi
19157 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19158 fi
19159 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19160 fi
19161 echo "$as_me:$LINENO: result: $ac_cv_member_struct_msghdr_msg_accrights" >&5
19162 echo "${ECHO_T}$ac_cv_member_struct_msghdr_msg_accrights" >&6
19163 if test $ac_cv_member_struct_msghdr_msg_accrights = yes; then
19164
19165 cat >>confdefs.h <<_ACEOF
19166 #define HAVE_STRUCT_MSGHDR_MSG_ACCRIGHTS 1
19167 _ACEOF
19168
19169
19170 fi
19171 echo "$as_me:$LINENO: checking for struct sockaddr.sa_len" >&5
19172 echo $ECHO_N "checking for struct sockaddr.sa_len... $ECHO_C" >&6
19173 if test "${ac_cv_member_struct_sockaddr_sa_len+set}" = set; then
19174   echo $ECHO_N "(cached) $ECHO_C" >&6
19175 else
19176   cat >conftest.$ac_ext <<_ACEOF
19177 /* confdefs.h.  */
19178 _ACEOF
19179 cat confdefs.h >>conftest.$ac_ext
19180 cat >>conftest.$ac_ext <<_ACEOF
19181 /* end confdefs.h.  */
19182 #include <sys/types.h>
19183 #ifdef HAVE_SYS_SOCKET_H
19184 # include <sys/socket.h>
19185 #endif
19186 #ifdef HAVE_SYS_UN_H
19187 # include <sys/un.h>
19188 #endif
19189
19190 int
19191 main ()
19192 {
19193 static struct sockaddr ac_aggr;
19194 if (ac_aggr.sa_len)
19195 return 0;
19196   ;
19197   return 0;
19198 }
19199 _ACEOF
19200 rm -f conftest.$ac_objext
19201 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19202   (eval $ac_compile) 2>conftest.er1
19203   ac_status=$?
19204   grep -v '^ *+' conftest.er1 >conftest.err
19205   rm -f conftest.er1
19206   cat conftest.err >&5
19207   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19208   (exit $ac_status); } &&
19209          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
19210   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19211   (eval $ac_try) 2>&5
19212   ac_status=$?
19213   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19214   (exit $ac_status); }; } &&
19215          { ac_try='test -s conftest.$ac_objext'
19216   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19217   (eval $ac_try) 2>&5
19218   ac_status=$?
19219   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19220   (exit $ac_status); }; }; then
19221   ac_cv_member_struct_sockaddr_sa_len=yes
19222 else
19223   echo "$as_me: failed program was:" >&5
19224 sed 's/^/| /' conftest.$ac_ext >&5
19225
19226 cat >conftest.$ac_ext <<_ACEOF
19227 /* confdefs.h.  */
19228 _ACEOF
19229 cat confdefs.h >>conftest.$ac_ext
19230 cat >>conftest.$ac_ext <<_ACEOF
19231 /* end confdefs.h.  */
19232 #include <sys/types.h>
19233 #ifdef HAVE_SYS_SOCKET_H
19234 # include <sys/socket.h>
19235 #endif
19236 #ifdef HAVE_SYS_UN_H
19237 # include <sys/un.h>
19238 #endif
19239
19240 int
19241 main ()
19242 {
19243 static struct sockaddr ac_aggr;
19244 if (sizeof ac_aggr.sa_len)
19245 return 0;
19246   ;
19247   return 0;
19248 }
19249 _ACEOF
19250 rm -f conftest.$ac_objext
19251 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19252   (eval $ac_compile) 2>conftest.er1
19253   ac_status=$?
19254   grep -v '^ *+' conftest.er1 >conftest.err
19255   rm -f conftest.er1
19256   cat conftest.err >&5
19257   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19258   (exit $ac_status); } &&
19259          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
19260   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19261   (eval $ac_try) 2>&5
19262   ac_status=$?
19263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19264   (exit $ac_status); }; } &&
19265          { ac_try='test -s conftest.$ac_objext'
19266   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19267   (eval $ac_try) 2>&5
19268   ac_status=$?
19269   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19270   (exit $ac_status); }; }; then
19271   ac_cv_member_struct_sockaddr_sa_len=yes
19272 else
19273   echo "$as_me: failed program was:" >&5
19274 sed 's/^/| /' conftest.$ac_ext >&5
19275
19276 ac_cv_member_struct_sockaddr_sa_len=no
19277 fi
19278 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19279 fi
19280 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19281 fi
19282 echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_sa_len" >&5
19283 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_sa_len" >&6
19284 if test $ac_cv_member_struct_sockaddr_sa_len = yes; then
19285
19286 cat >>confdefs.h <<_ACEOF
19287 #define HAVE_STRUCT_SOCKADDR_SA_LEN 1
19288 _ACEOF
19289
19290
19291 fi
19292 echo "$as_me:$LINENO: checking for struct sockaddr_un.sun_len" >&5
19293 echo $ECHO_N "checking for struct sockaddr_un.sun_len... $ECHO_C" >&6
19294 if test "${ac_cv_member_struct_sockaddr_un_sun_len+set}" = set; then
19295   echo $ECHO_N "(cached) $ECHO_C" >&6
19296 else
19297   cat >conftest.$ac_ext <<_ACEOF
19298 /* confdefs.h.  */
19299 _ACEOF
19300 cat confdefs.h >>conftest.$ac_ext
19301 cat >>conftest.$ac_ext <<_ACEOF
19302 /* end confdefs.h.  */
19303 #include <sys/types.h>
19304 #ifdef HAVE_SYS_SOCKET_H
19305 # include <sys/socket.h>
19306 #endif
19307 #ifdef HAVE_SYS_UN_H
19308 # include <sys/un.h>
19309 #endif
19310
19311 int
19312 main ()
19313 {
19314 static struct sockaddr_un ac_aggr;
19315 if (ac_aggr.sun_len)
19316 return 0;
19317   ;
19318   return 0;
19319 }
19320 _ACEOF
19321 rm -f conftest.$ac_objext
19322 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19323   (eval $ac_compile) 2>conftest.er1
19324   ac_status=$?
19325   grep -v '^ *+' conftest.er1 >conftest.err
19326   rm -f conftest.er1
19327   cat conftest.err >&5
19328   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19329   (exit $ac_status); } &&
19330          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
19331   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19332   (eval $ac_try) 2>&5
19333   ac_status=$?
19334   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19335   (exit $ac_status); }; } &&
19336          { ac_try='test -s conftest.$ac_objext'
19337   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19338   (eval $ac_try) 2>&5
19339   ac_status=$?
19340   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19341   (exit $ac_status); }; }; then
19342   ac_cv_member_struct_sockaddr_un_sun_len=yes
19343 else
19344   echo "$as_me: failed program was:" >&5
19345 sed 's/^/| /' conftest.$ac_ext >&5
19346
19347 cat >conftest.$ac_ext <<_ACEOF
19348 /* confdefs.h.  */
19349 _ACEOF
19350 cat confdefs.h >>conftest.$ac_ext
19351 cat >>conftest.$ac_ext <<_ACEOF
19352 /* end confdefs.h.  */
19353 #include <sys/types.h>
19354 #ifdef HAVE_SYS_SOCKET_H
19355 # include <sys/socket.h>
19356 #endif
19357 #ifdef HAVE_SYS_UN_H
19358 # include <sys/un.h>
19359 #endif
19360
19361 int
19362 main ()
19363 {
19364 static struct sockaddr_un ac_aggr;
19365 if (sizeof ac_aggr.sun_len)
19366 return 0;
19367   ;
19368   return 0;
19369 }
19370 _ACEOF
19371 rm -f conftest.$ac_objext
19372 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19373   (eval $ac_compile) 2>conftest.er1
19374   ac_status=$?
19375   grep -v '^ *+' conftest.er1 >conftest.err
19376   rm -f conftest.er1
19377   cat conftest.err >&5
19378   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19379   (exit $ac_status); } &&
19380          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
19381   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19382   (eval $ac_try) 2>&5
19383   ac_status=$?
19384   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19385   (exit $ac_status); }; } &&
19386          { ac_try='test -s conftest.$ac_objext'
19387   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19388   (eval $ac_try) 2>&5
19389   ac_status=$?
19390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19391   (exit $ac_status); }; }; then
19392   ac_cv_member_struct_sockaddr_un_sun_len=yes
19393 else
19394   echo "$as_me: failed program was:" >&5
19395 sed 's/^/| /' conftest.$ac_ext >&5
19396
19397 ac_cv_member_struct_sockaddr_un_sun_len=no
19398 fi
19399 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19400 fi
19401 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19402 fi
19403 echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_un_sun_len" >&5
19404 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_un_sun_len" >&6
19405 if test $ac_cv_member_struct_sockaddr_un_sun_len = yes; then
19406
19407 cat >>confdefs.h <<_ACEOF
19408 #define HAVE_STRUCT_SOCKADDR_UN_SUN_LEN 1
19409 _ACEOF
19410
19411
19412 fi
19413
19414
19415 echo "$as_me:$LINENO: checking for siginfo_t.si_fd" >&5
19416 echo $ECHO_N "checking for siginfo_t.si_fd... $ECHO_C" >&6
19417 if test "${ac_cv_member_siginfo_t_si_fd+set}" = set; then
19418   echo $ECHO_N "(cached) $ECHO_C" >&6
19419 else
19420   cat >conftest.$ac_ext <<_ACEOF
19421 /* confdefs.h.  */
19422 _ACEOF
19423 cat confdefs.h >>conftest.$ac_ext
19424 cat >>conftest.$ac_ext <<_ACEOF
19425 /* end confdefs.h.  */
19426 #include <signal.h>
19427
19428 int
19429 main ()
19430 {
19431 static siginfo_t ac_aggr;
19432 if (ac_aggr.si_fd)
19433 return 0;
19434   ;
19435   return 0;
19436 }
19437 _ACEOF
19438 rm -f conftest.$ac_objext
19439 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19440   (eval $ac_compile) 2>conftest.er1
19441   ac_status=$?
19442   grep -v '^ *+' conftest.er1 >conftest.err
19443   rm -f conftest.er1
19444   cat conftest.err >&5
19445   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19446   (exit $ac_status); } &&
19447          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
19448   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19449   (eval $ac_try) 2>&5
19450   ac_status=$?
19451   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19452   (exit $ac_status); }; } &&
19453          { ac_try='test -s conftest.$ac_objext'
19454   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19455   (eval $ac_try) 2>&5
19456   ac_status=$?
19457   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19458   (exit $ac_status); }; }; then
19459   ac_cv_member_siginfo_t_si_fd=yes
19460 else
19461   echo "$as_me: failed program was:" >&5
19462 sed 's/^/| /' conftest.$ac_ext >&5
19463
19464 cat >conftest.$ac_ext <<_ACEOF
19465 /* confdefs.h.  */
19466 _ACEOF
19467 cat confdefs.h >>conftest.$ac_ext
19468 cat >>conftest.$ac_ext <<_ACEOF
19469 /* end confdefs.h.  */
19470 #include <signal.h>
19471
19472 int
19473 main ()
19474 {
19475 static siginfo_t ac_aggr;
19476 if (sizeof ac_aggr.si_fd)
19477 return 0;
19478   ;
19479   return 0;
19480 }
19481 _ACEOF
19482 rm -f conftest.$ac_objext
19483 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19484   (eval $ac_compile) 2>conftest.er1
19485   ac_status=$?
19486   grep -v '^ *+' conftest.er1 >conftest.err
19487   rm -f conftest.er1
19488   cat conftest.err >&5
19489   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19490   (exit $ac_status); } &&
19491          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
19492   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19493   (eval $ac_try) 2>&5
19494   ac_status=$?
19495   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19496   (exit $ac_status); }; } &&
19497          { ac_try='test -s conftest.$ac_objext'
19498   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19499   (eval $ac_try) 2>&5
19500   ac_status=$?
19501   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19502   (exit $ac_status); }; }; then
19503   ac_cv_member_siginfo_t_si_fd=yes
19504 else
19505   echo "$as_me: failed program was:" >&5
19506 sed 's/^/| /' conftest.$ac_ext >&5
19507
19508 ac_cv_member_siginfo_t_si_fd=no
19509 fi
19510 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19511 fi
19512 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19513 fi
19514 echo "$as_me:$LINENO: result: $ac_cv_member_siginfo_t_si_fd" >&5
19515 echo "${ECHO_T}$ac_cv_member_siginfo_t_si_fd" >&6
19516 if test $ac_cv_member_siginfo_t_si_fd = yes; then
19517
19518 cat >>confdefs.h <<_ACEOF
19519 #define HAVE_SIGINFO_T_SI_FD 1
19520 _ACEOF
19521
19522
19523 fi
19524
19525
19526 echo "$as_me:$LINENO: checking for struct option.name" >&5
19527 echo $ECHO_N "checking for struct option.name... $ECHO_C" >&6
19528 if test "${ac_cv_member_struct_option_name+set}" = set; then
19529   echo $ECHO_N "(cached) $ECHO_C" >&6
19530 else
19531   cat >conftest.$ac_ext <<_ACEOF
19532 /* confdefs.h.  */
19533 _ACEOF
19534 cat confdefs.h >>conftest.$ac_ext
19535 cat >>conftest.$ac_ext <<_ACEOF
19536 /* end confdefs.h.  */
19537 #ifdef HAVE_GETOPT_H
19538 #include <getopt.h>
19539 #endif
19540
19541 int
19542 main ()
19543 {
19544 static struct option ac_aggr;
19545 if (ac_aggr.name)
19546 return 0;
19547   ;
19548   return 0;
19549 }
19550 _ACEOF
19551 rm -f conftest.$ac_objext
19552 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19553   (eval $ac_compile) 2>conftest.er1
19554   ac_status=$?
19555   grep -v '^ *+' conftest.er1 >conftest.err
19556   rm -f conftest.er1
19557   cat conftest.err >&5
19558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19559   (exit $ac_status); } &&
19560          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
19561   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19562   (eval $ac_try) 2>&5
19563   ac_status=$?
19564   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19565   (exit $ac_status); }; } &&
19566          { ac_try='test -s conftest.$ac_objext'
19567   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19568   (eval $ac_try) 2>&5
19569   ac_status=$?
19570   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19571   (exit $ac_status); }; }; then
19572   ac_cv_member_struct_option_name=yes
19573 else
19574   echo "$as_me: failed program was:" >&5
19575 sed 's/^/| /' conftest.$ac_ext >&5
19576
19577 cat >conftest.$ac_ext <<_ACEOF
19578 /* confdefs.h.  */
19579 _ACEOF
19580 cat confdefs.h >>conftest.$ac_ext
19581 cat >>conftest.$ac_ext <<_ACEOF
19582 /* end confdefs.h.  */
19583 #ifdef HAVE_GETOPT_H
19584 #include <getopt.h>
19585 #endif
19586
19587 int
19588 main ()
19589 {
19590 static struct option ac_aggr;
19591 if (sizeof ac_aggr.name)
19592 return 0;
19593   ;
19594   return 0;
19595 }
19596 _ACEOF
19597 rm -f conftest.$ac_objext
19598 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19599   (eval $ac_compile) 2>conftest.er1
19600   ac_status=$?
19601   grep -v '^ *+' conftest.er1 >conftest.err
19602   rm -f conftest.er1
19603   cat conftest.err >&5
19604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19605   (exit $ac_status); } &&
19606          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
19607   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19608   (eval $ac_try) 2>&5
19609   ac_status=$?
19610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19611   (exit $ac_status); }; } &&
19612          { ac_try='test -s conftest.$ac_objext'
19613   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19614   (eval $ac_try) 2>&5
19615   ac_status=$?
19616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19617   (exit $ac_status); }; }; then
19618   ac_cv_member_struct_option_name=yes
19619 else
19620   echo "$as_me: failed program was:" >&5
19621 sed 's/^/| /' conftest.$ac_ext >&5
19622
19623 ac_cv_member_struct_option_name=no
19624 fi
19625 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19626 fi
19627 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19628 fi
19629 echo "$as_me:$LINENO: result: $ac_cv_member_struct_option_name" >&5
19630 echo "${ECHO_T}$ac_cv_member_struct_option_name" >&6
19631 if test $ac_cv_member_struct_option_name = yes; then
19632
19633 cat >>confdefs.h <<_ACEOF
19634 #define HAVE_STRUCT_OPTION_NAME 1
19635 _ACEOF
19636
19637
19638 fi
19639
19640
19641 echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
19642 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
19643 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
19644   echo $ECHO_N "(cached) $ECHO_C" >&6
19645 else
19646   cat >conftest.$ac_ext <<_ACEOF
19647 /* confdefs.h.  */
19648 _ACEOF
19649 cat confdefs.h >>conftest.$ac_ext
19650 cat >>conftest.$ac_ext <<_ACEOF
19651 /* end confdefs.h.  */
19652 $ac_includes_default
19653 int
19654 main ()
19655 {
19656 static struct stat ac_aggr;
19657 if (ac_aggr.st_blocks)
19658 return 0;
19659   ;
19660   return 0;
19661 }
19662 _ACEOF
19663 rm -f conftest.$ac_objext
19664 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19665   (eval $ac_compile) 2>conftest.er1
19666   ac_status=$?
19667   grep -v '^ *+' conftest.er1 >conftest.err
19668   rm -f conftest.er1
19669   cat conftest.err >&5
19670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19671   (exit $ac_status); } &&
19672          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
19673   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19674   (eval $ac_try) 2>&5
19675   ac_status=$?
19676   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19677   (exit $ac_status); }; } &&
19678          { ac_try='test -s conftest.$ac_objext'
19679   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19680   (eval $ac_try) 2>&5
19681   ac_status=$?
19682   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19683   (exit $ac_status); }; }; then
19684   ac_cv_member_struct_stat_st_blocks=yes
19685 else
19686   echo "$as_me: failed program was:" >&5
19687 sed 's/^/| /' conftest.$ac_ext >&5
19688
19689 cat >conftest.$ac_ext <<_ACEOF
19690 /* confdefs.h.  */
19691 _ACEOF
19692 cat confdefs.h >>conftest.$ac_ext
19693 cat >>conftest.$ac_ext <<_ACEOF
19694 /* end confdefs.h.  */
19695 $ac_includes_default
19696 int
19697 main ()
19698 {
19699 static struct stat ac_aggr;
19700 if (sizeof ac_aggr.st_blocks)
19701 return 0;
19702   ;
19703   return 0;
19704 }
19705 _ACEOF
19706 rm -f conftest.$ac_objext
19707 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19708   (eval $ac_compile) 2>conftest.er1
19709   ac_status=$?
19710   grep -v '^ *+' conftest.er1 >conftest.err
19711   rm -f conftest.er1
19712   cat conftest.err >&5
19713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19714   (exit $ac_status); } &&
19715          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
19716   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19717   (eval $ac_try) 2>&5
19718   ac_status=$?
19719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19720   (exit $ac_status); }; } &&
19721          { ac_try='test -s conftest.$ac_objext'
19722   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19723   (eval $ac_try) 2>&5
19724   ac_status=$?
19725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19726   (exit $ac_status); }; }; then
19727   ac_cv_member_struct_stat_st_blocks=yes
19728 else
19729   echo "$as_me: failed program was:" >&5
19730 sed 's/^/| /' conftest.$ac_ext >&5
19731
19732 ac_cv_member_struct_stat_st_blocks=no
19733 fi
19734 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19735 fi
19736 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19737 fi
19738 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
19739 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
19740 if test $ac_cv_member_struct_stat_st_blocks = yes; then
19741
19742 cat >>confdefs.h <<_ACEOF
19743 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
19744 _ACEOF
19745
19746
19747 fi
19748
19749
19750
19751 case $host_cpu in
19752   *i[3456789]86*) echo "$as_me:$LINENO: checking whether we need to define __i386__" >&5
19753 echo $ECHO_N "checking whether we need to define __i386__... $ECHO_C" >&6
19754 if test "${ac_cv_cpp_def___i386__+set}" = set; then
19755   echo $ECHO_N "(cached) $ECHO_C" >&6
19756 else
19757   cat >conftest.$ac_ext <<_ACEOF
19758 /* confdefs.h.  */
19759 _ACEOF
19760 cat confdefs.h >>conftest.$ac_ext
19761 cat >>conftest.$ac_ext <<_ACEOF
19762 /* end confdefs.h.  */
19763 #ifndef __i386__
19764 yes
19765 #endif
19766 _ACEOF
19767 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19768   $EGREP "yes" >/dev/null 2>&1; then
19769   ac_cv_cpp_def___i386__=yes
19770 else
19771   ac_cv_cpp_def___i386__=no
19772 fi
19773 rm -f conftest*
19774
19775 fi
19776 echo "$as_me:$LINENO: result: $ac_cv_cpp_def___i386__" >&5
19777 echo "${ECHO_T}$ac_cv_cpp_def___i386__" >&6
19778 if test $ac_cv_cpp_def___i386__ = yes; then
19779   CFLAGS="$CFLAGS -D__i386__"
19780   LINTFLAGS="$LINTFLAGS -D__i386__"
19781 fi
19782  ;;
19783   *alpha*)          echo "$as_me:$LINENO: checking whether we need to define __ALPHA__" >&5
19784 echo $ECHO_N "checking whether we need to define __ALPHA__... $ECHO_C" >&6
19785 if test "${ac_cv_cpp_def___ALPHA__+set}" = set; then
19786   echo $ECHO_N "(cached) $ECHO_C" >&6
19787 else
19788   cat >conftest.$ac_ext <<_ACEOF
19789 /* confdefs.h.  */
19790 _ACEOF
19791 cat confdefs.h >>conftest.$ac_ext
19792 cat >>conftest.$ac_ext <<_ACEOF
19793 /* end confdefs.h.  */
19794 #ifndef __ALPHA__
19795 yes
19796 #endif
19797 _ACEOF
19798 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19799   $EGREP "yes" >/dev/null 2>&1; then
19800   ac_cv_cpp_def___ALPHA__=yes
19801 else
19802   ac_cv_cpp_def___ALPHA__=no
19803 fi
19804 rm -f conftest*
19805
19806 fi
19807 echo "$as_me:$LINENO: result: $ac_cv_cpp_def___ALPHA__" >&5
19808 echo "${ECHO_T}$ac_cv_cpp_def___ALPHA__" >&6
19809 if test $ac_cv_cpp_def___ALPHA__ = yes; then
19810   CFLAGS="$CFLAGS -D__ALPHA__"
19811   LINTFLAGS="$LINTFLAGS -D__ALPHA__"
19812 fi
19813  ;;
19814   *sparc*)          echo "$as_me:$LINENO: checking whether we need to define __sparc__" >&5
19815 echo $ECHO_N "checking whether we need to define __sparc__... $ECHO_C" >&6
19816 if test "${ac_cv_cpp_def___sparc__+set}" = set; then
19817   echo $ECHO_N "(cached) $ECHO_C" >&6
19818 else
19819   cat >conftest.$ac_ext <<_ACEOF
19820 /* confdefs.h.  */
19821 _ACEOF
19822 cat confdefs.h >>conftest.$ac_ext
19823 cat >>conftest.$ac_ext <<_ACEOF
19824 /* end confdefs.h.  */
19825 #ifndef __sparc__
19826 yes
19827 #endif
19828 _ACEOF
19829 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19830   $EGREP "yes" >/dev/null 2>&1; then
19831   ac_cv_cpp_def___sparc__=yes
19832 else
19833   ac_cv_cpp_def___sparc__=no
19834 fi
19835 rm -f conftest*
19836
19837 fi
19838 echo "$as_me:$LINENO: result: $ac_cv_cpp_def___sparc__" >&5
19839 echo "${ECHO_T}$ac_cv_cpp_def___sparc__" >&6
19840 if test $ac_cv_cpp_def___sparc__ = yes; then
19841   CFLAGS="$CFLAGS -D__sparc__"
19842   LINTFLAGS="$LINTFLAGS -D__sparc__"
19843 fi
19844  ;;
19845   *powerpc*)        echo "$as_me:$LINENO: checking whether we need to define __powerpc__" >&5
19846 echo $ECHO_N "checking whether we need to define __powerpc__... $ECHO_C" >&6
19847 if test "${ac_cv_cpp_def___powerpc__+set}" = set; then
19848   echo $ECHO_N "(cached) $ECHO_C" >&6
19849 else
19850   cat >conftest.$ac_ext <<_ACEOF
19851 /* confdefs.h.  */
19852 _ACEOF
19853 cat confdefs.h >>conftest.$ac_ext
19854 cat >>conftest.$ac_ext <<_ACEOF
19855 /* end confdefs.h.  */
19856 #ifndef __powerpc__
19857 yes
19858 #endif
19859 _ACEOF
19860 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19861   $EGREP "yes" >/dev/null 2>&1; then
19862   ac_cv_cpp_def___powerpc__=yes
19863 else
19864   ac_cv_cpp_def___powerpc__=no
19865 fi
19866 rm -f conftest*
19867
19868 fi
19869 echo "$as_me:$LINENO: result: $ac_cv_cpp_def___powerpc__" >&5
19870 echo "${ECHO_T}$ac_cv_cpp_def___powerpc__" >&6
19871 if test $ac_cv_cpp_def___powerpc__ = yes; then
19872   CFLAGS="$CFLAGS -D__powerpc__"
19873   LINTFLAGS="$LINTFLAGS -D__powerpc__"
19874 fi
19875  ;;
19876 esac
19877
19878 case $host_vendor in
19879   *sun*) echo "$as_me:$LINENO: checking whether we need to define __sun__" >&5
19880 echo $ECHO_N "checking whether we need to define __sun__... $ECHO_C" >&6
19881 if test "${ac_cv_cpp_def___sun__+set}" = set; then
19882   echo $ECHO_N "(cached) $ECHO_C" >&6
19883 else
19884   cat >conftest.$ac_ext <<_ACEOF
19885 /* confdefs.h.  */
19886 _ACEOF
19887 cat confdefs.h >>conftest.$ac_ext
19888 cat >>conftest.$ac_ext <<_ACEOF
19889 /* end confdefs.h.  */
19890 #ifndef __sun__
19891 yes
19892 #endif
19893 _ACEOF
19894 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19895   $EGREP "yes" >/dev/null 2>&1; then
19896   ac_cv_cpp_def___sun__=yes
19897 else
19898   ac_cv_cpp_def___sun__=no
19899 fi
19900 rm -f conftest*
19901
19902 fi
19903 echo "$as_me:$LINENO: result: $ac_cv_cpp_def___sun__" >&5
19904 echo "${ECHO_T}$ac_cv_cpp_def___sun__" >&6
19905 if test $ac_cv_cpp_def___sun__ = yes; then
19906   CFLAGS="$CFLAGS -D__sun__"
19907   LINTFLAGS="$LINTFLAGS -D__sun__"
19908 fi
19909  ;;
19910 esac
19911
19912
19913
19914
19915
19916           ac_config_commands="$ac_config_commands dlls/ddraw/d3ddevice"
19917
19918           ac_config_commands="$ac_config_commands dlls/ddraw/dclipper"
19919
19920           ac_config_commands="$ac_config_commands dlls/ddraw/ddraw"
19921
19922           ac_config_commands="$ac_config_commands dlls/ddraw/direct3d"
19923
19924           ac_config_commands="$ac_config_commands dlls/ddraw/dpalette"
19925
19926           ac_config_commands="$ac_config_commands dlls/ddraw/dsurface"
19927
19928           ac_config_commands="$ac_config_commands dlls/gdi/enhmfdrv"
19929
19930           ac_config_commands="$ac_config_commands dlls/gdi/mfdrv"
19931
19932           ac_config_commands="$ac_config_commands dlls/kernel/messages"
19933
19934           ac_config_commands="$ac_config_commands dlls/user/dde"
19935
19936           ac_config_commands="$ac_config_commands dlls/user/resources"
19937
19938           ac_config_commands="$ac_config_commands dlls/wineps/data"
19939
19940           ac_config_commands="$ac_config_commands include/wine"
19941
19942           ac_config_commands="$ac_config_commands programs/regedit/tests"
19943
19944           ac_config_commands="$ac_config_commands windows"
19945
19946
19947 MAKE_RULES=Make.rules
19948
19949
19950 MAKE_DLL_RULES=dlls/Makedll.rules
19951
19952
19953 MAKE_TEST_RULES=dlls/Maketest.rules
19954
19955
19956 MAKE_LIB_RULES=libs/Makelib.rules
19957
19958
19959 MAKE_PROG_RULES=programs/Makeprog.rules
19960
19961
19962                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               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/advpack/Makefile dlls/advpack/tests/Makefile dlls/amstream/Makefile dlls/atl/Makefile dlls/avicap32/Makefile dlls/avifil32/Makefile dlls/cabinet/Makefile dlls/capi2032/Makefile dlls/cards/Makefile dlls/cfgmgr32/Makefile dlls/comcat/Makefile dlls/comctl32/Makefile dlls/comctl32/tests/Makefile dlls/commdlg/Makefile dlls/crtdll/Makefile dlls/crypt32/Makefile dlls/cryptdll/Makefile dlls/ctl3d/Makefile dlls/d3d8/Makefile dlls/d3d9/Makefile dlls/d3dim/Makefile dlls/d3drm/Makefile dlls/d3dx8/Makefile dlls/d3dxof/Makefile dlls/dbghelp/Makefile dlls/dciman32/Makefile dlls/ddraw/Makefile dlls/ddraw/tests/Makefile dlls/devenum/Makefile dlls/dinput/Makefile dlls/dinput/tests/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/dpnet/Makefile dlls/dpnhpast/Makefile dlls/dsound/Makefile dlls/dsound/tests/Makefile dlls/dswave/Makefile dlls/dxdiagn/Makefile dlls/dxerr8/Makefile dlls/dxerr9/Makefile dlls/dxguid/Makefile dlls/gdi/Makefile dlls/gdi/tests/Makefile dlls/glu32/Makefile dlls/glut32/Makefile dlls/hhctrl.ocx/Makefile dlls/iccvid/Makefile dlls/icmp/Makefile dlls/ifsmgr.vxd/Makefile dlls/imagehlp/Makefile dlls/imm32/Makefile dlls/iphlpapi/Makefile dlls/iphlpapi/tests/Makefile dlls/itss/Makefile dlls/kernel/Makefile dlls/kernel/tests/Makefile dlls/lzexpand/Makefile dlls/lzexpand/tests/Makefile dlls/mapi32/Makefile dlls/mapi32/tests/Makefile dlls/mlang/Makefile dlls/mlang/tests/Makefile dlls/mmdevldr.vxd/Makefile dlls/monodebg.vxd/Makefile dlls/mpr/Makefile dlls/msacm/Makefile dlls/msacm/imaadp32/Makefile dlls/msacm/msadp32/Makefile dlls/msacm/msg711/Makefile dlls/msacm/winemp3/Makefile dlls/msacm/tests/Makefile dlls/mscms/Makefile dlls/mscms/tests/Makefile dlls/msdmo/Makefile dlls/mshtml/Makefile dlls/msi/Makefile dlls/msi/tests/Makefile dlls/msimg32/Makefile dlls/msisys/Makefile dlls/msnet32/Makefile dlls/msrle32/Makefile dlls/msvcrt/Makefile dlls/msvcrt/tests/Makefile dlls/msvcrt20/Makefile dlls/msvcrt40/Makefile dlls/msvcrtd/Makefile dlls/msvcrtd/tests/Makefile dlls/msvidc32/Makefile dlls/msvideo/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/odbccp32/Makefile dlls/ole32/Makefile dlls/ole32/tests/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/powrprof/Makefile dlls/psapi/Makefile dlls/psapi/tests/Makefile dlls/qcap/Makefile dlls/quartz/Makefile dlls/quartz/tests/Makefile dlls/rasapi32/Makefile dlls/riched20/Makefile dlls/richedit/Makefile dlls/rpcrt4/Makefile dlls/rpcrt4/tests/Makefile dlls/rsabase/Makefile dlls/rsabase/tests/Makefile dlls/rsaenh/Makefile dlls/rsaenh/tests/Makefile dlls/secur32/Makefile dlls/sensapi/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/stdole32.tlb/Makefile dlls/sti/Makefile dlls/strmiids/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/uuid/Makefile dlls/uxtheme/Makefile dlls/vdhcp.vxd/Makefile dlls/vdmdbg/Makefile dlls/version/Makefile dlls/version/tests/Makefile dlls/vmm.vxd/Makefile dlls/vnbt.vxd/Makefile dlls/vnetbios.vxd/Makefile dlls/vtdapi.vxd/Makefile dlls/vwin32.vxd/Makefile dlls/win32s/Makefile dlls/winaspi/Makefile dlls/wined3d/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/winejack/Makefile dlls/winmm/winenas/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/wtsapi32/Makefile dlls/x11drv/Makefile documentation/Makefile fonts/Makefile include/Makefile libs/Makefile libs/port/Makefile libs/unicode/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/msiexec/Makefile programs/notepad/Makefile programs/progman/Makefile programs/regedit/Makefile programs/regsvr32/Makefile programs/rpcss/Makefile programs/rundll32/Makefile programs/start/Makefile programs/taskmgr/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"
19963
19964
19965 cat >confcache <<\_ACEOF
19966 # This file is a shell script that caches the results of configure
19967 # tests run on this system so they can be shared between configure
19968 # scripts and configure runs, see configure's option --config-cache.
19969 # It is not useful on other systems.  If it contains results you don't
19970 # want to keep, you may remove or edit it.
19971 #
19972 # config.status only pays attention to the cache file if you give it
19973 # the --recheck option to rerun configure.
19974 #
19975 # `ac_cv_env_foo' variables (set or unset) will be overridden when
19976 # loading this file, other *unset* `ac_cv_foo' will be assigned the
19977 # following values.
19978
19979 _ACEOF
19980
19981 # The following way of writing the cache mishandles newlines in values,
19982 # but we know of no workaround that is simple, portable, and efficient.
19983 # So, don't put newlines in cache variables' values.
19984 # Ultrix sh set writes to stderr and can't be redirected directly,
19985 # and sets the high bit in the cache file unless we assign to the vars.
19986 {
19987   (set) 2>&1 |
19988     case `(ac_space=' '; set | grep ac_space) 2>&1` in
19989     *ac_space=\ *)
19990       # `set' does not quote correctly, so add quotes (double-quote
19991       # substitution turns \\\\ into \\, and sed turns \\ into \).
19992       sed -n \
19993         "s/'/'\\\\''/g;
19994           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
19995       ;;
19996     *)
19997       # `set' quotes correctly as required by POSIX, so do not add quotes.
19998       sed -n \
19999         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
20000       ;;
20001     esac;
20002 } |
20003   sed '
20004      t clear
20005      : clear
20006      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20007      t end
20008      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20009      : end' >>confcache
20010 if diff $cache_file confcache >/dev/null 2>&1; then :; else
20011   if test -w $cache_file; then
20012     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
20013     cat confcache >$cache_file
20014   else
20015     echo "not updating unwritable cache $cache_file"
20016   fi
20017 fi
20018 rm -f confcache
20019
20020 test "x$prefix" = xNONE && prefix=$ac_default_prefix
20021 # Let make expand exec_prefix.
20022 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20023
20024 # VPATH may cause trouble with some makes, so we remove $(srcdir),
20025 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
20026 # trailing colons and then remove the whole line if VPATH becomes empty
20027 # (actually we leave an empty line to preserve line numbers).
20028 if test "x$srcdir" = x.; then
20029   ac_vpsub='/^[  ]*VPATH[        ]*=/{
20030 s/:*\$(srcdir):*/:/;
20031 s/:*\${srcdir}:*/:/;
20032 s/:*@srcdir@:*/:/;
20033 s/^\([^=]*=[     ]*\):*/\1/;
20034 s/:*$//;
20035 s/^[^=]*=[       ]*$//;
20036 }'
20037 fi
20038
20039 DEFS=-DHAVE_CONFIG_H
20040
20041 ac_libobjs=
20042 ac_ltlibobjs=
20043 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
20044   # 1. Remove the extension, and $U if already installed.
20045   ac_i=`echo "$ac_i" |
20046          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
20047   # 2. Add them.
20048   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
20049   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
20050 done
20051 LIBOBJS=$ac_libobjs
20052
20053 LTLIBOBJS=$ac_ltlibobjs
20054
20055
20056
20057 : ${CONFIG_STATUS=./config.status}
20058 ac_clean_files_save=$ac_clean_files
20059 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
20060 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
20061 echo "$as_me: creating $CONFIG_STATUS" >&6;}
20062 cat >$CONFIG_STATUS <<_ACEOF
20063 #! $SHELL
20064 # Generated by $as_me.
20065 # Run this file to recreate the current configuration.
20066 # Compiler output produced by configure, useful for debugging
20067 # configure, is in config.log if it exists.
20068
20069 debug=false
20070 ac_cs_recheck=false
20071 ac_cs_silent=false
20072 SHELL=\${CONFIG_SHELL-$SHELL}
20073 _ACEOF
20074
20075 cat >>$CONFIG_STATUS <<\_ACEOF
20076 ## --------------------- ##
20077 ## M4sh Initialization.  ##
20078 ## --------------------- ##
20079
20080 # Be Bourne compatible
20081 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
20082   emulate sh
20083   NULLCMD=:
20084   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20085   # is contrary to our usage.  Disable this feature.
20086   alias -g '${1+"$@"}'='"$@"'
20087 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20088   set -o posix
20089 fi
20090 DUALCASE=1; export DUALCASE # for MKS sh
20091
20092 # Support unset when possible.
20093 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
20094   as_unset=unset
20095 else
20096   as_unset=false
20097 fi
20098
20099
20100 # Work around bugs in pre-3.0 UWIN ksh.
20101 $as_unset ENV MAIL MAILPATH
20102 PS1='$ '
20103 PS2='> '
20104 PS4='+ '
20105
20106 # NLS nuisances.
20107 for as_var in \
20108   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
20109   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
20110   LC_TELEPHONE LC_TIME
20111 do
20112   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
20113     eval $as_var=C; export $as_var
20114   else
20115     $as_unset $as_var
20116   fi
20117 done
20118
20119 # Required to use basename.
20120 if expr a : '\(a\)' >/dev/null 2>&1; then
20121   as_expr=expr
20122 else
20123   as_expr=false
20124 fi
20125
20126 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
20127   as_basename=basename
20128 else
20129   as_basename=false
20130 fi
20131
20132
20133 # Name of the executable.
20134 as_me=`$as_basename "$0" ||
20135 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20136          X"$0" : 'X\(//\)$' \| \
20137          X"$0" : 'X\(/\)$' \| \
20138          .     : '\(.\)' 2>/dev/null ||
20139 echo X/"$0" |
20140     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
20141           /^X\/\(\/\/\)$/{ s//\1/; q; }
20142           /^X\/\(\/\).*/{ s//\1/; q; }
20143           s/.*/./; q'`
20144
20145
20146 # PATH needs CR, and LINENO needs CR and PATH.
20147 # Avoid depending upon Character Ranges.
20148 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20149 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20150 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20151 as_cr_digits='0123456789'
20152 as_cr_alnum=$as_cr_Letters$as_cr_digits
20153
20154 # The user is always right.
20155 if test "${PATH_SEPARATOR+set}" != set; then
20156   echo "#! /bin/sh" >conf$$.sh
20157   echo  "exit 0"   >>conf$$.sh
20158   chmod +x conf$$.sh
20159   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
20160     PATH_SEPARATOR=';'
20161   else
20162     PATH_SEPARATOR=:
20163   fi
20164   rm -f conf$$.sh
20165 fi
20166
20167
20168   as_lineno_1=$LINENO
20169   as_lineno_2=$LINENO
20170   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
20171   test "x$as_lineno_1" != "x$as_lineno_2" &&
20172   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
20173   # Find who we are.  Look in the path if we contain no path at all
20174   # relative or not.
20175   case $0 in
20176     *[\\/]* ) as_myself=$0 ;;
20177     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20178 for as_dir in $PATH
20179 do
20180   IFS=$as_save_IFS
20181   test -z "$as_dir" && as_dir=.
20182   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
20183 done
20184
20185        ;;
20186   esac
20187   # We did not find ourselves, most probably we were run as `sh COMMAND'
20188   # in which case we are not to be found in the path.
20189   if test "x$as_myself" = x; then
20190     as_myself=$0
20191   fi
20192   if test ! -f "$as_myself"; then
20193     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
20194 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
20195    { (exit 1); exit 1; }; }
20196   fi
20197   case $CONFIG_SHELL in
20198   '')
20199     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20200 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
20201 do
20202   IFS=$as_save_IFS
20203   test -z "$as_dir" && as_dir=.
20204   for as_base in sh bash ksh sh5; do
20205          case $as_dir in
20206          /*)
20207            if ("$as_dir/$as_base" -c '
20208   as_lineno_1=$LINENO
20209   as_lineno_2=$LINENO
20210   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
20211   test "x$as_lineno_1" != "x$as_lineno_2" &&
20212   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
20213              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
20214              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
20215              CONFIG_SHELL=$as_dir/$as_base
20216              export CONFIG_SHELL
20217              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
20218            fi;;
20219          esac
20220        done
20221 done
20222 ;;
20223   esac
20224
20225   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
20226   # uniformly replaced by the line number.  The first 'sed' inserts a
20227   # line-number line before each line; the second 'sed' does the real
20228   # work.  The second script uses 'N' to pair each line-number line
20229   # with the numbered line, and appends trailing '-' during
20230   # substitution so that $LINENO is not a special case at line end.
20231   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
20232   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
20233   sed '=' <$as_myself |
20234     sed '
20235       N
20236       s,$,-,
20237       : loop
20238       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
20239       t loop
20240       s,-$,,
20241       s,^['$as_cr_digits']*\n,,
20242     ' >$as_me.lineno &&
20243   chmod +x $as_me.lineno ||
20244     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
20245 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
20246    { (exit 1); exit 1; }; }
20247
20248   # Don't try to exec as it changes $[0], causing all sort of problems
20249   # (the dirname of $[0] is not the place where we might find the
20250   # original and so on.  Autoconf is especially sensible to this).
20251   . ./$as_me.lineno
20252   # Exit status is that of the last command.
20253   exit
20254 }
20255
20256
20257 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
20258   *c*,-n*) ECHO_N= ECHO_C='
20259 ' ECHO_T='      ' ;;
20260   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
20261   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
20262 esac
20263
20264 if expr a : '\(a\)' >/dev/null 2>&1; then
20265   as_expr=expr
20266 else
20267   as_expr=false
20268 fi
20269
20270 rm -f conf$$ conf$$.exe conf$$.file
20271 echo >conf$$.file
20272 if ln -s conf$$.file conf$$ 2>/dev/null; then
20273   # We could just check for DJGPP; but this test a) works b) is more generic
20274   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
20275   if test -f conf$$.exe; then
20276     # Don't use ln at all; we don't have any links
20277     as_ln_s='cp -p'
20278   else
20279     as_ln_s='ln -s'
20280   fi
20281 elif ln conf$$.file conf$$ 2>/dev/null; then
20282   as_ln_s=ln
20283 else
20284   as_ln_s='cp -p'
20285 fi
20286 rm -f conf$$ conf$$.exe conf$$.file
20287
20288 if mkdir -p . 2>/dev/null; then
20289   as_mkdir_p=:
20290 else
20291   test -d ./-p && rmdir ./-p
20292   as_mkdir_p=false
20293 fi
20294
20295 as_executable_p="test -f"
20296
20297 # Sed expression to map a string onto a valid CPP name.
20298 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20299
20300 # Sed expression to map a string onto a valid variable name.
20301 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20302
20303
20304 # IFS
20305 # We need space, tab and new line, in precisely that order.
20306 as_nl='
20307 '
20308 IFS="   $as_nl"
20309
20310 # CDPATH.
20311 $as_unset CDPATH
20312
20313 exec 6>&1
20314
20315 # Open the log real soon, to keep \$[0] and so on meaningful, and to
20316 # report actual input values of CONFIG_FILES etc. instead of their
20317 # values after options handling.  Logging --version etc. is OK.
20318 exec 5>>config.log
20319 {
20320   echo
20321   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20322 ## Running $as_me. ##
20323 _ASBOX
20324 } >&5
20325 cat >&5 <<_CSEOF
20326
20327 This file was extended by Wine $as_me 20050419, which was
20328 generated by GNU Autoconf 2.59.  Invocation command line was
20329
20330   CONFIG_FILES    = $CONFIG_FILES
20331   CONFIG_HEADERS  = $CONFIG_HEADERS
20332   CONFIG_LINKS    = $CONFIG_LINKS
20333   CONFIG_COMMANDS = $CONFIG_COMMANDS
20334   $ $0 $@
20335
20336 _CSEOF
20337 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
20338 echo >&5
20339 _ACEOF
20340
20341 # Files that config.status was made for.
20342 if test -n "$ac_config_files"; then
20343   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
20344 fi
20345
20346 if test -n "$ac_config_headers"; then
20347   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
20348 fi
20349
20350 if test -n "$ac_config_links"; then
20351   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
20352 fi
20353
20354 if test -n "$ac_config_commands"; then
20355   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
20356 fi
20357
20358 cat >>$CONFIG_STATUS <<\_ACEOF
20359
20360 ac_cs_usage="\
20361 \`$as_me' instantiates files from templates according to the
20362 current configuration.
20363
20364 Usage: $0 [OPTIONS] [FILE]...
20365
20366   -h, --help       print this help, then exit
20367   -V, --version    print version number, then exit
20368   -q, --quiet      do not print progress messages
20369   -d, --debug      don't remove temporary files
20370       --recheck    update $as_me by reconfiguring in the same conditions
20371   --file=FILE[:TEMPLATE]
20372                    instantiate the configuration file FILE
20373   --header=FILE[:TEMPLATE]
20374                    instantiate the configuration header FILE
20375
20376 Configuration files:
20377 $config_files
20378
20379 Configuration headers:
20380 $config_headers
20381
20382 Configuration commands:
20383 $config_commands
20384
20385 Report bugs to <bug-autoconf@gnu.org>."
20386 _ACEOF
20387
20388 cat >>$CONFIG_STATUS <<_ACEOF
20389 ac_cs_version="\\
20390 Wine config.status 20050419
20391 configured by $0, generated by GNU Autoconf 2.59,
20392   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
20393
20394 Copyright (C) 2003 Free Software Foundation, Inc.
20395 This config.status script is free software; the Free Software Foundation
20396 gives unlimited permission to copy, distribute and modify it."
20397 srcdir=$srcdir
20398 INSTALL="$INSTALL"
20399 _ACEOF
20400
20401 cat >>$CONFIG_STATUS <<\_ACEOF
20402 # If no file are specified by the user, then we need to provide default
20403 # value.  By we need to know if files were specified by the user.
20404 ac_need_defaults=:
20405 while test $# != 0
20406 do
20407   case $1 in
20408   --*=*)
20409     ac_option=`expr "x$1" : 'x\([^=]*\)='`
20410     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
20411     ac_shift=:
20412     ;;
20413   -*)
20414     ac_option=$1
20415     ac_optarg=$2
20416     ac_shift=shift
20417     ;;
20418   *) # This is not an option, so the user has probably given explicit
20419      # arguments.
20420      ac_option=$1
20421      ac_need_defaults=false;;
20422   esac
20423
20424   case $ac_option in
20425   # Handling of the options.
20426 _ACEOF
20427 cat >>$CONFIG_STATUS <<\_ACEOF
20428   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20429     ac_cs_recheck=: ;;
20430   --version | --vers* | -V )
20431     echo "$ac_cs_version"; exit 0 ;;
20432   --he | --h)
20433     # Conflict between --help and --header
20434     { { echo "$as_me:$LINENO: error: ambiguous option: $1
20435 Try \`$0 --help' for more information." >&5
20436 echo "$as_me: error: ambiguous option: $1
20437 Try \`$0 --help' for more information." >&2;}
20438    { (exit 1); exit 1; }; };;
20439   --help | --hel | -h )
20440     echo "$ac_cs_usage"; exit 0 ;;
20441   --debug | --d* | -d )
20442     debug=: ;;
20443   --file | --fil | --fi | --f )
20444     $ac_shift
20445     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
20446     ac_need_defaults=false;;
20447   --header | --heade | --head | --hea )
20448     $ac_shift
20449     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
20450     ac_need_defaults=false;;
20451   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20452   | -silent | --silent | --silen | --sile | --sil | --si | --s)
20453     ac_cs_silent=: ;;
20454
20455   # This is an error.
20456   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
20457 Try \`$0 --help' for more information." >&5
20458 echo "$as_me: error: unrecognized option: $1
20459 Try \`$0 --help' for more information." >&2;}
20460    { (exit 1); exit 1; }; } ;;
20461
20462   *) ac_config_targets="$ac_config_targets $1" ;;
20463
20464   esac
20465   shift
20466 done
20467
20468 ac_configure_extra_args=
20469
20470 if $ac_cs_silent; then
20471   exec 6>/dev/null
20472   ac_configure_extra_args="$ac_configure_extra_args --silent"
20473 fi
20474
20475 _ACEOF
20476 cat >>$CONFIG_STATUS <<_ACEOF
20477 if \$ac_cs_recheck; then
20478   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
20479   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20480 fi
20481
20482 _ACEOF
20483
20484
20485
20486
20487
20488 cat >>$CONFIG_STATUS <<\_ACEOF
20489 for ac_config_target in $ac_config_targets
20490 do
20491   case "$ac_config_target" in
20492   # Handling of arguments.
20493   "Make.rules" ) CONFIG_FILES="$CONFIG_FILES Make.rules" ;;
20494   "dlls/Makedll.rules" ) CONFIG_FILES="$CONFIG_FILES dlls/Makedll.rules" ;;
20495   "dlls/Maketest.rules" ) CONFIG_FILES="$CONFIG_FILES dlls/Maketest.rules" ;;
20496   "libs/Makelib.rules" ) CONFIG_FILES="$CONFIG_FILES libs/Makelib.rules" ;;
20497   "programs/Makeprog.rules" ) CONFIG_FILES="$CONFIG_FILES programs/Makeprog.rules" ;;
20498   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
20499   "dlls/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/Makefile" ;;
20500   "dlls/advapi32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/advapi32/Makefile" ;;
20501   "dlls/advapi32/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/advapi32/tests/Makefile" ;;
20502   "dlls/advpack/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/advpack/Makefile" ;;
20503   "dlls/advpack/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/advpack/tests/Makefile" ;;
20504   "dlls/amstream/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/amstream/Makefile" ;;
20505   "dlls/atl/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/atl/Makefile" ;;
20506   "dlls/avicap32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/avicap32/Makefile" ;;
20507   "dlls/avifil32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/avifil32/Makefile" ;;
20508   "dlls/cabinet/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/cabinet/Makefile" ;;
20509   "dlls/capi2032/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/capi2032/Makefile" ;;
20510   "dlls/cards/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/cards/Makefile" ;;
20511   "dlls/cfgmgr32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/cfgmgr32/Makefile" ;;
20512   "dlls/comcat/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/comcat/Makefile" ;;
20513   "dlls/comctl32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/comctl32/Makefile" ;;
20514   "dlls/comctl32/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/comctl32/tests/Makefile" ;;
20515   "dlls/commdlg/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/commdlg/Makefile" ;;
20516   "dlls/crtdll/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/crtdll/Makefile" ;;
20517   "dlls/crypt32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/crypt32/Makefile" ;;
20518   "dlls/cryptdll/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/cryptdll/Makefile" ;;
20519   "dlls/ctl3d/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ctl3d/Makefile" ;;
20520   "dlls/d3d8/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/d3d8/Makefile" ;;
20521   "dlls/d3d9/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/d3d9/Makefile" ;;
20522   "dlls/d3dim/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/d3dim/Makefile" ;;
20523   "dlls/d3drm/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/d3drm/Makefile" ;;
20524   "dlls/d3dx8/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/d3dx8/Makefile" ;;
20525   "dlls/d3dxof/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/d3dxof/Makefile" ;;
20526   "dlls/dbghelp/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dbghelp/Makefile" ;;
20527   "dlls/dciman32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dciman32/Makefile" ;;
20528   "dlls/ddraw/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ddraw/Makefile" ;;
20529   "dlls/ddraw/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ddraw/tests/Makefile" ;;
20530   "dlls/devenum/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/devenum/Makefile" ;;
20531   "dlls/dinput/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dinput/Makefile" ;;
20532   "dlls/dinput/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dinput/tests/Makefile" ;;
20533   "dlls/dinput8/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dinput8/Makefile" ;;
20534   "dlls/dmband/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dmband/Makefile" ;;
20535   "dlls/dmcompos/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dmcompos/Makefile" ;;
20536   "dlls/dmime/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dmime/Makefile" ;;
20537   "dlls/dmloader/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dmloader/Makefile" ;;
20538   "dlls/dmscript/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dmscript/Makefile" ;;
20539   "dlls/dmstyle/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dmstyle/Makefile" ;;
20540   "dlls/dmsynth/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dmsynth/Makefile" ;;
20541   "dlls/dmusic/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dmusic/Makefile" ;;
20542   "dlls/dmusic32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dmusic32/Makefile" ;;
20543   "dlls/dplay/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dplay/Makefile" ;;
20544   "dlls/dplayx/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dplayx/Makefile" ;;
20545   "dlls/dpnet/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dpnet/Makefile" ;;
20546   "dlls/dpnhpast/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dpnhpast/Makefile" ;;
20547   "dlls/dsound/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dsound/Makefile" ;;
20548   "dlls/dsound/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dsound/tests/Makefile" ;;
20549   "dlls/dswave/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dswave/Makefile" ;;
20550   "dlls/dxdiagn/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dxdiagn/Makefile" ;;
20551   "dlls/dxerr8/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dxerr8/Makefile" ;;
20552   "dlls/dxerr9/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dxerr9/Makefile" ;;
20553   "dlls/dxguid/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dxguid/Makefile" ;;
20554   "dlls/gdi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/gdi/Makefile" ;;
20555   "dlls/gdi/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/gdi/tests/Makefile" ;;
20556   "dlls/glu32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/glu32/Makefile" ;;
20557   "dlls/glut32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/glut32/Makefile" ;;
20558   "dlls/hhctrl.ocx/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/hhctrl.ocx/Makefile" ;;
20559   "dlls/iccvid/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/iccvid/Makefile" ;;
20560   "dlls/icmp/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/icmp/Makefile" ;;
20561   "dlls/ifsmgr.vxd/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ifsmgr.vxd/Makefile" ;;
20562   "dlls/imagehlp/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/imagehlp/Makefile" ;;
20563   "dlls/imm32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/imm32/Makefile" ;;
20564   "dlls/iphlpapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/iphlpapi/Makefile" ;;
20565   "dlls/iphlpapi/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/iphlpapi/tests/Makefile" ;;
20566   "dlls/itss/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/itss/Makefile" ;;
20567   "dlls/kernel/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/kernel/Makefile" ;;
20568   "dlls/kernel/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/kernel/tests/Makefile" ;;
20569   "dlls/lzexpand/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/lzexpand/Makefile" ;;
20570   "dlls/lzexpand/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/lzexpand/tests/Makefile" ;;
20571   "dlls/mapi32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/mapi32/Makefile" ;;
20572   "dlls/mapi32/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/mapi32/tests/Makefile" ;;
20573   "dlls/mlang/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/mlang/Makefile" ;;
20574   "dlls/mlang/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/mlang/tests/Makefile" ;;
20575   "dlls/mmdevldr.vxd/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/mmdevldr.vxd/Makefile" ;;
20576   "dlls/monodebg.vxd/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/monodebg.vxd/Makefile" ;;
20577   "dlls/mpr/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/mpr/Makefile" ;;
20578   "dlls/msacm/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msacm/Makefile" ;;
20579   "dlls/msacm/imaadp32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msacm/imaadp32/Makefile" ;;
20580   "dlls/msacm/msadp32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msacm/msadp32/Makefile" ;;
20581   "dlls/msacm/msg711/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msacm/msg711/Makefile" ;;
20582   "dlls/msacm/winemp3/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msacm/winemp3/Makefile" ;;
20583   "dlls/msacm/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msacm/tests/Makefile" ;;
20584   "dlls/mscms/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/mscms/Makefile" ;;
20585   "dlls/mscms/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/mscms/tests/Makefile" ;;
20586   "dlls/msdmo/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msdmo/Makefile" ;;
20587   "dlls/mshtml/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/mshtml/Makefile" ;;
20588   "dlls/msi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msi/Makefile" ;;
20589   "dlls/msi/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msi/tests/Makefile" ;;
20590   "dlls/msimg32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msimg32/Makefile" ;;
20591   "dlls/msisys/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msisys/Makefile" ;;
20592   "dlls/msnet32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msnet32/Makefile" ;;
20593   "dlls/msrle32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msrle32/Makefile" ;;
20594   "dlls/msvcrt/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvcrt/Makefile" ;;
20595   "dlls/msvcrt/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvcrt/tests/Makefile" ;;
20596   "dlls/msvcrt20/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvcrt20/Makefile" ;;
20597   "dlls/msvcrt40/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvcrt40/Makefile" ;;
20598   "dlls/msvcrtd/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvcrtd/Makefile" ;;
20599   "dlls/msvcrtd/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvcrtd/tests/Makefile" ;;
20600   "dlls/msvidc32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvidc32/Makefile" ;;
20601   "dlls/msvideo/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvideo/Makefile" ;;
20602   "dlls/mswsock/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/mswsock/Makefile" ;;
20603   "dlls/netapi32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/netapi32/Makefile" ;;
20604   "dlls/netapi32/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/netapi32/tests/Makefile" ;;
20605   "dlls/newdev/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/newdev/Makefile" ;;
20606   "dlls/ntdll/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ntdll/Makefile" ;;
20607   "dlls/ntdll/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ntdll/tests/Makefile" ;;
20608   "dlls/odbc32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/odbc32/Makefile" ;;
20609   "dlls/odbccp32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/odbccp32/Makefile" ;;
20610   "dlls/ole32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ole32/Makefile" ;;
20611   "dlls/ole32/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ole32/tests/Makefile" ;;
20612   "dlls/oleacc/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/oleacc/Makefile" ;;
20613   "dlls/oleaut32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/oleaut32/Makefile" ;;
20614   "dlls/oleaut32/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/oleaut32/tests/Makefile" ;;
20615   "dlls/olecli/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/olecli/Makefile" ;;
20616   "dlls/oledlg/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/oledlg/Makefile" ;;
20617   "dlls/olepro32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/olepro32/Makefile" ;;
20618   "dlls/olesvr/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/olesvr/Makefile" ;;
20619   "dlls/opengl32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/opengl32/Makefile" ;;
20620   "dlls/powrprof/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/powrprof/Makefile" ;;
20621   "dlls/psapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/psapi/Makefile" ;;
20622   "dlls/psapi/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/psapi/tests/Makefile" ;;
20623   "dlls/qcap/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/qcap/Makefile" ;;
20624   "dlls/quartz/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/quartz/Makefile" ;;
20625   "dlls/quartz/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/quartz/tests/Makefile" ;;
20626   "dlls/rasapi32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/rasapi32/Makefile" ;;
20627   "dlls/riched20/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/riched20/Makefile" ;;
20628   "dlls/richedit/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/richedit/Makefile" ;;
20629   "dlls/rpcrt4/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/rpcrt4/Makefile" ;;
20630   "dlls/rpcrt4/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/rpcrt4/tests/Makefile" ;;
20631   "dlls/rsabase/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/rsabase/Makefile" ;;
20632   "dlls/rsabase/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/rsabase/tests/Makefile" ;;
20633   "dlls/rsaenh/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/rsaenh/Makefile" ;;
20634   "dlls/rsaenh/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/rsaenh/tests/Makefile" ;;
20635   "dlls/secur32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/secur32/Makefile" ;;
20636   "dlls/sensapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/sensapi/Makefile" ;;
20637   "dlls/serialui/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/serialui/Makefile" ;;
20638   "dlls/setupapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/setupapi/Makefile" ;;
20639   "dlls/shdocvw/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shdocvw/Makefile" ;;
20640   "dlls/shell32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shell32/Makefile" ;;
20641   "dlls/shell32/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shell32/tests/Makefile" ;;
20642   "dlls/shfolder/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shfolder/Makefile" ;;
20643   "dlls/shlwapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shlwapi/Makefile" ;;
20644   "dlls/shlwapi/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shlwapi/tests/Makefile" ;;
20645   "dlls/snmpapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/snmpapi/Makefile" ;;
20646   "dlls/stdole32.tlb/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/stdole32.tlb/Makefile" ;;
20647   "dlls/sti/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/sti/Makefile" ;;
20648   "dlls/strmiids/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/strmiids/Makefile" ;;
20649   "dlls/tapi32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/tapi32/Makefile" ;;
20650   "dlls/ttydrv/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ttydrv/Makefile" ;;
20651   "dlls/twain/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/twain/Makefile" ;;
20652   "dlls/unicows/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/unicows/Makefile" ;;
20653   "dlls/url/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/url/Makefile" ;;
20654   "dlls/urlmon/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/urlmon/Makefile" ;;
20655   "dlls/urlmon/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/urlmon/tests/Makefile" ;;
20656   "dlls/user/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/user/Makefile" ;;
20657   "dlls/user/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/user/tests/Makefile" ;;
20658   "dlls/uuid/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/uuid/Makefile" ;;
20659   "dlls/uxtheme/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/uxtheme/Makefile" ;;
20660   "dlls/vdhcp.vxd/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/vdhcp.vxd/Makefile" ;;
20661   "dlls/vdmdbg/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/vdmdbg/Makefile" ;;
20662   "dlls/version/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/version/Makefile" ;;
20663   "dlls/version/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/version/tests/Makefile" ;;
20664   "dlls/vmm.vxd/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/vmm.vxd/Makefile" ;;
20665   "dlls/vnbt.vxd/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/vnbt.vxd/Makefile" ;;
20666   "dlls/vnetbios.vxd/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/vnetbios.vxd/Makefile" ;;
20667   "dlls/vtdapi.vxd/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/vtdapi.vxd/Makefile" ;;
20668   "dlls/vwin32.vxd/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/vwin32.vxd/Makefile" ;;
20669   "dlls/win32s/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/win32s/Makefile" ;;
20670   "dlls/winaspi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winaspi/Makefile" ;;
20671   "dlls/wined3d/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wined3d/Makefile" ;;
20672   "dlls/winedos/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winedos/Makefile" ;;
20673   "dlls/wineps/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wineps/Makefile" ;;
20674   "dlls/wininet/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wininet/Makefile" ;;
20675   "dlls/wininet/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wininet/tests/Makefile" ;;
20676   "dlls/winmm/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/Makefile" ;;
20677   "dlls/winmm/joystick/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/joystick/Makefile" ;;
20678   "dlls/winmm/mcianim/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/mcianim/Makefile" ;;
20679   "dlls/winmm/mciavi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/mciavi/Makefile" ;;
20680   "dlls/winmm/mcicda/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/mcicda/Makefile" ;;
20681   "dlls/winmm/mciseq/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/mciseq/Makefile" ;;
20682   "dlls/winmm/mciwave/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/mciwave/Makefile" ;;
20683   "dlls/winmm/midimap/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/midimap/Makefile" ;;
20684   "dlls/winmm/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/tests/Makefile" ;;
20685   "dlls/winmm/wavemap/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/wavemap/Makefile" ;;
20686   "dlls/winmm/winealsa/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/winealsa/Makefile" ;;
20687   "dlls/winmm/winearts/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/winearts/Makefile" ;;
20688   "dlls/winmm/wineaudioio/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/wineaudioio/Makefile" ;;
20689   "dlls/winmm/winejack/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/winejack/Makefile" ;;
20690   "dlls/winmm/winenas/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/winenas/Makefile" ;;
20691   "dlls/winmm/wineoss/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/wineoss/Makefile" ;;
20692   "dlls/winnls/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winnls/Makefile" ;;
20693   "dlls/winsock/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winsock/Makefile" ;;
20694   "dlls/winsock/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winsock/tests/Makefile" ;;
20695   "dlls/winspool/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winspool/Makefile" ;;
20696   "dlls/winspool/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winspool/tests/Makefile" ;;
20697   "dlls/wintab32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wintab32/Makefile" ;;
20698   "dlls/wintrust/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wintrust/Makefile" ;;
20699   "dlls/wow32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wow32/Makefile" ;;
20700   "dlls/wsock32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wsock32/Makefile" ;;
20701   "dlls/wtsapi32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wtsapi32/Makefile" ;;
20702   "dlls/x11drv/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/x11drv/Makefile" ;;
20703   "documentation/Makefile" ) CONFIG_FILES="$CONFIG_FILES documentation/Makefile" ;;
20704   "fonts/Makefile" ) CONFIG_FILES="$CONFIG_FILES fonts/Makefile" ;;
20705   "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
20706   "libs/Makefile" ) CONFIG_FILES="$CONFIG_FILES libs/Makefile" ;;
20707   "libs/port/Makefile" ) CONFIG_FILES="$CONFIG_FILES libs/port/Makefile" ;;
20708   "libs/unicode/Makefile" ) CONFIG_FILES="$CONFIG_FILES libs/unicode/Makefile" ;;
20709   "libs/wine/Makefile" ) CONFIG_FILES="$CONFIG_FILES libs/wine/Makefile" ;;
20710   "libs/wpp/Makefile" ) CONFIG_FILES="$CONFIG_FILES libs/wpp/Makefile" ;;
20711   "loader/Makefile" ) CONFIG_FILES="$CONFIG_FILES loader/Makefile" ;;
20712   "programs/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/Makefile" ;;
20713   "programs/avitools/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/avitools/Makefile" ;;
20714   "programs/clock/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/clock/Makefile" ;;
20715   "programs/cmdlgtst/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/cmdlgtst/Makefile" ;;
20716   "programs/control/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/control/Makefile" ;;
20717   "programs/expand/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/expand/Makefile" ;;
20718   "programs/msiexec/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/msiexec/Makefile" ;;
20719   "programs/notepad/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/notepad/Makefile" ;;
20720   "programs/progman/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/progman/Makefile" ;;
20721   "programs/regedit/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/regedit/Makefile" ;;
20722   "programs/regsvr32/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/regsvr32/Makefile" ;;
20723   "programs/rpcss/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/rpcss/Makefile" ;;
20724   "programs/rundll32/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/rundll32/Makefile" ;;
20725   "programs/start/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/start/Makefile" ;;
20726   "programs/taskmgr/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/taskmgr/Makefile" ;;
20727   "programs/uninstaller/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/uninstaller/Makefile" ;;
20728   "programs/view/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/view/Makefile" ;;
20729   "programs/wcmd/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/wcmd/Makefile" ;;
20730   "programs/wineboot/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/wineboot/Makefile" ;;
20731   "programs/winebrowser/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winebrowser/Makefile" ;;
20732   "programs/winecfg/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winecfg/Makefile" ;;
20733   "programs/wineconsole/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/wineconsole/Makefile" ;;
20734   "programs/winedbg/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winedbg/Makefile" ;;
20735   "programs/winefile/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winefile/Makefile" ;;
20736   "programs/winemenubuilder/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winemenubuilder/Makefile" ;;
20737   "programs/winemine/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winemine/Makefile" ;;
20738   "programs/winepath/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winepath/Makefile" ;;
20739   "programs/winetest/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winetest/Makefile" ;;
20740   "programs/winevdm/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winevdm/Makefile" ;;
20741   "programs/winhelp/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winhelp/Makefile" ;;
20742   "programs/winver/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winver/Makefile" ;;
20743   "server/Makefile" ) CONFIG_FILES="$CONFIG_FILES server/Makefile" ;;
20744   "tools/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
20745   "tools/widl/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/widl/Makefile" ;;
20746   "tools/winapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/winapi/Makefile" ;;
20747   "tools/winebuild/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/winebuild/Makefile" ;;
20748   "tools/winedump/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/winedump/Makefile" ;;
20749   "tools/winegcc/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/winegcc/Makefile" ;;
20750   "tools/wmc/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/wmc/Makefile" ;;
20751   "tools/wrc/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/wrc/Makefile" ;;
20752   "dlls/ddraw/d3ddevice" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/d3ddevice" ;;
20753   "dlls/ddraw/dclipper" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/dclipper" ;;
20754   "dlls/ddraw/ddraw" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/ddraw" ;;
20755   "dlls/ddraw/direct3d" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/direct3d" ;;
20756   "dlls/ddraw/dpalette" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/dpalette" ;;
20757   "dlls/ddraw/dsurface" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/dsurface" ;;
20758   "dlls/gdi/enhmfdrv" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/gdi/enhmfdrv" ;;
20759   "dlls/gdi/mfdrv" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/gdi/mfdrv" ;;
20760   "dlls/kernel/messages" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/kernel/messages" ;;
20761   "dlls/user/dde" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/user/dde" ;;
20762   "dlls/user/resources" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/user/resources" ;;
20763   "dlls/wineps/data" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/wineps/data" ;;
20764   "include/wine" ) CONFIG_COMMANDS="$CONFIG_COMMANDS include/wine" ;;
20765   "programs/regedit/tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS programs/regedit/tests" ;;
20766   "windows" ) CONFIG_COMMANDS="$CONFIG_COMMANDS windows" ;;
20767   "include/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
20768   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
20769 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
20770    { (exit 1); exit 1; }; };;
20771   esac
20772 done
20773
20774 # If the user did not use the arguments to specify the items to instantiate,
20775 # then the envvar interface is used.  Set only those that are not.
20776 # We use the long form for the default assignment because of an extremely
20777 # bizarre bug on SunOS 4.1.3.
20778 if $ac_need_defaults; then
20779   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
20780   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
20781   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
20782 fi
20783
20784 # Have a temporary directory for convenience.  Make it in the build tree
20785 # simply because there is no reason to put it here, and in addition,
20786 # creating and moving files from /tmp can sometimes cause problems.
20787 # Create a temporary directory, and hook for its removal unless debugging.
20788 $debug ||
20789 {
20790   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
20791   trap '{ (exit 1); exit 1; }' 1 2 13 15
20792 }
20793
20794 # Create a (secure) tmp directory for tmp files.
20795
20796 {
20797   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
20798   test -n "$tmp" && test -d "$tmp"
20799 }  ||
20800 {
20801   tmp=./confstat$$-$RANDOM
20802   (umask 077 && mkdir $tmp)
20803 } ||
20804 {
20805    echo "$me: cannot create a temporary directory in ." >&2
20806    { (exit 1); exit 1; }
20807 }
20808
20809 _ACEOF
20810
20811 cat >>$CONFIG_STATUS <<_ACEOF
20812
20813 #
20814 # CONFIG_FILES section.
20815 #
20816
20817 # No need to generate the scripts if there are no CONFIG_FILES.
20818 # This happens for instance when ./config.status config.h
20819 if test -n "\$CONFIG_FILES"; then
20820   # Protect against being on the right side of a sed subst in config.status.
20821   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
20822    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
20823 s,@SHELL@,$SHELL,;t t
20824 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
20825 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
20826 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
20827 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
20828 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
20829 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
20830 s,@exec_prefix@,$exec_prefix,;t t
20831 s,@prefix@,$prefix,;t t
20832 s,@program_transform_name@,$program_transform_name,;t t
20833 s,@bindir@,$bindir,;t t
20834 s,@sbindir@,$sbindir,;t t
20835 s,@libexecdir@,$libexecdir,;t t
20836 s,@datadir@,$datadir,;t t
20837 s,@sysconfdir@,$sysconfdir,;t t
20838 s,@sharedstatedir@,$sharedstatedir,;t t
20839 s,@localstatedir@,$localstatedir,;t t
20840 s,@libdir@,$libdir,;t t
20841 s,@includedir@,$includedir,;t t
20842 s,@oldincludedir@,$oldincludedir,;t t
20843 s,@infodir@,$infodir,;t t
20844 s,@mandir@,$mandir,;t t
20845 s,@build_alias@,$build_alias,;t t
20846 s,@host_alias@,$host_alias,;t t
20847 s,@target_alias@,$target_alias,;t t
20848 s,@DEFS@,$DEFS,;t t
20849 s,@ECHO_C@,$ECHO_C,;t t
20850 s,@ECHO_N@,$ECHO_N,;t t
20851 s,@ECHO_T@,$ECHO_T,;t t
20852 s,@LIBS@,$LIBS,;t t
20853 s,@WIN16_FILES@,$WIN16_FILES,;t t
20854 s,@WIN16_INSTALL@,$WIN16_INSTALL,;t t
20855 s,@DLLDEFS@,$DLLDEFS,;t t
20856 s,@build@,$build,;t t
20857 s,@build_cpu@,$build_cpu,;t t
20858 s,@build_vendor@,$build_vendor,;t t
20859 s,@build_os@,$build_os,;t t
20860 s,@host@,$host,;t t
20861 s,@host_cpu@,$host_cpu,;t t
20862 s,@host_vendor@,$host_vendor,;t t
20863 s,@host_os@,$host_os,;t t
20864 s,@SET_MAKE@,$SET_MAKE,;t t
20865 s,@CC@,$CC,;t t
20866 s,@CFLAGS@,$CFLAGS,;t t
20867 s,@LDFLAGS@,$LDFLAGS,;t t
20868 s,@CPPFLAGS@,$CPPFLAGS,;t t
20869 s,@ac_ct_CC@,$ac_ct_CC,;t t
20870 s,@EXEEXT@,$EXEEXT,;t t
20871 s,@OBJEXT@,$OBJEXT,;t t
20872 s,@CXX@,$CXX,;t t
20873 s,@CXXFLAGS@,$CXXFLAGS,;t t
20874 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
20875 s,@CPPBIN@,$CPPBIN,;t t
20876 s,@ac_ct_CPPBIN@,$ac_ct_CPPBIN,;t t
20877 s,@TOOLSDIR@,$TOOLSDIR,;t t
20878 s,@CPP@,$CPP,;t t
20879 s,@X_CFLAGS@,$X_CFLAGS,;t t
20880 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
20881 s,@X_LIBS@,$X_LIBS,;t t
20882 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
20883 s,@LEX@,$LEX,;t t
20884 s,@LEXLIB@,$LEXLIB,;t t
20885 s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
20886 s,@XLEX@,$XLEX,;t t
20887 s,@BISON@,$BISON,;t t
20888 s,@AS@,$AS,;t t
20889 s,@ac_ct_AS@,$ac_ct_AS,;t t
20890 s,@LD@,$LD,;t t
20891 s,@ac_ct_LD@,$ac_ct_LD,;t t
20892 s,@AR@,$AR,;t t
20893 s,@ac_ct_AR@,$ac_ct_AR,;t t
20894 s,@RANLIB@,$RANLIB,;t t
20895 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
20896 s,@STRIP@,$STRIP,;t t
20897 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
20898 s,@WINDRES@,$WINDRES,;t t
20899 s,@ac_ct_WINDRES@,$ac_ct_WINDRES,;t t
20900 s,@LN_S@,$LN_S,;t t
20901 s,@LN@,$LN,;t t
20902 s,@EGREP@,$EGREP,;t t
20903 s,@LDCONFIG@,$LDCONFIG,;t t
20904 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
20905 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
20906 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
20907 s,@LINT@,$LINT,;t t
20908 s,@LINTFLAGS@,$LINTFLAGS,;t t
20909 s,@FONTFORGE@,$FONTFORGE,;t t
20910 s,@LIBPTHREAD@,$LIBPTHREAD,;t t
20911 s,@XLIB@,$XLIB,;t t
20912 s,@XFILES@,$XFILES,;t t
20913 s,@OPENGLFILES@,$OPENGLFILES,;t t
20914 s,@GLU32FILES@,$GLU32FILES,;t t
20915 s,@OPENGL_LIBS@,$OPENGL_LIBS,;t t
20916 s,@GLUT_LIBS@,$GLUT_LIBS,;t t
20917 s,@GLUT32FILES@,$GLUT32FILES,;t t
20918 s,@NASLIBS@,$NASLIBS,;t t
20919 s,@CURSESLIBS@,$CURSESLIBS,;t t
20920 s,@sane_devel@,$sane_devel,;t t
20921 s,@SANELIBS@,$SANELIBS,;t t
20922 s,@SANEINCL@,$SANEINCL,;t t
20923 s,@ICULIBS@,$ICULIBS,;t t
20924 s,@ft_devel@,$ft_devel,;t t
20925 s,@ft_devel2@,$ft_devel2,;t t
20926 s,@FREETYPELIBS@,$FREETYPELIBS,;t t
20927 s,@FREETYPEINCL@,$FREETYPEINCL,;t t
20928 s,@FONTSSUBDIRS@,$FONTSSUBDIRS,;t t
20929 s,@ARTSCCONFIG@,$ARTSCCONFIG,;t t
20930 s,@ARTSLIBS@,$ARTSLIBS,;t t
20931 s,@ARTSINCL@,$ARTSINCL,;t t
20932 s,@ALSALIBS@,$ALSALIBS,;t t
20933 s,@AUDIOIOLIBS@,$AUDIOIOLIBS,;t t
20934 s,@EXTRACFLAGS@,$EXTRACFLAGS,;t t
20935 s,@DLLEXT@,$DLLEXT,;t t
20936 s,@DLLFLAGS@,$DLLFLAGS,;t t
20937 s,@DLLIBS@,$DLLIBS,;t t
20938 s,@LDSHARED@,$LDSHARED,;t t
20939 s,@LDDLLFLAGS@,$LDDLLFLAGS,;t t
20940 s,@LIBEXT@,$LIBEXT,;t t
20941 s,@IMPLIBEXT@,$IMPLIBEXT,;t t
20942 s,@DLLTOOL@,$DLLTOOL,;t t
20943 s,@ac_ct_DLLTOOL@,$ac_ct_DLLTOOL,;t t
20944 s,@DLLWRAP@,$DLLWRAP,;t t
20945 s,@ac_ct_DLLWRAP@,$ac_ct_DLLWRAP,;t t
20946 s,@LDEXECFLAGS@,$LDEXECFLAGS,;t t
20947 s,@LDLIBWINEFLAGS@,$LDLIBWINEFLAGS,;t t
20948 s,@COREFOUNDATIONLIB@,$COREFOUNDATIONLIB,;t t
20949 s,@IOKITLIB@,$IOKITLIB,;t t
20950 s,@CROSSTEST@,$CROSSTEST,;t t
20951 s,@CROSSCC@,$CROSSCC,;t t
20952 s,@CROSSWINDRES@,$CROSSWINDRES,;t t
20953 s,@LDPATH@,$LDPATH,;t t
20954 s,@CRTLIBS@,$CRTLIBS,;t t
20955 s,@SOCKETLIBS@,$SOCKETLIBS,;t t
20956 s,@WINE_BINARIES@,$WINE_BINARIES,;t t
20957 s,@MAIN_BINARY@,$MAIN_BINARY,;t t
20958 s,@LDD@,$LDD,;t t
20959 s,@ALLOCA@,$ALLOCA,;t t
20960 s,@LIBOBJS@,$LIBOBJS,;t t
20961 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
20962 /@MAKE_RULES@/r $MAKE_RULES
20963 s,@MAKE_RULES@,,;t t
20964 /@MAKE_DLL_RULES@/r $MAKE_DLL_RULES
20965 s,@MAKE_DLL_RULES@,,;t t
20966 /@MAKE_TEST_RULES@/r $MAKE_TEST_RULES
20967 s,@MAKE_TEST_RULES@,,;t t
20968 /@MAKE_LIB_RULES@/r $MAKE_LIB_RULES
20969 s,@MAKE_LIB_RULES@,,;t t
20970 /@MAKE_PROG_RULES@/r $MAKE_PROG_RULES
20971 s,@MAKE_PROG_RULES@,,;t t
20972 CEOF
20973
20974 _ACEOF
20975
20976   cat >>$CONFIG_STATUS <<\_ACEOF
20977   # Split the substitutions into bite-sized pieces for seds with
20978   # small command number limits, like on Digital OSF/1 and HP-UX.
20979   ac_max_sed_lines=48
20980   ac_sed_frag=1 # Number of current file.
20981   ac_beg=1 # First line for current file.
20982   ac_end=$ac_max_sed_lines # Line after last line for current file.
20983   ac_more_lines=:
20984   ac_sed_cmds=
20985   while $ac_more_lines; do
20986     if test $ac_beg -gt 1; then
20987       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
20988     else
20989       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
20990     fi
20991     if test ! -s $tmp/subs.frag; then
20992       ac_more_lines=false
20993     else
20994       # The purpose of the label and of the branching condition is to
20995       # speed up the sed processing (if there are no `@' at all, there
20996       # is no need to browse any of the substitutions).
20997       # These are the two extra sed commands mentioned above.
20998       (echo ':t
20999   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
21000       if test -z "$ac_sed_cmds"; then
21001         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
21002       else
21003         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
21004       fi
21005       ac_sed_frag=`expr $ac_sed_frag + 1`
21006       ac_beg=$ac_end
21007       ac_end=`expr $ac_end + $ac_max_sed_lines`
21008     fi
21009   done
21010   if test -z "$ac_sed_cmds"; then
21011     ac_sed_cmds=cat
21012   fi
21013 fi # test -n "$CONFIG_FILES"
21014
21015 _ACEOF
21016 cat >>$CONFIG_STATUS <<\_ACEOF
21017 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
21018   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
21019   case $ac_file in
21020   - | *:- | *:-:* ) # input from stdin
21021         cat >$tmp/stdin
21022         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
21023         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
21024   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
21025         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
21026   * )   ac_file_in=$ac_file.in ;;
21027   esac
21028
21029   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
21030   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
21031 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21032          X"$ac_file" : 'X\(//\)[^/]' \| \
21033          X"$ac_file" : 'X\(//\)$' \| \
21034          X"$ac_file" : 'X\(/\)' \| \
21035          .     : '\(.\)' 2>/dev/null ||
21036 echo X"$ac_file" |
21037     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21038           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21039           /^X\(\/\/\)$/{ s//\1/; q; }
21040           /^X\(\/\).*/{ s//\1/; q; }
21041           s/.*/./; q'`
21042   { if $as_mkdir_p; then
21043     mkdir -p "$ac_dir"
21044   else
21045     as_dir="$ac_dir"
21046     as_dirs=
21047     while test ! -d "$as_dir"; do
21048       as_dirs="$as_dir $as_dirs"
21049       as_dir=`(dirname "$as_dir") 2>/dev/null ||
21050 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21051          X"$as_dir" : 'X\(//\)[^/]' \| \
21052          X"$as_dir" : 'X\(//\)$' \| \
21053          X"$as_dir" : 'X\(/\)' \| \
21054          .     : '\(.\)' 2>/dev/null ||
21055 echo X"$as_dir" |
21056     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21057           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21058           /^X\(\/\/\)$/{ s//\1/; q; }
21059           /^X\(\/\).*/{ s//\1/; q; }
21060           s/.*/./; q'`
21061     done
21062     test ! -n "$as_dirs" || mkdir $as_dirs
21063   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
21064 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
21065    { (exit 1); exit 1; }; }; }
21066
21067   ac_builddir=.
21068
21069 if test "$ac_dir" != .; then
21070   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
21071   # A "../" for each directory in $ac_dir_suffix.
21072   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
21073 else
21074   ac_dir_suffix= ac_top_builddir=
21075 fi
21076
21077 case $srcdir in
21078   .)  # No --srcdir option.  We are building in place.
21079     ac_srcdir=.
21080     if test -z "$ac_top_builddir"; then
21081        ac_top_srcdir=.
21082     else
21083        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
21084     fi ;;
21085   [\\/]* | ?:[\\/]* )  # Absolute path.
21086     ac_srcdir=$srcdir$ac_dir_suffix;
21087     ac_top_srcdir=$srcdir ;;
21088   *) # Relative path.
21089     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
21090     ac_top_srcdir=$ac_top_builddir$srcdir ;;
21091 esac
21092
21093 # Do not use `cd foo && pwd` to compute absolute paths, because
21094 # the directories may not exist.
21095 case `pwd` in
21096 .) ac_abs_builddir="$ac_dir";;
21097 *)
21098   case "$ac_dir" in
21099   .) ac_abs_builddir=`pwd`;;
21100   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
21101   *) ac_abs_builddir=`pwd`/"$ac_dir";;
21102   esac;;
21103 esac
21104 case $ac_abs_builddir in
21105 .) ac_abs_top_builddir=${ac_top_builddir}.;;
21106 *)
21107   case ${ac_top_builddir}. in
21108   .) ac_abs_top_builddir=$ac_abs_builddir;;
21109   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
21110   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
21111   esac;;
21112 esac
21113 case $ac_abs_builddir in
21114 .) ac_abs_srcdir=$ac_srcdir;;
21115 *)
21116   case $ac_srcdir in
21117   .) ac_abs_srcdir=$ac_abs_builddir;;
21118   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
21119   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
21120   esac;;
21121 esac
21122 case $ac_abs_builddir in
21123 .) ac_abs_top_srcdir=$ac_top_srcdir;;
21124 *)
21125   case $ac_top_srcdir in
21126   .) ac_abs_top_srcdir=$ac_abs_builddir;;
21127   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
21128   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
21129   esac;;
21130 esac
21131
21132
21133   case $INSTALL in
21134   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
21135   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
21136   esac
21137
21138   # Let's still pretend it is `configure' which instantiates (i.e., don't
21139   # use $as_me), people would be surprised to read:
21140   #    /* config.h.  Generated by config.status.  */
21141   if test x"$ac_file" = x-; then
21142     configure_input=
21143   else
21144     configure_input="$ac_file.  "
21145   fi
21146   configure_input=$configure_input"Generated from `echo $ac_file_in |
21147                                      sed 's,.*/,,'` by configure."
21148
21149   # First look for the input files in the build tree, otherwise in the
21150   # src tree.
21151   ac_file_inputs=`IFS=:
21152     for f in $ac_file_in; do
21153       case $f in
21154       -) echo $tmp/stdin ;;
21155       [\\/$]*)
21156          # Absolute (can't be DOS-style, as IFS=:)
21157          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
21158 echo "$as_me: error: cannot find input file: $f" >&2;}
21159    { (exit 1); exit 1; }; }
21160          echo "$f";;
21161       *) # Relative
21162          if test -f "$f"; then
21163            # Build tree
21164            echo "$f"
21165          elif test -f "$srcdir/$f"; then
21166            # Source tree
21167            echo "$srcdir/$f"
21168          else
21169            # /dev/null tree
21170            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
21171 echo "$as_me: error: cannot find input file: $f" >&2;}
21172    { (exit 1); exit 1; }; }
21173          fi;;
21174       esac
21175     done` || { (exit 1); exit 1; }
21176
21177   if test x"$ac_file" != x-; then
21178     { echo "$as_me:$LINENO: creating $ac_file" >&5
21179 echo "$as_me: creating $ac_file" >&6;}
21180     rm -f "$ac_file"
21181   fi
21182 _ACEOF
21183 cat >>$CONFIG_STATUS <<_ACEOF
21184   sed "$ac_vpsub
21185 $extrasub
21186 _ACEOF
21187 cat >>$CONFIG_STATUS <<\_ACEOF
21188 :t
21189 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21190 s,@configure_input@,$configure_input,;t t
21191 s,@srcdir@,$ac_srcdir,;t t
21192 s,@abs_srcdir@,$ac_abs_srcdir,;t t
21193 s,@top_srcdir@,$ac_top_srcdir,;t t
21194 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
21195 s,@builddir@,$ac_builddir,;t t
21196 s,@abs_builddir@,$ac_abs_builddir,;t t
21197 s,@top_builddir@,$ac_top_builddir,;t t
21198 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
21199 s,@INSTALL@,$ac_INSTALL,;t t
21200 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
21201   rm -f $tmp/stdin
21202   if test x"$ac_file" != x-; then
21203     mv $tmp/out $ac_file
21204   else
21205     cat $tmp/out
21206     rm -f $tmp/out
21207   fi
21208
21209 done
21210 _ACEOF
21211 cat >>$CONFIG_STATUS <<\_ACEOF
21212
21213 #
21214 # CONFIG_HEADER section.
21215 #
21216
21217 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
21218 # NAME is the cpp macro being defined and VALUE is the value it is being given.
21219 #
21220 # ac_d sets the value in "#define NAME VALUE" lines.
21221 ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
21222 ac_dB='[         ].*$,\1#\2'
21223 ac_dC=' '
21224 ac_dD=',;t'
21225 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
21226 ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
21227 ac_uB='$,\1#\2define\3'
21228 ac_uC=' '
21229 ac_uD=',;t'
21230
21231 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
21232   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
21233   case $ac_file in
21234   - | *:- | *:-:* ) # input from stdin
21235         cat >$tmp/stdin
21236         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
21237         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
21238   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
21239         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
21240   * )   ac_file_in=$ac_file.in ;;
21241   esac
21242
21243   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
21244 echo "$as_me: creating $ac_file" >&6;}
21245
21246   # First look for the input files in the build tree, otherwise in the
21247   # src tree.
21248   ac_file_inputs=`IFS=:
21249     for f in $ac_file_in; do
21250       case $f in
21251       -) echo $tmp/stdin ;;
21252       [\\/$]*)
21253          # Absolute (can't be DOS-style, as IFS=:)
21254          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
21255 echo "$as_me: error: cannot find input file: $f" >&2;}
21256    { (exit 1); exit 1; }; }
21257          # Do quote $f, to prevent DOS paths from being IFS'd.
21258          echo "$f";;
21259       *) # Relative
21260          if test -f "$f"; then
21261            # Build tree
21262            echo "$f"
21263          elif test -f "$srcdir/$f"; then
21264            # Source tree
21265            echo "$srcdir/$f"
21266          else
21267            # /dev/null tree
21268            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
21269 echo "$as_me: error: cannot find input file: $f" >&2;}
21270    { (exit 1); exit 1; }; }
21271          fi;;
21272       esac
21273     done` || { (exit 1); exit 1; }
21274   # Remove the trailing spaces.
21275   sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
21276
21277 _ACEOF
21278
21279 # Transform confdefs.h into two sed scripts, `conftest.defines' and
21280 # `conftest.undefs', that substitutes the proper values into
21281 # config.h.in to produce config.h.  The first handles `#define'
21282 # templates, and the second `#undef' templates.
21283 # And first: Protect against being on the right side of a sed subst in
21284 # config.status.  Protect against being in an unquoted here document
21285 # in config.status.
21286 rm -f conftest.defines conftest.undefs
21287 # Using a here document instead of a string reduces the quoting nightmare.
21288 # Putting comments in sed scripts is not portable.
21289 #
21290 # `end' is used to avoid that the second main sed command (meant for
21291 # 0-ary CPP macros) applies to n-ary macro definitions.
21292 # See the Autoconf documentation for `clear'.
21293 cat >confdef2sed.sed <<\_ACEOF
21294 s/[\\&,]/\\&/g
21295 s,[\\$`],\\&,g
21296 t clear
21297 : clear
21298 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
21299 t end
21300 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
21301 : end
21302 _ACEOF
21303 # If some macros were called several times there might be several times
21304 # the same #defines, which is useless.  Nevertheless, we may not want to
21305 # sort them, since we want the *last* AC-DEFINE to be honored.
21306 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
21307 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
21308 rm -f confdef2sed.sed
21309
21310 # This sed command replaces #undef with comments.  This is necessary, for
21311 # example, in the case of _POSIX_SOURCE, which is predefined and required
21312 # on some systems where configure will not decide to define it.
21313 cat >>conftest.undefs <<\_ACEOF
21314 s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
21315 _ACEOF
21316
21317 # Break up conftest.defines because some shells have a limit on the size
21318 # of here documents, and old seds have small limits too (100 cmds).
21319 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
21320 echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
21321 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
21322 echo '  :' >>$CONFIG_STATUS
21323 rm -f conftest.tail
21324 while grep . conftest.defines >/dev/null
21325 do
21326   # Write a limited-size here document to $tmp/defines.sed.
21327   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
21328   # Speed up: don't consider the non `#define' lines.
21329   echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
21330   # Work around the forget-to-reset-the-flag bug.
21331   echo 't clr' >>$CONFIG_STATUS
21332   echo ': clr' >>$CONFIG_STATUS
21333   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
21334   echo 'CEOF
21335   sed -f $tmp/defines.sed $tmp/in >$tmp/out
21336   rm -f $tmp/in
21337   mv $tmp/out $tmp/in
21338 ' >>$CONFIG_STATUS
21339   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
21340   rm -f conftest.defines
21341   mv conftest.tail conftest.defines
21342 done
21343 rm -f conftest.defines
21344 echo '  fi # grep' >>$CONFIG_STATUS
21345 echo >>$CONFIG_STATUS
21346
21347 # Break up conftest.undefs because some shells have a limit on the size
21348 # of here documents, and old seds have small limits too (100 cmds).
21349 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
21350 rm -f conftest.tail
21351 while grep . conftest.undefs >/dev/null
21352 do
21353   # Write a limited-size here document to $tmp/undefs.sed.
21354   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
21355   # Speed up: don't consider the non `#undef'
21356   echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
21357   # Work around the forget-to-reset-the-flag bug.
21358   echo 't clr' >>$CONFIG_STATUS
21359   echo ': clr' >>$CONFIG_STATUS
21360   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
21361   echo 'CEOF
21362   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
21363   rm -f $tmp/in
21364   mv $tmp/out $tmp/in
21365 ' >>$CONFIG_STATUS
21366   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
21367   rm -f conftest.undefs
21368   mv conftest.tail conftest.undefs
21369 done
21370 rm -f conftest.undefs
21371
21372 cat >>$CONFIG_STATUS <<\_ACEOF
21373   # Let's still pretend it is `configure' which instantiates (i.e., don't
21374   # use $as_me), people would be surprised to read:
21375   #    /* config.h.  Generated by config.status.  */
21376   if test x"$ac_file" = x-; then
21377     echo "/* Generated by configure.  */" >$tmp/config.h
21378   else
21379     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
21380   fi
21381   cat $tmp/in >>$tmp/config.h
21382   rm -f $tmp/in
21383   if test x"$ac_file" != x-; then
21384     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
21385       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
21386 echo "$as_me: $ac_file is unchanged" >&6;}
21387     else
21388       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
21389 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21390          X"$ac_file" : 'X\(//\)[^/]' \| \
21391          X"$ac_file" : 'X\(//\)$' \| \
21392          X"$ac_file" : 'X\(/\)' \| \
21393          .     : '\(.\)' 2>/dev/null ||
21394 echo X"$ac_file" |
21395     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21396           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21397           /^X\(\/\/\)$/{ s//\1/; q; }
21398           /^X\(\/\).*/{ s//\1/; q; }
21399           s/.*/./; q'`
21400       { if $as_mkdir_p; then
21401     mkdir -p "$ac_dir"
21402   else
21403     as_dir="$ac_dir"
21404     as_dirs=
21405     while test ! -d "$as_dir"; do
21406       as_dirs="$as_dir $as_dirs"
21407       as_dir=`(dirname "$as_dir") 2>/dev/null ||
21408 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21409          X"$as_dir" : 'X\(//\)[^/]' \| \
21410          X"$as_dir" : 'X\(//\)$' \| \
21411          X"$as_dir" : 'X\(/\)' \| \
21412          .     : '\(.\)' 2>/dev/null ||
21413 echo X"$as_dir" |
21414     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21415           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21416           /^X\(\/\/\)$/{ s//\1/; q; }
21417           /^X\(\/\).*/{ s//\1/; q; }
21418           s/.*/./; q'`
21419     done
21420     test ! -n "$as_dirs" || mkdir $as_dirs
21421   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
21422 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
21423    { (exit 1); exit 1; }; }; }
21424
21425       rm -f $ac_file
21426       mv $tmp/config.h $ac_file
21427     fi
21428   else
21429     cat $tmp/config.h
21430     rm -f $tmp/config.h
21431   fi
21432 done
21433 _ACEOF
21434 cat >>$CONFIG_STATUS <<\_ACEOF
21435
21436 #
21437 # CONFIG_COMMANDS section.
21438 #
21439 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
21440   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
21441   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
21442   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
21443 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21444          X"$ac_dest" : 'X\(//\)[^/]' \| \
21445          X"$ac_dest" : 'X\(//\)$' \| \
21446          X"$ac_dest" : 'X\(/\)' \| \
21447          .     : '\(.\)' 2>/dev/null ||
21448 echo X"$ac_dest" |
21449     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21450           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21451           /^X\(\/\/\)$/{ s//\1/; q; }
21452           /^X\(\/\).*/{ s//\1/; q; }
21453           s/.*/./; q'`
21454   { if $as_mkdir_p; then
21455     mkdir -p "$ac_dir"
21456   else
21457     as_dir="$ac_dir"
21458     as_dirs=
21459     while test ! -d "$as_dir"; do
21460       as_dirs="$as_dir $as_dirs"
21461       as_dir=`(dirname "$as_dir") 2>/dev/null ||
21462 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21463          X"$as_dir" : 'X\(//\)[^/]' \| \
21464          X"$as_dir" : 'X\(//\)$' \| \
21465          X"$as_dir" : 'X\(/\)' \| \
21466          .     : '\(.\)' 2>/dev/null ||
21467 echo X"$as_dir" |
21468     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21469           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21470           /^X\(\/\/\)$/{ s//\1/; q; }
21471           /^X\(\/\).*/{ s//\1/; q; }
21472           s/.*/./; q'`
21473     done
21474     test ! -n "$as_dirs" || mkdir $as_dirs
21475   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
21476 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
21477    { (exit 1); exit 1; }; }; }
21478
21479   ac_builddir=.
21480
21481 if test "$ac_dir" != .; then
21482   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
21483   # A "../" for each directory in $ac_dir_suffix.
21484   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
21485 else
21486   ac_dir_suffix= ac_top_builddir=
21487 fi
21488
21489 case $srcdir in
21490   .)  # No --srcdir option.  We are building in place.
21491     ac_srcdir=.
21492     if test -z "$ac_top_builddir"; then
21493        ac_top_srcdir=.
21494     else
21495        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
21496     fi ;;
21497   [\\/]* | ?:[\\/]* )  # Absolute path.
21498     ac_srcdir=$srcdir$ac_dir_suffix;
21499     ac_top_srcdir=$srcdir ;;
21500   *) # Relative path.
21501     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
21502     ac_top_srcdir=$ac_top_builddir$srcdir ;;
21503 esac
21504
21505 # Do not use `cd foo && pwd` to compute absolute paths, because
21506 # the directories may not exist.
21507 case `pwd` in
21508 .) ac_abs_builddir="$ac_dir";;
21509 *)
21510   case "$ac_dir" in
21511   .) ac_abs_builddir=`pwd`;;
21512   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
21513   *) ac_abs_builddir=`pwd`/"$ac_dir";;
21514   esac;;
21515 esac
21516 case $ac_abs_builddir in
21517 .) ac_abs_top_builddir=${ac_top_builddir}.;;
21518 *)
21519   case ${ac_top_builddir}. in
21520   .) ac_abs_top_builddir=$ac_abs_builddir;;
21521   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
21522   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
21523   esac;;
21524 esac
21525 case $ac_abs_builddir in
21526 .) ac_abs_srcdir=$ac_srcdir;;
21527 *)
21528   case $ac_srcdir in
21529   .) ac_abs_srcdir=$ac_abs_builddir;;
21530   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
21531   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
21532   esac;;
21533 esac
21534 case $ac_abs_builddir in
21535 .) ac_abs_top_srcdir=$ac_top_srcdir;;
21536 *)
21537   case $ac_top_srcdir in
21538   .) ac_abs_top_srcdir=$ac_abs_builddir;;
21539   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
21540   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
21541   esac;;
21542 esac
21543
21544
21545   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
21546 echo "$as_me: executing $ac_dest commands" >&6;}
21547   case $ac_dest in
21548     dlls/ddraw/d3ddevice ) test -d "dlls/ddraw/d3ddevice" || ({ echo "$as_me:$LINENO: creating dlls/ddraw/d3ddevice" >&5
21549 echo "$as_me: creating dlls/ddraw/d3ddevice" >&6;} && mkdir "dlls/ddraw/d3ddevice") ;;
21550     dlls/ddraw/dclipper ) test -d "dlls/ddraw/dclipper" || ({ echo "$as_me:$LINENO: creating dlls/ddraw/dclipper" >&5
21551 echo "$as_me: creating dlls/ddraw/dclipper" >&6;} && mkdir "dlls/ddraw/dclipper") ;;
21552     dlls/ddraw/ddraw ) test -d "dlls/ddraw/ddraw" || ({ echo "$as_me:$LINENO: creating dlls/ddraw/ddraw" >&5
21553 echo "$as_me: creating dlls/ddraw/ddraw" >&6;} && mkdir "dlls/ddraw/ddraw") ;;
21554     dlls/ddraw/direct3d ) test -d "dlls/ddraw/direct3d" || ({ echo "$as_me:$LINENO: creating dlls/ddraw/direct3d" >&5
21555 echo "$as_me: creating dlls/ddraw/direct3d" >&6;} && mkdir "dlls/ddraw/direct3d") ;;
21556     dlls/ddraw/dpalette ) test -d "dlls/ddraw/dpalette" || ({ echo "$as_me:$LINENO: creating dlls/ddraw/dpalette" >&5
21557 echo "$as_me: creating dlls/ddraw/dpalette" >&6;} && mkdir "dlls/ddraw/dpalette") ;;
21558     dlls/ddraw/dsurface ) test -d "dlls/ddraw/dsurface" || ({ echo "$as_me:$LINENO: creating dlls/ddraw/dsurface" >&5
21559 echo "$as_me: creating dlls/ddraw/dsurface" >&6;} && mkdir "dlls/ddraw/dsurface") ;;
21560     dlls/gdi/enhmfdrv ) test -d "dlls/gdi/enhmfdrv" || ({ echo "$as_me:$LINENO: creating dlls/gdi/enhmfdrv" >&5
21561 echo "$as_me: creating dlls/gdi/enhmfdrv" >&6;} && mkdir "dlls/gdi/enhmfdrv") ;;
21562     dlls/gdi/mfdrv ) test -d "dlls/gdi/mfdrv" || ({ echo "$as_me:$LINENO: creating dlls/gdi/mfdrv" >&5
21563 echo "$as_me: creating dlls/gdi/mfdrv" >&6;} && mkdir "dlls/gdi/mfdrv") ;;
21564     dlls/kernel/messages ) test -d "dlls/kernel/messages" || ({ echo "$as_me:$LINENO: creating dlls/kernel/messages" >&5
21565 echo "$as_me: creating dlls/kernel/messages" >&6;} && mkdir "dlls/kernel/messages") ;;
21566     dlls/user/dde ) test -d "dlls/user/dde" || ({ echo "$as_me:$LINENO: creating dlls/user/dde" >&5
21567 echo "$as_me: creating dlls/user/dde" >&6;} && mkdir "dlls/user/dde") ;;
21568     dlls/user/resources ) test -d "dlls/user/resources" || ({ echo "$as_me:$LINENO: creating dlls/user/resources" >&5
21569 echo "$as_me: creating dlls/user/resources" >&6;} && mkdir "dlls/user/resources") ;;
21570     dlls/wineps/data ) test -d "dlls/wineps/data" || ({ echo "$as_me:$LINENO: creating dlls/wineps/data" >&5
21571 echo "$as_me: creating dlls/wineps/data" >&6;} && mkdir "dlls/wineps/data") ;;
21572     include/wine ) test -d "include/wine" || ({ echo "$as_me:$LINENO: creating include/wine" >&5
21573 echo "$as_me: creating include/wine" >&6;} && mkdir "include/wine") ;;
21574     programs/regedit/tests ) test -d "programs/regedit/tests" || ({ echo "$as_me:$LINENO: creating programs/regedit/tests" >&5
21575 echo "$as_me: creating programs/regedit/tests" >&6;} && mkdir "programs/regedit/tests") ;;
21576     windows ) test -d "windows" || ({ echo "$as_me:$LINENO: creating windows" >&5
21577 echo "$as_me: creating windows" >&6;} && mkdir "windows") ;;
21578   esac
21579 done
21580 _ACEOF
21581
21582 cat >>$CONFIG_STATUS <<\_ACEOF
21583
21584 { (exit 0); exit 0; }
21585 _ACEOF
21586 chmod +x $CONFIG_STATUS
21587 ac_clean_files=$ac_clean_files_save
21588
21589
21590 # configure is writing to config.log, and then calls config.status.
21591 # config.status does its own redirection, appending to config.log.
21592 # Unfortunately, on DOS this fails, as config.log is still kept open
21593 # by configure, so config.status won't be able to write to it; its
21594 # output is simply discarded.  So we exec the FD to /dev/null,
21595 # effectively closing config.log, so it can be properly (re)opened and
21596 # appended to by config.status.  When coming back to configure, we
21597 # need to make the FD available again.
21598 if test "$no_create" != yes; then
21599   ac_cs_success=:
21600   ac_config_status_args=
21601   test "$silent" = yes &&
21602     ac_config_status_args="$ac_config_status_args --quiet"
21603   exec 5>/dev/null
21604   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21605   exec 5>>config.log
21606   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21607   # would make configure fail if this is the last instruction.
21608   $ac_cs_success || { (exit 1); exit 1; }
21609 fi
21610
21611
21612 if test "$have_x" = "no"
21613 then
21614   echo
21615   echo "*** Warning: X development files not found. Wine will be built without"
21616   echo "*** X support, which currently does not work, and would probably not be"
21617   echo "*** what you want anyway. You will need to install devel packages of"
21618   echo "*** Xlib/Xfree86 at the very least."
21619 fi
21620
21621 if test "$wine_cv_opengl_version_OK" = "no"
21622 then
21623   echo
21624   echo "*** Warning: old Mesa headers detected. Wine will be built without Direct3D"
21625   echo "*** support. Consider upgrading your Mesa libraries (http://www.mesa3d.org/)."
21626 fi
21627
21628 if test "$wine_cv_msg_freetype" = "yes"
21629 then
21630   echo
21631   echo "*** Note: Your system appears to have the FreeType 2 runtime libraries"
21632   echo "*** installed, but 'freetype-config' is not in your PATH. Install the"
21633   echo "*** freetype-devel package (or its equivalent on your distribution) to"
21634   echo "*** enable Wine to use TrueType fonts."
21635 fi
21636
21637 if test -z "$ALSALIBS" -a -z "$ARTSC_LIBS" -a -z "$AUDIOIOLIBS" -a \
21638         -z "$ac_cv_lib_soname_jack" -a -z "$NASLIBS" -a \
21639         "$ac_cv_c_opensoundsystem" = "no"
21640 then
21641     echo "*** No sound system was found. Windows applications will be silent."
21642     echo "*** The currently supported sound systems are:"
21643     echo "*** ALSA, ARTS, AudioIO, Jack, NAS and OSS"
21644 fi
21645
21646 echo
21647 echo "Configure finished.  Do '${ac_make} depend && ${ac_make}' to compile Wine."
21648 echo
21649