Include ft2build.h before freetype/freetype.h. Libfreetype 2.1.7
[wine] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.57 for Wine 20031016.
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='20031016'
270 PACKAGE_STRING='Wine 20031016'
271 PACKAGE_BUGREPORT=''
272
273 ac_unique_file="server/atom.c"
274 # Factoring default headers for most tests.
275 ac_includes_default="\
276 #include <stdio.h>
277 #if HAVE_SYS_TYPES_H
278 # include <sys/types.h>
279 #endif
280 #if HAVE_SYS_STAT_H
281 # include <sys/stat.h>
282 #endif
283 #if STDC_HEADERS
284 # include <stdlib.h>
285 # include <stddef.h>
286 #else
287 # if HAVE_STDLIB_H
288 #  include <stdlib.h>
289 # endif
290 #endif
291 #if HAVE_STRING_H
292 # if !STDC_HEADERS && HAVE_MEMORY_H
293 #  include <memory.h>
294 # endif
295 # include <string.h>
296 #endif
297 #if HAVE_STRINGS_H
298 # include <strings.h>
299 #endif
300 #if HAVE_INTTYPES_H
301 # include <inttypes.h>
302 #else
303 # if HAVE_STDINT_H
304 #  include <stdint.h>
305 # endif
306 #endif
307 #if HAVE_UNISTD_H
308 # include <unistd.h>
309 #endif"
310
311 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS WIN16_FILES WIN16_INSTALL build build_cpu build_vendor build_os host host_cpu host_vendor host_os SET_MAKE CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CPP TOOLSDIR X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS YACC LEX LEXLIB LEX_OUTPUT_ROOT XYACC XLEX AS ac_ct_AS LD ac_ct_LD AR ac_ct_AR RANLIB ac_ct_RANLIB STRIP ac_ct_STRIP WINDRES ac_ct_WINDRES LN_S LN LDCONFIG INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA LINT LINTFLAGS DB2HTML DB2PDF DB2PS DB2TXT LIBPTHREAD JPEGLIB EGREP GIFLIB XLIB XFILES OPENGLFILES GLU32FILES OPENGL_LIBS NASLIBS CURSESLIBS sane_devel SANELIBS SANEINCL ICULIBS ft_devel ft_devel2 FREETYPEINCL ARTSCCONFIG ARTSLIBS ARTSINCL ALSALIBS AUDIOIOLIBS CAPI4LINUXLIBS EXTRACFLAGS DLLEXT DLLFLAGS DLLIBS LDSHARED LDDLL LIBEXT IMPLIBEXT DLLTOOL ac_ct_DLLTOOL DLLWRAP ac_ct_DLLWRAP LDEXECFLAGS CROSSTEST CROSSCC CROSSWINDRES LDPATH CRTLIBS WINE_BINARIES MAIN_BINARY LDD ALLOCA LIBOBJS LTLIBOBJS'
312 ac_subst_files='MAKE_RULES MAKE_DLL_RULES MAKE_TEST_RULES MAKE_LIB_RULES MAKE_PROG_RULES'
313
314 # Initialize some variables set by options.
315 ac_init_help=
316 ac_init_version=false
317 # The variables have the same names as the options, with
318 # dashes changed to underlines.
319 cache_file=/dev/null
320 exec_prefix=NONE
321 no_create=
322 no_recursion=
323 prefix=NONE
324 program_prefix=NONE
325 program_suffix=NONE
326 program_transform_name=s,x,x,
327 silent=
328 site=
329 srcdir=
330 verbose=
331 x_includes=NONE
332 x_libraries=NONE
333
334 # Installation directory options.
335 # These are left unexpanded so users can "make install exec_prefix=/foo"
336 # and all the variables that are supposed to be based on exec_prefix
337 # by default will actually change.
338 # Use braces instead of parens because sh, perl, etc. also accept them.
339 bindir='${exec_prefix}/bin'
340 sbindir='${exec_prefix}/sbin'
341 libexecdir='${exec_prefix}/libexec'
342 datadir='${prefix}/share'
343 sysconfdir='${prefix}/etc'
344 sharedstatedir='${prefix}/com'
345 localstatedir='${prefix}/var'
346 libdir='${exec_prefix}/lib'
347 includedir='${prefix}/include'
348 oldincludedir='/usr/include'
349 infodir='${prefix}/info'
350 mandir='${prefix}/man'
351
352 ac_prev=
353 for ac_option
354 do
355   # If the previous option needs an argument, assign it.
356   if test -n "$ac_prev"; then
357     eval "$ac_prev=\$ac_option"
358     ac_prev=
359     continue
360   fi
361
362   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
363
364   # Accept the important Cygnus configure options, so we can diagnose typos.
365
366   case $ac_option in
367
368   -bindir | --bindir | --bindi | --bind | --bin | --bi)
369     ac_prev=bindir ;;
370   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
371     bindir=$ac_optarg ;;
372
373   -build | --build | --buil | --bui | --bu)
374     ac_prev=build_alias ;;
375   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
376     build_alias=$ac_optarg ;;
377
378   -cache-file | --cache-file | --cache-fil | --cache-fi \
379   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
380     ac_prev=cache_file ;;
381   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
382   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
383     cache_file=$ac_optarg ;;
384
385   --config-cache | -C)
386     cache_file=config.cache ;;
387
388   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
389     ac_prev=datadir ;;
390   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
391   | --da=*)
392     datadir=$ac_optarg ;;
393
394   -disable-* | --disable-*)
395     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
396     # Reject names that are not valid shell variable names.
397     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
398       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
399    { (exit 1); exit 1; }; }
400     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
401     eval "enable_$ac_feature=no" ;;
402
403   -enable-* | --enable-*)
404     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
405     # Reject names that are not valid shell variable names.
406     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
407       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
408    { (exit 1); exit 1; }; }
409     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
410     case $ac_option in
411       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
412       *) ac_optarg=yes ;;
413     esac
414     eval "enable_$ac_feature='$ac_optarg'" ;;
415
416   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
417   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
418   | --exec | --exe | --ex)
419     ac_prev=exec_prefix ;;
420   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
421   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
422   | --exec=* | --exe=* | --ex=*)
423     exec_prefix=$ac_optarg ;;
424
425   -gas | --gas | --ga | --g)
426     # Obsolete; use --with-gas.
427     with_gas=yes ;;
428
429   -help | --help | --hel | --he | -h)
430     ac_init_help=long ;;
431   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
432     ac_init_help=recursive ;;
433   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
434     ac_init_help=short ;;
435
436   -host | --host | --hos | --ho)
437     ac_prev=host_alias ;;
438   -host=* | --host=* | --hos=* | --ho=*)
439     host_alias=$ac_optarg ;;
440
441   -includedir | --includedir | --includedi | --included | --include \
442   | --includ | --inclu | --incl | --inc)
443     ac_prev=includedir ;;
444   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
445   | --includ=* | --inclu=* | --incl=* | --inc=*)
446     includedir=$ac_optarg ;;
447
448   -infodir | --infodir | --infodi | --infod | --info | --inf)
449     ac_prev=infodir ;;
450   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
451     infodir=$ac_optarg ;;
452
453   -libdir | --libdir | --libdi | --libd)
454     ac_prev=libdir ;;
455   -libdir=* | --libdir=* | --libdi=* | --libd=*)
456     libdir=$ac_optarg ;;
457
458   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
459   | --libexe | --libex | --libe)
460     ac_prev=libexecdir ;;
461   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
462   | --libexe=* | --libex=* | --libe=*)
463     libexecdir=$ac_optarg ;;
464
465   -localstatedir | --localstatedir | --localstatedi | --localstated \
466   | --localstate | --localstat | --localsta | --localst \
467   | --locals | --local | --loca | --loc | --lo)
468     ac_prev=localstatedir ;;
469   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
470   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
471   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
472     localstatedir=$ac_optarg ;;
473
474   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
475     ac_prev=mandir ;;
476   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
477     mandir=$ac_optarg ;;
478
479   -nfp | --nfp | --nf)
480     # Obsolete; use --without-fp.
481     with_fp=no ;;
482
483   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
484   | --no-cr | --no-c | -n)
485     no_create=yes ;;
486
487   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
488   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
489     no_recursion=yes ;;
490
491   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
492   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
493   | --oldin | --oldi | --old | --ol | --o)
494     ac_prev=oldincludedir ;;
495   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
496   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
497   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
498     oldincludedir=$ac_optarg ;;
499
500   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
501     ac_prev=prefix ;;
502   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
503     prefix=$ac_optarg ;;
504
505   -program-prefix | --program-prefix | --program-prefi | --program-pref \
506   | --program-pre | --program-pr | --program-p)
507     ac_prev=program_prefix ;;
508   -program-prefix=* | --program-prefix=* | --program-prefi=* \
509   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
510     program_prefix=$ac_optarg ;;
511
512   -program-suffix | --program-suffix | --program-suffi | --program-suff \
513   | --program-suf | --program-su | --program-s)
514     ac_prev=program_suffix ;;
515   -program-suffix=* | --program-suffix=* | --program-suffi=* \
516   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
517     program_suffix=$ac_optarg ;;
518
519   -program-transform-name | --program-transform-name \
520   | --program-transform-nam | --program-transform-na \
521   | --program-transform-n | --program-transform- \
522   | --program-transform | --program-transfor \
523   | --program-transfo | --program-transf \
524   | --program-trans | --program-tran \
525   | --progr-tra | --program-tr | --program-t)
526     ac_prev=program_transform_name ;;
527   -program-transform-name=* | --program-transform-name=* \
528   | --program-transform-nam=* | --program-transform-na=* \
529   | --program-transform-n=* | --program-transform-=* \
530   | --program-transform=* | --program-transfor=* \
531   | --program-transfo=* | --program-transf=* \
532   | --program-trans=* | --program-tran=* \
533   | --progr-tra=* | --program-tr=* | --program-t=*)
534     program_transform_name=$ac_optarg ;;
535
536   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
537   | -silent | --silent | --silen | --sile | --sil)
538     silent=yes ;;
539
540   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
541     ac_prev=sbindir ;;
542   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
543   | --sbi=* | --sb=*)
544     sbindir=$ac_optarg ;;
545
546   -sharedstatedir | --sharedstatedir | --sharedstatedi \
547   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
548   | --sharedst | --shareds | --shared | --share | --shar \
549   | --sha | --sh)
550     ac_prev=sharedstatedir ;;
551   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
552   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
553   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
554   | --sha=* | --sh=*)
555     sharedstatedir=$ac_optarg ;;
556
557   -site | --site | --sit)
558     ac_prev=site ;;
559   -site=* | --site=* | --sit=*)
560     site=$ac_optarg ;;
561
562   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
563     ac_prev=srcdir ;;
564   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
565     srcdir=$ac_optarg ;;
566
567   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
568   | --syscon | --sysco | --sysc | --sys | --sy)
569     ac_prev=sysconfdir ;;
570   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
571   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
572     sysconfdir=$ac_optarg ;;
573
574   -target | --target | --targe | --targ | --tar | --ta | --t)
575     ac_prev=target_alias ;;
576   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
577     target_alias=$ac_optarg ;;
578
579   -v | -verbose | --verbose | --verbos | --verbo | --verb)
580     verbose=yes ;;
581
582   -version | --version | --versio | --versi | --vers | -V)
583     ac_init_version=: ;;
584
585   -with-* | --with-*)
586     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
587     # Reject names that are not valid shell variable names.
588     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
589       { echo "$as_me: error: invalid package name: $ac_package" >&2
590    { (exit 1); exit 1; }; }
591     ac_package=`echo $ac_package| sed 's/-/_/g'`
592     case $ac_option in
593       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
594       *) ac_optarg=yes ;;
595     esac
596     eval "with_$ac_package='$ac_optarg'" ;;
597
598   -without-* | --without-*)
599     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
600     # Reject names that are not valid shell variable names.
601     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
602       { echo "$as_me: error: invalid package name: $ac_package" >&2
603    { (exit 1); exit 1; }; }
604     ac_package=`echo $ac_package | sed 's/-/_/g'`
605     eval "with_$ac_package=no" ;;
606
607   --x)
608     # Obsolete; use --with-x.
609     with_x=yes ;;
610
611   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
612   | --x-incl | --x-inc | --x-in | --x-i)
613     ac_prev=x_includes ;;
614   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
615   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
616     x_includes=$ac_optarg ;;
617
618   -x-libraries | --x-libraries | --x-librarie | --x-librari \
619   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
620     ac_prev=x_libraries ;;
621   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
622   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
623     x_libraries=$ac_optarg ;;
624
625   -*) { echo "$as_me: error: unrecognized option: $ac_option
626 Try \`$0 --help' for more information." >&2
627    { (exit 1); exit 1; }; }
628     ;;
629
630   *=*)
631     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
632     # Reject names that are not valid shell variable names.
633     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
634       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
635    { (exit 1); exit 1; }; }
636     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
637     eval "$ac_envvar='$ac_optarg'"
638     export $ac_envvar ;;
639
640   *)
641     # FIXME: should be removed in autoconf 3.0.
642     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
643     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
644       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
645     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
646     ;;
647
648   esac
649 done
650
651 if test -n "$ac_prev"; then
652   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
653   { echo "$as_me: error: missing argument to $ac_option" >&2
654    { (exit 1); exit 1; }; }
655 fi
656
657 # Be sure to have absolute paths.
658 for ac_var in exec_prefix prefix
659 do
660   eval ac_val=$`echo $ac_var`
661   case $ac_val in
662     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
663     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
664    { (exit 1); exit 1; }; };;
665   esac
666 done
667
668 # Be sure to have absolute paths.
669 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
670               localstatedir libdir includedir oldincludedir infodir mandir
671 do
672   eval ac_val=$`echo $ac_var`
673   case $ac_val in
674     [\\/$]* | ?:[\\/]* ) ;;
675     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
676    { (exit 1); exit 1; }; };;
677   esac
678 done
679
680 # There might be people who depend on the old broken behavior: `$host'
681 # used to hold the argument of --host etc.
682 # FIXME: To remove some day.
683 build=$build_alias
684 host=$host_alias
685 target=$target_alias
686
687 # FIXME: To remove some day.
688 if test "x$host_alias" != x; then
689   if test "x$build_alias" = x; then
690     cross_compiling=maybe
691     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
692     If a cross compiler is detected then cross compile mode will be used." >&2
693   elif test "x$build_alias" != "x$host_alias"; then
694     cross_compiling=yes
695   fi
696 fi
697
698 ac_tool_prefix=
699 test -n "$host_alias" && ac_tool_prefix=$host_alias-
700
701 test "$silent" = yes && exec 6>/dev/null
702
703
704 # Find the source files, if location was not specified.
705 if test -z "$srcdir"; then
706   ac_srcdir_defaulted=yes
707   # Try the directory containing this script, then its parent.
708   ac_confdir=`(dirname "$0") 2>/dev/null ||
709 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
710          X"$0" : 'X\(//\)[^/]' \| \
711          X"$0" : 'X\(//\)$' \| \
712          X"$0" : 'X\(/\)' \| \
713          .     : '\(.\)' 2>/dev/null ||
714 echo X"$0" |
715     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
716           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
717           /^X\(\/\/\)$/{ s//\1/; q; }
718           /^X\(\/\).*/{ s//\1/; q; }
719           s/.*/./; q'`
720   srcdir=$ac_confdir
721   if test ! -r $srcdir/$ac_unique_file; then
722     srcdir=..
723   fi
724 else
725   ac_srcdir_defaulted=no
726 fi
727 if test ! -r $srcdir/$ac_unique_file; then
728   if test "$ac_srcdir_defaulted" = yes; then
729     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
730    { (exit 1); exit 1; }; }
731   else
732     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
733    { (exit 1); exit 1; }; }
734   fi
735 fi
736 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
737   { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
738    { (exit 1); exit 1; }; }
739 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
740 ac_env_build_alias_set=${build_alias+set}
741 ac_env_build_alias_value=$build_alias
742 ac_cv_env_build_alias_set=${build_alias+set}
743 ac_cv_env_build_alias_value=$build_alias
744 ac_env_host_alias_set=${host_alias+set}
745 ac_env_host_alias_value=$host_alias
746 ac_cv_env_host_alias_set=${host_alias+set}
747 ac_cv_env_host_alias_value=$host_alias
748 ac_env_target_alias_set=${target_alias+set}
749 ac_env_target_alias_value=$target_alias
750 ac_cv_env_target_alias_set=${target_alias+set}
751 ac_cv_env_target_alias_value=$target_alias
752 ac_env_CC_set=${CC+set}
753 ac_env_CC_value=$CC
754 ac_cv_env_CC_set=${CC+set}
755 ac_cv_env_CC_value=$CC
756 ac_env_CFLAGS_set=${CFLAGS+set}
757 ac_env_CFLAGS_value=$CFLAGS
758 ac_cv_env_CFLAGS_set=${CFLAGS+set}
759 ac_cv_env_CFLAGS_value=$CFLAGS
760 ac_env_LDFLAGS_set=${LDFLAGS+set}
761 ac_env_LDFLAGS_value=$LDFLAGS
762 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
763 ac_cv_env_LDFLAGS_value=$LDFLAGS
764 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
765 ac_env_CPPFLAGS_value=$CPPFLAGS
766 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
767 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
768 ac_env_CPP_set=${CPP+set}
769 ac_env_CPP_value=$CPP
770 ac_cv_env_CPP_set=${CPP+set}
771 ac_cv_env_CPP_value=$CPP
772
773 #
774 # Report the --help message.
775 #
776 if test "$ac_init_help" = "long"; then
777   # Omit some internal or obsolete options to make the list less imposing.
778   # This message is too long to be a string in the A/UX 3.1 sh.
779   cat <<_ACEOF
780 \`configure' configures Wine 20031016 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 20031016:";;
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 20031016
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 20031016, 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 &&
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 WIN16_FILES="\$(WIN16_FILES)"
1355
1356 WIN16_INSTALL="\$(WIN16_INSTALL)"
1357
1358 if test "x$enable_win16" = "xno"
1359 then
1360   WIN16_FILES=""
1361   WIN16_INSTALL=""
1362 fi
1363 if test "x$enable_debug" = "xno"
1364 then
1365
1366 cat >>confdefs.h <<\_ACEOF
1367 #define NO_DEBUG_MSGS 1
1368 _ACEOF
1369
1370 fi
1371 if test "x$enable_trace" = "xno" -o "x$enable_debug" = "xno"
1372 then
1373
1374 cat >>confdefs.h <<\_ACEOF
1375 #define NO_TRACE_MSGS 1
1376 _ACEOF
1377
1378 fi
1379
1380
1381 # Make sure we can run config.sub.
1382 $ac_config_sub sun4 >/dev/null 2>&1 ||
1383   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1384 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1385    { (exit 1); exit 1; }; }
1386
1387 echo "$as_me:$LINENO: checking build system type" >&5
1388 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1389 if test "${ac_cv_build+set}" = set; then
1390   echo $ECHO_N "(cached) $ECHO_C" >&6
1391 else
1392   ac_cv_build_alias=$build_alias
1393 test -z "$ac_cv_build_alias" &&
1394   ac_cv_build_alias=`$ac_config_guess`
1395 test -z "$ac_cv_build_alias" &&
1396   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1397 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1398    { (exit 1); exit 1; }; }
1399 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1400   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1401 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1402    { (exit 1); exit 1; }; }
1403
1404 fi
1405 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1406 echo "${ECHO_T}$ac_cv_build" >&6
1407 build=$ac_cv_build
1408 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1409 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1410 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1411
1412
1413 echo "$as_me:$LINENO: checking host system type" >&5
1414 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1415 if test "${ac_cv_host+set}" = set; then
1416   echo $ECHO_N "(cached) $ECHO_C" >&6
1417 else
1418   ac_cv_host_alias=$host_alias
1419 test -z "$ac_cv_host_alias" &&
1420   ac_cv_host_alias=$ac_cv_build_alias
1421 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1422   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1423 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1424    { (exit 1); exit 1; }; }
1425
1426 fi
1427 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1428 echo "${ECHO_T}$ac_cv_host" >&6
1429 host=$ac_cv_host
1430 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1431 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1432 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1433
1434
1435 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1436 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1437 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
1438 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1439   echo $ECHO_N "(cached) $ECHO_C" >&6
1440 else
1441   cat >conftest.make <<\_ACEOF
1442 all:
1443         @echo 'ac_maketemp="$(MAKE)"'
1444 _ACEOF
1445 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1446 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1447 if test -n "$ac_maketemp"; then
1448   eval ac_cv_prog_make_${ac_make}_set=yes
1449 else
1450   eval ac_cv_prog_make_${ac_make}_set=no
1451 fi
1452 rm -f conftest.make
1453 fi
1454 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1455   echo "$as_me:$LINENO: result: yes" >&5
1456 echo "${ECHO_T}yes" >&6
1457   SET_MAKE=
1458 else
1459   echo "$as_me:$LINENO: result: no" >&5
1460 echo "${ECHO_T}no" >&6
1461   SET_MAKE="MAKE=${MAKE-make}"
1462 fi
1463
1464 ac_ext=c
1465 ac_cpp='$CPP $CPPFLAGS'
1466 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1467 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1468 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1469 if test -n "$ac_tool_prefix"; then
1470   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1471 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1472 echo "$as_me:$LINENO: checking for $ac_word" >&5
1473 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1474 if test "${ac_cv_prog_CC+set}" = set; then
1475   echo $ECHO_N "(cached) $ECHO_C" >&6
1476 else
1477   if test -n "$CC"; then
1478   ac_cv_prog_CC="$CC" # Let the user override the test.
1479 else
1480 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1481 for as_dir in $PATH
1482 do
1483   IFS=$as_save_IFS
1484   test -z "$as_dir" && as_dir=.
1485   for ac_exec_ext in '' $ac_executable_extensions; do
1486   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1487     ac_cv_prog_CC="${ac_tool_prefix}gcc"
1488     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1489     break 2
1490   fi
1491 done
1492 done
1493
1494 fi
1495 fi
1496 CC=$ac_cv_prog_CC
1497 if test -n "$CC"; then
1498   echo "$as_me:$LINENO: result: $CC" >&5
1499 echo "${ECHO_T}$CC" >&6
1500 else
1501   echo "$as_me:$LINENO: result: no" >&5
1502 echo "${ECHO_T}no" >&6
1503 fi
1504
1505 fi
1506 if test -z "$ac_cv_prog_CC"; then
1507   ac_ct_CC=$CC
1508   # Extract the first word of "gcc", so it can be a program name with args.
1509 set dummy gcc; ac_word=$2
1510 echo "$as_me:$LINENO: checking for $ac_word" >&5
1511 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1512 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1513   echo $ECHO_N "(cached) $ECHO_C" >&6
1514 else
1515   if test -n "$ac_ct_CC"; then
1516   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1517 else
1518 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1519 for as_dir in $PATH
1520 do
1521   IFS=$as_save_IFS
1522   test -z "$as_dir" && as_dir=.
1523   for ac_exec_ext in '' $ac_executable_extensions; do
1524   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1525     ac_cv_prog_ac_ct_CC="gcc"
1526     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1527     break 2
1528   fi
1529 done
1530 done
1531
1532 fi
1533 fi
1534 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1535 if test -n "$ac_ct_CC"; then
1536   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1537 echo "${ECHO_T}$ac_ct_CC" >&6
1538 else
1539   echo "$as_me:$LINENO: result: no" >&5
1540 echo "${ECHO_T}no" >&6
1541 fi
1542
1543   CC=$ac_ct_CC
1544 else
1545   CC="$ac_cv_prog_CC"
1546 fi
1547
1548 if test -z "$CC"; then
1549   if test -n "$ac_tool_prefix"; then
1550   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1551 set dummy ${ac_tool_prefix}cc; ac_word=$2
1552 echo "$as_me:$LINENO: checking for $ac_word" >&5
1553 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1554 if test "${ac_cv_prog_CC+set}" = set; then
1555   echo $ECHO_N "(cached) $ECHO_C" >&6
1556 else
1557   if test -n "$CC"; then
1558   ac_cv_prog_CC="$CC" # Let the user override the test.
1559 else
1560 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1561 for as_dir in $PATH
1562 do
1563   IFS=$as_save_IFS
1564   test -z "$as_dir" && as_dir=.
1565   for ac_exec_ext in '' $ac_executable_extensions; do
1566   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1567     ac_cv_prog_CC="${ac_tool_prefix}cc"
1568     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1569     break 2
1570   fi
1571 done
1572 done
1573
1574 fi
1575 fi
1576 CC=$ac_cv_prog_CC
1577 if test -n "$CC"; then
1578   echo "$as_me:$LINENO: result: $CC" >&5
1579 echo "${ECHO_T}$CC" >&6
1580 else
1581   echo "$as_me:$LINENO: result: no" >&5
1582 echo "${ECHO_T}no" >&6
1583 fi
1584
1585 fi
1586 if test -z "$ac_cv_prog_CC"; then
1587   ac_ct_CC=$CC
1588   # Extract the first word of "cc", so it can be a program name with args.
1589 set dummy cc; ac_word=$2
1590 echo "$as_me:$LINENO: checking for $ac_word" >&5
1591 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1592 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1593   echo $ECHO_N "(cached) $ECHO_C" >&6
1594 else
1595   if test -n "$ac_ct_CC"; then
1596   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1597 else
1598 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1599 for as_dir in $PATH
1600 do
1601   IFS=$as_save_IFS
1602   test -z "$as_dir" && as_dir=.
1603   for ac_exec_ext in '' $ac_executable_extensions; do
1604   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1605     ac_cv_prog_ac_ct_CC="cc"
1606     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1607     break 2
1608   fi
1609 done
1610 done
1611
1612 fi
1613 fi
1614 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1615 if test -n "$ac_ct_CC"; then
1616   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1617 echo "${ECHO_T}$ac_ct_CC" >&6
1618 else
1619   echo "$as_me:$LINENO: result: no" >&5
1620 echo "${ECHO_T}no" >&6
1621 fi
1622
1623   CC=$ac_ct_CC
1624 else
1625   CC="$ac_cv_prog_CC"
1626 fi
1627
1628 fi
1629 if test -z "$CC"; then
1630   # Extract the first word of "cc", so it can be a program name with args.
1631 set dummy cc; ac_word=$2
1632 echo "$as_me:$LINENO: checking for $ac_word" >&5
1633 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1634 if test "${ac_cv_prog_CC+set}" = set; then
1635   echo $ECHO_N "(cached) $ECHO_C" >&6
1636 else
1637   if test -n "$CC"; then
1638   ac_cv_prog_CC="$CC" # Let the user override the test.
1639 else
1640   ac_prog_rejected=no
1641 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1642 for as_dir in $PATH
1643 do
1644   IFS=$as_save_IFS
1645   test -z "$as_dir" && as_dir=.
1646   for ac_exec_ext in '' $ac_executable_extensions; do
1647   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1648     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1649        ac_prog_rejected=yes
1650        continue
1651      fi
1652     ac_cv_prog_CC="cc"
1653     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1654     break 2
1655   fi
1656 done
1657 done
1658
1659 if test $ac_prog_rejected = yes; then
1660   # We found a bogon in the path, so make sure we never use it.
1661   set dummy $ac_cv_prog_CC
1662   shift
1663   if test $# != 0; then
1664     # We chose a different compiler from the bogus one.
1665     # However, it has the same basename, so the bogon will be chosen
1666     # first if we set CC to just the basename; use the full file name.
1667     shift
1668     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1669   fi
1670 fi
1671 fi
1672 fi
1673 CC=$ac_cv_prog_CC
1674 if test -n "$CC"; then
1675   echo "$as_me:$LINENO: result: $CC" >&5
1676 echo "${ECHO_T}$CC" >&6
1677 else
1678   echo "$as_me:$LINENO: result: no" >&5
1679 echo "${ECHO_T}no" >&6
1680 fi
1681
1682 fi
1683 if test -z "$CC"; then
1684   if test -n "$ac_tool_prefix"; then
1685   for ac_prog in cl
1686   do
1687     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1688 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1689 echo "$as_me:$LINENO: checking for $ac_word" >&5
1690 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1691 if test "${ac_cv_prog_CC+set}" = set; then
1692   echo $ECHO_N "(cached) $ECHO_C" >&6
1693 else
1694   if test -n "$CC"; then
1695   ac_cv_prog_CC="$CC" # Let the user override the test.
1696 else
1697 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1698 for as_dir in $PATH
1699 do
1700   IFS=$as_save_IFS
1701   test -z "$as_dir" && as_dir=.
1702   for ac_exec_ext in '' $ac_executable_extensions; do
1703   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1704     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1705     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1706     break 2
1707   fi
1708 done
1709 done
1710
1711 fi
1712 fi
1713 CC=$ac_cv_prog_CC
1714 if test -n "$CC"; then
1715   echo "$as_me:$LINENO: result: $CC" >&5
1716 echo "${ECHO_T}$CC" >&6
1717 else
1718   echo "$as_me:$LINENO: result: no" >&5
1719 echo "${ECHO_T}no" >&6
1720 fi
1721
1722     test -n "$CC" && break
1723   done
1724 fi
1725 if test -z "$CC"; then
1726   ac_ct_CC=$CC
1727   for ac_prog in cl
1728 do
1729   # Extract the first word of "$ac_prog", so it can be a program name with args.
1730 set dummy $ac_prog; ac_word=$2
1731 echo "$as_me:$LINENO: checking for $ac_word" >&5
1732 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1733 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1734   echo $ECHO_N "(cached) $ECHO_C" >&6
1735 else
1736   if test -n "$ac_ct_CC"; then
1737   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1738 else
1739 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1740 for as_dir in $PATH
1741 do
1742   IFS=$as_save_IFS
1743   test -z "$as_dir" && as_dir=.
1744   for ac_exec_ext in '' $ac_executable_extensions; do
1745   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1746     ac_cv_prog_ac_ct_CC="$ac_prog"
1747     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1748     break 2
1749   fi
1750 done
1751 done
1752
1753 fi
1754 fi
1755 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1756 if test -n "$ac_ct_CC"; then
1757   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1758 echo "${ECHO_T}$ac_ct_CC" >&6
1759 else
1760   echo "$as_me:$LINENO: result: no" >&5
1761 echo "${ECHO_T}no" >&6
1762 fi
1763
1764   test -n "$ac_ct_CC" && break
1765 done
1766
1767   CC=$ac_ct_CC
1768 fi
1769
1770 fi
1771
1772
1773 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1774 See \`config.log' for more details." >&5
1775 echo "$as_me: error: no acceptable C compiler found in \$PATH
1776 See \`config.log' for more details." >&2;}
1777    { (exit 1); exit 1; }; }
1778
1779 # Provide some information about the compiler.
1780 echo "$as_me:$LINENO:" \
1781      "checking for C compiler version" >&5
1782 ac_compiler=`set X $ac_compile; echo $2`
1783 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1784   (eval $ac_compiler --version </dev/null >&5) 2>&5
1785   ac_status=$?
1786   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1787   (exit $ac_status); }
1788 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1789   (eval $ac_compiler -v </dev/null >&5) 2>&5
1790   ac_status=$?
1791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1792   (exit $ac_status); }
1793 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1794   (eval $ac_compiler -V </dev/null >&5) 2>&5
1795   ac_status=$?
1796   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1797   (exit $ac_status); }
1798
1799 cat >conftest.$ac_ext <<_ACEOF
1800 #line $LINENO "configure"
1801 /* confdefs.h.  */
1802 _ACEOF
1803 cat confdefs.h >>conftest.$ac_ext
1804 cat >>conftest.$ac_ext <<_ACEOF
1805 /* end confdefs.h.  */
1806
1807 int
1808 main ()
1809 {
1810
1811   ;
1812   return 0;
1813 }
1814 _ACEOF
1815 ac_clean_files_save=$ac_clean_files
1816 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1817 # Try to create an executable without -o first, disregard a.out.
1818 # It will help us diagnose broken compilers, and finding out an intuition
1819 # of exeext.
1820 echo "$as_me:$LINENO: checking for C compiler default output" >&5
1821 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1822 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1823 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1824   (eval $ac_link_default) 2>&5
1825   ac_status=$?
1826   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1827   (exit $ac_status); }; then
1828   # Find the output, starting from the most likely.  This scheme is
1829 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1830 # resort.
1831
1832 # Be careful to initialize this variable, since it used to be cached.
1833 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1834 ac_cv_exeext=
1835 # b.out is created by i960 compilers.
1836 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1837 do
1838   test -f "$ac_file" || continue
1839   case $ac_file in
1840     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1841         ;;
1842     conftest.$ac_ext )
1843         # This is the source file.
1844         ;;
1845     [ab].out )
1846         # We found the default executable, but exeext='' is most
1847         # certainly right.
1848         break;;
1849     *.* )
1850         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1851         # FIXME: I believe we export ac_cv_exeext for Libtool,
1852         # but it would be cool to find out if it's true.  Does anybody
1853         # maintain Libtool? --akim.
1854         export ac_cv_exeext
1855         break;;
1856     * )
1857         break;;
1858   esac
1859 done
1860 else
1861   echo "$as_me: failed program was:" >&5
1862 sed 's/^/| /' conftest.$ac_ext >&5
1863
1864 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1865 See \`config.log' for more details." >&5
1866 echo "$as_me: error: C compiler cannot create executables
1867 See \`config.log' for more details." >&2;}
1868    { (exit 77); exit 77; }; }
1869 fi
1870
1871 ac_exeext=$ac_cv_exeext
1872 echo "$as_me:$LINENO: result: $ac_file" >&5
1873 echo "${ECHO_T}$ac_file" >&6
1874
1875 # Check the compiler produces executables we can run.  If not, either
1876 # the compiler is broken, or we cross compile.
1877 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1878 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1879 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1880 # If not cross compiling, check that we can run a simple program.
1881 if test "$cross_compiling" != yes; then
1882   if { ac_try='./$ac_file'
1883   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1884   (eval $ac_try) 2>&5
1885   ac_status=$?
1886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1887   (exit $ac_status); }; }; then
1888     cross_compiling=no
1889   else
1890     if test "$cross_compiling" = maybe; then
1891         cross_compiling=yes
1892     else
1893         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1894 If you meant to cross compile, use \`--host'.
1895 See \`config.log' for more details." >&5
1896 echo "$as_me: error: cannot run C compiled programs.
1897 If you meant to cross compile, use \`--host'.
1898 See \`config.log' for more details." >&2;}
1899    { (exit 1); exit 1; }; }
1900     fi
1901   fi
1902 fi
1903 echo "$as_me:$LINENO: result: yes" >&5
1904 echo "${ECHO_T}yes" >&6
1905
1906 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1907 ac_clean_files=$ac_clean_files_save
1908 # Check the compiler produces executables we can run.  If not, either
1909 # the compiler is broken, or we cross compile.
1910 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1911 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1912 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1913 echo "${ECHO_T}$cross_compiling" >&6
1914
1915 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1916 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1917 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1918   (eval $ac_link) 2>&5
1919   ac_status=$?
1920   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1921   (exit $ac_status); }; then
1922   # If both `conftest.exe' and `conftest' are `present' (well, observable)
1923 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
1924 # work properly (i.e., refer to `conftest.exe'), while it won't with
1925 # `rm'.
1926 for ac_file in conftest.exe conftest conftest.*; do
1927   test -f "$ac_file" || continue
1928   case $ac_file in
1929     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1930     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1931           export ac_cv_exeext
1932           break;;
1933     * ) break;;
1934   esac
1935 done
1936 else
1937   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1938 See \`config.log' for more details." >&5
1939 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1940 See \`config.log' for more details." >&2;}
1941    { (exit 1); exit 1; }; }
1942 fi
1943
1944 rm -f conftest$ac_cv_exeext
1945 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1946 echo "${ECHO_T}$ac_cv_exeext" >&6
1947
1948 rm -f conftest.$ac_ext
1949 EXEEXT=$ac_cv_exeext
1950 ac_exeext=$EXEEXT
1951 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1952 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1953 if test "${ac_cv_objext+set}" = set; then
1954   echo $ECHO_N "(cached) $ECHO_C" >&6
1955 else
1956   cat >conftest.$ac_ext <<_ACEOF
1957 #line $LINENO "configure"
1958 /* confdefs.h.  */
1959 _ACEOF
1960 cat confdefs.h >>conftest.$ac_ext
1961 cat >>conftest.$ac_ext <<_ACEOF
1962 /* end confdefs.h.  */
1963
1964 int
1965 main ()
1966 {
1967
1968   ;
1969   return 0;
1970 }
1971 _ACEOF
1972 rm -f conftest.o conftest.obj
1973 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1974   (eval $ac_compile) 2>&5
1975   ac_status=$?
1976   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1977   (exit $ac_status); }; then
1978   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1979   case $ac_file in
1980     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1981     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1982        break;;
1983   esac
1984 done
1985 else
1986   echo "$as_me: failed program was:" >&5
1987 sed 's/^/| /' conftest.$ac_ext >&5
1988
1989 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1990 See \`config.log' for more details." >&5
1991 echo "$as_me: error: cannot compute suffix of object files: cannot compile
1992 See \`config.log' for more details." >&2;}
1993    { (exit 1); exit 1; }; }
1994 fi
1995
1996 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1997 fi
1998 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1999 echo "${ECHO_T}$ac_cv_objext" >&6
2000 OBJEXT=$ac_cv_objext
2001 ac_objext=$OBJEXT
2002 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2003 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2004 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2005   echo $ECHO_N "(cached) $ECHO_C" >&6
2006 else
2007   cat >conftest.$ac_ext <<_ACEOF
2008 #line $LINENO "configure"
2009 /* confdefs.h.  */
2010 _ACEOF
2011 cat confdefs.h >>conftest.$ac_ext
2012 cat >>conftest.$ac_ext <<_ACEOF
2013 /* end confdefs.h.  */
2014
2015 int
2016 main ()
2017 {
2018 #ifndef __GNUC__
2019        choke me
2020 #endif
2021
2022   ;
2023   return 0;
2024 }
2025 _ACEOF
2026 rm -f conftest.$ac_objext
2027 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2028   (eval $ac_compile) 2>&5
2029   ac_status=$?
2030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2031   (exit $ac_status); } &&
2032          { ac_try='test -s conftest.$ac_objext'
2033   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2034   (eval $ac_try) 2>&5
2035   ac_status=$?
2036   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2037   (exit $ac_status); }; }; then
2038   ac_compiler_gnu=yes
2039 else
2040   echo "$as_me: failed program was:" >&5
2041 sed 's/^/| /' conftest.$ac_ext >&5
2042
2043 ac_compiler_gnu=no
2044 fi
2045 rm -f conftest.$ac_objext conftest.$ac_ext
2046 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2047
2048 fi
2049 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2050 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2051 GCC=`test $ac_compiler_gnu = yes && echo yes`
2052 ac_test_CFLAGS=${CFLAGS+set}
2053 ac_save_CFLAGS=$CFLAGS
2054 CFLAGS="-g"
2055 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2056 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2057 if test "${ac_cv_prog_cc_g+set}" = set; then
2058   echo $ECHO_N "(cached) $ECHO_C" >&6
2059 else
2060   cat >conftest.$ac_ext <<_ACEOF
2061 #line $LINENO "configure"
2062 /* confdefs.h.  */
2063 _ACEOF
2064 cat confdefs.h >>conftest.$ac_ext
2065 cat >>conftest.$ac_ext <<_ACEOF
2066 /* end confdefs.h.  */
2067
2068 int
2069 main ()
2070 {
2071
2072   ;
2073   return 0;
2074 }
2075 _ACEOF
2076 rm -f conftest.$ac_objext
2077 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2078   (eval $ac_compile) 2>&5
2079   ac_status=$?
2080   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2081   (exit $ac_status); } &&
2082          { ac_try='test -s conftest.$ac_objext'
2083   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2084   (eval $ac_try) 2>&5
2085   ac_status=$?
2086   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2087   (exit $ac_status); }; }; then
2088   ac_cv_prog_cc_g=yes
2089 else
2090   echo "$as_me: failed program was:" >&5
2091 sed 's/^/| /' conftest.$ac_ext >&5
2092
2093 ac_cv_prog_cc_g=no
2094 fi
2095 rm -f conftest.$ac_objext conftest.$ac_ext
2096 fi
2097 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2098 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2099 if test "$ac_test_CFLAGS" = set; then
2100   CFLAGS=$ac_save_CFLAGS
2101 elif test $ac_cv_prog_cc_g = yes; then
2102   if test "$GCC" = yes; then
2103     CFLAGS="-g -O2"
2104   else
2105     CFLAGS="-g"
2106   fi
2107 else
2108   if test "$GCC" = yes; then
2109     CFLAGS="-O2"
2110   else
2111     CFLAGS=
2112   fi
2113 fi
2114 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2115 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2116 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2117   echo $ECHO_N "(cached) $ECHO_C" >&6
2118 else
2119   ac_cv_prog_cc_stdc=no
2120 ac_save_CC=$CC
2121 cat >conftest.$ac_ext <<_ACEOF
2122 #line $LINENO "configure"
2123 /* confdefs.h.  */
2124 _ACEOF
2125 cat confdefs.h >>conftest.$ac_ext
2126 cat >>conftest.$ac_ext <<_ACEOF
2127 /* end confdefs.h.  */
2128 #include <stdarg.h>
2129 #include <stdio.h>
2130 #include <sys/types.h>
2131 #include <sys/stat.h>
2132 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2133 struct buf { int x; };
2134 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2135 static char *e (p, i)
2136      char **p;
2137      int i;
2138 {
2139   return p[i];
2140 }
2141 static char *f (char * (*g) (char **, int), char **p, ...)
2142 {
2143   char *s;
2144   va_list v;
2145   va_start (v,p);
2146   s = g (p, va_arg (v,int));
2147   va_end (v);
2148   return s;
2149 }
2150 int test (int i, double x);
2151 struct s1 {int (*f) (int a);};
2152 struct s2 {int (*f) (double a);};
2153 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2154 int argc;
2155 char **argv;
2156 int
2157 main ()
2158 {
2159 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2160   ;
2161   return 0;
2162 }
2163 _ACEOF
2164 # Don't try gcc -ansi; that turns off useful extensions and
2165 # breaks some systems' header files.
2166 # AIX                   -qlanglvl=ansi
2167 # Ultrix and OSF/1      -std1
2168 # HP-UX 10.20 and later -Ae
2169 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2170 # SVR4                  -Xc -D__EXTENSIONS__
2171 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2172 do
2173   CC="$ac_save_CC $ac_arg"
2174   rm -f conftest.$ac_objext
2175 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2176   (eval $ac_compile) 2>&5
2177   ac_status=$?
2178   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2179   (exit $ac_status); } &&
2180          { ac_try='test -s conftest.$ac_objext'
2181   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2182   (eval $ac_try) 2>&5
2183   ac_status=$?
2184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2185   (exit $ac_status); }; }; then
2186   ac_cv_prog_cc_stdc=$ac_arg
2187 break
2188 else
2189   echo "$as_me: failed program was:" >&5
2190 sed 's/^/| /' conftest.$ac_ext >&5
2191
2192 fi
2193 rm -f conftest.$ac_objext
2194 done
2195 rm -f conftest.$ac_ext conftest.$ac_objext
2196 CC=$ac_save_CC
2197
2198 fi
2199
2200 case "x$ac_cv_prog_cc_stdc" in
2201   x|xno)
2202     echo "$as_me:$LINENO: result: none needed" >&5
2203 echo "${ECHO_T}none needed" >&6 ;;
2204   *)
2205     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2206 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2207     CC="$CC $ac_cv_prog_cc_stdc" ;;
2208 esac
2209
2210 # Some people use a C++ compiler to compile C.  Since we use `exit',
2211 # in C++ we need to declare it.  In case someone uses the same compiler
2212 # for both compiling C and C++ we need to have the C++ compiler decide
2213 # the declaration of exit, since it's the most demanding environment.
2214 cat >conftest.$ac_ext <<_ACEOF
2215 #ifndef __cplusplus
2216   choke me
2217 #endif
2218 _ACEOF
2219 rm -f conftest.$ac_objext
2220 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2221   (eval $ac_compile) 2>&5
2222   ac_status=$?
2223   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2224   (exit $ac_status); } &&
2225          { ac_try='test -s conftest.$ac_objext'
2226   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2227   (eval $ac_try) 2>&5
2228   ac_status=$?
2229   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2230   (exit $ac_status); }; }; then
2231   for ac_declaration in \
2232    '' \
2233    'extern "C" void std::exit (int) throw (); using std::exit;' \
2234    'extern "C" void std::exit (int); using std::exit;' \
2235    'extern "C" void exit (int) throw ();' \
2236    'extern "C" void exit (int);' \
2237    'void exit (int);'
2238 do
2239   cat >conftest.$ac_ext <<_ACEOF
2240 #line $LINENO "configure"
2241 /* confdefs.h.  */
2242 _ACEOF
2243 cat confdefs.h >>conftest.$ac_ext
2244 cat >>conftest.$ac_ext <<_ACEOF
2245 /* end confdefs.h.  */
2246 $ac_declaration
2247 #include <stdlib.h>
2248 int
2249 main ()
2250 {
2251 exit (42);
2252   ;
2253   return 0;
2254 }
2255 _ACEOF
2256 rm -f conftest.$ac_objext
2257 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2258   (eval $ac_compile) 2>&5
2259   ac_status=$?
2260   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2261   (exit $ac_status); } &&
2262          { ac_try='test -s conftest.$ac_objext'
2263   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2264   (eval $ac_try) 2>&5
2265   ac_status=$?
2266   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2267   (exit $ac_status); }; }; then
2268   :
2269 else
2270   echo "$as_me: failed program was:" >&5
2271 sed 's/^/| /' conftest.$ac_ext >&5
2272
2273 continue
2274 fi
2275 rm -f conftest.$ac_objext conftest.$ac_ext
2276   cat >conftest.$ac_ext <<_ACEOF
2277 #line $LINENO "configure"
2278 /* confdefs.h.  */
2279 _ACEOF
2280 cat confdefs.h >>conftest.$ac_ext
2281 cat >>conftest.$ac_ext <<_ACEOF
2282 /* end confdefs.h.  */
2283 $ac_declaration
2284 int
2285 main ()
2286 {
2287 exit (42);
2288   ;
2289   return 0;
2290 }
2291 _ACEOF
2292 rm -f conftest.$ac_objext
2293 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2294   (eval $ac_compile) 2>&5
2295   ac_status=$?
2296   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2297   (exit $ac_status); } &&
2298          { ac_try='test -s conftest.$ac_objext'
2299   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2300   (eval $ac_try) 2>&5
2301   ac_status=$?
2302   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2303   (exit $ac_status); }; }; then
2304   break
2305 else
2306   echo "$as_me: failed program was:" >&5
2307 sed 's/^/| /' conftest.$ac_ext >&5
2308
2309 fi
2310 rm -f conftest.$ac_objext conftest.$ac_ext
2311 done
2312 rm -f conftest*
2313 if test -n "$ac_declaration"; then
2314   echo '#ifdef __cplusplus' >>confdefs.h
2315   echo $ac_declaration      >>confdefs.h
2316   echo '#endif'             >>confdefs.h
2317 fi
2318
2319 else
2320   echo "$as_me: failed program was:" >&5
2321 sed 's/^/| /' conftest.$ac_ext >&5
2322
2323 fi
2324 rm -f conftest.$ac_objext conftest.$ac_ext
2325 ac_ext=c
2326 ac_cpp='$CPP $CPPFLAGS'
2327 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2328 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2329 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2330
2331 ac_ext=c
2332 ac_cpp='$CPP $CPPFLAGS'
2333 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2334 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2335 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2336 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2337 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2338 # On Suns, sometimes $CPP names a directory.
2339 if test -n "$CPP" && test -d "$CPP"; then
2340   CPP=
2341 fi
2342 if test -z "$CPP"; then
2343   if test "${ac_cv_prog_CPP+set}" = set; then
2344   echo $ECHO_N "(cached) $ECHO_C" >&6
2345 else
2346       # Double quotes because CPP needs to be expanded
2347     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2348     do
2349       ac_preproc_ok=false
2350 for ac_c_preproc_warn_flag in '' yes
2351 do
2352   # Use a header file that comes with gcc, so configuring glibc
2353   # with a fresh cross-compiler works.
2354   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2355   # <limits.h> exists even on freestanding compilers.
2356   # On the NeXT, cc -E runs the code through the compiler's parser,
2357   # not just through cpp. "Syntax error" is here to catch this case.
2358   cat >conftest.$ac_ext <<_ACEOF
2359 #line $LINENO "configure"
2360 /* confdefs.h.  */
2361 _ACEOF
2362 cat confdefs.h >>conftest.$ac_ext
2363 cat >>conftest.$ac_ext <<_ACEOF
2364 /* end confdefs.h.  */
2365 #ifdef __STDC__
2366 # include <limits.h>
2367 #else
2368 # include <assert.h>
2369 #endif
2370                      Syntax error
2371 _ACEOF
2372 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2373   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2374   ac_status=$?
2375   grep -v '^ *+' conftest.er1 >conftest.err
2376   rm -f conftest.er1
2377   cat conftest.err >&5
2378   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2379   (exit $ac_status); } >/dev/null; then
2380   if test -s conftest.err; then
2381     ac_cpp_err=$ac_c_preproc_warn_flag
2382   else
2383     ac_cpp_err=
2384   fi
2385 else
2386   ac_cpp_err=yes
2387 fi
2388 if test -z "$ac_cpp_err"; then
2389   :
2390 else
2391   echo "$as_me: failed program was:" >&5
2392 sed 's/^/| /' conftest.$ac_ext >&5
2393
2394   # Broken: fails on valid input.
2395 continue
2396 fi
2397 rm -f conftest.err conftest.$ac_ext
2398
2399   # OK, works on sane cases.  Now check whether non-existent headers
2400   # can be detected and how.
2401   cat >conftest.$ac_ext <<_ACEOF
2402 #line $LINENO "configure"
2403 /* confdefs.h.  */
2404 _ACEOF
2405 cat confdefs.h >>conftest.$ac_ext
2406 cat >>conftest.$ac_ext <<_ACEOF
2407 /* end confdefs.h.  */
2408 #include <ac_nonexistent.h>
2409 _ACEOF
2410 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2411   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2412   ac_status=$?
2413   grep -v '^ *+' conftest.er1 >conftest.err
2414   rm -f conftest.er1
2415   cat conftest.err >&5
2416   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2417   (exit $ac_status); } >/dev/null; then
2418   if test -s conftest.err; then
2419     ac_cpp_err=$ac_c_preproc_warn_flag
2420   else
2421     ac_cpp_err=
2422   fi
2423 else
2424   ac_cpp_err=yes
2425 fi
2426 if test -z "$ac_cpp_err"; then
2427   # Broken: success on invalid input.
2428 continue
2429 else
2430   echo "$as_me: failed program was:" >&5
2431 sed 's/^/| /' conftest.$ac_ext >&5
2432
2433   # Passes both tests.
2434 ac_preproc_ok=:
2435 break
2436 fi
2437 rm -f conftest.err conftest.$ac_ext
2438
2439 done
2440 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2441 rm -f conftest.err conftest.$ac_ext
2442 if $ac_preproc_ok; then
2443   break
2444 fi
2445
2446     done
2447     ac_cv_prog_CPP=$CPP
2448
2449 fi
2450   CPP=$ac_cv_prog_CPP
2451 else
2452   ac_cv_prog_CPP=$CPP
2453 fi
2454 echo "$as_me:$LINENO: result: $CPP" >&5
2455 echo "${ECHO_T}$CPP" >&6
2456 ac_preproc_ok=false
2457 for ac_c_preproc_warn_flag in '' yes
2458 do
2459   # Use a header file that comes with gcc, so configuring glibc
2460   # with a fresh cross-compiler works.
2461   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2462   # <limits.h> exists even on freestanding compilers.
2463   # On the NeXT, cc -E runs the code through the compiler's parser,
2464   # not just through cpp. "Syntax error" is here to catch this case.
2465   cat >conftest.$ac_ext <<_ACEOF
2466 #line $LINENO "configure"
2467 /* confdefs.h.  */
2468 _ACEOF
2469 cat confdefs.h >>conftest.$ac_ext
2470 cat >>conftest.$ac_ext <<_ACEOF
2471 /* end confdefs.h.  */
2472 #ifdef __STDC__
2473 # include <limits.h>
2474 #else
2475 # include <assert.h>
2476 #endif
2477                      Syntax error
2478 _ACEOF
2479 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2480   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2481   ac_status=$?
2482   grep -v '^ *+' conftest.er1 >conftest.err
2483   rm -f conftest.er1
2484   cat conftest.err >&5
2485   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2486   (exit $ac_status); } >/dev/null; then
2487   if test -s conftest.err; then
2488     ac_cpp_err=$ac_c_preproc_warn_flag
2489   else
2490     ac_cpp_err=
2491   fi
2492 else
2493   ac_cpp_err=yes
2494 fi
2495 if test -z "$ac_cpp_err"; then
2496   :
2497 else
2498   echo "$as_me: failed program was:" >&5
2499 sed 's/^/| /' conftest.$ac_ext >&5
2500
2501   # Broken: fails on valid input.
2502 continue
2503 fi
2504 rm -f conftest.err conftest.$ac_ext
2505
2506   # OK, works on sane cases.  Now check whether non-existent headers
2507   # can be detected and how.
2508   cat >conftest.$ac_ext <<_ACEOF
2509 #line $LINENO "configure"
2510 /* confdefs.h.  */
2511 _ACEOF
2512 cat confdefs.h >>conftest.$ac_ext
2513 cat >>conftest.$ac_ext <<_ACEOF
2514 /* end confdefs.h.  */
2515 #include <ac_nonexistent.h>
2516 _ACEOF
2517 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2518   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2519   ac_status=$?
2520   grep -v '^ *+' conftest.er1 >conftest.err
2521   rm -f conftest.er1
2522   cat conftest.err >&5
2523   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2524   (exit $ac_status); } >/dev/null; then
2525   if test -s conftest.err; then
2526     ac_cpp_err=$ac_c_preproc_warn_flag
2527   else
2528     ac_cpp_err=
2529   fi
2530 else
2531   ac_cpp_err=yes
2532 fi
2533 if test -z "$ac_cpp_err"; then
2534   # Broken: success on invalid input.
2535 continue
2536 else
2537   echo "$as_me: failed program was:" >&5
2538 sed 's/^/| /' conftest.$ac_ext >&5
2539
2540   # Passes both tests.
2541 ac_preproc_ok=:
2542 break
2543 fi
2544 rm -f conftest.err conftest.$ac_ext
2545
2546 done
2547 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2548 rm -f conftest.err conftest.$ac_ext
2549 if $ac_preproc_ok; then
2550   :
2551 else
2552   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2553 See \`config.log' for more details." >&5
2554 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2555 See \`config.log' for more details." >&2;}
2556    { (exit 1); exit 1; }; }
2557 fi
2558
2559 ac_ext=c
2560 ac_cpp='$CPP $CPPFLAGS'
2561 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2562 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2563 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2564
2565
2566 echo "$as_me:$LINENO: checking for the directory containing the Wine tools" >&5
2567 echo $ECHO_N "checking for the directory containing the Wine tools... $ECHO_C" >&6
2568 if test "${wine_cv_toolsdir+set}" = set; then
2569   echo $ECHO_N "(cached) $ECHO_C" >&6
2570 else
2571   if test -z "$with_wine_tools"; then
2572      if test "$cross_compiling" = "yes"; then
2573        { { echo "$as_me:$LINENO: error: you must use the --with-wine-tools option when cross-compiling." >&5
2574 echo "$as_me: error: you must use the --with-wine-tools option when cross-compiling." >&2;}
2575    { (exit 1); exit 1; }; }
2576      else
2577        wine_cv_toolsdir="\$(TOPOBJDIR)"
2578      fi
2579    elif test -d "$with_wine_tools/tools/winebuild"; then
2580      case $with_wine_tools in
2581        /*) wine_cv_toolsdir="$with_wine_tools" ;;
2582        *)  wine_cv_toolsdir="\$(TOPOBJDIR)/$with_wine_tools" ;;
2583      esac
2584    else
2585      { { echo "$as_me:$LINENO: error: could not find Wine tools in $with_wine_tools." >&5
2586 echo "$as_me: error: could not find Wine tools in $with_wine_tools." >&2;}
2587    { (exit 1); exit 1; }; }
2588    fi
2589 fi
2590 echo "$as_me:$LINENO: result: $wine_cv_toolsdir" >&5
2591 echo "${ECHO_T}$wine_cv_toolsdir" >&6
2592 TOOLSDIR=$wine_cv_toolsdir
2593
2594
2595
2596
2597 echo "$as_me:$LINENO: checking for X" >&5
2598 echo $ECHO_N "checking for X... $ECHO_C" >&6
2599
2600
2601 # Check whether --with-x or --without-x was given.
2602 if test "${with_x+set}" = set; then
2603   withval="$with_x"
2604
2605 fi;
2606 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
2607 if test "x$with_x" = xno; then
2608   # The user explicitly disabled X.
2609   have_x=disabled
2610 else
2611   if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
2612     # Both variables are already set.
2613     have_x=yes
2614   else
2615     if test "${ac_cv_have_x+set}" = set; then
2616   echo $ECHO_N "(cached) $ECHO_C" >&6
2617 else
2618   # One or both of the vars are not set, and there is no cached value.
2619 ac_x_includes=no ac_x_libraries=no
2620 rm -fr conftest.dir
2621 if mkdir conftest.dir; then
2622   cd conftest.dir
2623   # Make sure to not put "make" in the Imakefile rules, since we grep it out.
2624   cat >Imakefile <<'_ACEOF'
2625 acfindx:
2626         @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
2627 _ACEOF
2628   if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
2629     # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2630     eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
2631     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
2632     for ac_extension in a so sl; do
2633       if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
2634          test -f $ac_im_libdir/libX11.$ac_extension; then
2635         ac_im_usrlibdir=$ac_im_libdir; break
2636       fi
2637     done
2638     # Screen out bogus values from the imake configuration.  They are
2639     # bogus both because they are the default anyway, and because
2640     # using them would break gcc on systems where it needs fixed includes.
2641     case $ac_im_incroot in
2642         /usr/include) ;;
2643         *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
2644     esac
2645     case $ac_im_usrlibdir in
2646         /usr/lib | /lib) ;;
2647         *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
2648     esac
2649   fi
2650   cd ..
2651   rm -fr conftest.dir
2652 fi
2653
2654 # Standard set of common directories for X headers.
2655 # Check X11 before X11Rn because it is often a symlink to the current release.
2656 ac_x_header_dirs='
2657 /usr/X11/include
2658 /usr/X11R6/include
2659 /usr/X11R5/include
2660 /usr/X11R4/include
2661
2662 /usr/include/X11
2663 /usr/include/X11R6
2664 /usr/include/X11R5
2665 /usr/include/X11R4
2666
2667 /usr/local/X11/include
2668 /usr/local/X11R6/include
2669 /usr/local/X11R5/include
2670 /usr/local/X11R4/include
2671
2672 /usr/local/include/X11
2673 /usr/local/include/X11R6
2674 /usr/local/include/X11R5
2675 /usr/local/include/X11R4
2676
2677 /usr/X386/include
2678 /usr/x386/include
2679 /usr/XFree86/include/X11
2680
2681 /usr/include
2682 /usr/local/include
2683 /usr/unsupported/include
2684 /usr/athena/include
2685 /usr/local/x11r5/include
2686 /usr/lpp/Xamples/include
2687
2688 /usr/openwin/include
2689 /usr/openwin/share/include'
2690
2691 if test "$ac_x_includes" = no; then
2692   # Guess where to find include files, by looking for Intrinsic.h.
2693   # First, try using that file with no special directory specified.
2694   cat >conftest.$ac_ext <<_ACEOF
2695 #line $LINENO "configure"
2696 /* confdefs.h.  */
2697 _ACEOF
2698 cat confdefs.h >>conftest.$ac_ext
2699 cat >>conftest.$ac_ext <<_ACEOF
2700 /* end confdefs.h.  */
2701 #include <X11/Intrinsic.h>
2702 _ACEOF
2703 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2704   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2705   ac_status=$?
2706   grep -v '^ *+' conftest.er1 >conftest.err
2707   rm -f conftest.er1
2708   cat conftest.err >&5
2709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2710   (exit $ac_status); } >/dev/null; then
2711   if test -s conftest.err; then
2712     ac_cpp_err=$ac_c_preproc_warn_flag
2713   else
2714     ac_cpp_err=
2715   fi
2716 else
2717   ac_cpp_err=yes
2718 fi
2719 if test -z "$ac_cpp_err"; then
2720   # We can compile using X headers with no special include directory.
2721 ac_x_includes=
2722 else
2723   echo "$as_me: failed program was:" >&5
2724 sed 's/^/| /' conftest.$ac_ext >&5
2725
2726   for ac_dir in $ac_x_header_dirs; do
2727   if test -r "$ac_dir/X11/Intrinsic.h"; then
2728     ac_x_includes=$ac_dir
2729     break
2730   fi
2731 done
2732 fi
2733 rm -f conftest.err conftest.$ac_ext
2734 fi # $ac_x_includes = no
2735
2736 if test "$ac_x_libraries" = no; then
2737   # Check for the libraries.
2738   # See if we find them without any special options.
2739   # Don't add to $LIBS permanently.
2740   ac_save_LIBS=$LIBS
2741   LIBS="-lXt $LIBS"
2742   cat >conftest.$ac_ext <<_ACEOF
2743 #line $LINENO "configure"
2744 /* confdefs.h.  */
2745 _ACEOF
2746 cat confdefs.h >>conftest.$ac_ext
2747 cat >>conftest.$ac_ext <<_ACEOF
2748 /* end confdefs.h.  */
2749 #include <X11/Intrinsic.h>
2750 int
2751 main ()
2752 {
2753 XtMalloc (0)
2754   ;
2755   return 0;
2756 }
2757 _ACEOF
2758 rm -f conftest.$ac_objext conftest$ac_exeext
2759 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2760   (eval $ac_link) 2>&5
2761   ac_status=$?
2762   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2763   (exit $ac_status); } &&
2764          { ac_try='test -s conftest$ac_exeext'
2765   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2766   (eval $ac_try) 2>&5
2767   ac_status=$?
2768   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2769   (exit $ac_status); }; }; then
2770   LIBS=$ac_save_LIBS
2771 # We can link X programs with no special library path.
2772 ac_x_libraries=
2773 else
2774   echo "$as_me: failed program was:" >&5
2775 sed 's/^/| /' conftest.$ac_ext >&5
2776
2777 LIBS=$ac_save_LIBS
2778 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
2779 do
2780   # Don't even attempt the hair of trying to link an X program!
2781   for ac_extension in a so sl; do
2782     if test -r $ac_dir/libXt.$ac_extension; then
2783       ac_x_libraries=$ac_dir
2784       break 2
2785     fi
2786   done
2787 done
2788 fi
2789 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2790 fi # $ac_x_libraries = no
2791
2792 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
2793   # Didn't find X anywhere.  Cache the known absence of X.
2794   ac_cv_have_x="have_x=no"
2795 else
2796   # Record where we found X for the cache.
2797   ac_cv_have_x="have_x=yes \
2798                 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
2799 fi
2800 fi
2801
2802   fi
2803   eval "$ac_cv_have_x"
2804 fi # $with_x != no
2805
2806 if test "$have_x" != yes; then
2807   echo "$as_me:$LINENO: result: $have_x" >&5
2808 echo "${ECHO_T}$have_x" >&6
2809   no_x=yes
2810 else
2811   # If each of the values was on the command line, it overrides each guess.
2812   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
2813   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
2814   # Update the cache value to reflect the command line values.
2815   ac_cv_have_x="have_x=yes \
2816                 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
2817   echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
2818 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
2819 fi
2820
2821 if test "$no_x" = yes; then
2822   # Not all programs may use this symbol, but it does not hurt to define it.
2823
2824 cat >>confdefs.h <<\_ACEOF
2825 #define X_DISPLAY_MISSING 1
2826 _ACEOF
2827
2828   X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
2829 else
2830   if test -n "$x_includes"; then
2831     X_CFLAGS="$X_CFLAGS -I$x_includes"
2832   fi
2833
2834   # It would also be nice to do this for all -L options, not just this one.
2835   if test -n "$x_libraries"; then
2836     X_LIBS="$X_LIBS -L$x_libraries"
2837     # For Solaris; some versions of Sun CC require a space after -R and
2838     # others require no space.  Words are not sufficient . . . .
2839     case `(uname -sr) 2>/dev/null` in
2840     "SunOS 5"*)
2841       echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
2842 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
2843       ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
2844       cat >conftest.$ac_ext <<_ACEOF
2845 #line $LINENO "configure"
2846 /* confdefs.h.  */
2847 _ACEOF
2848 cat confdefs.h >>conftest.$ac_ext
2849 cat >>conftest.$ac_ext <<_ACEOF
2850 /* end confdefs.h.  */
2851
2852 int
2853 main ()
2854 {
2855
2856   ;
2857   return 0;
2858 }
2859 _ACEOF
2860 rm -f conftest.$ac_objext conftest$ac_exeext
2861 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2862   (eval $ac_link) 2>&5
2863   ac_status=$?
2864   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2865   (exit $ac_status); } &&
2866          { ac_try='test -s conftest$ac_exeext'
2867   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2868   (eval $ac_try) 2>&5
2869   ac_status=$?
2870   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2871   (exit $ac_status); }; }; then
2872   ac_R_nospace=yes
2873 else
2874   echo "$as_me: failed program was:" >&5
2875 sed 's/^/| /' conftest.$ac_ext >&5
2876
2877 ac_R_nospace=no
2878 fi
2879 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2880       if test $ac_R_nospace = yes; then
2881         echo "$as_me:$LINENO: result: no" >&5
2882 echo "${ECHO_T}no" >&6
2883         X_LIBS="$X_LIBS -R$x_libraries"
2884       else
2885         LIBS="$ac_xsave_LIBS -R $x_libraries"
2886         cat >conftest.$ac_ext <<_ACEOF
2887 #line $LINENO "configure"
2888 /* confdefs.h.  */
2889 _ACEOF
2890 cat confdefs.h >>conftest.$ac_ext
2891 cat >>conftest.$ac_ext <<_ACEOF
2892 /* end confdefs.h.  */
2893
2894 int
2895 main ()
2896 {
2897
2898   ;
2899   return 0;
2900 }
2901 _ACEOF
2902 rm -f conftest.$ac_objext conftest$ac_exeext
2903 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2904   (eval $ac_link) 2>&5
2905   ac_status=$?
2906   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2907   (exit $ac_status); } &&
2908          { ac_try='test -s conftest$ac_exeext'
2909   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2910   (eval $ac_try) 2>&5
2911   ac_status=$?
2912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2913   (exit $ac_status); }; }; then
2914   ac_R_space=yes
2915 else
2916   echo "$as_me: failed program was:" >&5
2917 sed 's/^/| /' conftest.$ac_ext >&5
2918
2919 ac_R_space=no
2920 fi
2921 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2922         if test $ac_R_space = yes; then
2923           echo "$as_me:$LINENO: result: yes" >&5
2924 echo "${ECHO_T}yes" >&6
2925           X_LIBS="$X_LIBS -R $x_libraries"
2926         else
2927           echo "$as_me:$LINENO: result: neither works" >&5
2928 echo "${ECHO_T}neither works" >&6
2929         fi
2930       fi
2931       LIBS=$ac_xsave_LIBS
2932     esac
2933   fi
2934
2935   # Check for system-dependent libraries X programs must link with.
2936   # Do this before checking for the system-independent R6 libraries
2937   # (-lICE), since we may need -lsocket or whatever for X linking.
2938
2939   if test "$ISC" = yes; then
2940     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
2941   else
2942     # Martyn Johnson says this is needed for Ultrix, if the X
2943     # libraries were built with DECnet support.  And Karl Berry says
2944     # the Alpha needs dnet_stub (dnet does not exist).
2945     ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
2946     cat >conftest.$ac_ext <<_ACEOF
2947 #line $LINENO "configure"
2948 /* confdefs.h.  */
2949 _ACEOF
2950 cat confdefs.h >>conftest.$ac_ext
2951 cat >>conftest.$ac_ext <<_ACEOF
2952 /* end confdefs.h.  */
2953
2954 /* Override any gcc2 internal prototype to avoid an error.  */
2955 #ifdef __cplusplus
2956 extern "C"
2957 #endif
2958 /* We use char because int might match the return type of a gcc2
2959    builtin and then its argument prototype would still apply.  */
2960 char XOpenDisplay ();
2961 int
2962 main ()
2963 {
2964 XOpenDisplay ();
2965   ;
2966   return 0;
2967 }
2968 _ACEOF
2969 rm -f conftest.$ac_objext conftest$ac_exeext
2970 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2971   (eval $ac_link) 2>&5
2972   ac_status=$?
2973   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2974   (exit $ac_status); } &&
2975          { ac_try='test -s conftest$ac_exeext'
2976   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2977   (eval $ac_try) 2>&5
2978   ac_status=$?
2979   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2980   (exit $ac_status); }; }; then
2981   :
2982 else
2983   echo "$as_me: failed program was:" >&5
2984 sed 's/^/| /' conftest.$ac_ext >&5
2985
2986 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
2987 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
2988 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
2989   echo $ECHO_N "(cached) $ECHO_C" >&6
2990 else
2991   ac_check_lib_save_LIBS=$LIBS
2992 LIBS="-ldnet  $LIBS"
2993 cat >conftest.$ac_ext <<_ACEOF
2994 #line $LINENO "configure"
2995 /* confdefs.h.  */
2996 _ACEOF
2997 cat confdefs.h >>conftest.$ac_ext
2998 cat >>conftest.$ac_ext <<_ACEOF
2999 /* end confdefs.h.  */
3000
3001 /* Override any gcc2 internal prototype to avoid an error.  */
3002 #ifdef __cplusplus
3003 extern "C"
3004 #endif
3005 /* We use char because int might match the return type of a gcc2
3006    builtin and then its argument prototype would still apply.  */
3007 char dnet_ntoa ();
3008 int
3009 main ()
3010 {
3011 dnet_ntoa ();
3012   ;
3013   return 0;
3014 }
3015 _ACEOF
3016 rm -f conftest.$ac_objext conftest$ac_exeext
3017 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3018   (eval $ac_link) 2>&5
3019   ac_status=$?
3020   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3021   (exit $ac_status); } &&
3022          { ac_try='test -s conftest$ac_exeext'
3023   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3024   (eval $ac_try) 2>&5
3025   ac_status=$?
3026   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3027   (exit $ac_status); }; }; then
3028   ac_cv_lib_dnet_dnet_ntoa=yes
3029 else
3030   echo "$as_me: failed program was:" >&5
3031 sed 's/^/| /' conftest.$ac_ext >&5
3032
3033 ac_cv_lib_dnet_dnet_ntoa=no
3034 fi
3035 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3036 LIBS=$ac_check_lib_save_LIBS
3037 fi
3038 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
3039 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
3040 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
3041   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
3042 fi
3043
3044     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
3045       echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
3046 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
3047 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
3048   echo $ECHO_N "(cached) $ECHO_C" >&6
3049 else
3050   ac_check_lib_save_LIBS=$LIBS
3051 LIBS="-ldnet_stub  $LIBS"
3052 cat >conftest.$ac_ext <<_ACEOF
3053 #line $LINENO "configure"
3054 /* confdefs.h.  */
3055 _ACEOF
3056 cat confdefs.h >>conftest.$ac_ext
3057 cat >>conftest.$ac_ext <<_ACEOF
3058 /* end confdefs.h.  */
3059
3060 /* Override any gcc2 internal prototype to avoid an error.  */
3061 #ifdef __cplusplus
3062 extern "C"
3063 #endif
3064 /* We use char because int might match the return type of a gcc2
3065    builtin and then its argument prototype would still apply.  */
3066 char dnet_ntoa ();
3067 int
3068 main ()
3069 {
3070 dnet_ntoa ();
3071   ;
3072   return 0;
3073 }
3074 _ACEOF
3075 rm -f conftest.$ac_objext conftest$ac_exeext
3076 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3077   (eval $ac_link) 2>&5
3078   ac_status=$?
3079   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3080   (exit $ac_status); } &&
3081          { ac_try='test -s conftest$ac_exeext'
3082   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3083   (eval $ac_try) 2>&5
3084   ac_status=$?
3085   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3086   (exit $ac_status); }; }; then
3087   ac_cv_lib_dnet_stub_dnet_ntoa=yes
3088 else
3089   echo "$as_me: failed program was:" >&5
3090 sed 's/^/| /' conftest.$ac_ext >&5
3091
3092 ac_cv_lib_dnet_stub_dnet_ntoa=no
3093 fi
3094 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3095 LIBS=$ac_check_lib_save_LIBS
3096 fi
3097 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
3098 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
3099 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
3100   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
3101 fi
3102
3103     fi
3104 fi
3105 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3106     LIBS="$ac_xsave_LIBS"
3107
3108     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
3109     # to get the SysV transport functions.
3110     # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
3111     # needs -lnsl.
3112     # The nsl library prevents programs from opening the X display
3113     # on Irix 5.2, according to T.E. Dickey.
3114     # The functions gethostbyname, getservbyname, and inet_addr are
3115     # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
3116     echo "$as_me:$LINENO: checking for gethostbyname" >&5
3117 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
3118 if test "${ac_cv_func_gethostbyname+set}" = set; then
3119   echo $ECHO_N "(cached) $ECHO_C" >&6
3120 else
3121   cat >conftest.$ac_ext <<_ACEOF
3122 #line $LINENO "configure"
3123 /* confdefs.h.  */
3124 _ACEOF
3125 cat confdefs.h >>conftest.$ac_ext
3126 cat >>conftest.$ac_ext <<_ACEOF
3127 /* end confdefs.h.  */
3128 /* System header to define __stub macros and hopefully few prototypes,
3129     which can conflict with char gethostbyname (); below.
3130     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3131     <limits.h> exists even on freestanding compilers.  */
3132 #ifdef __STDC__
3133 # include <limits.h>
3134 #else
3135 # include <assert.h>
3136 #endif
3137 /* Override any gcc2 internal prototype to avoid an error.  */
3138 #ifdef __cplusplus
3139 extern "C"
3140 {
3141 #endif
3142 /* We use char because int might match the return type of a gcc2
3143    builtin and then its argument prototype would still apply.  */
3144 char gethostbyname ();
3145 /* The GNU C library defines this for functions which it implements
3146     to always fail with ENOSYS.  Some functions are actually named
3147     something starting with __ and the normal name is an alias.  */
3148 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
3149 choke me
3150 #else
3151 char (*f) () = gethostbyname;
3152 #endif
3153 #ifdef __cplusplus
3154 }
3155 #endif
3156
3157 int
3158 main ()
3159 {
3160 return f != gethostbyname;
3161   ;
3162   return 0;
3163 }
3164 _ACEOF
3165 rm -f conftest.$ac_objext conftest$ac_exeext
3166 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3167   (eval $ac_link) 2>&5
3168   ac_status=$?
3169   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3170   (exit $ac_status); } &&
3171          { ac_try='test -s conftest$ac_exeext'
3172   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3173   (eval $ac_try) 2>&5
3174   ac_status=$?
3175   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3176   (exit $ac_status); }; }; then
3177   ac_cv_func_gethostbyname=yes
3178 else
3179   echo "$as_me: failed program was:" >&5
3180 sed 's/^/| /' conftest.$ac_ext >&5
3181
3182 ac_cv_func_gethostbyname=no
3183 fi
3184 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3185 fi
3186 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
3187 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
3188
3189     if test $ac_cv_func_gethostbyname = no; then
3190       echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
3191 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
3192 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
3193   echo $ECHO_N "(cached) $ECHO_C" >&6
3194 else
3195   ac_check_lib_save_LIBS=$LIBS
3196 LIBS="-lnsl  $LIBS"
3197 cat >conftest.$ac_ext <<_ACEOF
3198 #line $LINENO "configure"
3199 /* confdefs.h.  */
3200 _ACEOF
3201 cat confdefs.h >>conftest.$ac_ext
3202 cat >>conftest.$ac_ext <<_ACEOF
3203 /* end confdefs.h.  */
3204
3205 /* Override any gcc2 internal prototype to avoid an error.  */
3206 #ifdef __cplusplus
3207 extern "C"
3208 #endif
3209 /* We use char because int might match the return type of a gcc2
3210    builtin and then its argument prototype would still apply.  */
3211 char gethostbyname ();
3212 int
3213 main ()
3214 {
3215 gethostbyname ();
3216   ;
3217   return 0;
3218 }
3219 _ACEOF
3220 rm -f conftest.$ac_objext conftest$ac_exeext
3221 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3222   (eval $ac_link) 2>&5
3223   ac_status=$?
3224   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3225   (exit $ac_status); } &&
3226          { ac_try='test -s conftest$ac_exeext'
3227   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3228   (eval $ac_try) 2>&5
3229   ac_status=$?
3230   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3231   (exit $ac_status); }; }; then
3232   ac_cv_lib_nsl_gethostbyname=yes
3233 else
3234   echo "$as_me: failed program was:" >&5
3235 sed 's/^/| /' conftest.$ac_ext >&5
3236
3237 ac_cv_lib_nsl_gethostbyname=no
3238 fi
3239 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3240 LIBS=$ac_check_lib_save_LIBS
3241 fi
3242 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
3243 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
3244 if test $ac_cv_lib_nsl_gethostbyname = yes; then
3245   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
3246 fi
3247
3248       if test $ac_cv_lib_nsl_gethostbyname = no; then
3249         echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
3250 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
3251 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
3252   echo $ECHO_N "(cached) $ECHO_C" >&6
3253 else
3254   ac_check_lib_save_LIBS=$LIBS
3255 LIBS="-lbsd  $LIBS"
3256 cat >conftest.$ac_ext <<_ACEOF
3257 #line $LINENO "configure"
3258 /* confdefs.h.  */
3259 _ACEOF
3260 cat confdefs.h >>conftest.$ac_ext
3261 cat >>conftest.$ac_ext <<_ACEOF
3262 /* end confdefs.h.  */
3263
3264 /* Override any gcc2 internal prototype to avoid an error.  */
3265 #ifdef __cplusplus
3266 extern "C"
3267 #endif
3268 /* We use char because int might match the return type of a gcc2
3269    builtin and then its argument prototype would still apply.  */
3270 char gethostbyname ();
3271 int
3272 main ()
3273 {
3274 gethostbyname ();
3275   ;
3276   return 0;
3277 }
3278 _ACEOF
3279 rm -f conftest.$ac_objext conftest$ac_exeext
3280 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3281   (eval $ac_link) 2>&5
3282   ac_status=$?
3283   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3284   (exit $ac_status); } &&
3285          { ac_try='test -s conftest$ac_exeext'
3286   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3287   (eval $ac_try) 2>&5
3288   ac_status=$?
3289   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3290   (exit $ac_status); }; }; then
3291   ac_cv_lib_bsd_gethostbyname=yes
3292 else
3293   echo "$as_me: failed program was:" >&5
3294 sed 's/^/| /' conftest.$ac_ext >&5
3295
3296 ac_cv_lib_bsd_gethostbyname=no
3297 fi
3298 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3299 LIBS=$ac_check_lib_save_LIBS
3300 fi
3301 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
3302 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
3303 if test $ac_cv_lib_bsd_gethostbyname = yes; then
3304   X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
3305 fi
3306
3307       fi
3308     fi
3309
3310     # lieder@skyler.mavd.honeywell.com says without -lsocket,
3311     # socket/setsockopt and other routines are undefined under SCO ODT
3312     # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
3313     # on later versions), says Simon Leinen: it contains gethostby*
3314     # variants that don't use the name server (or something).  -lsocket
3315     # must be given before -lnsl if both are needed.  We assume that
3316     # if connect needs -lnsl, so does gethostbyname.
3317     echo "$as_me:$LINENO: checking for connect" >&5
3318 echo $ECHO_N "checking for connect... $ECHO_C" >&6
3319 if test "${ac_cv_func_connect+set}" = set; then
3320   echo $ECHO_N "(cached) $ECHO_C" >&6
3321 else
3322   cat >conftest.$ac_ext <<_ACEOF
3323 #line $LINENO "configure"
3324 /* confdefs.h.  */
3325 _ACEOF
3326 cat confdefs.h >>conftest.$ac_ext
3327 cat >>conftest.$ac_ext <<_ACEOF
3328 /* end confdefs.h.  */
3329 /* System header to define __stub macros and hopefully few prototypes,
3330     which can conflict with char connect (); below.
3331     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3332     <limits.h> exists even on freestanding compilers.  */
3333 #ifdef __STDC__
3334 # include <limits.h>
3335 #else
3336 # include <assert.h>
3337 #endif
3338 /* Override any gcc2 internal prototype to avoid an error.  */
3339 #ifdef __cplusplus
3340 extern "C"
3341 {
3342 #endif
3343 /* We use char because int might match the return type of a gcc2
3344    builtin and then its argument prototype would still apply.  */
3345 char connect ();
3346 /* The GNU C library defines this for functions which it implements
3347     to always fail with ENOSYS.  Some functions are actually named
3348     something starting with __ and the normal name is an alias.  */
3349 #if defined (__stub_connect) || defined (__stub___connect)
3350 choke me
3351 #else
3352 char (*f) () = connect;
3353 #endif
3354 #ifdef __cplusplus
3355 }
3356 #endif
3357
3358 int
3359 main ()
3360 {
3361 return f != connect;
3362   ;
3363   return 0;
3364 }
3365 _ACEOF
3366 rm -f conftest.$ac_objext conftest$ac_exeext
3367 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3368   (eval $ac_link) 2>&5
3369   ac_status=$?
3370   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3371   (exit $ac_status); } &&
3372          { ac_try='test -s conftest$ac_exeext'
3373   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3374   (eval $ac_try) 2>&5
3375   ac_status=$?
3376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3377   (exit $ac_status); }; }; then
3378   ac_cv_func_connect=yes
3379 else
3380   echo "$as_me: failed program was:" >&5
3381 sed 's/^/| /' conftest.$ac_ext >&5
3382
3383 ac_cv_func_connect=no
3384 fi
3385 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3386 fi
3387 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
3388 echo "${ECHO_T}$ac_cv_func_connect" >&6
3389
3390     if test $ac_cv_func_connect = no; then
3391       echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
3392 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
3393 if test "${ac_cv_lib_socket_connect+set}" = set; then
3394   echo $ECHO_N "(cached) $ECHO_C" >&6
3395 else
3396   ac_check_lib_save_LIBS=$LIBS
3397 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
3398 cat >conftest.$ac_ext <<_ACEOF
3399 #line $LINENO "configure"
3400 /* confdefs.h.  */
3401 _ACEOF
3402 cat confdefs.h >>conftest.$ac_ext
3403 cat >>conftest.$ac_ext <<_ACEOF
3404 /* end confdefs.h.  */
3405
3406 /* Override any gcc2 internal prototype to avoid an error.  */
3407 #ifdef __cplusplus
3408 extern "C"
3409 #endif
3410 /* We use char because int might match the return type of a gcc2
3411    builtin and then its argument prototype would still apply.  */
3412 char connect ();
3413 int
3414 main ()
3415 {
3416 connect ();
3417   ;
3418   return 0;
3419 }
3420 _ACEOF
3421 rm -f conftest.$ac_objext conftest$ac_exeext
3422 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3423   (eval $ac_link) 2>&5
3424   ac_status=$?
3425   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3426   (exit $ac_status); } &&
3427          { ac_try='test -s conftest$ac_exeext'
3428   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3429   (eval $ac_try) 2>&5
3430   ac_status=$?
3431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3432   (exit $ac_status); }; }; then
3433   ac_cv_lib_socket_connect=yes
3434 else
3435   echo "$as_me: failed program was:" >&5
3436 sed 's/^/| /' conftest.$ac_ext >&5
3437
3438 ac_cv_lib_socket_connect=no
3439 fi
3440 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3441 LIBS=$ac_check_lib_save_LIBS
3442 fi
3443 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
3444 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
3445 if test $ac_cv_lib_socket_connect = yes; then
3446   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
3447 fi
3448
3449     fi
3450
3451     # Guillermo Gomez says -lposix is necessary on A/UX.
3452     echo "$as_me:$LINENO: checking for remove" >&5
3453 echo $ECHO_N "checking for remove... $ECHO_C" >&6
3454 if test "${ac_cv_func_remove+set}" = set; then
3455   echo $ECHO_N "(cached) $ECHO_C" >&6
3456 else
3457   cat >conftest.$ac_ext <<_ACEOF
3458 #line $LINENO "configure"
3459 /* confdefs.h.  */
3460 _ACEOF
3461 cat confdefs.h >>conftest.$ac_ext
3462 cat >>conftest.$ac_ext <<_ACEOF
3463 /* end confdefs.h.  */
3464 /* System header to define __stub macros and hopefully few prototypes,
3465     which can conflict with char remove (); below.
3466     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3467     <limits.h> exists even on freestanding compilers.  */
3468 #ifdef __STDC__
3469 # include <limits.h>
3470 #else
3471 # include <assert.h>
3472 #endif
3473 /* Override any gcc2 internal prototype to avoid an error.  */
3474 #ifdef __cplusplus
3475 extern "C"
3476 {
3477 #endif
3478 /* We use char because int might match the return type of a gcc2
3479    builtin and then its argument prototype would still apply.  */
3480 char remove ();
3481 /* The GNU C library defines this for functions which it implements
3482     to always fail with ENOSYS.  Some functions are actually named
3483     something starting with __ and the normal name is an alias.  */
3484 #if defined (__stub_remove) || defined (__stub___remove)
3485 choke me
3486 #else
3487 char (*f) () = remove;
3488 #endif
3489 #ifdef __cplusplus
3490 }
3491 #endif
3492
3493 int
3494 main ()
3495 {
3496 return f != remove;
3497   ;
3498   return 0;
3499 }
3500 _ACEOF
3501 rm -f conftest.$ac_objext conftest$ac_exeext
3502 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3503   (eval $ac_link) 2>&5
3504   ac_status=$?
3505   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3506   (exit $ac_status); } &&
3507          { ac_try='test -s conftest$ac_exeext'
3508   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3509   (eval $ac_try) 2>&5
3510   ac_status=$?
3511   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3512   (exit $ac_status); }; }; then
3513   ac_cv_func_remove=yes
3514 else
3515   echo "$as_me: failed program was:" >&5
3516 sed 's/^/| /' conftest.$ac_ext >&5
3517
3518 ac_cv_func_remove=no
3519 fi
3520 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3521 fi
3522 echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
3523 echo "${ECHO_T}$ac_cv_func_remove" >&6
3524
3525     if test $ac_cv_func_remove = no; then
3526       echo "$as_me:$LINENO: checking for remove in -lposix" >&5
3527 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
3528 if test "${ac_cv_lib_posix_remove+set}" = set; then
3529   echo $ECHO_N "(cached) $ECHO_C" >&6
3530 else
3531   ac_check_lib_save_LIBS=$LIBS
3532 LIBS="-lposix  $LIBS"
3533 cat >conftest.$ac_ext <<_ACEOF
3534 #line $LINENO "configure"
3535 /* confdefs.h.  */
3536 _ACEOF
3537 cat confdefs.h >>conftest.$ac_ext
3538 cat >>conftest.$ac_ext <<_ACEOF
3539 /* end confdefs.h.  */
3540
3541 /* Override any gcc2 internal prototype to avoid an error.  */
3542 #ifdef __cplusplus
3543 extern "C"
3544 #endif
3545 /* We use char because int might match the return type of a gcc2
3546    builtin and then its argument prototype would still apply.  */
3547 char remove ();
3548 int
3549 main ()
3550 {
3551 remove ();
3552   ;
3553   return 0;
3554 }
3555 _ACEOF
3556 rm -f conftest.$ac_objext conftest$ac_exeext
3557 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3558   (eval $ac_link) 2>&5
3559   ac_status=$?
3560   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3561   (exit $ac_status); } &&
3562          { ac_try='test -s conftest$ac_exeext'
3563   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3564   (eval $ac_try) 2>&5
3565   ac_status=$?
3566   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3567   (exit $ac_status); }; }; then
3568   ac_cv_lib_posix_remove=yes
3569 else
3570   echo "$as_me: failed program was:" >&5
3571 sed 's/^/| /' conftest.$ac_ext >&5
3572
3573 ac_cv_lib_posix_remove=no
3574 fi
3575 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3576 LIBS=$ac_check_lib_save_LIBS
3577 fi
3578 echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
3579 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
3580 if test $ac_cv_lib_posix_remove = yes; then
3581   X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
3582 fi
3583
3584     fi
3585
3586     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
3587     echo "$as_me:$LINENO: checking for shmat" >&5
3588 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
3589 if test "${ac_cv_func_shmat+set}" = set; then
3590   echo $ECHO_N "(cached) $ECHO_C" >&6
3591 else
3592   cat >conftest.$ac_ext <<_ACEOF
3593 #line $LINENO "configure"
3594 /* confdefs.h.  */
3595 _ACEOF
3596 cat confdefs.h >>conftest.$ac_ext
3597 cat >>conftest.$ac_ext <<_ACEOF
3598 /* end confdefs.h.  */
3599 /* System header to define __stub macros and hopefully few prototypes,
3600     which can conflict with char shmat (); below.
3601     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3602     <limits.h> exists even on freestanding compilers.  */
3603 #ifdef __STDC__
3604 # include <limits.h>
3605 #else
3606 # include <assert.h>
3607 #endif
3608 /* Override any gcc2 internal prototype to avoid an error.  */
3609 #ifdef __cplusplus
3610 extern "C"
3611 {
3612 #endif
3613 /* We use char because int might match the return type of a gcc2
3614    builtin and then its argument prototype would still apply.  */
3615 char shmat ();
3616 /* The GNU C library defines this for functions which it implements
3617     to always fail with ENOSYS.  Some functions are actually named
3618     something starting with __ and the normal name is an alias.  */
3619 #if defined (__stub_shmat) || defined (__stub___shmat)
3620 choke me
3621 #else
3622 char (*f) () = shmat;
3623 #endif
3624 #ifdef __cplusplus
3625 }
3626 #endif
3627
3628 int
3629 main ()
3630 {
3631 return f != shmat;
3632   ;
3633   return 0;
3634 }
3635 _ACEOF
3636 rm -f conftest.$ac_objext conftest$ac_exeext
3637 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3638   (eval $ac_link) 2>&5
3639   ac_status=$?
3640   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3641   (exit $ac_status); } &&
3642          { ac_try='test -s conftest$ac_exeext'
3643   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3644   (eval $ac_try) 2>&5
3645   ac_status=$?
3646   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3647   (exit $ac_status); }; }; then
3648   ac_cv_func_shmat=yes
3649 else
3650   echo "$as_me: failed program was:" >&5
3651 sed 's/^/| /' conftest.$ac_ext >&5
3652
3653 ac_cv_func_shmat=no
3654 fi
3655 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3656 fi
3657 echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
3658 echo "${ECHO_T}$ac_cv_func_shmat" >&6
3659
3660     if test $ac_cv_func_shmat = no; then
3661       echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
3662 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
3663 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
3664   echo $ECHO_N "(cached) $ECHO_C" >&6
3665 else
3666   ac_check_lib_save_LIBS=$LIBS
3667 LIBS="-lipc  $LIBS"
3668 cat >conftest.$ac_ext <<_ACEOF
3669 #line $LINENO "configure"
3670 /* confdefs.h.  */
3671 _ACEOF
3672 cat confdefs.h >>conftest.$ac_ext
3673 cat >>conftest.$ac_ext <<_ACEOF
3674 /* end confdefs.h.  */
3675
3676 /* Override any gcc2 internal prototype to avoid an error.  */
3677 #ifdef __cplusplus
3678 extern "C"
3679 #endif
3680 /* We use char because int might match the return type of a gcc2
3681    builtin and then its argument prototype would still apply.  */
3682 char shmat ();
3683 int
3684 main ()
3685 {
3686 shmat ();
3687   ;
3688   return 0;
3689 }
3690 _ACEOF
3691 rm -f conftest.$ac_objext conftest$ac_exeext
3692 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3693   (eval $ac_link) 2>&5
3694   ac_status=$?
3695   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3696   (exit $ac_status); } &&
3697          { ac_try='test -s conftest$ac_exeext'
3698   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3699   (eval $ac_try) 2>&5
3700   ac_status=$?
3701   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3702   (exit $ac_status); }; }; then
3703   ac_cv_lib_ipc_shmat=yes
3704 else
3705   echo "$as_me: failed program was:" >&5
3706 sed 's/^/| /' conftest.$ac_ext >&5
3707
3708 ac_cv_lib_ipc_shmat=no
3709 fi
3710 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3711 LIBS=$ac_check_lib_save_LIBS
3712 fi
3713 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
3714 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
3715 if test $ac_cv_lib_ipc_shmat = yes; then
3716   X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
3717 fi
3718
3719     fi
3720   fi
3721
3722   # Check for libraries that X11R6 Xt/Xaw programs need.
3723   ac_save_LDFLAGS=$LDFLAGS
3724   test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
3725   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
3726   # check for ICE first), but we must link in the order -lSM -lICE or
3727   # we get undefined symbols.  So assume we have SM if we have ICE.
3728   # These have to be linked with before -lX11, unlike the other
3729   # libraries we check for below, so use a different variable.
3730   # John Interrante, Karl Berry
3731   echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
3732 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
3733 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
3734   echo $ECHO_N "(cached) $ECHO_C" >&6
3735 else
3736   ac_check_lib_save_LIBS=$LIBS
3737 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
3738 cat >conftest.$ac_ext <<_ACEOF
3739 #line $LINENO "configure"
3740 /* confdefs.h.  */
3741 _ACEOF
3742 cat confdefs.h >>conftest.$ac_ext
3743 cat >>conftest.$ac_ext <<_ACEOF
3744 /* end confdefs.h.  */
3745
3746 /* Override any gcc2 internal prototype to avoid an error.  */
3747 #ifdef __cplusplus
3748 extern "C"
3749 #endif
3750 /* We use char because int might match the return type of a gcc2
3751    builtin and then its argument prototype would still apply.  */
3752 char IceConnectionNumber ();
3753 int
3754 main ()
3755 {
3756 IceConnectionNumber ();
3757   ;
3758   return 0;
3759 }
3760 _ACEOF
3761 rm -f conftest.$ac_objext conftest$ac_exeext
3762 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3763   (eval $ac_link) 2>&5
3764   ac_status=$?
3765   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3766   (exit $ac_status); } &&
3767          { ac_try='test -s conftest$ac_exeext'
3768   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3769   (eval $ac_try) 2>&5
3770   ac_status=$?
3771   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3772   (exit $ac_status); }; }; then
3773   ac_cv_lib_ICE_IceConnectionNumber=yes
3774 else
3775   echo "$as_me: failed program was:" >&5
3776 sed 's/^/| /' conftest.$ac_ext >&5
3777
3778 ac_cv_lib_ICE_IceConnectionNumber=no
3779 fi
3780 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3781 LIBS=$ac_check_lib_save_LIBS
3782 fi
3783 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
3784 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
3785 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
3786   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
3787 fi
3788
3789   LDFLAGS=$ac_save_LDFLAGS
3790
3791 fi
3792
3793 for ac_prog in 'bison -y' byacc
3794 do
3795   # Extract the first word of "$ac_prog", so it can be a program name with args.
3796 set dummy $ac_prog; ac_word=$2
3797 echo "$as_me:$LINENO: checking for $ac_word" >&5
3798 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3799 if test "${ac_cv_prog_YACC+set}" = set; then
3800   echo $ECHO_N "(cached) $ECHO_C" >&6
3801 else
3802   if test -n "$YACC"; then
3803   ac_cv_prog_YACC="$YACC" # Let the user override the test.
3804 else
3805 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3806 for as_dir in $PATH
3807 do
3808   IFS=$as_save_IFS
3809   test -z "$as_dir" && as_dir=.
3810   for ac_exec_ext in '' $ac_executable_extensions; do
3811   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3812     ac_cv_prog_YACC="$ac_prog"
3813     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3814     break 2
3815   fi
3816 done
3817 done
3818
3819 fi
3820 fi
3821 YACC=$ac_cv_prog_YACC
3822 if test -n "$YACC"; then
3823   echo "$as_me:$LINENO: result: $YACC" >&5
3824 echo "${ECHO_T}$YACC" >&6
3825 else
3826   echo "$as_me:$LINENO: result: no" >&5
3827 echo "${ECHO_T}no" >&6
3828 fi
3829
3830   test -n "$YACC" && break
3831 done
3832 test -n "$YACC" || YACC="yacc"
3833
3834 for ac_prog in flex lex
3835 do
3836   # Extract the first word of "$ac_prog", so it can be a program name with args.
3837 set dummy $ac_prog; ac_word=$2
3838 echo "$as_me:$LINENO: checking for $ac_word" >&5
3839 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3840 if test "${ac_cv_prog_LEX+set}" = set; then
3841   echo $ECHO_N "(cached) $ECHO_C" >&6
3842 else
3843   if test -n "$LEX"; then
3844   ac_cv_prog_LEX="$LEX" # Let the user override the test.
3845 else
3846 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3847 for as_dir in $PATH
3848 do
3849   IFS=$as_save_IFS
3850   test -z "$as_dir" && as_dir=.
3851   for ac_exec_ext in '' $ac_executable_extensions; do
3852   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3853     ac_cv_prog_LEX="$ac_prog"
3854     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3855     break 2
3856   fi
3857 done
3858 done
3859
3860 fi
3861 fi
3862 LEX=$ac_cv_prog_LEX
3863 if test -n "$LEX"; then
3864   echo "$as_me:$LINENO: result: $LEX" >&5
3865 echo "${ECHO_T}$LEX" >&6
3866 else
3867   echo "$as_me:$LINENO: result: no" >&5
3868 echo "${ECHO_T}no" >&6
3869 fi
3870
3871   test -n "$LEX" && break
3872 done
3873 test -n "$LEX" || LEX=":"
3874
3875 if test -z "$LEXLIB"
3876 then
3877   echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
3878 echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
3879 if test "${ac_cv_lib_fl_yywrap+set}" = set; then
3880   echo $ECHO_N "(cached) $ECHO_C" >&6
3881 else
3882   ac_check_lib_save_LIBS=$LIBS
3883 LIBS="-lfl  $LIBS"
3884 cat >conftest.$ac_ext <<_ACEOF
3885 #line $LINENO "configure"
3886 /* confdefs.h.  */
3887 _ACEOF
3888 cat confdefs.h >>conftest.$ac_ext
3889 cat >>conftest.$ac_ext <<_ACEOF
3890 /* end confdefs.h.  */
3891
3892 /* Override any gcc2 internal prototype to avoid an error.  */
3893 #ifdef __cplusplus
3894 extern "C"
3895 #endif
3896 /* We use char because int might match the return type of a gcc2
3897    builtin and then its argument prototype would still apply.  */
3898 char yywrap ();
3899 int
3900 main ()
3901 {
3902 yywrap ();
3903   ;
3904   return 0;
3905 }
3906 _ACEOF
3907 rm -f conftest.$ac_objext conftest$ac_exeext
3908 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3909   (eval $ac_link) 2>&5
3910   ac_status=$?
3911   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3912   (exit $ac_status); } &&
3913          { ac_try='test -s conftest$ac_exeext'
3914   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3915   (eval $ac_try) 2>&5
3916   ac_status=$?
3917   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3918   (exit $ac_status); }; }; then
3919   ac_cv_lib_fl_yywrap=yes
3920 else
3921   echo "$as_me: failed program was:" >&5
3922 sed 's/^/| /' conftest.$ac_ext >&5
3923
3924 ac_cv_lib_fl_yywrap=no
3925 fi
3926 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3927 LIBS=$ac_check_lib_save_LIBS
3928 fi
3929 echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
3930 echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
3931 if test $ac_cv_lib_fl_yywrap = yes; then
3932   LEXLIB="-lfl"
3933 else
3934   echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
3935 echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
3936 if test "${ac_cv_lib_l_yywrap+set}" = set; then
3937   echo $ECHO_N "(cached) $ECHO_C" >&6
3938 else
3939   ac_check_lib_save_LIBS=$LIBS
3940 LIBS="-ll  $LIBS"
3941 cat >conftest.$ac_ext <<_ACEOF
3942 #line $LINENO "configure"
3943 /* confdefs.h.  */
3944 _ACEOF
3945 cat confdefs.h >>conftest.$ac_ext
3946 cat >>conftest.$ac_ext <<_ACEOF
3947 /* end confdefs.h.  */
3948
3949 /* Override any gcc2 internal prototype to avoid an error.  */
3950 #ifdef __cplusplus
3951 extern "C"
3952 #endif
3953 /* We use char because int might match the return type of a gcc2
3954    builtin and then its argument prototype would still apply.  */
3955 char yywrap ();
3956 int
3957 main ()
3958 {
3959 yywrap ();
3960   ;
3961   return 0;
3962 }
3963 _ACEOF
3964 rm -f conftest.$ac_objext conftest$ac_exeext
3965 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3966   (eval $ac_link) 2>&5
3967   ac_status=$?
3968   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3969   (exit $ac_status); } &&
3970          { ac_try='test -s conftest$ac_exeext'
3971   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3972   (eval $ac_try) 2>&5
3973   ac_status=$?
3974   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3975   (exit $ac_status); }; }; then
3976   ac_cv_lib_l_yywrap=yes
3977 else
3978   echo "$as_me: failed program was:" >&5
3979 sed 's/^/| /' conftest.$ac_ext >&5
3980
3981 ac_cv_lib_l_yywrap=no
3982 fi
3983 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3984 LIBS=$ac_check_lib_save_LIBS
3985 fi
3986 echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
3987 echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
3988 if test $ac_cv_lib_l_yywrap = yes; then
3989   LEXLIB="-ll"
3990 fi
3991
3992 fi
3993
3994 fi
3995
3996 if test "x$LEX" != "x:"; then
3997   echo "$as_me:$LINENO: checking lex output file root" >&5
3998 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
3999 if test "${ac_cv_prog_lex_root+set}" = set; then
4000   echo $ECHO_N "(cached) $ECHO_C" >&6
4001 else
4002   # The minimal lex program is just a single line: %%.  But some broken lexes
4003 # (Solaris, I think it was) want two %% lines, so accommodate them.
4004 cat >conftest.l <<_ACEOF
4005 %%
4006 %%
4007 _ACEOF
4008 { (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
4009   (eval $LEX conftest.l) 2>&5
4010   ac_status=$?
4011   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4012   (exit $ac_status); }
4013 if test -f lex.yy.c; then
4014   ac_cv_prog_lex_root=lex.yy
4015 elif test -f lexyy.c; then
4016   ac_cv_prog_lex_root=lexyy
4017 else
4018   { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
4019 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
4020    { (exit 1); exit 1; }; }
4021 fi
4022 fi
4023 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
4024 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
4025 rm -f conftest.l
4026 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
4027
4028 echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
4029 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
4030 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
4031   echo $ECHO_N "(cached) $ECHO_C" >&6
4032 else
4033   # POSIX says lex can declare yytext either as a pointer or an array; the
4034 # default is implementation-dependent. Figure out which it is, since
4035 # not all implementations provide the %pointer and %array declarations.
4036 ac_cv_prog_lex_yytext_pointer=no
4037 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
4038 ac_save_LIBS=$LIBS
4039 LIBS="$LIBS $LEXLIB"
4040 cat >conftest.$ac_ext <<_ACEOF
4041 `cat $LEX_OUTPUT_ROOT.c`
4042 _ACEOF
4043 rm -f conftest.$ac_objext conftest$ac_exeext
4044 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4045   (eval $ac_link) 2>&5
4046   ac_status=$?
4047   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4048   (exit $ac_status); } &&
4049          { ac_try='test -s conftest$ac_exeext'
4050   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4051   (eval $ac_try) 2>&5
4052   ac_status=$?
4053   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4054   (exit $ac_status); }; }; then
4055   ac_cv_prog_lex_yytext_pointer=yes
4056 else
4057   echo "$as_me: failed program was:" >&5
4058 sed 's/^/| /' conftest.$ac_ext >&5
4059
4060 fi
4061 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4062 LIBS=$ac_save_LIBS
4063 rm -f "${LEX_OUTPUT_ROOT}.c"
4064
4065 fi
4066 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
4067 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
4068 if test $ac_cv_prog_lex_yytext_pointer = yes; then
4069
4070 cat >>confdefs.h <<\_ACEOF
4071 #define YYTEXT_POINTER 1
4072 _ACEOF
4073
4074 fi
4075
4076 fi
4077
4078 for ac_prog in $YACC bison yacc
4079 do
4080   # Extract the first word of "$ac_prog", so it can be a program name with args.
4081 set dummy $ac_prog; ac_word=$2
4082 echo "$as_me:$LINENO: checking for $ac_word" >&5
4083 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4084 if test "${ac_cv_prog_XYACC+set}" = set; then
4085   echo $ECHO_N "(cached) $ECHO_C" >&6
4086 else
4087   if test -n "$XYACC"; then
4088   ac_cv_prog_XYACC="$XYACC" # Let the user override the test.
4089 else
4090 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4091 for as_dir in $PATH
4092 do
4093   IFS=$as_save_IFS
4094   test -z "$as_dir" && as_dir=.
4095   for ac_exec_ext in '' $ac_executable_extensions; do
4096   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4097     ac_cv_prog_XYACC="$ac_prog"
4098     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4099     break 2
4100   fi
4101 done
4102 done
4103
4104 fi
4105 fi
4106 XYACC=$ac_cv_prog_XYACC
4107 if test -n "$XYACC"; then
4108   echo "$as_me:$LINENO: result: $XYACC" >&5
4109 echo "${ECHO_T}$XYACC" >&6
4110 else
4111   echo "$as_me:$LINENO: result: no" >&5
4112 echo "${ECHO_T}no" >&6
4113 fi
4114
4115   test -n "$XYACC" && break
4116 done
4117 test -n "$XYACC" || XYACC="none"
4118
4119 if test "$XYACC" = "none"
4120 then
4121   { { echo "$as_me:$LINENO: error: no suitable bison/yacc found. Please install the 'bison' package." >&5
4122 echo "$as_me: error: no suitable bison/yacc found. Please install the 'bison' package." >&2;}
4123    { (exit 1); exit 1; }; }
4124 fi
4125 for ac_prog in $LEX flex lex
4126 do
4127   # Extract the first word of "$ac_prog", so it can be a program name with args.
4128 set dummy $ac_prog; ac_word=$2
4129 echo "$as_me:$LINENO: checking for $ac_word" >&5
4130 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4131 if test "${ac_cv_prog_XLEX+set}" = set; then
4132   echo $ECHO_N "(cached) $ECHO_C" >&6
4133 else
4134   if test -n "$XLEX"; then
4135   ac_cv_prog_XLEX="$XLEX" # Let the user override the test.
4136 else
4137 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4138 for as_dir in $PATH
4139 do
4140   IFS=$as_save_IFS
4141   test -z "$as_dir" && as_dir=.
4142   for ac_exec_ext in '' $ac_executable_extensions; do
4143   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4144     ac_cv_prog_XLEX="$ac_prog"
4145     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4146     break 2
4147   fi
4148 done
4149 done
4150
4151 fi
4152 fi
4153 XLEX=$ac_cv_prog_XLEX
4154 if test -n "$XLEX"; then
4155   echo "$as_me:$LINENO: result: $XLEX" >&5
4156 echo "${ECHO_T}$XLEX" >&6
4157 else
4158   echo "$as_me:$LINENO: result: no" >&5
4159 echo "${ECHO_T}no" >&6
4160 fi
4161
4162   test -n "$XLEX" && break
4163 done
4164 test -n "$XLEX" || XLEX="none"
4165
4166 if test "$XLEX" = "none"
4167 then
4168   { { echo "$as_me:$LINENO: error: no suitable lex found. Please install the 'flex' package." >&5
4169 echo "$as_me: error: no suitable lex found. Please install the 'flex' package." >&2;}
4170    { (exit 1); exit 1; }; }
4171 fi
4172
4173 if test -n "$ac_tool_prefix"; then
4174   for ac_prog in gas as
4175   do
4176     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4177 set dummy $ac_tool_prefix$ac_prog; 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$ac_prog"
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     test -n "$AS" && break
4212   done
4213 fi
4214 if test -z "$AS"; then
4215   ac_ct_AS=$AS
4216   for ac_prog in gas as
4217 do
4218   # Extract the first word of "$ac_prog", so it can be a program name with args.
4219 set dummy $ac_prog; ac_word=$2
4220 echo "$as_me:$LINENO: checking for $ac_word" >&5
4221 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4222 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
4223   echo $ECHO_N "(cached) $ECHO_C" >&6
4224 else
4225   if test -n "$ac_ct_AS"; then
4226   ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
4227 else
4228 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4229 for as_dir in $PATH
4230 do
4231   IFS=$as_save_IFS
4232   test -z "$as_dir" && as_dir=.
4233   for ac_exec_ext in '' $ac_executable_extensions; do
4234   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4235     ac_cv_prog_ac_ct_AS="$ac_prog"
4236     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4237     break 2
4238   fi
4239 done
4240 done
4241
4242 fi
4243 fi
4244 ac_ct_AS=$ac_cv_prog_ac_ct_AS
4245 if test -n "$ac_ct_AS"; then
4246   echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
4247 echo "${ECHO_T}$ac_ct_AS" >&6
4248 else
4249   echo "$as_me:$LINENO: result: no" >&5
4250 echo "${ECHO_T}no" >&6
4251 fi
4252
4253   test -n "$ac_ct_AS" && break
4254 done
4255 test -n "$ac_ct_AS" || ac_ct_AS="as"
4256
4257   AS=$ac_ct_AS
4258 fi
4259
4260 if test -n "$ac_tool_prefix"; then
4261   # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
4262 set dummy ${ac_tool_prefix}ld; ac_word=$2
4263 echo "$as_me:$LINENO: checking for $ac_word" >&5
4264 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4265 if test "${ac_cv_prog_LD+set}" = set; then
4266   echo $ECHO_N "(cached) $ECHO_C" >&6
4267 else
4268   if test -n "$LD"; then
4269   ac_cv_prog_LD="$LD" # Let the user override the test.
4270 else
4271 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4272 for as_dir in $PATH
4273 do
4274   IFS=$as_save_IFS
4275   test -z "$as_dir" && as_dir=.
4276   for ac_exec_ext in '' $ac_executable_extensions; do
4277   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4278     ac_cv_prog_LD="${ac_tool_prefix}ld"
4279     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4280     break 2
4281   fi
4282 done
4283 done
4284
4285 fi
4286 fi
4287 LD=$ac_cv_prog_LD
4288 if test -n "$LD"; then
4289   echo "$as_me:$LINENO: result: $LD" >&5
4290 echo "${ECHO_T}$LD" >&6
4291 else
4292   echo "$as_me:$LINENO: result: no" >&5
4293 echo "${ECHO_T}no" >&6
4294 fi
4295
4296 fi
4297 if test -z "$ac_cv_prog_LD"; then
4298   ac_ct_LD=$LD
4299   # Extract the first word of "ld", so it can be a program name with args.
4300 set dummy ld; ac_word=$2
4301 echo "$as_me:$LINENO: checking for $ac_word" >&5
4302 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4303 if test "${ac_cv_prog_ac_ct_LD+set}" = set; then
4304   echo $ECHO_N "(cached) $ECHO_C" >&6
4305 else
4306   if test -n "$ac_ct_LD"; then
4307   ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test.
4308 else
4309 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4310 for as_dir in $PATH
4311 do
4312   IFS=$as_save_IFS
4313   test -z "$as_dir" && as_dir=.
4314   for ac_exec_ext in '' $ac_executable_extensions; do
4315   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4316     ac_cv_prog_ac_ct_LD="ld"
4317     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4318     break 2
4319   fi
4320 done
4321 done
4322
4323   test -z "$ac_cv_prog_ac_ct_LD" && ac_cv_prog_ac_ct_LD="ld"
4324 fi
4325 fi
4326 ac_ct_LD=$ac_cv_prog_ac_ct_LD
4327 if test -n "$ac_ct_LD"; then
4328   echo "$as_me:$LINENO: result: $ac_ct_LD" >&5
4329 echo "${ECHO_T}$ac_ct_LD" >&6
4330 else
4331   echo "$as_me:$LINENO: result: no" >&5
4332 echo "${ECHO_T}no" >&6
4333 fi
4334
4335   LD=$ac_ct_LD
4336 else
4337   LD="$ac_cv_prog_LD"
4338 fi
4339
4340 if test -n "$ac_tool_prefix"; then
4341   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4342 set dummy ${ac_tool_prefix}ar; ac_word=$2
4343 echo "$as_me:$LINENO: checking for $ac_word" >&5
4344 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4345 if test "${ac_cv_prog_AR+set}" = set; then
4346   echo $ECHO_N "(cached) $ECHO_C" >&6
4347 else
4348   if test -n "$AR"; then
4349   ac_cv_prog_AR="$AR" # Let the user override the test.
4350 else
4351 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4352 for as_dir in $PATH
4353 do
4354   IFS=$as_save_IFS
4355   test -z "$as_dir" && as_dir=.
4356   for ac_exec_ext in '' $ac_executable_extensions; do
4357   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4358     ac_cv_prog_AR="${ac_tool_prefix}ar"
4359     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4360     break 2
4361   fi
4362 done
4363 done
4364
4365 fi
4366 fi
4367 AR=$ac_cv_prog_AR
4368 if test -n "$AR"; then
4369   echo "$as_me:$LINENO: result: $AR" >&5
4370 echo "${ECHO_T}$AR" >&6
4371 else
4372   echo "$as_me:$LINENO: result: no" >&5
4373 echo "${ECHO_T}no" >&6
4374 fi
4375
4376 fi
4377 if test -z "$ac_cv_prog_AR"; then
4378   ac_ct_AR=$AR
4379   # Extract the first word of "ar", so it can be a program name with args.
4380 set dummy ar; ac_word=$2
4381 echo "$as_me:$LINENO: checking for $ac_word" >&5
4382 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4383 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
4384   echo $ECHO_N "(cached) $ECHO_C" >&6
4385 else
4386   if test -n "$ac_ct_AR"; then
4387   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4388 else
4389 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4390 for as_dir in $PATH
4391 do
4392   IFS=$as_save_IFS
4393   test -z "$as_dir" && as_dir=.
4394   for ac_exec_ext in '' $ac_executable_extensions; do
4395   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4396     ac_cv_prog_ac_ct_AR="ar"
4397     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4398     break 2
4399   fi
4400 done
4401 done
4402
4403   test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar"
4404 fi
4405 fi
4406 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4407 if test -n "$ac_ct_AR"; then
4408   echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
4409 echo "${ECHO_T}$ac_ct_AR" >&6
4410 else
4411   echo "$as_me:$LINENO: result: no" >&5
4412 echo "${ECHO_T}no" >&6
4413 fi
4414
4415   AR=$ac_ct_AR
4416 else
4417   AR="$ac_cv_prog_AR"
4418 fi
4419
4420 if test -n "$ac_tool_prefix"; then
4421   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4422 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4423 echo "$as_me:$LINENO: checking for $ac_word" >&5
4424 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4425 if test "${ac_cv_prog_RANLIB+set}" = set; then
4426   echo $ECHO_N "(cached) $ECHO_C" >&6
4427 else
4428   if test -n "$RANLIB"; then
4429   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4430 else
4431 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4432 for as_dir in $PATH
4433 do
4434   IFS=$as_save_IFS
4435   test -z "$as_dir" && as_dir=.
4436   for ac_exec_ext in '' $ac_executable_extensions; do
4437   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4438     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4439     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4440     break 2
4441   fi
4442 done
4443 done
4444
4445 fi
4446 fi
4447 RANLIB=$ac_cv_prog_RANLIB
4448 if test -n "$RANLIB"; then
4449   echo "$as_me:$LINENO: result: $RANLIB" >&5
4450 echo "${ECHO_T}$RANLIB" >&6
4451 else
4452   echo "$as_me:$LINENO: result: no" >&5
4453 echo "${ECHO_T}no" >&6
4454 fi
4455
4456 fi
4457 if test -z "$ac_cv_prog_RANLIB"; then
4458   ac_ct_RANLIB=$RANLIB
4459   # Extract the first word of "ranlib", so it can be a program name with args.
4460 set dummy ranlib; ac_word=$2
4461 echo "$as_me:$LINENO: checking for $ac_word" >&5
4462 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4463 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4464   echo $ECHO_N "(cached) $ECHO_C" >&6
4465 else
4466   if test -n "$ac_ct_RANLIB"; then
4467   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4468 else
4469 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4470 for as_dir in $PATH
4471 do
4472   IFS=$as_save_IFS
4473   test -z "$as_dir" && as_dir=.
4474   for ac_exec_ext in '' $ac_executable_extensions; do
4475   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4476     ac_cv_prog_ac_ct_RANLIB="ranlib"
4477     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4478     break 2
4479   fi
4480 done
4481 done
4482
4483   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4484 fi
4485 fi
4486 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4487 if test -n "$ac_ct_RANLIB"; then
4488   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4489 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4490 else
4491   echo "$as_me:$LINENO: result: no" >&5
4492 echo "${ECHO_T}no" >&6
4493 fi
4494
4495   RANLIB=$ac_ct_RANLIB
4496 else
4497   RANLIB="$ac_cv_prog_RANLIB"
4498 fi
4499
4500 if test -n "$ac_tool_prefix"; then
4501   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4502 set dummy ${ac_tool_prefix}strip; ac_word=$2
4503 echo "$as_me:$LINENO: checking for $ac_word" >&5
4504 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4505 if test "${ac_cv_prog_STRIP+set}" = set; then
4506   echo $ECHO_N "(cached) $ECHO_C" >&6
4507 else
4508   if test -n "$STRIP"; then
4509   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4510 else
4511 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4512 for as_dir in $PATH
4513 do
4514   IFS=$as_save_IFS
4515   test -z "$as_dir" && as_dir=.
4516   for ac_exec_ext in '' $ac_executable_extensions; do
4517   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4518     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4519     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4520     break 2
4521   fi
4522 done
4523 done
4524
4525 fi
4526 fi
4527 STRIP=$ac_cv_prog_STRIP
4528 if test -n "$STRIP"; then
4529   echo "$as_me:$LINENO: result: $STRIP" >&5
4530 echo "${ECHO_T}$STRIP" >&6
4531 else
4532   echo "$as_me:$LINENO: result: no" >&5
4533 echo "${ECHO_T}no" >&6
4534 fi
4535
4536 fi
4537 if test -z "$ac_cv_prog_STRIP"; then
4538   ac_ct_STRIP=$STRIP
4539   # Extract the first word of "strip", so it can be a program name with args.
4540 set dummy strip; ac_word=$2
4541 echo "$as_me:$LINENO: checking for $ac_word" >&5
4542 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4543 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4544   echo $ECHO_N "(cached) $ECHO_C" >&6
4545 else
4546   if test -n "$ac_ct_STRIP"; then
4547   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4548 else
4549 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4550 for as_dir in $PATH
4551 do
4552   IFS=$as_save_IFS
4553   test -z "$as_dir" && as_dir=.
4554   for ac_exec_ext in '' $ac_executable_extensions; do
4555   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4556     ac_cv_prog_ac_ct_STRIP="strip"
4557     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4558     break 2
4559   fi
4560 done
4561 done
4562
4563   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP="strip"
4564 fi
4565 fi
4566 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4567 if test -n "$ac_ct_STRIP"; then
4568   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4569 echo "${ECHO_T}$ac_ct_STRIP" >&6
4570 else
4571   echo "$as_me:$LINENO: result: no" >&5
4572 echo "${ECHO_T}no" >&6
4573 fi
4574
4575   STRIP=$ac_ct_STRIP
4576 else
4577   STRIP="$ac_cv_prog_STRIP"
4578 fi
4579
4580 if test -n "$ac_tool_prefix"; then
4581   # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
4582 set dummy ${ac_tool_prefix}windres; ac_word=$2
4583 echo "$as_me:$LINENO: checking for $ac_word" >&5
4584 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4585 if test "${ac_cv_prog_WINDRES+set}" = set; then
4586   echo $ECHO_N "(cached) $ECHO_C" >&6
4587 else
4588   if test -n "$WINDRES"; then
4589   ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
4590 else
4591 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4592 for as_dir in $PATH
4593 do
4594   IFS=$as_save_IFS
4595   test -z "$as_dir" && as_dir=.
4596   for ac_exec_ext in '' $ac_executable_extensions; do
4597   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4598     ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
4599     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4600     break 2
4601   fi
4602 done
4603 done
4604
4605 fi
4606 fi
4607 WINDRES=$ac_cv_prog_WINDRES
4608 if test -n "$WINDRES"; then
4609   echo "$as_me:$LINENO: result: $WINDRES" >&5
4610 echo "${ECHO_T}$WINDRES" >&6
4611 else
4612   echo "$as_me:$LINENO: result: no" >&5
4613 echo "${ECHO_T}no" >&6
4614 fi
4615
4616 fi
4617 if test -z "$ac_cv_prog_WINDRES"; then
4618   ac_ct_WINDRES=$WINDRES
4619   # Extract the first word of "windres", so it can be a program name with args.
4620 set dummy windres; ac_word=$2
4621 echo "$as_me:$LINENO: checking for $ac_word" >&5
4622 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4623 if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
4624   echo $ECHO_N "(cached) $ECHO_C" >&6
4625 else
4626   if test -n "$ac_ct_WINDRES"; then
4627   ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
4628 else
4629 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4630 for as_dir in $PATH
4631 do
4632   IFS=$as_save_IFS
4633   test -z "$as_dir" && as_dir=.
4634   for ac_exec_ext in '' $ac_executable_extensions; do
4635   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4636     ac_cv_prog_ac_ct_WINDRES="windres"
4637     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4638     break 2
4639   fi
4640 done
4641 done
4642
4643   test -z "$ac_cv_prog_ac_ct_WINDRES" && ac_cv_prog_ac_ct_WINDRES="false"
4644 fi
4645 fi
4646 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
4647 if test -n "$ac_ct_WINDRES"; then
4648   echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
4649 echo "${ECHO_T}$ac_ct_WINDRES" >&6
4650 else
4651   echo "$as_me:$LINENO: result: no" >&5
4652 echo "${ECHO_T}no" >&6
4653 fi
4654
4655   WINDRES=$ac_ct_WINDRES
4656 else
4657   WINDRES="$ac_cv_prog_WINDRES"
4658 fi
4659
4660 echo "$as_me:$LINENO: checking whether ln -s works" >&5
4661 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4662 LN_S=$as_ln_s
4663 if test "$LN_S" = "ln -s"; then
4664   echo "$as_me:$LINENO: result: yes" >&5
4665 echo "${ECHO_T}yes" >&6
4666 else
4667   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4668 echo "${ECHO_T}no, using $LN_S" >&6
4669 fi
4670
4671 echo "$as_me:$LINENO: checking whether ln works" >&5
4672 echo $ECHO_N "checking whether ln works... $ECHO_C" >&6
4673 rm -f conf$$ conf$$.file
4674 echo >conf$$.file
4675 if ln conf$$.file conf$$ 2>/dev/null; then
4676   LN=ln
4677
4678   echo "$as_me:$LINENO: result: yes" >&5
4679 echo "${ECHO_T}yes" >&6
4680 else
4681   LN="cp -p"
4682
4683   echo "$as_me:$LINENO: result: no, using $LN" >&5
4684 echo "${ECHO_T}no, using $LN" >&6
4685 fi
4686 rm -f conf$$ conf$$.file
4687 # Extract the first word of "ldconfig", so it can be a program name with args.
4688 set dummy ldconfig; ac_word=$2
4689 echo "$as_me:$LINENO: checking for $ac_word" >&5
4690 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4691 if test "${ac_cv_path_LDCONFIG+set}" = set; then
4692   echo $ECHO_N "(cached) $ECHO_C" >&6
4693 else
4694   case $LDCONFIG in
4695   [\\/]* | ?:[\\/]*)
4696   ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
4697   ;;
4698   *)
4699   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4700 for as_dir in /sbin /usr/sbin $PATH
4701 do
4702   IFS=$as_save_IFS
4703   test -z "$as_dir" && as_dir=.
4704   for ac_exec_ext in '' $ac_executable_extensions; do
4705   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4706     ac_cv_path_LDCONFIG="$as_dir/$ac_word$ac_exec_ext"
4707     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4708     break 2
4709   fi
4710 done
4711 done
4712
4713   test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG="true"
4714   ;;
4715 esac
4716 fi
4717 LDCONFIG=$ac_cv_path_LDCONFIG
4718
4719 if test -n "$LDCONFIG"; then
4720   echo "$as_me:$LINENO: result: $LDCONFIG" >&5
4721 echo "${ECHO_T}$LDCONFIG" >&6
4722 else
4723   echo "$as_me:$LINENO: result: no" >&5
4724 echo "${ECHO_T}no" >&6
4725 fi
4726
4727 # Find a good install program.  We prefer a C program (faster),
4728 # so one script is as good as another.  But avoid the broken or
4729 # incompatible versions:
4730 # SysV /etc/install, /usr/sbin/install
4731 # SunOS /usr/etc/install
4732 # IRIX /sbin/install
4733 # AIX /bin/install
4734 # AmigaOS /C/install, which installs bootblocks on floppy discs
4735 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4736 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4737 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4738 # ./install, which can be erroneously created by make from ./install.sh.
4739 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4740 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
4741 if test -z "$INSTALL"; then
4742 if test "${ac_cv_path_install+set}" = set; then
4743   echo $ECHO_N "(cached) $ECHO_C" >&6
4744 else
4745   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4746 for as_dir in $PATH
4747 do
4748   IFS=$as_save_IFS
4749   test -z "$as_dir" && as_dir=.
4750   # Account for people who put trailing slashes in PATH elements.
4751 case $as_dir/ in
4752   ./ | .// | /cC/* | \
4753   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4754   /usr/ucb/* ) ;;
4755   *)
4756     # OSF1 and SCO ODT 3.0 have their own names for install.
4757     # Don't use installbsd from OSF since it installs stuff as root
4758     # by default.
4759     for ac_prog in ginstall scoinst install; do
4760       for ac_exec_ext in '' $ac_executable_extensions; do
4761         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4762           if test $ac_prog = install &&
4763             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4764             # AIX install.  It has an incompatible calling convention.
4765             :
4766           elif test $ac_prog = install &&
4767             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4768             # program-specific install script used by HP pwplus--don't use.
4769             :
4770           else
4771             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4772             break 3
4773           fi
4774         fi
4775       done
4776     done
4777     ;;
4778 esac
4779 done
4780
4781
4782 fi
4783   if test "${ac_cv_path_install+set}" = set; then
4784     INSTALL=$ac_cv_path_install
4785   else
4786     # As a last resort, use the slow shell script.  We don't cache a
4787     # path for INSTALL within a source directory, because that will
4788     # break other packages using the cache if that directory is
4789     # removed, or if the path is relative.
4790     INSTALL=$ac_install_sh
4791   fi
4792 fi
4793 echo "$as_me:$LINENO: result: $INSTALL" >&5
4794 echo "${ECHO_T}$INSTALL" >&6
4795
4796 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4797 # It thinks the first close brace ends the variable substitution.
4798 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4799
4800 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4801
4802 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4803
4804 case "$INSTALL" in
4805   [\\/$]* | ?:[\\/]* ) ;;
4806   *)  INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;;
4807 esac
4808
4809 for ac_prog in lclint lint
4810 do
4811   # Extract the first word of "$ac_prog", so it can be a program name with args.
4812 set dummy $ac_prog; ac_word=$2
4813 echo "$as_me:$LINENO: checking for $ac_word" >&5
4814 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4815 if test "${ac_cv_prog_LINT+set}" = set; then
4816   echo $ECHO_N "(cached) $ECHO_C" >&6
4817 else
4818   if test -n "$LINT"; then
4819   ac_cv_prog_LINT="$LINT" # Let the user override the test.
4820 else
4821 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4822 for as_dir in $PATH
4823 do
4824   IFS=$as_save_IFS
4825   test -z "$as_dir" && as_dir=.
4826   for ac_exec_ext in '' $ac_executable_extensions; do
4827   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4828     ac_cv_prog_LINT="$ac_prog"
4829     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4830     break 2
4831   fi
4832 done
4833 done
4834
4835 fi
4836 fi
4837 LINT=$ac_cv_prog_LINT
4838 if test -n "$LINT"; then
4839   echo "$as_me:$LINENO: result: $LINT" >&5
4840 echo "${ECHO_T}$LINT" >&6
4841 else
4842   echo "$as_me:$LINENO: result: no" >&5
4843 echo "${ECHO_T}no" >&6
4844 fi
4845
4846   test -n "$LINT" && break
4847 done
4848
4849 if test "$LINT" = "lint"
4850 then
4851   LINTFLAGS="$LINTFLAGS -errchk=%all,no%longptr64 -errhdr=%user -Ncheck=macro -Nlevel=4"
4852   fi
4853
4854
4855
4856 for ac_prog in docbook2html db2html
4857 do
4858   # Extract the first word of "$ac_prog", so it can be a program name with args.
4859 set dummy $ac_prog; ac_word=$2
4860 echo "$as_me:$LINENO: checking for $ac_word" >&5
4861 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4862 if test "${ac_cv_prog_DB2HTML+set}" = set; then
4863   echo $ECHO_N "(cached) $ECHO_C" >&6
4864 else
4865   if test -n "$DB2HTML"; then
4866   ac_cv_prog_DB2HTML="$DB2HTML" # Let the user override the test.
4867 else
4868 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4869 for as_dir in $PATH
4870 do
4871   IFS=$as_save_IFS
4872   test -z "$as_dir" && as_dir=.
4873   for ac_exec_ext in '' $ac_executable_extensions; do
4874   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4875     ac_cv_prog_DB2HTML="$ac_prog"
4876     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4877     break 2
4878   fi
4879 done
4880 done
4881
4882 fi
4883 fi
4884 DB2HTML=$ac_cv_prog_DB2HTML
4885 if test -n "$DB2HTML"; then
4886   echo "$as_me:$LINENO: result: $DB2HTML" >&5
4887 echo "${ECHO_T}$DB2HTML" >&6
4888 else
4889   echo "$as_me:$LINENO: result: no" >&5
4890 echo "${ECHO_T}no" >&6
4891 fi
4892
4893   test -n "$DB2HTML" && break
4894 done
4895 test -n "$DB2HTML" || DB2HTML="false"
4896
4897
4898
4899 for ac_prog in docbook2pdf db2pdf
4900 do
4901   # Extract the first word of "$ac_prog", so it can be a program name with args.
4902 set dummy $ac_prog; ac_word=$2
4903 echo "$as_me:$LINENO: checking for $ac_word" >&5
4904 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4905 if test "${ac_cv_prog_DB2PDF+set}" = set; then
4906   echo $ECHO_N "(cached) $ECHO_C" >&6
4907 else
4908   if test -n "$DB2PDF"; then
4909   ac_cv_prog_DB2PDF="$DB2PDF" # Let the user override the test.
4910 else
4911 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4912 for as_dir in $PATH
4913 do
4914   IFS=$as_save_IFS
4915   test -z "$as_dir" && as_dir=.
4916   for ac_exec_ext in '' $ac_executable_extensions; do
4917   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4918     ac_cv_prog_DB2PDF="$ac_prog"
4919     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4920     break 2
4921   fi
4922 done
4923 done
4924
4925 fi
4926 fi
4927 DB2PDF=$ac_cv_prog_DB2PDF
4928 if test -n "$DB2PDF"; then
4929   echo "$as_me:$LINENO: result: $DB2PDF" >&5
4930 echo "${ECHO_T}$DB2PDF" >&6
4931 else
4932   echo "$as_me:$LINENO: result: no" >&5
4933 echo "${ECHO_T}no" >&6
4934 fi
4935
4936   test -n "$DB2PDF" && break
4937 done
4938 test -n "$DB2PDF" || DB2PDF="false"
4939
4940
4941
4942 for ac_prog in docbook2ps db2ps
4943 do
4944   # Extract the first word of "$ac_prog", so it can be a program name with args.
4945 set dummy $ac_prog; ac_word=$2
4946 echo "$as_me:$LINENO: checking for $ac_word" >&5
4947 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4948 if test "${ac_cv_prog_DB2PS+set}" = set; then
4949   echo $ECHO_N "(cached) $ECHO_C" >&6
4950 else
4951   if test -n "$DB2PS"; then
4952   ac_cv_prog_DB2PS="$DB2PS" # Let the user override the test.
4953 else
4954 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4955 for as_dir in $PATH
4956 do
4957   IFS=$as_save_IFS
4958   test -z "$as_dir" && as_dir=.
4959   for ac_exec_ext in '' $ac_executable_extensions; do
4960   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4961     ac_cv_prog_DB2PS="$ac_prog"
4962     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4963     break 2
4964   fi
4965 done
4966 done
4967
4968 fi
4969 fi
4970 DB2PS=$ac_cv_prog_DB2PS
4971 if test -n "$DB2PS"; then
4972   echo "$as_me:$LINENO: result: $DB2PS" >&5
4973 echo "${ECHO_T}$DB2PS" >&6
4974 else
4975   echo "$as_me:$LINENO: result: no" >&5
4976 echo "${ECHO_T}no" >&6
4977 fi
4978
4979   test -n "$DB2PS" && break
4980 done
4981 test -n "$DB2PS" || DB2PS="false"
4982
4983
4984
4985 for ac_prog in docbook2txt db2txt
4986 do
4987   # Extract the first word of "$ac_prog", so it can be a program name with args.
4988 set dummy $ac_prog; ac_word=$2
4989 echo "$as_me:$LINENO: checking for $ac_word" >&5
4990 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4991 if test "${ac_cv_prog_DB2TXT+set}" = set; then
4992   echo $ECHO_N "(cached) $ECHO_C" >&6
4993 else
4994   if test -n "$DB2TXT"; then
4995   ac_cv_prog_DB2TXT="$DB2TXT" # Let the user override the test.
4996 else
4997 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4998 for as_dir in $PATH
4999 do
5000   IFS=$as_save_IFS
5001   test -z "$as_dir" && as_dir=.
5002   for ac_exec_ext in '' $ac_executable_extensions; do
5003   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5004     ac_cv_prog_DB2TXT="$ac_prog"
5005     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5006     break 2
5007   fi
5008 done
5009 done
5010
5011 fi
5012 fi
5013 DB2TXT=$ac_cv_prog_DB2TXT
5014 if test -n "$DB2TXT"; then
5015   echo "$as_me:$LINENO: result: $DB2TXT" >&5
5016 echo "${ECHO_T}$DB2TXT" >&6
5017 else
5018   echo "$as_me:$LINENO: result: no" >&5
5019 echo "${ECHO_T}no" >&6
5020 fi
5021
5022   test -n "$DB2TXT" && break
5023 done
5024 test -n "$DB2TXT" || DB2TXT="false"
5025
5026
5027
5028
5029
5030 echo "$as_me:$LINENO: checking for sqrt in -lm" >&5
5031 echo $ECHO_N "checking for sqrt in -lm... $ECHO_C" >&6
5032 if test "${ac_cv_lib_m_sqrt+set}" = set; then
5033   echo $ECHO_N "(cached) $ECHO_C" >&6
5034 else
5035   ac_check_lib_save_LIBS=$LIBS
5036 LIBS="-lm  $LIBS"
5037 cat >conftest.$ac_ext <<_ACEOF
5038 #line $LINENO "configure"
5039 /* confdefs.h.  */
5040 _ACEOF
5041 cat confdefs.h >>conftest.$ac_ext
5042 cat >>conftest.$ac_ext <<_ACEOF
5043 /* end confdefs.h.  */
5044
5045 /* Override any gcc2 internal prototype to avoid an error.  */
5046 #ifdef __cplusplus
5047 extern "C"
5048 #endif
5049 /* We use char because int might match the return type of a gcc2
5050    builtin and then its argument prototype would still apply.  */
5051 char sqrt ();
5052 int
5053 main ()
5054 {
5055 sqrt ();
5056   ;
5057   return 0;
5058 }
5059 _ACEOF
5060 rm -f conftest.$ac_objext conftest$ac_exeext
5061 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5062   (eval $ac_link) 2>&5
5063   ac_status=$?
5064   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5065   (exit $ac_status); } &&
5066          { ac_try='test -s conftest$ac_exeext'
5067   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5068   (eval $ac_try) 2>&5
5069   ac_status=$?
5070   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5071   (exit $ac_status); }; }; then
5072   ac_cv_lib_m_sqrt=yes
5073 else
5074   echo "$as_me: failed program was:" >&5
5075 sed 's/^/| /' conftest.$ac_ext >&5
5076
5077 ac_cv_lib_m_sqrt=no
5078 fi
5079 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5080 LIBS=$ac_check_lib_save_LIBS
5081 fi
5082 echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrt" >&5
5083 echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6
5084 if test $ac_cv_lib_m_sqrt = yes; then
5085   cat >>confdefs.h <<_ACEOF
5086 #define HAVE_LIBM 1
5087 _ACEOF
5088
5089   LIBS="-lm $LIBS"
5090
5091 fi
5092
5093
5094 echo "$as_me:$LINENO: checking for i386_set_ldt in -li386" >&5
5095 echo $ECHO_N "checking for i386_set_ldt in -li386... $ECHO_C" >&6
5096 if test "${ac_cv_lib_i386_i386_set_ldt+set}" = set; then
5097   echo $ECHO_N "(cached) $ECHO_C" >&6
5098 else
5099   ac_check_lib_save_LIBS=$LIBS
5100 LIBS="-li386  $LIBS"
5101 cat >conftest.$ac_ext <<_ACEOF
5102 #line $LINENO "configure"
5103 /* confdefs.h.  */
5104 _ACEOF
5105 cat confdefs.h >>conftest.$ac_ext
5106 cat >>conftest.$ac_ext <<_ACEOF
5107 /* end confdefs.h.  */
5108
5109 /* Override any gcc2 internal prototype to avoid an error.  */
5110 #ifdef __cplusplus
5111 extern "C"
5112 #endif
5113 /* We use char because int might match the return type of a gcc2
5114    builtin and then its argument prototype would still apply.  */
5115 char i386_set_ldt ();
5116 int
5117 main ()
5118 {
5119 i386_set_ldt ();
5120   ;
5121   return 0;
5122 }
5123 _ACEOF
5124 rm -f conftest.$ac_objext conftest$ac_exeext
5125 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5126   (eval $ac_link) 2>&5
5127   ac_status=$?
5128   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5129   (exit $ac_status); } &&
5130          { ac_try='test -s conftest$ac_exeext'
5131   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5132   (eval $ac_try) 2>&5
5133   ac_status=$?
5134   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5135   (exit $ac_status); }; }; then
5136   ac_cv_lib_i386_i386_set_ldt=yes
5137 else
5138   echo "$as_me: failed program was:" >&5
5139 sed 's/^/| /' conftest.$ac_ext >&5
5140
5141 ac_cv_lib_i386_i386_set_ldt=no
5142 fi
5143 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5144 LIBS=$ac_check_lib_save_LIBS
5145 fi
5146 echo "$as_me:$LINENO: result: $ac_cv_lib_i386_i386_set_ldt" >&5
5147 echo "${ECHO_T}$ac_cv_lib_i386_i386_set_ldt" >&6
5148 if test $ac_cv_lib_i386_i386_set_ldt = yes; then
5149   cat >>confdefs.h <<_ACEOF
5150 #define HAVE_LIBI386 1
5151 _ACEOF
5152
5153   LIBS="-li386 $LIBS"
5154
5155 fi
5156
5157
5158 echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5
5159 echo $ECHO_N "checking for _oss_ioctl in -lossaudio... $ECHO_C" >&6
5160 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then
5161   echo $ECHO_N "(cached) $ECHO_C" >&6
5162 else
5163   ac_check_lib_save_LIBS=$LIBS
5164 LIBS="-lossaudio  $LIBS"
5165 cat >conftest.$ac_ext <<_ACEOF
5166 #line $LINENO "configure"
5167 /* confdefs.h.  */
5168 _ACEOF
5169 cat confdefs.h >>conftest.$ac_ext
5170 cat >>conftest.$ac_ext <<_ACEOF
5171 /* end confdefs.h.  */
5172
5173 /* Override any gcc2 internal prototype to avoid an error.  */
5174 #ifdef __cplusplus
5175 extern "C"
5176 #endif
5177 /* We use char because int might match the return type of a gcc2
5178    builtin and then its argument prototype would still apply.  */
5179 char _oss_ioctl ();
5180 int
5181 main ()
5182 {
5183 _oss_ioctl ();
5184   ;
5185   return 0;
5186 }
5187 _ACEOF
5188 rm -f conftest.$ac_objext conftest$ac_exeext
5189 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5190   (eval $ac_link) 2>&5
5191   ac_status=$?
5192   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5193   (exit $ac_status); } &&
5194          { ac_try='test -s conftest$ac_exeext'
5195   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5196   (eval $ac_try) 2>&5
5197   ac_status=$?
5198   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5199   (exit $ac_status); }; }; then
5200   ac_cv_lib_ossaudio__oss_ioctl=yes
5201 else
5202   echo "$as_me: failed program was:" >&5
5203 sed 's/^/| /' conftest.$ac_ext >&5
5204
5205 ac_cv_lib_ossaudio__oss_ioctl=no
5206 fi
5207 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5208 LIBS=$ac_check_lib_save_LIBS
5209 fi
5210 echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
5211 echo "${ECHO_T}$ac_cv_lib_ossaudio__oss_ioctl" >&6
5212 if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then
5213   cat >>confdefs.h <<_ACEOF
5214 #define HAVE_LIBOSSAUDIO 1
5215 _ACEOF
5216
5217   LIBS="-lossaudio $LIBS"
5218
5219 fi
5220
5221
5222 for ac_func in iswalnum
5223 do
5224 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5225 echo "$as_me:$LINENO: checking for $ac_func" >&5
5226 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5227 if eval "test \"\${$as_ac_var+set}\" = set"; then
5228   echo $ECHO_N "(cached) $ECHO_C" >&6
5229 else
5230   cat >conftest.$ac_ext <<_ACEOF
5231 #line $LINENO "configure"
5232 /* confdefs.h.  */
5233 _ACEOF
5234 cat confdefs.h >>conftest.$ac_ext
5235 cat >>conftest.$ac_ext <<_ACEOF
5236 /* end confdefs.h.  */
5237 /* System header to define __stub macros and hopefully few prototypes,
5238     which can conflict with char $ac_func (); below.
5239     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5240     <limits.h> exists even on freestanding compilers.  */
5241 #ifdef __STDC__
5242 # include <limits.h>
5243 #else
5244 # include <assert.h>
5245 #endif
5246 /* Override any gcc2 internal prototype to avoid an error.  */
5247 #ifdef __cplusplus
5248 extern "C"
5249 {
5250 #endif
5251 /* We use char because int might match the return type of a gcc2
5252    builtin and then its argument prototype would still apply.  */
5253 char $ac_func ();
5254 /* The GNU C library defines this for functions which it implements
5255     to always fail with ENOSYS.  Some functions are actually named
5256     something starting with __ and the normal name is an alias.  */
5257 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5258 choke me
5259 #else
5260 char (*f) () = $ac_func;
5261 #endif
5262 #ifdef __cplusplus
5263 }
5264 #endif
5265
5266 int
5267 main ()
5268 {
5269 return f != $ac_func;
5270   ;
5271   return 0;
5272 }
5273 _ACEOF
5274 rm -f conftest.$ac_objext conftest$ac_exeext
5275 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5276   (eval $ac_link) 2>&5
5277   ac_status=$?
5278   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5279   (exit $ac_status); } &&
5280          { ac_try='test -s conftest$ac_exeext'
5281   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5282   (eval $ac_try) 2>&5
5283   ac_status=$?
5284   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5285   (exit $ac_status); }; }; then
5286   eval "$as_ac_var=yes"
5287 else
5288   echo "$as_me: failed program was:" >&5
5289 sed 's/^/| /' conftest.$ac_ext >&5
5290
5291 eval "$as_ac_var=no"
5292 fi
5293 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5294 fi
5295 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5296 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5297 if test `eval echo '${'$as_ac_var'}'` = yes; then
5298   cat >>confdefs.h <<_ACEOF
5299 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5300 _ACEOF
5301
5302 else
5303
5304 echo "$as_me:$LINENO: checking for iswalnum in -lw" >&5
5305 echo $ECHO_N "checking for iswalnum in -lw... $ECHO_C" >&6
5306 if test "${ac_cv_lib_w_iswalnum+set}" = set; then
5307   echo $ECHO_N "(cached) $ECHO_C" >&6
5308 else
5309   ac_check_lib_save_LIBS=$LIBS
5310 LIBS="-lw  $LIBS"
5311 cat >conftest.$ac_ext <<_ACEOF
5312 #line $LINENO "configure"
5313 /* confdefs.h.  */
5314 _ACEOF
5315 cat confdefs.h >>conftest.$ac_ext
5316 cat >>conftest.$ac_ext <<_ACEOF
5317 /* end confdefs.h.  */
5318
5319 /* Override any gcc2 internal prototype to avoid an error.  */
5320 #ifdef __cplusplus
5321 extern "C"
5322 #endif
5323 /* We use char because int might match the return type of a gcc2
5324    builtin and then its argument prototype would still apply.  */
5325 char iswalnum ();
5326 int
5327 main ()
5328 {
5329 iswalnum ();
5330   ;
5331   return 0;
5332 }
5333 _ACEOF
5334 rm -f conftest.$ac_objext conftest$ac_exeext
5335 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5336   (eval $ac_link) 2>&5
5337   ac_status=$?
5338   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5339   (exit $ac_status); } &&
5340          { ac_try='test -s conftest$ac_exeext'
5341   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5342   (eval $ac_try) 2>&5
5343   ac_status=$?
5344   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5345   (exit $ac_status); }; }; then
5346   ac_cv_lib_w_iswalnum=yes
5347 else
5348   echo "$as_me: failed program was:" >&5
5349 sed 's/^/| /' conftest.$ac_ext >&5
5350
5351 ac_cv_lib_w_iswalnum=no
5352 fi
5353 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5354 LIBS=$ac_check_lib_save_LIBS
5355 fi
5356 echo "$as_me:$LINENO: result: $ac_cv_lib_w_iswalnum" >&5
5357 echo "${ECHO_T}$ac_cv_lib_w_iswalnum" >&6
5358 if test $ac_cv_lib_w_iswalnum = yes; then
5359   cat >>confdefs.h <<_ACEOF
5360 #define HAVE_LIBW 1
5361 _ACEOF
5362
5363   LIBS="-lw $LIBS"
5364
5365 fi
5366
5367 fi
5368 done
5369
5370
5371 for ac_func in gethostbyname
5372 do
5373 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5374 echo "$as_me:$LINENO: checking for $ac_func" >&5
5375 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5376 if eval "test \"\${$as_ac_var+set}\" = set"; then
5377   echo $ECHO_N "(cached) $ECHO_C" >&6
5378 else
5379   cat >conftest.$ac_ext <<_ACEOF
5380 #line $LINENO "configure"
5381 /* confdefs.h.  */
5382 _ACEOF
5383 cat confdefs.h >>conftest.$ac_ext
5384 cat >>conftest.$ac_ext <<_ACEOF
5385 /* end confdefs.h.  */
5386 /* System header to define __stub macros and hopefully few prototypes,
5387     which can conflict with char $ac_func (); below.
5388     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5389     <limits.h> exists even on freestanding compilers.  */
5390 #ifdef __STDC__
5391 # include <limits.h>
5392 #else
5393 # include <assert.h>
5394 #endif
5395 /* Override any gcc2 internal prototype to avoid an error.  */
5396 #ifdef __cplusplus
5397 extern "C"
5398 {
5399 #endif
5400 /* We use char because int might match the return type of a gcc2
5401    builtin and then its argument prototype would still apply.  */
5402 char $ac_func ();
5403 /* The GNU C library defines this for functions which it implements
5404     to always fail with ENOSYS.  Some functions are actually named
5405     something starting with __ and the normal name is an alias.  */
5406 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5407 choke me
5408 #else
5409 char (*f) () = $ac_func;
5410 #endif
5411 #ifdef __cplusplus
5412 }
5413 #endif
5414
5415 int
5416 main ()
5417 {
5418 return f != $ac_func;
5419   ;
5420   return 0;
5421 }
5422 _ACEOF
5423 rm -f conftest.$ac_objext conftest$ac_exeext
5424 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5425   (eval $ac_link) 2>&5
5426   ac_status=$?
5427   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5428   (exit $ac_status); } &&
5429          { ac_try='test -s conftest$ac_exeext'
5430   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5431   (eval $ac_try) 2>&5
5432   ac_status=$?
5433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5434   (exit $ac_status); }; }; then
5435   eval "$as_ac_var=yes"
5436 else
5437   echo "$as_me: failed program was:" >&5
5438 sed 's/^/| /' conftest.$ac_ext >&5
5439
5440 eval "$as_ac_var=no"
5441 fi
5442 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5443 fi
5444 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5445 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5446 if test `eval echo '${'$as_ac_var'}'` = yes; then
5447   cat >>confdefs.h <<_ACEOF
5448 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5449 _ACEOF
5450
5451 else
5452
5453 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
5454 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
5455 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
5456   echo $ECHO_N "(cached) $ECHO_C" >&6
5457 else
5458   ac_check_lib_save_LIBS=$LIBS
5459 LIBS="-lnsl  $LIBS"
5460 cat >conftest.$ac_ext <<_ACEOF
5461 #line $LINENO "configure"
5462 /* confdefs.h.  */
5463 _ACEOF
5464 cat confdefs.h >>conftest.$ac_ext
5465 cat >>conftest.$ac_ext <<_ACEOF
5466 /* end confdefs.h.  */
5467
5468 /* Override any gcc2 internal prototype to avoid an error.  */
5469 #ifdef __cplusplus
5470 extern "C"
5471 #endif
5472 /* We use char because int might match the return type of a gcc2
5473    builtin and then its argument prototype would still apply.  */
5474 char gethostbyname ();
5475 int
5476 main ()
5477 {
5478 gethostbyname ();
5479   ;
5480   return 0;
5481 }
5482 _ACEOF
5483 rm -f conftest.$ac_objext conftest$ac_exeext
5484 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5485   (eval $ac_link) 2>&5
5486   ac_status=$?
5487   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5488   (exit $ac_status); } &&
5489          { ac_try='test -s conftest$ac_exeext'
5490   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5491   (eval $ac_try) 2>&5
5492   ac_status=$?
5493   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5494   (exit $ac_status); }; }; then
5495   ac_cv_lib_nsl_gethostbyname=yes
5496 else
5497   echo "$as_me: failed program was:" >&5
5498 sed 's/^/| /' conftest.$ac_ext >&5
5499
5500 ac_cv_lib_nsl_gethostbyname=no
5501 fi
5502 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5503 LIBS=$ac_check_lib_save_LIBS
5504 fi
5505 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
5506 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
5507 if test $ac_cv_lib_nsl_gethostbyname = yes; then
5508   cat >>confdefs.h <<_ACEOF
5509 #define HAVE_LIBNSL 1
5510 _ACEOF
5511
5512   LIBS="-lnsl $LIBS"
5513
5514 fi
5515
5516 fi
5517 done
5518
5519
5520 for ac_func in connect
5521 do
5522 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5523 echo "$as_me:$LINENO: checking for $ac_func" >&5
5524 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5525 if eval "test \"\${$as_ac_var+set}\" = set"; then
5526   echo $ECHO_N "(cached) $ECHO_C" >&6
5527 else
5528   cat >conftest.$ac_ext <<_ACEOF
5529 #line $LINENO "configure"
5530 /* confdefs.h.  */
5531 _ACEOF
5532 cat confdefs.h >>conftest.$ac_ext
5533 cat >>conftest.$ac_ext <<_ACEOF
5534 /* end confdefs.h.  */
5535 /* System header to define __stub macros and hopefully few prototypes,
5536     which can conflict with char $ac_func (); below.
5537     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5538     <limits.h> exists even on freestanding compilers.  */
5539 #ifdef __STDC__
5540 # include <limits.h>
5541 #else
5542 # include <assert.h>
5543 #endif
5544 /* Override any gcc2 internal prototype to avoid an error.  */
5545 #ifdef __cplusplus
5546 extern "C"
5547 {
5548 #endif
5549 /* We use char because int might match the return type of a gcc2
5550    builtin and then its argument prototype would still apply.  */
5551 char $ac_func ();
5552 /* The GNU C library defines this for functions which it implements
5553     to always fail with ENOSYS.  Some functions are actually named
5554     something starting with __ and the normal name is an alias.  */
5555 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5556 choke me
5557 #else
5558 char (*f) () = $ac_func;
5559 #endif
5560 #ifdef __cplusplus
5561 }
5562 #endif
5563
5564 int
5565 main ()
5566 {
5567 return f != $ac_func;
5568   ;
5569   return 0;
5570 }
5571 _ACEOF
5572 rm -f conftest.$ac_objext conftest$ac_exeext
5573 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5574   (eval $ac_link) 2>&5
5575   ac_status=$?
5576   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5577   (exit $ac_status); } &&
5578          { ac_try='test -s conftest$ac_exeext'
5579   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5580   (eval $ac_try) 2>&5
5581   ac_status=$?
5582   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5583   (exit $ac_status); }; }; then
5584   eval "$as_ac_var=yes"
5585 else
5586   echo "$as_me: failed program was:" >&5
5587 sed 's/^/| /' conftest.$ac_ext >&5
5588
5589 eval "$as_ac_var=no"
5590 fi
5591 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5592 fi
5593 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5594 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5595 if test `eval echo '${'$as_ac_var'}'` = yes; then
5596   cat >>confdefs.h <<_ACEOF
5597 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5598 _ACEOF
5599
5600 else
5601
5602 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
5603 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
5604 if test "${ac_cv_lib_socket_connect+set}" = set; then
5605   echo $ECHO_N "(cached) $ECHO_C" >&6
5606 else
5607   ac_check_lib_save_LIBS=$LIBS
5608 LIBS="-lsocket  $LIBS"
5609 cat >conftest.$ac_ext <<_ACEOF
5610 #line $LINENO "configure"
5611 /* confdefs.h.  */
5612 _ACEOF
5613 cat confdefs.h >>conftest.$ac_ext
5614 cat >>conftest.$ac_ext <<_ACEOF
5615 /* end confdefs.h.  */
5616
5617 /* Override any gcc2 internal prototype to avoid an error.  */
5618 #ifdef __cplusplus
5619 extern "C"
5620 #endif
5621 /* We use char because int might match the return type of a gcc2
5622    builtin and then its argument prototype would still apply.  */
5623 char connect ();
5624 int
5625 main ()
5626 {
5627 connect ();
5628   ;
5629   return 0;
5630 }
5631 _ACEOF
5632 rm -f conftest.$ac_objext conftest$ac_exeext
5633 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5634   (eval $ac_link) 2>&5
5635   ac_status=$?
5636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5637   (exit $ac_status); } &&
5638          { ac_try='test -s conftest$ac_exeext'
5639   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5640   (eval $ac_try) 2>&5
5641   ac_status=$?
5642   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5643   (exit $ac_status); }; }; then
5644   ac_cv_lib_socket_connect=yes
5645 else
5646   echo "$as_me: failed program was:" >&5
5647 sed 's/^/| /' conftest.$ac_ext >&5
5648
5649 ac_cv_lib_socket_connect=no
5650 fi
5651 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5652 LIBS=$ac_check_lib_save_LIBS
5653 fi
5654 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
5655 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
5656 if test $ac_cv_lib_socket_connect = yes; then
5657   cat >>confdefs.h <<_ACEOF
5658 #define HAVE_LIBSOCKET 1
5659 _ACEOF
5660
5661   LIBS="-lsocket $LIBS"
5662
5663 fi
5664
5665 fi
5666 done
5667
5668
5669 for ac_func in inet_aton
5670 do
5671 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5672 echo "$as_me:$LINENO: checking for $ac_func" >&5
5673 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5674 if eval "test \"\${$as_ac_var+set}\" = set"; then
5675   echo $ECHO_N "(cached) $ECHO_C" >&6
5676 else
5677   cat >conftest.$ac_ext <<_ACEOF
5678 #line $LINENO "configure"
5679 /* confdefs.h.  */
5680 _ACEOF
5681 cat confdefs.h >>conftest.$ac_ext
5682 cat >>conftest.$ac_ext <<_ACEOF
5683 /* end confdefs.h.  */
5684 /* System header to define __stub macros and hopefully few prototypes,
5685     which can conflict with char $ac_func (); below.
5686     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5687     <limits.h> exists even on freestanding compilers.  */
5688 #ifdef __STDC__
5689 # include <limits.h>
5690 #else
5691 # include <assert.h>
5692 #endif
5693 /* Override any gcc2 internal prototype to avoid an error.  */
5694 #ifdef __cplusplus
5695 extern "C"
5696 {
5697 #endif
5698 /* We use char because int might match the return type of a gcc2
5699    builtin and then its argument prototype would still apply.  */
5700 char $ac_func ();
5701 /* The GNU C library defines this for functions which it implements
5702     to always fail with ENOSYS.  Some functions are actually named
5703     something starting with __ and the normal name is an alias.  */
5704 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5705 choke me
5706 #else
5707 char (*f) () = $ac_func;
5708 #endif
5709 #ifdef __cplusplus
5710 }
5711 #endif
5712
5713 int
5714 main ()
5715 {
5716 return f != $ac_func;
5717   ;
5718   return 0;
5719 }
5720 _ACEOF
5721 rm -f conftest.$ac_objext conftest$ac_exeext
5722 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5723   (eval $ac_link) 2>&5
5724   ac_status=$?
5725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5726   (exit $ac_status); } &&
5727          { ac_try='test -s conftest$ac_exeext'
5728   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5729   (eval $ac_try) 2>&5
5730   ac_status=$?
5731   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5732   (exit $ac_status); }; }; then
5733   eval "$as_ac_var=yes"
5734 else
5735   echo "$as_me: failed program was:" >&5
5736 sed 's/^/| /' conftest.$ac_ext >&5
5737
5738 eval "$as_ac_var=no"
5739 fi
5740 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5741 fi
5742 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5743 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5744 if test `eval echo '${'$as_ac_var'}'` = yes; then
5745   cat >>confdefs.h <<_ACEOF
5746 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5747 _ACEOF
5748
5749 else
5750
5751 echo "$as_me:$LINENO: checking for inet_aton in -lresolv" >&5
5752 echo $ECHO_N "checking for inet_aton in -lresolv... $ECHO_C" >&6
5753 if test "${ac_cv_lib_resolv_inet_aton+set}" = set; then
5754   echo $ECHO_N "(cached) $ECHO_C" >&6
5755 else
5756   ac_check_lib_save_LIBS=$LIBS
5757 LIBS="-lresolv  $LIBS"
5758 cat >conftest.$ac_ext <<_ACEOF
5759 #line $LINENO "configure"
5760 /* confdefs.h.  */
5761 _ACEOF
5762 cat confdefs.h >>conftest.$ac_ext
5763 cat >>conftest.$ac_ext <<_ACEOF
5764 /* end confdefs.h.  */
5765
5766 /* Override any gcc2 internal prototype to avoid an error.  */
5767 #ifdef __cplusplus
5768 extern "C"
5769 #endif
5770 /* We use char because int might match the return type of a gcc2
5771    builtin and then its argument prototype would still apply.  */
5772 char inet_aton ();
5773 int
5774 main ()
5775 {
5776 inet_aton ();
5777   ;
5778   return 0;
5779 }
5780 _ACEOF
5781 rm -f conftest.$ac_objext conftest$ac_exeext
5782 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5783   (eval $ac_link) 2>&5
5784   ac_status=$?
5785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5786   (exit $ac_status); } &&
5787          { ac_try='test -s conftest$ac_exeext'
5788   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5789   (eval $ac_try) 2>&5
5790   ac_status=$?
5791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5792   (exit $ac_status); }; }; then
5793   ac_cv_lib_resolv_inet_aton=yes
5794 else
5795   echo "$as_me: failed program was:" >&5
5796 sed 's/^/| /' conftest.$ac_ext >&5
5797
5798 ac_cv_lib_resolv_inet_aton=no
5799 fi
5800 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5801 LIBS=$ac_check_lib_save_LIBS
5802 fi
5803 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_aton" >&5
5804 echo "${ECHO_T}$ac_cv_lib_resolv_inet_aton" >&6
5805 if test $ac_cv_lib_resolv_inet_aton = yes; then
5806   cat >>confdefs.h <<_ACEOF
5807 #define HAVE_LIBRESOLV 1
5808 _ACEOF
5809
5810   LIBS="-lresolv $LIBS"
5811
5812 fi
5813
5814 fi
5815 done
5816
5817
5818 echo "$as_me:$LINENO: checking for _xpg4_setrunelocale in -lxpg4" >&5
5819 echo $ECHO_N "checking for _xpg4_setrunelocale in -lxpg4... $ECHO_C" >&6
5820 if test "${ac_cv_lib_xpg4__xpg4_setrunelocale+set}" = set; then
5821   echo $ECHO_N "(cached) $ECHO_C" >&6
5822 else
5823   ac_check_lib_save_LIBS=$LIBS
5824 LIBS="-lxpg4  $LIBS"
5825 cat >conftest.$ac_ext <<_ACEOF
5826 #line $LINENO "configure"
5827 /* confdefs.h.  */
5828 _ACEOF
5829 cat confdefs.h >>conftest.$ac_ext
5830 cat >>conftest.$ac_ext <<_ACEOF
5831 /* end confdefs.h.  */
5832
5833 /* Override any gcc2 internal prototype to avoid an error.  */
5834 #ifdef __cplusplus
5835 extern "C"
5836 #endif
5837 /* We use char because int might match the return type of a gcc2
5838    builtin and then its argument prototype would still apply.  */
5839 char _xpg4_setrunelocale ();
5840 int
5841 main ()
5842 {
5843 _xpg4_setrunelocale ();
5844   ;
5845   return 0;
5846 }
5847 _ACEOF
5848 rm -f conftest.$ac_objext conftest$ac_exeext
5849 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5850   (eval $ac_link) 2>&5
5851   ac_status=$?
5852   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5853   (exit $ac_status); } &&
5854          { ac_try='test -s conftest$ac_exeext'
5855   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5856   (eval $ac_try) 2>&5
5857   ac_status=$?
5858   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5859   (exit $ac_status); }; }; then
5860   ac_cv_lib_xpg4__xpg4_setrunelocale=yes
5861 else
5862   echo "$as_me: failed program was:" >&5
5863 sed 's/^/| /' conftest.$ac_ext >&5
5864
5865 ac_cv_lib_xpg4__xpg4_setrunelocale=no
5866 fi
5867 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5868 LIBS=$ac_check_lib_save_LIBS
5869 fi
5870 echo "$as_me:$LINENO: result: $ac_cv_lib_xpg4__xpg4_setrunelocale" >&5
5871 echo "${ECHO_T}$ac_cv_lib_xpg4__xpg4_setrunelocale" >&6
5872 if test $ac_cv_lib_xpg4__xpg4_setrunelocale = yes; then
5873   cat >>confdefs.h <<_ACEOF
5874 #define HAVE_LIBXPG4 1
5875 _ACEOF
5876
5877   LIBS="-lxpg4 $LIBS"
5878
5879 fi
5880
5881 echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
5882 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6
5883 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
5884   echo $ECHO_N "(cached) $ECHO_C" >&6
5885 else
5886   ac_check_lib_save_LIBS=$LIBS
5887 LIBS="-lpthread  $LIBS"
5888 cat >conftest.$ac_ext <<_ACEOF
5889 #line $LINENO "configure"
5890 /* confdefs.h.  */
5891 _ACEOF
5892 cat confdefs.h >>conftest.$ac_ext
5893 cat >>conftest.$ac_ext <<_ACEOF
5894 /* end confdefs.h.  */
5895
5896 /* Override any gcc2 internal prototype to avoid an error.  */
5897 #ifdef __cplusplus
5898 extern "C"
5899 #endif
5900 /* We use char because int might match the return type of a gcc2
5901    builtin and then its argument prototype would still apply.  */
5902 char pthread_create ();
5903 int
5904 main ()
5905 {
5906 pthread_create ();
5907   ;
5908   return 0;
5909 }
5910 _ACEOF
5911 rm -f conftest.$ac_objext conftest$ac_exeext
5912 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5913   (eval $ac_link) 2>&5
5914   ac_status=$?
5915   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5916   (exit $ac_status); } &&
5917          { ac_try='test -s conftest$ac_exeext'
5918   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5919   (eval $ac_try) 2>&5
5920   ac_status=$?
5921   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5922   (exit $ac_status); }; }; then
5923   ac_cv_lib_pthread_pthread_create=yes
5924 else
5925   echo "$as_me: failed program was:" >&5
5926 sed 's/^/| /' conftest.$ac_ext >&5
5927
5928 ac_cv_lib_pthread_pthread_create=no
5929 fi
5930 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5931 LIBS=$ac_check_lib_save_LIBS
5932 fi
5933 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
5934 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6
5935 if test $ac_cv_lib_pthread_pthread_create = yes; then
5936   LIBPTHREAD="-lpthread"
5937
5938 fi
5939
5940
5941 JPEGLIB=""
5942
5943 echo "$as_me:$LINENO: checking for egrep" >&5
5944 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
5945 if test "${ac_cv_prog_egrep+set}" = set; then
5946   echo $ECHO_N "(cached) $ECHO_C" >&6
5947 else
5948   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
5949     then ac_cv_prog_egrep='grep -E'
5950     else ac_cv_prog_egrep='egrep'
5951     fi
5952 fi
5953 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
5954 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
5955  EGREP=$ac_cv_prog_egrep
5956
5957
5958 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5959 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5960 if test "${ac_cv_header_stdc+set}" = set; then
5961   echo $ECHO_N "(cached) $ECHO_C" >&6
5962 else
5963   cat >conftest.$ac_ext <<_ACEOF
5964 #line $LINENO "configure"
5965 /* confdefs.h.  */
5966 _ACEOF
5967 cat confdefs.h >>conftest.$ac_ext
5968 cat >>conftest.$ac_ext <<_ACEOF
5969 /* end confdefs.h.  */
5970 #include <stdlib.h>
5971 #include <stdarg.h>
5972 #include <string.h>
5973 #include <float.h>
5974
5975 int
5976 main ()
5977 {
5978
5979   ;
5980   return 0;
5981 }
5982 _ACEOF
5983 rm -f conftest.$ac_objext
5984 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5985   (eval $ac_compile) 2>&5
5986   ac_status=$?
5987   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5988   (exit $ac_status); } &&
5989          { ac_try='test -s conftest.$ac_objext'
5990   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5991   (eval $ac_try) 2>&5
5992   ac_status=$?
5993   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5994   (exit $ac_status); }; }; then
5995   ac_cv_header_stdc=yes
5996 else
5997   echo "$as_me: failed program was:" >&5
5998 sed 's/^/| /' conftest.$ac_ext >&5
5999
6000 ac_cv_header_stdc=no
6001 fi
6002 rm -f conftest.$ac_objext conftest.$ac_ext
6003
6004 if test $ac_cv_header_stdc = yes; then
6005   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6006   cat >conftest.$ac_ext <<_ACEOF
6007 #line $LINENO "configure"
6008 /* confdefs.h.  */
6009 _ACEOF
6010 cat confdefs.h >>conftest.$ac_ext
6011 cat >>conftest.$ac_ext <<_ACEOF
6012 /* end confdefs.h.  */
6013 #include <string.h>
6014
6015 _ACEOF
6016 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6017   $EGREP "memchr" >/dev/null 2>&1; then
6018   :
6019 else
6020   ac_cv_header_stdc=no
6021 fi
6022 rm -f conftest*
6023
6024 fi
6025
6026 if test $ac_cv_header_stdc = yes; then
6027   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6028   cat >conftest.$ac_ext <<_ACEOF
6029 #line $LINENO "configure"
6030 /* confdefs.h.  */
6031 _ACEOF
6032 cat confdefs.h >>conftest.$ac_ext
6033 cat >>conftest.$ac_ext <<_ACEOF
6034 /* end confdefs.h.  */
6035 #include <stdlib.h>
6036
6037 _ACEOF
6038 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6039   $EGREP "free" >/dev/null 2>&1; then
6040   :
6041 else
6042   ac_cv_header_stdc=no
6043 fi
6044 rm -f conftest*
6045
6046 fi
6047
6048 if test $ac_cv_header_stdc = yes; then
6049   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6050   if test "$cross_compiling" = yes; then
6051   :
6052 else
6053   cat >conftest.$ac_ext <<_ACEOF
6054 #line $LINENO "configure"
6055 /* confdefs.h.  */
6056 _ACEOF
6057 cat confdefs.h >>conftest.$ac_ext
6058 cat >>conftest.$ac_ext <<_ACEOF
6059 /* end confdefs.h.  */
6060 #include <ctype.h>
6061 #if ((' ' & 0x0FF) == 0x020)
6062 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6063 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6064 #else
6065 # define ISLOWER(c) \
6066                    (('a' <= (c) && (c) <= 'i') \
6067                      || ('j' <= (c) && (c) <= 'r') \
6068                      || ('s' <= (c) && (c) <= 'z'))
6069 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6070 #endif
6071
6072 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6073 int
6074 main ()
6075 {
6076   int i;
6077   for (i = 0; i < 256; i++)
6078     if (XOR (islower (i), ISLOWER (i))
6079         || toupper (i) != TOUPPER (i))
6080       exit(2);
6081   exit (0);
6082 }
6083 _ACEOF
6084 rm -f conftest$ac_exeext
6085 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6086   (eval $ac_link) 2>&5
6087   ac_status=$?
6088   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6089   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6090   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6091   (eval $ac_try) 2>&5
6092   ac_status=$?
6093   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6094   (exit $ac_status); }; }; then
6095   :
6096 else
6097   echo "$as_me: program exited with status $ac_status" >&5
6098 echo "$as_me: failed program was:" >&5
6099 sed 's/^/| /' conftest.$ac_ext >&5
6100
6101 ( exit $ac_status )
6102 ac_cv_header_stdc=no
6103 fi
6104 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6105 fi
6106 fi
6107 fi
6108 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6109 echo "${ECHO_T}$ac_cv_header_stdc" >&6
6110 if test $ac_cv_header_stdc = yes; then
6111
6112 cat >>confdefs.h <<\_ACEOF
6113 #define STDC_HEADERS 1
6114 _ACEOF
6115
6116 fi
6117
6118 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6119
6120
6121
6122
6123
6124
6125
6126
6127
6128 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6129                   inttypes.h stdint.h unistd.h
6130 do
6131 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6132 echo "$as_me:$LINENO: checking for $ac_header" >&5
6133 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6134 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6135   echo $ECHO_N "(cached) $ECHO_C" >&6
6136 else
6137   cat >conftest.$ac_ext <<_ACEOF
6138 #line $LINENO "configure"
6139 /* confdefs.h.  */
6140 _ACEOF
6141 cat confdefs.h >>conftest.$ac_ext
6142 cat >>conftest.$ac_ext <<_ACEOF
6143 /* end confdefs.h.  */
6144 $ac_includes_default
6145
6146 #include <$ac_header>
6147 _ACEOF
6148 rm -f conftest.$ac_objext
6149 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6150   (eval $ac_compile) 2>&5
6151   ac_status=$?
6152   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6153   (exit $ac_status); } &&
6154          { ac_try='test -s conftest.$ac_objext'
6155   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6156   (eval $ac_try) 2>&5
6157   ac_status=$?
6158   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6159   (exit $ac_status); }; }; then
6160   eval "$as_ac_Header=yes"
6161 else
6162   echo "$as_me: failed program was:" >&5
6163 sed 's/^/| /' conftest.$ac_ext >&5
6164
6165 eval "$as_ac_Header=no"
6166 fi
6167 rm -f conftest.$ac_objext conftest.$ac_ext
6168 fi
6169 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6170 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6171 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6172   cat >>confdefs.h <<_ACEOF
6173 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6174 _ACEOF
6175
6176 fi
6177
6178 done
6179
6180
6181
6182 for ac_header in jpeglib.h
6183 do
6184 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6185 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6186   echo "$as_me:$LINENO: checking for $ac_header" >&5
6187 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6188 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6189   echo $ECHO_N "(cached) $ECHO_C" >&6
6190 fi
6191 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6192 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6193 else
6194   # Is the header compilable?
6195 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6196 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6197 cat >conftest.$ac_ext <<_ACEOF
6198 #line $LINENO "configure"
6199 /* confdefs.h.  */
6200 _ACEOF
6201 cat confdefs.h >>conftest.$ac_ext
6202 cat >>conftest.$ac_ext <<_ACEOF
6203 /* end confdefs.h.  */
6204 $ac_includes_default
6205 #include <$ac_header>
6206 _ACEOF
6207 rm -f conftest.$ac_objext
6208 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6209   (eval $ac_compile) 2>&5
6210   ac_status=$?
6211   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6212   (exit $ac_status); } &&
6213          { ac_try='test -s conftest.$ac_objext'
6214   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6215   (eval $ac_try) 2>&5
6216   ac_status=$?
6217   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6218   (exit $ac_status); }; }; then
6219   ac_header_compiler=yes
6220 else
6221   echo "$as_me: failed program was:" >&5
6222 sed 's/^/| /' conftest.$ac_ext >&5
6223
6224 ac_header_compiler=no
6225 fi
6226 rm -f conftest.$ac_objext conftest.$ac_ext
6227 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6228 echo "${ECHO_T}$ac_header_compiler" >&6
6229
6230 # Is the header present?
6231 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6232 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6233 cat >conftest.$ac_ext <<_ACEOF
6234 #line $LINENO "configure"
6235 /* confdefs.h.  */
6236 _ACEOF
6237 cat confdefs.h >>conftest.$ac_ext
6238 cat >>conftest.$ac_ext <<_ACEOF
6239 /* end confdefs.h.  */
6240 #include <$ac_header>
6241 _ACEOF
6242 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6243   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6244   ac_status=$?
6245   grep -v '^ *+' conftest.er1 >conftest.err
6246   rm -f conftest.er1
6247   cat conftest.err >&5
6248   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6249   (exit $ac_status); } >/dev/null; then
6250   if test -s conftest.err; then
6251     ac_cpp_err=$ac_c_preproc_warn_flag
6252   else
6253     ac_cpp_err=
6254   fi
6255 else
6256   ac_cpp_err=yes
6257 fi
6258 if test -z "$ac_cpp_err"; then
6259   ac_header_preproc=yes
6260 else
6261   echo "$as_me: failed program was:" >&5
6262 sed 's/^/| /' conftest.$ac_ext >&5
6263
6264   ac_header_preproc=no
6265 fi
6266 rm -f conftest.err conftest.$ac_ext
6267 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6268 echo "${ECHO_T}$ac_header_preproc" >&6
6269
6270 # So?  What about this header?
6271 case $ac_header_compiler:$ac_header_preproc in
6272   yes:no )
6273     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6274 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6275     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6276 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6277     (
6278       cat <<\_ASBOX
6279 ## ------------------------------------ ##
6280 ## Report this to bug-autoconf@gnu.org. ##
6281 ## ------------------------------------ ##
6282 _ASBOX
6283     ) |
6284       sed "s/^/$as_me: WARNING:     /" >&2
6285     ;;
6286   no:yes )
6287     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6288 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6289     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6290 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6291     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6292 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6293     (
6294       cat <<\_ASBOX
6295 ## ------------------------------------ ##
6296 ## Report this to bug-autoconf@gnu.org. ##
6297 ## ------------------------------------ ##
6298 _ASBOX
6299     ) |
6300       sed "s/^/$as_me: WARNING:     /" >&2
6301     ;;
6302 esac
6303 echo "$as_me:$LINENO: checking for $ac_header" >&5
6304 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6305 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6306   echo $ECHO_N "(cached) $ECHO_C" >&6
6307 else
6308   eval "$as_ac_Header=$ac_header_preproc"
6309 fi
6310 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6311 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6312
6313 fi
6314 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6315   cat >>confdefs.h <<_ACEOF
6316 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6317 _ACEOF
6318  echo "$as_me:$LINENO: checking for jpeg_start_decompress in -ljpeg" >&5
6319 echo $ECHO_N "checking for jpeg_start_decompress in -ljpeg... $ECHO_C" >&6
6320 if test "${ac_cv_lib_jpeg_jpeg_start_decompress+set}" = set; then
6321   echo $ECHO_N "(cached) $ECHO_C" >&6
6322 else
6323   ac_check_lib_save_LIBS=$LIBS
6324 LIBS="-ljpeg  $LIBS"
6325 cat >conftest.$ac_ext <<_ACEOF
6326 #line $LINENO "configure"
6327 /* confdefs.h.  */
6328 _ACEOF
6329 cat confdefs.h >>conftest.$ac_ext
6330 cat >>conftest.$ac_ext <<_ACEOF
6331 /* end confdefs.h.  */
6332
6333 /* Override any gcc2 internal prototype to avoid an error.  */
6334 #ifdef __cplusplus
6335 extern "C"
6336 #endif
6337 /* We use char because int might match the return type of a gcc2
6338    builtin and then its argument prototype would still apply.  */
6339 char jpeg_start_decompress ();
6340 int
6341 main ()
6342 {
6343 jpeg_start_decompress ();
6344   ;
6345   return 0;
6346 }
6347 _ACEOF
6348 rm -f conftest.$ac_objext conftest$ac_exeext
6349 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6350   (eval $ac_link) 2>&5
6351   ac_status=$?
6352   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6353   (exit $ac_status); } &&
6354          { ac_try='test -s conftest$ac_exeext'
6355   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6356   (eval $ac_try) 2>&5
6357   ac_status=$?
6358   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6359   (exit $ac_status); }; }; then
6360   ac_cv_lib_jpeg_jpeg_start_decompress=yes
6361 else
6362   echo "$as_me: failed program was:" >&5
6363 sed 's/^/| /' conftest.$ac_ext >&5
6364
6365 ac_cv_lib_jpeg_jpeg_start_decompress=no
6366 fi
6367 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6368 LIBS=$ac_check_lib_save_LIBS
6369 fi
6370 echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_start_decompress" >&5
6371 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_start_decompress" >&6
6372 if test $ac_cv_lib_jpeg_jpeg_start_decompress = yes; then
6373
6374 cat >>confdefs.h <<\_ACEOF
6375 #define HAVE_LIBJPEG 1
6376 _ACEOF
6377
6378         JPEGLIB="-ljpeg"
6379
6380 fi
6381
6382
6383 fi
6384
6385 done
6386
6387
6388 GIFLIB=""
6389
6390
6391 for ac_header in gif_lib.h
6392 do
6393 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6394 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6395   echo "$as_me:$LINENO: checking for $ac_header" >&5
6396 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6397 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6398   echo $ECHO_N "(cached) $ECHO_C" >&6
6399 fi
6400 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6401 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6402 else
6403   # Is the header compilable?
6404 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6405 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6406 cat >conftest.$ac_ext <<_ACEOF
6407 #line $LINENO "configure"
6408 /* confdefs.h.  */
6409 _ACEOF
6410 cat confdefs.h >>conftest.$ac_ext
6411 cat >>conftest.$ac_ext <<_ACEOF
6412 /* end confdefs.h.  */
6413 $ac_includes_default
6414 #include <$ac_header>
6415 _ACEOF
6416 rm -f conftest.$ac_objext
6417 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6418   (eval $ac_compile) 2>&5
6419   ac_status=$?
6420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6421   (exit $ac_status); } &&
6422          { ac_try='test -s conftest.$ac_objext'
6423   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6424   (eval $ac_try) 2>&5
6425   ac_status=$?
6426   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6427   (exit $ac_status); }; }; then
6428   ac_header_compiler=yes
6429 else
6430   echo "$as_me: failed program was:" >&5
6431 sed 's/^/| /' conftest.$ac_ext >&5
6432
6433 ac_header_compiler=no
6434 fi
6435 rm -f conftest.$ac_objext conftest.$ac_ext
6436 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6437 echo "${ECHO_T}$ac_header_compiler" >&6
6438
6439 # Is the header present?
6440 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6441 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6442 cat >conftest.$ac_ext <<_ACEOF
6443 #line $LINENO "configure"
6444 /* confdefs.h.  */
6445 _ACEOF
6446 cat confdefs.h >>conftest.$ac_ext
6447 cat >>conftest.$ac_ext <<_ACEOF
6448 /* end confdefs.h.  */
6449 #include <$ac_header>
6450 _ACEOF
6451 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6452   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6453   ac_status=$?
6454   grep -v '^ *+' conftest.er1 >conftest.err
6455   rm -f conftest.er1
6456   cat conftest.err >&5
6457   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6458   (exit $ac_status); } >/dev/null; then
6459   if test -s conftest.err; then
6460     ac_cpp_err=$ac_c_preproc_warn_flag
6461   else
6462     ac_cpp_err=
6463   fi
6464 else
6465   ac_cpp_err=yes
6466 fi
6467 if test -z "$ac_cpp_err"; then
6468   ac_header_preproc=yes
6469 else
6470   echo "$as_me: failed program was:" >&5
6471 sed 's/^/| /' conftest.$ac_ext >&5
6472
6473   ac_header_preproc=no
6474 fi
6475 rm -f conftest.err conftest.$ac_ext
6476 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6477 echo "${ECHO_T}$ac_header_preproc" >&6
6478
6479 # So?  What about this header?
6480 case $ac_header_compiler:$ac_header_preproc in
6481   yes:no )
6482     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6483 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6484     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6485 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6486     (
6487       cat <<\_ASBOX
6488 ## ------------------------------------ ##
6489 ## Report this to bug-autoconf@gnu.org. ##
6490 ## ------------------------------------ ##
6491 _ASBOX
6492     ) |
6493       sed "s/^/$as_me: WARNING:     /" >&2
6494     ;;
6495   no:yes )
6496     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6497 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6498     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6499 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6500     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6501 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6502     (
6503       cat <<\_ASBOX
6504 ## ------------------------------------ ##
6505 ## Report this to bug-autoconf@gnu.org. ##
6506 ## ------------------------------------ ##
6507 _ASBOX
6508     ) |
6509       sed "s/^/$as_me: WARNING:     /" >&2
6510     ;;
6511 esac
6512 echo "$as_me:$LINENO: checking for $ac_header" >&5
6513 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6514 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6515   echo $ECHO_N "(cached) $ECHO_C" >&6
6516 else
6517   eval "$as_ac_Header=$ac_header_preproc"
6518 fi
6519 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6520 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6521
6522 fi
6523 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6524   cat >>confdefs.h <<_ACEOF
6525 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6526 _ACEOF
6527  echo "$as_me:$LINENO: checking for DGifOpen in -lungif" >&5
6528 echo $ECHO_N "checking for DGifOpen in -lungif... $ECHO_C" >&6
6529 if test "${ac_cv_lib_ungif_DGifOpen+set}" = set; then
6530   echo $ECHO_N "(cached) $ECHO_C" >&6
6531 else
6532   ac_check_lib_save_LIBS=$LIBS
6533 LIBS="-lungif  $LIBS"
6534 cat >conftest.$ac_ext <<_ACEOF
6535 #line $LINENO "configure"
6536 /* confdefs.h.  */
6537 _ACEOF
6538 cat confdefs.h >>conftest.$ac_ext
6539 cat >>conftest.$ac_ext <<_ACEOF
6540 /* end confdefs.h.  */
6541
6542 /* Override any gcc2 internal prototype to avoid an error.  */
6543 #ifdef __cplusplus
6544 extern "C"
6545 #endif
6546 /* We use char because int might match the return type of a gcc2
6547    builtin and then its argument prototype would still apply.  */
6548 char DGifOpen ();
6549 int
6550 main ()
6551 {
6552 DGifOpen ();
6553   ;
6554   return 0;
6555 }
6556 _ACEOF
6557 rm -f conftest.$ac_objext conftest$ac_exeext
6558 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6559   (eval $ac_link) 2>&5
6560   ac_status=$?
6561   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6562   (exit $ac_status); } &&
6563          { ac_try='test -s conftest$ac_exeext'
6564   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6565   (eval $ac_try) 2>&5
6566   ac_status=$?
6567   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6568   (exit $ac_status); }; }; then
6569   ac_cv_lib_ungif_DGifOpen=yes
6570 else
6571   echo "$as_me: failed program was:" >&5
6572 sed 's/^/| /' conftest.$ac_ext >&5
6573
6574 ac_cv_lib_ungif_DGifOpen=no
6575 fi
6576 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6577 LIBS=$ac_check_lib_save_LIBS
6578 fi
6579 echo "$as_me:$LINENO: result: $ac_cv_lib_ungif_DGifOpen" >&5
6580 echo "${ECHO_T}$ac_cv_lib_ungif_DGifOpen" >&6
6581 if test $ac_cv_lib_ungif_DGifOpen = yes; then
6582
6583 cat >>confdefs.h <<\_ACEOF
6584 #define HAVE_LIBGIF 1
6585 _ACEOF
6586
6587          GIFLIB="-lungif"
6588 else
6589   echo "$as_me:$LINENO: checking for DGifOpen in -lgif" >&5
6590 echo $ECHO_N "checking for DGifOpen in -lgif... $ECHO_C" >&6
6591 if test "${ac_cv_lib_gif_DGifOpen+set}" = set; then
6592   echo $ECHO_N "(cached) $ECHO_C" >&6
6593 else
6594   ac_check_lib_save_LIBS=$LIBS
6595 LIBS="-lgif  $LIBS"
6596 cat >conftest.$ac_ext <<_ACEOF
6597 #line $LINENO "configure"
6598 /* confdefs.h.  */
6599 _ACEOF
6600 cat confdefs.h >>conftest.$ac_ext
6601 cat >>conftest.$ac_ext <<_ACEOF
6602 /* end confdefs.h.  */
6603
6604 /* Override any gcc2 internal prototype to avoid an error.  */
6605 #ifdef __cplusplus
6606 extern "C"
6607 #endif
6608 /* We use char because int might match the return type of a gcc2
6609    builtin and then its argument prototype would still apply.  */
6610 char DGifOpen ();
6611 int
6612 main ()
6613 {
6614 DGifOpen ();
6615   ;
6616   return 0;
6617 }
6618 _ACEOF
6619 rm -f conftest.$ac_objext conftest$ac_exeext
6620 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6621   (eval $ac_link) 2>&5
6622   ac_status=$?
6623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6624   (exit $ac_status); } &&
6625          { ac_try='test -s conftest$ac_exeext'
6626   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6627   (eval $ac_try) 2>&5
6628   ac_status=$?
6629   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6630   (exit $ac_status); }; }; then
6631   ac_cv_lib_gif_DGifOpen=yes
6632 else
6633   echo "$as_me: failed program was:" >&5
6634 sed 's/^/| /' conftest.$ac_ext >&5
6635
6636 ac_cv_lib_gif_DGifOpen=no
6637 fi
6638 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6639 LIBS=$ac_check_lib_save_LIBS
6640 fi
6641 echo "$as_me:$LINENO: result: $ac_cv_lib_gif_DGifOpen" >&5
6642 echo "${ECHO_T}$ac_cv_lib_gif_DGifOpen" >&6
6643 if test $ac_cv_lib_gif_DGifOpen = yes; then
6644   cat >>confdefs.h <<\_ACEOF
6645 #define HAVE_LIBGIF 1
6646 _ACEOF
6647
6648                        GIFLIB="-lgif"
6649 fi
6650
6651 fi
6652
6653 fi
6654
6655 done
6656
6657
6658
6659
6660 XFILES=""
6661
6662 OPENGLFILES=""
6663
6664 GLU32FILES=""
6665
6666 OPENGL_LIBS=""
6667 if test "$have_x" = "yes"
6668 then
6669     XLIB="-lXext -lX11"
6670     ac_save_CPPFLAGS="$CPPFLAGS"
6671     CPPFLAGS="$CPPFLAGS $X_CFLAGS"
6672
6673
6674 for ac_header in X11/Xlib.h
6675 do
6676 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6677 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6678   echo "$as_me:$LINENO: checking for $ac_header" >&5
6679 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6680 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6681   echo $ECHO_N "(cached) $ECHO_C" >&6
6682 fi
6683 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6684 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6685 else
6686   # Is the header compilable?
6687 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6688 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6689 cat >conftest.$ac_ext <<_ACEOF
6690 #line $LINENO "configure"
6691 /* confdefs.h.  */
6692 _ACEOF
6693 cat confdefs.h >>conftest.$ac_ext
6694 cat >>conftest.$ac_ext <<_ACEOF
6695 /* end confdefs.h.  */
6696 $ac_includes_default
6697 #include <$ac_header>
6698 _ACEOF
6699 rm -f conftest.$ac_objext
6700 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6701   (eval $ac_compile) 2>&5
6702   ac_status=$?
6703   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6704   (exit $ac_status); } &&
6705          { ac_try='test -s conftest.$ac_objext'
6706   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6707   (eval $ac_try) 2>&5
6708   ac_status=$?
6709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6710   (exit $ac_status); }; }; then
6711   ac_header_compiler=yes
6712 else
6713   echo "$as_me: failed program was:" >&5
6714 sed 's/^/| /' conftest.$ac_ext >&5
6715
6716 ac_header_compiler=no
6717 fi
6718 rm -f conftest.$ac_objext conftest.$ac_ext
6719 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6720 echo "${ECHO_T}$ac_header_compiler" >&6
6721
6722 # Is the header present?
6723 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6724 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6725 cat >conftest.$ac_ext <<_ACEOF
6726 #line $LINENO "configure"
6727 /* confdefs.h.  */
6728 _ACEOF
6729 cat confdefs.h >>conftest.$ac_ext
6730 cat >>conftest.$ac_ext <<_ACEOF
6731 /* end confdefs.h.  */
6732 #include <$ac_header>
6733 _ACEOF
6734 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6735   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6736   ac_status=$?
6737   grep -v '^ *+' conftest.er1 >conftest.err
6738   rm -f conftest.er1
6739   cat conftest.err >&5
6740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6741   (exit $ac_status); } >/dev/null; then
6742   if test -s conftest.err; then
6743     ac_cpp_err=$ac_c_preproc_warn_flag
6744   else
6745     ac_cpp_err=
6746   fi
6747 else
6748   ac_cpp_err=yes
6749 fi
6750 if test -z "$ac_cpp_err"; then
6751   ac_header_preproc=yes
6752 else
6753   echo "$as_me: failed program was:" >&5
6754 sed 's/^/| /' conftest.$ac_ext >&5
6755
6756   ac_header_preproc=no
6757 fi
6758 rm -f conftest.err conftest.$ac_ext
6759 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6760 echo "${ECHO_T}$ac_header_preproc" >&6
6761
6762 # So?  What about this header?
6763 case $ac_header_compiler:$ac_header_preproc in
6764   yes:no )
6765     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6766 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6767     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6768 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6769     (
6770       cat <<\_ASBOX
6771 ## ------------------------------------ ##
6772 ## Report this to bug-autoconf@gnu.org. ##
6773 ## ------------------------------------ ##
6774 _ASBOX
6775     ) |
6776       sed "s/^/$as_me: WARNING:     /" >&2
6777     ;;
6778   no:yes )
6779     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6780 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6781     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6782 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6783     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6784 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6785     (
6786       cat <<\_ASBOX
6787 ## ------------------------------------ ##
6788 ## Report this to bug-autoconf@gnu.org. ##
6789 ## ------------------------------------ ##
6790 _ASBOX
6791     ) |
6792       sed "s/^/$as_me: WARNING:     /" >&2
6793     ;;
6794 esac
6795 echo "$as_me:$LINENO: checking for $ac_header" >&5
6796 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6797 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6798   echo $ECHO_N "(cached) $ECHO_C" >&6
6799 else
6800   eval "$as_ac_Header=$ac_header_preproc"
6801 fi
6802 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6803 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6804
6805 fi
6806 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6807   cat >>confdefs.h <<_ACEOF
6808 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6809 _ACEOF
6810
6811
6812
6813
6814
6815
6816
6817
6818
6819
6820 for ac_header in X11/XKBlib.h \
6821                           X11/Xutil.h \
6822                           X11/extensions/shape.h \
6823                           X11/extensions/XShm.h \
6824                           X11/extensions/Xrandr.h \
6825                           X11/extensions/Xrender.h \
6826                           X11/extensions/Xvlib.h \
6827                           X11/extensions/xf86dga.h \
6828                           X11/extensions/xf86vmode.h
6829 do
6830 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6831 echo "$as_me:$LINENO: checking for $ac_header" >&5
6832 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6833 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6834   echo $ECHO_N "(cached) $ECHO_C" >&6
6835 else
6836   cat >conftest.$ac_ext <<_ACEOF
6837 #line $LINENO "configure"
6838 /* confdefs.h.  */
6839 _ACEOF
6840 cat confdefs.h >>conftest.$ac_ext
6841 cat >>conftest.$ac_ext <<_ACEOF
6842 /* end confdefs.h.  */
6843 #include <X11/Xlib.h>
6844                           #ifdef HAVE_X11_XUTIL_H
6845                           # include <X11/Xutil.h>
6846                           #endif
6847
6848 #include <$ac_header>
6849 _ACEOF
6850 rm -f conftest.$ac_objext
6851 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6852   (eval $ac_compile) 2>&5
6853   ac_status=$?
6854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6855   (exit $ac_status); } &&
6856          { ac_try='test -s conftest.$ac_objext'
6857   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6858   (eval $ac_try) 2>&5
6859   ac_status=$?
6860   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6861   (exit $ac_status); }; }; then
6862   eval "$as_ac_Header=yes"
6863 else
6864   echo "$as_me: failed program was:" >&5
6865 sed 's/^/| /' conftest.$ac_ext >&5
6866
6867 eval "$as_ac_Header=no"
6868 fi
6869 rm -f conftest.$ac_objext conftest.$ac_ext
6870 fi
6871 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6872 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6873 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6874   cat >>confdefs.h <<_ACEOF
6875 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6876 _ACEOF
6877
6878 fi
6879
6880 done
6881
6882
6883                 if test "$ac_cv_header_X11_XKBlib_h" = "yes"
6884         then
6885               echo "$as_me:$LINENO: checking for XkbQueryExtension in -lX11" >&5
6886 echo $ECHO_N "checking for XkbQueryExtension in -lX11... $ECHO_C" >&6
6887 if test "${ac_cv_lib_X11_XkbQueryExtension+set}" = set; then
6888   echo $ECHO_N "(cached) $ECHO_C" >&6
6889 else
6890   ac_check_lib_save_LIBS=$LIBS
6891 LIBS="-lX11 $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
6892 cat >conftest.$ac_ext <<_ACEOF
6893 #line $LINENO "configure"
6894 /* confdefs.h.  */
6895 _ACEOF
6896 cat confdefs.h >>conftest.$ac_ext
6897 cat >>conftest.$ac_ext <<_ACEOF
6898 /* end confdefs.h.  */
6899
6900 /* Override any gcc2 internal prototype to avoid an error.  */
6901 #ifdef __cplusplus
6902 extern "C"
6903 #endif
6904 /* We use char because int might match the return type of a gcc2
6905    builtin and then its argument prototype would still apply.  */
6906 char XkbQueryExtension ();
6907 int
6908 main ()
6909 {
6910 XkbQueryExtension ();
6911   ;
6912   return 0;
6913 }
6914 _ACEOF
6915 rm -f conftest.$ac_objext conftest$ac_exeext
6916 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6917   (eval $ac_link) 2>&5
6918   ac_status=$?
6919   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6920   (exit $ac_status); } &&
6921          { ac_try='test -s conftest$ac_exeext'
6922   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6923   (eval $ac_try) 2>&5
6924   ac_status=$?
6925   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6926   (exit $ac_status); }; }; then
6927   ac_cv_lib_X11_XkbQueryExtension=yes
6928 else
6929   echo "$as_me: failed program was:" >&5
6930 sed 's/^/| /' conftest.$ac_ext >&5
6931
6932 ac_cv_lib_X11_XkbQueryExtension=no
6933 fi
6934 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6935 LIBS=$ac_check_lib_save_LIBS
6936 fi
6937 echo "$as_me:$LINENO: result: $ac_cv_lib_X11_XkbQueryExtension" >&5
6938 echo "${ECHO_T}$ac_cv_lib_X11_XkbQueryExtension" >&6
6939 if test $ac_cv_lib_X11_XkbQueryExtension = yes; then
6940
6941 cat >>confdefs.h <<\_ACEOF
6942 #define HAVE_XKB 1
6943 _ACEOF
6944
6945 fi
6946
6947         fi
6948
6949                 if test "$ac_cv_header_X11_extensions_XShm_h" = "yes"
6950         then
6951               echo "$as_me:$LINENO: checking for XShmQueryExtension in -lXext" >&5
6952 echo $ECHO_N "checking for XShmQueryExtension in -lXext... $ECHO_C" >&6
6953 if test "${ac_cv_lib_Xext_XShmQueryExtension+set}" = set; then
6954   echo $ECHO_N "(cached) $ECHO_C" >&6
6955 else
6956   ac_check_lib_save_LIBS=$LIBS
6957 LIBS="-lXext $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
6958 cat >conftest.$ac_ext <<_ACEOF
6959 #line $LINENO "configure"
6960 /* confdefs.h.  */
6961 _ACEOF
6962 cat confdefs.h >>conftest.$ac_ext
6963 cat >>conftest.$ac_ext <<_ACEOF
6964 /* end confdefs.h.  */
6965
6966 /* Override any gcc2 internal prototype to avoid an error.  */
6967 #ifdef __cplusplus
6968 extern "C"
6969 #endif
6970 /* We use char because int might match the return type of a gcc2
6971    builtin and then its argument prototype would still apply.  */
6972 char XShmQueryExtension ();
6973 int
6974 main ()
6975 {
6976 XShmQueryExtension ();
6977   ;
6978   return 0;
6979 }
6980 _ACEOF
6981 rm -f conftest.$ac_objext conftest$ac_exeext
6982 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6983   (eval $ac_link) 2>&5
6984   ac_status=$?
6985   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6986   (exit $ac_status); } &&
6987          { ac_try='test -s conftest$ac_exeext'
6988   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6989   (eval $ac_try) 2>&5
6990   ac_status=$?
6991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6992   (exit $ac_status); }; }; then
6993   ac_cv_lib_Xext_XShmQueryExtension=yes
6994 else
6995   echo "$as_me: failed program was:" >&5
6996 sed 's/^/| /' conftest.$ac_ext >&5
6997
6998 ac_cv_lib_Xext_XShmQueryExtension=no
6999 fi
7000 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7001 LIBS=$ac_check_lib_save_LIBS
7002 fi
7003 echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShmQueryExtension" >&5
7004 echo "${ECHO_T}$ac_cv_lib_Xext_XShmQueryExtension" >&6
7005 if test $ac_cv_lib_Xext_XShmQueryExtension = yes; then
7006
7007 cat >>confdefs.h <<\_ACEOF
7008 #define HAVE_LIBXXSHM 1
7009 _ACEOF
7010
7011 fi
7012
7013         fi
7014
7015                 if test "$ac_cv_header_X11_extensions_shape_h" = "yes"
7016         then
7017               echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
7018 echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6
7019 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
7020   echo $ECHO_N "(cached) $ECHO_C" >&6
7021 else
7022   ac_check_lib_save_LIBS=$LIBS
7023 LIBS="-lXext $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
7024 cat >conftest.$ac_ext <<_ACEOF
7025 #line $LINENO "configure"
7026 /* confdefs.h.  */
7027 _ACEOF
7028 cat confdefs.h >>conftest.$ac_ext
7029 cat >>conftest.$ac_ext <<_ACEOF
7030 /* end confdefs.h.  */
7031
7032 /* Override any gcc2 internal prototype to avoid an error.  */
7033 #ifdef __cplusplus
7034 extern "C"
7035 #endif
7036 /* We use char because int might match the return type of a gcc2
7037    builtin and then its argument prototype would still apply.  */
7038 char XShapeQueryExtension ();
7039 int
7040 main ()
7041 {
7042 XShapeQueryExtension ();
7043   ;
7044   return 0;
7045 }
7046 _ACEOF
7047 rm -f conftest.$ac_objext conftest$ac_exeext
7048 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7049   (eval $ac_link) 2>&5
7050   ac_status=$?
7051   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7052   (exit $ac_status); } &&
7053          { ac_try='test -s conftest$ac_exeext'
7054   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7055   (eval $ac_try) 2>&5
7056   ac_status=$?
7057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7058   (exit $ac_status); }; }; then
7059   ac_cv_lib_Xext_XShapeQueryExtension=yes
7060 else
7061   echo "$as_me: failed program was:" >&5
7062 sed 's/^/| /' conftest.$ac_ext >&5
7063
7064 ac_cv_lib_Xext_XShapeQueryExtension=no
7065 fi
7066 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7067 LIBS=$ac_check_lib_save_LIBS
7068 fi
7069 echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
7070 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6
7071 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
7072
7073 cat >>confdefs.h <<\_ACEOF
7074 #define HAVE_LIBXSHAPE 1
7075 _ACEOF
7076
7077 fi
7078
7079         fi
7080
7081                 if test "$ac_cv_header_X11_extensions_xf86dga_h" = "yes"
7082         then
7083               echo "$as_me:$LINENO: checking for XDGAQueryExtension in -lXxf86dga" >&5
7084 echo $ECHO_N "checking for XDGAQueryExtension in -lXxf86dga... $ECHO_C" >&6
7085 if test "${ac_cv_lib_Xxf86dga_XDGAQueryExtension+set}" = set; then
7086   echo $ECHO_N "(cached) $ECHO_C" >&6
7087 else
7088   ac_check_lib_save_LIBS=$LIBS
7089 LIBS="-lXxf86dga $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
7090 cat >conftest.$ac_ext <<_ACEOF
7091 #line $LINENO "configure"
7092 /* confdefs.h.  */
7093 _ACEOF
7094 cat confdefs.h >>conftest.$ac_ext
7095 cat >>conftest.$ac_ext <<_ACEOF
7096 /* end confdefs.h.  */
7097
7098 /* Override any gcc2 internal prototype to avoid an error.  */
7099 #ifdef __cplusplus
7100 extern "C"
7101 #endif
7102 /* We use char because int might match the return type of a gcc2
7103    builtin and then its argument prototype would still apply.  */
7104 char XDGAQueryExtension ();
7105 int
7106 main ()
7107 {
7108 XDGAQueryExtension ();
7109   ;
7110   return 0;
7111 }
7112 _ACEOF
7113 rm -f conftest.$ac_objext conftest$ac_exeext
7114 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7115   (eval $ac_link) 2>&5
7116   ac_status=$?
7117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7118   (exit $ac_status); } &&
7119          { ac_try='test -s conftest$ac_exeext'
7120   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7121   (eval $ac_try) 2>&5
7122   ac_status=$?
7123   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7124   (exit $ac_status); }; }; then
7125   ac_cv_lib_Xxf86dga_XDGAQueryExtension=yes
7126 else
7127   echo "$as_me: failed program was:" >&5
7128 sed 's/^/| /' conftest.$ac_ext >&5
7129
7130 ac_cv_lib_Xxf86dga_XDGAQueryExtension=no
7131 fi
7132 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7133 LIBS=$ac_check_lib_save_LIBS
7134 fi
7135 echo "$as_me:$LINENO: result: $ac_cv_lib_Xxf86dga_XDGAQueryExtension" >&5
7136 echo "${ECHO_T}$ac_cv_lib_Xxf86dga_XDGAQueryExtension" >&6
7137 if test $ac_cv_lib_Xxf86dga_XDGAQueryExtension = yes; then
7138
7139 cat >>confdefs.h <<\_ACEOF
7140 #define HAVE_LIBXXF86DGA2 1
7141 _ACEOF
7142
7143                   X_PRE_LIBS="$X_PRE_LIBS -lXxf86dga"
7144
7145 else
7146                                        echo "$as_me:$LINENO: checking for XF86DGAQueryExtension in -lXxf86dga" >&5
7147 echo $ECHO_N "checking for XF86DGAQueryExtension in -lXxf86dga... $ECHO_C" >&6
7148 if test "${ac_cv_lib_Xxf86dga_XF86DGAQueryExtension+set}" = set; then
7149   echo $ECHO_N "(cached) $ECHO_C" >&6
7150 else
7151   ac_check_lib_save_LIBS=$LIBS
7152 LIBS="-lXxf86dga $X_LIBS -lXext -lX11 $X_EXTRA_LIBS
7153                    $LIBS"
7154 cat >conftest.$ac_ext <<_ACEOF
7155 #line $LINENO "configure"
7156 /* confdefs.h.  */
7157 _ACEOF
7158 cat confdefs.h >>conftest.$ac_ext
7159 cat >>conftest.$ac_ext <<_ACEOF
7160 /* end confdefs.h.  */
7161
7162 /* Override any gcc2 internal prototype to avoid an error.  */
7163 #ifdef __cplusplus
7164 extern "C"
7165 #endif
7166 /* We use char because int might match the return type of a gcc2
7167    builtin and then its argument prototype would still apply.  */
7168 char XF86DGAQueryExtension ();
7169 int
7170 main ()
7171 {
7172 XF86DGAQueryExtension ();
7173   ;
7174   return 0;
7175 }
7176 _ACEOF
7177 rm -f conftest.$ac_objext conftest$ac_exeext
7178 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7179   (eval $ac_link) 2>&5
7180   ac_status=$?
7181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7182   (exit $ac_status); } &&
7183          { ac_try='test -s conftest$ac_exeext'
7184   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7185   (eval $ac_try) 2>&5
7186   ac_status=$?
7187   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7188   (exit $ac_status); }; }; then
7189   ac_cv_lib_Xxf86dga_XF86DGAQueryExtension=yes
7190 else
7191   echo "$as_me: failed program was:" >&5
7192 sed 's/^/| /' conftest.$ac_ext >&5
7193
7194 ac_cv_lib_Xxf86dga_XF86DGAQueryExtension=no
7195 fi
7196 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7197 LIBS=$ac_check_lib_save_LIBS
7198 fi
7199 echo "$as_me:$LINENO: result: $ac_cv_lib_Xxf86dga_XF86DGAQueryExtension" >&5
7200 echo "${ECHO_T}$ac_cv_lib_Xxf86dga_XF86DGAQueryExtension" >&6
7201 if test $ac_cv_lib_Xxf86dga_XF86DGAQueryExtension = yes; then
7202
7203 cat >>confdefs.h <<\_ACEOF
7204 #define HAVE_LIBXXF86DGA 1
7205 _ACEOF
7206
7207                       X_PRE_LIBS="$X_PRE_LIBS -lXxf86dga"
7208
7209 fi
7210
7211
7212 fi
7213
7214         fi
7215
7216                 if test "$ac_cv_header_X11_extensions_xf86vmode_h" = "yes"
7217         then
7218                 echo "$as_me:$LINENO: checking for XF86VidModeQueryExtension in -lXxf86vm" >&5
7219 echo $ECHO_N "checking for XF86VidModeQueryExtension in -lXxf86vm... $ECHO_C" >&6
7220 if test "${ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension+set}" = set; then
7221   echo $ECHO_N "(cached) $ECHO_C" >&6
7222 else
7223   ac_check_lib_save_LIBS=$LIBS
7224 LIBS="-lXxf86vm $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
7225 cat >conftest.$ac_ext <<_ACEOF
7226 #line $LINENO "configure"
7227 /* confdefs.h.  */
7228 _ACEOF
7229 cat confdefs.h >>conftest.$ac_ext
7230 cat >>conftest.$ac_ext <<_ACEOF
7231 /* end confdefs.h.  */
7232
7233 /* Override any gcc2 internal prototype to avoid an error.  */
7234 #ifdef __cplusplus
7235 extern "C"
7236 #endif
7237 /* We use char because int might match the return type of a gcc2
7238    builtin and then its argument prototype would still apply.  */
7239 char XF86VidModeQueryExtension ();
7240 int
7241 main ()
7242 {
7243 XF86VidModeQueryExtension ();
7244   ;
7245   return 0;
7246 }
7247 _ACEOF
7248 rm -f conftest.$ac_objext conftest$ac_exeext
7249 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7250   (eval $ac_link) 2>&5
7251   ac_status=$?
7252   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7253   (exit $ac_status); } &&
7254          { ac_try='test -s conftest$ac_exeext'
7255   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7256   (eval $ac_try) 2>&5
7257   ac_status=$?
7258   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7259   (exit $ac_status); }; }; then
7260   ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=yes
7261 else
7262   echo "$as_me: failed program was:" >&5
7263 sed 's/^/| /' conftest.$ac_ext >&5
7264
7265 ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=no
7266 fi
7267 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7268 LIBS=$ac_check_lib_save_LIBS
7269 fi
7270 echo "$as_me:$LINENO: result: $ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&5
7271 echo "${ECHO_T}$ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&6
7272 if test $ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension = yes; then
7273
7274 cat >>confdefs.h <<\_ACEOF
7275 #define HAVE_LIBXXF86VM 1
7276 _ACEOF
7277
7278                      X_PRE_LIBS="$X_PRE_LIBS -lXxf86vm"
7279
7280 fi
7281
7282         fi
7283
7284                 if test "$ac_cv_header_X11_extensions_Xrandr_h" = "yes"
7285         then
7286                 echo "$as_me:$LINENO: checking for XRRSetScreenConfigAndRate in -lXrandr" >&5
7287 echo $ECHO_N "checking for XRRSetScreenConfigAndRate in -lXrandr... $ECHO_C" >&6
7288 if test "${ac_cv_lib_Xrandr_XRRSetScreenConfigAndRate+set}" = set; then
7289   echo $ECHO_N "(cached) $ECHO_C" >&6
7290 else
7291   ac_check_lib_save_LIBS=$LIBS
7292 LIBS="-lXrandr $X_LIBS -lXrender -lXext -lX11 $X_EXTRA_LIBS $LIBS"
7293 cat >conftest.$ac_ext <<_ACEOF
7294 #line $LINENO "configure"
7295 /* confdefs.h.  */
7296 _ACEOF
7297 cat confdefs.h >>conftest.$ac_ext
7298 cat >>conftest.$ac_ext <<_ACEOF
7299 /* end confdefs.h.  */
7300
7301 /* Override any gcc2 internal prototype to avoid an error.  */
7302 #ifdef __cplusplus
7303 extern "C"
7304 #endif
7305 /* We use char because int might match the return type of a gcc2
7306    builtin and then its argument prototype would still apply.  */
7307 char XRRSetScreenConfigAndRate ();
7308 int
7309 main ()
7310 {
7311 XRRSetScreenConfigAndRate ();
7312   ;
7313   return 0;
7314 }
7315 _ACEOF
7316 rm -f conftest.$ac_objext conftest$ac_exeext
7317 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7318   (eval $ac_link) 2>&5
7319   ac_status=$?
7320   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7321   (exit $ac_status); } &&
7322          { ac_try='test -s conftest$ac_exeext'
7323   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7324   (eval $ac_try) 2>&5
7325   ac_status=$?
7326   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7327   (exit $ac_status); }; }; then
7328   ac_cv_lib_Xrandr_XRRSetScreenConfigAndRate=yes
7329 else
7330   echo "$as_me: failed program was:" >&5
7331 sed 's/^/| /' conftest.$ac_ext >&5
7332
7333 ac_cv_lib_Xrandr_XRRSetScreenConfigAndRate=no
7334 fi
7335 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7336 LIBS=$ac_check_lib_save_LIBS
7337 fi
7338 echo "$as_me:$LINENO: result: $ac_cv_lib_Xrandr_XRRSetScreenConfigAndRate" >&5
7339 echo "${ECHO_T}$ac_cv_lib_Xrandr_XRRSetScreenConfigAndRate" >&6
7340 if test $ac_cv_lib_Xrandr_XRRSetScreenConfigAndRate = yes; then
7341
7342 cat >>confdefs.h <<\_ACEOF
7343 #define HAVE_LIBXRANDR 1
7344 _ACEOF
7345
7346                      X_PRE_LIBS="$X_PRE_LIBS -lXrandr -lXrender"
7347
7348 fi
7349
7350         fi
7351
7352                 if test "$ac_cv_header_X11_extensions_Xvlib_h" = "yes"
7353         then
7354                 echo "$as_me:$LINENO: checking for XvShmCreateImage in -lXv" >&5
7355 echo $ECHO_N "checking for XvShmCreateImage in -lXv... $ECHO_C" >&6
7356 if test "${ac_cv_lib_Xv_XvShmCreateImage+set}" = set; then
7357   echo $ECHO_N "(cached) $ECHO_C" >&6
7358 else
7359   ac_check_lib_save_LIBS=$LIBS
7360 LIBS="-lXv $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
7361 cat >conftest.$ac_ext <<_ACEOF
7362 #line $LINENO "configure"
7363 /* confdefs.h.  */
7364 _ACEOF
7365 cat confdefs.h >>conftest.$ac_ext
7366 cat >>conftest.$ac_ext <<_ACEOF
7367 /* end confdefs.h.  */
7368
7369 /* Override any gcc2 internal prototype to avoid an error.  */
7370 #ifdef __cplusplus
7371 extern "C"
7372 #endif
7373 /* We use char because int might match the return type of a gcc2
7374    builtin and then its argument prototype would still apply.  */
7375 char XvShmCreateImage ();
7376 int
7377 main ()
7378 {
7379 XvShmCreateImage ();
7380   ;
7381   return 0;
7382 }
7383 _ACEOF
7384 rm -f conftest.$ac_objext conftest$ac_exeext
7385 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7386   (eval $ac_link) 2>&5
7387   ac_status=$?
7388   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7389   (exit $ac_status); } &&
7390          { ac_try='test -s conftest$ac_exeext'
7391   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7392   (eval $ac_try) 2>&5
7393   ac_status=$?
7394   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7395   (exit $ac_status); }; }; then
7396   ac_cv_lib_Xv_XvShmCreateImage=yes
7397 else
7398   echo "$as_me: failed program was:" >&5
7399 sed 's/^/| /' conftest.$ac_ext >&5
7400
7401 ac_cv_lib_Xv_XvShmCreateImage=no
7402 fi
7403 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7404 LIBS=$ac_check_lib_save_LIBS
7405 fi
7406 echo "$as_me:$LINENO: result: $ac_cv_lib_Xv_XvShmCreateImage" >&5
7407 echo "${ECHO_T}$ac_cv_lib_Xv_XvShmCreateImage" >&6
7408 if test $ac_cv_lib_Xv_XvShmCreateImage = yes; then
7409
7410 cat >>confdefs.h <<\_ACEOF
7411 #define HAVE_XVIDEO 1
7412 _ACEOF
7413
7414                      X_PRE_LIBS="$X_PRE_LIBS -lXv"
7415
7416 fi
7417
7418         fi
7419
7420
7421 fi
7422
7423 done
7424
7425         if test "x$with_opengl" != "xno"
7426     then
7427         if test -f /usr/X11R6/lib/libGL.a -a ! -f /usr/X11R6/lib/libGL.so
7428         then
7429             { { echo "$as_me:$LINENO: error: /usr/X11R6/lib/libGL.a is present on your system.
7430 This prevents linking to OpenGL. Delete the file and restart configure." >&5
7431 echo "$as_me: error: /usr/X11R6/lib/libGL.a is present on your system.
7432 This prevents linking to OpenGL. Delete the file and restart configure." >&2;}
7433    { (exit 1); exit 1; }; }
7434         fi
7435
7436
7437
7438 for ac_header in GL/gl.h GL/glx.h
7439 do
7440 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7441 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7442   echo "$as_me:$LINENO: checking for $ac_header" >&5
7443 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7444 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7445   echo $ECHO_N "(cached) $ECHO_C" >&6
7446 fi
7447 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7448 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7449 else
7450   # Is the header compilable?
7451 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7452 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7453 cat >conftest.$ac_ext <<_ACEOF
7454 #line $LINENO "configure"
7455 /* confdefs.h.  */
7456 _ACEOF
7457 cat confdefs.h >>conftest.$ac_ext
7458 cat >>conftest.$ac_ext <<_ACEOF
7459 /* end confdefs.h.  */
7460 $ac_includes_default
7461 #include <$ac_header>
7462 _ACEOF
7463 rm -f conftest.$ac_objext
7464 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7465   (eval $ac_compile) 2>&5
7466   ac_status=$?
7467   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7468   (exit $ac_status); } &&
7469          { ac_try='test -s conftest.$ac_objext'
7470   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7471   (eval $ac_try) 2>&5
7472   ac_status=$?
7473   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7474   (exit $ac_status); }; }; then
7475   ac_header_compiler=yes
7476 else
7477   echo "$as_me: failed program was:" >&5
7478 sed 's/^/| /' conftest.$ac_ext >&5
7479
7480 ac_header_compiler=no
7481 fi
7482 rm -f conftest.$ac_objext conftest.$ac_ext
7483 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7484 echo "${ECHO_T}$ac_header_compiler" >&6
7485
7486 # Is the header present?
7487 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7488 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7489 cat >conftest.$ac_ext <<_ACEOF
7490 #line $LINENO "configure"
7491 /* confdefs.h.  */
7492 _ACEOF
7493 cat confdefs.h >>conftest.$ac_ext
7494 cat >>conftest.$ac_ext <<_ACEOF
7495 /* end confdefs.h.  */
7496 #include <$ac_header>
7497 _ACEOF
7498 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7499   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7500   ac_status=$?
7501   grep -v '^ *+' conftest.er1 >conftest.err
7502   rm -f conftest.er1
7503   cat conftest.err >&5
7504   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7505   (exit $ac_status); } >/dev/null; then
7506   if test -s conftest.err; then
7507     ac_cpp_err=$ac_c_preproc_warn_flag
7508   else
7509     ac_cpp_err=
7510   fi
7511 else
7512   ac_cpp_err=yes
7513 fi
7514 if test -z "$ac_cpp_err"; then
7515   ac_header_preproc=yes
7516 else
7517   echo "$as_me: failed program was:" >&5
7518 sed 's/^/| /' conftest.$ac_ext >&5
7519
7520   ac_header_preproc=no
7521 fi
7522 rm -f conftest.err conftest.$ac_ext
7523 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7524 echo "${ECHO_T}$ac_header_preproc" >&6
7525
7526 # So?  What about this header?
7527 case $ac_header_compiler:$ac_header_preproc in
7528   yes:no )
7529     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7530 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7531     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7532 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7533     (
7534       cat <<\_ASBOX
7535 ## ------------------------------------ ##
7536 ## Report this to bug-autoconf@gnu.org. ##
7537 ## ------------------------------------ ##
7538 _ASBOX
7539     ) |
7540       sed "s/^/$as_me: WARNING:     /" >&2
7541     ;;
7542   no:yes )
7543     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7544 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7545     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7546 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7547     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7548 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7549     (
7550       cat <<\_ASBOX
7551 ## ------------------------------------ ##
7552 ## Report this to bug-autoconf@gnu.org. ##
7553 ## ------------------------------------ ##
7554 _ASBOX
7555     ) |
7556       sed "s/^/$as_me: WARNING:     /" >&2
7557     ;;
7558 esac
7559 echo "$as_me:$LINENO: checking for $ac_header" >&5
7560 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7561 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7562   echo $ECHO_N "(cached) $ECHO_C" >&6
7563 else
7564   eval "$as_ac_Header=$ac_header_preproc"
7565 fi
7566 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7567 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7568
7569 fi
7570 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7571   cat >>confdefs.h <<_ACEOF
7572 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7573 _ACEOF
7574
7575 fi
7576
7577 done
7578
7579         if test "$ac_cv_header_GL_gl_h" = "yes" -a "$ac_cv_header_GL_glx_h" = "yes"
7580         then
7581
7582 for ac_header in GL/glext.h
7583 do
7584 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7585 echo "$as_me:$LINENO: checking for $ac_header" >&5
7586 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7587 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7588   echo $ECHO_N "(cached) $ECHO_C" >&6
7589 else
7590   cat >conftest.$ac_ext <<_ACEOF
7591 #line $LINENO "configure"
7592 /* confdefs.h.  */
7593 _ACEOF
7594 cat confdefs.h >>conftest.$ac_ext
7595 cat >>conftest.$ac_ext <<_ACEOF
7596 /* end confdefs.h.  */
7597 #include <GL/glx.h>
7598
7599 #include <$ac_header>
7600 _ACEOF
7601 rm -f conftest.$ac_objext
7602 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7603   (eval $ac_compile) 2>&5
7604   ac_status=$?
7605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7606   (exit $ac_status); } &&
7607          { ac_try='test -s conftest.$ac_objext'
7608   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7609   (eval $ac_try) 2>&5
7610   ac_status=$?
7611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7612   (exit $ac_status); }; }; then
7613   eval "$as_ac_Header=yes"
7614 else
7615   echo "$as_me: failed program was:" >&5
7616 sed 's/^/| /' conftest.$ac_ext >&5
7617
7618 eval "$as_ac_Header=no"
7619 fi
7620 rm -f conftest.$ac_objext conftest.$ac_ext
7621 fi
7622 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7623 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7624 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7625   cat >>confdefs.h <<_ACEOF
7626 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7627 _ACEOF
7628
7629 fi
7630
7631 done
7632
7633                     echo "$as_me:$LINENO: checking for up-to-date OpenGL version" >&5
7634 echo $ECHO_N "checking for up-to-date OpenGL version... $ECHO_C" >&6
7635 if test "${wine_cv_opengl_version_OK+set}" = set; then
7636   echo $ECHO_N "(cached) $ECHO_C" >&6
7637 else
7638   cat >conftest.$ac_ext <<_ACEOF
7639 #line $LINENO "configure"
7640 /* confdefs.h.  */
7641 _ACEOF
7642 cat confdefs.h >>conftest.$ac_ext
7643 cat >>conftest.$ac_ext <<_ACEOF
7644 /* end confdefs.h.  */
7645 #include <GL/gl.h>
7646 int
7647 main ()
7648 {
7649 GLenum test = GL_UNSIGNED_SHORT_5_6_5;
7650   ;
7651   return 0;
7652 }
7653 _ACEOF
7654 rm -f conftest.$ac_objext
7655 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7656   (eval $ac_compile) 2>&5
7657   ac_status=$?
7658   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7659   (exit $ac_status); } &&
7660          { ac_try='test -s conftest.$ac_objext'
7661   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7662   (eval $ac_try) 2>&5
7663   ac_status=$?
7664   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7665   (exit $ac_status); }; }; then
7666   wine_cv_opengl_version_OK="yes"
7667 else
7668   echo "$as_me: failed program was:" >&5
7669 sed 's/^/| /' conftest.$ac_ext >&5
7670
7671 wine_cv_opengl_version_OK="no"
7672
7673 fi
7674 rm -f conftest.$ac_objext conftest.$ac_ext
7675
7676 fi
7677 echo "$as_me:$LINENO: result: $wine_cv_opengl_version_OK" >&5
7678 echo "${ECHO_T}$wine_cv_opengl_version_OK" >&6
7679
7680             if test "$wine_cv_opengl_version_OK" = "yes"
7681             then
7682                                 echo "$as_me:$LINENO: checking for glXCreateContext in -lGL" >&5
7683 echo $ECHO_N "checking for glXCreateContext in -lGL... $ECHO_C" >&6
7684 if test "${ac_cv_lib_GL_glXCreateContext+set}" = set; then
7685   echo $ECHO_N "(cached) $ECHO_C" >&6
7686 else
7687   ac_check_lib_save_LIBS=$LIBS
7688 LIBS="-lGL $X_LIBS -lXext -lX11 -lm $X_EXTRA_LIBS $LIBS"
7689 cat >conftest.$ac_ext <<_ACEOF
7690 #line $LINENO "configure"
7691 /* confdefs.h.  */
7692 _ACEOF
7693 cat confdefs.h >>conftest.$ac_ext
7694 cat >>conftest.$ac_ext <<_ACEOF
7695 /* end confdefs.h.  */
7696
7697 /* Override any gcc2 internal prototype to avoid an error.  */
7698 #ifdef __cplusplus
7699 extern "C"
7700 #endif
7701 /* We use char because int might match the return type of a gcc2
7702    builtin and then its argument prototype would still apply.  */
7703 char glXCreateContext ();
7704 int
7705 main ()
7706 {
7707 glXCreateContext ();
7708   ;
7709   return 0;
7710 }
7711 _ACEOF
7712 rm -f conftest.$ac_objext conftest$ac_exeext
7713 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7714   (eval $ac_link) 2>&5
7715   ac_status=$?
7716   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7717   (exit $ac_status); } &&
7718          { ac_try='test -s conftest$ac_exeext'
7719   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7720   (eval $ac_try) 2>&5
7721   ac_status=$?
7722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7723   (exit $ac_status); }; }; then
7724   ac_cv_lib_GL_glXCreateContext=yes
7725 else
7726   echo "$as_me: failed program was:" >&5
7727 sed 's/^/| /' conftest.$ac_ext >&5
7728
7729 ac_cv_lib_GL_glXCreateContext=no
7730 fi
7731 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7732 LIBS=$ac_check_lib_save_LIBS
7733 fi
7734 echo "$as_me:$LINENO: result: $ac_cv_lib_GL_glXCreateContext" >&5
7735 echo "${ECHO_T}$ac_cv_lib_GL_glXCreateContext" >&6
7736 if test $ac_cv_lib_GL_glXCreateContext = yes; then
7737   OPENGL_LIBS="-lGL"
7738
7739 fi
7740
7741
7742                 if test "$ac_cv_lib_GL_glXCreateContext" = "yes"
7743                 then
7744                         OPENGLFILES='$(OPENGLFILES)'
7745
7746 cat >>confdefs.h <<\_ACEOF
7747 #define HAVE_OPENGL 1
7748 _ACEOF
7749
7750
7751                         echo "$as_me:$LINENO: checking for glXGetProcAddressARB in -lGL" >&5
7752 echo $ECHO_N "checking for glXGetProcAddressARB in -lGL... $ECHO_C" >&6
7753 if test "${ac_cv_lib_GL_glXGetProcAddressARB+set}" = set; then
7754   echo $ECHO_N "(cached) $ECHO_C" >&6
7755 else
7756   ac_check_lib_save_LIBS=$LIBS
7757 LIBS="-lGL $X_LIBS -lXext -lX11 -lm $X_EXTRA_LIBS $LIBS"
7758 cat >conftest.$ac_ext <<_ACEOF
7759 #line $LINENO "configure"
7760 /* confdefs.h.  */
7761 _ACEOF
7762 cat confdefs.h >>conftest.$ac_ext
7763 cat >>conftest.$ac_ext <<_ACEOF
7764 /* end confdefs.h.  */
7765
7766 /* Override any gcc2 internal prototype to avoid an error.  */
7767 #ifdef __cplusplus
7768 extern "C"
7769 #endif
7770 /* We use char because int might match the return type of a gcc2
7771    builtin and then its argument prototype would still apply.  */
7772 char glXGetProcAddressARB ();
7773 int
7774 main ()
7775 {
7776 glXGetProcAddressARB ();
7777   ;
7778   return 0;
7779 }
7780 _ACEOF
7781 rm -f conftest.$ac_objext conftest$ac_exeext
7782 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7783   (eval $ac_link) 2>&5
7784   ac_status=$?
7785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7786   (exit $ac_status); } &&
7787          { ac_try='test -s conftest$ac_exeext'
7788   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7789   (eval $ac_try) 2>&5
7790   ac_status=$?
7791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7792   (exit $ac_status); }; }; then
7793   ac_cv_lib_GL_glXGetProcAddressARB=yes
7794 else
7795   echo "$as_me: failed program was:" >&5
7796 sed 's/^/| /' conftest.$ac_ext >&5
7797
7798 ac_cv_lib_GL_glXGetProcAddressARB=no
7799 fi
7800 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7801 LIBS=$ac_check_lib_save_LIBS
7802 fi
7803 echo "$as_me:$LINENO: result: $ac_cv_lib_GL_glXGetProcAddressARB" >&5
7804 echo "${ECHO_T}$ac_cv_lib_GL_glXGetProcAddressARB" >&6
7805 if test $ac_cv_lib_GL_glXGetProcAddressARB = yes; then
7806
7807 cat >>confdefs.h <<\_ACEOF
7808 #define HAVE_GLX_GETPROCADDRESS 1
7809 _ACEOF
7810
7811 fi
7812
7813
7814                         if test "$ac_cv_lib_GL_glXGetProcAddressARB" = "yes"
7815                         then
7816                                echo "$as_me:$LINENO: checking for OpenGL extension functions prototypes" >&5
7817 echo $ECHO_N "checking for OpenGL extension functions prototypes... $ECHO_C" >&6
7818 if test "${wine_cv_extension_prototypes+set}" = set; then
7819   echo $ECHO_N "(cached) $ECHO_C" >&6
7820 else
7821   cat >conftest.$ac_ext <<_ACEOF
7822 #line $LINENO "configure"
7823 /* confdefs.h.  */
7824 _ACEOF
7825 cat confdefs.h >>conftest.$ac_ext
7826 cat >>conftest.$ac_ext <<_ACEOF
7827 /* end confdefs.h.  */
7828 #include <GL/gl.h>
7829                                                   #ifdef HAVE_GL_GLEXT_H
7830                                                   # include <GL/glext.h>
7831                                                   #endif
7832
7833 int
7834 main ()
7835 {
7836 PFNGLCOLORTABLEEXTPROC test_proc;
7837   ;
7838   return 0;
7839 }
7840 _ACEOF
7841 rm -f conftest.$ac_objext
7842 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7843   (eval $ac_compile) 2>&5
7844   ac_status=$?
7845   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7846   (exit $ac_status); } &&
7847          { ac_try='test -s conftest.$ac_objext'
7848   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7849   (eval $ac_try) 2>&5
7850   ac_status=$?
7851   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7852   (exit $ac_status); }; }; then
7853   wine_cv_extension_prototypes="yes"
7854 else
7855   echo "$as_me: failed program was:" >&5
7856 sed 's/^/| /' conftest.$ac_ext >&5
7857
7858 wine_cv_extension_prototypes="no"
7859
7860 fi
7861 rm -f conftest.$ac_objext conftest.$ac_ext
7862
7863 fi
7864 echo "$as_me:$LINENO: result: $wine_cv_extension_prototypes" >&5
7865 echo "${ECHO_T}$wine_cv_extension_prototypes" >&6
7866                                 if test "$wine_cv_extension_prototypes" = "yes"
7867                                 then
7868
7869 cat >>confdefs.h <<\_ACEOF
7870 #define HAVE_GLEXT_PROTOTYPES 1
7871 _ACEOF
7872
7873                                 fi
7874                         fi
7875
7876                 fi
7877                                 echo "$as_me:$LINENO: checking for gluLookAt in -lGLU" >&5
7878 echo $ECHO_N "checking for gluLookAt in -lGLU... $ECHO_C" >&6
7879 if test "${ac_cv_lib_GLU_gluLookAt+set}" = set; then
7880   echo $ECHO_N "(cached) $ECHO_C" >&6
7881 else
7882   ac_check_lib_save_LIBS=$LIBS
7883 LIBS="-lGLU $OPENGL_LIBS $X_LIBS $X_PRE_LIBS -lXext -lX11 -lm $X_EXTRA_LIBS
7884                  $LIBS"
7885 cat >conftest.$ac_ext <<_ACEOF
7886 #line $LINENO "configure"
7887 /* confdefs.h.  */
7888 _ACEOF
7889 cat confdefs.h >>conftest.$ac_ext
7890 cat >>conftest.$ac_ext <<_ACEOF
7891 /* end confdefs.h.  */
7892
7893 /* Override any gcc2 internal prototype to avoid an error.  */
7894 #ifdef __cplusplus
7895 extern "C"
7896 #endif
7897 /* We use char because int might match the return type of a gcc2
7898    builtin and then its argument prototype would still apply.  */
7899 char gluLookAt ();
7900 int
7901 main ()
7902 {
7903 gluLookAt ();
7904   ;
7905   return 0;
7906 }
7907 _ACEOF
7908 rm -f conftest.$ac_objext conftest$ac_exeext
7909 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7910   (eval $ac_link) 2>&5
7911   ac_status=$?
7912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7913   (exit $ac_status); } &&
7914          { ac_try='test -s conftest$ac_exeext'
7915   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7916   (eval $ac_try) 2>&5
7917   ac_status=$?
7918   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7919   (exit $ac_status); }; }; then
7920   ac_cv_lib_GLU_gluLookAt=yes
7921 else
7922   echo "$as_me: failed program was:" >&5
7923 sed 's/^/| /' conftest.$ac_ext >&5
7924
7925 ac_cv_lib_GLU_gluLookAt=no
7926 fi
7927 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7928 LIBS=$ac_check_lib_save_LIBS
7929 fi
7930 echo "$as_me:$LINENO: result: $ac_cv_lib_GLU_gluLookAt" >&5
7931 echo "${ECHO_T}$ac_cv_lib_GLU_gluLookAt" >&6
7932 if test $ac_cv_lib_GLU_gluLookAt = yes; then
7933   OPENGL_LIBS="$OPENGL_LIBS -lGLU"
7934                              GLU32FILES='$(GLU32FILES)'
7935
7936 fi
7937
7938              fi
7939          fi
7940     fi
7941
7942         NASLIBS=""
7943
7944
7945 for ac_header in audio/audiolib.h
7946 do
7947 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7948 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7949   echo "$as_me:$LINENO: checking for $ac_header" >&5
7950 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7951 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7952   echo $ECHO_N "(cached) $ECHO_C" >&6
7953 fi
7954 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7955 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7956 else
7957   # Is the header compilable?
7958 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7959 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7960 cat >conftest.$ac_ext <<_ACEOF
7961 #line $LINENO "configure"
7962 /* confdefs.h.  */
7963 _ACEOF
7964 cat confdefs.h >>conftest.$ac_ext
7965 cat >>conftest.$ac_ext <<_ACEOF
7966 /* end confdefs.h.  */
7967 $ac_includes_default
7968 #include <$ac_header>
7969 _ACEOF
7970 rm -f conftest.$ac_objext
7971 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7972   (eval $ac_compile) 2>&5
7973   ac_status=$?
7974   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7975   (exit $ac_status); } &&
7976          { ac_try='test -s conftest.$ac_objext'
7977   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7978   (eval $ac_try) 2>&5
7979   ac_status=$?
7980   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7981   (exit $ac_status); }; }; then
7982   ac_header_compiler=yes
7983 else
7984   echo "$as_me: failed program was:" >&5
7985 sed 's/^/| /' conftest.$ac_ext >&5
7986
7987 ac_header_compiler=no
7988 fi
7989 rm -f conftest.$ac_objext conftest.$ac_ext
7990 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7991 echo "${ECHO_T}$ac_header_compiler" >&6
7992
7993 # Is the header present?
7994 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7995 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7996 cat >conftest.$ac_ext <<_ACEOF
7997 #line $LINENO "configure"
7998 /* confdefs.h.  */
7999 _ACEOF
8000 cat confdefs.h >>conftest.$ac_ext
8001 cat >>conftest.$ac_ext <<_ACEOF
8002 /* end confdefs.h.  */
8003 #include <$ac_header>
8004 _ACEOF
8005 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8006   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8007   ac_status=$?
8008   grep -v '^ *+' conftest.er1 >conftest.err
8009   rm -f conftest.er1
8010   cat conftest.err >&5
8011   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8012   (exit $ac_status); } >/dev/null; then
8013   if test -s conftest.err; then
8014     ac_cpp_err=$ac_c_preproc_warn_flag
8015   else
8016     ac_cpp_err=
8017   fi
8018 else
8019   ac_cpp_err=yes
8020 fi
8021 if test -z "$ac_cpp_err"; then
8022   ac_header_preproc=yes
8023 else
8024   echo "$as_me: failed program was:" >&5
8025 sed 's/^/| /' conftest.$ac_ext >&5
8026
8027   ac_header_preproc=no
8028 fi
8029 rm -f conftest.err conftest.$ac_ext
8030 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8031 echo "${ECHO_T}$ac_header_preproc" >&6
8032
8033 # So?  What about this header?
8034 case $ac_header_compiler:$ac_header_preproc in
8035   yes:no )
8036     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8037 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8038     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8039 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8040     (
8041       cat <<\_ASBOX
8042 ## ------------------------------------ ##
8043 ## Report this to bug-autoconf@gnu.org. ##
8044 ## ------------------------------------ ##
8045 _ASBOX
8046     ) |
8047       sed "s/^/$as_me: WARNING:     /" >&2
8048     ;;
8049   no:yes )
8050     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8051 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8052     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8053 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8054     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8055 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8056     (
8057       cat <<\_ASBOX
8058 ## ------------------------------------ ##
8059 ## Report this to bug-autoconf@gnu.org. ##
8060 ## ------------------------------------ ##
8061 _ASBOX
8062     ) |
8063       sed "s/^/$as_me: WARNING:     /" >&2
8064     ;;
8065 esac
8066 echo "$as_me:$LINENO: checking for $ac_header" >&5
8067 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8068 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8069   echo $ECHO_N "(cached) $ECHO_C" >&6
8070 else
8071   eval "$as_ac_Header=$ac_header_preproc"
8072 fi
8073 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8074 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8075
8076 fi
8077 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8078   cat >>confdefs.h <<_ACEOF
8079 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8080 _ACEOF
8081
8082 for ac_header in audio/soundlib.h
8083 do
8084 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8085 echo "$as_me:$LINENO: checking for $ac_header" >&5
8086 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8087 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8088   echo $ECHO_N "(cached) $ECHO_C" >&6
8089 else
8090   cat >conftest.$ac_ext <<_ACEOF
8091 #line $LINENO "configure"
8092 /* confdefs.h.  */
8093 _ACEOF
8094 cat confdefs.h >>conftest.$ac_ext
8095 cat >>conftest.$ac_ext <<_ACEOF
8096 /* end confdefs.h.  */
8097 #include <audio/audiolib.h>
8098
8099 #include <$ac_header>
8100 _ACEOF
8101 rm -f conftest.$ac_objext
8102 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8103   (eval $ac_compile) 2>&5
8104   ac_status=$?
8105   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8106   (exit $ac_status); } &&
8107          { ac_try='test -s conftest.$ac_objext'
8108   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8109   (eval $ac_try) 2>&5
8110   ac_status=$?
8111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8112   (exit $ac_status); }; }; then
8113   eval "$as_ac_Header=yes"
8114 else
8115   echo "$as_me: failed program was:" >&5
8116 sed 's/^/| /' conftest.$ac_ext >&5
8117
8118 eval "$as_ac_Header=no"
8119 fi
8120 rm -f conftest.$ac_objext conftest.$ac_ext
8121 fi
8122 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8123 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8124 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8125   cat >>confdefs.h <<_ACEOF
8126 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8127 _ACEOF
8128
8129 fi
8130
8131 done
8132
8133           echo "$as_me:$LINENO: checking for AuCreateFlow in -laudio" >&5
8134 echo $ECHO_N "checking for AuCreateFlow in -laudio... $ECHO_C" >&6
8135 if test "${ac_cv_lib_audio_AuCreateFlow+set}" = set; then
8136   echo $ECHO_N "(cached) $ECHO_C" >&6
8137 else
8138   ac_check_lib_save_LIBS=$LIBS
8139 LIBS="-laudio -lXt $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
8140 cat >conftest.$ac_ext <<_ACEOF
8141 #line $LINENO "configure"
8142 /* confdefs.h.  */
8143 _ACEOF
8144 cat confdefs.h >>conftest.$ac_ext
8145 cat >>conftest.$ac_ext <<_ACEOF
8146 /* end confdefs.h.  */
8147
8148 /* Override any gcc2 internal prototype to avoid an error.  */
8149 #ifdef __cplusplus
8150 extern "C"
8151 #endif
8152 /* We use char because int might match the return type of a gcc2
8153    builtin and then its argument prototype would still apply.  */
8154 char AuCreateFlow ();
8155 int
8156 main ()
8157 {
8158 AuCreateFlow ();
8159   ;
8160   return 0;
8161 }
8162 _ACEOF
8163 rm -f conftest.$ac_objext conftest$ac_exeext
8164 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8165   (eval $ac_link) 2>&5
8166   ac_status=$?
8167   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8168   (exit $ac_status); } &&
8169          { ac_try='test -s conftest$ac_exeext'
8170   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8171   (eval $ac_try) 2>&5
8172   ac_status=$?
8173   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8174   (exit $ac_status); }; }; then
8175   ac_cv_lib_audio_AuCreateFlow=yes
8176 else
8177   echo "$as_me: failed program was:" >&5
8178 sed 's/^/| /' conftest.$ac_ext >&5
8179
8180 ac_cv_lib_audio_AuCreateFlow=no
8181 fi
8182 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8183 LIBS=$ac_check_lib_save_LIBS
8184 fi
8185 echo "$as_me:$LINENO: result: $ac_cv_lib_audio_AuCreateFlow" >&5
8186 echo "${ECHO_T}$ac_cv_lib_audio_AuCreateFlow" >&6
8187 if test $ac_cv_lib_audio_AuCreateFlow = yes; then
8188
8189 cat >>confdefs.h <<\_ACEOF
8190 #define HAVE_NAS 1
8191 _ACEOF
8192
8193                         NASLIBS="-laudio -lXt $X_LIBS -lXext -lX11 $X_EXTRA_LIBS"
8194 fi
8195
8196 fi
8197
8198 done
8199
8200
8201     CPPFLAGS="$ac_save_CPPFLAGS"
8202     XFILES='$(XFILES)'
8203 else
8204     XLIB=""
8205     X_CFLAGS=""
8206     X_LIBS=""
8207 fi
8208
8209 CURSESLIBS=""
8210 if test "x$with_curses" != "xno"
8211 then
8212
8213 for ac_header in ncurses.h
8214 do
8215 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8216 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8217   echo "$as_me:$LINENO: checking for $ac_header" >&5
8218 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8219 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8220   echo $ECHO_N "(cached) $ECHO_C" >&6
8221 fi
8222 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8223 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8224 else
8225   # Is the header compilable?
8226 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8227 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8228 cat >conftest.$ac_ext <<_ACEOF
8229 #line $LINENO "configure"
8230 /* confdefs.h.  */
8231 _ACEOF
8232 cat confdefs.h >>conftest.$ac_ext
8233 cat >>conftest.$ac_ext <<_ACEOF
8234 /* end confdefs.h.  */
8235 $ac_includes_default
8236 #include <$ac_header>
8237 _ACEOF
8238 rm -f conftest.$ac_objext
8239 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8240   (eval $ac_compile) 2>&5
8241   ac_status=$?
8242   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8243   (exit $ac_status); } &&
8244          { ac_try='test -s conftest.$ac_objext'
8245   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8246   (eval $ac_try) 2>&5
8247   ac_status=$?
8248   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8249   (exit $ac_status); }; }; then
8250   ac_header_compiler=yes
8251 else
8252   echo "$as_me: failed program was:" >&5
8253 sed 's/^/| /' conftest.$ac_ext >&5
8254
8255 ac_header_compiler=no
8256 fi
8257 rm -f conftest.$ac_objext conftest.$ac_ext
8258 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8259 echo "${ECHO_T}$ac_header_compiler" >&6
8260
8261 # Is the header present?
8262 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8263 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8264 cat >conftest.$ac_ext <<_ACEOF
8265 #line $LINENO "configure"
8266 /* confdefs.h.  */
8267 _ACEOF
8268 cat confdefs.h >>conftest.$ac_ext
8269 cat >>conftest.$ac_ext <<_ACEOF
8270 /* end confdefs.h.  */
8271 #include <$ac_header>
8272 _ACEOF
8273 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8274   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8275   ac_status=$?
8276   grep -v '^ *+' conftest.er1 >conftest.err
8277   rm -f conftest.er1
8278   cat conftest.err >&5
8279   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8280   (exit $ac_status); } >/dev/null; then
8281   if test -s conftest.err; then
8282     ac_cpp_err=$ac_c_preproc_warn_flag
8283   else
8284     ac_cpp_err=
8285   fi
8286 else
8287   ac_cpp_err=yes
8288 fi
8289 if test -z "$ac_cpp_err"; then
8290   ac_header_preproc=yes
8291 else
8292   echo "$as_me: failed program was:" >&5
8293 sed 's/^/| /' conftest.$ac_ext >&5
8294
8295   ac_header_preproc=no
8296 fi
8297 rm -f conftest.err conftest.$ac_ext
8298 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8299 echo "${ECHO_T}$ac_header_preproc" >&6
8300
8301 # So?  What about this header?
8302 case $ac_header_compiler:$ac_header_preproc in
8303   yes:no )
8304     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8305 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8306     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8307 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8308     (
8309       cat <<\_ASBOX
8310 ## ------------------------------------ ##
8311 ## Report this to bug-autoconf@gnu.org. ##
8312 ## ------------------------------------ ##
8313 _ASBOX
8314     ) |
8315       sed "s/^/$as_me: WARNING:     /" >&2
8316     ;;
8317   no:yes )
8318     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8319 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8320     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8321 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8322     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8323 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8324     (
8325       cat <<\_ASBOX
8326 ## ------------------------------------ ##
8327 ## Report this to bug-autoconf@gnu.org. ##
8328 ## ------------------------------------ ##
8329 _ASBOX
8330     ) |
8331       sed "s/^/$as_me: WARNING:     /" >&2
8332     ;;
8333 esac
8334 echo "$as_me:$LINENO: checking for $ac_header" >&5
8335 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8336 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8337   echo $ECHO_N "(cached) $ECHO_C" >&6
8338 else
8339   eval "$as_ac_Header=$ac_header_preproc"
8340 fi
8341 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8342 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8343
8344 fi
8345 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8346   cat >>confdefs.h <<_ACEOF
8347 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8348 _ACEOF
8349  echo "$as_me:$LINENO: checking for waddch in -lncurses" >&5
8350 echo $ECHO_N "checking for waddch in -lncurses... $ECHO_C" >&6
8351 if test "${ac_cv_lib_ncurses_waddch+set}" = set; then
8352   echo $ECHO_N "(cached) $ECHO_C" >&6
8353 else
8354   ac_check_lib_save_LIBS=$LIBS
8355 LIBS="-lncurses  $LIBS"
8356 cat >conftest.$ac_ext <<_ACEOF
8357 #line $LINENO "configure"
8358 /* confdefs.h.  */
8359 _ACEOF
8360 cat confdefs.h >>conftest.$ac_ext
8361 cat >>conftest.$ac_ext <<_ACEOF
8362 /* end confdefs.h.  */
8363
8364 /* Override any gcc2 internal prototype to avoid an error.  */
8365 #ifdef __cplusplus
8366 extern "C"
8367 #endif
8368 /* We use char because int might match the return type of a gcc2
8369    builtin and then its argument prototype would still apply.  */
8370 char waddch ();
8371 int
8372 main ()
8373 {
8374 waddch ();
8375   ;
8376   return 0;
8377 }
8378 _ACEOF
8379 rm -f conftest.$ac_objext conftest$ac_exeext
8380 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8381   (eval $ac_link) 2>&5
8382   ac_status=$?
8383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8384   (exit $ac_status); } &&
8385          { ac_try='test -s conftest$ac_exeext'
8386   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8387   (eval $ac_try) 2>&5
8388   ac_status=$?
8389   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8390   (exit $ac_status); }; }; then
8391   ac_cv_lib_ncurses_waddch=yes
8392 else
8393   echo "$as_me: failed program was:" >&5
8394 sed 's/^/| /' conftest.$ac_ext >&5
8395
8396 ac_cv_lib_ncurses_waddch=no
8397 fi
8398 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8399 LIBS=$ac_check_lib_save_LIBS
8400 fi
8401 echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_waddch" >&5
8402 echo "${ECHO_T}$ac_cv_lib_ncurses_waddch" >&6
8403 if test $ac_cv_lib_ncurses_waddch = yes; then
8404
8405 cat >>confdefs.h <<\_ACEOF
8406 #define HAVE_LIBNCURSES 1
8407 _ACEOF
8408
8409              CURSESLIBS="-lncurses"
8410 else
8411
8412 for ac_header in curses.h
8413 do
8414 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8415 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8416   echo "$as_me:$LINENO: checking for $ac_header" >&5
8417 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8418 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8419   echo $ECHO_N "(cached) $ECHO_C" >&6
8420 fi
8421 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8422 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8423 else
8424   # Is the header compilable?
8425 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8426 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8427 cat >conftest.$ac_ext <<_ACEOF
8428 #line $LINENO "configure"
8429 /* confdefs.h.  */
8430 _ACEOF
8431 cat confdefs.h >>conftest.$ac_ext
8432 cat >>conftest.$ac_ext <<_ACEOF
8433 /* end confdefs.h.  */
8434 $ac_includes_default
8435 #include <$ac_header>
8436 _ACEOF
8437 rm -f conftest.$ac_objext
8438 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8439   (eval $ac_compile) 2>&5
8440   ac_status=$?
8441   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8442   (exit $ac_status); } &&
8443          { ac_try='test -s conftest.$ac_objext'
8444   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8445   (eval $ac_try) 2>&5
8446   ac_status=$?
8447   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8448   (exit $ac_status); }; }; then
8449   ac_header_compiler=yes
8450 else
8451   echo "$as_me: failed program was:" >&5
8452 sed 's/^/| /' conftest.$ac_ext >&5
8453
8454 ac_header_compiler=no
8455 fi
8456 rm -f conftest.$ac_objext conftest.$ac_ext
8457 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8458 echo "${ECHO_T}$ac_header_compiler" >&6
8459
8460 # Is the header present?
8461 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8462 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8463 cat >conftest.$ac_ext <<_ACEOF
8464 #line $LINENO "configure"
8465 /* confdefs.h.  */
8466 _ACEOF
8467 cat confdefs.h >>conftest.$ac_ext
8468 cat >>conftest.$ac_ext <<_ACEOF
8469 /* end confdefs.h.  */
8470 #include <$ac_header>
8471 _ACEOF
8472 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8473   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8474   ac_status=$?
8475   grep -v '^ *+' conftest.er1 >conftest.err
8476   rm -f conftest.er1
8477   cat conftest.err >&5
8478   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8479   (exit $ac_status); } >/dev/null; then
8480   if test -s conftest.err; then
8481     ac_cpp_err=$ac_c_preproc_warn_flag
8482   else
8483     ac_cpp_err=
8484   fi
8485 else
8486   ac_cpp_err=yes
8487 fi
8488 if test -z "$ac_cpp_err"; then
8489   ac_header_preproc=yes
8490 else
8491   echo "$as_me: failed program was:" >&5
8492 sed 's/^/| /' conftest.$ac_ext >&5
8493
8494   ac_header_preproc=no
8495 fi
8496 rm -f conftest.err conftest.$ac_ext
8497 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8498 echo "${ECHO_T}$ac_header_preproc" >&6
8499
8500 # So?  What about this header?
8501 case $ac_header_compiler:$ac_header_preproc in
8502   yes:no )
8503     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8504 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8505     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8506 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8507     (
8508       cat <<\_ASBOX
8509 ## ------------------------------------ ##
8510 ## Report this to bug-autoconf@gnu.org. ##
8511 ## ------------------------------------ ##
8512 _ASBOX
8513     ) |
8514       sed "s/^/$as_me: WARNING:     /" >&2
8515     ;;
8516   no:yes )
8517     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8518 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8519     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8520 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8521     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8522 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8523     (
8524       cat <<\_ASBOX
8525 ## ------------------------------------ ##
8526 ## Report this to bug-autoconf@gnu.org. ##
8527 ## ------------------------------------ ##
8528 _ASBOX
8529     ) |
8530       sed "s/^/$as_me: WARNING:     /" >&2
8531     ;;
8532 esac
8533 echo "$as_me:$LINENO: checking for $ac_header" >&5
8534 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8535 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8536   echo $ECHO_N "(cached) $ECHO_C" >&6
8537 else
8538   eval "$as_ac_Header=$ac_header_preproc"
8539 fi
8540 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8541 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8542
8543 fi
8544 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8545   cat >>confdefs.h <<_ACEOF
8546 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8547 _ACEOF
8548  echo "$as_me:$LINENO: checking for waddch in -lcurses" >&5
8549 echo $ECHO_N "checking for waddch in -lcurses... $ECHO_C" >&6
8550 if test "${ac_cv_lib_curses_waddch+set}" = set; then
8551   echo $ECHO_N "(cached) $ECHO_C" >&6
8552 else
8553   ac_check_lib_save_LIBS=$LIBS
8554 LIBS="-lcurses  $LIBS"
8555 cat >conftest.$ac_ext <<_ACEOF
8556 #line $LINENO "configure"
8557 /* confdefs.h.  */
8558 _ACEOF
8559 cat confdefs.h >>conftest.$ac_ext
8560 cat >>conftest.$ac_ext <<_ACEOF
8561 /* end confdefs.h.  */
8562
8563 /* Override any gcc2 internal prototype to avoid an error.  */
8564 #ifdef __cplusplus
8565 extern "C"
8566 #endif
8567 /* We use char because int might match the return type of a gcc2
8568    builtin and then its argument prototype would still apply.  */
8569 char waddch ();
8570 int
8571 main ()
8572 {
8573 waddch ();
8574   ;
8575   return 0;
8576 }
8577 _ACEOF
8578 rm -f conftest.$ac_objext conftest$ac_exeext
8579 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8580   (eval $ac_link) 2>&5
8581   ac_status=$?
8582   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8583   (exit $ac_status); } &&
8584          { ac_try='test -s conftest$ac_exeext'
8585   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8586   (eval $ac_try) 2>&5
8587   ac_status=$?
8588   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8589   (exit $ac_status); }; }; then
8590   ac_cv_lib_curses_waddch=yes
8591 else
8592   echo "$as_me: failed program was:" >&5
8593 sed 's/^/| /' conftest.$ac_ext >&5
8594
8595 ac_cv_lib_curses_waddch=no
8596 fi
8597 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8598 LIBS=$ac_check_lib_save_LIBS
8599 fi
8600 echo "$as_me:$LINENO: result: $ac_cv_lib_curses_waddch" >&5
8601 echo "${ECHO_T}$ac_cv_lib_curses_waddch" >&6
8602 if test $ac_cv_lib_curses_waddch = yes; then
8603
8604 cat >>confdefs.h <<\_ACEOF
8605 #define HAVE_LIBCURSES 1
8606 _ACEOF
8607
8608                       CURSESLIBS="-lcurses"
8609 fi
8610
8611 fi
8612
8613 done
8614
8615 fi
8616
8617 fi
8618
8619 done
8620
8621     saved_libs="$LIBS"
8622     LIBS="$CURSESLIBS $LIBS"
8623
8624
8625 for ac_func in getbkgd resizeterm
8626 do
8627 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8628 echo "$as_me:$LINENO: checking for $ac_func" >&5
8629 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8630 if eval "test \"\${$as_ac_var+set}\" = set"; then
8631   echo $ECHO_N "(cached) $ECHO_C" >&6
8632 else
8633   cat >conftest.$ac_ext <<_ACEOF
8634 #line $LINENO "configure"
8635 /* confdefs.h.  */
8636 _ACEOF
8637 cat confdefs.h >>conftest.$ac_ext
8638 cat >>conftest.$ac_ext <<_ACEOF
8639 /* end confdefs.h.  */
8640 /* System header to define __stub macros and hopefully few prototypes,
8641     which can conflict with char $ac_func (); below.
8642     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8643     <limits.h> exists even on freestanding compilers.  */
8644 #ifdef __STDC__
8645 # include <limits.h>
8646 #else
8647 # include <assert.h>
8648 #endif
8649 /* Override any gcc2 internal prototype to avoid an error.  */
8650 #ifdef __cplusplus
8651 extern "C"
8652 {
8653 #endif
8654 /* We use char because int might match the return type of a gcc2
8655    builtin and then its argument prototype would still apply.  */
8656 char $ac_func ();
8657 /* The GNU C library defines this for functions which it implements
8658     to always fail with ENOSYS.  Some functions are actually named
8659     something starting with __ and the normal name is an alias.  */
8660 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8661 choke me
8662 #else
8663 char (*f) () = $ac_func;
8664 #endif
8665 #ifdef __cplusplus
8666 }
8667 #endif
8668
8669 int
8670 main ()
8671 {
8672 return f != $ac_func;
8673   ;
8674   return 0;
8675 }
8676 _ACEOF
8677 rm -f conftest.$ac_objext conftest$ac_exeext
8678 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8679   (eval $ac_link) 2>&5
8680   ac_status=$?
8681   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8682   (exit $ac_status); } &&
8683          { ac_try='test -s conftest$ac_exeext'
8684   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8685   (eval $ac_try) 2>&5
8686   ac_status=$?
8687   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8688   (exit $ac_status); }; }; then
8689   eval "$as_ac_var=yes"
8690 else
8691   echo "$as_me: failed program was:" >&5
8692 sed 's/^/| /' conftest.$ac_ext >&5
8693
8694 eval "$as_ac_var=no"
8695 fi
8696 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8697 fi
8698 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8699 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8700 if test `eval echo '${'$as_ac_var'}'` = yes; then
8701   cat >>confdefs.h <<_ACEOF
8702 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8703 _ACEOF
8704
8705 fi
8706 done
8707
8708     LIBS="$saved_libs"
8709 fi
8710
8711
8712 # Extract the first word of "sane-config", so it can be a program name with args.
8713 set dummy sane-config; ac_word=$2
8714 echo "$as_me:$LINENO: checking for $ac_word" >&5
8715 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8716 if test "${ac_cv_prog_sane_devel+set}" = set; then
8717   echo $ECHO_N "(cached) $ECHO_C" >&6
8718 else
8719   if test -n "$sane_devel"; then
8720   ac_cv_prog_sane_devel="$sane_devel" # Let the user override the test.
8721 else
8722 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8723 for as_dir in $PATH
8724 do
8725   IFS=$as_save_IFS
8726   test -z "$as_dir" && as_dir=.
8727   for ac_exec_ext in '' $ac_executable_extensions; do
8728   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8729     ac_cv_prog_sane_devel="sane-config"
8730     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8731     break 2
8732   fi
8733 done
8734 done
8735
8736   test -z "$ac_cv_prog_sane_devel" && ac_cv_prog_sane_devel="no"
8737 fi
8738 fi
8739 sane_devel=$ac_cv_prog_sane_devel
8740 if test -n "$sane_devel"; then
8741   echo "$as_me:$LINENO: result: $sane_devel" >&5
8742 echo "${ECHO_T}$sane_devel" >&6
8743 else
8744   echo "$as_me:$LINENO: result: no" >&5
8745 echo "${ECHO_T}no" >&6
8746 fi
8747
8748 if test "$sane_devel" = "no"
8749 then
8750     SANELIBS=""
8751     SANEINCL=""
8752 else
8753     SANELIBS="`$sane_devel --libs`"
8754     SANEINCL="`$sane_devel --cflags`"
8755     ac_save_CPPFLAGS="$CPPFLAGS"
8756     ac_save_LIBS="$LIBS"
8757     CPPFLAGS="$CPPFLAGS $SANEINCL"
8758     LIBS="$LIBS $SANELIBS"
8759     if test "${ac_cv_header_sane_sane_h+set}" = set; then
8760   echo "$as_me:$LINENO: checking for sane/sane.h" >&5
8761 echo $ECHO_N "checking for sane/sane.h... $ECHO_C" >&6
8762 if test "${ac_cv_header_sane_sane_h+set}" = set; then
8763   echo $ECHO_N "(cached) $ECHO_C" >&6
8764 fi
8765 echo "$as_me:$LINENO: result: $ac_cv_header_sane_sane_h" >&5
8766 echo "${ECHO_T}$ac_cv_header_sane_sane_h" >&6
8767 else
8768   # Is the header compilable?
8769 echo "$as_me:$LINENO: checking sane/sane.h usability" >&5
8770 echo $ECHO_N "checking sane/sane.h usability... $ECHO_C" >&6
8771 cat >conftest.$ac_ext <<_ACEOF
8772 #line $LINENO "configure"
8773 /* confdefs.h.  */
8774 _ACEOF
8775 cat confdefs.h >>conftest.$ac_ext
8776 cat >>conftest.$ac_ext <<_ACEOF
8777 /* end confdefs.h.  */
8778 $ac_includes_default
8779 #include <sane/sane.h>
8780 _ACEOF
8781 rm -f conftest.$ac_objext
8782 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8783   (eval $ac_compile) 2>&5
8784   ac_status=$?
8785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8786   (exit $ac_status); } &&
8787          { ac_try='test -s conftest.$ac_objext'
8788   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8789   (eval $ac_try) 2>&5
8790   ac_status=$?
8791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8792   (exit $ac_status); }; }; then
8793   ac_header_compiler=yes
8794 else
8795   echo "$as_me: failed program was:" >&5
8796 sed 's/^/| /' conftest.$ac_ext >&5
8797
8798 ac_header_compiler=no
8799 fi
8800 rm -f conftest.$ac_objext conftest.$ac_ext
8801 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8802 echo "${ECHO_T}$ac_header_compiler" >&6
8803
8804 # Is the header present?
8805 echo "$as_me:$LINENO: checking sane/sane.h presence" >&5
8806 echo $ECHO_N "checking sane/sane.h presence... $ECHO_C" >&6
8807 cat >conftest.$ac_ext <<_ACEOF
8808 #line $LINENO "configure"
8809 /* confdefs.h.  */
8810 _ACEOF
8811 cat confdefs.h >>conftest.$ac_ext
8812 cat >>conftest.$ac_ext <<_ACEOF
8813 /* end confdefs.h.  */
8814 #include <sane/sane.h>
8815 _ACEOF
8816 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8817   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8818   ac_status=$?
8819   grep -v '^ *+' conftest.er1 >conftest.err
8820   rm -f conftest.er1
8821   cat conftest.err >&5
8822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8823   (exit $ac_status); } >/dev/null; then
8824   if test -s conftest.err; then
8825     ac_cpp_err=$ac_c_preproc_warn_flag
8826   else
8827     ac_cpp_err=
8828   fi
8829 else
8830   ac_cpp_err=yes
8831 fi
8832 if test -z "$ac_cpp_err"; then
8833   ac_header_preproc=yes
8834 else
8835   echo "$as_me: failed program was:" >&5
8836 sed 's/^/| /' conftest.$ac_ext >&5
8837
8838   ac_header_preproc=no
8839 fi
8840 rm -f conftest.err conftest.$ac_ext
8841 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8842 echo "${ECHO_T}$ac_header_preproc" >&6
8843
8844 # So?  What about this header?
8845 case $ac_header_compiler:$ac_header_preproc in
8846   yes:no )
8847     { echo "$as_me:$LINENO: WARNING: sane/sane.h: accepted by the compiler, rejected by the preprocessor!" >&5
8848 echo "$as_me: WARNING: sane/sane.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8849     { echo "$as_me:$LINENO: WARNING: sane/sane.h: proceeding with the preprocessor's result" >&5
8850 echo "$as_me: WARNING: sane/sane.h: proceeding with the preprocessor's result" >&2;}
8851     (
8852       cat <<\_ASBOX
8853 ## ------------------------------------ ##
8854 ## Report this to bug-autoconf@gnu.org. ##
8855 ## ------------------------------------ ##
8856 _ASBOX
8857     ) |
8858       sed "s/^/$as_me: WARNING:     /" >&2
8859     ;;
8860   no:yes )
8861     { echo "$as_me:$LINENO: WARNING: sane/sane.h: present but cannot be compiled" >&5
8862 echo "$as_me: WARNING: sane/sane.h: present but cannot be compiled" >&2;}
8863     { echo "$as_me:$LINENO: WARNING: sane/sane.h: check for missing prerequisite headers?" >&5
8864 echo "$as_me: WARNING: sane/sane.h: check for missing prerequisite headers?" >&2;}
8865     { echo "$as_me:$LINENO: WARNING: sane/sane.h: proceeding with the preprocessor's result" >&5
8866 echo "$as_me: WARNING: sane/sane.h: proceeding with the preprocessor's result" >&2;}
8867     (
8868       cat <<\_ASBOX
8869 ## ------------------------------------ ##
8870 ## Report this to bug-autoconf@gnu.org. ##
8871 ## ------------------------------------ ##
8872 _ASBOX
8873     ) |
8874       sed "s/^/$as_me: WARNING:     /" >&2
8875     ;;
8876 esac
8877 echo "$as_me:$LINENO: checking for sane/sane.h" >&5
8878 echo $ECHO_N "checking for sane/sane.h... $ECHO_C" >&6
8879 if test "${ac_cv_header_sane_sane_h+set}" = set; then
8880   echo $ECHO_N "(cached) $ECHO_C" >&6
8881 else
8882   ac_cv_header_sane_sane_h=$ac_header_preproc
8883 fi
8884 echo "$as_me:$LINENO: result: $ac_cv_header_sane_sane_h" >&5
8885 echo "${ECHO_T}$ac_cv_header_sane_sane_h" >&6
8886
8887 fi
8888 if test $ac_cv_header_sane_sane_h = yes; then
8889   echo "$as_me:$LINENO: checking for sane_open in -lsane" >&5
8890 echo $ECHO_N "checking for sane_open in -lsane... $ECHO_C" >&6
8891 if test "${ac_cv_lib_sane_sane_open+set}" = set; then
8892   echo $ECHO_N "(cached) $ECHO_C" >&6
8893 else
8894   ac_check_lib_save_LIBS=$LIBS
8895 LIBS="-lsane  $LIBS"
8896 cat >conftest.$ac_ext <<_ACEOF
8897 #line $LINENO "configure"
8898 /* confdefs.h.  */
8899 _ACEOF
8900 cat confdefs.h >>conftest.$ac_ext
8901 cat >>conftest.$ac_ext <<_ACEOF
8902 /* end confdefs.h.  */
8903
8904 /* Override any gcc2 internal prototype to avoid an error.  */
8905 #ifdef __cplusplus
8906 extern "C"
8907 #endif
8908 /* We use char because int might match the return type of a gcc2
8909    builtin and then its argument prototype would still apply.  */
8910 char sane_open ();
8911 int
8912 main ()
8913 {
8914 sane_open ();
8915   ;
8916   return 0;
8917 }
8918 _ACEOF
8919 rm -f conftest.$ac_objext conftest$ac_exeext
8920 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8921   (eval $ac_link) 2>&5
8922   ac_status=$?
8923   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8924   (exit $ac_status); } &&
8925          { ac_try='test -s conftest$ac_exeext'
8926   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8927   (eval $ac_try) 2>&5
8928   ac_status=$?
8929   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8930   (exit $ac_status); }; }; then
8931   ac_cv_lib_sane_sane_open=yes
8932 else
8933   echo "$as_me: failed program was:" >&5
8934 sed 's/^/| /' conftest.$ac_ext >&5
8935
8936 ac_cv_lib_sane_sane_open=no
8937 fi
8938 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8939 LIBS=$ac_check_lib_save_LIBS
8940 fi
8941 echo "$as_me:$LINENO: result: $ac_cv_lib_sane_sane_open" >&5
8942 echo "${ECHO_T}$ac_cv_lib_sane_sane_open" >&6
8943 if test $ac_cv_lib_sane_sane_open = yes; then
8944
8945 cat >>confdefs.h <<\_ACEOF
8946 #define HAVE_SANE 1
8947 _ACEOF
8948
8949 else
8950   SANELIBS=""
8951                                   SANEINCL=""
8952 fi
8953
8954 else
8955   SANELIBS=""
8956                     SANEINCL=""
8957 fi
8958
8959
8960     LIBS="$ac_save_LIBS"
8961     CPPFLAGS="$ac_save_CPPFLAGS"
8962 fi
8963
8964
8965
8966
8967 for ac_header in unicode/ubidi.h
8968 do
8969 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8970 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8971   echo "$as_me:$LINENO: checking for $ac_header" >&5
8972 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8973 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8974   echo $ECHO_N "(cached) $ECHO_C" >&6
8975 fi
8976 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8977 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8978 else
8979   # Is the header compilable?
8980 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8981 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8982 cat >conftest.$ac_ext <<_ACEOF
8983 #line $LINENO "configure"
8984 /* confdefs.h.  */
8985 _ACEOF
8986 cat confdefs.h >>conftest.$ac_ext
8987 cat >>conftest.$ac_ext <<_ACEOF
8988 /* end confdefs.h.  */
8989 $ac_includes_default
8990 #include <$ac_header>
8991 _ACEOF
8992 rm -f conftest.$ac_objext
8993 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8994   (eval $ac_compile) 2>&5
8995   ac_status=$?
8996   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8997   (exit $ac_status); } &&
8998          { ac_try='test -s conftest.$ac_objext'
8999   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9000   (eval $ac_try) 2>&5
9001   ac_status=$?
9002   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9003   (exit $ac_status); }; }; then
9004   ac_header_compiler=yes
9005 else
9006   echo "$as_me: failed program was:" >&5
9007 sed 's/^/| /' conftest.$ac_ext >&5
9008
9009 ac_header_compiler=no
9010 fi
9011 rm -f conftest.$ac_objext conftest.$ac_ext
9012 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9013 echo "${ECHO_T}$ac_header_compiler" >&6
9014
9015 # Is the header present?
9016 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9017 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9018 cat >conftest.$ac_ext <<_ACEOF
9019 #line $LINENO "configure"
9020 /* confdefs.h.  */
9021 _ACEOF
9022 cat confdefs.h >>conftest.$ac_ext
9023 cat >>conftest.$ac_ext <<_ACEOF
9024 /* end confdefs.h.  */
9025 #include <$ac_header>
9026 _ACEOF
9027 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9028   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9029   ac_status=$?
9030   grep -v '^ *+' conftest.er1 >conftest.err
9031   rm -f conftest.er1
9032   cat conftest.err >&5
9033   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9034   (exit $ac_status); } >/dev/null; then
9035   if test -s conftest.err; then
9036     ac_cpp_err=$ac_c_preproc_warn_flag
9037   else
9038     ac_cpp_err=
9039   fi
9040 else
9041   ac_cpp_err=yes
9042 fi
9043 if test -z "$ac_cpp_err"; then
9044   ac_header_preproc=yes
9045 else
9046   echo "$as_me: failed program was:" >&5
9047 sed 's/^/| /' conftest.$ac_ext >&5
9048
9049   ac_header_preproc=no
9050 fi
9051 rm -f conftest.err conftest.$ac_ext
9052 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9053 echo "${ECHO_T}$ac_header_preproc" >&6
9054
9055 # So?  What about this header?
9056 case $ac_header_compiler:$ac_header_preproc in
9057   yes:no )
9058     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9059 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9060     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9061 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9062     (
9063       cat <<\_ASBOX
9064 ## ------------------------------------ ##
9065 ## Report this to bug-autoconf@gnu.org. ##
9066 ## ------------------------------------ ##
9067 _ASBOX
9068     ) |
9069       sed "s/^/$as_me: WARNING:     /" >&2
9070     ;;
9071   no:yes )
9072     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9073 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9074     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9075 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9076     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9077 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9078     (
9079       cat <<\_ASBOX
9080 ## ------------------------------------ ##
9081 ## Report this to bug-autoconf@gnu.org. ##
9082 ## ------------------------------------ ##
9083 _ASBOX
9084     ) |
9085       sed "s/^/$as_me: WARNING:     /" >&2
9086     ;;
9087 esac
9088 echo "$as_me:$LINENO: checking for $ac_header" >&5
9089 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9090 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9091   echo $ECHO_N "(cached) $ECHO_C" >&6
9092 else
9093   eval "$as_ac_Header=$ac_header_preproc"
9094 fi
9095 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9096 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9097
9098 fi
9099 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9100   cat >>confdefs.h <<_ACEOF
9101 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9102 _ACEOF
9103
9104 fi
9105
9106 done
9107
9108 if test "$ac_cv_header_unicode_ubidi_h" = "yes"
9109 then
9110     echo "$as_me:$LINENO: checking whether we can statically link the ICU libraries" >&5
9111 echo $ECHO_N "checking whether we can statically link the ICU libraries... $ECHO_C" >&6
9112 if test "${ac_cv_lib_icu+set}" = set; then
9113   echo $ECHO_N "(cached) $ECHO_C" >&6
9114 else
9115   saved_libs="$LIBS"
9116          ICU_LIB_DIR="${ICU_LIB_DIR-/usr/lib}"
9117          ICUUC_LIB="${ICUUC_LIB-$ICU_LIB_DIR/libicuuc.a}"
9118          ICUDATA_LIB="${ICUDATA_LIB-$ICU_LIB_DIR/libicudata.a}"
9119          LIBS="$LIBS $ICUUC_LIB $ICUDATA_LIB -lstdc++ -lgcc_s"
9120          cat >conftest.$ac_ext <<_ACEOF
9121 #line $LINENO "configure"
9122 /* confdefs.h.  */
9123 _ACEOF
9124 cat confdefs.h >>conftest.$ac_ext
9125 cat >>conftest.$ac_ext <<_ACEOF
9126 /* end confdefs.h.  */
9127 #include <unicode/ubidi.h>
9128 int
9129 main ()
9130 {
9131 ubidi_open()
9132   ;
9133   return 0;
9134 }
9135 _ACEOF
9136 rm -f conftest.$ac_objext conftest$ac_exeext
9137 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9138   (eval $ac_link) 2>&5
9139   ac_status=$?
9140   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9141   (exit $ac_status); } &&
9142          { ac_try='test -s conftest$ac_exeext'
9143   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9144   (eval $ac_try) 2>&5
9145   ac_status=$?
9146   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9147   (exit $ac_status); }; }; then
9148   ac_cv_lib_icu="yes"
9149 else
9150   echo "$as_me: failed program was:" >&5
9151 sed 's/^/| /' conftest.$ac_ext >&5
9152
9153 ac_cv_lib_icu="no"
9154 fi
9155 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9156         LIBS="$saved_libs"
9157 fi
9158 echo "$as_me:$LINENO: result: $ac_cv_lib_icu" >&5
9159 echo "${ECHO_T}$ac_cv_lib_icu" >&6
9160     if test "$ac_cv_lib_icu" = "yes"
9161     then
9162
9163 cat >>confdefs.h <<\_ACEOF
9164 #define HAVE_ICU 1
9165 _ACEOF
9166
9167         ICULIBS="$ICUUC_LIB $ICUDATA_LIB -lstdc++ -lgcc_s"
9168
9169     fi
9170 fi
9171
9172 echo "$as_me:$LINENO: checking for FT_Init_FreeType in -lfreetype" >&5
9173 echo $ECHO_N "checking for FT_Init_FreeType in -lfreetype... $ECHO_C" >&6
9174 if test "${ac_cv_lib_freetype_FT_Init_FreeType+set}" = set; then
9175   echo $ECHO_N "(cached) $ECHO_C" >&6
9176 else
9177   ac_check_lib_save_LIBS=$LIBS
9178 LIBS="-lfreetype $X_LIBS $LIBS"
9179 cat >conftest.$ac_ext <<_ACEOF
9180 #line $LINENO "configure"
9181 /* confdefs.h.  */
9182 _ACEOF
9183 cat confdefs.h >>conftest.$ac_ext
9184 cat >>conftest.$ac_ext <<_ACEOF
9185 /* end confdefs.h.  */
9186
9187 /* Override any gcc2 internal prototype to avoid an error.  */
9188 #ifdef __cplusplus
9189 extern "C"
9190 #endif
9191 /* We use char because int might match the return type of a gcc2
9192    builtin and then its argument prototype would still apply.  */
9193 char FT_Init_FreeType ();
9194 int
9195 main ()
9196 {
9197 FT_Init_FreeType ();
9198   ;
9199   return 0;
9200 }
9201 _ACEOF
9202 rm -f conftest.$ac_objext conftest$ac_exeext
9203 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9204   (eval $ac_link) 2>&5
9205   ac_status=$?
9206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9207   (exit $ac_status); } &&
9208          { ac_try='test -s conftest$ac_exeext'
9209   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9210   (eval $ac_try) 2>&5
9211   ac_status=$?
9212   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9213   (exit $ac_status); }; }; then
9214   ac_cv_lib_freetype_FT_Init_FreeType=yes
9215 else
9216   echo "$as_me: failed program was:" >&5
9217 sed 's/^/| /' conftest.$ac_ext >&5
9218
9219 ac_cv_lib_freetype_FT_Init_FreeType=no
9220 fi
9221 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9222 LIBS=$ac_check_lib_save_LIBS
9223 fi
9224 echo "$as_me:$LINENO: result: $ac_cv_lib_freetype_FT_Init_FreeType" >&5
9225 echo "${ECHO_T}$ac_cv_lib_freetype_FT_Init_FreeType" >&6
9226 if test $ac_cv_lib_freetype_FT_Init_FreeType = yes; then
9227   ft_lib=yes
9228 else
9229   ft_lib=no
9230 fi
9231
9232 if test "$ft_lib" = "no"
9233 then
9234     FREETYPEINCL=""
9235     wine_cv_msg_freetype=no
9236 else
9237     # Extract the first word of "freetype-config", so it can be a program name with args.
9238 set dummy freetype-config; ac_word=$2
9239 echo "$as_me:$LINENO: checking for $ac_word" >&5
9240 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9241 if test "${ac_cv_prog_ft_devel+set}" = set; then
9242   echo $ECHO_N "(cached) $ECHO_C" >&6
9243 else
9244   if test -n "$ft_devel"; then
9245   ac_cv_prog_ft_devel="$ft_devel" # Let the user override the test.
9246 else
9247 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9248 for as_dir in $PATH
9249 do
9250   IFS=$as_save_IFS
9251   test -z "$as_dir" && as_dir=.
9252   for ac_exec_ext in '' $ac_executable_extensions; do
9253   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9254     ac_cv_prog_ft_devel="freetype-config"
9255     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9256     break 2
9257   fi
9258 done
9259 done
9260
9261   test -z "$ac_cv_prog_ft_devel" && ac_cv_prog_ft_devel="no"
9262 fi
9263 fi
9264 ft_devel=$ac_cv_prog_ft_devel
9265 if test -n "$ft_devel"; then
9266   echo "$as_me:$LINENO: result: $ft_devel" >&5
9267 echo "${ECHO_T}$ft_devel" >&6
9268 else
9269   echo "$as_me:$LINENO: result: no" >&5
9270 echo "${ECHO_T}no" >&6
9271 fi
9272
9273     if test "$ft_devel" = "no"
9274     then
9275         # Extract the first word of "freetype2-config", so it can be a program name with args.
9276 set dummy freetype2-config; ac_word=$2
9277 echo "$as_me:$LINENO: checking for $ac_word" >&5
9278 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9279 if test "${ac_cv_prog_ft_devel2+set}" = set; then
9280   echo $ECHO_N "(cached) $ECHO_C" >&6
9281 else
9282   if test -n "$ft_devel2"; then
9283   ac_cv_prog_ft_devel2="$ft_devel2" # Let the user override the test.
9284 else
9285 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9286 for as_dir in $PATH
9287 do
9288   IFS=$as_save_IFS
9289   test -z "$as_dir" && as_dir=.
9290   for ac_exec_ext in '' $ac_executable_extensions; do
9291   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9292     ac_cv_prog_ft_devel2="freetype2-config"
9293     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9294     break 2
9295   fi
9296 done
9297 done
9298
9299   test -z "$ac_cv_prog_ft_devel2" && ac_cv_prog_ft_devel2="no"
9300 fi
9301 fi
9302 ft_devel2=$ac_cv_prog_ft_devel2
9303 if test -n "$ft_devel2"; then
9304   echo "$as_me:$LINENO: result: $ft_devel2" >&5
9305 echo "${ECHO_T}$ft_devel2" >&6
9306 else
9307   echo "$as_me:$LINENO: result: no" >&5
9308 echo "${ECHO_T}no" >&6
9309 fi
9310
9311         if test "$ft_devel2" = "freetype2-config"
9312         then
9313                 ft_devel=$ft_devel2
9314         fi
9315     fi
9316     if test "$ft_devel" = "no"
9317     then
9318         FREETYPEINCL=""
9319         wine_cv_msg_freetype=yes
9320     else
9321         FREETYPEINCL=`$ft_devel --cflags`
9322         ac_save_CPPFLAGS="$CPPFLAGS"
9323         CPPFLAGS="$FREETYPEINCL $CPPFLAGS"
9324
9325
9326
9327
9328
9329
9330
9331
9332
9333 for ac_header in ft2build.h \
9334                          freetype/freetype.h \
9335                          freetype/ftglyph.h \
9336                          freetype/tttables.h \
9337                          freetype/ftnames.h \
9338                          freetype/ftsnames.h \
9339                          freetype/ttnameid.h \
9340                          freetype/ftoutln.h \
9341                          freetype/internal/sfnt.h
9342 do
9343 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9344 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9345   echo "$as_me:$LINENO: checking for $ac_header" >&5
9346 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9347 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9348   echo $ECHO_N "(cached) $ECHO_C" >&6
9349 fi
9350 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9351 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9352 else
9353   # Is the header compilable?
9354 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9355 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9356 cat >conftest.$ac_ext <<_ACEOF
9357 #line $LINENO "configure"
9358 /* confdefs.h.  */
9359 _ACEOF
9360 cat confdefs.h >>conftest.$ac_ext
9361 cat >>conftest.$ac_ext <<_ACEOF
9362 /* end confdefs.h.  */
9363 $ac_includes_default
9364 #include <$ac_header>
9365 _ACEOF
9366 rm -f conftest.$ac_objext
9367 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9368   (eval $ac_compile) 2>&5
9369   ac_status=$?
9370   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9371   (exit $ac_status); } &&
9372          { ac_try='test -s conftest.$ac_objext'
9373   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9374   (eval $ac_try) 2>&5
9375   ac_status=$?
9376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9377   (exit $ac_status); }; }; then
9378   ac_header_compiler=yes
9379 else
9380   echo "$as_me: failed program was:" >&5
9381 sed 's/^/| /' conftest.$ac_ext >&5
9382
9383 ac_header_compiler=no
9384 fi
9385 rm -f conftest.$ac_objext conftest.$ac_ext
9386 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9387 echo "${ECHO_T}$ac_header_compiler" >&6
9388
9389 # Is the header present?
9390 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9391 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9392 cat >conftest.$ac_ext <<_ACEOF
9393 #line $LINENO "configure"
9394 /* confdefs.h.  */
9395 _ACEOF
9396 cat confdefs.h >>conftest.$ac_ext
9397 cat >>conftest.$ac_ext <<_ACEOF
9398 /* end confdefs.h.  */
9399 #include <$ac_header>
9400 _ACEOF
9401 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9402   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9403   ac_status=$?
9404   grep -v '^ *+' conftest.er1 >conftest.err
9405   rm -f conftest.er1
9406   cat conftest.err >&5
9407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9408   (exit $ac_status); } >/dev/null; then
9409   if test -s conftest.err; then
9410     ac_cpp_err=$ac_c_preproc_warn_flag
9411   else
9412     ac_cpp_err=
9413   fi
9414 else
9415   ac_cpp_err=yes
9416 fi
9417 if test -z "$ac_cpp_err"; then
9418   ac_header_preproc=yes
9419 else
9420   echo "$as_me: failed program was:" >&5
9421 sed 's/^/| /' conftest.$ac_ext >&5
9422
9423   ac_header_preproc=no
9424 fi
9425 rm -f conftest.err conftest.$ac_ext
9426 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9427 echo "${ECHO_T}$ac_header_preproc" >&6
9428
9429 # So?  What about this header?
9430 case $ac_header_compiler:$ac_header_preproc in
9431   yes:no )
9432     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9433 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9434     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9435 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9436     (
9437       cat <<\_ASBOX
9438 ## ------------------------------------ ##
9439 ## Report this to bug-autoconf@gnu.org. ##
9440 ## ------------------------------------ ##
9441 _ASBOX
9442     ) |
9443       sed "s/^/$as_me: WARNING:     /" >&2
9444     ;;
9445   no:yes )
9446     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9447 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9448     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9449 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9450     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9451 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9452     (
9453       cat <<\_ASBOX
9454 ## ------------------------------------ ##
9455 ## Report this to bug-autoconf@gnu.org. ##
9456 ## ------------------------------------ ##
9457 _ASBOX
9458     ) |
9459       sed "s/^/$as_me: WARNING:     /" >&2
9460     ;;
9461 esac
9462 echo "$as_me:$LINENO: checking for $ac_header" >&5
9463 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9464 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9465   echo $ECHO_N "(cached) $ECHO_C" >&6
9466 else
9467   eval "$as_ac_Header=$ac_header_preproc"
9468 fi
9469 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9470 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9471
9472 fi
9473 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9474   cat >>confdefs.h <<_ACEOF
9475 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9476 _ACEOF
9477
9478 fi
9479
9480 done
9481
9482         cat >conftest.$ac_ext <<_ACEOF
9483 #line $LINENO "configure"
9484 /* confdefs.h.  */
9485 _ACEOF
9486 cat confdefs.h >>conftest.$ac_ext
9487 cat >>conftest.$ac_ext <<_ACEOF
9488 /* end confdefs.h.  */
9489 #include <ft2build.h>
9490                     #include <freetype/fttrigon.h>
9491 _ACEOF
9492 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9493   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9494   ac_status=$?
9495   grep -v '^ *+' conftest.er1 >conftest.err
9496   rm -f conftest.er1
9497   cat conftest.err >&5
9498   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9499   (exit $ac_status); } >/dev/null; then
9500   if test -s conftest.err; then
9501     ac_cpp_err=$ac_c_preproc_warn_flag
9502   else
9503     ac_cpp_err=
9504   fi
9505 else
9506   ac_cpp_err=yes
9507 fi
9508 if test -z "$ac_cpp_err"; then
9509
9510 cat >>confdefs.h <<\_ACEOF
9511 #define HAVE_FREETYPE_FTTRIGON_H 1
9512 _ACEOF
9513
9514                     wine_cv_fttrigon=yes
9515 else
9516   echo "$as_me: failed program was:" >&5
9517 sed 's/^/| /' conftest.$ac_ext >&5
9518
9519   wine_cv_fttrigon=no
9520 fi
9521 rm -f conftest.err conftest.$ac_ext
9522         CPPFLAGS="$ac_save_CPPFLAGS"
9523                 if test "$ac_cv_header_freetype_freetype_h" = "yes" -a "$wine_cv_fttrigon" = "yes"
9524         then
9525
9526 cat >>confdefs.h <<\_ACEOF
9527 #define HAVE_FREETYPE 1
9528 _ACEOF
9529
9530             wine_cv_msg_freetype=no
9531         else
9532             FREETYPEINCL=""
9533             wine_cv_msg_freetype=yes
9534         fi
9535     fi
9536 fi
9537
9538
9539 echo "$as_me:$LINENO: checking for parport header/ppdev.h" >&5
9540 echo $ECHO_N "checking for parport header/ppdev.h... $ECHO_C" >&6
9541 if test "${ac_cv_c_ppdev+set}" = set; then
9542   echo $ECHO_N "(cached) $ECHO_C" >&6
9543 else
9544   cat >conftest.$ac_ext <<_ACEOF
9545 #line $LINENO "configure"
9546 /* confdefs.h.  */
9547 _ACEOF
9548 cat confdefs.h >>conftest.$ac_ext
9549 cat >>conftest.$ac_ext <<_ACEOF
9550 /* end confdefs.h.  */
9551 #include <linux/ppdev.h>
9552 int
9553 main ()
9554 {
9555 ioctl (1,PPCLAIM,0)
9556   ;
9557   return 0;
9558 }
9559 _ACEOF
9560 rm -f conftest.$ac_objext
9561 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9562   (eval $ac_compile) 2>&5
9563   ac_status=$?
9564   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9565   (exit $ac_status); } &&
9566          { ac_try='test -s conftest.$ac_objext'
9567   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9568   (eval $ac_try) 2>&5
9569   ac_status=$?
9570   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9571   (exit $ac_status); }; }; then
9572   ac_cv_c_ppdev="yes"
9573 else
9574   echo "$as_me: failed program was:" >&5
9575 sed 's/^/| /' conftest.$ac_ext >&5
9576
9577 ac_cv_c_ppdev="no"
9578 fi
9579 rm -f conftest.$ac_objext conftest.$ac_ext
9580
9581 fi
9582 echo "$as_me:$LINENO: result: $ac_cv_c_ppdev" >&5
9583 echo "${ECHO_T}$ac_cv_c_ppdev" >&6
9584 if test "$ac_cv_c_ppdev" = "yes"
9585 then
9586
9587 cat >>confdefs.h <<\_ACEOF
9588 #define HAVE_PPDEV 1
9589 _ACEOF
9590
9591 fi
9592
9593 echo "$as_me:$LINENO: checking for va_copy" >&5
9594 echo $ECHO_N "checking for va_copy... $ECHO_C" >&6
9595 if test "${ac_cv_c_va_copy+set}" = set; then
9596   echo $ECHO_N "(cached) $ECHO_C" >&6
9597 else
9598   cat >conftest.$ac_ext <<_ACEOF
9599 #line $LINENO "configure"
9600 /* confdefs.h.  */
9601 _ACEOF
9602 cat confdefs.h >>conftest.$ac_ext
9603 cat >>conftest.$ac_ext <<_ACEOF
9604 /* end confdefs.h.  */
9605 #include <stdarg.h>
9606 int
9607 main ()
9608 {
9609 va_list ap1, ap2;
9610     va_copy(ap1,ap2);
9611
9612   ;
9613   return 0;
9614 }
9615 _ACEOF
9616 rm -f conftest.$ac_objext conftest$ac_exeext
9617 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9618   (eval $ac_link) 2>&5
9619   ac_status=$?
9620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9621   (exit $ac_status); } &&
9622          { ac_try='test -s conftest$ac_exeext'
9623   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9624   (eval $ac_try) 2>&5
9625   ac_status=$?
9626   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9627   (exit $ac_status); }; }; then
9628   ac_cv_c_va_copy="yes"
9629 else
9630   echo "$as_me: failed program was:" >&5
9631 sed 's/^/| /' conftest.$ac_ext >&5
9632
9633 ac_cv_c_va_copy="no"
9634 fi
9635 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9636
9637 fi
9638 echo "$as_me:$LINENO: result: $ac_cv_c_va_copy" >&5
9639 echo "${ECHO_T}$ac_cv_c_va_copy" >&6
9640 if test "$ac_cv_c_va_copy" = "yes"
9641 then
9642
9643 cat >>confdefs.h <<\_ACEOF
9644 #define HAVE_VA_COPY 1
9645 _ACEOF
9646
9647 fi
9648 echo "$as_me:$LINENO: checking for __va_copy" >&5
9649 echo $ECHO_N "checking for __va_copy... $ECHO_C" >&6
9650 if test "${ac_cv_c___va_copy+set}" = set; then
9651   echo $ECHO_N "(cached) $ECHO_C" >&6
9652 else
9653   cat >conftest.$ac_ext <<_ACEOF
9654 #line $LINENO "configure"
9655 /* confdefs.h.  */
9656 _ACEOF
9657 cat confdefs.h >>conftest.$ac_ext
9658 cat >>conftest.$ac_ext <<_ACEOF
9659 /* end confdefs.h.  */
9660 #include <stdarg.h>
9661 int
9662 main ()
9663 {
9664 va_list ap1, ap2;
9665     __va_copy(ap1,ap2);
9666
9667   ;
9668   return 0;
9669 }
9670 _ACEOF
9671 rm -f conftest.$ac_objext conftest$ac_exeext
9672 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9673   (eval $ac_link) 2>&5
9674   ac_status=$?
9675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9676   (exit $ac_status); } &&
9677          { ac_try='test -s conftest$ac_exeext'
9678   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9679   (eval $ac_try) 2>&5
9680   ac_status=$?
9681   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9682   (exit $ac_status); }; }; then
9683   ac_cv_c___va_copy="yes"
9684 else
9685   echo "$as_me: failed program was:" >&5
9686 sed 's/^/| /' conftest.$ac_ext >&5
9687
9688 ac_cv_c___va_copy="no"
9689 fi
9690 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9691
9692 fi
9693 echo "$as_me:$LINENO: result: $ac_cv_c___va_copy" >&5
9694 echo "${ECHO_T}$ac_cv_c___va_copy" >&6
9695 if test "$ac_cv_c___va_copy" = "yes"
9696 then
9697
9698 cat >>confdefs.h <<\_ACEOF
9699 #define HAVE___VA_COPY 1
9700 _ACEOF
9701
9702 fi
9703
9704 echo "$as_me:$LINENO: checking for sigsetjmp" >&5
9705 echo $ECHO_N "checking for sigsetjmp... $ECHO_C" >&6
9706 if test "${ac_cv_c_sigsetjmp+set}" = set; then
9707   echo $ECHO_N "(cached) $ECHO_C" >&6
9708 else
9709   cat >conftest.$ac_ext <<_ACEOF
9710 #line $LINENO "configure"
9711 /* confdefs.h.  */
9712 _ACEOF
9713 cat confdefs.h >>conftest.$ac_ext
9714 cat >>conftest.$ac_ext <<_ACEOF
9715 /* end confdefs.h.  */
9716 #include <setjmp.h>
9717 int
9718 main ()
9719 {
9720 sigjmp_buf buf;
9721     sigsetjmp( buf, 1 );
9722     siglongjmp( buf, 1 );
9723   ;
9724   return 0;
9725 }
9726 _ACEOF
9727 rm -f conftest.$ac_objext conftest$ac_exeext
9728 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9729   (eval $ac_link) 2>&5
9730   ac_status=$?
9731   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9732   (exit $ac_status); } &&
9733          { ac_try='test -s conftest$ac_exeext'
9734   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9735   (eval $ac_try) 2>&5
9736   ac_status=$?
9737   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9738   (exit $ac_status); }; }; then
9739   ac_cv_c_sigsetjmp="yes"
9740 else
9741   echo "$as_me: failed program was:" >&5
9742 sed 's/^/| /' conftest.$ac_ext >&5
9743
9744 ac_cv_c_sigsetjmp="no"
9745 fi
9746 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9747
9748 fi
9749 echo "$as_me:$LINENO: result: $ac_cv_c_sigsetjmp" >&5
9750 echo "${ECHO_T}$ac_cv_c_sigsetjmp" >&6
9751 if test "$ac_cv_c_sigsetjmp" = "yes"
9752 then
9753
9754 cat >>confdefs.h <<\_ACEOF
9755 #define HAVE_SIGSETJMP 1
9756 _ACEOF
9757
9758 fi
9759
9760 echo "$as_me:$LINENO: checking for pthread_rwlock_t" >&5
9761 echo $ECHO_N "checking for pthread_rwlock_t... $ECHO_C" >&6
9762 if test "${ac_cv_type_pthread_rwlock_t+set}" = set; then
9763   echo $ECHO_N "(cached) $ECHO_C" >&6
9764 else
9765   cat >conftest.$ac_ext <<_ACEOF
9766 #line $LINENO "configure"
9767 /* confdefs.h.  */
9768 _ACEOF
9769 cat confdefs.h >>conftest.$ac_ext
9770 cat >>conftest.$ac_ext <<_ACEOF
9771 /* end confdefs.h.  */
9772 #define _GNU_SOURCE
9773 #include <pthread.h>
9774
9775 int
9776 main ()
9777 {
9778 if ((pthread_rwlock_t *) 0)
9779   return 0;
9780 if (sizeof (pthread_rwlock_t))
9781   return 0;
9782   ;
9783   return 0;
9784 }
9785 _ACEOF
9786 rm -f conftest.$ac_objext
9787 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9788   (eval $ac_compile) 2>&5
9789   ac_status=$?
9790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9791   (exit $ac_status); } &&
9792          { ac_try='test -s conftest.$ac_objext'
9793   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9794   (eval $ac_try) 2>&5
9795   ac_status=$?
9796   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9797   (exit $ac_status); }; }; then
9798   ac_cv_type_pthread_rwlock_t=yes
9799 else
9800   echo "$as_me: failed program was:" >&5
9801 sed 's/^/| /' conftest.$ac_ext >&5
9802
9803 ac_cv_type_pthread_rwlock_t=no
9804 fi
9805 rm -f conftest.$ac_objext conftest.$ac_ext
9806 fi
9807 echo "$as_me:$LINENO: result: $ac_cv_type_pthread_rwlock_t" >&5
9808 echo "${ECHO_T}$ac_cv_type_pthread_rwlock_t" >&6
9809 if test $ac_cv_type_pthread_rwlock_t = yes; then
9810
9811 cat >>confdefs.h <<_ACEOF
9812 #define HAVE_PTHREAD_RWLOCK_T 1
9813 _ACEOF
9814
9815
9816 fi
9817 echo "$as_me:$LINENO: checking for pthread_rwlockattr_t" >&5
9818 echo $ECHO_N "checking for pthread_rwlockattr_t... $ECHO_C" >&6
9819 if test "${ac_cv_type_pthread_rwlockattr_t+set}" = set; then
9820   echo $ECHO_N "(cached) $ECHO_C" >&6
9821 else
9822   cat >conftest.$ac_ext <<_ACEOF
9823 #line $LINENO "configure"
9824 /* confdefs.h.  */
9825 _ACEOF
9826 cat confdefs.h >>conftest.$ac_ext
9827 cat >>conftest.$ac_ext <<_ACEOF
9828 /* end confdefs.h.  */
9829 #define _GNU_SOURCE
9830 #include <pthread.h>
9831
9832 int
9833 main ()
9834 {
9835 if ((pthread_rwlockattr_t *) 0)
9836   return 0;
9837 if (sizeof (pthread_rwlockattr_t))
9838   return 0;
9839   ;
9840   return 0;
9841 }
9842 _ACEOF
9843 rm -f conftest.$ac_objext
9844 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9845   (eval $ac_compile) 2>&5
9846   ac_status=$?
9847   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9848   (exit $ac_status); } &&
9849          { ac_try='test -s conftest.$ac_objext'
9850   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9851   (eval $ac_try) 2>&5
9852   ac_status=$?
9853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9854   (exit $ac_status); }; }; then
9855   ac_cv_type_pthread_rwlockattr_t=yes
9856 else
9857   echo "$as_me: failed program was:" >&5
9858 sed 's/^/| /' conftest.$ac_ext >&5
9859
9860 ac_cv_type_pthread_rwlockattr_t=no
9861 fi
9862 rm -f conftest.$ac_objext conftest.$ac_ext
9863 fi
9864 echo "$as_me:$LINENO: result: $ac_cv_type_pthread_rwlockattr_t" >&5
9865 echo "${ECHO_T}$ac_cv_type_pthread_rwlockattr_t" >&6
9866 if test $ac_cv_type_pthread_rwlockattr_t = yes; then
9867
9868 cat >>confdefs.h <<_ACEOF
9869 #define HAVE_PTHREAD_RWLOCKATTR_T 1
9870 _ACEOF
9871
9872
9873 fi
9874
9875
9876 ac_save_LIBS="$LIBS"
9877 LIBS="$LIBS $LIBPTHREAD"
9878
9879 for ac_func in pthread_getattr_np
9880 do
9881 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9882 echo "$as_me:$LINENO: checking for $ac_func" >&5
9883 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9884 if eval "test \"\${$as_ac_var+set}\" = set"; then
9885   echo $ECHO_N "(cached) $ECHO_C" >&6
9886 else
9887   cat >conftest.$ac_ext <<_ACEOF
9888 #line $LINENO "configure"
9889 /* confdefs.h.  */
9890 _ACEOF
9891 cat confdefs.h >>conftest.$ac_ext
9892 cat >>conftest.$ac_ext <<_ACEOF
9893 /* end confdefs.h.  */
9894 /* System header to define __stub macros and hopefully few prototypes,
9895     which can conflict with char $ac_func (); below.
9896     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9897     <limits.h> exists even on freestanding compilers.  */
9898 #ifdef __STDC__
9899 # include <limits.h>
9900 #else
9901 # include <assert.h>
9902 #endif
9903 /* Override any gcc2 internal prototype to avoid an error.  */
9904 #ifdef __cplusplus
9905 extern "C"
9906 {
9907 #endif
9908 /* We use char because int might match the return type of a gcc2
9909    builtin and then its argument prototype would still apply.  */
9910 char $ac_func ();
9911 /* The GNU C library defines this for functions which it implements
9912     to always fail with ENOSYS.  Some functions are actually named
9913     something starting with __ and the normal name is an alias.  */
9914 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9915 choke me
9916 #else
9917 char (*f) () = $ac_func;
9918 #endif
9919 #ifdef __cplusplus
9920 }
9921 #endif
9922
9923 int
9924 main ()
9925 {
9926 return f != $ac_func;
9927   ;
9928   return 0;
9929 }
9930 _ACEOF
9931 rm -f conftest.$ac_objext conftest$ac_exeext
9932 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9933   (eval $ac_link) 2>&5
9934   ac_status=$?
9935   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9936   (exit $ac_status); } &&
9937          { ac_try='test -s conftest$ac_exeext'
9938   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9939   (eval $ac_try) 2>&5
9940   ac_status=$?
9941   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9942   (exit $ac_status); }; }; then
9943   eval "$as_ac_var=yes"
9944 else
9945   echo "$as_me: failed program was:" >&5
9946 sed 's/^/| /' conftest.$ac_ext >&5
9947
9948 eval "$as_ac_var=no"
9949 fi
9950 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9951 fi
9952 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9953 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9954 if test `eval echo '${'$as_ac_var'}'` = yes; then
9955   cat >>confdefs.h <<_ACEOF
9956 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9957 _ACEOF
9958
9959 fi
9960 done
9961
9962 LIBS="$ac_save_LIBS"
9963
9964
9965
9966
9967 for ac_header in sys/soundcard.h machine/soundcard.h soundcard.h
9968 do
9969 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9970 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9971   echo "$as_me:$LINENO: checking for $ac_header" >&5
9972 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9973 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9974   echo $ECHO_N "(cached) $ECHO_C" >&6
9975 fi
9976 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9977 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9978 else
9979   # Is the header compilable?
9980 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9981 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9982 cat >conftest.$ac_ext <<_ACEOF
9983 #line $LINENO "configure"
9984 /* confdefs.h.  */
9985 _ACEOF
9986 cat confdefs.h >>conftest.$ac_ext
9987 cat >>conftest.$ac_ext <<_ACEOF
9988 /* end confdefs.h.  */
9989 $ac_includes_default
9990 #include <$ac_header>
9991 _ACEOF
9992 rm -f conftest.$ac_objext
9993 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9994   (eval $ac_compile) 2>&5
9995   ac_status=$?
9996   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9997   (exit $ac_status); } &&
9998          { ac_try='test -s conftest.$ac_objext'
9999   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10000   (eval $ac_try) 2>&5
10001   ac_status=$?
10002   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10003   (exit $ac_status); }; }; then
10004   ac_header_compiler=yes
10005 else
10006   echo "$as_me: failed program was:" >&5
10007 sed 's/^/| /' conftest.$ac_ext >&5
10008
10009 ac_header_compiler=no
10010 fi
10011 rm -f conftest.$ac_objext conftest.$ac_ext
10012 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10013 echo "${ECHO_T}$ac_header_compiler" >&6
10014
10015 # Is the header present?
10016 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10017 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10018 cat >conftest.$ac_ext <<_ACEOF
10019 #line $LINENO "configure"
10020 /* confdefs.h.  */
10021 _ACEOF
10022 cat confdefs.h >>conftest.$ac_ext
10023 cat >>conftest.$ac_ext <<_ACEOF
10024 /* end confdefs.h.  */
10025 #include <$ac_header>
10026 _ACEOF
10027 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10028   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10029   ac_status=$?
10030   grep -v '^ *+' conftest.er1 >conftest.err
10031   rm -f conftest.er1
10032   cat conftest.err >&5
10033   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10034   (exit $ac_status); } >/dev/null; then
10035   if test -s conftest.err; then
10036     ac_cpp_err=$ac_c_preproc_warn_flag
10037   else
10038     ac_cpp_err=
10039   fi
10040 else
10041   ac_cpp_err=yes
10042 fi
10043 if test -z "$ac_cpp_err"; then
10044   ac_header_preproc=yes
10045 else
10046   echo "$as_me: failed program was:" >&5
10047 sed 's/^/| /' conftest.$ac_ext >&5
10048
10049   ac_header_preproc=no
10050 fi
10051 rm -f conftest.err conftest.$ac_ext
10052 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10053 echo "${ECHO_T}$ac_header_preproc" >&6
10054
10055 # So?  What about this header?
10056 case $ac_header_compiler:$ac_header_preproc in
10057   yes:no )
10058     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10059 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10060     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10061 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10062     (
10063       cat <<\_ASBOX
10064 ## ------------------------------------ ##
10065 ## Report this to bug-autoconf@gnu.org. ##
10066 ## ------------------------------------ ##
10067 _ASBOX
10068     ) |
10069       sed "s/^/$as_me: WARNING:     /" >&2
10070     ;;
10071   no:yes )
10072     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10073 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10074     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10075 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10076     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10077 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10078     (
10079       cat <<\_ASBOX
10080 ## ------------------------------------ ##
10081 ## Report this to bug-autoconf@gnu.org. ##
10082 ## ------------------------------------ ##
10083 _ASBOX
10084     ) |
10085       sed "s/^/$as_me: WARNING:     /" >&2
10086     ;;
10087 esac
10088 echo "$as_me:$LINENO: checking for $ac_header" >&5
10089 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10090 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10091   echo $ECHO_N "(cached) $ECHO_C" >&6
10092 else
10093   eval "$as_ac_Header=$ac_header_preproc"
10094 fi
10095 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10096 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10097
10098 fi
10099 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10100   cat >>confdefs.h <<_ACEOF
10101 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10102 _ACEOF
10103  break
10104 fi
10105
10106 done
10107
10108
10109 echo "$as_me:$LINENO: checking for Open Sound System" >&5
10110 echo $ECHO_N "checking for Open Sound System... $ECHO_C" >&6
10111 if test "${ac_cv_c_opensoundsystem+set}" = set; then
10112   echo $ECHO_N "(cached) $ECHO_C" >&6
10113 else
10114   cat >conftest.$ac_ext <<_ACEOF
10115 #line $LINENO "configure"
10116 /* confdefs.h.  */
10117 _ACEOF
10118 cat confdefs.h >>conftest.$ac_ext
10119 cat >>conftest.$ac_ext <<_ACEOF
10120 /* end confdefs.h.  */
10121
10122         #if defined(HAVE_SYS_SOUNDCARD_H)
10123                 #include <sys/soundcard.h>
10124         #elif defined(HAVE_MACHINE_SOUNDCARD_H)
10125                 #include <machine/soundcard.h>
10126         #elif defined(HAVE_SOUNDCARD_H)
10127                 #include <soundcard.h>
10128         #endif
10129
10130 int
10131 main ()
10132 {
10133
10134
10135 /* check for one of the Open Sound System specific SNDCTL_ defines */
10136 #if !defined(SNDCTL_DSP_STEREO)
10137 #error No open sound system
10138 #endif
10139
10140   ;
10141   return 0;
10142 }
10143 _ACEOF
10144 rm -f conftest.$ac_objext
10145 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10146   (eval $ac_compile) 2>&5
10147   ac_status=$?
10148   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10149   (exit $ac_status); } &&
10150          { ac_try='test -s conftest.$ac_objext'
10151   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10152   (eval $ac_try) 2>&5
10153   ac_status=$?
10154   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10155   (exit $ac_status); }; }; then
10156   ac_cv_c_opensoundsystem="yes"
10157 else
10158   echo "$as_me: failed program was:" >&5
10159 sed 's/^/| /' conftest.$ac_ext >&5
10160
10161 ac_cv_c_opensoundsystem="no"
10162 fi
10163 rm -f conftest.$ac_objext conftest.$ac_ext
10164 fi
10165 echo "$as_me:$LINENO: result: $ac_cv_c_opensoundsystem" >&5
10166 echo "${ECHO_T}$ac_cv_c_opensoundsystem" >&6
10167
10168 if test "$ac_cv_c_opensoundsystem" = "yes"
10169 then
10170
10171 cat >>confdefs.h <<\_ACEOF
10172 #define HAVE_OSS 1
10173 _ACEOF
10174
10175 fi
10176
10177 echo "$as_me:$LINENO: checking for Open Sound System/MIDI interface" >&5
10178 echo $ECHO_N "checking for Open Sound System/MIDI interface... $ECHO_C" >&6
10179 if test "${ac_cv_c_opensoundsystem_midi+set}" = set; then
10180   echo $ECHO_N "(cached) $ECHO_C" >&6
10181 else
10182   cat >conftest.$ac_ext <<_ACEOF
10183 #line $LINENO "configure"
10184 /* confdefs.h.  */
10185 _ACEOF
10186 cat confdefs.h >>conftest.$ac_ext
10187 cat >>conftest.$ac_ext <<_ACEOF
10188 /* end confdefs.h.  */
10189
10190         #if defined(HAVE_SYS_SOUNDCARD_H)
10191                 #include <sys/soundcard.h>
10192         #elif defined(HAVE_MACHINE_SOUNDCARD_H)
10193                 #include <machine/soundcard.h>
10194         #elif defined(HAVE_SOUNDCARD_H)
10195                 #include <soundcard.h>
10196         #endif
10197
10198 int
10199 main ()
10200 {
10201
10202
10203 /* check for one of the Open Sound System specific SNDCTL_SEQ defines */
10204 #if !defined(SNDCTL_SEQ_SYNC)
10205 #error No open sound system MIDI interface
10206 #endif
10207
10208   ;
10209   return 0;
10210 }
10211 _ACEOF
10212 rm -f conftest.$ac_objext
10213 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10214   (eval $ac_compile) 2>&5
10215   ac_status=$?
10216   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10217   (exit $ac_status); } &&
10218          { ac_try='test -s conftest.$ac_objext'
10219   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10220   (eval $ac_try) 2>&5
10221   ac_status=$?
10222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10223   (exit $ac_status); }; }; then
10224   ac_cv_c_opensoundsystem_midi="yes"
10225 else
10226   echo "$as_me: failed program was:" >&5
10227 sed 's/^/| /' conftest.$ac_ext >&5
10228
10229 ac_cv_c_opensoundsystem_midi="no"
10230 fi
10231 rm -f conftest.$ac_objext conftest.$ac_ext
10232 fi
10233 echo "$as_me:$LINENO: result: $ac_cv_c_opensoundsystem_midi" >&5
10234 echo "${ECHO_T}$ac_cv_c_opensoundsystem_midi" >&6
10235
10236 if test "$ac_cv_c_opensoundsystem_midi" = "yes"
10237 then
10238
10239 cat >>confdefs.h <<\_ACEOF
10240 #define HAVE_OSS_MIDI 1
10241 _ACEOF
10242
10243 fi
10244
10245 # Extract the first word of "artsc-config", so it can be a program name with args.
10246 set dummy artsc-config; ac_word=$2
10247 echo "$as_me:$LINENO: checking for $ac_word" >&5
10248 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10249 if test "${ac_cv_path_ARTSCCONFIG+set}" = set; then
10250   echo $ECHO_N "(cached) $ECHO_C" >&6
10251 else
10252   case $ARTSCCONFIG in
10253   [\\/]* | ?:[\\/]*)
10254   ac_cv_path_ARTSCCONFIG="$ARTSCCONFIG" # Let the user override the test with a path.
10255   ;;
10256   *)
10257   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10258 for as_dir in $PATH
10259 do
10260   IFS=$as_save_IFS
10261   test -z "$as_dir" && as_dir=.
10262   for ac_exec_ext in '' $ac_executable_extensions; do
10263   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10264     ac_cv_path_ARTSCCONFIG="$as_dir/$ac_word$ac_exec_ext"
10265     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10266     break 2
10267   fi
10268 done
10269 done
10270
10271   ;;
10272 esac
10273 fi
10274 ARTSCCONFIG=$ac_cv_path_ARTSCCONFIG
10275
10276 if test -n "$ARTSCCONFIG"; then
10277   echo "$as_me:$LINENO: result: $ARTSCCONFIG" >&5
10278 echo "${ECHO_T}$ARTSCCONFIG" >&6
10279 else
10280   echo "$as_me:$LINENO: result: no" >&5
10281 echo "${ECHO_T}no" >&6
10282 fi
10283
10284 echo "$as_me:$LINENO: checking for aRts Sound server" >&5
10285 echo $ECHO_N "checking for aRts Sound server... $ECHO_C" >&6
10286 if test "${ac_cv_c_artsserver+set}" = set; then
10287   echo $ECHO_N "(cached) $ECHO_C" >&6
10288 else
10289   if test x$ARTSCCONFIG = x -o x$ARTSCCONFIG = x'"$ARTSCCONFIG"';
10290         then
10291             ac_cv_c_artsserver=no
10292         else
10293             ARTSC_CFLAGS=`$ARTSCCONFIG --cflags`
10294             ARTSC_LIBS=`$ARTSCCONFIG --libs`
10295             ac_cv_c_artsserver=no
10296             save_CFLAGS="$CFLAGS"
10297             CFLAGS="$CFLAGS $ARTSC_CFLAGS"
10298             cat >conftest.$ac_ext <<_ACEOF
10299 #line $LINENO "configure"
10300 /* confdefs.h.  */
10301 _ACEOF
10302 cat confdefs.h >>conftest.$ac_ext
10303 cat >>conftest.$ac_ext <<_ACEOF
10304 /* end confdefs.h.  */
10305
10306              #include <artsc.h>
10307
10308 int
10309 main ()
10310 {
10311
10312              arts_stream_t stream;
10313
10314   ;
10315   return 0;
10316 }
10317 _ACEOF
10318 rm -f conftest.$ac_objext
10319 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10320   (eval $ac_compile) 2>&5
10321   ac_status=$?
10322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10323   (exit $ac_status); } &&
10324          { ac_try='test -s conftest.$ac_objext'
10325   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10326   (eval $ac_try) 2>&5
10327   ac_status=$?
10328   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10329   (exit $ac_status); }; }; then
10330
10331             ac_cv_c_artsserver=yes
10332
10333 else
10334   echo "$as_me: failed program was:" >&5
10335 sed 's/^/| /' conftest.$ac_ext >&5
10336
10337 fi
10338 rm -f conftest.$ac_objext conftest.$ac_ext
10339             CFLAGS="$save_CFLAGS"
10340         fi
10341 fi
10342 echo "$as_me:$LINENO: result: $ac_cv_c_artsserver" >&5
10343 echo "${ECHO_T}$ac_cv_c_artsserver" >&6
10344
10345 if test "$ac_cv_c_artsserver" = "yes"
10346 then
10347     ARTSLIBS=$ARTSC_LIBS
10348
10349     ARTSINCL=$ARTSC_CFLAGS
10350
10351
10352
10353 cat >>confdefs.h <<\_ACEOF
10354 #define HAVE_ARTS 1
10355 _ACEOF
10356
10357 fi
10358
10359 ALSALIBS=""
10360
10361
10362
10363 for ac_header in alsa/asoundlib.h sys/asoundlib.h
10364 do
10365 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10366 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10367   echo "$as_me:$LINENO: checking for $ac_header" >&5
10368 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10369 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10370   echo $ECHO_N "(cached) $ECHO_C" >&6
10371 fi
10372 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10373 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10374 else
10375   # Is the header compilable?
10376 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10377 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
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 $ac_includes_default
10386 #include <$ac_header>
10387 _ACEOF
10388 rm -f conftest.$ac_objext
10389 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10390   (eval $ac_compile) 2>&5
10391   ac_status=$?
10392   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10393   (exit $ac_status); } &&
10394          { ac_try='test -s conftest.$ac_objext'
10395   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10396   (eval $ac_try) 2>&5
10397   ac_status=$?
10398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10399   (exit $ac_status); }; }; then
10400   ac_header_compiler=yes
10401 else
10402   echo "$as_me: failed program was:" >&5
10403 sed 's/^/| /' conftest.$ac_ext >&5
10404
10405 ac_header_compiler=no
10406 fi
10407 rm -f conftest.$ac_objext conftest.$ac_ext
10408 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10409 echo "${ECHO_T}$ac_header_compiler" >&6
10410
10411 # Is the header present?
10412 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10413 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10414 cat >conftest.$ac_ext <<_ACEOF
10415 #line $LINENO "configure"
10416 /* confdefs.h.  */
10417 _ACEOF
10418 cat confdefs.h >>conftest.$ac_ext
10419 cat >>conftest.$ac_ext <<_ACEOF
10420 /* end confdefs.h.  */
10421 #include <$ac_header>
10422 _ACEOF
10423 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10424   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10425   ac_status=$?
10426   grep -v '^ *+' conftest.er1 >conftest.err
10427   rm -f conftest.er1
10428   cat conftest.err >&5
10429   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10430   (exit $ac_status); } >/dev/null; then
10431   if test -s conftest.err; then
10432     ac_cpp_err=$ac_c_preproc_warn_flag
10433   else
10434     ac_cpp_err=
10435   fi
10436 else
10437   ac_cpp_err=yes
10438 fi
10439 if test -z "$ac_cpp_err"; then
10440   ac_header_preproc=yes
10441 else
10442   echo "$as_me: failed program was:" >&5
10443 sed 's/^/| /' conftest.$ac_ext >&5
10444
10445   ac_header_preproc=no
10446 fi
10447 rm -f conftest.err conftest.$ac_ext
10448 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10449 echo "${ECHO_T}$ac_header_preproc" >&6
10450
10451 # So?  What about this header?
10452 case $ac_header_compiler:$ac_header_preproc in
10453   yes:no )
10454     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10455 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10456     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10457 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10458     (
10459       cat <<\_ASBOX
10460 ## ------------------------------------ ##
10461 ## Report this to bug-autoconf@gnu.org. ##
10462 ## ------------------------------------ ##
10463 _ASBOX
10464     ) |
10465       sed "s/^/$as_me: WARNING:     /" >&2
10466     ;;
10467   no:yes )
10468     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10469 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10470     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10471 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10472     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10473 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10474     (
10475       cat <<\_ASBOX
10476 ## ------------------------------------ ##
10477 ## Report this to bug-autoconf@gnu.org. ##
10478 ## ------------------------------------ ##
10479 _ASBOX
10480     ) |
10481       sed "s/^/$as_me: WARNING:     /" >&2
10482     ;;
10483 esac
10484 echo "$as_me:$LINENO: checking for $ac_header" >&5
10485 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10486 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10487   echo $ECHO_N "(cached) $ECHO_C" >&6
10488 else
10489   eval "$as_ac_Header=$ac_header_preproc"
10490 fi
10491 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10492 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10493
10494 fi
10495 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10496   cat >>confdefs.h <<_ACEOF
10497 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10498 _ACEOF
10499  break
10500 fi
10501
10502 done
10503
10504 if test "$ac_cv_header_sys_asoundlib_h" = "yes" -o "$ac_cv_header_alsa_asoundlib_h" = "yes"
10505 then
10506     echo "$as_me:$LINENO: checking for snd_pcm_open in -lasound" >&5
10507 echo $ECHO_N "checking for snd_pcm_open in -lasound... $ECHO_C" >&6
10508 if test "${ac_cv_lib_asound_snd_pcm_open+set}" = set; then
10509   echo $ECHO_N "(cached) $ECHO_C" >&6
10510 else
10511   ac_check_lib_save_LIBS=$LIBS
10512 LIBS="-lasound  $LIBS"
10513 cat >conftest.$ac_ext <<_ACEOF
10514 #line $LINENO "configure"
10515 /* confdefs.h.  */
10516 _ACEOF
10517 cat confdefs.h >>conftest.$ac_ext
10518 cat >>conftest.$ac_ext <<_ACEOF
10519 /* end confdefs.h.  */
10520
10521 /* Override any gcc2 internal prototype to avoid an error.  */
10522 #ifdef __cplusplus
10523 extern "C"
10524 #endif
10525 /* We use char because int might match the return type of a gcc2
10526    builtin and then its argument prototype would still apply.  */
10527 char snd_pcm_open ();
10528 int
10529 main ()
10530 {
10531 snd_pcm_open ();
10532   ;
10533   return 0;
10534 }
10535 _ACEOF
10536 rm -f conftest.$ac_objext conftest$ac_exeext
10537 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10538   (eval $ac_link) 2>&5
10539   ac_status=$?
10540   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10541   (exit $ac_status); } &&
10542          { ac_try='test -s conftest$ac_exeext'
10543   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10544   (eval $ac_try) 2>&5
10545   ac_status=$?
10546   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10547   (exit $ac_status); }; }; then
10548   ac_cv_lib_asound_snd_pcm_open=yes
10549 else
10550   echo "$as_me: failed program was:" >&5
10551 sed 's/^/| /' conftest.$ac_ext >&5
10552
10553 ac_cv_lib_asound_snd_pcm_open=no
10554 fi
10555 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10556 LIBS=$ac_check_lib_save_LIBS
10557 fi
10558 echo "$as_me:$LINENO: result: $ac_cv_lib_asound_snd_pcm_open" >&5
10559 echo "${ECHO_T}$ac_cv_lib_asound_snd_pcm_open" >&6
10560 if test $ac_cv_lib_asound_snd_pcm_open = yes; then
10561
10562 cat >>confdefs.h <<\_ACEOF
10563 #define HAVE_ALSA 1
10564 _ACEOF
10565
10566         ALSALIBS="-lasound"
10567 fi
10568
10569 fi
10570
10571
10572 AUDIOIOLIBS=""
10573
10574
10575 for ac_header in libaudioio.h
10576 do
10577 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10578 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10579   echo "$as_me:$LINENO: checking for $ac_header" >&5
10580 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10581 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10582   echo $ECHO_N "(cached) $ECHO_C" >&6
10583 fi
10584 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10585 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10586 else
10587   # Is the header compilable?
10588 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10589 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10590 cat >conftest.$ac_ext <<_ACEOF
10591 #line $LINENO "configure"
10592 /* confdefs.h.  */
10593 _ACEOF
10594 cat confdefs.h >>conftest.$ac_ext
10595 cat >>conftest.$ac_ext <<_ACEOF
10596 /* end confdefs.h.  */
10597 $ac_includes_default
10598 #include <$ac_header>
10599 _ACEOF
10600 rm -f conftest.$ac_objext
10601 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10602   (eval $ac_compile) 2>&5
10603   ac_status=$?
10604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10605   (exit $ac_status); } &&
10606          { ac_try='test -s conftest.$ac_objext'
10607   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10608   (eval $ac_try) 2>&5
10609   ac_status=$?
10610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10611   (exit $ac_status); }; }; then
10612   ac_header_compiler=yes
10613 else
10614   echo "$as_me: failed program was:" >&5
10615 sed 's/^/| /' conftest.$ac_ext >&5
10616
10617 ac_header_compiler=no
10618 fi
10619 rm -f conftest.$ac_objext conftest.$ac_ext
10620 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10621 echo "${ECHO_T}$ac_header_compiler" >&6
10622
10623 # Is the header present?
10624 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10625 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10626 cat >conftest.$ac_ext <<_ACEOF
10627 #line $LINENO "configure"
10628 /* confdefs.h.  */
10629 _ACEOF
10630 cat confdefs.h >>conftest.$ac_ext
10631 cat >>conftest.$ac_ext <<_ACEOF
10632 /* end confdefs.h.  */
10633 #include <$ac_header>
10634 _ACEOF
10635 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10636   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10637   ac_status=$?
10638   grep -v '^ *+' conftest.er1 >conftest.err
10639   rm -f conftest.er1
10640   cat conftest.err >&5
10641   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10642   (exit $ac_status); } >/dev/null; then
10643   if test -s conftest.err; then
10644     ac_cpp_err=$ac_c_preproc_warn_flag
10645   else
10646     ac_cpp_err=
10647   fi
10648 else
10649   ac_cpp_err=yes
10650 fi
10651 if test -z "$ac_cpp_err"; then
10652   ac_header_preproc=yes
10653 else
10654   echo "$as_me: failed program was:" >&5
10655 sed 's/^/| /' conftest.$ac_ext >&5
10656
10657   ac_header_preproc=no
10658 fi
10659 rm -f conftest.err conftest.$ac_ext
10660 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10661 echo "${ECHO_T}$ac_header_preproc" >&6
10662
10663 # So?  What about this header?
10664 case $ac_header_compiler:$ac_header_preproc in
10665   yes:no )
10666     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10667 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10668     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10669 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10670     (
10671       cat <<\_ASBOX
10672 ## ------------------------------------ ##
10673 ## Report this to bug-autoconf@gnu.org. ##
10674 ## ------------------------------------ ##
10675 _ASBOX
10676     ) |
10677       sed "s/^/$as_me: WARNING:     /" >&2
10678     ;;
10679   no:yes )
10680     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10681 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10682     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10683 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10684     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10685 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10686     (
10687       cat <<\_ASBOX
10688 ## ------------------------------------ ##
10689 ## Report this to bug-autoconf@gnu.org. ##
10690 ## ------------------------------------ ##
10691 _ASBOX
10692     ) |
10693       sed "s/^/$as_me: WARNING:     /" >&2
10694     ;;
10695 esac
10696 echo "$as_me:$LINENO: checking for $ac_header" >&5
10697 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10698 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10699   echo $ECHO_N "(cached) $ECHO_C" >&6
10700 else
10701   eval "$as_ac_Header=$ac_header_preproc"
10702 fi
10703 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10704 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10705
10706 fi
10707 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10708   cat >>confdefs.h <<_ACEOF
10709 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10710 _ACEOF
10711  echo "$as_me:$LINENO: checking for AudioIOGetVersion in -laudioio" >&5
10712 echo $ECHO_N "checking for AudioIOGetVersion in -laudioio... $ECHO_C" >&6
10713 if test "${ac_cv_lib_audioio_AudioIOGetVersion+set}" = set; then
10714   echo $ECHO_N "(cached) $ECHO_C" >&6
10715 else
10716   ac_check_lib_save_LIBS=$LIBS
10717 LIBS="-laudioio  $LIBS"
10718 cat >conftest.$ac_ext <<_ACEOF
10719 #line $LINENO "configure"
10720 /* confdefs.h.  */
10721 _ACEOF
10722 cat confdefs.h >>conftest.$ac_ext
10723 cat >>conftest.$ac_ext <<_ACEOF
10724 /* end confdefs.h.  */
10725
10726 /* Override any gcc2 internal prototype to avoid an error.  */
10727 #ifdef __cplusplus
10728 extern "C"
10729 #endif
10730 /* We use char because int might match the return type of a gcc2
10731    builtin and then its argument prototype would still apply.  */
10732 char AudioIOGetVersion ();
10733 int
10734 main ()
10735 {
10736 AudioIOGetVersion ();
10737   ;
10738   return 0;
10739 }
10740 _ACEOF
10741 rm -f conftest.$ac_objext conftest$ac_exeext
10742 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10743   (eval $ac_link) 2>&5
10744   ac_status=$?
10745   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10746   (exit $ac_status); } &&
10747          { ac_try='test -s conftest$ac_exeext'
10748   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10749   (eval $ac_try) 2>&5
10750   ac_status=$?
10751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10752   (exit $ac_status); }; }; then
10753   ac_cv_lib_audioio_AudioIOGetVersion=yes
10754 else
10755   echo "$as_me: failed program was:" >&5
10756 sed 's/^/| /' conftest.$ac_ext >&5
10757
10758 ac_cv_lib_audioio_AudioIOGetVersion=no
10759 fi
10760 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10761 LIBS=$ac_check_lib_save_LIBS
10762 fi
10763 echo "$as_me:$LINENO: result: $ac_cv_lib_audioio_AudioIOGetVersion" >&5
10764 echo "${ECHO_T}$ac_cv_lib_audioio_AudioIOGetVersion" >&6
10765 if test $ac_cv_lib_audioio_AudioIOGetVersion = yes; then
10766   AUDIOIOLIBS="-laudioio"
10767
10768 cat >>confdefs.h <<\_ACEOF
10769 #define HAVE_LIBAUDIOIO 1
10770 _ACEOF
10771
10772 fi
10773
10774 fi
10775
10776 done
10777
10778
10779
10780
10781 for ac_header in capi20.h
10782 do
10783 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10784 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10785   echo "$as_me:$LINENO: checking for $ac_header" >&5
10786 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10787 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10788   echo $ECHO_N "(cached) $ECHO_C" >&6
10789 fi
10790 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10791 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10792 else
10793   # Is the header compilable?
10794 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10795 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10796 cat >conftest.$ac_ext <<_ACEOF
10797 #line $LINENO "configure"
10798 /* confdefs.h.  */
10799 _ACEOF
10800 cat confdefs.h >>conftest.$ac_ext
10801 cat >>conftest.$ac_ext <<_ACEOF
10802 /* end confdefs.h.  */
10803 $ac_includes_default
10804 #include <$ac_header>
10805 _ACEOF
10806 rm -f conftest.$ac_objext
10807 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10808   (eval $ac_compile) 2>&5
10809   ac_status=$?
10810   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10811   (exit $ac_status); } &&
10812          { ac_try='test -s conftest.$ac_objext'
10813   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10814   (eval $ac_try) 2>&5
10815   ac_status=$?
10816   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10817   (exit $ac_status); }; }; then
10818   ac_header_compiler=yes
10819 else
10820   echo "$as_me: failed program was:" >&5
10821 sed 's/^/| /' conftest.$ac_ext >&5
10822
10823 ac_header_compiler=no
10824 fi
10825 rm -f conftest.$ac_objext conftest.$ac_ext
10826 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10827 echo "${ECHO_T}$ac_header_compiler" >&6
10828
10829 # Is the header present?
10830 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10831 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10832 cat >conftest.$ac_ext <<_ACEOF
10833 #line $LINENO "configure"
10834 /* confdefs.h.  */
10835 _ACEOF
10836 cat confdefs.h >>conftest.$ac_ext
10837 cat >>conftest.$ac_ext <<_ACEOF
10838 /* end confdefs.h.  */
10839 #include <$ac_header>
10840 _ACEOF
10841 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10842   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10843   ac_status=$?
10844   grep -v '^ *+' conftest.er1 >conftest.err
10845   rm -f conftest.er1
10846   cat conftest.err >&5
10847   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10848   (exit $ac_status); } >/dev/null; then
10849   if test -s conftest.err; then
10850     ac_cpp_err=$ac_c_preproc_warn_flag
10851   else
10852     ac_cpp_err=
10853   fi
10854 else
10855   ac_cpp_err=yes
10856 fi
10857 if test -z "$ac_cpp_err"; then
10858   ac_header_preproc=yes
10859 else
10860   echo "$as_me: failed program was:" >&5
10861 sed 's/^/| /' conftest.$ac_ext >&5
10862
10863   ac_header_preproc=no
10864 fi
10865 rm -f conftest.err conftest.$ac_ext
10866 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10867 echo "${ECHO_T}$ac_header_preproc" >&6
10868
10869 # So?  What about this header?
10870 case $ac_header_compiler:$ac_header_preproc in
10871   yes:no )
10872     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10873 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10874     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10875 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10876     (
10877       cat <<\_ASBOX
10878 ## ------------------------------------ ##
10879 ## Report this to bug-autoconf@gnu.org. ##
10880 ## ------------------------------------ ##
10881 _ASBOX
10882     ) |
10883       sed "s/^/$as_me: WARNING:     /" >&2
10884     ;;
10885   no:yes )
10886     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10887 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10888     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10889 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10890     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10891 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10892     (
10893       cat <<\_ASBOX
10894 ## ------------------------------------ ##
10895 ## Report this to bug-autoconf@gnu.org. ##
10896 ## ------------------------------------ ##
10897 _ASBOX
10898     ) |
10899       sed "s/^/$as_me: WARNING:     /" >&2
10900     ;;
10901 esac
10902 echo "$as_me:$LINENO: checking for $ac_header" >&5
10903 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10904 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10905   echo $ECHO_N "(cached) $ECHO_C" >&6
10906 else
10907   eval "$as_ac_Header=$ac_header_preproc"
10908 fi
10909 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10910 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10911
10912 fi
10913 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10914   cat >>confdefs.h <<_ACEOF
10915 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10916 _ACEOF
10917
10918
10919 for ac_header in linux/capi.h
10920 do
10921 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10922 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10923   echo "$as_me:$LINENO: checking for $ac_header" >&5
10924 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10925 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10926   echo $ECHO_N "(cached) $ECHO_C" >&6
10927 fi
10928 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10929 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10930 else
10931   # Is the header compilable?
10932 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10933 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10934 cat >conftest.$ac_ext <<_ACEOF
10935 #line $LINENO "configure"
10936 /* confdefs.h.  */
10937 _ACEOF
10938 cat confdefs.h >>conftest.$ac_ext
10939 cat >>conftest.$ac_ext <<_ACEOF
10940 /* end confdefs.h.  */
10941 $ac_includes_default
10942 #include <$ac_header>
10943 _ACEOF
10944 rm -f conftest.$ac_objext
10945 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10946   (eval $ac_compile) 2>&5
10947   ac_status=$?
10948   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10949   (exit $ac_status); } &&
10950          { ac_try='test -s conftest.$ac_objext'
10951   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10952   (eval $ac_try) 2>&5
10953   ac_status=$?
10954   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10955   (exit $ac_status); }; }; then
10956   ac_header_compiler=yes
10957 else
10958   echo "$as_me: failed program was:" >&5
10959 sed 's/^/| /' conftest.$ac_ext >&5
10960
10961 ac_header_compiler=no
10962 fi
10963 rm -f conftest.$ac_objext conftest.$ac_ext
10964 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10965 echo "${ECHO_T}$ac_header_compiler" >&6
10966
10967 # Is the header present?
10968 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10969 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10970 cat >conftest.$ac_ext <<_ACEOF
10971 #line $LINENO "configure"
10972 /* confdefs.h.  */
10973 _ACEOF
10974 cat confdefs.h >>conftest.$ac_ext
10975 cat >>conftest.$ac_ext <<_ACEOF
10976 /* end confdefs.h.  */
10977 #include <$ac_header>
10978 _ACEOF
10979 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10980   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10981   ac_status=$?
10982   grep -v '^ *+' conftest.er1 >conftest.err
10983   rm -f conftest.er1
10984   cat conftest.err >&5
10985   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10986   (exit $ac_status); } >/dev/null; then
10987   if test -s conftest.err; then
10988     ac_cpp_err=$ac_c_preproc_warn_flag
10989   else
10990     ac_cpp_err=
10991   fi
10992 else
10993   ac_cpp_err=yes
10994 fi
10995 if test -z "$ac_cpp_err"; then
10996   ac_header_preproc=yes
10997 else
10998   echo "$as_me: failed program was:" >&5
10999 sed 's/^/| /' conftest.$ac_ext >&5
11000
11001   ac_header_preproc=no
11002 fi
11003 rm -f conftest.err conftest.$ac_ext
11004 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11005 echo "${ECHO_T}$ac_header_preproc" >&6
11006
11007 # So?  What about this header?
11008 case $ac_header_compiler:$ac_header_preproc in
11009   yes:no )
11010     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11011 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11012     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11013 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11014     (
11015       cat <<\_ASBOX
11016 ## ------------------------------------ ##
11017 ## Report this to bug-autoconf@gnu.org. ##
11018 ## ------------------------------------ ##
11019 _ASBOX
11020     ) |
11021       sed "s/^/$as_me: WARNING:     /" >&2
11022     ;;
11023   no:yes )
11024     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11025 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11026     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11027 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11028     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11029 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11030     (
11031       cat <<\_ASBOX
11032 ## ------------------------------------ ##
11033 ## Report this to bug-autoconf@gnu.org. ##
11034 ## ------------------------------------ ##
11035 _ASBOX
11036     ) |
11037       sed "s/^/$as_me: WARNING:     /" >&2
11038     ;;
11039 esac
11040 echo "$as_me:$LINENO: checking for $ac_header" >&5
11041 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11042 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11043   echo $ECHO_N "(cached) $ECHO_C" >&6
11044 else
11045   eval "$as_ac_Header=$ac_header_preproc"
11046 fi
11047 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11048 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11049
11050 fi
11051 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11052   cat >>confdefs.h <<_ACEOF
11053 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11054 _ACEOF
11055
11056                 echo "$as_me:$LINENO: checking for capi20_register in -lcapi20" >&5
11057 echo $ECHO_N "checking for capi20_register in -lcapi20... $ECHO_C" >&6
11058 if test "${ac_cv_lib_capi20_capi20_register+set}" = set; then
11059   echo $ECHO_N "(cached) $ECHO_C" >&6
11060 else
11061   ac_check_lib_save_LIBS=$LIBS
11062 LIBS="-lcapi20  $LIBS"
11063 cat >conftest.$ac_ext <<_ACEOF
11064 #line $LINENO "configure"
11065 /* confdefs.h.  */
11066 _ACEOF
11067 cat confdefs.h >>conftest.$ac_ext
11068 cat >>conftest.$ac_ext <<_ACEOF
11069 /* end confdefs.h.  */
11070
11071 /* Override any gcc2 internal prototype to avoid an error.  */
11072 #ifdef __cplusplus
11073 extern "C"
11074 #endif
11075 /* We use char because int might match the return type of a gcc2
11076    builtin and then its argument prototype would still apply.  */
11077 char capi20_register ();
11078 int
11079 main ()
11080 {
11081 capi20_register ();
11082   ;
11083   return 0;
11084 }
11085 _ACEOF
11086 rm -f conftest.$ac_objext conftest$ac_exeext
11087 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11088   (eval $ac_link) 2>&5
11089   ac_status=$?
11090   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11091   (exit $ac_status); } &&
11092          { ac_try='test -s conftest$ac_exeext'
11093   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11094   (eval $ac_try) 2>&5
11095   ac_status=$?
11096   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11097   (exit $ac_status); }; }; then
11098   ac_cv_lib_capi20_capi20_register=yes
11099 else
11100   echo "$as_me: failed program was:" >&5
11101 sed 's/^/| /' conftest.$ac_ext >&5
11102
11103 ac_cv_lib_capi20_capi20_register=no
11104 fi
11105 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11106 LIBS=$ac_check_lib_save_LIBS
11107 fi
11108 echo "$as_me:$LINENO: result: $ac_cv_lib_capi20_capi20_register" >&5
11109 echo "${ECHO_T}$ac_cv_lib_capi20_capi20_register" >&6
11110 if test $ac_cv_lib_capi20_capi20_register = yes; then
11111
11112
11113 cat >>confdefs.h <<\_ACEOF
11114 #define HAVE_CAPI4LINUX 1
11115 _ACEOF
11116
11117                         CAPI4LINUXLIBS="-lcapi20"
11118
11119
11120 fi
11121
11122
11123 fi
11124
11125 done
11126
11127
11128 fi
11129
11130 done
11131
11132
11133
11134 echo "$as_me:$LINENO: checking whether mmap64 works defined as mmap" >&5
11135 echo $ECHO_N "checking whether mmap64 works defined as mmap... $ECHO_C" >&6
11136 if test "${ac_cv_mmap64_works+set}" = set; then
11137   echo $ECHO_N "(cached) $ECHO_C" >&6
11138 else
11139   if test "$cross_compiling" = yes; then
11140   ac_cv_mmap64_works="no"
11141 else
11142   cat >conftest.$ac_ext <<_ACEOF
11143 #line $LINENO "configure"
11144 /* confdefs.h.  */
11145 _ACEOF
11146 cat confdefs.h >>conftest.$ac_ext
11147 cat >>conftest.$ac_ext <<_ACEOF
11148 /* end confdefs.h.  */
11149
11150                 #define _FILE_OFFSET_BITS 64
11151                 #include <stdio.h>
11152                 #include <unistd.h>
11153                 #include <fcntl.h>
11154                 #include <sys/mman.h>
11155                 #include <errno.h>
11156
11157                 int main(int argc,char **argv) {
11158                         int fd = open("conftest.map",O_CREAT|O_RDWR,0600);
11159                         if (fd == -1) exit(1);
11160
11161                         unlink("conftest.map");
11162
11163                         write(fd,"test",4);
11164
11165                         if ((-1 == mmap(0,4,PROT_READ|PROT_WRITE,MAP_SHARED,fd,0)) &&
11166                             (errno == EINVAL)
11167                         ) {
11168                                 exit(1);
11169                         }
11170                         close(fd);
11171                         fprintf(stderr,"success!\n");
11172                         exit(0);
11173                 }
11174
11175
11176 _ACEOF
11177 rm -f conftest$ac_exeext
11178 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11179   (eval $ac_link) 2>&5
11180   ac_status=$?
11181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11182   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11183   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11184   (eval $ac_try) 2>&5
11185   ac_status=$?
11186   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11187   (exit $ac_status); }; }; then
11188   ac_cv_mmap64_works="yes"
11189 else
11190   echo "$as_me: program exited with status $ac_status" >&5
11191 echo "$as_me: failed program was:" >&5
11192 sed 's/^/| /' conftest.$ac_ext >&5
11193
11194 ( exit $ac_status )
11195 ac_cv_mmap64_works="no"
11196 fi
11197 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11198 fi
11199 fi
11200 echo "$as_me:$LINENO: result: $ac_cv_mmap64_works" >&5
11201 echo "${ECHO_T}$ac_cv_mmap64_works" >&6
11202
11203 if test "$ac_cv_mmap64_works" = "yes"
11204 then
11205
11206 cat >>confdefs.h <<\_ACEOF
11207 #define _FILE_OFFSET_BITS 64
11208 _ACEOF
11209
11210 fi
11211
11212
11213 EXTRACFLAGS=""
11214
11215 if test "x${GCC}" = "xyes"
11216 then
11217   EXTRACFLAGS=-Wall
11218
11219     echo "$as_me:$LINENO: checking for gcc strength-reduce bug" >&5
11220 echo $ECHO_N "checking for gcc strength-reduce bug... $ECHO_C" >&6
11221 if test "${ac_cv_c_gcc_strength_bug+set}" = set; then
11222   echo $ECHO_N "(cached) $ECHO_C" >&6
11223 else
11224   if test "$cross_compiling" = yes; then
11225   ac_cv_c_gcc_strength_bug="yes"
11226 else
11227   cat >conftest.$ac_ext <<_ACEOF
11228 #line $LINENO "configure"
11229 /* confdefs.h.  */
11230 _ACEOF
11231 cat confdefs.h >>conftest.$ac_ext
11232 cat >>conftest.$ac_ext <<_ACEOF
11233 /* end confdefs.h.  */
11234
11235 int     L[4] = {0,1,2,3};
11236 int main(void) {
11237   static int Array[3];
11238   unsigned int B = 3;
11239   int i;
11240   for(i=0; i<B; i++) Array[i] = i - 3;
11241   for(i=0; i<4 - 1; i++) L[i] = L[i + 1];
11242   L[i] = 4;
11243
11244   exit( Array[1] != -2 || L[2] != 3);
11245 }
11246 _ACEOF
11247 rm -f conftest$ac_exeext
11248 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11249   (eval $ac_link) 2>&5
11250   ac_status=$?
11251   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11252   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11253   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11254   (eval $ac_try) 2>&5
11255   ac_status=$?
11256   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11257   (exit $ac_status); }; }; then
11258   ac_cv_c_gcc_strength_bug="no"
11259 else
11260   echo "$as_me: program exited with status $ac_status" >&5
11261 echo "$as_me: failed program was:" >&5
11262 sed 's/^/| /' conftest.$ac_ext >&5
11263
11264 ( exit $ac_status )
11265 ac_cv_c_gcc_strength_bug="yes"
11266 fi
11267 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11268 fi
11269 fi
11270 echo "$as_me:$LINENO: result: $ac_cv_c_gcc_strength_bug" >&5
11271 echo "${ECHO_T}$ac_cv_c_gcc_strength_bug" >&6
11272   if test "$ac_cv_c_gcc_strength_bug" = "yes"
11273   then
11274     EXTRACFLAGS="$EXTRACFLAGS -fno-strength-reduce"
11275   fi
11276
11277     echo "$as_me:$LINENO: checking for gcc -mpreferred-stack-boundary=2 support" >&5
11278 echo $ECHO_N "checking for gcc -mpreferred-stack-boundary=2 support... $ECHO_C" >&6
11279 if test "${ac_cv_c_gcc_stack_boundary+set}" = set; then
11280   echo $ECHO_N "(cached) $ECHO_C" >&6
11281 else
11282   ac_wine_try_cflags_saved=$CFLAGS
11283 CFLAGS="$CFLAGS -mpreferred-stack-boundary=2"
11284 cat >conftest.$ac_ext <<_ACEOF
11285 #line $LINENO "configure"
11286 /* confdefs.h.  */
11287 _ACEOF
11288 cat confdefs.h >>conftest.$ac_ext
11289 cat >>conftest.$ac_ext <<_ACEOF
11290 /* end confdefs.h.  */
11291
11292 int
11293 main ()
11294 {
11295
11296   ;
11297   return 0;
11298 }
11299 _ACEOF
11300 rm -f conftest.$ac_objext conftest$ac_exeext
11301 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11302   (eval $ac_link) 2>&5
11303   ac_status=$?
11304   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11305   (exit $ac_status); } &&
11306          { ac_try='test -s conftest$ac_exeext'
11307   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11308   (eval $ac_try) 2>&5
11309   ac_status=$?
11310   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11311   (exit $ac_status); }; }; then
11312   ac_cv_c_gcc_stack_boundary="yes"
11313 else
11314   echo "$as_me: failed program was:" >&5
11315 sed 's/^/| /' conftest.$ac_ext >&5
11316
11317 ac_cv_c_gcc_stack_boundary="no"
11318 fi
11319 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11320 CFLAGS=$ac_wine_try_cflags_saved
11321 fi
11322 echo "$as_me:$LINENO: result: $ac_cv_c_gcc_stack_boundary" >&5
11323 echo "${ECHO_T}$ac_cv_c_gcc_stack_boundary" >&6
11324   if test "$ac_cv_c_gcc_stack_boundary" = "yes"
11325   then
11326     EXTRACFLAGS="$EXTRACFLAGS -mpreferred-stack-boundary=2"
11327   fi
11328
11329     echo "$as_me:$LINENO: checking for gcc -fno-strict-aliasing support" >&5
11330 echo $ECHO_N "checking for gcc -fno-strict-aliasing support... $ECHO_C" >&6
11331 if test "${ac_cv_c_gcc_no_strict_aliasing+set}" = set; then
11332   echo $ECHO_N "(cached) $ECHO_C" >&6
11333 else
11334   ac_wine_try_cflags_saved=$CFLAGS
11335 CFLAGS="$CFLAGS -fno-strict-aliasing"
11336 cat >conftest.$ac_ext <<_ACEOF
11337 #line $LINENO "configure"
11338 /* confdefs.h.  */
11339 _ACEOF
11340 cat confdefs.h >>conftest.$ac_ext
11341 cat >>conftest.$ac_ext <<_ACEOF
11342 /* end confdefs.h.  */
11343
11344 int
11345 main ()
11346 {
11347
11348   ;
11349   return 0;
11350 }
11351 _ACEOF
11352 rm -f conftest.$ac_objext conftest$ac_exeext
11353 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11354   (eval $ac_link) 2>&5
11355   ac_status=$?
11356   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11357   (exit $ac_status); } &&
11358          { ac_try='test -s conftest$ac_exeext'
11359   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11360   (eval $ac_try) 2>&5
11361   ac_status=$?
11362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11363   (exit $ac_status); }; }; then
11364   ac_cv_c_gcc_no_strict_aliasing="yes"
11365 else
11366   echo "$as_me: failed program was:" >&5
11367 sed 's/^/| /' conftest.$ac_ext >&5
11368
11369 ac_cv_c_gcc_no_strict_aliasing="no"
11370 fi
11371 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11372 CFLAGS=$ac_wine_try_cflags_saved
11373 fi
11374 echo "$as_me:$LINENO: result: $ac_cv_c_gcc_no_strict_aliasing" >&5
11375 echo "${ECHO_T}$ac_cv_c_gcc_no_strict_aliasing" >&6
11376   if test "$ac_cv_c_gcc_no_strict_aliasing" = "yes"
11377   then
11378     EXTRACFLAGS="$EXTRACFLAGS -fno-strict-aliasing"
11379   fi
11380
11381     echo "$as_me:$LINENO: checking for gcc -gstabs+ support" >&5
11382 echo $ECHO_N "checking for gcc -gstabs+ support... $ECHO_C" >&6
11383 if test "${ac_cv_c_gcc_gstabs+set}" = set; then
11384   echo $ECHO_N "(cached) $ECHO_C" >&6
11385 else
11386   ac_wine_try_cflags_saved=$CFLAGS
11387 CFLAGS="$CFLAGS -gstabs+"
11388 cat >conftest.$ac_ext <<_ACEOF
11389 #line $LINENO "configure"
11390 /* confdefs.h.  */
11391 _ACEOF
11392 cat confdefs.h >>conftest.$ac_ext
11393 cat >>conftest.$ac_ext <<_ACEOF
11394 /* end confdefs.h.  */
11395
11396 int
11397 main ()
11398 {
11399
11400   ;
11401   return 0;
11402 }
11403 _ACEOF
11404 rm -f conftest.$ac_objext conftest$ac_exeext
11405 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11406   (eval $ac_link) 2>&5
11407   ac_status=$?
11408   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11409   (exit $ac_status); } &&
11410          { ac_try='test -s conftest$ac_exeext'
11411   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11412   (eval $ac_try) 2>&5
11413   ac_status=$?
11414   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11415   (exit $ac_status); }; }; then
11416   ac_cv_c_gcc_gstabs="yes"
11417 else
11418   echo "$as_me: failed program was:" >&5
11419 sed 's/^/| /' conftest.$ac_ext >&5
11420
11421 ac_cv_c_gcc_gstabs="no"
11422 fi
11423 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11424 CFLAGS=$ac_wine_try_cflags_saved
11425 fi
11426 echo "$as_me:$LINENO: result: $ac_cv_c_gcc_gstabs" >&5
11427 echo "${ECHO_T}$ac_cv_c_gcc_gstabs" >&6
11428   if test "$ac_cv_c_gcc_gstabs" = "yes"
11429   then
11430     EXTRACFLAGS="$EXTRACFLAGS -gstabs+"
11431   fi
11432
11433     saved_CFLAGS="$CFLAGS"
11434   CFLAGS="$CFLAGS -Wpointer-arith -Werror"
11435   echo "$as_me:$LINENO: checking for broken string.h that generates warnings" >&5
11436 echo $ECHO_N "checking for broken string.h that generates warnings... $ECHO_C" >&6
11437 if test "${ac_cv_c_string_h_warnings+set}" = set; then
11438   echo $ECHO_N "(cached) $ECHO_C" >&6
11439 else
11440   cat >conftest.$ac_ext <<_ACEOF
11441 #line $LINENO "configure"
11442 /* confdefs.h.  */
11443 _ACEOF
11444 cat confdefs.h >>conftest.$ac_ext
11445 cat >>conftest.$ac_ext <<_ACEOF
11446 /* end confdefs.h.  */
11447 #include <string.h>
11448 int
11449 main ()
11450 {
11451
11452   ;
11453   return 0;
11454 }
11455 _ACEOF
11456 rm -f conftest.$ac_objext
11457 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11458   (eval $ac_compile) 2>&5
11459   ac_status=$?
11460   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11461   (exit $ac_status); } &&
11462          { ac_try='test -s conftest.$ac_objext'
11463   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11464   (eval $ac_try) 2>&5
11465   ac_status=$?
11466   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11467   (exit $ac_status); }; }; then
11468   ac_cv_c_string_h_warnings=no
11469 else
11470   echo "$as_me: failed program was:" >&5
11471 sed 's/^/| /' conftest.$ac_ext >&5
11472
11473 ac_cv_c_string_h_warnings=yes
11474 fi
11475 rm -f conftest.$ac_objext conftest.$ac_ext
11476 fi
11477 echo "$as_me:$LINENO: result: $ac_cv_c_string_h_warnings" >&5
11478 echo "${ECHO_T}$ac_cv_c_string_h_warnings" >&6
11479   CFLAGS="$saved_CFLAGS"
11480   if test "$ac_cv_c_string_h_warnings" = "no"
11481   then
11482     EXTRACFLAGS="$EXTRACFLAGS -Wpointer-arith"
11483   fi
11484 fi
11485
11486
11487 echo "$as_me:$LINENO: checking how to define a function in assembly code" >&5
11488 echo $ECHO_N "checking how to define a function in assembly code... $ECHO_C" >&6
11489 if test "${ac_cv_asm_func_def+set}" = set; then
11490   echo $ECHO_N "(cached) $ECHO_C" >&6
11491 else
11492   cat >conftest.$ac_ext <<_ACEOF
11493 #line $LINENO "configure"
11494 /* confdefs.h.  */
11495 _ACEOF
11496 cat confdefs.h >>conftest.$ac_ext
11497 cat >>conftest.$ac_ext <<_ACEOF
11498 /* end confdefs.h.  */
11499 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"); }
11500
11501 int
11502 main ()
11503 {
11504
11505   ;
11506   return 0;
11507 }
11508 _ACEOF
11509 rm -f conftest.$ac_objext conftest$ac_exeext
11510 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11511   (eval $ac_link) 2>&5
11512   ac_status=$?
11513   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11514   (exit $ac_status); } &&
11515          { ac_try='test -s conftest$ac_exeext'
11516   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11517   (eval $ac_try) 2>&5
11518   ac_status=$?
11519   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11520   (exit $ac_status); }; }; then
11521   ac_cv_asm_func_def=".def"
11522 else
11523   echo "$as_me: failed program was:" >&5
11524 sed 's/^/| /' conftest.$ac_ext >&5
11525
11526 cat >conftest.$ac_ext <<_ACEOF
11527 #line $LINENO "configure"
11528 /* confdefs.h.  */
11529 _ACEOF
11530 cat confdefs.h >>conftest.$ac_ext
11531 cat >>conftest.$ac_ext <<_ACEOF
11532 /* end confdefs.h.  */
11533 void ac_asm(void) { asm("\t.globl _ac_test\n\t.type _ac_test,@function\n_ac_test:\t.long 0"); }
11534
11535 int
11536 main ()
11537 {
11538
11539   ;
11540   return 0;
11541 }
11542 _ACEOF
11543 rm -f conftest.$ac_objext conftest$ac_exeext
11544 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11545   (eval $ac_link) 2>&5
11546   ac_status=$?
11547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11548   (exit $ac_status); } &&
11549          { ac_try='test -s conftest$ac_exeext'
11550   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11551   (eval $ac_try) 2>&5
11552   ac_status=$?
11553   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11554   (exit $ac_status); }; }; then
11555   ac_cv_asm_func_def=".type @function"
11556 else
11557   echo "$as_me: failed program was:" >&5
11558 sed 's/^/| /' conftest.$ac_ext >&5
11559
11560 cat >conftest.$ac_ext <<_ACEOF
11561 #line $LINENO "configure"
11562 /* confdefs.h.  */
11563 _ACEOF
11564 cat confdefs.h >>conftest.$ac_ext
11565 cat >>conftest.$ac_ext <<_ACEOF
11566 /* end confdefs.h.  */
11567 void ac_asm(void) { asm("\t.globl _ac_test\n\t.type _ac_test,2\n_ac_test:\t.long 0"); }
11568
11569 int
11570 main ()
11571 {
11572
11573   ;
11574   return 0;
11575 }
11576 _ACEOF
11577 rm -f conftest.$ac_objext conftest$ac_exeext
11578 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11579   (eval $ac_link) 2>&5
11580   ac_status=$?
11581   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11582   (exit $ac_status); } &&
11583          { ac_try='test -s conftest$ac_exeext'
11584   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11585   (eval $ac_try) 2>&5
11586   ac_status=$?
11587   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11588   (exit $ac_status); }; }; then
11589   ac_cv_asm_func_def=".type 2"
11590 else
11591   echo "$as_me: failed program was:" >&5
11592 sed 's/^/| /' conftest.$ac_ext >&5
11593
11594 ac_cv_asm_func_def="unknown"
11595 fi
11596 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11597 fi
11598 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11599 fi
11600 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11601 fi
11602 echo "$as_me:$LINENO: result: $ac_cv_asm_func_def" >&5
11603 echo "${ECHO_T}$ac_cv_asm_func_def" >&6
11604
11605
11606
11607 case "$ac_cv_asm_func_def" in
11608   ".def")
11609      cat >>confdefs.h <<\_ACEOF
11610 #define __ASM_FUNC(name) ".def " __ASM_NAME(name) "; .scl 2; .type 32; .endef"
11611 _ACEOF
11612  ;;
11613   ".type @function")
11614      cat >>confdefs.h <<\_ACEOF
11615 #define __ASM_FUNC(name) ".type " __ASM_NAME(name) ",@function"
11616 _ACEOF
11617  ;;
11618   ".type 2")
11619      cat >>confdefs.h <<\_ACEOF
11620 #define __ASM_FUNC(name) ".type " __ASM_NAME(name) ",2"
11621 _ACEOF
11622  ;;
11623   *)
11624      cat >>confdefs.h <<\_ACEOF
11625 #define __ASM_FUNC(name) ""
11626 _ACEOF
11627  ;;
11628 esac
11629
11630
11631 echo "$as_me:$LINENO: checking whether external symbols need an underscore prefix" >&5
11632 echo $ECHO_N "checking whether external symbols need an underscore prefix... $ECHO_C" >&6
11633 if test "${ac_cv_c_extern_prefix+set}" = set; then
11634   echo $ECHO_N "(cached) $ECHO_C" >&6
11635 else
11636   cat >conftest.$ac_ext <<_ACEOF
11637 #line $LINENO "configure"
11638 /* confdefs.h.  */
11639 _ACEOF
11640 cat confdefs.h >>conftest.$ac_ext
11641 cat >>conftest.$ac_ext <<_ACEOF
11642 /* end confdefs.h.  */
11643 void ac_asm(void) { asm(".globl _ac_test\n_ac_test:\t.long 0"); }
11644 extern int ac_test;
11645 int
11646 main ()
11647 {
11648 if (ac_test) return 1
11649   ;
11650   return 0;
11651 }
11652 _ACEOF
11653 rm -f conftest.$ac_objext conftest$ac_exeext
11654 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11655   (eval $ac_link) 2>&5
11656   ac_status=$?
11657   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11658   (exit $ac_status); } &&
11659          { ac_try='test -s conftest$ac_exeext'
11660   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11661   (eval $ac_try) 2>&5
11662   ac_status=$?
11663   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11664   (exit $ac_status); }; }; then
11665   ac_cv_c_extern_prefix="yes"
11666 else
11667   echo "$as_me: failed program was:" >&5
11668 sed 's/^/| /' conftest.$ac_ext >&5
11669
11670 ac_cv_c_extern_prefix="no"
11671 fi
11672 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11673 fi
11674 echo "$as_me:$LINENO: result: $ac_cv_c_extern_prefix" >&5
11675 echo "${ECHO_T}$ac_cv_c_extern_prefix" >&6
11676
11677
11678
11679 if test "$ac_cv_c_extern_prefix" = "yes"
11680 then
11681   cat >>confdefs.h <<\_ACEOF
11682 #define __ASM_NAME(name) "_" name
11683 _ACEOF
11684
11685 else
11686   cat >>confdefs.h <<\_ACEOF
11687 #define __ASM_NAME(name) name
11688 _ACEOF
11689
11690 fi
11691
11692
11693 echo "$as_me:$LINENO: checking whether assembler accepts .string" >&5
11694 echo $ECHO_N "checking whether assembler accepts .string... $ECHO_C" >&6
11695 if test "${ac_cv_c_asm_string+set}" = set; then
11696   echo $ECHO_N "(cached) $ECHO_C" >&6
11697 else
11698   cat >conftest.$ac_ext <<_ACEOF
11699 #line $LINENO "configure"
11700 /* confdefs.h.  */
11701 _ACEOF
11702 cat confdefs.h >>conftest.$ac_ext
11703 cat >>conftest.$ac_ext <<_ACEOF
11704 /* end confdefs.h.  */
11705 void ac_asm(void) { asm(".data\n\t.string \"test\"\n\t.text"); }
11706
11707 int
11708 main ()
11709 {
11710
11711   ;
11712   return 0;
11713 }
11714 _ACEOF
11715 rm -f conftest.$ac_objext conftest$ac_exeext
11716 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11717   (eval $ac_link) 2>&5
11718   ac_status=$?
11719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11720   (exit $ac_status); } &&
11721          { ac_try='test -s conftest$ac_exeext'
11722   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11723   (eval $ac_try) 2>&5
11724   ac_status=$?
11725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11726   (exit $ac_status); }; }; then
11727   ac_cv_c_asm_string="yes"
11728 else
11729   echo "$as_me: failed program was:" >&5
11730 sed 's/^/| /' conftest.$ac_ext >&5
11731
11732 ac_cv_c_asm_string="no"
11733 fi
11734 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11735 fi
11736 echo "$as_me:$LINENO: result: $ac_cv_c_asm_string" >&5
11737 echo "${ECHO_T}$ac_cv_c_asm_string" >&6
11738 if test "$ac_cv_c_asm_string" = "yes"
11739 then
11740
11741 cat >>confdefs.h <<\_ACEOF
11742 #define __ASM_STRING ".string"
11743 _ACEOF
11744
11745 else
11746     echo "$as_me:$LINENO: checking whether assembler accepts .asciz" >&5
11747 echo $ECHO_N "checking whether assembler accepts .asciz... $ECHO_C" >&6
11748 if test "${ac_cv_c_asm_asciz+set}" = set; then
11749   echo $ECHO_N "(cached) $ECHO_C" >&6
11750 else
11751   cat >conftest.$ac_ext <<_ACEOF
11752 #line $LINENO "configure"
11753 /* confdefs.h.  */
11754 _ACEOF
11755 cat confdefs.h >>conftest.$ac_ext
11756 cat >>conftest.$ac_ext <<_ACEOF
11757 /* end confdefs.h.  */
11758 void ac_asm(void) { asm(".data\n\t.asciz \"test\"\n\t.text"); }
11759
11760 int
11761 main ()
11762 {
11763
11764   ;
11765   return 0;
11766 }
11767 _ACEOF
11768 rm -f conftest.$ac_objext conftest$ac_exeext
11769 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11770   (eval $ac_link) 2>&5
11771   ac_status=$?
11772   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11773   (exit $ac_status); } &&
11774          { ac_try='test -s conftest$ac_exeext'
11775   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11776   (eval $ac_try) 2>&5
11777   ac_status=$?
11778   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11779   (exit $ac_status); }; }; then
11780   ac_cv_c_asm_asciz="yes"
11781 else
11782   echo "$as_me: failed program was:" >&5
11783 sed 's/^/| /' conftest.$ac_ext >&5
11784
11785 ac_cv_c_asm_asciz="no"
11786 fi
11787 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11788 fi
11789 echo "$as_me:$LINENO: result: $ac_cv_c_asm_asciz" >&5
11790 echo "${ECHO_T}$ac_cv_c_asm_asciz" >&6
11791     if test "$ac_cv_c_asm_asciz" = "yes"
11792     then
11793       cat >>confdefs.h <<\_ACEOF
11794 #define __ASM_STRING ".asciz"
11795 _ACEOF
11796
11797     else
11798       cat >>confdefs.h <<\_ACEOF
11799 #define __ASM_STRING ".ascii"
11800 _ACEOF
11801
11802     fi
11803 fi
11804
11805
11806 echo "$as_me:$LINENO: checking whether assembler accepts .short" >&5
11807 echo $ECHO_N "checking whether assembler accepts .short... $ECHO_C" >&6
11808 if test "${ac_cv_c_asm_short+set}" = set; then
11809   echo $ECHO_N "(cached) $ECHO_C" >&6
11810 else
11811   cat >conftest.$ac_ext <<_ACEOF
11812 #line $LINENO "configure"
11813 /* confdefs.h.  */
11814 _ACEOF
11815 cat confdefs.h >>conftest.$ac_ext
11816 cat >>conftest.$ac_ext <<_ACEOF
11817 /* end confdefs.h.  */
11818 void ac_asm(void) { asm(".data\n\t.short 1\n\t.text"); }
11819
11820 int
11821 main ()
11822 {
11823
11824   ;
11825   return 0;
11826 }
11827 _ACEOF
11828 rm -f conftest.$ac_objext conftest$ac_exeext
11829 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11830   (eval $ac_link) 2>&5
11831   ac_status=$?
11832   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11833   (exit $ac_status); } &&
11834          { ac_try='test -s conftest$ac_exeext'
11835   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11836   (eval $ac_try) 2>&5
11837   ac_status=$?
11838   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11839   (exit $ac_status); }; }; then
11840   ac_cv_c_asm_short="yes"
11841 else
11842   echo "$as_me: failed program was:" >&5
11843 sed 's/^/| /' conftest.$ac_ext >&5
11844
11845 ac_cv_c_asm_short="no"
11846 fi
11847 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11848 fi
11849 echo "$as_me:$LINENO: result: $ac_cv_c_asm_short" >&5
11850 echo "${ECHO_T}$ac_cv_c_asm_short" >&6
11851 if test "$ac_cv_c_asm_short" = "yes"
11852 then
11853
11854 cat >>confdefs.h <<\_ACEOF
11855 #define __ASM_SHORT ".short"
11856 _ACEOF
11857
11858 else
11859   cat >>confdefs.h <<\_ACEOF
11860 #define __ASM_SHORT ".half"
11861 _ACEOF
11862
11863 fi
11864
11865
11866 DLLEXT=""
11867
11868 DLLFLAGS="-D_REENTRANT"
11869
11870 DLLIBS=""
11871
11872 LDSHARED=""
11873
11874 LDDLL=""
11875
11876 LIBEXT="so"
11877
11878 IMPLIBEXT="def"
11879
11880
11881 case $host_os in
11882   cygwin*|mingw32*)
11883     if test -n "$ac_tool_prefix"; then
11884   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
11885 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
11886 echo "$as_me:$LINENO: checking for $ac_word" >&5
11887 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11888 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
11889   echo $ECHO_N "(cached) $ECHO_C" >&6
11890 else
11891   if test -n "$DLLTOOL"; then
11892   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
11893 else
11894 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11895 for as_dir in $PATH
11896 do
11897   IFS=$as_save_IFS
11898   test -z "$as_dir" && as_dir=.
11899   for ac_exec_ext in '' $ac_executable_extensions; do
11900   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11901     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
11902     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11903     break 2
11904   fi
11905 done
11906 done
11907
11908 fi
11909 fi
11910 DLLTOOL=$ac_cv_prog_DLLTOOL
11911 if test -n "$DLLTOOL"; then
11912   echo "$as_me:$LINENO: result: $DLLTOOL" >&5
11913 echo "${ECHO_T}$DLLTOOL" >&6
11914 else
11915   echo "$as_me:$LINENO: result: no" >&5
11916 echo "${ECHO_T}no" >&6
11917 fi
11918
11919 fi
11920 if test -z "$ac_cv_prog_DLLTOOL"; then
11921   ac_ct_DLLTOOL=$DLLTOOL
11922   # Extract the first word of "dlltool", so it can be a program name with args.
11923 set dummy dlltool; ac_word=$2
11924 echo "$as_me:$LINENO: checking for $ac_word" >&5
11925 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11926 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
11927   echo $ECHO_N "(cached) $ECHO_C" >&6
11928 else
11929   if test -n "$ac_ct_DLLTOOL"; then
11930   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
11931 else
11932 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11933 for as_dir in $PATH
11934 do
11935   IFS=$as_save_IFS
11936   test -z "$as_dir" && as_dir=.
11937   for ac_exec_ext in '' $ac_executable_extensions; do
11938   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11939     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
11940     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11941     break 2
11942   fi
11943 done
11944 done
11945
11946   test -z "$ac_cv_prog_ac_ct_DLLTOOL" && ac_cv_prog_ac_ct_DLLTOOL="false"
11947 fi
11948 fi
11949 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
11950 if test -n "$ac_ct_DLLTOOL"; then
11951   echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
11952 echo "${ECHO_T}$ac_ct_DLLTOOL" >&6
11953 else
11954   echo "$as_me:$LINENO: result: no" >&5
11955 echo "${ECHO_T}no" >&6
11956 fi
11957
11958   DLLTOOL=$ac_ct_DLLTOOL
11959 else
11960   DLLTOOL="$ac_cv_prog_DLLTOOL"
11961 fi
11962
11963     if test -n "$ac_tool_prefix"; then
11964   # Extract the first word of "${ac_tool_prefix}dllwrap", so it can be a program name with args.
11965 set dummy ${ac_tool_prefix}dllwrap; ac_word=$2
11966 echo "$as_me:$LINENO: checking for $ac_word" >&5
11967 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11968 if test "${ac_cv_prog_DLLWRAP+set}" = set; then
11969   echo $ECHO_N "(cached) $ECHO_C" >&6
11970 else
11971   if test -n "$DLLWRAP"; then
11972   ac_cv_prog_DLLWRAP="$DLLWRAP" # Let the user override the test.
11973 else
11974 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11975 for as_dir in $PATH
11976 do
11977   IFS=$as_save_IFS
11978   test -z "$as_dir" && as_dir=.
11979   for ac_exec_ext in '' $ac_executable_extensions; do
11980   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11981     ac_cv_prog_DLLWRAP="${ac_tool_prefix}dllwrap"
11982     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11983     break 2
11984   fi
11985 done
11986 done
11987
11988 fi
11989 fi
11990 DLLWRAP=$ac_cv_prog_DLLWRAP
11991 if test -n "$DLLWRAP"; then
11992   echo "$as_me:$LINENO: result: $DLLWRAP" >&5
11993 echo "${ECHO_T}$DLLWRAP" >&6
11994 else
11995   echo "$as_me:$LINENO: result: no" >&5
11996 echo "${ECHO_T}no" >&6
11997 fi
11998
11999 fi
12000 if test -z "$ac_cv_prog_DLLWRAP"; then
12001   ac_ct_DLLWRAP=$DLLWRAP
12002   # Extract the first word of "dllwrap", so it can be a program name with args.
12003 set dummy dllwrap; ac_word=$2
12004 echo "$as_me:$LINENO: checking for $ac_word" >&5
12005 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12006 if test "${ac_cv_prog_ac_ct_DLLWRAP+set}" = set; then
12007   echo $ECHO_N "(cached) $ECHO_C" >&6
12008 else
12009   if test -n "$ac_ct_DLLWRAP"; then
12010   ac_cv_prog_ac_ct_DLLWRAP="$ac_ct_DLLWRAP" # Let the user override the test.
12011 else
12012 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12013 for as_dir in $PATH
12014 do
12015   IFS=$as_save_IFS
12016   test -z "$as_dir" && as_dir=.
12017   for ac_exec_ext in '' $ac_executable_extensions; do
12018   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12019     ac_cv_prog_ac_ct_DLLWRAP="dllwrap"
12020     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12021     break 2
12022   fi
12023 done
12024 done
12025
12026   test -z "$ac_cv_prog_ac_ct_DLLWRAP" && ac_cv_prog_ac_ct_DLLWRAP="false"
12027 fi
12028 fi
12029 ac_ct_DLLWRAP=$ac_cv_prog_ac_ct_DLLWRAP
12030 if test -n "$ac_ct_DLLWRAP"; then
12031   echo "$as_me:$LINENO: result: $ac_ct_DLLWRAP" >&5
12032 echo "${ECHO_T}$ac_ct_DLLWRAP" >&6
12033 else
12034   echo "$as_me:$LINENO: result: no" >&5
12035 echo "${ECHO_T}no" >&6
12036 fi
12037
12038   DLLWRAP=$ac_ct_DLLWRAP
12039 else
12040   DLLWRAP="$ac_cv_prog_DLLWRAP"
12041 fi
12042
12043     if test "$DLLWRAP" = "false"; then
12044       LIBEXT="a"
12045     else
12046             LIBEXT="dll"
12047     fi
12048     IMPLIBEXT="a"
12049     ;;
12050   *)
12051
12052 for ac_header in dlfcn.h
12053 do
12054 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12055 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12056   echo "$as_me:$LINENO: checking for $ac_header" >&5
12057 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12058 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12059   echo $ECHO_N "(cached) $ECHO_C" >&6
12060 fi
12061 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12062 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12063 else
12064   # Is the header compilable?
12065 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12066 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12067 cat >conftest.$ac_ext <<_ACEOF
12068 #line $LINENO "configure"
12069 /* confdefs.h.  */
12070 _ACEOF
12071 cat confdefs.h >>conftest.$ac_ext
12072 cat >>conftest.$ac_ext <<_ACEOF
12073 /* end confdefs.h.  */
12074 $ac_includes_default
12075 #include <$ac_header>
12076 _ACEOF
12077 rm -f conftest.$ac_objext
12078 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12079   (eval $ac_compile) 2>&5
12080   ac_status=$?
12081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12082   (exit $ac_status); } &&
12083          { ac_try='test -s conftest.$ac_objext'
12084   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12085   (eval $ac_try) 2>&5
12086   ac_status=$?
12087   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12088   (exit $ac_status); }; }; then
12089   ac_header_compiler=yes
12090 else
12091   echo "$as_me: failed program was:" >&5
12092 sed 's/^/| /' conftest.$ac_ext >&5
12093
12094 ac_header_compiler=no
12095 fi
12096 rm -f conftest.$ac_objext conftest.$ac_ext
12097 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12098 echo "${ECHO_T}$ac_header_compiler" >&6
12099
12100 # Is the header present?
12101 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12102 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12103 cat >conftest.$ac_ext <<_ACEOF
12104 #line $LINENO "configure"
12105 /* confdefs.h.  */
12106 _ACEOF
12107 cat confdefs.h >>conftest.$ac_ext
12108 cat >>conftest.$ac_ext <<_ACEOF
12109 /* end confdefs.h.  */
12110 #include <$ac_header>
12111 _ACEOF
12112 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12113   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12114   ac_status=$?
12115   grep -v '^ *+' conftest.er1 >conftest.err
12116   rm -f conftest.er1
12117   cat conftest.err >&5
12118   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12119   (exit $ac_status); } >/dev/null; then
12120   if test -s conftest.err; then
12121     ac_cpp_err=$ac_c_preproc_warn_flag
12122   else
12123     ac_cpp_err=
12124   fi
12125 else
12126   ac_cpp_err=yes
12127 fi
12128 if test -z "$ac_cpp_err"; then
12129   ac_header_preproc=yes
12130 else
12131   echo "$as_me: failed program was:" >&5
12132 sed 's/^/| /' conftest.$ac_ext >&5
12133
12134   ac_header_preproc=no
12135 fi
12136 rm -f conftest.err conftest.$ac_ext
12137 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12138 echo "${ECHO_T}$ac_header_preproc" >&6
12139
12140 # So?  What about this header?
12141 case $ac_header_compiler:$ac_header_preproc in
12142   yes:no )
12143     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12144 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12145     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12146 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12147     (
12148       cat <<\_ASBOX
12149 ## ------------------------------------ ##
12150 ## Report this to bug-autoconf@gnu.org. ##
12151 ## ------------------------------------ ##
12152 _ASBOX
12153     ) |
12154       sed "s/^/$as_me: WARNING:     /" >&2
12155     ;;
12156   no:yes )
12157     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12158 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12159     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12160 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12161     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12162 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12163     (
12164       cat <<\_ASBOX
12165 ## ------------------------------------ ##
12166 ## Report this to bug-autoconf@gnu.org. ##
12167 ## ------------------------------------ ##
12168 _ASBOX
12169     ) |
12170       sed "s/^/$as_me: WARNING:     /" >&2
12171     ;;
12172 esac
12173 echo "$as_me:$LINENO: checking for $ac_header" >&5
12174 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12175 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12176   echo $ECHO_N "(cached) $ECHO_C" >&6
12177 else
12178   eval "$as_ac_Header=$ac_header_preproc"
12179 fi
12180 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12181 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12182
12183 fi
12184 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12185   cat >>confdefs.h <<_ACEOF
12186 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12187 _ACEOF
12188
12189 for ac_func in dlopen
12190 do
12191 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12192 echo "$as_me:$LINENO: checking for $ac_func" >&5
12193 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12194 if eval "test \"\${$as_ac_var+set}\" = set"; then
12195   echo $ECHO_N "(cached) $ECHO_C" >&6
12196 else
12197   cat >conftest.$ac_ext <<_ACEOF
12198 #line $LINENO "configure"
12199 /* confdefs.h.  */
12200 _ACEOF
12201 cat confdefs.h >>conftest.$ac_ext
12202 cat >>conftest.$ac_ext <<_ACEOF
12203 /* end confdefs.h.  */
12204 /* System header to define __stub macros and hopefully few prototypes,
12205     which can conflict with char $ac_func (); below.
12206     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12207     <limits.h> exists even on freestanding compilers.  */
12208 #ifdef __STDC__
12209 # include <limits.h>
12210 #else
12211 # include <assert.h>
12212 #endif
12213 /* Override any gcc2 internal prototype to avoid an error.  */
12214 #ifdef __cplusplus
12215 extern "C"
12216 {
12217 #endif
12218 /* We use char because int might match the return type of a gcc2
12219    builtin and then its argument prototype would still apply.  */
12220 char $ac_func ();
12221 /* The GNU C library defines this for functions which it implements
12222     to always fail with ENOSYS.  Some functions are actually named
12223     something starting with __ and the normal name is an alias.  */
12224 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12225 choke me
12226 #else
12227 char (*f) () = $ac_func;
12228 #endif
12229 #ifdef __cplusplus
12230 }
12231 #endif
12232
12233 int
12234 main ()
12235 {
12236 return f != $ac_func;
12237   ;
12238   return 0;
12239 }
12240 _ACEOF
12241 rm -f conftest.$ac_objext conftest$ac_exeext
12242 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12243   (eval $ac_link) 2>&5
12244   ac_status=$?
12245   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12246   (exit $ac_status); } &&
12247          { ac_try='test -s conftest$ac_exeext'
12248   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12249   (eval $ac_try) 2>&5
12250   ac_status=$?
12251   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12252   (exit $ac_status); }; }; then
12253   eval "$as_ac_var=yes"
12254 else
12255   echo "$as_me: failed program was:" >&5
12256 sed 's/^/| /' conftest.$ac_ext >&5
12257
12258 eval "$as_ac_var=no"
12259 fi
12260 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12261 fi
12262 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12263 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12264 if test `eval echo '${'$as_ac_var'}'` = yes; then
12265   cat >>confdefs.h <<_ACEOF
12266 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12267 _ACEOF
12268
12269 else
12270   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12271 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
12272 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12273   echo $ECHO_N "(cached) $ECHO_C" >&6
12274 else
12275   ac_check_lib_save_LIBS=$LIBS
12276 LIBS="-ldl  $LIBS"
12277 cat >conftest.$ac_ext <<_ACEOF
12278 #line $LINENO "configure"
12279 /* confdefs.h.  */
12280 _ACEOF
12281 cat confdefs.h >>conftest.$ac_ext
12282 cat >>conftest.$ac_ext <<_ACEOF
12283 /* end confdefs.h.  */
12284
12285 /* Override any gcc2 internal prototype to avoid an error.  */
12286 #ifdef __cplusplus
12287 extern "C"
12288 #endif
12289 /* We use char because int might match the return type of a gcc2
12290    builtin and then its argument prototype would still apply.  */
12291 char dlopen ();
12292 int
12293 main ()
12294 {
12295 dlopen ();
12296   ;
12297   return 0;
12298 }
12299 _ACEOF
12300 rm -f conftest.$ac_objext conftest$ac_exeext
12301 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12302   (eval $ac_link) 2>&5
12303   ac_status=$?
12304   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12305   (exit $ac_status); } &&
12306          { ac_try='test -s conftest$ac_exeext'
12307   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12308   (eval $ac_try) 2>&5
12309   ac_status=$?
12310   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12311   (exit $ac_status); }; }; then
12312   ac_cv_lib_dl_dlopen=yes
12313 else
12314   echo "$as_me: failed program was:" >&5
12315 sed 's/^/| /' conftest.$ac_ext >&5
12316
12317 ac_cv_lib_dl_dlopen=no
12318 fi
12319 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12320 LIBS=$ac_check_lib_save_LIBS
12321 fi
12322 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12323 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
12324 if test $ac_cv_lib_dl_dlopen = yes; then
12325
12326 cat >>confdefs.h <<\_ACEOF
12327 #define HAVE_DLOPEN 1
12328 _ACEOF
12329
12330                           DLLIBS="-ldl"
12331 else
12332   LIBEXT="a"
12333 fi
12334
12335 fi
12336 done
12337
12338 else
12339   LIBEXT="a"
12340 fi
12341
12342 done
12343
12344
12345     if test "$LIBEXT" = "so"
12346     then
12347       DLLFLAGS="$DLLFLAGS -fPIC"
12348       DLLEXT=".so"
12349       echo "$as_me:$LINENO: checking whether we can build a GNU style ELF dll" >&5
12350 echo $ECHO_N "checking whether we can build a GNU style ELF dll... $ECHO_C" >&6
12351 if test "${ac_cv_c_dll_gnuelf+set}" = set; then
12352   echo $ECHO_N "(cached) $ECHO_C" >&6
12353 else
12354   ac_wine_try_cflags_saved=$CFLAGS
12355 CFLAGS="$CFLAGS -fPIC -shared -Wl,-soname,conftest.so.1.0,-Bsymbolic"
12356 cat >conftest.$ac_ext <<_ACEOF
12357 #line $LINENO "configure"
12358 /* confdefs.h.  */
12359 _ACEOF
12360 cat confdefs.h >>conftest.$ac_ext
12361 cat >>conftest.$ac_ext <<_ACEOF
12362 /* end confdefs.h.  */
12363
12364 int
12365 main ()
12366 {
12367
12368   ;
12369   return 0;
12370 }
12371 _ACEOF
12372 rm -f conftest.$ac_objext conftest$ac_exeext
12373 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12374   (eval $ac_link) 2>&5
12375   ac_status=$?
12376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12377   (exit $ac_status); } &&
12378          { ac_try='test -s 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   ac_cv_c_dll_gnuelf="yes"
12385 else
12386   echo "$as_me: failed program was:" >&5
12387 sed 's/^/| /' conftest.$ac_ext >&5
12388
12389 ac_cv_c_dll_gnuelf="no"
12390 fi
12391 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12392 CFLAGS=$ac_wine_try_cflags_saved
12393 fi
12394 echo "$as_me:$LINENO: result: $ac_cv_c_dll_gnuelf" >&5
12395 echo "${ECHO_T}$ac_cv_c_dll_gnuelf" >&6
12396       if test "$ac_cv_c_dll_gnuelf" = "yes"
12397       then
12398         LDSHARED="\$(CC) -shared \$(SONAME:%=-Wl,-soname,%)"
12399         LDDLL="\$(CC) -shared -Wl,-Bsymbolic"
12400         echo "$as_me:$LINENO: checking whether the linker accepts -z defs" >&5
12401 echo $ECHO_N "checking whether the linker accepts -z defs... $ECHO_C" >&6
12402 if test "${ac_cv_c_dll_zdefs+set}" = set; then
12403   echo $ECHO_N "(cached) $ECHO_C" >&6
12404 else
12405   ac_wine_try_cflags_saved=$CFLAGS
12406 CFLAGS="$CFLAGS -fPIC -shared -Wl,-Bsymbolic,-z,defs"
12407 cat >conftest.$ac_ext <<_ACEOF
12408 #line $LINENO "configure"
12409 /* confdefs.h.  */
12410 _ACEOF
12411 cat confdefs.h >>conftest.$ac_ext
12412 cat >>conftest.$ac_ext <<_ACEOF
12413 /* end confdefs.h.  */
12414
12415 int
12416 main ()
12417 {
12418
12419   ;
12420   return 0;
12421 }
12422 _ACEOF
12423 rm -f conftest.$ac_objext conftest$ac_exeext
12424 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12425   (eval $ac_link) 2>&5
12426   ac_status=$?
12427   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12428   (exit $ac_status); } &&
12429          { ac_try='test -s conftest$ac_exeext'
12430   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12431   (eval $ac_try) 2>&5
12432   ac_status=$?
12433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12434   (exit $ac_status); }; }; then
12435   ac_cv_c_dll_zdefs="yes"
12436 else
12437   echo "$as_me: failed program was:" >&5
12438 sed 's/^/| /' conftest.$ac_ext >&5
12439
12440 ac_cv_c_dll_zdefs="no"
12441 fi
12442 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12443 CFLAGS=$ac_wine_try_cflags_saved
12444 fi
12445 echo "$as_me:$LINENO: result: $ac_cv_c_dll_zdefs" >&5
12446 echo "${ECHO_T}$ac_cv_c_dll_zdefs" >&6
12447         if test "$ac_cv_c_dll_zdefs" = "yes"
12448         then
12449           LDDLL="$LDDLL,-z,defs"
12450         fi
12451         echo "$as_me:$LINENO: checking whether we can relocate the executable to 0x3c000000" >&5
12452 echo $ECHO_N "checking whether we can relocate the executable to 0x3c000000... $ECHO_C" >&6
12453 if test "${ac_cv_ld_reloc_exec+set}" = set; then
12454   echo $ECHO_N "(cached) $ECHO_C" >&6
12455 else
12456   saved_CFLAGS="$CFLAGS"
12457            CFLAGS="$CFLAGS -Wl,--section-start,.interp=0x3c000100"
12458            if test "$cross_compiling" = yes; then
12459   ac_cv_ld_reloc_exec="no"
12460 else
12461   cat >conftest.$ac_ext <<_ACEOF
12462 #line $LINENO "configure"
12463 /* confdefs.h.  */
12464 _ACEOF
12465 cat confdefs.h >>conftest.$ac_ext
12466 cat >>conftest.$ac_ext <<_ACEOF
12467 /* end confdefs.h.  */
12468 #include <unistd.h>
12469                        int main() { return (sbrk(32*1024*1024) == (void *)-1); }
12470 _ACEOF
12471 rm -f conftest$ac_exeext
12472 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12473   (eval $ac_link) 2>&5
12474   ac_status=$?
12475   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12476   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12477   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12478   (eval $ac_try) 2>&5
12479   ac_status=$?
12480   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12481   (exit $ac_status); }; }; then
12482   ac_cv_ld_reloc_exec="yes"
12483 else
12484   echo "$as_me: program exited with status $ac_status" >&5
12485 echo "$as_me: failed program was:" >&5
12486 sed 's/^/| /' conftest.$ac_ext >&5
12487
12488 ( exit $ac_status )
12489 ac_cv_ld_reloc_exec="no"
12490 fi
12491 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12492 fi
12493            CFLAGS="$saved_CFLAGS"
12494 fi
12495 echo "$as_me:$LINENO: result: $ac_cv_ld_reloc_exec" >&5
12496 echo "${ECHO_T}$ac_cv_ld_reloc_exec" >&6
12497         if test "$ac_cv_ld_reloc_exec" = "yes"
12498         then
12499           LDEXECFLAGS="-Wl,--section-start,.interp=0x3c000100"
12500
12501         fi
12502         echo "$as_me:$LINENO: checking whether the linker accepts --export-dynamic" >&5
12503 echo $ECHO_N "checking whether the linker accepts --export-dynamic... $ECHO_C" >&6
12504 if test "${ac_cv_c_export_dynamic+set}" = set; then
12505   echo $ECHO_N "(cached) $ECHO_C" >&6
12506 else
12507   ac_wine_try_cflags_saved=$CFLAGS
12508 CFLAGS="$CFLAGS -fPIC -Wl,--export-dynamic"
12509 cat >conftest.$ac_ext <<_ACEOF
12510 #line $LINENO "configure"
12511 /* confdefs.h.  */
12512 _ACEOF
12513 cat confdefs.h >>conftest.$ac_ext
12514 cat >>conftest.$ac_ext <<_ACEOF
12515 /* end confdefs.h.  */
12516
12517 int
12518 main ()
12519 {
12520
12521   ;
12522   return 0;
12523 }
12524 _ACEOF
12525 rm -f conftest.$ac_objext conftest$ac_exeext
12526 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12527   (eval $ac_link) 2>&5
12528   ac_status=$?
12529   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12530   (exit $ac_status); } &&
12531          { ac_try='test -s conftest$ac_exeext'
12532   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12533   (eval $ac_try) 2>&5
12534   ac_status=$?
12535   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12536   (exit $ac_status); }; }; then
12537   ac_cv_c_export_dynamic="yes"
12538 else
12539   echo "$as_me: failed program was:" >&5
12540 sed 's/^/| /' conftest.$ac_ext >&5
12541
12542 ac_cv_c_export_dynamic="no"
12543 fi
12544 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12545 CFLAGS=$ac_wine_try_cflags_saved
12546 fi
12547 echo "$as_me:$LINENO: result: $ac_cv_c_export_dynamic" >&5
12548 echo "${ECHO_T}$ac_cv_c_export_dynamic" >&6
12549         if test "$ac_cv_c_export_dynamic" = "yes"
12550         then
12551           LDEXECFLAGS="$LDEXECFLAGS -Wl,--export-dynamic"
12552         fi
12553       else
12554         echo "$as_me:$LINENO: checking whether we can build a UnixWare (Solaris) dll" >&5
12555 echo $ECHO_N "checking whether we can build a UnixWare (Solaris) dll... $ECHO_C" >&6
12556 if test "${ac_cv_c_dll_unixware+set}" = set; then
12557   echo $ECHO_N "(cached) $ECHO_C" >&6
12558 else
12559   ac_wine_try_cflags_saved=$CFLAGS
12560 CFLAGS="$CFLAGS -fPIC -Wl,-G,-h,conftest.so.1.0,-B,symbolic"
12561 cat >conftest.$ac_ext <<_ACEOF
12562 #line $LINENO "configure"
12563 /* confdefs.h.  */
12564 _ACEOF
12565 cat confdefs.h >>conftest.$ac_ext
12566 cat >>conftest.$ac_ext <<_ACEOF
12567 /* end confdefs.h.  */
12568
12569 int
12570 main ()
12571 {
12572
12573   ;
12574   return 0;
12575 }
12576 _ACEOF
12577 rm -f conftest.$ac_objext conftest$ac_exeext
12578 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12579   (eval $ac_link) 2>&5
12580   ac_status=$?
12581   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12582   (exit $ac_status); } &&
12583          { ac_try='test -s conftest$ac_exeext'
12584   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12585   (eval $ac_try) 2>&5
12586   ac_status=$?
12587   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12588   (exit $ac_status); }; }; then
12589   ac_cv_c_dll_unixware="yes"
12590 else
12591   echo "$as_me: failed program was:" >&5
12592 sed 's/^/| /' conftest.$ac_ext >&5
12593
12594 ac_cv_c_dll_unixware="no"
12595 fi
12596 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12597 CFLAGS=$ac_wine_try_cflags_saved
12598 fi
12599 echo "$as_me:$LINENO: result: $ac_cv_c_dll_unixware" >&5
12600 echo "${ECHO_T}$ac_cv_c_dll_unixware" >&6
12601         if test "$ac_cv_c_dll_unixware" = "yes"
12602         then
12603           LDSHARED="\$(CC) -Wl,-G \$(SONAME:%=-Wl,-h,%)"
12604           LDDLL="\$(CC) -Wl,-G,-B,symbolic"
12605         fi
12606       fi
12607     fi
12608
12609         CROSSTEST=""
12610
12611     if test "$cross_compiling" = "no"
12612     then
12613       for ac_prog in i586-mingw32msvc-gcc i386-mingw32-gcc
12614 do
12615   # Extract the first word of "$ac_prog", so it can be a program name with args.
12616 set dummy $ac_prog; ac_word=$2
12617 echo "$as_me:$LINENO: checking for $ac_word" >&5
12618 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12619 if test "${ac_cv_prog_CROSSCC+set}" = set; then
12620   echo $ECHO_N "(cached) $ECHO_C" >&6
12621 else
12622   if test -n "$CROSSCC"; then
12623   ac_cv_prog_CROSSCC="$CROSSCC" # Let the user override the test.
12624 else
12625 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12626 for as_dir in $PATH
12627 do
12628   IFS=$as_save_IFS
12629   test -z "$as_dir" && as_dir=.
12630   for ac_exec_ext in '' $ac_executable_extensions; do
12631   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12632     ac_cv_prog_CROSSCC="$ac_prog"
12633     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12634     break 2
12635   fi
12636 done
12637 done
12638
12639 fi
12640 fi
12641 CROSSCC=$ac_cv_prog_CROSSCC
12642 if test -n "$CROSSCC"; then
12643   echo "$as_me:$LINENO: result: $CROSSCC" >&5
12644 echo "${ECHO_T}$CROSSCC" >&6
12645 else
12646   echo "$as_me:$LINENO: result: no" >&5
12647 echo "${ECHO_T}no" >&6
12648 fi
12649
12650   test -n "$CROSSCC" && break
12651 done
12652 test -n "$CROSSCC" || CROSSCC="false"
12653
12654       for ac_prog in i586-mingw32msvc-dlltool i386-mingw32-dlltool
12655 do
12656   # Extract the first word of "$ac_prog", so it can be a program name with args.
12657 set dummy $ac_prog; ac_word=$2
12658 echo "$as_me:$LINENO: checking for $ac_word" >&5
12659 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12660 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
12661   echo $ECHO_N "(cached) $ECHO_C" >&6
12662 else
12663   if test -n "$DLLTOOL"; then
12664   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
12665 else
12666 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12667 for as_dir in $PATH
12668 do
12669   IFS=$as_save_IFS
12670   test -z "$as_dir" && as_dir=.
12671   for ac_exec_ext in '' $ac_executable_extensions; do
12672   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12673     ac_cv_prog_DLLTOOL="$ac_prog"
12674     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12675     break 2
12676   fi
12677 done
12678 done
12679
12680 fi
12681 fi
12682 DLLTOOL=$ac_cv_prog_DLLTOOL
12683 if test -n "$DLLTOOL"; then
12684   echo "$as_me:$LINENO: result: $DLLTOOL" >&5
12685 echo "${ECHO_T}$DLLTOOL" >&6
12686 else
12687   echo "$as_me:$LINENO: result: no" >&5
12688 echo "${ECHO_T}no" >&6
12689 fi
12690
12691   test -n "$DLLTOOL" && break
12692 done
12693 test -n "$DLLTOOL" || DLLTOOL="false"
12694
12695       for ac_prog in i586-mingw32msvc-windres i386-mingw32-windres
12696 do
12697   # Extract the first word of "$ac_prog", so it can be a program name with args.
12698 set dummy $ac_prog; ac_word=$2
12699 echo "$as_me:$LINENO: checking for $ac_word" >&5
12700 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12701 if test "${ac_cv_prog_CROSSWINDRES+set}" = set; then
12702   echo $ECHO_N "(cached) $ECHO_C" >&6
12703 else
12704   if test -n "$CROSSWINDRES"; then
12705   ac_cv_prog_CROSSWINDRES="$CROSSWINDRES" # Let the user override the test.
12706 else
12707 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12708 for as_dir in $PATH
12709 do
12710   IFS=$as_save_IFS
12711   test -z "$as_dir" && as_dir=.
12712   for ac_exec_ext in '' $ac_executable_extensions; do
12713   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12714     ac_cv_prog_CROSSWINDRES="$ac_prog"
12715     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12716     break 2
12717   fi
12718 done
12719 done
12720
12721 fi
12722 fi
12723 CROSSWINDRES=$ac_cv_prog_CROSSWINDRES
12724 if test -n "$CROSSWINDRES"; then
12725   echo "$as_me:$LINENO: result: $CROSSWINDRES" >&5
12726 echo "${ECHO_T}$CROSSWINDRES" >&6
12727 else
12728   echo "$as_me:$LINENO: result: no" >&5
12729 echo "${ECHO_T}no" >&6
12730 fi
12731
12732   test -n "$CROSSWINDRES" && break
12733 done
12734 test -n "$CROSSWINDRES" || CROSSWINDRES="false"
12735
12736       if test "$CROSSCC" != "false"; then CROSSTEST="\$(CROSSTEST)"; fi
12737     fi
12738     ;;
12739 esac
12740
12741 if test "$LIBEXT" = "a"; then
12742   { { echo "$as_me:$LINENO: error: could not find a way to build shared libraries.
12743 It is currently not possible to build Wine without shared library
12744 (.so) support to allow transparent switch between .so and .dll files.
12745 If you are using Linux, you will need a newer binutils.
12746 " >&5
12747 echo "$as_me: error: could not find a way to build shared libraries.
12748 It is currently not possible to build Wine without shared library
12749 (.so) support to allow transparent switch between .so and .dll files.
12750 If you are using Linux, you will need a newer binutils.
12751 " >&2;}
12752    { (exit 1); exit 1; }; }
12753 fi
12754
12755 case $build_os in
12756   cygwin*|mingw32*)
12757     LDPATH="PATH=\"\$(TOOLSDIR)/libs/unicode:\$\$PATH\""
12758  ;;
12759   *)
12760     LDPATH="LD_LIBRARY_PATH=\"\$(TOOLSDIR)/libs/unicode:\$\$LD_LIBRARY_PATH\""
12761  ;;
12762 esac
12763
12764 case $host_os in
12765   mingw32*)
12766     CRTLIBS="-lmsvcrt"
12767  ;;
12768 esac
12769
12770 case $host_os in
12771   linux*)
12772     WINE_BINARIES="wine-glibc wine-kthread wine-pthread"
12773
12774     MAIN_BINARY="wine-glibc"
12775
12776     ;;
12777   *)
12778     WINE_BINARIES="wine-kthread"
12779
12780     MAIN_BINARY="wine-kthread"
12781
12782     ;;
12783 esac
12784
12785
12786 if test "$LIBEXT" = "so"
12787 then
12788   # Extract the first word of "ldd", so it can be a program name with args.
12789 set dummy ldd; ac_word=$2
12790 echo "$as_me:$LINENO: checking for $ac_word" >&5
12791 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12792 if test "${ac_cv_path_LDD+set}" = set; then
12793   echo $ECHO_N "(cached) $ECHO_C" >&6
12794 else
12795   case $LDD in
12796   [\\/]* | ?:[\\/]*)
12797   ac_cv_path_LDD="$LDD" # Let the user override the test with a path.
12798   ;;
12799   *)
12800   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12801 as_dummy="/sbin:/usr/sbin:$PATH"
12802 for as_dir in $as_dummy
12803 do
12804   IFS=$as_save_IFS
12805   test -z "$as_dir" && as_dir=.
12806   for ac_exec_ext in '' $ac_executable_extensions; do
12807   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12808     ac_cv_path_LDD="$as_dir/$ac_word$ac_exec_ext"
12809     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12810     break 2
12811   fi
12812 done
12813 done
12814
12815   test -z "$ac_cv_path_LDD" && ac_cv_path_LDD="true"
12816   ;;
12817 esac
12818 fi
12819 LDD=$ac_cv_path_LDD
12820
12821 if test -n "$LDD"; then
12822   echo "$as_me:$LINENO: result: $LDD" >&5
12823 echo "${ECHO_T}$LDD" >&6
12824 else
12825   echo "$as_me:$LINENO: result: no" >&5
12826 echo "${ECHO_T}no" >&6
12827 fi
12828
12829
12830 echo "$as_me:$LINENO: checking for -lX11 soname" >&5
12831 echo $ECHO_N "checking for -lX11 soname... $ECHO_C" >&6
12832 if test "${ac_cv_lib_soname_X11+set}" = set; then
12833   echo $ECHO_N "(cached) $ECHO_C" >&6
12834 else
12835   ac_get_soname_save_LIBS=$LIBS
12836 LIBS="-lX11 $X_LIBS $X_EXTRA_LIBS $LIBS"
12837   cat >conftest.$ac_ext <<_ACEOF
12838 #line $LINENO "configure"
12839 /* confdefs.h.  */
12840 _ACEOF
12841 cat confdefs.h >>conftest.$ac_ext
12842 cat >>conftest.$ac_ext <<_ACEOF
12843 /* end confdefs.h.  */
12844
12845 /* Override any gcc2 internal prototype to avoid an error.  */
12846 #ifdef __cplusplus
12847 extern "C"
12848 #endif
12849 /* We use char because int might match the return type of a gcc2
12850    builtin and then its argument prototype would still apply.  */
12851 char XCreateWindow ();
12852 int
12853 main ()
12854 {
12855 XCreateWindow ();
12856   ;
12857   return 0;
12858 }
12859 _ACEOF
12860 rm -f conftest.$ac_objext conftest$ac_exeext
12861 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12862   (eval $ac_link) 2>&5
12863   ac_status=$?
12864   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12865   (exit $ac_status); } &&
12866          { ac_try='test -s conftest$ac_exeext'
12867   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12868   (eval $ac_try) 2>&5
12869   ac_status=$?
12870   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12871   (exit $ac_status); }; }; then
12872   ac_cv_lib_soname_X11=`$ac_cv_path_LDD conftest$ac_exeext | grep libX11\\.so | sed 's/^.*\(libX11\.so[^         ]*\).*$/\1/'`
12873   if test "x$ac_cv_lib_soname_X11" = "x"
12874   then
12875      ac_cv_lib_soname_X11="libX11.so"
12876   fi
12877 else
12878   echo "$as_me: failed program was:" >&5
12879 sed 's/^/| /' conftest.$ac_ext >&5
12880
12881 ac_cv_lib_soname_X11="libX11.so"
12882 fi
12883 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12884   LIBS=$ac_get_soname_save_LIBS
12885 fi
12886 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_X11" >&5
12887 echo "${ECHO_T}$ac_cv_lib_soname_X11" >&6
12888 if test "x$ac_cv_lib_soname_X11" != xNONE
12889 then
12890 cat >>confdefs.h <<_ACEOF
12891 #define SONAME_LIBX11 "$ac_cv_lib_soname_X11"
12892 _ACEOF
12893 fi
12894
12895 echo "$as_me:$LINENO: checking for -lXext soname" >&5
12896 echo $ECHO_N "checking for -lXext soname... $ECHO_C" >&6
12897 if test "${ac_cv_lib_soname_Xext+set}" = set; then
12898   echo $ECHO_N "(cached) $ECHO_C" >&6
12899 else
12900   ac_get_soname_save_LIBS=$LIBS
12901 LIBS="-lXext $X_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
12902   cat >conftest.$ac_ext <<_ACEOF
12903 #line $LINENO "configure"
12904 /* confdefs.h.  */
12905 _ACEOF
12906 cat confdefs.h >>conftest.$ac_ext
12907 cat >>conftest.$ac_ext <<_ACEOF
12908 /* end confdefs.h.  */
12909
12910 /* Override any gcc2 internal prototype to avoid an error.  */
12911 #ifdef __cplusplus
12912 extern "C"
12913 #endif
12914 /* We use char because int might match the return type of a gcc2
12915    builtin and then its argument prototype would still apply.  */
12916 char XextCreateExtension ();
12917 int
12918 main ()
12919 {
12920 XextCreateExtension ();
12921   ;
12922   return 0;
12923 }
12924 _ACEOF
12925 rm -f conftest.$ac_objext conftest$ac_exeext
12926 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12927   (eval $ac_link) 2>&5
12928   ac_status=$?
12929   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12930   (exit $ac_status); } &&
12931          { ac_try='test -s conftest$ac_exeext'
12932   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12933   (eval $ac_try) 2>&5
12934   ac_status=$?
12935   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12936   (exit $ac_status); }; }; then
12937   ac_cv_lib_soname_Xext=`$ac_cv_path_LDD conftest$ac_exeext | grep libXext\\.so | sed 's/^.*\(libXext\.so[^      ]*\).*$/\1/'`
12938   if test "x$ac_cv_lib_soname_Xext" = "x"
12939   then
12940      ac_cv_lib_soname_Xext="libXext.so"
12941   fi
12942 else
12943   echo "$as_me: failed program was:" >&5
12944 sed 's/^/| /' conftest.$ac_ext >&5
12945
12946 ac_cv_lib_soname_Xext="libXext.so"
12947 fi
12948 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12949   LIBS=$ac_get_soname_save_LIBS
12950 fi
12951 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_Xext" >&5
12952 echo "${ECHO_T}$ac_cv_lib_soname_Xext" >&6
12953 if test "x$ac_cv_lib_soname_Xext" != xNONE
12954 then
12955 cat >>confdefs.h <<_ACEOF
12956 #define SONAME_LIBXEXT "$ac_cv_lib_soname_Xext"
12957 _ACEOF
12958 fi
12959
12960 echo "$as_me:$LINENO: checking for -lXrender soname" >&5
12961 echo $ECHO_N "checking for -lXrender soname... $ECHO_C" >&6
12962 if test "${ac_cv_lib_soname_Xrender+set}" = set; then
12963   echo $ECHO_N "(cached) $ECHO_C" >&6
12964 else
12965   ac_get_soname_save_LIBS=$LIBS
12966 LIBS="-lXrender $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
12967   cat >conftest.$ac_ext <<_ACEOF
12968 #line $LINENO "configure"
12969 /* confdefs.h.  */
12970 _ACEOF
12971 cat confdefs.h >>conftest.$ac_ext
12972 cat >>conftest.$ac_ext <<_ACEOF
12973 /* end confdefs.h.  */
12974
12975 /* Override any gcc2 internal prototype to avoid an error.  */
12976 #ifdef __cplusplus
12977 extern "C"
12978 #endif
12979 /* We use char because int might match the return type of a gcc2
12980    builtin and then its argument prototype would still apply.  */
12981 char XRenderQueryExtension ();
12982 int
12983 main ()
12984 {
12985 XRenderQueryExtension ();
12986   ;
12987   return 0;
12988 }
12989 _ACEOF
12990 rm -f conftest.$ac_objext conftest$ac_exeext
12991 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12992   (eval $ac_link) 2>&5
12993   ac_status=$?
12994   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12995   (exit $ac_status); } &&
12996          { ac_try='test -s conftest$ac_exeext'
12997   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12998   (eval $ac_try) 2>&5
12999   ac_status=$?
13000   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13001   (exit $ac_status); }; }; then
13002   ac_cv_lib_soname_Xrender=`$ac_cv_path_LDD conftest$ac_exeext | grep libXrender\\.so | sed 's/^.*\(libXrender\.so[^     ]*\).*$/\1/'`
13003   if test "x$ac_cv_lib_soname_Xrender" = "x"
13004   then
13005      ac_cv_lib_soname_Xrender="libXrender.so"
13006   fi
13007 else
13008   echo "$as_me: failed program was:" >&5
13009 sed 's/^/| /' conftest.$ac_ext >&5
13010
13011 ac_cv_lib_soname_Xrender="libXrender.so"
13012 fi
13013 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13014   LIBS=$ac_get_soname_save_LIBS
13015 fi
13016 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_Xrender" >&5
13017 echo "${ECHO_T}$ac_cv_lib_soname_Xrender" >&6
13018 if test "x$ac_cv_lib_soname_Xrender" != xNONE
13019 then
13020 cat >>confdefs.h <<_ACEOF
13021 #define SONAME_LIBXRENDER "$ac_cv_lib_soname_Xrender"
13022 _ACEOF
13023 fi
13024
13025 echo "$as_me:$LINENO: checking for -lfreetype soname" >&5
13026 echo $ECHO_N "checking for -lfreetype soname... $ECHO_C" >&6
13027 if test "${ac_cv_lib_soname_freetype+set}" = set; then
13028   echo $ECHO_N "(cached) $ECHO_C" >&6
13029 else
13030   ac_get_soname_save_LIBS=$LIBS
13031 LIBS="-lfreetype $X_LIBS $LIBS"
13032   cat >conftest.$ac_ext <<_ACEOF
13033 #line $LINENO "configure"
13034 /* confdefs.h.  */
13035 _ACEOF
13036 cat confdefs.h >>conftest.$ac_ext
13037 cat >>conftest.$ac_ext <<_ACEOF
13038 /* end confdefs.h.  */
13039
13040 /* Override any gcc2 internal prototype to avoid an error.  */
13041 #ifdef __cplusplus
13042 extern "C"
13043 #endif
13044 /* We use char because int might match the return type of a gcc2
13045    builtin and then its argument prototype would still apply.  */
13046 char FT_Init_FreeType ();
13047 int
13048 main ()
13049 {
13050 FT_Init_FreeType ();
13051   ;
13052   return 0;
13053 }
13054 _ACEOF
13055 rm -f conftest.$ac_objext conftest$ac_exeext
13056 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13057   (eval $ac_link) 2>&5
13058   ac_status=$?
13059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13060   (exit $ac_status); } &&
13061          { ac_try='test -s conftest$ac_exeext'
13062   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13063   (eval $ac_try) 2>&5
13064   ac_status=$?
13065   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13066   (exit $ac_status); }; }; then
13067   ac_cv_lib_soname_freetype=`$ac_cv_path_LDD conftest$ac_exeext | grep libfreetype\\.so | sed 's/^.*\(libfreetype\.so[^  ]*\).*$/\1/'`
13068   if test "x$ac_cv_lib_soname_freetype" = "x"
13069   then
13070      ac_cv_lib_soname_freetype="libfreetype.so"
13071   fi
13072 else
13073   echo "$as_me: failed program was:" >&5
13074 sed 's/^/| /' conftest.$ac_ext >&5
13075
13076 ac_cv_lib_soname_freetype="libfreetype.so"
13077 fi
13078 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13079   LIBS=$ac_get_soname_save_LIBS
13080 fi
13081 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_freetype" >&5
13082 echo "${ECHO_T}$ac_cv_lib_soname_freetype" >&6
13083 if test "x$ac_cv_lib_soname_freetype" != xNONE
13084 then
13085 cat >>confdefs.h <<_ACEOF
13086 #define SONAME_LIBFREETYPE "$ac_cv_lib_soname_freetype"
13087 _ACEOF
13088 fi
13089
13090 echo "$as_me:$LINENO: checking for -lGL soname" >&5
13091 echo $ECHO_N "checking for -lGL soname... $ECHO_C" >&6
13092 if test "${ac_cv_lib_soname_GL+set}" = set; then
13093   echo $ECHO_N "(cached) $ECHO_C" >&6
13094 else
13095   ac_get_soname_save_LIBS=$LIBS
13096 LIBS="-lGL $X_LIBS $X_EXTRA_LIBS $LIBS"
13097   cat >conftest.$ac_ext <<_ACEOF
13098 #line $LINENO "configure"
13099 /* confdefs.h.  */
13100 _ACEOF
13101 cat confdefs.h >>conftest.$ac_ext
13102 cat >>conftest.$ac_ext <<_ACEOF
13103 /* end confdefs.h.  */
13104
13105 /* Override any gcc2 internal prototype to avoid an error.  */
13106 #ifdef __cplusplus
13107 extern "C"
13108 #endif
13109 /* We use char because int might match the return type of a gcc2
13110    builtin and then its argument prototype would still apply.  */
13111 char glXQueryExtension ();
13112 int
13113 main ()
13114 {
13115 glXQueryExtension ();
13116   ;
13117   return 0;
13118 }
13119 _ACEOF
13120 rm -f conftest.$ac_objext conftest$ac_exeext
13121 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13122   (eval $ac_link) 2>&5
13123   ac_status=$?
13124   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13125   (exit $ac_status); } &&
13126          { ac_try='test -s conftest$ac_exeext'
13127   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13128   (eval $ac_try) 2>&5
13129   ac_status=$?
13130   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13131   (exit $ac_status); }; }; then
13132   ac_cv_lib_soname_GL=`$ac_cv_path_LDD conftest$ac_exeext | grep libGL\\.so | sed 's/^.*\(libGL\.so[^    ]*\).*$/\1/'`
13133   if test "x$ac_cv_lib_soname_GL" = "x"
13134   then
13135      ac_cv_lib_soname_GL="libGL.so"
13136   fi
13137 else
13138   echo "$as_me: failed program was:" >&5
13139 sed 's/^/| /' conftest.$ac_ext >&5
13140
13141 ac_cv_lib_soname_GL="libGL.so"
13142 fi
13143 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13144   LIBS=$ac_get_soname_save_LIBS
13145 fi
13146 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_GL" >&5
13147 echo "${ECHO_T}$ac_cv_lib_soname_GL" >&6
13148 if test "x$ac_cv_lib_soname_GL" != xNONE
13149 then
13150 cat >>confdefs.h <<_ACEOF
13151 #define SONAME_LIBGL "$ac_cv_lib_soname_GL"
13152 _ACEOF
13153 fi
13154
13155 echo "$as_me:$LINENO: checking for -lcups soname" >&5
13156 echo $ECHO_N "checking for -lcups soname... $ECHO_C" >&6
13157 if test "${ac_cv_lib_soname_cups+set}" = set; then
13158   echo $ECHO_N "(cached) $ECHO_C" >&6
13159 else
13160   ac_get_soname_save_LIBS=$LIBS
13161 LIBS="-lcups  $LIBS"
13162   cat >conftest.$ac_ext <<_ACEOF
13163 #line $LINENO "configure"
13164 /* confdefs.h.  */
13165 _ACEOF
13166 cat confdefs.h >>conftest.$ac_ext
13167 cat >>conftest.$ac_ext <<_ACEOF
13168 /* end confdefs.h.  */
13169
13170 /* Override any gcc2 internal prototype to avoid an error.  */
13171 #ifdef __cplusplus
13172 extern "C"
13173 #endif
13174 /* We use char because int might match the return type of a gcc2
13175    builtin and then its argument prototype would still apply.  */
13176 char cupsGetDefault ();
13177 int
13178 main ()
13179 {
13180 cupsGetDefault ();
13181   ;
13182   return 0;
13183 }
13184 _ACEOF
13185 rm -f conftest.$ac_objext conftest$ac_exeext
13186 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13187   (eval $ac_link) 2>&5
13188   ac_status=$?
13189   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13190   (exit $ac_status); } &&
13191          { ac_try='test -s conftest$ac_exeext'
13192   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13193   (eval $ac_try) 2>&5
13194   ac_status=$?
13195   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13196   (exit $ac_status); }; }; then
13197   ac_cv_lib_soname_cups=`$ac_cv_path_LDD conftest$ac_exeext | grep libcups\\.so | sed 's/^.*\(libcups\.so[^      ]*\).*$/\1/'`
13198   if test "x$ac_cv_lib_soname_cups" = "x"
13199   then
13200      ac_cv_lib_soname_cups="libcups.so"
13201   fi
13202 else
13203   echo "$as_me: failed program was:" >&5
13204 sed 's/^/| /' conftest.$ac_ext >&5
13205
13206 ac_cv_lib_soname_cups="libcups.so"
13207 fi
13208 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13209   LIBS=$ac_get_soname_save_LIBS
13210 fi
13211 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_cups" >&5
13212 echo "${ECHO_T}$ac_cv_lib_soname_cups" >&6
13213 if test "x$ac_cv_lib_soname_cups" != xNONE
13214 then
13215 cat >>confdefs.h <<_ACEOF
13216 #define SONAME_LIBCUPS "$ac_cv_lib_soname_cups"
13217 _ACEOF
13218 fi
13219
13220 echo "$as_me:$LINENO: checking for -ljack soname" >&5
13221 echo $ECHO_N "checking for -ljack soname... $ECHO_C" >&6
13222 if test "${ac_cv_lib_soname_jack+set}" = set; then
13223   echo $ECHO_N "(cached) $ECHO_C" >&6
13224 else
13225   ac_get_soname_save_LIBS=$LIBS
13226 LIBS="-ljack  $LIBS"
13227   cat >conftest.$ac_ext <<_ACEOF
13228 #line $LINENO "configure"
13229 /* confdefs.h.  */
13230 _ACEOF
13231 cat confdefs.h >>conftest.$ac_ext
13232 cat >>conftest.$ac_ext <<_ACEOF
13233 /* end confdefs.h.  */
13234
13235 /* Override any gcc2 internal prototype to avoid an error.  */
13236 #ifdef __cplusplus
13237 extern "C"
13238 #endif
13239 /* We use char because int might match the return type of a gcc2
13240    builtin and then its argument prototype would still apply.  */
13241 char jack_client_new ();
13242 int
13243 main ()
13244 {
13245 jack_client_new ();
13246   ;
13247   return 0;
13248 }
13249 _ACEOF
13250 rm -f conftest.$ac_objext conftest$ac_exeext
13251 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13252   (eval $ac_link) 2>&5
13253   ac_status=$?
13254   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13255   (exit $ac_status); } &&
13256          { ac_try='test -s conftest$ac_exeext'
13257   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13258   (eval $ac_try) 2>&5
13259   ac_status=$?
13260   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13261   (exit $ac_status); }; }; then
13262   ac_cv_lib_soname_jack=`$ac_cv_path_LDD conftest$ac_exeext | grep libjack\\.so | sed 's/^.*\(libjack\.so[^      ]*\).*$/\1/'`
13263   if test "x$ac_cv_lib_soname_jack" = "x"
13264   then
13265      ac_cv_lib_soname_jack="libjack.so"
13266   fi
13267 else
13268   echo "$as_me: failed program was:" >&5
13269 sed 's/^/| /' conftest.$ac_ext >&5
13270
13271 ac_cv_lib_soname_jack="libjack.so"
13272 fi
13273 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13274   LIBS=$ac_get_soname_save_LIBS
13275 fi
13276 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_jack" >&5
13277 echo "${ECHO_T}$ac_cv_lib_soname_jack" >&6
13278 if test "x$ac_cv_lib_soname_jack" != xNONE
13279 then
13280 cat >>confdefs.h <<_ACEOF
13281 #define SONAME_LIBJACK "$ac_cv_lib_soname_jack"
13282 _ACEOF
13283 fi
13284
13285 echo "$as_me:$LINENO: checking for -lfontconfig soname" >&5
13286 echo $ECHO_N "checking for -lfontconfig soname... $ECHO_C" >&6
13287 if test "${ac_cv_lib_soname_fontconfig+set}" = set; then
13288   echo $ECHO_N "(cached) $ECHO_C" >&6
13289 else
13290   ac_get_soname_save_LIBS=$LIBS
13291 LIBS="-lfontconfig  $LIBS"
13292   cat >conftest.$ac_ext <<_ACEOF
13293 #line $LINENO "configure"
13294 /* confdefs.h.  */
13295 _ACEOF
13296 cat confdefs.h >>conftest.$ac_ext
13297 cat >>conftest.$ac_ext <<_ACEOF
13298 /* end confdefs.h.  */
13299
13300 /* Override any gcc2 internal prototype to avoid an error.  */
13301 #ifdef __cplusplus
13302 extern "C"
13303 #endif
13304 /* We use char because int might match the return type of a gcc2
13305    builtin and then its argument prototype would still apply.  */
13306 char FcInit ();
13307 int
13308 main ()
13309 {
13310 FcInit ();
13311   ;
13312   return 0;
13313 }
13314 _ACEOF
13315 rm -f conftest.$ac_objext conftest$ac_exeext
13316 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13317   (eval $ac_link) 2>&5
13318   ac_status=$?
13319   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13320   (exit $ac_status); } &&
13321          { ac_try='test -s conftest$ac_exeext'
13322   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13323   (eval $ac_try) 2>&5
13324   ac_status=$?
13325   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13326   (exit $ac_status); }; }; then
13327   ac_cv_lib_soname_fontconfig=`$ac_cv_path_LDD conftest$ac_exeext | grep libfontconfig\\.so | sed 's/^.*\(libfontconfig\.so[^    ]*\).*$/\1/'`
13328   if test "x$ac_cv_lib_soname_fontconfig" = "x"
13329   then
13330      ac_cv_lib_soname_fontconfig="libfontconfig.so"
13331   fi
13332 else
13333   echo "$as_me: failed program was:" >&5
13334 sed 's/^/| /' conftest.$ac_ext >&5
13335
13336 ac_cv_lib_soname_fontconfig="libfontconfig.so"
13337 fi
13338 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13339   LIBS=$ac_get_soname_save_LIBS
13340 fi
13341 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_fontconfig" >&5
13342 echo "${ECHO_T}$ac_cv_lib_soname_fontconfig" >&6
13343 if test "x$ac_cv_lib_soname_fontconfig" != xNONE
13344 then
13345 cat >>confdefs.h <<_ACEOF
13346 #define SONAME_LIBFONTCONFIG "$ac_cv_lib_soname_fontconfig"
13347 _ACEOF
13348 fi
13349
13350 echo "$as_me:$LINENO: checking for -lssl soname" >&5
13351 echo $ECHO_N "checking for -lssl soname... $ECHO_C" >&6
13352 if test "${ac_cv_lib_soname_ssl+set}" = set; then
13353   echo $ECHO_N "(cached) $ECHO_C" >&6
13354 else
13355   ac_get_soname_save_LIBS=$LIBS
13356 LIBS="-lssl  $LIBS"
13357   cat >conftest.$ac_ext <<_ACEOF
13358 #line $LINENO "configure"
13359 /* confdefs.h.  */
13360 _ACEOF
13361 cat confdefs.h >>conftest.$ac_ext
13362 cat >>conftest.$ac_ext <<_ACEOF
13363 /* end confdefs.h.  */
13364
13365 /* Override any gcc2 internal prototype to avoid an error.  */
13366 #ifdef __cplusplus
13367 extern "C"
13368 #endif
13369 /* We use char because int might match the return type of a gcc2
13370    builtin and then its argument prototype would still apply.  */
13371 char SSL_library_init ();
13372 int
13373 main ()
13374 {
13375 SSL_library_init ();
13376   ;
13377   return 0;
13378 }
13379 _ACEOF
13380 rm -f conftest.$ac_objext conftest$ac_exeext
13381 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13382   (eval $ac_link) 2>&5
13383   ac_status=$?
13384   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13385   (exit $ac_status); } &&
13386          { ac_try='test -s conftest$ac_exeext'
13387   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13388   (eval $ac_try) 2>&5
13389   ac_status=$?
13390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13391   (exit $ac_status); }; }; then
13392   ac_cv_lib_soname_ssl=`$ac_cv_path_LDD conftest$ac_exeext | grep libssl\\.so | sed 's/^.*\(libssl\.so[^         ]*\).*$/\1/'`
13393   if test "x$ac_cv_lib_soname_ssl" = "x"
13394   then
13395      ac_cv_lib_soname_ssl="libssl.so"
13396   fi
13397 else
13398   echo "$as_me: failed program was:" >&5
13399 sed 's/^/| /' conftest.$ac_ext >&5
13400
13401 ac_cv_lib_soname_ssl="libssl.so"
13402 fi
13403 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13404   LIBS=$ac_get_soname_save_LIBS
13405 fi
13406 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_ssl" >&5
13407 echo "${ECHO_T}$ac_cv_lib_soname_ssl" >&6
13408 if test "x$ac_cv_lib_soname_ssl" != xNONE
13409 then
13410 cat >>confdefs.h <<_ACEOF
13411 #define SONAME_LIBSSL "$ac_cv_lib_soname_ssl"
13412 _ACEOF
13413 fi
13414
13415 echo "$as_me:$LINENO: checking for -lcrypto soname" >&5
13416 echo $ECHO_N "checking for -lcrypto soname... $ECHO_C" >&6
13417 if test "${ac_cv_lib_soname_crypto+set}" = set; then
13418   echo $ECHO_N "(cached) $ECHO_C" >&6
13419 else
13420   ac_get_soname_save_LIBS=$LIBS
13421 LIBS="-lcrypto  $LIBS"
13422   cat >conftest.$ac_ext <<_ACEOF
13423 #line $LINENO "configure"
13424 /* confdefs.h.  */
13425 _ACEOF
13426 cat confdefs.h >>conftest.$ac_ext
13427 cat >>conftest.$ac_ext <<_ACEOF
13428 /* end confdefs.h.  */
13429
13430 /* Override any gcc2 internal prototype to avoid an error.  */
13431 #ifdef __cplusplus
13432 extern "C"
13433 #endif
13434 /* We use char because int might match the return type of a gcc2
13435    builtin and then its argument prototype would still apply.  */
13436 char BIO_new_socket ();
13437 int
13438 main ()
13439 {
13440 BIO_new_socket ();
13441   ;
13442   return 0;
13443 }
13444 _ACEOF
13445 rm -f conftest.$ac_objext conftest$ac_exeext
13446 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13447   (eval $ac_link) 2>&5
13448   ac_status=$?
13449   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13450   (exit $ac_status); } &&
13451          { ac_try='test -s conftest$ac_exeext'
13452   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13453   (eval $ac_try) 2>&5
13454   ac_status=$?
13455   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13456   (exit $ac_status); }; }; then
13457   ac_cv_lib_soname_crypto=`$ac_cv_path_LDD conftest$ac_exeext | grep libcrypto\\.so | sed 's/^.*\(libcrypto\.so[^        ]*\).*$/\1/'`
13458   if test "x$ac_cv_lib_soname_crypto" = "x"
13459   then
13460      ac_cv_lib_soname_crypto="libcrypto.so"
13461   fi
13462 else
13463   echo "$as_me: failed program was:" >&5
13464 sed 's/^/| /' conftest.$ac_ext >&5
13465
13466 ac_cv_lib_soname_crypto="libcrypto.so"
13467 fi
13468 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13469   LIBS=$ac_get_soname_save_LIBS
13470 fi
13471 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_crypto" >&5
13472 echo "${ECHO_T}$ac_cv_lib_soname_crypto" >&6
13473 if test "x$ac_cv_lib_soname_crypto" != xNONE
13474 then
13475 cat >>confdefs.h <<_ACEOF
13476 #define SONAME_LIBCRYPTO "$ac_cv_lib_soname_crypto"
13477 _ACEOF
13478 fi
13479
13480 echo "$as_me:$LINENO: checking for -lncurses soname" >&5
13481 echo $ECHO_N "checking for -lncurses soname... $ECHO_C" >&6
13482 if test "${ac_cv_lib_soname_ncurses+set}" = set; then
13483   echo $ECHO_N "(cached) $ECHO_C" >&6
13484 else
13485   ac_get_soname_save_LIBS=$LIBS
13486 LIBS="-lncurses  $LIBS"
13487   cat >conftest.$ac_ext <<_ACEOF
13488 #line $LINENO "configure"
13489 /* confdefs.h.  */
13490 _ACEOF
13491 cat confdefs.h >>conftest.$ac_ext
13492 cat >>conftest.$ac_ext <<_ACEOF
13493 /* end confdefs.h.  */
13494
13495 /* Override any gcc2 internal prototype to avoid an error.  */
13496 #ifdef __cplusplus
13497 extern "C"
13498 #endif
13499 /* We use char because int might match the return type of a gcc2
13500    builtin and then its argument prototype would still apply.  */
13501 char waddch ();
13502 int
13503 main ()
13504 {
13505 waddch ();
13506   ;
13507   return 0;
13508 }
13509 _ACEOF
13510 rm -f conftest.$ac_objext conftest$ac_exeext
13511 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13512   (eval $ac_link) 2>&5
13513   ac_status=$?
13514   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13515   (exit $ac_status); } &&
13516          { ac_try='test -s conftest$ac_exeext'
13517   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13518   (eval $ac_try) 2>&5
13519   ac_status=$?
13520   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13521   (exit $ac_status); }; }; then
13522   ac_cv_lib_soname_ncurses=`$ac_cv_path_LDD conftest$ac_exeext | grep libncurses\\.so | sed 's/^.*\(libncurses\.so[^     ]*\).*$/\1/'`
13523   if test "x$ac_cv_lib_soname_ncurses" = "x"
13524   then
13525      ac_cv_lib_soname_ncurses="libncurses.so"
13526   fi
13527 else
13528   echo "$as_me: failed program was:" >&5
13529 sed 's/^/| /' conftest.$ac_ext >&5
13530
13531 ac_cv_lib_soname_ncurses="libncurses.so"
13532 fi
13533 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13534   LIBS=$ac_get_soname_save_LIBS
13535 fi
13536 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_ncurses" >&5
13537 echo "${ECHO_T}$ac_cv_lib_soname_ncurses" >&6
13538 if test "x$ac_cv_lib_soname_ncurses" != xNONE
13539 then
13540 cat >>confdefs.h <<_ACEOF
13541 #define SONAME_LIBNCURSES "$ac_cv_lib_soname_ncurses"
13542 _ACEOF
13543 fi
13544
13545 echo "$as_me:$LINENO: checking for -lcurses soname" >&5
13546 echo $ECHO_N "checking for -lcurses soname... $ECHO_C" >&6
13547 if test "${ac_cv_lib_soname_curses+set}" = set; then
13548   echo $ECHO_N "(cached) $ECHO_C" >&6
13549 else
13550   ac_get_soname_save_LIBS=$LIBS
13551 LIBS="-lcurses  $LIBS"
13552   cat >conftest.$ac_ext <<_ACEOF
13553 #line $LINENO "configure"
13554 /* confdefs.h.  */
13555 _ACEOF
13556 cat confdefs.h >>conftest.$ac_ext
13557 cat >>conftest.$ac_ext <<_ACEOF
13558 /* end confdefs.h.  */
13559
13560 /* Override any gcc2 internal prototype to avoid an error.  */
13561 #ifdef __cplusplus
13562 extern "C"
13563 #endif
13564 /* We use char because int might match the return type of a gcc2
13565    builtin and then its argument prototype would still apply.  */
13566 char waddch ();
13567 int
13568 main ()
13569 {
13570 waddch ();
13571   ;
13572   return 0;
13573 }
13574 _ACEOF
13575 rm -f conftest.$ac_objext conftest$ac_exeext
13576 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13577   (eval $ac_link) 2>&5
13578   ac_status=$?
13579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13580   (exit $ac_status); } &&
13581          { ac_try='test -s conftest$ac_exeext'
13582   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13583   (eval $ac_try) 2>&5
13584   ac_status=$?
13585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13586   (exit $ac_status); }; }; then
13587   ac_cv_lib_soname_curses=`$ac_cv_path_LDD conftest$ac_exeext | grep libcurses\\.so | sed 's/^.*\(libcurses\.so[^        ]*\).*$/\1/'`
13588   if test "x$ac_cv_lib_soname_curses" = "x"
13589   then
13590      ac_cv_lib_soname_curses="libcurses.so"
13591   fi
13592 else
13593   echo "$as_me: failed program was:" >&5
13594 sed 's/^/| /' conftest.$ac_ext >&5
13595
13596 ac_cv_lib_soname_curses="libcurses.so"
13597 fi
13598 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13599   LIBS=$ac_get_soname_save_LIBS
13600 fi
13601 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_curses" >&5
13602 echo "${ECHO_T}$ac_cv_lib_soname_curses" >&6
13603 if test "x$ac_cv_lib_soname_curses" != xNONE
13604 then
13605 cat >>confdefs.h <<_ACEOF
13606 #define SONAME_LIBCURSES "$ac_cv_lib_soname_curses"
13607 _ACEOF
13608 fi
13609 fi
13610
13611
13612
13613 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
13614 # for constant arguments.  Useless!
13615 echo "$as_me:$LINENO: checking for working alloca.h" >&5
13616 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
13617 if test "${ac_cv_working_alloca_h+set}" = set; then
13618   echo $ECHO_N "(cached) $ECHO_C" >&6
13619 else
13620   cat >conftest.$ac_ext <<_ACEOF
13621 #line $LINENO "configure"
13622 /* confdefs.h.  */
13623 _ACEOF
13624 cat confdefs.h >>conftest.$ac_ext
13625 cat >>conftest.$ac_ext <<_ACEOF
13626 /* end confdefs.h.  */
13627 #include <alloca.h>
13628 int
13629 main ()
13630 {
13631 char *p = (char *) alloca (2 * sizeof (int));
13632   ;
13633   return 0;
13634 }
13635 _ACEOF
13636 rm -f conftest.$ac_objext conftest$ac_exeext
13637 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13638   (eval $ac_link) 2>&5
13639   ac_status=$?
13640   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13641   (exit $ac_status); } &&
13642          { ac_try='test -s conftest$ac_exeext'
13643   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13644   (eval $ac_try) 2>&5
13645   ac_status=$?
13646   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13647   (exit $ac_status); }; }; then
13648   ac_cv_working_alloca_h=yes
13649 else
13650   echo "$as_me: failed program was:" >&5
13651 sed 's/^/| /' conftest.$ac_ext >&5
13652
13653 ac_cv_working_alloca_h=no
13654 fi
13655 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13656 fi
13657 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
13658 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
13659 if test $ac_cv_working_alloca_h = yes; then
13660
13661 cat >>confdefs.h <<\_ACEOF
13662 #define HAVE_ALLOCA_H 1
13663 _ACEOF
13664
13665 fi
13666
13667 echo "$as_me:$LINENO: checking for alloca" >&5
13668 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
13669 if test "${ac_cv_func_alloca_works+set}" = set; then
13670   echo $ECHO_N "(cached) $ECHO_C" >&6
13671 else
13672   cat >conftest.$ac_ext <<_ACEOF
13673 #line $LINENO "configure"
13674 /* confdefs.h.  */
13675 _ACEOF
13676 cat confdefs.h >>conftest.$ac_ext
13677 cat >>conftest.$ac_ext <<_ACEOF
13678 /* end confdefs.h.  */
13679 #ifdef __GNUC__
13680 # define alloca __builtin_alloca
13681 #else
13682 # ifdef _MSC_VER
13683 #  include <malloc.h>
13684 #  define alloca _alloca
13685 # else
13686 #  if HAVE_ALLOCA_H
13687 #   include <alloca.h>
13688 #  else
13689 #   ifdef _AIX
13690  #pragma alloca
13691 #   else
13692 #    ifndef alloca /* predefined by HP cc +Olibcalls */
13693 char *alloca ();
13694 #    endif
13695 #   endif
13696 #  endif
13697 # endif
13698 #endif
13699
13700 int
13701 main ()
13702 {
13703 char *p = (char *) alloca (1);
13704   ;
13705   return 0;
13706 }
13707 _ACEOF
13708 rm -f conftest.$ac_objext conftest$ac_exeext
13709 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13710   (eval $ac_link) 2>&5
13711   ac_status=$?
13712   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13713   (exit $ac_status); } &&
13714          { ac_try='test -s conftest$ac_exeext'
13715   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13716   (eval $ac_try) 2>&5
13717   ac_status=$?
13718   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13719   (exit $ac_status); }; }; then
13720   ac_cv_func_alloca_works=yes
13721 else
13722   echo "$as_me: failed program was:" >&5
13723 sed 's/^/| /' conftest.$ac_ext >&5
13724
13725 ac_cv_func_alloca_works=no
13726 fi
13727 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13728 fi
13729 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
13730 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
13731
13732 if test $ac_cv_func_alloca_works = yes; then
13733
13734 cat >>confdefs.h <<\_ACEOF
13735 #define HAVE_ALLOCA 1
13736 _ACEOF
13737
13738 else
13739   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
13740 # that cause trouble.  Some versions do not even contain alloca or
13741 # contain a buggy version.  If you still want to use their alloca,
13742 # use ar to extract alloca.o from them instead of compiling alloca.c.
13743
13744 ALLOCA=alloca.$ac_objext
13745
13746 cat >>confdefs.h <<\_ACEOF
13747 #define C_ALLOCA 1
13748 _ACEOF
13749
13750
13751 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
13752 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
13753 if test "${ac_cv_os_cray+set}" = set; then
13754   echo $ECHO_N "(cached) $ECHO_C" >&6
13755 else
13756   cat >conftest.$ac_ext <<_ACEOF
13757 #line $LINENO "configure"
13758 /* confdefs.h.  */
13759 _ACEOF
13760 cat confdefs.h >>conftest.$ac_ext
13761 cat >>conftest.$ac_ext <<_ACEOF
13762 /* end confdefs.h.  */
13763 #if defined(CRAY) && ! defined(CRAY2)
13764 webecray
13765 #else
13766 wenotbecray
13767 #endif
13768
13769 _ACEOF
13770 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13771   $EGREP "webecray" >/dev/null 2>&1; then
13772   ac_cv_os_cray=yes
13773 else
13774   ac_cv_os_cray=no
13775 fi
13776 rm -f conftest*
13777
13778 fi
13779 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
13780 echo "${ECHO_T}$ac_cv_os_cray" >&6
13781 if test $ac_cv_os_cray = yes; then
13782   for ac_func in _getb67 GETB67 getb67; do
13783     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13784 echo "$as_me:$LINENO: checking for $ac_func" >&5
13785 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13786 if eval "test \"\${$as_ac_var+set}\" = set"; then
13787   echo $ECHO_N "(cached) $ECHO_C" >&6
13788 else
13789   cat >conftest.$ac_ext <<_ACEOF
13790 #line $LINENO "configure"
13791 /* confdefs.h.  */
13792 _ACEOF
13793 cat confdefs.h >>conftest.$ac_ext
13794 cat >>conftest.$ac_ext <<_ACEOF
13795 /* end confdefs.h.  */
13796 /* System header to define __stub macros and hopefully few prototypes,
13797     which can conflict with char $ac_func (); below.
13798     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13799     <limits.h> exists even on freestanding compilers.  */
13800 #ifdef __STDC__
13801 # include <limits.h>
13802 #else
13803 # include <assert.h>
13804 #endif
13805 /* Override any gcc2 internal prototype to avoid an error.  */
13806 #ifdef __cplusplus
13807 extern "C"
13808 {
13809 #endif
13810 /* We use char because int might match the return type of a gcc2
13811    builtin and then its argument prototype would still apply.  */
13812 char $ac_func ();
13813 /* The GNU C library defines this for functions which it implements
13814     to always fail with ENOSYS.  Some functions are actually named
13815     something starting with __ and the normal name is an alias.  */
13816 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13817 choke me
13818 #else
13819 char (*f) () = $ac_func;
13820 #endif
13821 #ifdef __cplusplus
13822 }
13823 #endif
13824
13825 int
13826 main ()
13827 {
13828 return f != $ac_func;
13829   ;
13830   return 0;
13831 }
13832 _ACEOF
13833 rm -f conftest.$ac_objext conftest$ac_exeext
13834 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13835   (eval $ac_link) 2>&5
13836   ac_status=$?
13837   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13838   (exit $ac_status); } &&
13839          { ac_try='test -s conftest$ac_exeext'
13840   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13841   (eval $ac_try) 2>&5
13842   ac_status=$?
13843   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13844   (exit $ac_status); }; }; then
13845   eval "$as_ac_var=yes"
13846 else
13847   echo "$as_me: failed program was:" >&5
13848 sed 's/^/| /' conftest.$ac_ext >&5
13849
13850 eval "$as_ac_var=no"
13851 fi
13852 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13853 fi
13854 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13855 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13856 if test `eval echo '${'$as_ac_var'}'` = yes; then
13857
13858 cat >>confdefs.h <<_ACEOF
13859 #define CRAY_STACKSEG_END $ac_func
13860 _ACEOF
13861
13862     break
13863 fi
13864
13865   done
13866 fi
13867
13868 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
13869 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
13870 if test "${ac_cv_c_stack_direction+set}" = set; then
13871   echo $ECHO_N "(cached) $ECHO_C" >&6
13872 else
13873   if test "$cross_compiling" = yes; then
13874   ac_cv_c_stack_direction=0
13875 else
13876   cat >conftest.$ac_ext <<_ACEOF
13877 #line $LINENO "configure"
13878 /* confdefs.h.  */
13879 _ACEOF
13880 cat confdefs.h >>conftest.$ac_ext
13881 cat >>conftest.$ac_ext <<_ACEOF
13882 /* end confdefs.h.  */
13883 int
13884 find_stack_direction ()
13885 {
13886   static char *addr = 0;
13887   auto char dummy;
13888   if (addr == 0)
13889     {
13890       addr = &dummy;
13891       return find_stack_direction ();
13892     }
13893   else
13894     return (&dummy > addr) ? 1 : -1;
13895 }
13896
13897 int
13898 main ()
13899 {
13900   exit (find_stack_direction () < 0);
13901 }
13902 _ACEOF
13903 rm -f conftest$ac_exeext
13904 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13905   (eval $ac_link) 2>&5
13906   ac_status=$?
13907   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13908   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13909   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13910   (eval $ac_try) 2>&5
13911   ac_status=$?
13912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13913   (exit $ac_status); }; }; then
13914   ac_cv_c_stack_direction=1
13915 else
13916   echo "$as_me: program exited with status $ac_status" >&5
13917 echo "$as_me: failed program was:" >&5
13918 sed 's/^/| /' conftest.$ac_ext >&5
13919
13920 ( exit $ac_status )
13921 ac_cv_c_stack_direction=-1
13922 fi
13923 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13924 fi
13925 fi
13926 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
13927 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
13928
13929 cat >>confdefs.h <<_ACEOF
13930 #define STACK_DIRECTION $ac_cv_c_stack_direction
13931 _ACEOF
13932
13933
13934 fi
13935
13936
13937
13938
13939
13940
13941
13942
13943
13944
13945
13946
13947
13948
13949
13950
13951
13952
13953
13954
13955
13956
13957
13958
13959
13960
13961
13962
13963
13964
13965
13966
13967
13968
13969
13970
13971
13972
13973
13974
13975
13976
13977
13978
13979
13980
13981
13982
13983
13984
13985
13986
13987
13988 for ac_func in \
13989         _lwp_create \
13990         _lwp_self \
13991         _pclose \
13992         _popen \
13993         _snprintf \
13994         _spawnvp \
13995         _stricmp \
13996         _strnicmp \
13997         _vsnprintf \
13998         chsize \
13999         clone \
14000         finite \
14001         fpclass \
14002         ftruncate \
14003         ftruncate64 \
14004         getnetbyaddr \
14005         getnetbyname \
14006         getopt_long \
14007         getpagesize \
14008         getprotobyname \
14009         getprotobynumber \
14010         getpwuid \
14011         getservbyport \
14012         gettid \
14013         gettimeofday \
14014         inet_network \
14015         lseek64 \
14016         lstat \
14017         memmove \
14018         mmap \
14019         pclose \
14020         popen \
14021         pread \
14022         pwrite \
14023         rfork \
14024         select \
14025         sendmsg \
14026         settimeofday \
14027         sigaltstack \
14028         snprintf \
14029         spawnvp \
14030         statfs \
14031         strcasecmp \
14032         strerror \
14033         strncasecmp \
14034         tcgetattr \
14035         timegm \
14036         usleep \
14037         vfscanf \
14038         vsnprintf \
14039         wait4 \
14040         waitpid \
14041
14042 do
14043 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14044 echo "$as_me:$LINENO: checking for $ac_func" >&5
14045 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14046 if eval "test \"\${$as_ac_var+set}\" = set"; then
14047   echo $ECHO_N "(cached) $ECHO_C" >&6
14048 else
14049   cat >conftest.$ac_ext <<_ACEOF
14050 #line $LINENO "configure"
14051 /* confdefs.h.  */
14052 _ACEOF
14053 cat confdefs.h >>conftest.$ac_ext
14054 cat >>conftest.$ac_ext <<_ACEOF
14055 /* end confdefs.h.  */
14056 /* System header to define __stub macros and hopefully few prototypes,
14057     which can conflict with char $ac_func (); below.
14058     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14059     <limits.h> exists even on freestanding compilers.  */
14060 #ifdef __STDC__
14061 # include <limits.h>
14062 #else
14063 # include <assert.h>
14064 #endif
14065 /* Override any gcc2 internal prototype to avoid an error.  */
14066 #ifdef __cplusplus
14067 extern "C"
14068 {
14069 #endif
14070 /* We use char because int might match the return type of a gcc2
14071    builtin and then its argument prototype would still apply.  */
14072 char $ac_func ();
14073 /* The GNU C library defines this for functions which it implements
14074     to always fail with ENOSYS.  Some functions are actually named
14075     something starting with __ and the normal name is an alias.  */
14076 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14077 choke me
14078 #else
14079 char (*f) () = $ac_func;
14080 #endif
14081 #ifdef __cplusplus
14082 }
14083 #endif
14084
14085 int
14086 main ()
14087 {
14088 return f != $ac_func;
14089   ;
14090   return 0;
14091 }
14092 _ACEOF
14093 rm -f conftest.$ac_objext conftest$ac_exeext
14094 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14095   (eval $ac_link) 2>&5
14096   ac_status=$?
14097   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14098   (exit $ac_status); } &&
14099          { ac_try='test -s conftest$ac_exeext'
14100   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14101   (eval $ac_try) 2>&5
14102   ac_status=$?
14103   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14104   (exit $ac_status); }; }; then
14105   eval "$as_ac_var=yes"
14106 else
14107   echo "$as_me: failed program was:" >&5
14108 sed 's/^/| /' conftest.$ac_ext >&5
14109
14110 eval "$as_ac_var=no"
14111 fi
14112 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14113 fi
14114 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14115 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14116 if test `eval echo '${'$as_ac_var'}'` = yes; then
14117   cat >>confdefs.h <<_ACEOF
14118 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14119 _ACEOF
14120
14121 fi
14122 done
14123
14124
14125
14126
14127
14128
14129
14130
14131
14132
14133
14134
14135
14136
14137
14138
14139
14140
14141
14142
14143
14144
14145
14146
14147
14148
14149
14150
14151
14152
14153
14154
14155
14156
14157
14158
14159
14160
14161
14162
14163
14164
14165
14166
14167
14168
14169
14170
14171
14172
14173
14174
14175
14176
14177
14178
14179
14180
14181
14182
14183
14184
14185
14186
14187
14188
14189
14190
14191
14192
14193
14194
14195
14196
14197
14198
14199
14200
14201
14202
14203
14204
14205
14206 for ac_header in \
14207         arpa/inet.h \
14208         arpa/nameser.h \
14209         cups/cups.h \
14210         direct.h \
14211         elf.h \
14212         float.h \
14213         fontconfig/fontconfig.h \
14214         getopt.h \
14215         ieeefp.h \
14216         io.h \
14217         jack/jack.h \
14218         libio.h \
14219         libutil.h \
14220         link.h \
14221         linux/cdrom.h \
14222         linux/hdreg.h \
14223         linux/input.h \
14224         linux/joystick.h \
14225         linux/major.h \
14226         linux/param.h \
14227         linux/serial.h \
14228         linux/ucdrom.h \
14229         machine/cpu.h \
14230         netdb.h \
14231         netinet/in.h \
14232         netinet/in_systm.h \
14233         netinet/tcp.h \
14234         netinet/tcp_fsm.h \
14235         openssl/ssl.h \
14236         process.h \
14237         pthread.h \
14238         pty.h \
14239         pwd.h \
14240         regex.h \
14241         sched.h \
14242         scsi/sg.h \
14243         scsi/scsi.h \
14244         scsi/scsi_ioctl.h \
14245         socket.h \
14246         stdint.h \
14247         strings.h \
14248         sys/cdio.h \
14249         sys/errno.h \
14250         sys/file.h \
14251         sys/filio.h \
14252         sys/inttypes.h \
14253         sys/ioctl.h \
14254         sys/ipc.h \
14255         sys/link.h \
14256         sys/lwp.h \
14257         sys/mman.h \
14258         sys/modem.h \
14259         sys/msg.h \
14260         sys/param.h \
14261         sys/poll.h \
14262         sys/ptrace.h \
14263         sys/reg.h \
14264         sys/scsiio.h \
14265         sys/shm.h \
14266         sys/signal.h \
14267         sys/socket.h \
14268         sys/sockio.h \
14269         sys/statfs.h \
14270         sys/strtio.h \
14271         sys/syscall.h \
14272         sys/sysctl.h \
14273         sys/time.h \
14274         sys/times.h \
14275         sys/uio.h \
14276         sys/un.h \
14277         sys/v86.h \
14278         sys/v86intr.h \
14279         sys/vfs.h \
14280         sys/vm86.h \
14281         sys/wait.h \
14282         syscall.h \
14283         termios.h \
14284         unistd.h \
14285         utime.h \
14286         valgrind/memcheck.h
14287
14288 do
14289 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14290 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14291   echo "$as_me:$LINENO: checking for $ac_header" >&5
14292 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14293 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14294   echo $ECHO_N "(cached) $ECHO_C" >&6
14295 fi
14296 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14297 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14298 else
14299   # Is the header compilable?
14300 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14301 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14302 cat >conftest.$ac_ext <<_ACEOF
14303 #line $LINENO "configure"
14304 /* confdefs.h.  */
14305 _ACEOF
14306 cat confdefs.h >>conftest.$ac_ext
14307 cat >>conftest.$ac_ext <<_ACEOF
14308 /* end confdefs.h.  */
14309 $ac_includes_default
14310 #include <$ac_header>
14311 _ACEOF
14312 rm -f conftest.$ac_objext
14313 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14314   (eval $ac_compile) 2>&5
14315   ac_status=$?
14316   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14317   (exit $ac_status); } &&
14318          { ac_try='test -s conftest.$ac_objext'
14319   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14320   (eval $ac_try) 2>&5
14321   ac_status=$?
14322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14323   (exit $ac_status); }; }; then
14324   ac_header_compiler=yes
14325 else
14326   echo "$as_me: failed program was:" >&5
14327 sed 's/^/| /' conftest.$ac_ext >&5
14328
14329 ac_header_compiler=no
14330 fi
14331 rm -f conftest.$ac_objext conftest.$ac_ext
14332 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14333 echo "${ECHO_T}$ac_header_compiler" >&6
14334
14335 # Is the header present?
14336 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14337 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14338 cat >conftest.$ac_ext <<_ACEOF
14339 #line $LINENO "configure"
14340 /* confdefs.h.  */
14341 _ACEOF
14342 cat confdefs.h >>conftest.$ac_ext
14343 cat >>conftest.$ac_ext <<_ACEOF
14344 /* end confdefs.h.  */
14345 #include <$ac_header>
14346 _ACEOF
14347 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14348   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14349   ac_status=$?
14350   grep -v '^ *+' conftest.er1 >conftest.err
14351   rm -f conftest.er1
14352   cat conftest.err >&5
14353   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14354   (exit $ac_status); } >/dev/null; then
14355   if test -s conftest.err; then
14356     ac_cpp_err=$ac_c_preproc_warn_flag
14357   else
14358     ac_cpp_err=
14359   fi
14360 else
14361   ac_cpp_err=yes
14362 fi
14363 if test -z "$ac_cpp_err"; then
14364   ac_header_preproc=yes
14365 else
14366   echo "$as_me: failed program was:" >&5
14367 sed 's/^/| /' conftest.$ac_ext >&5
14368
14369   ac_header_preproc=no
14370 fi
14371 rm -f conftest.err conftest.$ac_ext
14372 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14373 echo "${ECHO_T}$ac_header_preproc" >&6
14374
14375 # So?  What about this header?
14376 case $ac_header_compiler:$ac_header_preproc in
14377   yes:no )
14378     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14379 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14380     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14381 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14382     (
14383       cat <<\_ASBOX
14384 ## ------------------------------------ ##
14385 ## Report this to bug-autoconf@gnu.org. ##
14386 ## ------------------------------------ ##
14387 _ASBOX
14388     ) |
14389       sed "s/^/$as_me: WARNING:     /" >&2
14390     ;;
14391   no:yes )
14392     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14393 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14394     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14395 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14396     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14397 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14398     (
14399       cat <<\_ASBOX
14400 ## ------------------------------------ ##
14401 ## Report this to bug-autoconf@gnu.org. ##
14402 ## ------------------------------------ ##
14403 _ASBOX
14404     ) |
14405       sed "s/^/$as_me: WARNING:     /" >&2
14406     ;;
14407 esac
14408 echo "$as_me:$LINENO: checking for $ac_header" >&5
14409 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14410 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14411   echo $ECHO_N "(cached) $ECHO_C" >&6
14412 else
14413   eval "$as_ac_Header=$ac_header_preproc"
14414 fi
14415 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14416 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14417
14418 fi
14419 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14420   cat >>confdefs.h <<_ACEOF
14421 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14422 _ACEOF
14423
14424 fi
14425
14426 done
14427
14428 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
14429 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
14430 if test "${ac_cv_header_stat_broken+set}" = set; then
14431   echo $ECHO_N "(cached) $ECHO_C" >&6
14432 else
14433   cat >conftest.$ac_ext <<_ACEOF
14434 #line $LINENO "configure"
14435 /* confdefs.h.  */
14436 _ACEOF
14437 cat confdefs.h >>conftest.$ac_ext
14438 cat >>conftest.$ac_ext <<_ACEOF
14439 /* end confdefs.h.  */
14440 #include <sys/types.h>
14441 #include <sys/stat.h>
14442
14443 #if defined(S_ISBLK) && defined(S_IFDIR)
14444 # if S_ISBLK (S_IFDIR)
14445 You lose.
14446 # endif
14447 #endif
14448
14449 #if defined(S_ISBLK) && defined(S_IFCHR)
14450 # if S_ISBLK (S_IFCHR)
14451 You lose.
14452 # endif
14453 #endif
14454
14455 #if defined(S_ISLNK) && defined(S_IFREG)
14456 # if S_ISLNK (S_IFREG)
14457 You lose.
14458 # endif
14459 #endif
14460
14461 #if defined(S_ISSOCK) && defined(S_IFREG)
14462 # if S_ISSOCK (S_IFREG)
14463 You lose.
14464 # endif
14465 #endif
14466
14467 _ACEOF
14468 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14469   $EGREP "You lose" >/dev/null 2>&1; then
14470   ac_cv_header_stat_broken=yes
14471 else
14472   ac_cv_header_stat_broken=no
14473 fi
14474 rm -f conftest*
14475
14476 fi
14477 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
14478 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
14479 if test $ac_cv_header_stat_broken = yes; then
14480
14481 cat >>confdefs.h <<\_ACEOF
14482 #define STAT_MACROS_BROKEN 1
14483 _ACEOF
14484
14485 fi
14486
14487
14488
14489
14490
14491 for ac_header in sys/mount.h sys/user.h
14492 do
14493 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14494 echo "$as_me:$LINENO: checking for $ac_header" >&5
14495 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14496 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14497   echo $ECHO_N "(cached) $ECHO_C" >&6
14498 else
14499   cat >conftest.$ac_ext <<_ACEOF
14500 #line $LINENO "configure"
14501 /* confdefs.h.  */
14502 _ACEOF
14503 cat confdefs.h >>conftest.$ac_ext
14504 cat >>conftest.$ac_ext <<_ACEOF
14505 /* end confdefs.h.  */
14506 #include <sys/types.h>
14507      #if HAVE_SYS_PARAM_H
14508      # include <sys/param.h>
14509      #endif
14510
14511 #include <$ac_header>
14512 _ACEOF
14513 rm -f conftest.$ac_objext
14514 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14515   (eval $ac_compile) 2>&5
14516   ac_status=$?
14517   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14518   (exit $ac_status); } &&
14519          { ac_try='test -s conftest.$ac_objext'
14520   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14521   (eval $ac_try) 2>&5
14522   ac_status=$?
14523   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14524   (exit $ac_status); }; }; then
14525   eval "$as_ac_Header=yes"
14526 else
14527   echo "$as_me: failed program was:" >&5
14528 sed 's/^/| /' conftest.$ac_ext >&5
14529
14530 eval "$as_ac_Header=no"
14531 fi
14532 rm -f conftest.$ac_objext conftest.$ac_ext
14533 fi
14534 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14535 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14536 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14537   cat >>confdefs.h <<_ACEOF
14538 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14539 _ACEOF
14540
14541 fi
14542
14543 done
14544
14545
14546
14547
14548
14549
14550
14551 for ac_header in net/if.h net/if_arp.h net/if_dl.h net/if_types.h net/route.h
14552 do
14553 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14554 echo "$as_me:$LINENO: checking for $ac_header" >&5
14555 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14556 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14557   echo $ECHO_N "(cached) $ECHO_C" >&6
14558 else
14559   cat >conftest.$ac_ext <<_ACEOF
14560 #line $LINENO "configure"
14561 /* confdefs.h.  */
14562 _ACEOF
14563 cat confdefs.h >>conftest.$ac_ext
14564 cat >>conftest.$ac_ext <<_ACEOF
14565 /* end confdefs.h.  */
14566 #include <sys/types.h>
14567      #if HAVE_SYS_SOCKET_H
14568      # include <sys/socket.h>
14569      #endif
14570
14571 #include <$ac_header>
14572 _ACEOF
14573 rm -f conftest.$ac_objext
14574 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14575   (eval $ac_compile) 2>&5
14576   ac_status=$?
14577   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14578   (exit $ac_status); } &&
14579          { ac_try='test -s conftest.$ac_objext'
14580   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14581   (eval $ac_try) 2>&5
14582   ac_status=$?
14583   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14584   (exit $ac_status); }; }; then
14585   eval "$as_ac_Header=yes"
14586 else
14587   echo "$as_me: failed program was:" >&5
14588 sed 's/^/| /' conftest.$ac_ext >&5
14589
14590 eval "$as_ac_Header=no"
14591 fi
14592 rm -f conftest.$ac_objext conftest.$ac_ext
14593 fi
14594 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14595 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14596 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14597   cat >>confdefs.h <<_ACEOF
14598 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14599 _ACEOF
14600
14601 fi
14602
14603 done
14604
14605
14606
14607 for ac_header in resolv.h
14608 do
14609 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14610 echo "$as_me:$LINENO: checking for $ac_header" >&5
14611 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14612 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14613   echo $ECHO_N "(cached) $ECHO_C" >&6
14614 else
14615   cat >conftest.$ac_ext <<_ACEOF
14616 #line $LINENO "configure"
14617 /* confdefs.h.  */
14618 _ACEOF
14619 cat confdefs.h >>conftest.$ac_ext
14620 cat >>conftest.$ac_ext <<_ACEOF
14621 /* end confdefs.h.  */
14622 #include <sys/types.h>
14623      #if HAVE_SYS_SOCKET_H
14624      # include <sys/socket.h>
14625      #endif
14626      #if HAVE_NETINET_IN_H
14627      # include <netinet/in.h>
14628      #endif
14629      #if HAVE_ARPA_NAMESER_H
14630      # include <arpa/nameser.h>
14631      #endif
14632
14633 #include <$ac_header>
14634 _ACEOF
14635 rm -f conftest.$ac_objext
14636 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14637   (eval $ac_compile) 2>&5
14638   ac_status=$?
14639   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14640   (exit $ac_status); } &&
14641          { ac_try='test -s conftest.$ac_objext'
14642   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14643   (eval $ac_try) 2>&5
14644   ac_status=$?
14645   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14646   (exit $ac_status); }; }; then
14647   eval "$as_ac_Header=yes"
14648 else
14649   echo "$as_me: failed program was:" >&5
14650 sed 's/^/| /' conftest.$ac_ext >&5
14651
14652 eval "$as_ac_Header=no"
14653 fi
14654 rm -f conftest.$ac_objext conftest.$ac_ext
14655 fi
14656 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14657 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14658 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14659   cat >>confdefs.h <<_ACEOF
14660 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14661 _ACEOF
14662
14663 fi
14664
14665 done
14666
14667
14668
14669 for ac_header in netinet/ip.h
14670 do
14671 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14672 echo "$as_me:$LINENO: checking for $ac_header" >&5
14673 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14674 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14675   echo $ECHO_N "(cached) $ECHO_C" >&6
14676 else
14677   cat >conftest.$ac_ext <<_ACEOF
14678 #line $LINENO "configure"
14679 /* confdefs.h.  */
14680 _ACEOF
14681 cat confdefs.h >>conftest.$ac_ext
14682 cat >>conftest.$ac_ext <<_ACEOF
14683 /* end confdefs.h.  */
14684 #include <sys/types.h>
14685      #if HAVE_SYS_SOCKET_H
14686      # include <sys/socket.h>
14687      #endif
14688      #if HAVE_NETINET_IN_SYSTM_H
14689      # include <netinet/in_systm.h>
14690      #endif
14691
14692 #include <$ac_header>
14693 _ACEOF
14694 rm -f conftest.$ac_objext
14695 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14696   (eval $ac_compile) 2>&5
14697   ac_status=$?
14698   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14699   (exit $ac_status); } &&
14700          { ac_try='test -s conftest.$ac_objext'
14701   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14702   (eval $ac_try) 2>&5
14703   ac_status=$?
14704   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14705   (exit $ac_status); }; }; then
14706   eval "$as_ac_Header=yes"
14707 else
14708   echo "$as_me: failed program was:" >&5
14709 sed 's/^/| /' conftest.$ac_ext >&5
14710
14711 eval "$as_ac_Header=no"
14712 fi
14713 rm -f conftest.$ac_objext conftest.$ac_ext
14714 fi
14715 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14716 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14717 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14718   cat >>confdefs.h <<_ACEOF
14719 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14720 _ACEOF
14721
14722 fi
14723
14724 done
14725
14726
14727
14728 for ac_header in ucontext.h
14729 do
14730 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14731 echo "$as_me:$LINENO: checking for $ac_header" >&5
14732 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14733 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14734   echo $ECHO_N "(cached) $ECHO_C" >&6
14735 else
14736   cat >conftest.$ac_ext <<_ACEOF
14737 #line $LINENO "configure"
14738 /* confdefs.h.  */
14739 _ACEOF
14740 cat confdefs.h >>conftest.$ac_ext
14741 cat >>conftest.$ac_ext <<_ACEOF
14742 /* end confdefs.h.  */
14743 #include <signal.h>
14744
14745 #include <$ac_header>
14746 _ACEOF
14747 rm -f conftest.$ac_objext
14748 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14749   (eval $ac_compile) 2>&5
14750   ac_status=$?
14751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14752   (exit $ac_status); } &&
14753          { ac_try='test -s conftest.$ac_objext'
14754   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14755   (eval $ac_try) 2>&5
14756   ac_status=$?
14757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14758   (exit $ac_status); }; }; then
14759   eval "$as_ac_Header=yes"
14760 else
14761   echo "$as_me: failed program was:" >&5
14762 sed 's/^/| /' conftest.$ac_ext >&5
14763
14764 eval "$as_ac_Header=no"
14765 fi
14766 rm -f conftest.$ac_objext conftest.$ac_ext
14767 fi
14768 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14769 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14770 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14771   cat >>confdefs.h <<_ACEOF
14772 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14773 _ACEOF
14774
14775 fi
14776
14777 done
14778
14779
14780
14781 echo "$as_me:$LINENO: checking for GNU style IPX support" >&5
14782 echo $ECHO_N "checking for GNU style IPX support... $ECHO_C" >&6
14783 if test "${ac_cv_c_ipx_gnu+set}" = set; then
14784   echo $ECHO_N "(cached) $ECHO_C" >&6
14785 else
14786   cat >conftest.$ac_ext <<_ACEOF
14787 #line $LINENO "configure"
14788 /* confdefs.h.  */
14789 _ACEOF
14790 cat confdefs.h >>conftest.$ac_ext
14791 cat >>conftest.$ac_ext <<_ACEOF
14792 /* end confdefs.h.  */
14793 #include <sys/types.h>
14794     #ifdef HAVE_SYS_SOCKET_H
14795     # include <sys/socket.h>
14796     #endif
14797     #include <netipx/ipx.h>
14798 int
14799 main ()
14800 {
14801 ((struct sockaddr_ipx *)0)->sipx_family == AF_IPX
14802   ;
14803   return 0;
14804 }
14805 _ACEOF
14806 rm -f conftest.$ac_objext
14807 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14808   (eval $ac_compile) 2>&5
14809   ac_status=$?
14810   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14811   (exit $ac_status); } &&
14812          { ac_try='test -s conftest.$ac_objext'
14813   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14814   (eval $ac_try) 2>&5
14815   ac_status=$?
14816   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14817   (exit $ac_status); }; }; then
14818   ac_cv_c_ipx_gnu="yes"
14819 else
14820   echo "$as_me: failed program was:" >&5
14821 sed 's/^/| /' conftest.$ac_ext >&5
14822
14823 ac_cv_c_ipx_gnu="no"
14824 fi
14825 rm -f conftest.$ac_objext conftest.$ac_ext
14826
14827 fi
14828 echo "$as_me:$LINENO: result: $ac_cv_c_ipx_gnu" >&5
14829 echo "${ECHO_T}$ac_cv_c_ipx_gnu" >&6
14830 if test "$ac_cv_c_ipx_gnu" = "yes"
14831 then
14832
14833 cat >>confdefs.h <<\_ACEOF
14834 #define HAVE_IPX_GNU 1
14835 _ACEOF
14836
14837 fi
14838
14839 if test "$ac_cv_c_ipx_gnu" = "no"
14840 then
14841  echo "$as_me:$LINENO: checking for linux style IPX support" >&5
14842 echo $ECHO_N "checking for linux style IPX support... $ECHO_C" >&6
14843 if test "${ac_cv_c_ipx_linux+set}" = set; then
14844   echo $ECHO_N "(cached) $ECHO_C" >&6
14845 else
14846   cat >conftest.$ac_ext <<_ACEOF
14847 #line $LINENO "configure"
14848 /* confdefs.h.  */
14849 _ACEOF
14850 cat confdefs.h >>conftest.$ac_ext
14851 cat >>conftest.$ac_ext <<_ACEOF
14852 /* end confdefs.h.  */
14853 #include <sys/types.h>
14854      #ifdef HAVE_SYS_SOCKET_H
14855      # include <sys/socket.h>
14856      #endif
14857      #include <asm/types.h>
14858      #include <linux/ipx.h>
14859 int
14860 main ()
14861 {
14862 ((struct sockaddr_ipx *)0)->sipx_family == AF_IPX
14863   ;
14864   return 0;
14865 }
14866 _ACEOF
14867 rm -f conftest.$ac_objext
14868 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14869   (eval $ac_compile) 2>&5
14870   ac_status=$?
14871   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14872   (exit $ac_status); } &&
14873          { ac_try='test -s conftest.$ac_objext'
14874   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14875   (eval $ac_try) 2>&5
14876   ac_status=$?
14877   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14878   (exit $ac_status); }; }; then
14879   ac_cv_c_ipx_linux="yes"
14880 else
14881   echo "$as_me: failed program was:" >&5
14882 sed 's/^/| /' conftest.$ac_ext >&5
14883
14884 ac_cv_c_ipx_linux="no"
14885 fi
14886 rm -f conftest.$ac_objext conftest.$ac_ext
14887
14888 fi
14889 echo "$as_me:$LINENO: result: $ac_cv_c_ipx_linux" >&5
14890 echo "${ECHO_T}$ac_cv_c_ipx_linux" >&6
14891   if test "$ac_cv_c_ipx_linux" = "yes"
14892   then
14893
14894 cat >>confdefs.h <<\_ACEOF
14895 #define HAVE_IPX_LINUX 1
14896 _ACEOF
14897
14898   fi
14899 fi
14900
14901
14902 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
14903 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
14904 if test "${ac_cv_c_const+set}" = set; then
14905   echo $ECHO_N "(cached) $ECHO_C" >&6
14906 else
14907   cat >conftest.$ac_ext <<_ACEOF
14908 #line $LINENO "configure"
14909 /* confdefs.h.  */
14910 _ACEOF
14911 cat confdefs.h >>conftest.$ac_ext
14912 cat >>conftest.$ac_ext <<_ACEOF
14913 /* end confdefs.h.  */
14914
14915 int
14916 main ()
14917 {
14918 /* FIXME: Include the comments suggested by Paul. */
14919 #ifndef __cplusplus
14920   /* Ultrix mips cc rejects this.  */
14921   typedef int charset[2];
14922   const charset x;
14923   /* SunOS 4.1.1 cc rejects this.  */
14924   char const *const *ccp;
14925   char **p;
14926   /* NEC SVR4.0.2 mips cc rejects this.  */
14927   struct point {int x, y;};
14928   static struct point const zero = {0,0};
14929   /* AIX XL C 1.02.0.0 rejects this.
14930      It does not let you subtract one const X* pointer from another in
14931      an arm of an if-expression whose if-part is not a constant
14932      expression */
14933   const char *g = "string";
14934   ccp = &g + (g ? g-g : 0);
14935   /* HPUX 7.0 cc rejects these. */
14936   ++ccp;
14937   p = (char**) ccp;
14938   ccp = (char const *const *) p;
14939   { /* SCO 3.2v4 cc rejects this.  */
14940     char *t;
14941     char const *s = 0 ? (char *) 0 : (char const *) 0;
14942
14943     *t++ = 0;
14944   }
14945   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
14946     int x[] = {25, 17};
14947     const int *foo = &x[0];
14948     ++foo;
14949   }
14950   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
14951     typedef const int *iptr;
14952     iptr p = 0;
14953     ++p;
14954   }
14955   { /* AIX XL C 1.02.0.0 rejects this saying
14956        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
14957     struct s { int j; const int *ap[3]; };
14958     struct s *b; b->j = 5;
14959   }
14960   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
14961     const int foo = 10;
14962   }
14963 #endif
14964
14965   ;
14966   return 0;
14967 }
14968 _ACEOF
14969 rm -f conftest.$ac_objext
14970 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14971   (eval $ac_compile) 2>&5
14972   ac_status=$?
14973   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14974   (exit $ac_status); } &&
14975          { ac_try='test -s conftest.$ac_objext'
14976   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14977   (eval $ac_try) 2>&5
14978   ac_status=$?
14979   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14980   (exit $ac_status); }; }; then
14981   ac_cv_c_const=yes
14982 else
14983   echo "$as_me: failed program was:" >&5
14984 sed 's/^/| /' conftest.$ac_ext >&5
14985
14986 ac_cv_c_const=no
14987 fi
14988 rm -f conftest.$ac_objext conftest.$ac_ext
14989 fi
14990 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
14991 echo "${ECHO_T}$ac_cv_c_const" >&6
14992 if test $ac_cv_c_const = no; then
14993
14994 cat >>confdefs.h <<\_ACEOF
14995 #define const
14996 _ACEOF
14997
14998 fi
14999
15000 echo "$as_me:$LINENO: checking for inline" >&5
15001 echo $ECHO_N "checking for inline... $ECHO_C" >&6
15002 if test "${ac_cv_c_inline+set}" = set; then
15003   echo $ECHO_N "(cached) $ECHO_C" >&6
15004 else
15005   ac_cv_c_inline=no
15006 for ac_kw in inline __inline__ __inline; do
15007   cat >conftest.$ac_ext <<_ACEOF
15008 #line $LINENO "configure"
15009 /* confdefs.h.  */
15010 _ACEOF
15011 cat confdefs.h >>conftest.$ac_ext
15012 cat >>conftest.$ac_ext <<_ACEOF
15013 /* end confdefs.h.  */
15014 #ifndef __cplusplus
15015 typedef int foo_t;
15016 static $ac_kw foo_t static_foo () {return 0; }
15017 $ac_kw foo_t foo () {return 0; }
15018 #endif
15019
15020 _ACEOF
15021 rm -f conftest.$ac_objext
15022 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15023   (eval $ac_compile) 2>&5
15024   ac_status=$?
15025   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15026   (exit $ac_status); } &&
15027          { ac_try='test -s conftest.$ac_objext'
15028   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15029   (eval $ac_try) 2>&5
15030   ac_status=$?
15031   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15032   (exit $ac_status); }; }; then
15033   ac_cv_c_inline=$ac_kw; break
15034 else
15035   echo "$as_me: failed program was:" >&5
15036 sed 's/^/| /' conftest.$ac_ext >&5
15037
15038 fi
15039 rm -f conftest.$ac_objext conftest.$ac_ext
15040 done
15041
15042 fi
15043 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
15044 echo "${ECHO_T}$ac_cv_c_inline" >&6
15045 case $ac_cv_c_inline in
15046   inline | yes) ;;
15047   no)
15048 cat >>confdefs.h <<\_ACEOF
15049 #define inline
15050 _ACEOF
15051  ;;
15052   *)  cat >>confdefs.h <<_ACEOF
15053 #define inline $ac_cv_c_inline
15054 _ACEOF
15055  ;;
15056 esac
15057
15058 echo "$as_me:$LINENO: checking for mode_t" >&5
15059 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
15060 if test "${ac_cv_type_mode_t+set}" = set; then
15061   echo $ECHO_N "(cached) $ECHO_C" >&6
15062 else
15063   cat >conftest.$ac_ext <<_ACEOF
15064 #line $LINENO "configure"
15065 /* confdefs.h.  */
15066 _ACEOF
15067 cat confdefs.h >>conftest.$ac_ext
15068 cat >>conftest.$ac_ext <<_ACEOF
15069 /* end confdefs.h.  */
15070 $ac_includes_default
15071 int
15072 main ()
15073 {
15074 if ((mode_t *) 0)
15075   return 0;
15076 if (sizeof (mode_t))
15077   return 0;
15078   ;
15079   return 0;
15080 }
15081 _ACEOF
15082 rm -f conftest.$ac_objext
15083 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15084   (eval $ac_compile) 2>&5
15085   ac_status=$?
15086   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15087   (exit $ac_status); } &&
15088          { ac_try='test -s conftest.$ac_objext'
15089   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15090   (eval $ac_try) 2>&5
15091   ac_status=$?
15092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15093   (exit $ac_status); }; }; then
15094   ac_cv_type_mode_t=yes
15095 else
15096   echo "$as_me: failed program was:" >&5
15097 sed 's/^/| /' conftest.$ac_ext >&5
15098
15099 ac_cv_type_mode_t=no
15100 fi
15101 rm -f conftest.$ac_objext conftest.$ac_ext
15102 fi
15103 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
15104 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
15105 if test $ac_cv_type_mode_t = yes; then
15106
15107 cat >>confdefs.h <<_ACEOF
15108 #define HAVE_MODE_T 1
15109 _ACEOF
15110
15111
15112 fi
15113 echo "$as_me:$LINENO: checking for off_t" >&5
15114 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
15115 if test "${ac_cv_type_off_t+set}" = set; then
15116   echo $ECHO_N "(cached) $ECHO_C" >&6
15117 else
15118   cat >conftest.$ac_ext <<_ACEOF
15119 #line $LINENO "configure"
15120 /* confdefs.h.  */
15121 _ACEOF
15122 cat confdefs.h >>conftest.$ac_ext
15123 cat >>conftest.$ac_ext <<_ACEOF
15124 /* end confdefs.h.  */
15125 $ac_includes_default
15126 int
15127 main ()
15128 {
15129 if ((off_t *) 0)
15130   return 0;
15131 if (sizeof (off_t))
15132   return 0;
15133   ;
15134   return 0;
15135 }
15136 _ACEOF
15137 rm -f conftest.$ac_objext
15138 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15139   (eval $ac_compile) 2>&5
15140   ac_status=$?
15141   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15142   (exit $ac_status); } &&
15143          { ac_try='test -s conftest.$ac_objext'
15144   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15145   (eval $ac_try) 2>&5
15146   ac_status=$?
15147   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15148   (exit $ac_status); }; }; then
15149   ac_cv_type_off_t=yes
15150 else
15151   echo "$as_me: failed program was:" >&5
15152 sed 's/^/| /' conftest.$ac_ext >&5
15153
15154 ac_cv_type_off_t=no
15155 fi
15156 rm -f conftest.$ac_objext conftest.$ac_ext
15157 fi
15158 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
15159 echo "${ECHO_T}$ac_cv_type_off_t" >&6
15160 if test $ac_cv_type_off_t = yes; then
15161
15162 cat >>confdefs.h <<_ACEOF
15163 #define HAVE_OFF_T 1
15164 _ACEOF
15165
15166
15167 fi
15168 echo "$as_me:$LINENO: checking for pid_t" >&5
15169 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
15170 if test "${ac_cv_type_pid_t+set}" = set; then
15171   echo $ECHO_N "(cached) $ECHO_C" >&6
15172 else
15173   cat >conftest.$ac_ext <<_ACEOF
15174 #line $LINENO "configure"
15175 /* confdefs.h.  */
15176 _ACEOF
15177 cat confdefs.h >>conftest.$ac_ext
15178 cat >>conftest.$ac_ext <<_ACEOF
15179 /* end confdefs.h.  */
15180 $ac_includes_default
15181 int
15182 main ()
15183 {
15184 if ((pid_t *) 0)
15185   return 0;
15186 if (sizeof (pid_t))
15187   return 0;
15188   ;
15189   return 0;
15190 }
15191 _ACEOF
15192 rm -f conftest.$ac_objext
15193 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15194   (eval $ac_compile) 2>&5
15195   ac_status=$?
15196   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15197   (exit $ac_status); } &&
15198          { ac_try='test -s conftest.$ac_objext'
15199   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15200   (eval $ac_try) 2>&5
15201   ac_status=$?
15202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15203   (exit $ac_status); }; }; then
15204   ac_cv_type_pid_t=yes
15205 else
15206   echo "$as_me: failed program was:" >&5
15207 sed 's/^/| /' conftest.$ac_ext >&5
15208
15209 ac_cv_type_pid_t=no
15210 fi
15211 rm -f conftest.$ac_objext conftest.$ac_ext
15212 fi
15213 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
15214 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
15215 if test $ac_cv_type_pid_t = yes; then
15216
15217 cat >>confdefs.h <<_ACEOF
15218 #define HAVE_PID_T 1
15219 _ACEOF
15220
15221
15222 fi
15223 echo "$as_me:$LINENO: checking for size_t" >&5
15224 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
15225 if test "${ac_cv_type_size_t+set}" = set; then
15226   echo $ECHO_N "(cached) $ECHO_C" >&6
15227 else
15228   cat >conftest.$ac_ext <<_ACEOF
15229 #line $LINENO "configure"
15230 /* confdefs.h.  */
15231 _ACEOF
15232 cat confdefs.h >>conftest.$ac_ext
15233 cat >>conftest.$ac_ext <<_ACEOF
15234 /* end confdefs.h.  */
15235 $ac_includes_default
15236 int
15237 main ()
15238 {
15239 if ((size_t *) 0)
15240   return 0;
15241 if (sizeof (size_t))
15242   return 0;
15243   ;
15244   return 0;
15245 }
15246 _ACEOF
15247 rm -f conftest.$ac_objext
15248 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15249   (eval $ac_compile) 2>&5
15250   ac_status=$?
15251   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15252   (exit $ac_status); } &&
15253          { ac_try='test -s conftest.$ac_objext'
15254   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15255   (eval $ac_try) 2>&5
15256   ac_status=$?
15257   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15258   (exit $ac_status); }; }; then
15259   ac_cv_type_size_t=yes
15260 else
15261   echo "$as_me: failed program was:" >&5
15262 sed 's/^/| /' conftest.$ac_ext >&5
15263
15264 ac_cv_type_size_t=no
15265 fi
15266 rm -f conftest.$ac_objext conftest.$ac_ext
15267 fi
15268 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
15269 echo "${ECHO_T}$ac_cv_type_size_t" >&6
15270 if test $ac_cv_type_size_t = yes; then
15271
15272 cat >>confdefs.h <<_ACEOF
15273 #define HAVE_SIZE_T 1
15274 _ACEOF
15275
15276
15277 fi
15278 echo "$as_me:$LINENO: checking for ssize_t" >&5
15279 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
15280 if test "${ac_cv_type_ssize_t+set}" = set; then
15281   echo $ECHO_N "(cached) $ECHO_C" >&6
15282 else
15283   cat >conftest.$ac_ext <<_ACEOF
15284 #line $LINENO "configure"
15285 /* confdefs.h.  */
15286 _ACEOF
15287 cat confdefs.h >>conftest.$ac_ext
15288 cat >>conftest.$ac_ext <<_ACEOF
15289 /* end confdefs.h.  */
15290 $ac_includes_default
15291 int
15292 main ()
15293 {
15294 if ((ssize_t *) 0)
15295   return 0;
15296 if (sizeof (ssize_t))
15297   return 0;
15298   ;
15299   return 0;
15300 }
15301 _ACEOF
15302 rm -f conftest.$ac_objext
15303 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15304   (eval $ac_compile) 2>&5
15305   ac_status=$?
15306   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15307   (exit $ac_status); } &&
15308          { ac_try='test -s conftest.$ac_objext'
15309   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15310   (eval $ac_try) 2>&5
15311   ac_status=$?
15312   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15313   (exit $ac_status); }; }; then
15314   ac_cv_type_ssize_t=yes
15315 else
15316   echo "$as_me: failed program was:" >&5
15317 sed 's/^/| /' conftest.$ac_ext >&5
15318
15319 ac_cv_type_ssize_t=no
15320 fi
15321 rm -f conftest.$ac_objext conftest.$ac_ext
15322 fi
15323 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
15324 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
15325 if test $ac_cv_type_ssize_t = yes; then
15326
15327 cat >>confdefs.h <<_ACEOF
15328 #define HAVE_SSIZE_T 1
15329 _ACEOF
15330
15331
15332 fi
15333
15334 echo "$as_me:$LINENO: checking for long long" >&5
15335 echo $ECHO_N "checking for long long... $ECHO_C" >&6
15336 if test "${ac_cv_type_long_long+set}" = set; then
15337   echo $ECHO_N "(cached) $ECHO_C" >&6
15338 else
15339   cat >conftest.$ac_ext <<_ACEOF
15340 #line $LINENO "configure"
15341 /* confdefs.h.  */
15342 _ACEOF
15343 cat confdefs.h >>conftest.$ac_ext
15344 cat >>conftest.$ac_ext <<_ACEOF
15345 /* end confdefs.h.  */
15346 $ac_includes_default
15347 int
15348 main ()
15349 {
15350 if ((long long *) 0)
15351   return 0;
15352 if (sizeof (long long))
15353   return 0;
15354   ;
15355   return 0;
15356 }
15357 _ACEOF
15358 rm -f conftest.$ac_objext
15359 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15360   (eval $ac_compile) 2>&5
15361   ac_status=$?
15362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15363   (exit $ac_status); } &&
15364          { ac_try='test -s conftest.$ac_objext'
15365   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15366   (eval $ac_try) 2>&5
15367   ac_status=$?
15368   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15369   (exit $ac_status); }; }; then
15370   ac_cv_type_long_long=yes
15371 else
15372   echo "$as_me: failed program was:" >&5
15373 sed 's/^/| /' conftest.$ac_ext >&5
15374
15375 ac_cv_type_long_long=no
15376 fi
15377 rm -f conftest.$ac_objext conftest.$ac_ext
15378 fi
15379 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
15380 echo "${ECHO_T}$ac_cv_type_long_long" >&6
15381
15382 echo "$as_me:$LINENO: checking size of long long" >&5
15383 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
15384 if test "${ac_cv_sizeof_long_long+set}" = set; then
15385   echo $ECHO_N "(cached) $ECHO_C" >&6
15386 else
15387   if test "$ac_cv_type_long_long" = yes; then
15388   # The cast to unsigned long works around a bug in the HP C Compiler
15389   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15390   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15391   # This bug is HP SR number 8606223364.
15392   if test "$cross_compiling" = yes; then
15393   # Depending upon the size, compute the lo and hi bounds.
15394 cat >conftest.$ac_ext <<_ACEOF
15395 #line $LINENO "configure"
15396 /* confdefs.h.  */
15397 _ACEOF
15398 cat confdefs.h >>conftest.$ac_ext
15399 cat >>conftest.$ac_ext <<_ACEOF
15400 /* end confdefs.h.  */
15401 $ac_includes_default
15402 int
15403 main ()
15404 {
15405 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
15406 test_array [0] = 0
15407
15408   ;
15409   return 0;
15410 }
15411 _ACEOF
15412 rm -f conftest.$ac_objext
15413 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15414   (eval $ac_compile) 2>&5
15415   ac_status=$?
15416   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15417   (exit $ac_status); } &&
15418          { ac_try='test -s conftest.$ac_objext'
15419   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15420   (eval $ac_try) 2>&5
15421   ac_status=$?
15422   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15423   (exit $ac_status); }; }; then
15424   ac_lo=0 ac_mid=0
15425   while :; do
15426     cat >conftest.$ac_ext <<_ACEOF
15427 #line $LINENO "configure"
15428 /* confdefs.h.  */
15429 _ACEOF
15430 cat confdefs.h >>conftest.$ac_ext
15431 cat >>conftest.$ac_ext <<_ACEOF
15432 /* end confdefs.h.  */
15433 $ac_includes_default
15434 int
15435 main ()
15436 {
15437 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
15438 test_array [0] = 0
15439
15440   ;
15441   return 0;
15442 }
15443 _ACEOF
15444 rm -f conftest.$ac_objext
15445 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15446   (eval $ac_compile) 2>&5
15447   ac_status=$?
15448   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15449   (exit $ac_status); } &&
15450          { ac_try='test -s conftest.$ac_objext'
15451   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15452   (eval $ac_try) 2>&5
15453   ac_status=$?
15454   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15455   (exit $ac_status); }; }; then
15456   ac_hi=$ac_mid; break
15457 else
15458   echo "$as_me: failed program was:" >&5
15459 sed 's/^/| /' conftest.$ac_ext >&5
15460
15461 ac_lo=`expr $ac_mid + 1`
15462                     if test $ac_lo -le $ac_mid; then
15463                       ac_lo= ac_hi=
15464                       break
15465                     fi
15466                     ac_mid=`expr 2 '*' $ac_mid + 1`
15467 fi
15468 rm -f conftest.$ac_objext conftest.$ac_ext
15469   done
15470 else
15471   echo "$as_me: failed program was:" >&5
15472 sed 's/^/| /' conftest.$ac_ext >&5
15473
15474 cat >conftest.$ac_ext <<_ACEOF
15475 #line $LINENO "configure"
15476 /* confdefs.h.  */
15477 _ACEOF
15478 cat confdefs.h >>conftest.$ac_ext
15479 cat >>conftest.$ac_ext <<_ACEOF
15480 /* end confdefs.h.  */
15481 $ac_includes_default
15482 int
15483 main ()
15484 {
15485 static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
15486 test_array [0] = 0
15487
15488   ;
15489   return 0;
15490 }
15491 _ACEOF
15492 rm -f conftest.$ac_objext
15493 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15494   (eval $ac_compile) 2>&5
15495   ac_status=$?
15496   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15497   (exit $ac_status); } &&
15498          { ac_try='test -s conftest.$ac_objext'
15499   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15500   (eval $ac_try) 2>&5
15501   ac_status=$?
15502   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15503   (exit $ac_status); }; }; then
15504   ac_hi=-1 ac_mid=-1
15505   while :; do
15506     cat >conftest.$ac_ext <<_ACEOF
15507 #line $LINENO "configure"
15508 /* confdefs.h.  */
15509 _ACEOF
15510 cat confdefs.h >>conftest.$ac_ext
15511 cat >>conftest.$ac_ext <<_ACEOF
15512 /* end confdefs.h.  */
15513 $ac_includes_default
15514 int
15515 main ()
15516 {
15517 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
15518 test_array [0] = 0
15519
15520   ;
15521   return 0;
15522 }
15523 _ACEOF
15524 rm -f conftest.$ac_objext
15525 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15526   (eval $ac_compile) 2>&5
15527   ac_status=$?
15528   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15529   (exit $ac_status); } &&
15530          { ac_try='test -s conftest.$ac_objext'
15531   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15532   (eval $ac_try) 2>&5
15533   ac_status=$?
15534   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15535   (exit $ac_status); }; }; then
15536   ac_lo=$ac_mid; break
15537 else
15538   echo "$as_me: failed program was:" >&5
15539 sed 's/^/| /' conftest.$ac_ext >&5
15540
15541 ac_hi=`expr '(' $ac_mid ')' - 1`
15542                        if test $ac_mid -le $ac_hi; then
15543                          ac_lo= ac_hi=
15544                          break
15545                        fi
15546                        ac_mid=`expr 2 '*' $ac_mid`
15547 fi
15548 rm -f conftest.$ac_objext conftest.$ac_ext
15549   done
15550 else
15551   echo "$as_me: failed program was:" >&5
15552 sed 's/^/| /' conftest.$ac_ext >&5
15553
15554 ac_lo= ac_hi=
15555 fi
15556 rm -f conftest.$ac_objext conftest.$ac_ext
15557 fi
15558 rm -f conftest.$ac_objext conftest.$ac_ext
15559 # Binary search between lo and hi bounds.
15560 while test "x$ac_lo" != "x$ac_hi"; do
15561   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15562   cat >conftest.$ac_ext <<_ACEOF
15563 #line $LINENO "configure"
15564 /* confdefs.h.  */
15565 _ACEOF
15566 cat confdefs.h >>conftest.$ac_ext
15567 cat >>conftest.$ac_ext <<_ACEOF
15568 /* end confdefs.h.  */
15569 $ac_includes_default
15570 int
15571 main ()
15572 {
15573 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
15574 test_array [0] = 0
15575
15576   ;
15577   return 0;
15578 }
15579 _ACEOF
15580 rm -f conftest.$ac_objext
15581 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15582   (eval $ac_compile) 2>&5
15583   ac_status=$?
15584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15585   (exit $ac_status); } &&
15586          { ac_try='test -s conftest.$ac_objext'
15587   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15588   (eval $ac_try) 2>&5
15589   ac_status=$?
15590   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15591   (exit $ac_status); }; }; then
15592   ac_hi=$ac_mid
15593 else
15594   echo "$as_me: failed program was:" >&5
15595 sed 's/^/| /' conftest.$ac_ext >&5
15596
15597 ac_lo=`expr '(' $ac_mid ')' + 1`
15598 fi
15599 rm -f conftest.$ac_objext conftest.$ac_ext
15600 done
15601 case $ac_lo in
15602 ?*) ac_cv_sizeof_long_long=$ac_lo;;
15603 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
15604 See \`config.log' for more details." >&5
15605 echo "$as_me: error: cannot compute sizeof (long long), 77
15606 See \`config.log' for more details." >&2;}
15607    { (exit 1); exit 1; }; } ;;
15608 esac
15609 else
15610   if test "$cross_compiling" = yes; then
15611   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
15612 See \`config.log' for more details." >&5
15613 echo "$as_me: error: cannot run test program while cross compiling
15614 See \`config.log' for more details." >&2;}
15615    { (exit 1); exit 1; }; }
15616 else
15617   cat >conftest.$ac_ext <<_ACEOF
15618 #line $LINENO "configure"
15619 /* confdefs.h.  */
15620 _ACEOF
15621 cat confdefs.h >>conftest.$ac_ext
15622 cat >>conftest.$ac_ext <<_ACEOF
15623 /* end confdefs.h.  */
15624 $ac_includes_default
15625 long longval () { return (long) (sizeof (long long)); }
15626 unsigned long ulongval () { return (long) (sizeof (long long)); }
15627 #include <stdio.h>
15628 #include <stdlib.h>
15629 int
15630 main ()
15631 {
15632
15633   FILE *f = fopen ("conftest.val", "w");
15634   if (! f)
15635     exit (1);
15636   if (((long) (sizeof (long long))) < 0)
15637     {
15638       long i = longval ();
15639       if (i != ((long) (sizeof (long long))))
15640         exit (1);
15641       fprintf (f, "%ld\n", i);
15642     }
15643   else
15644     {
15645       unsigned long i = ulongval ();
15646       if (i != ((long) (sizeof (long long))))
15647         exit (1);
15648       fprintf (f, "%lu\n", i);
15649     }
15650   exit (ferror (f) || fclose (f) != 0);
15651
15652   ;
15653   return 0;
15654 }
15655 _ACEOF
15656 rm -f conftest$ac_exeext
15657 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15658   (eval $ac_link) 2>&5
15659   ac_status=$?
15660   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15661   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15662   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15663   (eval $ac_try) 2>&5
15664   ac_status=$?
15665   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15666   (exit $ac_status); }; }; then
15667   ac_cv_sizeof_long_long=`cat conftest.val`
15668 else
15669   echo "$as_me: program exited with status $ac_status" >&5
15670 echo "$as_me: failed program was:" >&5
15671 sed 's/^/| /' conftest.$ac_ext >&5
15672
15673 ( exit $ac_status )
15674 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
15675 See \`config.log' for more details." >&5
15676 echo "$as_me: error: cannot compute sizeof (long long), 77
15677 See \`config.log' for more details." >&2;}
15678    { (exit 1); exit 1; }; }
15679 fi
15680 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15681 fi
15682 fi
15683 rm -f conftest.val
15684 else
15685   ac_cv_sizeof_long_long=0
15686 fi
15687 fi
15688 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
15689 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
15690 cat >>confdefs.h <<_ACEOF
15691 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
15692 _ACEOF
15693
15694
15695
15696 echo "$as_me:$LINENO: checking whether linux/input.h is for real" >&5
15697 echo $ECHO_N "checking whether linux/input.h is for real... $ECHO_C" >&6
15698 if test "${wine_cv_linux_input_h+set}" = set; then
15699   echo $ECHO_N "(cached) $ECHO_C" >&6
15700 else
15701   cat >conftest.$ac_ext <<_ACEOF
15702 #line $LINENO "configure"
15703 /* confdefs.h.  */
15704 _ACEOF
15705 cat confdefs.h >>conftest.$ac_ext
15706 cat >>conftest.$ac_ext <<_ACEOF
15707 /* end confdefs.h.  */
15708
15709             #include <linux/input.h>
15710
15711 int
15712 main ()
15713 {
15714
15715             int foo = EVIOCGBIT(EV_ABS,42);
15716             int bar = BTN_PINKIE;
15717             int fortytwo = 42;
15718
15719   ;
15720   return 0;
15721 }
15722 _ACEOF
15723 rm -f conftest.$ac_objext
15724 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15725   (eval $ac_compile) 2>&5
15726   ac_status=$?
15727   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15728   (exit $ac_status); } &&
15729          { ac_try='test -s conftest.$ac_objext'
15730   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15731   (eval $ac_try) 2>&5
15732   ac_status=$?
15733   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15734   (exit $ac_status); }; }; then
15735   wine_cv_linux_input_h=yes
15736 else
15737   echo "$as_me: failed program was:" >&5
15738 sed 's/^/| /' conftest.$ac_ext >&5
15739
15740 wine_cv_linux_input_h=no
15741 fi
15742 rm -f conftest.$ac_objext conftest.$ac_ext
15743
15744 fi
15745 echo "$as_me:$LINENO: result: $wine_cv_linux_input_h" >&5
15746 echo "${ECHO_T}$wine_cv_linux_input_h" >&6
15747     if test "$wine_cv_linux_input_h" = "yes"
15748     then
15749
15750 cat >>confdefs.h <<\_ACEOF
15751 #define HAVE_CORRECT_LINUXINPUT_H 1
15752 _ACEOF
15753
15754     fi
15755
15756
15757 echo "$as_me:$LINENO: checking whether we can use re-entrant gethostbyname_r Linux style" >&5
15758 echo $ECHO_N "checking whether we can use re-entrant gethostbyname_r Linux style... $ECHO_C" >&6
15759 if test "${wine_cv_linux_gethostbyname_r_6+set}" = set; then
15760   echo $ECHO_N "(cached) $ECHO_C" >&6
15761 else
15762   cat >conftest.$ac_ext <<_ACEOF
15763 #line $LINENO "configure"
15764 /* confdefs.h.  */
15765 _ACEOF
15766 cat confdefs.h >>conftest.$ac_ext
15767 cat >>conftest.$ac_ext <<_ACEOF
15768 /* end confdefs.h.  */
15769
15770 #include <netdb.h>
15771
15772 int
15773 main ()
15774 {
15775
15776     char *name=NULL;
15777     struct hostent he;
15778     struct hostent *result;
15779     char *buf=NULL;
15780     int bufsize=0;
15781     int res,errnr;
15782     char *addr=NULL;
15783     int addrlen=0;
15784     int addrtype=0;
15785     res=gethostbyname_r(name,&he,buf,bufsize,&result,&errnr);
15786     res=gethostbyaddr_r(addr, addrlen, addrtype,&he,buf,bufsize,&result,&errnr);
15787
15788   ;
15789   return 0;
15790 }
15791 _ACEOF
15792 rm -f conftest.$ac_objext
15793 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15794   (eval $ac_compile) 2>&5
15795   ac_status=$?
15796   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15797   (exit $ac_status); } &&
15798          { ac_try='test -s conftest.$ac_objext'
15799   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15800   (eval $ac_try) 2>&5
15801   ac_status=$?
15802   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15803   (exit $ac_status); }; }; then
15804   wine_cv_linux_gethostbyname_r_6=yes
15805 else
15806   echo "$as_me: failed program was:" >&5
15807 sed 's/^/| /' conftest.$ac_ext >&5
15808
15809 wine_cv_linux_gethostbyname_r_6=no
15810
15811 fi
15812 rm -f conftest.$ac_objext conftest.$ac_ext
15813
15814 fi
15815 echo "$as_me:$LINENO: result: $wine_cv_linux_gethostbyname_r_6" >&5
15816 echo "${ECHO_T}$wine_cv_linux_gethostbyname_r_6" >&6
15817    if test "$wine_cv_linux_gethostbyname_r_6" = "yes"
15818    then
15819
15820 cat >>confdefs.h <<\_ACEOF
15821 #define HAVE_LINUX_GETHOSTBYNAME_R_6 1
15822 _ACEOF
15823
15824    fi
15825
15826 if test "$ac_cv_header_linux_joystick_h" = "yes"
15827 then
15828    echo "$as_me:$LINENO: checking whether linux/joystick.h uses the Linux 2.2+ API" >&5
15829 echo $ECHO_N "checking whether linux/joystick.h uses the Linux 2.2+ API... $ECHO_C" >&6
15830 if test "${wine_cv_linux_joystick_22_api+set}" = set; then
15831   echo $ECHO_N "(cached) $ECHO_C" >&6
15832 else
15833   cat >conftest.$ac_ext <<_ACEOF
15834 #line $LINENO "configure"
15835 /* confdefs.h.  */
15836 _ACEOF
15837 cat confdefs.h >>conftest.$ac_ext
15838 cat >>conftest.$ac_ext <<_ACEOF
15839 /* end confdefs.h.  */
15840
15841         #include <sys/ioctl.h>
15842         #include <linux/joystick.h>
15843
15844         struct js_event blub;
15845         #if !defined(JS_EVENT_AXIS) || !defined(JS_EVENT_BUTTON)
15846         #error "no 2.2 header"
15847         #endif
15848
15849 int
15850 main ()
15851 {
15852 /*empty*/
15853   ;
15854   return 0;
15855 }
15856 _ACEOF
15857 rm -f conftest.$ac_objext
15858 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15859   (eval $ac_compile) 2>&5
15860   ac_status=$?
15861   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15862   (exit $ac_status); } &&
15863          { ac_try='test -s conftest.$ac_objext'
15864   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15865   (eval $ac_try) 2>&5
15866   ac_status=$?
15867   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15868   (exit $ac_status); }; }; then
15869   wine_cv_linux_joystick_22_api=yes
15870 else
15871   echo "$as_me: failed program was:" >&5
15872 sed 's/^/| /' conftest.$ac_ext >&5
15873
15874 wine_cv_linux_joystick_22_api=no
15875 fi
15876 rm -f conftest.$ac_objext conftest.$ac_ext
15877
15878 fi
15879 echo "$as_me:$LINENO: result: $wine_cv_linux_joystick_22_api" >&5
15880 echo "${ECHO_T}$wine_cv_linux_joystick_22_api" >&6
15881    if test "$wine_cv_linux_joystick_22_api" = "yes"
15882    then
15883
15884 cat >>confdefs.h <<\_ACEOF
15885 #define HAVE_LINUX_22_JOYSTICK_API 1
15886 _ACEOF
15887
15888    fi
15889 fi
15890
15891
15892 if test "$ac_cv_header_sys_vfs_h" = "yes"
15893 then
15894     echo "$as_me:$LINENO: checking whether sys/vfs.h defines statfs" >&5
15895 echo $ECHO_N "checking whether sys/vfs.h defines statfs... $ECHO_C" >&6
15896 if test "${wine_cv_sys_vfs_has_statfs+set}" = set; then
15897   echo $ECHO_N "(cached) $ECHO_C" >&6
15898 else
15899   cat >conftest.$ac_ext <<_ACEOF
15900 #line $LINENO "configure"
15901 /* confdefs.h.  */
15902 _ACEOF
15903 cat confdefs.h >>conftest.$ac_ext
15904 cat >>conftest.$ac_ext <<_ACEOF
15905 /* end confdefs.h.  */
15906
15907         #include <sys/types.h>
15908         #ifdef HAVE_SYS_PARAM_H
15909         # include <sys/param.h>
15910         #endif
15911         #include <sys/vfs.h>
15912
15913 int
15914 main ()
15915 {
15916
15917                 struct statfs stfs;
15918
15919                 memset(&stfs,0,sizeof(stfs));
15920
15921   ;
15922   return 0;
15923 }
15924 _ACEOF
15925 rm -f conftest.$ac_objext
15926 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15927   (eval $ac_compile) 2>&5
15928   ac_status=$?
15929   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15930   (exit $ac_status); } &&
15931          { ac_try='test -s conftest.$ac_objext'
15932   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15933   (eval $ac_try) 2>&5
15934   ac_status=$?
15935   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15936   (exit $ac_status); }; }; then
15937   wine_cv_sys_vfs_has_statfs=yes
15938 else
15939   echo "$as_me: failed program was:" >&5
15940 sed 's/^/| /' conftest.$ac_ext >&5
15941
15942 wine_cv_sys_vfs_has_statfs=no
15943
15944 fi
15945 rm -f conftest.$ac_objext conftest.$ac_ext
15946
15947 fi
15948 echo "$as_me:$LINENO: result: $wine_cv_sys_vfs_has_statfs" >&5
15949 echo "${ECHO_T}$wine_cv_sys_vfs_has_statfs" >&6
15950     if test "$wine_cv_sys_vfs_has_statfs" = "yes"
15951     then
15952
15953 cat >>confdefs.h <<\_ACEOF
15954 #define STATFS_DEFINED_BY_SYS_VFS 1
15955 _ACEOF
15956
15957     fi
15958 fi
15959
15960 if test "$ac_cv_header_sys_statfs_h" = "yes"
15961 then
15962     echo "$as_me:$LINENO: checking whether sys/statfs.h defines statfs" >&5
15963 echo $ECHO_N "checking whether sys/statfs.h defines statfs... $ECHO_C" >&6
15964 if test "${wine_cv_sys_statfs_has_statfs+set}" = set; then
15965   echo $ECHO_N "(cached) $ECHO_C" >&6
15966 else
15967   cat >conftest.$ac_ext <<_ACEOF
15968 #line $LINENO "configure"
15969 /* confdefs.h.  */
15970 _ACEOF
15971 cat confdefs.h >>conftest.$ac_ext
15972 cat >>conftest.$ac_ext <<_ACEOF
15973 /* end confdefs.h.  */
15974
15975         #include <sys/types.h>
15976         #ifdef HAVE_SYS_PARAM_H
15977         # include <sys/param.h>
15978         #endif
15979         #include <sys/statfs.h>
15980
15981 int
15982 main ()
15983 {
15984
15985                 struct statfs stfs;
15986
15987   ;
15988   return 0;
15989 }
15990 _ACEOF
15991 rm -f conftest.$ac_objext
15992 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15993   (eval $ac_compile) 2>&5
15994   ac_status=$?
15995   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15996   (exit $ac_status); } &&
15997          { ac_try='test -s conftest.$ac_objext'
15998   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15999   (eval $ac_try) 2>&5
16000   ac_status=$?
16001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16002   (exit $ac_status); }; }; then
16003   wine_cv_sys_statfs_has_statfs=yes
16004 else
16005   echo "$as_me: failed program was:" >&5
16006 sed 's/^/| /' conftest.$ac_ext >&5
16007
16008 wine_cv_sys_statfs_has_statfs=no
16009
16010 fi
16011 rm -f conftest.$ac_objext conftest.$ac_ext
16012
16013 fi
16014 echo "$as_me:$LINENO: result: $wine_cv_sys_statfs_has_statfs" >&5
16015 echo "${ECHO_T}$wine_cv_sys_statfs_has_statfs" >&6
16016     if test "$wine_cv_sys_statfs_has_statfs" = "yes"
16017     then
16018
16019 cat >>confdefs.h <<\_ACEOF
16020 #define STATFS_DEFINED_BY_SYS_STATFS 1
16021 _ACEOF
16022
16023     fi
16024 fi
16025
16026 if test "$ac_cv_header_sys_mount_h" = "yes"
16027 then
16028     echo "$as_me:$LINENO: checking whether sys/mount.h defines statfs" >&5
16029 echo $ECHO_N "checking whether sys/mount.h defines statfs... $ECHO_C" >&6
16030 if test "${wine_cv_sys_mount_has_statfs+set}" = set; then
16031   echo $ECHO_N "(cached) $ECHO_C" >&6
16032 else
16033   cat >conftest.$ac_ext <<_ACEOF
16034 #line $LINENO "configure"
16035 /* confdefs.h.  */
16036 _ACEOF
16037 cat confdefs.h >>conftest.$ac_ext
16038 cat >>conftest.$ac_ext <<_ACEOF
16039 /* end confdefs.h.  */
16040
16041         #include <sys/types.h>
16042         #ifdef HAVE_SYS_PARAM_H
16043         # include <sys/param.h>
16044         #endif
16045         #include <sys/mount.h>
16046
16047 int
16048 main ()
16049 {
16050
16051                 struct statfs stfs;
16052
16053   ;
16054   return 0;
16055 }
16056 _ACEOF
16057 rm -f conftest.$ac_objext
16058 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16059   (eval $ac_compile) 2>&5
16060   ac_status=$?
16061   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16062   (exit $ac_status); } &&
16063          { ac_try='test -s conftest.$ac_objext'
16064   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16065   (eval $ac_try) 2>&5
16066   ac_status=$?
16067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16068   (exit $ac_status); }; }; then
16069   wine_cv_sys_mount_has_statfs=yes
16070 else
16071   echo "$as_me: failed program was:" >&5
16072 sed 's/^/| /' conftest.$ac_ext >&5
16073
16074 wine_cv_sys_mount_has_statfs=no
16075
16076 fi
16077 rm -f conftest.$ac_objext conftest.$ac_ext
16078
16079 fi
16080 echo "$as_me:$LINENO: result: $wine_cv_sys_mount_has_statfs" >&5
16081 echo "${ECHO_T}$wine_cv_sys_mount_has_statfs" >&6
16082     if test "$wine_cv_sys_mount_has_statfs" = "yes"
16083     then
16084
16085 cat >>confdefs.h <<\_ACEOF
16086 #define STATFS_DEFINED_BY_SYS_MOUNT 1
16087 _ACEOF
16088
16089     fi
16090 fi
16091
16092
16093 echo "$as_me:$LINENO: checking for struct statfs.f_bfree" >&5
16094 echo $ECHO_N "checking for struct statfs.f_bfree... $ECHO_C" >&6
16095 if test "${ac_cv_member_struct_statfs_f_bfree+set}" = set; then
16096   echo $ECHO_N "(cached) $ECHO_C" >&6
16097 else
16098   cat >conftest.$ac_ext <<_ACEOF
16099 #line $LINENO "configure"
16100 /* confdefs.h.  */
16101 _ACEOF
16102 cat confdefs.h >>conftest.$ac_ext
16103 cat >>conftest.$ac_ext <<_ACEOF
16104 /* end confdefs.h.  */
16105 #include <sys/types.h>
16106 #ifdef HAVE_SYS_PARAM_H
16107 # include <sys/param.h>
16108 #endif
16109 #ifdef STATFS_DEFINED_BY_SYS_MOUNT
16110 # include <sys/mount.h>
16111 #else
16112 # ifdef STATFS_DEFINED_BY_SYS_VFS
16113 #  include <sys/vfs.h>
16114 # else
16115 #  ifdef STATFS_DEFINED_BY_SYS_STATFS
16116 #   include <sys/statfs.h>
16117 #  endif
16118 # endif
16119 #endif
16120
16121 int
16122 main ()
16123 {
16124 static struct statfs ac_aggr;
16125 if (ac_aggr.f_bfree)
16126 return 0;
16127   ;
16128   return 0;
16129 }
16130 _ACEOF
16131 rm -f conftest.$ac_objext
16132 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16133   (eval $ac_compile) 2>&5
16134   ac_status=$?
16135   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16136   (exit $ac_status); } &&
16137          { ac_try='test -s conftest.$ac_objext'
16138   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16139   (eval $ac_try) 2>&5
16140   ac_status=$?
16141   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16142   (exit $ac_status); }; }; then
16143   ac_cv_member_struct_statfs_f_bfree=yes
16144 else
16145   echo "$as_me: failed program was:" >&5
16146 sed 's/^/| /' conftest.$ac_ext >&5
16147
16148 cat >conftest.$ac_ext <<_ACEOF
16149 #line $LINENO "configure"
16150 /* confdefs.h.  */
16151 _ACEOF
16152 cat confdefs.h >>conftest.$ac_ext
16153 cat >>conftest.$ac_ext <<_ACEOF
16154 /* end confdefs.h.  */
16155 #include <sys/types.h>
16156 #ifdef HAVE_SYS_PARAM_H
16157 # include <sys/param.h>
16158 #endif
16159 #ifdef STATFS_DEFINED_BY_SYS_MOUNT
16160 # include <sys/mount.h>
16161 #else
16162 # ifdef STATFS_DEFINED_BY_SYS_VFS
16163 #  include <sys/vfs.h>
16164 # else
16165 #  ifdef STATFS_DEFINED_BY_SYS_STATFS
16166 #   include <sys/statfs.h>
16167 #  endif
16168 # endif
16169 #endif
16170
16171 int
16172 main ()
16173 {
16174 static struct statfs ac_aggr;
16175 if (sizeof ac_aggr.f_bfree)
16176 return 0;
16177   ;
16178   return 0;
16179 }
16180 _ACEOF
16181 rm -f conftest.$ac_objext
16182 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16183   (eval $ac_compile) 2>&5
16184   ac_status=$?
16185   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16186   (exit $ac_status); } &&
16187          { ac_try='test -s conftest.$ac_objext'
16188   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16189   (eval $ac_try) 2>&5
16190   ac_status=$?
16191   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16192   (exit $ac_status); }; }; then
16193   ac_cv_member_struct_statfs_f_bfree=yes
16194 else
16195   echo "$as_me: failed program was:" >&5
16196 sed 's/^/| /' conftest.$ac_ext >&5
16197
16198 ac_cv_member_struct_statfs_f_bfree=no
16199 fi
16200 rm -f conftest.$ac_objext conftest.$ac_ext
16201 fi
16202 rm -f conftest.$ac_objext conftest.$ac_ext
16203 fi
16204 echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_bfree" >&5
16205 echo "${ECHO_T}$ac_cv_member_struct_statfs_f_bfree" >&6
16206 if test $ac_cv_member_struct_statfs_f_bfree = yes; then
16207
16208 cat >>confdefs.h <<_ACEOF
16209 #define HAVE_STRUCT_STATFS_F_BFREE 1
16210 _ACEOF
16211
16212
16213 fi
16214 echo "$as_me:$LINENO: checking for struct statfs.f_bavail" >&5
16215 echo $ECHO_N "checking for struct statfs.f_bavail... $ECHO_C" >&6
16216 if test "${ac_cv_member_struct_statfs_f_bavail+set}" = set; then
16217   echo $ECHO_N "(cached) $ECHO_C" >&6
16218 else
16219   cat >conftest.$ac_ext <<_ACEOF
16220 #line $LINENO "configure"
16221 /* confdefs.h.  */
16222 _ACEOF
16223 cat confdefs.h >>conftest.$ac_ext
16224 cat >>conftest.$ac_ext <<_ACEOF
16225 /* end confdefs.h.  */
16226 #include <sys/types.h>
16227 #ifdef HAVE_SYS_PARAM_H
16228 # include <sys/param.h>
16229 #endif
16230 #ifdef STATFS_DEFINED_BY_SYS_MOUNT
16231 # include <sys/mount.h>
16232 #else
16233 # ifdef STATFS_DEFINED_BY_SYS_VFS
16234 #  include <sys/vfs.h>
16235 # else
16236 #  ifdef STATFS_DEFINED_BY_SYS_STATFS
16237 #   include <sys/statfs.h>
16238 #  endif
16239 # endif
16240 #endif
16241
16242 int
16243 main ()
16244 {
16245 static struct statfs ac_aggr;
16246 if (ac_aggr.f_bavail)
16247 return 0;
16248   ;
16249   return 0;
16250 }
16251 _ACEOF
16252 rm -f conftest.$ac_objext
16253 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16254   (eval $ac_compile) 2>&5
16255   ac_status=$?
16256   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16257   (exit $ac_status); } &&
16258          { ac_try='test -s conftest.$ac_objext'
16259   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16260   (eval $ac_try) 2>&5
16261   ac_status=$?
16262   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16263   (exit $ac_status); }; }; then
16264   ac_cv_member_struct_statfs_f_bavail=yes
16265 else
16266   echo "$as_me: failed program was:" >&5
16267 sed 's/^/| /' conftest.$ac_ext >&5
16268
16269 cat >conftest.$ac_ext <<_ACEOF
16270 #line $LINENO "configure"
16271 /* confdefs.h.  */
16272 _ACEOF
16273 cat confdefs.h >>conftest.$ac_ext
16274 cat >>conftest.$ac_ext <<_ACEOF
16275 /* end confdefs.h.  */
16276 #include <sys/types.h>
16277 #ifdef HAVE_SYS_PARAM_H
16278 # include <sys/param.h>
16279 #endif
16280 #ifdef STATFS_DEFINED_BY_SYS_MOUNT
16281 # include <sys/mount.h>
16282 #else
16283 # ifdef STATFS_DEFINED_BY_SYS_VFS
16284 #  include <sys/vfs.h>
16285 # else
16286 #  ifdef STATFS_DEFINED_BY_SYS_STATFS
16287 #   include <sys/statfs.h>
16288 #  endif
16289 # endif
16290 #endif
16291
16292 int
16293 main ()
16294 {
16295 static struct statfs ac_aggr;
16296 if (sizeof ac_aggr.f_bavail)
16297 return 0;
16298   ;
16299   return 0;
16300 }
16301 _ACEOF
16302 rm -f conftest.$ac_objext
16303 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16304   (eval $ac_compile) 2>&5
16305   ac_status=$?
16306   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16307   (exit $ac_status); } &&
16308          { ac_try='test -s conftest.$ac_objext'
16309   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16310   (eval $ac_try) 2>&5
16311   ac_status=$?
16312   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16313   (exit $ac_status); }; }; then
16314   ac_cv_member_struct_statfs_f_bavail=yes
16315 else
16316   echo "$as_me: failed program was:" >&5
16317 sed 's/^/| /' conftest.$ac_ext >&5
16318
16319 ac_cv_member_struct_statfs_f_bavail=no
16320 fi
16321 rm -f conftest.$ac_objext conftest.$ac_ext
16322 fi
16323 rm -f conftest.$ac_objext conftest.$ac_ext
16324 fi
16325 echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_bavail" >&5
16326 echo "${ECHO_T}$ac_cv_member_struct_statfs_f_bavail" >&6
16327 if test $ac_cv_member_struct_statfs_f_bavail = yes; then
16328
16329 cat >>confdefs.h <<_ACEOF
16330 #define HAVE_STRUCT_STATFS_F_BAVAIL 1
16331 _ACEOF
16332
16333
16334 fi
16335
16336
16337 echo "$as_me:$LINENO: checking for struct msghdr.msg_accrights" >&5
16338 echo $ECHO_N "checking for struct msghdr.msg_accrights... $ECHO_C" >&6
16339 if test "${ac_cv_member_struct_msghdr_msg_accrights+set}" = set; then
16340   echo $ECHO_N "(cached) $ECHO_C" >&6
16341 else
16342   cat >conftest.$ac_ext <<_ACEOF
16343 #line $LINENO "configure"
16344 /* confdefs.h.  */
16345 _ACEOF
16346 cat confdefs.h >>conftest.$ac_ext
16347 cat >>conftest.$ac_ext <<_ACEOF
16348 /* end confdefs.h.  */
16349 #include <sys/types.h>
16350 #ifdef HAVE_SYS_SOCKET_H
16351 # include <sys/socket.h>
16352 #endif
16353 #ifdef HAVE_SYS_UN_H
16354 # include <sys/un.h>
16355 #endif
16356
16357 int
16358 main ()
16359 {
16360 static struct msghdr ac_aggr;
16361 if (ac_aggr.msg_accrights)
16362 return 0;
16363   ;
16364   return 0;
16365 }
16366 _ACEOF
16367 rm -f conftest.$ac_objext
16368 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16369   (eval $ac_compile) 2>&5
16370   ac_status=$?
16371   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16372   (exit $ac_status); } &&
16373          { ac_try='test -s conftest.$ac_objext'
16374   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16375   (eval $ac_try) 2>&5
16376   ac_status=$?
16377   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16378   (exit $ac_status); }; }; then
16379   ac_cv_member_struct_msghdr_msg_accrights=yes
16380 else
16381   echo "$as_me: failed program was:" >&5
16382 sed 's/^/| /' conftest.$ac_ext >&5
16383
16384 cat >conftest.$ac_ext <<_ACEOF
16385 #line $LINENO "configure"
16386 /* confdefs.h.  */
16387 _ACEOF
16388 cat confdefs.h >>conftest.$ac_ext
16389 cat >>conftest.$ac_ext <<_ACEOF
16390 /* end confdefs.h.  */
16391 #include <sys/types.h>
16392 #ifdef HAVE_SYS_SOCKET_H
16393 # include <sys/socket.h>
16394 #endif
16395 #ifdef HAVE_SYS_UN_H
16396 # include <sys/un.h>
16397 #endif
16398
16399 int
16400 main ()
16401 {
16402 static struct msghdr ac_aggr;
16403 if (sizeof ac_aggr.msg_accrights)
16404 return 0;
16405   ;
16406   return 0;
16407 }
16408 _ACEOF
16409 rm -f conftest.$ac_objext
16410 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16411   (eval $ac_compile) 2>&5
16412   ac_status=$?
16413   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16414   (exit $ac_status); } &&
16415          { ac_try='test -s conftest.$ac_objext'
16416   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16417   (eval $ac_try) 2>&5
16418   ac_status=$?
16419   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16420   (exit $ac_status); }; }; then
16421   ac_cv_member_struct_msghdr_msg_accrights=yes
16422 else
16423   echo "$as_me: failed program was:" >&5
16424 sed 's/^/| /' conftest.$ac_ext >&5
16425
16426 ac_cv_member_struct_msghdr_msg_accrights=no
16427 fi
16428 rm -f conftest.$ac_objext conftest.$ac_ext
16429 fi
16430 rm -f conftest.$ac_objext conftest.$ac_ext
16431 fi
16432 echo "$as_me:$LINENO: result: $ac_cv_member_struct_msghdr_msg_accrights" >&5
16433 echo "${ECHO_T}$ac_cv_member_struct_msghdr_msg_accrights" >&6
16434 if test $ac_cv_member_struct_msghdr_msg_accrights = yes; then
16435
16436 cat >>confdefs.h <<_ACEOF
16437 #define HAVE_STRUCT_MSGHDR_MSG_ACCRIGHTS 1
16438 _ACEOF
16439
16440
16441 fi
16442 echo "$as_me:$LINENO: checking for struct sockaddr.sa_len" >&5
16443 echo $ECHO_N "checking for struct sockaddr.sa_len... $ECHO_C" >&6
16444 if test "${ac_cv_member_struct_sockaddr_sa_len+set}" = set; then
16445   echo $ECHO_N "(cached) $ECHO_C" >&6
16446 else
16447   cat >conftest.$ac_ext <<_ACEOF
16448 #line $LINENO "configure"
16449 /* confdefs.h.  */
16450 _ACEOF
16451 cat confdefs.h >>conftest.$ac_ext
16452 cat >>conftest.$ac_ext <<_ACEOF
16453 /* end confdefs.h.  */
16454 #include <sys/types.h>
16455 #ifdef HAVE_SYS_SOCKET_H
16456 # include <sys/socket.h>
16457 #endif
16458 #ifdef HAVE_SYS_UN_H
16459 # include <sys/un.h>
16460 #endif
16461
16462 int
16463 main ()
16464 {
16465 static struct sockaddr ac_aggr;
16466 if (ac_aggr.sa_len)
16467 return 0;
16468   ;
16469   return 0;
16470 }
16471 _ACEOF
16472 rm -f conftest.$ac_objext
16473 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16474   (eval $ac_compile) 2>&5
16475   ac_status=$?
16476   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16477   (exit $ac_status); } &&
16478          { ac_try='test -s conftest.$ac_objext'
16479   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16480   (eval $ac_try) 2>&5
16481   ac_status=$?
16482   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16483   (exit $ac_status); }; }; then
16484   ac_cv_member_struct_sockaddr_sa_len=yes
16485 else
16486   echo "$as_me: failed program was:" >&5
16487 sed 's/^/| /' conftest.$ac_ext >&5
16488
16489 cat >conftest.$ac_ext <<_ACEOF
16490 #line $LINENO "configure"
16491 /* confdefs.h.  */
16492 _ACEOF
16493 cat confdefs.h >>conftest.$ac_ext
16494 cat >>conftest.$ac_ext <<_ACEOF
16495 /* end confdefs.h.  */
16496 #include <sys/types.h>
16497 #ifdef HAVE_SYS_SOCKET_H
16498 # include <sys/socket.h>
16499 #endif
16500 #ifdef HAVE_SYS_UN_H
16501 # include <sys/un.h>
16502 #endif
16503
16504 int
16505 main ()
16506 {
16507 static struct sockaddr ac_aggr;
16508 if (sizeof ac_aggr.sa_len)
16509 return 0;
16510   ;
16511   return 0;
16512 }
16513 _ACEOF
16514 rm -f conftest.$ac_objext
16515 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16516   (eval $ac_compile) 2>&5
16517   ac_status=$?
16518   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16519   (exit $ac_status); } &&
16520          { ac_try='test -s conftest.$ac_objext'
16521   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16522   (eval $ac_try) 2>&5
16523   ac_status=$?
16524   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16525   (exit $ac_status); }; }; then
16526   ac_cv_member_struct_sockaddr_sa_len=yes
16527 else
16528   echo "$as_me: failed program was:" >&5
16529 sed 's/^/| /' conftest.$ac_ext >&5
16530
16531 ac_cv_member_struct_sockaddr_sa_len=no
16532 fi
16533 rm -f conftest.$ac_objext conftest.$ac_ext
16534 fi
16535 rm -f conftest.$ac_objext conftest.$ac_ext
16536 fi
16537 echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_sa_len" >&5
16538 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_sa_len" >&6
16539 if test $ac_cv_member_struct_sockaddr_sa_len = yes; then
16540
16541 cat >>confdefs.h <<_ACEOF
16542 #define HAVE_STRUCT_SOCKADDR_SA_LEN 1
16543 _ACEOF
16544
16545
16546 fi
16547 echo "$as_me:$LINENO: checking for struct sockaddr_un.sun_len" >&5
16548 echo $ECHO_N "checking for struct sockaddr_un.sun_len... $ECHO_C" >&6
16549 if test "${ac_cv_member_struct_sockaddr_un_sun_len+set}" = set; then
16550   echo $ECHO_N "(cached) $ECHO_C" >&6
16551 else
16552   cat >conftest.$ac_ext <<_ACEOF
16553 #line $LINENO "configure"
16554 /* confdefs.h.  */
16555 _ACEOF
16556 cat confdefs.h >>conftest.$ac_ext
16557 cat >>conftest.$ac_ext <<_ACEOF
16558 /* end confdefs.h.  */
16559 #include <sys/types.h>
16560 #ifdef HAVE_SYS_SOCKET_H
16561 # include <sys/socket.h>
16562 #endif
16563 #ifdef HAVE_SYS_UN_H
16564 # include <sys/un.h>
16565 #endif
16566
16567 int
16568 main ()
16569 {
16570 static struct sockaddr_un ac_aggr;
16571 if (ac_aggr.sun_len)
16572 return 0;
16573   ;
16574   return 0;
16575 }
16576 _ACEOF
16577 rm -f conftest.$ac_objext
16578 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16579   (eval $ac_compile) 2>&5
16580   ac_status=$?
16581   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16582   (exit $ac_status); } &&
16583          { ac_try='test -s conftest.$ac_objext'
16584   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16585   (eval $ac_try) 2>&5
16586   ac_status=$?
16587   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16588   (exit $ac_status); }; }; then
16589   ac_cv_member_struct_sockaddr_un_sun_len=yes
16590 else
16591   echo "$as_me: failed program was:" >&5
16592 sed 's/^/| /' conftest.$ac_ext >&5
16593
16594 cat >conftest.$ac_ext <<_ACEOF
16595 #line $LINENO "configure"
16596 /* confdefs.h.  */
16597 _ACEOF
16598 cat confdefs.h >>conftest.$ac_ext
16599 cat >>conftest.$ac_ext <<_ACEOF
16600 /* end confdefs.h.  */
16601 #include <sys/types.h>
16602 #ifdef HAVE_SYS_SOCKET_H
16603 # include <sys/socket.h>
16604 #endif
16605 #ifdef HAVE_SYS_UN_H
16606 # include <sys/un.h>
16607 #endif
16608
16609 int
16610 main ()
16611 {
16612 static struct sockaddr_un ac_aggr;
16613 if (sizeof ac_aggr.sun_len)
16614 return 0;
16615   ;
16616   return 0;
16617 }
16618 _ACEOF
16619 rm -f conftest.$ac_objext
16620 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16621   (eval $ac_compile) 2>&5
16622   ac_status=$?
16623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16624   (exit $ac_status); } &&
16625          { ac_try='test -s conftest.$ac_objext'
16626   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16627   (eval $ac_try) 2>&5
16628   ac_status=$?
16629   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16630   (exit $ac_status); }; }; then
16631   ac_cv_member_struct_sockaddr_un_sun_len=yes
16632 else
16633   echo "$as_me: failed program was:" >&5
16634 sed 's/^/| /' conftest.$ac_ext >&5
16635
16636 ac_cv_member_struct_sockaddr_un_sun_len=no
16637 fi
16638 rm -f conftest.$ac_objext conftest.$ac_ext
16639 fi
16640 rm -f conftest.$ac_objext conftest.$ac_ext
16641 fi
16642 echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_un_sun_len" >&5
16643 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_un_sun_len" >&6
16644 if test $ac_cv_member_struct_sockaddr_un_sun_len = yes; then
16645
16646 cat >>confdefs.h <<_ACEOF
16647 #define HAVE_STRUCT_SOCKADDR_UN_SUN_LEN 1
16648 _ACEOF
16649
16650
16651 fi
16652
16653
16654 echo "$as_me:$LINENO: checking for siginfo_t.si_fd" >&5
16655 echo $ECHO_N "checking for siginfo_t.si_fd... $ECHO_C" >&6
16656 if test "${ac_cv_member_siginfo_t_si_fd+set}" = set; then
16657   echo $ECHO_N "(cached) $ECHO_C" >&6
16658 else
16659   cat >conftest.$ac_ext <<_ACEOF
16660 #line $LINENO "configure"
16661 /* confdefs.h.  */
16662 _ACEOF
16663 cat confdefs.h >>conftest.$ac_ext
16664 cat >>conftest.$ac_ext <<_ACEOF
16665 /* end confdefs.h.  */
16666 #include <signal.h>
16667
16668 int
16669 main ()
16670 {
16671 static siginfo_t ac_aggr;
16672 if (ac_aggr.si_fd)
16673 return 0;
16674   ;
16675   return 0;
16676 }
16677 _ACEOF
16678 rm -f conftest.$ac_objext
16679 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16680   (eval $ac_compile) 2>&5
16681   ac_status=$?
16682   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16683   (exit $ac_status); } &&
16684          { ac_try='test -s conftest.$ac_objext'
16685   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16686   (eval $ac_try) 2>&5
16687   ac_status=$?
16688   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16689   (exit $ac_status); }; }; then
16690   ac_cv_member_siginfo_t_si_fd=yes
16691 else
16692   echo "$as_me: failed program was:" >&5
16693 sed 's/^/| /' conftest.$ac_ext >&5
16694
16695 cat >conftest.$ac_ext <<_ACEOF
16696 #line $LINENO "configure"
16697 /* confdefs.h.  */
16698 _ACEOF
16699 cat confdefs.h >>conftest.$ac_ext
16700 cat >>conftest.$ac_ext <<_ACEOF
16701 /* end confdefs.h.  */
16702 #include <signal.h>
16703
16704 int
16705 main ()
16706 {
16707 static siginfo_t ac_aggr;
16708 if (sizeof ac_aggr.si_fd)
16709 return 0;
16710   ;
16711   return 0;
16712 }
16713 _ACEOF
16714 rm -f conftest.$ac_objext
16715 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16716   (eval $ac_compile) 2>&5
16717   ac_status=$?
16718   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16719   (exit $ac_status); } &&
16720          { ac_try='test -s conftest.$ac_objext'
16721   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16722   (eval $ac_try) 2>&5
16723   ac_status=$?
16724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16725   (exit $ac_status); }; }; then
16726   ac_cv_member_siginfo_t_si_fd=yes
16727 else
16728   echo "$as_me: failed program was:" >&5
16729 sed 's/^/| /' conftest.$ac_ext >&5
16730
16731 ac_cv_member_siginfo_t_si_fd=no
16732 fi
16733 rm -f conftest.$ac_objext conftest.$ac_ext
16734 fi
16735 rm -f conftest.$ac_objext conftest.$ac_ext
16736 fi
16737 echo "$as_me:$LINENO: result: $ac_cv_member_siginfo_t_si_fd" >&5
16738 echo "${ECHO_T}$ac_cv_member_siginfo_t_si_fd" >&6
16739 if test $ac_cv_member_siginfo_t_si_fd = yes; then
16740
16741 cat >>confdefs.h <<_ACEOF
16742 #define HAVE_SIGINFO_T_SI_FD 1
16743 _ACEOF
16744
16745
16746 fi
16747
16748
16749 echo "$as_me:$LINENO: checking for struct option.name" >&5
16750 echo $ECHO_N "checking for struct option.name... $ECHO_C" >&6
16751 if test "${ac_cv_member_struct_option_name+set}" = set; then
16752   echo $ECHO_N "(cached) $ECHO_C" >&6
16753 else
16754   cat >conftest.$ac_ext <<_ACEOF
16755 #line $LINENO "configure"
16756 /* confdefs.h.  */
16757 _ACEOF
16758 cat confdefs.h >>conftest.$ac_ext
16759 cat >>conftest.$ac_ext <<_ACEOF
16760 /* end confdefs.h.  */
16761 #ifdef HAVE_GETOPT_H
16762 #include <getopt.h>
16763 #endif
16764
16765 int
16766 main ()
16767 {
16768 static struct option ac_aggr;
16769 if (ac_aggr.name)
16770 return 0;
16771   ;
16772   return 0;
16773 }
16774 _ACEOF
16775 rm -f conftest.$ac_objext
16776 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16777   (eval $ac_compile) 2>&5
16778   ac_status=$?
16779   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16780   (exit $ac_status); } &&
16781          { ac_try='test -s conftest.$ac_objext'
16782   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16783   (eval $ac_try) 2>&5
16784   ac_status=$?
16785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16786   (exit $ac_status); }; }; then
16787   ac_cv_member_struct_option_name=yes
16788 else
16789   echo "$as_me: failed program was:" >&5
16790 sed 's/^/| /' conftest.$ac_ext >&5
16791
16792 cat >conftest.$ac_ext <<_ACEOF
16793 #line $LINENO "configure"
16794 /* confdefs.h.  */
16795 _ACEOF
16796 cat confdefs.h >>conftest.$ac_ext
16797 cat >>conftest.$ac_ext <<_ACEOF
16798 /* end confdefs.h.  */
16799 #ifdef HAVE_GETOPT_H
16800 #include <getopt.h>
16801 #endif
16802
16803 int
16804 main ()
16805 {
16806 static struct option ac_aggr;
16807 if (sizeof ac_aggr.name)
16808 return 0;
16809   ;
16810   return 0;
16811 }
16812 _ACEOF
16813 rm -f conftest.$ac_objext
16814 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16815   (eval $ac_compile) 2>&5
16816   ac_status=$?
16817   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16818   (exit $ac_status); } &&
16819          { ac_try='test -s conftest.$ac_objext'
16820   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16821   (eval $ac_try) 2>&5
16822   ac_status=$?
16823   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16824   (exit $ac_status); }; }; then
16825   ac_cv_member_struct_option_name=yes
16826 else
16827   echo "$as_me: failed program was:" >&5
16828 sed 's/^/| /' conftest.$ac_ext >&5
16829
16830 ac_cv_member_struct_option_name=no
16831 fi
16832 rm -f conftest.$ac_objext conftest.$ac_ext
16833 fi
16834 rm -f conftest.$ac_objext conftest.$ac_ext
16835 fi
16836 echo "$as_me:$LINENO: result: $ac_cv_member_struct_option_name" >&5
16837 echo "${ECHO_T}$ac_cv_member_struct_option_name" >&6
16838 if test $ac_cv_member_struct_option_name = yes; then
16839
16840 cat >>confdefs.h <<_ACEOF
16841 #define HAVE_STRUCT_OPTION_NAME 1
16842 _ACEOF
16843
16844
16845 fi
16846
16847
16848 echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
16849 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
16850 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
16851   echo $ECHO_N "(cached) $ECHO_C" >&6
16852 else
16853   cat >conftest.$ac_ext <<_ACEOF
16854 #line $LINENO "configure"
16855 /* confdefs.h.  */
16856 _ACEOF
16857 cat confdefs.h >>conftest.$ac_ext
16858 cat >>conftest.$ac_ext <<_ACEOF
16859 /* end confdefs.h.  */
16860 $ac_includes_default
16861 int
16862 main ()
16863 {
16864 static struct stat ac_aggr;
16865 if (ac_aggr.st_blocks)
16866 return 0;
16867   ;
16868   return 0;
16869 }
16870 _ACEOF
16871 rm -f conftest.$ac_objext
16872 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16873   (eval $ac_compile) 2>&5
16874   ac_status=$?
16875   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16876   (exit $ac_status); } &&
16877          { ac_try='test -s conftest.$ac_objext'
16878   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16879   (eval $ac_try) 2>&5
16880   ac_status=$?
16881   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16882   (exit $ac_status); }; }; then
16883   ac_cv_member_struct_stat_st_blocks=yes
16884 else
16885   echo "$as_me: failed program was:" >&5
16886 sed 's/^/| /' conftest.$ac_ext >&5
16887
16888 cat >conftest.$ac_ext <<_ACEOF
16889 #line $LINENO "configure"
16890 /* confdefs.h.  */
16891 _ACEOF
16892 cat confdefs.h >>conftest.$ac_ext
16893 cat >>conftest.$ac_ext <<_ACEOF
16894 /* end confdefs.h.  */
16895 $ac_includes_default
16896 int
16897 main ()
16898 {
16899 static struct stat ac_aggr;
16900 if (sizeof ac_aggr.st_blocks)
16901 return 0;
16902   ;
16903   return 0;
16904 }
16905 _ACEOF
16906 rm -f conftest.$ac_objext
16907 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16908   (eval $ac_compile) 2>&5
16909   ac_status=$?
16910   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16911   (exit $ac_status); } &&
16912          { ac_try='test -s conftest.$ac_objext'
16913   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16914   (eval $ac_try) 2>&5
16915   ac_status=$?
16916   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16917   (exit $ac_status); }; }; then
16918   ac_cv_member_struct_stat_st_blocks=yes
16919 else
16920   echo "$as_me: failed program was:" >&5
16921 sed 's/^/| /' conftest.$ac_ext >&5
16922
16923 ac_cv_member_struct_stat_st_blocks=no
16924 fi
16925 rm -f conftest.$ac_objext conftest.$ac_ext
16926 fi
16927 rm -f conftest.$ac_objext conftest.$ac_ext
16928 fi
16929 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
16930 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
16931 if test $ac_cv_member_struct_stat_st_blocks = yes; then
16932
16933 cat >>confdefs.h <<_ACEOF
16934 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
16935 _ACEOF
16936
16937
16938 fi
16939
16940
16941
16942 case $host_cpu in
16943   *i[3456789]86*) echo "$as_me:$LINENO: checking whether we need to define __i386__" >&5
16944 echo $ECHO_N "checking whether we need to define __i386__... $ECHO_C" >&6
16945 if test "${ac_cv_cpp_def___i386__+set}" = set; then
16946   echo $ECHO_N "(cached) $ECHO_C" >&6
16947 else
16948   cat >conftest.$ac_ext <<_ACEOF
16949 #line $LINENO "configure"
16950 /* confdefs.h.  */
16951 _ACEOF
16952 cat confdefs.h >>conftest.$ac_ext
16953 cat >>conftest.$ac_ext <<_ACEOF
16954 /* end confdefs.h.  */
16955 #ifndef __i386__
16956 yes
16957 #endif
16958 _ACEOF
16959 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16960   $EGREP "yes" >/dev/null 2>&1; then
16961   ac_cv_cpp_def___i386__=yes
16962 else
16963   ac_cv_cpp_def___i386__=no
16964 fi
16965 rm -f conftest*
16966
16967 fi
16968 echo "$as_me:$LINENO: result: $ac_cv_cpp_def___i386__" >&5
16969 echo "${ECHO_T}$ac_cv_cpp_def___i386__" >&6
16970 if test $ac_cv_cpp_def___i386__ = yes; then
16971   CFLAGS="$CFLAGS -D__i386__"
16972   LINTFLAGS="$LINTFLAGS -D__i386__"
16973 fi
16974  ;;
16975   *alpha*)          echo "$as_me:$LINENO: checking whether we need to define __ALPHA__" >&5
16976 echo $ECHO_N "checking whether we need to define __ALPHA__... $ECHO_C" >&6
16977 if test "${ac_cv_cpp_def___ALPHA__+set}" = set; then
16978   echo $ECHO_N "(cached) $ECHO_C" >&6
16979 else
16980   cat >conftest.$ac_ext <<_ACEOF
16981 #line $LINENO "configure"
16982 /* confdefs.h.  */
16983 _ACEOF
16984 cat confdefs.h >>conftest.$ac_ext
16985 cat >>conftest.$ac_ext <<_ACEOF
16986 /* end confdefs.h.  */
16987 #ifndef __ALPHA__
16988 yes
16989 #endif
16990 _ACEOF
16991 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16992   $EGREP "yes" >/dev/null 2>&1; then
16993   ac_cv_cpp_def___ALPHA__=yes
16994 else
16995   ac_cv_cpp_def___ALPHA__=no
16996 fi
16997 rm -f conftest*
16998
16999 fi
17000 echo "$as_me:$LINENO: result: $ac_cv_cpp_def___ALPHA__" >&5
17001 echo "${ECHO_T}$ac_cv_cpp_def___ALPHA__" >&6
17002 if test $ac_cv_cpp_def___ALPHA__ = yes; then
17003   CFLAGS="$CFLAGS -D__ALPHA__"
17004   LINTFLAGS="$LINTFLAGS -D__ALPHA__"
17005 fi
17006  ;;
17007   *sparc*)          echo "$as_me:$LINENO: checking whether we need to define __sparc__" >&5
17008 echo $ECHO_N "checking whether we need to define __sparc__... $ECHO_C" >&6
17009 if test "${ac_cv_cpp_def___sparc__+set}" = set; then
17010   echo $ECHO_N "(cached) $ECHO_C" >&6
17011 else
17012   cat >conftest.$ac_ext <<_ACEOF
17013 #line $LINENO "configure"
17014 /* confdefs.h.  */
17015 _ACEOF
17016 cat confdefs.h >>conftest.$ac_ext
17017 cat >>conftest.$ac_ext <<_ACEOF
17018 /* end confdefs.h.  */
17019 #ifndef __sparc__
17020 yes
17021 #endif
17022 _ACEOF
17023 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17024   $EGREP "yes" >/dev/null 2>&1; then
17025   ac_cv_cpp_def___sparc__=yes
17026 else
17027   ac_cv_cpp_def___sparc__=no
17028 fi
17029 rm -f conftest*
17030
17031 fi
17032 echo "$as_me:$LINENO: result: $ac_cv_cpp_def___sparc__" >&5
17033 echo "${ECHO_T}$ac_cv_cpp_def___sparc__" >&6
17034 if test $ac_cv_cpp_def___sparc__ = yes; then
17035   CFLAGS="$CFLAGS -D__sparc__"
17036   LINTFLAGS="$LINTFLAGS -D__sparc__"
17037 fi
17038  ;;
17039   *powerpc*)        echo "$as_me:$LINENO: checking whether we need to define __powerpc__" >&5
17040 echo $ECHO_N "checking whether we need to define __powerpc__... $ECHO_C" >&6
17041 if test "${ac_cv_cpp_def___powerpc__+set}" = set; then
17042   echo $ECHO_N "(cached) $ECHO_C" >&6
17043 else
17044   cat >conftest.$ac_ext <<_ACEOF
17045 #line $LINENO "configure"
17046 /* confdefs.h.  */
17047 _ACEOF
17048 cat confdefs.h >>conftest.$ac_ext
17049 cat >>conftest.$ac_ext <<_ACEOF
17050 /* end confdefs.h.  */
17051 #ifndef __powerpc__
17052 yes
17053 #endif
17054 _ACEOF
17055 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17056   $EGREP "yes" >/dev/null 2>&1; then
17057   ac_cv_cpp_def___powerpc__=yes
17058 else
17059   ac_cv_cpp_def___powerpc__=no
17060 fi
17061 rm -f conftest*
17062
17063 fi
17064 echo "$as_me:$LINENO: result: $ac_cv_cpp_def___powerpc__" >&5
17065 echo "${ECHO_T}$ac_cv_cpp_def___powerpc__" >&6
17066 if test $ac_cv_cpp_def___powerpc__ = yes; then
17067   CFLAGS="$CFLAGS -D__powerpc__"
17068   LINTFLAGS="$LINTFLAGS -D__powerpc__"
17069 fi
17070  ;;
17071 esac
17072
17073 case $host_vendor in
17074   *sun*) echo "$as_me:$LINENO: checking whether we need to define __sun__" >&5
17075 echo $ECHO_N "checking whether we need to define __sun__... $ECHO_C" >&6
17076 if test "${ac_cv_cpp_def___sun__+set}" = set; then
17077   echo $ECHO_N "(cached) $ECHO_C" >&6
17078 else
17079   cat >conftest.$ac_ext <<_ACEOF
17080 #line $LINENO "configure"
17081 /* confdefs.h.  */
17082 _ACEOF
17083 cat confdefs.h >>conftest.$ac_ext
17084 cat >>conftest.$ac_ext <<_ACEOF
17085 /* end confdefs.h.  */
17086 #ifndef __sun__
17087 yes
17088 #endif
17089 _ACEOF
17090 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17091   $EGREP "yes" >/dev/null 2>&1; then
17092   ac_cv_cpp_def___sun__=yes
17093 else
17094   ac_cv_cpp_def___sun__=no
17095 fi
17096 rm -f conftest*
17097
17098 fi
17099 echo "$as_me:$LINENO: result: $ac_cv_cpp_def___sun__" >&5
17100 echo "${ECHO_T}$ac_cv_cpp_def___sun__" >&6
17101 if test $ac_cv_cpp_def___sun__ = yes; then
17102   CFLAGS="$CFLAGS -D__sun__"
17103   LINTFLAGS="$LINTFLAGS -D__sun__"
17104 fi
17105  ;;
17106 esac
17107
17108
17109
17110
17111
17112           ac_config_commands="$ac_config_commands controls"
17113
17114           ac_config_commands="$ac_config_commands dlls/ddraw/d3ddevice"
17115
17116           ac_config_commands="$ac_config_commands dlls/ddraw/dclipper"
17117
17118           ac_config_commands="$ac_config_commands dlls/ddraw/ddraw"
17119
17120           ac_config_commands="$ac_config_commands dlls/ddraw/direct3d"
17121
17122           ac_config_commands="$ac_config_commands dlls/ddraw/dpalette"
17123
17124           ac_config_commands="$ac_config_commands dlls/ddraw/dsurface"
17125
17126           ac_config_commands="$ac_config_commands dlls/dinput/joystick"
17127
17128           ac_config_commands="$ac_config_commands dlls/dinput/keyboard"
17129
17130           ac_config_commands="$ac_config_commands dlls/dinput/mouse"
17131
17132           ac_config_commands="$ac_config_commands dlls/gdi/enhmfdrv"
17133
17134           ac_config_commands="$ac_config_commands dlls/gdi/mfdrv"
17135
17136           ac_config_commands="$ac_config_commands dlls/kernel/messages"
17137
17138           ac_config_commands="$ac_config_commands dlls/user/dde"
17139
17140           ac_config_commands="$ac_config_commands dlls/user/resources"
17141
17142           ac_config_commands="$ac_config_commands dlls/wineps/data"
17143
17144           ac_config_commands="$ac_config_commands files"
17145
17146           ac_config_commands="$ac_config_commands graphics"
17147
17148           ac_config_commands="$ac_config_commands graphics/x11drv"
17149
17150           ac_config_commands="$ac_config_commands include/wine"
17151
17152           ac_config_commands="$ac_config_commands misc"
17153
17154           ac_config_commands="$ac_config_commands objects"
17155
17156           ac_config_commands="$ac_config_commands programs/regapi/tests"
17157
17158           ac_config_commands="$ac_config_commands programs/regedit/tests"
17159
17160           ac_config_commands="$ac_config_commands windows"
17161
17162
17163 MAKE_RULES=Make.rules
17164
17165
17166 MAKE_DLL_RULES=dlls/Makedll.rules
17167
17168
17169 MAKE_TEST_RULES=dlls/Maketest.rules
17170
17171
17172 MAKE_LIB_RULES=libs/Makelib.rules
17173
17174
17175 MAKE_PROG_RULES=programs/Makeprog.rules
17176
17177
17178                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   ac_config_files="$ac_config_files Make.rules dlls/Makedll.rules dlls/Maketest.rules libs/Makelib.rules programs/Makeprog.rules Makefile dlls/Makefile dlls/advapi32/Makefile dlls/advapi32/tests/Makefile dlls/avicap32/Makefile dlls/avifil32/Makefile dlls/cabinet/Makefile dlls/capi2032/Makefile dlls/cfgmgr32/Makefile dlls/comcat/Makefile dlls/comctl32/Makefile dlls/comctl32/tests/Makefile dlls/commdlg/Makefile dlls/crtdll/Makefile dlls/crypt32/Makefile dlls/ctl3d/Makefile dlls/wined3d/Makefile dlls/d3d8/Makefile dlls/d3d9/Makefile dlls/d3dim/Makefile dlls/d3dx8/Makefile dlls/dciman32/Makefile dlls/ddraw/Makefile dlls/ddraw/tests/Makefile dlls/devenum/Makefile dlls/dinput/Makefile dlls/dinput8/Makefile dlls/dmband/Makefile dlls/dmcompos/Makefile dlls/dmime/Makefile dlls/dmloader/Makefile dlls/dmscript/Makefile dlls/dmstyle/Makefile dlls/dmsynth/Makefile dlls/dmusic/Makefile dlls/dmusic32/Makefile dlls/dplay/Makefile dlls/dplayx/Makefile dlls/dpnhpast/Makefile dlls/dsound/Makefile dlls/dsound/tests/Makefile dlls/gdi/Makefile dlls/gdi/tests/Makefile dlls/glu32/Makefile dlls/icmp/Makefile dlls/imagehlp/Makefile dlls/imm32/Makefile dlls/iphlpapi/Makefile dlls/kernel/Makefile dlls/kernel/tests/Makefile dlls/lzexpand/Makefile dlls/mapi32/Makefile dlls/mpr/Makefile dlls/msacm/Makefile dlls/msacm/imaadp32/Makefile dlls/msacm/msadp32/Makefile dlls/msacm/msg711/Makefile dlls/msacm/winemp3/Makefile dlls/msdmo/Makefile dlls/mshtml/Makefile dlls/msi/Makefile dlls/msimg32/Makefile dlls/msisys/Makefile dlls/msnet32/Makefile dlls/msvcrt/Makefile dlls/msvcrt/tests/Makefile dlls/msvcrt20/Makefile dlls/msvcrtd/Makefile dlls/msvideo/Makefile dlls/msvideo/msrle32/Makefile dlls/mswsock/Makefile dlls/netapi32/Makefile dlls/netapi32/tests/Makefile dlls/ntdll/Makefile dlls/ntdll/tests/Makefile dlls/odbc32/Makefile dlls/ole32/Makefile dlls/oleacc/Makefile dlls/oleaut32/Makefile dlls/oleaut32/tests/Makefile dlls/olecli/Makefile dlls/oledlg/Makefile dlls/olepro32/Makefile dlls/olesvr/Makefile dlls/opengl32/Makefile dlls/psapi/Makefile dlls/qcap/Makefile dlls/quartz/Makefile dlls/rasapi32/Makefile dlls/richedit/Makefile dlls/rpcrt4/Makefile dlls/rpcrt4/tests/Makefile dlls/serialui/Makefile dlls/setupapi/Makefile dlls/shdocvw/Makefile dlls/shell32/Makefile dlls/shell32/tests/Makefile dlls/shfolder/Makefile dlls/shlwapi/Makefile dlls/shlwapi/tests/Makefile dlls/snmpapi/Makefile dlls/sti/Makefile dlls/tapi32/Makefile dlls/ttydrv/Makefile dlls/twain/Makefile dlls/url/Makefile dlls/urlmon/Makefile dlls/urlmon/tests/Makefile dlls/user/Makefile dlls/user/tests/Makefile dlls/uxtheme/Makefile dlls/version/Makefile dlls/win32s/Makefile dlls/winaspi/Makefile dlls/winedos/Makefile dlls/wineps/Makefile dlls/wininet/Makefile dlls/wininet/tests/Makefile dlls/winmm/Makefile dlls/winmm/joystick/Makefile dlls/winmm/mcianim/Makefile dlls/winmm/mciavi/Makefile dlls/winmm/mcicda/Makefile dlls/winmm/mciseq/Makefile dlls/winmm/mciwave/Makefile dlls/winmm/midimap/Makefile dlls/winmm/tests/Makefile dlls/winmm/wavemap/Makefile dlls/winmm/winealsa/Makefile dlls/winmm/winearts/Makefile dlls/winmm/wineaudioio/Makefile dlls/winmm/winenas/Makefile dlls/winmm/winejack/Makefile dlls/winmm/wineoss/Makefile dlls/winnls/Makefile dlls/winsock/Makefile dlls/winsock/tests/Makefile dlls/winspool/Makefile dlls/winspool/tests/Makefile dlls/wintab32/Makefile dlls/wintrust/Makefile dlls/wow32/Makefile dlls/wsock32/Makefile dlls/x11drv/Makefile documentation/Makefile include/Makefile libs/Makefile libs/port/Makefile libs/unicode/Makefile libs/uuid/Makefile libs/wine/Makefile libs/wpp/Makefile loader/Makefile programs/Makefile programs/avitools/Makefile programs/clock/Makefile programs/cmdlgtst/Makefile programs/control/Makefile programs/expand/Makefile programs/notepad/Makefile programs/osversioncheck/Makefile programs/progman/Makefile programs/regapi/Makefile programs/regedit/Makefile programs/regsvr32/Makefile programs/regtest/Makefile programs/rpcss/Makefile programs/rundll32/Makefile programs/start/Makefile programs/uninstaller/Makefile programs/view/Makefile programs/wcmd/Makefile programs/wineboot/Makefile programs/winecfg/Makefile programs/wineconsole/Makefile programs/winedbg/Makefile programs/winefile/Makefile programs/winemenubuilder/Makefile programs/winemine/Makefile programs/winepath/Makefile programs/winevdm/Makefile programs/winhelp/Makefile programs/winver/Makefile server/Makefile tools/Makefile tools/widl/Makefile tools/winapi/Makefile tools/winebuild/Makefile tools/winedump/Makefile tools/winegcc/Makefile tools/wmc/Makefile tools/wrc/Makefile"
17179
17180
17181 cat >confcache <<\_ACEOF
17182 # This file is a shell script that caches the results of configure
17183 # tests run on this system so they can be shared between configure
17184 # scripts and configure runs, see configure's option --config-cache.
17185 # It is not useful on other systems.  If it contains results you don't
17186 # want to keep, you may remove or edit it.
17187 #
17188 # config.status only pays attention to the cache file if you give it
17189 # the --recheck option to rerun configure.
17190 #
17191 # `ac_cv_env_foo' variables (set or unset) will be overridden when
17192 # loading this file, other *unset* `ac_cv_foo' will be assigned the
17193 # following values.
17194
17195 _ACEOF
17196
17197 # The following way of writing the cache mishandles newlines in values,
17198 # but we know of no workaround that is simple, portable, and efficient.
17199 # So, don't put newlines in cache variables' values.
17200 # Ultrix sh set writes to stderr and can't be redirected directly,
17201 # and sets the high bit in the cache file unless we assign to the vars.
17202 {
17203   (set) 2>&1 |
17204     case `(ac_space=' '; set | grep ac_space) 2>&1` in
17205     *ac_space=\ *)
17206       # `set' does not quote correctly, so add quotes (double-quote
17207       # substitution turns \\\\ into \\, and sed turns \\ into \).
17208       sed -n \
17209         "s/'/'\\\\''/g;
17210           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17211       ;;
17212     *)
17213       # `set' quotes correctly as required by POSIX, so do not add quotes.
17214       sed -n \
17215         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
17216       ;;
17217     esac;
17218 } |
17219   sed '
17220      t clear
17221      : clear
17222      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17223      t end
17224      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17225      : end' >>confcache
17226 if diff $cache_file confcache >/dev/null 2>&1; then :; else
17227   if test -w $cache_file; then
17228     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
17229     cat confcache >$cache_file
17230   else
17231     echo "not updating unwritable cache $cache_file"
17232   fi
17233 fi
17234 rm -f confcache
17235
17236 test "x$prefix" = xNONE && prefix=$ac_default_prefix
17237 # Let make expand exec_prefix.
17238 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
17239
17240 # VPATH may cause trouble with some makes, so we remove $(srcdir),
17241 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
17242 # trailing colons and then remove the whole line if VPATH becomes empty
17243 # (actually we leave an empty line to preserve line numbers).
17244 if test "x$srcdir" = x.; then
17245   ac_vpsub='/^[         ]*VPATH[        ]*=/{
17246 s/:*\$(srcdir):*/:/;
17247 s/:*\${srcdir}:*/:/;
17248 s/:*@srcdir@:*/:/;
17249 s/^\([^=]*=[    ]*\):*/\1/;
17250 s/:*$//;
17251 s/^[^=]*=[      ]*$//;
17252 }'
17253 fi
17254
17255 DEFS=-DHAVE_CONFIG_H
17256
17257 ac_libobjs=
17258 ac_ltlibobjs=
17259 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
17260   # 1. Remove the extension, and $U if already installed.
17261   ac_i=`echo "$ac_i" |
17262          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
17263   # 2. Add them.
17264   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
17265   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
17266 done
17267 LIBOBJS=$ac_libobjs
17268
17269 LTLIBOBJS=$ac_ltlibobjs
17270
17271
17272
17273 : ${CONFIG_STATUS=./config.status}
17274 ac_clean_files_save=$ac_clean_files
17275 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
17276 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
17277 echo "$as_me: creating $CONFIG_STATUS" >&6;}
17278 cat >$CONFIG_STATUS <<_ACEOF
17279 #! $SHELL
17280 # Generated by $as_me.
17281 # Run this file to recreate the current configuration.
17282 # Compiler output produced by configure, useful for debugging
17283 # configure, is in config.log if it exists.
17284
17285 debug=false
17286 ac_cs_recheck=false
17287 ac_cs_silent=false
17288 SHELL=\${CONFIG_SHELL-$SHELL}
17289 _ACEOF
17290
17291 cat >>$CONFIG_STATUS <<\_ACEOF
17292 ## --------------------- ##
17293 ## M4sh Initialization.  ##
17294 ## --------------------- ##
17295
17296 # Be Bourne compatible
17297 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17298   emulate sh
17299   NULLCMD=:
17300   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17301   # is contrary to our usage.  Disable this feature.
17302   alias -g '${1+"$@"}'='"$@"'
17303 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
17304   set -o posix
17305 fi
17306
17307 # Support unset when possible.
17308 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
17309   as_unset=unset
17310 else
17311   as_unset=false
17312 fi
17313
17314
17315 # Work around bugs in pre-3.0 UWIN ksh.
17316 $as_unset ENV MAIL MAILPATH
17317 PS1='$ '
17318 PS2='> '
17319 PS4='+ '
17320
17321 # NLS nuisances.
17322 for as_var in \
17323   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
17324   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
17325   LC_TELEPHONE LC_TIME
17326 do
17327   if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
17328     eval $as_var=C; export $as_var
17329   else
17330     $as_unset $as_var
17331   fi
17332 done
17333
17334 # Required to use basename.
17335 if expr a : '\(a\)' >/dev/null 2>&1; then
17336   as_expr=expr
17337 else
17338   as_expr=false
17339 fi
17340
17341 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
17342   as_basename=basename
17343 else
17344   as_basename=false
17345 fi
17346
17347
17348 # Name of the executable.
17349 as_me=`$as_basename "$0" ||
17350 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17351          X"$0" : 'X\(//\)$' \| \
17352          X"$0" : 'X\(/\)$' \| \
17353          .     : '\(.\)' 2>/dev/null ||
17354 echo X/"$0" |
17355     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
17356           /^X\/\(\/\/\)$/{ s//\1/; q; }
17357           /^X\/\(\/\).*/{ s//\1/; q; }
17358           s/.*/./; q'`
17359
17360
17361 # PATH needs CR, and LINENO needs CR and PATH.
17362 # Avoid depending upon Character Ranges.
17363 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17364 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17365 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17366 as_cr_digits='0123456789'
17367 as_cr_alnum=$as_cr_Letters$as_cr_digits
17368
17369 # The user is always right.
17370 if test "${PATH_SEPARATOR+set}" != set; then
17371   echo "#! /bin/sh" >conf$$.sh
17372   echo  "exit 0"   >>conf$$.sh
17373   chmod +x conf$$.sh
17374   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
17375     PATH_SEPARATOR=';'
17376   else
17377     PATH_SEPARATOR=:
17378   fi
17379   rm -f conf$$.sh
17380 fi
17381
17382
17383   as_lineno_1=$LINENO
17384   as_lineno_2=$LINENO
17385   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
17386   test "x$as_lineno_1" != "x$as_lineno_2" &&
17387   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
17388   # Find who we are.  Look in the path if we contain no path at all
17389   # relative or not.
17390   case $0 in
17391     *[\\/]* ) as_myself=$0 ;;
17392     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17393 for as_dir in $PATH
17394 do
17395   IFS=$as_save_IFS
17396   test -z "$as_dir" && as_dir=.
17397   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17398 done
17399
17400        ;;
17401   esac
17402   # We did not find ourselves, most probably we were run as `sh COMMAND'
17403   # in which case we are not to be found in the path.
17404   if test "x$as_myself" = x; then
17405     as_myself=$0
17406   fi
17407   if test ! -f "$as_myself"; then
17408     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
17409 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
17410    { (exit 1); exit 1; }; }
17411   fi
17412   case $CONFIG_SHELL in
17413   '')
17414     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17415 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
17416 do
17417   IFS=$as_save_IFS
17418   test -z "$as_dir" && as_dir=.
17419   for as_base in sh bash ksh sh5; do
17420          case $as_dir in
17421          /*)
17422            if ("$as_dir/$as_base" -c '
17423   as_lineno_1=$LINENO
17424   as_lineno_2=$LINENO
17425   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
17426   test "x$as_lineno_1" != "x$as_lineno_2" &&
17427   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
17428              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
17429              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
17430              CONFIG_SHELL=$as_dir/$as_base
17431              export CONFIG_SHELL
17432              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
17433            fi;;
17434          esac
17435        done
17436 done
17437 ;;
17438   esac
17439
17440   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
17441   # uniformly replaced by the line number.  The first 'sed' inserts a
17442   # line-number line before each line; the second 'sed' does the real
17443   # work.  The second script uses 'N' to pair each line-number line
17444   # with the numbered line, and appends trailing '-' during
17445   # substitution so that $LINENO is not a special case at line end.
17446   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
17447   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
17448   sed '=' <$as_myself |
17449     sed '
17450       N
17451       s,$,-,
17452       : loop
17453       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
17454       t loop
17455       s,-$,,
17456       s,^['$as_cr_digits']*\n,,
17457     ' >$as_me.lineno &&
17458   chmod +x $as_me.lineno ||
17459     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
17460 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
17461    { (exit 1); exit 1; }; }
17462
17463   # Don't try to exec as it changes $[0], causing all sort of problems
17464   # (the dirname of $[0] is not the place where we might find the
17465   # original and so on.  Autoconf is especially sensible to this).
17466   . ./$as_me.lineno
17467   # Exit status is that of the last command.
17468   exit
17469 }
17470
17471
17472 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
17473   *c*,-n*) ECHO_N= ECHO_C='
17474 ' ECHO_T='      ' ;;
17475   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
17476   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
17477 esac
17478
17479 if expr a : '\(a\)' >/dev/null 2>&1; then
17480   as_expr=expr
17481 else
17482   as_expr=false
17483 fi
17484
17485 rm -f conf$$ conf$$.exe conf$$.file
17486 echo >conf$$.file
17487 if ln -s conf$$.file conf$$ 2>/dev/null; then
17488   # We could just check for DJGPP; but this test a) works b) is more generic
17489   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
17490   if test -f conf$$.exe; then
17491     # Don't use ln at all; we don't have any links
17492     as_ln_s='cp -p'
17493   else
17494     as_ln_s='ln -s'
17495   fi
17496 elif ln conf$$.file conf$$ 2>/dev/null; then
17497   as_ln_s=ln
17498 else
17499   as_ln_s='cp -p'
17500 fi
17501 rm -f conf$$ conf$$.exe conf$$.file
17502
17503 if mkdir -p . 2>/dev/null; then
17504   as_mkdir_p=:
17505 else
17506   as_mkdir_p=false
17507 fi
17508
17509 as_executable_p="test -f"
17510
17511 # Sed expression to map a string onto a valid CPP name.
17512 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
17513
17514 # Sed expression to map a string onto a valid variable name.
17515 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
17516
17517
17518 # IFS
17519 # We need space, tab and new line, in precisely that order.
17520 as_nl='
17521 '
17522 IFS="   $as_nl"
17523
17524 # CDPATH.
17525 $as_unset CDPATH
17526
17527 exec 6>&1
17528
17529 # Open the log real soon, to keep \$[0] and so on meaningful, and to
17530 # report actual input values of CONFIG_FILES etc. instead of their
17531 # values after options handling.  Logging --version etc. is OK.
17532 exec 5>>config.log
17533 {
17534   echo
17535   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17536 ## Running $as_me. ##
17537 _ASBOX
17538 } >&5
17539 cat >&5 <<_CSEOF
17540
17541 This file was extended by Wine $as_me 20031016, which was
17542 generated by GNU Autoconf 2.57.  Invocation command line was
17543
17544   CONFIG_FILES    = $CONFIG_FILES
17545   CONFIG_HEADERS  = $CONFIG_HEADERS
17546   CONFIG_LINKS    = $CONFIG_LINKS
17547   CONFIG_COMMANDS = $CONFIG_COMMANDS
17548   $ $0 $@
17549
17550 _CSEOF
17551 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
17552 echo >&5
17553 _ACEOF
17554
17555 # Files that config.status was made for.
17556 if test -n "$ac_config_files"; then
17557   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
17558 fi
17559
17560 if test -n "$ac_config_headers"; then
17561   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
17562 fi
17563
17564 if test -n "$ac_config_links"; then
17565   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
17566 fi
17567
17568 if test -n "$ac_config_commands"; then
17569   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
17570 fi
17571
17572 cat >>$CONFIG_STATUS <<\_ACEOF
17573
17574 ac_cs_usage="\
17575 \`$as_me' instantiates files from templates according to the
17576 current configuration.
17577
17578 Usage: $0 [OPTIONS] [FILE]...
17579
17580   -h, --help       print this help, then exit
17581   -V, --version    print version number, then exit
17582   -q, --quiet      do not print progress messages
17583   -d, --debug      don't remove temporary files
17584       --recheck    update $as_me by reconfiguring in the same conditions
17585   --file=FILE[:TEMPLATE]
17586                    instantiate the configuration file FILE
17587   --header=FILE[:TEMPLATE]
17588                    instantiate the configuration header FILE
17589
17590 Configuration files:
17591 $config_files
17592
17593 Configuration headers:
17594 $config_headers
17595
17596 Configuration commands:
17597 $config_commands
17598
17599 Report bugs to <bug-autoconf@gnu.org>."
17600 _ACEOF
17601
17602 cat >>$CONFIG_STATUS <<_ACEOF
17603 ac_cs_version="\\
17604 Wine config.status 20031016
17605 configured by $0, generated by GNU Autoconf 2.57,
17606   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
17607
17608 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
17609 Free Software Foundation, Inc.
17610 This config.status script is free software; the Free Software Foundation
17611 gives unlimited permission to copy, distribute and modify it."
17612 srcdir=$srcdir
17613 INSTALL="$INSTALL"
17614 _ACEOF
17615
17616 cat >>$CONFIG_STATUS <<\_ACEOF
17617 # If no file are specified by the user, then we need to provide default
17618 # value.  By we need to know if files were specified by the user.
17619 ac_need_defaults=:
17620 while test $# != 0
17621 do
17622   case $1 in
17623   --*=*)
17624     ac_option=`expr "x$1" : 'x\([^=]*\)='`
17625     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
17626     ac_shift=:
17627     ;;
17628   -*)
17629     ac_option=$1
17630     ac_optarg=$2
17631     ac_shift=shift
17632     ;;
17633   *) # This is not an option, so the user has probably given explicit
17634      # arguments.
17635      ac_option=$1
17636      ac_need_defaults=false;;
17637   esac
17638
17639   case $ac_option in
17640   # Handling of the options.
17641 _ACEOF
17642 cat >>$CONFIG_STATUS <<\_ACEOF
17643   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17644     ac_cs_recheck=: ;;
17645   --version | --vers* | -V )
17646     echo "$ac_cs_version"; exit 0 ;;
17647   --he | --h)
17648     # Conflict between --help and --header
17649     { { echo "$as_me:$LINENO: error: ambiguous option: $1
17650 Try \`$0 --help' for more information." >&5
17651 echo "$as_me: error: ambiguous option: $1
17652 Try \`$0 --help' for more information." >&2;}
17653    { (exit 1); exit 1; }; };;
17654   --help | --hel | -h )
17655     echo "$ac_cs_usage"; exit 0 ;;
17656   --debug | --d* | -d )
17657     debug=: ;;
17658   --file | --fil | --fi | --f )
17659     $ac_shift
17660     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
17661     ac_need_defaults=false;;
17662   --header | --heade | --head | --hea )
17663     $ac_shift
17664     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
17665     ac_need_defaults=false;;
17666   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17667   | -silent | --silent | --silen | --sile | --sil | --si | --s)
17668     ac_cs_silent=: ;;
17669
17670   # This is an error.
17671   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
17672 Try \`$0 --help' for more information." >&5
17673 echo "$as_me: error: unrecognized option: $1
17674 Try \`$0 --help' for more information." >&2;}
17675    { (exit 1); exit 1; }; } ;;
17676
17677   *) ac_config_targets="$ac_config_targets $1" ;;
17678
17679   esac
17680   shift
17681 done
17682
17683 ac_configure_extra_args=
17684
17685 if $ac_cs_silent; then
17686   exec 6>/dev/null
17687   ac_configure_extra_args="$ac_configure_extra_args --silent"
17688 fi
17689
17690 _ACEOF
17691 cat >>$CONFIG_STATUS <<_ACEOF
17692 if \$ac_cs_recheck; then
17693   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
17694   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17695 fi
17696
17697 _ACEOF
17698
17699
17700
17701
17702
17703 cat >>$CONFIG_STATUS <<\_ACEOF
17704 for ac_config_target in $ac_config_targets
17705 do
17706   case "$ac_config_target" in
17707   # Handling of arguments.
17708   "Make.rules" ) CONFIG_FILES="$CONFIG_FILES Make.rules" ;;
17709   "dlls/Makedll.rules" ) CONFIG_FILES="$CONFIG_FILES dlls/Makedll.rules" ;;
17710   "dlls/Maketest.rules" ) CONFIG_FILES="$CONFIG_FILES dlls/Maketest.rules" ;;
17711   "libs/Makelib.rules" ) CONFIG_FILES="$CONFIG_FILES libs/Makelib.rules" ;;
17712   "programs/Makeprog.rules" ) CONFIG_FILES="$CONFIG_FILES programs/Makeprog.rules" ;;
17713   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
17714   "dlls/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/Makefile" ;;
17715   "dlls/advapi32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/advapi32/Makefile" ;;
17716   "dlls/advapi32/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/advapi32/tests/Makefile" ;;
17717   "dlls/avicap32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/avicap32/Makefile" ;;
17718   "dlls/avifil32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/avifil32/Makefile" ;;
17719   "dlls/cabinet/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/cabinet/Makefile" ;;
17720   "dlls/capi2032/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/capi2032/Makefile" ;;
17721   "dlls/cfgmgr32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/cfgmgr32/Makefile" ;;
17722   "dlls/comcat/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/comcat/Makefile" ;;
17723   "dlls/comctl32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/comctl32/Makefile" ;;
17724   "dlls/comctl32/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/comctl32/tests/Makefile" ;;
17725   "dlls/commdlg/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/commdlg/Makefile" ;;
17726   "dlls/crtdll/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/crtdll/Makefile" ;;
17727   "dlls/crypt32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/crypt32/Makefile" ;;
17728   "dlls/ctl3d/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ctl3d/Makefile" ;;
17729   "dlls/wined3d/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wined3d/Makefile" ;;
17730   "dlls/d3d8/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/d3d8/Makefile" ;;
17731   "dlls/d3d9/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/d3d9/Makefile" ;;
17732   "dlls/d3dim/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/d3dim/Makefile" ;;
17733   "dlls/d3dx8/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/d3dx8/Makefile" ;;
17734   "dlls/dciman32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dciman32/Makefile" ;;
17735   "dlls/ddraw/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ddraw/Makefile" ;;
17736   "dlls/ddraw/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ddraw/tests/Makefile" ;;
17737   "dlls/devenum/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/devenum/Makefile" ;;
17738   "dlls/dinput/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dinput/Makefile" ;;
17739   "dlls/dinput8/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dinput8/Makefile" ;;
17740   "dlls/dmband/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dmband/Makefile" ;;
17741   "dlls/dmcompos/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dmcompos/Makefile" ;;
17742   "dlls/dmime/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dmime/Makefile" ;;
17743   "dlls/dmloader/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dmloader/Makefile" ;;
17744   "dlls/dmscript/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dmscript/Makefile" ;;
17745   "dlls/dmstyle/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dmstyle/Makefile" ;;
17746   "dlls/dmsynth/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dmsynth/Makefile" ;;
17747   "dlls/dmusic/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dmusic/Makefile" ;;
17748   "dlls/dmusic32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dmusic32/Makefile" ;;
17749   "dlls/dplay/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dplay/Makefile" ;;
17750   "dlls/dplayx/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dplayx/Makefile" ;;
17751   "dlls/dpnhpast/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dpnhpast/Makefile" ;;
17752   "dlls/dsound/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dsound/Makefile" ;;
17753   "dlls/dsound/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dsound/tests/Makefile" ;;
17754   "dlls/gdi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/gdi/Makefile" ;;
17755   "dlls/gdi/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/gdi/tests/Makefile" ;;
17756   "dlls/glu32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/glu32/Makefile" ;;
17757   "dlls/icmp/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/icmp/Makefile" ;;
17758   "dlls/imagehlp/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/imagehlp/Makefile" ;;
17759   "dlls/imm32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/imm32/Makefile" ;;
17760   "dlls/iphlpapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/iphlpapi/Makefile" ;;
17761   "dlls/kernel/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/kernel/Makefile" ;;
17762   "dlls/kernel/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/kernel/tests/Makefile" ;;
17763   "dlls/lzexpand/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/lzexpand/Makefile" ;;
17764   "dlls/mapi32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/mapi32/Makefile" ;;
17765   "dlls/mpr/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/mpr/Makefile" ;;
17766   "dlls/msacm/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msacm/Makefile" ;;
17767   "dlls/msacm/imaadp32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msacm/imaadp32/Makefile" ;;
17768   "dlls/msacm/msadp32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msacm/msadp32/Makefile" ;;
17769   "dlls/msacm/msg711/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msacm/msg711/Makefile" ;;
17770   "dlls/msacm/winemp3/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msacm/winemp3/Makefile" ;;
17771   "dlls/msdmo/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msdmo/Makefile" ;;
17772   "dlls/mshtml/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/mshtml/Makefile" ;;
17773   "dlls/msi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msi/Makefile" ;;
17774   "dlls/msimg32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msimg32/Makefile" ;;
17775   "dlls/msisys/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msisys/Makefile" ;;
17776   "dlls/msnet32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msnet32/Makefile" ;;
17777   "dlls/msvcrt/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvcrt/Makefile" ;;
17778   "dlls/msvcrt/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvcrt/tests/Makefile" ;;
17779   "dlls/msvcrt20/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvcrt20/Makefile" ;;
17780   "dlls/msvcrtd/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvcrtd/Makefile" ;;
17781   "dlls/msvideo/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvideo/Makefile" ;;
17782   "dlls/msvideo/msrle32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvideo/msrle32/Makefile" ;;
17783   "dlls/mswsock/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/mswsock/Makefile" ;;
17784   "dlls/netapi32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/netapi32/Makefile" ;;
17785   "dlls/netapi32/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/netapi32/tests/Makefile" ;;
17786   "dlls/ntdll/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ntdll/Makefile" ;;
17787   "dlls/ntdll/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ntdll/tests/Makefile" ;;
17788   "dlls/odbc32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/odbc32/Makefile" ;;
17789   "dlls/ole32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ole32/Makefile" ;;
17790   "dlls/oleacc/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/oleacc/Makefile" ;;
17791   "dlls/oleaut32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/oleaut32/Makefile" ;;
17792   "dlls/oleaut32/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/oleaut32/tests/Makefile" ;;
17793   "dlls/olecli/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/olecli/Makefile" ;;
17794   "dlls/oledlg/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/oledlg/Makefile" ;;
17795   "dlls/olepro32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/olepro32/Makefile" ;;
17796   "dlls/olesvr/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/olesvr/Makefile" ;;
17797   "dlls/opengl32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/opengl32/Makefile" ;;
17798   "dlls/psapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/psapi/Makefile" ;;
17799   "dlls/qcap/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/qcap/Makefile" ;;
17800   "dlls/quartz/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/quartz/Makefile" ;;
17801   "dlls/rasapi32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/rasapi32/Makefile" ;;
17802   "dlls/richedit/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/richedit/Makefile" ;;
17803   "dlls/rpcrt4/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/rpcrt4/Makefile" ;;
17804   "dlls/rpcrt4/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/rpcrt4/tests/Makefile" ;;
17805   "dlls/serialui/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/serialui/Makefile" ;;
17806   "dlls/setupapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/setupapi/Makefile" ;;
17807   "dlls/shdocvw/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shdocvw/Makefile" ;;
17808   "dlls/shell32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shell32/Makefile" ;;
17809   "dlls/shell32/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shell32/tests/Makefile" ;;
17810   "dlls/shfolder/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shfolder/Makefile" ;;
17811   "dlls/shlwapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shlwapi/Makefile" ;;
17812   "dlls/shlwapi/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shlwapi/tests/Makefile" ;;
17813   "dlls/snmpapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/snmpapi/Makefile" ;;
17814   "dlls/sti/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/sti/Makefile" ;;
17815   "dlls/tapi32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/tapi32/Makefile" ;;
17816   "dlls/ttydrv/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ttydrv/Makefile" ;;
17817   "dlls/twain/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/twain/Makefile" ;;
17818   "dlls/url/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/url/Makefile" ;;
17819   "dlls/urlmon/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/urlmon/Makefile" ;;
17820   "dlls/urlmon/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/urlmon/tests/Makefile" ;;
17821   "dlls/user/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/user/Makefile" ;;
17822   "dlls/user/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/user/tests/Makefile" ;;
17823   "dlls/uxtheme/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/uxtheme/Makefile" ;;
17824   "dlls/version/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/version/Makefile" ;;
17825   "dlls/win32s/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/win32s/Makefile" ;;
17826   "dlls/winaspi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winaspi/Makefile" ;;
17827   "dlls/winedos/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winedos/Makefile" ;;
17828   "dlls/wineps/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wineps/Makefile" ;;
17829   "dlls/wininet/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wininet/Makefile" ;;
17830   "dlls/wininet/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wininet/tests/Makefile" ;;
17831   "dlls/winmm/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/Makefile" ;;
17832   "dlls/winmm/joystick/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/joystick/Makefile" ;;
17833   "dlls/winmm/mcianim/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/mcianim/Makefile" ;;
17834   "dlls/winmm/mciavi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/mciavi/Makefile" ;;
17835   "dlls/winmm/mcicda/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/mcicda/Makefile" ;;
17836   "dlls/winmm/mciseq/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/mciseq/Makefile" ;;
17837   "dlls/winmm/mciwave/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/mciwave/Makefile" ;;
17838   "dlls/winmm/midimap/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/midimap/Makefile" ;;
17839   "dlls/winmm/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/tests/Makefile" ;;
17840   "dlls/winmm/wavemap/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/wavemap/Makefile" ;;
17841   "dlls/winmm/winealsa/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/winealsa/Makefile" ;;
17842   "dlls/winmm/winearts/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/winearts/Makefile" ;;
17843   "dlls/winmm/wineaudioio/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/wineaudioio/Makefile" ;;
17844   "dlls/winmm/winenas/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/winenas/Makefile" ;;
17845   "dlls/winmm/winejack/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/winejack/Makefile" ;;
17846   "dlls/winmm/wineoss/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/wineoss/Makefile" ;;
17847   "dlls/winnls/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winnls/Makefile" ;;
17848   "dlls/winsock/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winsock/Makefile" ;;
17849   "dlls/winsock/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winsock/tests/Makefile" ;;
17850   "dlls/winspool/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winspool/Makefile" ;;
17851   "dlls/winspool/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winspool/tests/Makefile" ;;
17852   "dlls/wintab32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wintab32/Makefile" ;;
17853   "dlls/wintrust/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wintrust/Makefile" ;;
17854   "dlls/wow32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wow32/Makefile" ;;
17855   "dlls/wsock32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wsock32/Makefile" ;;
17856   "dlls/x11drv/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/x11drv/Makefile" ;;
17857   "documentation/Makefile" ) CONFIG_FILES="$CONFIG_FILES documentation/Makefile" ;;
17858   "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
17859   "libs/Makefile" ) CONFIG_FILES="$CONFIG_FILES libs/Makefile" ;;
17860   "libs/port/Makefile" ) CONFIG_FILES="$CONFIG_FILES libs/port/Makefile" ;;
17861   "libs/unicode/Makefile" ) CONFIG_FILES="$CONFIG_FILES libs/unicode/Makefile" ;;
17862   "libs/uuid/Makefile" ) CONFIG_FILES="$CONFIG_FILES libs/uuid/Makefile" ;;
17863   "libs/wine/Makefile" ) CONFIG_FILES="$CONFIG_FILES libs/wine/Makefile" ;;
17864   "libs/wpp/Makefile" ) CONFIG_FILES="$CONFIG_FILES libs/wpp/Makefile" ;;
17865   "loader/Makefile" ) CONFIG_FILES="$CONFIG_FILES loader/Makefile" ;;
17866   "programs/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/Makefile" ;;
17867   "programs/avitools/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/avitools/Makefile" ;;
17868   "programs/clock/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/clock/Makefile" ;;
17869   "programs/cmdlgtst/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/cmdlgtst/Makefile" ;;
17870   "programs/control/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/control/Makefile" ;;
17871   "programs/expand/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/expand/Makefile" ;;
17872   "programs/notepad/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/notepad/Makefile" ;;
17873   "programs/osversioncheck/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/osversioncheck/Makefile" ;;
17874   "programs/progman/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/progman/Makefile" ;;
17875   "programs/regapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/regapi/Makefile" ;;
17876   "programs/regedit/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/regedit/Makefile" ;;
17877   "programs/regsvr32/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/regsvr32/Makefile" ;;
17878   "programs/regtest/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/regtest/Makefile" ;;
17879   "programs/rpcss/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/rpcss/Makefile" ;;
17880   "programs/rundll32/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/rundll32/Makefile" ;;
17881   "programs/start/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/start/Makefile" ;;
17882   "programs/uninstaller/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/uninstaller/Makefile" ;;
17883   "programs/view/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/view/Makefile" ;;
17884   "programs/wcmd/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/wcmd/Makefile" ;;
17885   "programs/wineboot/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/wineboot/Makefile" ;;
17886   "programs/winecfg/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winecfg/Makefile" ;;
17887   "programs/wineconsole/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/wineconsole/Makefile" ;;
17888   "programs/winedbg/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winedbg/Makefile" ;;
17889   "programs/winefile/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winefile/Makefile" ;;
17890   "programs/winemenubuilder/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winemenubuilder/Makefile" ;;
17891   "programs/winemine/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winemine/Makefile" ;;
17892   "programs/winepath/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winepath/Makefile" ;;
17893   "programs/winevdm/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winevdm/Makefile" ;;
17894   "programs/winhelp/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winhelp/Makefile" ;;
17895   "programs/winver/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winver/Makefile" ;;
17896   "server/Makefile" ) CONFIG_FILES="$CONFIG_FILES server/Makefile" ;;
17897   "tools/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
17898   "tools/widl/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/widl/Makefile" ;;
17899   "tools/winapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/winapi/Makefile" ;;
17900   "tools/winebuild/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/winebuild/Makefile" ;;
17901   "tools/winedump/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/winedump/Makefile" ;;
17902   "tools/winegcc/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/winegcc/Makefile" ;;
17903   "tools/wmc/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/wmc/Makefile" ;;
17904   "tools/wrc/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/wrc/Makefile" ;;
17905   "controls" ) CONFIG_COMMANDS="$CONFIG_COMMANDS controls" ;;
17906   "dlls/ddraw/d3ddevice" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/d3ddevice" ;;
17907   "dlls/ddraw/dclipper" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/dclipper" ;;
17908   "dlls/ddraw/ddraw" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/ddraw" ;;
17909   "dlls/ddraw/direct3d" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/direct3d" ;;
17910   "dlls/ddraw/dpalette" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/dpalette" ;;
17911   "dlls/ddraw/dsurface" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/dsurface" ;;
17912   "dlls/dinput/joystick" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/dinput/joystick" ;;
17913   "dlls/dinput/keyboard" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/dinput/keyboard" ;;
17914   "dlls/dinput/mouse" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/dinput/mouse" ;;
17915   "dlls/gdi/enhmfdrv" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/gdi/enhmfdrv" ;;
17916   "dlls/gdi/mfdrv" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/gdi/mfdrv" ;;
17917   "dlls/kernel/messages" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/kernel/messages" ;;
17918   "dlls/user/dde" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/user/dde" ;;
17919   "dlls/user/resources" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/user/resources" ;;
17920   "dlls/wineps/data" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/wineps/data" ;;
17921   "files" ) CONFIG_COMMANDS="$CONFIG_COMMANDS files" ;;
17922   "graphics" ) CONFIG_COMMANDS="$CONFIG_COMMANDS graphics" ;;
17923   "graphics/x11drv" ) CONFIG_COMMANDS="$CONFIG_COMMANDS graphics/x11drv" ;;
17924   "include/wine" ) CONFIG_COMMANDS="$CONFIG_COMMANDS include/wine" ;;
17925   "misc" ) CONFIG_COMMANDS="$CONFIG_COMMANDS misc" ;;
17926   "objects" ) CONFIG_COMMANDS="$CONFIG_COMMANDS objects" ;;
17927   "programs/regapi/tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS programs/regapi/tests" ;;
17928   "programs/regedit/tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS programs/regedit/tests" ;;
17929   "windows" ) CONFIG_COMMANDS="$CONFIG_COMMANDS windows" ;;
17930   "include/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
17931   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
17932 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
17933    { (exit 1); exit 1; }; };;
17934   esac
17935 done
17936
17937 # If the user did not use the arguments to specify the items to instantiate,
17938 # then the envvar interface is used.  Set only those that are not.
17939 # We use the long form for the default assignment because of an extremely
17940 # bizarre bug on SunOS 4.1.3.
17941 if $ac_need_defaults; then
17942   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
17943   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
17944   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
17945 fi
17946
17947 # Have a temporary directory for convenience.  Make it in the build tree
17948 # simply because there is no reason to put it here, and in addition,
17949 # creating and moving files from /tmp can sometimes cause problems.
17950 # Create a temporary directory, and hook for its removal unless debugging.
17951 $debug ||
17952 {
17953   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
17954   trap '{ (exit 1); exit 1; }' 1 2 13 15
17955 }
17956
17957 # Create a (secure) tmp directory for tmp files.
17958
17959 {
17960   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
17961   test -n "$tmp" && test -d "$tmp"
17962 }  ||
17963 {
17964   tmp=./confstat$$-$RANDOM
17965   (umask 077 && mkdir $tmp)
17966 } ||
17967 {
17968    echo "$me: cannot create a temporary directory in ." >&2
17969    { (exit 1); exit 1; }
17970 }
17971
17972 _ACEOF
17973
17974 cat >>$CONFIG_STATUS <<_ACEOF
17975
17976 #
17977 # CONFIG_FILES section.
17978 #
17979
17980 # No need to generate the scripts if there are no CONFIG_FILES.
17981 # This happens for instance when ./config.status config.h
17982 if test -n "\$CONFIG_FILES"; then
17983   # Protect against being on the right side of a sed subst in config.status.
17984   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
17985    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
17986 s,@SHELL@,$SHELL,;t t
17987 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
17988 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
17989 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
17990 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
17991 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
17992 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
17993 s,@exec_prefix@,$exec_prefix,;t t
17994 s,@prefix@,$prefix,;t t
17995 s,@program_transform_name@,$program_transform_name,;t t
17996 s,@bindir@,$bindir,;t t
17997 s,@sbindir@,$sbindir,;t t
17998 s,@libexecdir@,$libexecdir,;t t
17999 s,@datadir@,$datadir,;t t
18000 s,@sysconfdir@,$sysconfdir,;t t
18001 s,@sharedstatedir@,$sharedstatedir,;t t
18002 s,@localstatedir@,$localstatedir,;t t
18003 s,@libdir@,$libdir,;t t
18004 s,@includedir@,$includedir,;t t
18005 s,@oldincludedir@,$oldincludedir,;t t
18006 s,@infodir@,$infodir,;t t
18007 s,@mandir@,$mandir,;t t
18008 s,@build_alias@,$build_alias,;t t
18009 s,@host_alias@,$host_alias,;t t
18010 s,@target_alias@,$target_alias,;t t
18011 s,@DEFS@,$DEFS,;t t
18012 s,@ECHO_C@,$ECHO_C,;t t
18013 s,@ECHO_N@,$ECHO_N,;t t
18014 s,@ECHO_T@,$ECHO_T,;t t
18015 s,@LIBS@,$LIBS,;t t
18016 s,@WIN16_FILES@,$WIN16_FILES,;t t
18017 s,@WIN16_INSTALL@,$WIN16_INSTALL,;t t
18018 s,@build@,$build,;t t
18019 s,@build_cpu@,$build_cpu,;t t
18020 s,@build_vendor@,$build_vendor,;t t
18021 s,@build_os@,$build_os,;t t
18022 s,@host@,$host,;t t
18023 s,@host_cpu@,$host_cpu,;t t
18024 s,@host_vendor@,$host_vendor,;t t
18025 s,@host_os@,$host_os,;t t
18026 s,@SET_MAKE@,$SET_MAKE,;t t
18027 s,@CC@,$CC,;t t
18028 s,@CFLAGS@,$CFLAGS,;t t
18029 s,@LDFLAGS@,$LDFLAGS,;t t
18030 s,@CPPFLAGS@,$CPPFLAGS,;t t
18031 s,@ac_ct_CC@,$ac_ct_CC,;t t
18032 s,@EXEEXT@,$EXEEXT,;t t
18033 s,@OBJEXT@,$OBJEXT,;t t
18034 s,@CPP@,$CPP,;t t
18035 s,@TOOLSDIR@,$TOOLSDIR,;t t
18036 s,@X_CFLAGS@,$X_CFLAGS,;t t
18037 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
18038 s,@X_LIBS@,$X_LIBS,;t t
18039 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
18040 s,@YACC@,$YACC,;t t
18041 s,@LEX@,$LEX,;t t
18042 s,@LEXLIB@,$LEXLIB,;t t
18043 s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
18044 s,@XYACC@,$XYACC,;t t
18045 s,@XLEX@,$XLEX,;t t
18046 s,@AS@,$AS,;t t
18047 s,@ac_ct_AS@,$ac_ct_AS,;t t
18048 s,@LD@,$LD,;t t
18049 s,@ac_ct_LD@,$ac_ct_LD,;t t
18050 s,@AR@,$AR,;t t
18051 s,@ac_ct_AR@,$ac_ct_AR,;t t
18052 s,@RANLIB@,$RANLIB,;t t
18053 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
18054 s,@STRIP@,$STRIP,;t t
18055 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
18056 s,@WINDRES@,$WINDRES,;t t
18057 s,@ac_ct_WINDRES@,$ac_ct_WINDRES,;t t
18058 s,@LN_S@,$LN_S,;t t
18059 s,@LN@,$LN,;t t
18060 s,@LDCONFIG@,$LDCONFIG,;t t
18061 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
18062 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
18063 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
18064 s,@LINT@,$LINT,;t t
18065 s,@LINTFLAGS@,$LINTFLAGS,;t t
18066 s,@DB2HTML@,$DB2HTML,;t t
18067 s,@DB2PDF@,$DB2PDF,;t t
18068 s,@DB2PS@,$DB2PS,;t t
18069 s,@DB2TXT@,$DB2TXT,;t t
18070 s,@LIBPTHREAD@,$LIBPTHREAD,;t t
18071 s,@JPEGLIB@,$JPEGLIB,;t t
18072 s,@EGREP@,$EGREP,;t t
18073 s,@GIFLIB@,$GIFLIB,;t t
18074 s,@XLIB@,$XLIB,;t t
18075 s,@XFILES@,$XFILES,;t t
18076 s,@OPENGLFILES@,$OPENGLFILES,;t t
18077 s,@GLU32FILES@,$GLU32FILES,;t t
18078 s,@OPENGL_LIBS@,$OPENGL_LIBS,;t t
18079 s,@NASLIBS@,$NASLIBS,;t t
18080 s,@CURSESLIBS@,$CURSESLIBS,;t t
18081 s,@sane_devel@,$sane_devel,;t t
18082 s,@SANELIBS@,$SANELIBS,;t t
18083 s,@SANEINCL@,$SANEINCL,;t t
18084 s,@ICULIBS@,$ICULIBS,;t t
18085 s,@ft_devel@,$ft_devel,;t t
18086 s,@ft_devel2@,$ft_devel2,;t t
18087 s,@FREETYPEINCL@,$FREETYPEINCL,;t t
18088 s,@ARTSCCONFIG@,$ARTSCCONFIG,;t t
18089 s,@ARTSLIBS@,$ARTSLIBS,;t t
18090 s,@ARTSINCL@,$ARTSINCL,;t t
18091 s,@ALSALIBS@,$ALSALIBS,;t t
18092 s,@AUDIOIOLIBS@,$AUDIOIOLIBS,;t t
18093 s,@CAPI4LINUXLIBS@,$CAPI4LINUXLIBS,;t t
18094 s,@EXTRACFLAGS@,$EXTRACFLAGS,;t t
18095 s,@DLLEXT@,$DLLEXT,;t t
18096 s,@DLLFLAGS@,$DLLFLAGS,;t t
18097 s,@DLLIBS@,$DLLIBS,;t t
18098 s,@LDSHARED@,$LDSHARED,;t t
18099 s,@LDDLL@,$LDDLL,;t t
18100 s,@LIBEXT@,$LIBEXT,;t t
18101 s,@IMPLIBEXT@,$IMPLIBEXT,;t t
18102 s,@DLLTOOL@,$DLLTOOL,;t t
18103 s,@ac_ct_DLLTOOL@,$ac_ct_DLLTOOL,;t t
18104 s,@DLLWRAP@,$DLLWRAP,;t t
18105 s,@ac_ct_DLLWRAP@,$ac_ct_DLLWRAP,;t t
18106 s,@LDEXECFLAGS@,$LDEXECFLAGS,;t t
18107 s,@CROSSTEST@,$CROSSTEST,;t t
18108 s,@CROSSCC@,$CROSSCC,;t t
18109 s,@CROSSWINDRES@,$CROSSWINDRES,;t t
18110 s,@LDPATH@,$LDPATH,;t t
18111 s,@CRTLIBS@,$CRTLIBS,;t t
18112 s,@WINE_BINARIES@,$WINE_BINARIES,;t t
18113 s,@MAIN_BINARY@,$MAIN_BINARY,;t t
18114 s,@LDD@,$LDD,;t t
18115 s,@ALLOCA@,$ALLOCA,;t t
18116 s,@LIBOBJS@,$LIBOBJS,;t t
18117 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
18118 /@MAKE_RULES@/r $MAKE_RULES
18119 s,@MAKE_RULES@,,;t t
18120 /@MAKE_DLL_RULES@/r $MAKE_DLL_RULES
18121 s,@MAKE_DLL_RULES@,,;t t
18122 /@MAKE_TEST_RULES@/r $MAKE_TEST_RULES
18123 s,@MAKE_TEST_RULES@,,;t t
18124 /@MAKE_LIB_RULES@/r $MAKE_LIB_RULES
18125 s,@MAKE_LIB_RULES@,,;t t
18126 /@MAKE_PROG_RULES@/r $MAKE_PROG_RULES
18127 s,@MAKE_PROG_RULES@,,;t t
18128 CEOF
18129
18130 _ACEOF
18131
18132   cat >>$CONFIG_STATUS <<\_ACEOF
18133   # Split the substitutions into bite-sized pieces for seds with
18134   # small command number limits, like on Digital OSF/1 and HP-UX.
18135   ac_max_sed_lines=48
18136   ac_sed_frag=1 # Number of current file.
18137   ac_beg=1 # First line for current file.
18138   ac_end=$ac_max_sed_lines # Line after last line for current file.
18139   ac_more_lines=:
18140   ac_sed_cmds=
18141   while $ac_more_lines; do
18142     if test $ac_beg -gt 1; then
18143       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
18144     else
18145       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
18146     fi
18147     if test ! -s $tmp/subs.frag; then
18148       ac_more_lines=false
18149     else
18150       # The purpose of the label and of the branching condition is to
18151       # speed up the sed processing (if there are no `@' at all, there
18152       # is no need to browse any of the substitutions).
18153       # These are the two extra sed commands mentioned above.
18154       (echo ':t
18155   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
18156       if test -z "$ac_sed_cmds"; then
18157         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
18158       else
18159         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
18160       fi
18161       ac_sed_frag=`expr $ac_sed_frag + 1`
18162       ac_beg=$ac_end
18163       ac_end=`expr $ac_end + $ac_max_sed_lines`
18164     fi
18165   done
18166   if test -z "$ac_sed_cmds"; then
18167     ac_sed_cmds=cat
18168   fi
18169 fi # test -n "$CONFIG_FILES"
18170
18171 _ACEOF
18172 cat >>$CONFIG_STATUS <<\_ACEOF
18173 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
18174   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
18175   case $ac_file in
18176   - | *:- | *:-:* ) # input from stdin
18177         cat >$tmp/stdin
18178         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
18179         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
18180   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
18181         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
18182   * )   ac_file_in=$ac_file.in ;;
18183   esac
18184
18185   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
18186   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
18187 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18188          X"$ac_file" : 'X\(//\)[^/]' \| \
18189          X"$ac_file" : 'X\(//\)$' \| \
18190          X"$ac_file" : 'X\(/\)' \| \
18191          .     : '\(.\)' 2>/dev/null ||
18192 echo X"$ac_file" |
18193     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18194           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18195           /^X\(\/\/\)$/{ s//\1/; q; }
18196           /^X\(\/\).*/{ s//\1/; q; }
18197           s/.*/./; q'`
18198   { if $as_mkdir_p; then
18199     mkdir -p "$ac_dir"
18200   else
18201     as_dir="$ac_dir"
18202     as_dirs=
18203     while test ! -d "$as_dir"; do
18204       as_dirs="$as_dir $as_dirs"
18205       as_dir=`(dirname "$as_dir") 2>/dev/null ||
18206 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18207          X"$as_dir" : 'X\(//\)[^/]' \| \
18208          X"$as_dir" : 'X\(//\)$' \| \
18209          X"$as_dir" : 'X\(/\)' \| \
18210          .     : '\(.\)' 2>/dev/null ||
18211 echo X"$as_dir" |
18212     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18213           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18214           /^X\(\/\/\)$/{ s//\1/; q; }
18215           /^X\(\/\).*/{ s//\1/; q; }
18216           s/.*/./; q'`
18217     done
18218     test ! -n "$as_dirs" || mkdir $as_dirs
18219   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
18220 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
18221    { (exit 1); exit 1; }; }; }
18222
18223   ac_builddir=.
18224
18225 if test "$ac_dir" != .; then
18226   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
18227   # A "../" for each directory in $ac_dir_suffix.
18228   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
18229 else
18230   ac_dir_suffix= ac_top_builddir=
18231 fi
18232
18233 case $srcdir in
18234   .)  # No --srcdir option.  We are building in place.
18235     ac_srcdir=.
18236     if test -z "$ac_top_builddir"; then
18237        ac_top_srcdir=.
18238     else
18239        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
18240     fi ;;
18241   [\\/]* | ?:[\\/]* )  # Absolute path.
18242     ac_srcdir=$srcdir$ac_dir_suffix;
18243     ac_top_srcdir=$srcdir ;;
18244   *) # Relative path.
18245     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
18246     ac_top_srcdir=$ac_top_builddir$srcdir ;;
18247 esac
18248 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
18249 # absolute.
18250 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
18251 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
18252 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
18253 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
18254
18255
18256   case $INSTALL in
18257   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
18258   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
18259   esac
18260
18261   if test x"$ac_file" != x-; then
18262     { echo "$as_me:$LINENO: creating $ac_file" >&5
18263 echo "$as_me: creating $ac_file" >&6;}
18264     rm -f "$ac_file"
18265   fi
18266   # Let's still pretend it is `configure' which instantiates (i.e., don't
18267   # use $as_me), people would be surprised to read:
18268   #    /* config.h.  Generated by config.status.  */
18269   if test x"$ac_file" = x-; then
18270     configure_input=
18271   else
18272     configure_input="$ac_file.  "
18273   fi
18274   configure_input=$configure_input"Generated from `echo $ac_file_in |
18275                                      sed 's,.*/,,'` by configure."
18276
18277   # First look for the input files in the build tree, otherwise in the
18278   # src tree.
18279   ac_file_inputs=`IFS=:
18280     for f in $ac_file_in; do
18281       case $f in
18282       -) echo $tmp/stdin ;;
18283       [\\/$]*)
18284          # Absolute (can't be DOS-style, as IFS=:)
18285          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
18286 echo "$as_me: error: cannot find input file: $f" >&2;}
18287    { (exit 1); exit 1; }; }
18288          echo $f;;
18289       *) # Relative
18290          if test -f "$f"; then
18291            # Build tree
18292            echo $f
18293          elif test -f "$srcdir/$f"; then
18294            # Source tree
18295            echo $srcdir/$f
18296          else
18297            # /dev/null tree
18298            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
18299 echo "$as_me: error: cannot find input file: $f" >&2;}
18300    { (exit 1); exit 1; }; }
18301          fi;;
18302       esac
18303     done` || { (exit 1); exit 1; }
18304 _ACEOF
18305 cat >>$CONFIG_STATUS <<_ACEOF
18306   sed "$ac_vpsub
18307 $extrasub
18308 _ACEOF
18309 cat >>$CONFIG_STATUS <<\_ACEOF
18310 :t
18311 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18312 s,@configure_input@,$configure_input,;t t
18313 s,@srcdir@,$ac_srcdir,;t t
18314 s,@abs_srcdir@,$ac_abs_srcdir,;t t
18315 s,@top_srcdir@,$ac_top_srcdir,;t t
18316 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
18317 s,@builddir@,$ac_builddir,;t t
18318 s,@abs_builddir@,$ac_abs_builddir,;t t
18319 s,@top_builddir@,$ac_top_builddir,;t t
18320 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
18321 s,@INSTALL@,$ac_INSTALL,;t t
18322 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
18323   rm -f $tmp/stdin
18324   if test x"$ac_file" != x-; then
18325     mv $tmp/out $ac_file
18326   else
18327     cat $tmp/out
18328     rm -f $tmp/out
18329   fi
18330
18331 done
18332 _ACEOF
18333 cat >>$CONFIG_STATUS <<\_ACEOF
18334
18335 #
18336 # CONFIG_HEADER section.
18337 #
18338
18339 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
18340 # NAME is the cpp macro being defined and VALUE is the value it is being given.
18341 #
18342 # ac_d sets the value in "#define NAME VALUE" lines.
18343 ac_dA='s,^\([   ]*\)#\([        ]*define[       ][      ]*\)'
18344 ac_dB='[        ].*$,\1#\2'
18345 ac_dC=' '
18346 ac_dD=',;t'
18347 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
18348 ac_uA='s,^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
18349 ac_uB='$,\1#\2define\3'
18350 ac_uC=' '
18351 ac_uD=',;t'
18352
18353 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
18354   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
18355   case $ac_file in
18356   - | *:- | *:-:* ) # input from stdin
18357         cat >$tmp/stdin
18358         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
18359         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
18360   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
18361         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
18362   * )   ac_file_in=$ac_file.in ;;
18363   esac
18364
18365   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
18366 echo "$as_me: creating $ac_file" >&6;}
18367
18368   # First look for the input files in the build tree, otherwise in the
18369   # src tree.
18370   ac_file_inputs=`IFS=:
18371     for f in $ac_file_in; do
18372       case $f in
18373       -) echo $tmp/stdin ;;
18374       [\\/$]*)
18375          # Absolute (can't be DOS-style, as IFS=:)
18376          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
18377 echo "$as_me: error: cannot find input file: $f" >&2;}
18378    { (exit 1); exit 1; }; }
18379          echo $f;;
18380       *) # Relative
18381          if test -f "$f"; then
18382            # Build tree
18383            echo $f
18384          elif test -f "$srcdir/$f"; then
18385            # Source tree
18386            echo $srcdir/$f
18387          else
18388            # /dev/null tree
18389            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
18390 echo "$as_me: error: cannot find input file: $f" >&2;}
18391    { (exit 1); exit 1; }; }
18392          fi;;
18393       esac
18394     done` || { (exit 1); exit 1; }
18395   # Remove the trailing spaces.
18396   sed 's/[      ]*$//' $ac_file_inputs >$tmp/in
18397
18398 _ACEOF
18399
18400 # Transform confdefs.h into two sed scripts, `conftest.defines' and
18401 # `conftest.undefs', that substitutes the proper values into
18402 # config.h.in to produce config.h.  The first handles `#define'
18403 # templates, and the second `#undef' templates.
18404 # And first: Protect against being on the right side of a sed subst in
18405 # config.status.  Protect against being in an unquoted here document
18406 # in config.status.
18407 rm -f conftest.defines conftest.undefs
18408 # Using a here document instead of a string reduces the quoting nightmare.
18409 # Putting comments in sed scripts is not portable.
18410 #
18411 # `end' is used to avoid that the second main sed command (meant for
18412 # 0-ary CPP macros) applies to n-ary macro definitions.
18413 # See the Autoconf documentation for `clear'.
18414 cat >confdef2sed.sed <<\_ACEOF
18415 s/[\\&,]/\\&/g
18416 s,[\\$`],\\&,g
18417 t clear
18418 : clear
18419 s,^[    ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
18420 t end
18421 s,^[    ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
18422 : end
18423 _ACEOF
18424 # If some macros were called several times there might be several times
18425 # the same #defines, which is useless.  Nevertheless, we may not want to
18426 # sort them, since we want the *last* AC-DEFINE to be honored.
18427 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
18428 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
18429 rm -f confdef2sed.sed
18430
18431 # This sed command replaces #undef with comments.  This is necessary, for
18432 # example, in the case of _POSIX_SOURCE, which is predefined and required
18433 # on some systems where configure will not decide to define it.
18434 cat >>conftest.undefs <<\_ACEOF
18435 s,^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
18436 _ACEOF
18437
18438 # Break up conftest.defines because some shells have a limit on the size
18439 # of here documents, and old seds have small limits too (100 cmds).
18440 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
18441 echo '  if grep "^[     ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
18442 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
18443 echo '  :' >>$CONFIG_STATUS
18444 rm -f conftest.tail
18445 while grep . conftest.defines >/dev/null
18446 do
18447   # Write a limited-size here document to $tmp/defines.sed.
18448   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
18449   # Speed up: don't consider the non `#define' lines.
18450   echo '/^[     ]*#[    ]*define/!b' >>$CONFIG_STATUS
18451   # Work around the forget-to-reset-the-flag bug.
18452   echo 't clr' >>$CONFIG_STATUS
18453   echo ': clr' >>$CONFIG_STATUS
18454   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
18455   echo 'CEOF
18456   sed -f $tmp/defines.sed $tmp/in >$tmp/out
18457   rm -f $tmp/in
18458   mv $tmp/out $tmp/in
18459 ' >>$CONFIG_STATUS
18460   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
18461   rm -f conftest.defines
18462   mv conftest.tail conftest.defines
18463 done
18464 rm -f conftest.defines
18465 echo '  fi # grep' >>$CONFIG_STATUS
18466 echo >>$CONFIG_STATUS
18467
18468 # Break up conftest.undefs because some shells have a limit on the size
18469 # of here documents, and old seds have small limits too (100 cmds).
18470 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
18471 rm -f conftest.tail
18472 while grep . conftest.undefs >/dev/null
18473 do
18474   # Write a limited-size here document to $tmp/undefs.sed.
18475   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
18476   # Speed up: don't consider the non `#undef'
18477   echo '/^[     ]*#[    ]*undef/!b' >>$CONFIG_STATUS
18478   # Work around the forget-to-reset-the-flag bug.
18479   echo 't clr' >>$CONFIG_STATUS
18480   echo ': clr' >>$CONFIG_STATUS
18481   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
18482   echo 'CEOF
18483   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
18484   rm -f $tmp/in
18485   mv $tmp/out $tmp/in
18486 ' >>$CONFIG_STATUS
18487   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
18488   rm -f conftest.undefs
18489   mv conftest.tail conftest.undefs
18490 done
18491 rm -f conftest.undefs
18492
18493 cat >>$CONFIG_STATUS <<\_ACEOF
18494   # Let's still pretend it is `configure' which instantiates (i.e., don't
18495   # use $as_me), people would be surprised to read:
18496   #    /* config.h.  Generated by config.status.  */
18497   if test x"$ac_file" = x-; then
18498     echo "/* Generated by configure.  */" >$tmp/config.h
18499   else
18500     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
18501   fi
18502   cat $tmp/in >>$tmp/config.h
18503   rm -f $tmp/in
18504   if test x"$ac_file" != x-; then
18505     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
18506       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
18507 echo "$as_me: $ac_file is unchanged" >&6;}
18508     else
18509       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
18510 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18511          X"$ac_file" : 'X\(//\)[^/]' \| \
18512          X"$ac_file" : 'X\(//\)$' \| \
18513          X"$ac_file" : 'X\(/\)' \| \
18514          .     : '\(.\)' 2>/dev/null ||
18515 echo X"$ac_file" |
18516     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18517           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18518           /^X\(\/\/\)$/{ s//\1/; q; }
18519           /^X\(\/\).*/{ s//\1/; q; }
18520           s/.*/./; q'`
18521       { if $as_mkdir_p; then
18522     mkdir -p "$ac_dir"
18523   else
18524     as_dir="$ac_dir"
18525     as_dirs=
18526     while test ! -d "$as_dir"; do
18527       as_dirs="$as_dir $as_dirs"
18528       as_dir=`(dirname "$as_dir") 2>/dev/null ||
18529 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18530          X"$as_dir" : 'X\(//\)[^/]' \| \
18531          X"$as_dir" : 'X\(//\)$' \| \
18532          X"$as_dir" : 'X\(/\)' \| \
18533          .     : '\(.\)' 2>/dev/null ||
18534 echo X"$as_dir" |
18535     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18536           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18537           /^X\(\/\/\)$/{ s//\1/; q; }
18538           /^X\(\/\).*/{ s//\1/; q; }
18539           s/.*/./; q'`
18540     done
18541     test ! -n "$as_dirs" || mkdir $as_dirs
18542   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
18543 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
18544    { (exit 1); exit 1; }; }; }
18545
18546       rm -f $ac_file
18547       mv $tmp/config.h $ac_file
18548     fi
18549   else
18550     cat $tmp/config.h
18551     rm -f $tmp/config.h
18552   fi
18553 done
18554 _ACEOF
18555 cat >>$CONFIG_STATUS <<\_ACEOF
18556
18557 #
18558 # CONFIG_COMMANDS section.
18559 #
18560 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
18561   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
18562   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
18563   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
18564 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18565          X"$ac_dest" : 'X\(//\)[^/]' \| \
18566          X"$ac_dest" : 'X\(//\)$' \| \
18567          X"$ac_dest" : 'X\(/\)' \| \
18568          .     : '\(.\)' 2>/dev/null ||
18569 echo X"$ac_dest" |
18570     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18571           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18572           /^X\(\/\/\)$/{ s//\1/; q; }
18573           /^X\(\/\).*/{ s//\1/; q; }
18574           s/.*/./; q'`
18575   ac_builddir=.
18576
18577 if test "$ac_dir" != .; then
18578   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
18579   # A "../" for each directory in $ac_dir_suffix.
18580   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
18581 else
18582   ac_dir_suffix= ac_top_builddir=
18583 fi
18584
18585 case $srcdir in
18586   .)  # No --srcdir option.  We are building in place.
18587     ac_srcdir=.
18588     if test -z "$ac_top_builddir"; then
18589        ac_top_srcdir=.
18590     else
18591        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
18592     fi ;;
18593   [\\/]* | ?:[\\/]* )  # Absolute path.
18594     ac_srcdir=$srcdir$ac_dir_suffix;
18595     ac_top_srcdir=$srcdir ;;
18596   *) # Relative path.
18597     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
18598     ac_top_srcdir=$ac_top_builddir$srcdir ;;
18599 esac
18600 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
18601 # absolute.
18602 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
18603 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
18604 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
18605 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
18606
18607
18608   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
18609 echo "$as_me: executing $ac_dest commands" >&6;}
18610   case $ac_dest in
18611     controls ) test -d "controls" || ({ echo "$as_me:$LINENO: creating controls" >&5
18612 echo "$as_me: creating controls" >&6;} && mkdir "controls") ;;
18613     dlls/ddraw/d3ddevice ) test -d "dlls/ddraw/d3ddevice" || ({ echo "$as_me:$LINENO: creating dlls/ddraw/d3ddevice" >&5
18614 echo "$as_me: creating dlls/ddraw/d3ddevice" >&6;} && mkdir "dlls/ddraw/d3ddevice") ;;
18615     dlls/ddraw/dclipper ) test -d "dlls/ddraw/dclipper" || ({ echo "$as_me:$LINENO: creating dlls/ddraw/dclipper" >&5
18616 echo "$as_me: creating dlls/ddraw/dclipper" >&6;} && mkdir "dlls/ddraw/dclipper") ;;
18617     dlls/ddraw/ddraw ) test -d "dlls/ddraw/ddraw" || ({ echo "$as_me:$LINENO: creating dlls/ddraw/ddraw" >&5
18618 echo "$as_me: creating dlls/ddraw/ddraw" >&6;} && mkdir "dlls/ddraw/ddraw") ;;
18619     dlls/ddraw/direct3d ) test -d "dlls/ddraw/direct3d" || ({ echo "$as_me:$LINENO: creating dlls/ddraw/direct3d" >&5
18620 echo "$as_me: creating dlls/ddraw/direct3d" >&6;} && mkdir "dlls/ddraw/direct3d") ;;
18621     dlls/ddraw/dpalette ) test -d "dlls/ddraw/dpalette" || ({ echo "$as_me:$LINENO: creating dlls/ddraw/dpalette" >&5
18622 echo "$as_me: creating dlls/ddraw/dpalette" >&6;} && mkdir "dlls/ddraw/dpalette") ;;
18623     dlls/ddraw/dsurface ) test -d "dlls/ddraw/dsurface" || ({ echo "$as_me:$LINENO: creating dlls/ddraw/dsurface" >&5
18624 echo "$as_me: creating dlls/ddraw/dsurface" >&6;} && mkdir "dlls/ddraw/dsurface") ;;
18625     dlls/dinput/joystick ) test -d "dlls/dinput/joystick" || ({ echo "$as_me:$LINENO: creating dlls/dinput/joystick" >&5
18626 echo "$as_me: creating dlls/dinput/joystick" >&6;} && mkdir "dlls/dinput/joystick") ;;
18627     dlls/dinput/keyboard ) test -d "dlls/dinput/keyboard" || ({ echo "$as_me:$LINENO: creating dlls/dinput/keyboard" >&5
18628 echo "$as_me: creating dlls/dinput/keyboard" >&6;} && mkdir "dlls/dinput/keyboard") ;;
18629     dlls/dinput/mouse ) test -d "dlls/dinput/mouse" || ({ echo "$as_me:$LINENO: creating dlls/dinput/mouse" >&5
18630 echo "$as_me: creating dlls/dinput/mouse" >&6;} && mkdir "dlls/dinput/mouse") ;;
18631     dlls/gdi/enhmfdrv ) test -d "dlls/gdi/enhmfdrv" || ({ echo "$as_me:$LINENO: creating dlls/gdi/enhmfdrv" >&5
18632 echo "$as_me: creating dlls/gdi/enhmfdrv" >&6;} && mkdir "dlls/gdi/enhmfdrv") ;;
18633     dlls/gdi/mfdrv ) test -d "dlls/gdi/mfdrv" || ({ echo "$as_me:$LINENO: creating dlls/gdi/mfdrv" >&5
18634 echo "$as_me: creating dlls/gdi/mfdrv" >&6;} && mkdir "dlls/gdi/mfdrv") ;;
18635     dlls/kernel/messages ) test -d "dlls/kernel/messages" || ({ echo "$as_me:$LINENO: creating dlls/kernel/messages" >&5
18636 echo "$as_me: creating dlls/kernel/messages" >&6;} && mkdir "dlls/kernel/messages") ;;
18637     dlls/user/dde ) test -d "dlls/user/dde" || ({ echo "$as_me:$LINENO: creating dlls/user/dde" >&5
18638 echo "$as_me: creating dlls/user/dde" >&6;} && mkdir "dlls/user/dde") ;;
18639     dlls/user/resources ) test -d "dlls/user/resources" || ({ echo "$as_me:$LINENO: creating dlls/user/resources" >&5
18640 echo "$as_me: creating dlls/user/resources" >&6;} && mkdir "dlls/user/resources") ;;
18641     dlls/wineps/data ) test -d "dlls/wineps/data" || ({ echo "$as_me:$LINENO: creating dlls/wineps/data" >&5
18642 echo "$as_me: creating dlls/wineps/data" >&6;} && mkdir "dlls/wineps/data") ;;
18643     files ) test -d "files" || ({ echo "$as_me:$LINENO: creating files" >&5
18644 echo "$as_me: creating files" >&6;} && mkdir "files") ;;
18645     graphics ) test -d "graphics" || ({ echo "$as_me:$LINENO: creating graphics" >&5
18646 echo "$as_me: creating graphics" >&6;} && mkdir "graphics") ;;
18647     graphics/x11drv ) test -d "graphics/x11drv" || ({ echo "$as_me:$LINENO: creating graphics/x11drv" >&5
18648 echo "$as_me: creating graphics/x11drv" >&6;} && mkdir "graphics/x11drv") ;;
18649     include/wine ) test -d "include/wine" || ({ echo "$as_me:$LINENO: creating include/wine" >&5
18650 echo "$as_me: creating include/wine" >&6;} && mkdir "include/wine") ;;
18651     misc ) test -d "misc" || ({ echo "$as_me:$LINENO: creating misc" >&5
18652 echo "$as_me: creating misc" >&6;} && mkdir "misc") ;;
18653     objects ) test -d "objects" || ({ echo "$as_me:$LINENO: creating objects" >&5
18654 echo "$as_me: creating objects" >&6;} && mkdir "objects") ;;
18655     programs/regapi/tests ) test -d "programs/regapi/tests" || ({ echo "$as_me:$LINENO: creating programs/regapi/tests" >&5
18656 echo "$as_me: creating programs/regapi/tests" >&6;} && mkdir "programs/regapi/tests") ;;
18657     programs/regedit/tests ) test -d "programs/regedit/tests" || ({ echo "$as_me:$LINENO: creating programs/regedit/tests" >&5
18658 echo "$as_me: creating programs/regedit/tests" >&6;} && mkdir "programs/regedit/tests") ;;
18659     windows ) test -d "windows" || ({ echo "$as_me:$LINENO: creating windows" >&5
18660 echo "$as_me: creating windows" >&6;} && mkdir "windows") ;;
18661   esac
18662 done
18663 _ACEOF
18664
18665 cat >>$CONFIG_STATUS <<\_ACEOF
18666
18667 { (exit 0); exit 0; }
18668 _ACEOF
18669 chmod +x $CONFIG_STATUS
18670 ac_clean_files=$ac_clean_files_save
18671
18672
18673 # configure is writing to config.log, and then calls config.status.
18674 # config.status does its own redirection, appending to config.log.
18675 # Unfortunately, on DOS this fails, as config.log is still kept open
18676 # by configure, so config.status won't be able to write to it; its
18677 # output is simply discarded.  So we exec the FD to /dev/null,
18678 # effectively closing config.log, so it can be properly (re)opened and
18679 # appended to by config.status.  When coming back to configure, we
18680 # need to make the FD available again.
18681 if test "$no_create" != yes; then
18682   ac_cs_success=:
18683   ac_config_status_args=
18684   test "$silent" = yes &&
18685     ac_config_status_args="$ac_config_status_args --quiet"
18686   exec 5>/dev/null
18687   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
18688   exec 5>>config.log
18689   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18690   # would make configure fail if this is the last instruction.
18691   $ac_cs_success || { (exit 1); exit 1; }
18692 fi
18693
18694
18695 if test "$have_x" = "no"
18696 then
18697   echo
18698   echo "*** Warning: X development files not found. Wine will be built without"
18699   echo "*** X support, which currently does not work, and would probably not be"
18700   echo "*** what you want anyway. You will need to install devel packages of"
18701   echo "*** Xlib/Xfree86 at the very least."
18702 fi
18703
18704 if test "$wine_cv_opengl_version_OK" = "no"
18705 then
18706   echo
18707   echo "*** Warning: old Mesa headers detected. Wine will be built without Direct3D"
18708   echo "*** support. Consider upgrading your Mesa libraries (http://www.mesa3d.org/)."
18709 fi
18710
18711 if test "$wine_cv_msg_freetype" = "yes"
18712 then
18713   echo
18714   echo "*** Note: Your system appears to have the FreeType 2 runtime libraries"
18715   echo "*** installed, but 'freetype-config' is not in your PATH. Install the"
18716   echo "*** freetype-devel package (or its equivalent on your distribution) to"
18717   echo "*** enable Wine to use TrueType fonts."
18718 fi
18719
18720 echo
18721 echo "Configure finished.  Do 'make depend && make' to compile Wine."
18722 echo
18723