configure: Exit with a non-zero exit code if a core dependency is missing.
[wine] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59 for Wine 0.9.12.
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='0.9.12'
273 PACKAGE_STRING='Wine 0.9.12'
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 build build_cpu build_vendor build_os host host_cpu host_vendor host_os WIN16_FILES WIN16_INSTALL 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 PKG_CONFIG PRELINK LIBPTHREAD XLIB XFILES OPENGLFILES GLU32FILES OPENGL_LIBS GLUT_LIBS GLUT32FILES NASLIBS XML2LIBS XML2INCL XSLTLIBS XSLTINCL CURSESLIBS sane_devel SANELIBS SANEINCL ICULIBS RESOLVLIBS LCMSLIBS LDAPLIBS FREETYPELIBS FREETYPEINCL ft_devel ft_devel2 FONTSSUBDIRS ARTSCCONFIG ARTSLIBS ARTSINCL ESDCONFIG ESDLIBS ESDINCL ALSALIBS AUDIOIOLIBS EXTRACFLAGS BUILTINFLAG DLLEXT DLLFLAGS DLLIBS LDSHARED LDDLLFLAGS LIBEXT IMPLIBEXT DLLTOOL ac_ct_DLLTOOL DLLWRAP ac_ct_DLLWRAP LDEXECFLAGS LDEXERPATH LDDLLRPATH COREFOUNDATIONLIB IOKITLIB CROSSTEST CROSSCC CROSSWINDRES LDPATH CRTLIBS SOCKETLIBS MAIN_BINARY EXTRA_BINARIES LDD LIBOBJS LTLIBOBJS'
315 ac_subst_files='MAKE_RULES MAKE_DLL_RULES MAKE_IMPLIB_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 0.9.12 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 0.9.12:";;
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   --enable-win64          build a Win64 emulator on AMD64 (won't run Win32
865                           binaries)
866
867 Optional Packages:
868   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
869   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
870   --without-opengl        do not use OpenGL
871   --without-curses        do not use curses
872   --with-wine-tools=<dir> use Wine tools from directory <dir>
873   --with-x                use the X Window System
874
875 Some influential environment variables:
876   CC          C compiler command
877   CFLAGS      C compiler flags
878   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
879               nonstandard directory <lib dir>
880   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
881               headers in a nonstandard directory <include dir>
882   CXX         C++ compiler command
883   CXXFLAGS    C++ compiler flags
884   CPP         C preprocessor
885
886 Use these variables to override the choices made by `configure' or to help
887 it to find libraries and programs with nonstandard names/locations.
888
889 Report bugs to <wine-devel@winehq.org>.
890 _ACEOF
891 fi
892
893 if test "$ac_init_help" = "recursive"; then
894   # If there are subdirs, report their specific --help.
895   ac_popdir=`pwd`
896   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
897     test -d $ac_dir || continue
898     ac_builddir=.
899
900 if test "$ac_dir" != .; then
901   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
902   # A "../" for each directory in $ac_dir_suffix.
903   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
904 else
905   ac_dir_suffix= ac_top_builddir=
906 fi
907
908 case $srcdir in
909   .)  # No --srcdir option.  We are building in place.
910     ac_srcdir=.
911     if test -z "$ac_top_builddir"; then
912        ac_top_srcdir=.
913     else
914        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
915     fi ;;
916   [\\/]* | ?:[\\/]* )  # Absolute path.
917     ac_srcdir=$srcdir$ac_dir_suffix;
918     ac_top_srcdir=$srcdir ;;
919   *) # Relative path.
920     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
921     ac_top_srcdir=$ac_top_builddir$srcdir ;;
922 esac
923
924 # Do not use `cd foo && pwd` to compute absolute paths, because
925 # the directories may not exist.
926 case `pwd` in
927 .) ac_abs_builddir="$ac_dir";;
928 *)
929   case "$ac_dir" in
930   .) ac_abs_builddir=`pwd`;;
931   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
932   *) ac_abs_builddir=`pwd`/"$ac_dir";;
933   esac;;
934 esac
935 case $ac_abs_builddir in
936 .) ac_abs_top_builddir=${ac_top_builddir}.;;
937 *)
938   case ${ac_top_builddir}. in
939   .) ac_abs_top_builddir=$ac_abs_builddir;;
940   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
941   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
942   esac;;
943 esac
944 case $ac_abs_builddir in
945 .) ac_abs_srcdir=$ac_srcdir;;
946 *)
947   case $ac_srcdir in
948   .) ac_abs_srcdir=$ac_abs_builddir;;
949   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
950   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
951   esac;;
952 esac
953 case $ac_abs_builddir in
954 .) ac_abs_top_srcdir=$ac_top_srcdir;;
955 *)
956   case $ac_top_srcdir in
957   .) ac_abs_top_srcdir=$ac_abs_builddir;;
958   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
959   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
960   esac;;
961 esac
962
963     cd $ac_dir
964     # Check for guested configure; otherwise get Cygnus style configure.
965     if test -f $ac_srcdir/configure.gnu; then
966       echo
967       $SHELL $ac_srcdir/configure.gnu  --help=recursive
968     elif test -f $ac_srcdir/configure; then
969       echo
970       $SHELL $ac_srcdir/configure  --help=recursive
971     elif test -f $ac_srcdir/configure.ac ||
972            test -f $ac_srcdir/configure.in; then
973       echo
974       $ac_configure --help
975     else
976       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
977     fi
978     cd "$ac_popdir"
979   done
980 fi
981
982 test -n "$ac_init_help" && exit 0
983 if $ac_init_version; then
984   cat <<\_ACEOF
985 Wine configure 0.9.12
986 generated by GNU Autoconf 2.59
987
988 Copyright (C) 2003 Free Software Foundation, Inc.
989 This configure script is free software; the Free Software Foundation
990 gives unlimited permission to copy, distribute and modify it.
991 _ACEOF
992   exit 0
993 fi
994 exec 5>config.log
995 cat >&5 <<_ACEOF
996 This file contains any messages produced by compilers while
997 running configure, to aid debugging if configure makes a mistake.
998
999 It was created by Wine $as_me 0.9.12, which was
1000 generated by GNU Autoconf 2.59.  Invocation command line was
1001
1002   $ $0 $@
1003
1004 _ACEOF
1005 {
1006 cat <<_ASUNAME
1007 ## --------- ##
1008 ## Platform. ##
1009 ## --------- ##
1010
1011 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1012 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1013 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1014 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1015 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1016
1017 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1018 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1019
1020 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1021 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1022 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1023 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1024 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1025 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1026 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1027
1028 _ASUNAME
1029
1030 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1031 for as_dir in $PATH
1032 do
1033   IFS=$as_save_IFS
1034   test -z "$as_dir" && as_dir=.
1035   echo "PATH: $as_dir"
1036 done
1037
1038 } >&5
1039
1040 cat >&5 <<_ACEOF
1041
1042
1043 ## ----------- ##
1044 ## Core tests. ##
1045 ## ----------- ##
1046
1047 _ACEOF
1048
1049
1050 # Keep a trace of the command line.
1051 # Strip out --no-create and --no-recursion so they do not pile up.
1052 # Strip out --silent because we don't want to record it for future runs.
1053 # Also quote any args containing shell meta-characters.
1054 # Make two passes to allow for proper duplicate-argument suppression.
1055 ac_configure_args=
1056 ac_configure_args0=
1057 ac_configure_args1=
1058 ac_sep=
1059 ac_must_keep_next=false
1060 for ac_pass in 1 2
1061 do
1062   for ac_arg
1063   do
1064     case $ac_arg in
1065     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1066     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1067     | -silent | --silent | --silen | --sile | --sil)
1068       continue ;;
1069     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1070       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1071     esac
1072     case $ac_pass in
1073     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1074     2)
1075       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1076       if test $ac_must_keep_next = true; then
1077         ac_must_keep_next=false # Got value, back to normal.
1078       else
1079         case $ac_arg in
1080           *=* | --config-cache | -C | -disable-* | --disable-* \
1081           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1082           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1083           | -with-* | --with-* | -without-* | --without-* | --x)
1084             case "$ac_configure_args0 " in
1085               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1086             esac
1087             ;;
1088           -* ) ac_must_keep_next=true ;;
1089         esac
1090       fi
1091       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1092       # Get rid of the leading space.
1093       ac_sep=" "
1094       ;;
1095     esac
1096   done
1097 done
1098 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1099 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1100
1101 # When interrupted or exit'd, cleanup temporary files, and complete
1102 # config.log.  We remove comments because anyway the quotes in there
1103 # would cause problems or look ugly.
1104 # WARNING: Be sure not to use single quotes in there, as some shells,
1105 # such as our DU 5.0 friend, will then `close' the trap.
1106 trap 'exit_status=$?
1107   # Save into config.log some information that might help in debugging.
1108   {
1109     echo
1110
1111     cat <<\_ASBOX
1112 ## ---------------- ##
1113 ## Cache variables. ##
1114 ## ---------------- ##
1115 _ASBOX
1116     echo
1117     # The following way of writing the cache mishandles newlines in values,
1118 {
1119   (set) 2>&1 |
1120     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1121     *ac_space=\ *)
1122       sed -n \
1123         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1124           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1125       ;;
1126     *)
1127       sed -n \
1128         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1129       ;;
1130     esac;
1131 }
1132     echo
1133
1134     cat <<\_ASBOX
1135 ## ----------------- ##
1136 ## Output variables. ##
1137 ## ----------------- ##
1138 _ASBOX
1139     echo
1140     for ac_var in $ac_subst_vars
1141     do
1142       eval ac_val=$`echo $ac_var`
1143       echo "$ac_var='"'"'$ac_val'"'"'"
1144     done | sort
1145     echo
1146
1147     if test -n "$ac_subst_files"; then
1148       cat <<\_ASBOX
1149 ## ------------- ##
1150 ## Output files. ##
1151 ## ------------- ##
1152 _ASBOX
1153       echo
1154       for ac_var in $ac_subst_files
1155       do
1156         eval ac_val=$`echo $ac_var`
1157         echo "$ac_var='"'"'$ac_val'"'"'"
1158       done | sort
1159       echo
1160     fi
1161
1162     if test -s confdefs.h; then
1163       cat <<\_ASBOX
1164 ## ----------- ##
1165 ## confdefs.h. ##
1166 ## ----------- ##
1167 _ASBOX
1168       echo
1169       sed "/^$/d" confdefs.h | sort
1170       echo
1171     fi
1172     test "$ac_signal" != 0 &&
1173       echo "$as_me: caught signal $ac_signal"
1174     echo "$as_me: exit $exit_status"
1175   } >&5
1176   rm -f core *.core &&
1177   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1178     exit $exit_status
1179      ' 0
1180 for ac_signal in 1 2 13 15; do
1181   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1182 done
1183 ac_signal=0
1184
1185 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1186 rm -rf conftest* confdefs.h
1187 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1188 echo >confdefs.h
1189
1190 # Predefined preprocessor variables.
1191
1192 cat >>confdefs.h <<_ACEOF
1193 #define PACKAGE_NAME "$PACKAGE_NAME"
1194 _ACEOF
1195
1196
1197 cat >>confdefs.h <<_ACEOF
1198 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1199 _ACEOF
1200
1201
1202 cat >>confdefs.h <<_ACEOF
1203 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1204 _ACEOF
1205
1206
1207 cat >>confdefs.h <<_ACEOF
1208 #define PACKAGE_STRING "$PACKAGE_STRING"
1209 _ACEOF
1210
1211
1212 cat >>confdefs.h <<_ACEOF
1213 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1214 _ACEOF
1215
1216
1217 # Let the site file select an alternate cache file if it wants to.
1218 # Prefer explicitly selected file to automatically selected ones.
1219 if test -z "$CONFIG_SITE"; then
1220   if test "x$prefix" != xNONE; then
1221     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1222   else
1223     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1224   fi
1225 fi
1226 for ac_site_file in $CONFIG_SITE; do
1227   if test -r "$ac_site_file"; then
1228     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1229 echo "$as_me: loading site script $ac_site_file" >&6;}
1230     sed 's/^/| /' "$ac_site_file" >&5
1231     . "$ac_site_file"
1232   fi
1233 done
1234
1235 if test -r "$cache_file"; then
1236   # Some versions of bash will fail to source /dev/null (special
1237   # files actually), so we avoid doing that.
1238   if test -f "$cache_file"; then
1239     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1240 echo "$as_me: loading cache $cache_file" >&6;}
1241     case $cache_file in
1242       [\\/]* | ?:[\\/]* ) . $cache_file;;
1243       *)                      . ./$cache_file;;
1244     esac
1245   fi
1246 else
1247   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1248 echo "$as_me: creating cache $cache_file" >&6;}
1249   >$cache_file
1250 fi
1251
1252 # Check that the precious variables saved in the cache have kept the same
1253 # value.
1254 ac_cache_corrupted=false
1255 for ac_var in `(set) 2>&1 |
1256                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1257   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1258   eval ac_new_set=\$ac_env_${ac_var}_set
1259   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1260   eval ac_new_val="\$ac_env_${ac_var}_value"
1261   case $ac_old_set,$ac_new_set in
1262     set,)
1263       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1264 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1265       ac_cache_corrupted=: ;;
1266     ,set)
1267       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1268 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1269       ac_cache_corrupted=: ;;
1270     ,);;
1271     *)
1272       if test "x$ac_old_val" != "x$ac_new_val"; then
1273         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1274 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1275         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1276 echo "$as_me:   former value:  $ac_old_val" >&2;}
1277         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1278 echo "$as_me:   current value: $ac_new_val" >&2;}
1279         ac_cache_corrupted=:
1280       fi;;
1281   esac
1282   # Pass precious variables to config.status.
1283   if test "$ac_new_set" = set; then
1284     case $ac_new_val in
1285     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1286       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1287     *) ac_arg=$ac_var=$ac_new_val ;;
1288     esac
1289     case " $ac_configure_args " in
1290       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1291       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1292     esac
1293   fi
1294 done
1295 if $ac_cache_corrupted; then
1296   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1297 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1298   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1299 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1300    { (exit 1); exit 1; }; }
1301 fi
1302
1303 ac_ext=c
1304 ac_cpp='$CPP $CPPFLAGS'
1305 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1306 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1307 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336           ac_config_headers="$ac_config_headers include/config.h"
1337
1338 ac_aux_dir=
1339 for ac_dir in tools $srcdir/tools; do
1340   if test -f $ac_dir/install-sh; then
1341     ac_aux_dir=$ac_dir
1342     ac_install_sh="$ac_aux_dir/install-sh -c"
1343     break
1344   elif test -f $ac_dir/install.sh; then
1345     ac_aux_dir=$ac_dir
1346     ac_install_sh="$ac_aux_dir/install.sh -c"
1347     break
1348   elif test -f $ac_dir/shtool; then
1349     ac_aux_dir=$ac_dir
1350     ac_install_sh="$ac_aux_dir/shtool install -c"
1351     break
1352   fi
1353 done
1354 if test -z "$ac_aux_dir"; then
1355   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in tools $srcdir/tools" >&5
1356 echo "$as_me: error: cannot find install-sh or install.sh in tools $srcdir/tools" >&2;}
1357    { (exit 1); exit 1; }; }
1358 fi
1359 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1360 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1361 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1362
1363
1364
1365 # Check whether --enable-win16 or --disable-win16 was given.
1366 if test "${enable_win16+set}" = set; then
1367   enableval="$enable_win16"
1368
1369 fi;
1370 # Check whether --enable-win64 or --disable-win64 was given.
1371 if test "${enable_win64+set}" = set; then
1372   enableval="$enable_win64"
1373
1374 fi;
1375
1376
1377 # Check whether --with-opengl or --without-opengl was given.
1378 if test "${with_opengl+set}" = set; then
1379   withval="$with_opengl"
1380
1381 fi;
1382
1383 # Check whether --with-curses or --without-curses was given.
1384 if test "${with_curses+set}" = set; then
1385   withval="$with_curses"
1386
1387 fi;
1388
1389 # Check whether --with-wine-tools or --without-wine-tools was given.
1390 if test "${with_wine_tools+set}" = set; then
1391   withval="$with_wine_tools"
1392
1393 fi;
1394
1395 # Make sure we can run config.sub.
1396 $ac_config_sub sun4 >/dev/null 2>&1 ||
1397   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1398 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1399    { (exit 1); exit 1; }; }
1400
1401 echo "$as_me:$LINENO: checking build system type" >&5
1402 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1403 if test "${ac_cv_build+set}" = set; then
1404   echo $ECHO_N "(cached) $ECHO_C" >&6
1405 else
1406   ac_cv_build_alias=$build_alias
1407 test -z "$ac_cv_build_alias" &&
1408   ac_cv_build_alias=`$ac_config_guess`
1409 test -z "$ac_cv_build_alias" &&
1410   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1411 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1412    { (exit 1); exit 1; }; }
1413 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1414   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1415 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1416    { (exit 1); exit 1; }; }
1417
1418 fi
1419 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1420 echo "${ECHO_T}$ac_cv_build" >&6
1421 build=$ac_cv_build
1422 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1423 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1424 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1425
1426
1427 echo "$as_me:$LINENO: checking host system type" >&5
1428 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1429 if test "${ac_cv_host+set}" = set; then
1430   echo $ECHO_N "(cached) $ECHO_C" >&6
1431 else
1432   ac_cv_host_alias=$host_alias
1433 test -z "$ac_cv_host_alias" &&
1434   ac_cv_host_alias=$ac_cv_build_alias
1435 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1436   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1437 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1438    { (exit 1); exit 1; }; }
1439
1440 fi
1441 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1442 echo "${ECHO_T}$ac_cv_host" >&6
1443 host=$ac_cv_host
1444 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1445 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1446 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1447
1448
1449 case $host in
1450   x86_64*linux*)
1451     if test "x$enable_win64" != "xyes"
1452     then
1453       test -n "$CC" || CC="gcc -m32"
1454       test -n "$LD" || LD="ld -m elf_i386"
1455       test -n "$AS" || AS="as --32"
1456       host_cpu="i386"
1457     fi
1458     ;;
1459 esac
1460
1461 case $host_cpu in
1462   *i[3456789]86*)
1463     if test "x$enable_win16" != "xno"
1464     then
1465       enable_win16="yes"
1466     fi
1467     ;;
1468 esac
1469
1470 WIN16_FILES="\$(WIN16_FILES)"
1471
1472 WIN16_INSTALL="\$(WIN16_INSTALL)"
1473
1474 if test "x$enable_win16" != "xyes"
1475 then
1476   WIN16_FILES=""
1477   WIN16_INSTALL=""
1478 fi
1479
1480
1481 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1482 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1483 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1484 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1485   echo $ECHO_N "(cached) $ECHO_C" >&6
1486 else
1487   cat >conftest.make <<\_ACEOF
1488 all:
1489         @echo 'ac_maketemp="$(MAKE)"'
1490 _ACEOF
1491 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1492 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1493 if test -n "$ac_maketemp"; then
1494   eval ac_cv_prog_make_${ac_make}_set=yes
1495 else
1496   eval ac_cv_prog_make_${ac_make}_set=no
1497 fi
1498 rm -f conftest.make
1499 fi
1500 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1501   echo "$as_me:$LINENO: result: yes" >&5
1502 echo "${ECHO_T}yes" >&6
1503   SET_MAKE=
1504 else
1505   echo "$as_me:$LINENO: result: no" >&5
1506 echo "${ECHO_T}no" >&6
1507   SET_MAKE="MAKE=${MAKE-make}"
1508 fi
1509
1510 ac_ext=c
1511 ac_cpp='$CPP $CPPFLAGS'
1512 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1513 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1514 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1515 if test -n "$ac_tool_prefix"; then
1516   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1517 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1518 echo "$as_me:$LINENO: checking for $ac_word" >&5
1519 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1520 if test "${ac_cv_prog_CC+set}" = set; then
1521   echo $ECHO_N "(cached) $ECHO_C" >&6
1522 else
1523   if test -n "$CC"; then
1524   ac_cv_prog_CC="$CC" # Let the user override the test.
1525 else
1526 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1527 for as_dir in $PATH
1528 do
1529   IFS=$as_save_IFS
1530   test -z "$as_dir" && as_dir=.
1531   for ac_exec_ext in '' $ac_executable_extensions; do
1532   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1533     ac_cv_prog_CC="${ac_tool_prefix}gcc"
1534     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1535     break 2
1536   fi
1537 done
1538 done
1539
1540 fi
1541 fi
1542 CC=$ac_cv_prog_CC
1543 if test -n "$CC"; then
1544   echo "$as_me:$LINENO: result: $CC" >&5
1545 echo "${ECHO_T}$CC" >&6
1546 else
1547   echo "$as_me:$LINENO: result: no" >&5
1548 echo "${ECHO_T}no" >&6
1549 fi
1550
1551 fi
1552 if test -z "$ac_cv_prog_CC"; then
1553   ac_ct_CC=$CC
1554   # Extract the first word of "gcc", so it can be a program name with args.
1555 set dummy gcc; ac_word=$2
1556 echo "$as_me:$LINENO: checking for $ac_word" >&5
1557 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1558 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1559   echo $ECHO_N "(cached) $ECHO_C" >&6
1560 else
1561   if test -n "$ac_ct_CC"; then
1562   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1563 else
1564 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1565 for as_dir in $PATH
1566 do
1567   IFS=$as_save_IFS
1568   test -z "$as_dir" && as_dir=.
1569   for ac_exec_ext in '' $ac_executable_extensions; do
1570   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1571     ac_cv_prog_ac_ct_CC="gcc"
1572     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1573     break 2
1574   fi
1575 done
1576 done
1577
1578 fi
1579 fi
1580 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1581 if test -n "$ac_ct_CC"; then
1582   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1583 echo "${ECHO_T}$ac_ct_CC" >&6
1584 else
1585   echo "$as_me:$LINENO: result: no" >&5
1586 echo "${ECHO_T}no" >&6
1587 fi
1588
1589   CC=$ac_ct_CC
1590 else
1591   CC="$ac_cv_prog_CC"
1592 fi
1593
1594 if test -z "$CC"; then
1595   if test -n "$ac_tool_prefix"; then
1596   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1597 set dummy ${ac_tool_prefix}cc; ac_word=$2
1598 echo "$as_me:$LINENO: checking for $ac_word" >&5
1599 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1600 if test "${ac_cv_prog_CC+set}" = set; then
1601   echo $ECHO_N "(cached) $ECHO_C" >&6
1602 else
1603   if test -n "$CC"; then
1604   ac_cv_prog_CC="$CC" # Let the user override the test.
1605 else
1606 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1607 for as_dir in $PATH
1608 do
1609   IFS=$as_save_IFS
1610   test -z "$as_dir" && as_dir=.
1611   for ac_exec_ext in '' $ac_executable_extensions; do
1612   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1613     ac_cv_prog_CC="${ac_tool_prefix}cc"
1614     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1615     break 2
1616   fi
1617 done
1618 done
1619
1620 fi
1621 fi
1622 CC=$ac_cv_prog_CC
1623 if test -n "$CC"; then
1624   echo "$as_me:$LINENO: result: $CC" >&5
1625 echo "${ECHO_T}$CC" >&6
1626 else
1627   echo "$as_me:$LINENO: result: no" >&5
1628 echo "${ECHO_T}no" >&6
1629 fi
1630
1631 fi
1632 if test -z "$ac_cv_prog_CC"; then
1633   ac_ct_CC=$CC
1634   # Extract the first word of "cc", so it can be a program name with args.
1635 set dummy cc; ac_word=$2
1636 echo "$as_me:$LINENO: checking for $ac_word" >&5
1637 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1638 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1639   echo $ECHO_N "(cached) $ECHO_C" >&6
1640 else
1641   if test -n "$ac_ct_CC"; then
1642   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1643 else
1644 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1645 for as_dir in $PATH
1646 do
1647   IFS=$as_save_IFS
1648   test -z "$as_dir" && as_dir=.
1649   for ac_exec_ext in '' $ac_executable_extensions; do
1650   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1651     ac_cv_prog_ac_ct_CC="cc"
1652     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1653     break 2
1654   fi
1655 done
1656 done
1657
1658 fi
1659 fi
1660 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1661 if test -n "$ac_ct_CC"; then
1662   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1663 echo "${ECHO_T}$ac_ct_CC" >&6
1664 else
1665   echo "$as_me:$LINENO: result: no" >&5
1666 echo "${ECHO_T}no" >&6
1667 fi
1668
1669   CC=$ac_ct_CC
1670 else
1671   CC="$ac_cv_prog_CC"
1672 fi
1673
1674 fi
1675 if test -z "$CC"; then
1676   # Extract the first word of "cc", so it can be a program name with args.
1677 set dummy cc; ac_word=$2
1678 echo "$as_me:$LINENO: checking for $ac_word" >&5
1679 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1680 if test "${ac_cv_prog_CC+set}" = set; then
1681   echo $ECHO_N "(cached) $ECHO_C" >&6
1682 else
1683   if test -n "$CC"; then
1684   ac_cv_prog_CC="$CC" # Let the user override the test.
1685 else
1686   ac_prog_rejected=no
1687 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1688 for as_dir in $PATH
1689 do
1690   IFS=$as_save_IFS
1691   test -z "$as_dir" && as_dir=.
1692   for ac_exec_ext in '' $ac_executable_extensions; do
1693   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1694     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1695        ac_prog_rejected=yes
1696        continue
1697      fi
1698     ac_cv_prog_CC="cc"
1699     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1700     break 2
1701   fi
1702 done
1703 done
1704
1705 if test $ac_prog_rejected = yes; then
1706   # We found a bogon in the path, so make sure we never use it.
1707   set dummy $ac_cv_prog_CC
1708   shift
1709   if test $# != 0; then
1710     # We chose a different compiler from the bogus one.
1711     # However, it has the same basename, so the bogon will be chosen
1712     # first if we set CC to just the basename; use the full file name.
1713     shift
1714     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1715   fi
1716 fi
1717 fi
1718 fi
1719 CC=$ac_cv_prog_CC
1720 if test -n "$CC"; then
1721   echo "$as_me:$LINENO: result: $CC" >&5
1722 echo "${ECHO_T}$CC" >&6
1723 else
1724   echo "$as_me:$LINENO: result: no" >&5
1725 echo "${ECHO_T}no" >&6
1726 fi
1727
1728 fi
1729 if test -z "$CC"; then
1730   if test -n "$ac_tool_prefix"; then
1731   for ac_prog in cl
1732   do
1733     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1734 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1735 echo "$as_me:$LINENO: checking for $ac_word" >&5
1736 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1737 if test "${ac_cv_prog_CC+set}" = set; then
1738   echo $ECHO_N "(cached) $ECHO_C" >&6
1739 else
1740   if test -n "$CC"; then
1741   ac_cv_prog_CC="$CC" # Let the user override the test.
1742 else
1743 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1744 for as_dir in $PATH
1745 do
1746   IFS=$as_save_IFS
1747   test -z "$as_dir" && as_dir=.
1748   for ac_exec_ext in '' $ac_executable_extensions; do
1749   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1750     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1751     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1752     break 2
1753   fi
1754 done
1755 done
1756
1757 fi
1758 fi
1759 CC=$ac_cv_prog_CC
1760 if test -n "$CC"; then
1761   echo "$as_me:$LINENO: result: $CC" >&5
1762 echo "${ECHO_T}$CC" >&6
1763 else
1764   echo "$as_me:$LINENO: result: no" >&5
1765 echo "${ECHO_T}no" >&6
1766 fi
1767
1768     test -n "$CC" && break
1769   done
1770 fi
1771 if test -z "$CC"; then
1772   ac_ct_CC=$CC
1773   for ac_prog in cl
1774 do
1775   # Extract the first word of "$ac_prog", so it can be a program name with args.
1776 set dummy $ac_prog; ac_word=$2
1777 echo "$as_me:$LINENO: checking for $ac_word" >&5
1778 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1779 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1780   echo $ECHO_N "(cached) $ECHO_C" >&6
1781 else
1782   if test -n "$ac_ct_CC"; then
1783   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1784 else
1785 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1786 for as_dir in $PATH
1787 do
1788   IFS=$as_save_IFS
1789   test -z "$as_dir" && as_dir=.
1790   for ac_exec_ext in '' $ac_executable_extensions; do
1791   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1792     ac_cv_prog_ac_ct_CC="$ac_prog"
1793     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1794     break 2
1795   fi
1796 done
1797 done
1798
1799 fi
1800 fi
1801 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1802 if test -n "$ac_ct_CC"; then
1803   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1804 echo "${ECHO_T}$ac_ct_CC" >&6
1805 else
1806   echo "$as_me:$LINENO: result: no" >&5
1807 echo "${ECHO_T}no" >&6
1808 fi
1809
1810   test -n "$ac_ct_CC" && break
1811 done
1812
1813   CC=$ac_ct_CC
1814 fi
1815
1816 fi
1817
1818
1819 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1820 See \`config.log' for more details." >&5
1821 echo "$as_me: error: no acceptable C compiler found in \$PATH
1822 See \`config.log' for more details." >&2;}
1823    { (exit 1); exit 1; }; }
1824
1825 # Provide some information about the compiler.
1826 echo "$as_me:$LINENO:" \
1827      "checking for C compiler version" >&5
1828 ac_compiler=`set X $ac_compile; echo $2`
1829 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1830   (eval $ac_compiler --version </dev/null >&5) 2>&5
1831   ac_status=$?
1832   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1833   (exit $ac_status); }
1834 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1835   (eval $ac_compiler -v </dev/null >&5) 2>&5
1836   ac_status=$?
1837   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1838   (exit $ac_status); }
1839 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1840   (eval $ac_compiler -V </dev/null >&5) 2>&5
1841   ac_status=$?
1842   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1843   (exit $ac_status); }
1844
1845 cat >conftest.$ac_ext <<_ACEOF
1846 /* confdefs.h.  */
1847 _ACEOF
1848 cat confdefs.h >>conftest.$ac_ext
1849 cat >>conftest.$ac_ext <<_ACEOF
1850 /* end confdefs.h.  */
1851
1852 int
1853 main ()
1854 {
1855
1856   ;
1857   return 0;
1858 }
1859 _ACEOF
1860 ac_clean_files_save=$ac_clean_files
1861 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1862 # Try to create an executable without -o first, disregard a.out.
1863 # It will help us diagnose broken compilers, and finding out an intuition
1864 # of exeext.
1865 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1866 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1867 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1868 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1869   (eval $ac_link_default) 2>&5
1870   ac_status=$?
1871   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1872   (exit $ac_status); }; then
1873   # Find the output, starting from the most likely.  This scheme is
1874 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1875 # resort.
1876
1877 # Be careful to initialize this variable, since it used to be cached.
1878 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1879 ac_cv_exeext=
1880 # b.out is created by i960 compilers.
1881 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1882 do
1883   test -f "$ac_file" || continue
1884   case $ac_file in
1885     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1886         ;;
1887     conftest.$ac_ext )
1888         # This is the source file.
1889         ;;
1890     [ab].out )
1891         # We found the default executable, but exeext='' is most
1892         # certainly right.
1893         break;;
1894     *.* )
1895         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1896         # FIXME: I believe we export ac_cv_exeext for Libtool,
1897         # but it would be cool to find out if it's true.  Does anybody
1898         # maintain Libtool? --akim.
1899         export ac_cv_exeext
1900         break;;
1901     * )
1902         break;;
1903   esac
1904 done
1905 else
1906   echo "$as_me: failed program was:" >&5
1907 sed 's/^/| /' conftest.$ac_ext >&5
1908
1909 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1910 See \`config.log' for more details." >&5
1911 echo "$as_me: error: C compiler cannot create executables
1912 See \`config.log' for more details." >&2;}
1913    { (exit 77); exit 77; }; }
1914 fi
1915
1916 ac_exeext=$ac_cv_exeext
1917 echo "$as_me:$LINENO: result: $ac_file" >&5
1918 echo "${ECHO_T}$ac_file" >&6
1919
1920 # Check the compiler produces executables we can run.  If not, either
1921 # the compiler is broken, or we cross compile.
1922 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1923 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1924 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1925 # If not cross compiling, check that we can run a simple program.
1926 if test "$cross_compiling" != yes; then
1927   if { ac_try='./$ac_file'
1928   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1929   (eval $ac_try) 2>&5
1930   ac_status=$?
1931   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1932   (exit $ac_status); }; }; then
1933     cross_compiling=no
1934   else
1935     if test "$cross_compiling" = maybe; then
1936         cross_compiling=yes
1937     else
1938         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1939 If you meant to cross compile, use \`--host'.
1940 See \`config.log' for more details." >&5
1941 echo "$as_me: error: cannot run C compiled programs.
1942 If you meant to cross compile, use \`--host'.
1943 See \`config.log' for more details." >&2;}
1944    { (exit 1); exit 1; }; }
1945     fi
1946   fi
1947 fi
1948 echo "$as_me:$LINENO: result: yes" >&5
1949 echo "${ECHO_T}yes" >&6
1950
1951 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1952 ac_clean_files=$ac_clean_files_save
1953 # Check the compiler produces executables we can run.  If not, either
1954 # the compiler is broken, or we cross compile.
1955 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1956 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1957 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1958 echo "${ECHO_T}$cross_compiling" >&6
1959
1960 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1961 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1962 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1963   (eval $ac_link) 2>&5
1964   ac_status=$?
1965   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1966   (exit $ac_status); }; then
1967   # If both `conftest.exe' and `conftest' are `present' (well, observable)
1968 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
1969 # work properly (i.e., refer to `conftest.exe'), while it won't with
1970 # `rm'.
1971 for ac_file in conftest.exe conftest conftest.*; do
1972   test -f "$ac_file" || continue
1973   case $ac_file in
1974     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1975     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1976           export ac_cv_exeext
1977           break;;
1978     * ) break;;
1979   esac
1980 done
1981 else
1982   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1983 See \`config.log' for more details." >&5
1984 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1985 See \`config.log' for more details." >&2;}
1986    { (exit 1); exit 1; }; }
1987 fi
1988
1989 rm -f conftest$ac_cv_exeext
1990 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1991 echo "${ECHO_T}$ac_cv_exeext" >&6
1992
1993 rm -f conftest.$ac_ext
1994 EXEEXT=$ac_cv_exeext
1995 ac_exeext=$EXEEXT
1996 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1997 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1998 if test "${ac_cv_objext+set}" = set; then
1999   echo $ECHO_N "(cached) $ECHO_C" >&6
2000 else
2001   cat >conftest.$ac_ext <<_ACEOF
2002 /* confdefs.h.  */
2003 _ACEOF
2004 cat confdefs.h >>conftest.$ac_ext
2005 cat >>conftest.$ac_ext <<_ACEOF
2006 /* end confdefs.h.  */
2007
2008 int
2009 main ()
2010 {
2011
2012   ;
2013   return 0;
2014 }
2015 _ACEOF
2016 rm -f conftest.o conftest.obj
2017 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2018   (eval $ac_compile) 2>&5
2019   ac_status=$?
2020   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2021   (exit $ac_status); }; then
2022   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2023   case $ac_file in
2024     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2025     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2026        break;;
2027   esac
2028 done
2029 else
2030   echo "$as_me: failed program was:" >&5
2031 sed 's/^/| /' conftest.$ac_ext >&5
2032
2033 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2034 See \`config.log' for more details." >&5
2035 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2036 See \`config.log' for more details." >&2;}
2037    { (exit 1); exit 1; }; }
2038 fi
2039
2040 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2041 fi
2042 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2043 echo "${ECHO_T}$ac_cv_objext" >&6
2044 OBJEXT=$ac_cv_objext
2045 ac_objext=$OBJEXT
2046 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2047 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2048 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2049   echo $ECHO_N "(cached) $ECHO_C" >&6
2050 else
2051   cat >conftest.$ac_ext <<_ACEOF
2052 /* confdefs.h.  */
2053 _ACEOF
2054 cat confdefs.h >>conftest.$ac_ext
2055 cat >>conftest.$ac_ext <<_ACEOF
2056 /* end confdefs.h.  */
2057
2058 int
2059 main ()
2060 {
2061 #ifndef __GNUC__
2062        choke me
2063 #endif
2064
2065   ;
2066   return 0;
2067 }
2068 _ACEOF
2069 rm -f conftest.$ac_objext
2070 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2071   (eval $ac_compile) 2>conftest.er1
2072   ac_status=$?
2073   grep -v '^ *+' conftest.er1 >conftest.err
2074   rm -f conftest.er1
2075   cat conftest.err >&5
2076   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2077   (exit $ac_status); } &&
2078          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2079   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2080   (eval $ac_try) 2>&5
2081   ac_status=$?
2082   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2083   (exit $ac_status); }; } &&
2084          { ac_try='test -s conftest.$ac_objext'
2085   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2086   (eval $ac_try) 2>&5
2087   ac_status=$?
2088   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2089   (exit $ac_status); }; }; then
2090   ac_compiler_gnu=yes
2091 else
2092   echo "$as_me: failed program was:" >&5
2093 sed 's/^/| /' conftest.$ac_ext >&5
2094
2095 ac_compiler_gnu=no
2096 fi
2097 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2098 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2099
2100 fi
2101 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2102 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2103 GCC=`test $ac_compiler_gnu = yes && echo yes`
2104 ac_test_CFLAGS=${CFLAGS+set}
2105 ac_save_CFLAGS=$CFLAGS
2106 CFLAGS="-g"
2107 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2108 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2109 if test "${ac_cv_prog_cc_g+set}" = set; then
2110   echo $ECHO_N "(cached) $ECHO_C" >&6
2111 else
2112   cat >conftest.$ac_ext <<_ACEOF
2113 /* confdefs.h.  */
2114 _ACEOF
2115 cat confdefs.h >>conftest.$ac_ext
2116 cat >>conftest.$ac_ext <<_ACEOF
2117 /* end confdefs.h.  */
2118
2119 int
2120 main ()
2121 {
2122
2123   ;
2124   return 0;
2125 }
2126 _ACEOF
2127 rm -f conftest.$ac_objext
2128 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2129   (eval $ac_compile) 2>conftest.er1
2130   ac_status=$?
2131   grep -v '^ *+' conftest.er1 >conftest.err
2132   rm -f conftest.er1
2133   cat conftest.err >&5
2134   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2135   (exit $ac_status); } &&
2136          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2137   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2138   (eval $ac_try) 2>&5
2139   ac_status=$?
2140   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2141   (exit $ac_status); }; } &&
2142          { ac_try='test -s conftest.$ac_objext'
2143   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2144   (eval $ac_try) 2>&5
2145   ac_status=$?
2146   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2147   (exit $ac_status); }; }; then
2148   ac_cv_prog_cc_g=yes
2149 else
2150   echo "$as_me: failed program was:" >&5
2151 sed 's/^/| /' conftest.$ac_ext >&5
2152
2153 ac_cv_prog_cc_g=no
2154 fi
2155 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2156 fi
2157 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2158 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2159 if test "$ac_test_CFLAGS" = set; then
2160   CFLAGS=$ac_save_CFLAGS
2161 elif test $ac_cv_prog_cc_g = yes; then
2162   if test "$GCC" = yes; then
2163     CFLAGS="-g -O2"
2164   else
2165     CFLAGS="-g"
2166   fi
2167 else
2168   if test "$GCC" = yes; then
2169     CFLAGS="-O2"
2170   else
2171     CFLAGS=
2172   fi
2173 fi
2174 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2175 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2176 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2177   echo $ECHO_N "(cached) $ECHO_C" >&6
2178 else
2179   ac_cv_prog_cc_stdc=no
2180 ac_save_CC=$CC
2181 cat >conftest.$ac_ext <<_ACEOF
2182 /* confdefs.h.  */
2183 _ACEOF
2184 cat confdefs.h >>conftest.$ac_ext
2185 cat >>conftest.$ac_ext <<_ACEOF
2186 /* end confdefs.h.  */
2187 #include <stdarg.h>
2188 #include <stdio.h>
2189 #include <sys/types.h>
2190 #include <sys/stat.h>
2191 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2192 struct buf { int x; };
2193 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2194 static char *e (p, i)
2195      char **p;
2196      int i;
2197 {
2198   return p[i];
2199 }
2200 static char *f (char * (*g) (char **, int), char **p, ...)
2201 {
2202   char *s;
2203   va_list v;
2204   va_start (v,p);
2205   s = g (p, va_arg (v,int));
2206   va_end (v);
2207   return s;
2208 }
2209
2210 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2211    function prototypes and stuff, but not '\xHH' hex character constants.
2212    These don't provoke an error unfortunately, instead are silently treated
2213    as 'x'.  The following induces an error, until -std1 is added to get
2214    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2215    array size at least.  It's necessary to write '\x00'==0 to get something
2216    that's true only with -std1.  */
2217 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2218
2219 int test (int i, double x);
2220 struct s1 {int (*f) (int a);};
2221 struct s2 {int (*f) (double a);};
2222 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2223 int argc;
2224 char **argv;
2225 int
2226 main ()
2227 {
2228 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2229   ;
2230   return 0;
2231 }
2232 _ACEOF
2233 # Don't try gcc -ansi; that turns off useful extensions and
2234 # breaks some systems' header files.
2235 # AIX                   -qlanglvl=ansi
2236 # Ultrix and OSF/1      -std1
2237 # HP-UX 10.20 and later -Ae
2238 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2239 # SVR4                  -Xc -D__EXTENSIONS__
2240 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2241 do
2242   CC="$ac_save_CC $ac_arg"
2243   rm -f conftest.$ac_objext
2244 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2245   (eval $ac_compile) 2>conftest.er1
2246   ac_status=$?
2247   grep -v '^ *+' conftest.er1 >conftest.err
2248   rm -f conftest.er1
2249   cat conftest.err >&5
2250   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2251   (exit $ac_status); } &&
2252          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2253   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2254   (eval $ac_try) 2>&5
2255   ac_status=$?
2256   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2257   (exit $ac_status); }; } &&
2258          { ac_try='test -s conftest.$ac_objext'
2259   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2260   (eval $ac_try) 2>&5
2261   ac_status=$?
2262   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2263   (exit $ac_status); }; }; then
2264   ac_cv_prog_cc_stdc=$ac_arg
2265 break
2266 else
2267   echo "$as_me: failed program was:" >&5
2268 sed 's/^/| /' conftest.$ac_ext >&5
2269
2270 fi
2271 rm -f conftest.err conftest.$ac_objext
2272 done
2273 rm -f conftest.$ac_ext conftest.$ac_objext
2274 CC=$ac_save_CC
2275
2276 fi
2277
2278 case "x$ac_cv_prog_cc_stdc" in
2279   x|xno)
2280     echo "$as_me:$LINENO: result: none needed" >&5
2281 echo "${ECHO_T}none needed" >&6 ;;
2282   *)
2283     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2284 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2285     CC="$CC $ac_cv_prog_cc_stdc" ;;
2286 esac
2287
2288 # Some people use a C++ compiler to compile C.  Since we use `exit',
2289 # in C++ we need to declare it.  In case someone uses the same compiler
2290 # for both compiling C and C++ we need to have the C++ compiler decide
2291 # the declaration of exit, since it's the most demanding environment.
2292 cat >conftest.$ac_ext <<_ACEOF
2293 #ifndef __cplusplus
2294   choke me
2295 #endif
2296 _ACEOF
2297 rm -f conftest.$ac_objext
2298 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2299   (eval $ac_compile) 2>conftest.er1
2300   ac_status=$?
2301   grep -v '^ *+' conftest.er1 >conftest.err
2302   rm -f conftest.er1
2303   cat conftest.err >&5
2304   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2305   (exit $ac_status); } &&
2306          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2307   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2308   (eval $ac_try) 2>&5
2309   ac_status=$?
2310   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2311   (exit $ac_status); }; } &&
2312          { ac_try='test -s conftest.$ac_objext'
2313   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2314   (eval $ac_try) 2>&5
2315   ac_status=$?
2316   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2317   (exit $ac_status); }; }; then
2318   for ac_declaration in \
2319    '' \
2320    'extern "C" void std::exit (int) throw (); using std::exit;' \
2321    'extern "C" void std::exit (int); using std::exit;' \
2322    'extern "C" void exit (int) throw ();' \
2323    'extern "C" void exit (int);' \
2324    'void exit (int);'
2325 do
2326   cat >conftest.$ac_ext <<_ACEOF
2327 /* confdefs.h.  */
2328 _ACEOF
2329 cat confdefs.h >>conftest.$ac_ext
2330 cat >>conftest.$ac_ext <<_ACEOF
2331 /* end confdefs.h.  */
2332 $ac_declaration
2333 #include <stdlib.h>
2334 int
2335 main ()
2336 {
2337 exit (42);
2338   ;
2339   return 0;
2340 }
2341 _ACEOF
2342 rm -f conftest.$ac_objext
2343 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2344   (eval $ac_compile) 2>conftest.er1
2345   ac_status=$?
2346   grep -v '^ *+' conftest.er1 >conftest.err
2347   rm -f conftest.er1
2348   cat conftest.err >&5
2349   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2350   (exit $ac_status); } &&
2351          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2352   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2353   (eval $ac_try) 2>&5
2354   ac_status=$?
2355   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2356   (exit $ac_status); }; } &&
2357          { ac_try='test -s conftest.$ac_objext'
2358   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2359   (eval $ac_try) 2>&5
2360   ac_status=$?
2361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2362   (exit $ac_status); }; }; then
2363   :
2364 else
2365   echo "$as_me: failed program was:" >&5
2366 sed 's/^/| /' conftest.$ac_ext >&5
2367
2368 continue
2369 fi
2370 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2371   cat >conftest.$ac_ext <<_ACEOF
2372 /* confdefs.h.  */
2373 _ACEOF
2374 cat confdefs.h >>conftest.$ac_ext
2375 cat >>conftest.$ac_ext <<_ACEOF
2376 /* end confdefs.h.  */
2377 $ac_declaration
2378 int
2379 main ()
2380 {
2381 exit (42);
2382   ;
2383   return 0;
2384 }
2385 _ACEOF
2386 rm -f conftest.$ac_objext
2387 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2388   (eval $ac_compile) 2>conftest.er1
2389   ac_status=$?
2390   grep -v '^ *+' conftest.er1 >conftest.err
2391   rm -f conftest.er1
2392   cat conftest.err >&5
2393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2394   (exit $ac_status); } &&
2395          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2396   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2397   (eval $ac_try) 2>&5
2398   ac_status=$?
2399   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2400   (exit $ac_status); }; } &&
2401          { ac_try='test -s conftest.$ac_objext'
2402   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2403   (eval $ac_try) 2>&5
2404   ac_status=$?
2405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2406   (exit $ac_status); }; }; then
2407   break
2408 else
2409   echo "$as_me: failed program was:" >&5
2410 sed 's/^/| /' conftest.$ac_ext >&5
2411
2412 fi
2413 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2414 done
2415 rm -f conftest*
2416 if test -n "$ac_declaration"; then
2417   echo '#ifdef __cplusplus' >>confdefs.h
2418   echo $ac_declaration      >>confdefs.h
2419   echo '#endif'             >>confdefs.h
2420 fi
2421
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 ac_ext=c
2429 ac_cpp='$CPP $CPPFLAGS'
2430 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2431 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2432 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2433
2434 ac_ext=cc
2435 ac_cpp='$CXXCPP $CPPFLAGS'
2436 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2437 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2438 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2439 if test -n "$ac_tool_prefix"; then
2440   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2441   do
2442     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2443 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2444 echo "$as_me:$LINENO: checking for $ac_word" >&5
2445 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2446 if test "${ac_cv_prog_CXX+set}" = set; then
2447   echo $ECHO_N "(cached) $ECHO_C" >&6
2448 else
2449   if test -n "$CXX"; then
2450   ac_cv_prog_CXX="$CXX" # Let the user override the test.
2451 else
2452 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2453 for as_dir in $PATH
2454 do
2455   IFS=$as_save_IFS
2456   test -z "$as_dir" && as_dir=.
2457   for ac_exec_ext in '' $ac_executable_extensions; do
2458   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2459     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2460     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2461     break 2
2462   fi
2463 done
2464 done
2465
2466 fi
2467 fi
2468 CXX=$ac_cv_prog_CXX
2469 if test -n "$CXX"; then
2470   echo "$as_me:$LINENO: result: $CXX" >&5
2471 echo "${ECHO_T}$CXX" >&6
2472 else
2473   echo "$as_me:$LINENO: result: no" >&5
2474 echo "${ECHO_T}no" >&6
2475 fi
2476
2477     test -n "$CXX" && break
2478   done
2479 fi
2480 if test -z "$CXX"; then
2481   ac_ct_CXX=$CXX
2482   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2483 do
2484   # Extract the first word of "$ac_prog", so it can be a program name with args.
2485 set dummy $ac_prog; ac_word=$2
2486 echo "$as_me:$LINENO: checking for $ac_word" >&5
2487 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2488 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2489   echo $ECHO_N "(cached) $ECHO_C" >&6
2490 else
2491   if test -n "$ac_ct_CXX"; then
2492   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2493 else
2494 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2495 for as_dir in $PATH
2496 do
2497   IFS=$as_save_IFS
2498   test -z "$as_dir" && as_dir=.
2499   for ac_exec_ext in '' $ac_executable_extensions; do
2500   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2501     ac_cv_prog_ac_ct_CXX="$ac_prog"
2502     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2503     break 2
2504   fi
2505 done
2506 done
2507
2508 fi
2509 fi
2510 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2511 if test -n "$ac_ct_CXX"; then
2512   echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2513 echo "${ECHO_T}$ac_ct_CXX" >&6
2514 else
2515   echo "$as_me:$LINENO: result: no" >&5
2516 echo "${ECHO_T}no" >&6
2517 fi
2518
2519   test -n "$ac_ct_CXX" && break
2520 done
2521 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2522
2523   CXX=$ac_ct_CXX
2524 fi
2525
2526
2527 # Provide some information about the compiler.
2528 echo "$as_me:$LINENO:" \
2529      "checking for C++ compiler version" >&5
2530 ac_compiler=`set X $ac_compile; echo $2`
2531 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2532   (eval $ac_compiler --version </dev/null >&5) 2>&5
2533   ac_status=$?
2534   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2535   (exit $ac_status); }
2536 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2537   (eval $ac_compiler -v </dev/null >&5) 2>&5
2538   ac_status=$?
2539   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2540   (exit $ac_status); }
2541 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2542   (eval $ac_compiler -V </dev/null >&5) 2>&5
2543   ac_status=$?
2544   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2545   (exit $ac_status); }
2546
2547 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2548 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2549 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2550   echo $ECHO_N "(cached) $ECHO_C" >&6
2551 else
2552   cat >conftest.$ac_ext <<_ACEOF
2553 /* confdefs.h.  */
2554 _ACEOF
2555 cat confdefs.h >>conftest.$ac_ext
2556 cat >>conftest.$ac_ext <<_ACEOF
2557 /* end confdefs.h.  */
2558
2559 int
2560 main ()
2561 {
2562 #ifndef __GNUC__
2563        choke me
2564 #endif
2565
2566   ;
2567   return 0;
2568 }
2569 _ACEOF
2570 rm -f conftest.$ac_objext
2571 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2572   (eval $ac_compile) 2>conftest.er1
2573   ac_status=$?
2574   grep -v '^ *+' conftest.er1 >conftest.err
2575   rm -f conftest.er1
2576   cat conftest.err >&5
2577   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2578   (exit $ac_status); } &&
2579          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
2580   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2581   (eval $ac_try) 2>&5
2582   ac_status=$?
2583   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2584   (exit $ac_status); }; } &&
2585          { ac_try='test -s conftest.$ac_objext'
2586   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2587   (eval $ac_try) 2>&5
2588   ac_status=$?
2589   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2590   (exit $ac_status); }; }; then
2591   ac_compiler_gnu=yes
2592 else
2593   echo "$as_me: failed program was:" >&5
2594 sed 's/^/| /' conftest.$ac_ext >&5
2595
2596 ac_compiler_gnu=no
2597 fi
2598 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2599 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2600
2601 fi
2602 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2603 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2604 GXX=`test $ac_compiler_gnu = yes && echo yes`
2605 ac_test_CXXFLAGS=${CXXFLAGS+set}
2606 ac_save_CXXFLAGS=$CXXFLAGS
2607 CXXFLAGS="-g"
2608 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2609 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2610 if test "${ac_cv_prog_cxx_g+set}" = set; then
2611   echo $ECHO_N "(cached) $ECHO_C" >&6
2612 else
2613   cat >conftest.$ac_ext <<_ACEOF
2614 /* confdefs.h.  */
2615 _ACEOF
2616 cat confdefs.h >>conftest.$ac_ext
2617 cat >>conftest.$ac_ext <<_ACEOF
2618 /* end confdefs.h.  */
2619
2620 int
2621 main ()
2622 {
2623
2624   ;
2625   return 0;
2626 }
2627 _ACEOF
2628 rm -f conftest.$ac_objext
2629 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2630   (eval $ac_compile) 2>conftest.er1
2631   ac_status=$?
2632   grep -v '^ *+' conftest.er1 >conftest.err
2633   rm -f conftest.er1
2634   cat conftest.err >&5
2635   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2636   (exit $ac_status); } &&
2637          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
2638   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2639   (eval $ac_try) 2>&5
2640   ac_status=$?
2641   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2642   (exit $ac_status); }; } &&
2643          { ac_try='test -s conftest.$ac_objext'
2644   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2645   (eval $ac_try) 2>&5
2646   ac_status=$?
2647   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2648   (exit $ac_status); }; }; then
2649   ac_cv_prog_cxx_g=yes
2650 else
2651   echo "$as_me: failed program was:" >&5
2652 sed 's/^/| /' conftest.$ac_ext >&5
2653
2654 ac_cv_prog_cxx_g=no
2655 fi
2656 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2657 fi
2658 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2659 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2660 if test "$ac_test_CXXFLAGS" = set; then
2661   CXXFLAGS=$ac_save_CXXFLAGS
2662 elif test $ac_cv_prog_cxx_g = yes; then
2663   if test "$GXX" = yes; then
2664     CXXFLAGS="-g -O2"
2665   else
2666     CXXFLAGS="-g"
2667   fi
2668 else
2669   if test "$GXX" = yes; then
2670     CXXFLAGS="-O2"
2671   else
2672     CXXFLAGS=
2673   fi
2674 fi
2675 for ac_declaration in \
2676    '' \
2677    'extern "C" void std::exit (int) throw (); using std::exit;' \
2678    'extern "C" void std::exit (int); using std::exit;' \
2679    'extern "C" void exit (int) throw ();' \
2680    'extern "C" void exit (int);' \
2681    'void exit (int);'
2682 do
2683   cat >conftest.$ac_ext <<_ACEOF
2684 /* confdefs.h.  */
2685 _ACEOF
2686 cat confdefs.h >>conftest.$ac_ext
2687 cat >>conftest.$ac_ext <<_ACEOF
2688 /* end confdefs.h.  */
2689 $ac_declaration
2690 #include <stdlib.h>
2691 int
2692 main ()
2693 {
2694 exit (42);
2695   ;
2696   return 0;
2697 }
2698 _ACEOF
2699 rm -f conftest.$ac_objext
2700 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2701   (eval $ac_compile) 2>conftest.er1
2702   ac_status=$?
2703   grep -v '^ *+' conftest.er1 >conftest.err
2704   rm -f conftest.er1
2705   cat conftest.err >&5
2706   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2707   (exit $ac_status); } &&
2708          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
2709   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2710   (eval $ac_try) 2>&5
2711   ac_status=$?
2712   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2713   (exit $ac_status); }; } &&
2714          { ac_try='test -s conftest.$ac_objext'
2715   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2716   (eval $ac_try) 2>&5
2717   ac_status=$?
2718   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2719   (exit $ac_status); }; }; then
2720   :
2721 else
2722   echo "$as_me: failed program was:" >&5
2723 sed 's/^/| /' conftest.$ac_ext >&5
2724
2725 continue
2726 fi
2727 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2728   cat >conftest.$ac_ext <<_ACEOF
2729 /* confdefs.h.  */
2730 _ACEOF
2731 cat confdefs.h >>conftest.$ac_ext
2732 cat >>conftest.$ac_ext <<_ACEOF
2733 /* end confdefs.h.  */
2734 $ac_declaration
2735 int
2736 main ()
2737 {
2738 exit (42);
2739   ;
2740   return 0;
2741 }
2742 _ACEOF
2743 rm -f conftest.$ac_objext
2744 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2745   (eval $ac_compile) 2>conftest.er1
2746   ac_status=$?
2747   grep -v '^ *+' conftest.er1 >conftest.err
2748   rm -f conftest.er1
2749   cat conftest.err >&5
2750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2751   (exit $ac_status); } &&
2752          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
2753   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2754   (eval $ac_try) 2>&5
2755   ac_status=$?
2756   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2757   (exit $ac_status); }; } &&
2758          { ac_try='test -s conftest.$ac_objext'
2759   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2760   (eval $ac_try) 2>&5
2761   ac_status=$?
2762   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2763   (exit $ac_status); }; }; then
2764   break
2765 else
2766   echo "$as_me: failed program was:" >&5
2767 sed 's/^/| /' conftest.$ac_ext >&5
2768
2769 fi
2770 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2771 done
2772 rm -f conftest*
2773 if test -n "$ac_declaration"; then
2774   echo '#ifdef __cplusplus' >>confdefs.h
2775   echo $ac_declaration      >>confdefs.h
2776   echo '#endif'             >>confdefs.h
2777 fi
2778
2779 ac_ext=c
2780 ac_cpp='$CPP $CPPFLAGS'
2781 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2782 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2783 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2784
2785 if test -n "$ac_tool_prefix"; then
2786   # Extract the first word of "${ac_tool_prefix}cpp", so it can be a program name with args.
2787 set dummy ${ac_tool_prefix}cpp; ac_word=$2
2788 echo "$as_me:$LINENO: checking for $ac_word" >&5
2789 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2790 if test "${ac_cv_prog_CPPBIN+set}" = set; then
2791   echo $ECHO_N "(cached) $ECHO_C" >&6
2792 else
2793   if test -n "$CPPBIN"; then
2794   ac_cv_prog_CPPBIN="$CPPBIN" # Let the user override the test.
2795 else
2796 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2797 for as_dir in $PATH
2798 do
2799   IFS=$as_save_IFS
2800   test -z "$as_dir" && as_dir=.
2801   for ac_exec_ext in '' $ac_executable_extensions; do
2802   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2803     ac_cv_prog_CPPBIN="${ac_tool_prefix}cpp"
2804     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2805     break 2
2806   fi
2807 done
2808 done
2809
2810 fi
2811 fi
2812 CPPBIN=$ac_cv_prog_CPPBIN
2813 if test -n "$CPPBIN"; then
2814   echo "$as_me:$LINENO: result: $CPPBIN" >&5
2815 echo "${ECHO_T}$CPPBIN" >&6
2816 else
2817   echo "$as_me:$LINENO: result: no" >&5
2818 echo "${ECHO_T}no" >&6
2819 fi
2820
2821 fi
2822 if test -z "$ac_cv_prog_CPPBIN"; then
2823   ac_ct_CPPBIN=$CPPBIN
2824   # Extract the first word of "cpp", so it can be a program name with args.
2825 set dummy cpp; ac_word=$2
2826 echo "$as_me:$LINENO: checking for $ac_word" >&5
2827 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2828 if test "${ac_cv_prog_ac_ct_CPPBIN+set}" = set; then
2829   echo $ECHO_N "(cached) $ECHO_C" >&6
2830 else
2831   if test -n "$ac_ct_CPPBIN"; then
2832   ac_cv_prog_ac_ct_CPPBIN="$ac_ct_CPPBIN" # Let the user override the test.
2833 else
2834 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2835 for as_dir in $PATH
2836 do
2837   IFS=$as_save_IFS
2838   test -z "$as_dir" && as_dir=.
2839   for ac_exec_ext in '' $ac_executable_extensions; do
2840   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2841     ac_cv_prog_ac_ct_CPPBIN="cpp"
2842     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2843     break 2
2844   fi
2845 done
2846 done
2847
2848   test -z "$ac_cv_prog_ac_ct_CPPBIN" && ac_cv_prog_ac_ct_CPPBIN="cpp"
2849 fi
2850 fi
2851 ac_ct_CPPBIN=$ac_cv_prog_ac_ct_CPPBIN
2852 if test -n "$ac_ct_CPPBIN"; then
2853   echo "$as_me:$LINENO: result: $ac_ct_CPPBIN" >&5
2854 echo "${ECHO_T}$ac_ct_CPPBIN" >&6
2855 else
2856   echo "$as_me:$LINENO: result: no" >&5
2857 echo "${ECHO_T}no" >&6
2858 fi
2859
2860   CPPBIN=$ac_ct_CPPBIN
2861 else
2862   CPPBIN="$ac_cv_prog_CPPBIN"
2863 fi
2864
2865
2866 echo "$as_me:$LINENO: checking for the directory containing the Wine tools" >&5
2867 echo $ECHO_N "checking for the directory containing the Wine tools... $ECHO_C" >&6
2868 if test "${wine_cv_toolsdir+set}" = set; then
2869   echo $ECHO_N "(cached) $ECHO_C" >&6
2870 else
2871   if test -z "$with_wine_tools"; then
2872      if test "$cross_compiling" = "yes"; then
2873        { { echo "$as_me:$LINENO: error: you must use the --with-wine-tools option when cross-compiling." >&5
2874 echo "$as_me: error: you must use the --with-wine-tools option when cross-compiling." >&2;}
2875    { (exit 1); exit 1; }; }
2876      else
2877        wine_cv_toolsdir="\$(TOPOBJDIR)"
2878      fi
2879    elif test -d "$with_wine_tools/tools/winebuild"; then
2880      case $with_wine_tools in
2881        /*) wine_cv_toolsdir="$with_wine_tools" ;;
2882        *)  wine_cv_toolsdir="\$(TOPOBJDIR)/$with_wine_tools" ;;
2883      esac
2884    else
2885      { { echo "$as_me:$LINENO: error: could not find Wine tools in $with_wine_tools." >&5
2886 echo "$as_me: error: could not find Wine tools in $with_wine_tools." >&2;}
2887    { (exit 1); exit 1; }; }
2888    fi
2889 fi
2890 echo "$as_me:$LINENO: result: $wine_cv_toolsdir" >&5
2891 echo "${ECHO_T}$wine_cv_toolsdir" >&6
2892 TOOLSDIR=$wine_cv_toolsdir
2893
2894
2895
2896 ac_ext=c
2897 ac_cpp='$CPP $CPPFLAGS'
2898 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2899 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2900 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2901 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2902 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2903 # On Suns, sometimes $CPP names a directory.
2904 if test -n "$CPP" && test -d "$CPP"; then
2905   CPP=
2906 fi
2907 if test -z "$CPP"; then
2908   if test "${ac_cv_prog_CPP+set}" = set; then
2909   echo $ECHO_N "(cached) $ECHO_C" >&6
2910 else
2911       # Double quotes because CPP needs to be expanded
2912     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2913     do
2914       ac_preproc_ok=false
2915 for ac_c_preproc_warn_flag in '' yes
2916 do
2917   # Use a header file that comes with gcc, so configuring glibc
2918   # with a fresh cross-compiler works.
2919   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2920   # <limits.h> exists even on freestanding compilers.
2921   # On the NeXT, cc -E runs the code through the compiler's parser,
2922   # not just through cpp. "Syntax error" is here to catch this case.
2923   cat >conftest.$ac_ext <<_ACEOF
2924 /* confdefs.h.  */
2925 _ACEOF
2926 cat confdefs.h >>conftest.$ac_ext
2927 cat >>conftest.$ac_ext <<_ACEOF
2928 /* end confdefs.h.  */
2929 #ifdef __STDC__
2930 # include <limits.h>
2931 #else
2932 # include <assert.h>
2933 #endif
2934                      Syntax error
2935 _ACEOF
2936 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2937   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2938   ac_status=$?
2939   grep -v '^ *+' conftest.er1 >conftest.err
2940   rm -f conftest.er1
2941   cat conftest.err >&5
2942   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2943   (exit $ac_status); } >/dev/null; then
2944   if test -s conftest.err; then
2945     ac_cpp_err=$ac_c_preproc_warn_flag
2946     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2947   else
2948     ac_cpp_err=
2949   fi
2950 else
2951   ac_cpp_err=yes
2952 fi
2953 if test -z "$ac_cpp_err"; then
2954   :
2955 else
2956   echo "$as_me: failed program was:" >&5
2957 sed 's/^/| /' conftest.$ac_ext >&5
2958
2959   # Broken: fails on valid input.
2960 continue
2961 fi
2962 rm -f conftest.err conftest.$ac_ext
2963
2964   # OK, works on sane cases.  Now check whether non-existent headers
2965   # can be detected and how.
2966   cat >conftest.$ac_ext <<_ACEOF
2967 /* confdefs.h.  */
2968 _ACEOF
2969 cat confdefs.h >>conftest.$ac_ext
2970 cat >>conftest.$ac_ext <<_ACEOF
2971 /* end confdefs.h.  */
2972 #include <ac_nonexistent.h>
2973 _ACEOF
2974 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2975   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2976   ac_status=$?
2977   grep -v '^ *+' conftest.er1 >conftest.err
2978   rm -f conftest.er1
2979   cat conftest.err >&5
2980   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2981   (exit $ac_status); } >/dev/null; then
2982   if test -s conftest.err; then
2983     ac_cpp_err=$ac_c_preproc_warn_flag
2984     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2985   else
2986     ac_cpp_err=
2987   fi
2988 else
2989   ac_cpp_err=yes
2990 fi
2991 if test -z "$ac_cpp_err"; then
2992   # Broken: success on invalid input.
2993 continue
2994 else
2995   echo "$as_me: failed program was:" >&5
2996 sed 's/^/| /' conftest.$ac_ext >&5
2997
2998   # Passes both tests.
2999 ac_preproc_ok=:
3000 break
3001 fi
3002 rm -f conftest.err conftest.$ac_ext
3003
3004 done
3005 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3006 rm -f conftest.err conftest.$ac_ext
3007 if $ac_preproc_ok; then
3008   break
3009 fi
3010
3011     done
3012     ac_cv_prog_CPP=$CPP
3013
3014 fi
3015   CPP=$ac_cv_prog_CPP
3016 else
3017   ac_cv_prog_CPP=$CPP
3018 fi
3019 echo "$as_me:$LINENO: result: $CPP" >&5
3020 echo "${ECHO_T}$CPP" >&6
3021 ac_preproc_ok=false
3022 for ac_c_preproc_warn_flag in '' yes
3023 do
3024   # Use a header file that comes with gcc, so configuring glibc
3025   # with a fresh cross-compiler works.
3026   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3027   # <limits.h> exists even on freestanding compilers.
3028   # On the NeXT, cc -E runs the code through the compiler's parser,
3029   # not just through cpp. "Syntax error" is here to catch this case.
3030   cat >conftest.$ac_ext <<_ACEOF
3031 /* confdefs.h.  */
3032 _ACEOF
3033 cat confdefs.h >>conftest.$ac_ext
3034 cat >>conftest.$ac_ext <<_ACEOF
3035 /* end confdefs.h.  */
3036 #ifdef __STDC__
3037 # include <limits.h>
3038 #else
3039 # include <assert.h>
3040 #endif
3041                      Syntax error
3042 _ACEOF
3043 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3044   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3045   ac_status=$?
3046   grep -v '^ *+' conftest.er1 >conftest.err
3047   rm -f conftest.er1
3048   cat conftest.err >&5
3049   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3050   (exit $ac_status); } >/dev/null; then
3051   if test -s conftest.err; then
3052     ac_cpp_err=$ac_c_preproc_warn_flag
3053     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3054   else
3055     ac_cpp_err=
3056   fi
3057 else
3058   ac_cpp_err=yes
3059 fi
3060 if test -z "$ac_cpp_err"; then
3061   :
3062 else
3063   echo "$as_me: failed program was:" >&5
3064 sed 's/^/| /' conftest.$ac_ext >&5
3065
3066   # Broken: fails on valid input.
3067 continue
3068 fi
3069 rm -f conftest.err conftest.$ac_ext
3070
3071   # OK, works on sane cases.  Now check whether non-existent headers
3072   # can be detected and how.
3073   cat >conftest.$ac_ext <<_ACEOF
3074 /* confdefs.h.  */
3075 _ACEOF
3076 cat confdefs.h >>conftest.$ac_ext
3077 cat >>conftest.$ac_ext <<_ACEOF
3078 /* end confdefs.h.  */
3079 #include <ac_nonexistent.h>
3080 _ACEOF
3081 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3082   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3083   ac_status=$?
3084   grep -v '^ *+' conftest.er1 >conftest.err
3085   rm -f conftest.er1
3086   cat conftest.err >&5
3087   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3088   (exit $ac_status); } >/dev/null; then
3089   if test -s conftest.err; then
3090     ac_cpp_err=$ac_c_preproc_warn_flag
3091     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3092   else
3093     ac_cpp_err=
3094   fi
3095 else
3096   ac_cpp_err=yes
3097 fi
3098 if test -z "$ac_cpp_err"; then
3099   # Broken: success on invalid input.
3100 continue
3101 else
3102   echo "$as_me: failed program was:" >&5
3103 sed 's/^/| /' conftest.$ac_ext >&5
3104
3105   # Passes both tests.
3106 ac_preproc_ok=:
3107 break
3108 fi
3109 rm -f conftest.err conftest.$ac_ext
3110
3111 done
3112 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3113 rm -f conftest.err conftest.$ac_ext
3114 if $ac_preproc_ok; then
3115   :
3116 else
3117   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3118 See \`config.log' for more details." >&5
3119 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3120 See \`config.log' for more details." >&2;}
3121    { (exit 1); exit 1; }; }
3122 fi
3123
3124 ac_ext=c
3125 ac_cpp='$CPP $CPPFLAGS'
3126 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3127 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3128 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3129
3130
3131
3132 if test "x$ac_path_x_has_been_run" != xyes; then
3133   echo "$as_me:$LINENO: checking for X" >&5
3134 echo $ECHO_N "checking for X... $ECHO_C" >&6
3135
3136 ac_path_x_has_been_run=yes
3137
3138 # Check whether --with-x or --without-x was given.
3139 if test "${with_x+set}" = set; then
3140   withval="$with_x"
3141
3142 fi;
3143 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
3144 if test "x$with_x" = xno; then
3145   # The user explicitly disabled X.
3146   have_x=disabled
3147 else
3148   if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
3149     # Both variables are already set.
3150     have_x=yes
3151   else
3152     if test "${ac_cv_have_x+set}" = set; then
3153   echo $ECHO_N "(cached) $ECHO_C" >&6
3154 else
3155   # One or both of the vars are not set, and there is no cached value.
3156 ac_x_includes=no ac_x_libraries=no
3157 rm -fr conftest.dir
3158 if mkdir conftest.dir; then
3159   cd conftest.dir
3160   # Make sure to not put "make" in the Imakefile rules, since we grep it out.
3161   cat >Imakefile <<'_ACEOF'
3162 acfindx:
3163         @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
3164 _ACEOF
3165   if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
3166     # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3167     eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
3168     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
3169     for ac_extension in a so sl; do
3170       if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
3171          test -f $ac_im_libdir/libX11.$ac_extension; then
3172         ac_im_usrlibdir=$ac_im_libdir; break
3173       fi
3174     done
3175     # Screen out bogus values from the imake configuration.  They are
3176     # bogus both because they are the default anyway, and because
3177     # using them would break gcc on systems where it needs fixed includes.
3178     case $ac_im_incroot in
3179         /usr/include) ;;
3180         *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
3181     esac
3182     case $ac_im_usrlibdir in
3183         /usr/lib | /lib) ;;
3184         *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
3185     esac
3186   fi
3187   cd ..
3188   rm -fr conftest.dir
3189 fi
3190
3191 # Standard set of common directories for X headers.
3192 # Check X11 before X11Rn because it is often a symlink to the current release.
3193 ac_x_header_dirs='
3194 /usr/X11/include
3195 /usr/X11R6/include
3196 /usr/X11R5/include
3197 /usr/X11R4/include
3198
3199 /usr/include/X11
3200 /usr/include/X11R6
3201 /usr/include/X11R5
3202 /usr/include/X11R4
3203
3204 /usr/local/X11/include
3205 /usr/local/X11R6/include
3206 /usr/local/X11R5/include
3207 /usr/local/X11R4/include
3208
3209 /usr/local/include/X11
3210 /usr/local/include/X11R6
3211 /usr/local/include/X11R5
3212 /usr/local/include/X11R4
3213
3214 /usr/X386/include
3215 /usr/x386/include
3216 /usr/XFree86/include/X11
3217
3218 /usr/include
3219 /usr/local/include
3220 /usr/unsupported/include
3221 /usr/athena/include
3222 /usr/local/x11r5/include
3223 /usr/lpp/Xamples/include
3224
3225 /usr/openwin/include
3226 /usr/openwin/share/include'
3227
3228 if test "$ac_x_includes" = no; then
3229   # Guess where to find include files, by looking for a specified header file.
3230   # First, try using that file with no special directory specified.
3231   cat >conftest.$ac_ext <<_ACEOF
3232 /* confdefs.h.  */
3233 _ACEOF
3234 cat confdefs.h >>conftest.$ac_ext
3235 cat >>conftest.$ac_ext <<_ACEOF
3236 /* end confdefs.h.  */
3237 #include <X11/Xlib.h>
3238 _ACEOF
3239 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3240   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3241   ac_status=$?
3242   grep -v '^ *+' conftest.er1 >conftest.err
3243   rm -f conftest.er1
3244   cat conftest.err >&5
3245   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3246   (exit $ac_status); } >/dev/null; then
3247   if test -s conftest.err; then
3248     ac_cpp_err=$ac_c_preproc_warn_flag
3249     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3250   else
3251     ac_cpp_err=
3252   fi
3253 else
3254   ac_cpp_err=yes
3255 fi
3256 if test -z "$ac_cpp_err"; then
3257   # We can compile using X headers with no special include directory.
3258 ac_x_includes=
3259 else
3260   echo "$as_me: failed program was:" >&5
3261 sed 's/^/| /' conftest.$ac_ext >&5
3262
3263   for ac_dir in $ac_x_header_dirs; do
3264   if test -r "$ac_dir/X11/Xlib.h"; then
3265     ac_x_includes=$ac_dir
3266     break
3267   fi
3268 done
3269 fi
3270 rm -f conftest.err conftest.$ac_ext
3271 fi # $ac_x_includes = no
3272
3273 if test "$ac_x_libraries" = no; then
3274   # Check for the libraries.
3275   # See if we find them without any special options.
3276   # Don't add to $LIBS permanently.
3277   ac_save_LIBS=$LIBS
3278   LIBS="-lX11 $LIBS"
3279   cat >conftest.$ac_ext <<_ACEOF
3280 /* confdefs.h.  */
3281 _ACEOF
3282 cat confdefs.h >>conftest.$ac_ext
3283 cat >>conftest.$ac_ext <<_ACEOF
3284 /* end confdefs.h.  */
3285 #include <X11/Xlib.h>
3286 int
3287 main ()
3288 {
3289 XrmInitialize ()
3290   ;
3291   return 0;
3292 }
3293 _ACEOF
3294 rm -f conftest.$ac_objext conftest$ac_exeext
3295 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3296   (eval $ac_link) 2>conftest.er1
3297   ac_status=$?
3298   grep -v '^ *+' conftest.er1 >conftest.err
3299   rm -f conftest.er1
3300   cat conftest.err >&5
3301   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3302   (exit $ac_status); } &&
3303          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3304   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3305   (eval $ac_try) 2>&5
3306   ac_status=$?
3307   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3308   (exit $ac_status); }; } &&
3309          { ac_try='test -s conftest$ac_exeext'
3310   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3311   (eval $ac_try) 2>&5
3312   ac_status=$?
3313   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3314   (exit $ac_status); }; }; then
3315   LIBS=$ac_save_LIBS
3316 # We can link X programs with no special library path.
3317 ac_x_libraries=
3318 else
3319   echo "$as_me: failed program was:" >&5
3320 sed 's/^/| /' conftest.$ac_ext >&5
3321
3322 LIBS=$ac_save_LIBS
3323 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
3324 do
3325   # Don't even attempt the hair of trying to link an X program!
3326   for ac_extension in a so sl; do
3327     if test -r $ac_dir/libX11.$ac_extension; then
3328       ac_x_libraries=$ac_dir
3329       break 2
3330     fi
3331   done
3332 done
3333 fi
3334 rm -f conftest.err conftest.$ac_objext \
3335       conftest$ac_exeext conftest.$ac_ext
3336 fi # $ac_x_libraries = no
3337
3338 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
3339   # Didn't find X anywhere.  Cache the known absence of X.
3340   ac_cv_have_x="have_x=no"
3341 else
3342   # Record where we found X for the cache.
3343   ac_cv_have_x="have_x=yes \
3344                 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
3345 fi
3346 fi
3347
3348   fi
3349   eval "$ac_cv_have_x"
3350 fi # $with_x != no
3351
3352 if test "$have_x" != yes; then
3353   echo "$as_me:$LINENO: result: $have_x" >&5
3354 echo "${ECHO_T}$have_x" >&6
3355   no_x=yes
3356 else
3357   # If each of the values was on the command line, it overrides each guess.
3358   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
3359   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
3360   # Update the cache value to reflect the command line values.
3361   ac_cv_have_x="have_x=yes \
3362                 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
3363   # It might be that x_includes is empty (headers are found in the
3364   # standard search path. Then output the corresponding message
3365   ac_out_x_includes=$x_includes
3366   test "x$x_includes" = x && ac_out_x_includes="in standard search path"
3367   echo "$as_me:$LINENO: result: libraries $x_libraries, headers $ac_out_x_includes" >&5
3368 echo "${ECHO_T}libraries $x_libraries, headers $ac_out_x_includes" >&6
3369 fi
3370
3371 fi
3372 if test "$no_x" = yes; then
3373   # Not all programs may use this symbol, but it does not hurt to define it.
3374
3375 cat >>confdefs.h <<\_ACEOF
3376 #define X_DISPLAY_MISSING 1
3377 _ACEOF
3378
3379   X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
3380 else
3381   if test -n "$x_includes"; then
3382     X_CFLAGS="$X_CFLAGS -I$x_includes"
3383   fi
3384
3385   # It would also be nice to do this for all -L options, not just this one.
3386   if test -n "$x_libraries"; then
3387     X_LIBS="$X_LIBS -L$x_libraries"
3388     # For Solaris; some versions of Sun CC require a space after -R and
3389     # others require no space.  Words are not sufficient . . . .
3390     case `(uname -sr) 2>/dev/null` in
3391     "SunOS 5"*)
3392       echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
3393 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
3394       ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
3395       cat >conftest.$ac_ext <<_ACEOF
3396 /* confdefs.h.  */
3397 _ACEOF
3398 cat confdefs.h >>conftest.$ac_ext
3399 cat >>conftest.$ac_ext <<_ACEOF
3400 /* end confdefs.h.  */
3401
3402 int
3403 main ()
3404 {
3405
3406   ;
3407   return 0;
3408 }
3409 _ACEOF
3410 rm -f conftest.$ac_objext conftest$ac_exeext
3411 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3412   (eval $ac_link) 2>conftest.er1
3413   ac_status=$?
3414   grep -v '^ *+' conftest.er1 >conftest.err
3415   rm -f conftest.er1
3416   cat conftest.err >&5
3417   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3418   (exit $ac_status); } &&
3419          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3420   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3421   (eval $ac_try) 2>&5
3422   ac_status=$?
3423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3424   (exit $ac_status); }; } &&
3425          { ac_try='test -s conftest$ac_exeext'
3426   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3427   (eval $ac_try) 2>&5
3428   ac_status=$?
3429   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3430   (exit $ac_status); }; }; then
3431   ac_R_nospace=yes
3432 else
3433   echo "$as_me: failed program was:" >&5
3434 sed 's/^/| /' conftest.$ac_ext >&5
3435
3436 ac_R_nospace=no
3437 fi
3438 rm -f conftest.err conftest.$ac_objext \
3439       conftest$ac_exeext conftest.$ac_ext
3440       if test $ac_R_nospace = yes; then
3441         echo "$as_me:$LINENO: result: no" >&5
3442 echo "${ECHO_T}no" >&6
3443         X_LIBS="$X_LIBS -R$x_libraries"
3444       else
3445         LIBS="$ac_xsave_LIBS -R $x_libraries"
3446         cat >conftest.$ac_ext <<_ACEOF
3447 /* confdefs.h.  */
3448 _ACEOF
3449 cat confdefs.h >>conftest.$ac_ext
3450 cat >>conftest.$ac_ext <<_ACEOF
3451 /* end confdefs.h.  */
3452
3453 int
3454 main ()
3455 {
3456
3457   ;
3458   return 0;
3459 }
3460 _ACEOF
3461 rm -f conftest.$ac_objext conftest$ac_exeext
3462 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3463   (eval $ac_link) 2>conftest.er1
3464   ac_status=$?
3465   grep -v '^ *+' conftest.er1 >conftest.err
3466   rm -f conftest.er1
3467   cat conftest.err >&5
3468   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3469   (exit $ac_status); } &&
3470          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3471   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3472   (eval $ac_try) 2>&5
3473   ac_status=$?
3474   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3475   (exit $ac_status); }; } &&
3476          { ac_try='test -s conftest$ac_exeext'
3477   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3478   (eval $ac_try) 2>&5
3479   ac_status=$?
3480   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3481   (exit $ac_status); }; }; then
3482   ac_R_space=yes
3483 else
3484   echo "$as_me: failed program was:" >&5
3485 sed 's/^/| /' conftest.$ac_ext >&5
3486
3487 ac_R_space=no
3488 fi
3489 rm -f conftest.err conftest.$ac_objext \
3490       conftest$ac_exeext conftest.$ac_ext
3491         if test $ac_R_space = yes; then
3492           echo "$as_me:$LINENO: result: yes" >&5
3493 echo "${ECHO_T}yes" >&6
3494           X_LIBS="$X_LIBS -R $x_libraries"
3495         else
3496           echo "$as_me:$LINENO: result: neither works" >&5
3497 echo "${ECHO_T}neither works" >&6
3498         fi
3499       fi
3500       LIBS=$ac_xsave_LIBS
3501     esac
3502   fi
3503
3504   # Check for system-dependent libraries X programs must link with.
3505   # Do this before checking for the system-independent R6 libraries
3506   # (-lICE), since we may need -lsocket or whatever for X linking.
3507
3508   if test "$ISC" = yes; then
3509     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
3510   else
3511     # Martyn Johnson says this is needed for Ultrix, if the X
3512     # libraries were built with DECnet support.  And Karl Berry says
3513     # the Alpha needs dnet_stub (dnet does not exist).
3514     ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
3515     cat >conftest.$ac_ext <<_ACEOF
3516 /* confdefs.h.  */
3517 _ACEOF
3518 cat confdefs.h >>conftest.$ac_ext
3519 cat >>conftest.$ac_ext <<_ACEOF
3520 /* end confdefs.h.  */
3521
3522 /* Override any gcc2 internal prototype to avoid an error.  */
3523 #ifdef __cplusplus
3524 extern "C"
3525 #endif
3526 /* We use char because int might match the return type of a gcc2
3527    builtin and then its argument prototype would still apply.  */
3528 char XOpenDisplay ();
3529 int
3530 main ()
3531 {
3532 XOpenDisplay ();
3533   ;
3534   return 0;
3535 }
3536 _ACEOF
3537 rm -f conftest.$ac_objext conftest$ac_exeext
3538 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3539   (eval $ac_link) 2>conftest.er1
3540   ac_status=$?
3541   grep -v '^ *+' conftest.er1 >conftest.err
3542   rm -f conftest.er1
3543   cat conftest.err >&5
3544   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3545   (exit $ac_status); } &&
3546          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3547   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3548   (eval $ac_try) 2>&5
3549   ac_status=$?
3550   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3551   (exit $ac_status); }; } &&
3552          { ac_try='test -s conftest$ac_exeext'
3553   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3554   (eval $ac_try) 2>&5
3555   ac_status=$?
3556   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3557   (exit $ac_status); }; }; then
3558   :
3559 else
3560   echo "$as_me: failed program was:" >&5
3561 sed 's/^/| /' conftest.$ac_ext >&5
3562
3563 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
3564 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
3565 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
3566   echo $ECHO_N "(cached) $ECHO_C" >&6
3567 else
3568   ac_check_lib_save_LIBS=$LIBS
3569 LIBS="-ldnet  $LIBS"
3570 cat >conftest.$ac_ext <<_ACEOF
3571 /* confdefs.h.  */
3572 _ACEOF
3573 cat confdefs.h >>conftest.$ac_ext
3574 cat >>conftest.$ac_ext <<_ACEOF
3575 /* end confdefs.h.  */
3576
3577 /* Override any gcc2 internal prototype to avoid an error.  */
3578 #ifdef __cplusplus
3579 extern "C"
3580 #endif
3581 /* We use char because int might match the return type of a gcc2
3582    builtin and then its argument prototype would still apply.  */
3583 char dnet_ntoa ();
3584 int
3585 main ()
3586 {
3587 dnet_ntoa ();
3588   ;
3589   return 0;
3590 }
3591 _ACEOF
3592 rm -f conftest.$ac_objext conftest$ac_exeext
3593 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3594   (eval $ac_link) 2>conftest.er1
3595   ac_status=$?
3596   grep -v '^ *+' conftest.er1 >conftest.err
3597   rm -f conftest.er1
3598   cat conftest.err >&5
3599   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3600   (exit $ac_status); } &&
3601          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3602   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3603   (eval $ac_try) 2>&5
3604   ac_status=$?
3605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3606   (exit $ac_status); }; } &&
3607          { ac_try='test -s conftest$ac_exeext'
3608   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3609   (eval $ac_try) 2>&5
3610   ac_status=$?
3611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3612   (exit $ac_status); }; }; then
3613   ac_cv_lib_dnet_dnet_ntoa=yes
3614 else
3615   echo "$as_me: failed program was:" >&5
3616 sed 's/^/| /' conftest.$ac_ext >&5
3617
3618 ac_cv_lib_dnet_dnet_ntoa=no
3619 fi
3620 rm -f conftest.err conftest.$ac_objext \
3621       conftest$ac_exeext conftest.$ac_ext
3622 LIBS=$ac_check_lib_save_LIBS
3623 fi
3624 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
3625 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
3626 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
3627   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
3628 fi
3629
3630     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
3631       echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
3632 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
3633 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
3634   echo $ECHO_N "(cached) $ECHO_C" >&6
3635 else
3636   ac_check_lib_save_LIBS=$LIBS
3637 LIBS="-ldnet_stub  $LIBS"
3638 cat >conftest.$ac_ext <<_ACEOF
3639 /* confdefs.h.  */
3640 _ACEOF
3641 cat confdefs.h >>conftest.$ac_ext
3642 cat >>conftest.$ac_ext <<_ACEOF
3643 /* end confdefs.h.  */
3644
3645 /* Override any gcc2 internal prototype to avoid an error.  */
3646 #ifdef __cplusplus
3647 extern "C"
3648 #endif
3649 /* We use char because int might match the return type of a gcc2
3650    builtin and then its argument prototype would still apply.  */
3651 char dnet_ntoa ();
3652 int
3653 main ()
3654 {
3655 dnet_ntoa ();
3656   ;
3657   return 0;
3658 }
3659 _ACEOF
3660 rm -f conftest.$ac_objext conftest$ac_exeext
3661 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3662   (eval $ac_link) 2>conftest.er1
3663   ac_status=$?
3664   grep -v '^ *+' conftest.er1 >conftest.err
3665   rm -f conftest.er1
3666   cat conftest.err >&5
3667   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3668   (exit $ac_status); } &&
3669          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3670   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3671   (eval $ac_try) 2>&5
3672   ac_status=$?
3673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3674   (exit $ac_status); }; } &&
3675          { ac_try='test -s conftest$ac_exeext'
3676   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3677   (eval $ac_try) 2>&5
3678   ac_status=$?
3679   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3680   (exit $ac_status); }; }; then
3681   ac_cv_lib_dnet_stub_dnet_ntoa=yes
3682 else
3683   echo "$as_me: failed program was:" >&5
3684 sed 's/^/| /' conftest.$ac_ext >&5
3685
3686 ac_cv_lib_dnet_stub_dnet_ntoa=no
3687 fi
3688 rm -f conftest.err conftest.$ac_objext \
3689       conftest$ac_exeext conftest.$ac_ext
3690 LIBS=$ac_check_lib_save_LIBS
3691 fi
3692 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
3693 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
3694 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
3695   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
3696 fi
3697
3698     fi
3699 fi
3700 rm -f conftest.err conftest.$ac_objext \
3701       conftest$ac_exeext conftest.$ac_ext
3702     LIBS="$ac_xsave_LIBS"
3703
3704     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
3705     # to get the SysV transport functions.
3706     # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
3707     # needs -lnsl.
3708     # The nsl library prevents programs from opening the X display
3709     # on Irix 5.2, according to T.E. Dickey.
3710     # The functions gethostbyname, getservbyname, and inet_addr are
3711     # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
3712     echo "$as_me:$LINENO: checking for gethostbyname" >&5
3713 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
3714 if test "${ac_cv_func_gethostbyname+set}" = set; then
3715   echo $ECHO_N "(cached) $ECHO_C" >&6
3716 else
3717   cat >conftest.$ac_ext <<_ACEOF
3718 /* confdefs.h.  */
3719 _ACEOF
3720 cat confdefs.h >>conftest.$ac_ext
3721 cat >>conftest.$ac_ext <<_ACEOF
3722 /* end confdefs.h.  */
3723 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
3724    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
3725 #define gethostbyname innocuous_gethostbyname
3726
3727 /* System header to define __stub macros and hopefully few prototypes,
3728     which can conflict with char gethostbyname (); below.
3729     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3730     <limits.h> exists even on freestanding compilers.  */
3731
3732 #ifdef __STDC__
3733 # include <limits.h>
3734 #else
3735 # include <assert.h>
3736 #endif
3737
3738 #undef gethostbyname
3739
3740 /* Override any gcc2 internal prototype to avoid an error.  */
3741 #ifdef __cplusplus
3742 extern "C"
3743 {
3744 #endif
3745 /* We use char because int might match the return type of a gcc2
3746    builtin and then its argument prototype would still apply.  */
3747 char gethostbyname ();
3748 /* The GNU C library defines this for functions which it implements
3749     to always fail with ENOSYS.  Some functions are actually named
3750     something starting with __ and the normal name is an alias.  */
3751 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
3752 choke me
3753 #else
3754 char (*f) () = gethostbyname;
3755 #endif
3756 #ifdef __cplusplus
3757 }
3758 #endif
3759
3760 int
3761 main ()
3762 {
3763 return f != gethostbyname;
3764   ;
3765   return 0;
3766 }
3767 _ACEOF
3768 rm -f conftest.$ac_objext conftest$ac_exeext
3769 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3770   (eval $ac_link) 2>conftest.er1
3771   ac_status=$?
3772   grep -v '^ *+' conftest.er1 >conftest.err
3773   rm -f conftest.er1
3774   cat conftest.err >&5
3775   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3776   (exit $ac_status); } &&
3777          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3778   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3779   (eval $ac_try) 2>&5
3780   ac_status=$?
3781   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3782   (exit $ac_status); }; } &&
3783          { ac_try='test -s conftest$ac_exeext'
3784   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3785   (eval $ac_try) 2>&5
3786   ac_status=$?
3787   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3788   (exit $ac_status); }; }; then
3789   ac_cv_func_gethostbyname=yes
3790 else
3791   echo "$as_me: failed program was:" >&5
3792 sed 's/^/| /' conftest.$ac_ext >&5
3793
3794 ac_cv_func_gethostbyname=no
3795 fi
3796 rm -f conftest.err conftest.$ac_objext \
3797       conftest$ac_exeext conftest.$ac_ext
3798 fi
3799 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
3800 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
3801
3802     if test $ac_cv_func_gethostbyname = no; then
3803       echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
3804 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
3805 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
3806   echo $ECHO_N "(cached) $ECHO_C" >&6
3807 else
3808   ac_check_lib_save_LIBS=$LIBS
3809 LIBS="-lnsl  $LIBS"
3810 cat >conftest.$ac_ext <<_ACEOF
3811 /* confdefs.h.  */
3812 _ACEOF
3813 cat confdefs.h >>conftest.$ac_ext
3814 cat >>conftest.$ac_ext <<_ACEOF
3815 /* end confdefs.h.  */
3816
3817 /* Override any gcc2 internal prototype to avoid an error.  */
3818 #ifdef __cplusplus
3819 extern "C"
3820 #endif
3821 /* We use char because int might match the return type of a gcc2
3822    builtin and then its argument prototype would still apply.  */
3823 char gethostbyname ();
3824 int
3825 main ()
3826 {
3827 gethostbyname ();
3828   ;
3829   return 0;
3830 }
3831 _ACEOF
3832 rm -f conftest.$ac_objext conftest$ac_exeext
3833 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3834   (eval $ac_link) 2>conftest.er1
3835   ac_status=$?
3836   grep -v '^ *+' conftest.er1 >conftest.err
3837   rm -f conftest.er1
3838   cat conftest.err >&5
3839   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3840   (exit $ac_status); } &&
3841          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3842   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3843   (eval $ac_try) 2>&5
3844   ac_status=$?
3845   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3846   (exit $ac_status); }; } &&
3847          { ac_try='test -s conftest$ac_exeext'
3848   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3849   (eval $ac_try) 2>&5
3850   ac_status=$?
3851   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3852   (exit $ac_status); }; }; then
3853   ac_cv_lib_nsl_gethostbyname=yes
3854 else
3855   echo "$as_me: failed program was:" >&5
3856 sed 's/^/| /' conftest.$ac_ext >&5
3857
3858 ac_cv_lib_nsl_gethostbyname=no
3859 fi
3860 rm -f conftest.err conftest.$ac_objext \
3861       conftest$ac_exeext conftest.$ac_ext
3862 LIBS=$ac_check_lib_save_LIBS
3863 fi
3864 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
3865 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
3866 if test $ac_cv_lib_nsl_gethostbyname = yes; then
3867   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
3868 fi
3869
3870       if test $ac_cv_lib_nsl_gethostbyname = no; then
3871         echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
3872 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
3873 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
3874   echo $ECHO_N "(cached) $ECHO_C" >&6
3875 else
3876   ac_check_lib_save_LIBS=$LIBS
3877 LIBS="-lbsd  $LIBS"
3878 cat >conftest.$ac_ext <<_ACEOF
3879 /* confdefs.h.  */
3880 _ACEOF
3881 cat confdefs.h >>conftest.$ac_ext
3882 cat >>conftest.$ac_ext <<_ACEOF
3883 /* end confdefs.h.  */
3884
3885 /* Override any gcc2 internal prototype to avoid an error.  */
3886 #ifdef __cplusplus
3887 extern "C"
3888 #endif
3889 /* We use char because int might match the return type of a gcc2
3890    builtin and then its argument prototype would still apply.  */
3891 char gethostbyname ();
3892 int
3893 main ()
3894 {
3895 gethostbyname ();
3896   ;
3897   return 0;
3898 }
3899 _ACEOF
3900 rm -f conftest.$ac_objext conftest$ac_exeext
3901 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3902   (eval $ac_link) 2>conftest.er1
3903   ac_status=$?
3904   grep -v '^ *+' conftest.er1 >conftest.err
3905   rm -f conftest.er1
3906   cat conftest.err >&5
3907   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3908   (exit $ac_status); } &&
3909          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3910   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3911   (eval $ac_try) 2>&5
3912   ac_status=$?
3913   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3914   (exit $ac_status); }; } &&
3915          { ac_try='test -s conftest$ac_exeext'
3916   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3917   (eval $ac_try) 2>&5
3918   ac_status=$?
3919   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3920   (exit $ac_status); }; }; then
3921   ac_cv_lib_bsd_gethostbyname=yes
3922 else
3923   echo "$as_me: failed program was:" >&5
3924 sed 's/^/| /' conftest.$ac_ext >&5
3925
3926 ac_cv_lib_bsd_gethostbyname=no
3927 fi
3928 rm -f conftest.err conftest.$ac_objext \
3929       conftest$ac_exeext conftest.$ac_ext
3930 LIBS=$ac_check_lib_save_LIBS
3931 fi
3932 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
3933 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
3934 if test $ac_cv_lib_bsd_gethostbyname = yes; then
3935   X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
3936 fi
3937
3938       fi
3939     fi
3940
3941     # lieder@skyler.mavd.honeywell.com says without -lsocket,
3942     # socket/setsockopt and other routines are undefined under SCO ODT
3943     # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
3944     # on later versions), says Simon Leinen: it contains gethostby*
3945     # variants that don't use the name server (or something).  -lsocket
3946     # must be given before -lnsl if both are needed.  We assume that
3947     # if connect needs -lnsl, so does gethostbyname.
3948     echo "$as_me:$LINENO: checking for connect" >&5
3949 echo $ECHO_N "checking for connect... $ECHO_C" >&6
3950 if test "${ac_cv_func_connect+set}" = set; then
3951   echo $ECHO_N "(cached) $ECHO_C" >&6
3952 else
3953   cat >conftest.$ac_ext <<_ACEOF
3954 /* confdefs.h.  */
3955 _ACEOF
3956 cat confdefs.h >>conftest.$ac_ext
3957 cat >>conftest.$ac_ext <<_ACEOF
3958 /* end confdefs.h.  */
3959 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
3960    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
3961 #define connect innocuous_connect
3962
3963 /* System header to define __stub macros and hopefully few prototypes,
3964     which can conflict with char connect (); below.
3965     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3966     <limits.h> exists even on freestanding compilers.  */
3967
3968 #ifdef __STDC__
3969 # include <limits.h>
3970 #else
3971 # include <assert.h>
3972 #endif
3973
3974 #undef connect
3975
3976 /* Override any gcc2 internal prototype to avoid an error.  */
3977 #ifdef __cplusplus
3978 extern "C"
3979 {
3980 #endif
3981 /* We use char because int might match the return type of a gcc2
3982    builtin and then its argument prototype would still apply.  */
3983 char connect ();
3984 /* The GNU C library defines this for functions which it implements
3985     to always fail with ENOSYS.  Some functions are actually named
3986     something starting with __ and the normal name is an alias.  */
3987 #if defined (__stub_connect) || defined (__stub___connect)
3988 choke me
3989 #else
3990 char (*f) () = connect;
3991 #endif
3992 #ifdef __cplusplus
3993 }
3994 #endif
3995
3996 int
3997 main ()
3998 {
3999 return f != connect;
4000   ;
4001   return 0;
4002 }
4003 _ACEOF
4004 rm -f conftest.$ac_objext conftest$ac_exeext
4005 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4006   (eval $ac_link) 2>conftest.er1
4007   ac_status=$?
4008   grep -v '^ *+' conftest.er1 >conftest.err
4009   rm -f conftest.er1
4010   cat conftest.err >&5
4011   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4012   (exit $ac_status); } &&
4013          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4014   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4015   (eval $ac_try) 2>&5
4016   ac_status=$?
4017   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4018   (exit $ac_status); }; } &&
4019          { ac_try='test -s conftest$ac_exeext'
4020   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4021   (eval $ac_try) 2>&5
4022   ac_status=$?
4023   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4024   (exit $ac_status); }; }; then
4025   ac_cv_func_connect=yes
4026 else
4027   echo "$as_me: failed program was:" >&5
4028 sed 's/^/| /' conftest.$ac_ext >&5
4029
4030 ac_cv_func_connect=no
4031 fi
4032 rm -f conftest.err conftest.$ac_objext \
4033       conftest$ac_exeext conftest.$ac_ext
4034 fi
4035 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
4036 echo "${ECHO_T}$ac_cv_func_connect" >&6
4037
4038     if test $ac_cv_func_connect = no; then
4039       echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
4040 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
4041 if test "${ac_cv_lib_socket_connect+set}" = set; then
4042   echo $ECHO_N "(cached) $ECHO_C" >&6
4043 else
4044   ac_check_lib_save_LIBS=$LIBS
4045 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
4046 cat >conftest.$ac_ext <<_ACEOF
4047 /* confdefs.h.  */
4048 _ACEOF
4049 cat confdefs.h >>conftest.$ac_ext
4050 cat >>conftest.$ac_ext <<_ACEOF
4051 /* end confdefs.h.  */
4052
4053 /* Override any gcc2 internal prototype to avoid an error.  */
4054 #ifdef __cplusplus
4055 extern "C"
4056 #endif
4057 /* We use char because int might match the return type of a gcc2
4058    builtin and then its argument prototype would still apply.  */
4059 char connect ();
4060 int
4061 main ()
4062 {
4063 connect ();
4064   ;
4065   return 0;
4066 }
4067 _ACEOF
4068 rm -f conftest.$ac_objext conftest$ac_exeext
4069 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4070   (eval $ac_link) 2>conftest.er1
4071   ac_status=$?
4072   grep -v '^ *+' conftest.er1 >conftest.err
4073   rm -f conftest.er1
4074   cat conftest.err >&5
4075   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4076   (exit $ac_status); } &&
4077          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4078   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4079   (eval $ac_try) 2>&5
4080   ac_status=$?
4081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4082   (exit $ac_status); }; } &&
4083          { ac_try='test -s conftest$ac_exeext'
4084   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4085   (eval $ac_try) 2>&5
4086   ac_status=$?
4087   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4088   (exit $ac_status); }; }; then
4089   ac_cv_lib_socket_connect=yes
4090 else
4091   echo "$as_me: failed program was:" >&5
4092 sed 's/^/| /' conftest.$ac_ext >&5
4093
4094 ac_cv_lib_socket_connect=no
4095 fi
4096 rm -f conftest.err conftest.$ac_objext \
4097       conftest$ac_exeext conftest.$ac_ext
4098 LIBS=$ac_check_lib_save_LIBS
4099 fi
4100 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
4101 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
4102 if test $ac_cv_lib_socket_connect = yes; then
4103   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
4104 fi
4105
4106     fi
4107
4108     # Guillermo Gomez says -lposix is necessary on A/UX.
4109     echo "$as_me:$LINENO: checking for remove" >&5
4110 echo $ECHO_N "checking for remove... $ECHO_C" >&6
4111 if test "${ac_cv_func_remove+set}" = set; then
4112   echo $ECHO_N "(cached) $ECHO_C" >&6
4113 else
4114   cat >conftest.$ac_ext <<_ACEOF
4115 /* confdefs.h.  */
4116 _ACEOF
4117 cat confdefs.h >>conftest.$ac_ext
4118 cat >>conftest.$ac_ext <<_ACEOF
4119 /* end confdefs.h.  */
4120 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
4121    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
4122 #define remove innocuous_remove
4123
4124 /* System header to define __stub macros and hopefully few prototypes,
4125     which can conflict with char remove (); below.
4126     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4127     <limits.h> exists even on freestanding compilers.  */
4128
4129 #ifdef __STDC__
4130 # include <limits.h>
4131 #else
4132 # include <assert.h>
4133 #endif
4134
4135 #undef remove
4136
4137 /* Override any gcc2 internal prototype to avoid an error.  */
4138 #ifdef __cplusplus
4139 extern "C"
4140 {
4141 #endif
4142 /* We use char because int might match the return type of a gcc2
4143    builtin and then its argument prototype would still apply.  */
4144 char remove ();
4145 /* The GNU C library defines this for functions which it implements
4146     to always fail with ENOSYS.  Some functions are actually named
4147     something starting with __ and the normal name is an alias.  */
4148 #if defined (__stub_remove) || defined (__stub___remove)
4149 choke me
4150 #else
4151 char (*f) () = remove;
4152 #endif
4153 #ifdef __cplusplus
4154 }
4155 #endif
4156
4157 int
4158 main ()
4159 {
4160 return f != remove;
4161   ;
4162   return 0;
4163 }
4164 _ACEOF
4165 rm -f conftest.$ac_objext conftest$ac_exeext
4166 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4167   (eval $ac_link) 2>conftest.er1
4168   ac_status=$?
4169   grep -v '^ *+' conftest.er1 >conftest.err
4170   rm -f conftest.er1
4171   cat conftest.err >&5
4172   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4173   (exit $ac_status); } &&
4174          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4175   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4176   (eval $ac_try) 2>&5
4177   ac_status=$?
4178   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4179   (exit $ac_status); }; } &&
4180          { ac_try='test -s conftest$ac_exeext'
4181   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4182   (eval $ac_try) 2>&5
4183   ac_status=$?
4184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4185   (exit $ac_status); }; }; then
4186   ac_cv_func_remove=yes
4187 else
4188   echo "$as_me: failed program was:" >&5
4189 sed 's/^/| /' conftest.$ac_ext >&5
4190
4191 ac_cv_func_remove=no
4192 fi
4193 rm -f conftest.err conftest.$ac_objext \
4194       conftest$ac_exeext conftest.$ac_ext
4195 fi
4196 echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
4197 echo "${ECHO_T}$ac_cv_func_remove" >&6
4198
4199     if test $ac_cv_func_remove = no; then
4200       echo "$as_me:$LINENO: checking for remove in -lposix" >&5
4201 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
4202 if test "${ac_cv_lib_posix_remove+set}" = set; then
4203   echo $ECHO_N "(cached) $ECHO_C" >&6
4204 else
4205   ac_check_lib_save_LIBS=$LIBS
4206 LIBS="-lposix  $LIBS"
4207 cat >conftest.$ac_ext <<_ACEOF
4208 /* confdefs.h.  */
4209 _ACEOF
4210 cat confdefs.h >>conftest.$ac_ext
4211 cat >>conftest.$ac_ext <<_ACEOF
4212 /* end confdefs.h.  */
4213
4214 /* Override any gcc2 internal prototype to avoid an error.  */
4215 #ifdef __cplusplus
4216 extern "C"
4217 #endif
4218 /* We use char because int might match the return type of a gcc2
4219    builtin and then its argument prototype would still apply.  */
4220 char remove ();
4221 int
4222 main ()
4223 {
4224 remove ();
4225   ;
4226   return 0;
4227 }
4228 _ACEOF
4229 rm -f conftest.$ac_objext conftest$ac_exeext
4230 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4231   (eval $ac_link) 2>conftest.er1
4232   ac_status=$?
4233   grep -v '^ *+' conftest.er1 >conftest.err
4234   rm -f conftest.er1
4235   cat conftest.err >&5
4236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4237   (exit $ac_status); } &&
4238          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4239   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4240   (eval $ac_try) 2>&5
4241   ac_status=$?
4242   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4243   (exit $ac_status); }; } &&
4244          { ac_try='test -s conftest$ac_exeext'
4245   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4246   (eval $ac_try) 2>&5
4247   ac_status=$?
4248   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4249   (exit $ac_status); }; }; then
4250   ac_cv_lib_posix_remove=yes
4251 else
4252   echo "$as_me: failed program was:" >&5
4253 sed 's/^/| /' conftest.$ac_ext >&5
4254
4255 ac_cv_lib_posix_remove=no
4256 fi
4257 rm -f conftest.err conftest.$ac_objext \
4258       conftest$ac_exeext conftest.$ac_ext
4259 LIBS=$ac_check_lib_save_LIBS
4260 fi
4261 echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
4262 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
4263 if test $ac_cv_lib_posix_remove = yes; then
4264   X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
4265 fi
4266
4267     fi
4268
4269     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
4270     echo "$as_me:$LINENO: checking for shmat" >&5
4271 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
4272 if test "${ac_cv_func_shmat+set}" = set; then
4273   echo $ECHO_N "(cached) $ECHO_C" >&6
4274 else
4275   cat >conftest.$ac_ext <<_ACEOF
4276 /* confdefs.h.  */
4277 _ACEOF
4278 cat confdefs.h >>conftest.$ac_ext
4279 cat >>conftest.$ac_ext <<_ACEOF
4280 /* end confdefs.h.  */
4281 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
4282    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
4283 #define shmat innocuous_shmat
4284
4285 /* System header to define __stub macros and hopefully few prototypes,
4286     which can conflict with char shmat (); below.
4287     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4288     <limits.h> exists even on freestanding compilers.  */
4289
4290 #ifdef __STDC__
4291 # include <limits.h>
4292 #else
4293 # include <assert.h>
4294 #endif
4295
4296 #undef shmat
4297
4298 /* Override any gcc2 internal prototype to avoid an error.  */
4299 #ifdef __cplusplus
4300 extern "C"
4301 {
4302 #endif
4303 /* We use char because int might match the return type of a gcc2
4304    builtin and then its argument prototype would still apply.  */
4305 char shmat ();
4306 /* The GNU C library defines this for functions which it implements
4307     to always fail with ENOSYS.  Some functions are actually named
4308     something starting with __ and the normal name is an alias.  */
4309 #if defined (__stub_shmat) || defined (__stub___shmat)
4310 choke me
4311 #else
4312 char (*f) () = shmat;
4313 #endif
4314 #ifdef __cplusplus
4315 }
4316 #endif
4317
4318 int
4319 main ()
4320 {
4321 return f != shmat;
4322   ;
4323   return 0;
4324 }
4325 _ACEOF
4326 rm -f conftest.$ac_objext conftest$ac_exeext
4327 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4328   (eval $ac_link) 2>conftest.er1
4329   ac_status=$?
4330   grep -v '^ *+' conftest.er1 >conftest.err
4331   rm -f conftest.er1
4332   cat conftest.err >&5
4333   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4334   (exit $ac_status); } &&
4335          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4336   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4337   (eval $ac_try) 2>&5
4338   ac_status=$?
4339   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4340   (exit $ac_status); }; } &&
4341          { ac_try='test -s conftest$ac_exeext'
4342   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4343   (eval $ac_try) 2>&5
4344   ac_status=$?
4345   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4346   (exit $ac_status); }; }; then
4347   ac_cv_func_shmat=yes
4348 else
4349   echo "$as_me: failed program was:" >&5
4350 sed 's/^/| /' conftest.$ac_ext >&5
4351
4352 ac_cv_func_shmat=no
4353 fi
4354 rm -f conftest.err conftest.$ac_objext \
4355       conftest$ac_exeext conftest.$ac_ext
4356 fi
4357 echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
4358 echo "${ECHO_T}$ac_cv_func_shmat" >&6
4359
4360     if test $ac_cv_func_shmat = no; then
4361       echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
4362 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
4363 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
4364   echo $ECHO_N "(cached) $ECHO_C" >&6
4365 else
4366   ac_check_lib_save_LIBS=$LIBS
4367 LIBS="-lipc  $LIBS"
4368 cat >conftest.$ac_ext <<_ACEOF
4369 /* confdefs.h.  */
4370 _ACEOF
4371 cat confdefs.h >>conftest.$ac_ext
4372 cat >>conftest.$ac_ext <<_ACEOF
4373 /* end confdefs.h.  */
4374
4375 /* Override any gcc2 internal prototype to avoid an error.  */
4376 #ifdef __cplusplus
4377 extern "C"
4378 #endif
4379 /* We use char because int might match the return type of a gcc2
4380    builtin and then its argument prototype would still apply.  */
4381 char shmat ();
4382 int
4383 main ()
4384 {
4385 shmat ();
4386   ;
4387   return 0;
4388 }
4389 _ACEOF
4390 rm -f conftest.$ac_objext conftest$ac_exeext
4391 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4392   (eval $ac_link) 2>conftest.er1
4393   ac_status=$?
4394   grep -v '^ *+' conftest.er1 >conftest.err
4395   rm -f conftest.er1
4396   cat conftest.err >&5
4397   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4398   (exit $ac_status); } &&
4399          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4400   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4401   (eval $ac_try) 2>&5
4402   ac_status=$?
4403   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4404   (exit $ac_status); }; } &&
4405          { ac_try='test -s conftest$ac_exeext'
4406   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4407   (eval $ac_try) 2>&5
4408   ac_status=$?
4409   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4410   (exit $ac_status); }; }; then
4411   ac_cv_lib_ipc_shmat=yes
4412 else
4413   echo "$as_me: failed program was:" >&5
4414 sed 's/^/| /' conftest.$ac_ext >&5
4415
4416 ac_cv_lib_ipc_shmat=no
4417 fi
4418 rm -f conftest.err conftest.$ac_objext \
4419       conftest$ac_exeext conftest.$ac_ext
4420 LIBS=$ac_check_lib_save_LIBS
4421 fi
4422 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
4423 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
4424 if test $ac_cv_lib_ipc_shmat = yes; then
4425   X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
4426 fi
4427
4428     fi
4429   fi
4430
4431   # Check for libraries that X11R6 Xt/Xaw programs need.
4432   ac_save_LDFLAGS=$LDFLAGS
4433   test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
4434   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
4435   # check for ICE first), but we must link in the order -lSM -lICE or
4436   # we get undefined symbols.  So assume we have SM if we have ICE.
4437   # These have to be linked with before -lX11, unlike the other
4438   # libraries we check for below, so use a different variable.
4439   # John Interrante, Karl Berry
4440   echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
4441 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
4442 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
4443   echo $ECHO_N "(cached) $ECHO_C" >&6
4444 else
4445   ac_check_lib_save_LIBS=$LIBS
4446 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
4447 cat >conftest.$ac_ext <<_ACEOF
4448 /* confdefs.h.  */
4449 _ACEOF
4450 cat confdefs.h >>conftest.$ac_ext
4451 cat >>conftest.$ac_ext <<_ACEOF
4452 /* end confdefs.h.  */
4453
4454 /* Override any gcc2 internal prototype to avoid an error.  */
4455 #ifdef __cplusplus
4456 extern "C"
4457 #endif
4458 /* We use char because int might match the return type of a gcc2
4459    builtin and then its argument prototype would still apply.  */
4460 char IceConnectionNumber ();
4461 int
4462 main ()
4463 {
4464 IceConnectionNumber ();
4465   ;
4466   return 0;
4467 }
4468 _ACEOF
4469 rm -f conftest.$ac_objext conftest$ac_exeext
4470 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4471   (eval $ac_link) 2>conftest.er1
4472   ac_status=$?
4473   grep -v '^ *+' conftest.er1 >conftest.err
4474   rm -f conftest.er1
4475   cat conftest.err >&5
4476   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4477   (exit $ac_status); } &&
4478          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4479   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4480   (eval $ac_try) 2>&5
4481   ac_status=$?
4482   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4483   (exit $ac_status); }; } &&
4484          { ac_try='test -s conftest$ac_exeext'
4485   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4486   (eval $ac_try) 2>&5
4487   ac_status=$?
4488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4489   (exit $ac_status); }; }; then
4490   ac_cv_lib_ICE_IceConnectionNumber=yes
4491 else
4492   echo "$as_me: failed program was:" >&5
4493 sed 's/^/| /' conftest.$ac_ext >&5
4494
4495 ac_cv_lib_ICE_IceConnectionNumber=no
4496 fi
4497 rm -f conftest.err conftest.$ac_objext \
4498       conftest$ac_exeext conftest.$ac_ext
4499 LIBS=$ac_check_lib_save_LIBS
4500 fi
4501 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
4502 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
4503 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
4504   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
4505 fi
4506
4507   LDFLAGS=$ac_save_LDFLAGS
4508
4509 fi
4510
4511 for ac_prog in flex lex
4512 do
4513   # Extract the first word of "$ac_prog", so it can be a program name with args.
4514 set dummy $ac_prog; ac_word=$2
4515 echo "$as_me:$LINENO: checking for $ac_word" >&5
4516 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4517 if test "${ac_cv_prog_LEX+set}" = set; then
4518   echo $ECHO_N "(cached) $ECHO_C" >&6
4519 else
4520   if test -n "$LEX"; then
4521   ac_cv_prog_LEX="$LEX" # Let the user override the test.
4522 else
4523 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4524 for as_dir in $PATH
4525 do
4526   IFS=$as_save_IFS
4527   test -z "$as_dir" && as_dir=.
4528   for ac_exec_ext in '' $ac_executable_extensions; do
4529   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4530     ac_cv_prog_LEX="$ac_prog"
4531     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4532     break 2
4533   fi
4534 done
4535 done
4536
4537 fi
4538 fi
4539 LEX=$ac_cv_prog_LEX
4540 if test -n "$LEX"; then
4541   echo "$as_me:$LINENO: result: $LEX" >&5
4542 echo "${ECHO_T}$LEX" >&6
4543 else
4544   echo "$as_me:$LINENO: result: no" >&5
4545 echo "${ECHO_T}no" >&6
4546 fi
4547
4548   test -n "$LEX" && break
4549 done
4550 test -n "$LEX" || LEX=":"
4551
4552 if test -z "$LEXLIB"
4553 then
4554   echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
4555 echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
4556 if test "${ac_cv_lib_fl_yywrap+set}" = set; then
4557   echo $ECHO_N "(cached) $ECHO_C" >&6
4558 else
4559   ac_check_lib_save_LIBS=$LIBS
4560 LIBS="-lfl  $LIBS"
4561 cat >conftest.$ac_ext <<_ACEOF
4562 /* confdefs.h.  */
4563 _ACEOF
4564 cat confdefs.h >>conftest.$ac_ext
4565 cat >>conftest.$ac_ext <<_ACEOF
4566 /* end confdefs.h.  */
4567
4568 /* Override any gcc2 internal prototype to avoid an error.  */
4569 #ifdef __cplusplus
4570 extern "C"
4571 #endif
4572 /* We use char because int might match the return type of a gcc2
4573    builtin and then its argument prototype would still apply.  */
4574 char yywrap ();
4575 int
4576 main ()
4577 {
4578 yywrap ();
4579   ;
4580   return 0;
4581 }
4582 _ACEOF
4583 rm -f conftest.$ac_objext conftest$ac_exeext
4584 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4585   (eval $ac_link) 2>conftest.er1
4586   ac_status=$?
4587   grep -v '^ *+' conftest.er1 >conftest.err
4588   rm -f conftest.er1
4589   cat conftest.err >&5
4590   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4591   (exit $ac_status); } &&
4592          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4593   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4594   (eval $ac_try) 2>&5
4595   ac_status=$?
4596   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4597   (exit $ac_status); }; } &&
4598          { ac_try='test -s conftest$ac_exeext'
4599   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4600   (eval $ac_try) 2>&5
4601   ac_status=$?
4602   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4603   (exit $ac_status); }; }; then
4604   ac_cv_lib_fl_yywrap=yes
4605 else
4606   echo "$as_me: failed program was:" >&5
4607 sed 's/^/| /' conftest.$ac_ext >&5
4608
4609 ac_cv_lib_fl_yywrap=no
4610 fi
4611 rm -f conftest.err conftest.$ac_objext \
4612       conftest$ac_exeext conftest.$ac_ext
4613 LIBS=$ac_check_lib_save_LIBS
4614 fi
4615 echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
4616 echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
4617 if test $ac_cv_lib_fl_yywrap = yes; then
4618   LEXLIB="-lfl"
4619 else
4620   echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
4621 echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
4622 if test "${ac_cv_lib_l_yywrap+set}" = set; then
4623   echo $ECHO_N "(cached) $ECHO_C" >&6
4624 else
4625   ac_check_lib_save_LIBS=$LIBS
4626 LIBS="-ll  $LIBS"
4627 cat >conftest.$ac_ext <<_ACEOF
4628 /* confdefs.h.  */
4629 _ACEOF
4630 cat confdefs.h >>conftest.$ac_ext
4631 cat >>conftest.$ac_ext <<_ACEOF
4632 /* end confdefs.h.  */
4633
4634 /* Override any gcc2 internal prototype to avoid an error.  */
4635 #ifdef __cplusplus
4636 extern "C"
4637 #endif
4638 /* We use char because int might match the return type of a gcc2
4639    builtin and then its argument prototype would still apply.  */
4640 char yywrap ();
4641 int
4642 main ()
4643 {
4644 yywrap ();
4645   ;
4646   return 0;
4647 }
4648 _ACEOF
4649 rm -f conftest.$ac_objext conftest$ac_exeext
4650 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4651   (eval $ac_link) 2>conftest.er1
4652   ac_status=$?
4653   grep -v '^ *+' conftest.er1 >conftest.err
4654   rm -f conftest.er1
4655   cat conftest.err >&5
4656   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4657   (exit $ac_status); } &&
4658          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4659   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4660   (eval $ac_try) 2>&5
4661   ac_status=$?
4662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4663   (exit $ac_status); }; } &&
4664          { ac_try='test -s conftest$ac_exeext'
4665   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4666   (eval $ac_try) 2>&5
4667   ac_status=$?
4668   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4669   (exit $ac_status); }; }; then
4670   ac_cv_lib_l_yywrap=yes
4671 else
4672   echo "$as_me: failed program was:" >&5
4673 sed 's/^/| /' conftest.$ac_ext >&5
4674
4675 ac_cv_lib_l_yywrap=no
4676 fi
4677 rm -f conftest.err conftest.$ac_objext \
4678       conftest$ac_exeext conftest.$ac_ext
4679 LIBS=$ac_check_lib_save_LIBS
4680 fi
4681 echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
4682 echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
4683 if test $ac_cv_lib_l_yywrap = yes; then
4684   LEXLIB="-ll"
4685 fi
4686
4687 fi
4688
4689 fi
4690
4691 if test "x$LEX" != "x:"; then
4692   echo "$as_me:$LINENO: checking lex output file root" >&5
4693 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
4694 if test "${ac_cv_prog_lex_root+set}" = set; then
4695   echo $ECHO_N "(cached) $ECHO_C" >&6
4696 else
4697   # The minimal lex program is just a single line: %%.  But some broken lexes
4698 # (Solaris, I think it was) want two %% lines, so accommodate them.
4699 cat >conftest.l <<_ACEOF
4700 %%
4701 %%
4702 _ACEOF
4703 { (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
4704   (eval $LEX conftest.l) 2>&5
4705   ac_status=$?
4706   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4707   (exit $ac_status); }
4708 if test -f lex.yy.c; then
4709   ac_cv_prog_lex_root=lex.yy
4710 elif test -f lexyy.c; then
4711   ac_cv_prog_lex_root=lexyy
4712 else
4713   { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
4714 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
4715    { (exit 1); exit 1; }; }
4716 fi
4717 fi
4718 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
4719 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
4720 rm -f conftest.l
4721 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
4722
4723 echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
4724 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
4725 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
4726   echo $ECHO_N "(cached) $ECHO_C" >&6
4727 else
4728   # POSIX says lex can declare yytext either as a pointer or an array; the
4729 # default is implementation-dependent. Figure out which it is, since
4730 # not all implementations provide the %pointer and %array declarations.
4731 ac_cv_prog_lex_yytext_pointer=no
4732 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
4733 ac_save_LIBS=$LIBS
4734 LIBS="$LIBS $LEXLIB"
4735 cat >conftest.$ac_ext <<_ACEOF
4736 `cat $LEX_OUTPUT_ROOT.c`
4737 _ACEOF
4738 rm -f conftest.$ac_objext conftest$ac_exeext
4739 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4740   (eval $ac_link) 2>conftest.er1
4741   ac_status=$?
4742   grep -v '^ *+' conftest.er1 >conftest.err
4743   rm -f conftest.er1
4744   cat conftest.err >&5
4745   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4746   (exit $ac_status); } &&
4747          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4748   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4749   (eval $ac_try) 2>&5
4750   ac_status=$?
4751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4752   (exit $ac_status); }; } &&
4753          { ac_try='test -s conftest$ac_exeext'
4754   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4755   (eval $ac_try) 2>&5
4756   ac_status=$?
4757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4758   (exit $ac_status); }; }; then
4759   ac_cv_prog_lex_yytext_pointer=yes
4760 else
4761   echo "$as_me: failed program was:" >&5
4762 sed 's/^/| /' conftest.$ac_ext >&5
4763
4764 fi
4765 rm -f conftest.err conftest.$ac_objext \
4766       conftest$ac_exeext conftest.$ac_ext
4767 LIBS=$ac_save_LIBS
4768 rm -f "${LEX_OUTPUT_ROOT}.c"
4769
4770 fi
4771 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
4772 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
4773 if test $ac_cv_prog_lex_yytext_pointer = yes; then
4774
4775 cat >>confdefs.h <<\_ACEOF
4776 #define YYTEXT_POINTER 1
4777 _ACEOF
4778
4779 fi
4780
4781 fi
4782
4783 for ac_prog in $LEX flex lex
4784 do
4785   # Extract the first word of "$ac_prog", so it can be a program name with args.
4786 set dummy $ac_prog; ac_word=$2
4787 echo "$as_me:$LINENO: checking for $ac_word" >&5
4788 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4789 if test "${ac_cv_prog_XLEX+set}" = set; then
4790   echo $ECHO_N "(cached) $ECHO_C" >&6
4791 else
4792   if test -n "$XLEX"; then
4793   ac_cv_prog_XLEX="$XLEX" # Let the user override the test.
4794 else
4795 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4796 for as_dir in $PATH
4797 do
4798   IFS=$as_save_IFS
4799   test -z "$as_dir" && as_dir=.
4800   for ac_exec_ext in '' $ac_executable_extensions; do
4801   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4802     ac_cv_prog_XLEX="$ac_prog"
4803     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4804     break 2
4805   fi
4806 done
4807 done
4808
4809 fi
4810 fi
4811 XLEX=$ac_cv_prog_XLEX
4812 if test -n "$XLEX"; then
4813   echo "$as_me:$LINENO: result: $XLEX" >&5
4814 echo "${ECHO_T}$XLEX" >&6
4815 else
4816   echo "$as_me:$LINENO: result: no" >&5
4817 echo "${ECHO_T}no" >&6
4818 fi
4819
4820   test -n "$XLEX" && break
4821 done
4822 test -n "$XLEX" || XLEX="none"
4823
4824 if test "$XLEX" = "none"
4825 then
4826   { { echo "$as_me:$LINENO: error: no suitable lex found. Please install the 'flex' package." >&5
4827 echo "$as_me: error: no suitable lex found. Please install the 'flex' package." >&2;}
4828    { (exit 1); exit 1; }; }
4829 fi
4830
4831 for ac_prog in bison
4832 do
4833   # Extract the first word of "$ac_prog", so it can be a program name with args.
4834 set dummy $ac_prog; ac_word=$2
4835 echo "$as_me:$LINENO: checking for $ac_word" >&5
4836 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4837 if test "${ac_cv_prog_BISON+set}" = set; then
4838   echo $ECHO_N "(cached) $ECHO_C" >&6
4839 else
4840   if test -n "$BISON"; then
4841   ac_cv_prog_BISON="$BISON" # Let the user override the test.
4842 else
4843 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4844 for as_dir in $PATH
4845 do
4846   IFS=$as_save_IFS
4847   test -z "$as_dir" && as_dir=.
4848   for ac_exec_ext in '' $ac_executable_extensions; do
4849   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4850     ac_cv_prog_BISON="$ac_prog"
4851     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4852     break 2
4853   fi
4854 done
4855 done
4856
4857 fi
4858 fi
4859 BISON=$ac_cv_prog_BISON
4860 if test -n "$BISON"; then
4861   echo "$as_me:$LINENO: result: $BISON" >&5
4862 echo "${ECHO_T}$BISON" >&6
4863 else
4864   echo "$as_me:$LINENO: result: no" >&5
4865 echo "${ECHO_T}no" >&6
4866 fi
4867
4868   test -n "$BISON" && break
4869 done
4870 test -n "$BISON" || BISON="none"
4871
4872 if test "$BISON" = "none"
4873 then
4874   { { echo "$as_me:$LINENO: error: no suitable bison found. Please install the 'bison' package." >&5
4875 echo "$as_me: error: no suitable bison found. Please install the 'bison' package." >&2;}
4876    { (exit 1); exit 1; }; }
4877 fi
4878
4879 if test -n "$ac_tool_prefix"; then
4880   for ac_prog in gas as
4881   do
4882     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4883 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4884 echo "$as_me:$LINENO: checking for $ac_word" >&5
4885 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4886 if test "${ac_cv_prog_AS+set}" = set; then
4887   echo $ECHO_N "(cached) $ECHO_C" >&6
4888 else
4889   if test -n "$AS"; then
4890   ac_cv_prog_AS="$AS" # Let the user override the test.
4891 else
4892 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4893 for as_dir in $PATH
4894 do
4895   IFS=$as_save_IFS
4896   test -z "$as_dir" && as_dir=.
4897   for ac_exec_ext in '' $ac_executable_extensions; do
4898   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4899     ac_cv_prog_AS="$ac_tool_prefix$ac_prog"
4900     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4901     break 2
4902   fi
4903 done
4904 done
4905
4906 fi
4907 fi
4908 AS=$ac_cv_prog_AS
4909 if test -n "$AS"; then
4910   echo "$as_me:$LINENO: result: $AS" >&5
4911 echo "${ECHO_T}$AS" >&6
4912 else
4913   echo "$as_me:$LINENO: result: no" >&5
4914 echo "${ECHO_T}no" >&6
4915 fi
4916
4917     test -n "$AS" && break
4918   done
4919 fi
4920 if test -z "$AS"; then
4921   ac_ct_AS=$AS
4922   for ac_prog in gas as
4923 do
4924   # Extract the first word of "$ac_prog", so it can be a program name with args.
4925 set dummy $ac_prog; ac_word=$2
4926 echo "$as_me:$LINENO: checking for $ac_word" >&5
4927 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4928 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
4929   echo $ECHO_N "(cached) $ECHO_C" >&6
4930 else
4931   if test -n "$ac_ct_AS"; then
4932   ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
4933 else
4934 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4935 for as_dir in $PATH
4936 do
4937   IFS=$as_save_IFS
4938   test -z "$as_dir" && as_dir=.
4939   for ac_exec_ext in '' $ac_executable_extensions; do
4940   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4941     ac_cv_prog_ac_ct_AS="$ac_prog"
4942     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4943     break 2
4944   fi
4945 done
4946 done
4947
4948 fi
4949 fi
4950 ac_ct_AS=$ac_cv_prog_ac_ct_AS
4951 if test -n "$ac_ct_AS"; then
4952   echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
4953 echo "${ECHO_T}$ac_ct_AS" >&6
4954 else
4955   echo "$as_me:$LINENO: result: no" >&5
4956 echo "${ECHO_T}no" >&6
4957 fi
4958
4959   test -n "$ac_ct_AS" && break
4960 done
4961 test -n "$ac_ct_AS" || ac_ct_AS="as"
4962
4963   AS=$ac_ct_AS
4964 fi
4965
4966 if test -n "$ac_tool_prefix"; then
4967   # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
4968 set dummy ${ac_tool_prefix}ld; ac_word=$2
4969 echo "$as_me:$LINENO: checking for $ac_word" >&5
4970 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4971 if test "${ac_cv_prog_LD+set}" = set; then
4972   echo $ECHO_N "(cached) $ECHO_C" >&6
4973 else
4974   if test -n "$LD"; then
4975   ac_cv_prog_LD="$LD" # Let the user override the test.
4976 else
4977 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4978 for as_dir in $PATH
4979 do
4980   IFS=$as_save_IFS
4981   test -z "$as_dir" && as_dir=.
4982   for ac_exec_ext in '' $ac_executable_extensions; do
4983   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4984     ac_cv_prog_LD="${ac_tool_prefix}ld"
4985     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4986     break 2
4987   fi
4988 done
4989 done
4990
4991 fi
4992 fi
4993 LD=$ac_cv_prog_LD
4994 if test -n "$LD"; then
4995   echo "$as_me:$LINENO: result: $LD" >&5
4996 echo "${ECHO_T}$LD" >&6
4997 else
4998   echo "$as_me:$LINENO: result: no" >&5
4999 echo "${ECHO_T}no" >&6
5000 fi
5001
5002 fi
5003 if test -z "$ac_cv_prog_LD"; then
5004   ac_ct_LD=$LD
5005   # Extract the first word of "ld", so it can be a program name with args.
5006 set dummy ld; ac_word=$2
5007 echo "$as_me:$LINENO: checking for $ac_word" >&5
5008 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5009 if test "${ac_cv_prog_ac_ct_LD+set}" = set; then
5010   echo $ECHO_N "(cached) $ECHO_C" >&6
5011 else
5012   if test -n "$ac_ct_LD"; then
5013   ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test.
5014 else
5015 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5016 for as_dir in $PATH
5017 do
5018   IFS=$as_save_IFS
5019   test -z "$as_dir" && as_dir=.
5020   for ac_exec_ext in '' $ac_executable_extensions; do
5021   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5022     ac_cv_prog_ac_ct_LD="ld"
5023     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5024     break 2
5025   fi
5026 done
5027 done
5028
5029   test -z "$ac_cv_prog_ac_ct_LD" && ac_cv_prog_ac_ct_LD="ld"
5030 fi
5031 fi
5032 ac_ct_LD=$ac_cv_prog_ac_ct_LD
5033 if test -n "$ac_ct_LD"; then
5034   echo "$as_me:$LINENO: result: $ac_ct_LD" >&5
5035 echo "${ECHO_T}$ac_ct_LD" >&6
5036 else
5037   echo "$as_me:$LINENO: result: no" >&5
5038 echo "${ECHO_T}no" >&6
5039 fi
5040
5041   LD=$ac_ct_LD
5042 else
5043   LD="$ac_cv_prog_LD"
5044 fi
5045
5046 if test -n "$ac_tool_prefix"; then
5047   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5048 set dummy ${ac_tool_prefix}ar; ac_word=$2
5049 echo "$as_me:$LINENO: checking for $ac_word" >&5
5050 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5051 if test "${ac_cv_prog_AR+set}" = set; then
5052   echo $ECHO_N "(cached) $ECHO_C" >&6
5053 else
5054   if test -n "$AR"; then
5055   ac_cv_prog_AR="$AR" # Let the user override the test.
5056 else
5057 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5058 for as_dir in $PATH
5059 do
5060   IFS=$as_save_IFS
5061   test -z "$as_dir" && as_dir=.
5062   for ac_exec_ext in '' $ac_executable_extensions; do
5063   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5064     ac_cv_prog_AR="${ac_tool_prefix}ar"
5065     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5066     break 2
5067   fi
5068 done
5069 done
5070
5071 fi
5072 fi
5073 AR=$ac_cv_prog_AR
5074 if test -n "$AR"; then
5075   echo "$as_me:$LINENO: result: $AR" >&5
5076 echo "${ECHO_T}$AR" >&6
5077 else
5078   echo "$as_me:$LINENO: result: no" >&5
5079 echo "${ECHO_T}no" >&6
5080 fi
5081
5082 fi
5083 if test -z "$ac_cv_prog_AR"; then
5084   ac_ct_AR=$AR
5085   # Extract the first word of "ar", so it can be a program name with args.
5086 set dummy ar; ac_word=$2
5087 echo "$as_me:$LINENO: checking for $ac_word" >&5
5088 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5089 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5090   echo $ECHO_N "(cached) $ECHO_C" >&6
5091 else
5092   if test -n "$ac_ct_AR"; then
5093   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5094 else
5095 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5096 for as_dir in $PATH
5097 do
5098   IFS=$as_save_IFS
5099   test -z "$as_dir" && as_dir=.
5100   for ac_exec_ext in '' $ac_executable_extensions; do
5101   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5102     ac_cv_prog_ac_ct_AR="ar"
5103     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5104     break 2
5105   fi
5106 done
5107 done
5108
5109   test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar"
5110 fi
5111 fi
5112 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5113 if test -n "$ac_ct_AR"; then
5114   echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5115 echo "${ECHO_T}$ac_ct_AR" >&6
5116 else
5117   echo "$as_me:$LINENO: result: no" >&5
5118 echo "${ECHO_T}no" >&6
5119 fi
5120
5121   AR=$ac_ct_AR
5122 else
5123   AR="$ac_cv_prog_AR"
5124 fi
5125
5126 if test -n "$ac_tool_prefix"; then
5127   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5128 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5129 echo "$as_me:$LINENO: checking for $ac_word" >&5
5130 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5131 if test "${ac_cv_prog_RANLIB+set}" = set; then
5132   echo $ECHO_N "(cached) $ECHO_C" >&6
5133 else
5134   if test -n "$RANLIB"; then
5135   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5136 else
5137 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5138 for as_dir in $PATH
5139 do
5140   IFS=$as_save_IFS
5141   test -z "$as_dir" && as_dir=.
5142   for ac_exec_ext in '' $ac_executable_extensions; do
5143   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5144     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5145     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5146     break 2
5147   fi
5148 done
5149 done
5150
5151 fi
5152 fi
5153 RANLIB=$ac_cv_prog_RANLIB
5154 if test -n "$RANLIB"; then
5155   echo "$as_me:$LINENO: result: $RANLIB" >&5
5156 echo "${ECHO_T}$RANLIB" >&6
5157 else
5158   echo "$as_me:$LINENO: result: no" >&5
5159 echo "${ECHO_T}no" >&6
5160 fi
5161
5162 fi
5163 if test -z "$ac_cv_prog_RANLIB"; then
5164   ac_ct_RANLIB=$RANLIB
5165   # Extract the first word of "ranlib", so it can be a program name with args.
5166 set dummy ranlib; ac_word=$2
5167 echo "$as_me:$LINENO: checking for $ac_word" >&5
5168 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5169 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5170   echo $ECHO_N "(cached) $ECHO_C" >&6
5171 else
5172   if test -n "$ac_ct_RANLIB"; then
5173   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5174 else
5175 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5176 for as_dir in $PATH
5177 do
5178   IFS=$as_save_IFS
5179   test -z "$as_dir" && as_dir=.
5180   for ac_exec_ext in '' $ac_executable_extensions; do
5181   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5182     ac_cv_prog_ac_ct_RANLIB="ranlib"
5183     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5184     break 2
5185   fi
5186 done
5187 done
5188
5189   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5190 fi
5191 fi
5192 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5193 if test -n "$ac_ct_RANLIB"; then
5194   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5195 echo "${ECHO_T}$ac_ct_RANLIB" >&6
5196 else
5197   echo "$as_me:$LINENO: result: no" >&5
5198 echo "${ECHO_T}no" >&6
5199 fi
5200
5201   RANLIB=$ac_ct_RANLIB
5202 else
5203   RANLIB="$ac_cv_prog_RANLIB"
5204 fi
5205
5206 if test -n "$ac_tool_prefix"; then
5207   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5208 set dummy ${ac_tool_prefix}strip; ac_word=$2
5209 echo "$as_me:$LINENO: checking for $ac_word" >&5
5210 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5211 if test "${ac_cv_prog_STRIP+set}" = set; then
5212   echo $ECHO_N "(cached) $ECHO_C" >&6
5213 else
5214   if test -n "$STRIP"; then
5215   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5216 else
5217 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5218 for as_dir in $PATH
5219 do
5220   IFS=$as_save_IFS
5221   test -z "$as_dir" && as_dir=.
5222   for ac_exec_ext in '' $ac_executable_extensions; do
5223   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5224     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5225     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5226     break 2
5227   fi
5228 done
5229 done
5230
5231 fi
5232 fi
5233 STRIP=$ac_cv_prog_STRIP
5234 if test -n "$STRIP"; then
5235   echo "$as_me:$LINENO: result: $STRIP" >&5
5236 echo "${ECHO_T}$STRIP" >&6
5237 else
5238   echo "$as_me:$LINENO: result: no" >&5
5239 echo "${ECHO_T}no" >&6
5240 fi
5241
5242 fi
5243 if test -z "$ac_cv_prog_STRIP"; then
5244   ac_ct_STRIP=$STRIP
5245   # Extract the first word of "strip", so it can be a program name with args.
5246 set dummy strip; ac_word=$2
5247 echo "$as_me:$LINENO: checking for $ac_word" >&5
5248 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5249 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5250   echo $ECHO_N "(cached) $ECHO_C" >&6
5251 else
5252   if test -n "$ac_ct_STRIP"; then
5253   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5254 else
5255 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5256 for as_dir in $PATH
5257 do
5258   IFS=$as_save_IFS
5259   test -z "$as_dir" && as_dir=.
5260   for ac_exec_ext in '' $ac_executable_extensions; do
5261   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5262     ac_cv_prog_ac_ct_STRIP="strip"
5263     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5264     break 2
5265   fi
5266 done
5267 done
5268
5269   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP="strip"
5270 fi
5271 fi
5272 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5273 if test -n "$ac_ct_STRIP"; then
5274   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5275 echo "${ECHO_T}$ac_ct_STRIP" >&6
5276 else
5277   echo "$as_me:$LINENO: result: no" >&5
5278 echo "${ECHO_T}no" >&6
5279 fi
5280
5281   STRIP=$ac_ct_STRIP
5282 else
5283   STRIP="$ac_cv_prog_STRIP"
5284 fi
5285
5286 if test -n "$ac_tool_prefix"; then
5287   # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
5288 set dummy ${ac_tool_prefix}windres; ac_word=$2
5289 echo "$as_me:$LINENO: checking for $ac_word" >&5
5290 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5291 if test "${ac_cv_prog_WINDRES+set}" = set; then
5292   echo $ECHO_N "(cached) $ECHO_C" >&6
5293 else
5294   if test -n "$WINDRES"; then
5295   ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
5296 else
5297 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5298 for as_dir in $PATH
5299 do
5300   IFS=$as_save_IFS
5301   test -z "$as_dir" && as_dir=.
5302   for ac_exec_ext in '' $ac_executable_extensions; do
5303   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5304     ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
5305     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5306     break 2
5307   fi
5308 done
5309 done
5310
5311 fi
5312 fi
5313 WINDRES=$ac_cv_prog_WINDRES
5314 if test -n "$WINDRES"; then
5315   echo "$as_me:$LINENO: result: $WINDRES" >&5
5316 echo "${ECHO_T}$WINDRES" >&6
5317 else
5318   echo "$as_me:$LINENO: result: no" >&5
5319 echo "${ECHO_T}no" >&6
5320 fi
5321
5322 fi
5323 if test -z "$ac_cv_prog_WINDRES"; then
5324   ac_ct_WINDRES=$WINDRES
5325   # Extract the first word of "windres", so it can be a program name with args.
5326 set dummy windres; ac_word=$2
5327 echo "$as_me:$LINENO: checking for $ac_word" >&5
5328 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5329 if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
5330   echo $ECHO_N "(cached) $ECHO_C" >&6
5331 else
5332   if test -n "$ac_ct_WINDRES"; then
5333   ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
5334 else
5335 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5336 for as_dir in $PATH
5337 do
5338   IFS=$as_save_IFS
5339   test -z "$as_dir" && as_dir=.
5340   for ac_exec_ext in '' $ac_executable_extensions; do
5341   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5342     ac_cv_prog_ac_ct_WINDRES="windres"
5343     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5344     break 2
5345   fi
5346 done
5347 done
5348
5349   test -z "$ac_cv_prog_ac_ct_WINDRES" && ac_cv_prog_ac_ct_WINDRES="false"
5350 fi
5351 fi
5352 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
5353 if test -n "$ac_ct_WINDRES"; then
5354   echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
5355 echo "${ECHO_T}$ac_ct_WINDRES" >&6
5356 else
5357   echo "$as_me:$LINENO: result: no" >&5
5358 echo "${ECHO_T}no" >&6
5359 fi
5360
5361   WINDRES=$ac_ct_WINDRES
5362 else
5363   WINDRES="$ac_cv_prog_WINDRES"
5364 fi
5365
5366 echo "$as_me:$LINENO: checking whether ln -s works" >&5
5367 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
5368 LN_S=$as_ln_s
5369 if test "$LN_S" = "ln -s"; then
5370   echo "$as_me:$LINENO: result: yes" >&5
5371 echo "${ECHO_T}yes" >&6
5372 else
5373   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5374 echo "${ECHO_T}no, using $LN_S" >&6
5375 fi
5376
5377 echo "$as_me:$LINENO: checking whether ln works" >&5
5378 echo $ECHO_N "checking whether ln works... $ECHO_C" >&6
5379 rm -f conf$$ conf$$.file
5380 echo >conf$$.file
5381 if ln conf$$.file conf$$ 2>/dev/null; then
5382   LN=ln
5383
5384   echo "$as_me:$LINENO: result: yes" >&5
5385 echo "${ECHO_T}yes" >&6
5386 else
5387   LN="cp -p"
5388
5389   echo "$as_me:$LINENO: result: no, using $LN" >&5
5390 echo "${ECHO_T}no, using $LN" >&6
5391 fi
5392 rm -f conf$$ conf$$.file
5393 echo "$as_me:$LINENO: checking for egrep" >&5
5394 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
5395 if test "${ac_cv_prog_egrep+set}" = set; then
5396   echo $ECHO_N "(cached) $ECHO_C" >&6
5397 else
5398   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
5399     then ac_cv_prog_egrep='grep -E'
5400     else ac_cv_prog_egrep='egrep'
5401     fi
5402 fi
5403 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
5404 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
5405  EGREP=$ac_cv_prog_egrep
5406
5407
5408 # Extract the first word of "ldconfig", so it can be a program name with args.
5409 set dummy ldconfig; ac_word=$2
5410 echo "$as_me:$LINENO: checking for $ac_word" >&5
5411 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5412 if test "${ac_cv_path_LDCONFIG+set}" = set; then
5413   echo $ECHO_N "(cached) $ECHO_C" >&6
5414 else
5415   case $LDCONFIG in
5416   [\\/]* | ?:[\\/]*)
5417   ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
5418   ;;
5419   *)
5420   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5421 for as_dir in /sbin /usr/sbin $PATH
5422 do
5423   IFS=$as_save_IFS
5424   test -z "$as_dir" && as_dir=.
5425   for ac_exec_ext in '' $ac_executable_extensions; do
5426   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5427     ac_cv_path_LDCONFIG="$as_dir/$ac_word$ac_exec_ext"
5428     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5429     break 2
5430   fi
5431 done
5432 done
5433
5434   test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG="true"
5435   ;;
5436 esac
5437 fi
5438 LDCONFIG=$ac_cv_path_LDCONFIG
5439
5440 if test -n "$LDCONFIG"; then
5441   echo "$as_me:$LINENO: result: $LDCONFIG" >&5
5442 echo "${ECHO_T}$LDCONFIG" >&6
5443 else
5444   echo "$as_me:$LINENO: result: no" >&5
5445 echo "${ECHO_T}no" >&6
5446 fi
5447
5448 # Find a good install program.  We prefer a C program (faster),
5449 # so one script is as good as another.  But avoid the broken or
5450 # incompatible versions:
5451 # SysV /etc/install, /usr/sbin/install
5452 # SunOS /usr/etc/install
5453 # IRIX /sbin/install
5454 # AIX /bin/install
5455 # AmigaOS /C/install, which installs bootblocks on floppy discs
5456 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5457 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
5458 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5459 # OS/2's system install, which has a completely different semantic
5460 # ./install, which can be erroneously created by make from ./install.sh.
5461 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
5462 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
5463 if test -z "$INSTALL"; then
5464 if test "${ac_cv_path_install+set}" = set; then
5465   echo $ECHO_N "(cached) $ECHO_C" >&6
5466 else
5467   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5468 for as_dir in $PATH
5469 do
5470   IFS=$as_save_IFS
5471   test -z "$as_dir" && as_dir=.
5472   # Account for people who put trailing slashes in PATH elements.
5473 case $as_dir/ in
5474   ./ | .// | /cC/* | \
5475   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5476   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
5477   /usr/ucb/* ) ;;
5478   *)
5479     # OSF1 and SCO ODT 3.0 have their own names for install.
5480     # Don't use installbsd from OSF since it installs stuff as root
5481     # by default.
5482     for ac_prog in ginstall scoinst install; do
5483       for ac_exec_ext in '' $ac_executable_extensions; do
5484         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
5485           if test $ac_prog = install &&
5486             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5487             # AIX install.  It has an incompatible calling convention.
5488             :
5489           elif test $ac_prog = install &&
5490             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5491             # program-specific install script used by HP pwplus--don't use.
5492             :
5493           else
5494             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5495             break 3
5496           fi
5497         fi
5498       done
5499     done
5500     ;;
5501 esac
5502 done
5503
5504
5505 fi
5506   if test "${ac_cv_path_install+set}" = set; then
5507     INSTALL=$ac_cv_path_install
5508   else
5509     # As a last resort, use the slow shell script.  We don't cache a
5510     # path for INSTALL within a source directory, because that will
5511     # break other packages using the cache if that directory is
5512     # removed, or if the path is relative.
5513     INSTALL=$ac_install_sh
5514   fi
5515 fi
5516 echo "$as_me:$LINENO: result: $INSTALL" >&5
5517 echo "${ECHO_T}$INSTALL" >&6
5518
5519 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5520 # It thinks the first close brace ends the variable substitution.
5521 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5522
5523 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5524
5525 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5526
5527 case "$INSTALL" in
5528   [\\/$]* | ?:[\\/]* ) ;;
5529   *)  INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;;
5530 esac
5531
5532 for ac_prog in lclint lint
5533 do
5534   # Extract the first word of "$ac_prog", so it can be a program name with args.
5535 set dummy $ac_prog; ac_word=$2
5536 echo "$as_me:$LINENO: checking for $ac_word" >&5
5537 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5538 if test "${ac_cv_prog_LINT+set}" = set; then
5539   echo $ECHO_N "(cached) $ECHO_C" >&6
5540 else
5541   if test -n "$LINT"; then
5542   ac_cv_prog_LINT="$LINT" # Let the user override the test.
5543 else
5544 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5545 for as_dir in $PATH
5546 do
5547   IFS=$as_save_IFS
5548   test -z "$as_dir" && as_dir=.
5549   for ac_exec_ext in '' $ac_executable_extensions; do
5550   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5551     ac_cv_prog_LINT="$ac_prog"
5552     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5553     break 2
5554   fi
5555 done
5556 done
5557
5558 fi
5559 fi
5560 LINT=$ac_cv_prog_LINT
5561 if test -n "$LINT"; then
5562   echo "$as_me:$LINENO: result: $LINT" >&5
5563 echo "${ECHO_T}$LINT" >&6
5564 else
5565   echo "$as_me:$LINENO: result: no" >&5
5566 echo "${ECHO_T}no" >&6
5567 fi
5568
5569   test -n "$LINT" && break
5570 done
5571
5572 if test "$LINT" = "lint"
5573 then
5574   LINTFLAGS="$LINTFLAGS -errchk=%all,no%longptr64 -errhdr=%user -Ncheck=macro -Nlevel=4"
5575   fi
5576
5577
5578
5579 for ac_prog in fontforge
5580 do
5581   # Extract the first word of "$ac_prog", so it can be a program name with args.
5582 set dummy $ac_prog; ac_word=$2
5583 echo "$as_me:$LINENO: checking for $ac_word" >&5
5584 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5585 if test "${ac_cv_prog_FONTFORGE+set}" = set; then
5586   echo $ECHO_N "(cached) $ECHO_C" >&6
5587 else
5588   if test -n "$FONTFORGE"; then
5589   ac_cv_prog_FONTFORGE="$FONTFORGE" # Let the user override the test.
5590 else
5591 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5592 for as_dir in $PATH
5593 do
5594   IFS=$as_save_IFS
5595   test -z "$as_dir" && as_dir=.
5596   for ac_exec_ext in '' $ac_executable_extensions; do
5597   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5598     ac_cv_prog_FONTFORGE="$ac_prog"
5599     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5600     break 2
5601   fi
5602 done
5603 done
5604
5605 fi
5606 fi
5607 FONTFORGE=$ac_cv_prog_FONTFORGE
5608 if test -n "$FONTFORGE"; then
5609   echo "$as_me:$LINENO: result: $FONTFORGE" >&5
5610 echo "${ECHO_T}$FONTFORGE" >&6
5611 else
5612   echo "$as_me:$LINENO: result: no" >&5
5613 echo "${ECHO_T}no" >&6
5614 fi
5615
5616   test -n "$FONTFORGE" && break
5617 done
5618 test -n "$FONTFORGE" || FONTFORGE="false"
5619
5620 for ac_prog in pkg-config
5621 do
5622   # Extract the first word of "$ac_prog", so it can be a program name with args.
5623 set dummy $ac_prog; ac_word=$2
5624 echo "$as_me:$LINENO: checking for $ac_word" >&5
5625 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5626 if test "${ac_cv_prog_PKG_CONFIG+set}" = set; then
5627   echo $ECHO_N "(cached) $ECHO_C" >&6
5628 else
5629   if test -n "$PKG_CONFIG"; then
5630   ac_cv_prog_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test.
5631 else
5632 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5633 for as_dir in $PATH
5634 do
5635   IFS=$as_save_IFS
5636   test -z "$as_dir" && as_dir=.
5637   for ac_exec_ext in '' $ac_executable_extensions; do
5638   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5639     ac_cv_prog_PKG_CONFIG="$ac_prog"
5640     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5641     break 2
5642   fi
5643 done
5644 done
5645
5646 fi
5647 fi
5648 PKG_CONFIG=$ac_cv_prog_PKG_CONFIG
5649 if test -n "$PKG_CONFIG"; then
5650   echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
5651 echo "${ECHO_T}$PKG_CONFIG" >&6
5652 else
5653   echo "$as_me:$LINENO: result: no" >&5
5654 echo "${ECHO_T}no" >&6
5655 fi
5656
5657   test -n "$PKG_CONFIG" && break
5658 done
5659 test -n "$PKG_CONFIG" || PKG_CONFIG="false"
5660
5661
5662 case $host_cpu in
5663   *i[3456789]86*)
5664     for ac_prog in prelink
5665 do
5666   # Extract the first word of "$ac_prog", so it can be a program name with args.
5667 set dummy $ac_prog; ac_word=$2
5668 echo "$as_me:$LINENO: checking for $ac_word" >&5
5669 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5670 if test "${ac_cv_prog_PRELINK+set}" = set; then
5671   echo $ECHO_N "(cached) $ECHO_C" >&6
5672 else
5673   if test -n "$PRELINK"; then
5674   ac_cv_prog_PRELINK="$PRELINK" # Let the user override the test.
5675 else
5676 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5677 for as_dir in /sbin /usr/sbin $PATH
5678 do
5679   IFS=$as_save_IFS
5680   test -z "$as_dir" && as_dir=.
5681   for ac_exec_ext in '' $ac_executable_extensions; do
5682   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5683     ac_cv_prog_PRELINK="$ac_prog"
5684     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5685     break 2
5686   fi
5687 done
5688 done
5689
5690 fi
5691 fi
5692 PRELINK=$ac_cv_prog_PRELINK
5693 if test -n "$PRELINK"; then
5694   echo "$as_me:$LINENO: result: $PRELINK" >&5
5695 echo "${ECHO_T}$PRELINK" >&6
5696 else
5697   echo "$as_me:$LINENO: result: no" >&5
5698 echo "${ECHO_T}no" >&6
5699 fi
5700
5701   test -n "$PRELINK" && break
5702 done
5703 test -n "$PRELINK" || PRELINK="false"
5704
5705     ;;
5706 esac
5707
5708
5709
5710 echo "$as_me:$LINENO: checking for i386_set_ldt in -li386" >&5
5711 echo $ECHO_N "checking for i386_set_ldt in -li386... $ECHO_C" >&6
5712 if test "${ac_cv_lib_i386_i386_set_ldt+set}" = set; then
5713   echo $ECHO_N "(cached) $ECHO_C" >&6
5714 else
5715   ac_check_lib_save_LIBS=$LIBS
5716 LIBS="-li386  $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 i386_set_ldt ();
5731 int
5732 main ()
5733 {
5734 i386_set_ldt ();
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_i386_i386_set_ldt=yes
5761 else
5762   echo "$as_me: failed program was:" >&5
5763 sed 's/^/| /' conftest.$ac_ext >&5
5764
5765 ac_cv_lib_i386_i386_set_ldt=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_i386_i386_set_ldt" >&5
5772 echo "${ECHO_T}$ac_cv_lib_i386_i386_set_ldt" >&6
5773 if test $ac_cv_lib_i386_i386_set_ldt = yes; then
5774   cat >>confdefs.h <<_ACEOF
5775 #define HAVE_LIBI386 1
5776 _ACEOF
5777
5778   LIBS="-li386 $LIBS"
5779
5780 fi
5781
5782
5783 echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5
5784 echo $ECHO_N "checking for _oss_ioctl in -lossaudio... $ECHO_C" >&6
5785 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then
5786   echo $ECHO_N "(cached) $ECHO_C" >&6
5787 else
5788   ac_check_lib_save_LIBS=$LIBS
5789 LIBS="-lossaudio  $LIBS"
5790 cat >conftest.$ac_ext <<_ACEOF
5791 /* confdefs.h.  */
5792 _ACEOF
5793 cat confdefs.h >>conftest.$ac_ext
5794 cat >>conftest.$ac_ext <<_ACEOF
5795 /* end confdefs.h.  */
5796
5797 /* Override any gcc2 internal prototype to avoid an error.  */
5798 #ifdef __cplusplus
5799 extern "C"
5800 #endif
5801 /* We use char because int might match the return type of a gcc2
5802    builtin and then its argument prototype would still apply.  */
5803 char _oss_ioctl ();
5804 int
5805 main ()
5806 {
5807 _oss_ioctl ();
5808   ;
5809   return 0;
5810 }
5811 _ACEOF
5812 rm -f conftest.$ac_objext conftest$ac_exeext
5813 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5814   (eval $ac_link) 2>conftest.er1
5815   ac_status=$?
5816   grep -v '^ *+' conftest.er1 >conftest.err
5817   rm -f conftest.er1
5818   cat conftest.err >&5
5819   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5820   (exit $ac_status); } &&
5821          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
5822   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5823   (eval $ac_try) 2>&5
5824   ac_status=$?
5825   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5826   (exit $ac_status); }; } &&
5827          { ac_try='test -s conftest$ac_exeext'
5828   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5829   (eval $ac_try) 2>&5
5830   ac_status=$?
5831   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5832   (exit $ac_status); }; }; then
5833   ac_cv_lib_ossaudio__oss_ioctl=yes
5834 else
5835   echo "$as_me: failed program was:" >&5
5836 sed 's/^/| /' conftest.$ac_ext >&5
5837
5838 ac_cv_lib_ossaudio__oss_ioctl=no
5839 fi
5840 rm -f conftest.err conftest.$ac_objext \
5841       conftest$ac_exeext conftest.$ac_ext
5842 LIBS=$ac_check_lib_save_LIBS
5843 fi
5844 echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
5845 echo "${ECHO_T}$ac_cv_lib_ossaudio__oss_ioctl" >&6
5846 if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then
5847   cat >>confdefs.h <<_ACEOF
5848 #define HAVE_LIBOSSAUDIO 1
5849 _ACEOF
5850
5851   LIBS="-lossaudio $LIBS"
5852
5853 fi
5854
5855
5856 for ac_func in gethostbyname
5857 do
5858 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5859 echo "$as_me:$LINENO: checking for $ac_func" >&5
5860 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5861 if eval "test \"\${$as_ac_var+set}\" = set"; then
5862   echo $ECHO_N "(cached) $ECHO_C" >&6
5863 else
5864   cat >conftest.$ac_ext <<_ACEOF
5865 /* confdefs.h.  */
5866 _ACEOF
5867 cat confdefs.h >>conftest.$ac_ext
5868 cat >>conftest.$ac_ext <<_ACEOF
5869 /* end confdefs.h.  */
5870 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5871    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
5872 #define $ac_func innocuous_$ac_func
5873
5874 /* System header to define __stub macros and hopefully few prototypes,
5875     which can conflict with char $ac_func (); below.
5876     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5877     <limits.h> exists even on freestanding compilers.  */
5878
5879 #ifdef __STDC__
5880 # include <limits.h>
5881 #else
5882 # include <assert.h>
5883 #endif
5884
5885 #undef $ac_func
5886
5887 /* Override any gcc2 internal prototype to avoid an error.  */
5888 #ifdef __cplusplus
5889 extern "C"
5890 {
5891 #endif
5892 /* We use char because int might match the return type of a gcc2
5893    builtin and then its argument prototype would still apply.  */
5894 char $ac_func ();
5895 /* The GNU C library defines this for functions which it implements
5896     to always fail with ENOSYS.  Some functions are actually named
5897     something starting with __ and the normal name is an alias.  */
5898 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5899 choke me
5900 #else
5901 char (*f) () = $ac_func;
5902 #endif
5903 #ifdef __cplusplus
5904 }
5905 #endif
5906
5907 int
5908 main ()
5909 {
5910 return f != $ac_func;
5911   ;
5912   return 0;
5913 }
5914 _ACEOF
5915 rm -f conftest.$ac_objext conftest$ac_exeext
5916 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5917   (eval $ac_link) 2>conftest.er1
5918   ac_status=$?
5919   grep -v '^ *+' conftest.er1 >conftest.err
5920   rm -f conftest.er1
5921   cat conftest.err >&5
5922   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5923   (exit $ac_status); } &&
5924          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
5925   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5926   (eval $ac_try) 2>&5
5927   ac_status=$?
5928   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5929   (exit $ac_status); }; } &&
5930          { ac_try='test -s conftest$ac_exeext'
5931   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5932   (eval $ac_try) 2>&5
5933   ac_status=$?
5934   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5935   (exit $ac_status); }; }; then
5936   eval "$as_ac_var=yes"
5937 else
5938   echo "$as_me: failed program was:" >&5
5939 sed 's/^/| /' conftest.$ac_ext >&5
5940
5941 eval "$as_ac_var=no"
5942 fi
5943 rm -f conftest.err conftest.$ac_objext \
5944       conftest$ac_exeext conftest.$ac_ext
5945 fi
5946 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5947 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5948 if test `eval echo '${'$as_ac_var'}'` = yes; then
5949   cat >>confdefs.h <<_ACEOF
5950 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5951 _ACEOF
5952
5953 else
5954
5955 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
5956 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
5957 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
5958   echo $ECHO_N "(cached) $ECHO_C" >&6
5959 else
5960   ac_check_lib_save_LIBS=$LIBS
5961 LIBS="-lnsl  $LIBS"
5962 cat >conftest.$ac_ext <<_ACEOF
5963 /* confdefs.h.  */
5964 _ACEOF
5965 cat confdefs.h >>conftest.$ac_ext
5966 cat >>conftest.$ac_ext <<_ACEOF
5967 /* end confdefs.h.  */
5968
5969 /* Override any gcc2 internal prototype to avoid an error.  */
5970 #ifdef __cplusplus
5971 extern "C"
5972 #endif
5973 /* We use char because int might match the return type of a gcc2
5974    builtin and then its argument prototype would still apply.  */
5975 char gethostbyname ();
5976 int
5977 main ()
5978 {
5979 gethostbyname ();
5980   ;
5981   return 0;
5982 }
5983 _ACEOF
5984 rm -f conftest.$ac_objext conftest$ac_exeext
5985 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5986   (eval $ac_link) 2>conftest.er1
5987   ac_status=$?
5988   grep -v '^ *+' conftest.er1 >conftest.err
5989   rm -f conftest.er1
5990   cat conftest.err >&5
5991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5992   (exit $ac_status); } &&
5993          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
5994   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5995   (eval $ac_try) 2>&5
5996   ac_status=$?
5997   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5998   (exit $ac_status); }; } &&
5999          { ac_try='test -s conftest$ac_exeext'
6000   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6001   (eval $ac_try) 2>&5
6002   ac_status=$?
6003   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6004   (exit $ac_status); }; }; then
6005   ac_cv_lib_nsl_gethostbyname=yes
6006 else
6007   echo "$as_me: failed program was:" >&5
6008 sed 's/^/| /' conftest.$ac_ext >&5
6009
6010 ac_cv_lib_nsl_gethostbyname=no
6011 fi
6012 rm -f conftest.err conftest.$ac_objext \
6013       conftest$ac_exeext conftest.$ac_ext
6014 LIBS=$ac_check_lib_save_LIBS
6015 fi
6016 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
6017 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
6018 if test $ac_cv_lib_nsl_gethostbyname = yes; then
6019   cat >>confdefs.h <<_ACEOF
6020 #define HAVE_LIBNSL 1
6021 _ACEOF
6022
6023   LIBS="-lnsl $LIBS"
6024
6025 fi
6026
6027 fi
6028 done
6029
6030
6031 for ac_func in connect
6032 do
6033 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6034 echo "$as_me:$LINENO: checking for $ac_func" >&5
6035 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6036 if eval "test \"\${$as_ac_var+set}\" = set"; then
6037   echo $ECHO_N "(cached) $ECHO_C" >&6
6038 else
6039   cat >conftest.$ac_ext <<_ACEOF
6040 /* confdefs.h.  */
6041 _ACEOF
6042 cat confdefs.h >>conftest.$ac_ext
6043 cat >>conftest.$ac_ext <<_ACEOF
6044 /* end confdefs.h.  */
6045 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6046    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
6047 #define $ac_func innocuous_$ac_func
6048
6049 /* System header to define __stub macros and hopefully few prototypes,
6050     which can conflict with char $ac_func (); below.
6051     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6052     <limits.h> exists even on freestanding compilers.  */
6053
6054 #ifdef __STDC__
6055 # include <limits.h>
6056 #else
6057 # include <assert.h>
6058 #endif
6059
6060 #undef $ac_func
6061
6062 /* Override any gcc2 internal prototype to avoid an error.  */
6063 #ifdef __cplusplus
6064 extern "C"
6065 {
6066 #endif
6067 /* We use char because int might match the return type of a gcc2
6068    builtin and then its argument prototype would still apply.  */
6069 char $ac_func ();
6070 /* The GNU C library defines this for functions which it implements
6071     to always fail with ENOSYS.  Some functions are actually named
6072     something starting with __ and the normal name is an alias.  */
6073 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6074 choke me
6075 #else
6076 char (*f) () = $ac_func;
6077 #endif
6078 #ifdef __cplusplus
6079 }
6080 #endif
6081
6082 int
6083 main ()
6084 {
6085 return f != $ac_func;
6086   ;
6087   return 0;
6088 }
6089 _ACEOF
6090 rm -f conftest.$ac_objext conftest$ac_exeext
6091 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6092   (eval $ac_link) 2>conftest.er1
6093   ac_status=$?
6094   grep -v '^ *+' conftest.er1 >conftest.err
6095   rm -f conftest.er1
6096   cat conftest.err >&5
6097   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6098   (exit $ac_status); } &&
6099          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6100   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6101   (eval $ac_try) 2>&5
6102   ac_status=$?
6103   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6104   (exit $ac_status); }; } &&
6105          { ac_try='test -s conftest$ac_exeext'
6106   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6107   (eval $ac_try) 2>&5
6108   ac_status=$?
6109   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6110   (exit $ac_status); }; }; then
6111   eval "$as_ac_var=yes"
6112 else
6113   echo "$as_me: failed program was:" >&5
6114 sed 's/^/| /' conftest.$ac_ext >&5
6115
6116 eval "$as_ac_var=no"
6117 fi
6118 rm -f conftest.err conftest.$ac_objext \
6119       conftest$ac_exeext conftest.$ac_ext
6120 fi
6121 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6122 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6123 if test `eval echo '${'$as_ac_var'}'` = yes; then
6124   cat >>confdefs.h <<_ACEOF
6125 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6126 _ACEOF
6127
6128 else
6129
6130 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
6131 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
6132 if test "${ac_cv_lib_socket_connect+set}" = set; then
6133   echo $ECHO_N "(cached) $ECHO_C" >&6
6134 else
6135   ac_check_lib_save_LIBS=$LIBS
6136 LIBS="-lsocket  $LIBS"
6137 cat >conftest.$ac_ext <<_ACEOF
6138 /* confdefs.h.  */
6139 _ACEOF
6140 cat confdefs.h >>conftest.$ac_ext
6141 cat >>conftest.$ac_ext <<_ACEOF
6142 /* end confdefs.h.  */
6143
6144 /* Override any gcc2 internal prototype to avoid an error.  */
6145 #ifdef __cplusplus
6146 extern "C"
6147 #endif
6148 /* We use char because int might match the return type of a gcc2
6149    builtin and then its argument prototype would still apply.  */
6150 char connect ();
6151 int
6152 main ()
6153 {
6154 connect ();
6155   ;
6156   return 0;
6157 }
6158 _ACEOF
6159 rm -f conftest.$ac_objext conftest$ac_exeext
6160 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6161   (eval $ac_link) 2>conftest.er1
6162   ac_status=$?
6163   grep -v '^ *+' conftest.er1 >conftest.err
6164   rm -f conftest.er1
6165   cat conftest.err >&5
6166   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6167   (exit $ac_status); } &&
6168          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6169   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6170   (eval $ac_try) 2>&5
6171   ac_status=$?
6172   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6173   (exit $ac_status); }; } &&
6174          { ac_try='test -s conftest$ac_exeext'
6175   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6176   (eval $ac_try) 2>&5
6177   ac_status=$?
6178   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6179   (exit $ac_status); }; }; then
6180   ac_cv_lib_socket_connect=yes
6181 else
6182   echo "$as_me: failed program was:" >&5
6183 sed 's/^/| /' conftest.$ac_ext >&5
6184
6185 ac_cv_lib_socket_connect=no
6186 fi
6187 rm -f conftest.err conftest.$ac_objext \
6188       conftest$ac_exeext conftest.$ac_ext
6189 LIBS=$ac_check_lib_save_LIBS
6190 fi
6191 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
6192 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
6193 if test $ac_cv_lib_socket_connect = yes; then
6194   cat >>confdefs.h <<_ACEOF
6195 #define HAVE_LIBSOCKET 1
6196 _ACEOF
6197
6198   LIBS="-lsocket $LIBS"
6199
6200 fi
6201
6202 fi
6203 done
6204
6205
6206 for ac_func in inet_aton
6207 do
6208 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6209 echo "$as_me:$LINENO: checking for $ac_func" >&5
6210 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6211 if eval "test \"\${$as_ac_var+set}\" = set"; then
6212   echo $ECHO_N "(cached) $ECHO_C" >&6
6213 else
6214   cat >conftest.$ac_ext <<_ACEOF
6215 /* confdefs.h.  */
6216 _ACEOF
6217 cat confdefs.h >>conftest.$ac_ext
6218 cat >>conftest.$ac_ext <<_ACEOF
6219 /* end confdefs.h.  */
6220 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6221    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
6222 #define $ac_func innocuous_$ac_func
6223
6224 /* System header to define __stub macros and hopefully few prototypes,
6225     which can conflict with char $ac_func (); below.
6226     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6227     <limits.h> exists even on freestanding compilers.  */
6228
6229 #ifdef __STDC__
6230 # include <limits.h>
6231 #else
6232 # include <assert.h>
6233 #endif
6234
6235 #undef $ac_func
6236
6237 /* Override any gcc2 internal prototype to avoid an error.  */
6238 #ifdef __cplusplus
6239 extern "C"
6240 {
6241 #endif
6242 /* We use char because int might match the return type of a gcc2
6243    builtin and then its argument prototype would still apply.  */
6244 char $ac_func ();
6245 /* The GNU C library defines this for functions which it implements
6246     to always fail with ENOSYS.  Some functions are actually named
6247     something starting with __ and the normal name is an alias.  */
6248 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6249 choke me
6250 #else
6251 char (*f) () = $ac_func;
6252 #endif
6253 #ifdef __cplusplus
6254 }
6255 #endif
6256
6257 int
6258 main ()
6259 {
6260 return f != $ac_func;
6261   ;
6262   return 0;
6263 }
6264 _ACEOF
6265 rm -f conftest.$ac_objext conftest$ac_exeext
6266 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6267   (eval $ac_link) 2>conftest.er1
6268   ac_status=$?
6269   grep -v '^ *+' conftest.er1 >conftest.err
6270   rm -f conftest.er1
6271   cat conftest.err >&5
6272   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6273   (exit $ac_status); } &&
6274          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6275   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6276   (eval $ac_try) 2>&5
6277   ac_status=$?
6278   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6279   (exit $ac_status); }; } &&
6280          { ac_try='test -s conftest$ac_exeext'
6281   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6282   (eval $ac_try) 2>&5
6283   ac_status=$?
6284   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6285   (exit $ac_status); }; }; then
6286   eval "$as_ac_var=yes"
6287 else
6288   echo "$as_me: failed program was:" >&5
6289 sed 's/^/| /' conftest.$ac_ext >&5
6290
6291 eval "$as_ac_var=no"
6292 fi
6293 rm -f conftest.err conftest.$ac_objext \
6294       conftest$ac_exeext conftest.$ac_ext
6295 fi
6296 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6297 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6298 if test `eval echo '${'$as_ac_var'}'` = yes; then
6299   cat >>confdefs.h <<_ACEOF
6300 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6301 _ACEOF
6302
6303 else
6304
6305 echo "$as_me:$LINENO: checking for inet_aton in -lresolv" >&5
6306 echo $ECHO_N "checking for inet_aton in -lresolv... $ECHO_C" >&6
6307 if test "${ac_cv_lib_resolv_inet_aton+set}" = set; then
6308   echo $ECHO_N "(cached) $ECHO_C" >&6
6309 else
6310   ac_check_lib_save_LIBS=$LIBS
6311 LIBS="-lresolv  $LIBS"
6312 cat >conftest.$ac_ext <<_ACEOF
6313 /* confdefs.h.  */
6314 _ACEOF
6315 cat confdefs.h >>conftest.$ac_ext
6316 cat >>conftest.$ac_ext <<_ACEOF
6317 /* end confdefs.h.  */
6318
6319 /* Override any gcc2 internal prototype to avoid an error.  */
6320 #ifdef __cplusplus
6321 extern "C"
6322 #endif
6323 /* We use char because int might match the return type of a gcc2
6324    builtin and then its argument prototype would still apply.  */
6325 char inet_aton ();
6326 int
6327 main ()
6328 {
6329 inet_aton ();
6330   ;
6331   return 0;
6332 }
6333 _ACEOF
6334 rm -f conftest.$ac_objext conftest$ac_exeext
6335 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6336   (eval $ac_link) 2>conftest.er1
6337   ac_status=$?
6338   grep -v '^ *+' conftest.er1 >conftest.err
6339   rm -f conftest.er1
6340   cat conftest.err >&5
6341   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6342   (exit $ac_status); } &&
6343          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6344   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6345   (eval $ac_try) 2>&5
6346   ac_status=$?
6347   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6348   (exit $ac_status); }; } &&
6349          { ac_try='test -s conftest$ac_exeext'
6350   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6351   (eval $ac_try) 2>&5
6352   ac_status=$?
6353   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6354   (exit $ac_status); }; }; then
6355   ac_cv_lib_resolv_inet_aton=yes
6356 else
6357   echo "$as_me: failed program was:" >&5
6358 sed 's/^/| /' conftest.$ac_ext >&5
6359
6360 ac_cv_lib_resolv_inet_aton=no
6361 fi
6362 rm -f conftest.err conftest.$ac_objext \
6363       conftest$ac_exeext conftest.$ac_ext
6364 LIBS=$ac_check_lib_save_LIBS
6365 fi
6366 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_aton" >&5
6367 echo "${ECHO_T}$ac_cv_lib_resolv_inet_aton" >&6
6368 if test $ac_cv_lib_resolv_inet_aton = yes; then
6369   cat >>confdefs.h <<_ACEOF
6370 #define HAVE_LIBRESOLV 1
6371 _ACEOF
6372
6373   LIBS="-lresolv $LIBS"
6374
6375 fi
6376
6377 fi
6378 done
6379
6380
6381 echo "$as_me:$LINENO: checking for _xpg4_setrunelocale in -lxpg4" >&5
6382 echo $ECHO_N "checking for _xpg4_setrunelocale in -lxpg4... $ECHO_C" >&6
6383 if test "${ac_cv_lib_xpg4__xpg4_setrunelocale+set}" = set; then
6384   echo $ECHO_N "(cached) $ECHO_C" >&6
6385 else
6386   ac_check_lib_save_LIBS=$LIBS
6387 LIBS="-lxpg4  $LIBS"
6388 cat >conftest.$ac_ext <<_ACEOF
6389 /* confdefs.h.  */
6390 _ACEOF
6391 cat confdefs.h >>conftest.$ac_ext
6392 cat >>conftest.$ac_ext <<_ACEOF
6393 /* end confdefs.h.  */
6394
6395 /* Override any gcc2 internal prototype to avoid an error.  */
6396 #ifdef __cplusplus
6397 extern "C"
6398 #endif
6399 /* We use char because int might match the return type of a gcc2
6400    builtin and then its argument prototype would still apply.  */
6401 char _xpg4_setrunelocale ();
6402 int
6403 main ()
6404 {
6405 _xpg4_setrunelocale ();
6406   ;
6407   return 0;
6408 }
6409 _ACEOF
6410 rm -f conftest.$ac_objext conftest$ac_exeext
6411 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6412   (eval $ac_link) 2>conftest.er1
6413   ac_status=$?
6414   grep -v '^ *+' conftest.er1 >conftest.err
6415   rm -f conftest.er1
6416   cat conftest.err >&5
6417   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6418   (exit $ac_status); } &&
6419          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6420   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6421   (eval $ac_try) 2>&5
6422   ac_status=$?
6423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6424   (exit $ac_status); }; } &&
6425          { ac_try='test -s conftest$ac_exeext'
6426   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6427   (eval $ac_try) 2>&5
6428   ac_status=$?
6429   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6430   (exit $ac_status); }; }; then
6431   ac_cv_lib_xpg4__xpg4_setrunelocale=yes
6432 else
6433   echo "$as_me: failed program was:" >&5
6434 sed 's/^/| /' conftest.$ac_ext >&5
6435
6436 ac_cv_lib_xpg4__xpg4_setrunelocale=no
6437 fi
6438 rm -f conftest.err conftest.$ac_objext \
6439       conftest$ac_exeext conftest.$ac_ext
6440 LIBS=$ac_check_lib_save_LIBS
6441 fi
6442 echo "$as_me:$LINENO: result: $ac_cv_lib_xpg4__xpg4_setrunelocale" >&5
6443 echo "${ECHO_T}$ac_cv_lib_xpg4__xpg4_setrunelocale" >&6
6444 if test $ac_cv_lib_xpg4__xpg4_setrunelocale = yes; then
6445   cat >>confdefs.h <<_ACEOF
6446 #define HAVE_LIBXPG4 1
6447 _ACEOF
6448
6449   LIBS="-lxpg4 $LIBS"
6450
6451 fi
6452
6453
6454 echo "$as_me:$LINENO: checking for poll in -lpoll" >&5
6455 echo $ECHO_N "checking for poll in -lpoll... $ECHO_C" >&6
6456 if test "${ac_cv_lib_poll_poll+set}" = set; then
6457   echo $ECHO_N "(cached) $ECHO_C" >&6
6458 else
6459   ac_check_lib_save_LIBS=$LIBS
6460 LIBS="-lpoll  $LIBS"
6461 cat >conftest.$ac_ext <<_ACEOF
6462 /* confdefs.h.  */
6463 _ACEOF
6464 cat confdefs.h >>conftest.$ac_ext
6465 cat >>conftest.$ac_ext <<_ACEOF
6466 /* end confdefs.h.  */
6467
6468 /* Override any gcc2 internal prototype to avoid an error.  */
6469 #ifdef __cplusplus
6470 extern "C"
6471 #endif
6472 /* We use char because int might match the return type of a gcc2
6473    builtin and then its argument prototype would still apply.  */
6474 char poll ();
6475 int
6476 main ()
6477 {
6478 poll ();
6479   ;
6480   return 0;
6481 }
6482 _ACEOF
6483 rm -f conftest.$ac_objext conftest$ac_exeext
6484 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6485   (eval $ac_link) 2>conftest.er1
6486   ac_status=$?
6487   grep -v '^ *+' conftest.er1 >conftest.err
6488   rm -f conftest.er1
6489   cat conftest.err >&5
6490   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6491   (exit $ac_status); } &&
6492          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6493   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6494   (eval $ac_try) 2>&5
6495   ac_status=$?
6496   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6497   (exit $ac_status); }; } &&
6498          { ac_try='test -s conftest$ac_exeext'
6499   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6500   (eval $ac_try) 2>&5
6501   ac_status=$?
6502   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6503   (exit $ac_status); }; }; then
6504   ac_cv_lib_poll_poll=yes
6505 else
6506   echo "$as_me: failed program was:" >&5
6507 sed 's/^/| /' conftest.$ac_ext >&5
6508
6509 ac_cv_lib_poll_poll=no
6510 fi
6511 rm -f conftest.err conftest.$ac_objext \
6512       conftest$ac_exeext conftest.$ac_ext
6513 LIBS=$ac_check_lib_save_LIBS
6514 fi
6515 echo "$as_me:$LINENO: result: $ac_cv_lib_poll_poll" >&5
6516 echo "${ECHO_T}$ac_cv_lib_poll_poll" >&6
6517 if test $ac_cv_lib_poll_poll = yes; then
6518   cat >>confdefs.h <<_ACEOF
6519 #define HAVE_LIBPOLL 1
6520 _ACEOF
6521
6522   LIBS="-lpoll $LIBS"
6523
6524 fi
6525
6526
6527 echo "$as_me:$LINENO: checking for res_9_init in -lresolv" >&5
6528 echo $ECHO_N "checking for res_9_init in -lresolv... $ECHO_C" >&6
6529 if test "${ac_cv_lib_resolv_res_9_init+set}" = set; then
6530   echo $ECHO_N "(cached) $ECHO_C" >&6
6531 else
6532   ac_check_lib_save_LIBS=$LIBS
6533 LIBS="-lresolv  $LIBS"
6534 cat >conftest.$ac_ext <<_ACEOF
6535 /* confdefs.h.  */
6536 _ACEOF
6537 cat confdefs.h >>conftest.$ac_ext
6538 cat >>conftest.$ac_ext <<_ACEOF
6539 /* end confdefs.h.  */
6540
6541 /* Override any gcc2 internal prototype to avoid an error.  */
6542 #ifdef __cplusplus
6543 extern "C"
6544 #endif
6545 /* We use char because int might match the return type of a gcc2
6546    builtin and then its argument prototype would still apply.  */
6547 char res_9_init ();
6548 int
6549 main ()
6550 {
6551 res_9_init ();
6552   ;
6553   return 0;
6554 }
6555 _ACEOF
6556 rm -f conftest.$ac_objext conftest$ac_exeext
6557 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6558   (eval $ac_link) 2>conftest.er1
6559   ac_status=$?
6560   grep -v '^ *+' conftest.er1 >conftest.err
6561   rm -f conftest.er1
6562   cat conftest.err >&5
6563   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6564   (exit $ac_status); } &&
6565          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6566   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6567   (eval $ac_try) 2>&5
6568   ac_status=$?
6569   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6570   (exit $ac_status); }; } &&
6571          { ac_try='test -s conftest$ac_exeext'
6572   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6573   (eval $ac_try) 2>&5
6574   ac_status=$?
6575   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6576   (exit $ac_status); }; }; then
6577   ac_cv_lib_resolv_res_9_init=yes
6578 else
6579   echo "$as_me: failed program was:" >&5
6580 sed 's/^/| /' conftest.$ac_ext >&5
6581
6582 ac_cv_lib_resolv_res_9_init=no
6583 fi
6584 rm -f conftest.err conftest.$ac_objext \
6585       conftest$ac_exeext conftest.$ac_ext
6586 LIBS=$ac_check_lib_save_LIBS
6587 fi
6588 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_9_init" >&5
6589 echo "${ECHO_T}$ac_cv_lib_resolv_res_9_init" >&6
6590 if test $ac_cv_lib_resolv_res_9_init = yes; then
6591   cat >>confdefs.h <<_ACEOF
6592 #define HAVE_LIBRESOLV 1
6593 _ACEOF
6594
6595   LIBS="-lresolv $LIBS"
6596
6597 fi
6598
6599 echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
6600 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6
6601 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
6602   echo $ECHO_N "(cached) $ECHO_C" >&6
6603 else
6604   ac_check_lib_save_LIBS=$LIBS
6605 LIBS="-lpthread  $LIBS"
6606 cat >conftest.$ac_ext <<_ACEOF
6607 /* confdefs.h.  */
6608 _ACEOF
6609 cat confdefs.h >>conftest.$ac_ext
6610 cat >>conftest.$ac_ext <<_ACEOF
6611 /* end confdefs.h.  */
6612
6613 /* Override any gcc2 internal prototype to avoid an error.  */
6614 #ifdef __cplusplus
6615 extern "C"
6616 #endif
6617 /* We use char because int might match the return type of a gcc2
6618    builtin and then its argument prototype would still apply.  */
6619 char pthread_create ();
6620 int
6621 main ()
6622 {
6623 pthread_create ();
6624   ;
6625   return 0;
6626 }
6627 _ACEOF
6628 rm -f conftest.$ac_objext conftest$ac_exeext
6629 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6630   (eval $ac_link) 2>conftest.er1
6631   ac_status=$?
6632   grep -v '^ *+' conftest.er1 >conftest.err
6633   rm -f conftest.er1
6634   cat conftest.err >&5
6635   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6636   (exit $ac_status); } &&
6637          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6638   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6639   (eval $ac_try) 2>&5
6640   ac_status=$?
6641   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6642   (exit $ac_status); }; } &&
6643          { ac_try='test -s conftest$ac_exeext'
6644   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6645   (eval $ac_try) 2>&5
6646   ac_status=$?
6647   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6648   (exit $ac_status); }; }; then
6649   ac_cv_lib_pthread_pthread_create=yes
6650 else
6651   echo "$as_me: failed program was:" >&5
6652 sed 's/^/| /' conftest.$ac_ext >&5
6653
6654 ac_cv_lib_pthread_pthread_create=no
6655 fi
6656 rm -f conftest.err conftest.$ac_objext \
6657       conftest$ac_exeext conftest.$ac_ext
6658 LIBS=$ac_check_lib_save_LIBS
6659 fi
6660 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
6661 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6
6662 if test $ac_cv_lib_pthread_pthread_create = yes; then
6663   LIBPTHREAD="-lpthread"
6664
6665 fi
6666
6667
6668 XLIB=""
6669
6670 XFILES=""
6671
6672 OPENGLFILES=""
6673
6674 GLU32FILES=""
6675
6676 OPENGL_LIBS=""
6677
6678
6679
6680 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6681 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6682 if test "${ac_cv_header_stdc+set}" = set; then
6683   echo $ECHO_N "(cached) $ECHO_C" >&6
6684 else
6685   cat >conftest.$ac_ext <<_ACEOF
6686 /* confdefs.h.  */
6687 _ACEOF
6688 cat confdefs.h >>conftest.$ac_ext
6689 cat >>conftest.$ac_ext <<_ACEOF
6690 /* end confdefs.h.  */
6691 #include <stdlib.h>
6692 #include <stdarg.h>
6693 #include <string.h>
6694 #include <float.h>
6695
6696 int
6697 main ()
6698 {
6699
6700   ;
6701   return 0;
6702 }
6703 _ACEOF
6704 rm -f conftest.$ac_objext
6705 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6706   (eval $ac_compile) 2>conftest.er1
6707   ac_status=$?
6708   grep -v '^ *+' conftest.er1 >conftest.err
6709   rm -f conftest.er1
6710   cat conftest.err >&5
6711   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6712   (exit $ac_status); } &&
6713          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6714   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6715   (eval $ac_try) 2>&5
6716   ac_status=$?
6717   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6718   (exit $ac_status); }; } &&
6719          { ac_try='test -s conftest.$ac_objext'
6720   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6721   (eval $ac_try) 2>&5
6722   ac_status=$?
6723   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6724   (exit $ac_status); }; }; then
6725   ac_cv_header_stdc=yes
6726 else
6727   echo "$as_me: failed program was:" >&5
6728 sed 's/^/| /' conftest.$ac_ext >&5
6729
6730 ac_cv_header_stdc=no
6731 fi
6732 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6733
6734 if test $ac_cv_header_stdc = yes; then
6735   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6736   cat >conftest.$ac_ext <<_ACEOF
6737 /* confdefs.h.  */
6738 _ACEOF
6739 cat confdefs.h >>conftest.$ac_ext
6740 cat >>conftest.$ac_ext <<_ACEOF
6741 /* end confdefs.h.  */
6742 #include <string.h>
6743
6744 _ACEOF
6745 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6746   $EGREP "memchr" >/dev/null 2>&1; then
6747   :
6748 else
6749   ac_cv_header_stdc=no
6750 fi
6751 rm -f conftest*
6752
6753 fi
6754
6755 if test $ac_cv_header_stdc = yes; then
6756   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6757   cat >conftest.$ac_ext <<_ACEOF
6758 /* confdefs.h.  */
6759 _ACEOF
6760 cat confdefs.h >>conftest.$ac_ext
6761 cat >>conftest.$ac_ext <<_ACEOF
6762 /* end confdefs.h.  */
6763 #include <stdlib.h>
6764
6765 _ACEOF
6766 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6767   $EGREP "free" >/dev/null 2>&1; then
6768   :
6769 else
6770   ac_cv_header_stdc=no
6771 fi
6772 rm -f conftest*
6773
6774 fi
6775
6776 if test $ac_cv_header_stdc = yes; then
6777   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6778   if test "$cross_compiling" = yes; then
6779   :
6780 else
6781   cat >conftest.$ac_ext <<_ACEOF
6782 /* confdefs.h.  */
6783 _ACEOF
6784 cat confdefs.h >>conftest.$ac_ext
6785 cat >>conftest.$ac_ext <<_ACEOF
6786 /* end confdefs.h.  */
6787 #include <ctype.h>
6788 #if ((' ' & 0x0FF) == 0x020)
6789 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6790 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6791 #else
6792 # define ISLOWER(c) \
6793                    (('a' <= (c) && (c) <= 'i') \
6794                      || ('j' <= (c) && (c) <= 'r') \
6795                      || ('s' <= (c) && (c) <= 'z'))
6796 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6797 #endif
6798
6799 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6800 int
6801 main ()
6802 {
6803   int i;
6804   for (i = 0; i < 256; i++)
6805     if (XOR (islower (i), ISLOWER (i))
6806         || toupper (i) != TOUPPER (i))
6807       exit(2);
6808   exit (0);
6809 }
6810 _ACEOF
6811 rm -f conftest$ac_exeext
6812 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6813   (eval $ac_link) 2>&5
6814   ac_status=$?
6815   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6816   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6817   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6818   (eval $ac_try) 2>&5
6819   ac_status=$?
6820   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6821   (exit $ac_status); }; }; then
6822   :
6823 else
6824   echo "$as_me: program exited with status $ac_status" >&5
6825 echo "$as_me: failed program was:" >&5
6826 sed 's/^/| /' conftest.$ac_ext >&5
6827
6828 ( exit $ac_status )
6829 ac_cv_header_stdc=no
6830 fi
6831 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6832 fi
6833 fi
6834 fi
6835 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6836 echo "${ECHO_T}$ac_cv_header_stdc" >&6
6837 if test $ac_cv_header_stdc = yes; then
6838
6839 cat >>confdefs.h <<\_ACEOF
6840 #define STDC_HEADERS 1
6841 _ACEOF
6842
6843 fi
6844
6845 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6846
6847
6848
6849
6850
6851
6852
6853
6854
6855 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6856                   inttypes.h stdint.h unistd.h
6857 do
6858 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6859 echo "$as_me:$LINENO: checking for $ac_header" >&5
6860 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6861 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6862   echo $ECHO_N "(cached) $ECHO_C" >&6
6863 else
6864   cat >conftest.$ac_ext <<_ACEOF
6865 /* confdefs.h.  */
6866 _ACEOF
6867 cat confdefs.h >>conftest.$ac_ext
6868 cat >>conftest.$ac_ext <<_ACEOF
6869 /* end confdefs.h.  */
6870 $ac_includes_default
6871
6872 #include <$ac_header>
6873 _ACEOF
6874 rm -f conftest.$ac_objext
6875 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6876   (eval $ac_compile) 2>conftest.er1
6877   ac_status=$?
6878   grep -v '^ *+' conftest.er1 >conftest.err
6879   rm -f conftest.er1
6880   cat conftest.err >&5
6881   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6882   (exit $ac_status); } &&
6883          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6884   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6885   (eval $ac_try) 2>&5
6886   ac_status=$?
6887   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6888   (exit $ac_status); }; } &&
6889          { ac_try='test -s conftest.$ac_objext'
6890   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6891   (eval $ac_try) 2>&5
6892   ac_status=$?
6893   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6894   (exit $ac_status); }; }; then
6895   eval "$as_ac_Header=yes"
6896 else
6897   echo "$as_me: failed program was:" >&5
6898 sed 's/^/| /' conftest.$ac_ext >&5
6899
6900 eval "$as_ac_Header=no"
6901 fi
6902 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6903 fi
6904 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6905 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6906 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6907   cat >>confdefs.h <<_ACEOF
6908 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6909 _ACEOF
6910
6911 fi
6912
6913 done
6914
6915
6916
6917
6918
6919
6920
6921
6922
6923
6924
6925
6926
6927
6928
6929
6930
6931
6932
6933
6934
6935
6936
6937
6938
6939
6940
6941
6942
6943
6944
6945
6946
6947
6948
6949
6950
6951
6952
6953
6954
6955
6956
6957
6958
6959
6960
6961
6962
6963
6964
6965
6966
6967
6968
6969
6970
6971
6972
6973
6974
6975
6976
6977
6978
6979
6980
6981
6982
6983
6984
6985
6986
6987
6988
6989
6990
6991
6992
6993
6994
6995
6996
6997
6998
6999
7000
7001
7002
7003
7004
7005
7006
7007
7008
7009
7010
7011
7012
7013
7014
7015
7016
7017
7018
7019
7020 for ac_header in \
7021         IOKit/IOKitLib.h \
7022         alsa/asoundlib.h \
7023         arpa/inet.h \
7024         arpa/nameser.h \
7025         asm/types.h \
7026         capi20.h \
7027         cups/cups.h \
7028         curses.h \
7029         direct.h \
7030         dlfcn.h \
7031         elf.h \
7032         float.h \
7033         fontconfig/fontconfig.h \
7034         getopt.h \
7035         gif_lib.h \
7036         ieeefp.h \
7037         io.h \
7038         jack/jack.h \
7039         jpeglib.h \
7040         lber.h \
7041         lcms.h \
7042         lcms/lcms.h \
7043         ldap.h \
7044         libaudioio.h \
7045         link.h \
7046         linux/cdrom.h \
7047         linux/compiler.h \
7048         linux/hdreg.h \
7049         linux/input.h \
7050         linux/ioctl.h \
7051         linux/joystick.h \
7052         linux/major.h \
7053         linux/param.h \
7054         linux/serial.h \
7055         linux/ucdrom.h \
7056         mach/machine.h \
7057         machine/cpu.h \
7058         machine/limits.h \
7059         machine/soundcard.h \
7060         mntent.h \
7061         ncurses.h \
7062         netdb.h \
7063         netinet/in.h \
7064         netinet/in_systm.h \
7065         netinet/tcp.h \
7066         netinet/tcp_fsm.h \
7067         openssl/err.h \
7068         openssl/ssl.h \
7069         poll.h \
7070         process.h \
7071         pthread.h \
7072         pwd.h \
7073         regex.h \
7074         sched.h \
7075         scsi/scsi.h \
7076         scsi/scsi_ioctl.h \
7077         scsi/sg.h \
7078         soundcard.h \
7079         stdint.h \
7080         strings.h \
7081         sys/asoundlib.h \
7082         sys/cdio.h \
7083         sys/elf32.h \
7084         sys/epoll.h \
7085         sys/errno.h \
7086         sys/exec_elf.h \
7087         sys/filio.h \
7088         sys/ioctl.h \
7089         sys/ipc.h \
7090         sys/limits.h \
7091         sys/link.h \
7092         sys/lwp.h \
7093         sys/mman.h \
7094         sys/modem.h \
7095         sys/msg.h \
7096         sys/mtio.h \
7097         sys/param.h \
7098         sys/poll.h \
7099         sys/prctl.h \
7100         sys/ptrace.h \
7101         sys/reg.h \
7102         sys/resource.h \
7103         sys/scsiio.h \
7104         sys/shm.h \
7105         sys/signal.h \
7106         sys/socket.h \
7107         sys/sockio.h \
7108         sys/soundcard.h \
7109         sys/statvfs.h \
7110         sys/strtio.h \
7111         sys/syscall.h \
7112         sys/sysctl.h \
7113         sys/time.h \
7114         sys/times.h \
7115         sys/uio.h \
7116         sys/un.h \
7117         sys/vm86.h \
7118         sys/wait.h \
7119         syscall.h \
7120         termios.h \
7121         unicode/ubidi.h \
7122         unistd.h \
7123         utime.h \
7124         valgrind/memcheck.h
7125
7126 do
7127 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7128 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7129   echo "$as_me:$LINENO: checking for $ac_header" >&5
7130 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7131 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7132   echo $ECHO_N "(cached) $ECHO_C" >&6
7133 fi
7134 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7135 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7136 else
7137   # Is the header compilable?
7138 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7139 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7140 cat >conftest.$ac_ext <<_ACEOF
7141 /* confdefs.h.  */
7142 _ACEOF
7143 cat confdefs.h >>conftest.$ac_ext
7144 cat >>conftest.$ac_ext <<_ACEOF
7145 /* end confdefs.h.  */
7146 $ac_includes_default
7147 #include <$ac_header>
7148 _ACEOF
7149 rm -f conftest.$ac_objext
7150 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7151   (eval $ac_compile) 2>conftest.er1
7152   ac_status=$?
7153   grep -v '^ *+' conftest.er1 >conftest.err
7154   rm -f conftest.er1
7155   cat conftest.err >&5
7156   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7157   (exit $ac_status); } &&
7158          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
7159   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7160   (eval $ac_try) 2>&5
7161   ac_status=$?
7162   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7163   (exit $ac_status); }; } &&
7164          { ac_try='test -s conftest.$ac_objext'
7165   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7166   (eval $ac_try) 2>&5
7167   ac_status=$?
7168   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7169   (exit $ac_status); }; }; then
7170   ac_header_compiler=yes
7171 else
7172   echo "$as_me: failed program was:" >&5
7173 sed 's/^/| /' conftest.$ac_ext >&5
7174
7175 ac_header_compiler=no
7176 fi
7177 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7178 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7179 echo "${ECHO_T}$ac_header_compiler" >&6
7180
7181 # Is the header present?
7182 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7183 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7184 cat >conftest.$ac_ext <<_ACEOF
7185 /* confdefs.h.  */
7186 _ACEOF
7187 cat confdefs.h >>conftest.$ac_ext
7188 cat >>conftest.$ac_ext <<_ACEOF
7189 /* end confdefs.h.  */
7190 #include <$ac_header>
7191 _ACEOF
7192 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7193   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7194   ac_status=$?
7195   grep -v '^ *+' conftest.er1 >conftest.err
7196   rm -f conftest.er1
7197   cat conftest.err >&5
7198   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7199   (exit $ac_status); } >/dev/null; then
7200   if test -s conftest.err; then
7201     ac_cpp_err=$ac_c_preproc_warn_flag
7202     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7203   else
7204     ac_cpp_err=
7205   fi
7206 else
7207   ac_cpp_err=yes
7208 fi
7209 if test -z "$ac_cpp_err"; then
7210   ac_header_preproc=yes
7211 else
7212   echo "$as_me: failed program was:" >&5
7213 sed 's/^/| /' conftest.$ac_ext >&5
7214
7215   ac_header_preproc=no
7216 fi
7217 rm -f conftest.err conftest.$ac_ext
7218 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7219 echo "${ECHO_T}$ac_header_preproc" >&6
7220
7221 # So?  What about this header?
7222 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7223   yes:no: )
7224     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7225 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7226     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7227 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7228     ac_header_preproc=yes
7229     ;;
7230   no:yes:* )
7231     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7232 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7233     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
7234 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
7235     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7236 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7237     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
7238 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
7239     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7240 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7241     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7242 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7243     (
7244       cat <<\_ASBOX
7245 ## ------------------------------------ ##
7246 ## Report this to wine-devel@winehq.org ##
7247 ## ------------------------------------ ##
7248 _ASBOX
7249     ) |
7250       sed "s/^/$as_me: WARNING:     /" >&2
7251     ;;
7252 esac
7253 echo "$as_me:$LINENO: checking for $ac_header" >&5
7254 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7255 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7256   echo $ECHO_N "(cached) $ECHO_C" >&6
7257 else
7258   eval "$as_ac_Header=\$ac_header_preproc"
7259 fi
7260 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7261 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7262
7263 fi
7264 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7265   cat >>confdefs.h <<_ACEOF
7266 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7267 _ACEOF
7268
7269 fi
7270
7271 done
7272
7273 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
7274 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
7275 if test "${ac_cv_header_stat_broken+set}" = set; then
7276   echo $ECHO_N "(cached) $ECHO_C" >&6
7277 else
7278   cat >conftest.$ac_ext <<_ACEOF
7279 /* confdefs.h.  */
7280 _ACEOF
7281 cat confdefs.h >>conftest.$ac_ext
7282 cat >>conftest.$ac_ext <<_ACEOF
7283 /* end confdefs.h.  */
7284 #include <sys/types.h>
7285 #include <sys/stat.h>
7286
7287 #if defined(S_ISBLK) && defined(S_IFDIR)
7288 # if S_ISBLK (S_IFDIR)
7289 You lose.
7290 # endif
7291 #endif
7292
7293 #if defined(S_ISBLK) && defined(S_IFCHR)
7294 # if S_ISBLK (S_IFCHR)
7295 You lose.
7296 # endif
7297 #endif
7298
7299 #if defined(S_ISLNK) && defined(S_IFREG)
7300 # if S_ISLNK (S_IFREG)
7301 You lose.
7302 # endif
7303 #endif
7304
7305 #if defined(S_ISSOCK) && defined(S_IFREG)
7306 # if S_ISSOCK (S_IFREG)
7307 You lose.
7308 # endif
7309 #endif
7310
7311 _ACEOF
7312 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7313   $EGREP "You lose" >/dev/null 2>&1; then
7314   ac_cv_header_stat_broken=yes
7315 else
7316   ac_cv_header_stat_broken=no
7317 fi
7318 rm -f conftest*
7319
7320 fi
7321 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
7322 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
7323 if test $ac_cv_header_stat_broken = yes; then
7324
7325 cat >>confdefs.h <<\_ACEOF
7326 #define STAT_MACROS_BROKEN 1
7327 _ACEOF
7328
7329 fi
7330
7331
7332
7333
7334
7335
7336
7337 for ac_header in sys/mount.h sys/statfs.h sys/user.h sys/vfs.h
7338 do
7339 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7340 echo "$as_me:$LINENO: checking for $ac_header" >&5
7341 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7342 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7343   echo $ECHO_N "(cached) $ECHO_C" >&6
7344 else
7345   cat >conftest.$ac_ext <<_ACEOF
7346 /* confdefs.h.  */
7347 _ACEOF
7348 cat confdefs.h >>conftest.$ac_ext
7349 cat >>conftest.$ac_ext <<_ACEOF
7350 /* end confdefs.h.  */
7351 #include <sys/types.h>
7352      #if HAVE_SYS_PARAM_H
7353      # include <sys/param.h>
7354      #endif
7355
7356 #include <$ac_header>
7357 _ACEOF
7358 rm -f conftest.$ac_objext
7359 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7360   (eval $ac_compile) 2>conftest.er1
7361   ac_status=$?
7362   grep -v '^ *+' conftest.er1 >conftest.err
7363   rm -f conftest.er1
7364   cat conftest.err >&5
7365   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7366   (exit $ac_status); } &&
7367          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
7368   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7369   (eval $ac_try) 2>&5
7370   ac_status=$?
7371   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7372   (exit $ac_status); }; } &&
7373          { ac_try='test -s conftest.$ac_objext'
7374   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7375   (eval $ac_try) 2>&5
7376   ac_status=$?
7377   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7378   (exit $ac_status); }; }; then
7379   eval "$as_ac_Header=yes"
7380 else
7381   echo "$as_me: failed program was:" >&5
7382 sed 's/^/| /' conftest.$ac_ext >&5
7383
7384 eval "$as_ac_Header=no"
7385 fi
7386 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7387 fi
7388 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7389 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7390 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7391   cat >>confdefs.h <<_ACEOF
7392 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7393 _ACEOF
7394
7395 fi
7396
7397 done
7398
7399
7400
7401
7402
7403
7404
7405
7406 for ac_header in net/if.h net/if_arp.h net/if_dl.h net/if_types.h net/route.h netipx/ipx.h
7407 do
7408 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7409 echo "$as_me:$LINENO: checking for $ac_header" >&5
7410 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7411 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7412   echo $ECHO_N "(cached) $ECHO_C" >&6
7413 else
7414   cat >conftest.$ac_ext <<_ACEOF
7415 /* confdefs.h.  */
7416 _ACEOF
7417 cat confdefs.h >>conftest.$ac_ext
7418 cat >>conftest.$ac_ext <<_ACEOF
7419 /* end confdefs.h.  */
7420 #include <sys/types.h>
7421      #if HAVE_SYS_SOCKET_H
7422      # include <sys/socket.h>
7423      #endif
7424
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   eval "$as_ac_Header=yes"
7449 else
7450   echo "$as_me: failed program was:" >&5
7451 sed 's/^/| /' conftest.$ac_ext >&5
7452
7453 eval "$as_ac_Header=no"
7454 fi
7455 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7456 fi
7457 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7458 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7459 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7460   cat >>confdefs.h <<_ACEOF
7461 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7462 _ACEOF
7463
7464 fi
7465
7466 done
7467
7468
7469
7470 for ac_header in resolv.h
7471 do
7472 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7473 echo "$as_me:$LINENO: checking for $ac_header" >&5
7474 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7475 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7476   echo $ECHO_N "(cached) $ECHO_C" >&6
7477 else
7478   cat >conftest.$ac_ext <<_ACEOF
7479 /* confdefs.h.  */
7480 _ACEOF
7481 cat confdefs.h >>conftest.$ac_ext
7482 cat >>conftest.$ac_ext <<_ACEOF
7483 /* end confdefs.h.  */
7484 #include <sys/types.h>
7485      #if HAVE_SYS_SOCKET_H
7486      # include <sys/socket.h>
7487      #endif
7488      #if HAVE_NETINET_IN_H
7489      # include <netinet/in.h>
7490      #endif
7491      #if HAVE_ARPA_NAMESER_H
7492      # include <arpa/nameser.h>
7493      #endif
7494
7495 #include <$ac_header>
7496 _ACEOF
7497 rm -f conftest.$ac_objext
7498 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7499   (eval $ac_compile) 2>conftest.er1
7500   ac_status=$?
7501   grep -v '^ *+' conftest.er1 >conftest.err
7502   rm -f conftest.er1
7503   cat conftest.err >&5
7504   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7505   (exit $ac_status); } &&
7506          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
7507   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7508   (eval $ac_try) 2>&5
7509   ac_status=$?
7510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7511   (exit $ac_status); }; } &&
7512          { ac_try='test -s conftest.$ac_objext'
7513   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7514   (eval $ac_try) 2>&5
7515   ac_status=$?
7516   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7517   (exit $ac_status); }; }; then
7518   eval "$as_ac_Header=yes"
7519 else
7520   echo "$as_me: failed program was:" >&5
7521 sed 's/^/| /' conftest.$ac_ext >&5
7522
7523 eval "$as_ac_Header=no"
7524 fi
7525 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7526 fi
7527 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7528 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7529 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7530   cat >>confdefs.h <<_ACEOF
7531 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7532 _ACEOF
7533
7534 fi
7535
7536 done
7537
7538
7539
7540 for ac_header in ucontext.h
7541 do
7542 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7543 echo "$as_me:$LINENO: checking for $ac_header" >&5
7544 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7545 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7546   echo $ECHO_N "(cached) $ECHO_C" >&6
7547 else
7548   cat >conftest.$ac_ext <<_ACEOF
7549 /* confdefs.h.  */
7550 _ACEOF
7551 cat confdefs.h >>conftest.$ac_ext
7552 cat >>conftest.$ac_ext <<_ACEOF
7553 /* end confdefs.h.  */
7554 #include <signal.h>
7555
7556 #include <$ac_header>
7557 _ACEOF
7558 rm -f conftest.$ac_objext
7559 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7560   (eval $ac_compile) 2>conftest.er1
7561   ac_status=$?
7562   grep -v '^ *+' conftest.er1 >conftest.err
7563   rm -f conftest.er1
7564   cat conftest.err >&5
7565   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7566   (exit $ac_status); } &&
7567          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
7568   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7569   (eval $ac_try) 2>&5
7570   ac_status=$?
7571   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7572   (exit $ac_status); }; } &&
7573          { ac_try='test -s conftest.$ac_objext'
7574   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7575   (eval $ac_try) 2>&5
7576   ac_status=$?
7577   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7578   (exit $ac_status); }; }; then
7579   eval "$as_ac_Header=yes"
7580 else
7581   echo "$as_me: failed program was:" >&5
7582 sed 's/^/| /' conftest.$ac_ext >&5
7583
7584 eval "$as_ac_Header=no"
7585 fi
7586 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7587 fi
7588 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7589 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7590 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7591   cat >>confdefs.h <<_ACEOF
7592 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7593 _ACEOF
7594
7595 fi
7596
7597 done
7598
7599
7600
7601
7602 for ac_header in linux/ipx.h linux/videodev.h
7603 do
7604 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7605 echo "$as_me:$LINENO: checking for $ac_header" >&5
7606 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7607 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7608   echo $ECHO_N "(cached) $ECHO_C" >&6
7609 else
7610   cat >conftest.$ac_ext <<_ACEOF
7611 /* confdefs.h.  */
7612 _ACEOF
7613 cat confdefs.h >>conftest.$ac_ext
7614 cat >>conftest.$ac_ext <<_ACEOF
7615 /* end confdefs.h.  */
7616 #ifdef HAVE_SYS_TIME_H
7617 #include <sys/time.h>
7618 #endif
7619 #include <sys/types.h>
7620 #ifdef HAVE_ASM_TYPES_H
7621 #include <asm/types.h>
7622 #endif
7623
7624 #include <$ac_header>
7625 _ACEOF
7626 rm -f conftest.$ac_objext
7627 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7628   (eval $ac_compile) 2>conftest.er1
7629   ac_status=$?
7630   grep -v '^ *+' conftest.er1 >conftest.err
7631   rm -f conftest.er1
7632   cat conftest.err >&5
7633   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7634   (exit $ac_status); } &&
7635          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
7636   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7637   (eval $ac_try) 2>&5
7638   ac_status=$?
7639   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7640   (exit $ac_status); }; } &&
7641          { ac_try='test -s conftest.$ac_objext'
7642   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7643   (eval $ac_try) 2>&5
7644   ac_status=$?
7645   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7646   (exit $ac_status); }; }; then
7647   eval "$as_ac_Header=yes"
7648 else
7649   echo "$as_me: failed program was:" >&5
7650 sed 's/^/| /' conftest.$ac_ext >&5
7651
7652 eval "$as_ac_Header=no"
7653 fi
7654 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7655 fi
7656 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7657 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7658 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7659   cat >>confdefs.h <<_ACEOF
7660 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7661 _ACEOF
7662
7663 fi
7664
7665 done
7666
7667
7668
7669 for ac_header in linux/capi.h
7670 do
7671 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7672 echo "$as_me:$LINENO: checking for $ac_header" >&5
7673 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7674 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7675   echo $ECHO_N "(cached) $ECHO_C" >&6
7676 else
7677   cat >conftest.$ac_ext <<_ACEOF
7678 /* confdefs.h.  */
7679 _ACEOF
7680 cat confdefs.h >>conftest.$ac_ext
7681 cat >>conftest.$ac_ext <<_ACEOF
7682 /* end confdefs.h.  */
7683 #define __user
7684
7685 #include <$ac_header>
7686 _ACEOF
7687 rm -f conftest.$ac_objext
7688 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7689   (eval $ac_compile) 2>conftest.er1
7690   ac_status=$?
7691   grep -v '^ *+' conftest.er1 >conftest.err
7692   rm -f conftest.er1
7693   cat conftest.err >&5
7694   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7695   (exit $ac_status); } &&
7696          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
7697   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7698   (eval $ac_try) 2>&5
7699   ac_status=$?
7700   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7701   (exit $ac_status); }; } &&
7702          { ac_try='test -s conftest.$ac_objext'
7703   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7704   (eval $ac_try) 2>&5
7705   ac_status=$?
7706   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7707   (exit $ac_status); }; }; then
7708   eval "$as_ac_Header=yes"
7709 else
7710   echo "$as_me: failed program was:" >&5
7711 sed 's/^/| /' conftest.$ac_ext >&5
7712
7713 eval "$as_ac_Header=no"
7714 fi
7715 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7716 fi
7717 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7718 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7719 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7720   cat >>confdefs.h <<_ACEOF
7721 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7722 _ACEOF
7723
7724 fi
7725
7726 done
7727
7728
7729
7730 if test "$have_x" = "yes"
7731 then
7732     XLIB="-lXext -lX11"
7733     ac_save_CPPFLAGS="$CPPFLAGS"
7734     CPPFLAGS="$CPPFLAGS $X_CFLAGS"
7735
7736
7737
7738
7739
7740
7741
7742
7743
7744
7745
7746 for ac_header in X11/Xlib.h \
7747                       X11/XKBlib.h \
7748                       X11/Xutil.h \
7749                       X11/extensions/shape.h \
7750                       X11/extensions/XInput.h \
7751                       X11/extensions/XShm.h \
7752                       X11/extensions/Xrandr.h \
7753                       X11/extensions/Xrender.h \
7754                       X11/extensions/xf86dga.h \
7755                       X11/extensions/xf86vmode.h
7756 do
7757 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7758 echo "$as_me:$LINENO: checking for $ac_header" >&5
7759 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7760 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7761   echo $ECHO_N "(cached) $ECHO_C" >&6
7762 else
7763   cat >conftest.$ac_ext <<_ACEOF
7764 /* confdefs.h.  */
7765 _ACEOF
7766 cat confdefs.h >>conftest.$ac_ext
7767 cat >>conftest.$ac_ext <<_ACEOF
7768 /* end confdefs.h.  */
7769 #ifdef HAVE_X11_XLIB_H
7770 # include <X11/Xlib.h>
7771 #endif
7772 #ifdef HAVE_X11_XUTIL_H
7773 # include <X11/Xutil.h>
7774 #endif
7775
7776 #include <$ac_header>
7777 _ACEOF
7778 rm -f conftest.$ac_objext
7779 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7780   (eval $ac_compile) 2>conftest.er1
7781   ac_status=$?
7782   grep -v '^ *+' conftest.er1 >conftest.err
7783   rm -f conftest.er1
7784   cat conftest.err >&5
7785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7786   (exit $ac_status); } &&
7787          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
7788   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7789   (eval $ac_try) 2>&5
7790   ac_status=$?
7791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7792   (exit $ac_status); }; } &&
7793          { ac_try='test -s conftest.$ac_objext'
7794   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7795   (eval $ac_try) 2>&5
7796   ac_status=$?
7797   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7798   (exit $ac_status); }; }; then
7799   eval "$as_ac_Header=yes"
7800 else
7801   echo "$as_me: failed program was:" >&5
7802 sed 's/^/| /' conftest.$ac_ext >&5
7803
7804 eval "$as_ac_Header=no"
7805 fi
7806 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7807 fi
7808 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7809 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7810 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7811   cat >>confdefs.h <<_ACEOF
7812 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7813 _ACEOF
7814
7815 fi
7816
7817 done
7818
7819
7820                 if test "$ac_cv_header_X11_XKBlib_h" = "yes"
7821         then
7822               echo "$as_me:$LINENO: checking for XkbQueryExtension in -lX11" >&5
7823 echo $ECHO_N "checking for XkbQueryExtension in -lX11... $ECHO_C" >&6
7824 if test "${ac_cv_lib_X11_XkbQueryExtension+set}" = set; then
7825   echo $ECHO_N "(cached) $ECHO_C" >&6
7826 else
7827   ac_check_lib_save_LIBS=$LIBS
7828 LIBS="-lX11 $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
7829 cat >conftest.$ac_ext <<_ACEOF
7830 /* confdefs.h.  */
7831 _ACEOF
7832 cat confdefs.h >>conftest.$ac_ext
7833 cat >>conftest.$ac_ext <<_ACEOF
7834 /* end confdefs.h.  */
7835
7836 /* Override any gcc2 internal prototype to avoid an error.  */
7837 #ifdef __cplusplus
7838 extern "C"
7839 #endif
7840 /* We use char because int might match the return type of a gcc2
7841    builtin and then its argument prototype would still apply.  */
7842 char XkbQueryExtension ();
7843 int
7844 main ()
7845 {
7846 XkbQueryExtension ();
7847   ;
7848   return 0;
7849 }
7850 _ACEOF
7851 rm -f conftest.$ac_objext conftest$ac_exeext
7852 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7853   (eval $ac_link) 2>conftest.er1
7854   ac_status=$?
7855   grep -v '^ *+' conftest.er1 >conftest.err
7856   rm -f conftest.er1
7857   cat conftest.err >&5
7858   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7859   (exit $ac_status); } &&
7860          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
7861   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7862   (eval $ac_try) 2>&5
7863   ac_status=$?
7864   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7865   (exit $ac_status); }; } &&
7866          { ac_try='test -s conftest$ac_exeext'
7867   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7868   (eval $ac_try) 2>&5
7869   ac_status=$?
7870   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7871   (exit $ac_status); }; }; then
7872   ac_cv_lib_X11_XkbQueryExtension=yes
7873 else
7874   echo "$as_me: failed program was:" >&5
7875 sed 's/^/| /' conftest.$ac_ext >&5
7876
7877 ac_cv_lib_X11_XkbQueryExtension=no
7878 fi
7879 rm -f conftest.err conftest.$ac_objext \
7880       conftest$ac_exeext conftest.$ac_ext
7881 LIBS=$ac_check_lib_save_LIBS
7882 fi
7883 echo "$as_me:$LINENO: result: $ac_cv_lib_X11_XkbQueryExtension" >&5
7884 echo "${ECHO_T}$ac_cv_lib_X11_XkbQueryExtension" >&6
7885 if test $ac_cv_lib_X11_XkbQueryExtension = yes; then
7886
7887 cat >>confdefs.h <<\_ACEOF
7888 #define HAVE_XKB 1
7889 _ACEOF
7890
7891 fi
7892
7893         fi
7894
7895                 if test "$ac_cv_header_X11_extensions_XShm_h" = "yes"
7896         then
7897               echo "$as_me:$LINENO: checking for XShmQueryExtension in -lXext" >&5
7898 echo $ECHO_N "checking for XShmQueryExtension in -lXext... $ECHO_C" >&6
7899 if test "${ac_cv_lib_Xext_XShmQueryExtension+set}" = set; then
7900   echo $ECHO_N "(cached) $ECHO_C" >&6
7901 else
7902   ac_check_lib_save_LIBS=$LIBS
7903 LIBS="-lXext $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
7904 cat >conftest.$ac_ext <<_ACEOF
7905 /* confdefs.h.  */
7906 _ACEOF
7907 cat confdefs.h >>conftest.$ac_ext
7908 cat >>conftest.$ac_ext <<_ACEOF
7909 /* end confdefs.h.  */
7910
7911 /* Override any gcc2 internal prototype to avoid an error.  */
7912 #ifdef __cplusplus
7913 extern "C"
7914 #endif
7915 /* We use char because int might match the return type of a gcc2
7916    builtin and then its argument prototype would still apply.  */
7917 char XShmQueryExtension ();
7918 int
7919 main ()
7920 {
7921 XShmQueryExtension ();
7922   ;
7923   return 0;
7924 }
7925 _ACEOF
7926 rm -f conftest.$ac_objext conftest$ac_exeext
7927 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7928   (eval $ac_link) 2>conftest.er1
7929   ac_status=$?
7930   grep -v '^ *+' conftest.er1 >conftest.err
7931   rm -f conftest.er1
7932   cat conftest.err >&5
7933   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7934   (exit $ac_status); } &&
7935          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
7936   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7937   (eval $ac_try) 2>&5
7938   ac_status=$?
7939   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7940   (exit $ac_status); }; } &&
7941          { ac_try='test -s conftest$ac_exeext'
7942   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7943   (eval $ac_try) 2>&5
7944   ac_status=$?
7945   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7946   (exit $ac_status); }; }; then
7947   ac_cv_lib_Xext_XShmQueryExtension=yes
7948 else
7949   echo "$as_me: failed program was:" >&5
7950 sed 's/^/| /' conftest.$ac_ext >&5
7951
7952 ac_cv_lib_Xext_XShmQueryExtension=no
7953 fi
7954 rm -f conftest.err conftest.$ac_objext \
7955       conftest$ac_exeext conftest.$ac_ext
7956 LIBS=$ac_check_lib_save_LIBS
7957 fi
7958 echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShmQueryExtension" >&5
7959 echo "${ECHO_T}$ac_cv_lib_Xext_XShmQueryExtension" >&6
7960 if test $ac_cv_lib_Xext_XShmQueryExtension = yes; then
7961
7962 cat >>confdefs.h <<\_ACEOF
7963 #define HAVE_LIBXXSHM 1
7964 _ACEOF
7965
7966 fi
7967
7968         fi
7969
7970                 if test "$ac_cv_header_X11_extensions_shape_h" = "yes"
7971         then
7972               echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
7973 echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6
7974 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
7975   echo $ECHO_N "(cached) $ECHO_C" >&6
7976 else
7977   ac_check_lib_save_LIBS=$LIBS
7978 LIBS="-lXext $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
7979 cat >conftest.$ac_ext <<_ACEOF
7980 /* confdefs.h.  */
7981 _ACEOF
7982 cat confdefs.h >>conftest.$ac_ext
7983 cat >>conftest.$ac_ext <<_ACEOF
7984 /* end confdefs.h.  */
7985
7986 /* Override any gcc2 internal prototype to avoid an error.  */
7987 #ifdef __cplusplus
7988 extern "C"
7989 #endif
7990 /* We use char because int might match the return type of a gcc2
7991    builtin and then its argument prototype would still apply.  */
7992 char XShapeQueryExtension ();
7993 int
7994 main ()
7995 {
7996 XShapeQueryExtension ();
7997   ;
7998   return 0;
7999 }
8000 _ACEOF
8001 rm -f conftest.$ac_objext conftest$ac_exeext
8002 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8003   (eval $ac_link) 2>conftest.er1
8004   ac_status=$?
8005   grep -v '^ *+' conftest.er1 >conftest.err
8006   rm -f conftest.er1
8007   cat conftest.err >&5
8008   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8009   (exit $ac_status); } &&
8010          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8011   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8012   (eval $ac_try) 2>&5
8013   ac_status=$?
8014   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8015   (exit $ac_status); }; } &&
8016          { ac_try='test -s conftest$ac_exeext'
8017   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8018   (eval $ac_try) 2>&5
8019   ac_status=$?
8020   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8021   (exit $ac_status); }; }; then
8022   ac_cv_lib_Xext_XShapeQueryExtension=yes
8023 else
8024   echo "$as_me: failed program was:" >&5
8025 sed 's/^/| /' conftest.$ac_ext >&5
8026
8027 ac_cv_lib_Xext_XShapeQueryExtension=no
8028 fi
8029 rm -f conftest.err conftest.$ac_objext \
8030       conftest$ac_exeext conftest.$ac_ext
8031 LIBS=$ac_check_lib_save_LIBS
8032 fi
8033 echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
8034 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6
8035 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
8036
8037 cat >>confdefs.h <<\_ACEOF
8038 #define HAVE_LIBXSHAPE 1
8039 _ACEOF
8040
8041 fi
8042
8043         fi
8044
8045                 if test "$ac_cv_header_X11_extensions_xf86dga_h" = "yes"
8046         then
8047               echo "$as_me:$LINENO: checking for XDGAQueryExtension in -lXxf86dga" >&5
8048 echo $ECHO_N "checking for XDGAQueryExtension in -lXxf86dga... $ECHO_C" >&6
8049 if test "${ac_cv_lib_Xxf86dga_XDGAQueryExtension+set}" = set; then
8050   echo $ECHO_N "(cached) $ECHO_C" >&6
8051 else
8052   ac_check_lib_save_LIBS=$LIBS
8053 LIBS="-lXxf86dga $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
8054 cat >conftest.$ac_ext <<_ACEOF
8055 /* confdefs.h.  */
8056 _ACEOF
8057 cat confdefs.h >>conftest.$ac_ext
8058 cat >>conftest.$ac_ext <<_ACEOF
8059 /* end confdefs.h.  */
8060
8061 /* Override any gcc2 internal prototype to avoid an error.  */
8062 #ifdef __cplusplus
8063 extern "C"
8064 #endif
8065 /* We use char because int might match the return type of a gcc2
8066    builtin and then its argument prototype would still apply.  */
8067 char XDGAQueryExtension ();
8068 int
8069 main ()
8070 {
8071 XDGAQueryExtension ();
8072   ;
8073   return 0;
8074 }
8075 _ACEOF
8076 rm -f conftest.$ac_objext conftest$ac_exeext
8077 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8078   (eval $ac_link) 2>conftest.er1
8079   ac_status=$?
8080   grep -v '^ *+' conftest.er1 >conftest.err
8081   rm -f conftest.er1
8082   cat conftest.err >&5
8083   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8084   (exit $ac_status); } &&
8085          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8086   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8087   (eval $ac_try) 2>&5
8088   ac_status=$?
8089   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8090   (exit $ac_status); }; } &&
8091          { ac_try='test -s conftest$ac_exeext'
8092   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8093   (eval $ac_try) 2>&5
8094   ac_status=$?
8095   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8096   (exit $ac_status); }; }; then
8097   ac_cv_lib_Xxf86dga_XDGAQueryExtension=yes
8098 else
8099   echo "$as_me: failed program was:" >&5
8100 sed 's/^/| /' conftest.$ac_ext >&5
8101
8102 ac_cv_lib_Xxf86dga_XDGAQueryExtension=no
8103 fi
8104 rm -f conftest.err conftest.$ac_objext \
8105       conftest$ac_exeext conftest.$ac_ext
8106 LIBS=$ac_check_lib_save_LIBS
8107 fi
8108 echo "$as_me:$LINENO: result: $ac_cv_lib_Xxf86dga_XDGAQueryExtension" >&5
8109 echo "${ECHO_T}$ac_cv_lib_Xxf86dga_XDGAQueryExtension" >&6
8110 if test $ac_cv_lib_Xxf86dga_XDGAQueryExtension = yes; then
8111
8112 cat >>confdefs.h <<\_ACEOF
8113 #define HAVE_LIBXXF86DGA2 1
8114 _ACEOF
8115
8116                   X_PRE_LIBS="$X_PRE_LIBS -lXxf86dga"
8117
8118 fi
8119
8120         fi
8121
8122                 if test "$ac_cv_header_X11_extensions_xf86vmode_h" = "yes"
8123         then
8124                 echo "$as_me:$LINENO: checking for XF86VidModeQueryExtension in -lXxf86vm" >&5
8125 echo $ECHO_N "checking for XF86VidModeQueryExtension in -lXxf86vm... $ECHO_C" >&6
8126 if test "${ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension+set}" = set; then
8127   echo $ECHO_N "(cached) $ECHO_C" >&6
8128 else
8129   ac_check_lib_save_LIBS=$LIBS
8130 LIBS="-lXxf86vm $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
8131 cat >conftest.$ac_ext <<_ACEOF
8132 /* confdefs.h.  */
8133 _ACEOF
8134 cat confdefs.h >>conftest.$ac_ext
8135 cat >>conftest.$ac_ext <<_ACEOF
8136 /* end confdefs.h.  */
8137
8138 /* Override any gcc2 internal prototype to avoid an error.  */
8139 #ifdef __cplusplus
8140 extern "C"
8141 #endif
8142 /* We use char because int might match the return type of a gcc2
8143    builtin and then its argument prototype would still apply.  */
8144 char XF86VidModeQueryExtension ();
8145 int
8146 main ()
8147 {
8148 XF86VidModeQueryExtension ();
8149   ;
8150   return 0;
8151 }
8152 _ACEOF
8153 rm -f conftest.$ac_objext conftest$ac_exeext
8154 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8155   (eval $ac_link) 2>conftest.er1
8156   ac_status=$?
8157   grep -v '^ *+' conftest.er1 >conftest.err
8158   rm -f conftest.er1
8159   cat conftest.err >&5
8160   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8161   (exit $ac_status); } &&
8162          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8163   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8164   (eval $ac_try) 2>&5
8165   ac_status=$?
8166   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8167   (exit $ac_status); }; } &&
8168          { ac_try='test -s conftest$ac_exeext'
8169   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8170   (eval $ac_try) 2>&5
8171   ac_status=$?
8172   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8173   (exit $ac_status); }; }; then
8174   ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=yes
8175 else
8176   echo "$as_me: failed program was:" >&5
8177 sed 's/^/| /' conftest.$ac_ext >&5
8178
8179 ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=no
8180 fi
8181 rm -f conftest.err conftest.$ac_objext \
8182       conftest$ac_exeext conftest.$ac_ext
8183 LIBS=$ac_check_lib_save_LIBS
8184 fi
8185 echo "$as_me:$LINENO: result: $ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&5
8186 echo "${ECHO_T}$ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&6
8187 if test $ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension = yes; then
8188
8189 cat >>confdefs.h <<\_ACEOF
8190 #define HAVE_LIBXXF86VM 1
8191 _ACEOF
8192
8193                      X_PRE_LIBS="$X_PRE_LIBS -lXxf86vm"
8194
8195 fi
8196
8197         fi
8198
8199                 if test "$ac_cv_header_X11_extensions_Xrandr_h" = "yes"
8200         then
8201                 cat >conftest.$ac_ext <<_ACEOF
8202 /* confdefs.h.  */
8203 _ACEOF
8204 cat confdefs.h >>conftest.$ac_ext
8205 cat >>conftest.$ac_ext <<_ACEOF
8206 /* end confdefs.h.  */
8207 #include <X11/Xlib.h>
8208 #include <X11/extensions/Xrandr.h>
8209 int
8210 main ()
8211 {
8212 static typeof(XRRSetScreenConfigAndRate) * func;
8213   ;
8214   return 0;
8215 }
8216 _ACEOF
8217 rm -f conftest.$ac_objext
8218 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8219   (eval $ac_compile) 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); } &&
8226          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8227   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8228   (eval $ac_try) 2>&5
8229   ac_status=$?
8230   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8231   (exit $ac_status); }; } &&
8232          { ac_try='test -s conftest.$ac_objext'
8233   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8234   (eval $ac_try) 2>&5
8235   ac_status=$?
8236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8237   (exit $ac_status); }; }; then
8238
8239 cat >>confdefs.h <<\_ACEOF
8240 #define HAVE_LIBXRANDR 1
8241 _ACEOF
8242
8243 else
8244   echo "$as_me: failed program was:" >&5
8245 sed 's/^/| /' conftest.$ac_ext >&5
8246
8247 fi
8248 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8249         fi
8250
8251                 if test "$ac_cv_header_X11_extensions_Xrender_h" = "yes"
8252         then
8253               echo "$as_me:$LINENO: checking for XRenderSetPictureTransform in -lXrender" >&5
8254 echo $ECHO_N "checking for XRenderSetPictureTransform in -lXrender... $ECHO_C" >&6
8255 if test "${ac_cv_lib_Xrender_XRenderSetPictureTransform+set}" = set; then
8256   echo $ECHO_N "(cached) $ECHO_C" >&6
8257 else
8258   ac_check_lib_save_LIBS=$LIBS
8259 LIBS="-lXrender $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
8260 cat >conftest.$ac_ext <<_ACEOF
8261 /* confdefs.h.  */
8262 _ACEOF
8263 cat confdefs.h >>conftest.$ac_ext
8264 cat >>conftest.$ac_ext <<_ACEOF
8265 /* end confdefs.h.  */
8266
8267 /* Override any gcc2 internal prototype to avoid an error.  */
8268 #ifdef __cplusplus
8269 extern "C"
8270 #endif
8271 /* We use char because int might match the return type of a gcc2
8272    builtin and then its argument prototype would still apply.  */
8273 char XRenderSetPictureTransform ();
8274 int
8275 main ()
8276 {
8277 XRenderSetPictureTransform ();
8278   ;
8279   return 0;
8280 }
8281 _ACEOF
8282 rm -f conftest.$ac_objext conftest$ac_exeext
8283 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8284   (eval $ac_link) 2>conftest.er1
8285   ac_status=$?
8286   grep -v '^ *+' conftest.er1 >conftest.err
8287   rm -f conftest.er1
8288   cat conftest.err >&5
8289   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8290   (exit $ac_status); } &&
8291          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8292   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8293   (eval $ac_try) 2>&5
8294   ac_status=$?
8295   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8296   (exit $ac_status); }; } &&
8297          { ac_try='test -s conftest$ac_exeext'
8298   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8299   (eval $ac_try) 2>&5
8300   ac_status=$?
8301   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8302   (exit $ac_status); }; }; then
8303   ac_cv_lib_Xrender_XRenderSetPictureTransform=yes
8304 else
8305   echo "$as_me: failed program was:" >&5
8306 sed 's/^/| /' conftest.$ac_ext >&5
8307
8308 ac_cv_lib_Xrender_XRenderSetPictureTransform=no
8309 fi
8310 rm -f conftest.err conftest.$ac_objext \
8311       conftest$ac_exeext conftest.$ac_ext
8312 LIBS=$ac_check_lib_save_LIBS
8313 fi
8314 echo "$as_me:$LINENO: result: $ac_cv_lib_Xrender_XRenderSetPictureTransform" >&5
8315 echo "${ECHO_T}$ac_cv_lib_Xrender_XRenderSetPictureTransform" >&6
8316 if test $ac_cv_lib_Xrender_XRenderSetPictureTransform = yes; then
8317
8318 cat >>confdefs.h <<\_ACEOF
8319 #define HAVE_XRENDERSETPICTURETRANSFORM 1
8320 _ACEOF
8321
8322 fi
8323
8324         fi
8325
8326         if test "x$with_opengl" != "xno"
8327     then
8328
8329
8330
8331
8332 for ac_header in GL/gl.h GL/glx.h GL/glext.h GL/glu.h
8333 do
8334 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8335 echo "$as_me:$LINENO: checking for $ac_header" >&5
8336 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8337 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8338   echo $ECHO_N "(cached) $ECHO_C" >&6
8339 else
8340   cat >conftest.$ac_ext <<_ACEOF
8341 /* confdefs.h.  */
8342 _ACEOF
8343 cat confdefs.h >>conftest.$ac_ext
8344 cat >>conftest.$ac_ext <<_ACEOF
8345 /* end confdefs.h.  */
8346 #ifdef HAVE_GL_GLX_H
8347 # include <GL/glx.h>
8348 #endif
8349
8350 #include <$ac_header>
8351 _ACEOF
8352 rm -f conftest.$ac_objext
8353 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8354   (eval $ac_compile) 2>conftest.er1
8355   ac_status=$?
8356   grep -v '^ *+' conftest.er1 >conftest.err
8357   rm -f conftest.er1
8358   cat conftest.err >&5
8359   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8360   (exit $ac_status); } &&
8361          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8362   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8363   (eval $ac_try) 2>&5
8364   ac_status=$?
8365   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8366   (exit $ac_status); }; } &&
8367          { ac_try='test -s conftest.$ac_objext'
8368   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8369   (eval $ac_try) 2>&5
8370   ac_status=$?
8371   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8372   (exit $ac_status); }; }; then
8373   eval "$as_ac_Header=yes"
8374 else
8375   echo "$as_me: failed program was:" >&5
8376 sed 's/^/| /' conftest.$ac_ext >&5
8377
8378 eval "$as_ac_Header=no"
8379 fi
8380 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8381 fi
8382 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8383 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8384 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8385   cat >>confdefs.h <<_ACEOF
8386 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8387 _ACEOF
8388
8389 fi
8390
8391 done
8392
8393         if test "$ac_cv_header_GL_gl_h" = "yes" -a "$ac_cv_header_GL_glx_h" = "yes"
8394         then
8395                     echo "$as_me:$LINENO: checking for up-to-date OpenGL version" >&5
8396 echo $ECHO_N "checking for up-to-date OpenGL version... $ECHO_C" >&6
8397 if test "${wine_cv_opengl_version_OK+set}" = set; then
8398   echo $ECHO_N "(cached) $ECHO_C" >&6
8399 else
8400   cat >conftest.$ac_ext <<_ACEOF
8401 /* confdefs.h.  */
8402 _ACEOF
8403 cat confdefs.h >>conftest.$ac_ext
8404 cat >>conftest.$ac_ext <<_ACEOF
8405 /* end confdefs.h.  */
8406 #include <GL/gl.h>
8407 int
8408 main ()
8409 {
8410 GLenum test = GL_UNSIGNED_SHORT_5_6_5;
8411   ;
8412   return 0;
8413 }
8414 _ACEOF
8415 rm -f conftest.$ac_objext
8416 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8417   (eval $ac_compile) 2>conftest.er1
8418   ac_status=$?
8419   grep -v '^ *+' conftest.er1 >conftest.err
8420   rm -f conftest.er1
8421   cat conftest.err >&5
8422   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8423   (exit $ac_status); } &&
8424          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8425   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8426   (eval $ac_try) 2>&5
8427   ac_status=$?
8428   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8429   (exit $ac_status); }; } &&
8430          { ac_try='test -s conftest.$ac_objext'
8431   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8432   (eval $ac_try) 2>&5
8433   ac_status=$?
8434   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8435   (exit $ac_status); }; }; then
8436   wine_cv_opengl_version_OK="yes"
8437 else
8438   echo "$as_me: failed program was:" >&5
8439 sed 's/^/| /' conftest.$ac_ext >&5
8440
8441 wine_cv_opengl_version_OK="no"
8442
8443 fi
8444 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8445
8446 fi
8447 echo "$as_me:$LINENO: result: $wine_cv_opengl_version_OK" >&5
8448 echo "${ECHO_T}$wine_cv_opengl_version_OK" >&6
8449
8450             if test "$wine_cv_opengl_version_OK" = "yes"
8451             then
8452                                 echo "$as_me:$LINENO: checking for glXCreateContext in -lGL" >&5
8453 echo $ECHO_N "checking for glXCreateContext in -lGL... $ECHO_C" >&6
8454 if test "${ac_cv_lib_GL_glXCreateContext+set}" = set; then
8455   echo $ECHO_N "(cached) $ECHO_C" >&6
8456 else
8457   ac_check_lib_save_LIBS=$LIBS
8458 LIBS="-lGL $X_LIBS -lXext -lX11 -lm $X_EXTRA_LIBS $LIBS"
8459 cat >conftest.$ac_ext <<_ACEOF
8460 /* confdefs.h.  */
8461 _ACEOF
8462 cat confdefs.h >>conftest.$ac_ext
8463 cat >>conftest.$ac_ext <<_ACEOF
8464 /* end confdefs.h.  */
8465
8466 /* Override any gcc2 internal prototype to avoid an error.  */
8467 #ifdef __cplusplus
8468 extern "C"
8469 #endif
8470 /* We use char because int might match the return type of a gcc2
8471    builtin and then its argument prototype would still apply.  */
8472 char glXCreateContext ();
8473 int
8474 main ()
8475 {
8476 glXCreateContext ();
8477   ;
8478   return 0;
8479 }
8480 _ACEOF
8481 rm -f conftest.$ac_objext conftest$ac_exeext
8482 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8483   (eval $ac_link) 2>conftest.er1
8484   ac_status=$?
8485   grep -v '^ *+' conftest.er1 >conftest.err
8486   rm -f conftest.er1
8487   cat conftest.err >&5
8488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8489   (exit $ac_status); } &&
8490          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8491   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8492   (eval $ac_try) 2>&5
8493   ac_status=$?
8494   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8495   (exit $ac_status); }; } &&
8496          { ac_try='test -s conftest$ac_exeext'
8497   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8498   (eval $ac_try) 2>&5
8499   ac_status=$?
8500   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8501   (exit $ac_status); }; }; then
8502   ac_cv_lib_GL_glXCreateContext=yes
8503 else
8504   echo "$as_me: failed program was:" >&5
8505 sed 's/^/| /' conftest.$ac_ext >&5
8506
8507 ac_cv_lib_GL_glXCreateContext=no
8508 fi
8509 rm -f conftest.err conftest.$ac_objext \
8510       conftest$ac_exeext conftest.$ac_ext
8511 LIBS=$ac_check_lib_save_LIBS
8512 fi
8513 echo "$as_me:$LINENO: result: $ac_cv_lib_GL_glXCreateContext" >&5
8514 echo "${ECHO_T}$ac_cv_lib_GL_glXCreateContext" >&6
8515 if test $ac_cv_lib_GL_glXCreateContext = yes; then
8516   OPENGL_LIBS="-lGL"
8517
8518 fi
8519
8520
8521                 if test "$ac_cv_lib_GL_glXCreateContext" = "yes"
8522                 then
8523                         OPENGLFILES='$(OPENGLFILES)'
8524
8525 cat >>confdefs.h <<\_ACEOF
8526 #define HAVE_OPENGL 1
8527 _ACEOF
8528
8529                 else
8530                     if test -f /usr/X11R6/lib/libGL.a
8531                     then
8532                        { { echo "$as_me:$LINENO: error: /usr/X11R6/lib/libGL.a is present on your system.
8533 This prevents linking to OpenGL. Delete the file and restart configure." >&5
8534 echo "$as_me: error: /usr/X11R6/lib/libGL.a is present on your system.
8535 This prevents linking to OpenGL. Delete the file and restart configure." >&2;}
8536    { (exit 1); exit 1; }; }
8537                     fi
8538                 fi
8539
8540                                 echo "$as_me:$LINENO: checking for gluLookAt in -lGLU" >&5
8541 echo $ECHO_N "checking for gluLookAt in -lGLU... $ECHO_C" >&6
8542 if test "${ac_cv_lib_GLU_gluLookAt+set}" = set; then
8543   echo $ECHO_N "(cached) $ECHO_C" >&6
8544 else
8545   ac_check_lib_save_LIBS=$LIBS
8546 LIBS="-lGLU $OPENGL_LIBS $X_LIBS $X_PRE_LIBS -lXext -lX11 -lm $X_EXTRA_LIBS
8547                  $LIBS"
8548 cat >conftest.$ac_ext <<_ACEOF
8549 /* confdefs.h.  */
8550 _ACEOF
8551 cat confdefs.h >>conftest.$ac_ext
8552 cat >>conftest.$ac_ext <<_ACEOF
8553 /* end confdefs.h.  */
8554
8555 /* Override any gcc2 internal prototype to avoid an error.  */
8556 #ifdef __cplusplus
8557 extern "C"
8558 #endif
8559 /* We use char because int might match the return type of a gcc2
8560    builtin and then its argument prototype would still apply.  */
8561 char gluLookAt ();
8562 int
8563 main ()
8564 {
8565 gluLookAt ();
8566   ;
8567   return 0;
8568 }
8569 _ACEOF
8570 rm -f conftest.$ac_objext conftest$ac_exeext
8571 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8572   (eval $ac_link) 2>conftest.er1
8573   ac_status=$?
8574   grep -v '^ *+' conftest.er1 >conftest.err
8575   rm -f conftest.er1
8576   cat conftest.err >&5
8577   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8578   (exit $ac_status); } &&
8579          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8580   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8581   (eval $ac_try) 2>&5
8582   ac_status=$?
8583   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8584   (exit $ac_status); }; } &&
8585          { ac_try='test -s conftest$ac_exeext'
8586   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8587   (eval $ac_try) 2>&5
8588   ac_status=$?
8589   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8590   (exit $ac_status); }; }; then
8591   ac_cv_lib_GLU_gluLookAt=yes
8592 else
8593   echo "$as_me: failed program was:" >&5
8594 sed 's/^/| /' conftest.$ac_ext >&5
8595
8596 ac_cv_lib_GLU_gluLookAt=no
8597 fi
8598 rm -f conftest.err conftest.$ac_objext \
8599       conftest$ac_exeext conftest.$ac_ext
8600 LIBS=$ac_check_lib_save_LIBS
8601 fi
8602 echo "$as_me:$LINENO: result: $ac_cv_lib_GLU_gluLookAt" >&5
8603 echo "${ECHO_T}$ac_cv_lib_GLU_gluLookAt" >&6
8604 if test $ac_cv_lib_GLU_gluLookAt = yes; then
8605   OPENGL_LIBS="$OPENGL_LIBS -lGLU"
8606                              GLU32FILES='$(GLU32FILES)'
8607
8608 fi
8609
8610              fi
8611
8612                           echo "$as_me:$LINENO: checking for glutMainLoop in -lglut" >&5
8613 echo $ECHO_N "checking for glutMainLoop in -lglut... $ECHO_C" >&6
8614 if test "${ac_cv_lib_glut_glutMainLoop+set}" = set; then
8615   echo $ECHO_N "(cached) $ECHO_C" >&6
8616 else
8617   ac_check_lib_save_LIBS=$LIBS
8618 LIBS="-lglut $OPENGL_LIBS $X_LIBS $X_PRE_LIBS -lXmu -lXi -lX11 $X_EXTRA_LIBS $LIBS"
8619 cat >conftest.$ac_ext <<_ACEOF
8620 /* confdefs.h.  */
8621 _ACEOF
8622 cat confdefs.h >>conftest.$ac_ext
8623 cat >>conftest.$ac_ext <<_ACEOF
8624 /* end confdefs.h.  */
8625
8626 /* Override any gcc2 internal prototype to avoid an error.  */
8627 #ifdef __cplusplus
8628 extern "C"
8629 #endif
8630 /* We use char because int might match the return type of a gcc2
8631    builtin and then its argument prototype would still apply.  */
8632 char glutMainLoop ();
8633 int
8634 main ()
8635 {
8636 glutMainLoop ();
8637   ;
8638   return 0;
8639 }
8640 _ACEOF
8641 rm -f conftest.$ac_objext conftest$ac_exeext
8642 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8643   (eval $ac_link) 2>conftest.er1
8644   ac_status=$?
8645   grep -v '^ *+' conftest.er1 >conftest.err
8646   rm -f conftest.er1
8647   cat conftest.err >&5
8648   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8649   (exit $ac_status); } &&
8650          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8651   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8652   (eval $ac_try) 2>&5
8653   ac_status=$?
8654   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8655   (exit $ac_status); }; } &&
8656          { ac_try='test -s conftest$ac_exeext'
8657   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8658   (eval $ac_try) 2>&5
8659   ac_status=$?
8660   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8661   (exit $ac_status); }; }; then
8662   ac_cv_lib_glut_glutMainLoop=yes
8663 else
8664   echo "$as_me: failed program was:" >&5
8665 sed 's/^/| /' conftest.$ac_ext >&5
8666
8667 ac_cv_lib_glut_glutMainLoop=no
8668 fi
8669 rm -f conftest.err conftest.$ac_objext \
8670       conftest$ac_exeext conftest.$ac_ext
8671 LIBS=$ac_check_lib_save_LIBS
8672 fi
8673 echo "$as_me:$LINENO: result: $ac_cv_lib_glut_glutMainLoop" >&5
8674 echo "${ECHO_T}$ac_cv_lib_glut_glutMainLoop" >&6
8675 if test $ac_cv_lib_glut_glutMainLoop = yes; then
8676   GLUT_LIBS="-lglut -lXmu -lXi"
8677
8678                         GLUT32FILES='$(GLUT32FILES)'
8679
8680 fi
8681
8682          fi
8683     fi
8684
8685         NASLIBS=""
8686
8687
8688 for ac_header in audio/audiolib.h
8689 do
8690 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8691 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8692   echo "$as_me:$LINENO: checking for $ac_header" >&5
8693 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8694 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8695   echo $ECHO_N "(cached) $ECHO_C" >&6
8696 fi
8697 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8698 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8699 else
8700   # Is the header compilable?
8701 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8702 echo $ECHO_N "checking $ac_header usability... $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 $ac_includes_default
8710 #include <$ac_header>
8711 _ACEOF
8712 rm -f conftest.$ac_objext
8713 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8714   (eval $ac_compile) 2>conftest.er1
8715   ac_status=$?
8716   grep -v '^ *+' conftest.er1 >conftest.err
8717   rm -f conftest.er1
8718   cat conftest.err >&5
8719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8720   (exit $ac_status); } &&
8721          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8722   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8723   (eval $ac_try) 2>&5
8724   ac_status=$?
8725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8726   (exit $ac_status); }; } &&
8727          { ac_try='test -s conftest.$ac_objext'
8728   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8729   (eval $ac_try) 2>&5
8730   ac_status=$?
8731   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8732   (exit $ac_status); }; }; then
8733   ac_header_compiler=yes
8734 else
8735   echo "$as_me: failed program was:" >&5
8736 sed 's/^/| /' conftest.$ac_ext >&5
8737
8738 ac_header_compiler=no
8739 fi
8740 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8741 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8742 echo "${ECHO_T}$ac_header_compiler" >&6
8743
8744 # Is the header present?
8745 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8746 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8747 cat >conftest.$ac_ext <<_ACEOF
8748 /* confdefs.h.  */
8749 _ACEOF
8750 cat confdefs.h >>conftest.$ac_ext
8751 cat >>conftest.$ac_ext <<_ACEOF
8752 /* end confdefs.h.  */
8753 #include <$ac_header>
8754 _ACEOF
8755 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8756   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8757   ac_status=$?
8758   grep -v '^ *+' conftest.er1 >conftest.err
8759   rm -f conftest.er1
8760   cat conftest.err >&5
8761   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8762   (exit $ac_status); } >/dev/null; then
8763   if test -s conftest.err; then
8764     ac_cpp_err=$ac_c_preproc_warn_flag
8765     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8766   else
8767     ac_cpp_err=
8768   fi
8769 else
8770   ac_cpp_err=yes
8771 fi
8772 if test -z "$ac_cpp_err"; then
8773   ac_header_preproc=yes
8774 else
8775   echo "$as_me: failed program was:" >&5
8776 sed 's/^/| /' conftest.$ac_ext >&5
8777
8778   ac_header_preproc=no
8779 fi
8780 rm -f conftest.err conftest.$ac_ext
8781 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8782 echo "${ECHO_T}$ac_header_preproc" >&6
8783
8784 # So?  What about this header?
8785 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8786   yes:no: )
8787     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8788 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8789     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8790 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8791     ac_header_preproc=yes
8792     ;;
8793   no:yes:* )
8794     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8795 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8796     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8797 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8798     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8799 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8800     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8801 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8802     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8803 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8804     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8805 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8806     (
8807       cat <<\_ASBOX
8808 ## ------------------------------------ ##
8809 ## Report this to wine-devel@winehq.org ##
8810 ## ------------------------------------ ##
8811 _ASBOX
8812     ) |
8813       sed "s/^/$as_me: WARNING:     /" >&2
8814     ;;
8815 esac
8816 echo "$as_me:$LINENO: checking for $ac_header" >&5
8817 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8818 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8819   echo $ECHO_N "(cached) $ECHO_C" >&6
8820 else
8821   eval "$as_ac_Header=\$ac_header_preproc"
8822 fi
8823 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8824 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8825
8826 fi
8827 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8828   cat >>confdefs.h <<_ACEOF
8829 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8830 _ACEOF
8831
8832 for ac_header in audio/soundlib.h
8833 do
8834 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8835 echo "$as_me:$LINENO: checking for $ac_header" >&5
8836 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8837 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8838   echo $ECHO_N "(cached) $ECHO_C" >&6
8839 else
8840   cat >conftest.$ac_ext <<_ACEOF
8841 /* confdefs.h.  */
8842 _ACEOF
8843 cat confdefs.h >>conftest.$ac_ext
8844 cat >>conftest.$ac_ext <<_ACEOF
8845 /* end confdefs.h.  */
8846 #include <audio/audiolib.h>
8847
8848 #include <$ac_header>
8849 _ACEOF
8850 rm -f conftest.$ac_objext
8851 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8852   (eval $ac_compile) 2>conftest.er1
8853   ac_status=$?
8854   grep -v '^ *+' conftest.er1 >conftest.err
8855   rm -f conftest.er1
8856   cat conftest.err >&5
8857   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8858   (exit $ac_status); } &&
8859          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8860   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8861   (eval $ac_try) 2>&5
8862   ac_status=$?
8863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8864   (exit $ac_status); }; } &&
8865          { ac_try='test -s conftest.$ac_objext'
8866   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8867   (eval $ac_try) 2>&5
8868   ac_status=$?
8869   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8870   (exit $ac_status); }; }; then
8871   eval "$as_ac_Header=yes"
8872 else
8873   echo "$as_me: failed program was:" >&5
8874 sed 's/^/| /' conftest.$ac_ext >&5
8875
8876 eval "$as_ac_Header=no"
8877 fi
8878 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8879 fi
8880 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8881 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8882 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8883   cat >>confdefs.h <<_ACEOF
8884 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8885 _ACEOF
8886
8887 fi
8888
8889 done
8890
8891           echo "$as_me:$LINENO: checking for AuCreateFlow in -laudio" >&5
8892 echo $ECHO_N "checking for AuCreateFlow in -laudio... $ECHO_C" >&6
8893 if test "${ac_cv_lib_audio_AuCreateFlow+set}" = set; then
8894   echo $ECHO_N "(cached) $ECHO_C" >&6
8895 else
8896   ac_check_lib_save_LIBS=$LIBS
8897 LIBS="-laudio -lXt $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
8898 cat >conftest.$ac_ext <<_ACEOF
8899 /* confdefs.h.  */
8900 _ACEOF
8901 cat confdefs.h >>conftest.$ac_ext
8902 cat >>conftest.$ac_ext <<_ACEOF
8903 /* end confdefs.h.  */
8904
8905 /* Override any gcc2 internal prototype to avoid an error.  */
8906 #ifdef __cplusplus
8907 extern "C"
8908 #endif
8909 /* We use char because int might match the return type of a gcc2
8910    builtin and then its argument prototype would still apply.  */
8911 char AuCreateFlow ();
8912 int
8913 main ()
8914 {
8915 AuCreateFlow ();
8916   ;
8917   return 0;
8918 }
8919 _ACEOF
8920 rm -f conftest.$ac_objext conftest$ac_exeext
8921 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8922   (eval $ac_link) 2>conftest.er1
8923   ac_status=$?
8924   grep -v '^ *+' conftest.er1 >conftest.err
8925   rm -f conftest.er1
8926   cat conftest.err >&5
8927   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8928   (exit $ac_status); } &&
8929          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8930   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8931   (eval $ac_try) 2>&5
8932   ac_status=$?
8933   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8934   (exit $ac_status); }; } &&
8935          { ac_try='test -s conftest$ac_exeext'
8936   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8937   (eval $ac_try) 2>&5
8938   ac_status=$?
8939   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8940   (exit $ac_status); }; }; then
8941   ac_cv_lib_audio_AuCreateFlow=yes
8942 else
8943   echo "$as_me: failed program was:" >&5
8944 sed 's/^/| /' conftest.$ac_ext >&5
8945
8946 ac_cv_lib_audio_AuCreateFlow=no
8947 fi
8948 rm -f conftest.err conftest.$ac_objext \
8949       conftest$ac_exeext conftest.$ac_ext
8950 LIBS=$ac_check_lib_save_LIBS
8951 fi
8952 echo "$as_me:$LINENO: result: $ac_cv_lib_audio_AuCreateFlow" >&5
8953 echo "${ECHO_T}$ac_cv_lib_audio_AuCreateFlow" >&6
8954 if test $ac_cv_lib_audio_AuCreateFlow = yes; then
8955
8956 cat >>confdefs.h <<\_ACEOF
8957 #define HAVE_NAS 1
8958 _ACEOF
8959
8960                         NASLIBS="-laudio -lXt $X_LIBS -lXext -lX11 $X_EXTRA_LIBS"
8961 fi
8962
8963 fi
8964
8965 done
8966
8967
8968     CPPFLAGS="$ac_save_CPPFLAGS"
8969     XFILES='$(XFILES)'
8970 else
8971     XLIB=""
8972     X_CFLAGS=""
8973     X_LIBS=""
8974 fi
8975
8976
8977 XML2LIBS=""
8978
8979 XML2INCL=""
8980
8981 XSLTLIBS=""
8982
8983 XSLTINCL=""
8984
8985 if test "$PKG_CONFIG" != "false"
8986 then
8987     ac_save_CPPFLAGS="$CPPFLAGS"
8988     ac_xml_libs="`$PKG_CONFIG --libs libxml-2.0`"
8989     ac_xml_cflags="`$PKG_CONFIG --cflags libxml-2.0`"
8990     CPPFLAGS="$CPPFLAGS $ac_xml_cflags"
8991
8992 for ac_header in libxml/parser.h
8993 do
8994 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8995 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8996   echo "$as_me:$LINENO: checking for $ac_header" >&5
8997 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8998 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8999   echo $ECHO_N "(cached) $ECHO_C" >&6
9000 fi
9001 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9002 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9003 else
9004   # Is the header compilable?
9005 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9006 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9007 cat >conftest.$ac_ext <<_ACEOF
9008 /* confdefs.h.  */
9009 _ACEOF
9010 cat confdefs.h >>conftest.$ac_ext
9011 cat >>conftest.$ac_ext <<_ACEOF
9012 /* end confdefs.h.  */
9013 $ac_includes_default
9014 #include <$ac_header>
9015 _ACEOF
9016 rm -f conftest.$ac_objext
9017 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9018   (eval $ac_compile) 2>conftest.er1
9019   ac_status=$?
9020   grep -v '^ *+' conftest.er1 >conftest.err
9021   rm -f conftest.er1
9022   cat conftest.err >&5
9023   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9024   (exit $ac_status); } &&
9025          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
9026   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9027   (eval $ac_try) 2>&5
9028   ac_status=$?
9029   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9030   (exit $ac_status); }; } &&
9031          { ac_try='test -s conftest.$ac_objext'
9032   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9033   (eval $ac_try) 2>&5
9034   ac_status=$?
9035   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9036   (exit $ac_status); }; }; then
9037   ac_header_compiler=yes
9038 else
9039   echo "$as_me: failed program was:" >&5
9040 sed 's/^/| /' conftest.$ac_ext >&5
9041
9042 ac_header_compiler=no
9043 fi
9044 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9045 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9046 echo "${ECHO_T}$ac_header_compiler" >&6
9047
9048 # Is the header present?
9049 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9050 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9051 cat >conftest.$ac_ext <<_ACEOF
9052 /* confdefs.h.  */
9053 _ACEOF
9054 cat confdefs.h >>conftest.$ac_ext
9055 cat >>conftest.$ac_ext <<_ACEOF
9056 /* end confdefs.h.  */
9057 #include <$ac_header>
9058 _ACEOF
9059 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9060   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9061   ac_status=$?
9062   grep -v '^ *+' conftest.er1 >conftest.err
9063   rm -f conftest.er1
9064   cat conftest.err >&5
9065   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9066   (exit $ac_status); } >/dev/null; then
9067   if test -s conftest.err; then
9068     ac_cpp_err=$ac_c_preproc_warn_flag
9069     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9070   else
9071     ac_cpp_err=
9072   fi
9073 else
9074   ac_cpp_err=yes
9075 fi
9076 if test -z "$ac_cpp_err"; then
9077   ac_header_preproc=yes
9078 else
9079   echo "$as_me: failed program was:" >&5
9080 sed 's/^/| /' conftest.$ac_ext >&5
9081
9082   ac_header_preproc=no
9083 fi
9084 rm -f conftest.err conftest.$ac_ext
9085 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9086 echo "${ECHO_T}$ac_header_preproc" >&6
9087
9088 # So?  What about this header?
9089 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9090   yes:no: )
9091     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9092 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9093     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9094 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9095     ac_header_preproc=yes
9096     ;;
9097   no:yes:* )
9098     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9099 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9100     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9101 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9102     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9103 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9104     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9105 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9106     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9107 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9108     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9109 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9110     (
9111       cat <<\_ASBOX
9112 ## ------------------------------------ ##
9113 ## Report this to wine-devel@winehq.org ##
9114 ## ------------------------------------ ##
9115 _ASBOX
9116     ) |
9117       sed "s/^/$as_me: WARNING:     /" >&2
9118     ;;
9119 esac
9120 echo "$as_me:$LINENO: checking for $ac_header" >&5
9121 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9122 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9123   echo $ECHO_N "(cached) $ECHO_C" >&6
9124 else
9125   eval "$as_ac_Header=\$ac_header_preproc"
9126 fi
9127 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9128 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9129
9130 fi
9131 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9132   cat >>confdefs.h <<_ACEOF
9133 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9134 _ACEOF
9135  echo "$as_me:$LINENO: checking for xmlParseMemory in -lxml2" >&5
9136 echo $ECHO_N "checking for xmlParseMemory in -lxml2... $ECHO_C" >&6
9137 if test "${ac_cv_lib_xml2_xmlParseMemory+set}" = set; then
9138   echo $ECHO_N "(cached) $ECHO_C" >&6
9139 else
9140   ac_check_lib_save_LIBS=$LIBS
9141 LIBS="-lxml2 $ac_xml_libs $LIBS"
9142 cat >conftest.$ac_ext <<_ACEOF
9143 /* confdefs.h.  */
9144 _ACEOF
9145 cat confdefs.h >>conftest.$ac_ext
9146 cat >>conftest.$ac_ext <<_ACEOF
9147 /* end confdefs.h.  */
9148
9149 /* Override any gcc2 internal prototype to avoid an error.  */
9150 #ifdef __cplusplus
9151 extern "C"
9152 #endif
9153 /* We use char because int might match the return type of a gcc2
9154    builtin and then its argument prototype would still apply.  */
9155 char xmlParseMemory ();
9156 int
9157 main ()
9158 {
9159 xmlParseMemory ();
9160   ;
9161   return 0;
9162 }
9163 _ACEOF
9164 rm -f conftest.$ac_objext conftest$ac_exeext
9165 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9166   (eval $ac_link) 2>conftest.er1
9167   ac_status=$?
9168   grep -v '^ *+' conftest.er1 >conftest.err
9169   rm -f conftest.er1
9170   cat conftest.err >&5
9171   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9172   (exit $ac_status); } &&
9173          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
9174   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9175   (eval $ac_try) 2>&5
9176   ac_status=$?
9177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9178   (exit $ac_status); }; } &&
9179          { ac_try='test -s conftest$ac_exeext'
9180   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9181   (eval $ac_try) 2>&5
9182   ac_status=$?
9183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9184   (exit $ac_status); }; }; then
9185   ac_cv_lib_xml2_xmlParseMemory=yes
9186 else
9187   echo "$as_me: failed program was:" >&5
9188 sed 's/^/| /' conftest.$ac_ext >&5
9189
9190 ac_cv_lib_xml2_xmlParseMemory=no
9191 fi
9192 rm -f conftest.err conftest.$ac_objext \
9193       conftest$ac_exeext conftest.$ac_ext
9194 LIBS=$ac_check_lib_save_LIBS
9195 fi
9196 echo "$as_me:$LINENO: result: $ac_cv_lib_xml2_xmlParseMemory" >&5
9197 echo "${ECHO_T}$ac_cv_lib_xml2_xmlParseMemory" >&6
9198 if test $ac_cv_lib_xml2_xmlParseMemory = yes; then
9199
9200 cat >>confdefs.h <<\_ACEOF
9201 #define HAVE_LIBXML2 1
9202 _ACEOF
9203
9204              XML2LIBS="$ac_xml_libs"
9205              XML2INCL="$ac_xml_cflags"
9206 fi
9207
9208          echo "$as_me:$LINENO: checking for xmlReadMemory in -lxml2" >&5
9209 echo $ECHO_N "checking for xmlReadMemory in -lxml2... $ECHO_C" >&6
9210 if test "${ac_cv_lib_xml2_xmlReadMemory+set}" = set; then
9211   echo $ECHO_N "(cached) $ECHO_C" >&6
9212 else
9213   ac_check_lib_save_LIBS=$LIBS
9214 LIBS="-lxml2 $ac_xml_libs $LIBS"
9215 cat >conftest.$ac_ext <<_ACEOF
9216 /* confdefs.h.  */
9217 _ACEOF
9218 cat confdefs.h >>conftest.$ac_ext
9219 cat >>conftest.$ac_ext <<_ACEOF
9220 /* end confdefs.h.  */
9221
9222 /* Override any gcc2 internal prototype to avoid an error.  */
9223 #ifdef __cplusplus
9224 extern "C"
9225 #endif
9226 /* We use char because int might match the return type of a gcc2
9227    builtin and then its argument prototype would still apply.  */
9228 char xmlReadMemory ();
9229 int
9230 main ()
9231 {
9232 xmlReadMemory ();
9233   ;
9234   return 0;
9235 }
9236 _ACEOF
9237 rm -f conftest.$ac_objext conftest$ac_exeext
9238 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9239   (eval $ac_link) 2>conftest.er1
9240   ac_status=$?
9241   grep -v '^ *+' conftest.er1 >conftest.err
9242   rm -f conftest.er1
9243   cat conftest.err >&5
9244   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9245   (exit $ac_status); } &&
9246          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
9247   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9248   (eval $ac_try) 2>&5
9249   ac_status=$?
9250   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9251   (exit $ac_status); }; } &&
9252          { ac_try='test -s conftest$ac_exeext'
9253   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9254   (eval $ac_try) 2>&5
9255   ac_status=$?
9256   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9257   (exit $ac_status); }; }; then
9258   ac_cv_lib_xml2_xmlReadMemory=yes
9259 else
9260   echo "$as_me: failed program was:" >&5
9261 sed 's/^/| /' conftest.$ac_ext >&5
9262
9263 ac_cv_lib_xml2_xmlReadMemory=no
9264 fi
9265 rm -f conftest.err conftest.$ac_objext \
9266       conftest$ac_exeext conftest.$ac_ext
9267 LIBS=$ac_check_lib_save_LIBS
9268 fi
9269 echo "$as_me:$LINENO: result: $ac_cv_lib_xml2_xmlReadMemory" >&5
9270 echo "${ECHO_T}$ac_cv_lib_xml2_xmlReadMemory" >&6
9271 if test $ac_cv_lib_xml2_xmlReadMemory = yes; then
9272
9273 cat >>confdefs.h <<\_ACEOF
9274 #define HAVE_XMLREADMEMORY 1
9275 _ACEOF
9276
9277 fi
9278
9279
9280 fi
9281
9282 done
9283
9284     CPPFLAGS="$ac_save_CPPFLAGS"
9285     ac_xslt_libs="`$PKG_CONFIG --libs libxslt`"
9286     ac_xslt_cflags="`$PKG_CONFIG --cflags libxslt`"
9287     CPPFLAGS="$CPPFLAGS $ac_xslt_cflags"
9288
9289
9290 for ac_header in libxslt/pattern.h libxslt/transform.h
9291 do
9292 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9293 echo "$as_me:$LINENO: checking for $ac_header" >&5
9294 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9295 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9296   echo $ECHO_N "(cached) $ECHO_C" >&6
9297 else
9298   cat >conftest.$ac_ext <<_ACEOF
9299 /* confdefs.h.  */
9300 _ACEOF
9301 cat confdefs.h >>conftest.$ac_ext
9302 cat >>conftest.$ac_ext <<_ACEOF
9303 /* end confdefs.h.  */
9304 #ifdef HAVE_LIBXSLT_PATTERN_H
9305 # include <libxslt/pattern.h>
9306 #endif
9307
9308 #include <$ac_header>
9309 _ACEOF
9310 rm -f conftest.$ac_objext
9311 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9312   (eval $ac_compile) 2>conftest.er1
9313   ac_status=$?
9314   grep -v '^ *+' conftest.er1 >conftest.err
9315   rm -f conftest.er1
9316   cat conftest.err >&5
9317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9318   (exit $ac_status); } &&
9319          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
9320   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9321   (eval $ac_try) 2>&5
9322   ac_status=$?
9323   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9324   (exit $ac_status); }; } &&
9325          { ac_try='test -s conftest.$ac_objext'
9326   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9327   (eval $ac_try) 2>&5
9328   ac_status=$?
9329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9330   (exit $ac_status); }; }; then
9331   eval "$as_ac_Header=yes"
9332 else
9333   echo "$as_me: failed program was:" >&5
9334 sed 's/^/| /' conftest.$ac_ext >&5
9335
9336 eval "$as_ac_Header=no"
9337 fi
9338 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9339 fi
9340 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9341 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9342 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9343   cat >>confdefs.h <<_ACEOF
9344 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9345 _ACEOF
9346  echo "$as_me:$LINENO: checking for xsltCompilePattern in -lxslt" >&5
9347 echo $ECHO_N "checking for xsltCompilePattern in -lxslt... $ECHO_C" >&6
9348 if test "${ac_cv_lib_xslt_xsltCompilePattern+set}" = set; then
9349   echo $ECHO_N "(cached) $ECHO_C" >&6
9350 else
9351   ac_check_lib_save_LIBS=$LIBS
9352 LIBS="-lxslt $ac_xslt_libs $LIBS"
9353 cat >conftest.$ac_ext <<_ACEOF
9354 /* confdefs.h.  */
9355 _ACEOF
9356 cat confdefs.h >>conftest.$ac_ext
9357 cat >>conftest.$ac_ext <<_ACEOF
9358 /* end confdefs.h.  */
9359
9360 /* Override any gcc2 internal prototype to avoid an error.  */
9361 #ifdef __cplusplus
9362 extern "C"
9363 #endif
9364 /* We use char because int might match the return type of a gcc2
9365    builtin and then its argument prototype would still apply.  */
9366 char xsltCompilePattern ();
9367 int
9368 main ()
9369 {
9370 xsltCompilePattern ();
9371   ;
9372   return 0;
9373 }
9374 _ACEOF
9375 rm -f conftest.$ac_objext conftest$ac_exeext
9376 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9377   (eval $ac_link) 2>conftest.er1
9378   ac_status=$?
9379   grep -v '^ *+' conftest.er1 >conftest.err
9380   rm -f conftest.er1
9381   cat conftest.err >&5
9382   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9383   (exit $ac_status); } &&
9384          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
9385   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9386   (eval $ac_try) 2>&5
9387   ac_status=$?
9388   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9389   (exit $ac_status); }; } &&
9390          { ac_try='test -s conftest$ac_exeext'
9391   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9392   (eval $ac_try) 2>&5
9393   ac_status=$?
9394   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9395   (exit $ac_status); }; }; then
9396   ac_cv_lib_xslt_xsltCompilePattern=yes
9397 else
9398   echo "$as_me: failed program was:" >&5
9399 sed 's/^/| /' conftest.$ac_ext >&5
9400
9401 ac_cv_lib_xslt_xsltCompilePattern=no
9402 fi
9403 rm -f conftest.err conftest.$ac_objext \
9404       conftest$ac_exeext conftest.$ac_ext
9405 LIBS=$ac_check_lib_save_LIBS
9406 fi
9407 echo "$as_me:$LINENO: result: $ac_cv_lib_xslt_xsltCompilePattern" >&5
9408 echo "${ECHO_T}$ac_cv_lib_xslt_xsltCompilePattern" >&6
9409 if test $ac_cv_lib_xslt_xsltCompilePattern = yes; then
9410
9411 cat >>confdefs.h <<\_ACEOF
9412 #define HAVE_LIBXSLT 1
9413 _ACEOF
9414
9415              XSLTLIBS="$ac_xslt_libs"
9416              XSLTINCL="$ac_xslt_cflags"
9417 fi
9418
9419
9420 fi
9421
9422 done
9423
9424     CPPFLAGS="$ac_save_CPPFLAGS"
9425 fi
9426
9427 CURSESLIBS=""
9428 if test "x$with_curses" != "xno"
9429 then
9430     if test "$ac_cv_header_ncurses_h" = "yes"
9431     then
9432         echo "$as_me:$LINENO: checking for waddch in -lncurses" >&5
9433 echo $ECHO_N "checking for waddch in -lncurses... $ECHO_C" >&6
9434 if test "${ac_cv_lib_ncurses_waddch+set}" = set; then
9435   echo $ECHO_N "(cached) $ECHO_C" >&6
9436 else
9437   ac_check_lib_save_LIBS=$LIBS
9438 LIBS="-lncurses  $LIBS"
9439 cat >conftest.$ac_ext <<_ACEOF
9440 /* confdefs.h.  */
9441 _ACEOF
9442 cat confdefs.h >>conftest.$ac_ext
9443 cat >>conftest.$ac_ext <<_ACEOF
9444 /* end confdefs.h.  */
9445
9446 /* Override any gcc2 internal prototype to avoid an error.  */
9447 #ifdef __cplusplus
9448 extern "C"
9449 #endif
9450 /* We use char because int might match the return type of a gcc2
9451    builtin and then its argument prototype would still apply.  */
9452 char waddch ();
9453 int
9454 main ()
9455 {
9456 waddch ();
9457   ;
9458   return 0;
9459 }
9460 _ACEOF
9461 rm -f conftest.$ac_objext conftest$ac_exeext
9462 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9463   (eval $ac_link) 2>conftest.er1
9464   ac_status=$?
9465   grep -v '^ *+' conftest.er1 >conftest.err
9466   rm -f conftest.er1
9467   cat conftest.err >&5
9468   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9469   (exit $ac_status); } &&
9470          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
9471   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9472   (eval $ac_try) 2>&5
9473   ac_status=$?
9474   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9475   (exit $ac_status); }; } &&
9476          { ac_try='test -s conftest$ac_exeext'
9477   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9478   (eval $ac_try) 2>&5
9479   ac_status=$?
9480   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9481   (exit $ac_status); }; }; then
9482   ac_cv_lib_ncurses_waddch=yes
9483 else
9484   echo "$as_me: failed program was:" >&5
9485 sed 's/^/| /' conftest.$ac_ext >&5
9486
9487 ac_cv_lib_ncurses_waddch=no
9488 fi
9489 rm -f conftest.err conftest.$ac_objext \
9490       conftest$ac_exeext conftest.$ac_ext
9491 LIBS=$ac_check_lib_save_LIBS
9492 fi
9493 echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_waddch" >&5
9494 echo "${ECHO_T}$ac_cv_lib_ncurses_waddch" >&6
9495 if test $ac_cv_lib_ncurses_waddch = yes; then
9496
9497 cat >>confdefs.h <<\_ACEOF
9498 #define HAVE_LIBNCURSES 1
9499 _ACEOF
9500
9501              CURSESLIBS="-lncurses"
9502 fi
9503
9504     elif test "$ac_cv_header_curses_h" = "yes"
9505     then
9506         echo "$as_me:$LINENO: checking for waddch in -lcurses" >&5
9507 echo $ECHO_N "checking for waddch in -lcurses... $ECHO_C" >&6
9508 if test "${ac_cv_lib_curses_waddch+set}" = set; then
9509   echo $ECHO_N "(cached) $ECHO_C" >&6
9510 else
9511   ac_check_lib_save_LIBS=$LIBS
9512 LIBS="-lcurses  $LIBS"
9513 cat >conftest.$ac_ext <<_ACEOF
9514 /* confdefs.h.  */
9515 _ACEOF
9516 cat confdefs.h >>conftest.$ac_ext
9517 cat >>conftest.$ac_ext <<_ACEOF
9518 /* end confdefs.h.  */
9519
9520 /* Override any gcc2 internal prototype to avoid an error.  */
9521 #ifdef __cplusplus
9522 extern "C"
9523 #endif
9524 /* We use char because int might match the return type of a gcc2
9525    builtin and then its argument prototype would still apply.  */
9526 char waddch ();
9527 int
9528 main ()
9529 {
9530 waddch ();
9531   ;
9532   return 0;
9533 }
9534 _ACEOF
9535 rm -f conftest.$ac_objext conftest$ac_exeext
9536 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9537   (eval $ac_link) 2>conftest.er1
9538   ac_status=$?
9539   grep -v '^ *+' conftest.er1 >conftest.err
9540   rm -f conftest.er1
9541   cat conftest.err >&5
9542   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9543   (exit $ac_status); } &&
9544          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
9545   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9546   (eval $ac_try) 2>&5
9547   ac_status=$?
9548   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9549   (exit $ac_status); }; } &&
9550          { ac_try='test -s conftest$ac_exeext'
9551   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9552   (eval $ac_try) 2>&5
9553   ac_status=$?
9554   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9555   (exit $ac_status); }; }; then
9556   ac_cv_lib_curses_waddch=yes
9557 else
9558   echo "$as_me: failed program was:" >&5
9559 sed 's/^/| /' conftest.$ac_ext >&5
9560
9561 ac_cv_lib_curses_waddch=no
9562 fi
9563 rm -f conftest.err conftest.$ac_objext \
9564       conftest$ac_exeext conftest.$ac_ext
9565 LIBS=$ac_check_lib_save_LIBS
9566 fi
9567 echo "$as_me:$LINENO: result: $ac_cv_lib_curses_waddch" >&5
9568 echo "${ECHO_T}$ac_cv_lib_curses_waddch" >&6
9569 if test $ac_cv_lib_curses_waddch = yes; then
9570
9571 cat >>confdefs.h <<\_ACEOF
9572 #define HAVE_LIBCURSES 1
9573 _ACEOF
9574
9575              CURSESLIBS="-lcurses"
9576 fi
9577
9578     fi
9579 fi
9580
9581
9582 # Extract the first word of "sane-config", so it can be a program name with args.
9583 set dummy sane-config; ac_word=$2
9584 echo "$as_me:$LINENO: checking for $ac_word" >&5
9585 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9586 if test "${ac_cv_prog_sane_devel+set}" = set; then
9587   echo $ECHO_N "(cached) $ECHO_C" >&6
9588 else
9589   if test -n "$sane_devel"; then
9590   ac_cv_prog_sane_devel="$sane_devel" # Let the user override the test.
9591 else
9592 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9593 for as_dir in $PATH
9594 do
9595   IFS=$as_save_IFS
9596   test -z "$as_dir" && as_dir=.
9597   for ac_exec_ext in '' $ac_executable_extensions; do
9598   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9599     ac_cv_prog_sane_devel="sane-config"
9600     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9601     break 2
9602   fi
9603 done
9604 done
9605
9606   test -z "$ac_cv_prog_sane_devel" && ac_cv_prog_sane_devel="no"
9607 fi
9608 fi
9609 sane_devel=$ac_cv_prog_sane_devel
9610 if test -n "$sane_devel"; then
9611   echo "$as_me:$LINENO: result: $sane_devel" >&5
9612 echo "${ECHO_T}$sane_devel" >&6
9613 else
9614   echo "$as_me:$LINENO: result: no" >&5
9615 echo "${ECHO_T}no" >&6
9616 fi
9617
9618 SANELIBS=""
9619
9620 SANEINCL=""
9621
9622 if test "$sane_devel" != "no"
9623 then
9624     SANELIBS="`$sane_devel --libs`"
9625     SANEINCL="`$sane_devel --cflags`"
9626     ac_save_CPPFLAGS="$CPPFLAGS"
9627     ac_save_LIBS="$LIBS"
9628     CPPFLAGS="$CPPFLAGS $SANEINCL"
9629     LIBS="$LIBS $SANELIBS"
9630     if test "${ac_cv_header_sane_sane_h+set}" = set; then
9631   echo "$as_me:$LINENO: checking for sane/sane.h" >&5
9632 echo $ECHO_N "checking for sane/sane.h... $ECHO_C" >&6
9633 if test "${ac_cv_header_sane_sane_h+set}" = set; then
9634   echo $ECHO_N "(cached) $ECHO_C" >&6
9635 fi
9636 echo "$as_me:$LINENO: result: $ac_cv_header_sane_sane_h" >&5
9637 echo "${ECHO_T}$ac_cv_header_sane_sane_h" >&6
9638 else
9639   # Is the header compilable?
9640 echo "$as_me:$LINENO: checking sane/sane.h usability" >&5
9641 echo $ECHO_N "checking sane/sane.h usability... $ECHO_C" >&6
9642 cat >conftest.$ac_ext <<_ACEOF
9643 /* confdefs.h.  */
9644 _ACEOF
9645 cat confdefs.h >>conftest.$ac_ext
9646 cat >>conftest.$ac_ext <<_ACEOF
9647 /* end confdefs.h.  */
9648 $ac_includes_default
9649 #include <sane/sane.h>
9650 _ACEOF
9651 rm -f conftest.$ac_objext
9652 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9653   (eval $ac_compile) 2>conftest.er1
9654   ac_status=$?
9655   grep -v '^ *+' conftest.er1 >conftest.err
9656   rm -f conftest.er1
9657   cat conftest.err >&5
9658   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9659   (exit $ac_status); } &&
9660          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
9661   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9662   (eval $ac_try) 2>&5
9663   ac_status=$?
9664   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9665   (exit $ac_status); }; } &&
9666          { ac_try='test -s conftest.$ac_objext'
9667   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9668   (eval $ac_try) 2>&5
9669   ac_status=$?
9670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9671   (exit $ac_status); }; }; then
9672   ac_header_compiler=yes
9673 else
9674   echo "$as_me: failed program was:" >&5
9675 sed 's/^/| /' conftest.$ac_ext >&5
9676
9677 ac_header_compiler=no
9678 fi
9679 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9680 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9681 echo "${ECHO_T}$ac_header_compiler" >&6
9682
9683 # Is the header present?
9684 echo "$as_me:$LINENO: checking sane/sane.h presence" >&5
9685 echo $ECHO_N "checking sane/sane.h presence... $ECHO_C" >&6
9686 cat >conftest.$ac_ext <<_ACEOF
9687 /* confdefs.h.  */
9688 _ACEOF
9689 cat confdefs.h >>conftest.$ac_ext
9690 cat >>conftest.$ac_ext <<_ACEOF
9691 /* end confdefs.h.  */
9692 #include <sane/sane.h>
9693 _ACEOF
9694 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9695   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9696   ac_status=$?
9697   grep -v '^ *+' conftest.er1 >conftest.err
9698   rm -f conftest.er1
9699   cat conftest.err >&5
9700   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9701   (exit $ac_status); } >/dev/null; then
9702   if test -s conftest.err; then
9703     ac_cpp_err=$ac_c_preproc_warn_flag
9704     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9705   else
9706     ac_cpp_err=
9707   fi
9708 else
9709   ac_cpp_err=yes
9710 fi
9711 if test -z "$ac_cpp_err"; then
9712   ac_header_preproc=yes
9713 else
9714   echo "$as_me: failed program was:" >&5
9715 sed 's/^/| /' conftest.$ac_ext >&5
9716
9717   ac_header_preproc=no
9718 fi
9719 rm -f conftest.err conftest.$ac_ext
9720 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9721 echo "${ECHO_T}$ac_header_preproc" >&6
9722
9723 # So?  What about this header?
9724 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9725   yes:no: )
9726     { echo "$as_me:$LINENO: WARNING: sane/sane.h: accepted by the compiler, rejected by the preprocessor!" >&5
9727 echo "$as_me: WARNING: sane/sane.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9728     { echo "$as_me:$LINENO: WARNING: sane/sane.h: proceeding with the compiler's result" >&5
9729 echo "$as_me: WARNING: sane/sane.h: proceeding with the compiler's result" >&2;}
9730     ac_header_preproc=yes
9731     ;;
9732   no:yes:* )
9733     { echo "$as_me:$LINENO: WARNING: sane/sane.h: present but cannot be compiled" >&5
9734 echo "$as_me: WARNING: sane/sane.h: present but cannot be compiled" >&2;}
9735     { echo "$as_me:$LINENO: WARNING: sane/sane.h:     check for missing prerequisite headers?" >&5
9736 echo "$as_me: WARNING: sane/sane.h:     check for missing prerequisite headers?" >&2;}
9737     { echo "$as_me:$LINENO: WARNING: sane/sane.h: see the Autoconf documentation" >&5
9738 echo "$as_me: WARNING: sane/sane.h: see the Autoconf documentation" >&2;}
9739     { echo "$as_me:$LINENO: WARNING: sane/sane.h:     section \"Present But Cannot Be Compiled\"" >&5
9740 echo "$as_me: WARNING: sane/sane.h:     section \"Present But Cannot Be Compiled\"" >&2;}
9741     { echo "$as_me:$LINENO: WARNING: sane/sane.h: proceeding with the preprocessor's result" >&5
9742 echo "$as_me: WARNING: sane/sane.h: proceeding with the preprocessor's result" >&2;}
9743     { echo "$as_me:$LINENO: WARNING: sane/sane.h: in the future, the compiler will take precedence" >&5
9744 echo "$as_me: WARNING: sane/sane.h: in the future, the compiler will take precedence" >&2;}
9745     (
9746       cat <<\_ASBOX
9747 ## ------------------------------------ ##
9748 ## Report this to wine-devel@winehq.org ##
9749 ## ------------------------------------ ##
9750 _ASBOX
9751     ) |
9752       sed "s/^/$as_me: WARNING:     /" >&2
9753     ;;
9754 esac
9755 echo "$as_me:$LINENO: checking for sane/sane.h" >&5
9756 echo $ECHO_N "checking for sane/sane.h... $ECHO_C" >&6
9757 if test "${ac_cv_header_sane_sane_h+set}" = set; then
9758   echo $ECHO_N "(cached) $ECHO_C" >&6
9759 else
9760   ac_cv_header_sane_sane_h=$ac_header_preproc
9761 fi
9762 echo "$as_me:$LINENO: result: $ac_cv_header_sane_sane_h" >&5
9763 echo "${ECHO_T}$ac_cv_header_sane_sane_h" >&6
9764
9765 fi
9766 if test $ac_cv_header_sane_sane_h = yes; then
9767   echo "$as_me:$LINENO: checking for sane_open in -lsane" >&5
9768 echo $ECHO_N "checking for sane_open in -lsane... $ECHO_C" >&6
9769 if test "${ac_cv_lib_sane_sane_open+set}" = set; then
9770   echo $ECHO_N "(cached) $ECHO_C" >&6
9771 else
9772   ac_check_lib_save_LIBS=$LIBS
9773 LIBS="-lsane  $LIBS"
9774 cat >conftest.$ac_ext <<_ACEOF
9775 /* confdefs.h.  */
9776 _ACEOF
9777 cat confdefs.h >>conftest.$ac_ext
9778 cat >>conftest.$ac_ext <<_ACEOF
9779 /* end confdefs.h.  */
9780
9781 /* Override any gcc2 internal prototype to avoid an error.  */
9782 #ifdef __cplusplus
9783 extern "C"
9784 #endif
9785 /* We use char because int might match the return type of a gcc2
9786    builtin and then its argument prototype would still apply.  */
9787 char sane_open ();
9788 int
9789 main ()
9790 {
9791 sane_open ();
9792   ;
9793   return 0;
9794 }
9795 _ACEOF
9796 rm -f conftest.$ac_objext conftest$ac_exeext
9797 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9798   (eval $ac_link) 2>conftest.er1
9799   ac_status=$?
9800   grep -v '^ *+' conftest.er1 >conftest.err
9801   rm -f conftest.er1
9802   cat conftest.err >&5
9803   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9804   (exit $ac_status); } &&
9805          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
9806   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9807   (eval $ac_try) 2>&5
9808   ac_status=$?
9809   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9810   (exit $ac_status); }; } &&
9811          { ac_try='test -s conftest$ac_exeext'
9812   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9813   (eval $ac_try) 2>&5
9814   ac_status=$?
9815   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9816   (exit $ac_status); }; }; then
9817   ac_cv_lib_sane_sane_open=yes
9818 else
9819   echo "$as_me: failed program was:" >&5
9820 sed 's/^/| /' conftest.$ac_ext >&5
9821
9822 ac_cv_lib_sane_sane_open=no
9823 fi
9824 rm -f conftest.err conftest.$ac_objext \
9825       conftest$ac_exeext conftest.$ac_ext
9826 LIBS=$ac_check_lib_save_LIBS
9827 fi
9828 echo "$as_me:$LINENO: result: $ac_cv_lib_sane_sane_open" >&5
9829 echo "${ECHO_T}$ac_cv_lib_sane_sane_open" >&6
9830 if test $ac_cv_lib_sane_sane_open = yes; then
9831
9832 cat >>confdefs.h <<\_ACEOF
9833 #define HAVE_SANE 1
9834 _ACEOF
9835
9836 else
9837   SANELIBS=""
9838                                   SANEINCL=""
9839 fi
9840
9841 else
9842   SANELIBS=""
9843                     SANEINCL=""
9844 fi
9845
9846
9847     LIBS="$ac_save_LIBS"
9848     CPPFLAGS="$ac_save_CPPFLAGS"
9849 fi
9850
9851 if test "$ac_cv_header_unicode_ubidi_h" = "yes"
9852 then
9853     saved_libs="$LIBS"
9854     ICU_LIB_DIR="${ICU_LIB_DIR-/usr/lib}"
9855     ICUUC_LIB="${ICUUC_LIB-$ICU_LIB_DIR/libsicuuc.a}"
9856     ICUDATA_LIB="${ICUDATA_LIB-$ICU_LIB_DIR/libsicudata.a}"
9857     echo "$as_me:$LINENO: checking whether can link with ICU libraries $ICUUC_LIB and $ICUDATA_LIB" >&5
9858 echo $ECHO_N "checking whether can link with ICU libraries $ICUUC_LIB and $ICUDATA_LIB... $ECHO_C" >&6
9859     LIBS="$LIBS $ICUUC_LIB $ICUDATA_LIB -lstdc++ -lgcc_s"
9860     cat >conftest.$ac_ext <<_ACEOF
9861 /* confdefs.h.  */
9862 _ACEOF
9863 cat confdefs.h >>conftest.$ac_ext
9864 cat >>conftest.$ac_ext <<_ACEOF
9865 /* end confdefs.h.  */
9866 #include <unicode/ubidi.h>
9867 int
9868 main ()
9869 {
9870 ubidi_open()
9871   ;
9872   return 0;
9873 }
9874 _ACEOF
9875 rm -f conftest.$ac_objext conftest$ac_exeext
9876 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9877   (eval $ac_link) 2>conftest.er1
9878   ac_status=$?
9879   grep -v '^ *+' conftest.er1 >conftest.err
9880   rm -f conftest.er1
9881   cat conftest.err >&5
9882   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9883   (exit $ac_status); } &&
9884          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
9885   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9886   (eval $ac_try) 2>&5
9887   ac_status=$?
9888   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9889   (exit $ac_status); }; } &&
9890          { ac_try='test -s conftest$ac_exeext'
9891   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9892   (eval $ac_try) 2>&5
9893   ac_status=$?
9894   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9895   (exit $ac_status); }; }; then
9896
9897 cat >>confdefs.h <<\_ACEOF
9898 #define HAVE_ICU 1
9899 _ACEOF
9900
9901                  ICULIBS="$ICUUC_LIB $ICUDATA_LIB -lstdc++ -lgcc_s"
9902
9903                  echo "$as_me:$LINENO: result: yes" >&5
9904 echo "${ECHO_T}yes" >&6
9905 else
9906   echo "$as_me: failed program was:" >&5
9907 sed 's/^/| /' conftest.$ac_ext >&5
9908
9909 echo "$as_me:$LINENO: result: no" >&5
9910 echo "${ECHO_T}no" >&6
9911 fi
9912 rm -f conftest.err conftest.$ac_objext \
9913       conftest$ac_exeext conftest.$ac_ext
9914     LIBS="$saved_libs"
9915 fi
9916
9917 RESOLVLIBS=""
9918
9919 if test "$ac_cv_header_resolv_h" = "yes"
9920 then
9921     echo "$as_me:$LINENO: checking for res_query in -lresolv" >&5
9922 echo $ECHO_N "checking for res_query in -lresolv... $ECHO_C" >&6
9923 if test "${ac_cv_lib_resolv_res_query+set}" = set; then
9924   echo $ECHO_N "(cached) $ECHO_C" >&6
9925 else
9926   ac_check_lib_save_LIBS=$LIBS
9927 LIBS="-lresolv  $LIBS"
9928 cat >conftest.$ac_ext <<_ACEOF
9929 /* confdefs.h.  */
9930 _ACEOF
9931 cat confdefs.h >>conftest.$ac_ext
9932 cat >>conftest.$ac_ext <<_ACEOF
9933 /* end confdefs.h.  */
9934
9935 /* Override any gcc2 internal prototype to avoid an error.  */
9936 #ifdef __cplusplus
9937 extern "C"
9938 #endif
9939 /* We use char because int might match the return type of a gcc2
9940    builtin and then its argument prototype would still apply.  */
9941 char res_query ();
9942 int
9943 main ()
9944 {
9945 res_query ();
9946   ;
9947   return 0;
9948 }
9949 _ACEOF
9950 rm -f conftest.$ac_objext conftest$ac_exeext
9951 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9952   (eval $ac_link) 2>conftest.er1
9953   ac_status=$?
9954   grep -v '^ *+' conftest.er1 >conftest.err
9955   rm -f conftest.er1
9956   cat conftest.err >&5
9957   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9958   (exit $ac_status); } &&
9959          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
9960   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9961   (eval $ac_try) 2>&5
9962   ac_status=$?
9963   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9964   (exit $ac_status); }; } &&
9965          { ac_try='test -s conftest$ac_exeext'
9966   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9967   (eval $ac_try) 2>&5
9968   ac_status=$?
9969   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9970   (exit $ac_status); }; }; then
9971   ac_cv_lib_resolv_res_query=yes
9972 else
9973   echo "$as_me: failed program was:" >&5
9974 sed 's/^/| /' conftest.$ac_ext >&5
9975
9976 ac_cv_lib_resolv_res_query=no
9977 fi
9978 rm -f conftest.err conftest.$ac_objext \
9979       conftest$ac_exeext conftest.$ac_ext
9980 LIBS=$ac_check_lib_save_LIBS
9981 fi
9982 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_query" >&5
9983 echo "${ECHO_T}$ac_cv_lib_resolv_res_query" >&6
9984 if test $ac_cv_lib_resolv_res_query = yes; then
9985
9986 cat >>confdefs.h <<\_ACEOF
9987 #define HAVE_RESOLV 1
9988 _ACEOF
9989
9990          RESOLVLIBS="-lresolv"
9991 fi
9992
9993 fi
9994
9995 LCMSLIBS=""
9996
9997 if test "$ac_cv_header_lcms_h" = "yes" -o "$ac_cv_header_lcms_lcms_h" = "yes"
9998 then
9999     echo "$as_me:$LINENO: checking for cmsOpenProfileFromFile in -llcms" >&5
10000 echo $ECHO_N "checking for cmsOpenProfileFromFile in -llcms... $ECHO_C" >&6
10001 if test "${ac_cv_lib_lcms_cmsOpenProfileFromFile+set}" = set; then
10002   echo $ECHO_N "(cached) $ECHO_C" >&6
10003 else
10004   ac_check_lib_save_LIBS=$LIBS
10005 LIBS="-llcms  $LIBS"
10006 cat >conftest.$ac_ext <<_ACEOF
10007 /* confdefs.h.  */
10008 _ACEOF
10009 cat confdefs.h >>conftest.$ac_ext
10010 cat >>conftest.$ac_ext <<_ACEOF
10011 /* end confdefs.h.  */
10012
10013 /* Override any gcc2 internal prototype to avoid an error.  */
10014 #ifdef __cplusplus
10015 extern "C"
10016 #endif
10017 /* We use char because int might match the return type of a gcc2
10018    builtin and then its argument prototype would still apply.  */
10019 char cmsOpenProfileFromFile ();
10020 int
10021 main ()
10022 {
10023 cmsOpenProfileFromFile ();
10024   ;
10025   return 0;
10026 }
10027 _ACEOF
10028 rm -f conftest.$ac_objext conftest$ac_exeext
10029 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10030   (eval $ac_link) 2>conftest.er1
10031   ac_status=$?
10032   grep -v '^ *+' conftest.er1 >conftest.err
10033   rm -f conftest.er1
10034   cat conftest.err >&5
10035   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10036   (exit $ac_status); } &&
10037          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
10038   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10039   (eval $ac_try) 2>&5
10040   ac_status=$?
10041   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10042   (exit $ac_status); }; } &&
10043          { ac_try='test -s conftest$ac_exeext'
10044   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10045   (eval $ac_try) 2>&5
10046   ac_status=$?
10047   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10048   (exit $ac_status); }; }; then
10049   ac_cv_lib_lcms_cmsOpenProfileFromFile=yes
10050 else
10051   echo "$as_me: failed program was:" >&5
10052 sed 's/^/| /' conftest.$ac_ext >&5
10053
10054 ac_cv_lib_lcms_cmsOpenProfileFromFile=no
10055 fi
10056 rm -f conftest.err conftest.$ac_objext \
10057       conftest$ac_exeext conftest.$ac_ext
10058 LIBS=$ac_check_lib_save_LIBS
10059 fi
10060 echo "$as_me:$LINENO: result: $ac_cv_lib_lcms_cmsOpenProfileFromFile" >&5
10061 echo "${ECHO_T}$ac_cv_lib_lcms_cmsOpenProfileFromFile" >&6
10062 if test $ac_cv_lib_lcms_cmsOpenProfileFromFile = yes; then
10063
10064 cat >>confdefs.h <<\_ACEOF
10065 #define HAVE_LCMS 1
10066 _ACEOF
10067
10068          LCMSLIBS="-llcms"
10069 fi
10070
10071 fi
10072
10073 LDAPLIBS=""
10074
10075 if test "$ac_cv_header_ldap_h" = "yes" -a "$ac_cv_header_lber_h" = "yes"
10076 then
10077     echo "$as_me:$LINENO: checking for ldap_initialize in -lldap_r" >&5
10078 echo $ECHO_N "checking for ldap_initialize in -lldap_r... $ECHO_C" >&6
10079 if test "${ac_cv_lib_ldap_r_ldap_initialize+set}" = set; then
10080   echo $ECHO_N "(cached) $ECHO_C" >&6
10081 else
10082   ac_check_lib_save_LIBS=$LIBS
10083 LIBS="-lldap_r $LIBPTHREAD $LIBS"
10084 cat >conftest.$ac_ext <<_ACEOF
10085 /* confdefs.h.  */
10086 _ACEOF
10087 cat confdefs.h >>conftest.$ac_ext
10088 cat >>conftest.$ac_ext <<_ACEOF
10089 /* end confdefs.h.  */
10090
10091 /* Override any gcc2 internal prototype to avoid an error.  */
10092 #ifdef __cplusplus
10093 extern "C"
10094 #endif
10095 /* We use char because int might match the return type of a gcc2
10096    builtin and then its argument prototype would still apply.  */
10097 char ldap_initialize ();
10098 int
10099 main ()
10100 {
10101 ldap_initialize ();
10102   ;
10103   return 0;
10104 }
10105 _ACEOF
10106 rm -f conftest.$ac_objext conftest$ac_exeext
10107 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10108   (eval $ac_link) 2>conftest.er1
10109   ac_status=$?
10110   grep -v '^ *+' conftest.er1 >conftest.err
10111   rm -f conftest.er1
10112   cat conftest.err >&5
10113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10114   (exit $ac_status); } &&
10115          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
10116   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10117   (eval $ac_try) 2>&5
10118   ac_status=$?
10119   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10120   (exit $ac_status); }; } &&
10121          { ac_try='test -s conftest$ac_exeext'
10122   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10123   (eval $ac_try) 2>&5
10124   ac_status=$?
10125   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10126   (exit $ac_status); }; }; then
10127   ac_cv_lib_ldap_r_ldap_initialize=yes
10128 else
10129   echo "$as_me: failed program was:" >&5
10130 sed 's/^/| /' conftest.$ac_ext >&5
10131
10132 ac_cv_lib_ldap_r_ldap_initialize=no
10133 fi
10134 rm -f conftest.err conftest.$ac_objext \
10135       conftest$ac_exeext conftest.$ac_ext
10136 LIBS=$ac_check_lib_save_LIBS
10137 fi
10138 echo "$as_me:$LINENO: result: $ac_cv_lib_ldap_r_ldap_initialize" >&5
10139 echo "${ECHO_T}$ac_cv_lib_ldap_r_ldap_initialize" >&6
10140 if test $ac_cv_lib_ldap_r_ldap_initialize = yes; then
10141   echo "$as_me:$LINENO: checking for ber_init in -llber" >&5
10142 echo $ECHO_N "checking for ber_init in -llber... $ECHO_C" >&6
10143 if test "${ac_cv_lib_lber_ber_init+set}" = set; then
10144   echo $ECHO_N "(cached) $ECHO_C" >&6
10145 else
10146   ac_check_lib_save_LIBS=$LIBS
10147 LIBS="-llber $LIBPTHREAD $LIBS"
10148 cat >conftest.$ac_ext <<_ACEOF
10149 /* confdefs.h.  */
10150 _ACEOF
10151 cat confdefs.h >>conftest.$ac_ext
10152 cat >>conftest.$ac_ext <<_ACEOF
10153 /* end confdefs.h.  */
10154
10155 /* Override any gcc2 internal prototype to avoid an error.  */
10156 #ifdef __cplusplus
10157 extern "C"
10158 #endif
10159 /* We use char because int might match the return type of a gcc2
10160    builtin and then its argument prototype would still apply.  */
10161 char ber_init ();
10162 int
10163 main ()
10164 {
10165 ber_init ();
10166   ;
10167   return 0;
10168 }
10169 _ACEOF
10170 rm -f conftest.$ac_objext conftest$ac_exeext
10171 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10172   (eval $ac_link) 2>conftest.er1
10173   ac_status=$?
10174   grep -v '^ *+' conftest.er1 >conftest.err
10175   rm -f conftest.er1
10176   cat conftest.err >&5
10177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10178   (exit $ac_status); } &&
10179          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
10180   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10181   (eval $ac_try) 2>&5
10182   ac_status=$?
10183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10184   (exit $ac_status); }; } &&
10185          { ac_try='test -s conftest$ac_exeext'
10186   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10187   (eval $ac_try) 2>&5
10188   ac_status=$?
10189   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10190   (exit $ac_status); }; }; then
10191   ac_cv_lib_lber_ber_init=yes
10192 else
10193   echo "$as_me: failed program was:" >&5
10194 sed 's/^/| /' conftest.$ac_ext >&5
10195
10196 ac_cv_lib_lber_ber_init=no
10197 fi
10198 rm -f conftest.err conftest.$ac_objext \
10199       conftest$ac_exeext conftest.$ac_ext
10200 LIBS=$ac_check_lib_save_LIBS
10201 fi
10202 echo "$as_me:$LINENO: result: $ac_cv_lib_lber_ber_init" >&5
10203 echo "${ECHO_T}$ac_cv_lib_lber_ber_init" >&6
10204 if test $ac_cv_lib_lber_ber_init = yes; then
10205
10206 cat >>confdefs.h <<\_ACEOF
10207 #define HAVE_LDAP 1
10208 _ACEOF
10209
10210              LDAPLIBS="-lldap_r -llber"
10211 fi
10212
10213 fi
10214
10215     ac_wine_check_funcs_save_LIBS="$LIBS"
10216 LIBS="$LIBS $LDAPLIBS $LIBPTHREAD"
10217
10218
10219
10220
10221 for ac_func in \
10222         ldap_count_references \
10223         ldap_first_reference \
10224         ldap_next_reference \
10225         ldap_parse_reference
10226 do
10227 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10228 echo "$as_me:$LINENO: checking for $ac_func" >&5
10229 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10230 if eval "test \"\${$as_ac_var+set}\" = set"; then
10231   echo $ECHO_N "(cached) $ECHO_C" >&6
10232 else
10233   cat >conftest.$ac_ext <<_ACEOF
10234 /* confdefs.h.  */
10235 _ACEOF
10236 cat confdefs.h >>conftest.$ac_ext
10237 cat >>conftest.$ac_ext <<_ACEOF
10238 /* end confdefs.h.  */
10239 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10240    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10241 #define $ac_func innocuous_$ac_func
10242
10243 /* System header to define __stub macros and hopefully few prototypes,
10244     which can conflict with char $ac_func (); below.
10245     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10246     <limits.h> exists even on freestanding compilers.  */
10247
10248 #ifdef __STDC__
10249 # include <limits.h>
10250 #else
10251 # include <assert.h>
10252 #endif
10253
10254 #undef $ac_func
10255
10256 /* Override any gcc2 internal prototype to avoid an error.  */
10257 #ifdef __cplusplus
10258 extern "C"
10259 {
10260 #endif
10261 /* We use char because int might match the return type of a gcc2
10262    builtin and then its argument prototype would still apply.  */
10263 char $ac_func ();
10264 /* The GNU C library defines this for functions which it implements
10265     to always fail with ENOSYS.  Some functions are actually named
10266     something starting with __ and the normal name is an alias.  */
10267 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10268 choke me
10269 #else
10270 char (*f) () = $ac_func;
10271 #endif
10272 #ifdef __cplusplus
10273 }
10274 #endif
10275
10276 int
10277 main ()
10278 {
10279 return f != $ac_func;
10280   ;
10281   return 0;
10282 }
10283 _ACEOF
10284 rm -f conftest.$ac_objext conftest$ac_exeext
10285 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10286   (eval $ac_link) 2>conftest.er1
10287   ac_status=$?
10288   grep -v '^ *+' conftest.er1 >conftest.err
10289   rm -f conftest.er1
10290   cat conftest.err >&5
10291   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10292   (exit $ac_status); } &&
10293          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
10294   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10295   (eval $ac_try) 2>&5
10296   ac_status=$?
10297   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10298   (exit $ac_status); }; } &&
10299          { ac_try='test -s conftest$ac_exeext'
10300   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10301   (eval $ac_try) 2>&5
10302   ac_status=$?
10303   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10304   (exit $ac_status); }; }; then
10305   eval "$as_ac_var=yes"
10306 else
10307   echo "$as_me: failed program was:" >&5
10308 sed 's/^/| /' conftest.$ac_ext >&5
10309
10310 eval "$as_ac_var=no"
10311 fi
10312 rm -f conftest.err conftest.$ac_objext \
10313       conftest$ac_exeext conftest.$ac_ext
10314 fi
10315 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10316 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10317 if test `eval echo '${'$as_ac_var'}'` = yes; then
10318   cat >>confdefs.h <<_ACEOF
10319 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10320 _ACEOF
10321
10322 fi
10323 done
10324
10325 LIBS="$ac_wine_check_funcs_save_LIBS"
10326 fi
10327
10328 FREETYPELIBS=""
10329
10330 FREETYPEINCL=""
10331
10332 echo "$as_me:$LINENO: checking for FT_Init_FreeType in -lfreetype" >&5
10333 echo $ECHO_N "checking for FT_Init_FreeType in -lfreetype... $ECHO_C" >&6
10334 if test "${ac_cv_lib_freetype_FT_Init_FreeType+set}" = set; then
10335   echo $ECHO_N "(cached) $ECHO_C" >&6
10336 else
10337   ac_check_lib_save_LIBS=$LIBS
10338 LIBS="-lfreetype $X_LIBS $LIBS"
10339 cat >conftest.$ac_ext <<_ACEOF
10340 /* confdefs.h.  */
10341 _ACEOF
10342 cat confdefs.h >>conftest.$ac_ext
10343 cat >>conftest.$ac_ext <<_ACEOF
10344 /* end confdefs.h.  */
10345
10346 /* Override any gcc2 internal prototype to avoid an error.  */
10347 #ifdef __cplusplus
10348 extern "C"
10349 #endif
10350 /* We use char because int might match the return type of a gcc2
10351    builtin and then its argument prototype would still apply.  */
10352 char FT_Init_FreeType ();
10353 int
10354 main ()
10355 {
10356 FT_Init_FreeType ();
10357   ;
10358   return 0;
10359 }
10360 _ACEOF
10361 rm -f conftest.$ac_objext conftest$ac_exeext
10362 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10363   (eval $ac_link) 2>conftest.er1
10364   ac_status=$?
10365   grep -v '^ *+' conftest.er1 >conftest.err
10366   rm -f conftest.er1
10367   cat conftest.err >&5
10368   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10369   (exit $ac_status); } &&
10370          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
10371   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10372   (eval $ac_try) 2>&5
10373   ac_status=$?
10374   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10375   (exit $ac_status); }; } &&
10376          { ac_try='test -s conftest$ac_exeext'
10377   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10378   (eval $ac_try) 2>&5
10379   ac_status=$?
10380   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10381   (exit $ac_status); }; }; then
10382   ac_cv_lib_freetype_FT_Init_FreeType=yes
10383 else
10384   echo "$as_me: failed program was:" >&5
10385 sed 's/^/| /' conftest.$ac_ext >&5
10386
10387 ac_cv_lib_freetype_FT_Init_FreeType=no
10388 fi
10389 rm -f conftest.err conftest.$ac_objext \
10390       conftest$ac_exeext conftest.$ac_ext
10391 LIBS=$ac_check_lib_save_LIBS
10392 fi
10393 echo "$as_me:$LINENO: result: $ac_cv_lib_freetype_FT_Init_FreeType" >&5
10394 echo "${ECHO_T}$ac_cv_lib_freetype_FT_Init_FreeType" >&6
10395 if test $ac_cv_lib_freetype_FT_Init_FreeType = yes; then
10396   ft_lib=yes
10397 else
10398   ft_lib=no
10399 fi
10400
10401 if test "$ft_lib" = "no"
10402 then
10403     wine_cv_msg_freetype=no
10404 else
10405     # Extract the first word of "freetype-config", so it can be a program name with args.
10406 set dummy freetype-config; ac_word=$2
10407 echo "$as_me:$LINENO: checking for $ac_word" >&5
10408 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10409 if test "${ac_cv_prog_ft_devel+set}" = set; then
10410   echo $ECHO_N "(cached) $ECHO_C" >&6
10411 else
10412   if test -n "$ft_devel"; then
10413   ac_cv_prog_ft_devel="$ft_devel" # Let the user override the test.
10414 else
10415 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10416 for as_dir in $PATH
10417 do
10418   IFS=$as_save_IFS
10419   test -z "$as_dir" && as_dir=.
10420   for ac_exec_ext in '' $ac_executable_extensions; do
10421   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10422     ac_cv_prog_ft_devel="freetype-config"
10423     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10424     break 2
10425   fi
10426 done
10427 done
10428
10429   test -z "$ac_cv_prog_ft_devel" && ac_cv_prog_ft_devel="no"
10430 fi
10431 fi
10432 ft_devel=$ac_cv_prog_ft_devel
10433 if test -n "$ft_devel"; then
10434   echo "$as_me:$LINENO: result: $ft_devel" >&5
10435 echo "${ECHO_T}$ft_devel" >&6
10436 else
10437   echo "$as_me:$LINENO: result: no" >&5
10438 echo "${ECHO_T}no" >&6
10439 fi
10440
10441     if test "$ft_devel" = "no"
10442     then
10443         # Extract the first word of "freetype2-config", so it can be a program name with args.
10444 set dummy freetype2-config; ac_word=$2
10445 echo "$as_me:$LINENO: checking for $ac_word" >&5
10446 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10447 if test "${ac_cv_prog_ft_devel2+set}" = set; then
10448   echo $ECHO_N "(cached) $ECHO_C" >&6
10449 else
10450   if test -n "$ft_devel2"; then
10451   ac_cv_prog_ft_devel2="$ft_devel2" # Let the user override the test.
10452 else
10453 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10454 for as_dir in $PATH
10455 do
10456   IFS=$as_save_IFS
10457   test -z "$as_dir" && as_dir=.
10458   for ac_exec_ext in '' $ac_executable_extensions; do
10459   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10460     ac_cv_prog_ft_devel2="freetype2-config"
10461     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10462     break 2
10463   fi
10464 done
10465 done
10466
10467   test -z "$ac_cv_prog_ft_devel2" && ac_cv_prog_ft_devel2="no"
10468 fi
10469 fi
10470 ft_devel2=$ac_cv_prog_ft_devel2
10471 if test -n "$ft_devel2"; then
10472   echo "$as_me:$LINENO: result: $ft_devel2" >&5
10473 echo "${ECHO_T}$ft_devel2" >&6
10474 else
10475   echo "$as_me:$LINENO: result: no" >&5
10476 echo "${ECHO_T}no" >&6
10477 fi
10478
10479         if test "$ft_devel2" = "freetype2-config"
10480         then
10481                 ft_devel=$ft_devel2
10482         fi
10483     fi
10484     if test "$ft_devel" = "no"
10485     then
10486         wine_cv_msg_freetype=yes
10487     else
10488         FREETYPELIBS=`$ft_devel --libs`
10489         FREETYPEINCL=`$ft_devel --cflags`
10490         ac_save_CPPFLAGS="$CPPFLAGS"
10491         CPPFLAGS="$FREETYPEINCL $CPPFLAGS"
10492
10493
10494
10495
10496
10497
10498
10499
10500
10501
10502
10503 for ac_header in ft2build.h \
10504                          freetype/freetype.h \
10505                          freetype/ftglyph.h \
10506                          freetype/tttables.h \
10507                          freetype/ftnames.h \
10508                          freetype/ftsnames.h \
10509                          freetype/ttnameid.h \
10510                          freetype/ftoutln.h \
10511                          freetype/ftwinfnt.h \
10512                          freetype/ftmodapi.h \
10513                          freetype/internal/sfnt.h
10514 do
10515 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10516 echo "$as_me:$LINENO: checking for $ac_header" >&5
10517 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10518 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10519   echo $ECHO_N "(cached) $ECHO_C" >&6
10520 else
10521   cat >conftest.$ac_ext <<_ACEOF
10522 /* confdefs.h.  */
10523 _ACEOF
10524 cat confdefs.h >>conftest.$ac_ext
10525 cat >>conftest.$ac_ext <<_ACEOF
10526 /* end confdefs.h.  */
10527 #if HAVE_FT2BUILD_H
10528                           #include <ft2build.h>
10529                           #endif
10530
10531 #include <$ac_header>
10532 _ACEOF
10533 rm -f conftest.$ac_objext
10534 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10535   (eval $ac_compile) 2>conftest.er1
10536   ac_status=$?
10537   grep -v '^ *+' conftest.er1 >conftest.err
10538   rm -f conftest.er1
10539   cat conftest.err >&5
10540   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10541   (exit $ac_status); } &&
10542          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
10543   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10544   (eval $ac_try) 2>&5
10545   ac_status=$?
10546   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10547   (exit $ac_status); }; } &&
10548          { ac_try='test -s conftest.$ac_objext'
10549   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10550   (eval $ac_try) 2>&5
10551   ac_status=$?
10552   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10553   (exit $ac_status); }; }; then
10554   eval "$as_ac_Header=yes"
10555 else
10556   echo "$as_me: failed program was:" >&5
10557 sed 's/^/| /' conftest.$ac_ext >&5
10558
10559 eval "$as_ac_Header=no"
10560 fi
10561 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10562 fi
10563 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10564 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10565 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10566   cat >>confdefs.h <<_ACEOF
10567 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10568 _ACEOF
10569
10570 fi
10571
10572 done
10573
10574         cat >conftest.$ac_ext <<_ACEOF
10575 /* confdefs.h.  */
10576 _ACEOF
10577 cat confdefs.h >>conftest.$ac_ext
10578 cat >>conftest.$ac_ext <<_ACEOF
10579 /* end confdefs.h.  */
10580 #include <ft2build.h>
10581                     #include <freetype/fttrigon.h>
10582 _ACEOF
10583 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10584   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10585   ac_status=$?
10586   grep -v '^ *+' conftest.er1 >conftest.err
10587   rm -f conftest.er1
10588   cat conftest.err >&5
10589   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10590   (exit $ac_status); } >/dev/null; then
10591   if test -s conftest.err; then
10592     ac_cpp_err=$ac_c_preproc_warn_flag
10593     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10594   else
10595     ac_cpp_err=
10596   fi
10597 else
10598   ac_cpp_err=yes
10599 fi
10600 if test -z "$ac_cpp_err"; then
10601
10602 cat >>confdefs.h <<\_ACEOF
10603 #define HAVE_FREETYPE_FTTRIGON_H 1
10604 _ACEOF
10605
10606                     wine_cv_fttrigon=yes
10607 else
10608   echo "$as_me: failed program was:" >&5
10609 sed 's/^/| /' conftest.$ac_ext >&5
10610
10611   wine_cv_fttrigon=no
10612 fi
10613 rm -f conftest.err conftest.$ac_ext
10614         echo "$as_me:$LINENO: checking for FT_TrueTypeEngineType" >&5
10615 echo $ECHO_N "checking for FT_TrueTypeEngineType... $ECHO_C" >&6
10616 if test "${ac_cv_type_FT_TrueTypeEngineType+set}" = set; then
10617   echo $ECHO_N "(cached) $ECHO_C" >&6
10618 else
10619   cat >conftest.$ac_ext <<_ACEOF
10620 /* confdefs.h.  */
10621 _ACEOF
10622 cat confdefs.h >>conftest.$ac_ext
10623 cat >>conftest.$ac_ext <<_ACEOF
10624 /* end confdefs.h.  */
10625 #include <freetype/ftmodapi.h>
10626
10627 int
10628 main ()
10629 {
10630 if ((FT_TrueTypeEngineType *) 0)
10631   return 0;
10632 if (sizeof (FT_TrueTypeEngineType))
10633   return 0;
10634   ;
10635   return 0;
10636 }
10637 _ACEOF
10638 rm -f conftest.$ac_objext
10639 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10640   (eval $ac_compile) 2>conftest.er1
10641   ac_status=$?
10642   grep -v '^ *+' conftest.er1 >conftest.err
10643   rm -f conftest.er1
10644   cat conftest.err >&5
10645   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10646   (exit $ac_status); } &&
10647          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
10648   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10649   (eval $ac_try) 2>&5
10650   ac_status=$?
10651   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10652   (exit $ac_status); }; } &&
10653          { ac_try='test -s conftest.$ac_objext'
10654   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10655   (eval $ac_try) 2>&5
10656   ac_status=$?
10657   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10658   (exit $ac_status); }; }; then
10659   ac_cv_type_FT_TrueTypeEngineType=yes
10660 else
10661   echo "$as_me: failed program was:" >&5
10662 sed 's/^/| /' conftest.$ac_ext >&5
10663
10664 ac_cv_type_FT_TrueTypeEngineType=no
10665 fi
10666 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10667 fi
10668 echo "$as_me:$LINENO: result: $ac_cv_type_FT_TrueTypeEngineType" >&5
10669 echo "${ECHO_T}$ac_cv_type_FT_TrueTypeEngineType" >&6
10670 if test $ac_cv_type_FT_TrueTypeEngineType = yes; then
10671
10672 cat >>confdefs.h <<_ACEOF
10673 #define HAVE_FT_TRUETYPEENGINETYPE 1
10674 _ACEOF
10675
10676
10677 fi
10678
10679         ac_save_CFLAGS="$CFLAGS"
10680         CFLAGS="$CFLAGS $FREETYPELIBS"
10681
10682 for ac_func in FT_Load_Sfnt_Table
10683 do
10684 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10685 echo "$as_me:$LINENO: checking for $ac_func" >&5
10686 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10687 if eval "test \"\${$as_ac_var+set}\" = set"; then
10688   echo $ECHO_N "(cached) $ECHO_C" >&6
10689 else
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 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10697    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10698 #define $ac_func innocuous_$ac_func
10699
10700 /* System header to define __stub macros and hopefully few prototypes,
10701     which can conflict with char $ac_func (); below.
10702     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10703     <limits.h> exists even on freestanding compilers.  */
10704
10705 #ifdef __STDC__
10706 # include <limits.h>
10707 #else
10708 # include <assert.h>
10709 #endif
10710
10711 #undef $ac_func
10712
10713 /* Override any gcc2 internal prototype to avoid an error.  */
10714 #ifdef __cplusplus
10715 extern "C"
10716 {
10717 #endif
10718 /* We use char because int might match the return type of a gcc2
10719    builtin and then its argument prototype would still apply.  */
10720 char $ac_func ();
10721 /* The GNU C library defines this for functions which it implements
10722     to always fail with ENOSYS.  Some functions are actually named
10723     something starting with __ and the normal name is an alias.  */
10724 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10725 choke me
10726 #else
10727 char (*f) () = $ac_func;
10728 #endif
10729 #ifdef __cplusplus
10730 }
10731 #endif
10732
10733 int
10734 main ()
10735 {
10736 return f != $ac_func;
10737   ;
10738   return 0;
10739 }
10740 _ACEOF
10741 rm -f conftest.$ac_objext conftest$ac_exeext
10742 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10743   (eval $ac_link) 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); } &&
10750          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
10751   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10752   (eval $ac_try) 2>&5
10753   ac_status=$?
10754   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10755   (exit $ac_status); }; } &&
10756          { ac_try='test -s conftest$ac_exeext'
10757   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10758   (eval $ac_try) 2>&5
10759   ac_status=$?
10760   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10761   (exit $ac_status); }; }; then
10762   eval "$as_ac_var=yes"
10763 else
10764   echo "$as_me: failed program was:" >&5
10765 sed 's/^/| /' conftest.$ac_ext >&5
10766
10767 eval "$as_ac_var=no"
10768 fi
10769 rm -f conftest.err conftest.$ac_objext \
10770       conftest$ac_exeext conftest.$ac_ext
10771 fi
10772 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10773 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10774 if test `eval echo '${'$as_ac_var'}'` = yes; then
10775   cat >>confdefs.h <<_ACEOF
10776 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10777 _ACEOF
10778
10779 fi
10780 done
10781
10782         CFLAGS="$ac_save_CFLAGS"
10783         CPPFLAGS="$ac_save_CPPFLAGS"
10784                 if test "$ac_cv_header_freetype_freetype_h" = "yes" -a "$wine_cv_fttrigon" = "yes"
10785         then
10786
10787 cat >>confdefs.h <<\_ACEOF
10788 #define HAVE_FREETYPE 1
10789 _ACEOF
10790
10791             wine_cv_msg_freetype=no
10792         else
10793             FREETYPELIBS=""
10794             FREETYPEINCL=""
10795             wine_cv_msg_freetype=yes
10796         fi
10797     fi
10798 fi
10799
10800 if test "$FONTFORGE" != "false" -a -n "$FREETYPELIBS"
10801 then
10802   FONTSSUBDIRS="fonts"
10803
10804   wine_cv_msg_fonts=no
10805 else
10806   wine_cv_msg_fonts=yes
10807 fi
10808
10809 echo "$as_me:$LINENO: checking for parport header/ppdev.h" >&5
10810 echo $ECHO_N "checking for parport header/ppdev.h... $ECHO_C" >&6
10811 if test "${ac_cv_c_ppdev+set}" = set; then
10812   echo $ECHO_N "(cached) $ECHO_C" >&6
10813 else
10814   cat >conftest.$ac_ext <<_ACEOF
10815 /* confdefs.h.  */
10816 _ACEOF
10817 cat confdefs.h >>conftest.$ac_ext
10818 cat >>conftest.$ac_ext <<_ACEOF
10819 /* end confdefs.h.  */
10820 #include <linux/ppdev.h>
10821 int
10822 main ()
10823 {
10824 ioctl (1,PPCLAIM,0)
10825   ;
10826   return 0;
10827 }
10828 _ACEOF
10829 rm -f conftest.$ac_objext
10830 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10831   (eval $ac_compile) 2>conftest.er1
10832   ac_status=$?
10833   grep -v '^ *+' conftest.er1 >conftest.err
10834   rm -f conftest.er1
10835   cat conftest.err >&5
10836   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10837   (exit $ac_status); } &&
10838          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
10839   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10840   (eval $ac_try) 2>&5
10841   ac_status=$?
10842   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10843   (exit $ac_status); }; } &&
10844          { ac_try='test -s conftest.$ac_objext'
10845   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10846   (eval $ac_try) 2>&5
10847   ac_status=$?
10848   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10849   (exit $ac_status); }; }; then
10850   ac_cv_c_ppdev="yes"
10851 else
10852   echo "$as_me: failed program was:" >&5
10853 sed 's/^/| /' conftest.$ac_ext >&5
10854
10855 ac_cv_c_ppdev="no"
10856 fi
10857 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10858
10859 fi
10860 echo "$as_me:$LINENO: result: $ac_cv_c_ppdev" >&5
10861 echo "${ECHO_T}$ac_cv_c_ppdev" >&6
10862 if test "$ac_cv_c_ppdev" = "yes"
10863 then
10864
10865 cat >>confdefs.h <<\_ACEOF
10866 #define HAVE_PPDEV 1
10867 _ACEOF
10868
10869 fi
10870
10871 echo "$as_me:$LINENO: checking for va_copy" >&5
10872 echo $ECHO_N "checking for va_copy... $ECHO_C" >&6
10873 if test "${ac_cv_c_va_copy+set}" = set; then
10874   echo $ECHO_N "(cached) $ECHO_C" >&6
10875 else
10876   cat >conftest.$ac_ext <<_ACEOF
10877 /* confdefs.h.  */
10878 _ACEOF
10879 cat confdefs.h >>conftest.$ac_ext
10880 cat >>conftest.$ac_ext <<_ACEOF
10881 /* end confdefs.h.  */
10882 #include <stdarg.h>
10883 int
10884 main ()
10885 {
10886 va_list ap1, ap2;
10887     va_copy(ap1,ap2);
10888
10889   ;
10890   return 0;
10891 }
10892 _ACEOF
10893 rm -f conftest.$ac_objext conftest$ac_exeext
10894 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10895   (eval $ac_link) 2>conftest.er1
10896   ac_status=$?
10897   grep -v '^ *+' conftest.er1 >conftest.err
10898   rm -f conftest.er1
10899   cat conftest.err >&5
10900   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10901   (exit $ac_status); } &&
10902          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
10903   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10904   (eval $ac_try) 2>&5
10905   ac_status=$?
10906   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10907   (exit $ac_status); }; } &&
10908          { ac_try='test -s conftest$ac_exeext'
10909   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10910   (eval $ac_try) 2>&5
10911   ac_status=$?
10912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10913   (exit $ac_status); }; }; then
10914   ac_cv_c_va_copy="yes"
10915 else
10916   echo "$as_me: failed program was:" >&5
10917 sed 's/^/| /' conftest.$ac_ext >&5
10918
10919 ac_cv_c_va_copy="no"
10920 fi
10921 rm -f conftest.err conftest.$ac_objext \
10922       conftest$ac_exeext conftest.$ac_ext
10923
10924 fi
10925 echo "$as_me:$LINENO: result: $ac_cv_c_va_copy" >&5
10926 echo "${ECHO_T}$ac_cv_c_va_copy" >&6
10927 if test "$ac_cv_c_va_copy" = "yes"
10928 then
10929
10930 cat >>confdefs.h <<\_ACEOF
10931 #define HAVE_VA_COPY 1
10932 _ACEOF
10933
10934 fi
10935 echo "$as_me:$LINENO: checking for __va_copy" >&5
10936 echo $ECHO_N "checking for __va_copy... $ECHO_C" >&6
10937 if test "${ac_cv_c___va_copy+set}" = set; then
10938   echo $ECHO_N "(cached) $ECHO_C" >&6
10939 else
10940   cat >conftest.$ac_ext <<_ACEOF
10941 /* confdefs.h.  */
10942 _ACEOF
10943 cat confdefs.h >>conftest.$ac_ext
10944 cat >>conftest.$ac_ext <<_ACEOF
10945 /* end confdefs.h.  */
10946 #include <stdarg.h>
10947 int
10948 main ()
10949 {
10950 va_list ap1, ap2;
10951     __va_copy(ap1,ap2);
10952
10953   ;
10954   return 0;
10955 }
10956 _ACEOF
10957 rm -f conftest.$ac_objext conftest$ac_exeext
10958 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10959   (eval $ac_link) 2>conftest.er1
10960   ac_status=$?
10961   grep -v '^ *+' conftest.er1 >conftest.err
10962   rm -f conftest.er1
10963   cat conftest.err >&5
10964   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10965   (exit $ac_status); } &&
10966          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
10967   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10968   (eval $ac_try) 2>&5
10969   ac_status=$?
10970   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10971   (exit $ac_status); }; } &&
10972          { ac_try='test -s conftest$ac_exeext'
10973   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10974   (eval $ac_try) 2>&5
10975   ac_status=$?
10976   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10977   (exit $ac_status); }; }; then
10978   ac_cv_c___va_copy="yes"
10979 else
10980   echo "$as_me: failed program was:" >&5
10981 sed 's/^/| /' conftest.$ac_ext >&5
10982
10983 ac_cv_c___va_copy="no"
10984 fi
10985 rm -f conftest.err conftest.$ac_objext \
10986       conftest$ac_exeext conftest.$ac_ext
10987
10988 fi
10989 echo "$as_me:$LINENO: result: $ac_cv_c___va_copy" >&5
10990 echo "${ECHO_T}$ac_cv_c___va_copy" >&6
10991 if test "$ac_cv_c___va_copy" = "yes"
10992 then
10993
10994 cat >>confdefs.h <<\_ACEOF
10995 #define HAVE___VA_COPY 1
10996 _ACEOF
10997
10998 fi
10999
11000 echo "$as_me:$LINENO: checking for sigsetjmp" >&5
11001 echo $ECHO_N "checking for sigsetjmp... $ECHO_C" >&6
11002 if test "${ac_cv_c_sigsetjmp+set}" = set; then
11003   echo $ECHO_N "(cached) $ECHO_C" >&6
11004 else
11005   cat >conftest.$ac_ext <<_ACEOF
11006 /* confdefs.h.  */
11007 _ACEOF
11008 cat confdefs.h >>conftest.$ac_ext
11009 cat >>conftest.$ac_ext <<_ACEOF
11010 /* end confdefs.h.  */
11011 #include <setjmp.h>
11012 int
11013 main ()
11014 {
11015 sigjmp_buf buf;
11016     sigsetjmp( buf, 1 );
11017     siglongjmp( buf, 1 );
11018   ;
11019   return 0;
11020 }
11021 _ACEOF
11022 rm -f conftest.$ac_objext conftest$ac_exeext
11023 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11024   (eval $ac_link) 2>conftest.er1
11025   ac_status=$?
11026   grep -v '^ *+' conftest.er1 >conftest.err
11027   rm -f conftest.er1
11028   cat conftest.err >&5
11029   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11030   (exit $ac_status); } &&
11031          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
11032   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11033   (eval $ac_try) 2>&5
11034   ac_status=$?
11035   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11036   (exit $ac_status); }; } &&
11037          { ac_try='test -s conftest$ac_exeext'
11038   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11039   (eval $ac_try) 2>&5
11040   ac_status=$?
11041   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11042   (exit $ac_status); }; }; then
11043   ac_cv_c_sigsetjmp="yes"
11044 else
11045   echo "$as_me: failed program was:" >&5
11046 sed 's/^/| /' conftest.$ac_ext >&5
11047
11048 ac_cv_c_sigsetjmp="no"
11049 fi
11050 rm -f conftest.err conftest.$ac_objext \
11051       conftest$ac_exeext conftest.$ac_ext
11052
11053 fi
11054 echo "$as_me:$LINENO: result: $ac_cv_c_sigsetjmp" >&5
11055 echo "${ECHO_T}$ac_cv_c_sigsetjmp" >&6
11056 if test "$ac_cv_c_sigsetjmp" = "yes"
11057 then
11058
11059 cat >>confdefs.h <<\_ACEOF
11060 #define HAVE_SIGSETJMP 1
11061 _ACEOF
11062
11063 fi
11064
11065 echo "$as_me:$LINENO: checking for pthread_rwlock_t" >&5
11066 echo $ECHO_N "checking for pthread_rwlock_t... $ECHO_C" >&6
11067 if test "${ac_cv_type_pthread_rwlock_t+set}" = set; then
11068   echo $ECHO_N "(cached) $ECHO_C" >&6
11069 else
11070   cat >conftest.$ac_ext <<_ACEOF
11071 /* confdefs.h.  */
11072 _ACEOF
11073 cat confdefs.h >>conftest.$ac_ext
11074 cat >>conftest.$ac_ext <<_ACEOF
11075 /* end confdefs.h.  */
11076 #define _GNU_SOURCE
11077 #include <pthread.h>
11078
11079 int
11080 main ()
11081 {
11082 if ((pthread_rwlock_t *) 0)
11083   return 0;
11084 if (sizeof (pthread_rwlock_t))
11085   return 0;
11086   ;
11087   return 0;
11088 }
11089 _ACEOF
11090 rm -f conftest.$ac_objext
11091 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11092   (eval $ac_compile) 2>conftest.er1
11093   ac_status=$?
11094   grep -v '^ *+' conftest.er1 >conftest.err
11095   rm -f conftest.er1
11096   cat conftest.err >&5
11097   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11098   (exit $ac_status); } &&
11099          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
11100   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11101   (eval $ac_try) 2>&5
11102   ac_status=$?
11103   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11104   (exit $ac_status); }; } &&
11105          { ac_try='test -s conftest.$ac_objext'
11106   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11107   (eval $ac_try) 2>&5
11108   ac_status=$?
11109   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11110   (exit $ac_status); }; }; then
11111   ac_cv_type_pthread_rwlock_t=yes
11112 else
11113   echo "$as_me: failed program was:" >&5
11114 sed 's/^/| /' conftest.$ac_ext >&5
11115
11116 ac_cv_type_pthread_rwlock_t=no
11117 fi
11118 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11119 fi
11120 echo "$as_me:$LINENO: result: $ac_cv_type_pthread_rwlock_t" >&5
11121 echo "${ECHO_T}$ac_cv_type_pthread_rwlock_t" >&6
11122 if test $ac_cv_type_pthread_rwlock_t = yes; then
11123
11124 cat >>confdefs.h <<_ACEOF
11125 #define HAVE_PTHREAD_RWLOCK_T 1
11126 _ACEOF
11127
11128
11129 fi
11130 echo "$as_me:$LINENO: checking for pthread_rwlockattr_t" >&5
11131 echo $ECHO_N "checking for pthread_rwlockattr_t... $ECHO_C" >&6
11132 if test "${ac_cv_type_pthread_rwlockattr_t+set}" = set; then
11133   echo $ECHO_N "(cached) $ECHO_C" >&6
11134 else
11135   cat >conftest.$ac_ext <<_ACEOF
11136 /* confdefs.h.  */
11137 _ACEOF
11138 cat confdefs.h >>conftest.$ac_ext
11139 cat >>conftest.$ac_ext <<_ACEOF
11140 /* end confdefs.h.  */
11141 #define _GNU_SOURCE
11142 #include <pthread.h>
11143
11144 int
11145 main ()
11146 {
11147 if ((pthread_rwlockattr_t *) 0)
11148   return 0;
11149 if (sizeof (pthread_rwlockattr_t))
11150   return 0;
11151   ;
11152   return 0;
11153 }
11154 _ACEOF
11155 rm -f conftest.$ac_objext
11156 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11157   (eval $ac_compile) 2>conftest.er1
11158   ac_status=$?
11159   grep -v '^ *+' conftest.er1 >conftest.err
11160   rm -f conftest.er1
11161   cat conftest.err >&5
11162   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11163   (exit $ac_status); } &&
11164          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
11165   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11166   (eval $ac_try) 2>&5
11167   ac_status=$?
11168   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11169   (exit $ac_status); }; } &&
11170          { ac_try='test -s conftest.$ac_objext'
11171   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11172   (eval $ac_try) 2>&5
11173   ac_status=$?
11174   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11175   (exit $ac_status); }; }; then
11176   ac_cv_type_pthread_rwlockattr_t=yes
11177 else
11178   echo "$as_me: failed program was:" >&5
11179 sed 's/^/| /' conftest.$ac_ext >&5
11180
11181 ac_cv_type_pthread_rwlockattr_t=no
11182 fi
11183 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11184 fi
11185 echo "$as_me:$LINENO: result: $ac_cv_type_pthread_rwlockattr_t" >&5
11186 echo "${ECHO_T}$ac_cv_type_pthread_rwlockattr_t" >&6
11187 if test $ac_cv_type_pthread_rwlockattr_t = yes; then
11188
11189 cat >>confdefs.h <<_ACEOF
11190 #define HAVE_PTHREAD_RWLOCKATTR_T 1
11191 _ACEOF
11192
11193
11194 fi
11195
11196
11197 ac_wine_check_funcs_save_LIBS="$LIBS"
11198 LIBS="$LIBS $LIBPTHREAD"
11199
11200
11201
11202 for ac_func in \
11203         pthread_getattr_np \
11204         pthread_get_stackaddr_np \
11205         pthread_get_stacksize_np
11206 do
11207 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11208 echo "$as_me:$LINENO: checking for $ac_func" >&5
11209 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11210 if eval "test \"\${$as_ac_var+set}\" = set"; then
11211   echo $ECHO_N "(cached) $ECHO_C" >&6
11212 else
11213   cat >conftest.$ac_ext <<_ACEOF
11214 /* confdefs.h.  */
11215 _ACEOF
11216 cat confdefs.h >>conftest.$ac_ext
11217 cat >>conftest.$ac_ext <<_ACEOF
11218 /* end confdefs.h.  */
11219 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11220    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11221 #define $ac_func innocuous_$ac_func
11222
11223 /* System header to define __stub macros and hopefully few prototypes,
11224     which can conflict with char $ac_func (); below.
11225     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11226     <limits.h> exists even on freestanding compilers.  */
11227
11228 #ifdef __STDC__
11229 # include <limits.h>
11230 #else
11231 # include <assert.h>
11232 #endif
11233
11234 #undef $ac_func
11235
11236 /* Override any gcc2 internal prototype to avoid an error.  */
11237 #ifdef __cplusplus
11238 extern "C"
11239 {
11240 #endif
11241 /* We use char because int might match the return type of a gcc2
11242    builtin and then its argument prototype would still apply.  */
11243 char $ac_func ();
11244 /* The GNU C library defines this for functions which it implements
11245     to always fail with ENOSYS.  Some functions are actually named
11246     something starting with __ and the normal name is an alias.  */
11247 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11248 choke me
11249 #else
11250 char (*f) () = $ac_func;
11251 #endif
11252 #ifdef __cplusplus
11253 }
11254 #endif
11255
11256 int
11257 main ()
11258 {
11259 return f != $ac_func;
11260   ;
11261   return 0;
11262 }
11263 _ACEOF
11264 rm -f conftest.$ac_objext conftest$ac_exeext
11265 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11266   (eval $ac_link) 2>conftest.er1
11267   ac_status=$?
11268   grep -v '^ *+' conftest.er1 >conftest.err
11269   rm -f conftest.er1
11270   cat conftest.err >&5
11271   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11272   (exit $ac_status); } &&
11273          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
11274   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11275   (eval $ac_try) 2>&5
11276   ac_status=$?
11277   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11278   (exit $ac_status); }; } &&
11279          { ac_try='test -s conftest$ac_exeext'
11280   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11281   (eval $ac_try) 2>&5
11282   ac_status=$?
11283   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11284   (exit $ac_status); }; }; then
11285   eval "$as_ac_var=yes"
11286 else
11287   echo "$as_me: failed program was:" >&5
11288 sed 's/^/| /' conftest.$ac_ext >&5
11289
11290 eval "$as_ac_var=no"
11291 fi
11292 rm -f conftest.err conftest.$ac_objext \
11293       conftest$ac_exeext conftest.$ac_ext
11294 fi
11295 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11296 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11297 if test `eval echo '${'$as_ac_var'}'` = yes; then
11298   cat >>confdefs.h <<_ACEOF
11299 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11300 _ACEOF
11301
11302 fi
11303 done
11304
11305 LIBS="$ac_wine_check_funcs_save_LIBS"
11306
11307 # Extract the first word of "artsc-config", so it can be a program name with args.
11308 set dummy artsc-config; ac_word=$2
11309 echo "$as_me:$LINENO: checking for $ac_word" >&5
11310 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11311 if test "${ac_cv_path_ARTSCCONFIG+set}" = set; then
11312   echo $ECHO_N "(cached) $ECHO_C" >&6
11313 else
11314   case $ARTSCCONFIG in
11315   [\\/]* | ?:[\\/]*)
11316   ac_cv_path_ARTSCCONFIG="$ARTSCCONFIG" # Let the user override the test with a path.
11317   ;;
11318   *)
11319   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11320 for as_dir in $PATH
11321 do
11322   IFS=$as_save_IFS
11323   test -z "$as_dir" && as_dir=.
11324   for ac_exec_ext in '' $ac_executable_extensions; do
11325   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11326     ac_cv_path_ARTSCCONFIG="$as_dir/$ac_word$ac_exec_ext"
11327     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11328     break 2
11329   fi
11330 done
11331 done
11332
11333   ;;
11334 esac
11335 fi
11336 ARTSCCONFIG=$ac_cv_path_ARTSCCONFIG
11337
11338 if test -n "$ARTSCCONFIG"; then
11339   echo "$as_me:$LINENO: result: $ARTSCCONFIG" >&5
11340 echo "${ECHO_T}$ARTSCCONFIG" >&6
11341 else
11342   echo "$as_me:$LINENO: result: no" >&5
11343 echo "${ECHO_T}no" >&6
11344 fi
11345
11346 if test x$ARTSCCONFIG != x -a x$ARTSCCONFIG != x'"$ARTSCCONFIG"';
11347 then
11348     ARTSC_CFLAGS=""
11349     for i in `$ARTSCCONFIG --cflags`
11350     do
11351       case "$i" in
11352         -I*) ARTSC_CFLAGS="$ARTSC_CFLAGS $i";;
11353       esac
11354     done
11355     ARTSC_LIBS=""
11356     for i in `$ARTSCCONFIG --libs`
11357     do
11358       case "$i" in
11359         -L/usr/lib|-L/usr/lib64) ;;
11360         -L*|-l*) ARTSC_LIBS="$ARTSC_LIBS $i";;
11361       esac
11362     done
11363     save_CFLAGS="$CFLAGS"
11364     CFLAGS="$CFLAGS $ARTSC_CFLAGS"
11365     echo "$as_me:$LINENO: checking for arts_init in -lartsc" >&5
11366 echo $ECHO_N "checking for arts_init in -lartsc... $ECHO_C" >&6
11367 if test "${ac_cv_lib_artsc_arts_init+set}" = set; then
11368   echo $ECHO_N "(cached) $ECHO_C" >&6
11369 else
11370   ac_check_lib_save_LIBS=$LIBS
11371 LIBS="-lartsc $ARTSC_LIBS $LIBS"
11372 cat >conftest.$ac_ext <<_ACEOF
11373 /* confdefs.h.  */
11374 _ACEOF
11375 cat confdefs.h >>conftest.$ac_ext
11376 cat >>conftest.$ac_ext <<_ACEOF
11377 /* end confdefs.h.  */
11378
11379 /* Override any gcc2 internal prototype to avoid an error.  */
11380 #ifdef __cplusplus
11381 extern "C"
11382 #endif
11383 /* We use char because int might match the return type of a gcc2
11384    builtin and then its argument prototype would still apply.  */
11385 char arts_init ();
11386 int
11387 main ()
11388 {
11389 arts_init ();
11390   ;
11391   return 0;
11392 }
11393 _ACEOF
11394 rm -f conftest.$ac_objext conftest$ac_exeext
11395 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11396   (eval $ac_link) 2>conftest.er1
11397   ac_status=$?
11398   grep -v '^ *+' conftest.er1 >conftest.err
11399   rm -f conftest.er1
11400   cat conftest.err >&5
11401   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11402   (exit $ac_status); } &&
11403          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
11404   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11405   (eval $ac_try) 2>&5
11406   ac_status=$?
11407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11408   (exit $ac_status); }; } &&
11409          { ac_try='test -s conftest$ac_exeext'
11410   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11411   (eval $ac_try) 2>&5
11412   ac_status=$?
11413   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11414   (exit $ac_status); }; }; then
11415   ac_cv_lib_artsc_arts_init=yes
11416 else
11417   echo "$as_me: failed program was:" >&5
11418 sed 's/^/| /' conftest.$ac_ext >&5
11419
11420 ac_cv_lib_artsc_arts_init=no
11421 fi
11422 rm -f conftest.err conftest.$ac_objext \
11423       conftest$ac_exeext conftest.$ac_ext
11424 LIBS=$ac_check_lib_save_LIBS
11425 fi
11426 echo "$as_me:$LINENO: result: $ac_cv_lib_artsc_arts_init" >&5
11427 echo "${ECHO_T}$ac_cv_lib_artsc_arts_init" >&6
11428 if test $ac_cv_lib_artsc_arts_init = yes; then
11429   cat >conftest.$ac_ext <<_ACEOF
11430 /* confdefs.h.  */
11431 _ACEOF
11432 cat confdefs.h >>conftest.$ac_ext
11433 cat >>conftest.$ac_ext <<_ACEOF
11434 /* end confdefs.h.  */
11435 #include <artsc.h>
11436 int
11437 main ()
11438 {
11439 arts_stream_t stream;
11440   ;
11441   return 0;
11442 }
11443 _ACEOF
11444 rm -f conftest.$ac_objext
11445 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11446   (eval $ac_compile) 2>conftest.er1
11447   ac_status=$?
11448   grep -v '^ *+' conftest.er1 >conftest.err
11449   rm -f conftest.er1
11450   cat conftest.err >&5
11451   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11452   (exit $ac_status); } &&
11453          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
11454   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11455   (eval $ac_try) 2>&5
11456   ac_status=$?
11457   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11458   (exit $ac_status); }; } &&
11459          { ac_try='test -s conftest.$ac_objext'
11460   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11461   (eval $ac_try) 2>&5
11462   ac_status=$?
11463   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11464   (exit $ac_status); }; }; then
11465   ARTSLIBS=$ARTSC_LIBS
11466
11467             ARTSINCL=$ARTSC_CFLAGS
11468
11469
11470 cat >>confdefs.h <<\_ACEOF
11471 #define HAVE_ARTS 1
11472 _ACEOF
11473
11474 else
11475   echo "$as_me: failed program was:" >&5
11476 sed 's/^/| /' conftest.$ac_ext >&5
11477
11478 fi
11479 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11480 fi
11481
11482     CFLAGS="$save_CFLAGS"
11483 fi
11484
11485 # Extract the first word of "esd-config", so it can be a program name with args.
11486 set dummy esd-config; ac_word=$2
11487 echo "$as_me:$LINENO: checking for $ac_word" >&5
11488 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11489 if test "${ac_cv_path_ESDCONFIG+set}" = set; then
11490   echo $ECHO_N "(cached) $ECHO_C" >&6
11491 else
11492   case $ESDCONFIG in
11493   [\\/]* | ?:[\\/]*)
11494   ac_cv_path_ESDCONFIG="$ESDCONFIG" # Let the user override the test with a path.
11495   ;;
11496   *)
11497   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11498 for as_dir in $PATH
11499 do
11500   IFS=$as_save_IFS
11501   test -z "$as_dir" && as_dir=.
11502   for ac_exec_ext in '' $ac_executable_extensions; do
11503   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11504     ac_cv_path_ESDCONFIG="$as_dir/$ac_word$ac_exec_ext"
11505     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11506     break 2
11507   fi
11508 done
11509 done
11510
11511   ;;
11512 esac
11513 fi
11514 ESDCONFIG=$ac_cv_path_ESDCONFIG
11515
11516 if test -n "$ESDCONFIG"; then
11517   echo "$as_me:$LINENO: result: $ESDCONFIG" >&5
11518 echo "${ECHO_T}$ESDCONFIG" >&6
11519 else
11520   echo "$as_me:$LINENO: result: no" >&5
11521 echo "${ECHO_T}no" >&6
11522 fi
11523
11524 if test x$ESDCONFIG != x -a x$ESDCONFIG != x'"$ESDCONFIG"';
11525 then
11526     ESD_CFLAGS=""
11527     for i in `$ESDCONFIG --cflags`
11528     do
11529       case "$i" in
11530         -I*) ESD_CFLAGS="$ESD_CFLAGS $i";;
11531       esac
11532     done
11533     ESD_LIBS=`$ESDCONFIG --libs`
11534     save_CFLAGS="$CFLAGS"
11535     CFLAGS="$CFLAGS $ESD_CFLAGS"
11536     echo "$as_me:$LINENO: checking for esd_open_sound in -lesd" >&5
11537 echo $ECHO_N "checking for esd_open_sound in -lesd... $ECHO_C" >&6
11538 if test "${ac_cv_lib_esd_esd_open_sound+set}" = set; then
11539   echo $ECHO_N "(cached) $ECHO_C" >&6
11540 else
11541   ac_check_lib_save_LIBS=$LIBS
11542 LIBS="-lesd  $LIBS"
11543 cat >conftest.$ac_ext <<_ACEOF
11544 /* confdefs.h.  */
11545 _ACEOF
11546 cat confdefs.h >>conftest.$ac_ext
11547 cat >>conftest.$ac_ext <<_ACEOF
11548 /* end confdefs.h.  */
11549
11550 /* Override any gcc2 internal prototype to avoid an error.  */
11551 #ifdef __cplusplus
11552 extern "C"
11553 #endif
11554 /* We use char because int might match the return type of a gcc2
11555    builtin and then its argument prototype would still apply.  */
11556 char esd_open_sound ();
11557 int
11558 main ()
11559 {
11560 esd_open_sound ();
11561   ;
11562   return 0;
11563 }
11564 _ACEOF
11565 rm -f conftest.$ac_objext conftest$ac_exeext
11566 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11567   (eval $ac_link) 2>conftest.er1
11568   ac_status=$?
11569   grep -v '^ *+' conftest.er1 >conftest.err
11570   rm -f conftest.er1
11571   cat conftest.err >&5
11572   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11573   (exit $ac_status); } &&
11574          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
11575   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11576   (eval $ac_try) 2>&5
11577   ac_status=$?
11578   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11579   (exit $ac_status); }; } &&
11580          { ac_try='test -s conftest$ac_exeext'
11581   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11582   (eval $ac_try) 2>&5
11583   ac_status=$?
11584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11585   (exit $ac_status); }; }; then
11586   ac_cv_lib_esd_esd_open_sound=yes
11587 else
11588   echo "$as_me: failed program was:" >&5
11589 sed 's/^/| /' conftest.$ac_ext >&5
11590
11591 ac_cv_lib_esd_esd_open_sound=no
11592 fi
11593 rm -f conftest.err conftest.$ac_objext \
11594       conftest$ac_exeext conftest.$ac_ext
11595 LIBS=$ac_check_lib_save_LIBS
11596 fi
11597 echo "$as_me:$LINENO: result: $ac_cv_lib_esd_esd_open_sound" >&5
11598 echo "${ECHO_T}$ac_cv_lib_esd_esd_open_sound" >&6
11599 if test $ac_cv_lib_esd_esd_open_sound = yes; then
11600   ESDLIBS=$ESD_LIBS
11601
11602          ESDINCL=$ESD_CFLAGS
11603
11604
11605 cat >>confdefs.h <<\_ACEOF
11606 #define HAVE_ESD 1
11607 _ACEOF
11608
11609 fi
11610
11611     CFLAGS="$save_CFLAGS"
11612 fi
11613
11614 ALSALIBS=""
11615
11616 if test "$ac_cv_header_sys_asoundlib_h" = "yes" -o "$ac_cv_header_alsa_asoundlib_h" = "yes"
11617 then
11618     echo "$as_me:$LINENO: checking for snd_pcm_hw_params_get_access in -lasound" >&5
11619 echo $ECHO_N "checking for snd_pcm_hw_params_get_access in -lasound... $ECHO_C" >&6
11620 if test "${ac_cv_lib_asound_snd_pcm_hw_params_get_access+set}" = set; then
11621   echo $ECHO_N "(cached) $ECHO_C" >&6
11622 else
11623   ac_check_lib_save_LIBS=$LIBS
11624 LIBS="-lasound  $LIBS"
11625 cat >conftest.$ac_ext <<_ACEOF
11626 /* confdefs.h.  */
11627 _ACEOF
11628 cat confdefs.h >>conftest.$ac_ext
11629 cat >>conftest.$ac_ext <<_ACEOF
11630 /* end confdefs.h.  */
11631
11632 /* Override any gcc2 internal prototype to avoid an error.  */
11633 #ifdef __cplusplus
11634 extern "C"
11635 #endif
11636 /* We use char because int might match the return type of a gcc2
11637    builtin and then its argument prototype would still apply.  */
11638 char snd_pcm_hw_params_get_access ();
11639 int
11640 main ()
11641 {
11642 snd_pcm_hw_params_get_access ();
11643   ;
11644   return 0;
11645 }
11646 _ACEOF
11647 rm -f conftest.$ac_objext conftest$ac_exeext
11648 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11649   (eval $ac_link) 2>conftest.er1
11650   ac_status=$?
11651   grep -v '^ *+' conftest.er1 >conftest.err
11652   rm -f conftest.er1
11653   cat conftest.err >&5
11654   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11655   (exit $ac_status); } &&
11656          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
11657   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11658   (eval $ac_try) 2>&5
11659   ac_status=$?
11660   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11661   (exit $ac_status); }; } &&
11662          { ac_try='test -s conftest$ac_exeext'
11663   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11664   (eval $ac_try) 2>&5
11665   ac_status=$?
11666   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11667   (exit $ac_status); }; }; then
11668   ac_cv_lib_asound_snd_pcm_hw_params_get_access=yes
11669 else
11670   echo "$as_me: failed program was:" >&5
11671 sed 's/^/| /' conftest.$ac_ext >&5
11672
11673 ac_cv_lib_asound_snd_pcm_hw_params_get_access=no
11674 fi
11675 rm -f conftest.err conftest.$ac_objext \
11676       conftest$ac_exeext conftest.$ac_ext
11677 LIBS=$ac_check_lib_save_LIBS
11678 fi
11679 echo "$as_me:$LINENO: result: $ac_cv_lib_asound_snd_pcm_hw_params_get_access" >&5
11680 echo "${ECHO_T}$ac_cv_lib_asound_snd_pcm_hw_params_get_access" >&6
11681 if test $ac_cv_lib_asound_snd_pcm_hw_params_get_access = yes; then
11682   cat >conftest.$ac_ext <<_ACEOF
11683 /* confdefs.h.  */
11684 _ACEOF
11685 cat confdefs.h >>conftest.$ac_ext
11686 cat >>conftest.$ac_ext <<_ACEOF
11687 /* end confdefs.h.  */
11688 #ifdef HAVE_ALSA_ASOUNDLIB_H
11689 #include <alsa/asoundlib.h>
11690 #elif defined(HAVE_SYS_ASOUNDLIB_H)
11691 #include <sys/asoundlib.h>
11692 #endif
11693 int
11694 main ()
11695 {
11696 int ret = snd_pcm_hw_params_get_access(NULL, NULL)
11697   ;
11698   return 0;
11699 }
11700 _ACEOF
11701 rm -f conftest.$ac_objext
11702 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11703   (eval $ac_compile) 2>conftest.er1
11704   ac_status=$?
11705   grep -v '^ *+' conftest.er1 >conftest.err
11706   rm -f conftest.er1
11707   cat conftest.err >&5
11708   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11709   (exit $ac_status); } &&
11710          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
11711   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11712   (eval $ac_try) 2>&5
11713   ac_status=$?
11714   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11715   (exit $ac_status); }; } &&
11716          { ac_try='test -s conftest.$ac_objext'
11717   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11718   (eval $ac_try) 2>&5
11719   ac_status=$?
11720   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11721   (exit $ac_status); }; }; then
11722
11723 cat >>confdefs.h <<\_ACEOF
11724 #define HAVE_ALSA 1
11725 _ACEOF
11726
11727                          ALSALIBS="-lasound"
11728 else
11729   echo "$as_me: failed program was:" >&5
11730 sed 's/^/| /' conftest.$ac_ext >&5
11731
11732 fi
11733 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11734 fi
11735
11736 fi
11737
11738
11739 AUDIOIOLIBS=""
11740
11741 if test "$ac_cv_header_libaudioio_h" = "yes"
11742 then
11743     echo "$as_me:$LINENO: checking for AudioIOGetVersion in -laudioio" >&5
11744 echo $ECHO_N "checking for AudioIOGetVersion in -laudioio... $ECHO_C" >&6
11745 if test "${ac_cv_lib_audioio_AudioIOGetVersion+set}" = set; then
11746   echo $ECHO_N "(cached) $ECHO_C" >&6
11747 else
11748   ac_check_lib_save_LIBS=$LIBS
11749 LIBS="-laudioio  $LIBS"
11750 cat >conftest.$ac_ext <<_ACEOF
11751 /* confdefs.h.  */
11752 _ACEOF
11753 cat confdefs.h >>conftest.$ac_ext
11754 cat >>conftest.$ac_ext <<_ACEOF
11755 /* end confdefs.h.  */
11756
11757 /* Override any gcc2 internal prototype to avoid an error.  */
11758 #ifdef __cplusplus
11759 extern "C"
11760 #endif
11761 /* We use char because int might match the return type of a gcc2
11762    builtin and then its argument prototype would still apply.  */
11763 char AudioIOGetVersion ();
11764 int
11765 main ()
11766 {
11767 AudioIOGetVersion ();
11768   ;
11769   return 0;
11770 }
11771 _ACEOF
11772 rm -f conftest.$ac_objext conftest$ac_exeext
11773 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11774   (eval $ac_link) 2>conftest.er1
11775   ac_status=$?
11776   grep -v '^ *+' conftest.er1 >conftest.err
11777   rm -f conftest.er1
11778   cat conftest.err >&5
11779   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11780   (exit $ac_status); } &&
11781          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
11782   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11783   (eval $ac_try) 2>&5
11784   ac_status=$?
11785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11786   (exit $ac_status); }; } &&
11787          { ac_try='test -s conftest$ac_exeext'
11788   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11789   (eval $ac_try) 2>&5
11790   ac_status=$?
11791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11792   (exit $ac_status); }; }; then
11793   ac_cv_lib_audioio_AudioIOGetVersion=yes
11794 else
11795   echo "$as_me: failed program was:" >&5
11796 sed 's/^/| /' conftest.$ac_ext >&5
11797
11798 ac_cv_lib_audioio_AudioIOGetVersion=no
11799 fi
11800 rm -f conftest.err conftest.$ac_objext \
11801       conftest$ac_exeext conftest.$ac_ext
11802 LIBS=$ac_check_lib_save_LIBS
11803 fi
11804 echo "$as_me:$LINENO: result: $ac_cv_lib_audioio_AudioIOGetVersion" >&5
11805 echo "${ECHO_T}$ac_cv_lib_audioio_AudioIOGetVersion" >&6
11806 if test $ac_cv_lib_audioio_AudioIOGetVersion = yes; then
11807   AUDIOIOLIBS="-laudioio"
11808
11809 cat >>confdefs.h <<\_ACEOF
11810 #define HAVE_LIBAUDIOIO 1
11811 _ACEOF
11812
11813 fi
11814
11815 fi
11816
11817
11818 if test "$ac_cv_header_capi20_h" = "yes" -a "$ac_cv_header_linux_capi_h" = "yes"
11819 then
11820     echo "$as_me:$LINENO: checking for capi20_register in -lcapi20" >&5
11821 echo $ECHO_N "checking for capi20_register in -lcapi20... $ECHO_C" >&6
11822 if test "${ac_cv_lib_capi20_capi20_register+set}" = set; then
11823   echo $ECHO_N "(cached) $ECHO_C" >&6
11824 else
11825   ac_check_lib_save_LIBS=$LIBS
11826 LIBS="-lcapi20  $LIBS"
11827 cat >conftest.$ac_ext <<_ACEOF
11828 /* confdefs.h.  */
11829 _ACEOF
11830 cat confdefs.h >>conftest.$ac_ext
11831 cat >>conftest.$ac_ext <<_ACEOF
11832 /* end confdefs.h.  */
11833
11834 /* Override any gcc2 internal prototype to avoid an error.  */
11835 #ifdef __cplusplus
11836 extern "C"
11837 #endif
11838 /* We use char because int might match the return type of a gcc2
11839    builtin and then its argument prototype would still apply.  */
11840 char capi20_register ();
11841 int
11842 main ()
11843 {
11844 capi20_register ();
11845   ;
11846   return 0;
11847 }
11848 _ACEOF
11849 rm -f conftest.$ac_objext conftest$ac_exeext
11850 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11851   (eval $ac_link) 2>conftest.er1
11852   ac_status=$?
11853   grep -v '^ *+' conftest.er1 >conftest.err
11854   rm -f conftest.er1
11855   cat conftest.err >&5
11856   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11857   (exit $ac_status); } &&
11858          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
11859   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11860   (eval $ac_try) 2>&5
11861   ac_status=$?
11862   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11863   (exit $ac_status); }; } &&
11864          { ac_try='test -s conftest$ac_exeext'
11865   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11866   (eval $ac_try) 2>&5
11867   ac_status=$?
11868   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11869   (exit $ac_status); }; }; then
11870   ac_cv_lib_capi20_capi20_register=yes
11871 else
11872   echo "$as_me: failed program was:" >&5
11873 sed 's/^/| /' conftest.$ac_ext >&5
11874
11875 ac_cv_lib_capi20_capi20_register=no
11876 fi
11877 rm -f conftest.err conftest.$ac_objext \
11878       conftest$ac_exeext conftest.$ac_ext
11879 LIBS=$ac_check_lib_save_LIBS
11880 fi
11881 echo "$as_me:$LINENO: result: $ac_cv_lib_capi20_capi20_register" >&5
11882 echo "${ECHO_T}$ac_cv_lib_capi20_capi20_register" >&6
11883 if test $ac_cv_lib_capi20_capi20_register = yes; then
11884
11885 cat >>confdefs.h <<\_ACEOF
11886 #define HAVE_CAPI4LINUX 1
11887 _ACEOF
11888
11889 fi
11890
11891 fi
11892
11893
11894 EXTRACFLAGS=""
11895
11896 if test "x${GCC}" = "xyes"
11897 then
11898   EXTRACFLAGS="-Wall -pipe"
11899
11900     echo "$as_me:$LINENO: checking for gcc strength-reduce bug" >&5
11901 echo $ECHO_N "checking for gcc strength-reduce bug... $ECHO_C" >&6
11902 if test "${ac_cv_c_gcc_strength_bug+set}" = set; then
11903   echo $ECHO_N "(cached) $ECHO_C" >&6
11904 else
11905   if test "$cross_compiling" = yes; then
11906   ac_cv_c_gcc_strength_bug="yes"
11907 else
11908   cat >conftest.$ac_ext <<_ACEOF
11909 /* confdefs.h.  */
11910 _ACEOF
11911 cat confdefs.h >>conftest.$ac_ext
11912 cat >>conftest.$ac_ext <<_ACEOF
11913 /* end confdefs.h.  */
11914
11915 int     L[4] = {0,1,2,3};
11916 int main(void) {
11917   static int Array[3];
11918   unsigned int B = 3;
11919   int i;
11920   for(i=0; i<B; i++) Array[i] = i - 3;
11921   for(i=0; i<4 - 1; i++) L[i] = L[i + 1];
11922   L[i] = 4;
11923
11924   exit( Array[1] != -2 || L[2] != 3);
11925 }
11926 _ACEOF
11927 rm -f conftest$ac_exeext
11928 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11929   (eval $ac_link) 2>&5
11930   ac_status=$?
11931   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11932   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11933   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11934   (eval $ac_try) 2>&5
11935   ac_status=$?
11936   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11937   (exit $ac_status); }; }; then
11938   ac_cv_c_gcc_strength_bug="no"
11939 else
11940   echo "$as_me: program exited with status $ac_status" >&5
11941 echo "$as_me: failed program was:" >&5
11942 sed 's/^/| /' conftest.$ac_ext >&5
11943
11944 ( exit $ac_status )
11945 ac_cv_c_gcc_strength_bug="yes"
11946 fi
11947 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11948 fi
11949 fi
11950 echo "$as_me:$LINENO: result: $ac_cv_c_gcc_strength_bug" >&5
11951 echo "${ECHO_T}$ac_cv_c_gcc_strength_bug" >&6
11952   if test "$ac_cv_c_gcc_strength_bug" = "yes"
11953   then
11954     EXTRACFLAGS="$EXTRACFLAGS -fno-strength-reduce"
11955   fi
11956
11957     echo "$as_me:$LINENO: checking for gcc -fshort-wchar support" >&5
11958 echo $ECHO_N "checking for gcc -fshort-wchar support... $ECHO_C" >&6
11959 if test "${ac_cv_c_gcc_fshort_wchar+set}" = set; then
11960   echo $ECHO_N "(cached) $ECHO_C" >&6
11961 else
11962   ac_wine_try_cflags_saved=$CFLAGS
11963 CFLAGS="$CFLAGS -fshort-wchar"
11964 cat >conftest.$ac_ext <<_ACEOF
11965 /* confdefs.h.  */
11966 _ACEOF
11967 cat confdefs.h >>conftest.$ac_ext
11968 cat >>conftest.$ac_ext <<_ACEOF
11969 /* end confdefs.h.  */
11970
11971 int
11972 main ()
11973 {
11974
11975   ;
11976   return 0;
11977 }
11978 _ACEOF
11979 rm -f conftest.$ac_objext conftest$ac_exeext
11980 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11981   (eval $ac_link) 2>conftest.er1
11982   ac_status=$?
11983   grep -v '^ *+' conftest.er1 >conftest.err
11984   rm -f conftest.er1
11985   cat conftest.err >&5
11986   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11987   (exit $ac_status); } &&
11988          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
11989   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11990   (eval $ac_try) 2>&5
11991   ac_status=$?
11992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11993   (exit $ac_status); }; } &&
11994          { ac_try='test -s conftest$ac_exeext'
11995   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11996   (eval $ac_try) 2>&5
11997   ac_status=$?
11998   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11999   (exit $ac_status); }; }; then
12000   ac_cv_c_gcc_fshort_wchar="yes"
12001 else
12002   echo "$as_me: failed program was:" >&5
12003 sed 's/^/| /' conftest.$ac_ext >&5
12004
12005 ac_cv_c_gcc_fshort_wchar="no"
12006 fi
12007 rm -f conftest.err conftest.$ac_objext \
12008       conftest$ac_exeext conftest.$ac_ext
12009 CFLAGS=$ac_wine_try_cflags_saved
12010 fi
12011 echo "$as_me:$LINENO: result: $ac_cv_c_gcc_fshort_wchar" >&5
12012 echo "${ECHO_T}$ac_cv_c_gcc_fshort_wchar" >&6
12013   if test "$ac_cv_c_gcc_fshort_wchar" = "yes"
12014   then
12015
12016 cat >>confdefs.h <<\_ACEOF
12017 #define CC_FLAG_SHORT_WCHAR "-fshort-wchar"
12018 _ACEOF
12019
12020   fi
12021
12022     echo "$as_me:$LINENO: checking for gcc -fno-strict-aliasing support" >&5
12023 echo $ECHO_N "checking for gcc -fno-strict-aliasing support... $ECHO_C" >&6
12024 if test "${ac_cv_c_gcc_no_strict_aliasing+set}" = set; then
12025   echo $ECHO_N "(cached) $ECHO_C" >&6
12026 else
12027   ac_wine_try_cflags_saved=$CFLAGS
12028 CFLAGS="$CFLAGS -fno-strict-aliasing"
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 int
12037 main ()
12038 {
12039
12040   ;
12041   return 0;
12042 }
12043 _ACEOF
12044 rm -f conftest.$ac_objext conftest$ac_exeext
12045 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12046   (eval $ac_link) 2>conftest.er1
12047   ac_status=$?
12048   grep -v '^ *+' conftest.er1 >conftest.err
12049   rm -f conftest.er1
12050   cat conftest.err >&5
12051   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12052   (exit $ac_status); } &&
12053          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
12054   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12055   (eval $ac_try) 2>&5
12056   ac_status=$?
12057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12058   (exit $ac_status); }; } &&
12059          { ac_try='test -s conftest$ac_exeext'
12060   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12061   (eval $ac_try) 2>&5
12062   ac_status=$?
12063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12064   (exit $ac_status); }; }; then
12065   ac_cv_c_gcc_no_strict_aliasing="yes"
12066 else
12067   echo "$as_me: failed program was:" >&5
12068 sed 's/^/| /' conftest.$ac_ext >&5
12069
12070 ac_cv_c_gcc_no_strict_aliasing="no"
12071 fi
12072 rm -f conftest.err conftest.$ac_objext \
12073       conftest$ac_exeext conftest.$ac_ext
12074 CFLAGS=$ac_wine_try_cflags_saved
12075 fi
12076 echo "$as_me:$LINENO: result: $ac_cv_c_gcc_no_strict_aliasing" >&5
12077 echo "${ECHO_T}$ac_cv_c_gcc_no_strict_aliasing" >&6
12078   if test "$ac_cv_c_gcc_no_strict_aliasing" = "yes"
12079   then
12080     EXTRACFLAGS="$EXTRACFLAGS -fno-strict-aliasing"
12081   fi
12082
12083     echo "$as_me:$LINENO: checking for gcc -gstabs+ support" >&5
12084 echo $ECHO_N "checking for gcc -gstabs+ support... $ECHO_C" >&6
12085 if test "${ac_cv_c_gcc_gstabs+set}" = set; then
12086   echo $ECHO_N "(cached) $ECHO_C" >&6
12087 else
12088   ac_wine_try_cflags_saved=$CFLAGS
12089 CFLAGS="$CFLAGS -gstabs+"
12090 cat >conftest.$ac_ext <<_ACEOF
12091 /* confdefs.h.  */
12092 _ACEOF
12093 cat confdefs.h >>conftest.$ac_ext
12094 cat >>conftest.$ac_ext <<_ACEOF
12095 /* end confdefs.h.  */
12096
12097 int
12098 main ()
12099 {
12100
12101   ;
12102   return 0;
12103 }
12104 _ACEOF
12105 rm -f conftest.$ac_objext conftest$ac_exeext
12106 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12107   (eval $ac_link) 2>conftest.er1
12108   ac_status=$?
12109   grep -v '^ *+' conftest.er1 >conftest.err
12110   rm -f conftest.er1
12111   cat conftest.err >&5
12112   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12113   (exit $ac_status); } &&
12114          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
12115   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12116   (eval $ac_try) 2>&5
12117   ac_status=$?
12118   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12119   (exit $ac_status); }; } &&
12120          { ac_try='test -s conftest$ac_exeext'
12121   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12122   (eval $ac_try) 2>&5
12123   ac_status=$?
12124   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12125   (exit $ac_status); }; }; then
12126   ac_cv_c_gcc_gstabs="yes"
12127 else
12128   echo "$as_me: failed program was:" >&5
12129 sed 's/^/| /' conftest.$ac_ext >&5
12130
12131 ac_cv_c_gcc_gstabs="no"
12132 fi
12133 rm -f conftest.err conftest.$ac_objext \
12134       conftest$ac_exeext conftest.$ac_ext
12135 CFLAGS=$ac_wine_try_cflags_saved
12136 fi
12137 echo "$as_me:$LINENO: result: $ac_cv_c_gcc_gstabs" >&5
12138 echo "${ECHO_T}$ac_cv_c_gcc_gstabs" >&6
12139   if test "$ac_cv_c_gcc_gstabs" = "yes"
12140   then
12141     EXTRACFLAGS="$EXTRACFLAGS -gstabs+"
12142   fi
12143
12144     echo "$as_me:$LINENO: checking for gcc -Wdeclaration-after-statement support" >&5
12145 echo $ECHO_N "checking for gcc -Wdeclaration-after-statement support... $ECHO_C" >&6
12146 if test "${ac_cv_c_gcc_decl_after_statement+set}" = set; then
12147   echo $ECHO_N "(cached) $ECHO_C" >&6
12148 else
12149   ac_wine_try_cflags_saved=$CFLAGS
12150 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
12151 cat >conftest.$ac_ext <<_ACEOF
12152 /* confdefs.h.  */
12153 _ACEOF
12154 cat confdefs.h >>conftest.$ac_ext
12155 cat >>conftest.$ac_ext <<_ACEOF
12156 /* end confdefs.h.  */
12157
12158 int
12159 main ()
12160 {
12161
12162   ;
12163   return 0;
12164 }
12165 _ACEOF
12166 rm -f conftest.$ac_objext conftest$ac_exeext
12167 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12168   (eval $ac_link) 2>conftest.er1
12169   ac_status=$?
12170   grep -v '^ *+' conftest.er1 >conftest.err
12171   rm -f conftest.er1
12172   cat conftest.err >&5
12173   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12174   (exit $ac_status); } &&
12175          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
12176   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12177   (eval $ac_try) 2>&5
12178   ac_status=$?
12179   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12180   (exit $ac_status); }; } &&
12181          { ac_try='test -s conftest$ac_exeext'
12182   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12183   (eval $ac_try) 2>&5
12184   ac_status=$?
12185   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12186   (exit $ac_status); }; }; then
12187   ac_cv_c_gcc_decl_after_statement="yes"
12188 else
12189   echo "$as_me: failed program was:" >&5
12190 sed 's/^/| /' conftest.$ac_ext >&5
12191
12192 ac_cv_c_gcc_decl_after_statement="no"
12193 fi
12194 rm -f conftest.err conftest.$ac_objext \
12195       conftest$ac_exeext conftest.$ac_ext
12196 CFLAGS=$ac_wine_try_cflags_saved
12197 fi
12198 echo "$as_me:$LINENO: result: $ac_cv_c_gcc_decl_after_statement" >&5
12199 echo "${ECHO_T}$ac_cv_c_gcc_decl_after_statement" >&6
12200   if test "$ac_cv_c_gcc_decl_after_statement" = "yes"
12201   then
12202     EXTRACFLAGS="$EXTRACFLAGS -Wdeclaration-after-statement"
12203   fi
12204
12205     saved_CFLAGS="$CFLAGS"
12206   CFLAGS="$CFLAGS -Wpointer-arith -Werror"
12207   echo "$as_me:$LINENO: checking for broken string.h that generates warnings" >&5
12208 echo $ECHO_N "checking for broken string.h that generates warnings... $ECHO_C" >&6
12209 if test "${ac_cv_c_string_h_warnings+set}" = set; then
12210   echo $ECHO_N "(cached) $ECHO_C" >&6
12211 else
12212   cat >conftest.$ac_ext <<_ACEOF
12213 /* confdefs.h.  */
12214 _ACEOF
12215 cat confdefs.h >>conftest.$ac_ext
12216 cat >>conftest.$ac_ext <<_ACEOF
12217 /* end confdefs.h.  */
12218 #include <string.h>
12219 int
12220 main ()
12221 {
12222
12223   ;
12224   return 0;
12225 }
12226 _ACEOF
12227 rm -f conftest.$ac_objext
12228 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12229   (eval $ac_compile) 2>conftest.er1
12230   ac_status=$?
12231   grep -v '^ *+' conftest.er1 >conftest.err
12232   rm -f conftest.er1
12233   cat conftest.err >&5
12234   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12235   (exit $ac_status); } &&
12236          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
12237   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12238   (eval $ac_try) 2>&5
12239   ac_status=$?
12240   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12241   (exit $ac_status); }; } &&
12242          { ac_try='test -s conftest.$ac_objext'
12243   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12244   (eval $ac_try) 2>&5
12245   ac_status=$?
12246   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12247   (exit $ac_status); }; }; then
12248   ac_cv_c_string_h_warnings=no
12249 else
12250   echo "$as_me: failed program was:" >&5
12251 sed 's/^/| /' conftest.$ac_ext >&5
12252
12253 ac_cv_c_string_h_warnings=yes
12254 fi
12255 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12256 fi
12257 echo "$as_me:$LINENO: result: $ac_cv_c_string_h_warnings" >&5
12258 echo "${ECHO_T}$ac_cv_c_string_h_warnings" >&6
12259   CFLAGS="$saved_CFLAGS"
12260   if test "$ac_cv_c_string_h_warnings" = "no"
12261   then
12262     EXTRACFLAGS="$EXTRACFLAGS -Wpointer-arith"
12263   fi
12264
12265   BUILTINFLAG=""
12266
12267   saved_CFLAGS="$CFLAGS"
12268   CFLAGS="$CFLAGS -Werror"
12269   echo "$as_me:$LINENO: checking for builtin wchar inlines" >&5
12270 echo $ECHO_N "checking for builtin wchar inlines... $ECHO_C" >&6
12271 if test "${ac_cv_c_builtin_wchar_ctype+set}" = set; then
12272   echo $ECHO_N "(cached) $ECHO_C" >&6
12273 else
12274   cat >conftest.$ac_ext <<_ACEOF
12275 /* confdefs.h.  */
12276 _ACEOF
12277 cat confdefs.h >>conftest.$ac_ext
12278 cat >>conftest.$ac_ext <<_ACEOF
12279 /* end confdefs.h.  */
12280
12281 int
12282 main ()
12283 {
12284 int iswlower(unsigned short);
12285   ;
12286   return 0;
12287 }
12288 _ACEOF
12289 rm -f conftest.$ac_objext
12290 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12291   (eval $ac_compile) 2>conftest.er1
12292   ac_status=$?
12293   grep -v '^ *+' conftest.er1 >conftest.err
12294   rm -f conftest.er1
12295   cat conftest.err >&5
12296   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12297   (exit $ac_status); } &&
12298          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
12299   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12300   (eval $ac_try) 2>&5
12301   ac_status=$?
12302   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12303   (exit $ac_status); }; } &&
12304          { ac_try='test -s conftest.$ac_objext'
12305   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12306   (eval $ac_try) 2>&5
12307   ac_status=$?
12308   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12309   (exit $ac_status); }; }; then
12310   ac_cv_c_builtin_wchar_ctype=no
12311 else
12312   echo "$as_me: failed program was:" >&5
12313 sed 's/^/| /' conftest.$ac_ext >&5
12314
12315 ac_cv_c_builtin_wchar_ctype=yes
12316 fi
12317 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12318 fi
12319 echo "$as_me:$LINENO: result: $ac_cv_c_builtin_wchar_ctype" >&5
12320 echo "${ECHO_T}$ac_cv_c_builtin_wchar_ctype" >&6
12321   CFLAGS="$saved_CFLAGS"
12322   if test "$ac_cv_c_builtin_wchar_ctype" = "yes"
12323   then
12324     BUILTINFLAG=""
12325     for builtin in \
12326       iswalnum iswalpha iswcntrl iswdigit iswgraph iswlower \
12327       iswprint iswpunct iswspace iswupper iswxdigit towlower towupper
12328     do
12329       BUILTINFLAG="$BUILTINFLAG -fno-builtin-$builtin"
12330     done
12331   fi
12332 fi
12333
12334
12335 echo "$as_me:$LINENO: checking how to define a function in assembly code" >&5
12336 echo $ECHO_N "checking how to define a function in assembly code... $ECHO_C" >&6
12337 if test "${ac_cv_asm_func_def+set}" = set; then
12338   echo $ECHO_N "(cached) $ECHO_C" >&6
12339 else
12340   cat >conftest.$ac_ext <<_ACEOF
12341 /* confdefs.h.  */
12342 _ACEOF
12343 cat confdefs.h >>conftest.$ac_ext
12344 cat >>conftest.$ac_ext <<_ACEOF
12345 /* end confdefs.h.  */
12346 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"); }
12347
12348 int
12349 main ()
12350 {
12351
12352   ;
12353   return 0;
12354 }
12355 _ACEOF
12356 rm -f conftest.$ac_objext conftest$ac_exeext
12357 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12358   (eval $ac_link) 2>conftest.er1
12359   ac_status=$?
12360   grep -v '^ *+' conftest.er1 >conftest.err
12361   rm -f conftest.er1
12362   cat conftest.err >&5
12363   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12364   (exit $ac_status); } &&
12365          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
12366   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12367   (eval $ac_try) 2>&5
12368   ac_status=$?
12369   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12370   (exit $ac_status); }; } &&
12371          { ac_try='test -s conftest$ac_exeext'
12372   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12373   (eval $ac_try) 2>&5
12374   ac_status=$?
12375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12376   (exit $ac_status); }; }; then
12377   ac_cv_asm_func_def=".def"
12378 else
12379   echo "$as_me: failed program was:" >&5
12380 sed 's/^/| /' conftest.$ac_ext >&5
12381
12382 cat >conftest.$ac_ext <<_ACEOF
12383 /* confdefs.h.  */
12384 _ACEOF
12385 cat confdefs.h >>conftest.$ac_ext
12386 cat >>conftest.$ac_ext <<_ACEOF
12387 /* end confdefs.h.  */
12388 void ac_asm(void) { asm("\t.globl _ac_test\n\t.type _ac_test,@function\n_ac_test:\t.long 0"); }
12389
12390 int
12391 main ()
12392 {
12393
12394   ;
12395   return 0;
12396 }
12397 _ACEOF
12398 rm -f conftest.$ac_objext conftest$ac_exeext
12399 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12400   (eval $ac_link) 2>conftest.er1
12401   ac_status=$?
12402   grep -v '^ *+' conftest.er1 >conftest.err
12403   rm -f conftest.er1
12404   cat conftest.err >&5
12405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12406   (exit $ac_status); } &&
12407          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
12408   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12409   (eval $ac_try) 2>&5
12410   ac_status=$?
12411   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12412   (exit $ac_status); }; } &&
12413          { ac_try='test -s conftest$ac_exeext'
12414   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12415   (eval $ac_try) 2>&5
12416   ac_status=$?
12417   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12418   (exit $ac_status); }; }; then
12419   ac_cv_asm_func_def=".type @function"
12420 else
12421   echo "$as_me: failed program was:" >&5
12422 sed 's/^/| /' conftest.$ac_ext >&5
12423
12424 cat >conftest.$ac_ext <<_ACEOF
12425 /* confdefs.h.  */
12426 _ACEOF
12427 cat confdefs.h >>conftest.$ac_ext
12428 cat >>conftest.$ac_ext <<_ACEOF
12429 /* end confdefs.h.  */
12430 void ac_asm(void) { asm("\t.globl _ac_test\n\t.type _ac_test,2\n_ac_test:\t.long 0"); }
12431
12432 int
12433 main ()
12434 {
12435
12436   ;
12437   return 0;
12438 }
12439 _ACEOF
12440 rm -f conftest.$ac_objext conftest$ac_exeext
12441 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12442   (eval $ac_link) 2>conftest.er1
12443   ac_status=$?
12444   grep -v '^ *+' conftest.er1 >conftest.err
12445   rm -f conftest.er1
12446   cat conftest.err >&5
12447   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12448   (exit $ac_status); } &&
12449          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
12450   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12451   (eval $ac_try) 2>&5
12452   ac_status=$?
12453   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12454   (exit $ac_status); }; } &&
12455          { ac_try='test -s conftest$ac_exeext'
12456   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12457   (eval $ac_try) 2>&5
12458   ac_status=$?
12459   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12460   (exit $ac_status); }; }; then
12461   ac_cv_asm_func_def=".type 2"
12462 else
12463   echo "$as_me: failed program was:" >&5
12464 sed 's/^/| /' conftest.$ac_ext >&5
12465
12466 ac_cv_asm_func_def="unknown"
12467 fi
12468 rm -f conftest.err conftest.$ac_objext \
12469       conftest$ac_exeext conftest.$ac_ext
12470 fi
12471 rm -f conftest.err conftest.$ac_objext \
12472       conftest$ac_exeext conftest.$ac_ext
12473 fi
12474 rm -f conftest.err conftest.$ac_objext \
12475       conftest$ac_exeext conftest.$ac_ext
12476 fi
12477 echo "$as_me:$LINENO: result: $ac_cv_asm_func_def" >&5
12478 echo "${ECHO_T}$ac_cv_asm_func_def" >&6
12479
12480
12481
12482 case "$ac_cv_asm_func_def" in
12483   ".def")
12484      cat >>confdefs.h <<\_ACEOF
12485 #define __ASM_FUNC(name) ".def " __ASM_NAME(name) "; .scl 2; .type 32; .endef"
12486 _ACEOF
12487  ;;
12488   ".type @function")
12489      cat >>confdefs.h <<\_ACEOF
12490 #define __ASM_FUNC(name) ".type " __ASM_NAME(name) ",@function"
12491 _ACEOF
12492  ;;
12493   ".type 2")
12494      cat >>confdefs.h <<\_ACEOF
12495 #define __ASM_FUNC(name) ".type " __ASM_NAME(name) ",2"
12496 _ACEOF
12497  ;;
12498   *)
12499      cat >>confdefs.h <<\_ACEOF
12500 #define __ASM_FUNC(name) ""
12501 _ACEOF
12502  ;;
12503 esac
12504
12505
12506 echo "$as_me:$LINENO: checking whether external symbols need an underscore prefix" >&5
12507 echo $ECHO_N "checking whether external symbols need an underscore prefix... $ECHO_C" >&6
12508 if test "${ac_cv_c_extern_prefix+set}" = set; then
12509   echo $ECHO_N "(cached) $ECHO_C" >&6
12510 else
12511   cat >conftest.$ac_ext <<_ACEOF
12512 /* confdefs.h.  */
12513 _ACEOF
12514 cat confdefs.h >>conftest.$ac_ext
12515 cat >>conftest.$ac_ext <<_ACEOF
12516 /* end confdefs.h.  */
12517 void ac_asm(void) { asm(".globl _ac_test\n_ac_test:\t.long 0"); }
12518 extern int ac_test;
12519 int
12520 main ()
12521 {
12522 if (ac_test) return 1
12523   ;
12524   return 0;
12525 }
12526 _ACEOF
12527 rm -f conftest.$ac_objext conftest$ac_exeext
12528 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12529   (eval $ac_link) 2>conftest.er1
12530   ac_status=$?
12531   grep -v '^ *+' conftest.er1 >conftest.err
12532   rm -f conftest.er1
12533   cat conftest.err >&5
12534   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12535   (exit $ac_status); } &&
12536          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
12537   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12538   (eval $ac_try) 2>&5
12539   ac_status=$?
12540   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12541   (exit $ac_status); }; } &&
12542          { ac_try='test -s conftest$ac_exeext'
12543   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12544   (eval $ac_try) 2>&5
12545   ac_status=$?
12546   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12547   (exit $ac_status); }; }; then
12548   ac_cv_c_extern_prefix="yes"
12549 else
12550   echo "$as_me: failed program was:" >&5
12551 sed 's/^/| /' conftest.$ac_ext >&5
12552
12553 ac_cv_c_extern_prefix="no"
12554 fi
12555 rm -f conftest.err conftest.$ac_objext \
12556       conftest$ac_exeext conftest.$ac_ext
12557 fi
12558 echo "$as_me:$LINENO: result: $ac_cv_c_extern_prefix" >&5
12559 echo "${ECHO_T}$ac_cv_c_extern_prefix" >&6
12560
12561
12562
12563 if test "$ac_cv_c_extern_prefix" = "yes"
12564 then
12565   cat >>confdefs.h <<\_ACEOF
12566 #define __ASM_NAME(name) "_" name
12567 _ACEOF
12568
12569 else
12570   cat >>confdefs.h <<\_ACEOF
12571 #define __ASM_NAME(name) name
12572 _ACEOF
12573
12574 fi
12575
12576
12577 DLLEXT=""
12578
12579 DLLFLAGS="-D_REENTRANT"
12580
12581 DLLIBS=""
12582
12583 LDSHARED=""
12584
12585 LDDLLFLAGS=""
12586
12587 LIBEXT="so"
12588
12589 IMPLIBEXT="def"
12590
12591
12592 case $host_os in
12593   cygwin*|mingw32*)
12594     if test -n "$ac_tool_prefix"; then
12595   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
12596 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
12597 echo "$as_me:$LINENO: checking for $ac_word" >&5
12598 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12599 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
12600   echo $ECHO_N "(cached) $ECHO_C" >&6
12601 else
12602   if test -n "$DLLTOOL"; then
12603   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
12604 else
12605 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12606 for as_dir in $PATH
12607 do
12608   IFS=$as_save_IFS
12609   test -z "$as_dir" && as_dir=.
12610   for ac_exec_ext in '' $ac_executable_extensions; do
12611   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12612     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
12613     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12614     break 2
12615   fi
12616 done
12617 done
12618
12619 fi
12620 fi
12621 DLLTOOL=$ac_cv_prog_DLLTOOL
12622 if test -n "$DLLTOOL"; then
12623   echo "$as_me:$LINENO: result: $DLLTOOL" >&5
12624 echo "${ECHO_T}$DLLTOOL" >&6
12625 else
12626   echo "$as_me:$LINENO: result: no" >&5
12627 echo "${ECHO_T}no" >&6
12628 fi
12629
12630 fi
12631 if test -z "$ac_cv_prog_DLLTOOL"; then
12632   ac_ct_DLLTOOL=$DLLTOOL
12633   # Extract the first word of "dlltool", so it can be a program name with args.
12634 set dummy dlltool; ac_word=$2
12635 echo "$as_me:$LINENO: checking for $ac_word" >&5
12636 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12637 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
12638   echo $ECHO_N "(cached) $ECHO_C" >&6
12639 else
12640   if test -n "$ac_ct_DLLTOOL"; then
12641   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
12642 else
12643 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12644 for as_dir in $PATH
12645 do
12646   IFS=$as_save_IFS
12647   test -z "$as_dir" && as_dir=.
12648   for ac_exec_ext in '' $ac_executable_extensions; do
12649   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12650     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
12651     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12652     break 2
12653   fi
12654 done
12655 done
12656
12657   test -z "$ac_cv_prog_ac_ct_DLLTOOL" && ac_cv_prog_ac_ct_DLLTOOL="false"
12658 fi
12659 fi
12660 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
12661 if test -n "$ac_ct_DLLTOOL"; then
12662   echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
12663 echo "${ECHO_T}$ac_ct_DLLTOOL" >&6
12664 else
12665   echo "$as_me:$LINENO: result: no" >&5
12666 echo "${ECHO_T}no" >&6
12667 fi
12668
12669   DLLTOOL=$ac_ct_DLLTOOL
12670 else
12671   DLLTOOL="$ac_cv_prog_DLLTOOL"
12672 fi
12673
12674     if test -n "$ac_tool_prefix"; then
12675   # Extract the first word of "${ac_tool_prefix}dllwrap", so it can be a program name with args.
12676 set dummy ${ac_tool_prefix}dllwrap; ac_word=$2
12677 echo "$as_me:$LINENO: checking for $ac_word" >&5
12678 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12679 if test "${ac_cv_prog_DLLWRAP+set}" = set; then
12680   echo $ECHO_N "(cached) $ECHO_C" >&6
12681 else
12682   if test -n "$DLLWRAP"; then
12683   ac_cv_prog_DLLWRAP="$DLLWRAP" # Let the user override the test.
12684 else
12685 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12686 for as_dir in $PATH
12687 do
12688   IFS=$as_save_IFS
12689   test -z "$as_dir" && as_dir=.
12690   for ac_exec_ext in '' $ac_executable_extensions; do
12691   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12692     ac_cv_prog_DLLWRAP="${ac_tool_prefix}dllwrap"
12693     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12694     break 2
12695   fi
12696 done
12697 done
12698
12699 fi
12700 fi
12701 DLLWRAP=$ac_cv_prog_DLLWRAP
12702 if test -n "$DLLWRAP"; then
12703   echo "$as_me:$LINENO: result: $DLLWRAP" >&5
12704 echo "${ECHO_T}$DLLWRAP" >&6
12705 else
12706   echo "$as_me:$LINENO: result: no" >&5
12707 echo "${ECHO_T}no" >&6
12708 fi
12709
12710 fi
12711 if test -z "$ac_cv_prog_DLLWRAP"; then
12712   ac_ct_DLLWRAP=$DLLWRAP
12713   # Extract the first word of "dllwrap", so it can be a program name with args.
12714 set dummy dllwrap; ac_word=$2
12715 echo "$as_me:$LINENO: checking for $ac_word" >&5
12716 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12717 if test "${ac_cv_prog_ac_ct_DLLWRAP+set}" = set; then
12718   echo $ECHO_N "(cached) $ECHO_C" >&6
12719 else
12720   if test -n "$ac_ct_DLLWRAP"; then
12721   ac_cv_prog_ac_ct_DLLWRAP="$ac_ct_DLLWRAP" # Let the user override the test.
12722 else
12723 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12724 for as_dir in $PATH
12725 do
12726   IFS=$as_save_IFS
12727   test -z "$as_dir" && as_dir=.
12728   for ac_exec_ext in '' $ac_executable_extensions; do
12729   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12730     ac_cv_prog_ac_ct_DLLWRAP="dllwrap"
12731     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12732     break 2
12733   fi
12734 done
12735 done
12736
12737   test -z "$ac_cv_prog_ac_ct_DLLWRAP" && ac_cv_prog_ac_ct_DLLWRAP="false"
12738 fi
12739 fi
12740 ac_ct_DLLWRAP=$ac_cv_prog_ac_ct_DLLWRAP
12741 if test -n "$ac_ct_DLLWRAP"; then
12742   echo "$as_me:$LINENO: result: $ac_ct_DLLWRAP" >&5
12743 echo "${ECHO_T}$ac_ct_DLLWRAP" >&6
12744 else
12745   echo "$as_me:$LINENO: result: no" >&5
12746 echo "${ECHO_T}no" >&6
12747 fi
12748
12749   DLLWRAP=$ac_ct_DLLWRAP
12750 else
12751   DLLWRAP="$ac_cv_prog_DLLWRAP"
12752 fi
12753
12754     if test "$DLLWRAP" = "false"; then
12755       LIBEXT="a"
12756     else
12757             LIBEXT="dll"
12758     fi
12759     IMPLIBEXT="a"
12760         WIN16_FILES=""
12761     WIN16_INSTALL=""
12762     ;;
12763   *)
12764     if test "$ac_cv_header_dlfcn_h" = "yes"
12765     then
12766
12767 for ac_func in dlopen
12768 do
12769 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12770 echo "$as_me:$LINENO: checking for $ac_func" >&5
12771 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12772 if eval "test \"\${$as_ac_var+set}\" = set"; then
12773   echo $ECHO_N "(cached) $ECHO_C" >&6
12774 else
12775   cat >conftest.$ac_ext <<_ACEOF
12776 /* confdefs.h.  */
12777 _ACEOF
12778 cat confdefs.h >>conftest.$ac_ext
12779 cat >>conftest.$ac_ext <<_ACEOF
12780 /* end confdefs.h.  */
12781 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12782    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12783 #define $ac_func innocuous_$ac_func
12784
12785 /* System header to define __stub macros and hopefully few prototypes,
12786     which can conflict with char $ac_func (); below.
12787     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12788     <limits.h> exists even on freestanding compilers.  */
12789
12790 #ifdef __STDC__
12791 # include <limits.h>
12792 #else
12793 # include <assert.h>
12794 #endif
12795
12796 #undef $ac_func
12797
12798 /* Override any gcc2 internal prototype to avoid an error.  */
12799 #ifdef __cplusplus
12800 extern "C"
12801 {
12802 #endif
12803 /* We use char because int might match the return type of a gcc2
12804    builtin and then its argument prototype would still apply.  */
12805 char $ac_func ();
12806 /* The GNU C library defines this for functions which it implements
12807     to always fail with ENOSYS.  Some functions are actually named
12808     something starting with __ and the normal name is an alias.  */
12809 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12810 choke me
12811 #else
12812 char (*f) () = $ac_func;
12813 #endif
12814 #ifdef __cplusplus
12815 }
12816 #endif
12817
12818 int
12819 main ()
12820 {
12821 return f != $ac_func;
12822   ;
12823   return 0;
12824 }
12825 _ACEOF
12826 rm -f conftest.$ac_objext conftest$ac_exeext
12827 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12828   (eval $ac_link) 2>conftest.er1
12829   ac_status=$?
12830   grep -v '^ *+' conftest.er1 >conftest.err
12831   rm -f conftest.er1
12832   cat conftest.err >&5
12833   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12834   (exit $ac_status); } &&
12835          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
12836   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12837   (eval $ac_try) 2>&5
12838   ac_status=$?
12839   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12840   (exit $ac_status); }; } &&
12841          { ac_try='test -s conftest$ac_exeext'
12842   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12843   (eval $ac_try) 2>&5
12844   ac_status=$?
12845   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12846   (exit $ac_status); }; }; then
12847   eval "$as_ac_var=yes"
12848 else
12849   echo "$as_me: failed program was:" >&5
12850 sed 's/^/| /' conftest.$ac_ext >&5
12851
12852 eval "$as_ac_var=no"
12853 fi
12854 rm -f conftest.err conftest.$ac_objext \
12855       conftest$ac_exeext conftest.$ac_ext
12856 fi
12857 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12858 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12859 if test `eval echo '${'$as_ac_var'}'` = yes; then
12860   cat >>confdefs.h <<_ACEOF
12861 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12862 _ACEOF
12863
12864 else
12865   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12866 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
12867 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12868   echo $ECHO_N "(cached) $ECHO_C" >&6
12869 else
12870   ac_check_lib_save_LIBS=$LIBS
12871 LIBS="-ldl  $LIBS"
12872 cat >conftest.$ac_ext <<_ACEOF
12873 /* confdefs.h.  */
12874 _ACEOF
12875 cat confdefs.h >>conftest.$ac_ext
12876 cat >>conftest.$ac_ext <<_ACEOF
12877 /* end confdefs.h.  */
12878
12879 /* Override any gcc2 internal prototype to avoid an error.  */
12880 #ifdef __cplusplus
12881 extern "C"
12882 #endif
12883 /* We use char because int might match the return type of a gcc2
12884    builtin and then its argument prototype would still apply.  */
12885 char dlopen ();
12886 int
12887 main ()
12888 {
12889 dlopen ();
12890   ;
12891   return 0;
12892 }
12893 _ACEOF
12894 rm -f conftest.$ac_objext conftest$ac_exeext
12895 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12896   (eval $ac_link) 2>conftest.er1
12897   ac_status=$?
12898   grep -v '^ *+' conftest.er1 >conftest.err
12899   rm -f conftest.er1
12900   cat conftest.err >&5
12901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12902   (exit $ac_status); } &&
12903          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
12904   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12905   (eval $ac_try) 2>&5
12906   ac_status=$?
12907   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12908   (exit $ac_status); }; } &&
12909          { ac_try='test -s conftest$ac_exeext'
12910   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12911   (eval $ac_try) 2>&5
12912   ac_status=$?
12913   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12914   (exit $ac_status); }; }; then
12915   ac_cv_lib_dl_dlopen=yes
12916 else
12917   echo "$as_me: failed program was:" >&5
12918 sed 's/^/| /' conftest.$ac_ext >&5
12919
12920 ac_cv_lib_dl_dlopen=no
12921 fi
12922 rm -f conftest.err conftest.$ac_objext \
12923       conftest$ac_exeext conftest.$ac_ext
12924 LIBS=$ac_check_lib_save_LIBS
12925 fi
12926 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12927 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
12928 if test $ac_cv_lib_dl_dlopen = yes; then
12929
12930 cat >>confdefs.h <<\_ACEOF
12931 #define HAVE_DLOPEN 1
12932 _ACEOF
12933
12934                           DLLIBS="-ldl"
12935 else
12936   LIBEXT="a"
12937 fi
12938
12939 fi
12940 done
12941
12942         ac_wine_check_funcs_save_LIBS="$LIBS"
12943 LIBS="$LIBS $DLLIBS"
12944
12945 for ac_func in dladdr
12946 do
12947 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12948 echo "$as_me:$LINENO: checking for $ac_func" >&5
12949 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12950 if eval "test \"\${$as_ac_var+set}\" = set"; then
12951   echo $ECHO_N "(cached) $ECHO_C" >&6
12952 else
12953   cat >conftest.$ac_ext <<_ACEOF
12954 /* confdefs.h.  */
12955 _ACEOF
12956 cat confdefs.h >>conftest.$ac_ext
12957 cat >>conftest.$ac_ext <<_ACEOF
12958 /* end confdefs.h.  */
12959 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12960    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12961 #define $ac_func innocuous_$ac_func
12962
12963 /* System header to define __stub macros and hopefully few prototypes,
12964     which can conflict with char $ac_func (); below.
12965     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12966     <limits.h> exists even on freestanding compilers.  */
12967
12968 #ifdef __STDC__
12969 # include <limits.h>
12970 #else
12971 # include <assert.h>
12972 #endif
12973
12974 #undef $ac_func
12975
12976 /* Override any gcc2 internal prototype to avoid an error.  */
12977 #ifdef __cplusplus
12978 extern "C"
12979 {
12980 #endif
12981 /* We use char because int might match the return type of a gcc2
12982    builtin and then its argument prototype would still apply.  */
12983 char $ac_func ();
12984 /* The GNU C library defines this for functions which it implements
12985     to always fail with ENOSYS.  Some functions are actually named
12986     something starting with __ and the normal name is an alias.  */
12987 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12988 choke me
12989 #else
12990 char (*f) () = $ac_func;
12991 #endif
12992 #ifdef __cplusplus
12993 }
12994 #endif
12995
12996 int
12997 main ()
12998 {
12999 return f != $ac_func;
13000   ;
13001   return 0;
13002 }
13003 _ACEOF
13004 rm -f conftest.$ac_objext conftest$ac_exeext
13005 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13006   (eval $ac_link) 2>conftest.er1
13007   ac_status=$?
13008   grep -v '^ *+' conftest.er1 >conftest.err
13009   rm -f conftest.er1
13010   cat conftest.err >&5
13011   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13012   (exit $ac_status); } &&
13013          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
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); }; } &&
13019          { ac_try='test -s conftest$ac_exeext'
13020   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13021   (eval $ac_try) 2>&5
13022   ac_status=$?
13023   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13024   (exit $ac_status); }; }; then
13025   eval "$as_ac_var=yes"
13026 else
13027   echo "$as_me: failed program was:" >&5
13028 sed 's/^/| /' conftest.$ac_ext >&5
13029
13030 eval "$as_ac_var=no"
13031 fi
13032 rm -f conftest.err conftest.$ac_objext \
13033       conftest$ac_exeext conftest.$ac_ext
13034 fi
13035 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13036 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13037 if test `eval echo '${'$as_ac_var'}'` = yes; then
13038   cat >>confdefs.h <<_ACEOF
13039 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13040 _ACEOF
13041
13042 fi
13043 done
13044
13045 LIBS="$ac_wine_check_funcs_save_LIBS"
13046     else
13047         LIBEXT="a"
13048     fi
13049
13050     if test "$LIBEXT" = "so"
13051     then
13052       DLLFLAGS="$DLLFLAGS -fPIC"
13053       DLLEXT=".so"
13054       echo "$as_me:$LINENO: checking whether we can build a GNU style ELF dll" >&5
13055 echo $ECHO_N "checking whether we can build a GNU style ELF dll... $ECHO_C" >&6
13056 if test "${ac_cv_c_dll_gnuelf+set}" = set; then
13057   echo $ECHO_N "(cached) $ECHO_C" >&6
13058 else
13059   ac_wine_try_cflags_saved=$CFLAGS
13060 CFLAGS="$CFLAGS -fPIC -shared -Wl,-soname,conftest.so.1.0,-Bsymbolic"
13061 cat >conftest.$ac_ext <<_ACEOF
13062 void myfunc() {}
13063 _ACEOF
13064 rm -f conftest.$ac_objext conftest$ac_exeext
13065 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13066   (eval $ac_link) 2>conftest.er1
13067   ac_status=$?
13068   grep -v '^ *+' conftest.er1 >conftest.err
13069   rm -f conftest.er1
13070   cat conftest.err >&5
13071   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13072   (exit $ac_status); } &&
13073          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
13074   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13075   (eval $ac_try) 2>&5
13076   ac_status=$?
13077   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13078   (exit $ac_status); }; } &&
13079          { ac_try='test -s conftest$ac_exeext'
13080   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13081   (eval $ac_try) 2>&5
13082   ac_status=$?
13083   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13084   (exit $ac_status); }; }; then
13085   ac_cv_c_dll_gnuelf="yes"
13086 else
13087   echo "$as_me: failed program was:" >&5
13088 sed 's/^/| /' conftest.$ac_ext >&5
13089
13090 ac_cv_c_dll_gnuelf="no"
13091 fi
13092 rm -f conftest.err conftest.$ac_objext \
13093       conftest$ac_exeext conftest.$ac_ext
13094 CFLAGS=$ac_wine_try_cflags_saved
13095 fi
13096 echo "$as_me:$LINENO: result: $ac_cv_c_dll_gnuelf" >&5
13097 echo "${ECHO_T}$ac_cv_c_dll_gnuelf" >&6
13098       if test "$ac_cv_c_dll_gnuelf" = "yes"
13099       then
13100         LDSHARED="\$(CC) -shared \$(SONAME:%=-Wl,-soname,%)"
13101         LDDLLFLAGS="-shared -Wl,-Bsymbolic"
13102         echo "$as_me:$LINENO: checking whether the linker accepts -z defs" >&5
13103 echo $ECHO_N "checking whether the linker accepts -z defs... $ECHO_C" >&6
13104 if test "${ac_cv_c_dll_zdefs+set}" = set; then
13105   echo $ECHO_N "(cached) $ECHO_C" >&6
13106 else
13107   ac_wine_try_cflags_saved=$CFLAGS
13108 CFLAGS="$CFLAGS -fPIC -shared -Wl,-Bsymbolic,-z,defs"
13109 cat >conftest.$ac_ext <<_ACEOF
13110 /* confdefs.h.  */
13111 _ACEOF
13112 cat confdefs.h >>conftest.$ac_ext
13113 cat >>conftest.$ac_ext <<_ACEOF
13114 /* end confdefs.h.  */
13115
13116 int
13117 main ()
13118 {
13119
13120   ;
13121   return 0;
13122 }
13123 _ACEOF
13124 rm -f conftest.$ac_objext conftest$ac_exeext
13125 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13126   (eval $ac_link) 2>conftest.er1
13127   ac_status=$?
13128   grep -v '^ *+' conftest.er1 >conftest.err
13129   rm -f conftest.er1
13130   cat conftest.err >&5
13131   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13132   (exit $ac_status); } &&
13133          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
13134   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13135   (eval $ac_try) 2>&5
13136   ac_status=$?
13137   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13138   (exit $ac_status); }; } &&
13139          { ac_try='test -s conftest$ac_exeext'
13140   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13141   (eval $ac_try) 2>&5
13142   ac_status=$?
13143   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13144   (exit $ac_status); }; }; then
13145   ac_cv_c_dll_zdefs="yes"
13146 else
13147   echo "$as_me: failed program was:" >&5
13148 sed 's/^/| /' conftest.$ac_ext >&5
13149
13150 ac_cv_c_dll_zdefs="no"
13151 fi
13152 rm -f conftest.err conftest.$ac_objext \
13153       conftest$ac_exeext conftest.$ac_ext
13154 CFLAGS=$ac_wine_try_cflags_saved
13155 fi
13156 echo "$as_me:$LINENO: result: $ac_cv_c_dll_zdefs" >&5
13157 echo "${ECHO_T}$ac_cv_c_dll_zdefs" >&6
13158         if test "$ac_cv_c_dll_zdefs" = "yes"
13159         then
13160           LDDLLFLAGS="$LDDLLFLAGS,-z,defs"
13161         fi
13162
13163         echo "$as_me:$LINENO: checking whether the linker accepts -init and -fini" >&5
13164 echo $ECHO_N "checking whether the linker accepts -init and -fini... $ECHO_C" >&6
13165 if test "${ac_cv_c_dll_init_fini+set}" = set; then
13166   echo $ECHO_N "(cached) $ECHO_C" >&6
13167 else
13168   ac_wine_try_cflags_saved=$CFLAGS
13169 CFLAGS="$CFLAGS -fPIC -shared -Wl,-Bsymbolic,-init,__wine_spec_init,-fini,__wine_spec_fini"
13170 cat >conftest.$ac_ext <<_ACEOF
13171 /* confdefs.h.  */
13172 _ACEOF
13173 cat confdefs.h >>conftest.$ac_ext
13174 cat >>conftest.$ac_ext <<_ACEOF
13175 /* end confdefs.h.  */
13176
13177 int
13178 main ()
13179 {
13180
13181   ;
13182   return 0;
13183 }
13184 _ACEOF
13185 rm -f conftest.$ac_objext conftest$ac_exeext
13186 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13187   (eval $ac_link) 2>conftest.er1
13188   ac_status=$?
13189   grep -v '^ *+' conftest.er1 >conftest.err
13190   rm -f conftest.er1
13191   cat conftest.err >&5
13192   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13193   (exit $ac_status); } &&
13194          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
13195   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13196   (eval $ac_try) 2>&5
13197   ac_status=$?
13198   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13199   (exit $ac_status); }; } &&
13200          { ac_try='test -s conftest$ac_exeext'
13201   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13202   (eval $ac_try) 2>&5
13203   ac_status=$?
13204   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13205   (exit $ac_status); }; }; then
13206   ac_cv_c_dll_init_fini="yes"
13207 else
13208   echo "$as_me: failed program was:" >&5
13209 sed 's/^/| /' conftest.$ac_ext >&5
13210
13211 ac_cv_c_dll_init_fini="no"
13212 fi
13213 rm -f conftest.err conftest.$ac_objext \
13214       conftest$ac_exeext conftest.$ac_ext
13215 CFLAGS=$ac_wine_try_cflags_saved
13216 fi
13217 echo "$as_me:$LINENO: result: $ac_cv_c_dll_init_fini" >&5
13218 echo "${ECHO_T}$ac_cv_c_dll_init_fini" >&6
13219         if test "$ac_cv_c_dll_init_fini" = "yes"
13220         then
13221           LDDLLFLAGS="$LDDLLFLAGS,-init,__wine_spec_init,-fini,__wine_spec_fini"
13222         fi
13223
13224         echo "$as_me:$LINENO: checking whether the linker accepts version scripts" >&5
13225 echo $ECHO_N "checking whether the linker accepts version scripts... $ECHO_C" >&6
13226 if test "${ac_cv_c_ld_version_scripts+set}" = set; then
13227   echo $ECHO_N "(cached) $ECHO_C" >&6
13228 else
13229   echo '{ global: *; };' >conftest.map
13230            ac_wine_try_cflags_saved=$CFLAGS
13231 CFLAGS="$CFLAGS -fPIC -shared -Wl,--version-script=conftest.map"
13232 cat >conftest.$ac_ext <<_ACEOF
13233 /* confdefs.h.  */
13234 _ACEOF
13235 cat confdefs.h >>conftest.$ac_ext
13236 cat >>conftest.$ac_ext <<_ACEOF
13237 /* end confdefs.h.  */
13238
13239 int
13240 main ()
13241 {
13242
13243   ;
13244   return 0;
13245 }
13246 _ACEOF
13247 rm -f conftest.$ac_objext conftest$ac_exeext
13248 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13249   (eval $ac_link) 2>conftest.er1
13250   ac_status=$?
13251   grep -v '^ *+' conftest.er1 >conftest.err
13252   rm -f conftest.er1
13253   cat conftest.err >&5
13254   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13255   (exit $ac_status); } &&
13256          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
13257   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13258   (eval $ac_try) 2>&5
13259   ac_status=$?
13260   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13261   (exit $ac_status); }; } &&
13262          { ac_try='test -s conftest$ac_exeext'
13263   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13264   (eval $ac_try) 2>&5
13265   ac_status=$?
13266   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13267   (exit $ac_status); }; }; then
13268   ac_cv_c_ld_version_scripts="yes"
13269 else
13270   echo "$as_me: failed program was:" >&5
13271 sed 's/^/| /' conftest.$ac_ext >&5
13272
13273 ac_cv_c_ld_version_scripts="no"
13274 fi
13275 rm -f conftest.err conftest.$ac_objext \
13276       conftest$ac_exeext conftest.$ac_ext
13277 CFLAGS=$ac_wine_try_cflags_saved
13278            rm -f conftest.map
13279 fi
13280 echo "$as_me:$LINENO: result: $ac_cv_c_ld_version_scripts" >&5
13281 echo "${ECHO_T}$ac_cv_c_ld_version_scripts" >&6
13282         if test "$ac_cv_c_ld_version_scripts" = "yes"
13283         then
13284           LDSHARED="$LDSHARED \$(VERSCRIPT:%=-Wl,--version-script=%)"
13285         fi
13286
13287         echo "$as_me:$LINENO: checking whether the linker accepts --export-dynamic" >&5
13288 echo $ECHO_N "checking whether the linker accepts --export-dynamic... $ECHO_C" >&6
13289 if test "${ac_cv_c_export_dynamic+set}" = set; then
13290   echo $ECHO_N "(cached) $ECHO_C" >&6
13291 else
13292   ac_wine_try_cflags_saved=$CFLAGS
13293 CFLAGS="$CFLAGS -fPIC -Wl,--export-dynamic"
13294 cat >conftest.$ac_ext <<_ACEOF
13295 /* confdefs.h.  */
13296 _ACEOF
13297 cat confdefs.h >>conftest.$ac_ext
13298 cat >>conftest.$ac_ext <<_ACEOF
13299 /* end confdefs.h.  */
13300
13301 int
13302 main ()
13303 {
13304
13305   ;
13306   return 0;
13307 }
13308 _ACEOF
13309 rm -f conftest.$ac_objext conftest$ac_exeext
13310 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13311   (eval $ac_link) 2>conftest.er1
13312   ac_status=$?
13313   grep -v '^ *+' conftest.er1 >conftest.err
13314   rm -f conftest.er1
13315   cat conftest.err >&5
13316   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13317   (exit $ac_status); } &&
13318          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
13319   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13320   (eval $ac_try) 2>&5
13321   ac_status=$?
13322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13323   (exit $ac_status); }; } &&
13324          { ac_try='test -s conftest$ac_exeext'
13325   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13326   (eval $ac_try) 2>&5
13327   ac_status=$?
13328   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13329   (exit $ac_status); }; }; then
13330   ac_cv_c_export_dynamic="yes"
13331 else
13332   echo "$as_me: failed program was:" >&5
13333 sed 's/^/| /' conftest.$ac_ext >&5
13334
13335 ac_cv_c_export_dynamic="no"
13336 fi
13337 rm -f conftest.err conftest.$ac_objext \
13338       conftest$ac_exeext conftest.$ac_ext
13339 CFLAGS=$ac_wine_try_cflags_saved
13340 fi
13341 echo "$as_me:$LINENO: result: $ac_cv_c_export_dynamic" >&5
13342 echo "${ECHO_T}$ac_cv_c_export_dynamic" >&6
13343         if test "$ac_cv_c_export_dynamic" = "yes"
13344         then
13345           LDEXECFLAGS="-Wl,--export-dynamic"
13346
13347         fi
13348
13349         echo "$as_me:$LINENO: checking whether the linker accepts --rpath" >&5
13350 echo $ECHO_N "checking whether the linker accepts --rpath... $ECHO_C" >&6
13351 if test "${ac_cv_ld_rpath+set}" = set; then
13352   echo $ECHO_N "(cached) $ECHO_C" >&6
13353 else
13354   ac_wine_try_cflags_saved=$CFLAGS
13355 CFLAGS="$CFLAGS -fPIC -Wl,--rpath,\$ORIGIN/../lib"
13356 cat >conftest.$ac_ext <<_ACEOF
13357 /* confdefs.h.  */
13358 _ACEOF
13359 cat confdefs.h >>conftest.$ac_ext
13360 cat >>conftest.$ac_ext <<_ACEOF
13361 /* end confdefs.h.  */
13362
13363 int
13364 main ()
13365 {
13366
13367   ;
13368   return 0;
13369 }
13370 _ACEOF
13371 rm -f conftest.$ac_objext conftest$ac_exeext
13372 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13373   (eval $ac_link) 2>conftest.er1
13374   ac_status=$?
13375   grep -v '^ *+' conftest.er1 >conftest.err
13376   rm -f conftest.er1
13377   cat conftest.err >&5
13378   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13379   (exit $ac_status); } &&
13380          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
13381   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13382   (eval $ac_try) 2>&5
13383   ac_status=$?
13384   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13385   (exit $ac_status); }; } &&
13386          { ac_try='test -s conftest$ac_exeext'
13387   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13388   (eval $ac_try) 2>&5
13389   ac_status=$?
13390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13391   (exit $ac_status); }; }; then
13392   ac_cv_ld_rpath="yes"
13393 else
13394   echo "$as_me: failed program was:" >&5
13395 sed 's/^/| /' conftest.$ac_ext >&5
13396
13397 ac_cv_ld_rpath="no"
13398 fi
13399 rm -f conftest.err conftest.$ac_objext \
13400       conftest$ac_exeext conftest.$ac_ext
13401 CFLAGS=$ac_wine_try_cflags_saved
13402 fi
13403 echo "$as_me:$LINENO: result: $ac_cv_ld_rpath" >&5
13404 echo "${ECHO_T}$ac_cv_ld_rpath" >&6
13405         if test "$ac_cv_ld_rpath" = "yes"
13406         then
13407           LDEXERPATH="-Wl,--rpath,\\\$\$ORIGIN/\`\$(RELPATH) \$(bindir) \$(libdir)\`"
13408
13409           LDDLLRPATH="-Wl,--rpath,\\\$\$ORIGIN/\`\$(RELPATH) \$(dlldir) \$(libdir)\`"
13410
13411         fi
13412
13413         case $host_cpu in
13414           *i[3456789]86*)
13415             echo "$as_me:$LINENO: checking whether we can relocate the executable to 0x7bf00000" >&5
13416 echo $ECHO_N "checking whether we can relocate the executable to 0x7bf00000... $ECHO_C" >&6
13417 if test "${ac_cv_ld_reloc_exec+set}" = set; then
13418   echo $ECHO_N "(cached) $ECHO_C" >&6
13419 else
13420   ac_wine_try_cflags_saved=$CFLAGS
13421 CFLAGS="$CFLAGS -Wl,--section-start,.interp=0x7bf00400"
13422 cat >conftest.$ac_ext <<_ACEOF
13423 /* confdefs.h.  */
13424 _ACEOF
13425 cat confdefs.h >>conftest.$ac_ext
13426 cat >>conftest.$ac_ext <<_ACEOF
13427 /* end confdefs.h.  */
13428
13429 int
13430 main ()
13431 {
13432
13433   ;
13434   return 0;
13435 }
13436 _ACEOF
13437 rm -f conftest.$ac_objext conftest$ac_exeext
13438 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13439   (eval $ac_link) 2>conftest.er1
13440   ac_status=$?
13441   grep -v '^ *+' conftest.er1 >conftest.err
13442   rm -f conftest.er1
13443   cat conftest.err >&5
13444   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13445   (exit $ac_status); } &&
13446          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
13447   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13448   (eval $ac_try) 2>&5
13449   ac_status=$?
13450   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13451   (exit $ac_status); }; } &&
13452          { ac_try='test -s conftest$ac_exeext'
13453   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13454   (eval $ac_try) 2>&5
13455   ac_status=$?
13456   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13457   (exit $ac_status); }; }; then
13458   ac_cv_ld_reloc_exec="yes"
13459 else
13460   echo "$as_me: failed program was:" >&5
13461 sed 's/^/| /' conftest.$ac_ext >&5
13462
13463 ac_cv_ld_reloc_exec="no"
13464 fi
13465 rm -f conftest.err conftest.$ac_objext \
13466       conftest$ac_exeext conftest.$ac_ext
13467 CFLAGS=$ac_wine_try_cflags_saved
13468 fi
13469 echo "$as_me:$LINENO: result: $ac_cv_ld_reloc_exec" >&5
13470 echo "${ECHO_T}$ac_cv_ld_reloc_exec" >&6
13471             if test "$ac_cv_ld_reloc_exec" = "yes"
13472             then
13473               LDEXECFLAGS="$LDEXECFLAGS -Wl,--section-start,.interp=0x7bf00400"
13474             fi
13475             ;;
13476         esac
13477
13478       else
13479         echo "$as_me:$LINENO: checking whether we can build a UnixWare (Solaris) dll" >&5
13480 echo $ECHO_N "checking whether we can build a UnixWare (Solaris) dll... $ECHO_C" >&6
13481 if test "${ac_cv_c_dll_unixware+set}" = set; then
13482   echo $ECHO_N "(cached) $ECHO_C" >&6
13483 else
13484   ac_wine_try_cflags_saved=$CFLAGS
13485 CFLAGS="$CFLAGS -fPIC -Wl,-G,-h,conftest.so.1.0,-B,symbolic"
13486 cat >conftest.$ac_ext <<_ACEOF
13487 void myfunc() {}
13488 _ACEOF
13489 rm -f conftest.$ac_objext conftest$ac_exeext
13490 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13491   (eval $ac_link) 2>conftest.er1
13492   ac_status=$?
13493   grep -v '^ *+' conftest.er1 >conftest.err
13494   rm -f conftest.er1
13495   cat conftest.err >&5
13496   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13497   (exit $ac_status); } &&
13498          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
13499   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13500   (eval $ac_try) 2>&5
13501   ac_status=$?
13502   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13503   (exit $ac_status); }; } &&
13504          { ac_try='test -s conftest$ac_exeext'
13505   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13506   (eval $ac_try) 2>&5
13507   ac_status=$?
13508   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13509   (exit $ac_status); }; }; then
13510   ac_cv_c_dll_unixware="yes"
13511 else
13512   echo "$as_me: failed program was:" >&5
13513 sed 's/^/| /' conftest.$ac_ext >&5
13514
13515 ac_cv_c_dll_unixware="no"
13516 fi
13517 rm -f conftest.err conftest.$ac_objext \
13518       conftest$ac_exeext conftest.$ac_ext
13519 CFLAGS=$ac_wine_try_cflags_saved
13520 fi
13521 echo "$as_me:$LINENO: result: $ac_cv_c_dll_unixware" >&5
13522 echo "${ECHO_T}$ac_cv_c_dll_unixware" >&6
13523         if test "$ac_cv_c_dll_unixware" = "yes"
13524         then
13525           LDSHARED="\$(CC) -Wl,-G \$(SONAME:%=-Wl,-h,%)"
13526           LDDLLFLAGS="-Wl,-G,-B,symbolic"
13527
13528         else
13529           echo "$as_me:$LINENO: checking whether we can build a Mach-O (Mac OS X/Darwin) dll" >&5
13530 echo $ECHO_N "checking whether we can build a Mach-O (Mac OS X/Darwin) dll... $ECHO_C" >&6
13531 if test "${ac_cv_c_dll_macho+set}" = set; then
13532   echo $ECHO_N "(cached) $ECHO_C" >&6
13533 else
13534   ac_wine_try_cflags_saved=$CFLAGS
13535 CFLAGS="$CFLAGS -bundle"
13536 cat >conftest.$ac_ext <<_ACEOF
13537 void myfunc() {}
13538 _ACEOF
13539 rm -f conftest.$ac_objext conftest$ac_exeext
13540 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13541   (eval $ac_link) 2>conftest.er1
13542   ac_status=$?
13543   grep -v '^ *+' conftest.er1 >conftest.err
13544   rm -f conftest.er1
13545   cat conftest.err >&5
13546   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13547   (exit $ac_status); } &&
13548          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
13549   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13550   (eval $ac_try) 2>&5
13551   ac_status=$?
13552   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13553   (exit $ac_status); }; } &&
13554          { ac_try='test -s conftest$ac_exeext'
13555   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13556   (eval $ac_try) 2>&5
13557   ac_status=$?
13558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13559   (exit $ac_status); }; }; then
13560   ac_cv_c_dll_macho="yes"
13561 else
13562   echo "$as_me: failed program was:" >&5
13563 sed 's/^/| /' conftest.$ac_ext >&5
13564
13565 ac_cv_c_dll_macho="no"
13566 fi
13567 rm -f conftest.err conftest.$ac_objext \
13568       conftest$ac_exeext conftest.$ac_ext
13569 CFLAGS=$ac_wine_try_cflags_saved
13570 fi
13571 echo "$as_me:$LINENO: result: $ac_cv_c_dll_macho" >&5
13572 echo "${ECHO_T}$ac_cv_c_dll_macho" >&6
13573           if test "$ac_cv_c_dll_macho" = "yes"
13574           then
13575             LIBEXT="dylib"
13576             LDDLLFLAGS="-bundle"
13577             LDSHARED="\$(CC) -dynamiclib"
13578             STRIP="$STRIP -u -r"
13579                         COREFOUNDATIONLIB="-framework CoreFoundation"
13580
13581             IOKITLIB="-framework IOKit -framework CoreFoundation"
13582
13583             LDEXECFLAGS="-image_base 0x7bf00000 -Wl,-segaddr,WINE_DOS,0x00000000,-segaddr,WINE_SHARED_HEAP,0x7ffe0000"
13584
13585             case $host_cpu in
13586               *powerpc*)
13587                 CFLAGS="$CFLAGS -ffixed-r13"
13588                 LDDLLFLAGS="$LDDLLFLAGS -read_only_relocs warning"
13589                 ;;
13590             esac
13591
13592           else
13593             echo "$as_me:$LINENO: checking whether we can build an HP-UX dll" >&5
13594 echo $ECHO_N "checking whether we can build an HP-UX dll... $ECHO_C" >&6
13595 if test "${ac_cv_c_dll_hpux+set}" = set; then
13596   echo $ECHO_N "(cached) $ECHO_C" >&6
13597 else
13598   ac_wine_try_cflags_saved=$CFLAGS
13599 CFLAGS="$CFLAGS -shared"
13600 cat >conftest.$ac_ext <<_ACEOF
13601 void myfunc() {}
13602 _ACEOF
13603 rm -f conftest.$ac_objext conftest$ac_exeext
13604 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13605   (eval $ac_link) 2>conftest.er1
13606   ac_status=$?
13607   grep -v '^ *+' conftest.er1 >conftest.err
13608   rm -f conftest.er1
13609   cat conftest.err >&5
13610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13611   (exit $ac_status); } &&
13612          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
13613   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13614   (eval $ac_try) 2>&5
13615   ac_status=$?
13616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13617   (exit $ac_status); }; } &&
13618          { ac_try='test -s conftest$ac_exeext'
13619   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13620   (eval $ac_try) 2>&5
13621   ac_status=$?
13622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13623   (exit $ac_status); }; }; then
13624   ac_cv_c_dll_hpux="yes"
13625 else
13626   echo "$as_me: failed program was:" >&5
13627 sed 's/^/| /' conftest.$ac_ext >&5
13628
13629 ac_cv_c_dll_hpux="no"
13630 fi
13631 rm -f conftest.err conftest.$ac_objext \
13632       conftest$ac_exeext conftest.$ac_ext
13633 CFLAGS=$ac_wine_try_cflags_saved
13634 fi
13635 echo "$as_me:$LINENO: result: $ac_cv_c_dll_hpux" >&5
13636 echo "${ECHO_T}$ac_cv_c_dll_hpux" >&6
13637             if test "$ac_cv_c_dll_hpux" = "yes"
13638             then
13639               LIBEXT="sl"
13640               DLLEXT=".sl"
13641               LDDLLFLAGS="-shared -fPIC"
13642               LDSHARED="\$(CC) -shared"
13643             fi
13644           fi
13645         fi
13646       fi
13647     fi
13648
13649         CROSSTEST=""
13650
13651     if test "$cross_compiling" = "no"
13652     then
13653       for ac_prog in i586-mingw32msvc-gcc i386-mingw32msvc-gcc i386-mingw32-gcc mingw-gcc
13654 do
13655   # Extract the first word of "$ac_prog", so it can be a program name with args.
13656 set dummy $ac_prog; ac_word=$2
13657 echo "$as_me:$LINENO: checking for $ac_word" >&5
13658 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13659 if test "${ac_cv_prog_CROSSCC+set}" = set; then
13660   echo $ECHO_N "(cached) $ECHO_C" >&6
13661 else
13662   if test -n "$CROSSCC"; then
13663   ac_cv_prog_CROSSCC="$CROSSCC" # Let the user override the test.
13664 else
13665 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13666 for as_dir in $PATH
13667 do
13668   IFS=$as_save_IFS
13669   test -z "$as_dir" && as_dir=.
13670   for ac_exec_ext in '' $ac_executable_extensions; do
13671   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13672     ac_cv_prog_CROSSCC="$ac_prog"
13673     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13674     break 2
13675   fi
13676 done
13677 done
13678
13679 fi
13680 fi
13681 CROSSCC=$ac_cv_prog_CROSSCC
13682 if test -n "$CROSSCC"; then
13683   echo "$as_me:$LINENO: result: $CROSSCC" >&5
13684 echo "${ECHO_T}$CROSSCC" >&6
13685 else
13686   echo "$as_me:$LINENO: result: no" >&5
13687 echo "${ECHO_T}no" >&6
13688 fi
13689
13690   test -n "$CROSSCC" && break
13691 done
13692 test -n "$CROSSCC" || CROSSCC="false"
13693
13694       for ac_prog in i586-mingw32msvc-dlltool i386-mingw32msvc-dlltool i386-mingw32-dlltool mingw-dlltool
13695 do
13696   # Extract the first word of "$ac_prog", so it can be a program name with args.
13697 set dummy $ac_prog; ac_word=$2
13698 echo "$as_me:$LINENO: checking for $ac_word" >&5
13699 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13700 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
13701   echo $ECHO_N "(cached) $ECHO_C" >&6
13702 else
13703   if test -n "$DLLTOOL"; then
13704   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
13705 else
13706 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13707 for as_dir in $PATH
13708 do
13709   IFS=$as_save_IFS
13710   test -z "$as_dir" && as_dir=.
13711   for ac_exec_ext in '' $ac_executable_extensions; do
13712   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13713     ac_cv_prog_DLLTOOL="$ac_prog"
13714     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13715     break 2
13716   fi
13717 done
13718 done
13719
13720 fi
13721 fi
13722 DLLTOOL=$ac_cv_prog_DLLTOOL
13723 if test -n "$DLLTOOL"; then
13724   echo "$as_me:$LINENO: result: $DLLTOOL" >&5
13725 echo "${ECHO_T}$DLLTOOL" >&6
13726 else
13727   echo "$as_me:$LINENO: result: no" >&5
13728 echo "${ECHO_T}no" >&6
13729 fi
13730
13731   test -n "$DLLTOOL" && break
13732 done
13733 test -n "$DLLTOOL" || DLLTOOL="false"
13734
13735       for ac_prog in i586-mingw32msvc-windres i386-mingw32msvc-windres i386-mingw32-windres mingw-windres
13736 do
13737   # Extract the first word of "$ac_prog", so it can be a program name with args.
13738 set dummy $ac_prog; ac_word=$2
13739 echo "$as_me:$LINENO: checking for $ac_word" >&5
13740 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13741 if test "${ac_cv_prog_CROSSWINDRES+set}" = set; then
13742   echo $ECHO_N "(cached) $ECHO_C" >&6
13743 else
13744   if test -n "$CROSSWINDRES"; then
13745   ac_cv_prog_CROSSWINDRES="$CROSSWINDRES" # Let the user override the test.
13746 else
13747 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13748 for as_dir in $PATH
13749 do
13750   IFS=$as_save_IFS
13751   test -z "$as_dir" && as_dir=.
13752   for ac_exec_ext in '' $ac_executable_extensions; do
13753   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13754     ac_cv_prog_CROSSWINDRES="$ac_prog"
13755     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13756     break 2
13757   fi
13758 done
13759 done
13760
13761 fi
13762 fi
13763 CROSSWINDRES=$ac_cv_prog_CROSSWINDRES
13764 if test -n "$CROSSWINDRES"; then
13765   echo "$as_me:$LINENO: result: $CROSSWINDRES" >&5
13766 echo "${ECHO_T}$CROSSWINDRES" >&6
13767 else
13768   echo "$as_me:$LINENO: result: no" >&5
13769 echo "${ECHO_T}no" >&6
13770 fi
13771
13772   test -n "$CROSSWINDRES" && break
13773 done
13774 test -n "$CROSSWINDRES" || CROSSWINDRES="false"
13775
13776       if test "$CROSSCC" != "false"; then CROSSTEST="\$(CROSSTEST)"; fi
13777     fi
13778     ;;
13779 esac
13780
13781 if test "$LIBEXT" = "a"; then
13782   { { echo "$as_me:$LINENO: error: could not find a way to build shared libraries.
13783 It is currently not possible to build Wine without shared library
13784 (.so) support to allow transparent switch between .so and .dll files.
13785 If you are using Linux, you will need a newer binutils.
13786 " >&5
13787 echo "$as_me: error: could not find a way to build shared libraries.
13788 It is currently not possible to build Wine without shared library
13789 (.so) support to allow transparent switch between .so and .dll files.
13790 If you are using Linux, you will need a newer binutils.
13791 " >&2;}
13792    { (exit 1); exit 1; }; }
13793 fi
13794
13795 case $build_os in
13796   cygwin*|mingw32*)
13797     LDPATH="PATH=\"\$(TOOLSDIR)/libs/unicode:\$\$PATH\""
13798  ;;
13799   darwin*|macosx*)
13800     LDPATH="DYLD_LIBRARY_PATH=\"\$(TOOLSDIR)/libs/unicode:\$\$DYLD_LIBRARY_PATH\""
13801  ;;
13802   *)
13803     LDPATH="LD_LIBRARY_PATH=\"\$(TOOLSDIR)/libs/unicode:\$\$LD_LIBRARY_PATH\""
13804  ;;
13805 esac
13806
13807 case $host_os in
13808   mingw32*)
13809     CRTLIBS="-lmsvcrt"
13810
13811     SOCKETLIBS="-lws2_32"
13812
13813     ;;
13814 esac
13815
13816 case $host_cpu in
13817   *i[3456789]86*)
13818     case $host_os in
13819       linux* | k*bsd*-gnu)
13820         MAIN_BINARY="wine-glibc"
13821
13822         EXTRA_BINARIES="wine-kthread wine-pthread wine-preloader"
13823  ;;
13824       darwin*|freebsd*)
13825         MAIN_BINARY="wine-pthread"
13826  ;;
13827       *)
13828         MAIN_BINARY="wine-kthread"
13829  ;;
13830     esac
13831     ;;
13832   *) MAIN_BINARY="wine-pthread"
13833  ;;
13834 esac
13835
13836
13837 if test "$LIBEXT" = "so" -o "$LIBEXT" = "dylib"
13838 then
13839   # Extract the first word of "ldd", so it can be a program name with args.
13840 set dummy ldd; ac_word=$2
13841 echo "$as_me:$LINENO: checking for $ac_word" >&5
13842 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13843 if test "${ac_cv_path_LDD+set}" = set; then
13844   echo $ECHO_N "(cached) $ECHO_C" >&6
13845 else
13846   case $LDD in
13847   [\\/]* | ?:[\\/]*)
13848   ac_cv_path_LDD="$LDD" # Let the user override the test with a path.
13849   ;;
13850   *)
13851   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13852 as_dummy="/sbin:/usr/sbin:$PATH"
13853 for as_dir in $as_dummy
13854 do
13855   IFS=$as_save_IFS
13856   test -z "$as_dir" && as_dir=.
13857   for ac_exec_ext in '' $ac_executable_extensions; do
13858   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13859     ac_cv_path_LDD="$as_dir/$ac_word$ac_exec_ext"
13860     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13861     break 2
13862   fi
13863 done
13864 done
13865
13866   test -z "$ac_cv_path_LDD" && ac_cv_path_LDD="true"
13867   ;;
13868 esac
13869 fi
13870 LDD=$ac_cv_path_LDD
13871
13872 if test -n "$LDD"; then
13873   echo "$as_me:$LINENO: result: $LDD" >&5
13874 echo "${ECHO_T}$LDD" >&6
13875 else
13876   echo "$as_me:$LINENO: result: no" >&5
13877 echo "${ECHO_T}no" >&6
13878 fi
13879
13880 echo "$as_me:$LINENO: checking for -lX11 soname" >&5
13881 echo $ECHO_N "checking for -lX11 soname... $ECHO_C" >&6
13882 if test "${ac_cv_lib_soname_X11+set}" = set; then
13883   echo $ECHO_N "(cached) $ECHO_C" >&6
13884 else
13885   ac_get_soname_save_LIBS=$LIBS
13886 LIBS="-lX11 $X_LIBS $X_EXTRA_LIBS $LIBS"
13887   cat >conftest.$ac_ext <<_ACEOF
13888 /* confdefs.h.  */
13889 _ACEOF
13890 cat confdefs.h >>conftest.$ac_ext
13891 cat >>conftest.$ac_ext <<_ACEOF
13892 /* end confdefs.h.  */
13893
13894 /* Override any gcc2 internal prototype to avoid an error.  */
13895 #ifdef __cplusplus
13896 extern "C"
13897 #endif
13898 /* We use char because int might match the return type of a gcc2
13899    builtin and then its argument prototype would still apply.  */
13900 char XCreateWindow ();
13901 int
13902 main ()
13903 {
13904 XCreateWindow ();
13905   ;
13906   return 0;
13907 }
13908 _ACEOF
13909 rm -f conftest.$ac_objext conftest$ac_exeext
13910 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13911   (eval $ac_link) 2>conftest.er1
13912   ac_status=$?
13913   grep -v '^ *+' conftest.er1 >conftest.err
13914   rm -f conftest.er1
13915   cat conftest.err >&5
13916   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13917   (exit $ac_status); } &&
13918          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
13919   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13920   (eval $ac_try) 2>&5
13921   ac_status=$?
13922   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13923   (exit $ac_status); }; } &&
13924          { ac_try='test -s conftest$ac_exeext'
13925   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13926   (eval $ac_try) 2>&5
13927   ac_status=$?
13928   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13929   (exit $ac_status); }; }; then
13930   ac_cv_lib_soname_X11=`$ac_cv_path_LDD conftest$ac_exeext | grep libX11\\.$LIBEXT | sed -e "s/^.*\(libX11\.$LIBEXT[^    ]*\).*$/\1/"';2,$d'`
13931   if test "x$ac_cv_lib_soname_X11" = "x"
13932   then
13933      ac_cv_lib_soname_X11="libX11.$LIBEXT"
13934   fi
13935 else
13936   echo "$as_me: failed program was:" >&5
13937 sed 's/^/| /' conftest.$ac_ext >&5
13938
13939 ac_cv_lib_soname_X11="libX11.$LIBEXT"
13940 fi
13941 rm -f conftest.err conftest.$ac_objext \
13942       conftest$ac_exeext conftest.$ac_ext
13943   LIBS=$ac_get_soname_save_LIBS
13944 fi
13945 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_X11" >&5
13946 echo "${ECHO_T}$ac_cv_lib_soname_X11" >&6
13947 if test "${ac_cv_lib_soname_X11+set}" = set; then
13948
13949 cat >>confdefs.h <<_ACEOF
13950 #define SONAME_LIBX11 "$ac_cv_lib_soname_X11"
13951 _ACEOF
13952
13953 fi
13954
13955   echo "$as_me:$LINENO: checking for -lXext soname" >&5
13956 echo $ECHO_N "checking for -lXext soname... $ECHO_C" >&6
13957 if test "${ac_cv_lib_soname_Xext+set}" = set; then
13958   echo $ECHO_N "(cached) $ECHO_C" >&6
13959 else
13960   ac_get_soname_save_LIBS=$LIBS
13961 LIBS="-lXext $X_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
13962   cat >conftest.$ac_ext <<_ACEOF
13963 /* confdefs.h.  */
13964 _ACEOF
13965 cat confdefs.h >>conftest.$ac_ext
13966 cat >>conftest.$ac_ext <<_ACEOF
13967 /* end confdefs.h.  */
13968
13969 /* Override any gcc2 internal prototype to avoid an error.  */
13970 #ifdef __cplusplus
13971 extern "C"
13972 #endif
13973 /* We use char because int might match the return type of a gcc2
13974    builtin and then its argument prototype would still apply.  */
13975 char XextCreateExtension ();
13976 int
13977 main ()
13978 {
13979 XextCreateExtension ();
13980   ;
13981   return 0;
13982 }
13983 _ACEOF
13984 rm -f conftest.$ac_objext conftest$ac_exeext
13985 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13986   (eval $ac_link) 2>conftest.er1
13987   ac_status=$?
13988   grep -v '^ *+' conftest.er1 >conftest.err
13989   rm -f conftest.er1
13990   cat conftest.err >&5
13991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13992   (exit $ac_status); } &&
13993          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
13994   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13995   (eval $ac_try) 2>&5
13996   ac_status=$?
13997   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13998   (exit $ac_status); }; } &&
13999          { ac_try='test -s conftest$ac_exeext'
14000   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14001   (eval $ac_try) 2>&5
14002   ac_status=$?
14003   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14004   (exit $ac_status); }; }; then
14005   ac_cv_lib_soname_Xext=`$ac_cv_path_LDD conftest$ac_exeext | grep libXext\\.$LIBEXT | sed -e "s/^.*\(libXext\.$LIBEXT[^         ]*\).*$/\1/"';2,$d'`
14006   if test "x$ac_cv_lib_soname_Xext" = "x"
14007   then
14008      ac_cv_lib_soname_Xext="libXext.$LIBEXT"
14009   fi
14010 else
14011   echo "$as_me: failed program was:" >&5
14012 sed 's/^/| /' conftest.$ac_ext >&5
14013
14014 ac_cv_lib_soname_Xext="libXext.$LIBEXT"
14015 fi
14016 rm -f conftest.err conftest.$ac_objext \
14017       conftest$ac_exeext conftest.$ac_ext
14018   LIBS=$ac_get_soname_save_LIBS
14019 fi
14020 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_Xext" >&5
14021 echo "${ECHO_T}$ac_cv_lib_soname_Xext" >&6
14022 if test "${ac_cv_lib_soname_Xext+set}" = set; then
14023
14024 cat >>confdefs.h <<_ACEOF
14025 #define SONAME_LIBXEXT "$ac_cv_lib_soname_Xext"
14026 _ACEOF
14027
14028 fi
14029
14030   echo "$as_me:$LINENO: checking for -lXi soname" >&5
14031 echo $ECHO_N "checking for -lXi soname... $ECHO_C" >&6
14032 if test "${ac_cv_lib_soname_Xi+set}" = set; then
14033   echo $ECHO_N "(cached) $ECHO_C" >&6
14034 else
14035   ac_get_soname_save_LIBS=$LIBS
14036 LIBS="-lXi $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
14037   cat >conftest.$ac_ext <<_ACEOF
14038 /* confdefs.h.  */
14039 _ACEOF
14040 cat confdefs.h >>conftest.$ac_ext
14041 cat >>conftest.$ac_ext <<_ACEOF
14042 /* end confdefs.h.  */
14043
14044 /* Override any gcc2 internal prototype to avoid an error.  */
14045 #ifdef __cplusplus
14046 extern "C"
14047 #endif
14048 /* We use char because int might match the return type of a gcc2
14049    builtin and then its argument prototype would still apply.  */
14050 char XOpenDevice ();
14051 int
14052 main ()
14053 {
14054 XOpenDevice ();
14055   ;
14056   return 0;
14057 }
14058 _ACEOF
14059 rm -f conftest.$ac_objext conftest$ac_exeext
14060 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14061   (eval $ac_link) 2>conftest.er1
14062   ac_status=$?
14063   grep -v '^ *+' conftest.er1 >conftest.err
14064   rm -f conftest.er1
14065   cat conftest.err >&5
14066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14067   (exit $ac_status); } &&
14068          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
14069   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14070   (eval $ac_try) 2>&5
14071   ac_status=$?
14072   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14073   (exit $ac_status); }; } &&
14074          { ac_try='test -s conftest$ac_exeext'
14075   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14076   (eval $ac_try) 2>&5
14077   ac_status=$?
14078   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14079   (exit $ac_status); }; }; then
14080   ac_cv_lib_soname_Xi=`$ac_cv_path_LDD conftest$ac_exeext | grep libXi\\.$LIBEXT | sed -e "s/^.*\(libXi\.$LIBEXT[^       ]*\).*$/\1/"';2,$d'`
14081   if test "x$ac_cv_lib_soname_Xi" = "x"
14082   then
14083      ac_cv_lib_soname_Xi="libXi.$LIBEXT"
14084   fi
14085 else
14086   echo "$as_me: failed program was:" >&5
14087 sed 's/^/| /' conftest.$ac_ext >&5
14088
14089 ac_cv_lib_soname_Xi="libXi.$LIBEXT"
14090 fi
14091 rm -f conftest.err conftest.$ac_objext \
14092       conftest$ac_exeext conftest.$ac_ext
14093   LIBS=$ac_get_soname_save_LIBS
14094 fi
14095 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_Xi" >&5
14096 echo "${ECHO_T}$ac_cv_lib_soname_Xi" >&6
14097 if test "${ac_cv_lib_soname_Xi+set}" = set; then
14098
14099 cat >>confdefs.h <<_ACEOF
14100 #define SONAME_LIBXI "$ac_cv_lib_soname_Xi"
14101 _ACEOF
14102
14103 fi
14104
14105   echo "$as_me:$LINENO: checking for -lXrender soname" >&5
14106 echo $ECHO_N "checking for -lXrender soname... $ECHO_C" >&6
14107 if test "${ac_cv_lib_soname_Xrender+set}" = set; then
14108   echo $ECHO_N "(cached) $ECHO_C" >&6
14109 else
14110   ac_get_soname_save_LIBS=$LIBS
14111 LIBS="-lXrender $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
14112   cat >conftest.$ac_ext <<_ACEOF
14113 /* confdefs.h.  */
14114 _ACEOF
14115 cat confdefs.h >>conftest.$ac_ext
14116 cat >>conftest.$ac_ext <<_ACEOF
14117 /* end confdefs.h.  */
14118
14119 /* Override any gcc2 internal prototype to avoid an error.  */
14120 #ifdef __cplusplus
14121 extern "C"
14122 #endif
14123 /* We use char because int might match the return type of a gcc2
14124    builtin and then its argument prototype would still apply.  */
14125 char XRenderQueryExtension ();
14126 int
14127 main ()
14128 {
14129 XRenderQueryExtension ();
14130   ;
14131   return 0;
14132 }
14133 _ACEOF
14134 rm -f conftest.$ac_objext conftest$ac_exeext
14135 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14136   (eval $ac_link) 2>conftest.er1
14137   ac_status=$?
14138   grep -v '^ *+' conftest.er1 >conftest.err
14139   rm -f conftest.er1
14140   cat conftest.err >&5
14141   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14142   (exit $ac_status); } &&
14143          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
14144   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14145   (eval $ac_try) 2>&5
14146   ac_status=$?
14147   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14148   (exit $ac_status); }; } &&
14149          { ac_try='test -s conftest$ac_exeext'
14150   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14151   (eval $ac_try) 2>&5
14152   ac_status=$?
14153   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14154   (exit $ac_status); }; }; then
14155   ac_cv_lib_soname_Xrender=`$ac_cv_path_LDD conftest$ac_exeext | grep libXrender\\.$LIBEXT | sed -e "s/^.*\(libXrender\.$LIBEXT[^        ]*\).*$/\1/"';2,$d'`
14156   if test "x$ac_cv_lib_soname_Xrender" = "x"
14157   then
14158      ac_cv_lib_soname_Xrender="libXrender.$LIBEXT"
14159   fi
14160 else
14161   echo "$as_me: failed program was:" >&5
14162 sed 's/^/| /' conftest.$ac_ext >&5
14163
14164 ac_cv_lib_soname_Xrender="libXrender.$LIBEXT"
14165 fi
14166 rm -f conftest.err conftest.$ac_objext \
14167       conftest$ac_exeext conftest.$ac_ext
14168   LIBS=$ac_get_soname_save_LIBS
14169 fi
14170 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_Xrender" >&5
14171 echo "${ECHO_T}$ac_cv_lib_soname_Xrender" >&6
14172 if test "${ac_cv_lib_soname_Xrender+set}" = set; then
14173
14174 cat >>confdefs.h <<_ACEOF
14175 #define SONAME_LIBXRENDER "$ac_cv_lib_soname_Xrender"
14176 _ACEOF
14177
14178 fi
14179
14180   echo "$as_me:$LINENO: checking for -lXrandr soname" >&5
14181 echo $ECHO_N "checking for -lXrandr soname... $ECHO_C" >&6
14182 if test "${ac_cv_lib_soname_Xrandr+set}" = set; then
14183   echo $ECHO_N "(cached) $ECHO_C" >&6
14184 else
14185   ac_get_soname_save_LIBS=$LIBS
14186 LIBS="-lXrandr $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
14187   cat >conftest.$ac_ext <<_ACEOF
14188 /* confdefs.h.  */
14189 _ACEOF
14190 cat confdefs.h >>conftest.$ac_ext
14191 cat >>conftest.$ac_ext <<_ACEOF
14192 /* end confdefs.h.  */
14193
14194 /* Override any gcc2 internal prototype to avoid an error.  */
14195 #ifdef __cplusplus
14196 extern "C"
14197 #endif
14198 /* We use char because int might match the return type of a gcc2
14199    builtin and then its argument prototype would still apply.  */
14200 char XRRQueryExtension ();
14201 int
14202 main ()
14203 {
14204 XRRQueryExtension ();
14205   ;
14206   return 0;
14207 }
14208 _ACEOF
14209 rm -f conftest.$ac_objext conftest$ac_exeext
14210 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14211   (eval $ac_link) 2>conftest.er1
14212   ac_status=$?
14213   grep -v '^ *+' conftest.er1 >conftest.err
14214   rm -f conftest.er1
14215   cat conftest.err >&5
14216   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14217   (exit $ac_status); } &&
14218          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
14219   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14220   (eval $ac_try) 2>&5
14221   ac_status=$?
14222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14223   (exit $ac_status); }; } &&
14224          { ac_try='test -s conftest$ac_exeext'
14225   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14226   (eval $ac_try) 2>&5
14227   ac_status=$?
14228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14229   (exit $ac_status); }; }; then
14230   ac_cv_lib_soname_Xrandr=`$ac_cv_path_LDD conftest$ac_exeext | grep libXrandr\\.$LIBEXT | sed -e "s/^.*\(libXrandr\.$LIBEXT[^   ]*\).*$/\1/"';2,$d'`
14231   if test "x$ac_cv_lib_soname_Xrandr" = "x"
14232   then
14233      ac_cv_lib_soname_Xrandr="libXrandr.$LIBEXT"
14234   fi
14235 else
14236   echo "$as_me: failed program was:" >&5
14237 sed 's/^/| /' conftest.$ac_ext >&5
14238
14239 ac_cv_lib_soname_Xrandr="libXrandr.$LIBEXT"
14240 fi
14241 rm -f conftest.err conftest.$ac_objext \
14242       conftest$ac_exeext conftest.$ac_ext
14243   LIBS=$ac_get_soname_save_LIBS
14244 fi
14245 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_Xrandr" >&5
14246 echo "${ECHO_T}$ac_cv_lib_soname_Xrandr" >&6
14247 if test "${ac_cv_lib_soname_Xrandr+set}" = set; then
14248
14249 cat >>confdefs.h <<_ACEOF
14250 #define SONAME_LIBXRANDR "$ac_cv_lib_soname_Xrandr"
14251 _ACEOF
14252
14253 fi
14254
14255   echo "$as_me:$LINENO: checking for -lfreetype soname" >&5
14256 echo $ECHO_N "checking for -lfreetype soname... $ECHO_C" >&6
14257 if test "${ac_cv_lib_soname_freetype+set}" = set; then
14258   echo $ECHO_N "(cached) $ECHO_C" >&6
14259 else
14260   ac_get_soname_save_LIBS=$LIBS
14261 LIBS="-lfreetype $X_LIBS $LIBS"
14262   cat >conftest.$ac_ext <<_ACEOF
14263 /* confdefs.h.  */
14264 _ACEOF
14265 cat confdefs.h >>conftest.$ac_ext
14266 cat >>conftest.$ac_ext <<_ACEOF
14267 /* end confdefs.h.  */
14268
14269 /* Override any gcc2 internal prototype to avoid an error.  */
14270 #ifdef __cplusplus
14271 extern "C"
14272 #endif
14273 /* We use char because int might match the return type of a gcc2
14274    builtin and then its argument prototype would still apply.  */
14275 char FT_Init_FreeType ();
14276 int
14277 main ()
14278 {
14279 FT_Init_FreeType ();
14280   ;
14281   return 0;
14282 }
14283 _ACEOF
14284 rm -f conftest.$ac_objext conftest$ac_exeext
14285 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14286   (eval $ac_link) 2>conftest.er1
14287   ac_status=$?
14288   grep -v '^ *+' conftest.er1 >conftest.err
14289   rm -f conftest.er1
14290   cat conftest.err >&5
14291   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14292   (exit $ac_status); } &&
14293          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
14294   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14295   (eval $ac_try) 2>&5
14296   ac_status=$?
14297   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14298   (exit $ac_status); }; } &&
14299          { ac_try='test -s conftest$ac_exeext'
14300   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14301   (eval $ac_try) 2>&5
14302   ac_status=$?
14303   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14304   (exit $ac_status); }; }; then
14305   ac_cv_lib_soname_freetype=`$ac_cv_path_LDD conftest$ac_exeext | grep libfreetype\\.$LIBEXT | sed -e "s/^.*\(libfreetype\.$LIBEXT[^     ]*\).*$/\1/"';2,$d'`
14306   if test "x$ac_cv_lib_soname_freetype" = "x"
14307   then
14308      ac_cv_lib_soname_freetype="libfreetype.$LIBEXT"
14309   fi
14310 else
14311   echo "$as_me: failed program was:" >&5
14312 sed 's/^/| /' conftest.$ac_ext >&5
14313
14314 ac_cv_lib_soname_freetype="libfreetype.$LIBEXT"
14315 fi
14316 rm -f conftest.err conftest.$ac_objext \
14317       conftest$ac_exeext conftest.$ac_ext
14318   LIBS=$ac_get_soname_save_LIBS
14319 fi
14320 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_freetype" >&5
14321 echo "${ECHO_T}$ac_cv_lib_soname_freetype" >&6
14322 if test "${ac_cv_lib_soname_freetype+set}" = set; then
14323
14324 cat >>confdefs.h <<_ACEOF
14325 #define SONAME_LIBFREETYPE "$ac_cv_lib_soname_freetype"
14326 _ACEOF
14327
14328 fi
14329
14330   echo "$as_me:$LINENO: checking for -lGL soname" >&5
14331 echo $ECHO_N "checking for -lGL soname... $ECHO_C" >&6
14332 if test "${ac_cv_lib_soname_GL+set}" = set; then
14333   echo $ECHO_N "(cached) $ECHO_C" >&6
14334 else
14335   ac_get_soname_save_LIBS=$LIBS
14336 LIBS="-lGL $X_LIBS $X_EXTRA_LIBS $LIBS"
14337   cat >conftest.$ac_ext <<_ACEOF
14338 /* confdefs.h.  */
14339 _ACEOF
14340 cat confdefs.h >>conftest.$ac_ext
14341 cat >>conftest.$ac_ext <<_ACEOF
14342 /* end confdefs.h.  */
14343
14344 /* Override any gcc2 internal prototype to avoid an error.  */
14345 #ifdef __cplusplus
14346 extern "C"
14347 #endif
14348 /* We use char because int might match the return type of a gcc2
14349    builtin and then its argument prototype would still apply.  */
14350 char glXQueryExtension ();
14351 int
14352 main ()
14353 {
14354 glXQueryExtension ();
14355   ;
14356   return 0;
14357 }
14358 _ACEOF
14359 rm -f conftest.$ac_objext conftest$ac_exeext
14360 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14361   (eval $ac_link) 2>conftest.er1
14362   ac_status=$?
14363   grep -v '^ *+' conftest.er1 >conftest.err
14364   rm -f conftest.er1
14365   cat conftest.err >&5
14366   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14367   (exit $ac_status); } &&
14368          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
14369   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14370   (eval $ac_try) 2>&5
14371   ac_status=$?
14372   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14373   (exit $ac_status); }; } &&
14374          { ac_try='test -s conftest$ac_exeext'
14375   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14376   (eval $ac_try) 2>&5
14377   ac_status=$?
14378   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14379   (exit $ac_status); }; }; then
14380   ac_cv_lib_soname_GL=`$ac_cv_path_LDD conftest$ac_exeext | grep libGL\\.$LIBEXT | sed -e "s/^.*\(libGL\.$LIBEXT[^       ]*\).*$/\1/"';2,$d'`
14381   if test "x$ac_cv_lib_soname_GL" = "x"
14382   then
14383      ac_cv_lib_soname_GL="libGL.$LIBEXT"
14384   fi
14385 else
14386   echo "$as_me: failed program was:" >&5
14387 sed 's/^/| /' conftest.$ac_ext >&5
14388
14389 ac_cv_lib_soname_GL="libGL.$LIBEXT"
14390 fi
14391 rm -f conftest.err conftest.$ac_objext \
14392       conftest$ac_exeext conftest.$ac_ext
14393   LIBS=$ac_get_soname_save_LIBS
14394 fi
14395 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_GL" >&5
14396 echo "${ECHO_T}$ac_cv_lib_soname_GL" >&6
14397 if test "${ac_cv_lib_soname_GL+set}" = set; then
14398
14399 cat >>confdefs.h <<_ACEOF
14400 #define SONAME_LIBGL "$ac_cv_lib_soname_GL"
14401 _ACEOF
14402
14403 fi
14404
14405   echo "$as_me:$LINENO: checking for -ltxc_dxtn soname" >&5
14406 echo $ECHO_N "checking for -ltxc_dxtn soname... $ECHO_C" >&6
14407 if test "${ac_cv_lib_soname_txc_dxtn+set}" = set; then
14408   echo $ECHO_N "(cached) $ECHO_C" >&6
14409 else
14410   ac_get_soname_save_LIBS=$LIBS
14411 LIBS="-ltxc_dxtn  $LIBS"
14412   cat >conftest.$ac_ext <<_ACEOF
14413 /* confdefs.h.  */
14414 _ACEOF
14415 cat confdefs.h >>conftest.$ac_ext
14416 cat >>conftest.$ac_ext <<_ACEOF
14417 /* end confdefs.h.  */
14418
14419 /* Override any gcc2 internal prototype to avoid an error.  */
14420 #ifdef __cplusplus
14421 extern "C"
14422 #endif
14423 /* We use char because int might match the return type of a gcc2
14424    builtin and then its argument prototype would still apply.  */
14425 char fetch_2d_texel_rgba_dxt1 ();
14426 int
14427 main ()
14428 {
14429 fetch_2d_texel_rgba_dxt1 ();
14430   ;
14431   return 0;
14432 }
14433 _ACEOF
14434 rm -f conftest.$ac_objext conftest$ac_exeext
14435 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14436   (eval $ac_link) 2>conftest.er1
14437   ac_status=$?
14438   grep -v '^ *+' conftest.er1 >conftest.err
14439   rm -f conftest.er1
14440   cat conftest.err >&5
14441   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14442   (exit $ac_status); } &&
14443          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
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); }; } &&
14449          { ac_try='test -s conftest$ac_exeext'
14450   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14451   (eval $ac_try) 2>&5
14452   ac_status=$?
14453   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14454   (exit $ac_status); }; }; then
14455   ac_cv_lib_soname_txc_dxtn=`$ac_cv_path_LDD conftest$ac_exeext | grep libtxc_dxtn\\.$LIBEXT | sed -e "s/^.*\(libtxc_dxtn\.$LIBEXT[^     ]*\).*$/\1/"';2,$d'`
14456   if test "x$ac_cv_lib_soname_txc_dxtn" = "x"
14457   then
14458      ac_cv_lib_soname_txc_dxtn="libtxc_dxtn.$LIBEXT"
14459   fi
14460 else
14461   echo "$as_me: failed program was:" >&5
14462 sed 's/^/| /' conftest.$ac_ext >&5
14463
14464 ac_cv_lib_soname_txc_dxtn="libtxc_dxtn.$LIBEXT"
14465 fi
14466 rm -f conftest.err conftest.$ac_objext \
14467       conftest$ac_exeext conftest.$ac_ext
14468   LIBS=$ac_get_soname_save_LIBS
14469 fi
14470 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_txc_dxtn" >&5
14471 echo "${ECHO_T}$ac_cv_lib_soname_txc_dxtn" >&6
14472 if test "${ac_cv_lib_soname_txc_dxtn+set}" = set; then
14473
14474 cat >>confdefs.h <<_ACEOF
14475 #define SONAME_LIBTXC_DXTN "$ac_cv_lib_soname_txc_dxtn"
14476 _ACEOF
14477
14478 fi
14479
14480   echo "$as_me:$LINENO: checking for -lcups soname" >&5
14481 echo $ECHO_N "checking for -lcups soname... $ECHO_C" >&6
14482 if test "${ac_cv_lib_soname_cups+set}" = set; then
14483   echo $ECHO_N "(cached) $ECHO_C" >&6
14484 else
14485   ac_get_soname_save_LIBS=$LIBS
14486 LIBS="-lcups  $LIBS"
14487   cat >conftest.$ac_ext <<_ACEOF
14488 /* confdefs.h.  */
14489 _ACEOF
14490 cat confdefs.h >>conftest.$ac_ext
14491 cat >>conftest.$ac_ext <<_ACEOF
14492 /* end confdefs.h.  */
14493
14494 /* Override any gcc2 internal prototype to avoid an error.  */
14495 #ifdef __cplusplus
14496 extern "C"
14497 #endif
14498 /* We use char because int might match the return type of a gcc2
14499    builtin and then its argument prototype would still apply.  */
14500 char cupsGetDefault ();
14501 int
14502 main ()
14503 {
14504 cupsGetDefault ();
14505   ;
14506   return 0;
14507 }
14508 _ACEOF
14509 rm -f conftest.$ac_objext conftest$ac_exeext
14510 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14511   (eval $ac_link) 2>conftest.er1
14512   ac_status=$?
14513   grep -v '^ *+' conftest.er1 >conftest.err
14514   rm -f conftest.er1
14515   cat conftest.err >&5
14516   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14517   (exit $ac_status); } &&
14518          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
14519   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14520   (eval $ac_try) 2>&5
14521   ac_status=$?
14522   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14523   (exit $ac_status); }; } &&
14524          { ac_try='test -s conftest$ac_exeext'
14525   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14526   (eval $ac_try) 2>&5
14527   ac_status=$?
14528   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14529   (exit $ac_status); }; }; then
14530   ac_cv_lib_soname_cups=`$ac_cv_path_LDD conftest$ac_exeext | grep libcups\\.$LIBEXT | sed -e "s/^.*\(libcups\.$LIBEXT[^         ]*\).*$/\1/"';2,$d'`
14531   if test "x$ac_cv_lib_soname_cups" = "x"
14532   then
14533      ac_cv_lib_soname_cups="libcups.$LIBEXT"
14534   fi
14535 else
14536   echo "$as_me: failed program was:" >&5
14537 sed 's/^/| /' conftest.$ac_ext >&5
14538
14539 ac_cv_lib_soname_cups="libcups.$LIBEXT"
14540 fi
14541 rm -f conftest.err conftest.$ac_objext \
14542       conftest$ac_exeext conftest.$ac_ext
14543   LIBS=$ac_get_soname_save_LIBS
14544 fi
14545 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_cups" >&5
14546 echo "${ECHO_T}$ac_cv_lib_soname_cups" >&6
14547 if test "${ac_cv_lib_soname_cups+set}" = set; then
14548
14549 cat >>confdefs.h <<_ACEOF
14550 #define SONAME_LIBCUPS "$ac_cv_lib_soname_cups"
14551 _ACEOF
14552
14553 fi
14554
14555   echo "$as_me:$LINENO: checking for -ljack soname" >&5
14556 echo $ECHO_N "checking for -ljack soname... $ECHO_C" >&6
14557 if test "${ac_cv_lib_soname_jack+set}" = set; then
14558   echo $ECHO_N "(cached) $ECHO_C" >&6
14559 else
14560   ac_get_soname_save_LIBS=$LIBS
14561 LIBS="-ljack  $LIBS"
14562   cat >conftest.$ac_ext <<_ACEOF
14563 /* confdefs.h.  */
14564 _ACEOF
14565 cat confdefs.h >>conftest.$ac_ext
14566 cat >>conftest.$ac_ext <<_ACEOF
14567 /* end confdefs.h.  */
14568
14569 /* Override any gcc2 internal prototype to avoid an error.  */
14570 #ifdef __cplusplus
14571 extern "C"
14572 #endif
14573 /* We use char because int might match the return type of a gcc2
14574    builtin and then its argument prototype would still apply.  */
14575 char jack_client_new ();
14576 int
14577 main ()
14578 {
14579 jack_client_new ();
14580   ;
14581   return 0;
14582 }
14583 _ACEOF
14584 rm -f conftest.$ac_objext conftest$ac_exeext
14585 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14586   (eval $ac_link) 2>conftest.er1
14587   ac_status=$?
14588   grep -v '^ *+' conftest.er1 >conftest.err
14589   rm -f conftest.er1
14590   cat conftest.err >&5
14591   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14592   (exit $ac_status); } &&
14593          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
14594   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14595   (eval $ac_try) 2>&5
14596   ac_status=$?
14597   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14598   (exit $ac_status); }; } &&
14599          { ac_try='test -s conftest$ac_exeext'
14600   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14601   (eval $ac_try) 2>&5
14602   ac_status=$?
14603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14604   (exit $ac_status); }; }; then
14605   ac_cv_lib_soname_jack=`$ac_cv_path_LDD conftest$ac_exeext | grep libjack\\.$LIBEXT | sed -e "s/^.*\(libjack\.$LIBEXT[^         ]*\).*$/\1/"';2,$d'`
14606   if test "x$ac_cv_lib_soname_jack" = "x"
14607   then
14608      ac_cv_lib_soname_jack="libjack.$LIBEXT"
14609   fi
14610 else
14611   echo "$as_me: failed program was:" >&5
14612 sed 's/^/| /' conftest.$ac_ext >&5
14613
14614 ac_cv_lib_soname_jack="libjack.$LIBEXT"
14615 fi
14616 rm -f conftest.err conftest.$ac_objext \
14617       conftest$ac_exeext conftest.$ac_ext
14618   LIBS=$ac_get_soname_save_LIBS
14619 fi
14620 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_jack" >&5
14621 echo "${ECHO_T}$ac_cv_lib_soname_jack" >&6
14622 if test "${ac_cv_lib_soname_jack+set}" = set; then
14623
14624 cat >>confdefs.h <<_ACEOF
14625 #define SONAME_LIBJACK "$ac_cv_lib_soname_jack"
14626 _ACEOF
14627
14628 fi
14629
14630   echo "$as_me:$LINENO: checking for -lfontconfig soname" >&5
14631 echo $ECHO_N "checking for -lfontconfig soname... $ECHO_C" >&6
14632 if test "${ac_cv_lib_soname_fontconfig+set}" = set; then
14633   echo $ECHO_N "(cached) $ECHO_C" >&6
14634 else
14635   ac_get_soname_save_LIBS=$LIBS
14636 LIBS="-lfontconfig  $LIBS"
14637   cat >conftest.$ac_ext <<_ACEOF
14638 /* confdefs.h.  */
14639 _ACEOF
14640 cat confdefs.h >>conftest.$ac_ext
14641 cat >>conftest.$ac_ext <<_ACEOF
14642 /* end confdefs.h.  */
14643
14644 /* Override any gcc2 internal prototype to avoid an error.  */
14645 #ifdef __cplusplus
14646 extern "C"
14647 #endif
14648 /* We use char because int might match the return type of a gcc2
14649    builtin and then its argument prototype would still apply.  */
14650 char FcInit ();
14651 int
14652 main ()
14653 {
14654 FcInit ();
14655   ;
14656   return 0;
14657 }
14658 _ACEOF
14659 rm -f conftest.$ac_objext conftest$ac_exeext
14660 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14661   (eval $ac_link) 2>conftest.er1
14662   ac_status=$?
14663   grep -v '^ *+' conftest.er1 >conftest.err
14664   rm -f conftest.er1
14665   cat conftest.err >&5
14666   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14667   (exit $ac_status); } &&
14668          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
14669   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14670   (eval $ac_try) 2>&5
14671   ac_status=$?
14672   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14673   (exit $ac_status); }; } &&
14674          { ac_try='test -s conftest$ac_exeext'
14675   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14676   (eval $ac_try) 2>&5
14677   ac_status=$?
14678   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14679   (exit $ac_status); }; }; then
14680   ac_cv_lib_soname_fontconfig=`$ac_cv_path_LDD conftest$ac_exeext | grep libfontconfig\\.$LIBEXT | sed -e "s/^.*\(libfontconfig\.$LIBEXT[^       ]*\).*$/\1/"';2,$d'`
14681   if test "x$ac_cv_lib_soname_fontconfig" = "x"
14682   then
14683      ac_cv_lib_soname_fontconfig="libfontconfig.$LIBEXT"
14684   fi
14685 else
14686   echo "$as_me: failed program was:" >&5
14687 sed 's/^/| /' conftest.$ac_ext >&5
14688
14689 ac_cv_lib_soname_fontconfig="libfontconfig.$LIBEXT"
14690 fi
14691 rm -f conftest.err conftest.$ac_objext \
14692       conftest$ac_exeext conftest.$ac_ext
14693   LIBS=$ac_get_soname_save_LIBS
14694 fi
14695 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_fontconfig" >&5
14696 echo "${ECHO_T}$ac_cv_lib_soname_fontconfig" >&6
14697 if test "${ac_cv_lib_soname_fontconfig+set}" = set; then
14698
14699 cat >>confdefs.h <<_ACEOF
14700 #define SONAME_LIBFONTCONFIG "$ac_cv_lib_soname_fontconfig"
14701 _ACEOF
14702
14703 fi
14704
14705   echo "$as_me:$LINENO: checking for -lssl soname" >&5
14706 echo $ECHO_N "checking for -lssl soname... $ECHO_C" >&6
14707 if test "${ac_cv_lib_soname_ssl+set}" = set; then
14708   echo $ECHO_N "(cached) $ECHO_C" >&6
14709 else
14710   ac_get_soname_save_LIBS=$LIBS
14711 LIBS="-lssl  $LIBS"
14712   cat >conftest.$ac_ext <<_ACEOF
14713 /* confdefs.h.  */
14714 _ACEOF
14715 cat confdefs.h >>conftest.$ac_ext
14716 cat >>conftest.$ac_ext <<_ACEOF
14717 /* end confdefs.h.  */
14718
14719 /* Override any gcc2 internal prototype to avoid an error.  */
14720 #ifdef __cplusplus
14721 extern "C"
14722 #endif
14723 /* We use char because int might match the return type of a gcc2
14724    builtin and then its argument prototype would still apply.  */
14725 char SSL_library_init ();
14726 int
14727 main ()
14728 {
14729 SSL_library_init ();
14730   ;
14731   return 0;
14732 }
14733 _ACEOF
14734 rm -f conftest.$ac_objext conftest$ac_exeext
14735 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14736   (eval $ac_link) 2>conftest.er1
14737   ac_status=$?
14738   grep -v '^ *+' conftest.er1 >conftest.err
14739   rm -f conftest.er1
14740   cat conftest.err >&5
14741   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14742   (exit $ac_status); } &&
14743          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
14744   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14745   (eval $ac_try) 2>&5
14746   ac_status=$?
14747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14748   (exit $ac_status); }; } &&
14749          { ac_try='test -s conftest$ac_exeext'
14750   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14751   (eval $ac_try) 2>&5
14752   ac_status=$?
14753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14754   (exit $ac_status); }; }; then
14755   ac_cv_lib_soname_ssl=`$ac_cv_path_LDD conftest$ac_exeext | grep libssl\\.$LIBEXT | sed -e "s/^.*\(libssl\.$LIBEXT[^    ]*\).*$/\1/"';2,$d'`
14756   if test "x$ac_cv_lib_soname_ssl" = "x"
14757   then
14758      ac_cv_lib_soname_ssl="libssl.$LIBEXT"
14759   fi
14760 else
14761   echo "$as_me: failed program was:" >&5
14762 sed 's/^/| /' conftest.$ac_ext >&5
14763
14764 ac_cv_lib_soname_ssl="libssl.$LIBEXT"
14765 fi
14766 rm -f conftest.err conftest.$ac_objext \
14767       conftest$ac_exeext conftest.$ac_ext
14768   LIBS=$ac_get_soname_save_LIBS
14769 fi
14770 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_ssl" >&5
14771 echo "${ECHO_T}$ac_cv_lib_soname_ssl" >&6
14772 if test "${ac_cv_lib_soname_ssl+set}" = set; then
14773
14774 cat >>confdefs.h <<_ACEOF
14775 #define SONAME_LIBSSL "$ac_cv_lib_soname_ssl"
14776 _ACEOF
14777
14778 fi
14779
14780   echo "$as_me:$LINENO: checking for -lcrypto soname" >&5
14781 echo $ECHO_N "checking for -lcrypto soname... $ECHO_C" >&6
14782 if test "${ac_cv_lib_soname_crypto+set}" = set; then
14783   echo $ECHO_N "(cached) $ECHO_C" >&6
14784 else
14785   ac_get_soname_save_LIBS=$LIBS
14786 LIBS="-lcrypto  $LIBS"
14787   cat >conftest.$ac_ext <<_ACEOF
14788 /* confdefs.h.  */
14789 _ACEOF
14790 cat confdefs.h >>conftest.$ac_ext
14791 cat >>conftest.$ac_ext <<_ACEOF
14792 /* end confdefs.h.  */
14793
14794 /* Override any gcc2 internal prototype to avoid an error.  */
14795 #ifdef __cplusplus
14796 extern "C"
14797 #endif
14798 /* We use char because int might match the return type of a gcc2
14799    builtin and then its argument prototype would still apply.  */
14800 char BIO_new_socket ();
14801 int
14802 main ()
14803 {
14804 BIO_new_socket ();
14805   ;
14806   return 0;
14807 }
14808 _ACEOF
14809 rm -f conftest.$ac_objext conftest$ac_exeext
14810 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14811   (eval $ac_link) 2>conftest.er1
14812   ac_status=$?
14813   grep -v '^ *+' conftest.er1 >conftest.err
14814   rm -f conftest.er1
14815   cat conftest.err >&5
14816   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14817   (exit $ac_status); } &&
14818          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
14819   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14820   (eval $ac_try) 2>&5
14821   ac_status=$?
14822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14823   (exit $ac_status); }; } &&
14824          { ac_try='test -s conftest$ac_exeext'
14825   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14826   (eval $ac_try) 2>&5
14827   ac_status=$?
14828   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14829   (exit $ac_status); }; }; then
14830   ac_cv_lib_soname_crypto=`$ac_cv_path_LDD conftest$ac_exeext | grep libcrypto\\.$LIBEXT | sed -e "s/^.*\(libcrypto\.$LIBEXT[^   ]*\).*$/\1/"';2,$d'`
14831   if test "x$ac_cv_lib_soname_crypto" = "x"
14832   then
14833      ac_cv_lib_soname_crypto="libcrypto.$LIBEXT"
14834   fi
14835 else
14836   echo "$as_me: failed program was:" >&5
14837 sed 's/^/| /' conftest.$ac_ext >&5
14838
14839 ac_cv_lib_soname_crypto="libcrypto.$LIBEXT"
14840 fi
14841 rm -f conftest.err conftest.$ac_objext \
14842       conftest$ac_exeext conftest.$ac_ext
14843   LIBS=$ac_get_soname_save_LIBS
14844 fi
14845 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_crypto" >&5
14846 echo "${ECHO_T}$ac_cv_lib_soname_crypto" >&6
14847 if test "${ac_cv_lib_soname_crypto+set}" = set; then
14848
14849 cat >>confdefs.h <<_ACEOF
14850 #define SONAME_LIBCRYPTO "$ac_cv_lib_soname_crypto"
14851 _ACEOF
14852
14853 fi
14854
14855   echo "$as_me:$LINENO: checking for -lncurses soname" >&5
14856 echo $ECHO_N "checking for -lncurses soname... $ECHO_C" >&6
14857 if test "${ac_cv_lib_soname_ncurses+set}" = set; then
14858   echo $ECHO_N "(cached) $ECHO_C" >&6
14859 else
14860   ac_get_soname_save_LIBS=$LIBS
14861 LIBS="-lncurses  $LIBS"
14862   cat >conftest.$ac_ext <<_ACEOF
14863 /* confdefs.h.  */
14864 _ACEOF
14865 cat confdefs.h >>conftest.$ac_ext
14866 cat >>conftest.$ac_ext <<_ACEOF
14867 /* end confdefs.h.  */
14868
14869 /* Override any gcc2 internal prototype to avoid an error.  */
14870 #ifdef __cplusplus
14871 extern "C"
14872 #endif
14873 /* We use char because int might match the return type of a gcc2
14874    builtin and then its argument prototype would still apply.  */
14875 char waddch ();
14876 int
14877 main ()
14878 {
14879 waddch ();
14880   ;
14881   return 0;
14882 }
14883 _ACEOF
14884 rm -f conftest.$ac_objext conftest$ac_exeext
14885 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14886   (eval $ac_link) 2>conftest.er1
14887   ac_status=$?
14888   grep -v '^ *+' conftest.er1 >conftest.err
14889   rm -f conftest.er1
14890   cat conftest.err >&5
14891   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14892   (exit $ac_status); } &&
14893          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
14894   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14895   (eval $ac_try) 2>&5
14896   ac_status=$?
14897   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14898   (exit $ac_status); }; } &&
14899          { ac_try='test -s conftest$ac_exeext'
14900   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14901   (eval $ac_try) 2>&5
14902   ac_status=$?
14903   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14904   (exit $ac_status); }; }; then
14905   ac_cv_lib_soname_ncurses=`$ac_cv_path_LDD conftest$ac_exeext | grep libncurses\\.$LIBEXT | sed -e "s/^.*\(libncurses\.$LIBEXT[^        ]*\).*$/\1/"';2,$d'`
14906   if test "x$ac_cv_lib_soname_ncurses" = "x"
14907   then
14908      ac_cv_lib_soname_ncurses="libncurses.$LIBEXT"
14909   fi
14910 else
14911   echo "$as_me: failed program was:" >&5
14912 sed 's/^/| /' conftest.$ac_ext >&5
14913
14914 ac_cv_lib_soname_ncurses="libncurses.$LIBEXT"
14915 fi
14916 rm -f conftest.err conftest.$ac_objext \
14917       conftest$ac_exeext conftest.$ac_ext
14918   LIBS=$ac_get_soname_save_LIBS
14919 fi
14920 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_ncurses" >&5
14921 echo "${ECHO_T}$ac_cv_lib_soname_ncurses" >&6
14922 if test "${ac_cv_lib_soname_ncurses+set}" = set; then
14923
14924 cat >>confdefs.h <<_ACEOF
14925 #define SONAME_LIBNCURSES "$ac_cv_lib_soname_ncurses"
14926 _ACEOF
14927
14928 fi
14929
14930   echo "$as_me:$LINENO: checking for -lcurses soname" >&5
14931 echo $ECHO_N "checking for -lcurses soname... $ECHO_C" >&6
14932 if test "${ac_cv_lib_soname_curses+set}" = set; then
14933   echo $ECHO_N "(cached) $ECHO_C" >&6
14934 else
14935   ac_get_soname_save_LIBS=$LIBS
14936 LIBS="-lcurses  $LIBS"
14937   cat >conftest.$ac_ext <<_ACEOF
14938 /* confdefs.h.  */
14939 _ACEOF
14940 cat confdefs.h >>conftest.$ac_ext
14941 cat >>conftest.$ac_ext <<_ACEOF
14942 /* end confdefs.h.  */
14943
14944 /* Override any gcc2 internal prototype to avoid an error.  */
14945 #ifdef __cplusplus
14946 extern "C"
14947 #endif
14948 /* We use char because int might match the return type of a gcc2
14949    builtin and then its argument prototype would still apply.  */
14950 char waddch ();
14951 int
14952 main ()
14953 {
14954 waddch ();
14955   ;
14956   return 0;
14957 }
14958 _ACEOF
14959 rm -f conftest.$ac_objext conftest$ac_exeext
14960 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14961   (eval $ac_link) 2>conftest.er1
14962   ac_status=$?
14963   grep -v '^ *+' conftest.er1 >conftest.err
14964   rm -f conftest.er1
14965   cat conftest.err >&5
14966   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14967   (exit $ac_status); } &&
14968          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
14969   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14970   (eval $ac_try) 2>&5
14971   ac_status=$?
14972   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14973   (exit $ac_status); }; } &&
14974          { ac_try='test -s conftest$ac_exeext'
14975   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14976   (eval $ac_try) 2>&5
14977   ac_status=$?
14978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14979   (exit $ac_status); }; }; then
14980   ac_cv_lib_soname_curses=`$ac_cv_path_LDD conftest$ac_exeext | grep libcurses\\.$LIBEXT | sed -e "s/^.*\(libcurses\.$LIBEXT[^   ]*\).*$/\1/"';2,$d'`
14981   if test "x$ac_cv_lib_soname_curses" = "x"
14982   then
14983      ac_cv_lib_soname_curses="libcurses.$LIBEXT"
14984   fi
14985 else
14986   echo "$as_me: failed program was:" >&5
14987 sed 's/^/| /' conftest.$ac_ext >&5
14988
14989 ac_cv_lib_soname_curses="libcurses.$LIBEXT"
14990 fi
14991 rm -f conftest.err conftest.$ac_objext \
14992       conftest$ac_exeext conftest.$ac_ext
14993   LIBS=$ac_get_soname_save_LIBS
14994 fi
14995 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_curses" >&5
14996 echo "${ECHO_T}$ac_cv_lib_soname_curses" >&6
14997 if test "${ac_cv_lib_soname_curses+set}" = set; then
14998
14999 cat >>confdefs.h <<_ACEOF
15000 #define SONAME_LIBCURSES "$ac_cv_lib_soname_curses"
15001 _ACEOF
15002
15003 fi
15004
15005   echo "$as_me:$LINENO: checking for -ljpeg soname" >&5
15006 echo $ECHO_N "checking for -ljpeg soname... $ECHO_C" >&6
15007 if test "${ac_cv_lib_soname_jpeg+set}" = set; then
15008   echo $ECHO_N "(cached) $ECHO_C" >&6
15009 else
15010   ac_get_soname_save_LIBS=$LIBS
15011 LIBS="-ljpeg  $LIBS"
15012   cat >conftest.$ac_ext <<_ACEOF
15013 /* confdefs.h.  */
15014 _ACEOF
15015 cat confdefs.h >>conftest.$ac_ext
15016 cat >>conftest.$ac_ext <<_ACEOF
15017 /* end confdefs.h.  */
15018
15019 /* Override any gcc2 internal prototype to avoid an error.  */
15020 #ifdef __cplusplus
15021 extern "C"
15022 #endif
15023 /* We use char because int might match the return type of a gcc2
15024    builtin and then its argument prototype would still apply.  */
15025 char jpeg_start_decompress ();
15026 int
15027 main ()
15028 {
15029 jpeg_start_decompress ();
15030   ;
15031   return 0;
15032 }
15033 _ACEOF
15034 rm -f conftest.$ac_objext conftest$ac_exeext
15035 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15036   (eval $ac_link) 2>conftest.er1
15037   ac_status=$?
15038   grep -v '^ *+' conftest.er1 >conftest.err
15039   rm -f conftest.er1
15040   cat conftest.err >&5
15041   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15042   (exit $ac_status); } &&
15043          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
15044   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15045   (eval $ac_try) 2>&5
15046   ac_status=$?
15047   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15048   (exit $ac_status); }; } &&
15049          { ac_try='test -s conftest$ac_exeext'
15050   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15051   (eval $ac_try) 2>&5
15052   ac_status=$?
15053   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15054   (exit $ac_status); }; }; then
15055   ac_cv_lib_soname_jpeg=`$ac_cv_path_LDD conftest$ac_exeext | grep libjpeg\\.$LIBEXT | sed -e "s/^.*\(libjpeg\.$LIBEXT[^         ]*\).*$/\1/"';2,$d'`
15056   if test "x$ac_cv_lib_soname_jpeg" = "x"
15057   then
15058      ac_cv_lib_soname_jpeg="libjpeg.$LIBEXT"
15059   fi
15060 else
15061   echo "$as_me: failed program was:" >&5
15062 sed 's/^/| /' conftest.$ac_ext >&5
15063
15064 ac_cv_lib_soname_jpeg="libjpeg.$LIBEXT"
15065 fi
15066 rm -f conftest.err conftest.$ac_objext \
15067       conftest$ac_exeext conftest.$ac_ext
15068   LIBS=$ac_get_soname_save_LIBS
15069 fi
15070 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_jpeg" >&5
15071 echo "${ECHO_T}$ac_cv_lib_soname_jpeg" >&6
15072 if test "${ac_cv_lib_soname_jpeg+set}" = set; then
15073
15074 cat >>confdefs.h <<_ACEOF
15075 #define SONAME_LIBJPEG "$ac_cv_lib_soname_jpeg"
15076 _ACEOF
15077
15078 fi
15079
15080   echo "$as_me:$LINENO: checking for -lungif soname" >&5
15081 echo $ECHO_N "checking for -lungif soname... $ECHO_C" >&6
15082 if test "${ac_cv_lib_soname_ungif+set}" = set; then
15083   echo $ECHO_N "(cached) $ECHO_C" >&6
15084 else
15085   ac_get_soname_save_LIBS=$LIBS
15086 LIBS="-lungif  $LIBS"
15087   cat >conftest.$ac_ext <<_ACEOF
15088 /* confdefs.h.  */
15089 _ACEOF
15090 cat confdefs.h >>conftest.$ac_ext
15091 cat >>conftest.$ac_ext <<_ACEOF
15092 /* end confdefs.h.  */
15093
15094 /* Override any gcc2 internal prototype to avoid an error.  */
15095 #ifdef __cplusplus
15096 extern "C"
15097 #endif
15098 /* We use char because int might match the return type of a gcc2
15099    builtin and then its argument prototype would still apply.  */
15100 char DGifOpen ();
15101 int
15102 main ()
15103 {
15104 DGifOpen ();
15105   ;
15106   return 0;
15107 }
15108 _ACEOF
15109 rm -f conftest.$ac_objext conftest$ac_exeext
15110 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15111   (eval $ac_link) 2>conftest.er1
15112   ac_status=$?
15113   grep -v '^ *+' conftest.er1 >conftest.err
15114   rm -f conftest.er1
15115   cat conftest.err >&5
15116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15117   (exit $ac_status); } &&
15118          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
15119   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15120   (eval $ac_try) 2>&5
15121   ac_status=$?
15122   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15123   (exit $ac_status); }; } &&
15124          { ac_try='test -s conftest$ac_exeext'
15125   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15126   (eval $ac_try) 2>&5
15127   ac_status=$?
15128   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15129   (exit $ac_status); }; }; then
15130   ac_cv_lib_soname_ungif=`$ac_cv_path_LDD conftest$ac_exeext | grep libungif\\.$LIBEXT | sed -e "s/^.*\(libungif\.$LIBEXT[^      ]*\).*$/\1/"';2,$d'`
15131   if test "x$ac_cv_lib_soname_ungif" = "x"
15132   then
15133      ac_cv_lib_soname_ungif="libungif.$LIBEXT"
15134   fi
15135 else
15136   echo "$as_me: failed program was:" >&5
15137 sed 's/^/| /' conftest.$ac_ext >&5
15138
15139 ac_cv_lib_soname_ungif="libungif.$LIBEXT"
15140 fi
15141 rm -f conftest.err conftest.$ac_objext \
15142       conftest$ac_exeext conftest.$ac_ext
15143   LIBS=$ac_get_soname_save_LIBS
15144 fi
15145 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_ungif" >&5
15146 echo "${ECHO_T}$ac_cv_lib_soname_ungif" >&6
15147 if test "${ac_cv_lib_soname_ungif+set}" = set; then
15148
15149 cat >>confdefs.h <<_ACEOF
15150 #define SONAME_LIBUNGIF "$ac_cv_lib_soname_ungif"
15151 _ACEOF
15152
15153 fi
15154
15155   echo "$as_me:$LINENO: checking for -lgif soname" >&5
15156 echo $ECHO_N "checking for -lgif soname... $ECHO_C" >&6
15157 if test "${ac_cv_lib_soname_gif+set}" = set; then
15158   echo $ECHO_N "(cached) $ECHO_C" >&6
15159 else
15160   ac_get_soname_save_LIBS=$LIBS
15161 LIBS="-lgif  $LIBS"
15162   cat >conftest.$ac_ext <<_ACEOF
15163 /* confdefs.h.  */
15164 _ACEOF
15165 cat confdefs.h >>conftest.$ac_ext
15166 cat >>conftest.$ac_ext <<_ACEOF
15167 /* end confdefs.h.  */
15168
15169 /* Override any gcc2 internal prototype to avoid an error.  */
15170 #ifdef __cplusplus
15171 extern "C"
15172 #endif
15173 /* We use char because int might match the return type of a gcc2
15174    builtin and then its argument prototype would still apply.  */
15175 char DGifOpen ();
15176 int
15177 main ()
15178 {
15179 DGifOpen ();
15180   ;
15181   return 0;
15182 }
15183 _ACEOF
15184 rm -f conftest.$ac_objext conftest$ac_exeext
15185 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15186   (eval $ac_link) 2>conftest.er1
15187   ac_status=$?
15188   grep -v '^ *+' conftest.er1 >conftest.err
15189   rm -f conftest.er1
15190   cat conftest.err >&5
15191   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15192   (exit $ac_status); } &&
15193          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
15194   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15195   (eval $ac_try) 2>&5
15196   ac_status=$?
15197   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15198   (exit $ac_status); }; } &&
15199          { ac_try='test -s conftest$ac_exeext'
15200   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15201   (eval $ac_try) 2>&5
15202   ac_status=$?
15203   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15204   (exit $ac_status); }; }; then
15205   ac_cv_lib_soname_gif=`$ac_cv_path_LDD conftest$ac_exeext | grep libgif\\.$LIBEXT | sed -e "s/^.*\(libgif\.$LIBEXT[^    ]*\).*$/\1/"';2,$d'`
15206   if test "x$ac_cv_lib_soname_gif" = "x"
15207   then
15208      ac_cv_lib_soname_gif="libgif.$LIBEXT"
15209   fi
15210 else
15211   echo "$as_me: failed program was:" >&5
15212 sed 's/^/| /' conftest.$ac_ext >&5
15213
15214 ac_cv_lib_soname_gif="libgif.$LIBEXT"
15215 fi
15216 rm -f conftest.err conftest.$ac_objext \
15217       conftest$ac_exeext conftest.$ac_ext
15218   LIBS=$ac_get_soname_save_LIBS
15219 fi
15220 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_gif" >&5
15221 echo "${ECHO_T}$ac_cv_lib_soname_gif" >&6
15222 if test "${ac_cv_lib_soname_gif+set}" = set; then
15223
15224 cat >>confdefs.h <<_ACEOF
15225 #define SONAME_LIBGIF "$ac_cv_lib_soname_gif"
15226 _ACEOF
15227
15228 fi
15229
15230   echo "$as_me:$LINENO: checking for -lcapi20 soname" >&5
15231 echo $ECHO_N "checking for -lcapi20 soname... $ECHO_C" >&6
15232 if test "${ac_cv_lib_soname_capi20+set}" = set; then
15233   echo $ECHO_N "(cached) $ECHO_C" >&6
15234 else
15235   ac_get_soname_save_LIBS=$LIBS
15236 LIBS="-lcapi20  $LIBS"
15237   cat >conftest.$ac_ext <<_ACEOF
15238 /* confdefs.h.  */
15239 _ACEOF
15240 cat confdefs.h >>conftest.$ac_ext
15241 cat >>conftest.$ac_ext <<_ACEOF
15242 /* end confdefs.h.  */
15243
15244 /* Override any gcc2 internal prototype to avoid an error.  */
15245 #ifdef __cplusplus
15246 extern "C"
15247 #endif
15248 /* We use char because int might match the return type of a gcc2
15249    builtin and then its argument prototype would still apply.  */
15250 char capi20_isinstalled ();
15251 int
15252 main ()
15253 {
15254 capi20_isinstalled ();
15255   ;
15256   return 0;
15257 }
15258 _ACEOF
15259 rm -f conftest.$ac_objext conftest$ac_exeext
15260 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15261   (eval $ac_link) 2>conftest.er1
15262   ac_status=$?
15263   grep -v '^ *+' conftest.er1 >conftest.err
15264   rm -f conftest.er1
15265   cat conftest.err >&5
15266   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15267   (exit $ac_status); } &&
15268          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
15269   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15270   (eval $ac_try) 2>&5
15271   ac_status=$?
15272   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15273   (exit $ac_status); }; } &&
15274          { ac_try='test -s conftest$ac_exeext'
15275   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15276   (eval $ac_try) 2>&5
15277   ac_status=$?
15278   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15279   (exit $ac_status); }; }; then
15280   ac_cv_lib_soname_capi20=`$ac_cv_path_LDD conftest$ac_exeext | grep libcapi20\\.$LIBEXT | sed -e "s/^.*\(libcapi20\.$LIBEXT[^   ]*\).*$/\1/"';2,$d'`
15281   if test "x$ac_cv_lib_soname_capi20" = "x"
15282   then
15283      ac_cv_lib_soname_capi20="libcapi20.$LIBEXT"
15284   fi
15285 else
15286   echo "$as_me: failed program was:" >&5
15287 sed 's/^/| /' conftest.$ac_ext >&5
15288
15289 ac_cv_lib_soname_capi20="libcapi20.$LIBEXT"
15290 fi
15291 rm -f conftest.err conftest.$ac_objext \
15292       conftest$ac_exeext conftest.$ac_ext
15293   LIBS=$ac_get_soname_save_LIBS
15294 fi
15295 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_capi20" >&5
15296 echo "${ECHO_T}$ac_cv_lib_soname_capi20" >&6
15297 if test "${ac_cv_lib_soname_capi20+set}" = set; then
15298
15299 cat >>confdefs.h <<_ACEOF
15300 #define SONAME_LIBCAPI20 "$ac_cv_lib_soname_capi20"
15301 _ACEOF
15302
15303 fi
15304
15305 fi
15306
15307
15308
15309
15310
15311
15312
15313
15314
15315
15316
15317
15318
15319
15320
15321
15322
15323
15324
15325
15326
15327
15328
15329
15330
15331
15332
15333
15334
15335
15336
15337
15338
15339
15340
15341
15342
15343
15344
15345
15346
15347
15348
15349
15350
15351
15352
15353
15354
15355
15356
15357
15358
15359
15360
15361
15362
15363
15364
15365
15366
15367
15368
15369
15370
15371
15372
15373 for ac_func in \
15374         _lwp_create \
15375         _lwp_self \
15376         _pclose \
15377         _popen \
15378         _snprintf \
15379         _spawnvp \
15380         _stricmp \
15381         _strnicmp \
15382         _vsnprintf \
15383         asctime_r \
15384         chsize \
15385         clone \
15386         epoll_create \
15387         ffs \
15388         finite \
15389         fork \
15390         fpclass \
15391         fstatfs \
15392         fstatvfs \
15393         ftruncate \
15394         futimes \
15395         futimesat \
15396         getaddrinfo \
15397         getnameinfo \
15398         getnetbyname \
15399         getopt_long \
15400         getpagesize \
15401         getprotobyname \
15402         getprotobynumber \
15403         getpwuid \
15404         getservbyport \
15405         gettid \
15406         gettimeofday \
15407         getuid \
15408         inet_network \
15409         lstat \
15410         memmove \
15411         mmap \
15412         pclose \
15413         popen \
15414         prctl \
15415         pread \
15416         pwrite \
15417         readlink \
15418         rfork \
15419         sched_yield \
15420         select \
15421         sendmsg \
15422         settimeofday \
15423         sigaltstack \
15424         sigprocmask \
15425         snprintf \
15426         spawnvp \
15427         statfs \
15428         statvfs \
15429         strcasecmp \
15430         strerror \
15431         strncasecmp \
15432         tcgetattr \
15433         timegm \
15434         usleep \
15435         vsnprintf \
15436         wait4 \
15437         waitpid \
15438
15439 do
15440 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15441 echo "$as_me:$LINENO: checking for $ac_func" >&5
15442 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15443 if eval "test \"\${$as_ac_var+set}\" = set"; then
15444   echo $ECHO_N "(cached) $ECHO_C" >&6
15445 else
15446   cat >conftest.$ac_ext <<_ACEOF
15447 /* confdefs.h.  */
15448 _ACEOF
15449 cat confdefs.h >>conftest.$ac_ext
15450 cat >>conftest.$ac_ext <<_ACEOF
15451 /* end confdefs.h.  */
15452 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15453    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15454 #define $ac_func innocuous_$ac_func
15455
15456 /* System header to define __stub macros and hopefully few prototypes,
15457     which can conflict with char $ac_func (); below.
15458     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15459     <limits.h> exists even on freestanding compilers.  */
15460
15461 #ifdef __STDC__
15462 # include <limits.h>
15463 #else
15464 # include <assert.h>
15465 #endif
15466
15467 #undef $ac_func
15468
15469 /* Override any gcc2 internal prototype to avoid an error.  */
15470 #ifdef __cplusplus
15471 extern "C"
15472 {
15473 #endif
15474 /* We use char because int might match the return type of a gcc2
15475    builtin and then its argument prototype would still apply.  */
15476 char $ac_func ();
15477 /* The GNU C library defines this for functions which it implements
15478     to always fail with ENOSYS.  Some functions are actually named
15479     something starting with __ and the normal name is an alias.  */
15480 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15481 choke me
15482 #else
15483 char (*f) () = $ac_func;
15484 #endif
15485 #ifdef __cplusplus
15486 }
15487 #endif
15488
15489 int
15490 main ()
15491 {
15492 return f != $ac_func;
15493   ;
15494   return 0;
15495 }
15496 _ACEOF
15497 rm -f conftest.$ac_objext conftest$ac_exeext
15498 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15499   (eval $ac_link) 2>conftest.er1
15500   ac_status=$?
15501   grep -v '^ *+' conftest.er1 >conftest.err
15502   rm -f conftest.er1
15503   cat conftest.err >&5
15504   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15505   (exit $ac_status); } &&
15506          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
15507   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15508   (eval $ac_try) 2>&5
15509   ac_status=$?
15510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15511   (exit $ac_status); }; } &&
15512          { ac_try='test -s conftest$ac_exeext'
15513   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15514   (eval $ac_try) 2>&5
15515   ac_status=$?
15516   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15517   (exit $ac_status); }; }; then
15518   eval "$as_ac_var=yes"
15519 else
15520   echo "$as_me: failed program was:" >&5
15521 sed 's/^/| /' conftest.$ac_ext >&5
15522
15523 eval "$as_ac_var=no"
15524 fi
15525 rm -f conftest.err conftest.$ac_objext \
15526       conftest$ac_exeext conftest.$ac_ext
15527 fi
15528 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15529 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15530 if test `eval echo '${'$as_ac_var'}'` = yes; then
15531   cat >>confdefs.h <<_ACEOF
15532 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15533 _ACEOF
15534
15535 fi
15536 done
15537
15538
15539
15540
15541 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
15542 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
15543 if test "${ac_cv_c_const+set}" = set; then
15544   echo $ECHO_N "(cached) $ECHO_C" >&6
15545 else
15546   cat >conftest.$ac_ext <<_ACEOF
15547 /* confdefs.h.  */
15548 _ACEOF
15549 cat confdefs.h >>conftest.$ac_ext
15550 cat >>conftest.$ac_ext <<_ACEOF
15551 /* end confdefs.h.  */
15552
15553 int
15554 main ()
15555 {
15556 /* FIXME: Include the comments suggested by Paul. */
15557 #ifndef __cplusplus
15558   /* Ultrix mips cc rejects this.  */
15559   typedef int charset[2];
15560   const charset x;
15561   /* SunOS 4.1.1 cc rejects this.  */
15562   char const *const *ccp;
15563   char **p;
15564   /* NEC SVR4.0.2 mips cc rejects this.  */
15565   struct point {int x, y;};
15566   static struct point const zero = {0,0};
15567   /* AIX XL C 1.02.0.0 rejects this.
15568      It does not let you subtract one const X* pointer from another in
15569      an arm of an if-expression whose if-part is not a constant
15570      expression */
15571   const char *g = "string";
15572   ccp = &g + (g ? g-g : 0);
15573   /* HPUX 7.0 cc rejects these. */
15574   ++ccp;
15575   p = (char**) ccp;
15576   ccp = (char const *const *) p;
15577   { /* SCO 3.2v4 cc rejects this.  */
15578     char *t;
15579     char const *s = 0 ? (char *) 0 : (char const *) 0;
15580
15581     *t++ = 0;
15582   }
15583   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
15584     int x[] = {25, 17};
15585     const int *foo = &x[0];
15586     ++foo;
15587   }
15588   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
15589     typedef const int *iptr;
15590     iptr p = 0;
15591     ++p;
15592   }
15593   { /* AIX XL C 1.02.0.0 rejects this saying
15594        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
15595     struct s { int j; const int *ap[3]; };
15596     struct s *b; b->j = 5;
15597   }
15598   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
15599     const int foo = 10;
15600   }
15601 #endif
15602
15603   ;
15604   return 0;
15605 }
15606 _ACEOF
15607 rm -f conftest.$ac_objext
15608 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15609   (eval $ac_compile) 2>conftest.er1
15610   ac_status=$?
15611   grep -v '^ *+' conftest.er1 >conftest.err
15612   rm -f conftest.er1
15613   cat conftest.err >&5
15614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15615   (exit $ac_status); } &&
15616          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
15617   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15618   (eval $ac_try) 2>&5
15619   ac_status=$?
15620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15621   (exit $ac_status); }; } &&
15622          { ac_try='test -s conftest.$ac_objext'
15623   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15624   (eval $ac_try) 2>&5
15625   ac_status=$?
15626   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15627   (exit $ac_status); }; }; then
15628   ac_cv_c_const=yes
15629 else
15630   echo "$as_me: failed program was:" >&5
15631 sed 's/^/| /' conftest.$ac_ext >&5
15632
15633 ac_cv_c_const=no
15634 fi
15635 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15636 fi
15637 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
15638 echo "${ECHO_T}$ac_cv_c_const" >&6
15639 if test $ac_cv_c_const = no; then
15640
15641 cat >>confdefs.h <<\_ACEOF
15642 #define const
15643 _ACEOF
15644
15645 fi
15646
15647 echo "$as_me:$LINENO: checking for inline" >&5
15648 echo $ECHO_N "checking for inline... $ECHO_C" >&6
15649 if test "${ac_cv_c_inline+set}" = set; then
15650   echo $ECHO_N "(cached) $ECHO_C" >&6
15651 else
15652   ac_cv_c_inline=no
15653 for ac_kw in inline __inline__ __inline; do
15654   cat >conftest.$ac_ext <<_ACEOF
15655 /* confdefs.h.  */
15656 _ACEOF
15657 cat confdefs.h >>conftest.$ac_ext
15658 cat >>conftest.$ac_ext <<_ACEOF
15659 /* end confdefs.h.  */
15660 #ifndef __cplusplus
15661 typedef int foo_t;
15662 static $ac_kw foo_t static_foo () {return 0; }
15663 $ac_kw foo_t foo () {return 0; }
15664 #endif
15665
15666 _ACEOF
15667 rm -f conftest.$ac_objext
15668 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15669   (eval $ac_compile) 2>conftest.er1
15670   ac_status=$?
15671   grep -v '^ *+' conftest.er1 >conftest.err
15672   rm -f conftest.er1
15673   cat conftest.err >&5
15674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15675   (exit $ac_status); } &&
15676          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
15677   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15678   (eval $ac_try) 2>&5
15679   ac_status=$?
15680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15681   (exit $ac_status); }; } &&
15682          { ac_try='test -s conftest.$ac_objext'
15683   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15684   (eval $ac_try) 2>&5
15685   ac_status=$?
15686   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15687   (exit $ac_status); }; }; then
15688   ac_cv_c_inline=$ac_kw; break
15689 else
15690   echo "$as_me: failed program was:" >&5
15691 sed 's/^/| /' conftest.$ac_ext >&5
15692
15693 fi
15694 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15695 done
15696
15697 fi
15698 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
15699 echo "${ECHO_T}$ac_cv_c_inline" >&6
15700
15701
15702 case $ac_cv_c_inline in
15703   inline | yes) ;;
15704   *)
15705     case $ac_cv_c_inline in
15706       no) ac_val=;;
15707       *) ac_val=$ac_cv_c_inline;;
15708     esac
15709     cat >>confdefs.h <<_ACEOF
15710 #ifndef __cplusplus
15711 #define inline $ac_val
15712 #endif
15713 _ACEOF
15714     ;;
15715 esac
15716
15717 echo "$as_me:$LINENO: checking for mode_t" >&5
15718 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
15719 if test "${ac_cv_type_mode_t+set}" = set; then
15720   echo $ECHO_N "(cached) $ECHO_C" >&6
15721 else
15722   cat >conftest.$ac_ext <<_ACEOF
15723 /* confdefs.h.  */
15724 _ACEOF
15725 cat confdefs.h >>conftest.$ac_ext
15726 cat >>conftest.$ac_ext <<_ACEOF
15727 /* end confdefs.h.  */
15728 $ac_includes_default
15729 int
15730 main ()
15731 {
15732 if ((mode_t *) 0)
15733   return 0;
15734 if (sizeof (mode_t))
15735   return 0;
15736   ;
15737   return 0;
15738 }
15739 _ACEOF
15740 rm -f conftest.$ac_objext
15741 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15742   (eval $ac_compile) 2>conftest.er1
15743   ac_status=$?
15744   grep -v '^ *+' conftest.er1 >conftest.err
15745   rm -f conftest.er1
15746   cat conftest.err >&5
15747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15748   (exit $ac_status); } &&
15749          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
15750   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15751   (eval $ac_try) 2>&5
15752   ac_status=$?
15753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15754   (exit $ac_status); }; } &&
15755          { ac_try='test -s conftest.$ac_objext'
15756   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15757   (eval $ac_try) 2>&5
15758   ac_status=$?
15759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15760   (exit $ac_status); }; }; then
15761   ac_cv_type_mode_t=yes
15762 else
15763   echo "$as_me: failed program was:" >&5
15764 sed 's/^/| /' conftest.$ac_ext >&5
15765
15766 ac_cv_type_mode_t=no
15767 fi
15768 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15769 fi
15770 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
15771 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
15772 if test $ac_cv_type_mode_t = yes; then
15773
15774 cat >>confdefs.h <<_ACEOF
15775 #define HAVE_MODE_T 1
15776 _ACEOF
15777
15778
15779 fi
15780 echo "$as_me:$LINENO: checking for off_t" >&5
15781 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
15782 if test "${ac_cv_type_off_t+set}" = set; then
15783   echo $ECHO_N "(cached) $ECHO_C" >&6
15784 else
15785   cat >conftest.$ac_ext <<_ACEOF
15786 /* confdefs.h.  */
15787 _ACEOF
15788 cat confdefs.h >>conftest.$ac_ext
15789 cat >>conftest.$ac_ext <<_ACEOF
15790 /* end confdefs.h.  */
15791 $ac_includes_default
15792 int
15793 main ()
15794 {
15795 if ((off_t *) 0)
15796   return 0;
15797 if (sizeof (off_t))
15798   return 0;
15799   ;
15800   return 0;
15801 }
15802 _ACEOF
15803 rm -f conftest.$ac_objext
15804 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15805   (eval $ac_compile) 2>conftest.er1
15806   ac_status=$?
15807   grep -v '^ *+' conftest.er1 >conftest.err
15808   rm -f conftest.er1
15809   cat conftest.err >&5
15810   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15811   (exit $ac_status); } &&
15812          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
15813   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15814   (eval $ac_try) 2>&5
15815   ac_status=$?
15816   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15817   (exit $ac_status); }; } &&
15818          { ac_try='test -s conftest.$ac_objext'
15819   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15820   (eval $ac_try) 2>&5
15821   ac_status=$?
15822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15823   (exit $ac_status); }; }; then
15824   ac_cv_type_off_t=yes
15825 else
15826   echo "$as_me: failed program was:" >&5
15827 sed 's/^/| /' conftest.$ac_ext >&5
15828
15829 ac_cv_type_off_t=no
15830 fi
15831 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15832 fi
15833 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
15834 echo "${ECHO_T}$ac_cv_type_off_t" >&6
15835 if test $ac_cv_type_off_t = yes; then
15836
15837 cat >>confdefs.h <<_ACEOF
15838 #define HAVE_OFF_T 1
15839 _ACEOF
15840
15841
15842 fi
15843 echo "$as_me:$LINENO: checking for pid_t" >&5
15844 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
15845 if test "${ac_cv_type_pid_t+set}" = set; then
15846   echo $ECHO_N "(cached) $ECHO_C" >&6
15847 else
15848   cat >conftest.$ac_ext <<_ACEOF
15849 /* confdefs.h.  */
15850 _ACEOF
15851 cat confdefs.h >>conftest.$ac_ext
15852 cat >>conftest.$ac_ext <<_ACEOF
15853 /* end confdefs.h.  */
15854 $ac_includes_default
15855 int
15856 main ()
15857 {
15858 if ((pid_t *) 0)
15859   return 0;
15860 if (sizeof (pid_t))
15861   return 0;
15862   ;
15863   return 0;
15864 }
15865 _ACEOF
15866 rm -f conftest.$ac_objext
15867 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15868   (eval $ac_compile) 2>conftest.er1
15869   ac_status=$?
15870   grep -v '^ *+' conftest.er1 >conftest.err
15871   rm -f conftest.er1
15872   cat conftest.err >&5
15873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15874   (exit $ac_status); } &&
15875          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
15876   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15877   (eval $ac_try) 2>&5
15878   ac_status=$?
15879   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15880   (exit $ac_status); }; } &&
15881          { ac_try='test -s conftest.$ac_objext'
15882   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15883   (eval $ac_try) 2>&5
15884   ac_status=$?
15885   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15886   (exit $ac_status); }; }; then
15887   ac_cv_type_pid_t=yes
15888 else
15889   echo "$as_me: failed program was:" >&5
15890 sed 's/^/| /' conftest.$ac_ext >&5
15891
15892 ac_cv_type_pid_t=no
15893 fi
15894 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15895 fi
15896 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
15897 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
15898 if test $ac_cv_type_pid_t = yes; then
15899
15900 cat >>confdefs.h <<_ACEOF
15901 #define HAVE_PID_T 1
15902 _ACEOF
15903
15904
15905 fi
15906 echo "$as_me:$LINENO: checking for size_t" >&5
15907 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
15908 if test "${ac_cv_type_size_t+set}" = set; then
15909   echo $ECHO_N "(cached) $ECHO_C" >&6
15910 else
15911   cat >conftest.$ac_ext <<_ACEOF
15912 /* confdefs.h.  */
15913 _ACEOF
15914 cat confdefs.h >>conftest.$ac_ext
15915 cat >>conftest.$ac_ext <<_ACEOF
15916 /* end confdefs.h.  */
15917 $ac_includes_default
15918 int
15919 main ()
15920 {
15921 if ((size_t *) 0)
15922   return 0;
15923 if (sizeof (size_t))
15924   return 0;
15925   ;
15926   return 0;
15927 }
15928 _ACEOF
15929 rm -f conftest.$ac_objext
15930 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15931   (eval $ac_compile) 2>conftest.er1
15932   ac_status=$?
15933   grep -v '^ *+' conftest.er1 >conftest.err
15934   rm -f conftest.er1
15935   cat conftest.err >&5
15936   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15937   (exit $ac_status); } &&
15938          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
15939   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15940   (eval $ac_try) 2>&5
15941   ac_status=$?
15942   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15943   (exit $ac_status); }; } &&
15944          { ac_try='test -s conftest.$ac_objext'
15945   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15946   (eval $ac_try) 2>&5
15947   ac_status=$?
15948   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15949   (exit $ac_status); }; }; then
15950   ac_cv_type_size_t=yes
15951 else
15952   echo "$as_me: failed program was:" >&5
15953 sed 's/^/| /' conftest.$ac_ext >&5
15954
15955 ac_cv_type_size_t=no
15956 fi
15957 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15958 fi
15959 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
15960 echo "${ECHO_T}$ac_cv_type_size_t" >&6
15961 if test $ac_cv_type_size_t = yes; then
15962
15963 cat >>confdefs.h <<_ACEOF
15964 #define HAVE_SIZE_T 1
15965 _ACEOF
15966
15967
15968 fi
15969 echo "$as_me:$LINENO: checking for ssize_t" >&5
15970 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
15971 if test "${ac_cv_type_ssize_t+set}" = set; then
15972   echo $ECHO_N "(cached) $ECHO_C" >&6
15973 else
15974   cat >conftest.$ac_ext <<_ACEOF
15975 /* confdefs.h.  */
15976 _ACEOF
15977 cat confdefs.h >>conftest.$ac_ext
15978 cat >>conftest.$ac_ext <<_ACEOF
15979 /* end confdefs.h.  */
15980 $ac_includes_default
15981 int
15982 main ()
15983 {
15984 if ((ssize_t *) 0)
15985   return 0;
15986 if (sizeof (ssize_t))
15987   return 0;
15988   ;
15989   return 0;
15990 }
15991 _ACEOF
15992 rm -f conftest.$ac_objext
15993 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15994   (eval $ac_compile) 2>conftest.er1
15995   ac_status=$?
15996   grep -v '^ *+' conftest.er1 >conftest.err
15997   rm -f conftest.er1
15998   cat conftest.err >&5
15999   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16000   (exit $ac_status); } &&
16001          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
16002   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16003   (eval $ac_try) 2>&5
16004   ac_status=$?
16005   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16006   (exit $ac_status); }; } &&
16007          { ac_try='test -s conftest.$ac_objext'
16008   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16009   (eval $ac_try) 2>&5
16010   ac_status=$?
16011   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16012   (exit $ac_status); }; }; then
16013   ac_cv_type_ssize_t=yes
16014 else
16015   echo "$as_me: failed program was:" >&5
16016 sed 's/^/| /' conftest.$ac_ext >&5
16017
16018 ac_cv_type_ssize_t=no
16019 fi
16020 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16021 fi
16022 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
16023 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
16024 if test $ac_cv_type_ssize_t = yes; then
16025
16026 cat >>confdefs.h <<_ACEOF
16027 #define HAVE_SSIZE_T 1
16028 _ACEOF
16029
16030
16031 fi
16032 echo "$as_me:$LINENO: checking for long long" >&5
16033 echo $ECHO_N "checking for long long... $ECHO_C" >&6
16034 if test "${ac_cv_type_long_long+set}" = set; then
16035   echo $ECHO_N "(cached) $ECHO_C" >&6
16036 else
16037   cat >conftest.$ac_ext <<_ACEOF
16038 /* confdefs.h.  */
16039 _ACEOF
16040 cat confdefs.h >>conftest.$ac_ext
16041 cat >>conftest.$ac_ext <<_ACEOF
16042 /* end confdefs.h.  */
16043 $ac_includes_default
16044 int
16045 main ()
16046 {
16047 if ((long long *) 0)
16048   return 0;
16049 if (sizeof (long long))
16050   return 0;
16051   ;
16052   return 0;
16053 }
16054 _ACEOF
16055 rm -f conftest.$ac_objext
16056 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16057   (eval $ac_compile) 2>conftest.er1
16058   ac_status=$?
16059   grep -v '^ *+' conftest.er1 >conftest.err
16060   rm -f conftest.er1
16061   cat conftest.err >&5
16062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16063   (exit $ac_status); } &&
16064          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
16065   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16066   (eval $ac_try) 2>&5
16067   ac_status=$?
16068   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16069   (exit $ac_status); }; } &&
16070          { ac_try='test -s conftest.$ac_objext'
16071   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16072   (eval $ac_try) 2>&5
16073   ac_status=$?
16074   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16075   (exit $ac_status); }; }; then
16076   ac_cv_type_long_long=yes
16077 else
16078   echo "$as_me: failed program was:" >&5
16079 sed 's/^/| /' conftest.$ac_ext >&5
16080
16081 ac_cv_type_long_long=no
16082 fi
16083 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16084 fi
16085 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
16086 echo "${ECHO_T}$ac_cv_type_long_long" >&6
16087 if test $ac_cv_type_long_long = yes; then
16088
16089 cat >>confdefs.h <<_ACEOF
16090 #define HAVE_LONG_LONG 1
16091 _ACEOF
16092
16093
16094 fi
16095 echo "$as_me:$LINENO: checking for fsblkcnt_t" >&5
16096 echo $ECHO_N "checking for fsblkcnt_t... $ECHO_C" >&6
16097 if test "${ac_cv_type_fsblkcnt_t+set}" = set; then
16098   echo $ECHO_N "(cached) $ECHO_C" >&6
16099 else
16100   cat >conftest.$ac_ext <<_ACEOF
16101 /* confdefs.h.  */
16102 _ACEOF
16103 cat confdefs.h >>conftest.$ac_ext
16104 cat >>conftest.$ac_ext <<_ACEOF
16105 /* end confdefs.h.  */
16106 $ac_includes_default
16107 int
16108 main ()
16109 {
16110 if ((fsblkcnt_t *) 0)
16111   return 0;
16112 if (sizeof (fsblkcnt_t))
16113   return 0;
16114   ;
16115   return 0;
16116 }
16117 _ACEOF
16118 rm -f conftest.$ac_objext
16119 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16120   (eval $ac_compile) 2>conftest.er1
16121   ac_status=$?
16122   grep -v '^ *+' conftest.er1 >conftest.err
16123   rm -f conftest.er1
16124   cat conftest.err >&5
16125   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16126   (exit $ac_status); } &&
16127          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
16128   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16129   (eval $ac_try) 2>&5
16130   ac_status=$?
16131   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16132   (exit $ac_status); }; } &&
16133          { ac_try='test -s conftest.$ac_objext'
16134   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16135   (eval $ac_try) 2>&5
16136   ac_status=$?
16137   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16138   (exit $ac_status); }; }; then
16139   ac_cv_type_fsblkcnt_t=yes
16140 else
16141   echo "$as_me: failed program was:" >&5
16142 sed 's/^/| /' conftest.$ac_ext >&5
16143
16144 ac_cv_type_fsblkcnt_t=no
16145 fi
16146 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16147 fi
16148 echo "$as_me:$LINENO: result: $ac_cv_type_fsblkcnt_t" >&5
16149 echo "${ECHO_T}$ac_cv_type_fsblkcnt_t" >&6
16150 if test $ac_cv_type_fsblkcnt_t = yes; then
16151
16152 cat >>confdefs.h <<_ACEOF
16153 #define HAVE_FSBLKCNT_T 1
16154 _ACEOF
16155
16156
16157 fi
16158 echo "$as_me:$LINENO: checking for fsfilcnt_t" >&5
16159 echo $ECHO_N "checking for fsfilcnt_t... $ECHO_C" >&6
16160 if test "${ac_cv_type_fsfilcnt_t+set}" = set; then
16161   echo $ECHO_N "(cached) $ECHO_C" >&6
16162 else
16163   cat >conftest.$ac_ext <<_ACEOF
16164 /* confdefs.h.  */
16165 _ACEOF
16166 cat confdefs.h >>conftest.$ac_ext
16167 cat >>conftest.$ac_ext <<_ACEOF
16168 /* end confdefs.h.  */
16169 $ac_includes_default
16170 int
16171 main ()
16172 {
16173 if ((fsfilcnt_t *) 0)
16174   return 0;
16175 if (sizeof (fsfilcnt_t))
16176   return 0;
16177   ;
16178   return 0;
16179 }
16180 _ACEOF
16181 rm -f conftest.$ac_objext
16182 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16183   (eval $ac_compile) 2>conftest.er1
16184   ac_status=$?
16185   grep -v '^ *+' conftest.er1 >conftest.err
16186   rm -f conftest.er1
16187   cat conftest.err >&5
16188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16189   (exit $ac_status); } &&
16190          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
16191   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16192   (eval $ac_try) 2>&5
16193   ac_status=$?
16194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16195   (exit $ac_status); }; } &&
16196          { ac_try='test -s conftest.$ac_objext'
16197   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16198   (eval $ac_try) 2>&5
16199   ac_status=$?
16200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16201   (exit $ac_status); }; }; then
16202   ac_cv_type_fsfilcnt_t=yes
16203 else
16204   echo "$as_me: failed program was:" >&5
16205 sed 's/^/| /' conftest.$ac_ext >&5
16206
16207 ac_cv_type_fsfilcnt_t=no
16208 fi
16209 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16210 fi
16211 echo "$as_me:$LINENO: result: $ac_cv_type_fsfilcnt_t" >&5
16212 echo "${ECHO_T}$ac_cv_type_fsfilcnt_t" >&6
16213 if test $ac_cv_type_fsfilcnt_t = yes; then
16214
16215 cat >>confdefs.h <<_ACEOF
16216 #define HAVE_FSFILCNT_T 1
16217 _ACEOF
16218
16219
16220 fi
16221
16222 echo "$as_me:$LINENO: checking for sigset_t" >&5
16223 echo $ECHO_N "checking for sigset_t... $ECHO_C" >&6
16224 if test "${ac_cv_type_sigset_t+set}" = set; then
16225   echo $ECHO_N "(cached) $ECHO_C" >&6
16226 else
16227   cat >conftest.$ac_ext <<_ACEOF
16228 /* confdefs.h.  */
16229 _ACEOF
16230 cat confdefs.h >>conftest.$ac_ext
16231 cat >>conftest.$ac_ext <<_ACEOF
16232 /* end confdefs.h.  */
16233 #include <signal.h>
16234
16235 int
16236 main ()
16237 {
16238 if ((sigset_t *) 0)
16239   return 0;
16240 if (sizeof (sigset_t))
16241   return 0;
16242   ;
16243   return 0;
16244 }
16245 _ACEOF
16246 rm -f conftest.$ac_objext
16247 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16248   (eval $ac_compile) 2>conftest.er1
16249   ac_status=$?
16250   grep -v '^ *+' conftest.er1 >conftest.err
16251   rm -f conftest.er1
16252   cat conftest.err >&5
16253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16254   (exit $ac_status); } &&
16255          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
16256   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16257   (eval $ac_try) 2>&5
16258   ac_status=$?
16259   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16260   (exit $ac_status); }; } &&
16261          { ac_try='test -s conftest.$ac_objext'
16262   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16263   (eval $ac_try) 2>&5
16264   ac_status=$?
16265   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16266   (exit $ac_status); }; }; then
16267   ac_cv_type_sigset_t=yes
16268 else
16269   echo "$as_me: failed program was:" >&5
16270 sed 's/^/| /' conftest.$ac_ext >&5
16271
16272 ac_cv_type_sigset_t=no
16273 fi
16274 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16275 fi
16276 echo "$as_me:$LINENO: result: $ac_cv_type_sigset_t" >&5
16277 echo "${ECHO_T}$ac_cv_type_sigset_t" >&6
16278 if test $ac_cv_type_sigset_t = yes; then
16279
16280 cat >>confdefs.h <<_ACEOF
16281 #define HAVE_SIGSET_T 1
16282 _ACEOF
16283
16284
16285 fi
16286
16287 echo "$as_me:$LINENO: checking for request_sense" >&5
16288 echo $ECHO_N "checking for request_sense... $ECHO_C" >&6
16289 if test "${ac_cv_type_request_sense+set}" = set; then
16290   echo $ECHO_N "(cached) $ECHO_C" >&6
16291 else
16292   cat >conftest.$ac_ext <<_ACEOF
16293 /* confdefs.h.  */
16294 _ACEOF
16295 cat confdefs.h >>conftest.$ac_ext
16296 cat >>conftest.$ac_ext <<_ACEOF
16297 /* end confdefs.h.  */
16298 #include <linux/cdrom.h>
16299
16300 int
16301 main ()
16302 {
16303 if ((request_sense *) 0)
16304   return 0;
16305 if (sizeof (request_sense))
16306   return 0;
16307   ;
16308   return 0;
16309 }
16310 _ACEOF
16311 rm -f conftest.$ac_objext
16312 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16313   (eval $ac_compile) 2>conftest.er1
16314   ac_status=$?
16315   grep -v '^ *+' conftest.er1 >conftest.err
16316   rm -f conftest.er1
16317   cat conftest.err >&5
16318   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16319   (exit $ac_status); } &&
16320          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
16321   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16322   (eval $ac_try) 2>&5
16323   ac_status=$?
16324   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16325   (exit $ac_status); }; } &&
16326          { ac_try='test -s conftest.$ac_objext'
16327   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16328   (eval $ac_try) 2>&5
16329   ac_status=$?
16330   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16331   (exit $ac_status); }; }; then
16332   ac_cv_type_request_sense=yes
16333 else
16334   echo "$as_me: failed program was:" >&5
16335 sed 's/^/| /' conftest.$ac_ext >&5
16336
16337 ac_cv_type_request_sense=no
16338 fi
16339 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16340 fi
16341 echo "$as_me:$LINENO: result: $ac_cv_type_request_sense" >&5
16342 echo "${ECHO_T}$ac_cv_type_request_sense" >&6
16343 if test $ac_cv_type_request_sense = yes; then
16344
16345 cat >>confdefs.h <<_ACEOF
16346 #define HAVE_REQUEST_SENSE 1
16347 _ACEOF
16348
16349
16350 fi
16351
16352
16353 echo "$as_me:$LINENO: checking for struct ff_effect.direction" >&5
16354 echo $ECHO_N "checking for struct ff_effect.direction... $ECHO_C" >&6
16355 if test "${ac_cv_member_struct_ff_effect_direction+set}" = set; then
16356   echo $ECHO_N "(cached) $ECHO_C" >&6
16357 else
16358   cat >conftest.$ac_ext <<_ACEOF
16359 /* confdefs.h.  */
16360 _ACEOF
16361 cat confdefs.h >>conftest.$ac_ext
16362 cat >>conftest.$ac_ext <<_ACEOF
16363 /* end confdefs.h.  */
16364 #ifdef HAVE_LINUX_INPUT_H
16365 #include <linux/input.h>
16366 #endif
16367
16368 int
16369 main ()
16370 {
16371 static struct ff_effect ac_aggr;
16372 if (ac_aggr.direction)
16373 return 0;
16374   ;
16375   return 0;
16376 }
16377 _ACEOF
16378 rm -f conftest.$ac_objext
16379 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16380   (eval $ac_compile) 2>conftest.er1
16381   ac_status=$?
16382   grep -v '^ *+' conftest.er1 >conftest.err
16383   rm -f conftest.er1
16384   cat conftest.err >&5
16385   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16386   (exit $ac_status); } &&
16387          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
16388   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16389   (eval $ac_try) 2>&5
16390   ac_status=$?
16391   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16392   (exit $ac_status); }; } &&
16393          { ac_try='test -s conftest.$ac_objext'
16394   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16395   (eval $ac_try) 2>&5
16396   ac_status=$?
16397   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16398   (exit $ac_status); }; }; then
16399   ac_cv_member_struct_ff_effect_direction=yes
16400 else
16401   echo "$as_me: failed program was:" >&5
16402 sed 's/^/| /' conftest.$ac_ext >&5
16403
16404 cat >conftest.$ac_ext <<_ACEOF
16405 /* confdefs.h.  */
16406 _ACEOF
16407 cat confdefs.h >>conftest.$ac_ext
16408 cat >>conftest.$ac_ext <<_ACEOF
16409 /* end confdefs.h.  */
16410 #ifdef HAVE_LINUX_INPUT_H
16411 #include <linux/input.h>
16412 #endif
16413
16414 int
16415 main ()
16416 {
16417 static struct ff_effect ac_aggr;
16418 if (sizeof ac_aggr.direction)
16419 return 0;
16420   ;
16421   return 0;
16422 }
16423 _ACEOF
16424 rm -f conftest.$ac_objext
16425 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16426   (eval $ac_compile) 2>conftest.er1
16427   ac_status=$?
16428   grep -v '^ *+' conftest.er1 >conftest.err
16429   rm -f conftest.er1
16430   cat conftest.err >&5
16431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16432   (exit $ac_status); } &&
16433          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
16434   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16435   (eval $ac_try) 2>&5
16436   ac_status=$?
16437   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16438   (exit $ac_status); }; } &&
16439          { ac_try='test -s conftest.$ac_objext'
16440   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16441   (eval $ac_try) 2>&5
16442   ac_status=$?
16443   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16444   (exit $ac_status); }; }; then
16445   ac_cv_member_struct_ff_effect_direction=yes
16446 else
16447   echo "$as_me: failed program was:" >&5
16448 sed 's/^/| /' conftest.$ac_ext >&5
16449
16450 ac_cv_member_struct_ff_effect_direction=no
16451 fi
16452 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16453 fi
16454 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16455 fi
16456 echo "$as_me:$LINENO: result: $ac_cv_member_struct_ff_effect_direction" >&5
16457 echo "${ECHO_T}$ac_cv_member_struct_ff_effect_direction" >&6
16458 if test $ac_cv_member_struct_ff_effect_direction = yes; then
16459
16460 cat >>confdefs.h <<_ACEOF
16461 #define HAVE_STRUCT_FF_EFFECT_DIRECTION 1
16462 _ACEOF
16463
16464
16465 fi
16466
16467
16468 echo "$as_me:$LINENO: checking for sigaddset" >&5
16469 echo $ECHO_N "checking for sigaddset... $ECHO_C" >&6
16470 if test "${wine_cv_have_sigaddset+set}" = set; then
16471   echo $ECHO_N "(cached) $ECHO_C" >&6
16472 else
16473   cat >conftest.$ac_ext <<_ACEOF
16474 /* confdefs.h.  */
16475 _ACEOF
16476 cat confdefs.h >>conftest.$ac_ext
16477 cat >>conftest.$ac_ext <<_ACEOF
16478 /* end confdefs.h.  */
16479 #include <signal.h>
16480 int
16481 main ()
16482 {
16483 sigset_t set; sigaddset(&set,SIGTERM);
16484   ;
16485   return 0;
16486 }
16487 _ACEOF
16488 rm -f conftest.$ac_objext conftest$ac_exeext
16489 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16490   (eval $ac_link) 2>conftest.er1
16491   ac_status=$?
16492   grep -v '^ *+' conftest.er1 >conftest.err
16493   rm -f conftest.er1
16494   cat conftest.err >&5
16495   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16496   (exit $ac_status); } &&
16497          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
16498   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16499   (eval $ac_try) 2>&5
16500   ac_status=$?
16501   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16502   (exit $ac_status); }; } &&
16503          { ac_try='test -s conftest$ac_exeext'
16504   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16505   (eval $ac_try) 2>&5
16506   ac_status=$?
16507   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16508   (exit $ac_status); }; }; then
16509   wine_cv_have_sigaddset=yes
16510 else
16511   echo "$as_me: failed program was:" >&5
16512 sed 's/^/| /' conftest.$ac_ext >&5
16513
16514 wine_cv_have_sigaddset=no
16515 fi
16516 rm -f conftest.err conftest.$ac_objext \
16517       conftest$ac_exeext conftest.$ac_ext
16518 fi
16519 echo "$as_me:$LINENO: result: $wine_cv_have_sigaddset" >&5
16520 echo "${ECHO_T}$wine_cv_have_sigaddset" >&6
16521 if test "$wine_cv_have_sigaddset" = "yes"
16522 then
16523
16524 cat >>confdefs.h <<\_ACEOF
16525 #define HAVE_SIGADDSET 1
16526 _ACEOF
16527
16528 fi
16529
16530
16531 echo "$as_me:$LINENO: checking whether we can use re-entrant gethostbyname_r Linux style" >&5
16532 echo $ECHO_N "checking whether we can use re-entrant gethostbyname_r Linux style... $ECHO_C" >&6
16533 if test "${wine_cv_linux_gethostbyname_r_6+set}" = set; then
16534   echo $ECHO_N "(cached) $ECHO_C" >&6
16535 else
16536   cat >conftest.$ac_ext <<_ACEOF
16537 /* confdefs.h.  */
16538 _ACEOF
16539 cat confdefs.h >>conftest.$ac_ext
16540 cat >>conftest.$ac_ext <<_ACEOF
16541 /* end confdefs.h.  */
16542
16543 #include <netdb.h>
16544
16545 int
16546 main ()
16547 {
16548
16549     char *name=NULL;
16550     struct hostent he;
16551     struct hostent *result;
16552     char *buf=NULL;
16553     int bufsize=0;
16554     int res,errnr;
16555     char *addr=NULL;
16556     int addrlen=0;
16557     int addrtype=0;
16558     res=gethostbyname_r(name,&he,buf,bufsize,&result,&errnr);
16559     res=gethostbyaddr_r(addr, addrlen, addrtype,&he,buf,bufsize,&result,&errnr);
16560
16561   ;
16562   return 0;
16563 }
16564 _ACEOF
16565 rm -f conftest.$ac_objext conftest$ac_exeext
16566 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16567   (eval $ac_link) 2>conftest.er1
16568   ac_status=$?
16569   grep -v '^ *+' conftest.er1 >conftest.err
16570   rm -f conftest.er1
16571   cat conftest.err >&5
16572   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16573   (exit $ac_status); } &&
16574          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
16575   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16576   (eval $ac_try) 2>&5
16577   ac_status=$?
16578   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16579   (exit $ac_status); }; } &&
16580          { ac_try='test -s conftest$ac_exeext'
16581   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16582   (eval $ac_try) 2>&5
16583   ac_status=$?
16584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16585   (exit $ac_status); }; }; then
16586   wine_cv_linux_gethostbyname_r_6=yes
16587 else
16588   echo "$as_me: failed program was:" >&5
16589 sed 's/^/| /' conftest.$ac_ext >&5
16590
16591 wine_cv_linux_gethostbyname_r_6=no
16592
16593 fi
16594 rm -f conftest.err conftest.$ac_objext \
16595       conftest$ac_exeext conftest.$ac_ext
16596
16597 fi
16598 echo "$as_me:$LINENO: result: $wine_cv_linux_gethostbyname_r_6" >&5
16599 echo "${ECHO_T}$wine_cv_linux_gethostbyname_r_6" >&6
16600    if test "$wine_cv_linux_gethostbyname_r_6" = "yes"
16601    then
16602
16603 cat >>confdefs.h <<\_ACEOF
16604 #define HAVE_LINUX_GETHOSTBYNAME_R_6 1
16605 _ACEOF
16606
16607    fi
16608
16609 if test "$ac_cv_header_linux_joystick_h" = "yes"
16610 then
16611    echo "$as_me:$LINENO: checking whether linux/joystick.h uses the Linux 2.2+ API" >&5
16612 echo $ECHO_N "checking whether linux/joystick.h uses the Linux 2.2+ API... $ECHO_C" >&6
16613 if test "${wine_cv_linux_joystick_22_api+set}" = set; then
16614   echo $ECHO_N "(cached) $ECHO_C" >&6
16615 else
16616   cat >conftest.$ac_ext <<_ACEOF
16617 /* confdefs.h.  */
16618 _ACEOF
16619 cat confdefs.h >>conftest.$ac_ext
16620 cat >>conftest.$ac_ext <<_ACEOF
16621 /* end confdefs.h.  */
16622
16623         #include <sys/ioctl.h>
16624         #include <linux/joystick.h>
16625
16626         struct js_event blub;
16627         #if !defined(JS_EVENT_AXIS) || !defined(JS_EVENT_BUTTON)
16628         #error "no 2.2 header"
16629         #endif
16630
16631 int
16632 main ()
16633 {
16634 /*empty*/
16635   ;
16636   return 0;
16637 }
16638 _ACEOF
16639 rm -f conftest.$ac_objext
16640 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16641   (eval $ac_compile) 2>conftest.er1
16642   ac_status=$?
16643   grep -v '^ *+' conftest.er1 >conftest.err
16644   rm -f conftest.er1
16645   cat conftest.err >&5
16646   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16647   (exit $ac_status); } &&
16648          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
16649   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16650   (eval $ac_try) 2>&5
16651   ac_status=$?
16652   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16653   (exit $ac_status); }; } &&
16654          { ac_try='test -s conftest.$ac_objext'
16655   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16656   (eval $ac_try) 2>&5
16657   ac_status=$?
16658   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16659   (exit $ac_status); }; }; then
16660   wine_cv_linux_joystick_22_api=yes
16661 else
16662   echo "$as_me: failed program was:" >&5
16663 sed 's/^/| /' conftest.$ac_ext >&5
16664
16665 wine_cv_linux_joystick_22_api=no
16666 fi
16667 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16668
16669 fi
16670 echo "$as_me:$LINENO: result: $wine_cv_linux_joystick_22_api" >&5
16671 echo "${ECHO_T}$wine_cv_linux_joystick_22_api" >&6
16672    if test "$wine_cv_linux_joystick_22_api" = "yes"
16673    then
16674
16675 cat >>confdefs.h <<\_ACEOF
16676 #define HAVE_LINUX_22_JOYSTICK_API 1
16677 _ACEOF
16678
16679    fi
16680 fi
16681
16682
16683 echo "$as_me:$LINENO: checking for struct statfs.f_bfree" >&5
16684 echo $ECHO_N "checking for struct statfs.f_bfree... $ECHO_C" >&6
16685 if test "${ac_cv_member_struct_statfs_f_bfree+set}" = set; then
16686   echo $ECHO_N "(cached) $ECHO_C" >&6
16687 else
16688   cat >conftest.$ac_ext <<_ACEOF
16689 /* confdefs.h.  */
16690 _ACEOF
16691 cat confdefs.h >>conftest.$ac_ext
16692 cat >>conftest.$ac_ext <<_ACEOF
16693 /* end confdefs.h.  */
16694 #include <sys/types.h>
16695 #ifdef HAVE_SYS_PARAM_H
16696 # include <sys/param.h>
16697 #endif
16698 #ifdef HAVE_SYS_MOUNT_H
16699 # include <sys/mount.h>
16700 #endif
16701 #ifdef HAVE_SYS_VFS_H
16702 # include <sys/vfs.h>
16703 #endif
16704 #ifdef HAVE_SYS_STATFS_H
16705 # include <sys/statfs.h>
16706 #endif
16707
16708 int
16709 main ()
16710 {
16711 static struct statfs ac_aggr;
16712 if (ac_aggr.f_bfree)
16713 return 0;
16714   ;
16715   return 0;
16716 }
16717 _ACEOF
16718 rm -f conftest.$ac_objext
16719 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16720   (eval $ac_compile) 2>conftest.er1
16721   ac_status=$?
16722   grep -v '^ *+' conftest.er1 >conftest.err
16723   rm -f conftest.er1
16724   cat conftest.err >&5
16725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16726   (exit $ac_status); } &&
16727          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
16728   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16729   (eval $ac_try) 2>&5
16730   ac_status=$?
16731   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16732   (exit $ac_status); }; } &&
16733          { ac_try='test -s conftest.$ac_objext'
16734   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16735   (eval $ac_try) 2>&5
16736   ac_status=$?
16737   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16738   (exit $ac_status); }; }; then
16739   ac_cv_member_struct_statfs_f_bfree=yes
16740 else
16741   echo "$as_me: failed program was:" >&5
16742 sed 's/^/| /' conftest.$ac_ext >&5
16743
16744 cat >conftest.$ac_ext <<_ACEOF
16745 /* confdefs.h.  */
16746 _ACEOF
16747 cat confdefs.h >>conftest.$ac_ext
16748 cat >>conftest.$ac_ext <<_ACEOF
16749 /* end confdefs.h.  */
16750 #include <sys/types.h>
16751 #ifdef HAVE_SYS_PARAM_H
16752 # include <sys/param.h>
16753 #endif
16754 #ifdef HAVE_SYS_MOUNT_H
16755 # include <sys/mount.h>
16756 #endif
16757 #ifdef HAVE_SYS_VFS_H
16758 # include <sys/vfs.h>
16759 #endif
16760 #ifdef HAVE_SYS_STATFS_H
16761 # include <sys/statfs.h>
16762 #endif
16763
16764 int
16765 main ()
16766 {
16767 static struct statfs ac_aggr;
16768 if (sizeof ac_aggr.f_bfree)
16769 return 0;
16770   ;
16771   return 0;
16772 }
16773 _ACEOF
16774 rm -f conftest.$ac_objext
16775 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16776   (eval $ac_compile) 2>conftest.er1
16777   ac_status=$?
16778   grep -v '^ *+' conftest.er1 >conftest.err
16779   rm -f conftest.er1
16780   cat conftest.err >&5
16781   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16782   (exit $ac_status); } &&
16783          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
16784   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16785   (eval $ac_try) 2>&5
16786   ac_status=$?
16787   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16788   (exit $ac_status); }; } &&
16789          { ac_try='test -s conftest.$ac_objext'
16790   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16791   (eval $ac_try) 2>&5
16792   ac_status=$?
16793   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16794   (exit $ac_status); }; }; then
16795   ac_cv_member_struct_statfs_f_bfree=yes
16796 else
16797   echo "$as_me: failed program was:" >&5
16798 sed 's/^/| /' conftest.$ac_ext >&5
16799
16800 ac_cv_member_struct_statfs_f_bfree=no
16801 fi
16802 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16803 fi
16804 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16805 fi
16806 echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_bfree" >&5
16807 echo "${ECHO_T}$ac_cv_member_struct_statfs_f_bfree" >&6
16808 if test $ac_cv_member_struct_statfs_f_bfree = yes; then
16809
16810 cat >>confdefs.h <<_ACEOF
16811 #define HAVE_STRUCT_STATFS_F_BFREE 1
16812 _ACEOF
16813
16814
16815 fi
16816 echo "$as_me:$LINENO: checking for struct statfs.f_bavail" >&5
16817 echo $ECHO_N "checking for struct statfs.f_bavail... $ECHO_C" >&6
16818 if test "${ac_cv_member_struct_statfs_f_bavail+set}" = set; then
16819   echo $ECHO_N "(cached) $ECHO_C" >&6
16820 else
16821   cat >conftest.$ac_ext <<_ACEOF
16822 /* confdefs.h.  */
16823 _ACEOF
16824 cat confdefs.h >>conftest.$ac_ext
16825 cat >>conftest.$ac_ext <<_ACEOF
16826 /* end confdefs.h.  */
16827 #include <sys/types.h>
16828 #ifdef HAVE_SYS_PARAM_H
16829 # include <sys/param.h>
16830 #endif
16831 #ifdef HAVE_SYS_MOUNT_H
16832 # include <sys/mount.h>
16833 #endif
16834 #ifdef HAVE_SYS_VFS_H
16835 # include <sys/vfs.h>
16836 #endif
16837 #ifdef HAVE_SYS_STATFS_H
16838 # include <sys/statfs.h>
16839 #endif
16840
16841 int
16842 main ()
16843 {
16844 static struct statfs ac_aggr;
16845 if (ac_aggr.f_bavail)
16846 return 0;
16847   ;
16848   return 0;
16849 }
16850 _ACEOF
16851 rm -f conftest.$ac_objext
16852 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16853   (eval $ac_compile) 2>conftest.er1
16854   ac_status=$?
16855   grep -v '^ *+' conftest.er1 >conftest.err
16856   rm -f conftest.er1
16857   cat conftest.err >&5
16858   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16859   (exit $ac_status); } &&
16860          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
16861   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16862   (eval $ac_try) 2>&5
16863   ac_status=$?
16864   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16865   (exit $ac_status); }; } &&
16866          { ac_try='test -s conftest.$ac_objext'
16867   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16868   (eval $ac_try) 2>&5
16869   ac_status=$?
16870   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16871   (exit $ac_status); }; }; then
16872   ac_cv_member_struct_statfs_f_bavail=yes
16873 else
16874   echo "$as_me: failed program was:" >&5
16875 sed 's/^/| /' conftest.$ac_ext >&5
16876
16877 cat >conftest.$ac_ext <<_ACEOF
16878 /* confdefs.h.  */
16879 _ACEOF
16880 cat confdefs.h >>conftest.$ac_ext
16881 cat >>conftest.$ac_ext <<_ACEOF
16882 /* end confdefs.h.  */
16883 #include <sys/types.h>
16884 #ifdef HAVE_SYS_PARAM_H
16885 # include <sys/param.h>
16886 #endif
16887 #ifdef HAVE_SYS_MOUNT_H
16888 # include <sys/mount.h>
16889 #endif
16890 #ifdef HAVE_SYS_VFS_H
16891 # include <sys/vfs.h>
16892 #endif
16893 #ifdef HAVE_SYS_STATFS_H
16894 # include <sys/statfs.h>
16895 #endif
16896
16897 int
16898 main ()
16899 {
16900 static struct statfs ac_aggr;
16901 if (sizeof ac_aggr.f_bavail)
16902 return 0;
16903   ;
16904   return 0;
16905 }
16906 _ACEOF
16907 rm -f conftest.$ac_objext
16908 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16909   (eval $ac_compile) 2>conftest.er1
16910   ac_status=$?
16911   grep -v '^ *+' conftest.er1 >conftest.err
16912   rm -f conftest.er1
16913   cat conftest.err >&5
16914   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16915   (exit $ac_status); } &&
16916          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
16917   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16918   (eval $ac_try) 2>&5
16919   ac_status=$?
16920   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16921   (exit $ac_status); }; } &&
16922          { ac_try='test -s conftest.$ac_objext'
16923   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16924   (eval $ac_try) 2>&5
16925   ac_status=$?
16926   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16927   (exit $ac_status); }; }; then
16928   ac_cv_member_struct_statfs_f_bavail=yes
16929 else
16930   echo "$as_me: failed program was:" >&5
16931 sed 's/^/| /' conftest.$ac_ext >&5
16932
16933 ac_cv_member_struct_statfs_f_bavail=no
16934 fi
16935 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16936 fi
16937 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16938 fi
16939 echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_bavail" >&5
16940 echo "${ECHO_T}$ac_cv_member_struct_statfs_f_bavail" >&6
16941 if test $ac_cv_member_struct_statfs_f_bavail = yes; then
16942
16943 cat >>confdefs.h <<_ACEOF
16944 #define HAVE_STRUCT_STATFS_F_BAVAIL 1
16945 _ACEOF
16946
16947
16948 fi
16949 echo "$as_me:$LINENO: checking for struct statfs.f_frsize" >&5
16950 echo $ECHO_N "checking for struct statfs.f_frsize... $ECHO_C" >&6
16951 if test "${ac_cv_member_struct_statfs_f_frsize+set}" = set; then
16952   echo $ECHO_N "(cached) $ECHO_C" >&6
16953 else
16954   cat >conftest.$ac_ext <<_ACEOF
16955 /* confdefs.h.  */
16956 _ACEOF
16957 cat confdefs.h >>conftest.$ac_ext
16958 cat >>conftest.$ac_ext <<_ACEOF
16959 /* end confdefs.h.  */
16960 #include <sys/types.h>
16961 #ifdef HAVE_SYS_PARAM_H
16962 # include <sys/param.h>
16963 #endif
16964 #ifdef HAVE_SYS_MOUNT_H
16965 # include <sys/mount.h>
16966 #endif
16967 #ifdef HAVE_SYS_VFS_H
16968 # include <sys/vfs.h>
16969 #endif
16970 #ifdef HAVE_SYS_STATFS_H
16971 # include <sys/statfs.h>
16972 #endif
16973
16974 int
16975 main ()
16976 {
16977 static struct statfs ac_aggr;
16978 if (ac_aggr.f_frsize)
16979 return 0;
16980   ;
16981   return 0;
16982 }
16983 _ACEOF
16984 rm -f conftest.$ac_objext
16985 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16986   (eval $ac_compile) 2>conftest.er1
16987   ac_status=$?
16988   grep -v '^ *+' conftest.er1 >conftest.err
16989   rm -f conftest.er1
16990   cat conftest.err >&5
16991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16992   (exit $ac_status); } &&
16993          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
16994   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16995   (eval $ac_try) 2>&5
16996   ac_status=$?
16997   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16998   (exit $ac_status); }; } &&
16999          { ac_try='test -s conftest.$ac_objext'
17000   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17001   (eval $ac_try) 2>&5
17002   ac_status=$?
17003   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17004   (exit $ac_status); }; }; then
17005   ac_cv_member_struct_statfs_f_frsize=yes
17006 else
17007   echo "$as_me: failed program was:" >&5
17008 sed 's/^/| /' conftest.$ac_ext >&5
17009
17010 cat >conftest.$ac_ext <<_ACEOF
17011 /* confdefs.h.  */
17012 _ACEOF
17013 cat confdefs.h >>conftest.$ac_ext
17014 cat >>conftest.$ac_ext <<_ACEOF
17015 /* end confdefs.h.  */
17016 #include <sys/types.h>
17017 #ifdef HAVE_SYS_PARAM_H
17018 # include <sys/param.h>
17019 #endif
17020 #ifdef HAVE_SYS_MOUNT_H
17021 # include <sys/mount.h>
17022 #endif
17023 #ifdef HAVE_SYS_VFS_H
17024 # include <sys/vfs.h>
17025 #endif
17026 #ifdef HAVE_SYS_STATFS_H
17027 # include <sys/statfs.h>
17028 #endif
17029
17030 int
17031 main ()
17032 {
17033 static struct statfs ac_aggr;
17034 if (sizeof ac_aggr.f_frsize)
17035 return 0;
17036   ;
17037   return 0;
17038 }
17039 _ACEOF
17040 rm -f conftest.$ac_objext
17041 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17042   (eval $ac_compile) 2>conftest.er1
17043   ac_status=$?
17044   grep -v '^ *+' conftest.er1 >conftest.err
17045   rm -f conftest.er1
17046   cat conftest.err >&5
17047   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17048   (exit $ac_status); } &&
17049          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
17050   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17051   (eval $ac_try) 2>&5
17052   ac_status=$?
17053   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17054   (exit $ac_status); }; } &&
17055          { ac_try='test -s conftest.$ac_objext'
17056   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17057   (eval $ac_try) 2>&5
17058   ac_status=$?
17059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17060   (exit $ac_status); }; }; then
17061   ac_cv_member_struct_statfs_f_frsize=yes
17062 else
17063   echo "$as_me: failed program was:" >&5
17064 sed 's/^/| /' conftest.$ac_ext >&5
17065
17066 ac_cv_member_struct_statfs_f_frsize=no
17067 fi
17068 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17069 fi
17070 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17071 fi
17072 echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_frsize" >&5
17073 echo "${ECHO_T}$ac_cv_member_struct_statfs_f_frsize" >&6
17074 if test $ac_cv_member_struct_statfs_f_frsize = yes; then
17075
17076 cat >>confdefs.h <<_ACEOF
17077 #define HAVE_STRUCT_STATFS_F_FRSIZE 1
17078 _ACEOF
17079
17080
17081 fi
17082 echo "$as_me:$LINENO: checking for struct statfs.f_ffree" >&5
17083 echo $ECHO_N "checking for struct statfs.f_ffree... $ECHO_C" >&6
17084 if test "${ac_cv_member_struct_statfs_f_ffree+set}" = set; then
17085   echo $ECHO_N "(cached) $ECHO_C" >&6
17086 else
17087   cat >conftest.$ac_ext <<_ACEOF
17088 /* confdefs.h.  */
17089 _ACEOF
17090 cat confdefs.h >>conftest.$ac_ext
17091 cat >>conftest.$ac_ext <<_ACEOF
17092 /* end confdefs.h.  */
17093 #include <sys/types.h>
17094 #ifdef HAVE_SYS_PARAM_H
17095 # include <sys/param.h>
17096 #endif
17097 #ifdef HAVE_SYS_MOUNT_H
17098 # include <sys/mount.h>
17099 #endif
17100 #ifdef HAVE_SYS_VFS_H
17101 # include <sys/vfs.h>
17102 #endif
17103 #ifdef HAVE_SYS_STATFS_H
17104 # include <sys/statfs.h>
17105 #endif
17106
17107 int
17108 main ()
17109 {
17110 static struct statfs ac_aggr;
17111 if (ac_aggr.f_ffree)
17112 return 0;
17113   ;
17114   return 0;
17115 }
17116 _ACEOF
17117 rm -f conftest.$ac_objext
17118 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17119   (eval $ac_compile) 2>conftest.er1
17120   ac_status=$?
17121   grep -v '^ *+' conftest.er1 >conftest.err
17122   rm -f conftest.er1
17123   cat conftest.err >&5
17124   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17125   (exit $ac_status); } &&
17126          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
17127   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17128   (eval $ac_try) 2>&5
17129   ac_status=$?
17130   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17131   (exit $ac_status); }; } &&
17132          { ac_try='test -s conftest.$ac_objext'
17133   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17134   (eval $ac_try) 2>&5
17135   ac_status=$?
17136   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17137   (exit $ac_status); }; }; then
17138   ac_cv_member_struct_statfs_f_ffree=yes
17139 else
17140   echo "$as_me: failed program was:" >&5
17141 sed 's/^/| /' conftest.$ac_ext >&5
17142
17143 cat >conftest.$ac_ext <<_ACEOF
17144 /* confdefs.h.  */
17145 _ACEOF
17146 cat confdefs.h >>conftest.$ac_ext
17147 cat >>conftest.$ac_ext <<_ACEOF
17148 /* end confdefs.h.  */
17149 #include <sys/types.h>
17150 #ifdef HAVE_SYS_PARAM_H
17151 # include <sys/param.h>
17152 #endif
17153 #ifdef HAVE_SYS_MOUNT_H
17154 # include <sys/mount.h>
17155 #endif
17156 #ifdef HAVE_SYS_VFS_H
17157 # include <sys/vfs.h>
17158 #endif
17159 #ifdef HAVE_SYS_STATFS_H
17160 # include <sys/statfs.h>
17161 #endif
17162
17163 int
17164 main ()
17165 {
17166 static struct statfs ac_aggr;
17167 if (sizeof ac_aggr.f_ffree)
17168 return 0;
17169   ;
17170   return 0;
17171 }
17172 _ACEOF
17173 rm -f conftest.$ac_objext
17174 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17175   (eval $ac_compile) 2>conftest.er1
17176   ac_status=$?
17177   grep -v '^ *+' conftest.er1 >conftest.err
17178   rm -f conftest.er1
17179   cat conftest.err >&5
17180   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17181   (exit $ac_status); } &&
17182          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
17183   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17184   (eval $ac_try) 2>&5
17185   ac_status=$?
17186   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17187   (exit $ac_status); }; } &&
17188          { ac_try='test -s conftest.$ac_objext'
17189   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17190   (eval $ac_try) 2>&5
17191   ac_status=$?
17192   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17193   (exit $ac_status); }; }; then
17194   ac_cv_member_struct_statfs_f_ffree=yes
17195 else
17196   echo "$as_me: failed program was:" >&5
17197 sed 's/^/| /' conftest.$ac_ext >&5
17198
17199 ac_cv_member_struct_statfs_f_ffree=no
17200 fi
17201 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17202 fi
17203 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17204 fi
17205 echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_ffree" >&5
17206 echo "${ECHO_T}$ac_cv_member_struct_statfs_f_ffree" >&6
17207 if test $ac_cv_member_struct_statfs_f_ffree = yes; then
17208
17209 cat >>confdefs.h <<_ACEOF
17210 #define HAVE_STRUCT_STATFS_F_FFREE 1
17211 _ACEOF
17212
17213
17214 fi
17215 echo "$as_me:$LINENO: checking for struct statfs.f_favail" >&5
17216 echo $ECHO_N "checking for struct statfs.f_favail... $ECHO_C" >&6
17217 if test "${ac_cv_member_struct_statfs_f_favail+set}" = set; then
17218   echo $ECHO_N "(cached) $ECHO_C" >&6
17219 else
17220   cat >conftest.$ac_ext <<_ACEOF
17221 /* confdefs.h.  */
17222 _ACEOF
17223 cat confdefs.h >>conftest.$ac_ext
17224 cat >>conftest.$ac_ext <<_ACEOF
17225 /* end confdefs.h.  */
17226 #include <sys/types.h>
17227 #ifdef HAVE_SYS_PARAM_H
17228 # include <sys/param.h>
17229 #endif
17230 #ifdef HAVE_SYS_MOUNT_H
17231 # include <sys/mount.h>
17232 #endif
17233 #ifdef HAVE_SYS_VFS_H
17234 # include <sys/vfs.h>
17235 #endif
17236 #ifdef HAVE_SYS_STATFS_H
17237 # include <sys/statfs.h>
17238 #endif
17239
17240 int
17241 main ()
17242 {
17243 static struct statfs ac_aggr;
17244 if (ac_aggr.f_favail)
17245 return 0;
17246   ;
17247   return 0;
17248 }
17249 _ACEOF
17250 rm -f conftest.$ac_objext
17251 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17252   (eval $ac_compile) 2>conftest.er1
17253   ac_status=$?
17254   grep -v '^ *+' conftest.er1 >conftest.err
17255   rm -f conftest.er1
17256   cat conftest.err >&5
17257   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17258   (exit $ac_status); } &&
17259          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
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); }; } &&
17265          { ac_try='test -s conftest.$ac_objext'
17266   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17267   (eval $ac_try) 2>&5
17268   ac_status=$?
17269   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17270   (exit $ac_status); }; }; then
17271   ac_cv_member_struct_statfs_f_favail=yes
17272 else
17273   echo "$as_me: failed program was:" >&5
17274 sed 's/^/| /' conftest.$ac_ext >&5
17275
17276 cat >conftest.$ac_ext <<_ACEOF
17277 /* confdefs.h.  */
17278 _ACEOF
17279 cat confdefs.h >>conftest.$ac_ext
17280 cat >>conftest.$ac_ext <<_ACEOF
17281 /* end confdefs.h.  */
17282 #include <sys/types.h>
17283 #ifdef HAVE_SYS_PARAM_H
17284 # include <sys/param.h>
17285 #endif
17286 #ifdef HAVE_SYS_MOUNT_H
17287 # include <sys/mount.h>
17288 #endif
17289 #ifdef HAVE_SYS_VFS_H
17290 # include <sys/vfs.h>
17291 #endif
17292 #ifdef HAVE_SYS_STATFS_H
17293 # include <sys/statfs.h>
17294 #endif
17295
17296 int
17297 main ()
17298 {
17299 static struct statfs ac_aggr;
17300 if (sizeof ac_aggr.f_favail)
17301 return 0;
17302   ;
17303   return 0;
17304 }
17305 _ACEOF
17306 rm -f conftest.$ac_objext
17307 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17308   (eval $ac_compile) 2>conftest.er1
17309   ac_status=$?
17310   grep -v '^ *+' conftest.er1 >conftest.err
17311   rm -f conftest.er1
17312   cat conftest.err >&5
17313   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17314   (exit $ac_status); } &&
17315          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
17316   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17317   (eval $ac_try) 2>&5
17318   ac_status=$?
17319   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17320   (exit $ac_status); }; } &&
17321          { ac_try='test -s conftest.$ac_objext'
17322   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17323   (eval $ac_try) 2>&5
17324   ac_status=$?
17325   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17326   (exit $ac_status); }; }; then
17327   ac_cv_member_struct_statfs_f_favail=yes
17328 else
17329   echo "$as_me: failed program was:" >&5
17330 sed 's/^/| /' conftest.$ac_ext >&5
17331
17332 ac_cv_member_struct_statfs_f_favail=no
17333 fi
17334 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17335 fi
17336 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17337 fi
17338 echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_favail" >&5
17339 echo "${ECHO_T}$ac_cv_member_struct_statfs_f_favail" >&6
17340 if test $ac_cv_member_struct_statfs_f_favail = yes; then
17341
17342 cat >>confdefs.h <<_ACEOF
17343 #define HAVE_STRUCT_STATFS_F_FAVAIL 1
17344 _ACEOF
17345
17346
17347 fi
17348 echo "$as_me:$LINENO: checking for struct statfs.f_namelen" >&5
17349 echo $ECHO_N "checking for struct statfs.f_namelen... $ECHO_C" >&6
17350 if test "${ac_cv_member_struct_statfs_f_namelen+set}" = set; then
17351   echo $ECHO_N "(cached) $ECHO_C" >&6
17352 else
17353   cat >conftest.$ac_ext <<_ACEOF
17354 /* confdefs.h.  */
17355 _ACEOF
17356 cat confdefs.h >>conftest.$ac_ext
17357 cat >>conftest.$ac_ext <<_ACEOF
17358 /* end confdefs.h.  */
17359 #include <sys/types.h>
17360 #ifdef HAVE_SYS_PARAM_H
17361 # include <sys/param.h>
17362 #endif
17363 #ifdef HAVE_SYS_MOUNT_H
17364 # include <sys/mount.h>
17365 #endif
17366 #ifdef HAVE_SYS_VFS_H
17367 # include <sys/vfs.h>
17368 #endif
17369 #ifdef HAVE_SYS_STATFS_H
17370 # include <sys/statfs.h>
17371 #endif
17372
17373 int
17374 main ()
17375 {
17376 static struct statfs ac_aggr;
17377 if (ac_aggr.f_namelen)
17378 return 0;
17379   ;
17380   return 0;
17381 }
17382 _ACEOF
17383 rm -f conftest.$ac_objext
17384 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17385   (eval $ac_compile) 2>conftest.er1
17386   ac_status=$?
17387   grep -v '^ *+' conftest.er1 >conftest.err
17388   rm -f conftest.er1
17389   cat conftest.err >&5
17390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17391   (exit $ac_status); } &&
17392          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
17393   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17394   (eval $ac_try) 2>&5
17395   ac_status=$?
17396   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17397   (exit $ac_status); }; } &&
17398          { ac_try='test -s conftest.$ac_objext'
17399   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17400   (eval $ac_try) 2>&5
17401   ac_status=$?
17402   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17403   (exit $ac_status); }; }; then
17404   ac_cv_member_struct_statfs_f_namelen=yes
17405 else
17406   echo "$as_me: failed program was:" >&5
17407 sed 's/^/| /' conftest.$ac_ext >&5
17408
17409 cat >conftest.$ac_ext <<_ACEOF
17410 /* confdefs.h.  */
17411 _ACEOF
17412 cat confdefs.h >>conftest.$ac_ext
17413 cat >>conftest.$ac_ext <<_ACEOF
17414 /* end confdefs.h.  */
17415 #include <sys/types.h>
17416 #ifdef HAVE_SYS_PARAM_H
17417 # include <sys/param.h>
17418 #endif
17419 #ifdef HAVE_SYS_MOUNT_H
17420 # include <sys/mount.h>
17421 #endif
17422 #ifdef HAVE_SYS_VFS_H
17423 # include <sys/vfs.h>
17424 #endif
17425 #ifdef HAVE_SYS_STATFS_H
17426 # include <sys/statfs.h>
17427 #endif
17428
17429 int
17430 main ()
17431 {
17432 static struct statfs ac_aggr;
17433 if (sizeof ac_aggr.f_namelen)
17434 return 0;
17435   ;
17436   return 0;
17437 }
17438 _ACEOF
17439 rm -f conftest.$ac_objext
17440 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17441   (eval $ac_compile) 2>conftest.er1
17442   ac_status=$?
17443   grep -v '^ *+' conftest.er1 >conftest.err
17444   rm -f conftest.er1
17445   cat conftest.err >&5
17446   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17447   (exit $ac_status); } &&
17448          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
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); }; } &&
17454          { ac_try='test -s conftest.$ac_objext'
17455   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17456   (eval $ac_try) 2>&5
17457   ac_status=$?
17458   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17459   (exit $ac_status); }; }; then
17460   ac_cv_member_struct_statfs_f_namelen=yes
17461 else
17462   echo "$as_me: failed program was:" >&5
17463 sed 's/^/| /' conftest.$ac_ext >&5
17464
17465 ac_cv_member_struct_statfs_f_namelen=no
17466 fi
17467 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17468 fi
17469 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17470 fi
17471 echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_namelen" >&5
17472 echo "${ECHO_T}$ac_cv_member_struct_statfs_f_namelen" >&6
17473 if test $ac_cv_member_struct_statfs_f_namelen = yes; then
17474
17475 cat >>confdefs.h <<_ACEOF
17476 #define HAVE_STRUCT_STATFS_F_NAMELEN 1
17477 _ACEOF
17478
17479
17480 fi
17481
17482
17483 echo "$as_me:$LINENO: checking for struct statvfs.f_blocks" >&5
17484 echo $ECHO_N "checking for struct statvfs.f_blocks... $ECHO_C" >&6
17485 if test "${ac_cv_member_struct_statvfs_f_blocks+set}" = set; then
17486   echo $ECHO_N "(cached) $ECHO_C" >&6
17487 else
17488   cat >conftest.$ac_ext <<_ACEOF
17489 /* confdefs.h.  */
17490 _ACEOF
17491 cat confdefs.h >>conftest.$ac_ext
17492 cat >>conftest.$ac_ext <<_ACEOF
17493 /* end confdefs.h.  */
17494 #ifdef HAVE_SYS_STATVFS_H
17495 #include <sys/statvfs.h>
17496 #endif
17497
17498 int
17499 main ()
17500 {
17501 static struct statvfs ac_aggr;
17502 if (ac_aggr.f_blocks)
17503 return 0;
17504   ;
17505   return 0;
17506 }
17507 _ACEOF
17508 rm -f conftest.$ac_objext
17509 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17510   (eval $ac_compile) 2>conftest.er1
17511   ac_status=$?
17512   grep -v '^ *+' conftest.er1 >conftest.err
17513   rm -f conftest.er1
17514   cat conftest.err >&5
17515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17516   (exit $ac_status); } &&
17517          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
17518   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17519   (eval $ac_try) 2>&5
17520   ac_status=$?
17521   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17522   (exit $ac_status); }; } &&
17523          { ac_try='test -s conftest.$ac_objext'
17524   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17525   (eval $ac_try) 2>&5
17526   ac_status=$?
17527   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17528   (exit $ac_status); }; }; then
17529   ac_cv_member_struct_statvfs_f_blocks=yes
17530 else
17531   echo "$as_me: failed program was:" >&5
17532 sed 's/^/| /' conftest.$ac_ext >&5
17533
17534 cat >conftest.$ac_ext <<_ACEOF
17535 /* confdefs.h.  */
17536 _ACEOF
17537 cat confdefs.h >>conftest.$ac_ext
17538 cat >>conftest.$ac_ext <<_ACEOF
17539 /* end confdefs.h.  */
17540 #ifdef HAVE_SYS_STATVFS_H
17541 #include <sys/statvfs.h>
17542 #endif
17543
17544 int
17545 main ()
17546 {
17547 static struct statvfs ac_aggr;
17548 if (sizeof ac_aggr.f_blocks)
17549 return 0;
17550   ;
17551   return 0;
17552 }
17553 _ACEOF
17554 rm -f conftest.$ac_objext
17555 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17556   (eval $ac_compile) 2>conftest.er1
17557   ac_status=$?
17558   grep -v '^ *+' conftest.er1 >conftest.err
17559   rm -f conftest.er1
17560   cat conftest.err >&5
17561   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17562   (exit $ac_status); } &&
17563          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
17564   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17565   (eval $ac_try) 2>&5
17566   ac_status=$?
17567   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17568   (exit $ac_status); }; } &&
17569          { ac_try='test -s conftest.$ac_objext'
17570   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17571   (eval $ac_try) 2>&5
17572   ac_status=$?
17573   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17574   (exit $ac_status); }; }; then
17575   ac_cv_member_struct_statvfs_f_blocks=yes
17576 else
17577   echo "$as_me: failed program was:" >&5
17578 sed 's/^/| /' conftest.$ac_ext >&5
17579
17580 ac_cv_member_struct_statvfs_f_blocks=no
17581 fi
17582 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17583 fi
17584 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17585 fi
17586 echo "$as_me:$LINENO: result: $ac_cv_member_struct_statvfs_f_blocks" >&5
17587 echo "${ECHO_T}$ac_cv_member_struct_statvfs_f_blocks" >&6
17588 if test $ac_cv_member_struct_statvfs_f_blocks = yes; then
17589
17590 cat >>confdefs.h <<_ACEOF
17591 #define HAVE_STRUCT_STATVFS_F_BLOCKS 1
17592 _ACEOF
17593
17594
17595 fi
17596
17597
17598 echo "$as_me:$LINENO: checking for struct msghdr.msg_accrights" >&5
17599 echo $ECHO_N "checking for struct msghdr.msg_accrights... $ECHO_C" >&6
17600 if test "${ac_cv_member_struct_msghdr_msg_accrights+set}" = set; then
17601   echo $ECHO_N "(cached) $ECHO_C" >&6
17602 else
17603   cat >conftest.$ac_ext <<_ACEOF
17604 /* confdefs.h.  */
17605 _ACEOF
17606 cat confdefs.h >>conftest.$ac_ext
17607 cat >>conftest.$ac_ext <<_ACEOF
17608 /* end confdefs.h.  */
17609 #include <sys/types.h>
17610 #ifdef HAVE_SYS_SOCKET_H
17611 # include <sys/socket.h>
17612 #endif
17613 #ifdef HAVE_SYS_UN_H
17614 # include <sys/un.h>
17615 #endif
17616
17617 int
17618 main ()
17619 {
17620 static struct msghdr ac_aggr;
17621 if (ac_aggr.msg_accrights)
17622 return 0;
17623   ;
17624   return 0;
17625 }
17626 _ACEOF
17627 rm -f conftest.$ac_objext
17628 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17629   (eval $ac_compile) 2>conftest.er1
17630   ac_status=$?
17631   grep -v '^ *+' conftest.er1 >conftest.err
17632   rm -f conftest.er1
17633   cat conftest.err >&5
17634   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17635   (exit $ac_status); } &&
17636          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
17637   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17638   (eval $ac_try) 2>&5
17639   ac_status=$?
17640   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17641   (exit $ac_status); }; } &&
17642          { ac_try='test -s conftest.$ac_objext'
17643   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17644   (eval $ac_try) 2>&5
17645   ac_status=$?
17646   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17647   (exit $ac_status); }; }; then
17648   ac_cv_member_struct_msghdr_msg_accrights=yes
17649 else
17650   echo "$as_me: failed program was:" >&5
17651 sed 's/^/| /' conftest.$ac_ext >&5
17652
17653 cat >conftest.$ac_ext <<_ACEOF
17654 /* confdefs.h.  */
17655 _ACEOF
17656 cat confdefs.h >>conftest.$ac_ext
17657 cat >>conftest.$ac_ext <<_ACEOF
17658 /* end confdefs.h.  */
17659 #include <sys/types.h>
17660 #ifdef HAVE_SYS_SOCKET_H
17661 # include <sys/socket.h>
17662 #endif
17663 #ifdef HAVE_SYS_UN_H
17664 # include <sys/un.h>
17665 #endif
17666
17667 int
17668 main ()
17669 {
17670 static struct msghdr ac_aggr;
17671 if (sizeof ac_aggr.msg_accrights)
17672 return 0;
17673   ;
17674   return 0;
17675 }
17676 _ACEOF
17677 rm -f conftest.$ac_objext
17678 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17679   (eval $ac_compile) 2>conftest.er1
17680   ac_status=$?
17681   grep -v '^ *+' conftest.er1 >conftest.err
17682   rm -f conftest.er1
17683   cat conftest.err >&5
17684   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17685   (exit $ac_status); } &&
17686          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
17687   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17688   (eval $ac_try) 2>&5
17689   ac_status=$?
17690   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17691   (exit $ac_status); }; } &&
17692          { ac_try='test -s conftest.$ac_objext'
17693   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17694   (eval $ac_try) 2>&5
17695   ac_status=$?
17696   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17697   (exit $ac_status); }; }; then
17698   ac_cv_member_struct_msghdr_msg_accrights=yes
17699 else
17700   echo "$as_me: failed program was:" >&5
17701 sed 's/^/| /' conftest.$ac_ext >&5
17702
17703 ac_cv_member_struct_msghdr_msg_accrights=no
17704 fi
17705 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17706 fi
17707 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17708 fi
17709 echo "$as_me:$LINENO: result: $ac_cv_member_struct_msghdr_msg_accrights" >&5
17710 echo "${ECHO_T}$ac_cv_member_struct_msghdr_msg_accrights" >&6
17711 if test $ac_cv_member_struct_msghdr_msg_accrights = yes; then
17712
17713 cat >>confdefs.h <<_ACEOF
17714 #define HAVE_STRUCT_MSGHDR_MSG_ACCRIGHTS 1
17715 _ACEOF
17716
17717
17718 fi
17719 echo "$as_me:$LINENO: checking for struct sockaddr.sa_len" >&5
17720 echo $ECHO_N "checking for struct sockaddr.sa_len... $ECHO_C" >&6
17721 if test "${ac_cv_member_struct_sockaddr_sa_len+set}" = set; then
17722   echo $ECHO_N "(cached) $ECHO_C" >&6
17723 else
17724   cat >conftest.$ac_ext <<_ACEOF
17725 /* confdefs.h.  */
17726 _ACEOF
17727 cat confdefs.h >>conftest.$ac_ext
17728 cat >>conftest.$ac_ext <<_ACEOF
17729 /* end confdefs.h.  */
17730 #include <sys/types.h>
17731 #ifdef HAVE_SYS_SOCKET_H
17732 # include <sys/socket.h>
17733 #endif
17734 #ifdef HAVE_SYS_UN_H
17735 # include <sys/un.h>
17736 #endif
17737
17738 int
17739 main ()
17740 {
17741 static struct sockaddr ac_aggr;
17742 if (ac_aggr.sa_len)
17743 return 0;
17744   ;
17745   return 0;
17746 }
17747 _ACEOF
17748 rm -f conftest.$ac_objext
17749 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17750   (eval $ac_compile) 2>conftest.er1
17751   ac_status=$?
17752   grep -v '^ *+' conftest.er1 >conftest.err
17753   rm -f conftest.er1
17754   cat conftest.err >&5
17755   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17756   (exit $ac_status); } &&
17757          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
17758   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17759   (eval $ac_try) 2>&5
17760   ac_status=$?
17761   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17762   (exit $ac_status); }; } &&
17763          { ac_try='test -s conftest.$ac_objext'
17764   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17765   (eval $ac_try) 2>&5
17766   ac_status=$?
17767   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17768   (exit $ac_status); }; }; then
17769   ac_cv_member_struct_sockaddr_sa_len=yes
17770 else
17771   echo "$as_me: failed program was:" >&5
17772 sed 's/^/| /' conftest.$ac_ext >&5
17773
17774 cat >conftest.$ac_ext <<_ACEOF
17775 /* confdefs.h.  */
17776 _ACEOF
17777 cat confdefs.h >>conftest.$ac_ext
17778 cat >>conftest.$ac_ext <<_ACEOF
17779 /* end confdefs.h.  */
17780 #include <sys/types.h>
17781 #ifdef HAVE_SYS_SOCKET_H
17782 # include <sys/socket.h>
17783 #endif
17784 #ifdef HAVE_SYS_UN_H
17785 # include <sys/un.h>
17786 #endif
17787
17788 int
17789 main ()
17790 {
17791 static struct sockaddr ac_aggr;
17792 if (sizeof ac_aggr.sa_len)
17793 return 0;
17794   ;
17795   return 0;
17796 }
17797 _ACEOF
17798 rm -f conftest.$ac_objext
17799 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17800   (eval $ac_compile) 2>conftest.er1
17801   ac_status=$?
17802   grep -v '^ *+' conftest.er1 >conftest.err
17803   rm -f conftest.er1
17804   cat conftest.err >&5
17805   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17806   (exit $ac_status); } &&
17807          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
17808   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17809   (eval $ac_try) 2>&5
17810   ac_status=$?
17811   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17812   (exit $ac_status); }; } &&
17813          { ac_try='test -s conftest.$ac_objext'
17814   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17815   (eval $ac_try) 2>&5
17816   ac_status=$?
17817   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17818   (exit $ac_status); }; }; then
17819   ac_cv_member_struct_sockaddr_sa_len=yes
17820 else
17821   echo "$as_me: failed program was:" >&5
17822 sed 's/^/| /' conftest.$ac_ext >&5
17823
17824 ac_cv_member_struct_sockaddr_sa_len=no
17825 fi
17826 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17827 fi
17828 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17829 fi
17830 echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_sa_len" >&5
17831 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_sa_len" >&6
17832 if test $ac_cv_member_struct_sockaddr_sa_len = yes; then
17833
17834 cat >>confdefs.h <<_ACEOF
17835 #define HAVE_STRUCT_SOCKADDR_SA_LEN 1
17836 _ACEOF
17837
17838
17839 fi
17840 echo "$as_me:$LINENO: checking for struct sockaddr_un.sun_len" >&5
17841 echo $ECHO_N "checking for struct sockaddr_un.sun_len... $ECHO_C" >&6
17842 if test "${ac_cv_member_struct_sockaddr_un_sun_len+set}" = set; then
17843   echo $ECHO_N "(cached) $ECHO_C" >&6
17844 else
17845   cat >conftest.$ac_ext <<_ACEOF
17846 /* confdefs.h.  */
17847 _ACEOF
17848 cat confdefs.h >>conftest.$ac_ext
17849 cat >>conftest.$ac_ext <<_ACEOF
17850 /* end confdefs.h.  */
17851 #include <sys/types.h>
17852 #ifdef HAVE_SYS_SOCKET_H
17853 # include <sys/socket.h>
17854 #endif
17855 #ifdef HAVE_SYS_UN_H
17856 # include <sys/un.h>
17857 #endif
17858
17859 int
17860 main ()
17861 {
17862 static struct sockaddr_un ac_aggr;
17863 if (ac_aggr.sun_len)
17864 return 0;
17865   ;
17866   return 0;
17867 }
17868 _ACEOF
17869 rm -f conftest.$ac_objext
17870 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17871   (eval $ac_compile) 2>conftest.er1
17872   ac_status=$?
17873   grep -v '^ *+' conftest.er1 >conftest.err
17874   rm -f conftest.er1
17875   cat conftest.err >&5
17876   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17877   (exit $ac_status); } &&
17878          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
17879   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17880   (eval $ac_try) 2>&5
17881   ac_status=$?
17882   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17883   (exit $ac_status); }; } &&
17884          { ac_try='test -s conftest.$ac_objext'
17885   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17886   (eval $ac_try) 2>&5
17887   ac_status=$?
17888   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17889   (exit $ac_status); }; }; then
17890   ac_cv_member_struct_sockaddr_un_sun_len=yes
17891 else
17892   echo "$as_me: failed program was:" >&5
17893 sed 's/^/| /' conftest.$ac_ext >&5
17894
17895 cat >conftest.$ac_ext <<_ACEOF
17896 /* confdefs.h.  */
17897 _ACEOF
17898 cat confdefs.h >>conftest.$ac_ext
17899 cat >>conftest.$ac_ext <<_ACEOF
17900 /* end confdefs.h.  */
17901 #include <sys/types.h>
17902 #ifdef HAVE_SYS_SOCKET_H
17903 # include <sys/socket.h>
17904 #endif
17905 #ifdef HAVE_SYS_UN_H
17906 # include <sys/un.h>
17907 #endif
17908
17909 int
17910 main ()
17911 {
17912 static struct sockaddr_un ac_aggr;
17913 if (sizeof ac_aggr.sun_len)
17914 return 0;
17915   ;
17916   return 0;
17917 }
17918 _ACEOF
17919 rm -f conftest.$ac_objext
17920 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17921   (eval $ac_compile) 2>conftest.er1
17922   ac_status=$?
17923   grep -v '^ *+' conftest.er1 >conftest.err
17924   rm -f conftest.er1
17925   cat conftest.err >&5
17926   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17927   (exit $ac_status); } &&
17928          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
17929   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17930   (eval $ac_try) 2>&5
17931   ac_status=$?
17932   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17933   (exit $ac_status); }; } &&
17934          { ac_try='test -s conftest.$ac_objext'
17935   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17936   (eval $ac_try) 2>&5
17937   ac_status=$?
17938   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17939   (exit $ac_status); }; }; then
17940   ac_cv_member_struct_sockaddr_un_sun_len=yes
17941 else
17942   echo "$as_me: failed program was:" >&5
17943 sed 's/^/| /' conftest.$ac_ext >&5
17944
17945 ac_cv_member_struct_sockaddr_un_sun_len=no
17946 fi
17947 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17948 fi
17949 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17950 fi
17951 echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_un_sun_len" >&5
17952 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_un_sun_len" >&6
17953 if test $ac_cv_member_struct_sockaddr_un_sun_len = yes; then
17954
17955 cat >>confdefs.h <<_ACEOF
17956 #define HAVE_STRUCT_SOCKADDR_UN_SUN_LEN 1
17957 _ACEOF
17958
17959
17960 fi
17961
17962
17963 echo "$as_me:$LINENO: checking for scsireq_t.cmd" >&5
17964 echo $ECHO_N "checking for scsireq_t.cmd... $ECHO_C" >&6
17965 if test "${ac_cv_member_scsireq_t_cmd+set}" = set; then
17966   echo $ECHO_N "(cached) $ECHO_C" >&6
17967 else
17968   cat >conftest.$ac_ext <<_ACEOF
17969 /* confdefs.h.  */
17970 _ACEOF
17971 cat confdefs.h >>conftest.$ac_ext
17972 cat >>conftest.$ac_ext <<_ACEOF
17973 /* end confdefs.h.  */
17974 #include <sys/types.h>
17975 #ifdef HAVE_SCSI_SG_H
17976 #include <scsi/sg.h>
17977 #endif
17978
17979 int
17980 main ()
17981 {
17982 static scsireq_t ac_aggr;
17983 if (ac_aggr.cmd)
17984 return 0;
17985   ;
17986   return 0;
17987 }
17988 _ACEOF
17989 rm -f conftest.$ac_objext
17990 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17991   (eval $ac_compile) 2>conftest.er1
17992   ac_status=$?
17993   grep -v '^ *+' conftest.er1 >conftest.err
17994   rm -f conftest.er1
17995   cat conftest.err >&5
17996   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17997   (exit $ac_status); } &&
17998          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
17999   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18000   (eval $ac_try) 2>&5
18001   ac_status=$?
18002   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18003   (exit $ac_status); }; } &&
18004          { ac_try='test -s conftest.$ac_objext'
18005   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18006   (eval $ac_try) 2>&5
18007   ac_status=$?
18008   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18009   (exit $ac_status); }; }; then
18010   ac_cv_member_scsireq_t_cmd=yes
18011 else
18012   echo "$as_me: failed program was:" >&5
18013 sed 's/^/| /' conftest.$ac_ext >&5
18014
18015 cat >conftest.$ac_ext <<_ACEOF
18016 /* confdefs.h.  */
18017 _ACEOF
18018 cat confdefs.h >>conftest.$ac_ext
18019 cat >>conftest.$ac_ext <<_ACEOF
18020 /* end confdefs.h.  */
18021 #include <sys/types.h>
18022 #ifdef HAVE_SCSI_SG_H
18023 #include <scsi/sg.h>
18024 #endif
18025
18026 int
18027 main ()
18028 {
18029 static scsireq_t ac_aggr;
18030 if (sizeof ac_aggr.cmd)
18031 return 0;
18032   ;
18033   return 0;
18034 }
18035 _ACEOF
18036 rm -f conftest.$ac_objext
18037 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18038   (eval $ac_compile) 2>conftest.er1
18039   ac_status=$?
18040   grep -v '^ *+' conftest.er1 >conftest.err
18041   rm -f conftest.er1
18042   cat conftest.err >&5
18043   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18044   (exit $ac_status); } &&
18045          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
18046   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18047   (eval $ac_try) 2>&5
18048   ac_status=$?
18049   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18050   (exit $ac_status); }; } &&
18051          { ac_try='test -s conftest.$ac_objext'
18052   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18053   (eval $ac_try) 2>&5
18054   ac_status=$?
18055   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18056   (exit $ac_status); }; }; then
18057   ac_cv_member_scsireq_t_cmd=yes
18058 else
18059   echo "$as_me: failed program was:" >&5
18060 sed 's/^/| /' conftest.$ac_ext >&5
18061
18062 ac_cv_member_scsireq_t_cmd=no
18063 fi
18064 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18065 fi
18066 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18067 fi
18068 echo "$as_me:$LINENO: result: $ac_cv_member_scsireq_t_cmd" >&5
18069 echo "${ECHO_T}$ac_cv_member_scsireq_t_cmd" >&6
18070 if test $ac_cv_member_scsireq_t_cmd = yes; then
18071
18072 cat >>confdefs.h <<_ACEOF
18073 #define HAVE_SCSIREQ_T_CMD 1
18074 _ACEOF
18075
18076
18077 fi
18078 echo "$as_me:$LINENO: checking for sg_io_hdr_t.interface_id" >&5
18079 echo $ECHO_N "checking for sg_io_hdr_t.interface_id... $ECHO_C" >&6
18080 if test "${ac_cv_member_sg_io_hdr_t_interface_id+set}" = set; then
18081   echo $ECHO_N "(cached) $ECHO_C" >&6
18082 else
18083   cat >conftest.$ac_ext <<_ACEOF
18084 /* confdefs.h.  */
18085 _ACEOF
18086 cat confdefs.h >>conftest.$ac_ext
18087 cat >>conftest.$ac_ext <<_ACEOF
18088 /* end confdefs.h.  */
18089 #include <sys/types.h>
18090 #ifdef HAVE_SCSI_SG_H
18091 #include <scsi/sg.h>
18092 #endif
18093
18094 int
18095 main ()
18096 {
18097 static sg_io_hdr_t ac_aggr;
18098 if (ac_aggr.interface_id)
18099 return 0;
18100   ;
18101   return 0;
18102 }
18103 _ACEOF
18104 rm -f conftest.$ac_objext
18105 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18106   (eval $ac_compile) 2>conftest.er1
18107   ac_status=$?
18108   grep -v '^ *+' conftest.er1 >conftest.err
18109   rm -f conftest.er1
18110   cat conftest.err >&5
18111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18112   (exit $ac_status); } &&
18113          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
18114   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18115   (eval $ac_try) 2>&5
18116   ac_status=$?
18117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18118   (exit $ac_status); }; } &&
18119          { ac_try='test -s conftest.$ac_objext'
18120   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18121   (eval $ac_try) 2>&5
18122   ac_status=$?
18123   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18124   (exit $ac_status); }; }; then
18125   ac_cv_member_sg_io_hdr_t_interface_id=yes
18126 else
18127   echo "$as_me: failed program was:" >&5
18128 sed 's/^/| /' conftest.$ac_ext >&5
18129
18130 cat >conftest.$ac_ext <<_ACEOF
18131 /* confdefs.h.  */
18132 _ACEOF
18133 cat confdefs.h >>conftest.$ac_ext
18134 cat >>conftest.$ac_ext <<_ACEOF
18135 /* end confdefs.h.  */
18136 #include <sys/types.h>
18137 #ifdef HAVE_SCSI_SG_H
18138 #include <scsi/sg.h>
18139 #endif
18140
18141 int
18142 main ()
18143 {
18144 static sg_io_hdr_t ac_aggr;
18145 if (sizeof ac_aggr.interface_id)
18146 return 0;
18147   ;
18148   return 0;
18149 }
18150 _ACEOF
18151 rm -f conftest.$ac_objext
18152 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18153   (eval $ac_compile) 2>conftest.er1
18154   ac_status=$?
18155   grep -v '^ *+' conftest.er1 >conftest.err
18156   rm -f conftest.er1
18157   cat conftest.err >&5
18158   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18159   (exit $ac_status); } &&
18160          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
18161   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18162   (eval $ac_try) 2>&5
18163   ac_status=$?
18164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18165   (exit $ac_status); }; } &&
18166          { ac_try='test -s conftest.$ac_objext'
18167   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18168   (eval $ac_try) 2>&5
18169   ac_status=$?
18170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18171   (exit $ac_status); }; }; then
18172   ac_cv_member_sg_io_hdr_t_interface_id=yes
18173 else
18174   echo "$as_me: failed program was:" >&5
18175 sed 's/^/| /' conftest.$ac_ext >&5
18176
18177 ac_cv_member_sg_io_hdr_t_interface_id=no
18178 fi
18179 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18180 fi
18181 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18182 fi
18183 echo "$as_me:$LINENO: result: $ac_cv_member_sg_io_hdr_t_interface_id" >&5
18184 echo "${ECHO_T}$ac_cv_member_sg_io_hdr_t_interface_id" >&6
18185 if test $ac_cv_member_sg_io_hdr_t_interface_id = yes; then
18186
18187 cat >>confdefs.h <<_ACEOF
18188 #define HAVE_SG_IO_HDR_T_INTERFACE_ID 1
18189 _ACEOF
18190
18191
18192 fi
18193
18194
18195 echo "$as_me:$LINENO: checking for siginfo_t.si_fd" >&5
18196 echo $ECHO_N "checking for siginfo_t.si_fd... $ECHO_C" >&6
18197 if test "${ac_cv_member_siginfo_t_si_fd+set}" = set; then
18198   echo $ECHO_N "(cached) $ECHO_C" >&6
18199 else
18200   cat >conftest.$ac_ext <<_ACEOF
18201 /* confdefs.h.  */
18202 _ACEOF
18203 cat confdefs.h >>conftest.$ac_ext
18204 cat >>conftest.$ac_ext <<_ACEOF
18205 /* end confdefs.h.  */
18206 #include <signal.h>
18207
18208 int
18209 main ()
18210 {
18211 static siginfo_t ac_aggr;
18212 if (ac_aggr.si_fd)
18213 return 0;
18214   ;
18215   return 0;
18216 }
18217 _ACEOF
18218 rm -f conftest.$ac_objext
18219 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18220   (eval $ac_compile) 2>conftest.er1
18221   ac_status=$?
18222   grep -v '^ *+' conftest.er1 >conftest.err
18223   rm -f conftest.er1
18224   cat conftest.err >&5
18225   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18226   (exit $ac_status); } &&
18227          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
18228   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18229   (eval $ac_try) 2>&5
18230   ac_status=$?
18231   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18232   (exit $ac_status); }; } &&
18233          { ac_try='test -s conftest.$ac_objext'
18234   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18235   (eval $ac_try) 2>&5
18236   ac_status=$?
18237   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18238   (exit $ac_status); }; }; then
18239   ac_cv_member_siginfo_t_si_fd=yes
18240 else
18241   echo "$as_me: failed program was:" >&5
18242 sed 's/^/| /' conftest.$ac_ext >&5
18243
18244 cat >conftest.$ac_ext <<_ACEOF
18245 /* confdefs.h.  */
18246 _ACEOF
18247 cat confdefs.h >>conftest.$ac_ext
18248 cat >>conftest.$ac_ext <<_ACEOF
18249 /* end confdefs.h.  */
18250 #include <signal.h>
18251
18252 int
18253 main ()
18254 {
18255 static siginfo_t ac_aggr;
18256 if (sizeof ac_aggr.si_fd)
18257 return 0;
18258   ;
18259   return 0;
18260 }
18261 _ACEOF
18262 rm -f conftest.$ac_objext
18263 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18264   (eval $ac_compile) 2>conftest.er1
18265   ac_status=$?
18266   grep -v '^ *+' conftest.er1 >conftest.err
18267   rm -f conftest.er1
18268   cat conftest.err >&5
18269   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18270   (exit $ac_status); } &&
18271          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
18272   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18273   (eval $ac_try) 2>&5
18274   ac_status=$?
18275   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18276   (exit $ac_status); }; } &&
18277          { ac_try='test -s conftest.$ac_objext'
18278   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18279   (eval $ac_try) 2>&5
18280   ac_status=$?
18281   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18282   (exit $ac_status); }; }; then
18283   ac_cv_member_siginfo_t_si_fd=yes
18284 else
18285   echo "$as_me: failed program was:" >&5
18286 sed 's/^/| /' conftest.$ac_ext >&5
18287
18288 ac_cv_member_siginfo_t_si_fd=no
18289 fi
18290 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18291 fi
18292 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18293 fi
18294 echo "$as_me:$LINENO: result: $ac_cv_member_siginfo_t_si_fd" >&5
18295 echo "${ECHO_T}$ac_cv_member_siginfo_t_si_fd" >&6
18296 if test $ac_cv_member_siginfo_t_si_fd = yes; then
18297
18298 cat >>confdefs.h <<_ACEOF
18299 #define HAVE_SIGINFO_T_SI_FD 1
18300 _ACEOF
18301
18302
18303 fi
18304
18305
18306 echo "$as_me:$LINENO: checking for struct mtget.mt_blksiz" >&5
18307 echo $ECHO_N "checking for struct mtget.mt_blksiz... $ECHO_C" >&6
18308 if test "${ac_cv_member_struct_mtget_mt_blksiz+set}" = set; then
18309   echo $ECHO_N "(cached) $ECHO_C" >&6
18310 else
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_MTIO_H
18319 #include <sys/mtio.h>
18320 #endif
18321
18322 int
18323 main ()
18324 {
18325 static struct mtget ac_aggr;
18326 if (ac_aggr.mt_blksiz)
18327 return 0;
18328   ;
18329   return 0;
18330 }
18331 _ACEOF
18332 rm -f conftest.$ac_objext
18333 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18334   (eval $ac_compile) 2>conftest.er1
18335   ac_status=$?
18336   grep -v '^ *+' conftest.er1 >conftest.err
18337   rm -f conftest.er1
18338   cat conftest.err >&5
18339   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18340   (exit $ac_status); } &&
18341          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
18342   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18343   (eval $ac_try) 2>&5
18344   ac_status=$?
18345   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18346   (exit $ac_status); }; } &&
18347          { ac_try='test -s conftest.$ac_objext'
18348   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18349   (eval $ac_try) 2>&5
18350   ac_status=$?
18351   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18352   (exit $ac_status); }; }; then
18353   ac_cv_member_struct_mtget_mt_blksiz=yes
18354 else
18355   echo "$as_me: failed program was:" >&5
18356 sed 's/^/| /' conftest.$ac_ext >&5
18357
18358 cat >conftest.$ac_ext <<_ACEOF
18359 /* confdefs.h.  */
18360 _ACEOF
18361 cat confdefs.h >>conftest.$ac_ext
18362 cat >>conftest.$ac_ext <<_ACEOF
18363 /* end confdefs.h.  */
18364 #include <sys/types.h>
18365 #ifdef HAVE_SYS_MTIO_H
18366 #include <sys/mtio.h>
18367 #endif
18368
18369 int
18370 main ()
18371 {
18372 static struct mtget ac_aggr;
18373 if (sizeof ac_aggr.mt_blksiz)
18374 return 0;
18375   ;
18376   return 0;
18377 }
18378 _ACEOF
18379 rm -f conftest.$ac_objext
18380 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18381   (eval $ac_compile) 2>conftest.er1
18382   ac_status=$?
18383   grep -v '^ *+' conftest.er1 >conftest.err
18384   rm -f conftest.er1
18385   cat conftest.err >&5
18386   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18387   (exit $ac_status); } &&
18388          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
18389   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18390   (eval $ac_try) 2>&5
18391   ac_status=$?
18392   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18393   (exit $ac_status); }; } &&
18394          { ac_try='test -s conftest.$ac_objext'
18395   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18396   (eval $ac_try) 2>&5
18397   ac_status=$?
18398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18399   (exit $ac_status); }; }; then
18400   ac_cv_member_struct_mtget_mt_blksiz=yes
18401 else
18402   echo "$as_me: failed program was:" >&5
18403 sed 's/^/| /' conftest.$ac_ext >&5
18404
18405 ac_cv_member_struct_mtget_mt_blksiz=no
18406 fi
18407 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18408 fi
18409 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18410 fi
18411 echo "$as_me:$LINENO: result: $ac_cv_member_struct_mtget_mt_blksiz" >&5
18412 echo "${ECHO_T}$ac_cv_member_struct_mtget_mt_blksiz" >&6
18413 if test $ac_cv_member_struct_mtget_mt_blksiz = yes; then
18414
18415 cat >>confdefs.h <<_ACEOF
18416 #define HAVE_STRUCT_MTGET_MT_BLKSIZ 1
18417 _ACEOF
18418
18419
18420 fi
18421 echo "$as_me:$LINENO: checking for struct mtget.mt_gstat" >&5
18422 echo $ECHO_N "checking for struct mtget.mt_gstat... $ECHO_C" >&6
18423 if test "${ac_cv_member_struct_mtget_mt_gstat+set}" = set; then
18424   echo $ECHO_N "(cached) $ECHO_C" >&6
18425 else
18426   cat >conftest.$ac_ext <<_ACEOF
18427 /* confdefs.h.  */
18428 _ACEOF
18429 cat confdefs.h >>conftest.$ac_ext
18430 cat >>conftest.$ac_ext <<_ACEOF
18431 /* end confdefs.h.  */
18432 #include <sys/types.h>
18433 #ifdef HAVE_SYS_MTIO_H
18434 #include <sys/mtio.h>
18435 #endif
18436
18437 int
18438 main ()
18439 {
18440 static struct mtget ac_aggr;
18441 if (ac_aggr.mt_gstat)
18442 return 0;
18443   ;
18444   return 0;
18445 }
18446 _ACEOF
18447 rm -f conftest.$ac_objext
18448 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18449   (eval $ac_compile) 2>conftest.er1
18450   ac_status=$?
18451   grep -v '^ *+' conftest.er1 >conftest.err
18452   rm -f conftest.er1
18453   cat conftest.err >&5
18454   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18455   (exit $ac_status); } &&
18456          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
18457   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18458   (eval $ac_try) 2>&5
18459   ac_status=$?
18460   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18461   (exit $ac_status); }; } &&
18462          { ac_try='test -s conftest.$ac_objext'
18463   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18464   (eval $ac_try) 2>&5
18465   ac_status=$?
18466   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18467   (exit $ac_status); }; }; then
18468   ac_cv_member_struct_mtget_mt_gstat=yes
18469 else
18470   echo "$as_me: failed program was:" >&5
18471 sed 's/^/| /' conftest.$ac_ext >&5
18472
18473 cat >conftest.$ac_ext <<_ACEOF
18474 /* confdefs.h.  */
18475 _ACEOF
18476 cat confdefs.h >>conftest.$ac_ext
18477 cat >>conftest.$ac_ext <<_ACEOF
18478 /* end confdefs.h.  */
18479 #include <sys/types.h>
18480 #ifdef HAVE_SYS_MTIO_H
18481 #include <sys/mtio.h>
18482 #endif
18483
18484 int
18485 main ()
18486 {
18487 static struct mtget ac_aggr;
18488 if (sizeof ac_aggr.mt_gstat)
18489 return 0;
18490   ;
18491   return 0;
18492 }
18493 _ACEOF
18494 rm -f conftest.$ac_objext
18495 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18496   (eval $ac_compile) 2>conftest.er1
18497   ac_status=$?
18498   grep -v '^ *+' conftest.er1 >conftest.err
18499   rm -f conftest.er1
18500   cat conftest.err >&5
18501   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18502   (exit $ac_status); } &&
18503          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
18504   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18505   (eval $ac_try) 2>&5
18506   ac_status=$?
18507   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18508   (exit $ac_status); }; } &&
18509          { ac_try='test -s conftest.$ac_objext'
18510   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18511   (eval $ac_try) 2>&5
18512   ac_status=$?
18513   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18514   (exit $ac_status); }; }; then
18515   ac_cv_member_struct_mtget_mt_gstat=yes
18516 else
18517   echo "$as_me: failed program was:" >&5
18518 sed 's/^/| /' conftest.$ac_ext >&5
18519
18520 ac_cv_member_struct_mtget_mt_gstat=no
18521 fi
18522 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18523 fi
18524 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18525 fi
18526 echo "$as_me:$LINENO: result: $ac_cv_member_struct_mtget_mt_gstat" >&5
18527 echo "${ECHO_T}$ac_cv_member_struct_mtget_mt_gstat" >&6
18528 if test $ac_cv_member_struct_mtget_mt_gstat = yes; then
18529
18530 cat >>confdefs.h <<_ACEOF
18531 #define HAVE_STRUCT_MTGET_MT_GSTAT 1
18532 _ACEOF
18533
18534
18535 fi
18536 echo "$as_me:$LINENO: checking for struct mtget.mt_blkno" >&5
18537 echo $ECHO_N "checking for struct mtget.mt_blkno... $ECHO_C" >&6
18538 if test "${ac_cv_member_struct_mtget_mt_blkno+set}" = set; then
18539   echo $ECHO_N "(cached) $ECHO_C" >&6
18540 else
18541   cat >conftest.$ac_ext <<_ACEOF
18542 /* confdefs.h.  */
18543 _ACEOF
18544 cat confdefs.h >>conftest.$ac_ext
18545 cat >>conftest.$ac_ext <<_ACEOF
18546 /* end confdefs.h.  */
18547 #include <sys/types.h>
18548 #ifdef HAVE_SYS_MTIO_H
18549 #include <sys/mtio.h>
18550 #endif
18551
18552 int
18553 main ()
18554 {
18555 static struct mtget ac_aggr;
18556 if (ac_aggr.mt_blkno)
18557 return 0;
18558   ;
18559   return 0;
18560 }
18561 _ACEOF
18562 rm -f conftest.$ac_objext
18563 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18564   (eval $ac_compile) 2>conftest.er1
18565   ac_status=$?
18566   grep -v '^ *+' conftest.er1 >conftest.err
18567   rm -f conftest.er1
18568   cat conftest.err >&5
18569   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18570   (exit $ac_status); } &&
18571          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
18572   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18573   (eval $ac_try) 2>&5
18574   ac_status=$?
18575   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18576   (exit $ac_status); }; } &&
18577          { ac_try='test -s conftest.$ac_objext'
18578   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18579   (eval $ac_try) 2>&5
18580   ac_status=$?
18581   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18582   (exit $ac_status); }; }; then
18583   ac_cv_member_struct_mtget_mt_blkno=yes
18584 else
18585   echo "$as_me: failed program was:" >&5
18586 sed 's/^/| /' conftest.$ac_ext >&5
18587
18588 cat >conftest.$ac_ext <<_ACEOF
18589 /* confdefs.h.  */
18590 _ACEOF
18591 cat confdefs.h >>conftest.$ac_ext
18592 cat >>conftest.$ac_ext <<_ACEOF
18593 /* end confdefs.h.  */
18594 #include <sys/types.h>
18595 #ifdef HAVE_SYS_MTIO_H
18596 #include <sys/mtio.h>
18597 #endif
18598
18599 int
18600 main ()
18601 {
18602 static struct mtget ac_aggr;
18603 if (sizeof ac_aggr.mt_blkno)
18604 return 0;
18605   ;
18606   return 0;
18607 }
18608 _ACEOF
18609 rm -f conftest.$ac_objext
18610 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18611   (eval $ac_compile) 2>conftest.er1
18612   ac_status=$?
18613   grep -v '^ *+' conftest.er1 >conftest.err
18614   rm -f conftest.er1
18615   cat conftest.err >&5
18616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18617   (exit $ac_status); } &&
18618          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
18619   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18620   (eval $ac_try) 2>&5
18621   ac_status=$?
18622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18623   (exit $ac_status); }; } &&
18624          { ac_try='test -s conftest.$ac_objext'
18625   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18626   (eval $ac_try) 2>&5
18627   ac_status=$?
18628   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18629   (exit $ac_status); }; }; then
18630   ac_cv_member_struct_mtget_mt_blkno=yes
18631 else
18632   echo "$as_me: failed program was:" >&5
18633 sed 's/^/| /' conftest.$ac_ext >&5
18634
18635 ac_cv_member_struct_mtget_mt_blkno=no
18636 fi
18637 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18638 fi
18639 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18640 fi
18641 echo "$as_me:$LINENO: result: $ac_cv_member_struct_mtget_mt_blkno" >&5
18642 echo "${ECHO_T}$ac_cv_member_struct_mtget_mt_blkno" >&6
18643 if test $ac_cv_member_struct_mtget_mt_blkno = yes; then
18644
18645 cat >>confdefs.h <<_ACEOF
18646 #define HAVE_STRUCT_MTGET_MT_BLKNO 1
18647 _ACEOF
18648
18649
18650 fi
18651
18652
18653 echo "$as_me:$LINENO: checking for struct option.name" >&5
18654 echo $ECHO_N "checking for struct option.name... $ECHO_C" >&6
18655 if test "${ac_cv_member_struct_option_name+set}" = set; then
18656   echo $ECHO_N "(cached) $ECHO_C" >&6
18657 else
18658   cat >conftest.$ac_ext <<_ACEOF
18659 /* confdefs.h.  */
18660 _ACEOF
18661 cat confdefs.h >>conftest.$ac_ext
18662 cat >>conftest.$ac_ext <<_ACEOF
18663 /* end confdefs.h.  */
18664 #ifdef HAVE_GETOPT_H
18665 #include <getopt.h>
18666 #endif
18667
18668 int
18669 main ()
18670 {
18671 static struct option ac_aggr;
18672 if (ac_aggr.name)
18673 return 0;
18674   ;
18675   return 0;
18676 }
18677 _ACEOF
18678 rm -f conftest.$ac_objext
18679 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18680   (eval $ac_compile) 2>conftest.er1
18681   ac_status=$?
18682   grep -v '^ *+' conftest.er1 >conftest.err
18683   rm -f conftest.er1
18684   cat conftest.err >&5
18685   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18686   (exit $ac_status); } &&
18687          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
18688   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18689   (eval $ac_try) 2>&5
18690   ac_status=$?
18691   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18692   (exit $ac_status); }; } &&
18693          { ac_try='test -s conftest.$ac_objext'
18694   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18695   (eval $ac_try) 2>&5
18696   ac_status=$?
18697   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18698   (exit $ac_status); }; }; then
18699   ac_cv_member_struct_option_name=yes
18700 else
18701   echo "$as_me: failed program was:" >&5
18702 sed 's/^/| /' conftest.$ac_ext >&5
18703
18704 cat >conftest.$ac_ext <<_ACEOF
18705 /* confdefs.h.  */
18706 _ACEOF
18707 cat confdefs.h >>conftest.$ac_ext
18708 cat >>conftest.$ac_ext <<_ACEOF
18709 /* end confdefs.h.  */
18710 #ifdef HAVE_GETOPT_H
18711 #include <getopt.h>
18712 #endif
18713
18714 int
18715 main ()
18716 {
18717 static struct option ac_aggr;
18718 if (sizeof ac_aggr.name)
18719 return 0;
18720   ;
18721   return 0;
18722 }
18723 _ACEOF
18724 rm -f conftest.$ac_objext
18725 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18726   (eval $ac_compile) 2>conftest.er1
18727   ac_status=$?
18728   grep -v '^ *+' conftest.er1 >conftest.err
18729   rm -f conftest.er1
18730   cat conftest.err >&5
18731   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18732   (exit $ac_status); } &&
18733          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
18734   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18735   (eval $ac_try) 2>&5
18736   ac_status=$?
18737   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18738   (exit $ac_status); }; } &&
18739          { ac_try='test -s conftest.$ac_objext'
18740   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18741   (eval $ac_try) 2>&5
18742   ac_status=$?
18743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18744   (exit $ac_status); }; }; then
18745   ac_cv_member_struct_option_name=yes
18746 else
18747   echo "$as_me: failed program was:" >&5
18748 sed 's/^/| /' conftest.$ac_ext >&5
18749
18750 ac_cv_member_struct_option_name=no
18751 fi
18752 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18753 fi
18754 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18755 fi
18756 echo "$as_me:$LINENO: result: $ac_cv_member_struct_option_name" >&5
18757 echo "${ECHO_T}$ac_cv_member_struct_option_name" >&6
18758 if test $ac_cv_member_struct_option_name = yes; then
18759
18760 cat >>confdefs.h <<_ACEOF
18761 #define HAVE_STRUCT_OPTION_NAME 1
18762 _ACEOF
18763
18764
18765 fi
18766
18767
18768 echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
18769 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
18770 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
18771   echo $ECHO_N "(cached) $ECHO_C" >&6
18772 else
18773   cat >conftest.$ac_ext <<_ACEOF
18774 /* confdefs.h.  */
18775 _ACEOF
18776 cat confdefs.h >>conftest.$ac_ext
18777 cat >>conftest.$ac_ext <<_ACEOF
18778 /* end confdefs.h.  */
18779 $ac_includes_default
18780 int
18781 main ()
18782 {
18783 static struct stat ac_aggr;
18784 if (ac_aggr.st_blocks)
18785 return 0;
18786   ;
18787   return 0;
18788 }
18789 _ACEOF
18790 rm -f conftest.$ac_objext
18791 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18792   (eval $ac_compile) 2>conftest.er1
18793   ac_status=$?
18794   grep -v '^ *+' conftest.er1 >conftest.err
18795   rm -f conftest.er1
18796   cat conftest.err >&5
18797   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18798   (exit $ac_status); } &&
18799          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
18800   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18801   (eval $ac_try) 2>&5
18802   ac_status=$?
18803   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18804   (exit $ac_status); }; } &&
18805          { ac_try='test -s conftest.$ac_objext'
18806   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18807   (eval $ac_try) 2>&5
18808   ac_status=$?
18809   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18810   (exit $ac_status); }; }; then
18811   ac_cv_member_struct_stat_st_blocks=yes
18812 else
18813   echo "$as_me: failed program was:" >&5
18814 sed 's/^/| /' conftest.$ac_ext >&5
18815
18816 cat >conftest.$ac_ext <<_ACEOF
18817 /* confdefs.h.  */
18818 _ACEOF
18819 cat confdefs.h >>conftest.$ac_ext
18820 cat >>conftest.$ac_ext <<_ACEOF
18821 /* end confdefs.h.  */
18822 $ac_includes_default
18823 int
18824 main ()
18825 {
18826 static struct stat ac_aggr;
18827 if (sizeof ac_aggr.st_blocks)
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_stat_st_blocks=yes
18855 else
18856   echo "$as_me: failed program was:" >&5
18857 sed 's/^/| /' conftest.$ac_ext >&5
18858
18859 ac_cv_member_struct_stat_st_blocks=no
18860 fi
18861 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18862 fi
18863 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18864 fi
18865 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
18866 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
18867 if test $ac_cv_member_struct_stat_st_blocks = yes; then
18868
18869 cat >>confdefs.h <<_ACEOF
18870 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
18871 _ACEOF
18872
18873
18874 fi
18875
18876
18877 echo "$as_me:$LINENO: checking for struct sockaddr_in6.sin6_scope_id" >&5
18878 echo $ECHO_N "checking for struct sockaddr_in6.sin6_scope_id... $ECHO_C" >&6
18879 if test "${ac_cv_member_struct_sockaddr_in6_sin6_scope_id+set}" = set; then
18880   echo $ECHO_N "(cached) $ECHO_C" >&6
18881 else
18882   cat >conftest.$ac_ext <<_ACEOF
18883 /* confdefs.h.  */
18884 _ACEOF
18885 cat confdefs.h >>conftest.$ac_ext
18886 cat >>conftest.$ac_ext <<_ACEOF
18887 /* end confdefs.h.  */
18888 #ifdef HAVE_SYS_TYPES_H
18889 #include <sys/types.h>
18890 #endif
18891 #ifdef HAVE_NETINET_IN_H
18892 #include <netinet/in.h>
18893 #endif
18894
18895 int
18896 main ()
18897 {
18898 static struct sockaddr_in6 ac_aggr;
18899 if (ac_aggr.sin6_scope_id)
18900 return 0;
18901   ;
18902   return 0;
18903 }
18904 _ACEOF
18905 rm -f conftest.$ac_objext
18906 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18907   (eval $ac_compile) 2>conftest.er1
18908   ac_status=$?
18909   grep -v '^ *+' conftest.er1 >conftest.err
18910   rm -f conftest.er1
18911   cat conftest.err >&5
18912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18913   (exit $ac_status); } &&
18914          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
18915   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18916   (eval $ac_try) 2>&5
18917   ac_status=$?
18918   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18919   (exit $ac_status); }; } &&
18920          { ac_try='test -s conftest.$ac_objext'
18921   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18922   (eval $ac_try) 2>&5
18923   ac_status=$?
18924   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18925   (exit $ac_status); }; }; then
18926   ac_cv_member_struct_sockaddr_in6_sin6_scope_id=yes
18927 else
18928   echo "$as_me: failed program was:" >&5
18929 sed 's/^/| /' conftest.$ac_ext >&5
18930
18931 cat >conftest.$ac_ext <<_ACEOF
18932 /* confdefs.h.  */
18933 _ACEOF
18934 cat confdefs.h >>conftest.$ac_ext
18935 cat >>conftest.$ac_ext <<_ACEOF
18936 /* end confdefs.h.  */
18937 #ifdef HAVE_SYS_TYPES_H
18938 #include <sys/types.h>
18939 #endif
18940 #ifdef HAVE_NETINET_IN_H
18941 #include <netinet/in.h>
18942 #endif
18943
18944 int
18945 main ()
18946 {
18947 static struct sockaddr_in6 ac_aggr;
18948 if (sizeof ac_aggr.sin6_scope_id)
18949 return 0;
18950   ;
18951   return 0;
18952 }
18953 _ACEOF
18954 rm -f conftest.$ac_objext
18955 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18956   (eval $ac_compile) 2>conftest.er1
18957   ac_status=$?
18958   grep -v '^ *+' conftest.er1 >conftest.err
18959   rm -f conftest.er1
18960   cat conftest.err >&5
18961   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18962   (exit $ac_status); } &&
18963          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
18964   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18965   (eval $ac_try) 2>&5
18966   ac_status=$?
18967   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18968   (exit $ac_status); }; } &&
18969          { ac_try='test -s conftest.$ac_objext'
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); }; }; then
18975   ac_cv_member_struct_sockaddr_in6_sin6_scope_id=yes
18976 else
18977   echo "$as_me: failed program was:" >&5
18978 sed 's/^/| /' conftest.$ac_ext >&5
18979
18980 ac_cv_member_struct_sockaddr_in6_sin6_scope_id=no
18981 fi
18982 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18983 fi
18984 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18985 fi
18986 echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_in6_sin6_scope_id" >&5
18987 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_in6_sin6_scope_id" >&6
18988 if test $ac_cv_member_struct_sockaddr_in6_sin6_scope_id = yes; then
18989
18990 cat >>confdefs.h <<_ACEOF
18991 #define HAVE_STRUCT_SOCKADDR_IN6_SIN6_SCOPE_ID 1
18992 _ACEOF
18993
18994
18995 fi
18996
18997
18998 echo "$as_me:$LINENO: checking for timezone variable" >&5
18999 echo $ECHO_N "checking for timezone variable... $ECHO_C" >&6
19000 if test "${ac_cv_have_timezone+set}" = set; then
19001   echo $ECHO_N "(cached) $ECHO_C" >&6
19002 else
19003   cat >conftest.$ac_ext <<_ACEOF
19004 /* confdefs.h.  */
19005 _ACEOF
19006 cat confdefs.h >>conftest.$ac_ext
19007 cat >>conftest.$ac_ext <<_ACEOF
19008 /* end confdefs.h.  */
19009 #include <time.h>
19010 int
19011 main ()
19012 {
19013 timezone;
19014   ;
19015   return 0;
19016 }
19017 _ACEOF
19018 rm -f conftest.$ac_objext conftest$ac_exeext
19019 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19020   (eval $ac_link) 2>conftest.er1
19021   ac_status=$?
19022   grep -v '^ *+' conftest.er1 >conftest.err
19023   rm -f conftest.er1
19024   cat conftest.err >&5
19025   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19026   (exit $ac_status); } &&
19027          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
19028   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19029   (eval $ac_try) 2>&5
19030   ac_status=$?
19031   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19032   (exit $ac_status); }; } &&
19033          { ac_try='test -s conftest$ac_exeext'
19034   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19035   (eval $ac_try) 2>&5
19036   ac_status=$?
19037   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19038   (exit $ac_status); }; }; then
19039   ac_cv_have_timezone="yes"
19040 else
19041   echo "$as_me: failed program was:" >&5
19042 sed 's/^/| /' conftest.$ac_ext >&5
19043
19044 ac_cv_have_timezone="no"
19045 fi
19046 rm -f conftest.err conftest.$ac_objext \
19047       conftest$ac_exeext conftest.$ac_ext
19048 fi
19049 echo "$as_me:$LINENO: result: $ac_cv_have_timezone" >&5
19050 echo "${ECHO_T}$ac_cv_have_timezone" >&6
19051 if test "$ac_cv_have_timezone" = "yes"
19052 then
19053
19054 cat >>confdefs.h <<\_ACEOF
19055 #define HAVE_TIMEZONE 1
19056 _ACEOF
19057
19058 fi
19059 echo "$as_me:$LINENO: checking for daylight variable" >&5
19060 echo $ECHO_N "checking for daylight variable... $ECHO_C" >&6
19061 if test "${ac_cv_have_daylight+set}" = set; then
19062   echo $ECHO_N "(cached) $ECHO_C" >&6
19063 else
19064   cat >conftest.$ac_ext <<_ACEOF
19065 /* confdefs.h.  */
19066 _ACEOF
19067 cat confdefs.h >>conftest.$ac_ext
19068 cat >>conftest.$ac_ext <<_ACEOF
19069 /* end confdefs.h.  */
19070 #include <time.h>
19071 int
19072 main ()
19073 {
19074 daylight;
19075   ;
19076   return 0;
19077 }
19078 _ACEOF
19079 rm -f conftest.$ac_objext conftest$ac_exeext
19080 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19081   (eval $ac_link) 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_exeext'
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_have_daylight="yes"
19101 else
19102   echo "$as_me: failed program was:" >&5
19103 sed 's/^/| /' conftest.$ac_ext >&5
19104
19105 ac_cv_have_daylight="no"
19106 fi
19107 rm -f conftest.err conftest.$ac_objext \
19108       conftest$ac_exeext conftest.$ac_ext
19109 fi
19110 echo "$as_me:$LINENO: result: $ac_cv_have_daylight" >&5
19111 echo "${ECHO_T}$ac_cv_have_daylight" >&6
19112 if test "$ac_cv_have_daylight" = "yes"
19113 then
19114
19115 cat >>confdefs.h <<\_ACEOF
19116 #define HAVE_DAYLIGHT 1
19117 _ACEOF
19118
19119 fi
19120
19121
19122 case $host_cpu in
19123   *i[3456789]86*) echo "$as_me:$LINENO: checking whether we need to define __i386__" >&5
19124 echo $ECHO_N "checking whether we need to define __i386__... $ECHO_C" >&6
19125 if test "${ac_cv_cpp_def___i386__+set}" = set; then
19126   echo $ECHO_N "(cached) $ECHO_C" >&6
19127 else
19128   cat >conftest.$ac_ext <<_ACEOF
19129 /* confdefs.h.  */
19130 _ACEOF
19131 cat confdefs.h >>conftest.$ac_ext
19132 cat >>conftest.$ac_ext <<_ACEOF
19133 /* end confdefs.h.  */
19134 #ifndef __i386__
19135 yes
19136 #endif
19137 _ACEOF
19138 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19139   $EGREP "yes" >/dev/null 2>&1; then
19140   ac_cv_cpp_def___i386__=yes
19141 else
19142   ac_cv_cpp_def___i386__=no
19143 fi
19144 rm -f conftest*
19145
19146 fi
19147 echo "$as_me:$LINENO: result: $ac_cv_cpp_def___i386__" >&5
19148 echo "${ECHO_T}$ac_cv_cpp_def___i386__" >&6
19149 if test $ac_cv_cpp_def___i386__ = yes; then
19150   CFLAGS="$CFLAGS -D__i386__"
19151   LINTFLAGS="$LINTFLAGS -D__i386__"
19152 fi
19153  ;;
19154   *x86_64*)         echo "$as_me:$LINENO: checking whether we need to define __x86_64__" >&5
19155 echo $ECHO_N "checking whether we need to define __x86_64__... $ECHO_C" >&6
19156 if test "${ac_cv_cpp_def___x86_64__+set}" = set; then
19157   echo $ECHO_N "(cached) $ECHO_C" >&6
19158 else
19159   cat >conftest.$ac_ext <<_ACEOF
19160 /* confdefs.h.  */
19161 _ACEOF
19162 cat confdefs.h >>conftest.$ac_ext
19163 cat >>conftest.$ac_ext <<_ACEOF
19164 /* end confdefs.h.  */
19165 #ifndef __x86_64__
19166 yes
19167 #endif
19168 _ACEOF
19169 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19170   $EGREP "yes" >/dev/null 2>&1; then
19171   ac_cv_cpp_def___x86_64__=yes
19172 else
19173   ac_cv_cpp_def___x86_64__=no
19174 fi
19175 rm -f conftest*
19176
19177 fi
19178 echo "$as_me:$LINENO: result: $ac_cv_cpp_def___x86_64__" >&5
19179 echo "${ECHO_T}$ac_cv_cpp_def___x86_64__" >&6
19180 if test $ac_cv_cpp_def___x86_64__ = yes; then
19181   CFLAGS="$CFLAGS -D__x86_64__"
19182   LINTFLAGS="$LINTFLAGS -D__x86_64__"
19183 fi
19184  ;;
19185   *alpha*)          echo "$as_me:$LINENO: checking whether we need to define __ALPHA__" >&5
19186 echo $ECHO_N "checking whether we need to define __ALPHA__... $ECHO_C" >&6
19187 if test "${ac_cv_cpp_def___ALPHA__+set}" = set; then
19188   echo $ECHO_N "(cached) $ECHO_C" >&6
19189 else
19190   cat >conftest.$ac_ext <<_ACEOF
19191 /* confdefs.h.  */
19192 _ACEOF
19193 cat confdefs.h >>conftest.$ac_ext
19194 cat >>conftest.$ac_ext <<_ACEOF
19195 /* end confdefs.h.  */
19196 #ifndef __ALPHA__
19197 yes
19198 #endif
19199 _ACEOF
19200 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19201   $EGREP "yes" >/dev/null 2>&1; then
19202   ac_cv_cpp_def___ALPHA__=yes
19203 else
19204   ac_cv_cpp_def___ALPHA__=no
19205 fi
19206 rm -f conftest*
19207
19208 fi
19209 echo "$as_me:$LINENO: result: $ac_cv_cpp_def___ALPHA__" >&5
19210 echo "${ECHO_T}$ac_cv_cpp_def___ALPHA__" >&6
19211 if test $ac_cv_cpp_def___ALPHA__ = yes; then
19212   CFLAGS="$CFLAGS -D__ALPHA__"
19213   LINTFLAGS="$LINTFLAGS -D__ALPHA__"
19214 fi
19215  ;;
19216   *sparc*)          echo "$as_me:$LINENO: checking whether we need to define __sparc__" >&5
19217 echo $ECHO_N "checking whether we need to define __sparc__... $ECHO_C" >&6
19218 if test "${ac_cv_cpp_def___sparc__+set}" = set; then
19219   echo $ECHO_N "(cached) $ECHO_C" >&6
19220 else
19221   cat >conftest.$ac_ext <<_ACEOF
19222 /* confdefs.h.  */
19223 _ACEOF
19224 cat confdefs.h >>conftest.$ac_ext
19225 cat >>conftest.$ac_ext <<_ACEOF
19226 /* end confdefs.h.  */
19227 #ifndef __sparc__
19228 yes
19229 #endif
19230 _ACEOF
19231 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19232   $EGREP "yes" >/dev/null 2>&1; then
19233   ac_cv_cpp_def___sparc__=yes
19234 else
19235   ac_cv_cpp_def___sparc__=no
19236 fi
19237 rm -f conftest*
19238
19239 fi
19240 echo "$as_me:$LINENO: result: $ac_cv_cpp_def___sparc__" >&5
19241 echo "${ECHO_T}$ac_cv_cpp_def___sparc__" >&6
19242 if test $ac_cv_cpp_def___sparc__ = yes; then
19243   CFLAGS="$CFLAGS -D__sparc__"
19244   LINTFLAGS="$LINTFLAGS -D__sparc__"
19245 fi
19246  ;;
19247   *powerpc*)        echo "$as_me:$LINENO: checking whether we need to define __powerpc__" >&5
19248 echo $ECHO_N "checking whether we need to define __powerpc__... $ECHO_C" >&6
19249 if test "${ac_cv_cpp_def___powerpc__+set}" = set; then
19250   echo $ECHO_N "(cached) $ECHO_C" >&6
19251 else
19252   cat >conftest.$ac_ext <<_ACEOF
19253 /* confdefs.h.  */
19254 _ACEOF
19255 cat confdefs.h >>conftest.$ac_ext
19256 cat >>conftest.$ac_ext <<_ACEOF
19257 /* end confdefs.h.  */
19258 #ifndef __powerpc__
19259 yes
19260 #endif
19261 _ACEOF
19262 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19263   $EGREP "yes" >/dev/null 2>&1; then
19264   ac_cv_cpp_def___powerpc__=yes
19265 else
19266   ac_cv_cpp_def___powerpc__=no
19267 fi
19268 rm -f conftest*
19269
19270 fi
19271 echo "$as_me:$LINENO: result: $ac_cv_cpp_def___powerpc__" >&5
19272 echo "${ECHO_T}$ac_cv_cpp_def___powerpc__" >&6
19273 if test $ac_cv_cpp_def___powerpc__ = yes; then
19274   CFLAGS="$CFLAGS -D__powerpc__"
19275   LINTFLAGS="$LINTFLAGS -D__powerpc__"
19276 fi
19277  ;;
19278 esac
19279
19280 case $host_vendor in
19281   *sun*) echo "$as_me:$LINENO: checking whether we need to define __sun__" >&5
19282 echo $ECHO_N "checking whether we need to define __sun__... $ECHO_C" >&6
19283 if test "${ac_cv_cpp_def___sun__+set}" = set; then
19284   echo $ECHO_N "(cached) $ECHO_C" >&6
19285 else
19286   cat >conftest.$ac_ext <<_ACEOF
19287 /* confdefs.h.  */
19288 _ACEOF
19289 cat confdefs.h >>conftest.$ac_ext
19290 cat >>conftest.$ac_ext <<_ACEOF
19291 /* end confdefs.h.  */
19292 #ifndef __sun__
19293 yes
19294 #endif
19295 _ACEOF
19296 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19297   $EGREP "yes" >/dev/null 2>&1; then
19298   ac_cv_cpp_def___sun__=yes
19299 else
19300   ac_cv_cpp_def___sun__=no
19301 fi
19302 rm -f conftest*
19303
19304 fi
19305 echo "$as_me:$LINENO: result: $ac_cv_cpp_def___sun__" >&5
19306 echo "${ECHO_T}$ac_cv_cpp_def___sun__" >&6
19307 if test $ac_cv_cpp_def___sun__ = yes; then
19308   CFLAGS="$CFLAGS -D__sun__"
19309   LINTFLAGS="$LINTFLAGS -D__sun__"
19310 fi
19311  ;;
19312 esac
19313
19314
19315
19316
19317
19318           ac_config_commands="$ac_config_commands dlls/gdi/enhmfdrv"
19319
19320           ac_config_commands="$ac_config_commands dlls/gdi/mfdrv"
19321
19322           ac_config_commands="$ac_config_commands dlls/kernel/messages"
19323
19324           ac_config_commands="$ac_config_commands dlls/user/resources"
19325
19326           ac_config_commands="$ac_config_commands dlls/wineps/data"
19327
19328           ac_config_commands="$ac_config_commands include/wine"
19329
19330
19331 MAKE_RULES=Make.rules
19332
19333
19334 MAKE_DLL_RULES=dlls/Makedll.rules
19335
19336
19337 MAKE_IMPLIB_RULES=dlls/Makeimplib.rules
19338
19339
19340 MAKE_TEST_RULES=dlls/Maketest.rules
19341
19342
19343 MAKE_LIB_RULES=libs/Makelib.rules
19344
19345
19346 MAKE_PROG_RULES=programs/Makeprog.rules
19347
19348
19349                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       ac_config_files="$ac_config_files Make.rules dlls/Makedll.rules dlls/Makeimplib.rules dlls/Maketest.rules libs/Makelib.rules programs/Makeprog.rules Makefile dlls/Makefile dlls/activeds/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/cabinet/tests/Makefile dlls/capi2032/Makefile dlls/cards/Makefile dlls/cfgmgr32/Makefile dlls/comcat/Makefile dlls/comctl32/Makefile dlls/comctl32/tests/Makefile dlls/comdlg32/Makefile dlls/crtdll/Makefile dlls/crypt32/Makefile dlls/crypt32/tests/Makefile dlls/cryptdll/Makefile dlls/ctl3d32/Makefile dlls/d3d8/Makefile dlls/d3d9/Makefile dlls/d3d9/tests/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/dnsapi/Makefile dlls/dnsapi/tests/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/imaadp32.acm/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/lz32/Makefile dlls/lz32/tests/Makefile dlls/mapi32/Makefile dlls/mapi32/tests/Makefile dlls/mciavi32/Makefile dlls/mcicda/Makefile dlls/mciseq/Makefile dlls/midimap/Makefile dlls/mlang/Makefile dlls/mlang/tests/Makefile dlls/mmdevldr.vxd/Makefile dlls/monodebg.vxd/Makefile dlls/mpr/Makefile dlls/msacm32/Makefile dlls/msacm32/tests/Makefile dlls/msadp32.acm/Makefile dlls/mscms/Makefile dlls/mscms/tests/Makefile dlls/msdmo/Makefile dlls/msftedit/Makefile dlls/msg711.acm/Makefile dlls/mshtml/Makefile dlls/mshtml/tests/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/msvfw32/Makefile dlls/msvidc32/Makefile dlls/mswsock/Makefile dlls/msxml3/Makefile dlls/msxml3/tests/Makefile dlls/netapi32/Makefile dlls/netapi32/tests/Makefile dlls/newdev/Makefile dlls/ntdll/Makefile dlls/ntdll/tests/Makefile dlls/objsel/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/olecli32/Makefile dlls/oledlg/Makefile dlls/olepro32/Makefile dlls/olesvr32/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/riched20/tests/Makefile dlls/riched32/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/secur32/tests/Makefile dlls/security/Makefile dlls/sensapi/Makefile dlls/serialui/Makefile dlls/setupapi/Makefile dlls/setupapi/tests/Makefile dlls/sfc/Makefile dlls/shdocvw/Makefile dlls/shdocvw/tests/Makefile dlls/shell32/Makefile dlls/shell32/tests/Makefile dlls/shfolder/Makefile dlls/shlwapi/Makefile dlls/shlwapi/tests/Makefile dlls/snmpapi/Makefile dlls/spoolss/Makefile dlls/stdole2.tlb/Makefile dlls/stdole32.tlb/Makefile dlls/sti/Makefile dlls/strmiids/Makefile dlls/tapi32/Makefile dlls/twain_32/Makefile dlls/unicows/Makefile dlls/url/Makefile dlls/urlmon/Makefile dlls/urlmon/tests/Makefile dlls/user/Makefile dlls/user/tests/Makefile dlls/usp10/Makefile dlls/usp10/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/w32skrnl/Makefile dlls/winecrt0/Makefile dlls/wined3d/Makefile dlls/winedos/Makefile dlls/winemp3.acm/Makefile dlls/wineps/Makefile dlls/wininet/Makefile dlls/wininet/tests/Makefile dlls/winmm/Makefile dlls/winmm/joystick/Makefile dlls/winmm/mciwave/Makefile dlls/winmm/tests/Makefile dlls/winmm/wavemap/Makefile dlls/winmm/winealsa/Makefile dlls/winmm/winearts/Makefile dlls/winmm/wineaudioio/Makefile dlls/winmm/wineesd/Makefile dlls/winmm/winejack/Makefile dlls/winmm/winenas/Makefile dlls/winmm/wineoss/Makefile dlls/winnls32/Makefile dlls/winspool/Makefile dlls/winspool/tests/Makefile dlls/wintab32/Makefile dlls/wintrust/Makefile dlls/wldap32/Makefile dlls/wnaspi32/Makefile dlls/wow32/Makefile dlls/ws2_32/Makefile dlls/ws2_32/tests/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/clock/Makefile programs/cmdlgtst/Makefile programs/control/Makefile programs/eject/Makefile programs/expand/Makefile programs/explorer/Makefile programs/hh/Makefile programs/icinfo/Makefile programs/iexplore/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 programs/wordpad/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"
19350
19351
19352 cat >confcache <<\_ACEOF
19353 # This file is a shell script that caches the results of configure
19354 # tests run on this system so they can be shared between configure
19355 # scripts and configure runs, see configure's option --config-cache.
19356 # It is not useful on other systems.  If it contains results you don't
19357 # want to keep, you may remove or edit it.
19358 #
19359 # config.status only pays attention to the cache file if you give it
19360 # the --recheck option to rerun configure.
19361 #
19362 # `ac_cv_env_foo' variables (set or unset) will be overridden when
19363 # loading this file, other *unset* `ac_cv_foo' will be assigned the
19364 # following values.
19365
19366 _ACEOF
19367
19368 # The following way of writing the cache mishandles newlines in values,
19369 # but we know of no workaround that is simple, portable, and efficient.
19370 # So, don't put newlines in cache variables' values.
19371 # Ultrix sh set writes to stderr and can't be redirected directly,
19372 # and sets the high bit in the cache file unless we assign to the vars.
19373 {
19374   (set) 2>&1 |
19375     case `(ac_space=' '; set | grep ac_space) 2>&1` in
19376     *ac_space=\ *)
19377       # `set' does not quote correctly, so add quotes (double-quote
19378       # substitution turns \\\\ into \\, and sed turns \\ into \).
19379       sed -n \
19380         "s/'/'\\\\''/g;
19381           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
19382       ;;
19383     *)
19384       # `set' quotes correctly as required by POSIX, so do not add quotes.
19385       sed -n \
19386         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
19387       ;;
19388     esac;
19389 } |
19390   sed '
19391      t clear
19392      : clear
19393      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
19394      t end
19395      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19396      : end' >>confcache
19397 if diff $cache_file confcache >/dev/null 2>&1; then :; else
19398   if test -w $cache_file; then
19399     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
19400     cat confcache >$cache_file
19401   else
19402     echo "not updating unwritable cache $cache_file"
19403   fi
19404 fi
19405 rm -f confcache
19406
19407 test "x$prefix" = xNONE && prefix=$ac_default_prefix
19408 # Let make expand exec_prefix.
19409 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
19410
19411 # VPATH may cause trouble with some makes, so we remove $(srcdir),
19412 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
19413 # trailing colons and then remove the whole line if VPATH becomes empty
19414 # (actually we leave an empty line to preserve line numbers).
19415 if test "x$srcdir" = x.; then
19416   ac_vpsub='/^[  ]*VPATH[        ]*=/{
19417 s/:*\$(srcdir):*/:/;
19418 s/:*\${srcdir}:*/:/;
19419 s/:*@srcdir@:*/:/;
19420 s/^\([^=]*=[     ]*\):*/\1/;
19421 s/:*$//;
19422 s/^[^=]*=[       ]*$//;
19423 }'
19424 fi
19425
19426 DEFS=-DHAVE_CONFIG_H
19427
19428 ac_libobjs=
19429 ac_ltlibobjs=
19430 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
19431   # 1. Remove the extension, and $U if already installed.
19432   ac_i=`echo "$ac_i" |
19433          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
19434   # 2. Add them.
19435   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
19436   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
19437 done
19438 LIBOBJS=$ac_libobjs
19439
19440 LTLIBOBJS=$ac_ltlibobjs
19441
19442
19443
19444 : ${CONFIG_STATUS=./config.status}
19445 ac_clean_files_save=$ac_clean_files
19446 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
19447 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
19448 echo "$as_me: creating $CONFIG_STATUS" >&6;}
19449 cat >$CONFIG_STATUS <<_ACEOF
19450 #! $SHELL
19451 # Generated by $as_me.
19452 # Run this file to recreate the current configuration.
19453 # Compiler output produced by configure, useful for debugging
19454 # configure, is in config.log if it exists.
19455
19456 debug=false
19457 ac_cs_recheck=false
19458 ac_cs_silent=false
19459 SHELL=\${CONFIG_SHELL-$SHELL}
19460 _ACEOF
19461
19462 cat >>$CONFIG_STATUS <<\_ACEOF
19463 ## --------------------- ##
19464 ## M4sh Initialization.  ##
19465 ## --------------------- ##
19466
19467 # Be Bourne compatible
19468 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
19469   emulate sh
19470   NULLCMD=:
19471   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19472   # is contrary to our usage.  Disable this feature.
19473   alias -g '${1+"$@"}'='"$@"'
19474 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
19475   set -o posix
19476 fi
19477 DUALCASE=1; export DUALCASE # for MKS sh
19478
19479 # Support unset when possible.
19480 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
19481   as_unset=unset
19482 else
19483   as_unset=false
19484 fi
19485
19486
19487 # Work around bugs in pre-3.0 UWIN ksh.
19488 $as_unset ENV MAIL MAILPATH
19489 PS1='$ '
19490 PS2='> '
19491 PS4='+ '
19492
19493 # NLS nuisances.
19494 for as_var in \
19495   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
19496   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
19497   LC_TELEPHONE LC_TIME
19498 do
19499   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
19500     eval $as_var=C; export $as_var
19501   else
19502     $as_unset $as_var
19503   fi
19504 done
19505
19506 # Required to use basename.
19507 if expr a : '\(a\)' >/dev/null 2>&1; then
19508   as_expr=expr
19509 else
19510   as_expr=false
19511 fi
19512
19513 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
19514   as_basename=basename
19515 else
19516   as_basename=false
19517 fi
19518
19519
19520 # Name of the executable.
19521 as_me=`$as_basename "$0" ||
19522 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
19523          X"$0" : 'X\(//\)$' \| \
19524          X"$0" : 'X\(/\)$' \| \
19525          .     : '\(.\)' 2>/dev/null ||
19526 echo X/"$0" |
19527     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
19528           /^X\/\(\/\/\)$/{ s//\1/; q; }
19529           /^X\/\(\/\).*/{ s//\1/; q; }
19530           s/.*/./; q'`
19531
19532
19533 # PATH needs CR, and LINENO needs CR and PATH.
19534 # Avoid depending upon Character Ranges.
19535 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
19536 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
19537 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
19538 as_cr_digits='0123456789'
19539 as_cr_alnum=$as_cr_Letters$as_cr_digits
19540
19541 # The user is always right.
19542 if test "${PATH_SEPARATOR+set}" != set; then
19543   echo "#! /bin/sh" >conf$$.sh
19544   echo  "exit 0"   >>conf$$.sh
19545   chmod +x conf$$.sh
19546   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
19547     PATH_SEPARATOR=';'
19548   else
19549     PATH_SEPARATOR=:
19550   fi
19551   rm -f conf$$.sh
19552 fi
19553
19554
19555   as_lineno_1=$LINENO
19556   as_lineno_2=$LINENO
19557   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
19558   test "x$as_lineno_1" != "x$as_lineno_2" &&
19559   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
19560   # Find who we are.  Look in the path if we contain no path at all
19561   # relative or not.
19562   case $0 in
19563     *[\\/]* ) as_myself=$0 ;;
19564     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19565 for as_dir in $PATH
19566 do
19567   IFS=$as_save_IFS
19568   test -z "$as_dir" && as_dir=.
19569   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
19570 done
19571
19572        ;;
19573   esac
19574   # We did not find ourselves, most probably we were run as `sh COMMAND'
19575   # in which case we are not to be found in the path.
19576   if test "x$as_myself" = x; then
19577     as_myself=$0
19578   fi
19579   if test ! -f "$as_myself"; then
19580     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
19581 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
19582    { (exit 1); exit 1; }; }
19583   fi
19584   case $CONFIG_SHELL in
19585   '')
19586     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19587 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
19588 do
19589   IFS=$as_save_IFS
19590   test -z "$as_dir" && as_dir=.
19591   for as_base in sh bash ksh sh5; do
19592          case $as_dir in
19593          /*)
19594            if ("$as_dir/$as_base" -c '
19595   as_lineno_1=$LINENO
19596   as_lineno_2=$LINENO
19597   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
19598   test "x$as_lineno_1" != "x$as_lineno_2" &&
19599   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
19600              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
19601              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
19602              CONFIG_SHELL=$as_dir/$as_base
19603              export CONFIG_SHELL
19604              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
19605            fi;;
19606          esac
19607        done
19608 done
19609 ;;
19610   esac
19611
19612   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
19613   # uniformly replaced by the line number.  The first 'sed' inserts a
19614   # line-number line before each line; the second 'sed' does the real
19615   # work.  The second script uses 'N' to pair each line-number line
19616   # with the numbered line, and appends trailing '-' during
19617   # substitution so that $LINENO is not a special case at line end.
19618   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
19619   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
19620   sed '=' <$as_myself |
19621     sed '
19622       N
19623       s,$,-,
19624       : loop
19625       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
19626       t loop
19627       s,-$,,
19628       s,^['$as_cr_digits']*\n,,
19629     ' >$as_me.lineno &&
19630   chmod +x $as_me.lineno ||
19631     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
19632 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
19633    { (exit 1); exit 1; }; }
19634
19635   # Don't try to exec as it changes $[0], causing all sort of problems
19636   # (the dirname of $[0] is not the place where we might find the
19637   # original and so on.  Autoconf is especially sensible to this).
19638   . ./$as_me.lineno
19639   # Exit status is that of the last command.
19640   exit
19641 }
19642
19643
19644 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
19645   *c*,-n*) ECHO_N= ECHO_C='
19646 ' ECHO_T='      ' ;;
19647   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
19648   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
19649 esac
19650
19651 if expr a : '\(a\)' >/dev/null 2>&1; then
19652   as_expr=expr
19653 else
19654   as_expr=false
19655 fi
19656
19657 rm -f conf$$ conf$$.exe conf$$.file
19658 echo >conf$$.file
19659 if ln -s conf$$.file conf$$ 2>/dev/null; then
19660   # We could just check for DJGPP; but this test a) works b) is more generic
19661   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
19662   if test -f conf$$.exe; then
19663     # Don't use ln at all; we don't have any links
19664     as_ln_s='cp -p'
19665   else
19666     as_ln_s='ln -s'
19667   fi
19668 elif ln conf$$.file conf$$ 2>/dev/null; then
19669   as_ln_s=ln
19670 else
19671   as_ln_s='cp -p'
19672 fi
19673 rm -f conf$$ conf$$.exe conf$$.file
19674
19675 if mkdir -p . 2>/dev/null; then
19676   as_mkdir_p=:
19677 else
19678   test -d ./-p && rmdir ./-p
19679   as_mkdir_p=false
19680 fi
19681
19682 as_executable_p="test -f"
19683
19684 # Sed expression to map a string onto a valid CPP name.
19685 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
19686
19687 # Sed expression to map a string onto a valid variable name.
19688 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
19689
19690
19691 # IFS
19692 # We need space, tab and new line, in precisely that order.
19693 as_nl='
19694 '
19695 IFS="   $as_nl"
19696
19697 # CDPATH.
19698 $as_unset CDPATH
19699
19700 exec 6>&1
19701
19702 # Open the log real soon, to keep \$[0] and so on meaningful, and to
19703 # report actual input values of CONFIG_FILES etc. instead of their
19704 # values after options handling.  Logging --version etc. is OK.
19705 exec 5>>config.log
19706 {
19707   echo
19708   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
19709 ## Running $as_me. ##
19710 _ASBOX
19711 } >&5
19712 cat >&5 <<_CSEOF
19713
19714 This file was extended by Wine $as_me 0.9.12, which was
19715 generated by GNU Autoconf 2.59.  Invocation command line was
19716
19717   CONFIG_FILES    = $CONFIG_FILES
19718   CONFIG_HEADERS  = $CONFIG_HEADERS
19719   CONFIG_LINKS    = $CONFIG_LINKS
19720   CONFIG_COMMANDS = $CONFIG_COMMANDS
19721   $ $0 $@
19722
19723 _CSEOF
19724 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
19725 echo >&5
19726 _ACEOF
19727
19728 # Files that config.status was made for.
19729 if test -n "$ac_config_files"; then
19730   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
19731 fi
19732
19733 if test -n "$ac_config_headers"; then
19734   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
19735 fi
19736
19737 if test -n "$ac_config_links"; then
19738   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
19739 fi
19740
19741 if test -n "$ac_config_commands"; then
19742   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
19743 fi
19744
19745 cat >>$CONFIG_STATUS <<\_ACEOF
19746
19747 ac_cs_usage="\
19748 \`$as_me' instantiates files from templates according to the
19749 current configuration.
19750
19751 Usage: $0 [OPTIONS] [FILE]...
19752
19753   -h, --help       print this help, then exit
19754   -V, --version    print version number, then exit
19755   -q, --quiet      do not print progress messages
19756   -d, --debug      don't remove temporary files
19757       --recheck    update $as_me by reconfiguring in the same conditions
19758   --file=FILE[:TEMPLATE]
19759                    instantiate the configuration file FILE
19760   --header=FILE[:TEMPLATE]
19761                    instantiate the configuration header FILE
19762
19763 Configuration files:
19764 $config_files
19765
19766 Configuration headers:
19767 $config_headers
19768
19769 Configuration commands:
19770 $config_commands
19771
19772 Report bugs to <bug-autoconf@gnu.org>."
19773 _ACEOF
19774
19775 cat >>$CONFIG_STATUS <<_ACEOF
19776 ac_cs_version="\\
19777 Wine config.status 0.9.12
19778 configured by $0, generated by GNU Autoconf 2.59,
19779   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
19780
19781 Copyright (C) 2003 Free Software Foundation, Inc.
19782 This config.status script is free software; the Free Software Foundation
19783 gives unlimited permission to copy, distribute and modify it."
19784 srcdir=$srcdir
19785 INSTALL="$INSTALL"
19786 _ACEOF
19787
19788 cat >>$CONFIG_STATUS <<\_ACEOF
19789 # If no file are specified by the user, then we need to provide default
19790 # value.  By we need to know if files were specified by the user.
19791 ac_need_defaults=:
19792 while test $# != 0
19793 do
19794   case $1 in
19795   --*=*)
19796     ac_option=`expr "x$1" : 'x\([^=]*\)='`
19797     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
19798     ac_shift=:
19799     ;;
19800   -*)
19801     ac_option=$1
19802     ac_optarg=$2
19803     ac_shift=shift
19804     ;;
19805   *) # This is not an option, so the user has probably given explicit
19806      # arguments.
19807      ac_option=$1
19808      ac_need_defaults=false;;
19809   esac
19810
19811   case $ac_option in
19812   # Handling of the options.
19813 _ACEOF
19814 cat >>$CONFIG_STATUS <<\_ACEOF
19815   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
19816     ac_cs_recheck=: ;;
19817   --version | --vers* | -V )
19818     echo "$ac_cs_version"; exit 0 ;;
19819   --he | --h)
19820     # Conflict between --help and --header
19821     { { echo "$as_me:$LINENO: error: ambiguous option: $1
19822 Try \`$0 --help' for more information." >&5
19823 echo "$as_me: error: ambiguous option: $1
19824 Try \`$0 --help' for more information." >&2;}
19825    { (exit 1); exit 1; }; };;
19826   --help | --hel | -h )
19827     echo "$ac_cs_usage"; exit 0 ;;
19828   --debug | --d* | -d )
19829     debug=: ;;
19830   --file | --fil | --fi | --f )
19831     $ac_shift
19832     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
19833     ac_need_defaults=false;;
19834   --header | --heade | --head | --hea )
19835     $ac_shift
19836     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
19837     ac_need_defaults=false;;
19838   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
19839   | -silent | --silent | --silen | --sile | --sil | --si | --s)
19840     ac_cs_silent=: ;;
19841
19842   # This is an error.
19843   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
19844 Try \`$0 --help' for more information." >&5
19845 echo "$as_me: error: unrecognized option: $1
19846 Try \`$0 --help' for more information." >&2;}
19847    { (exit 1); exit 1; }; } ;;
19848
19849   *) ac_config_targets="$ac_config_targets $1" ;;
19850
19851   esac
19852   shift
19853 done
19854
19855 ac_configure_extra_args=
19856
19857 if $ac_cs_silent; then
19858   exec 6>/dev/null
19859   ac_configure_extra_args="$ac_configure_extra_args --silent"
19860 fi
19861
19862 _ACEOF
19863 cat >>$CONFIG_STATUS <<_ACEOF
19864 if \$ac_cs_recheck; then
19865   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
19866   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
19867 fi
19868
19869 _ACEOF
19870
19871
19872
19873
19874
19875 cat >>$CONFIG_STATUS <<\_ACEOF
19876 for ac_config_target in $ac_config_targets
19877 do
19878   case "$ac_config_target" in
19879   # Handling of arguments.
19880   "Make.rules" ) CONFIG_FILES="$CONFIG_FILES Make.rules" ;;
19881   "dlls/Makedll.rules" ) CONFIG_FILES="$CONFIG_FILES dlls/Makedll.rules" ;;
19882   "dlls/Makeimplib.rules" ) CONFIG_FILES="$CONFIG_FILES dlls/Makeimplib.rules" ;;
19883   "dlls/Maketest.rules" ) CONFIG_FILES="$CONFIG_FILES dlls/Maketest.rules" ;;
19884   "libs/Makelib.rules" ) CONFIG_FILES="$CONFIG_FILES libs/Makelib.rules" ;;
19885   "programs/Makeprog.rules" ) CONFIG_FILES="$CONFIG_FILES programs/Makeprog.rules" ;;
19886   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
19887   "dlls/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/Makefile" ;;
19888   "dlls/activeds/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/activeds/Makefile" ;;
19889   "dlls/advapi32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/advapi32/Makefile" ;;
19890   "dlls/advapi32/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/advapi32/tests/Makefile" ;;
19891   "dlls/advpack/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/advpack/Makefile" ;;
19892   "dlls/advpack/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/advpack/tests/Makefile" ;;
19893   "dlls/amstream/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/amstream/Makefile" ;;
19894   "dlls/atl/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/atl/Makefile" ;;
19895   "dlls/avicap32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/avicap32/Makefile" ;;
19896   "dlls/avifil32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/avifil32/Makefile" ;;
19897   "dlls/cabinet/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/cabinet/Makefile" ;;
19898   "dlls/cabinet/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/cabinet/tests/Makefile" ;;
19899   "dlls/capi2032/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/capi2032/Makefile" ;;
19900   "dlls/cards/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/cards/Makefile" ;;
19901   "dlls/cfgmgr32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/cfgmgr32/Makefile" ;;
19902   "dlls/comcat/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/comcat/Makefile" ;;
19903   "dlls/comctl32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/comctl32/Makefile" ;;
19904   "dlls/comctl32/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/comctl32/tests/Makefile" ;;
19905   "dlls/comdlg32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/comdlg32/Makefile" ;;
19906   "dlls/crtdll/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/crtdll/Makefile" ;;
19907   "dlls/crypt32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/crypt32/Makefile" ;;
19908   "dlls/crypt32/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/crypt32/tests/Makefile" ;;
19909   "dlls/cryptdll/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/cryptdll/Makefile" ;;
19910   "dlls/ctl3d32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ctl3d32/Makefile" ;;
19911   "dlls/d3d8/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/d3d8/Makefile" ;;
19912   "dlls/d3d9/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/d3d9/Makefile" ;;
19913   "dlls/d3d9/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/d3d9/tests/Makefile" ;;
19914   "dlls/d3dim/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/d3dim/Makefile" ;;
19915   "dlls/d3drm/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/d3drm/Makefile" ;;
19916   "dlls/d3dx8/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/d3dx8/Makefile" ;;
19917   "dlls/d3dxof/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/d3dxof/Makefile" ;;
19918   "dlls/dbghelp/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dbghelp/Makefile" ;;
19919   "dlls/dciman32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dciman32/Makefile" ;;
19920   "dlls/ddraw/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ddraw/Makefile" ;;
19921   "dlls/ddraw/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ddraw/tests/Makefile" ;;
19922   "dlls/devenum/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/devenum/Makefile" ;;
19923   "dlls/dinput/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dinput/Makefile" ;;
19924   "dlls/dinput/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dinput/tests/Makefile" ;;
19925   "dlls/dinput8/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dinput8/Makefile" ;;
19926   "dlls/dmband/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dmband/Makefile" ;;
19927   "dlls/dmcompos/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dmcompos/Makefile" ;;
19928   "dlls/dmime/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dmime/Makefile" ;;
19929   "dlls/dmloader/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dmloader/Makefile" ;;
19930   "dlls/dmscript/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dmscript/Makefile" ;;
19931   "dlls/dmstyle/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dmstyle/Makefile" ;;
19932   "dlls/dmsynth/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dmsynth/Makefile" ;;
19933   "dlls/dmusic/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dmusic/Makefile" ;;
19934   "dlls/dmusic32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dmusic32/Makefile" ;;
19935   "dlls/dnsapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dnsapi/Makefile" ;;
19936   "dlls/dnsapi/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dnsapi/tests/Makefile" ;;
19937   "dlls/dplay/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dplay/Makefile" ;;
19938   "dlls/dplayx/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dplayx/Makefile" ;;
19939   "dlls/dpnet/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dpnet/Makefile" ;;
19940   "dlls/dpnhpast/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dpnhpast/Makefile" ;;
19941   "dlls/dsound/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dsound/Makefile" ;;
19942   "dlls/dsound/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dsound/tests/Makefile" ;;
19943   "dlls/dswave/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dswave/Makefile" ;;
19944   "dlls/dxdiagn/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dxdiagn/Makefile" ;;
19945   "dlls/dxerr8/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dxerr8/Makefile" ;;
19946   "dlls/dxerr9/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dxerr9/Makefile" ;;
19947   "dlls/dxguid/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dxguid/Makefile" ;;
19948   "dlls/gdi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/gdi/Makefile" ;;
19949   "dlls/gdi/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/gdi/tests/Makefile" ;;
19950   "dlls/glu32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/glu32/Makefile" ;;
19951   "dlls/glut32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/glut32/Makefile" ;;
19952   "dlls/hhctrl.ocx/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/hhctrl.ocx/Makefile" ;;
19953   "dlls/iccvid/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/iccvid/Makefile" ;;
19954   "dlls/icmp/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/icmp/Makefile" ;;
19955   "dlls/ifsmgr.vxd/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ifsmgr.vxd/Makefile" ;;
19956   "dlls/imaadp32.acm/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/imaadp32.acm/Makefile" ;;
19957   "dlls/imagehlp/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/imagehlp/Makefile" ;;
19958   "dlls/imm32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/imm32/Makefile" ;;
19959   "dlls/iphlpapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/iphlpapi/Makefile" ;;
19960   "dlls/iphlpapi/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/iphlpapi/tests/Makefile" ;;
19961   "dlls/itss/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/itss/Makefile" ;;
19962   "dlls/kernel/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/kernel/Makefile" ;;
19963   "dlls/kernel/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/kernel/tests/Makefile" ;;
19964   "dlls/lz32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/lz32/Makefile" ;;
19965   "dlls/lz32/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/lz32/tests/Makefile" ;;
19966   "dlls/mapi32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/mapi32/Makefile" ;;
19967   "dlls/mapi32/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/mapi32/tests/Makefile" ;;
19968   "dlls/mciavi32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/mciavi32/Makefile" ;;
19969   "dlls/mcicda/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/mcicda/Makefile" ;;
19970   "dlls/mciseq/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/mciseq/Makefile" ;;
19971   "dlls/midimap/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/midimap/Makefile" ;;
19972   "dlls/mlang/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/mlang/Makefile" ;;
19973   "dlls/mlang/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/mlang/tests/Makefile" ;;
19974   "dlls/mmdevldr.vxd/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/mmdevldr.vxd/Makefile" ;;
19975   "dlls/monodebg.vxd/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/monodebg.vxd/Makefile" ;;
19976   "dlls/mpr/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/mpr/Makefile" ;;
19977   "dlls/msacm32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msacm32/Makefile" ;;
19978   "dlls/msacm32/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msacm32/tests/Makefile" ;;
19979   "dlls/msadp32.acm/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msadp32.acm/Makefile" ;;
19980   "dlls/mscms/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/mscms/Makefile" ;;
19981   "dlls/mscms/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/mscms/tests/Makefile" ;;
19982   "dlls/msdmo/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msdmo/Makefile" ;;
19983   "dlls/msftedit/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msftedit/Makefile" ;;
19984   "dlls/msg711.acm/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msg711.acm/Makefile" ;;
19985   "dlls/mshtml/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/mshtml/Makefile" ;;
19986   "dlls/mshtml/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/mshtml/tests/Makefile" ;;
19987   "dlls/msi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msi/Makefile" ;;
19988   "dlls/msi/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msi/tests/Makefile" ;;
19989   "dlls/msimg32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msimg32/Makefile" ;;
19990   "dlls/msisys/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msisys/Makefile" ;;
19991   "dlls/msnet32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msnet32/Makefile" ;;
19992   "dlls/msrle32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msrle32/Makefile" ;;
19993   "dlls/msvcrt/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvcrt/Makefile" ;;
19994   "dlls/msvcrt/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvcrt/tests/Makefile" ;;
19995   "dlls/msvcrt20/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvcrt20/Makefile" ;;
19996   "dlls/msvcrt40/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvcrt40/Makefile" ;;
19997   "dlls/msvcrtd/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvcrtd/Makefile" ;;
19998   "dlls/msvcrtd/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvcrtd/tests/Makefile" ;;
19999   "dlls/msvfw32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvfw32/Makefile" ;;
20000   "dlls/msvidc32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvidc32/Makefile" ;;
20001   "dlls/mswsock/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/mswsock/Makefile" ;;
20002   "dlls/msxml3/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msxml3/Makefile" ;;
20003   "dlls/msxml3/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msxml3/tests/Makefile" ;;
20004   "dlls/netapi32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/netapi32/Makefile" ;;
20005   "dlls/netapi32/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/netapi32/tests/Makefile" ;;
20006   "dlls/newdev/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/newdev/Makefile" ;;
20007   "dlls/ntdll/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ntdll/Makefile" ;;
20008   "dlls/ntdll/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ntdll/tests/Makefile" ;;
20009   "dlls/objsel/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/objsel/Makefile" ;;
20010   "dlls/odbc32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/odbc32/Makefile" ;;
20011   "dlls/odbccp32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/odbccp32/Makefile" ;;
20012   "dlls/ole32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ole32/Makefile" ;;
20013   "dlls/ole32/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ole32/tests/Makefile" ;;
20014   "dlls/oleacc/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/oleacc/Makefile" ;;
20015   "dlls/oleaut32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/oleaut32/Makefile" ;;
20016   "dlls/oleaut32/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/oleaut32/tests/Makefile" ;;
20017   "dlls/olecli32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/olecli32/Makefile" ;;
20018   "dlls/oledlg/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/oledlg/Makefile" ;;
20019   "dlls/olepro32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/olepro32/Makefile" ;;
20020   "dlls/olesvr32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/olesvr32/Makefile" ;;
20021   "dlls/opengl32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/opengl32/Makefile" ;;
20022   "dlls/powrprof/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/powrprof/Makefile" ;;
20023   "dlls/psapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/psapi/Makefile" ;;
20024   "dlls/psapi/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/psapi/tests/Makefile" ;;
20025   "dlls/qcap/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/qcap/Makefile" ;;
20026   "dlls/quartz/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/quartz/Makefile" ;;
20027   "dlls/quartz/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/quartz/tests/Makefile" ;;
20028   "dlls/rasapi32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/rasapi32/Makefile" ;;
20029   "dlls/riched20/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/riched20/Makefile" ;;
20030   "dlls/riched20/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/riched20/tests/Makefile" ;;
20031   "dlls/riched32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/riched32/Makefile" ;;
20032   "dlls/rpcrt4/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/rpcrt4/Makefile" ;;
20033   "dlls/rpcrt4/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/rpcrt4/tests/Makefile" ;;
20034   "dlls/rsabase/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/rsabase/Makefile" ;;
20035   "dlls/rsabase/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/rsabase/tests/Makefile" ;;
20036   "dlls/rsaenh/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/rsaenh/Makefile" ;;
20037   "dlls/rsaenh/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/rsaenh/tests/Makefile" ;;
20038   "dlls/secur32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/secur32/Makefile" ;;
20039   "dlls/secur32/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/secur32/tests/Makefile" ;;
20040   "dlls/security/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/security/Makefile" ;;
20041   "dlls/sensapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/sensapi/Makefile" ;;
20042   "dlls/serialui/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/serialui/Makefile" ;;
20043   "dlls/setupapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/setupapi/Makefile" ;;
20044   "dlls/setupapi/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/setupapi/tests/Makefile" ;;
20045   "dlls/sfc/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/sfc/Makefile" ;;
20046   "dlls/shdocvw/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shdocvw/Makefile" ;;
20047   "dlls/shdocvw/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shdocvw/tests/Makefile" ;;
20048   "dlls/shell32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shell32/Makefile" ;;
20049   "dlls/shell32/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shell32/tests/Makefile" ;;
20050   "dlls/shfolder/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shfolder/Makefile" ;;
20051   "dlls/shlwapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shlwapi/Makefile" ;;
20052   "dlls/shlwapi/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shlwapi/tests/Makefile" ;;
20053   "dlls/snmpapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/snmpapi/Makefile" ;;
20054   "dlls/spoolss/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/spoolss/Makefile" ;;
20055   "dlls/stdole2.tlb/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/stdole2.tlb/Makefile" ;;
20056   "dlls/stdole32.tlb/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/stdole32.tlb/Makefile" ;;
20057   "dlls/sti/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/sti/Makefile" ;;
20058   "dlls/strmiids/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/strmiids/Makefile" ;;
20059   "dlls/tapi32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/tapi32/Makefile" ;;
20060   "dlls/twain_32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/twain_32/Makefile" ;;
20061   "dlls/unicows/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/unicows/Makefile" ;;
20062   "dlls/url/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/url/Makefile" ;;
20063   "dlls/urlmon/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/urlmon/Makefile" ;;
20064   "dlls/urlmon/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/urlmon/tests/Makefile" ;;
20065   "dlls/user/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/user/Makefile" ;;
20066   "dlls/user/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/user/tests/Makefile" ;;
20067   "dlls/usp10/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/usp10/Makefile" ;;
20068   "dlls/usp10/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/usp10/tests/Makefile" ;;
20069   "dlls/uuid/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/uuid/Makefile" ;;
20070   "dlls/uxtheme/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/uxtheme/Makefile" ;;
20071   "dlls/vdhcp.vxd/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/vdhcp.vxd/Makefile" ;;
20072   "dlls/vdmdbg/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/vdmdbg/Makefile" ;;
20073   "dlls/version/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/version/Makefile" ;;
20074   "dlls/version/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/version/tests/Makefile" ;;
20075   "dlls/vmm.vxd/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/vmm.vxd/Makefile" ;;
20076   "dlls/vnbt.vxd/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/vnbt.vxd/Makefile" ;;
20077   "dlls/vnetbios.vxd/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/vnetbios.vxd/Makefile" ;;
20078   "dlls/vtdapi.vxd/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/vtdapi.vxd/Makefile" ;;
20079   "dlls/vwin32.vxd/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/vwin32.vxd/Makefile" ;;
20080   "dlls/w32skrnl/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/w32skrnl/Makefile" ;;
20081   "dlls/winecrt0/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winecrt0/Makefile" ;;
20082   "dlls/wined3d/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wined3d/Makefile" ;;
20083   "dlls/winedos/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winedos/Makefile" ;;
20084   "dlls/winemp3.acm/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winemp3.acm/Makefile" ;;
20085   "dlls/wineps/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wineps/Makefile" ;;
20086   "dlls/wininet/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wininet/Makefile" ;;
20087   "dlls/wininet/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wininet/tests/Makefile" ;;
20088   "dlls/winmm/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/Makefile" ;;
20089   "dlls/winmm/joystick/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/joystick/Makefile" ;;
20090   "dlls/winmm/mciwave/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/mciwave/Makefile" ;;
20091   "dlls/winmm/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/tests/Makefile" ;;
20092   "dlls/winmm/wavemap/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/wavemap/Makefile" ;;
20093   "dlls/winmm/winealsa/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/winealsa/Makefile" ;;
20094   "dlls/winmm/winearts/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/winearts/Makefile" ;;
20095   "dlls/winmm/wineaudioio/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/wineaudioio/Makefile" ;;
20096   "dlls/winmm/wineesd/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/wineesd/Makefile" ;;
20097   "dlls/winmm/winejack/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/winejack/Makefile" ;;
20098   "dlls/winmm/winenas/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/winenas/Makefile" ;;
20099   "dlls/winmm/wineoss/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/wineoss/Makefile" ;;
20100   "dlls/winnls32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winnls32/Makefile" ;;
20101   "dlls/winspool/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winspool/Makefile" ;;
20102   "dlls/winspool/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winspool/tests/Makefile" ;;
20103   "dlls/wintab32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wintab32/Makefile" ;;
20104   "dlls/wintrust/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wintrust/Makefile" ;;
20105   "dlls/wldap32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wldap32/Makefile" ;;
20106   "dlls/wnaspi32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wnaspi32/Makefile" ;;
20107   "dlls/wow32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wow32/Makefile" ;;
20108   "dlls/ws2_32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ws2_32/Makefile" ;;
20109   "dlls/ws2_32/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ws2_32/tests/Makefile" ;;
20110   "dlls/wsock32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wsock32/Makefile" ;;
20111   "dlls/wtsapi32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wtsapi32/Makefile" ;;
20112   "dlls/x11drv/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/x11drv/Makefile" ;;
20113   "documentation/Makefile" ) CONFIG_FILES="$CONFIG_FILES documentation/Makefile" ;;
20114   "fonts/Makefile" ) CONFIG_FILES="$CONFIG_FILES fonts/Makefile" ;;
20115   "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
20116   "libs/Makefile" ) CONFIG_FILES="$CONFIG_FILES libs/Makefile" ;;
20117   "libs/port/Makefile" ) CONFIG_FILES="$CONFIG_FILES libs/port/Makefile" ;;
20118   "libs/unicode/Makefile" ) CONFIG_FILES="$CONFIG_FILES libs/unicode/Makefile" ;;
20119   "libs/wine/Makefile" ) CONFIG_FILES="$CONFIG_FILES libs/wine/Makefile" ;;
20120   "libs/wpp/Makefile" ) CONFIG_FILES="$CONFIG_FILES libs/wpp/Makefile" ;;
20121   "loader/Makefile" ) CONFIG_FILES="$CONFIG_FILES loader/Makefile" ;;
20122   "programs/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/Makefile" ;;
20123   "programs/clock/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/clock/Makefile" ;;
20124   "programs/cmdlgtst/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/cmdlgtst/Makefile" ;;
20125   "programs/control/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/control/Makefile" ;;
20126   "programs/eject/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/eject/Makefile" ;;
20127   "programs/expand/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/expand/Makefile" ;;
20128   "programs/explorer/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/explorer/Makefile" ;;
20129   "programs/hh/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/hh/Makefile" ;;
20130   "programs/icinfo/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/icinfo/Makefile" ;;
20131   "programs/iexplore/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/iexplore/Makefile" ;;
20132   "programs/msiexec/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/msiexec/Makefile" ;;
20133   "programs/notepad/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/notepad/Makefile" ;;
20134   "programs/progman/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/progman/Makefile" ;;
20135   "programs/regedit/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/regedit/Makefile" ;;
20136   "programs/regsvr32/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/regsvr32/Makefile" ;;
20137   "programs/rpcss/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/rpcss/Makefile" ;;
20138   "programs/rundll32/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/rundll32/Makefile" ;;
20139   "programs/start/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/start/Makefile" ;;
20140   "programs/taskmgr/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/taskmgr/Makefile" ;;
20141   "programs/uninstaller/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/uninstaller/Makefile" ;;
20142   "programs/view/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/view/Makefile" ;;
20143   "programs/wcmd/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/wcmd/Makefile" ;;
20144   "programs/wineboot/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/wineboot/Makefile" ;;
20145   "programs/winebrowser/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winebrowser/Makefile" ;;
20146   "programs/winecfg/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winecfg/Makefile" ;;
20147   "programs/wineconsole/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/wineconsole/Makefile" ;;
20148   "programs/winedbg/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winedbg/Makefile" ;;
20149   "programs/winefile/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winefile/Makefile" ;;
20150   "programs/winemenubuilder/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winemenubuilder/Makefile" ;;
20151   "programs/winemine/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winemine/Makefile" ;;
20152   "programs/winepath/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winepath/Makefile" ;;
20153   "programs/winetest/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winetest/Makefile" ;;
20154   "programs/winevdm/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winevdm/Makefile" ;;
20155   "programs/winhelp/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winhelp/Makefile" ;;
20156   "programs/winver/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winver/Makefile" ;;
20157   "programs/wordpad/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/wordpad/Makefile" ;;
20158   "server/Makefile" ) CONFIG_FILES="$CONFIG_FILES server/Makefile" ;;
20159   "tools/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
20160   "tools/widl/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/widl/Makefile" ;;
20161   "tools/winapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/winapi/Makefile" ;;
20162   "tools/winebuild/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/winebuild/Makefile" ;;
20163   "tools/winedump/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/winedump/Makefile" ;;
20164   "tools/winegcc/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/winegcc/Makefile" ;;
20165   "tools/wmc/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/wmc/Makefile" ;;
20166   "tools/wrc/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/wrc/Makefile" ;;
20167   "dlls/gdi/enhmfdrv" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/gdi/enhmfdrv" ;;
20168   "dlls/gdi/mfdrv" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/gdi/mfdrv" ;;
20169   "dlls/kernel/messages" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/kernel/messages" ;;
20170   "dlls/user/resources" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/user/resources" ;;
20171   "dlls/wineps/data" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/wineps/data" ;;
20172   "include/wine" ) CONFIG_COMMANDS="$CONFIG_COMMANDS include/wine" ;;
20173   "include/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
20174   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
20175 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
20176    { (exit 1); exit 1; }; };;
20177   esac
20178 done
20179
20180 # If the user did not use the arguments to specify the items to instantiate,
20181 # then the envvar interface is used.  Set only those that are not.
20182 # We use the long form for the default assignment because of an extremely
20183 # bizarre bug on SunOS 4.1.3.
20184 if $ac_need_defaults; then
20185   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
20186   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
20187   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
20188 fi
20189
20190 # Have a temporary directory for convenience.  Make it in the build tree
20191 # simply because there is no reason to put it here, and in addition,
20192 # creating and moving files from /tmp can sometimes cause problems.
20193 # Create a temporary directory, and hook for its removal unless debugging.
20194 $debug ||
20195 {
20196   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
20197   trap '{ (exit 1); exit 1; }' 1 2 13 15
20198 }
20199
20200 # Create a (secure) tmp directory for tmp files.
20201
20202 {
20203   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
20204   test -n "$tmp" && test -d "$tmp"
20205 }  ||
20206 {
20207   tmp=./confstat$$-$RANDOM
20208   (umask 077 && mkdir $tmp)
20209 } ||
20210 {
20211    echo "$me: cannot create a temporary directory in ." >&2
20212    { (exit 1); exit 1; }
20213 }
20214
20215 _ACEOF
20216
20217 cat >>$CONFIG_STATUS <<_ACEOF
20218
20219 #
20220 # CONFIG_FILES section.
20221 #
20222
20223 # No need to generate the scripts if there are no CONFIG_FILES.
20224 # This happens for instance when ./config.status config.h
20225 if test -n "\$CONFIG_FILES"; then
20226   # Protect against being on the right side of a sed subst in config.status.
20227   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
20228    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
20229 s,@SHELL@,$SHELL,;t t
20230 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
20231 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
20232 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
20233 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
20234 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
20235 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
20236 s,@exec_prefix@,$exec_prefix,;t t
20237 s,@prefix@,$prefix,;t t
20238 s,@program_transform_name@,$program_transform_name,;t t
20239 s,@bindir@,$bindir,;t t
20240 s,@sbindir@,$sbindir,;t t
20241 s,@libexecdir@,$libexecdir,;t t
20242 s,@datadir@,$datadir,;t t
20243 s,@sysconfdir@,$sysconfdir,;t t
20244 s,@sharedstatedir@,$sharedstatedir,;t t
20245 s,@localstatedir@,$localstatedir,;t t
20246 s,@libdir@,$libdir,;t t
20247 s,@includedir@,$includedir,;t t
20248 s,@oldincludedir@,$oldincludedir,;t t
20249 s,@infodir@,$infodir,;t t
20250 s,@mandir@,$mandir,;t t
20251 s,@build_alias@,$build_alias,;t t
20252 s,@host_alias@,$host_alias,;t t
20253 s,@target_alias@,$target_alias,;t t
20254 s,@DEFS@,$DEFS,;t t
20255 s,@ECHO_C@,$ECHO_C,;t t
20256 s,@ECHO_N@,$ECHO_N,;t t
20257 s,@ECHO_T@,$ECHO_T,;t t
20258 s,@LIBS@,$LIBS,;t t
20259 s,@build@,$build,;t t
20260 s,@build_cpu@,$build_cpu,;t t
20261 s,@build_vendor@,$build_vendor,;t t
20262 s,@build_os@,$build_os,;t t
20263 s,@host@,$host,;t t
20264 s,@host_cpu@,$host_cpu,;t t
20265 s,@host_vendor@,$host_vendor,;t t
20266 s,@host_os@,$host_os,;t t
20267 s,@WIN16_FILES@,$WIN16_FILES,;t t
20268 s,@WIN16_INSTALL@,$WIN16_INSTALL,;t t
20269 s,@SET_MAKE@,$SET_MAKE,;t t
20270 s,@CC@,$CC,;t t
20271 s,@CFLAGS@,$CFLAGS,;t t
20272 s,@LDFLAGS@,$LDFLAGS,;t t
20273 s,@CPPFLAGS@,$CPPFLAGS,;t t
20274 s,@ac_ct_CC@,$ac_ct_CC,;t t
20275 s,@EXEEXT@,$EXEEXT,;t t
20276 s,@OBJEXT@,$OBJEXT,;t t
20277 s,@CXX@,$CXX,;t t
20278 s,@CXXFLAGS@,$CXXFLAGS,;t t
20279 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
20280 s,@CPPBIN@,$CPPBIN,;t t
20281 s,@ac_ct_CPPBIN@,$ac_ct_CPPBIN,;t t
20282 s,@TOOLSDIR@,$TOOLSDIR,;t t
20283 s,@CPP@,$CPP,;t t
20284 s,@X_CFLAGS@,$X_CFLAGS,;t t
20285 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
20286 s,@X_LIBS@,$X_LIBS,;t t
20287 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
20288 s,@LEX@,$LEX,;t t
20289 s,@LEXLIB@,$LEXLIB,;t t
20290 s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
20291 s,@XLEX@,$XLEX,;t t
20292 s,@BISON@,$BISON,;t t
20293 s,@AS@,$AS,;t t
20294 s,@ac_ct_AS@,$ac_ct_AS,;t t
20295 s,@LD@,$LD,;t t
20296 s,@ac_ct_LD@,$ac_ct_LD,;t t
20297 s,@AR@,$AR,;t t
20298 s,@ac_ct_AR@,$ac_ct_AR,;t t
20299 s,@RANLIB@,$RANLIB,;t t
20300 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
20301 s,@STRIP@,$STRIP,;t t
20302 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
20303 s,@WINDRES@,$WINDRES,;t t
20304 s,@ac_ct_WINDRES@,$ac_ct_WINDRES,;t t
20305 s,@LN_S@,$LN_S,;t t
20306 s,@LN@,$LN,;t t
20307 s,@EGREP@,$EGREP,;t t
20308 s,@LDCONFIG@,$LDCONFIG,;t t
20309 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
20310 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
20311 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
20312 s,@LINT@,$LINT,;t t
20313 s,@LINTFLAGS@,$LINTFLAGS,;t t
20314 s,@FONTFORGE@,$FONTFORGE,;t t
20315 s,@PKG_CONFIG@,$PKG_CONFIG,;t t
20316 s,@PRELINK@,$PRELINK,;t t
20317 s,@LIBPTHREAD@,$LIBPTHREAD,;t t
20318 s,@XLIB@,$XLIB,;t t
20319 s,@XFILES@,$XFILES,;t t
20320 s,@OPENGLFILES@,$OPENGLFILES,;t t
20321 s,@GLU32FILES@,$GLU32FILES,;t t
20322 s,@OPENGL_LIBS@,$OPENGL_LIBS,;t t
20323 s,@GLUT_LIBS@,$GLUT_LIBS,;t t
20324 s,@GLUT32FILES@,$GLUT32FILES,;t t
20325 s,@NASLIBS@,$NASLIBS,;t t
20326 s,@XML2LIBS@,$XML2LIBS,;t t
20327 s,@XML2INCL@,$XML2INCL,;t t
20328 s,@XSLTLIBS@,$XSLTLIBS,;t t
20329 s,@XSLTINCL@,$XSLTINCL,;t t
20330 s,@CURSESLIBS@,$CURSESLIBS,;t t
20331 s,@sane_devel@,$sane_devel,;t t
20332 s,@SANELIBS@,$SANELIBS,;t t
20333 s,@SANEINCL@,$SANEINCL,;t t
20334 s,@ICULIBS@,$ICULIBS,;t t
20335 s,@RESOLVLIBS@,$RESOLVLIBS,;t t
20336 s,@LCMSLIBS@,$LCMSLIBS,;t t
20337 s,@LDAPLIBS@,$LDAPLIBS,;t t
20338 s,@FREETYPELIBS@,$FREETYPELIBS,;t t
20339 s,@FREETYPEINCL@,$FREETYPEINCL,;t t
20340 s,@ft_devel@,$ft_devel,;t t
20341 s,@ft_devel2@,$ft_devel2,;t t
20342 s,@FONTSSUBDIRS@,$FONTSSUBDIRS,;t t
20343 s,@ARTSCCONFIG@,$ARTSCCONFIG,;t t
20344 s,@ARTSLIBS@,$ARTSLIBS,;t t
20345 s,@ARTSINCL@,$ARTSINCL,;t t
20346 s,@ESDCONFIG@,$ESDCONFIG,;t t
20347 s,@ESDLIBS@,$ESDLIBS,;t t
20348 s,@ESDINCL@,$ESDINCL,;t t
20349 s,@ALSALIBS@,$ALSALIBS,;t t
20350 s,@AUDIOIOLIBS@,$AUDIOIOLIBS,;t t
20351 s,@EXTRACFLAGS@,$EXTRACFLAGS,;t t
20352 s,@BUILTINFLAG@,$BUILTINFLAG,;t t
20353 s,@DLLEXT@,$DLLEXT,;t t
20354 s,@DLLFLAGS@,$DLLFLAGS,;t t
20355 s,@DLLIBS@,$DLLIBS,;t t
20356 s,@LDSHARED@,$LDSHARED,;t t
20357 s,@LDDLLFLAGS@,$LDDLLFLAGS,;t t
20358 s,@LIBEXT@,$LIBEXT,;t t
20359 s,@IMPLIBEXT@,$IMPLIBEXT,;t t
20360 s,@DLLTOOL@,$DLLTOOL,;t t
20361 s,@ac_ct_DLLTOOL@,$ac_ct_DLLTOOL,;t t
20362 s,@DLLWRAP@,$DLLWRAP,;t t
20363 s,@ac_ct_DLLWRAP@,$ac_ct_DLLWRAP,;t t
20364 s,@LDEXECFLAGS@,$LDEXECFLAGS,;t t
20365 s,@LDEXERPATH@,$LDEXERPATH,;t t
20366 s,@LDDLLRPATH@,$LDDLLRPATH,;t t
20367 s,@COREFOUNDATIONLIB@,$COREFOUNDATIONLIB,;t t
20368 s,@IOKITLIB@,$IOKITLIB,;t t
20369 s,@CROSSTEST@,$CROSSTEST,;t t
20370 s,@CROSSCC@,$CROSSCC,;t t
20371 s,@CROSSWINDRES@,$CROSSWINDRES,;t t
20372 s,@LDPATH@,$LDPATH,;t t
20373 s,@CRTLIBS@,$CRTLIBS,;t t
20374 s,@SOCKETLIBS@,$SOCKETLIBS,;t t
20375 s,@MAIN_BINARY@,$MAIN_BINARY,;t t
20376 s,@EXTRA_BINARIES@,$EXTRA_BINARIES,;t t
20377 s,@LDD@,$LDD,;t t
20378 s,@LIBOBJS@,$LIBOBJS,;t t
20379 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
20380 /@MAKE_RULES@/r $MAKE_RULES
20381 s,@MAKE_RULES@,,;t t
20382 /@MAKE_DLL_RULES@/r $MAKE_DLL_RULES
20383 s,@MAKE_DLL_RULES@,,;t t
20384 /@MAKE_IMPLIB_RULES@/r $MAKE_IMPLIB_RULES
20385 s,@MAKE_IMPLIB_RULES@,,;t t
20386 /@MAKE_TEST_RULES@/r $MAKE_TEST_RULES
20387 s,@MAKE_TEST_RULES@,,;t t
20388 /@MAKE_LIB_RULES@/r $MAKE_LIB_RULES
20389 s,@MAKE_LIB_RULES@,,;t t
20390 /@MAKE_PROG_RULES@/r $MAKE_PROG_RULES
20391 s,@MAKE_PROG_RULES@,,;t t
20392 CEOF
20393
20394 _ACEOF
20395
20396   cat >>$CONFIG_STATUS <<\_ACEOF
20397   # Split the substitutions into bite-sized pieces for seds with
20398   # small command number limits, like on Digital OSF/1 and HP-UX.
20399   ac_max_sed_lines=48
20400   ac_sed_frag=1 # Number of current file.
20401   ac_beg=1 # First line for current file.
20402   ac_end=$ac_max_sed_lines # Line after last line for current file.
20403   ac_more_lines=:
20404   ac_sed_cmds=
20405   while $ac_more_lines; do
20406     if test $ac_beg -gt 1; then
20407       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
20408     else
20409       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
20410     fi
20411     if test ! -s $tmp/subs.frag; then
20412       ac_more_lines=false
20413     else
20414       # The purpose of the label and of the branching condition is to
20415       # speed up the sed processing (if there are no `@' at all, there
20416       # is no need to browse any of the substitutions).
20417       # These are the two extra sed commands mentioned above.
20418       (echo ':t
20419   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
20420       if test -z "$ac_sed_cmds"; then
20421         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
20422       else
20423         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
20424       fi
20425       ac_sed_frag=`expr $ac_sed_frag + 1`
20426       ac_beg=$ac_end
20427       ac_end=`expr $ac_end + $ac_max_sed_lines`
20428     fi
20429   done
20430   if test -z "$ac_sed_cmds"; then
20431     ac_sed_cmds=cat
20432   fi
20433 fi # test -n "$CONFIG_FILES"
20434
20435 _ACEOF
20436 cat >>$CONFIG_STATUS <<\_ACEOF
20437 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
20438   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
20439   case $ac_file in
20440   - | *:- | *:-:* ) # input from stdin
20441         cat >$tmp/stdin
20442         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20443         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20444   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20445         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20446   * )   ac_file_in=$ac_file.in ;;
20447   esac
20448
20449   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
20450   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
20451 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20452          X"$ac_file" : 'X\(//\)[^/]' \| \
20453          X"$ac_file" : 'X\(//\)$' \| \
20454          X"$ac_file" : 'X\(/\)' \| \
20455          .     : '\(.\)' 2>/dev/null ||
20456 echo X"$ac_file" |
20457     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20458           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20459           /^X\(\/\/\)$/{ s//\1/; q; }
20460           /^X\(\/\).*/{ s//\1/; q; }
20461           s/.*/./; q'`
20462   { if $as_mkdir_p; then
20463     mkdir -p "$ac_dir"
20464   else
20465     as_dir="$ac_dir"
20466     as_dirs=
20467     while test ! -d "$as_dir"; do
20468       as_dirs="$as_dir $as_dirs"
20469       as_dir=`(dirname "$as_dir") 2>/dev/null ||
20470 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20471          X"$as_dir" : 'X\(//\)[^/]' \| \
20472          X"$as_dir" : 'X\(//\)$' \| \
20473          X"$as_dir" : 'X\(/\)' \| \
20474          .     : '\(.\)' 2>/dev/null ||
20475 echo X"$as_dir" |
20476     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20477           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20478           /^X\(\/\/\)$/{ s//\1/; q; }
20479           /^X\(\/\).*/{ s//\1/; q; }
20480           s/.*/./; q'`
20481     done
20482     test ! -n "$as_dirs" || mkdir $as_dirs
20483   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
20484 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
20485    { (exit 1); exit 1; }; }; }
20486
20487   ac_builddir=.
20488
20489 if test "$ac_dir" != .; then
20490   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
20491   # A "../" for each directory in $ac_dir_suffix.
20492   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
20493 else
20494   ac_dir_suffix= ac_top_builddir=
20495 fi
20496
20497 case $srcdir in
20498   .)  # No --srcdir option.  We are building in place.
20499     ac_srcdir=.
20500     if test -z "$ac_top_builddir"; then
20501        ac_top_srcdir=.
20502     else
20503        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
20504     fi ;;
20505   [\\/]* | ?:[\\/]* )  # Absolute path.
20506     ac_srcdir=$srcdir$ac_dir_suffix;
20507     ac_top_srcdir=$srcdir ;;
20508   *) # Relative path.
20509     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
20510     ac_top_srcdir=$ac_top_builddir$srcdir ;;
20511 esac
20512
20513 # Do not use `cd foo && pwd` to compute absolute paths, because
20514 # the directories may not exist.
20515 case `pwd` in
20516 .) ac_abs_builddir="$ac_dir";;
20517 *)
20518   case "$ac_dir" in
20519   .) ac_abs_builddir=`pwd`;;
20520   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
20521   *) ac_abs_builddir=`pwd`/"$ac_dir";;
20522   esac;;
20523 esac
20524 case $ac_abs_builddir in
20525 .) ac_abs_top_builddir=${ac_top_builddir}.;;
20526 *)
20527   case ${ac_top_builddir}. in
20528   .) ac_abs_top_builddir=$ac_abs_builddir;;
20529   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
20530   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
20531   esac;;
20532 esac
20533 case $ac_abs_builddir in
20534 .) ac_abs_srcdir=$ac_srcdir;;
20535 *)
20536   case $ac_srcdir in
20537   .) ac_abs_srcdir=$ac_abs_builddir;;
20538   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
20539   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
20540   esac;;
20541 esac
20542 case $ac_abs_builddir in
20543 .) ac_abs_top_srcdir=$ac_top_srcdir;;
20544 *)
20545   case $ac_top_srcdir in
20546   .) ac_abs_top_srcdir=$ac_abs_builddir;;
20547   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
20548   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
20549   esac;;
20550 esac
20551
20552
20553   case $INSTALL in
20554   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
20555   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
20556   esac
20557
20558   # Let's still pretend it is `configure' which instantiates (i.e., don't
20559   # use $as_me), people would be surprised to read:
20560   #    /* config.h.  Generated by config.status.  */
20561   if test x"$ac_file" = x-; then
20562     configure_input=
20563   else
20564     configure_input="$ac_file.  "
20565   fi
20566   configure_input=$configure_input"Generated from `echo $ac_file_in |
20567                                      sed 's,.*/,,'` by configure."
20568
20569   # First look for the input files in the build tree, otherwise in the
20570   # src tree.
20571   ac_file_inputs=`IFS=:
20572     for f in $ac_file_in; do
20573       case $f in
20574       -) echo $tmp/stdin ;;
20575       [\\/$]*)
20576          # Absolute (can't be DOS-style, as IFS=:)
20577          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20578 echo "$as_me: error: cannot find input file: $f" >&2;}
20579    { (exit 1); exit 1; }; }
20580          echo "$f";;
20581       *) # Relative
20582          if test -f "$f"; then
20583            # Build tree
20584            echo "$f"
20585          elif test -f "$srcdir/$f"; then
20586            # Source tree
20587            echo "$srcdir/$f"
20588          else
20589            # /dev/null tree
20590            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20591 echo "$as_me: error: cannot find input file: $f" >&2;}
20592    { (exit 1); exit 1; }; }
20593          fi;;
20594       esac
20595     done` || { (exit 1); exit 1; }
20596
20597   if test x"$ac_file" != x-; then
20598     { echo "$as_me:$LINENO: creating $ac_file" >&5
20599 echo "$as_me: creating $ac_file" >&6;}
20600     rm -f "$ac_file"
20601   fi
20602 _ACEOF
20603 cat >>$CONFIG_STATUS <<_ACEOF
20604   sed "$ac_vpsub
20605 $extrasub
20606 _ACEOF
20607 cat >>$CONFIG_STATUS <<\_ACEOF
20608 :t
20609 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20610 s,@configure_input@,$configure_input,;t t
20611 s,@srcdir@,$ac_srcdir,;t t
20612 s,@abs_srcdir@,$ac_abs_srcdir,;t t
20613 s,@top_srcdir@,$ac_top_srcdir,;t t
20614 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
20615 s,@builddir@,$ac_builddir,;t t
20616 s,@abs_builddir@,$ac_abs_builddir,;t t
20617 s,@top_builddir@,$ac_top_builddir,;t t
20618 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
20619 s,@INSTALL@,$ac_INSTALL,;t t
20620 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
20621   rm -f $tmp/stdin
20622   if test x"$ac_file" != x-; then
20623     mv $tmp/out $ac_file
20624   else
20625     cat $tmp/out
20626     rm -f $tmp/out
20627   fi
20628
20629 done
20630 _ACEOF
20631 cat >>$CONFIG_STATUS <<\_ACEOF
20632
20633 #
20634 # CONFIG_HEADER section.
20635 #
20636
20637 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
20638 # NAME is the cpp macro being defined and VALUE is the value it is being given.
20639 #
20640 # ac_d sets the value in "#define NAME VALUE" lines.
20641 ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
20642 ac_dB='[         ].*$,\1#\2'
20643 ac_dC=' '
20644 ac_dD=',;t'
20645 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
20646 ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
20647 ac_uB='$,\1#\2define\3'
20648 ac_uC=' '
20649 ac_uD=',;t'
20650
20651 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
20652   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
20653   case $ac_file in
20654   - | *:- | *:-:* ) # input from stdin
20655         cat >$tmp/stdin
20656         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20657         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20658   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20659         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20660   * )   ac_file_in=$ac_file.in ;;
20661   esac
20662
20663   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
20664 echo "$as_me: creating $ac_file" >&6;}
20665
20666   # First look for the input files in the build tree, otherwise in the
20667   # src tree.
20668   ac_file_inputs=`IFS=:
20669     for f in $ac_file_in; do
20670       case $f in
20671       -) echo $tmp/stdin ;;
20672       [\\/$]*)
20673          # Absolute (can't be DOS-style, as IFS=:)
20674          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20675 echo "$as_me: error: cannot find input file: $f" >&2;}
20676    { (exit 1); exit 1; }; }
20677          # Do quote $f, to prevent DOS paths from being IFS'd.
20678          echo "$f";;
20679       *) # Relative
20680          if test -f "$f"; then
20681            # Build tree
20682            echo "$f"
20683          elif test -f "$srcdir/$f"; then
20684            # Source tree
20685            echo "$srcdir/$f"
20686          else
20687            # /dev/null tree
20688            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20689 echo "$as_me: error: cannot find input file: $f" >&2;}
20690    { (exit 1); exit 1; }; }
20691          fi;;
20692       esac
20693     done` || { (exit 1); exit 1; }
20694   # Remove the trailing spaces.
20695   sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
20696
20697 _ACEOF
20698
20699 # Transform confdefs.h into two sed scripts, `conftest.defines' and
20700 # `conftest.undefs', that substitutes the proper values into
20701 # config.h.in to produce config.h.  The first handles `#define'
20702 # templates, and the second `#undef' templates.
20703 # And first: Protect against being on the right side of a sed subst in
20704 # config.status.  Protect against being in an unquoted here document
20705 # in config.status.
20706 rm -f conftest.defines conftest.undefs
20707 # Using a here document instead of a string reduces the quoting nightmare.
20708 # Putting comments in sed scripts is not portable.
20709 #
20710 # `end' is used to avoid that the second main sed command (meant for
20711 # 0-ary CPP macros) applies to n-ary macro definitions.
20712 # See the Autoconf documentation for `clear'.
20713 cat >confdef2sed.sed <<\_ACEOF
20714 s/[\\&,]/\\&/g
20715 s,[\\$`],\\&,g
20716 t clear
20717 : clear
20718 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
20719 t end
20720 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
20721 : end
20722 _ACEOF
20723 # If some macros were called several times there might be several times
20724 # the same #defines, which is useless.  Nevertheless, we may not want to
20725 # sort them, since we want the *last* AC-DEFINE to be honored.
20726 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
20727 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
20728 rm -f confdef2sed.sed
20729
20730 # This sed command replaces #undef with comments.  This is necessary, for
20731 # example, in the case of _POSIX_SOURCE, which is predefined and required
20732 # on some systems where configure will not decide to define it.
20733 cat >>conftest.undefs <<\_ACEOF
20734 s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
20735 _ACEOF
20736
20737 # Break up conftest.defines because some shells have a limit on the size
20738 # of here documents, and old seds have small limits too (100 cmds).
20739 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
20740 echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
20741 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
20742 echo '  :' >>$CONFIG_STATUS
20743 rm -f conftest.tail
20744 while grep . conftest.defines >/dev/null
20745 do
20746   # Write a limited-size here document to $tmp/defines.sed.
20747   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
20748   # Speed up: don't consider the non `#define' lines.
20749   echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
20750   # Work around the forget-to-reset-the-flag bug.
20751   echo 't clr' >>$CONFIG_STATUS
20752   echo ': clr' >>$CONFIG_STATUS
20753   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
20754   echo 'CEOF
20755   sed -f $tmp/defines.sed $tmp/in >$tmp/out
20756   rm -f $tmp/in
20757   mv $tmp/out $tmp/in
20758 ' >>$CONFIG_STATUS
20759   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
20760   rm -f conftest.defines
20761   mv conftest.tail conftest.defines
20762 done
20763 rm -f conftest.defines
20764 echo '  fi # grep' >>$CONFIG_STATUS
20765 echo >>$CONFIG_STATUS
20766
20767 # Break up conftest.undefs because some shells have a limit on the size
20768 # of here documents, and old seds have small limits too (100 cmds).
20769 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
20770 rm -f conftest.tail
20771 while grep . conftest.undefs >/dev/null
20772 do
20773   # Write a limited-size here document to $tmp/undefs.sed.
20774   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
20775   # Speed up: don't consider the non `#undef'
20776   echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
20777   # Work around the forget-to-reset-the-flag bug.
20778   echo 't clr' >>$CONFIG_STATUS
20779   echo ': clr' >>$CONFIG_STATUS
20780   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
20781   echo 'CEOF
20782   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
20783   rm -f $tmp/in
20784   mv $tmp/out $tmp/in
20785 ' >>$CONFIG_STATUS
20786   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
20787   rm -f conftest.undefs
20788   mv conftest.tail conftest.undefs
20789 done
20790 rm -f conftest.undefs
20791
20792 cat >>$CONFIG_STATUS <<\_ACEOF
20793   # Let's still pretend it is `configure' which instantiates (i.e., don't
20794   # use $as_me), people would be surprised to read:
20795   #    /* config.h.  Generated by config.status.  */
20796   if test x"$ac_file" = x-; then
20797     echo "/* Generated by configure.  */" >$tmp/config.h
20798   else
20799     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
20800   fi
20801   cat $tmp/in >>$tmp/config.h
20802   rm -f $tmp/in
20803   if test x"$ac_file" != x-; then
20804     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
20805       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
20806 echo "$as_me: $ac_file is unchanged" >&6;}
20807     else
20808       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
20809 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20810          X"$ac_file" : 'X\(//\)[^/]' \| \
20811          X"$ac_file" : 'X\(//\)$' \| \
20812          X"$ac_file" : 'X\(/\)' \| \
20813          .     : '\(.\)' 2>/dev/null ||
20814 echo X"$ac_file" |
20815     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20816           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20817           /^X\(\/\/\)$/{ s//\1/; q; }
20818           /^X\(\/\).*/{ s//\1/; q; }
20819           s/.*/./; q'`
20820       { if $as_mkdir_p; then
20821     mkdir -p "$ac_dir"
20822   else
20823     as_dir="$ac_dir"
20824     as_dirs=
20825     while test ! -d "$as_dir"; do
20826       as_dirs="$as_dir $as_dirs"
20827       as_dir=`(dirname "$as_dir") 2>/dev/null ||
20828 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20829          X"$as_dir" : 'X\(//\)[^/]' \| \
20830          X"$as_dir" : 'X\(//\)$' \| \
20831          X"$as_dir" : 'X\(/\)' \| \
20832          .     : '\(.\)' 2>/dev/null ||
20833 echo X"$as_dir" |
20834     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20835           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20836           /^X\(\/\/\)$/{ s//\1/; q; }
20837           /^X\(\/\).*/{ s//\1/; q; }
20838           s/.*/./; q'`
20839     done
20840     test ! -n "$as_dirs" || mkdir $as_dirs
20841   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
20842 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
20843    { (exit 1); exit 1; }; }; }
20844
20845       rm -f $ac_file
20846       mv $tmp/config.h $ac_file
20847     fi
20848   else
20849     cat $tmp/config.h
20850     rm -f $tmp/config.h
20851   fi
20852 done
20853 _ACEOF
20854 cat >>$CONFIG_STATUS <<\_ACEOF
20855
20856 #
20857 # CONFIG_COMMANDS section.
20858 #
20859 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
20860   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
20861   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
20862   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
20863 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20864          X"$ac_dest" : 'X\(//\)[^/]' \| \
20865          X"$ac_dest" : 'X\(//\)$' \| \
20866          X"$ac_dest" : 'X\(/\)' \| \
20867          .     : '\(.\)' 2>/dev/null ||
20868 echo X"$ac_dest" |
20869     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20870           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20871           /^X\(\/\/\)$/{ s//\1/; q; }
20872           /^X\(\/\).*/{ s//\1/; q; }
20873           s/.*/./; q'`
20874   { if $as_mkdir_p; then
20875     mkdir -p "$ac_dir"
20876   else
20877     as_dir="$ac_dir"
20878     as_dirs=
20879     while test ! -d "$as_dir"; do
20880       as_dirs="$as_dir $as_dirs"
20881       as_dir=`(dirname "$as_dir") 2>/dev/null ||
20882 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20883          X"$as_dir" : 'X\(//\)[^/]' \| \
20884          X"$as_dir" : 'X\(//\)$' \| \
20885          X"$as_dir" : 'X\(/\)' \| \
20886          .     : '\(.\)' 2>/dev/null ||
20887 echo X"$as_dir" |
20888     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20889           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20890           /^X\(\/\/\)$/{ s//\1/; q; }
20891           /^X\(\/\).*/{ s//\1/; q; }
20892           s/.*/./; q'`
20893     done
20894     test ! -n "$as_dirs" || mkdir $as_dirs
20895   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
20896 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
20897    { (exit 1); exit 1; }; }; }
20898
20899   ac_builddir=.
20900
20901 if test "$ac_dir" != .; then
20902   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
20903   # A "../" for each directory in $ac_dir_suffix.
20904   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
20905 else
20906   ac_dir_suffix= ac_top_builddir=
20907 fi
20908
20909 case $srcdir in
20910   .)  # No --srcdir option.  We are building in place.
20911     ac_srcdir=.
20912     if test -z "$ac_top_builddir"; then
20913        ac_top_srcdir=.
20914     else
20915        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
20916     fi ;;
20917   [\\/]* | ?:[\\/]* )  # Absolute path.
20918     ac_srcdir=$srcdir$ac_dir_suffix;
20919     ac_top_srcdir=$srcdir ;;
20920   *) # Relative path.
20921     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
20922     ac_top_srcdir=$ac_top_builddir$srcdir ;;
20923 esac
20924
20925 # Do not use `cd foo && pwd` to compute absolute paths, because
20926 # the directories may not exist.
20927 case `pwd` in
20928 .) ac_abs_builddir="$ac_dir";;
20929 *)
20930   case "$ac_dir" in
20931   .) ac_abs_builddir=`pwd`;;
20932   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
20933   *) ac_abs_builddir=`pwd`/"$ac_dir";;
20934   esac;;
20935 esac
20936 case $ac_abs_builddir in
20937 .) ac_abs_top_builddir=${ac_top_builddir}.;;
20938 *)
20939   case ${ac_top_builddir}. in
20940   .) ac_abs_top_builddir=$ac_abs_builddir;;
20941   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
20942   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
20943   esac;;
20944 esac
20945 case $ac_abs_builddir in
20946 .) ac_abs_srcdir=$ac_srcdir;;
20947 *)
20948   case $ac_srcdir in
20949   .) ac_abs_srcdir=$ac_abs_builddir;;
20950   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
20951   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
20952   esac;;
20953 esac
20954 case $ac_abs_builddir in
20955 .) ac_abs_top_srcdir=$ac_top_srcdir;;
20956 *)
20957   case $ac_top_srcdir in
20958   .) ac_abs_top_srcdir=$ac_abs_builddir;;
20959   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
20960   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
20961   esac;;
20962 esac
20963
20964
20965   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
20966 echo "$as_me: executing $ac_dest commands" >&6;}
20967   case $ac_dest in
20968     dlls/gdi/enhmfdrv ) test -d "dlls/gdi/enhmfdrv" || ({ echo "$as_me:$LINENO: creating dlls/gdi/enhmfdrv" >&5
20969 echo "$as_me: creating dlls/gdi/enhmfdrv" >&6;} && mkdir "dlls/gdi/enhmfdrv") ;;
20970     dlls/gdi/mfdrv ) test -d "dlls/gdi/mfdrv" || ({ echo "$as_me:$LINENO: creating dlls/gdi/mfdrv" >&5
20971 echo "$as_me: creating dlls/gdi/mfdrv" >&6;} && mkdir "dlls/gdi/mfdrv") ;;
20972     dlls/kernel/messages ) test -d "dlls/kernel/messages" || ({ echo "$as_me:$LINENO: creating dlls/kernel/messages" >&5
20973 echo "$as_me: creating dlls/kernel/messages" >&6;} && mkdir "dlls/kernel/messages") ;;
20974     dlls/user/resources ) test -d "dlls/user/resources" || ({ echo "$as_me:$LINENO: creating dlls/user/resources" >&5
20975 echo "$as_me: creating dlls/user/resources" >&6;} && mkdir "dlls/user/resources") ;;
20976     dlls/wineps/data ) test -d "dlls/wineps/data" || ({ echo "$as_me:$LINENO: creating dlls/wineps/data" >&5
20977 echo "$as_me: creating dlls/wineps/data" >&6;} && mkdir "dlls/wineps/data") ;;
20978     include/wine ) test -d "include/wine" || ({ echo "$as_me:$LINENO: creating include/wine" >&5
20979 echo "$as_me: creating include/wine" >&6;} && mkdir "include/wine") ;;
20980   esac
20981 done
20982 _ACEOF
20983
20984 cat >>$CONFIG_STATUS <<\_ACEOF
20985
20986 { (exit 0); exit 0; }
20987 _ACEOF
20988 chmod +x $CONFIG_STATUS
20989 ac_clean_files=$ac_clean_files_save
20990
20991
20992 # configure is writing to config.log, and then calls config.status.
20993 # config.status does its own redirection, appending to config.log.
20994 # Unfortunately, on DOS this fails, as config.log is still kept open
20995 # by configure, so config.status won't be able to write to it; its
20996 # output is simply discarded.  So we exec the FD to /dev/null,
20997 # effectively closing config.log, so it can be properly (re)opened and
20998 # appended to by config.status.  When coming back to configure, we
20999 # need to make the FD available again.
21000 if test "$no_create" != yes; then
21001   ac_cs_success=:
21002   ac_config_status_args=
21003   test "$silent" = yes &&
21004     ac_config_status_args="$ac_config_status_args --quiet"
21005   exec 5>/dev/null
21006   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21007   exec 5>>config.log
21008   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21009   # would make configure fail if this is the last instruction.
21010   $ac_cs_success || { (exit 1); exit 1; }
21011 fi
21012
21013
21014 exitcode=0
21015 if test "$have_x" = "no"
21016 then
21017   echo
21018   echo "*** Warning: X development files not found. Wine will be built without"
21019   echo "*** X support, which currently does not work, and would probably not be"
21020   echo "*** what you want anyway. You will need to install devel packages of"
21021   echo "*** Xlib/Xfree86 at the very least."
21022   exitcode=1
21023 fi
21024
21025 if test "$wine_cv_opengl_version_OK" = "no"
21026 then
21027   echo
21028   echo "*** Warning: old Mesa headers detected. Wine will be built without Direct3D"
21029   echo "*** support. Consider upgrading your Mesa libraries (http://www.mesa3d.org/)."
21030   exitcode=1
21031 fi
21032
21033 if test "$wine_cv_msg_freetype" = "yes"
21034 then
21035   echo
21036   echo "*** Note: Your system appears to have the FreeType 2 runtime libraries"
21037   echo "*** installed, but 'freetype-config' is not in your PATH. Install the"
21038   echo "*** freetype-devel package (or its equivalent on your distribution) to"
21039   echo "*** enable Wine to use TrueType fonts."
21040   exitcode=1
21041 fi
21042
21043 if test "$wine_cv_msg_fonts" = "yes"
21044 then
21045   echo
21046   echo "*** Warning: Freetype or Fontforge is missing."
21047   echo "*** Fonts will not be built. Dialog text may be invisible or unaligned."
21048   exitcode=1
21049 fi
21050
21051 if test -z "$ALSALIBS" -a \
21052         -z "$ARTSC_LIBS" -a \
21053         -z "$AUDIOIOLIBS" -a \
21054         -z "$NASLIBS" -a \
21055         -z "$ESD_LIBS" -a \
21056         -z "$ac_cv_lib_soname_jack" -a \
21057         "$ac_cv_header_sys_soundcard_h" != "yes" -a \
21058         "$ac_cv_header_machine_soundcard_h" != "yes" -a \
21059         "$ac_cv_header_soundcard_h" != "yes"
21060 then
21061   echo "*** No sound system was found. Windows applications will be silent."
21062   echo "*** The currently supported sound systems are:"
21063   echo "*** ALSA, ARTS, EsounD, AudioIO, Jack, NAS and OSS"
21064   exitcode=1
21065 fi
21066
21067 echo
21068 echo "Configure finished.  Do '${ac_make} depend && ${ac_make}' to compile Wine."
21069 echo
21070
21071 exit $exitcode
21072