Check and define AS (for cross/biarch compiler support).
[wine] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.57 for Wine 20021219.
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='20021219'
270 PACKAGE_STRING='Wine 20021219'
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 OPTIONS WIN16_FILES WIN16_INSTALL build build_cpu build_vendor build_os host host_cpu host_vendor host_os SET_MAKE CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CPP TOOLSDIR X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS YACC LEX LEXLIB LEX_OUTPUT_ROOT XYACC XLEX AS ac_ct_AS LD ac_ct_LD AR ac_ct_AR RANLIB ac_ct_RANLIB STRIP ac_ct_STRIP WINDRES ac_ct_WINDRES LN_S LN C2MAN LDCONFIG INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA LINT LINTFLAGS DB2HTML DB2PDF DB2PS JPEGLIB EGREP XLIB XFILES OPENGLFILES GLU32FILES OPENGL_LIBS NASLIBS CURSESLIBS sane_devel SANELIBS SANEINCL ft_devel ft_devel2 FREETYPEINCL ARTSCCONFIG ARTSLIBS ARTSINCL ALSALIBS AUDIOIOLIBS DLLEXT DLLFLAGS DLLIBS LDDLLFLAGS LDSHARED LIBEXT IMPLIBEXT DLLTOOL ac_ct_DLLTOOL DLLWRAP ac_ct_DLLWRAP CROSSTEST CROSSCC LDPATH CRTLIBS LDD ALLOCA LIBOBJS LTLIBOBJS'
312 ac_subst_files='MAKE_RULES MAKE_DLL_RULES MAKE_TEST_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 20021219 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 20021219:";;
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-wine-tools=<dir> use Wine tools from directory <dir>
862   --with-x                use the X Window System
863
864 Some influential environment variables:
865   CC          C compiler command
866   CFLAGS      C compiler flags
867   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
868               nonstandard directory <lib dir>
869   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
870               headers in a nonstandard directory <include dir>
871   CPP         C preprocessor
872
873 Use these variables to override the choices made by `configure' or to help
874 it to find libraries and programs with nonstandard names/locations.
875
876 _ACEOF
877 fi
878
879 if test "$ac_init_help" = "recursive"; then
880   # If there are subdirs, report their specific --help.
881   ac_popdir=`pwd`
882   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
883     test -d $ac_dir || continue
884     ac_builddir=.
885
886 if test "$ac_dir" != .; then
887   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
888   # A "../" for each directory in $ac_dir_suffix.
889   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
890 else
891   ac_dir_suffix= ac_top_builddir=
892 fi
893
894 case $srcdir in
895   .)  # No --srcdir option.  We are building in place.
896     ac_srcdir=.
897     if test -z "$ac_top_builddir"; then
898        ac_top_srcdir=.
899     else
900        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
901     fi ;;
902   [\\/]* | ?:[\\/]* )  # Absolute path.
903     ac_srcdir=$srcdir$ac_dir_suffix;
904     ac_top_srcdir=$srcdir ;;
905   *) # Relative path.
906     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
907     ac_top_srcdir=$ac_top_builddir$srcdir ;;
908 esac
909 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
910 # absolute.
911 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
912 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
913 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
914 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
915
916     cd $ac_dir
917     # Check for guested configure; otherwise get Cygnus style configure.
918     if test -f $ac_srcdir/configure.gnu; then
919       echo
920       $SHELL $ac_srcdir/configure.gnu  --help=recursive
921     elif test -f $ac_srcdir/configure; then
922       echo
923       $SHELL $ac_srcdir/configure  --help=recursive
924     elif test -f $ac_srcdir/configure.ac ||
925            test -f $ac_srcdir/configure.in; then
926       echo
927       $ac_configure --help
928     else
929       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
930     fi
931     cd $ac_popdir
932   done
933 fi
934
935 test -n "$ac_init_help" && exit 0
936 if $ac_init_version; then
937   cat <<\_ACEOF
938 Wine configure 20021219
939 generated by GNU Autoconf 2.57
940
941 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
942 Free Software Foundation, Inc.
943 This configure script is free software; the Free Software Foundation
944 gives unlimited permission to copy, distribute and modify it.
945 _ACEOF
946   exit 0
947 fi
948 exec 5>config.log
949 cat >&5 <<_ACEOF
950 This file contains any messages produced by compilers while
951 running configure, to aid debugging if configure makes a mistake.
952
953 It was created by Wine $as_me 20021219, which was
954 generated by GNU Autoconf 2.57.  Invocation command line was
955
956   $ $0 $@
957
958 _ACEOF
959 {
960 cat <<_ASUNAME
961 ## --------- ##
962 ## Platform. ##
963 ## --------- ##
964
965 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
966 uname -m = `(uname -m) 2>/dev/null || echo unknown`
967 uname -r = `(uname -r) 2>/dev/null || echo unknown`
968 uname -s = `(uname -s) 2>/dev/null || echo unknown`
969 uname -v = `(uname -v) 2>/dev/null || echo unknown`
970
971 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
972 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
973
974 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
975 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
976 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
977 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
978 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
979 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
980 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
981
982 _ASUNAME
983
984 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
985 for as_dir in $PATH
986 do
987   IFS=$as_save_IFS
988   test -z "$as_dir" && as_dir=.
989   echo "PATH: $as_dir"
990 done
991
992 } >&5
993
994 cat >&5 <<_ACEOF
995
996
997 ## ----------- ##
998 ## Core tests. ##
999 ## ----------- ##
1000
1001 _ACEOF
1002
1003
1004 # Keep a trace of the command line.
1005 # Strip out --no-create and --no-recursion so they do not pile up.
1006 # Strip out --silent because we don't want to record it for future runs.
1007 # Also quote any args containing shell meta-characters.
1008 # Make two passes to allow for proper duplicate-argument suppression.
1009 ac_configure_args=
1010 ac_configure_args0=
1011 ac_configure_args1=
1012 ac_sep=
1013 ac_must_keep_next=false
1014 for ac_pass in 1 2
1015 do
1016   for ac_arg
1017   do
1018     case $ac_arg in
1019     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1020     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1021     | -silent | --silent | --silen | --sile | --sil)
1022       continue ;;
1023     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1024       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1025     esac
1026     case $ac_pass in
1027     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1028     2)
1029       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1030       if test $ac_must_keep_next = true; then
1031         ac_must_keep_next=false # Got value, back to normal.
1032       else
1033         case $ac_arg in
1034           *=* | --config-cache | -C | -disable-* | --disable-* \
1035           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1036           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1037           | -with-* | --with-* | -without-* | --without-* | --x)
1038             case "$ac_configure_args0 " in
1039               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1040             esac
1041             ;;
1042           -* ) ac_must_keep_next=true ;;
1043         esac
1044       fi
1045       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1046       # Get rid of the leading space.
1047       ac_sep=" "
1048       ;;
1049     esac
1050   done
1051 done
1052 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1053 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1054
1055 # When interrupted or exit'd, cleanup temporary files, and complete
1056 # config.log.  We remove comments because anyway the quotes in there
1057 # would cause problems or look ugly.
1058 # WARNING: Be sure not to use single quotes in there, as some shells,
1059 # such as our DU 5.0 friend, will then `close' the trap.
1060 trap 'exit_status=$?
1061   # Save into config.log some information that might help in debugging.
1062   {
1063     echo
1064
1065     cat <<\_ASBOX
1066 ## ---------------- ##
1067 ## Cache variables. ##
1068 ## ---------------- ##
1069 _ASBOX
1070     echo
1071     # The following way of writing the cache mishandles newlines in values,
1072 {
1073   (set) 2>&1 |
1074     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1075     *ac_space=\ *)
1076       sed -n \
1077         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1078           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1079       ;;
1080     *)
1081       sed -n \
1082         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1083       ;;
1084     esac;
1085 }
1086     echo
1087
1088     cat <<\_ASBOX
1089 ## ----------------- ##
1090 ## Output variables. ##
1091 ## ----------------- ##
1092 _ASBOX
1093     echo
1094     for ac_var in $ac_subst_vars
1095     do
1096       eval ac_val=$`echo $ac_var`
1097       echo "$ac_var='"'"'$ac_val'"'"'"
1098     done | sort
1099     echo
1100
1101     if test -n "$ac_subst_files"; then
1102       cat <<\_ASBOX
1103 ## ------------- ##
1104 ## Output files. ##
1105 ## ------------- ##
1106 _ASBOX
1107       echo
1108       for ac_var in $ac_subst_files
1109       do
1110         eval ac_val=$`echo $ac_var`
1111         echo "$ac_var='"'"'$ac_val'"'"'"
1112       done | sort
1113       echo
1114     fi
1115
1116     if test -s confdefs.h; then
1117       cat <<\_ASBOX
1118 ## ----------- ##
1119 ## confdefs.h. ##
1120 ## ----------- ##
1121 _ASBOX
1122       echo
1123       sed "/^$/d" confdefs.h | sort
1124       echo
1125     fi
1126     test "$ac_signal" != 0 &&
1127       echo "$as_me: caught signal $ac_signal"
1128     echo "$as_me: exit $exit_status"
1129   } >&5
1130   rm -f core core.* *.core &&
1131   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1132     exit $exit_status
1133      ' 0
1134 for ac_signal in 1 2 13 15; do
1135   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1136 done
1137 ac_signal=0
1138
1139 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1140 rm -rf conftest* confdefs.h
1141 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1142 echo >confdefs.h
1143
1144 # Predefined preprocessor variables.
1145
1146 cat >>confdefs.h <<_ACEOF
1147 #define PACKAGE_NAME "$PACKAGE_NAME"
1148 _ACEOF
1149
1150
1151 cat >>confdefs.h <<_ACEOF
1152 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1153 _ACEOF
1154
1155
1156 cat >>confdefs.h <<_ACEOF
1157 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1158 _ACEOF
1159
1160
1161 cat >>confdefs.h <<_ACEOF
1162 #define PACKAGE_STRING "$PACKAGE_STRING"
1163 _ACEOF
1164
1165
1166 cat >>confdefs.h <<_ACEOF
1167 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1168 _ACEOF
1169
1170
1171 # Let the site file select an alternate cache file if it wants to.
1172 # Prefer explicitly selected file to automatically selected ones.
1173 if test -z "$CONFIG_SITE"; then
1174   if test "x$prefix" != xNONE; then
1175     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1176   else
1177     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1178   fi
1179 fi
1180 for ac_site_file in $CONFIG_SITE; do
1181   if test -r "$ac_site_file"; then
1182     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1183 echo "$as_me: loading site script $ac_site_file" >&6;}
1184     sed 's/^/| /' "$ac_site_file" >&5
1185     . "$ac_site_file"
1186   fi
1187 done
1188
1189 if test -r "$cache_file"; then
1190   # Some versions of bash will fail to source /dev/null (special
1191   # files actually), so we avoid doing that.
1192   if test -f "$cache_file"; then
1193     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1194 echo "$as_me: loading cache $cache_file" >&6;}
1195     case $cache_file in
1196       [\\/]* | ?:[\\/]* ) . $cache_file;;
1197       *)                      . ./$cache_file;;
1198     esac
1199   fi
1200 else
1201   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1202 echo "$as_me: creating cache $cache_file" >&6;}
1203   >$cache_file
1204 fi
1205
1206 # Check that the precious variables saved in the cache have kept the same
1207 # value.
1208 ac_cache_corrupted=false
1209 for ac_var in `(set) 2>&1 |
1210                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1211   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1212   eval ac_new_set=\$ac_env_${ac_var}_set
1213   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1214   eval ac_new_val="\$ac_env_${ac_var}_value"
1215   case $ac_old_set,$ac_new_set in
1216     set,)
1217       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1218 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1219       ac_cache_corrupted=: ;;
1220     ,set)
1221       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1222 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1223       ac_cache_corrupted=: ;;
1224     ,);;
1225     *)
1226       if test "x$ac_old_val" != "x$ac_new_val"; then
1227         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1228 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1229         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1230 echo "$as_me:   former value:  $ac_old_val" >&2;}
1231         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1232 echo "$as_me:   current value: $ac_new_val" >&2;}
1233         ac_cache_corrupted=:
1234       fi;;
1235   esac
1236   # Pass precious variables to config.status.
1237   if test "$ac_new_set" = set; then
1238     case $ac_new_val in
1239     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1240       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1241     *) ac_arg=$ac_var=$ac_new_val ;;
1242     esac
1243     case " $ac_configure_args " in
1244       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1245       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1246     esac
1247   fi
1248 done
1249 if $ac_cache_corrupted; then
1250   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1251 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1252   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1253 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1254    { (exit 1); exit 1; }; }
1255 fi
1256
1257 ac_ext=c
1258 ac_cpp='$CPP $CPPFLAGS'
1259 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1260 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1261 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1262
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           ac_config_headers="$ac_config_headers include/config.h"
1291
1292 ac_aux_dir=
1293 for ac_dir in tools $srcdir/tools; do
1294   if test -f $ac_dir/install-sh; then
1295     ac_aux_dir=$ac_dir
1296     ac_install_sh="$ac_aux_dir/install-sh -c"
1297     break
1298   elif test -f $ac_dir/install.sh; then
1299     ac_aux_dir=$ac_dir
1300     ac_install_sh="$ac_aux_dir/install.sh -c"
1301     break
1302   elif test -f $ac_dir/shtool; then
1303     ac_aux_dir=$ac_dir
1304     ac_install_sh="$ac_aux_dir/shtool install -c"
1305     break
1306   fi
1307 done
1308 if test -z "$ac_aux_dir"; then
1309   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in tools $srcdir/tools" >&5
1310 echo "$as_me: error: cannot find install-sh or install.sh in tools $srcdir/tools" >&2;}
1311    { (exit 1); exit 1; }; }
1312 fi
1313 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1314 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1315 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1316
1317
1318
1319 # Check whether --enable-win16 or --disable-win16 was given.
1320 if test "${enable_win16+set}" = set; then
1321   enableval="$enable_win16"
1322
1323 fi;
1324 # Check whether --enable-debug or --disable-debug was given.
1325 if test "${enable_debug+set}" = set; then
1326   enableval="$enable_debug"
1327
1328 fi;
1329 # Check whether --enable-trace or --disable-trace was given.
1330 if test "${enable_trace+set}" = set; then
1331   enableval="$enable_trace"
1332
1333 fi;
1334
1335
1336 # Check whether --with-opengl or --without-opengl was given.
1337 if test "${with_opengl+set}" = set; then
1338   withval="$with_opengl"
1339
1340 fi;
1341
1342 # Check whether --with-curses or --without-curses was given.
1343 if test "${with_curses+set}" = set; then
1344   withval="$with_curses"
1345
1346 fi;
1347
1348 # Check whether --with-wine-tools or --without-wine-tools was given.
1349 if test "${with_wine_tools+set}" = set; then
1350   withval="$with_wine_tools"
1351
1352 fi;
1353
1354
1355 WIN16_FILES="\$(WIN16_FILES)"
1356
1357 WIN16_INSTALL="\$(WIN16_INSTALL)"
1358
1359 if test "x$enable_win16" = "xno"
1360 then
1361   WIN16_FILES=""
1362   WIN16_INSTALL=""
1363 fi
1364 if test "x$enable_debug" = "xno"
1365 then
1366
1367 cat >>confdefs.h <<\_ACEOF
1368 #define NO_DEBUG_MSGS 1
1369 _ACEOF
1370
1371 fi
1372 if test "x$enable_trace" = "xno" -o "x$enable_debug" = "xno"
1373 then
1374
1375 cat >>confdefs.h <<\_ACEOF
1376 #define NO_TRACE_MSGS 1
1377 _ACEOF
1378
1379 fi
1380
1381
1382 # Make sure we can run config.sub.
1383 $ac_config_sub sun4 >/dev/null 2>&1 ||
1384   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1385 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1386    { (exit 1); exit 1; }; }
1387
1388 echo "$as_me:$LINENO: checking build system type" >&5
1389 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1390 if test "${ac_cv_build+set}" = set; then
1391   echo $ECHO_N "(cached) $ECHO_C" >&6
1392 else
1393   ac_cv_build_alias=$build_alias
1394 test -z "$ac_cv_build_alias" &&
1395   ac_cv_build_alias=`$ac_config_guess`
1396 test -z "$ac_cv_build_alias" &&
1397   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1398 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1399    { (exit 1); exit 1; }; }
1400 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1401   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1402 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1403    { (exit 1); exit 1; }; }
1404
1405 fi
1406 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1407 echo "${ECHO_T}$ac_cv_build" >&6
1408 build=$ac_cv_build
1409 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1410 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1411 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1412
1413
1414 echo "$as_me:$LINENO: checking host system type" >&5
1415 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1416 if test "${ac_cv_host+set}" = set; then
1417   echo $ECHO_N "(cached) $ECHO_C" >&6
1418 else
1419   ac_cv_host_alias=$host_alias
1420 test -z "$ac_cv_host_alias" &&
1421   ac_cv_host_alias=$ac_cv_build_alias
1422 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1423   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1424 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1425    { (exit 1); exit 1; }; }
1426
1427 fi
1428 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1429 echo "${ECHO_T}$ac_cv_host" >&6
1430 host=$ac_cv_host
1431 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1432 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1433 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1434
1435
1436 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1437 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1438 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
1439 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1440   echo $ECHO_N "(cached) $ECHO_C" >&6
1441 else
1442   cat >conftest.make <<\_ACEOF
1443 all:
1444         @echo 'ac_maketemp="$(MAKE)"'
1445 _ACEOF
1446 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1447 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1448 if test -n "$ac_maketemp"; then
1449   eval ac_cv_prog_make_${ac_make}_set=yes
1450 else
1451   eval ac_cv_prog_make_${ac_make}_set=no
1452 fi
1453 rm -f conftest.make
1454 fi
1455 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1456   echo "$as_me:$LINENO: result: yes" >&5
1457 echo "${ECHO_T}yes" >&6
1458   SET_MAKE=
1459 else
1460   echo "$as_me:$LINENO: result: no" >&5
1461 echo "${ECHO_T}no" >&6
1462   SET_MAKE="MAKE=${MAKE-make}"
1463 fi
1464
1465 ac_ext=c
1466 ac_cpp='$CPP $CPPFLAGS'
1467 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1468 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1469 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1470 if test -n "$ac_tool_prefix"; then
1471   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1472 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1473 echo "$as_me:$LINENO: checking for $ac_word" >&5
1474 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1475 if test "${ac_cv_prog_CC+set}" = set; then
1476   echo $ECHO_N "(cached) $ECHO_C" >&6
1477 else
1478   if test -n "$CC"; then
1479   ac_cv_prog_CC="$CC" # Let the user override the test.
1480 else
1481 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1482 for as_dir in $PATH
1483 do
1484   IFS=$as_save_IFS
1485   test -z "$as_dir" && as_dir=.
1486   for ac_exec_ext in '' $ac_executable_extensions; do
1487   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1488     ac_cv_prog_CC="${ac_tool_prefix}gcc"
1489     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1490     break 2
1491   fi
1492 done
1493 done
1494
1495 fi
1496 fi
1497 CC=$ac_cv_prog_CC
1498 if test -n "$CC"; then
1499   echo "$as_me:$LINENO: result: $CC" >&5
1500 echo "${ECHO_T}$CC" >&6
1501 else
1502   echo "$as_me:$LINENO: result: no" >&5
1503 echo "${ECHO_T}no" >&6
1504 fi
1505
1506 fi
1507 if test -z "$ac_cv_prog_CC"; then
1508   ac_ct_CC=$CC
1509   # Extract the first word of "gcc", so it can be a program name with args.
1510 set dummy gcc; ac_word=$2
1511 echo "$as_me:$LINENO: checking for $ac_word" >&5
1512 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1513 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1514   echo $ECHO_N "(cached) $ECHO_C" >&6
1515 else
1516   if test -n "$ac_ct_CC"; then
1517   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1518 else
1519 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1520 for as_dir in $PATH
1521 do
1522   IFS=$as_save_IFS
1523   test -z "$as_dir" && as_dir=.
1524   for ac_exec_ext in '' $ac_executable_extensions; do
1525   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1526     ac_cv_prog_ac_ct_CC="gcc"
1527     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1528     break 2
1529   fi
1530 done
1531 done
1532
1533 fi
1534 fi
1535 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1536 if test -n "$ac_ct_CC"; then
1537   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1538 echo "${ECHO_T}$ac_ct_CC" >&6
1539 else
1540   echo "$as_me:$LINENO: result: no" >&5
1541 echo "${ECHO_T}no" >&6
1542 fi
1543
1544   CC=$ac_ct_CC
1545 else
1546   CC="$ac_cv_prog_CC"
1547 fi
1548
1549 if test -z "$CC"; then
1550   if test -n "$ac_tool_prefix"; then
1551   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1552 set dummy ${ac_tool_prefix}cc; ac_word=$2
1553 echo "$as_me:$LINENO: checking for $ac_word" >&5
1554 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1555 if test "${ac_cv_prog_CC+set}" = set; then
1556   echo $ECHO_N "(cached) $ECHO_C" >&6
1557 else
1558   if test -n "$CC"; then
1559   ac_cv_prog_CC="$CC" # Let the user override the test.
1560 else
1561 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1562 for as_dir in $PATH
1563 do
1564   IFS=$as_save_IFS
1565   test -z "$as_dir" && as_dir=.
1566   for ac_exec_ext in '' $ac_executable_extensions; do
1567   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1568     ac_cv_prog_CC="${ac_tool_prefix}cc"
1569     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1570     break 2
1571   fi
1572 done
1573 done
1574
1575 fi
1576 fi
1577 CC=$ac_cv_prog_CC
1578 if test -n "$CC"; then
1579   echo "$as_me:$LINENO: result: $CC" >&5
1580 echo "${ECHO_T}$CC" >&6
1581 else
1582   echo "$as_me:$LINENO: result: no" >&5
1583 echo "${ECHO_T}no" >&6
1584 fi
1585
1586 fi
1587 if test -z "$ac_cv_prog_CC"; then
1588   ac_ct_CC=$CC
1589   # Extract the first word of "cc", so it can be a program name with args.
1590 set dummy cc; ac_word=$2
1591 echo "$as_me:$LINENO: checking for $ac_word" >&5
1592 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1593 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1594   echo $ECHO_N "(cached) $ECHO_C" >&6
1595 else
1596   if test -n "$ac_ct_CC"; then
1597   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1598 else
1599 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1600 for as_dir in $PATH
1601 do
1602   IFS=$as_save_IFS
1603   test -z "$as_dir" && as_dir=.
1604   for ac_exec_ext in '' $ac_executable_extensions; do
1605   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1606     ac_cv_prog_ac_ct_CC="cc"
1607     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1608     break 2
1609   fi
1610 done
1611 done
1612
1613 fi
1614 fi
1615 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1616 if test -n "$ac_ct_CC"; then
1617   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1618 echo "${ECHO_T}$ac_ct_CC" >&6
1619 else
1620   echo "$as_me:$LINENO: result: no" >&5
1621 echo "${ECHO_T}no" >&6
1622 fi
1623
1624   CC=$ac_ct_CC
1625 else
1626   CC="$ac_cv_prog_CC"
1627 fi
1628
1629 fi
1630 if test -z "$CC"; then
1631   # Extract the first word of "cc", so it can be a program name with args.
1632 set dummy cc; ac_word=$2
1633 echo "$as_me:$LINENO: checking for $ac_word" >&5
1634 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1635 if test "${ac_cv_prog_CC+set}" = set; then
1636   echo $ECHO_N "(cached) $ECHO_C" >&6
1637 else
1638   if test -n "$CC"; then
1639   ac_cv_prog_CC="$CC" # Let the user override the test.
1640 else
1641   ac_prog_rejected=no
1642 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1643 for as_dir in $PATH
1644 do
1645   IFS=$as_save_IFS
1646   test -z "$as_dir" && as_dir=.
1647   for ac_exec_ext in '' $ac_executable_extensions; do
1648   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1649     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1650        ac_prog_rejected=yes
1651        continue
1652      fi
1653     ac_cv_prog_CC="cc"
1654     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1655     break 2
1656   fi
1657 done
1658 done
1659
1660 if test $ac_prog_rejected = yes; then
1661   # We found a bogon in the path, so make sure we never use it.
1662   set dummy $ac_cv_prog_CC
1663   shift
1664   if test $# != 0; then
1665     # We chose a different compiler from the bogus one.
1666     # However, it has the same basename, so the bogon will be chosen
1667     # first if we set CC to just the basename; use the full file name.
1668     shift
1669     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1670   fi
1671 fi
1672 fi
1673 fi
1674 CC=$ac_cv_prog_CC
1675 if test -n "$CC"; then
1676   echo "$as_me:$LINENO: result: $CC" >&5
1677 echo "${ECHO_T}$CC" >&6
1678 else
1679   echo "$as_me:$LINENO: result: no" >&5
1680 echo "${ECHO_T}no" >&6
1681 fi
1682
1683 fi
1684 if test -z "$CC"; then
1685   if test -n "$ac_tool_prefix"; then
1686   for ac_prog in cl
1687   do
1688     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1689 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1690 echo "$as_me:$LINENO: checking for $ac_word" >&5
1691 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1692 if test "${ac_cv_prog_CC+set}" = set; then
1693   echo $ECHO_N "(cached) $ECHO_C" >&6
1694 else
1695   if test -n "$CC"; then
1696   ac_cv_prog_CC="$CC" # Let the user override the test.
1697 else
1698 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1699 for as_dir in $PATH
1700 do
1701   IFS=$as_save_IFS
1702   test -z "$as_dir" && as_dir=.
1703   for ac_exec_ext in '' $ac_executable_extensions; do
1704   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1705     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1706     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1707     break 2
1708   fi
1709 done
1710 done
1711
1712 fi
1713 fi
1714 CC=$ac_cv_prog_CC
1715 if test -n "$CC"; then
1716   echo "$as_me:$LINENO: result: $CC" >&5
1717 echo "${ECHO_T}$CC" >&6
1718 else
1719   echo "$as_me:$LINENO: result: no" >&5
1720 echo "${ECHO_T}no" >&6
1721 fi
1722
1723     test -n "$CC" && break
1724   done
1725 fi
1726 if test -z "$CC"; then
1727   ac_ct_CC=$CC
1728   for ac_prog in cl
1729 do
1730   # Extract the first word of "$ac_prog", so it can be a program name with args.
1731 set dummy $ac_prog; ac_word=$2
1732 echo "$as_me:$LINENO: checking for $ac_word" >&5
1733 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1734 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1735   echo $ECHO_N "(cached) $ECHO_C" >&6
1736 else
1737   if test -n "$ac_ct_CC"; then
1738   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1739 else
1740 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1741 for as_dir in $PATH
1742 do
1743   IFS=$as_save_IFS
1744   test -z "$as_dir" && as_dir=.
1745   for ac_exec_ext in '' $ac_executable_extensions; do
1746   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1747     ac_cv_prog_ac_ct_CC="$ac_prog"
1748     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1749     break 2
1750   fi
1751 done
1752 done
1753
1754 fi
1755 fi
1756 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1757 if test -n "$ac_ct_CC"; then
1758   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1759 echo "${ECHO_T}$ac_ct_CC" >&6
1760 else
1761   echo "$as_me:$LINENO: result: no" >&5
1762 echo "${ECHO_T}no" >&6
1763 fi
1764
1765   test -n "$ac_ct_CC" && break
1766 done
1767
1768   CC=$ac_ct_CC
1769 fi
1770
1771 fi
1772
1773
1774 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1775 See \`config.log' for more details." >&5
1776 echo "$as_me: error: no acceptable C compiler found in \$PATH
1777 See \`config.log' for more details." >&2;}
1778    { (exit 1); exit 1; }; }
1779
1780 # Provide some information about the compiler.
1781 echo "$as_me:$LINENO:" \
1782      "checking for C compiler version" >&5
1783 ac_compiler=`set X $ac_compile; echo $2`
1784 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1785   (eval $ac_compiler --version </dev/null >&5) 2>&5
1786   ac_status=$?
1787   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1788   (exit $ac_status); }
1789 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1790   (eval $ac_compiler -v </dev/null >&5) 2>&5
1791   ac_status=$?
1792   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1793   (exit $ac_status); }
1794 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1795   (eval $ac_compiler -V </dev/null >&5) 2>&5
1796   ac_status=$?
1797   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1798   (exit $ac_status); }
1799
1800 cat >conftest.$ac_ext <<_ACEOF
1801 #line $LINENO "configure"
1802 /* confdefs.h.  */
1803 _ACEOF
1804 cat confdefs.h >>conftest.$ac_ext
1805 cat >>conftest.$ac_ext <<_ACEOF
1806 /* end confdefs.h.  */
1807
1808 int
1809 main ()
1810 {
1811
1812   ;
1813   return 0;
1814 }
1815 _ACEOF
1816 ac_clean_files_save=$ac_clean_files
1817 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1818 # Try to create an executable without -o first, disregard a.out.
1819 # It will help us diagnose broken compilers, and finding out an intuition
1820 # of exeext.
1821 echo "$as_me:$LINENO: checking for C compiler default output" >&5
1822 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1823 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1824 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1825   (eval $ac_link_default) 2>&5
1826   ac_status=$?
1827   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1828   (exit $ac_status); }; then
1829   # Find the output, starting from the most likely.  This scheme is
1830 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1831 # resort.
1832
1833 # Be careful to initialize this variable, since it used to be cached.
1834 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1835 ac_cv_exeext=
1836 # b.out is created by i960 compilers.
1837 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1838 do
1839   test -f "$ac_file" || continue
1840   case $ac_file in
1841     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1842         ;;
1843     conftest.$ac_ext )
1844         # This is the source file.
1845         ;;
1846     [ab].out )
1847         # We found the default executable, but exeext='' is most
1848         # certainly right.
1849         break;;
1850     *.* )
1851         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1852         # FIXME: I believe we export ac_cv_exeext for Libtool,
1853         # but it would be cool to find out if it's true.  Does anybody
1854         # maintain Libtool? --akim.
1855         export ac_cv_exeext
1856         break;;
1857     * )
1858         break;;
1859   esac
1860 done
1861 else
1862   echo "$as_me: failed program was:" >&5
1863 sed 's/^/| /' conftest.$ac_ext >&5
1864
1865 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1866 See \`config.log' for more details." >&5
1867 echo "$as_me: error: C compiler cannot create executables
1868 See \`config.log' for more details." >&2;}
1869    { (exit 77); exit 77; }; }
1870 fi
1871
1872 ac_exeext=$ac_cv_exeext
1873 echo "$as_me:$LINENO: result: $ac_file" >&5
1874 echo "${ECHO_T}$ac_file" >&6
1875
1876 # Check the compiler produces executables we can run.  If not, either
1877 # the compiler is broken, or we cross compile.
1878 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1879 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1880 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1881 # If not cross compiling, check that we can run a simple program.
1882 if test "$cross_compiling" != yes; then
1883   if { ac_try='./$ac_file'
1884   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1885   (eval $ac_try) 2>&5
1886   ac_status=$?
1887   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1888   (exit $ac_status); }; }; then
1889     cross_compiling=no
1890   else
1891     if test "$cross_compiling" = maybe; then
1892         cross_compiling=yes
1893     else
1894         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1895 If you meant to cross compile, use \`--host'.
1896 See \`config.log' for more details." >&5
1897 echo "$as_me: error: cannot run C compiled programs.
1898 If you meant to cross compile, use \`--host'.
1899 See \`config.log' for more details." >&2;}
1900    { (exit 1); exit 1; }; }
1901     fi
1902   fi
1903 fi
1904 echo "$as_me:$LINENO: result: yes" >&5
1905 echo "${ECHO_T}yes" >&6
1906
1907 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1908 ac_clean_files=$ac_clean_files_save
1909 # Check the compiler produces executables we can run.  If not, either
1910 # the compiler is broken, or we cross compile.
1911 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1912 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1913 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1914 echo "${ECHO_T}$cross_compiling" >&6
1915
1916 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1917 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1918 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1919   (eval $ac_link) 2>&5
1920   ac_status=$?
1921   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1922   (exit $ac_status); }; then
1923   # If both `conftest.exe' and `conftest' are `present' (well, observable)
1924 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
1925 # work properly (i.e., refer to `conftest.exe'), while it won't with
1926 # `rm'.
1927 for ac_file in conftest.exe conftest conftest.*; do
1928   test -f "$ac_file" || continue
1929   case $ac_file in
1930     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1931     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1932           export ac_cv_exeext
1933           break;;
1934     * ) break;;
1935   esac
1936 done
1937 else
1938   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1939 See \`config.log' for more details." >&5
1940 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1941 See \`config.log' for more details." >&2;}
1942    { (exit 1); exit 1; }; }
1943 fi
1944
1945 rm -f conftest$ac_cv_exeext
1946 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1947 echo "${ECHO_T}$ac_cv_exeext" >&6
1948
1949 rm -f conftest.$ac_ext
1950 EXEEXT=$ac_cv_exeext
1951 ac_exeext=$EXEEXT
1952 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1953 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1954 if test "${ac_cv_objext+set}" = set; then
1955   echo $ECHO_N "(cached) $ECHO_C" >&6
1956 else
1957   cat >conftest.$ac_ext <<_ACEOF
1958 #line $LINENO "configure"
1959 /* confdefs.h.  */
1960 _ACEOF
1961 cat confdefs.h >>conftest.$ac_ext
1962 cat >>conftest.$ac_ext <<_ACEOF
1963 /* end confdefs.h.  */
1964
1965 int
1966 main ()
1967 {
1968
1969   ;
1970   return 0;
1971 }
1972 _ACEOF
1973 rm -f conftest.o conftest.obj
1974 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1975   (eval $ac_compile) 2>&5
1976   ac_status=$?
1977   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1978   (exit $ac_status); }; then
1979   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1980   case $ac_file in
1981     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1982     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1983        break;;
1984   esac
1985 done
1986 else
1987   echo "$as_me: failed program was:" >&5
1988 sed 's/^/| /' conftest.$ac_ext >&5
1989
1990 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1991 See \`config.log' for more details." >&5
1992 echo "$as_me: error: cannot compute suffix of object files: cannot compile
1993 See \`config.log' for more details." >&2;}
1994    { (exit 1); exit 1; }; }
1995 fi
1996
1997 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1998 fi
1999 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2000 echo "${ECHO_T}$ac_cv_objext" >&6
2001 OBJEXT=$ac_cv_objext
2002 ac_objext=$OBJEXT
2003 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2004 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2005 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2006   echo $ECHO_N "(cached) $ECHO_C" >&6
2007 else
2008   cat >conftest.$ac_ext <<_ACEOF
2009 #line $LINENO "configure"
2010 /* confdefs.h.  */
2011 _ACEOF
2012 cat confdefs.h >>conftest.$ac_ext
2013 cat >>conftest.$ac_ext <<_ACEOF
2014 /* end confdefs.h.  */
2015
2016 int
2017 main ()
2018 {
2019 #ifndef __GNUC__
2020        choke me
2021 #endif
2022
2023   ;
2024   return 0;
2025 }
2026 _ACEOF
2027 rm -f conftest.$ac_objext
2028 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2029   (eval $ac_compile) 2>&5
2030   ac_status=$?
2031   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2032   (exit $ac_status); } &&
2033          { ac_try='test -s conftest.$ac_objext'
2034   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2035   (eval $ac_try) 2>&5
2036   ac_status=$?
2037   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2038   (exit $ac_status); }; }; then
2039   ac_compiler_gnu=yes
2040 else
2041   echo "$as_me: failed program was:" >&5
2042 sed 's/^/| /' conftest.$ac_ext >&5
2043
2044 ac_compiler_gnu=no
2045 fi
2046 rm -f conftest.$ac_objext conftest.$ac_ext
2047 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2048
2049 fi
2050 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2051 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2052 GCC=`test $ac_compiler_gnu = yes && echo yes`
2053 ac_test_CFLAGS=${CFLAGS+set}
2054 ac_save_CFLAGS=$CFLAGS
2055 CFLAGS="-g"
2056 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2057 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2058 if test "${ac_cv_prog_cc_g+set}" = set; then
2059   echo $ECHO_N "(cached) $ECHO_C" >&6
2060 else
2061   cat >conftest.$ac_ext <<_ACEOF
2062 #line $LINENO "configure"
2063 /* confdefs.h.  */
2064 _ACEOF
2065 cat confdefs.h >>conftest.$ac_ext
2066 cat >>conftest.$ac_ext <<_ACEOF
2067 /* end confdefs.h.  */
2068
2069 int
2070 main ()
2071 {
2072
2073   ;
2074   return 0;
2075 }
2076 _ACEOF
2077 rm -f conftest.$ac_objext
2078 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2079   (eval $ac_compile) 2>&5
2080   ac_status=$?
2081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2082   (exit $ac_status); } &&
2083          { ac_try='test -s conftest.$ac_objext'
2084   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2085   (eval $ac_try) 2>&5
2086   ac_status=$?
2087   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2088   (exit $ac_status); }; }; then
2089   ac_cv_prog_cc_g=yes
2090 else
2091   echo "$as_me: failed program was:" >&5
2092 sed 's/^/| /' conftest.$ac_ext >&5
2093
2094 ac_cv_prog_cc_g=no
2095 fi
2096 rm -f conftest.$ac_objext conftest.$ac_ext
2097 fi
2098 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2099 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2100 if test "$ac_test_CFLAGS" = set; then
2101   CFLAGS=$ac_save_CFLAGS
2102 elif test $ac_cv_prog_cc_g = yes; then
2103   if test "$GCC" = yes; then
2104     CFLAGS="-g -O2"
2105   else
2106     CFLAGS="-g"
2107   fi
2108 else
2109   if test "$GCC" = yes; then
2110     CFLAGS="-O2"
2111   else
2112     CFLAGS=
2113   fi
2114 fi
2115 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2116 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2117 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2118   echo $ECHO_N "(cached) $ECHO_C" >&6
2119 else
2120   ac_cv_prog_cc_stdc=no
2121 ac_save_CC=$CC
2122 cat >conftest.$ac_ext <<_ACEOF
2123 #line $LINENO "configure"
2124 /* confdefs.h.  */
2125 _ACEOF
2126 cat confdefs.h >>conftest.$ac_ext
2127 cat >>conftest.$ac_ext <<_ACEOF
2128 /* end confdefs.h.  */
2129 #include <stdarg.h>
2130 #include <stdio.h>
2131 #include <sys/types.h>
2132 #include <sys/stat.h>
2133 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2134 struct buf { int x; };
2135 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2136 static char *e (p, i)
2137      char **p;
2138      int i;
2139 {
2140   return p[i];
2141 }
2142 static char *f (char * (*g) (char **, int), char **p, ...)
2143 {
2144   char *s;
2145   va_list v;
2146   va_start (v,p);
2147   s = g (p, va_arg (v,int));
2148   va_end (v);
2149   return s;
2150 }
2151 int test (int i, double x);
2152 struct s1 {int (*f) (int a);};
2153 struct s2 {int (*f) (double a);};
2154 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2155 int argc;
2156 char **argv;
2157 int
2158 main ()
2159 {
2160 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2161   ;
2162   return 0;
2163 }
2164 _ACEOF
2165 # Don't try gcc -ansi; that turns off useful extensions and
2166 # breaks some systems' header files.
2167 # AIX                   -qlanglvl=ansi
2168 # Ultrix and OSF/1      -std1
2169 # HP-UX 10.20 and later -Ae
2170 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2171 # SVR4                  -Xc -D__EXTENSIONS__
2172 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2173 do
2174   CC="$ac_save_CC $ac_arg"
2175   rm -f conftest.$ac_objext
2176 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2177   (eval $ac_compile) 2>&5
2178   ac_status=$?
2179   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2180   (exit $ac_status); } &&
2181          { ac_try='test -s conftest.$ac_objext'
2182   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2183   (eval $ac_try) 2>&5
2184   ac_status=$?
2185   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2186   (exit $ac_status); }; }; then
2187   ac_cv_prog_cc_stdc=$ac_arg
2188 break
2189 else
2190   echo "$as_me: failed program was:" >&5
2191 sed 's/^/| /' conftest.$ac_ext >&5
2192
2193 fi
2194 rm -f conftest.$ac_objext
2195 done
2196 rm -f conftest.$ac_ext conftest.$ac_objext
2197 CC=$ac_save_CC
2198
2199 fi
2200
2201 case "x$ac_cv_prog_cc_stdc" in
2202   x|xno)
2203     echo "$as_me:$LINENO: result: none needed" >&5
2204 echo "${ECHO_T}none needed" >&6 ;;
2205   *)
2206     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2207 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2208     CC="$CC $ac_cv_prog_cc_stdc" ;;
2209 esac
2210
2211 # Some people use a C++ compiler to compile C.  Since we use `exit',
2212 # in C++ we need to declare it.  In case someone uses the same compiler
2213 # for both compiling C and C++ we need to have the C++ compiler decide
2214 # the declaration of exit, since it's the most demanding environment.
2215 cat >conftest.$ac_ext <<_ACEOF
2216 #ifndef __cplusplus
2217   choke me
2218 #endif
2219 _ACEOF
2220 rm -f conftest.$ac_objext
2221 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2222   (eval $ac_compile) 2>&5
2223   ac_status=$?
2224   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2225   (exit $ac_status); } &&
2226          { ac_try='test -s conftest.$ac_objext'
2227   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2228   (eval $ac_try) 2>&5
2229   ac_status=$?
2230   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2231   (exit $ac_status); }; }; then
2232   for ac_declaration in \
2233    ''\
2234    '#include <stdlib.h>' \
2235    'extern "C" void std::exit (int) throw (); using std::exit;' \
2236    'extern "C" void std::exit (int); using std::exit;' \
2237    'extern "C" void exit (int) throw ();' \
2238    'extern "C" void exit (int);' \
2239    'void exit (int);'
2240 do
2241   cat >conftest.$ac_ext <<_ACEOF
2242 #line $LINENO "configure"
2243 /* confdefs.h.  */
2244 _ACEOF
2245 cat confdefs.h >>conftest.$ac_ext
2246 cat >>conftest.$ac_ext <<_ACEOF
2247 /* end confdefs.h.  */
2248 #include <stdlib.h>
2249 $ac_declaration
2250 int
2251 main ()
2252 {
2253 exit (42);
2254   ;
2255   return 0;
2256 }
2257 _ACEOF
2258 rm -f conftest.$ac_objext
2259 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2260   (eval $ac_compile) 2>&5
2261   ac_status=$?
2262   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2263   (exit $ac_status); } &&
2264          { ac_try='test -s conftest.$ac_objext'
2265   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2266   (eval $ac_try) 2>&5
2267   ac_status=$?
2268   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2269   (exit $ac_status); }; }; then
2270   :
2271 else
2272   echo "$as_me: failed program was:" >&5
2273 sed 's/^/| /' conftest.$ac_ext >&5
2274
2275 continue
2276 fi
2277 rm -f conftest.$ac_objext conftest.$ac_ext
2278   cat >conftest.$ac_ext <<_ACEOF
2279 #line $LINENO "configure"
2280 /* confdefs.h.  */
2281 _ACEOF
2282 cat confdefs.h >>conftest.$ac_ext
2283 cat >>conftest.$ac_ext <<_ACEOF
2284 /* end confdefs.h.  */
2285 $ac_declaration
2286 int
2287 main ()
2288 {
2289 exit (42);
2290   ;
2291   return 0;
2292 }
2293 _ACEOF
2294 rm -f conftest.$ac_objext
2295 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2296   (eval $ac_compile) 2>&5
2297   ac_status=$?
2298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2299   (exit $ac_status); } &&
2300          { ac_try='test -s conftest.$ac_objext'
2301   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2302   (eval $ac_try) 2>&5
2303   ac_status=$?
2304   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2305   (exit $ac_status); }; }; then
2306   break
2307 else
2308   echo "$as_me: failed program was:" >&5
2309 sed 's/^/| /' conftest.$ac_ext >&5
2310
2311 fi
2312 rm -f conftest.$ac_objext conftest.$ac_ext
2313 done
2314 rm -f conftest*
2315 if test -n "$ac_declaration"; then
2316   echo '#ifdef __cplusplus' >>confdefs.h
2317   echo $ac_declaration      >>confdefs.h
2318   echo '#endif'             >>confdefs.h
2319 fi
2320
2321 else
2322   echo "$as_me: failed program was:" >&5
2323 sed 's/^/| /' conftest.$ac_ext >&5
2324
2325 fi
2326 rm -f conftest.$ac_objext conftest.$ac_ext
2327 ac_ext=c
2328 ac_cpp='$CPP $CPPFLAGS'
2329 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2330 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2331 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2332
2333 ac_ext=c
2334 ac_cpp='$CPP $CPPFLAGS'
2335 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2336 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2337 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2338 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2339 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2340 # On Suns, sometimes $CPP names a directory.
2341 if test -n "$CPP" && test -d "$CPP"; then
2342   CPP=
2343 fi
2344 if test -z "$CPP"; then
2345   if test "${ac_cv_prog_CPP+set}" = set; then
2346   echo $ECHO_N "(cached) $ECHO_C" >&6
2347 else
2348       # Double quotes because CPP needs to be expanded
2349     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2350     do
2351       ac_preproc_ok=false
2352 for ac_c_preproc_warn_flag in '' yes
2353 do
2354   # Use a header file that comes with gcc, so configuring glibc
2355   # with a fresh cross-compiler works.
2356   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2357   # <limits.h> exists even on freestanding compilers.
2358   # On the NeXT, cc -E runs the code through the compiler's parser,
2359   # not just through cpp. "Syntax error" is here to catch this case.
2360   cat >conftest.$ac_ext <<_ACEOF
2361 #line $LINENO "configure"
2362 /* confdefs.h.  */
2363 _ACEOF
2364 cat confdefs.h >>conftest.$ac_ext
2365 cat >>conftest.$ac_ext <<_ACEOF
2366 /* end confdefs.h.  */
2367 #ifdef __STDC__
2368 # include <limits.h>
2369 #else
2370 # include <assert.h>
2371 #endif
2372                      Syntax error
2373 _ACEOF
2374 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2375   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2376   ac_status=$?
2377   grep -v '^ *+' conftest.er1 >conftest.err
2378   rm -f conftest.er1
2379   cat conftest.err >&5
2380   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2381   (exit $ac_status); } >/dev/null; then
2382   if test -s conftest.err; then
2383     ac_cpp_err=$ac_c_preproc_warn_flag
2384   else
2385     ac_cpp_err=
2386   fi
2387 else
2388   ac_cpp_err=yes
2389 fi
2390 if test -z "$ac_cpp_err"; then
2391   :
2392 else
2393   echo "$as_me: failed program was:" >&5
2394 sed 's/^/| /' conftest.$ac_ext >&5
2395
2396   # Broken: fails on valid input.
2397 continue
2398 fi
2399 rm -f conftest.err conftest.$ac_ext
2400
2401   # OK, works on sane cases.  Now check whether non-existent headers
2402   # can be detected and how.
2403   cat >conftest.$ac_ext <<_ACEOF
2404 #line $LINENO "configure"
2405 /* confdefs.h.  */
2406 _ACEOF
2407 cat confdefs.h >>conftest.$ac_ext
2408 cat >>conftest.$ac_ext <<_ACEOF
2409 /* end confdefs.h.  */
2410 #include <ac_nonexistent.h>
2411 _ACEOF
2412 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2413   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2414   ac_status=$?
2415   grep -v '^ *+' conftest.er1 >conftest.err
2416   rm -f conftest.er1
2417   cat conftest.err >&5
2418   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2419   (exit $ac_status); } >/dev/null; then
2420   if test -s conftest.err; then
2421     ac_cpp_err=$ac_c_preproc_warn_flag
2422   else
2423     ac_cpp_err=
2424   fi
2425 else
2426   ac_cpp_err=yes
2427 fi
2428 if test -z "$ac_cpp_err"; then
2429   # Broken: success on invalid input.
2430 continue
2431 else
2432   echo "$as_me: failed program was:" >&5
2433 sed 's/^/| /' conftest.$ac_ext >&5
2434
2435   # Passes both tests.
2436 ac_preproc_ok=:
2437 break
2438 fi
2439 rm -f conftest.err conftest.$ac_ext
2440
2441 done
2442 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2443 rm -f conftest.err conftest.$ac_ext
2444 if $ac_preproc_ok; then
2445   break
2446 fi
2447
2448     done
2449     ac_cv_prog_CPP=$CPP
2450
2451 fi
2452   CPP=$ac_cv_prog_CPP
2453 else
2454   ac_cv_prog_CPP=$CPP
2455 fi
2456 echo "$as_me:$LINENO: result: $CPP" >&5
2457 echo "${ECHO_T}$CPP" >&6
2458 ac_preproc_ok=false
2459 for ac_c_preproc_warn_flag in '' yes
2460 do
2461   # Use a header file that comes with gcc, so configuring glibc
2462   # with a fresh cross-compiler works.
2463   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2464   # <limits.h> exists even on freestanding compilers.
2465   # On the NeXT, cc -E runs the code through the compiler's parser,
2466   # not just through cpp. "Syntax error" is here to catch this case.
2467   cat >conftest.$ac_ext <<_ACEOF
2468 #line $LINENO "configure"
2469 /* confdefs.h.  */
2470 _ACEOF
2471 cat confdefs.h >>conftest.$ac_ext
2472 cat >>conftest.$ac_ext <<_ACEOF
2473 /* end confdefs.h.  */
2474 #ifdef __STDC__
2475 # include <limits.h>
2476 #else
2477 # include <assert.h>
2478 #endif
2479                      Syntax error
2480 _ACEOF
2481 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2482   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2483   ac_status=$?
2484   grep -v '^ *+' conftest.er1 >conftest.err
2485   rm -f conftest.er1
2486   cat conftest.err >&5
2487   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2488   (exit $ac_status); } >/dev/null; then
2489   if test -s conftest.err; then
2490     ac_cpp_err=$ac_c_preproc_warn_flag
2491   else
2492     ac_cpp_err=
2493   fi
2494 else
2495   ac_cpp_err=yes
2496 fi
2497 if test -z "$ac_cpp_err"; then
2498   :
2499 else
2500   echo "$as_me: failed program was:" >&5
2501 sed 's/^/| /' conftest.$ac_ext >&5
2502
2503   # Broken: fails on valid input.
2504 continue
2505 fi
2506 rm -f conftest.err conftest.$ac_ext
2507
2508   # OK, works on sane cases.  Now check whether non-existent headers
2509   # can be detected and how.
2510   cat >conftest.$ac_ext <<_ACEOF
2511 #line $LINENO "configure"
2512 /* confdefs.h.  */
2513 _ACEOF
2514 cat confdefs.h >>conftest.$ac_ext
2515 cat >>conftest.$ac_ext <<_ACEOF
2516 /* end confdefs.h.  */
2517 #include <ac_nonexistent.h>
2518 _ACEOF
2519 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2520   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2521   ac_status=$?
2522   grep -v '^ *+' conftest.er1 >conftest.err
2523   rm -f conftest.er1
2524   cat conftest.err >&5
2525   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2526   (exit $ac_status); } >/dev/null; then
2527   if test -s conftest.err; then
2528     ac_cpp_err=$ac_c_preproc_warn_flag
2529   else
2530     ac_cpp_err=
2531   fi
2532 else
2533   ac_cpp_err=yes
2534 fi
2535 if test -z "$ac_cpp_err"; then
2536   # Broken: success on invalid input.
2537 continue
2538 else
2539   echo "$as_me: failed program was:" >&5
2540 sed 's/^/| /' conftest.$ac_ext >&5
2541
2542   # Passes both tests.
2543 ac_preproc_ok=:
2544 break
2545 fi
2546 rm -f conftest.err conftest.$ac_ext
2547
2548 done
2549 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2550 rm -f conftest.err conftest.$ac_ext
2551 if $ac_preproc_ok; then
2552   :
2553 else
2554   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2555 See \`config.log' for more details." >&5
2556 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2557 See \`config.log' for more details." >&2;}
2558    { (exit 1); exit 1; }; }
2559 fi
2560
2561 ac_ext=c
2562 ac_cpp='$CPP $CPPFLAGS'
2563 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2564 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2565 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2566
2567
2568 echo "$as_me:$LINENO: checking for the directory containing the Wine tools" >&5
2569 echo $ECHO_N "checking for the directory containing the Wine tools... $ECHO_C" >&6
2570 if test "${wine_cv_toolsdir+set}" = set; then
2571   echo $ECHO_N "(cached) $ECHO_C" >&6
2572 else
2573   if test -z "$with_wine_tools"; then
2574      if test "$cross_compiling" = "yes"; then
2575        { { echo "$as_me:$LINENO: error: you must use the --with-wine-tools option when cross-compiling." >&5
2576 echo "$as_me: error: you must use the --with-wine-tools option when cross-compiling." >&2;}
2577    { (exit 1); exit 1; }; }
2578      else
2579        wine_cv_toolsdir="\$(TOPOBJDIR)"
2580      fi
2581    elif test -d "$with_wine_tools/tools/winebuild"; then
2582      case $with_wine_tools in
2583        /*) wine_cv_toolsdir="$with_wine_tools" ;;
2584        *)  wine_cv_toolsdir="\$(TOPOBJDIR)/$with_wine_tools" ;;
2585      esac
2586    else
2587      { { echo "$as_me:$LINENO: error: could not find Wine tools in $with_wine_tools." >&5
2588 echo "$as_me: error: could not find Wine tools in $with_wine_tools." >&2;}
2589    { (exit 1); exit 1; }; }
2590    fi
2591 fi
2592 echo "$as_me:$LINENO: result: $wine_cv_toolsdir" >&5
2593 echo "${ECHO_T}$wine_cv_toolsdir" >&6
2594 TOOLSDIR=$wine_cv_toolsdir
2595
2596
2597
2598
2599 echo "$as_me:$LINENO: checking for X" >&5
2600 echo $ECHO_N "checking for X... $ECHO_C" >&6
2601
2602
2603 # Check whether --with-x or --without-x was given.
2604 if test "${with_x+set}" = set; then
2605   withval="$with_x"
2606
2607 fi;
2608 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
2609 if test "x$with_x" = xno; then
2610   # The user explicitly disabled X.
2611   have_x=disabled
2612 else
2613   if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
2614     # Both variables are already set.
2615     have_x=yes
2616   else
2617     if test "${ac_cv_have_x+set}" = set; then
2618   echo $ECHO_N "(cached) $ECHO_C" >&6
2619 else
2620   # One or both of the vars are not set, and there is no cached value.
2621 ac_x_includes=no ac_x_libraries=no
2622 rm -fr conftest.dir
2623 if mkdir conftest.dir; then
2624   cd conftest.dir
2625   # Make sure to not put "make" in the Imakefile rules, since we grep it out.
2626   cat >Imakefile <<'_ACEOF'
2627 acfindx:
2628         @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
2629 _ACEOF
2630   if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
2631     # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2632     eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
2633     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
2634     for ac_extension in a so sl; do
2635       if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
2636          test -f $ac_im_libdir/libX11.$ac_extension; then
2637         ac_im_usrlibdir=$ac_im_libdir; break
2638       fi
2639     done
2640     # Screen out bogus values from the imake configuration.  They are
2641     # bogus both because they are the default anyway, and because
2642     # using them would break gcc on systems where it needs fixed includes.
2643     case $ac_im_incroot in
2644         /usr/include) ;;
2645         *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
2646     esac
2647     case $ac_im_usrlibdir in
2648         /usr/lib | /lib) ;;
2649         *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
2650     esac
2651   fi
2652   cd ..
2653   rm -fr conftest.dir
2654 fi
2655
2656 # Standard set of common directories for X headers.
2657 # Check X11 before X11Rn because it is often a symlink to the current release.
2658 ac_x_header_dirs='
2659 /usr/X11/include
2660 /usr/X11R6/include
2661 /usr/X11R5/include
2662 /usr/X11R4/include
2663
2664 /usr/include/X11
2665 /usr/include/X11R6
2666 /usr/include/X11R5
2667 /usr/include/X11R4
2668
2669 /usr/local/X11/include
2670 /usr/local/X11R6/include
2671 /usr/local/X11R5/include
2672 /usr/local/X11R4/include
2673
2674 /usr/local/include/X11
2675 /usr/local/include/X11R6
2676 /usr/local/include/X11R5
2677 /usr/local/include/X11R4
2678
2679 /usr/X386/include
2680 /usr/x386/include
2681 /usr/XFree86/include/X11
2682
2683 /usr/include
2684 /usr/local/include
2685 /usr/unsupported/include
2686 /usr/athena/include
2687 /usr/local/x11r5/include
2688 /usr/lpp/Xamples/include
2689
2690 /usr/openwin/include
2691 /usr/openwin/share/include'
2692
2693 if test "$ac_x_includes" = no; then
2694   # Guess where to find include files, by looking for Intrinsic.h.
2695   # First, try using that file with no special directory specified.
2696   cat >conftest.$ac_ext <<_ACEOF
2697 #line $LINENO "configure"
2698 /* confdefs.h.  */
2699 _ACEOF
2700 cat confdefs.h >>conftest.$ac_ext
2701 cat >>conftest.$ac_ext <<_ACEOF
2702 /* end confdefs.h.  */
2703 #include <X11/Intrinsic.h>
2704 _ACEOF
2705 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2706   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2707   ac_status=$?
2708   grep -v '^ *+' conftest.er1 >conftest.err
2709   rm -f conftest.er1
2710   cat conftest.err >&5
2711   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2712   (exit $ac_status); } >/dev/null; then
2713   if test -s conftest.err; then
2714     ac_cpp_err=$ac_c_preproc_warn_flag
2715   else
2716     ac_cpp_err=
2717   fi
2718 else
2719   ac_cpp_err=yes
2720 fi
2721 if test -z "$ac_cpp_err"; then
2722   # We can compile using X headers with no special include directory.
2723 ac_x_includes=
2724 else
2725   echo "$as_me: failed program was:" >&5
2726 sed 's/^/| /' conftest.$ac_ext >&5
2727
2728   for ac_dir in $ac_x_header_dirs; do
2729   if test -r "$ac_dir/X11/Intrinsic.h"; then
2730     ac_x_includes=$ac_dir
2731     break
2732   fi
2733 done
2734 fi
2735 rm -f conftest.err conftest.$ac_ext
2736 fi # $ac_x_includes = no
2737
2738 if test "$ac_x_libraries" = no; then
2739   # Check for the libraries.
2740   # See if we find them without any special options.
2741   # Don't add to $LIBS permanently.
2742   ac_save_LIBS=$LIBS
2743   LIBS="-lXt $LIBS"
2744   cat >conftest.$ac_ext <<_ACEOF
2745 #line $LINENO "configure"
2746 /* confdefs.h.  */
2747 _ACEOF
2748 cat confdefs.h >>conftest.$ac_ext
2749 cat >>conftest.$ac_ext <<_ACEOF
2750 /* end confdefs.h.  */
2751 #include <X11/Intrinsic.h>
2752 int
2753 main ()
2754 {
2755 XtMalloc (0)
2756   ;
2757   return 0;
2758 }
2759 _ACEOF
2760 rm -f conftest.$ac_objext conftest$ac_exeext
2761 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2762   (eval $ac_link) 2>&5
2763   ac_status=$?
2764   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2765   (exit $ac_status); } &&
2766          { ac_try='test -s conftest$ac_exeext'
2767   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2768   (eval $ac_try) 2>&5
2769   ac_status=$?
2770   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2771   (exit $ac_status); }; }; then
2772   LIBS=$ac_save_LIBS
2773 # We can link X programs with no special library path.
2774 ac_x_libraries=
2775 else
2776   echo "$as_me: failed program was:" >&5
2777 sed 's/^/| /' conftest.$ac_ext >&5
2778
2779 LIBS=$ac_save_LIBS
2780 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
2781 do
2782   # Don't even attempt the hair of trying to link an X program!
2783   for ac_extension in a so sl; do
2784     if test -r $ac_dir/libXt.$ac_extension; then
2785       ac_x_libraries=$ac_dir
2786       break 2
2787     fi
2788   done
2789 done
2790 fi
2791 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2792 fi # $ac_x_libraries = no
2793
2794 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
2795   # Didn't find X anywhere.  Cache the known absence of X.
2796   ac_cv_have_x="have_x=no"
2797 else
2798   # Record where we found X for the cache.
2799   ac_cv_have_x="have_x=yes \
2800                 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
2801 fi
2802 fi
2803
2804   fi
2805   eval "$ac_cv_have_x"
2806 fi # $with_x != no
2807
2808 if test "$have_x" != yes; then
2809   echo "$as_me:$LINENO: result: $have_x" >&5
2810 echo "${ECHO_T}$have_x" >&6
2811   no_x=yes
2812 else
2813   # If each of the values was on the command line, it overrides each guess.
2814   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
2815   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
2816   # Update the cache value to reflect the command line values.
2817   ac_cv_have_x="have_x=yes \
2818                 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
2819   echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
2820 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
2821 fi
2822
2823 if test "$no_x" = yes; then
2824   # Not all programs may use this symbol, but it does not hurt to define it.
2825
2826 cat >>confdefs.h <<\_ACEOF
2827 #define X_DISPLAY_MISSING 1
2828 _ACEOF
2829
2830   X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
2831 else
2832   if test -n "$x_includes"; then
2833     X_CFLAGS="$X_CFLAGS -I$x_includes"
2834   fi
2835
2836   # It would also be nice to do this for all -L options, not just this one.
2837   if test -n "$x_libraries"; then
2838     X_LIBS="$X_LIBS -L$x_libraries"
2839     # For Solaris; some versions of Sun CC require a space after -R and
2840     # others require no space.  Words are not sufficient . . . .
2841     case `(uname -sr) 2>/dev/null` in
2842     "SunOS 5"*)
2843       echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
2844 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
2845       ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
2846       cat >conftest.$ac_ext <<_ACEOF
2847 #line $LINENO "configure"
2848 /* confdefs.h.  */
2849 _ACEOF
2850 cat confdefs.h >>conftest.$ac_ext
2851 cat >>conftest.$ac_ext <<_ACEOF
2852 /* end confdefs.h.  */
2853
2854 int
2855 main ()
2856 {
2857
2858   ;
2859   return 0;
2860 }
2861 _ACEOF
2862 rm -f conftest.$ac_objext conftest$ac_exeext
2863 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2864   (eval $ac_link) 2>&5
2865   ac_status=$?
2866   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2867   (exit $ac_status); } &&
2868          { ac_try='test -s conftest$ac_exeext'
2869   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2870   (eval $ac_try) 2>&5
2871   ac_status=$?
2872   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2873   (exit $ac_status); }; }; then
2874   ac_R_nospace=yes
2875 else
2876   echo "$as_me: failed program was:" >&5
2877 sed 's/^/| /' conftest.$ac_ext >&5
2878
2879 ac_R_nospace=no
2880 fi
2881 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2882       if test $ac_R_nospace = yes; then
2883         echo "$as_me:$LINENO: result: no" >&5
2884 echo "${ECHO_T}no" >&6
2885         X_LIBS="$X_LIBS -R$x_libraries"
2886       else
2887         LIBS="$ac_xsave_LIBS -R $x_libraries"
2888         cat >conftest.$ac_ext <<_ACEOF
2889 #line $LINENO "configure"
2890 /* confdefs.h.  */
2891 _ACEOF
2892 cat confdefs.h >>conftest.$ac_ext
2893 cat >>conftest.$ac_ext <<_ACEOF
2894 /* end confdefs.h.  */
2895
2896 int
2897 main ()
2898 {
2899
2900   ;
2901   return 0;
2902 }
2903 _ACEOF
2904 rm -f conftest.$ac_objext conftest$ac_exeext
2905 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2906   (eval $ac_link) 2>&5
2907   ac_status=$?
2908   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2909   (exit $ac_status); } &&
2910          { ac_try='test -s conftest$ac_exeext'
2911   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2912   (eval $ac_try) 2>&5
2913   ac_status=$?
2914   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2915   (exit $ac_status); }; }; then
2916   ac_R_space=yes
2917 else
2918   echo "$as_me: failed program was:" >&5
2919 sed 's/^/| /' conftest.$ac_ext >&5
2920
2921 ac_R_space=no
2922 fi
2923 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2924         if test $ac_R_space = yes; then
2925           echo "$as_me:$LINENO: result: yes" >&5
2926 echo "${ECHO_T}yes" >&6
2927           X_LIBS="$X_LIBS -R $x_libraries"
2928         else
2929           echo "$as_me:$LINENO: result: neither works" >&5
2930 echo "${ECHO_T}neither works" >&6
2931         fi
2932       fi
2933       LIBS=$ac_xsave_LIBS
2934     esac
2935   fi
2936
2937   # Check for system-dependent libraries X programs must link with.
2938   # Do this before checking for the system-independent R6 libraries
2939   # (-lICE), since we may need -lsocket or whatever for X linking.
2940
2941   if test "$ISC" = yes; then
2942     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
2943   else
2944     # Martyn Johnson says this is needed for Ultrix, if the X
2945     # libraries were built with DECnet support.  And Karl Berry says
2946     # the Alpha needs dnet_stub (dnet does not exist).
2947     ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
2948     cat >conftest.$ac_ext <<_ACEOF
2949 #line $LINENO "configure"
2950 /* confdefs.h.  */
2951 _ACEOF
2952 cat confdefs.h >>conftest.$ac_ext
2953 cat >>conftest.$ac_ext <<_ACEOF
2954 /* end confdefs.h.  */
2955
2956 /* Override any gcc2 internal prototype to avoid an error.  */
2957 #ifdef __cplusplus
2958 extern "C"
2959 #endif
2960 /* We use char because int might match the return type of a gcc2
2961    builtin and then its argument prototype would still apply.  */
2962 char XOpenDisplay ();
2963 int
2964 main ()
2965 {
2966 XOpenDisplay ();
2967   ;
2968   return 0;
2969 }
2970 _ACEOF
2971 rm -f conftest.$ac_objext conftest$ac_exeext
2972 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2973   (eval $ac_link) 2>&5
2974   ac_status=$?
2975   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2976   (exit $ac_status); } &&
2977          { ac_try='test -s conftest$ac_exeext'
2978   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2979   (eval $ac_try) 2>&5
2980   ac_status=$?
2981   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2982   (exit $ac_status); }; }; then
2983   :
2984 else
2985   echo "$as_me: failed program was:" >&5
2986 sed 's/^/| /' conftest.$ac_ext >&5
2987
2988 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
2989 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
2990 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
2991   echo $ECHO_N "(cached) $ECHO_C" >&6
2992 else
2993   ac_check_lib_save_LIBS=$LIBS
2994 LIBS="-ldnet  $LIBS"
2995 cat >conftest.$ac_ext <<_ACEOF
2996 #line $LINENO "configure"
2997 /* confdefs.h.  */
2998 _ACEOF
2999 cat confdefs.h >>conftest.$ac_ext
3000 cat >>conftest.$ac_ext <<_ACEOF
3001 /* end confdefs.h.  */
3002
3003 /* Override any gcc2 internal prototype to avoid an error.  */
3004 #ifdef __cplusplus
3005 extern "C"
3006 #endif
3007 /* We use char because int might match the return type of a gcc2
3008    builtin and then its argument prototype would still apply.  */
3009 char dnet_ntoa ();
3010 int
3011 main ()
3012 {
3013 dnet_ntoa ();
3014   ;
3015   return 0;
3016 }
3017 _ACEOF
3018 rm -f conftest.$ac_objext conftest$ac_exeext
3019 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3020   (eval $ac_link) 2>&5
3021   ac_status=$?
3022   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3023   (exit $ac_status); } &&
3024          { ac_try='test -s conftest$ac_exeext'
3025   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3026   (eval $ac_try) 2>&5
3027   ac_status=$?
3028   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3029   (exit $ac_status); }; }; then
3030   ac_cv_lib_dnet_dnet_ntoa=yes
3031 else
3032   echo "$as_me: failed program was:" >&5
3033 sed 's/^/| /' conftest.$ac_ext >&5
3034
3035 ac_cv_lib_dnet_dnet_ntoa=no
3036 fi
3037 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3038 LIBS=$ac_check_lib_save_LIBS
3039 fi
3040 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
3041 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
3042 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
3043   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
3044 fi
3045
3046     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
3047       echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
3048 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
3049 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
3050   echo $ECHO_N "(cached) $ECHO_C" >&6
3051 else
3052   ac_check_lib_save_LIBS=$LIBS
3053 LIBS="-ldnet_stub  $LIBS"
3054 cat >conftest.$ac_ext <<_ACEOF
3055 #line $LINENO "configure"
3056 /* confdefs.h.  */
3057 _ACEOF
3058 cat confdefs.h >>conftest.$ac_ext
3059 cat >>conftest.$ac_ext <<_ACEOF
3060 /* end confdefs.h.  */
3061
3062 /* Override any gcc2 internal prototype to avoid an error.  */
3063 #ifdef __cplusplus
3064 extern "C"
3065 #endif
3066 /* We use char because int might match the return type of a gcc2
3067    builtin and then its argument prototype would still apply.  */
3068 char dnet_ntoa ();
3069 int
3070 main ()
3071 {
3072 dnet_ntoa ();
3073   ;
3074   return 0;
3075 }
3076 _ACEOF
3077 rm -f conftest.$ac_objext conftest$ac_exeext
3078 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3079   (eval $ac_link) 2>&5
3080   ac_status=$?
3081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3082   (exit $ac_status); } &&
3083          { ac_try='test -s conftest$ac_exeext'
3084   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3085   (eval $ac_try) 2>&5
3086   ac_status=$?
3087   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3088   (exit $ac_status); }; }; then
3089   ac_cv_lib_dnet_stub_dnet_ntoa=yes
3090 else
3091   echo "$as_me: failed program was:" >&5
3092 sed 's/^/| /' conftest.$ac_ext >&5
3093
3094 ac_cv_lib_dnet_stub_dnet_ntoa=no
3095 fi
3096 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3097 LIBS=$ac_check_lib_save_LIBS
3098 fi
3099 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
3100 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
3101 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
3102   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
3103 fi
3104
3105     fi
3106 fi
3107 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3108     LIBS="$ac_xsave_LIBS"
3109
3110     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
3111     # to get the SysV transport functions.
3112     # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
3113     # needs -lnsl.
3114     # The nsl library prevents programs from opening the X display
3115     # on Irix 5.2, according to T.E. Dickey.
3116     # The functions gethostbyname, getservbyname, and inet_addr are
3117     # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
3118     echo "$as_me:$LINENO: checking for gethostbyname" >&5
3119 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
3120 if test "${ac_cv_func_gethostbyname+set}" = set; then
3121   echo $ECHO_N "(cached) $ECHO_C" >&6
3122 else
3123   cat >conftest.$ac_ext <<_ACEOF
3124 #line $LINENO "configure"
3125 /* confdefs.h.  */
3126 _ACEOF
3127 cat confdefs.h >>conftest.$ac_ext
3128 cat >>conftest.$ac_ext <<_ACEOF
3129 /* end confdefs.h.  */
3130 /* System header to define __stub macros and hopefully few prototypes,
3131     which can conflict with char gethostbyname (); below.
3132     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3133     <limits.h> exists even on freestanding compilers.  */
3134 #ifdef __STDC__
3135 # include <limits.h>
3136 #else
3137 # include <assert.h>
3138 #endif
3139 /* Override any gcc2 internal prototype to avoid an error.  */
3140 #ifdef __cplusplus
3141 extern "C"
3142 {
3143 #endif
3144 /* We use char because int might match the return type of a gcc2
3145    builtin and then its argument prototype would still apply.  */
3146 char gethostbyname ();
3147 /* The GNU C library defines this for functions which it implements
3148     to always fail with ENOSYS.  Some functions are actually named
3149     something starting with __ and the normal name is an alias.  */
3150 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
3151 choke me
3152 #else
3153 char (*f) () = gethostbyname;
3154 #endif
3155 #ifdef __cplusplus
3156 }
3157 #endif
3158
3159 int
3160 main ()
3161 {
3162 return f != gethostbyname;
3163   ;
3164   return 0;
3165 }
3166 _ACEOF
3167 rm -f conftest.$ac_objext conftest$ac_exeext
3168 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3169   (eval $ac_link) 2>&5
3170   ac_status=$?
3171   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3172   (exit $ac_status); } &&
3173          { ac_try='test -s conftest$ac_exeext'
3174   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3175   (eval $ac_try) 2>&5
3176   ac_status=$?
3177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3178   (exit $ac_status); }; }; then
3179   ac_cv_func_gethostbyname=yes
3180 else
3181   echo "$as_me: failed program was:" >&5
3182 sed 's/^/| /' conftest.$ac_ext >&5
3183
3184 ac_cv_func_gethostbyname=no
3185 fi
3186 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3187 fi
3188 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
3189 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
3190
3191     if test $ac_cv_func_gethostbyname = no; then
3192       echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
3193 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
3194 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
3195   echo $ECHO_N "(cached) $ECHO_C" >&6
3196 else
3197   ac_check_lib_save_LIBS=$LIBS
3198 LIBS="-lnsl  $LIBS"
3199 cat >conftest.$ac_ext <<_ACEOF
3200 #line $LINENO "configure"
3201 /* confdefs.h.  */
3202 _ACEOF
3203 cat confdefs.h >>conftest.$ac_ext
3204 cat >>conftest.$ac_ext <<_ACEOF
3205 /* end confdefs.h.  */
3206
3207 /* Override any gcc2 internal prototype to avoid an error.  */
3208 #ifdef __cplusplus
3209 extern "C"
3210 #endif
3211 /* We use char because int might match the return type of a gcc2
3212    builtin and then its argument prototype would still apply.  */
3213 char gethostbyname ();
3214 int
3215 main ()
3216 {
3217 gethostbyname ();
3218   ;
3219   return 0;
3220 }
3221 _ACEOF
3222 rm -f conftest.$ac_objext conftest$ac_exeext
3223 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3224   (eval $ac_link) 2>&5
3225   ac_status=$?
3226   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3227   (exit $ac_status); } &&
3228          { ac_try='test -s conftest$ac_exeext'
3229   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3230   (eval $ac_try) 2>&5
3231   ac_status=$?
3232   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3233   (exit $ac_status); }; }; then
3234   ac_cv_lib_nsl_gethostbyname=yes
3235 else
3236   echo "$as_me: failed program was:" >&5
3237 sed 's/^/| /' conftest.$ac_ext >&5
3238
3239 ac_cv_lib_nsl_gethostbyname=no
3240 fi
3241 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3242 LIBS=$ac_check_lib_save_LIBS
3243 fi
3244 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
3245 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
3246 if test $ac_cv_lib_nsl_gethostbyname = yes; then
3247   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
3248 fi
3249
3250       if test $ac_cv_lib_nsl_gethostbyname = no; then
3251         echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
3252 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
3253 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
3254   echo $ECHO_N "(cached) $ECHO_C" >&6
3255 else
3256   ac_check_lib_save_LIBS=$LIBS
3257 LIBS="-lbsd  $LIBS"
3258 cat >conftest.$ac_ext <<_ACEOF
3259 #line $LINENO "configure"
3260 /* confdefs.h.  */
3261 _ACEOF
3262 cat confdefs.h >>conftest.$ac_ext
3263 cat >>conftest.$ac_ext <<_ACEOF
3264 /* end confdefs.h.  */
3265
3266 /* Override any gcc2 internal prototype to avoid an error.  */
3267 #ifdef __cplusplus
3268 extern "C"
3269 #endif
3270 /* We use char because int might match the return type of a gcc2
3271    builtin and then its argument prototype would still apply.  */
3272 char gethostbyname ();
3273 int
3274 main ()
3275 {
3276 gethostbyname ();
3277   ;
3278   return 0;
3279 }
3280 _ACEOF
3281 rm -f conftest.$ac_objext conftest$ac_exeext
3282 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3283   (eval $ac_link) 2>&5
3284   ac_status=$?
3285   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3286   (exit $ac_status); } &&
3287          { ac_try='test -s conftest$ac_exeext'
3288   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3289   (eval $ac_try) 2>&5
3290   ac_status=$?
3291   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3292   (exit $ac_status); }; }; then
3293   ac_cv_lib_bsd_gethostbyname=yes
3294 else
3295   echo "$as_me: failed program was:" >&5
3296 sed 's/^/| /' conftest.$ac_ext >&5
3297
3298 ac_cv_lib_bsd_gethostbyname=no
3299 fi
3300 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3301 LIBS=$ac_check_lib_save_LIBS
3302 fi
3303 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
3304 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
3305 if test $ac_cv_lib_bsd_gethostbyname = yes; then
3306   X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
3307 fi
3308
3309       fi
3310     fi
3311
3312     # lieder@skyler.mavd.honeywell.com says without -lsocket,
3313     # socket/setsockopt and other routines are undefined under SCO ODT
3314     # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
3315     # on later versions), says Simon Leinen: it contains gethostby*
3316     # variants that don't use the name server (or something).  -lsocket
3317     # must be given before -lnsl if both are needed.  We assume that
3318     # if connect needs -lnsl, so does gethostbyname.
3319     echo "$as_me:$LINENO: checking for connect" >&5
3320 echo $ECHO_N "checking for connect... $ECHO_C" >&6
3321 if test "${ac_cv_func_connect+set}" = set; then
3322   echo $ECHO_N "(cached) $ECHO_C" >&6
3323 else
3324   cat >conftest.$ac_ext <<_ACEOF
3325 #line $LINENO "configure"
3326 /* confdefs.h.  */
3327 _ACEOF
3328 cat confdefs.h >>conftest.$ac_ext
3329 cat >>conftest.$ac_ext <<_ACEOF
3330 /* end confdefs.h.  */
3331 /* System header to define __stub macros and hopefully few prototypes,
3332     which can conflict with char connect (); below.
3333     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3334     <limits.h> exists even on freestanding compilers.  */
3335 #ifdef __STDC__
3336 # include <limits.h>
3337 #else
3338 # include <assert.h>
3339 #endif
3340 /* Override any gcc2 internal prototype to avoid an error.  */
3341 #ifdef __cplusplus
3342 extern "C"
3343 {
3344 #endif
3345 /* We use char because int might match the return type of a gcc2
3346    builtin and then its argument prototype would still apply.  */
3347 char connect ();
3348 /* The GNU C library defines this for functions which it implements
3349     to always fail with ENOSYS.  Some functions are actually named
3350     something starting with __ and the normal name is an alias.  */
3351 #if defined (__stub_connect) || defined (__stub___connect)
3352 choke me
3353 #else
3354 char (*f) () = connect;
3355 #endif
3356 #ifdef __cplusplus
3357 }
3358 #endif
3359
3360 int
3361 main ()
3362 {
3363 return f != connect;
3364   ;
3365   return 0;
3366 }
3367 _ACEOF
3368 rm -f conftest.$ac_objext conftest$ac_exeext
3369 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3370   (eval $ac_link) 2>&5
3371   ac_status=$?
3372   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3373   (exit $ac_status); } &&
3374          { ac_try='test -s conftest$ac_exeext'
3375   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3376   (eval $ac_try) 2>&5
3377   ac_status=$?
3378   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3379   (exit $ac_status); }; }; then
3380   ac_cv_func_connect=yes
3381 else
3382   echo "$as_me: failed program was:" >&5
3383 sed 's/^/| /' conftest.$ac_ext >&5
3384
3385 ac_cv_func_connect=no
3386 fi
3387 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3388 fi
3389 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
3390 echo "${ECHO_T}$ac_cv_func_connect" >&6
3391
3392     if test $ac_cv_func_connect = no; then
3393       echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
3394 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
3395 if test "${ac_cv_lib_socket_connect+set}" = set; then
3396   echo $ECHO_N "(cached) $ECHO_C" >&6
3397 else
3398   ac_check_lib_save_LIBS=$LIBS
3399 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
3400 cat >conftest.$ac_ext <<_ACEOF
3401 #line $LINENO "configure"
3402 /* confdefs.h.  */
3403 _ACEOF
3404 cat confdefs.h >>conftest.$ac_ext
3405 cat >>conftest.$ac_ext <<_ACEOF
3406 /* end confdefs.h.  */
3407
3408 /* Override any gcc2 internal prototype to avoid an error.  */
3409 #ifdef __cplusplus
3410 extern "C"
3411 #endif
3412 /* We use char because int might match the return type of a gcc2
3413    builtin and then its argument prototype would still apply.  */
3414 char connect ();
3415 int
3416 main ()
3417 {
3418 connect ();
3419   ;
3420   return 0;
3421 }
3422 _ACEOF
3423 rm -f conftest.$ac_objext conftest$ac_exeext
3424 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3425   (eval $ac_link) 2>&5
3426   ac_status=$?
3427   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3428   (exit $ac_status); } &&
3429          { ac_try='test -s conftest$ac_exeext'
3430   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3431   (eval $ac_try) 2>&5
3432   ac_status=$?
3433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3434   (exit $ac_status); }; }; then
3435   ac_cv_lib_socket_connect=yes
3436 else
3437   echo "$as_me: failed program was:" >&5
3438 sed 's/^/| /' conftest.$ac_ext >&5
3439
3440 ac_cv_lib_socket_connect=no
3441 fi
3442 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3443 LIBS=$ac_check_lib_save_LIBS
3444 fi
3445 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
3446 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
3447 if test $ac_cv_lib_socket_connect = yes; then
3448   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
3449 fi
3450
3451     fi
3452
3453     # Guillermo Gomez says -lposix is necessary on A/UX.
3454     echo "$as_me:$LINENO: checking for remove" >&5
3455 echo $ECHO_N "checking for remove... $ECHO_C" >&6
3456 if test "${ac_cv_func_remove+set}" = set; then
3457   echo $ECHO_N "(cached) $ECHO_C" >&6
3458 else
3459   cat >conftest.$ac_ext <<_ACEOF
3460 #line $LINENO "configure"
3461 /* confdefs.h.  */
3462 _ACEOF
3463 cat confdefs.h >>conftest.$ac_ext
3464 cat >>conftest.$ac_ext <<_ACEOF
3465 /* end confdefs.h.  */
3466 /* System header to define __stub macros and hopefully few prototypes,
3467     which can conflict with char remove (); below.
3468     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3469     <limits.h> exists even on freestanding compilers.  */
3470 #ifdef __STDC__
3471 # include <limits.h>
3472 #else
3473 # include <assert.h>
3474 #endif
3475 /* Override any gcc2 internal prototype to avoid an error.  */
3476 #ifdef __cplusplus
3477 extern "C"
3478 {
3479 #endif
3480 /* We use char because int might match the return type of a gcc2
3481    builtin and then its argument prototype would still apply.  */
3482 char remove ();
3483 /* The GNU C library defines this for functions which it implements
3484     to always fail with ENOSYS.  Some functions are actually named
3485     something starting with __ and the normal name is an alias.  */
3486 #if defined (__stub_remove) || defined (__stub___remove)
3487 choke me
3488 #else
3489 char (*f) () = remove;
3490 #endif
3491 #ifdef __cplusplus
3492 }
3493 #endif
3494
3495 int
3496 main ()
3497 {
3498 return f != remove;
3499   ;
3500   return 0;
3501 }
3502 _ACEOF
3503 rm -f conftest.$ac_objext conftest$ac_exeext
3504 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3505   (eval $ac_link) 2>&5
3506   ac_status=$?
3507   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3508   (exit $ac_status); } &&
3509          { ac_try='test -s conftest$ac_exeext'
3510   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3511   (eval $ac_try) 2>&5
3512   ac_status=$?
3513   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3514   (exit $ac_status); }; }; then
3515   ac_cv_func_remove=yes
3516 else
3517   echo "$as_me: failed program was:" >&5
3518 sed 's/^/| /' conftest.$ac_ext >&5
3519
3520 ac_cv_func_remove=no
3521 fi
3522 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3523 fi
3524 echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
3525 echo "${ECHO_T}$ac_cv_func_remove" >&6
3526
3527     if test $ac_cv_func_remove = no; then
3528       echo "$as_me:$LINENO: checking for remove in -lposix" >&5
3529 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
3530 if test "${ac_cv_lib_posix_remove+set}" = set; then
3531   echo $ECHO_N "(cached) $ECHO_C" >&6
3532 else
3533   ac_check_lib_save_LIBS=$LIBS
3534 LIBS="-lposix  $LIBS"
3535 cat >conftest.$ac_ext <<_ACEOF
3536 #line $LINENO "configure"
3537 /* confdefs.h.  */
3538 _ACEOF
3539 cat confdefs.h >>conftest.$ac_ext
3540 cat >>conftest.$ac_ext <<_ACEOF
3541 /* end confdefs.h.  */
3542
3543 /* Override any gcc2 internal prototype to avoid an error.  */
3544 #ifdef __cplusplus
3545 extern "C"
3546 #endif
3547 /* We use char because int might match the return type of a gcc2
3548    builtin and then its argument prototype would still apply.  */
3549 char remove ();
3550 int
3551 main ()
3552 {
3553 remove ();
3554   ;
3555   return 0;
3556 }
3557 _ACEOF
3558 rm -f conftest.$ac_objext conftest$ac_exeext
3559 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3560   (eval $ac_link) 2>&5
3561   ac_status=$?
3562   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3563   (exit $ac_status); } &&
3564          { ac_try='test -s conftest$ac_exeext'
3565   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3566   (eval $ac_try) 2>&5
3567   ac_status=$?
3568   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3569   (exit $ac_status); }; }; then
3570   ac_cv_lib_posix_remove=yes
3571 else
3572   echo "$as_me: failed program was:" >&5
3573 sed 's/^/| /' conftest.$ac_ext >&5
3574
3575 ac_cv_lib_posix_remove=no
3576 fi
3577 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3578 LIBS=$ac_check_lib_save_LIBS
3579 fi
3580 echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
3581 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
3582 if test $ac_cv_lib_posix_remove = yes; then
3583   X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
3584 fi
3585
3586     fi
3587
3588     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
3589     echo "$as_me:$LINENO: checking for shmat" >&5
3590 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
3591 if test "${ac_cv_func_shmat+set}" = set; then
3592   echo $ECHO_N "(cached) $ECHO_C" >&6
3593 else
3594   cat >conftest.$ac_ext <<_ACEOF
3595 #line $LINENO "configure"
3596 /* confdefs.h.  */
3597 _ACEOF
3598 cat confdefs.h >>conftest.$ac_ext
3599 cat >>conftest.$ac_ext <<_ACEOF
3600 /* end confdefs.h.  */
3601 /* System header to define __stub macros and hopefully few prototypes,
3602     which can conflict with char shmat (); below.
3603     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3604     <limits.h> exists even on freestanding compilers.  */
3605 #ifdef __STDC__
3606 # include <limits.h>
3607 #else
3608 # include <assert.h>
3609 #endif
3610 /* Override any gcc2 internal prototype to avoid an error.  */
3611 #ifdef __cplusplus
3612 extern "C"
3613 {
3614 #endif
3615 /* We use char because int might match the return type of a gcc2
3616    builtin and then its argument prototype would still apply.  */
3617 char shmat ();
3618 /* The GNU C library defines this for functions which it implements
3619     to always fail with ENOSYS.  Some functions are actually named
3620     something starting with __ and the normal name is an alias.  */
3621 #if defined (__stub_shmat) || defined (__stub___shmat)
3622 choke me
3623 #else
3624 char (*f) () = shmat;
3625 #endif
3626 #ifdef __cplusplus
3627 }
3628 #endif
3629
3630 int
3631 main ()
3632 {
3633 return f != shmat;
3634   ;
3635   return 0;
3636 }
3637 _ACEOF
3638 rm -f conftest.$ac_objext conftest$ac_exeext
3639 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3640   (eval $ac_link) 2>&5
3641   ac_status=$?
3642   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3643   (exit $ac_status); } &&
3644          { ac_try='test -s conftest$ac_exeext'
3645   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3646   (eval $ac_try) 2>&5
3647   ac_status=$?
3648   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3649   (exit $ac_status); }; }; then
3650   ac_cv_func_shmat=yes
3651 else
3652   echo "$as_me: failed program was:" >&5
3653 sed 's/^/| /' conftest.$ac_ext >&5
3654
3655 ac_cv_func_shmat=no
3656 fi
3657 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3658 fi
3659 echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
3660 echo "${ECHO_T}$ac_cv_func_shmat" >&6
3661
3662     if test $ac_cv_func_shmat = no; then
3663       echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
3664 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
3665 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
3666   echo $ECHO_N "(cached) $ECHO_C" >&6
3667 else
3668   ac_check_lib_save_LIBS=$LIBS
3669 LIBS="-lipc  $LIBS"
3670 cat >conftest.$ac_ext <<_ACEOF
3671 #line $LINENO "configure"
3672 /* confdefs.h.  */
3673 _ACEOF
3674 cat confdefs.h >>conftest.$ac_ext
3675 cat >>conftest.$ac_ext <<_ACEOF
3676 /* end confdefs.h.  */
3677
3678 /* Override any gcc2 internal prototype to avoid an error.  */
3679 #ifdef __cplusplus
3680 extern "C"
3681 #endif
3682 /* We use char because int might match the return type of a gcc2
3683    builtin and then its argument prototype would still apply.  */
3684 char shmat ();
3685 int
3686 main ()
3687 {
3688 shmat ();
3689   ;
3690   return 0;
3691 }
3692 _ACEOF
3693 rm -f conftest.$ac_objext conftest$ac_exeext
3694 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3695   (eval $ac_link) 2>&5
3696   ac_status=$?
3697   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3698   (exit $ac_status); } &&
3699          { ac_try='test -s conftest$ac_exeext'
3700   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3701   (eval $ac_try) 2>&5
3702   ac_status=$?
3703   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3704   (exit $ac_status); }; }; then
3705   ac_cv_lib_ipc_shmat=yes
3706 else
3707   echo "$as_me: failed program was:" >&5
3708 sed 's/^/| /' conftest.$ac_ext >&5
3709
3710 ac_cv_lib_ipc_shmat=no
3711 fi
3712 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3713 LIBS=$ac_check_lib_save_LIBS
3714 fi
3715 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
3716 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
3717 if test $ac_cv_lib_ipc_shmat = yes; then
3718   X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
3719 fi
3720
3721     fi
3722   fi
3723
3724   # Check for libraries that X11R6 Xt/Xaw programs need.
3725   ac_save_LDFLAGS=$LDFLAGS
3726   test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
3727   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
3728   # check for ICE first), but we must link in the order -lSM -lICE or
3729   # we get undefined symbols.  So assume we have SM if we have ICE.
3730   # These have to be linked with before -lX11, unlike the other
3731   # libraries we check for below, so use a different variable.
3732   # John Interrante, Karl Berry
3733   echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
3734 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
3735 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
3736   echo $ECHO_N "(cached) $ECHO_C" >&6
3737 else
3738   ac_check_lib_save_LIBS=$LIBS
3739 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
3740 cat >conftest.$ac_ext <<_ACEOF
3741 #line $LINENO "configure"
3742 /* confdefs.h.  */
3743 _ACEOF
3744 cat confdefs.h >>conftest.$ac_ext
3745 cat >>conftest.$ac_ext <<_ACEOF
3746 /* end confdefs.h.  */
3747
3748 /* Override any gcc2 internal prototype to avoid an error.  */
3749 #ifdef __cplusplus
3750 extern "C"
3751 #endif
3752 /* We use char because int might match the return type of a gcc2
3753    builtin and then its argument prototype would still apply.  */
3754 char IceConnectionNumber ();
3755 int
3756 main ()
3757 {
3758 IceConnectionNumber ();
3759   ;
3760   return 0;
3761 }
3762 _ACEOF
3763 rm -f conftest.$ac_objext conftest$ac_exeext
3764 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3765   (eval $ac_link) 2>&5
3766   ac_status=$?
3767   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3768   (exit $ac_status); } &&
3769          { ac_try='test -s conftest$ac_exeext'
3770   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3771   (eval $ac_try) 2>&5
3772   ac_status=$?
3773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3774   (exit $ac_status); }; }; then
3775   ac_cv_lib_ICE_IceConnectionNumber=yes
3776 else
3777   echo "$as_me: failed program was:" >&5
3778 sed 's/^/| /' conftest.$ac_ext >&5
3779
3780 ac_cv_lib_ICE_IceConnectionNumber=no
3781 fi
3782 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3783 LIBS=$ac_check_lib_save_LIBS
3784 fi
3785 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
3786 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
3787 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
3788   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
3789 fi
3790
3791   LDFLAGS=$ac_save_LDFLAGS
3792
3793 fi
3794
3795 for ac_prog in 'bison -y' byacc
3796 do
3797   # Extract the first word of "$ac_prog", so it can be a program name with args.
3798 set dummy $ac_prog; ac_word=$2
3799 echo "$as_me:$LINENO: checking for $ac_word" >&5
3800 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3801 if test "${ac_cv_prog_YACC+set}" = set; then
3802   echo $ECHO_N "(cached) $ECHO_C" >&6
3803 else
3804   if test -n "$YACC"; then
3805   ac_cv_prog_YACC="$YACC" # Let the user override the test.
3806 else
3807 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3808 for as_dir in $PATH
3809 do
3810   IFS=$as_save_IFS
3811   test -z "$as_dir" && as_dir=.
3812   for ac_exec_ext in '' $ac_executable_extensions; do
3813   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3814     ac_cv_prog_YACC="$ac_prog"
3815     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3816     break 2
3817   fi
3818 done
3819 done
3820
3821 fi
3822 fi
3823 YACC=$ac_cv_prog_YACC
3824 if test -n "$YACC"; then
3825   echo "$as_me:$LINENO: result: $YACC" >&5
3826 echo "${ECHO_T}$YACC" >&6
3827 else
3828   echo "$as_me:$LINENO: result: no" >&5
3829 echo "${ECHO_T}no" >&6
3830 fi
3831
3832   test -n "$YACC" && break
3833 done
3834 test -n "$YACC" || YACC="yacc"
3835
3836 for ac_prog in flex lex
3837 do
3838   # Extract the first word of "$ac_prog", so it can be a program name with args.
3839 set dummy $ac_prog; ac_word=$2
3840 echo "$as_me:$LINENO: checking for $ac_word" >&5
3841 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3842 if test "${ac_cv_prog_LEX+set}" = set; then
3843   echo $ECHO_N "(cached) $ECHO_C" >&6
3844 else
3845   if test -n "$LEX"; then
3846   ac_cv_prog_LEX="$LEX" # Let the user override the test.
3847 else
3848 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3849 for as_dir in $PATH
3850 do
3851   IFS=$as_save_IFS
3852   test -z "$as_dir" && as_dir=.
3853   for ac_exec_ext in '' $ac_executable_extensions; do
3854   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3855     ac_cv_prog_LEX="$ac_prog"
3856     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3857     break 2
3858   fi
3859 done
3860 done
3861
3862 fi
3863 fi
3864 LEX=$ac_cv_prog_LEX
3865 if test -n "$LEX"; then
3866   echo "$as_me:$LINENO: result: $LEX" >&5
3867 echo "${ECHO_T}$LEX" >&6
3868 else
3869   echo "$as_me:$LINENO: result: no" >&5
3870 echo "${ECHO_T}no" >&6
3871 fi
3872
3873   test -n "$LEX" && break
3874 done
3875 test -n "$LEX" || LEX=":"
3876
3877 if test -z "$LEXLIB"
3878 then
3879   echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
3880 echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
3881 if test "${ac_cv_lib_fl_yywrap+set}" = set; then
3882   echo $ECHO_N "(cached) $ECHO_C" >&6
3883 else
3884   ac_check_lib_save_LIBS=$LIBS
3885 LIBS="-lfl  $LIBS"
3886 cat >conftest.$ac_ext <<_ACEOF
3887 #line $LINENO "configure"
3888 /* confdefs.h.  */
3889 _ACEOF
3890 cat confdefs.h >>conftest.$ac_ext
3891 cat >>conftest.$ac_ext <<_ACEOF
3892 /* end confdefs.h.  */
3893
3894 /* Override any gcc2 internal prototype to avoid an error.  */
3895 #ifdef __cplusplus
3896 extern "C"
3897 #endif
3898 /* We use char because int might match the return type of a gcc2
3899    builtin and then its argument prototype would still apply.  */
3900 char yywrap ();
3901 int
3902 main ()
3903 {
3904 yywrap ();
3905   ;
3906   return 0;
3907 }
3908 _ACEOF
3909 rm -f conftest.$ac_objext conftest$ac_exeext
3910 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3911   (eval $ac_link) 2>&5
3912   ac_status=$?
3913   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3914   (exit $ac_status); } &&
3915          { ac_try='test -s conftest$ac_exeext'
3916   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3917   (eval $ac_try) 2>&5
3918   ac_status=$?
3919   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3920   (exit $ac_status); }; }; then
3921   ac_cv_lib_fl_yywrap=yes
3922 else
3923   echo "$as_me: failed program was:" >&5
3924 sed 's/^/| /' conftest.$ac_ext >&5
3925
3926 ac_cv_lib_fl_yywrap=no
3927 fi
3928 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3929 LIBS=$ac_check_lib_save_LIBS
3930 fi
3931 echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
3932 echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
3933 if test $ac_cv_lib_fl_yywrap = yes; then
3934   LEXLIB="-lfl"
3935 else
3936   echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
3937 echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
3938 if test "${ac_cv_lib_l_yywrap+set}" = set; then
3939   echo $ECHO_N "(cached) $ECHO_C" >&6
3940 else
3941   ac_check_lib_save_LIBS=$LIBS
3942 LIBS="-ll  $LIBS"
3943 cat >conftest.$ac_ext <<_ACEOF
3944 #line $LINENO "configure"
3945 /* confdefs.h.  */
3946 _ACEOF
3947 cat confdefs.h >>conftest.$ac_ext
3948 cat >>conftest.$ac_ext <<_ACEOF
3949 /* end confdefs.h.  */
3950
3951 /* Override any gcc2 internal prototype to avoid an error.  */
3952 #ifdef __cplusplus
3953 extern "C"
3954 #endif
3955 /* We use char because int might match the return type of a gcc2
3956    builtin and then its argument prototype would still apply.  */
3957 char yywrap ();
3958 int
3959 main ()
3960 {
3961 yywrap ();
3962   ;
3963   return 0;
3964 }
3965 _ACEOF
3966 rm -f conftest.$ac_objext conftest$ac_exeext
3967 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3968   (eval $ac_link) 2>&5
3969   ac_status=$?
3970   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3971   (exit $ac_status); } &&
3972          { ac_try='test -s conftest$ac_exeext'
3973   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3974   (eval $ac_try) 2>&5
3975   ac_status=$?
3976   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3977   (exit $ac_status); }; }; then
3978   ac_cv_lib_l_yywrap=yes
3979 else
3980   echo "$as_me: failed program was:" >&5
3981 sed 's/^/| /' conftest.$ac_ext >&5
3982
3983 ac_cv_lib_l_yywrap=no
3984 fi
3985 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3986 LIBS=$ac_check_lib_save_LIBS
3987 fi
3988 echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
3989 echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
3990 if test $ac_cv_lib_l_yywrap = yes; then
3991   LEXLIB="-ll"
3992 fi
3993
3994 fi
3995
3996 fi
3997
3998 if test "x$LEX" != "x:"; then
3999   echo "$as_me:$LINENO: checking lex output file root" >&5
4000 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
4001 if test "${ac_cv_prog_lex_root+set}" = set; then
4002   echo $ECHO_N "(cached) $ECHO_C" >&6
4003 else
4004   # The minimal lex program is just a single line: %%.  But some broken lexes
4005 # (Solaris, I think it was) want two %% lines, so accommodate them.
4006 cat >conftest.l <<_ACEOF
4007 %%
4008 %%
4009 _ACEOF
4010 { (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
4011   (eval $LEX conftest.l) 2>&5
4012   ac_status=$?
4013   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4014   (exit $ac_status); }
4015 if test -f lex.yy.c; then
4016   ac_cv_prog_lex_root=lex.yy
4017 elif test -f lexyy.c; then
4018   ac_cv_prog_lex_root=lexyy
4019 else
4020   { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
4021 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
4022    { (exit 1); exit 1; }; }
4023 fi
4024 fi
4025 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
4026 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
4027 rm -f conftest.l
4028 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
4029
4030 echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
4031 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
4032 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
4033   echo $ECHO_N "(cached) $ECHO_C" >&6
4034 else
4035   # POSIX says lex can declare yytext either as a pointer or an array; the
4036 # default is implementation-dependent. Figure out which it is, since
4037 # not all implementations provide the %pointer and %array declarations.
4038 ac_cv_prog_lex_yytext_pointer=no
4039 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
4040 ac_save_LIBS=$LIBS
4041 LIBS="$LIBS $LEXLIB"
4042 cat >conftest.$ac_ext <<_ACEOF
4043 `cat $LEX_OUTPUT_ROOT.c`
4044 _ACEOF
4045 rm -f conftest.$ac_objext conftest$ac_exeext
4046 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4047   (eval $ac_link) 2>&5
4048   ac_status=$?
4049   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4050   (exit $ac_status); } &&
4051          { ac_try='test -s conftest$ac_exeext'
4052   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4053   (eval $ac_try) 2>&5
4054   ac_status=$?
4055   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4056   (exit $ac_status); }; }; then
4057   ac_cv_prog_lex_yytext_pointer=yes
4058 else
4059   echo "$as_me: failed program was:" >&5
4060 sed 's/^/| /' conftest.$ac_ext >&5
4061
4062 fi
4063 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4064 LIBS=$ac_save_LIBS
4065 rm -f "${LEX_OUTPUT_ROOT}.c"
4066
4067 fi
4068 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
4069 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
4070 if test $ac_cv_prog_lex_yytext_pointer = yes; then
4071
4072 cat >>confdefs.h <<\_ACEOF
4073 #define YYTEXT_POINTER 1
4074 _ACEOF
4075
4076 fi
4077
4078 fi
4079
4080 for ac_prog in $YACC bison yacc
4081 do
4082   # Extract the first word of "$ac_prog", so it can be a program name with args.
4083 set dummy $ac_prog; ac_word=$2
4084 echo "$as_me:$LINENO: checking for $ac_word" >&5
4085 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4086 if test "${ac_cv_prog_XYACC+set}" = set; then
4087   echo $ECHO_N "(cached) $ECHO_C" >&6
4088 else
4089   if test -n "$XYACC"; then
4090   ac_cv_prog_XYACC="$XYACC" # Let the user override the test.
4091 else
4092 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4093 for as_dir in $PATH
4094 do
4095   IFS=$as_save_IFS
4096   test -z "$as_dir" && as_dir=.
4097   for ac_exec_ext in '' $ac_executable_extensions; do
4098   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4099     ac_cv_prog_XYACC="$ac_prog"
4100     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4101     break 2
4102   fi
4103 done
4104 done
4105
4106 fi
4107 fi
4108 XYACC=$ac_cv_prog_XYACC
4109 if test -n "$XYACC"; then
4110   echo "$as_me:$LINENO: result: $XYACC" >&5
4111 echo "${ECHO_T}$XYACC" >&6
4112 else
4113   echo "$as_me:$LINENO: result: no" >&5
4114 echo "${ECHO_T}no" >&6
4115 fi
4116
4117   test -n "$XYACC" && break
4118 done
4119 test -n "$XYACC" || XYACC="none"
4120
4121 if test "$XYACC" = "none"
4122 then
4123   { { echo "$as_me:$LINENO: error: no suitable bison/yacc found. Please install the 'bison' package." >&5
4124 echo "$as_me: error: no suitable bison/yacc found. Please install the 'bison' package." >&2;}
4125    { (exit 1); exit 1; }; }
4126 fi
4127 for ac_prog in $LEX flex lex
4128 do
4129   # Extract the first word of "$ac_prog", so it can be a program name with args.
4130 set dummy $ac_prog; ac_word=$2
4131 echo "$as_me:$LINENO: checking for $ac_word" >&5
4132 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4133 if test "${ac_cv_prog_XLEX+set}" = set; then
4134   echo $ECHO_N "(cached) $ECHO_C" >&6
4135 else
4136   if test -n "$XLEX"; then
4137   ac_cv_prog_XLEX="$XLEX" # Let the user override the test.
4138 else
4139 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4140 for as_dir in $PATH
4141 do
4142   IFS=$as_save_IFS
4143   test -z "$as_dir" && as_dir=.
4144   for ac_exec_ext in '' $ac_executable_extensions; do
4145   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4146     ac_cv_prog_XLEX="$ac_prog"
4147     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4148     break 2
4149   fi
4150 done
4151 done
4152
4153 fi
4154 fi
4155 XLEX=$ac_cv_prog_XLEX
4156 if test -n "$XLEX"; then
4157   echo "$as_me:$LINENO: result: $XLEX" >&5
4158 echo "${ECHO_T}$XLEX" >&6
4159 else
4160   echo "$as_me:$LINENO: result: no" >&5
4161 echo "${ECHO_T}no" >&6
4162 fi
4163
4164   test -n "$XLEX" && break
4165 done
4166 test -n "$XLEX" || XLEX="none"
4167
4168 if test "$XLEX" = "none"
4169 then
4170   { { echo "$as_me:$LINENO: error: no suitable lex found. Please install the 'flex' package." >&5
4171 echo "$as_me: error: no suitable lex found. Please install the 'flex' package." >&2;}
4172    { (exit 1); exit 1; }; }
4173 fi
4174
4175 if test -n "$ac_tool_prefix"; then
4176   # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
4177 set dummy ${ac_tool_prefix}as; ac_word=$2
4178 echo "$as_me:$LINENO: checking for $ac_word" >&5
4179 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4180 if test "${ac_cv_prog_AS+set}" = set; then
4181   echo $ECHO_N "(cached) $ECHO_C" >&6
4182 else
4183   if test -n "$AS"; then
4184   ac_cv_prog_AS="$AS" # Let the user override the test.
4185 else
4186 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4187 for as_dir in $PATH
4188 do
4189   IFS=$as_save_IFS
4190   test -z "$as_dir" && as_dir=.
4191   for ac_exec_ext in '' $ac_executable_extensions; do
4192   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4193     ac_cv_prog_AS="${ac_tool_prefix}as"
4194     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4195     break 2
4196   fi
4197 done
4198 done
4199
4200 fi
4201 fi
4202 AS=$ac_cv_prog_AS
4203 if test -n "$AS"; then
4204   echo "$as_me:$LINENO: result: $AS" >&5
4205 echo "${ECHO_T}$AS" >&6
4206 else
4207   echo "$as_me:$LINENO: result: no" >&5
4208 echo "${ECHO_T}no" >&6
4209 fi
4210
4211 fi
4212 if test -z "$ac_cv_prog_AS"; then
4213   ac_ct_AS=$AS
4214   # Extract the first word of "as", so it can be a program name with args.
4215 set dummy as; ac_word=$2
4216 echo "$as_me:$LINENO: checking for $ac_word" >&5
4217 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4218 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
4219   echo $ECHO_N "(cached) $ECHO_C" >&6
4220 else
4221   if test -n "$ac_ct_AS"; then
4222   ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
4223 else
4224 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4225 for as_dir in $PATH
4226 do
4227   IFS=$as_save_IFS
4228   test -z "$as_dir" && as_dir=.
4229   for ac_exec_ext in '' $ac_executable_extensions; do
4230   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4231     ac_cv_prog_ac_ct_AS="as"
4232     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4233     break 2
4234   fi
4235 done
4236 done
4237
4238   test -z "$ac_cv_prog_ac_ct_AS" && ac_cv_prog_ac_ct_AS="as"
4239 fi
4240 fi
4241 ac_ct_AS=$ac_cv_prog_ac_ct_AS
4242 if test -n "$ac_ct_AS"; then
4243   echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
4244 echo "${ECHO_T}$ac_ct_AS" >&6
4245 else
4246   echo "$as_me:$LINENO: result: no" >&5
4247 echo "${ECHO_T}no" >&6
4248 fi
4249
4250   AS=$ac_ct_AS
4251 else
4252   AS="$ac_cv_prog_AS"
4253 fi
4254
4255 if test -n "$ac_tool_prefix"; then
4256   # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
4257 set dummy ${ac_tool_prefix}ld; ac_word=$2
4258 echo "$as_me:$LINENO: checking for $ac_word" >&5
4259 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4260 if test "${ac_cv_prog_LD+set}" = set; then
4261   echo $ECHO_N "(cached) $ECHO_C" >&6
4262 else
4263   if test -n "$LD"; then
4264   ac_cv_prog_LD="$LD" # Let the user override the test.
4265 else
4266 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4267 for as_dir in $PATH
4268 do
4269   IFS=$as_save_IFS
4270   test -z "$as_dir" && as_dir=.
4271   for ac_exec_ext in '' $ac_executable_extensions; do
4272   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4273     ac_cv_prog_LD="${ac_tool_prefix}ld"
4274     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4275     break 2
4276   fi
4277 done
4278 done
4279
4280 fi
4281 fi
4282 LD=$ac_cv_prog_LD
4283 if test -n "$LD"; then
4284   echo "$as_me:$LINENO: result: $LD" >&5
4285 echo "${ECHO_T}$LD" >&6
4286 else
4287   echo "$as_me:$LINENO: result: no" >&5
4288 echo "${ECHO_T}no" >&6
4289 fi
4290
4291 fi
4292 if test -z "$ac_cv_prog_LD"; then
4293   ac_ct_LD=$LD
4294   # Extract the first word of "ld", so it can be a program name with args.
4295 set dummy ld; ac_word=$2
4296 echo "$as_me:$LINENO: checking for $ac_word" >&5
4297 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4298 if test "${ac_cv_prog_ac_ct_LD+set}" = set; then
4299   echo $ECHO_N "(cached) $ECHO_C" >&6
4300 else
4301   if test -n "$ac_ct_LD"; then
4302   ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test.
4303 else
4304 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4305 for as_dir in $PATH
4306 do
4307   IFS=$as_save_IFS
4308   test -z "$as_dir" && as_dir=.
4309   for ac_exec_ext in '' $ac_executable_extensions; do
4310   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4311     ac_cv_prog_ac_ct_LD="ld"
4312     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4313     break 2
4314   fi
4315 done
4316 done
4317
4318   test -z "$ac_cv_prog_ac_ct_LD" && ac_cv_prog_ac_ct_LD="ld"
4319 fi
4320 fi
4321 ac_ct_LD=$ac_cv_prog_ac_ct_LD
4322 if test -n "$ac_ct_LD"; then
4323   echo "$as_me:$LINENO: result: $ac_ct_LD" >&5
4324 echo "${ECHO_T}$ac_ct_LD" >&6
4325 else
4326   echo "$as_me:$LINENO: result: no" >&5
4327 echo "${ECHO_T}no" >&6
4328 fi
4329
4330   LD=$ac_ct_LD
4331 else
4332   LD="$ac_cv_prog_LD"
4333 fi
4334
4335 if test -n "$ac_tool_prefix"; then
4336   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4337 set dummy ${ac_tool_prefix}ar; ac_word=$2
4338 echo "$as_me:$LINENO: checking for $ac_word" >&5
4339 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4340 if test "${ac_cv_prog_AR+set}" = set; then
4341   echo $ECHO_N "(cached) $ECHO_C" >&6
4342 else
4343   if test -n "$AR"; then
4344   ac_cv_prog_AR="$AR" # Let the user override the test.
4345 else
4346 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4347 for as_dir in $PATH
4348 do
4349   IFS=$as_save_IFS
4350   test -z "$as_dir" && as_dir=.
4351   for ac_exec_ext in '' $ac_executable_extensions; do
4352   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4353     ac_cv_prog_AR="${ac_tool_prefix}ar"
4354     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4355     break 2
4356   fi
4357 done
4358 done
4359
4360 fi
4361 fi
4362 AR=$ac_cv_prog_AR
4363 if test -n "$AR"; then
4364   echo "$as_me:$LINENO: result: $AR" >&5
4365 echo "${ECHO_T}$AR" >&6
4366 else
4367   echo "$as_me:$LINENO: result: no" >&5
4368 echo "${ECHO_T}no" >&6
4369 fi
4370
4371 fi
4372 if test -z "$ac_cv_prog_AR"; then
4373   ac_ct_AR=$AR
4374   # Extract the first word of "ar", so it can be a program name with args.
4375 set dummy ar; ac_word=$2
4376 echo "$as_me:$LINENO: checking for $ac_word" >&5
4377 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4378 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
4379   echo $ECHO_N "(cached) $ECHO_C" >&6
4380 else
4381   if test -n "$ac_ct_AR"; then
4382   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4383 else
4384 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4385 for as_dir in $PATH
4386 do
4387   IFS=$as_save_IFS
4388   test -z "$as_dir" && as_dir=.
4389   for ac_exec_ext in '' $ac_executable_extensions; do
4390   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4391     ac_cv_prog_ac_ct_AR="ar"
4392     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4393     break 2
4394   fi
4395 done
4396 done
4397
4398   test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar"
4399 fi
4400 fi
4401 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4402 if test -n "$ac_ct_AR"; then
4403   echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
4404 echo "${ECHO_T}$ac_ct_AR" >&6
4405 else
4406   echo "$as_me:$LINENO: result: no" >&5
4407 echo "${ECHO_T}no" >&6
4408 fi
4409
4410   AR=$ac_ct_AR
4411 else
4412   AR="$ac_cv_prog_AR"
4413 fi
4414
4415 if test -n "$ac_tool_prefix"; then
4416   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4417 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4418 echo "$as_me:$LINENO: checking for $ac_word" >&5
4419 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4420 if test "${ac_cv_prog_RANLIB+set}" = set; then
4421   echo $ECHO_N "(cached) $ECHO_C" >&6
4422 else
4423   if test -n "$RANLIB"; then
4424   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4425 else
4426 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4427 for as_dir in $PATH
4428 do
4429   IFS=$as_save_IFS
4430   test -z "$as_dir" && as_dir=.
4431   for ac_exec_ext in '' $ac_executable_extensions; do
4432   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4433     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4434     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4435     break 2
4436   fi
4437 done
4438 done
4439
4440 fi
4441 fi
4442 RANLIB=$ac_cv_prog_RANLIB
4443 if test -n "$RANLIB"; then
4444   echo "$as_me:$LINENO: result: $RANLIB" >&5
4445 echo "${ECHO_T}$RANLIB" >&6
4446 else
4447   echo "$as_me:$LINENO: result: no" >&5
4448 echo "${ECHO_T}no" >&6
4449 fi
4450
4451 fi
4452 if test -z "$ac_cv_prog_RANLIB"; then
4453   ac_ct_RANLIB=$RANLIB
4454   # Extract the first word of "ranlib", so it can be a program name with args.
4455 set dummy ranlib; ac_word=$2
4456 echo "$as_me:$LINENO: checking for $ac_word" >&5
4457 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4458 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4459   echo $ECHO_N "(cached) $ECHO_C" >&6
4460 else
4461   if test -n "$ac_ct_RANLIB"; then
4462   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4463 else
4464 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4465 for as_dir in $PATH
4466 do
4467   IFS=$as_save_IFS
4468   test -z "$as_dir" && as_dir=.
4469   for ac_exec_ext in '' $ac_executable_extensions; do
4470   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4471     ac_cv_prog_ac_ct_RANLIB="ranlib"
4472     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4473     break 2
4474   fi
4475 done
4476 done
4477
4478   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4479 fi
4480 fi
4481 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4482 if test -n "$ac_ct_RANLIB"; then
4483   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4484 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4485 else
4486   echo "$as_me:$LINENO: result: no" >&5
4487 echo "${ECHO_T}no" >&6
4488 fi
4489
4490   RANLIB=$ac_ct_RANLIB
4491 else
4492   RANLIB="$ac_cv_prog_RANLIB"
4493 fi
4494
4495 if test -n "$ac_tool_prefix"; then
4496   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4497 set dummy ${ac_tool_prefix}strip; ac_word=$2
4498 echo "$as_me:$LINENO: checking for $ac_word" >&5
4499 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4500 if test "${ac_cv_prog_STRIP+set}" = set; then
4501   echo $ECHO_N "(cached) $ECHO_C" >&6
4502 else
4503   if test -n "$STRIP"; then
4504   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4505 else
4506 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4507 for as_dir in $PATH
4508 do
4509   IFS=$as_save_IFS
4510   test -z "$as_dir" && as_dir=.
4511   for ac_exec_ext in '' $ac_executable_extensions; do
4512   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4513     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4514     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4515     break 2
4516   fi
4517 done
4518 done
4519
4520 fi
4521 fi
4522 STRIP=$ac_cv_prog_STRIP
4523 if test -n "$STRIP"; then
4524   echo "$as_me:$LINENO: result: $STRIP" >&5
4525 echo "${ECHO_T}$STRIP" >&6
4526 else
4527   echo "$as_me:$LINENO: result: no" >&5
4528 echo "${ECHO_T}no" >&6
4529 fi
4530
4531 fi
4532 if test -z "$ac_cv_prog_STRIP"; then
4533   ac_ct_STRIP=$STRIP
4534   # Extract the first word of "strip", so it can be a program name with args.
4535 set dummy strip; ac_word=$2
4536 echo "$as_me:$LINENO: checking for $ac_word" >&5
4537 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4538 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4539   echo $ECHO_N "(cached) $ECHO_C" >&6
4540 else
4541   if test -n "$ac_ct_STRIP"; then
4542   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4543 else
4544 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4545 for as_dir in $PATH
4546 do
4547   IFS=$as_save_IFS
4548   test -z "$as_dir" && as_dir=.
4549   for ac_exec_ext in '' $ac_executable_extensions; do
4550   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4551     ac_cv_prog_ac_ct_STRIP="strip"
4552     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4553     break 2
4554   fi
4555 done
4556 done
4557
4558   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP="strip"
4559 fi
4560 fi
4561 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4562 if test -n "$ac_ct_STRIP"; then
4563   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4564 echo "${ECHO_T}$ac_ct_STRIP" >&6
4565 else
4566   echo "$as_me:$LINENO: result: no" >&5
4567 echo "${ECHO_T}no" >&6
4568 fi
4569
4570   STRIP=$ac_ct_STRIP
4571 else
4572   STRIP="$ac_cv_prog_STRIP"
4573 fi
4574
4575 if test -n "$ac_tool_prefix"; then
4576   # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
4577 set dummy ${ac_tool_prefix}windres; ac_word=$2
4578 echo "$as_me:$LINENO: checking for $ac_word" >&5
4579 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4580 if test "${ac_cv_prog_WINDRES+set}" = set; then
4581   echo $ECHO_N "(cached) $ECHO_C" >&6
4582 else
4583   if test -n "$WINDRES"; then
4584   ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
4585 else
4586 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4587 for as_dir in $PATH
4588 do
4589   IFS=$as_save_IFS
4590   test -z "$as_dir" && as_dir=.
4591   for ac_exec_ext in '' $ac_executable_extensions; do
4592   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4593     ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
4594     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4595     break 2
4596   fi
4597 done
4598 done
4599
4600 fi
4601 fi
4602 WINDRES=$ac_cv_prog_WINDRES
4603 if test -n "$WINDRES"; then
4604   echo "$as_me:$LINENO: result: $WINDRES" >&5
4605 echo "${ECHO_T}$WINDRES" >&6
4606 else
4607   echo "$as_me:$LINENO: result: no" >&5
4608 echo "${ECHO_T}no" >&6
4609 fi
4610
4611 fi
4612 if test -z "$ac_cv_prog_WINDRES"; then
4613   ac_ct_WINDRES=$WINDRES
4614   # Extract the first word of "windres", so it can be a program name with args.
4615 set dummy windres; ac_word=$2
4616 echo "$as_me:$LINENO: checking for $ac_word" >&5
4617 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4618 if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
4619   echo $ECHO_N "(cached) $ECHO_C" >&6
4620 else
4621   if test -n "$ac_ct_WINDRES"; then
4622   ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
4623 else
4624 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4625 for as_dir in $PATH
4626 do
4627   IFS=$as_save_IFS
4628   test -z "$as_dir" && as_dir=.
4629   for ac_exec_ext in '' $ac_executable_extensions; do
4630   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4631     ac_cv_prog_ac_ct_WINDRES="windres"
4632     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4633     break 2
4634   fi
4635 done
4636 done
4637
4638   test -z "$ac_cv_prog_ac_ct_WINDRES" && ac_cv_prog_ac_ct_WINDRES="false"
4639 fi
4640 fi
4641 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
4642 if test -n "$ac_ct_WINDRES"; then
4643   echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
4644 echo "${ECHO_T}$ac_ct_WINDRES" >&6
4645 else
4646   echo "$as_me:$LINENO: result: no" >&5
4647 echo "${ECHO_T}no" >&6
4648 fi
4649
4650   WINDRES=$ac_ct_WINDRES
4651 else
4652   WINDRES="$ac_cv_prog_WINDRES"
4653 fi
4654
4655 echo "$as_me:$LINENO: checking whether ln -s works" >&5
4656 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4657 LN_S=$as_ln_s
4658 if test "$LN_S" = "ln -s"; then
4659   echo "$as_me:$LINENO: result: yes" >&5
4660 echo "${ECHO_T}yes" >&6
4661 else
4662   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4663 echo "${ECHO_T}no, using $LN_S" >&6
4664 fi
4665
4666 echo "$as_me:$LINENO: checking whether ln works" >&5
4667 echo $ECHO_N "checking whether ln works... $ECHO_C" >&6
4668 rm -f conf$$ conf$$.file
4669 echo >conf$$.file
4670 if ln conf$$.file conf$$ 2>/dev/null; then
4671   LN=ln
4672
4673   echo "$as_me:$LINENO: result: yes" >&5
4674 echo "${ECHO_T}yes" >&6
4675 else
4676   LN="cp -p"
4677
4678   echo "$as_me:$LINENO: result: no, using $LN" >&5
4679 echo "${ECHO_T}no, using $LN" >&6
4680 fi
4681 rm -f conf$$ conf$$.file
4682 # Extract the first word of "c2man", so it can be a program name with args.
4683 set dummy c2man; ac_word=$2
4684 echo "$as_me:$LINENO: checking for $ac_word" >&5
4685 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4686 if test "${ac_cv_prog_C2MAN+set}" = set; then
4687   echo $ECHO_N "(cached) $ECHO_C" >&6
4688 else
4689   if test -n "$C2MAN"; then
4690   ac_cv_prog_C2MAN="$C2MAN" # Let the user override the test.
4691 else
4692 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4693 for as_dir in $PATH
4694 do
4695   IFS=$as_save_IFS
4696   test -z "$as_dir" && as_dir=.
4697   for ac_exec_ext in '' $ac_executable_extensions; do
4698   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4699     ac_cv_prog_C2MAN="c2man"
4700     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4701     break 2
4702   fi
4703 done
4704 done
4705
4706   test -z "$ac_cv_prog_C2MAN" && ac_cv_prog_C2MAN="\$(TOPSRCDIR)/tools/c2man.pl"
4707 fi
4708 fi
4709 C2MAN=$ac_cv_prog_C2MAN
4710 if test -n "$C2MAN"; then
4711   echo "$as_me:$LINENO: result: $C2MAN" >&5
4712 echo "${ECHO_T}$C2MAN" >&6
4713 else
4714   echo "$as_me:$LINENO: result: no" >&5
4715 echo "${ECHO_T}no" >&6
4716 fi
4717
4718 # Extract the first word of "ldconfig", so it can be a program name with args.
4719 set dummy ldconfig; ac_word=$2
4720 echo "$as_me:$LINENO: checking for $ac_word" >&5
4721 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4722 if test "${ac_cv_path_LDCONFIG+set}" = set; then
4723   echo $ECHO_N "(cached) $ECHO_C" >&6
4724 else
4725   case $LDCONFIG in
4726   [\\/]* | ?:[\\/]*)
4727   ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
4728   ;;
4729   *)
4730   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4731 for as_dir in /sbin /usr/sbin $PATH
4732 do
4733   IFS=$as_save_IFS
4734   test -z "$as_dir" && as_dir=.
4735   for ac_exec_ext in '' $ac_executable_extensions; do
4736   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4737     ac_cv_path_LDCONFIG="$as_dir/$ac_word$ac_exec_ext"
4738     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4739     break 2
4740   fi
4741 done
4742 done
4743
4744   test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG="true"
4745   ;;
4746 esac
4747 fi
4748 LDCONFIG=$ac_cv_path_LDCONFIG
4749
4750 if test -n "$LDCONFIG"; then
4751   echo "$as_me:$LINENO: result: $LDCONFIG" >&5
4752 echo "${ECHO_T}$LDCONFIG" >&6
4753 else
4754   echo "$as_me:$LINENO: result: no" >&5
4755 echo "${ECHO_T}no" >&6
4756 fi
4757
4758 # Find a good install program.  We prefer a C program (faster),
4759 # so one script is as good as another.  But avoid the broken or
4760 # incompatible versions:
4761 # SysV /etc/install, /usr/sbin/install
4762 # SunOS /usr/etc/install
4763 # IRIX /sbin/install
4764 # AIX /bin/install
4765 # AmigaOS /C/install, which installs bootblocks on floppy discs
4766 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4767 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4768 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4769 # ./install, which can be erroneously created by make from ./install.sh.
4770 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4771 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
4772 if test -z "$INSTALL"; then
4773 if test "${ac_cv_path_install+set}" = set; then
4774   echo $ECHO_N "(cached) $ECHO_C" >&6
4775 else
4776   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4777 for as_dir in $PATH
4778 do
4779   IFS=$as_save_IFS
4780   test -z "$as_dir" && as_dir=.
4781   # Account for people who put trailing slashes in PATH elements.
4782 case $as_dir/ in
4783   ./ | .// | /cC/* | \
4784   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4785   /usr/ucb/* ) ;;
4786   *)
4787     # OSF1 and SCO ODT 3.0 have their own names for install.
4788     # Don't use installbsd from OSF since it installs stuff as root
4789     # by default.
4790     for ac_prog in ginstall scoinst install; do
4791       for ac_exec_ext in '' $ac_executable_extensions; do
4792         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4793           if test $ac_prog = install &&
4794             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4795             # AIX install.  It has an incompatible calling convention.
4796             :
4797           elif test $ac_prog = install &&
4798             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4799             # program-specific install script used by HP pwplus--don't use.
4800             :
4801           else
4802             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4803             break 3
4804           fi
4805         fi
4806       done
4807     done
4808     ;;
4809 esac
4810 done
4811
4812
4813 fi
4814   if test "${ac_cv_path_install+set}" = set; then
4815     INSTALL=$ac_cv_path_install
4816   else
4817     # As a last resort, use the slow shell script.  We don't cache a
4818     # path for INSTALL within a source directory, because that will
4819     # break other packages using the cache if that directory is
4820     # removed, or if the path is relative.
4821     INSTALL=$ac_install_sh
4822   fi
4823 fi
4824 echo "$as_me:$LINENO: result: $INSTALL" >&5
4825 echo "${ECHO_T}$INSTALL" >&6
4826
4827 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4828 # It thinks the first close brace ends the variable substitution.
4829 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4830
4831 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4832
4833 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4834
4835 case "$INSTALL" in
4836   [\\/$]* | ?:[\\/]* ) ;;
4837   *)  INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;;
4838 esac
4839
4840 for ac_prog in lclint lint
4841 do
4842   # Extract the first word of "$ac_prog", so it can be a program name with args.
4843 set dummy $ac_prog; ac_word=$2
4844 echo "$as_me:$LINENO: checking for $ac_word" >&5
4845 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4846 if test "${ac_cv_prog_LINT+set}" = set; then
4847   echo $ECHO_N "(cached) $ECHO_C" >&6
4848 else
4849   if test -n "$LINT"; then
4850   ac_cv_prog_LINT="$LINT" # Let the user override the test.
4851 else
4852 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4853 for as_dir in $PATH
4854 do
4855   IFS=$as_save_IFS
4856   test -z "$as_dir" && as_dir=.
4857   for ac_exec_ext in '' $ac_executable_extensions; do
4858   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4859     ac_cv_prog_LINT="$ac_prog"
4860     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4861     break 2
4862   fi
4863 done
4864 done
4865
4866 fi
4867 fi
4868 LINT=$ac_cv_prog_LINT
4869 if test -n "$LINT"; then
4870   echo "$as_me:$LINENO: result: $LINT" >&5
4871 echo "${ECHO_T}$LINT" >&6
4872 else
4873   echo "$as_me:$LINENO: result: no" >&5
4874 echo "${ECHO_T}no" >&6
4875 fi
4876
4877   test -n "$LINT" && break
4878 done
4879
4880 if test "$LINT" = "lint"
4881 then
4882   LINTFLAGS="$LINTFLAGS -errchk=%all,no%longptr64 -errhdr=%user -Ncheck=macro -Nlevel=4"
4883   fi
4884
4885
4886
4887 for ac_prog in docbook2html db2html
4888 do
4889   # Extract the first word of "$ac_prog", so it can be a program name with args.
4890 set dummy $ac_prog; ac_word=$2
4891 echo "$as_me:$LINENO: checking for $ac_word" >&5
4892 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4893 if test "${ac_cv_prog_DB2HTML+set}" = set; then
4894   echo $ECHO_N "(cached) $ECHO_C" >&6
4895 else
4896   if test -n "$DB2HTML"; then
4897   ac_cv_prog_DB2HTML="$DB2HTML" # Let the user override the test.
4898 else
4899 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4900 for as_dir in $PATH
4901 do
4902   IFS=$as_save_IFS
4903   test -z "$as_dir" && as_dir=.
4904   for ac_exec_ext in '' $ac_executable_extensions; do
4905   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4906     ac_cv_prog_DB2HTML="$ac_prog"
4907     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4908     break 2
4909   fi
4910 done
4911 done
4912
4913 fi
4914 fi
4915 DB2HTML=$ac_cv_prog_DB2HTML
4916 if test -n "$DB2HTML"; then
4917   echo "$as_me:$LINENO: result: $DB2HTML" >&5
4918 echo "${ECHO_T}$DB2HTML" >&6
4919 else
4920   echo "$as_me:$LINENO: result: no" >&5
4921 echo "${ECHO_T}no" >&6
4922 fi
4923
4924   test -n "$DB2HTML" && break
4925 done
4926 test -n "$DB2HTML" || DB2HTML="false"
4927
4928
4929
4930 for ac_prog in docbook2pdf db2pdf
4931 do
4932   # Extract the first word of "$ac_prog", so it can be a program name with args.
4933 set dummy $ac_prog; ac_word=$2
4934 echo "$as_me:$LINENO: checking for $ac_word" >&5
4935 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4936 if test "${ac_cv_prog_DB2PDF+set}" = set; then
4937   echo $ECHO_N "(cached) $ECHO_C" >&6
4938 else
4939   if test -n "$DB2PDF"; then
4940   ac_cv_prog_DB2PDF="$DB2PDF" # Let the user override the test.
4941 else
4942 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4943 for as_dir in $PATH
4944 do
4945   IFS=$as_save_IFS
4946   test -z "$as_dir" && as_dir=.
4947   for ac_exec_ext in '' $ac_executable_extensions; do
4948   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4949     ac_cv_prog_DB2PDF="$ac_prog"
4950     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4951     break 2
4952   fi
4953 done
4954 done
4955
4956 fi
4957 fi
4958 DB2PDF=$ac_cv_prog_DB2PDF
4959 if test -n "$DB2PDF"; then
4960   echo "$as_me:$LINENO: result: $DB2PDF" >&5
4961 echo "${ECHO_T}$DB2PDF" >&6
4962 else
4963   echo "$as_me:$LINENO: result: no" >&5
4964 echo "${ECHO_T}no" >&6
4965 fi
4966
4967   test -n "$DB2PDF" && break
4968 done
4969 test -n "$DB2PDF" || DB2PDF="false"
4970
4971
4972
4973 for ac_prog in docbook2ps db2ps
4974 do
4975   # Extract the first word of "$ac_prog", so it can be a program name with args.
4976 set dummy $ac_prog; ac_word=$2
4977 echo "$as_me:$LINENO: checking for $ac_word" >&5
4978 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4979 if test "${ac_cv_prog_DB2PS+set}" = set; then
4980   echo $ECHO_N "(cached) $ECHO_C" >&6
4981 else
4982   if test -n "$DB2PS"; then
4983   ac_cv_prog_DB2PS="$DB2PS" # Let the user override the test.
4984 else
4985 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4986 for as_dir in $PATH
4987 do
4988   IFS=$as_save_IFS
4989   test -z "$as_dir" && as_dir=.
4990   for ac_exec_ext in '' $ac_executable_extensions; do
4991   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4992     ac_cv_prog_DB2PS="$ac_prog"
4993     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4994     break 2
4995   fi
4996 done
4997 done
4998
4999 fi
5000 fi
5001 DB2PS=$ac_cv_prog_DB2PS
5002 if test -n "$DB2PS"; then
5003   echo "$as_me:$LINENO: result: $DB2PS" >&5
5004 echo "${ECHO_T}$DB2PS" >&6
5005 else
5006   echo "$as_me:$LINENO: result: no" >&5
5007 echo "${ECHO_T}no" >&6
5008 fi
5009
5010   test -n "$DB2PS" && break
5011 done
5012 test -n "$DB2PS" || DB2PS="false"
5013
5014
5015
5016
5017
5018 echo "$as_me:$LINENO: checking for sqrt in -lm" >&5
5019 echo $ECHO_N "checking for sqrt in -lm... $ECHO_C" >&6
5020 if test "${ac_cv_lib_m_sqrt+set}" = set; then
5021   echo $ECHO_N "(cached) $ECHO_C" >&6
5022 else
5023   ac_check_lib_save_LIBS=$LIBS
5024 LIBS="-lm  $LIBS"
5025 cat >conftest.$ac_ext <<_ACEOF
5026 #line $LINENO "configure"
5027 /* confdefs.h.  */
5028 _ACEOF
5029 cat confdefs.h >>conftest.$ac_ext
5030 cat >>conftest.$ac_ext <<_ACEOF
5031 /* end confdefs.h.  */
5032
5033 /* Override any gcc2 internal prototype to avoid an error.  */
5034 #ifdef __cplusplus
5035 extern "C"
5036 #endif
5037 /* We use char because int might match the return type of a gcc2
5038    builtin and then its argument prototype would still apply.  */
5039 char sqrt ();
5040 int
5041 main ()
5042 {
5043 sqrt ();
5044   ;
5045   return 0;
5046 }
5047 _ACEOF
5048 rm -f conftest.$ac_objext conftest$ac_exeext
5049 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5050   (eval $ac_link) 2>&5
5051   ac_status=$?
5052   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5053   (exit $ac_status); } &&
5054          { ac_try='test -s conftest$ac_exeext'
5055   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5056   (eval $ac_try) 2>&5
5057   ac_status=$?
5058   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5059   (exit $ac_status); }; }; then
5060   ac_cv_lib_m_sqrt=yes
5061 else
5062   echo "$as_me: failed program was:" >&5
5063 sed 's/^/| /' conftest.$ac_ext >&5
5064
5065 ac_cv_lib_m_sqrt=no
5066 fi
5067 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5068 LIBS=$ac_check_lib_save_LIBS
5069 fi
5070 echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrt" >&5
5071 echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6
5072 if test $ac_cv_lib_m_sqrt = yes; then
5073   cat >>confdefs.h <<_ACEOF
5074 #define HAVE_LIBM 1
5075 _ACEOF
5076
5077   LIBS="-lm $LIBS"
5078
5079 fi
5080
5081
5082 echo "$as_me:$LINENO: checking for i386_set_ldt in -li386" >&5
5083 echo $ECHO_N "checking for i386_set_ldt in -li386... $ECHO_C" >&6
5084 if test "${ac_cv_lib_i386_i386_set_ldt+set}" = set; then
5085   echo $ECHO_N "(cached) $ECHO_C" >&6
5086 else
5087   ac_check_lib_save_LIBS=$LIBS
5088 LIBS="-li386  $LIBS"
5089 cat >conftest.$ac_ext <<_ACEOF
5090 #line $LINENO "configure"
5091 /* confdefs.h.  */
5092 _ACEOF
5093 cat confdefs.h >>conftest.$ac_ext
5094 cat >>conftest.$ac_ext <<_ACEOF
5095 /* end confdefs.h.  */
5096
5097 /* Override any gcc2 internal prototype to avoid an error.  */
5098 #ifdef __cplusplus
5099 extern "C"
5100 #endif
5101 /* We use char because int might match the return type of a gcc2
5102    builtin and then its argument prototype would still apply.  */
5103 char i386_set_ldt ();
5104 int
5105 main ()
5106 {
5107 i386_set_ldt ();
5108   ;
5109   return 0;
5110 }
5111 _ACEOF
5112 rm -f conftest.$ac_objext conftest$ac_exeext
5113 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5114   (eval $ac_link) 2>&5
5115   ac_status=$?
5116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5117   (exit $ac_status); } &&
5118          { ac_try='test -s conftest$ac_exeext'
5119   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5120   (eval $ac_try) 2>&5
5121   ac_status=$?
5122   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5123   (exit $ac_status); }; }; then
5124   ac_cv_lib_i386_i386_set_ldt=yes
5125 else
5126   echo "$as_me: failed program was:" >&5
5127 sed 's/^/| /' conftest.$ac_ext >&5
5128
5129 ac_cv_lib_i386_i386_set_ldt=no
5130 fi
5131 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5132 LIBS=$ac_check_lib_save_LIBS
5133 fi
5134 echo "$as_me:$LINENO: result: $ac_cv_lib_i386_i386_set_ldt" >&5
5135 echo "${ECHO_T}$ac_cv_lib_i386_i386_set_ldt" >&6
5136 if test $ac_cv_lib_i386_i386_set_ldt = yes; then
5137   cat >>confdefs.h <<_ACEOF
5138 #define HAVE_LIBI386 1
5139 _ACEOF
5140
5141   LIBS="-li386 $LIBS"
5142
5143 fi
5144
5145
5146 echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5
5147 echo $ECHO_N "checking for _oss_ioctl in -lossaudio... $ECHO_C" >&6
5148 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then
5149   echo $ECHO_N "(cached) $ECHO_C" >&6
5150 else
5151   ac_check_lib_save_LIBS=$LIBS
5152 LIBS="-lossaudio  $LIBS"
5153 cat >conftest.$ac_ext <<_ACEOF
5154 #line $LINENO "configure"
5155 /* confdefs.h.  */
5156 _ACEOF
5157 cat confdefs.h >>conftest.$ac_ext
5158 cat >>conftest.$ac_ext <<_ACEOF
5159 /* end confdefs.h.  */
5160
5161 /* Override any gcc2 internal prototype to avoid an error.  */
5162 #ifdef __cplusplus
5163 extern "C"
5164 #endif
5165 /* We use char because int might match the return type of a gcc2
5166    builtin and then its argument prototype would still apply.  */
5167 char _oss_ioctl ();
5168 int
5169 main ()
5170 {
5171 _oss_ioctl ();
5172   ;
5173   return 0;
5174 }
5175 _ACEOF
5176 rm -f conftest.$ac_objext conftest$ac_exeext
5177 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5178   (eval $ac_link) 2>&5
5179   ac_status=$?
5180   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5181   (exit $ac_status); } &&
5182          { ac_try='test -s conftest$ac_exeext'
5183   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5184   (eval $ac_try) 2>&5
5185   ac_status=$?
5186   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5187   (exit $ac_status); }; }; then
5188   ac_cv_lib_ossaudio__oss_ioctl=yes
5189 else
5190   echo "$as_me: failed program was:" >&5
5191 sed 's/^/| /' conftest.$ac_ext >&5
5192
5193 ac_cv_lib_ossaudio__oss_ioctl=no
5194 fi
5195 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5196 LIBS=$ac_check_lib_save_LIBS
5197 fi
5198 echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
5199 echo "${ECHO_T}$ac_cv_lib_ossaudio__oss_ioctl" >&6
5200 if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then
5201   cat >>confdefs.h <<_ACEOF
5202 #define HAVE_LIBOSSAUDIO 1
5203 _ACEOF
5204
5205   LIBS="-lossaudio $LIBS"
5206
5207 fi
5208
5209
5210 for ac_func in iswalnum
5211 do
5212 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5213 echo "$as_me:$LINENO: checking for $ac_func" >&5
5214 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5215 if eval "test \"\${$as_ac_var+set}\" = set"; then
5216   echo $ECHO_N "(cached) $ECHO_C" >&6
5217 else
5218   cat >conftest.$ac_ext <<_ACEOF
5219 #line $LINENO "configure"
5220 /* confdefs.h.  */
5221 _ACEOF
5222 cat confdefs.h >>conftest.$ac_ext
5223 cat >>conftest.$ac_ext <<_ACEOF
5224 /* end confdefs.h.  */
5225 /* System header to define __stub macros and hopefully few prototypes,
5226     which can conflict with char $ac_func (); below.
5227     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5228     <limits.h> exists even on freestanding compilers.  */
5229 #ifdef __STDC__
5230 # include <limits.h>
5231 #else
5232 # include <assert.h>
5233 #endif
5234 /* Override any gcc2 internal prototype to avoid an error.  */
5235 #ifdef __cplusplus
5236 extern "C"
5237 {
5238 #endif
5239 /* We use char because int might match the return type of a gcc2
5240    builtin and then its argument prototype would still apply.  */
5241 char $ac_func ();
5242 /* The GNU C library defines this for functions which it implements
5243     to always fail with ENOSYS.  Some functions are actually named
5244     something starting with __ and the normal name is an alias.  */
5245 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5246 choke me
5247 #else
5248 char (*f) () = $ac_func;
5249 #endif
5250 #ifdef __cplusplus
5251 }
5252 #endif
5253
5254 int
5255 main ()
5256 {
5257 return f != $ac_func;
5258   ;
5259   return 0;
5260 }
5261 _ACEOF
5262 rm -f conftest.$ac_objext conftest$ac_exeext
5263 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5264   (eval $ac_link) 2>&5
5265   ac_status=$?
5266   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5267   (exit $ac_status); } &&
5268          { ac_try='test -s conftest$ac_exeext'
5269   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5270   (eval $ac_try) 2>&5
5271   ac_status=$?
5272   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5273   (exit $ac_status); }; }; then
5274   eval "$as_ac_var=yes"
5275 else
5276   echo "$as_me: failed program was:" >&5
5277 sed 's/^/| /' conftest.$ac_ext >&5
5278
5279 eval "$as_ac_var=no"
5280 fi
5281 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5282 fi
5283 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5284 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5285 if test `eval echo '${'$as_ac_var'}'` = yes; then
5286   cat >>confdefs.h <<_ACEOF
5287 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5288 _ACEOF
5289
5290 else
5291
5292 echo "$as_me:$LINENO: checking for iswalnum in -lw" >&5
5293 echo $ECHO_N "checking for iswalnum in -lw... $ECHO_C" >&6
5294 if test "${ac_cv_lib_w_iswalnum+set}" = set; then
5295   echo $ECHO_N "(cached) $ECHO_C" >&6
5296 else
5297   ac_check_lib_save_LIBS=$LIBS
5298 LIBS="-lw  $LIBS"
5299 cat >conftest.$ac_ext <<_ACEOF
5300 #line $LINENO "configure"
5301 /* confdefs.h.  */
5302 _ACEOF
5303 cat confdefs.h >>conftest.$ac_ext
5304 cat >>conftest.$ac_ext <<_ACEOF
5305 /* end confdefs.h.  */
5306
5307 /* Override any gcc2 internal prototype to avoid an error.  */
5308 #ifdef __cplusplus
5309 extern "C"
5310 #endif
5311 /* We use char because int might match the return type of a gcc2
5312    builtin and then its argument prototype would still apply.  */
5313 char iswalnum ();
5314 int
5315 main ()
5316 {
5317 iswalnum ();
5318   ;
5319   return 0;
5320 }
5321 _ACEOF
5322 rm -f conftest.$ac_objext conftest$ac_exeext
5323 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5324   (eval $ac_link) 2>&5
5325   ac_status=$?
5326   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5327   (exit $ac_status); } &&
5328          { ac_try='test -s conftest$ac_exeext'
5329   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5330   (eval $ac_try) 2>&5
5331   ac_status=$?
5332   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5333   (exit $ac_status); }; }; then
5334   ac_cv_lib_w_iswalnum=yes
5335 else
5336   echo "$as_me: failed program was:" >&5
5337 sed 's/^/| /' conftest.$ac_ext >&5
5338
5339 ac_cv_lib_w_iswalnum=no
5340 fi
5341 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5342 LIBS=$ac_check_lib_save_LIBS
5343 fi
5344 echo "$as_me:$LINENO: result: $ac_cv_lib_w_iswalnum" >&5
5345 echo "${ECHO_T}$ac_cv_lib_w_iswalnum" >&6
5346 if test $ac_cv_lib_w_iswalnum = yes; then
5347   cat >>confdefs.h <<_ACEOF
5348 #define HAVE_LIBW 1
5349 _ACEOF
5350
5351   LIBS="-lw $LIBS"
5352
5353 fi
5354
5355 fi
5356 done
5357
5358
5359 for ac_func in gethostbyname
5360 do
5361 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5362 echo "$as_me:$LINENO: checking for $ac_func" >&5
5363 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5364 if eval "test \"\${$as_ac_var+set}\" = set"; then
5365   echo $ECHO_N "(cached) $ECHO_C" >&6
5366 else
5367   cat >conftest.$ac_ext <<_ACEOF
5368 #line $LINENO "configure"
5369 /* confdefs.h.  */
5370 _ACEOF
5371 cat confdefs.h >>conftest.$ac_ext
5372 cat >>conftest.$ac_ext <<_ACEOF
5373 /* end confdefs.h.  */
5374 /* System header to define __stub macros and hopefully few prototypes,
5375     which can conflict with char $ac_func (); below.
5376     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5377     <limits.h> exists even on freestanding compilers.  */
5378 #ifdef __STDC__
5379 # include <limits.h>
5380 #else
5381 # include <assert.h>
5382 #endif
5383 /* Override any gcc2 internal prototype to avoid an error.  */
5384 #ifdef __cplusplus
5385 extern "C"
5386 {
5387 #endif
5388 /* We use char because int might match the return type of a gcc2
5389    builtin and then its argument prototype would still apply.  */
5390 char $ac_func ();
5391 /* The GNU C library defines this for functions which it implements
5392     to always fail with ENOSYS.  Some functions are actually named
5393     something starting with __ and the normal name is an alias.  */
5394 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5395 choke me
5396 #else
5397 char (*f) () = $ac_func;
5398 #endif
5399 #ifdef __cplusplus
5400 }
5401 #endif
5402
5403 int
5404 main ()
5405 {
5406 return f != $ac_func;
5407   ;
5408   return 0;
5409 }
5410 _ACEOF
5411 rm -f conftest.$ac_objext conftest$ac_exeext
5412 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5413   (eval $ac_link) 2>&5
5414   ac_status=$?
5415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5416   (exit $ac_status); } &&
5417          { ac_try='test -s conftest$ac_exeext'
5418   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5419   (eval $ac_try) 2>&5
5420   ac_status=$?
5421   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5422   (exit $ac_status); }; }; then
5423   eval "$as_ac_var=yes"
5424 else
5425   echo "$as_me: failed program was:" >&5
5426 sed 's/^/| /' conftest.$ac_ext >&5
5427
5428 eval "$as_ac_var=no"
5429 fi
5430 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5431 fi
5432 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5433 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5434 if test `eval echo '${'$as_ac_var'}'` = yes; then
5435   cat >>confdefs.h <<_ACEOF
5436 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5437 _ACEOF
5438
5439 else
5440
5441 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
5442 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
5443 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
5444   echo $ECHO_N "(cached) $ECHO_C" >&6
5445 else
5446   ac_check_lib_save_LIBS=$LIBS
5447 LIBS="-lnsl  $LIBS"
5448 cat >conftest.$ac_ext <<_ACEOF
5449 #line $LINENO "configure"
5450 /* confdefs.h.  */
5451 _ACEOF
5452 cat confdefs.h >>conftest.$ac_ext
5453 cat >>conftest.$ac_ext <<_ACEOF
5454 /* end confdefs.h.  */
5455
5456 /* Override any gcc2 internal prototype to avoid an error.  */
5457 #ifdef __cplusplus
5458 extern "C"
5459 #endif
5460 /* We use char because int might match the return type of a gcc2
5461    builtin and then its argument prototype would still apply.  */
5462 char gethostbyname ();
5463 int
5464 main ()
5465 {
5466 gethostbyname ();
5467   ;
5468   return 0;
5469 }
5470 _ACEOF
5471 rm -f conftest.$ac_objext conftest$ac_exeext
5472 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5473   (eval $ac_link) 2>&5
5474   ac_status=$?
5475   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5476   (exit $ac_status); } &&
5477          { ac_try='test -s conftest$ac_exeext'
5478   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5479   (eval $ac_try) 2>&5
5480   ac_status=$?
5481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5482   (exit $ac_status); }; }; then
5483   ac_cv_lib_nsl_gethostbyname=yes
5484 else
5485   echo "$as_me: failed program was:" >&5
5486 sed 's/^/| /' conftest.$ac_ext >&5
5487
5488 ac_cv_lib_nsl_gethostbyname=no
5489 fi
5490 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5491 LIBS=$ac_check_lib_save_LIBS
5492 fi
5493 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
5494 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
5495 if test $ac_cv_lib_nsl_gethostbyname = yes; then
5496   cat >>confdefs.h <<_ACEOF
5497 #define HAVE_LIBNSL 1
5498 _ACEOF
5499
5500   LIBS="-lnsl $LIBS"
5501
5502 fi
5503
5504 fi
5505 done
5506
5507
5508 for ac_func in connect
5509 do
5510 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5511 echo "$as_me:$LINENO: checking for $ac_func" >&5
5512 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5513 if eval "test \"\${$as_ac_var+set}\" = set"; then
5514   echo $ECHO_N "(cached) $ECHO_C" >&6
5515 else
5516   cat >conftest.$ac_ext <<_ACEOF
5517 #line $LINENO "configure"
5518 /* confdefs.h.  */
5519 _ACEOF
5520 cat confdefs.h >>conftest.$ac_ext
5521 cat >>conftest.$ac_ext <<_ACEOF
5522 /* end confdefs.h.  */
5523 /* System header to define __stub macros and hopefully few prototypes,
5524     which can conflict with char $ac_func (); below.
5525     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5526     <limits.h> exists even on freestanding compilers.  */
5527 #ifdef __STDC__
5528 # include <limits.h>
5529 #else
5530 # include <assert.h>
5531 #endif
5532 /* Override any gcc2 internal prototype to avoid an error.  */
5533 #ifdef __cplusplus
5534 extern "C"
5535 {
5536 #endif
5537 /* We use char because int might match the return type of a gcc2
5538    builtin and then its argument prototype would still apply.  */
5539 char $ac_func ();
5540 /* The GNU C library defines this for functions which it implements
5541     to always fail with ENOSYS.  Some functions are actually named
5542     something starting with __ and the normal name is an alias.  */
5543 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5544 choke me
5545 #else
5546 char (*f) () = $ac_func;
5547 #endif
5548 #ifdef __cplusplus
5549 }
5550 #endif
5551
5552 int
5553 main ()
5554 {
5555 return f != $ac_func;
5556   ;
5557   return 0;
5558 }
5559 _ACEOF
5560 rm -f conftest.$ac_objext conftest$ac_exeext
5561 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5562   (eval $ac_link) 2>&5
5563   ac_status=$?
5564   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5565   (exit $ac_status); } &&
5566          { ac_try='test -s conftest$ac_exeext'
5567   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5568   (eval $ac_try) 2>&5
5569   ac_status=$?
5570   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5571   (exit $ac_status); }; }; then
5572   eval "$as_ac_var=yes"
5573 else
5574   echo "$as_me: failed program was:" >&5
5575 sed 's/^/| /' conftest.$ac_ext >&5
5576
5577 eval "$as_ac_var=no"
5578 fi
5579 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5580 fi
5581 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5582 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5583 if test `eval echo '${'$as_ac_var'}'` = yes; then
5584   cat >>confdefs.h <<_ACEOF
5585 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5586 _ACEOF
5587
5588 else
5589
5590 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
5591 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
5592 if test "${ac_cv_lib_socket_connect+set}" = set; then
5593   echo $ECHO_N "(cached) $ECHO_C" >&6
5594 else
5595   ac_check_lib_save_LIBS=$LIBS
5596 LIBS="-lsocket  $LIBS"
5597 cat >conftest.$ac_ext <<_ACEOF
5598 #line $LINENO "configure"
5599 /* confdefs.h.  */
5600 _ACEOF
5601 cat confdefs.h >>conftest.$ac_ext
5602 cat >>conftest.$ac_ext <<_ACEOF
5603 /* end confdefs.h.  */
5604
5605 /* Override any gcc2 internal prototype to avoid an error.  */
5606 #ifdef __cplusplus
5607 extern "C"
5608 #endif
5609 /* We use char because int might match the return type of a gcc2
5610    builtin and then its argument prototype would still apply.  */
5611 char connect ();
5612 int
5613 main ()
5614 {
5615 connect ();
5616   ;
5617   return 0;
5618 }
5619 _ACEOF
5620 rm -f conftest.$ac_objext conftest$ac_exeext
5621 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5622   (eval $ac_link) 2>&5
5623   ac_status=$?
5624   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5625   (exit $ac_status); } &&
5626          { ac_try='test -s conftest$ac_exeext'
5627   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5628   (eval $ac_try) 2>&5
5629   ac_status=$?
5630   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5631   (exit $ac_status); }; }; then
5632   ac_cv_lib_socket_connect=yes
5633 else
5634   echo "$as_me: failed program was:" >&5
5635 sed 's/^/| /' conftest.$ac_ext >&5
5636
5637 ac_cv_lib_socket_connect=no
5638 fi
5639 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5640 LIBS=$ac_check_lib_save_LIBS
5641 fi
5642 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
5643 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
5644 if test $ac_cv_lib_socket_connect = yes; then
5645   cat >>confdefs.h <<_ACEOF
5646 #define HAVE_LIBSOCKET 1
5647 _ACEOF
5648
5649   LIBS="-lsocket $LIBS"
5650
5651 fi
5652
5653 fi
5654 done
5655
5656
5657 for ac_func in inet_aton
5658 do
5659 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5660 echo "$as_me:$LINENO: checking for $ac_func" >&5
5661 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5662 if eval "test \"\${$as_ac_var+set}\" = set"; then
5663   echo $ECHO_N "(cached) $ECHO_C" >&6
5664 else
5665   cat >conftest.$ac_ext <<_ACEOF
5666 #line $LINENO "configure"
5667 /* confdefs.h.  */
5668 _ACEOF
5669 cat confdefs.h >>conftest.$ac_ext
5670 cat >>conftest.$ac_ext <<_ACEOF
5671 /* end confdefs.h.  */
5672 /* System header to define __stub macros and hopefully few prototypes,
5673     which can conflict with char $ac_func (); below.
5674     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5675     <limits.h> exists even on freestanding compilers.  */
5676 #ifdef __STDC__
5677 # include <limits.h>
5678 #else
5679 # include <assert.h>
5680 #endif
5681 /* Override any gcc2 internal prototype to avoid an error.  */
5682 #ifdef __cplusplus
5683 extern "C"
5684 {
5685 #endif
5686 /* We use char because int might match the return type of a gcc2
5687    builtin and then its argument prototype would still apply.  */
5688 char $ac_func ();
5689 /* The GNU C library defines this for functions which it implements
5690     to always fail with ENOSYS.  Some functions are actually named
5691     something starting with __ and the normal name is an alias.  */
5692 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5693 choke me
5694 #else
5695 char (*f) () = $ac_func;
5696 #endif
5697 #ifdef __cplusplus
5698 }
5699 #endif
5700
5701 int
5702 main ()
5703 {
5704 return f != $ac_func;
5705   ;
5706   return 0;
5707 }
5708 _ACEOF
5709 rm -f conftest.$ac_objext conftest$ac_exeext
5710 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5711   (eval $ac_link) 2>&5
5712   ac_status=$?
5713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5714   (exit $ac_status); } &&
5715          { ac_try='test -s conftest$ac_exeext'
5716   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5717   (eval $ac_try) 2>&5
5718   ac_status=$?
5719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5720   (exit $ac_status); }; }; then
5721   eval "$as_ac_var=yes"
5722 else
5723   echo "$as_me: failed program was:" >&5
5724 sed 's/^/| /' conftest.$ac_ext >&5
5725
5726 eval "$as_ac_var=no"
5727 fi
5728 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5729 fi
5730 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5731 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5732 if test `eval echo '${'$as_ac_var'}'` = yes; then
5733   cat >>confdefs.h <<_ACEOF
5734 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5735 _ACEOF
5736
5737 else
5738
5739 echo "$as_me:$LINENO: checking for inet_aton in -lresolv" >&5
5740 echo $ECHO_N "checking for inet_aton in -lresolv... $ECHO_C" >&6
5741 if test "${ac_cv_lib_resolv_inet_aton+set}" = set; then
5742   echo $ECHO_N "(cached) $ECHO_C" >&6
5743 else
5744   ac_check_lib_save_LIBS=$LIBS
5745 LIBS="-lresolv  $LIBS"
5746 cat >conftest.$ac_ext <<_ACEOF
5747 #line $LINENO "configure"
5748 /* confdefs.h.  */
5749 _ACEOF
5750 cat confdefs.h >>conftest.$ac_ext
5751 cat >>conftest.$ac_ext <<_ACEOF
5752 /* end confdefs.h.  */
5753
5754 /* Override any gcc2 internal prototype to avoid an error.  */
5755 #ifdef __cplusplus
5756 extern "C"
5757 #endif
5758 /* We use char because int might match the return type of a gcc2
5759    builtin and then its argument prototype would still apply.  */
5760 char inet_aton ();
5761 int
5762 main ()
5763 {
5764 inet_aton ();
5765   ;
5766   return 0;
5767 }
5768 _ACEOF
5769 rm -f conftest.$ac_objext conftest$ac_exeext
5770 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5771   (eval $ac_link) 2>&5
5772   ac_status=$?
5773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5774   (exit $ac_status); } &&
5775          { ac_try='test -s conftest$ac_exeext'
5776   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5777   (eval $ac_try) 2>&5
5778   ac_status=$?
5779   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5780   (exit $ac_status); }; }; then
5781   ac_cv_lib_resolv_inet_aton=yes
5782 else
5783   echo "$as_me: failed program was:" >&5
5784 sed 's/^/| /' conftest.$ac_ext >&5
5785
5786 ac_cv_lib_resolv_inet_aton=no
5787 fi
5788 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5789 LIBS=$ac_check_lib_save_LIBS
5790 fi
5791 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_aton" >&5
5792 echo "${ECHO_T}$ac_cv_lib_resolv_inet_aton" >&6
5793 if test $ac_cv_lib_resolv_inet_aton = yes; then
5794   cat >>confdefs.h <<_ACEOF
5795 #define HAVE_LIBRESOLV 1
5796 _ACEOF
5797
5798   LIBS="-lresolv $LIBS"
5799
5800 fi
5801
5802 fi
5803 done
5804
5805
5806 echo "$as_me:$LINENO: checking for _xpg4_setrunelocale in -lxpg4" >&5
5807 echo $ECHO_N "checking for _xpg4_setrunelocale in -lxpg4... $ECHO_C" >&6
5808 if test "${ac_cv_lib_xpg4__xpg4_setrunelocale+set}" = set; then
5809   echo $ECHO_N "(cached) $ECHO_C" >&6
5810 else
5811   ac_check_lib_save_LIBS=$LIBS
5812 LIBS="-lxpg4  $LIBS"
5813 cat >conftest.$ac_ext <<_ACEOF
5814 #line $LINENO "configure"
5815 /* confdefs.h.  */
5816 _ACEOF
5817 cat confdefs.h >>conftest.$ac_ext
5818 cat >>conftest.$ac_ext <<_ACEOF
5819 /* end confdefs.h.  */
5820
5821 /* Override any gcc2 internal prototype to avoid an error.  */
5822 #ifdef __cplusplus
5823 extern "C"
5824 #endif
5825 /* We use char because int might match the return type of a gcc2
5826    builtin and then its argument prototype would still apply.  */
5827 char _xpg4_setrunelocale ();
5828 int
5829 main ()
5830 {
5831 _xpg4_setrunelocale ();
5832   ;
5833   return 0;
5834 }
5835 _ACEOF
5836 rm -f conftest.$ac_objext conftest$ac_exeext
5837 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5838   (eval $ac_link) 2>&5
5839   ac_status=$?
5840   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5841   (exit $ac_status); } &&
5842          { ac_try='test -s conftest$ac_exeext'
5843   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5844   (eval $ac_try) 2>&5
5845   ac_status=$?
5846   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5847   (exit $ac_status); }; }; then
5848   ac_cv_lib_xpg4__xpg4_setrunelocale=yes
5849 else
5850   echo "$as_me: failed program was:" >&5
5851 sed 's/^/| /' conftest.$ac_ext >&5
5852
5853 ac_cv_lib_xpg4__xpg4_setrunelocale=no
5854 fi
5855 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5856 LIBS=$ac_check_lib_save_LIBS
5857 fi
5858 echo "$as_me:$LINENO: result: $ac_cv_lib_xpg4__xpg4_setrunelocale" >&5
5859 echo "${ECHO_T}$ac_cv_lib_xpg4__xpg4_setrunelocale" >&6
5860 if test $ac_cv_lib_xpg4__xpg4_setrunelocale = yes; then
5861   cat >>confdefs.h <<_ACEOF
5862 #define HAVE_LIBXPG4 1
5863 _ACEOF
5864
5865   LIBS="-lxpg4 $LIBS"
5866
5867 fi
5868
5869
5870 echo "$as_me:$LINENO: checking for mmap in -lmmap" >&5
5871 echo $ECHO_N "checking for mmap in -lmmap... $ECHO_C" >&6
5872 if test "${ac_cv_lib_mmap_mmap+set}" = set; then
5873   echo $ECHO_N "(cached) $ECHO_C" >&6
5874 else
5875   ac_check_lib_save_LIBS=$LIBS
5876 LIBS="-lmmap  $LIBS"
5877 cat >conftest.$ac_ext <<_ACEOF
5878 #line $LINENO "configure"
5879 /* confdefs.h.  */
5880 _ACEOF
5881 cat confdefs.h >>conftest.$ac_ext
5882 cat >>conftest.$ac_ext <<_ACEOF
5883 /* end confdefs.h.  */
5884
5885 /* Override any gcc2 internal prototype to avoid an error.  */
5886 #ifdef __cplusplus
5887 extern "C"
5888 #endif
5889 /* We use char because int might match the return type of a gcc2
5890    builtin and then its argument prototype would still apply.  */
5891 char mmap ();
5892 int
5893 main ()
5894 {
5895 mmap ();
5896   ;
5897   return 0;
5898 }
5899 _ACEOF
5900 rm -f conftest.$ac_objext conftest$ac_exeext
5901 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5902   (eval $ac_link) 2>&5
5903   ac_status=$?
5904   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5905   (exit $ac_status); } &&
5906          { ac_try='test -s conftest$ac_exeext'
5907   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5908   (eval $ac_try) 2>&5
5909   ac_status=$?
5910   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5911   (exit $ac_status); }; }; then
5912   ac_cv_lib_mmap_mmap=yes
5913 else
5914   echo "$as_me: failed program was:" >&5
5915 sed 's/^/| /' conftest.$ac_ext >&5
5916
5917 ac_cv_lib_mmap_mmap=no
5918 fi
5919 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5920 LIBS=$ac_check_lib_save_LIBS
5921 fi
5922 echo "$as_me:$LINENO: result: $ac_cv_lib_mmap_mmap" >&5
5923 echo "${ECHO_T}$ac_cv_lib_mmap_mmap" >&6
5924 if test $ac_cv_lib_mmap_mmap = yes; then
5925   cat >>confdefs.h <<_ACEOF
5926 #define HAVE_LIBMMAP 1
5927 _ACEOF
5928
5929   LIBS="-lmmap $LIBS"
5930
5931 fi
5932
5933
5934 JPEGLIB=""
5935
5936 echo "$as_me:$LINENO: checking for egrep" >&5
5937 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
5938 if test "${ac_cv_prog_egrep+set}" = set; then
5939   echo $ECHO_N "(cached) $ECHO_C" >&6
5940 else
5941   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
5942     then ac_cv_prog_egrep='grep -E'
5943     else ac_cv_prog_egrep='egrep'
5944     fi
5945 fi
5946 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
5947 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
5948  EGREP=$ac_cv_prog_egrep
5949
5950
5951 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5952 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5953 if test "${ac_cv_header_stdc+set}" = set; then
5954   echo $ECHO_N "(cached) $ECHO_C" >&6
5955 else
5956   cat >conftest.$ac_ext <<_ACEOF
5957 #line $LINENO "configure"
5958 /* confdefs.h.  */
5959 _ACEOF
5960 cat confdefs.h >>conftest.$ac_ext
5961 cat >>conftest.$ac_ext <<_ACEOF
5962 /* end confdefs.h.  */
5963 #include <stdlib.h>
5964 #include <stdarg.h>
5965 #include <string.h>
5966 #include <float.h>
5967
5968 int
5969 main ()
5970 {
5971
5972   ;
5973   return 0;
5974 }
5975 _ACEOF
5976 rm -f conftest.$ac_objext
5977 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5978   (eval $ac_compile) 2>&5
5979   ac_status=$?
5980   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5981   (exit $ac_status); } &&
5982          { ac_try='test -s conftest.$ac_objext'
5983   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5984   (eval $ac_try) 2>&5
5985   ac_status=$?
5986   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5987   (exit $ac_status); }; }; then
5988   ac_cv_header_stdc=yes
5989 else
5990   echo "$as_me: failed program was:" >&5
5991 sed 's/^/| /' conftest.$ac_ext >&5
5992
5993 ac_cv_header_stdc=no
5994 fi
5995 rm -f conftest.$ac_objext conftest.$ac_ext
5996
5997 if test $ac_cv_header_stdc = yes; then
5998   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5999   cat >conftest.$ac_ext <<_ACEOF
6000 #line $LINENO "configure"
6001 /* confdefs.h.  */
6002 _ACEOF
6003 cat confdefs.h >>conftest.$ac_ext
6004 cat >>conftest.$ac_ext <<_ACEOF
6005 /* end confdefs.h.  */
6006 #include <string.h>
6007
6008 _ACEOF
6009 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6010   $EGREP "memchr" >/dev/null 2>&1; then
6011   :
6012 else
6013   ac_cv_header_stdc=no
6014 fi
6015 rm -f conftest*
6016
6017 fi
6018
6019 if test $ac_cv_header_stdc = yes; then
6020   # ISC 2.0.2 stdlib.h does not declare free, 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 <stdlib.h>
6029
6030 _ACEOF
6031 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6032   $EGREP "free" >/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   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6043   if test "$cross_compiling" = yes; then
6044   :
6045 else
6046   cat >conftest.$ac_ext <<_ACEOF
6047 #line $LINENO "configure"
6048 /* confdefs.h.  */
6049 _ACEOF
6050 cat confdefs.h >>conftest.$ac_ext
6051 cat >>conftest.$ac_ext <<_ACEOF
6052 /* end confdefs.h.  */
6053 #include <ctype.h>
6054 #if ((' ' & 0x0FF) == 0x020)
6055 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6056 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6057 #else
6058 # define ISLOWER(c) \
6059                    (('a' <= (c) && (c) <= 'i') \
6060                      || ('j' <= (c) && (c) <= 'r') \
6061                      || ('s' <= (c) && (c) <= 'z'))
6062 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6063 #endif
6064
6065 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6066 int
6067 main ()
6068 {
6069   int i;
6070   for (i = 0; i < 256; i++)
6071     if (XOR (islower (i), ISLOWER (i))
6072         || toupper (i) != TOUPPER (i))
6073       exit(2);
6074   exit (0);
6075 }
6076 _ACEOF
6077 rm -f conftest$ac_exeext
6078 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6079   (eval $ac_link) 2>&5
6080   ac_status=$?
6081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6082   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6083   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6084   (eval $ac_try) 2>&5
6085   ac_status=$?
6086   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6087   (exit $ac_status); }; }; then
6088   :
6089 else
6090   echo "$as_me: program exited with status $ac_status" >&5
6091 echo "$as_me: failed program was:" >&5
6092 sed 's/^/| /' conftest.$ac_ext >&5
6093
6094 ( exit $ac_status )
6095 ac_cv_header_stdc=no
6096 fi
6097 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6098 fi
6099 fi
6100 fi
6101 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6102 echo "${ECHO_T}$ac_cv_header_stdc" >&6
6103 if test $ac_cv_header_stdc = yes; then
6104
6105 cat >>confdefs.h <<\_ACEOF
6106 #define STDC_HEADERS 1
6107 _ACEOF
6108
6109 fi
6110
6111 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6112
6113
6114
6115
6116
6117
6118
6119
6120
6121 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6122                   inttypes.h stdint.h unistd.h
6123 do
6124 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6125 echo "$as_me:$LINENO: checking for $ac_header" >&5
6126 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6127 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6128   echo $ECHO_N "(cached) $ECHO_C" >&6
6129 else
6130   cat >conftest.$ac_ext <<_ACEOF
6131 #line $LINENO "configure"
6132 /* confdefs.h.  */
6133 _ACEOF
6134 cat confdefs.h >>conftest.$ac_ext
6135 cat >>conftest.$ac_ext <<_ACEOF
6136 /* end confdefs.h.  */
6137 $ac_includes_default
6138
6139 #include <$ac_header>
6140 _ACEOF
6141 rm -f conftest.$ac_objext
6142 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6143   (eval $ac_compile) 2>&5
6144   ac_status=$?
6145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6146   (exit $ac_status); } &&
6147          { ac_try='test -s conftest.$ac_objext'
6148   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6149   (eval $ac_try) 2>&5
6150   ac_status=$?
6151   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6152   (exit $ac_status); }; }; then
6153   eval "$as_ac_Header=yes"
6154 else
6155   echo "$as_me: failed program was:" >&5
6156 sed 's/^/| /' conftest.$ac_ext >&5
6157
6158 eval "$as_ac_Header=no"
6159 fi
6160 rm -f conftest.$ac_objext conftest.$ac_ext
6161 fi
6162 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6163 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6164 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6165   cat >>confdefs.h <<_ACEOF
6166 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6167 _ACEOF
6168
6169 fi
6170
6171 done
6172
6173
6174
6175 for ac_header in jpeglib.h
6176 do
6177 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6178 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6179   echo "$as_me:$LINENO: checking for $ac_header" >&5
6180 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6181 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6182   echo $ECHO_N "(cached) $ECHO_C" >&6
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 else
6187   # Is the header compilable?
6188 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6189 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6190 cat >conftest.$ac_ext <<_ACEOF
6191 #line $LINENO "configure"
6192 /* confdefs.h.  */
6193 _ACEOF
6194 cat confdefs.h >>conftest.$ac_ext
6195 cat >>conftest.$ac_ext <<_ACEOF
6196 /* end confdefs.h.  */
6197 $ac_includes_default
6198 #include <$ac_header>
6199 _ACEOF
6200 rm -f conftest.$ac_objext
6201 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6202   (eval $ac_compile) 2>&5
6203   ac_status=$?
6204   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6205   (exit $ac_status); } &&
6206          { ac_try='test -s conftest.$ac_objext'
6207   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6208   (eval $ac_try) 2>&5
6209   ac_status=$?
6210   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6211   (exit $ac_status); }; }; then
6212   ac_header_compiler=yes
6213 else
6214   echo "$as_me: failed program was:" >&5
6215 sed 's/^/| /' conftest.$ac_ext >&5
6216
6217 ac_header_compiler=no
6218 fi
6219 rm -f conftest.$ac_objext conftest.$ac_ext
6220 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6221 echo "${ECHO_T}$ac_header_compiler" >&6
6222
6223 # Is the header present?
6224 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6225 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6226 cat >conftest.$ac_ext <<_ACEOF
6227 #line $LINENO "configure"
6228 /* confdefs.h.  */
6229 _ACEOF
6230 cat confdefs.h >>conftest.$ac_ext
6231 cat >>conftest.$ac_ext <<_ACEOF
6232 /* end confdefs.h.  */
6233 #include <$ac_header>
6234 _ACEOF
6235 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6236   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6237   ac_status=$?
6238   grep -v '^ *+' conftest.er1 >conftest.err
6239   rm -f conftest.er1
6240   cat conftest.err >&5
6241   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6242   (exit $ac_status); } >/dev/null; then
6243   if test -s conftest.err; then
6244     ac_cpp_err=$ac_c_preproc_warn_flag
6245   else
6246     ac_cpp_err=
6247   fi
6248 else
6249   ac_cpp_err=yes
6250 fi
6251 if test -z "$ac_cpp_err"; then
6252   ac_header_preproc=yes
6253 else
6254   echo "$as_me: failed program was:" >&5
6255 sed 's/^/| /' conftest.$ac_ext >&5
6256
6257   ac_header_preproc=no
6258 fi
6259 rm -f conftest.err conftest.$ac_ext
6260 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6261 echo "${ECHO_T}$ac_header_preproc" >&6
6262
6263 # So?  What about this header?
6264 case $ac_header_compiler:$ac_header_preproc in
6265   yes:no )
6266     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6267 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6268     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6269 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6270     (
6271       cat <<\_ASBOX
6272 ## ------------------------------------ ##
6273 ## Report this to bug-autoconf@gnu.org. ##
6274 ## ------------------------------------ ##
6275 _ASBOX
6276     ) |
6277       sed "s/^/$as_me: WARNING:     /" >&2
6278     ;;
6279   no:yes )
6280     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6281 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6282     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6283 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6284     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6285 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6286     (
6287       cat <<\_ASBOX
6288 ## ------------------------------------ ##
6289 ## Report this to bug-autoconf@gnu.org. ##
6290 ## ------------------------------------ ##
6291 _ASBOX
6292     ) |
6293       sed "s/^/$as_me: WARNING:     /" >&2
6294     ;;
6295 esac
6296 echo "$as_me:$LINENO: checking for $ac_header" >&5
6297 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6298 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6299   echo $ECHO_N "(cached) $ECHO_C" >&6
6300 else
6301   eval "$as_ac_Header=$ac_header_preproc"
6302 fi
6303 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6304 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6305
6306 fi
6307 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6308   cat >>confdefs.h <<_ACEOF
6309 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6310 _ACEOF
6311  echo "$as_me:$LINENO: checking for jpeg_start_decompress in -ljpeg" >&5
6312 echo $ECHO_N "checking for jpeg_start_decompress in -ljpeg... $ECHO_C" >&6
6313 if test "${ac_cv_lib_jpeg_jpeg_start_decompress+set}" = set; then
6314   echo $ECHO_N "(cached) $ECHO_C" >&6
6315 else
6316   ac_check_lib_save_LIBS=$LIBS
6317 LIBS="-ljpeg  $LIBS"
6318 cat >conftest.$ac_ext <<_ACEOF
6319 #line $LINENO "configure"
6320 /* confdefs.h.  */
6321 _ACEOF
6322 cat confdefs.h >>conftest.$ac_ext
6323 cat >>conftest.$ac_ext <<_ACEOF
6324 /* end confdefs.h.  */
6325
6326 /* Override any gcc2 internal prototype to avoid an error.  */
6327 #ifdef __cplusplus
6328 extern "C"
6329 #endif
6330 /* We use char because int might match the return type of a gcc2
6331    builtin and then its argument prototype would still apply.  */
6332 char jpeg_start_decompress ();
6333 int
6334 main ()
6335 {
6336 jpeg_start_decompress ();
6337   ;
6338   return 0;
6339 }
6340 _ACEOF
6341 rm -f conftest.$ac_objext conftest$ac_exeext
6342 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6343   (eval $ac_link) 2>&5
6344   ac_status=$?
6345   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6346   (exit $ac_status); } &&
6347          { ac_try='test -s conftest$ac_exeext'
6348   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6349   (eval $ac_try) 2>&5
6350   ac_status=$?
6351   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6352   (exit $ac_status); }; }; then
6353   ac_cv_lib_jpeg_jpeg_start_decompress=yes
6354 else
6355   echo "$as_me: failed program was:" >&5
6356 sed 's/^/| /' conftest.$ac_ext >&5
6357
6358 ac_cv_lib_jpeg_jpeg_start_decompress=no
6359 fi
6360 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6361 LIBS=$ac_check_lib_save_LIBS
6362 fi
6363 echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_start_decompress" >&5
6364 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_start_decompress" >&6
6365 if test $ac_cv_lib_jpeg_jpeg_start_decompress = yes; then
6366
6367 cat >>confdefs.h <<\_ACEOF
6368 #define HAVE_LIBJPEG 1
6369 _ACEOF
6370
6371         JPEGLIB="-ljpeg"
6372
6373 fi
6374
6375
6376 fi
6377
6378 done
6379
6380
6381
6382
6383
6384 XFILES=""
6385
6386 OPENGLFILES=""
6387
6388 GLU32FILES=""
6389
6390 OPENGL_LIBS=""
6391 if test "$have_x" = "yes"
6392 then
6393     XLIB="-lXext -lX11"
6394     ac_save_CPPFLAGS="$CPPFLAGS"
6395     CPPFLAGS="$CPPFLAGS $X_CFLAGS"
6396
6397
6398 for ac_header in X11/Xlib.h
6399 do
6400 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6401 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6402   echo "$as_me:$LINENO: checking for $ac_header" >&5
6403 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6404 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6405   echo $ECHO_N "(cached) $ECHO_C" >&6
6406 fi
6407 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6408 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6409 else
6410   # Is the header compilable?
6411 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6412 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6413 cat >conftest.$ac_ext <<_ACEOF
6414 #line $LINENO "configure"
6415 /* confdefs.h.  */
6416 _ACEOF
6417 cat confdefs.h >>conftest.$ac_ext
6418 cat >>conftest.$ac_ext <<_ACEOF
6419 /* end confdefs.h.  */
6420 $ac_includes_default
6421 #include <$ac_header>
6422 _ACEOF
6423 rm -f conftest.$ac_objext
6424 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6425   (eval $ac_compile) 2>&5
6426   ac_status=$?
6427   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6428   (exit $ac_status); } &&
6429          { ac_try='test -s conftest.$ac_objext'
6430   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6431   (eval $ac_try) 2>&5
6432   ac_status=$?
6433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6434   (exit $ac_status); }; }; then
6435   ac_header_compiler=yes
6436 else
6437   echo "$as_me: failed program was:" >&5
6438 sed 's/^/| /' conftest.$ac_ext >&5
6439
6440 ac_header_compiler=no
6441 fi
6442 rm -f conftest.$ac_objext conftest.$ac_ext
6443 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6444 echo "${ECHO_T}$ac_header_compiler" >&6
6445
6446 # Is the header present?
6447 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6448 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6449 cat >conftest.$ac_ext <<_ACEOF
6450 #line $LINENO "configure"
6451 /* confdefs.h.  */
6452 _ACEOF
6453 cat confdefs.h >>conftest.$ac_ext
6454 cat >>conftest.$ac_ext <<_ACEOF
6455 /* end confdefs.h.  */
6456 #include <$ac_header>
6457 _ACEOF
6458 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6459   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6460   ac_status=$?
6461   grep -v '^ *+' conftest.er1 >conftest.err
6462   rm -f conftest.er1
6463   cat conftest.err >&5
6464   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6465   (exit $ac_status); } >/dev/null; then
6466   if test -s conftest.err; then
6467     ac_cpp_err=$ac_c_preproc_warn_flag
6468   else
6469     ac_cpp_err=
6470   fi
6471 else
6472   ac_cpp_err=yes
6473 fi
6474 if test -z "$ac_cpp_err"; then
6475   ac_header_preproc=yes
6476 else
6477   echo "$as_me: failed program was:" >&5
6478 sed 's/^/| /' conftest.$ac_ext >&5
6479
6480   ac_header_preproc=no
6481 fi
6482 rm -f conftest.err conftest.$ac_ext
6483 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6484 echo "${ECHO_T}$ac_header_preproc" >&6
6485
6486 # So?  What about this header?
6487 case $ac_header_compiler:$ac_header_preproc in
6488   yes:no )
6489     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6490 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6491     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6492 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6493     (
6494       cat <<\_ASBOX
6495 ## ------------------------------------ ##
6496 ## Report this to bug-autoconf@gnu.org. ##
6497 ## ------------------------------------ ##
6498 _ASBOX
6499     ) |
6500       sed "s/^/$as_me: WARNING:     /" >&2
6501     ;;
6502   no:yes )
6503     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6504 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6505     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6506 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6507     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6508 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6509     (
6510       cat <<\_ASBOX
6511 ## ------------------------------------ ##
6512 ## Report this to bug-autoconf@gnu.org. ##
6513 ## ------------------------------------ ##
6514 _ASBOX
6515     ) |
6516       sed "s/^/$as_me: WARNING:     /" >&2
6517     ;;
6518 esac
6519 echo "$as_me:$LINENO: checking for $ac_header" >&5
6520 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6521 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6522   echo $ECHO_N "(cached) $ECHO_C" >&6
6523 else
6524   eval "$as_ac_Header=$ac_header_preproc"
6525 fi
6526 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6527 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6528
6529 fi
6530 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6531   cat >>confdefs.h <<_ACEOF
6532 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6533 _ACEOF
6534
6535
6536 for ac_header in X11/XKBlib.h
6537 do
6538 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6539 echo "$as_me:$LINENO: checking for $ac_header" >&5
6540 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6541 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6542   echo $ECHO_N "(cached) $ECHO_C" >&6
6543 else
6544   cat >conftest.$ac_ext <<_ACEOF
6545 #line $LINENO "configure"
6546 /* confdefs.h.  */
6547 _ACEOF
6548 cat confdefs.h >>conftest.$ac_ext
6549 cat >>conftest.$ac_ext <<_ACEOF
6550 /* end confdefs.h.  */
6551 #include <X11/Xlib.h>
6552
6553 #include <$ac_header>
6554 _ACEOF
6555 rm -f conftest.$ac_objext
6556 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6557   (eval $ac_compile) 2>&5
6558   ac_status=$?
6559   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6560   (exit $ac_status); } &&
6561          { ac_try='test -s conftest.$ac_objext'
6562   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6563   (eval $ac_try) 2>&5
6564   ac_status=$?
6565   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6566   (exit $ac_status); }; }; then
6567   eval "$as_ac_Header=yes"
6568 else
6569   echo "$as_me: failed program was:" >&5
6570 sed 's/^/| /' conftest.$ac_ext >&5
6571
6572 eval "$as_ac_Header=no"
6573 fi
6574 rm -f conftest.$ac_objext conftest.$ac_ext
6575 fi
6576 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6577 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6578 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6579   cat >>confdefs.h <<_ACEOF
6580 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6581 _ACEOF
6582                 echo "$as_me:$LINENO: checking for XkbQueryExtension in -lX11" >&5
6583 echo $ECHO_N "checking for XkbQueryExtension in -lX11... $ECHO_C" >&6
6584 if test "${ac_cv_lib_X11_XkbQueryExtension+set}" = set; then
6585   echo $ECHO_N "(cached) $ECHO_C" >&6
6586 else
6587   ac_check_lib_save_LIBS=$LIBS
6588 LIBS="-lX11 $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
6589 cat >conftest.$ac_ext <<_ACEOF
6590 #line $LINENO "configure"
6591 /* confdefs.h.  */
6592 _ACEOF
6593 cat confdefs.h >>conftest.$ac_ext
6594 cat >>conftest.$ac_ext <<_ACEOF
6595 /* end confdefs.h.  */
6596
6597 /* Override any gcc2 internal prototype to avoid an error.  */
6598 #ifdef __cplusplus
6599 extern "C"
6600 #endif
6601 /* We use char because int might match the return type of a gcc2
6602    builtin and then its argument prototype would still apply.  */
6603 char XkbQueryExtension ();
6604 int
6605 main ()
6606 {
6607 XkbQueryExtension ();
6608   ;
6609   return 0;
6610 }
6611 _ACEOF
6612 rm -f conftest.$ac_objext conftest$ac_exeext
6613 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6614   (eval $ac_link) 2>&5
6615   ac_status=$?
6616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6617   (exit $ac_status); } &&
6618          { ac_try='test -s conftest$ac_exeext'
6619   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6620   (eval $ac_try) 2>&5
6621   ac_status=$?
6622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6623   (exit $ac_status); }; }; then
6624   ac_cv_lib_X11_XkbQueryExtension=yes
6625 else
6626   echo "$as_me: failed program was:" >&5
6627 sed 's/^/| /' conftest.$ac_ext >&5
6628
6629 ac_cv_lib_X11_XkbQueryExtension=no
6630 fi
6631 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6632 LIBS=$ac_check_lib_save_LIBS
6633 fi
6634 echo "$as_me:$LINENO: result: $ac_cv_lib_X11_XkbQueryExtension" >&5
6635 echo "${ECHO_T}$ac_cv_lib_X11_XkbQueryExtension" >&6
6636 if test $ac_cv_lib_X11_XkbQueryExtension = yes; then
6637
6638 cat >>confdefs.h <<\_ACEOF
6639 #define HAVE_XKB 1
6640 _ACEOF
6641
6642 fi
6643
6644
6645 else
6646   { echo "$as_me:$LINENO: WARNING: Xkb extension not found, Wine will be built without it" >&5
6647 echo "$as_me: WARNING: Xkb extension not found, Wine will be built without it" >&2;}
6648 fi
6649
6650 done
6651
6652
6653
6654 for ac_header in X11/extensions/XShm.h
6655 do
6656 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6657 echo "$as_me:$LINENO: checking for $ac_header" >&5
6658 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6659 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6660   echo $ECHO_N "(cached) $ECHO_C" >&6
6661 else
6662   cat >conftest.$ac_ext <<_ACEOF
6663 #line $LINENO "configure"
6664 /* confdefs.h.  */
6665 _ACEOF
6666 cat confdefs.h >>conftest.$ac_ext
6667 cat >>conftest.$ac_ext <<_ACEOF
6668 /* end confdefs.h.  */
6669 #include <X11/Xlib.h>
6670
6671 #include <$ac_header>
6672 _ACEOF
6673 rm -f conftest.$ac_objext
6674 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6675   (eval $ac_compile) 2>&5
6676   ac_status=$?
6677   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6678   (exit $ac_status); } &&
6679          { ac_try='test -s conftest.$ac_objext'
6680   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6681   (eval $ac_try) 2>&5
6682   ac_status=$?
6683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6684   (exit $ac_status); }; }; then
6685   eval "$as_ac_Header=yes"
6686 else
6687   echo "$as_me: failed program was:" >&5
6688 sed 's/^/| /' conftest.$ac_ext >&5
6689
6690 eval "$as_ac_Header=no"
6691 fi
6692 rm -f conftest.$ac_objext conftest.$ac_ext
6693 fi
6694 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6695 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6696 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6697   cat >>confdefs.h <<_ACEOF
6698 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6699 _ACEOF
6700                 echo "$as_me:$LINENO: checking for XShmQueryExtension in -lXext" >&5
6701 echo $ECHO_N "checking for XShmQueryExtension in -lXext... $ECHO_C" >&6
6702 if test "${ac_cv_lib_Xext_XShmQueryExtension+set}" = set; then
6703   echo $ECHO_N "(cached) $ECHO_C" >&6
6704 else
6705   ac_check_lib_save_LIBS=$LIBS
6706 LIBS="-lXext $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
6707 cat >conftest.$ac_ext <<_ACEOF
6708 #line $LINENO "configure"
6709 /* confdefs.h.  */
6710 _ACEOF
6711 cat confdefs.h >>conftest.$ac_ext
6712 cat >>conftest.$ac_ext <<_ACEOF
6713 /* end confdefs.h.  */
6714
6715 /* Override any gcc2 internal prototype to avoid an error.  */
6716 #ifdef __cplusplus
6717 extern "C"
6718 #endif
6719 /* We use char because int might match the return type of a gcc2
6720    builtin and then its argument prototype would still apply.  */
6721 char XShmQueryExtension ();
6722 int
6723 main ()
6724 {
6725 XShmQueryExtension ();
6726   ;
6727   return 0;
6728 }
6729 _ACEOF
6730 rm -f conftest.$ac_objext conftest$ac_exeext
6731 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6732   (eval $ac_link) 2>&5
6733   ac_status=$?
6734   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6735   (exit $ac_status); } &&
6736          { ac_try='test -s conftest$ac_exeext'
6737   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6738   (eval $ac_try) 2>&5
6739   ac_status=$?
6740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6741   (exit $ac_status); }; }; then
6742   ac_cv_lib_Xext_XShmQueryExtension=yes
6743 else
6744   echo "$as_me: failed program was:" >&5
6745 sed 's/^/| /' conftest.$ac_ext >&5
6746
6747 ac_cv_lib_Xext_XShmQueryExtension=no
6748 fi
6749 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6750 LIBS=$ac_check_lib_save_LIBS
6751 fi
6752 echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShmQueryExtension" >&5
6753 echo "${ECHO_T}$ac_cv_lib_Xext_XShmQueryExtension" >&6
6754 if test $ac_cv_lib_Xext_XShmQueryExtension = yes; then
6755
6756 cat >>confdefs.h <<\_ACEOF
6757 #define HAVE_LIBXXSHM 1
6758 _ACEOF
6759
6760 fi
6761
6762
6763 else
6764   { echo "$as_me:$LINENO: WARNING: XShm extension not found, Wine will be built without it" >&5
6765 echo "$as_me: WARNING: XShm extension not found, Wine will be built without it" >&2;}
6766 fi
6767
6768 done
6769
6770
6771
6772 for ac_header in X11/Xutil.h
6773 do
6774 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6775 echo "$as_me:$LINENO: checking for $ac_header" >&5
6776 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6777 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6778   echo $ECHO_N "(cached) $ECHO_C" >&6
6779 else
6780   cat >conftest.$ac_ext <<_ACEOF
6781 #line $LINENO "configure"
6782 /* confdefs.h.  */
6783 _ACEOF
6784 cat confdefs.h >>conftest.$ac_ext
6785 cat >>conftest.$ac_ext <<_ACEOF
6786 /* end confdefs.h.  */
6787 #include <X11/Xlib.h>
6788
6789 #include <$ac_header>
6790 _ACEOF
6791 rm -f conftest.$ac_objext
6792 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6793   (eval $ac_compile) 2>&5
6794   ac_status=$?
6795   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6796   (exit $ac_status); } &&
6797          { ac_try='test -s conftest.$ac_objext'
6798   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6799   (eval $ac_try) 2>&5
6800   ac_status=$?
6801   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6802   (exit $ac_status); }; }; then
6803   eval "$as_ac_Header=yes"
6804 else
6805   echo "$as_me: failed program was:" >&5
6806 sed 's/^/| /' conftest.$ac_ext >&5
6807
6808 eval "$as_ac_Header=no"
6809 fi
6810 rm -f conftest.$ac_objext conftest.$ac_ext
6811 fi
6812 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6813 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6814 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6815   cat >>confdefs.h <<_ACEOF
6816 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6817 _ACEOF
6818
6819 fi
6820
6821 done
6822
6823
6824
6825 for ac_header in X11/extensions/shape.h
6826 do
6827 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6828 echo "$as_me:$LINENO: checking for $ac_header" >&5
6829 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6830 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6831   echo $ECHO_N "(cached) $ECHO_C" >&6
6832 else
6833   cat >conftest.$ac_ext <<_ACEOF
6834 #line $LINENO "configure"
6835 /* confdefs.h.  */
6836 _ACEOF
6837 cat confdefs.h >>conftest.$ac_ext
6838 cat >>conftest.$ac_ext <<_ACEOF
6839 /* end confdefs.h.  */
6840 #include <X11/Xlib.h>
6841              #ifdef HAVE_X11_XUTIL_H
6842              # include <X11/Xutil.h>
6843              #endif
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 XShapeQueryExtension in -lXext" >&5
6875 echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6
6876 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
6877   echo $ECHO_N "(cached) $ECHO_C" >&6
6878 else
6879   ac_check_lib_save_LIBS=$LIBS
6880 LIBS="-lXext $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 XShapeQueryExtension ();
6896 int
6897 main ()
6898 {
6899 XShapeQueryExtension ();
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_Xext_XShapeQueryExtension=yes
6917 else
6918   echo "$as_me: failed program was:" >&5
6919 sed 's/^/| /' conftest.$ac_ext >&5
6920
6921 ac_cv_lib_Xext_XShapeQueryExtension=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_Xext_XShapeQueryExtension" >&5
6927 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6
6928 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
6929
6930 cat >>confdefs.h <<\_ACEOF
6931 #define HAVE_LIBXSHAPE 1
6932 _ACEOF
6933
6934 fi
6935
6936
6937 else
6938   { echo "$as_me:$LINENO: WARNING: XShape extension not found, Wine will be built without it" >&5
6939 echo "$as_me: WARNING: XShape 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/xf86dga.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 XDGAQueryExtension in -lXxf86dga" >&5
6993 echo $ECHO_N "checking for XDGAQueryExtension in -lXxf86dga... $ECHO_C" >&6
6994 if test "${ac_cv_lib_Xxf86dga_XDGAQueryExtension+set}" = set; then
6995   echo $ECHO_N "(cached) $ECHO_C" >&6
6996 else
6997   ac_check_lib_save_LIBS=$LIBS
6998 LIBS="-lXxf86dga $X_LIBS -lXext -lX11 $X_EXTRA_LIBS
6999                $LIBS"
7000 cat >conftest.$ac_ext <<_ACEOF
7001 #line $LINENO "configure"
7002 /* confdefs.h.  */
7003 _ACEOF
7004 cat confdefs.h >>conftest.$ac_ext
7005 cat >>conftest.$ac_ext <<_ACEOF
7006 /* end confdefs.h.  */
7007
7008 /* Override any gcc2 internal prototype to avoid an error.  */
7009 #ifdef __cplusplus
7010 extern "C"
7011 #endif
7012 /* We use char because int might match the return type of a gcc2
7013    builtin and then its argument prototype would still apply.  */
7014 char XDGAQueryExtension ();
7015 int
7016 main ()
7017 {
7018 XDGAQueryExtension ();
7019   ;
7020   return 0;
7021 }
7022 _ACEOF
7023 rm -f conftest.$ac_objext conftest$ac_exeext
7024 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7025   (eval $ac_link) 2>&5
7026   ac_status=$?
7027   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7028   (exit $ac_status); } &&
7029          { ac_try='test -s conftest$ac_exeext'
7030   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7031   (eval $ac_try) 2>&5
7032   ac_status=$?
7033   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7034   (exit $ac_status); }; }; then
7035   ac_cv_lib_Xxf86dga_XDGAQueryExtension=yes
7036 else
7037   echo "$as_me: failed program was:" >&5
7038 sed 's/^/| /' conftest.$ac_ext >&5
7039
7040 ac_cv_lib_Xxf86dga_XDGAQueryExtension=no
7041 fi
7042 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7043 LIBS=$ac_check_lib_save_LIBS
7044 fi
7045 echo "$as_me:$LINENO: result: $ac_cv_lib_Xxf86dga_XDGAQueryExtension" >&5
7046 echo "${ECHO_T}$ac_cv_lib_Xxf86dga_XDGAQueryExtension" >&6
7047 if test $ac_cv_lib_Xxf86dga_XDGAQueryExtension = yes; then
7048
7049 cat >>confdefs.h <<\_ACEOF
7050 #define HAVE_LIBXXF86DGA2 1
7051 _ACEOF
7052
7053                   X_PRE_LIBS="$X_PRE_LIBS -lXxf86dga"
7054
7055 else
7056                                        echo "$as_me:$LINENO: checking for XF86DGAQueryExtension in -lXxf86dga" >&5
7057 echo $ECHO_N "checking for XF86DGAQueryExtension in -lXxf86dga... $ECHO_C" >&6
7058 if test "${ac_cv_lib_Xxf86dga_XF86DGAQueryExtension+set}" = set; then
7059   echo $ECHO_N "(cached) $ECHO_C" >&6
7060 else
7061   ac_check_lib_save_LIBS=$LIBS
7062 LIBS="-lXxf86dga $X_LIBS -lXext -lX11 $X_EXTRA_LIBS
7063                    $LIBS"
7064 cat >conftest.$ac_ext <<_ACEOF
7065 #line $LINENO "configure"
7066 /* confdefs.h.  */
7067 _ACEOF
7068 cat confdefs.h >>conftest.$ac_ext
7069 cat >>conftest.$ac_ext <<_ACEOF
7070 /* end confdefs.h.  */
7071
7072 /* Override any gcc2 internal prototype to avoid an error.  */
7073 #ifdef __cplusplus
7074 extern "C"
7075 #endif
7076 /* We use char because int might match the return type of a gcc2
7077    builtin and then its argument prototype would still apply.  */
7078 char XF86DGAQueryExtension ();
7079 int
7080 main ()
7081 {
7082 XF86DGAQueryExtension ();
7083   ;
7084   return 0;
7085 }
7086 _ACEOF
7087 rm -f conftest.$ac_objext conftest$ac_exeext
7088 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7089   (eval $ac_link) 2>&5
7090   ac_status=$?
7091   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7092   (exit $ac_status); } &&
7093          { ac_try='test -s conftest$ac_exeext'
7094   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7095   (eval $ac_try) 2>&5
7096   ac_status=$?
7097   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7098   (exit $ac_status); }; }; then
7099   ac_cv_lib_Xxf86dga_XF86DGAQueryExtension=yes
7100 else
7101   echo "$as_me: failed program was:" >&5
7102 sed 's/^/| /' conftest.$ac_ext >&5
7103
7104 ac_cv_lib_Xxf86dga_XF86DGAQueryExtension=no
7105 fi
7106 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7107 LIBS=$ac_check_lib_save_LIBS
7108 fi
7109 echo "$as_me:$LINENO: result: $ac_cv_lib_Xxf86dga_XF86DGAQueryExtension" >&5
7110 echo "${ECHO_T}$ac_cv_lib_Xxf86dga_XF86DGAQueryExtension" >&6
7111 if test $ac_cv_lib_Xxf86dga_XF86DGAQueryExtension = yes; then
7112
7113 cat >>confdefs.h <<\_ACEOF
7114 #define HAVE_LIBXXF86DGA 1
7115 _ACEOF
7116
7117                       X_PRE_LIBS="$X_PRE_LIBS -lXxf86dga"
7118
7119 fi
7120
7121
7122 fi
7123
7124
7125 else
7126   { echo "$as_me:$LINENO: WARNING: DGA extension not found, Wine will be built without it" >&5
7127 echo "$as_me: WARNING: DGA extension not found, Wine will be built without it" >&2;}
7128 fi
7129
7130 done
7131
7132
7133
7134 for ac_header in X11/extensions/xf86vmode.h
7135 do
7136 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7137 echo "$as_me:$LINENO: checking for $ac_header" >&5
7138 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7139 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7140   echo $ECHO_N "(cached) $ECHO_C" >&6
7141 else
7142   cat >conftest.$ac_ext <<_ACEOF
7143 #line $LINENO "configure"
7144 /* confdefs.h.  */
7145 _ACEOF
7146 cat confdefs.h >>conftest.$ac_ext
7147 cat >>conftest.$ac_ext <<_ACEOF
7148 /* end confdefs.h.  */
7149 #include <X11/Xlib.h>
7150
7151 #include <$ac_header>
7152 _ACEOF
7153 rm -f conftest.$ac_objext
7154 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7155   (eval $ac_compile) 2>&5
7156   ac_status=$?
7157   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7158   (exit $ac_status); } &&
7159          { ac_try='test -s conftest.$ac_objext'
7160   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7161   (eval $ac_try) 2>&5
7162   ac_status=$?
7163   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7164   (exit $ac_status); }; }; then
7165   eval "$as_ac_Header=yes"
7166 else
7167   echo "$as_me: failed program was:" >&5
7168 sed 's/^/| /' conftest.$ac_ext >&5
7169
7170 eval "$as_ac_Header=no"
7171 fi
7172 rm -f conftest.$ac_objext conftest.$ac_ext
7173 fi
7174 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7175 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7176 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7177   cat >>confdefs.h <<_ACEOF
7178 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7179 _ACEOF
7180                   echo "$as_me:$LINENO: checking for XF86VidModeQueryExtension in -lXxf86vm" >&5
7181 echo $ECHO_N "checking for XF86VidModeQueryExtension in -lXxf86vm... $ECHO_C" >&6
7182 if test "${ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension+set}" = set; then
7183   echo $ECHO_N "(cached) $ECHO_C" >&6
7184 else
7185   ac_check_lib_save_LIBS=$LIBS
7186 LIBS="-lXxf86vm $X_LIBS -lXext -lX11 $X_EXTRA_LIBS
7187                  $LIBS"
7188 cat >conftest.$ac_ext <<_ACEOF
7189 #line $LINENO "configure"
7190 /* confdefs.h.  */
7191 _ACEOF
7192 cat confdefs.h >>conftest.$ac_ext
7193 cat >>conftest.$ac_ext <<_ACEOF
7194 /* end confdefs.h.  */
7195
7196 /* Override any gcc2 internal prototype to avoid an error.  */
7197 #ifdef __cplusplus
7198 extern "C"
7199 #endif
7200 /* We use char because int might match the return type of a gcc2
7201    builtin and then its argument prototype would still apply.  */
7202 char XF86VidModeQueryExtension ();
7203 int
7204 main ()
7205 {
7206 XF86VidModeQueryExtension ();
7207   ;
7208   return 0;
7209 }
7210 _ACEOF
7211 rm -f conftest.$ac_objext conftest$ac_exeext
7212 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7213   (eval $ac_link) 2>&5
7214   ac_status=$?
7215   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7216   (exit $ac_status); } &&
7217          { ac_try='test -s conftest$ac_exeext'
7218   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7219   (eval $ac_try) 2>&5
7220   ac_status=$?
7221   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7222   (exit $ac_status); }; }; then
7223   ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=yes
7224 else
7225   echo "$as_me: failed program was:" >&5
7226 sed 's/^/| /' conftest.$ac_ext >&5
7227
7228 ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=no
7229 fi
7230 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7231 LIBS=$ac_check_lib_save_LIBS
7232 fi
7233 echo "$as_me:$LINENO: result: $ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&5
7234 echo "${ECHO_T}$ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&6
7235 if test $ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension = yes; then
7236
7237 cat >>confdefs.h <<\_ACEOF
7238 #define HAVE_LIBXXF86VM 1
7239 _ACEOF
7240
7241                      X_PRE_LIBS="$X_PRE_LIBS -lXxf86vm"
7242
7243 fi
7244
7245
7246 else
7247   { echo "$as_me:$LINENO: WARNING: XFree86 VMODE extension not found, Wine will be built without it" >&5
7248 echo "$as_me: WARNING: XFree86 VMODE extension not found, Wine will be built without it" >&2;}
7249 fi
7250
7251 done
7252
7253
7254
7255 for ac_header in X11/extensions/Xvlib.h
7256 do
7257 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7258 echo "$as_me:$LINENO: checking for $ac_header" >&5
7259 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7260 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7261   echo $ECHO_N "(cached) $ECHO_C" >&6
7262 else
7263   cat >conftest.$ac_ext <<_ACEOF
7264 #line $LINENO "configure"
7265 /* confdefs.h.  */
7266 _ACEOF
7267 cat confdefs.h >>conftest.$ac_ext
7268 cat >>conftest.$ac_ext <<_ACEOF
7269 /* end confdefs.h.  */
7270 #include <X11/Xlib.h>
7271
7272 #include <$ac_header>
7273 _ACEOF
7274 rm -f conftest.$ac_objext
7275 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7276   (eval $ac_compile) 2>&5
7277   ac_status=$?
7278   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7279   (exit $ac_status); } &&
7280          { ac_try='test -s conftest.$ac_objext'
7281   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7282   (eval $ac_try) 2>&5
7283   ac_status=$?
7284   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7285   (exit $ac_status); }; }; then
7286   eval "$as_ac_Header=yes"
7287 else
7288   echo "$as_me: failed program was:" >&5
7289 sed 's/^/| /' conftest.$ac_ext >&5
7290
7291 eval "$as_ac_Header=no"
7292 fi
7293 rm -f conftest.$ac_objext conftest.$ac_ext
7294 fi
7295 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7296 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7297 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7298   cat >>confdefs.h <<_ACEOF
7299 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7300 _ACEOF
7301                   echo "$as_me:$LINENO: checking for XvShmCreateImage in -lXv" >&5
7302 echo $ECHO_N "checking for XvShmCreateImage in -lXv... $ECHO_C" >&6
7303 if test "${ac_cv_lib_Xv_XvShmCreateImage+set}" = set; then
7304   echo $ECHO_N "(cached) $ECHO_C" >&6
7305 else
7306   ac_check_lib_save_LIBS=$LIBS
7307 LIBS="-lXv $X_LIBS -lXext -lX11 $X_EXTRA_LIBS
7308                  $LIBS"
7309 cat >conftest.$ac_ext <<_ACEOF
7310 #line $LINENO "configure"
7311 /* confdefs.h.  */
7312 _ACEOF
7313 cat confdefs.h >>conftest.$ac_ext
7314 cat >>conftest.$ac_ext <<_ACEOF
7315 /* end confdefs.h.  */
7316
7317 /* Override any gcc2 internal prototype to avoid an error.  */
7318 #ifdef __cplusplus
7319 extern "C"
7320 #endif
7321 /* We use char because int might match the return type of a gcc2
7322    builtin and then its argument prototype would still apply.  */
7323 char XvShmCreateImage ();
7324 int
7325 main ()
7326 {
7327 XvShmCreateImage ();
7328   ;
7329   return 0;
7330 }
7331 _ACEOF
7332 rm -f conftest.$ac_objext conftest$ac_exeext
7333 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7334   (eval $ac_link) 2>&5
7335   ac_status=$?
7336   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7337   (exit $ac_status); } &&
7338          { ac_try='test -s conftest$ac_exeext'
7339   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7340   (eval $ac_try) 2>&5
7341   ac_status=$?
7342   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7343   (exit $ac_status); }; }; then
7344   ac_cv_lib_Xv_XvShmCreateImage=yes
7345 else
7346   echo "$as_me: failed program was:" >&5
7347 sed 's/^/| /' conftest.$ac_ext >&5
7348
7349 ac_cv_lib_Xv_XvShmCreateImage=no
7350 fi
7351 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7352 LIBS=$ac_check_lib_save_LIBS
7353 fi
7354 echo "$as_me:$LINENO: result: $ac_cv_lib_Xv_XvShmCreateImage" >&5
7355 echo "${ECHO_T}$ac_cv_lib_Xv_XvShmCreateImage" >&6
7356 if test $ac_cv_lib_Xv_XvShmCreateImage = yes; then
7357
7358 cat >>confdefs.h <<\_ACEOF
7359 #define HAVE_XVIDEO 1
7360 _ACEOF
7361
7362                      X_PRE_LIBS="$X_PRE_LIBS -lXv"
7363
7364 fi
7365
7366
7367 else
7368   { echo "$as_me:$LINENO: WARNING: XVideo extension not found, Wine will be built without it" >&5
7369 echo "$as_me: WARNING: XVideo extension not found, Wine will be built without it" >&2;}
7370 fi
7371
7372 done
7373
7374
7375
7376 for ac_header in X11/extensions/Xrender.h
7377 do
7378 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7379 echo "$as_me:$LINENO: checking for $ac_header" >&5
7380 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7381 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7382   echo $ECHO_N "(cached) $ECHO_C" >&6
7383 else
7384   cat >conftest.$ac_ext <<_ACEOF
7385 #line $LINENO "configure"
7386 /* confdefs.h.  */
7387 _ACEOF
7388 cat confdefs.h >>conftest.$ac_ext
7389 cat >>conftest.$ac_ext <<_ACEOF
7390 /* end confdefs.h.  */
7391 #include <X11/Xlib.h>
7392
7393 #include <$ac_header>
7394 _ACEOF
7395 rm -f conftest.$ac_objext
7396 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7397   (eval $ac_compile) 2>&5
7398   ac_status=$?
7399   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7400   (exit $ac_status); } &&
7401          { ac_try='test -s conftest.$ac_objext'
7402   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7403   (eval $ac_try) 2>&5
7404   ac_status=$?
7405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7406   (exit $ac_status); }; }; then
7407   eval "$as_ac_Header=yes"
7408 else
7409   echo "$as_me: failed program was:" >&5
7410 sed 's/^/| /' conftest.$ac_ext >&5
7411
7412 eval "$as_ac_Header=no"
7413 fi
7414 rm -f conftest.$ac_objext conftest.$ac_ext
7415 fi
7416 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7417 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7418 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7419   cat >>confdefs.h <<_ACEOF
7420 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7421 _ACEOF
7422
7423 fi
7424
7425 done
7426
7427
7428
7429 fi
7430
7431 done
7432
7433         if test "x$with_opengl" != "xno"
7434     then
7435         if test -f /usr/X11R6/lib/libGL.a -a ! -f /usr/X11R6/lib/libGL.so
7436         then
7437             { { echo "$as_me:$LINENO: error: /usr/X11R6/lib/libGL.a is present on your system.
7438 This prevents linking to OpenGL. Delete the file and restart configure." >&5
7439 echo "$as_me: error: /usr/X11R6/lib/libGL.a is present on your system.
7440 This prevents linking to OpenGL. Delete the file and restart configure." >&2;}
7441    { (exit 1); exit 1; }; }
7442         fi
7443
7444
7445
7446 for ac_header in GL/gl.h GL/glx.h
7447 do
7448 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7449 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7450   echo "$as_me:$LINENO: checking for $ac_header" >&5
7451 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7452 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7453   echo $ECHO_N "(cached) $ECHO_C" >&6
7454 fi
7455 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7456 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7457 else
7458   # Is the header compilable?
7459 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7460 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7461 cat >conftest.$ac_ext <<_ACEOF
7462 #line $LINENO "configure"
7463 /* confdefs.h.  */
7464 _ACEOF
7465 cat confdefs.h >>conftest.$ac_ext
7466 cat >>conftest.$ac_ext <<_ACEOF
7467 /* end confdefs.h.  */
7468 $ac_includes_default
7469 #include <$ac_header>
7470 _ACEOF
7471 rm -f conftest.$ac_objext
7472 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7473   (eval $ac_compile) 2>&5
7474   ac_status=$?
7475   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7476   (exit $ac_status); } &&
7477          { ac_try='test -s conftest.$ac_objext'
7478   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7479   (eval $ac_try) 2>&5
7480   ac_status=$?
7481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7482   (exit $ac_status); }; }; then
7483   ac_header_compiler=yes
7484 else
7485   echo "$as_me: failed program was:" >&5
7486 sed 's/^/| /' conftest.$ac_ext >&5
7487
7488 ac_header_compiler=no
7489 fi
7490 rm -f conftest.$ac_objext conftest.$ac_ext
7491 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7492 echo "${ECHO_T}$ac_header_compiler" >&6
7493
7494 # Is the header present?
7495 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7496 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7497 cat >conftest.$ac_ext <<_ACEOF
7498 #line $LINENO "configure"
7499 /* confdefs.h.  */
7500 _ACEOF
7501 cat confdefs.h >>conftest.$ac_ext
7502 cat >>conftest.$ac_ext <<_ACEOF
7503 /* end confdefs.h.  */
7504 #include <$ac_header>
7505 _ACEOF
7506 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7507   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7508   ac_status=$?
7509   grep -v '^ *+' conftest.er1 >conftest.err
7510   rm -f conftest.er1
7511   cat conftest.err >&5
7512   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7513   (exit $ac_status); } >/dev/null; then
7514   if test -s conftest.err; then
7515     ac_cpp_err=$ac_c_preproc_warn_flag
7516   else
7517     ac_cpp_err=
7518   fi
7519 else
7520   ac_cpp_err=yes
7521 fi
7522 if test -z "$ac_cpp_err"; then
7523   ac_header_preproc=yes
7524 else
7525   echo "$as_me: failed program was:" >&5
7526 sed 's/^/| /' conftest.$ac_ext >&5
7527
7528   ac_header_preproc=no
7529 fi
7530 rm -f conftest.err conftest.$ac_ext
7531 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7532 echo "${ECHO_T}$ac_header_preproc" >&6
7533
7534 # So?  What about this header?
7535 case $ac_header_compiler:$ac_header_preproc in
7536   yes:no )
7537     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7538 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7539     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7540 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7541     (
7542       cat <<\_ASBOX
7543 ## ------------------------------------ ##
7544 ## Report this to bug-autoconf@gnu.org. ##
7545 ## ------------------------------------ ##
7546 _ASBOX
7547     ) |
7548       sed "s/^/$as_me: WARNING:     /" >&2
7549     ;;
7550   no:yes )
7551     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7552 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7553     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7554 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7555     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7556 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7557     (
7558       cat <<\_ASBOX
7559 ## ------------------------------------ ##
7560 ## Report this to bug-autoconf@gnu.org. ##
7561 ## ------------------------------------ ##
7562 _ASBOX
7563     ) |
7564       sed "s/^/$as_me: WARNING:     /" >&2
7565     ;;
7566 esac
7567 echo "$as_me:$LINENO: checking for $ac_header" >&5
7568 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7569 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7570   echo $ECHO_N "(cached) $ECHO_C" >&6
7571 else
7572   eval "$as_ac_Header=$ac_header_preproc"
7573 fi
7574 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7575 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7576
7577 fi
7578 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7579   cat >>confdefs.h <<_ACEOF
7580 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7581 _ACEOF
7582
7583 fi
7584
7585 done
7586
7587         if test "$ac_cv_header_GL_gl_h" = "yes" -a "$ac_cv_header_GL_glx_h" = "yes"
7588         then
7589
7590 for ac_header in GL/glext.h
7591 do
7592 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7593 echo "$as_me:$LINENO: checking for $ac_header" >&5
7594 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7595 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7596   echo $ECHO_N "(cached) $ECHO_C" >&6
7597 else
7598   cat >conftest.$ac_ext <<_ACEOF
7599 #line $LINENO "configure"
7600 /* confdefs.h.  */
7601 _ACEOF
7602 cat confdefs.h >>conftest.$ac_ext
7603 cat >>conftest.$ac_ext <<_ACEOF
7604 /* end confdefs.h.  */
7605 #include <GL/glx.h>
7606
7607 #include <$ac_header>
7608 _ACEOF
7609 rm -f conftest.$ac_objext
7610 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7611   (eval $ac_compile) 2>&5
7612   ac_status=$?
7613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7614   (exit $ac_status); } &&
7615          { ac_try='test -s conftest.$ac_objext'
7616   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7617   (eval $ac_try) 2>&5
7618   ac_status=$?
7619   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7620   (exit $ac_status); }; }; then
7621   eval "$as_ac_Header=yes"
7622 else
7623   echo "$as_me: failed program was:" >&5
7624 sed 's/^/| /' conftest.$ac_ext >&5
7625
7626 eval "$as_ac_Header=no"
7627 fi
7628 rm -f conftest.$ac_objext conftest.$ac_ext
7629 fi
7630 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7631 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7632 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7633   cat >>confdefs.h <<_ACEOF
7634 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7635 _ACEOF
7636
7637 fi
7638
7639 done
7640
7641                     echo "$as_me:$LINENO: checking for up-to-date OpenGL version" >&5
7642 echo $ECHO_N "checking for up-to-date OpenGL version... $ECHO_C" >&6
7643 if test "${wine_cv_opengl_version_OK+set}" = set; then
7644   echo $ECHO_N "(cached) $ECHO_C" >&6
7645 else
7646   cat >conftest.$ac_ext <<_ACEOF
7647 #line $LINENO "configure"
7648 /* confdefs.h.  */
7649 _ACEOF
7650 cat confdefs.h >>conftest.$ac_ext
7651 cat >>conftest.$ac_ext <<_ACEOF
7652 /* end confdefs.h.  */
7653 #include <GL/gl.h>
7654 int
7655 main ()
7656 {
7657 GLenum test = GL_UNSIGNED_SHORT_5_6_5;
7658   ;
7659   return 0;
7660 }
7661 _ACEOF
7662 rm -f conftest.$ac_objext
7663 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7664   (eval $ac_compile) 2>&5
7665   ac_status=$?
7666   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7667   (exit $ac_status); } &&
7668          { ac_try='test -s conftest.$ac_objext'
7669   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7670   (eval $ac_try) 2>&5
7671   ac_status=$?
7672   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7673   (exit $ac_status); }; }; then
7674   wine_cv_opengl_version_OK="yes"
7675 else
7676   echo "$as_me: failed program was:" >&5
7677 sed 's/^/| /' conftest.$ac_ext >&5
7678
7679 wine_cv_opengl_version_OK="no"
7680
7681 fi
7682 rm -f conftest.$ac_objext conftest.$ac_ext
7683
7684 fi
7685 echo "$as_me:$LINENO: result: $wine_cv_opengl_version_OK" >&5
7686 echo "${ECHO_T}$wine_cv_opengl_version_OK" >&6
7687
7688             if test "$wine_cv_opengl_version_OK" = "yes"
7689             then
7690                                 echo "$as_me:$LINENO: checking for glXCreateContext in -lGL" >&5
7691 echo $ECHO_N "checking for glXCreateContext in -lGL... $ECHO_C" >&6
7692 if test "${ac_cv_lib_GL_glXCreateContext+set}" = set; then
7693   echo $ECHO_N "(cached) $ECHO_C" >&6
7694 else
7695   ac_check_lib_save_LIBS=$LIBS
7696 LIBS="-lGL $X_LIBS -lXext -lX11 -lm $X_EXTRA_LIBS $LIBS"
7697 cat >conftest.$ac_ext <<_ACEOF
7698 #line $LINENO "configure"
7699 /* confdefs.h.  */
7700 _ACEOF
7701 cat confdefs.h >>conftest.$ac_ext
7702 cat >>conftest.$ac_ext <<_ACEOF
7703 /* end confdefs.h.  */
7704
7705 /* Override any gcc2 internal prototype to avoid an error.  */
7706 #ifdef __cplusplus
7707 extern "C"
7708 #endif
7709 /* We use char because int might match the return type of a gcc2
7710    builtin and then its argument prototype would still apply.  */
7711 char glXCreateContext ();
7712 int
7713 main ()
7714 {
7715 glXCreateContext ();
7716   ;
7717   return 0;
7718 }
7719 _ACEOF
7720 rm -f conftest.$ac_objext conftest$ac_exeext
7721 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7722   (eval $ac_link) 2>&5
7723   ac_status=$?
7724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7725   (exit $ac_status); } &&
7726          { ac_try='test -s conftest$ac_exeext'
7727   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7728   (eval $ac_try) 2>&5
7729   ac_status=$?
7730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7731   (exit $ac_status); }; }; then
7732   ac_cv_lib_GL_glXCreateContext=yes
7733 else
7734   echo "$as_me: failed program was:" >&5
7735 sed 's/^/| /' conftest.$ac_ext >&5
7736
7737 ac_cv_lib_GL_glXCreateContext=no
7738 fi
7739 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7740 LIBS=$ac_check_lib_save_LIBS
7741 fi
7742 echo "$as_me:$LINENO: result: $ac_cv_lib_GL_glXCreateContext" >&5
7743 echo "${ECHO_T}$ac_cv_lib_GL_glXCreateContext" >&6
7744 if test $ac_cv_lib_GL_glXCreateContext = yes; then
7745   OPENGL_LIBS="-lGL"
7746
7747 fi
7748
7749
7750                 if test "$ac_cv_lib_GL_glXCreateContext" = "yes"
7751                 then
7752                         OPENGLFILES='$(OPENGLFILES)'
7753
7754 cat >>confdefs.h <<\_ACEOF
7755 #define HAVE_OPENGL 1
7756 _ACEOF
7757
7758
7759                         echo "$as_me:$LINENO: checking for glXGetProcAddressARB in -lGL" >&5
7760 echo $ECHO_N "checking for glXGetProcAddressARB in -lGL... $ECHO_C" >&6
7761 if test "${ac_cv_lib_GL_glXGetProcAddressARB+set}" = set; then
7762   echo $ECHO_N "(cached) $ECHO_C" >&6
7763 else
7764   ac_check_lib_save_LIBS=$LIBS
7765 LIBS="-lGL $X_LIBS -lXext -lX11 -lm $X_EXTRA_LIBS $LIBS"
7766 cat >conftest.$ac_ext <<_ACEOF
7767 #line $LINENO "configure"
7768 /* confdefs.h.  */
7769 _ACEOF
7770 cat confdefs.h >>conftest.$ac_ext
7771 cat >>conftest.$ac_ext <<_ACEOF
7772 /* end confdefs.h.  */
7773
7774 /* Override any gcc2 internal prototype to avoid an error.  */
7775 #ifdef __cplusplus
7776 extern "C"
7777 #endif
7778 /* We use char because int might match the return type of a gcc2
7779    builtin and then its argument prototype would still apply.  */
7780 char glXGetProcAddressARB ();
7781 int
7782 main ()
7783 {
7784 glXGetProcAddressARB ();
7785   ;
7786   return 0;
7787 }
7788 _ACEOF
7789 rm -f conftest.$ac_objext conftest$ac_exeext
7790 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7791   (eval $ac_link) 2>&5
7792   ac_status=$?
7793   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7794   (exit $ac_status); } &&
7795          { ac_try='test -s conftest$ac_exeext'
7796   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7797   (eval $ac_try) 2>&5
7798   ac_status=$?
7799   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7800   (exit $ac_status); }; }; then
7801   ac_cv_lib_GL_glXGetProcAddressARB=yes
7802 else
7803   echo "$as_me: failed program was:" >&5
7804 sed 's/^/| /' conftest.$ac_ext >&5
7805
7806 ac_cv_lib_GL_glXGetProcAddressARB=no
7807 fi
7808 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7809 LIBS=$ac_check_lib_save_LIBS
7810 fi
7811 echo "$as_me:$LINENO: result: $ac_cv_lib_GL_glXGetProcAddressARB" >&5
7812 echo "${ECHO_T}$ac_cv_lib_GL_glXGetProcAddressARB" >&6
7813 if test $ac_cv_lib_GL_glXGetProcAddressARB = yes; then
7814
7815 cat >>confdefs.h <<\_ACEOF
7816 #define HAVE_GLX_GETPROCADDRESS 1
7817 _ACEOF
7818
7819 fi
7820
7821
7822                         if test "$ac_cv_lib_GL_glXGetProcAddressARB" = "yes"
7823                         then
7824                                echo "$as_me:$LINENO: checking for OpenGL extension functions prototypes" >&5
7825 echo $ECHO_N "checking for OpenGL extension functions prototypes... $ECHO_C" >&6
7826 if test "${wine_cv_extension_prototypes+set}" = set; then
7827   echo $ECHO_N "(cached) $ECHO_C" >&6
7828 else
7829   cat >conftest.$ac_ext <<_ACEOF
7830 #line $LINENO "configure"
7831 /* confdefs.h.  */
7832 _ACEOF
7833 cat confdefs.h >>conftest.$ac_ext
7834 cat >>conftest.$ac_ext <<_ACEOF
7835 /* end confdefs.h.  */
7836 #include <GL/gl.h>
7837                                                   #ifdef HAVE_GL_GLEXT_H
7838                                                   # include <GL/glext.h>
7839                                                   #endif
7840
7841 int
7842 main ()
7843 {
7844 PFNGLCOLORTABLEEXTPROC test_proc;
7845   ;
7846   return 0;
7847 }
7848 _ACEOF
7849 rm -f conftest.$ac_objext
7850 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7851   (eval $ac_compile) 2>&5
7852   ac_status=$?
7853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7854   (exit $ac_status); } &&
7855          { ac_try='test -s conftest.$ac_objext'
7856   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7857   (eval $ac_try) 2>&5
7858   ac_status=$?
7859   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7860   (exit $ac_status); }; }; then
7861   wine_cv_extension_prototypes="yes"
7862 else
7863   echo "$as_me: failed program was:" >&5
7864 sed 's/^/| /' conftest.$ac_ext >&5
7865
7866 wine_cv_extension_prototypes="no"
7867
7868 fi
7869 rm -f conftest.$ac_objext conftest.$ac_ext
7870
7871 fi
7872 echo "$as_me:$LINENO: result: $wine_cv_extension_prototypes" >&5
7873 echo "${ECHO_T}$wine_cv_extension_prototypes" >&6
7874                                 if test "$wine_cv_extension_prototypes" = "yes"
7875                                 then
7876
7877 cat >>confdefs.h <<\_ACEOF
7878 #define HAVE_GLEXT_PROTOTYPES 1
7879 _ACEOF
7880
7881                                 fi
7882                         fi
7883
7884                 fi
7885                                 echo "$as_me:$LINENO: checking for gluLookAt in -lGLU" >&5
7886 echo $ECHO_N "checking for gluLookAt in -lGLU... $ECHO_C" >&6
7887 if test "${ac_cv_lib_GLU_gluLookAt+set}" = set; then
7888   echo $ECHO_N "(cached) $ECHO_C" >&6
7889 else
7890   ac_check_lib_save_LIBS=$LIBS
7891 LIBS="-lGLU $OPENGL_LIBS $X_LIBS $X_PRE_LIBS -lXext -lX11 -lm $X_EXTRA_LIBS
7892                  $LIBS"
7893 cat >conftest.$ac_ext <<_ACEOF
7894 #line $LINENO "configure"
7895 /* confdefs.h.  */
7896 _ACEOF
7897 cat confdefs.h >>conftest.$ac_ext
7898 cat >>conftest.$ac_ext <<_ACEOF
7899 /* end confdefs.h.  */
7900
7901 /* Override any gcc2 internal prototype to avoid an error.  */
7902 #ifdef __cplusplus
7903 extern "C"
7904 #endif
7905 /* We use char because int might match the return type of a gcc2
7906    builtin and then its argument prototype would still apply.  */
7907 char gluLookAt ();
7908 int
7909 main ()
7910 {
7911 gluLookAt ();
7912   ;
7913   return 0;
7914 }
7915 _ACEOF
7916 rm -f conftest.$ac_objext conftest$ac_exeext
7917 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7918   (eval $ac_link) 2>&5
7919   ac_status=$?
7920   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7921   (exit $ac_status); } &&
7922          { ac_try='test -s conftest$ac_exeext'
7923   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7924   (eval $ac_try) 2>&5
7925   ac_status=$?
7926   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7927   (exit $ac_status); }; }; then
7928   ac_cv_lib_GLU_gluLookAt=yes
7929 else
7930   echo "$as_me: failed program was:" >&5
7931 sed 's/^/| /' conftest.$ac_ext >&5
7932
7933 ac_cv_lib_GLU_gluLookAt=no
7934 fi
7935 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7936 LIBS=$ac_check_lib_save_LIBS
7937 fi
7938 echo "$as_me:$LINENO: result: $ac_cv_lib_GLU_gluLookAt" >&5
7939 echo "${ECHO_T}$ac_cv_lib_GLU_gluLookAt" >&6
7940 if test $ac_cv_lib_GLU_gluLookAt = yes; then
7941   OPENGL_LIBS="$OPENGL_LIBS -lGLU"
7942                              GLU32FILES='$(GLU32FILES)'
7943
7944 fi
7945
7946              fi
7947          fi
7948     fi
7949
7950         NASLIBS=""
7951
7952
7953 for ac_header in audio/audiolib.h
7954 do
7955 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7956 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7957   echo "$as_me:$LINENO: checking for $ac_header" >&5
7958 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7959 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7960   echo $ECHO_N "(cached) $ECHO_C" >&6
7961 fi
7962 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7963 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7964 else
7965   # Is the header compilable?
7966 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7967 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7968 cat >conftest.$ac_ext <<_ACEOF
7969 #line $LINENO "configure"
7970 /* confdefs.h.  */
7971 _ACEOF
7972 cat confdefs.h >>conftest.$ac_ext
7973 cat >>conftest.$ac_ext <<_ACEOF
7974 /* end confdefs.h.  */
7975 $ac_includes_default
7976 #include <$ac_header>
7977 _ACEOF
7978 rm -f conftest.$ac_objext
7979 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7980   (eval $ac_compile) 2>&5
7981   ac_status=$?
7982   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7983   (exit $ac_status); } &&
7984          { ac_try='test -s conftest.$ac_objext'
7985   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7986   (eval $ac_try) 2>&5
7987   ac_status=$?
7988   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7989   (exit $ac_status); }; }; then
7990   ac_header_compiler=yes
7991 else
7992   echo "$as_me: failed program was:" >&5
7993 sed 's/^/| /' conftest.$ac_ext >&5
7994
7995 ac_header_compiler=no
7996 fi
7997 rm -f conftest.$ac_objext conftest.$ac_ext
7998 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7999 echo "${ECHO_T}$ac_header_compiler" >&6
8000
8001 # Is the header present?
8002 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8003 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8004 cat >conftest.$ac_ext <<_ACEOF
8005 #line $LINENO "configure"
8006 /* confdefs.h.  */
8007 _ACEOF
8008 cat confdefs.h >>conftest.$ac_ext
8009 cat >>conftest.$ac_ext <<_ACEOF
8010 /* end confdefs.h.  */
8011 #include <$ac_header>
8012 _ACEOF
8013 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8014   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8015   ac_status=$?
8016   grep -v '^ *+' conftest.er1 >conftest.err
8017   rm -f conftest.er1
8018   cat conftest.err >&5
8019   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8020   (exit $ac_status); } >/dev/null; then
8021   if test -s conftest.err; then
8022     ac_cpp_err=$ac_c_preproc_warn_flag
8023   else
8024     ac_cpp_err=
8025   fi
8026 else
8027   ac_cpp_err=yes
8028 fi
8029 if test -z "$ac_cpp_err"; then
8030   ac_header_preproc=yes
8031 else
8032   echo "$as_me: failed program was:" >&5
8033 sed 's/^/| /' conftest.$ac_ext >&5
8034
8035   ac_header_preproc=no
8036 fi
8037 rm -f conftest.err conftest.$ac_ext
8038 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8039 echo "${ECHO_T}$ac_header_preproc" >&6
8040
8041 # So?  What about this header?
8042 case $ac_header_compiler:$ac_header_preproc in
8043   yes:no )
8044     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8045 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8046     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8047 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8048     (
8049       cat <<\_ASBOX
8050 ## ------------------------------------ ##
8051 ## Report this to bug-autoconf@gnu.org. ##
8052 ## ------------------------------------ ##
8053 _ASBOX
8054     ) |
8055       sed "s/^/$as_me: WARNING:     /" >&2
8056     ;;
8057   no:yes )
8058     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8059 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8060     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8061 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8062     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8063 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8064     (
8065       cat <<\_ASBOX
8066 ## ------------------------------------ ##
8067 ## Report this to bug-autoconf@gnu.org. ##
8068 ## ------------------------------------ ##
8069 _ASBOX
8070     ) |
8071       sed "s/^/$as_me: WARNING:     /" >&2
8072     ;;
8073 esac
8074 echo "$as_me:$LINENO: checking for $ac_header" >&5
8075 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8076 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8077   echo $ECHO_N "(cached) $ECHO_C" >&6
8078 else
8079   eval "$as_ac_Header=$ac_header_preproc"
8080 fi
8081 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8082 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8083
8084 fi
8085 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8086   cat >>confdefs.h <<_ACEOF
8087 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8088 _ACEOF
8089
8090 for ac_header in audio/soundlib.h
8091 do
8092 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8093 echo "$as_me:$LINENO: checking for $ac_header" >&5
8094 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8095 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8096   echo $ECHO_N "(cached) $ECHO_C" >&6
8097 else
8098   cat >conftest.$ac_ext <<_ACEOF
8099 #line $LINENO "configure"
8100 /* confdefs.h.  */
8101 _ACEOF
8102 cat confdefs.h >>conftest.$ac_ext
8103 cat >>conftest.$ac_ext <<_ACEOF
8104 /* end confdefs.h.  */
8105 #include <audio/audiolib.h>
8106
8107 #include <$ac_header>
8108 _ACEOF
8109 rm -f conftest.$ac_objext
8110 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8111   (eval $ac_compile) 2>&5
8112   ac_status=$?
8113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8114   (exit $ac_status); } &&
8115          { ac_try='test -s conftest.$ac_objext'
8116   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8117   (eval $ac_try) 2>&5
8118   ac_status=$?
8119   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8120   (exit $ac_status); }; }; then
8121   eval "$as_ac_Header=yes"
8122 else
8123   echo "$as_me: failed program was:" >&5
8124 sed 's/^/| /' conftest.$ac_ext >&5
8125
8126 eval "$as_ac_Header=no"
8127 fi
8128 rm -f conftest.$ac_objext conftest.$ac_ext
8129 fi
8130 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8131 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8132 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8133   cat >>confdefs.h <<_ACEOF
8134 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8135 _ACEOF
8136
8137 fi
8138
8139 done
8140
8141           echo "$as_me:$LINENO: checking for AuCreateFlow in -laudio" >&5
8142 echo $ECHO_N "checking for AuCreateFlow in -laudio... $ECHO_C" >&6
8143 if test "${ac_cv_lib_audio_AuCreateFlow+set}" = set; then
8144   echo $ECHO_N "(cached) $ECHO_C" >&6
8145 else
8146   ac_check_lib_save_LIBS=$LIBS
8147 LIBS="-laudio -lXt $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
8148 cat >conftest.$ac_ext <<_ACEOF
8149 #line $LINENO "configure"
8150 /* confdefs.h.  */
8151 _ACEOF
8152 cat confdefs.h >>conftest.$ac_ext
8153 cat >>conftest.$ac_ext <<_ACEOF
8154 /* end confdefs.h.  */
8155
8156 /* Override any gcc2 internal prototype to avoid an error.  */
8157 #ifdef __cplusplus
8158 extern "C"
8159 #endif
8160 /* We use char because int might match the return type of a gcc2
8161    builtin and then its argument prototype would still apply.  */
8162 char AuCreateFlow ();
8163 int
8164 main ()
8165 {
8166 AuCreateFlow ();
8167   ;
8168   return 0;
8169 }
8170 _ACEOF
8171 rm -f conftest.$ac_objext conftest$ac_exeext
8172 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8173   (eval $ac_link) 2>&5
8174   ac_status=$?
8175   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8176   (exit $ac_status); } &&
8177          { ac_try='test -s conftest$ac_exeext'
8178   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8179   (eval $ac_try) 2>&5
8180   ac_status=$?
8181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8182   (exit $ac_status); }; }; then
8183   ac_cv_lib_audio_AuCreateFlow=yes
8184 else
8185   echo "$as_me: failed program was:" >&5
8186 sed 's/^/| /' conftest.$ac_ext >&5
8187
8188 ac_cv_lib_audio_AuCreateFlow=no
8189 fi
8190 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8191 LIBS=$ac_check_lib_save_LIBS
8192 fi
8193 echo "$as_me:$LINENO: result: $ac_cv_lib_audio_AuCreateFlow" >&5
8194 echo "${ECHO_T}$ac_cv_lib_audio_AuCreateFlow" >&6
8195 if test $ac_cv_lib_audio_AuCreateFlow = yes; then
8196
8197 cat >>confdefs.h <<\_ACEOF
8198 #define HAVE_NAS 1
8199 _ACEOF
8200
8201                         NASLIBS="-laudio -lXt $X_LIBS -lXext -lX11 $X_EXTRA_LIBS"
8202 fi
8203
8204 fi
8205
8206 done
8207
8208
8209     CPPFLAGS="$ac_save_CPPFLAGS"
8210     XFILES='$(XFILES)'
8211 else
8212     XLIB=""
8213     X_CFLAGS=""
8214     X_LIBS=""
8215 fi
8216
8217 CURSESLIBS=""
8218 if test "x$with_curses" != "xno"
8219 then
8220
8221 for ac_header in ncurses.h
8222 do
8223 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8224 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8225   echo "$as_me:$LINENO: checking for $ac_header" >&5
8226 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8227 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8228   echo $ECHO_N "(cached) $ECHO_C" >&6
8229 fi
8230 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8231 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8232 else
8233   # Is the header compilable?
8234 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8235 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8236 cat >conftest.$ac_ext <<_ACEOF
8237 #line $LINENO "configure"
8238 /* confdefs.h.  */
8239 _ACEOF
8240 cat confdefs.h >>conftest.$ac_ext
8241 cat >>conftest.$ac_ext <<_ACEOF
8242 /* end confdefs.h.  */
8243 $ac_includes_default
8244 #include <$ac_header>
8245 _ACEOF
8246 rm -f conftest.$ac_objext
8247 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8248   (eval $ac_compile) 2>&5
8249   ac_status=$?
8250   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8251   (exit $ac_status); } &&
8252          { ac_try='test -s conftest.$ac_objext'
8253   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8254   (eval $ac_try) 2>&5
8255   ac_status=$?
8256   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8257   (exit $ac_status); }; }; then
8258   ac_header_compiler=yes
8259 else
8260   echo "$as_me: failed program was:" >&5
8261 sed 's/^/| /' conftest.$ac_ext >&5
8262
8263 ac_header_compiler=no
8264 fi
8265 rm -f conftest.$ac_objext conftest.$ac_ext
8266 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8267 echo "${ECHO_T}$ac_header_compiler" >&6
8268
8269 # Is the header present?
8270 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8271 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8272 cat >conftest.$ac_ext <<_ACEOF
8273 #line $LINENO "configure"
8274 /* confdefs.h.  */
8275 _ACEOF
8276 cat confdefs.h >>conftest.$ac_ext
8277 cat >>conftest.$ac_ext <<_ACEOF
8278 /* end confdefs.h.  */
8279 #include <$ac_header>
8280 _ACEOF
8281 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8282   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8283   ac_status=$?
8284   grep -v '^ *+' conftest.er1 >conftest.err
8285   rm -f conftest.er1
8286   cat conftest.err >&5
8287   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8288   (exit $ac_status); } >/dev/null; then
8289   if test -s conftest.err; then
8290     ac_cpp_err=$ac_c_preproc_warn_flag
8291   else
8292     ac_cpp_err=
8293   fi
8294 else
8295   ac_cpp_err=yes
8296 fi
8297 if test -z "$ac_cpp_err"; then
8298   ac_header_preproc=yes
8299 else
8300   echo "$as_me: failed program was:" >&5
8301 sed 's/^/| /' conftest.$ac_ext >&5
8302
8303   ac_header_preproc=no
8304 fi
8305 rm -f conftest.err conftest.$ac_ext
8306 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8307 echo "${ECHO_T}$ac_header_preproc" >&6
8308
8309 # So?  What about this header?
8310 case $ac_header_compiler:$ac_header_preproc in
8311   yes:no )
8312     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8313 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8314     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8315 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8316     (
8317       cat <<\_ASBOX
8318 ## ------------------------------------ ##
8319 ## Report this to bug-autoconf@gnu.org. ##
8320 ## ------------------------------------ ##
8321 _ASBOX
8322     ) |
8323       sed "s/^/$as_me: WARNING:     /" >&2
8324     ;;
8325   no:yes )
8326     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8327 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8328     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8329 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8330     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8331 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8332     (
8333       cat <<\_ASBOX
8334 ## ------------------------------------ ##
8335 ## Report this to bug-autoconf@gnu.org. ##
8336 ## ------------------------------------ ##
8337 _ASBOX
8338     ) |
8339       sed "s/^/$as_me: WARNING:     /" >&2
8340     ;;
8341 esac
8342 echo "$as_me:$LINENO: checking for $ac_header" >&5
8343 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8344 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8345   echo $ECHO_N "(cached) $ECHO_C" >&6
8346 else
8347   eval "$as_ac_Header=$ac_header_preproc"
8348 fi
8349 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8350 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8351
8352 fi
8353 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8354   cat >>confdefs.h <<_ACEOF
8355 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8356 _ACEOF
8357  echo "$as_me:$LINENO: checking for waddch in -lncurses" >&5
8358 echo $ECHO_N "checking for waddch in -lncurses... $ECHO_C" >&6
8359 if test "${ac_cv_lib_ncurses_waddch+set}" = set; then
8360   echo $ECHO_N "(cached) $ECHO_C" >&6
8361 else
8362   ac_check_lib_save_LIBS=$LIBS
8363 LIBS="-lncurses  $LIBS"
8364 cat >conftest.$ac_ext <<_ACEOF
8365 #line $LINENO "configure"
8366 /* confdefs.h.  */
8367 _ACEOF
8368 cat confdefs.h >>conftest.$ac_ext
8369 cat >>conftest.$ac_ext <<_ACEOF
8370 /* end confdefs.h.  */
8371
8372 /* Override any gcc2 internal prototype to avoid an error.  */
8373 #ifdef __cplusplus
8374 extern "C"
8375 #endif
8376 /* We use char because int might match the return type of a gcc2
8377    builtin and then its argument prototype would still apply.  */
8378 char waddch ();
8379 int
8380 main ()
8381 {
8382 waddch ();
8383   ;
8384   return 0;
8385 }
8386 _ACEOF
8387 rm -f conftest.$ac_objext conftest$ac_exeext
8388 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8389   (eval $ac_link) 2>&5
8390   ac_status=$?
8391   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8392   (exit $ac_status); } &&
8393          { ac_try='test -s conftest$ac_exeext'
8394   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8395   (eval $ac_try) 2>&5
8396   ac_status=$?
8397   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8398   (exit $ac_status); }; }; then
8399   ac_cv_lib_ncurses_waddch=yes
8400 else
8401   echo "$as_me: failed program was:" >&5
8402 sed 's/^/| /' conftest.$ac_ext >&5
8403
8404 ac_cv_lib_ncurses_waddch=no
8405 fi
8406 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8407 LIBS=$ac_check_lib_save_LIBS
8408 fi
8409 echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_waddch" >&5
8410 echo "${ECHO_T}$ac_cv_lib_ncurses_waddch" >&6
8411 if test $ac_cv_lib_ncurses_waddch = yes; then
8412
8413 cat >>confdefs.h <<\_ACEOF
8414 #define HAVE_LIBNCURSES 1
8415 _ACEOF
8416
8417              CURSESLIBS="-lncurses"
8418 else
8419
8420 for ac_header in curses.h
8421 do
8422 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8423 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8424   echo "$as_me:$LINENO: checking for $ac_header" >&5
8425 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8426 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8427   echo $ECHO_N "(cached) $ECHO_C" >&6
8428 fi
8429 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8430 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8431 else
8432   # Is the header compilable?
8433 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8434 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8435 cat >conftest.$ac_ext <<_ACEOF
8436 #line $LINENO "configure"
8437 /* confdefs.h.  */
8438 _ACEOF
8439 cat confdefs.h >>conftest.$ac_ext
8440 cat >>conftest.$ac_ext <<_ACEOF
8441 /* end confdefs.h.  */
8442 $ac_includes_default
8443 #include <$ac_header>
8444 _ACEOF
8445 rm -f conftest.$ac_objext
8446 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8447   (eval $ac_compile) 2>&5
8448   ac_status=$?
8449   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8450   (exit $ac_status); } &&
8451          { ac_try='test -s conftest.$ac_objext'
8452   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8453   (eval $ac_try) 2>&5
8454   ac_status=$?
8455   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8456   (exit $ac_status); }; }; then
8457   ac_header_compiler=yes
8458 else
8459   echo "$as_me: failed program was:" >&5
8460 sed 's/^/| /' conftest.$ac_ext >&5
8461
8462 ac_header_compiler=no
8463 fi
8464 rm -f conftest.$ac_objext conftest.$ac_ext
8465 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8466 echo "${ECHO_T}$ac_header_compiler" >&6
8467
8468 # Is the header present?
8469 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8470 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8471 cat >conftest.$ac_ext <<_ACEOF
8472 #line $LINENO "configure"
8473 /* confdefs.h.  */
8474 _ACEOF
8475 cat confdefs.h >>conftest.$ac_ext
8476 cat >>conftest.$ac_ext <<_ACEOF
8477 /* end confdefs.h.  */
8478 #include <$ac_header>
8479 _ACEOF
8480 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8481   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8482   ac_status=$?
8483   grep -v '^ *+' conftest.er1 >conftest.err
8484   rm -f conftest.er1
8485   cat conftest.err >&5
8486   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8487   (exit $ac_status); } >/dev/null; then
8488   if test -s conftest.err; then
8489     ac_cpp_err=$ac_c_preproc_warn_flag
8490   else
8491     ac_cpp_err=
8492   fi
8493 else
8494   ac_cpp_err=yes
8495 fi
8496 if test -z "$ac_cpp_err"; then
8497   ac_header_preproc=yes
8498 else
8499   echo "$as_me: failed program was:" >&5
8500 sed 's/^/| /' conftest.$ac_ext >&5
8501
8502   ac_header_preproc=no
8503 fi
8504 rm -f conftest.err conftest.$ac_ext
8505 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8506 echo "${ECHO_T}$ac_header_preproc" >&6
8507
8508 # So?  What about this header?
8509 case $ac_header_compiler:$ac_header_preproc in
8510   yes:no )
8511     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8512 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8513     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8514 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8515     (
8516       cat <<\_ASBOX
8517 ## ------------------------------------ ##
8518 ## Report this to bug-autoconf@gnu.org. ##
8519 ## ------------------------------------ ##
8520 _ASBOX
8521     ) |
8522       sed "s/^/$as_me: WARNING:     /" >&2
8523     ;;
8524   no:yes )
8525     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8526 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8527     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8528 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8529     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8530 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8531     (
8532       cat <<\_ASBOX
8533 ## ------------------------------------ ##
8534 ## Report this to bug-autoconf@gnu.org. ##
8535 ## ------------------------------------ ##
8536 _ASBOX
8537     ) |
8538       sed "s/^/$as_me: WARNING:     /" >&2
8539     ;;
8540 esac
8541 echo "$as_me:$LINENO: checking for $ac_header" >&5
8542 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8543 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8544   echo $ECHO_N "(cached) $ECHO_C" >&6
8545 else
8546   eval "$as_ac_Header=$ac_header_preproc"
8547 fi
8548 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8549 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8550
8551 fi
8552 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8553   cat >>confdefs.h <<_ACEOF
8554 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8555 _ACEOF
8556  echo "$as_me:$LINENO: checking for waddch in -lcurses" >&5
8557 echo $ECHO_N "checking for waddch in -lcurses... $ECHO_C" >&6
8558 if test "${ac_cv_lib_curses_waddch+set}" = set; then
8559   echo $ECHO_N "(cached) $ECHO_C" >&6
8560 else
8561   ac_check_lib_save_LIBS=$LIBS
8562 LIBS="-lcurses  $LIBS"
8563 cat >conftest.$ac_ext <<_ACEOF
8564 #line $LINENO "configure"
8565 /* confdefs.h.  */
8566 _ACEOF
8567 cat confdefs.h >>conftest.$ac_ext
8568 cat >>conftest.$ac_ext <<_ACEOF
8569 /* end confdefs.h.  */
8570
8571 /* Override any gcc2 internal prototype to avoid an error.  */
8572 #ifdef __cplusplus
8573 extern "C"
8574 #endif
8575 /* We use char because int might match the return type of a gcc2
8576    builtin and then its argument prototype would still apply.  */
8577 char waddch ();
8578 int
8579 main ()
8580 {
8581 waddch ();
8582   ;
8583   return 0;
8584 }
8585 _ACEOF
8586 rm -f conftest.$ac_objext conftest$ac_exeext
8587 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8588   (eval $ac_link) 2>&5
8589   ac_status=$?
8590   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8591   (exit $ac_status); } &&
8592          { ac_try='test -s conftest$ac_exeext'
8593   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8594   (eval $ac_try) 2>&5
8595   ac_status=$?
8596   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8597   (exit $ac_status); }; }; then
8598   ac_cv_lib_curses_waddch=yes
8599 else
8600   echo "$as_me: failed program was:" >&5
8601 sed 's/^/| /' conftest.$ac_ext >&5
8602
8603 ac_cv_lib_curses_waddch=no
8604 fi
8605 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8606 LIBS=$ac_check_lib_save_LIBS
8607 fi
8608 echo "$as_me:$LINENO: result: $ac_cv_lib_curses_waddch" >&5
8609 echo "${ECHO_T}$ac_cv_lib_curses_waddch" >&6
8610 if test $ac_cv_lib_curses_waddch = yes; then
8611
8612 cat >>confdefs.h <<\_ACEOF
8613 #define HAVE_LIBCURSES 1
8614 _ACEOF
8615
8616                       CURSESLIBS="-lcurses"
8617 fi
8618
8619 fi
8620
8621 done
8622
8623 fi
8624
8625 fi
8626
8627 done
8628
8629     saved_libs="$LIBS"
8630     LIBS="$CURSESLIBS $LIBS"
8631
8632
8633 for ac_func in getbkgd resizeterm
8634 do
8635 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8636 echo "$as_me:$LINENO: checking for $ac_func" >&5
8637 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8638 if eval "test \"\${$as_ac_var+set}\" = set"; then
8639   echo $ECHO_N "(cached) $ECHO_C" >&6
8640 else
8641   cat >conftest.$ac_ext <<_ACEOF
8642 #line $LINENO "configure"
8643 /* confdefs.h.  */
8644 _ACEOF
8645 cat confdefs.h >>conftest.$ac_ext
8646 cat >>conftest.$ac_ext <<_ACEOF
8647 /* end confdefs.h.  */
8648 /* System header to define __stub macros and hopefully few prototypes,
8649     which can conflict with char $ac_func (); below.
8650     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8651     <limits.h> exists even on freestanding compilers.  */
8652 #ifdef __STDC__
8653 # include <limits.h>
8654 #else
8655 # include <assert.h>
8656 #endif
8657 /* Override any gcc2 internal prototype to avoid an error.  */
8658 #ifdef __cplusplus
8659 extern "C"
8660 {
8661 #endif
8662 /* We use char because int might match the return type of a gcc2
8663    builtin and then its argument prototype would still apply.  */
8664 char $ac_func ();
8665 /* The GNU C library defines this for functions which it implements
8666     to always fail with ENOSYS.  Some functions are actually named
8667     something starting with __ and the normal name is an alias.  */
8668 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8669 choke me
8670 #else
8671 char (*f) () = $ac_func;
8672 #endif
8673 #ifdef __cplusplus
8674 }
8675 #endif
8676
8677 int
8678 main ()
8679 {
8680 return f != $ac_func;
8681   ;
8682   return 0;
8683 }
8684 _ACEOF
8685 rm -f conftest.$ac_objext conftest$ac_exeext
8686 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8687   (eval $ac_link) 2>&5
8688   ac_status=$?
8689   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8690   (exit $ac_status); } &&
8691          { ac_try='test -s conftest$ac_exeext'
8692   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8693   (eval $ac_try) 2>&5
8694   ac_status=$?
8695   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8696   (exit $ac_status); }; }; then
8697   eval "$as_ac_var=yes"
8698 else
8699   echo "$as_me: failed program was:" >&5
8700 sed 's/^/| /' conftest.$ac_ext >&5
8701
8702 eval "$as_ac_var=no"
8703 fi
8704 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8705 fi
8706 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8707 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8708 if test `eval echo '${'$as_ac_var'}'` = yes; then
8709   cat >>confdefs.h <<_ACEOF
8710 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8711 _ACEOF
8712
8713 fi
8714 done
8715
8716     LIBS="$saved_libs"
8717 fi
8718
8719
8720 # Extract the first word of "sane-config", so it can be a program name with args.
8721 set dummy sane-config; ac_word=$2
8722 echo "$as_me:$LINENO: checking for $ac_word" >&5
8723 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8724 if test "${ac_cv_prog_sane_devel+set}" = set; then
8725   echo $ECHO_N "(cached) $ECHO_C" >&6
8726 else
8727   if test -n "$sane_devel"; then
8728   ac_cv_prog_sane_devel="$sane_devel" # Let the user override the test.
8729 else
8730 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8731 for as_dir in $PATH
8732 do
8733   IFS=$as_save_IFS
8734   test -z "$as_dir" && as_dir=.
8735   for ac_exec_ext in '' $ac_executable_extensions; do
8736   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8737     ac_cv_prog_sane_devel="sane-config"
8738     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8739     break 2
8740   fi
8741 done
8742 done
8743
8744   test -z "$ac_cv_prog_sane_devel" && ac_cv_prog_sane_devel="no"
8745 fi
8746 fi
8747 sane_devel=$ac_cv_prog_sane_devel
8748 if test -n "$sane_devel"; then
8749   echo "$as_me:$LINENO: result: $sane_devel" >&5
8750 echo "${ECHO_T}$sane_devel" >&6
8751 else
8752   echo "$as_me:$LINENO: result: no" >&5
8753 echo "${ECHO_T}no" >&6
8754 fi
8755
8756 if test "$sane_devel" = "no"
8757 then
8758     SANELIBS=""
8759     SANEINCL=""
8760 else
8761     SANELIBS="`$sane_devel --libs`"
8762     SANEINCL="`$sane_devel --cflags`"
8763     ac_save_CPPFLAGS="$CPPFLAGS"
8764     ac_save_LIBS="$LIBS"
8765     CPPFLAGS="$CPPFLAGS $SANEINCL"
8766     LIBS="$LIBS $SANELIBS"
8767     if test "${ac_cv_header_sane_sane_h+set}" = set; then
8768   echo "$as_me:$LINENO: checking for sane/sane.h" >&5
8769 echo $ECHO_N "checking for sane/sane.h... $ECHO_C" >&6
8770 if test "${ac_cv_header_sane_sane_h+set}" = set; then
8771   echo $ECHO_N "(cached) $ECHO_C" >&6
8772 fi
8773 echo "$as_me:$LINENO: result: $ac_cv_header_sane_sane_h" >&5
8774 echo "${ECHO_T}$ac_cv_header_sane_sane_h" >&6
8775 else
8776   # Is the header compilable?
8777 echo "$as_me:$LINENO: checking sane/sane.h usability" >&5
8778 echo $ECHO_N "checking sane/sane.h usability... $ECHO_C" >&6
8779 cat >conftest.$ac_ext <<_ACEOF
8780 #line $LINENO "configure"
8781 /* confdefs.h.  */
8782 _ACEOF
8783 cat confdefs.h >>conftest.$ac_ext
8784 cat >>conftest.$ac_ext <<_ACEOF
8785 /* end confdefs.h.  */
8786 $ac_includes_default
8787 #include <sane/sane.h>
8788 _ACEOF
8789 rm -f conftest.$ac_objext
8790 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8791   (eval $ac_compile) 2>&5
8792   ac_status=$?
8793   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8794   (exit $ac_status); } &&
8795          { ac_try='test -s conftest.$ac_objext'
8796   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8797   (eval $ac_try) 2>&5
8798   ac_status=$?
8799   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8800   (exit $ac_status); }; }; then
8801   ac_header_compiler=yes
8802 else
8803   echo "$as_me: failed program was:" >&5
8804 sed 's/^/| /' conftest.$ac_ext >&5
8805
8806 ac_header_compiler=no
8807 fi
8808 rm -f conftest.$ac_objext conftest.$ac_ext
8809 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8810 echo "${ECHO_T}$ac_header_compiler" >&6
8811
8812 # Is the header present?
8813 echo "$as_me:$LINENO: checking sane/sane.h presence" >&5
8814 echo $ECHO_N "checking sane/sane.h presence... $ECHO_C" >&6
8815 cat >conftest.$ac_ext <<_ACEOF
8816 #line $LINENO "configure"
8817 /* confdefs.h.  */
8818 _ACEOF
8819 cat confdefs.h >>conftest.$ac_ext
8820 cat >>conftest.$ac_ext <<_ACEOF
8821 /* end confdefs.h.  */
8822 #include <sane/sane.h>
8823 _ACEOF
8824 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8825   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8826   ac_status=$?
8827   grep -v '^ *+' conftest.er1 >conftest.err
8828   rm -f conftest.er1
8829   cat conftest.err >&5
8830   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8831   (exit $ac_status); } >/dev/null; then
8832   if test -s conftest.err; then
8833     ac_cpp_err=$ac_c_preproc_warn_flag
8834   else
8835     ac_cpp_err=
8836   fi
8837 else
8838   ac_cpp_err=yes
8839 fi
8840 if test -z "$ac_cpp_err"; then
8841   ac_header_preproc=yes
8842 else
8843   echo "$as_me: failed program was:" >&5
8844 sed 's/^/| /' conftest.$ac_ext >&5
8845
8846   ac_header_preproc=no
8847 fi
8848 rm -f conftest.err conftest.$ac_ext
8849 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8850 echo "${ECHO_T}$ac_header_preproc" >&6
8851
8852 # So?  What about this header?
8853 case $ac_header_compiler:$ac_header_preproc in
8854   yes:no )
8855     { echo "$as_me:$LINENO: WARNING: sane/sane.h: accepted by the compiler, rejected by the preprocessor!" >&5
8856 echo "$as_me: WARNING: sane/sane.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8857     { echo "$as_me:$LINENO: WARNING: sane/sane.h: proceeding with the preprocessor's result" >&5
8858 echo "$as_me: WARNING: sane/sane.h: proceeding with the preprocessor's result" >&2;}
8859     (
8860       cat <<\_ASBOX
8861 ## ------------------------------------ ##
8862 ## Report this to bug-autoconf@gnu.org. ##
8863 ## ------------------------------------ ##
8864 _ASBOX
8865     ) |
8866       sed "s/^/$as_me: WARNING:     /" >&2
8867     ;;
8868   no:yes )
8869     { echo "$as_me:$LINENO: WARNING: sane/sane.h: present but cannot be compiled" >&5
8870 echo "$as_me: WARNING: sane/sane.h: present but cannot be compiled" >&2;}
8871     { echo "$as_me:$LINENO: WARNING: sane/sane.h: check for missing prerequisite headers?" >&5
8872 echo "$as_me: WARNING: sane/sane.h: check for missing prerequisite headers?" >&2;}
8873     { echo "$as_me:$LINENO: WARNING: sane/sane.h: proceeding with the preprocessor's result" >&5
8874 echo "$as_me: WARNING: sane/sane.h: proceeding with the preprocessor's result" >&2;}
8875     (
8876       cat <<\_ASBOX
8877 ## ------------------------------------ ##
8878 ## Report this to bug-autoconf@gnu.org. ##
8879 ## ------------------------------------ ##
8880 _ASBOX
8881     ) |
8882       sed "s/^/$as_me: WARNING:     /" >&2
8883     ;;
8884 esac
8885 echo "$as_me:$LINENO: checking for sane/sane.h" >&5
8886 echo $ECHO_N "checking for sane/sane.h... $ECHO_C" >&6
8887 if test "${ac_cv_header_sane_sane_h+set}" = set; then
8888   echo $ECHO_N "(cached) $ECHO_C" >&6
8889 else
8890   ac_cv_header_sane_sane_h=$ac_header_preproc
8891 fi
8892 echo "$as_me:$LINENO: result: $ac_cv_header_sane_sane_h" >&5
8893 echo "${ECHO_T}$ac_cv_header_sane_sane_h" >&6
8894
8895 fi
8896 if test $ac_cv_header_sane_sane_h = yes; then
8897   echo "$as_me:$LINENO: checking for sane_open in -lsane" >&5
8898 echo $ECHO_N "checking for sane_open in -lsane... $ECHO_C" >&6
8899 if test "${ac_cv_lib_sane_sane_open+set}" = set; then
8900   echo $ECHO_N "(cached) $ECHO_C" >&6
8901 else
8902   ac_check_lib_save_LIBS=$LIBS
8903 LIBS="-lsane  $LIBS"
8904 cat >conftest.$ac_ext <<_ACEOF
8905 #line $LINENO "configure"
8906 /* confdefs.h.  */
8907 _ACEOF
8908 cat confdefs.h >>conftest.$ac_ext
8909 cat >>conftest.$ac_ext <<_ACEOF
8910 /* end confdefs.h.  */
8911
8912 /* Override any gcc2 internal prototype to avoid an error.  */
8913 #ifdef __cplusplus
8914 extern "C"
8915 #endif
8916 /* We use char because int might match the return type of a gcc2
8917    builtin and then its argument prototype would still apply.  */
8918 char sane_open ();
8919 int
8920 main ()
8921 {
8922 sane_open ();
8923   ;
8924   return 0;
8925 }
8926 _ACEOF
8927 rm -f conftest.$ac_objext conftest$ac_exeext
8928 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8929   (eval $ac_link) 2>&5
8930   ac_status=$?
8931   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8932   (exit $ac_status); } &&
8933          { ac_try='test -s conftest$ac_exeext'
8934   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8935   (eval $ac_try) 2>&5
8936   ac_status=$?
8937   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8938   (exit $ac_status); }; }; then
8939   ac_cv_lib_sane_sane_open=yes
8940 else
8941   echo "$as_me: failed program was:" >&5
8942 sed 's/^/| /' conftest.$ac_ext >&5
8943
8944 ac_cv_lib_sane_sane_open=no
8945 fi
8946 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8947 LIBS=$ac_check_lib_save_LIBS
8948 fi
8949 echo "$as_me:$LINENO: result: $ac_cv_lib_sane_sane_open" >&5
8950 echo "${ECHO_T}$ac_cv_lib_sane_sane_open" >&6
8951 if test $ac_cv_lib_sane_sane_open = yes; then
8952
8953 cat >>confdefs.h <<\_ACEOF
8954 #define HAVE_SANE 1
8955 _ACEOF
8956
8957 else
8958   SANELIBS=""
8959                                   SANEINCL=""
8960 fi
8961
8962 else
8963   SANELIBS=""
8964                     SANEINCL=""
8965 fi
8966
8967
8968     LIBS="$ac_save_LIBS"
8969     CPPFLAGS="$ac_save_CPPFLAGS"
8970 fi
8971
8972
8973
8974 echo "$as_me:$LINENO: checking for FT_Init_FreeType in -lfreetype" >&5
8975 echo $ECHO_N "checking for FT_Init_FreeType in -lfreetype... $ECHO_C" >&6
8976 if test "${ac_cv_lib_freetype_FT_Init_FreeType+set}" = set; then
8977   echo $ECHO_N "(cached) $ECHO_C" >&6
8978 else
8979   ac_check_lib_save_LIBS=$LIBS
8980 LIBS="-lfreetype $X_LIBS $LIBS"
8981 cat >conftest.$ac_ext <<_ACEOF
8982 #line $LINENO "configure"
8983 /* confdefs.h.  */
8984 _ACEOF
8985 cat confdefs.h >>conftest.$ac_ext
8986 cat >>conftest.$ac_ext <<_ACEOF
8987 /* end confdefs.h.  */
8988
8989 /* Override any gcc2 internal prototype to avoid an error.  */
8990 #ifdef __cplusplus
8991 extern "C"
8992 #endif
8993 /* We use char because int might match the return type of a gcc2
8994    builtin and then its argument prototype would still apply.  */
8995 char FT_Init_FreeType ();
8996 int
8997 main ()
8998 {
8999 FT_Init_FreeType ();
9000   ;
9001   return 0;
9002 }
9003 _ACEOF
9004 rm -f conftest.$ac_objext conftest$ac_exeext
9005 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9006   (eval $ac_link) 2>&5
9007   ac_status=$?
9008   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9009   (exit $ac_status); } &&
9010          { ac_try='test -s conftest$ac_exeext'
9011   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9012   (eval $ac_try) 2>&5
9013   ac_status=$?
9014   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9015   (exit $ac_status); }; }; then
9016   ac_cv_lib_freetype_FT_Init_FreeType=yes
9017 else
9018   echo "$as_me: failed program was:" >&5
9019 sed 's/^/| /' conftest.$ac_ext >&5
9020
9021 ac_cv_lib_freetype_FT_Init_FreeType=no
9022 fi
9023 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9024 LIBS=$ac_check_lib_save_LIBS
9025 fi
9026 echo "$as_me:$LINENO: result: $ac_cv_lib_freetype_FT_Init_FreeType" >&5
9027 echo "${ECHO_T}$ac_cv_lib_freetype_FT_Init_FreeType" >&6
9028 if test $ac_cv_lib_freetype_FT_Init_FreeType = yes; then
9029   ft_lib=yes
9030 else
9031   ft_lib=no
9032 fi
9033
9034 if test "$ft_lib" = "no"
9035 then
9036     FREETYPEINCL=""
9037     wine_cv_msg_freetype=no
9038 else
9039     # Extract the first word of "freetype-config", so it can be a program name with args.
9040 set dummy freetype-config; ac_word=$2
9041 echo "$as_me:$LINENO: checking for $ac_word" >&5
9042 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9043 if test "${ac_cv_prog_ft_devel+set}" = set; then
9044   echo $ECHO_N "(cached) $ECHO_C" >&6
9045 else
9046   if test -n "$ft_devel"; then
9047   ac_cv_prog_ft_devel="$ft_devel" # Let the user override the test.
9048 else
9049 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9050 for as_dir in $PATH
9051 do
9052   IFS=$as_save_IFS
9053   test -z "$as_dir" && as_dir=.
9054   for ac_exec_ext in '' $ac_executable_extensions; do
9055   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9056     ac_cv_prog_ft_devel="freetype-config"
9057     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9058     break 2
9059   fi
9060 done
9061 done
9062
9063   test -z "$ac_cv_prog_ft_devel" && ac_cv_prog_ft_devel="no"
9064 fi
9065 fi
9066 ft_devel=$ac_cv_prog_ft_devel
9067 if test -n "$ft_devel"; then
9068   echo "$as_me:$LINENO: result: $ft_devel" >&5
9069 echo "${ECHO_T}$ft_devel" >&6
9070 else
9071   echo "$as_me:$LINENO: result: no" >&5
9072 echo "${ECHO_T}no" >&6
9073 fi
9074
9075     if test "$ft_devel" = "no"
9076     then
9077         # Extract the first word of "freetype2-config", so it can be a program name with args.
9078 set dummy freetype2-config; ac_word=$2
9079 echo "$as_me:$LINENO: checking for $ac_word" >&5
9080 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9081 if test "${ac_cv_prog_ft_devel2+set}" = set; then
9082   echo $ECHO_N "(cached) $ECHO_C" >&6
9083 else
9084   if test -n "$ft_devel2"; then
9085   ac_cv_prog_ft_devel2="$ft_devel2" # Let the user override the test.
9086 else
9087 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9088 for as_dir in $PATH
9089 do
9090   IFS=$as_save_IFS
9091   test -z "$as_dir" && as_dir=.
9092   for ac_exec_ext in '' $ac_executable_extensions; do
9093   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9094     ac_cv_prog_ft_devel2="freetype2-config"
9095     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9096     break 2
9097   fi
9098 done
9099 done
9100
9101   test -z "$ac_cv_prog_ft_devel2" && ac_cv_prog_ft_devel2="no"
9102 fi
9103 fi
9104 ft_devel2=$ac_cv_prog_ft_devel2
9105 if test -n "$ft_devel2"; then
9106   echo "$as_me:$LINENO: result: $ft_devel2" >&5
9107 echo "${ECHO_T}$ft_devel2" >&6
9108 else
9109   echo "$as_me:$LINENO: result: no" >&5
9110 echo "${ECHO_T}no" >&6
9111 fi
9112
9113         if test "$ft_devel2" = "freetype2-config"
9114         then
9115                 ft_devel=$ft_devel2
9116         fi
9117     fi
9118     if test "$ft_devel" = "no"
9119     then
9120         FREETYPEINCL=""
9121         wine_cv_msg_freetype=yes
9122     else
9123         FREETYPEINCL=`$ft_devel --cflags`
9124         ac_save_CPPFLAGS="$CPPFLAGS"
9125         CPPFLAGS="$FREETYPEINCL $CPPFLAGS"
9126
9127
9128
9129
9130
9131
9132
9133
9134 for ac_header in freetype/freetype.h \
9135                          freetype/ftglyph.h \
9136                          freetype/tttables.h \
9137                          freetype/ftnames.h \
9138                          freetype/ftsnames.h \
9139                          freetype/ttnameid.h \
9140                          freetype/ftoutln.h \
9141                          freetype/internal/sfnt.h
9142 do
9143 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9144 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9145   echo "$as_me:$LINENO: checking for $ac_header" >&5
9146 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9147 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9148   echo $ECHO_N "(cached) $ECHO_C" >&6
9149 fi
9150 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9151 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9152 else
9153   # Is the header compilable?
9154 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9155 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9156 cat >conftest.$ac_ext <<_ACEOF
9157 #line $LINENO "configure"
9158 /* confdefs.h.  */
9159 _ACEOF
9160 cat confdefs.h >>conftest.$ac_ext
9161 cat >>conftest.$ac_ext <<_ACEOF
9162 /* end confdefs.h.  */
9163 $ac_includes_default
9164 #include <$ac_header>
9165 _ACEOF
9166 rm -f conftest.$ac_objext
9167 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9168   (eval $ac_compile) 2>&5
9169   ac_status=$?
9170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9171   (exit $ac_status); } &&
9172          { ac_try='test -s conftest.$ac_objext'
9173   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9174   (eval $ac_try) 2>&5
9175   ac_status=$?
9176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9177   (exit $ac_status); }; }; then
9178   ac_header_compiler=yes
9179 else
9180   echo "$as_me: failed program was:" >&5
9181 sed 's/^/| /' conftest.$ac_ext >&5
9182
9183 ac_header_compiler=no
9184 fi
9185 rm -f conftest.$ac_objext conftest.$ac_ext
9186 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9187 echo "${ECHO_T}$ac_header_compiler" >&6
9188
9189 # Is the header present?
9190 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9191 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9192 cat >conftest.$ac_ext <<_ACEOF
9193 #line $LINENO "configure"
9194 /* confdefs.h.  */
9195 _ACEOF
9196 cat confdefs.h >>conftest.$ac_ext
9197 cat >>conftest.$ac_ext <<_ACEOF
9198 /* end confdefs.h.  */
9199 #include <$ac_header>
9200 _ACEOF
9201 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9202   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9203   ac_status=$?
9204   grep -v '^ *+' conftest.er1 >conftest.err
9205   rm -f conftest.er1
9206   cat conftest.err >&5
9207   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9208   (exit $ac_status); } >/dev/null; then
9209   if test -s conftest.err; then
9210     ac_cpp_err=$ac_c_preproc_warn_flag
9211   else
9212     ac_cpp_err=
9213   fi
9214 else
9215   ac_cpp_err=yes
9216 fi
9217 if test -z "$ac_cpp_err"; then
9218   ac_header_preproc=yes
9219 else
9220   echo "$as_me: failed program was:" >&5
9221 sed 's/^/| /' conftest.$ac_ext >&5
9222
9223   ac_header_preproc=no
9224 fi
9225 rm -f conftest.err conftest.$ac_ext
9226 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9227 echo "${ECHO_T}$ac_header_preproc" >&6
9228
9229 # So?  What about this header?
9230 case $ac_header_compiler:$ac_header_preproc in
9231   yes:no )
9232     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9233 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9234     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9235 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9236     (
9237       cat <<\_ASBOX
9238 ## ------------------------------------ ##
9239 ## Report this to bug-autoconf@gnu.org. ##
9240 ## ------------------------------------ ##
9241 _ASBOX
9242     ) |
9243       sed "s/^/$as_me: WARNING:     /" >&2
9244     ;;
9245   no:yes )
9246     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9247 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9248     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9249 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9250     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9251 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9252     (
9253       cat <<\_ASBOX
9254 ## ------------------------------------ ##
9255 ## Report this to bug-autoconf@gnu.org. ##
9256 ## ------------------------------------ ##
9257 _ASBOX
9258     ) |
9259       sed "s/^/$as_me: WARNING:     /" >&2
9260     ;;
9261 esac
9262 echo "$as_me:$LINENO: checking for $ac_header" >&5
9263 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9264 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9265   echo $ECHO_N "(cached) $ECHO_C" >&6
9266 else
9267   eval "$as_ac_Header=$ac_header_preproc"
9268 fi
9269 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9270 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9271
9272 fi
9273 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9274   cat >>confdefs.h <<_ACEOF
9275 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9276 _ACEOF
9277
9278 fi
9279
9280 done
9281
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 #include <ft2build.h>
9290                     #include <freetype/fttrigon.h>
9291 _ACEOF
9292 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9293   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9294   ac_status=$?
9295   grep -v '^ *+' conftest.er1 >conftest.err
9296   rm -f conftest.er1
9297   cat conftest.err >&5
9298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9299   (exit $ac_status); } >/dev/null; then
9300   if test -s conftest.err; then
9301     ac_cpp_err=$ac_c_preproc_warn_flag
9302   else
9303     ac_cpp_err=
9304   fi
9305 else
9306   ac_cpp_err=yes
9307 fi
9308 if test -z "$ac_cpp_err"; then
9309
9310 cat >>confdefs.h <<\_ACEOF
9311 #define HAVE_FREETYPE_FTTRIGON_H 1
9312 _ACEOF
9313
9314                     wine_cv_fttrigon=yes
9315 else
9316   echo "$as_me: failed program was:" >&5
9317 sed 's/^/| /' conftest.$ac_ext >&5
9318
9319   wine_cv_fttrigon=no
9320 fi
9321 rm -f conftest.err conftest.$ac_ext
9322         CPPFLAGS="$ac_save_CPPFLAGS"
9323                 if test "$ac_cv_header_freetype_freetype_h" = "yes" -a "$wine_cv_fttrigon" = "yes"
9324         then
9325
9326 cat >>confdefs.h <<\_ACEOF
9327 #define HAVE_FREETYPE 1
9328 _ACEOF
9329
9330             wine_cv_msg_freetype=no
9331         else
9332             FREETYPEINCL=""
9333             wine_cv_msg_freetype=yes
9334         fi
9335     fi
9336 fi
9337
9338
9339 echo "$as_me:$LINENO: checking for parport header/ppdev.h" >&5
9340 echo $ECHO_N "checking for parport header/ppdev.h... $ECHO_C" >&6
9341 if test "${ac_cv_c_ppdev+set}" = set; then
9342   echo $ECHO_N "(cached) $ECHO_C" >&6
9343 else
9344   cat >conftest.$ac_ext <<_ACEOF
9345 #line $LINENO "configure"
9346 /* confdefs.h.  */
9347 _ACEOF
9348 cat confdefs.h >>conftest.$ac_ext
9349 cat >>conftest.$ac_ext <<_ACEOF
9350 /* end confdefs.h.  */
9351 #include <linux/ppdev.h>
9352 int
9353 main ()
9354 {
9355 ioctl (1,PPCLAIM,0)
9356   ;
9357   return 0;
9358 }
9359 _ACEOF
9360 rm -f conftest.$ac_objext
9361 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9362   (eval $ac_compile) 2>&5
9363   ac_status=$?
9364   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9365   (exit $ac_status); } &&
9366          { ac_try='test -s conftest.$ac_objext'
9367   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9368   (eval $ac_try) 2>&5
9369   ac_status=$?
9370   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9371   (exit $ac_status); }; }; then
9372   ac_cv_c_ppdev="yes"
9373 else
9374   echo "$as_me: failed program was:" >&5
9375 sed 's/^/| /' conftest.$ac_ext >&5
9376
9377 ac_cv_c_ppdev="no"
9378 fi
9379 rm -f conftest.$ac_objext conftest.$ac_ext
9380
9381 fi
9382 echo "$as_me:$LINENO: result: $ac_cv_c_ppdev" >&5
9383 echo "${ECHO_T}$ac_cv_c_ppdev" >&6
9384 if test "$ac_cv_c_ppdev" = "yes"
9385 then
9386
9387 cat >>confdefs.h <<\_ACEOF
9388 #define HAVE_PPDEV 1
9389 _ACEOF
9390
9391 fi
9392
9393 echo "$as_me:$LINENO: checking for va_copy" >&5
9394 echo $ECHO_N "checking for va_copy... $ECHO_C" >&6
9395 if test "${ac_cv_c_va_copy+set}" = set; then
9396   echo $ECHO_N "(cached) $ECHO_C" >&6
9397 else
9398   cat >conftest.$ac_ext <<_ACEOF
9399 #line $LINENO "configure"
9400 /* confdefs.h.  */
9401 _ACEOF
9402 cat confdefs.h >>conftest.$ac_ext
9403 cat >>conftest.$ac_ext <<_ACEOF
9404 /* end confdefs.h.  */
9405 #include <stdarg.h>
9406 int
9407 main ()
9408 {
9409 va_list ap1, ap2;
9410     va_copy(ap1,ap2);
9411
9412   ;
9413   return 0;
9414 }
9415 _ACEOF
9416 rm -f conftest.$ac_objext conftest$ac_exeext
9417 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9418   (eval $ac_link) 2>&5
9419   ac_status=$?
9420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9421   (exit $ac_status); } &&
9422          { ac_try='test -s conftest$ac_exeext'
9423   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9424   (eval $ac_try) 2>&5
9425   ac_status=$?
9426   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9427   (exit $ac_status); }; }; then
9428   ac_cv_c_va_copy="yes"
9429 else
9430   echo "$as_me: failed program was:" >&5
9431 sed 's/^/| /' conftest.$ac_ext >&5
9432
9433 ac_cv_c_va_copy="no"
9434 fi
9435 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9436
9437 fi
9438 echo "$as_me:$LINENO: result: $ac_cv_c_va_copy" >&5
9439 echo "${ECHO_T}$ac_cv_c_va_copy" >&6
9440 if test "$ac_cv_c_va_copy" = "yes"
9441 then
9442
9443 cat >>confdefs.h <<\_ACEOF
9444 #define HAVE_VA_COPY 1
9445 _ACEOF
9446
9447 fi
9448 echo "$as_me:$LINENO: checking for __va_copy" >&5
9449 echo $ECHO_N "checking for __va_copy... $ECHO_C" >&6
9450 if test "${ac_cv_c___va_copy+set}" = set; then
9451   echo $ECHO_N "(cached) $ECHO_C" >&6
9452 else
9453   cat >conftest.$ac_ext <<_ACEOF
9454 #line $LINENO "configure"
9455 /* confdefs.h.  */
9456 _ACEOF
9457 cat confdefs.h >>conftest.$ac_ext
9458 cat >>conftest.$ac_ext <<_ACEOF
9459 /* end confdefs.h.  */
9460 #include <stdarg.h>
9461 int
9462 main ()
9463 {
9464 va_list ap1, ap2;
9465     __va_copy(ap1,ap2);
9466
9467   ;
9468   return 0;
9469 }
9470 _ACEOF
9471 rm -f conftest.$ac_objext conftest$ac_exeext
9472 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9473   (eval $ac_link) 2>&5
9474   ac_status=$?
9475   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9476   (exit $ac_status); } &&
9477          { ac_try='test -s conftest$ac_exeext'
9478   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9479   (eval $ac_try) 2>&5
9480   ac_status=$?
9481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9482   (exit $ac_status); }; }; then
9483   ac_cv_c___va_copy="yes"
9484 else
9485   echo "$as_me: failed program was:" >&5
9486 sed 's/^/| /' conftest.$ac_ext >&5
9487
9488 ac_cv_c___va_copy="no"
9489 fi
9490 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9491
9492 fi
9493 echo "$as_me:$LINENO: result: $ac_cv_c___va_copy" >&5
9494 echo "${ECHO_T}$ac_cv_c___va_copy" >&6
9495 if test "$ac_cv_c___va_copy" = "yes"
9496 then
9497
9498 cat >>confdefs.h <<\_ACEOF
9499 #define HAVE___VA_COPY 1
9500 _ACEOF
9501
9502 fi
9503
9504 echo "$as_me:$LINENO: checking for GNU style IPX support" >&5
9505 echo $ECHO_N "checking for GNU style IPX support... $ECHO_C" >&6
9506 if test "${ac_cv_c_ipx_gnu+set}" = set; then
9507   echo $ECHO_N "(cached) $ECHO_C" >&6
9508 else
9509   cat >conftest.$ac_ext <<_ACEOF
9510 #line $LINENO "configure"
9511 /* confdefs.h.  */
9512 _ACEOF
9513 cat confdefs.h >>conftest.$ac_ext
9514 cat >>conftest.$ac_ext <<_ACEOF
9515 /* end confdefs.h.  */
9516 #include <sys/types.h>
9517     #ifdef HAVE_SYS_SOCKET_H
9518     # include <sys/socket.h>
9519     #endif
9520     #include <netipx/ipx.h>
9521 int
9522 main ()
9523 {
9524 ((struct sockaddr_ipx *)0)->sipx_family == AF_IPX
9525   ;
9526   return 0;
9527 }
9528 _ACEOF
9529 rm -f conftest.$ac_objext
9530 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9531   (eval $ac_compile) 2>&5
9532   ac_status=$?
9533   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9534   (exit $ac_status); } &&
9535          { ac_try='test -s conftest.$ac_objext'
9536   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9537   (eval $ac_try) 2>&5
9538   ac_status=$?
9539   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9540   (exit $ac_status); }; }; then
9541   ac_cv_c_ipx_gnu="yes"
9542 else
9543   echo "$as_me: failed program was:" >&5
9544 sed 's/^/| /' conftest.$ac_ext >&5
9545
9546 ac_cv_c_ipx_gnu="no"
9547 fi
9548 rm -f conftest.$ac_objext conftest.$ac_ext
9549
9550 fi
9551 echo "$as_me:$LINENO: result: $ac_cv_c_ipx_gnu" >&5
9552 echo "${ECHO_T}$ac_cv_c_ipx_gnu" >&6
9553 if test "$ac_cv_c_ipx_gnu" = "yes"
9554 then
9555
9556 cat >>confdefs.h <<\_ACEOF
9557 #define HAVE_IPX_GNU 1
9558 _ACEOF
9559
9560 fi
9561
9562 if test "$ac_cv_c_ipx_gnu" = "no"
9563 then
9564  echo "$as_me:$LINENO: checking for linux style IPX support" >&5
9565 echo $ECHO_N "checking for linux style IPX support... $ECHO_C" >&6
9566 if test "${ac_cv_c_ipx_linux+set}" = set; then
9567   echo $ECHO_N "(cached) $ECHO_C" >&6
9568 else
9569   cat >conftest.$ac_ext <<_ACEOF
9570 #line $LINENO "configure"
9571 /* confdefs.h.  */
9572 _ACEOF
9573 cat confdefs.h >>conftest.$ac_ext
9574 cat >>conftest.$ac_ext <<_ACEOF
9575 /* end confdefs.h.  */
9576 #include <sys/types.h>
9577      #ifdef HAVE_SYS_SOCKET_H
9578      # include <sys/socket.h>
9579      #endif
9580      #include <asm/types.h>
9581      #include <linux/ipx.h>
9582 int
9583 main ()
9584 {
9585 ((struct sockaddr_ipx *)0)->sipx_family == AF_IPX
9586   ;
9587   return 0;
9588 }
9589 _ACEOF
9590 rm -f conftest.$ac_objext
9591 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9592   (eval $ac_compile) 2>&5
9593   ac_status=$?
9594   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9595   (exit $ac_status); } &&
9596          { ac_try='test -s conftest.$ac_objext'
9597   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9598   (eval $ac_try) 2>&5
9599   ac_status=$?
9600   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9601   (exit $ac_status); }; }; then
9602   ac_cv_c_ipx_linux="yes"
9603 else
9604   echo "$as_me: failed program was:" >&5
9605 sed 's/^/| /' conftest.$ac_ext >&5
9606
9607 ac_cv_c_ipx_linux="no"
9608 fi
9609 rm -f conftest.$ac_objext conftest.$ac_ext
9610
9611 fi
9612 echo "$as_me:$LINENO: result: $ac_cv_c_ipx_linux" >&5
9613 echo "${ECHO_T}$ac_cv_c_ipx_linux" >&6
9614   if test "$ac_cv_c_ipx_linux" = "yes"
9615   then
9616
9617 cat >>confdefs.h <<\_ACEOF
9618 #define HAVE_IPX_LINUX 1
9619 _ACEOF
9620
9621   fi
9622 fi
9623
9624
9625
9626
9627 for ac_header in sys/soundcard.h machine/soundcard.h soundcard.h
9628 do
9629 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9630 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9631   echo "$as_me:$LINENO: checking for $ac_header" >&5
9632 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9633 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9634   echo $ECHO_N "(cached) $ECHO_C" >&6
9635 fi
9636 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9637 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9638 else
9639   # Is the header compilable?
9640 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9641 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9642 cat >conftest.$ac_ext <<_ACEOF
9643 #line $LINENO "configure"
9644 /* confdefs.h.  */
9645 _ACEOF
9646 cat confdefs.h >>conftest.$ac_ext
9647 cat >>conftest.$ac_ext <<_ACEOF
9648 /* end confdefs.h.  */
9649 $ac_includes_default
9650 #include <$ac_header>
9651 _ACEOF
9652 rm -f conftest.$ac_objext
9653 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9654   (eval $ac_compile) 2>&5
9655   ac_status=$?
9656   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9657   (exit $ac_status); } &&
9658          { ac_try='test -s conftest.$ac_objext'
9659   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9660   (eval $ac_try) 2>&5
9661   ac_status=$?
9662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9663   (exit $ac_status); }; }; then
9664   ac_header_compiler=yes
9665 else
9666   echo "$as_me: failed program was:" >&5
9667 sed 's/^/| /' conftest.$ac_ext >&5
9668
9669 ac_header_compiler=no
9670 fi
9671 rm -f conftest.$ac_objext conftest.$ac_ext
9672 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9673 echo "${ECHO_T}$ac_header_compiler" >&6
9674
9675 # Is the header present?
9676 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9677 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9678 cat >conftest.$ac_ext <<_ACEOF
9679 #line $LINENO "configure"
9680 /* confdefs.h.  */
9681 _ACEOF
9682 cat confdefs.h >>conftest.$ac_ext
9683 cat >>conftest.$ac_ext <<_ACEOF
9684 /* end confdefs.h.  */
9685 #include <$ac_header>
9686 _ACEOF
9687 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9688   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9689   ac_status=$?
9690   grep -v '^ *+' conftest.er1 >conftest.err
9691   rm -f conftest.er1
9692   cat conftest.err >&5
9693   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9694   (exit $ac_status); } >/dev/null; then
9695   if test -s conftest.err; then
9696     ac_cpp_err=$ac_c_preproc_warn_flag
9697   else
9698     ac_cpp_err=
9699   fi
9700 else
9701   ac_cpp_err=yes
9702 fi
9703 if test -z "$ac_cpp_err"; then
9704   ac_header_preproc=yes
9705 else
9706   echo "$as_me: failed program was:" >&5
9707 sed 's/^/| /' conftest.$ac_ext >&5
9708
9709   ac_header_preproc=no
9710 fi
9711 rm -f conftest.err conftest.$ac_ext
9712 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9713 echo "${ECHO_T}$ac_header_preproc" >&6
9714
9715 # So?  What about this header?
9716 case $ac_header_compiler:$ac_header_preproc in
9717   yes:no )
9718     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9719 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9720     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9721 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9722     (
9723       cat <<\_ASBOX
9724 ## ------------------------------------ ##
9725 ## Report this to bug-autoconf@gnu.org. ##
9726 ## ------------------------------------ ##
9727 _ASBOX
9728     ) |
9729       sed "s/^/$as_me: WARNING:     /" >&2
9730     ;;
9731   no:yes )
9732     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9733 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9734     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9735 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9736     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9737 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9738     (
9739       cat <<\_ASBOX
9740 ## ------------------------------------ ##
9741 ## Report this to bug-autoconf@gnu.org. ##
9742 ## ------------------------------------ ##
9743 _ASBOX
9744     ) |
9745       sed "s/^/$as_me: WARNING:     /" >&2
9746     ;;
9747 esac
9748 echo "$as_me:$LINENO: checking for $ac_header" >&5
9749 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9750 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9751   echo $ECHO_N "(cached) $ECHO_C" >&6
9752 else
9753   eval "$as_ac_Header=$ac_header_preproc"
9754 fi
9755 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9756 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9757
9758 fi
9759 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9760   cat >>confdefs.h <<_ACEOF
9761 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9762 _ACEOF
9763  break
9764 fi
9765
9766 done
9767
9768
9769 echo "$as_me:$LINENO: checking for Open Sound System" >&5
9770 echo $ECHO_N "checking for Open Sound System... $ECHO_C" >&6
9771 if test "${ac_cv_c_opensoundsystem+set}" = set; then
9772   echo $ECHO_N "(cached) $ECHO_C" >&6
9773 else
9774   cat >conftest.$ac_ext <<_ACEOF
9775 #line $LINENO "configure"
9776 /* confdefs.h.  */
9777 _ACEOF
9778 cat confdefs.h >>conftest.$ac_ext
9779 cat >>conftest.$ac_ext <<_ACEOF
9780 /* end confdefs.h.  */
9781
9782         #if defined(HAVE_SYS_SOUNDCARD_H)
9783                 #include <sys/soundcard.h>
9784         #elif defined(HAVE_MACHINE_SOUNDCARD_H)
9785                 #include <machine/soundcard.h>
9786         #elif defined(HAVE_SOUNDCARD_H)
9787                 #include <soundcard.h>
9788         #endif
9789
9790 int
9791 main ()
9792 {
9793
9794
9795 /* check for one of the Open Sound System specific SNDCTL_ defines */
9796 #if !defined(SNDCTL_DSP_STEREO)
9797 #error No open sound system
9798 #endif
9799
9800   ;
9801   return 0;
9802 }
9803 _ACEOF
9804 rm -f conftest.$ac_objext
9805 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9806   (eval $ac_compile) 2>&5
9807   ac_status=$?
9808   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9809   (exit $ac_status); } &&
9810          { ac_try='test -s conftest.$ac_objext'
9811   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9812   (eval $ac_try) 2>&5
9813   ac_status=$?
9814   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9815   (exit $ac_status); }; }; then
9816   ac_cv_c_opensoundsystem="yes"
9817 else
9818   echo "$as_me: failed program was:" >&5
9819 sed 's/^/| /' conftest.$ac_ext >&5
9820
9821 ac_cv_c_opensoundsystem="no"
9822 fi
9823 rm -f conftest.$ac_objext conftest.$ac_ext
9824 fi
9825 echo "$as_me:$LINENO: result: $ac_cv_c_opensoundsystem" >&5
9826 echo "${ECHO_T}$ac_cv_c_opensoundsystem" >&6
9827
9828 if test "$ac_cv_c_opensoundsystem" = "yes"
9829 then
9830
9831 cat >>confdefs.h <<\_ACEOF
9832 #define HAVE_OSS 1
9833 _ACEOF
9834
9835 fi
9836
9837 echo "$as_me:$LINENO: checking for Open Sound System/MIDI interface" >&5
9838 echo $ECHO_N "checking for Open Sound System/MIDI interface... $ECHO_C" >&6
9839 if test "${ac_cv_c_opensoundsystem_midi+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
9850         #if defined(HAVE_SYS_SOUNDCARD_H)
9851                 #include <sys/soundcard.h>
9852         #elif defined(HAVE_MACHINE_SOUNDCARD_H)
9853                 #include <machine/soundcard.h>
9854         #elif defined(HAVE_SOUNDCARD_H)
9855                 #include <soundcard.h>
9856         #endif
9857
9858 int
9859 main ()
9860 {
9861
9862
9863 /* check for one of the Open Sound System specific SNDCTL_SEQ defines */
9864 #if !defined(SNDCTL_SEQ_SYNC)
9865 #error No open sound system MIDI interface
9866 #endif
9867
9868   ;
9869   return 0;
9870 }
9871 _ACEOF
9872 rm -f conftest.$ac_objext
9873 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9874   (eval $ac_compile) 2>&5
9875   ac_status=$?
9876   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9877   (exit $ac_status); } &&
9878          { ac_try='test -s conftest.$ac_objext'
9879   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9880   (eval $ac_try) 2>&5
9881   ac_status=$?
9882   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9883   (exit $ac_status); }; }; then
9884   ac_cv_c_opensoundsystem_midi="yes"
9885 else
9886   echo "$as_me: failed program was:" >&5
9887 sed 's/^/| /' conftest.$ac_ext >&5
9888
9889 ac_cv_c_opensoundsystem_midi="no"
9890 fi
9891 rm -f conftest.$ac_objext conftest.$ac_ext
9892 fi
9893 echo "$as_me:$LINENO: result: $ac_cv_c_opensoundsystem_midi" >&5
9894 echo "${ECHO_T}$ac_cv_c_opensoundsystem_midi" >&6
9895
9896 if test "$ac_cv_c_opensoundsystem_midi" = "yes"
9897 then
9898
9899 cat >>confdefs.h <<\_ACEOF
9900 #define HAVE_OSS_MIDI 1
9901 _ACEOF
9902
9903 fi
9904
9905 # Extract the first word of "artsc-config", so it can be a program name with args.
9906 set dummy artsc-config; ac_word=$2
9907 echo "$as_me:$LINENO: checking for $ac_word" >&5
9908 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9909 if test "${ac_cv_path_ARTSCCONFIG+set}" = set; then
9910   echo $ECHO_N "(cached) $ECHO_C" >&6
9911 else
9912   case $ARTSCCONFIG in
9913   [\\/]* | ?:[\\/]*)
9914   ac_cv_path_ARTSCCONFIG="$ARTSCCONFIG" # Let the user override the test with a path.
9915   ;;
9916   *)
9917   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9918 for as_dir in $PATH
9919 do
9920   IFS=$as_save_IFS
9921   test -z "$as_dir" && as_dir=.
9922   for ac_exec_ext in '' $ac_executable_extensions; do
9923   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9924     ac_cv_path_ARTSCCONFIG="$as_dir/$ac_word$ac_exec_ext"
9925     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9926     break 2
9927   fi
9928 done
9929 done
9930
9931   ;;
9932 esac
9933 fi
9934 ARTSCCONFIG=$ac_cv_path_ARTSCCONFIG
9935
9936 if test -n "$ARTSCCONFIG"; then
9937   echo "$as_me:$LINENO: result: $ARTSCCONFIG" >&5
9938 echo "${ECHO_T}$ARTSCCONFIG" >&6
9939 else
9940   echo "$as_me:$LINENO: result: no" >&5
9941 echo "${ECHO_T}no" >&6
9942 fi
9943
9944 echo "$as_me:$LINENO: checking for aRts Sound server" >&5
9945 echo $ECHO_N "checking for aRts Sound server... $ECHO_C" >&6
9946 if test "${ac_cv_c_artsserver+set}" = set; then
9947   echo $ECHO_N "(cached) $ECHO_C" >&6
9948 else
9949   if test x$ARTSCCONFIG = x -o x$ARTSCCONFIG = x'"$ARTSCCONFIG"';
9950         then
9951             ac_cv_c_artsserver=no
9952         else
9953             ARTSC_CFLAGS=`$ARTSCCONFIG --cflags`
9954             ARTSC_LIBS=`$ARTSCCONFIG --libs`
9955             ac_cv_c_artsserver=no
9956             save_CFLAGS="$CFLAGS"
9957             CFLAGS="$CFLAGS $ARTSC_CFLAGS"
9958             cat >conftest.$ac_ext <<_ACEOF
9959 #line $LINENO "configure"
9960 /* confdefs.h.  */
9961 _ACEOF
9962 cat confdefs.h >>conftest.$ac_ext
9963 cat >>conftest.$ac_ext <<_ACEOF
9964 /* end confdefs.h.  */
9965
9966              #include <artsc.h>
9967
9968 int
9969 main ()
9970 {
9971
9972              arts_stream_t stream;
9973
9974   ;
9975   return 0;
9976 }
9977 _ACEOF
9978 rm -f conftest.$ac_objext
9979 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9980   (eval $ac_compile) 2>&5
9981   ac_status=$?
9982   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9983   (exit $ac_status); } &&
9984          { ac_try='test -s conftest.$ac_objext'
9985   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9986   (eval $ac_try) 2>&5
9987   ac_status=$?
9988   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9989   (exit $ac_status); }; }; then
9990
9991             ac_cv_c_artsserver=yes
9992
9993 else
9994   echo "$as_me: failed program was:" >&5
9995 sed 's/^/| /' conftest.$ac_ext >&5
9996
9997 fi
9998 rm -f conftest.$ac_objext conftest.$ac_ext
9999             CFLAGS="$save_CFLAGS"
10000         fi
10001 fi
10002 echo "$as_me:$LINENO: result: $ac_cv_c_artsserver" >&5
10003 echo "${ECHO_T}$ac_cv_c_artsserver" >&6
10004
10005 if test "$ac_cv_c_artsserver" = "yes"
10006 then
10007     ARTSLIBS=$ARTSC_LIBS
10008
10009     ARTSINCL=$ARTSC_CFLAGS
10010
10011
10012
10013 cat >>confdefs.h <<\_ACEOF
10014 #define HAVE_ARTS 1
10015 _ACEOF
10016
10017 fi
10018
10019 ALSALIBS=""
10020
10021
10022
10023 for ac_header in alsa/asoundlib.h sys/asoundlib.h
10024 do
10025 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10026 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10027   echo "$as_me:$LINENO: checking for $ac_header" >&5
10028 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10029 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10030   echo $ECHO_N "(cached) $ECHO_C" >&6
10031 fi
10032 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10033 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10034 else
10035   # Is the header compilable?
10036 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10037 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10038 cat >conftest.$ac_ext <<_ACEOF
10039 #line $LINENO "configure"
10040 /* confdefs.h.  */
10041 _ACEOF
10042 cat confdefs.h >>conftest.$ac_ext
10043 cat >>conftest.$ac_ext <<_ACEOF
10044 /* end confdefs.h.  */
10045 $ac_includes_default
10046 #include <$ac_header>
10047 _ACEOF
10048 rm -f conftest.$ac_objext
10049 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10050   (eval $ac_compile) 2>&5
10051   ac_status=$?
10052   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10053   (exit $ac_status); } &&
10054          { ac_try='test -s conftest.$ac_objext'
10055   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10056   (eval $ac_try) 2>&5
10057   ac_status=$?
10058   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10059   (exit $ac_status); }; }; then
10060   ac_header_compiler=yes
10061 else
10062   echo "$as_me: failed program was:" >&5
10063 sed 's/^/| /' conftest.$ac_ext >&5
10064
10065 ac_header_compiler=no
10066 fi
10067 rm -f conftest.$ac_objext conftest.$ac_ext
10068 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10069 echo "${ECHO_T}$ac_header_compiler" >&6
10070
10071 # Is the header present?
10072 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10073 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10074 cat >conftest.$ac_ext <<_ACEOF
10075 #line $LINENO "configure"
10076 /* confdefs.h.  */
10077 _ACEOF
10078 cat confdefs.h >>conftest.$ac_ext
10079 cat >>conftest.$ac_ext <<_ACEOF
10080 /* end confdefs.h.  */
10081 #include <$ac_header>
10082 _ACEOF
10083 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10084   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10085   ac_status=$?
10086   grep -v '^ *+' conftest.er1 >conftest.err
10087   rm -f conftest.er1
10088   cat conftest.err >&5
10089   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10090   (exit $ac_status); } >/dev/null; then
10091   if test -s conftest.err; then
10092     ac_cpp_err=$ac_c_preproc_warn_flag
10093   else
10094     ac_cpp_err=
10095   fi
10096 else
10097   ac_cpp_err=yes
10098 fi
10099 if test -z "$ac_cpp_err"; then
10100   ac_header_preproc=yes
10101 else
10102   echo "$as_me: failed program was:" >&5
10103 sed 's/^/| /' conftest.$ac_ext >&5
10104
10105   ac_header_preproc=no
10106 fi
10107 rm -f conftest.err conftest.$ac_ext
10108 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10109 echo "${ECHO_T}$ac_header_preproc" >&6
10110
10111 # So?  What about this header?
10112 case $ac_header_compiler:$ac_header_preproc in
10113   yes:no )
10114     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10115 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10116     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10117 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10118     (
10119       cat <<\_ASBOX
10120 ## ------------------------------------ ##
10121 ## Report this to bug-autoconf@gnu.org. ##
10122 ## ------------------------------------ ##
10123 _ASBOX
10124     ) |
10125       sed "s/^/$as_me: WARNING:     /" >&2
10126     ;;
10127   no:yes )
10128     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10129 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10130     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10131 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10132     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10133 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10134     (
10135       cat <<\_ASBOX
10136 ## ------------------------------------ ##
10137 ## Report this to bug-autoconf@gnu.org. ##
10138 ## ------------------------------------ ##
10139 _ASBOX
10140     ) |
10141       sed "s/^/$as_me: WARNING:     /" >&2
10142     ;;
10143 esac
10144 echo "$as_me:$LINENO: checking for $ac_header" >&5
10145 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10146 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10147   echo $ECHO_N "(cached) $ECHO_C" >&6
10148 else
10149   eval "$as_ac_Header=$ac_header_preproc"
10150 fi
10151 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10152 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10153
10154 fi
10155 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10156   cat >>confdefs.h <<_ACEOF
10157 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10158 _ACEOF
10159  break
10160 fi
10161
10162 done
10163
10164 if test "$ac_cv_header_sys_asoundlib_h" = "yes" -o "$ac_cv_header_alsa_asoundlib_h" = "yes"
10165 then
10166     echo "$as_me:$LINENO: checking for snd_pcm_open in -lasound" >&5
10167 echo $ECHO_N "checking for snd_pcm_open in -lasound... $ECHO_C" >&6
10168 if test "${ac_cv_lib_asound_snd_pcm_open+set}" = set; then
10169   echo $ECHO_N "(cached) $ECHO_C" >&6
10170 else
10171   ac_check_lib_save_LIBS=$LIBS
10172 LIBS="-lasound  $LIBS"
10173 cat >conftest.$ac_ext <<_ACEOF
10174 #line $LINENO "configure"
10175 /* confdefs.h.  */
10176 _ACEOF
10177 cat confdefs.h >>conftest.$ac_ext
10178 cat >>conftest.$ac_ext <<_ACEOF
10179 /* end confdefs.h.  */
10180
10181 /* Override any gcc2 internal prototype to avoid an error.  */
10182 #ifdef __cplusplus
10183 extern "C"
10184 #endif
10185 /* We use char because int might match the return type of a gcc2
10186    builtin and then its argument prototype would still apply.  */
10187 char snd_pcm_open ();
10188 int
10189 main ()
10190 {
10191 snd_pcm_open ();
10192   ;
10193   return 0;
10194 }
10195 _ACEOF
10196 rm -f conftest.$ac_objext conftest$ac_exeext
10197 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10198   (eval $ac_link) 2>&5
10199   ac_status=$?
10200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10201   (exit $ac_status); } &&
10202          { ac_try='test -s conftest$ac_exeext'
10203   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10204   (eval $ac_try) 2>&5
10205   ac_status=$?
10206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10207   (exit $ac_status); }; }; then
10208   ac_cv_lib_asound_snd_pcm_open=yes
10209 else
10210   echo "$as_me: failed program was:" >&5
10211 sed 's/^/| /' conftest.$ac_ext >&5
10212
10213 ac_cv_lib_asound_snd_pcm_open=no
10214 fi
10215 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10216 LIBS=$ac_check_lib_save_LIBS
10217 fi
10218 echo "$as_me:$LINENO: result: $ac_cv_lib_asound_snd_pcm_open" >&5
10219 echo "${ECHO_T}$ac_cv_lib_asound_snd_pcm_open" >&6
10220 if test $ac_cv_lib_asound_snd_pcm_open = yes; then
10221
10222 cat >>confdefs.h <<\_ACEOF
10223 #define HAVE_ALSA 1
10224 _ACEOF
10225
10226         ALSALIBS="-lasound"
10227 fi
10228
10229 fi
10230
10231
10232 AUDIOIOLIBS=""
10233
10234
10235 for ac_header in libaudioio.h
10236 do
10237 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10238 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10239   echo "$as_me:$LINENO: checking for $ac_header" >&5
10240 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10241 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10242   echo $ECHO_N "(cached) $ECHO_C" >&6
10243 fi
10244 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10245 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10246 else
10247   # Is the header compilable?
10248 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10249 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10250 cat >conftest.$ac_ext <<_ACEOF
10251 #line $LINENO "configure"
10252 /* confdefs.h.  */
10253 _ACEOF
10254 cat confdefs.h >>conftest.$ac_ext
10255 cat >>conftest.$ac_ext <<_ACEOF
10256 /* end confdefs.h.  */
10257 $ac_includes_default
10258 #include <$ac_header>
10259 _ACEOF
10260 rm -f conftest.$ac_objext
10261 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10262   (eval $ac_compile) 2>&5
10263   ac_status=$?
10264   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10265   (exit $ac_status); } &&
10266          { ac_try='test -s conftest.$ac_objext'
10267   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10268   (eval $ac_try) 2>&5
10269   ac_status=$?
10270   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10271   (exit $ac_status); }; }; then
10272   ac_header_compiler=yes
10273 else
10274   echo "$as_me: failed program was:" >&5
10275 sed 's/^/| /' conftest.$ac_ext >&5
10276
10277 ac_header_compiler=no
10278 fi
10279 rm -f conftest.$ac_objext conftest.$ac_ext
10280 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10281 echo "${ECHO_T}$ac_header_compiler" >&6
10282
10283 # Is the header present?
10284 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10285 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10286 cat >conftest.$ac_ext <<_ACEOF
10287 #line $LINENO "configure"
10288 /* confdefs.h.  */
10289 _ACEOF
10290 cat confdefs.h >>conftest.$ac_ext
10291 cat >>conftest.$ac_ext <<_ACEOF
10292 /* end confdefs.h.  */
10293 #include <$ac_header>
10294 _ACEOF
10295 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10296   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10297   ac_status=$?
10298   grep -v '^ *+' conftest.er1 >conftest.err
10299   rm -f conftest.er1
10300   cat conftest.err >&5
10301   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10302   (exit $ac_status); } >/dev/null; then
10303   if test -s conftest.err; then
10304     ac_cpp_err=$ac_c_preproc_warn_flag
10305   else
10306     ac_cpp_err=
10307   fi
10308 else
10309   ac_cpp_err=yes
10310 fi
10311 if test -z "$ac_cpp_err"; then
10312   ac_header_preproc=yes
10313 else
10314   echo "$as_me: failed program was:" >&5
10315 sed 's/^/| /' conftest.$ac_ext >&5
10316
10317   ac_header_preproc=no
10318 fi
10319 rm -f conftest.err conftest.$ac_ext
10320 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10321 echo "${ECHO_T}$ac_header_preproc" >&6
10322
10323 # So?  What about this header?
10324 case $ac_header_compiler:$ac_header_preproc in
10325   yes:no )
10326     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10327 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10328     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10329 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10330     (
10331       cat <<\_ASBOX
10332 ## ------------------------------------ ##
10333 ## Report this to bug-autoconf@gnu.org. ##
10334 ## ------------------------------------ ##
10335 _ASBOX
10336     ) |
10337       sed "s/^/$as_me: WARNING:     /" >&2
10338     ;;
10339   no:yes )
10340     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10341 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10342     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10343 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10344     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10345 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10346     (
10347       cat <<\_ASBOX
10348 ## ------------------------------------ ##
10349 ## Report this to bug-autoconf@gnu.org. ##
10350 ## ------------------------------------ ##
10351 _ASBOX
10352     ) |
10353       sed "s/^/$as_me: WARNING:     /" >&2
10354     ;;
10355 esac
10356 echo "$as_me:$LINENO: checking for $ac_header" >&5
10357 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10358 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10359   echo $ECHO_N "(cached) $ECHO_C" >&6
10360 else
10361   eval "$as_ac_Header=$ac_header_preproc"
10362 fi
10363 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10364 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10365
10366 fi
10367 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10368   cat >>confdefs.h <<_ACEOF
10369 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10370 _ACEOF
10371  echo "$as_me:$LINENO: checking for AudioIOGetVersion in -laudioio" >&5
10372 echo $ECHO_N "checking for AudioIOGetVersion in -laudioio... $ECHO_C" >&6
10373 if test "${ac_cv_lib_audioio_AudioIOGetVersion+set}" = set; then
10374   echo $ECHO_N "(cached) $ECHO_C" >&6
10375 else
10376   ac_check_lib_save_LIBS=$LIBS
10377 LIBS="-laudioio  $LIBS"
10378 cat >conftest.$ac_ext <<_ACEOF
10379 #line $LINENO "configure"
10380 /* confdefs.h.  */
10381 _ACEOF
10382 cat confdefs.h >>conftest.$ac_ext
10383 cat >>conftest.$ac_ext <<_ACEOF
10384 /* end confdefs.h.  */
10385
10386 /* Override any gcc2 internal prototype to avoid an error.  */
10387 #ifdef __cplusplus
10388 extern "C"
10389 #endif
10390 /* We use char because int might match the return type of a gcc2
10391    builtin and then its argument prototype would still apply.  */
10392 char AudioIOGetVersion ();
10393 int
10394 main ()
10395 {
10396 AudioIOGetVersion ();
10397   ;
10398   return 0;
10399 }
10400 _ACEOF
10401 rm -f conftest.$ac_objext conftest$ac_exeext
10402 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10403   (eval $ac_link) 2>&5
10404   ac_status=$?
10405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10406   (exit $ac_status); } &&
10407          { ac_try='test -s conftest$ac_exeext'
10408   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10409   (eval $ac_try) 2>&5
10410   ac_status=$?
10411   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10412   (exit $ac_status); }; }; then
10413   ac_cv_lib_audioio_AudioIOGetVersion=yes
10414 else
10415   echo "$as_me: failed program was:" >&5
10416 sed 's/^/| /' conftest.$ac_ext >&5
10417
10418 ac_cv_lib_audioio_AudioIOGetVersion=no
10419 fi
10420 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10421 LIBS=$ac_check_lib_save_LIBS
10422 fi
10423 echo "$as_me:$LINENO: result: $ac_cv_lib_audioio_AudioIOGetVersion" >&5
10424 echo "${ECHO_T}$ac_cv_lib_audioio_AudioIOGetVersion" >&6
10425 if test $ac_cv_lib_audioio_AudioIOGetVersion = yes; then
10426   AUDIOIOLIBS="-laudioio"
10427
10428 cat >>confdefs.h <<\_ACEOF
10429 #define HAVE_LIBAUDIOIO 1
10430 _ACEOF
10431
10432 fi
10433
10434 fi
10435
10436 done
10437
10438
10439
10440 echo "$as_me:$LINENO: checking whether mmap64 works defined as mmap" >&5
10441 echo $ECHO_N "checking whether mmap64 works defined as mmap... $ECHO_C" >&6
10442 if test "${ac_cv_mmap64_works+set}" = set; then
10443   echo $ECHO_N "(cached) $ECHO_C" >&6
10444 else
10445   if test "$cross_compiling" = yes; then
10446   ac_cv_mmap64_works="no"
10447 else
10448   cat >conftest.$ac_ext <<_ACEOF
10449 #line $LINENO "configure"
10450 /* confdefs.h.  */
10451 _ACEOF
10452 cat confdefs.h >>conftest.$ac_ext
10453 cat >>conftest.$ac_ext <<_ACEOF
10454 /* end confdefs.h.  */
10455
10456                 #define _FILE_OFFSET_BITS 64
10457                 #include <stdio.h>
10458                 #include <unistd.h>
10459                 #include <fcntl.h>
10460                 #include <sys/mman.h>
10461                 #include <errno.h>
10462
10463                 int main(int argc,char **argv) {
10464                         int fd = open("conftest.map",O_CREAT|O_RDWR,0600);
10465                         if (fd == -1) exit(1);
10466
10467                         unlink("conftest.map");
10468
10469                         write(fd,"test",4);
10470
10471                         if ((-1 == mmap(0,4,PROT_READ|PROT_WRITE,MAP_SHARED,fd,0)) &&
10472                             (errno == EINVAL)
10473                         ) {
10474                                 exit(1);
10475                         }
10476                         close(fd);
10477                         fprintf(stderr,"success!\n");
10478                         exit(0);
10479                 }
10480
10481
10482 _ACEOF
10483 rm -f conftest$ac_exeext
10484 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10485   (eval $ac_link) 2>&5
10486   ac_status=$?
10487   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10488   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10489   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10490   (eval $ac_try) 2>&5
10491   ac_status=$?
10492   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10493   (exit $ac_status); }; }; then
10494   ac_cv_mmap64_works="yes"
10495 else
10496   echo "$as_me: program exited with status $ac_status" >&5
10497 echo "$as_me: failed program was:" >&5
10498 sed 's/^/| /' conftest.$ac_ext >&5
10499
10500 ( exit $ac_status )
10501 ac_cv_mmap64_works="no"
10502 fi
10503 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10504 fi
10505 fi
10506 echo "$as_me:$LINENO: result: $ac_cv_mmap64_works" >&5
10507 echo "${ECHO_T}$ac_cv_mmap64_works" >&6
10508
10509 if test "$ac_cv_mmap64_works" = "yes"
10510 then
10511
10512 cat >>confdefs.h <<\_ACEOF
10513 #define _FILE_OFFSET_BITS 64
10514 _ACEOF
10515
10516 fi
10517
10518
10519 if test "x${GCC}" = "xyes"
10520 then
10521   CFLAGS="$CFLAGS -Wall"
10522   echo "$as_me:$LINENO: checking for gcc strength-reduce bug" >&5
10523 echo $ECHO_N "checking for gcc strength-reduce bug... $ECHO_C" >&6
10524 if test "${ac_cv_c_gcc_strength_bug+set}" = set; then
10525   echo $ECHO_N "(cached) $ECHO_C" >&6
10526 else
10527   if test "$cross_compiling" = yes; then
10528   ac_cv_c_gcc_strength_bug="yes"
10529 else
10530   cat >conftest.$ac_ext <<_ACEOF
10531 #line $LINENO "configure"
10532 /* confdefs.h.  */
10533 _ACEOF
10534 cat confdefs.h >>conftest.$ac_ext
10535 cat >>conftest.$ac_ext <<_ACEOF
10536 /* end confdefs.h.  */
10537
10538 int     L[4] = {0,1,2,3};
10539 int main(void) {
10540   static int Array[3];
10541   unsigned int B = 3;
10542   int i;
10543   for(i=0; i<B; i++) Array[i] = i - 3;
10544   for(i=0; i<4 - 1; i++) L[i] = L[i + 1];
10545   L[i] = 4;
10546
10547   exit( Array[1] != -2 || L[2] != 3);
10548 }
10549 _ACEOF
10550 rm -f conftest$ac_exeext
10551 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10552   (eval $ac_link) 2>&5
10553   ac_status=$?
10554   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10555   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10556   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10557   (eval $ac_try) 2>&5
10558   ac_status=$?
10559   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10560   (exit $ac_status); }; }; then
10561   ac_cv_c_gcc_strength_bug="no"
10562 else
10563   echo "$as_me: program exited with status $ac_status" >&5
10564 echo "$as_me: failed program was:" >&5
10565 sed 's/^/| /' conftest.$ac_ext >&5
10566
10567 ( exit $ac_status )
10568 ac_cv_c_gcc_strength_bug="yes"
10569 fi
10570 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10571 fi
10572 fi
10573 echo "$as_me:$LINENO: result: $ac_cv_c_gcc_strength_bug" >&5
10574 echo "${ECHO_T}$ac_cv_c_gcc_strength_bug" >&6
10575   if test "$ac_cv_c_gcc_strength_bug" = "yes"
10576   then
10577     CFLAGS="$CFLAGS -fno-strength-reduce"
10578   fi
10579
10580     echo "$as_me:$LINENO: checking for gcc -mpreferred-stack-boundary=2 support" >&5
10581 echo $ECHO_N "checking for gcc -mpreferred-stack-boundary=2 support... $ECHO_C" >&6
10582 if test "${ac_cv_c_gcc_stack_boundary+set}" = set; then
10583   echo $ECHO_N "(cached) $ECHO_C" >&6
10584 else
10585   ac_wine_try_cflags_saved=$CFLAGS
10586 CFLAGS="$CFLAGS -mpreferred-stack-boundary=2"
10587 cat >conftest.$ac_ext <<_ACEOF
10588 #line $LINENO "configure"
10589 /* confdefs.h.  */
10590 _ACEOF
10591 cat confdefs.h >>conftest.$ac_ext
10592 cat >>conftest.$ac_ext <<_ACEOF
10593 /* end confdefs.h.  */
10594
10595 int
10596 main ()
10597 {
10598
10599   ;
10600   return 0;
10601 }
10602 _ACEOF
10603 rm -f conftest.$ac_objext conftest$ac_exeext
10604 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10605   (eval $ac_link) 2>&5
10606   ac_status=$?
10607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10608   (exit $ac_status); } &&
10609          { ac_try='test -s conftest$ac_exeext'
10610   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10611   (eval $ac_try) 2>&5
10612   ac_status=$?
10613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10614   (exit $ac_status); }; }; then
10615   ac_cv_c_gcc_stack_boundary="yes"
10616 else
10617   echo "$as_me: failed program was:" >&5
10618 sed 's/^/| /' conftest.$ac_ext >&5
10619
10620 ac_cv_c_gcc_stack_boundary="no"
10621 fi
10622 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10623 CFLAGS=$ac_wine_try_cflags_saved
10624 fi
10625 echo "$as_me:$LINENO: result: $ac_cv_c_gcc_stack_boundary" >&5
10626 echo "${ECHO_T}$ac_cv_c_gcc_stack_boundary" >&6
10627   if test "$ac_cv_c_gcc_stack_boundary" = "yes"
10628   then
10629     CFLAGS="$CFLAGS -mpreferred-stack-boundary=2"
10630   fi
10631
10632     echo "$as_me:$LINENO: checking for gcc -gstabs+ support" >&5
10633 echo $ECHO_N "checking for gcc -gstabs+ support... $ECHO_C" >&6
10634 if test "${ac_cv_c_gcc_gstabs+set}" = set; then
10635   echo $ECHO_N "(cached) $ECHO_C" >&6
10636 else
10637   ac_wine_try_cflags_saved=$CFLAGS
10638 CFLAGS="$CFLAGS -gstabs+"
10639 cat >conftest.$ac_ext <<_ACEOF
10640 #line $LINENO "configure"
10641 /* confdefs.h.  */
10642 _ACEOF
10643 cat confdefs.h >>conftest.$ac_ext
10644 cat >>conftest.$ac_ext <<_ACEOF
10645 /* end confdefs.h.  */
10646
10647 int
10648 main ()
10649 {
10650
10651   ;
10652   return 0;
10653 }
10654 _ACEOF
10655 rm -f conftest.$ac_objext conftest$ac_exeext
10656 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10657   (eval $ac_link) 2>&5
10658   ac_status=$?
10659   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10660   (exit $ac_status); } &&
10661          { ac_try='test -s conftest$ac_exeext'
10662   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10663   (eval $ac_try) 2>&5
10664   ac_status=$?
10665   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10666   (exit $ac_status); }; }; then
10667   ac_cv_c_gcc_gstabs="yes"
10668 else
10669   echo "$as_me: failed program was:" >&5
10670 sed 's/^/| /' conftest.$ac_ext >&5
10671
10672 ac_cv_c_gcc_gstabs="no"
10673 fi
10674 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10675 CFLAGS=$ac_wine_try_cflags_saved
10676 fi
10677 echo "$as_me:$LINENO: result: $ac_cv_c_gcc_gstabs" >&5
10678 echo "${ECHO_T}$ac_cv_c_gcc_gstabs" >&6
10679   if test "$ac_cv_c_gcc_gstabs" = "yes"
10680   then
10681     CFLAGS="$CFLAGS -gstabs+"
10682   fi
10683 fi
10684
10685
10686 echo "$as_me:$LINENO: checking how to define a function in assembly code" >&5
10687 echo $ECHO_N "checking how to define a function in assembly code... $ECHO_C" >&6
10688 if test "${ac_cv_asm_func_def+set}" = set; then
10689   echo $ECHO_N "(cached) $ECHO_C" >&6
10690 else
10691   cat >conftest.$ac_ext <<_ACEOF
10692 #line $LINENO "configure"
10693 /* confdefs.h.  */
10694 _ACEOF
10695 cat confdefs.h >>conftest.$ac_ext
10696 cat >>conftest.$ac_ext <<_ACEOF
10697 /* end confdefs.h.  */
10698 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"); }
10699
10700 int
10701 main ()
10702 {
10703
10704   ;
10705   return 0;
10706 }
10707 _ACEOF
10708 rm -f conftest.$ac_objext conftest$ac_exeext
10709 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10710   (eval $ac_link) 2>&5
10711   ac_status=$?
10712   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10713   (exit $ac_status); } &&
10714          { ac_try='test -s conftest$ac_exeext'
10715   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10716   (eval $ac_try) 2>&5
10717   ac_status=$?
10718   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10719   (exit $ac_status); }; }; then
10720   ac_cv_asm_func_def=".def"
10721 else
10722   echo "$as_me: failed program was:" >&5
10723 sed 's/^/| /' conftest.$ac_ext >&5
10724
10725 cat >conftest.$ac_ext <<_ACEOF
10726 #line $LINENO "configure"
10727 /* confdefs.h.  */
10728 _ACEOF
10729 cat confdefs.h >>conftest.$ac_ext
10730 cat >>conftest.$ac_ext <<_ACEOF
10731 /* end confdefs.h.  */
10732 void ac_asm(void) { asm("\t.globl _ac_test\n\t.type _ac_test,@function\n_ac_test:\t.long 0"); }
10733
10734 int
10735 main ()
10736 {
10737
10738   ;
10739   return 0;
10740 }
10741 _ACEOF
10742 rm -f conftest.$ac_objext conftest$ac_exeext
10743 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10744   (eval $ac_link) 2>&5
10745   ac_status=$?
10746   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10747   (exit $ac_status); } &&
10748          { ac_try='test -s conftest$ac_exeext'
10749   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10750   (eval $ac_try) 2>&5
10751   ac_status=$?
10752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10753   (exit $ac_status); }; }; then
10754   ac_cv_asm_func_def=".type @function"
10755 else
10756   echo "$as_me: failed program was:" >&5
10757 sed 's/^/| /' conftest.$ac_ext >&5
10758
10759 cat >conftest.$ac_ext <<_ACEOF
10760 #line $LINENO "configure"
10761 /* confdefs.h.  */
10762 _ACEOF
10763 cat confdefs.h >>conftest.$ac_ext
10764 cat >>conftest.$ac_ext <<_ACEOF
10765 /* end confdefs.h.  */
10766 void ac_asm(void) { asm("\t.globl _ac_test\n\t.type _ac_test,2\n_ac_test:\t.long 0"); }
10767
10768 int
10769 main ()
10770 {
10771
10772   ;
10773   return 0;
10774 }
10775 _ACEOF
10776 rm -f conftest.$ac_objext conftest$ac_exeext
10777 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10778   (eval $ac_link) 2>&5
10779   ac_status=$?
10780   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10781   (exit $ac_status); } &&
10782          { ac_try='test -s conftest$ac_exeext'
10783   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10784   (eval $ac_try) 2>&5
10785   ac_status=$?
10786   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10787   (exit $ac_status); }; }; then
10788   ac_cv_asm_func_def=".type 2"
10789 else
10790   echo "$as_me: failed program was:" >&5
10791 sed 's/^/| /' conftest.$ac_ext >&5
10792
10793 ac_cv_asm_func_def="unknown"
10794 fi
10795 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10796 fi
10797 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10798 fi
10799 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10800 fi
10801 echo "$as_me:$LINENO: result: $ac_cv_asm_func_def" >&5
10802 echo "${ECHO_T}$ac_cv_asm_func_def" >&6
10803
10804
10805
10806 case "$ac_cv_asm_func_def" in
10807   ".def")
10808      cat >>confdefs.h <<\_ACEOF
10809 #define __ASM_FUNC(name) ".def " __ASM_NAME(name) "; .scl 2; .type 32; .endef"
10810 _ACEOF
10811  ;;
10812   ".type @function")
10813      cat >>confdefs.h <<\_ACEOF
10814 #define __ASM_FUNC(name) ".type " __ASM_NAME(name) ",@function"
10815 _ACEOF
10816  ;;
10817   ".type 2")
10818      cat >>confdefs.h <<\_ACEOF
10819 #define __ASM_FUNC(name) ".type " __ASM_NAME(name) ",2"
10820 _ACEOF
10821  ;;
10822   *)
10823      cat >>confdefs.h <<\_ACEOF
10824 #define __ASM_FUNC(name) ""
10825 _ACEOF
10826  ;;
10827 esac
10828
10829
10830 echo "$as_me:$LINENO: checking whether external symbols need an underscore prefix" >&5
10831 echo $ECHO_N "checking whether external symbols need an underscore prefix... $ECHO_C" >&6
10832 if test "${ac_cv_c_extern_prefix+set}" = set; then
10833   echo $ECHO_N "(cached) $ECHO_C" >&6
10834 else
10835   cat >conftest.$ac_ext <<_ACEOF
10836 #line $LINENO "configure"
10837 /* confdefs.h.  */
10838 _ACEOF
10839 cat confdefs.h >>conftest.$ac_ext
10840 cat >>conftest.$ac_ext <<_ACEOF
10841 /* end confdefs.h.  */
10842 void ac_asm(void) { asm(".globl _ac_test\n_ac_test:\t.long 0"); }
10843 extern int ac_test;
10844 int
10845 main ()
10846 {
10847 if (ac_test) return 1
10848   ;
10849   return 0;
10850 }
10851 _ACEOF
10852 rm -f conftest.$ac_objext conftest$ac_exeext
10853 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10854   (eval $ac_link) 2>&5
10855   ac_status=$?
10856   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10857   (exit $ac_status); } &&
10858          { ac_try='test -s conftest$ac_exeext'
10859   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10860   (eval $ac_try) 2>&5
10861   ac_status=$?
10862   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10863   (exit $ac_status); }; }; then
10864   ac_cv_c_extern_prefix="yes"
10865 else
10866   echo "$as_me: failed program was:" >&5
10867 sed 's/^/| /' conftest.$ac_ext >&5
10868
10869 ac_cv_c_extern_prefix="no"
10870 fi
10871 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10872 fi
10873 echo "$as_me:$LINENO: result: $ac_cv_c_extern_prefix" >&5
10874 echo "${ECHO_T}$ac_cv_c_extern_prefix" >&6
10875
10876
10877
10878 if test "$ac_cv_c_extern_prefix" = "yes"
10879 then
10880   cat >>confdefs.h <<\_ACEOF
10881 #define __ASM_NAME(name) "_" name
10882 _ACEOF
10883
10884 else
10885   cat >>confdefs.h <<\_ACEOF
10886 #define __ASM_NAME(name) name
10887 _ACEOF
10888
10889 fi
10890
10891
10892 echo "$as_me:$LINENO: checking whether assembler accepts .string" >&5
10893 echo $ECHO_N "checking whether assembler accepts .string... $ECHO_C" >&6
10894 if test "${ac_cv_c_asm_string+set}" = set; then
10895   echo $ECHO_N "(cached) $ECHO_C" >&6
10896 else
10897   cat >conftest.$ac_ext <<_ACEOF
10898 #line $LINENO "configure"
10899 /* confdefs.h.  */
10900 _ACEOF
10901 cat confdefs.h >>conftest.$ac_ext
10902 cat >>conftest.$ac_ext <<_ACEOF
10903 /* end confdefs.h.  */
10904 void ac_asm(void) { asm(".data\n\t.string \"test\"\n\t.text"); }
10905
10906 int
10907 main ()
10908 {
10909
10910   ;
10911   return 0;
10912 }
10913 _ACEOF
10914 rm -f conftest.$ac_objext conftest$ac_exeext
10915 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10916   (eval $ac_link) 2>&5
10917   ac_status=$?
10918   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10919   (exit $ac_status); } &&
10920          { ac_try='test -s conftest$ac_exeext'
10921   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10922   (eval $ac_try) 2>&5
10923   ac_status=$?
10924   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10925   (exit $ac_status); }; }; then
10926   ac_cv_c_asm_string="yes"
10927 else
10928   echo "$as_me: failed program was:" >&5
10929 sed 's/^/| /' conftest.$ac_ext >&5
10930
10931 ac_cv_c_asm_string="no"
10932 fi
10933 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10934 fi
10935 echo "$as_me:$LINENO: result: $ac_cv_c_asm_string" >&5
10936 echo "${ECHO_T}$ac_cv_c_asm_string" >&6
10937 if test "$ac_cv_c_asm_string" = "yes"
10938 then
10939
10940 cat >>confdefs.h <<\_ACEOF
10941 #define HAVE_ASM_STRING 1
10942 _ACEOF
10943
10944 fi
10945
10946
10947 DLLEXT=""
10948
10949 DLLFLAGS=""
10950
10951 DLLIBS=""
10952
10953 LDDLLFLAGS=""
10954
10955 LDSHARED=""
10956
10957 LIBEXT="so"
10958
10959 IMPLIBEXT="def"
10960
10961
10962 case $host_os in
10963   cygwin*|mingw32*)
10964     if test -n "$ac_tool_prefix"; then
10965   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
10966 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
10967 echo "$as_me:$LINENO: checking for $ac_word" >&5
10968 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10969 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
10970   echo $ECHO_N "(cached) $ECHO_C" >&6
10971 else
10972   if test -n "$DLLTOOL"; then
10973   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
10974 else
10975 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10976 for as_dir in $PATH
10977 do
10978   IFS=$as_save_IFS
10979   test -z "$as_dir" && as_dir=.
10980   for ac_exec_ext in '' $ac_executable_extensions; do
10981   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10982     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
10983     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10984     break 2
10985   fi
10986 done
10987 done
10988
10989 fi
10990 fi
10991 DLLTOOL=$ac_cv_prog_DLLTOOL
10992 if test -n "$DLLTOOL"; then
10993   echo "$as_me:$LINENO: result: $DLLTOOL" >&5
10994 echo "${ECHO_T}$DLLTOOL" >&6
10995 else
10996   echo "$as_me:$LINENO: result: no" >&5
10997 echo "${ECHO_T}no" >&6
10998 fi
10999
11000 fi
11001 if test -z "$ac_cv_prog_DLLTOOL"; then
11002   ac_ct_DLLTOOL=$DLLTOOL
11003   # Extract the first word of "dlltool", so it can be a program name with args.
11004 set dummy dlltool; ac_word=$2
11005 echo "$as_me:$LINENO: checking for $ac_word" >&5
11006 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11007 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
11008   echo $ECHO_N "(cached) $ECHO_C" >&6
11009 else
11010   if test -n "$ac_ct_DLLTOOL"; then
11011   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
11012 else
11013 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11014 for as_dir in $PATH
11015 do
11016   IFS=$as_save_IFS
11017   test -z "$as_dir" && as_dir=.
11018   for ac_exec_ext in '' $ac_executable_extensions; do
11019   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11020     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
11021     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11022     break 2
11023   fi
11024 done
11025 done
11026
11027   test -z "$ac_cv_prog_ac_ct_DLLTOOL" && ac_cv_prog_ac_ct_DLLTOOL="false"
11028 fi
11029 fi
11030 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
11031 if test -n "$ac_ct_DLLTOOL"; then
11032   echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
11033 echo "${ECHO_T}$ac_ct_DLLTOOL" >&6
11034 else
11035   echo "$as_me:$LINENO: result: no" >&5
11036 echo "${ECHO_T}no" >&6
11037 fi
11038
11039   DLLTOOL=$ac_ct_DLLTOOL
11040 else
11041   DLLTOOL="$ac_cv_prog_DLLTOOL"
11042 fi
11043
11044     if test -n "$ac_tool_prefix"; then
11045   # Extract the first word of "${ac_tool_prefix}dllwrap", so it can be a program name with args.
11046 set dummy ${ac_tool_prefix}dllwrap; ac_word=$2
11047 echo "$as_me:$LINENO: checking for $ac_word" >&5
11048 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11049 if test "${ac_cv_prog_DLLWRAP+set}" = set; then
11050   echo $ECHO_N "(cached) $ECHO_C" >&6
11051 else
11052   if test -n "$DLLWRAP"; then
11053   ac_cv_prog_DLLWRAP="$DLLWRAP" # Let the user override the test.
11054 else
11055 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11056 for as_dir in $PATH
11057 do
11058   IFS=$as_save_IFS
11059   test -z "$as_dir" && as_dir=.
11060   for ac_exec_ext in '' $ac_executable_extensions; do
11061   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11062     ac_cv_prog_DLLWRAP="${ac_tool_prefix}dllwrap"
11063     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11064     break 2
11065   fi
11066 done
11067 done
11068
11069 fi
11070 fi
11071 DLLWRAP=$ac_cv_prog_DLLWRAP
11072 if test -n "$DLLWRAP"; then
11073   echo "$as_me:$LINENO: result: $DLLWRAP" >&5
11074 echo "${ECHO_T}$DLLWRAP" >&6
11075 else
11076   echo "$as_me:$LINENO: result: no" >&5
11077 echo "${ECHO_T}no" >&6
11078 fi
11079
11080 fi
11081 if test -z "$ac_cv_prog_DLLWRAP"; then
11082   ac_ct_DLLWRAP=$DLLWRAP
11083   # Extract the first word of "dllwrap", so it can be a program name with args.
11084 set dummy dllwrap; ac_word=$2
11085 echo "$as_me:$LINENO: checking for $ac_word" >&5
11086 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11087 if test "${ac_cv_prog_ac_ct_DLLWRAP+set}" = set; then
11088   echo $ECHO_N "(cached) $ECHO_C" >&6
11089 else
11090   if test -n "$ac_ct_DLLWRAP"; then
11091   ac_cv_prog_ac_ct_DLLWRAP="$ac_ct_DLLWRAP" # Let the user override the test.
11092 else
11093 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11094 for as_dir in $PATH
11095 do
11096   IFS=$as_save_IFS
11097   test -z "$as_dir" && as_dir=.
11098   for ac_exec_ext in '' $ac_executable_extensions; do
11099   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11100     ac_cv_prog_ac_ct_DLLWRAP="dllwrap"
11101     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11102     break 2
11103   fi
11104 done
11105 done
11106
11107   test -z "$ac_cv_prog_ac_ct_DLLWRAP" && ac_cv_prog_ac_ct_DLLWRAP="false"
11108 fi
11109 fi
11110 ac_ct_DLLWRAP=$ac_cv_prog_ac_ct_DLLWRAP
11111 if test -n "$ac_ct_DLLWRAP"; then
11112   echo "$as_me:$LINENO: result: $ac_ct_DLLWRAP" >&5
11113 echo "${ECHO_T}$ac_ct_DLLWRAP" >&6
11114 else
11115   echo "$as_me:$LINENO: result: no" >&5
11116 echo "${ECHO_T}no" >&6
11117 fi
11118
11119   DLLWRAP=$ac_ct_DLLWRAP
11120 else
11121   DLLWRAP="$ac_cv_prog_DLLWRAP"
11122 fi
11123
11124     if test "$DLLWRAP" = "false"; then
11125       LIBEXT="a"
11126     else
11127             LIBEXT="dll"
11128     fi
11129     IMPLIBEXT="a"
11130     ;;
11131   *)
11132
11133 for ac_header in dlfcn.h
11134 do
11135 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11136 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11137   echo "$as_me:$LINENO: checking for $ac_header" >&5
11138 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11139 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11140   echo $ECHO_N "(cached) $ECHO_C" >&6
11141 fi
11142 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11143 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11144 else
11145   # Is the header compilable?
11146 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11147 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11148 cat >conftest.$ac_ext <<_ACEOF
11149 #line $LINENO "configure"
11150 /* confdefs.h.  */
11151 _ACEOF
11152 cat confdefs.h >>conftest.$ac_ext
11153 cat >>conftest.$ac_ext <<_ACEOF
11154 /* end confdefs.h.  */
11155 $ac_includes_default
11156 #include <$ac_header>
11157 _ACEOF
11158 rm -f conftest.$ac_objext
11159 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11160   (eval $ac_compile) 2>&5
11161   ac_status=$?
11162   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11163   (exit $ac_status); } &&
11164          { ac_try='test -s conftest.$ac_objext'
11165   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11166   (eval $ac_try) 2>&5
11167   ac_status=$?
11168   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11169   (exit $ac_status); }; }; then
11170   ac_header_compiler=yes
11171 else
11172   echo "$as_me: failed program was:" >&5
11173 sed 's/^/| /' conftest.$ac_ext >&5
11174
11175 ac_header_compiler=no
11176 fi
11177 rm -f conftest.$ac_objext conftest.$ac_ext
11178 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11179 echo "${ECHO_T}$ac_header_compiler" >&6
11180
11181 # Is the header present?
11182 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11183 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11184 cat >conftest.$ac_ext <<_ACEOF
11185 #line $LINENO "configure"
11186 /* confdefs.h.  */
11187 _ACEOF
11188 cat confdefs.h >>conftest.$ac_ext
11189 cat >>conftest.$ac_ext <<_ACEOF
11190 /* end confdefs.h.  */
11191 #include <$ac_header>
11192 _ACEOF
11193 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11194   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11195   ac_status=$?
11196   grep -v '^ *+' conftest.er1 >conftest.err
11197   rm -f conftest.er1
11198   cat conftest.err >&5
11199   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11200   (exit $ac_status); } >/dev/null; then
11201   if test -s conftest.err; then
11202     ac_cpp_err=$ac_c_preproc_warn_flag
11203   else
11204     ac_cpp_err=
11205   fi
11206 else
11207   ac_cpp_err=yes
11208 fi
11209 if test -z "$ac_cpp_err"; then
11210   ac_header_preproc=yes
11211 else
11212   echo "$as_me: failed program was:" >&5
11213 sed 's/^/| /' conftest.$ac_ext >&5
11214
11215   ac_header_preproc=no
11216 fi
11217 rm -f conftest.err conftest.$ac_ext
11218 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11219 echo "${ECHO_T}$ac_header_preproc" >&6
11220
11221 # So?  What about this header?
11222 case $ac_header_compiler:$ac_header_preproc in
11223   yes:no )
11224     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11225 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11226     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11227 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11228     (
11229       cat <<\_ASBOX
11230 ## ------------------------------------ ##
11231 ## Report this to bug-autoconf@gnu.org. ##
11232 ## ------------------------------------ ##
11233 _ASBOX
11234     ) |
11235       sed "s/^/$as_me: WARNING:     /" >&2
11236     ;;
11237   no:yes )
11238     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11239 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11240     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11241 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11242     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11243 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11244     (
11245       cat <<\_ASBOX
11246 ## ------------------------------------ ##
11247 ## Report this to bug-autoconf@gnu.org. ##
11248 ## ------------------------------------ ##
11249 _ASBOX
11250     ) |
11251       sed "s/^/$as_me: WARNING:     /" >&2
11252     ;;
11253 esac
11254 echo "$as_me:$LINENO: checking for $ac_header" >&5
11255 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11256 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11257   echo $ECHO_N "(cached) $ECHO_C" >&6
11258 else
11259   eval "$as_ac_Header=$ac_header_preproc"
11260 fi
11261 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11262 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11263
11264 fi
11265 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11266   cat >>confdefs.h <<_ACEOF
11267 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11268 _ACEOF
11269
11270 for ac_func in dlopen
11271 do
11272 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11273 echo "$as_me:$LINENO: checking for $ac_func" >&5
11274 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11275 if eval "test \"\${$as_ac_var+set}\" = set"; then
11276   echo $ECHO_N "(cached) $ECHO_C" >&6
11277 else
11278   cat >conftest.$ac_ext <<_ACEOF
11279 #line $LINENO "configure"
11280 /* confdefs.h.  */
11281 _ACEOF
11282 cat confdefs.h >>conftest.$ac_ext
11283 cat >>conftest.$ac_ext <<_ACEOF
11284 /* end confdefs.h.  */
11285 /* System header to define __stub macros and hopefully few prototypes,
11286     which can conflict with char $ac_func (); below.
11287     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11288     <limits.h> exists even on freestanding compilers.  */
11289 #ifdef __STDC__
11290 # include <limits.h>
11291 #else
11292 # include <assert.h>
11293 #endif
11294 /* Override any gcc2 internal prototype to avoid an error.  */
11295 #ifdef __cplusplus
11296 extern "C"
11297 {
11298 #endif
11299 /* We use char because int might match the return type of a gcc2
11300    builtin and then its argument prototype would still apply.  */
11301 char $ac_func ();
11302 /* The GNU C library defines this for functions which it implements
11303     to always fail with ENOSYS.  Some functions are actually named
11304     something starting with __ and the normal name is an alias.  */
11305 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11306 choke me
11307 #else
11308 char (*f) () = $ac_func;
11309 #endif
11310 #ifdef __cplusplus
11311 }
11312 #endif
11313
11314 int
11315 main ()
11316 {
11317 return f != $ac_func;
11318   ;
11319   return 0;
11320 }
11321 _ACEOF
11322 rm -f conftest.$ac_objext conftest$ac_exeext
11323 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11324   (eval $ac_link) 2>&5
11325   ac_status=$?
11326   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11327   (exit $ac_status); } &&
11328          { ac_try='test -s conftest$ac_exeext'
11329   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11330   (eval $ac_try) 2>&5
11331   ac_status=$?
11332   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11333   (exit $ac_status); }; }; then
11334   eval "$as_ac_var=yes"
11335 else
11336   echo "$as_me: failed program was:" >&5
11337 sed 's/^/| /' conftest.$ac_ext >&5
11338
11339 eval "$as_ac_var=no"
11340 fi
11341 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11342 fi
11343 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11344 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11345 if test `eval echo '${'$as_ac_var'}'` = yes; then
11346   cat >>confdefs.h <<_ACEOF
11347 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11348 _ACEOF
11349
11350 else
11351   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11352 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11353 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11354   echo $ECHO_N "(cached) $ECHO_C" >&6
11355 else
11356   ac_check_lib_save_LIBS=$LIBS
11357 LIBS="-ldl  $LIBS"
11358 cat >conftest.$ac_ext <<_ACEOF
11359 #line $LINENO "configure"
11360 /* confdefs.h.  */
11361 _ACEOF
11362 cat confdefs.h >>conftest.$ac_ext
11363 cat >>conftest.$ac_ext <<_ACEOF
11364 /* end confdefs.h.  */
11365
11366 /* Override any gcc2 internal prototype to avoid an error.  */
11367 #ifdef __cplusplus
11368 extern "C"
11369 #endif
11370 /* We use char because int might match the return type of a gcc2
11371    builtin and then its argument prototype would still apply.  */
11372 char dlopen ();
11373 int
11374 main ()
11375 {
11376 dlopen ();
11377   ;
11378   return 0;
11379 }
11380 _ACEOF
11381 rm -f conftest.$ac_objext conftest$ac_exeext
11382 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11383   (eval $ac_link) 2>&5
11384   ac_status=$?
11385   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11386   (exit $ac_status); } &&
11387          { ac_try='test -s conftest$ac_exeext'
11388   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11389   (eval $ac_try) 2>&5
11390   ac_status=$?
11391   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11392   (exit $ac_status); }; }; then
11393   ac_cv_lib_dl_dlopen=yes
11394 else
11395   echo "$as_me: failed program was:" >&5
11396 sed 's/^/| /' conftest.$ac_ext >&5
11397
11398 ac_cv_lib_dl_dlopen=no
11399 fi
11400 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11401 LIBS=$ac_check_lib_save_LIBS
11402 fi
11403 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11404 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11405 if test $ac_cv_lib_dl_dlopen = yes; then
11406
11407 cat >>confdefs.h <<\_ACEOF
11408 #define HAVE_DLOPEN 1
11409 _ACEOF
11410
11411                           DLLIBS="-ldl"
11412 else
11413   LIBEXT="a"
11414 fi
11415
11416 fi
11417 done
11418
11419 else
11420   LIBEXT="a"
11421 fi
11422
11423 done
11424
11425
11426     if test "$LIBEXT" = "so"
11427     then
11428       DLLFLAGS="-fPIC"
11429       DLLEXT=".so"
11430       echo "$as_me:$LINENO: checking whether we can build a GNU style ELF dll" >&5
11431 echo $ECHO_N "checking whether we can build a GNU style ELF dll... $ECHO_C" >&6
11432 if test "${ac_cv_c_dll_gnuelf+set}" = set; then
11433   echo $ECHO_N "(cached) $ECHO_C" >&6
11434 else
11435   ac_wine_try_cflags_saved=$CFLAGS
11436 CFLAGS="$CFLAGS -fPIC -shared -Wl,-soname,conftest.so.1.0,-Bsymbolic"
11437 cat >conftest.$ac_ext <<_ACEOF
11438 #line $LINENO "configure"
11439 /* confdefs.h.  */
11440 _ACEOF
11441 cat confdefs.h >>conftest.$ac_ext
11442 cat >>conftest.$ac_ext <<_ACEOF
11443 /* end confdefs.h.  */
11444
11445 int
11446 main ()
11447 {
11448
11449   ;
11450   return 0;
11451 }
11452 _ACEOF
11453 rm -f conftest.$ac_objext conftest$ac_exeext
11454 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11455   (eval $ac_link) 2>&5
11456   ac_status=$?
11457   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11458   (exit $ac_status); } &&
11459          { ac_try='test -s conftest$ac_exeext'
11460   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11461   (eval $ac_try) 2>&5
11462   ac_status=$?
11463   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11464   (exit $ac_status); }; }; then
11465   ac_cv_c_dll_gnuelf="yes"
11466 else
11467   echo "$as_me: failed program was:" >&5
11468 sed 's/^/| /' conftest.$ac_ext >&5
11469
11470 ac_cv_c_dll_gnuelf="no"
11471 fi
11472 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11473 CFLAGS=$ac_wine_try_cflags_saved
11474 fi
11475 echo "$as_me:$LINENO: result: $ac_cv_c_dll_gnuelf" >&5
11476 echo "${ECHO_T}$ac_cv_c_dll_gnuelf" >&6
11477       if test "$ac_cv_c_dll_gnuelf" = "yes"
11478       then
11479         LDSHARED="\$(CC) -shared \$(SONAME:%=-Wl,-soname,%)"
11480         LDDLLFLAGS="-Wl,-Bsymbolic"
11481         echo "$as_me:$LINENO: checking whether the linker accepts -z defs" >&5
11482 echo $ECHO_N "checking whether the linker accepts -z defs... $ECHO_C" >&6
11483 if test "${ac_cv_c_dll_zdefs+set}" = set; then
11484   echo $ECHO_N "(cached) $ECHO_C" >&6
11485 else
11486   ac_wine_try_cflags_saved=$CFLAGS
11487 CFLAGS="$CFLAGS -fPIC -shared -Wl,-Bsymbolic,-z,defs"
11488 cat >conftest.$ac_ext <<_ACEOF
11489 #line $LINENO "configure"
11490 /* confdefs.h.  */
11491 _ACEOF
11492 cat confdefs.h >>conftest.$ac_ext
11493 cat >>conftest.$ac_ext <<_ACEOF
11494 /* end confdefs.h.  */
11495
11496 int
11497 main ()
11498 {
11499
11500   ;
11501   return 0;
11502 }
11503 _ACEOF
11504 rm -f conftest.$ac_objext conftest$ac_exeext
11505 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11506   (eval $ac_link) 2>&5
11507   ac_status=$?
11508   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11509   (exit $ac_status); } &&
11510          { ac_try='test -s conftest$ac_exeext'
11511   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11512   (eval $ac_try) 2>&5
11513   ac_status=$?
11514   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11515   (exit $ac_status); }; }; then
11516   ac_cv_c_dll_zdefs="yes"
11517 else
11518   echo "$as_me: failed program was:" >&5
11519 sed 's/^/| /' conftest.$ac_ext >&5
11520
11521 ac_cv_c_dll_zdefs="no"
11522 fi
11523 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11524 CFLAGS=$ac_wine_try_cflags_saved
11525 fi
11526 echo "$as_me:$LINENO: result: $ac_cv_c_dll_zdefs" >&5
11527 echo "${ECHO_T}$ac_cv_c_dll_zdefs" >&6
11528         if test "$ac_cv_c_dll_zdefs" = "yes"
11529         then
11530           LDDLLFLAGS="$LDDLLFLAGS,-z,defs"
11531         fi
11532       else
11533         echo "$as_me:$LINENO: checking whether we can build a UnixWare (Solaris) dll" >&5
11534 echo $ECHO_N "checking whether we can build a UnixWare (Solaris) dll... $ECHO_C" >&6
11535 if test "${ac_cv_c_dll_unixware+set}" = set; then
11536   echo $ECHO_N "(cached) $ECHO_C" >&6
11537 else
11538   ac_wine_try_cflags_saved=$CFLAGS
11539 CFLAGS="$CFLAGS -fPIC -Wl,-G,-h,conftest.so.1.0,-B,symbolic"
11540 cat >conftest.$ac_ext <<_ACEOF
11541 #line $LINENO "configure"
11542 /* confdefs.h.  */
11543 _ACEOF
11544 cat confdefs.h >>conftest.$ac_ext
11545 cat >>conftest.$ac_ext <<_ACEOF
11546 /* end confdefs.h.  */
11547
11548 int
11549 main ()
11550 {
11551
11552   ;
11553   return 0;
11554 }
11555 _ACEOF
11556 rm -f conftest.$ac_objext conftest$ac_exeext
11557 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11558   (eval $ac_link) 2>&5
11559   ac_status=$?
11560   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11561   (exit $ac_status); } &&
11562          { ac_try='test -s conftest$ac_exeext'
11563   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11564   (eval $ac_try) 2>&5
11565   ac_status=$?
11566   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11567   (exit $ac_status); }; }; then
11568   ac_cv_c_dll_unixware="yes"
11569 else
11570   echo "$as_me: failed program was:" >&5
11571 sed 's/^/| /' conftest.$ac_ext >&5
11572
11573 ac_cv_c_dll_unixware="no"
11574 fi
11575 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11576 CFLAGS=$ac_wine_try_cflags_saved
11577 fi
11578 echo "$as_me:$LINENO: result: $ac_cv_c_dll_unixware" >&5
11579 echo "${ECHO_T}$ac_cv_c_dll_unixware" >&6
11580         if test "$ac_cv_c_dll_unixware" = "yes"
11581         then
11582           LDSHARED="\$(CC) -Wl,-G \$(SONAME:%=-Wl,-h,%)"
11583           LDDLLFLAGS="-Wl,-B,symbolic"
11584         fi
11585       fi
11586     fi
11587
11588         CROSSTEST=""
11589
11590     if test "$cross_compiling" = "no"
11591     then
11592       for ac_prog in i586-mingw32msvc-gcc
11593 do
11594   # Extract the first word of "$ac_prog", so it can be a program name with args.
11595 set dummy $ac_prog; ac_word=$2
11596 echo "$as_me:$LINENO: checking for $ac_word" >&5
11597 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11598 if test "${ac_cv_prog_CROSSCC+set}" = set; then
11599   echo $ECHO_N "(cached) $ECHO_C" >&6
11600 else
11601   if test -n "$CROSSCC"; then
11602   ac_cv_prog_CROSSCC="$CROSSCC" # Let the user override the test.
11603 else
11604 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11605 for as_dir in $PATH
11606 do
11607   IFS=$as_save_IFS
11608   test -z "$as_dir" && as_dir=.
11609   for ac_exec_ext in '' $ac_executable_extensions; do
11610   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11611     ac_cv_prog_CROSSCC="$ac_prog"
11612     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11613     break 2
11614   fi
11615 done
11616 done
11617
11618 fi
11619 fi
11620 CROSSCC=$ac_cv_prog_CROSSCC
11621 if test -n "$CROSSCC"; then
11622   echo "$as_me:$LINENO: result: $CROSSCC" >&5
11623 echo "${ECHO_T}$CROSSCC" >&6
11624 else
11625   echo "$as_me:$LINENO: result: no" >&5
11626 echo "${ECHO_T}no" >&6
11627 fi
11628
11629   test -n "$CROSSCC" && break
11630 done
11631 test -n "$CROSSCC" || CROSSCC="false"
11632
11633       for ac_prog in i586-mingw32msvc-dlltool
11634 do
11635   # Extract the first word of "$ac_prog", so it can be a program name with args.
11636 set dummy $ac_prog; ac_word=$2
11637 echo "$as_me:$LINENO: checking for $ac_word" >&5
11638 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11639 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
11640   echo $ECHO_N "(cached) $ECHO_C" >&6
11641 else
11642   if test -n "$DLLTOOL"; then
11643   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
11644 else
11645 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11646 for as_dir in $PATH
11647 do
11648   IFS=$as_save_IFS
11649   test -z "$as_dir" && as_dir=.
11650   for ac_exec_ext in '' $ac_executable_extensions; do
11651   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11652     ac_cv_prog_DLLTOOL="$ac_prog"
11653     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11654     break 2
11655   fi
11656 done
11657 done
11658
11659 fi
11660 fi
11661 DLLTOOL=$ac_cv_prog_DLLTOOL
11662 if test -n "$DLLTOOL"; then
11663   echo "$as_me:$LINENO: result: $DLLTOOL" >&5
11664 echo "${ECHO_T}$DLLTOOL" >&6
11665 else
11666   echo "$as_me:$LINENO: result: no" >&5
11667 echo "${ECHO_T}no" >&6
11668 fi
11669
11670   test -n "$DLLTOOL" && break
11671 done
11672 test -n "$DLLTOOL" || DLLTOOL="false"
11673
11674       if test "$CROSSCC" != "false"; then CROSSTEST="\$(CROSSTEST)"; fi
11675     fi
11676     ;;
11677 esac
11678
11679 if test "$LIBEXT" = "a"; then
11680   { { echo "$as_me:$LINENO: error: could not find a way to build shared libraries.
11681 It is currently not possible to build Wine without shared library
11682 (.so) support to allow transparent switch between .so and .dll files.
11683 If you are using Linux, you will need a newer binutils.
11684 " >&5
11685 echo "$as_me: error: could not find a way to build shared libraries.
11686 It is currently not possible to build Wine without shared library
11687 (.so) support to allow transparent switch between .so and .dll files.
11688 If you are using Linux, you will need a newer binutils.
11689 " >&2;}
11690    { (exit 1); exit 1; }; }
11691 fi
11692
11693 case $build_os in
11694   cygwin*|mingw32*)
11695     LDPATH="PATH=\"\$(TOOLSDIR)/library:\$(TOOLSDIR)/unicode:\$\$PATH\""
11696  ;;
11697   *)
11698     LDPATH="LD_LIBRARY_PATH=\"\$(TOOLSDIR)/library:\$(TOOLSDIR)/unicode:\$\$LD_LIBRARY_PATH\""
11699  ;;
11700 esac
11701
11702 CRTLIBS=""
11703
11704 case $host_os in
11705   mingw32*)
11706     CRTLIBS="-lmsvcrt" ;;
11707 esac
11708
11709
11710 if test "$LIBEXT" = "so"
11711 then
11712   # Extract the first word of "ldd", so it can be a program name with args.
11713 set dummy ldd; ac_word=$2
11714 echo "$as_me:$LINENO: checking for $ac_word" >&5
11715 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11716 if test "${ac_cv_path_LDD+set}" = set; then
11717   echo $ECHO_N "(cached) $ECHO_C" >&6
11718 else
11719   case $LDD in
11720   [\\/]* | ?:[\\/]*)
11721   ac_cv_path_LDD="$LDD" # Let the user override the test with a path.
11722   ;;
11723   *)
11724   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11725 as_dummy="/sbin:/usr/sbin:$PATH"
11726 for as_dir in $as_dummy
11727 do
11728   IFS=$as_save_IFS
11729   test -z "$as_dir" && as_dir=.
11730   for ac_exec_ext in '' $ac_executable_extensions; do
11731   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11732     ac_cv_path_LDD="$as_dir/$ac_word$ac_exec_ext"
11733     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11734     break 2
11735   fi
11736 done
11737 done
11738
11739   test -z "$ac_cv_path_LDD" && ac_cv_path_LDD="true"
11740   ;;
11741 esac
11742 fi
11743 LDD=$ac_cv_path_LDD
11744
11745 if test -n "$LDD"; then
11746   echo "$as_me:$LINENO: result: $LDD" >&5
11747 echo "${ECHO_T}$LDD" >&6
11748 else
11749   echo "$as_me:$LINENO: result: no" >&5
11750 echo "${ECHO_T}no" >&6
11751 fi
11752
11753
11754 echo "$as_me:$LINENO: checking for -lX11 soname" >&5
11755 echo $ECHO_N "checking for -lX11 soname... $ECHO_C" >&6
11756 if test "${ac_cv_lib_soname_X11+set}" = set; then
11757   echo $ECHO_N "(cached) $ECHO_C" >&6
11758 else
11759   ac_get_soname_save_LIBS=$LIBS
11760 LIBS="-lX11 $X_LIBS $X_EXTRA_LIBS $LIBS"
11761   cat >conftest.$ac_ext <<_ACEOF
11762 #line $LINENO "configure"
11763 /* confdefs.h.  */
11764 _ACEOF
11765 cat confdefs.h >>conftest.$ac_ext
11766 cat >>conftest.$ac_ext <<_ACEOF
11767 /* end confdefs.h.  */
11768
11769 /* Override any gcc2 internal prototype to avoid an error.  */
11770 #ifdef __cplusplus
11771 extern "C"
11772 #endif
11773 /* We use char because int might match the return type of a gcc2
11774    builtin and then its argument prototype would still apply.  */
11775 char XCreateWindow ();
11776 int
11777 main ()
11778 {
11779 XCreateWindow ();
11780   ;
11781   return 0;
11782 }
11783 _ACEOF
11784 rm -f conftest.$ac_objext conftest$ac_exeext
11785 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11786   (eval $ac_link) 2>&5
11787   ac_status=$?
11788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11789   (exit $ac_status); } &&
11790          { ac_try='test -s conftest$ac_exeext'
11791   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11792   (eval $ac_try) 2>&5
11793   ac_status=$?
11794   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11795   (exit $ac_status); }; }; then
11796   ac_cv_lib_soname_X11=`$ac_cv_path_LDD conftest$ac_exeext | grep libX11\\.so | sed 's/^[       ]*\([^  ]*\)[   ]*=>.*$/\1/'`
11797   if test "x$ac_cv_lib_soname_X11" = "x"
11798   then
11799      ac_cv_lib_soname_X11="libX11.so"
11800   fi
11801 else
11802   echo "$as_me: failed program was:" >&5
11803 sed 's/^/| /' conftest.$ac_ext >&5
11804
11805 ac_cv_lib_soname_X11="libX11.so"
11806 fi
11807 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11808   LIBS=$ac_get_soname_save_LIBS
11809 fi
11810 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_X11" >&5
11811 echo "${ECHO_T}$ac_cv_lib_soname_X11" >&6
11812 if test "x$ac_cv_lib_soname_X11" != xNONE
11813 then
11814 cat >>confdefs.h <<_ACEOF
11815 #define SONAME_LIBX11 "$ac_cv_lib_soname_X11"
11816 _ACEOF
11817 fi
11818
11819 echo "$as_me:$LINENO: checking for -lXext soname" >&5
11820 echo $ECHO_N "checking for -lXext soname... $ECHO_C" >&6
11821 if test "${ac_cv_lib_soname_Xext+set}" = set; then
11822   echo $ECHO_N "(cached) $ECHO_C" >&6
11823 else
11824   ac_get_soname_save_LIBS=$LIBS
11825 LIBS="-lXext $X_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
11826   cat >conftest.$ac_ext <<_ACEOF
11827 #line $LINENO "configure"
11828 /* confdefs.h.  */
11829 _ACEOF
11830 cat confdefs.h >>conftest.$ac_ext
11831 cat >>conftest.$ac_ext <<_ACEOF
11832 /* end confdefs.h.  */
11833
11834 /* Override any gcc2 internal prototype to avoid an error.  */
11835 #ifdef __cplusplus
11836 extern "C"
11837 #endif
11838 /* We use char because int might match the return type of a gcc2
11839    builtin and then its argument prototype would still apply.  */
11840 char XextCreateExtension ();
11841 int
11842 main ()
11843 {
11844 XextCreateExtension ();
11845   ;
11846   return 0;
11847 }
11848 _ACEOF
11849 rm -f conftest.$ac_objext conftest$ac_exeext
11850 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11851   (eval $ac_link) 2>&5
11852   ac_status=$?
11853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11854   (exit $ac_status); } &&
11855          { ac_try='test -s conftest$ac_exeext'
11856   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11857   (eval $ac_try) 2>&5
11858   ac_status=$?
11859   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11860   (exit $ac_status); }; }; then
11861   ac_cv_lib_soname_Xext=`$ac_cv_path_LDD conftest$ac_exeext | grep libXext\\.so | sed 's/^[     ]*\([^  ]*\)[   ]*=>.*$/\1/'`
11862   if test "x$ac_cv_lib_soname_Xext" = "x"
11863   then
11864      ac_cv_lib_soname_Xext="libXext.so"
11865   fi
11866 else
11867   echo "$as_me: failed program was:" >&5
11868 sed 's/^/| /' conftest.$ac_ext >&5
11869
11870 ac_cv_lib_soname_Xext="libXext.so"
11871 fi
11872 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11873   LIBS=$ac_get_soname_save_LIBS
11874 fi
11875 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_Xext" >&5
11876 echo "${ECHO_T}$ac_cv_lib_soname_Xext" >&6
11877 if test "x$ac_cv_lib_soname_Xext" != xNONE
11878 then
11879 cat >>confdefs.h <<_ACEOF
11880 #define SONAME_LIBXEXT "$ac_cv_lib_soname_Xext"
11881 _ACEOF
11882 fi
11883
11884 echo "$as_me:$LINENO: checking for -lXrender soname" >&5
11885 echo $ECHO_N "checking for -lXrender soname... $ECHO_C" >&6
11886 if test "${ac_cv_lib_soname_Xrender+set}" = set; then
11887   echo $ECHO_N "(cached) $ECHO_C" >&6
11888 else
11889   ac_get_soname_save_LIBS=$LIBS
11890 LIBS="-lXrender $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
11891   cat >conftest.$ac_ext <<_ACEOF
11892 #line $LINENO "configure"
11893 /* confdefs.h.  */
11894 _ACEOF
11895 cat confdefs.h >>conftest.$ac_ext
11896 cat >>conftest.$ac_ext <<_ACEOF
11897 /* end confdefs.h.  */
11898
11899 /* Override any gcc2 internal prototype to avoid an error.  */
11900 #ifdef __cplusplus
11901 extern "C"
11902 #endif
11903 /* We use char because int might match the return type of a gcc2
11904    builtin and then its argument prototype would still apply.  */
11905 char XRenderQueryExtension ();
11906 int
11907 main ()
11908 {
11909 XRenderQueryExtension ();
11910   ;
11911   return 0;
11912 }
11913 _ACEOF
11914 rm -f conftest.$ac_objext conftest$ac_exeext
11915 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11916   (eval $ac_link) 2>&5
11917   ac_status=$?
11918   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11919   (exit $ac_status); } &&
11920          { ac_try='test -s conftest$ac_exeext'
11921   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11922   (eval $ac_try) 2>&5
11923   ac_status=$?
11924   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11925   (exit $ac_status); }; }; then
11926   ac_cv_lib_soname_Xrender=`$ac_cv_path_LDD conftest$ac_exeext | grep libXrender\\.so | sed 's/^[       ]*\([^  ]*\)[   ]*=>.*$/\1/'`
11927   if test "x$ac_cv_lib_soname_Xrender" = "x"
11928   then
11929      ac_cv_lib_soname_Xrender="libXrender.so"
11930   fi
11931 else
11932   echo "$as_me: failed program was:" >&5
11933 sed 's/^/| /' conftest.$ac_ext >&5
11934
11935 ac_cv_lib_soname_Xrender="libXrender.so"
11936 fi
11937 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11938   LIBS=$ac_get_soname_save_LIBS
11939 fi
11940 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_Xrender" >&5
11941 echo "${ECHO_T}$ac_cv_lib_soname_Xrender" >&6
11942 if test "x$ac_cv_lib_soname_Xrender" != xNONE
11943 then
11944 cat >>confdefs.h <<_ACEOF
11945 #define SONAME_LIBXRENDER "$ac_cv_lib_soname_Xrender"
11946 _ACEOF
11947 fi
11948
11949 echo "$as_me:$LINENO: checking for -lfreetype soname" >&5
11950 echo $ECHO_N "checking for -lfreetype soname... $ECHO_C" >&6
11951 if test "${ac_cv_lib_soname_freetype+set}" = set; then
11952   echo $ECHO_N "(cached) $ECHO_C" >&6
11953 else
11954   ac_get_soname_save_LIBS=$LIBS
11955 LIBS="-lfreetype $X_LIBS $LIBS"
11956   cat >conftest.$ac_ext <<_ACEOF
11957 #line $LINENO "configure"
11958 /* confdefs.h.  */
11959 _ACEOF
11960 cat confdefs.h >>conftest.$ac_ext
11961 cat >>conftest.$ac_ext <<_ACEOF
11962 /* end confdefs.h.  */
11963
11964 /* Override any gcc2 internal prototype to avoid an error.  */
11965 #ifdef __cplusplus
11966 extern "C"
11967 #endif
11968 /* We use char because int might match the return type of a gcc2
11969    builtin and then its argument prototype would still apply.  */
11970 char FT_Init_FreeType ();
11971 int
11972 main ()
11973 {
11974 FT_Init_FreeType ();
11975   ;
11976   return 0;
11977 }
11978 _ACEOF
11979 rm -f conftest.$ac_objext conftest$ac_exeext
11980 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11981   (eval $ac_link) 2>&5
11982   ac_status=$?
11983   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11984   (exit $ac_status); } &&
11985          { ac_try='test -s conftest$ac_exeext'
11986   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11987   (eval $ac_try) 2>&5
11988   ac_status=$?
11989   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11990   (exit $ac_status); }; }; then
11991   ac_cv_lib_soname_freetype=`$ac_cv_path_LDD conftest$ac_exeext | grep libfreetype\\.so | sed 's/^[     ]*\([^  ]*\)[   ]*=>.*$/\1/'`
11992   if test "x$ac_cv_lib_soname_freetype" = "x"
11993   then
11994      ac_cv_lib_soname_freetype="libfreetype.so"
11995   fi
11996 else
11997   echo "$as_me: failed program was:" >&5
11998 sed 's/^/| /' conftest.$ac_ext >&5
11999
12000 ac_cv_lib_soname_freetype="libfreetype.so"
12001 fi
12002 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12003   LIBS=$ac_get_soname_save_LIBS
12004 fi
12005 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_freetype" >&5
12006 echo "${ECHO_T}$ac_cv_lib_soname_freetype" >&6
12007 if test "x$ac_cv_lib_soname_freetype" != xNONE
12008 then
12009 cat >>confdefs.h <<_ACEOF
12010 #define SONAME_LIBFREETYPE "$ac_cv_lib_soname_freetype"
12011 _ACEOF
12012 fi
12013
12014 echo "$as_me:$LINENO: checking for -lGL soname" >&5
12015 echo $ECHO_N "checking for -lGL soname... $ECHO_C" >&6
12016 if test "${ac_cv_lib_soname_GL+set}" = set; then
12017   echo $ECHO_N "(cached) $ECHO_C" >&6
12018 else
12019   ac_get_soname_save_LIBS=$LIBS
12020 LIBS="-lGL $X_LIBS $X_EXTRA_LIBS $LIBS"
12021   cat >conftest.$ac_ext <<_ACEOF
12022 #line $LINENO "configure"
12023 /* confdefs.h.  */
12024 _ACEOF
12025 cat confdefs.h >>conftest.$ac_ext
12026 cat >>conftest.$ac_ext <<_ACEOF
12027 /* end confdefs.h.  */
12028
12029 /* Override any gcc2 internal prototype to avoid an error.  */
12030 #ifdef __cplusplus
12031 extern "C"
12032 #endif
12033 /* We use char because int might match the return type of a gcc2
12034    builtin and then its argument prototype would still apply.  */
12035 char glXQueryExtension ();
12036 int
12037 main ()
12038 {
12039 glXQueryExtension ();
12040   ;
12041   return 0;
12042 }
12043 _ACEOF
12044 rm -f conftest.$ac_objext conftest$ac_exeext
12045 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12046   (eval $ac_link) 2>&5
12047   ac_status=$?
12048   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12049   (exit $ac_status); } &&
12050          { ac_try='test -s conftest$ac_exeext'
12051   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12052   (eval $ac_try) 2>&5
12053   ac_status=$?
12054   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12055   (exit $ac_status); }; }; then
12056   ac_cv_lib_soname_GL=`$ac_cv_path_LDD conftest$ac_exeext | grep libGL\\.so | sed 's/^[         ]*\([^  ]*\)[   ]*=>.*$/\1/'`
12057   if test "x$ac_cv_lib_soname_GL" = "x"
12058   then
12059      ac_cv_lib_soname_GL="libGL.so"
12060   fi
12061 else
12062   echo "$as_me: failed program was:" >&5
12063 sed 's/^/| /' conftest.$ac_ext >&5
12064
12065 ac_cv_lib_soname_GL="libGL.so"
12066 fi
12067 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12068   LIBS=$ac_get_soname_save_LIBS
12069 fi
12070 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_GL" >&5
12071 echo "${ECHO_T}$ac_cv_lib_soname_GL" >&6
12072 if test "x$ac_cv_lib_soname_GL" != xNONE
12073 then
12074 cat >>confdefs.h <<_ACEOF
12075 #define SONAME_LIBGL "$ac_cv_lib_soname_GL"
12076 _ACEOF
12077 fi
12078
12079 echo "$as_me:$LINENO: checking for -lcups soname" >&5
12080 echo $ECHO_N "checking for -lcups soname... $ECHO_C" >&6
12081 if test "${ac_cv_lib_soname_cups+set}" = set; then
12082   echo $ECHO_N "(cached) $ECHO_C" >&6
12083 else
12084   ac_get_soname_save_LIBS=$LIBS
12085 LIBS="-lcups  $LIBS"
12086   cat >conftest.$ac_ext <<_ACEOF
12087 #line $LINENO "configure"
12088 /* confdefs.h.  */
12089 _ACEOF
12090 cat confdefs.h >>conftest.$ac_ext
12091 cat >>conftest.$ac_ext <<_ACEOF
12092 /* end confdefs.h.  */
12093
12094 /* Override any gcc2 internal prototype to avoid an error.  */
12095 #ifdef __cplusplus
12096 extern "C"
12097 #endif
12098 /* We use char because int might match the return type of a gcc2
12099    builtin and then its argument prototype would still apply.  */
12100 char cupsGetDefault ();
12101 int
12102 main ()
12103 {
12104 cupsGetDefault ();
12105   ;
12106   return 0;
12107 }
12108 _ACEOF
12109 rm -f conftest.$ac_objext conftest$ac_exeext
12110 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12111   (eval $ac_link) 2>&5
12112   ac_status=$?
12113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12114   (exit $ac_status); } &&
12115          { ac_try='test -s conftest$ac_exeext'
12116   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12117   (eval $ac_try) 2>&5
12118   ac_status=$?
12119   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12120   (exit $ac_status); }; }; then
12121   ac_cv_lib_soname_cups=`$ac_cv_path_LDD conftest$ac_exeext | grep libcups\\.so | sed 's/^[     ]*\([^  ]*\)[   ]*=>.*$/\1/'`
12122   if test "x$ac_cv_lib_soname_cups" = "x"
12123   then
12124      ac_cv_lib_soname_cups="libcups.so"
12125   fi
12126 else
12127   echo "$as_me: failed program was:" >&5
12128 sed 's/^/| /' conftest.$ac_ext >&5
12129
12130 ac_cv_lib_soname_cups="libcups.so"
12131 fi
12132 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12133   LIBS=$ac_get_soname_save_LIBS
12134 fi
12135 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_cups" >&5
12136 echo "${ECHO_T}$ac_cv_lib_soname_cups" >&6
12137 if test "x$ac_cv_lib_soname_cups" != xNONE
12138 then
12139 cat >>confdefs.h <<_ACEOF
12140 #define SONAME_LIBCUPS "$ac_cv_lib_soname_cups"
12141 _ACEOF
12142 fi
12143
12144 echo "$as_me:$LINENO: checking for -ljack soname" >&5
12145 echo $ECHO_N "checking for -ljack soname... $ECHO_C" >&6
12146 if test "${ac_cv_lib_soname_jack+set}" = set; then
12147   echo $ECHO_N "(cached) $ECHO_C" >&6
12148 else
12149   ac_get_soname_save_LIBS=$LIBS
12150 LIBS="-ljack  $LIBS"
12151   cat >conftest.$ac_ext <<_ACEOF
12152 #line $LINENO "configure"
12153 /* confdefs.h.  */
12154 _ACEOF
12155 cat confdefs.h >>conftest.$ac_ext
12156 cat >>conftest.$ac_ext <<_ACEOF
12157 /* end confdefs.h.  */
12158
12159 /* Override any gcc2 internal prototype to avoid an error.  */
12160 #ifdef __cplusplus
12161 extern "C"
12162 #endif
12163 /* We use char because int might match the return type of a gcc2
12164    builtin and then its argument prototype would still apply.  */
12165 char jack_client_new ();
12166 int
12167 main ()
12168 {
12169 jack_client_new ();
12170   ;
12171   return 0;
12172 }
12173 _ACEOF
12174 rm -f conftest.$ac_objext conftest$ac_exeext
12175 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12176   (eval $ac_link) 2>&5
12177   ac_status=$?
12178   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12179   (exit $ac_status); } &&
12180          { ac_try='test -s conftest$ac_exeext'
12181   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12182   (eval $ac_try) 2>&5
12183   ac_status=$?
12184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12185   (exit $ac_status); }; }; then
12186   ac_cv_lib_soname_jack=`$ac_cv_path_LDD conftest$ac_exeext | grep libjack\\.so | sed 's/^[     ]*\([^  ]*\)[   ]*=>.*$/\1/'`
12187   if test "x$ac_cv_lib_soname_jack" = "x"
12188   then
12189      ac_cv_lib_soname_jack="libjack.so"
12190   fi
12191 else
12192   echo "$as_me: failed program was:" >&5
12193 sed 's/^/| /' conftest.$ac_ext >&5
12194
12195 ac_cv_lib_soname_jack="libjack.so"
12196 fi
12197 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12198   LIBS=$ac_get_soname_save_LIBS
12199 fi
12200 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_jack" >&5
12201 echo "${ECHO_T}$ac_cv_lib_soname_jack" >&6
12202 if test "x$ac_cv_lib_soname_jack" != xNONE
12203 then
12204 cat >>confdefs.h <<_ACEOF
12205 #define SONAME_LIBJACK "$ac_cv_lib_soname_jack"
12206 _ACEOF
12207 fi
12208 fi
12209
12210
12211
12212 wine_cv_libc_reentrant=no
12213 echo "$as_me:$LINENO: checking for reentrant libc: __errno_location" >&5
12214 echo $ECHO_N "checking for reentrant libc: __errno_location... $ECHO_C" >&6
12215 if test "${wine_cv_libc_r___errno_location+set}" = set; then
12216   echo $ECHO_N "(cached) $ECHO_C" >&6
12217 else
12218   if test "$cross_compiling" = yes; then
12219   wine_cv_libc_r___errno_location=yes
12220 else
12221   cat >conftest.$ac_ext <<_ACEOF
12222 #line $LINENO "configure"
12223 /* confdefs.h.  */
12224 _ACEOF
12225 cat confdefs.h >>conftest.$ac_ext
12226 cat >>conftest.$ac_ext <<_ACEOF
12227 /* end confdefs.h.  */
12228 int myerrno = 0;
12229 int *__errno_location(){return &myerrno;}
12230 main(){close(333); close(333); exit(!myerrno);}
12231 _ACEOF
12232 rm -f conftest$ac_exeext
12233 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12234   (eval $ac_link) 2>&5
12235   ac_status=$?
12236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12237   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12238   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12239   (eval $ac_try) 2>&5
12240   ac_status=$?
12241   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12242   (exit $ac_status); }; }; then
12243   wine_cv_libc_r___errno_location=yes
12244 else
12245   echo "$as_me: program exited with status $ac_status" >&5
12246 echo "$as_me: failed program was:" >&5
12247 sed 's/^/| /' conftest.$ac_ext >&5
12248
12249 ( exit $ac_status )
12250 wine_cv_libc_r___errno_location=no
12251 fi
12252 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12253 fi
12254 fi
12255 echo "$as_me:$LINENO: result: $wine_cv_libc_r___errno_location" >&5
12256 echo "${ECHO_T}$wine_cv_libc_r___errno_location" >&6
12257 if test "$wine_cv_libc_r___errno_location" = "yes"; then
12258   wine_cv_libc_reentrant=__errno_location
12259 else
12260     echo "$as_me:$LINENO: checking for reentrant libc: __error" >&5
12261 echo $ECHO_N "checking for reentrant libc: __error... $ECHO_C" >&6
12262 if test "${wine_cv_libc_r___error+set}" = set; then
12263   echo $ECHO_N "(cached) $ECHO_C" >&6
12264 else
12265   if test "$cross_compiling" = yes; then
12266   wine_cv_libc_r___error=yes
12267 else
12268   cat >conftest.$ac_ext <<_ACEOF
12269 #line $LINENO "configure"
12270 /* confdefs.h.  */
12271 _ACEOF
12272 cat confdefs.h >>conftest.$ac_ext
12273 cat >>conftest.$ac_ext <<_ACEOF
12274 /* end confdefs.h.  */
12275 int myerrno = 0;
12276 int *__error(){return &myerrno;}
12277 main(){close(333); close(333); exit(!myerrno);}
12278 _ACEOF
12279 rm -f conftest$ac_exeext
12280 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12281   (eval $ac_link) 2>&5
12282   ac_status=$?
12283   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12284   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12285   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12286   (eval $ac_try) 2>&5
12287   ac_status=$?
12288   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12289   (exit $ac_status); }; }; then
12290   wine_cv_libc_r___error=yes
12291 else
12292   echo "$as_me: program exited with status $ac_status" >&5
12293 echo "$as_me: failed program was:" >&5
12294 sed 's/^/| /' conftest.$ac_ext >&5
12295
12296 ( exit $ac_status )
12297 wine_cv_libc_r___error=no
12298 fi
12299 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12300 fi
12301 fi
12302 echo "$as_me:$LINENO: result: $wine_cv_libc_r___error" >&5
12303 echo "${ECHO_T}$wine_cv_libc_r___error" >&6
12304 if test "$wine_cv_libc_r___error" = "yes"; then
12305   wine_cv_libc_reentrant=__error
12306 else
12307       echo "$as_me:$LINENO: checking for reentrant libc: ___errno" >&5
12308 echo $ECHO_N "checking for reentrant libc: ___errno... $ECHO_C" >&6
12309 if test "${wine_cv_libc_r____errno+set}" = set; then
12310   echo $ECHO_N "(cached) $ECHO_C" >&6
12311 else
12312   if test "$cross_compiling" = yes; then
12313   wine_cv_libc_r____errno=yes
12314 else
12315   cat >conftest.$ac_ext <<_ACEOF
12316 #line $LINENO "configure"
12317 /* confdefs.h.  */
12318 _ACEOF
12319 cat confdefs.h >>conftest.$ac_ext
12320 cat >>conftest.$ac_ext <<_ACEOF
12321 /* end confdefs.h.  */
12322 int myerrno = 0;
12323 int *___errno(){return &myerrno;}
12324 main(){close(333); close(333); exit(!myerrno);}
12325 _ACEOF
12326 rm -f conftest$ac_exeext
12327 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12328   (eval $ac_link) 2>&5
12329   ac_status=$?
12330   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12331   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12332   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12333   (eval $ac_try) 2>&5
12334   ac_status=$?
12335   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12336   (exit $ac_status); }; }; then
12337   wine_cv_libc_r____errno=yes
12338 else
12339   echo "$as_me: program exited with status $ac_status" >&5
12340 echo "$as_me: failed program was:" >&5
12341 sed 's/^/| /' conftest.$ac_ext >&5
12342
12343 ( exit $ac_status )
12344 wine_cv_libc_r____errno=no
12345 fi
12346 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12347 fi
12348 fi
12349 echo "$as_me:$LINENO: result: $wine_cv_libc_r____errno" >&5
12350 echo "${ECHO_T}$wine_cv_libc_r____errno" >&6
12351 if test "$wine_cv_libc_r____errno" = "yes"; then
12352   wine_cv_libc_reentrant=___errno
12353 else
12354         echo "$as_me:$LINENO: checking for reentrant libc: __thr_errno" >&5
12355 echo $ECHO_N "checking for reentrant libc: __thr_errno... $ECHO_C" >&6
12356 if test "${wine_cv_libc_r___thr_errno+set}" = set; then
12357   echo $ECHO_N "(cached) $ECHO_C" >&6
12358 else
12359   if test "$cross_compiling" = yes; then
12360   wine_cv_libc_r___thr_errno=yes
12361 else
12362   cat >conftest.$ac_ext <<_ACEOF
12363 #line $LINENO "configure"
12364 /* confdefs.h.  */
12365 _ACEOF
12366 cat confdefs.h >>conftest.$ac_ext
12367 cat >>conftest.$ac_ext <<_ACEOF
12368 /* end confdefs.h.  */
12369 int myerrno = 0;
12370 int *__thr_errno(){return &myerrno;}
12371 main(){close(333); close(333); exit(!myerrno);}
12372 _ACEOF
12373 rm -f conftest$ac_exeext
12374 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12375   (eval $ac_link) 2>&5
12376   ac_status=$?
12377   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12378   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12379   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12380   (eval $ac_try) 2>&5
12381   ac_status=$?
12382   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12383   (exit $ac_status); }; }; then
12384   wine_cv_libc_r___thr_errno=yes
12385 else
12386   echo "$as_me: program exited with status $ac_status" >&5
12387 echo "$as_me: failed program was:" >&5
12388 sed 's/^/| /' conftest.$ac_ext >&5
12389
12390 ( exit $ac_status )
12391 wine_cv_libc_r___thr_errno=no
12392 fi
12393 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12394 fi
12395 fi
12396 echo "$as_me:$LINENO: result: $wine_cv_libc_r___thr_errno" >&5
12397 echo "${ECHO_T}$wine_cv_libc_r___thr_errno" >&6
12398 if test "$wine_cv_libc_r___thr_errno" = "yes"; then
12399   wine_cv_libc_reentrant=__thr_errno
12400 else
12401           echo "$as_me:$LINENO: checking for reentrant libc: __errno" >&5
12402 echo $ECHO_N "checking for reentrant libc: __errno... $ECHO_C" >&6
12403 if test "${wine_cv_libc_r___errno+set}" = set; then
12404   echo $ECHO_N "(cached) $ECHO_C" >&6
12405 else
12406   if test "$cross_compiling" = yes; then
12407   wine_cv_libc_r___errno=yes
12408 else
12409   cat >conftest.$ac_ext <<_ACEOF
12410 #line $LINENO "configure"
12411 /* confdefs.h.  */
12412 _ACEOF
12413 cat confdefs.h >>conftest.$ac_ext
12414 cat >>conftest.$ac_ext <<_ACEOF
12415 /* end confdefs.h.  */
12416 int myerrno = 0;
12417 int *__errno(){return &myerrno;}
12418 main(){close(333); close(333); exit(!myerrno);}
12419 _ACEOF
12420 rm -f conftest$ac_exeext
12421 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12422   (eval $ac_link) 2>&5
12423   ac_status=$?
12424   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12425   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12426   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12427   (eval $ac_try) 2>&5
12428   ac_status=$?
12429   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12430   (exit $ac_status); }; }; then
12431   wine_cv_libc_r___errno=yes
12432 else
12433   echo "$as_me: program exited with status $ac_status" >&5
12434 echo "$as_me: failed program was:" >&5
12435 sed 's/^/| /' conftest.$ac_ext >&5
12436
12437 ( exit $ac_status )
12438 wine_cv_libc_r___errno=no
12439 fi
12440 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12441 fi
12442 fi
12443 echo "$as_me:$LINENO: result: $wine_cv_libc_r___errno" >&5
12444 echo "${ECHO_T}$wine_cv_libc_r___errno" >&6
12445 if test "$wine_cv_libc_r___errno" = "yes"; then
12446   wine_cv_libc_reentrant=__errno
12447 fi
12448
12449
12450 fi
12451
12452 fi
12453
12454 fi
12455
12456 fi
12457
12458
12459 if test "$wine_cv_libc_reentrant" != "no"
12460 then
12461
12462 cat >>confdefs.h <<_ACEOF
12463 #define ERRNO_LOCATION $wine_cv_libc_reentrant
12464 _ACEOF
12465
12466 fi
12467
12468
12469 if test "$have_x" = "yes"
12470 then
12471 echo "$as_me:$LINENO: checking for reentrant X libraries" >&5
12472 echo $ECHO_N "checking for reentrant X libraries... $ECHO_C" >&6
12473 if test "${wine_cv_x_reentrant+set}" = set; then
12474   echo $ECHO_N "(cached) $ECHO_C" >&6
12475 else
12476   libX11_check=none
12477     for dir in "$x_libraries" /usr/lib /usr/local/lib /lib; do
12478         if test -r $dir/libX11.so; then
12479             libX11_check="-D $dir/libX11.so"
12480             break
12481         fi
12482         if test -r $dir/libX11.a; then
12483             libX11_check="$dir/libX11.a"
12484             break
12485         fi
12486     done
12487     if test "$libX11_check" != "none"; then
12488         if nm $libX11_check | grep $wine_cv_libc_reentrant >/dev/null 2>&1
12489         then
12490             wine_cv_x_reentrant=yes
12491         else
12492             wine_cv_x_reentrant=no
12493         fi
12494     else
12495         wine_cv_x_reentrant=unknown
12496     fi
12497 fi
12498 echo "$as_me:$LINENO: result: $wine_cv_x_reentrant" >&5
12499 echo "${ECHO_T}$wine_cv_x_reentrant" >&6
12500 fi
12501
12502
12503 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
12504 # for constant arguments.  Useless!
12505 echo "$as_me:$LINENO: checking for working alloca.h" >&5
12506 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
12507 if test "${ac_cv_working_alloca_h+set}" = set; then
12508   echo $ECHO_N "(cached) $ECHO_C" >&6
12509 else
12510   cat >conftest.$ac_ext <<_ACEOF
12511 #line $LINENO "configure"
12512 /* confdefs.h.  */
12513 _ACEOF
12514 cat confdefs.h >>conftest.$ac_ext
12515 cat >>conftest.$ac_ext <<_ACEOF
12516 /* end confdefs.h.  */
12517 #include <alloca.h>
12518 int
12519 main ()
12520 {
12521 char *p = (char *) alloca (2 * sizeof (int));
12522   ;
12523   return 0;
12524 }
12525 _ACEOF
12526 rm -f conftest.$ac_objext conftest$ac_exeext
12527 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12528   (eval $ac_link) 2>&5
12529   ac_status=$?
12530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12531   (exit $ac_status); } &&
12532          { ac_try='test -s conftest$ac_exeext'
12533   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12534   (eval $ac_try) 2>&5
12535   ac_status=$?
12536   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12537   (exit $ac_status); }; }; then
12538   ac_cv_working_alloca_h=yes
12539 else
12540   echo "$as_me: failed program was:" >&5
12541 sed 's/^/| /' conftest.$ac_ext >&5
12542
12543 ac_cv_working_alloca_h=no
12544 fi
12545 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12546 fi
12547 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
12548 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
12549 if test $ac_cv_working_alloca_h = yes; then
12550
12551 cat >>confdefs.h <<\_ACEOF
12552 #define HAVE_ALLOCA_H 1
12553 _ACEOF
12554
12555 fi
12556
12557 echo "$as_me:$LINENO: checking for alloca" >&5
12558 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
12559 if test "${ac_cv_func_alloca_works+set}" = set; then
12560   echo $ECHO_N "(cached) $ECHO_C" >&6
12561 else
12562   cat >conftest.$ac_ext <<_ACEOF
12563 #line $LINENO "configure"
12564 /* confdefs.h.  */
12565 _ACEOF
12566 cat confdefs.h >>conftest.$ac_ext
12567 cat >>conftest.$ac_ext <<_ACEOF
12568 /* end confdefs.h.  */
12569 #ifdef __GNUC__
12570 # define alloca __builtin_alloca
12571 #else
12572 # ifdef _MSC_VER
12573 #  include <malloc.h>
12574 #  define alloca _alloca
12575 # else
12576 #  if HAVE_ALLOCA_H
12577 #   include <alloca.h>
12578 #  else
12579 #   ifdef _AIX
12580  #pragma alloca
12581 #   else
12582 #    ifndef alloca /* predefined by HP cc +Olibcalls */
12583 char *alloca ();
12584 #    endif
12585 #   endif
12586 #  endif
12587 # endif
12588 #endif
12589
12590 int
12591 main ()
12592 {
12593 char *p = (char *) alloca (1);
12594   ;
12595   return 0;
12596 }
12597 _ACEOF
12598 rm -f conftest.$ac_objext conftest$ac_exeext
12599 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12600   (eval $ac_link) 2>&5
12601   ac_status=$?
12602   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12603   (exit $ac_status); } &&
12604          { ac_try='test -s conftest$ac_exeext'
12605   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12606   (eval $ac_try) 2>&5
12607   ac_status=$?
12608   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12609   (exit $ac_status); }; }; then
12610   ac_cv_func_alloca_works=yes
12611 else
12612   echo "$as_me: failed program was:" >&5
12613 sed 's/^/| /' conftest.$ac_ext >&5
12614
12615 ac_cv_func_alloca_works=no
12616 fi
12617 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12618 fi
12619 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
12620 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
12621
12622 if test $ac_cv_func_alloca_works = yes; then
12623
12624 cat >>confdefs.h <<\_ACEOF
12625 #define HAVE_ALLOCA 1
12626 _ACEOF
12627
12628 else
12629   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
12630 # that cause trouble.  Some versions do not even contain alloca or
12631 # contain a buggy version.  If you still want to use their alloca,
12632 # use ar to extract alloca.o from them instead of compiling alloca.c.
12633
12634 ALLOCA=alloca.$ac_objext
12635
12636 cat >>confdefs.h <<\_ACEOF
12637 #define C_ALLOCA 1
12638 _ACEOF
12639
12640
12641 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
12642 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
12643 if test "${ac_cv_os_cray+set}" = set; then
12644   echo $ECHO_N "(cached) $ECHO_C" >&6
12645 else
12646   cat >conftest.$ac_ext <<_ACEOF
12647 #line $LINENO "configure"
12648 /* confdefs.h.  */
12649 _ACEOF
12650 cat confdefs.h >>conftest.$ac_ext
12651 cat >>conftest.$ac_ext <<_ACEOF
12652 /* end confdefs.h.  */
12653 #if defined(CRAY) && ! defined(CRAY2)
12654 webecray
12655 #else
12656 wenotbecray
12657 #endif
12658
12659 _ACEOF
12660 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12661   $EGREP "webecray" >/dev/null 2>&1; then
12662   ac_cv_os_cray=yes
12663 else
12664   ac_cv_os_cray=no
12665 fi
12666 rm -f conftest*
12667
12668 fi
12669 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
12670 echo "${ECHO_T}$ac_cv_os_cray" >&6
12671 if test $ac_cv_os_cray = yes; then
12672   for ac_func in _getb67 GETB67 getb67; do
12673     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12674 echo "$as_me:$LINENO: checking for $ac_func" >&5
12675 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12676 if eval "test \"\${$as_ac_var+set}\" = set"; then
12677   echo $ECHO_N "(cached) $ECHO_C" >&6
12678 else
12679   cat >conftest.$ac_ext <<_ACEOF
12680 #line $LINENO "configure"
12681 /* confdefs.h.  */
12682 _ACEOF
12683 cat confdefs.h >>conftest.$ac_ext
12684 cat >>conftest.$ac_ext <<_ACEOF
12685 /* end confdefs.h.  */
12686 /* System header to define __stub macros and hopefully few prototypes,
12687     which can conflict with char $ac_func (); below.
12688     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12689     <limits.h> exists even on freestanding compilers.  */
12690 #ifdef __STDC__
12691 # include <limits.h>
12692 #else
12693 # include <assert.h>
12694 #endif
12695 /* Override any gcc2 internal prototype to avoid an error.  */
12696 #ifdef __cplusplus
12697 extern "C"
12698 {
12699 #endif
12700 /* We use char because int might match the return type of a gcc2
12701    builtin and then its argument prototype would still apply.  */
12702 char $ac_func ();
12703 /* The GNU C library defines this for functions which it implements
12704     to always fail with ENOSYS.  Some functions are actually named
12705     something starting with __ and the normal name is an alias.  */
12706 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12707 choke me
12708 #else
12709 char (*f) () = $ac_func;
12710 #endif
12711 #ifdef __cplusplus
12712 }
12713 #endif
12714
12715 int
12716 main ()
12717 {
12718 return f != $ac_func;
12719   ;
12720   return 0;
12721 }
12722 _ACEOF
12723 rm -f conftest.$ac_objext conftest$ac_exeext
12724 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12725   (eval $ac_link) 2>&5
12726   ac_status=$?
12727   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12728   (exit $ac_status); } &&
12729          { ac_try='test -s conftest$ac_exeext'
12730   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12731   (eval $ac_try) 2>&5
12732   ac_status=$?
12733   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12734   (exit $ac_status); }; }; then
12735   eval "$as_ac_var=yes"
12736 else
12737   echo "$as_me: failed program was:" >&5
12738 sed 's/^/| /' conftest.$ac_ext >&5
12739
12740 eval "$as_ac_var=no"
12741 fi
12742 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12743 fi
12744 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12745 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12746 if test `eval echo '${'$as_ac_var'}'` = yes; then
12747
12748 cat >>confdefs.h <<_ACEOF
12749 #define CRAY_STACKSEG_END $ac_func
12750 _ACEOF
12751
12752     break
12753 fi
12754
12755   done
12756 fi
12757
12758 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
12759 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
12760 if test "${ac_cv_c_stack_direction+set}" = set; then
12761   echo $ECHO_N "(cached) $ECHO_C" >&6
12762 else
12763   if test "$cross_compiling" = yes; then
12764   ac_cv_c_stack_direction=0
12765 else
12766   cat >conftest.$ac_ext <<_ACEOF
12767 #line $LINENO "configure"
12768 /* confdefs.h.  */
12769 _ACEOF
12770 cat confdefs.h >>conftest.$ac_ext
12771 cat >>conftest.$ac_ext <<_ACEOF
12772 /* end confdefs.h.  */
12773 int
12774 find_stack_direction ()
12775 {
12776   static char *addr = 0;
12777   auto char dummy;
12778   if (addr == 0)
12779     {
12780       addr = &dummy;
12781       return find_stack_direction ();
12782     }
12783   else
12784     return (&dummy > addr) ? 1 : -1;
12785 }
12786
12787 int
12788 main ()
12789 {
12790   exit (find_stack_direction () < 0);
12791 }
12792 _ACEOF
12793 rm -f conftest$ac_exeext
12794 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12795   (eval $ac_link) 2>&5
12796   ac_status=$?
12797   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12798   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12799   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12800   (eval $ac_try) 2>&5
12801   ac_status=$?
12802   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12803   (exit $ac_status); }; }; then
12804   ac_cv_c_stack_direction=1
12805 else
12806   echo "$as_me: program exited with status $ac_status" >&5
12807 echo "$as_me: failed program was:" >&5
12808 sed 's/^/| /' conftest.$ac_ext >&5
12809
12810 ( exit $ac_status )
12811 ac_cv_c_stack_direction=-1
12812 fi
12813 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12814 fi
12815 fi
12816 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
12817 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
12818
12819 cat >>confdefs.h <<_ACEOF
12820 #define STACK_DIRECTION $ac_cv_c_stack_direction
12821 _ACEOF
12822
12823
12824 fi
12825
12826
12827
12828
12829
12830
12831
12832
12833
12834
12835
12836
12837
12838
12839
12840
12841
12842
12843
12844
12845
12846
12847
12848
12849
12850
12851
12852
12853
12854
12855
12856
12857
12858
12859
12860
12861
12862
12863
12864
12865
12866
12867
12868
12869
12870
12871
12872
12873
12874
12875
12876
12877
12878
12879
12880
12881 for ac_func in \
12882         _lwp_create \
12883         _pclose \
12884         _popen \
12885         _snprintf \
12886         _stricmp \
12887         _strnicmp \
12888         chsize \
12889         clone \
12890         ecvt \
12891         fcvt \
12892         finite \
12893         fpclass \
12894         ftruncate \
12895         ftruncate64 \
12896         gcvt \
12897         getnetbyaddr \
12898         getnetbyname \
12899         getopt_long \
12900         getpagesize \
12901         getprotobyname \
12902         getprotobynumber \
12903         getpwuid \
12904         getservbyport \
12905         getsockopt \
12906         inet_network \
12907         lseek64 \
12908         lstat \
12909         memmove \
12910         mkstemp \
12911         mmap \
12912         pclose \
12913         popen \
12914         pread \
12915         pthread_getspecific \
12916         pthread_key_create \
12917         pthread_mutex_lock \
12918         pthread_mutex_unlock \
12919         pthread_setspecific \
12920         pwrite \
12921         rfork \
12922         select \
12923         sendmsg \
12924         settimeofday \
12925         sigaltstack \
12926         snprintf \
12927         statfs \
12928         strcasecmp \
12929         strerror \
12930         strncasecmp \
12931         tcgetattr \
12932         timegm \
12933         usleep \
12934         vfscanf \
12935         wait4 \
12936         waitpid \
12937
12938 do
12939 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12940 echo "$as_me:$LINENO: checking for $ac_func" >&5
12941 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12942 if eval "test \"\${$as_ac_var+set}\" = set"; then
12943   echo $ECHO_N "(cached) $ECHO_C" >&6
12944 else
12945   cat >conftest.$ac_ext <<_ACEOF
12946 #line $LINENO "configure"
12947 /* confdefs.h.  */
12948 _ACEOF
12949 cat confdefs.h >>conftest.$ac_ext
12950 cat >>conftest.$ac_ext <<_ACEOF
12951 /* end confdefs.h.  */
12952 /* System header to define __stub macros and hopefully few prototypes,
12953     which can conflict with char $ac_func (); below.
12954     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12955     <limits.h> exists even on freestanding compilers.  */
12956 #ifdef __STDC__
12957 # include <limits.h>
12958 #else
12959 # include <assert.h>
12960 #endif
12961 /* Override any gcc2 internal prototype to avoid an error.  */
12962 #ifdef __cplusplus
12963 extern "C"
12964 {
12965 #endif
12966 /* We use char because int might match the return type of a gcc2
12967    builtin and then its argument prototype would still apply.  */
12968 char $ac_func ();
12969 /* The GNU C library defines this for functions which it implements
12970     to always fail with ENOSYS.  Some functions are actually named
12971     something starting with __ and the normal name is an alias.  */
12972 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12973 choke me
12974 #else
12975 char (*f) () = $ac_func;
12976 #endif
12977 #ifdef __cplusplus
12978 }
12979 #endif
12980
12981 int
12982 main ()
12983 {
12984 return f != $ac_func;
12985   ;
12986   return 0;
12987 }
12988 _ACEOF
12989 rm -f conftest.$ac_objext conftest$ac_exeext
12990 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12991   (eval $ac_link) 2>&5
12992   ac_status=$?
12993   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12994   (exit $ac_status); } &&
12995          { ac_try='test -s conftest$ac_exeext'
12996   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12997   (eval $ac_try) 2>&5
12998   ac_status=$?
12999   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13000   (exit $ac_status); }; }; then
13001   eval "$as_ac_var=yes"
13002 else
13003   echo "$as_me: failed program was:" >&5
13004 sed 's/^/| /' conftest.$ac_ext >&5
13005
13006 eval "$as_ac_var=no"
13007 fi
13008 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13009 fi
13010 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13011 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13012 if test `eval echo '${'$as_ac_var'}'` = yes; then
13013   cat >>confdefs.h <<_ACEOF
13014 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13015 _ACEOF
13016
13017 fi
13018 done
13019
13020
13021
13022
13023
13024
13025
13026
13027
13028
13029
13030
13031
13032
13033
13034
13035
13036
13037
13038
13039
13040
13041
13042
13043
13044
13045
13046
13047
13048
13049
13050
13051
13052
13053
13054
13055
13056
13057
13058
13059
13060
13061
13062
13063
13064
13065
13066
13067
13068
13069
13070
13071
13072
13073
13074
13075
13076
13077
13078
13079
13080
13081
13082
13083
13084
13085
13086
13087
13088
13089
13090
13091 for ac_header in \
13092         arpa/inet.h \
13093         arpa/nameser.h \
13094         cups/cups.h \
13095         direct.h \
13096         elf.h \
13097         float.h \
13098         getopt.h \
13099         ieeefp.h \
13100         io.h \
13101         jack/jack.h \
13102         libio.h \
13103         libutil.h \
13104         link.h \
13105         linux/cdrom.h \
13106         linux/hdreg.h \
13107         linux/input.h \
13108         linux/joystick.h \
13109         linux/major.h \
13110         linux/param.h \
13111         linux/serial.h \
13112         linux/ucdrom.h \
13113         netdb.h \
13114         netinet/in.h \
13115         netinet/in_systm.h \
13116         netinet/tcp.h \
13117         pty.h \
13118         pwd.h \
13119         sched.h \
13120         scsi/sg.h \
13121         socket.h \
13122         stdint.h \
13123         strings.h \
13124         sys/cdio.h \
13125         sys/errno.h \
13126         sys/file.h \
13127         sys/filio.h \
13128         sys/inttypes.h \
13129         sys/ioctl.h \
13130         sys/ipc.h \
13131         sys/link.h \
13132         sys/lwp.h \
13133         sys/mman.h \
13134         sys/modem.h \
13135         sys/msg.h \
13136         sys/param.h \
13137         sys/poll.h \
13138         sys/ptrace.h \
13139         sys/reg.h \
13140         sys/shm.h \
13141         sys/signal.h \
13142         sys/socket.h \
13143         sys/sockio.h \
13144         sys/statfs.h \
13145         sys/strtio.h \
13146         sys/syscall.h \
13147         sys/sysctl.h \
13148         sys/time.h \
13149         sys/times.h \
13150         sys/uio.h \
13151         sys/un.h \
13152         sys/v86.h \
13153         sys/v86intr.h \
13154         sys/vfs.h \
13155         sys/vm86.h \
13156         sys/wait.h \
13157         syscall.h \
13158         termios.h \
13159         unistd.h \
13160         utime.h \
13161
13162 do
13163 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13164 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13165   echo "$as_me:$LINENO: checking for $ac_header" >&5
13166 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13167 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13168   echo $ECHO_N "(cached) $ECHO_C" >&6
13169 fi
13170 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13171 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13172 else
13173   # Is the header compilable?
13174 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13175 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13176 cat >conftest.$ac_ext <<_ACEOF
13177 #line $LINENO "configure"
13178 /* confdefs.h.  */
13179 _ACEOF
13180 cat confdefs.h >>conftest.$ac_ext
13181 cat >>conftest.$ac_ext <<_ACEOF
13182 /* end confdefs.h.  */
13183 $ac_includes_default
13184 #include <$ac_header>
13185 _ACEOF
13186 rm -f conftest.$ac_objext
13187 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13188   (eval $ac_compile) 2>&5
13189   ac_status=$?
13190   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13191   (exit $ac_status); } &&
13192          { ac_try='test -s conftest.$ac_objext'
13193   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13194   (eval $ac_try) 2>&5
13195   ac_status=$?
13196   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13197   (exit $ac_status); }; }; then
13198   ac_header_compiler=yes
13199 else
13200   echo "$as_me: failed program was:" >&5
13201 sed 's/^/| /' conftest.$ac_ext >&5
13202
13203 ac_header_compiler=no
13204 fi
13205 rm -f conftest.$ac_objext conftest.$ac_ext
13206 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13207 echo "${ECHO_T}$ac_header_compiler" >&6
13208
13209 # Is the header present?
13210 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13211 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13212 cat >conftest.$ac_ext <<_ACEOF
13213 #line $LINENO "configure"
13214 /* confdefs.h.  */
13215 _ACEOF
13216 cat confdefs.h >>conftest.$ac_ext
13217 cat >>conftest.$ac_ext <<_ACEOF
13218 /* end confdefs.h.  */
13219 #include <$ac_header>
13220 _ACEOF
13221 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13222   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13223   ac_status=$?
13224   grep -v '^ *+' conftest.er1 >conftest.err
13225   rm -f conftest.er1
13226   cat conftest.err >&5
13227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13228   (exit $ac_status); } >/dev/null; then
13229   if test -s conftest.err; then
13230     ac_cpp_err=$ac_c_preproc_warn_flag
13231   else
13232     ac_cpp_err=
13233   fi
13234 else
13235   ac_cpp_err=yes
13236 fi
13237 if test -z "$ac_cpp_err"; then
13238   ac_header_preproc=yes
13239 else
13240   echo "$as_me: failed program was:" >&5
13241 sed 's/^/| /' conftest.$ac_ext >&5
13242
13243   ac_header_preproc=no
13244 fi
13245 rm -f conftest.err conftest.$ac_ext
13246 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13247 echo "${ECHO_T}$ac_header_preproc" >&6
13248
13249 # So?  What about this header?
13250 case $ac_header_compiler:$ac_header_preproc in
13251   yes:no )
13252     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13253 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13254     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13255 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13256     (
13257       cat <<\_ASBOX
13258 ## ------------------------------------ ##
13259 ## Report this to bug-autoconf@gnu.org. ##
13260 ## ------------------------------------ ##
13261 _ASBOX
13262     ) |
13263       sed "s/^/$as_me: WARNING:     /" >&2
13264     ;;
13265   no:yes )
13266     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13267 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13268     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13269 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13270     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13271 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13272     (
13273       cat <<\_ASBOX
13274 ## ------------------------------------ ##
13275 ## Report this to bug-autoconf@gnu.org. ##
13276 ## ------------------------------------ ##
13277 _ASBOX
13278     ) |
13279       sed "s/^/$as_me: WARNING:     /" >&2
13280     ;;
13281 esac
13282 echo "$as_me:$LINENO: checking for $ac_header" >&5
13283 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13284 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13285   echo $ECHO_N "(cached) $ECHO_C" >&6
13286 else
13287   eval "$as_ac_Header=$ac_header_preproc"
13288 fi
13289 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13290 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13291
13292 fi
13293 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13294   cat >>confdefs.h <<_ACEOF
13295 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13296 _ACEOF
13297
13298 fi
13299
13300 done
13301
13302 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
13303 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
13304 if test "${ac_cv_header_stat_broken+set}" = set; then
13305   echo $ECHO_N "(cached) $ECHO_C" >&6
13306 else
13307   cat >conftest.$ac_ext <<_ACEOF
13308 #line $LINENO "configure"
13309 /* confdefs.h.  */
13310 _ACEOF
13311 cat confdefs.h >>conftest.$ac_ext
13312 cat >>conftest.$ac_ext <<_ACEOF
13313 /* end confdefs.h.  */
13314 #include <sys/types.h>
13315 #include <sys/stat.h>
13316
13317 #if defined(S_ISBLK) && defined(S_IFDIR)
13318 # if S_ISBLK (S_IFDIR)
13319 You lose.
13320 # endif
13321 #endif
13322
13323 #if defined(S_ISBLK) && defined(S_IFCHR)
13324 # if S_ISBLK (S_IFCHR)
13325 You lose.
13326 # endif
13327 #endif
13328
13329 #if defined(S_ISLNK) && defined(S_IFREG)
13330 # if S_ISLNK (S_IFREG)
13331 You lose.
13332 # endif
13333 #endif
13334
13335 #if defined(S_ISSOCK) && defined(S_IFREG)
13336 # if S_ISSOCK (S_IFREG)
13337 You lose.
13338 # endif
13339 #endif
13340
13341 _ACEOF
13342 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13343   $EGREP "You lose" >/dev/null 2>&1; then
13344   ac_cv_header_stat_broken=yes
13345 else
13346   ac_cv_header_stat_broken=no
13347 fi
13348 rm -f conftest*
13349
13350 fi
13351 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
13352 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
13353 if test $ac_cv_header_stat_broken = yes; then
13354
13355 cat >>confdefs.h <<\_ACEOF
13356 #define STAT_MACROS_BROKEN 1
13357 _ACEOF
13358
13359 fi
13360
13361
13362
13363
13364
13365 for ac_header in sys/mount.h sys/user.h
13366 do
13367 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13368 echo "$as_me:$LINENO: checking for $ac_header" >&5
13369 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13370 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13371   echo $ECHO_N "(cached) $ECHO_C" >&6
13372 else
13373   cat >conftest.$ac_ext <<_ACEOF
13374 #line $LINENO "configure"
13375 /* confdefs.h.  */
13376 _ACEOF
13377 cat confdefs.h >>conftest.$ac_ext
13378 cat >>conftest.$ac_ext <<_ACEOF
13379 /* end confdefs.h.  */
13380 #include <sys/types.h>
13381      #if HAVE_SYS_PARAM_H
13382      # include <sys/param.h>
13383      #endif
13384
13385 #include <$ac_header>
13386 _ACEOF
13387 rm -f conftest.$ac_objext
13388 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13389   (eval $ac_compile) 2>&5
13390   ac_status=$?
13391   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13392   (exit $ac_status); } &&
13393          { ac_try='test -s conftest.$ac_objext'
13394   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13395   (eval $ac_try) 2>&5
13396   ac_status=$?
13397   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13398   (exit $ac_status); }; }; then
13399   eval "$as_ac_Header=yes"
13400 else
13401   echo "$as_me: failed program was:" >&5
13402 sed 's/^/| /' conftest.$ac_ext >&5
13403
13404 eval "$as_ac_Header=no"
13405 fi
13406 rm -f conftest.$ac_objext conftest.$ac_ext
13407 fi
13408 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13409 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13410 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13411   cat >>confdefs.h <<_ACEOF
13412 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13413 _ACEOF
13414
13415 fi
13416
13417 done
13418
13419
13420
13421 for ac_header in net/if.h
13422 do
13423 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13424 echo "$as_me:$LINENO: checking for $ac_header" >&5
13425 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13426 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13427   echo $ECHO_N "(cached) $ECHO_C" >&6
13428 else
13429   cat >conftest.$ac_ext <<_ACEOF
13430 #line $LINENO "configure"
13431 /* confdefs.h.  */
13432 _ACEOF
13433 cat confdefs.h >>conftest.$ac_ext
13434 cat >>conftest.$ac_ext <<_ACEOF
13435 /* end confdefs.h.  */
13436 #include <sys/types.h>
13437      #if HAVE_SYS_SOCKET_H
13438      # include <sys/socket.h>
13439      #endif
13440
13441 #include <$ac_header>
13442 _ACEOF
13443 rm -f conftest.$ac_objext
13444 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13445   (eval $ac_compile) 2>&5
13446   ac_status=$?
13447   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13448   (exit $ac_status); } &&
13449          { ac_try='test -s conftest.$ac_objext'
13450   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13451   (eval $ac_try) 2>&5
13452   ac_status=$?
13453   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13454   (exit $ac_status); }; }; then
13455   eval "$as_ac_Header=yes"
13456 else
13457   echo "$as_me: failed program was:" >&5
13458 sed 's/^/| /' conftest.$ac_ext >&5
13459
13460 eval "$as_ac_Header=no"
13461 fi
13462 rm -f conftest.$ac_objext conftest.$ac_ext
13463 fi
13464 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13465 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13466 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13467   cat >>confdefs.h <<_ACEOF
13468 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13469 _ACEOF
13470
13471 fi
13472
13473 done
13474
13475
13476
13477 for ac_header in netinet/ip.h
13478 do
13479 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13480 echo "$as_me:$LINENO: checking for $ac_header" >&5
13481 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13482 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13483   echo $ECHO_N "(cached) $ECHO_C" >&6
13484 else
13485   cat >conftest.$ac_ext <<_ACEOF
13486 #line $LINENO "configure"
13487 /* confdefs.h.  */
13488 _ACEOF
13489 cat confdefs.h >>conftest.$ac_ext
13490 cat >>conftest.$ac_ext <<_ACEOF
13491 /* end confdefs.h.  */
13492 #include <sys/types.h>
13493      #if HAVE_SYS_SOCKET_H
13494      # include <sys/socket.h>
13495      #endif
13496      #if HAVE_NETINET_IN_SYSTM_H
13497      # include <netinet/in_systm.h>
13498      #endif
13499
13500 #include <$ac_header>
13501 _ACEOF
13502 rm -f conftest.$ac_objext
13503 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13504   (eval $ac_compile) 2>&5
13505   ac_status=$?
13506   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13507   (exit $ac_status); } &&
13508          { ac_try='test -s conftest.$ac_objext'
13509   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13510   (eval $ac_try) 2>&5
13511   ac_status=$?
13512   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13513   (exit $ac_status); }; }; then
13514   eval "$as_ac_Header=yes"
13515 else
13516   echo "$as_me: failed program was:" >&5
13517 sed 's/^/| /' conftest.$ac_ext >&5
13518
13519 eval "$as_ac_Header=no"
13520 fi
13521 rm -f conftest.$ac_objext conftest.$ac_ext
13522 fi
13523 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13524 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13525 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13526   cat >>confdefs.h <<_ACEOF
13527 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13528 _ACEOF
13529
13530 fi
13531
13532 done
13533
13534
13535
13536 for ac_header in resolv.h
13537 do
13538 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13539 echo "$as_me:$LINENO: checking for $ac_header" >&5
13540 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13541 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13542   echo $ECHO_N "(cached) $ECHO_C" >&6
13543 else
13544   cat >conftest.$ac_ext <<_ACEOF
13545 #line $LINENO "configure"
13546 /* confdefs.h.  */
13547 _ACEOF
13548 cat confdefs.h >>conftest.$ac_ext
13549 cat >>conftest.$ac_ext <<_ACEOF
13550 /* end confdefs.h.  */
13551 #include <sys/types.h>
13552      #if HAVE_SYS_SOCKET_H
13553      # include <sys/socket.h>
13554      #endif
13555
13556 #include <$ac_header>
13557 _ACEOF
13558 rm -f conftest.$ac_objext
13559 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13560   (eval $ac_compile) 2>&5
13561   ac_status=$?
13562   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13563   (exit $ac_status); } &&
13564          { ac_try='test -s conftest.$ac_objext'
13565   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13566   (eval $ac_try) 2>&5
13567   ac_status=$?
13568   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13569   (exit $ac_status); }; }; then
13570   eval "$as_ac_Header=yes"
13571 else
13572   echo "$as_me: failed program was:" >&5
13573 sed 's/^/| /' conftest.$ac_ext >&5
13574
13575 eval "$as_ac_Header=no"
13576 fi
13577 rm -f conftest.$ac_objext conftest.$ac_ext
13578 fi
13579 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13580 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13581 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13582   cat >>confdefs.h <<_ACEOF
13583 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13584 _ACEOF
13585
13586 fi
13587
13588 done
13589
13590
13591
13592 for ac_header in ucontext.h
13593 do
13594 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13595 echo "$as_me:$LINENO: checking for $ac_header" >&5
13596 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13597 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13598   echo $ECHO_N "(cached) $ECHO_C" >&6
13599 else
13600   cat >conftest.$ac_ext <<_ACEOF
13601 #line $LINENO "configure"
13602 /* confdefs.h.  */
13603 _ACEOF
13604 cat confdefs.h >>conftest.$ac_ext
13605 cat >>conftest.$ac_ext <<_ACEOF
13606 /* end confdefs.h.  */
13607 #include <signal.h>
13608
13609 #include <$ac_header>
13610 _ACEOF
13611 rm -f conftest.$ac_objext
13612 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13613   (eval $ac_compile) 2>&5
13614   ac_status=$?
13615   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13616   (exit $ac_status); } &&
13617          { ac_try='test -s conftest.$ac_objext'
13618   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13619   (eval $ac_try) 2>&5
13620   ac_status=$?
13621   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13622   (exit $ac_status); }; }; then
13623   eval "$as_ac_Header=yes"
13624 else
13625   echo "$as_me: failed program was:" >&5
13626 sed 's/^/| /' conftest.$ac_ext >&5
13627
13628 eval "$as_ac_Header=no"
13629 fi
13630 rm -f conftest.$ac_objext conftest.$ac_ext
13631 fi
13632 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13633 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13634 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13635   cat >>confdefs.h <<_ACEOF
13636 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13637 _ACEOF
13638
13639 fi
13640
13641 done
13642
13643
13644
13645 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
13646 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
13647 if test "${ac_cv_c_const+set}" = set; then
13648   echo $ECHO_N "(cached) $ECHO_C" >&6
13649 else
13650   cat >conftest.$ac_ext <<_ACEOF
13651 #line $LINENO "configure"
13652 /* confdefs.h.  */
13653 _ACEOF
13654 cat confdefs.h >>conftest.$ac_ext
13655 cat >>conftest.$ac_ext <<_ACEOF
13656 /* end confdefs.h.  */
13657
13658 int
13659 main ()
13660 {
13661 /* FIXME: Include the comments suggested by Paul. */
13662 #ifndef __cplusplus
13663   /* Ultrix mips cc rejects this.  */
13664   typedef int charset[2];
13665   const charset x;
13666   /* SunOS 4.1.1 cc rejects this.  */
13667   char const *const *ccp;
13668   char **p;
13669   /* NEC SVR4.0.2 mips cc rejects this.  */
13670   struct point {int x, y;};
13671   static struct point const zero = {0,0};
13672   /* AIX XL C 1.02.0.0 rejects this.
13673      It does not let you subtract one const X* pointer from another in
13674      an arm of an if-expression whose if-part is not a constant
13675      expression */
13676   const char *g = "string";
13677   ccp = &g + (g ? g-g : 0);
13678   /* HPUX 7.0 cc rejects these. */
13679   ++ccp;
13680   p = (char**) ccp;
13681   ccp = (char const *const *) p;
13682   { /* SCO 3.2v4 cc rejects this.  */
13683     char *t;
13684     char const *s = 0 ? (char *) 0 : (char const *) 0;
13685
13686     *t++ = 0;
13687   }
13688   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
13689     int x[] = {25, 17};
13690     const int *foo = &x[0];
13691     ++foo;
13692   }
13693   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
13694     typedef const int *iptr;
13695     iptr p = 0;
13696     ++p;
13697   }
13698   { /* AIX XL C 1.02.0.0 rejects this saying
13699        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
13700     struct s { int j; const int *ap[3]; };
13701     struct s *b; b->j = 5;
13702   }
13703   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
13704     const int foo = 10;
13705   }
13706 #endif
13707
13708   ;
13709   return 0;
13710 }
13711 _ACEOF
13712 rm -f conftest.$ac_objext
13713 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13714   (eval $ac_compile) 2>&5
13715   ac_status=$?
13716   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13717   (exit $ac_status); } &&
13718          { ac_try='test -s conftest.$ac_objext'
13719   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13720   (eval $ac_try) 2>&5
13721   ac_status=$?
13722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13723   (exit $ac_status); }; }; then
13724   ac_cv_c_const=yes
13725 else
13726   echo "$as_me: failed program was:" >&5
13727 sed 's/^/| /' conftest.$ac_ext >&5
13728
13729 ac_cv_c_const=no
13730 fi
13731 rm -f conftest.$ac_objext conftest.$ac_ext
13732 fi
13733 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
13734 echo "${ECHO_T}$ac_cv_c_const" >&6
13735 if test $ac_cv_c_const = no; then
13736
13737 cat >>confdefs.h <<\_ACEOF
13738 #define const
13739 _ACEOF
13740
13741 fi
13742
13743 echo "$as_me:$LINENO: checking for inline" >&5
13744 echo $ECHO_N "checking for inline... $ECHO_C" >&6
13745 if test "${ac_cv_c_inline+set}" = set; then
13746   echo $ECHO_N "(cached) $ECHO_C" >&6
13747 else
13748   ac_cv_c_inline=no
13749 for ac_kw in inline __inline__ __inline; do
13750   cat >conftest.$ac_ext <<_ACEOF
13751 #line $LINENO "configure"
13752 /* confdefs.h.  */
13753 _ACEOF
13754 cat confdefs.h >>conftest.$ac_ext
13755 cat >>conftest.$ac_ext <<_ACEOF
13756 /* end confdefs.h.  */
13757 #ifndef __cplusplus
13758 typedef int foo_t;
13759 static $ac_kw foo_t static_foo () {return 0; }
13760 $ac_kw foo_t foo () {return 0; }
13761 #endif
13762
13763 _ACEOF
13764 rm -f conftest.$ac_objext
13765 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13766   (eval $ac_compile) 2>&5
13767   ac_status=$?
13768   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13769   (exit $ac_status); } &&
13770          { ac_try='test -s conftest.$ac_objext'
13771   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13772   (eval $ac_try) 2>&5
13773   ac_status=$?
13774   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13775   (exit $ac_status); }; }; then
13776   ac_cv_c_inline=$ac_kw; break
13777 else
13778   echo "$as_me: failed program was:" >&5
13779 sed 's/^/| /' conftest.$ac_ext >&5
13780
13781 fi
13782 rm -f conftest.$ac_objext conftest.$ac_ext
13783 done
13784
13785 fi
13786 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
13787 echo "${ECHO_T}$ac_cv_c_inline" >&6
13788 case $ac_cv_c_inline in
13789   inline | yes) ;;
13790   no)
13791 cat >>confdefs.h <<\_ACEOF
13792 #define inline
13793 _ACEOF
13794  ;;
13795   *)  cat >>confdefs.h <<_ACEOF
13796 #define inline $ac_cv_c_inline
13797 _ACEOF
13798  ;;
13799 esac
13800
13801 echo "$as_me:$LINENO: checking for mode_t" >&5
13802 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
13803 if test "${ac_cv_type_mode_t+set}" = set; then
13804   echo $ECHO_N "(cached) $ECHO_C" >&6
13805 else
13806   cat >conftest.$ac_ext <<_ACEOF
13807 #line $LINENO "configure"
13808 /* confdefs.h.  */
13809 _ACEOF
13810 cat confdefs.h >>conftest.$ac_ext
13811 cat >>conftest.$ac_ext <<_ACEOF
13812 /* end confdefs.h.  */
13813 $ac_includes_default
13814 int
13815 main ()
13816 {
13817 if ((mode_t *) 0)
13818   return 0;
13819 if (sizeof (mode_t))
13820   return 0;
13821   ;
13822   return 0;
13823 }
13824 _ACEOF
13825 rm -f conftest.$ac_objext
13826 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13827   (eval $ac_compile) 2>&5
13828   ac_status=$?
13829   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13830   (exit $ac_status); } &&
13831          { ac_try='test -s conftest.$ac_objext'
13832   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13833   (eval $ac_try) 2>&5
13834   ac_status=$?
13835   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13836   (exit $ac_status); }; }; then
13837   ac_cv_type_mode_t=yes
13838 else
13839   echo "$as_me: failed program was:" >&5
13840 sed 's/^/| /' conftest.$ac_ext >&5
13841
13842 ac_cv_type_mode_t=no
13843 fi
13844 rm -f conftest.$ac_objext conftest.$ac_ext
13845 fi
13846 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
13847 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
13848 if test $ac_cv_type_mode_t = yes; then
13849
13850 cat >>confdefs.h <<_ACEOF
13851 #define HAVE_MODE_T 1
13852 _ACEOF
13853
13854
13855 fi
13856 echo "$as_me:$LINENO: checking for off_t" >&5
13857 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
13858 if test "${ac_cv_type_off_t+set}" = set; then
13859   echo $ECHO_N "(cached) $ECHO_C" >&6
13860 else
13861   cat >conftest.$ac_ext <<_ACEOF
13862 #line $LINENO "configure"
13863 /* confdefs.h.  */
13864 _ACEOF
13865 cat confdefs.h >>conftest.$ac_ext
13866 cat >>conftest.$ac_ext <<_ACEOF
13867 /* end confdefs.h.  */
13868 $ac_includes_default
13869 int
13870 main ()
13871 {
13872 if ((off_t *) 0)
13873   return 0;
13874 if (sizeof (off_t))
13875   return 0;
13876   ;
13877   return 0;
13878 }
13879 _ACEOF
13880 rm -f conftest.$ac_objext
13881 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13882   (eval $ac_compile) 2>&5
13883   ac_status=$?
13884   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13885   (exit $ac_status); } &&
13886          { ac_try='test -s conftest.$ac_objext'
13887   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13888   (eval $ac_try) 2>&5
13889   ac_status=$?
13890   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13891   (exit $ac_status); }; }; then
13892   ac_cv_type_off_t=yes
13893 else
13894   echo "$as_me: failed program was:" >&5
13895 sed 's/^/| /' conftest.$ac_ext >&5
13896
13897 ac_cv_type_off_t=no
13898 fi
13899 rm -f conftest.$ac_objext conftest.$ac_ext
13900 fi
13901 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
13902 echo "${ECHO_T}$ac_cv_type_off_t" >&6
13903 if test $ac_cv_type_off_t = yes; then
13904
13905 cat >>confdefs.h <<_ACEOF
13906 #define HAVE_OFF_T 1
13907 _ACEOF
13908
13909
13910 fi
13911 echo "$as_me:$LINENO: checking for pid_t" >&5
13912 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
13913 if test "${ac_cv_type_pid_t+set}" = set; then
13914   echo $ECHO_N "(cached) $ECHO_C" >&6
13915 else
13916   cat >conftest.$ac_ext <<_ACEOF
13917 #line $LINENO "configure"
13918 /* confdefs.h.  */
13919 _ACEOF
13920 cat confdefs.h >>conftest.$ac_ext
13921 cat >>conftest.$ac_ext <<_ACEOF
13922 /* end confdefs.h.  */
13923 $ac_includes_default
13924 int
13925 main ()
13926 {
13927 if ((pid_t *) 0)
13928   return 0;
13929 if (sizeof (pid_t))
13930   return 0;
13931   ;
13932   return 0;
13933 }
13934 _ACEOF
13935 rm -f conftest.$ac_objext
13936 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13937   (eval $ac_compile) 2>&5
13938   ac_status=$?
13939   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13940   (exit $ac_status); } &&
13941          { ac_try='test -s conftest.$ac_objext'
13942   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13943   (eval $ac_try) 2>&5
13944   ac_status=$?
13945   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13946   (exit $ac_status); }; }; then
13947   ac_cv_type_pid_t=yes
13948 else
13949   echo "$as_me: failed program was:" >&5
13950 sed 's/^/| /' conftest.$ac_ext >&5
13951
13952 ac_cv_type_pid_t=no
13953 fi
13954 rm -f conftest.$ac_objext conftest.$ac_ext
13955 fi
13956 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
13957 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
13958 if test $ac_cv_type_pid_t = yes; then
13959
13960 cat >>confdefs.h <<_ACEOF
13961 #define HAVE_PID_T 1
13962 _ACEOF
13963
13964
13965 fi
13966 echo "$as_me:$LINENO: checking for size_t" >&5
13967 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
13968 if test "${ac_cv_type_size_t+set}" = set; then
13969   echo $ECHO_N "(cached) $ECHO_C" >&6
13970 else
13971   cat >conftest.$ac_ext <<_ACEOF
13972 #line $LINENO "configure"
13973 /* confdefs.h.  */
13974 _ACEOF
13975 cat confdefs.h >>conftest.$ac_ext
13976 cat >>conftest.$ac_ext <<_ACEOF
13977 /* end confdefs.h.  */
13978 $ac_includes_default
13979 int
13980 main ()
13981 {
13982 if ((size_t *) 0)
13983   return 0;
13984 if (sizeof (size_t))
13985   return 0;
13986   ;
13987   return 0;
13988 }
13989 _ACEOF
13990 rm -f conftest.$ac_objext
13991 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13992   (eval $ac_compile) 2>&5
13993   ac_status=$?
13994   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13995   (exit $ac_status); } &&
13996          { ac_try='test -s conftest.$ac_objext'
13997   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13998   (eval $ac_try) 2>&5
13999   ac_status=$?
14000   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14001   (exit $ac_status); }; }; then
14002   ac_cv_type_size_t=yes
14003 else
14004   echo "$as_me: failed program was:" >&5
14005 sed 's/^/| /' conftest.$ac_ext >&5
14006
14007 ac_cv_type_size_t=no
14008 fi
14009 rm -f conftest.$ac_objext conftest.$ac_ext
14010 fi
14011 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
14012 echo "${ECHO_T}$ac_cv_type_size_t" >&6
14013 if test $ac_cv_type_size_t = yes; then
14014
14015 cat >>confdefs.h <<_ACEOF
14016 #define HAVE_SIZE_T 1
14017 _ACEOF
14018
14019
14020 fi
14021 echo "$as_me:$LINENO: checking for ssize_t" >&5
14022 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
14023 if test "${ac_cv_type_ssize_t+set}" = set; then
14024   echo $ECHO_N "(cached) $ECHO_C" >&6
14025 else
14026   cat >conftest.$ac_ext <<_ACEOF
14027 #line $LINENO "configure"
14028 /* confdefs.h.  */
14029 _ACEOF
14030 cat confdefs.h >>conftest.$ac_ext
14031 cat >>conftest.$ac_ext <<_ACEOF
14032 /* end confdefs.h.  */
14033 $ac_includes_default
14034 int
14035 main ()
14036 {
14037 if ((ssize_t *) 0)
14038   return 0;
14039 if (sizeof (ssize_t))
14040   return 0;
14041   ;
14042   return 0;
14043 }
14044 _ACEOF
14045 rm -f conftest.$ac_objext
14046 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14047   (eval $ac_compile) 2>&5
14048   ac_status=$?
14049   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14050   (exit $ac_status); } &&
14051          { ac_try='test -s conftest.$ac_objext'
14052   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14053   (eval $ac_try) 2>&5
14054   ac_status=$?
14055   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14056   (exit $ac_status); }; }; then
14057   ac_cv_type_ssize_t=yes
14058 else
14059   echo "$as_me: failed program was:" >&5
14060 sed 's/^/| /' conftest.$ac_ext >&5
14061
14062 ac_cv_type_ssize_t=no
14063 fi
14064 rm -f conftest.$ac_objext conftest.$ac_ext
14065 fi
14066 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
14067 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
14068 if test $ac_cv_type_ssize_t = yes; then
14069
14070 cat >>confdefs.h <<_ACEOF
14071 #define HAVE_SSIZE_T 1
14072 _ACEOF
14073
14074
14075 fi
14076
14077 echo "$as_me:$LINENO: checking for long long" >&5
14078 echo $ECHO_N "checking for long long... $ECHO_C" >&6
14079 if test "${ac_cv_type_long_long+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 $ac_includes_default
14090 int
14091 main ()
14092 {
14093 if ((long long *) 0)
14094   return 0;
14095 if (sizeof (long long))
14096   return 0;
14097   ;
14098   return 0;
14099 }
14100 _ACEOF
14101 rm -f conftest.$ac_objext
14102 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14103   (eval $ac_compile) 2>&5
14104   ac_status=$?
14105   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14106   (exit $ac_status); } &&
14107          { ac_try='test -s conftest.$ac_objext'
14108   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14109   (eval $ac_try) 2>&5
14110   ac_status=$?
14111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14112   (exit $ac_status); }; }; then
14113   ac_cv_type_long_long=yes
14114 else
14115   echo "$as_me: failed program was:" >&5
14116 sed 's/^/| /' conftest.$ac_ext >&5
14117
14118 ac_cv_type_long_long=no
14119 fi
14120 rm -f conftest.$ac_objext conftest.$ac_ext
14121 fi
14122 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
14123 echo "${ECHO_T}$ac_cv_type_long_long" >&6
14124
14125 echo "$as_me:$LINENO: checking size of long long" >&5
14126 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
14127 if test "${ac_cv_sizeof_long_long+set}" = set; then
14128   echo $ECHO_N "(cached) $ECHO_C" >&6
14129 else
14130   if test "$ac_cv_type_long_long" = yes; then
14131   # The cast to unsigned long works around a bug in the HP C Compiler
14132   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14133   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14134   # This bug is HP SR number 8606223364.
14135   if test "$cross_compiling" = yes; then
14136   # Depending upon the size, compute the lo and hi bounds.
14137 cat >conftest.$ac_ext <<_ACEOF
14138 #line $LINENO "configure"
14139 /* confdefs.h.  */
14140 _ACEOF
14141 cat confdefs.h >>conftest.$ac_ext
14142 cat >>conftest.$ac_ext <<_ACEOF
14143 /* end confdefs.h.  */
14144 $ac_includes_default
14145 int
14146 main ()
14147 {
14148 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
14149 test_array [0] = 0
14150
14151   ;
14152   return 0;
14153 }
14154 _ACEOF
14155 rm -f conftest.$ac_objext
14156 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14157   (eval $ac_compile) 2>&5
14158   ac_status=$?
14159   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14160   (exit $ac_status); } &&
14161          { ac_try='test -s conftest.$ac_objext'
14162   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14163   (eval $ac_try) 2>&5
14164   ac_status=$?
14165   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14166   (exit $ac_status); }; }; then
14167   ac_lo=0 ac_mid=0
14168   while :; do
14169     cat >conftest.$ac_ext <<_ACEOF
14170 #line $LINENO "configure"
14171 /* confdefs.h.  */
14172 _ACEOF
14173 cat confdefs.h >>conftest.$ac_ext
14174 cat >>conftest.$ac_ext <<_ACEOF
14175 /* end confdefs.h.  */
14176 $ac_includes_default
14177 int
14178 main ()
14179 {
14180 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
14181 test_array [0] = 0
14182
14183   ;
14184   return 0;
14185 }
14186 _ACEOF
14187 rm -f conftest.$ac_objext
14188 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14189   (eval $ac_compile) 2>&5
14190   ac_status=$?
14191   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14192   (exit $ac_status); } &&
14193          { ac_try='test -s conftest.$ac_objext'
14194   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14195   (eval $ac_try) 2>&5
14196   ac_status=$?
14197   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14198   (exit $ac_status); }; }; then
14199   ac_hi=$ac_mid; break
14200 else
14201   echo "$as_me: failed program was:" >&5
14202 sed 's/^/| /' conftest.$ac_ext >&5
14203
14204 ac_lo=`expr $ac_mid + 1`
14205                     if test $ac_lo -le $ac_mid; then
14206                       ac_lo= ac_hi=
14207                       break
14208                     fi
14209                     ac_mid=`expr 2 '*' $ac_mid + 1`
14210 fi
14211 rm -f conftest.$ac_objext conftest.$ac_ext
14212   done
14213 else
14214   echo "$as_me: failed program was:" >&5
14215 sed 's/^/| /' conftest.$ac_ext >&5
14216
14217 cat >conftest.$ac_ext <<_ACEOF
14218 #line $LINENO "configure"
14219 /* confdefs.h.  */
14220 _ACEOF
14221 cat confdefs.h >>conftest.$ac_ext
14222 cat >>conftest.$ac_ext <<_ACEOF
14223 /* end confdefs.h.  */
14224 $ac_includes_default
14225 int
14226 main ()
14227 {
14228 static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
14229 test_array [0] = 0
14230
14231   ;
14232   return 0;
14233 }
14234 _ACEOF
14235 rm -f conftest.$ac_objext
14236 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14237   (eval $ac_compile) 2>&5
14238   ac_status=$?
14239   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14240   (exit $ac_status); } &&
14241          { ac_try='test -s conftest.$ac_objext'
14242   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14243   (eval $ac_try) 2>&5
14244   ac_status=$?
14245   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14246   (exit $ac_status); }; }; then
14247   ac_hi=-1 ac_mid=-1
14248   while :; do
14249     cat >conftest.$ac_ext <<_ACEOF
14250 #line $LINENO "configure"
14251 /* confdefs.h.  */
14252 _ACEOF
14253 cat confdefs.h >>conftest.$ac_ext
14254 cat >>conftest.$ac_ext <<_ACEOF
14255 /* end confdefs.h.  */
14256 $ac_includes_default
14257 int
14258 main ()
14259 {
14260 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
14261 test_array [0] = 0
14262
14263   ;
14264   return 0;
14265 }
14266 _ACEOF
14267 rm -f conftest.$ac_objext
14268 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14269   (eval $ac_compile) 2>&5
14270   ac_status=$?
14271   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14272   (exit $ac_status); } &&
14273          { ac_try='test -s conftest.$ac_objext'
14274   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14275   (eval $ac_try) 2>&5
14276   ac_status=$?
14277   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14278   (exit $ac_status); }; }; then
14279   ac_lo=$ac_mid; break
14280 else
14281   echo "$as_me: failed program was:" >&5
14282 sed 's/^/| /' conftest.$ac_ext >&5
14283
14284 ac_hi=`expr '(' $ac_mid ')' - 1`
14285                        if test $ac_mid -le $ac_hi; then
14286                          ac_lo= ac_hi=
14287                          break
14288                        fi
14289                        ac_mid=`expr 2 '*' $ac_mid`
14290 fi
14291 rm -f conftest.$ac_objext conftest.$ac_ext
14292   done
14293 else
14294   echo "$as_me: failed program was:" >&5
14295 sed 's/^/| /' conftest.$ac_ext >&5
14296
14297 ac_lo= ac_hi=
14298 fi
14299 rm -f conftest.$ac_objext conftest.$ac_ext
14300 fi
14301 rm -f conftest.$ac_objext conftest.$ac_ext
14302 # Binary search between lo and hi bounds.
14303 while test "x$ac_lo" != "x$ac_hi"; do
14304   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14305   cat >conftest.$ac_ext <<_ACEOF
14306 #line $LINENO "configure"
14307 /* confdefs.h.  */
14308 _ACEOF
14309 cat confdefs.h >>conftest.$ac_ext
14310 cat >>conftest.$ac_ext <<_ACEOF
14311 /* end confdefs.h.  */
14312 $ac_includes_default
14313 int
14314 main ()
14315 {
14316 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
14317 test_array [0] = 0
14318
14319   ;
14320   return 0;
14321 }
14322 _ACEOF
14323 rm -f conftest.$ac_objext
14324 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14325   (eval $ac_compile) 2>&5
14326   ac_status=$?
14327   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14328   (exit $ac_status); } &&
14329          { ac_try='test -s conftest.$ac_objext'
14330   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14331   (eval $ac_try) 2>&5
14332   ac_status=$?
14333   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14334   (exit $ac_status); }; }; then
14335   ac_hi=$ac_mid
14336 else
14337   echo "$as_me: failed program was:" >&5
14338 sed 's/^/| /' conftest.$ac_ext >&5
14339
14340 ac_lo=`expr '(' $ac_mid ')' + 1`
14341 fi
14342 rm -f conftest.$ac_objext conftest.$ac_ext
14343 done
14344 case $ac_lo in
14345 ?*) ac_cv_sizeof_long_long=$ac_lo;;
14346 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
14347 See \`config.log' for more details." >&5
14348 echo "$as_me: error: cannot compute sizeof (long long), 77
14349 See \`config.log' for more details." >&2;}
14350    { (exit 1); exit 1; }; } ;;
14351 esac
14352 else
14353   if test "$cross_compiling" = yes; then
14354   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14355 See \`config.log' for more details." >&5
14356 echo "$as_me: error: cannot run test program while cross compiling
14357 See \`config.log' for more details." >&2;}
14358    { (exit 1); exit 1; }; }
14359 else
14360   cat >conftest.$ac_ext <<_ACEOF
14361 #line $LINENO "configure"
14362 /* confdefs.h.  */
14363 _ACEOF
14364 cat confdefs.h >>conftest.$ac_ext
14365 cat >>conftest.$ac_ext <<_ACEOF
14366 /* end confdefs.h.  */
14367 $ac_includes_default
14368 long longval () { return (long) (sizeof (long long)); }
14369 unsigned long ulongval () { return (long) (sizeof (long long)); }
14370 #include <stdio.h>
14371 #include <stdlib.h>
14372 int
14373 main ()
14374 {
14375
14376   FILE *f = fopen ("conftest.val", "w");
14377   if (! f)
14378     exit (1);
14379   if (((long) (sizeof (long long))) < 0)
14380     {
14381       long i = longval ();
14382       if (i != ((long) (sizeof (long long))))
14383         exit (1);
14384       fprintf (f, "%ld\n", i);
14385     }
14386   else
14387     {
14388       unsigned long i = ulongval ();
14389       if (i != ((long) (sizeof (long long))))
14390         exit (1);
14391       fprintf (f, "%lu\n", i);
14392     }
14393   exit (ferror (f) || fclose (f) != 0);
14394
14395   ;
14396   return 0;
14397 }
14398 _ACEOF
14399 rm -f conftest$ac_exeext
14400 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14401   (eval $ac_link) 2>&5
14402   ac_status=$?
14403   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14404   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14405   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14406   (eval $ac_try) 2>&5
14407   ac_status=$?
14408   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14409   (exit $ac_status); }; }; then
14410   ac_cv_sizeof_long_long=`cat conftest.val`
14411 else
14412   echo "$as_me: program exited with status $ac_status" >&5
14413 echo "$as_me: failed program was:" >&5
14414 sed 's/^/| /' conftest.$ac_ext >&5
14415
14416 ( exit $ac_status )
14417 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
14418 See \`config.log' for more details." >&5
14419 echo "$as_me: error: cannot compute sizeof (long long), 77
14420 See \`config.log' for more details." >&2;}
14421    { (exit 1); exit 1; }; }
14422 fi
14423 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14424 fi
14425 fi
14426 rm -f conftest.val
14427 else
14428   ac_cv_sizeof_long_long=0
14429 fi
14430 fi
14431 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
14432 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
14433 cat >>confdefs.h <<_ACEOF
14434 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
14435 _ACEOF
14436
14437
14438
14439 echo "$as_me:$LINENO: checking whether linux/input.h is for real" >&5
14440 echo $ECHO_N "checking whether linux/input.h is for real... $ECHO_C" >&6
14441 if test "${wine_cv_linux_input_h+set}" = set; then
14442   echo $ECHO_N "(cached) $ECHO_C" >&6
14443 else
14444   cat >conftest.$ac_ext <<_ACEOF
14445 #line $LINENO "configure"
14446 /* confdefs.h.  */
14447 _ACEOF
14448 cat confdefs.h >>conftest.$ac_ext
14449 cat >>conftest.$ac_ext <<_ACEOF
14450 /* end confdefs.h.  */
14451
14452             #include <linux/input.h>
14453
14454 int
14455 main ()
14456 {
14457
14458             int foo = EVIOCGBIT(EV_ABS,42);
14459             int bar = BTN_PINKIE;
14460             int fortytwo = 42;
14461
14462   ;
14463   return 0;
14464 }
14465 _ACEOF
14466 rm -f conftest.$ac_objext
14467 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14468   (eval $ac_compile) 2>&5
14469   ac_status=$?
14470   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14471   (exit $ac_status); } &&
14472          { ac_try='test -s conftest.$ac_objext'
14473   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14474   (eval $ac_try) 2>&5
14475   ac_status=$?
14476   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14477   (exit $ac_status); }; }; then
14478   wine_cv_linux_input_h=yes
14479 else
14480   echo "$as_me: failed program was:" >&5
14481 sed 's/^/| /' conftest.$ac_ext >&5
14482
14483 wine_cv_linux_input_h=no
14484 fi
14485 rm -f conftest.$ac_objext conftest.$ac_ext
14486
14487 fi
14488 echo "$as_me:$LINENO: result: $wine_cv_linux_input_h" >&5
14489 echo "${ECHO_T}$wine_cv_linux_input_h" >&6
14490     if test "$wine_cv_linux_input_h" = "yes"
14491     then
14492
14493 cat >>confdefs.h <<\_ACEOF
14494 #define HAVE_CORRECT_LINUXINPUT_H 1
14495 _ACEOF
14496
14497     fi
14498
14499
14500 echo "$as_me:$LINENO: checking whether we can use re-entrant gethostbyname_r Linux style" >&5
14501 echo $ECHO_N "checking whether we can use re-entrant gethostbyname_r Linux style... $ECHO_C" >&6
14502 if test "${wine_cv_linux_gethostbyname_r_6+set}" = set; then
14503   echo $ECHO_N "(cached) $ECHO_C" >&6
14504 else
14505   cat >conftest.$ac_ext <<_ACEOF
14506 #line $LINENO "configure"
14507 /* confdefs.h.  */
14508 _ACEOF
14509 cat confdefs.h >>conftest.$ac_ext
14510 cat >>conftest.$ac_ext <<_ACEOF
14511 /* end confdefs.h.  */
14512
14513 #include <netdb.h>
14514
14515 int
14516 main ()
14517 {
14518
14519     char *name=NULL;
14520     struct hostent he;
14521     struct hostent *result;
14522     char *buf=NULL;
14523     int bufsize=0;
14524     int res,errnr;
14525     char *addr=NULL;
14526     int addrlen=0;
14527     int addrtype=0;
14528     res=gethostbyname_r(name,&he,buf,bufsize,&result,&errnr);
14529     res=gethostbyaddr_r(addr, addrlen, addrtype,&he,buf,bufsize,&result,&errnr);
14530
14531   ;
14532   return 0;
14533 }
14534 _ACEOF
14535 rm -f conftest.$ac_objext
14536 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14537   (eval $ac_compile) 2>&5
14538   ac_status=$?
14539   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14540   (exit $ac_status); } &&
14541          { ac_try='test -s conftest.$ac_objext'
14542   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14543   (eval $ac_try) 2>&5
14544   ac_status=$?
14545   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14546   (exit $ac_status); }; }; then
14547   wine_cv_linux_gethostbyname_r_6=yes
14548 else
14549   echo "$as_me: failed program was:" >&5
14550 sed 's/^/| /' conftest.$ac_ext >&5
14551
14552 wine_cv_linux_gethostbyname_r_6=no
14553
14554 fi
14555 rm -f conftest.$ac_objext conftest.$ac_ext
14556
14557 fi
14558 echo "$as_me:$LINENO: result: $wine_cv_linux_gethostbyname_r_6" >&5
14559 echo "${ECHO_T}$wine_cv_linux_gethostbyname_r_6" >&6
14560    if test "$wine_cv_linux_gethostbyname_r_6" = "yes"
14561    then
14562
14563 cat >>confdefs.h <<\_ACEOF
14564 #define HAVE_LINUX_GETHOSTBYNAME_R_6 1
14565 _ACEOF
14566
14567    fi
14568
14569 if test "$ac_cv_header_linux_joystick_h" = "yes"
14570 then
14571    echo "$as_me:$LINENO: checking whether linux/joystick.h uses the Linux 2.2+ API" >&5
14572 echo $ECHO_N "checking whether linux/joystick.h uses the Linux 2.2+ API... $ECHO_C" >&6
14573 if test "${wine_cv_linux_joystick_22_api+set}" = set; then
14574   echo $ECHO_N "(cached) $ECHO_C" >&6
14575 else
14576   cat >conftest.$ac_ext <<_ACEOF
14577 #line $LINENO "configure"
14578 /* confdefs.h.  */
14579 _ACEOF
14580 cat confdefs.h >>conftest.$ac_ext
14581 cat >>conftest.$ac_ext <<_ACEOF
14582 /* end confdefs.h.  */
14583
14584         #include <sys/ioctl.h>
14585         #include <linux/joystick.h>
14586
14587         struct js_event blub;
14588         #if !defined(JS_EVENT_AXIS) || !defined(JS_EVENT_BUTTON)
14589         #error "no 2.2 header"
14590         #endif
14591
14592 int
14593 main ()
14594 {
14595 /*empty*/
14596   ;
14597   return 0;
14598 }
14599 _ACEOF
14600 rm -f conftest.$ac_objext
14601 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14602   (eval $ac_compile) 2>&5
14603   ac_status=$?
14604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14605   (exit $ac_status); } &&
14606          { ac_try='test -s conftest.$ac_objext'
14607   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14608   (eval $ac_try) 2>&5
14609   ac_status=$?
14610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14611   (exit $ac_status); }; }; then
14612   wine_cv_linux_joystick_22_api=yes
14613 else
14614   echo "$as_me: failed program was:" >&5
14615 sed 's/^/| /' conftest.$ac_ext >&5
14616
14617 wine_cv_linux_joystick_22_api=no
14618 fi
14619 rm -f conftest.$ac_objext conftest.$ac_ext
14620
14621 fi
14622 echo "$as_me:$LINENO: result: $wine_cv_linux_joystick_22_api" >&5
14623 echo "${ECHO_T}$wine_cv_linux_joystick_22_api" >&6
14624    if test "$wine_cv_linux_joystick_22_api" = "yes"
14625    then
14626
14627 cat >>confdefs.h <<\_ACEOF
14628 #define HAVE_LINUX_22_JOYSTICK_API 1
14629 _ACEOF
14630
14631    fi
14632 fi
14633
14634
14635 if test "$ac_cv_header_sys_vfs_h" = "yes"
14636 then
14637     echo "$as_me:$LINENO: checking whether sys/vfs.h defines statfs" >&5
14638 echo $ECHO_N "checking whether sys/vfs.h defines statfs... $ECHO_C" >&6
14639 if test "${wine_cv_sys_vfs_has_statfs+set}" = set; then
14640   echo $ECHO_N "(cached) $ECHO_C" >&6
14641 else
14642   cat >conftest.$ac_ext <<_ACEOF
14643 #line $LINENO "configure"
14644 /* confdefs.h.  */
14645 _ACEOF
14646 cat confdefs.h >>conftest.$ac_ext
14647 cat >>conftest.$ac_ext <<_ACEOF
14648 /* end confdefs.h.  */
14649
14650         #include <sys/types.h>
14651         #ifdef HAVE_SYS_PARAM_H
14652         # include <sys/param.h>
14653         #endif
14654         #include <sys/vfs.h>
14655
14656 int
14657 main ()
14658 {
14659
14660                 struct statfs stfs;
14661
14662                 memset(&stfs,0,sizeof(stfs));
14663
14664   ;
14665   return 0;
14666 }
14667 _ACEOF
14668 rm -f conftest.$ac_objext
14669 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14670   (eval $ac_compile) 2>&5
14671   ac_status=$?
14672   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14673   (exit $ac_status); } &&
14674          { ac_try='test -s conftest.$ac_objext'
14675   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14676   (eval $ac_try) 2>&5
14677   ac_status=$?
14678   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14679   (exit $ac_status); }; }; then
14680   wine_cv_sys_vfs_has_statfs=yes
14681 else
14682   echo "$as_me: failed program was:" >&5
14683 sed 's/^/| /' conftest.$ac_ext >&5
14684
14685 wine_cv_sys_vfs_has_statfs=no
14686
14687 fi
14688 rm -f conftest.$ac_objext conftest.$ac_ext
14689
14690 fi
14691 echo "$as_me:$LINENO: result: $wine_cv_sys_vfs_has_statfs" >&5
14692 echo "${ECHO_T}$wine_cv_sys_vfs_has_statfs" >&6
14693     if test "$wine_cv_sys_vfs_has_statfs" = "yes"
14694     then
14695
14696 cat >>confdefs.h <<\_ACEOF
14697 #define STATFS_DEFINED_BY_SYS_VFS 1
14698 _ACEOF
14699
14700     fi
14701 fi
14702
14703 if test "$ac_cv_header_sys_statfs_h" = "yes"
14704 then
14705     echo "$as_me:$LINENO: checking whether sys/statfs.h defines statfs" >&5
14706 echo $ECHO_N "checking whether sys/statfs.h defines statfs... $ECHO_C" >&6
14707 if test "${wine_cv_sys_statfs_has_statfs+set}" = set; then
14708   echo $ECHO_N "(cached) $ECHO_C" >&6
14709 else
14710   cat >conftest.$ac_ext <<_ACEOF
14711 #line $LINENO "configure"
14712 /* confdefs.h.  */
14713 _ACEOF
14714 cat confdefs.h >>conftest.$ac_ext
14715 cat >>conftest.$ac_ext <<_ACEOF
14716 /* end confdefs.h.  */
14717
14718         #include <sys/types.h>
14719         #ifdef HAVE_SYS_PARAM_H
14720         # include <sys/param.h>
14721         #endif
14722         #include <sys/statfs.h>
14723
14724 int
14725 main ()
14726 {
14727
14728                 struct statfs stfs;
14729
14730   ;
14731   return 0;
14732 }
14733 _ACEOF
14734 rm -f conftest.$ac_objext
14735 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14736   (eval $ac_compile) 2>&5
14737   ac_status=$?
14738   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14739   (exit $ac_status); } &&
14740          { ac_try='test -s conftest.$ac_objext'
14741   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14742   (eval $ac_try) 2>&5
14743   ac_status=$?
14744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14745   (exit $ac_status); }; }; then
14746   wine_cv_sys_statfs_has_statfs=yes
14747 else
14748   echo "$as_me: failed program was:" >&5
14749 sed 's/^/| /' conftest.$ac_ext >&5
14750
14751 wine_cv_sys_statfs_has_statfs=no
14752
14753 fi
14754 rm -f conftest.$ac_objext conftest.$ac_ext
14755
14756 fi
14757 echo "$as_me:$LINENO: result: $wine_cv_sys_statfs_has_statfs" >&5
14758 echo "${ECHO_T}$wine_cv_sys_statfs_has_statfs" >&6
14759     if test "$wine_cv_sys_statfs_has_statfs" = "yes"
14760     then
14761
14762 cat >>confdefs.h <<\_ACEOF
14763 #define STATFS_DEFINED_BY_SYS_STATFS 1
14764 _ACEOF
14765
14766     fi
14767 fi
14768
14769 if test "$ac_cv_header_sys_mount_h" = "yes"
14770 then
14771     echo "$as_me:$LINENO: checking whether sys/mount.h defines statfs" >&5
14772 echo $ECHO_N "checking whether sys/mount.h defines statfs... $ECHO_C" >&6
14773 if test "${wine_cv_sys_mount_has_statfs+set}" = set; then
14774   echo $ECHO_N "(cached) $ECHO_C" >&6
14775 else
14776   cat >conftest.$ac_ext <<_ACEOF
14777 #line $LINENO "configure"
14778 /* confdefs.h.  */
14779 _ACEOF
14780 cat confdefs.h >>conftest.$ac_ext
14781 cat >>conftest.$ac_ext <<_ACEOF
14782 /* end confdefs.h.  */
14783
14784         #include <sys/types.h>
14785         #ifdef HAVE_SYS_PARAM_H
14786         # include <sys/param.h>
14787         #endif
14788         #include <sys/mount.h>
14789
14790 int
14791 main ()
14792 {
14793
14794                 struct statfs stfs;
14795
14796   ;
14797   return 0;
14798 }
14799 _ACEOF
14800 rm -f conftest.$ac_objext
14801 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14802   (eval $ac_compile) 2>&5
14803   ac_status=$?
14804   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14805   (exit $ac_status); } &&
14806          { ac_try='test -s conftest.$ac_objext'
14807   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14808   (eval $ac_try) 2>&5
14809   ac_status=$?
14810   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14811   (exit $ac_status); }; }; then
14812   wine_cv_sys_mount_has_statfs=yes
14813 else
14814   echo "$as_me: failed program was:" >&5
14815 sed 's/^/| /' conftest.$ac_ext >&5
14816
14817 wine_cv_sys_mount_has_statfs=no
14818
14819 fi
14820 rm -f conftest.$ac_objext conftest.$ac_ext
14821
14822 fi
14823 echo "$as_me:$LINENO: result: $wine_cv_sys_mount_has_statfs" >&5
14824 echo "${ECHO_T}$wine_cv_sys_mount_has_statfs" >&6
14825     if test "$wine_cv_sys_mount_has_statfs" = "yes"
14826     then
14827
14828 cat >>confdefs.h <<\_ACEOF
14829 #define STATFS_DEFINED_BY_SYS_MOUNT 1
14830 _ACEOF
14831
14832     fi
14833 fi
14834
14835
14836 echo "$as_me:$LINENO: checking for f_bfree in struct statfs" >&5
14837 echo $ECHO_N "checking for f_bfree in struct statfs... $ECHO_C" >&6
14838 if test "${ac_cv_c_statfs_f_bfree+set}" = set; then
14839   echo $ECHO_N "(cached) $ECHO_C" >&6
14840 else
14841   cat >conftest.$ac_ext <<_ACEOF
14842 #line $LINENO "configure"
14843 /* confdefs.h.  */
14844 _ACEOF
14845 cat confdefs.h >>conftest.$ac_ext
14846 cat >>conftest.$ac_ext <<_ACEOF
14847 /* end confdefs.h.  */
14848 #include <sys/types.h>
14849 #ifdef HAVE_SYS_PARAM_H
14850 # include <sys/param.h>
14851 #endif
14852 #ifdef STATFS_DEFINED_BY_SYS_MOUNT
14853 # include <sys/mount.h>
14854 #else
14855 # ifdef STATFS_DEFINED_BY_SYS_VFS
14856 #  include <sys/vfs.h>
14857 # else
14858 #  ifdef STATFS_DEFINED_BY_SYS_STATFS
14859 #   include <sys/statfs.h>
14860 #  endif
14861 # endif
14862 #endif
14863 int
14864 main ()
14865 {
14866 struct statfs s; s.f_bfree = 0
14867   ;
14868   return 0;
14869 }
14870 _ACEOF
14871 rm -f conftest.$ac_objext
14872 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14873   (eval $ac_compile) 2>&5
14874   ac_status=$?
14875   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14876   (exit $ac_status); } &&
14877          { ac_try='test -s conftest.$ac_objext'
14878   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14879   (eval $ac_try) 2>&5
14880   ac_status=$?
14881   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14882   (exit $ac_status); }; }; then
14883   ac_cv_c_statfs_f_bfree="yes"
14884 else
14885   echo "$as_me: failed program was:" >&5
14886 sed 's/^/| /' conftest.$ac_ext >&5
14887
14888 ac_cv_c_statfs_f_bfree="no"
14889 fi
14890 rm -f conftest.$ac_objext conftest.$ac_ext
14891 fi
14892 echo "$as_me:$LINENO: result: $ac_cv_c_statfs_f_bfree" >&5
14893 echo "${ECHO_T}$ac_cv_c_statfs_f_bfree" >&6
14894 if  test "x$ac_cv_c_statfs_f_bfree" = "xyes"; then
14895
14896 cat >>confdefs.h <<\_ACEOF
14897 #define STATFS_HAS_BFREE 1
14898 _ACEOF
14899
14900 fi
14901
14902
14903
14904 echo "$as_me:$LINENO: checking for f_bavail in struct statfs" >&5
14905 echo $ECHO_N "checking for f_bavail in struct statfs... $ECHO_C" >&6
14906 if test "${ac_cv_c_statfs_f_bavail+set}" = set; then
14907   echo $ECHO_N "(cached) $ECHO_C" >&6
14908 else
14909   cat >conftest.$ac_ext <<_ACEOF
14910 #line $LINENO "configure"
14911 /* confdefs.h.  */
14912 _ACEOF
14913 cat confdefs.h >>conftest.$ac_ext
14914 cat >>conftest.$ac_ext <<_ACEOF
14915 /* end confdefs.h.  */
14916 #include <sys/types.h>
14917 #ifdef HAVE_SYS_PARAM_H
14918 # include <sys/param.h>
14919 #endif
14920 #ifdef STATFS_DEFINED_BY_SYS_MOUNT
14921 # include <sys/mount.h>
14922 #else
14923 # ifdef STATFS_DEFINED_BY_SYS_VFS
14924 #  include <sys/vfs.h>
14925 # else
14926 #  ifdef STATFS_DEFINED_BY_SYS_STATFS
14927 #   include <sys/statfs.h>
14928 #  endif
14929 # endif
14930 #endif
14931 int
14932 main ()
14933 {
14934 struct statfs s; s.f_bavail = 0
14935   ;
14936   return 0;
14937 }
14938 _ACEOF
14939 rm -f conftest.$ac_objext
14940 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14941   (eval $ac_compile) 2>&5
14942   ac_status=$?
14943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14944   (exit $ac_status); } &&
14945          { ac_try='test -s conftest.$ac_objext'
14946   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14947   (eval $ac_try) 2>&5
14948   ac_status=$?
14949   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14950   (exit $ac_status); }; }; then
14951   ac_cv_c_statfs_f_bavail="yes"
14952 else
14953   echo "$as_me: failed program was:" >&5
14954 sed 's/^/| /' conftest.$ac_ext >&5
14955
14956 ac_cv_c_statfs_f_bavail="no"
14957 fi
14958 rm -f conftest.$ac_objext conftest.$ac_ext
14959 fi
14960 echo "$as_me:$LINENO: result: $ac_cv_c_statfs_f_bavail" >&5
14961 echo "${ECHO_T}$ac_cv_c_statfs_f_bavail" >&6
14962 if  test "x$ac_cv_c_statfs_f_bavail" = "xyes"; then
14963
14964 cat >>confdefs.h <<\_ACEOF
14965 #define STATFS_HAS_BAVAIL 1
14966 _ACEOF
14967
14968 fi
14969
14970
14971
14972 echo "$as_me:$LINENO: checking for msg_accrights in struct msghdr" >&5
14973 echo $ECHO_N "checking for msg_accrights in struct msghdr... $ECHO_C" >&6
14974 if test "${ac_cv_c_msghdr_msg_accrights+set}" = set; then
14975   echo $ECHO_N "(cached) $ECHO_C" >&6
14976 else
14977   cat >conftest.$ac_ext <<_ACEOF
14978 #line $LINENO "configure"
14979 /* confdefs.h.  */
14980 _ACEOF
14981 cat confdefs.h >>conftest.$ac_ext
14982 cat >>conftest.$ac_ext <<_ACEOF
14983 /* end confdefs.h.  */
14984 #include <sys/types.h>
14985 #ifdef HAVE_SYS_SOCKET_H
14986 # include <sys/socket.h>
14987 #endif
14988 int
14989 main ()
14990 {
14991 struct msghdr s; s.msg_accrights = 0
14992   ;
14993   return 0;
14994 }
14995 _ACEOF
14996 rm -f conftest.$ac_objext
14997 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14998   (eval $ac_compile) 2>&5
14999   ac_status=$?
15000   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15001   (exit $ac_status); } &&
15002          { ac_try='test -s conftest.$ac_objext'
15003   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15004   (eval $ac_try) 2>&5
15005   ac_status=$?
15006   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15007   (exit $ac_status); }; }; then
15008   ac_cv_c_msghdr_msg_accrights="yes"
15009 else
15010   echo "$as_me: failed program was:" >&5
15011 sed 's/^/| /' conftest.$ac_ext >&5
15012
15013 ac_cv_c_msghdr_msg_accrights="no"
15014 fi
15015 rm -f conftest.$ac_objext conftest.$ac_ext
15016 fi
15017 echo "$as_me:$LINENO: result: $ac_cv_c_msghdr_msg_accrights" >&5
15018 echo "${ECHO_T}$ac_cv_c_msghdr_msg_accrights" >&6
15019 if  test "x$ac_cv_c_msghdr_msg_accrights" = "xyes"; then
15020
15021 cat >>confdefs.h <<\_ACEOF
15022 #define HAVE_MSGHDR_ACCRIGHTS 1
15023 _ACEOF
15024
15025 fi
15026
15027
15028
15029 echo "$as_me:$LINENO: checking for sa_len in struct sockaddr" >&5
15030 echo $ECHO_N "checking for sa_len in struct sockaddr... $ECHO_C" >&6
15031 if test "${ac_cv_c_sockaddr_sa_len+set}" = set; then
15032   echo $ECHO_N "(cached) $ECHO_C" >&6
15033 else
15034   cat >conftest.$ac_ext <<_ACEOF
15035 #line $LINENO "configure"
15036 /* confdefs.h.  */
15037 _ACEOF
15038 cat confdefs.h >>conftest.$ac_ext
15039 cat >>conftest.$ac_ext <<_ACEOF
15040 /* end confdefs.h.  */
15041 #include <sys/types.h>
15042 #ifdef HAVE_SYS_SOCKET_H
15043 # include <sys/socket.h>
15044 #endif
15045 int
15046 main ()
15047 {
15048 struct sockaddr s; s.sa_len = 0
15049   ;
15050   return 0;
15051 }
15052 _ACEOF
15053 rm -f conftest.$ac_objext
15054 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15055   (eval $ac_compile) 2>&5
15056   ac_status=$?
15057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15058   (exit $ac_status); } &&
15059          { ac_try='test -s conftest.$ac_objext'
15060   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15061   (eval $ac_try) 2>&5
15062   ac_status=$?
15063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15064   (exit $ac_status); }; }; then
15065   ac_cv_c_sockaddr_sa_len="yes"
15066 else
15067   echo "$as_me: failed program was:" >&5
15068 sed 's/^/| /' conftest.$ac_ext >&5
15069
15070 ac_cv_c_sockaddr_sa_len="no"
15071 fi
15072 rm -f conftest.$ac_objext conftest.$ac_ext
15073 fi
15074 echo "$as_me:$LINENO: result: $ac_cv_c_sockaddr_sa_len" >&5
15075 echo "${ECHO_T}$ac_cv_c_sockaddr_sa_len" >&6
15076 if  test "x$ac_cv_c_sockaddr_sa_len" = "xyes"; then
15077
15078 cat >>confdefs.h <<\_ACEOF
15079 #define HAVE_SOCKADDR_SA_LEN 1
15080 _ACEOF
15081
15082 fi
15083
15084
15085
15086 echo "$as_me:$LINENO: checking for sun_len in struct sockaddr_un" >&5
15087 echo $ECHO_N "checking for sun_len in struct sockaddr_un... $ECHO_C" >&6
15088 if test "${ac_cv_c_sockaddr_un_sun_len+set}" = set; then
15089   echo $ECHO_N "(cached) $ECHO_C" >&6
15090 else
15091   cat >conftest.$ac_ext <<_ACEOF
15092 #line $LINENO "configure"
15093 /* confdefs.h.  */
15094 _ACEOF
15095 cat confdefs.h >>conftest.$ac_ext
15096 cat >>conftest.$ac_ext <<_ACEOF
15097 /* end confdefs.h.  */
15098 #include <sys/types.h>
15099 #ifdef HAVE_SYS_SOCKET_H
15100 # include <sys/socket.h>
15101 #endif
15102 #ifdef HAVE_SYS_UN_H
15103 # include <sys/un.h>
15104 #endif
15105 int
15106 main ()
15107 {
15108 struct sockaddr_un s; s.sun_len = 0
15109   ;
15110   return 0;
15111 }
15112 _ACEOF
15113 rm -f conftest.$ac_objext
15114 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15115   (eval $ac_compile) 2>&5
15116   ac_status=$?
15117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15118   (exit $ac_status); } &&
15119          { ac_try='test -s conftest.$ac_objext'
15120   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15121   (eval $ac_try) 2>&5
15122   ac_status=$?
15123   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15124   (exit $ac_status); }; }; then
15125   ac_cv_c_sockaddr_un_sun_len="yes"
15126 else
15127   echo "$as_me: failed program was:" >&5
15128 sed 's/^/| /' conftest.$ac_ext >&5
15129
15130 ac_cv_c_sockaddr_un_sun_len="no"
15131 fi
15132 rm -f conftest.$ac_objext conftest.$ac_ext
15133 fi
15134 echo "$as_me:$LINENO: result: $ac_cv_c_sockaddr_un_sun_len" >&5
15135 echo "${ECHO_T}$ac_cv_c_sockaddr_un_sun_len" >&6
15136 if  test "x$ac_cv_c_sockaddr_un_sun_len" = "xyes"; then
15137
15138 cat >>confdefs.h <<\_ACEOF
15139 #define HAVE_SOCKADDR_SUN_LEN 1
15140 _ACEOF
15141
15142 fi
15143
15144
15145
15146
15147 case $host_cpu in
15148   *i[3456789]86*) echo "$as_me:$LINENO: checking whether we need to define __i386__" >&5
15149 echo $ECHO_N "checking whether we need to define __i386__... $ECHO_C" >&6
15150 if test "${ac_cv_cpp_def___i386__+set}" = set; then
15151   echo $ECHO_N "(cached) $ECHO_C" >&6
15152 else
15153   cat >conftest.$ac_ext <<_ACEOF
15154 #line $LINENO "configure"
15155 /* confdefs.h.  */
15156 _ACEOF
15157 cat confdefs.h >>conftest.$ac_ext
15158 cat >>conftest.$ac_ext <<_ACEOF
15159 /* end confdefs.h.  */
15160 #ifndef __i386__
15161 yes
15162 #endif
15163 _ACEOF
15164 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15165   $EGREP "yes" >/dev/null 2>&1; then
15166   ac_cv_cpp_def___i386__=yes
15167 else
15168   ac_cv_cpp_def___i386__=no
15169 fi
15170 rm -f conftest*
15171
15172 fi
15173 echo "$as_me:$LINENO: result: $ac_cv_cpp_def___i386__" >&5
15174 echo "${ECHO_T}$ac_cv_cpp_def___i386__" >&6
15175 if test $ac_cv_cpp_def___i386__ = yes; then
15176   CFLAGS="$CFLAGS -D__i386__"
15177   LINTFLAGS="$LINTFLAGS -D__i386__"
15178 fi
15179  ;;
15180   *alpha*)          echo "$as_me:$LINENO: checking whether we need to define __ALPHA__" >&5
15181 echo $ECHO_N "checking whether we need to define __ALPHA__... $ECHO_C" >&6
15182 if test "${ac_cv_cpp_def___ALPHA__+set}" = set; then
15183   echo $ECHO_N "(cached) $ECHO_C" >&6
15184 else
15185   cat >conftest.$ac_ext <<_ACEOF
15186 #line $LINENO "configure"
15187 /* confdefs.h.  */
15188 _ACEOF
15189 cat confdefs.h >>conftest.$ac_ext
15190 cat >>conftest.$ac_ext <<_ACEOF
15191 /* end confdefs.h.  */
15192 #ifndef __ALPHA__
15193 yes
15194 #endif
15195 _ACEOF
15196 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15197   $EGREP "yes" >/dev/null 2>&1; then
15198   ac_cv_cpp_def___ALPHA__=yes
15199 else
15200   ac_cv_cpp_def___ALPHA__=no
15201 fi
15202 rm -f conftest*
15203
15204 fi
15205 echo "$as_me:$LINENO: result: $ac_cv_cpp_def___ALPHA__" >&5
15206 echo "${ECHO_T}$ac_cv_cpp_def___ALPHA__" >&6
15207 if test $ac_cv_cpp_def___ALPHA__ = yes; then
15208   CFLAGS="$CFLAGS -D__ALPHA__"
15209   LINTFLAGS="$LINTFLAGS -D__ALPHA__"
15210 fi
15211  ;;
15212   *sparc*)          echo "$as_me:$LINENO: checking whether we need to define __sparc__" >&5
15213 echo $ECHO_N "checking whether we need to define __sparc__... $ECHO_C" >&6
15214 if test "${ac_cv_cpp_def___sparc__+set}" = set; then
15215   echo $ECHO_N "(cached) $ECHO_C" >&6
15216 else
15217   cat >conftest.$ac_ext <<_ACEOF
15218 #line $LINENO "configure"
15219 /* confdefs.h.  */
15220 _ACEOF
15221 cat confdefs.h >>conftest.$ac_ext
15222 cat >>conftest.$ac_ext <<_ACEOF
15223 /* end confdefs.h.  */
15224 #ifndef __sparc__
15225 yes
15226 #endif
15227 _ACEOF
15228 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15229   $EGREP "yes" >/dev/null 2>&1; then
15230   ac_cv_cpp_def___sparc__=yes
15231 else
15232   ac_cv_cpp_def___sparc__=no
15233 fi
15234 rm -f conftest*
15235
15236 fi
15237 echo "$as_me:$LINENO: result: $ac_cv_cpp_def___sparc__" >&5
15238 echo "${ECHO_T}$ac_cv_cpp_def___sparc__" >&6
15239 if test $ac_cv_cpp_def___sparc__ = yes; then
15240   CFLAGS="$CFLAGS -D__sparc__"
15241   LINTFLAGS="$LINTFLAGS -D__sparc__"
15242 fi
15243  ;;
15244 esac
15245
15246 case $host_vendor in
15247   *sun*) echo "$as_me:$LINENO: checking whether we need to define __sun__" >&5
15248 echo $ECHO_N "checking whether we need to define __sun__... $ECHO_C" >&6
15249 if test "${ac_cv_cpp_def___sun__+set}" = set; then
15250   echo $ECHO_N "(cached) $ECHO_C" >&6
15251 else
15252   cat >conftest.$ac_ext <<_ACEOF
15253 #line $LINENO "configure"
15254 /* confdefs.h.  */
15255 _ACEOF
15256 cat confdefs.h >>conftest.$ac_ext
15257 cat >>conftest.$ac_ext <<_ACEOF
15258 /* end confdefs.h.  */
15259 #ifndef __sun__
15260 yes
15261 #endif
15262 _ACEOF
15263 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15264   $EGREP "yes" >/dev/null 2>&1; then
15265   ac_cv_cpp_def___sun__=yes
15266 else
15267   ac_cv_cpp_def___sun__=no
15268 fi
15269 rm -f conftest*
15270
15271 fi
15272 echo "$as_me:$LINENO: result: $ac_cv_cpp_def___sun__" >&5
15273 echo "${ECHO_T}$ac_cv_cpp_def___sun__" >&6
15274 if test $ac_cv_cpp_def___sun__ = yes; then
15275   CFLAGS="$CFLAGS -D__sun__"
15276   LINTFLAGS="$LINTFLAGS -D__sun__"
15277 fi
15278  ;;
15279 esac
15280
15281
15282
15283
15284
15285           ac_config_commands="$ac_config_commands controls"
15286
15287           ac_config_commands="$ac_config_commands dlls/ddraw/d3ddevice"
15288
15289           ac_config_commands="$ac_config_commands dlls/ddraw/dclipper"
15290
15291           ac_config_commands="$ac_config_commands dlls/ddraw/ddraw"
15292
15293           ac_config_commands="$ac_config_commands dlls/ddraw/direct3d"
15294
15295           ac_config_commands="$ac_config_commands dlls/ddraw/dpalette"
15296
15297           ac_config_commands="$ac_config_commands dlls/ddraw/dsurface"
15298
15299           ac_config_commands="$ac_config_commands dlls/dinput/joystick"
15300
15301           ac_config_commands="$ac_config_commands dlls/dinput/keyboard"
15302
15303           ac_config_commands="$ac_config_commands dlls/dinput/mouse"
15304
15305           ac_config_commands="$ac_config_commands dlls/gdi/enhmfdrv"
15306
15307           ac_config_commands="$ac_config_commands dlls/gdi/mfdrv"
15308
15309           ac_config_commands="$ac_config_commands dlls/gdi/win16drv"
15310
15311           ac_config_commands="$ac_config_commands dlls/kernel/messages"
15312
15313           ac_config_commands="$ac_config_commands dlls/user/dde"
15314
15315           ac_config_commands="$ac_config_commands dlls/user/resources"
15316
15317           ac_config_commands="$ac_config_commands dlls/wineps/data"
15318
15319           ac_config_commands="$ac_config_commands files"
15320
15321           ac_config_commands="$ac_config_commands graphics"
15322
15323           ac_config_commands="$ac_config_commands graphics/x11drv"
15324
15325           ac_config_commands="$ac_config_commands if1632"
15326
15327           ac_config_commands="$ac_config_commands include/wine"
15328
15329           ac_config_commands="$ac_config_commands loader"
15330
15331           ac_config_commands="$ac_config_commands loader/ne"
15332
15333           ac_config_commands="$ac_config_commands memory"
15334
15335           ac_config_commands="$ac_config_commands misc"
15336
15337           ac_config_commands="$ac_config_commands msdos"
15338
15339           ac_config_commands="$ac_config_commands objects"
15340
15341           ac_config_commands="$ac_config_commands programs/regapi/tests"
15342
15343           ac_config_commands="$ac_config_commands programs/regedit/tests"
15344
15345           ac_config_commands="$ac_config_commands relay32"
15346
15347           ac_config_commands="$ac_config_commands scheduler"
15348
15349           ac_config_commands="$ac_config_commands win32"
15350
15351           ac_config_commands="$ac_config_commands windows"
15352
15353
15354 MAKE_RULES=Make.rules
15355
15356
15357 MAKE_DLL_RULES=dlls/Makedll.rules
15358
15359
15360 MAKE_TEST_RULES=dlls/Maketest.rules
15361
15362
15363 MAKE_PROG_RULES=programs/Makeprog.rules
15364
15365
15366                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         ac_config_files="$ac_config_files Make.rules dlls/Makedll.rules dlls/Maketest.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/commdlg/Makefile dlls/crtdll/Makefile dlls/crypt32/Makefile dlls/ctl3d/Makefile dlls/d3d8/Makefile dlls/d3dx8/Makefile dlls/dciman32/Makefile dlls/ddraw/Makefile dlls/devenum/Makefile dlls/dinput/Makefile dlls/dinput8/Makefile dlls/dplay/Makefile dlls/dplayx/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/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/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/wintab32/Makefile dlls/wintrust/Makefile dlls/wow32/Makefile dlls/wsock32/Makefile dlls/x11drv/Makefile documentation/Makefile include/Makefile library/Makefile miscemu/Makefile ole/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/uninstaller/Makefile programs/view/Makefile programs/wcmd/Makefile programs/wineboot/Makefile programs/wineconsole/Makefile programs/winedbg/Makefile programs/winefile/Makefile programs/winemine/Makefile programs/winepath/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/wpp/Makefile tools/wrc/Makefile unicode/Makefile"
15367
15368
15369 cat >confcache <<\_ACEOF
15370 # This file is a shell script that caches the results of configure
15371 # tests run on this system so they can be shared between configure
15372 # scripts and configure runs, see configure's option --config-cache.
15373 # It is not useful on other systems.  If it contains results you don't
15374 # want to keep, you may remove or edit it.
15375 #
15376 # config.status only pays attention to the cache file if you give it
15377 # the --recheck option to rerun configure.
15378 #
15379 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15380 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15381 # following values.
15382
15383 _ACEOF
15384
15385 # The following way of writing the cache mishandles newlines in values,
15386 # but we know of no workaround that is simple, portable, and efficient.
15387 # So, don't put newlines in cache variables' values.
15388 # Ultrix sh set writes to stderr and can't be redirected directly,
15389 # and sets the high bit in the cache file unless we assign to the vars.
15390 {
15391   (set) 2>&1 |
15392     case `(ac_space=' '; set | grep ac_space) 2>&1` in
15393     *ac_space=\ *)
15394       # `set' does not quote correctly, so add quotes (double-quote
15395       # substitution turns \\\\ into \\, and sed turns \\ into \).
15396       sed -n \
15397         "s/'/'\\\\''/g;
15398           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15399       ;;
15400     *)
15401       # `set' quotes correctly as required by POSIX, so do not add quotes.
15402       sed -n \
15403         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
15404       ;;
15405     esac;
15406 } |
15407   sed '
15408      t clear
15409      : clear
15410      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15411      t end
15412      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15413      : end' >>confcache
15414 if diff $cache_file confcache >/dev/null 2>&1; then :; else
15415   if test -w $cache_file; then
15416     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
15417     cat confcache >$cache_file
15418   else
15419     echo "not updating unwritable cache $cache_file"
15420   fi
15421 fi
15422 rm -f confcache
15423
15424 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15425 # Let make expand exec_prefix.
15426 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15427
15428 # VPATH may cause trouble with some makes, so we remove $(srcdir),
15429 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
15430 # trailing colons and then remove the whole line if VPATH becomes empty
15431 # (actually we leave an empty line to preserve line numbers).
15432 if test "x$srcdir" = x.; then
15433   ac_vpsub='/^[         ]*VPATH[        ]*=/{
15434 s/:*\$(srcdir):*/:/;
15435 s/:*\${srcdir}:*/:/;
15436 s/:*@srcdir@:*/:/;
15437 s/^\([^=]*=[    ]*\):*/\1/;
15438 s/:*$//;
15439 s/^[^=]*=[      ]*$//;
15440 }'
15441 fi
15442
15443 DEFS=-DHAVE_CONFIG_H
15444
15445 ac_libobjs=
15446 ac_ltlibobjs=
15447 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15448   # 1. Remove the extension, and $U if already installed.
15449   ac_i=`echo "$ac_i" |
15450          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
15451   # 2. Add them.
15452   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
15453   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
15454 done
15455 LIBOBJS=$ac_libobjs
15456
15457 LTLIBOBJS=$ac_ltlibobjs
15458
15459
15460
15461 : ${CONFIG_STATUS=./config.status}
15462 ac_clean_files_save=$ac_clean_files
15463 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15464 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
15465 echo "$as_me: creating $CONFIG_STATUS" >&6;}
15466 cat >$CONFIG_STATUS <<_ACEOF
15467 #! $SHELL
15468 # Generated by $as_me.
15469 # Run this file to recreate the current configuration.
15470 # Compiler output produced by configure, useful for debugging
15471 # configure, is in config.log if it exists.
15472
15473 debug=false
15474 ac_cs_recheck=false
15475 ac_cs_silent=false
15476 SHELL=\${CONFIG_SHELL-$SHELL}
15477 _ACEOF
15478
15479 cat >>$CONFIG_STATUS <<\_ACEOF
15480 ## --------------------- ##
15481 ## M4sh Initialization.  ##
15482 ## --------------------- ##
15483
15484 # Be Bourne compatible
15485 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
15486   emulate sh
15487   NULLCMD=:
15488   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
15489   # is contrary to our usage.  Disable this feature.
15490   alias -g '${1+"$@"}'='"$@"'
15491 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
15492   set -o posix
15493 fi
15494
15495 # Support unset when possible.
15496 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
15497   as_unset=unset
15498 else
15499   as_unset=false
15500 fi
15501
15502
15503 # Work around bugs in pre-3.0 UWIN ksh.
15504 $as_unset ENV MAIL MAILPATH
15505 PS1='$ '
15506 PS2='> '
15507 PS4='+ '
15508
15509 # NLS nuisances.
15510 for as_var in \
15511   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
15512   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
15513   LC_TELEPHONE LC_TIME
15514 do
15515   if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
15516     eval $as_var=C; export $as_var
15517   else
15518     $as_unset $as_var
15519   fi
15520 done
15521
15522 # Required to use basename.
15523 if expr a : '\(a\)' >/dev/null 2>&1; then
15524   as_expr=expr
15525 else
15526   as_expr=false
15527 fi
15528
15529 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
15530   as_basename=basename
15531 else
15532   as_basename=false
15533 fi
15534
15535
15536 # Name of the executable.
15537 as_me=`$as_basename "$0" ||
15538 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15539          X"$0" : 'X\(//\)$' \| \
15540          X"$0" : 'X\(/\)$' \| \
15541          .     : '\(.\)' 2>/dev/null ||
15542 echo X/"$0" |
15543     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
15544           /^X\/\(\/\/\)$/{ s//\1/; q; }
15545           /^X\/\(\/\).*/{ s//\1/; q; }
15546           s/.*/./; q'`
15547
15548
15549 # PATH needs CR, and LINENO needs CR and PATH.
15550 # Avoid depending upon Character Ranges.
15551 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15552 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15553 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15554 as_cr_digits='0123456789'
15555 as_cr_alnum=$as_cr_Letters$as_cr_digits
15556
15557 # The user is always right.
15558 if test "${PATH_SEPARATOR+set}" != set; then
15559   echo "#! /bin/sh" >conf$$.sh
15560   echo  "exit 0"   >>conf$$.sh
15561   chmod +x conf$$.sh
15562   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
15563     PATH_SEPARATOR=';'
15564   else
15565     PATH_SEPARATOR=:
15566   fi
15567   rm -f conf$$.sh
15568 fi
15569
15570
15571   as_lineno_1=$LINENO
15572   as_lineno_2=$LINENO
15573   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
15574   test "x$as_lineno_1" != "x$as_lineno_2" &&
15575   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
15576   # Find who we are.  Look in the path if we contain no path at all
15577   # relative or not.
15578   case $0 in
15579     *[\\/]* ) as_myself=$0 ;;
15580     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15581 for as_dir in $PATH
15582 do
15583   IFS=$as_save_IFS
15584   test -z "$as_dir" && as_dir=.
15585   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15586 done
15587
15588        ;;
15589   esac
15590   # We did not find ourselves, most probably we were run as `sh COMMAND'
15591   # in which case we are not to be found in the path.
15592   if test "x$as_myself" = x; then
15593     as_myself=$0
15594   fi
15595   if test ! -f "$as_myself"; then
15596     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
15597 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
15598    { (exit 1); exit 1; }; }
15599   fi
15600   case $CONFIG_SHELL in
15601   '')
15602     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15603 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
15604 do
15605   IFS=$as_save_IFS
15606   test -z "$as_dir" && as_dir=.
15607   for as_base in sh bash ksh sh5; do
15608          case $as_dir in
15609          /*)
15610            if ("$as_dir/$as_base" -c '
15611   as_lineno_1=$LINENO
15612   as_lineno_2=$LINENO
15613   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
15614   test "x$as_lineno_1" != "x$as_lineno_2" &&
15615   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
15616              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
15617              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
15618              CONFIG_SHELL=$as_dir/$as_base
15619              export CONFIG_SHELL
15620              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
15621            fi;;
15622          esac
15623        done
15624 done
15625 ;;
15626   esac
15627
15628   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
15629   # uniformly replaced by the line number.  The first 'sed' inserts a
15630   # line-number line before each line; the second 'sed' does the real
15631   # work.  The second script uses 'N' to pair each line-number line
15632   # with the numbered line, and appends trailing '-' during
15633   # substitution so that $LINENO is not a special case at line end.
15634   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
15635   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
15636   sed '=' <$as_myself |
15637     sed '
15638       N
15639       s,$,-,
15640       : loop
15641       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
15642       t loop
15643       s,-$,,
15644       s,^['$as_cr_digits']*\n,,
15645     ' >$as_me.lineno &&
15646   chmod +x $as_me.lineno ||
15647     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
15648 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
15649    { (exit 1); exit 1; }; }
15650
15651   # Don't try to exec as it changes $[0], causing all sort of problems
15652   # (the dirname of $[0] is not the place where we might find the
15653   # original and so on.  Autoconf is especially sensible to this).
15654   . ./$as_me.lineno
15655   # Exit status is that of the last command.
15656   exit
15657 }
15658
15659
15660 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
15661   *c*,-n*) ECHO_N= ECHO_C='
15662 ' ECHO_T='      ' ;;
15663   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
15664   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
15665 esac
15666
15667 if expr a : '\(a\)' >/dev/null 2>&1; then
15668   as_expr=expr
15669 else
15670   as_expr=false
15671 fi
15672
15673 rm -f conf$$ conf$$.exe conf$$.file
15674 echo >conf$$.file
15675 if ln -s conf$$.file conf$$ 2>/dev/null; then
15676   # We could just check for DJGPP; but this test a) works b) is more generic
15677   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
15678   if test -f conf$$.exe; then
15679     # Don't use ln at all; we don't have any links
15680     as_ln_s='cp -p'
15681   else
15682     as_ln_s='ln -s'
15683   fi
15684 elif ln conf$$.file conf$$ 2>/dev/null; then
15685   as_ln_s=ln
15686 else
15687   as_ln_s='cp -p'
15688 fi
15689 rm -f conf$$ conf$$.exe conf$$.file
15690
15691 if mkdir -p . 2>/dev/null; then
15692   as_mkdir_p=:
15693 else
15694   as_mkdir_p=false
15695 fi
15696
15697 as_executable_p="test -f"
15698
15699 # Sed expression to map a string onto a valid CPP name.
15700 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
15701
15702 # Sed expression to map a string onto a valid variable name.
15703 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
15704
15705
15706 # IFS
15707 # We need space, tab and new line, in precisely that order.
15708 as_nl='
15709 '
15710 IFS="   $as_nl"
15711
15712 # CDPATH.
15713 $as_unset CDPATH
15714
15715 exec 6>&1
15716
15717 # Open the log real soon, to keep \$[0] and so on meaningful, and to
15718 # report actual input values of CONFIG_FILES etc. instead of their
15719 # values after options handling.  Logging --version etc. is OK.
15720 exec 5>>config.log
15721 {
15722   echo
15723   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15724 ## Running $as_me. ##
15725 _ASBOX
15726 } >&5
15727 cat >&5 <<_CSEOF
15728
15729 This file was extended by Wine $as_me 20021219, which was
15730 generated by GNU Autoconf 2.57.  Invocation command line was
15731
15732   CONFIG_FILES    = $CONFIG_FILES
15733   CONFIG_HEADERS  = $CONFIG_HEADERS
15734   CONFIG_LINKS    = $CONFIG_LINKS
15735   CONFIG_COMMANDS = $CONFIG_COMMANDS
15736   $ $0 $@
15737
15738 _CSEOF
15739 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
15740 echo >&5
15741 _ACEOF
15742
15743 # Files that config.status was made for.
15744 if test -n "$ac_config_files"; then
15745   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
15746 fi
15747
15748 if test -n "$ac_config_headers"; then
15749   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
15750 fi
15751
15752 if test -n "$ac_config_links"; then
15753   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
15754 fi
15755
15756 if test -n "$ac_config_commands"; then
15757   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
15758 fi
15759
15760 cat >>$CONFIG_STATUS <<\_ACEOF
15761
15762 ac_cs_usage="\
15763 \`$as_me' instantiates files from templates according to the
15764 current configuration.
15765
15766 Usage: $0 [OPTIONS] [FILE]...
15767
15768   -h, --help       print this help, then exit
15769   -V, --version    print version number, then exit
15770   -q, --quiet      do not print progress messages
15771   -d, --debug      don't remove temporary files
15772       --recheck    update $as_me by reconfiguring in the same conditions
15773   --file=FILE[:TEMPLATE]
15774                    instantiate the configuration file FILE
15775   --header=FILE[:TEMPLATE]
15776                    instantiate the configuration header FILE
15777
15778 Configuration files:
15779 $config_files
15780
15781 Configuration headers:
15782 $config_headers
15783
15784 Configuration commands:
15785 $config_commands
15786
15787 Report bugs to <bug-autoconf@gnu.org>."
15788 _ACEOF
15789
15790 cat >>$CONFIG_STATUS <<_ACEOF
15791 ac_cs_version="\\
15792 Wine config.status 20021219
15793 configured by $0, generated by GNU Autoconf 2.57,
15794   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
15795
15796 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
15797 Free Software Foundation, Inc.
15798 This config.status script is free software; the Free Software Foundation
15799 gives unlimited permission to copy, distribute and modify it."
15800 srcdir=$srcdir
15801 INSTALL="$INSTALL"
15802 _ACEOF
15803
15804 cat >>$CONFIG_STATUS <<\_ACEOF
15805 # If no file are specified by the user, then we need to provide default
15806 # value.  By we need to know if files were specified by the user.
15807 ac_need_defaults=:
15808 while test $# != 0
15809 do
15810   case $1 in
15811   --*=*)
15812     ac_option=`expr "x$1" : 'x\([^=]*\)='`
15813     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
15814     ac_shift=:
15815     ;;
15816   -*)
15817     ac_option=$1
15818     ac_optarg=$2
15819     ac_shift=shift
15820     ;;
15821   *) # This is not an option, so the user has probably given explicit
15822      # arguments.
15823      ac_option=$1
15824      ac_need_defaults=false;;
15825   esac
15826
15827   case $ac_option in
15828   # Handling of the options.
15829 _ACEOF
15830 cat >>$CONFIG_STATUS <<\_ACEOF
15831   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15832     ac_cs_recheck=: ;;
15833   --version | --vers* | -V )
15834     echo "$ac_cs_version"; exit 0 ;;
15835   --he | --h)
15836     # Conflict between --help and --header
15837     { { echo "$as_me:$LINENO: error: ambiguous option: $1
15838 Try \`$0 --help' for more information." >&5
15839 echo "$as_me: error: ambiguous option: $1
15840 Try \`$0 --help' for more information." >&2;}
15841    { (exit 1); exit 1; }; };;
15842   --help | --hel | -h )
15843     echo "$ac_cs_usage"; exit 0 ;;
15844   --debug | --d* | -d )
15845     debug=: ;;
15846   --file | --fil | --fi | --f )
15847     $ac_shift
15848     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
15849     ac_need_defaults=false;;
15850   --header | --heade | --head | --hea )
15851     $ac_shift
15852     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
15853     ac_need_defaults=false;;
15854   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15855   | -silent | --silent | --silen | --sile | --sil | --si | --s)
15856     ac_cs_silent=: ;;
15857
15858   # This is an error.
15859   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
15860 Try \`$0 --help' for more information." >&5
15861 echo "$as_me: error: unrecognized option: $1
15862 Try \`$0 --help' for more information." >&2;}
15863    { (exit 1); exit 1; }; } ;;
15864
15865   *) ac_config_targets="$ac_config_targets $1" ;;
15866
15867   esac
15868   shift
15869 done
15870
15871 ac_configure_extra_args=
15872
15873 if $ac_cs_silent; then
15874   exec 6>/dev/null
15875   ac_configure_extra_args="$ac_configure_extra_args --silent"
15876 fi
15877
15878 _ACEOF
15879 cat >>$CONFIG_STATUS <<_ACEOF
15880 if \$ac_cs_recheck; then
15881   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
15882   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15883 fi
15884
15885 _ACEOF
15886
15887
15888
15889
15890
15891 cat >>$CONFIG_STATUS <<\_ACEOF
15892 for ac_config_target in $ac_config_targets
15893 do
15894   case "$ac_config_target" in
15895   # Handling of arguments.
15896   "Make.rules" ) CONFIG_FILES="$CONFIG_FILES Make.rules" ;;
15897   "dlls/Makedll.rules" ) CONFIG_FILES="$CONFIG_FILES dlls/Makedll.rules" ;;
15898   "dlls/Maketest.rules" ) CONFIG_FILES="$CONFIG_FILES dlls/Maketest.rules" ;;
15899   "programs/Makeprog.rules" ) CONFIG_FILES="$CONFIG_FILES programs/Makeprog.rules" ;;
15900   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15901   "dlls/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/Makefile" ;;
15902   "dlls/advapi32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/advapi32/Makefile" ;;
15903   "dlls/advapi32/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/advapi32/tests/Makefile" ;;
15904   "dlls/avicap32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/avicap32/Makefile" ;;
15905   "dlls/avifil32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/avifil32/Makefile" ;;
15906   "dlls/cabinet/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/cabinet/Makefile" ;;
15907   "dlls/comcat/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/comcat/Makefile" ;;
15908   "dlls/comctl32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/comctl32/Makefile" ;;
15909   "dlls/commdlg/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/commdlg/Makefile" ;;
15910   "dlls/crtdll/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/crtdll/Makefile" ;;
15911   "dlls/crypt32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/crypt32/Makefile" ;;
15912   "dlls/ctl3d/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ctl3d/Makefile" ;;
15913   "dlls/d3d8/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/d3d8/Makefile" ;;
15914   "dlls/d3dx8/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/d3dx8/Makefile" ;;
15915   "dlls/dciman32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dciman32/Makefile" ;;
15916   "dlls/ddraw/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ddraw/Makefile" ;;
15917   "dlls/devenum/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/devenum/Makefile" ;;
15918   "dlls/dinput/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dinput/Makefile" ;;
15919   "dlls/dinput8/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dinput8/Makefile" ;;
15920   "dlls/dplay/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dplay/Makefile" ;;
15921   "dlls/dplayx/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dplayx/Makefile" ;;
15922   "dlls/dsound/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dsound/Makefile" ;;
15923   "dlls/dsound/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dsound/tests/Makefile" ;;
15924   "dlls/gdi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/gdi/Makefile" ;;
15925   "dlls/gdi/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/gdi/tests/Makefile" ;;
15926   "dlls/glu32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/glu32/Makefile" ;;
15927   "dlls/icmp/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/icmp/Makefile" ;;
15928   "dlls/imagehlp/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/imagehlp/Makefile" ;;
15929   "dlls/imm32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/imm32/Makefile" ;;
15930   "dlls/kernel/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/kernel/Makefile" ;;
15931   "dlls/kernel/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/kernel/tests/Makefile" ;;
15932   "dlls/lzexpand/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/lzexpand/Makefile" ;;
15933   "dlls/mapi32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/mapi32/Makefile" ;;
15934   "dlls/mpr/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/mpr/Makefile" ;;
15935   "dlls/msacm/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msacm/Makefile" ;;
15936   "dlls/msacm/imaadp32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msacm/imaadp32/Makefile" ;;
15937   "dlls/msacm/msadp32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msacm/msadp32/Makefile" ;;
15938   "dlls/msacm/msg711/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msacm/msg711/Makefile" ;;
15939   "dlls/msacm/winemp3/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msacm/winemp3/Makefile" ;;
15940   "dlls/msdmo/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msdmo/Makefile" ;;
15941   "dlls/msimg32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msimg32/Makefile" ;;
15942   "dlls/msisys/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msisys/Makefile" ;;
15943   "dlls/msnet32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msnet32/Makefile" ;;
15944   "dlls/msvcrt/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvcrt/Makefile" ;;
15945   "dlls/msvcrt/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvcrt/tests/Makefile" ;;
15946   "dlls/msvcrt20/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvcrt20/Makefile" ;;
15947   "dlls/msvideo/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvideo/Makefile" ;;
15948   "dlls/msvideo/msrle32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvideo/msrle32/Makefile" ;;
15949   "dlls/netapi32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/netapi32/Makefile" ;;
15950   "dlls/netapi32/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/netapi32/tests/Makefile" ;;
15951   "dlls/ntdll/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ntdll/Makefile" ;;
15952   "dlls/ntdll/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ntdll/tests/Makefile" ;;
15953   "dlls/odbc32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/odbc32/Makefile" ;;
15954   "dlls/ole32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ole32/Makefile" ;;
15955   "dlls/oleaut32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/oleaut32/Makefile" ;;
15956   "dlls/oleaut32/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/oleaut32/tests/Makefile" ;;
15957   "dlls/olecli/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/olecli/Makefile" ;;
15958   "dlls/oledlg/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/oledlg/Makefile" ;;
15959   "dlls/olepro32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/olepro32/Makefile" ;;
15960   "dlls/olesvr/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/olesvr/Makefile" ;;
15961   "dlls/opengl32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/opengl32/Makefile" ;;
15962   "dlls/psapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/psapi/Makefile" ;;
15963   "dlls/qcap/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/qcap/Makefile" ;;
15964   "dlls/quartz/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/quartz/Makefile" ;;
15965   "dlls/rasapi32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/rasapi32/Makefile" ;;
15966   "dlls/richedit/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/richedit/Makefile" ;;
15967   "dlls/rpcrt4/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/rpcrt4/Makefile" ;;
15968   "dlls/rpcrt4/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/rpcrt4/tests/Makefile" ;;
15969   "dlls/serialui/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/serialui/Makefile" ;;
15970   "dlls/setupapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/setupapi/Makefile" ;;
15971   "dlls/shdocvw/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shdocvw/Makefile" ;;
15972   "dlls/shell32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shell32/Makefile" ;;
15973   "dlls/shell32/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shell32/tests/Makefile" ;;
15974   "dlls/shfolder/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shfolder/Makefile" ;;
15975   "dlls/shlwapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shlwapi/Makefile" ;;
15976   "dlls/shlwapi/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shlwapi/tests/Makefile" ;;
15977   "dlls/snmpapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/snmpapi/Makefile" ;;
15978   "dlls/sti/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/sti/Makefile" ;;
15979   "dlls/tapi32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/tapi32/Makefile" ;;
15980   "dlls/ttydrv/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ttydrv/Makefile" ;;
15981   "dlls/twain/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/twain/Makefile" ;;
15982   "dlls/url/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/url/Makefile" ;;
15983   "dlls/urlmon/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/urlmon/Makefile" ;;
15984   "dlls/urlmon/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/urlmon/tests/Makefile" ;;
15985   "dlls/user/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/user/Makefile" ;;
15986   "dlls/user/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/user/tests/Makefile" ;;
15987   "dlls/version/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/version/Makefile" ;;
15988   "dlls/win32s/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/win32s/Makefile" ;;
15989   "dlls/winaspi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winaspi/Makefile" ;;
15990   "dlls/winedos/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winedos/Makefile" ;;
15991   "dlls/wineps/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wineps/Makefile" ;;
15992   "dlls/wininet/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wininet/Makefile" ;;
15993   "dlls/wininet/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wininet/tests/Makefile" ;;
15994   "dlls/winmm/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/Makefile" ;;
15995   "dlls/winmm/joystick/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/joystick/Makefile" ;;
15996   "dlls/winmm/mcianim/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/mcianim/Makefile" ;;
15997   "dlls/winmm/mciavi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/mciavi/Makefile" ;;
15998   "dlls/winmm/mcicda/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/mcicda/Makefile" ;;
15999   "dlls/winmm/mciseq/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/mciseq/Makefile" ;;
16000   "dlls/winmm/mciwave/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/mciwave/Makefile" ;;
16001   "dlls/winmm/midimap/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/midimap/Makefile" ;;
16002   "dlls/winmm/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/tests/Makefile" ;;
16003   "dlls/winmm/wavemap/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/wavemap/Makefile" ;;
16004   "dlls/winmm/winealsa/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/winealsa/Makefile" ;;
16005   "dlls/winmm/winearts/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/winearts/Makefile" ;;
16006   "dlls/winmm/wineaudioio/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/wineaudioio/Makefile" ;;
16007   "dlls/winmm/winenas/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/winenas/Makefile" ;;
16008   "dlls/winmm/winejack/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/winejack/Makefile" ;;
16009   "dlls/winmm/wineoss/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/wineoss/Makefile" ;;
16010   "dlls/winnls/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winnls/Makefile" ;;
16011   "dlls/winsock/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winsock/Makefile" ;;
16012   "dlls/winsock/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winsock/tests/Makefile" ;;
16013   "dlls/winspool/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winspool/Makefile" ;;
16014   "dlls/wintab32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wintab32/Makefile" ;;
16015   "dlls/wintrust/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wintrust/Makefile" ;;
16016   "dlls/wow32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wow32/Makefile" ;;
16017   "dlls/wsock32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wsock32/Makefile" ;;
16018   "dlls/x11drv/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/x11drv/Makefile" ;;
16019   "documentation/Makefile" ) CONFIG_FILES="$CONFIG_FILES documentation/Makefile" ;;
16020   "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
16021   "library/Makefile" ) CONFIG_FILES="$CONFIG_FILES library/Makefile" ;;
16022   "miscemu/Makefile" ) CONFIG_FILES="$CONFIG_FILES miscemu/Makefile" ;;
16023   "ole/Makefile" ) CONFIG_FILES="$CONFIG_FILES ole/Makefile" ;;
16024   "programs/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/Makefile" ;;
16025   "programs/avitools/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/avitools/Makefile" ;;
16026   "programs/clock/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/clock/Makefile" ;;
16027   "programs/cmdlgtst/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/cmdlgtst/Makefile" ;;
16028   "programs/control/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/control/Makefile" ;;
16029   "programs/expand/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/expand/Makefile" ;;
16030   "programs/notepad/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/notepad/Makefile" ;;
16031   "programs/osversioncheck/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/osversioncheck/Makefile" ;;
16032   "programs/progman/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/progman/Makefile" ;;
16033   "programs/regapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/regapi/Makefile" ;;
16034   "programs/regedit/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/regedit/Makefile" ;;
16035   "programs/regsvr32/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/regsvr32/Makefile" ;;
16036   "programs/regtest/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/regtest/Makefile" ;;
16037   "programs/rpcss/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/rpcss/Makefile" ;;
16038   "programs/rundll32/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/rundll32/Makefile" ;;
16039   "programs/uninstaller/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/uninstaller/Makefile" ;;
16040   "programs/view/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/view/Makefile" ;;
16041   "programs/wcmd/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/wcmd/Makefile" ;;
16042   "programs/wineboot/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/wineboot/Makefile" ;;
16043   "programs/wineconsole/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/wineconsole/Makefile" ;;
16044   "programs/winedbg/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winedbg/Makefile" ;;
16045   "programs/winefile/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winefile/Makefile" ;;
16046   "programs/winemine/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winemine/Makefile" ;;
16047   "programs/winepath/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winepath/Makefile" ;;
16048   "programs/winhelp/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winhelp/Makefile" ;;
16049   "programs/winver/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winver/Makefile" ;;
16050   "server/Makefile" ) CONFIG_FILES="$CONFIG_FILES server/Makefile" ;;
16051   "tools/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
16052   "tools/widl/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/widl/Makefile" ;;
16053   "tools/winapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/winapi/Makefile" ;;
16054   "tools/winebuild/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/winebuild/Makefile" ;;
16055   "tools/winedump/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/winedump/Makefile" ;;
16056   "tools/wmc/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/wmc/Makefile" ;;
16057   "tools/wpp/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/wpp/Makefile" ;;
16058   "tools/wrc/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/wrc/Makefile" ;;
16059   "unicode/Makefile" ) CONFIG_FILES="$CONFIG_FILES unicode/Makefile" ;;
16060   "controls" ) CONFIG_COMMANDS="$CONFIG_COMMANDS controls" ;;
16061   "dlls/ddraw/d3ddevice" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/d3ddevice" ;;
16062   "dlls/ddraw/dclipper" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/dclipper" ;;
16063   "dlls/ddraw/ddraw" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/ddraw" ;;
16064   "dlls/ddraw/direct3d" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/direct3d" ;;
16065   "dlls/ddraw/dpalette" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/dpalette" ;;
16066   "dlls/ddraw/dsurface" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/dsurface" ;;
16067   "dlls/dinput/joystick" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/dinput/joystick" ;;
16068   "dlls/dinput/keyboard" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/dinput/keyboard" ;;
16069   "dlls/dinput/mouse" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/dinput/mouse" ;;
16070   "dlls/gdi/enhmfdrv" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/gdi/enhmfdrv" ;;
16071   "dlls/gdi/mfdrv" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/gdi/mfdrv" ;;
16072   "dlls/gdi/win16drv" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/gdi/win16drv" ;;
16073   "dlls/kernel/messages" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/kernel/messages" ;;
16074   "dlls/user/dde" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/user/dde" ;;
16075   "dlls/user/resources" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/user/resources" ;;
16076   "dlls/wineps/data" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/wineps/data" ;;
16077   "files" ) CONFIG_COMMANDS="$CONFIG_COMMANDS files" ;;
16078   "graphics" ) CONFIG_COMMANDS="$CONFIG_COMMANDS graphics" ;;
16079   "graphics/x11drv" ) CONFIG_COMMANDS="$CONFIG_COMMANDS graphics/x11drv" ;;
16080   "if1632" ) CONFIG_COMMANDS="$CONFIG_COMMANDS if1632" ;;
16081   "include/wine" ) CONFIG_COMMANDS="$CONFIG_COMMANDS include/wine" ;;
16082   "loader" ) CONFIG_COMMANDS="$CONFIG_COMMANDS loader" ;;
16083   "loader/ne" ) CONFIG_COMMANDS="$CONFIG_COMMANDS loader/ne" ;;
16084   "memory" ) CONFIG_COMMANDS="$CONFIG_COMMANDS memory" ;;
16085   "misc" ) CONFIG_COMMANDS="$CONFIG_COMMANDS misc" ;;
16086   "msdos" ) CONFIG_COMMANDS="$CONFIG_COMMANDS msdos" ;;
16087   "objects" ) CONFIG_COMMANDS="$CONFIG_COMMANDS objects" ;;
16088   "programs/regapi/tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS programs/regapi/tests" ;;
16089   "programs/regedit/tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS programs/regedit/tests" ;;
16090   "relay32" ) CONFIG_COMMANDS="$CONFIG_COMMANDS relay32" ;;
16091   "scheduler" ) CONFIG_COMMANDS="$CONFIG_COMMANDS scheduler" ;;
16092   "win32" ) CONFIG_COMMANDS="$CONFIG_COMMANDS win32" ;;
16093   "windows" ) CONFIG_COMMANDS="$CONFIG_COMMANDS windows" ;;
16094   "include/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
16095   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
16096 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
16097    { (exit 1); exit 1; }; };;
16098   esac
16099 done
16100
16101 # If the user did not use the arguments to specify the items to instantiate,
16102 # then the envvar interface is used.  Set only those that are not.
16103 # We use the long form for the default assignment because of an extremely
16104 # bizarre bug on SunOS 4.1.3.
16105 if $ac_need_defaults; then
16106   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16107   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16108   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16109 fi
16110
16111 # Have a temporary directory for convenience.  Make it in the build tree
16112 # simply because there is no reason to put it here, and in addition,
16113 # creating and moving files from /tmp can sometimes cause problems.
16114 # Create a temporary directory, and hook for its removal unless debugging.
16115 $debug ||
16116 {
16117   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
16118   trap '{ (exit 1); exit 1; }' 1 2 13 15
16119 }
16120
16121 # Create a (secure) tmp directory for tmp files.
16122
16123 {
16124   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
16125   test -n "$tmp" && test -d "$tmp"
16126 }  ||
16127 {
16128   tmp=./confstat$$-$RANDOM
16129   (umask 077 && mkdir $tmp)
16130 } ||
16131 {
16132    echo "$me: cannot create a temporary directory in ." >&2
16133    { (exit 1); exit 1; }
16134 }
16135
16136 _ACEOF
16137
16138 cat >>$CONFIG_STATUS <<_ACEOF
16139
16140 #
16141 # CONFIG_FILES section.
16142 #
16143
16144 # No need to generate the scripts if there are no CONFIG_FILES.
16145 # This happens for instance when ./config.status config.h
16146 if test -n "\$CONFIG_FILES"; then
16147   # Protect against being on the right side of a sed subst in config.status.
16148   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
16149    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
16150 s,@SHELL@,$SHELL,;t t
16151 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
16152 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
16153 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
16154 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
16155 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
16156 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
16157 s,@exec_prefix@,$exec_prefix,;t t
16158 s,@prefix@,$prefix,;t t
16159 s,@program_transform_name@,$program_transform_name,;t t
16160 s,@bindir@,$bindir,;t t
16161 s,@sbindir@,$sbindir,;t t
16162 s,@libexecdir@,$libexecdir,;t t
16163 s,@datadir@,$datadir,;t t
16164 s,@sysconfdir@,$sysconfdir,;t t
16165 s,@sharedstatedir@,$sharedstatedir,;t t
16166 s,@localstatedir@,$localstatedir,;t t
16167 s,@libdir@,$libdir,;t t
16168 s,@includedir@,$includedir,;t t
16169 s,@oldincludedir@,$oldincludedir,;t t
16170 s,@infodir@,$infodir,;t t
16171 s,@mandir@,$mandir,;t t
16172 s,@build_alias@,$build_alias,;t t
16173 s,@host_alias@,$host_alias,;t t
16174 s,@target_alias@,$target_alias,;t t
16175 s,@DEFS@,$DEFS,;t t
16176 s,@ECHO_C@,$ECHO_C,;t t
16177 s,@ECHO_N@,$ECHO_N,;t t
16178 s,@ECHO_T@,$ECHO_T,;t t
16179 s,@LIBS@,$LIBS,;t t
16180 s,@OPTIONS@,$OPTIONS,;t t
16181 s,@WIN16_FILES@,$WIN16_FILES,;t t
16182 s,@WIN16_INSTALL@,$WIN16_INSTALL,;t t
16183 s,@build@,$build,;t t
16184 s,@build_cpu@,$build_cpu,;t t
16185 s,@build_vendor@,$build_vendor,;t t
16186 s,@build_os@,$build_os,;t t
16187 s,@host@,$host,;t t
16188 s,@host_cpu@,$host_cpu,;t t
16189 s,@host_vendor@,$host_vendor,;t t
16190 s,@host_os@,$host_os,;t t
16191 s,@SET_MAKE@,$SET_MAKE,;t t
16192 s,@CC@,$CC,;t t
16193 s,@CFLAGS@,$CFLAGS,;t t
16194 s,@LDFLAGS@,$LDFLAGS,;t t
16195 s,@CPPFLAGS@,$CPPFLAGS,;t t
16196 s,@ac_ct_CC@,$ac_ct_CC,;t t
16197 s,@EXEEXT@,$EXEEXT,;t t
16198 s,@OBJEXT@,$OBJEXT,;t t
16199 s,@CPP@,$CPP,;t t
16200 s,@TOOLSDIR@,$TOOLSDIR,;t t
16201 s,@X_CFLAGS@,$X_CFLAGS,;t t
16202 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
16203 s,@X_LIBS@,$X_LIBS,;t t
16204 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
16205 s,@YACC@,$YACC,;t t
16206 s,@LEX@,$LEX,;t t
16207 s,@LEXLIB@,$LEXLIB,;t t
16208 s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
16209 s,@XYACC@,$XYACC,;t t
16210 s,@XLEX@,$XLEX,;t t
16211 s,@AS@,$AS,;t t
16212 s,@ac_ct_AS@,$ac_ct_AS,;t t
16213 s,@LD@,$LD,;t t
16214 s,@ac_ct_LD@,$ac_ct_LD,;t t
16215 s,@AR@,$AR,;t t
16216 s,@ac_ct_AR@,$ac_ct_AR,;t t
16217 s,@RANLIB@,$RANLIB,;t t
16218 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
16219 s,@STRIP@,$STRIP,;t t
16220 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
16221 s,@WINDRES@,$WINDRES,;t t
16222 s,@ac_ct_WINDRES@,$ac_ct_WINDRES,;t t
16223 s,@LN_S@,$LN_S,;t t
16224 s,@LN@,$LN,;t t
16225 s,@C2MAN@,$C2MAN,;t t
16226 s,@LDCONFIG@,$LDCONFIG,;t t
16227 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
16228 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
16229 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
16230 s,@LINT@,$LINT,;t t
16231 s,@LINTFLAGS@,$LINTFLAGS,;t t
16232 s,@DB2HTML@,$DB2HTML,;t t
16233 s,@DB2PDF@,$DB2PDF,;t t
16234 s,@DB2PS@,$DB2PS,;t t
16235 s,@JPEGLIB@,$JPEGLIB,;t t
16236 s,@EGREP@,$EGREP,;t t
16237 s,@XLIB@,$XLIB,;t t
16238 s,@XFILES@,$XFILES,;t t
16239 s,@OPENGLFILES@,$OPENGLFILES,;t t
16240 s,@GLU32FILES@,$GLU32FILES,;t t
16241 s,@OPENGL_LIBS@,$OPENGL_LIBS,;t t
16242 s,@NASLIBS@,$NASLIBS,;t t
16243 s,@CURSESLIBS@,$CURSESLIBS,;t t
16244 s,@sane_devel@,$sane_devel,;t t
16245 s,@SANELIBS@,$SANELIBS,;t t
16246 s,@SANEINCL@,$SANEINCL,;t t
16247 s,@ft_devel@,$ft_devel,;t t
16248 s,@ft_devel2@,$ft_devel2,;t t
16249 s,@FREETYPEINCL@,$FREETYPEINCL,;t t
16250 s,@ARTSCCONFIG@,$ARTSCCONFIG,;t t
16251 s,@ARTSLIBS@,$ARTSLIBS,;t t
16252 s,@ARTSINCL@,$ARTSINCL,;t t
16253 s,@ALSALIBS@,$ALSALIBS,;t t
16254 s,@AUDIOIOLIBS@,$AUDIOIOLIBS,;t t
16255 s,@DLLEXT@,$DLLEXT,;t t
16256 s,@DLLFLAGS@,$DLLFLAGS,;t t
16257 s,@DLLIBS@,$DLLIBS,;t t
16258 s,@LDDLLFLAGS@,$LDDLLFLAGS,;t t
16259 s,@LDSHARED@,$LDSHARED,;t t
16260 s,@LIBEXT@,$LIBEXT,;t t
16261 s,@IMPLIBEXT@,$IMPLIBEXT,;t t
16262 s,@DLLTOOL@,$DLLTOOL,;t t
16263 s,@ac_ct_DLLTOOL@,$ac_ct_DLLTOOL,;t t
16264 s,@DLLWRAP@,$DLLWRAP,;t t
16265 s,@ac_ct_DLLWRAP@,$ac_ct_DLLWRAP,;t t
16266 s,@CROSSTEST@,$CROSSTEST,;t t
16267 s,@CROSSCC@,$CROSSCC,;t t
16268 s,@LDPATH@,$LDPATH,;t t
16269 s,@CRTLIBS@,$CRTLIBS,;t t
16270 s,@LDD@,$LDD,;t t
16271 s,@ALLOCA@,$ALLOCA,;t t
16272 s,@LIBOBJS@,$LIBOBJS,;t t
16273 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
16274 /@MAKE_RULES@/r $MAKE_RULES
16275 s,@MAKE_RULES@,,;t t
16276 /@MAKE_DLL_RULES@/r $MAKE_DLL_RULES
16277 s,@MAKE_DLL_RULES@,,;t t
16278 /@MAKE_TEST_RULES@/r $MAKE_TEST_RULES
16279 s,@MAKE_TEST_RULES@,,;t t
16280 /@MAKE_PROG_RULES@/r $MAKE_PROG_RULES
16281 s,@MAKE_PROG_RULES@,,;t t
16282 CEOF
16283
16284 _ACEOF
16285
16286   cat >>$CONFIG_STATUS <<\_ACEOF
16287   # Split the substitutions into bite-sized pieces for seds with
16288   # small command number limits, like on Digital OSF/1 and HP-UX.
16289   ac_max_sed_lines=48
16290   ac_sed_frag=1 # Number of current file.
16291   ac_beg=1 # First line for current file.
16292   ac_end=$ac_max_sed_lines # Line after last line for current file.
16293   ac_more_lines=:
16294   ac_sed_cmds=
16295   while $ac_more_lines; do
16296     if test $ac_beg -gt 1; then
16297       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
16298     else
16299       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
16300     fi
16301     if test ! -s $tmp/subs.frag; then
16302       ac_more_lines=false
16303     else
16304       # The purpose of the label and of the branching condition is to
16305       # speed up the sed processing (if there are no `@' at all, there
16306       # is no need to browse any of the substitutions).
16307       # These are the two extra sed commands mentioned above.
16308       (echo ':t
16309   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
16310       if test -z "$ac_sed_cmds"; then
16311         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
16312       else
16313         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
16314       fi
16315       ac_sed_frag=`expr $ac_sed_frag + 1`
16316       ac_beg=$ac_end
16317       ac_end=`expr $ac_end + $ac_max_sed_lines`
16318     fi
16319   done
16320   if test -z "$ac_sed_cmds"; then
16321     ac_sed_cmds=cat
16322   fi
16323 fi # test -n "$CONFIG_FILES"
16324
16325 _ACEOF
16326 cat >>$CONFIG_STATUS <<\_ACEOF
16327 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
16328   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
16329   case $ac_file in
16330   - | *:- | *:-:* ) # input from stdin
16331         cat >$tmp/stdin
16332         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
16333         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
16334   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
16335         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
16336   * )   ac_file_in=$ac_file.in ;;
16337   esac
16338
16339   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
16340   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
16341 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16342          X"$ac_file" : 'X\(//\)[^/]' \| \
16343          X"$ac_file" : 'X\(//\)$' \| \
16344          X"$ac_file" : 'X\(/\)' \| \
16345          .     : '\(.\)' 2>/dev/null ||
16346 echo X"$ac_file" |
16347     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16348           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16349           /^X\(\/\/\)$/{ s//\1/; q; }
16350           /^X\(\/\).*/{ s//\1/; q; }
16351           s/.*/./; q'`
16352   { if $as_mkdir_p; then
16353     mkdir -p "$ac_dir"
16354   else
16355     as_dir="$ac_dir"
16356     as_dirs=
16357     while test ! -d "$as_dir"; do
16358       as_dirs="$as_dir $as_dirs"
16359       as_dir=`(dirname "$as_dir") 2>/dev/null ||
16360 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16361          X"$as_dir" : 'X\(//\)[^/]' \| \
16362          X"$as_dir" : 'X\(//\)$' \| \
16363          X"$as_dir" : 'X\(/\)' \| \
16364          .     : '\(.\)' 2>/dev/null ||
16365 echo X"$as_dir" |
16366     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16367           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16368           /^X\(\/\/\)$/{ s//\1/; q; }
16369           /^X\(\/\).*/{ s//\1/; q; }
16370           s/.*/./; q'`
16371     done
16372     test ! -n "$as_dirs" || mkdir $as_dirs
16373   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
16374 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
16375    { (exit 1); exit 1; }; }; }
16376
16377   ac_builddir=.
16378
16379 if test "$ac_dir" != .; then
16380   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
16381   # A "../" for each directory in $ac_dir_suffix.
16382   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
16383 else
16384   ac_dir_suffix= ac_top_builddir=
16385 fi
16386
16387 case $srcdir in
16388   .)  # No --srcdir option.  We are building in place.
16389     ac_srcdir=.
16390     if test -z "$ac_top_builddir"; then
16391        ac_top_srcdir=.
16392     else
16393        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
16394     fi ;;
16395   [\\/]* | ?:[\\/]* )  # Absolute path.
16396     ac_srcdir=$srcdir$ac_dir_suffix;
16397     ac_top_srcdir=$srcdir ;;
16398   *) # Relative path.
16399     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
16400     ac_top_srcdir=$ac_top_builddir$srcdir ;;
16401 esac
16402 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
16403 # absolute.
16404 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
16405 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
16406 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
16407 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
16408
16409
16410   case $INSTALL in
16411   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16412   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
16413   esac
16414
16415   if test x"$ac_file" != x-; then
16416     { echo "$as_me:$LINENO: creating $ac_file" >&5
16417 echo "$as_me: creating $ac_file" >&6;}
16418     rm -f "$ac_file"
16419   fi
16420   # Let's still pretend it is `configure' which instantiates (i.e., don't
16421   # use $as_me), people would be surprised to read:
16422   #    /* config.h.  Generated by config.status.  */
16423   if test x"$ac_file" = x-; then
16424     configure_input=
16425   else
16426     configure_input="$ac_file.  "
16427   fi
16428   configure_input=$configure_input"Generated from `echo $ac_file_in |
16429                                      sed 's,.*/,,'` by configure."
16430
16431   # First look for the input files in the build tree, otherwise in the
16432   # src tree.
16433   ac_file_inputs=`IFS=:
16434     for f in $ac_file_in; do
16435       case $f in
16436       -) echo $tmp/stdin ;;
16437       [\\/$]*)
16438          # Absolute (can't be DOS-style, as IFS=:)
16439          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
16440 echo "$as_me: error: cannot find input file: $f" >&2;}
16441    { (exit 1); exit 1; }; }
16442          echo $f;;
16443       *) # Relative
16444          if test -f "$f"; then
16445            # Build tree
16446            echo $f
16447          elif test -f "$srcdir/$f"; then
16448            # Source tree
16449            echo $srcdir/$f
16450          else
16451            # /dev/null tree
16452            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
16453 echo "$as_me: error: cannot find input file: $f" >&2;}
16454    { (exit 1); exit 1; }; }
16455          fi;;
16456       esac
16457     done` || { (exit 1); exit 1; }
16458 _ACEOF
16459 cat >>$CONFIG_STATUS <<_ACEOF
16460   sed "$ac_vpsub
16461 $extrasub
16462 _ACEOF
16463 cat >>$CONFIG_STATUS <<\_ACEOF
16464 :t
16465 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16466 s,@configure_input@,$configure_input,;t t
16467 s,@srcdir@,$ac_srcdir,;t t
16468 s,@abs_srcdir@,$ac_abs_srcdir,;t t
16469 s,@top_srcdir@,$ac_top_srcdir,;t t
16470 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
16471 s,@builddir@,$ac_builddir,;t t
16472 s,@abs_builddir@,$ac_abs_builddir,;t t
16473 s,@top_builddir@,$ac_top_builddir,;t t
16474 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
16475 s,@INSTALL@,$ac_INSTALL,;t t
16476 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
16477   rm -f $tmp/stdin
16478   if test x"$ac_file" != x-; then
16479     mv $tmp/out $ac_file
16480   else
16481     cat $tmp/out
16482     rm -f $tmp/out
16483   fi
16484
16485 done
16486 _ACEOF
16487 cat >>$CONFIG_STATUS <<\_ACEOF
16488
16489 #
16490 # CONFIG_HEADER section.
16491 #
16492
16493 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
16494 # NAME is the cpp macro being defined and VALUE is the value it is being given.
16495 #
16496 # ac_d sets the value in "#define NAME VALUE" lines.
16497 ac_dA='s,^\([   ]*\)#\([        ]*define[       ][      ]*\)'
16498 ac_dB='[        ].*$,\1#\2'
16499 ac_dC=' '
16500 ac_dD=',;t'
16501 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
16502 ac_uA='s,^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
16503 ac_uB='$,\1#\2define\3'
16504 ac_uC=' '
16505 ac_uD=',;t'
16506
16507 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
16508   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
16509   case $ac_file in
16510   - | *:- | *:-:* ) # input from stdin
16511         cat >$tmp/stdin
16512         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
16513         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
16514   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
16515         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
16516   * )   ac_file_in=$ac_file.in ;;
16517   esac
16518
16519   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
16520 echo "$as_me: creating $ac_file" >&6;}
16521
16522   # First look for the input files in the build tree, otherwise in the
16523   # src tree.
16524   ac_file_inputs=`IFS=:
16525     for f in $ac_file_in; do
16526       case $f in
16527       -) echo $tmp/stdin ;;
16528       [\\/$]*)
16529          # Absolute (can't be DOS-style, as IFS=:)
16530          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
16531 echo "$as_me: error: cannot find input file: $f" >&2;}
16532    { (exit 1); exit 1; }; }
16533          echo $f;;
16534       *) # Relative
16535          if test -f "$f"; then
16536            # Build tree
16537            echo $f
16538          elif test -f "$srcdir/$f"; then
16539            # Source tree
16540            echo $srcdir/$f
16541          else
16542            # /dev/null tree
16543            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
16544 echo "$as_me: error: cannot find input file: $f" >&2;}
16545    { (exit 1); exit 1; }; }
16546          fi;;
16547       esac
16548     done` || { (exit 1); exit 1; }
16549   # Remove the trailing spaces.
16550   sed 's/[      ]*$//' $ac_file_inputs >$tmp/in
16551
16552 _ACEOF
16553
16554 # Transform confdefs.h into two sed scripts, `conftest.defines' and
16555 # `conftest.undefs', that substitutes the proper values into
16556 # config.h.in to produce config.h.  The first handles `#define'
16557 # templates, and the second `#undef' templates.
16558 # And first: Protect against being on the right side of a sed subst in
16559 # config.status.  Protect against being in an unquoted here document
16560 # in config.status.
16561 rm -f conftest.defines conftest.undefs
16562 # Using a here document instead of a string reduces the quoting nightmare.
16563 # Putting comments in sed scripts is not portable.
16564 #
16565 # `end' is used to avoid that the second main sed command (meant for
16566 # 0-ary CPP macros) applies to n-ary macro definitions.
16567 # See the Autoconf documentation for `clear'.
16568 cat >confdef2sed.sed <<\_ACEOF
16569 s/[\\&,]/\\&/g
16570 s,[\\$`],\\&,g
16571 t clear
16572 : clear
16573 s,^[    ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
16574 t end
16575 s,^[    ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
16576 : end
16577 _ACEOF
16578 # If some macros were called several times there might be several times
16579 # the same #defines, which is useless.  Nevertheless, we may not want to
16580 # sort them, since we want the *last* AC-DEFINE to be honored.
16581 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
16582 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
16583 rm -f confdef2sed.sed
16584
16585 # This sed command replaces #undef with comments.  This is necessary, for
16586 # example, in the case of _POSIX_SOURCE, which is predefined and required
16587 # on some systems where configure will not decide to define it.
16588 cat >>conftest.undefs <<\_ACEOF
16589 s,^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
16590 _ACEOF
16591
16592 # Break up conftest.defines because some shells have a limit on the size
16593 # of here documents, and old seds have small limits too (100 cmds).
16594 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
16595 echo '  if grep "^[     ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
16596 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
16597 echo '  :' >>$CONFIG_STATUS
16598 rm -f conftest.tail
16599 while grep . conftest.defines >/dev/null
16600 do
16601   # Write a limited-size here document to $tmp/defines.sed.
16602   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
16603   # Speed up: don't consider the non `#define' lines.
16604   echo '/^[     ]*#[    ]*define/!b' >>$CONFIG_STATUS
16605   # Work around the forget-to-reset-the-flag bug.
16606   echo 't clr' >>$CONFIG_STATUS
16607   echo ': clr' >>$CONFIG_STATUS
16608   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
16609   echo 'CEOF
16610   sed -f $tmp/defines.sed $tmp/in >$tmp/out
16611   rm -f $tmp/in
16612   mv $tmp/out $tmp/in
16613 ' >>$CONFIG_STATUS
16614   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
16615   rm -f conftest.defines
16616   mv conftest.tail conftest.defines
16617 done
16618 rm -f conftest.defines
16619 echo '  fi # grep' >>$CONFIG_STATUS
16620 echo >>$CONFIG_STATUS
16621
16622 # Break up conftest.undefs because some shells have a limit on the size
16623 # of here documents, and old seds have small limits too (100 cmds).
16624 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
16625 rm -f conftest.tail
16626 while grep . conftest.undefs >/dev/null
16627 do
16628   # Write a limited-size here document to $tmp/undefs.sed.
16629   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
16630   # Speed up: don't consider the non `#undef'
16631   echo '/^[     ]*#[    ]*undef/!b' >>$CONFIG_STATUS
16632   # Work around the forget-to-reset-the-flag bug.
16633   echo 't clr' >>$CONFIG_STATUS
16634   echo ': clr' >>$CONFIG_STATUS
16635   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
16636   echo 'CEOF
16637   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
16638   rm -f $tmp/in
16639   mv $tmp/out $tmp/in
16640 ' >>$CONFIG_STATUS
16641   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
16642   rm -f conftest.undefs
16643   mv conftest.tail conftest.undefs
16644 done
16645 rm -f conftest.undefs
16646
16647 cat >>$CONFIG_STATUS <<\_ACEOF
16648   # Let's still pretend it is `configure' which instantiates (i.e., don't
16649   # use $as_me), people would be surprised to read:
16650   #    /* config.h.  Generated by config.status.  */
16651   if test x"$ac_file" = x-; then
16652     echo "/* Generated by configure.  */" >$tmp/config.h
16653   else
16654     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
16655   fi
16656   cat $tmp/in >>$tmp/config.h
16657   rm -f $tmp/in
16658   if test x"$ac_file" != x-; then
16659     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
16660       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
16661 echo "$as_me: $ac_file is unchanged" >&6;}
16662     else
16663       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
16664 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16665          X"$ac_file" : 'X\(//\)[^/]' \| \
16666          X"$ac_file" : 'X\(//\)$' \| \
16667          X"$ac_file" : 'X\(/\)' \| \
16668          .     : '\(.\)' 2>/dev/null ||
16669 echo X"$ac_file" |
16670     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16671           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16672           /^X\(\/\/\)$/{ s//\1/; q; }
16673           /^X\(\/\).*/{ s//\1/; q; }
16674           s/.*/./; q'`
16675       { if $as_mkdir_p; then
16676     mkdir -p "$ac_dir"
16677   else
16678     as_dir="$ac_dir"
16679     as_dirs=
16680     while test ! -d "$as_dir"; do
16681       as_dirs="$as_dir $as_dirs"
16682       as_dir=`(dirname "$as_dir") 2>/dev/null ||
16683 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16684          X"$as_dir" : 'X\(//\)[^/]' \| \
16685          X"$as_dir" : 'X\(//\)$' \| \
16686          X"$as_dir" : 'X\(/\)' \| \
16687          .     : '\(.\)' 2>/dev/null ||
16688 echo X"$as_dir" |
16689     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16690           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16691           /^X\(\/\/\)$/{ s//\1/; q; }
16692           /^X\(\/\).*/{ s//\1/; q; }
16693           s/.*/./; q'`
16694     done
16695     test ! -n "$as_dirs" || mkdir $as_dirs
16696   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
16697 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
16698    { (exit 1); exit 1; }; }; }
16699
16700       rm -f $ac_file
16701       mv $tmp/config.h $ac_file
16702     fi
16703   else
16704     cat $tmp/config.h
16705     rm -f $tmp/config.h
16706   fi
16707 done
16708 _ACEOF
16709 cat >>$CONFIG_STATUS <<\_ACEOF
16710
16711 #
16712 # CONFIG_COMMANDS section.
16713 #
16714 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
16715   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
16716   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
16717   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
16718 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16719          X"$ac_dest" : 'X\(//\)[^/]' \| \
16720          X"$ac_dest" : 'X\(//\)$' \| \
16721          X"$ac_dest" : 'X\(/\)' \| \
16722          .     : '\(.\)' 2>/dev/null ||
16723 echo X"$ac_dest" |
16724     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16725           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16726           /^X\(\/\/\)$/{ s//\1/; q; }
16727           /^X\(\/\).*/{ s//\1/; q; }
16728           s/.*/./; q'`
16729   ac_builddir=.
16730
16731 if test "$ac_dir" != .; then
16732   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
16733   # A "../" for each directory in $ac_dir_suffix.
16734   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
16735 else
16736   ac_dir_suffix= ac_top_builddir=
16737 fi
16738
16739 case $srcdir in
16740   .)  # No --srcdir option.  We are building in place.
16741     ac_srcdir=.
16742     if test -z "$ac_top_builddir"; then
16743        ac_top_srcdir=.
16744     else
16745        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
16746     fi ;;
16747   [\\/]* | ?:[\\/]* )  # Absolute path.
16748     ac_srcdir=$srcdir$ac_dir_suffix;
16749     ac_top_srcdir=$srcdir ;;
16750   *) # Relative path.
16751     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
16752     ac_top_srcdir=$ac_top_builddir$srcdir ;;
16753 esac
16754 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
16755 # absolute.
16756 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
16757 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
16758 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
16759 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
16760
16761
16762   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
16763 echo "$as_me: executing $ac_dest commands" >&6;}
16764   case $ac_dest in
16765     controls ) test -d "controls" || ({ echo "$as_me:$LINENO: creating controls" >&5
16766 echo "$as_me: creating controls" >&6;} && mkdir "controls") ;;
16767     dlls/ddraw/d3ddevice ) test -d "dlls/ddraw/d3ddevice" || ({ echo "$as_me:$LINENO: creating dlls/ddraw/d3ddevice" >&5
16768 echo "$as_me: creating dlls/ddraw/d3ddevice" >&6;} && mkdir "dlls/ddraw/d3ddevice") ;;
16769     dlls/ddraw/dclipper ) test -d "dlls/ddraw/dclipper" || ({ echo "$as_me:$LINENO: creating dlls/ddraw/dclipper" >&5
16770 echo "$as_me: creating dlls/ddraw/dclipper" >&6;} && mkdir "dlls/ddraw/dclipper") ;;
16771     dlls/ddraw/ddraw ) test -d "dlls/ddraw/ddraw" || ({ echo "$as_me:$LINENO: creating dlls/ddraw/ddraw" >&5
16772 echo "$as_me: creating dlls/ddraw/ddraw" >&6;} && mkdir "dlls/ddraw/ddraw") ;;
16773     dlls/ddraw/direct3d ) test -d "dlls/ddraw/direct3d" || ({ echo "$as_me:$LINENO: creating dlls/ddraw/direct3d" >&5
16774 echo "$as_me: creating dlls/ddraw/direct3d" >&6;} && mkdir "dlls/ddraw/direct3d") ;;
16775     dlls/ddraw/dpalette ) test -d "dlls/ddraw/dpalette" || ({ echo "$as_me:$LINENO: creating dlls/ddraw/dpalette" >&5
16776 echo "$as_me: creating dlls/ddraw/dpalette" >&6;} && mkdir "dlls/ddraw/dpalette") ;;
16777     dlls/ddraw/dsurface ) test -d "dlls/ddraw/dsurface" || ({ echo "$as_me:$LINENO: creating dlls/ddraw/dsurface" >&5
16778 echo "$as_me: creating dlls/ddraw/dsurface" >&6;} && mkdir "dlls/ddraw/dsurface") ;;
16779     dlls/dinput/joystick ) test -d "dlls/dinput/joystick" || ({ echo "$as_me:$LINENO: creating dlls/dinput/joystick" >&5
16780 echo "$as_me: creating dlls/dinput/joystick" >&6;} && mkdir "dlls/dinput/joystick") ;;
16781     dlls/dinput/keyboard ) test -d "dlls/dinput/keyboard" || ({ echo "$as_me:$LINENO: creating dlls/dinput/keyboard" >&5
16782 echo "$as_me: creating dlls/dinput/keyboard" >&6;} && mkdir "dlls/dinput/keyboard") ;;
16783     dlls/dinput/mouse ) test -d "dlls/dinput/mouse" || ({ echo "$as_me:$LINENO: creating dlls/dinput/mouse" >&5
16784 echo "$as_me: creating dlls/dinput/mouse" >&6;} && mkdir "dlls/dinput/mouse") ;;
16785     dlls/gdi/enhmfdrv ) test -d "dlls/gdi/enhmfdrv" || ({ echo "$as_me:$LINENO: creating dlls/gdi/enhmfdrv" >&5
16786 echo "$as_me: creating dlls/gdi/enhmfdrv" >&6;} && mkdir "dlls/gdi/enhmfdrv") ;;
16787     dlls/gdi/mfdrv ) test -d "dlls/gdi/mfdrv" || ({ echo "$as_me:$LINENO: creating dlls/gdi/mfdrv" >&5
16788 echo "$as_me: creating dlls/gdi/mfdrv" >&6;} && mkdir "dlls/gdi/mfdrv") ;;
16789     dlls/gdi/win16drv ) test -d "dlls/gdi/win16drv" || ({ echo "$as_me:$LINENO: creating dlls/gdi/win16drv" >&5
16790 echo "$as_me: creating dlls/gdi/win16drv" >&6;} && mkdir "dlls/gdi/win16drv") ;;
16791     dlls/kernel/messages ) test -d "dlls/kernel/messages" || ({ echo "$as_me:$LINENO: creating dlls/kernel/messages" >&5
16792 echo "$as_me: creating dlls/kernel/messages" >&6;} && mkdir "dlls/kernel/messages") ;;
16793     dlls/user/dde ) test -d "dlls/user/dde" || ({ echo "$as_me:$LINENO: creating dlls/user/dde" >&5
16794 echo "$as_me: creating dlls/user/dde" >&6;} && mkdir "dlls/user/dde") ;;
16795     dlls/user/resources ) test -d "dlls/user/resources" || ({ echo "$as_me:$LINENO: creating dlls/user/resources" >&5
16796 echo "$as_me: creating dlls/user/resources" >&6;} && mkdir "dlls/user/resources") ;;
16797     dlls/wineps/data ) test -d "dlls/wineps/data" || ({ echo "$as_me:$LINENO: creating dlls/wineps/data" >&5
16798 echo "$as_me: creating dlls/wineps/data" >&6;} && mkdir "dlls/wineps/data") ;;
16799     files ) test -d "files" || ({ echo "$as_me:$LINENO: creating files" >&5
16800 echo "$as_me: creating files" >&6;} && mkdir "files") ;;
16801     graphics ) test -d "graphics" || ({ echo "$as_me:$LINENO: creating graphics" >&5
16802 echo "$as_me: creating graphics" >&6;} && mkdir "graphics") ;;
16803     graphics/x11drv ) test -d "graphics/x11drv" || ({ echo "$as_me:$LINENO: creating graphics/x11drv" >&5
16804 echo "$as_me: creating graphics/x11drv" >&6;} && mkdir "graphics/x11drv") ;;
16805     if1632 ) test -d "if1632" || ({ echo "$as_me:$LINENO: creating if1632" >&5
16806 echo "$as_me: creating if1632" >&6;} && mkdir "if1632") ;;
16807     include/wine ) test -d "include/wine" || ({ echo "$as_me:$LINENO: creating include/wine" >&5
16808 echo "$as_me: creating include/wine" >&6;} && mkdir "include/wine") ;;
16809     loader ) test -d "loader" || ({ echo "$as_me:$LINENO: creating loader" >&5
16810 echo "$as_me: creating loader" >&6;} && mkdir "loader") ;;
16811     loader/ne ) test -d "loader/ne" || ({ echo "$as_me:$LINENO: creating loader/ne" >&5
16812 echo "$as_me: creating loader/ne" >&6;} && mkdir "loader/ne") ;;
16813     memory ) test -d "memory" || ({ echo "$as_me:$LINENO: creating memory" >&5
16814 echo "$as_me: creating memory" >&6;} && mkdir "memory") ;;
16815     misc ) test -d "misc" || ({ echo "$as_me:$LINENO: creating misc" >&5
16816 echo "$as_me: creating misc" >&6;} && mkdir "misc") ;;
16817     msdos ) test -d "msdos" || ({ echo "$as_me:$LINENO: creating msdos" >&5
16818 echo "$as_me: creating msdos" >&6;} && mkdir "msdos") ;;
16819     objects ) test -d "objects" || ({ echo "$as_me:$LINENO: creating objects" >&5
16820 echo "$as_me: creating objects" >&6;} && mkdir "objects") ;;
16821     programs/regapi/tests ) test -d "programs/regapi/tests" || ({ echo "$as_me:$LINENO: creating programs/regapi/tests" >&5
16822 echo "$as_me: creating programs/regapi/tests" >&6;} && mkdir "programs/regapi/tests") ;;
16823     programs/regedit/tests ) test -d "programs/regedit/tests" || ({ echo "$as_me:$LINENO: creating programs/regedit/tests" >&5
16824 echo "$as_me: creating programs/regedit/tests" >&6;} && mkdir "programs/regedit/tests") ;;
16825     relay32 ) test -d "relay32" || ({ echo "$as_me:$LINENO: creating relay32" >&5
16826 echo "$as_me: creating relay32" >&6;} && mkdir "relay32") ;;
16827     scheduler ) test -d "scheduler" || ({ echo "$as_me:$LINENO: creating scheduler" >&5
16828 echo "$as_me: creating scheduler" >&6;} && mkdir "scheduler") ;;
16829     win32 ) test -d "win32" || ({ echo "$as_me:$LINENO: creating win32" >&5
16830 echo "$as_me: creating win32" >&6;} && mkdir "win32") ;;
16831     windows ) test -d "windows" || ({ echo "$as_me:$LINENO: creating windows" >&5
16832 echo "$as_me: creating windows" >&6;} && mkdir "windows") ;;
16833   esac
16834 done
16835 _ACEOF
16836
16837 cat >>$CONFIG_STATUS <<\_ACEOF
16838
16839 { (exit 0); exit 0; }
16840 _ACEOF
16841 chmod +x $CONFIG_STATUS
16842 ac_clean_files=$ac_clean_files_save
16843
16844
16845 # configure is writing to config.log, and then calls config.status.
16846 # config.status does its own redirection, appending to config.log.
16847 # Unfortunately, on DOS this fails, as config.log is still kept open
16848 # by configure, so config.status won't be able to write to it; its
16849 # output is simply discarded.  So we exec the FD to /dev/null,
16850 # effectively closing config.log, so it can be properly (re)opened and
16851 # appended to by config.status.  When coming back to configure, we
16852 # need to make the FD available again.
16853 if test "$no_create" != yes; then
16854   ac_cs_success=:
16855   ac_config_status_args=
16856   test "$silent" = yes &&
16857     ac_config_status_args="$ac_config_status_args --quiet"
16858   exec 5>/dev/null
16859   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16860   exec 5>>config.log
16861   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16862   # would make configure fail if this is the last instruction.
16863   $ac_cs_success || { (exit 1); exit 1; }
16864 fi
16865
16866
16867 if test "$have_x" = "no"
16868 then
16869   echo
16870   echo "*** Warning: X development files not found. Wine will be built without"
16871   echo "*** X support, which currently does not work, and would probably not be"
16872   echo "*** what you want anyway. You will need to install devel packages of"
16873   echo "*** Xlib/Xfree86 at the very least."
16874 fi
16875
16876 if test "$ac_cv_lib_ncurses_resizeterm" = "no" -a "$ac_cv_lib_ncurses_waddch" = "yes"
16877 then
16878   echo
16879   echo "*** Warning: resizeterm not found in ncurses. Wine will be built without"
16880   echo "*** terminal resize support. Consider upgrading ncurses."
16881 fi
16882
16883 if test "$wine_cv_libc_reentrant" = "no"
16884 then
16885   echo
16886   echo "*** Warning: non-reentrant libc detected. Wine will be built without"
16887   echo "*** threading support. Consider upgrading libc to a more recent"
16888   echo "*** reentrant version of libc."
16889 fi
16890
16891 if test "$have_x" = "yes" -a "$wine_cv_x_reentrant" != "yes"
16892 then
16893   echo
16894   echo "*** Warning: non-reentrant X11 library detected. Multi-threaded"
16895   echo "*** applications won't work properly. You should upgrade your X11 library."
16896 fi
16897
16898 if test "$wine_cv_opengl_version_OK" = "no"
16899 then
16900   echo
16901   echo "*** Warning: old Mesa headers detected. Wine will be built without Direct3D"
16902   echo "*** support. Consider upgrading your Mesa libraries (http://www.mesa3d.org/)."
16903 fi
16904
16905 if test "$wine_cv_msg_freetype" = "yes"
16906 then
16907   echo
16908   echo "*** Note: Your system appears to have the FreeType 2 runtime libraries"
16909   echo "*** installed, but 'freetype-config' is not in your PATH. Install the"
16910   echo "*** freetype-devel package (or its equivalent on your distribution) to"
16911   echo "*** enable Wine to use TrueType fonts."
16912 fi
16913
16914 echo
16915 echo "Configure finished.  Do 'make depend && make' to compile Wine."
16916 echo
16917