Added checks for ICU libraries (based on a patch by Shachar Shemesh).
[wine] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.57 for Wine 20030618.
4 #
5 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
6 # Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization.  ##
11 ## --------------------- ##
12
13 # Be Bourne compatible
14 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
15   emulate sh
16   NULLCMD=:
17   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
18   # is contrary to our usage.  Disable this feature.
19   alias -g '${1+"$@"}'='"$@"'
20 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
21   set -o posix
22 fi
23
24 # Support unset when possible.
25 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
26   as_unset=unset
27 else
28   as_unset=false
29 fi
30
31
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
34 PS1='$ '
35 PS2='> '
36 PS4='+ '
37
38 # NLS nuisances.
39 for as_var in \
40   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42   LC_TELEPHONE LC_TIME
43 do
44   if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
45     eval $as_var=C; export $as_var
46   else
47     $as_unset $as_var
48   fi
49 done
50
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
53   as_expr=expr
54 else
55   as_expr=false
56 fi
57
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59   as_basename=basename
60 else
61   as_basename=false
62 fi
63
64
65 # Name of the executable.
66 as_me=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68          X"$0" : 'X\(//\)$' \| \
69          X"$0" : 'X\(/\)$' \| \
70          .     : '\(.\)' 2>/dev/null ||
71 echo X/"$0" |
72     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73           /^X\/\(\/\/\)$/{ s//\1/; q; }
74           /^X\/\(\/\).*/{ s//\1/; q; }
75           s/.*/./; q'`
76
77
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
85
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88   echo "#! /bin/sh" >conf$$.sh
89   echo  "exit 0"   >>conf$$.sh
90   chmod +x conf$$.sh
91   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92     PATH_SEPARATOR=';'
93   else
94     PATH_SEPARATOR=:
95   fi
96   rm -f conf$$.sh
97 fi
98
99
100   as_lineno_1=$LINENO
101   as_lineno_2=$LINENO
102   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103   test "x$as_lineno_1" != "x$as_lineno_2" &&
104   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
105   # Find who we are.  Look in the path if we contain no path at all
106   # relative or not.
107   case $0 in
108     *[\\/]* ) as_myself=$0 ;;
109     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110 for as_dir in $PATH
111 do
112   IFS=$as_save_IFS
113   test -z "$as_dir" && as_dir=.
114   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115 done
116
117        ;;
118   esac
119   # We did not find ourselves, most probably we were run as `sh COMMAND'
120   # in which case we are not to be found in the path.
121   if test "x$as_myself" = x; then
122     as_myself=$0
123   fi
124   if test ! -f "$as_myself"; then
125     { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126    { (exit 1); exit 1; }; }
127   fi
128   case $CONFIG_SHELL in
129   '')
130     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132 do
133   IFS=$as_save_IFS
134   test -z "$as_dir" && as_dir=.
135   for as_base in sh bash ksh sh5; do
136          case $as_dir in
137          /*)
138            if ("$as_dir/$as_base" -c '
139   as_lineno_1=$LINENO
140   as_lineno_2=$LINENO
141   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142   test "x$as_lineno_1" != "x$as_lineno_2" &&
143   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
144              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146              CONFIG_SHELL=$as_dir/$as_base
147              export CONFIG_SHELL
148              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149            fi;;
150          esac
151        done
152 done
153 ;;
154   esac
155
156   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157   # uniformly replaced by the line number.  The first 'sed' inserts a
158   # line-number line before each line; the second 'sed' does the real
159   # work.  The second script uses 'N' to pair each line-number line
160   # with the numbered line, and appends trailing '-' during
161   # substitution so that $LINENO is not a special case at line end.
162   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
164   sed '=' <$as_myself |
165     sed '
166       N
167       s,$,-,
168       : loop
169       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170       t loop
171       s,-$,,
172       s,^['$as_cr_digits']*\n,,
173     ' >$as_me.lineno &&
174   chmod +x $as_me.lineno ||
175     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176    { (exit 1); exit 1; }; }
177
178   # Don't try to exec as it changes $[0], causing all sort of problems
179   # (the dirname of $[0] is not the place where we might find the
180   # original and so on.  Autoconf is especially sensible to this).
181   . ./$as_me.lineno
182   # Exit status is that of the last command.
183   exit
184 }
185
186
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188   *c*,-n*) ECHO_N= ECHO_C='
189 ' ECHO_T='      ' ;;
190   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
192 esac
193
194 if expr a : '\(a\)' >/dev/null 2>&1; then
195   as_expr=expr
196 else
197   as_expr=false
198 fi
199
200 rm -f conf$$ conf$$.exe conf$$.file
201 echo >conf$$.file
202 if ln -s conf$$.file conf$$ 2>/dev/null; then
203   # We could just check for DJGPP; but this test a) works b) is more generic
204   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205   if test -f conf$$.exe; then
206     # Don't use ln at all; we don't have any links
207     as_ln_s='cp -p'
208   else
209     as_ln_s='ln -s'
210   fi
211 elif ln conf$$.file conf$$ 2>/dev/null; then
212   as_ln_s=ln
213 else
214   as_ln_s='cp -p'
215 fi
216 rm -f conf$$ conf$$.exe conf$$.file
217
218 if mkdir -p . 2>/dev/null; then
219   as_mkdir_p=:
220 else
221   as_mkdir_p=false
222 fi
223
224 as_executable_p="test -f"
225
226 # Sed expression to map a string onto a valid CPP name.
227 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
228
229 # Sed expression to map a string onto a valid variable name.
230 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
231
232
233 # IFS
234 # We need space, tab and new line, in precisely that order.
235 as_nl='
236 '
237 IFS="   $as_nl"
238
239 # CDPATH.
240 $as_unset CDPATH
241
242
243 # Name of the host.
244 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
245 # so uname gets run too.
246 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
247
248 exec 6>&1
249
250 #
251 # Initializations.
252 #
253 ac_default_prefix=/usr/local
254 ac_config_libobj_dir=.
255 cross_compiling=no
256 subdirs=
257 MFLAGS=
258 MAKEFLAGS=
259 SHELL=${CONFIG_SHELL-/bin/sh}
260
261 # Maximum number of lines to put in a shell here document.
262 # This variable seems obsolete.  It should probably be removed, and
263 # only ac_max_sed_lines should be used.
264 : ${ac_max_here_lines=38}
265
266 # Identity of this package.
267 PACKAGE_NAME='Wine'
268 PACKAGE_TARNAME='wine'
269 PACKAGE_VERSION='20030618'
270 PACKAGE_STRING='Wine 20030618'
271 PACKAGE_BUGREPORT=''
272
273 ac_unique_file="server/atom.c"
274 # Factoring default headers for most tests.
275 ac_includes_default="\
276 #include <stdio.h>
277 #if HAVE_SYS_TYPES_H
278 # include <sys/types.h>
279 #endif
280 #if HAVE_SYS_STAT_H
281 # include <sys/stat.h>
282 #endif
283 #if STDC_HEADERS
284 # include <stdlib.h>
285 # include <stddef.h>
286 #else
287 # if HAVE_STDLIB_H
288 #  include <stdlib.h>
289 # endif
290 #endif
291 #if HAVE_STRING_H
292 # if !STDC_HEADERS && HAVE_MEMORY_H
293 #  include <memory.h>
294 # endif
295 # include <string.h>
296 #endif
297 #if HAVE_STRINGS_H
298 # include <strings.h>
299 #endif
300 #if HAVE_INTTYPES_H
301 # include <inttypes.h>
302 #else
303 # if HAVE_STDINT_H
304 #  include <stdint.h>
305 # endif
306 #endif
307 #if HAVE_UNISTD_H
308 # include <unistd.h>
309 #endif"
310
311 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS WIN16_FILES WIN16_INSTALL LIBPTHREAD build build_cpu build_vendor build_os host host_cpu host_vendor host_os SET_MAKE CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CPP TOOLSDIR X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS YACC LEX LEXLIB LEX_OUTPUT_ROOT XYACC XLEX AS ac_ct_AS LD ac_ct_LD AR ac_ct_AR RANLIB ac_ct_RANLIB STRIP ac_ct_STRIP WINDRES ac_ct_WINDRES LN_S LN C2MAN LDCONFIG INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA LINT LINTFLAGS DB2HTML DB2PDF DB2PS JPEGLIB EGREP GIFLIB XLIB XFILES OPENGLFILES GLU32FILES OPENGL_LIBS NASLIBS CURSESLIBS sane_devel SANELIBS SANEINCL ICULIBS ft_devel ft_devel2 FREETYPEINCL ARTSCCONFIG ARTSLIBS ARTSINCL ALSALIBS AUDIOIOLIBS EXTRACFLAGS DLLEXT DLLFLAGS DLLIBS LDDLLFLAGS LDSHARED LIBEXT IMPLIBEXT DLLTOOL ac_ct_DLLTOOL DLLWRAP ac_ct_DLLWRAP LDEXECFLAGS CROSSTEST CROSSCC CROSSWINDRES LDPATH CRTLIBS LDD ALLOCA LIBOBJS LTLIBOBJS'
312 ac_subst_files='MAKE_RULES MAKE_DLL_RULES MAKE_TEST_RULES MAKE_LIB_RULES MAKE_PROG_RULES'
313
314 # Initialize some variables set by options.
315 ac_init_help=
316 ac_init_version=false
317 # The variables have the same names as the options, with
318 # dashes changed to underlines.
319 cache_file=/dev/null
320 exec_prefix=NONE
321 no_create=
322 no_recursion=
323 prefix=NONE
324 program_prefix=NONE
325 program_suffix=NONE
326 program_transform_name=s,x,x,
327 silent=
328 site=
329 srcdir=
330 verbose=
331 x_includes=NONE
332 x_libraries=NONE
333
334 # Installation directory options.
335 # These are left unexpanded so users can "make install exec_prefix=/foo"
336 # and all the variables that are supposed to be based on exec_prefix
337 # by default will actually change.
338 # Use braces instead of parens because sh, perl, etc. also accept them.
339 bindir='${exec_prefix}/bin'
340 sbindir='${exec_prefix}/sbin'
341 libexecdir='${exec_prefix}/libexec'
342 datadir='${prefix}/share'
343 sysconfdir='${prefix}/etc'
344 sharedstatedir='${prefix}/com'
345 localstatedir='${prefix}/var'
346 libdir='${exec_prefix}/lib'
347 includedir='${prefix}/include'
348 oldincludedir='/usr/include'
349 infodir='${prefix}/info'
350 mandir='${prefix}/man'
351
352 ac_prev=
353 for ac_option
354 do
355   # If the previous option needs an argument, assign it.
356   if test -n "$ac_prev"; then
357     eval "$ac_prev=\$ac_option"
358     ac_prev=
359     continue
360   fi
361
362   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
363
364   # Accept the important Cygnus configure options, so we can diagnose typos.
365
366   case $ac_option in
367
368   -bindir | --bindir | --bindi | --bind | --bin | --bi)
369     ac_prev=bindir ;;
370   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
371     bindir=$ac_optarg ;;
372
373   -build | --build | --buil | --bui | --bu)
374     ac_prev=build_alias ;;
375   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
376     build_alias=$ac_optarg ;;
377
378   -cache-file | --cache-file | --cache-fil | --cache-fi \
379   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
380     ac_prev=cache_file ;;
381   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
382   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
383     cache_file=$ac_optarg ;;
384
385   --config-cache | -C)
386     cache_file=config.cache ;;
387
388   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
389     ac_prev=datadir ;;
390   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
391   | --da=*)
392     datadir=$ac_optarg ;;
393
394   -disable-* | --disable-*)
395     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
396     # Reject names that are not valid shell variable names.
397     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
398       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
399    { (exit 1); exit 1; }; }
400     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
401     eval "enable_$ac_feature=no" ;;
402
403   -enable-* | --enable-*)
404     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
405     # Reject names that are not valid shell variable names.
406     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
407       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
408    { (exit 1); exit 1; }; }
409     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
410     case $ac_option in
411       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
412       *) ac_optarg=yes ;;
413     esac
414     eval "enable_$ac_feature='$ac_optarg'" ;;
415
416   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
417   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
418   | --exec | --exe | --ex)
419     ac_prev=exec_prefix ;;
420   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
421   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
422   | --exec=* | --exe=* | --ex=*)
423     exec_prefix=$ac_optarg ;;
424
425   -gas | --gas | --ga | --g)
426     # Obsolete; use --with-gas.
427     with_gas=yes ;;
428
429   -help | --help | --hel | --he | -h)
430     ac_init_help=long ;;
431   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
432     ac_init_help=recursive ;;
433   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
434     ac_init_help=short ;;
435
436   -host | --host | --hos | --ho)
437     ac_prev=host_alias ;;
438   -host=* | --host=* | --hos=* | --ho=*)
439     host_alias=$ac_optarg ;;
440
441   -includedir | --includedir | --includedi | --included | --include \
442   | --includ | --inclu | --incl | --inc)
443     ac_prev=includedir ;;
444   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
445   | --includ=* | --inclu=* | --incl=* | --inc=*)
446     includedir=$ac_optarg ;;
447
448   -infodir | --infodir | --infodi | --infod | --info | --inf)
449     ac_prev=infodir ;;
450   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
451     infodir=$ac_optarg ;;
452
453   -libdir | --libdir | --libdi | --libd)
454     ac_prev=libdir ;;
455   -libdir=* | --libdir=* | --libdi=* | --libd=*)
456     libdir=$ac_optarg ;;
457
458   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
459   | --libexe | --libex | --libe)
460     ac_prev=libexecdir ;;
461   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
462   | --libexe=* | --libex=* | --libe=*)
463     libexecdir=$ac_optarg ;;
464
465   -localstatedir | --localstatedir | --localstatedi | --localstated \
466   | --localstate | --localstat | --localsta | --localst \
467   | --locals | --local | --loca | --loc | --lo)
468     ac_prev=localstatedir ;;
469   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
470   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
471   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
472     localstatedir=$ac_optarg ;;
473
474   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
475     ac_prev=mandir ;;
476   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
477     mandir=$ac_optarg ;;
478
479   -nfp | --nfp | --nf)
480     # Obsolete; use --without-fp.
481     with_fp=no ;;
482
483   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
484   | --no-cr | --no-c | -n)
485     no_create=yes ;;
486
487   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
488   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
489     no_recursion=yes ;;
490
491   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
492   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
493   | --oldin | --oldi | --old | --ol | --o)
494     ac_prev=oldincludedir ;;
495   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
496   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
497   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
498     oldincludedir=$ac_optarg ;;
499
500   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
501     ac_prev=prefix ;;
502   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
503     prefix=$ac_optarg ;;
504
505   -program-prefix | --program-prefix | --program-prefi | --program-pref \
506   | --program-pre | --program-pr | --program-p)
507     ac_prev=program_prefix ;;
508   -program-prefix=* | --program-prefix=* | --program-prefi=* \
509   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
510     program_prefix=$ac_optarg ;;
511
512   -program-suffix | --program-suffix | --program-suffi | --program-suff \
513   | --program-suf | --program-su | --program-s)
514     ac_prev=program_suffix ;;
515   -program-suffix=* | --program-suffix=* | --program-suffi=* \
516   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
517     program_suffix=$ac_optarg ;;
518
519   -program-transform-name | --program-transform-name \
520   | --program-transform-nam | --program-transform-na \
521   | --program-transform-n | --program-transform- \
522   | --program-transform | --program-transfor \
523   | --program-transfo | --program-transf \
524   | --program-trans | --program-tran \
525   | --progr-tra | --program-tr | --program-t)
526     ac_prev=program_transform_name ;;
527   -program-transform-name=* | --program-transform-name=* \
528   | --program-transform-nam=* | --program-transform-na=* \
529   | --program-transform-n=* | --program-transform-=* \
530   | --program-transform=* | --program-transfor=* \
531   | --program-transfo=* | --program-transf=* \
532   | --program-trans=* | --program-tran=* \
533   | --progr-tra=* | --program-tr=* | --program-t=*)
534     program_transform_name=$ac_optarg ;;
535
536   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
537   | -silent | --silent | --silen | --sile | --sil)
538     silent=yes ;;
539
540   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
541     ac_prev=sbindir ;;
542   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
543   | --sbi=* | --sb=*)
544     sbindir=$ac_optarg ;;
545
546   -sharedstatedir | --sharedstatedir | --sharedstatedi \
547   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
548   | --sharedst | --shareds | --shared | --share | --shar \
549   | --sha | --sh)
550     ac_prev=sharedstatedir ;;
551   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
552   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
553   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
554   | --sha=* | --sh=*)
555     sharedstatedir=$ac_optarg ;;
556
557   -site | --site | --sit)
558     ac_prev=site ;;
559   -site=* | --site=* | --sit=*)
560     site=$ac_optarg ;;
561
562   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
563     ac_prev=srcdir ;;
564   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
565     srcdir=$ac_optarg ;;
566
567   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
568   | --syscon | --sysco | --sysc | --sys | --sy)
569     ac_prev=sysconfdir ;;
570   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
571   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
572     sysconfdir=$ac_optarg ;;
573
574   -target | --target | --targe | --targ | --tar | --ta | --t)
575     ac_prev=target_alias ;;
576   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
577     target_alias=$ac_optarg ;;
578
579   -v | -verbose | --verbose | --verbos | --verbo | --verb)
580     verbose=yes ;;
581
582   -version | --version | --versio | --versi | --vers | -V)
583     ac_init_version=: ;;
584
585   -with-* | --with-*)
586     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
587     # Reject names that are not valid shell variable names.
588     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
589       { echo "$as_me: error: invalid package name: $ac_package" >&2
590    { (exit 1); exit 1; }; }
591     ac_package=`echo $ac_package| sed 's/-/_/g'`
592     case $ac_option in
593       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
594       *) ac_optarg=yes ;;
595     esac
596     eval "with_$ac_package='$ac_optarg'" ;;
597
598   -without-* | --without-*)
599     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
600     # Reject names that are not valid shell variable names.
601     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
602       { echo "$as_me: error: invalid package name: $ac_package" >&2
603    { (exit 1); exit 1; }; }
604     ac_package=`echo $ac_package | sed 's/-/_/g'`
605     eval "with_$ac_package=no" ;;
606
607   --x)
608     # Obsolete; use --with-x.
609     with_x=yes ;;
610
611   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
612   | --x-incl | --x-inc | --x-in | --x-i)
613     ac_prev=x_includes ;;
614   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
615   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
616     x_includes=$ac_optarg ;;
617
618   -x-libraries | --x-libraries | --x-librarie | --x-librari \
619   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
620     ac_prev=x_libraries ;;
621   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
622   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
623     x_libraries=$ac_optarg ;;
624
625   -*) { echo "$as_me: error: unrecognized option: $ac_option
626 Try \`$0 --help' for more information." >&2
627    { (exit 1); exit 1; }; }
628     ;;
629
630   *=*)
631     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
632     # Reject names that are not valid shell variable names.
633     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
634       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
635    { (exit 1); exit 1; }; }
636     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
637     eval "$ac_envvar='$ac_optarg'"
638     export $ac_envvar ;;
639
640   *)
641     # FIXME: should be removed in autoconf 3.0.
642     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
643     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
644       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
645     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
646     ;;
647
648   esac
649 done
650
651 if test -n "$ac_prev"; then
652   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
653   { echo "$as_me: error: missing argument to $ac_option" >&2
654    { (exit 1); exit 1; }; }
655 fi
656
657 # Be sure to have absolute paths.
658 for ac_var in exec_prefix prefix
659 do
660   eval ac_val=$`echo $ac_var`
661   case $ac_val in
662     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
663     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
664    { (exit 1); exit 1; }; };;
665   esac
666 done
667
668 # Be sure to have absolute paths.
669 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
670               localstatedir libdir includedir oldincludedir infodir mandir
671 do
672   eval ac_val=$`echo $ac_var`
673   case $ac_val in
674     [\\/$]* | ?:[\\/]* ) ;;
675     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
676    { (exit 1); exit 1; }; };;
677   esac
678 done
679
680 # There might be people who depend on the old broken behavior: `$host'
681 # used to hold the argument of --host etc.
682 # FIXME: To remove some day.
683 build=$build_alias
684 host=$host_alias
685 target=$target_alias
686
687 # FIXME: To remove some day.
688 if test "x$host_alias" != x; then
689   if test "x$build_alias" = x; then
690     cross_compiling=maybe
691     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
692     If a cross compiler is detected then cross compile mode will be used." >&2
693   elif test "x$build_alias" != "x$host_alias"; then
694     cross_compiling=yes
695   fi
696 fi
697
698 ac_tool_prefix=
699 test -n "$host_alias" && ac_tool_prefix=$host_alias-
700
701 test "$silent" = yes && exec 6>/dev/null
702
703
704 # Find the source files, if location was not specified.
705 if test -z "$srcdir"; then
706   ac_srcdir_defaulted=yes
707   # Try the directory containing this script, then its parent.
708   ac_confdir=`(dirname "$0") 2>/dev/null ||
709 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
710          X"$0" : 'X\(//\)[^/]' \| \
711          X"$0" : 'X\(//\)$' \| \
712          X"$0" : 'X\(/\)' \| \
713          .     : '\(.\)' 2>/dev/null ||
714 echo X"$0" |
715     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
716           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
717           /^X\(\/\/\)$/{ s//\1/; q; }
718           /^X\(\/\).*/{ s//\1/; q; }
719           s/.*/./; q'`
720   srcdir=$ac_confdir
721   if test ! -r $srcdir/$ac_unique_file; then
722     srcdir=..
723   fi
724 else
725   ac_srcdir_defaulted=no
726 fi
727 if test ! -r $srcdir/$ac_unique_file; then
728   if test "$ac_srcdir_defaulted" = yes; then
729     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
730    { (exit 1); exit 1; }; }
731   else
732     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
733    { (exit 1); exit 1; }; }
734   fi
735 fi
736 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
737   { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
738    { (exit 1); exit 1; }; }
739 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
740 ac_env_build_alias_set=${build_alias+set}
741 ac_env_build_alias_value=$build_alias
742 ac_cv_env_build_alias_set=${build_alias+set}
743 ac_cv_env_build_alias_value=$build_alias
744 ac_env_host_alias_set=${host_alias+set}
745 ac_env_host_alias_value=$host_alias
746 ac_cv_env_host_alias_set=${host_alias+set}
747 ac_cv_env_host_alias_value=$host_alias
748 ac_env_target_alias_set=${target_alias+set}
749 ac_env_target_alias_value=$target_alias
750 ac_cv_env_target_alias_set=${target_alias+set}
751 ac_cv_env_target_alias_value=$target_alias
752 ac_env_CC_set=${CC+set}
753 ac_env_CC_value=$CC
754 ac_cv_env_CC_set=${CC+set}
755 ac_cv_env_CC_value=$CC
756 ac_env_CFLAGS_set=${CFLAGS+set}
757 ac_env_CFLAGS_value=$CFLAGS
758 ac_cv_env_CFLAGS_set=${CFLAGS+set}
759 ac_cv_env_CFLAGS_value=$CFLAGS
760 ac_env_LDFLAGS_set=${LDFLAGS+set}
761 ac_env_LDFLAGS_value=$LDFLAGS
762 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
763 ac_cv_env_LDFLAGS_value=$LDFLAGS
764 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
765 ac_env_CPPFLAGS_value=$CPPFLAGS
766 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
767 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
768 ac_env_CPP_set=${CPP+set}
769 ac_env_CPP_value=$CPP
770 ac_cv_env_CPP_set=${CPP+set}
771 ac_cv_env_CPP_value=$CPP
772
773 #
774 # Report the --help message.
775 #
776 if test "$ac_init_help" = "long"; then
777   # Omit some internal or obsolete options to make the list less imposing.
778   # This message is too long to be a string in the A/UX 3.1 sh.
779   cat <<_ACEOF
780 \`configure' configures Wine 20030618 to adapt to many kinds of systems.
781
782 Usage: $0 [OPTION]... [VAR=VALUE]...
783
784 To assign environment variables (e.g., CC, CFLAGS...), specify them as
785 VAR=VALUE.  See below for descriptions of some of the useful variables.
786
787 Defaults for the options are specified in brackets.
788
789 Configuration:
790   -h, --help              display this help and exit
791       --help=short        display options specific to this package
792       --help=recursive    display the short help of all the included packages
793   -V, --version           display version information and exit
794   -q, --quiet, --silent   do not print \`checking...' messages
795       --cache-file=FILE   cache test results in FILE [disabled]
796   -C, --config-cache      alias for \`--cache-file=config.cache'
797   -n, --no-create         do not create output files
798       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
799
800 _ACEOF
801
802   cat <<_ACEOF
803 Installation directories:
804   --prefix=PREFIX         install architecture-independent files in PREFIX
805                           [$ac_default_prefix]
806   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
807                           [PREFIX]
808
809 By default, \`make install' will install all the files in
810 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
811 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
812 for instance \`--prefix=\$HOME'.
813
814 For better control, use the options below.
815
816 Fine tuning of the installation directories:
817   --bindir=DIR           user executables [EPREFIX/bin]
818   --sbindir=DIR          system admin executables [EPREFIX/sbin]
819   --libexecdir=DIR       program executables [EPREFIX/libexec]
820   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
821   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
822   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
823   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
824   --libdir=DIR           object code libraries [EPREFIX/lib]
825   --includedir=DIR       C header files [PREFIX/include]
826   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
827   --infodir=DIR          info documentation [PREFIX/info]
828   --mandir=DIR           man documentation [PREFIX/man]
829 _ACEOF
830
831   cat <<\_ACEOF
832
833 X features:
834   --x-includes=DIR    X include files are in DIR
835   --x-libraries=DIR   X library files are in DIR
836
837 System types:
838   --build=BUILD     configure for building on BUILD [guessed]
839   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
840 _ACEOF
841 fi
842
843 if test -n "$ac_init_help"; then
844   case $ac_init_help in
845      short | recursive ) echo "Configuration of Wine 20030618:";;
846    esac
847   cat <<\_ACEOF
848
849 Optional Features:
850   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
851   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
852   --disable-win16         do not include Win16 support
853   --disable-debug         compile out all debugging messages
854   --disable-trace         compile out TRACE messages
855
856 Optional Packages:
857   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
858   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
859   --without-opengl        do not use OpenGL
860   --without-curses        do not use curses
861   --with-nptl             use glibc NPTL threading support
862   --with-wine-tools=<dir> use Wine tools from directory <dir>
863   --with-x                use the X Window System
864
865 Some influential environment variables:
866   CC          C compiler command
867   CFLAGS      C compiler flags
868   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
869               nonstandard directory <lib dir>
870   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
871               headers in a nonstandard directory <include dir>
872   CPP         C preprocessor
873
874 Use these variables to override the choices made by `configure' or to help
875 it to find libraries and programs with nonstandard names/locations.
876
877 _ACEOF
878 fi
879
880 if test "$ac_init_help" = "recursive"; then
881   # If there are subdirs, report their specific --help.
882   ac_popdir=`pwd`
883   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
884     test -d $ac_dir || continue
885     ac_builddir=.
886
887 if test "$ac_dir" != .; then
888   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
889   # A "../" for each directory in $ac_dir_suffix.
890   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
891 else
892   ac_dir_suffix= ac_top_builddir=
893 fi
894
895 case $srcdir in
896   .)  # No --srcdir option.  We are building in place.
897     ac_srcdir=.
898     if test -z "$ac_top_builddir"; then
899        ac_top_srcdir=.
900     else
901        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
902     fi ;;
903   [\\/]* | ?:[\\/]* )  # Absolute path.
904     ac_srcdir=$srcdir$ac_dir_suffix;
905     ac_top_srcdir=$srcdir ;;
906   *) # Relative path.
907     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
908     ac_top_srcdir=$ac_top_builddir$srcdir ;;
909 esac
910 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
911 # absolute.
912 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
913 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
914 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
915 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
916
917     cd $ac_dir
918     # Check for guested configure; otherwise get Cygnus style configure.
919     if test -f $ac_srcdir/configure.gnu; then
920       echo
921       $SHELL $ac_srcdir/configure.gnu  --help=recursive
922     elif test -f $ac_srcdir/configure; then
923       echo
924       $SHELL $ac_srcdir/configure  --help=recursive
925     elif test -f $ac_srcdir/configure.ac ||
926            test -f $ac_srcdir/configure.in; then
927       echo
928       $ac_configure --help
929     else
930       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
931     fi
932     cd $ac_popdir
933   done
934 fi
935
936 test -n "$ac_init_help" && exit 0
937 if $ac_init_version; then
938   cat <<\_ACEOF
939 Wine configure 20030618
940 generated by GNU Autoconf 2.57
941
942 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
943 Free Software Foundation, Inc.
944 This configure script is free software; the Free Software Foundation
945 gives unlimited permission to copy, distribute and modify it.
946 _ACEOF
947   exit 0
948 fi
949 exec 5>config.log
950 cat >&5 <<_ACEOF
951 This file contains any messages produced by compilers while
952 running configure, to aid debugging if configure makes a mistake.
953
954 It was created by Wine $as_me 20030618, which was
955 generated by GNU Autoconf 2.57.  Invocation command line was
956
957   $ $0 $@
958
959 _ACEOF
960 {
961 cat <<_ASUNAME
962 ## --------- ##
963 ## Platform. ##
964 ## --------- ##
965
966 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
967 uname -m = `(uname -m) 2>/dev/null || echo unknown`
968 uname -r = `(uname -r) 2>/dev/null || echo unknown`
969 uname -s = `(uname -s) 2>/dev/null || echo unknown`
970 uname -v = `(uname -v) 2>/dev/null || echo unknown`
971
972 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
973 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
974
975 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
976 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
977 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
978 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
979 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
980 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
981 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
982
983 _ASUNAME
984
985 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
986 for as_dir in $PATH
987 do
988   IFS=$as_save_IFS
989   test -z "$as_dir" && as_dir=.
990   echo "PATH: $as_dir"
991 done
992
993 } >&5
994
995 cat >&5 <<_ACEOF
996
997
998 ## ----------- ##
999 ## Core tests. ##
1000 ## ----------- ##
1001
1002 _ACEOF
1003
1004
1005 # Keep a trace of the command line.
1006 # Strip out --no-create and --no-recursion so they do not pile up.
1007 # Strip out --silent because we don't want to record it for future runs.
1008 # Also quote any args containing shell meta-characters.
1009 # Make two passes to allow for proper duplicate-argument suppression.
1010 ac_configure_args=
1011 ac_configure_args0=
1012 ac_configure_args1=
1013 ac_sep=
1014 ac_must_keep_next=false
1015 for ac_pass in 1 2
1016 do
1017   for ac_arg
1018   do
1019     case $ac_arg in
1020     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1021     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1022     | -silent | --silent | --silen | --sile | --sil)
1023       continue ;;
1024     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1025       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1026     esac
1027     case $ac_pass in
1028     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1029     2)
1030       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1031       if test $ac_must_keep_next = true; then
1032         ac_must_keep_next=false # Got value, back to normal.
1033       else
1034         case $ac_arg in
1035           *=* | --config-cache | -C | -disable-* | --disable-* \
1036           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1037           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1038           | -with-* | --with-* | -without-* | --without-* | --x)
1039             case "$ac_configure_args0 " in
1040               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1041             esac
1042             ;;
1043           -* ) ac_must_keep_next=true ;;
1044         esac
1045       fi
1046       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1047       # Get rid of the leading space.
1048       ac_sep=" "
1049       ;;
1050     esac
1051   done
1052 done
1053 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1054 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1055
1056 # When interrupted or exit'd, cleanup temporary files, and complete
1057 # config.log.  We remove comments because anyway the quotes in there
1058 # would cause problems or look ugly.
1059 # WARNING: Be sure not to use single quotes in there, as some shells,
1060 # such as our DU 5.0 friend, will then `close' the trap.
1061 trap 'exit_status=$?
1062   # Save into config.log some information that might help in debugging.
1063   {
1064     echo
1065
1066     cat <<\_ASBOX
1067 ## ---------------- ##
1068 ## Cache variables. ##
1069 ## ---------------- ##
1070 _ASBOX
1071     echo
1072     # The following way of writing the cache mishandles newlines in values,
1073 {
1074   (set) 2>&1 |
1075     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1076     *ac_space=\ *)
1077       sed -n \
1078         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1079           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1080       ;;
1081     *)
1082       sed -n \
1083         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1084       ;;
1085     esac;
1086 }
1087     echo
1088
1089     cat <<\_ASBOX
1090 ## ----------------- ##
1091 ## Output variables. ##
1092 ## ----------------- ##
1093 _ASBOX
1094     echo
1095     for ac_var in $ac_subst_vars
1096     do
1097       eval ac_val=$`echo $ac_var`
1098       echo "$ac_var='"'"'$ac_val'"'"'"
1099     done | sort
1100     echo
1101
1102     if test -n "$ac_subst_files"; then
1103       cat <<\_ASBOX
1104 ## ------------- ##
1105 ## Output files. ##
1106 ## ------------- ##
1107 _ASBOX
1108       echo
1109       for ac_var in $ac_subst_files
1110       do
1111         eval ac_val=$`echo $ac_var`
1112         echo "$ac_var='"'"'$ac_val'"'"'"
1113       done | sort
1114       echo
1115     fi
1116
1117     if test -s confdefs.h; then
1118       cat <<\_ASBOX
1119 ## ----------- ##
1120 ## confdefs.h. ##
1121 ## ----------- ##
1122 _ASBOX
1123       echo
1124       sed "/^$/d" confdefs.h | sort
1125       echo
1126     fi
1127     test "$ac_signal" != 0 &&
1128       echo "$as_me: caught signal $ac_signal"
1129     echo "$as_me: exit $exit_status"
1130   } >&5
1131   rm -f core core.* *.core &&
1132   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1133     exit $exit_status
1134      ' 0
1135 for ac_signal in 1 2 13 15; do
1136   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1137 done
1138 ac_signal=0
1139
1140 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1141 rm -rf conftest* confdefs.h
1142 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1143 echo >confdefs.h
1144
1145 # Predefined preprocessor variables.
1146
1147 cat >>confdefs.h <<_ACEOF
1148 #define PACKAGE_NAME "$PACKAGE_NAME"
1149 _ACEOF
1150
1151
1152 cat >>confdefs.h <<_ACEOF
1153 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1154 _ACEOF
1155
1156
1157 cat >>confdefs.h <<_ACEOF
1158 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1159 _ACEOF
1160
1161
1162 cat >>confdefs.h <<_ACEOF
1163 #define PACKAGE_STRING "$PACKAGE_STRING"
1164 _ACEOF
1165
1166
1167 cat >>confdefs.h <<_ACEOF
1168 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1169 _ACEOF
1170
1171
1172 # Let the site file select an alternate cache file if it wants to.
1173 # Prefer explicitly selected file to automatically selected ones.
1174 if test -z "$CONFIG_SITE"; then
1175   if test "x$prefix" != xNONE; then
1176     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1177   else
1178     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1179   fi
1180 fi
1181 for ac_site_file in $CONFIG_SITE; do
1182   if test -r "$ac_site_file"; then
1183     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1184 echo "$as_me: loading site script $ac_site_file" >&6;}
1185     sed 's/^/| /' "$ac_site_file" >&5
1186     . "$ac_site_file"
1187   fi
1188 done
1189
1190 if test -r "$cache_file"; then
1191   # Some versions of bash will fail to source /dev/null (special
1192   # files actually), so we avoid doing that.
1193   if test -f "$cache_file"; then
1194     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1195 echo "$as_me: loading cache $cache_file" >&6;}
1196     case $cache_file in
1197       [\\/]* | ?:[\\/]* ) . $cache_file;;
1198       *)                      . ./$cache_file;;
1199     esac
1200   fi
1201 else
1202   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1203 echo "$as_me: creating cache $cache_file" >&6;}
1204   >$cache_file
1205 fi
1206
1207 # Check that the precious variables saved in the cache have kept the same
1208 # value.
1209 ac_cache_corrupted=false
1210 for ac_var in `(set) 2>&1 |
1211                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1212   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1213   eval ac_new_set=\$ac_env_${ac_var}_set
1214   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1215   eval ac_new_val="\$ac_env_${ac_var}_value"
1216   case $ac_old_set,$ac_new_set in
1217     set,)
1218       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1219 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1220       ac_cache_corrupted=: ;;
1221     ,set)
1222       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1223 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1224       ac_cache_corrupted=: ;;
1225     ,);;
1226     *)
1227       if test "x$ac_old_val" != "x$ac_new_val"; then
1228         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1229 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1230         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1231 echo "$as_me:   former value:  $ac_old_val" >&2;}
1232         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1233 echo "$as_me:   current value: $ac_new_val" >&2;}
1234         ac_cache_corrupted=:
1235       fi;;
1236   esac
1237   # Pass precious variables to config.status.
1238   if test "$ac_new_set" = set; then
1239     case $ac_new_val in
1240     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1241       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1242     *) ac_arg=$ac_var=$ac_new_val ;;
1243     esac
1244     case " $ac_configure_args " in
1245       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1246       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1247     esac
1248   fi
1249 done
1250 if $ac_cache_corrupted; then
1251   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1252 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1253   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1254 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1255    { (exit 1); exit 1; }; }
1256 fi
1257
1258 ac_ext=c
1259 ac_cpp='$CPP $CPPFLAGS'
1260 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1261 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1262 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291           ac_config_headers="$ac_config_headers include/config.h"
1292
1293 ac_aux_dir=
1294 for ac_dir in tools $srcdir/tools; do
1295   if test -f $ac_dir/install-sh; then
1296     ac_aux_dir=$ac_dir
1297     ac_install_sh="$ac_aux_dir/install-sh -c"
1298     break
1299   elif test -f $ac_dir/install.sh; then
1300     ac_aux_dir=$ac_dir
1301     ac_install_sh="$ac_aux_dir/install.sh -c"
1302     break
1303   elif test -f $ac_dir/shtool; then
1304     ac_aux_dir=$ac_dir
1305     ac_install_sh="$ac_aux_dir/shtool install -c"
1306     break
1307   fi
1308 done
1309 if test -z "$ac_aux_dir"; then
1310   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in tools $srcdir/tools" >&5
1311 echo "$as_me: error: cannot find install-sh or install.sh in tools $srcdir/tools" >&2;}
1312    { (exit 1); exit 1; }; }
1313 fi
1314 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1315 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1316 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1317
1318
1319
1320 # Check whether --enable-win16 or --disable-win16 was given.
1321 if test "${enable_win16+set}" = set; then
1322   enableval="$enable_win16"
1323
1324 fi;
1325 # Check whether --enable-debug or --disable-debug was given.
1326 if test "${enable_debug+set}" = set; then
1327   enableval="$enable_debug"
1328
1329 fi;
1330 # Check whether --enable-trace or --disable-trace was given.
1331 if test "${enable_trace+set}" = set; then
1332   enableval="$enable_trace"
1333
1334 fi;
1335
1336
1337 # Check whether --with-opengl or --without-opengl was given.
1338 if test "${with_opengl+set}" = set; then
1339   withval="$with_opengl"
1340
1341 fi;
1342
1343 # Check whether --with-curses or --without-curses was given.
1344 if test "${with_curses+set}" = set; then
1345   withval="$with_curses"
1346
1347 fi;
1348
1349 # Check whether --with-nptl or --without-nptl was given.
1350 if test "${with_nptl+set}" = set; then
1351   withval="$with_nptl"
1352
1353 fi;
1354
1355 # Check whether --with-wine-tools or --without-wine-tools was given.
1356 if test "${with_wine_tools+set}" = set; then
1357   withval="$with_wine_tools"
1358
1359 fi;
1360
1361 WIN16_FILES="\$(WIN16_FILES)"
1362
1363 WIN16_INSTALL="\$(WIN16_INSTALL)"
1364
1365 if test "x$enable_win16" = "xno"
1366 then
1367   WIN16_FILES=""
1368   WIN16_INSTALL=""
1369 fi
1370 if test "x$enable_debug" = "xno"
1371 then
1372
1373 cat >>confdefs.h <<\_ACEOF
1374 #define NO_DEBUG_MSGS 1
1375 _ACEOF
1376
1377 fi
1378 if test "x$enable_trace" = "xno" -o "x$enable_debug" = "xno"
1379 then
1380
1381 cat >>confdefs.h <<\_ACEOF
1382 #define NO_TRACE_MSGS 1
1383 _ACEOF
1384
1385 fi
1386 if test "x$with_nptl" = "xyes"
1387 then
1388
1389 cat >>confdefs.h <<\_ACEOF
1390 #define HAVE_NPTL 1
1391 _ACEOF
1392
1393     LIBPTHREAD="-lpthread"
1394
1395 fi
1396
1397
1398 # Make sure we can run config.sub.
1399 $ac_config_sub sun4 >/dev/null 2>&1 ||
1400   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1401 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1402    { (exit 1); exit 1; }; }
1403
1404 echo "$as_me:$LINENO: checking build system type" >&5
1405 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1406 if test "${ac_cv_build+set}" = set; then
1407   echo $ECHO_N "(cached) $ECHO_C" >&6
1408 else
1409   ac_cv_build_alias=$build_alias
1410 test -z "$ac_cv_build_alias" &&
1411   ac_cv_build_alias=`$ac_config_guess`
1412 test -z "$ac_cv_build_alias" &&
1413   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1414 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1415    { (exit 1); exit 1; }; }
1416 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1417   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1418 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1419    { (exit 1); exit 1; }; }
1420
1421 fi
1422 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1423 echo "${ECHO_T}$ac_cv_build" >&6
1424 build=$ac_cv_build
1425 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1426 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1427 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1428
1429
1430 echo "$as_me:$LINENO: checking host system type" >&5
1431 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1432 if test "${ac_cv_host+set}" = set; then
1433   echo $ECHO_N "(cached) $ECHO_C" >&6
1434 else
1435   ac_cv_host_alias=$host_alias
1436 test -z "$ac_cv_host_alias" &&
1437   ac_cv_host_alias=$ac_cv_build_alias
1438 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1439   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1440 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1441    { (exit 1); exit 1; }; }
1442
1443 fi
1444 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1445 echo "${ECHO_T}$ac_cv_host" >&6
1446 host=$ac_cv_host
1447 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1448 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1449 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1450
1451
1452 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1453 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1454 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
1455 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1456   echo $ECHO_N "(cached) $ECHO_C" >&6
1457 else
1458   cat >conftest.make <<\_ACEOF
1459 all:
1460         @echo 'ac_maketemp="$(MAKE)"'
1461 _ACEOF
1462 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1463 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1464 if test -n "$ac_maketemp"; then
1465   eval ac_cv_prog_make_${ac_make}_set=yes
1466 else
1467   eval ac_cv_prog_make_${ac_make}_set=no
1468 fi
1469 rm -f conftest.make
1470 fi
1471 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1472   echo "$as_me:$LINENO: result: yes" >&5
1473 echo "${ECHO_T}yes" >&6
1474   SET_MAKE=
1475 else
1476   echo "$as_me:$LINENO: result: no" >&5
1477 echo "${ECHO_T}no" >&6
1478   SET_MAKE="MAKE=${MAKE-make}"
1479 fi
1480
1481 ac_ext=c
1482 ac_cpp='$CPP $CPPFLAGS'
1483 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1484 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1485 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1486 if test -n "$ac_tool_prefix"; then
1487   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1488 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1489 echo "$as_me:$LINENO: checking for $ac_word" >&5
1490 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1491 if test "${ac_cv_prog_CC+set}" = set; then
1492   echo $ECHO_N "(cached) $ECHO_C" >&6
1493 else
1494   if test -n "$CC"; then
1495   ac_cv_prog_CC="$CC" # Let the user override the test.
1496 else
1497 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1498 for as_dir in $PATH
1499 do
1500   IFS=$as_save_IFS
1501   test -z "$as_dir" && as_dir=.
1502   for ac_exec_ext in '' $ac_executable_extensions; do
1503   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1504     ac_cv_prog_CC="${ac_tool_prefix}gcc"
1505     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1506     break 2
1507   fi
1508 done
1509 done
1510
1511 fi
1512 fi
1513 CC=$ac_cv_prog_CC
1514 if test -n "$CC"; then
1515   echo "$as_me:$LINENO: result: $CC" >&5
1516 echo "${ECHO_T}$CC" >&6
1517 else
1518   echo "$as_me:$LINENO: result: no" >&5
1519 echo "${ECHO_T}no" >&6
1520 fi
1521
1522 fi
1523 if test -z "$ac_cv_prog_CC"; then
1524   ac_ct_CC=$CC
1525   # Extract the first word of "gcc", so it can be a program name with args.
1526 set dummy gcc; ac_word=$2
1527 echo "$as_me:$LINENO: checking for $ac_word" >&5
1528 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1529 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1530   echo $ECHO_N "(cached) $ECHO_C" >&6
1531 else
1532   if test -n "$ac_ct_CC"; then
1533   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1534 else
1535 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1536 for as_dir in $PATH
1537 do
1538   IFS=$as_save_IFS
1539   test -z "$as_dir" && as_dir=.
1540   for ac_exec_ext in '' $ac_executable_extensions; do
1541   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1542     ac_cv_prog_ac_ct_CC="gcc"
1543     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1544     break 2
1545   fi
1546 done
1547 done
1548
1549 fi
1550 fi
1551 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1552 if test -n "$ac_ct_CC"; then
1553   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1554 echo "${ECHO_T}$ac_ct_CC" >&6
1555 else
1556   echo "$as_me:$LINENO: result: no" >&5
1557 echo "${ECHO_T}no" >&6
1558 fi
1559
1560   CC=$ac_ct_CC
1561 else
1562   CC="$ac_cv_prog_CC"
1563 fi
1564
1565 if test -z "$CC"; then
1566   if test -n "$ac_tool_prefix"; then
1567   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1568 set dummy ${ac_tool_prefix}cc; ac_word=$2
1569 echo "$as_me:$LINENO: checking for $ac_word" >&5
1570 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1571 if test "${ac_cv_prog_CC+set}" = set; then
1572   echo $ECHO_N "(cached) $ECHO_C" >&6
1573 else
1574   if test -n "$CC"; then
1575   ac_cv_prog_CC="$CC" # Let the user override the test.
1576 else
1577 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1578 for as_dir in $PATH
1579 do
1580   IFS=$as_save_IFS
1581   test -z "$as_dir" && as_dir=.
1582   for ac_exec_ext in '' $ac_executable_extensions; do
1583   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1584     ac_cv_prog_CC="${ac_tool_prefix}cc"
1585     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1586     break 2
1587   fi
1588 done
1589 done
1590
1591 fi
1592 fi
1593 CC=$ac_cv_prog_CC
1594 if test -n "$CC"; then
1595   echo "$as_me:$LINENO: result: $CC" >&5
1596 echo "${ECHO_T}$CC" >&6
1597 else
1598   echo "$as_me:$LINENO: result: no" >&5
1599 echo "${ECHO_T}no" >&6
1600 fi
1601
1602 fi
1603 if test -z "$ac_cv_prog_CC"; then
1604   ac_ct_CC=$CC
1605   # Extract the first word of "cc", so it can be a program name with args.
1606 set dummy cc; ac_word=$2
1607 echo "$as_me:$LINENO: checking for $ac_word" >&5
1608 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1609 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1610   echo $ECHO_N "(cached) $ECHO_C" >&6
1611 else
1612   if test -n "$ac_ct_CC"; then
1613   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1614 else
1615 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1616 for as_dir in $PATH
1617 do
1618   IFS=$as_save_IFS
1619   test -z "$as_dir" && as_dir=.
1620   for ac_exec_ext in '' $ac_executable_extensions; do
1621   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1622     ac_cv_prog_ac_ct_CC="cc"
1623     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1624     break 2
1625   fi
1626 done
1627 done
1628
1629 fi
1630 fi
1631 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1632 if test -n "$ac_ct_CC"; then
1633   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1634 echo "${ECHO_T}$ac_ct_CC" >&6
1635 else
1636   echo "$as_me:$LINENO: result: no" >&5
1637 echo "${ECHO_T}no" >&6
1638 fi
1639
1640   CC=$ac_ct_CC
1641 else
1642   CC="$ac_cv_prog_CC"
1643 fi
1644
1645 fi
1646 if test -z "$CC"; then
1647   # Extract the first word of "cc", so it can be a program name with args.
1648 set dummy cc; ac_word=$2
1649 echo "$as_me:$LINENO: checking for $ac_word" >&5
1650 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1651 if test "${ac_cv_prog_CC+set}" = set; then
1652   echo $ECHO_N "(cached) $ECHO_C" >&6
1653 else
1654   if test -n "$CC"; then
1655   ac_cv_prog_CC="$CC" # Let the user override the test.
1656 else
1657   ac_prog_rejected=no
1658 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1659 for as_dir in $PATH
1660 do
1661   IFS=$as_save_IFS
1662   test -z "$as_dir" && as_dir=.
1663   for ac_exec_ext in '' $ac_executable_extensions; do
1664   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1665     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1666        ac_prog_rejected=yes
1667        continue
1668      fi
1669     ac_cv_prog_CC="cc"
1670     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1671     break 2
1672   fi
1673 done
1674 done
1675
1676 if test $ac_prog_rejected = yes; then
1677   # We found a bogon in the path, so make sure we never use it.
1678   set dummy $ac_cv_prog_CC
1679   shift
1680   if test $# != 0; then
1681     # We chose a different compiler from the bogus one.
1682     # However, it has the same basename, so the bogon will be chosen
1683     # first if we set CC to just the basename; use the full file name.
1684     shift
1685     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1686   fi
1687 fi
1688 fi
1689 fi
1690 CC=$ac_cv_prog_CC
1691 if test -n "$CC"; then
1692   echo "$as_me:$LINENO: result: $CC" >&5
1693 echo "${ECHO_T}$CC" >&6
1694 else
1695   echo "$as_me:$LINENO: result: no" >&5
1696 echo "${ECHO_T}no" >&6
1697 fi
1698
1699 fi
1700 if test -z "$CC"; then
1701   if test -n "$ac_tool_prefix"; then
1702   for ac_prog in cl
1703   do
1704     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1705 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1706 echo "$as_me:$LINENO: checking for $ac_word" >&5
1707 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1708 if test "${ac_cv_prog_CC+set}" = set; then
1709   echo $ECHO_N "(cached) $ECHO_C" >&6
1710 else
1711   if test -n "$CC"; then
1712   ac_cv_prog_CC="$CC" # Let the user override the test.
1713 else
1714 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1715 for as_dir in $PATH
1716 do
1717   IFS=$as_save_IFS
1718   test -z "$as_dir" && as_dir=.
1719   for ac_exec_ext in '' $ac_executable_extensions; do
1720   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1721     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1722     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1723     break 2
1724   fi
1725 done
1726 done
1727
1728 fi
1729 fi
1730 CC=$ac_cv_prog_CC
1731 if test -n "$CC"; then
1732   echo "$as_me:$LINENO: result: $CC" >&5
1733 echo "${ECHO_T}$CC" >&6
1734 else
1735   echo "$as_me:$LINENO: result: no" >&5
1736 echo "${ECHO_T}no" >&6
1737 fi
1738
1739     test -n "$CC" && break
1740   done
1741 fi
1742 if test -z "$CC"; then
1743   ac_ct_CC=$CC
1744   for ac_prog in cl
1745 do
1746   # Extract the first word of "$ac_prog", so it can be a program name with args.
1747 set dummy $ac_prog; ac_word=$2
1748 echo "$as_me:$LINENO: checking for $ac_word" >&5
1749 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1750 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1751   echo $ECHO_N "(cached) $ECHO_C" >&6
1752 else
1753   if test -n "$ac_ct_CC"; then
1754   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1755 else
1756 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1757 for as_dir in $PATH
1758 do
1759   IFS=$as_save_IFS
1760   test -z "$as_dir" && as_dir=.
1761   for ac_exec_ext in '' $ac_executable_extensions; do
1762   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1763     ac_cv_prog_ac_ct_CC="$ac_prog"
1764     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1765     break 2
1766   fi
1767 done
1768 done
1769
1770 fi
1771 fi
1772 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1773 if test -n "$ac_ct_CC"; then
1774   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1775 echo "${ECHO_T}$ac_ct_CC" >&6
1776 else
1777   echo "$as_me:$LINENO: result: no" >&5
1778 echo "${ECHO_T}no" >&6
1779 fi
1780
1781   test -n "$ac_ct_CC" && break
1782 done
1783
1784   CC=$ac_ct_CC
1785 fi
1786
1787 fi
1788
1789
1790 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1791 See \`config.log' for more details." >&5
1792 echo "$as_me: error: no acceptable C compiler found in \$PATH
1793 See \`config.log' for more details." >&2;}
1794    { (exit 1); exit 1; }; }
1795
1796 # Provide some information about the compiler.
1797 echo "$as_me:$LINENO:" \
1798      "checking for C compiler version" >&5
1799 ac_compiler=`set X $ac_compile; echo $2`
1800 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1801   (eval $ac_compiler --version </dev/null >&5) 2>&5
1802   ac_status=$?
1803   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1804   (exit $ac_status); }
1805 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1806   (eval $ac_compiler -v </dev/null >&5) 2>&5
1807   ac_status=$?
1808   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1809   (exit $ac_status); }
1810 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1811   (eval $ac_compiler -V </dev/null >&5) 2>&5
1812   ac_status=$?
1813   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1814   (exit $ac_status); }
1815
1816 cat >conftest.$ac_ext <<_ACEOF
1817 #line $LINENO "configure"
1818 /* confdefs.h.  */
1819 _ACEOF
1820 cat confdefs.h >>conftest.$ac_ext
1821 cat >>conftest.$ac_ext <<_ACEOF
1822 /* end confdefs.h.  */
1823
1824 int
1825 main ()
1826 {
1827
1828   ;
1829   return 0;
1830 }
1831 _ACEOF
1832 ac_clean_files_save=$ac_clean_files
1833 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1834 # Try to create an executable without -o first, disregard a.out.
1835 # It will help us diagnose broken compilers, and finding out an intuition
1836 # of exeext.
1837 echo "$as_me:$LINENO: checking for C compiler default output" >&5
1838 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1839 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1840 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1841   (eval $ac_link_default) 2>&5
1842   ac_status=$?
1843   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1844   (exit $ac_status); }; then
1845   # Find the output, starting from the most likely.  This scheme is
1846 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1847 # resort.
1848
1849 # Be careful to initialize this variable, since it used to be cached.
1850 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1851 ac_cv_exeext=
1852 # b.out is created by i960 compilers.
1853 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1854 do
1855   test -f "$ac_file" || continue
1856   case $ac_file in
1857     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1858         ;;
1859     conftest.$ac_ext )
1860         # This is the source file.
1861         ;;
1862     [ab].out )
1863         # We found the default executable, but exeext='' is most
1864         # certainly right.
1865         break;;
1866     *.* )
1867         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1868         # FIXME: I believe we export ac_cv_exeext for Libtool,
1869         # but it would be cool to find out if it's true.  Does anybody
1870         # maintain Libtool? --akim.
1871         export ac_cv_exeext
1872         break;;
1873     * )
1874         break;;
1875   esac
1876 done
1877 else
1878   echo "$as_me: failed program was:" >&5
1879 sed 's/^/| /' conftest.$ac_ext >&5
1880
1881 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1882 See \`config.log' for more details." >&5
1883 echo "$as_me: error: C compiler cannot create executables
1884 See \`config.log' for more details." >&2;}
1885    { (exit 77); exit 77; }; }
1886 fi
1887
1888 ac_exeext=$ac_cv_exeext
1889 echo "$as_me:$LINENO: result: $ac_file" >&5
1890 echo "${ECHO_T}$ac_file" >&6
1891
1892 # Check the compiler produces executables we can run.  If not, either
1893 # the compiler is broken, or we cross compile.
1894 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1895 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1896 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1897 # If not cross compiling, check that we can run a simple program.
1898 if test "$cross_compiling" != yes; then
1899   if { ac_try='./$ac_file'
1900   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1901   (eval $ac_try) 2>&5
1902   ac_status=$?
1903   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1904   (exit $ac_status); }; }; then
1905     cross_compiling=no
1906   else
1907     if test "$cross_compiling" = maybe; then
1908         cross_compiling=yes
1909     else
1910         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1911 If you meant to cross compile, use \`--host'.
1912 See \`config.log' for more details." >&5
1913 echo "$as_me: error: cannot run C compiled programs.
1914 If you meant to cross compile, use \`--host'.
1915 See \`config.log' for more details." >&2;}
1916    { (exit 1); exit 1; }; }
1917     fi
1918   fi
1919 fi
1920 echo "$as_me:$LINENO: result: yes" >&5
1921 echo "${ECHO_T}yes" >&6
1922
1923 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1924 ac_clean_files=$ac_clean_files_save
1925 # Check the compiler produces executables we can run.  If not, either
1926 # the compiler is broken, or we cross compile.
1927 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1928 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1929 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1930 echo "${ECHO_T}$cross_compiling" >&6
1931
1932 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1933 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1934 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1935   (eval $ac_link) 2>&5
1936   ac_status=$?
1937   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1938   (exit $ac_status); }; then
1939   # If both `conftest.exe' and `conftest' are `present' (well, observable)
1940 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
1941 # work properly (i.e., refer to `conftest.exe'), while it won't with
1942 # `rm'.
1943 for ac_file in conftest.exe conftest conftest.*; do
1944   test -f "$ac_file" || continue
1945   case $ac_file in
1946     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1947     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1948           export ac_cv_exeext
1949           break;;
1950     * ) break;;
1951   esac
1952 done
1953 else
1954   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1955 See \`config.log' for more details." >&5
1956 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1957 See \`config.log' for more details." >&2;}
1958    { (exit 1); exit 1; }; }
1959 fi
1960
1961 rm -f conftest$ac_cv_exeext
1962 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1963 echo "${ECHO_T}$ac_cv_exeext" >&6
1964
1965 rm -f conftest.$ac_ext
1966 EXEEXT=$ac_cv_exeext
1967 ac_exeext=$EXEEXT
1968 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1969 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1970 if test "${ac_cv_objext+set}" = set; then
1971   echo $ECHO_N "(cached) $ECHO_C" >&6
1972 else
1973   cat >conftest.$ac_ext <<_ACEOF
1974 #line $LINENO "configure"
1975 /* confdefs.h.  */
1976 _ACEOF
1977 cat confdefs.h >>conftest.$ac_ext
1978 cat >>conftest.$ac_ext <<_ACEOF
1979 /* end confdefs.h.  */
1980
1981 int
1982 main ()
1983 {
1984
1985   ;
1986   return 0;
1987 }
1988 _ACEOF
1989 rm -f conftest.o conftest.obj
1990 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1991   (eval $ac_compile) 2>&5
1992   ac_status=$?
1993   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1994   (exit $ac_status); }; then
1995   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1996   case $ac_file in
1997     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1998     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1999        break;;
2000   esac
2001 done
2002 else
2003   echo "$as_me: failed program was:" >&5
2004 sed 's/^/| /' conftest.$ac_ext >&5
2005
2006 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2007 See \`config.log' for more details." >&5
2008 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2009 See \`config.log' for more details." >&2;}
2010    { (exit 1); exit 1; }; }
2011 fi
2012
2013 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2014 fi
2015 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2016 echo "${ECHO_T}$ac_cv_objext" >&6
2017 OBJEXT=$ac_cv_objext
2018 ac_objext=$OBJEXT
2019 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2020 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2021 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2022   echo $ECHO_N "(cached) $ECHO_C" >&6
2023 else
2024   cat >conftest.$ac_ext <<_ACEOF
2025 #line $LINENO "configure"
2026 /* confdefs.h.  */
2027 _ACEOF
2028 cat confdefs.h >>conftest.$ac_ext
2029 cat >>conftest.$ac_ext <<_ACEOF
2030 /* end confdefs.h.  */
2031
2032 int
2033 main ()
2034 {
2035 #ifndef __GNUC__
2036        choke me
2037 #endif
2038
2039   ;
2040   return 0;
2041 }
2042 _ACEOF
2043 rm -f conftest.$ac_objext
2044 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2045   (eval $ac_compile) 2>&5
2046   ac_status=$?
2047   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2048   (exit $ac_status); } &&
2049          { ac_try='test -s conftest.$ac_objext'
2050   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2051   (eval $ac_try) 2>&5
2052   ac_status=$?
2053   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2054   (exit $ac_status); }; }; then
2055   ac_compiler_gnu=yes
2056 else
2057   echo "$as_me: failed program was:" >&5
2058 sed 's/^/| /' conftest.$ac_ext >&5
2059
2060 ac_compiler_gnu=no
2061 fi
2062 rm -f conftest.$ac_objext conftest.$ac_ext
2063 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2064
2065 fi
2066 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2067 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2068 GCC=`test $ac_compiler_gnu = yes && echo yes`
2069 ac_test_CFLAGS=${CFLAGS+set}
2070 ac_save_CFLAGS=$CFLAGS
2071 CFLAGS="-g"
2072 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2073 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2074 if test "${ac_cv_prog_cc_g+set}" = set; then
2075   echo $ECHO_N "(cached) $ECHO_C" >&6
2076 else
2077   cat >conftest.$ac_ext <<_ACEOF
2078 #line $LINENO "configure"
2079 /* confdefs.h.  */
2080 _ACEOF
2081 cat confdefs.h >>conftest.$ac_ext
2082 cat >>conftest.$ac_ext <<_ACEOF
2083 /* end confdefs.h.  */
2084
2085 int
2086 main ()
2087 {
2088
2089   ;
2090   return 0;
2091 }
2092 _ACEOF
2093 rm -f conftest.$ac_objext
2094 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2095   (eval $ac_compile) 2>&5
2096   ac_status=$?
2097   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2098   (exit $ac_status); } &&
2099          { ac_try='test -s conftest.$ac_objext'
2100   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2101   (eval $ac_try) 2>&5
2102   ac_status=$?
2103   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2104   (exit $ac_status); }; }; then
2105   ac_cv_prog_cc_g=yes
2106 else
2107   echo "$as_me: failed program was:" >&5
2108 sed 's/^/| /' conftest.$ac_ext >&5
2109
2110 ac_cv_prog_cc_g=no
2111 fi
2112 rm -f conftest.$ac_objext conftest.$ac_ext
2113 fi
2114 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2115 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2116 if test "$ac_test_CFLAGS" = set; then
2117   CFLAGS=$ac_save_CFLAGS
2118 elif test $ac_cv_prog_cc_g = yes; then
2119   if test "$GCC" = yes; then
2120     CFLAGS="-g -O2"
2121   else
2122     CFLAGS="-g"
2123   fi
2124 else
2125   if test "$GCC" = yes; then
2126     CFLAGS="-O2"
2127   else
2128     CFLAGS=
2129   fi
2130 fi
2131 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2132 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2133 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2134   echo $ECHO_N "(cached) $ECHO_C" >&6
2135 else
2136   ac_cv_prog_cc_stdc=no
2137 ac_save_CC=$CC
2138 cat >conftest.$ac_ext <<_ACEOF
2139 #line $LINENO "configure"
2140 /* confdefs.h.  */
2141 _ACEOF
2142 cat confdefs.h >>conftest.$ac_ext
2143 cat >>conftest.$ac_ext <<_ACEOF
2144 /* end confdefs.h.  */
2145 #include <stdarg.h>
2146 #include <stdio.h>
2147 #include <sys/types.h>
2148 #include <sys/stat.h>
2149 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2150 struct buf { int x; };
2151 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2152 static char *e (p, i)
2153      char **p;
2154      int i;
2155 {
2156   return p[i];
2157 }
2158 static char *f (char * (*g) (char **, int), char **p, ...)
2159 {
2160   char *s;
2161   va_list v;
2162   va_start (v,p);
2163   s = g (p, va_arg (v,int));
2164   va_end (v);
2165   return s;
2166 }
2167 int test (int i, double x);
2168 struct s1 {int (*f) (int a);};
2169 struct s2 {int (*f) (double a);};
2170 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2171 int argc;
2172 char **argv;
2173 int
2174 main ()
2175 {
2176 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2177   ;
2178   return 0;
2179 }
2180 _ACEOF
2181 # Don't try gcc -ansi; that turns off useful extensions and
2182 # breaks some systems' header files.
2183 # AIX                   -qlanglvl=ansi
2184 # Ultrix and OSF/1      -std1
2185 # HP-UX 10.20 and later -Ae
2186 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2187 # SVR4                  -Xc -D__EXTENSIONS__
2188 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2189 do
2190   CC="$ac_save_CC $ac_arg"
2191   rm -f conftest.$ac_objext
2192 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2193   (eval $ac_compile) 2>&5
2194   ac_status=$?
2195   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2196   (exit $ac_status); } &&
2197          { ac_try='test -s conftest.$ac_objext'
2198   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2199   (eval $ac_try) 2>&5
2200   ac_status=$?
2201   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2202   (exit $ac_status); }; }; then
2203   ac_cv_prog_cc_stdc=$ac_arg
2204 break
2205 else
2206   echo "$as_me: failed program was:" >&5
2207 sed 's/^/| /' conftest.$ac_ext >&5
2208
2209 fi
2210 rm -f conftest.$ac_objext
2211 done
2212 rm -f conftest.$ac_ext conftest.$ac_objext
2213 CC=$ac_save_CC
2214
2215 fi
2216
2217 case "x$ac_cv_prog_cc_stdc" in
2218   x|xno)
2219     echo "$as_me:$LINENO: result: none needed" >&5
2220 echo "${ECHO_T}none needed" >&6 ;;
2221   *)
2222     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2223 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2224     CC="$CC $ac_cv_prog_cc_stdc" ;;
2225 esac
2226
2227 # Some people use a C++ compiler to compile C.  Since we use `exit',
2228 # in C++ we need to declare it.  In case someone uses the same compiler
2229 # for both compiling C and C++ we need to have the C++ compiler decide
2230 # the declaration of exit, since it's the most demanding environment.
2231 cat >conftest.$ac_ext <<_ACEOF
2232 #ifndef __cplusplus
2233   choke me
2234 #endif
2235 _ACEOF
2236 rm -f conftest.$ac_objext
2237 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2238   (eval $ac_compile) 2>&5
2239   ac_status=$?
2240   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2241   (exit $ac_status); } &&
2242          { ac_try='test -s conftest.$ac_objext'
2243   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2244   (eval $ac_try) 2>&5
2245   ac_status=$?
2246   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2247   (exit $ac_status); }; }; then
2248   for ac_declaration in \
2249    '' \
2250    'extern "C" void std::exit (int) throw (); using std::exit;' \
2251    'extern "C" void std::exit (int); using std::exit;' \
2252    'extern "C" void exit (int) throw ();' \
2253    'extern "C" void exit (int);' \
2254    'void exit (int);'
2255 do
2256   cat >conftest.$ac_ext <<_ACEOF
2257 #line $LINENO "configure"
2258 /* confdefs.h.  */
2259 _ACEOF
2260 cat confdefs.h >>conftest.$ac_ext
2261 cat >>conftest.$ac_ext <<_ACEOF
2262 /* end confdefs.h.  */
2263 $ac_declaration
2264 #include <stdlib.h>
2265 int
2266 main ()
2267 {
2268 exit (42);
2269   ;
2270   return 0;
2271 }
2272 _ACEOF
2273 rm -f conftest.$ac_objext
2274 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2275   (eval $ac_compile) 2>&5
2276   ac_status=$?
2277   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2278   (exit $ac_status); } &&
2279          { ac_try='test -s conftest.$ac_objext'
2280   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2281   (eval $ac_try) 2>&5
2282   ac_status=$?
2283   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2284   (exit $ac_status); }; }; then
2285   :
2286 else
2287   echo "$as_me: failed program was:" >&5
2288 sed 's/^/| /' conftest.$ac_ext >&5
2289
2290 continue
2291 fi
2292 rm -f conftest.$ac_objext conftest.$ac_ext
2293   cat >conftest.$ac_ext <<_ACEOF
2294 #line $LINENO "configure"
2295 /* confdefs.h.  */
2296 _ACEOF
2297 cat confdefs.h >>conftest.$ac_ext
2298 cat >>conftest.$ac_ext <<_ACEOF
2299 /* end confdefs.h.  */
2300 $ac_declaration
2301 int
2302 main ()
2303 {
2304 exit (42);
2305   ;
2306   return 0;
2307 }
2308 _ACEOF
2309 rm -f conftest.$ac_objext
2310 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2311   (eval $ac_compile) 2>&5
2312   ac_status=$?
2313   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2314   (exit $ac_status); } &&
2315          { ac_try='test -s conftest.$ac_objext'
2316   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2317   (eval $ac_try) 2>&5
2318   ac_status=$?
2319   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2320   (exit $ac_status); }; }; then
2321   break
2322 else
2323   echo "$as_me: failed program was:" >&5
2324 sed 's/^/| /' conftest.$ac_ext >&5
2325
2326 fi
2327 rm -f conftest.$ac_objext conftest.$ac_ext
2328 done
2329 rm -f conftest*
2330 if test -n "$ac_declaration"; then
2331   echo '#ifdef __cplusplus' >>confdefs.h
2332   echo $ac_declaration      >>confdefs.h
2333   echo '#endif'             >>confdefs.h
2334 fi
2335
2336 else
2337   echo "$as_me: failed program was:" >&5
2338 sed 's/^/| /' conftest.$ac_ext >&5
2339
2340 fi
2341 rm -f conftest.$ac_objext conftest.$ac_ext
2342 ac_ext=c
2343 ac_cpp='$CPP $CPPFLAGS'
2344 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2345 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2346 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2347
2348 ac_ext=c
2349 ac_cpp='$CPP $CPPFLAGS'
2350 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2351 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2352 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2353 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2354 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2355 # On Suns, sometimes $CPP names a directory.
2356 if test -n "$CPP" && test -d "$CPP"; then
2357   CPP=
2358 fi
2359 if test -z "$CPP"; then
2360   if test "${ac_cv_prog_CPP+set}" = set; then
2361   echo $ECHO_N "(cached) $ECHO_C" >&6
2362 else
2363       # Double quotes because CPP needs to be expanded
2364     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2365     do
2366       ac_preproc_ok=false
2367 for ac_c_preproc_warn_flag in '' yes
2368 do
2369   # Use a header file that comes with gcc, so configuring glibc
2370   # with a fresh cross-compiler works.
2371   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2372   # <limits.h> exists even on freestanding compilers.
2373   # On the NeXT, cc -E runs the code through the compiler's parser,
2374   # not just through cpp. "Syntax error" is here to catch this case.
2375   cat >conftest.$ac_ext <<_ACEOF
2376 #line $LINENO "configure"
2377 /* confdefs.h.  */
2378 _ACEOF
2379 cat confdefs.h >>conftest.$ac_ext
2380 cat >>conftest.$ac_ext <<_ACEOF
2381 /* end confdefs.h.  */
2382 #ifdef __STDC__
2383 # include <limits.h>
2384 #else
2385 # include <assert.h>
2386 #endif
2387                      Syntax error
2388 _ACEOF
2389 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2390   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2391   ac_status=$?
2392   grep -v '^ *+' conftest.er1 >conftest.err
2393   rm -f conftest.er1
2394   cat conftest.err >&5
2395   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2396   (exit $ac_status); } >/dev/null; then
2397   if test -s conftest.err; then
2398     ac_cpp_err=$ac_c_preproc_warn_flag
2399   else
2400     ac_cpp_err=
2401   fi
2402 else
2403   ac_cpp_err=yes
2404 fi
2405 if test -z "$ac_cpp_err"; then
2406   :
2407 else
2408   echo "$as_me: failed program was:" >&5
2409 sed 's/^/| /' conftest.$ac_ext >&5
2410
2411   # Broken: fails on valid input.
2412 continue
2413 fi
2414 rm -f conftest.err conftest.$ac_ext
2415
2416   # OK, works on sane cases.  Now check whether non-existent headers
2417   # can be detected and how.
2418   cat >conftest.$ac_ext <<_ACEOF
2419 #line $LINENO "configure"
2420 /* confdefs.h.  */
2421 _ACEOF
2422 cat confdefs.h >>conftest.$ac_ext
2423 cat >>conftest.$ac_ext <<_ACEOF
2424 /* end confdefs.h.  */
2425 #include <ac_nonexistent.h>
2426 _ACEOF
2427 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2428   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2429   ac_status=$?
2430   grep -v '^ *+' conftest.er1 >conftest.err
2431   rm -f conftest.er1
2432   cat conftest.err >&5
2433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2434   (exit $ac_status); } >/dev/null; then
2435   if test -s conftest.err; then
2436     ac_cpp_err=$ac_c_preproc_warn_flag
2437   else
2438     ac_cpp_err=
2439   fi
2440 else
2441   ac_cpp_err=yes
2442 fi
2443 if test -z "$ac_cpp_err"; then
2444   # Broken: success on invalid input.
2445 continue
2446 else
2447   echo "$as_me: failed program was:" >&5
2448 sed 's/^/| /' conftest.$ac_ext >&5
2449
2450   # Passes both tests.
2451 ac_preproc_ok=:
2452 break
2453 fi
2454 rm -f conftest.err conftest.$ac_ext
2455
2456 done
2457 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2458 rm -f conftest.err conftest.$ac_ext
2459 if $ac_preproc_ok; then
2460   break
2461 fi
2462
2463     done
2464     ac_cv_prog_CPP=$CPP
2465
2466 fi
2467   CPP=$ac_cv_prog_CPP
2468 else
2469   ac_cv_prog_CPP=$CPP
2470 fi
2471 echo "$as_me:$LINENO: result: $CPP" >&5
2472 echo "${ECHO_T}$CPP" >&6
2473 ac_preproc_ok=false
2474 for ac_c_preproc_warn_flag in '' yes
2475 do
2476   # Use a header file that comes with gcc, so configuring glibc
2477   # with a fresh cross-compiler works.
2478   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2479   # <limits.h> exists even on freestanding compilers.
2480   # On the NeXT, cc -E runs the code through the compiler's parser,
2481   # not just through cpp. "Syntax error" is here to catch this case.
2482   cat >conftest.$ac_ext <<_ACEOF
2483 #line $LINENO "configure"
2484 /* confdefs.h.  */
2485 _ACEOF
2486 cat confdefs.h >>conftest.$ac_ext
2487 cat >>conftest.$ac_ext <<_ACEOF
2488 /* end confdefs.h.  */
2489 #ifdef __STDC__
2490 # include <limits.h>
2491 #else
2492 # include <assert.h>
2493 #endif
2494                      Syntax error
2495 _ACEOF
2496 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2497   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2498   ac_status=$?
2499   grep -v '^ *+' conftest.er1 >conftest.err
2500   rm -f conftest.er1
2501   cat conftest.err >&5
2502   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2503   (exit $ac_status); } >/dev/null; then
2504   if test -s conftest.err; then
2505     ac_cpp_err=$ac_c_preproc_warn_flag
2506   else
2507     ac_cpp_err=
2508   fi
2509 else
2510   ac_cpp_err=yes
2511 fi
2512 if test -z "$ac_cpp_err"; then
2513   :
2514 else
2515   echo "$as_me: failed program was:" >&5
2516 sed 's/^/| /' conftest.$ac_ext >&5
2517
2518   # Broken: fails on valid input.
2519 continue
2520 fi
2521 rm -f conftest.err conftest.$ac_ext
2522
2523   # OK, works on sane cases.  Now check whether non-existent headers
2524   # can be detected and how.
2525   cat >conftest.$ac_ext <<_ACEOF
2526 #line $LINENO "configure"
2527 /* confdefs.h.  */
2528 _ACEOF
2529 cat confdefs.h >>conftest.$ac_ext
2530 cat >>conftest.$ac_ext <<_ACEOF
2531 /* end confdefs.h.  */
2532 #include <ac_nonexistent.h>
2533 _ACEOF
2534 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2535   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2536   ac_status=$?
2537   grep -v '^ *+' conftest.er1 >conftest.err
2538   rm -f conftest.er1
2539   cat conftest.err >&5
2540   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2541   (exit $ac_status); } >/dev/null; then
2542   if test -s conftest.err; then
2543     ac_cpp_err=$ac_c_preproc_warn_flag
2544   else
2545     ac_cpp_err=
2546   fi
2547 else
2548   ac_cpp_err=yes
2549 fi
2550 if test -z "$ac_cpp_err"; then
2551   # Broken: success on invalid input.
2552 continue
2553 else
2554   echo "$as_me: failed program was:" >&5
2555 sed 's/^/| /' conftest.$ac_ext >&5
2556
2557   # Passes both tests.
2558 ac_preproc_ok=:
2559 break
2560 fi
2561 rm -f conftest.err conftest.$ac_ext
2562
2563 done
2564 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2565 rm -f conftest.err conftest.$ac_ext
2566 if $ac_preproc_ok; then
2567   :
2568 else
2569   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2570 See \`config.log' for more details." >&5
2571 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2572 See \`config.log' for more details." >&2;}
2573    { (exit 1); exit 1; }; }
2574 fi
2575
2576 ac_ext=c
2577 ac_cpp='$CPP $CPPFLAGS'
2578 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2579 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2580 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2581
2582
2583 echo "$as_me:$LINENO: checking for the directory containing the Wine tools" >&5
2584 echo $ECHO_N "checking for the directory containing the Wine tools... $ECHO_C" >&6
2585 if test "${wine_cv_toolsdir+set}" = set; then
2586   echo $ECHO_N "(cached) $ECHO_C" >&6
2587 else
2588   if test -z "$with_wine_tools"; then
2589      if test "$cross_compiling" = "yes"; then
2590        { { echo "$as_me:$LINENO: error: you must use the --with-wine-tools option when cross-compiling." >&5
2591 echo "$as_me: error: you must use the --with-wine-tools option when cross-compiling." >&2;}
2592    { (exit 1); exit 1; }; }
2593      else
2594        wine_cv_toolsdir="\$(TOPOBJDIR)"
2595      fi
2596    elif test -d "$with_wine_tools/tools/winebuild"; then
2597      case $with_wine_tools in
2598        /*) wine_cv_toolsdir="$with_wine_tools" ;;
2599        *)  wine_cv_toolsdir="\$(TOPOBJDIR)/$with_wine_tools" ;;
2600      esac
2601    else
2602      { { echo "$as_me:$LINENO: error: could not find Wine tools in $with_wine_tools." >&5
2603 echo "$as_me: error: could not find Wine tools in $with_wine_tools." >&2;}
2604    { (exit 1); exit 1; }; }
2605    fi
2606 fi
2607 echo "$as_me:$LINENO: result: $wine_cv_toolsdir" >&5
2608 echo "${ECHO_T}$wine_cv_toolsdir" >&6
2609 TOOLSDIR=$wine_cv_toolsdir
2610
2611
2612
2613
2614 echo "$as_me:$LINENO: checking for X" >&5
2615 echo $ECHO_N "checking for X... $ECHO_C" >&6
2616
2617
2618 # Check whether --with-x or --without-x was given.
2619 if test "${with_x+set}" = set; then
2620   withval="$with_x"
2621
2622 fi;
2623 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
2624 if test "x$with_x" = xno; then
2625   # The user explicitly disabled X.
2626   have_x=disabled
2627 else
2628   if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
2629     # Both variables are already set.
2630     have_x=yes
2631   else
2632     if test "${ac_cv_have_x+set}" = set; then
2633   echo $ECHO_N "(cached) $ECHO_C" >&6
2634 else
2635   # One or both of the vars are not set, and there is no cached value.
2636 ac_x_includes=no ac_x_libraries=no
2637 rm -fr conftest.dir
2638 if mkdir conftest.dir; then
2639   cd conftest.dir
2640   # Make sure to not put "make" in the Imakefile rules, since we grep it out.
2641   cat >Imakefile <<'_ACEOF'
2642 acfindx:
2643         @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
2644 _ACEOF
2645   if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
2646     # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2647     eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
2648     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
2649     for ac_extension in a so sl; do
2650       if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
2651          test -f $ac_im_libdir/libX11.$ac_extension; then
2652         ac_im_usrlibdir=$ac_im_libdir; break
2653       fi
2654     done
2655     # Screen out bogus values from the imake configuration.  They are
2656     # bogus both because they are the default anyway, and because
2657     # using them would break gcc on systems where it needs fixed includes.
2658     case $ac_im_incroot in
2659         /usr/include) ;;
2660         *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
2661     esac
2662     case $ac_im_usrlibdir in
2663         /usr/lib | /lib) ;;
2664         *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
2665     esac
2666   fi
2667   cd ..
2668   rm -fr conftest.dir
2669 fi
2670
2671 # Standard set of common directories for X headers.
2672 # Check X11 before X11Rn because it is often a symlink to the current release.
2673 ac_x_header_dirs='
2674 /usr/X11/include
2675 /usr/X11R6/include
2676 /usr/X11R5/include
2677 /usr/X11R4/include
2678
2679 /usr/include/X11
2680 /usr/include/X11R6
2681 /usr/include/X11R5
2682 /usr/include/X11R4
2683
2684 /usr/local/X11/include
2685 /usr/local/X11R6/include
2686 /usr/local/X11R5/include
2687 /usr/local/X11R4/include
2688
2689 /usr/local/include/X11
2690 /usr/local/include/X11R6
2691 /usr/local/include/X11R5
2692 /usr/local/include/X11R4
2693
2694 /usr/X386/include
2695 /usr/x386/include
2696 /usr/XFree86/include/X11
2697
2698 /usr/include
2699 /usr/local/include
2700 /usr/unsupported/include
2701 /usr/athena/include
2702 /usr/local/x11r5/include
2703 /usr/lpp/Xamples/include
2704
2705 /usr/openwin/include
2706 /usr/openwin/share/include'
2707
2708 if test "$ac_x_includes" = no; then
2709   # Guess where to find include files, by looking for Intrinsic.h.
2710   # First, try using that file with no special directory specified.
2711   cat >conftest.$ac_ext <<_ACEOF
2712 #line $LINENO "configure"
2713 /* confdefs.h.  */
2714 _ACEOF
2715 cat confdefs.h >>conftest.$ac_ext
2716 cat >>conftest.$ac_ext <<_ACEOF
2717 /* end confdefs.h.  */
2718 #include <X11/Intrinsic.h>
2719 _ACEOF
2720 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2721   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2722   ac_status=$?
2723   grep -v '^ *+' conftest.er1 >conftest.err
2724   rm -f conftest.er1
2725   cat conftest.err >&5
2726   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2727   (exit $ac_status); } >/dev/null; then
2728   if test -s conftest.err; then
2729     ac_cpp_err=$ac_c_preproc_warn_flag
2730   else
2731     ac_cpp_err=
2732   fi
2733 else
2734   ac_cpp_err=yes
2735 fi
2736 if test -z "$ac_cpp_err"; then
2737   # We can compile using X headers with no special include directory.
2738 ac_x_includes=
2739 else
2740   echo "$as_me: failed program was:" >&5
2741 sed 's/^/| /' conftest.$ac_ext >&5
2742
2743   for ac_dir in $ac_x_header_dirs; do
2744   if test -r "$ac_dir/X11/Intrinsic.h"; then
2745     ac_x_includes=$ac_dir
2746     break
2747   fi
2748 done
2749 fi
2750 rm -f conftest.err conftest.$ac_ext
2751 fi # $ac_x_includes = no
2752
2753 if test "$ac_x_libraries" = no; then
2754   # Check for the libraries.
2755   # See if we find them without any special options.
2756   # Don't add to $LIBS permanently.
2757   ac_save_LIBS=$LIBS
2758   LIBS="-lXt $LIBS"
2759   cat >conftest.$ac_ext <<_ACEOF
2760 #line $LINENO "configure"
2761 /* confdefs.h.  */
2762 _ACEOF
2763 cat confdefs.h >>conftest.$ac_ext
2764 cat >>conftest.$ac_ext <<_ACEOF
2765 /* end confdefs.h.  */
2766 #include <X11/Intrinsic.h>
2767 int
2768 main ()
2769 {
2770 XtMalloc (0)
2771   ;
2772   return 0;
2773 }
2774 _ACEOF
2775 rm -f conftest.$ac_objext conftest$ac_exeext
2776 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2777   (eval $ac_link) 2>&5
2778   ac_status=$?
2779   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2780   (exit $ac_status); } &&
2781          { ac_try='test -s conftest$ac_exeext'
2782   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2783   (eval $ac_try) 2>&5
2784   ac_status=$?
2785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2786   (exit $ac_status); }; }; then
2787   LIBS=$ac_save_LIBS
2788 # We can link X programs with no special library path.
2789 ac_x_libraries=
2790 else
2791   echo "$as_me: failed program was:" >&5
2792 sed 's/^/| /' conftest.$ac_ext >&5
2793
2794 LIBS=$ac_save_LIBS
2795 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
2796 do
2797   # Don't even attempt the hair of trying to link an X program!
2798   for ac_extension in a so sl; do
2799     if test -r $ac_dir/libXt.$ac_extension; then
2800       ac_x_libraries=$ac_dir
2801       break 2
2802     fi
2803   done
2804 done
2805 fi
2806 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2807 fi # $ac_x_libraries = no
2808
2809 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
2810   # Didn't find X anywhere.  Cache the known absence of X.
2811   ac_cv_have_x="have_x=no"
2812 else
2813   # Record where we found X for the cache.
2814   ac_cv_have_x="have_x=yes \
2815                 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
2816 fi
2817 fi
2818
2819   fi
2820   eval "$ac_cv_have_x"
2821 fi # $with_x != no
2822
2823 if test "$have_x" != yes; then
2824   echo "$as_me:$LINENO: result: $have_x" >&5
2825 echo "${ECHO_T}$have_x" >&6
2826   no_x=yes
2827 else
2828   # If each of the values was on the command line, it overrides each guess.
2829   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
2830   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
2831   # Update the cache value to reflect the command line values.
2832   ac_cv_have_x="have_x=yes \
2833                 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
2834   echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
2835 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
2836 fi
2837
2838 if test "$no_x" = yes; then
2839   # Not all programs may use this symbol, but it does not hurt to define it.
2840
2841 cat >>confdefs.h <<\_ACEOF
2842 #define X_DISPLAY_MISSING 1
2843 _ACEOF
2844
2845   X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
2846 else
2847   if test -n "$x_includes"; then
2848     X_CFLAGS="$X_CFLAGS -I$x_includes"
2849   fi
2850
2851   # It would also be nice to do this for all -L options, not just this one.
2852   if test -n "$x_libraries"; then
2853     X_LIBS="$X_LIBS -L$x_libraries"
2854     # For Solaris; some versions of Sun CC require a space after -R and
2855     # others require no space.  Words are not sufficient . . . .
2856     case `(uname -sr) 2>/dev/null` in
2857     "SunOS 5"*)
2858       echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
2859 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
2860       ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
2861       cat >conftest.$ac_ext <<_ACEOF
2862 #line $LINENO "configure"
2863 /* confdefs.h.  */
2864 _ACEOF
2865 cat confdefs.h >>conftest.$ac_ext
2866 cat >>conftest.$ac_ext <<_ACEOF
2867 /* end confdefs.h.  */
2868
2869 int
2870 main ()
2871 {
2872
2873   ;
2874   return 0;
2875 }
2876 _ACEOF
2877 rm -f conftest.$ac_objext conftest$ac_exeext
2878 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2879   (eval $ac_link) 2>&5
2880   ac_status=$?
2881   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2882   (exit $ac_status); } &&
2883          { ac_try='test -s conftest$ac_exeext'
2884   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2885   (eval $ac_try) 2>&5
2886   ac_status=$?
2887   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2888   (exit $ac_status); }; }; then
2889   ac_R_nospace=yes
2890 else
2891   echo "$as_me: failed program was:" >&5
2892 sed 's/^/| /' conftest.$ac_ext >&5
2893
2894 ac_R_nospace=no
2895 fi
2896 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2897       if test $ac_R_nospace = yes; then
2898         echo "$as_me:$LINENO: result: no" >&5
2899 echo "${ECHO_T}no" >&6
2900         X_LIBS="$X_LIBS -R$x_libraries"
2901       else
2902         LIBS="$ac_xsave_LIBS -R $x_libraries"
2903         cat >conftest.$ac_ext <<_ACEOF
2904 #line $LINENO "configure"
2905 /* confdefs.h.  */
2906 _ACEOF
2907 cat confdefs.h >>conftest.$ac_ext
2908 cat >>conftest.$ac_ext <<_ACEOF
2909 /* end confdefs.h.  */
2910
2911 int
2912 main ()
2913 {
2914
2915   ;
2916   return 0;
2917 }
2918 _ACEOF
2919 rm -f conftest.$ac_objext conftest$ac_exeext
2920 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2921   (eval $ac_link) 2>&5
2922   ac_status=$?
2923   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2924   (exit $ac_status); } &&
2925          { ac_try='test -s conftest$ac_exeext'
2926   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2927   (eval $ac_try) 2>&5
2928   ac_status=$?
2929   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2930   (exit $ac_status); }; }; then
2931   ac_R_space=yes
2932 else
2933   echo "$as_me: failed program was:" >&5
2934 sed 's/^/| /' conftest.$ac_ext >&5
2935
2936 ac_R_space=no
2937 fi
2938 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2939         if test $ac_R_space = yes; then
2940           echo "$as_me:$LINENO: result: yes" >&5
2941 echo "${ECHO_T}yes" >&6
2942           X_LIBS="$X_LIBS -R $x_libraries"
2943         else
2944           echo "$as_me:$LINENO: result: neither works" >&5
2945 echo "${ECHO_T}neither works" >&6
2946         fi
2947       fi
2948       LIBS=$ac_xsave_LIBS
2949     esac
2950   fi
2951
2952   # Check for system-dependent libraries X programs must link with.
2953   # Do this before checking for the system-independent R6 libraries
2954   # (-lICE), since we may need -lsocket or whatever for X linking.
2955
2956   if test "$ISC" = yes; then
2957     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
2958   else
2959     # Martyn Johnson says this is needed for Ultrix, if the X
2960     # libraries were built with DECnet support.  And Karl Berry says
2961     # the Alpha needs dnet_stub (dnet does not exist).
2962     ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
2963     cat >conftest.$ac_ext <<_ACEOF
2964 #line $LINENO "configure"
2965 /* confdefs.h.  */
2966 _ACEOF
2967 cat confdefs.h >>conftest.$ac_ext
2968 cat >>conftest.$ac_ext <<_ACEOF
2969 /* end confdefs.h.  */
2970
2971 /* Override any gcc2 internal prototype to avoid an error.  */
2972 #ifdef __cplusplus
2973 extern "C"
2974 #endif
2975 /* We use char because int might match the return type of a gcc2
2976    builtin and then its argument prototype would still apply.  */
2977 char XOpenDisplay ();
2978 int
2979 main ()
2980 {
2981 XOpenDisplay ();
2982   ;
2983   return 0;
2984 }
2985 _ACEOF
2986 rm -f conftest.$ac_objext conftest$ac_exeext
2987 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2988   (eval $ac_link) 2>&5
2989   ac_status=$?
2990   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2991   (exit $ac_status); } &&
2992          { ac_try='test -s conftest$ac_exeext'
2993   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2994   (eval $ac_try) 2>&5
2995   ac_status=$?
2996   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2997   (exit $ac_status); }; }; then
2998   :
2999 else
3000   echo "$as_me: failed program was:" >&5
3001 sed 's/^/| /' conftest.$ac_ext >&5
3002
3003 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
3004 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
3005 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
3006   echo $ECHO_N "(cached) $ECHO_C" >&6
3007 else
3008   ac_check_lib_save_LIBS=$LIBS
3009 LIBS="-ldnet  $LIBS"
3010 cat >conftest.$ac_ext <<_ACEOF
3011 #line $LINENO "configure"
3012 /* confdefs.h.  */
3013 _ACEOF
3014 cat confdefs.h >>conftest.$ac_ext
3015 cat >>conftest.$ac_ext <<_ACEOF
3016 /* end confdefs.h.  */
3017
3018 /* Override any gcc2 internal prototype to avoid an error.  */
3019 #ifdef __cplusplus
3020 extern "C"
3021 #endif
3022 /* We use char because int might match the return type of a gcc2
3023    builtin and then its argument prototype would still apply.  */
3024 char dnet_ntoa ();
3025 int
3026 main ()
3027 {
3028 dnet_ntoa ();
3029   ;
3030   return 0;
3031 }
3032 _ACEOF
3033 rm -f conftest.$ac_objext conftest$ac_exeext
3034 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3035   (eval $ac_link) 2>&5
3036   ac_status=$?
3037   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3038   (exit $ac_status); } &&
3039          { ac_try='test -s conftest$ac_exeext'
3040   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3041   (eval $ac_try) 2>&5
3042   ac_status=$?
3043   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3044   (exit $ac_status); }; }; then
3045   ac_cv_lib_dnet_dnet_ntoa=yes
3046 else
3047   echo "$as_me: failed program was:" >&5
3048 sed 's/^/| /' conftest.$ac_ext >&5
3049
3050 ac_cv_lib_dnet_dnet_ntoa=no
3051 fi
3052 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3053 LIBS=$ac_check_lib_save_LIBS
3054 fi
3055 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
3056 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
3057 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
3058   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
3059 fi
3060
3061     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
3062       echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
3063 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
3064 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
3065   echo $ECHO_N "(cached) $ECHO_C" >&6
3066 else
3067   ac_check_lib_save_LIBS=$LIBS
3068 LIBS="-ldnet_stub  $LIBS"
3069 cat >conftest.$ac_ext <<_ACEOF
3070 #line $LINENO "configure"
3071 /* confdefs.h.  */
3072 _ACEOF
3073 cat confdefs.h >>conftest.$ac_ext
3074 cat >>conftest.$ac_ext <<_ACEOF
3075 /* end confdefs.h.  */
3076
3077 /* Override any gcc2 internal prototype to avoid an error.  */
3078 #ifdef __cplusplus
3079 extern "C"
3080 #endif
3081 /* We use char because int might match the return type of a gcc2
3082    builtin and then its argument prototype would still apply.  */
3083 char dnet_ntoa ();
3084 int
3085 main ()
3086 {
3087 dnet_ntoa ();
3088   ;
3089   return 0;
3090 }
3091 _ACEOF
3092 rm -f conftest.$ac_objext conftest$ac_exeext
3093 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3094   (eval $ac_link) 2>&5
3095   ac_status=$?
3096   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3097   (exit $ac_status); } &&
3098          { ac_try='test -s conftest$ac_exeext'
3099   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3100   (eval $ac_try) 2>&5
3101   ac_status=$?
3102   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3103   (exit $ac_status); }; }; then
3104   ac_cv_lib_dnet_stub_dnet_ntoa=yes
3105 else
3106   echo "$as_me: failed program was:" >&5
3107 sed 's/^/| /' conftest.$ac_ext >&5
3108
3109 ac_cv_lib_dnet_stub_dnet_ntoa=no
3110 fi
3111 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3112 LIBS=$ac_check_lib_save_LIBS
3113 fi
3114 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
3115 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
3116 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
3117   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
3118 fi
3119
3120     fi
3121 fi
3122 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3123     LIBS="$ac_xsave_LIBS"
3124
3125     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
3126     # to get the SysV transport functions.
3127     # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
3128     # needs -lnsl.
3129     # The nsl library prevents programs from opening the X display
3130     # on Irix 5.2, according to T.E. Dickey.
3131     # The functions gethostbyname, getservbyname, and inet_addr are
3132     # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
3133     echo "$as_me:$LINENO: checking for gethostbyname" >&5
3134 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
3135 if test "${ac_cv_func_gethostbyname+set}" = set; then
3136   echo $ECHO_N "(cached) $ECHO_C" >&6
3137 else
3138   cat >conftest.$ac_ext <<_ACEOF
3139 #line $LINENO "configure"
3140 /* confdefs.h.  */
3141 _ACEOF
3142 cat confdefs.h >>conftest.$ac_ext
3143 cat >>conftest.$ac_ext <<_ACEOF
3144 /* end confdefs.h.  */
3145 /* System header to define __stub macros and hopefully few prototypes,
3146     which can conflict with char gethostbyname (); below.
3147     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3148     <limits.h> exists even on freestanding compilers.  */
3149 #ifdef __STDC__
3150 # include <limits.h>
3151 #else
3152 # include <assert.h>
3153 #endif
3154 /* Override any gcc2 internal prototype to avoid an error.  */
3155 #ifdef __cplusplus
3156 extern "C"
3157 {
3158 #endif
3159 /* We use char because int might match the return type of a gcc2
3160    builtin and then its argument prototype would still apply.  */
3161 char gethostbyname ();
3162 /* The GNU C library defines this for functions which it implements
3163     to always fail with ENOSYS.  Some functions are actually named
3164     something starting with __ and the normal name is an alias.  */
3165 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
3166 choke me
3167 #else
3168 char (*f) () = gethostbyname;
3169 #endif
3170 #ifdef __cplusplus
3171 }
3172 #endif
3173
3174 int
3175 main ()
3176 {
3177 return f != gethostbyname;
3178   ;
3179   return 0;
3180 }
3181 _ACEOF
3182 rm -f conftest.$ac_objext conftest$ac_exeext
3183 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3184   (eval $ac_link) 2>&5
3185   ac_status=$?
3186   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3187   (exit $ac_status); } &&
3188          { ac_try='test -s conftest$ac_exeext'
3189   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3190   (eval $ac_try) 2>&5
3191   ac_status=$?
3192   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3193   (exit $ac_status); }; }; then
3194   ac_cv_func_gethostbyname=yes
3195 else
3196   echo "$as_me: failed program was:" >&5
3197 sed 's/^/| /' conftest.$ac_ext >&5
3198
3199 ac_cv_func_gethostbyname=no
3200 fi
3201 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3202 fi
3203 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
3204 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
3205
3206     if test $ac_cv_func_gethostbyname = no; then
3207       echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
3208 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
3209 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
3210   echo $ECHO_N "(cached) $ECHO_C" >&6
3211 else
3212   ac_check_lib_save_LIBS=$LIBS
3213 LIBS="-lnsl  $LIBS"
3214 cat >conftest.$ac_ext <<_ACEOF
3215 #line $LINENO "configure"
3216 /* confdefs.h.  */
3217 _ACEOF
3218 cat confdefs.h >>conftest.$ac_ext
3219 cat >>conftest.$ac_ext <<_ACEOF
3220 /* end confdefs.h.  */
3221
3222 /* Override any gcc2 internal prototype to avoid an error.  */
3223 #ifdef __cplusplus
3224 extern "C"
3225 #endif
3226 /* We use char because int might match the return type of a gcc2
3227    builtin and then its argument prototype would still apply.  */
3228 char gethostbyname ();
3229 int
3230 main ()
3231 {
3232 gethostbyname ();
3233   ;
3234   return 0;
3235 }
3236 _ACEOF
3237 rm -f conftest.$ac_objext conftest$ac_exeext
3238 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3239   (eval $ac_link) 2>&5
3240   ac_status=$?
3241   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3242   (exit $ac_status); } &&
3243          { ac_try='test -s conftest$ac_exeext'
3244   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3245   (eval $ac_try) 2>&5
3246   ac_status=$?
3247   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3248   (exit $ac_status); }; }; then
3249   ac_cv_lib_nsl_gethostbyname=yes
3250 else
3251   echo "$as_me: failed program was:" >&5
3252 sed 's/^/| /' conftest.$ac_ext >&5
3253
3254 ac_cv_lib_nsl_gethostbyname=no
3255 fi
3256 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3257 LIBS=$ac_check_lib_save_LIBS
3258 fi
3259 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
3260 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
3261 if test $ac_cv_lib_nsl_gethostbyname = yes; then
3262   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
3263 fi
3264
3265       if test $ac_cv_lib_nsl_gethostbyname = no; then
3266         echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
3267 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
3268 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
3269   echo $ECHO_N "(cached) $ECHO_C" >&6
3270 else
3271   ac_check_lib_save_LIBS=$LIBS
3272 LIBS="-lbsd  $LIBS"
3273 cat >conftest.$ac_ext <<_ACEOF
3274 #line $LINENO "configure"
3275 /* confdefs.h.  */
3276 _ACEOF
3277 cat confdefs.h >>conftest.$ac_ext
3278 cat >>conftest.$ac_ext <<_ACEOF
3279 /* end confdefs.h.  */
3280
3281 /* Override any gcc2 internal prototype to avoid an error.  */
3282 #ifdef __cplusplus
3283 extern "C"
3284 #endif
3285 /* We use char because int might match the return type of a gcc2
3286    builtin and then its argument prototype would still apply.  */
3287 char gethostbyname ();
3288 int
3289 main ()
3290 {
3291 gethostbyname ();
3292   ;
3293   return 0;
3294 }
3295 _ACEOF
3296 rm -f conftest.$ac_objext conftest$ac_exeext
3297 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3298   (eval $ac_link) 2>&5
3299   ac_status=$?
3300   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3301   (exit $ac_status); } &&
3302          { ac_try='test -s conftest$ac_exeext'
3303   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3304   (eval $ac_try) 2>&5
3305   ac_status=$?
3306   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3307   (exit $ac_status); }; }; then
3308   ac_cv_lib_bsd_gethostbyname=yes
3309 else
3310   echo "$as_me: failed program was:" >&5
3311 sed 's/^/| /' conftest.$ac_ext >&5
3312
3313 ac_cv_lib_bsd_gethostbyname=no
3314 fi
3315 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3316 LIBS=$ac_check_lib_save_LIBS
3317 fi
3318 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
3319 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
3320 if test $ac_cv_lib_bsd_gethostbyname = yes; then
3321   X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
3322 fi
3323
3324       fi
3325     fi
3326
3327     # lieder@skyler.mavd.honeywell.com says without -lsocket,
3328     # socket/setsockopt and other routines are undefined under SCO ODT
3329     # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
3330     # on later versions), says Simon Leinen: it contains gethostby*
3331     # variants that don't use the name server (or something).  -lsocket
3332     # must be given before -lnsl if both are needed.  We assume that
3333     # if connect needs -lnsl, so does gethostbyname.
3334     echo "$as_me:$LINENO: checking for connect" >&5
3335 echo $ECHO_N "checking for connect... $ECHO_C" >&6
3336 if test "${ac_cv_func_connect+set}" = set; then
3337   echo $ECHO_N "(cached) $ECHO_C" >&6
3338 else
3339   cat >conftest.$ac_ext <<_ACEOF
3340 #line $LINENO "configure"
3341 /* confdefs.h.  */
3342 _ACEOF
3343 cat confdefs.h >>conftest.$ac_ext
3344 cat >>conftest.$ac_ext <<_ACEOF
3345 /* end confdefs.h.  */
3346 /* System header to define __stub macros and hopefully few prototypes,
3347     which can conflict with char connect (); below.
3348     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3349     <limits.h> exists even on freestanding compilers.  */
3350 #ifdef __STDC__
3351 # include <limits.h>
3352 #else
3353 # include <assert.h>
3354 #endif
3355 /* Override any gcc2 internal prototype to avoid an error.  */
3356 #ifdef __cplusplus
3357 extern "C"
3358 {
3359 #endif
3360 /* We use char because int might match the return type of a gcc2
3361    builtin and then its argument prototype would still apply.  */
3362 char connect ();
3363 /* The GNU C library defines this for functions which it implements
3364     to always fail with ENOSYS.  Some functions are actually named
3365     something starting with __ and the normal name is an alias.  */
3366 #if defined (__stub_connect) || defined (__stub___connect)
3367 choke me
3368 #else
3369 char (*f) () = connect;
3370 #endif
3371 #ifdef __cplusplus
3372 }
3373 #endif
3374
3375 int
3376 main ()
3377 {
3378 return f != connect;
3379   ;
3380   return 0;
3381 }
3382 _ACEOF
3383 rm -f conftest.$ac_objext conftest$ac_exeext
3384 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3385   (eval $ac_link) 2>&5
3386   ac_status=$?
3387   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3388   (exit $ac_status); } &&
3389          { ac_try='test -s conftest$ac_exeext'
3390   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3391   (eval $ac_try) 2>&5
3392   ac_status=$?
3393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3394   (exit $ac_status); }; }; then
3395   ac_cv_func_connect=yes
3396 else
3397   echo "$as_me: failed program was:" >&5
3398 sed 's/^/| /' conftest.$ac_ext >&5
3399
3400 ac_cv_func_connect=no
3401 fi
3402 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3403 fi
3404 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
3405 echo "${ECHO_T}$ac_cv_func_connect" >&6
3406
3407     if test $ac_cv_func_connect = no; then
3408       echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
3409 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
3410 if test "${ac_cv_lib_socket_connect+set}" = set; then
3411   echo $ECHO_N "(cached) $ECHO_C" >&6
3412 else
3413   ac_check_lib_save_LIBS=$LIBS
3414 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
3415 cat >conftest.$ac_ext <<_ACEOF
3416 #line $LINENO "configure"
3417 /* confdefs.h.  */
3418 _ACEOF
3419 cat confdefs.h >>conftest.$ac_ext
3420 cat >>conftest.$ac_ext <<_ACEOF
3421 /* end confdefs.h.  */
3422
3423 /* Override any gcc2 internal prototype to avoid an error.  */
3424 #ifdef __cplusplus
3425 extern "C"
3426 #endif
3427 /* We use char because int might match the return type of a gcc2
3428    builtin and then its argument prototype would still apply.  */
3429 char connect ();
3430 int
3431 main ()
3432 {
3433 connect ();
3434   ;
3435   return 0;
3436 }
3437 _ACEOF
3438 rm -f conftest.$ac_objext conftest$ac_exeext
3439 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3440   (eval $ac_link) 2>&5
3441   ac_status=$?
3442   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3443   (exit $ac_status); } &&
3444          { ac_try='test -s conftest$ac_exeext'
3445   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3446   (eval $ac_try) 2>&5
3447   ac_status=$?
3448   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3449   (exit $ac_status); }; }; then
3450   ac_cv_lib_socket_connect=yes
3451 else
3452   echo "$as_me: failed program was:" >&5
3453 sed 's/^/| /' conftest.$ac_ext >&5
3454
3455 ac_cv_lib_socket_connect=no
3456 fi
3457 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3458 LIBS=$ac_check_lib_save_LIBS
3459 fi
3460 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
3461 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
3462 if test $ac_cv_lib_socket_connect = yes; then
3463   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
3464 fi
3465
3466     fi
3467
3468     # Guillermo Gomez says -lposix is necessary on A/UX.
3469     echo "$as_me:$LINENO: checking for remove" >&5
3470 echo $ECHO_N "checking for remove... $ECHO_C" >&6
3471 if test "${ac_cv_func_remove+set}" = set; then
3472   echo $ECHO_N "(cached) $ECHO_C" >&6
3473 else
3474   cat >conftest.$ac_ext <<_ACEOF
3475 #line $LINENO "configure"
3476 /* confdefs.h.  */
3477 _ACEOF
3478 cat confdefs.h >>conftest.$ac_ext
3479 cat >>conftest.$ac_ext <<_ACEOF
3480 /* end confdefs.h.  */
3481 /* System header to define __stub macros and hopefully few prototypes,
3482     which can conflict with char remove (); below.
3483     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3484     <limits.h> exists even on freestanding compilers.  */
3485 #ifdef __STDC__
3486 # include <limits.h>
3487 #else
3488 # include <assert.h>
3489 #endif
3490 /* Override any gcc2 internal prototype to avoid an error.  */
3491 #ifdef __cplusplus
3492 extern "C"
3493 {
3494 #endif
3495 /* We use char because int might match the return type of a gcc2
3496    builtin and then its argument prototype would still apply.  */
3497 char remove ();
3498 /* The GNU C library defines this for functions which it implements
3499     to always fail with ENOSYS.  Some functions are actually named
3500     something starting with __ and the normal name is an alias.  */
3501 #if defined (__stub_remove) || defined (__stub___remove)
3502 choke me
3503 #else
3504 char (*f) () = remove;
3505 #endif
3506 #ifdef __cplusplus
3507 }
3508 #endif
3509
3510 int
3511 main ()
3512 {
3513 return f != remove;
3514   ;
3515   return 0;
3516 }
3517 _ACEOF
3518 rm -f conftest.$ac_objext conftest$ac_exeext
3519 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3520   (eval $ac_link) 2>&5
3521   ac_status=$?
3522   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3523   (exit $ac_status); } &&
3524          { ac_try='test -s conftest$ac_exeext'
3525   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3526   (eval $ac_try) 2>&5
3527   ac_status=$?
3528   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3529   (exit $ac_status); }; }; then
3530   ac_cv_func_remove=yes
3531 else
3532   echo "$as_me: failed program was:" >&5
3533 sed 's/^/| /' conftest.$ac_ext >&5
3534
3535 ac_cv_func_remove=no
3536 fi
3537 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3538 fi
3539 echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
3540 echo "${ECHO_T}$ac_cv_func_remove" >&6
3541
3542     if test $ac_cv_func_remove = no; then
3543       echo "$as_me:$LINENO: checking for remove in -lposix" >&5
3544 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
3545 if test "${ac_cv_lib_posix_remove+set}" = set; then
3546   echo $ECHO_N "(cached) $ECHO_C" >&6
3547 else
3548   ac_check_lib_save_LIBS=$LIBS
3549 LIBS="-lposix  $LIBS"
3550 cat >conftest.$ac_ext <<_ACEOF
3551 #line $LINENO "configure"
3552 /* confdefs.h.  */
3553 _ACEOF
3554 cat confdefs.h >>conftest.$ac_ext
3555 cat >>conftest.$ac_ext <<_ACEOF
3556 /* end confdefs.h.  */
3557
3558 /* Override any gcc2 internal prototype to avoid an error.  */
3559 #ifdef __cplusplus
3560 extern "C"
3561 #endif
3562 /* We use char because int might match the return type of a gcc2
3563    builtin and then its argument prototype would still apply.  */
3564 char remove ();
3565 int
3566 main ()
3567 {
3568 remove ();
3569   ;
3570   return 0;
3571 }
3572 _ACEOF
3573 rm -f conftest.$ac_objext conftest$ac_exeext
3574 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3575   (eval $ac_link) 2>&5
3576   ac_status=$?
3577   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3578   (exit $ac_status); } &&
3579          { ac_try='test -s conftest$ac_exeext'
3580   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3581   (eval $ac_try) 2>&5
3582   ac_status=$?
3583   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3584   (exit $ac_status); }; }; then
3585   ac_cv_lib_posix_remove=yes
3586 else
3587   echo "$as_me: failed program was:" >&5
3588 sed 's/^/| /' conftest.$ac_ext >&5
3589
3590 ac_cv_lib_posix_remove=no
3591 fi
3592 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3593 LIBS=$ac_check_lib_save_LIBS
3594 fi
3595 echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
3596 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
3597 if test $ac_cv_lib_posix_remove = yes; then
3598   X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
3599 fi
3600
3601     fi
3602
3603     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
3604     echo "$as_me:$LINENO: checking for shmat" >&5
3605 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
3606 if test "${ac_cv_func_shmat+set}" = set; then
3607   echo $ECHO_N "(cached) $ECHO_C" >&6
3608 else
3609   cat >conftest.$ac_ext <<_ACEOF
3610 #line $LINENO "configure"
3611 /* confdefs.h.  */
3612 _ACEOF
3613 cat confdefs.h >>conftest.$ac_ext
3614 cat >>conftest.$ac_ext <<_ACEOF
3615 /* end confdefs.h.  */
3616 /* System header to define __stub macros and hopefully few prototypes,
3617     which can conflict with char shmat (); below.
3618     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3619     <limits.h> exists even on freestanding compilers.  */
3620 #ifdef __STDC__
3621 # include <limits.h>
3622 #else
3623 # include <assert.h>
3624 #endif
3625 /* Override any gcc2 internal prototype to avoid an error.  */
3626 #ifdef __cplusplus
3627 extern "C"
3628 {
3629 #endif
3630 /* We use char because int might match the return type of a gcc2
3631    builtin and then its argument prototype would still apply.  */
3632 char shmat ();
3633 /* The GNU C library defines this for functions which it implements
3634     to always fail with ENOSYS.  Some functions are actually named
3635     something starting with __ and the normal name is an alias.  */
3636 #if defined (__stub_shmat) || defined (__stub___shmat)
3637 choke me
3638 #else
3639 char (*f) () = shmat;
3640 #endif
3641 #ifdef __cplusplus
3642 }
3643 #endif
3644
3645 int
3646 main ()
3647 {
3648 return f != shmat;
3649   ;
3650   return 0;
3651 }
3652 _ACEOF
3653 rm -f conftest.$ac_objext conftest$ac_exeext
3654 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3655   (eval $ac_link) 2>&5
3656   ac_status=$?
3657   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3658   (exit $ac_status); } &&
3659          { ac_try='test -s conftest$ac_exeext'
3660   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3661   (eval $ac_try) 2>&5
3662   ac_status=$?
3663   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3664   (exit $ac_status); }; }; then
3665   ac_cv_func_shmat=yes
3666 else
3667   echo "$as_me: failed program was:" >&5
3668 sed 's/^/| /' conftest.$ac_ext >&5
3669
3670 ac_cv_func_shmat=no
3671 fi
3672 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3673 fi
3674 echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
3675 echo "${ECHO_T}$ac_cv_func_shmat" >&6
3676
3677     if test $ac_cv_func_shmat = no; then
3678       echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
3679 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
3680 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
3681   echo $ECHO_N "(cached) $ECHO_C" >&6
3682 else
3683   ac_check_lib_save_LIBS=$LIBS
3684 LIBS="-lipc  $LIBS"
3685 cat >conftest.$ac_ext <<_ACEOF
3686 #line $LINENO "configure"
3687 /* confdefs.h.  */
3688 _ACEOF
3689 cat confdefs.h >>conftest.$ac_ext
3690 cat >>conftest.$ac_ext <<_ACEOF
3691 /* end confdefs.h.  */
3692
3693 /* Override any gcc2 internal prototype to avoid an error.  */
3694 #ifdef __cplusplus
3695 extern "C"
3696 #endif
3697 /* We use char because int might match the return type of a gcc2
3698    builtin and then its argument prototype would still apply.  */
3699 char shmat ();
3700 int
3701 main ()
3702 {
3703 shmat ();
3704   ;
3705   return 0;
3706 }
3707 _ACEOF
3708 rm -f conftest.$ac_objext conftest$ac_exeext
3709 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3710   (eval $ac_link) 2>&5
3711   ac_status=$?
3712   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3713   (exit $ac_status); } &&
3714          { ac_try='test -s conftest$ac_exeext'
3715   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3716   (eval $ac_try) 2>&5
3717   ac_status=$?
3718   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3719   (exit $ac_status); }; }; then
3720   ac_cv_lib_ipc_shmat=yes
3721 else
3722   echo "$as_me: failed program was:" >&5
3723 sed 's/^/| /' conftest.$ac_ext >&5
3724
3725 ac_cv_lib_ipc_shmat=no
3726 fi
3727 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3728 LIBS=$ac_check_lib_save_LIBS
3729 fi
3730 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
3731 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
3732 if test $ac_cv_lib_ipc_shmat = yes; then
3733   X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
3734 fi
3735
3736     fi
3737   fi
3738
3739   # Check for libraries that X11R6 Xt/Xaw programs need.
3740   ac_save_LDFLAGS=$LDFLAGS
3741   test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
3742   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
3743   # check for ICE first), but we must link in the order -lSM -lICE or
3744   # we get undefined symbols.  So assume we have SM if we have ICE.
3745   # These have to be linked with before -lX11, unlike the other
3746   # libraries we check for below, so use a different variable.
3747   # John Interrante, Karl Berry
3748   echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
3749 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
3750 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
3751   echo $ECHO_N "(cached) $ECHO_C" >&6
3752 else
3753   ac_check_lib_save_LIBS=$LIBS
3754 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
3755 cat >conftest.$ac_ext <<_ACEOF
3756 #line $LINENO "configure"
3757 /* confdefs.h.  */
3758 _ACEOF
3759 cat confdefs.h >>conftest.$ac_ext
3760 cat >>conftest.$ac_ext <<_ACEOF
3761 /* end confdefs.h.  */
3762
3763 /* Override any gcc2 internal prototype to avoid an error.  */
3764 #ifdef __cplusplus
3765 extern "C"
3766 #endif
3767 /* We use char because int might match the return type of a gcc2
3768    builtin and then its argument prototype would still apply.  */
3769 char IceConnectionNumber ();
3770 int
3771 main ()
3772 {
3773 IceConnectionNumber ();
3774   ;
3775   return 0;
3776 }
3777 _ACEOF
3778 rm -f conftest.$ac_objext conftest$ac_exeext
3779 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3780   (eval $ac_link) 2>&5
3781   ac_status=$?
3782   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3783   (exit $ac_status); } &&
3784          { ac_try='test -s conftest$ac_exeext'
3785   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3786   (eval $ac_try) 2>&5
3787   ac_status=$?
3788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3789   (exit $ac_status); }; }; then
3790   ac_cv_lib_ICE_IceConnectionNumber=yes
3791 else
3792   echo "$as_me: failed program was:" >&5
3793 sed 's/^/| /' conftest.$ac_ext >&5
3794
3795 ac_cv_lib_ICE_IceConnectionNumber=no
3796 fi
3797 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3798 LIBS=$ac_check_lib_save_LIBS
3799 fi
3800 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
3801 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
3802 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
3803   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
3804 fi
3805
3806   LDFLAGS=$ac_save_LDFLAGS
3807
3808 fi
3809
3810 for ac_prog in 'bison -y' byacc
3811 do
3812   # Extract the first word of "$ac_prog", so it can be a program name with args.
3813 set dummy $ac_prog; ac_word=$2
3814 echo "$as_me:$LINENO: checking for $ac_word" >&5
3815 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3816 if test "${ac_cv_prog_YACC+set}" = set; then
3817   echo $ECHO_N "(cached) $ECHO_C" >&6
3818 else
3819   if test -n "$YACC"; then
3820   ac_cv_prog_YACC="$YACC" # Let the user override the test.
3821 else
3822 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3823 for as_dir in $PATH
3824 do
3825   IFS=$as_save_IFS
3826   test -z "$as_dir" && as_dir=.
3827   for ac_exec_ext in '' $ac_executable_extensions; do
3828   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3829     ac_cv_prog_YACC="$ac_prog"
3830     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3831     break 2
3832   fi
3833 done
3834 done
3835
3836 fi
3837 fi
3838 YACC=$ac_cv_prog_YACC
3839 if test -n "$YACC"; then
3840   echo "$as_me:$LINENO: result: $YACC" >&5
3841 echo "${ECHO_T}$YACC" >&6
3842 else
3843   echo "$as_me:$LINENO: result: no" >&5
3844 echo "${ECHO_T}no" >&6
3845 fi
3846
3847   test -n "$YACC" && break
3848 done
3849 test -n "$YACC" || YACC="yacc"
3850
3851 for ac_prog in flex lex
3852 do
3853   # Extract the first word of "$ac_prog", so it can be a program name with args.
3854 set dummy $ac_prog; ac_word=$2
3855 echo "$as_me:$LINENO: checking for $ac_word" >&5
3856 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3857 if test "${ac_cv_prog_LEX+set}" = set; then
3858   echo $ECHO_N "(cached) $ECHO_C" >&6
3859 else
3860   if test -n "$LEX"; then
3861   ac_cv_prog_LEX="$LEX" # Let the user override the test.
3862 else
3863 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3864 for as_dir in $PATH
3865 do
3866   IFS=$as_save_IFS
3867   test -z "$as_dir" && as_dir=.
3868   for ac_exec_ext in '' $ac_executable_extensions; do
3869   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3870     ac_cv_prog_LEX="$ac_prog"
3871     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3872     break 2
3873   fi
3874 done
3875 done
3876
3877 fi
3878 fi
3879 LEX=$ac_cv_prog_LEX
3880 if test -n "$LEX"; then
3881   echo "$as_me:$LINENO: result: $LEX" >&5
3882 echo "${ECHO_T}$LEX" >&6
3883 else
3884   echo "$as_me:$LINENO: result: no" >&5
3885 echo "${ECHO_T}no" >&6
3886 fi
3887
3888   test -n "$LEX" && break
3889 done
3890 test -n "$LEX" || LEX=":"
3891
3892 if test -z "$LEXLIB"
3893 then
3894   echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
3895 echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
3896 if test "${ac_cv_lib_fl_yywrap+set}" = set; then
3897   echo $ECHO_N "(cached) $ECHO_C" >&6
3898 else
3899   ac_check_lib_save_LIBS=$LIBS
3900 LIBS="-lfl  $LIBS"
3901 cat >conftest.$ac_ext <<_ACEOF
3902 #line $LINENO "configure"
3903 /* confdefs.h.  */
3904 _ACEOF
3905 cat confdefs.h >>conftest.$ac_ext
3906 cat >>conftest.$ac_ext <<_ACEOF
3907 /* end confdefs.h.  */
3908
3909 /* Override any gcc2 internal prototype to avoid an error.  */
3910 #ifdef __cplusplus
3911 extern "C"
3912 #endif
3913 /* We use char because int might match the return type of a gcc2
3914    builtin and then its argument prototype would still apply.  */
3915 char yywrap ();
3916 int
3917 main ()
3918 {
3919 yywrap ();
3920   ;
3921   return 0;
3922 }
3923 _ACEOF
3924 rm -f conftest.$ac_objext conftest$ac_exeext
3925 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3926   (eval $ac_link) 2>&5
3927   ac_status=$?
3928   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3929   (exit $ac_status); } &&
3930          { ac_try='test -s conftest$ac_exeext'
3931   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3932   (eval $ac_try) 2>&5
3933   ac_status=$?
3934   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3935   (exit $ac_status); }; }; then
3936   ac_cv_lib_fl_yywrap=yes
3937 else
3938   echo "$as_me: failed program was:" >&5
3939 sed 's/^/| /' conftest.$ac_ext >&5
3940
3941 ac_cv_lib_fl_yywrap=no
3942 fi
3943 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3944 LIBS=$ac_check_lib_save_LIBS
3945 fi
3946 echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
3947 echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
3948 if test $ac_cv_lib_fl_yywrap = yes; then
3949   LEXLIB="-lfl"
3950 else
3951   echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
3952 echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
3953 if test "${ac_cv_lib_l_yywrap+set}" = set; then
3954   echo $ECHO_N "(cached) $ECHO_C" >&6
3955 else
3956   ac_check_lib_save_LIBS=$LIBS
3957 LIBS="-ll  $LIBS"
3958 cat >conftest.$ac_ext <<_ACEOF
3959 #line $LINENO "configure"
3960 /* confdefs.h.  */
3961 _ACEOF
3962 cat confdefs.h >>conftest.$ac_ext
3963 cat >>conftest.$ac_ext <<_ACEOF
3964 /* end confdefs.h.  */
3965
3966 /* Override any gcc2 internal prototype to avoid an error.  */
3967 #ifdef __cplusplus
3968 extern "C"
3969 #endif
3970 /* We use char because int might match the return type of a gcc2
3971    builtin and then its argument prototype would still apply.  */
3972 char yywrap ();
3973 int
3974 main ()
3975 {
3976 yywrap ();
3977   ;
3978   return 0;
3979 }
3980 _ACEOF
3981 rm -f conftest.$ac_objext conftest$ac_exeext
3982 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3983   (eval $ac_link) 2>&5
3984   ac_status=$?
3985   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3986   (exit $ac_status); } &&
3987          { ac_try='test -s conftest$ac_exeext'
3988   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3989   (eval $ac_try) 2>&5
3990   ac_status=$?
3991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3992   (exit $ac_status); }; }; then
3993   ac_cv_lib_l_yywrap=yes
3994 else
3995   echo "$as_me: failed program was:" >&5
3996 sed 's/^/| /' conftest.$ac_ext >&5
3997
3998 ac_cv_lib_l_yywrap=no
3999 fi
4000 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4001 LIBS=$ac_check_lib_save_LIBS
4002 fi
4003 echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
4004 echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
4005 if test $ac_cv_lib_l_yywrap = yes; then
4006   LEXLIB="-ll"
4007 fi
4008
4009 fi
4010
4011 fi
4012
4013 if test "x$LEX" != "x:"; then
4014   echo "$as_me:$LINENO: checking lex output file root" >&5
4015 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
4016 if test "${ac_cv_prog_lex_root+set}" = set; then
4017   echo $ECHO_N "(cached) $ECHO_C" >&6
4018 else
4019   # The minimal lex program is just a single line: %%.  But some broken lexes
4020 # (Solaris, I think it was) want two %% lines, so accommodate them.
4021 cat >conftest.l <<_ACEOF
4022 %%
4023 %%
4024 _ACEOF
4025 { (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
4026   (eval $LEX conftest.l) 2>&5
4027   ac_status=$?
4028   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4029   (exit $ac_status); }
4030 if test -f lex.yy.c; then
4031   ac_cv_prog_lex_root=lex.yy
4032 elif test -f lexyy.c; then
4033   ac_cv_prog_lex_root=lexyy
4034 else
4035   { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
4036 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
4037    { (exit 1); exit 1; }; }
4038 fi
4039 fi
4040 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
4041 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
4042 rm -f conftest.l
4043 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
4044
4045 echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
4046 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
4047 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
4048   echo $ECHO_N "(cached) $ECHO_C" >&6
4049 else
4050   # POSIX says lex can declare yytext either as a pointer or an array; the
4051 # default is implementation-dependent. Figure out which it is, since
4052 # not all implementations provide the %pointer and %array declarations.
4053 ac_cv_prog_lex_yytext_pointer=no
4054 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
4055 ac_save_LIBS=$LIBS
4056 LIBS="$LIBS $LEXLIB"
4057 cat >conftest.$ac_ext <<_ACEOF
4058 `cat $LEX_OUTPUT_ROOT.c`
4059 _ACEOF
4060 rm -f conftest.$ac_objext conftest$ac_exeext
4061 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4062   (eval $ac_link) 2>&5
4063   ac_status=$?
4064   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4065   (exit $ac_status); } &&
4066          { ac_try='test -s conftest$ac_exeext'
4067   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4068   (eval $ac_try) 2>&5
4069   ac_status=$?
4070   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4071   (exit $ac_status); }; }; then
4072   ac_cv_prog_lex_yytext_pointer=yes
4073 else
4074   echo "$as_me: failed program was:" >&5
4075 sed 's/^/| /' conftest.$ac_ext >&5
4076
4077 fi
4078 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4079 LIBS=$ac_save_LIBS
4080 rm -f "${LEX_OUTPUT_ROOT}.c"
4081
4082 fi
4083 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
4084 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
4085 if test $ac_cv_prog_lex_yytext_pointer = yes; then
4086
4087 cat >>confdefs.h <<\_ACEOF
4088 #define YYTEXT_POINTER 1
4089 _ACEOF
4090
4091 fi
4092
4093 fi
4094
4095 for ac_prog in $YACC bison yacc
4096 do
4097   # Extract the first word of "$ac_prog", so it can be a program name with args.
4098 set dummy $ac_prog; ac_word=$2
4099 echo "$as_me:$LINENO: checking for $ac_word" >&5
4100 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4101 if test "${ac_cv_prog_XYACC+set}" = set; then
4102   echo $ECHO_N "(cached) $ECHO_C" >&6
4103 else
4104   if test -n "$XYACC"; then
4105   ac_cv_prog_XYACC="$XYACC" # Let the user override the test.
4106 else
4107 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4108 for as_dir in $PATH
4109 do
4110   IFS=$as_save_IFS
4111   test -z "$as_dir" && as_dir=.
4112   for ac_exec_ext in '' $ac_executable_extensions; do
4113   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4114     ac_cv_prog_XYACC="$ac_prog"
4115     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4116     break 2
4117   fi
4118 done
4119 done
4120
4121 fi
4122 fi
4123 XYACC=$ac_cv_prog_XYACC
4124 if test -n "$XYACC"; then
4125   echo "$as_me:$LINENO: result: $XYACC" >&5
4126 echo "${ECHO_T}$XYACC" >&6
4127 else
4128   echo "$as_me:$LINENO: result: no" >&5
4129 echo "${ECHO_T}no" >&6
4130 fi
4131
4132   test -n "$XYACC" && break
4133 done
4134 test -n "$XYACC" || XYACC="none"
4135
4136 if test "$XYACC" = "none"
4137 then
4138   { { echo "$as_me:$LINENO: error: no suitable bison/yacc found. Please install the 'bison' package." >&5
4139 echo "$as_me: error: no suitable bison/yacc found. Please install the 'bison' package." >&2;}
4140    { (exit 1); exit 1; }; }
4141 fi
4142 for ac_prog in $LEX flex lex
4143 do
4144   # Extract the first word of "$ac_prog", so it can be a program name with args.
4145 set dummy $ac_prog; ac_word=$2
4146 echo "$as_me:$LINENO: checking for $ac_word" >&5
4147 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4148 if test "${ac_cv_prog_XLEX+set}" = set; then
4149   echo $ECHO_N "(cached) $ECHO_C" >&6
4150 else
4151   if test -n "$XLEX"; then
4152   ac_cv_prog_XLEX="$XLEX" # Let the user override the test.
4153 else
4154 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4155 for as_dir in $PATH
4156 do
4157   IFS=$as_save_IFS
4158   test -z "$as_dir" && as_dir=.
4159   for ac_exec_ext in '' $ac_executable_extensions; do
4160   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4161     ac_cv_prog_XLEX="$ac_prog"
4162     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4163     break 2
4164   fi
4165 done
4166 done
4167
4168 fi
4169 fi
4170 XLEX=$ac_cv_prog_XLEX
4171 if test -n "$XLEX"; then
4172   echo "$as_me:$LINENO: result: $XLEX" >&5
4173 echo "${ECHO_T}$XLEX" >&6
4174 else
4175   echo "$as_me:$LINENO: result: no" >&5
4176 echo "${ECHO_T}no" >&6
4177 fi
4178
4179   test -n "$XLEX" && break
4180 done
4181 test -n "$XLEX" || XLEX="none"
4182
4183 if test "$XLEX" = "none"
4184 then
4185   { { echo "$as_me:$LINENO: error: no suitable lex found. Please install the 'flex' package." >&5
4186 echo "$as_me: error: no suitable lex found. Please install the 'flex' package." >&2;}
4187    { (exit 1); exit 1; }; }
4188 fi
4189
4190 if test -n "$ac_tool_prefix"; then
4191   for ac_prog in gas as
4192   do
4193     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4194 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4195 echo "$as_me:$LINENO: checking for $ac_word" >&5
4196 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4197 if test "${ac_cv_prog_AS+set}" = set; then
4198   echo $ECHO_N "(cached) $ECHO_C" >&6
4199 else
4200   if test -n "$AS"; then
4201   ac_cv_prog_AS="$AS" # Let the user override the test.
4202 else
4203 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4204 for as_dir in $PATH
4205 do
4206   IFS=$as_save_IFS
4207   test -z "$as_dir" && as_dir=.
4208   for ac_exec_ext in '' $ac_executable_extensions; do
4209   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4210     ac_cv_prog_AS="$ac_tool_prefix$ac_prog"
4211     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4212     break 2
4213   fi
4214 done
4215 done
4216
4217 fi
4218 fi
4219 AS=$ac_cv_prog_AS
4220 if test -n "$AS"; then
4221   echo "$as_me:$LINENO: result: $AS" >&5
4222 echo "${ECHO_T}$AS" >&6
4223 else
4224   echo "$as_me:$LINENO: result: no" >&5
4225 echo "${ECHO_T}no" >&6
4226 fi
4227
4228     test -n "$AS" && break
4229   done
4230 fi
4231 if test -z "$AS"; then
4232   ac_ct_AS=$AS
4233   for ac_prog in gas as
4234 do
4235   # Extract the first word of "$ac_prog", so it can be a program name with args.
4236 set dummy $ac_prog; ac_word=$2
4237 echo "$as_me:$LINENO: checking for $ac_word" >&5
4238 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4239 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
4240   echo $ECHO_N "(cached) $ECHO_C" >&6
4241 else
4242   if test -n "$ac_ct_AS"; then
4243   ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
4244 else
4245 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4246 for as_dir in $PATH
4247 do
4248   IFS=$as_save_IFS
4249   test -z "$as_dir" && as_dir=.
4250   for ac_exec_ext in '' $ac_executable_extensions; do
4251   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4252     ac_cv_prog_ac_ct_AS="$ac_prog"
4253     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4254     break 2
4255   fi
4256 done
4257 done
4258
4259 fi
4260 fi
4261 ac_ct_AS=$ac_cv_prog_ac_ct_AS
4262 if test -n "$ac_ct_AS"; then
4263   echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
4264 echo "${ECHO_T}$ac_ct_AS" >&6
4265 else
4266   echo "$as_me:$LINENO: result: no" >&5
4267 echo "${ECHO_T}no" >&6
4268 fi
4269
4270   test -n "$ac_ct_AS" && break
4271 done
4272 test -n "$ac_ct_AS" || ac_ct_AS="as"
4273
4274   AS=$ac_ct_AS
4275 fi
4276
4277 if test -n "$ac_tool_prefix"; then
4278   # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
4279 set dummy ${ac_tool_prefix}ld; ac_word=$2
4280 echo "$as_me:$LINENO: checking for $ac_word" >&5
4281 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4282 if test "${ac_cv_prog_LD+set}" = set; then
4283   echo $ECHO_N "(cached) $ECHO_C" >&6
4284 else
4285   if test -n "$LD"; then
4286   ac_cv_prog_LD="$LD" # Let the user override the test.
4287 else
4288 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4289 for as_dir in $PATH
4290 do
4291   IFS=$as_save_IFS
4292   test -z "$as_dir" && as_dir=.
4293   for ac_exec_ext in '' $ac_executable_extensions; do
4294   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4295     ac_cv_prog_LD="${ac_tool_prefix}ld"
4296     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4297     break 2
4298   fi
4299 done
4300 done
4301
4302 fi
4303 fi
4304 LD=$ac_cv_prog_LD
4305 if test -n "$LD"; then
4306   echo "$as_me:$LINENO: result: $LD" >&5
4307 echo "${ECHO_T}$LD" >&6
4308 else
4309   echo "$as_me:$LINENO: result: no" >&5
4310 echo "${ECHO_T}no" >&6
4311 fi
4312
4313 fi
4314 if test -z "$ac_cv_prog_LD"; then
4315   ac_ct_LD=$LD
4316   # Extract the first word of "ld", so it can be a program name with args.
4317 set dummy ld; ac_word=$2
4318 echo "$as_me:$LINENO: checking for $ac_word" >&5
4319 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4320 if test "${ac_cv_prog_ac_ct_LD+set}" = set; then
4321   echo $ECHO_N "(cached) $ECHO_C" >&6
4322 else
4323   if test -n "$ac_ct_LD"; then
4324   ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test.
4325 else
4326 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4327 for as_dir in $PATH
4328 do
4329   IFS=$as_save_IFS
4330   test -z "$as_dir" && as_dir=.
4331   for ac_exec_ext in '' $ac_executable_extensions; do
4332   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4333     ac_cv_prog_ac_ct_LD="ld"
4334     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4335     break 2
4336   fi
4337 done
4338 done
4339
4340   test -z "$ac_cv_prog_ac_ct_LD" && ac_cv_prog_ac_ct_LD="ld"
4341 fi
4342 fi
4343 ac_ct_LD=$ac_cv_prog_ac_ct_LD
4344 if test -n "$ac_ct_LD"; then
4345   echo "$as_me:$LINENO: result: $ac_ct_LD" >&5
4346 echo "${ECHO_T}$ac_ct_LD" >&6
4347 else
4348   echo "$as_me:$LINENO: result: no" >&5
4349 echo "${ECHO_T}no" >&6
4350 fi
4351
4352   LD=$ac_ct_LD
4353 else
4354   LD="$ac_cv_prog_LD"
4355 fi
4356
4357 if test -n "$ac_tool_prefix"; then
4358   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4359 set dummy ${ac_tool_prefix}ar; ac_word=$2
4360 echo "$as_me:$LINENO: checking for $ac_word" >&5
4361 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4362 if test "${ac_cv_prog_AR+set}" = set; then
4363   echo $ECHO_N "(cached) $ECHO_C" >&6
4364 else
4365   if test -n "$AR"; then
4366   ac_cv_prog_AR="$AR" # Let the user override the test.
4367 else
4368 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4369 for as_dir in $PATH
4370 do
4371   IFS=$as_save_IFS
4372   test -z "$as_dir" && as_dir=.
4373   for ac_exec_ext in '' $ac_executable_extensions; do
4374   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4375     ac_cv_prog_AR="${ac_tool_prefix}ar"
4376     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4377     break 2
4378   fi
4379 done
4380 done
4381
4382 fi
4383 fi
4384 AR=$ac_cv_prog_AR
4385 if test -n "$AR"; then
4386   echo "$as_me:$LINENO: result: $AR" >&5
4387 echo "${ECHO_T}$AR" >&6
4388 else
4389   echo "$as_me:$LINENO: result: no" >&5
4390 echo "${ECHO_T}no" >&6
4391 fi
4392
4393 fi
4394 if test -z "$ac_cv_prog_AR"; then
4395   ac_ct_AR=$AR
4396   # Extract the first word of "ar", so it can be a program name with args.
4397 set dummy ar; ac_word=$2
4398 echo "$as_me:$LINENO: checking for $ac_word" >&5
4399 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4400 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
4401   echo $ECHO_N "(cached) $ECHO_C" >&6
4402 else
4403   if test -n "$ac_ct_AR"; then
4404   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4405 else
4406 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4407 for as_dir in $PATH
4408 do
4409   IFS=$as_save_IFS
4410   test -z "$as_dir" && as_dir=.
4411   for ac_exec_ext in '' $ac_executable_extensions; do
4412   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4413     ac_cv_prog_ac_ct_AR="ar"
4414     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4415     break 2
4416   fi
4417 done
4418 done
4419
4420   test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar"
4421 fi
4422 fi
4423 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4424 if test -n "$ac_ct_AR"; then
4425   echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
4426 echo "${ECHO_T}$ac_ct_AR" >&6
4427 else
4428   echo "$as_me:$LINENO: result: no" >&5
4429 echo "${ECHO_T}no" >&6
4430 fi
4431
4432   AR=$ac_ct_AR
4433 else
4434   AR="$ac_cv_prog_AR"
4435 fi
4436
4437 if test -n "$ac_tool_prefix"; then
4438   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4439 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4440 echo "$as_me:$LINENO: checking for $ac_word" >&5
4441 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4442 if test "${ac_cv_prog_RANLIB+set}" = set; then
4443   echo $ECHO_N "(cached) $ECHO_C" >&6
4444 else
4445   if test -n "$RANLIB"; then
4446   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4447 else
4448 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4449 for as_dir in $PATH
4450 do
4451   IFS=$as_save_IFS
4452   test -z "$as_dir" && as_dir=.
4453   for ac_exec_ext in '' $ac_executable_extensions; do
4454   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4455     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4456     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4457     break 2
4458   fi
4459 done
4460 done
4461
4462 fi
4463 fi
4464 RANLIB=$ac_cv_prog_RANLIB
4465 if test -n "$RANLIB"; then
4466   echo "$as_me:$LINENO: result: $RANLIB" >&5
4467 echo "${ECHO_T}$RANLIB" >&6
4468 else
4469   echo "$as_me:$LINENO: result: no" >&5
4470 echo "${ECHO_T}no" >&6
4471 fi
4472
4473 fi
4474 if test -z "$ac_cv_prog_RANLIB"; then
4475   ac_ct_RANLIB=$RANLIB
4476   # Extract the first word of "ranlib", so it can be a program name with args.
4477 set dummy ranlib; ac_word=$2
4478 echo "$as_me:$LINENO: checking for $ac_word" >&5
4479 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4480 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4481   echo $ECHO_N "(cached) $ECHO_C" >&6
4482 else
4483   if test -n "$ac_ct_RANLIB"; then
4484   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4485 else
4486 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4487 for as_dir in $PATH
4488 do
4489   IFS=$as_save_IFS
4490   test -z "$as_dir" && as_dir=.
4491   for ac_exec_ext in '' $ac_executable_extensions; do
4492   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4493     ac_cv_prog_ac_ct_RANLIB="ranlib"
4494     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4495     break 2
4496   fi
4497 done
4498 done
4499
4500   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4501 fi
4502 fi
4503 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4504 if test -n "$ac_ct_RANLIB"; then
4505   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4506 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4507 else
4508   echo "$as_me:$LINENO: result: no" >&5
4509 echo "${ECHO_T}no" >&6
4510 fi
4511
4512   RANLIB=$ac_ct_RANLIB
4513 else
4514   RANLIB="$ac_cv_prog_RANLIB"
4515 fi
4516
4517 if test -n "$ac_tool_prefix"; then
4518   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4519 set dummy ${ac_tool_prefix}strip; ac_word=$2
4520 echo "$as_me:$LINENO: checking for $ac_word" >&5
4521 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4522 if test "${ac_cv_prog_STRIP+set}" = set; then
4523   echo $ECHO_N "(cached) $ECHO_C" >&6
4524 else
4525   if test -n "$STRIP"; then
4526   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4527 else
4528 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4529 for as_dir in $PATH
4530 do
4531   IFS=$as_save_IFS
4532   test -z "$as_dir" && as_dir=.
4533   for ac_exec_ext in '' $ac_executable_extensions; do
4534   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4535     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4536     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4537     break 2
4538   fi
4539 done
4540 done
4541
4542 fi
4543 fi
4544 STRIP=$ac_cv_prog_STRIP
4545 if test -n "$STRIP"; then
4546   echo "$as_me:$LINENO: result: $STRIP" >&5
4547 echo "${ECHO_T}$STRIP" >&6
4548 else
4549   echo "$as_me:$LINENO: result: no" >&5
4550 echo "${ECHO_T}no" >&6
4551 fi
4552
4553 fi
4554 if test -z "$ac_cv_prog_STRIP"; then
4555   ac_ct_STRIP=$STRIP
4556   # Extract the first word of "strip", so it can be a program name with args.
4557 set dummy strip; ac_word=$2
4558 echo "$as_me:$LINENO: checking for $ac_word" >&5
4559 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4560 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4561   echo $ECHO_N "(cached) $ECHO_C" >&6
4562 else
4563   if test -n "$ac_ct_STRIP"; then
4564   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4565 else
4566 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4567 for as_dir in $PATH
4568 do
4569   IFS=$as_save_IFS
4570   test -z "$as_dir" && as_dir=.
4571   for ac_exec_ext in '' $ac_executable_extensions; do
4572   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4573     ac_cv_prog_ac_ct_STRIP="strip"
4574     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4575     break 2
4576   fi
4577 done
4578 done
4579
4580   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP="strip"
4581 fi
4582 fi
4583 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4584 if test -n "$ac_ct_STRIP"; then
4585   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4586 echo "${ECHO_T}$ac_ct_STRIP" >&6
4587 else
4588   echo "$as_me:$LINENO: result: no" >&5
4589 echo "${ECHO_T}no" >&6
4590 fi
4591
4592   STRIP=$ac_ct_STRIP
4593 else
4594   STRIP="$ac_cv_prog_STRIP"
4595 fi
4596
4597 if test -n "$ac_tool_prefix"; then
4598   # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
4599 set dummy ${ac_tool_prefix}windres; ac_word=$2
4600 echo "$as_me:$LINENO: checking for $ac_word" >&5
4601 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4602 if test "${ac_cv_prog_WINDRES+set}" = set; then
4603   echo $ECHO_N "(cached) $ECHO_C" >&6
4604 else
4605   if test -n "$WINDRES"; then
4606   ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
4607 else
4608 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4609 for as_dir in $PATH
4610 do
4611   IFS=$as_save_IFS
4612   test -z "$as_dir" && as_dir=.
4613   for ac_exec_ext in '' $ac_executable_extensions; do
4614   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4615     ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
4616     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4617     break 2
4618   fi
4619 done
4620 done
4621
4622 fi
4623 fi
4624 WINDRES=$ac_cv_prog_WINDRES
4625 if test -n "$WINDRES"; then
4626   echo "$as_me:$LINENO: result: $WINDRES" >&5
4627 echo "${ECHO_T}$WINDRES" >&6
4628 else
4629   echo "$as_me:$LINENO: result: no" >&5
4630 echo "${ECHO_T}no" >&6
4631 fi
4632
4633 fi
4634 if test -z "$ac_cv_prog_WINDRES"; then
4635   ac_ct_WINDRES=$WINDRES
4636   # Extract the first word of "windres", so it can be a program name with args.
4637 set dummy windres; ac_word=$2
4638 echo "$as_me:$LINENO: checking for $ac_word" >&5
4639 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4640 if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
4641   echo $ECHO_N "(cached) $ECHO_C" >&6
4642 else
4643   if test -n "$ac_ct_WINDRES"; then
4644   ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
4645 else
4646 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4647 for as_dir in $PATH
4648 do
4649   IFS=$as_save_IFS
4650   test -z "$as_dir" && as_dir=.
4651   for ac_exec_ext in '' $ac_executable_extensions; do
4652   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4653     ac_cv_prog_ac_ct_WINDRES="windres"
4654     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4655     break 2
4656   fi
4657 done
4658 done
4659
4660   test -z "$ac_cv_prog_ac_ct_WINDRES" && ac_cv_prog_ac_ct_WINDRES="false"
4661 fi
4662 fi
4663 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
4664 if test -n "$ac_ct_WINDRES"; then
4665   echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
4666 echo "${ECHO_T}$ac_ct_WINDRES" >&6
4667 else
4668   echo "$as_me:$LINENO: result: no" >&5
4669 echo "${ECHO_T}no" >&6
4670 fi
4671
4672   WINDRES=$ac_ct_WINDRES
4673 else
4674   WINDRES="$ac_cv_prog_WINDRES"
4675 fi
4676
4677 echo "$as_me:$LINENO: checking whether ln -s works" >&5
4678 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4679 LN_S=$as_ln_s
4680 if test "$LN_S" = "ln -s"; then
4681   echo "$as_me:$LINENO: result: yes" >&5
4682 echo "${ECHO_T}yes" >&6
4683 else
4684   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4685 echo "${ECHO_T}no, using $LN_S" >&6
4686 fi
4687
4688 echo "$as_me:$LINENO: checking whether ln works" >&5
4689 echo $ECHO_N "checking whether ln works... $ECHO_C" >&6
4690 rm -f conf$$ conf$$.file
4691 echo >conf$$.file
4692 if ln conf$$.file conf$$ 2>/dev/null; then
4693   LN=ln
4694
4695   echo "$as_me:$LINENO: result: yes" >&5
4696 echo "${ECHO_T}yes" >&6
4697 else
4698   LN="cp -p"
4699
4700   echo "$as_me:$LINENO: result: no, using $LN" >&5
4701 echo "${ECHO_T}no, using $LN" >&6
4702 fi
4703 rm -f conf$$ conf$$.file
4704 # Extract the first word of "c2man", so it can be a program name with args.
4705 set dummy c2man; ac_word=$2
4706 echo "$as_me:$LINENO: checking for $ac_word" >&5
4707 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4708 if test "${ac_cv_prog_C2MAN+set}" = set; then
4709   echo $ECHO_N "(cached) $ECHO_C" >&6
4710 else
4711   if test -n "$C2MAN"; then
4712   ac_cv_prog_C2MAN="$C2MAN" # Let the user override the test.
4713 else
4714 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4715 for as_dir in $PATH
4716 do
4717   IFS=$as_save_IFS
4718   test -z "$as_dir" && as_dir=.
4719   for ac_exec_ext in '' $ac_executable_extensions; do
4720   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4721     ac_cv_prog_C2MAN="c2man"
4722     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4723     break 2
4724   fi
4725 done
4726 done
4727
4728   test -z "$ac_cv_prog_C2MAN" && ac_cv_prog_C2MAN="\$(TOPSRCDIR)/tools/c2man.pl"
4729 fi
4730 fi
4731 C2MAN=$ac_cv_prog_C2MAN
4732 if test -n "$C2MAN"; then
4733   echo "$as_me:$LINENO: result: $C2MAN" >&5
4734 echo "${ECHO_T}$C2MAN" >&6
4735 else
4736   echo "$as_me:$LINENO: result: no" >&5
4737 echo "${ECHO_T}no" >&6
4738 fi
4739
4740 # Extract the first word of "ldconfig", so it can be a program name with args.
4741 set dummy ldconfig; ac_word=$2
4742 echo "$as_me:$LINENO: checking for $ac_word" >&5
4743 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4744 if test "${ac_cv_path_LDCONFIG+set}" = set; then
4745   echo $ECHO_N "(cached) $ECHO_C" >&6
4746 else
4747   case $LDCONFIG in
4748   [\\/]* | ?:[\\/]*)
4749   ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
4750   ;;
4751   *)
4752   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4753 for as_dir in /sbin /usr/sbin $PATH
4754 do
4755   IFS=$as_save_IFS
4756   test -z "$as_dir" && as_dir=.
4757   for ac_exec_ext in '' $ac_executable_extensions; do
4758   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4759     ac_cv_path_LDCONFIG="$as_dir/$ac_word$ac_exec_ext"
4760     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4761     break 2
4762   fi
4763 done
4764 done
4765
4766   test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG="true"
4767   ;;
4768 esac
4769 fi
4770 LDCONFIG=$ac_cv_path_LDCONFIG
4771
4772 if test -n "$LDCONFIG"; then
4773   echo "$as_me:$LINENO: result: $LDCONFIG" >&5
4774 echo "${ECHO_T}$LDCONFIG" >&6
4775 else
4776   echo "$as_me:$LINENO: result: no" >&5
4777 echo "${ECHO_T}no" >&6
4778 fi
4779
4780 # Find a good install program.  We prefer a C program (faster),
4781 # so one script is as good as another.  But avoid the broken or
4782 # incompatible versions:
4783 # SysV /etc/install, /usr/sbin/install
4784 # SunOS /usr/etc/install
4785 # IRIX /sbin/install
4786 # AIX /bin/install
4787 # AmigaOS /C/install, which installs bootblocks on floppy discs
4788 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4789 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4790 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4791 # ./install, which can be erroneously created by make from ./install.sh.
4792 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4793 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
4794 if test -z "$INSTALL"; then
4795 if test "${ac_cv_path_install+set}" = set; then
4796   echo $ECHO_N "(cached) $ECHO_C" >&6
4797 else
4798   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4799 for as_dir in $PATH
4800 do
4801   IFS=$as_save_IFS
4802   test -z "$as_dir" && as_dir=.
4803   # Account for people who put trailing slashes in PATH elements.
4804 case $as_dir/ in
4805   ./ | .// | /cC/* | \
4806   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4807   /usr/ucb/* ) ;;
4808   *)
4809     # OSF1 and SCO ODT 3.0 have their own names for install.
4810     # Don't use installbsd from OSF since it installs stuff as root
4811     # by default.
4812     for ac_prog in ginstall scoinst install; do
4813       for ac_exec_ext in '' $ac_executable_extensions; do
4814         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4815           if test $ac_prog = install &&
4816             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4817             # AIX install.  It has an incompatible calling convention.
4818             :
4819           elif test $ac_prog = install &&
4820             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4821             # program-specific install script used by HP pwplus--don't use.
4822             :
4823           else
4824             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4825             break 3
4826           fi
4827         fi
4828       done
4829     done
4830     ;;
4831 esac
4832 done
4833
4834
4835 fi
4836   if test "${ac_cv_path_install+set}" = set; then
4837     INSTALL=$ac_cv_path_install
4838   else
4839     # As a last resort, use the slow shell script.  We don't cache a
4840     # path for INSTALL within a source directory, because that will
4841     # break other packages using the cache if that directory is
4842     # removed, or if the path is relative.
4843     INSTALL=$ac_install_sh
4844   fi
4845 fi
4846 echo "$as_me:$LINENO: result: $INSTALL" >&5
4847 echo "${ECHO_T}$INSTALL" >&6
4848
4849 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4850 # It thinks the first close brace ends the variable substitution.
4851 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4852
4853 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4854
4855 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4856
4857 case "$INSTALL" in
4858   [\\/$]* | ?:[\\/]* ) ;;
4859   *)  INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;;
4860 esac
4861
4862 for ac_prog in lclint lint
4863 do
4864   # Extract the first word of "$ac_prog", so it can be a program name with args.
4865 set dummy $ac_prog; ac_word=$2
4866 echo "$as_me:$LINENO: checking for $ac_word" >&5
4867 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4868 if test "${ac_cv_prog_LINT+set}" = set; then
4869   echo $ECHO_N "(cached) $ECHO_C" >&6
4870 else
4871   if test -n "$LINT"; then
4872   ac_cv_prog_LINT="$LINT" # Let the user override the test.
4873 else
4874 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4875 for as_dir in $PATH
4876 do
4877   IFS=$as_save_IFS
4878   test -z "$as_dir" && as_dir=.
4879   for ac_exec_ext in '' $ac_executable_extensions; do
4880   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4881     ac_cv_prog_LINT="$ac_prog"
4882     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4883     break 2
4884   fi
4885 done
4886 done
4887
4888 fi
4889 fi
4890 LINT=$ac_cv_prog_LINT
4891 if test -n "$LINT"; then
4892   echo "$as_me:$LINENO: result: $LINT" >&5
4893 echo "${ECHO_T}$LINT" >&6
4894 else
4895   echo "$as_me:$LINENO: result: no" >&5
4896 echo "${ECHO_T}no" >&6
4897 fi
4898
4899   test -n "$LINT" && break
4900 done
4901
4902 if test "$LINT" = "lint"
4903 then
4904   LINTFLAGS="$LINTFLAGS -errchk=%all,no%longptr64 -errhdr=%user -Ncheck=macro -Nlevel=4"
4905   fi
4906
4907
4908
4909 for ac_prog in docbook2html db2html
4910 do
4911   # Extract the first word of "$ac_prog", so it can be a program name with args.
4912 set dummy $ac_prog; ac_word=$2
4913 echo "$as_me:$LINENO: checking for $ac_word" >&5
4914 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4915 if test "${ac_cv_prog_DB2HTML+set}" = set; then
4916   echo $ECHO_N "(cached) $ECHO_C" >&6
4917 else
4918   if test -n "$DB2HTML"; then
4919   ac_cv_prog_DB2HTML="$DB2HTML" # Let the user override the test.
4920 else
4921 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4922 for as_dir in $PATH
4923 do
4924   IFS=$as_save_IFS
4925   test -z "$as_dir" && as_dir=.
4926   for ac_exec_ext in '' $ac_executable_extensions; do
4927   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4928     ac_cv_prog_DB2HTML="$ac_prog"
4929     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4930     break 2
4931   fi
4932 done
4933 done
4934
4935 fi
4936 fi
4937 DB2HTML=$ac_cv_prog_DB2HTML
4938 if test -n "$DB2HTML"; then
4939   echo "$as_me:$LINENO: result: $DB2HTML" >&5
4940 echo "${ECHO_T}$DB2HTML" >&6
4941 else
4942   echo "$as_me:$LINENO: result: no" >&5
4943 echo "${ECHO_T}no" >&6
4944 fi
4945
4946   test -n "$DB2HTML" && break
4947 done
4948 test -n "$DB2HTML" || DB2HTML="false"
4949
4950
4951
4952 for ac_prog in docbook2pdf db2pdf
4953 do
4954   # Extract the first word of "$ac_prog", so it can be a program name with args.
4955 set dummy $ac_prog; ac_word=$2
4956 echo "$as_me:$LINENO: checking for $ac_word" >&5
4957 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4958 if test "${ac_cv_prog_DB2PDF+set}" = set; then
4959   echo $ECHO_N "(cached) $ECHO_C" >&6
4960 else
4961   if test -n "$DB2PDF"; then
4962   ac_cv_prog_DB2PDF="$DB2PDF" # Let the user override the test.
4963 else
4964 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4965 for as_dir in $PATH
4966 do
4967   IFS=$as_save_IFS
4968   test -z "$as_dir" && as_dir=.
4969   for ac_exec_ext in '' $ac_executable_extensions; do
4970   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4971     ac_cv_prog_DB2PDF="$ac_prog"
4972     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4973     break 2
4974   fi
4975 done
4976 done
4977
4978 fi
4979 fi
4980 DB2PDF=$ac_cv_prog_DB2PDF
4981 if test -n "$DB2PDF"; then
4982   echo "$as_me:$LINENO: result: $DB2PDF" >&5
4983 echo "${ECHO_T}$DB2PDF" >&6
4984 else
4985   echo "$as_me:$LINENO: result: no" >&5
4986 echo "${ECHO_T}no" >&6
4987 fi
4988
4989   test -n "$DB2PDF" && break
4990 done
4991 test -n "$DB2PDF" || DB2PDF="false"
4992
4993
4994
4995 for ac_prog in docbook2ps db2ps
4996 do
4997   # Extract the first word of "$ac_prog", so it can be a program name with args.
4998 set dummy $ac_prog; ac_word=$2
4999 echo "$as_me:$LINENO: checking for $ac_word" >&5
5000 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5001 if test "${ac_cv_prog_DB2PS+set}" = set; then
5002   echo $ECHO_N "(cached) $ECHO_C" >&6
5003 else
5004   if test -n "$DB2PS"; then
5005   ac_cv_prog_DB2PS="$DB2PS" # Let the user override the test.
5006 else
5007 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5008 for as_dir in $PATH
5009 do
5010   IFS=$as_save_IFS
5011   test -z "$as_dir" && as_dir=.
5012   for ac_exec_ext in '' $ac_executable_extensions; do
5013   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5014     ac_cv_prog_DB2PS="$ac_prog"
5015     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5016     break 2
5017   fi
5018 done
5019 done
5020
5021 fi
5022 fi
5023 DB2PS=$ac_cv_prog_DB2PS
5024 if test -n "$DB2PS"; then
5025   echo "$as_me:$LINENO: result: $DB2PS" >&5
5026 echo "${ECHO_T}$DB2PS" >&6
5027 else
5028   echo "$as_me:$LINENO: result: no" >&5
5029 echo "${ECHO_T}no" >&6
5030 fi
5031
5032   test -n "$DB2PS" && break
5033 done
5034 test -n "$DB2PS" || DB2PS="false"
5035
5036
5037
5038
5039
5040 echo "$as_me:$LINENO: checking for sqrt in -lm" >&5
5041 echo $ECHO_N "checking for sqrt in -lm... $ECHO_C" >&6
5042 if test "${ac_cv_lib_m_sqrt+set}" = set; then
5043   echo $ECHO_N "(cached) $ECHO_C" >&6
5044 else
5045   ac_check_lib_save_LIBS=$LIBS
5046 LIBS="-lm  $LIBS"
5047 cat >conftest.$ac_ext <<_ACEOF
5048 #line $LINENO "configure"
5049 /* confdefs.h.  */
5050 _ACEOF
5051 cat confdefs.h >>conftest.$ac_ext
5052 cat >>conftest.$ac_ext <<_ACEOF
5053 /* end confdefs.h.  */
5054
5055 /* Override any gcc2 internal prototype to avoid an error.  */
5056 #ifdef __cplusplus
5057 extern "C"
5058 #endif
5059 /* We use char because int might match the return type of a gcc2
5060    builtin and then its argument prototype would still apply.  */
5061 char sqrt ();
5062 int
5063 main ()
5064 {
5065 sqrt ();
5066   ;
5067   return 0;
5068 }
5069 _ACEOF
5070 rm -f conftest.$ac_objext conftest$ac_exeext
5071 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5072   (eval $ac_link) 2>&5
5073   ac_status=$?
5074   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5075   (exit $ac_status); } &&
5076          { ac_try='test -s conftest$ac_exeext'
5077   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5078   (eval $ac_try) 2>&5
5079   ac_status=$?
5080   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5081   (exit $ac_status); }; }; then
5082   ac_cv_lib_m_sqrt=yes
5083 else
5084   echo "$as_me: failed program was:" >&5
5085 sed 's/^/| /' conftest.$ac_ext >&5
5086
5087 ac_cv_lib_m_sqrt=no
5088 fi
5089 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5090 LIBS=$ac_check_lib_save_LIBS
5091 fi
5092 echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrt" >&5
5093 echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6
5094 if test $ac_cv_lib_m_sqrt = yes; then
5095   cat >>confdefs.h <<_ACEOF
5096 #define HAVE_LIBM 1
5097 _ACEOF
5098
5099   LIBS="-lm $LIBS"
5100
5101 fi
5102
5103
5104 echo "$as_me:$LINENO: checking for i386_set_ldt in -li386" >&5
5105 echo $ECHO_N "checking for i386_set_ldt in -li386... $ECHO_C" >&6
5106 if test "${ac_cv_lib_i386_i386_set_ldt+set}" = set; then
5107   echo $ECHO_N "(cached) $ECHO_C" >&6
5108 else
5109   ac_check_lib_save_LIBS=$LIBS
5110 LIBS="-li386  $LIBS"
5111 cat >conftest.$ac_ext <<_ACEOF
5112 #line $LINENO "configure"
5113 /* confdefs.h.  */
5114 _ACEOF
5115 cat confdefs.h >>conftest.$ac_ext
5116 cat >>conftest.$ac_ext <<_ACEOF
5117 /* end confdefs.h.  */
5118
5119 /* Override any gcc2 internal prototype to avoid an error.  */
5120 #ifdef __cplusplus
5121 extern "C"
5122 #endif
5123 /* We use char because int might match the return type of a gcc2
5124    builtin and then its argument prototype would still apply.  */
5125 char i386_set_ldt ();
5126 int
5127 main ()
5128 {
5129 i386_set_ldt ();
5130   ;
5131   return 0;
5132 }
5133 _ACEOF
5134 rm -f conftest.$ac_objext conftest$ac_exeext
5135 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5136   (eval $ac_link) 2>&5
5137   ac_status=$?
5138   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5139   (exit $ac_status); } &&
5140          { ac_try='test -s conftest$ac_exeext'
5141   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5142   (eval $ac_try) 2>&5
5143   ac_status=$?
5144   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5145   (exit $ac_status); }; }; then
5146   ac_cv_lib_i386_i386_set_ldt=yes
5147 else
5148   echo "$as_me: failed program was:" >&5
5149 sed 's/^/| /' conftest.$ac_ext >&5
5150
5151 ac_cv_lib_i386_i386_set_ldt=no
5152 fi
5153 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5154 LIBS=$ac_check_lib_save_LIBS
5155 fi
5156 echo "$as_me:$LINENO: result: $ac_cv_lib_i386_i386_set_ldt" >&5
5157 echo "${ECHO_T}$ac_cv_lib_i386_i386_set_ldt" >&6
5158 if test $ac_cv_lib_i386_i386_set_ldt = yes; then
5159   cat >>confdefs.h <<_ACEOF
5160 #define HAVE_LIBI386 1
5161 _ACEOF
5162
5163   LIBS="-li386 $LIBS"
5164
5165 fi
5166
5167
5168 echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5
5169 echo $ECHO_N "checking for _oss_ioctl in -lossaudio... $ECHO_C" >&6
5170 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then
5171   echo $ECHO_N "(cached) $ECHO_C" >&6
5172 else
5173   ac_check_lib_save_LIBS=$LIBS
5174 LIBS="-lossaudio  $LIBS"
5175 cat >conftest.$ac_ext <<_ACEOF
5176 #line $LINENO "configure"
5177 /* confdefs.h.  */
5178 _ACEOF
5179 cat confdefs.h >>conftest.$ac_ext
5180 cat >>conftest.$ac_ext <<_ACEOF
5181 /* end confdefs.h.  */
5182
5183 /* Override any gcc2 internal prototype to avoid an error.  */
5184 #ifdef __cplusplus
5185 extern "C"
5186 #endif
5187 /* We use char because int might match the return type of a gcc2
5188    builtin and then its argument prototype would still apply.  */
5189 char _oss_ioctl ();
5190 int
5191 main ()
5192 {
5193 _oss_ioctl ();
5194   ;
5195   return 0;
5196 }
5197 _ACEOF
5198 rm -f conftest.$ac_objext conftest$ac_exeext
5199 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5200   (eval $ac_link) 2>&5
5201   ac_status=$?
5202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5203   (exit $ac_status); } &&
5204          { ac_try='test -s conftest$ac_exeext'
5205   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5206   (eval $ac_try) 2>&5
5207   ac_status=$?
5208   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5209   (exit $ac_status); }; }; then
5210   ac_cv_lib_ossaudio__oss_ioctl=yes
5211 else
5212   echo "$as_me: failed program was:" >&5
5213 sed 's/^/| /' conftest.$ac_ext >&5
5214
5215 ac_cv_lib_ossaudio__oss_ioctl=no
5216 fi
5217 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5218 LIBS=$ac_check_lib_save_LIBS
5219 fi
5220 echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
5221 echo "${ECHO_T}$ac_cv_lib_ossaudio__oss_ioctl" >&6
5222 if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then
5223   cat >>confdefs.h <<_ACEOF
5224 #define HAVE_LIBOSSAUDIO 1
5225 _ACEOF
5226
5227   LIBS="-lossaudio $LIBS"
5228
5229 fi
5230
5231
5232 for ac_func in iswalnum
5233 do
5234 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5235 echo "$as_me:$LINENO: checking for $ac_func" >&5
5236 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5237 if eval "test \"\${$as_ac_var+set}\" = set"; then
5238   echo $ECHO_N "(cached) $ECHO_C" >&6
5239 else
5240   cat >conftest.$ac_ext <<_ACEOF
5241 #line $LINENO "configure"
5242 /* confdefs.h.  */
5243 _ACEOF
5244 cat confdefs.h >>conftest.$ac_ext
5245 cat >>conftest.$ac_ext <<_ACEOF
5246 /* end confdefs.h.  */
5247 /* System header to define __stub macros and hopefully few prototypes,
5248     which can conflict with char $ac_func (); below.
5249     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5250     <limits.h> exists even on freestanding compilers.  */
5251 #ifdef __STDC__
5252 # include <limits.h>
5253 #else
5254 # include <assert.h>
5255 #endif
5256 /* Override any gcc2 internal prototype to avoid an error.  */
5257 #ifdef __cplusplus
5258 extern "C"
5259 {
5260 #endif
5261 /* We use char because int might match the return type of a gcc2
5262    builtin and then its argument prototype would still apply.  */
5263 char $ac_func ();
5264 /* The GNU C library defines this for functions which it implements
5265     to always fail with ENOSYS.  Some functions are actually named
5266     something starting with __ and the normal name is an alias.  */
5267 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5268 choke me
5269 #else
5270 char (*f) () = $ac_func;
5271 #endif
5272 #ifdef __cplusplus
5273 }
5274 #endif
5275
5276 int
5277 main ()
5278 {
5279 return f != $ac_func;
5280   ;
5281   return 0;
5282 }
5283 _ACEOF
5284 rm -f conftest.$ac_objext conftest$ac_exeext
5285 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5286   (eval $ac_link) 2>&5
5287   ac_status=$?
5288   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5289   (exit $ac_status); } &&
5290          { ac_try='test -s conftest$ac_exeext'
5291   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5292   (eval $ac_try) 2>&5
5293   ac_status=$?
5294   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5295   (exit $ac_status); }; }; then
5296   eval "$as_ac_var=yes"
5297 else
5298   echo "$as_me: failed program was:" >&5
5299 sed 's/^/| /' conftest.$ac_ext >&5
5300
5301 eval "$as_ac_var=no"
5302 fi
5303 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5304 fi
5305 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5306 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5307 if test `eval echo '${'$as_ac_var'}'` = yes; then
5308   cat >>confdefs.h <<_ACEOF
5309 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5310 _ACEOF
5311
5312 else
5313
5314 echo "$as_me:$LINENO: checking for iswalnum in -lw" >&5
5315 echo $ECHO_N "checking for iswalnum in -lw... $ECHO_C" >&6
5316 if test "${ac_cv_lib_w_iswalnum+set}" = set; then
5317   echo $ECHO_N "(cached) $ECHO_C" >&6
5318 else
5319   ac_check_lib_save_LIBS=$LIBS
5320 LIBS="-lw  $LIBS"
5321 cat >conftest.$ac_ext <<_ACEOF
5322 #line $LINENO "configure"
5323 /* confdefs.h.  */
5324 _ACEOF
5325 cat confdefs.h >>conftest.$ac_ext
5326 cat >>conftest.$ac_ext <<_ACEOF
5327 /* end confdefs.h.  */
5328
5329 /* Override any gcc2 internal prototype to avoid an error.  */
5330 #ifdef __cplusplus
5331 extern "C"
5332 #endif
5333 /* We use char because int might match the return type of a gcc2
5334    builtin and then its argument prototype would still apply.  */
5335 char iswalnum ();
5336 int
5337 main ()
5338 {
5339 iswalnum ();
5340   ;
5341   return 0;
5342 }
5343 _ACEOF
5344 rm -f conftest.$ac_objext conftest$ac_exeext
5345 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5346   (eval $ac_link) 2>&5
5347   ac_status=$?
5348   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5349   (exit $ac_status); } &&
5350          { ac_try='test -s conftest$ac_exeext'
5351   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5352   (eval $ac_try) 2>&5
5353   ac_status=$?
5354   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5355   (exit $ac_status); }; }; then
5356   ac_cv_lib_w_iswalnum=yes
5357 else
5358   echo "$as_me: failed program was:" >&5
5359 sed 's/^/| /' conftest.$ac_ext >&5
5360
5361 ac_cv_lib_w_iswalnum=no
5362 fi
5363 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5364 LIBS=$ac_check_lib_save_LIBS
5365 fi
5366 echo "$as_me:$LINENO: result: $ac_cv_lib_w_iswalnum" >&5
5367 echo "${ECHO_T}$ac_cv_lib_w_iswalnum" >&6
5368 if test $ac_cv_lib_w_iswalnum = yes; then
5369   cat >>confdefs.h <<_ACEOF
5370 #define HAVE_LIBW 1
5371 _ACEOF
5372
5373   LIBS="-lw $LIBS"
5374
5375 fi
5376
5377 fi
5378 done
5379
5380
5381 for ac_func in gethostbyname
5382 do
5383 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5384 echo "$as_me:$LINENO: checking for $ac_func" >&5
5385 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5386 if eval "test \"\${$as_ac_var+set}\" = set"; then
5387   echo $ECHO_N "(cached) $ECHO_C" >&6
5388 else
5389   cat >conftest.$ac_ext <<_ACEOF
5390 #line $LINENO "configure"
5391 /* confdefs.h.  */
5392 _ACEOF
5393 cat confdefs.h >>conftest.$ac_ext
5394 cat >>conftest.$ac_ext <<_ACEOF
5395 /* end confdefs.h.  */
5396 /* System header to define __stub macros and hopefully few prototypes,
5397     which can conflict with char $ac_func (); below.
5398     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5399     <limits.h> exists even on freestanding compilers.  */
5400 #ifdef __STDC__
5401 # include <limits.h>
5402 #else
5403 # include <assert.h>
5404 #endif
5405 /* Override any gcc2 internal prototype to avoid an error.  */
5406 #ifdef __cplusplus
5407 extern "C"
5408 {
5409 #endif
5410 /* We use char because int might match the return type of a gcc2
5411    builtin and then its argument prototype would still apply.  */
5412 char $ac_func ();
5413 /* The GNU C library defines this for functions which it implements
5414     to always fail with ENOSYS.  Some functions are actually named
5415     something starting with __ and the normal name is an alias.  */
5416 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5417 choke me
5418 #else
5419 char (*f) () = $ac_func;
5420 #endif
5421 #ifdef __cplusplus
5422 }
5423 #endif
5424
5425 int
5426 main ()
5427 {
5428 return f != $ac_func;
5429   ;
5430   return 0;
5431 }
5432 _ACEOF
5433 rm -f conftest.$ac_objext conftest$ac_exeext
5434 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5435   (eval $ac_link) 2>&5
5436   ac_status=$?
5437   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5438   (exit $ac_status); } &&
5439          { ac_try='test -s conftest$ac_exeext'
5440   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5441   (eval $ac_try) 2>&5
5442   ac_status=$?
5443   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5444   (exit $ac_status); }; }; then
5445   eval "$as_ac_var=yes"
5446 else
5447   echo "$as_me: failed program was:" >&5
5448 sed 's/^/| /' conftest.$ac_ext >&5
5449
5450 eval "$as_ac_var=no"
5451 fi
5452 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5453 fi
5454 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5455 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5456 if test `eval echo '${'$as_ac_var'}'` = yes; then
5457   cat >>confdefs.h <<_ACEOF
5458 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5459 _ACEOF
5460
5461 else
5462
5463 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
5464 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
5465 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
5466   echo $ECHO_N "(cached) $ECHO_C" >&6
5467 else
5468   ac_check_lib_save_LIBS=$LIBS
5469 LIBS="-lnsl  $LIBS"
5470 cat >conftest.$ac_ext <<_ACEOF
5471 #line $LINENO "configure"
5472 /* confdefs.h.  */
5473 _ACEOF
5474 cat confdefs.h >>conftest.$ac_ext
5475 cat >>conftest.$ac_ext <<_ACEOF
5476 /* end confdefs.h.  */
5477
5478 /* Override any gcc2 internal prototype to avoid an error.  */
5479 #ifdef __cplusplus
5480 extern "C"
5481 #endif
5482 /* We use char because int might match the return type of a gcc2
5483    builtin and then its argument prototype would still apply.  */
5484 char gethostbyname ();
5485 int
5486 main ()
5487 {
5488 gethostbyname ();
5489   ;
5490   return 0;
5491 }
5492 _ACEOF
5493 rm -f conftest.$ac_objext conftest$ac_exeext
5494 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5495   (eval $ac_link) 2>&5
5496   ac_status=$?
5497   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5498   (exit $ac_status); } &&
5499          { ac_try='test -s conftest$ac_exeext'
5500   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5501   (eval $ac_try) 2>&5
5502   ac_status=$?
5503   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5504   (exit $ac_status); }; }; then
5505   ac_cv_lib_nsl_gethostbyname=yes
5506 else
5507   echo "$as_me: failed program was:" >&5
5508 sed 's/^/| /' conftest.$ac_ext >&5
5509
5510 ac_cv_lib_nsl_gethostbyname=no
5511 fi
5512 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5513 LIBS=$ac_check_lib_save_LIBS
5514 fi
5515 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
5516 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
5517 if test $ac_cv_lib_nsl_gethostbyname = yes; then
5518   cat >>confdefs.h <<_ACEOF
5519 #define HAVE_LIBNSL 1
5520 _ACEOF
5521
5522   LIBS="-lnsl $LIBS"
5523
5524 fi
5525
5526 fi
5527 done
5528
5529
5530 for ac_func in connect
5531 do
5532 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5533 echo "$as_me:$LINENO: checking for $ac_func" >&5
5534 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5535 if eval "test \"\${$as_ac_var+set}\" = set"; then
5536   echo $ECHO_N "(cached) $ECHO_C" >&6
5537 else
5538   cat >conftest.$ac_ext <<_ACEOF
5539 #line $LINENO "configure"
5540 /* confdefs.h.  */
5541 _ACEOF
5542 cat confdefs.h >>conftest.$ac_ext
5543 cat >>conftest.$ac_ext <<_ACEOF
5544 /* end confdefs.h.  */
5545 /* System header to define __stub macros and hopefully few prototypes,
5546     which can conflict with char $ac_func (); below.
5547     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5548     <limits.h> exists even on freestanding compilers.  */
5549 #ifdef __STDC__
5550 # include <limits.h>
5551 #else
5552 # include <assert.h>
5553 #endif
5554 /* Override any gcc2 internal prototype to avoid an error.  */
5555 #ifdef __cplusplus
5556 extern "C"
5557 {
5558 #endif
5559 /* We use char because int might match the return type of a gcc2
5560    builtin and then its argument prototype would still apply.  */
5561 char $ac_func ();
5562 /* The GNU C library defines this for functions which it implements
5563     to always fail with ENOSYS.  Some functions are actually named
5564     something starting with __ and the normal name is an alias.  */
5565 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5566 choke me
5567 #else
5568 char (*f) () = $ac_func;
5569 #endif
5570 #ifdef __cplusplus
5571 }
5572 #endif
5573
5574 int
5575 main ()
5576 {
5577 return f != $ac_func;
5578   ;
5579   return 0;
5580 }
5581 _ACEOF
5582 rm -f conftest.$ac_objext conftest$ac_exeext
5583 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5584   (eval $ac_link) 2>&5
5585   ac_status=$?
5586   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5587   (exit $ac_status); } &&
5588          { ac_try='test -s conftest$ac_exeext'
5589   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5590   (eval $ac_try) 2>&5
5591   ac_status=$?
5592   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5593   (exit $ac_status); }; }; then
5594   eval "$as_ac_var=yes"
5595 else
5596   echo "$as_me: failed program was:" >&5
5597 sed 's/^/| /' conftest.$ac_ext >&5
5598
5599 eval "$as_ac_var=no"
5600 fi
5601 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5602 fi
5603 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5604 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5605 if test `eval echo '${'$as_ac_var'}'` = yes; then
5606   cat >>confdefs.h <<_ACEOF
5607 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5608 _ACEOF
5609
5610 else
5611
5612 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
5613 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
5614 if test "${ac_cv_lib_socket_connect+set}" = set; then
5615   echo $ECHO_N "(cached) $ECHO_C" >&6
5616 else
5617   ac_check_lib_save_LIBS=$LIBS
5618 LIBS="-lsocket  $LIBS"
5619 cat >conftest.$ac_ext <<_ACEOF
5620 #line $LINENO "configure"
5621 /* confdefs.h.  */
5622 _ACEOF
5623 cat confdefs.h >>conftest.$ac_ext
5624 cat >>conftest.$ac_ext <<_ACEOF
5625 /* end confdefs.h.  */
5626
5627 /* Override any gcc2 internal prototype to avoid an error.  */
5628 #ifdef __cplusplus
5629 extern "C"
5630 #endif
5631 /* We use char because int might match the return type of a gcc2
5632    builtin and then its argument prototype would still apply.  */
5633 char connect ();
5634 int
5635 main ()
5636 {
5637 connect ();
5638   ;
5639   return 0;
5640 }
5641 _ACEOF
5642 rm -f conftest.$ac_objext conftest$ac_exeext
5643 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5644   (eval $ac_link) 2>&5
5645   ac_status=$?
5646   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5647   (exit $ac_status); } &&
5648          { ac_try='test -s conftest$ac_exeext'
5649   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5650   (eval $ac_try) 2>&5
5651   ac_status=$?
5652   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5653   (exit $ac_status); }; }; then
5654   ac_cv_lib_socket_connect=yes
5655 else
5656   echo "$as_me: failed program was:" >&5
5657 sed 's/^/| /' conftest.$ac_ext >&5
5658
5659 ac_cv_lib_socket_connect=no
5660 fi
5661 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5662 LIBS=$ac_check_lib_save_LIBS
5663 fi
5664 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
5665 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
5666 if test $ac_cv_lib_socket_connect = yes; then
5667   cat >>confdefs.h <<_ACEOF
5668 #define HAVE_LIBSOCKET 1
5669 _ACEOF
5670
5671   LIBS="-lsocket $LIBS"
5672
5673 fi
5674
5675 fi
5676 done
5677
5678
5679 for ac_func in inet_aton
5680 do
5681 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5682 echo "$as_me:$LINENO: checking for $ac_func" >&5
5683 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5684 if eval "test \"\${$as_ac_var+set}\" = set"; then
5685   echo $ECHO_N "(cached) $ECHO_C" >&6
5686 else
5687   cat >conftest.$ac_ext <<_ACEOF
5688 #line $LINENO "configure"
5689 /* confdefs.h.  */
5690 _ACEOF
5691 cat confdefs.h >>conftest.$ac_ext
5692 cat >>conftest.$ac_ext <<_ACEOF
5693 /* end confdefs.h.  */
5694 /* System header to define __stub macros and hopefully few prototypes,
5695     which can conflict with char $ac_func (); below.
5696     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5697     <limits.h> exists even on freestanding compilers.  */
5698 #ifdef __STDC__
5699 # include <limits.h>
5700 #else
5701 # include <assert.h>
5702 #endif
5703 /* Override any gcc2 internal prototype to avoid an error.  */
5704 #ifdef __cplusplus
5705 extern "C"
5706 {
5707 #endif
5708 /* We use char because int might match the return type of a gcc2
5709    builtin and then its argument prototype would still apply.  */
5710 char $ac_func ();
5711 /* The GNU C library defines this for functions which it implements
5712     to always fail with ENOSYS.  Some functions are actually named
5713     something starting with __ and the normal name is an alias.  */
5714 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5715 choke me
5716 #else
5717 char (*f) () = $ac_func;
5718 #endif
5719 #ifdef __cplusplus
5720 }
5721 #endif
5722
5723 int
5724 main ()
5725 {
5726 return f != $ac_func;
5727   ;
5728   return 0;
5729 }
5730 _ACEOF
5731 rm -f conftest.$ac_objext conftest$ac_exeext
5732 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5733   (eval $ac_link) 2>&5
5734   ac_status=$?
5735   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5736   (exit $ac_status); } &&
5737          { ac_try='test -s conftest$ac_exeext'
5738   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5739   (eval $ac_try) 2>&5
5740   ac_status=$?
5741   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5742   (exit $ac_status); }; }; then
5743   eval "$as_ac_var=yes"
5744 else
5745   echo "$as_me: failed program was:" >&5
5746 sed 's/^/| /' conftest.$ac_ext >&5
5747
5748 eval "$as_ac_var=no"
5749 fi
5750 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5751 fi
5752 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5753 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5754 if test `eval echo '${'$as_ac_var'}'` = yes; then
5755   cat >>confdefs.h <<_ACEOF
5756 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5757 _ACEOF
5758
5759 else
5760
5761 echo "$as_me:$LINENO: checking for inet_aton in -lresolv" >&5
5762 echo $ECHO_N "checking for inet_aton in -lresolv... $ECHO_C" >&6
5763 if test "${ac_cv_lib_resolv_inet_aton+set}" = set; then
5764   echo $ECHO_N "(cached) $ECHO_C" >&6
5765 else
5766   ac_check_lib_save_LIBS=$LIBS
5767 LIBS="-lresolv  $LIBS"
5768 cat >conftest.$ac_ext <<_ACEOF
5769 #line $LINENO "configure"
5770 /* confdefs.h.  */
5771 _ACEOF
5772 cat confdefs.h >>conftest.$ac_ext
5773 cat >>conftest.$ac_ext <<_ACEOF
5774 /* end confdefs.h.  */
5775
5776 /* Override any gcc2 internal prototype to avoid an error.  */
5777 #ifdef __cplusplus
5778 extern "C"
5779 #endif
5780 /* We use char because int might match the return type of a gcc2
5781    builtin and then its argument prototype would still apply.  */
5782 char inet_aton ();
5783 int
5784 main ()
5785 {
5786 inet_aton ();
5787   ;
5788   return 0;
5789 }
5790 _ACEOF
5791 rm -f conftest.$ac_objext conftest$ac_exeext
5792 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5793   (eval $ac_link) 2>&5
5794   ac_status=$?
5795   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5796   (exit $ac_status); } &&
5797          { ac_try='test -s conftest$ac_exeext'
5798   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5799   (eval $ac_try) 2>&5
5800   ac_status=$?
5801   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5802   (exit $ac_status); }; }; then
5803   ac_cv_lib_resolv_inet_aton=yes
5804 else
5805   echo "$as_me: failed program was:" >&5
5806 sed 's/^/| /' conftest.$ac_ext >&5
5807
5808 ac_cv_lib_resolv_inet_aton=no
5809 fi
5810 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5811 LIBS=$ac_check_lib_save_LIBS
5812 fi
5813 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_aton" >&5
5814 echo "${ECHO_T}$ac_cv_lib_resolv_inet_aton" >&6
5815 if test $ac_cv_lib_resolv_inet_aton = yes; then
5816   cat >>confdefs.h <<_ACEOF
5817 #define HAVE_LIBRESOLV 1
5818 _ACEOF
5819
5820   LIBS="-lresolv $LIBS"
5821
5822 fi
5823
5824 fi
5825 done
5826
5827
5828 echo "$as_me:$LINENO: checking for _xpg4_setrunelocale in -lxpg4" >&5
5829 echo $ECHO_N "checking for _xpg4_setrunelocale in -lxpg4... $ECHO_C" >&6
5830 if test "${ac_cv_lib_xpg4__xpg4_setrunelocale+set}" = set; then
5831   echo $ECHO_N "(cached) $ECHO_C" >&6
5832 else
5833   ac_check_lib_save_LIBS=$LIBS
5834 LIBS="-lxpg4  $LIBS"
5835 cat >conftest.$ac_ext <<_ACEOF
5836 #line $LINENO "configure"
5837 /* confdefs.h.  */
5838 _ACEOF
5839 cat confdefs.h >>conftest.$ac_ext
5840 cat >>conftest.$ac_ext <<_ACEOF
5841 /* end confdefs.h.  */
5842
5843 /* Override any gcc2 internal prototype to avoid an error.  */
5844 #ifdef __cplusplus
5845 extern "C"
5846 #endif
5847 /* We use char because int might match the return type of a gcc2
5848    builtin and then its argument prototype would still apply.  */
5849 char _xpg4_setrunelocale ();
5850 int
5851 main ()
5852 {
5853 _xpg4_setrunelocale ();
5854   ;
5855   return 0;
5856 }
5857 _ACEOF
5858 rm -f conftest.$ac_objext conftest$ac_exeext
5859 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5860   (eval $ac_link) 2>&5
5861   ac_status=$?
5862   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5863   (exit $ac_status); } &&
5864          { ac_try='test -s conftest$ac_exeext'
5865   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5866   (eval $ac_try) 2>&5
5867   ac_status=$?
5868   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5869   (exit $ac_status); }; }; then
5870   ac_cv_lib_xpg4__xpg4_setrunelocale=yes
5871 else
5872   echo "$as_me: failed program was:" >&5
5873 sed 's/^/| /' conftest.$ac_ext >&5
5874
5875 ac_cv_lib_xpg4__xpg4_setrunelocale=no
5876 fi
5877 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5878 LIBS=$ac_check_lib_save_LIBS
5879 fi
5880 echo "$as_me:$LINENO: result: $ac_cv_lib_xpg4__xpg4_setrunelocale" >&5
5881 echo "${ECHO_T}$ac_cv_lib_xpg4__xpg4_setrunelocale" >&6
5882 if test $ac_cv_lib_xpg4__xpg4_setrunelocale = yes; then
5883   cat >>confdefs.h <<_ACEOF
5884 #define HAVE_LIBXPG4 1
5885 _ACEOF
5886
5887   LIBS="-lxpg4 $LIBS"
5888
5889 fi
5890
5891
5892 echo "$as_me:$LINENO: checking for mmap in -lmmap" >&5
5893 echo $ECHO_N "checking for mmap in -lmmap... $ECHO_C" >&6
5894 if test "${ac_cv_lib_mmap_mmap+set}" = set; then
5895   echo $ECHO_N "(cached) $ECHO_C" >&6
5896 else
5897   ac_check_lib_save_LIBS=$LIBS
5898 LIBS="-lmmap  $LIBS"
5899 cat >conftest.$ac_ext <<_ACEOF
5900 #line $LINENO "configure"
5901 /* confdefs.h.  */
5902 _ACEOF
5903 cat confdefs.h >>conftest.$ac_ext
5904 cat >>conftest.$ac_ext <<_ACEOF
5905 /* end confdefs.h.  */
5906
5907 /* Override any gcc2 internal prototype to avoid an error.  */
5908 #ifdef __cplusplus
5909 extern "C"
5910 #endif
5911 /* We use char because int might match the return type of a gcc2
5912    builtin and then its argument prototype would still apply.  */
5913 char mmap ();
5914 int
5915 main ()
5916 {
5917 mmap ();
5918   ;
5919   return 0;
5920 }
5921 _ACEOF
5922 rm -f conftest.$ac_objext conftest$ac_exeext
5923 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5924   (eval $ac_link) 2>&5
5925   ac_status=$?
5926   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5927   (exit $ac_status); } &&
5928          { ac_try='test -s conftest$ac_exeext'
5929   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5930   (eval $ac_try) 2>&5
5931   ac_status=$?
5932   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5933   (exit $ac_status); }; }; then
5934   ac_cv_lib_mmap_mmap=yes
5935 else
5936   echo "$as_me: failed program was:" >&5
5937 sed 's/^/| /' conftest.$ac_ext >&5
5938
5939 ac_cv_lib_mmap_mmap=no
5940 fi
5941 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5942 LIBS=$ac_check_lib_save_LIBS
5943 fi
5944 echo "$as_me:$LINENO: result: $ac_cv_lib_mmap_mmap" >&5
5945 echo "${ECHO_T}$ac_cv_lib_mmap_mmap" >&6
5946 if test $ac_cv_lib_mmap_mmap = yes; then
5947   cat >>confdefs.h <<_ACEOF
5948 #define HAVE_LIBMMAP 1
5949 _ACEOF
5950
5951   LIBS="-lmmap $LIBS"
5952
5953 fi
5954
5955
5956 JPEGLIB=""
5957
5958 echo "$as_me:$LINENO: checking for egrep" >&5
5959 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
5960 if test "${ac_cv_prog_egrep+set}" = set; then
5961   echo $ECHO_N "(cached) $ECHO_C" >&6
5962 else
5963   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
5964     then ac_cv_prog_egrep='grep -E'
5965     else ac_cv_prog_egrep='egrep'
5966     fi
5967 fi
5968 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
5969 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
5970  EGREP=$ac_cv_prog_egrep
5971
5972
5973 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5974 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5975 if test "${ac_cv_header_stdc+set}" = set; then
5976   echo $ECHO_N "(cached) $ECHO_C" >&6
5977 else
5978   cat >conftest.$ac_ext <<_ACEOF
5979 #line $LINENO "configure"
5980 /* confdefs.h.  */
5981 _ACEOF
5982 cat confdefs.h >>conftest.$ac_ext
5983 cat >>conftest.$ac_ext <<_ACEOF
5984 /* end confdefs.h.  */
5985 #include <stdlib.h>
5986 #include <stdarg.h>
5987 #include <string.h>
5988 #include <float.h>
5989
5990 int
5991 main ()
5992 {
5993
5994   ;
5995   return 0;
5996 }
5997 _ACEOF
5998 rm -f conftest.$ac_objext
5999 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6000   (eval $ac_compile) 2>&5
6001   ac_status=$?
6002   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6003   (exit $ac_status); } &&
6004          { ac_try='test -s conftest.$ac_objext'
6005   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6006   (eval $ac_try) 2>&5
6007   ac_status=$?
6008   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6009   (exit $ac_status); }; }; then
6010   ac_cv_header_stdc=yes
6011 else
6012   echo "$as_me: failed program was:" >&5
6013 sed 's/^/| /' conftest.$ac_ext >&5
6014
6015 ac_cv_header_stdc=no
6016 fi
6017 rm -f conftest.$ac_objext conftest.$ac_ext
6018
6019 if test $ac_cv_header_stdc = yes; then
6020   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6021   cat >conftest.$ac_ext <<_ACEOF
6022 #line $LINENO "configure"
6023 /* confdefs.h.  */
6024 _ACEOF
6025 cat confdefs.h >>conftest.$ac_ext
6026 cat >>conftest.$ac_ext <<_ACEOF
6027 /* end confdefs.h.  */
6028 #include <string.h>
6029
6030 _ACEOF
6031 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6032   $EGREP "memchr" >/dev/null 2>&1; then
6033   :
6034 else
6035   ac_cv_header_stdc=no
6036 fi
6037 rm -f conftest*
6038
6039 fi
6040
6041 if test $ac_cv_header_stdc = yes; then
6042   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6043   cat >conftest.$ac_ext <<_ACEOF
6044 #line $LINENO "configure"
6045 /* confdefs.h.  */
6046 _ACEOF
6047 cat confdefs.h >>conftest.$ac_ext
6048 cat >>conftest.$ac_ext <<_ACEOF
6049 /* end confdefs.h.  */
6050 #include <stdlib.h>
6051
6052 _ACEOF
6053 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6054   $EGREP "free" >/dev/null 2>&1; then
6055   :
6056 else
6057   ac_cv_header_stdc=no
6058 fi
6059 rm -f conftest*
6060
6061 fi
6062
6063 if test $ac_cv_header_stdc = yes; then
6064   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6065   if test "$cross_compiling" = yes; then
6066   :
6067 else
6068   cat >conftest.$ac_ext <<_ACEOF
6069 #line $LINENO "configure"
6070 /* confdefs.h.  */
6071 _ACEOF
6072 cat confdefs.h >>conftest.$ac_ext
6073 cat >>conftest.$ac_ext <<_ACEOF
6074 /* end confdefs.h.  */
6075 #include <ctype.h>
6076 #if ((' ' & 0x0FF) == 0x020)
6077 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6078 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6079 #else
6080 # define ISLOWER(c) \
6081                    (('a' <= (c) && (c) <= 'i') \
6082                      || ('j' <= (c) && (c) <= 'r') \
6083                      || ('s' <= (c) && (c) <= 'z'))
6084 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6085 #endif
6086
6087 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6088 int
6089 main ()
6090 {
6091   int i;
6092   for (i = 0; i < 256; i++)
6093     if (XOR (islower (i), ISLOWER (i))
6094         || toupper (i) != TOUPPER (i))
6095       exit(2);
6096   exit (0);
6097 }
6098 _ACEOF
6099 rm -f conftest$ac_exeext
6100 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6101   (eval $ac_link) 2>&5
6102   ac_status=$?
6103   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6104   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6105   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6106   (eval $ac_try) 2>&5
6107   ac_status=$?
6108   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6109   (exit $ac_status); }; }; then
6110   :
6111 else
6112   echo "$as_me: program exited with status $ac_status" >&5
6113 echo "$as_me: failed program was:" >&5
6114 sed 's/^/| /' conftest.$ac_ext >&5
6115
6116 ( exit $ac_status )
6117 ac_cv_header_stdc=no
6118 fi
6119 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6120 fi
6121 fi
6122 fi
6123 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6124 echo "${ECHO_T}$ac_cv_header_stdc" >&6
6125 if test $ac_cv_header_stdc = yes; then
6126
6127 cat >>confdefs.h <<\_ACEOF
6128 #define STDC_HEADERS 1
6129 _ACEOF
6130
6131 fi
6132
6133 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6134
6135
6136
6137
6138
6139
6140
6141
6142
6143 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6144                   inttypes.h stdint.h unistd.h
6145 do
6146 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6147 echo "$as_me:$LINENO: checking for $ac_header" >&5
6148 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6149 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6150   echo $ECHO_N "(cached) $ECHO_C" >&6
6151 else
6152   cat >conftest.$ac_ext <<_ACEOF
6153 #line $LINENO "configure"
6154 /* confdefs.h.  */
6155 _ACEOF
6156 cat confdefs.h >>conftest.$ac_ext
6157 cat >>conftest.$ac_ext <<_ACEOF
6158 /* end confdefs.h.  */
6159 $ac_includes_default
6160
6161 #include <$ac_header>
6162 _ACEOF
6163 rm -f conftest.$ac_objext
6164 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6165   (eval $ac_compile) 2>&5
6166   ac_status=$?
6167   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6168   (exit $ac_status); } &&
6169          { ac_try='test -s conftest.$ac_objext'
6170   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6171   (eval $ac_try) 2>&5
6172   ac_status=$?
6173   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6174   (exit $ac_status); }; }; then
6175   eval "$as_ac_Header=yes"
6176 else
6177   echo "$as_me: failed program was:" >&5
6178 sed 's/^/| /' conftest.$ac_ext >&5
6179
6180 eval "$as_ac_Header=no"
6181 fi
6182 rm -f conftest.$ac_objext conftest.$ac_ext
6183 fi
6184 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6185 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6186 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6187   cat >>confdefs.h <<_ACEOF
6188 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6189 _ACEOF
6190
6191 fi
6192
6193 done
6194
6195
6196
6197 for ac_header in jpeglib.h
6198 do
6199 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6200 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6201   echo "$as_me:$LINENO: checking for $ac_header" >&5
6202 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6203 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6204   echo $ECHO_N "(cached) $ECHO_C" >&6
6205 fi
6206 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6207 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6208 else
6209   # Is the header compilable?
6210 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6211 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6212 cat >conftest.$ac_ext <<_ACEOF
6213 #line $LINENO "configure"
6214 /* confdefs.h.  */
6215 _ACEOF
6216 cat confdefs.h >>conftest.$ac_ext
6217 cat >>conftest.$ac_ext <<_ACEOF
6218 /* end confdefs.h.  */
6219 $ac_includes_default
6220 #include <$ac_header>
6221 _ACEOF
6222 rm -f conftest.$ac_objext
6223 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6224   (eval $ac_compile) 2>&5
6225   ac_status=$?
6226   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6227   (exit $ac_status); } &&
6228          { ac_try='test -s conftest.$ac_objext'
6229   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6230   (eval $ac_try) 2>&5
6231   ac_status=$?
6232   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6233   (exit $ac_status); }; }; then
6234   ac_header_compiler=yes
6235 else
6236   echo "$as_me: failed program was:" >&5
6237 sed 's/^/| /' conftest.$ac_ext >&5
6238
6239 ac_header_compiler=no
6240 fi
6241 rm -f conftest.$ac_objext conftest.$ac_ext
6242 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6243 echo "${ECHO_T}$ac_header_compiler" >&6
6244
6245 # Is the header present?
6246 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6247 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6248 cat >conftest.$ac_ext <<_ACEOF
6249 #line $LINENO "configure"
6250 /* confdefs.h.  */
6251 _ACEOF
6252 cat confdefs.h >>conftest.$ac_ext
6253 cat >>conftest.$ac_ext <<_ACEOF
6254 /* end confdefs.h.  */
6255 #include <$ac_header>
6256 _ACEOF
6257 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6258   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6259   ac_status=$?
6260   grep -v '^ *+' conftest.er1 >conftest.err
6261   rm -f conftest.er1
6262   cat conftest.err >&5
6263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6264   (exit $ac_status); } >/dev/null; then
6265   if test -s conftest.err; then
6266     ac_cpp_err=$ac_c_preproc_warn_flag
6267   else
6268     ac_cpp_err=
6269   fi
6270 else
6271   ac_cpp_err=yes
6272 fi
6273 if test -z "$ac_cpp_err"; then
6274   ac_header_preproc=yes
6275 else
6276   echo "$as_me: failed program was:" >&5
6277 sed 's/^/| /' conftest.$ac_ext >&5
6278
6279   ac_header_preproc=no
6280 fi
6281 rm -f conftest.err conftest.$ac_ext
6282 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6283 echo "${ECHO_T}$ac_header_preproc" >&6
6284
6285 # So?  What about this header?
6286 case $ac_header_compiler:$ac_header_preproc in
6287   yes:no )
6288     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6289 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6290     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6291 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6292     (
6293       cat <<\_ASBOX
6294 ## ------------------------------------ ##
6295 ## Report this to bug-autoconf@gnu.org. ##
6296 ## ------------------------------------ ##
6297 _ASBOX
6298     ) |
6299       sed "s/^/$as_me: WARNING:     /" >&2
6300     ;;
6301   no:yes )
6302     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6303 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6304     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6305 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6306     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6307 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6308     (
6309       cat <<\_ASBOX
6310 ## ------------------------------------ ##
6311 ## Report this to bug-autoconf@gnu.org. ##
6312 ## ------------------------------------ ##
6313 _ASBOX
6314     ) |
6315       sed "s/^/$as_me: WARNING:     /" >&2
6316     ;;
6317 esac
6318 echo "$as_me:$LINENO: checking for $ac_header" >&5
6319 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6320 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6321   echo $ECHO_N "(cached) $ECHO_C" >&6
6322 else
6323   eval "$as_ac_Header=$ac_header_preproc"
6324 fi
6325 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6326 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6327
6328 fi
6329 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6330   cat >>confdefs.h <<_ACEOF
6331 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6332 _ACEOF
6333  echo "$as_me:$LINENO: checking for jpeg_start_decompress in -ljpeg" >&5
6334 echo $ECHO_N "checking for jpeg_start_decompress in -ljpeg... $ECHO_C" >&6
6335 if test "${ac_cv_lib_jpeg_jpeg_start_decompress+set}" = set; then
6336   echo $ECHO_N "(cached) $ECHO_C" >&6
6337 else
6338   ac_check_lib_save_LIBS=$LIBS
6339 LIBS="-ljpeg  $LIBS"
6340 cat >conftest.$ac_ext <<_ACEOF
6341 #line $LINENO "configure"
6342 /* confdefs.h.  */
6343 _ACEOF
6344 cat confdefs.h >>conftest.$ac_ext
6345 cat >>conftest.$ac_ext <<_ACEOF
6346 /* end confdefs.h.  */
6347
6348 /* Override any gcc2 internal prototype to avoid an error.  */
6349 #ifdef __cplusplus
6350 extern "C"
6351 #endif
6352 /* We use char because int might match the return type of a gcc2
6353    builtin and then its argument prototype would still apply.  */
6354 char jpeg_start_decompress ();
6355 int
6356 main ()
6357 {
6358 jpeg_start_decompress ();
6359   ;
6360   return 0;
6361 }
6362 _ACEOF
6363 rm -f conftest.$ac_objext conftest$ac_exeext
6364 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6365   (eval $ac_link) 2>&5
6366   ac_status=$?
6367   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6368   (exit $ac_status); } &&
6369          { ac_try='test -s conftest$ac_exeext'
6370   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6371   (eval $ac_try) 2>&5
6372   ac_status=$?
6373   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6374   (exit $ac_status); }; }; then
6375   ac_cv_lib_jpeg_jpeg_start_decompress=yes
6376 else
6377   echo "$as_me: failed program was:" >&5
6378 sed 's/^/| /' conftest.$ac_ext >&5
6379
6380 ac_cv_lib_jpeg_jpeg_start_decompress=no
6381 fi
6382 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6383 LIBS=$ac_check_lib_save_LIBS
6384 fi
6385 echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_start_decompress" >&5
6386 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_start_decompress" >&6
6387 if test $ac_cv_lib_jpeg_jpeg_start_decompress = yes; then
6388
6389 cat >>confdefs.h <<\_ACEOF
6390 #define HAVE_LIBJPEG 1
6391 _ACEOF
6392
6393         JPEGLIB="-ljpeg"
6394
6395 fi
6396
6397
6398 fi
6399
6400 done
6401
6402
6403 GIFLIB=""
6404
6405
6406 for ac_header in gif_lib.h
6407 do
6408 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6409 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6410   echo "$as_me:$LINENO: checking for $ac_header" >&5
6411 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6412 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6413   echo $ECHO_N "(cached) $ECHO_C" >&6
6414 fi
6415 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6416 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6417 else
6418   # Is the header compilable?
6419 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6420 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6421 cat >conftest.$ac_ext <<_ACEOF
6422 #line $LINENO "configure"
6423 /* confdefs.h.  */
6424 _ACEOF
6425 cat confdefs.h >>conftest.$ac_ext
6426 cat >>conftest.$ac_ext <<_ACEOF
6427 /* end confdefs.h.  */
6428 $ac_includes_default
6429 #include <$ac_header>
6430 _ACEOF
6431 rm -f conftest.$ac_objext
6432 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6433   (eval $ac_compile) 2>&5
6434   ac_status=$?
6435   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6436   (exit $ac_status); } &&
6437          { ac_try='test -s conftest.$ac_objext'
6438   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6439   (eval $ac_try) 2>&5
6440   ac_status=$?
6441   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6442   (exit $ac_status); }; }; then
6443   ac_header_compiler=yes
6444 else
6445   echo "$as_me: failed program was:" >&5
6446 sed 's/^/| /' conftest.$ac_ext >&5
6447
6448 ac_header_compiler=no
6449 fi
6450 rm -f conftest.$ac_objext conftest.$ac_ext
6451 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6452 echo "${ECHO_T}$ac_header_compiler" >&6
6453
6454 # Is the header present?
6455 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6456 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6457 cat >conftest.$ac_ext <<_ACEOF
6458 #line $LINENO "configure"
6459 /* confdefs.h.  */
6460 _ACEOF
6461 cat confdefs.h >>conftest.$ac_ext
6462 cat >>conftest.$ac_ext <<_ACEOF
6463 /* end confdefs.h.  */
6464 #include <$ac_header>
6465 _ACEOF
6466 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6467   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6468   ac_status=$?
6469   grep -v '^ *+' conftest.er1 >conftest.err
6470   rm -f conftest.er1
6471   cat conftest.err >&5
6472   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6473   (exit $ac_status); } >/dev/null; then
6474   if test -s conftest.err; then
6475     ac_cpp_err=$ac_c_preproc_warn_flag
6476   else
6477     ac_cpp_err=
6478   fi
6479 else
6480   ac_cpp_err=yes
6481 fi
6482 if test -z "$ac_cpp_err"; then
6483   ac_header_preproc=yes
6484 else
6485   echo "$as_me: failed program was:" >&5
6486 sed 's/^/| /' conftest.$ac_ext >&5
6487
6488   ac_header_preproc=no
6489 fi
6490 rm -f conftest.err conftest.$ac_ext
6491 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6492 echo "${ECHO_T}$ac_header_preproc" >&6
6493
6494 # So?  What about this header?
6495 case $ac_header_compiler:$ac_header_preproc in
6496   yes:no )
6497     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6498 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6499     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6500 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6501     (
6502       cat <<\_ASBOX
6503 ## ------------------------------------ ##
6504 ## Report this to bug-autoconf@gnu.org. ##
6505 ## ------------------------------------ ##
6506 _ASBOX
6507     ) |
6508       sed "s/^/$as_me: WARNING:     /" >&2
6509     ;;
6510   no:yes )
6511     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6512 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6513     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6514 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6515     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6516 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6517     (
6518       cat <<\_ASBOX
6519 ## ------------------------------------ ##
6520 ## Report this to bug-autoconf@gnu.org. ##
6521 ## ------------------------------------ ##
6522 _ASBOX
6523     ) |
6524       sed "s/^/$as_me: WARNING:     /" >&2
6525     ;;
6526 esac
6527 echo "$as_me:$LINENO: checking for $ac_header" >&5
6528 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6529 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6530   echo $ECHO_N "(cached) $ECHO_C" >&6
6531 else
6532   eval "$as_ac_Header=$ac_header_preproc"
6533 fi
6534 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6535 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6536
6537 fi
6538 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6539   cat >>confdefs.h <<_ACEOF
6540 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6541 _ACEOF
6542  echo "$as_me:$LINENO: checking for DGifOpen in -lungif" >&5
6543 echo $ECHO_N "checking for DGifOpen in -lungif... $ECHO_C" >&6
6544 if test "${ac_cv_lib_ungif_DGifOpen+set}" = set; then
6545   echo $ECHO_N "(cached) $ECHO_C" >&6
6546 else
6547   ac_check_lib_save_LIBS=$LIBS
6548 LIBS="-lungif  $LIBS"
6549 cat >conftest.$ac_ext <<_ACEOF
6550 #line $LINENO "configure"
6551 /* confdefs.h.  */
6552 _ACEOF
6553 cat confdefs.h >>conftest.$ac_ext
6554 cat >>conftest.$ac_ext <<_ACEOF
6555 /* end confdefs.h.  */
6556
6557 /* Override any gcc2 internal prototype to avoid an error.  */
6558 #ifdef __cplusplus
6559 extern "C"
6560 #endif
6561 /* We use char because int might match the return type of a gcc2
6562    builtin and then its argument prototype would still apply.  */
6563 char DGifOpen ();
6564 int
6565 main ()
6566 {
6567 DGifOpen ();
6568   ;
6569   return 0;
6570 }
6571 _ACEOF
6572 rm -f conftest.$ac_objext conftest$ac_exeext
6573 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6574   (eval $ac_link) 2>&5
6575   ac_status=$?
6576   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6577   (exit $ac_status); } &&
6578          { ac_try='test -s conftest$ac_exeext'
6579   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6580   (eval $ac_try) 2>&5
6581   ac_status=$?
6582   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6583   (exit $ac_status); }; }; then
6584   ac_cv_lib_ungif_DGifOpen=yes
6585 else
6586   echo "$as_me: failed program was:" >&5
6587 sed 's/^/| /' conftest.$ac_ext >&5
6588
6589 ac_cv_lib_ungif_DGifOpen=no
6590 fi
6591 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6592 LIBS=$ac_check_lib_save_LIBS
6593 fi
6594 echo "$as_me:$LINENO: result: $ac_cv_lib_ungif_DGifOpen" >&5
6595 echo "${ECHO_T}$ac_cv_lib_ungif_DGifOpen" >&6
6596 if test $ac_cv_lib_ungif_DGifOpen = yes; then
6597
6598 cat >>confdefs.h <<\_ACEOF
6599 #define HAVE_LIBGIF 1
6600 _ACEOF
6601
6602          GIFLIB="-lungif"
6603 else
6604   echo "$as_me:$LINENO: checking for DGifOpen in -lgif" >&5
6605 echo $ECHO_N "checking for DGifOpen in -lgif... $ECHO_C" >&6
6606 if test "${ac_cv_lib_gif_DGifOpen+set}" = set; then
6607   echo $ECHO_N "(cached) $ECHO_C" >&6
6608 else
6609   ac_check_lib_save_LIBS=$LIBS
6610 LIBS="-lgif  $LIBS"
6611 cat >conftest.$ac_ext <<_ACEOF
6612 #line $LINENO "configure"
6613 /* confdefs.h.  */
6614 _ACEOF
6615 cat confdefs.h >>conftest.$ac_ext
6616 cat >>conftest.$ac_ext <<_ACEOF
6617 /* end confdefs.h.  */
6618
6619 /* Override any gcc2 internal prototype to avoid an error.  */
6620 #ifdef __cplusplus
6621 extern "C"
6622 #endif
6623 /* We use char because int might match the return type of a gcc2
6624    builtin and then its argument prototype would still apply.  */
6625 char DGifOpen ();
6626 int
6627 main ()
6628 {
6629 DGifOpen ();
6630   ;
6631   return 0;
6632 }
6633 _ACEOF
6634 rm -f conftest.$ac_objext conftest$ac_exeext
6635 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6636   (eval $ac_link) 2>&5
6637   ac_status=$?
6638   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6639   (exit $ac_status); } &&
6640          { ac_try='test -s conftest$ac_exeext'
6641   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6642   (eval $ac_try) 2>&5
6643   ac_status=$?
6644   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6645   (exit $ac_status); }; }; then
6646   ac_cv_lib_gif_DGifOpen=yes
6647 else
6648   echo "$as_me: failed program was:" >&5
6649 sed 's/^/| /' conftest.$ac_ext >&5
6650
6651 ac_cv_lib_gif_DGifOpen=no
6652 fi
6653 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6654 LIBS=$ac_check_lib_save_LIBS
6655 fi
6656 echo "$as_me:$LINENO: result: $ac_cv_lib_gif_DGifOpen" >&5
6657 echo "${ECHO_T}$ac_cv_lib_gif_DGifOpen" >&6
6658 if test $ac_cv_lib_gif_DGifOpen = yes; then
6659   cat >>confdefs.h <<\_ACEOF
6660 #define HAVE_LIBGIF 1
6661 _ACEOF
6662
6663                        GIFLIB="-lgif"
6664 fi
6665
6666 fi
6667
6668 fi
6669
6670 done
6671
6672
6673
6674
6675
6676 XFILES=""
6677
6678 OPENGLFILES=""
6679
6680 GLU32FILES=""
6681
6682 OPENGL_LIBS=""
6683 if test "$have_x" = "yes"
6684 then
6685     XLIB="-lXext -lX11"
6686     ac_save_CPPFLAGS="$CPPFLAGS"
6687     CPPFLAGS="$CPPFLAGS $X_CFLAGS"
6688
6689
6690 for ac_header in X11/Xlib.h
6691 do
6692 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6693 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6694   echo "$as_me:$LINENO: checking for $ac_header" >&5
6695 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6696 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6697   echo $ECHO_N "(cached) $ECHO_C" >&6
6698 fi
6699 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6700 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6701 else
6702   # Is the header compilable?
6703 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6704 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6705 cat >conftest.$ac_ext <<_ACEOF
6706 #line $LINENO "configure"
6707 /* confdefs.h.  */
6708 _ACEOF
6709 cat confdefs.h >>conftest.$ac_ext
6710 cat >>conftest.$ac_ext <<_ACEOF
6711 /* end confdefs.h.  */
6712 $ac_includes_default
6713 #include <$ac_header>
6714 _ACEOF
6715 rm -f conftest.$ac_objext
6716 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6717   (eval $ac_compile) 2>&5
6718   ac_status=$?
6719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6720   (exit $ac_status); } &&
6721          { ac_try='test -s conftest.$ac_objext'
6722   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6723   (eval $ac_try) 2>&5
6724   ac_status=$?
6725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6726   (exit $ac_status); }; }; then
6727   ac_header_compiler=yes
6728 else
6729   echo "$as_me: failed program was:" >&5
6730 sed 's/^/| /' conftest.$ac_ext >&5
6731
6732 ac_header_compiler=no
6733 fi
6734 rm -f conftest.$ac_objext conftest.$ac_ext
6735 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6736 echo "${ECHO_T}$ac_header_compiler" >&6
6737
6738 # Is the header present?
6739 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6740 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6741 cat >conftest.$ac_ext <<_ACEOF
6742 #line $LINENO "configure"
6743 /* confdefs.h.  */
6744 _ACEOF
6745 cat confdefs.h >>conftest.$ac_ext
6746 cat >>conftest.$ac_ext <<_ACEOF
6747 /* end confdefs.h.  */
6748 #include <$ac_header>
6749 _ACEOF
6750 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6751   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6752   ac_status=$?
6753   grep -v '^ *+' conftest.er1 >conftest.err
6754   rm -f conftest.er1
6755   cat conftest.err >&5
6756   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6757   (exit $ac_status); } >/dev/null; then
6758   if test -s conftest.err; then
6759     ac_cpp_err=$ac_c_preproc_warn_flag
6760   else
6761     ac_cpp_err=
6762   fi
6763 else
6764   ac_cpp_err=yes
6765 fi
6766 if test -z "$ac_cpp_err"; then
6767   ac_header_preproc=yes
6768 else
6769   echo "$as_me: failed program was:" >&5
6770 sed 's/^/| /' conftest.$ac_ext >&5
6771
6772   ac_header_preproc=no
6773 fi
6774 rm -f conftest.err conftest.$ac_ext
6775 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6776 echo "${ECHO_T}$ac_header_preproc" >&6
6777
6778 # So?  What about this header?
6779 case $ac_header_compiler:$ac_header_preproc in
6780   yes:no )
6781     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6782 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6783     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6784 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6785     (
6786       cat <<\_ASBOX
6787 ## ------------------------------------ ##
6788 ## Report this to bug-autoconf@gnu.org. ##
6789 ## ------------------------------------ ##
6790 _ASBOX
6791     ) |
6792       sed "s/^/$as_me: WARNING:     /" >&2
6793     ;;
6794   no:yes )
6795     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6796 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6797     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6798 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6799     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6800 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6801     (
6802       cat <<\_ASBOX
6803 ## ------------------------------------ ##
6804 ## Report this to bug-autoconf@gnu.org. ##
6805 ## ------------------------------------ ##
6806 _ASBOX
6807     ) |
6808       sed "s/^/$as_me: WARNING:     /" >&2
6809     ;;
6810 esac
6811 echo "$as_me:$LINENO: checking for $ac_header" >&5
6812 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6813 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6814   echo $ECHO_N "(cached) $ECHO_C" >&6
6815 else
6816   eval "$as_ac_Header=$ac_header_preproc"
6817 fi
6818 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6819 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6820
6821 fi
6822 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6823   cat >>confdefs.h <<_ACEOF
6824 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6825 _ACEOF
6826
6827
6828 for ac_header in X11/XKBlib.h
6829 do
6830 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6831 echo "$as_me:$LINENO: checking for $ac_header" >&5
6832 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6833 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6834   echo $ECHO_N "(cached) $ECHO_C" >&6
6835 else
6836   cat >conftest.$ac_ext <<_ACEOF
6837 #line $LINENO "configure"
6838 /* confdefs.h.  */
6839 _ACEOF
6840 cat confdefs.h >>conftest.$ac_ext
6841 cat >>conftest.$ac_ext <<_ACEOF
6842 /* end confdefs.h.  */
6843 #include <X11/Xlib.h>
6844
6845 #include <$ac_header>
6846 _ACEOF
6847 rm -f conftest.$ac_objext
6848 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6849   (eval $ac_compile) 2>&5
6850   ac_status=$?
6851   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6852   (exit $ac_status); } &&
6853          { ac_try='test -s conftest.$ac_objext'
6854   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6855   (eval $ac_try) 2>&5
6856   ac_status=$?
6857   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6858   (exit $ac_status); }; }; then
6859   eval "$as_ac_Header=yes"
6860 else
6861   echo "$as_me: failed program was:" >&5
6862 sed 's/^/| /' conftest.$ac_ext >&5
6863
6864 eval "$as_ac_Header=no"
6865 fi
6866 rm -f conftest.$ac_objext conftest.$ac_ext
6867 fi
6868 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6869 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6870 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6871   cat >>confdefs.h <<_ACEOF
6872 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6873 _ACEOF
6874                 echo "$as_me:$LINENO: checking for XkbQueryExtension in -lX11" >&5
6875 echo $ECHO_N "checking for XkbQueryExtension in -lX11... $ECHO_C" >&6
6876 if test "${ac_cv_lib_X11_XkbQueryExtension+set}" = set; then
6877   echo $ECHO_N "(cached) $ECHO_C" >&6
6878 else
6879   ac_check_lib_save_LIBS=$LIBS
6880 LIBS="-lX11 $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
6881 cat >conftest.$ac_ext <<_ACEOF
6882 #line $LINENO "configure"
6883 /* confdefs.h.  */
6884 _ACEOF
6885 cat confdefs.h >>conftest.$ac_ext
6886 cat >>conftest.$ac_ext <<_ACEOF
6887 /* end confdefs.h.  */
6888
6889 /* Override any gcc2 internal prototype to avoid an error.  */
6890 #ifdef __cplusplus
6891 extern "C"
6892 #endif
6893 /* We use char because int might match the return type of a gcc2
6894    builtin and then its argument prototype would still apply.  */
6895 char XkbQueryExtension ();
6896 int
6897 main ()
6898 {
6899 XkbQueryExtension ();
6900   ;
6901   return 0;
6902 }
6903 _ACEOF
6904 rm -f conftest.$ac_objext conftest$ac_exeext
6905 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6906   (eval $ac_link) 2>&5
6907   ac_status=$?
6908   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6909   (exit $ac_status); } &&
6910          { ac_try='test -s conftest$ac_exeext'
6911   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6912   (eval $ac_try) 2>&5
6913   ac_status=$?
6914   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6915   (exit $ac_status); }; }; then
6916   ac_cv_lib_X11_XkbQueryExtension=yes
6917 else
6918   echo "$as_me: failed program was:" >&5
6919 sed 's/^/| /' conftest.$ac_ext >&5
6920
6921 ac_cv_lib_X11_XkbQueryExtension=no
6922 fi
6923 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6924 LIBS=$ac_check_lib_save_LIBS
6925 fi
6926 echo "$as_me:$LINENO: result: $ac_cv_lib_X11_XkbQueryExtension" >&5
6927 echo "${ECHO_T}$ac_cv_lib_X11_XkbQueryExtension" >&6
6928 if test $ac_cv_lib_X11_XkbQueryExtension = yes; then
6929
6930 cat >>confdefs.h <<\_ACEOF
6931 #define HAVE_XKB 1
6932 _ACEOF
6933
6934 fi
6935
6936
6937 else
6938   { echo "$as_me:$LINENO: WARNING: Xkb extension not found, Wine will be built without it" >&5
6939 echo "$as_me: WARNING: Xkb extension not found, Wine will be built without it" >&2;}
6940 fi
6941
6942 done
6943
6944
6945
6946 for ac_header in X11/extensions/XShm.h
6947 do
6948 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6949 echo "$as_me:$LINENO: checking for $ac_header" >&5
6950 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6951 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6952   echo $ECHO_N "(cached) $ECHO_C" >&6
6953 else
6954   cat >conftest.$ac_ext <<_ACEOF
6955 #line $LINENO "configure"
6956 /* confdefs.h.  */
6957 _ACEOF
6958 cat confdefs.h >>conftest.$ac_ext
6959 cat >>conftest.$ac_ext <<_ACEOF
6960 /* end confdefs.h.  */
6961 #include <X11/Xlib.h>
6962
6963 #include <$ac_header>
6964 _ACEOF
6965 rm -f conftest.$ac_objext
6966 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6967   (eval $ac_compile) 2>&5
6968   ac_status=$?
6969   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6970   (exit $ac_status); } &&
6971          { ac_try='test -s conftest.$ac_objext'
6972   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6973   (eval $ac_try) 2>&5
6974   ac_status=$?
6975   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6976   (exit $ac_status); }; }; then
6977   eval "$as_ac_Header=yes"
6978 else
6979   echo "$as_me: failed program was:" >&5
6980 sed 's/^/| /' conftest.$ac_ext >&5
6981
6982 eval "$as_ac_Header=no"
6983 fi
6984 rm -f conftest.$ac_objext conftest.$ac_ext
6985 fi
6986 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6987 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6988 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6989   cat >>confdefs.h <<_ACEOF
6990 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6991 _ACEOF
6992                 echo "$as_me:$LINENO: checking for XShmQueryExtension in -lXext" >&5
6993 echo $ECHO_N "checking for XShmQueryExtension in -lXext... $ECHO_C" >&6
6994 if test "${ac_cv_lib_Xext_XShmQueryExtension+set}" = set; then
6995   echo $ECHO_N "(cached) $ECHO_C" >&6
6996 else
6997   ac_check_lib_save_LIBS=$LIBS
6998 LIBS="-lXext $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
6999 cat >conftest.$ac_ext <<_ACEOF
7000 #line $LINENO "configure"
7001 /* confdefs.h.  */
7002 _ACEOF
7003 cat confdefs.h >>conftest.$ac_ext
7004 cat >>conftest.$ac_ext <<_ACEOF
7005 /* end confdefs.h.  */
7006
7007 /* Override any gcc2 internal prototype to avoid an error.  */
7008 #ifdef __cplusplus
7009 extern "C"
7010 #endif
7011 /* We use char because int might match the return type of a gcc2
7012    builtin and then its argument prototype would still apply.  */
7013 char XShmQueryExtension ();
7014 int
7015 main ()
7016 {
7017 XShmQueryExtension ();
7018   ;
7019   return 0;
7020 }
7021 _ACEOF
7022 rm -f conftest.$ac_objext conftest$ac_exeext
7023 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7024   (eval $ac_link) 2>&5
7025   ac_status=$?
7026   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7027   (exit $ac_status); } &&
7028          { ac_try='test -s conftest$ac_exeext'
7029   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7030   (eval $ac_try) 2>&5
7031   ac_status=$?
7032   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7033   (exit $ac_status); }; }; then
7034   ac_cv_lib_Xext_XShmQueryExtension=yes
7035 else
7036   echo "$as_me: failed program was:" >&5
7037 sed 's/^/| /' conftest.$ac_ext >&5
7038
7039 ac_cv_lib_Xext_XShmQueryExtension=no
7040 fi
7041 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7042 LIBS=$ac_check_lib_save_LIBS
7043 fi
7044 echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShmQueryExtension" >&5
7045 echo "${ECHO_T}$ac_cv_lib_Xext_XShmQueryExtension" >&6
7046 if test $ac_cv_lib_Xext_XShmQueryExtension = yes; then
7047
7048 cat >>confdefs.h <<\_ACEOF
7049 #define HAVE_LIBXXSHM 1
7050 _ACEOF
7051
7052 fi
7053
7054
7055 else
7056   { echo "$as_me:$LINENO: WARNING: XShm extension not found, Wine will be built without it" >&5
7057 echo "$as_me: WARNING: XShm extension not found, Wine will be built without it" >&2;}
7058 fi
7059
7060 done
7061
7062
7063
7064 for ac_header in X11/Xutil.h
7065 do
7066 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7067 echo "$as_me:$LINENO: checking for $ac_header" >&5
7068 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7069 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7070   echo $ECHO_N "(cached) $ECHO_C" >&6
7071 else
7072   cat >conftest.$ac_ext <<_ACEOF
7073 #line $LINENO "configure"
7074 /* confdefs.h.  */
7075 _ACEOF
7076 cat confdefs.h >>conftest.$ac_ext
7077 cat >>conftest.$ac_ext <<_ACEOF
7078 /* end confdefs.h.  */
7079 #include <X11/Xlib.h>
7080
7081 #include <$ac_header>
7082 _ACEOF
7083 rm -f conftest.$ac_objext
7084 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7085   (eval $ac_compile) 2>&5
7086   ac_status=$?
7087   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7088   (exit $ac_status); } &&
7089          { ac_try='test -s conftest.$ac_objext'
7090   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7091   (eval $ac_try) 2>&5
7092   ac_status=$?
7093   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7094   (exit $ac_status); }; }; then
7095   eval "$as_ac_Header=yes"
7096 else
7097   echo "$as_me: failed program was:" >&5
7098 sed 's/^/| /' conftest.$ac_ext >&5
7099
7100 eval "$as_ac_Header=no"
7101 fi
7102 rm -f conftest.$ac_objext conftest.$ac_ext
7103 fi
7104 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7105 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7106 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7107   cat >>confdefs.h <<_ACEOF
7108 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7109 _ACEOF
7110
7111 fi
7112
7113 done
7114
7115
7116
7117 for ac_header in X11/extensions/shape.h
7118 do
7119 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7120 echo "$as_me:$LINENO: checking for $ac_header" >&5
7121 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7122 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7123   echo $ECHO_N "(cached) $ECHO_C" >&6
7124 else
7125   cat >conftest.$ac_ext <<_ACEOF
7126 #line $LINENO "configure"
7127 /* confdefs.h.  */
7128 _ACEOF
7129 cat confdefs.h >>conftest.$ac_ext
7130 cat >>conftest.$ac_ext <<_ACEOF
7131 /* end confdefs.h.  */
7132 #include <X11/Xlib.h>
7133              #ifdef HAVE_X11_XUTIL_H
7134              # include <X11/Xutil.h>
7135              #endif
7136
7137 #include <$ac_header>
7138 _ACEOF
7139 rm -f conftest.$ac_objext
7140 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7141   (eval $ac_compile) 2>&5
7142   ac_status=$?
7143   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7144   (exit $ac_status); } &&
7145          { ac_try='test -s conftest.$ac_objext'
7146   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7147   (eval $ac_try) 2>&5
7148   ac_status=$?
7149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7150   (exit $ac_status); }; }; then
7151   eval "$as_ac_Header=yes"
7152 else
7153   echo "$as_me: failed program was:" >&5
7154 sed 's/^/| /' conftest.$ac_ext >&5
7155
7156 eval "$as_ac_Header=no"
7157 fi
7158 rm -f conftest.$ac_objext conftest.$ac_ext
7159 fi
7160 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7161 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7162 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7163   cat >>confdefs.h <<_ACEOF
7164 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7165 _ACEOF
7166                 echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
7167 echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6
7168 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
7169   echo $ECHO_N "(cached) $ECHO_C" >&6
7170 else
7171   ac_check_lib_save_LIBS=$LIBS
7172 LIBS="-lXext $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
7173 cat >conftest.$ac_ext <<_ACEOF
7174 #line $LINENO "configure"
7175 /* confdefs.h.  */
7176 _ACEOF
7177 cat confdefs.h >>conftest.$ac_ext
7178 cat >>conftest.$ac_ext <<_ACEOF
7179 /* end confdefs.h.  */
7180
7181 /* Override any gcc2 internal prototype to avoid an error.  */
7182 #ifdef __cplusplus
7183 extern "C"
7184 #endif
7185 /* We use char because int might match the return type of a gcc2
7186    builtin and then its argument prototype would still apply.  */
7187 char XShapeQueryExtension ();
7188 int
7189 main ()
7190 {
7191 XShapeQueryExtension ();
7192   ;
7193   return 0;
7194 }
7195 _ACEOF
7196 rm -f conftest.$ac_objext conftest$ac_exeext
7197 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7198   (eval $ac_link) 2>&5
7199   ac_status=$?
7200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7201   (exit $ac_status); } &&
7202          { ac_try='test -s conftest$ac_exeext'
7203   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7204   (eval $ac_try) 2>&5
7205   ac_status=$?
7206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7207   (exit $ac_status); }; }; then
7208   ac_cv_lib_Xext_XShapeQueryExtension=yes
7209 else
7210   echo "$as_me: failed program was:" >&5
7211 sed 's/^/| /' conftest.$ac_ext >&5
7212
7213 ac_cv_lib_Xext_XShapeQueryExtension=no
7214 fi
7215 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7216 LIBS=$ac_check_lib_save_LIBS
7217 fi
7218 echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
7219 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6
7220 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
7221
7222 cat >>confdefs.h <<\_ACEOF
7223 #define HAVE_LIBXSHAPE 1
7224 _ACEOF
7225
7226 fi
7227
7228
7229 else
7230   { echo "$as_me:$LINENO: WARNING: XShape extension not found, Wine will be built without it" >&5
7231 echo "$as_me: WARNING: XShape extension not found, Wine will be built without it" >&2;}
7232 fi
7233
7234 done
7235
7236
7237
7238 for ac_header in X11/extensions/xf86dga.h
7239 do
7240 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7241 echo "$as_me:$LINENO: checking for $ac_header" >&5
7242 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7243 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7244   echo $ECHO_N "(cached) $ECHO_C" >&6
7245 else
7246   cat >conftest.$ac_ext <<_ACEOF
7247 #line $LINENO "configure"
7248 /* confdefs.h.  */
7249 _ACEOF
7250 cat confdefs.h >>conftest.$ac_ext
7251 cat >>conftest.$ac_ext <<_ACEOF
7252 /* end confdefs.h.  */
7253 #include <X11/Xlib.h>
7254
7255 #include <$ac_header>
7256 _ACEOF
7257 rm -f conftest.$ac_objext
7258 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7259   (eval $ac_compile) 2>&5
7260   ac_status=$?
7261   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7262   (exit $ac_status); } &&
7263          { ac_try='test -s conftest.$ac_objext'
7264   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7265   (eval $ac_try) 2>&5
7266   ac_status=$?
7267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7268   (exit $ac_status); }; }; then
7269   eval "$as_ac_Header=yes"
7270 else
7271   echo "$as_me: failed program was:" >&5
7272 sed 's/^/| /' conftest.$ac_ext >&5
7273
7274 eval "$as_ac_Header=no"
7275 fi
7276 rm -f conftest.$ac_objext conftest.$ac_ext
7277 fi
7278 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7279 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7280 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7281   cat >>confdefs.h <<_ACEOF
7282 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7283 _ACEOF
7284                               echo "$as_me:$LINENO: checking for XDGAQueryExtension in -lXxf86dga" >&5
7285 echo $ECHO_N "checking for XDGAQueryExtension in -lXxf86dga... $ECHO_C" >&6
7286 if test "${ac_cv_lib_Xxf86dga_XDGAQueryExtension+set}" = set; then
7287   echo $ECHO_N "(cached) $ECHO_C" >&6
7288 else
7289   ac_check_lib_save_LIBS=$LIBS
7290 LIBS="-lXxf86dga $X_LIBS -lXext -lX11 $X_EXTRA_LIBS
7291                $LIBS"
7292 cat >conftest.$ac_ext <<_ACEOF
7293 #line $LINENO "configure"
7294 /* confdefs.h.  */
7295 _ACEOF
7296 cat confdefs.h >>conftest.$ac_ext
7297 cat >>conftest.$ac_ext <<_ACEOF
7298 /* end confdefs.h.  */
7299
7300 /* Override any gcc2 internal prototype to avoid an error.  */
7301 #ifdef __cplusplus
7302 extern "C"
7303 #endif
7304 /* We use char because int might match the return type of a gcc2
7305    builtin and then its argument prototype would still apply.  */
7306 char XDGAQueryExtension ();
7307 int
7308 main ()
7309 {
7310 XDGAQueryExtension ();
7311   ;
7312   return 0;
7313 }
7314 _ACEOF
7315 rm -f conftest.$ac_objext conftest$ac_exeext
7316 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7317   (eval $ac_link) 2>&5
7318   ac_status=$?
7319   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7320   (exit $ac_status); } &&
7321          { ac_try='test -s conftest$ac_exeext'
7322   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7323   (eval $ac_try) 2>&5
7324   ac_status=$?
7325   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7326   (exit $ac_status); }; }; then
7327   ac_cv_lib_Xxf86dga_XDGAQueryExtension=yes
7328 else
7329   echo "$as_me: failed program was:" >&5
7330 sed 's/^/| /' conftest.$ac_ext >&5
7331
7332 ac_cv_lib_Xxf86dga_XDGAQueryExtension=no
7333 fi
7334 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7335 LIBS=$ac_check_lib_save_LIBS
7336 fi
7337 echo "$as_me:$LINENO: result: $ac_cv_lib_Xxf86dga_XDGAQueryExtension" >&5
7338 echo "${ECHO_T}$ac_cv_lib_Xxf86dga_XDGAQueryExtension" >&6
7339 if test $ac_cv_lib_Xxf86dga_XDGAQueryExtension = yes; then
7340
7341 cat >>confdefs.h <<\_ACEOF
7342 #define HAVE_LIBXXF86DGA2 1
7343 _ACEOF
7344
7345                   X_PRE_LIBS="$X_PRE_LIBS -lXxf86dga"
7346
7347 else
7348                                        echo "$as_me:$LINENO: checking for XF86DGAQueryExtension in -lXxf86dga" >&5
7349 echo $ECHO_N "checking for XF86DGAQueryExtension in -lXxf86dga... $ECHO_C" >&6
7350 if test "${ac_cv_lib_Xxf86dga_XF86DGAQueryExtension+set}" = set; then
7351   echo $ECHO_N "(cached) $ECHO_C" >&6
7352 else
7353   ac_check_lib_save_LIBS=$LIBS
7354 LIBS="-lXxf86dga $X_LIBS -lXext -lX11 $X_EXTRA_LIBS
7355                    $LIBS"
7356 cat >conftest.$ac_ext <<_ACEOF
7357 #line $LINENO "configure"
7358 /* confdefs.h.  */
7359 _ACEOF
7360 cat confdefs.h >>conftest.$ac_ext
7361 cat >>conftest.$ac_ext <<_ACEOF
7362 /* end confdefs.h.  */
7363
7364 /* Override any gcc2 internal prototype to avoid an error.  */
7365 #ifdef __cplusplus
7366 extern "C"
7367 #endif
7368 /* We use char because int might match the return type of a gcc2
7369    builtin and then its argument prototype would still apply.  */
7370 char XF86DGAQueryExtension ();
7371 int
7372 main ()
7373 {
7374 XF86DGAQueryExtension ();
7375   ;
7376   return 0;
7377 }
7378 _ACEOF
7379 rm -f conftest.$ac_objext conftest$ac_exeext
7380 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7381   (eval $ac_link) 2>&5
7382   ac_status=$?
7383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7384   (exit $ac_status); } &&
7385          { ac_try='test -s conftest$ac_exeext'
7386   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7387   (eval $ac_try) 2>&5
7388   ac_status=$?
7389   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7390   (exit $ac_status); }; }; then
7391   ac_cv_lib_Xxf86dga_XF86DGAQueryExtension=yes
7392 else
7393   echo "$as_me: failed program was:" >&5
7394 sed 's/^/| /' conftest.$ac_ext >&5
7395
7396 ac_cv_lib_Xxf86dga_XF86DGAQueryExtension=no
7397 fi
7398 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7399 LIBS=$ac_check_lib_save_LIBS
7400 fi
7401 echo "$as_me:$LINENO: result: $ac_cv_lib_Xxf86dga_XF86DGAQueryExtension" >&5
7402 echo "${ECHO_T}$ac_cv_lib_Xxf86dga_XF86DGAQueryExtension" >&6
7403 if test $ac_cv_lib_Xxf86dga_XF86DGAQueryExtension = yes; then
7404
7405 cat >>confdefs.h <<\_ACEOF
7406 #define HAVE_LIBXXF86DGA 1
7407 _ACEOF
7408
7409                       X_PRE_LIBS="$X_PRE_LIBS -lXxf86dga"
7410
7411 fi
7412
7413
7414 fi
7415
7416
7417 else
7418   { echo "$as_me:$LINENO: WARNING: DGA extension not found, Wine will be built without it" >&5
7419 echo "$as_me: WARNING: DGA extension not found, Wine will be built without it" >&2;}
7420 fi
7421
7422 done
7423
7424
7425
7426 for ac_header in X11/extensions/xf86vmode.h
7427 do
7428 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7429 echo "$as_me:$LINENO: checking for $ac_header" >&5
7430 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7431 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7432   echo $ECHO_N "(cached) $ECHO_C" >&6
7433 else
7434   cat >conftest.$ac_ext <<_ACEOF
7435 #line $LINENO "configure"
7436 /* confdefs.h.  */
7437 _ACEOF
7438 cat confdefs.h >>conftest.$ac_ext
7439 cat >>conftest.$ac_ext <<_ACEOF
7440 /* end confdefs.h.  */
7441 #include <X11/Xlib.h>
7442
7443 #include <$ac_header>
7444 _ACEOF
7445 rm -f conftest.$ac_objext
7446 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7447   (eval $ac_compile) 2>&5
7448   ac_status=$?
7449   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7450   (exit $ac_status); } &&
7451          { ac_try='test -s conftest.$ac_objext'
7452   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7453   (eval $ac_try) 2>&5
7454   ac_status=$?
7455   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7456   (exit $ac_status); }; }; then
7457   eval "$as_ac_Header=yes"
7458 else
7459   echo "$as_me: failed program was:" >&5
7460 sed 's/^/| /' conftest.$ac_ext >&5
7461
7462 eval "$as_ac_Header=no"
7463 fi
7464 rm -f conftest.$ac_objext conftest.$ac_ext
7465 fi
7466 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7467 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7468 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7469   cat >>confdefs.h <<_ACEOF
7470 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7471 _ACEOF
7472                   echo "$as_me:$LINENO: checking for XF86VidModeQueryExtension in -lXxf86vm" >&5
7473 echo $ECHO_N "checking for XF86VidModeQueryExtension in -lXxf86vm... $ECHO_C" >&6
7474 if test "${ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension+set}" = set; then
7475   echo $ECHO_N "(cached) $ECHO_C" >&6
7476 else
7477   ac_check_lib_save_LIBS=$LIBS
7478 LIBS="-lXxf86vm $X_LIBS -lXext -lX11 $X_EXTRA_LIBS
7479                  $LIBS"
7480 cat >conftest.$ac_ext <<_ACEOF
7481 #line $LINENO "configure"
7482 /* confdefs.h.  */
7483 _ACEOF
7484 cat confdefs.h >>conftest.$ac_ext
7485 cat >>conftest.$ac_ext <<_ACEOF
7486 /* end confdefs.h.  */
7487
7488 /* Override any gcc2 internal prototype to avoid an error.  */
7489 #ifdef __cplusplus
7490 extern "C"
7491 #endif
7492 /* We use char because int might match the return type of a gcc2
7493    builtin and then its argument prototype would still apply.  */
7494 char XF86VidModeQueryExtension ();
7495 int
7496 main ()
7497 {
7498 XF86VidModeQueryExtension ();
7499   ;
7500   return 0;
7501 }
7502 _ACEOF
7503 rm -f conftest.$ac_objext conftest$ac_exeext
7504 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7505   (eval $ac_link) 2>&5
7506   ac_status=$?
7507   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7508   (exit $ac_status); } &&
7509          { ac_try='test -s conftest$ac_exeext'
7510   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7511   (eval $ac_try) 2>&5
7512   ac_status=$?
7513   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7514   (exit $ac_status); }; }; then
7515   ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=yes
7516 else
7517   echo "$as_me: failed program was:" >&5
7518 sed 's/^/| /' conftest.$ac_ext >&5
7519
7520 ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=no
7521 fi
7522 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7523 LIBS=$ac_check_lib_save_LIBS
7524 fi
7525 echo "$as_me:$LINENO: result: $ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&5
7526 echo "${ECHO_T}$ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&6
7527 if test $ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension = yes; then
7528
7529 cat >>confdefs.h <<\_ACEOF
7530 #define HAVE_LIBXXF86VM 1
7531 _ACEOF
7532
7533                      X_PRE_LIBS="$X_PRE_LIBS -lXxf86vm"
7534
7535 fi
7536
7537
7538 else
7539   { echo "$as_me:$LINENO: WARNING: XFree86 VMODE extension not found, Wine will be built without it" >&5
7540 echo "$as_me: WARNING: XFree86 VMODE extension not found, Wine will be built without it" >&2;}
7541 fi
7542
7543 done
7544
7545
7546
7547 for ac_header in X11/extensions/Xvlib.h
7548 do
7549 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7550 echo "$as_me:$LINENO: checking for $ac_header" >&5
7551 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7552 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7553   echo $ECHO_N "(cached) $ECHO_C" >&6
7554 else
7555   cat >conftest.$ac_ext <<_ACEOF
7556 #line $LINENO "configure"
7557 /* confdefs.h.  */
7558 _ACEOF
7559 cat confdefs.h >>conftest.$ac_ext
7560 cat >>conftest.$ac_ext <<_ACEOF
7561 /* end confdefs.h.  */
7562 #include <X11/Xlib.h>
7563
7564 #include <$ac_header>
7565 _ACEOF
7566 rm -f conftest.$ac_objext
7567 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7568   (eval $ac_compile) 2>&5
7569   ac_status=$?
7570   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7571   (exit $ac_status); } &&
7572          { ac_try='test -s conftest.$ac_objext'
7573   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7574   (eval $ac_try) 2>&5
7575   ac_status=$?
7576   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7577   (exit $ac_status); }; }; then
7578   eval "$as_ac_Header=yes"
7579 else
7580   echo "$as_me: failed program was:" >&5
7581 sed 's/^/| /' conftest.$ac_ext >&5
7582
7583 eval "$as_ac_Header=no"
7584 fi
7585 rm -f conftest.$ac_objext conftest.$ac_ext
7586 fi
7587 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7588 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7589 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7590   cat >>confdefs.h <<_ACEOF
7591 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7592 _ACEOF
7593                   echo "$as_me:$LINENO: checking for XvShmCreateImage in -lXv" >&5
7594 echo $ECHO_N "checking for XvShmCreateImage in -lXv... $ECHO_C" >&6
7595 if test "${ac_cv_lib_Xv_XvShmCreateImage+set}" = set; then
7596   echo $ECHO_N "(cached) $ECHO_C" >&6
7597 else
7598   ac_check_lib_save_LIBS=$LIBS
7599 LIBS="-lXv $X_LIBS -lXext -lX11 $X_EXTRA_LIBS
7600                  $LIBS"
7601 cat >conftest.$ac_ext <<_ACEOF
7602 #line $LINENO "configure"
7603 /* confdefs.h.  */
7604 _ACEOF
7605 cat confdefs.h >>conftest.$ac_ext
7606 cat >>conftest.$ac_ext <<_ACEOF
7607 /* end confdefs.h.  */
7608
7609 /* Override any gcc2 internal prototype to avoid an error.  */
7610 #ifdef __cplusplus
7611 extern "C"
7612 #endif
7613 /* We use char because int might match the return type of a gcc2
7614    builtin and then its argument prototype would still apply.  */
7615 char XvShmCreateImage ();
7616 int
7617 main ()
7618 {
7619 XvShmCreateImage ();
7620   ;
7621   return 0;
7622 }
7623 _ACEOF
7624 rm -f conftest.$ac_objext conftest$ac_exeext
7625 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7626   (eval $ac_link) 2>&5
7627   ac_status=$?
7628   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7629   (exit $ac_status); } &&
7630          { ac_try='test -s conftest$ac_exeext'
7631   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7632   (eval $ac_try) 2>&5
7633   ac_status=$?
7634   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7635   (exit $ac_status); }; }; then
7636   ac_cv_lib_Xv_XvShmCreateImage=yes
7637 else
7638   echo "$as_me: failed program was:" >&5
7639 sed 's/^/| /' conftest.$ac_ext >&5
7640
7641 ac_cv_lib_Xv_XvShmCreateImage=no
7642 fi
7643 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7644 LIBS=$ac_check_lib_save_LIBS
7645 fi
7646 echo "$as_me:$LINENO: result: $ac_cv_lib_Xv_XvShmCreateImage" >&5
7647 echo "${ECHO_T}$ac_cv_lib_Xv_XvShmCreateImage" >&6
7648 if test $ac_cv_lib_Xv_XvShmCreateImage = yes; then
7649
7650 cat >>confdefs.h <<\_ACEOF
7651 #define HAVE_XVIDEO 1
7652 _ACEOF
7653
7654                      X_PRE_LIBS="$X_PRE_LIBS -lXv"
7655
7656 fi
7657
7658
7659 else
7660   { echo "$as_me:$LINENO: WARNING: XVideo extension not found, Wine will be built without it" >&5
7661 echo "$as_me: WARNING: XVideo extension not found, Wine will be built without it" >&2;}
7662 fi
7663
7664 done
7665
7666
7667
7668 for ac_header in X11/extensions/Xrender.h
7669 do
7670 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7671 echo "$as_me:$LINENO: checking for $ac_header" >&5
7672 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7673 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7674   echo $ECHO_N "(cached) $ECHO_C" >&6
7675 else
7676   cat >conftest.$ac_ext <<_ACEOF
7677 #line $LINENO "configure"
7678 /* confdefs.h.  */
7679 _ACEOF
7680 cat confdefs.h >>conftest.$ac_ext
7681 cat >>conftest.$ac_ext <<_ACEOF
7682 /* end confdefs.h.  */
7683 #include <X11/Xlib.h>
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>&5
7690   ac_status=$?
7691   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7692   (exit $ac_status); } &&
7693          { ac_try='test -s conftest.$ac_objext'
7694   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7695   (eval $ac_try) 2>&5
7696   ac_status=$?
7697   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7698   (exit $ac_status); }; }; then
7699   eval "$as_ac_Header=yes"
7700 else
7701   echo "$as_me: failed program was:" >&5
7702 sed 's/^/| /' conftest.$ac_ext >&5
7703
7704 eval "$as_ac_Header=no"
7705 fi
7706 rm -f conftest.$ac_objext conftest.$ac_ext
7707 fi
7708 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7709 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7710 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7711   cat >>confdefs.h <<_ACEOF
7712 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7713 _ACEOF
7714
7715 fi
7716
7717 done
7718
7719
7720
7721 fi
7722
7723 done
7724
7725         if test "x$with_opengl" != "xno"
7726     then
7727         if test -f /usr/X11R6/lib/libGL.a -a ! -f /usr/X11R6/lib/libGL.so
7728         then
7729             { { echo "$as_me:$LINENO: error: /usr/X11R6/lib/libGL.a is present on your system.
7730 This prevents linking to OpenGL. Delete the file and restart configure." >&5
7731 echo "$as_me: error: /usr/X11R6/lib/libGL.a is present on your system.
7732 This prevents linking to OpenGL. Delete the file and restart configure." >&2;}
7733    { (exit 1); exit 1; }; }
7734         fi
7735
7736
7737
7738 for ac_header in GL/gl.h GL/glx.h
7739 do
7740 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7741 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7742   echo "$as_me:$LINENO: checking for $ac_header" >&5
7743 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7744 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7745   echo $ECHO_N "(cached) $ECHO_C" >&6
7746 fi
7747 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7748 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7749 else
7750   # Is the header compilable?
7751 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7752 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7753 cat >conftest.$ac_ext <<_ACEOF
7754 #line $LINENO "configure"
7755 /* confdefs.h.  */
7756 _ACEOF
7757 cat confdefs.h >>conftest.$ac_ext
7758 cat >>conftest.$ac_ext <<_ACEOF
7759 /* end confdefs.h.  */
7760 $ac_includes_default
7761 #include <$ac_header>
7762 _ACEOF
7763 rm -f conftest.$ac_objext
7764 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7765   (eval $ac_compile) 2>&5
7766   ac_status=$?
7767   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7768   (exit $ac_status); } &&
7769          { ac_try='test -s conftest.$ac_objext'
7770   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7771   (eval $ac_try) 2>&5
7772   ac_status=$?
7773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7774   (exit $ac_status); }; }; then
7775   ac_header_compiler=yes
7776 else
7777   echo "$as_me: failed program was:" >&5
7778 sed 's/^/| /' conftest.$ac_ext >&5
7779
7780 ac_header_compiler=no
7781 fi
7782 rm -f conftest.$ac_objext conftest.$ac_ext
7783 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7784 echo "${ECHO_T}$ac_header_compiler" >&6
7785
7786 # Is the header present?
7787 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7788 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7789 cat >conftest.$ac_ext <<_ACEOF
7790 #line $LINENO "configure"
7791 /* confdefs.h.  */
7792 _ACEOF
7793 cat confdefs.h >>conftest.$ac_ext
7794 cat >>conftest.$ac_ext <<_ACEOF
7795 /* end confdefs.h.  */
7796 #include <$ac_header>
7797 _ACEOF
7798 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7799   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7800   ac_status=$?
7801   grep -v '^ *+' conftest.er1 >conftest.err
7802   rm -f conftest.er1
7803   cat conftest.err >&5
7804   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7805   (exit $ac_status); } >/dev/null; then
7806   if test -s conftest.err; then
7807     ac_cpp_err=$ac_c_preproc_warn_flag
7808   else
7809     ac_cpp_err=
7810   fi
7811 else
7812   ac_cpp_err=yes
7813 fi
7814 if test -z "$ac_cpp_err"; then
7815   ac_header_preproc=yes
7816 else
7817   echo "$as_me: failed program was:" >&5
7818 sed 's/^/| /' conftest.$ac_ext >&5
7819
7820   ac_header_preproc=no
7821 fi
7822 rm -f conftest.err conftest.$ac_ext
7823 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7824 echo "${ECHO_T}$ac_header_preproc" >&6
7825
7826 # So?  What about this header?
7827 case $ac_header_compiler:$ac_header_preproc in
7828   yes:no )
7829     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7830 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7831     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7832 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7833     (
7834       cat <<\_ASBOX
7835 ## ------------------------------------ ##
7836 ## Report this to bug-autoconf@gnu.org. ##
7837 ## ------------------------------------ ##
7838 _ASBOX
7839     ) |
7840       sed "s/^/$as_me: WARNING:     /" >&2
7841     ;;
7842   no:yes )
7843     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7844 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7845     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7846 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7847     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7848 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7849     (
7850       cat <<\_ASBOX
7851 ## ------------------------------------ ##
7852 ## Report this to bug-autoconf@gnu.org. ##
7853 ## ------------------------------------ ##
7854 _ASBOX
7855     ) |
7856       sed "s/^/$as_me: WARNING:     /" >&2
7857     ;;
7858 esac
7859 echo "$as_me:$LINENO: checking for $ac_header" >&5
7860 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7861 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7862   echo $ECHO_N "(cached) $ECHO_C" >&6
7863 else
7864   eval "$as_ac_Header=$ac_header_preproc"
7865 fi
7866 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7867 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7868
7869 fi
7870 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7871   cat >>confdefs.h <<_ACEOF
7872 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7873 _ACEOF
7874
7875 fi
7876
7877 done
7878
7879         if test "$ac_cv_header_GL_gl_h" = "yes" -a "$ac_cv_header_GL_glx_h" = "yes"
7880         then
7881
7882 for ac_header in GL/glext.h
7883 do
7884 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7885 echo "$as_me:$LINENO: checking for $ac_header" >&5
7886 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7887 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7888   echo $ECHO_N "(cached) $ECHO_C" >&6
7889 else
7890   cat >conftest.$ac_ext <<_ACEOF
7891 #line $LINENO "configure"
7892 /* confdefs.h.  */
7893 _ACEOF
7894 cat confdefs.h >>conftest.$ac_ext
7895 cat >>conftest.$ac_ext <<_ACEOF
7896 /* end confdefs.h.  */
7897 #include <GL/glx.h>
7898
7899 #include <$ac_header>
7900 _ACEOF
7901 rm -f conftest.$ac_objext
7902 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7903   (eval $ac_compile) 2>&5
7904   ac_status=$?
7905   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7906   (exit $ac_status); } &&
7907          { ac_try='test -s conftest.$ac_objext'
7908   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7909   (eval $ac_try) 2>&5
7910   ac_status=$?
7911   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7912   (exit $ac_status); }; }; then
7913   eval "$as_ac_Header=yes"
7914 else
7915   echo "$as_me: failed program was:" >&5
7916 sed 's/^/| /' conftest.$ac_ext >&5
7917
7918 eval "$as_ac_Header=no"
7919 fi
7920 rm -f conftest.$ac_objext conftest.$ac_ext
7921 fi
7922 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7923 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7924 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7925   cat >>confdefs.h <<_ACEOF
7926 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7927 _ACEOF
7928
7929 fi
7930
7931 done
7932
7933                     echo "$as_me:$LINENO: checking for up-to-date OpenGL version" >&5
7934 echo $ECHO_N "checking for up-to-date OpenGL version... $ECHO_C" >&6
7935 if test "${wine_cv_opengl_version_OK+set}" = set; then
7936   echo $ECHO_N "(cached) $ECHO_C" >&6
7937 else
7938   cat >conftest.$ac_ext <<_ACEOF
7939 #line $LINENO "configure"
7940 /* confdefs.h.  */
7941 _ACEOF
7942 cat confdefs.h >>conftest.$ac_ext
7943 cat >>conftest.$ac_ext <<_ACEOF
7944 /* end confdefs.h.  */
7945 #include <GL/gl.h>
7946 int
7947 main ()
7948 {
7949 GLenum test = GL_UNSIGNED_SHORT_5_6_5;
7950   ;
7951   return 0;
7952 }
7953 _ACEOF
7954 rm -f conftest.$ac_objext
7955 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7956   (eval $ac_compile) 2>&5
7957   ac_status=$?
7958   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7959   (exit $ac_status); } &&
7960          { ac_try='test -s conftest.$ac_objext'
7961   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7962   (eval $ac_try) 2>&5
7963   ac_status=$?
7964   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7965   (exit $ac_status); }; }; then
7966   wine_cv_opengl_version_OK="yes"
7967 else
7968   echo "$as_me: failed program was:" >&5
7969 sed 's/^/| /' conftest.$ac_ext >&5
7970
7971 wine_cv_opengl_version_OK="no"
7972
7973 fi
7974 rm -f conftest.$ac_objext conftest.$ac_ext
7975
7976 fi
7977 echo "$as_me:$LINENO: result: $wine_cv_opengl_version_OK" >&5
7978 echo "${ECHO_T}$wine_cv_opengl_version_OK" >&6
7979
7980             if test "$wine_cv_opengl_version_OK" = "yes"
7981             then
7982                                 echo "$as_me:$LINENO: checking for glXCreateContext in -lGL" >&5
7983 echo $ECHO_N "checking for glXCreateContext in -lGL... $ECHO_C" >&6
7984 if test "${ac_cv_lib_GL_glXCreateContext+set}" = set; then
7985   echo $ECHO_N "(cached) $ECHO_C" >&6
7986 else
7987   ac_check_lib_save_LIBS=$LIBS
7988 LIBS="-lGL $X_LIBS -lXext -lX11 -lm $X_EXTRA_LIBS $LIBS"
7989 cat >conftest.$ac_ext <<_ACEOF
7990 #line $LINENO "configure"
7991 /* confdefs.h.  */
7992 _ACEOF
7993 cat confdefs.h >>conftest.$ac_ext
7994 cat >>conftest.$ac_ext <<_ACEOF
7995 /* end confdefs.h.  */
7996
7997 /* Override any gcc2 internal prototype to avoid an error.  */
7998 #ifdef __cplusplus
7999 extern "C"
8000 #endif
8001 /* We use char because int might match the return type of a gcc2
8002    builtin and then its argument prototype would still apply.  */
8003 char glXCreateContext ();
8004 int
8005 main ()
8006 {
8007 glXCreateContext ();
8008   ;
8009   return 0;
8010 }
8011 _ACEOF
8012 rm -f conftest.$ac_objext conftest$ac_exeext
8013 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8014   (eval $ac_link) 2>&5
8015   ac_status=$?
8016   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8017   (exit $ac_status); } &&
8018          { ac_try='test -s conftest$ac_exeext'
8019   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8020   (eval $ac_try) 2>&5
8021   ac_status=$?
8022   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8023   (exit $ac_status); }; }; then
8024   ac_cv_lib_GL_glXCreateContext=yes
8025 else
8026   echo "$as_me: failed program was:" >&5
8027 sed 's/^/| /' conftest.$ac_ext >&5
8028
8029 ac_cv_lib_GL_glXCreateContext=no
8030 fi
8031 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8032 LIBS=$ac_check_lib_save_LIBS
8033 fi
8034 echo "$as_me:$LINENO: result: $ac_cv_lib_GL_glXCreateContext" >&5
8035 echo "${ECHO_T}$ac_cv_lib_GL_glXCreateContext" >&6
8036 if test $ac_cv_lib_GL_glXCreateContext = yes; then
8037   OPENGL_LIBS="-lGL"
8038
8039 fi
8040
8041
8042                 if test "$ac_cv_lib_GL_glXCreateContext" = "yes"
8043                 then
8044                         OPENGLFILES='$(OPENGLFILES)'
8045
8046 cat >>confdefs.h <<\_ACEOF
8047 #define HAVE_OPENGL 1
8048 _ACEOF
8049
8050
8051                         echo "$as_me:$LINENO: checking for glXGetProcAddressARB in -lGL" >&5
8052 echo $ECHO_N "checking for glXGetProcAddressARB in -lGL... $ECHO_C" >&6
8053 if test "${ac_cv_lib_GL_glXGetProcAddressARB+set}" = set; then
8054   echo $ECHO_N "(cached) $ECHO_C" >&6
8055 else
8056   ac_check_lib_save_LIBS=$LIBS
8057 LIBS="-lGL $X_LIBS -lXext -lX11 -lm $X_EXTRA_LIBS $LIBS"
8058 cat >conftest.$ac_ext <<_ACEOF
8059 #line $LINENO "configure"
8060 /* confdefs.h.  */
8061 _ACEOF
8062 cat confdefs.h >>conftest.$ac_ext
8063 cat >>conftest.$ac_ext <<_ACEOF
8064 /* end confdefs.h.  */
8065
8066 /* Override any gcc2 internal prototype to avoid an error.  */
8067 #ifdef __cplusplus
8068 extern "C"
8069 #endif
8070 /* We use char because int might match the return type of a gcc2
8071    builtin and then its argument prototype would still apply.  */
8072 char glXGetProcAddressARB ();
8073 int
8074 main ()
8075 {
8076 glXGetProcAddressARB ();
8077   ;
8078   return 0;
8079 }
8080 _ACEOF
8081 rm -f conftest.$ac_objext conftest$ac_exeext
8082 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8083   (eval $ac_link) 2>&5
8084   ac_status=$?
8085   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8086   (exit $ac_status); } &&
8087          { ac_try='test -s conftest$ac_exeext'
8088   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8089   (eval $ac_try) 2>&5
8090   ac_status=$?
8091   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8092   (exit $ac_status); }; }; then
8093   ac_cv_lib_GL_glXGetProcAddressARB=yes
8094 else
8095   echo "$as_me: failed program was:" >&5
8096 sed 's/^/| /' conftest.$ac_ext >&5
8097
8098 ac_cv_lib_GL_glXGetProcAddressARB=no
8099 fi
8100 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8101 LIBS=$ac_check_lib_save_LIBS
8102 fi
8103 echo "$as_me:$LINENO: result: $ac_cv_lib_GL_glXGetProcAddressARB" >&5
8104 echo "${ECHO_T}$ac_cv_lib_GL_glXGetProcAddressARB" >&6
8105 if test $ac_cv_lib_GL_glXGetProcAddressARB = yes; then
8106
8107 cat >>confdefs.h <<\_ACEOF
8108 #define HAVE_GLX_GETPROCADDRESS 1
8109 _ACEOF
8110
8111 fi
8112
8113
8114                         if test "$ac_cv_lib_GL_glXGetProcAddressARB" = "yes"
8115                         then
8116                                echo "$as_me:$LINENO: checking for OpenGL extension functions prototypes" >&5
8117 echo $ECHO_N "checking for OpenGL extension functions prototypes... $ECHO_C" >&6
8118 if test "${wine_cv_extension_prototypes+set}" = set; then
8119   echo $ECHO_N "(cached) $ECHO_C" >&6
8120 else
8121   cat >conftest.$ac_ext <<_ACEOF
8122 #line $LINENO "configure"
8123 /* confdefs.h.  */
8124 _ACEOF
8125 cat confdefs.h >>conftest.$ac_ext
8126 cat >>conftest.$ac_ext <<_ACEOF
8127 /* end confdefs.h.  */
8128 #include <GL/gl.h>
8129                                                   #ifdef HAVE_GL_GLEXT_H
8130                                                   # include <GL/glext.h>
8131                                                   #endif
8132
8133 int
8134 main ()
8135 {
8136 PFNGLCOLORTABLEEXTPROC test_proc;
8137   ;
8138   return 0;
8139 }
8140 _ACEOF
8141 rm -f conftest.$ac_objext
8142 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8143   (eval $ac_compile) 2>&5
8144   ac_status=$?
8145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8146   (exit $ac_status); } &&
8147          { ac_try='test -s conftest.$ac_objext'
8148   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8149   (eval $ac_try) 2>&5
8150   ac_status=$?
8151   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8152   (exit $ac_status); }; }; then
8153   wine_cv_extension_prototypes="yes"
8154 else
8155   echo "$as_me: failed program was:" >&5
8156 sed 's/^/| /' conftest.$ac_ext >&5
8157
8158 wine_cv_extension_prototypes="no"
8159
8160 fi
8161 rm -f conftest.$ac_objext conftest.$ac_ext
8162
8163 fi
8164 echo "$as_me:$LINENO: result: $wine_cv_extension_prototypes" >&5
8165 echo "${ECHO_T}$wine_cv_extension_prototypes" >&6
8166                                 if test "$wine_cv_extension_prototypes" = "yes"
8167                                 then
8168
8169 cat >>confdefs.h <<\_ACEOF
8170 #define HAVE_GLEXT_PROTOTYPES 1
8171 _ACEOF
8172
8173                                 fi
8174                         fi
8175
8176                 fi
8177                                 echo "$as_me:$LINENO: checking for gluLookAt in -lGLU" >&5
8178 echo $ECHO_N "checking for gluLookAt in -lGLU... $ECHO_C" >&6
8179 if test "${ac_cv_lib_GLU_gluLookAt+set}" = set; then
8180   echo $ECHO_N "(cached) $ECHO_C" >&6
8181 else
8182   ac_check_lib_save_LIBS=$LIBS
8183 LIBS="-lGLU $OPENGL_LIBS $X_LIBS $X_PRE_LIBS -lXext -lX11 -lm $X_EXTRA_LIBS
8184                  $LIBS"
8185 cat >conftest.$ac_ext <<_ACEOF
8186 #line $LINENO "configure"
8187 /* confdefs.h.  */
8188 _ACEOF
8189 cat confdefs.h >>conftest.$ac_ext
8190 cat >>conftest.$ac_ext <<_ACEOF
8191 /* end confdefs.h.  */
8192
8193 /* Override any gcc2 internal prototype to avoid an error.  */
8194 #ifdef __cplusplus
8195 extern "C"
8196 #endif
8197 /* We use char because int might match the return type of a gcc2
8198    builtin and then its argument prototype would still apply.  */
8199 char gluLookAt ();
8200 int
8201 main ()
8202 {
8203 gluLookAt ();
8204   ;
8205   return 0;
8206 }
8207 _ACEOF
8208 rm -f conftest.$ac_objext conftest$ac_exeext
8209 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8210   (eval $ac_link) 2>&5
8211   ac_status=$?
8212   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8213   (exit $ac_status); } &&
8214          { ac_try='test -s conftest$ac_exeext'
8215   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8216   (eval $ac_try) 2>&5
8217   ac_status=$?
8218   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8219   (exit $ac_status); }; }; then
8220   ac_cv_lib_GLU_gluLookAt=yes
8221 else
8222   echo "$as_me: failed program was:" >&5
8223 sed 's/^/| /' conftest.$ac_ext >&5
8224
8225 ac_cv_lib_GLU_gluLookAt=no
8226 fi
8227 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8228 LIBS=$ac_check_lib_save_LIBS
8229 fi
8230 echo "$as_me:$LINENO: result: $ac_cv_lib_GLU_gluLookAt" >&5
8231 echo "${ECHO_T}$ac_cv_lib_GLU_gluLookAt" >&6
8232 if test $ac_cv_lib_GLU_gluLookAt = yes; then
8233   OPENGL_LIBS="$OPENGL_LIBS -lGLU"
8234                              GLU32FILES='$(GLU32FILES)'
8235
8236 fi
8237
8238              fi
8239          fi
8240     fi
8241
8242         NASLIBS=""
8243
8244
8245 for ac_header in audio/audiolib.h
8246 do
8247 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8248 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8249   echo "$as_me:$LINENO: checking for $ac_header" >&5
8250 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8251 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8252   echo $ECHO_N "(cached) $ECHO_C" >&6
8253 fi
8254 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8255 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8256 else
8257   # Is the header compilable?
8258 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8259 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8260 cat >conftest.$ac_ext <<_ACEOF
8261 #line $LINENO "configure"
8262 /* confdefs.h.  */
8263 _ACEOF
8264 cat confdefs.h >>conftest.$ac_ext
8265 cat >>conftest.$ac_ext <<_ACEOF
8266 /* end confdefs.h.  */
8267 $ac_includes_default
8268 #include <$ac_header>
8269 _ACEOF
8270 rm -f conftest.$ac_objext
8271 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8272   (eval $ac_compile) 2>&5
8273   ac_status=$?
8274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8275   (exit $ac_status); } &&
8276          { ac_try='test -s conftest.$ac_objext'
8277   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8278   (eval $ac_try) 2>&5
8279   ac_status=$?
8280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8281   (exit $ac_status); }; }; then
8282   ac_header_compiler=yes
8283 else
8284   echo "$as_me: failed program was:" >&5
8285 sed 's/^/| /' conftest.$ac_ext >&5
8286
8287 ac_header_compiler=no
8288 fi
8289 rm -f conftest.$ac_objext conftest.$ac_ext
8290 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8291 echo "${ECHO_T}$ac_header_compiler" >&6
8292
8293 # Is the header present?
8294 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8295 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8296 cat >conftest.$ac_ext <<_ACEOF
8297 #line $LINENO "configure"
8298 /* confdefs.h.  */
8299 _ACEOF
8300 cat confdefs.h >>conftest.$ac_ext
8301 cat >>conftest.$ac_ext <<_ACEOF
8302 /* end confdefs.h.  */
8303 #include <$ac_header>
8304 _ACEOF
8305 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8306   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8307   ac_status=$?
8308   grep -v '^ *+' conftest.er1 >conftest.err
8309   rm -f conftest.er1
8310   cat conftest.err >&5
8311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8312   (exit $ac_status); } >/dev/null; then
8313   if test -s conftest.err; then
8314     ac_cpp_err=$ac_c_preproc_warn_flag
8315   else
8316     ac_cpp_err=
8317   fi
8318 else
8319   ac_cpp_err=yes
8320 fi
8321 if test -z "$ac_cpp_err"; then
8322   ac_header_preproc=yes
8323 else
8324   echo "$as_me: failed program was:" >&5
8325 sed 's/^/| /' conftest.$ac_ext >&5
8326
8327   ac_header_preproc=no
8328 fi
8329 rm -f conftest.err conftest.$ac_ext
8330 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8331 echo "${ECHO_T}$ac_header_preproc" >&6
8332
8333 # So?  What about this header?
8334 case $ac_header_compiler:$ac_header_preproc in
8335   yes:no )
8336     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8337 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8338     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8339 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8340     (
8341       cat <<\_ASBOX
8342 ## ------------------------------------ ##
8343 ## Report this to bug-autoconf@gnu.org. ##
8344 ## ------------------------------------ ##
8345 _ASBOX
8346     ) |
8347       sed "s/^/$as_me: WARNING:     /" >&2
8348     ;;
8349   no:yes )
8350     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8351 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8352     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8353 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8354     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8355 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8356     (
8357       cat <<\_ASBOX
8358 ## ------------------------------------ ##
8359 ## Report this to bug-autoconf@gnu.org. ##
8360 ## ------------------------------------ ##
8361 _ASBOX
8362     ) |
8363       sed "s/^/$as_me: WARNING:     /" >&2
8364     ;;
8365 esac
8366 echo "$as_me:$LINENO: checking for $ac_header" >&5
8367 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8368 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8369   echo $ECHO_N "(cached) $ECHO_C" >&6
8370 else
8371   eval "$as_ac_Header=$ac_header_preproc"
8372 fi
8373 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8374 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8375
8376 fi
8377 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8378   cat >>confdefs.h <<_ACEOF
8379 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8380 _ACEOF
8381
8382 for ac_header in audio/soundlib.h
8383 do
8384 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8385 echo "$as_me:$LINENO: checking for $ac_header" >&5
8386 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8387 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8388   echo $ECHO_N "(cached) $ECHO_C" >&6
8389 else
8390   cat >conftest.$ac_ext <<_ACEOF
8391 #line $LINENO "configure"
8392 /* confdefs.h.  */
8393 _ACEOF
8394 cat confdefs.h >>conftest.$ac_ext
8395 cat >>conftest.$ac_ext <<_ACEOF
8396 /* end confdefs.h.  */
8397 #include <audio/audiolib.h>
8398
8399 #include <$ac_header>
8400 _ACEOF
8401 rm -f conftest.$ac_objext
8402 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8403   (eval $ac_compile) 2>&5
8404   ac_status=$?
8405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8406   (exit $ac_status); } &&
8407          { ac_try='test -s conftest.$ac_objext'
8408   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8409   (eval $ac_try) 2>&5
8410   ac_status=$?
8411   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8412   (exit $ac_status); }; }; then
8413   eval "$as_ac_Header=yes"
8414 else
8415   echo "$as_me: failed program was:" >&5
8416 sed 's/^/| /' conftest.$ac_ext >&5
8417
8418 eval "$as_ac_Header=no"
8419 fi
8420 rm -f conftest.$ac_objext conftest.$ac_ext
8421 fi
8422 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8423 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8424 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8425   cat >>confdefs.h <<_ACEOF
8426 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8427 _ACEOF
8428
8429 fi
8430
8431 done
8432
8433           echo "$as_me:$LINENO: checking for AuCreateFlow in -laudio" >&5
8434 echo $ECHO_N "checking for AuCreateFlow in -laudio... $ECHO_C" >&6
8435 if test "${ac_cv_lib_audio_AuCreateFlow+set}" = set; then
8436   echo $ECHO_N "(cached) $ECHO_C" >&6
8437 else
8438   ac_check_lib_save_LIBS=$LIBS
8439 LIBS="-laudio -lXt $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
8440 cat >conftest.$ac_ext <<_ACEOF
8441 #line $LINENO "configure"
8442 /* confdefs.h.  */
8443 _ACEOF
8444 cat confdefs.h >>conftest.$ac_ext
8445 cat >>conftest.$ac_ext <<_ACEOF
8446 /* end confdefs.h.  */
8447
8448 /* Override any gcc2 internal prototype to avoid an error.  */
8449 #ifdef __cplusplus
8450 extern "C"
8451 #endif
8452 /* We use char because int might match the return type of a gcc2
8453    builtin and then its argument prototype would still apply.  */
8454 char AuCreateFlow ();
8455 int
8456 main ()
8457 {
8458 AuCreateFlow ();
8459   ;
8460   return 0;
8461 }
8462 _ACEOF
8463 rm -f conftest.$ac_objext conftest$ac_exeext
8464 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8465   (eval $ac_link) 2>&5
8466   ac_status=$?
8467   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8468   (exit $ac_status); } &&
8469          { ac_try='test -s conftest$ac_exeext'
8470   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8471   (eval $ac_try) 2>&5
8472   ac_status=$?
8473   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8474   (exit $ac_status); }; }; then
8475   ac_cv_lib_audio_AuCreateFlow=yes
8476 else
8477   echo "$as_me: failed program was:" >&5
8478 sed 's/^/| /' conftest.$ac_ext >&5
8479
8480 ac_cv_lib_audio_AuCreateFlow=no
8481 fi
8482 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8483 LIBS=$ac_check_lib_save_LIBS
8484 fi
8485 echo "$as_me:$LINENO: result: $ac_cv_lib_audio_AuCreateFlow" >&5
8486 echo "${ECHO_T}$ac_cv_lib_audio_AuCreateFlow" >&6
8487 if test $ac_cv_lib_audio_AuCreateFlow = yes; then
8488
8489 cat >>confdefs.h <<\_ACEOF
8490 #define HAVE_NAS 1
8491 _ACEOF
8492
8493                         NASLIBS="-laudio -lXt $X_LIBS -lXext -lX11 $X_EXTRA_LIBS"
8494 fi
8495
8496 fi
8497
8498 done
8499
8500
8501     CPPFLAGS="$ac_save_CPPFLAGS"
8502     XFILES='$(XFILES)'
8503 else
8504     XLIB=""
8505     X_CFLAGS=""
8506     X_LIBS=""
8507 fi
8508
8509 CURSESLIBS=""
8510 if test "x$with_curses" != "xno"
8511 then
8512
8513 for ac_header in ncurses.h
8514 do
8515 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8516 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8517   echo "$as_me:$LINENO: checking for $ac_header" >&5
8518 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8519 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8520   echo $ECHO_N "(cached) $ECHO_C" >&6
8521 fi
8522 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8523 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8524 else
8525   # Is the header compilable?
8526 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8527 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8528 cat >conftest.$ac_ext <<_ACEOF
8529 #line $LINENO "configure"
8530 /* confdefs.h.  */
8531 _ACEOF
8532 cat confdefs.h >>conftest.$ac_ext
8533 cat >>conftest.$ac_ext <<_ACEOF
8534 /* end confdefs.h.  */
8535 $ac_includes_default
8536 #include <$ac_header>
8537 _ACEOF
8538 rm -f conftest.$ac_objext
8539 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8540   (eval $ac_compile) 2>&5
8541   ac_status=$?
8542   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8543   (exit $ac_status); } &&
8544          { ac_try='test -s conftest.$ac_objext'
8545   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8546   (eval $ac_try) 2>&5
8547   ac_status=$?
8548   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8549   (exit $ac_status); }; }; then
8550   ac_header_compiler=yes
8551 else
8552   echo "$as_me: failed program was:" >&5
8553 sed 's/^/| /' conftest.$ac_ext >&5
8554
8555 ac_header_compiler=no
8556 fi
8557 rm -f conftest.$ac_objext conftest.$ac_ext
8558 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8559 echo "${ECHO_T}$ac_header_compiler" >&6
8560
8561 # Is the header present?
8562 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8563 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8564 cat >conftest.$ac_ext <<_ACEOF
8565 #line $LINENO "configure"
8566 /* confdefs.h.  */
8567 _ACEOF
8568 cat confdefs.h >>conftest.$ac_ext
8569 cat >>conftest.$ac_ext <<_ACEOF
8570 /* end confdefs.h.  */
8571 #include <$ac_header>
8572 _ACEOF
8573 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8574   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8575   ac_status=$?
8576   grep -v '^ *+' conftest.er1 >conftest.err
8577   rm -f conftest.er1
8578   cat conftest.err >&5
8579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8580   (exit $ac_status); } >/dev/null; then
8581   if test -s conftest.err; then
8582     ac_cpp_err=$ac_c_preproc_warn_flag
8583   else
8584     ac_cpp_err=
8585   fi
8586 else
8587   ac_cpp_err=yes
8588 fi
8589 if test -z "$ac_cpp_err"; then
8590   ac_header_preproc=yes
8591 else
8592   echo "$as_me: failed program was:" >&5
8593 sed 's/^/| /' conftest.$ac_ext >&5
8594
8595   ac_header_preproc=no
8596 fi
8597 rm -f conftest.err conftest.$ac_ext
8598 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8599 echo "${ECHO_T}$ac_header_preproc" >&6
8600
8601 # So?  What about this header?
8602 case $ac_header_compiler:$ac_header_preproc in
8603   yes:no )
8604     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8605 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8606     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8607 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8608     (
8609       cat <<\_ASBOX
8610 ## ------------------------------------ ##
8611 ## Report this to bug-autoconf@gnu.org. ##
8612 ## ------------------------------------ ##
8613 _ASBOX
8614     ) |
8615       sed "s/^/$as_me: WARNING:     /" >&2
8616     ;;
8617   no:yes )
8618     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8619 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8620     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8621 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8622     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8623 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8624     (
8625       cat <<\_ASBOX
8626 ## ------------------------------------ ##
8627 ## Report this to bug-autoconf@gnu.org. ##
8628 ## ------------------------------------ ##
8629 _ASBOX
8630     ) |
8631       sed "s/^/$as_me: WARNING:     /" >&2
8632     ;;
8633 esac
8634 echo "$as_me:$LINENO: checking for $ac_header" >&5
8635 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8636 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8637   echo $ECHO_N "(cached) $ECHO_C" >&6
8638 else
8639   eval "$as_ac_Header=$ac_header_preproc"
8640 fi
8641 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8642 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8643
8644 fi
8645 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8646   cat >>confdefs.h <<_ACEOF
8647 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8648 _ACEOF
8649  echo "$as_me:$LINENO: checking for waddch in -lncurses" >&5
8650 echo $ECHO_N "checking for waddch in -lncurses... $ECHO_C" >&6
8651 if test "${ac_cv_lib_ncurses_waddch+set}" = set; then
8652   echo $ECHO_N "(cached) $ECHO_C" >&6
8653 else
8654   ac_check_lib_save_LIBS=$LIBS
8655 LIBS="-lncurses  $LIBS"
8656 cat >conftest.$ac_ext <<_ACEOF
8657 #line $LINENO "configure"
8658 /* confdefs.h.  */
8659 _ACEOF
8660 cat confdefs.h >>conftest.$ac_ext
8661 cat >>conftest.$ac_ext <<_ACEOF
8662 /* end confdefs.h.  */
8663
8664 /* Override any gcc2 internal prototype to avoid an error.  */
8665 #ifdef __cplusplus
8666 extern "C"
8667 #endif
8668 /* We use char because int might match the return type of a gcc2
8669    builtin and then its argument prototype would still apply.  */
8670 char waddch ();
8671 int
8672 main ()
8673 {
8674 waddch ();
8675   ;
8676   return 0;
8677 }
8678 _ACEOF
8679 rm -f conftest.$ac_objext conftest$ac_exeext
8680 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8681   (eval $ac_link) 2>&5
8682   ac_status=$?
8683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8684   (exit $ac_status); } &&
8685          { ac_try='test -s conftest$ac_exeext'
8686   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8687   (eval $ac_try) 2>&5
8688   ac_status=$?
8689   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8690   (exit $ac_status); }; }; then
8691   ac_cv_lib_ncurses_waddch=yes
8692 else
8693   echo "$as_me: failed program was:" >&5
8694 sed 's/^/| /' conftest.$ac_ext >&5
8695
8696 ac_cv_lib_ncurses_waddch=no
8697 fi
8698 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8699 LIBS=$ac_check_lib_save_LIBS
8700 fi
8701 echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_waddch" >&5
8702 echo "${ECHO_T}$ac_cv_lib_ncurses_waddch" >&6
8703 if test $ac_cv_lib_ncurses_waddch = yes; then
8704
8705 cat >>confdefs.h <<\_ACEOF
8706 #define HAVE_LIBNCURSES 1
8707 _ACEOF
8708
8709              CURSESLIBS="-lncurses"
8710 else
8711
8712 for ac_header in curses.h
8713 do
8714 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8715 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8716   echo "$as_me:$LINENO: checking for $ac_header" >&5
8717 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8718 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8719   echo $ECHO_N "(cached) $ECHO_C" >&6
8720 fi
8721 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8722 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8723 else
8724   # Is the header compilable?
8725 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8726 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8727 cat >conftest.$ac_ext <<_ACEOF
8728 #line $LINENO "configure"
8729 /* confdefs.h.  */
8730 _ACEOF
8731 cat confdefs.h >>conftest.$ac_ext
8732 cat >>conftest.$ac_ext <<_ACEOF
8733 /* end confdefs.h.  */
8734 $ac_includes_default
8735 #include <$ac_header>
8736 _ACEOF
8737 rm -f conftest.$ac_objext
8738 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8739   (eval $ac_compile) 2>&5
8740   ac_status=$?
8741   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8742   (exit $ac_status); } &&
8743          { ac_try='test -s conftest.$ac_objext'
8744   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8745   (eval $ac_try) 2>&5
8746   ac_status=$?
8747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8748   (exit $ac_status); }; }; then
8749   ac_header_compiler=yes
8750 else
8751   echo "$as_me: failed program was:" >&5
8752 sed 's/^/| /' conftest.$ac_ext >&5
8753
8754 ac_header_compiler=no
8755 fi
8756 rm -f conftest.$ac_objext conftest.$ac_ext
8757 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8758 echo "${ECHO_T}$ac_header_compiler" >&6
8759
8760 # Is the header present?
8761 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8762 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8763 cat >conftest.$ac_ext <<_ACEOF
8764 #line $LINENO "configure"
8765 /* confdefs.h.  */
8766 _ACEOF
8767 cat confdefs.h >>conftest.$ac_ext
8768 cat >>conftest.$ac_ext <<_ACEOF
8769 /* end confdefs.h.  */
8770 #include <$ac_header>
8771 _ACEOF
8772 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8773   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8774   ac_status=$?
8775   grep -v '^ *+' conftest.er1 >conftest.err
8776   rm -f conftest.er1
8777   cat conftest.err >&5
8778   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8779   (exit $ac_status); } >/dev/null; then
8780   if test -s conftest.err; then
8781     ac_cpp_err=$ac_c_preproc_warn_flag
8782   else
8783     ac_cpp_err=
8784   fi
8785 else
8786   ac_cpp_err=yes
8787 fi
8788 if test -z "$ac_cpp_err"; then
8789   ac_header_preproc=yes
8790 else
8791   echo "$as_me: failed program was:" >&5
8792 sed 's/^/| /' conftest.$ac_ext >&5
8793
8794   ac_header_preproc=no
8795 fi
8796 rm -f conftest.err conftest.$ac_ext
8797 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8798 echo "${ECHO_T}$ac_header_preproc" >&6
8799
8800 # So?  What about this header?
8801 case $ac_header_compiler:$ac_header_preproc in
8802   yes:no )
8803     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8804 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8805     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8806 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8807     (
8808       cat <<\_ASBOX
8809 ## ------------------------------------ ##
8810 ## Report this to bug-autoconf@gnu.org. ##
8811 ## ------------------------------------ ##
8812 _ASBOX
8813     ) |
8814       sed "s/^/$as_me: WARNING:     /" >&2
8815     ;;
8816   no:yes )
8817     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8818 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8819     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8820 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8821     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8822 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8823     (
8824       cat <<\_ASBOX
8825 ## ------------------------------------ ##
8826 ## Report this to bug-autoconf@gnu.org. ##
8827 ## ------------------------------------ ##
8828 _ASBOX
8829     ) |
8830       sed "s/^/$as_me: WARNING:     /" >&2
8831     ;;
8832 esac
8833 echo "$as_me:$LINENO: checking for $ac_header" >&5
8834 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8835 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8836   echo $ECHO_N "(cached) $ECHO_C" >&6
8837 else
8838   eval "$as_ac_Header=$ac_header_preproc"
8839 fi
8840 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8841 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8842
8843 fi
8844 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8845   cat >>confdefs.h <<_ACEOF
8846 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8847 _ACEOF
8848  echo "$as_me:$LINENO: checking for waddch in -lcurses" >&5
8849 echo $ECHO_N "checking for waddch in -lcurses... $ECHO_C" >&6
8850 if test "${ac_cv_lib_curses_waddch+set}" = set; then
8851   echo $ECHO_N "(cached) $ECHO_C" >&6
8852 else
8853   ac_check_lib_save_LIBS=$LIBS
8854 LIBS="-lcurses  $LIBS"
8855 cat >conftest.$ac_ext <<_ACEOF
8856 #line $LINENO "configure"
8857 /* confdefs.h.  */
8858 _ACEOF
8859 cat confdefs.h >>conftest.$ac_ext
8860 cat >>conftest.$ac_ext <<_ACEOF
8861 /* end confdefs.h.  */
8862
8863 /* Override any gcc2 internal prototype to avoid an error.  */
8864 #ifdef __cplusplus
8865 extern "C"
8866 #endif
8867 /* We use char because int might match the return type of a gcc2
8868    builtin and then its argument prototype would still apply.  */
8869 char waddch ();
8870 int
8871 main ()
8872 {
8873 waddch ();
8874   ;
8875   return 0;
8876 }
8877 _ACEOF
8878 rm -f conftest.$ac_objext conftest$ac_exeext
8879 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8880   (eval $ac_link) 2>&5
8881   ac_status=$?
8882   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8883   (exit $ac_status); } &&
8884          { ac_try='test -s conftest$ac_exeext'
8885   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8886   (eval $ac_try) 2>&5
8887   ac_status=$?
8888   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8889   (exit $ac_status); }; }; then
8890   ac_cv_lib_curses_waddch=yes
8891 else
8892   echo "$as_me: failed program was:" >&5
8893 sed 's/^/| /' conftest.$ac_ext >&5
8894
8895 ac_cv_lib_curses_waddch=no
8896 fi
8897 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8898 LIBS=$ac_check_lib_save_LIBS
8899 fi
8900 echo "$as_me:$LINENO: result: $ac_cv_lib_curses_waddch" >&5
8901 echo "${ECHO_T}$ac_cv_lib_curses_waddch" >&6
8902 if test $ac_cv_lib_curses_waddch = yes; then
8903
8904 cat >>confdefs.h <<\_ACEOF
8905 #define HAVE_LIBCURSES 1
8906 _ACEOF
8907
8908                       CURSESLIBS="-lcurses"
8909 fi
8910
8911 fi
8912
8913 done
8914
8915 fi
8916
8917 fi
8918
8919 done
8920
8921     saved_libs="$LIBS"
8922     LIBS="$CURSESLIBS $LIBS"
8923
8924
8925 for ac_func in getbkgd resizeterm
8926 do
8927 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8928 echo "$as_me:$LINENO: checking for $ac_func" >&5
8929 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8930 if eval "test \"\${$as_ac_var+set}\" = set"; then
8931   echo $ECHO_N "(cached) $ECHO_C" >&6
8932 else
8933   cat >conftest.$ac_ext <<_ACEOF
8934 #line $LINENO "configure"
8935 /* confdefs.h.  */
8936 _ACEOF
8937 cat confdefs.h >>conftest.$ac_ext
8938 cat >>conftest.$ac_ext <<_ACEOF
8939 /* end confdefs.h.  */
8940 /* System header to define __stub macros and hopefully few prototypes,
8941     which can conflict with char $ac_func (); below.
8942     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8943     <limits.h> exists even on freestanding compilers.  */
8944 #ifdef __STDC__
8945 # include <limits.h>
8946 #else
8947 # include <assert.h>
8948 #endif
8949 /* Override any gcc2 internal prototype to avoid an error.  */
8950 #ifdef __cplusplus
8951 extern "C"
8952 {
8953 #endif
8954 /* We use char because int might match the return type of a gcc2
8955    builtin and then its argument prototype would still apply.  */
8956 char $ac_func ();
8957 /* The GNU C library defines this for functions which it implements
8958     to always fail with ENOSYS.  Some functions are actually named
8959     something starting with __ and the normal name is an alias.  */
8960 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8961 choke me
8962 #else
8963 char (*f) () = $ac_func;
8964 #endif
8965 #ifdef __cplusplus
8966 }
8967 #endif
8968
8969 int
8970 main ()
8971 {
8972 return f != $ac_func;
8973   ;
8974   return 0;
8975 }
8976 _ACEOF
8977 rm -f conftest.$ac_objext conftest$ac_exeext
8978 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8979   (eval $ac_link) 2>&5
8980   ac_status=$?
8981   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8982   (exit $ac_status); } &&
8983          { ac_try='test -s conftest$ac_exeext'
8984   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8985   (eval $ac_try) 2>&5
8986   ac_status=$?
8987   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8988   (exit $ac_status); }; }; then
8989   eval "$as_ac_var=yes"
8990 else
8991   echo "$as_me: failed program was:" >&5
8992 sed 's/^/| /' conftest.$ac_ext >&5
8993
8994 eval "$as_ac_var=no"
8995 fi
8996 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8997 fi
8998 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8999 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9000 if test `eval echo '${'$as_ac_var'}'` = yes; then
9001   cat >>confdefs.h <<_ACEOF
9002 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9003 _ACEOF
9004
9005 fi
9006 done
9007
9008     LIBS="$saved_libs"
9009 fi
9010
9011
9012 # Extract the first word of "sane-config", so it can be a program name with args.
9013 set dummy sane-config; ac_word=$2
9014 echo "$as_me:$LINENO: checking for $ac_word" >&5
9015 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9016 if test "${ac_cv_prog_sane_devel+set}" = set; then
9017   echo $ECHO_N "(cached) $ECHO_C" >&6
9018 else
9019   if test -n "$sane_devel"; then
9020   ac_cv_prog_sane_devel="$sane_devel" # Let the user override the test.
9021 else
9022 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9023 for as_dir in $PATH
9024 do
9025   IFS=$as_save_IFS
9026   test -z "$as_dir" && as_dir=.
9027   for ac_exec_ext in '' $ac_executable_extensions; do
9028   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9029     ac_cv_prog_sane_devel="sane-config"
9030     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9031     break 2
9032   fi
9033 done
9034 done
9035
9036   test -z "$ac_cv_prog_sane_devel" && ac_cv_prog_sane_devel="no"
9037 fi
9038 fi
9039 sane_devel=$ac_cv_prog_sane_devel
9040 if test -n "$sane_devel"; then
9041   echo "$as_me:$LINENO: result: $sane_devel" >&5
9042 echo "${ECHO_T}$sane_devel" >&6
9043 else
9044   echo "$as_me:$LINENO: result: no" >&5
9045 echo "${ECHO_T}no" >&6
9046 fi
9047
9048 if test "$sane_devel" = "no"
9049 then
9050     SANELIBS=""
9051     SANEINCL=""
9052 else
9053     SANELIBS="`$sane_devel --libs`"
9054     SANEINCL="`$sane_devel --cflags`"
9055     ac_save_CPPFLAGS="$CPPFLAGS"
9056     ac_save_LIBS="$LIBS"
9057     CPPFLAGS="$CPPFLAGS $SANEINCL"
9058     LIBS="$LIBS $SANELIBS"
9059     if test "${ac_cv_header_sane_sane_h+set}" = set; then
9060   echo "$as_me:$LINENO: checking for sane/sane.h" >&5
9061 echo $ECHO_N "checking for sane/sane.h... $ECHO_C" >&6
9062 if test "${ac_cv_header_sane_sane_h+set}" = set; then
9063   echo $ECHO_N "(cached) $ECHO_C" >&6
9064 fi
9065 echo "$as_me:$LINENO: result: $ac_cv_header_sane_sane_h" >&5
9066 echo "${ECHO_T}$ac_cv_header_sane_sane_h" >&6
9067 else
9068   # Is the header compilable?
9069 echo "$as_me:$LINENO: checking sane/sane.h usability" >&5
9070 echo $ECHO_N "checking sane/sane.h usability... $ECHO_C" >&6
9071 cat >conftest.$ac_ext <<_ACEOF
9072 #line $LINENO "configure"
9073 /* confdefs.h.  */
9074 _ACEOF
9075 cat confdefs.h >>conftest.$ac_ext
9076 cat >>conftest.$ac_ext <<_ACEOF
9077 /* end confdefs.h.  */
9078 $ac_includes_default
9079 #include <sane/sane.h>
9080 _ACEOF
9081 rm -f conftest.$ac_objext
9082 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9083   (eval $ac_compile) 2>&5
9084   ac_status=$?
9085   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9086   (exit $ac_status); } &&
9087          { ac_try='test -s conftest.$ac_objext'
9088   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9089   (eval $ac_try) 2>&5
9090   ac_status=$?
9091   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9092   (exit $ac_status); }; }; then
9093   ac_header_compiler=yes
9094 else
9095   echo "$as_me: failed program was:" >&5
9096 sed 's/^/| /' conftest.$ac_ext >&5
9097
9098 ac_header_compiler=no
9099 fi
9100 rm -f conftest.$ac_objext conftest.$ac_ext
9101 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9102 echo "${ECHO_T}$ac_header_compiler" >&6
9103
9104 # Is the header present?
9105 echo "$as_me:$LINENO: checking sane/sane.h presence" >&5
9106 echo $ECHO_N "checking sane/sane.h presence... $ECHO_C" >&6
9107 cat >conftest.$ac_ext <<_ACEOF
9108 #line $LINENO "configure"
9109 /* confdefs.h.  */
9110 _ACEOF
9111 cat confdefs.h >>conftest.$ac_ext
9112 cat >>conftest.$ac_ext <<_ACEOF
9113 /* end confdefs.h.  */
9114 #include <sane/sane.h>
9115 _ACEOF
9116 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9117   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9118   ac_status=$?
9119   grep -v '^ *+' conftest.er1 >conftest.err
9120   rm -f conftest.er1
9121   cat conftest.err >&5
9122   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9123   (exit $ac_status); } >/dev/null; then
9124   if test -s conftest.err; then
9125     ac_cpp_err=$ac_c_preproc_warn_flag
9126   else
9127     ac_cpp_err=
9128   fi
9129 else
9130   ac_cpp_err=yes
9131 fi
9132 if test -z "$ac_cpp_err"; then
9133   ac_header_preproc=yes
9134 else
9135   echo "$as_me: failed program was:" >&5
9136 sed 's/^/| /' conftest.$ac_ext >&5
9137
9138   ac_header_preproc=no
9139 fi
9140 rm -f conftest.err conftest.$ac_ext
9141 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9142 echo "${ECHO_T}$ac_header_preproc" >&6
9143
9144 # So?  What about this header?
9145 case $ac_header_compiler:$ac_header_preproc in
9146   yes:no )
9147     { echo "$as_me:$LINENO: WARNING: sane/sane.h: accepted by the compiler, rejected by the preprocessor!" >&5
9148 echo "$as_me: WARNING: sane/sane.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9149     { echo "$as_me:$LINENO: WARNING: sane/sane.h: proceeding with the preprocessor's result" >&5
9150 echo "$as_me: WARNING: sane/sane.h: proceeding with the preprocessor's result" >&2;}
9151     (
9152       cat <<\_ASBOX
9153 ## ------------------------------------ ##
9154 ## Report this to bug-autoconf@gnu.org. ##
9155 ## ------------------------------------ ##
9156 _ASBOX
9157     ) |
9158       sed "s/^/$as_me: WARNING:     /" >&2
9159     ;;
9160   no:yes )
9161     { echo "$as_me:$LINENO: WARNING: sane/sane.h: present but cannot be compiled" >&5
9162 echo "$as_me: WARNING: sane/sane.h: present but cannot be compiled" >&2;}
9163     { echo "$as_me:$LINENO: WARNING: sane/sane.h: check for missing prerequisite headers?" >&5
9164 echo "$as_me: WARNING: sane/sane.h: check for missing prerequisite headers?" >&2;}
9165     { echo "$as_me:$LINENO: WARNING: sane/sane.h: proceeding with the preprocessor's result" >&5
9166 echo "$as_me: WARNING: sane/sane.h: proceeding with the preprocessor's result" >&2;}
9167     (
9168       cat <<\_ASBOX
9169 ## ------------------------------------ ##
9170 ## Report this to bug-autoconf@gnu.org. ##
9171 ## ------------------------------------ ##
9172 _ASBOX
9173     ) |
9174       sed "s/^/$as_me: WARNING:     /" >&2
9175     ;;
9176 esac
9177 echo "$as_me:$LINENO: checking for sane/sane.h" >&5
9178 echo $ECHO_N "checking for sane/sane.h... $ECHO_C" >&6
9179 if test "${ac_cv_header_sane_sane_h+set}" = set; then
9180   echo $ECHO_N "(cached) $ECHO_C" >&6
9181 else
9182   ac_cv_header_sane_sane_h=$ac_header_preproc
9183 fi
9184 echo "$as_me:$LINENO: result: $ac_cv_header_sane_sane_h" >&5
9185 echo "${ECHO_T}$ac_cv_header_sane_sane_h" >&6
9186
9187 fi
9188 if test $ac_cv_header_sane_sane_h = yes; then
9189   echo "$as_me:$LINENO: checking for sane_open in -lsane" >&5
9190 echo $ECHO_N "checking for sane_open in -lsane... $ECHO_C" >&6
9191 if test "${ac_cv_lib_sane_sane_open+set}" = set; then
9192   echo $ECHO_N "(cached) $ECHO_C" >&6
9193 else
9194   ac_check_lib_save_LIBS=$LIBS
9195 LIBS="-lsane  $LIBS"
9196 cat >conftest.$ac_ext <<_ACEOF
9197 #line $LINENO "configure"
9198 /* confdefs.h.  */
9199 _ACEOF
9200 cat confdefs.h >>conftest.$ac_ext
9201 cat >>conftest.$ac_ext <<_ACEOF
9202 /* end confdefs.h.  */
9203
9204 /* Override any gcc2 internal prototype to avoid an error.  */
9205 #ifdef __cplusplus
9206 extern "C"
9207 #endif
9208 /* We use char because int might match the return type of a gcc2
9209    builtin and then its argument prototype would still apply.  */
9210 char sane_open ();
9211 int
9212 main ()
9213 {
9214 sane_open ();
9215   ;
9216   return 0;
9217 }
9218 _ACEOF
9219 rm -f conftest.$ac_objext conftest$ac_exeext
9220 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9221   (eval $ac_link) 2>&5
9222   ac_status=$?
9223   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9224   (exit $ac_status); } &&
9225          { ac_try='test -s conftest$ac_exeext'
9226   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9227   (eval $ac_try) 2>&5
9228   ac_status=$?
9229   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9230   (exit $ac_status); }; }; then
9231   ac_cv_lib_sane_sane_open=yes
9232 else
9233   echo "$as_me: failed program was:" >&5
9234 sed 's/^/| /' conftest.$ac_ext >&5
9235
9236 ac_cv_lib_sane_sane_open=no
9237 fi
9238 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9239 LIBS=$ac_check_lib_save_LIBS
9240 fi
9241 echo "$as_me:$LINENO: result: $ac_cv_lib_sane_sane_open" >&5
9242 echo "${ECHO_T}$ac_cv_lib_sane_sane_open" >&6
9243 if test $ac_cv_lib_sane_sane_open = yes; then
9244
9245 cat >>confdefs.h <<\_ACEOF
9246 #define HAVE_SANE 1
9247 _ACEOF
9248
9249 else
9250   SANELIBS=""
9251                                   SANEINCL=""
9252 fi
9253
9254 else
9255   SANELIBS=""
9256                     SANEINCL=""
9257 fi
9258
9259
9260     LIBS="$ac_save_LIBS"
9261     CPPFLAGS="$ac_save_CPPFLAGS"
9262 fi
9263
9264
9265
9266
9267 for ac_header in unicode/ubidi.h
9268 do
9269 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9270 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9271   echo "$as_me:$LINENO: checking for $ac_header" >&5
9272 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9273 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9274   echo $ECHO_N "(cached) $ECHO_C" >&6
9275 fi
9276 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9277 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9278 else
9279   # Is the header compilable?
9280 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9281 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9282 cat >conftest.$ac_ext <<_ACEOF
9283 #line $LINENO "configure"
9284 /* confdefs.h.  */
9285 _ACEOF
9286 cat confdefs.h >>conftest.$ac_ext
9287 cat >>conftest.$ac_ext <<_ACEOF
9288 /* end confdefs.h.  */
9289 $ac_includes_default
9290 #include <$ac_header>
9291 _ACEOF
9292 rm -f conftest.$ac_objext
9293 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9294   (eval $ac_compile) 2>&5
9295   ac_status=$?
9296   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9297   (exit $ac_status); } &&
9298          { ac_try='test -s conftest.$ac_objext'
9299   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9300   (eval $ac_try) 2>&5
9301   ac_status=$?
9302   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9303   (exit $ac_status); }; }; then
9304   ac_header_compiler=yes
9305 else
9306   echo "$as_me: failed program was:" >&5
9307 sed 's/^/| /' conftest.$ac_ext >&5
9308
9309 ac_header_compiler=no
9310 fi
9311 rm -f conftest.$ac_objext conftest.$ac_ext
9312 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9313 echo "${ECHO_T}$ac_header_compiler" >&6
9314
9315 # Is the header present?
9316 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9317 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9318 cat >conftest.$ac_ext <<_ACEOF
9319 #line $LINENO "configure"
9320 /* confdefs.h.  */
9321 _ACEOF
9322 cat confdefs.h >>conftest.$ac_ext
9323 cat >>conftest.$ac_ext <<_ACEOF
9324 /* end confdefs.h.  */
9325 #include <$ac_header>
9326 _ACEOF
9327 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9328   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9329   ac_status=$?
9330   grep -v '^ *+' conftest.er1 >conftest.err
9331   rm -f conftest.er1
9332   cat conftest.err >&5
9333   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9334   (exit $ac_status); } >/dev/null; then
9335   if test -s conftest.err; then
9336     ac_cpp_err=$ac_c_preproc_warn_flag
9337   else
9338     ac_cpp_err=
9339   fi
9340 else
9341   ac_cpp_err=yes
9342 fi
9343 if test -z "$ac_cpp_err"; then
9344   ac_header_preproc=yes
9345 else
9346   echo "$as_me: failed program was:" >&5
9347 sed 's/^/| /' conftest.$ac_ext >&5
9348
9349   ac_header_preproc=no
9350 fi
9351 rm -f conftest.err conftest.$ac_ext
9352 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9353 echo "${ECHO_T}$ac_header_preproc" >&6
9354
9355 # So?  What about this header?
9356 case $ac_header_compiler:$ac_header_preproc in
9357   yes:no )
9358     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9359 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9360     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9361 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9362     (
9363       cat <<\_ASBOX
9364 ## ------------------------------------ ##
9365 ## Report this to bug-autoconf@gnu.org. ##
9366 ## ------------------------------------ ##
9367 _ASBOX
9368     ) |
9369       sed "s/^/$as_me: WARNING:     /" >&2
9370     ;;
9371   no:yes )
9372     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9373 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9374     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9375 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9376     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9377 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9378     (
9379       cat <<\_ASBOX
9380 ## ------------------------------------ ##
9381 ## Report this to bug-autoconf@gnu.org. ##
9382 ## ------------------------------------ ##
9383 _ASBOX
9384     ) |
9385       sed "s/^/$as_me: WARNING:     /" >&2
9386     ;;
9387 esac
9388 echo "$as_me:$LINENO: checking for $ac_header" >&5
9389 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9390 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9391   echo $ECHO_N "(cached) $ECHO_C" >&6
9392 else
9393   eval "$as_ac_Header=$ac_header_preproc"
9394 fi
9395 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9396 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9397
9398 fi
9399 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9400   cat >>confdefs.h <<_ACEOF
9401 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9402 _ACEOF
9403
9404 fi
9405
9406 done
9407
9408 if test "$ac_cv_header_unicode_ubidi_h" = "yes"
9409 then
9410     echo "$as_me:$LINENO: checking whether we can statically link the ICU libraries" >&5
9411 echo $ECHO_N "checking whether we can statically link the ICU libraries... $ECHO_C" >&6
9412 if test "${ac_cv_lib_icu+set}" = set; then
9413   echo $ECHO_N "(cached) $ECHO_C" >&6
9414 else
9415   saved_libs="$LIBS"
9416          ICU_LIB_DIR="${ICU_LIB_DIR-/usr/lib}"
9417          ICUUC_LIB="${ICUUC_LIB-$ICU_LIB_DIR/libicuuc.a}"
9418          ICUDATA_LIB="${ICUDATA_LIB-$ICU_LIB_DIR/libicudata.a}"
9419          LIBS="$LIBS $ICUUC_LIB $ICUDATA_LIB -lstdc++ -lgcc_s"
9420          cat >conftest.$ac_ext <<_ACEOF
9421 #line $LINENO "configure"
9422 /* confdefs.h.  */
9423 _ACEOF
9424 cat confdefs.h >>conftest.$ac_ext
9425 cat >>conftest.$ac_ext <<_ACEOF
9426 /* end confdefs.h.  */
9427 #include <unicode/ubidi.h>
9428 int
9429 main ()
9430 {
9431 ubidi_open()
9432   ;
9433   return 0;
9434 }
9435 _ACEOF
9436 rm -f conftest.$ac_objext conftest$ac_exeext
9437 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9438   (eval $ac_link) 2>&5
9439   ac_status=$?
9440   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9441   (exit $ac_status); } &&
9442          { ac_try='test -s conftest$ac_exeext'
9443   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9444   (eval $ac_try) 2>&5
9445   ac_status=$?
9446   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9447   (exit $ac_status); }; }; then
9448   ac_cv_lib_icu="yes"
9449 else
9450   echo "$as_me: failed program was:" >&5
9451 sed 's/^/| /' conftest.$ac_ext >&5
9452
9453 ac_cv_lib_icu="no"
9454 fi
9455 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9456         LIBS="$saved_libs"
9457 fi
9458 echo "$as_me:$LINENO: result: $ac_cv_lib_icu" >&5
9459 echo "${ECHO_T}$ac_cv_lib_icu" >&6
9460     if test "$ac_cv_lib_icu" = "yes"
9461     then
9462
9463 cat >>confdefs.h <<\_ACEOF
9464 #define HAVE_ICU 1
9465 _ACEOF
9466
9467         ICULIBS="$ICUUC_LIB $ICUDATA_LIB -lstdc++ -lgcc_s"
9468
9469     fi
9470 fi
9471
9472 echo "$as_me:$LINENO: checking for FT_Init_FreeType in -lfreetype" >&5
9473 echo $ECHO_N "checking for FT_Init_FreeType in -lfreetype... $ECHO_C" >&6
9474 if test "${ac_cv_lib_freetype_FT_Init_FreeType+set}" = set; then
9475   echo $ECHO_N "(cached) $ECHO_C" >&6
9476 else
9477   ac_check_lib_save_LIBS=$LIBS
9478 LIBS="-lfreetype $X_LIBS $LIBS"
9479 cat >conftest.$ac_ext <<_ACEOF
9480 #line $LINENO "configure"
9481 /* confdefs.h.  */
9482 _ACEOF
9483 cat confdefs.h >>conftest.$ac_ext
9484 cat >>conftest.$ac_ext <<_ACEOF
9485 /* end confdefs.h.  */
9486
9487 /* Override any gcc2 internal prototype to avoid an error.  */
9488 #ifdef __cplusplus
9489 extern "C"
9490 #endif
9491 /* We use char because int might match the return type of a gcc2
9492    builtin and then its argument prototype would still apply.  */
9493 char FT_Init_FreeType ();
9494 int
9495 main ()
9496 {
9497 FT_Init_FreeType ();
9498   ;
9499   return 0;
9500 }
9501 _ACEOF
9502 rm -f conftest.$ac_objext conftest$ac_exeext
9503 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9504   (eval $ac_link) 2>&5
9505   ac_status=$?
9506   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9507   (exit $ac_status); } &&
9508          { ac_try='test -s conftest$ac_exeext'
9509   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9510   (eval $ac_try) 2>&5
9511   ac_status=$?
9512   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9513   (exit $ac_status); }; }; then
9514   ac_cv_lib_freetype_FT_Init_FreeType=yes
9515 else
9516   echo "$as_me: failed program was:" >&5
9517 sed 's/^/| /' conftest.$ac_ext >&5
9518
9519 ac_cv_lib_freetype_FT_Init_FreeType=no
9520 fi
9521 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9522 LIBS=$ac_check_lib_save_LIBS
9523 fi
9524 echo "$as_me:$LINENO: result: $ac_cv_lib_freetype_FT_Init_FreeType" >&5
9525 echo "${ECHO_T}$ac_cv_lib_freetype_FT_Init_FreeType" >&6
9526 if test $ac_cv_lib_freetype_FT_Init_FreeType = yes; then
9527   ft_lib=yes
9528 else
9529   ft_lib=no
9530 fi
9531
9532 if test "$ft_lib" = "no"
9533 then
9534     FREETYPEINCL=""
9535     wine_cv_msg_freetype=no
9536 else
9537     # Extract the first word of "freetype-config", so it can be a program name with args.
9538 set dummy freetype-config; ac_word=$2
9539 echo "$as_me:$LINENO: checking for $ac_word" >&5
9540 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9541 if test "${ac_cv_prog_ft_devel+set}" = set; then
9542   echo $ECHO_N "(cached) $ECHO_C" >&6
9543 else
9544   if test -n "$ft_devel"; then
9545   ac_cv_prog_ft_devel="$ft_devel" # Let the user override the test.
9546 else
9547 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9548 for as_dir in $PATH
9549 do
9550   IFS=$as_save_IFS
9551   test -z "$as_dir" && as_dir=.
9552   for ac_exec_ext in '' $ac_executable_extensions; do
9553   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9554     ac_cv_prog_ft_devel="freetype-config"
9555     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9556     break 2
9557   fi
9558 done
9559 done
9560
9561   test -z "$ac_cv_prog_ft_devel" && ac_cv_prog_ft_devel="no"
9562 fi
9563 fi
9564 ft_devel=$ac_cv_prog_ft_devel
9565 if test -n "$ft_devel"; then
9566   echo "$as_me:$LINENO: result: $ft_devel" >&5
9567 echo "${ECHO_T}$ft_devel" >&6
9568 else
9569   echo "$as_me:$LINENO: result: no" >&5
9570 echo "${ECHO_T}no" >&6
9571 fi
9572
9573     if test "$ft_devel" = "no"
9574     then
9575         # Extract the first word of "freetype2-config", so it can be a program name with args.
9576 set dummy freetype2-config; ac_word=$2
9577 echo "$as_me:$LINENO: checking for $ac_word" >&5
9578 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9579 if test "${ac_cv_prog_ft_devel2+set}" = set; then
9580   echo $ECHO_N "(cached) $ECHO_C" >&6
9581 else
9582   if test -n "$ft_devel2"; then
9583   ac_cv_prog_ft_devel2="$ft_devel2" # Let the user override the test.
9584 else
9585 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9586 for as_dir in $PATH
9587 do
9588   IFS=$as_save_IFS
9589   test -z "$as_dir" && as_dir=.
9590   for ac_exec_ext in '' $ac_executable_extensions; do
9591   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9592     ac_cv_prog_ft_devel2="freetype2-config"
9593     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9594     break 2
9595   fi
9596 done
9597 done
9598
9599   test -z "$ac_cv_prog_ft_devel2" && ac_cv_prog_ft_devel2="no"
9600 fi
9601 fi
9602 ft_devel2=$ac_cv_prog_ft_devel2
9603 if test -n "$ft_devel2"; then
9604   echo "$as_me:$LINENO: result: $ft_devel2" >&5
9605 echo "${ECHO_T}$ft_devel2" >&6
9606 else
9607   echo "$as_me:$LINENO: result: no" >&5
9608 echo "${ECHO_T}no" >&6
9609 fi
9610
9611         if test "$ft_devel2" = "freetype2-config"
9612         then
9613                 ft_devel=$ft_devel2
9614         fi
9615     fi
9616     if test "$ft_devel" = "no"
9617     then
9618         FREETYPEINCL=""
9619         wine_cv_msg_freetype=yes
9620     else
9621         FREETYPEINCL=`$ft_devel --cflags`
9622         ac_save_CPPFLAGS="$CPPFLAGS"
9623         CPPFLAGS="$FREETYPEINCL $CPPFLAGS"
9624
9625
9626
9627
9628
9629
9630
9631
9632 for ac_header in freetype/freetype.h \
9633                          freetype/ftglyph.h \
9634                          freetype/tttables.h \
9635                          freetype/ftnames.h \
9636                          freetype/ftsnames.h \
9637                          freetype/ttnameid.h \
9638                          freetype/ftoutln.h \
9639                          freetype/internal/sfnt.h
9640 do
9641 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9642 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9643   echo "$as_me:$LINENO: checking for $ac_header" >&5
9644 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9645 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9646   echo $ECHO_N "(cached) $ECHO_C" >&6
9647 fi
9648 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9649 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9650 else
9651   # Is the header compilable?
9652 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9653 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9654 cat >conftest.$ac_ext <<_ACEOF
9655 #line $LINENO "configure"
9656 /* confdefs.h.  */
9657 _ACEOF
9658 cat confdefs.h >>conftest.$ac_ext
9659 cat >>conftest.$ac_ext <<_ACEOF
9660 /* end confdefs.h.  */
9661 $ac_includes_default
9662 #include <$ac_header>
9663 _ACEOF
9664 rm -f conftest.$ac_objext
9665 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9666   (eval $ac_compile) 2>&5
9667   ac_status=$?
9668   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9669   (exit $ac_status); } &&
9670          { ac_try='test -s conftest.$ac_objext'
9671   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9672   (eval $ac_try) 2>&5
9673   ac_status=$?
9674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9675   (exit $ac_status); }; }; then
9676   ac_header_compiler=yes
9677 else
9678   echo "$as_me: failed program was:" >&5
9679 sed 's/^/| /' conftest.$ac_ext >&5
9680
9681 ac_header_compiler=no
9682 fi
9683 rm -f conftest.$ac_objext conftest.$ac_ext
9684 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9685 echo "${ECHO_T}$ac_header_compiler" >&6
9686
9687 # Is the header present?
9688 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9689 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9690 cat >conftest.$ac_ext <<_ACEOF
9691 #line $LINENO "configure"
9692 /* confdefs.h.  */
9693 _ACEOF
9694 cat confdefs.h >>conftest.$ac_ext
9695 cat >>conftest.$ac_ext <<_ACEOF
9696 /* end confdefs.h.  */
9697 #include <$ac_header>
9698 _ACEOF
9699 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9700   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9701   ac_status=$?
9702   grep -v '^ *+' conftest.er1 >conftest.err
9703   rm -f conftest.er1
9704   cat conftest.err >&5
9705   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9706   (exit $ac_status); } >/dev/null; then
9707   if test -s conftest.err; then
9708     ac_cpp_err=$ac_c_preproc_warn_flag
9709   else
9710     ac_cpp_err=
9711   fi
9712 else
9713   ac_cpp_err=yes
9714 fi
9715 if test -z "$ac_cpp_err"; then
9716   ac_header_preproc=yes
9717 else
9718   echo "$as_me: failed program was:" >&5
9719 sed 's/^/| /' conftest.$ac_ext >&5
9720
9721   ac_header_preproc=no
9722 fi
9723 rm -f conftest.err conftest.$ac_ext
9724 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9725 echo "${ECHO_T}$ac_header_preproc" >&6
9726
9727 # So?  What about this header?
9728 case $ac_header_compiler:$ac_header_preproc in
9729   yes:no )
9730     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9731 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9732     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9733 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9734     (
9735       cat <<\_ASBOX
9736 ## ------------------------------------ ##
9737 ## Report this to bug-autoconf@gnu.org. ##
9738 ## ------------------------------------ ##
9739 _ASBOX
9740     ) |
9741       sed "s/^/$as_me: WARNING:     /" >&2
9742     ;;
9743   no:yes )
9744     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9745 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9746     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9747 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9748     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9749 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9750     (
9751       cat <<\_ASBOX
9752 ## ------------------------------------ ##
9753 ## Report this to bug-autoconf@gnu.org. ##
9754 ## ------------------------------------ ##
9755 _ASBOX
9756     ) |
9757       sed "s/^/$as_me: WARNING:     /" >&2
9758     ;;
9759 esac
9760 echo "$as_me:$LINENO: checking for $ac_header" >&5
9761 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9762 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9763   echo $ECHO_N "(cached) $ECHO_C" >&6
9764 else
9765   eval "$as_ac_Header=$ac_header_preproc"
9766 fi
9767 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9768 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9769
9770 fi
9771 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9772   cat >>confdefs.h <<_ACEOF
9773 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9774 _ACEOF
9775
9776 fi
9777
9778 done
9779
9780         cat >conftest.$ac_ext <<_ACEOF
9781 #line $LINENO "configure"
9782 /* confdefs.h.  */
9783 _ACEOF
9784 cat confdefs.h >>conftest.$ac_ext
9785 cat >>conftest.$ac_ext <<_ACEOF
9786 /* end confdefs.h.  */
9787 #include <ft2build.h>
9788                     #include <freetype/fttrigon.h>
9789 _ACEOF
9790 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9791   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9792   ac_status=$?
9793   grep -v '^ *+' conftest.er1 >conftest.err
9794   rm -f conftest.er1
9795   cat conftest.err >&5
9796   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9797   (exit $ac_status); } >/dev/null; then
9798   if test -s conftest.err; then
9799     ac_cpp_err=$ac_c_preproc_warn_flag
9800   else
9801     ac_cpp_err=
9802   fi
9803 else
9804   ac_cpp_err=yes
9805 fi
9806 if test -z "$ac_cpp_err"; then
9807
9808 cat >>confdefs.h <<\_ACEOF
9809 #define HAVE_FREETYPE_FTTRIGON_H 1
9810 _ACEOF
9811
9812                     wine_cv_fttrigon=yes
9813 else
9814   echo "$as_me: failed program was:" >&5
9815 sed 's/^/| /' conftest.$ac_ext >&5
9816
9817   wine_cv_fttrigon=no
9818 fi
9819 rm -f conftest.err conftest.$ac_ext
9820         CPPFLAGS="$ac_save_CPPFLAGS"
9821                 if test "$ac_cv_header_freetype_freetype_h" = "yes" -a "$wine_cv_fttrigon" = "yes"
9822         then
9823
9824 cat >>confdefs.h <<\_ACEOF
9825 #define HAVE_FREETYPE 1
9826 _ACEOF
9827
9828             wine_cv_msg_freetype=no
9829         else
9830             FREETYPEINCL=""
9831             wine_cv_msg_freetype=yes
9832         fi
9833     fi
9834 fi
9835
9836
9837 echo "$as_me:$LINENO: checking for parport header/ppdev.h" >&5
9838 echo $ECHO_N "checking for parport header/ppdev.h... $ECHO_C" >&6
9839 if test "${ac_cv_c_ppdev+set}" = set; then
9840   echo $ECHO_N "(cached) $ECHO_C" >&6
9841 else
9842   cat >conftest.$ac_ext <<_ACEOF
9843 #line $LINENO "configure"
9844 /* confdefs.h.  */
9845 _ACEOF
9846 cat confdefs.h >>conftest.$ac_ext
9847 cat >>conftest.$ac_ext <<_ACEOF
9848 /* end confdefs.h.  */
9849 #include <linux/ppdev.h>
9850 int
9851 main ()
9852 {
9853 ioctl (1,PPCLAIM,0)
9854   ;
9855   return 0;
9856 }
9857 _ACEOF
9858 rm -f conftest.$ac_objext
9859 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9860   (eval $ac_compile) 2>&5
9861   ac_status=$?
9862   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9863   (exit $ac_status); } &&
9864          { ac_try='test -s conftest.$ac_objext'
9865   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9866   (eval $ac_try) 2>&5
9867   ac_status=$?
9868   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9869   (exit $ac_status); }; }; then
9870   ac_cv_c_ppdev="yes"
9871 else
9872   echo "$as_me: failed program was:" >&5
9873 sed 's/^/| /' conftest.$ac_ext >&5
9874
9875 ac_cv_c_ppdev="no"
9876 fi
9877 rm -f conftest.$ac_objext conftest.$ac_ext
9878
9879 fi
9880 echo "$as_me:$LINENO: result: $ac_cv_c_ppdev" >&5
9881 echo "${ECHO_T}$ac_cv_c_ppdev" >&6
9882 if test "$ac_cv_c_ppdev" = "yes"
9883 then
9884
9885 cat >>confdefs.h <<\_ACEOF
9886 #define HAVE_PPDEV 1
9887 _ACEOF
9888
9889 fi
9890
9891 echo "$as_me:$LINENO: checking for va_copy" >&5
9892 echo $ECHO_N "checking for va_copy... $ECHO_C" >&6
9893 if test "${ac_cv_c_va_copy+set}" = set; then
9894   echo $ECHO_N "(cached) $ECHO_C" >&6
9895 else
9896   cat >conftest.$ac_ext <<_ACEOF
9897 #line $LINENO "configure"
9898 /* confdefs.h.  */
9899 _ACEOF
9900 cat confdefs.h >>conftest.$ac_ext
9901 cat >>conftest.$ac_ext <<_ACEOF
9902 /* end confdefs.h.  */
9903 #include <stdarg.h>
9904 int
9905 main ()
9906 {
9907 va_list ap1, ap2;
9908     va_copy(ap1,ap2);
9909
9910   ;
9911   return 0;
9912 }
9913 _ACEOF
9914 rm -f conftest.$ac_objext conftest$ac_exeext
9915 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9916   (eval $ac_link) 2>&5
9917   ac_status=$?
9918   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9919   (exit $ac_status); } &&
9920          { ac_try='test -s conftest$ac_exeext'
9921   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9922   (eval $ac_try) 2>&5
9923   ac_status=$?
9924   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9925   (exit $ac_status); }; }; then
9926   ac_cv_c_va_copy="yes"
9927 else
9928   echo "$as_me: failed program was:" >&5
9929 sed 's/^/| /' conftest.$ac_ext >&5
9930
9931 ac_cv_c_va_copy="no"
9932 fi
9933 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9934
9935 fi
9936 echo "$as_me:$LINENO: result: $ac_cv_c_va_copy" >&5
9937 echo "${ECHO_T}$ac_cv_c_va_copy" >&6
9938 if test "$ac_cv_c_va_copy" = "yes"
9939 then
9940
9941 cat >>confdefs.h <<\_ACEOF
9942 #define HAVE_VA_COPY 1
9943 _ACEOF
9944
9945 fi
9946 echo "$as_me:$LINENO: checking for __va_copy" >&5
9947 echo $ECHO_N "checking for __va_copy... $ECHO_C" >&6
9948 if test "${ac_cv_c___va_copy+set}" = set; then
9949   echo $ECHO_N "(cached) $ECHO_C" >&6
9950 else
9951   cat >conftest.$ac_ext <<_ACEOF
9952 #line $LINENO "configure"
9953 /* confdefs.h.  */
9954 _ACEOF
9955 cat confdefs.h >>conftest.$ac_ext
9956 cat >>conftest.$ac_ext <<_ACEOF
9957 /* end confdefs.h.  */
9958 #include <stdarg.h>
9959 int
9960 main ()
9961 {
9962 va_list ap1, ap2;
9963     __va_copy(ap1,ap2);
9964
9965   ;
9966   return 0;
9967 }
9968 _ACEOF
9969 rm -f conftest.$ac_objext conftest$ac_exeext
9970 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9971   (eval $ac_link) 2>&5
9972   ac_status=$?
9973   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9974   (exit $ac_status); } &&
9975          { ac_try='test -s conftest$ac_exeext'
9976   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9977   (eval $ac_try) 2>&5
9978   ac_status=$?
9979   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9980   (exit $ac_status); }; }; then
9981   ac_cv_c___va_copy="yes"
9982 else
9983   echo "$as_me: failed program was:" >&5
9984 sed 's/^/| /' conftest.$ac_ext >&5
9985
9986 ac_cv_c___va_copy="no"
9987 fi
9988 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9989
9990 fi
9991 echo "$as_me:$LINENO: result: $ac_cv_c___va_copy" >&5
9992 echo "${ECHO_T}$ac_cv_c___va_copy" >&6
9993 if test "$ac_cv_c___va_copy" = "yes"
9994 then
9995
9996 cat >>confdefs.h <<\_ACEOF
9997 #define HAVE___VA_COPY 1
9998 _ACEOF
9999
10000 fi
10001
10002
10003
10004
10005 for ac_header in sys/soundcard.h machine/soundcard.h soundcard.h
10006 do
10007 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10008 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10009   echo "$as_me:$LINENO: checking for $ac_header" >&5
10010 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10011 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10012   echo $ECHO_N "(cached) $ECHO_C" >&6
10013 fi
10014 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10015 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10016 else
10017   # Is the header compilable?
10018 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10019 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10020 cat >conftest.$ac_ext <<_ACEOF
10021 #line $LINENO "configure"
10022 /* confdefs.h.  */
10023 _ACEOF
10024 cat confdefs.h >>conftest.$ac_ext
10025 cat >>conftest.$ac_ext <<_ACEOF
10026 /* end confdefs.h.  */
10027 $ac_includes_default
10028 #include <$ac_header>
10029 _ACEOF
10030 rm -f conftest.$ac_objext
10031 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10032   (eval $ac_compile) 2>&5
10033   ac_status=$?
10034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10035   (exit $ac_status); } &&
10036          { ac_try='test -s conftest.$ac_objext'
10037   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10038   (eval $ac_try) 2>&5
10039   ac_status=$?
10040   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10041   (exit $ac_status); }; }; then
10042   ac_header_compiler=yes
10043 else
10044   echo "$as_me: failed program was:" >&5
10045 sed 's/^/| /' conftest.$ac_ext >&5
10046
10047 ac_header_compiler=no
10048 fi
10049 rm -f conftest.$ac_objext conftest.$ac_ext
10050 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10051 echo "${ECHO_T}$ac_header_compiler" >&6
10052
10053 # Is the header present?
10054 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10055 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10056 cat >conftest.$ac_ext <<_ACEOF
10057 #line $LINENO "configure"
10058 /* confdefs.h.  */
10059 _ACEOF
10060 cat confdefs.h >>conftest.$ac_ext
10061 cat >>conftest.$ac_ext <<_ACEOF
10062 /* end confdefs.h.  */
10063 #include <$ac_header>
10064 _ACEOF
10065 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10066   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10067   ac_status=$?
10068   grep -v '^ *+' conftest.er1 >conftest.err
10069   rm -f conftest.er1
10070   cat conftest.err >&5
10071   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10072   (exit $ac_status); } >/dev/null; then
10073   if test -s conftest.err; then
10074     ac_cpp_err=$ac_c_preproc_warn_flag
10075   else
10076     ac_cpp_err=
10077   fi
10078 else
10079   ac_cpp_err=yes
10080 fi
10081 if test -z "$ac_cpp_err"; then
10082   ac_header_preproc=yes
10083 else
10084   echo "$as_me: failed program was:" >&5
10085 sed 's/^/| /' conftest.$ac_ext >&5
10086
10087   ac_header_preproc=no
10088 fi
10089 rm -f conftest.err conftest.$ac_ext
10090 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10091 echo "${ECHO_T}$ac_header_preproc" >&6
10092
10093 # So?  What about this header?
10094 case $ac_header_compiler:$ac_header_preproc in
10095   yes:no )
10096     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10097 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10098     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10099 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10100     (
10101       cat <<\_ASBOX
10102 ## ------------------------------------ ##
10103 ## Report this to bug-autoconf@gnu.org. ##
10104 ## ------------------------------------ ##
10105 _ASBOX
10106     ) |
10107       sed "s/^/$as_me: WARNING:     /" >&2
10108     ;;
10109   no:yes )
10110     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10111 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10112     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10113 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10114     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10115 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10116     (
10117       cat <<\_ASBOX
10118 ## ------------------------------------ ##
10119 ## Report this to bug-autoconf@gnu.org. ##
10120 ## ------------------------------------ ##
10121 _ASBOX
10122     ) |
10123       sed "s/^/$as_me: WARNING:     /" >&2
10124     ;;
10125 esac
10126 echo "$as_me:$LINENO: checking for $ac_header" >&5
10127 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10128 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10129   echo $ECHO_N "(cached) $ECHO_C" >&6
10130 else
10131   eval "$as_ac_Header=$ac_header_preproc"
10132 fi
10133 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10134 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10135
10136 fi
10137 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10138   cat >>confdefs.h <<_ACEOF
10139 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10140 _ACEOF
10141  break
10142 fi
10143
10144 done
10145
10146
10147 echo "$as_me:$LINENO: checking for Open Sound System" >&5
10148 echo $ECHO_N "checking for Open Sound System... $ECHO_C" >&6
10149 if test "${ac_cv_c_opensoundsystem+set}" = set; then
10150   echo $ECHO_N "(cached) $ECHO_C" >&6
10151 else
10152   cat >conftest.$ac_ext <<_ACEOF
10153 #line $LINENO "configure"
10154 /* confdefs.h.  */
10155 _ACEOF
10156 cat confdefs.h >>conftest.$ac_ext
10157 cat >>conftest.$ac_ext <<_ACEOF
10158 /* end confdefs.h.  */
10159
10160         #if defined(HAVE_SYS_SOUNDCARD_H)
10161                 #include <sys/soundcard.h>
10162         #elif defined(HAVE_MACHINE_SOUNDCARD_H)
10163                 #include <machine/soundcard.h>
10164         #elif defined(HAVE_SOUNDCARD_H)
10165                 #include <soundcard.h>
10166         #endif
10167
10168 int
10169 main ()
10170 {
10171
10172
10173 /* check for one of the Open Sound System specific SNDCTL_ defines */
10174 #if !defined(SNDCTL_DSP_STEREO)
10175 #error No open sound system
10176 #endif
10177
10178   ;
10179   return 0;
10180 }
10181 _ACEOF
10182 rm -f conftest.$ac_objext
10183 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10184   (eval $ac_compile) 2>&5
10185   ac_status=$?
10186   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10187   (exit $ac_status); } &&
10188          { ac_try='test -s conftest.$ac_objext'
10189   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10190   (eval $ac_try) 2>&5
10191   ac_status=$?
10192   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10193   (exit $ac_status); }; }; then
10194   ac_cv_c_opensoundsystem="yes"
10195 else
10196   echo "$as_me: failed program was:" >&5
10197 sed 's/^/| /' conftest.$ac_ext >&5
10198
10199 ac_cv_c_opensoundsystem="no"
10200 fi
10201 rm -f conftest.$ac_objext conftest.$ac_ext
10202 fi
10203 echo "$as_me:$LINENO: result: $ac_cv_c_opensoundsystem" >&5
10204 echo "${ECHO_T}$ac_cv_c_opensoundsystem" >&6
10205
10206 if test "$ac_cv_c_opensoundsystem" = "yes"
10207 then
10208
10209 cat >>confdefs.h <<\_ACEOF
10210 #define HAVE_OSS 1
10211 _ACEOF
10212
10213 fi
10214
10215 echo "$as_me:$LINENO: checking for Open Sound System/MIDI interface" >&5
10216 echo $ECHO_N "checking for Open Sound System/MIDI interface... $ECHO_C" >&6
10217 if test "${ac_cv_c_opensoundsystem_midi+set}" = set; then
10218   echo $ECHO_N "(cached) $ECHO_C" >&6
10219 else
10220   cat >conftest.$ac_ext <<_ACEOF
10221 #line $LINENO "configure"
10222 /* confdefs.h.  */
10223 _ACEOF
10224 cat confdefs.h >>conftest.$ac_ext
10225 cat >>conftest.$ac_ext <<_ACEOF
10226 /* end confdefs.h.  */
10227
10228         #if defined(HAVE_SYS_SOUNDCARD_H)
10229                 #include <sys/soundcard.h>
10230         #elif defined(HAVE_MACHINE_SOUNDCARD_H)
10231                 #include <machine/soundcard.h>
10232         #elif defined(HAVE_SOUNDCARD_H)
10233                 #include <soundcard.h>
10234         #endif
10235
10236 int
10237 main ()
10238 {
10239
10240
10241 /* check for one of the Open Sound System specific SNDCTL_SEQ defines */
10242 #if !defined(SNDCTL_SEQ_SYNC)
10243 #error No open sound system MIDI interface
10244 #endif
10245
10246   ;
10247   return 0;
10248 }
10249 _ACEOF
10250 rm -f conftest.$ac_objext
10251 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10252   (eval $ac_compile) 2>&5
10253   ac_status=$?
10254   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10255   (exit $ac_status); } &&
10256          { ac_try='test -s conftest.$ac_objext'
10257   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10258   (eval $ac_try) 2>&5
10259   ac_status=$?
10260   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10261   (exit $ac_status); }; }; then
10262   ac_cv_c_opensoundsystem_midi="yes"
10263 else
10264   echo "$as_me: failed program was:" >&5
10265 sed 's/^/| /' conftest.$ac_ext >&5
10266
10267 ac_cv_c_opensoundsystem_midi="no"
10268 fi
10269 rm -f conftest.$ac_objext conftest.$ac_ext
10270 fi
10271 echo "$as_me:$LINENO: result: $ac_cv_c_opensoundsystem_midi" >&5
10272 echo "${ECHO_T}$ac_cv_c_opensoundsystem_midi" >&6
10273
10274 if test "$ac_cv_c_opensoundsystem_midi" = "yes"
10275 then
10276
10277 cat >>confdefs.h <<\_ACEOF
10278 #define HAVE_OSS_MIDI 1
10279 _ACEOF
10280
10281 fi
10282
10283 # Extract the first word of "artsc-config", so it can be a program name with args.
10284 set dummy artsc-config; ac_word=$2
10285 echo "$as_me:$LINENO: checking for $ac_word" >&5
10286 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10287 if test "${ac_cv_path_ARTSCCONFIG+set}" = set; then
10288   echo $ECHO_N "(cached) $ECHO_C" >&6
10289 else
10290   case $ARTSCCONFIG in
10291   [\\/]* | ?:[\\/]*)
10292   ac_cv_path_ARTSCCONFIG="$ARTSCCONFIG" # Let the user override the test with a path.
10293   ;;
10294   *)
10295   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10296 for as_dir in $PATH
10297 do
10298   IFS=$as_save_IFS
10299   test -z "$as_dir" && as_dir=.
10300   for ac_exec_ext in '' $ac_executable_extensions; do
10301   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10302     ac_cv_path_ARTSCCONFIG="$as_dir/$ac_word$ac_exec_ext"
10303     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10304     break 2
10305   fi
10306 done
10307 done
10308
10309   ;;
10310 esac
10311 fi
10312 ARTSCCONFIG=$ac_cv_path_ARTSCCONFIG
10313
10314 if test -n "$ARTSCCONFIG"; then
10315   echo "$as_me:$LINENO: result: $ARTSCCONFIG" >&5
10316 echo "${ECHO_T}$ARTSCCONFIG" >&6
10317 else
10318   echo "$as_me:$LINENO: result: no" >&5
10319 echo "${ECHO_T}no" >&6
10320 fi
10321
10322 echo "$as_me:$LINENO: checking for aRts Sound server" >&5
10323 echo $ECHO_N "checking for aRts Sound server... $ECHO_C" >&6
10324 if test "${ac_cv_c_artsserver+set}" = set; then
10325   echo $ECHO_N "(cached) $ECHO_C" >&6
10326 else
10327   if test x$ARTSCCONFIG = x -o x$ARTSCCONFIG = x'"$ARTSCCONFIG"';
10328         then
10329             ac_cv_c_artsserver=no
10330         else
10331             ARTSC_CFLAGS=`$ARTSCCONFIG --cflags`
10332             ARTSC_LIBS=`$ARTSCCONFIG --libs`
10333             ac_cv_c_artsserver=no
10334             save_CFLAGS="$CFLAGS"
10335             CFLAGS="$CFLAGS $ARTSC_CFLAGS"
10336             cat >conftest.$ac_ext <<_ACEOF
10337 #line $LINENO "configure"
10338 /* confdefs.h.  */
10339 _ACEOF
10340 cat confdefs.h >>conftest.$ac_ext
10341 cat >>conftest.$ac_ext <<_ACEOF
10342 /* end confdefs.h.  */
10343
10344              #include <artsc.h>
10345
10346 int
10347 main ()
10348 {
10349
10350              arts_stream_t stream;
10351
10352   ;
10353   return 0;
10354 }
10355 _ACEOF
10356 rm -f conftest.$ac_objext
10357 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10358   (eval $ac_compile) 2>&5
10359   ac_status=$?
10360   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10361   (exit $ac_status); } &&
10362          { ac_try='test -s conftest.$ac_objext'
10363   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10364   (eval $ac_try) 2>&5
10365   ac_status=$?
10366   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10367   (exit $ac_status); }; }; then
10368
10369             ac_cv_c_artsserver=yes
10370
10371 else
10372   echo "$as_me: failed program was:" >&5
10373 sed 's/^/| /' conftest.$ac_ext >&5
10374
10375 fi
10376 rm -f conftest.$ac_objext conftest.$ac_ext
10377             CFLAGS="$save_CFLAGS"
10378         fi
10379 fi
10380 echo "$as_me:$LINENO: result: $ac_cv_c_artsserver" >&5
10381 echo "${ECHO_T}$ac_cv_c_artsserver" >&6
10382
10383 if test "$ac_cv_c_artsserver" = "yes"
10384 then
10385     ARTSLIBS=$ARTSC_LIBS
10386
10387     ARTSINCL=$ARTSC_CFLAGS
10388
10389
10390
10391 cat >>confdefs.h <<\_ACEOF
10392 #define HAVE_ARTS 1
10393 _ACEOF
10394
10395 fi
10396
10397 ALSALIBS=""
10398
10399
10400
10401 for ac_header in alsa/asoundlib.h sys/asoundlib.h
10402 do
10403 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10404 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10405   echo "$as_me:$LINENO: checking for $ac_header" >&5
10406 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10407 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10408   echo $ECHO_N "(cached) $ECHO_C" >&6
10409 fi
10410 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10411 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10412 else
10413   # Is the header compilable?
10414 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10415 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10416 cat >conftest.$ac_ext <<_ACEOF
10417 #line $LINENO "configure"
10418 /* confdefs.h.  */
10419 _ACEOF
10420 cat confdefs.h >>conftest.$ac_ext
10421 cat >>conftest.$ac_ext <<_ACEOF
10422 /* end confdefs.h.  */
10423 $ac_includes_default
10424 #include <$ac_header>
10425 _ACEOF
10426 rm -f conftest.$ac_objext
10427 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10428   (eval $ac_compile) 2>&5
10429   ac_status=$?
10430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10431   (exit $ac_status); } &&
10432          { ac_try='test -s conftest.$ac_objext'
10433   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10434   (eval $ac_try) 2>&5
10435   ac_status=$?
10436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10437   (exit $ac_status); }; }; then
10438   ac_header_compiler=yes
10439 else
10440   echo "$as_me: failed program was:" >&5
10441 sed 's/^/| /' conftest.$ac_ext >&5
10442
10443 ac_header_compiler=no
10444 fi
10445 rm -f conftest.$ac_objext conftest.$ac_ext
10446 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10447 echo "${ECHO_T}$ac_header_compiler" >&6
10448
10449 # Is the header present?
10450 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10451 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10452 cat >conftest.$ac_ext <<_ACEOF
10453 #line $LINENO "configure"
10454 /* confdefs.h.  */
10455 _ACEOF
10456 cat confdefs.h >>conftest.$ac_ext
10457 cat >>conftest.$ac_ext <<_ACEOF
10458 /* end confdefs.h.  */
10459 #include <$ac_header>
10460 _ACEOF
10461 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10462   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10463   ac_status=$?
10464   grep -v '^ *+' conftest.er1 >conftest.err
10465   rm -f conftest.er1
10466   cat conftest.err >&5
10467   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10468   (exit $ac_status); } >/dev/null; then
10469   if test -s conftest.err; then
10470     ac_cpp_err=$ac_c_preproc_warn_flag
10471   else
10472     ac_cpp_err=
10473   fi
10474 else
10475   ac_cpp_err=yes
10476 fi
10477 if test -z "$ac_cpp_err"; then
10478   ac_header_preproc=yes
10479 else
10480   echo "$as_me: failed program was:" >&5
10481 sed 's/^/| /' conftest.$ac_ext >&5
10482
10483   ac_header_preproc=no
10484 fi
10485 rm -f conftest.err conftest.$ac_ext
10486 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10487 echo "${ECHO_T}$ac_header_preproc" >&6
10488
10489 # So?  What about this header?
10490 case $ac_header_compiler:$ac_header_preproc in
10491   yes:no )
10492     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10493 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10494     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10495 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10496     (
10497       cat <<\_ASBOX
10498 ## ------------------------------------ ##
10499 ## Report this to bug-autoconf@gnu.org. ##
10500 ## ------------------------------------ ##
10501 _ASBOX
10502     ) |
10503       sed "s/^/$as_me: WARNING:     /" >&2
10504     ;;
10505   no:yes )
10506     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10507 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10508     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10509 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10510     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10511 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10512     (
10513       cat <<\_ASBOX
10514 ## ------------------------------------ ##
10515 ## Report this to bug-autoconf@gnu.org. ##
10516 ## ------------------------------------ ##
10517 _ASBOX
10518     ) |
10519       sed "s/^/$as_me: WARNING:     /" >&2
10520     ;;
10521 esac
10522 echo "$as_me:$LINENO: checking for $ac_header" >&5
10523 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10524 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10525   echo $ECHO_N "(cached) $ECHO_C" >&6
10526 else
10527   eval "$as_ac_Header=$ac_header_preproc"
10528 fi
10529 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10530 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10531
10532 fi
10533 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10534   cat >>confdefs.h <<_ACEOF
10535 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10536 _ACEOF
10537  break
10538 fi
10539
10540 done
10541
10542 if test "$ac_cv_header_sys_asoundlib_h" = "yes" -o "$ac_cv_header_alsa_asoundlib_h" = "yes"
10543 then
10544     echo "$as_me:$LINENO: checking for snd_pcm_open in -lasound" >&5
10545 echo $ECHO_N "checking for snd_pcm_open in -lasound... $ECHO_C" >&6
10546 if test "${ac_cv_lib_asound_snd_pcm_open+set}" = set; then
10547   echo $ECHO_N "(cached) $ECHO_C" >&6
10548 else
10549   ac_check_lib_save_LIBS=$LIBS
10550 LIBS="-lasound  $LIBS"
10551 cat >conftest.$ac_ext <<_ACEOF
10552 #line $LINENO "configure"
10553 /* confdefs.h.  */
10554 _ACEOF
10555 cat confdefs.h >>conftest.$ac_ext
10556 cat >>conftest.$ac_ext <<_ACEOF
10557 /* end confdefs.h.  */
10558
10559 /* Override any gcc2 internal prototype to avoid an error.  */
10560 #ifdef __cplusplus
10561 extern "C"
10562 #endif
10563 /* We use char because int might match the return type of a gcc2
10564    builtin and then its argument prototype would still apply.  */
10565 char snd_pcm_open ();
10566 int
10567 main ()
10568 {
10569 snd_pcm_open ();
10570   ;
10571   return 0;
10572 }
10573 _ACEOF
10574 rm -f conftest.$ac_objext conftest$ac_exeext
10575 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10576   (eval $ac_link) 2>&5
10577   ac_status=$?
10578   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10579   (exit $ac_status); } &&
10580          { ac_try='test -s conftest$ac_exeext'
10581   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10582   (eval $ac_try) 2>&5
10583   ac_status=$?
10584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10585   (exit $ac_status); }; }; then
10586   ac_cv_lib_asound_snd_pcm_open=yes
10587 else
10588   echo "$as_me: failed program was:" >&5
10589 sed 's/^/| /' conftest.$ac_ext >&5
10590
10591 ac_cv_lib_asound_snd_pcm_open=no
10592 fi
10593 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10594 LIBS=$ac_check_lib_save_LIBS
10595 fi
10596 echo "$as_me:$LINENO: result: $ac_cv_lib_asound_snd_pcm_open" >&5
10597 echo "${ECHO_T}$ac_cv_lib_asound_snd_pcm_open" >&6
10598 if test $ac_cv_lib_asound_snd_pcm_open = yes; then
10599
10600 cat >>confdefs.h <<\_ACEOF
10601 #define HAVE_ALSA 1
10602 _ACEOF
10603
10604         ALSALIBS="-lasound"
10605 fi
10606
10607 fi
10608
10609
10610 AUDIOIOLIBS=""
10611
10612
10613 for ac_header in libaudioio.h
10614 do
10615 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10616 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10617   echo "$as_me:$LINENO: checking for $ac_header" >&5
10618 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10619 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10620   echo $ECHO_N "(cached) $ECHO_C" >&6
10621 fi
10622 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10623 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10624 else
10625   # Is the header compilable?
10626 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10627 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10628 cat >conftest.$ac_ext <<_ACEOF
10629 #line $LINENO "configure"
10630 /* confdefs.h.  */
10631 _ACEOF
10632 cat confdefs.h >>conftest.$ac_ext
10633 cat >>conftest.$ac_ext <<_ACEOF
10634 /* end confdefs.h.  */
10635 $ac_includes_default
10636 #include <$ac_header>
10637 _ACEOF
10638 rm -f conftest.$ac_objext
10639 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10640   (eval $ac_compile) 2>&5
10641   ac_status=$?
10642   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10643   (exit $ac_status); } &&
10644          { ac_try='test -s conftest.$ac_objext'
10645   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10646   (eval $ac_try) 2>&5
10647   ac_status=$?
10648   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10649   (exit $ac_status); }; }; then
10650   ac_header_compiler=yes
10651 else
10652   echo "$as_me: failed program was:" >&5
10653 sed 's/^/| /' conftest.$ac_ext >&5
10654
10655 ac_header_compiler=no
10656 fi
10657 rm -f conftest.$ac_objext conftest.$ac_ext
10658 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10659 echo "${ECHO_T}$ac_header_compiler" >&6
10660
10661 # Is the header present?
10662 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10663 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10664 cat >conftest.$ac_ext <<_ACEOF
10665 #line $LINENO "configure"
10666 /* confdefs.h.  */
10667 _ACEOF
10668 cat confdefs.h >>conftest.$ac_ext
10669 cat >>conftest.$ac_ext <<_ACEOF
10670 /* end confdefs.h.  */
10671 #include <$ac_header>
10672 _ACEOF
10673 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10674   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10675   ac_status=$?
10676   grep -v '^ *+' conftest.er1 >conftest.err
10677   rm -f conftest.er1
10678   cat conftest.err >&5
10679   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10680   (exit $ac_status); } >/dev/null; then
10681   if test -s conftest.err; then
10682     ac_cpp_err=$ac_c_preproc_warn_flag
10683   else
10684     ac_cpp_err=
10685   fi
10686 else
10687   ac_cpp_err=yes
10688 fi
10689 if test -z "$ac_cpp_err"; then
10690   ac_header_preproc=yes
10691 else
10692   echo "$as_me: failed program was:" >&5
10693 sed 's/^/| /' conftest.$ac_ext >&5
10694
10695   ac_header_preproc=no
10696 fi
10697 rm -f conftest.err conftest.$ac_ext
10698 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10699 echo "${ECHO_T}$ac_header_preproc" >&6
10700
10701 # So?  What about this header?
10702 case $ac_header_compiler:$ac_header_preproc in
10703   yes:no )
10704     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10705 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10706     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10707 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10708     (
10709       cat <<\_ASBOX
10710 ## ------------------------------------ ##
10711 ## Report this to bug-autoconf@gnu.org. ##
10712 ## ------------------------------------ ##
10713 _ASBOX
10714     ) |
10715       sed "s/^/$as_me: WARNING:     /" >&2
10716     ;;
10717   no:yes )
10718     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10719 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10720     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10721 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10722     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10723 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10724     (
10725       cat <<\_ASBOX
10726 ## ------------------------------------ ##
10727 ## Report this to bug-autoconf@gnu.org. ##
10728 ## ------------------------------------ ##
10729 _ASBOX
10730     ) |
10731       sed "s/^/$as_me: WARNING:     /" >&2
10732     ;;
10733 esac
10734 echo "$as_me:$LINENO: checking for $ac_header" >&5
10735 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10736 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10737   echo $ECHO_N "(cached) $ECHO_C" >&6
10738 else
10739   eval "$as_ac_Header=$ac_header_preproc"
10740 fi
10741 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10742 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10743
10744 fi
10745 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10746   cat >>confdefs.h <<_ACEOF
10747 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10748 _ACEOF
10749  echo "$as_me:$LINENO: checking for AudioIOGetVersion in -laudioio" >&5
10750 echo $ECHO_N "checking for AudioIOGetVersion in -laudioio... $ECHO_C" >&6
10751 if test "${ac_cv_lib_audioio_AudioIOGetVersion+set}" = set; then
10752   echo $ECHO_N "(cached) $ECHO_C" >&6
10753 else
10754   ac_check_lib_save_LIBS=$LIBS
10755 LIBS="-laudioio  $LIBS"
10756 cat >conftest.$ac_ext <<_ACEOF
10757 #line $LINENO "configure"
10758 /* confdefs.h.  */
10759 _ACEOF
10760 cat confdefs.h >>conftest.$ac_ext
10761 cat >>conftest.$ac_ext <<_ACEOF
10762 /* end confdefs.h.  */
10763
10764 /* Override any gcc2 internal prototype to avoid an error.  */
10765 #ifdef __cplusplus
10766 extern "C"
10767 #endif
10768 /* We use char because int might match the return type of a gcc2
10769    builtin and then its argument prototype would still apply.  */
10770 char AudioIOGetVersion ();
10771 int
10772 main ()
10773 {
10774 AudioIOGetVersion ();
10775   ;
10776   return 0;
10777 }
10778 _ACEOF
10779 rm -f conftest.$ac_objext conftest$ac_exeext
10780 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10781   (eval $ac_link) 2>&5
10782   ac_status=$?
10783   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10784   (exit $ac_status); } &&
10785          { ac_try='test -s conftest$ac_exeext'
10786   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10787   (eval $ac_try) 2>&5
10788   ac_status=$?
10789   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10790   (exit $ac_status); }; }; then
10791   ac_cv_lib_audioio_AudioIOGetVersion=yes
10792 else
10793   echo "$as_me: failed program was:" >&5
10794 sed 's/^/| /' conftest.$ac_ext >&5
10795
10796 ac_cv_lib_audioio_AudioIOGetVersion=no
10797 fi
10798 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10799 LIBS=$ac_check_lib_save_LIBS
10800 fi
10801 echo "$as_me:$LINENO: result: $ac_cv_lib_audioio_AudioIOGetVersion" >&5
10802 echo "${ECHO_T}$ac_cv_lib_audioio_AudioIOGetVersion" >&6
10803 if test $ac_cv_lib_audioio_AudioIOGetVersion = yes; then
10804   AUDIOIOLIBS="-laudioio"
10805
10806 cat >>confdefs.h <<\_ACEOF
10807 #define HAVE_LIBAUDIOIO 1
10808 _ACEOF
10809
10810 fi
10811
10812 fi
10813
10814 done
10815
10816
10817
10818 echo "$as_me:$LINENO: checking whether mmap64 works defined as mmap" >&5
10819 echo $ECHO_N "checking whether mmap64 works defined as mmap... $ECHO_C" >&6
10820 if test "${ac_cv_mmap64_works+set}" = set; then
10821   echo $ECHO_N "(cached) $ECHO_C" >&6
10822 else
10823   if test "$cross_compiling" = yes; then
10824   ac_cv_mmap64_works="no"
10825 else
10826   cat >conftest.$ac_ext <<_ACEOF
10827 #line $LINENO "configure"
10828 /* confdefs.h.  */
10829 _ACEOF
10830 cat confdefs.h >>conftest.$ac_ext
10831 cat >>conftest.$ac_ext <<_ACEOF
10832 /* end confdefs.h.  */
10833
10834                 #define _FILE_OFFSET_BITS 64
10835                 #include <stdio.h>
10836                 #include <unistd.h>
10837                 #include <fcntl.h>
10838                 #include <sys/mman.h>
10839                 #include <errno.h>
10840
10841                 int main(int argc,char **argv) {
10842                         int fd = open("conftest.map",O_CREAT|O_RDWR,0600);
10843                         if (fd == -1) exit(1);
10844
10845                         unlink("conftest.map");
10846
10847                         write(fd,"test",4);
10848
10849                         if ((-1 == mmap(0,4,PROT_READ|PROT_WRITE,MAP_SHARED,fd,0)) &&
10850                             (errno == EINVAL)
10851                         ) {
10852                                 exit(1);
10853                         }
10854                         close(fd);
10855                         fprintf(stderr,"success!\n");
10856                         exit(0);
10857                 }
10858
10859
10860 _ACEOF
10861 rm -f conftest$ac_exeext
10862 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10863   (eval $ac_link) 2>&5
10864   ac_status=$?
10865   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10866   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10867   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10868   (eval $ac_try) 2>&5
10869   ac_status=$?
10870   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10871   (exit $ac_status); }; }; then
10872   ac_cv_mmap64_works="yes"
10873 else
10874   echo "$as_me: program exited with status $ac_status" >&5
10875 echo "$as_me: failed program was:" >&5
10876 sed 's/^/| /' conftest.$ac_ext >&5
10877
10878 ( exit $ac_status )
10879 ac_cv_mmap64_works="no"
10880 fi
10881 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10882 fi
10883 fi
10884 echo "$as_me:$LINENO: result: $ac_cv_mmap64_works" >&5
10885 echo "${ECHO_T}$ac_cv_mmap64_works" >&6
10886
10887 if test "$ac_cv_mmap64_works" = "yes"
10888 then
10889
10890 cat >>confdefs.h <<\_ACEOF
10891 #define _FILE_OFFSET_BITS 64
10892 _ACEOF
10893
10894 fi
10895
10896
10897 EXTRACFLAGS=""
10898
10899 if test "x${GCC}" = "xyes"
10900 then
10901   EXTRACFLAGS=-Wall
10902
10903     echo "$as_me:$LINENO: checking for gcc strength-reduce bug" >&5
10904 echo $ECHO_N "checking for gcc strength-reduce bug... $ECHO_C" >&6
10905 if test "${ac_cv_c_gcc_strength_bug+set}" = set; then
10906   echo $ECHO_N "(cached) $ECHO_C" >&6
10907 else
10908   if test "$cross_compiling" = yes; then
10909   ac_cv_c_gcc_strength_bug="yes"
10910 else
10911   cat >conftest.$ac_ext <<_ACEOF
10912 #line $LINENO "configure"
10913 /* confdefs.h.  */
10914 _ACEOF
10915 cat confdefs.h >>conftest.$ac_ext
10916 cat >>conftest.$ac_ext <<_ACEOF
10917 /* end confdefs.h.  */
10918
10919 int     L[4] = {0,1,2,3};
10920 int main(void) {
10921   static int Array[3];
10922   unsigned int B = 3;
10923   int i;
10924   for(i=0; i<B; i++) Array[i] = i - 3;
10925   for(i=0; i<4 - 1; i++) L[i] = L[i + 1];
10926   L[i] = 4;
10927
10928   exit( Array[1] != -2 || L[2] != 3);
10929 }
10930 _ACEOF
10931 rm -f conftest$ac_exeext
10932 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10933   (eval $ac_link) 2>&5
10934   ac_status=$?
10935   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10936   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10937   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10938   (eval $ac_try) 2>&5
10939   ac_status=$?
10940   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10941   (exit $ac_status); }; }; then
10942   ac_cv_c_gcc_strength_bug="no"
10943 else
10944   echo "$as_me: program exited with status $ac_status" >&5
10945 echo "$as_me: failed program was:" >&5
10946 sed 's/^/| /' conftest.$ac_ext >&5
10947
10948 ( exit $ac_status )
10949 ac_cv_c_gcc_strength_bug="yes"
10950 fi
10951 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10952 fi
10953 fi
10954 echo "$as_me:$LINENO: result: $ac_cv_c_gcc_strength_bug" >&5
10955 echo "${ECHO_T}$ac_cv_c_gcc_strength_bug" >&6
10956   if test "$ac_cv_c_gcc_strength_bug" = "yes"
10957   then
10958     EXTRACFLAGS="$EXTRACFLAGS -fno-strength-reduce"
10959   fi
10960
10961     echo "$as_me:$LINENO: checking for gcc -mpreferred-stack-boundary=2 support" >&5
10962 echo $ECHO_N "checking for gcc -mpreferred-stack-boundary=2 support... $ECHO_C" >&6
10963 if test "${ac_cv_c_gcc_stack_boundary+set}" = set; then
10964   echo $ECHO_N "(cached) $ECHO_C" >&6
10965 else
10966   ac_wine_try_cflags_saved=$CFLAGS
10967 CFLAGS="$CFLAGS -mpreferred-stack-boundary=2"
10968 cat >conftest.$ac_ext <<_ACEOF
10969 #line $LINENO "configure"
10970 /* confdefs.h.  */
10971 _ACEOF
10972 cat confdefs.h >>conftest.$ac_ext
10973 cat >>conftest.$ac_ext <<_ACEOF
10974 /* end confdefs.h.  */
10975
10976 int
10977 main ()
10978 {
10979
10980   ;
10981   return 0;
10982 }
10983 _ACEOF
10984 rm -f conftest.$ac_objext conftest$ac_exeext
10985 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10986   (eval $ac_link) 2>&5
10987   ac_status=$?
10988   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10989   (exit $ac_status); } &&
10990          { ac_try='test -s conftest$ac_exeext'
10991   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10992   (eval $ac_try) 2>&5
10993   ac_status=$?
10994   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10995   (exit $ac_status); }; }; then
10996   ac_cv_c_gcc_stack_boundary="yes"
10997 else
10998   echo "$as_me: failed program was:" >&5
10999 sed 's/^/| /' conftest.$ac_ext >&5
11000
11001 ac_cv_c_gcc_stack_boundary="no"
11002 fi
11003 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11004 CFLAGS=$ac_wine_try_cflags_saved
11005 fi
11006 echo "$as_me:$LINENO: result: $ac_cv_c_gcc_stack_boundary" >&5
11007 echo "${ECHO_T}$ac_cv_c_gcc_stack_boundary" >&6
11008   if test "$ac_cv_c_gcc_stack_boundary" = "yes"
11009   then
11010     EXTRACFLAGS="$EXTRACFLAGS -mpreferred-stack-boundary=2"
11011   fi
11012
11013     echo "$as_me:$LINENO: checking for gcc -gstabs+ support" >&5
11014 echo $ECHO_N "checking for gcc -gstabs+ support... $ECHO_C" >&6
11015 if test "${ac_cv_c_gcc_gstabs+set}" = set; then
11016   echo $ECHO_N "(cached) $ECHO_C" >&6
11017 else
11018   ac_wine_try_cflags_saved=$CFLAGS
11019 CFLAGS="$CFLAGS -gstabs+"
11020 cat >conftest.$ac_ext <<_ACEOF
11021 #line $LINENO "configure"
11022 /* confdefs.h.  */
11023 _ACEOF
11024 cat confdefs.h >>conftest.$ac_ext
11025 cat >>conftest.$ac_ext <<_ACEOF
11026 /* end confdefs.h.  */
11027
11028 int
11029 main ()
11030 {
11031
11032   ;
11033   return 0;
11034 }
11035 _ACEOF
11036 rm -f conftest.$ac_objext conftest$ac_exeext
11037 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11038   (eval $ac_link) 2>&5
11039   ac_status=$?
11040   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11041   (exit $ac_status); } &&
11042          { ac_try='test -s conftest$ac_exeext'
11043   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11044   (eval $ac_try) 2>&5
11045   ac_status=$?
11046   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11047   (exit $ac_status); }; }; then
11048   ac_cv_c_gcc_gstabs="yes"
11049 else
11050   echo "$as_me: failed program was:" >&5
11051 sed 's/^/| /' conftest.$ac_ext >&5
11052
11053 ac_cv_c_gcc_gstabs="no"
11054 fi
11055 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11056 CFLAGS=$ac_wine_try_cflags_saved
11057 fi
11058 echo "$as_me:$LINENO: result: $ac_cv_c_gcc_gstabs" >&5
11059 echo "${ECHO_T}$ac_cv_c_gcc_gstabs" >&6
11060   if test "$ac_cv_c_gcc_gstabs" = "yes"
11061   then
11062     EXTRACFLAGS="$EXTRACFLAGS -gstabs+"
11063   fi
11064
11065     saved_CFLAGS="$CFLAGS"
11066   CFLAGS="$CFLAGS -Wpointer-arith -Werror"
11067   echo "$as_me:$LINENO: checking for broken string.h that generates warnings" >&5
11068 echo $ECHO_N "checking for broken string.h that generates warnings... $ECHO_C" >&6
11069 if test "${ac_cv_c_string_h_warnings+set}" = set; then
11070   echo $ECHO_N "(cached) $ECHO_C" >&6
11071 else
11072   cat >conftest.$ac_ext <<_ACEOF
11073 #line $LINENO "configure"
11074 /* confdefs.h.  */
11075 _ACEOF
11076 cat confdefs.h >>conftest.$ac_ext
11077 cat >>conftest.$ac_ext <<_ACEOF
11078 /* end confdefs.h.  */
11079 #include <string.h>
11080 int
11081 main ()
11082 {
11083
11084   ;
11085   return 0;
11086 }
11087 _ACEOF
11088 rm -f conftest.$ac_objext
11089 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11090   (eval $ac_compile) 2>&5
11091   ac_status=$?
11092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11093   (exit $ac_status); } &&
11094          { ac_try='test -s conftest.$ac_objext'
11095   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11096   (eval $ac_try) 2>&5
11097   ac_status=$?
11098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11099   (exit $ac_status); }; }; then
11100   ac_cv_c_string_h_warnings=no
11101 else
11102   echo "$as_me: failed program was:" >&5
11103 sed 's/^/| /' conftest.$ac_ext >&5
11104
11105 ac_cv_c_string_h_warnings=yes
11106 fi
11107 rm -f conftest.$ac_objext conftest.$ac_ext
11108 fi
11109 echo "$as_me:$LINENO: result: $ac_cv_c_string_h_warnings" >&5
11110 echo "${ECHO_T}$ac_cv_c_string_h_warnings" >&6
11111   CFLAGS="$saved_CFLAGS"
11112   if test "$ac_cv_c_string_h_warnings" = "no"
11113   then
11114     EXTRACFLAGS="$EXTRACFLAGS -Wpointer-arith"
11115   fi
11116 fi
11117
11118
11119 echo "$as_me:$LINENO: checking how to define a function in assembly code" >&5
11120 echo $ECHO_N "checking how to define a function in assembly code... $ECHO_C" >&6
11121 if test "${ac_cv_asm_func_def+set}" = set; then
11122   echo $ECHO_N "(cached) $ECHO_C" >&6
11123 else
11124   cat >conftest.$ac_ext <<_ACEOF
11125 #line $LINENO "configure"
11126 /* confdefs.h.  */
11127 _ACEOF
11128 cat confdefs.h >>conftest.$ac_ext
11129 cat >>conftest.$ac_ext <<_ACEOF
11130 /* end confdefs.h.  */
11131 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"); }
11132
11133 int
11134 main ()
11135 {
11136
11137   ;
11138   return 0;
11139 }
11140 _ACEOF
11141 rm -f conftest.$ac_objext conftest$ac_exeext
11142 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11143   (eval $ac_link) 2>&5
11144   ac_status=$?
11145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11146   (exit $ac_status); } &&
11147          { ac_try='test -s conftest$ac_exeext'
11148   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11149   (eval $ac_try) 2>&5
11150   ac_status=$?
11151   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11152   (exit $ac_status); }; }; then
11153   ac_cv_asm_func_def=".def"
11154 else
11155   echo "$as_me: failed program was:" >&5
11156 sed 's/^/| /' conftest.$ac_ext >&5
11157
11158 cat >conftest.$ac_ext <<_ACEOF
11159 #line $LINENO "configure"
11160 /* confdefs.h.  */
11161 _ACEOF
11162 cat confdefs.h >>conftest.$ac_ext
11163 cat >>conftest.$ac_ext <<_ACEOF
11164 /* end confdefs.h.  */
11165 void ac_asm(void) { asm("\t.globl _ac_test\n\t.type _ac_test,@function\n_ac_test:\t.long 0"); }
11166
11167 int
11168 main ()
11169 {
11170
11171   ;
11172   return 0;
11173 }
11174 _ACEOF
11175 rm -f conftest.$ac_objext conftest$ac_exeext
11176 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11177   (eval $ac_link) 2>&5
11178   ac_status=$?
11179   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11180   (exit $ac_status); } &&
11181          { ac_try='test -s conftest$ac_exeext'
11182   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11183   (eval $ac_try) 2>&5
11184   ac_status=$?
11185   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11186   (exit $ac_status); }; }; then
11187   ac_cv_asm_func_def=".type @function"
11188 else
11189   echo "$as_me: failed program was:" >&5
11190 sed 's/^/| /' conftest.$ac_ext >&5
11191
11192 cat >conftest.$ac_ext <<_ACEOF
11193 #line $LINENO "configure"
11194 /* confdefs.h.  */
11195 _ACEOF
11196 cat confdefs.h >>conftest.$ac_ext
11197 cat >>conftest.$ac_ext <<_ACEOF
11198 /* end confdefs.h.  */
11199 void ac_asm(void) { asm("\t.globl _ac_test\n\t.type _ac_test,2\n_ac_test:\t.long 0"); }
11200
11201 int
11202 main ()
11203 {
11204
11205   ;
11206   return 0;
11207 }
11208 _ACEOF
11209 rm -f conftest.$ac_objext conftest$ac_exeext
11210 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11211   (eval $ac_link) 2>&5
11212   ac_status=$?
11213   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11214   (exit $ac_status); } &&
11215          { ac_try='test -s conftest$ac_exeext'
11216   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11217   (eval $ac_try) 2>&5
11218   ac_status=$?
11219   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11220   (exit $ac_status); }; }; then
11221   ac_cv_asm_func_def=".type 2"
11222 else
11223   echo "$as_me: failed program was:" >&5
11224 sed 's/^/| /' conftest.$ac_ext >&5
11225
11226 ac_cv_asm_func_def="unknown"
11227 fi
11228 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11229 fi
11230 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11231 fi
11232 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11233 fi
11234 echo "$as_me:$LINENO: result: $ac_cv_asm_func_def" >&5
11235 echo "${ECHO_T}$ac_cv_asm_func_def" >&6
11236
11237
11238
11239 case "$ac_cv_asm_func_def" in
11240   ".def")
11241      cat >>confdefs.h <<\_ACEOF
11242 #define __ASM_FUNC(name) ".def " __ASM_NAME(name) "; .scl 2; .type 32; .endef"
11243 _ACEOF
11244  ;;
11245   ".type @function")
11246      cat >>confdefs.h <<\_ACEOF
11247 #define __ASM_FUNC(name) ".type " __ASM_NAME(name) ",@function"
11248 _ACEOF
11249  ;;
11250   ".type 2")
11251      cat >>confdefs.h <<\_ACEOF
11252 #define __ASM_FUNC(name) ".type " __ASM_NAME(name) ",2"
11253 _ACEOF
11254  ;;
11255   *)
11256      cat >>confdefs.h <<\_ACEOF
11257 #define __ASM_FUNC(name) ""
11258 _ACEOF
11259  ;;
11260 esac
11261
11262
11263 echo "$as_me:$LINENO: checking whether external symbols need an underscore prefix" >&5
11264 echo $ECHO_N "checking whether external symbols need an underscore prefix... $ECHO_C" >&6
11265 if test "${ac_cv_c_extern_prefix+set}" = set; then
11266   echo $ECHO_N "(cached) $ECHO_C" >&6
11267 else
11268   cat >conftest.$ac_ext <<_ACEOF
11269 #line $LINENO "configure"
11270 /* confdefs.h.  */
11271 _ACEOF
11272 cat confdefs.h >>conftest.$ac_ext
11273 cat >>conftest.$ac_ext <<_ACEOF
11274 /* end confdefs.h.  */
11275 void ac_asm(void) { asm(".globl _ac_test\n_ac_test:\t.long 0"); }
11276 extern int ac_test;
11277 int
11278 main ()
11279 {
11280 if (ac_test) return 1
11281   ;
11282   return 0;
11283 }
11284 _ACEOF
11285 rm -f conftest.$ac_objext conftest$ac_exeext
11286 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11287   (eval $ac_link) 2>&5
11288   ac_status=$?
11289   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11290   (exit $ac_status); } &&
11291          { ac_try='test -s conftest$ac_exeext'
11292   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11293   (eval $ac_try) 2>&5
11294   ac_status=$?
11295   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11296   (exit $ac_status); }; }; then
11297   ac_cv_c_extern_prefix="yes"
11298 else
11299   echo "$as_me: failed program was:" >&5
11300 sed 's/^/| /' conftest.$ac_ext >&5
11301
11302 ac_cv_c_extern_prefix="no"
11303 fi
11304 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11305 fi
11306 echo "$as_me:$LINENO: result: $ac_cv_c_extern_prefix" >&5
11307 echo "${ECHO_T}$ac_cv_c_extern_prefix" >&6
11308
11309
11310
11311 if test "$ac_cv_c_extern_prefix" = "yes"
11312 then
11313   cat >>confdefs.h <<\_ACEOF
11314 #define __ASM_NAME(name) "_" name
11315 _ACEOF
11316
11317 else
11318   cat >>confdefs.h <<\_ACEOF
11319 #define __ASM_NAME(name) name
11320 _ACEOF
11321
11322 fi
11323
11324
11325 echo "$as_me:$LINENO: checking whether assembler accepts .string" >&5
11326 echo $ECHO_N "checking whether assembler accepts .string... $ECHO_C" >&6
11327 if test "${ac_cv_c_asm_string+set}" = set; then
11328   echo $ECHO_N "(cached) $ECHO_C" >&6
11329 else
11330   cat >conftest.$ac_ext <<_ACEOF
11331 #line $LINENO "configure"
11332 /* confdefs.h.  */
11333 _ACEOF
11334 cat confdefs.h >>conftest.$ac_ext
11335 cat >>conftest.$ac_ext <<_ACEOF
11336 /* end confdefs.h.  */
11337 void ac_asm(void) { asm(".data\n\t.string \"test\"\n\t.text"); }
11338
11339 int
11340 main ()
11341 {
11342
11343   ;
11344   return 0;
11345 }
11346 _ACEOF
11347 rm -f conftest.$ac_objext conftest$ac_exeext
11348 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11349   (eval $ac_link) 2>&5
11350   ac_status=$?
11351   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11352   (exit $ac_status); } &&
11353          { ac_try='test -s conftest$ac_exeext'
11354   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11355   (eval $ac_try) 2>&5
11356   ac_status=$?
11357   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11358   (exit $ac_status); }; }; then
11359   ac_cv_c_asm_string="yes"
11360 else
11361   echo "$as_me: failed program was:" >&5
11362 sed 's/^/| /' conftest.$ac_ext >&5
11363
11364 ac_cv_c_asm_string="no"
11365 fi
11366 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11367 fi
11368 echo "$as_me:$LINENO: result: $ac_cv_c_asm_string" >&5
11369 echo "${ECHO_T}$ac_cv_c_asm_string" >&6
11370 if test "$ac_cv_c_asm_string" = "yes"
11371 then
11372
11373 cat >>confdefs.h <<\_ACEOF
11374 #define __ASM_STRING ".string"
11375 _ACEOF
11376
11377 else
11378     echo "$as_me:$LINENO: checking whether assembler accepts .asciz" >&5
11379 echo $ECHO_N "checking whether assembler accepts .asciz... $ECHO_C" >&6
11380 if test "${ac_cv_c_asm_asciz+set}" = set; then
11381   echo $ECHO_N "(cached) $ECHO_C" >&6
11382 else
11383   cat >conftest.$ac_ext <<_ACEOF
11384 #line $LINENO "configure"
11385 /* confdefs.h.  */
11386 _ACEOF
11387 cat confdefs.h >>conftest.$ac_ext
11388 cat >>conftest.$ac_ext <<_ACEOF
11389 /* end confdefs.h.  */
11390 void ac_asm(void) { asm(".data\n\t.asciz \"test\"\n\t.text"); }
11391
11392 int
11393 main ()
11394 {
11395
11396   ;
11397   return 0;
11398 }
11399 _ACEOF
11400 rm -f conftest.$ac_objext conftest$ac_exeext
11401 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11402   (eval $ac_link) 2>&5
11403   ac_status=$?
11404   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11405   (exit $ac_status); } &&
11406          { ac_try='test -s conftest$ac_exeext'
11407   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11408   (eval $ac_try) 2>&5
11409   ac_status=$?
11410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11411   (exit $ac_status); }; }; then
11412   ac_cv_c_asm_asciz="yes"
11413 else
11414   echo "$as_me: failed program was:" >&5
11415 sed 's/^/| /' conftest.$ac_ext >&5
11416
11417 ac_cv_c_asm_asciz="no"
11418 fi
11419 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11420 fi
11421 echo "$as_me:$LINENO: result: $ac_cv_c_asm_asciz" >&5
11422 echo "${ECHO_T}$ac_cv_c_asm_asciz" >&6
11423     if test "$ac_cv_c_asm_asciz" = "yes"
11424     then
11425       cat >>confdefs.h <<\_ACEOF
11426 #define __ASM_STRING ".asciz"
11427 _ACEOF
11428
11429     else
11430       cat >>confdefs.h <<\_ACEOF
11431 #define __ASM_STRING ".ascii"
11432 _ACEOF
11433
11434     fi
11435 fi
11436
11437
11438 echo "$as_me:$LINENO: checking whether assembler accepts .short" >&5
11439 echo $ECHO_N "checking whether assembler accepts .short... $ECHO_C" >&6
11440 if test "${ac_cv_c_asm_short+set}" = set; then
11441   echo $ECHO_N "(cached) $ECHO_C" >&6
11442 else
11443   cat >conftest.$ac_ext <<_ACEOF
11444 #line $LINENO "configure"
11445 /* confdefs.h.  */
11446 _ACEOF
11447 cat confdefs.h >>conftest.$ac_ext
11448 cat >>conftest.$ac_ext <<_ACEOF
11449 /* end confdefs.h.  */
11450 void ac_asm(void) { asm(".data\n\t.short 1\n\t.text"); }
11451
11452 int
11453 main ()
11454 {
11455
11456   ;
11457   return 0;
11458 }
11459 _ACEOF
11460 rm -f conftest.$ac_objext conftest$ac_exeext
11461 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11462   (eval $ac_link) 2>&5
11463   ac_status=$?
11464   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11465   (exit $ac_status); } &&
11466          { ac_try='test -s conftest$ac_exeext'
11467   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11468   (eval $ac_try) 2>&5
11469   ac_status=$?
11470   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11471   (exit $ac_status); }; }; then
11472   ac_cv_c_asm_short="yes"
11473 else
11474   echo "$as_me: failed program was:" >&5
11475 sed 's/^/| /' conftest.$ac_ext >&5
11476
11477 ac_cv_c_asm_short="no"
11478 fi
11479 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11480 fi
11481 echo "$as_me:$LINENO: result: $ac_cv_c_asm_short" >&5
11482 echo "${ECHO_T}$ac_cv_c_asm_short" >&6
11483 if test "$ac_cv_c_asm_short" = "yes"
11484 then
11485
11486 cat >>confdefs.h <<\_ACEOF
11487 #define __ASM_SHORT ".short"
11488 _ACEOF
11489
11490 else
11491   cat >>confdefs.h <<\_ACEOF
11492 #define __ASM_SHORT ".half"
11493 _ACEOF
11494
11495 fi
11496
11497
11498 DLLEXT=""
11499
11500 DLLFLAGS="-D_REENTRANT"
11501
11502 DLLIBS=""
11503
11504 LDDLLFLAGS=""
11505
11506 LDSHARED=""
11507
11508 LIBEXT="so"
11509
11510 IMPLIBEXT="def"
11511
11512
11513 case $host_os in
11514   cygwin*|mingw32*)
11515     if test -n "$ac_tool_prefix"; then
11516   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
11517 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
11518 echo "$as_me:$LINENO: checking for $ac_word" >&5
11519 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11520 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
11521   echo $ECHO_N "(cached) $ECHO_C" >&6
11522 else
11523   if test -n "$DLLTOOL"; then
11524   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
11525 else
11526 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11527 for as_dir in $PATH
11528 do
11529   IFS=$as_save_IFS
11530   test -z "$as_dir" && as_dir=.
11531   for ac_exec_ext in '' $ac_executable_extensions; do
11532   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11533     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
11534     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11535     break 2
11536   fi
11537 done
11538 done
11539
11540 fi
11541 fi
11542 DLLTOOL=$ac_cv_prog_DLLTOOL
11543 if test -n "$DLLTOOL"; then
11544   echo "$as_me:$LINENO: result: $DLLTOOL" >&5
11545 echo "${ECHO_T}$DLLTOOL" >&6
11546 else
11547   echo "$as_me:$LINENO: result: no" >&5
11548 echo "${ECHO_T}no" >&6
11549 fi
11550
11551 fi
11552 if test -z "$ac_cv_prog_DLLTOOL"; then
11553   ac_ct_DLLTOOL=$DLLTOOL
11554   # Extract the first word of "dlltool", so it can be a program name with args.
11555 set dummy dlltool; ac_word=$2
11556 echo "$as_me:$LINENO: checking for $ac_word" >&5
11557 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11558 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
11559   echo $ECHO_N "(cached) $ECHO_C" >&6
11560 else
11561   if test -n "$ac_ct_DLLTOOL"; then
11562   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
11563 else
11564 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11565 for as_dir in $PATH
11566 do
11567   IFS=$as_save_IFS
11568   test -z "$as_dir" && as_dir=.
11569   for ac_exec_ext in '' $ac_executable_extensions; do
11570   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11571     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
11572     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11573     break 2
11574   fi
11575 done
11576 done
11577
11578   test -z "$ac_cv_prog_ac_ct_DLLTOOL" && ac_cv_prog_ac_ct_DLLTOOL="false"
11579 fi
11580 fi
11581 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
11582 if test -n "$ac_ct_DLLTOOL"; then
11583   echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
11584 echo "${ECHO_T}$ac_ct_DLLTOOL" >&6
11585 else
11586   echo "$as_me:$LINENO: result: no" >&5
11587 echo "${ECHO_T}no" >&6
11588 fi
11589
11590   DLLTOOL=$ac_ct_DLLTOOL
11591 else
11592   DLLTOOL="$ac_cv_prog_DLLTOOL"
11593 fi
11594
11595     if test -n "$ac_tool_prefix"; then
11596   # Extract the first word of "${ac_tool_prefix}dllwrap", so it can be a program name with args.
11597 set dummy ${ac_tool_prefix}dllwrap; ac_word=$2
11598 echo "$as_me:$LINENO: checking for $ac_word" >&5
11599 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11600 if test "${ac_cv_prog_DLLWRAP+set}" = set; then
11601   echo $ECHO_N "(cached) $ECHO_C" >&6
11602 else
11603   if test -n "$DLLWRAP"; then
11604   ac_cv_prog_DLLWRAP="$DLLWRAP" # Let the user override the test.
11605 else
11606 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11607 for as_dir in $PATH
11608 do
11609   IFS=$as_save_IFS
11610   test -z "$as_dir" && as_dir=.
11611   for ac_exec_ext in '' $ac_executable_extensions; do
11612   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11613     ac_cv_prog_DLLWRAP="${ac_tool_prefix}dllwrap"
11614     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11615     break 2
11616   fi
11617 done
11618 done
11619
11620 fi
11621 fi
11622 DLLWRAP=$ac_cv_prog_DLLWRAP
11623 if test -n "$DLLWRAP"; then
11624   echo "$as_me:$LINENO: result: $DLLWRAP" >&5
11625 echo "${ECHO_T}$DLLWRAP" >&6
11626 else
11627   echo "$as_me:$LINENO: result: no" >&5
11628 echo "${ECHO_T}no" >&6
11629 fi
11630
11631 fi
11632 if test -z "$ac_cv_prog_DLLWRAP"; then
11633   ac_ct_DLLWRAP=$DLLWRAP
11634   # Extract the first word of "dllwrap", so it can be a program name with args.
11635 set dummy dllwrap; ac_word=$2
11636 echo "$as_me:$LINENO: checking for $ac_word" >&5
11637 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11638 if test "${ac_cv_prog_ac_ct_DLLWRAP+set}" = set; then
11639   echo $ECHO_N "(cached) $ECHO_C" >&6
11640 else
11641   if test -n "$ac_ct_DLLWRAP"; then
11642   ac_cv_prog_ac_ct_DLLWRAP="$ac_ct_DLLWRAP" # Let the user override the test.
11643 else
11644 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11645 for as_dir in $PATH
11646 do
11647   IFS=$as_save_IFS
11648   test -z "$as_dir" && as_dir=.
11649   for ac_exec_ext in '' $ac_executable_extensions; do
11650   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11651     ac_cv_prog_ac_ct_DLLWRAP="dllwrap"
11652     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11653     break 2
11654   fi
11655 done
11656 done
11657
11658   test -z "$ac_cv_prog_ac_ct_DLLWRAP" && ac_cv_prog_ac_ct_DLLWRAP="false"
11659 fi
11660 fi
11661 ac_ct_DLLWRAP=$ac_cv_prog_ac_ct_DLLWRAP
11662 if test -n "$ac_ct_DLLWRAP"; then
11663   echo "$as_me:$LINENO: result: $ac_ct_DLLWRAP" >&5
11664 echo "${ECHO_T}$ac_ct_DLLWRAP" >&6
11665 else
11666   echo "$as_me:$LINENO: result: no" >&5
11667 echo "${ECHO_T}no" >&6
11668 fi
11669
11670   DLLWRAP=$ac_ct_DLLWRAP
11671 else
11672   DLLWRAP="$ac_cv_prog_DLLWRAP"
11673 fi
11674
11675     if test "$DLLWRAP" = "false"; then
11676       LIBEXT="a"
11677     else
11678             LIBEXT="dll"
11679     fi
11680     IMPLIBEXT="a"
11681     ;;
11682   *)
11683
11684 for ac_header in dlfcn.h
11685 do
11686 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11687 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11688   echo "$as_me:$LINENO: checking for $ac_header" >&5
11689 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11690 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11691   echo $ECHO_N "(cached) $ECHO_C" >&6
11692 fi
11693 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11694 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11695 else
11696   # Is the header compilable?
11697 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11698 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11699 cat >conftest.$ac_ext <<_ACEOF
11700 #line $LINENO "configure"
11701 /* confdefs.h.  */
11702 _ACEOF
11703 cat confdefs.h >>conftest.$ac_ext
11704 cat >>conftest.$ac_ext <<_ACEOF
11705 /* end confdefs.h.  */
11706 $ac_includes_default
11707 #include <$ac_header>
11708 _ACEOF
11709 rm -f conftest.$ac_objext
11710 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11711   (eval $ac_compile) 2>&5
11712   ac_status=$?
11713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11714   (exit $ac_status); } &&
11715          { ac_try='test -s conftest.$ac_objext'
11716   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11717   (eval $ac_try) 2>&5
11718   ac_status=$?
11719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11720   (exit $ac_status); }; }; then
11721   ac_header_compiler=yes
11722 else
11723   echo "$as_me: failed program was:" >&5
11724 sed 's/^/| /' conftest.$ac_ext >&5
11725
11726 ac_header_compiler=no
11727 fi
11728 rm -f conftest.$ac_objext conftest.$ac_ext
11729 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11730 echo "${ECHO_T}$ac_header_compiler" >&6
11731
11732 # Is the header present?
11733 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11734 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11735 cat >conftest.$ac_ext <<_ACEOF
11736 #line $LINENO "configure"
11737 /* confdefs.h.  */
11738 _ACEOF
11739 cat confdefs.h >>conftest.$ac_ext
11740 cat >>conftest.$ac_ext <<_ACEOF
11741 /* end confdefs.h.  */
11742 #include <$ac_header>
11743 _ACEOF
11744 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11745   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11746   ac_status=$?
11747   grep -v '^ *+' conftest.er1 >conftest.err
11748   rm -f conftest.er1
11749   cat conftest.err >&5
11750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11751   (exit $ac_status); } >/dev/null; then
11752   if test -s conftest.err; then
11753     ac_cpp_err=$ac_c_preproc_warn_flag
11754   else
11755     ac_cpp_err=
11756   fi
11757 else
11758   ac_cpp_err=yes
11759 fi
11760 if test -z "$ac_cpp_err"; then
11761   ac_header_preproc=yes
11762 else
11763   echo "$as_me: failed program was:" >&5
11764 sed 's/^/| /' conftest.$ac_ext >&5
11765
11766   ac_header_preproc=no
11767 fi
11768 rm -f conftest.err conftest.$ac_ext
11769 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11770 echo "${ECHO_T}$ac_header_preproc" >&6
11771
11772 # So?  What about this header?
11773 case $ac_header_compiler:$ac_header_preproc in
11774   yes:no )
11775     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11776 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11777     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11778 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11779     (
11780       cat <<\_ASBOX
11781 ## ------------------------------------ ##
11782 ## Report this to bug-autoconf@gnu.org. ##
11783 ## ------------------------------------ ##
11784 _ASBOX
11785     ) |
11786       sed "s/^/$as_me: WARNING:     /" >&2
11787     ;;
11788   no:yes )
11789     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11790 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11791     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11792 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11793     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11794 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11795     (
11796       cat <<\_ASBOX
11797 ## ------------------------------------ ##
11798 ## Report this to bug-autoconf@gnu.org. ##
11799 ## ------------------------------------ ##
11800 _ASBOX
11801     ) |
11802       sed "s/^/$as_me: WARNING:     /" >&2
11803     ;;
11804 esac
11805 echo "$as_me:$LINENO: checking for $ac_header" >&5
11806 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11807 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11808   echo $ECHO_N "(cached) $ECHO_C" >&6
11809 else
11810   eval "$as_ac_Header=$ac_header_preproc"
11811 fi
11812 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11813 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11814
11815 fi
11816 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11817   cat >>confdefs.h <<_ACEOF
11818 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11819 _ACEOF
11820
11821 for ac_func in dlopen
11822 do
11823 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11824 echo "$as_me:$LINENO: checking for $ac_func" >&5
11825 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11826 if eval "test \"\${$as_ac_var+set}\" = set"; then
11827   echo $ECHO_N "(cached) $ECHO_C" >&6
11828 else
11829   cat >conftest.$ac_ext <<_ACEOF
11830 #line $LINENO "configure"
11831 /* confdefs.h.  */
11832 _ACEOF
11833 cat confdefs.h >>conftest.$ac_ext
11834 cat >>conftest.$ac_ext <<_ACEOF
11835 /* end confdefs.h.  */
11836 /* System header to define __stub macros and hopefully few prototypes,
11837     which can conflict with char $ac_func (); below.
11838     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11839     <limits.h> exists even on freestanding compilers.  */
11840 #ifdef __STDC__
11841 # include <limits.h>
11842 #else
11843 # include <assert.h>
11844 #endif
11845 /* Override any gcc2 internal prototype to avoid an error.  */
11846 #ifdef __cplusplus
11847 extern "C"
11848 {
11849 #endif
11850 /* We use char because int might match the return type of a gcc2
11851    builtin and then its argument prototype would still apply.  */
11852 char $ac_func ();
11853 /* The GNU C library defines this for functions which it implements
11854     to always fail with ENOSYS.  Some functions are actually named
11855     something starting with __ and the normal name is an alias.  */
11856 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11857 choke me
11858 #else
11859 char (*f) () = $ac_func;
11860 #endif
11861 #ifdef __cplusplus
11862 }
11863 #endif
11864
11865 int
11866 main ()
11867 {
11868 return f != $ac_func;
11869   ;
11870   return 0;
11871 }
11872 _ACEOF
11873 rm -f conftest.$ac_objext conftest$ac_exeext
11874 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11875   (eval $ac_link) 2>&5
11876   ac_status=$?
11877   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11878   (exit $ac_status); } &&
11879          { ac_try='test -s conftest$ac_exeext'
11880   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11881   (eval $ac_try) 2>&5
11882   ac_status=$?
11883   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11884   (exit $ac_status); }; }; then
11885   eval "$as_ac_var=yes"
11886 else
11887   echo "$as_me: failed program was:" >&5
11888 sed 's/^/| /' conftest.$ac_ext >&5
11889
11890 eval "$as_ac_var=no"
11891 fi
11892 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11893 fi
11894 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11895 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11896 if test `eval echo '${'$as_ac_var'}'` = yes; then
11897   cat >>confdefs.h <<_ACEOF
11898 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11899 _ACEOF
11900
11901 else
11902   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11903 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11904 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11905   echo $ECHO_N "(cached) $ECHO_C" >&6
11906 else
11907   ac_check_lib_save_LIBS=$LIBS
11908 LIBS="-ldl  $LIBS"
11909 cat >conftest.$ac_ext <<_ACEOF
11910 #line $LINENO "configure"
11911 /* confdefs.h.  */
11912 _ACEOF
11913 cat confdefs.h >>conftest.$ac_ext
11914 cat >>conftest.$ac_ext <<_ACEOF
11915 /* end confdefs.h.  */
11916
11917 /* Override any gcc2 internal prototype to avoid an error.  */
11918 #ifdef __cplusplus
11919 extern "C"
11920 #endif
11921 /* We use char because int might match the return type of a gcc2
11922    builtin and then its argument prototype would still apply.  */
11923 char dlopen ();
11924 int
11925 main ()
11926 {
11927 dlopen ();
11928   ;
11929   return 0;
11930 }
11931 _ACEOF
11932 rm -f conftest.$ac_objext conftest$ac_exeext
11933 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11934   (eval $ac_link) 2>&5
11935   ac_status=$?
11936   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11937   (exit $ac_status); } &&
11938          { ac_try='test -s conftest$ac_exeext'
11939   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11940   (eval $ac_try) 2>&5
11941   ac_status=$?
11942   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11943   (exit $ac_status); }; }; then
11944   ac_cv_lib_dl_dlopen=yes
11945 else
11946   echo "$as_me: failed program was:" >&5
11947 sed 's/^/| /' conftest.$ac_ext >&5
11948
11949 ac_cv_lib_dl_dlopen=no
11950 fi
11951 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11952 LIBS=$ac_check_lib_save_LIBS
11953 fi
11954 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11955 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11956 if test $ac_cv_lib_dl_dlopen = yes; then
11957
11958 cat >>confdefs.h <<\_ACEOF
11959 #define HAVE_DLOPEN 1
11960 _ACEOF
11961
11962                           DLLIBS="-ldl"
11963 else
11964   LIBEXT="a"
11965 fi
11966
11967 fi
11968 done
11969
11970 else
11971   LIBEXT="a"
11972 fi
11973
11974 done
11975
11976
11977     if test "$LIBEXT" = "so"
11978     then
11979       DLLFLAGS="$DLLFLAGS -fPIC"
11980       DLLEXT=".so"
11981       echo "$as_me:$LINENO: checking whether we can build a GNU style ELF dll" >&5
11982 echo $ECHO_N "checking whether we can build a GNU style ELF dll... $ECHO_C" >&6
11983 if test "${ac_cv_c_dll_gnuelf+set}" = set; then
11984   echo $ECHO_N "(cached) $ECHO_C" >&6
11985 else
11986   ac_wine_try_cflags_saved=$CFLAGS
11987 CFLAGS="$CFLAGS -fPIC -shared -Wl,-soname,conftest.so.1.0,-Bsymbolic"
11988 cat >conftest.$ac_ext <<_ACEOF
11989 #line $LINENO "configure"
11990 /* confdefs.h.  */
11991 _ACEOF
11992 cat confdefs.h >>conftest.$ac_ext
11993 cat >>conftest.$ac_ext <<_ACEOF
11994 /* end confdefs.h.  */
11995
11996 int
11997 main ()
11998 {
11999
12000   ;
12001   return 0;
12002 }
12003 _ACEOF
12004 rm -f conftest.$ac_objext conftest$ac_exeext
12005 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12006   (eval $ac_link) 2>&5
12007   ac_status=$?
12008   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12009   (exit $ac_status); } &&
12010          { ac_try='test -s conftest$ac_exeext'
12011   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12012   (eval $ac_try) 2>&5
12013   ac_status=$?
12014   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12015   (exit $ac_status); }; }; then
12016   ac_cv_c_dll_gnuelf="yes"
12017 else
12018   echo "$as_me: failed program was:" >&5
12019 sed 's/^/| /' conftest.$ac_ext >&5
12020
12021 ac_cv_c_dll_gnuelf="no"
12022 fi
12023 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12024 CFLAGS=$ac_wine_try_cflags_saved
12025 fi
12026 echo "$as_me:$LINENO: result: $ac_cv_c_dll_gnuelf" >&5
12027 echo "${ECHO_T}$ac_cv_c_dll_gnuelf" >&6
12028       if test "$ac_cv_c_dll_gnuelf" = "yes"
12029       then
12030         LDSHARED="\$(CC) -shared \$(SONAME:%=-Wl,-soname,%)"
12031         LDDLLFLAGS="-Wl,-Bsymbolic"
12032         echo "$as_me:$LINENO: checking whether the linker accepts -z defs" >&5
12033 echo $ECHO_N "checking whether the linker accepts -z defs... $ECHO_C" >&6
12034 if test "${ac_cv_c_dll_zdefs+set}" = set; then
12035   echo $ECHO_N "(cached) $ECHO_C" >&6
12036 else
12037   ac_wine_try_cflags_saved=$CFLAGS
12038 CFLAGS="$CFLAGS -fPIC -shared -Wl,-Bsymbolic,-z,defs"
12039 cat >conftest.$ac_ext <<_ACEOF
12040 #line $LINENO "configure"
12041 /* confdefs.h.  */
12042 _ACEOF
12043 cat confdefs.h >>conftest.$ac_ext
12044 cat >>conftest.$ac_ext <<_ACEOF
12045 /* end confdefs.h.  */
12046
12047 int
12048 main ()
12049 {
12050
12051   ;
12052   return 0;
12053 }
12054 _ACEOF
12055 rm -f conftest.$ac_objext conftest$ac_exeext
12056 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12057   (eval $ac_link) 2>&5
12058   ac_status=$?
12059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12060   (exit $ac_status); } &&
12061          { ac_try='test -s conftest$ac_exeext'
12062   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12063   (eval $ac_try) 2>&5
12064   ac_status=$?
12065   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12066   (exit $ac_status); }; }; then
12067   ac_cv_c_dll_zdefs="yes"
12068 else
12069   echo "$as_me: failed program was:" >&5
12070 sed 's/^/| /' conftest.$ac_ext >&5
12071
12072 ac_cv_c_dll_zdefs="no"
12073 fi
12074 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12075 CFLAGS=$ac_wine_try_cflags_saved
12076 fi
12077 echo "$as_me:$LINENO: result: $ac_cv_c_dll_zdefs" >&5
12078 echo "${ECHO_T}$ac_cv_c_dll_zdefs" >&6
12079         if test "$ac_cv_c_dll_zdefs" = "yes"
12080         then
12081           LDDLLFLAGS="$LDDLLFLAGS,-z,defs"
12082         fi
12083         echo "$as_me:$LINENO: checking whether we can relocate the executable to 0x3c000000" >&5
12084 echo $ECHO_N "checking whether we can relocate the executable to 0x3c000000... $ECHO_C" >&6
12085 if test "${ac_cv_ld_reloc_exec+set}" = set; then
12086   echo $ECHO_N "(cached) $ECHO_C" >&6
12087 else
12088   saved_CFLAGS="$CFLAGS"
12089            CFLAGS="$CFLAGS -Wl,--section-start,.interp=0x3c000100"
12090            if test "$cross_compiling" = yes; then
12091   ac_cv_ld_reloc_exec="no"
12092 else
12093   cat >conftest.$ac_ext <<_ACEOF
12094 #line $LINENO "configure"
12095 /* confdefs.h.  */
12096 _ACEOF
12097 cat confdefs.h >>conftest.$ac_ext
12098 cat >>conftest.$ac_ext <<_ACEOF
12099 /* end confdefs.h.  */
12100 #include <unistd.h>
12101                        int main() { return (sbrk(32*1024*1024) == (void *)-1); }
12102 _ACEOF
12103 rm -f conftest$ac_exeext
12104 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12105   (eval $ac_link) 2>&5
12106   ac_status=$?
12107   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12108   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12109   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12110   (eval $ac_try) 2>&5
12111   ac_status=$?
12112   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12113   (exit $ac_status); }; }; then
12114   ac_cv_ld_reloc_exec="yes"
12115 else
12116   echo "$as_me: program exited with status $ac_status" >&5
12117 echo "$as_me: failed program was:" >&5
12118 sed 's/^/| /' conftest.$ac_ext >&5
12119
12120 ( exit $ac_status )
12121 ac_cv_ld_reloc_exec="no"
12122 fi
12123 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12124 fi
12125            CFLAGS="$saved_CFLAGS"
12126 fi
12127 echo "$as_me:$LINENO: result: $ac_cv_ld_reloc_exec" >&5
12128 echo "${ECHO_T}$ac_cv_ld_reloc_exec" >&6
12129         if test "$ac_cv_ld_reloc_exec" = "yes"
12130         then
12131           LDEXECFLAGS="-Wl,--section-start,.interp=0x3c000100"
12132
12133         fi
12134       else
12135         echo "$as_me:$LINENO: checking whether we can build a UnixWare (Solaris) dll" >&5
12136 echo $ECHO_N "checking whether we can build a UnixWare (Solaris) dll... $ECHO_C" >&6
12137 if test "${ac_cv_c_dll_unixware+set}" = set; then
12138   echo $ECHO_N "(cached) $ECHO_C" >&6
12139 else
12140   ac_wine_try_cflags_saved=$CFLAGS
12141 CFLAGS="$CFLAGS -fPIC -Wl,-G,-h,conftest.so.1.0,-B,symbolic"
12142 cat >conftest.$ac_ext <<_ACEOF
12143 #line $LINENO "configure"
12144 /* confdefs.h.  */
12145 _ACEOF
12146 cat confdefs.h >>conftest.$ac_ext
12147 cat >>conftest.$ac_ext <<_ACEOF
12148 /* end confdefs.h.  */
12149
12150 int
12151 main ()
12152 {
12153
12154   ;
12155   return 0;
12156 }
12157 _ACEOF
12158 rm -f conftest.$ac_objext conftest$ac_exeext
12159 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12160   (eval $ac_link) 2>&5
12161   ac_status=$?
12162   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12163   (exit $ac_status); } &&
12164          { ac_try='test -s conftest$ac_exeext'
12165   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12166   (eval $ac_try) 2>&5
12167   ac_status=$?
12168   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12169   (exit $ac_status); }; }; then
12170   ac_cv_c_dll_unixware="yes"
12171 else
12172   echo "$as_me: failed program was:" >&5
12173 sed 's/^/| /' conftest.$ac_ext >&5
12174
12175 ac_cv_c_dll_unixware="no"
12176 fi
12177 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12178 CFLAGS=$ac_wine_try_cflags_saved
12179 fi
12180 echo "$as_me:$LINENO: result: $ac_cv_c_dll_unixware" >&5
12181 echo "${ECHO_T}$ac_cv_c_dll_unixware" >&6
12182         if test "$ac_cv_c_dll_unixware" = "yes"
12183         then
12184           LDSHARED="\$(CC) -Wl,-G \$(SONAME:%=-Wl,-h,%)"
12185           LDDLLFLAGS="-Wl,-B,symbolic"
12186         fi
12187       fi
12188     fi
12189
12190         CROSSTEST=""
12191
12192     if test "$cross_compiling" = "no"
12193     then
12194       for ac_prog in i586-mingw32msvc-gcc i386-mingw32-gcc
12195 do
12196   # Extract the first word of "$ac_prog", so it can be a program name with args.
12197 set dummy $ac_prog; ac_word=$2
12198 echo "$as_me:$LINENO: checking for $ac_word" >&5
12199 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12200 if test "${ac_cv_prog_CROSSCC+set}" = set; then
12201   echo $ECHO_N "(cached) $ECHO_C" >&6
12202 else
12203   if test -n "$CROSSCC"; then
12204   ac_cv_prog_CROSSCC="$CROSSCC" # Let the user override the test.
12205 else
12206 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12207 for as_dir in $PATH
12208 do
12209   IFS=$as_save_IFS
12210   test -z "$as_dir" && as_dir=.
12211   for ac_exec_ext in '' $ac_executable_extensions; do
12212   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12213     ac_cv_prog_CROSSCC="$ac_prog"
12214     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12215     break 2
12216   fi
12217 done
12218 done
12219
12220 fi
12221 fi
12222 CROSSCC=$ac_cv_prog_CROSSCC
12223 if test -n "$CROSSCC"; then
12224   echo "$as_me:$LINENO: result: $CROSSCC" >&5
12225 echo "${ECHO_T}$CROSSCC" >&6
12226 else
12227   echo "$as_me:$LINENO: result: no" >&5
12228 echo "${ECHO_T}no" >&6
12229 fi
12230
12231   test -n "$CROSSCC" && break
12232 done
12233 test -n "$CROSSCC" || CROSSCC="false"
12234
12235       for ac_prog in i586-mingw32msvc-dlltool i386-mingw32-dlltool
12236 do
12237   # Extract the first word of "$ac_prog", so it can be a program name with args.
12238 set dummy $ac_prog; ac_word=$2
12239 echo "$as_me:$LINENO: checking for $ac_word" >&5
12240 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12241 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
12242   echo $ECHO_N "(cached) $ECHO_C" >&6
12243 else
12244   if test -n "$DLLTOOL"; then
12245   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
12246 else
12247 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12248 for as_dir in $PATH
12249 do
12250   IFS=$as_save_IFS
12251   test -z "$as_dir" && as_dir=.
12252   for ac_exec_ext in '' $ac_executable_extensions; do
12253   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12254     ac_cv_prog_DLLTOOL="$ac_prog"
12255     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12256     break 2
12257   fi
12258 done
12259 done
12260
12261 fi
12262 fi
12263 DLLTOOL=$ac_cv_prog_DLLTOOL
12264 if test -n "$DLLTOOL"; then
12265   echo "$as_me:$LINENO: result: $DLLTOOL" >&5
12266 echo "${ECHO_T}$DLLTOOL" >&6
12267 else
12268   echo "$as_me:$LINENO: result: no" >&5
12269 echo "${ECHO_T}no" >&6
12270 fi
12271
12272   test -n "$DLLTOOL" && break
12273 done
12274 test -n "$DLLTOOL" || DLLTOOL="false"
12275
12276       for ac_prog in i586-mingw32msvc-windres i386-mingw32-windres
12277 do
12278   # Extract the first word of "$ac_prog", so it can be a program name with args.
12279 set dummy $ac_prog; ac_word=$2
12280 echo "$as_me:$LINENO: checking for $ac_word" >&5
12281 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12282 if test "${ac_cv_prog_CROSSWINDRES+set}" = set; then
12283   echo $ECHO_N "(cached) $ECHO_C" >&6
12284 else
12285   if test -n "$CROSSWINDRES"; then
12286   ac_cv_prog_CROSSWINDRES="$CROSSWINDRES" # Let the user override the test.
12287 else
12288 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12289 for as_dir in $PATH
12290 do
12291   IFS=$as_save_IFS
12292   test -z "$as_dir" && as_dir=.
12293   for ac_exec_ext in '' $ac_executable_extensions; do
12294   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12295     ac_cv_prog_CROSSWINDRES="$ac_prog"
12296     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12297     break 2
12298   fi
12299 done
12300 done
12301
12302 fi
12303 fi
12304 CROSSWINDRES=$ac_cv_prog_CROSSWINDRES
12305 if test -n "$CROSSWINDRES"; then
12306   echo "$as_me:$LINENO: result: $CROSSWINDRES" >&5
12307 echo "${ECHO_T}$CROSSWINDRES" >&6
12308 else
12309   echo "$as_me:$LINENO: result: no" >&5
12310 echo "${ECHO_T}no" >&6
12311 fi
12312
12313   test -n "$CROSSWINDRES" && break
12314 done
12315 test -n "$CROSSWINDRES" || CROSSWINDRES="false"
12316
12317       if test "$CROSSCC" != "false"; then CROSSTEST="\$(CROSSTEST)"; fi
12318     fi
12319     ;;
12320 esac
12321
12322 if test "$LIBEXT" = "a"; then
12323   { { echo "$as_me:$LINENO: error: could not find a way to build shared libraries.
12324 It is currently not possible to build Wine without shared library
12325 (.so) support to allow transparent switch between .so and .dll files.
12326 If you are using Linux, you will need a newer binutils.
12327 " >&5
12328 echo "$as_me: error: could not find a way to build shared libraries.
12329 It is currently not possible to build Wine without shared library
12330 (.so) support to allow transparent switch between .so and .dll files.
12331 If you are using Linux, you will need a newer binutils.
12332 " >&2;}
12333    { (exit 1); exit 1; }; }
12334 fi
12335
12336 case $build_os in
12337   cygwin*|mingw32*)
12338     LDPATH="PATH=\"\$(TOOLSDIR)/libs/unicode:\$\$PATH\""
12339  ;;
12340   *)
12341     LDPATH="LD_LIBRARY_PATH=\"\$(TOOLSDIR)/libs/unicode:\$\$LD_LIBRARY_PATH\""
12342  ;;
12343 esac
12344
12345 CRTLIBS=""
12346
12347 case $host_os in
12348   mingw32*)
12349     CRTLIBS="-lmsvcrt" ;;
12350 esac
12351
12352
12353 if test "$LIBEXT" = "so"
12354 then
12355   # Extract the first word of "ldd", so it can be a program name with args.
12356 set dummy ldd; ac_word=$2
12357 echo "$as_me:$LINENO: checking for $ac_word" >&5
12358 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12359 if test "${ac_cv_path_LDD+set}" = set; then
12360   echo $ECHO_N "(cached) $ECHO_C" >&6
12361 else
12362   case $LDD in
12363   [\\/]* | ?:[\\/]*)
12364   ac_cv_path_LDD="$LDD" # Let the user override the test with a path.
12365   ;;
12366   *)
12367   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12368 as_dummy="/sbin:/usr/sbin:$PATH"
12369 for as_dir in $as_dummy
12370 do
12371   IFS=$as_save_IFS
12372   test -z "$as_dir" && as_dir=.
12373   for ac_exec_ext in '' $ac_executable_extensions; do
12374   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12375     ac_cv_path_LDD="$as_dir/$ac_word$ac_exec_ext"
12376     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12377     break 2
12378   fi
12379 done
12380 done
12381
12382   test -z "$ac_cv_path_LDD" && ac_cv_path_LDD="true"
12383   ;;
12384 esac
12385 fi
12386 LDD=$ac_cv_path_LDD
12387
12388 if test -n "$LDD"; then
12389   echo "$as_me:$LINENO: result: $LDD" >&5
12390 echo "${ECHO_T}$LDD" >&6
12391 else
12392   echo "$as_me:$LINENO: result: no" >&5
12393 echo "${ECHO_T}no" >&6
12394 fi
12395
12396
12397 echo "$as_me:$LINENO: checking for -lX11 soname" >&5
12398 echo $ECHO_N "checking for -lX11 soname... $ECHO_C" >&6
12399 if test "${ac_cv_lib_soname_X11+set}" = set; then
12400   echo $ECHO_N "(cached) $ECHO_C" >&6
12401 else
12402   ac_get_soname_save_LIBS=$LIBS
12403 LIBS="-lX11 $X_LIBS $X_EXTRA_LIBS $LIBS"
12404   cat >conftest.$ac_ext <<_ACEOF
12405 #line $LINENO "configure"
12406 /* confdefs.h.  */
12407 _ACEOF
12408 cat confdefs.h >>conftest.$ac_ext
12409 cat >>conftest.$ac_ext <<_ACEOF
12410 /* end confdefs.h.  */
12411
12412 /* Override any gcc2 internal prototype to avoid an error.  */
12413 #ifdef __cplusplus
12414 extern "C"
12415 #endif
12416 /* We use char because int might match the return type of a gcc2
12417    builtin and then its argument prototype would still apply.  */
12418 char XCreateWindow ();
12419 int
12420 main ()
12421 {
12422 XCreateWindow ();
12423   ;
12424   return 0;
12425 }
12426 _ACEOF
12427 rm -f conftest.$ac_objext conftest$ac_exeext
12428 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12429   (eval $ac_link) 2>&5
12430   ac_status=$?
12431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12432   (exit $ac_status); } &&
12433          { ac_try='test -s conftest$ac_exeext'
12434   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12435   (eval $ac_try) 2>&5
12436   ac_status=$?
12437   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12438   (exit $ac_status); }; }; then
12439   ac_cv_lib_soname_X11=`$ac_cv_path_LDD conftest$ac_exeext | grep libX11\\.so | sed 's/^[       ]*\([^  ]*\)[   ]*=>.*$/\1/'`
12440   if test "x$ac_cv_lib_soname_X11" = "x"
12441   then
12442      ac_cv_lib_soname_X11="libX11.so"
12443   fi
12444 else
12445   echo "$as_me: failed program was:" >&5
12446 sed 's/^/| /' conftest.$ac_ext >&5
12447
12448 ac_cv_lib_soname_X11="libX11.so"
12449 fi
12450 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12451   LIBS=$ac_get_soname_save_LIBS
12452 fi
12453 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_X11" >&5
12454 echo "${ECHO_T}$ac_cv_lib_soname_X11" >&6
12455 if test "x$ac_cv_lib_soname_X11" != xNONE
12456 then
12457 cat >>confdefs.h <<_ACEOF
12458 #define SONAME_LIBX11 "$ac_cv_lib_soname_X11"
12459 _ACEOF
12460 fi
12461
12462 echo "$as_me:$LINENO: checking for -lXext soname" >&5
12463 echo $ECHO_N "checking for -lXext soname... $ECHO_C" >&6
12464 if test "${ac_cv_lib_soname_Xext+set}" = set; then
12465   echo $ECHO_N "(cached) $ECHO_C" >&6
12466 else
12467   ac_get_soname_save_LIBS=$LIBS
12468 LIBS="-lXext $X_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
12469   cat >conftest.$ac_ext <<_ACEOF
12470 #line $LINENO "configure"
12471 /* confdefs.h.  */
12472 _ACEOF
12473 cat confdefs.h >>conftest.$ac_ext
12474 cat >>conftest.$ac_ext <<_ACEOF
12475 /* end confdefs.h.  */
12476
12477 /* Override any gcc2 internal prototype to avoid an error.  */
12478 #ifdef __cplusplus
12479 extern "C"
12480 #endif
12481 /* We use char because int might match the return type of a gcc2
12482    builtin and then its argument prototype would still apply.  */
12483 char XextCreateExtension ();
12484 int
12485 main ()
12486 {
12487 XextCreateExtension ();
12488   ;
12489   return 0;
12490 }
12491 _ACEOF
12492 rm -f conftest.$ac_objext conftest$ac_exeext
12493 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12494   (eval $ac_link) 2>&5
12495   ac_status=$?
12496   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12497   (exit $ac_status); } &&
12498          { ac_try='test -s conftest$ac_exeext'
12499   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12500   (eval $ac_try) 2>&5
12501   ac_status=$?
12502   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12503   (exit $ac_status); }; }; then
12504   ac_cv_lib_soname_Xext=`$ac_cv_path_LDD conftest$ac_exeext | grep libXext\\.so | sed 's/^[     ]*\([^  ]*\)[   ]*=>.*$/\1/'`
12505   if test "x$ac_cv_lib_soname_Xext" = "x"
12506   then
12507      ac_cv_lib_soname_Xext="libXext.so"
12508   fi
12509 else
12510   echo "$as_me: failed program was:" >&5
12511 sed 's/^/| /' conftest.$ac_ext >&5
12512
12513 ac_cv_lib_soname_Xext="libXext.so"
12514 fi
12515 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12516   LIBS=$ac_get_soname_save_LIBS
12517 fi
12518 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_Xext" >&5
12519 echo "${ECHO_T}$ac_cv_lib_soname_Xext" >&6
12520 if test "x$ac_cv_lib_soname_Xext" != xNONE
12521 then
12522 cat >>confdefs.h <<_ACEOF
12523 #define SONAME_LIBXEXT "$ac_cv_lib_soname_Xext"
12524 _ACEOF
12525 fi
12526
12527 echo "$as_me:$LINENO: checking for -lXrender soname" >&5
12528 echo $ECHO_N "checking for -lXrender soname... $ECHO_C" >&6
12529 if test "${ac_cv_lib_soname_Xrender+set}" = set; then
12530   echo $ECHO_N "(cached) $ECHO_C" >&6
12531 else
12532   ac_get_soname_save_LIBS=$LIBS
12533 LIBS="-lXrender $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
12534   cat >conftest.$ac_ext <<_ACEOF
12535 #line $LINENO "configure"
12536 /* confdefs.h.  */
12537 _ACEOF
12538 cat confdefs.h >>conftest.$ac_ext
12539 cat >>conftest.$ac_ext <<_ACEOF
12540 /* end confdefs.h.  */
12541
12542 /* Override any gcc2 internal prototype to avoid an error.  */
12543 #ifdef __cplusplus
12544 extern "C"
12545 #endif
12546 /* We use char because int might match the return type of a gcc2
12547    builtin and then its argument prototype would still apply.  */
12548 char XRenderQueryExtension ();
12549 int
12550 main ()
12551 {
12552 XRenderQueryExtension ();
12553   ;
12554   return 0;
12555 }
12556 _ACEOF
12557 rm -f conftest.$ac_objext conftest$ac_exeext
12558 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12559   (eval $ac_link) 2>&5
12560   ac_status=$?
12561   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12562   (exit $ac_status); } &&
12563          { ac_try='test -s conftest$ac_exeext'
12564   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12565   (eval $ac_try) 2>&5
12566   ac_status=$?
12567   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12568   (exit $ac_status); }; }; then
12569   ac_cv_lib_soname_Xrender=`$ac_cv_path_LDD conftest$ac_exeext | grep libXrender\\.so | sed 's/^[       ]*\([^  ]*\)[   ]*=>.*$/\1/'`
12570   if test "x$ac_cv_lib_soname_Xrender" = "x"
12571   then
12572      ac_cv_lib_soname_Xrender="libXrender.so"
12573   fi
12574 else
12575   echo "$as_me: failed program was:" >&5
12576 sed 's/^/| /' conftest.$ac_ext >&5
12577
12578 ac_cv_lib_soname_Xrender="libXrender.so"
12579 fi
12580 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12581   LIBS=$ac_get_soname_save_LIBS
12582 fi
12583 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_Xrender" >&5
12584 echo "${ECHO_T}$ac_cv_lib_soname_Xrender" >&6
12585 if test "x$ac_cv_lib_soname_Xrender" != xNONE
12586 then
12587 cat >>confdefs.h <<_ACEOF
12588 #define SONAME_LIBXRENDER "$ac_cv_lib_soname_Xrender"
12589 _ACEOF
12590 fi
12591
12592 echo "$as_me:$LINENO: checking for -lfreetype soname" >&5
12593 echo $ECHO_N "checking for -lfreetype soname... $ECHO_C" >&6
12594 if test "${ac_cv_lib_soname_freetype+set}" = set; then
12595   echo $ECHO_N "(cached) $ECHO_C" >&6
12596 else
12597   ac_get_soname_save_LIBS=$LIBS
12598 LIBS="-lfreetype $X_LIBS $LIBS"
12599   cat >conftest.$ac_ext <<_ACEOF
12600 #line $LINENO "configure"
12601 /* confdefs.h.  */
12602 _ACEOF
12603 cat confdefs.h >>conftest.$ac_ext
12604 cat >>conftest.$ac_ext <<_ACEOF
12605 /* end confdefs.h.  */
12606
12607 /* Override any gcc2 internal prototype to avoid an error.  */
12608 #ifdef __cplusplus
12609 extern "C"
12610 #endif
12611 /* We use char because int might match the return type of a gcc2
12612    builtin and then its argument prototype would still apply.  */
12613 char FT_Init_FreeType ();
12614 int
12615 main ()
12616 {
12617 FT_Init_FreeType ();
12618   ;
12619   return 0;
12620 }
12621 _ACEOF
12622 rm -f conftest.$ac_objext conftest$ac_exeext
12623 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12624   (eval $ac_link) 2>&5
12625   ac_status=$?
12626   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12627   (exit $ac_status); } &&
12628          { ac_try='test -s conftest$ac_exeext'
12629   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12630   (eval $ac_try) 2>&5
12631   ac_status=$?
12632   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12633   (exit $ac_status); }; }; then
12634   ac_cv_lib_soname_freetype=`$ac_cv_path_LDD conftest$ac_exeext | grep libfreetype\\.so | sed 's/^[     ]*\([^  ]*\)[   ]*=>.*$/\1/'`
12635   if test "x$ac_cv_lib_soname_freetype" = "x"
12636   then
12637      ac_cv_lib_soname_freetype="libfreetype.so"
12638   fi
12639 else
12640   echo "$as_me: failed program was:" >&5
12641 sed 's/^/| /' conftest.$ac_ext >&5
12642
12643 ac_cv_lib_soname_freetype="libfreetype.so"
12644 fi
12645 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12646   LIBS=$ac_get_soname_save_LIBS
12647 fi
12648 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_freetype" >&5
12649 echo "${ECHO_T}$ac_cv_lib_soname_freetype" >&6
12650 if test "x$ac_cv_lib_soname_freetype" != xNONE
12651 then
12652 cat >>confdefs.h <<_ACEOF
12653 #define SONAME_LIBFREETYPE "$ac_cv_lib_soname_freetype"
12654 _ACEOF
12655 fi
12656
12657 echo "$as_me:$LINENO: checking for -lGL soname" >&5
12658 echo $ECHO_N "checking for -lGL soname... $ECHO_C" >&6
12659 if test "${ac_cv_lib_soname_GL+set}" = set; then
12660   echo $ECHO_N "(cached) $ECHO_C" >&6
12661 else
12662   ac_get_soname_save_LIBS=$LIBS
12663 LIBS="-lGL $X_LIBS $X_EXTRA_LIBS $LIBS"
12664   cat >conftest.$ac_ext <<_ACEOF
12665 #line $LINENO "configure"
12666 /* confdefs.h.  */
12667 _ACEOF
12668 cat confdefs.h >>conftest.$ac_ext
12669 cat >>conftest.$ac_ext <<_ACEOF
12670 /* end confdefs.h.  */
12671
12672 /* Override any gcc2 internal prototype to avoid an error.  */
12673 #ifdef __cplusplus
12674 extern "C"
12675 #endif
12676 /* We use char because int might match the return type of a gcc2
12677    builtin and then its argument prototype would still apply.  */
12678 char glXQueryExtension ();
12679 int
12680 main ()
12681 {
12682 glXQueryExtension ();
12683   ;
12684   return 0;
12685 }
12686 _ACEOF
12687 rm -f conftest.$ac_objext conftest$ac_exeext
12688 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12689   (eval $ac_link) 2>&5
12690   ac_status=$?
12691   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12692   (exit $ac_status); } &&
12693          { ac_try='test -s conftest$ac_exeext'
12694   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12695   (eval $ac_try) 2>&5
12696   ac_status=$?
12697   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12698   (exit $ac_status); }; }; then
12699   ac_cv_lib_soname_GL=`$ac_cv_path_LDD conftest$ac_exeext | grep libGL\\.so | sed 's/^[         ]*\([^  ]*\)[   ]*=>.*$/\1/'`
12700   if test "x$ac_cv_lib_soname_GL" = "x"
12701   then
12702      ac_cv_lib_soname_GL="libGL.so"
12703   fi
12704 else
12705   echo "$as_me: failed program was:" >&5
12706 sed 's/^/| /' conftest.$ac_ext >&5
12707
12708 ac_cv_lib_soname_GL="libGL.so"
12709 fi
12710 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12711   LIBS=$ac_get_soname_save_LIBS
12712 fi
12713 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_GL" >&5
12714 echo "${ECHO_T}$ac_cv_lib_soname_GL" >&6
12715 if test "x$ac_cv_lib_soname_GL" != xNONE
12716 then
12717 cat >>confdefs.h <<_ACEOF
12718 #define SONAME_LIBGL "$ac_cv_lib_soname_GL"
12719 _ACEOF
12720 fi
12721
12722 echo "$as_me:$LINENO: checking for -lcups soname" >&5
12723 echo $ECHO_N "checking for -lcups soname... $ECHO_C" >&6
12724 if test "${ac_cv_lib_soname_cups+set}" = set; then
12725   echo $ECHO_N "(cached) $ECHO_C" >&6
12726 else
12727   ac_get_soname_save_LIBS=$LIBS
12728 LIBS="-lcups  $LIBS"
12729   cat >conftest.$ac_ext <<_ACEOF
12730 #line $LINENO "configure"
12731 /* confdefs.h.  */
12732 _ACEOF
12733 cat confdefs.h >>conftest.$ac_ext
12734 cat >>conftest.$ac_ext <<_ACEOF
12735 /* end confdefs.h.  */
12736
12737 /* Override any gcc2 internal prototype to avoid an error.  */
12738 #ifdef __cplusplus
12739 extern "C"
12740 #endif
12741 /* We use char because int might match the return type of a gcc2
12742    builtin and then its argument prototype would still apply.  */
12743 char cupsGetDefault ();
12744 int
12745 main ()
12746 {
12747 cupsGetDefault ();
12748   ;
12749   return 0;
12750 }
12751 _ACEOF
12752 rm -f conftest.$ac_objext conftest$ac_exeext
12753 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12754   (eval $ac_link) 2>&5
12755   ac_status=$?
12756   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12757   (exit $ac_status); } &&
12758          { ac_try='test -s conftest$ac_exeext'
12759   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12760   (eval $ac_try) 2>&5
12761   ac_status=$?
12762   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12763   (exit $ac_status); }; }; then
12764   ac_cv_lib_soname_cups=`$ac_cv_path_LDD conftest$ac_exeext | grep libcups\\.so | sed 's/^[     ]*\([^  ]*\)[   ]*=>.*$/\1/'`
12765   if test "x$ac_cv_lib_soname_cups" = "x"
12766   then
12767      ac_cv_lib_soname_cups="libcups.so"
12768   fi
12769 else
12770   echo "$as_me: failed program was:" >&5
12771 sed 's/^/| /' conftest.$ac_ext >&5
12772
12773 ac_cv_lib_soname_cups="libcups.so"
12774 fi
12775 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12776   LIBS=$ac_get_soname_save_LIBS
12777 fi
12778 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_cups" >&5
12779 echo "${ECHO_T}$ac_cv_lib_soname_cups" >&6
12780 if test "x$ac_cv_lib_soname_cups" != xNONE
12781 then
12782 cat >>confdefs.h <<_ACEOF
12783 #define SONAME_LIBCUPS "$ac_cv_lib_soname_cups"
12784 _ACEOF
12785 fi
12786
12787 echo "$as_me:$LINENO: checking for -ljack soname" >&5
12788 echo $ECHO_N "checking for -ljack soname... $ECHO_C" >&6
12789 if test "${ac_cv_lib_soname_jack+set}" = set; then
12790   echo $ECHO_N "(cached) $ECHO_C" >&6
12791 else
12792   ac_get_soname_save_LIBS=$LIBS
12793 LIBS="-ljack  $LIBS"
12794   cat >conftest.$ac_ext <<_ACEOF
12795 #line $LINENO "configure"
12796 /* confdefs.h.  */
12797 _ACEOF
12798 cat confdefs.h >>conftest.$ac_ext
12799 cat >>conftest.$ac_ext <<_ACEOF
12800 /* end confdefs.h.  */
12801
12802 /* Override any gcc2 internal prototype to avoid an error.  */
12803 #ifdef __cplusplus
12804 extern "C"
12805 #endif
12806 /* We use char because int might match the return type of a gcc2
12807    builtin and then its argument prototype would still apply.  */
12808 char jack_client_new ();
12809 int
12810 main ()
12811 {
12812 jack_client_new ();
12813   ;
12814   return 0;
12815 }
12816 _ACEOF
12817 rm -f conftest.$ac_objext conftest$ac_exeext
12818 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12819   (eval $ac_link) 2>&5
12820   ac_status=$?
12821   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12822   (exit $ac_status); } &&
12823          { ac_try='test -s conftest$ac_exeext'
12824   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12825   (eval $ac_try) 2>&5
12826   ac_status=$?
12827   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12828   (exit $ac_status); }; }; then
12829   ac_cv_lib_soname_jack=`$ac_cv_path_LDD conftest$ac_exeext | grep libjack\\.so | sed 's/^[     ]*\([^  ]*\)[   ]*=>.*$/\1/'`
12830   if test "x$ac_cv_lib_soname_jack" = "x"
12831   then
12832      ac_cv_lib_soname_jack="libjack.so"
12833   fi
12834 else
12835   echo "$as_me: failed program was:" >&5
12836 sed 's/^/| /' conftest.$ac_ext >&5
12837
12838 ac_cv_lib_soname_jack="libjack.so"
12839 fi
12840 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12841   LIBS=$ac_get_soname_save_LIBS
12842 fi
12843 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_jack" >&5
12844 echo "${ECHO_T}$ac_cv_lib_soname_jack" >&6
12845 if test "x$ac_cv_lib_soname_jack" != xNONE
12846 then
12847 cat >>confdefs.h <<_ACEOF
12848 #define SONAME_LIBJACK "$ac_cv_lib_soname_jack"
12849 _ACEOF
12850 fi
12851 fi
12852
12853
12854
12855 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
12856 # for constant arguments.  Useless!
12857 echo "$as_me:$LINENO: checking for working alloca.h" >&5
12858 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
12859 if test "${ac_cv_working_alloca_h+set}" = set; then
12860   echo $ECHO_N "(cached) $ECHO_C" >&6
12861 else
12862   cat >conftest.$ac_ext <<_ACEOF
12863 #line $LINENO "configure"
12864 /* confdefs.h.  */
12865 _ACEOF
12866 cat confdefs.h >>conftest.$ac_ext
12867 cat >>conftest.$ac_ext <<_ACEOF
12868 /* end confdefs.h.  */
12869 #include <alloca.h>
12870 int
12871 main ()
12872 {
12873 char *p = (char *) alloca (2 * sizeof (int));
12874   ;
12875   return 0;
12876 }
12877 _ACEOF
12878 rm -f conftest.$ac_objext conftest$ac_exeext
12879 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12880   (eval $ac_link) 2>&5
12881   ac_status=$?
12882   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12883   (exit $ac_status); } &&
12884          { ac_try='test -s conftest$ac_exeext'
12885   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12886   (eval $ac_try) 2>&5
12887   ac_status=$?
12888   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12889   (exit $ac_status); }; }; then
12890   ac_cv_working_alloca_h=yes
12891 else
12892   echo "$as_me: failed program was:" >&5
12893 sed 's/^/| /' conftest.$ac_ext >&5
12894
12895 ac_cv_working_alloca_h=no
12896 fi
12897 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12898 fi
12899 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
12900 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
12901 if test $ac_cv_working_alloca_h = yes; then
12902
12903 cat >>confdefs.h <<\_ACEOF
12904 #define HAVE_ALLOCA_H 1
12905 _ACEOF
12906
12907 fi
12908
12909 echo "$as_me:$LINENO: checking for alloca" >&5
12910 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
12911 if test "${ac_cv_func_alloca_works+set}" = set; then
12912   echo $ECHO_N "(cached) $ECHO_C" >&6
12913 else
12914   cat >conftest.$ac_ext <<_ACEOF
12915 #line $LINENO "configure"
12916 /* confdefs.h.  */
12917 _ACEOF
12918 cat confdefs.h >>conftest.$ac_ext
12919 cat >>conftest.$ac_ext <<_ACEOF
12920 /* end confdefs.h.  */
12921 #ifdef __GNUC__
12922 # define alloca __builtin_alloca
12923 #else
12924 # ifdef _MSC_VER
12925 #  include <malloc.h>
12926 #  define alloca _alloca
12927 # else
12928 #  if HAVE_ALLOCA_H
12929 #   include <alloca.h>
12930 #  else
12931 #   ifdef _AIX
12932  #pragma alloca
12933 #   else
12934 #    ifndef alloca /* predefined by HP cc +Olibcalls */
12935 char *alloca ();
12936 #    endif
12937 #   endif
12938 #  endif
12939 # endif
12940 #endif
12941
12942 int
12943 main ()
12944 {
12945 char *p = (char *) alloca (1);
12946   ;
12947   return 0;
12948 }
12949 _ACEOF
12950 rm -f conftest.$ac_objext conftest$ac_exeext
12951 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12952   (eval $ac_link) 2>&5
12953   ac_status=$?
12954   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12955   (exit $ac_status); } &&
12956          { ac_try='test -s conftest$ac_exeext'
12957   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12958   (eval $ac_try) 2>&5
12959   ac_status=$?
12960   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12961   (exit $ac_status); }; }; then
12962   ac_cv_func_alloca_works=yes
12963 else
12964   echo "$as_me: failed program was:" >&5
12965 sed 's/^/| /' conftest.$ac_ext >&5
12966
12967 ac_cv_func_alloca_works=no
12968 fi
12969 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12970 fi
12971 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
12972 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
12973
12974 if test $ac_cv_func_alloca_works = yes; then
12975
12976 cat >>confdefs.h <<\_ACEOF
12977 #define HAVE_ALLOCA 1
12978 _ACEOF
12979
12980 else
12981   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
12982 # that cause trouble.  Some versions do not even contain alloca or
12983 # contain a buggy version.  If you still want to use their alloca,
12984 # use ar to extract alloca.o from them instead of compiling alloca.c.
12985
12986 ALLOCA=alloca.$ac_objext
12987
12988 cat >>confdefs.h <<\_ACEOF
12989 #define C_ALLOCA 1
12990 _ACEOF
12991
12992
12993 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
12994 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
12995 if test "${ac_cv_os_cray+set}" = set; then
12996   echo $ECHO_N "(cached) $ECHO_C" >&6
12997 else
12998   cat >conftest.$ac_ext <<_ACEOF
12999 #line $LINENO "configure"
13000 /* confdefs.h.  */
13001 _ACEOF
13002 cat confdefs.h >>conftest.$ac_ext
13003 cat >>conftest.$ac_ext <<_ACEOF
13004 /* end confdefs.h.  */
13005 #if defined(CRAY) && ! defined(CRAY2)
13006 webecray
13007 #else
13008 wenotbecray
13009 #endif
13010
13011 _ACEOF
13012 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13013   $EGREP "webecray" >/dev/null 2>&1; then
13014   ac_cv_os_cray=yes
13015 else
13016   ac_cv_os_cray=no
13017 fi
13018 rm -f conftest*
13019
13020 fi
13021 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
13022 echo "${ECHO_T}$ac_cv_os_cray" >&6
13023 if test $ac_cv_os_cray = yes; then
13024   for ac_func in _getb67 GETB67 getb67; do
13025     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13026 echo "$as_me:$LINENO: checking for $ac_func" >&5
13027 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13028 if eval "test \"\${$as_ac_var+set}\" = set"; then
13029   echo $ECHO_N "(cached) $ECHO_C" >&6
13030 else
13031   cat >conftest.$ac_ext <<_ACEOF
13032 #line $LINENO "configure"
13033 /* confdefs.h.  */
13034 _ACEOF
13035 cat confdefs.h >>conftest.$ac_ext
13036 cat >>conftest.$ac_ext <<_ACEOF
13037 /* end confdefs.h.  */
13038 /* System header to define __stub macros and hopefully few prototypes,
13039     which can conflict with char $ac_func (); below.
13040     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13041     <limits.h> exists even on freestanding compilers.  */
13042 #ifdef __STDC__
13043 # include <limits.h>
13044 #else
13045 # include <assert.h>
13046 #endif
13047 /* Override any gcc2 internal prototype to avoid an error.  */
13048 #ifdef __cplusplus
13049 extern "C"
13050 {
13051 #endif
13052 /* We use char because int might match the return type of a gcc2
13053    builtin and then its argument prototype would still apply.  */
13054 char $ac_func ();
13055 /* The GNU C library defines this for functions which it implements
13056     to always fail with ENOSYS.  Some functions are actually named
13057     something starting with __ and the normal name is an alias.  */
13058 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13059 choke me
13060 #else
13061 char (*f) () = $ac_func;
13062 #endif
13063 #ifdef __cplusplus
13064 }
13065 #endif
13066
13067 int
13068 main ()
13069 {
13070 return f != $ac_func;
13071   ;
13072   return 0;
13073 }
13074 _ACEOF
13075 rm -f conftest.$ac_objext conftest$ac_exeext
13076 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13077   (eval $ac_link) 2>&5
13078   ac_status=$?
13079   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13080   (exit $ac_status); } &&
13081          { ac_try='test -s conftest$ac_exeext'
13082   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13083   (eval $ac_try) 2>&5
13084   ac_status=$?
13085   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13086   (exit $ac_status); }; }; then
13087   eval "$as_ac_var=yes"
13088 else
13089   echo "$as_me: failed program was:" >&5
13090 sed 's/^/| /' conftest.$ac_ext >&5
13091
13092 eval "$as_ac_var=no"
13093 fi
13094 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13095 fi
13096 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13097 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13098 if test `eval echo '${'$as_ac_var'}'` = yes; then
13099
13100 cat >>confdefs.h <<_ACEOF
13101 #define CRAY_STACKSEG_END $ac_func
13102 _ACEOF
13103
13104     break
13105 fi
13106
13107   done
13108 fi
13109
13110 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
13111 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
13112 if test "${ac_cv_c_stack_direction+set}" = set; then
13113   echo $ECHO_N "(cached) $ECHO_C" >&6
13114 else
13115   if test "$cross_compiling" = yes; then
13116   ac_cv_c_stack_direction=0
13117 else
13118   cat >conftest.$ac_ext <<_ACEOF
13119 #line $LINENO "configure"
13120 /* confdefs.h.  */
13121 _ACEOF
13122 cat confdefs.h >>conftest.$ac_ext
13123 cat >>conftest.$ac_ext <<_ACEOF
13124 /* end confdefs.h.  */
13125 int
13126 find_stack_direction ()
13127 {
13128   static char *addr = 0;
13129   auto char dummy;
13130   if (addr == 0)
13131     {
13132       addr = &dummy;
13133       return find_stack_direction ();
13134     }
13135   else
13136     return (&dummy > addr) ? 1 : -1;
13137 }
13138
13139 int
13140 main ()
13141 {
13142   exit (find_stack_direction () < 0);
13143 }
13144 _ACEOF
13145 rm -f conftest$ac_exeext
13146 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13147   (eval $ac_link) 2>&5
13148   ac_status=$?
13149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13150   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13151   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13152   (eval $ac_try) 2>&5
13153   ac_status=$?
13154   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13155   (exit $ac_status); }; }; then
13156   ac_cv_c_stack_direction=1
13157 else
13158   echo "$as_me: program exited with status $ac_status" >&5
13159 echo "$as_me: failed program was:" >&5
13160 sed 's/^/| /' conftest.$ac_ext >&5
13161
13162 ( exit $ac_status )
13163 ac_cv_c_stack_direction=-1
13164 fi
13165 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13166 fi
13167 fi
13168 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
13169 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
13170
13171 cat >>confdefs.h <<_ACEOF
13172 #define STACK_DIRECTION $ac_cv_c_stack_direction
13173 _ACEOF
13174
13175
13176 fi
13177
13178
13179
13180
13181
13182
13183
13184
13185
13186
13187
13188
13189
13190
13191
13192
13193
13194
13195
13196
13197
13198
13199
13200
13201
13202
13203
13204
13205
13206
13207
13208
13209
13210
13211
13212
13213
13214
13215
13216
13217
13218
13219
13220
13221
13222
13223
13224
13225
13226
13227
13228
13229
13230
13231
13232
13233 for ac_func in \
13234         _lwp_create \
13235         _lwp_self \
13236         _pclose \
13237         _popen \
13238         _snprintf \
13239         _spawnvp \
13240         _stricmp \
13241         _strnicmp \
13242         _vsnprintf \
13243         chsize \
13244         clone \
13245         finite \
13246         fpclass \
13247         ftruncate \
13248         ftruncate64 \
13249         getnetbyaddr \
13250         getnetbyname \
13251         getopt_long \
13252         getpagesize \
13253         getprotobyname \
13254         getprotobynumber \
13255         getpwuid \
13256         getservbyport \
13257         gettimeofday \
13258         inet_network \
13259         lseek64 \
13260         lstat \
13261         memmove \
13262         mmap \
13263         pclose \
13264         popen \
13265         pread \
13266         pthread_getspecific \
13267         pthread_key_create \
13268         pthread_mutex_lock \
13269         pthread_mutex_unlock \
13270         pthread_setspecific \
13271         pwrite \
13272         rfork \
13273         select \
13274         sendmsg \
13275         settimeofday \
13276         sigaltstack \
13277         snprintf \
13278         statfs \
13279         strcasecmp \
13280         strerror \
13281         strncasecmp \
13282         tcgetattr \
13283         timegm \
13284         usleep \
13285         vfscanf \
13286         vsnprintf \
13287         wait4 \
13288         waitpid \
13289
13290 do
13291 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13292 echo "$as_me:$LINENO: checking for $ac_func" >&5
13293 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13294 if eval "test \"\${$as_ac_var+set}\" = set"; then
13295   echo $ECHO_N "(cached) $ECHO_C" >&6
13296 else
13297   cat >conftest.$ac_ext <<_ACEOF
13298 #line $LINENO "configure"
13299 /* confdefs.h.  */
13300 _ACEOF
13301 cat confdefs.h >>conftest.$ac_ext
13302 cat >>conftest.$ac_ext <<_ACEOF
13303 /* end confdefs.h.  */
13304 /* System header to define __stub macros and hopefully few prototypes,
13305     which can conflict with char $ac_func (); below.
13306     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13307     <limits.h> exists even on freestanding compilers.  */
13308 #ifdef __STDC__
13309 # include <limits.h>
13310 #else
13311 # include <assert.h>
13312 #endif
13313 /* Override any gcc2 internal prototype to avoid an error.  */
13314 #ifdef __cplusplus
13315 extern "C"
13316 {
13317 #endif
13318 /* We use char because int might match the return type of a gcc2
13319    builtin and then its argument prototype would still apply.  */
13320 char $ac_func ();
13321 /* The GNU C library defines this for functions which it implements
13322     to always fail with ENOSYS.  Some functions are actually named
13323     something starting with __ and the normal name is an alias.  */
13324 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13325 choke me
13326 #else
13327 char (*f) () = $ac_func;
13328 #endif
13329 #ifdef __cplusplus
13330 }
13331 #endif
13332
13333 int
13334 main ()
13335 {
13336 return f != $ac_func;
13337   ;
13338   return 0;
13339 }
13340 _ACEOF
13341 rm -f conftest.$ac_objext conftest$ac_exeext
13342 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13343   (eval $ac_link) 2>&5
13344   ac_status=$?
13345   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13346   (exit $ac_status); } &&
13347          { ac_try='test -s conftest$ac_exeext'
13348   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13349   (eval $ac_try) 2>&5
13350   ac_status=$?
13351   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13352   (exit $ac_status); }; }; then
13353   eval "$as_ac_var=yes"
13354 else
13355   echo "$as_me: failed program was:" >&5
13356 sed 's/^/| /' conftest.$ac_ext >&5
13357
13358 eval "$as_ac_var=no"
13359 fi
13360 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13361 fi
13362 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13363 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13364 if test `eval echo '${'$as_ac_var'}'` = yes; then
13365   cat >>confdefs.h <<_ACEOF
13366 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13367 _ACEOF
13368
13369 fi
13370 done
13371
13372
13373
13374
13375
13376
13377
13378
13379
13380
13381
13382
13383
13384
13385
13386
13387
13388
13389
13390
13391
13392
13393
13394
13395
13396
13397
13398
13399
13400
13401
13402
13403
13404
13405
13406
13407
13408
13409
13410
13411
13412
13413
13414
13415
13416
13417
13418
13419
13420
13421
13422
13423
13424
13425
13426
13427
13428
13429
13430
13431
13432
13433
13434
13435
13436
13437
13438
13439
13440
13441
13442
13443
13444
13445
13446
13447
13448 for ac_header in \
13449         arpa/inet.h \
13450         arpa/nameser.h \
13451         cups/cups.h \
13452         direct.h \
13453         elf.h \
13454         float.h \
13455         getopt.h \
13456         ieeefp.h \
13457         io.h \
13458         jack/jack.h \
13459         libio.h \
13460         libutil.h \
13461         link.h \
13462         linux/cdrom.h \
13463         linux/hdreg.h \
13464         linux/input.h \
13465         linux/joystick.h \
13466         linux/major.h \
13467         linux/param.h \
13468         linux/serial.h \
13469         linux/ucdrom.h \
13470         machine/cpu.h \
13471         netdb.h \
13472         netinet/in.h \
13473         netinet/in_systm.h \
13474         netinet/tcp.h \
13475         netinet/tcp_fsm.h \
13476         pty.h \
13477         pwd.h \
13478         regex.h \
13479         sched.h \
13480         scsi/sg.h \
13481         socket.h \
13482         stdint.h \
13483         strings.h \
13484         sys/cdio.h \
13485         sys/errno.h \
13486         sys/file.h \
13487         sys/filio.h \
13488         sys/inttypes.h \
13489         sys/ioctl.h \
13490         sys/ipc.h \
13491         sys/link.h \
13492         sys/lwp.h \
13493         sys/mman.h \
13494         sys/modem.h \
13495         sys/msg.h \
13496         sys/param.h \
13497         sys/poll.h \
13498         sys/ptrace.h \
13499         sys/reg.h \
13500         sys/scsiio.h \
13501         sys/shm.h \
13502         sys/signal.h \
13503         sys/socket.h \
13504         sys/sockio.h \
13505         sys/statfs.h \
13506         sys/strtio.h \
13507         sys/syscall.h \
13508         sys/sysctl.h \
13509         sys/time.h \
13510         sys/times.h \
13511         sys/uio.h \
13512         sys/un.h \
13513         sys/v86.h \
13514         sys/v86intr.h \
13515         sys/vfs.h \
13516         sys/vm86.h \
13517         sys/wait.h \
13518         syscall.h \
13519         termios.h \
13520         unistd.h \
13521         utime.h \
13522         valgrind/memcheck.h
13523
13524 do
13525 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13526 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13527   echo "$as_me:$LINENO: checking for $ac_header" >&5
13528 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13529 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13530   echo $ECHO_N "(cached) $ECHO_C" >&6
13531 fi
13532 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13533 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13534 else
13535   # Is the header compilable?
13536 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13537 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13538 cat >conftest.$ac_ext <<_ACEOF
13539 #line $LINENO "configure"
13540 /* confdefs.h.  */
13541 _ACEOF
13542 cat confdefs.h >>conftest.$ac_ext
13543 cat >>conftest.$ac_ext <<_ACEOF
13544 /* end confdefs.h.  */
13545 $ac_includes_default
13546 #include <$ac_header>
13547 _ACEOF
13548 rm -f conftest.$ac_objext
13549 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13550   (eval $ac_compile) 2>&5
13551   ac_status=$?
13552   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13553   (exit $ac_status); } &&
13554          { ac_try='test -s conftest.$ac_objext'
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_header_compiler=yes
13561 else
13562   echo "$as_me: failed program was:" >&5
13563 sed 's/^/| /' conftest.$ac_ext >&5
13564
13565 ac_header_compiler=no
13566 fi
13567 rm -f conftest.$ac_objext conftest.$ac_ext
13568 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13569 echo "${ECHO_T}$ac_header_compiler" >&6
13570
13571 # Is the header present?
13572 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13573 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13574 cat >conftest.$ac_ext <<_ACEOF
13575 #line $LINENO "configure"
13576 /* confdefs.h.  */
13577 _ACEOF
13578 cat confdefs.h >>conftest.$ac_ext
13579 cat >>conftest.$ac_ext <<_ACEOF
13580 /* end confdefs.h.  */
13581 #include <$ac_header>
13582 _ACEOF
13583 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13584   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13585   ac_status=$?
13586   grep -v '^ *+' conftest.er1 >conftest.err
13587   rm -f conftest.er1
13588   cat conftest.err >&5
13589   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13590   (exit $ac_status); } >/dev/null; then
13591   if test -s conftest.err; then
13592     ac_cpp_err=$ac_c_preproc_warn_flag
13593   else
13594     ac_cpp_err=
13595   fi
13596 else
13597   ac_cpp_err=yes
13598 fi
13599 if test -z "$ac_cpp_err"; then
13600   ac_header_preproc=yes
13601 else
13602   echo "$as_me: failed program was:" >&5
13603 sed 's/^/| /' conftest.$ac_ext >&5
13604
13605   ac_header_preproc=no
13606 fi
13607 rm -f conftest.err conftest.$ac_ext
13608 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13609 echo "${ECHO_T}$ac_header_preproc" >&6
13610
13611 # So?  What about this header?
13612 case $ac_header_compiler:$ac_header_preproc in
13613   yes:no )
13614     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13615 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13616     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13617 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13618     (
13619       cat <<\_ASBOX
13620 ## ------------------------------------ ##
13621 ## Report this to bug-autoconf@gnu.org. ##
13622 ## ------------------------------------ ##
13623 _ASBOX
13624     ) |
13625       sed "s/^/$as_me: WARNING:     /" >&2
13626     ;;
13627   no:yes )
13628     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13629 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13630     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13631 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13632     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13633 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13634     (
13635       cat <<\_ASBOX
13636 ## ------------------------------------ ##
13637 ## Report this to bug-autoconf@gnu.org. ##
13638 ## ------------------------------------ ##
13639 _ASBOX
13640     ) |
13641       sed "s/^/$as_me: WARNING:     /" >&2
13642     ;;
13643 esac
13644 echo "$as_me:$LINENO: checking for $ac_header" >&5
13645 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13646 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13647   echo $ECHO_N "(cached) $ECHO_C" >&6
13648 else
13649   eval "$as_ac_Header=$ac_header_preproc"
13650 fi
13651 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13652 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13653
13654 fi
13655 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13656   cat >>confdefs.h <<_ACEOF
13657 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13658 _ACEOF
13659
13660 fi
13661
13662 done
13663
13664 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
13665 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
13666 if test "${ac_cv_header_stat_broken+set}" = set; then
13667   echo $ECHO_N "(cached) $ECHO_C" >&6
13668 else
13669   cat >conftest.$ac_ext <<_ACEOF
13670 #line $LINENO "configure"
13671 /* confdefs.h.  */
13672 _ACEOF
13673 cat confdefs.h >>conftest.$ac_ext
13674 cat >>conftest.$ac_ext <<_ACEOF
13675 /* end confdefs.h.  */
13676 #include <sys/types.h>
13677 #include <sys/stat.h>
13678
13679 #if defined(S_ISBLK) && defined(S_IFDIR)
13680 # if S_ISBLK (S_IFDIR)
13681 You lose.
13682 # endif
13683 #endif
13684
13685 #if defined(S_ISBLK) && defined(S_IFCHR)
13686 # if S_ISBLK (S_IFCHR)
13687 You lose.
13688 # endif
13689 #endif
13690
13691 #if defined(S_ISLNK) && defined(S_IFREG)
13692 # if S_ISLNK (S_IFREG)
13693 You lose.
13694 # endif
13695 #endif
13696
13697 #if defined(S_ISSOCK) && defined(S_IFREG)
13698 # if S_ISSOCK (S_IFREG)
13699 You lose.
13700 # endif
13701 #endif
13702
13703 _ACEOF
13704 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13705   $EGREP "You lose" >/dev/null 2>&1; then
13706   ac_cv_header_stat_broken=yes
13707 else
13708   ac_cv_header_stat_broken=no
13709 fi
13710 rm -f conftest*
13711
13712 fi
13713 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
13714 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
13715 if test $ac_cv_header_stat_broken = yes; then
13716
13717 cat >>confdefs.h <<\_ACEOF
13718 #define STAT_MACROS_BROKEN 1
13719 _ACEOF
13720
13721 fi
13722
13723
13724
13725
13726
13727 for ac_header in sys/mount.h sys/user.h
13728 do
13729 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13730 echo "$as_me:$LINENO: checking for $ac_header" >&5
13731 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13732 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13733   echo $ECHO_N "(cached) $ECHO_C" >&6
13734 else
13735   cat >conftest.$ac_ext <<_ACEOF
13736 #line $LINENO "configure"
13737 /* confdefs.h.  */
13738 _ACEOF
13739 cat confdefs.h >>conftest.$ac_ext
13740 cat >>conftest.$ac_ext <<_ACEOF
13741 /* end confdefs.h.  */
13742 #include <sys/types.h>
13743      #if HAVE_SYS_PARAM_H
13744      # include <sys/param.h>
13745      #endif
13746
13747 #include <$ac_header>
13748 _ACEOF
13749 rm -f conftest.$ac_objext
13750 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13751   (eval $ac_compile) 2>&5
13752   ac_status=$?
13753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13754   (exit $ac_status); } &&
13755          { ac_try='test -s conftest.$ac_objext'
13756   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13757   (eval $ac_try) 2>&5
13758   ac_status=$?
13759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13760   (exit $ac_status); }; }; then
13761   eval "$as_ac_Header=yes"
13762 else
13763   echo "$as_me: failed program was:" >&5
13764 sed 's/^/| /' conftest.$ac_ext >&5
13765
13766 eval "$as_ac_Header=no"
13767 fi
13768 rm -f conftest.$ac_objext conftest.$ac_ext
13769 fi
13770 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13771 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13772 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13773   cat >>confdefs.h <<_ACEOF
13774 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13775 _ACEOF
13776
13777 fi
13778
13779 done
13780
13781
13782
13783
13784
13785
13786
13787
13788 for ac_header in net/if.h net/if_arp.h net/if_dl.h net/if_types.h net/route.h resolv.h
13789 do
13790 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13791 echo "$as_me:$LINENO: checking for $ac_header" >&5
13792 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13793 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13794   echo $ECHO_N "(cached) $ECHO_C" >&6
13795 else
13796   cat >conftest.$ac_ext <<_ACEOF
13797 #line $LINENO "configure"
13798 /* confdefs.h.  */
13799 _ACEOF
13800 cat confdefs.h >>conftest.$ac_ext
13801 cat >>conftest.$ac_ext <<_ACEOF
13802 /* end confdefs.h.  */
13803 #include <sys/types.h>
13804      #if HAVE_SYS_SOCKET_H
13805      # include <sys/socket.h>
13806      #endif
13807
13808 #include <$ac_header>
13809 _ACEOF
13810 rm -f conftest.$ac_objext
13811 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13812   (eval $ac_compile) 2>&5
13813   ac_status=$?
13814   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13815   (exit $ac_status); } &&
13816          { ac_try='test -s conftest.$ac_objext'
13817   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13818   (eval $ac_try) 2>&5
13819   ac_status=$?
13820   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13821   (exit $ac_status); }; }; then
13822   eval "$as_ac_Header=yes"
13823 else
13824   echo "$as_me: failed program was:" >&5
13825 sed 's/^/| /' conftest.$ac_ext >&5
13826
13827 eval "$as_ac_Header=no"
13828 fi
13829 rm -f conftest.$ac_objext conftest.$ac_ext
13830 fi
13831 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13832 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13833 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13834   cat >>confdefs.h <<_ACEOF
13835 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13836 _ACEOF
13837
13838 fi
13839
13840 done
13841
13842
13843
13844 for ac_header in netinet/ip.h
13845 do
13846 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13847 echo "$as_me:$LINENO: checking for $ac_header" >&5
13848 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13849 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13850   echo $ECHO_N "(cached) $ECHO_C" >&6
13851 else
13852   cat >conftest.$ac_ext <<_ACEOF
13853 #line $LINENO "configure"
13854 /* confdefs.h.  */
13855 _ACEOF
13856 cat confdefs.h >>conftest.$ac_ext
13857 cat >>conftest.$ac_ext <<_ACEOF
13858 /* end confdefs.h.  */
13859 #include <sys/types.h>
13860      #if HAVE_SYS_SOCKET_H
13861      # include <sys/socket.h>
13862      #endif
13863      #if HAVE_NETINET_IN_SYSTM_H
13864      # include <netinet/in_systm.h>
13865      #endif
13866
13867 #include <$ac_header>
13868 _ACEOF
13869 rm -f conftest.$ac_objext
13870 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13871   (eval $ac_compile) 2>&5
13872   ac_status=$?
13873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13874   (exit $ac_status); } &&
13875          { ac_try='test -s conftest.$ac_objext'
13876   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13877   (eval $ac_try) 2>&5
13878   ac_status=$?
13879   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13880   (exit $ac_status); }; }; then
13881   eval "$as_ac_Header=yes"
13882 else
13883   echo "$as_me: failed program was:" >&5
13884 sed 's/^/| /' conftest.$ac_ext >&5
13885
13886 eval "$as_ac_Header=no"
13887 fi
13888 rm -f conftest.$ac_objext conftest.$ac_ext
13889 fi
13890 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13891 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13892 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13893   cat >>confdefs.h <<_ACEOF
13894 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13895 _ACEOF
13896
13897 fi
13898
13899 done
13900
13901
13902
13903 for ac_header in ucontext.h
13904 do
13905 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13906 echo "$as_me:$LINENO: checking for $ac_header" >&5
13907 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13908 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13909   echo $ECHO_N "(cached) $ECHO_C" >&6
13910 else
13911   cat >conftest.$ac_ext <<_ACEOF
13912 #line $LINENO "configure"
13913 /* confdefs.h.  */
13914 _ACEOF
13915 cat confdefs.h >>conftest.$ac_ext
13916 cat >>conftest.$ac_ext <<_ACEOF
13917 /* end confdefs.h.  */
13918 #include <signal.h>
13919
13920 #include <$ac_header>
13921 _ACEOF
13922 rm -f conftest.$ac_objext
13923 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13924   (eval $ac_compile) 2>&5
13925   ac_status=$?
13926   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13927   (exit $ac_status); } &&
13928          { ac_try='test -s conftest.$ac_objext'
13929   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13930   (eval $ac_try) 2>&5
13931   ac_status=$?
13932   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13933   (exit $ac_status); }; }; then
13934   eval "$as_ac_Header=yes"
13935 else
13936   echo "$as_me: failed program was:" >&5
13937 sed 's/^/| /' conftest.$ac_ext >&5
13938
13939 eval "$as_ac_Header=no"
13940 fi
13941 rm -f conftest.$ac_objext conftest.$ac_ext
13942 fi
13943 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13944 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13945 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13946   cat >>confdefs.h <<_ACEOF
13947 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13948 _ACEOF
13949
13950 fi
13951
13952 done
13953
13954
13955
13956 echo "$as_me:$LINENO: checking for GNU style IPX support" >&5
13957 echo $ECHO_N "checking for GNU style IPX support... $ECHO_C" >&6
13958 if test "${ac_cv_c_ipx_gnu+set}" = set; then
13959   echo $ECHO_N "(cached) $ECHO_C" >&6
13960 else
13961   cat >conftest.$ac_ext <<_ACEOF
13962 #line $LINENO "configure"
13963 /* confdefs.h.  */
13964 _ACEOF
13965 cat confdefs.h >>conftest.$ac_ext
13966 cat >>conftest.$ac_ext <<_ACEOF
13967 /* end confdefs.h.  */
13968 #include <sys/types.h>
13969     #ifdef HAVE_SYS_SOCKET_H
13970     # include <sys/socket.h>
13971     #endif
13972     #include <netipx/ipx.h>
13973 int
13974 main ()
13975 {
13976 ((struct sockaddr_ipx *)0)->sipx_family == AF_IPX
13977   ;
13978   return 0;
13979 }
13980 _ACEOF
13981 rm -f conftest.$ac_objext
13982 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13983   (eval $ac_compile) 2>&5
13984   ac_status=$?
13985   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13986   (exit $ac_status); } &&
13987          { ac_try='test -s conftest.$ac_objext'
13988   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13989   (eval $ac_try) 2>&5
13990   ac_status=$?
13991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13992   (exit $ac_status); }; }; then
13993   ac_cv_c_ipx_gnu="yes"
13994 else
13995   echo "$as_me: failed program was:" >&5
13996 sed 's/^/| /' conftest.$ac_ext >&5
13997
13998 ac_cv_c_ipx_gnu="no"
13999 fi
14000 rm -f conftest.$ac_objext conftest.$ac_ext
14001
14002 fi
14003 echo "$as_me:$LINENO: result: $ac_cv_c_ipx_gnu" >&5
14004 echo "${ECHO_T}$ac_cv_c_ipx_gnu" >&6
14005 if test "$ac_cv_c_ipx_gnu" = "yes"
14006 then
14007
14008 cat >>confdefs.h <<\_ACEOF
14009 #define HAVE_IPX_GNU 1
14010 _ACEOF
14011
14012 fi
14013
14014 if test "$ac_cv_c_ipx_gnu" = "no"
14015 then
14016  echo "$as_me:$LINENO: checking for linux style IPX support" >&5
14017 echo $ECHO_N "checking for linux style IPX support... $ECHO_C" >&6
14018 if test "${ac_cv_c_ipx_linux+set}" = set; then
14019   echo $ECHO_N "(cached) $ECHO_C" >&6
14020 else
14021   cat >conftest.$ac_ext <<_ACEOF
14022 #line $LINENO "configure"
14023 /* confdefs.h.  */
14024 _ACEOF
14025 cat confdefs.h >>conftest.$ac_ext
14026 cat >>conftest.$ac_ext <<_ACEOF
14027 /* end confdefs.h.  */
14028 #include <sys/types.h>
14029      #ifdef HAVE_SYS_SOCKET_H
14030      # include <sys/socket.h>
14031      #endif
14032      #include <asm/types.h>
14033      #include <linux/ipx.h>
14034 int
14035 main ()
14036 {
14037 ((struct sockaddr_ipx *)0)->sipx_family == AF_IPX
14038   ;
14039   return 0;
14040 }
14041 _ACEOF
14042 rm -f conftest.$ac_objext
14043 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14044   (eval $ac_compile) 2>&5
14045   ac_status=$?
14046   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14047   (exit $ac_status); } &&
14048          { ac_try='test -s conftest.$ac_objext'
14049   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14050   (eval $ac_try) 2>&5
14051   ac_status=$?
14052   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14053   (exit $ac_status); }; }; then
14054   ac_cv_c_ipx_linux="yes"
14055 else
14056   echo "$as_me: failed program was:" >&5
14057 sed 's/^/| /' conftest.$ac_ext >&5
14058
14059 ac_cv_c_ipx_linux="no"
14060 fi
14061 rm -f conftest.$ac_objext conftest.$ac_ext
14062
14063 fi
14064 echo "$as_me:$LINENO: result: $ac_cv_c_ipx_linux" >&5
14065 echo "${ECHO_T}$ac_cv_c_ipx_linux" >&6
14066   if test "$ac_cv_c_ipx_linux" = "yes"
14067   then
14068
14069 cat >>confdefs.h <<\_ACEOF
14070 #define HAVE_IPX_LINUX 1
14071 _ACEOF
14072
14073   fi
14074 fi
14075
14076
14077 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
14078 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
14079 if test "${ac_cv_c_const+set}" = set; then
14080   echo $ECHO_N "(cached) $ECHO_C" >&6
14081 else
14082   cat >conftest.$ac_ext <<_ACEOF
14083 #line $LINENO "configure"
14084 /* confdefs.h.  */
14085 _ACEOF
14086 cat confdefs.h >>conftest.$ac_ext
14087 cat >>conftest.$ac_ext <<_ACEOF
14088 /* end confdefs.h.  */
14089
14090 int
14091 main ()
14092 {
14093 /* FIXME: Include the comments suggested by Paul. */
14094 #ifndef __cplusplus
14095   /* Ultrix mips cc rejects this.  */
14096   typedef int charset[2];
14097   const charset x;
14098   /* SunOS 4.1.1 cc rejects this.  */
14099   char const *const *ccp;
14100   char **p;
14101   /* NEC SVR4.0.2 mips cc rejects this.  */
14102   struct point {int x, y;};
14103   static struct point const zero = {0,0};
14104   /* AIX XL C 1.02.0.0 rejects this.
14105      It does not let you subtract one const X* pointer from another in
14106      an arm of an if-expression whose if-part is not a constant
14107      expression */
14108   const char *g = "string";
14109   ccp = &g + (g ? g-g : 0);
14110   /* HPUX 7.0 cc rejects these. */
14111   ++ccp;
14112   p = (char**) ccp;
14113   ccp = (char const *const *) p;
14114   { /* SCO 3.2v4 cc rejects this.  */
14115     char *t;
14116     char const *s = 0 ? (char *) 0 : (char const *) 0;
14117
14118     *t++ = 0;
14119   }
14120   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
14121     int x[] = {25, 17};
14122     const int *foo = &x[0];
14123     ++foo;
14124   }
14125   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
14126     typedef const int *iptr;
14127     iptr p = 0;
14128     ++p;
14129   }
14130   { /* AIX XL C 1.02.0.0 rejects this saying
14131        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
14132     struct s { int j; const int *ap[3]; };
14133     struct s *b; b->j = 5;
14134   }
14135   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
14136     const int foo = 10;
14137   }
14138 #endif
14139
14140   ;
14141   return 0;
14142 }
14143 _ACEOF
14144 rm -f conftest.$ac_objext
14145 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14146   (eval $ac_compile) 2>&5
14147   ac_status=$?
14148   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14149   (exit $ac_status); } &&
14150          { ac_try='test -s conftest.$ac_objext'
14151   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14152   (eval $ac_try) 2>&5
14153   ac_status=$?
14154   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14155   (exit $ac_status); }; }; then
14156   ac_cv_c_const=yes
14157 else
14158   echo "$as_me: failed program was:" >&5
14159 sed 's/^/| /' conftest.$ac_ext >&5
14160
14161 ac_cv_c_const=no
14162 fi
14163 rm -f conftest.$ac_objext conftest.$ac_ext
14164 fi
14165 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
14166 echo "${ECHO_T}$ac_cv_c_const" >&6
14167 if test $ac_cv_c_const = no; then
14168
14169 cat >>confdefs.h <<\_ACEOF
14170 #define const
14171 _ACEOF
14172
14173 fi
14174
14175 echo "$as_me:$LINENO: checking for inline" >&5
14176 echo $ECHO_N "checking for inline... $ECHO_C" >&6
14177 if test "${ac_cv_c_inline+set}" = set; then
14178   echo $ECHO_N "(cached) $ECHO_C" >&6
14179 else
14180   ac_cv_c_inline=no
14181 for ac_kw in inline __inline__ __inline; do
14182   cat >conftest.$ac_ext <<_ACEOF
14183 #line $LINENO "configure"
14184 /* confdefs.h.  */
14185 _ACEOF
14186 cat confdefs.h >>conftest.$ac_ext
14187 cat >>conftest.$ac_ext <<_ACEOF
14188 /* end confdefs.h.  */
14189 #ifndef __cplusplus
14190 typedef int foo_t;
14191 static $ac_kw foo_t static_foo () {return 0; }
14192 $ac_kw foo_t foo () {return 0; }
14193 #endif
14194
14195 _ACEOF
14196 rm -f conftest.$ac_objext
14197 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14198   (eval $ac_compile) 2>&5
14199   ac_status=$?
14200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14201   (exit $ac_status); } &&
14202          { ac_try='test -s conftest.$ac_objext'
14203   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14204   (eval $ac_try) 2>&5
14205   ac_status=$?
14206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14207   (exit $ac_status); }; }; then
14208   ac_cv_c_inline=$ac_kw; break
14209 else
14210   echo "$as_me: failed program was:" >&5
14211 sed 's/^/| /' conftest.$ac_ext >&5
14212
14213 fi
14214 rm -f conftest.$ac_objext conftest.$ac_ext
14215 done
14216
14217 fi
14218 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
14219 echo "${ECHO_T}$ac_cv_c_inline" >&6
14220 case $ac_cv_c_inline in
14221   inline | yes) ;;
14222   no)
14223 cat >>confdefs.h <<\_ACEOF
14224 #define inline
14225 _ACEOF
14226  ;;
14227   *)  cat >>confdefs.h <<_ACEOF
14228 #define inline $ac_cv_c_inline
14229 _ACEOF
14230  ;;
14231 esac
14232
14233 echo "$as_me:$LINENO: checking for mode_t" >&5
14234 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
14235 if test "${ac_cv_type_mode_t+set}" = set; then
14236   echo $ECHO_N "(cached) $ECHO_C" >&6
14237 else
14238   cat >conftest.$ac_ext <<_ACEOF
14239 #line $LINENO "configure"
14240 /* confdefs.h.  */
14241 _ACEOF
14242 cat confdefs.h >>conftest.$ac_ext
14243 cat >>conftest.$ac_ext <<_ACEOF
14244 /* end confdefs.h.  */
14245 $ac_includes_default
14246 int
14247 main ()
14248 {
14249 if ((mode_t *) 0)
14250   return 0;
14251 if (sizeof (mode_t))
14252   return 0;
14253   ;
14254   return 0;
14255 }
14256 _ACEOF
14257 rm -f conftest.$ac_objext
14258 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14259   (eval $ac_compile) 2>&5
14260   ac_status=$?
14261   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14262   (exit $ac_status); } &&
14263          { ac_try='test -s conftest.$ac_objext'
14264   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14265   (eval $ac_try) 2>&5
14266   ac_status=$?
14267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14268   (exit $ac_status); }; }; then
14269   ac_cv_type_mode_t=yes
14270 else
14271   echo "$as_me: failed program was:" >&5
14272 sed 's/^/| /' conftest.$ac_ext >&5
14273
14274 ac_cv_type_mode_t=no
14275 fi
14276 rm -f conftest.$ac_objext conftest.$ac_ext
14277 fi
14278 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
14279 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
14280 if test $ac_cv_type_mode_t = yes; then
14281
14282 cat >>confdefs.h <<_ACEOF
14283 #define HAVE_MODE_T 1
14284 _ACEOF
14285
14286
14287 fi
14288 echo "$as_me:$LINENO: checking for off_t" >&5
14289 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
14290 if test "${ac_cv_type_off_t+set}" = set; then
14291   echo $ECHO_N "(cached) $ECHO_C" >&6
14292 else
14293   cat >conftest.$ac_ext <<_ACEOF
14294 #line $LINENO "configure"
14295 /* confdefs.h.  */
14296 _ACEOF
14297 cat confdefs.h >>conftest.$ac_ext
14298 cat >>conftest.$ac_ext <<_ACEOF
14299 /* end confdefs.h.  */
14300 $ac_includes_default
14301 int
14302 main ()
14303 {
14304 if ((off_t *) 0)
14305   return 0;
14306 if (sizeof (off_t))
14307   return 0;
14308   ;
14309   return 0;
14310 }
14311 _ACEOF
14312 rm -f conftest.$ac_objext
14313 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14314   (eval $ac_compile) 2>&5
14315   ac_status=$?
14316   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14317   (exit $ac_status); } &&
14318          { ac_try='test -s conftest.$ac_objext'
14319   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14320   (eval $ac_try) 2>&5
14321   ac_status=$?
14322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14323   (exit $ac_status); }; }; then
14324   ac_cv_type_off_t=yes
14325 else
14326   echo "$as_me: failed program was:" >&5
14327 sed 's/^/| /' conftest.$ac_ext >&5
14328
14329 ac_cv_type_off_t=no
14330 fi
14331 rm -f conftest.$ac_objext conftest.$ac_ext
14332 fi
14333 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
14334 echo "${ECHO_T}$ac_cv_type_off_t" >&6
14335 if test $ac_cv_type_off_t = yes; then
14336
14337 cat >>confdefs.h <<_ACEOF
14338 #define HAVE_OFF_T 1
14339 _ACEOF
14340
14341
14342 fi
14343 echo "$as_me:$LINENO: checking for pid_t" >&5
14344 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
14345 if test "${ac_cv_type_pid_t+set}" = set; then
14346   echo $ECHO_N "(cached) $ECHO_C" >&6
14347 else
14348   cat >conftest.$ac_ext <<_ACEOF
14349 #line $LINENO "configure"
14350 /* confdefs.h.  */
14351 _ACEOF
14352 cat confdefs.h >>conftest.$ac_ext
14353 cat >>conftest.$ac_ext <<_ACEOF
14354 /* end confdefs.h.  */
14355 $ac_includes_default
14356 int
14357 main ()
14358 {
14359 if ((pid_t *) 0)
14360   return 0;
14361 if (sizeof (pid_t))
14362   return 0;
14363   ;
14364   return 0;
14365 }
14366 _ACEOF
14367 rm -f conftest.$ac_objext
14368 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14369   (eval $ac_compile) 2>&5
14370   ac_status=$?
14371   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14372   (exit $ac_status); } &&
14373          { ac_try='test -s conftest.$ac_objext'
14374   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14375   (eval $ac_try) 2>&5
14376   ac_status=$?
14377   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14378   (exit $ac_status); }; }; then
14379   ac_cv_type_pid_t=yes
14380 else
14381   echo "$as_me: failed program was:" >&5
14382 sed 's/^/| /' conftest.$ac_ext >&5
14383
14384 ac_cv_type_pid_t=no
14385 fi
14386 rm -f conftest.$ac_objext conftest.$ac_ext
14387 fi
14388 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
14389 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
14390 if test $ac_cv_type_pid_t = yes; then
14391
14392 cat >>confdefs.h <<_ACEOF
14393 #define HAVE_PID_T 1
14394 _ACEOF
14395
14396
14397 fi
14398 echo "$as_me:$LINENO: checking for size_t" >&5
14399 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
14400 if test "${ac_cv_type_size_t+set}" = set; then
14401   echo $ECHO_N "(cached) $ECHO_C" >&6
14402 else
14403   cat >conftest.$ac_ext <<_ACEOF
14404 #line $LINENO "configure"
14405 /* confdefs.h.  */
14406 _ACEOF
14407 cat confdefs.h >>conftest.$ac_ext
14408 cat >>conftest.$ac_ext <<_ACEOF
14409 /* end confdefs.h.  */
14410 $ac_includes_default
14411 int
14412 main ()
14413 {
14414 if ((size_t *) 0)
14415   return 0;
14416 if (sizeof (size_t))
14417   return 0;
14418   ;
14419   return 0;
14420 }
14421 _ACEOF
14422 rm -f conftest.$ac_objext
14423 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14424   (eval $ac_compile) 2>&5
14425   ac_status=$?
14426   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14427   (exit $ac_status); } &&
14428          { ac_try='test -s conftest.$ac_objext'
14429   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14430   (eval $ac_try) 2>&5
14431   ac_status=$?
14432   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14433   (exit $ac_status); }; }; then
14434   ac_cv_type_size_t=yes
14435 else
14436   echo "$as_me: failed program was:" >&5
14437 sed 's/^/| /' conftest.$ac_ext >&5
14438
14439 ac_cv_type_size_t=no
14440 fi
14441 rm -f conftest.$ac_objext conftest.$ac_ext
14442 fi
14443 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
14444 echo "${ECHO_T}$ac_cv_type_size_t" >&6
14445 if test $ac_cv_type_size_t = yes; then
14446
14447 cat >>confdefs.h <<_ACEOF
14448 #define HAVE_SIZE_T 1
14449 _ACEOF
14450
14451
14452 fi
14453 echo "$as_me:$LINENO: checking for ssize_t" >&5
14454 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
14455 if test "${ac_cv_type_ssize_t+set}" = set; then
14456   echo $ECHO_N "(cached) $ECHO_C" >&6
14457 else
14458   cat >conftest.$ac_ext <<_ACEOF
14459 #line $LINENO "configure"
14460 /* confdefs.h.  */
14461 _ACEOF
14462 cat confdefs.h >>conftest.$ac_ext
14463 cat >>conftest.$ac_ext <<_ACEOF
14464 /* end confdefs.h.  */
14465 $ac_includes_default
14466 int
14467 main ()
14468 {
14469 if ((ssize_t *) 0)
14470   return 0;
14471 if (sizeof (ssize_t))
14472   return 0;
14473   ;
14474   return 0;
14475 }
14476 _ACEOF
14477 rm -f conftest.$ac_objext
14478 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14479   (eval $ac_compile) 2>&5
14480   ac_status=$?
14481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14482   (exit $ac_status); } &&
14483          { ac_try='test -s conftest.$ac_objext'
14484   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14485   (eval $ac_try) 2>&5
14486   ac_status=$?
14487   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14488   (exit $ac_status); }; }; then
14489   ac_cv_type_ssize_t=yes
14490 else
14491   echo "$as_me: failed program was:" >&5
14492 sed 's/^/| /' conftest.$ac_ext >&5
14493
14494 ac_cv_type_ssize_t=no
14495 fi
14496 rm -f conftest.$ac_objext conftest.$ac_ext
14497 fi
14498 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
14499 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
14500 if test $ac_cv_type_ssize_t = yes; then
14501
14502 cat >>confdefs.h <<_ACEOF
14503 #define HAVE_SSIZE_T 1
14504 _ACEOF
14505
14506
14507 fi
14508
14509 echo "$as_me:$LINENO: checking for long long" >&5
14510 echo $ECHO_N "checking for long long... $ECHO_C" >&6
14511 if test "${ac_cv_type_long_long+set}" = set; then
14512   echo $ECHO_N "(cached) $ECHO_C" >&6
14513 else
14514   cat >conftest.$ac_ext <<_ACEOF
14515 #line $LINENO "configure"
14516 /* confdefs.h.  */
14517 _ACEOF
14518 cat confdefs.h >>conftest.$ac_ext
14519 cat >>conftest.$ac_ext <<_ACEOF
14520 /* end confdefs.h.  */
14521 $ac_includes_default
14522 int
14523 main ()
14524 {
14525 if ((long long *) 0)
14526   return 0;
14527 if (sizeof (long long))
14528   return 0;
14529   ;
14530   return 0;
14531 }
14532 _ACEOF
14533 rm -f conftest.$ac_objext
14534 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14535   (eval $ac_compile) 2>&5
14536   ac_status=$?
14537   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14538   (exit $ac_status); } &&
14539          { ac_try='test -s conftest.$ac_objext'
14540   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14541   (eval $ac_try) 2>&5
14542   ac_status=$?
14543   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14544   (exit $ac_status); }; }; then
14545   ac_cv_type_long_long=yes
14546 else
14547   echo "$as_me: failed program was:" >&5
14548 sed 's/^/| /' conftest.$ac_ext >&5
14549
14550 ac_cv_type_long_long=no
14551 fi
14552 rm -f conftest.$ac_objext conftest.$ac_ext
14553 fi
14554 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
14555 echo "${ECHO_T}$ac_cv_type_long_long" >&6
14556
14557 echo "$as_me:$LINENO: checking size of long long" >&5
14558 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
14559 if test "${ac_cv_sizeof_long_long+set}" = set; then
14560   echo $ECHO_N "(cached) $ECHO_C" >&6
14561 else
14562   if test "$ac_cv_type_long_long" = yes; then
14563   # The cast to unsigned long works around a bug in the HP C Compiler
14564   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14565   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14566   # This bug is HP SR number 8606223364.
14567   if test "$cross_compiling" = yes; then
14568   # Depending upon the size, compute the lo and hi bounds.
14569 cat >conftest.$ac_ext <<_ACEOF
14570 #line $LINENO "configure"
14571 /* confdefs.h.  */
14572 _ACEOF
14573 cat confdefs.h >>conftest.$ac_ext
14574 cat >>conftest.$ac_ext <<_ACEOF
14575 /* end confdefs.h.  */
14576 $ac_includes_default
14577 int
14578 main ()
14579 {
14580 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
14581 test_array [0] = 0
14582
14583   ;
14584   return 0;
14585 }
14586 _ACEOF
14587 rm -f conftest.$ac_objext
14588 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14589   (eval $ac_compile) 2>&5
14590   ac_status=$?
14591   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14592   (exit $ac_status); } &&
14593          { ac_try='test -s conftest.$ac_objext'
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); }; }; then
14599   ac_lo=0 ac_mid=0
14600   while :; do
14601     cat >conftest.$ac_ext <<_ACEOF
14602 #line $LINENO "configure"
14603 /* confdefs.h.  */
14604 _ACEOF
14605 cat confdefs.h >>conftest.$ac_ext
14606 cat >>conftest.$ac_ext <<_ACEOF
14607 /* end confdefs.h.  */
14608 $ac_includes_default
14609 int
14610 main ()
14611 {
14612 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
14613 test_array [0] = 0
14614
14615   ;
14616   return 0;
14617 }
14618 _ACEOF
14619 rm -f conftest.$ac_objext
14620 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14621   (eval $ac_compile) 2>&5
14622   ac_status=$?
14623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14624   (exit $ac_status); } &&
14625          { ac_try='test -s conftest.$ac_objext'
14626   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14627   (eval $ac_try) 2>&5
14628   ac_status=$?
14629   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14630   (exit $ac_status); }; }; then
14631   ac_hi=$ac_mid; break
14632 else
14633   echo "$as_me: failed program was:" >&5
14634 sed 's/^/| /' conftest.$ac_ext >&5
14635
14636 ac_lo=`expr $ac_mid + 1`
14637                     if test $ac_lo -le $ac_mid; then
14638                       ac_lo= ac_hi=
14639                       break
14640                     fi
14641                     ac_mid=`expr 2 '*' $ac_mid + 1`
14642 fi
14643 rm -f conftest.$ac_objext conftest.$ac_ext
14644   done
14645 else
14646   echo "$as_me: failed program was:" >&5
14647 sed 's/^/| /' conftest.$ac_ext >&5
14648
14649 cat >conftest.$ac_ext <<_ACEOF
14650 #line $LINENO "configure"
14651 /* confdefs.h.  */
14652 _ACEOF
14653 cat confdefs.h >>conftest.$ac_ext
14654 cat >>conftest.$ac_ext <<_ACEOF
14655 /* end confdefs.h.  */
14656 $ac_includes_default
14657 int
14658 main ()
14659 {
14660 static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
14661 test_array [0] = 0
14662
14663   ;
14664   return 0;
14665 }
14666 _ACEOF
14667 rm -f conftest.$ac_objext
14668 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14669   (eval $ac_compile) 2>&5
14670   ac_status=$?
14671   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14672   (exit $ac_status); } &&
14673          { ac_try='test -s conftest.$ac_objext'
14674   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14675   (eval $ac_try) 2>&5
14676   ac_status=$?
14677   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14678   (exit $ac_status); }; }; then
14679   ac_hi=-1 ac_mid=-1
14680   while :; do
14681     cat >conftest.$ac_ext <<_ACEOF
14682 #line $LINENO "configure"
14683 /* confdefs.h.  */
14684 _ACEOF
14685 cat confdefs.h >>conftest.$ac_ext
14686 cat >>conftest.$ac_ext <<_ACEOF
14687 /* end confdefs.h.  */
14688 $ac_includes_default
14689 int
14690 main ()
14691 {
14692 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
14693 test_array [0] = 0
14694
14695   ;
14696   return 0;
14697 }
14698 _ACEOF
14699 rm -f conftest.$ac_objext
14700 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14701   (eval $ac_compile) 2>&5
14702   ac_status=$?
14703   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14704   (exit $ac_status); } &&
14705          { ac_try='test -s conftest.$ac_objext'
14706   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14707   (eval $ac_try) 2>&5
14708   ac_status=$?
14709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14710   (exit $ac_status); }; }; then
14711   ac_lo=$ac_mid; break
14712 else
14713   echo "$as_me: failed program was:" >&5
14714 sed 's/^/| /' conftest.$ac_ext >&5
14715
14716 ac_hi=`expr '(' $ac_mid ')' - 1`
14717                        if test $ac_mid -le $ac_hi; then
14718                          ac_lo= ac_hi=
14719                          break
14720                        fi
14721                        ac_mid=`expr 2 '*' $ac_mid`
14722 fi
14723 rm -f conftest.$ac_objext conftest.$ac_ext
14724   done
14725 else
14726   echo "$as_me: failed program was:" >&5
14727 sed 's/^/| /' conftest.$ac_ext >&5
14728
14729 ac_lo= ac_hi=
14730 fi
14731 rm -f conftest.$ac_objext conftest.$ac_ext
14732 fi
14733 rm -f conftest.$ac_objext conftest.$ac_ext
14734 # Binary search between lo and hi bounds.
14735 while test "x$ac_lo" != "x$ac_hi"; do
14736   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14737   cat >conftest.$ac_ext <<_ACEOF
14738 #line $LINENO "configure"
14739 /* confdefs.h.  */
14740 _ACEOF
14741 cat confdefs.h >>conftest.$ac_ext
14742 cat >>conftest.$ac_ext <<_ACEOF
14743 /* end confdefs.h.  */
14744 $ac_includes_default
14745 int
14746 main ()
14747 {
14748 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
14749 test_array [0] = 0
14750
14751   ;
14752   return 0;
14753 }
14754 _ACEOF
14755 rm -f conftest.$ac_objext
14756 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14757   (eval $ac_compile) 2>&5
14758   ac_status=$?
14759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14760   (exit $ac_status); } &&
14761          { ac_try='test -s conftest.$ac_objext'
14762   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14763   (eval $ac_try) 2>&5
14764   ac_status=$?
14765   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14766   (exit $ac_status); }; }; then
14767   ac_hi=$ac_mid
14768 else
14769   echo "$as_me: failed program was:" >&5
14770 sed 's/^/| /' conftest.$ac_ext >&5
14771
14772 ac_lo=`expr '(' $ac_mid ')' + 1`
14773 fi
14774 rm -f conftest.$ac_objext conftest.$ac_ext
14775 done
14776 case $ac_lo in
14777 ?*) ac_cv_sizeof_long_long=$ac_lo;;
14778 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
14779 See \`config.log' for more details." >&5
14780 echo "$as_me: error: cannot compute sizeof (long long), 77
14781 See \`config.log' for more details." >&2;}
14782    { (exit 1); exit 1; }; } ;;
14783 esac
14784 else
14785   if test "$cross_compiling" = yes; then
14786   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14787 See \`config.log' for more details." >&5
14788 echo "$as_me: error: cannot run test program while cross compiling
14789 See \`config.log' for more details." >&2;}
14790    { (exit 1); exit 1; }; }
14791 else
14792   cat >conftest.$ac_ext <<_ACEOF
14793 #line $LINENO "configure"
14794 /* confdefs.h.  */
14795 _ACEOF
14796 cat confdefs.h >>conftest.$ac_ext
14797 cat >>conftest.$ac_ext <<_ACEOF
14798 /* end confdefs.h.  */
14799 $ac_includes_default
14800 long longval () { return (long) (sizeof (long long)); }
14801 unsigned long ulongval () { return (long) (sizeof (long long)); }
14802 #include <stdio.h>
14803 #include <stdlib.h>
14804 int
14805 main ()
14806 {
14807
14808   FILE *f = fopen ("conftest.val", "w");
14809   if (! f)
14810     exit (1);
14811   if (((long) (sizeof (long long))) < 0)
14812     {
14813       long i = longval ();
14814       if (i != ((long) (sizeof (long long))))
14815         exit (1);
14816       fprintf (f, "%ld\n", i);
14817     }
14818   else
14819     {
14820       unsigned long i = ulongval ();
14821       if (i != ((long) (sizeof (long long))))
14822         exit (1);
14823       fprintf (f, "%lu\n", i);
14824     }
14825   exit (ferror (f) || fclose (f) != 0);
14826
14827   ;
14828   return 0;
14829 }
14830 _ACEOF
14831 rm -f conftest$ac_exeext
14832 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14833   (eval $ac_link) 2>&5
14834   ac_status=$?
14835   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14836   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14837   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14838   (eval $ac_try) 2>&5
14839   ac_status=$?
14840   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14841   (exit $ac_status); }; }; then
14842   ac_cv_sizeof_long_long=`cat conftest.val`
14843 else
14844   echo "$as_me: program exited with status $ac_status" >&5
14845 echo "$as_me: failed program was:" >&5
14846 sed 's/^/| /' conftest.$ac_ext >&5
14847
14848 ( exit $ac_status )
14849 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
14850 See \`config.log' for more details." >&5
14851 echo "$as_me: error: cannot compute sizeof (long long), 77
14852 See \`config.log' for more details." >&2;}
14853    { (exit 1); exit 1; }; }
14854 fi
14855 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14856 fi
14857 fi
14858 rm -f conftest.val
14859 else
14860   ac_cv_sizeof_long_long=0
14861 fi
14862 fi
14863 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
14864 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
14865 cat >>confdefs.h <<_ACEOF
14866 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
14867 _ACEOF
14868
14869
14870
14871 echo "$as_me:$LINENO: checking whether linux/input.h is for real" >&5
14872 echo $ECHO_N "checking whether linux/input.h is for real... $ECHO_C" >&6
14873 if test "${wine_cv_linux_input_h+set}" = set; then
14874   echo $ECHO_N "(cached) $ECHO_C" >&6
14875 else
14876   cat >conftest.$ac_ext <<_ACEOF
14877 #line $LINENO "configure"
14878 /* confdefs.h.  */
14879 _ACEOF
14880 cat confdefs.h >>conftest.$ac_ext
14881 cat >>conftest.$ac_ext <<_ACEOF
14882 /* end confdefs.h.  */
14883
14884             #include <linux/input.h>
14885
14886 int
14887 main ()
14888 {
14889
14890             int foo = EVIOCGBIT(EV_ABS,42);
14891             int bar = BTN_PINKIE;
14892             int fortytwo = 42;
14893
14894   ;
14895   return 0;
14896 }
14897 _ACEOF
14898 rm -f conftest.$ac_objext
14899 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14900   (eval $ac_compile) 2>&5
14901   ac_status=$?
14902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14903   (exit $ac_status); } &&
14904          { ac_try='test -s conftest.$ac_objext'
14905   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14906   (eval $ac_try) 2>&5
14907   ac_status=$?
14908   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14909   (exit $ac_status); }; }; then
14910   wine_cv_linux_input_h=yes
14911 else
14912   echo "$as_me: failed program was:" >&5
14913 sed 's/^/| /' conftest.$ac_ext >&5
14914
14915 wine_cv_linux_input_h=no
14916 fi
14917 rm -f conftest.$ac_objext conftest.$ac_ext
14918
14919 fi
14920 echo "$as_me:$LINENO: result: $wine_cv_linux_input_h" >&5
14921 echo "${ECHO_T}$wine_cv_linux_input_h" >&6
14922     if test "$wine_cv_linux_input_h" = "yes"
14923     then
14924
14925 cat >>confdefs.h <<\_ACEOF
14926 #define HAVE_CORRECT_LINUXINPUT_H 1
14927 _ACEOF
14928
14929     fi
14930
14931
14932 echo "$as_me:$LINENO: checking whether we can use re-entrant gethostbyname_r Linux style" >&5
14933 echo $ECHO_N "checking whether we can use re-entrant gethostbyname_r Linux style... $ECHO_C" >&6
14934 if test "${wine_cv_linux_gethostbyname_r_6+set}" = set; then
14935   echo $ECHO_N "(cached) $ECHO_C" >&6
14936 else
14937   cat >conftest.$ac_ext <<_ACEOF
14938 #line $LINENO "configure"
14939 /* confdefs.h.  */
14940 _ACEOF
14941 cat confdefs.h >>conftest.$ac_ext
14942 cat >>conftest.$ac_ext <<_ACEOF
14943 /* end confdefs.h.  */
14944
14945 #include <netdb.h>
14946
14947 int
14948 main ()
14949 {
14950
14951     char *name=NULL;
14952     struct hostent he;
14953     struct hostent *result;
14954     char *buf=NULL;
14955     int bufsize=0;
14956     int res,errnr;
14957     char *addr=NULL;
14958     int addrlen=0;
14959     int addrtype=0;
14960     res=gethostbyname_r(name,&he,buf,bufsize,&result,&errnr);
14961     res=gethostbyaddr_r(addr, addrlen, addrtype,&he,buf,bufsize,&result,&errnr);
14962
14963   ;
14964   return 0;
14965 }
14966 _ACEOF
14967 rm -f conftest.$ac_objext
14968 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14969   (eval $ac_compile) 2>&5
14970   ac_status=$?
14971   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14972   (exit $ac_status); } &&
14973          { ac_try='test -s conftest.$ac_objext'
14974   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14975   (eval $ac_try) 2>&5
14976   ac_status=$?
14977   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14978   (exit $ac_status); }; }; then
14979   wine_cv_linux_gethostbyname_r_6=yes
14980 else
14981   echo "$as_me: failed program was:" >&5
14982 sed 's/^/| /' conftest.$ac_ext >&5
14983
14984 wine_cv_linux_gethostbyname_r_6=no
14985
14986 fi
14987 rm -f conftest.$ac_objext conftest.$ac_ext
14988
14989 fi
14990 echo "$as_me:$LINENO: result: $wine_cv_linux_gethostbyname_r_6" >&5
14991 echo "${ECHO_T}$wine_cv_linux_gethostbyname_r_6" >&6
14992    if test "$wine_cv_linux_gethostbyname_r_6" = "yes"
14993    then
14994
14995 cat >>confdefs.h <<\_ACEOF
14996 #define HAVE_LINUX_GETHOSTBYNAME_R_6 1
14997 _ACEOF
14998
14999    fi
15000
15001 if test "$ac_cv_header_linux_joystick_h" = "yes"
15002 then
15003    echo "$as_me:$LINENO: checking whether linux/joystick.h uses the Linux 2.2+ API" >&5
15004 echo $ECHO_N "checking whether linux/joystick.h uses the Linux 2.2+ API... $ECHO_C" >&6
15005 if test "${wine_cv_linux_joystick_22_api+set}" = set; then
15006   echo $ECHO_N "(cached) $ECHO_C" >&6
15007 else
15008   cat >conftest.$ac_ext <<_ACEOF
15009 #line $LINENO "configure"
15010 /* confdefs.h.  */
15011 _ACEOF
15012 cat confdefs.h >>conftest.$ac_ext
15013 cat >>conftest.$ac_ext <<_ACEOF
15014 /* end confdefs.h.  */
15015
15016         #include <sys/ioctl.h>
15017         #include <linux/joystick.h>
15018
15019         struct js_event blub;
15020         #if !defined(JS_EVENT_AXIS) || !defined(JS_EVENT_BUTTON)
15021         #error "no 2.2 header"
15022         #endif
15023
15024 int
15025 main ()
15026 {
15027 /*empty*/
15028   ;
15029   return 0;
15030 }
15031 _ACEOF
15032 rm -f conftest.$ac_objext
15033 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15034   (eval $ac_compile) 2>&5
15035   ac_status=$?
15036   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15037   (exit $ac_status); } &&
15038          { ac_try='test -s conftest.$ac_objext'
15039   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15040   (eval $ac_try) 2>&5
15041   ac_status=$?
15042   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15043   (exit $ac_status); }; }; then
15044   wine_cv_linux_joystick_22_api=yes
15045 else
15046   echo "$as_me: failed program was:" >&5
15047 sed 's/^/| /' conftest.$ac_ext >&5
15048
15049 wine_cv_linux_joystick_22_api=no
15050 fi
15051 rm -f conftest.$ac_objext conftest.$ac_ext
15052
15053 fi
15054 echo "$as_me:$LINENO: result: $wine_cv_linux_joystick_22_api" >&5
15055 echo "${ECHO_T}$wine_cv_linux_joystick_22_api" >&6
15056    if test "$wine_cv_linux_joystick_22_api" = "yes"
15057    then
15058
15059 cat >>confdefs.h <<\_ACEOF
15060 #define HAVE_LINUX_22_JOYSTICK_API 1
15061 _ACEOF
15062
15063    fi
15064 fi
15065
15066
15067 if test "$ac_cv_header_sys_vfs_h" = "yes"
15068 then
15069     echo "$as_me:$LINENO: checking whether sys/vfs.h defines statfs" >&5
15070 echo $ECHO_N "checking whether sys/vfs.h defines statfs... $ECHO_C" >&6
15071 if test "${wine_cv_sys_vfs_has_statfs+set}" = set; then
15072   echo $ECHO_N "(cached) $ECHO_C" >&6
15073 else
15074   cat >conftest.$ac_ext <<_ACEOF
15075 #line $LINENO "configure"
15076 /* confdefs.h.  */
15077 _ACEOF
15078 cat confdefs.h >>conftest.$ac_ext
15079 cat >>conftest.$ac_ext <<_ACEOF
15080 /* end confdefs.h.  */
15081
15082         #include <sys/types.h>
15083         #ifdef HAVE_SYS_PARAM_H
15084         # include <sys/param.h>
15085         #endif
15086         #include <sys/vfs.h>
15087
15088 int
15089 main ()
15090 {
15091
15092                 struct statfs stfs;
15093
15094                 memset(&stfs,0,sizeof(stfs));
15095
15096   ;
15097   return 0;
15098 }
15099 _ACEOF
15100 rm -f conftest.$ac_objext
15101 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15102   (eval $ac_compile) 2>&5
15103   ac_status=$?
15104   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15105   (exit $ac_status); } &&
15106          { ac_try='test -s conftest.$ac_objext'
15107   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15108   (eval $ac_try) 2>&5
15109   ac_status=$?
15110   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15111   (exit $ac_status); }; }; then
15112   wine_cv_sys_vfs_has_statfs=yes
15113 else
15114   echo "$as_me: failed program was:" >&5
15115 sed 's/^/| /' conftest.$ac_ext >&5
15116
15117 wine_cv_sys_vfs_has_statfs=no
15118
15119 fi
15120 rm -f conftest.$ac_objext conftest.$ac_ext
15121
15122 fi
15123 echo "$as_me:$LINENO: result: $wine_cv_sys_vfs_has_statfs" >&5
15124 echo "${ECHO_T}$wine_cv_sys_vfs_has_statfs" >&6
15125     if test "$wine_cv_sys_vfs_has_statfs" = "yes"
15126     then
15127
15128 cat >>confdefs.h <<\_ACEOF
15129 #define STATFS_DEFINED_BY_SYS_VFS 1
15130 _ACEOF
15131
15132     fi
15133 fi
15134
15135 if test "$ac_cv_header_sys_statfs_h" = "yes"
15136 then
15137     echo "$as_me:$LINENO: checking whether sys/statfs.h defines statfs" >&5
15138 echo $ECHO_N "checking whether sys/statfs.h defines statfs... $ECHO_C" >&6
15139 if test "${wine_cv_sys_statfs_has_statfs+set}" = set; then
15140   echo $ECHO_N "(cached) $ECHO_C" >&6
15141 else
15142   cat >conftest.$ac_ext <<_ACEOF
15143 #line $LINENO "configure"
15144 /* confdefs.h.  */
15145 _ACEOF
15146 cat confdefs.h >>conftest.$ac_ext
15147 cat >>conftest.$ac_ext <<_ACEOF
15148 /* end confdefs.h.  */
15149
15150         #include <sys/types.h>
15151         #ifdef HAVE_SYS_PARAM_H
15152         # include <sys/param.h>
15153         #endif
15154         #include <sys/statfs.h>
15155
15156 int
15157 main ()
15158 {
15159
15160                 struct statfs stfs;
15161
15162   ;
15163   return 0;
15164 }
15165 _ACEOF
15166 rm -f conftest.$ac_objext
15167 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15168   (eval $ac_compile) 2>&5
15169   ac_status=$?
15170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15171   (exit $ac_status); } &&
15172          { ac_try='test -s conftest.$ac_objext'
15173   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15174   (eval $ac_try) 2>&5
15175   ac_status=$?
15176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15177   (exit $ac_status); }; }; then
15178   wine_cv_sys_statfs_has_statfs=yes
15179 else
15180   echo "$as_me: failed program was:" >&5
15181 sed 's/^/| /' conftest.$ac_ext >&5
15182
15183 wine_cv_sys_statfs_has_statfs=no
15184
15185 fi
15186 rm -f conftest.$ac_objext conftest.$ac_ext
15187
15188 fi
15189 echo "$as_me:$LINENO: result: $wine_cv_sys_statfs_has_statfs" >&5
15190 echo "${ECHO_T}$wine_cv_sys_statfs_has_statfs" >&6
15191     if test "$wine_cv_sys_statfs_has_statfs" = "yes"
15192     then
15193
15194 cat >>confdefs.h <<\_ACEOF
15195 #define STATFS_DEFINED_BY_SYS_STATFS 1
15196 _ACEOF
15197
15198     fi
15199 fi
15200
15201 if test "$ac_cv_header_sys_mount_h" = "yes"
15202 then
15203     echo "$as_me:$LINENO: checking whether sys/mount.h defines statfs" >&5
15204 echo $ECHO_N "checking whether sys/mount.h defines statfs... $ECHO_C" >&6
15205 if test "${wine_cv_sys_mount_has_statfs+set}" = set; then
15206   echo $ECHO_N "(cached) $ECHO_C" >&6
15207 else
15208   cat >conftest.$ac_ext <<_ACEOF
15209 #line $LINENO "configure"
15210 /* confdefs.h.  */
15211 _ACEOF
15212 cat confdefs.h >>conftest.$ac_ext
15213 cat >>conftest.$ac_ext <<_ACEOF
15214 /* end confdefs.h.  */
15215
15216         #include <sys/types.h>
15217         #ifdef HAVE_SYS_PARAM_H
15218         # include <sys/param.h>
15219         #endif
15220         #include <sys/mount.h>
15221
15222 int
15223 main ()
15224 {
15225
15226                 struct statfs stfs;
15227
15228   ;
15229   return 0;
15230 }
15231 _ACEOF
15232 rm -f conftest.$ac_objext
15233 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15234   (eval $ac_compile) 2>&5
15235   ac_status=$?
15236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15237   (exit $ac_status); } &&
15238          { ac_try='test -s conftest.$ac_objext'
15239   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15240   (eval $ac_try) 2>&5
15241   ac_status=$?
15242   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15243   (exit $ac_status); }; }; then
15244   wine_cv_sys_mount_has_statfs=yes
15245 else
15246   echo "$as_me: failed program was:" >&5
15247 sed 's/^/| /' conftest.$ac_ext >&5
15248
15249 wine_cv_sys_mount_has_statfs=no
15250
15251 fi
15252 rm -f conftest.$ac_objext conftest.$ac_ext
15253
15254 fi
15255 echo "$as_me:$LINENO: result: $wine_cv_sys_mount_has_statfs" >&5
15256 echo "${ECHO_T}$wine_cv_sys_mount_has_statfs" >&6
15257     if test "$wine_cv_sys_mount_has_statfs" = "yes"
15258     then
15259
15260 cat >>confdefs.h <<\_ACEOF
15261 #define STATFS_DEFINED_BY_SYS_MOUNT 1
15262 _ACEOF
15263
15264     fi
15265 fi
15266
15267
15268 echo "$as_me:$LINENO: checking for struct statfs.f_bfree" >&5
15269 echo $ECHO_N "checking for struct statfs.f_bfree... $ECHO_C" >&6
15270 if test "${ac_cv_member_struct_statfs_f_bfree+set}" = set; then
15271   echo $ECHO_N "(cached) $ECHO_C" >&6
15272 else
15273   cat >conftest.$ac_ext <<_ACEOF
15274 #line $LINENO "configure"
15275 /* confdefs.h.  */
15276 _ACEOF
15277 cat confdefs.h >>conftest.$ac_ext
15278 cat >>conftest.$ac_ext <<_ACEOF
15279 /* end confdefs.h.  */
15280 #include <sys/types.h>
15281 #ifdef HAVE_SYS_PARAM_H
15282 # include <sys/param.h>
15283 #endif
15284 #ifdef STATFS_DEFINED_BY_SYS_MOUNT
15285 # include <sys/mount.h>
15286 #else
15287 # ifdef STATFS_DEFINED_BY_SYS_VFS
15288 #  include <sys/vfs.h>
15289 # else
15290 #  ifdef STATFS_DEFINED_BY_SYS_STATFS
15291 #   include <sys/statfs.h>
15292 #  endif
15293 # endif
15294 #endif
15295
15296 int
15297 main ()
15298 {
15299 static struct statfs ac_aggr;
15300 if (ac_aggr.f_bfree)
15301 return 0;
15302   ;
15303   return 0;
15304 }
15305 _ACEOF
15306 rm -f conftest.$ac_objext
15307 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15308   (eval $ac_compile) 2>&5
15309   ac_status=$?
15310   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15311   (exit $ac_status); } &&
15312          { ac_try='test -s conftest.$ac_objext'
15313   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15314   (eval $ac_try) 2>&5
15315   ac_status=$?
15316   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15317   (exit $ac_status); }; }; then
15318   ac_cv_member_struct_statfs_f_bfree=yes
15319 else
15320   echo "$as_me: failed program was:" >&5
15321 sed 's/^/| /' conftest.$ac_ext >&5
15322
15323 cat >conftest.$ac_ext <<_ACEOF
15324 #line $LINENO "configure"
15325 /* confdefs.h.  */
15326 _ACEOF
15327 cat confdefs.h >>conftest.$ac_ext
15328 cat >>conftest.$ac_ext <<_ACEOF
15329 /* end confdefs.h.  */
15330 #include <sys/types.h>
15331 #ifdef HAVE_SYS_PARAM_H
15332 # include <sys/param.h>
15333 #endif
15334 #ifdef STATFS_DEFINED_BY_SYS_MOUNT
15335 # include <sys/mount.h>
15336 #else
15337 # ifdef STATFS_DEFINED_BY_SYS_VFS
15338 #  include <sys/vfs.h>
15339 # else
15340 #  ifdef STATFS_DEFINED_BY_SYS_STATFS
15341 #   include <sys/statfs.h>
15342 #  endif
15343 # endif
15344 #endif
15345
15346 int
15347 main ()
15348 {
15349 static struct statfs ac_aggr;
15350 if (sizeof ac_aggr.f_bfree)
15351 return 0;
15352   ;
15353   return 0;
15354 }
15355 _ACEOF
15356 rm -f conftest.$ac_objext
15357 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15358   (eval $ac_compile) 2>&5
15359   ac_status=$?
15360   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15361   (exit $ac_status); } &&
15362          { ac_try='test -s conftest.$ac_objext'
15363   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15364   (eval $ac_try) 2>&5
15365   ac_status=$?
15366   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15367   (exit $ac_status); }; }; then
15368   ac_cv_member_struct_statfs_f_bfree=yes
15369 else
15370   echo "$as_me: failed program was:" >&5
15371 sed 's/^/| /' conftest.$ac_ext >&5
15372
15373 ac_cv_member_struct_statfs_f_bfree=no
15374 fi
15375 rm -f conftest.$ac_objext conftest.$ac_ext
15376 fi
15377 rm -f conftest.$ac_objext conftest.$ac_ext
15378 fi
15379 echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_bfree" >&5
15380 echo "${ECHO_T}$ac_cv_member_struct_statfs_f_bfree" >&6
15381 if test $ac_cv_member_struct_statfs_f_bfree = yes; then
15382
15383 cat >>confdefs.h <<_ACEOF
15384 #define HAVE_STRUCT_STATFS_F_BFREE 1
15385 _ACEOF
15386
15387
15388 fi
15389 echo "$as_me:$LINENO: checking for struct statfs.f_bavail" >&5
15390 echo $ECHO_N "checking for struct statfs.f_bavail... $ECHO_C" >&6
15391 if test "${ac_cv_member_struct_statfs_f_bavail+set}" = set; then
15392   echo $ECHO_N "(cached) $ECHO_C" >&6
15393 else
15394   cat >conftest.$ac_ext <<_ACEOF
15395 #line $LINENO "configure"
15396 /* confdefs.h.  */
15397 _ACEOF
15398 cat confdefs.h >>conftest.$ac_ext
15399 cat >>conftest.$ac_ext <<_ACEOF
15400 /* end confdefs.h.  */
15401 #include <sys/types.h>
15402 #ifdef HAVE_SYS_PARAM_H
15403 # include <sys/param.h>
15404 #endif
15405 #ifdef STATFS_DEFINED_BY_SYS_MOUNT
15406 # include <sys/mount.h>
15407 #else
15408 # ifdef STATFS_DEFINED_BY_SYS_VFS
15409 #  include <sys/vfs.h>
15410 # else
15411 #  ifdef STATFS_DEFINED_BY_SYS_STATFS
15412 #   include <sys/statfs.h>
15413 #  endif
15414 # endif
15415 #endif
15416
15417 int
15418 main ()
15419 {
15420 static struct statfs ac_aggr;
15421 if (ac_aggr.f_bavail)
15422 return 0;
15423   ;
15424   return 0;
15425 }
15426 _ACEOF
15427 rm -f conftest.$ac_objext
15428 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15429   (eval $ac_compile) 2>&5
15430   ac_status=$?
15431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15432   (exit $ac_status); } &&
15433          { ac_try='test -s conftest.$ac_objext'
15434   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15435   (eval $ac_try) 2>&5
15436   ac_status=$?
15437   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15438   (exit $ac_status); }; }; then
15439   ac_cv_member_struct_statfs_f_bavail=yes
15440 else
15441   echo "$as_me: failed program was:" >&5
15442 sed 's/^/| /' conftest.$ac_ext >&5
15443
15444 cat >conftest.$ac_ext <<_ACEOF
15445 #line $LINENO "configure"
15446 /* confdefs.h.  */
15447 _ACEOF
15448 cat confdefs.h >>conftest.$ac_ext
15449 cat >>conftest.$ac_ext <<_ACEOF
15450 /* end confdefs.h.  */
15451 #include <sys/types.h>
15452 #ifdef HAVE_SYS_PARAM_H
15453 # include <sys/param.h>
15454 #endif
15455 #ifdef STATFS_DEFINED_BY_SYS_MOUNT
15456 # include <sys/mount.h>
15457 #else
15458 # ifdef STATFS_DEFINED_BY_SYS_VFS
15459 #  include <sys/vfs.h>
15460 # else
15461 #  ifdef STATFS_DEFINED_BY_SYS_STATFS
15462 #   include <sys/statfs.h>
15463 #  endif
15464 # endif
15465 #endif
15466
15467 int
15468 main ()
15469 {
15470 static struct statfs ac_aggr;
15471 if (sizeof ac_aggr.f_bavail)
15472 return 0;
15473   ;
15474   return 0;
15475 }
15476 _ACEOF
15477 rm -f conftest.$ac_objext
15478 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15479   (eval $ac_compile) 2>&5
15480   ac_status=$?
15481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15482   (exit $ac_status); } &&
15483          { ac_try='test -s conftest.$ac_objext'
15484   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15485   (eval $ac_try) 2>&5
15486   ac_status=$?
15487   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15488   (exit $ac_status); }; }; then
15489   ac_cv_member_struct_statfs_f_bavail=yes
15490 else
15491   echo "$as_me: failed program was:" >&5
15492 sed 's/^/| /' conftest.$ac_ext >&5
15493
15494 ac_cv_member_struct_statfs_f_bavail=no
15495 fi
15496 rm -f conftest.$ac_objext conftest.$ac_ext
15497 fi
15498 rm -f conftest.$ac_objext conftest.$ac_ext
15499 fi
15500 echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_bavail" >&5
15501 echo "${ECHO_T}$ac_cv_member_struct_statfs_f_bavail" >&6
15502 if test $ac_cv_member_struct_statfs_f_bavail = yes; then
15503
15504 cat >>confdefs.h <<_ACEOF
15505 #define HAVE_STRUCT_STATFS_F_BAVAIL 1
15506 _ACEOF
15507
15508
15509 fi
15510
15511
15512 echo "$as_me:$LINENO: checking for struct msghdr.msg_accrights" >&5
15513 echo $ECHO_N "checking for struct msghdr.msg_accrights... $ECHO_C" >&6
15514 if test "${ac_cv_member_struct_msghdr_msg_accrights+set}" = set; then
15515   echo $ECHO_N "(cached) $ECHO_C" >&6
15516 else
15517   cat >conftest.$ac_ext <<_ACEOF
15518 #line $LINENO "configure"
15519 /* confdefs.h.  */
15520 _ACEOF
15521 cat confdefs.h >>conftest.$ac_ext
15522 cat >>conftest.$ac_ext <<_ACEOF
15523 /* end confdefs.h.  */
15524 #include <sys/types.h>
15525 #ifdef HAVE_SYS_SOCKET_H
15526 # include <sys/socket.h>
15527 #endif
15528 #ifdef HAVE_SYS_UN_H
15529 # include <sys/un.h>
15530 #endif
15531
15532 int
15533 main ()
15534 {
15535 static struct msghdr ac_aggr;
15536 if (ac_aggr.msg_accrights)
15537 return 0;
15538   ;
15539   return 0;
15540 }
15541 _ACEOF
15542 rm -f conftest.$ac_objext
15543 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15544   (eval $ac_compile) 2>&5
15545   ac_status=$?
15546   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15547   (exit $ac_status); } &&
15548          { ac_try='test -s conftest.$ac_objext'
15549   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15550   (eval $ac_try) 2>&5
15551   ac_status=$?
15552   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15553   (exit $ac_status); }; }; then
15554   ac_cv_member_struct_msghdr_msg_accrights=yes
15555 else
15556   echo "$as_me: failed program was:" >&5
15557 sed 's/^/| /' conftest.$ac_ext >&5
15558
15559 cat >conftest.$ac_ext <<_ACEOF
15560 #line $LINENO "configure"
15561 /* confdefs.h.  */
15562 _ACEOF
15563 cat confdefs.h >>conftest.$ac_ext
15564 cat >>conftest.$ac_ext <<_ACEOF
15565 /* end confdefs.h.  */
15566 #include <sys/types.h>
15567 #ifdef HAVE_SYS_SOCKET_H
15568 # include <sys/socket.h>
15569 #endif
15570 #ifdef HAVE_SYS_UN_H
15571 # include <sys/un.h>
15572 #endif
15573
15574 int
15575 main ()
15576 {
15577 static struct msghdr ac_aggr;
15578 if (sizeof ac_aggr.msg_accrights)
15579 return 0;
15580   ;
15581   return 0;
15582 }
15583 _ACEOF
15584 rm -f conftest.$ac_objext
15585 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15586   (eval $ac_compile) 2>&5
15587   ac_status=$?
15588   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15589   (exit $ac_status); } &&
15590          { ac_try='test -s conftest.$ac_objext'
15591   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15592   (eval $ac_try) 2>&5
15593   ac_status=$?
15594   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15595   (exit $ac_status); }; }; then
15596   ac_cv_member_struct_msghdr_msg_accrights=yes
15597 else
15598   echo "$as_me: failed program was:" >&5
15599 sed 's/^/| /' conftest.$ac_ext >&5
15600
15601 ac_cv_member_struct_msghdr_msg_accrights=no
15602 fi
15603 rm -f conftest.$ac_objext conftest.$ac_ext
15604 fi
15605 rm -f conftest.$ac_objext conftest.$ac_ext
15606 fi
15607 echo "$as_me:$LINENO: result: $ac_cv_member_struct_msghdr_msg_accrights" >&5
15608 echo "${ECHO_T}$ac_cv_member_struct_msghdr_msg_accrights" >&6
15609 if test $ac_cv_member_struct_msghdr_msg_accrights = yes; then
15610
15611 cat >>confdefs.h <<_ACEOF
15612 #define HAVE_STRUCT_MSGHDR_MSG_ACCRIGHTS 1
15613 _ACEOF
15614
15615
15616 fi
15617 echo "$as_me:$LINENO: checking for struct sockaddr.sa_len" >&5
15618 echo $ECHO_N "checking for struct sockaddr.sa_len... $ECHO_C" >&6
15619 if test "${ac_cv_member_struct_sockaddr_sa_len+set}" = set; then
15620   echo $ECHO_N "(cached) $ECHO_C" >&6
15621 else
15622   cat >conftest.$ac_ext <<_ACEOF
15623 #line $LINENO "configure"
15624 /* confdefs.h.  */
15625 _ACEOF
15626 cat confdefs.h >>conftest.$ac_ext
15627 cat >>conftest.$ac_ext <<_ACEOF
15628 /* end confdefs.h.  */
15629 #include <sys/types.h>
15630 #ifdef HAVE_SYS_SOCKET_H
15631 # include <sys/socket.h>
15632 #endif
15633 #ifdef HAVE_SYS_UN_H
15634 # include <sys/un.h>
15635 #endif
15636
15637 int
15638 main ()
15639 {
15640 static struct sockaddr ac_aggr;
15641 if (ac_aggr.sa_len)
15642 return 0;
15643   ;
15644   return 0;
15645 }
15646 _ACEOF
15647 rm -f conftest.$ac_objext
15648 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15649   (eval $ac_compile) 2>&5
15650   ac_status=$?
15651   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15652   (exit $ac_status); } &&
15653          { ac_try='test -s conftest.$ac_objext'
15654   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15655   (eval $ac_try) 2>&5
15656   ac_status=$?
15657   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15658   (exit $ac_status); }; }; then
15659   ac_cv_member_struct_sockaddr_sa_len=yes
15660 else
15661   echo "$as_me: failed program was:" >&5
15662 sed 's/^/| /' conftest.$ac_ext >&5
15663
15664 cat >conftest.$ac_ext <<_ACEOF
15665 #line $LINENO "configure"
15666 /* confdefs.h.  */
15667 _ACEOF
15668 cat confdefs.h >>conftest.$ac_ext
15669 cat >>conftest.$ac_ext <<_ACEOF
15670 /* end confdefs.h.  */
15671 #include <sys/types.h>
15672 #ifdef HAVE_SYS_SOCKET_H
15673 # include <sys/socket.h>
15674 #endif
15675 #ifdef HAVE_SYS_UN_H
15676 # include <sys/un.h>
15677 #endif
15678
15679 int
15680 main ()
15681 {
15682 static struct sockaddr ac_aggr;
15683 if (sizeof ac_aggr.sa_len)
15684 return 0;
15685   ;
15686   return 0;
15687 }
15688 _ACEOF
15689 rm -f conftest.$ac_objext
15690 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15691   (eval $ac_compile) 2>&5
15692   ac_status=$?
15693   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15694   (exit $ac_status); } &&
15695          { ac_try='test -s conftest.$ac_objext'
15696   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15697   (eval $ac_try) 2>&5
15698   ac_status=$?
15699   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15700   (exit $ac_status); }; }; then
15701   ac_cv_member_struct_sockaddr_sa_len=yes
15702 else
15703   echo "$as_me: failed program was:" >&5
15704 sed 's/^/| /' conftest.$ac_ext >&5
15705
15706 ac_cv_member_struct_sockaddr_sa_len=no
15707 fi
15708 rm -f conftest.$ac_objext conftest.$ac_ext
15709 fi
15710 rm -f conftest.$ac_objext conftest.$ac_ext
15711 fi
15712 echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_sa_len" >&5
15713 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_sa_len" >&6
15714 if test $ac_cv_member_struct_sockaddr_sa_len = yes; then
15715
15716 cat >>confdefs.h <<_ACEOF
15717 #define HAVE_STRUCT_SOCKADDR_SA_LEN 1
15718 _ACEOF
15719
15720
15721 fi
15722 echo "$as_me:$LINENO: checking for struct sockaddr_un.sun_len" >&5
15723 echo $ECHO_N "checking for struct sockaddr_un.sun_len... $ECHO_C" >&6
15724 if test "${ac_cv_member_struct_sockaddr_un_sun_len+set}" = set; then
15725   echo $ECHO_N "(cached) $ECHO_C" >&6
15726 else
15727   cat >conftest.$ac_ext <<_ACEOF
15728 #line $LINENO "configure"
15729 /* confdefs.h.  */
15730 _ACEOF
15731 cat confdefs.h >>conftest.$ac_ext
15732 cat >>conftest.$ac_ext <<_ACEOF
15733 /* end confdefs.h.  */
15734 #include <sys/types.h>
15735 #ifdef HAVE_SYS_SOCKET_H
15736 # include <sys/socket.h>
15737 #endif
15738 #ifdef HAVE_SYS_UN_H
15739 # include <sys/un.h>
15740 #endif
15741
15742 int
15743 main ()
15744 {
15745 static struct sockaddr_un ac_aggr;
15746 if (ac_aggr.sun_len)
15747 return 0;
15748   ;
15749   return 0;
15750 }
15751 _ACEOF
15752 rm -f conftest.$ac_objext
15753 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15754   (eval $ac_compile) 2>&5
15755   ac_status=$?
15756   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15757   (exit $ac_status); } &&
15758          { ac_try='test -s conftest.$ac_objext'
15759   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15760   (eval $ac_try) 2>&5
15761   ac_status=$?
15762   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15763   (exit $ac_status); }; }; then
15764   ac_cv_member_struct_sockaddr_un_sun_len=yes
15765 else
15766   echo "$as_me: failed program was:" >&5
15767 sed 's/^/| /' conftest.$ac_ext >&5
15768
15769 cat >conftest.$ac_ext <<_ACEOF
15770 #line $LINENO "configure"
15771 /* confdefs.h.  */
15772 _ACEOF
15773 cat confdefs.h >>conftest.$ac_ext
15774 cat >>conftest.$ac_ext <<_ACEOF
15775 /* end confdefs.h.  */
15776 #include <sys/types.h>
15777 #ifdef HAVE_SYS_SOCKET_H
15778 # include <sys/socket.h>
15779 #endif
15780 #ifdef HAVE_SYS_UN_H
15781 # include <sys/un.h>
15782 #endif
15783
15784 int
15785 main ()
15786 {
15787 static struct sockaddr_un ac_aggr;
15788 if (sizeof ac_aggr.sun_len)
15789 return 0;
15790   ;
15791   return 0;
15792 }
15793 _ACEOF
15794 rm -f conftest.$ac_objext
15795 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15796   (eval $ac_compile) 2>&5
15797   ac_status=$?
15798   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15799   (exit $ac_status); } &&
15800          { ac_try='test -s conftest.$ac_objext'
15801   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15802   (eval $ac_try) 2>&5
15803   ac_status=$?
15804   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15805   (exit $ac_status); }; }; then
15806   ac_cv_member_struct_sockaddr_un_sun_len=yes
15807 else
15808   echo "$as_me: failed program was:" >&5
15809 sed 's/^/| /' conftest.$ac_ext >&5
15810
15811 ac_cv_member_struct_sockaddr_un_sun_len=no
15812 fi
15813 rm -f conftest.$ac_objext conftest.$ac_ext
15814 fi
15815 rm -f conftest.$ac_objext conftest.$ac_ext
15816 fi
15817 echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_un_sun_len" >&5
15818 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_un_sun_len" >&6
15819 if test $ac_cv_member_struct_sockaddr_un_sun_len = yes; then
15820
15821 cat >>confdefs.h <<_ACEOF
15822 #define HAVE_STRUCT_SOCKADDR_UN_SUN_LEN 1
15823 _ACEOF
15824
15825
15826 fi
15827
15828
15829 echo "$as_me:$LINENO: checking for siginfo_t.si_fd" >&5
15830 echo $ECHO_N "checking for siginfo_t.si_fd... $ECHO_C" >&6
15831 if test "${ac_cv_member_siginfo_t_si_fd+set}" = set; then
15832   echo $ECHO_N "(cached) $ECHO_C" >&6
15833 else
15834   cat >conftest.$ac_ext <<_ACEOF
15835 #line $LINENO "configure"
15836 /* confdefs.h.  */
15837 _ACEOF
15838 cat confdefs.h >>conftest.$ac_ext
15839 cat >>conftest.$ac_ext <<_ACEOF
15840 /* end confdefs.h.  */
15841 #include <signal.h>
15842
15843 int
15844 main ()
15845 {
15846 static siginfo_t ac_aggr;
15847 if (ac_aggr.si_fd)
15848 return 0;
15849   ;
15850   return 0;
15851 }
15852 _ACEOF
15853 rm -f conftest.$ac_objext
15854 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15855   (eval $ac_compile) 2>&5
15856   ac_status=$?
15857   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15858   (exit $ac_status); } &&
15859          { ac_try='test -s conftest.$ac_objext'
15860   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15861   (eval $ac_try) 2>&5
15862   ac_status=$?
15863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15864   (exit $ac_status); }; }; then
15865   ac_cv_member_siginfo_t_si_fd=yes
15866 else
15867   echo "$as_me: failed program was:" >&5
15868 sed 's/^/| /' conftest.$ac_ext >&5
15869
15870 cat >conftest.$ac_ext <<_ACEOF
15871 #line $LINENO "configure"
15872 /* confdefs.h.  */
15873 _ACEOF
15874 cat confdefs.h >>conftest.$ac_ext
15875 cat >>conftest.$ac_ext <<_ACEOF
15876 /* end confdefs.h.  */
15877 #include <signal.h>
15878
15879 int
15880 main ()
15881 {
15882 static siginfo_t ac_aggr;
15883 if (sizeof ac_aggr.si_fd)
15884 return 0;
15885   ;
15886   return 0;
15887 }
15888 _ACEOF
15889 rm -f conftest.$ac_objext
15890 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15891   (eval $ac_compile) 2>&5
15892   ac_status=$?
15893   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15894   (exit $ac_status); } &&
15895          { ac_try='test -s conftest.$ac_objext'
15896   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15897   (eval $ac_try) 2>&5
15898   ac_status=$?
15899   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15900   (exit $ac_status); }; }; then
15901   ac_cv_member_siginfo_t_si_fd=yes
15902 else
15903   echo "$as_me: failed program was:" >&5
15904 sed 's/^/| /' conftest.$ac_ext >&5
15905
15906 ac_cv_member_siginfo_t_si_fd=no
15907 fi
15908 rm -f conftest.$ac_objext conftest.$ac_ext
15909 fi
15910 rm -f conftest.$ac_objext conftest.$ac_ext
15911 fi
15912 echo "$as_me:$LINENO: result: $ac_cv_member_siginfo_t_si_fd" >&5
15913 echo "${ECHO_T}$ac_cv_member_siginfo_t_si_fd" >&6
15914 if test $ac_cv_member_siginfo_t_si_fd = yes; then
15915
15916 cat >>confdefs.h <<_ACEOF
15917 #define HAVE_SIGINFO_T_SI_FD 1
15918 _ACEOF
15919
15920
15921 fi
15922
15923
15924 echo "$as_me:$LINENO: checking for struct option.name" >&5
15925 echo $ECHO_N "checking for struct option.name... $ECHO_C" >&6
15926 if test "${ac_cv_member_struct_option_name+set}" = set; then
15927   echo $ECHO_N "(cached) $ECHO_C" >&6
15928 else
15929   cat >conftest.$ac_ext <<_ACEOF
15930 #line $LINENO "configure"
15931 /* confdefs.h.  */
15932 _ACEOF
15933 cat confdefs.h >>conftest.$ac_ext
15934 cat >>conftest.$ac_ext <<_ACEOF
15935 /* end confdefs.h.  */
15936 #ifdef HAVE_GETOPT_H
15937 #include <getopt.h>
15938 #endif
15939
15940 int
15941 main ()
15942 {
15943 static struct option ac_aggr;
15944 if (ac_aggr.name)
15945 return 0;
15946   ;
15947   return 0;
15948 }
15949 _ACEOF
15950 rm -f conftest.$ac_objext
15951 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15952   (eval $ac_compile) 2>&5
15953   ac_status=$?
15954   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15955   (exit $ac_status); } &&
15956          { ac_try='test -s conftest.$ac_objext'
15957   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15958   (eval $ac_try) 2>&5
15959   ac_status=$?
15960   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15961   (exit $ac_status); }; }; then
15962   ac_cv_member_struct_option_name=yes
15963 else
15964   echo "$as_me: failed program was:" >&5
15965 sed 's/^/| /' conftest.$ac_ext >&5
15966
15967 cat >conftest.$ac_ext <<_ACEOF
15968 #line $LINENO "configure"
15969 /* confdefs.h.  */
15970 _ACEOF
15971 cat confdefs.h >>conftest.$ac_ext
15972 cat >>conftest.$ac_ext <<_ACEOF
15973 /* end confdefs.h.  */
15974 #ifdef HAVE_GETOPT_H
15975 #include <getopt.h>
15976 #endif
15977
15978 int
15979 main ()
15980 {
15981 static struct option ac_aggr;
15982 if (sizeof ac_aggr.name)
15983 return 0;
15984   ;
15985   return 0;
15986 }
15987 _ACEOF
15988 rm -f conftest.$ac_objext
15989 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15990   (eval $ac_compile) 2>&5
15991   ac_status=$?
15992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15993   (exit $ac_status); } &&
15994          { ac_try='test -s conftest.$ac_objext'
15995   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15996   (eval $ac_try) 2>&5
15997   ac_status=$?
15998   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15999   (exit $ac_status); }; }; then
16000   ac_cv_member_struct_option_name=yes
16001 else
16002   echo "$as_me: failed program was:" >&5
16003 sed 's/^/| /' conftest.$ac_ext >&5
16004
16005 ac_cv_member_struct_option_name=no
16006 fi
16007 rm -f conftest.$ac_objext conftest.$ac_ext
16008 fi
16009 rm -f conftest.$ac_objext conftest.$ac_ext
16010 fi
16011 echo "$as_me:$LINENO: result: $ac_cv_member_struct_option_name" >&5
16012 echo "${ECHO_T}$ac_cv_member_struct_option_name" >&6
16013 if test $ac_cv_member_struct_option_name = yes; then
16014
16015 cat >>confdefs.h <<_ACEOF
16016 #define HAVE_STRUCT_OPTION_NAME 1
16017 _ACEOF
16018
16019
16020 fi
16021
16022
16023
16024 case $host_cpu in
16025   *i[3456789]86*) echo "$as_me:$LINENO: checking whether we need to define __i386__" >&5
16026 echo $ECHO_N "checking whether we need to define __i386__... $ECHO_C" >&6
16027 if test "${ac_cv_cpp_def___i386__+set}" = set; then
16028   echo $ECHO_N "(cached) $ECHO_C" >&6
16029 else
16030   cat >conftest.$ac_ext <<_ACEOF
16031 #line $LINENO "configure"
16032 /* confdefs.h.  */
16033 _ACEOF
16034 cat confdefs.h >>conftest.$ac_ext
16035 cat >>conftest.$ac_ext <<_ACEOF
16036 /* end confdefs.h.  */
16037 #ifndef __i386__
16038 yes
16039 #endif
16040 _ACEOF
16041 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16042   $EGREP "yes" >/dev/null 2>&1; then
16043   ac_cv_cpp_def___i386__=yes
16044 else
16045   ac_cv_cpp_def___i386__=no
16046 fi
16047 rm -f conftest*
16048
16049 fi
16050 echo "$as_me:$LINENO: result: $ac_cv_cpp_def___i386__" >&5
16051 echo "${ECHO_T}$ac_cv_cpp_def___i386__" >&6
16052 if test $ac_cv_cpp_def___i386__ = yes; then
16053   CFLAGS="$CFLAGS -D__i386__"
16054   LINTFLAGS="$LINTFLAGS -D__i386__"
16055 fi
16056  ;;
16057   *alpha*)          echo "$as_me:$LINENO: checking whether we need to define __ALPHA__" >&5
16058 echo $ECHO_N "checking whether we need to define __ALPHA__... $ECHO_C" >&6
16059 if test "${ac_cv_cpp_def___ALPHA__+set}" = set; then
16060   echo $ECHO_N "(cached) $ECHO_C" >&6
16061 else
16062   cat >conftest.$ac_ext <<_ACEOF
16063 #line $LINENO "configure"
16064 /* confdefs.h.  */
16065 _ACEOF
16066 cat confdefs.h >>conftest.$ac_ext
16067 cat >>conftest.$ac_ext <<_ACEOF
16068 /* end confdefs.h.  */
16069 #ifndef __ALPHA__
16070 yes
16071 #endif
16072 _ACEOF
16073 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16074   $EGREP "yes" >/dev/null 2>&1; then
16075   ac_cv_cpp_def___ALPHA__=yes
16076 else
16077   ac_cv_cpp_def___ALPHA__=no
16078 fi
16079 rm -f conftest*
16080
16081 fi
16082 echo "$as_me:$LINENO: result: $ac_cv_cpp_def___ALPHA__" >&5
16083 echo "${ECHO_T}$ac_cv_cpp_def___ALPHA__" >&6
16084 if test $ac_cv_cpp_def___ALPHA__ = yes; then
16085   CFLAGS="$CFLAGS -D__ALPHA__"
16086   LINTFLAGS="$LINTFLAGS -D__ALPHA__"
16087 fi
16088  ;;
16089   *sparc*)          echo "$as_me:$LINENO: checking whether we need to define __sparc__" >&5
16090 echo $ECHO_N "checking whether we need to define __sparc__... $ECHO_C" >&6
16091 if test "${ac_cv_cpp_def___sparc__+set}" = set; then
16092   echo $ECHO_N "(cached) $ECHO_C" >&6
16093 else
16094   cat >conftest.$ac_ext <<_ACEOF
16095 #line $LINENO "configure"
16096 /* confdefs.h.  */
16097 _ACEOF
16098 cat confdefs.h >>conftest.$ac_ext
16099 cat >>conftest.$ac_ext <<_ACEOF
16100 /* end confdefs.h.  */
16101 #ifndef __sparc__
16102 yes
16103 #endif
16104 _ACEOF
16105 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16106   $EGREP "yes" >/dev/null 2>&1; then
16107   ac_cv_cpp_def___sparc__=yes
16108 else
16109   ac_cv_cpp_def___sparc__=no
16110 fi
16111 rm -f conftest*
16112
16113 fi
16114 echo "$as_me:$LINENO: result: $ac_cv_cpp_def___sparc__" >&5
16115 echo "${ECHO_T}$ac_cv_cpp_def___sparc__" >&6
16116 if test $ac_cv_cpp_def___sparc__ = yes; then
16117   CFLAGS="$CFLAGS -D__sparc__"
16118   LINTFLAGS="$LINTFLAGS -D__sparc__"
16119 fi
16120  ;;
16121 esac
16122
16123 case $host_vendor in
16124   *sun*) echo "$as_me:$LINENO: checking whether we need to define __sun__" >&5
16125 echo $ECHO_N "checking whether we need to define __sun__... $ECHO_C" >&6
16126 if test "${ac_cv_cpp_def___sun__+set}" = set; then
16127   echo $ECHO_N "(cached) $ECHO_C" >&6
16128 else
16129   cat >conftest.$ac_ext <<_ACEOF
16130 #line $LINENO "configure"
16131 /* confdefs.h.  */
16132 _ACEOF
16133 cat confdefs.h >>conftest.$ac_ext
16134 cat >>conftest.$ac_ext <<_ACEOF
16135 /* end confdefs.h.  */
16136 #ifndef __sun__
16137 yes
16138 #endif
16139 _ACEOF
16140 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16141   $EGREP "yes" >/dev/null 2>&1; then
16142   ac_cv_cpp_def___sun__=yes
16143 else
16144   ac_cv_cpp_def___sun__=no
16145 fi
16146 rm -f conftest*
16147
16148 fi
16149 echo "$as_me:$LINENO: result: $ac_cv_cpp_def___sun__" >&5
16150 echo "${ECHO_T}$ac_cv_cpp_def___sun__" >&6
16151 if test $ac_cv_cpp_def___sun__ = yes; then
16152   CFLAGS="$CFLAGS -D__sun__"
16153   LINTFLAGS="$LINTFLAGS -D__sun__"
16154 fi
16155  ;;
16156 esac
16157
16158
16159
16160
16161
16162           ac_config_commands="$ac_config_commands controls"
16163
16164           ac_config_commands="$ac_config_commands dlls/ddraw/d3ddevice"
16165
16166           ac_config_commands="$ac_config_commands dlls/ddraw/dclipper"
16167
16168           ac_config_commands="$ac_config_commands dlls/ddraw/ddraw"
16169
16170           ac_config_commands="$ac_config_commands dlls/ddraw/direct3d"
16171
16172           ac_config_commands="$ac_config_commands dlls/ddraw/dpalette"
16173
16174           ac_config_commands="$ac_config_commands dlls/ddraw/dsurface"
16175
16176           ac_config_commands="$ac_config_commands dlls/dinput/joystick"
16177
16178           ac_config_commands="$ac_config_commands dlls/dinput/keyboard"
16179
16180           ac_config_commands="$ac_config_commands dlls/dinput/mouse"
16181
16182           ac_config_commands="$ac_config_commands dlls/gdi/enhmfdrv"
16183
16184           ac_config_commands="$ac_config_commands dlls/gdi/mfdrv"
16185
16186           ac_config_commands="$ac_config_commands dlls/kernel/messages"
16187
16188           ac_config_commands="$ac_config_commands dlls/user/dde"
16189
16190           ac_config_commands="$ac_config_commands dlls/user/resources"
16191
16192           ac_config_commands="$ac_config_commands dlls/wineps/data"
16193
16194           ac_config_commands="$ac_config_commands files"
16195
16196           ac_config_commands="$ac_config_commands graphics"
16197
16198           ac_config_commands="$ac_config_commands graphics/x11drv"
16199
16200           ac_config_commands="$ac_config_commands if1632"
16201
16202           ac_config_commands="$ac_config_commands include/wine"
16203
16204           ac_config_commands="$ac_config_commands loader"
16205
16206           ac_config_commands="$ac_config_commands loader/ne"
16207
16208           ac_config_commands="$ac_config_commands memory"
16209
16210           ac_config_commands="$ac_config_commands misc"
16211
16212           ac_config_commands="$ac_config_commands msdos"
16213
16214           ac_config_commands="$ac_config_commands objects"
16215
16216           ac_config_commands="$ac_config_commands ole"
16217
16218           ac_config_commands="$ac_config_commands programs/regapi/tests"
16219
16220           ac_config_commands="$ac_config_commands programs/regedit/tests"
16221
16222           ac_config_commands="$ac_config_commands relay32"
16223
16224           ac_config_commands="$ac_config_commands scheduler"
16225
16226           ac_config_commands="$ac_config_commands win32"
16227
16228           ac_config_commands="$ac_config_commands windows"
16229
16230
16231 MAKE_RULES=Make.rules
16232
16233
16234 MAKE_DLL_RULES=dlls/Makedll.rules
16235
16236
16237 MAKE_TEST_RULES=dlls/Maketest.rules
16238
16239
16240 MAKE_LIB_RULES=libs/Makelib.rules
16241
16242
16243 MAKE_PROG_RULES=programs/Makeprog.rules
16244
16245
16246                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     ac_config_files="$ac_config_files Make.rules dlls/Makedll.rules dlls/Maketest.rules libs/Makelib.rules programs/Makeprog.rules Makefile dlls/Makefile dlls/advapi32/Makefile dlls/advapi32/tests/Makefile dlls/avicap32/Makefile dlls/avifil32/Makefile dlls/cabinet/Makefile dlls/comcat/Makefile dlls/comctl32/Makefile dlls/comctl32/tests/Makefile dlls/commdlg/Makefile dlls/crtdll/Makefile dlls/crypt32/Makefile dlls/ctl3d/Makefile dlls/d3d8/Makefile dlls/d3dim/Makefile dlls/d3dx8/Makefile dlls/dciman32/Makefile dlls/ddraw/Makefile dlls/devenum/Makefile dlls/dinput/Makefile dlls/dinput8/Makefile dlls/dmband/Makefile dlls/dmcompos/Makefile dlls/dmime/Makefile dlls/dmloader/Makefile dlls/dmscript/Makefile dlls/dmstyle/Makefile dlls/dmsynth/Makefile dlls/dmusic/Makefile dlls/dmusic32/Makefile dlls/dplay/Makefile dlls/dplayx/Makefile dlls/dpnhpast/Makefile dlls/dsound/Makefile dlls/dsound/tests/Makefile dlls/gdi/Makefile dlls/gdi/tests/Makefile dlls/glu32/Makefile dlls/icmp/Makefile dlls/imagehlp/Makefile dlls/imm32/Makefile dlls/iphlpapi/Makefile dlls/kernel/Makefile dlls/kernel/tests/Makefile dlls/lzexpand/Makefile dlls/mapi32/Makefile dlls/mpr/Makefile dlls/msacm/Makefile dlls/msacm/imaadp32/Makefile dlls/msacm/msadp32/Makefile dlls/msacm/msg711/Makefile dlls/msacm/winemp3/Makefile dlls/msdmo/Makefile dlls/msimg32/Makefile dlls/msisys/Makefile dlls/msnet32/Makefile dlls/msvcrt/Makefile dlls/msvcrt/tests/Makefile dlls/msvcrt20/Makefile dlls/msvcrtd/Makefile dlls/msvideo/Makefile dlls/msvideo/msrle32/Makefile dlls/netapi32/Makefile dlls/netapi32/tests/Makefile dlls/ntdll/Makefile dlls/ntdll/tests/Makefile dlls/odbc32/Makefile dlls/ole32/Makefile dlls/oleaut32/Makefile dlls/oleaut32/tests/Makefile dlls/olecli/Makefile dlls/oledlg/Makefile dlls/olepro32/Makefile dlls/olesvr/Makefile dlls/opengl32/Makefile dlls/psapi/Makefile dlls/qcap/Makefile dlls/quartz/Makefile dlls/rasapi32/Makefile dlls/richedit/Makefile dlls/rpcrt4/Makefile dlls/rpcrt4/tests/Makefile dlls/serialui/Makefile dlls/setupapi/Makefile dlls/shdocvw/Makefile dlls/shell32/Makefile dlls/shell32/tests/Makefile dlls/shfolder/Makefile dlls/shlwapi/Makefile dlls/shlwapi/tests/Makefile dlls/snmpapi/Makefile dlls/sti/Makefile dlls/tapi32/Makefile dlls/ttydrv/Makefile dlls/twain/Makefile dlls/url/Makefile dlls/urlmon/Makefile dlls/urlmon/tests/Makefile dlls/user/Makefile dlls/user/tests/Makefile dlls/version/Makefile dlls/win32s/Makefile dlls/winaspi/Makefile dlls/winedos/Makefile dlls/wineps/Makefile dlls/wininet/Makefile dlls/wininet/tests/Makefile dlls/winmm/Makefile dlls/winmm/joystick/Makefile dlls/winmm/mcianim/Makefile dlls/winmm/mciavi/Makefile dlls/winmm/mcicda/Makefile dlls/winmm/mciseq/Makefile dlls/winmm/mciwave/Makefile dlls/winmm/midimap/Makefile dlls/winmm/tests/Makefile dlls/winmm/wavemap/Makefile dlls/winmm/winealsa/Makefile dlls/winmm/winearts/Makefile dlls/winmm/wineaudioio/Makefile dlls/winmm/winenas/Makefile dlls/winmm/winejack/Makefile dlls/winmm/wineoss/Makefile dlls/winnls/Makefile dlls/winsock/Makefile dlls/winsock/tests/Makefile dlls/winspool/Makefile dlls/winspool/tests/Makefile dlls/wintab32/Makefile dlls/wintrust/Makefile dlls/wow32/Makefile dlls/wsock32/Makefile dlls/x11drv/Makefile documentation/Makefile include/Makefile libs/Makefile libs/port/Makefile libs/unicode/Makefile libs/uuid/Makefile libs/wine/Makefile libs/wpp/Makefile miscemu/Makefile programs/Makefile programs/avitools/Makefile programs/clock/Makefile programs/cmdlgtst/Makefile programs/control/Makefile programs/expand/Makefile programs/notepad/Makefile programs/osversioncheck/Makefile programs/progman/Makefile programs/regapi/Makefile programs/regedit/Makefile programs/regsvr32/Makefile programs/regtest/Makefile programs/rpcss/Makefile programs/rundll32/Makefile programs/start/Makefile programs/uninstaller/Makefile programs/view/Makefile programs/wcmd/Makefile programs/wineboot/Makefile programs/winecfg/Makefile programs/wineconsole/Makefile programs/winedbg/Makefile programs/winefile/Makefile programs/winemenubuilder/Makefile programs/winemine/Makefile programs/winepath/Makefile programs/winevdm/Makefile programs/winhelp/Makefile programs/winver/Makefile server/Makefile tools/Makefile tools/widl/Makefile tools/winapi/Makefile tools/winebuild/Makefile tools/winedump/Makefile tools/wmc/Makefile tools/wrc/Makefile"
16247
16248
16249 cat >confcache <<\_ACEOF
16250 # This file is a shell script that caches the results of configure
16251 # tests run on this system so they can be shared between configure
16252 # scripts and configure runs, see configure's option --config-cache.
16253 # It is not useful on other systems.  If it contains results you don't
16254 # want to keep, you may remove or edit it.
16255 #
16256 # config.status only pays attention to the cache file if you give it
16257 # the --recheck option to rerun configure.
16258 #
16259 # `ac_cv_env_foo' variables (set or unset) will be overridden when
16260 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16261 # following values.
16262
16263 _ACEOF
16264
16265 # The following way of writing the cache mishandles newlines in values,
16266 # but we know of no workaround that is simple, portable, and efficient.
16267 # So, don't put newlines in cache variables' values.
16268 # Ultrix sh set writes to stderr and can't be redirected directly,
16269 # and sets the high bit in the cache file unless we assign to the vars.
16270 {
16271   (set) 2>&1 |
16272     case `(ac_space=' '; set | grep ac_space) 2>&1` in
16273     *ac_space=\ *)
16274       # `set' does not quote correctly, so add quotes (double-quote
16275       # substitution turns \\\\ into \\, and sed turns \\ into \).
16276       sed -n \
16277         "s/'/'\\\\''/g;
16278           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16279       ;;
16280     *)
16281       # `set' quotes correctly as required by POSIX, so do not add quotes.
16282       sed -n \
16283         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
16284       ;;
16285     esac;
16286 } |
16287   sed '
16288      t clear
16289      : clear
16290      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16291      t end
16292      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16293      : end' >>confcache
16294 if diff $cache_file confcache >/dev/null 2>&1; then :; else
16295   if test -w $cache_file; then
16296     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
16297     cat confcache >$cache_file
16298   else
16299     echo "not updating unwritable cache $cache_file"
16300   fi
16301 fi
16302 rm -f confcache
16303
16304 test "x$prefix" = xNONE && prefix=$ac_default_prefix
16305 # Let make expand exec_prefix.
16306 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16307
16308 # VPATH may cause trouble with some makes, so we remove $(srcdir),
16309 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
16310 # trailing colons and then remove the whole line if VPATH becomes empty
16311 # (actually we leave an empty line to preserve line numbers).
16312 if test "x$srcdir" = x.; then
16313   ac_vpsub='/^[         ]*VPATH[        ]*=/{
16314 s/:*\$(srcdir):*/:/;
16315 s/:*\${srcdir}:*/:/;
16316 s/:*@srcdir@:*/:/;
16317 s/^\([^=]*=[    ]*\):*/\1/;
16318 s/:*$//;
16319 s/^[^=]*=[      ]*$//;
16320 }'
16321 fi
16322
16323 DEFS=-DHAVE_CONFIG_H
16324
16325 ac_libobjs=
16326 ac_ltlibobjs=
16327 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16328   # 1. Remove the extension, and $U if already installed.
16329   ac_i=`echo "$ac_i" |
16330          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
16331   # 2. Add them.
16332   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
16333   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
16334 done
16335 LIBOBJS=$ac_libobjs
16336
16337 LTLIBOBJS=$ac_ltlibobjs
16338
16339
16340
16341 : ${CONFIG_STATUS=./config.status}
16342 ac_clean_files_save=$ac_clean_files
16343 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16344 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
16345 echo "$as_me: creating $CONFIG_STATUS" >&6;}
16346 cat >$CONFIG_STATUS <<_ACEOF
16347 #! $SHELL
16348 # Generated by $as_me.
16349 # Run this file to recreate the current configuration.
16350 # Compiler output produced by configure, useful for debugging
16351 # configure, is in config.log if it exists.
16352
16353 debug=false
16354 ac_cs_recheck=false
16355 ac_cs_silent=false
16356 SHELL=\${CONFIG_SHELL-$SHELL}
16357 _ACEOF
16358
16359 cat >>$CONFIG_STATUS <<\_ACEOF
16360 ## --------------------- ##
16361 ## M4sh Initialization.  ##
16362 ## --------------------- ##
16363
16364 # Be Bourne compatible
16365 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16366   emulate sh
16367   NULLCMD=:
16368   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
16369   # is contrary to our usage.  Disable this feature.
16370   alias -g '${1+"$@"}'='"$@"'
16371 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
16372   set -o posix
16373 fi
16374
16375 # Support unset when possible.
16376 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
16377   as_unset=unset
16378 else
16379   as_unset=false
16380 fi
16381
16382
16383 # Work around bugs in pre-3.0 UWIN ksh.
16384 $as_unset ENV MAIL MAILPATH
16385 PS1='$ '
16386 PS2='> '
16387 PS4='+ '
16388
16389 # NLS nuisances.
16390 for as_var in \
16391   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
16392   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
16393   LC_TELEPHONE LC_TIME
16394 do
16395   if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
16396     eval $as_var=C; export $as_var
16397   else
16398     $as_unset $as_var
16399   fi
16400 done
16401
16402 # Required to use basename.
16403 if expr a : '\(a\)' >/dev/null 2>&1; then
16404   as_expr=expr
16405 else
16406   as_expr=false
16407 fi
16408
16409 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
16410   as_basename=basename
16411 else
16412   as_basename=false
16413 fi
16414
16415
16416 # Name of the executable.
16417 as_me=`$as_basename "$0" ||
16418 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16419          X"$0" : 'X\(//\)$' \| \
16420          X"$0" : 'X\(/\)$' \| \
16421          .     : '\(.\)' 2>/dev/null ||
16422 echo X/"$0" |
16423     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
16424           /^X\/\(\/\/\)$/{ s//\1/; q; }
16425           /^X\/\(\/\).*/{ s//\1/; q; }
16426           s/.*/./; q'`
16427
16428
16429 # PATH needs CR, and LINENO needs CR and PATH.
16430 # Avoid depending upon Character Ranges.
16431 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16432 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16433 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16434 as_cr_digits='0123456789'
16435 as_cr_alnum=$as_cr_Letters$as_cr_digits
16436
16437 # The user is always right.
16438 if test "${PATH_SEPARATOR+set}" != set; then
16439   echo "#! /bin/sh" >conf$$.sh
16440   echo  "exit 0"   >>conf$$.sh
16441   chmod +x conf$$.sh
16442   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16443     PATH_SEPARATOR=';'
16444   else
16445     PATH_SEPARATOR=:
16446   fi
16447   rm -f conf$$.sh
16448 fi
16449
16450
16451   as_lineno_1=$LINENO
16452   as_lineno_2=$LINENO
16453   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
16454   test "x$as_lineno_1" != "x$as_lineno_2" &&
16455   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
16456   # Find who we are.  Look in the path if we contain no path at all
16457   # relative or not.
16458   case $0 in
16459     *[\\/]* ) as_myself=$0 ;;
16460     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16461 for as_dir in $PATH
16462 do
16463   IFS=$as_save_IFS
16464   test -z "$as_dir" && as_dir=.
16465   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16466 done
16467
16468        ;;
16469   esac
16470   # We did not find ourselves, most probably we were run as `sh COMMAND'
16471   # in which case we are not to be found in the path.
16472   if test "x$as_myself" = x; then
16473     as_myself=$0
16474   fi
16475   if test ! -f "$as_myself"; then
16476     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
16477 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
16478    { (exit 1); exit 1; }; }
16479   fi
16480   case $CONFIG_SHELL in
16481   '')
16482     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16483 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
16484 do
16485   IFS=$as_save_IFS
16486   test -z "$as_dir" && as_dir=.
16487   for as_base in sh bash ksh sh5; do
16488          case $as_dir in
16489          /*)
16490            if ("$as_dir/$as_base" -c '
16491   as_lineno_1=$LINENO
16492   as_lineno_2=$LINENO
16493   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
16494   test "x$as_lineno_1" != "x$as_lineno_2" &&
16495   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
16496              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
16497              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
16498              CONFIG_SHELL=$as_dir/$as_base
16499              export CONFIG_SHELL
16500              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
16501            fi;;
16502          esac
16503        done
16504 done
16505 ;;
16506   esac
16507
16508   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
16509   # uniformly replaced by the line number.  The first 'sed' inserts a
16510   # line-number line before each line; the second 'sed' does the real
16511   # work.  The second script uses 'N' to pair each line-number line
16512   # with the numbered line, and appends trailing '-' during
16513   # substitution so that $LINENO is not a special case at line end.
16514   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
16515   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
16516   sed '=' <$as_myself |
16517     sed '
16518       N
16519       s,$,-,
16520       : loop
16521       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
16522       t loop
16523       s,-$,,
16524       s,^['$as_cr_digits']*\n,,
16525     ' >$as_me.lineno &&
16526   chmod +x $as_me.lineno ||
16527     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
16528 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
16529    { (exit 1); exit 1; }; }
16530
16531   # Don't try to exec as it changes $[0], causing all sort of problems
16532   # (the dirname of $[0] is not the place where we might find the
16533   # original and so on.  Autoconf is especially sensible to this).
16534   . ./$as_me.lineno
16535   # Exit status is that of the last command.
16536   exit
16537 }
16538
16539
16540 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
16541   *c*,-n*) ECHO_N= ECHO_C='
16542 ' ECHO_T='      ' ;;
16543   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
16544   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
16545 esac
16546
16547 if expr a : '\(a\)' >/dev/null 2>&1; then
16548   as_expr=expr
16549 else
16550   as_expr=false
16551 fi
16552
16553 rm -f conf$$ conf$$.exe conf$$.file
16554 echo >conf$$.file
16555 if ln -s conf$$.file conf$$ 2>/dev/null; then
16556   # We could just check for DJGPP; but this test a) works b) is more generic
16557   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
16558   if test -f conf$$.exe; then
16559     # Don't use ln at all; we don't have any links
16560     as_ln_s='cp -p'
16561   else
16562     as_ln_s='ln -s'
16563   fi
16564 elif ln conf$$.file conf$$ 2>/dev/null; then
16565   as_ln_s=ln
16566 else
16567   as_ln_s='cp -p'
16568 fi
16569 rm -f conf$$ conf$$.exe conf$$.file
16570
16571 if mkdir -p . 2>/dev/null; then
16572   as_mkdir_p=:
16573 else
16574   as_mkdir_p=false
16575 fi
16576
16577 as_executable_p="test -f"
16578
16579 # Sed expression to map a string onto a valid CPP name.
16580 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
16581
16582 # Sed expression to map a string onto a valid variable name.
16583 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
16584
16585
16586 # IFS
16587 # We need space, tab and new line, in precisely that order.
16588 as_nl='
16589 '
16590 IFS="   $as_nl"
16591
16592 # CDPATH.
16593 $as_unset CDPATH
16594
16595 exec 6>&1
16596
16597 # Open the log real soon, to keep \$[0] and so on meaningful, and to
16598 # report actual input values of CONFIG_FILES etc. instead of their
16599 # values after options handling.  Logging --version etc. is OK.
16600 exec 5>>config.log
16601 {
16602   echo
16603   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16604 ## Running $as_me. ##
16605 _ASBOX
16606 } >&5
16607 cat >&5 <<_CSEOF
16608
16609 This file was extended by Wine $as_me 20030618, which was
16610 generated by GNU Autoconf 2.57.  Invocation command line was
16611
16612   CONFIG_FILES    = $CONFIG_FILES
16613   CONFIG_HEADERS  = $CONFIG_HEADERS
16614   CONFIG_LINKS    = $CONFIG_LINKS
16615   CONFIG_COMMANDS = $CONFIG_COMMANDS
16616   $ $0 $@
16617
16618 _CSEOF
16619 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
16620 echo >&5
16621 _ACEOF
16622
16623 # Files that config.status was made for.
16624 if test -n "$ac_config_files"; then
16625   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
16626 fi
16627
16628 if test -n "$ac_config_headers"; then
16629   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
16630 fi
16631
16632 if test -n "$ac_config_links"; then
16633   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
16634 fi
16635
16636 if test -n "$ac_config_commands"; then
16637   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
16638 fi
16639
16640 cat >>$CONFIG_STATUS <<\_ACEOF
16641
16642 ac_cs_usage="\
16643 \`$as_me' instantiates files from templates according to the
16644 current configuration.
16645
16646 Usage: $0 [OPTIONS] [FILE]...
16647
16648   -h, --help       print this help, then exit
16649   -V, --version    print version number, then exit
16650   -q, --quiet      do not print progress messages
16651   -d, --debug      don't remove temporary files
16652       --recheck    update $as_me by reconfiguring in the same conditions
16653   --file=FILE[:TEMPLATE]
16654                    instantiate the configuration file FILE
16655   --header=FILE[:TEMPLATE]
16656                    instantiate the configuration header FILE
16657
16658 Configuration files:
16659 $config_files
16660
16661 Configuration headers:
16662 $config_headers
16663
16664 Configuration commands:
16665 $config_commands
16666
16667 Report bugs to <bug-autoconf@gnu.org>."
16668 _ACEOF
16669
16670 cat >>$CONFIG_STATUS <<_ACEOF
16671 ac_cs_version="\\
16672 Wine config.status 20030618
16673 configured by $0, generated by GNU Autoconf 2.57,
16674   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
16675
16676 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
16677 Free Software Foundation, Inc.
16678 This config.status script is free software; the Free Software Foundation
16679 gives unlimited permission to copy, distribute and modify it."
16680 srcdir=$srcdir
16681 INSTALL="$INSTALL"
16682 _ACEOF
16683
16684 cat >>$CONFIG_STATUS <<\_ACEOF
16685 # If no file are specified by the user, then we need to provide default
16686 # value.  By we need to know if files were specified by the user.
16687 ac_need_defaults=:
16688 while test $# != 0
16689 do
16690   case $1 in
16691   --*=*)
16692     ac_option=`expr "x$1" : 'x\([^=]*\)='`
16693     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
16694     ac_shift=:
16695     ;;
16696   -*)
16697     ac_option=$1
16698     ac_optarg=$2
16699     ac_shift=shift
16700     ;;
16701   *) # This is not an option, so the user has probably given explicit
16702      # arguments.
16703      ac_option=$1
16704      ac_need_defaults=false;;
16705   esac
16706
16707   case $ac_option in
16708   # Handling of the options.
16709 _ACEOF
16710 cat >>$CONFIG_STATUS <<\_ACEOF
16711   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16712     ac_cs_recheck=: ;;
16713   --version | --vers* | -V )
16714     echo "$ac_cs_version"; exit 0 ;;
16715   --he | --h)
16716     # Conflict between --help and --header
16717     { { echo "$as_me:$LINENO: error: ambiguous option: $1
16718 Try \`$0 --help' for more information." >&5
16719 echo "$as_me: error: ambiguous option: $1
16720 Try \`$0 --help' for more information." >&2;}
16721    { (exit 1); exit 1; }; };;
16722   --help | --hel | -h )
16723     echo "$ac_cs_usage"; exit 0 ;;
16724   --debug | --d* | -d )
16725     debug=: ;;
16726   --file | --fil | --fi | --f )
16727     $ac_shift
16728     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
16729     ac_need_defaults=false;;
16730   --header | --heade | --head | --hea )
16731     $ac_shift
16732     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
16733     ac_need_defaults=false;;
16734   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16735   | -silent | --silent | --silen | --sile | --sil | --si | --s)
16736     ac_cs_silent=: ;;
16737
16738   # This is an error.
16739   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
16740 Try \`$0 --help' for more information." >&5
16741 echo "$as_me: error: unrecognized option: $1
16742 Try \`$0 --help' for more information." >&2;}
16743    { (exit 1); exit 1; }; } ;;
16744
16745   *) ac_config_targets="$ac_config_targets $1" ;;
16746
16747   esac
16748   shift
16749 done
16750
16751 ac_configure_extra_args=
16752
16753 if $ac_cs_silent; then
16754   exec 6>/dev/null
16755   ac_configure_extra_args="$ac_configure_extra_args --silent"
16756 fi
16757
16758 _ACEOF
16759 cat >>$CONFIG_STATUS <<_ACEOF
16760 if \$ac_cs_recheck; then
16761   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
16762   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16763 fi
16764
16765 _ACEOF
16766
16767
16768
16769
16770
16771 cat >>$CONFIG_STATUS <<\_ACEOF
16772 for ac_config_target in $ac_config_targets
16773 do
16774   case "$ac_config_target" in
16775   # Handling of arguments.
16776   "Make.rules" ) CONFIG_FILES="$CONFIG_FILES Make.rules" ;;
16777   "dlls/Makedll.rules" ) CONFIG_FILES="$CONFIG_FILES dlls/Makedll.rules" ;;
16778   "dlls/Maketest.rules" ) CONFIG_FILES="$CONFIG_FILES dlls/Maketest.rules" ;;
16779   "libs/Makelib.rules" ) CONFIG_FILES="$CONFIG_FILES libs/Makelib.rules" ;;
16780   "programs/Makeprog.rules" ) CONFIG_FILES="$CONFIG_FILES programs/Makeprog.rules" ;;
16781   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16782   "dlls/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/Makefile" ;;
16783   "dlls/advapi32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/advapi32/Makefile" ;;
16784   "dlls/advapi32/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/advapi32/tests/Makefile" ;;
16785   "dlls/avicap32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/avicap32/Makefile" ;;
16786   "dlls/avifil32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/avifil32/Makefile" ;;
16787   "dlls/cabinet/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/cabinet/Makefile" ;;
16788   "dlls/comcat/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/comcat/Makefile" ;;
16789   "dlls/comctl32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/comctl32/Makefile" ;;
16790   "dlls/comctl32/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/comctl32/tests/Makefile" ;;
16791   "dlls/commdlg/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/commdlg/Makefile" ;;
16792   "dlls/crtdll/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/crtdll/Makefile" ;;
16793   "dlls/crypt32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/crypt32/Makefile" ;;
16794   "dlls/ctl3d/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ctl3d/Makefile" ;;
16795   "dlls/d3d8/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/d3d8/Makefile" ;;
16796   "dlls/d3dim/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/d3dim/Makefile" ;;
16797   "dlls/d3dx8/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/d3dx8/Makefile" ;;
16798   "dlls/dciman32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dciman32/Makefile" ;;
16799   "dlls/ddraw/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ddraw/Makefile" ;;
16800   "dlls/devenum/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/devenum/Makefile" ;;
16801   "dlls/dinput/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dinput/Makefile" ;;
16802   "dlls/dinput8/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dinput8/Makefile" ;;
16803   "dlls/dmband/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dmband/Makefile" ;;
16804   "dlls/dmcompos/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dmcompos/Makefile" ;;
16805   "dlls/dmime/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dmime/Makefile" ;;
16806   "dlls/dmloader/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dmloader/Makefile" ;;
16807   "dlls/dmscript/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dmscript/Makefile" ;;
16808   "dlls/dmstyle/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dmstyle/Makefile" ;;
16809   "dlls/dmsynth/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dmsynth/Makefile" ;;
16810   "dlls/dmusic/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dmusic/Makefile" ;;
16811   "dlls/dmusic32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dmusic32/Makefile" ;;
16812   "dlls/dplay/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dplay/Makefile" ;;
16813   "dlls/dplayx/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dplayx/Makefile" ;;
16814   "dlls/dpnhpast/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dpnhpast/Makefile" ;;
16815   "dlls/dsound/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dsound/Makefile" ;;
16816   "dlls/dsound/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dsound/tests/Makefile" ;;
16817   "dlls/gdi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/gdi/Makefile" ;;
16818   "dlls/gdi/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/gdi/tests/Makefile" ;;
16819   "dlls/glu32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/glu32/Makefile" ;;
16820   "dlls/icmp/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/icmp/Makefile" ;;
16821   "dlls/imagehlp/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/imagehlp/Makefile" ;;
16822   "dlls/imm32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/imm32/Makefile" ;;
16823   "dlls/iphlpapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/iphlpapi/Makefile" ;;
16824   "dlls/kernel/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/kernel/Makefile" ;;
16825   "dlls/kernel/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/kernel/tests/Makefile" ;;
16826   "dlls/lzexpand/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/lzexpand/Makefile" ;;
16827   "dlls/mapi32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/mapi32/Makefile" ;;
16828   "dlls/mpr/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/mpr/Makefile" ;;
16829   "dlls/msacm/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msacm/Makefile" ;;
16830   "dlls/msacm/imaadp32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msacm/imaadp32/Makefile" ;;
16831   "dlls/msacm/msadp32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msacm/msadp32/Makefile" ;;
16832   "dlls/msacm/msg711/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msacm/msg711/Makefile" ;;
16833   "dlls/msacm/winemp3/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msacm/winemp3/Makefile" ;;
16834   "dlls/msdmo/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msdmo/Makefile" ;;
16835   "dlls/msimg32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msimg32/Makefile" ;;
16836   "dlls/msisys/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msisys/Makefile" ;;
16837   "dlls/msnet32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msnet32/Makefile" ;;
16838   "dlls/msvcrt/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvcrt/Makefile" ;;
16839   "dlls/msvcrt/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvcrt/tests/Makefile" ;;
16840   "dlls/msvcrt20/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvcrt20/Makefile" ;;
16841   "dlls/msvcrtd/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvcrtd/Makefile" ;;
16842   "dlls/msvideo/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvideo/Makefile" ;;
16843   "dlls/msvideo/msrle32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvideo/msrle32/Makefile" ;;
16844   "dlls/netapi32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/netapi32/Makefile" ;;
16845   "dlls/netapi32/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/netapi32/tests/Makefile" ;;
16846   "dlls/ntdll/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ntdll/Makefile" ;;
16847   "dlls/ntdll/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ntdll/tests/Makefile" ;;
16848   "dlls/odbc32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/odbc32/Makefile" ;;
16849   "dlls/ole32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ole32/Makefile" ;;
16850   "dlls/oleaut32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/oleaut32/Makefile" ;;
16851   "dlls/oleaut32/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/oleaut32/tests/Makefile" ;;
16852   "dlls/olecli/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/olecli/Makefile" ;;
16853   "dlls/oledlg/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/oledlg/Makefile" ;;
16854   "dlls/olepro32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/olepro32/Makefile" ;;
16855   "dlls/olesvr/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/olesvr/Makefile" ;;
16856   "dlls/opengl32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/opengl32/Makefile" ;;
16857   "dlls/psapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/psapi/Makefile" ;;
16858   "dlls/qcap/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/qcap/Makefile" ;;
16859   "dlls/quartz/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/quartz/Makefile" ;;
16860   "dlls/rasapi32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/rasapi32/Makefile" ;;
16861   "dlls/richedit/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/richedit/Makefile" ;;
16862   "dlls/rpcrt4/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/rpcrt4/Makefile" ;;
16863   "dlls/rpcrt4/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/rpcrt4/tests/Makefile" ;;
16864   "dlls/serialui/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/serialui/Makefile" ;;
16865   "dlls/setupapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/setupapi/Makefile" ;;
16866   "dlls/shdocvw/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shdocvw/Makefile" ;;
16867   "dlls/shell32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shell32/Makefile" ;;
16868   "dlls/shell32/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shell32/tests/Makefile" ;;
16869   "dlls/shfolder/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shfolder/Makefile" ;;
16870   "dlls/shlwapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shlwapi/Makefile" ;;
16871   "dlls/shlwapi/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shlwapi/tests/Makefile" ;;
16872   "dlls/snmpapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/snmpapi/Makefile" ;;
16873   "dlls/sti/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/sti/Makefile" ;;
16874   "dlls/tapi32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/tapi32/Makefile" ;;
16875   "dlls/ttydrv/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ttydrv/Makefile" ;;
16876   "dlls/twain/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/twain/Makefile" ;;
16877   "dlls/url/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/url/Makefile" ;;
16878   "dlls/urlmon/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/urlmon/Makefile" ;;
16879   "dlls/urlmon/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/urlmon/tests/Makefile" ;;
16880   "dlls/user/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/user/Makefile" ;;
16881   "dlls/user/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/user/tests/Makefile" ;;
16882   "dlls/version/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/version/Makefile" ;;
16883   "dlls/win32s/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/win32s/Makefile" ;;
16884   "dlls/winaspi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winaspi/Makefile" ;;
16885   "dlls/winedos/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winedos/Makefile" ;;
16886   "dlls/wineps/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wineps/Makefile" ;;
16887   "dlls/wininet/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wininet/Makefile" ;;
16888   "dlls/wininet/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wininet/tests/Makefile" ;;
16889   "dlls/winmm/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/Makefile" ;;
16890   "dlls/winmm/joystick/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/joystick/Makefile" ;;
16891   "dlls/winmm/mcianim/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/mcianim/Makefile" ;;
16892   "dlls/winmm/mciavi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/mciavi/Makefile" ;;
16893   "dlls/winmm/mcicda/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/mcicda/Makefile" ;;
16894   "dlls/winmm/mciseq/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/mciseq/Makefile" ;;
16895   "dlls/winmm/mciwave/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/mciwave/Makefile" ;;
16896   "dlls/winmm/midimap/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/midimap/Makefile" ;;
16897   "dlls/winmm/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/tests/Makefile" ;;
16898   "dlls/winmm/wavemap/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/wavemap/Makefile" ;;
16899   "dlls/winmm/winealsa/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/winealsa/Makefile" ;;
16900   "dlls/winmm/winearts/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/winearts/Makefile" ;;
16901   "dlls/winmm/wineaudioio/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/wineaudioio/Makefile" ;;
16902   "dlls/winmm/winenas/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/winenas/Makefile" ;;
16903   "dlls/winmm/winejack/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/winejack/Makefile" ;;
16904   "dlls/winmm/wineoss/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/wineoss/Makefile" ;;
16905   "dlls/winnls/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winnls/Makefile" ;;
16906   "dlls/winsock/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winsock/Makefile" ;;
16907   "dlls/winsock/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winsock/tests/Makefile" ;;
16908   "dlls/winspool/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winspool/Makefile" ;;
16909   "dlls/winspool/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winspool/tests/Makefile" ;;
16910   "dlls/wintab32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wintab32/Makefile" ;;
16911   "dlls/wintrust/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wintrust/Makefile" ;;
16912   "dlls/wow32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wow32/Makefile" ;;
16913   "dlls/wsock32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wsock32/Makefile" ;;
16914   "dlls/x11drv/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/x11drv/Makefile" ;;
16915   "documentation/Makefile" ) CONFIG_FILES="$CONFIG_FILES documentation/Makefile" ;;
16916   "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
16917   "libs/Makefile" ) CONFIG_FILES="$CONFIG_FILES libs/Makefile" ;;
16918   "libs/port/Makefile" ) CONFIG_FILES="$CONFIG_FILES libs/port/Makefile" ;;
16919   "libs/unicode/Makefile" ) CONFIG_FILES="$CONFIG_FILES libs/unicode/Makefile" ;;
16920   "libs/uuid/Makefile" ) CONFIG_FILES="$CONFIG_FILES libs/uuid/Makefile" ;;
16921   "libs/wine/Makefile" ) CONFIG_FILES="$CONFIG_FILES libs/wine/Makefile" ;;
16922   "libs/wpp/Makefile" ) CONFIG_FILES="$CONFIG_FILES libs/wpp/Makefile" ;;
16923   "miscemu/Makefile" ) CONFIG_FILES="$CONFIG_FILES miscemu/Makefile" ;;
16924   "programs/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/Makefile" ;;
16925   "programs/avitools/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/avitools/Makefile" ;;
16926   "programs/clock/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/clock/Makefile" ;;
16927   "programs/cmdlgtst/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/cmdlgtst/Makefile" ;;
16928   "programs/control/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/control/Makefile" ;;
16929   "programs/expand/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/expand/Makefile" ;;
16930   "programs/notepad/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/notepad/Makefile" ;;
16931   "programs/osversioncheck/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/osversioncheck/Makefile" ;;
16932   "programs/progman/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/progman/Makefile" ;;
16933   "programs/regapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/regapi/Makefile" ;;
16934   "programs/regedit/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/regedit/Makefile" ;;
16935   "programs/regsvr32/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/regsvr32/Makefile" ;;
16936   "programs/regtest/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/regtest/Makefile" ;;
16937   "programs/rpcss/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/rpcss/Makefile" ;;
16938   "programs/rundll32/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/rundll32/Makefile" ;;
16939   "programs/start/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/start/Makefile" ;;
16940   "programs/uninstaller/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/uninstaller/Makefile" ;;
16941   "programs/view/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/view/Makefile" ;;
16942   "programs/wcmd/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/wcmd/Makefile" ;;
16943   "programs/wineboot/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/wineboot/Makefile" ;;
16944   "programs/winecfg/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winecfg/Makefile" ;;
16945   "programs/wineconsole/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/wineconsole/Makefile" ;;
16946   "programs/winedbg/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winedbg/Makefile" ;;
16947   "programs/winefile/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winefile/Makefile" ;;
16948   "programs/winemenubuilder/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winemenubuilder/Makefile" ;;
16949   "programs/winemine/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winemine/Makefile" ;;
16950   "programs/winepath/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winepath/Makefile" ;;
16951   "programs/winevdm/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winevdm/Makefile" ;;
16952   "programs/winhelp/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winhelp/Makefile" ;;
16953   "programs/winver/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winver/Makefile" ;;
16954   "server/Makefile" ) CONFIG_FILES="$CONFIG_FILES server/Makefile" ;;
16955   "tools/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
16956   "tools/widl/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/widl/Makefile" ;;
16957   "tools/winapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/winapi/Makefile" ;;
16958   "tools/winebuild/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/winebuild/Makefile" ;;
16959   "tools/winedump/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/winedump/Makefile" ;;
16960   "tools/wmc/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/wmc/Makefile" ;;
16961   "tools/wrc/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/wrc/Makefile" ;;
16962   "controls" ) CONFIG_COMMANDS="$CONFIG_COMMANDS controls" ;;
16963   "dlls/ddraw/d3ddevice" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/d3ddevice" ;;
16964   "dlls/ddraw/dclipper" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/dclipper" ;;
16965   "dlls/ddraw/ddraw" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/ddraw" ;;
16966   "dlls/ddraw/direct3d" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/direct3d" ;;
16967   "dlls/ddraw/dpalette" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/dpalette" ;;
16968   "dlls/ddraw/dsurface" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/dsurface" ;;
16969   "dlls/dinput/joystick" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/dinput/joystick" ;;
16970   "dlls/dinput/keyboard" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/dinput/keyboard" ;;
16971   "dlls/dinput/mouse" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/dinput/mouse" ;;
16972   "dlls/gdi/enhmfdrv" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/gdi/enhmfdrv" ;;
16973   "dlls/gdi/mfdrv" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/gdi/mfdrv" ;;
16974   "dlls/kernel/messages" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/kernel/messages" ;;
16975   "dlls/user/dde" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/user/dde" ;;
16976   "dlls/user/resources" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/user/resources" ;;
16977   "dlls/wineps/data" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/wineps/data" ;;
16978   "files" ) CONFIG_COMMANDS="$CONFIG_COMMANDS files" ;;
16979   "graphics" ) CONFIG_COMMANDS="$CONFIG_COMMANDS graphics" ;;
16980   "graphics/x11drv" ) CONFIG_COMMANDS="$CONFIG_COMMANDS graphics/x11drv" ;;
16981   "if1632" ) CONFIG_COMMANDS="$CONFIG_COMMANDS if1632" ;;
16982   "include/wine" ) CONFIG_COMMANDS="$CONFIG_COMMANDS include/wine" ;;
16983   "loader" ) CONFIG_COMMANDS="$CONFIG_COMMANDS loader" ;;
16984   "loader/ne" ) CONFIG_COMMANDS="$CONFIG_COMMANDS loader/ne" ;;
16985   "memory" ) CONFIG_COMMANDS="$CONFIG_COMMANDS memory" ;;
16986   "misc" ) CONFIG_COMMANDS="$CONFIG_COMMANDS misc" ;;
16987   "msdos" ) CONFIG_COMMANDS="$CONFIG_COMMANDS msdos" ;;
16988   "objects" ) CONFIG_COMMANDS="$CONFIG_COMMANDS objects" ;;
16989   "ole" ) CONFIG_COMMANDS="$CONFIG_COMMANDS ole" ;;
16990   "programs/regapi/tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS programs/regapi/tests" ;;
16991   "programs/regedit/tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS programs/regedit/tests" ;;
16992   "relay32" ) CONFIG_COMMANDS="$CONFIG_COMMANDS relay32" ;;
16993   "scheduler" ) CONFIG_COMMANDS="$CONFIG_COMMANDS scheduler" ;;
16994   "win32" ) CONFIG_COMMANDS="$CONFIG_COMMANDS win32" ;;
16995   "windows" ) CONFIG_COMMANDS="$CONFIG_COMMANDS windows" ;;
16996   "include/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
16997   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
16998 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
16999    { (exit 1); exit 1; }; };;
17000   esac
17001 done
17002
17003 # If the user did not use the arguments to specify the items to instantiate,
17004 # then the envvar interface is used.  Set only those that are not.
17005 # We use the long form for the default assignment because of an extremely
17006 # bizarre bug on SunOS 4.1.3.
17007 if $ac_need_defaults; then
17008   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
17009   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
17010   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
17011 fi
17012
17013 # Have a temporary directory for convenience.  Make it in the build tree
17014 # simply because there is no reason to put it here, and in addition,
17015 # creating and moving files from /tmp can sometimes cause problems.
17016 # Create a temporary directory, and hook for its removal unless debugging.
17017 $debug ||
17018 {
17019   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
17020   trap '{ (exit 1); exit 1; }' 1 2 13 15
17021 }
17022
17023 # Create a (secure) tmp directory for tmp files.
17024
17025 {
17026   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
17027   test -n "$tmp" && test -d "$tmp"
17028 }  ||
17029 {
17030   tmp=./confstat$$-$RANDOM
17031   (umask 077 && mkdir $tmp)
17032 } ||
17033 {
17034    echo "$me: cannot create a temporary directory in ." >&2
17035    { (exit 1); exit 1; }
17036 }
17037
17038 _ACEOF
17039
17040 cat >>$CONFIG_STATUS <<_ACEOF
17041
17042 #
17043 # CONFIG_FILES section.
17044 #
17045
17046 # No need to generate the scripts if there are no CONFIG_FILES.
17047 # This happens for instance when ./config.status config.h
17048 if test -n "\$CONFIG_FILES"; then
17049   # Protect against being on the right side of a sed subst in config.status.
17050   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
17051    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
17052 s,@SHELL@,$SHELL,;t t
17053 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
17054 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
17055 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
17056 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
17057 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
17058 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
17059 s,@exec_prefix@,$exec_prefix,;t t
17060 s,@prefix@,$prefix,;t t
17061 s,@program_transform_name@,$program_transform_name,;t t
17062 s,@bindir@,$bindir,;t t
17063 s,@sbindir@,$sbindir,;t t
17064 s,@libexecdir@,$libexecdir,;t t
17065 s,@datadir@,$datadir,;t t
17066 s,@sysconfdir@,$sysconfdir,;t t
17067 s,@sharedstatedir@,$sharedstatedir,;t t
17068 s,@localstatedir@,$localstatedir,;t t
17069 s,@libdir@,$libdir,;t t
17070 s,@includedir@,$includedir,;t t
17071 s,@oldincludedir@,$oldincludedir,;t t
17072 s,@infodir@,$infodir,;t t
17073 s,@mandir@,$mandir,;t t
17074 s,@build_alias@,$build_alias,;t t
17075 s,@host_alias@,$host_alias,;t t
17076 s,@target_alias@,$target_alias,;t t
17077 s,@DEFS@,$DEFS,;t t
17078 s,@ECHO_C@,$ECHO_C,;t t
17079 s,@ECHO_N@,$ECHO_N,;t t
17080 s,@ECHO_T@,$ECHO_T,;t t
17081 s,@LIBS@,$LIBS,;t t
17082 s,@WIN16_FILES@,$WIN16_FILES,;t t
17083 s,@WIN16_INSTALL@,$WIN16_INSTALL,;t t
17084 s,@LIBPTHREAD@,$LIBPTHREAD,;t t
17085 s,@build@,$build,;t t
17086 s,@build_cpu@,$build_cpu,;t t
17087 s,@build_vendor@,$build_vendor,;t t
17088 s,@build_os@,$build_os,;t t
17089 s,@host@,$host,;t t
17090 s,@host_cpu@,$host_cpu,;t t
17091 s,@host_vendor@,$host_vendor,;t t
17092 s,@host_os@,$host_os,;t t
17093 s,@SET_MAKE@,$SET_MAKE,;t t
17094 s,@CC@,$CC,;t t
17095 s,@CFLAGS@,$CFLAGS,;t t
17096 s,@LDFLAGS@,$LDFLAGS,;t t
17097 s,@CPPFLAGS@,$CPPFLAGS,;t t
17098 s,@ac_ct_CC@,$ac_ct_CC,;t t
17099 s,@EXEEXT@,$EXEEXT,;t t
17100 s,@OBJEXT@,$OBJEXT,;t t
17101 s,@CPP@,$CPP,;t t
17102 s,@TOOLSDIR@,$TOOLSDIR,;t t
17103 s,@X_CFLAGS@,$X_CFLAGS,;t t
17104 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
17105 s,@X_LIBS@,$X_LIBS,;t t
17106 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
17107 s,@YACC@,$YACC,;t t
17108 s,@LEX@,$LEX,;t t
17109 s,@LEXLIB@,$LEXLIB,;t t
17110 s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
17111 s,@XYACC@,$XYACC,;t t
17112 s,@XLEX@,$XLEX,;t t
17113 s,@AS@,$AS,;t t
17114 s,@ac_ct_AS@,$ac_ct_AS,;t t
17115 s,@LD@,$LD,;t t
17116 s,@ac_ct_LD@,$ac_ct_LD,;t t
17117 s,@AR@,$AR,;t t
17118 s,@ac_ct_AR@,$ac_ct_AR,;t t
17119 s,@RANLIB@,$RANLIB,;t t
17120 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
17121 s,@STRIP@,$STRIP,;t t
17122 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
17123 s,@WINDRES@,$WINDRES,;t t
17124 s,@ac_ct_WINDRES@,$ac_ct_WINDRES,;t t
17125 s,@LN_S@,$LN_S,;t t
17126 s,@LN@,$LN,;t t
17127 s,@C2MAN@,$C2MAN,;t t
17128 s,@LDCONFIG@,$LDCONFIG,;t t
17129 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
17130 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
17131 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
17132 s,@LINT@,$LINT,;t t
17133 s,@LINTFLAGS@,$LINTFLAGS,;t t
17134 s,@DB2HTML@,$DB2HTML,;t t
17135 s,@DB2PDF@,$DB2PDF,;t t
17136 s,@DB2PS@,$DB2PS,;t t
17137 s,@JPEGLIB@,$JPEGLIB,;t t
17138 s,@EGREP@,$EGREP,;t t
17139 s,@GIFLIB@,$GIFLIB,;t t
17140 s,@XLIB@,$XLIB,;t t
17141 s,@XFILES@,$XFILES,;t t
17142 s,@OPENGLFILES@,$OPENGLFILES,;t t
17143 s,@GLU32FILES@,$GLU32FILES,;t t
17144 s,@OPENGL_LIBS@,$OPENGL_LIBS,;t t
17145 s,@NASLIBS@,$NASLIBS,;t t
17146 s,@CURSESLIBS@,$CURSESLIBS,;t t
17147 s,@sane_devel@,$sane_devel,;t t
17148 s,@SANELIBS@,$SANELIBS,;t t
17149 s,@SANEINCL@,$SANEINCL,;t t
17150 s,@ICULIBS@,$ICULIBS,;t t
17151 s,@ft_devel@,$ft_devel,;t t
17152 s,@ft_devel2@,$ft_devel2,;t t
17153 s,@FREETYPEINCL@,$FREETYPEINCL,;t t
17154 s,@ARTSCCONFIG@,$ARTSCCONFIG,;t t
17155 s,@ARTSLIBS@,$ARTSLIBS,;t t
17156 s,@ARTSINCL@,$ARTSINCL,;t t
17157 s,@ALSALIBS@,$ALSALIBS,;t t
17158 s,@AUDIOIOLIBS@,$AUDIOIOLIBS,;t t
17159 s,@EXTRACFLAGS@,$EXTRACFLAGS,;t t
17160 s,@DLLEXT@,$DLLEXT,;t t
17161 s,@DLLFLAGS@,$DLLFLAGS,;t t
17162 s,@DLLIBS@,$DLLIBS,;t t
17163 s,@LDDLLFLAGS@,$LDDLLFLAGS,;t t
17164 s,@LDSHARED@,$LDSHARED,;t t
17165 s,@LIBEXT@,$LIBEXT,;t t
17166 s,@IMPLIBEXT@,$IMPLIBEXT,;t t
17167 s,@DLLTOOL@,$DLLTOOL,;t t
17168 s,@ac_ct_DLLTOOL@,$ac_ct_DLLTOOL,;t t
17169 s,@DLLWRAP@,$DLLWRAP,;t t
17170 s,@ac_ct_DLLWRAP@,$ac_ct_DLLWRAP,;t t
17171 s,@LDEXECFLAGS@,$LDEXECFLAGS,;t t
17172 s,@CROSSTEST@,$CROSSTEST,;t t
17173 s,@CROSSCC@,$CROSSCC,;t t
17174 s,@CROSSWINDRES@,$CROSSWINDRES,;t t
17175 s,@LDPATH@,$LDPATH,;t t
17176 s,@CRTLIBS@,$CRTLIBS,;t t
17177 s,@LDD@,$LDD,;t t
17178 s,@ALLOCA@,$ALLOCA,;t t
17179 s,@LIBOBJS@,$LIBOBJS,;t t
17180 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
17181 /@MAKE_RULES@/r $MAKE_RULES
17182 s,@MAKE_RULES@,,;t t
17183 /@MAKE_DLL_RULES@/r $MAKE_DLL_RULES
17184 s,@MAKE_DLL_RULES@,,;t t
17185 /@MAKE_TEST_RULES@/r $MAKE_TEST_RULES
17186 s,@MAKE_TEST_RULES@,,;t t
17187 /@MAKE_LIB_RULES@/r $MAKE_LIB_RULES
17188 s,@MAKE_LIB_RULES@,,;t t
17189 /@MAKE_PROG_RULES@/r $MAKE_PROG_RULES
17190 s,@MAKE_PROG_RULES@,,;t t
17191 CEOF
17192
17193 _ACEOF
17194
17195   cat >>$CONFIG_STATUS <<\_ACEOF
17196   # Split the substitutions into bite-sized pieces for seds with
17197   # small command number limits, like on Digital OSF/1 and HP-UX.
17198   ac_max_sed_lines=48
17199   ac_sed_frag=1 # Number of current file.
17200   ac_beg=1 # First line for current file.
17201   ac_end=$ac_max_sed_lines # Line after last line for current file.
17202   ac_more_lines=:
17203   ac_sed_cmds=
17204   while $ac_more_lines; do
17205     if test $ac_beg -gt 1; then
17206       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
17207     else
17208       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
17209     fi
17210     if test ! -s $tmp/subs.frag; then
17211       ac_more_lines=false
17212     else
17213       # The purpose of the label and of the branching condition is to
17214       # speed up the sed processing (if there are no `@' at all, there
17215       # is no need to browse any of the substitutions).
17216       # These are the two extra sed commands mentioned above.
17217       (echo ':t
17218   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
17219       if test -z "$ac_sed_cmds"; then
17220         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
17221       else
17222         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
17223       fi
17224       ac_sed_frag=`expr $ac_sed_frag + 1`
17225       ac_beg=$ac_end
17226       ac_end=`expr $ac_end + $ac_max_sed_lines`
17227     fi
17228   done
17229   if test -z "$ac_sed_cmds"; then
17230     ac_sed_cmds=cat
17231   fi
17232 fi # test -n "$CONFIG_FILES"
17233
17234 _ACEOF
17235 cat >>$CONFIG_STATUS <<\_ACEOF
17236 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
17237   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
17238   case $ac_file in
17239   - | *:- | *:-:* ) # input from stdin
17240         cat >$tmp/stdin
17241         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17242         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17243   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17244         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17245   * )   ac_file_in=$ac_file.in ;;
17246   esac
17247
17248   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
17249   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
17250 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17251          X"$ac_file" : 'X\(//\)[^/]' \| \
17252          X"$ac_file" : 'X\(//\)$' \| \
17253          X"$ac_file" : 'X\(/\)' \| \
17254          .     : '\(.\)' 2>/dev/null ||
17255 echo X"$ac_file" |
17256     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17257           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17258           /^X\(\/\/\)$/{ s//\1/; q; }
17259           /^X\(\/\).*/{ s//\1/; q; }
17260           s/.*/./; q'`
17261   { if $as_mkdir_p; then
17262     mkdir -p "$ac_dir"
17263   else
17264     as_dir="$ac_dir"
17265     as_dirs=
17266     while test ! -d "$as_dir"; do
17267       as_dirs="$as_dir $as_dirs"
17268       as_dir=`(dirname "$as_dir") 2>/dev/null ||
17269 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17270          X"$as_dir" : 'X\(//\)[^/]' \| \
17271          X"$as_dir" : 'X\(//\)$' \| \
17272          X"$as_dir" : 'X\(/\)' \| \
17273          .     : '\(.\)' 2>/dev/null ||
17274 echo X"$as_dir" |
17275     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17276           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17277           /^X\(\/\/\)$/{ s//\1/; q; }
17278           /^X\(\/\).*/{ s//\1/; q; }
17279           s/.*/./; q'`
17280     done
17281     test ! -n "$as_dirs" || mkdir $as_dirs
17282   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
17283 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
17284    { (exit 1); exit 1; }; }; }
17285
17286   ac_builddir=.
17287
17288 if test "$ac_dir" != .; then
17289   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
17290   # A "../" for each directory in $ac_dir_suffix.
17291   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
17292 else
17293   ac_dir_suffix= ac_top_builddir=
17294 fi
17295
17296 case $srcdir in
17297   .)  # No --srcdir option.  We are building in place.
17298     ac_srcdir=.
17299     if test -z "$ac_top_builddir"; then
17300        ac_top_srcdir=.
17301     else
17302        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
17303     fi ;;
17304   [\\/]* | ?:[\\/]* )  # Absolute path.
17305     ac_srcdir=$srcdir$ac_dir_suffix;
17306     ac_top_srcdir=$srcdir ;;
17307   *) # Relative path.
17308     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
17309     ac_top_srcdir=$ac_top_builddir$srcdir ;;
17310 esac
17311 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
17312 # absolute.
17313 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
17314 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
17315 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
17316 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
17317
17318
17319   case $INSTALL in
17320   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
17321   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
17322   esac
17323
17324   if test x"$ac_file" != x-; then
17325     { echo "$as_me:$LINENO: creating $ac_file" >&5
17326 echo "$as_me: creating $ac_file" >&6;}
17327     rm -f "$ac_file"
17328   fi
17329   # Let's still pretend it is `configure' which instantiates (i.e., don't
17330   # use $as_me), people would be surprised to read:
17331   #    /* config.h.  Generated by config.status.  */
17332   if test x"$ac_file" = x-; then
17333     configure_input=
17334   else
17335     configure_input="$ac_file.  "
17336   fi
17337   configure_input=$configure_input"Generated from `echo $ac_file_in |
17338                                      sed 's,.*/,,'` by configure."
17339
17340   # First look for the input files in the build tree, otherwise in the
17341   # src tree.
17342   ac_file_inputs=`IFS=:
17343     for f in $ac_file_in; do
17344       case $f in
17345       -) echo $tmp/stdin ;;
17346       [\\/$]*)
17347          # Absolute (can't be DOS-style, as IFS=:)
17348          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17349 echo "$as_me: error: cannot find input file: $f" >&2;}
17350    { (exit 1); exit 1; }; }
17351          echo $f;;
17352       *) # Relative
17353          if test -f "$f"; then
17354            # Build tree
17355            echo $f
17356          elif test -f "$srcdir/$f"; then
17357            # Source tree
17358            echo $srcdir/$f
17359          else
17360            # /dev/null tree
17361            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17362 echo "$as_me: error: cannot find input file: $f" >&2;}
17363    { (exit 1); exit 1; }; }
17364          fi;;
17365       esac
17366     done` || { (exit 1); exit 1; }
17367 _ACEOF
17368 cat >>$CONFIG_STATUS <<_ACEOF
17369   sed "$ac_vpsub
17370 $extrasub
17371 _ACEOF
17372 cat >>$CONFIG_STATUS <<\_ACEOF
17373 :t
17374 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17375 s,@configure_input@,$configure_input,;t t
17376 s,@srcdir@,$ac_srcdir,;t t
17377 s,@abs_srcdir@,$ac_abs_srcdir,;t t
17378 s,@top_srcdir@,$ac_top_srcdir,;t t
17379 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
17380 s,@builddir@,$ac_builddir,;t t
17381 s,@abs_builddir@,$ac_abs_builddir,;t t
17382 s,@top_builddir@,$ac_top_builddir,;t t
17383 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
17384 s,@INSTALL@,$ac_INSTALL,;t t
17385 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
17386   rm -f $tmp/stdin
17387   if test x"$ac_file" != x-; then
17388     mv $tmp/out $ac_file
17389   else
17390     cat $tmp/out
17391     rm -f $tmp/out
17392   fi
17393
17394 done
17395 _ACEOF
17396 cat >>$CONFIG_STATUS <<\_ACEOF
17397
17398 #
17399 # CONFIG_HEADER section.
17400 #
17401
17402 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
17403 # NAME is the cpp macro being defined and VALUE is the value it is being given.
17404 #
17405 # ac_d sets the value in "#define NAME VALUE" lines.
17406 ac_dA='s,^\([   ]*\)#\([        ]*define[       ][      ]*\)'
17407 ac_dB='[        ].*$,\1#\2'
17408 ac_dC=' '
17409 ac_dD=',;t'
17410 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
17411 ac_uA='s,^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
17412 ac_uB='$,\1#\2define\3'
17413 ac_uC=' '
17414 ac_uD=',;t'
17415
17416 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
17417   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
17418   case $ac_file in
17419   - | *:- | *:-:* ) # input from stdin
17420         cat >$tmp/stdin
17421         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17422         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17423   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17424         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17425   * )   ac_file_in=$ac_file.in ;;
17426   esac
17427
17428   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
17429 echo "$as_me: creating $ac_file" >&6;}
17430
17431   # First look for the input files in the build tree, otherwise in the
17432   # src tree.
17433   ac_file_inputs=`IFS=:
17434     for f in $ac_file_in; do
17435       case $f in
17436       -) echo $tmp/stdin ;;
17437       [\\/$]*)
17438          # Absolute (can't be DOS-style, as IFS=:)
17439          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17440 echo "$as_me: error: cannot find input file: $f" >&2;}
17441    { (exit 1); exit 1; }; }
17442          echo $f;;
17443       *) # Relative
17444          if test -f "$f"; then
17445            # Build tree
17446            echo $f
17447          elif test -f "$srcdir/$f"; then
17448            # Source tree
17449            echo $srcdir/$f
17450          else
17451            # /dev/null tree
17452            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17453 echo "$as_me: error: cannot find input file: $f" >&2;}
17454    { (exit 1); exit 1; }; }
17455          fi;;
17456       esac
17457     done` || { (exit 1); exit 1; }
17458   # Remove the trailing spaces.
17459   sed 's/[      ]*$//' $ac_file_inputs >$tmp/in
17460
17461 _ACEOF
17462
17463 # Transform confdefs.h into two sed scripts, `conftest.defines' and
17464 # `conftest.undefs', that substitutes the proper values into
17465 # config.h.in to produce config.h.  The first handles `#define'
17466 # templates, and the second `#undef' templates.
17467 # And first: Protect against being on the right side of a sed subst in
17468 # config.status.  Protect against being in an unquoted here document
17469 # in config.status.
17470 rm -f conftest.defines conftest.undefs
17471 # Using a here document instead of a string reduces the quoting nightmare.
17472 # Putting comments in sed scripts is not portable.
17473 #
17474 # `end' is used to avoid that the second main sed command (meant for
17475 # 0-ary CPP macros) applies to n-ary macro definitions.
17476 # See the Autoconf documentation for `clear'.
17477 cat >confdef2sed.sed <<\_ACEOF
17478 s/[\\&,]/\\&/g
17479 s,[\\$`],\\&,g
17480 t clear
17481 : clear
17482 s,^[    ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
17483 t end
17484 s,^[    ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
17485 : end
17486 _ACEOF
17487 # If some macros were called several times there might be several times
17488 # the same #defines, which is useless.  Nevertheless, we may not want to
17489 # sort them, since we want the *last* AC-DEFINE to be honored.
17490 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
17491 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
17492 rm -f confdef2sed.sed
17493
17494 # This sed command replaces #undef with comments.  This is necessary, for
17495 # example, in the case of _POSIX_SOURCE, which is predefined and required
17496 # on some systems where configure will not decide to define it.
17497 cat >>conftest.undefs <<\_ACEOF
17498 s,^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
17499 _ACEOF
17500
17501 # Break up conftest.defines because some shells have a limit on the size
17502 # of here documents, and old seds have small limits too (100 cmds).
17503 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
17504 echo '  if grep "^[     ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
17505 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
17506 echo '  :' >>$CONFIG_STATUS
17507 rm -f conftest.tail
17508 while grep . conftest.defines >/dev/null
17509 do
17510   # Write a limited-size here document to $tmp/defines.sed.
17511   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
17512   # Speed up: don't consider the non `#define' lines.
17513   echo '/^[     ]*#[    ]*define/!b' >>$CONFIG_STATUS
17514   # Work around the forget-to-reset-the-flag bug.
17515   echo 't clr' >>$CONFIG_STATUS
17516   echo ': clr' >>$CONFIG_STATUS
17517   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
17518   echo 'CEOF
17519   sed -f $tmp/defines.sed $tmp/in >$tmp/out
17520   rm -f $tmp/in
17521   mv $tmp/out $tmp/in
17522 ' >>$CONFIG_STATUS
17523   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
17524   rm -f conftest.defines
17525   mv conftest.tail conftest.defines
17526 done
17527 rm -f conftest.defines
17528 echo '  fi # grep' >>$CONFIG_STATUS
17529 echo >>$CONFIG_STATUS
17530
17531 # Break up conftest.undefs because some shells have a limit on the size
17532 # of here documents, and old seds have small limits too (100 cmds).
17533 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
17534 rm -f conftest.tail
17535 while grep . conftest.undefs >/dev/null
17536 do
17537   # Write a limited-size here document to $tmp/undefs.sed.
17538   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
17539   # Speed up: don't consider the non `#undef'
17540   echo '/^[     ]*#[    ]*undef/!b' >>$CONFIG_STATUS
17541   # Work around the forget-to-reset-the-flag bug.
17542   echo 't clr' >>$CONFIG_STATUS
17543   echo ': clr' >>$CONFIG_STATUS
17544   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
17545   echo 'CEOF
17546   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
17547   rm -f $tmp/in
17548   mv $tmp/out $tmp/in
17549 ' >>$CONFIG_STATUS
17550   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
17551   rm -f conftest.undefs
17552   mv conftest.tail conftest.undefs
17553 done
17554 rm -f conftest.undefs
17555
17556 cat >>$CONFIG_STATUS <<\_ACEOF
17557   # Let's still pretend it is `configure' which instantiates (i.e., don't
17558   # use $as_me), people would be surprised to read:
17559   #    /* config.h.  Generated by config.status.  */
17560   if test x"$ac_file" = x-; then
17561     echo "/* Generated by configure.  */" >$tmp/config.h
17562   else
17563     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
17564   fi
17565   cat $tmp/in >>$tmp/config.h
17566   rm -f $tmp/in
17567   if test x"$ac_file" != x-; then
17568     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
17569       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
17570 echo "$as_me: $ac_file is unchanged" >&6;}
17571     else
17572       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
17573 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17574          X"$ac_file" : 'X\(//\)[^/]' \| \
17575          X"$ac_file" : 'X\(//\)$' \| \
17576          X"$ac_file" : 'X\(/\)' \| \
17577          .     : '\(.\)' 2>/dev/null ||
17578 echo X"$ac_file" |
17579     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17580           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17581           /^X\(\/\/\)$/{ s//\1/; q; }
17582           /^X\(\/\).*/{ s//\1/; q; }
17583           s/.*/./; q'`
17584       { if $as_mkdir_p; then
17585     mkdir -p "$ac_dir"
17586   else
17587     as_dir="$ac_dir"
17588     as_dirs=
17589     while test ! -d "$as_dir"; do
17590       as_dirs="$as_dir $as_dirs"
17591       as_dir=`(dirname "$as_dir") 2>/dev/null ||
17592 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17593          X"$as_dir" : 'X\(//\)[^/]' \| \
17594          X"$as_dir" : 'X\(//\)$' \| \
17595          X"$as_dir" : 'X\(/\)' \| \
17596          .     : '\(.\)' 2>/dev/null ||
17597 echo X"$as_dir" |
17598     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17599           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17600           /^X\(\/\/\)$/{ s//\1/; q; }
17601           /^X\(\/\).*/{ s//\1/; q; }
17602           s/.*/./; q'`
17603     done
17604     test ! -n "$as_dirs" || mkdir $as_dirs
17605   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
17606 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
17607    { (exit 1); exit 1; }; }; }
17608
17609       rm -f $ac_file
17610       mv $tmp/config.h $ac_file
17611     fi
17612   else
17613     cat $tmp/config.h
17614     rm -f $tmp/config.h
17615   fi
17616 done
17617 _ACEOF
17618 cat >>$CONFIG_STATUS <<\_ACEOF
17619
17620 #
17621 # CONFIG_COMMANDS section.
17622 #
17623 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
17624   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
17625   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
17626   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
17627 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17628          X"$ac_dest" : 'X\(//\)[^/]' \| \
17629          X"$ac_dest" : 'X\(//\)$' \| \
17630          X"$ac_dest" : 'X\(/\)' \| \
17631          .     : '\(.\)' 2>/dev/null ||
17632 echo X"$ac_dest" |
17633     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17634           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17635           /^X\(\/\/\)$/{ s//\1/; q; }
17636           /^X\(\/\).*/{ s//\1/; q; }
17637           s/.*/./; q'`
17638   ac_builddir=.
17639
17640 if test "$ac_dir" != .; then
17641   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
17642   # A "../" for each directory in $ac_dir_suffix.
17643   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
17644 else
17645   ac_dir_suffix= ac_top_builddir=
17646 fi
17647
17648 case $srcdir in
17649   .)  # No --srcdir option.  We are building in place.
17650     ac_srcdir=.
17651     if test -z "$ac_top_builddir"; then
17652        ac_top_srcdir=.
17653     else
17654        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
17655     fi ;;
17656   [\\/]* | ?:[\\/]* )  # Absolute path.
17657     ac_srcdir=$srcdir$ac_dir_suffix;
17658     ac_top_srcdir=$srcdir ;;
17659   *) # Relative path.
17660     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
17661     ac_top_srcdir=$ac_top_builddir$srcdir ;;
17662 esac
17663 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
17664 # absolute.
17665 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
17666 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
17667 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
17668 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
17669
17670
17671   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
17672 echo "$as_me: executing $ac_dest commands" >&6;}
17673   case $ac_dest in
17674     controls ) test -d "controls" || ({ echo "$as_me:$LINENO: creating controls" >&5
17675 echo "$as_me: creating controls" >&6;} && mkdir "controls") ;;
17676     dlls/ddraw/d3ddevice ) test -d "dlls/ddraw/d3ddevice" || ({ echo "$as_me:$LINENO: creating dlls/ddraw/d3ddevice" >&5
17677 echo "$as_me: creating dlls/ddraw/d3ddevice" >&6;} && mkdir "dlls/ddraw/d3ddevice") ;;
17678     dlls/ddraw/dclipper ) test -d "dlls/ddraw/dclipper" || ({ echo "$as_me:$LINENO: creating dlls/ddraw/dclipper" >&5
17679 echo "$as_me: creating dlls/ddraw/dclipper" >&6;} && mkdir "dlls/ddraw/dclipper") ;;
17680     dlls/ddraw/ddraw ) test -d "dlls/ddraw/ddraw" || ({ echo "$as_me:$LINENO: creating dlls/ddraw/ddraw" >&5
17681 echo "$as_me: creating dlls/ddraw/ddraw" >&6;} && mkdir "dlls/ddraw/ddraw") ;;
17682     dlls/ddraw/direct3d ) test -d "dlls/ddraw/direct3d" || ({ echo "$as_me:$LINENO: creating dlls/ddraw/direct3d" >&5
17683 echo "$as_me: creating dlls/ddraw/direct3d" >&6;} && mkdir "dlls/ddraw/direct3d") ;;
17684     dlls/ddraw/dpalette ) test -d "dlls/ddraw/dpalette" || ({ echo "$as_me:$LINENO: creating dlls/ddraw/dpalette" >&5
17685 echo "$as_me: creating dlls/ddraw/dpalette" >&6;} && mkdir "dlls/ddraw/dpalette") ;;
17686     dlls/ddraw/dsurface ) test -d "dlls/ddraw/dsurface" || ({ echo "$as_me:$LINENO: creating dlls/ddraw/dsurface" >&5
17687 echo "$as_me: creating dlls/ddraw/dsurface" >&6;} && mkdir "dlls/ddraw/dsurface") ;;
17688     dlls/dinput/joystick ) test -d "dlls/dinput/joystick" || ({ echo "$as_me:$LINENO: creating dlls/dinput/joystick" >&5
17689 echo "$as_me: creating dlls/dinput/joystick" >&6;} && mkdir "dlls/dinput/joystick") ;;
17690     dlls/dinput/keyboard ) test -d "dlls/dinput/keyboard" || ({ echo "$as_me:$LINENO: creating dlls/dinput/keyboard" >&5
17691 echo "$as_me: creating dlls/dinput/keyboard" >&6;} && mkdir "dlls/dinput/keyboard") ;;
17692     dlls/dinput/mouse ) test -d "dlls/dinput/mouse" || ({ echo "$as_me:$LINENO: creating dlls/dinput/mouse" >&5
17693 echo "$as_me: creating dlls/dinput/mouse" >&6;} && mkdir "dlls/dinput/mouse") ;;
17694     dlls/gdi/enhmfdrv ) test -d "dlls/gdi/enhmfdrv" || ({ echo "$as_me:$LINENO: creating dlls/gdi/enhmfdrv" >&5
17695 echo "$as_me: creating dlls/gdi/enhmfdrv" >&6;} && mkdir "dlls/gdi/enhmfdrv") ;;
17696     dlls/gdi/mfdrv ) test -d "dlls/gdi/mfdrv" || ({ echo "$as_me:$LINENO: creating dlls/gdi/mfdrv" >&5
17697 echo "$as_me: creating dlls/gdi/mfdrv" >&6;} && mkdir "dlls/gdi/mfdrv") ;;
17698     dlls/kernel/messages ) test -d "dlls/kernel/messages" || ({ echo "$as_me:$LINENO: creating dlls/kernel/messages" >&5
17699 echo "$as_me: creating dlls/kernel/messages" >&6;} && mkdir "dlls/kernel/messages") ;;
17700     dlls/user/dde ) test -d "dlls/user/dde" || ({ echo "$as_me:$LINENO: creating dlls/user/dde" >&5
17701 echo "$as_me: creating dlls/user/dde" >&6;} && mkdir "dlls/user/dde") ;;
17702     dlls/user/resources ) test -d "dlls/user/resources" || ({ echo "$as_me:$LINENO: creating dlls/user/resources" >&5
17703 echo "$as_me: creating dlls/user/resources" >&6;} && mkdir "dlls/user/resources") ;;
17704     dlls/wineps/data ) test -d "dlls/wineps/data" || ({ echo "$as_me:$LINENO: creating dlls/wineps/data" >&5
17705 echo "$as_me: creating dlls/wineps/data" >&6;} && mkdir "dlls/wineps/data") ;;
17706     files ) test -d "files" || ({ echo "$as_me:$LINENO: creating files" >&5
17707 echo "$as_me: creating files" >&6;} && mkdir "files") ;;
17708     graphics ) test -d "graphics" || ({ echo "$as_me:$LINENO: creating graphics" >&5
17709 echo "$as_me: creating graphics" >&6;} && mkdir "graphics") ;;
17710     graphics/x11drv ) test -d "graphics/x11drv" || ({ echo "$as_me:$LINENO: creating graphics/x11drv" >&5
17711 echo "$as_me: creating graphics/x11drv" >&6;} && mkdir "graphics/x11drv") ;;
17712     if1632 ) test -d "if1632" || ({ echo "$as_me:$LINENO: creating if1632" >&5
17713 echo "$as_me: creating if1632" >&6;} && mkdir "if1632") ;;
17714     include/wine ) test -d "include/wine" || ({ echo "$as_me:$LINENO: creating include/wine" >&5
17715 echo "$as_me: creating include/wine" >&6;} && mkdir "include/wine") ;;
17716     loader ) test -d "loader" || ({ echo "$as_me:$LINENO: creating loader" >&5
17717 echo "$as_me: creating loader" >&6;} && mkdir "loader") ;;
17718     loader/ne ) test -d "loader/ne" || ({ echo "$as_me:$LINENO: creating loader/ne" >&5
17719 echo "$as_me: creating loader/ne" >&6;} && mkdir "loader/ne") ;;
17720     memory ) test -d "memory" || ({ echo "$as_me:$LINENO: creating memory" >&5
17721 echo "$as_me: creating memory" >&6;} && mkdir "memory") ;;
17722     misc ) test -d "misc" || ({ echo "$as_me:$LINENO: creating misc" >&5
17723 echo "$as_me: creating misc" >&6;} && mkdir "misc") ;;
17724     msdos ) test -d "msdos" || ({ echo "$as_me:$LINENO: creating msdos" >&5
17725 echo "$as_me: creating msdos" >&6;} && mkdir "msdos") ;;
17726     objects ) test -d "objects" || ({ echo "$as_me:$LINENO: creating objects" >&5
17727 echo "$as_me: creating objects" >&6;} && mkdir "objects") ;;
17728     ole ) test -d "ole" || ({ echo "$as_me:$LINENO: creating ole" >&5
17729 echo "$as_me: creating ole" >&6;} && mkdir "ole") ;;
17730     programs/regapi/tests ) test -d "programs/regapi/tests" || ({ echo "$as_me:$LINENO: creating programs/regapi/tests" >&5
17731 echo "$as_me: creating programs/regapi/tests" >&6;} && mkdir "programs/regapi/tests") ;;
17732     programs/regedit/tests ) test -d "programs/regedit/tests" || ({ echo "$as_me:$LINENO: creating programs/regedit/tests" >&5
17733 echo "$as_me: creating programs/regedit/tests" >&6;} && mkdir "programs/regedit/tests") ;;
17734     relay32 ) test -d "relay32" || ({ echo "$as_me:$LINENO: creating relay32" >&5
17735 echo "$as_me: creating relay32" >&6;} && mkdir "relay32") ;;
17736     scheduler ) test -d "scheduler" || ({ echo "$as_me:$LINENO: creating scheduler" >&5
17737 echo "$as_me: creating scheduler" >&6;} && mkdir "scheduler") ;;
17738     win32 ) test -d "win32" || ({ echo "$as_me:$LINENO: creating win32" >&5
17739 echo "$as_me: creating win32" >&6;} && mkdir "win32") ;;
17740     windows ) test -d "windows" || ({ echo "$as_me:$LINENO: creating windows" >&5
17741 echo "$as_me: creating windows" >&6;} && mkdir "windows") ;;
17742   esac
17743 done
17744 _ACEOF
17745
17746 cat >>$CONFIG_STATUS <<\_ACEOF
17747
17748 { (exit 0); exit 0; }
17749 _ACEOF
17750 chmod +x $CONFIG_STATUS
17751 ac_clean_files=$ac_clean_files_save
17752
17753
17754 # configure is writing to config.log, and then calls config.status.
17755 # config.status does its own redirection, appending to config.log.
17756 # Unfortunately, on DOS this fails, as config.log is still kept open
17757 # by configure, so config.status won't be able to write to it; its
17758 # output is simply discarded.  So we exec the FD to /dev/null,
17759 # effectively closing config.log, so it can be properly (re)opened and
17760 # appended to by config.status.  When coming back to configure, we
17761 # need to make the FD available again.
17762 if test "$no_create" != yes; then
17763   ac_cs_success=:
17764   ac_config_status_args=
17765   test "$silent" = yes &&
17766     ac_config_status_args="$ac_config_status_args --quiet"
17767   exec 5>/dev/null
17768   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17769   exec 5>>config.log
17770   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17771   # would make configure fail if this is the last instruction.
17772   $ac_cs_success || { (exit 1); exit 1; }
17773 fi
17774
17775
17776 if test "$have_x" = "no"
17777 then
17778   echo
17779   echo "*** Warning: X development files not found. Wine will be built without"
17780   echo "*** X support, which currently does not work, and would probably not be"
17781   echo "*** what you want anyway. You will need to install devel packages of"
17782   echo "*** Xlib/Xfree86 at the very least."
17783 fi
17784
17785 if test "$wine_cv_opengl_version_OK" = "no"
17786 then
17787   echo
17788   echo "*** Warning: old Mesa headers detected. Wine will be built without Direct3D"
17789   echo "*** support. Consider upgrading your Mesa libraries (http://www.mesa3d.org/)."
17790 fi
17791
17792 if test "$wine_cv_msg_freetype" = "yes"
17793 then
17794   echo
17795   echo "*** Note: Your system appears to have the FreeType 2 runtime libraries"
17796   echo "*** installed, but 'freetype-config' is not in your PATH. Install the"
17797   echo "*** freetype-devel package (or its equivalent on your distribution) to"
17798   echo "*** enable Wine to use TrueType fonts."
17799 fi
17800
17801 echo
17802 echo "Configure finished.  Do 'make depend && make' to compile Wine."
17803 echo
17804