Use the '-z defs' linker option if supported to better catch undefined
[wine] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.54 for Wine 20021031.
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 LANG LANGUAGE LC_ALL LC_COLLATE LC_CTYPE LC_NUMERIC LC_MESSAGES LC_TIME
40 do
41   if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
42     eval $as_var=C; export $as_var
43   else
44     $as_unset $as_var
45   fi
46 done
47
48 # Required to use basename.
49 if expr a : '\(a\)' >/dev/null 2>&1; then
50   as_expr=expr
51 else
52   as_expr=false
53 fi
54
55 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
56   as_basename=basename
57 else
58   as_basename=false
59 fi
60
61
62 # Name of the executable.
63 as_me=`$as_basename "$0" ||
64 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
65          X"$0" : 'X\(//\)$' \| \
66          X"$0" : 'X\(/\)$' \| \
67          .     : '\(.\)' 2>/dev/null ||
68 echo X/"$0" |
69     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
70           /^X\/\(\/\/\)$/{ s//\1/; q; }
71           /^X\/\(\/\).*/{ s//\1/; q; }
72           s/.*/./; q'`
73
74
75 # PATH needs CR, and LINENO needs CR and PATH.
76 # Avoid depending upon Character Ranges.
77 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
78 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
79 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
80 as_cr_digits='0123456789'
81 as_cr_alnum=$as_cr_Letters$as_cr_digits
82
83 # The user is always right.
84 if test "${PATH_SEPARATOR+set}" != set; then
85   echo "#! /bin/sh" >conftest.sh
86   echo  "exit 0"   >>conftest.sh
87   chmod +x conftest.sh
88   if (PATH="/nonexistent;."; conftest.sh) >/dev/null 2>&1; then
89     PATH_SEPARATOR=';'
90   else
91     PATH_SEPARATOR=:
92   fi
93   rm -f conftest.sh
94 fi
95
96
97   as_lineno_1=$LINENO
98   as_lineno_2=$LINENO
99   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
100   test "x$as_lineno_1" != "x$as_lineno_2" &&
101   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
102   # Find who we are.  Look in the path if we contain no path at all
103   # relative or not.
104   case $0 in
105     *[\\/]* ) as_myself=$0 ;;
106     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
107 for as_dir in $PATH
108 do
109   IFS=$as_save_IFS
110   test -z "$as_dir" && as_dir=.
111   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
112 done
113
114        ;;
115   esac
116   # We did not find ourselves, most probably we were run as `sh COMMAND'
117   # in which case we are not to be found in the path.
118   if test "x$as_myself" = x; then
119     as_myself=$0
120   fi
121   if test ! -f "$as_myself"; then
122     { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
123    { (exit 1); exit 1; }; }
124   fi
125   case $CONFIG_SHELL in
126   '')
127     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
128 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
129 do
130   IFS=$as_save_IFS
131   test -z "$as_dir" && as_dir=.
132   for as_base in sh bash ksh sh5; do
133          case $as_dir in
134          /*)
135            if ("$as_dir/$as_base" -c '
136   as_lineno_1=$LINENO
137   as_lineno_2=$LINENO
138   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
139   test "x$as_lineno_1" != "x$as_lineno_2" &&
140   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
141              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
142              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
143              CONFIG_SHELL=$as_dir/$as_base
144              export CONFIG_SHELL
145              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
146            fi;;
147          esac
148        done
149 done
150 ;;
151   esac
152
153   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
154   # uniformly replaced by the line number.  The first 'sed' inserts a
155   # line-number line before each line; the second 'sed' does the real
156   # work.  The second script uses 'N' to pair each line-number line
157   # with the numbered line, and appends trailing '-' during
158   # substitution so that $LINENO is not a special case at line end.
159   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
160   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
161   sed '=' <$as_myself |
162     sed '
163       N
164       s,$,-,
165       : loop
166       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
167       t loop
168       s,-$,,
169       s,^['$as_cr_digits']*\n,,
170     ' >$as_me.lineno &&
171   chmod +x $as_me.lineno ||
172     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
173    { (exit 1); exit 1; }; }
174
175   # Don't try to exec as it changes $[0], causing all sort of problems
176   # (the dirname of $[0] is not the place where we might find the
177   # original and so on.  Autoconf is especially sensible to this).
178   . ./$as_me.lineno
179   # Exit status is that of the last command.
180   exit
181 }
182
183
184 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
185   *c*,-n*) ECHO_N= ECHO_C='
186 ' ECHO_T='      ' ;;
187   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
188   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
189 esac
190
191 if expr a : '\(a\)' >/dev/null 2>&1; then
192   as_expr=expr
193 else
194   as_expr=false
195 fi
196
197 rm -f conf$$ conf$$.exe conf$$.file
198 echo >conf$$.file
199 if ln -s conf$$.file conf$$ 2>/dev/null; then
200   # We could just check for DJGPP; but this test a) works b) is more generic
201   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
202   if test -f conf$$.exe; then
203     # Don't use ln at all; we don't have any links
204     as_ln_s='cp -p'
205   else
206     as_ln_s='ln -s'
207   fi
208 elif ln conf$$.file conf$$ 2>/dev/null; then
209   as_ln_s=ln
210 else
211   as_ln_s='cp -p'
212 fi
213 rm -f conf$$ conf$$.exe conf$$.file
214
215 if mkdir -p . 2>/dev/null; then
216   as_mkdir_p=:
217 else
218   as_mkdir_p=false
219 fi
220
221 as_executable_p="test -f"
222
223 # Sed expression to map a string onto a valid CPP name.
224 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
225
226 # Sed expression to map a string onto a valid variable name.
227 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
228
229
230 # IFS
231 # We need space, tab and new line, in precisely that order.
232 as_nl='
233 '
234 IFS="   $as_nl"
235
236 # CDPATH.
237 $as_unset CDPATH
238
239
240 # Name of the host.
241 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
242 # so uname gets run too.
243 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
244
245 exec 6>&1
246
247 #
248 # Initializations.
249 #
250 ac_default_prefix=/usr/local
251 ac_config_libobj_dir=.
252 cross_compiling=no
253 subdirs=
254 MFLAGS=
255 MAKEFLAGS=
256 SHELL=${CONFIG_SHELL-/bin/sh}
257
258 # Maximum number of lines to put in a shell here document.
259 # This variable seems obsolete.  It should probably be removed, and
260 # only ac_max_sed_lines should be used.
261 : ${ac_max_here_lines=38}
262
263 # Identity of this package.
264 PACKAGE_NAME='Wine'
265 PACKAGE_TARNAME='wine'
266 PACKAGE_VERSION='20021031'
267 PACKAGE_STRING='Wine 20021031'
268 PACKAGE_BUGREPORT=''
269
270 ac_unique_file="server/atom.c"
271 # Factoring default headers for most tests.
272 ac_includes_default="\
273 #include <stdio.h>
274 #if HAVE_SYS_TYPES_H
275 # include <sys/types.h>
276 #endif
277 #if HAVE_SYS_STAT_H
278 # include <sys/stat.h>
279 #endif
280 #if STDC_HEADERS
281 # include <stdlib.h>
282 # include <stddef.h>
283 #else
284 # if HAVE_STDLIB_H
285 #  include <stdlib.h>
286 # endif
287 #endif
288 #if HAVE_STRING_H
289 # if !STDC_HEADERS && HAVE_MEMORY_H
290 #  include <memory.h>
291 # endif
292 # include <string.h>
293 #endif
294 #if HAVE_STRINGS_H
295 # include <strings.h>
296 #endif
297 #if HAVE_INTTYPES_H
298 # include <inttypes.h>
299 #else
300 # if HAVE_STDINT_H
301 #  include <stdint.h>
302 # endif
303 #endif
304 #if HAVE_UNISTD_H
305 # include <unistd.h>
306 #endif"
307
308 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 LIBEXT OPTIONS WIN16_FILES WIN16_INSTALL build build_cpu build_vendor build_os host host_cpu host_vendor host_os SET_MAKE CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CPP TOOLSDIR X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS YACC LEX LEXLIB LEX_OUTPUT_ROOT XYACC XLEX LD ac_ct_LD AR ac_ct_AR RANLIB ac_ct_RANLIB STRIP ac_ct_STRIP WINDRES ac_ct_WINDRES INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA LN_S LN C2MAN LDCONFIG LINT LINTFLAGS JPEGLIB EGREP XLIB XFILES OPENGLFILES GLU32FILES OPENGL_LIBS NASLIBS CURSESLIBS sane_devel SANELIBS SANEINCL ft_devel ft_devel2 FREETYPEINCL ARTSCCONFIG ARTSLIBS ARTSINCL ALSALIBS AUDIOIOLIBS DLLEXT DLLFLAGS DLLIBS LDDLLFLAGS LDSHARED DLLWRAP ac_ct_DLLWRAP CROSSTEST CROSSCC DLLTOOL LDPATH CRTLIBS LDD ALLOCA LIBOBJS LTLIBOBJS'
309 ac_subst_files='MAKE_RULES MAKE_DLL_RULES MAKE_TEST_RULES MAKE_PROG_RULES'
310
311 # Initialize some variables set by options.
312 ac_init_help=
313 ac_init_version=false
314 # The variables have the same names as the options, with
315 # dashes changed to underlines.
316 cache_file=/dev/null
317 exec_prefix=NONE
318 no_create=
319 no_recursion=
320 prefix=NONE
321 program_prefix=NONE
322 program_suffix=NONE
323 program_transform_name=s,x,x,
324 silent=
325 site=
326 srcdir=
327 verbose=
328 x_includes=NONE
329 x_libraries=NONE
330
331 # Installation directory options.
332 # These are left unexpanded so users can "make install exec_prefix=/foo"
333 # and all the variables that are supposed to be based on exec_prefix
334 # by default will actually change.
335 # Use braces instead of parens because sh, perl, etc. also accept them.
336 bindir='${exec_prefix}/bin'
337 sbindir='${exec_prefix}/sbin'
338 libexecdir='${exec_prefix}/libexec'
339 datadir='${prefix}/share'
340 sysconfdir='${prefix}/etc'
341 sharedstatedir='${prefix}/com'
342 localstatedir='${prefix}/var'
343 libdir='${exec_prefix}/lib'
344 includedir='${prefix}/include'
345 oldincludedir='/usr/include'
346 infodir='${prefix}/info'
347 mandir='${prefix}/man'
348
349 ac_prev=
350 for ac_option
351 do
352   # If the previous option needs an argument, assign it.
353   if test -n "$ac_prev"; then
354     eval "$ac_prev=\$ac_option"
355     ac_prev=
356     continue
357   fi
358
359   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
360
361   # Accept the important Cygnus configure options, so we can diagnose typos.
362
363   case $ac_option in
364
365   -bindir | --bindir | --bindi | --bind | --bin | --bi)
366     ac_prev=bindir ;;
367   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
368     bindir=$ac_optarg ;;
369
370   -build | --build | --buil | --bui | --bu)
371     ac_prev=build_alias ;;
372   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
373     build_alias=$ac_optarg ;;
374
375   -cache-file | --cache-file | --cache-fil | --cache-fi \
376   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
377     ac_prev=cache_file ;;
378   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
379   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
380     cache_file=$ac_optarg ;;
381
382   --config-cache | -C)
383     cache_file=config.cache ;;
384
385   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
386     ac_prev=datadir ;;
387   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
388   | --da=*)
389     datadir=$ac_optarg ;;
390
391   -disable-* | --disable-*)
392     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
393     # Reject names that are not valid shell variable names.
394     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
395       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
396    { (exit 1); exit 1; }; }
397     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
398     eval "enable_$ac_feature=no" ;;
399
400   -enable-* | --enable-*)
401     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
402     # Reject names that are not valid shell variable names.
403     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
404       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
405    { (exit 1); exit 1; }; }
406     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
407     case $ac_option in
408       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
409       *) ac_optarg=yes ;;
410     esac
411     eval "enable_$ac_feature='$ac_optarg'" ;;
412
413   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
414   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
415   | --exec | --exe | --ex)
416     ac_prev=exec_prefix ;;
417   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
418   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
419   | --exec=* | --exe=* | --ex=*)
420     exec_prefix=$ac_optarg ;;
421
422   -gas | --gas | --ga | --g)
423     # Obsolete; use --with-gas.
424     with_gas=yes ;;
425
426   -help | --help | --hel | --he | -h)
427     ac_init_help=long ;;
428   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
429     ac_init_help=recursive ;;
430   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
431     ac_init_help=short ;;
432
433   -host | --host | --hos | --ho)
434     ac_prev=host_alias ;;
435   -host=* | --host=* | --hos=* | --ho=*)
436     host_alias=$ac_optarg ;;
437
438   -includedir | --includedir | --includedi | --included | --include \
439   | --includ | --inclu | --incl | --inc)
440     ac_prev=includedir ;;
441   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
442   | --includ=* | --inclu=* | --incl=* | --inc=*)
443     includedir=$ac_optarg ;;
444
445   -infodir | --infodir | --infodi | --infod | --info | --inf)
446     ac_prev=infodir ;;
447   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
448     infodir=$ac_optarg ;;
449
450   -libdir | --libdir | --libdi | --libd)
451     ac_prev=libdir ;;
452   -libdir=* | --libdir=* | --libdi=* | --libd=*)
453     libdir=$ac_optarg ;;
454
455   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
456   | --libexe | --libex | --libe)
457     ac_prev=libexecdir ;;
458   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
459   | --libexe=* | --libex=* | --libe=*)
460     libexecdir=$ac_optarg ;;
461
462   -localstatedir | --localstatedir | --localstatedi | --localstated \
463   | --localstate | --localstat | --localsta | --localst \
464   | --locals | --local | --loca | --loc | --lo)
465     ac_prev=localstatedir ;;
466   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
467   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
468   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
469     localstatedir=$ac_optarg ;;
470
471   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
472     ac_prev=mandir ;;
473   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
474     mandir=$ac_optarg ;;
475
476   -nfp | --nfp | --nf)
477     # Obsolete; use --without-fp.
478     with_fp=no ;;
479
480   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
481   | --no-cr | --no-c | -n)
482     no_create=yes ;;
483
484   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
485   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
486     no_recursion=yes ;;
487
488   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
489   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
490   | --oldin | --oldi | --old | --ol | --o)
491     ac_prev=oldincludedir ;;
492   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
493   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
494   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
495     oldincludedir=$ac_optarg ;;
496
497   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
498     ac_prev=prefix ;;
499   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
500     prefix=$ac_optarg ;;
501
502   -program-prefix | --program-prefix | --program-prefi | --program-pref \
503   | --program-pre | --program-pr | --program-p)
504     ac_prev=program_prefix ;;
505   -program-prefix=* | --program-prefix=* | --program-prefi=* \
506   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
507     program_prefix=$ac_optarg ;;
508
509   -program-suffix | --program-suffix | --program-suffi | --program-suff \
510   | --program-suf | --program-su | --program-s)
511     ac_prev=program_suffix ;;
512   -program-suffix=* | --program-suffix=* | --program-suffi=* \
513   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
514     program_suffix=$ac_optarg ;;
515
516   -program-transform-name | --program-transform-name \
517   | --program-transform-nam | --program-transform-na \
518   | --program-transform-n | --program-transform- \
519   | --program-transform | --program-transfor \
520   | --program-transfo | --program-transf \
521   | --program-trans | --program-tran \
522   | --progr-tra | --program-tr | --program-t)
523     ac_prev=program_transform_name ;;
524   -program-transform-name=* | --program-transform-name=* \
525   | --program-transform-nam=* | --program-transform-na=* \
526   | --program-transform-n=* | --program-transform-=* \
527   | --program-transform=* | --program-transfor=* \
528   | --program-transfo=* | --program-transf=* \
529   | --program-trans=* | --program-tran=* \
530   | --progr-tra=* | --program-tr=* | --program-t=*)
531     program_transform_name=$ac_optarg ;;
532
533   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
534   | -silent | --silent | --silen | --sile | --sil)
535     silent=yes ;;
536
537   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
538     ac_prev=sbindir ;;
539   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
540   | --sbi=* | --sb=*)
541     sbindir=$ac_optarg ;;
542
543   -sharedstatedir | --sharedstatedir | --sharedstatedi \
544   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
545   | --sharedst | --shareds | --shared | --share | --shar \
546   | --sha | --sh)
547     ac_prev=sharedstatedir ;;
548   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
549   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
550   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
551   | --sha=* | --sh=*)
552     sharedstatedir=$ac_optarg ;;
553
554   -site | --site | --sit)
555     ac_prev=site ;;
556   -site=* | --site=* | --sit=*)
557     site=$ac_optarg ;;
558
559   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
560     ac_prev=srcdir ;;
561   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
562     srcdir=$ac_optarg ;;
563
564   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
565   | --syscon | --sysco | --sysc | --sys | --sy)
566     ac_prev=sysconfdir ;;
567   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
568   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
569     sysconfdir=$ac_optarg ;;
570
571   -target | --target | --targe | --targ | --tar | --ta | --t)
572     ac_prev=target_alias ;;
573   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
574     target_alias=$ac_optarg ;;
575
576   -v | -verbose | --verbose | --verbos | --verbo | --verb)
577     verbose=yes ;;
578
579   -version | --version | --versio | --versi | --vers | -V)
580     ac_init_version=: ;;
581
582   -with-* | --with-*)
583     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
584     # Reject names that are not valid shell variable names.
585     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
586       { echo "$as_me: error: invalid package name: $ac_package" >&2
587    { (exit 1); exit 1; }; }
588     ac_package=`echo $ac_package| sed 's/-/_/g'`
589     case $ac_option in
590       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
591       *) ac_optarg=yes ;;
592     esac
593     eval "with_$ac_package='$ac_optarg'" ;;
594
595   -without-* | --without-*)
596     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
597     # Reject names that are not valid shell variable names.
598     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
599       { echo "$as_me: error: invalid package name: $ac_package" >&2
600    { (exit 1); exit 1; }; }
601     ac_package=`echo $ac_package | sed 's/-/_/g'`
602     eval "with_$ac_package=no" ;;
603
604   --x)
605     # Obsolete; use --with-x.
606     with_x=yes ;;
607
608   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
609   | --x-incl | --x-inc | --x-in | --x-i)
610     ac_prev=x_includes ;;
611   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
612   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
613     x_includes=$ac_optarg ;;
614
615   -x-libraries | --x-libraries | --x-librarie | --x-librari \
616   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
617     ac_prev=x_libraries ;;
618   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
619   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
620     x_libraries=$ac_optarg ;;
621
622   -*) { echo "$as_me: error: unrecognized option: $ac_option
623 Try \`$0 --help' for more information." >&2
624    { (exit 1); exit 1; }; }
625     ;;
626
627   *=*)
628     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
629     # Reject names that are not valid shell variable names.
630     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
631       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
632    { (exit 1); exit 1; }; }
633     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
634     eval "$ac_envvar='$ac_optarg'"
635     export $ac_envvar ;;
636
637   *)
638     # FIXME: should be removed in autoconf 3.0.
639     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
640     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
641       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
642     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
643     ;;
644
645   esac
646 done
647
648 if test -n "$ac_prev"; then
649   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
650   { echo "$as_me: error: missing argument to $ac_option" >&2
651    { (exit 1); exit 1; }; }
652 fi
653
654 # Be sure to have absolute paths.
655 for ac_var in exec_prefix prefix
656 do
657   eval ac_val=$`echo $ac_var`
658   case $ac_val in
659     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
660     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
661    { (exit 1); exit 1; }; };;
662   esac
663 done
664
665 # Be sure to have absolute paths.
666 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
667               localstatedir libdir includedir oldincludedir infodir mandir
668 do
669   eval ac_val=$`echo $ac_var`
670   case $ac_val in
671     [\\/$]* | ?:[\\/]* ) ;;
672     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
673    { (exit 1); exit 1; }; };;
674   esac
675 done
676
677 # There might be people who depend on the old broken behavior: `$host'
678 # used to hold the argument of --host etc.
679 # FIXME: To remove some day.
680 build=$build_alias
681 host=$host_alias
682 target=$target_alias
683
684 # FIXME: To remove some day.
685 if test "x$host_alias" != x; then
686   if test "x$build_alias" = x; then
687     cross_compiling=maybe
688     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
689     If a cross compiler is detected then cross compile mode will be used." >&2
690   elif test "x$build_alias" != "x$host_alias"; then
691     cross_compiling=yes
692   fi
693 fi
694
695 ac_tool_prefix=
696 test -n "$host_alias" && ac_tool_prefix=$host_alias-
697
698 test "$silent" = yes && exec 6>/dev/null
699
700
701 # Find the source files, if location was not specified.
702 if test -z "$srcdir"; then
703   ac_srcdir_defaulted=yes
704   # Try the directory containing this script, then its parent.
705   ac_confdir=`(dirname "$0") 2>/dev/null ||
706 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
707          X"$0" : 'X\(//\)[^/]' \| \
708          X"$0" : 'X\(//\)$' \| \
709          X"$0" : 'X\(/\)' \| \
710          .     : '\(.\)' 2>/dev/null ||
711 echo X"$0" |
712     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
713           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
714           /^X\(\/\/\)$/{ s//\1/; q; }
715           /^X\(\/\).*/{ s//\1/; q; }
716           s/.*/./; q'`
717   srcdir=$ac_confdir
718   if test ! -r $srcdir/$ac_unique_file; then
719     srcdir=..
720   fi
721 else
722   ac_srcdir_defaulted=no
723 fi
724 if test ! -r $srcdir/$ac_unique_file; then
725   if test "$ac_srcdir_defaulted" = yes; then
726     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
727    { (exit 1); exit 1; }; }
728   else
729     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
730    { (exit 1); exit 1; }; }
731   fi
732 fi
733 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
734   { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
735    { (exit 1); exit 1; }; }
736 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
737 ac_env_build_alias_set=${build_alias+set}
738 ac_env_build_alias_value=$build_alias
739 ac_cv_env_build_alias_set=${build_alias+set}
740 ac_cv_env_build_alias_value=$build_alias
741 ac_env_host_alias_set=${host_alias+set}
742 ac_env_host_alias_value=$host_alias
743 ac_cv_env_host_alias_set=${host_alias+set}
744 ac_cv_env_host_alias_value=$host_alias
745 ac_env_target_alias_set=${target_alias+set}
746 ac_env_target_alias_value=$target_alias
747 ac_cv_env_target_alias_set=${target_alias+set}
748 ac_cv_env_target_alias_value=$target_alias
749 ac_env_CC_set=${CC+set}
750 ac_env_CC_value=$CC
751 ac_cv_env_CC_set=${CC+set}
752 ac_cv_env_CC_value=$CC
753 ac_env_CFLAGS_set=${CFLAGS+set}
754 ac_env_CFLAGS_value=$CFLAGS
755 ac_cv_env_CFLAGS_set=${CFLAGS+set}
756 ac_cv_env_CFLAGS_value=$CFLAGS
757 ac_env_LDFLAGS_set=${LDFLAGS+set}
758 ac_env_LDFLAGS_value=$LDFLAGS
759 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
760 ac_cv_env_LDFLAGS_value=$LDFLAGS
761 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
762 ac_env_CPPFLAGS_value=$CPPFLAGS
763 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
764 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
765 ac_env_CPP_set=${CPP+set}
766 ac_env_CPP_value=$CPP
767 ac_cv_env_CPP_set=${CPP+set}
768 ac_cv_env_CPP_value=$CPP
769
770 #
771 # Report the --help message.
772 #
773 if test "$ac_init_help" = "long"; then
774   # Omit some internal or obsolete options to make the list less imposing.
775   # This message is too long to be a string in the A/UX 3.1 sh.
776   cat <<_ACEOF
777 \`configure' configures Wine 20021031 to adapt to many kinds of systems.
778
779 Usage: $0 [OPTION]... [VAR=VALUE]...
780
781 To assign environment variables (e.g., CC, CFLAGS...), specify them as
782 VAR=VALUE.  See below for descriptions of some of the useful variables.
783
784 Defaults for the options are specified in brackets.
785
786 Configuration:
787   -h, --help              display this help and exit
788       --help=short        display options specific to this package
789       --help=recursive    display the short help of all the included packages
790   -V, --version           display version information and exit
791   -q, --quiet, --silent   do not print \`checking...' messages
792       --cache-file=FILE   cache test results in FILE [disabled]
793   -C, --config-cache      alias for \`--cache-file=config.cache'
794   -n, --no-create         do not create output files
795       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
796
797 _ACEOF
798
799   cat <<_ACEOF
800 Installation directories:
801   --prefix=PREFIX         install architecture-independent files in PREFIX
802                           [$ac_default_prefix]
803   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
804                           [PREFIX]
805
806 By default, \`make install' will install all the files in
807 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
808 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
809 for instance \`--prefix=\$HOME'.
810
811 For better control, use the options below.
812
813 Fine tuning of the installation directories:
814   --bindir=DIR           user executables [EPREFIX/bin]
815   --sbindir=DIR          system admin executables [EPREFIX/sbin]
816   --libexecdir=DIR       program executables [EPREFIX/libexec]
817   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
818   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
819   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
820   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
821   --libdir=DIR           object code libraries [EPREFIX/lib]
822   --includedir=DIR       C header files [PREFIX/include]
823   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
824   --infodir=DIR          info documentation [PREFIX/info]
825   --mandir=DIR           man documentation [PREFIX/man]
826 _ACEOF
827
828   cat <<\_ACEOF
829
830 X features:
831   --x-includes=DIR    X include files are in DIR
832   --x-libraries=DIR   X library files are in DIR
833
834 System types:
835   --build=BUILD     configure for building on BUILD [guessed]
836   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
837 _ACEOF
838 fi
839
840 if test -n "$ac_init_help"; then
841   case $ac_init_help in
842      short | recursive ) echo "Configuration of Wine 20021031:";;
843    esac
844   cat <<\_ACEOF
845
846 Optional Features:
847   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
848   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
849   --disable-win16         do not include Win16 support
850   --disable-debug         compile out all debugging messages
851   --disable-trace         compile out TRACE messages
852   --enable-opengl         force usage of OpenGL even if the latter is
853                           thread-safe via pthread
854
855 Optional Packages:
856   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
857   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
858   --without-curses        do not use curses
859   --with-wine-tools=<dir> use Wine tools from directory <dir>
860   --with-x                use the X Window System
861
862 Some influential environment variables:
863   CC          C compiler command
864   CFLAGS      C compiler flags
865   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
866               nonstandard directory <lib dir>
867   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
868               headers in a nonstandard directory <include dir>
869   CPP         C preprocessor
870
871 Use these variables to override the choices made by `configure' or to help
872 it to find libraries and programs with nonstandard names/locations.
873
874 _ACEOF
875 fi
876
877 if test "$ac_init_help" = "recursive"; then
878   # If there are subdirs, report their specific --help.
879   ac_popdir=`pwd`
880   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
881     test -d $ac_dir || continue
882     ac_builddir=.
883
884 if test "$ac_dir" != .; then
885   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
886   # A "../" for each directory in $ac_dir_suffix.
887   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
888 else
889   ac_dir_suffix= ac_top_builddir=
890 fi
891
892 case $srcdir in
893   .)  # No --srcdir option.  We are building in place.
894     ac_srcdir=.
895     if test -z "$ac_top_builddir"; then
896        ac_top_srcdir=.
897     else
898        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
899     fi ;;
900   [\\/]* | ?:[\\/]* )  # Absolute path.
901     ac_srcdir=$srcdir$ac_dir_suffix;
902     ac_top_srcdir=$srcdir ;;
903   *) # Relative path.
904     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
905     ac_top_srcdir=$ac_top_builddir$srcdir ;;
906 esac
907 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
908 # absolute.
909 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
910 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
911 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
912 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
913
914     cd $ac_dir
915     # Check for guested configure; otherwise get Cygnus style configure.
916     if test -f $ac_srcdir/configure.gnu; then
917       echo
918       $SHELL $ac_srcdir/configure.gnu  --help=recursive
919     elif test -f $ac_srcdir/configure; then
920       echo
921       $SHELL $ac_srcdir/configure  --help=recursive
922     elif test -f $ac_srcdir/configure.ac ||
923            test -f $ac_srcdir/configure.in; then
924       echo
925       $ac_configure --help
926     else
927       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
928     fi
929     cd $ac_popdir
930   done
931 fi
932
933 test -n "$ac_init_help" && exit 0
934 if $ac_init_version; then
935   cat <<\_ACEOF
936 Wine configure 20021031
937 generated by GNU Autoconf 2.54
938
939 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
940 Free Software Foundation, Inc.
941 This configure script is free software; the Free Software Foundation
942 gives unlimited permission to copy, distribute and modify it.
943 _ACEOF
944   exit 0
945 fi
946 exec 5>config.log
947 cat >&5 <<_ACEOF
948 This file contains any messages produced by compilers while
949 running configure, to aid debugging if configure makes a mistake.
950
951 It was created by Wine $as_me 20021031, which was
952 generated by GNU Autoconf 2.54.  Invocation command line was
953
954   $ $0 $@
955
956 _ACEOF
957 {
958 cat <<_ASUNAME
959 ## --------- ##
960 ## Platform. ##
961 ## --------- ##
962
963 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
964 uname -m = `(uname -m) 2>/dev/null || echo unknown`
965 uname -r = `(uname -r) 2>/dev/null || echo unknown`
966 uname -s = `(uname -s) 2>/dev/null || echo unknown`
967 uname -v = `(uname -v) 2>/dev/null || echo unknown`
968
969 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
970 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
971
972 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
973 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
974 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
975 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
976 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
977 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
978 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
979
980 _ASUNAME
981
982 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
983 for as_dir in $PATH
984 do
985   IFS=$as_save_IFS
986   test -z "$as_dir" && as_dir=.
987   echo "PATH: $as_dir"
988 done
989
990 } >&5
991
992 cat >&5 <<_ACEOF
993
994
995 ## ----------- ##
996 ## Core tests. ##
997 ## ----------- ##
998
999 _ACEOF
1000
1001
1002 # Keep a trace of the command line.
1003 # Strip out --no-create and --no-recursion so they do not pile up.
1004 # Also quote any args containing shell meta-characters.
1005 ac_configure_args=
1006 ac_sep=
1007 for ac_arg
1008 do
1009   case $ac_arg in
1010   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1011   | --no-cr | --no-c | -n ) continue ;;
1012   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1013   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1014     continue ;;
1015   *" "*|*"      "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1016     ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1017   esac
1018   ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1019   # Get rid of the leading space.
1020   ac_sep=" "
1021 done
1022
1023 # When interrupted or exit'd, cleanup temporary files, and complete
1024 # config.log.  We remove comments because anyway the quotes in there
1025 # would cause problems or look ugly.
1026 # WARNING: Be sure not to use single quotes in there, as some shells,
1027 # such as our DU 5.0 friend, will then `close' the trap.
1028 trap 'exit_status=$?
1029   # Save into config.log some information that might help in debugging.
1030   {
1031     echo
1032
1033     cat <<\_ASBOX
1034 ## ---------------- ##
1035 ## Cache variables. ##
1036 ## ---------------- ##
1037 _ASBOX
1038     echo
1039     # The following way of writing the cache mishandles newlines in values,
1040 {
1041   (set) 2>&1 |
1042     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1043     *ac_space=\ *)
1044       sed -n \
1045         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1046           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1047       ;;
1048     *)
1049       sed -n \
1050         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1051       ;;
1052     esac;
1053 }
1054     echo
1055
1056     cat <<\_ASBOX
1057 ## ----------------- ##
1058 ## Output variables. ##
1059 ## ----------------- ##
1060 _ASBOX
1061     echo
1062     for ac_var in $ac_subst_vars
1063     do
1064       eval ac_val=$`echo $ac_var`
1065       echo "$ac_var='"'"'$ac_val'"'"'"
1066     done | sort
1067     echo
1068
1069     if test -n "$ac_subst_files"; then
1070       cat <<\_ASBOX
1071 ## ------------- ##
1072 ## Output files. ##
1073 ## ------------- ##
1074 _ASBOX
1075       echo
1076       for ac_var in $ac_subst_files
1077       do
1078         eval ac_val=$`echo $ac_var`
1079         echo "$ac_var='"'"'$ac_val'"'"'"
1080       done | sort
1081       echo
1082     fi
1083
1084     if test -s confdefs.h; then
1085       cat <<\_ASBOX
1086 ## ----------- ##
1087 ## confdefs.h. ##
1088 ## ----------- ##
1089 _ASBOX
1090       echo
1091       sed "/^$/d" confdefs.h | sort
1092       echo
1093     fi
1094     test "$ac_signal" != 0 &&
1095       echo "$as_me: caught signal $ac_signal"
1096     echo "$as_me: exit $exit_status"
1097   } >&5
1098   rm -f core core.* *.core &&
1099   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1100     exit $exit_status
1101      ' 0
1102 for ac_signal in 1 2 13 15; do
1103   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1104 done
1105 ac_signal=0
1106
1107 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1108 rm -rf conftest* confdefs.h
1109 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1110 echo >confdefs.h
1111
1112 # Predefined preprocessor variables.
1113
1114 cat >>confdefs.h <<_ACEOF
1115 #define PACKAGE_NAME "$PACKAGE_NAME"
1116 _ACEOF
1117
1118
1119 cat >>confdefs.h <<_ACEOF
1120 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1121 _ACEOF
1122
1123
1124 cat >>confdefs.h <<_ACEOF
1125 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1126 _ACEOF
1127
1128
1129 cat >>confdefs.h <<_ACEOF
1130 #define PACKAGE_STRING "$PACKAGE_STRING"
1131 _ACEOF
1132
1133
1134 cat >>confdefs.h <<_ACEOF
1135 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1136 _ACEOF
1137
1138
1139 # Let the site file select an alternate cache file if it wants to.
1140 # Prefer explicitly selected file to automatically selected ones.
1141 if test -z "$CONFIG_SITE"; then
1142   if test "x$prefix" != xNONE; then
1143     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1144   else
1145     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1146   fi
1147 fi
1148 for ac_site_file in $CONFIG_SITE; do
1149   if test -r "$ac_site_file"; then
1150     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1151 echo "$as_me: loading site script $ac_site_file" >&6;}
1152     sed 's/^/| /' "$ac_site_file" >&5
1153     . "$ac_site_file"
1154   fi
1155 done
1156
1157 if test -r "$cache_file"; then
1158   # Some versions of bash will fail to source /dev/null (special
1159   # files actually), so we avoid doing that.
1160   if test -f "$cache_file"; then
1161     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1162 echo "$as_me: loading cache $cache_file" >&6;}
1163     case $cache_file in
1164       [\\/]* | ?:[\\/]* ) . $cache_file;;
1165       *)                      . ./$cache_file;;
1166     esac
1167   fi
1168 else
1169   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1170 echo "$as_me: creating cache $cache_file" >&6;}
1171   >$cache_file
1172 fi
1173
1174 # Check that the precious variables saved in the cache have kept the same
1175 # value.
1176 ac_cache_corrupted=false
1177 for ac_var in `(set) 2>&1 |
1178                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1179   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1180   eval ac_new_set=\$ac_env_${ac_var}_set
1181   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1182   eval ac_new_val="\$ac_env_${ac_var}_value"
1183   case $ac_old_set,$ac_new_set in
1184     set,)
1185       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1186 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1187       ac_cache_corrupted=: ;;
1188     ,set)
1189       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1190 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1191       ac_cache_corrupted=: ;;
1192     ,);;
1193     *)
1194       if test "x$ac_old_val" != "x$ac_new_val"; then
1195         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1196 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1197         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1198 echo "$as_me:   former value:  $ac_old_val" >&2;}
1199         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1200 echo "$as_me:   current value: $ac_new_val" >&2;}
1201         ac_cache_corrupted=:
1202       fi;;
1203   esac
1204   # Pass precious variables to config.status.
1205   if test "$ac_new_set" = set; then
1206     case $ac_new_val in
1207     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1208       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1209     *) ac_arg=$ac_var=$ac_new_val ;;
1210     esac
1211     case " $ac_configure_args " in
1212       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1213       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1214     esac
1215   fi
1216 done
1217 if $ac_cache_corrupted; then
1218   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1219 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1220   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1221 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1222    { (exit 1); exit 1; }; }
1223 fi
1224
1225 ac_ext=c
1226 ac_cpp='$CPP $CPPFLAGS'
1227 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1228 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1229 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258           ac_config_headers="$ac_config_headers include/config.h"
1259
1260 ac_aux_dir=
1261 for ac_dir in tools $srcdir/tools; do
1262   if test -f $ac_dir/install-sh; then
1263     ac_aux_dir=$ac_dir
1264     ac_install_sh="$ac_aux_dir/install-sh -c"
1265     break
1266   elif test -f $ac_dir/install.sh; then
1267     ac_aux_dir=$ac_dir
1268     ac_install_sh="$ac_aux_dir/install.sh -c"
1269     break
1270   elif test -f $ac_dir/shtool; then
1271     ac_aux_dir=$ac_dir
1272     ac_install_sh="$ac_aux_dir/shtool install -c"
1273     break
1274   fi
1275 done
1276 if test -z "$ac_aux_dir"; then
1277   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in tools $srcdir/tools" >&5
1278 echo "$as_me: error: cannot find install-sh or install.sh in tools $srcdir/tools" >&2;}
1279    { (exit 1); exit 1; }; }
1280 fi
1281 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1282 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1283 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1284
1285
1286
1287 LIBEXT="so"
1288
1289
1290 # Check whether --enable-win16 or --disable-win16 was given.
1291 if test "${enable_win16+set}" = set; then
1292   enableval="$enable_win16"
1293
1294 fi;
1295 # Check whether --enable-debug or --disable-debug was given.
1296 if test "${enable_debug+set}" = set; then
1297   enableval="$enable_debug"
1298
1299 fi;
1300 # Check whether --enable-trace or --disable-trace was given.
1301 if test "${enable_trace+set}" = set; then
1302   enableval="$enable_trace"
1303
1304 fi;
1305 # Check whether --enable-opengl or --disable-opengl was given.
1306 if test "${enable_opengl+set}" = set; then
1307   enableval="$enable_opengl"
1308
1309 fi;
1310
1311 # Check whether --with-curses or --without-curses was given.
1312 if test "${with_curses+set}" = set; then
1313   withval="$with_curses"
1314
1315 fi;
1316
1317 # Check whether --with-wine-tools or --without-wine-tools was given.
1318 if test "${with_wine_tools+set}" = set; then
1319   withval="$with_wine_tools"
1320
1321 fi;
1322
1323
1324 WIN16_FILES="\$(WIN16_FILES)"
1325
1326 WIN16_INSTALL="\$(WIN16_INSTALL)"
1327
1328 if test "x$enable_win16" = "xno"
1329 then
1330   WIN16_FILES=""
1331   WIN16_INSTALL=""
1332 fi
1333 if test "x$enable_debug" = "xno"
1334 then
1335
1336 cat >>confdefs.h <<\_ACEOF
1337 #define NO_DEBUG_MSGS 1
1338 _ACEOF
1339
1340 fi
1341 if test "x$enable_trace" = "xno" -o "x$enable_debug" = "xno"
1342 then
1343
1344 cat >>confdefs.h <<\_ACEOF
1345 #define NO_TRACE_MSGS 1
1346 _ACEOF
1347
1348 fi
1349
1350
1351 # Make sure we can run config.sub.
1352 $ac_config_sub sun4 >/dev/null 2>&1 ||
1353   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1354 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1355    { (exit 1); exit 1; }; }
1356
1357 echo "$as_me:$LINENO: checking build system type" >&5
1358 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1359 if test "${ac_cv_build+set}" = set; then
1360   echo $ECHO_N "(cached) $ECHO_C" >&6
1361 else
1362   ac_cv_build_alias=$build_alias
1363 test -z "$ac_cv_build_alias" &&
1364   ac_cv_build_alias=`$ac_config_guess`
1365 test -z "$ac_cv_build_alias" &&
1366   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1367 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1368    { (exit 1); exit 1; }; }
1369 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1370   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1371 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1372    { (exit 1); exit 1; }; }
1373
1374 fi
1375 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1376 echo "${ECHO_T}$ac_cv_build" >&6
1377 build=$ac_cv_build
1378 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1379 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1380 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1381
1382
1383 echo "$as_me:$LINENO: checking host system type" >&5
1384 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1385 if test "${ac_cv_host+set}" = set; then
1386   echo $ECHO_N "(cached) $ECHO_C" >&6
1387 else
1388   ac_cv_host_alias=$host_alias
1389 test -z "$ac_cv_host_alias" &&
1390   ac_cv_host_alias=$ac_cv_build_alias
1391 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1392   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1393 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1394    { (exit 1); exit 1; }; }
1395
1396 fi
1397 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1398 echo "${ECHO_T}$ac_cv_host" >&6
1399 host=$ac_cv_host
1400 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1401 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1402 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1403
1404
1405 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \${MAKE}" >&5
1406 echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
1407 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
1408 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1409   echo $ECHO_N "(cached) $ECHO_C" >&6
1410 else
1411   cat >conftest.make <<\_ACEOF
1412 all:
1413         @echo 'ac_maketemp="${MAKE}"'
1414 _ACEOF
1415 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1416 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1417 if test -n "$ac_maketemp"; then
1418   eval ac_cv_prog_make_${ac_make}_set=yes
1419 else
1420   eval ac_cv_prog_make_${ac_make}_set=no
1421 fi
1422 rm -f conftest.make
1423 fi
1424 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1425   echo "$as_me:$LINENO: result: yes" >&5
1426 echo "${ECHO_T}yes" >&6
1427   SET_MAKE=
1428 else
1429   echo "$as_me:$LINENO: result: no" >&5
1430 echo "${ECHO_T}no" >&6
1431   SET_MAKE="MAKE=${MAKE-make}"
1432 fi
1433
1434 ac_ext=c
1435 ac_cpp='$CPP $CPPFLAGS'
1436 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1437 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1438 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1439 if test -n "$ac_tool_prefix"; then
1440   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1441 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1442 echo "$as_me:$LINENO: checking for $ac_word" >&5
1443 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1444 if test "${ac_cv_prog_CC+set}" = set; then
1445   echo $ECHO_N "(cached) $ECHO_C" >&6
1446 else
1447   if test -n "$CC"; then
1448   ac_cv_prog_CC="$CC" # Let the user override the test.
1449 else
1450 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1451 for as_dir in $PATH
1452 do
1453   IFS=$as_save_IFS
1454   test -z "$as_dir" && as_dir=.
1455   for ac_exec_ext in '' $ac_executable_extensions; do
1456   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1457     ac_cv_prog_CC="${ac_tool_prefix}gcc"
1458     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1459     break 2
1460   fi
1461 done
1462 done
1463
1464 fi
1465 fi
1466 CC=$ac_cv_prog_CC
1467 if test -n "$CC"; then
1468   echo "$as_me:$LINENO: result: $CC" >&5
1469 echo "${ECHO_T}$CC" >&6
1470 else
1471   echo "$as_me:$LINENO: result: no" >&5
1472 echo "${ECHO_T}no" >&6
1473 fi
1474
1475 fi
1476 if test -z "$ac_cv_prog_CC"; then
1477   ac_ct_CC=$CC
1478   # Extract the first word of "gcc", so it can be a program name with args.
1479 set dummy gcc; ac_word=$2
1480 echo "$as_me:$LINENO: checking for $ac_word" >&5
1481 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1482 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1483   echo $ECHO_N "(cached) $ECHO_C" >&6
1484 else
1485   if test -n "$ac_ct_CC"; then
1486   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1487 else
1488 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1489 for as_dir in $PATH
1490 do
1491   IFS=$as_save_IFS
1492   test -z "$as_dir" && as_dir=.
1493   for ac_exec_ext in '' $ac_executable_extensions; do
1494   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1495     ac_cv_prog_ac_ct_CC="gcc"
1496     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1497     break 2
1498   fi
1499 done
1500 done
1501
1502 fi
1503 fi
1504 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1505 if test -n "$ac_ct_CC"; then
1506   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1507 echo "${ECHO_T}$ac_ct_CC" >&6
1508 else
1509   echo "$as_me:$LINENO: result: no" >&5
1510 echo "${ECHO_T}no" >&6
1511 fi
1512
1513   CC=$ac_ct_CC
1514 else
1515   CC="$ac_cv_prog_CC"
1516 fi
1517
1518 if test -z "$CC"; then
1519   if test -n "$ac_tool_prefix"; then
1520   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1521 set dummy ${ac_tool_prefix}cc; ac_word=$2
1522 echo "$as_me:$LINENO: checking for $ac_word" >&5
1523 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1524 if test "${ac_cv_prog_CC+set}" = set; then
1525   echo $ECHO_N "(cached) $ECHO_C" >&6
1526 else
1527   if test -n "$CC"; then
1528   ac_cv_prog_CC="$CC" # Let the user override the test.
1529 else
1530 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1531 for as_dir in $PATH
1532 do
1533   IFS=$as_save_IFS
1534   test -z "$as_dir" && as_dir=.
1535   for ac_exec_ext in '' $ac_executable_extensions; do
1536   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1537     ac_cv_prog_CC="${ac_tool_prefix}cc"
1538     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1539     break 2
1540   fi
1541 done
1542 done
1543
1544 fi
1545 fi
1546 CC=$ac_cv_prog_CC
1547 if test -n "$CC"; then
1548   echo "$as_me:$LINENO: result: $CC" >&5
1549 echo "${ECHO_T}$CC" >&6
1550 else
1551   echo "$as_me:$LINENO: result: no" >&5
1552 echo "${ECHO_T}no" >&6
1553 fi
1554
1555 fi
1556 if test -z "$ac_cv_prog_CC"; then
1557   ac_ct_CC=$CC
1558   # Extract the first word of "cc", so it can be a program name with args.
1559 set dummy cc; ac_word=$2
1560 echo "$as_me:$LINENO: checking for $ac_word" >&5
1561 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1562 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1563   echo $ECHO_N "(cached) $ECHO_C" >&6
1564 else
1565   if test -n "$ac_ct_CC"; then
1566   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1567 else
1568 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1569 for as_dir in $PATH
1570 do
1571   IFS=$as_save_IFS
1572   test -z "$as_dir" && as_dir=.
1573   for ac_exec_ext in '' $ac_executable_extensions; do
1574   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1575     ac_cv_prog_ac_ct_CC="cc"
1576     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1577     break 2
1578   fi
1579 done
1580 done
1581
1582 fi
1583 fi
1584 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1585 if test -n "$ac_ct_CC"; then
1586   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1587 echo "${ECHO_T}$ac_ct_CC" >&6
1588 else
1589   echo "$as_me:$LINENO: result: no" >&5
1590 echo "${ECHO_T}no" >&6
1591 fi
1592
1593   CC=$ac_ct_CC
1594 else
1595   CC="$ac_cv_prog_CC"
1596 fi
1597
1598 fi
1599 if test -z "$CC"; then
1600   # Extract the first word of "cc", so it can be a program name with args.
1601 set dummy cc; ac_word=$2
1602 echo "$as_me:$LINENO: checking for $ac_word" >&5
1603 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1604 if test "${ac_cv_prog_CC+set}" = set; then
1605   echo $ECHO_N "(cached) $ECHO_C" >&6
1606 else
1607   if test -n "$CC"; then
1608   ac_cv_prog_CC="$CC" # Let the user override the test.
1609 else
1610   ac_prog_rejected=no
1611 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1612 for as_dir in $PATH
1613 do
1614   IFS=$as_save_IFS
1615   test -z "$as_dir" && as_dir=.
1616   for ac_exec_ext in '' $ac_executable_extensions; do
1617   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1618     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1619        ac_prog_rejected=yes
1620        continue
1621      fi
1622     ac_cv_prog_CC="cc"
1623     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1624     break 2
1625   fi
1626 done
1627 done
1628
1629 if test $ac_prog_rejected = yes; then
1630   # We found a bogon in the path, so make sure we never use it.
1631   set dummy $ac_cv_prog_CC
1632   shift
1633   if test $# != 0; then
1634     # We chose a different compiler from the bogus one.
1635     # However, it has the same basename, so the bogon will be chosen
1636     # first if we set CC to just the basename; use the full file name.
1637     shift
1638     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1639   fi
1640 fi
1641 fi
1642 fi
1643 CC=$ac_cv_prog_CC
1644 if test -n "$CC"; then
1645   echo "$as_me:$LINENO: result: $CC" >&5
1646 echo "${ECHO_T}$CC" >&6
1647 else
1648   echo "$as_me:$LINENO: result: no" >&5
1649 echo "${ECHO_T}no" >&6
1650 fi
1651
1652 fi
1653 if test -z "$CC"; then
1654   if test -n "$ac_tool_prefix"; then
1655   for ac_prog in cl
1656   do
1657     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1658 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1659 echo "$as_me:$LINENO: checking for $ac_word" >&5
1660 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1661 if test "${ac_cv_prog_CC+set}" = set; then
1662   echo $ECHO_N "(cached) $ECHO_C" >&6
1663 else
1664   if test -n "$CC"; then
1665   ac_cv_prog_CC="$CC" # Let the user override the test.
1666 else
1667 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1668 for as_dir in $PATH
1669 do
1670   IFS=$as_save_IFS
1671   test -z "$as_dir" && as_dir=.
1672   for ac_exec_ext in '' $ac_executable_extensions; do
1673   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1674     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1675     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1676     break 2
1677   fi
1678 done
1679 done
1680
1681 fi
1682 fi
1683 CC=$ac_cv_prog_CC
1684 if test -n "$CC"; then
1685   echo "$as_me:$LINENO: result: $CC" >&5
1686 echo "${ECHO_T}$CC" >&6
1687 else
1688   echo "$as_me:$LINENO: result: no" >&5
1689 echo "${ECHO_T}no" >&6
1690 fi
1691
1692     test -n "$CC" && break
1693   done
1694 fi
1695 if test -z "$CC"; then
1696   ac_ct_CC=$CC
1697   for ac_prog in cl
1698 do
1699   # Extract the first word of "$ac_prog", so it can be a program name with args.
1700 set dummy $ac_prog; ac_word=$2
1701 echo "$as_me:$LINENO: checking for $ac_word" >&5
1702 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1703 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1704   echo $ECHO_N "(cached) $ECHO_C" >&6
1705 else
1706   if test -n "$ac_ct_CC"; then
1707   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1708 else
1709 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1710 for as_dir in $PATH
1711 do
1712   IFS=$as_save_IFS
1713   test -z "$as_dir" && as_dir=.
1714   for ac_exec_ext in '' $ac_executable_extensions; do
1715   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1716     ac_cv_prog_ac_ct_CC="$ac_prog"
1717     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1718     break 2
1719   fi
1720 done
1721 done
1722
1723 fi
1724 fi
1725 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1726 if test -n "$ac_ct_CC"; then
1727   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1728 echo "${ECHO_T}$ac_ct_CC" >&6
1729 else
1730   echo "$as_me:$LINENO: result: no" >&5
1731 echo "${ECHO_T}no" >&6
1732 fi
1733
1734   test -n "$ac_ct_CC" && break
1735 done
1736
1737   CC=$ac_ct_CC
1738 fi
1739
1740 fi
1741
1742
1743 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH" >&5
1744 echo "$as_me: error: no acceptable C compiler found in \$PATH" >&2;}
1745    { (exit 1); exit 1; }; }
1746
1747 # Provide some information about the compiler.
1748 echo "$as_me:$LINENO:" \
1749      "checking for C compiler version" >&5
1750 ac_compiler=`set X $ac_compile; echo $2`
1751 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1752   (eval $ac_compiler --version </dev/null >&5) 2>&5
1753   ac_status=$?
1754   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1755   (exit $ac_status); }
1756 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1757   (eval $ac_compiler -v </dev/null >&5) 2>&5
1758   ac_status=$?
1759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1760   (exit $ac_status); }
1761 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1762   (eval $ac_compiler -V </dev/null >&5) 2>&5
1763   ac_status=$?
1764   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1765   (exit $ac_status); }
1766
1767 cat >conftest.$ac_ext <<_ACEOF
1768 #line $LINENO "configure"
1769 #include "confdefs.h"
1770
1771 int
1772 main ()
1773 {
1774
1775   ;
1776   return 0;
1777 }
1778 _ACEOF
1779 ac_clean_files_save=$ac_clean_files
1780 ac_clean_files="$ac_clean_files a.out a.exe"
1781 # Try to create an executable without -o first, disregard a.out.
1782 # It will help us diagnose broken compilers, and finding out an intuition
1783 # of exeext.
1784 echo "$as_me:$LINENO: checking for C compiler default output" >&5
1785 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1786 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1787 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1788   (eval $ac_link_default) 2>&5
1789   ac_status=$?
1790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1791   (exit $ac_status); }; then
1792   # Find the output, starting from the most likely.  This scheme is
1793 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1794 # resort.
1795
1796 # Be careful to initialize this variable, since it used to be cached.
1797 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1798 ac_cv_exeext=
1799 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.*; do
1800   test -f "$ac_file" || continue
1801   case $ac_file in
1802     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1803     a.out ) # We found the default executable, but exeext='' is most
1804             # certainly right.
1805             break;;
1806     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1807           # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
1808           export ac_cv_exeext
1809           break;;
1810     * ) break;;
1811   esac
1812 done
1813 else
1814   echo "$as_me: failed program was:" >&5
1815 cat conftest.$ac_ext >&5
1816 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1817 check \`config.log' for details." >&5
1818 echo "$as_me: error: C compiler cannot create executables
1819 check \`config.log' for details." >&2;}
1820    { (exit 77); exit 77; }; }
1821 fi
1822
1823 ac_exeext=$ac_cv_exeext
1824 echo "$as_me:$LINENO: result: $ac_file" >&5
1825 echo "${ECHO_T}$ac_file" >&6
1826
1827 # Check the compiler produces executables we can run.  If not, either
1828 # the compiler is broken, or we cross compile.
1829 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1830 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1831 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1832 # If not cross compiling, check that we can run a simple program.
1833 if test "$cross_compiling" != yes; then
1834   if { ac_try='./$ac_file'
1835   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1836   (eval $ac_try) 2>&5
1837   ac_status=$?
1838   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1839   (exit $ac_status); }; }; then
1840     cross_compiling=no
1841   else
1842     if test "$cross_compiling" = maybe; then
1843         cross_compiling=yes
1844     else
1845         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1846 If you meant to cross compile, use \`--host'." >&5
1847 echo "$as_me: error: cannot run C compiled programs.
1848 If you meant to cross compile, use \`--host'." >&2;}
1849    { (exit 1); exit 1; }; }
1850     fi
1851   fi
1852 fi
1853 echo "$as_me:$LINENO: result: yes" >&5
1854 echo "${ECHO_T}yes" >&6
1855
1856 rm -f a.out a.exe conftest$ac_cv_exeext
1857 ac_clean_files=$ac_clean_files_save
1858 # Check the compiler produces executables we can run.  If not, either
1859 # the compiler is broken, or we cross compile.
1860 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1861 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1862 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1863 echo "${ECHO_T}$cross_compiling" >&6
1864
1865 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1866 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1867 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1868   (eval $ac_link) 2>&5
1869   ac_status=$?
1870   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1871   (exit $ac_status); }; then
1872   # If both `conftest.exe' and `conftest' are `present' (well, observable)
1873 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
1874 # work properly (i.e., refer to `conftest.exe'), while it won't with
1875 # `rm'.
1876 for ac_file in conftest.exe conftest conftest.*; do
1877   test -f "$ac_file" || continue
1878   case $ac_file in
1879     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1880     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1881           export ac_cv_exeext
1882           break;;
1883     * ) break;;
1884   esac
1885 done
1886 else
1887   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link" >&5
1888 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link" >&2;}
1889    { (exit 1); exit 1; }; }
1890 fi
1891
1892 rm -f conftest$ac_cv_exeext
1893 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1894 echo "${ECHO_T}$ac_cv_exeext" >&6
1895
1896 rm -f conftest.$ac_ext
1897 EXEEXT=$ac_cv_exeext
1898 ac_exeext=$EXEEXT
1899 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1900 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1901 if test "${ac_cv_objext+set}" = set; then
1902   echo $ECHO_N "(cached) $ECHO_C" >&6
1903 else
1904   cat >conftest.$ac_ext <<_ACEOF
1905 #line $LINENO "configure"
1906 #include "confdefs.h"
1907
1908 int
1909 main ()
1910 {
1911
1912   ;
1913   return 0;
1914 }
1915 _ACEOF
1916 rm -f conftest.o conftest.obj
1917 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1918   (eval $ac_compile) 2>&5
1919   ac_status=$?
1920   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1921   (exit $ac_status); }; then
1922   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1923   case $ac_file in
1924     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1925     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1926        break;;
1927   esac
1928 done
1929 else
1930   echo "$as_me: failed program was:" >&5
1931 cat conftest.$ac_ext >&5
1932 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile" >&5
1933 echo "$as_me: error: cannot compute suffix of object files: cannot compile" >&2;}
1934    { (exit 1); exit 1; }; }
1935 fi
1936
1937 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1938 fi
1939 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1940 echo "${ECHO_T}$ac_cv_objext" >&6
1941 OBJEXT=$ac_cv_objext
1942 ac_objext=$OBJEXT
1943 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1944 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1945 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1946   echo $ECHO_N "(cached) $ECHO_C" >&6
1947 else
1948   cat >conftest.$ac_ext <<_ACEOF
1949 #line $LINENO "configure"
1950 #include "confdefs.h"
1951
1952 int
1953 main ()
1954 {
1955 #ifndef __GNUC__
1956        choke me
1957 #endif
1958
1959   ;
1960   return 0;
1961 }
1962 _ACEOF
1963 rm -f conftest.$ac_objext
1964 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1965   (eval $ac_compile) 2>&5
1966   ac_status=$?
1967   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1968   (exit $ac_status); } &&
1969          { ac_try='test -s conftest.$ac_objext'
1970   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1971   (eval $ac_try) 2>&5
1972   ac_status=$?
1973   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1974   (exit $ac_status); }; }; then
1975   ac_compiler_gnu=yes
1976 else
1977   echo "$as_me: failed program was:" >&5
1978 cat conftest.$ac_ext >&5
1979 ac_compiler_gnu=no
1980 fi
1981 rm -f conftest.$ac_objext conftest.$ac_ext
1982 ac_cv_c_compiler_gnu=$ac_compiler_gnu
1983
1984 fi
1985 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
1986 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1987 GCC=`test $ac_compiler_gnu = yes && echo yes`
1988 ac_test_CFLAGS=${CFLAGS+set}
1989 ac_save_CFLAGS=$CFLAGS
1990 CFLAGS="-g"
1991 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
1992 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1993 if test "${ac_cv_prog_cc_g+set}" = set; then
1994   echo $ECHO_N "(cached) $ECHO_C" >&6
1995 else
1996   cat >conftest.$ac_ext <<_ACEOF
1997 #line $LINENO "configure"
1998 #include "confdefs.h"
1999
2000 int
2001 main ()
2002 {
2003
2004   ;
2005   return 0;
2006 }
2007 _ACEOF
2008 rm -f conftest.$ac_objext
2009 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2010   (eval $ac_compile) 2>&5
2011   ac_status=$?
2012   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2013   (exit $ac_status); } &&
2014          { ac_try='test -s conftest.$ac_objext'
2015   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2016   (eval $ac_try) 2>&5
2017   ac_status=$?
2018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2019   (exit $ac_status); }; }; then
2020   ac_cv_prog_cc_g=yes
2021 else
2022   echo "$as_me: failed program was:" >&5
2023 cat conftest.$ac_ext >&5
2024 ac_cv_prog_cc_g=no
2025 fi
2026 rm -f conftest.$ac_objext conftest.$ac_ext
2027 fi
2028 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2029 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2030 if test "$ac_test_CFLAGS" = set; then
2031   CFLAGS=$ac_save_CFLAGS
2032 elif test $ac_cv_prog_cc_g = yes; then
2033   if test "$GCC" = yes; then
2034     CFLAGS="-g -O2"
2035   else
2036     CFLAGS="-g"
2037   fi
2038 else
2039   if test "$GCC" = yes; then
2040     CFLAGS="-O2"
2041   else
2042     CFLAGS=
2043   fi
2044 fi
2045 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2046 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2047 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2048   echo $ECHO_N "(cached) $ECHO_C" >&6
2049 else
2050   ac_cv_prog_cc_stdc=no
2051 ac_save_CC=$CC
2052 cat >conftest.$ac_ext <<_ACEOF
2053 #line $LINENO "configure"
2054 #include "confdefs.h"
2055 #include <stdarg.h>
2056 #include <stdio.h>
2057 #include <sys/types.h>
2058 #include <sys/stat.h>
2059 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2060 struct buf { int x; };
2061 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2062 static char *e (p, i)
2063      char **p;
2064      int i;
2065 {
2066   return p[i];
2067 }
2068 static char *f (char * (*g) (char **, int), char **p, ...)
2069 {
2070   char *s;
2071   va_list v;
2072   va_start (v,p);
2073   s = g (p, va_arg (v,int));
2074   va_end (v);
2075   return s;
2076 }
2077 int test (int i, double x);
2078 struct s1 {int (*f) (int a);};
2079 struct s2 {int (*f) (double a);};
2080 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2081 int argc;
2082 char **argv;
2083 int
2084 main ()
2085 {
2086 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2087   ;
2088   return 0;
2089 }
2090 _ACEOF
2091 # Don't try gcc -ansi; that turns off useful extensions and
2092 # breaks some systems' header files.
2093 # AIX                   -qlanglvl=ansi
2094 # Ultrix and OSF/1      -std1
2095 # HP-UX 10.20 and later -Ae
2096 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2097 # SVR4                  -Xc -D__EXTENSIONS__
2098 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2099 do
2100   CC="$ac_save_CC $ac_arg"
2101   rm -f conftest.$ac_objext
2102 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2103   (eval $ac_compile) 2>&5
2104   ac_status=$?
2105   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2106   (exit $ac_status); } &&
2107          { ac_try='test -s conftest.$ac_objext'
2108   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2109   (eval $ac_try) 2>&5
2110   ac_status=$?
2111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2112   (exit $ac_status); }; }; then
2113   ac_cv_prog_cc_stdc=$ac_arg
2114 break
2115 else
2116   echo "$as_me: failed program was:" >&5
2117 cat conftest.$ac_ext >&5
2118 fi
2119 rm -f conftest.$ac_objext
2120 done
2121 rm -f conftest.$ac_ext conftest.$ac_objext
2122 CC=$ac_save_CC
2123
2124 fi
2125
2126 case "x$ac_cv_prog_cc_stdc" in
2127   x|xno)
2128     echo "$as_me:$LINENO: result: none needed" >&5
2129 echo "${ECHO_T}none needed" >&6 ;;
2130   *)
2131     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2132 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2133     CC="$CC $ac_cv_prog_cc_stdc" ;;
2134 esac
2135
2136 # Some people use a C++ compiler to compile C.  Since we use `exit',
2137 # in C++ we need to declare it.  In case someone uses the same compiler
2138 # for both compiling C and C++ we need to have the C++ compiler decide
2139 # the declaration of exit, since it's the most demanding environment.
2140 cat >conftest.$ac_ext <<_ACEOF
2141 #ifndef __cplusplus
2142   choke me
2143 #endif
2144 _ACEOF
2145 rm -f conftest.$ac_objext
2146 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2147   (eval $ac_compile) 2>&5
2148   ac_status=$?
2149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2150   (exit $ac_status); } &&
2151          { ac_try='test -s conftest.$ac_objext'
2152   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2153   (eval $ac_try) 2>&5
2154   ac_status=$?
2155   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2156   (exit $ac_status); }; }; then
2157   for ac_declaration in \
2158    ''\
2159    '#include <stdlib.h>' \
2160    'extern "C" void std::exit (int) throw (); using std::exit;' \
2161    'extern "C" void std::exit (int); using std::exit;' \
2162    'extern "C" void exit (int) throw ();' \
2163    'extern "C" void exit (int);' \
2164    'void exit (int);'
2165 do
2166   cat >conftest.$ac_ext <<_ACEOF
2167 #line $LINENO "configure"
2168 #include "confdefs.h"
2169 #include <stdlib.h>
2170 $ac_declaration
2171 int
2172 main ()
2173 {
2174 exit (42);
2175   ;
2176   return 0;
2177 }
2178 _ACEOF
2179 rm -f conftest.$ac_objext
2180 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2181   (eval $ac_compile) 2>&5
2182   ac_status=$?
2183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2184   (exit $ac_status); } &&
2185          { ac_try='test -s conftest.$ac_objext'
2186   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2187   (eval $ac_try) 2>&5
2188   ac_status=$?
2189   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2190   (exit $ac_status); }; }; then
2191   :
2192 else
2193   echo "$as_me: failed program was:" >&5
2194 cat conftest.$ac_ext >&5
2195 continue
2196 fi
2197 rm -f conftest.$ac_objext conftest.$ac_ext
2198   cat >conftest.$ac_ext <<_ACEOF
2199 #line $LINENO "configure"
2200 #include "confdefs.h"
2201 $ac_declaration
2202 int
2203 main ()
2204 {
2205 exit (42);
2206   ;
2207   return 0;
2208 }
2209 _ACEOF
2210 rm -f conftest.$ac_objext
2211 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2212   (eval $ac_compile) 2>&5
2213   ac_status=$?
2214   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2215   (exit $ac_status); } &&
2216          { ac_try='test -s conftest.$ac_objext'
2217   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2218   (eval $ac_try) 2>&5
2219   ac_status=$?
2220   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2221   (exit $ac_status); }; }; then
2222   break
2223 else
2224   echo "$as_me: failed program was:" >&5
2225 cat conftest.$ac_ext >&5
2226 fi
2227 rm -f conftest.$ac_objext conftest.$ac_ext
2228 done
2229 rm -f conftest*
2230 if test -n "$ac_declaration"; then
2231   echo '#ifdef __cplusplus' >>confdefs.h
2232   echo $ac_declaration      >>confdefs.h
2233   echo '#endif'             >>confdefs.h
2234 fi
2235
2236 else
2237   echo "$as_me: failed program was:" >&5
2238 cat conftest.$ac_ext >&5
2239 fi
2240 rm -f conftest.$ac_objext conftest.$ac_ext
2241 ac_ext=c
2242 ac_cpp='$CPP $CPPFLAGS'
2243 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2244 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2245 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2246
2247 ac_ext=c
2248 ac_cpp='$CPP $CPPFLAGS'
2249 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2250 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2251 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2252 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2253 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2254 # On Suns, sometimes $CPP names a directory.
2255 if test -n "$CPP" && test -d "$CPP"; then
2256   CPP=
2257 fi
2258 if test -z "$CPP"; then
2259   if test "${ac_cv_prog_CPP+set}" = set; then
2260   echo $ECHO_N "(cached) $ECHO_C" >&6
2261 else
2262       # Double quotes because CPP needs to be expanded
2263     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2264     do
2265       ac_preproc_ok=false
2266 for ac_c_preproc_warn_flag in '' yes
2267 do
2268   # Use a header file that comes with gcc, so configuring glibc
2269   # with a fresh cross-compiler works.
2270   # On the NeXT, cc -E runs the code through the compiler's parser,
2271   # not just through cpp. "Syntax error" is here to catch this case.
2272   cat >conftest.$ac_ext <<_ACEOF
2273 #line $LINENO "configure"
2274 #include "confdefs.h"
2275 #include <assert.h>
2276                      Syntax error
2277 _ACEOF
2278 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2279   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2280   ac_status=$?
2281   grep -v '^ *+' conftest.er1 >conftest.err
2282   rm -f conftest.er1
2283   cat conftest.err >&5
2284   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2285   (exit $ac_status); } >/dev/null; then
2286   if test -s conftest.err; then
2287     ac_cpp_err=$ac_c_preproc_warn_flag
2288   else
2289     ac_cpp_err=
2290   fi
2291 else
2292   ac_cpp_err=yes
2293 fi
2294 if test -z "$ac_cpp_err"; then
2295   :
2296 else
2297   echo "$as_me: failed program was:" >&5
2298   cat conftest.$ac_ext >&5
2299   # Broken: fails on valid input.
2300 continue
2301 fi
2302 rm -f conftest.err conftest.$ac_ext
2303
2304   # OK, works on sane cases.  Now check whether non-existent headers
2305   # can be detected and how.
2306   cat >conftest.$ac_ext <<_ACEOF
2307 #line $LINENO "configure"
2308 #include "confdefs.h"
2309 #include <ac_nonexistent.h>
2310 _ACEOF
2311 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2312   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2313   ac_status=$?
2314   grep -v '^ *+' conftest.er1 >conftest.err
2315   rm -f conftest.er1
2316   cat conftest.err >&5
2317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2318   (exit $ac_status); } >/dev/null; then
2319   if test -s conftest.err; then
2320     ac_cpp_err=$ac_c_preproc_warn_flag
2321   else
2322     ac_cpp_err=
2323   fi
2324 else
2325   ac_cpp_err=yes
2326 fi
2327 if test -z "$ac_cpp_err"; then
2328   # Broken: success on invalid input.
2329 continue
2330 else
2331   echo "$as_me: failed program was:" >&5
2332   cat conftest.$ac_ext >&5
2333   # Passes both tests.
2334 ac_preproc_ok=:
2335 break
2336 fi
2337 rm -f conftest.err conftest.$ac_ext
2338
2339 done
2340 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2341 rm -f conftest.err conftest.$ac_ext
2342 if $ac_preproc_ok; then
2343   break
2344 fi
2345
2346     done
2347     ac_cv_prog_CPP=$CPP
2348
2349 fi
2350   CPP=$ac_cv_prog_CPP
2351 else
2352   ac_cv_prog_CPP=$CPP
2353 fi
2354 echo "$as_me:$LINENO: result: $CPP" >&5
2355 echo "${ECHO_T}$CPP" >&6
2356 ac_preproc_ok=false
2357 for ac_c_preproc_warn_flag in '' yes
2358 do
2359   # Use a header file that comes with gcc, so configuring glibc
2360   # with a fresh cross-compiler works.
2361   # On the NeXT, cc -E runs the code through the compiler's parser,
2362   # not just through cpp. "Syntax error" is here to catch this case.
2363   cat >conftest.$ac_ext <<_ACEOF
2364 #line $LINENO "configure"
2365 #include "confdefs.h"
2366 #include <assert.h>
2367                      Syntax error
2368 _ACEOF
2369 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2370   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2371   ac_status=$?
2372   grep -v '^ *+' conftest.er1 >conftest.err
2373   rm -f conftest.er1
2374   cat conftest.err >&5
2375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2376   (exit $ac_status); } >/dev/null; then
2377   if test -s conftest.err; then
2378     ac_cpp_err=$ac_c_preproc_warn_flag
2379   else
2380     ac_cpp_err=
2381   fi
2382 else
2383   ac_cpp_err=yes
2384 fi
2385 if test -z "$ac_cpp_err"; then
2386   :
2387 else
2388   echo "$as_me: failed program was:" >&5
2389   cat conftest.$ac_ext >&5
2390   # Broken: fails on valid input.
2391 continue
2392 fi
2393 rm -f conftest.err conftest.$ac_ext
2394
2395   # OK, works on sane cases.  Now check whether non-existent headers
2396   # can be detected and how.
2397   cat >conftest.$ac_ext <<_ACEOF
2398 #line $LINENO "configure"
2399 #include "confdefs.h"
2400 #include <ac_nonexistent.h>
2401 _ACEOF
2402 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2403   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2404   ac_status=$?
2405   grep -v '^ *+' conftest.er1 >conftest.err
2406   rm -f conftest.er1
2407   cat conftest.err >&5
2408   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2409   (exit $ac_status); } >/dev/null; then
2410   if test -s conftest.err; then
2411     ac_cpp_err=$ac_c_preproc_warn_flag
2412   else
2413     ac_cpp_err=
2414   fi
2415 else
2416   ac_cpp_err=yes
2417 fi
2418 if test -z "$ac_cpp_err"; then
2419   # Broken: success on invalid input.
2420 continue
2421 else
2422   echo "$as_me: failed program was:" >&5
2423   cat conftest.$ac_ext >&5
2424   # Passes both tests.
2425 ac_preproc_ok=:
2426 break
2427 fi
2428 rm -f conftest.err conftest.$ac_ext
2429
2430 done
2431 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2432 rm -f conftest.err conftest.$ac_ext
2433 if $ac_preproc_ok; then
2434   :
2435 else
2436   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check" >&5
2437 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
2438    { (exit 1); exit 1; }; }
2439 fi
2440
2441 ac_ext=c
2442 ac_cpp='$CPP $CPPFLAGS'
2443 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2444 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2445 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2446
2447
2448 echo "$as_me:$LINENO: checking for the directory containing the Wine tools" >&5
2449 echo $ECHO_N "checking for the directory containing the Wine tools... $ECHO_C" >&6
2450 if test "${wine_cv_toolsdir+set}" = set; then
2451   echo $ECHO_N "(cached) $ECHO_C" >&6
2452 else
2453   if test -z "$with_wine_tools"; then
2454      if test "$cross_compiling" = "yes"; then
2455        { { echo "$as_me:$LINENO: error: you must use the --with-wine-tools option when cross-compiling." >&5
2456 echo "$as_me: error: you must use the --with-wine-tools option when cross-compiling." >&2;}
2457    { (exit 1); exit 1; }; }
2458      else
2459        wine_cv_toolsdir="\$(TOPOBJDIR)"
2460      fi
2461    elif test -d "$with_wine_tools/tools/winebuild"; then
2462      case $with_wine_tools in
2463        /*) wine_cv_toolsdir="$with_wine_tools" ;;
2464        *)  wine_cv_toolsdir="\$(TOPOBJDIR)/$with_wine_tools" ;;
2465      esac
2466    else
2467      { { echo "$as_me:$LINENO: error: could not find Wine tools in $with_wine_tools." >&5
2468 echo "$as_me: error: could not find Wine tools in $with_wine_tools." >&2;}
2469    { (exit 1); exit 1; }; }
2470    fi
2471 fi
2472 echo "$as_me:$LINENO: result: $wine_cv_toolsdir" >&5
2473 echo "${ECHO_T}$wine_cv_toolsdir" >&6
2474 TOOLSDIR=$wine_cv_toolsdir
2475
2476
2477
2478
2479 echo "$as_me:$LINENO: checking for X" >&5
2480 echo $ECHO_N "checking for X... $ECHO_C" >&6
2481
2482
2483 # Check whether --with-x or --without-x was given.
2484 if test "${with_x+set}" = set; then
2485   withval="$with_x"
2486
2487 fi;
2488 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
2489 if test "x$with_x" = xno; then
2490   # The user explicitly disabled X.
2491   have_x=disabled
2492 else
2493   if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
2494     # Both variables are already set.
2495     have_x=yes
2496   else
2497     if test "${ac_cv_have_x+set}" = set; then
2498   echo $ECHO_N "(cached) $ECHO_C" >&6
2499 else
2500   # One or both of the vars are not set, and there is no cached value.
2501 ac_x_includes=no ac_x_libraries=no
2502 rm -fr conftest.dir
2503 if mkdir conftest.dir; then
2504   cd conftest.dir
2505   # Make sure to not put "make" in the Imakefile rules, since we grep it out.
2506   cat >Imakefile <<'_ACEOF'
2507 acfindx:
2508         @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
2509 _ACEOF
2510   if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
2511     # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2512     eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
2513     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
2514     for ac_extension in a so sl; do
2515       if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
2516          test -f $ac_im_libdir/libX11.$ac_extension; then
2517         ac_im_usrlibdir=$ac_im_libdir; break
2518       fi
2519     done
2520     # Screen out bogus values from the imake configuration.  They are
2521     # bogus both because they are the default anyway, and because
2522     # using them would break gcc on systems where it needs fixed includes.
2523     case $ac_im_incroot in
2524         /usr/include) ;;
2525         *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
2526     esac
2527     case $ac_im_usrlibdir in
2528         /usr/lib | /lib) ;;
2529         *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
2530     esac
2531   fi
2532   cd ..
2533   rm -fr conftest.dir
2534 fi
2535
2536 # Standard set of common directories for X headers.
2537 # Check X11 before X11Rn because it is often a symlink to the current release.
2538 ac_x_header_dirs='
2539 /usr/X11/include
2540 /usr/X11R6/include
2541 /usr/X11R5/include
2542 /usr/X11R4/include
2543
2544 /usr/include/X11
2545 /usr/include/X11R6
2546 /usr/include/X11R5
2547 /usr/include/X11R4
2548
2549 /usr/local/X11/include
2550 /usr/local/X11R6/include
2551 /usr/local/X11R5/include
2552 /usr/local/X11R4/include
2553
2554 /usr/local/include/X11
2555 /usr/local/include/X11R6
2556 /usr/local/include/X11R5
2557 /usr/local/include/X11R4
2558
2559 /usr/X386/include
2560 /usr/x386/include
2561 /usr/XFree86/include/X11
2562
2563 /usr/include
2564 /usr/local/include
2565 /usr/unsupported/include
2566 /usr/athena/include
2567 /usr/local/x11r5/include
2568 /usr/lpp/Xamples/include
2569
2570 /usr/openwin/include
2571 /usr/openwin/share/include'
2572
2573 if test "$ac_x_includes" = no; then
2574   # Guess where to find include files, by looking for Intrinsic.h.
2575   # First, try using that file with no special directory specified.
2576   cat >conftest.$ac_ext <<_ACEOF
2577 #line $LINENO "configure"
2578 #include "confdefs.h"
2579 #include <X11/Intrinsic.h>
2580 _ACEOF
2581 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2582   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2583   ac_status=$?
2584   grep -v '^ *+' conftest.er1 >conftest.err
2585   rm -f conftest.er1
2586   cat conftest.err >&5
2587   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2588   (exit $ac_status); } >/dev/null; then
2589   if test -s conftest.err; then
2590     ac_cpp_err=$ac_c_preproc_warn_flag
2591   else
2592     ac_cpp_err=
2593   fi
2594 else
2595   ac_cpp_err=yes
2596 fi
2597 if test -z "$ac_cpp_err"; then
2598   # We can compile using X headers with no special include directory.
2599 ac_x_includes=
2600 else
2601   echo "$as_me: failed program was:" >&5
2602   cat conftest.$ac_ext >&5
2603   for ac_dir in $ac_x_header_dirs; do
2604   if test -r "$ac_dir/X11/Intrinsic.h"; then
2605     ac_x_includes=$ac_dir
2606     break
2607   fi
2608 done
2609 fi
2610 rm -f conftest.err conftest.$ac_ext
2611 fi # $ac_x_includes = no
2612
2613 if test "$ac_x_libraries" = no; then
2614   # Check for the libraries.
2615   # See if we find them without any special options.
2616   # Don't add to $LIBS permanently.
2617   ac_save_LIBS=$LIBS
2618   LIBS="-lXt $LIBS"
2619   cat >conftest.$ac_ext <<_ACEOF
2620 #line $LINENO "configure"
2621 #include "confdefs.h"
2622 #include <X11/Intrinsic.h>
2623 int
2624 main ()
2625 {
2626 XtMalloc (0)
2627   ;
2628   return 0;
2629 }
2630 _ACEOF
2631 rm -f conftest.$ac_objext conftest$ac_exeext
2632 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2633   (eval $ac_link) 2>&5
2634   ac_status=$?
2635   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2636   (exit $ac_status); } &&
2637          { ac_try='test -s conftest$ac_exeext'
2638   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2639   (eval $ac_try) 2>&5
2640   ac_status=$?
2641   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2642   (exit $ac_status); }; }; then
2643   LIBS=$ac_save_LIBS
2644 # We can link X programs with no special library path.
2645 ac_x_libraries=
2646 else
2647   echo "$as_me: failed program was:" >&5
2648 cat conftest.$ac_ext >&5
2649 LIBS=$ac_save_LIBS
2650 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
2651 do
2652   # Don't even attempt the hair of trying to link an X program!
2653   for ac_extension in a so sl; do
2654     if test -r $ac_dir/libXt.$ac_extension; then
2655       ac_x_libraries=$ac_dir
2656       break 2
2657     fi
2658   done
2659 done
2660 fi
2661 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2662 fi # $ac_x_libraries = no
2663
2664 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
2665   # Didn't find X anywhere.  Cache the known absence of X.
2666   ac_cv_have_x="have_x=no"
2667 else
2668   # Record where we found X for the cache.
2669   ac_cv_have_x="have_x=yes \
2670                 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
2671 fi
2672 fi
2673
2674   fi
2675   eval "$ac_cv_have_x"
2676 fi # $with_x != no
2677
2678 if test "$have_x" != yes; then
2679   echo "$as_me:$LINENO: result: $have_x" >&5
2680 echo "${ECHO_T}$have_x" >&6
2681   no_x=yes
2682 else
2683   # If each of the values was on the command line, it overrides each guess.
2684   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
2685   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
2686   # Update the cache value to reflect the command line values.
2687   ac_cv_have_x="have_x=yes \
2688                 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
2689   echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
2690 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
2691 fi
2692
2693 if test "$no_x" = yes; then
2694   # Not all programs may use this symbol, but it does not hurt to define it.
2695
2696 cat >>confdefs.h <<\_ACEOF
2697 #define X_DISPLAY_MISSING 1
2698 _ACEOF
2699
2700   X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
2701 else
2702   if test -n "$x_includes"; then
2703     X_CFLAGS="$X_CFLAGS -I$x_includes"
2704   fi
2705
2706   # It would also be nice to do this for all -L options, not just this one.
2707   if test -n "$x_libraries"; then
2708     X_LIBS="$X_LIBS -L$x_libraries"
2709     # For Solaris; some versions of Sun CC require a space after -R and
2710     # others require no space.  Words are not sufficient . . . .
2711     case `(uname -sr) 2>/dev/null` in
2712     "SunOS 5"*)
2713       echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
2714 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
2715       ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
2716       cat >conftest.$ac_ext <<_ACEOF
2717 #line $LINENO "configure"
2718 #include "confdefs.h"
2719
2720 int
2721 main ()
2722 {
2723
2724   ;
2725   return 0;
2726 }
2727 _ACEOF
2728 rm -f conftest.$ac_objext conftest$ac_exeext
2729 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2730   (eval $ac_link) 2>&5
2731   ac_status=$?
2732   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2733   (exit $ac_status); } &&
2734          { ac_try='test -s conftest$ac_exeext'
2735   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2736   (eval $ac_try) 2>&5
2737   ac_status=$?
2738   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2739   (exit $ac_status); }; }; then
2740   ac_R_nospace=yes
2741 else
2742   echo "$as_me: failed program was:" >&5
2743 cat conftest.$ac_ext >&5
2744 ac_R_nospace=no
2745 fi
2746 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2747       if test $ac_R_nospace = yes; then
2748         echo "$as_me:$LINENO: result: no" >&5
2749 echo "${ECHO_T}no" >&6
2750         X_LIBS="$X_LIBS -R$x_libraries"
2751       else
2752         LIBS="$ac_xsave_LIBS -R $x_libraries"
2753         cat >conftest.$ac_ext <<_ACEOF
2754 #line $LINENO "configure"
2755 #include "confdefs.h"
2756
2757 int
2758 main ()
2759 {
2760
2761   ;
2762   return 0;
2763 }
2764 _ACEOF
2765 rm -f conftest.$ac_objext conftest$ac_exeext
2766 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2767   (eval $ac_link) 2>&5
2768   ac_status=$?
2769   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2770   (exit $ac_status); } &&
2771          { ac_try='test -s conftest$ac_exeext'
2772   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2773   (eval $ac_try) 2>&5
2774   ac_status=$?
2775   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2776   (exit $ac_status); }; }; then
2777   ac_R_space=yes
2778 else
2779   echo "$as_me: failed program was:" >&5
2780 cat conftest.$ac_ext >&5
2781 ac_R_space=no
2782 fi
2783 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2784         if test $ac_R_space = yes; then
2785           echo "$as_me:$LINENO: result: yes" >&5
2786 echo "${ECHO_T}yes" >&6
2787           X_LIBS="$X_LIBS -R $x_libraries"
2788         else
2789           echo "$as_me:$LINENO: result: neither works" >&5
2790 echo "${ECHO_T}neither works" >&6
2791         fi
2792       fi
2793       LIBS=$ac_xsave_LIBS
2794     esac
2795   fi
2796
2797   # Check for system-dependent libraries X programs must link with.
2798   # Do this before checking for the system-independent R6 libraries
2799   # (-lICE), since we may need -lsocket or whatever for X linking.
2800
2801   if test "$ISC" = yes; then
2802     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
2803   else
2804     # Martyn Johnson says this is needed for Ultrix, if the X
2805     # libraries were built with DECnet support.  And Karl Berry says
2806     # the Alpha needs dnet_stub (dnet does not exist).
2807     ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
2808     cat >conftest.$ac_ext <<_ACEOF
2809 #line $LINENO "configure"
2810 #include "confdefs.h"
2811
2812 /* Override any gcc2 internal prototype to avoid an error.  */
2813 #ifdef __cplusplus
2814 extern "C"
2815 #endif
2816 /* We use char because int might match the return type of a gcc2
2817    builtin and then its argument prototype would still apply.  */
2818 char XOpenDisplay ();
2819 int
2820 main ()
2821 {
2822 XOpenDisplay ();
2823   ;
2824   return 0;
2825 }
2826 _ACEOF
2827 rm -f conftest.$ac_objext conftest$ac_exeext
2828 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2829   (eval $ac_link) 2>&5
2830   ac_status=$?
2831   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2832   (exit $ac_status); } &&
2833          { ac_try='test -s conftest$ac_exeext'
2834   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2835   (eval $ac_try) 2>&5
2836   ac_status=$?
2837   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2838   (exit $ac_status); }; }; then
2839   :
2840 else
2841   echo "$as_me: failed program was:" >&5
2842 cat conftest.$ac_ext >&5
2843 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
2844 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
2845 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
2846   echo $ECHO_N "(cached) $ECHO_C" >&6
2847 else
2848   ac_check_lib_save_LIBS=$LIBS
2849 LIBS="-ldnet  $LIBS"
2850 cat >conftest.$ac_ext <<_ACEOF
2851 #line $LINENO "configure"
2852 #include "confdefs.h"
2853
2854 /* Override any gcc2 internal prototype to avoid an error.  */
2855 #ifdef __cplusplus
2856 extern "C"
2857 #endif
2858 /* We use char because int might match the return type of a gcc2
2859    builtin and then its argument prototype would still apply.  */
2860 char dnet_ntoa ();
2861 int
2862 main ()
2863 {
2864 dnet_ntoa ();
2865   ;
2866   return 0;
2867 }
2868 _ACEOF
2869 rm -f conftest.$ac_objext conftest$ac_exeext
2870 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2871   (eval $ac_link) 2>&5
2872   ac_status=$?
2873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2874   (exit $ac_status); } &&
2875          { ac_try='test -s conftest$ac_exeext'
2876   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2877   (eval $ac_try) 2>&5
2878   ac_status=$?
2879   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2880   (exit $ac_status); }; }; then
2881   ac_cv_lib_dnet_dnet_ntoa=yes
2882 else
2883   echo "$as_me: failed program was:" >&5
2884 cat conftest.$ac_ext >&5
2885 ac_cv_lib_dnet_dnet_ntoa=no
2886 fi
2887 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2888 LIBS=$ac_check_lib_save_LIBS
2889 fi
2890 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
2891 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
2892 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
2893   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
2894 fi
2895
2896     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
2897       echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
2898 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
2899 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
2900   echo $ECHO_N "(cached) $ECHO_C" >&6
2901 else
2902   ac_check_lib_save_LIBS=$LIBS
2903 LIBS="-ldnet_stub  $LIBS"
2904 cat >conftest.$ac_ext <<_ACEOF
2905 #line $LINENO "configure"
2906 #include "confdefs.h"
2907
2908 /* Override any gcc2 internal prototype to avoid an error.  */
2909 #ifdef __cplusplus
2910 extern "C"
2911 #endif
2912 /* We use char because int might match the return type of a gcc2
2913    builtin and then its argument prototype would still apply.  */
2914 char dnet_ntoa ();
2915 int
2916 main ()
2917 {
2918 dnet_ntoa ();
2919   ;
2920   return 0;
2921 }
2922 _ACEOF
2923 rm -f conftest.$ac_objext conftest$ac_exeext
2924 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2925   (eval $ac_link) 2>&5
2926   ac_status=$?
2927   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2928   (exit $ac_status); } &&
2929          { ac_try='test -s conftest$ac_exeext'
2930   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2931   (eval $ac_try) 2>&5
2932   ac_status=$?
2933   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2934   (exit $ac_status); }; }; then
2935   ac_cv_lib_dnet_stub_dnet_ntoa=yes
2936 else
2937   echo "$as_me: failed program was:" >&5
2938 cat conftest.$ac_ext >&5
2939 ac_cv_lib_dnet_stub_dnet_ntoa=no
2940 fi
2941 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2942 LIBS=$ac_check_lib_save_LIBS
2943 fi
2944 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
2945 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
2946 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
2947   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
2948 fi
2949
2950     fi
2951 fi
2952 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2953     LIBS="$ac_xsave_LIBS"
2954
2955     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
2956     # to get the SysV transport functions.
2957     # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
2958     # needs -lnsl.
2959     # The nsl library prevents programs from opening the X display
2960     # on Irix 5.2, according to T.E. Dickey.
2961     # The functions gethostbyname, getservbyname, and inet_addr are
2962     # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
2963     echo "$as_me:$LINENO: checking for gethostbyname" >&5
2964 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
2965 if test "${ac_cv_func_gethostbyname+set}" = set; then
2966   echo $ECHO_N "(cached) $ECHO_C" >&6
2967 else
2968   cat >conftest.$ac_ext <<_ACEOF
2969 #line $LINENO "configure"
2970 #include "confdefs.h"
2971 /* System header to define __stub macros and hopefully few prototypes,
2972     which can conflict with char gethostbyname (); below.  */
2973 #include <assert.h>
2974 /* Override any gcc2 internal prototype to avoid an error.  */
2975 #ifdef __cplusplus
2976 extern "C"
2977 #endif
2978 /* We use char because int might match the return type of a gcc2
2979    builtin and then its argument prototype would still apply.  */
2980 char gethostbyname ();
2981 char (*f) ();
2982
2983 int
2984 main ()
2985 {
2986 /* The GNU C library defines this for functions which it implements
2987     to always fail with ENOSYS.  Some functions are actually named
2988     something starting with __ and the normal name is an alias.  */
2989 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
2990 choke me
2991 #else
2992 f = gethostbyname;
2993 #endif
2994
2995   ;
2996   return 0;
2997 }
2998 _ACEOF
2999 rm -f conftest.$ac_objext conftest$ac_exeext
3000 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3001   (eval $ac_link) 2>&5
3002   ac_status=$?
3003   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3004   (exit $ac_status); } &&
3005          { ac_try='test -s conftest$ac_exeext'
3006   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3007   (eval $ac_try) 2>&5
3008   ac_status=$?
3009   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3010   (exit $ac_status); }; }; then
3011   ac_cv_func_gethostbyname=yes
3012 else
3013   echo "$as_me: failed program was:" >&5
3014 cat conftest.$ac_ext >&5
3015 ac_cv_func_gethostbyname=no
3016 fi
3017 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3018 fi
3019 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
3020 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
3021
3022     if test $ac_cv_func_gethostbyname = no; then
3023       echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
3024 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
3025 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
3026   echo $ECHO_N "(cached) $ECHO_C" >&6
3027 else
3028   ac_check_lib_save_LIBS=$LIBS
3029 LIBS="-lnsl  $LIBS"
3030 cat >conftest.$ac_ext <<_ACEOF
3031 #line $LINENO "configure"
3032 #include "confdefs.h"
3033
3034 /* Override any gcc2 internal prototype to avoid an error.  */
3035 #ifdef __cplusplus
3036 extern "C"
3037 #endif
3038 /* We use char because int might match the return type of a gcc2
3039    builtin and then its argument prototype would still apply.  */
3040 char gethostbyname ();
3041 int
3042 main ()
3043 {
3044 gethostbyname ();
3045   ;
3046   return 0;
3047 }
3048 _ACEOF
3049 rm -f conftest.$ac_objext conftest$ac_exeext
3050 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3051   (eval $ac_link) 2>&5
3052   ac_status=$?
3053   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3054   (exit $ac_status); } &&
3055          { ac_try='test -s conftest$ac_exeext'
3056   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3057   (eval $ac_try) 2>&5
3058   ac_status=$?
3059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3060   (exit $ac_status); }; }; then
3061   ac_cv_lib_nsl_gethostbyname=yes
3062 else
3063   echo "$as_me: failed program was:" >&5
3064 cat conftest.$ac_ext >&5
3065 ac_cv_lib_nsl_gethostbyname=no
3066 fi
3067 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3068 LIBS=$ac_check_lib_save_LIBS
3069 fi
3070 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
3071 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
3072 if test $ac_cv_lib_nsl_gethostbyname = yes; then
3073   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
3074 fi
3075
3076       if test $ac_cv_lib_nsl_gethostbyname = no; then
3077         echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
3078 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
3079 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
3080   echo $ECHO_N "(cached) $ECHO_C" >&6
3081 else
3082   ac_check_lib_save_LIBS=$LIBS
3083 LIBS="-lbsd  $LIBS"
3084 cat >conftest.$ac_ext <<_ACEOF
3085 #line $LINENO "configure"
3086 #include "confdefs.h"
3087
3088 /* Override any gcc2 internal prototype to avoid an error.  */
3089 #ifdef __cplusplus
3090 extern "C"
3091 #endif
3092 /* We use char because int might match the return type of a gcc2
3093    builtin and then its argument prototype would still apply.  */
3094 char gethostbyname ();
3095 int
3096 main ()
3097 {
3098 gethostbyname ();
3099   ;
3100   return 0;
3101 }
3102 _ACEOF
3103 rm -f conftest.$ac_objext conftest$ac_exeext
3104 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3105   (eval $ac_link) 2>&5
3106   ac_status=$?
3107   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3108   (exit $ac_status); } &&
3109          { ac_try='test -s conftest$ac_exeext'
3110   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3111   (eval $ac_try) 2>&5
3112   ac_status=$?
3113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3114   (exit $ac_status); }; }; then
3115   ac_cv_lib_bsd_gethostbyname=yes
3116 else
3117   echo "$as_me: failed program was:" >&5
3118 cat conftest.$ac_ext >&5
3119 ac_cv_lib_bsd_gethostbyname=no
3120 fi
3121 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3122 LIBS=$ac_check_lib_save_LIBS
3123 fi
3124 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
3125 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
3126 if test $ac_cv_lib_bsd_gethostbyname = yes; then
3127   X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
3128 fi
3129
3130       fi
3131     fi
3132
3133     # lieder@skyler.mavd.honeywell.com says without -lsocket,
3134     # socket/setsockopt and other routines are undefined under SCO ODT
3135     # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
3136     # on later versions), says Simon Leinen: it contains gethostby*
3137     # variants that don't use the name server (or something).  -lsocket
3138     # must be given before -lnsl if both are needed.  We assume that
3139     # if connect needs -lnsl, so does gethostbyname.
3140     echo "$as_me:$LINENO: checking for connect" >&5
3141 echo $ECHO_N "checking for connect... $ECHO_C" >&6
3142 if test "${ac_cv_func_connect+set}" = set; then
3143   echo $ECHO_N "(cached) $ECHO_C" >&6
3144 else
3145   cat >conftest.$ac_ext <<_ACEOF
3146 #line $LINENO "configure"
3147 #include "confdefs.h"
3148 /* System header to define __stub macros and hopefully few prototypes,
3149     which can conflict with char connect (); below.  */
3150 #include <assert.h>
3151 /* Override any gcc2 internal prototype to avoid an error.  */
3152 #ifdef __cplusplus
3153 extern "C"
3154 #endif
3155 /* We use char because int might match the return type of a gcc2
3156    builtin and then its argument prototype would still apply.  */
3157 char connect ();
3158 char (*f) ();
3159
3160 int
3161 main ()
3162 {
3163 /* The GNU C library defines this for functions which it implements
3164     to always fail with ENOSYS.  Some functions are actually named
3165     something starting with __ and the normal name is an alias.  */
3166 #if defined (__stub_connect) || defined (__stub___connect)
3167 choke me
3168 #else
3169 f = connect;
3170 #endif
3171
3172   ;
3173   return 0;
3174 }
3175 _ACEOF
3176 rm -f conftest.$ac_objext conftest$ac_exeext
3177 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3178   (eval $ac_link) 2>&5
3179   ac_status=$?
3180   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3181   (exit $ac_status); } &&
3182          { ac_try='test -s conftest$ac_exeext'
3183   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3184   (eval $ac_try) 2>&5
3185   ac_status=$?
3186   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3187   (exit $ac_status); }; }; then
3188   ac_cv_func_connect=yes
3189 else
3190   echo "$as_me: failed program was:" >&5
3191 cat conftest.$ac_ext >&5
3192 ac_cv_func_connect=no
3193 fi
3194 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3195 fi
3196 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
3197 echo "${ECHO_T}$ac_cv_func_connect" >&6
3198
3199     if test $ac_cv_func_connect = no; then
3200       echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
3201 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
3202 if test "${ac_cv_lib_socket_connect+set}" = set; then
3203   echo $ECHO_N "(cached) $ECHO_C" >&6
3204 else
3205   ac_check_lib_save_LIBS=$LIBS
3206 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
3207 cat >conftest.$ac_ext <<_ACEOF
3208 #line $LINENO "configure"
3209 #include "confdefs.h"
3210
3211 /* Override any gcc2 internal prototype to avoid an error.  */
3212 #ifdef __cplusplus
3213 extern "C"
3214 #endif
3215 /* We use char because int might match the return type of a gcc2
3216    builtin and then its argument prototype would still apply.  */
3217 char connect ();
3218 int
3219 main ()
3220 {
3221 connect ();
3222   ;
3223   return 0;
3224 }
3225 _ACEOF
3226 rm -f conftest.$ac_objext conftest$ac_exeext
3227 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3228   (eval $ac_link) 2>&5
3229   ac_status=$?
3230   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3231   (exit $ac_status); } &&
3232          { ac_try='test -s conftest$ac_exeext'
3233   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3234   (eval $ac_try) 2>&5
3235   ac_status=$?
3236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3237   (exit $ac_status); }; }; then
3238   ac_cv_lib_socket_connect=yes
3239 else
3240   echo "$as_me: failed program was:" >&5
3241 cat conftest.$ac_ext >&5
3242 ac_cv_lib_socket_connect=no
3243 fi
3244 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3245 LIBS=$ac_check_lib_save_LIBS
3246 fi
3247 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
3248 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
3249 if test $ac_cv_lib_socket_connect = yes; then
3250   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
3251 fi
3252
3253     fi
3254
3255     # Guillermo Gomez says -lposix is necessary on A/UX.
3256     echo "$as_me:$LINENO: checking for remove" >&5
3257 echo $ECHO_N "checking for remove... $ECHO_C" >&6
3258 if test "${ac_cv_func_remove+set}" = set; then
3259   echo $ECHO_N "(cached) $ECHO_C" >&6
3260 else
3261   cat >conftest.$ac_ext <<_ACEOF
3262 #line $LINENO "configure"
3263 #include "confdefs.h"
3264 /* System header to define __stub macros and hopefully few prototypes,
3265     which can conflict with char remove (); below.  */
3266 #include <assert.h>
3267 /* Override any gcc2 internal prototype to avoid an error.  */
3268 #ifdef __cplusplus
3269 extern "C"
3270 #endif
3271 /* We use char because int might match the return type of a gcc2
3272    builtin and then its argument prototype would still apply.  */
3273 char remove ();
3274 char (*f) ();
3275
3276 int
3277 main ()
3278 {
3279 /* The GNU C library defines this for functions which it implements
3280     to always fail with ENOSYS.  Some functions are actually named
3281     something starting with __ and the normal name is an alias.  */
3282 #if defined (__stub_remove) || defined (__stub___remove)
3283 choke me
3284 #else
3285 f = remove;
3286 #endif
3287
3288   ;
3289   return 0;
3290 }
3291 _ACEOF
3292 rm -f conftest.$ac_objext conftest$ac_exeext
3293 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3294   (eval $ac_link) 2>&5
3295   ac_status=$?
3296   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3297   (exit $ac_status); } &&
3298          { ac_try='test -s conftest$ac_exeext'
3299   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3300   (eval $ac_try) 2>&5
3301   ac_status=$?
3302   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3303   (exit $ac_status); }; }; then
3304   ac_cv_func_remove=yes
3305 else
3306   echo "$as_me: failed program was:" >&5
3307 cat conftest.$ac_ext >&5
3308 ac_cv_func_remove=no
3309 fi
3310 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3311 fi
3312 echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
3313 echo "${ECHO_T}$ac_cv_func_remove" >&6
3314
3315     if test $ac_cv_func_remove = no; then
3316       echo "$as_me:$LINENO: checking for remove in -lposix" >&5
3317 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
3318 if test "${ac_cv_lib_posix_remove+set}" = set; then
3319   echo $ECHO_N "(cached) $ECHO_C" >&6
3320 else
3321   ac_check_lib_save_LIBS=$LIBS
3322 LIBS="-lposix  $LIBS"
3323 cat >conftest.$ac_ext <<_ACEOF
3324 #line $LINENO "configure"
3325 #include "confdefs.h"
3326
3327 /* Override any gcc2 internal prototype to avoid an error.  */
3328 #ifdef __cplusplus
3329 extern "C"
3330 #endif
3331 /* We use char because int might match the return type of a gcc2
3332    builtin and then its argument prototype would still apply.  */
3333 char remove ();
3334 int
3335 main ()
3336 {
3337 remove ();
3338   ;
3339   return 0;
3340 }
3341 _ACEOF
3342 rm -f conftest.$ac_objext conftest$ac_exeext
3343 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3344   (eval $ac_link) 2>&5
3345   ac_status=$?
3346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3347   (exit $ac_status); } &&
3348          { ac_try='test -s conftest$ac_exeext'
3349   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3350   (eval $ac_try) 2>&5
3351   ac_status=$?
3352   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3353   (exit $ac_status); }; }; then
3354   ac_cv_lib_posix_remove=yes
3355 else
3356   echo "$as_me: failed program was:" >&5
3357 cat conftest.$ac_ext >&5
3358 ac_cv_lib_posix_remove=no
3359 fi
3360 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3361 LIBS=$ac_check_lib_save_LIBS
3362 fi
3363 echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
3364 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
3365 if test $ac_cv_lib_posix_remove = yes; then
3366   X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
3367 fi
3368
3369     fi
3370
3371     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
3372     echo "$as_me:$LINENO: checking for shmat" >&5
3373 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
3374 if test "${ac_cv_func_shmat+set}" = set; then
3375   echo $ECHO_N "(cached) $ECHO_C" >&6
3376 else
3377   cat >conftest.$ac_ext <<_ACEOF
3378 #line $LINENO "configure"
3379 #include "confdefs.h"
3380 /* System header to define __stub macros and hopefully few prototypes,
3381     which can conflict with char shmat (); below.  */
3382 #include <assert.h>
3383 /* Override any gcc2 internal prototype to avoid an error.  */
3384 #ifdef __cplusplus
3385 extern "C"
3386 #endif
3387 /* We use char because int might match the return type of a gcc2
3388    builtin and then its argument prototype would still apply.  */
3389 char shmat ();
3390 char (*f) ();
3391
3392 int
3393 main ()
3394 {
3395 /* The GNU C library defines this for functions which it implements
3396     to always fail with ENOSYS.  Some functions are actually named
3397     something starting with __ and the normal name is an alias.  */
3398 #if defined (__stub_shmat) || defined (__stub___shmat)
3399 choke me
3400 #else
3401 f = shmat;
3402 #endif
3403
3404   ;
3405   return 0;
3406 }
3407 _ACEOF
3408 rm -f conftest.$ac_objext conftest$ac_exeext
3409 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3410   (eval $ac_link) 2>&5
3411   ac_status=$?
3412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3413   (exit $ac_status); } &&
3414          { ac_try='test -s conftest$ac_exeext'
3415   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3416   (eval $ac_try) 2>&5
3417   ac_status=$?
3418   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3419   (exit $ac_status); }; }; then
3420   ac_cv_func_shmat=yes
3421 else
3422   echo "$as_me: failed program was:" >&5
3423 cat conftest.$ac_ext >&5
3424 ac_cv_func_shmat=no
3425 fi
3426 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3427 fi
3428 echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
3429 echo "${ECHO_T}$ac_cv_func_shmat" >&6
3430
3431     if test $ac_cv_func_shmat = no; then
3432       echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
3433 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
3434 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
3435   echo $ECHO_N "(cached) $ECHO_C" >&6
3436 else
3437   ac_check_lib_save_LIBS=$LIBS
3438 LIBS="-lipc  $LIBS"
3439 cat >conftest.$ac_ext <<_ACEOF
3440 #line $LINENO "configure"
3441 #include "confdefs.h"
3442
3443 /* Override any gcc2 internal prototype to avoid an error.  */
3444 #ifdef __cplusplus
3445 extern "C"
3446 #endif
3447 /* We use char because int might match the return type of a gcc2
3448    builtin and then its argument prototype would still apply.  */
3449 char shmat ();
3450 int
3451 main ()
3452 {
3453 shmat ();
3454   ;
3455   return 0;
3456 }
3457 _ACEOF
3458 rm -f conftest.$ac_objext conftest$ac_exeext
3459 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3460   (eval $ac_link) 2>&5
3461   ac_status=$?
3462   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3463   (exit $ac_status); } &&
3464          { ac_try='test -s conftest$ac_exeext'
3465   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3466   (eval $ac_try) 2>&5
3467   ac_status=$?
3468   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3469   (exit $ac_status); }; }; then
3470   ac_cv_lib_ipc_shmat=yes
3471 else
3472   echo "$as_me: failed program was:" >&5
3473 cat conftest.$ac_ext >&5
3474 ac_cv_lib_ipc_shmat=no
3475 fi
3476 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3477 LIBS=$ac_check_lib_save_LIBS
3478 fi
3479 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
3480 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
3481 if test $ac_cv_lib_ipc_shmat = yes; then
3482   X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
3483 fi
3484
3485     fi
3486   fi
3487
3488   # Check for libraries that X11R6 Xt/Xaw programs need.
3489   ac_save_LDFLAGS=$LDFLAGS
3490   test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
3491   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
3492   # check for ICE first), but we must link in the order -lSM -lICE or
3493   # we get undefined symbols.  So assume we have SM if we have ICE.
3494   # These have to be linked with before -lX11, unlike the other
3495   # libraries we check for below, so use a different variable.
3496   # John Interrante, Karl Berry
3497   echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
3498 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
3499 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
3500   echo $ECHO_N "(cached) $ECHO_C" >&6
3501 else
3502   ac_check_lib_save_LIBS=$LIBS
3503 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
3504 cat >conftest.$ac_ext <<_ACEOF
3505 #line $LINENO "configure"
3506 #include "confdefs.h"
3507
3508 /* Override any gcc2 internal prototype to avoid an error.  */
3509 #ifdef __cplusplus
3510 extern "C"
3511 #endif
3512 /* We use char because int might match the return type of a gcc2
3513    builtin and then its argument prototype would still apply.  */
3514 char IceConnectionNumber ();
3515 int
3516 main ()
3517 {
3518 IceConnectionNumber ();
3519   ;
3520   return 0;
3521 }
3522 _ACEOF
3523 rm -f conftest.$ac_objext conftest$ac_exeext
3524 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3525   (eval $ac_link) 2>&5
3526   ac_status=$?
3527   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3528   (exit $ac_status); } &&
3529          { ac_try='test -s conftest$ac_exeext'
3530   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3531   (eval $ac_try) 2>&5
3532   ac_status=$?
3533   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3534   (exit $ac_status); }; }; then
3535   ac_cv_lib_ICE_IceConnectionNumber=yes
3536 else
3537   echo "$as_me: failed program was:" >&5
3538 cat conftest.$ac_ext >&5
3539 ac_cv_lib_ICE_IceConnectionNumber=no
3540 fi
3541 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3542 LIBS=$ac_check_lib_save_LIBS
3543 fi
3544 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
3545 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
3546 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
3547   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
3548 fi
3549
3550   LDFLAGS=$ac_save_LDFLAGS
3551
3552 fi
3553
3554 for ac_prog in 'bison -y' byacc
3555 do
3556   # Extract the first word of "$ac_prog", so it can be a program name with args.
3557 set dummy $ac_prog; ac_word=$2
3558 echo "$as_me:$LINENO: checking for $ac_word" >&5
3559 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3560 if test "${ac_cv_prog_YACC+set}" = set; then
3561   echo $ECHO_N "(cached) $ECHO_C" >&6
3562 else
3563   if test -n "$YACC"; then
3564   ac_cv_prog_YACC="$YACC" # Let the user override the test.
3565 else
3566 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3567 for as_dir in $PATH
3568 do
3569   IFS=$as_save_IFS
3570   test -z "$as_dir" && as_dir=.
3571   for ac_exec_ext in '' $ac_executable_extensions; do
3572   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3573     ac_cv_prog_YACC="$ac_prog"
3574     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3575     break 2
3576   fi
3577 done
3578 done
3579
3580 fi
3581 fi
3582 YACC=$ac_cv_prog_YACC
3583 if test -n "$YACC"; then
3584   echo "$as_me:$LINENO: result: $YACC" >&5
3585 echo "${ECHO_T}$YACC" >&6
3586 else
3587   echo "$as_me:$LINENO: result: no" >&5
3588 echo "${ECHO_T}no" >&6
3589 fi
3590
3591   test -n "$YACC" && break
3592 done
3593 test -n "$YACC" || YACC="yacc"
3594
3595 for ac_prog in flex lex
3596 do
3597   # Extract the first word of "$ac_prog", so it can be a program name with args.
3598 set dummy $ac_prog; ac_word=$2
3599 echo "$as_me:$LINENO: checking for $ac_word" >&5
3600 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3601 if test "${ac_cv_prog_LEX+set}" = set; then
3602   echo $ECHO_N "(cached) $ECHO_C" >&6
3603 else
3604   if test -n "$LEX"; then
3605   ac_cv_prog_LEX="$LEX" # Let the user override the test.
3606 else
3607 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3608 for as_dir in $PATH
3609 do
3610   IFS=$as_save_IFS
3611   test -z "$as_dir" && as_dir=.
3612   for ac_exec_ext in '' $ac_executable_extensions; do
3613   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3614     ac_cv_prog_LEX="$ac_prog"
3615     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3616     break 2
3617   fi
3618 done
3619 done
3620
3621 fi
3622 fi
3623 LEX=$ac_cv_prog_LEX
3624 if test -n "$LEX"; then
3625   echo "$as_me:$LINENO: result: $LEX" >&5
3626 echo "${ECHO_T}$LEX" >&6
3627 else
3628   echo "$as_me:$LINENO: result: no" >&5
3629 echo "${ECHO_T}no" >&6
3630 fi
3631
3632   test -n "$LEX" && break
3633 done
3634 test -n "$LEX" || LEX=":"
3635
3636 if test -z "$LEXLIB"
3637 then
3638   echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
3639 echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
3640 if test "${ac_cv_lib_fl_yywrap+set}" = set; then
3641   echo $ECHO_N "(cached) $ECHO_C" >&6
3642 else
3643   ac_check_lib_save_LIBS=$LIBS
3644 LIBS="-lfl  $LIBS"
3645 cat >conftest.$ac_ext <<_ACEOF
3646 #line $LINENO "configure"
3647 #include "confdefs.h"
3648
3649 /* Override any gcc2 internal prototype to avoid an error.  */
3650 #ifdef __cplusplus
3651 extern "C"
3652 #endif
3653 /* We use char because int might match the return type of a gcc2
3654    builtin and then its argument prototype would still apply.  */
3655 char yywrap ();
3656 int
3657 main ()
3658 {
3659 yywrap ();
3660   ;
3661   return 0;
3662 }
3663 _ACEOF
3664 rm -f conftest.$ac_objext conftest$ac_exeext
3665 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3666   (eval $ac_link) 2>&5
3667   ac_status=$?
3668   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3669   (exit $ac_status); } &&
3670          { ac_try='test -s conftest$ac_exeext'
3671   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3672   (eval $ac_try) 2>&5
3673   ac_status=$?
3674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3675   (exit $ac_status); }; }; then
3676   ac_cv_lib_fl_yywrap=yes
3677 else
3678   echo "$as_me: failed program was:" >&5
3679 cat conftest.$ac_ext >&5
3680 ac_cv_lib_fl_yywrap=no
3681 fi
3682 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3683 LIBS=$ac_check_lib_save_LIBS
3684 fi
3685 echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
3686 echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
3687 if test $ac_cv_lib_fl_yywrap = yes; then
3688   LEXLIB="-lfl"
3689 else
3690   echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
3691 echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
3692 if test "${ac_cv_lib_l_yywrap+set}" = set; then
3693   echo $ECHO_N "(cached) $ECHO_C" >&6
3694 else
3695   ac_check_lib_save_LIBS=$LIBS
3696 LIBS="-ll  $LIBS"
3697 cat >conftest.$ac_ext <<_ACEOF
3698 #line $LINENO "configure"
3699 #include "confdefs.h"
3700
3701 /* Override any gcc2 internal prototype to avoid an error.  */
3702 #ifdef __cplusplus
3703 extern "C"
3704 #endif
3705 /* We use char because int might match the return type of a gcc2
3706    builtin and then its argument prototype would still apply.  */
3707 char yywrap ();
3708 int
3709 main ()
3710 {
3711 yywrap ();
3712   ;
3713   return 0;
3714 }
3715 _ACEOF
3716 rm -f conftest.$ac_objext conftest$ac_exeext
3717 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3718   (eval $ac_link) 2>&5
3719   ac_status=$?
3720   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3721   (exit $ac_status); } &&
3722          { ac_try='test -s conftest$ac_exeext'
3723   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3724   (eval $ac_try) 2>&5
3725   ac_status=$?
3726   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3727   (exit $ac_status); }; }; then
3728   ac_cv_lib_l_yywrap=yes
3729 else
3730   echo "$as_me: failed program was:" >&5
3731 cat conftest.$ac_ext >&5
3732 ac_cv_lib_l_yywrap=no
3733 fi
3734 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3735 LIBS=$ac_check_lib_save_LIBS
3736 fi
3737 echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
3738 echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
3739 if test $ac_cv_lib_l_yywrap = yes; then
3740   LEXLIB="-ll"
3741 fi
3742
3743 fi
3744
3745 fi
3746
3747 if test "x$LEX" != "x:"; then
3748   echo "$as_me:$LINENO: checking lex output file root" >&5
3749 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
3750 if test "${ac_cv_prog_lex_root+set}" = set; then
3751   echo $ECHO_N "(cached) $ECHO_C" >&6
3752 else
3753   # The minimal lex program is just a single line: %%.  But some broken lexes
3754 # (Solaris, I think it was) want two %% lines, so accommodate them.
3755 cat >conftest.l <<_ACEOF
3756 %%
3757 %%
3758 _ACEOF
3759 { (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
3760   (eval $LEX conftest.l) 2>&5
3761   ac_status=$?
3762   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3763   (exit $ac_status); }
3764 if test -f lex.yy.c; then
3765   ac_cv_prog_lex_root=lex.yy
3766 elif test -f lexyy.c; then
3767   ac_cv_prog_lex_root=lexyy
3768 else
3769   { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
3770 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
3771    { (exit 1); exit 1; }; }
3772 fi
3773 fi
3774 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
3775 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
3776 rm -f conftest.l
3777 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
3778
3779 echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
3780 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
3781 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
3782   echo $ECHO_N "(cached) $ECHO_C" >&6
3783 else
3784   # POSIX says lex can declare yytext either as a pointer or an array; the
3785 # default is implementation-dependent. Figure out which it is, since
3786 # not all implementations provide the %pointer and %array declarations.
3787 ac_cv_prog_lex_yytext_pointer=no
3788 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
3789 ac_save_LIBS=$LIBS
3790 LIBS="$LIBS $LEXLIB"
3791 cat >conftest.$ac_ext <<_ACEOF
3792 `cat $LEX_OUTPUT_ROOT.c`
3793 _ACEOF
3794 rm -f conftest.$ac_objext conftest$ac_exeext
3795 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3796   (eval $ac_link) 2>&5
3797   ac_status=$?
3798   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3799   (exit $ac_status); } &&
3800          { ac_try='test -s conftest$ac_exeext'
3801   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3802   (eval $ac_try) 2>&5
3803   ac_status=$?
3804   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3805   (exit $ac_status); }; }; then
3806   ac_cv_prog_lex_yytext_pointer=yes
3807 else
3808   echo "$as_me: failed program was:" >&5
3809 cat conftest.$ac_ext >&5
3810 fi
3811 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3812 LIBS=$ac_save_LIBS
3813 rm -f "${LEX_OUTPUT_ROOT}.c"
3814
3815 fi
3816 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
3817 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
3818 if test $ac_cv_prog_lex_yytext_pointer = yes; then
3819
3820 cat >>confdefs.h <<\_ACEOF
3821 #define YYTEXT_POINTER 1
3822 _ACEOF
3823
3824 fi
3825
3826 fi
3827
3828 for ac_prog in $YACC bison yacc
3829 do
3830   # Extract the first word of "$ac_prog", so it can be a program name with args.
3831 set dummy $ac_prog; ac_word=$2
3832 echo "$as_me:$LINENO: checking for $ac_word" >&5
3833 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3834 if test "${ac_cv_prog_XYACC+set}" = set; then
3835   echo $ECHO_N "(cached) $ECHO_C" >&6
3836 else
3837   if test -n "$XYACC"; then
3838   ac_cv_prog_XYACC="$XYACC" # Let the user override the test.
3839 else
3840 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3841 for as_dir in $PATH
3842 do
3843   IFS=$as_save_IFS
3844   test -z "$as_dir" && as_dir=.
3845   for ac_exec_ext in '' $ac_executable_extensions; do
3846   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3847     ac_cv_prog_XYACC="$ac_prog"
3848     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3849     break 2
3850   fi
3851 done
3852 done
3853
3854 fi
3855 fi
3856 XYACC=$ac_cv_prog_XYACC
3857 if test -n "$XYACC"; then
3858   echo "$as_me:$LINENO: result: $XYACC" >&5
3859 echo "${ECHO_T}$XYACC" >&6
3860 else
3861   echo "$as_me:$LINENO: result: no" >&5
3862 echo "${ECHO_T}no" >&6
3863 fi
3864
3865   test -n "$XYACC" && break
3866 done
3867 test -n "$XYACC" || XYACC="none"
3868
3869 if test "$XYACC" = "none"
3870 then
3871   { { echo "$as_me:$LINENO: error: no suitable bison/yacc found. Please install the 'bison' package." >&5
3872 echo "$as_me: error: no suitable bison/yacc found. Please install the 'bison' package." >&2;}
3873    { (exit 1); exit 1; }; }
3874 fi
3875 for ac_prog in $LEX flex lex
3876 do
3877   # Extract the first word of "$ac_prog", so it can be a program name with args.
3878 set dummy $ac_prog; ac_word=$2
3879 echo "$as_me:$LINENO: checking for $ac_word" >&5
3880 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3881 if test "${ac_cv_prog_XLEX+set}" = set; then
3882   echo $ECHO_N "(cached) $ECHO_C" >&6
3883 else
3884   if test -n "$XLEX"; then
3885   ac_cv_prog_XLEX="$XLEX" # Let the user override the test.
3886 else
3887 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3888 for as_dir in $PATH
3889 do
3890   IFS=$as_save_IFS
3891   test -z "$as_dir" && as_dir=.
3892   for ac_exec_ext in '' $ac_executable_extensions; do
3893   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3894     ac_cv_prog_XLEX="$ac_prog"
3895     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3896     break 2
3897   fi
3898 done
3899 done
3900
3901 fi
3902 fi
3903 XLEX=$ac_cv_prog_XLEX
3904 if test -n "$XLEX"; then
3905   echo "$as_me:$LINENO: result: $XLEX" >&5
3906 echo "${ECHO_T}$XLEX" >&6
3907 else
3908   echo "$as_me:$LINENO: result: no" >&5
3909 echo "${ECHO_T}no" >&6
3910 fi
3911
3912   test -n "$XLEX" && break
3913 done
3914 test -n "$XLEX" || XLEX="none"
3915
3916 if test "$XLEX" = "none"
3917 then
3918   { { echo "$as_me:$LINENO: error: no suitable lex found. Please install the 'flex' package." >&5
3919 echo "$as_me: error: no suitable lex found. Please install the 'flex' package." >&2;}
3920    { (exit 1); exit 1; }; }
3921 fi
3922
3923 if test -n "$ac_tool_prefix"; then
3924   # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
3925 set dummy ${ac_tool_prefix}ld; ac_word=$2
3926 echo "$as_me:$LINENO: checking for $ac_word" >&5
3927 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3928 if test "${ac_cv_prog_LD+set}" = set; then
3929   echo $ECHO_N "(cached) $ECHO_C" >&6
3930 else
3931   if test -n "$LD"; then
3932   ac_cv_prog_LD="$LD" # Let the user override the test.
3933 else
3934 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3935 for as_dir in $PATH
3936 do
3937   IFS=$as_save_IFS
3938   test -z "$as_dir" && as_dir=.
3939   for ac_exec_ext in '' $ac_executable_extensions; do
3940   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3941     ac_cv_prog_LD="${ac_tool_prefix}ld"
3942     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3943     break 2
3944   fi
3945 done
3946 done
3947
3948 fi
3949 fi
3950 LD=$ac_cv_prog_LD
3951 if test -n "$LD"; then
3952   echo "$as_me:$LINENO: result: $LD" >&5
3953 echo "${ECHO_T}$LD" >&6
3954 else
3955   echo "$as_me:$LINENO: result: no" >&5
3956 echo "${ECHO_T}no" >&6
3957 fi
3958
3959 fi
3960 if test -z "$ac_cv_prog_LD"; then
3961   ac_ct_LD=$LD
3962   # Extract the first word of "ld", so it can be a program name with args.
3963 set dummy ld; ac_word=$2
3964 echo "$as_me:$LINENO: checking for $ac_word" >&5
3965 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3966 if test "${ac_cv_prog_ac_ct_LD+set}" = set; then
3967   echo $ECHO_N "(cached) $ECHO_C" >&6
3968 else
3969   if test -n "$ac_ct_LD"; then
3970   ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test.
3971 else
3972 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3973 for as_dir in $PATH
3974 do
3975   IFS=$as_save_IFS
3976   test -z "$as_dir" && as_dir=.
3977   for ac_exec_ext in '' $ac_executable_extensions; do
3978   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3979     ac_cv_prog_ac_ct_LD="ld"
3980     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3981     break 2
3982   fi
3983 done
3984 done
3985
3986   test -z "$ac_cv_prog_ac_ct_LD" && ac_cv_prog_ac_ct_LD="ld"
3987 fi
3988 fi
3989 ac_ct_LD=$ac_cv_prog_ac_ct_LD
3990 if test -n "$ac_ct_LD"; then
3991   echo "$as_me:$LINENO: result: $ac_ct_LD" >&5
3992 echo "${ECHO_T}$ac_ct_LD" >&6
3993 else
3994   echo "$as_me:$LINENO: result: no" >&5
3995 echo "${ECHO_T}no" >&6
3996 fi
3997
3998   LD=$ac_ct_LD
3999 else
4000   LD="$ac_cv_prog_LD"
4001 fi
4002
4003 if test -n "$ac_tool_prefix"; then
4004   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4005 set dummy ${ac_tool_prefix}ar; ac_word=$2
4006 echo "$as_me:$LINENO: checking for $ac_word" >&5
4007 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4008 if test "${ac_cv_prog_AR+set}" = set; then
4009   echo $ECHO_N "(cached) $ECHO_C" >&6
4010 else
4011   if test -n "$AR"; then
4012   ac_cv_prog_AR="$AR" # Let the user override the test.
4013 else
4014 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4015 for as_dir in $PATH
4016 do
4017   IFS=$as_save_IFS
4018   test -z "$as_dir" && as_dir=.
4019   for ac_exec_ext in '' $ac_executable_extensions; do
4020   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4021     ac_cv_prog_AR="${ac_tool_prefix}ar"
4022     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4023     break 2
4024   fi
4025 done
4026 done
4027
4028 fi
4029 fi
4030 AR=$ac_cv_prog_AR
4031 if test -n "$AR"; then
4032   echo "$as_me:$LINENO: result: $AR" >&5
4033 echo "${ECHO_T}$AR" >&6
4034 else
4035   echo "$as_me:$LINENO: result: no" >&5
4036 echo "${ECHO_T}no" >&6
4037 fi
4038
4039 fi
4040 if test -z "$ac_cv_prog_AR"; then
4041   ac_ct_AR=$AR
4042   # Extract the first word of "ar", so it can be a program name with args.
4043 set dummy ar; ac_word=$2
4044 echo "$as_me:$LINENO: checking for $ac_word" >&5
4045 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4046 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
4047   echo $ECHO_N "(cached) $ECHO_C" >&6
4048 else
4049   if test -n "$ac_ct_AR"; then
4050   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4051 else
4052 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4053 for as_dir in $PATH
4054 do
4055   IFS=$as_save_IFS
4056   test -z "$as_dir" && as_dir=.
4057   for ac_exec_ext in '' $ac_executable_extensions; do
4058   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4059     ac_cv_prog_ac_ct_AR="ar"
4060     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4061     break 2
4062   fi
4063 done
4064 done
4065
4066   test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar"
4067 fi
4068 fi
4069 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4070 if test -n "$ac_ct_AR"; then
4071   echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
4072 echo "${ECHO_T}$ac_ct_AR" >&6
4073 else
4074   echo "$as_me:$LINENO: result: no" >&5
4075 echo "${ECHO_T}no" >&6
4076 fi
4077
4078   AR=$ac_ct_AR
4079 else
4080   AR="$ac_cv_prog_AR"
4081 fi
4082
4083 if test -n "$ac_tool_prefix"; then
4084   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4085 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4086 echo "$as_me:$LINENO: checking for $ac_word" >&5
4087 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4088 if test "${ac_cv_prog_RANLIB+set}" = set; then
4089   echo $ECHO_N "(cached) $ECHO_C" >&6
4090 else
4091   if test -n "$RANLIB"; then
4092   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4093 else
4094 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4095 for as_dir in $PATH
4096 do
4097   IFS=$as_save_IFS
4098   test -z "$as_dir" && as_dir=.
4099   for ac_exec_ext in '' $ac_executable_extensions; do
4100   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4101     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4102     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4103     break 2
4104   fi
4105 done
4106 done
4107
4108 fi
4109 fi
4110 RANLIB=$ac_cv_prog_RANLIB
4111 if test -n "$RANLIB"; then
4112   echo "$as_me:$LINENO: result: $RANLIB" >&5
4113 echo "${ECHO_T}$RANLIB" >&6
4114 else
4115   echo "$as_me:$LINENO: result: no" >&5
4116 echo "${ECHO_T}no" >&6
4117 fi
4118
4119 fi
4120 if test -z "$ac_cv_prog_RANLIB"; then
4121   ac_ct_RANLIB=$RANLIB
4122   # Extract the first word of "ranlib", so it can be a program name with args.
4123 set dummy ranlib; ac_word=$2
4124 echo "$as_me:$LINENO: checking for $ac_word" >&5
4125 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4126 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4127   echo $ECHO_N "(cached) $ECHO_C" >&6
4128 else
4129   if test -n "$ac_ct_RANLIB"; then
4130   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4131 else
4132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4133 for as_dir in $PATH
4134 do
4135   IFS=$as_save_IFS
4136   test -z "$as_dir" && as_dir=.
4137   for ac_exec_ext in '' $ac_executable_extensions; do
4138   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4139     ac_cv_prog_ac_ct_RANLIB="ranlib"
4140     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4141     break 2
4142   fi
4143 done
4144 done
4145
4146   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4147 fi
4148 fi
4149 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4150 if test -n "$ac_ct_RANLIB"; then
4151   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4152 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4153 else
4154   echo "$as_me:$LINENO: result: no" >&5
4155 echo "${ECHO_T}no" >&6
4156 fi
4157
4158   RANLIB=$ac_ct_RANLIB
4159 else
4160   RANLIB="$ac_cv_prog_RANLIB"
4161 fi
4162
4163 if test -n "$ac_tool_prefix"; then
4164   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4165 set dummy ${ac_tool_prefix}strip; ac_word=$2
4166 echo "$as_me:$LINENO: checking for $ac_word" >&5
4167 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4168 if test "${ac_cv_prog_STRIP+set}" = set; then
4169   echo $ECHO_N "(cached) $ECHO_C" >&6
4170 else
4171   if test -n "$STRIP"; then
4172   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4173 else
4174 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4175 for as_dir in $PATH
4176 do
4177   IFS=$as_save_IFS
4178   test -z "$as_dir" && as_dir=.
4179   for ac_exec_ext in '' $ac_executable_extensions; do
4180   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4181     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4182     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4183     break 2
4184   fi
4185 done
4186 done
4187
4188 fi
4189 fi
4190 STRIP=$ac_cv_prog_STRIP
4191 if test -n "$STRIP"; then
4192   echo "$as_me:$LINENO: result: $STRIP" >&5
4193 echo "${ECHO_T}$STRIP" >&6
4194 else
4195   echo "$as_me:$LINENO: result: no" >&5
4196 echo "${ECHO_T}no" >&6
4197 fi
4198
4199 fi
4200 if test -z "$ac_cv_prog_STRIP"; then
4201   ac_ct_STRIP=$STRIP
4202   # Extract the first word of "strip", so it can be a program name with args.
4203 set dummy strip; ac_word=$2
4204 echo "$as_me:$LINENO: checking for $ac_word" >&5
4205 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4206 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4207   echo $ECHO_N "(cached) $ECHO_C" >&6
4208 else
4209   if test -n "$ac_ct_STRIP"; then
4210   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4211 else
4212 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4213 for as_dir in $PATH
4214 do
4215   IFS=$as_save_IFS
4216   test -z "$as_dir" && as_dir=.
4217   for ac_exec_ext in '' $ac_executable_extensions; do
4218   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4219     ac_cv_prog_ac_ct_STRIP="strip"
4220     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4221     break 2
4222   fi
4223 done
4224 done
4225
4226   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP="strip"
4227 fi
4228 fi
4229 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4230 if test -n "$ac_ct_STRIP"; then
4231   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4232 echo "${ECHO_T}$ac_ct_STRIP" >&6
4233 else
4234   echo "$as_me:$LINENO: result: no" >&5
4235 echo "${ECHO_T}no" >&6
4236 fi
4237
4238   STRIP=$ac_ct_STRIP
4239 else
4240   STRIP="$ac_cv_prog_STRIP"
4241 fi
4242
4243 if test -n "$ac_tool_prefix"; then
4244   # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
4245 set dummy ${ac_tool_prefix}windres; ac_word=$2
4246 echo "$as_me:$LINENO: checking for $ac_word" >&5
4247 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4248 if test "${ac_cv_prog_WINDRES+set}" = set; then
4249   echo $ECHO_N "(cached) $ECHO_C" >&6
4250 else
4251   if test -n "$WINDRES"; then
4252   ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
4253 else
4254 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4255 for as_dir in $PATH
4256 do
4257   IFS=$as_save_IFS
4258   test -z "$as_dir" && as_dir=.
4259   for ac_exec_ext in '' $ac_executable_extensions; do
4260   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4261     ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
4262     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4263     break 2
4264   fi
4265 done
4266 done
4267
4268 fi
4269 fi
4270 WINDRES=$ac_cv_prog_WINDRES
4271 if test -n "$WINDRES"; then
4272   echo "$as_me:$LINENO: result: $WINDRES" >&5
4273 echo "${ECHO_T}$WINDRES" >&6
4274 else
4275   echo "$as_me:$LINENO: result: no" >&5
4276 echo "${ECHO_T}no" >&6
4277 fi
4278
4279 fi
4280 if test -z "$ac_cv_prog_WINDRES"; then
4281   ac_ct_WINDRES=$WINDRES
4282   # Extract the first word of "windres", so it can be a program name with args.
4283 set dummy windres; ac_word=$2
4284 echo "$as_me:$LINENO: checking for $ac_word" >&5
4285 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4286 if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
4287   echo $ECHO_N "(cached) $ECHO_C" >&6
4288 else
4289   if test -n "$ac_ct_WINDRES"; then
4290   ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
4291 else
4292 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4293 for as_dir in $PATH
4294 do
4295   IFS=$as_save_IFS
4296   test -z "$as_dir" && as_dir=.
4297   for ac_exec_ext in '' $ac_executable_extensions; do
4298   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4299     ac_cv_prog_ac_ct_WINDRES="windres"
4300     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4301     break 2
4302   fi
4303 done
4304 done
4305
4306   test -z "$ac_cv_prog_ac_ct_WINDRES" && ac_cv_prog_ac_ct_WINDRES="false"
4307 fi
4308 fi
4309 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
4310 if test -n "$ac_ct_WINDRES"; then
4311   echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
4312 echo "${ECHO_T}$ac_ct_WINDRES" >&6
4313 else
4314   echo "$as_me:$LINENO: result: no" >&5
4315 echo "${ECHO_T}no" >&6
4316 fi
4317
4318   WINDRES=$ac_ct_WINDRES
4319 else
4320   WINDRES="$ac_cv_prog_WINDRES"
4321 fi
4322
4323 # Find a good install program.  We prefer a C program (faster),
4324 # so one script is as good as another.  But avoid the broken or
4325 # incompatible versions:
4326 # SysV /etc/install, /usr/sbin/install
4327 # SunOS /usr/etc/install
4328 # IRIX /sbin/install
4329 # AIX /bin/install
4330 # AmigaOS /C/install, which installs bootblocks on floppy discs
4331 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4332 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4333 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4334 # ./install, which can be erroneously created by make from ./install.sh.
4335 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4336 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
4337 if test -z "$INSTALL"; then
4338 if test "${ac_cv_path_install+set}" = set; then
4339   echo $ECHO_N "(cached) $ECHO_C" >&6
4340 else
4341   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4342 for as_dir in $PATH
4343 do
4344   IFS=$as_save_IFS
4345   test -z "$as_dir" && as_dir=.
4346   # Account for people who put trailing slashes in PATH elements.
4347 case $as_dir/ in
4348   ./ | .// | /cC/* | \
4349   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4350   /usr/ucb/* ) ;;
4351   *)
4352     # OSF1 and SCO ODT 3.0 have their own names for install.
4353     # Don't use installbsd from OSF since it installs stuff as root
4354     # by default.
4355     for ac_prog in ginstall scoinst install; do
4356       for ac_exec_ext in '' $ac_executable_extensions; do
4357         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4358           if test $ac_prog = install &&
4359             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4360             # AIX install.  It has an incompatible calling convention.
4361             :
4362           elif test $ac_prog = install &&
4363             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4364             # program-specific install script used by HP pwplus--don't use.
4365             :
4366           else
4367             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4368             break 3
4369           fi
4370         fi
4371       done
4372     done
4373     ;;
4374 esac
4375 done
4376
4377
4378 fi
4379   if test "${ac_cv_path_install+set}" = set; then
4380     INSTALL=$ac_cv_path_install
4381   else
4382     # As a last resort, use the slow shell script.  We don't cache a
4383     # path for INSTALL within a source directory, because that will
4384     # break other packages using the cache if that directory is
4385     # removed, or if the path is relative.
4386     INSTALL=$ac_install_sh
4387   fi
4388 fi
4389 echo "$as_me:$LINENO: result: $INSTALL" >&5
4390 echo "${ECHO_T}$INSTALL" >&6
4391
4392 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4393 # It thinks the first close brace ends the variable substitution.
4394 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4395
4396 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4397
4398 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4399
4400 echo "$as_me:$LINENO: checking whether ln -s works" >&5
4401 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4402 LN_S=$as_ln_s
4403 if test "$LN_S" = "ln -s"; then
4404   echo "$as_me:$LINENO: result: yes" >&5
4405 echo "${ECHO_T}yes" >&6
4406 else
4407   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4408 echo "${ECHO_T}no, using $LN_S" >&6
4409 fi
4410
4411 echo "$as_me:$LINENO: checking whether ln works" >&5
4412 echo $ECHO_N "checking whether ln works... $ECHO_C" >&6
4413 rm -f conf$$ conf$$.file
4414 echo >conf$$.file
4415 if ln conf$$.file conf$$ 2>/dev/null; then
4416   LN=ln
4417
4418   echo "$as_me:$LINENO: result: yes" >&5
4419 echo "${ECHO_T}yes" >&6
4420 else
4421   LN="cp -p"
4422
4423   echo "$as_me:$LINENO: result: no, using $LN" >&5
4424 echo "${ECHO_T}no, using $LN" >&6
4425 fi
4426 rm -f conf$$ conf$$.file
4427 # Extract the first word of "c2man", so it can be a program name with args.
4428 set dummy c2man; ac_word=$2
4429 echo "$as_me:$LINENO: checking for $ac_word" >&5
4430 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4431 if test "${ac_cv_prog_C2MAN+set}" = set; then
4432   echo $ECHO_N "(cached) $ECHO_C" >&6
4433 else
4434   if test -n "$C2MAN"; then
4435   ac_cv_prog_C2MAN="$C2MAN" # Let the user override the test.
4436 else
4437 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4438 for as_dir in $PATH
4439 do
4440   IFS=$as_save_IFS
4441   test -z "$as_dir" && as_dir=.
4442   for ac_exec_ext in '' $ac_executable_extensions; do
4443   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4444     ac_cv_prog_C2MAN="c2man"
4445     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4446     break 2
4447   fi
4448 done
4449 done
4450
4451   test -z "$ac_cv_prog_C2MAN" && ac_cv_prog_C2MAN="\$(TOPSRCDIR)/tools/c2man.pl"
4452 fi
4453 fi
4454 C2MAN=$ac_cv_prog_C2MAN
4455 if test -n "$C2MAN"; then
4456   echo "$as_me:$LINENO: result: $C2MAN" >&5
4457 echo "${ECHO_T}$C2MAN" >&6
4458 else
4459   echo "$as_me:$LINENO: result: no" >&5
4460 echo "${ECHO_T}no" >&6
4461 fi
4462
4463 # Extract the first word of "ldconfig", so it can be a program name with args.
4464 set dummy ldconfig; ac_word=$2
4465 echo "$as_me:$LINENO: checking for $ac_word" >&5
4466 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4467 if test "${ac_cv_path_LDCONFIG+set}" = set; then
4468   echo $ECHO_N "(cached) $ECHO_C" >&6
4469 else
4470   case $LDCONFIG in
4471   [\\/]* | ?:[\\/]*)
4472   ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
4473   ;;
4474   *)
4475   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4476 for as_dir in /sbin /usr/sbin $PATH
4477 do
4478   IFS=$as_save_IFS
4479   test -z "$as_dir" && as_dir=.
4480   for ac_exec_ext in '' $ac_executable_extensions; do
4481   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4482     ac_cv_path_LDCONFIG="$as_dir/$ac_word$ac_exec_ext"
4483     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4484     break 2
4485   fi
4486 done
4487 done
4488
4489   test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG="true"
4490   ;;
4491 esac
4492 fi
4493 LDCONFIG=$ac_cv_path_LDCONFIG
4494
4495 if test -n "$LDCONFIG"; then
4496   echo "$as_me:$LINENO: result: $LDCONFIG" >&5
4497 echo "${ECHO_T}$LDCONFIG" >&6
4498 else
4499   echo "$as_me:$LINENO: result: no" >&5
4500 echo "${ECHO_T}no" >&6
4501 fi
4502
4503
4504 for ac_prog in lclint lint
4505 do
4506   # Extract the first word of "$ac_prog", so it can be a program name with args.
4507 set dummy $ac_prog; ac_word=$2
4508 echo "$as_me:$LINENO: checking for $ac_word" >&5
4509 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4510 if test "${ac_cv_prog_LINT+set}" = set; then
4511   echo $ECHO_N "(cached) $ECHO_C" >&6
4512 else
4513   if test -n "$LINT"; then
4514   ac_cv_prog_LINT="$LINT" # Let the user override the test.
4515 else
4516 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4517 for as_dir in $PATH
4518 do
4519   IFS=$as_save_IFS
4520   test -z "$as_dir" && as_dir=.
4521   for ac_exec_ext in '' $ac_executable_extensions; do
4522   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4523     ac_cv_prog_LINT="$ac_prog"
4524     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4525     break 2
4526   fi
4527 done
4528 done
4529
4530 fi
4531 fi
4532 LINT=$ac_cv_prog_LINT
4533 if test -n "$LINT"; then
4534   echo "$as_me:$LINENO: result: $LINT" >&5
4535 echo "${ECHO_T}$LINT" >&6
4536 else
4537   echo "$as_me:$LINENO: result: no" >&5
4538 echo "${ECHO_T}no" >&6
4539 fi
4540
4541   test -n "$LINT" && break
4542 done
4543
4544 if test "$LINT" = "lint"
4545 then
4546   LINTFLAGS="$LINTFLAGS -errchk=%all,no%longptr64 -errhdr=%user -Ncheck=macro -Nlevel=4"
4547   fi
4548
4549
4550
4551
4552
4553 echo "$as_me:$LINENO: checking for sqrt in -lm" >&5
4554 echo $ECHO_N "checking for sqrt in -lm... $ECHO_C" >&6
4555 if test "${ac_cv_lib_m_sqrt+set}" = set; then
4556   echo $ECHO_N "(cached) $ECHO_C" >&6
4557 else
4558   ac_check_lib_save_LIBS=$LIBS
4559 LIBS="-lm  $LIBS"
4560 cat >conftest.$ac_ext <<_ACEOF
4561 #line $LINENO "configure"
4562 #include "confdefs.h"
4563
4564 /* Override any gcc2 internal prototype to avoid an error.  */
4565 #ifdef __cplusplus
4566 extern "C"
4567 #endif
4568 /* We use char because int might match the return type of a gcc2
4569    builtin and then its argument prototype would still apply.  */
4570 char sqrt ();
4571 int
4572 main ()
4573 {
4574 sqrt ();
4575   ;
4576   return 0;
4577 }
4578 _ACEOF
4579 rm -f conftest.$ac_objext conftest$ac_exeext
4580 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4581   (eval $ac_link) 2>&5
4582   ac_status=$?
4583   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4584   (exit $ac_status); } &&
4585          { ac_try='test -s conftest$ac_exeext'
4586   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4587   (eval $ac_try) 2>&5
4588   ac_status=$?
4589   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4590   (exit $ac_status); }; }; then
4591   ac_cv_lib_m_sqrt=yes
4592 else
4593   echo "$as_me: failed program was:" >&5
4594 cat conftest.$ac_ext >&5
4595 ac_cv_lib_m_sqrt=no
4596 fi
4597 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4598 LIBS=$ac_check_lib_save_LIBS
4599 fi
4600 echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrt" >&5
4601 echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6
4602 if test $ac_cv_lib_m_sqrt = yes; then
4603   cat >>confdefs.h <<_ACEOF
4604 #define HAVE_LIBM 1
4605 _ACEOF
4606
4607   LIBS="-lm $LIBS"
4608
4609 fi
4610
4611
4612 echo "$as_me:$LINENO: checking for i386_set_ldt in -li386" >&5
4613 echo $ECHO_N "checking for i386_set_ldt in -li386... $ECHO_C" >&6
4614 if test "${ac_cv_lib_i386_i386_set_ldt+set}" = set; then
4615   echo $ECHO_N "(cached) $ECHO_C" >&6
4616 else
4617   ac_check_lib_save_LIBS=$LIBS
4618 LIBS="-li386  $LIBS"
4619 cat >conftest.$ac_ext <<_ACEOF
4620 #line $LINENO "configure"
4621 #include "confdefs.h"
4622
4623 /* Override any gcc2 internal prototype to avoid an error.  */
4624 #ifdef __cplusplus
4625 extern "C"
4626 #endif
4627 /* We use char because int might match the return type of a gcc2
4628    builtin and then its argument prototype would still apply.  */
4629 char i386_set_ldt ();
4630 int
4631 main ()
4632 {
4633 i386_set_ldt ();
4634   ;
4635   return 0;
4636 }
4637 _ACEOF
4638 rm -f conftest.$ac_objext conftest$ac_exeext
4639 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4640   (eval $ac_link) 2>&5
4641   ac_status=$?
4642   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4643   (exit $ac_status); } &&
4644          { ac_try='test -s conftest$ac_exeext'
4645   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4646   (eval $ac_try) 2>&5
4647   ac_status=$?
4648   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4649   (exit $ac_status); }; }; then
4650   ac_cv_lib_i386_i386_set_ldt=yes
4651 else
4652   echo "$as_me: failed program was:" >&5
4653 cat conftest.$ac_ext >&5
4654 ac_cv_lib_i386_i386_set_ldt=no
4655 fi
4656 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4657 LIBS=$ac_check_lib_save_LIBS
4658 fi
4659 echo "$as_me:$LINENO: result: $ac_cv_lib_i386_i386_set_ldt" >&5
4660 echo "${ECHO_T}$ac_cv_lib_i386_i386_set_ldt" >&6
4661 if test $ac_cv_lib_i386_i386_set_ldt = yes; then
4662   cat >>confdefs.h <<_ACEOF
4663 #define HAVE_LIBI386 1
4664 _ACEOF
4665
4666   LIBS="-li386 $LIBS"
4667
4668 fi
4669
4670
4671 echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5
4672 echo $ECHO_N "checking for _oss_ioctl in -lossaudio... $ECHO_C" >&6
4673 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then
4674   echo $ECHO_N "(cached) $ECHO_C" >&6
4675 else
4676   ac_check_lib_save_LIBS=$LIBS
4677 LIBS="-lossaudio  $LIBS"
4678 cat >conftest.$ac_ext <<_ACEOF
4679 #line $LINENO "configure"
4680 #include "confdefs.h"
4681
4682 /* Override any gcc2 internal prototype to avoid an error.  */
4683 #ifdef __cplusplus
4684 extern "C"
4685 #endif
4686 /* We use char because int might match the return type of a gcc2
4687    builtin and then its argument prototype would still apply.  */
4688 char _oss_ioctl ();
4689 int
4690 main ()
4691 {
4692 _oss_ioctl ();
4693   ;
4694   return 0;
4695 }
4696 _ACEOF
4697 rm -f conftest.$ac_objext conftest$ac_exeext
4698 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4699   (eval $ac_link) 2>&5
4700   ac_status=$?
4701   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4702   (exit $ac_status); } &&
4703          { ac_try='test -s conftest$ac_exeext'
4704   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4705   (eval $ac_try) 2>&5
4706   ac_status=$?
4707   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4708   (exit $ac_status); }; }; then
4709   ac_cv_lib_ossaudio__oss_ioctl=yes
4710 else
4711   echo "$as_me: failed program was:" >&5
4712 cat conftest.$ac_ext >&5
4713 ac_cv_lib_ossaudio__oss_ioctl=no
4714 fi
4715 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4716 LIBS=$ac_check_lib_save_LIBS
4717 fi
4718 echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
4719 echo "${ECHO_T}$ac_cv_lib_ossaudio__oss_ioctl" >&6
4720 if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then
4721   cat >>confdefs.h <<_ACEOF
4722 #define HAVE_LIBOSSAUDIO 1
4723 _ACEOF
4724
4725   LIBS="-lossaudio $LIBS"
4726
4727 fi
4728
4729
4730 for ac_func in iswalnum
4731 do
4732 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4733 echo "$as_me:$LINENO: checking for $ac_func" >&5
4734 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4735 if eval "test \"\${$as_ac_var+set}\" = set"; then
4736   echo $ECHO_N "(cached) $ECHO_C" >&6
4737 else
4738   cat >conftest.$ac_ext <<_ACEOF
4739 #line $LINENO "configure"
4740 #include "confdefs.h"
4741 /* System header to define __stub macros and hopefully few prototypes,
4742     which can conflict with char $ac_func (); below.  */
4743 #include <assert.h>
4744 /* Override any gcc2 internal prototype to avoid an error.  */
4745 #ifdef __cplusplus
4746 extern "C"
4747 #endif
4748 /* We use char because int might match the return type of a gcc2
4749    builtin and then its argument prototype would still apply.  */
4750 char $ac_func ();
4751 char (*f) ();
4752
4753 int
4754 main ()
4755 {
4756 /* The GNU C library defines this for functions which it implements
4757     to always fail with ENOSYS.  Some functions are actually named
4758     something starting with __ and the normal name is an alias.  */
4759 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4760 choke me
4761 #else
4762 f = $ac_func;
4763 #endif
4764
4765   ;
4766   return 0;
4767 }
4768 _ACEOF
4769 rm -f conftest.$ac_objext conftest$ac_exeext
4770 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4771   (eval $ac_link) 2>&5
4772   ac_status=$?
4773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4774   (exit $ac_status); } &&
4775          { ac_try='test -s conftest$ac_exeext'
4776   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4777   (eval $ac_try) 2>&5
4778   ac_status=$?
4779   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4780   (exit $ac_status); }; }; then
4781   eval "$as_ac_var=yes"
4782 else
4783   echo "$as_me: failed program was:" >&5
4784 cat conftest.$ac_ext >&5
4785 eval "$as_ac_var=no"
4786 fi
4787 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4788 fi
4789 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4790 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4791 if test `eval echo '${'$as_ac_var'}'` = yes; then
4792   cat >>confdefs.h <<_ACEOF
4793 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4794 _ACEOF
4795
4796 else
4797
4798 echo "$as_me:$LINENO: checking for iswalnum in -lw" >&5
4799 echo $ECHO_N "checking for iswalnum in -lw... $ECHO_C" >&6
4800 if test "${ac_cv_lib_w_iswalnum+set}" = set; then
4801   echo $ECHO_N "(cached) $ECHO_C" >&6
4802 else
4803   ac_check_lib_save_LIBS=$LIBS
4804 LIBS="-lw  $LIBS"
4805 cat >conftest.$ac_ext <<_ACEOF
4806 #line $LINENO "configure"
4807 #include "confdefs.h"
4808
4809 /* Override any gcc2 internal prototype to avoid an error.  */
4810 #ifdef __cplusplus
4811 extern "C"
4812 #endif
4813 /* We use char because int might match the return type of a gcc2
4814    builtin and then its argument prototype would still apply.  */
4815 char iswalnum ();
4816 int
4817 main ()
4818 {
4819 iswalnum ();
4820   ;
4821   return 0;
4822 }
4823 _ACEOF
4824 rm -f conftest.$ac_objext conftest$ac_exeext
4825 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4826   (eval $ac_link) 2>&5
4827   ac_status=$?
4828   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4829   (exit $ac_status); } &&
4830          { ac_try='test -s conftest$ac_exeext'
4831   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4832   (eval $ac_try) 2>&5
4833   ac_status=$?
4834   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4835   (exit $ac_status); }; }; then
4836   ac_cv_lib_w_iswalnum=yes
4837 else
4838   echo "$as_me: failed program was:" >&5
4839 cat conftest.$ac_ext >&5
4840 ac_cv_lib_w_iswalnum=no
4841 fi
4842 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4843 LIBS=$ac_check_lib_save_LIBS
4844 fi
4845 echo "$as_me:$LINENO: result: $ac_cv_lib_w_iswalnum" >&5
4846 echo "${ECHO_T}$ac_cv_lib_w_iswalnum" >&6
4847 if test $ac_cv_lib_w_iswalnum = yes; then
4848   cat >>confdefs.h <<_ACEOF
4849 #define HAVE_LIBW 1
4850 _ACEOF
4851
4852   LIBS="-lw $LIBS"
4853
4854 fi
4855
4856 fi
4857 done
4858
4859
4860 for ac_func in gethostbyname
4861 do
4862 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4863 echo "$as_me:$LINENO: checking for $ac_func" >&5
4864 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4865 if eval "test \"\${$as_ac_var+set}\" = set"; then
4866   echo $ECHO_N "(cached) $ECHO_C" >&6
4867 else
4868   cat >conftest.$ac_ext <<_ACEOF
4869 #line $LINENO "configure"
4870 #include "confdefs.h"
4871 /* System header to define __stub macros and hopefully few prototypes,
4872     which can conflict with char $ac_func (); below.  */
4873 #include <assert.h>
4874 /* Override any gcc2 internal prototype to avoid an error.  */
4875 #ifdef __cplusplus
4876 extern "C"
4877 #endif
4878 /* We use char because int might match the return type of a gcc2
4879    builtin and then its argument prototype would still apply.  */
4880 char $ac_func ();
4881 char (*f) ();
4882
4883 int
4884 main ()
4885 {
4886 /* The GNU C library defines this for functions which it implements
4887     to always fail with ENOSYS.  Some functions are actually named
4888     something starting with __ and the normal name is an alias.  */
4889 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4890 choke me
4891 #else
4892 f = $ac_func;
4893 #endif
4894
4895   ;
4896   return 0;
4897 }
4898 _ACEOF
4899 rm -f conftest.$ac_objext conftest$ac_exeext
4900 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4901   (eval $ac_link) 2>&5
4902   ac_status=$?
4903   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4904   (exit $ac_status); } &&
4905          { ac_try='test -s conftest$ac_exeext'
4906   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4907   (eval $ac_try) 2>&5
4908   ac_status=$?
4909   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4910   (exit $ac_status); }; }; then
4911   eval "$as_ac_var=yes"
4912 else
4913   echo "$as_me: failed program was:" >&5
4914 cat conftest.$ac_ext >&5
4915 eval "$as_ac_var=no"
4916 fi
4917 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4918 fi
4919 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4920 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4921 if test `eval echo '${'$as_ac_var'}'` = yes; then
4922   cat >>confdefs.h <<_ACEOF
4923 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4924 _ACEOF
4925
4926 else
4927
4928 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
4929 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
4930 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
4931   echo $ECHO_N "(cached) $ECHO_C" >&6
4932 else
4933   ac_check_lib_save_LIBS=$LIBS
4934 LIBS="-lnsl  $LIBS"
4935 cat >conftest.$ac_ext <<_ACEOF
4936 #line $LINENO "configure"
4937 #include "confdefs.h"
4938
4939 /* Override any gcc2 internal prototype to avoid an error.  */
4940 #ifdef __cplusplus
4941 extern "C"
4942 #endif
4943 /* We use char because int might match the return type of a gcc2
4944    builtin and then its argument prototype would still apply.  */
4945 char gethostbyname ();
4946 int
4947 main ()
4948 {
4949 gethostbyname ();
4950   ;
4951   return 0;
4952 }
4953 _ACEOF
4954 rm -f conftest.$ac_objext conftest$ac_exeext
4955 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4956   (eval $ac_link) 2>&5
4957   ac_status=$?
4958   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4959   (exit $ac_status); } &&
4960          { ac_try='test -s conftest$ac_exeext'
4961   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4962   (eval $ac_try) 2>&5
4963   ac_status=$?
4964   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4965   (exit $ac_status); }; }; then
4966   ac_cv_lib_nsl_gethostbyname=yes
4967 else
4968   echo "$as_me: failed program was:" >&5
4969 cat conftest.$ac_ext >&5
4970 ac_cv_lib_nsl_gethostbyname=no
4971 fi
4972 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4973 LIBS=$ac_check_lib_save_LIBS
4974 fi
4975 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
4976 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
4977 if test $ac_cv_lib_nsl_gethostbyname = yes; then
4978   cat >>confdefs.h <<_ACEOF
4979 #define HAVE_LIBNSL 1
4980 _ACEOF
4981
4982   LIBS="-lnsl $LIBS"
4983
4984 fi
4985
4986 fi
4987 done
4988
4989
4990 for ac_func in connect
4991 do
4992 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4993 echo "$as_me:$LINENO: checking for $ac_func" >&5
4994 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4995 if eval "test \"\${$as_ac_var+set}\" = set"; then
4996   echo $ECHO_N "(cached) $ECHO_C" >&6
4997 else
4998   cat >conftest.$ac_ext <<_ACEOF
4999 #line $LINENO "configure"
5000 #include "confdefs.h"
5001 /* System header to define __stub macros and hopefully few prototypes,
5002     which can conflict with char $ac_func (); below.  */
5003 #include <assert.h>
5004 /* Override any gcc2 internal prototype to avoid an error.  */
5005 #ifdef __cplusplus
5006 extern "C"
5007 #endif
5008 /* We use char because int might match the return type of a gcc2
5009    builtin and then its argument prototype would still apply.  */
5010 char $ac_func ();
5011 char (*f) ();
5012
5013 int
5014 main ()
5015 {
5016 /* The GNU C library defines this for functions which it implements
5017     to always fail with ENOSYS.  Some functions are actually named
5018     something starting with __ and the normal name is an alias.  */
5019 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5020 choke me
5021 #else
5022 f = $ac_func;
5023 #endif
5024
5025   ;
5026   return 0;
5027 }
5028 _ACEOF
5029 rm -f conftest.$ac_objext conftest$ac_exeext
5030 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5031   (eval $ac_link) 2>&5
5032   ac_status=$?
5033   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5034   (exit $ac_status); } &&
5035          { ac_try='test -s conftest$ac_exeext'
5036   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5037   (eval $ac_try) 2>&5
5038   ac_status=$?
5039   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5040   (exit $ac_status); }; }; then
5041   eval "$as_ac_var=yes"
5042 else
5043   echo "$as_me: failed program was:" >&5
5044 cat conftest.$ac_ext >&5
5045 eval "$as_ac_var=no"
5046 fi
5047 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5048 fi
5049 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5050 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5051 if test `eval echo '${'$as_ac_var'}'` = yes; then
5052   cat >>confdefs.h <<_ACEOF
5053 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5054 _ACEOF
5055
5056 else
5057
5058 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
5059 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
5060 if test "${ac_cv_lib_socket_connect+set}" = set; then
5061   echo $ECHO_N "(cached) $ECHO_C" >&6
5062 else
5063   ac_check_lib_save_LIBS=$LIBS
5064 LIBS="-lsocket  $LIBS"
5065 cat >conftest.$ac_ext <<_ACEOF
5066 #line $LINENO "configure"
5067 #include "confdefs.h"
5068
5069 /* Override any gcc2 internal prototype to avoid an error.  */
5070 #ifdef __cplusplus
5071 extern "C"
5072 #endif
5073 /* We use char because int might match the return type of a gcc2
5074    builtin and then its argument prototype would still apply.  */
5075 char connect ();
5076 int
5077 main ()
5078 {
5079 connect ();
5080   ;
5081   return 0;
5082 }
5083 _ACEOF
5084 rm -f conftest.$ac_objext conftest$ac_exeext
5085 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5086   (eval $ac_link) 2>&5
5087   ac_status=$?
5088   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5089   (exit $ac_status); } &&
5090          { ac_try='test -s conftest$ac_exeext'
5091   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5092   (eval $ac_try) 2>&5
5093   ac_status=$?
5094   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5095   (exit $ac_status); }; }; then
5096   ac_cv_lib_socket_connect=yes
5097 else
5098   echo "$as_me: failed program was:" >&5
5099 cat conftest.$ac_ext >&5
5100 ac_cv_lib_socket_connect=no
5101 fi
5102 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5103 LIBS=$ac_check_lib_save_LIBS
5104 fi
5105 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
5106 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
5107 if test $ac_cv_lib_socket_connect = yes; then
5108   cat >>confdefs.h <<_ACEOF
5109 #define HAVE_LIBSOCKET 1
5110 _ACEOF
5111
5112   LIBS="-lsocket $LIBS"
5113
5114 fi
5115
5116 fi
5117 done
5118
5119
5120 for ac_func in inet_aton
5121 do
5122 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5123 echo "$as_me:$LINENO: checking for $ac_func" >&5
5124 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5125 if eval "test \"\${$as_ac_var+set}\" = set"; then
5126   echo $ECHO_N "(cached) $ECHO_C" >&6
5127 else
5128   cat >conftest.$ac_ext <<_ACEOF
5129 #line $LINENO "configure"
5130 #include "confdefs.h"
5131 /* System header to define __stub macros and hopefully few prototypes,
5132     which can conflict with char $ac_func (); below.  */
5133 #include <assert.h>
5134 /* Override any gcc2 internal prototype to avoid an error.  */
5135 #ifdef __cplusplus
5136 extern "C"
5137 #endif
5138 /* We use char because int might match the return type of a gcc2
5139    builtin and then its argument prototype would still apply.  */
5140 char $ac_func ();
5141 char (*f) ();
5142
5143 int
5144 main ()
5145 {
5146 /* The GNU C library defines this for functions which it implements
5147     to always fail with ENOSYS.  Some functions are actually named
5148     something starting with __ and the normal name is an alias.  */
5149 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5150 choke me
5151 #else
5152 f = $ac_func;
5153 #endif
5154
5155   ;
5156   return 0;
5157 }
5158 _ACEOF
5159 rm -f conftest.$ac_objext conftest$ac_exeext
5160 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5161   (eval $ac_link) 2>&5
5162   ac_status=$?
5163   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5164   (exit $ac_status); } &&
5165          { ac_try='test -s conftest$ac_exeext'
5166   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5167   (eval $ac_try) 2>&5
5168   ac_status=$?
5169   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5170   (exit $ac_status); }; }; then
5171   eval "$as_ac_var=yes"
5172 else
5173   echo "$as_me: failed program was:" >&5
5174 cat conftest.$ac_ext >&5
5175 eval "$as_ac_var=no"
5176 fi
5177 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5178 fi
5179 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5180 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5181 if test `eval echo '${'$as_ac_var'}'` = yes; then
5182   cat >>confdefs.h <<_ACEOF
5183 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5184 _ACEOF
5185
5186 else
5187
5188 echo "$as_me:$LINENO: checking for inet_aton in -lresolv" >&5
5189 echo $ECHO_N "checking for inet_aton in -lresolv... $ECHO_C" >&6
5190 if test "${ac_cv_lib_resolv_inet_aton+set}" = set; then
5191   echo $ECHO_N "(cached) $ECHO_C" >&6
5192 else
5193   ac_check_lib_save_LIBS=$LIBS
5194 LIBS="-lresolv  $LIBS"
5195 cat >conftest.$ac_ext <<_ACEOF
5196 #line $LINENO "configure"
5197 #include "confdefs.h"
5198
5199 /* Override any gcc2 internal prototype to avoid an error.  */
5200 #ifdef __cplusplus
5201 extern "C"
5202 #endif
5203 /* We use char because int might match the return type of a gcc2
5204    builtin and then its argument prototype would still apply.  */
5205 char inet_aton ();
5206 int
5207 main ()
5208 {
5209 inet_aton ();
5210   ;
5211   return 0;
5212 }
5213 _ACEOF
5214 rm -f conftest.$ac_objext conftest$ac_exeext
5215 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5216   (eval $ac_link) 2>&5
5217   ac_status=$?
5218   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5219   (exit $ac_status); } &&
5220          { ac_try='test -s conftest$ac_exeext'
5221   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5222   (eval $ac_try) 2>&5
5223   ac_status=$?
5224   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5225   (exit $ac_status); }; }; then
5226   ac_cv_lib_resolv_inet_aton=yes
5227 else
5228   echo "$as_me: failed program was:" >&5
5229 cat conftest.$ac_ext >&5
5230 ac_cv_lib_resolv_inet_aton=no
5231 fi
5232 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5233 LIBS=$ac_check_lib_save_LIBS
5234 fi
5235 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_aton" >&5
5236 echo "${ECHO_T}$ac_cv_lib_resolv_inet_aton" >&6
5237 if test $ac_cv_lib_resolv_inet_aton = yes; then
5238   cat >>confdefs.h <<_ACEOF
5239 #define HAVE_LIBRESOLV 1
5240 _ACEOF
5241
5242   LIBS="-lresolv $LIBS"
5243
5244 fi
5245
5246 fi
5247 done
5248
5249
5250 echo "$as_me:$LINENO: checking for _xpg4_setrunelocale in -lxpg4" >&5
5251 echo $ECHO_N "checking for _xpg4_setrunelocale in -lxpg4... $ECHO_C" >&6
5252 if test "${ac_cv_lib_xpg4__xpg4_setrunelocale+set}" = set; then
5253   echo $ECHO_N "(cached) $ECHO_C" >&6
5254 else
5255   ac_check_lib_save_LIBS=$LIBS
5256 LIBS="-lxpg4  $LIBS"
5257 cat >conftest.$ac_ext <<_ACEOF
5258 #line $LINENO "configure"
5259 #include "confdefs.h"
5260
5261 /* Override any gcc2 internal prototype to avoid an error.  */
5262 #ifdef __cplusplus
5263 extern "C"
5264 #endif
5265 /* We use char because int might match the return type of a gcc2
5266    builtin and then its argument prototype would still apply.  */
5267 char _xpg4_setrunelocale ();
5268 int
5269 main ()
5270 {
5271 _xpg4_setrunelocale ();
5272   ;
5273   return 0;
5274 }
5275 _ACEOF
5276 rm -f conftest.$ac_objext conftest$ac_exeext
5277 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5278   (eval $ac_link) 2>&5
5279   ac_status=$?
5280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5281   (exit $ac_status); } &&
5282          { ac_try='test -s conftest$ac_exeext'
5283   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5284   (eval $ac_try) 2>&5
5285   ac_status=$?
5286   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5287   (exit $ac_status); }; }; then
5288   ac_cv_lib_xpg4__xpg4_setrunelocale=yes
5289 else
5290   echo "$as_me: failed program was:" >&5
5291 cat conftest.$ac_ext >&5
5292 ac_cv_lib_xpg4__xpg4_setrunelocale=no
5293 fi
5294 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5295 LIBS=$ac_check_lib_save_LIBS
5296 fi
5297 echo "$as_me:$LINENO: result: $ac_cv_lib_xpg4__xpg4_setrunelocale" >&5
5298 echo "${ECHO_T}$ac_cv_lib_xpg4__xpg4_setrunelocale" >&6
5299 if test $ac_cv_lib_xpg4__xpg4_setrunelocale = yes; then
5300   cat >>confdefs.h <<_ACEOF
5301 #define HAVE_LIBXPG4 1
5302 _ACEOF
5303
5304   LIBS="-lxpg4 $LIBS"
5305
5306 fi
5307
5308
5309 echo "$as_me:$LINENO: checking for mmap in -lmmap" >&5
5310 echo $ECHO_N "checking for mmap in -lmmap... $ECHO_C" >&6
5311 if test "${ac_cv_lib_mmap_mmap+set}" = set; then
5312   echo $ECHO_N "(cached) $ECHO_C" >&6
5313 else
5314   ac_check_lib_save_LIBS=$LIBS
5315 LIBS="-lmmap  $LIBS"
5316 cat >conftest.$ac_ext <<_ACEOF
5317 #line $LINENO "configure"
5318 #include "confdefs.h"
5319
5320 /* Override any gcc2 internal prototype to avoid an error.  */
5321 #ifdef __cplusplus
5322 extern "C"
5323 #endif
5324 /* We use char because int might match the return type of a gcc2
5325    builtin and then its argument prototype would still apply.  */
5326 char mmap ();
5327 int
5328 main ()
5329 {
5330 mmap ();
5331   ;
5332   return 0;
5333 }
5334 _ACEOF
5335 rm -f conftest.$ac_objext conftest$ac_exeext
5336 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5337   (eval $ac_link) 2>&5
5338   ac_status=$?
5339   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5340   (exit $ac_status); } &&
5341          { ac_try='test -s conftest$ac_exeext'
5342   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5343   (eval $ac_try) 2>&5
5344   ac_status=$?
5345   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5346   (exit $ac_status); }; }; then
5347   ac_cv_lib_mmap_mmap=yes
5348 else
5349   echo "$as_me: failed program was:" >&5
5350 cat conftest.$ac_ext >&5
5351 ac_cv_lib_mmap_mmap=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_mmap_mmap" >&5
5357 echo "${ECHO_T}$ac_cv_lib_mmap_mmap" >&6
5358 if test $ac_cv_lib_mmap_mmap = yes; then
5359   cat >>confdefs.h <<_ACEOF
5360 #define HAVE_LIBMMAP 1
5361 _ACEOF
5362
5363   LIBS="-lmmap $LIBS"
5364
5365 fi
5366
5367
5368 JPEGLIB=""
5369
5370 echo "$as_me:$LINENO: checking for egrep" >&5
5371 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
5372 if test "${ac_cv_prog_egrep+set}" = set; then
5373   echo $ECHO_N "(cached) $ECHO_C" >&6
5374 else
5375   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
5376     then ac_cv_prog_egrep='grep -E'
5377     else ac_cv_prog_egrep='egrep'
5378     fi
5379 fi
5380 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
5381 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
5382  EGREP=$ac_cv_prog_egrep
5383
5384
5385 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5386 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5387 if test "${ac_cv_header_stdc+set}" = set; then
5388   echo $ECHO_N "(cached) $ECHO_C" >&6
5389 else
5390   cat >conftest.$ac_ext <<_ACEOF
5391 #line $LINENO "configure"
5392 #include "confdefs.h"
5393 #include <stdlib.h>
5394 #include <stdarg.h>
5395 #include <string.h>
5396 #include <float.h>
5397
5398 _ACEOF
5399 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5400   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5401   ac_status=$?
5402   grep -v '^ *+' conftest.er1 >conftest.err
5403   rm -f conftest.er1
5404   cat conftest.err >&5
5405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5406   (exit $ac_status); } >/dev/null; then
5407   if test -s conftest.err; then
5408     ac_cpp_err=$ac_c_preproc_warn_flag
5409   else
5410     ac_cpp_err=
5411   fi
5412 else
5413   ac_cpp_err=yes
5414 fi
5415 if test -z "$ac_cpp_err"; then
5416   ac_cv_header_stdc=yes
5417 else
5418   echo "$as_me: failed program was:" >&5
5419   cat conftest.$ac_ext >&5
5420   ac_cv_header_stdc=no
5421 fi
5422 rm -f conftest.err conftest.$ac_ext
5423
5424 if test $ac_cv_header_stdc = yes; then
5425   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5426   cat >conftest.$ac_ext <<_ACEOF
5427 #line $LINENO "configure"
5428 #include "confdefs.h"
5429 #include <string.h>
5430
5431 _ACEOF
5432 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5433   $EGREP "memchr" >/dev/null 2>&1; then
5434   :
5435 else
5436   ac_cv_header_stdc=no
5437 fi
5438 rm -f conftest*
5439
5440 fi
5441
5442 if test $ac_cv_header_stdc = yes; then
5443   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5444   cat >conftest.$ac_ext <<_ACEOF
5445 #line $LINENO "configure"
5446 #include "confdefs.h"
5447 #include <stdlib.h>
5448
5449 _ACEOF
5450 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5451   $EGREP "free" >/dev/null 2>&1; then
5452   :
5453 else
5454   ac_cv_header_stdc=no
5455 fi
5456 rm -f conftest*
5457
5458 fi
5459
5460 if test $ac_cv_header_stdc = yes; then
5461   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5462   if test "$cross_compiling" = yes; then
5463   :
5464 else
5465   cat >conftest.$ac_ext <<_ACEOF
5466 #line $LINENO "configure"
5467 #include "confdefs.h"
5468 #include <ctype.h>
5469 #if ((' ' & 0x0FF) == 0x020)
5470 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5471 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5472 #else
5473 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
5474                      || ('j' <= (c) && (c) <= 'r') \
5475                      || ('s' <= (c) && (c) <= 'z'))
5476 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5477 #endif
5478
5479 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5480 int
5481 main ()
5482 {
5483   int i;
5484   for (i = 0; i < 256; i++)
5485     if (XOR (islower (i), ISLOWER (i))
5486         || toupper (i) != TOUPPER (i))
5487       exit(2);
5488   exit (0);
5489 }
5490 _ACEOF
5491 rm -f conftest$ac_exeext
5492 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5493   (eval $ac_link) 2>&5
5494   ac_status=$?
5495   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5496   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5497   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5498   (eval $ac_try) 2>&5
5499   ac_status=$?
5500   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5501   (exit $ac_status); }; }; then
5502   :
5503 else
5504   echo "$as_me: program exited with status $ac_status" >&5
5505 echo "$as_me: failed program was:" >&5
5506 cat conftest.$ac_ext >&5
5507 ( exit $ac_status )
5508 ac_cv_header_stdc=no
5509 fi
5510 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5511 fi
5512 fi
5513 fi
5514 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5515 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5516 if test $ac_cv_header_stdc = yes; then
5517
5518 cat >>confdefs.h <<\_ACEOF
5519 #define STDC_HEADERS 1
5520 _ACEOF
5521
5522 fi
5523
5524 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5525
5526
5527
5528
5529
5530
5531
5532
5533
5534 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5535                   inttypes.h stdint.h unistd.h
5536 do
5537 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5538 echo "$as_me:$LINENO: checking for $ac_header" >&5
5539 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5540 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5541   echo $ECHO_N "(cached) $ECHO_C" >&6
5542 else
5543   cat >conftest.$ac_ext <<_ACEOF
5544 #line $LINENO "configure"
5545 #include "confdefs.h"
5546 $ac_includes_default
5547
5548 #include <$ac_header>
5549 _ACEOF
5550 rm -f conftest.$ac_objext
5551 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5552   (eval $ac_compile) 2>&5
5553   ac_status=$?
5554   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5555   (exit $ac_status); } &&
5556          { ac_try='test -s conftest.$ac_objext'
5557   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5558   (eval $ac_try) 2>&5
5559   ac_status=$?
5560   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5561   (exit $ac_status); }; }; then
5562   eval "$as_ac_Header=yes"
5563 else
5564   echo "$as_me: failed program was:" >&5
5565 cat conftest.$ac_ext >&5
5566 eval "$as_ac_Header=no"
5567 fi
5568 rm -f conftest.$ac_objext conftest.$ac_ext
5569 fi
5570 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5571 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5572 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5573   cat >>confdefs.h <<_ACEOF
5574 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5575 _ACEOF
5576
5577 fi
5578
5579 done
5580
5581
5582
5583 for ac_header in jpeglib.h
5584 do
5585 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5586 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5587   echo "$as_me:$LINENO: checking for $ac_header" >&5
5588 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5589 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5590   echo $ECHO_N "(cached) $ECHO_C" >&6
5591 fi
5592 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5593 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5594 else
5595   # Is the header compilable?
5596 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5597 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5598 cat >conftest.$ac_ext <<_ACEOF
5599 #line $LINENO "configure"
5600 #include "confdefs.h"
5601 $ac_includes_default
5602 #include <$ac_header>
5603 _ACEOF
5604 rm -f conftest.$ac_objext
5605 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5606   (eval $ac_compile) 2>&5
5607   ac_status=$?
5608   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5609   (exit $ac_status); } &&
5610          { ac_try='test -s conftest.$ac_objext'
5611   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5612   (eval $ac_try) 2>&5
5613   ac_status=$?
5614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5615   (exit $ac_status); }; }; then
5616   ac_header_compiler=yes
5617 else
5618   echo "$as_me: failed program was:" >&5
5619 cat conftest.$ac_ext >&5
5620 ac_header_compiler=no
5621 fi
5622 rm -f conftest.$ac_objext conftest.$ac_ext
5623 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5624 echo "${ECHO_T}$ac_header_compiler" >&6
5625
5626 # Is the header present?
5627 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5628 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5629 cat >conftest.$ac_ext <<_ACEOF
5630 #line $LINENO "configure"
5631 #include "confdefs.h"
5632 #include <$ac_header>
5633 _ACEOF
5634 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5635   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5636   ac_status=$?
5637   grep -v '^ *+' conftest.er1 >conftest.err
5638   rm -f conftest.er1
5639   cat conftest.err >&5
5640   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5641   (exit $ac_status); } >/dev/null; then
5642   if test -s conftest.err; then
5643     ac_cpp_err=$ac_c_preproc_warn_flag
5644   else
5645     ac_cpp_err=
5646   fi
5647 else
5648   ac_cpp_err=yes
5649 fi
5650 if test -z "$ac_cpp_err"; then
5651   ac_header_preproc=yes
5652 else
5653   echo "$as_me: failed program was:" >&5
5654   cat conftest.$ac_ext >&5
5655   ac_header_preproc=no
5656 fi
5657 rm -f conftest.err conftest.$ac_ext
5658 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5659 echo "${ECHO_T}$ac_header_preproc" >&6
5660
5661 # So?  What about this header?
5662 case $ac_header_compiler:$ac_header_preproc in
5663   yes:no )
5664     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5665 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5666     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5667 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
5668   no:yes )
5669     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5670 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5671     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5672 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5673     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5674 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
5675 esac
5676 echo "$as_me:$LINENO: checking for $ac_header" >&5
5677 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5678 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5679   echo $ECHO_N "(cached) $ECHO_C" >&6
5680 else
5681   eval "$as_ac_Header=$ac_header_preproc"
5682 fi
5683 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5684 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5685
5686 fi
5687 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5688   cat >>confdefs.h <<_ACEOF
5689 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5690 _ACEOF
5691  echo "$as_me:$LINENO: checking for jpeg_start_decompress in -ljpeg" >&5
5692 echo $ECHO_N "checking for jpeg_start_decompress in -ljpeg... $ECHO_C" >&6
5693 if test "${ac_cv_lib_jpeg_jpeg_start_decompress+set}" = set; then
5694   echo $ECHO_N "(cached) $ECHO_C" >&6
5695 else
5696   ac_check_lib_save_LIBS=$LIBS
5697 LIBS="-ljpeg  $LIBS"
5698 cat >conftest.$ac_ext <<_ACEOF
5699 #line $LINENO "configure"
5700 #include "confdefs.h"
5701
5702 /* Override any gcc2 internal prototype to avoid an error.  */
5703 #ifdef __cplusplus
5704 extern "C"
5705 #endif
5706 /* We use char because int might match the return type of a gcc2
5707    builtin and then its argument prototype would still apply.  */
5708 char jpeg_start_decompress ();
5709 int
5710 main ()
5711 {
5712 jpeg_start_decompress ();
5713   ;
5714   return 0;
5715 }
5716 _ACEOF
5717 rm -f conftest.$ac_objext conftest$ac_exeext
5718 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5719   (eval $ac_link) 2>&5
5720   ac_status=$?
5721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5722   (exit $ac_status); } &&
5723          { ac_try='test -s conftest$ac_exeext'
5724   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5725   (eval $ac_try) 2>&5
5726   ac_status=$?
5727   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5728   (exit $ac_status); }; }; then
5729   ac_cv_lib_jpeg_jpeg_start_decompress=yes
5730 else
5731   echo "$as_me: failed program was:" >&5
5732 cat conftest.$ac_ext >&5
5733 ac_cv_lib_jpeg_jpeg_start_decompress=no
5734 fi
5735 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5736 LIBS=$ac_check_lib_save_LIBS
5737 fi
5738 echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_start_decompress" >&5
5739 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_start_decompress" >&6
5740 if test $ac_cv_lib_jpeg_jpeg_start_decompress = yes; then
5741
5742 cat >>confdefs.h <<\_ACEOF
5743 #define HAVE_LIBJPEG 1
5744 _ACEOF
5745
5746         JPEGLIB="-ljpeg"
5747
5748 fi
5749
5750
5751 fi
5752
5753 done
5754
5755
5756
5757
5758
5759 XFILES=""
5760
5761 OPENGLFILES=""
5762
5763 GLU32FILES=""
5764
5765 OPENGL_LIBS=""
5766 if test "$have_x" = "yes"
5767 then
5768     XLIB="-lXext -lX11"
5769     ac_save_CPPFLAGS="$CPPFLAGS"
5770     CPPFLAGS="$CPPFLAGS $X_CFLAGS"
5771
5772
5773 for ac_header in X11/Xlib.h
5774 do
5775 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5776 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5777   echo "$as_me:$LINENO: checking for $ac_header" >&5
5778 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5779 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5780   echo $ECHO_N "(cached) $ECHO_C" >&6
5781 fi
5782 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5783 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5784 else
5785   # Is the header compilable?
5786 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5787 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5788 cat >conftest.$ac_ext <<_ACEOF
5789 #line $LINENO "configure"
5790 #include "confdefs.h"
5791 $ac_includes_default
5792 #include <$ac_header>
5793 _ACEOF
5794 rm -f conftest.$ac_objext
5795 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5796   (eval $ac_compile) 2>&5
5797   ac_status=$?
5798   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5799   (exit $ac_status); } &&
5800          { ac_try='test -s conftest.$ac_objext'
5801   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5802   (eval $ac_try) 2>&5
5803   ac_status=$?
5804   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5805   (exit $ac_status); }; }; then
5806   ac_header_compiler=yes
5807 else
5808   echo "$as_me: failed program was:" >&5
5809 cat conftest.$ac_ext >&5
5810 ac_header_compiler=no
5811 fi
5812 rm -f conftest.$ac_objext conftest.$ac_ext
5813 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5814 echo "${ECHO_T}$ac_header_compiler" >&6
5815
5816 # Is the header present?
5817 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5818 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5819 cat >conftest.$ac_ext <<_ACEOF
5820 #line $LINENO "configure"
5821 #include "confdefs.h"
5822 #include <$ac_header>
5823 _ACEOF
5824 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5825   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5826   ac_status=$?
5827   grep -v '^ *+' conftest.er1 >conftest.err
5828   rm -f conftest.er1
5829   cat conftest.err >&5
5830   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5831   (exit $ac_status); } >/dev/null; then
5832   if test -s conftest.err; then
5833     ac_cpp_err=$ac_c_preproc_warn_flag
5834   else
5835     ac_cpp_err=
5836   fi
5837 else
5838   ac_cpp_err=yes
5839 fi
5840 if test -z "$ac_cpp_err"; then
5841   ac_header_preproc=yes
5842 else
5843   echo "$as_me: failed program was:" >&5
5844   cat conftest.$ac_ext >&5
5845   ac_header_preproc=no
5846 fi
5847 rm -f conftest.err conftest.$ac_ext
5848 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5849 echo "${ECHO_T}$ac_header_preproc" >&6
5850
5851 # So?  What about this header?
5852 case $ac_header_compiler:$ac_header_preproc in
5853   yes:no )
5854     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5855 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5856     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5857 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
5858   no:yes )
5859     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5860 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5861     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5862 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5863     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5864 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
5865 esac
5866 echo "$as_me:$LINENO: checking for $ac_header" >&5
5867 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5868 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5869   echo $ECHO_N "(cached) $ECHO_C" >&6
5870 else
5871   eval "$as_ac_Header=$ac_header_preproc"
5872 fi
5873 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5874 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5875
5876 fi
5877 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5878   cat >>confdefs.h <<_ACEOF
5879 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5880 _ACEOF
5881
5882
5883 for ac_header in X11/XKBlib.h
5884 do
5885 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5886 echo "$as_me:$LINENO: checking for $ac_header" >&5
5887 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5888 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5889   echo $ECHO_N "(cached) $ECHO_C" >&6
5890 else
5891   cat >conftest.$ac_ext <<_ACEOF
5892 #line $LINENO "configure"
5893 #include "confdefs.h"
5894 #include <X11/Xlib.h>
5895
5896 #include <$ac_header>
5897 _ACEOF
5898 rm -f conftest.$ac_objext
5899 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5900   (eval $ac_compile) 2>&5
5901   ac_status=$?
5902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5903   (exit $ac_status); } &&
5904          { ac_try='test -s conftest.$ac_objext'
5905   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5906   (eval $ac_try) 2>&5
5907   ac_status=$?
5908   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5909   (exit $ac_status); }; }; then
5910   eval "$as_ac_Header=yes"
5911 else
5912   echo "$as_me: failed program was:" >&5
5913 cat conftest.$ac_ext >&5
5914 eval "$as_ac_Header=no"
5915 fi
5916 rm -f conftest.$ac_objext conftest.$ac_ext
5917 fi
5918 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5919 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5920 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5921   cat >>confdefs.h <<_ACEOF
5922 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5923 _ACEOF
5924                 echo "$as_me:$LINENO: checking for XkbQueryExtension in -lX11" >&5
5925 echo $ECHO_N "checking for XkbQueryExtension in -lX11... $ECHO_C" >&6
5926 if test "${ac_cv_lib_X11_XkbQueryExtension+set}" = set; then
5927   echo $ECHO_N "(cached) $ECHO_C" >&6
5928 else
5929   ac_check_lib_save_LIBS=$LIBS
5930 LIBS="-lX11 $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
5931 cat >conftest.$ac_ext <<_ACEOF
5932 #line $LINENO "configure"
5933 #include "confdefs.h"
5934
5935 /* Override any gcc2 internal prototype to avoid an error.  */
5936 #ifdef __cplusplus
5937 extern "C"
5938 #endif
5939 /* We use char because int might match the return type of a gcc2
5940    builtin and then its argument prototype would still apply.  */
5941 char XkbQueryExtension ();
5942 int
5943 main ()
5944 {
5945 XkbQueryExtension ();
5946   ;
5947   return 0;
5948 }
5949 _ACEOF
5950 rm -f conftest.$ac_objext conftest$ac_exeext
5951 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5952   (eval $ac_link) 2>&5
5953   ac_status=$?
5954   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5955   (exit $ac_status); } &&
5956          { ac_try='test -s conftest$ac_exeext'
5957   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5958   (eval $ac_try) 2>&5
5959   ac_status=$?
5960   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5961   (exit $ac_status); }; }; then
5962   ac_cv_lib_X11_XkbQueryExtension=yes
5963 else
5964   echo "$as_me: failed program was:" >&5
5965 cat conftest.$ac_ext >&5
5966 ac_cv_lib_X11_XkbQueryExtension=no
5967 fi
5968 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5969 LIBS=$ac_check_lib_save_LIBS
5970 fi
5971 echo "$as_me:$LINENO: result: $ac_cv_lib_X11_XkbQueryExtension" >&5
5972 echo "${ECHO_T}$ac_cv_lib_X11_XkbQueryExtension" >&6
5973 if test $ac_cv_lib_X11_XkbQueryExtension = yes; then
5974
5975 cat >>confdefs.h <<\_ACEOF
5976 #define HAVE_XKB 1
5977 _ACEOF
5978
5979 fi
5980
5981
5982 else
5983   { echo "$as_me:$LINENO: WARNING: Xkb extension not found, Wine will be built without it" >&5
5984 echo "$as_me: WARNING: Xkb extension not found, Wine will be built without it" >&2;}
5985 fi
5986
5987 done
5988
5989
5990
5991 for ac_header in X11/extensions/XShm.h
5992 do
5993 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5994 echo "$as_me:$LINENO: checking for $ac_header" >&5
5995 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5996 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5997   echo $ECHO_N "(cached) $ECHO_C" >&6
5998 else
5999   cat >conftest.$ac_ext <<_ACEOF
6000 #line $LINENO "configure"
6001 #include "confdefs.h"
6002 #include <X11/Xlib.h>
6003
6004 #include <$ac_header>
6005 _ACEOF
6006 rm -f conftest.$ac_objext
6007 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6008   (eval $ac_compile) 2>&5
6009   ac_status=$?
6010   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6011   (exit $ac_status); } &&
6012          { ac_try='test -s conftest.$ac_objext'
6013   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6014   (eval $ac_try) 2>&5
6015   ac_status=$?
6016   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6017   (exit $ac_status); }; }; then
6018   eval "$as_ac_Header=yes"
6019 else
6020   echo "$as_me: failed program was:" >&5
6021 cat conftest.$ac_ext >&5
6022 eval "$as_ac_Header=no"
6023 fi
6024 rm -f conftest.$ac_objext conftest.$ac_ext
6025 fi
6026 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6027 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6028 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6029   cat >>confdefs.h <<_ACEOF
6030 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6031 _ACEOF
6032                 echo "$as_me:$LINENO: checking for XShmQueryExtension in -lXext" >&5
6033 echo $ECHO_N "checking for XShmQueryExtension in -lXext... $ECHO_C" >&6
6034 if test "${ac_cv_lib_Xext_XShmQueryExtension+set}" = set; then
6035   echo $ECHO_N "(cached) $ECHO_C" >&6
6036 else
6037   ac_check_lib_save_LIBS=$LIBS
6038 LIBS="-lXext $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
6039 cat >conftest.$ac_ext <<_ACEOF
6040 #line $LINENO "configure"
6041 #include "confdefs.h"
6042
6043 /* Override any gcc2 internal prototype to avoid an error.  */
6044 #ifdef __cplusplus
6045 extern "C"
6046 #endif
6047 /* We use char because int might match the return type of a gcc2
6048    builtin and then its argument prototype would still apply.  */
6049 char XShmQueryExtension ();
6050 int
6051 main ()
6052 {
6053 XShmQueryExtension ();
6054   ;
6055   return 0;
6056 }
6057 _ACEOF
6058 rm -f conftest.$ac_objext conftest$ac_exeext
6059 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6060   (eval $ac_link) 2>&5
6061   ac_status=$?
6062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6063   (exit $ac_status); } &&
6064          { ac_try='test -s conftest$ac_exeext'
6065   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6066   (eval $ac_try) 2>&5
6067   ac_status=$?
6068   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6069   (exit $ac_status); }; }; then
6070   ac_cv_lib_Xext_XShmQueryExtension=yes
6071 else
6072   echo "$as_me: failed program was:" >&5
6073 cat conftest.$ac_ext >&5
6074 ac_cv_lib_Xext_XShmQueryExtension=no
6075 fi
6076 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6077 LIBS=$ac_check_lib_save_LIBS
6078 fi
6079 echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShmQueryExtension" >&5
6080 echo "${ECHO_T}$ac_cv_lib_Xext_XShmQueryExtension" >&6
6081 if test $ac_cv_lib_Xext_XShmQueryExtension = yes; then
6082
6083 cat >>confdefs.h <<\_ACEOF
6084 #define HAVE_LIBXXSHM 1
6085 _ACEOF
6086
6087 fi
6088
6089
6090 else
6091   { echo "$as_me:$LINENO: WARNING: XShm extension not found, Wine will be built without it" >&5
6092 echo "$as_me: WARNING: XShm extension not found, Wine will be built without it" >&2;}
6093 fi
6094
6095 done
6096
6097
6098
6099 for ac_header in X11/Xutil.h
6100 do
6101 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6102 echo "$as_me:$LINENO: checking for $ac_header" >&5
6103 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6104 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6105   echo $ECHO_N "(cached) $ECHO_C" >&6
6106 else
6107   cat >conftest.$ac_ext <<_ACEOF
6108 #line $LINENO "configure"
6109 #include "confdefs.h"
6110 #include <X11/Xlib.h>
6111
6112 #include <$ac_header>
6113 _ACEOF
6114 rm -f conftest.$ac_objext
6115 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6116   (eval $ac_compile) 2>&5
6117   ac_status=$?
6118   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6119   (exit $ac_status); } &&
6120          { ac_try='test -s conftest.$ac_objext'
6121   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6122   (eval $ac_try) 2>&5
6123   ac_status=$?
6124   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6125   (exit $ac_status); }; }; then
6126   eval "$as_ac_Header=yes"
6127 else
6128   echo "$as_me: failed program was:" >&5
6129 cat conftest.$ac_ext >&5
6130 eval "$as_ac_Header=no"
6131 fi
6132 rm -f conftest.$ac_objext conftest.$ac_ext
6133 fi
6134 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6135 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6136 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6137   cat >>confdefs.h <<_ACEOF
6138 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6139 _ACEOF
6140
6141 fi
6142
6143 done
6144
6145
6146
6147 for ac_header in X11/extensions/shape.h
6148 do
6149 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6150 echo "$as_me:$LINENO: checking for $ac_header" >&5
6151 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6152 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6153   echo $ECHO_N "(cached) $ECHO_C" >&6
6154 else
6155   cat >conftest.$ac_ext <<_ACEOF
6156 #line $LINENO "configure"
6157 #include "confdefs.h"
6158 #include <X11/Xlib.h>
6159              #ifdef HAVE_X11_XUTIL_H
6160              # include <X11/Xutil.h>
6161              #endif
6162
6163 #include <$ac_header>
6164 _ACEOF
6165 rm -f conftest.$ac_objext
6166 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6167   (eval $ac_compile) 2>&5
6168   ac_status=$?
6169   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6170   (exit $ac_status); } &&
6171          { ac_try='test -s conftest.$ac_objext'
6172   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6173   (eval $ac_try) 2>&5
6174   ac_status=$?
6175   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6176   (exit $ac_status); }; }; then
6177   eval "$as_ac_Header=yes"
6178 else
6179   echo "$as_me: failed program was:" >&5
6180 cat conftest.$ac_ext >&5
6181 eval "$as_ac_Header=no"
6182 fi
6183 rm -f conftest.$ac_objext conftest.$ac_ext
6184 fi
6185 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6186 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6187 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6188   cat >>confdefs.h <<_ACEOF
6189 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6190 _ACEOF
6191                 echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
6192 echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6
6193 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
6194   echo $ECHO_N "(cached) $ECHO_C" >&6
6195 else
6196   ac_check_lib_save_LIBS=$LIBS
6197 LIBS="-lXext $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
6198 cat >conftest.$ac_ext <<_ACEOF
6199 #line $LINENO "configure"
6200 #include "confdefs.h"
6201
6202 /* Override any gcc2 internal prototype to avoid an error.  */
6203 #ifdef __cplusplus
6204 extern "C"
6205 #endif
6206 /* We use char because int might match the return type of a gcc2
6207    builtin and then its argument prototype would still apply.  */
6208 char XShapeQueryExtension ();
6209 int
6210 main ()
6211 {
6212 XShapeQueryExtension ();
6213   ;
6214   return 0;
6215 }
6216 _ACEOF
6217 rm -f conftest.$ac_objext conftest$ac_exeext
6218 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6219   (eval $ac_link) 2>&5
6220   ac_status=$?
6221   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6222   (exit $ac_status); } &&
6223          { ac_try='test -s conftest$ac_exeext'
6224   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6225   (eval $ac_try) 2>&5
6226   ac_status=$?
6227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6228   (exit $ac_status); }; }; then
6229   ac_cv_lib_Xext_XShapeQueryExtension=yes
6230 else
6231   echo "$as_me: failed program was:" >&5
6232 cat conftest.$ac_ext >&5
6233 ac_cv_lib_Xext_XShapeQueryExtension=no
6234 fi
6235 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6236 LIBS=$ac_check_lib_save_LIBS
6237 fi
6238 echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
6239 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6
6240 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
6241
6242 cat >>confdefs.h <<\_ACEOF
6243 #define HAVE_LIBXSHAPE 1
6244 _ACEOF
6245
6246 fi
6247
6248
6249 else
6250   { echo "$as_me:$LINENO: WARNING: XShape extension not found, Wine will be built without it" >&5
6251 echo "$as_me: WARNING: XShape extension not found, Wine will be built without it" >&2;}
6252 fi
6253
6254 done
6255
6256
6257
6258 for ac_header in X11/extensions/xf86dga.h
6259 do
6260 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6261 echo "$as_me:$LINENO: checking for $ac_header" >&5
6262 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6263 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6264   echo $ECHO_N "(cached) $ECHO_C" >&6
6265 else
6266   cat >conftest.$ac_ext <<_ACEOF
6267 #line $LINENO "configure"
6268 #include "confdefs.h"
6269 #include <X11/Xlib.h>
6270
6271 #include <$ac_header>
6272 _ACEOF
6273 rm -f conftest.$ac_objext
6274 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6275   (eval $ac_compile) 2>&5
6276   ac_status=$?
6277   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6278   (exit $ac_status); } &&
6279          { ac_try='test -s conftest.$ac_objext'
6280   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6281   (eval $ac_try) 2>&5
6282   ac_status=$?
6283   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6284   (exit $ac_status); }; }; then
6285   eval "$as_ac_Header=yes"
6286 else
6287   echo "$as_me: failed program was:" >&5
6288 cat conftest.$ac_ext >&5
6289 eval "$as_ac_Header=no"
6290 fi
6291 rm -f conftest.$ac_objext conftest.$ac_ext
6292 fi
6293 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6294 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6295 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6296   cat >>confdefs.h <<_ACEOF
6297 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6298 _ACEOF
6299                               echo "$as_me:$LINENO: checking for XDGAQueryExtension in -lXxf86dga" >&5
6300 echo $ECHO_N "checking for XDGAQueryExtension in -lXxf86dga... $ECHO_C" >&6
6301 if test "${ac_cv_lib_Xxf86dga_XDGAQueryExtension+set}" = set; then
6302   echo $ECHO_N "(cached) $ECHO_C" >&6
6303 else
6304   ac_check_lib_save_LIBS=$LIBS
6305 LIBS="-lXxf86dga $X_LIBS -lXext -lX11 $X_EXTRA_LIBS
6306                $LIBS"
6307 cat >conftest.$ac_ext <<_ACEOF
6308 #line $LINENO "configure"
6309 #include "confdefs.h"
6310
6311 /* Override any gcc2 internal prototype to avoid an error.  */
6312 #ifdef __cplusplus
6313 extern "C"
6314 #endif
6315 /* We use char because int might match the return type of a gcc2
6316    builtin and then its argument prototype would still apply.  */
6317 char XDGAQueryExtension ();
6318 int
6319 main ()
6320 {
6321 XDGAQueryExtension ();
6322   ;
6323   return 0;
6324 }
6325 _ACEOF
6326 rm -f conftest.$ac_objext conftest$ac_exeext
6327 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6328   (eval $ac_link) 2>&5
6329   ac_status=$?
6330   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6331   (exit $ac_status); } &&
6332          { ac_try='test -s conftest$ac_exeext'
6333   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6334   (eval $ac_try) 2>&5
6335   ac_status=$?
6336   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6337   (exit $ac_status); }; }; then
6338   ac_cv_lib_Xxf86dga_XDGAQueryExtension=yes
6339 else
6340   echo "$as_me: failed program was:" >&5
6341 cat conftest.$ac_ext >&5
6342 ac_cv_lib_Xxf86dga_XDGAQueryExtension=no
6343 fi
6344 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6345 LIBS=$ac_check_lib_save_LIBS
6346 fi
6347 echo "$as_me:$LINENO: result: $ac_cv_lib_Xxf86dga_XDGAQueryExtension" >&5
6348 echo "${ECHO_T}$ac_cv_lib_Xxf86dga_XDGAQueryExtension" >&6
6349 if test $ac_cv_lib_Xxf86dga_XDGAQueryExtension = yes; then
6350
6351 cat >>confdefs.h <<\_ACEOF
6352 #define HAVE_LIBXXF86DGA2 1
6353 _ACEOF
6354
6355                   X_PRE_LIBS="$X_PRE_LIBS -lXxf86dga"
6356
6357 else
6358                                        echo "$as_me:$LINENO: checking for XF86DGAQueryExtension in -lXxf86dga" >&5
6359 echo $ECHO_N "checking for XF86DGAQueryExtension in -lXxf86dga... $ECHO_C" >&6
6360 if test "${ac_cv_lib_Xxf86dga_XF86DGAQueryExtension+set}" = set; then
6361   echo $ECHO_N "(cached) $ECHO_C" >&6
6362 else
6363   ac_check_lib_save_LIBS=$LIBS
6364 LIBS="-lXxf86dga $X_LIBS -lXext -lX11 $X_EXTRA_LIBS
6365                    $LIBS"
6366 cat >conftest.$ac_ext <<_ACEOF
6367 #line $LINENO "configure"
6368 #include "confdefs.h"
6369
6370 /* Override any gcc2 internal prototype to avoid an error.  */
6371 #ifdef __cplusplus
6372 extern "C"
6373 #endif
6374 /* We use char because int might match the return type of a gcc2
6375    builtin and then its argument prototype would still apply.  */
6376 char XF86DGAQueryExtension ();
6377 int
6378 main ()
6379 {
6380 XF86DGAQueryExtension ();
6381   ;
6382   return 0;
6383 }
6384 _ACEOF
6385 rm -f conftest.$ac_objext conftest$ac_exeext
6386 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6387   (eval $ac_link) 2>&5
6388   ac_status=$?
6389   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6390   (exit $ac_status); } &&
6391          { ac_try='test -s conftest$ac_exeext'
6392   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6393   (eval $ac_try) 2>&5
6394   ac_status=$?
6395   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6396   (exit $ac_status); }; }; then
6397   ac_cv_lib_Xxf86dga_XF86DGAQueryExtension=yes
6398 else
6399   echo "$as_me: failed program was:" >&5
6400 cat conftest.$ac_ext >&5
6401 ac_cv_lib_Xxf86dga_XF86DGAQueryExtension=no
6402 fi
6403 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6404 LIBS=$ac_check_lib_save_LIBS
6405 fi
6406 echo "$as_me:$LINENO: result: $ac_cv_lib_Xxf86dga_XF86DGAQueryExtension" >&5
6407 echo "${ECHO_T}$ac_cv_lib_Xxf86dga_XF86DGAQueryExtension" >&6
6408 if test $ac_cv_lib_Xxf86dga_XF86DGAQueryExtension = yes; then
6409
6410 cat >>confdefs.h <<\_ACEOF
6411 #define HAVE_LIBXXF86DGA 1
6412 _ACEOF
6413
6414                       X_PRE_LIBS="$X_PRE_LIBS -lXxf86dga"
6415
6416 fi
6417
6418
6419 fi
6420
6421
6422 else
6423   { echo "$as_me:$LINENO: WARNING: DGA extension not found, Wine will be built without it" >&5
6424 echo "$as_me: WARNING: DGA extension not found, Wine will be built without it" >&2;}
6425 fi
6426
6427 done
6428
6429
6430
6431 for ac_header in X11/extensions/xf86vmode.h
6432 do
6433 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6434 echo "$as_me:$LINENO: checking for $ac_header" >&5
6435 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6436 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6437   echo $ECHO_N "(cached) $ECHO_C" >&6
6438 else
6439   cat >conftest.$ac_ext <<_ACEOF
6440 #line $LINENO "configure"
6441 #include "confdefs.h"
6442 #include <X11/Xlib.h>
6443
6444 #include <$ac_header>
6445 _ACEOF
6446 rm -f conftest.$ac_objext
6447 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6448   (eval $ac_compile) 2>&5
6449   ac_status=$?
6450   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6451   (exit $ac_status); } &&
6452          { ac_try='test -s conftest.$ac_objext'
6453   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6454   (eval $ac_try) 2>&5
6455   ac_status=$?
6456   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6457   (exit $ac_status); }; }; then
6458   eval "$as_ac_Header=yes"
6459 else
6460   echo "$as_me: failed program was:" >&5
6461 cat conftest.$ac_ext >&5
6462 eval "$as_ac_Header=no"
6463 fi
6464 rm -f conftest.$ac_objext conftest.$ac_ext
6465 fi
6466 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6467 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6468 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6469   cat >>confdefs.h <<_ACEOF
6470 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6471 _ACEOF
6472                   echo "$as_me:$LINENO: checking for XF86VidModeQueryExtension in -lXxf86vm" >&5
6473 echo $ECHO_N "checking for XF86VidModeQueryExtension in -lXxf86vm... $ECHO_C" >&6
6474 if test "${ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension+set}" = set; then
6475   echo $ECHO_N "(cached) $ECHO_C" >&6
6476 else
6477   ac_check_lib_save_LIBS=$LIBS
6478 LIBS="-lXxf86vm $X_LIBS -lXext -lX11 $X_EXTRA_LIBS
6479                  $LIBS"
6480 cat >conftest.$ac_ext <<_ACEOF
6481 #line $LINENO "configure"
6482 #include "confdefs.h"
6483
6484 /* Override any gcc2 internal prototype to avoid an error.  */
6485 #ifdef __cplusplus
6486 extern "C"
6487 #endif
6488 /* We use char because int might match the return type of a gcc2
6489    builtin and then its argument prototype would still apply.  */
6490 char XF86VidModeQueryExtension ();
6491 int
6492 main ()
6493 {
6494 XF86VidModeQueryExtension ();
6495   ;
6496   return 0;
6497 }
6498 _ACEOF
6499 rm -f conftest.$ac_objext conftest$ac_exeext
6500 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6501   (eval $ac_link) 2>&5
6502   ac_status=$?
6503   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6504   (exit $ac_status); } &&
6505          { ac_try='test -s conftest$ac_exeext'
6506   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6507   (eval $ac_try) 2>&5
6508   ac_status=$?
6509   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6510   (exit $ac_status); }; }; then
6511   ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=yes
6512 else
6513   echo "$as_me: failed program was:" >&5
6514 cat conftest.$ac_ext >&5
6515 ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=no
6516 fi
6517 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6518 LIBS=$ac_check_lib_save_LIBS
6519 fi
6520 echo "$as_me:$LINENO: result: $ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&5
6521 echo "${ECHO_T}$ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&6
6522 if test $ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension = yes; then
6523
6524 cat >>confdefs.h <<\_ACEOF
6525 #define HAVE_LIBXXF86VM 1
6526 _ACEOF
6527
6528                      X_PRE_LIBS="$X_PRE_LIBS -lXxf86vm"
6529
6530 fi
6531
6532
6533 else
6534   { echo "$as_me:$LINENO: WARNING: XFree86 VMODE extension not found, Wine will be built without it" >&5
6535 echo "$as_me: WARNING: XFree86 VMODE extension not found, Wine will be built without it" >&2;}
6536 fi
6537
6538 done
6539
6540
6541
6542 for ac_header in X11/extensions/Xvlib.h
6543 do
6544 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6545 echo "$as_me:$LINENO: checking for $ac_header" >&5
6546 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6547 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6548   echo $ECHO_N "(cached) $ECHO_C" >&6
6549 else
6550   cat >conftest.$ac_ext <<_ACEOF
6551 #line $LINENO "configure"
6552 #include "confdefs.h"
6553 #include <X11/Xlib.h>
6554
6555 #include <$ac_header>
6556 _ACEOF
6557 rm -f conftest.$ac_objext
6558 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6559   (eval $ac_compile) 2>&5
6560   ac_status=$?
6561   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6562   (exit $ac_status); } &&
6563          { ac_try='test -s conftest.$ac_objext'
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   eval "$as_ac_Header=yes"
6570 else
6571   echo "$as_me: failed program was:" >&5
6572 cat conftest.$ac_ext >&5
6573 eval "$as_ac_Header=no"
6574 fi
6575 rm -f conftest.$ac_objext conftest.$ac_ext
6576 fi
6577 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6578 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6579 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6580   cat >>confdefs.h <<_ACEOF
6581 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6582 _ACEOF
6583                   echo "$as_me:$LINENO: checking for XvShmCreateImage in -lXv" >&5
6584 echo $ECHO_N "checking for XvShmCreateImage in -lXv... $ECHO_C" >&6
6585 if test "${ac_cv_lib_Xv_XvShmCreateImage+set}" = set; then
6586   echo $ECHO_N "(cached) $ECHO_C" >&6
6587 else
6588   ac_check_lib_save_LIBS=$LIBS
6589 LIBS="-lXv $X_LIBS -lXext -lX11 $X_EXTRA_LIBS
6590                  $LIBS"
6591 cat >conftest.$ac_ext <<_ACEOF
6592 #line $LINENO "configure"
6593 #include "confdefs.h"
6594
6595 /* Override any gcc2 internal prototype to avoid an error.  */
6596 #ifdef __cplusplus
6597 extern "C"
6598 #endif
6599 /* We use char because int might match the return type of a gcc2
6600    builtin and then its argument prototype would still apply.  */
6601 char XvShmCreateImage ();
6602 int
6603 main ()
6604 {
6605 XvShmCreateImage ();
6606   ;
6607   return 0;
6608 }
6609 _ACEOF
6610 rm -f conftest.$ac_objext conftest$ac_exeext
6611 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6612   (eval $ac_link) 2>&5
6613   ac_status=$?
6614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6615   (exit $ac_status); } &&
6616          { ac_try='test -s conftest$ac_exeext'
6617   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6618   (eval $ac_try) 2>&5
6619   ac_status=$?
6620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6621   (exit $ac_status); }; }; then
6622   ac_cv_lib_Xv_XvShmCreateImage=yes
6623 else
6624   echo "$as_me: failed program was:" >&5
6625 cat conftest.$ac_ext >&5
6626 ac_cv_lib_Xv_XvShmCreateImage=no
6627 fi
6628 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6629 LIBS=$ac_check_lib_save_LIBS
6630 fi
6631 echo "$as_me:$LINENO: result: $ac_cv_lib_Xv_XvShmCreateImage" >&5
6632 echo "${ECHO_T}$ac_cv_lib_Xv_XvShmCreateImage" >&6
6633 if test $ac_cv_lib_Xv_XvShmCreateImage = yes; then
6634
6635 cat >>confdefs.h <<\_ACEOF
6636 #define HAVE_XVIDEO 1
6637 _ACEOF
6638
6639                      X_PRE_LIBS="$X_PRE_LIBS -lXv"
6640
6641 fi
6642
6643
6644 else
6645   { echo "$as_me:$LINENO: WARNING: XVideo extension not found, Wine will be built without it" >&5
6646 echo "$as_me: WARNING: XVideo extension not found, Wine will be built without it" >&2;}
6647 fi
6648
6649 done
6650
6651
6652
6653 for ac_header in X11/extensions/Xrender.h
6654 do
6655 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6656 echo "$as_me:$LINENO: checking for $ac_header" >&5
6657 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6658 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6659   echo $ECHO_N "(cached) $ECHO_C" >&6
6660 else
6661   cat >conftest.$ac_ext <<_ACEOF
6662 #line $LINENO "configure"
6663 #include "confdefs.h"
6664 #include <X11/Xlib.h>
6665
6666 #include <$ac_header>
6667 _ACEOF
6668 rm -f conftest.$ac_objext
6669 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6670   (eval $ac_compile) 2>&5
6671   ac_status=$?
6672   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6673   (exit $ac_status); } &&
6674          { ac_try='test -s conftest.$ac_objext'
6675   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6676   (eval $ac_try) 2>&5
6677   ac_status=$?
6678   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6679   (exit $ac_status); }; }; then
6680   eval "$as_ac_Header=yes"
6681 else
6682   echo "$as_me: failed program was:" >&5
6683 cat conftest.$ac_ext >&5
6684 eval "$as_ac_Header=no"
6685 fi
6686 rm -f conftest.$ac_objext conftest.$ac_ext
6687 fi
6688 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6689 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6690 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6691   cat >>confdefs.h <<_ACEOF
6692 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6693 _ACEOF
6694
6695 fi
6696
6697 done
6698
6699
6700
6701 fi
6702
6703 done
6704
6705         if test "x$enable_opengl" != "xno"
6706     then
6707         if test -f /usr/X11R6/lib/libGL.a -a ! -f /usr/X11R6/lib/libGL.so
6708         then
6709             { { echo "$as_me:$LINENO: error: /usr/X11R6/lib/libGL.a is present on your system.
6710 This prevents linking to OpenGL. Delete the file and restart configure." >&5
6711 echo "$as_me: error: /usr/X11R6/lib/libGL.a is present on your system.
6712 This prevents linking to OpenGL. Delete the file and restart configure." >&2;}
6713    { (exit 1); exit 1; }; }
6714         fi
6715
6716
6717
6718 for ac_header in GL/gl.h GL/glx.h
6719 do
6720 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6721 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6722   echo "$as_me:$LINENO: checking for $ac_header" >&5
6723 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6724 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6725   echo $ECHO_N "(cached) $ECHO_C" >&6
6726 fi
6727 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6728 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6729 else
6730   # Is the header compilable?
6731 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6732 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6733 cat >conftest.$ac_ext <<_ACEOF
6734 #line $LINENO "configure"
6735 #include "confdefs.h"
6736 $ac_includes_default
6737 #include <$ac_header>
6738 _ACEOF
6739 rm -f conftest.$ac_objext
6740 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6741   (eval $ac_compile) 2>&5
6742   ac_status=$?
6743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6744   (exit $ac_status); } &&
6745          { ac_try='test -s conftest.$ac_objext'
6746   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6747   (eval $ac_try) 2>&5
6748   ac_status=$?
6749   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6750   (exit $ac_status); }; }; then
6751   ac_header_compiler=yes
6752 else
6753   echo "$as_me: failed program was:" >&5
6754 cat conftest.$ac_ext >&5
6755 ac_header_compiler=no
6756 fi
6757 rm -f conftest.$ac_objext conftest.$ac_ext
6758 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6759 echo "${ECHO_T}$ac_header_compiler" >&6
6760
6761 # Is the header present?
6762 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6763 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6764 cat >conftest.$ac_ext <<_ACEOF
6765 #line $LINENO "configure"
6766 #include "confdefs.h"
6767 #include <$ac_header>
6768 _ACEOF
6769 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6770   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6771   ac_status=$?
6772   grep -v '^ *+' conftest.er1 >conftest.err
6773   rm -f conftest.er1
6774   cat conftest.err >&5
6775   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6776   (exit $ac_status); } >/dev/null; then
6777   if test -s conftest.err; then
6778     ac_cpp_err=$ac_c_preproc_warn_flag
6779   else
6780     ac_cpp_err=
6781   fi
6782 else
6783   ac_cpp_err=yes
6784 fi
6785 if test -z "$ac_cpp_err"; then
6786   ac_header_preproc=yes
6787 else
6788   echo "$as_me: failed program was:" >&5
6789   cat conftest.$ac_ext >&5
6790   ac_header_preproc=no
6791 fi
6792 rm -f conftest.err conftest.$ac_ext
6793 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6794 echo "${ECHO_T}$ac_header_preproc" >&6
6795
6796 # So?  What about this header?
6797 case $ac_header_compiler:$ac_header_preproc in
6798   yes:no )
6799     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6800 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6801     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6802 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
6803   no:yes )
6804     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6805 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6806     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6807 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6808     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6809 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
6810 esac
6811 echo "$as_me:$LINENO: checking for $ac_header" >&5
6812 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6813 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6814   echo $ECHO_N "(cached) $ECHO_C" >&6
6815 else
6816   eval "$as_ac_Header=$ac_header_preproc"
6817 fi
6818 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6819 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6820
6821 fi
6822 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6823   cat >>confdefs.h <<_ACEOF
6824 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6825 _ACEOF
6826
6827 fi
6828
6829 done
6830
6831         if test "$ac_cv_header_GL_gl_h" = "yes" -a "$ac_cv_header_GL_glx_h" = "yes"
6832         then
6833
6834 for ac_header in GL/glext.h
6835 do
6836 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6837 echo "$as_me:$LINENO: checking for $ac_header" >&5
6838 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6839 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6840   echo $ECHO_N "(cached) $ECHO_C" >&6
6841 else
6842   cat >conftest.$ac_ext <<_ACEOF
6843 #line $LINENO "configure"
6844 #include "confdefs.h"
6845 #include <GL/glx.h>
6846
6847 #include <$ac_header>
6848 _ACEOF
6849 rm -f conftest.$ac_objext
6850 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6851   (eval $ac_compile) 2>&5
6852   ac_status=$?
6853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6854   (exit $ac_status); } &&
6855          { ac_try='test -s conftest.$ac_objext'
6856   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6857   (eval $ac_try) 2>&5
6858   ac_status=$?
6859   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6860   (exit $ac_status); }; }; then
6861   eval "$as_ac_Header=yes"
6862 else
6863   echo "$as_me: failed program was:" >&5
6864 cat conftest.$ac_ext >&5
6865 eval "$as_ac_Header=no"
6866 fi
6867 rm -f conftest.$ac_objext conftest.$ac_ext
6868 fi
6869 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6870 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6871 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6872   cat >>confdefs.h <<_ACEOF
6873 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6874 _ACEOF
6875
6876 fi
6877
6878 done
6879
6880                     echo "$as_me:$LINENO: checking for up-to-date OpenGL version" >&5
6881 echo $ECHO_N "checking for up-to-date OpenGL version... $ECHO_C" >&6
6882 if test "${wine_cv_opengl_version_OK+set}" = set; then
6883   echo $ECHO_N "(cached) $ECHO_C" >&6
6884 else
6885   cat >conftest.$ac_ext <<_ACEOF
6886 #line $LINENO "configure"
6887 #include "confdefs.h"
6888 #include <GL/gl.h>
6889 int
6890 main ()
6891 {
6892 GLenum test = GL_UNSIGNED_SHORT_5_6_5;
6893   ;
6894   return 0;
6895 }
6896 _ACEOF
6897 rm -f conftest.$ac_objext
6898 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6899   (eval $ac_compile) 2>&5
6900   ac_status=$?
6901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6902   (exit $ac_status); } &&
6903          { ac_try='test -s conftest.$ac_objext'
6904   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6905   (eval $ac_try) 2>&5
6906   ac_status=$?
6907   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6908   (exit $ac_status); }; }; then
6909   wine_cv_opengl_version_OK="yes"
6910 else
6911   echo "$as_me: failed program was:" >&5
6912 cat conftest.$ac_ext >&5
6913 wine_cv_opengl_version_OK="no"
6914
6915 fi
6916 rm -f conftest.$ac_objext conftest.$ac_ext
6917
6918 fi
6919 echo "$as_me:$LINENO: result: $wine_cv_opengl_version_OK" >&5
6920 echo "${ECHO_T}$wine_cv_opengl_version_OK" >&6
6921
6922                     echo "$as_me:$LINENO: checking for thread-safe OpenGL version" >&5
6923 echo $ECHO_N "checking for thread-safe OpenGL version... $ECHO_C" >&6
6924 if test "${wine_cv_opengl_version_threadsafe+set}" = set; then
6925   echo $ECHO_N "(cached) $ECHO_C" >&6
6926 else
6927   saved_libs=$LIBS
6928                LIBS="$X_LIBS -lGL"
6929                cat >conftest.$ac_ext <<_ACEOF
6930 #line $LINENO "configure"
6931 #include "confdefs.h"
6932
6933 int
6934 main ()
6935 {
6936 pthread_getspecific();
6937   ;
6938   return 0;
6939 }
6940 _ACEOF
6941 rm -f conftest.$ac_objext conftest$ac_exeext
6942 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6943   (eval $ac_link) 2>&5
6944   ac_status=$?
6945   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6946   (exit $ac_status); } &&
6947          { ac_try='test -s conftest$ac_exeext'
6948   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6949   (eval $ac_try) 2>&5
6950   ac_status=$?
6951   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6952   (exit $ac_status); }; }; then
6953   wine_cv_opengl_version_threadsafe="yes"
6954 else
6955   echo "$as_me: failed program was:" >&5
6956 cat conftest.$ac_ext >&5
6957 wine_cv_opengl_version_threadsafe="no"
6958 fi
6959 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6960                LIBS=$saved_libs
6961
6962 fi
6963 echo "$as_me:$LINENO: result: $wine_cv_opengl_version_threadsafe" >&5
6964 echo "${ECHO_T}$wine_cv_opengl_version_threadsafe" >&6
6965
6966             if test "$wine_cv_opengl_version_OK" = "yes" -a \( "$wine_cv_opengl_version_threadsafe" = "no" -o "x$enable_opengl" = "xyes" \)
6967             then
6968                                 echo "$as_me:$LINENO: checking for glXCreateContext in -lGL" >&5
6969 echo $ECHO_N "checking for glXCreateContext in -lGL... $ECHO_C" >&6
6970 if test "${ac_cv_lib_GL_glXCreateContext+set}" = set; then
6971   echo $ECHO_N "(cached) $ECHO_C" >&6
6972 else
6973   ac_check_lib_save_LIBS=$LIBS
6974 LIBS="-lGL $X_LIBS -lXext -lX11 -lm $X_EXTRA_LIBS $LIBS"
6975 cat >conftest.$ac_ext <<_ACEOF
6976 #line $LINENO "configure"
6977 #include "confdefs.h"
6978
6979 /* Override any gcc2 internal prototype to avoid an error.  */
6980 #ifdef __cplusplus
6981 extern "C"
6982 #endif
6983 /* We use char because int might match the return type of a gcc2
6984    builtin and then its argument prototype would still apply.  */
6985 char glXCreateContext ();
6986 int
6987 main ()
6988 {
6989 glXCreateContext ();
6990   ;
6991   return 0;
6992 }
6993 _ACEOF
6994 rm -f conftest.$ac_objext conftest$ac_exeext
6995 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6996   (eval $ac_link) 2>&5
6997   ac_status=$?
6998   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6999   (exit $ac_status); } &&
7000          { ac_try='test -s conftest$ac_exeext'
7001   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7002   (eval $ac_try) 2>&5
7003   ac_status=$?
7004   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7005   (exit $ac_status); }; }; then
7006   ac_cv_lib_GL_glXCreateContext=yes
7007 else
7008   echo "$as_me: failed program was:" >&5
7009 cat conftest.$ac_ext >&5
7010 ac_cv_lib_GL_glXCreateContext=no
7011 fi
7012 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7013 LIBS=$ac_check_lib_save_LIBS
7014 fi
7015 echo "$as_me:$LINENO: result: $ac_cv_lib_GL_glXCreateContext" >&5
7016 echo "${ECHO_T}$ac_cv_lib_GL_glXCreateContext" >&6
7017 if test $ac_cv_lib_GL_glXCreateContext = yes; then
7018   OPENGL_LIBS="-lGL"
7019
7020 fi
7021
7022
7023                 if test "$ac_cv_lib_GL_glXCreateContext" = "yes"
7024                 then
7025                         OPENGLFILES='$(OPENGLFILES)'
7026
7027 cat >>confdefs.h <<\_ACEOF
7028 #define HAVE_OPENGL 1
7029 _ACEOF
7030
7031
7032                         echo "$as_me:$LINENO: checking for glXGetProcAddressARB in -lGL" >&5
7033 echo $ECHO_N "checking for glXGetProcAddressARB in -lGL... $ECHO_C" >&6
7034 if test "${ac_cv_lib_GL_glXGetProcAddressARB+set}" = set; then
7035   echo $ECHO_N "(cached) $ECHO_C" >&6
7036 else
7037   ac_check_lib_save_LIBS=$LIBS
7038 LIBS="-lGL $X_LIBS -lXext -lX11 -lm $X_EXTRA_LIBS $LIBS"
7039 cat >conftest.$ac_ext <<_ACEOF
7040 #line $LINENO "configure"
7041 #include "confdefs.h"
7042
7043 /* Override any gcc2 internal prototype to avoid an error.  */
7044 #ifdef __cplusplus
7045 extern "C"
7046 #endif
7047 /* We use char because int might match the return type of a gcc2
7048    builtin and then its argument prototype would still apply.  */
7049 char glXGetProcAddressARB ();
7050 int
7051 main ()
7052 {
7053 glXGetProcAddressARB ();
7054   ;
7055   return 0;
7056 }
7057 _ACEOF
7058 rm -f conftest.$ac_objext conftest$ac_exeext
7059 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7060   (eval $ac_link) 2>&5
7061   ac_status=$?
7062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7063   (exit $ac_status); } &&
7064          { ac_try='test -s conftest$ac_exeext'
7065   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7066   (eval $ac_try) 2>&5
7067   ac_status=$?
7068   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7069   (exit $ac_status); }; }; then
7070   ac_cv_lib_GL_glXGetProcAddressARB=yes
7071 else
7072   echo "$as_me: failed program was:" >&5
7073 cat conftest.$ac_ext >&5
7074 ac_cv_lib_GL_glXGetProcAddressARB=no
7075 fi
7076 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7077 LIBS=$ac_check_lib_save_LIBS
7078 fi
7079 echo "$as_me:$LINENO: result: $ac_cv_lib_GL_glXGetProcAddressARB" >&5
7080 echo "${ECHO_T}$ac_cv_lib_GL_glXGetProcAddressARB" >&6
7081 if test $ac_cv_lib_GL_glXGetProcAddressARB = yes; then
7082
7083 cat >>confdefs.h <<\_ACEOF
7084 #define HAVE_GLX_GETPROCADDRESS 1
7085 _ACEOF
7086
7087 fi
7088
7089
7090                         if test "$ac_cv_lib_GL_glXGetProcAddressARB" = "yes"
7091                         then
7092                                echo "$as_me:$LINENO: checking for OpenGL extension functions prototypes" >&5
7093 echo $ECHO_N "checking for OpenGL extension functions prototypes... $ECHO_C" >&6
7094 if test "${wine_cv_extension_prototypes+set}" = set; then
7095   echo $ECHO_N "(cached) $ECHO_C" >&6
7096 else
7097   cat >conftest.$ac_ext <<_ACEOF
7098 #line $LINENO "configure"
7099 #include "confdefs.h"
7100 #include <GL/gl.h>
7101                                                   #ifdef HAVE_GL_GLEXT_H
7102                                                   # include <GL/glext.h>
7103                                                   #endif
7104
7105 int
7106 main ()
7107 {
7108 PFNGLCOLORTABLEEXTPROC test_proc;
7109   ;
7110   return 0;
7111 }
7112 _ACEOF
7113 rm -f conftest.$ac_objext
7114 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7115   (eval $ac_compile) 2>&5
7116   ac_status=$?
7117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7118   (exit $ac_status); } &&
7119          { ac_try='test -s conftest.$ac_objext'
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   wine_cv_extension_prototypes="yes"
7126 else
7127   echo "$as_me: failed program was:" >&5
7128 cat conftest.$ac_ext >&5
7129 wine_cv_extension_prototypes="no"
7130
7131 fi
7132 rm -f conftest.$ac_objext conftest.$ac_ext
7133
7134 fi
7135 echo "$as_me:$LINENO: result: $wine_cv_extension_prototypes" >&5
7136 echo "${ECHO_T}$wine_cv_extension_prototypes" >&6
7137                                 if test "$wine_cv_extension_prototypes" = "yes"
7138                                 then
7139
7140 cat >>confdefs.h <<\_ACEOF
7141 #define HAVE_GLEXT_PROTOTYPES 1
7142 _ACEOF
7143
7144                                 fi
7145                         fi
7146
7147                 fi
7148                                 echo "$as_me:$LINENO: checking for gluLookAt in -lGLU" >&5
7149 echo $ECHO_N "checking for gluLookAt in -lGLU... $ECHO_C" >&6
7150 if test "${ac_cv_lib_GLU_gluLookAt+set}" = set; then
7151   echo $ECHO_N "(cached) $ECHO_C" >&6
7152 else
7153   ac_check_lib_save_LIBS=$LIBS
7154 LIBS="-lGLU $OPENGL_LIBS $X_LIBS $X_PRE_LIBS -lXext -lX11 -lm $X_EXTRA_LIBS
7155                  $LIBS"
7156 cat >conftest.$ac_ext <<_ACEOF
7157 #line $LINENO "configure"
7158 #include "confdefs.h"
7159
7160 /* Override any gcc2 internal prototype to avoid an error.  */
7161 #ifdef __cplusplus
7162 extern "C"
7163 #endif
7164 /* We use char because int might match the return type of a gcc2
7165    builtin and then its argument prototype would still apply.  */
7166 char gluLookAt ();
7167 int
7168 main ()
7169 {
7170 gluLookAt ();
7171   ;
7172   return 0;
7173 }
7174 _ACEOF
7175 rm -f conftest.$ac_objext conftest$ac_exeext
7176 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7177   (eval $ac_link) 2>&5
7178   ac_status=$?
7179   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7180   (exit $ac_status); } &&
7181          { ac_try='test -s conftest$ac_exeext'
7182   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7183   (eval $ac_try) 2>&5
7184   ac_status=$?
7185   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7186   (exit $ac_status); }; }; then
7187   ac_cv_lib_GLU_gluLookAt=yes
7188 else
7189   echo "$as_me: failed program was:" >&5
7190 cat conftest.$ac_ext >&5
7191 ac_cv_lib_GLU_gluLookAt=no
7192 fi
7193 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7194 LIBS=$ac_check_lib_save_LIBS
7195 fi
7196 echo "$as_me:$LINENO: result: $ac_cv_lib_GLU_gluLookAt" >&5
7197 echo "${ECHO_T}$ac_cv_lib_GLU_gluLookAt" >&6
7198 if test $ac_cv_lib_GLU_gluLookAt = yes; then
7199   OPENGL_LIBS="$OPENGL_LIBS -lGLU"
7200                              GLU32FILES='$(GLU32FILES)'
7201
7202 fi
7203
7204              fi
7205          fi
7206     fi
7207
7208         NASLIBS=""
7209
7210
7211 for ac_header in audio/audiolib.h
7212 do
7213 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7214 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7215   echo "$as_me:$LINENO: checking for $ac_header" >&5
7216 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7217 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7218   echo $ECHO_N "(cached) $ECHO_C" >&6
7219 fi
7220 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7221 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7222 else
7223   # Is the header compilable?
7224 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7225 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7226 cat >conftest.$ac_ext <<_ACEOF
7227 #line $LINENO "configure"
7228 #include "confdefs.h"
7229 $ac_includes_default
7230 #include <$ac_header>
7231 _ACEOF
7232 rm -f conftest.$ac_objext
7233 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7234   (eval $ac_compile) 2>&5
7235   ac_status=$?
7236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7237   (exit $ac_status); } &&
7238          { ac_try='test -s conftest.$ac_objext'
7239   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7240   (eval $ac_try) 2>&5
7241   ac_status=$?
7242   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7243   (exit $ac_status); }; }; then
7244   ac_header_compiler=yes
7245 else
7246   echo "$as_me: failed program was:" >&5
7247 cat conftest.$ac_ext >&5
7248 ac_header_compiler=no
7249 fi
7250 rm -f conftest.$ac_objext conftest.$ac_ext
7251 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7252 echo "${ECHO_T}$ac_header_compiler" >&6
7253
7254 # Is the header present?
7255 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7256 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7257 cat >conftest.$ac_ext <<_ACEOF
7258 #line $LINENO "configure"
7259 #include "confdefs.h"
7260 #include <$ac_header>
7261 _ACEOF
7262 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7263   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7264   ac_status=$?
7265   grep -v '^ *+' conftest.er1 >conftest.err
7266   rm -f conftest.er1
7267   cat conftest.err >&5
7268   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7269   (exit $ac_status); } >/dev/null; then
7270   if test -s conftest.err; then
7271     ac_cpp_err=$ac_c_preproc_warn_flag
7272   else
7273     ac_cpp_err=
7274   fi
7275 else
7276   ac_cpp_err=yes
7277 fi
7278 if test -z "$ac_cpp_err"; then
7279   ac_header_preproc=yes
7280 else
7281   echo "$as_me: failed program was:" >&5
7282   cat conftest.$ac_ext >&5
7283   ac_header_preproc=no
7284 fi
7285 rm -f conftest.err conftest.$ac_ext
7286 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7287 echo "${ECHO_T}$ac_header_preproc" >&6
7288
7289 # So?  What about this header?
7290 case $ac_header_compiler:$ac_header_preproc in
7291   yes:no )
7292     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7293 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7294     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7295 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7296   no:yes )
7297     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7298 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7299     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7300 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7301     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7302 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7303 esac
7304 echo "$as_me:$LINENO: checking for $ac_header" >&5
7305 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7306 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7307   echo $ECHO_N "(cached) $ECHO_C" >&6
7308 else
7309   eval "$as_ac_Header=$ac_header_preproc"
7310 fi
7311 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7312 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7313
7314 fi
7315 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7316   cat >>confdefs.h <<_ACEOF
7317 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7318 _ACEOF
7319
7320 for ac_header in audio/soundlib.h
7321 do
7322 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7323 echo "$as_me:$LINENO: checking for $ac_header" >&5
7324 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7325 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7326   echo $ECHO_N "(cached) $ECHO_C" >&6
7327 else
7328   cat >conftest.$ac_ext <<_ACEOF
7329 #line $LINENO "configure"
7330 #include "confdefs.h"
7331 #include <audio/audiolib.h>
7332
7333 #include <$ac_header>
7334 _ACEOF
7335 rm -f conftest.$ac_objext
7336 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7337   (eval $ac_compile) 2>&5
7338   ac_status=$?
7339   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7340   (exit $ac_status); } &&
7341          { ac_try='test -s conftest.$ac_objext'
7342   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7343   (eval $ac_try) 2>&5
7344   ac_status=$?
7345   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7346   (exit $ac_status); }; }; then
7347   eval "$as_ac_Header=yes"
7348 else
7349   echo "$as_me: failed program was:" >&5
7350 cat conftest.$ac_ext >&5
7351 eval "$as_ac_Header=no"
7352 fi
7353 rm -f conftest.$ac_objext conftest.$ac_ext
7354 fi
7355 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7356 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7357 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7358   cat >>confdefs.h <<_ACEOF
7359 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7360 _ACEOF
7361
7362 fi
7363
7364 done
7365
7366           echo "$as_me:$LINENO: checking for AuCreateFlow in -laudio" >&5
7367 echo $ECHO_N "checking for AuCreateFlow in -laudio... $ECHO_C" >&6
7368 if test "${ac_cv_lib_audio_AuCreateFlow+set}" = set; then
7369   echo $ECHO_N "(cached) $ECHO_C" >&6
7370 else
7371   ac_check_lib_save_LIBS=$LIBS
7372 LIBS="-laudio -lXt $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
7373 cat >conftest.$ac_ext <<_ACEOF
7374 #line $LINENO "configure"
7375 #include "confdefs.h"
7376
7377 /* Override any gcc2 internal prototype to avoid an error.  */
7378 #ifdef __cplusplus
7379 extern "C"
7380 #endif
7381 /* We use char because int might match the return type of a gcc2
7382    builtin and then its argument prototype would still apply.  */
7383 char AuCreateFlow ();
7384 int
7385 main ()
7386 {
7387 AuCreateFlow ();
7388   ;
7389   return 0;
7390 }
7391 _ACEOF
7392 rm -f conftest.$ac_objext conftest$ac_exeext
7393 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7394   (eval $ac_link) 2>&5
7395   ac_status=$?
7396   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7397   (exit $ac_status); } &&
7398          { ac_try='test -s conftest$ac_exeext'
7399   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7400   (eval $ac_try) 2>&5
7401   ac_status=$?
7402   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7403   (exit $ac_status); }; }; then
7404   ac_cv_lib_audio_AuCreateFlow=yes
7405 else
7406   echo "$as_me: failed program was:" >&5
7407 cat conftest.$ac_ext >&5
7408 ac_cv_lib_audio_AuCreateFlow=no
7409 fi
7410 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7411 LIBS=$ac_check_lib_save_LIBS
7412 fi
7413 echo "$as_me:$LINENO: result: $ac_cv_lib_audio_AuCreateFlow" >&5
7414 echo "${ECHO_T}$ac_cv_lib_audio_AuCreateFlow" >&6
7415 if test $ac_cv_lib_audio_AuCreateFlow = yes; then
7416
7417 cat >>confdefs.h <<\_ACEOF
7418 #define HAVE_NAS 1
7419 _ACEOF
7420
7421                         NASLIBS="-laudio -lXt $X_LIBS -lXext -lX11 $X_EXTRA_LIBS"
7422 fi
7423
7424 fi
7425
7426 done
7427
7428
7429     CPPFLAGS="$ac_save_CPPFLAGS"
7430     XFILES='$(XFILES)'
7431 else
7432     XLIB=""
7433     X_CFLAGS=""
7434     X_LIBS=""
7435 fi
7436
7437 CURSESLIBS=""
7438 if test "x$with_curses" != "xno"
7439 then
7440
7441 for ac_header in ncurses.h
7442 do
7443 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7444 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7445   echo "$as_me:$LINENO: checking for $ac_header" >&5
7446 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7447 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7448   echo $ECHO_N "(cached) $ECHO_C" >&6
7449 fi
7450 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7451 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7452 else
7453   # Is the header compilable?
7454 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7455 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7456 cat >conftest.$ac_ext <<_ACEOF
7457 #line $LINENO "configure"
7458 #include "confdefs.h"
7459 $ac_includes_default
7460 #include <$ac_header>
7461 _ACEOF
7462 rm -f conftest.$ac_objext
7463 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7464   (eval $ac_compile) 2>&5
7465   ac_status=$?
7466   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7467   (exit $ac_status); } &&
7468          { ac_try='test -s conftest.$ac_objext'
7469   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7470   (eval $ac_try) 2>&5
7471   ac_status=$?
7472   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7473   (exit $ac_status); }; }; then
7474   ac_header_compiler=yes
7475 else
7476   echo "$as_me: failed program was:" >&5
7477 cat conftest.$ac_ext >&5
7478 ac_header_compiler=no
7479 fi
7480 rm -f conftest.$ac_objext conftest.$ac_ext
7481 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7482 echo "${ECHO_T}$ac_header_compiler" >&6
7483
7484 # Is the header present?
7485 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7486 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7487 cat >conftest.$ac_ext <<_ACEOF
7488 #line $LINENO "configure"
7489 #include "confdefs.h"
7490 #include <$ac_header>
7491 _ACEOF
7492 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7493   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7494   ac_status=$?
7495   grep -v '^ *+' conftest.er1 >conftest.err
7496   rm -f conftest.er1
7497   cat conftest.err >&5
7498   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7499   (exit $ac_status); } >/dev/null; then
7500   if test -s conftest.err; then
7501     ac_cpp_err=$ac_c_preproc_warn_flag
7502   else
7503     ac_cpp_err=
7504   fi
7505 else
7506   ac_cpp_err=yes
7507 fi
7508 if test -z "$ac_cpp_err"; then
7509   ac_header_preproc=yes
7510 else
7511   echo "$as_me: failed program was:" >&5
7512   cat conftest.$ac_ext >&5
7513   ac_header_preproc=no
7514 fi
7515 rm -f conftest.err conftest.$ac_ext
7516 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7517 echo "${ECHO_T}$ac_header_preproc" >&6
7518
7519 # So?  What about this header?
7520 case $ac_header_compiler:$ac_header_preproc in
7521   yes:no )
7522     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7523 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7524     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7525 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7526   no:yes )
7527     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7528 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7529     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7530 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&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 esac
7534 echo "$as_me:$LINENO: checking for $ac_header" >&5
7535 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7536 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7537   echo $ECHO_N "(cached) $ECHO_C" >&6
7538 else
7539   eval "$as_ac_Header=$ac_header_preproc"
7540 fi
7541 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7542 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7543
7544 fi
7545 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7546   cat >>confdefs.h <<_ACEOF
7547 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7548 _ACEOF
7549  echo "$as_me:$LINENO: checking for waddch in -lncurses" >&5
7550 echo $ECHO_N "checking for waddch in -lncurses... $ECHO_C" >&6
7551 if test "${ac_cv_lib_ncurses_waddch+set}" = set; then
7552   echo $ECHO_N "(cached) $ECHO_C" >&6
7553 else
7554   ac_check_lib_save_LIBS=$LIBS
7555 LIBS="-lncurses  $LIBS"
7556 cat >conftest.$ac_ext <<_ACEOF
7557 #line $LINENO "configure"
7558 #include "confdefs.h"
7559
7560 /* Override any gcc2 internal prototype to avoid an error.  */
7561 #ifdef __cplusplus
7562 extern "C"
7563 #endif
7564 /* We use char because int might match the return type of a gcc2
7565    builtin and then its argument prototype would still apply.  */
7566 char waddch ();
7567 int
7568 main ()
7569 {
7570 waddch ();
7571   ;
7572   return 0;
7573 }
7574 _ACEOF
7575 rm -f conftest.$ac_objext conftest$ac_exeext
7576 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7577   (eval $ac_link) 2>&5
7578   ac_status=$?
7579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7580   (exit $ac_status); } &&
7581          { ac_try='test -s conftest$ac_exeext'
7582   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7583   (eval $ac_try) 2>&5
7584   ac_status=$?
7585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7586   (exit $ac_status); }; }; then
7587   ac_cv_lib_ncurses_waddch=yes
7588 else
7589   echo "$as_me: failed program was:" >&5
7590 cat conftest.$ac_ext >&5
7591 ac_cv_lib_ncurses_waddch=no
7592 fi
7593 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7594 LIBS=$ac_check_lib_save_LIBS
7595 fi
7596 echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_waddch" >&5
7597 echo "${ECHO_T}$ac_cv_lib_ncurses_waddch" >&6
7598 if test $ac_cv_lib_ncurses_waddch = yes; then
7599
7600 cat >>confdefs.h <<\_ACEOF
7601 #define HAVE_LIBNCURSES 1
7602 _ACEOF
7603
7604              CURSESLIBS="-lncurses"
7605 else
7606
7607 for ac_header in curses.h
7608 do
7609 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7610 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7611   echo "$as_me:$LINENO: checking for $ac_header" >&5
7612 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7613 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7614   echo $ECHO_N "(cached) $ECHO_C" >&6
7615 fi
7616 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7617 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7618 else
7619   # Is the header compilable?
7620 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7621 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7622 cat >conftest.$ac_ext <<_ACEOF
7623 #line $LINENO "configure"
7624 #include "confdefs.h"
7625 $ac_includes_default
7626 #include <$ac_header>
7627 _ACEOF
7628 rm -f conftest.$ac_objext
7629 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7630   (eval $ac_compile) 2>&5
7631   ac_status=$?
7632   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7633   (exit $ac_status); } &&
7634          { ac_try='test -s conftest.$ac_objext'
7635   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7636   (eval $ac_try) 2>&5
7637   ac_status=$?
7638   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7639   (exit $ac_status); }; }; then
7640   ac_header_compiler=yes
7641 else
7642   echo "$as_me: failed program was:" >&5
7643 cat conftest.$ac_ext >&5
7644 ac_header_compiler=no
7645 fi
7646 rm -f conftest.$ac_objext conftest.$ac_ext
7647 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7648 echo "${ECHO_T}$ac_header_compiler" >&6
7649
7650 # Is the header present?
7651 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7652 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7653 cat >conftest.$ac_ext <<_ACEOF
7654 #line $LINENO "configure"
7655 #include "confdefs.h"
7656 #include <$ac_header>
7657 _ACEOF
7658 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7659   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7660   ac_status=$?
7661   grep -v '^ *+' conftest.er1 >conftest.err
7662   rm -f conftest.er1
7663   cat conftest.err >&5
7664   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7665   (exit $ac_status); } >/dev/null; then
7666   if test -s conftest.err; then
7667     ac_cpp_err=$ac_c_preproc_warn_flag
7668   else
7669     ac_cpp_err=
7670   fi
7671 else
7672   ac_cpp_err=yes
7673 fi
7674 if test -z "$ac_cpp_err"; then
7675   ac_header_preproc=yes
7676 else
7677   echo "$as_me: failed program was:" >&5
7678   cat conftest.$ac_ext >&5
7679   ac_header_preproc=no
7680 fi
7681 rm -f conftest.err conftest.$ac_ext
7682 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7683 echo "${ECHO_T}$ac_header_preproc" >&6
7684
7685 # So?  What about this header?
7686 case $ac_header_compiler:$ac_header_preproc in
7687   yes:no )
7688     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7689 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7690     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7691 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7692   no:yes )
7693     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7694 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7695     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7696 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7697     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7698 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7699 esac
7700 echo "$as_me:$LINENO: checking for $ac_header" >&5
7701 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7702 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7703   echo $ECHO_N "(cached) $ECHO_C" >&6
7704 else
7705   eval "$as_ac_Header=$ac_header_preproc"
7706 fi
7707 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7708 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7709
7710 fi
7711 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7712   cat >>confdefs.h <<_ACEOF
7713 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7714 _ACEOF
7715  echo "$as_me:$LINENO: checking for waddch in -lcurses" >&5
7716 echo $ECHO_N "checking for waddch in -lcurses... $ECHO_C" >&6
7717 if test "${ac_cv_lib_curses_waddch+set}" = set; then
7718   echo $ECHO_N "(cached) $ECHO_C" >&6
7719 else
7720   ac_check_lib_save_LIBS=$LIBS
7721 LIBS="-lcurses  $LIBS"
7722 cat >conftest.$ac_ext <<_ACEOF
7723 #line $LINENO "configure"
7724 #include "confdefs.h"
7725
7726 /* Override any gcc2 internal prototype to avoid an error.  */
7727 #ifdef __cplusplus
7728 extern "C"
7729 #endif
7730 /* We use char because int might match the return type of a gcc2
7731    builtin and then its argument prototype would still apply.  */
7732 char waddch ();
7733 int
7734 main ()
7735 {
7736 waddch ();
7737   ;
7738   return 0;
7739 }
7740 _ACEOF
7741 rm -f conftest.$ac_objext conftest$ac_exeext
7742 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7743   (eval $ac_link) 2>&5
7744   ac_status=$?
7745   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7746   (exit $ac_status); } &&
7747          { ac_try='test -s conftest$ac_exeext'
7748   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7749   (eval $ac_try) 2>&5
7750   ac_status=$?
7751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7752   (exit $ac_status); }; }; then
7753   ac_cv_lib_curses_waddch=yes
7754 else
7755   echo "$as_me: failed program was:" >&5
7756 cat conftest.$ac_ext >&5
7757 ac_cv_lib_curses_waddch=no
7758 fi
7759 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7760 LIBS=$ac_check_lib_save_LIBS
7761 fi
7762 echo "$as_me:$LINENO: result: $ac_cv_lib_curses_waddch" >&5
7763 echo "${ECHO_T}$ac_cv_lib_curses_waddch" >&6
7764 if test $ac_cv_lib_curses_waddch = yes; then
7765
7766 cat >>confdefs.h <<\_ACEOF
7767 #define HAVE_LIBCURSES 1
7768 _ACEOF
7769
7770                       CURSESLIBS="-lcurses"
7771 fi
7772
7773 fi
7774
7775 done
7776
7777 fi
7778
7779 fi
7780
7781 done
7782
7783     saved_libs="$LIBS"
7784     LIBS="$CURSESLIBS $LIBS"
7785
7786
7787 for ac_func in getbkgd resizeterm
7788 do
7789 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7790 echo "$as_me:$LINENO: checking for $ac_func" >&5
7791 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7792 if eval "test \"\${$as_ac_var+set}\" = set"; then
7793   echo $ECHO_N "(cached) $ECHO_C" >&6
7794 else
7795   cat >conftest.$ac_ext <<_ACEOF
7796 #line $LINENO "configure"
7797 #include "confdefs.h"
7798 /* System header to define __stub macros and hopefully few prototypes,
7799     which can conflict with char $ac_func (); below.  */
7800 #include <assert.h>
7801 /* Override any gcc2 internal prototype to avoid an error.  */
7802 #ifdef __cplusplus
7803 extern "C"
7804 #endif
7805 /* We use char because int might match the return type of a gcc2
7806    builtin and then its argument prototype would still apply.  */
7807 char $ac_func ();
7808 char (*f) ();
7809
7810 int
7811 main ()
7812 {
7813 /* The GNU C library defines this for functions which it implements
7814     to always fail with ENOSYS.  Some functions are actually named
7815     something starting with __ and the normal name is an alias.  */
7816 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7817 choke me
7818 #else
7819 f = $ac_func;
7820 #endif
7821
7822   ;
7823   return 0;
7824 }
7825 _ACEOF
7826 rm -f conftest.$ac_objext conftest$ac_exeext
7827 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7828   (eval $ac_link) 2>&5
7829   ac_status=$?
7830   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7831   (exit $ac_status); } &&
7832          { ac_try='test -s conftest$ac_exeext'
7833   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7834   (eval $ac_try) 2>&5
7835   ac_status=$?
7836   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7837   (exit $ac_status); }; }; then
7838   eval "$as_ac_var=yes"
7839 else
7840   echo "$as_me: failed program was:" >&5
7841 cat conftest.$ac_ext >&5
7842 eval "$as_ac_var=no"
7843 fi
7844 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7845 fi
7846 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7847 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7848 if test `eval echo '${'$as_ac_var'}'` = yes; then
7849   cat >>confdefs.h <<_ACEOF
7850 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7851 _ACEOF
7852
7853 fi
7854 done
7855
7856     LIBS="$saved_libs"
7857 fi
7858
7859
7860 # Extract the first word of "sane-config", so it can be a program name with args.
7861 set dummy sane-config; ac_word=$2
7862 echo "$as_me:$LINENO: checking for $ac_word" >&5
7863 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7864 if test "${ac_cv_prog_sane_devel+set}" = set; then
7865   echo $ECHO_N "(cached) $ECHO_C" >&6
7866 else
7867   if test -n "$sane_devel"; then
7868   ac_cv_prog_sane_devel="$sane_devel" # Let the user override the test.
7869 else
7870 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7871 for as_dir in $PATH
7872 do
7873   IFS=$as_save_IFS
7874   test -z "$as_dir" && as_dir=.
7875   for ac_exec_ext in '' $ac_executable_extensions; do
7876   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7877     ac_cv_prog_sane_devel="sane-config"
7878     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7879     break 2
7880   fi
7881 done
7882 done
7883
7884   test -z "$ac_cv_prog_sane_devel" && ac_cv_prog_sane_devel="no"
7885 fi
7886 fi
7887 sane_devel=$ac_cv_prog_sane_devel
7888 if test -n "$sane_devel"; then
7889   echo "$as_me:$LINENO: result: $sane_devel" >&5
7890 echo "${ECHO_T}$sane_devel" >&6
7891 else
7892   echo "$as_me:$LINENO: result: no" >&5
7893 echo "${ECHO_T}no" >&6
7894 fi
7895
7896 if test "$sane_devel" = "no"
7897 then
7898     SANELIBS=""
7899     SANEINCL=""
7900 else
7901     SANELIBS="`$sane_devel --libs`"
7902     SANEINCL="`$sane_devel --cflags`"
7903     ac_save_CPPFLAGS="$CPPFLAGS"
7904     ac_save_LIBS="$LIBS"
7905     CPPFLAGS="$CPPFLAGS $SANEINCL"
7906     LIBS="$LIBS $SANELIBS"
7907     if test "${ac_cv_header_sane_sane_h+set}" = set; then
7908   echo "$as_me:$LINENO: checking for sane/sane.h" >&5
7909 echo $ECHO_N "checking for sane/sane.h... $ECHO_C" >&6
7910 if test "${ac_cv_header_sane_sane_h+set}" = set; then
7911   echo $ECHO_N "(cached) $ECHO_C" >&6
7912 fi
7913 echo "$as_me:$LINENO: result: $ac_cv_header_sane_sane_h" >&5
7914 echo "${ECHO_T}$ac_cv_header_sane_sane_h" >&6
7915 else
7916   # Is the header compilable?
7917 echo "$as_me:$LINENO: checking sane/sane.h usability" >&5
7918 echo $ECHO_N "checking sane/sane.h usability... $ECHO_C" >&6
7919 cat >conftest.$ac_ext <<_ACEOF
7920 #line $LINENO "configure"
7921 #include "confdefs.h"
7922 $ac_includes_default
7923 #include <sane/sane.h>
7924 _ACEOF
7925 rm -f conftest.$ac_objext
7926 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7927   (eval $ac_compile) 2>&5
7928   ac_status=$?
7929   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7930   (exit $ac_status); } &&
7931          { ac_try='test -s conftest.$ac_objext'
7932   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7933   (eval $ac_try) 2>&5
7934   ac_status=$?
7935   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7936   (exit $ac_status); }; }; then
7937   ac_header_compiler=yes
7938 else
7939   echo "$as_me: failed program was:" >&5
7940 cat conftest.$ac_ext >&5
7941 ac_header_compiler=no
7942 fi
7943 rm -f conftest.$ac_objext conftest.$ac_ext
7944 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7945 echo "${ECHO_T}$ac_header_compiler" >&6
7946
7947 # Is the header present?
7948 echo "$as_me:$LINENO: checking sane/sane.h presence" >&5
7949 echo $ECHO_N "checking sane/sane.h presence... $ECHO_C" >&6
7950 cat >conftest.$ac_ext <<_ACEOF
7951 #line $LINENO "configure"
7952 #include "confdefs.h"
7953 #include <sane/sane.h>
7954 _ACEOF
7955 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7956   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7957   ac_status=$?
7958   grep -v '^ *+' conftest.er1 >conftest.err
7959   rm -f conftest.er1
7960   cat conftest.err >&5
7961   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7962   (exit $ac_status); } >/dev/null; then
7963   if test -s conftest.err; then
7964     ac_cpp_err=$ac_c_preproc_warn_flag
7965   else
7966     ac_cpp_err=
7967   fi
7968 else
7969   ac_cpp_err=yes
7970 fi
7971 if test -z "$ac_cpp_err"; then
7972   ac_header_preproc=yes
7973 else
7974   echo "$as_me: failed program was:" >&5
7975   cat conftest.$ac_ext >&5
7976   ac_header_preproc=no
7977 fi
7978 rm -f conftest.err conftest.$ac_ext
7979 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7980 echo "${ECHO_T}$ac_header_preproc" >&6
7981
7982 # So?  What about this header?
7983 case $ac_header_compiler:$ac_header_preproc in
7984   yes:no )
7985     { echo "$as_me:$LINENO: WARNING: sane/sane.h: accepted by the compiler, rejected by the preprocessor!" >&5
7986 echo "$as_me: WARNING: sane/sane.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7987     { echo "$as_me:$LINENO: WARNING: sane/sane.h: proceeding with the preprocessor's result" >&5
7988 echo "$as_me: WARNING: sane/sane.h: proceeding with the preprocessor's result" >&2;};;
7989   no:yes )
7990     { echo "$as_me:$LINENO: WARNING: sane/sane.h: present but cannot be compiled" >&5
7991 echo "$as_me: WARNING: sane/sane.h: present but cannot be compiled" >&2;}
7992     { echo "$as_me:$LINENO: WARNING: sane/sane.h: check for missing prerequisite headers?" >&5
7993 echo "$as_me: WARNING: sane/sane.h: check for missing prerequisite headers?" >&2;}
7994     { echo "$as_me:$LINENO: WARNING: sane/sane.h: proceeding with the preprocessor's result" >&5
7995 echo "$as_me: WARNING: sane/sane.h: proceeding with the preprocessor's result" >&2;};;
7996 esac
7997 echo "$as_me:$LINENO: checking for sane/sane.h" >&5
7998 echo $ECHO_N "checking for sane/sane.h... $ECHO_C" >&6
7999 if test "${ac_cv_header_sane_sane_h+set}" = set; then
8000   echo $ECHO_N "(cached) $ECHO_C" >&6
8001 else
8002   ac_cv_header_sane_sane_h=$ac_header_preproc
8003 fi
8004 echo "$as_me:$LINENO: result: $ac_cv_header_sane_sane_h" >&5
8005 echo "${ECHO_T}$ac_cv_header_sane_sane_h" >&6
8006
8007 fi
8008 if test $ac_cv_header_sane_sane_h = yes; then
8009   echo "$as_me:$LINENO: checking for sane_open in -lsane" >&5
8010 echo $ECHO_N "checking for sane_open in -lsane... $ECHO_C" >&6
8011 if test "${ac_cv_lib_sane_sane_open+set}" = set; then
8012   echo $ECHO_N "(cached) $ECHO_C" >&6
8013 else
8014   ac_check_lib_save_LIBS=$LIBS
8015 LIBS="-lsane  $LIBS"
8016 cat >conftest.$ac_ext <<_ACEOF
8017 #line $LINENO "configure"
8018 #include "confdefs.h"
8019
8020 /* Override any gcc2 internal prototype to avoid an error.  */
8021 #ifdef __cplusplus
8022 extern "C"
8023 #endif
8024 /* We use char because int might match the return type of a gcc2
8025    builtin and then its argument prototype would still apply.  */
8026 char sane_open ();
8027 int
8028 main ()
8029 {
8030 sane_open ();
8031   ;
8032   return 0;
8033 }
8034 _ACEOF
8035 rm -f conftest.$ac_objext conftest$ac_exeext
8036 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8037   (eval $ac_link) 2>&5
8038   ac_status=$?
8039   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8040   (exit $ac_status); } &&
8041          { ac_try='test -s conftest$ac_exeext'
8042   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8043   (eval $ac_try) 2>&5
8044   ac_status=$?
8045   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8046   (exit $ac_status); }; }; then
8047   ac_cv_lib_sane_sane_open=yes
8048 else
8049   echo "$as_me: failed program was:" >&5
8050 cat conftest.$ac_ext >&5
8051 ac_cv_lib_sane_sane_open=no
8052 fi
8053 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8054 LIBS=$ac_check_lib_save_LIBS
8055 fi
8056 echo "$as_me:$LINENO: result: $ac_cv_lib_sane_sane_open" >&5
8057 echo "${ECHO_T}$ac_cv_lib_sane_sane_open" >&6
8058 if test $ac_cv_lib_sane_sane_open = yes; then
8059
8060 cat >>confdefs.h <<\_ACEOF
8061 #define HAVE_SANE 1
8062 _ACEOF
8063
8064 else
8065   SANELIBS=""
8066                                   SANEINCL=""
8067 fi
8068
8069 else
8070   SANELIBS=""
8071                     SANEINCL=""
8072 fi
8073
8074
8075     LIBS="$ac_save_LIBS"
8076     CPPFLAGS="$ac_save_CPPFLAGS"
8077 fi
8078
8079
8080
8081 echo "$as_me:$LINENO: checking for FT_Init_FreeType in -lfreetype" >&5
8082 echo $ECHO_N "checking for FT_Init_FreeType in -lfreetype... $ECHO_C" >&6
8083 if test "${ac_cv_lib_freetype_FT_Init_FreeType+set}" = set; then
8084   echo $ECHO_N "(cached) $ECHO_C" >&6
8085 else
8086   ac_check_lib_save_LIBS=$LIBS
8087 LIBS="-lfreetype $X_LIBS $LIBS"
8088 cat >conftest.$ac_ext <<_ACEOF
8089 #line $LINENO "configure"
8090 #include "confdefs.h"
8091
8092 /* Override any gcc2 internal prototype to avoid an error.  */
8093 #ifdef __cplusplus
8094 extern "C"
8095 #endif
8096 /* We use char because int might match the return type of a gcc2
8097    builtin and then its argument prototype would still apply.  */
8098 char FT_Init_FreeType ();
8099 int
8100 main ()
8101 {
8102 FT_Init_FreeType ();
8103   ;
8104   return 0;
8105 }
8106 _ACEOF
8107 rm -f conftest.$ac_objext conftest$ac_exeext
8108 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8109   (eval $ac_link) 2>&5
8110   ac_status=$?
8111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8112   (exit $ac_status); } &&
8113          { ac_try='test -s conftest$ac_exeext'
8114   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8115   (eval $ac_try) 2>&5
8116   ac_status=$?
8117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8118   (exit $ac_status); }; }; then
8119   ac_cv_lib_freetype_FT_Init_FreeType=yes
8120 else
8121   echo "$as_me: failed program was:" >&5
8122 cat conftest.$ac_ext >&5
8123 ac_cv_lib_freetype_FT_Init_FreeType=no
8124 fi
8125 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8126 LIBS=$ac_check_lib_save_LIBS
8127 fi
8128 echo "$as_me:$LINENO: result: $ac_cv_lib_freetype_FT_Init_FreeType" >&5
8129 echo "${ECHO_T}$ac_cv_lib_freetype_FT_Init_FreeType" >&6
8130 if test $ac_cv_lib_freetype_FT_Init_FreeType = yes; then
8131   ft_lib=yes
8132 else
8133   ft_lib=no
8134 fi
8135
8136 if test "$ft_lib" = "no"
8137 then
8138     FREETYPEINCL=""
8139     wine_cv_msg_freetype=no
8140 else
8141     # Extract the first word of "freetype-config", so it can be a program name with args.
8142 set dummy freetype-config; ac_word=$2
8143 echo "$as_me:$LINENO: checking for $ac_word" >&5
8144 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8145 if test "${ac_cv_prog_ft_devel+set}" = set; then
8146   echo $ECHO_N "(cached) $ECHO_C" >&6
8147 else
8148   if test -n "$ft_devel"; then
8149   ac_cv_prog_ft_devel="$ft_devel" # Let the user override the test.
8150 else
8151 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8152 for as_dir in $PATH
8153 do
8154   IFS=$as_save_IFS
8155   test -z "$as_dir" && as_dir=.
8156   for ac_exec_ext in '' $ac_executable_extensions; do
8157   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8158     ac_cv_prog_ft_devel="freetype-config"
8159     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8160     break 2
8161   fi
8162 done
8163 done
8164
8165   test -z "$ac_cv_prog_ft_devel" && ac_cv_prog_ft_devel="no"
8166 fi
8167 fi
8168 ft_devel=$ac_cv_prog_ft_devel
8169 if test -n "$ft_devel"; then
8170   echo "$as_me:$LINENO: result: $ft_devel" >&5
8171 echo "${ECHO_T}$ft_devel" >&6
8172 else
8173   echo "$as_me:$LINENO: result: no" >&5
8174 echo "${ECHO_T}no" >&6
8175 fi
8176
8177     if test "$ft_devel" = "no"
8178     then
8179         # Extract the first word of "freetype2-config", so it can be a program name with args.
8180 set dummy freetype2-config; ac_word=$2
8181 echo "$as_me:$LINENO: checking for $ac_word" >&5
8182 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8183 if test "${ac_cv_prog_ft_devel2+set}" = set; then
8184   echo $ECHO_N "(cached) $ECHO_C" >&6
8185 else
8186   if test -n "$ft_devel2"; then
8187   ac_cv_prog_ft_devel2="$ft_devel2" # Let the user override the test.
8188 else
8189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8190 for as_dir in $PATH
8191 do
8192   IFS=$as_save_IFS
8193   test -z "$as_dir" && as_dir=.
8194   for ac_exec_ext in '' $ac_executable_extensions; do
8195   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8196     ac_cv_prog_ft_devel2="freetype2-config"
8197     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8198     break 2
8199   fi
8200 done
8201 done
8202
8203   test -z "$ac_cv_prog_ft_devel2" && ac_cv_prog_ft_devel2="no"
8204 fi
8205 fi
8206 ft_devel2=$ac_cv_prog_ft_devel2
8207 if test -n "$ft_devel2"; then
8208   echo "$as_me:$LINENO: result: $ft_devel2" >&5
8209 echo "${ECHO_T}$ft_devel2" >&6
8210 else
8211   echo "$as_me:$LINENO: result: no" >&5
8212 echo "${ECHO_T}no" >&6
8213 fi
8214
8215         if test "$ft_devel2" = "freetype2-config"
8216         then
8217                 ft_devel=$ft_devel2
8218         fi
8219     fi
8220     if test "$ft_devel" = "no"
8221     then
8222         FREETYPEINCL=""
8223         wine_cv_msg_freetype=yes
8224     else
8225         FREETYPEINCL=`$ft_devel --cflags`
8226         ac_save_CPPFLAGS="$CPPFLAGS"
8227         CPPFLAGS="$FREETYPEINCL $CPPFLAGS"
8228
8229
8230
8231
8232
8233
8234
8235
8236 for ac_header in freetype/freetype.h \
8237                          freetype/ftglyph.h \
8238                          freetype/tttables.h \
8239                          freetype/ftnames.h \
8240                          freetype/ftsnames.h \
8241                          freetype/ttnameid.h \
8242                          freetype/ftoutln.h \
8243                          freetype/internal/sfnt.h
8244 do
8245 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8246 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8247   echo "$as_me:$LINENO: checking for $ac_header" >&5
8248 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8249 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8250   echo $ECHO_N "(cached) $ECHO_C" >&6
8251 fi
8252 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8253 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8254 else
8255   # Is the header compilable?
8256 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8257 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8258 cat >conftest.$ac_ext <<_ACEOF
8259 #line $LINENO "configure"
8260 #include "confdefs.h"
8261 $ac_includes_default
8262 #include <$ac_header>
8263 _ACEOF
8264 rm -f conftest.$ac_objext
8265 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8266   (eval $ac_compile) 2>&5
8267   ac_status=$?
8268   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8269   (exit $ac_status); } &&
8270          { ac_try='test -s conftest.$ac_objext'
8271   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8272   (eval $ac_try) 2>&5
8273   ac_status=$?
8274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8275   (exit $ac_status); }; }; then
8276   ac_header_compiler=yes
8277 else
8278   echo "$as_me: failed program was:" >&5
8279 cat conftest.$ac_ext >&5
8280 ac_header_compiler=no
8281 fi
8282 rm -f conftest.$ac_objext conftest.$ac_ext
8283 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8284 echo "${ECHO_T}$ac_header_compiler" >&6
8285
8286 # Is the header present?
8287 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8288 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8289 cat >conftest.$ac_ext <<_ACEOF
8290 #line $LINENO "configure"
8291 #include "confdefs.h"
8292 #include <$ac_header>
8293 _ACEOF
8294 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8295   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8296   ac_status=$?
8297   grep -v '^ *+' conftest.er1 >conftest.err
8298   rm -f conftest.er1
8299   cat conftest.err >&5
8300   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8301   (exit $ac_status); } >/dev/null; then
8302   if test -s conftest.err; then
8303     ac_cpp_err=$ac_c_preproc_warn_flag
8304   else
8305     ac_cpp_err=
8306   fi
8307 else
8308   ac_cpp_err=yes
8309 fi
8310 if test -z "$ac_cpp_err"; then
8311   ac_header_preproc=yes
8312 else
8313   echo "$as_me: failed program was:" >&5
8314   cat conftest.$ac_ext >&5
8315   ac_header_preproc=no
8316 fi
8317 rm -f conftest.err conftest.$ac_ext
8318 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8319 echo "${ECHO_T}$ac_header_preproc" >&6
8320
8321 # So?  What about this header?
8322 case $ac_header_compiler:$ac_header_preproc in
8323   yes:no )
8324     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8325 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8326     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8327 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8328   no:yes )
8329     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8330 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8331     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8332 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8333     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8334 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8335 esac
8336 echo "$as_me:$LINENO: checking for $ac_header" >&5
8337 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8338 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8339   echo $ECHO_N "(cached) $ECHO_C" >&6
8340 else
8341   eval "$as_ac_Header=$ac_header_preproc"
8342 fi
8343 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8344 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8345
8346 fi
8347 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8348   cat >>confdefs.h <<_ACEOF
8349 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8350 _ACEOF
8351
8352 fi
8353
8354 done
8355
8356         cat >conftest.$ac_ext <<_ACEOF
8357 #line $LINENO "configure"
8358 #include "confdefs.h"
8359 #include <ft2build.h>
8360                     #include <freetype/fttrigon.h>
8361 _ACEOF
8362 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8363   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8364   ac_status=$?
8365   grep -v '^ *+' conftest.er1 >conftest.err
8366   rm -f conftest.er1
8367   cat conftest.err >&5
8368   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8369   (exit $ac_status); } >/dev/null; then
8370   if test -s conftest.err; then
8371     ac_cpp_err=$ac_c_preproc_warn_flag
8372   else
8373     ac_cpp_err=
8374   fi
8375 else
8376   ac_cpp_err=yes
8377 fi
8378 if test -z "$ac_cpp_err"; then
8379
8380 cat >>confdefs.h <<\_ACEOF
8381 #define HAVE_FREETYPE_FTTRIGON_H 1
8382 _ACEOF
8383
8384                     wine_cv_fttrigon=yes
8385 else
8386   echo "$as_me: failed program was:" >&5
8387   cat conftest.$ac_ext >&5
8388   wine_cv_fttrigon=no
8389 fi
8390 rm -f conftest.err conftest.$ac_ext
8391         CPPFLAGS="$ac_save_CPPFLAGS"
8392                 if test "$ac_cv_header_freetype_freetype_h" = "yes" -a "$wine_cv_fttrigon" = "yes"
8393         then
8394
8395 cat >>confdefs.h <<\_ACEOF
8396 #define HAVE_FREETYPE 1
8397 _ACEOF
8398
8399             wine_cv_msg_freetype=no
8400         else
8401             FREETYPEINCL=""
8402             wine_cv_msg_freetype=yes
8403         fi
8404     fi
8405 fi
8406
8407
8408 echo "$as_me:$LINENO: checking for parport header/ppdev.h" >&5
8409 echo $ECHO_N "checking for parport header/ppdev.h... $ECHO_C" >&6
8410 if test "${ac_cv_c_ppdev+set}" = set; then
8411   echo $ECHO_N "(cached) $ECHO_C" >&6
8412 else
8413   cat >conftest.$ac_ext <<_ACEOF
8414 #line $LINENO "configure"
8415 #include "confdefs.h"
8416 #include <linux/ppdev.h>
8417 int
8418 main ()
8419 {
8420 ioctl (1,PPCLAIM,0)
8421   ;
8422   return 0;
8423 }
8424 _ACEOF
8425 rm -f conftest.$ac_objext
8426 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8427   (eval $ac_compile) 2>&5
8428   ac_status=$?
8429   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8430   (exit $ac_status); } &&
8431          { ac_try='test -s conftest.$ac_objext'
8432   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8433   (eval $ac_try) 2>&5
8434   ac_status=$?
8435   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8436   (exit $ac_status); }; }; then
8437   ac_cv_c_ppdev="yes"
8438 else
8439   echo "$as_me: failed program was:" >&5
8440 cat conftest.$ac_ext >&5
8441 ac_cv_c_ppdev="no"
8442 fi
8443 rm -f conftest.$ac_objext conftest.$ac_ext
8444
8445 fi
8446 echo "$as_me:$LINENO: result: $ac_cv_c_ppdev" >&5
8447 echo "${ECHO_T}$ac_cv_c_ppdev" >&6
8448 if test "$ac_cv_c_ppdev" = "yes"
8449 then
8450
8451 cat >>confdefs.h <<\_ACEOF
8452 #define HAVE_PPDEV 1
8453 _ACEOF
8454
8455 fi
8456
8457 echo "$as_me:$LINENO: checking for va_copy" >&5
8458 echo $ECHO_N "checking for va_copy... $ECHO_C" >&6
8459 if test "${ac_cv_c_va_copy+set}" = set; then
8460   echo $ECHO_N "(cached) $ECHO_C" >&6
8461 else
8462   cat >conftest.$ac_ext <<_ACEOF
8463 #line $LINENO "configure"
8464 #include "confdefs.h"
8465 #include <stdarg.h>
8466 int
8467 main ()
8468 {
8469 va_list ap1, ap2;
8470     va_copy(ap1,ap2);
8471
8472   ;
8473   return 0;
8474 }
8475 _ACEOF
8476 rm -f conftest.$ac_objext conftest$ac_exeext
8477 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8478   (eval $ac_link) 2>&5
8479   ac_status=$?
8480   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8481   (exit $ac_status); } &&
8482          { ac_try='test -s conftest$ac_exeext'
8483   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8484   (eval $ac_try) 2>&5
8485   ac_status=$?
8486   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8487   (exit $ac_status); }; }; then
8488   ac_cv_c_va_copy="yes"
8489 else
8490   echo "$as_me: failed program was:" >&5
8491 cat conftest.$ac_ext >&5
8492 ac_cv_c_va_copy="no"
8493 fi
8494 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8495
8496 fi
8497 echo "$as_me:$LINENO: result: $ac_cv_c_va_copy" >&5
8498 echo "${ECHO_T}$ac_cv_c_va_copy" >&6
8499 if test "$ac_cv_c_va_copy" = "yes"
8500 then
8501
8502 cat >>confdefs.h <<\_ACEOF
8503 #define HAVE_VA_COPY 1
8504 _ACEOF
8505
8506 fi
8507 echo "$as_me:$LINENO: checking for __va_copy" >&5
8508 echo $ECHO_N "checking for __va_copy... $ECHO_C" >&6
8509 if test "${ac_cv_c___va_copy+set}" = set; then
8510   echo $ECHO_N "(cached) $ECHO_C" >&6
8511 else
8512   cat >conftest.$ac_ext <<_ACEOF
8513 #line $LINENO "configure"
8514 #include "confdefs.h"
8515 #include <stdarg.h>
8516 int
8517 main ()
8518 {
8519 va_list ap1, ap2;
8520     __va_copy(ap1,ap2);
8521
8522   ;
8523   return 0;
8524 }
8525 _ACEOF
8526 rm -f conftest.$ac_objext conftest$ac_exeext
8527 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8528   (eval $ac_link) 2>&5
8529   ac_status=$?
8530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8531   (exit $ac_status); } &&
8532          { ac_try='test -s conftest$ac_exeext'
8533   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8534   (eval $ac_try) 2>&5
8535   ac_status=$?
8536   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8537   (exit $ac_status); }; }; then
8538   ac_cv_c___va_copy="yes"
8539 else
8540   echo "$as_me: failed program was:" >&5
8541 cat conftest.$ac_ext >&5
8542 ac_cv_c___va_copy="no"
8543 fi
8544 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8545
8546 fi
8547 echo "$as_me:$LINENO: result: $ac_cv_c___va_copy" >&5
8548 echo "${ECHO_T}$ac_cv_c___va_copy" >&6
8549 if test "$ac_cv_c___va_copy" = "yes"
8550 then
8551
8552 cat >>confdefs.h <<\_ACEOF
8553 #define HAVE___VA_COPY 1
8554 _ACEOF
8555
8556 fi
8557
8558 echo "$as_me:$LINENO: checking for GNU style IPX support" >&5
8559 echo $ECHO_N "checking for GNU style IPX support... $ECHO_C" >&6
8560 if test "${ac_cv_c_ipx_gnu+set}" = set; then
8561   echo $ECHO_N "(cached) $ECHO_C" >&6
8562 else
8563   cat >conftest.$ac_ext <<_ACEOF
8564 #line $LINENO "configure"
8565 #include "confdefs.h"
8566 #include <sys/types.h>
8567     #ifdef HAVE_SYS_SOCKET_H
8568     # include <sys/socket.h>
8569     #endif
8570     #include <netipx/ipx.h>
8571 int
8572 main ()
8573 {
8574 ((struct sockaddr_ipx *)0)->sipx_family == AF_IPX
8575   ;
8576   return 0;
8577 }
8578 _ACEOF
8579 rm -f conftest.$ac_objext
8580 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8581   (eval $ac_compile) 2>&5
8582   ac_status=$?
8583   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8584   (exit $ac_status); } &&
8585          { ac_try='test -s conftest.$ac_objext'
8586   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8587   (eval $ac_try) 2>&5
8588   ac_status=$?
8589   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8590   (exit $ac_status); }; }; then
8591   ac_cv_c_ipx_gnu="yes"
8592 else
8593   echo "$as_me: failed program was:" >&5
8594 cat conftest.$ac_ext >&5
8595 ac_cv_c_ipx_gnu="no"
8596 fi
8597 rm -f conftest.$ac_objext conftest.$ac_ext
8598
8599 fi
8600 echo "$as_me:$LINENO: result: $ac_cv_c_ipx_gnu" >&5
8601 echo "${ECHO_T}$ac_cv_c_ipx_gnu" >&6
8602 if test "$ac_cv_c_ipx_gnu" = "yes"
8603 then
8604
8605 cat >>confdefs.h <<\_ACEOF
8606 #define HAVE_IPX_GNU 1
8607 _ACEOF
8608
8609 fi
8610
8611 if test "$ac_cv_c_ipx_gnu" = "no"
8612 then
8613  echo "$as_me:$LINENO: checking for linux style IPX support" >&5
8614 echo $ECHO_N "checking for linux style IPX support... $ECHO_C" >&6
8615 if test "${ac_cv_c_ipx_linux+set}" = set; then
8616   echo $ECHO_N "(cached) $ECHO_C" >&6
8617 else
8618   cat >conftest.$ac_ext <<_ACEOF
8619 #line $LINENO "configure"
8620 #include "confdefs.h"
8621 #include <sys/types.h>
8622      #ifdef HAVE_SYS_SOCKET_H
8623      # include <sys/socket.h>
8624      #endif
8625      #include <asm/types.h>
8626      #include <linux/ipx.h>
8627 int
8628 main ()
8629 {
8630 ((struct sockaddr_ipx *)0)->sipx_family == AF_IPX
8631   ;
8632   return 0;
8633 }
8634 _ACEOF
8635 rm -f conftest.$ac_objext
8636 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8637   (eval $ac_compile) 2>&5
8638   ac_status=$?
8639   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8640   (exit $ac_status); } &&
8641          { ac_try='test -s conftest.$ac_objext'
8642   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8643   (eval $ac_try) 2>&5
8644   ac_status=$?
8645   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8646   (exit $ac_status); }; }; then
8647   ac_cv_c_ipx_linux="yes"
8648 else
8649   echo "$as_me: failed program was:" >&5
8650 cat conftest.$ac_ext >&5
8651 ac_cv_c_ipx_linux="no"
8652 fi
8653 rm -f conftest.$ac_objext conftest.$ac_ext
8654
8655 fi
8656 echo "$as_me:$LINENO: result: $ac_cv_c_ipx_linux" >&5
8657 echo "${ECHO_T}$ac_cv_c_ipx_linux" >&6
8658   if test "$ac_cv_c_ipx_linux" = "yes"
8659   then
8660
8661 cat >>confdefs.h <<\_ACEOF
8662 #define HAVE_IPX_LINUX 1
8663 _ACEOF
8664
8665   fi
8666 fi
8667
8668
8669
8670
8671 for ac_header in sys/soundcard.h machine/soundcard.h soundcard.h
8672 do
8673 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8674 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8675   echo "$as_me:$LINENO: checking for $ac_header" >&5
8676 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8677 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8678   echo $ECHO_N "(cached) $ECHO_C" >&6
8679 fi
8680 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8681 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8682 else
8683   # Is the header compilable?
8684 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8685 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8686 cat >conftest.$ac_ext <<_ACEOF
8687 #line $LINENO "configure"
8688 #include "confdefs.h"
8689 $ac_includes_default
8690 #include <$ac_header>
8691 _ACEOF
8692 rm -f conftest.$ac_objext
8693 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8694   (eval $ac_compile) 2>&5
8695   ac_status=$?
8696   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8697   (exit $ac_status); } &&
8698          { ac_try='test -s conftest.$ac_objext'
8699   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8700   (eval $ac_try) 2>&5
8701   ac_status=$?
8702   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8703   (exit $ac_status); }; }; then
8704   ac_header_compiler=yes
8705 else
8706   echo "$as_me: failed program was:" >&5
8707 cat conftest.$ac_ext >&5
8708 ac_header_compiler=no
8709 fi
8710 rm -f conftest.$ac_objext conftest.$ac_ext
8711 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8712 echo "${ECHO_T}$ac_header_compiler" >&6
8713
8714 # Is the header present?
8715 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8716 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8717 cat >conftest.$ac_ext <<_ACEOF
8718 #line $LINENO "configure"
8719 #include "confdefs.h"
8720 #include <$ac_header>
8721 _ACEOF
8722 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8723   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8724   ac_status=$?
8725   grep -v '^ *+' conftest.er1 >conftest.err
8726   rm -f conftest.er1
8727   cat conftest.err >&5
8728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8729   (exit $ac_status); } >/dev/null; then
8730   if test -s conftest.err; then
8731     ac_cpp_err=$ac_c_preproc_warn_flag
8732   else
8733     ac_cpp_err=
8734   fi
8735 else
8736   ac_cpp_err=yes
8737 fi
8738 if test -z "$ac_cpp_err"; then
8739   ac_header_preproc=yes
8740 else
8741   echo "$as_me: failed program was:" >&5
8742   cat conftest.$ac_ext >&5
8743   ac_header_preproc=no
8744 fi
8745 rm -f conftest.err conftest.$ac_ext
8746 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8747 echo "${ECHO_T}$ac_header_preproc" >&6
8748
8749 # So?  What about this header?
8750 case $ac_header_compiler:$ac_header_preproc in
8751   yes:no )
8752     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8753 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8754     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8755 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8756   no:yes )
8757     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8758 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8759     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8760 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8761     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8762 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8763 esac
8764 echo "$as_me:$LINENO: checking for $ac_header" >&5
8765 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8766 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8767   echo $ECHO_N "(cached) $ECHO_C" >&6
8768 else
8769   eval "$as_ac_Header=$ac_header_preproc"
8770 fi
8771 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8772 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8773
8774 fi
8775 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8776   cat >>confdefs.h <<_ACEOF
8777 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8778 _ACEOF
8779  break
8780 fi
8781
8782 done
8783
8784
8785 echo "$as_me:$LINENO: checking for Open Sound System" >&5
8786 echo $ECHO_N "checking for Open Sound System... $ECHO_C" >&6
8787 if test "${ac_cv_c_opensoundsystem+set}" = set; then
8788   echo $ECHO_N "(cached) $ECHO_C" >&6
8789 else
8790   cat >conftest.$ac_ext <<_ACEOF
8791 #line $LINENO "configure"
8792 #include "confdefs.h"
8793
8794         #if defined(HAVE_SYS_SOUNDCARD_H)
8795                 #include <sys/soundcard.h>
8796         #elif defined(HAVE_MACHINE_SOUNDCARD_H)
8797                 #include <machine/soundcard.h>
8798         #elif defined(HAVE_SOUNDCARD_H)
8799                 #include <soundcard.h>
8800         #endif
8801
8802 int
8803 main ()
8804 {
8805
8806
8807 /* check for one of the Open Sound System specific SNDCTL_ defines */
8808 #if !defined(SNDCTL_DSP_STEREO)
8809 #error No open sound system
8810 #endif
8811
8812   ;
8813   return 0;
8814 }
8815 _ACEOF
8816 rm -f conftest.$ac_objext
8817 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8818   (eval $ac_compile) 2>&5
8819   ac_status=$?
8820   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8821   (exit $ac_status); } &&
8822          { ac_try='test -s conftest.$ac_objext'
8823   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8824   (eval $ac_try) 2>&5
8825   ac_status=$?
8826   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8827   (exit $ac_status); }; }; then
8828   ac_cv_c_opensoundsystem="yes"
8829 else
8830   echo "$as_me: failed program was:" >&5
8831 cat conftest.$ac_ext >&5
8832 ac_cv_c_opensoundsystem="no"
8833 fi
8834 rm -f conftest.$ac_objext conftest.$ac_ext
8835 fi
8836 echo "$as_me:$LINENO: result: $ac_cv_c_opensoundsystem" >&5
8837 echo "${ECHO_T}$ac_cv_c_opensoundsystem" >&6
8838
8839 if test "$ac_cv_c_opensoundsystem" = "yes"
8840 then
8841
8842 cat >>confdefs.h <<\_ACEOF
8843 #define HAVE_OSS 1
8844 _ACEOF
8845
8846 fi
8847
8848 echo "$as_me:$LINENO: checking for Open Sound System/MIDI interface" >&5
8849 echo $ECHO_N "checking for Open Sound System/MIDI interface... $ECHO_C" >&6
8850 if test "${ac_cv_c_opensoundsystem_midi+set}" = set; then
8851   echo $ECHO_N "(cached) $ECHO_C" >&6
8852 else
8853   cat >conftest.$ac_ext <<_ACEOF
8854 #line $LINENO "configure"
8855 #include "confdefs.h"
8856
8857         #if defined(HAVE_SYS_SOUNDCARD_H)
8858                 #include <sys/soundcard.h>
8859         #elif defined(HAVE_MACHINE_SOUNDCARD_H)
8860                 #include <machine/soundcard.h>
8861         #elif defined(HAVE_SOUNDCARD_H)
8862                 #include <soundcard.h>
8863         #endif
8864
8865 int
8866 main ()
8867 {
8868
8869
8870 /* check for one of the Open Sound System specific SNDCTL_SEQ defines */
8871 #if !defined(SNDCTL_SEQ_SYNC)
8872 #error No open sound system MIDI interface
8873 #endif
8874
8875   ;
8876   return 0;
8877 }
8878 _ACEOF
8879 rm -f conftest.$ac_objext
8880 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8881   (eval $ac_compile) 2>&5
8882   ac_status=$?
8883   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8884   (exit $ac_status); } &&
8885          { ac_try='test -s conftest.$ac_objext'
8886   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8887   (eval $ac_try) 2>&5
8888   ac_status=$?
8889   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8890   (exit $ac_status); }; }; then
8891   ac_cv_c_opensoundsystem_midi="yes"
8892 else
8893   echo "$as_me: failed program was:" >&5
8894 cat conftest.$ac_ext >&5
8895 ac_cv_c_opensoundsystem_midi="no"
8896 fi
8897 rm -f conftest.$ac_objext conftest.$ac_ext
8898 fi
8899 echo "$as_me:$LINENO: result: $ac_cv_c_opensoundsystem_midi" >&5
8900 echo "${ECHO_T}$ac_cv_c_opensoundsystem_midi" >&6
8901
8902 if test "$ac_cv_c_opensoundsystem_midi" = "yes"
8903 then
8904
8905 cat >>confdefs.h <<\_ACEOF
8906 #define HAVE_OSS_MIDI 1
8907 _ACEOF
8908
8909 fi
8910
8911 # Extract the first word of "artsc-config", so it can be a program name with args.
8912 set dummy artsc-config; ac_word=$2
8913 echo "$as_me:$LINENO: checking for $ac_word" >&5
8914 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8915 if test "${ac_cv_path_ARTSCCONFIG+set}" = set; then
8916   echo $ECHO_N "(cached) $ECHO_C" >&6
8917 else
8918   case $ARTSCCONFIG in
8919   [\\/]* | ?:[\\/]*)
8920   ac_cv_path_ARTSCCONFIG="$ARTSCCONFIG" # Let the user override the test with a path.
8921   ;;
8922   *)
8923   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8924 for as_dir in $PATH
8925 do
8926   IFS=$as_save_IFS
8927   test -z "$as_dir" && as_dir=.
8928   for ac_exec_ext in '' $ac_executable_extensions; do
8929   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8930     ac_cv_path_ARTSCCONFIG="$as_dir/$ac_word$ac_exec_ext"
8931     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8932     break 2
8933   fi
8934 done
8935 done
8936
8937   ;;
8938 esac
8939 fi
8940 ARTSCCONFIG=$ac_cv_path_ARTSCCONFIG
8941
8942 if test -n "$ARTSCCONFIG"; then
8943   echo "$as_me:$LINENO: result: $ARTSCCONFIG" >&5
8944 echo "${ECHO_T}$ARTSCCONFIG" >&6
8945 else
8946   echo "$as_me:$LINENO: result: no" >&5
8947 echo "${ECHO_T}no" >&6
8948 fi
8949
8950 echo "$as_me:$LINENO: checking for aRts Sound server" >&5
8951 echo $ECHO_N "checking for aRts Sound server... $ECHO_C" >&6
8952 if test "${ac_cv_c_artsserver+set}" = set; then
8953   echo $ECHO_N "(cached) $ECHO_C" >&6
8954 else
8955   if test x$ARTSCCONFIG = x -o x$ARTSCCONFIG = x'"$ARTSCCONFIG"';
8956         then
8957             ac_cv_c_artsserver=no
8958         else
8959             ARTSC_CFLAGS=`$ARTSCCONFIG --cflags`
8960             ARTSC_LIBS=`$ARTSCCONFIG --libs`
8961             ac_cv_c_artsserver=no
8962             save_CFLAGS="$CFLAGS"
8963             CFLAGS="$CFLAGS $ARTSC_CFLAGS"
8964             cat >conftest.$ac_ext <<_ACEOF
8965 #line $LINENO "configure"
8966 #include "confdefs.h"
8967
8968              #include <artsc.h>
8969
8970 int
8971 main ()
8972 {
8973
8974              arts_stream_t stream;
8975
8976   ;
8977   return 0;
8978 }
8979 _ACEOF
8980 rm -f conftest.$ac_objext
8981 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8982   (eval $ac_compile) 2>&5
8983   ac_status=$?
8984   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8985   (exit $ac_status); } &&
8986          { ac_try='test -s conftest.$ac_objext'
8987   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8988   (eval $ac_try) 2>&5
8989   ac_status=$?
8990   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8991   (exit $ac_status); }; }; then
8992
8993             ac_cv_c_artsserver=yes
8994
8995 else
8996   echo "$as_me: failed program was:" >&5
8997 cat conftest.$ac_ext >&5
8998 fi
8999 rm -f conftest.$ac_objext conftest.$ac_ext
9000             CFLAGS="$save_CFLAGS"
9001         fi
9002 fi
9003 echo "$as_me:$LINENO: result: $ac_cv_c_artsserver" >&5
9004 echo "${ECHO_T}$ac_cv_c_artsserver" >&6
9005
9006 if test "$ac_cv_c_artsserver" = "yes"
9007 then
9008     ARTSLIBS=$ARTSC_LIBS
9009
9010     ARTSINCL=$ARTSC_CFLAGS
9011
9012
9013
9014 cat >>confdefs.h <<\_ACEOF
9015 #define HAVE_ARTS 1
9016 _ACEOF
9017
9018 fi
9019
9020 ALSALIBS=""
9021
9022
9023
9024 for ac_header in alsa/asoundlib.h sys/asoundlib.h
9025 do
9026 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9027 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9028   echo "$as_me:$LINENO: checking for $ac_header" >&5
9029 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9030 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9031   echo $ECHO_N "(cached) $ECHO_C" >&6
9032 fi
9033 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9034 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9035 else
9036   # Is the header compilable?
9037 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9038 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9039 cat >conftest.$ac_ext <<_ACEOF
9040 #line $LINENO "configure"
9041 #include "confdefs.h"
9042 $ac_includes_default
9043 #include <$ac_header>
9044 _ACEOF
9045 rm -f conftest.$ac_objext
9046 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9047   (eval $ac_compile) 2>&5
9048   ac_status=$?
9049   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9050   (exit $ac_status); } &&
9051          { ac_try='test -s conftest.$ac_objext'
9052   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9053   (eval $ac_try) 2>&5
9054   ac_status=$?
9055   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9056   (exit $ac_status); }; }; then
9057   ac_header_compiler=yes
9058 else
9059   echo "$as_me: failed program was:" >&5
9060 cat conftest.$ac_ext >&5
9061 ac_header_compiler=no
9062 fi
9063 rm -f conftest.$ac_objext conftest.$ac_ext
9064 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9065 echo "${ECHO_T}$ac_header_compiler" >&6
9066
9067 # Is the header present?
9068 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9069 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9070 cat >conftest.$ac_ext <<_ACEOF
9071 #line $LINENO "configure"
9072 #include "confdefs.h"
9073 #include <$ac_header>
9074 _ACEOF
9075 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9076   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9077   ac_status=$?
9078   grep -v '^ *+' conftest.er1 >conftest.err
9079   rm -f conftest.er1
9080   cat conftest.err >&5
9081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9082   (exit $ac_status); } >/dev/null; then
9083   if test -s conftest.err; then
9084     ac_cpp_err=$ac_c_preproc_warn_flag
9085   else
9086     ac_cpp_err=
9087   fi
9088 else
9089   ac_cpp_err=yes
9090 fi
9091 if test -z "$ac_cpp_err"; then
9092   ac_header_preproc=yes
9093 else
9094   echo "$as_me: failed program was:" >&5
9095   cat conftest.$ac_ext >&5
9096   ac_header_preproc=no
9097 fi
9098 rm -f conftest.err conftest.$ac_ext
9099 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9100 echo "${ECHO_T}$ac_header_preproc" >&6
9101
9102 # So?  What about this header?
9103 case $ac_header_compiler:$ac_header_preproc in
9104   yes:no )
9105     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9106 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9107     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9108 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
9109   no:yes )
9110     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9111 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9112     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9113 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9114     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9115 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
9116 esac
9117 echo "$as_me:$LINENO: checking for $ac_header" >&5
9118 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9119 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9120   echo $ECHO_N "(cached) $ECHO_C" >&6
9121 else
9122   eval "$as_ac_Header=$ac_header_preproc"
9123 fi
9124 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9125 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9126
9127 fi
9128 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9129   cat >>confdefs.h <<_ACEOF
9130 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9131 _ACEOF
9132  break
9133 fi
9134
9135 done
9136
9137 if test "$ac_cv_header_sys_asoundlib_h" = "yes" -o "$ac_cv_header_alsa_asoundlib_h" = "yes"
9138 then
9139     echo "$as_me:$LINENO: checking for snd_pcm_open in -lasound" >&5
9140 echo $ECHO_N "checking for snd_pcm_open in -lasound... $ECHO_C" >&6
9141 if test "${ac_cv_lib_asound_snd_pcm_open+set}" = set; then
9142   echo $ECHO_N "(cached) $ECHO_C" >&6
9143 else
9144   ac_check_lib_save_LIBS=$LIBS
9145 LIBS="-lasound  $LIBS"
9146 cat >conftest.$ac_ext <<_ACEOF
9147 #line $LINENO "configure"
9148 #include "confdefs.h"
9149
9150 /* Override any gcc2 internal prototype to avoid an error.  */
9151 #ifdef __cplusplus
9152 extern "C"
9153 #endif
9154 /* We use char because int might match the return type of a gcc2
9155    builtin and then its argument prototype would still apply.  */
9156 char snd_pcm_open ();
9157 int
9158 main ()
9159 {
9160 snd_pcm_open ();
9161   ;
9162   return 0;
9163 }
9164 _ACEOF
9165 rm -f conftest.$ac_objext conftest$ac_exeext
9166 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9167   (eval $ac_link) 2>&5
9168   ac_status=$?
9169   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9170   (exit $ac_status); } &&
9171          { ac_try='test -s conftest$ac_exeext'
9172   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9173   (eval $ac_try) 2>&5
9174   ac_status=$?
9175   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9176   (exit $ac_status); }; }; then
9177   ac_cv_lib_asound_snd_pcm_open=yes
9178 else
9179   echo "$as_me: failed program was:" >&5
9180 cat conftest.$ac_ext >&5
9181 ac_cv_lib_asound_snd_pcm_open=no
9182 fi
9183 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9184 LIBS=$ac_check_lib_save_LIBS
9185 fi
9186 echo "$as_me:$LINENO: result: $ac_cv_lib_asound_snd_pcm_open" >&5
9187 echo "${ECHO_T}$ac_cv_lib_asound_snd_pcm_open" >&6
9188 if test $ac_cv_lib_asound_snd_pcm_open = yes; then
9189
9190 cat >>confdefs.h <<\_ACEOF
9191 #define HAVE_ALSA 1
9192 _ACEOF
9193
9194         ALSALIBS="-lasound"
9195 fi
9196
9197 fi
9198
9199
9200 AUDIOIOLIBS=""
9201
9202
9203 for ac_header in libaudioio.h
9204 do
9205 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9206 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9207   echo "$as_me:$LINENO: checking for $ac_header" >&5
9208 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9209 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9210   echo $ECHO_N "(cached) $ECHO_C" >&6
9211 fi
9212 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9213 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9214 else
9215   # Is the header compilable?
9216 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9217 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9218 cat >conftest.$ac_ext <<_ACEOF
9219 #line $LINENO "configure"
9220 #include "confdefs.h"
9221 $ac_includes_default
9222 #include <$ac_header>
9223 _ACEOF
9224 rm -f conftest.$ac_objext
9225 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9226   (eval $ac_compile) 2>&5
9227   ac_status=$?
9228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9229   (exit $ac_status); } &&
9230          { ac_try='test -s conftest.$ac_objext'
9231   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9232   (eval $ac_try) 2>&5
9233   ac_status=$?
9234   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9235   (exit $ac_status); }; }; then
9236   ac_header_compiler=yes
9237 else
9238   echo "$as_me: failed program was:" >&5
9239 cat conftest.$ac_ext >&5
9240 ac_header_compiler=no
9241 fi
9242 rm -f conftest.$ac_objext conftest.$ac_ext
9243 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9244 echo "${ECHO_T}$ac_header_compiler" >&6
9245
9246 # Is the header present?
9247 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9248 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9249 cat >conftest.$ac_ext <<_ACEOF
9250 #line $LINENO "configure"
9251 #include "confdefs.h"
9252 #include <$ac_header>
9253 _ACEOF
9254 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9255   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9256   ac_status=$?
9257   grep -v '^ *+' conftest.er1 >conftest.err
9258   rm -f conftest.er1
9259   cat conftest.err >&5
9260   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9261   (exit $ac_status); } >/dev/null; then
9262   if test -s conftest.err; then
9263     ac_cpp_err=$ac_c_preproc_warn_flag
9264   else
9265     ac_cpp_err=
9266   fi
9267 else
9268   ac_cpp_err=yes
9269 fi
9270 if test -z "$ac_cpp_err"; then
9271   ac_header_preproc=yes
9272 else
9273   echo "$as_me: failed program was:" >&5
9274   cat conftest.$ac_ext >&5
9275   ac_header_preproc=no
9276 fi
9277 rm -f conftest.err conftest.$ac_ext
9278 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9279 echo "${ECHO_T}$ac_header_preproc" >&6
9280
9281 # So?  What about this header?
9282 case $ac_header_compiler:$ac_header_preproc in
9283   yes:no )
9284     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9285 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9286     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9287 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
9288   no:yes )
9289     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9290 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9291     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9292 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9293     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9294 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
9295 esac
9296 echo "$as_me:$LINENO: checking for $ac_header" >&5
9297 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9298 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9299   echo $ECHO_N "(cached) $ECHO_C" >&6
9300 else
9301   eval "$as_ac_Header=$ac_header_preproc"
9302 fi
9303 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9304 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9305
9306 fi
9307 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9308   cat >>confdefs.h <<_ACEOF
9309 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9310 _ACEOF
9311  echo "$as_me:$LINENO: checking for AudioIOGetVersion in -laudioio" >&5
9312 echo $ECHO_N "checking for AudioIOGetVersion in -laudioio... $ECHO_C" >&6
9313 if test "${ac_cv_lib_audioio_AudioIOGetVersion+set}" = set; then
9314   echo $ECHO_N "(cached) $ECHO_C" >&6
9315 else
9316   ac_check_lib_save_LIBS=$LIBS
9317 LIBS="-laudioio  $LIBS"
9318 cat >conftest.$ac_ext <<_ACEOF
9319 #line $LINENO "configure"
9320 #include "confdefs.h"
9321
9322 /* Override any gcc2 internal prototype to avoid an error.  */
9323 #ifdef __cplusplus
9324 extern "C"
9325 #endif
9326 /* We use char because int might match the return type of a gcc2
9327    builtin and then its argument prototype would still apply.  */
9328 char AudioIOGetVersion ();
9329 int
9330 main ()
9331 {
9332 AudioIOGetVersion ();
9333   ;
9334   return 0;
9335 }
9336 _ACEOF
9337 rm -f conftest.$ac_objext conftest$ac_exeext
9338 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9339   (eval $ac_link) 2>&5
9340   ac_status=$?
9341   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9342   (exit $ac_status); } &&
9343          { ac_try='test -s conftest$ac_exeext'
9344   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9345   (eval $ac_try) 2>&5
9346   ac_status=$?
9347   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9348   (exit $ac_status); }; }; then
9349   ac_cv_lib_audioio_AudioIOGetVersion=yes
9350 else
9351   echo "$as_me: failed program was:" >&5
9352 cat conftest.$ac_ext >&5
9353 ac_cv_lib_audioio_AudioIOGetVersion=no
9354 fi
9355 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9356 LIBS=$ac_check_lib_save_LIBS
9357 fi
9358 echo "$as_me:$LINENO: result: $ac_cv_lib_audioio_AudioIOGetVersion" >&5
9359 echo "${ECHO_T}$ac_cv_lib_audioio_AudioIOGetVersion" >&6
9360 if test $ac_cv_lib_audioio_AudioIOGetVersion = yes; then
9361   AUDIOIOLIBS="-laudioio"
9362
9363 cat >>confdefs.h <<\_ACEOF
9364 #define HAVE_LIBAUDIOIO 1
9365 _ACEOF
9366
9367 fi
9368
9369 fi
9370
9371 done
9372
9373
9374
9375 echo "$as_me:$LINENO: checking whether mmap64 works defined as mmap" >&5
9376 echo $ECHO_N "checking whether mmap64 works defined as mmap... $ECHO_C" >&6
9377 if test "${ac_cv_mmap64_works+set}" = set; then
9378   echo $ECHO_N "(cached) $ECHO_C" >&6
9379 else
9380   if test "$cross_compiling" = yes; then
9381   ac_cv_mmap64_works="no"
9382 else
9383   cat >conftest.$ac_ext <<_ACEOF
9384 #line $LINENO "configure"
9385 #include "confdefs.h"
9386
9387                 #define _FILE_OFFSET_BITS 64
9388                 #include <stdio.h>
9389                 #include <unistd.h>
9390                 #include <fcntl.h>
9391                 #include <sys/mman.h>
9392                 #include <errno.h>
9393
9394                 int main(int argc,char **argv) {
9395                         int fd = open("conftest.map",O_CREAT|O_RDWR,0600);
9396                         if (fd == -1) exit(1);
9397
9398                         unlink("conftest.map");
9399
9400                         write(fd,"test",4);
9401
9402                         if ((-1 == mmap(0,4,PROT_READ|PROT_WRITE,MAP_SHARED,fd,0)) &&
9403                             (errno == EINVAL)
9404                         ) {
9405                                 exit(1);
9406                         }
9407                         close(fd);
9408                         fprintf(stderr,"success!\n");
9409                         exit(0);
9410                 }
9411
9412
9413 _ACEOF
9414 rm -f conftest$ac_exeext
9415 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9416   (eval $ac_link) 2>&5
9417   ac_status=$?
9418   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9419   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9420   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9421   (eval $ac_try) 2>&5
9422   ac_status=$?
9423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9424   (exit $ac_status); }; }; then
9425   ac_cv_mmap64_works="yes"
9426 else
9427   echo "$as_me: program exited with status $ac_status" >&5
9428 echo "$as_me: failed program was:" >&5
9429 cat conftest.$ac_ext >&5
9430 ( exit $ac_status )
9431 ac_cv_mmap64_works="no"
9432 fi
9433 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9434 fi
9435 fi
9436 echo "$as_me:$LINENO: result: $ac_cv_mmap64_works" >&5
9437 echo "${ECHO_T}$ac_cv_mmap64_works" >&6
9438
9439 if test "$ac_cv_mmap64_works" = "yes"
9440 then
9441
9442 cat >>confdefs.h <<\_ACEOF
9443 #define _FILE_OFFSET_BITS 64
9444 _ACEOF
9445
9446 fi
9447
9448
9449 if test "x${GCC}" = "xyes"
9450 then
9451   CFLAGS="$CFLAGS -Wall"
9452   echo "$as_me:$LINENO: checking for gcc strength-reduce bug" >&5
9453 echo $ECHO_N "checking for gcc strength-reduce bug... $ECHO_C" >&6
9454 if test "${ac_cv_c_gcc_strength_bug+set}" = set; then
9455   echo $ECHO_N "(cached) $ECHO_C" >&6
9456 else
9457   if test "$cross_compiling" = yes; then
9458   ac_cv_c_gcc_strength_bug="yes"
9459 else
9460   cat >conftest.$ac_ext <<_ACEOF
9461 #line $LINENO "configure"
9462 #include "confdefs.h"
9463
9464 int     L[4] = {0,1,2,3};
9465 int main(void) {
9466   static int Array[3];
9467   unsigned int B = 3;
9468   int i;
9469   for(i=0; i<B; i++) Array[i] = i - 3;
9470   for(i=0; i<4 - 1; i++) L[i] = L[i + 1];
9471   L[i] = 4;
9472
9473   exit( Array[1] != -2 || L[2] != 3);
9474 }
9475 _ACEOF
9476 rm -f conftest$ac_exeext
9477 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9478   (eval $ac_link) 2>&5
9479   ac_status=$?
9480   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9481   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9482   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9483   (eval $ac_try) 2>&5
9484   ac_status=$?
9485   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9486   (exit $ac_status); }; }; then
9487   ac_cv_c_gcc_strength_bug="no"
9488 else
9489   echo "$as_me: program exited with status $ac_status" >&5
9490 echo "$as_me: failed program was:" >&5
9491 cat conftest.$ac_ext >&5
9492 ( exit $ac_status )
9493 ac_cv_c_gcc_strength_bug="yes"
9494 fi
9495 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9496 fi
9497 fi
9498 echo "$as_me:$LINENO: result: $ac_cv_c_gcc_strength_bug" >&5
9499 echo "${ECHO_T}$ac_cv_c_gcc_strength_bug" >&6
9500   if test "$ac_cv_c_gcc_strength_bug" = "yes"
9501   then
9502     CFLAGS="$CFLAGS -fno-strength-reduce"
9503   fi
9504
9505     echo "$as_me:$LINENO: checking for gcc -mpreferred-stack-boundary=2 support" >&5
9506 echo $ECHO_N "checking for gcc -mpreferred-stack-boundary=2 support... $ECHO_C" >&6
9507 if test "${ac_cv_c_gcc_stack_boundary+set}" = set; then
9508   echo $ECHO_N "(cached) $ECHO_C" >&6
9509 else
9510   ac_wine_try_cflags_saved=$CFLAGS
9511 CFLAGS="$CFLAGS -mpreferred-stack-boundary=2"
9512 cat >conftest.$ac_ext <<_ACEOF
9513 #line $LINENO "configure"
9514 #include "confdefs.h"
9515
9516 int
9517 main ()
9518 {
9519
9520   ;
9521   return 0;
9522 }
9523 _ACEOF
9524 rm -f conftest.$ac_objext conftest$ac_exeext
9525 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9526   (eval $ac_link) 2>&5
9527   ac_status=$?
9528   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9529   (exit $ac_status); } &&
9530          { ac_try='test -s conftest$ac_exeext'
9531   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9532   (eval $ac_try) 2>&5
9533   ac_status=$?
9534   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9535   (exit $ac_status); }; }; then
9536   ac_cv_c_gcc_stack_boundary="yes"
9537 else
9538   echo "$as_me: failed program was:" >&5
9539 cat conftest.$ac_ext >&5
9540 ac_cv_c_gcc_stack_boundary="no"
9541 fi
9542 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9543 CFLAGS=$ac_wine_try_cflags_saved
9544 fi
9545 echo "$as_me:$LINENO: result: $ac_cv_c_gcc_stack_boundary" >&5
9546 echo "${ECHO_T}$ac_cv_c_gcc_stack_boundary" >&6
9547   if test "$ac_cv_c_gcc_stack_boundary" = "yes"
9548   then
9549     CFLAGS="$CFLAGS -mpreferred-stack-boundary=2"
9550   fi
9551 fi
9552
9553
9554 echo "$as_me:$LINENO: checking how to define a function in assembly code" >&5
9555 echo $ECHO_N "checking how to define a function in assembly code... $ECHO_C" >&6
9556 if test "${ac_cv_asm_func_def+set}" = set; then
9557   echo $ECHO_N "(cached) $ECHO_C" >&6
9558 else
9559   cat >conftest.$ac_ext <<_ACEOF
9560 #line $LINENO "configure"
9561 #include "confdefs.h"
9562 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"); }
9563
9564 int
9565 main ()
9566 {
9567
9568   ;
9569   return 0;
9570 }
9571 _ACEOF
9572 rm -f conftest.$ac_objext conftest$ac_exeext
9573 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9574   (eval $ac_link) 2>&5
9575   ac_status=$?
9576   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9577   (exit $ac_status); } &&
9578          { ac_try='test -s conftest$ac_exeext'
9579   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9580   (eval $ac_try) 2>&5
9581   ac_status=$?
9582   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9583   (exit $ac_status); }; }; then
9584   ac_cv_asm_func_def=".def"
9585 else
9586   echo "$as_me: failed program was:" >&5
9587 cat conftest.$ac_ext >&5
9588 cat >conftest.$ac_ext <<_ACEOF
9589 #line $LINENO "configure"
9590 #include "confdefs.h"
9591 void ac_asm(void) { asm("\t.globl _ac_test\n\t.type _ac_test,@function\n_ac_test:\t.long 0"); }
9592
9593 int
9594 main ()
9595 {
9596
9597   ;
9598   return 0;
9599 }
9600 _ACEOF
9601 rm -f conftest.$ac_objext conftest$ac_exeext
9602 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9603   (eval $ac_link) 2>&5
9604   ac_status=$?
9605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9606   (exit $ac_status); } &&
9607          { ac_try='test -s conftest$ac_exeext'
9608   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9609   (eval $ac_try) 2>&5
9610   ac_status=$?
9611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9612   (exit $ac_status); }; }; then
9613   ac_cv_asm_func_def=".type @function"
9614 else
9615   echo "$as_me: failed program was:" >&5
9616 cat conftest.$ac_ext >&5
9617 cat >conftest.$ac_ext <<_ACEOF
9618 #line $LINENO "configure"
9619 #include "confdefs.h"
9620 void ac_asm(void) { asm("\t.globl _ac_test\n\t.type _ac_test,2\n_ac_test:\t.long 0"); }
9621
9622 int
9623 main ()
9624 {
9625
9626   ;
9627   return 0;
9628 }
9629 _ACEOF
9630 rm -f conftest.$ac_objext conftest$ac_exeext
9631 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9632   (eval $ac_link) 2>&5
9633   ac_status=$?
9634   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9635   (exit $ac_status); } &&
9636          { ac_try='test -s conftest$ac_exeext'
9637   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9638   (eval $ac_try) 2>&5
9639   ac_status=$?
9640   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9641   (exit $ac_status); }; }; then
9642   ac_cv_asm_func_def=".type 2"
9643 else
9644   echo "$as_me: failed program was:" >&5
9645 cat conftest.$ac_ext >&5
9646 ac_cv_asm_func_def="unknown"
9647 fi
9648 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9649 fi
9650 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9651 fi
9652 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9653 fi
9654 echo "$as_me:$LINENO: result: $ac_cv_asm_func_def" >&5
9655 echo "${ECHO_T}$ac_cv_asm_func_def" >&6
9656
9657
9658
9659 case "$ac_cv_asm_func_def" in
9660   ".def")
9661      cat >>confdefs.h <<\_ACEOF
9662 #define __ASM_FUNC(name) ".def " __ASM_NAME(name) "; .scl 2; .type 32; .endef"
9663 _ACEOF
9664  ;;
9665   ".type @function")
9666      cat >>confdefs.h <<\_ACEOF
9667 #define __ASM_FUNC(name) ".type " __ASM_NAME(name) ",@function"
9668 _ACEOF
9669  ;;
9670   ".type 2")
9671      cat >>confdefs.h <<\_ACEOF
9672 #define __ASM_FUNC(name) ".type " __ASM_NAME(name) ",2"
9673 _ACEOF
9674  ;;
9675   *)
9676      cat >>confdefs.h <<\_ACEOF
9677 #define __ASM_FUNC(name) ""
9678 _ACEOF
9679  ;;
9680 esac
9681
9682
9683 echo "$as_me:$LINENO: checking whether external symbols need an underscore prefix" >&5
9684 echo $ECHO_N "checking whether external symbols need an underscore prefix... $ECHO_C" >&6
9685 if test "${ac_cv_c_extern_prefix+set}" = set; then
9686   echo $ECHO_N "(cached) $ECHO_C" >&6
9687 else
9688   cat >conftest.$ac_ext <<_ACEOF
9689 #line $LINENO "configure"
9690 #include "confdefs.h"
9691 void ac_asm(void) { asm(".globl _ac_test\n_ac_test:\t.long 0"); }
9692 extern int ac_test;
9693 int
9694 main ()
9695 {
9696 if (ac_test) return 1
9697   ;
9698   return 0;
9699 }
9700 _ACEOF
9701 rm -f conftest.$ac_objext conftest$ac_exeext
9702 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9703   (eval $ac_link) 2>&5
9704   ac_status=$?
9705   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9706   (exit $ac_status); } &&
9707          { ac_try='test -s conftest$ac_exeext'
9708   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9709   (eval $ac_try) 2>&5
9710   ac_status=$?
9711   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9712   (exit $ac_status); }; }; then
9713   ac_cv_c_extern_prefix="yes"
9714 else
9715   echo "$as_me: failed program was:" >&5
9716 cat conftest.$ac_ext >&5
9717 ac_cv_c_extern_prefix="no"
9718 fi
9719 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9720 fi
9721 echo "$as_me:$LINENO: result: $ac_cv_c_extern_prefix" >&5
9722 echo "${ECHO_T}$ac_cv_c_extern_prefix" >&6
9723
9724
9725
9726 if test "$ac_cv_c_extern_prefix" = "yes"
9727 then
9728   cat >>confdefs.h <<\_ACEOF
9729 #define __ASM_NAME(name) "_" name
9730 _ACEOF
9731
9732 else
9733   cat >>confdefs.h <<\_ACEOF
9734 #define __ASM_NAME(name) name
9735 _ACEOF
9736
9737 fi
9738
9739
9740 echo "$as_me:$LINENO: checking whether stdcall symbols need to be decorated" >&5
9741 echo $ECHO_N "checking whether stdcall symbols need to be decorated... $ECHO_C" >&6
9742 if test "${ac_cv_c_stdcall_decoration+set}" = set; then
9743   echo $ECHO_N "(cached) $ECHO_C" >&6
9744 else
9745   cat >conftest.$ac_ext <<_ACEOF
9746 #line $LINENO "configure"
9747 #include "confdefs.h"
9748 void ac_asm(void) { asm("\t.globl _ac_test@0\n_ac_test@0:\n\t.globl ac_test@0\nac_test@0:"); }
9749 extern void __attribute__((__stdcall__)) ac_test(void);
9750 int
9751 main ()
9752 {
9753 ac_test()
9754   ;
9755   return 0;
9756 }
9757 _ACEOF
9758 rm -f conftest.$ac_objext conftest$ac_exeext
9759 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9760   (eval $ac_link) 2>&5
9761   ac_status=$?
9762   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9763   (exit $ac_status); } &&
9764          { ac_try='test -s conftest$ac_exeext'
9765   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9766   (eval $ac_try) 2>&5
9767   ac_status=$?
9768   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9769   (exit $ac_status); }; }; then
9770   ac_cv_c_stdcall_decoration="yes"
9771 else
9772   echo "$as_me: failed program was:" >&5
9773 cat conftest.$ac_ext >&5
9774 ac_cv_c_stdcall_decoration="no"
9775 fi
9776 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9777 fi
9778 echo "$as_me:$LINENO: result: $ac_cv_c_stdcall_decoration" >&5
9779 echo "${ECHO_T}$ac_cv_c_stdcall_decoration" >&6
9780 if test "$ac_cv_c_stdcall_decoration" = "yes"
9781 then
9782
9783 cat >>confdefs.h <<\_ACEOF
9784 #define NEED_STDCALL_DECORATION 1
9785 _ACEOF
9786
9787 fi
9788
9789
9790 echo "$as_me:$LINENO: checking whether assembler accepts .string" >&5
9791 echo $ECHO_N "checking whether assembler accepts .string... $ECHO_C" >&6
9792 if test "${ac_cv_c_asm_string+set}" = set; then
9793   echo $ECHO_N "(cached) $ECHO_C" >&6
9794 else
9795   cat >conftest.$ac_ext <<_ACEOF
9796 #line $LINENO "configure"
9797 #include "confdefs.h"
9798 void ac_asm(void) { asm(".data\n\t.string \"test\"\n\t.text"); }
9799
9800 int
9801 main ()
9802 {
9803
9804   ;
9805   return 0;
9806 }
9807 _ACEOF
9808 rm -f conftest.$ac_objext conftest$ac_exeext
9809 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9810   (eval $ac_link) 2>&5
9811   ac_status=$?
9812   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9813   (exit $ac_status); } &&
9814          { ac_try='test -s conftest$ac_exeext'
9815   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9816   (eval $ac_try) 2>&5
9817   ac_status=$?
9818   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9819   (exit $ac_status); }; }; then
9820   ac_cv_c_asm_string="yes"
9821 else
9822   echo "$as_me: failed program was:" >&5
9823 cat conftest.$ac_ext >&5
9824 ac_cv_c_asm_string="no"
9825 fi
9826 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9827 fi
9828 echo "$as_me:$LINENO: result: $ac_cv_c_asm_string" >&5
9829 echo "${ECHO_T}$ac_cv_c_asm_string" >&6
9830 if test "$ac_cv_c_asm_string" = "yes"
9831 then
9832
9833 cat >>confdefs.h <<\_ACEOF
9834 #define HAVE_ASM_STRING 1
9835 _ACEOF
9836
9837 fi
9838
9839
9840 DLLEXT=""
9841
9842 DLLFLAGS=""
9843
9844 DLLIBS=""
9845
9846 LDDLLFLAGS=""
9847
9848 LDSHARED=""
9849
9850
9851 case $host_os in
9852   cygwin*|mingw32*)
9853     if test -n "$ac_tool_prefix"; then
9854   # Extract the first word of "${ac_tool_prefix}dllwrap", so it can be a program name with args.
9855 set dummy ${ac_tool_prefix}dllwrap; ac_word=$2
9856 echo "$as_me:$LINENO: checking for $ac_word" >&5
9857 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9858 if test "${ac_cv_prog_DLLWRAP+set}" = set; then
9859   echo $ECHO_N "(cached) $ECHO_C" >&6
9860 else
9861   if test -n "$DLLWRAP"; then
9862   ac_cv_prog_DLLWRAP="$DLLWRAP" # Let the user override the test.
9863 else
9864 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9865 for as_dir in $PATH
9866 do
9867   IFS=$as_save_IFS
9868   test -z "$as_dir" && as_dir=.
9869   for ac_exec_ext in '' $ac_executable_extensions; do
9870   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9871     ac_cv_prog_DLLWRAP="${ac_tool_prefix}dllwrap"
9872     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9873     break 2
9874   fi
9875 done
9876 done
9877
9878 fi
9879 fi
9880 DLLWRAP=$ac_cv_prog_DLLWRAP
9881 if test -n "$DLLWRAP"; then
9882   echo "$as_me:$LINENO: result: $DLLWRAP" >&5
9883 echo "${ECHO_T}$DLLWRAP" >&6
9884 else
9885   echo "$as_me:$LINENO: result: no" >&5
9886 echo "${ECHO_T}no" >&6
9887 fi
9888
9889 fi
9890 if test -z "$ac_cv_prog_DLLWRAP"; then
9891   ac_ct_DLLWRAP=$DLLWRAP
9892   # Extract the first word of "dllwrap", so it can be a program name with args.
9893 set dummy dllwrap; ac_word=$2
9894 echo "$as_me:$LINENO: checking for $ac_word" >&5
9895 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9896 if test "${ac_cv_prog_ac_ct_DLLWRAP+set}" = set; then
9897   echo $ECHO_N "(cached) $ECHO_C" >&6
9898 else
9899   if test -n "$ac_ct_DLLWRAP"; then
9900   ac_cv_prog_ac_ct_DLLWRAP="$ac_ct_DLLWRAP" # Let the user override the test.
9901 else
9902 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9903 for as_dir in $PATH
9904 do
9905   IFS=$as_save_IFS
9906   test -z "$as_dir" && as_dir=.
9907   for ac_exec_ext in '' $ac_executable_extensions; do
9908   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9909     ac_cv_prog_ac_ct_DLLWRAP="dllwrap"
9910     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9911     break 2
9912   fi
9913 done
9914 done
9915
9916   test -z "$ac_cv_prog_ac_ct_DLLWRAP" && ac_cv_prog_ac_ct_DLLWRAP="false"
9917 fi
9918 fi
9919 ac_ct_DLLWRAP=$ac_cv_prog_ac_ct_DLLWRAP
9920 if test -n "$ac_ct_DLLWRAP"; then
9921   echo "$as_me:$LINENO: result: $ac_ct_DLLWRAP" >&5
9922 echo "${ECHO_T}$ac_ct_DLLWRAP" >&6
9923 else
9924   echo "$as_me:$LINENO: result: no" >&5
9925 echo "${ECHO_T}no" >&6
9926 fi
9927
9928   DLLWRAP=$ac_ct_DLLWRAP
9929 else
9930   DLLWRAP="$ac_cv_prog_DLLWRAP"
9931 fi
9932
9933     if test "$DLLWRAP" = "false"; then
9934       LIBEXT="a"
9935     else
9936             LIBEXT="dll"
9937     fi
9938     ;;
9939   *)
9940
9941 for ac_header in dlfcn.h
9942 do
9943 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9944 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9945   echo "$as_me:$LINENO: checking for $ac_header" >&5
9946 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9947 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9948   echo $ECHO_N "(cached) $ECHO_C" >&6
9949 fi
9950 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9951 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9952 else
9953   # Is the header compilable?
9954 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9955 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9956 cat >conftest.$ac_ext <<_ACEOF
9957 #line $LINENO "configure"
9958 #include "confdefs.h"
9959 $ac_includes_default
9960 #include <$ac_header>
9961 _ACEOF
9962 rm -f conftest.$ac_objext
9963 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9964   (eval $ac_compile) 2>&5
9965   ac_status=$?
9966   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9967   (exit $ac_status); } &&
9968          { ac_try='test -s conftest.$ac_objext'
9969   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9970   (eval $ac_try) 2>&5
9971   ac_status=$?
9972   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9973   (exit $ac_status); }; }; then
9974   ac_header_compiler=yes
9975 else
9976   echo "$as_me: failed program was:" >&5
9977 cat conftest.$ac_ext >&5
9978 ac_header_compiler=no
9979 fi
9980 rm -f conftest.$ac_objext conftest.$ac_ext
9981 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9982 echo "${ECHO_T}$ac_header_compiler" >&6
9983
9984 # Is the header present?
9985 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9986 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9987 cat >conftest.$ac_ext <<_ACEOF
9988 #line $LINENO "configure"
9989 #include "confdefs.h"
9990 #include <$ac_header>
9991 _ACEOF
9992 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9993   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9994   ac_status=$?
9995   grep -v '^ *+' conftest.er1 >conftest.err
9996   rm -f conftest.er1
9997   cat conftest.err >&5
9998   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9999   (exit $ac_status); } >/dev/null; then
10000   if test -s conftest.err; then
10001     ac_cpp_err=$ac_c_preproc_warn_flag
10002   else
10003     ac_cpp_err=
10004   fi
10005 else
10006   ac_cpp_err=yes
10007 fi
10008 if test -z "$ac_cpp_err"; then
10009   ac_header_preproc=yes
10010 else
10011   echo "$as_me: failed program was:" >&5
10012   cat conftest.$ac_ext >&5
10013   ac_header_preproc=no
10014 fi
10015 rm -f conftest.err conftest.$ac_ext
10016 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10017 echo "${ECHO_T}$ac_header_preproc" >&6
10018
10019 # So?  What about this header?
10020 case $ac_header_compiler:$ac_header_preproc in
10021   yes:no )
10022     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10023 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10024     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10025 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
10026   no:yes )
10027     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10028 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10029     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10030 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10031     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10032 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
10033 esac
10034 echo "$as_me:$LINENO: checking for $ac_header" >&5
10035 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10036 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10037   echo $ECHO_N "(cached) $ECHO_C" >&6
10038 else
10039   eval "$as_ac_Header=$ac_header_preproc"
10040 fi
10041 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10042 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10043
10044 fi
10045 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10046   cat >>confdefs.h <<_ACEOF
10047 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10048 _ACEOF
10049
10050 for ac_func in dlopen
10051 do
10052 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10053 echo "$as_me:$LINENO: checking for $ac_func" >&5
10054 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10055 if eval "test \"\${$as_ac_var+set}\" = set"; then
10056   echo $ECHO_N "(cached) $ECHO_C" >&6
10057 else
10058   cat >conftest.$ac_ext <<_ACEOF
10059 #line $LINENO "configure"
10060 #include "confdefs.h"
10061 /* System header to define __stub macros and hopefully few prototypes,
10062     which can conflict with char $ac_func (); below.  */
10063 #include <assert.h>
10064 /* Override any gcc2 internal prototype to avoid an error.  */
10065 #ifdef __cplusplus
10066 extern "C"
10067 #endif
10068 /* We use char because int might match the return type of a gcc2
10069    builtin and then its argument prototype would still apply.  */
10070 char $ac_func ();
10071 char (*f) ();
10072
10073 int
10074 main ()
10075 {
10076 /* The GNU C library defines this for functions which it implements
10077     to always fail with ENOSYS.  Some functions are actually named
10078     something starting with __ and the normal name is an alias.  */
10079 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10080 choke me
10081 #else
10082 f = $ac_func;
10083 #endif
10084
10085   ;
10086   return 0;
10087 }
10088 _ACEOF
10089 rm -f conftest.$ac_objext conftest$ac_exeext
10090 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10091   (eval $ac_link) 2>&5
10092   ac_status=$?
10093   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10094   (exit $ac_status); } &&
10095          { ac_try='test -s conftest$ac_exeext'
10096   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10097   (eval $ac_try) 2>&5
10098   ac_status=$?
10099   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10100   (exit $ac_status); }; }; then
10101   eval "$as_ac_var=yes"
10102 else
10103   echo "$as_me: failed program was:" >&5
10104 cat conftest.$ac_ext >&5
10105 eval "$as_ac_var=no"
10106 fi
10107 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10108 fi
10109 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10110 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10111 if test `eval echo '${'$as_ac_var'}'` = yes; then
10112   cat >>confdefs.h <<_ACEOF
10113 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10114 _ACEOF
10115
10116 else
10117   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10118 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
10119 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10120   echo $ECHO_N "(cached) $ECHO_C" >&6
10121 else
10122   ac_check_lib_save_LIBS=$LIBS
10123 LIBS="-ldl  $LIBS"
10124 cat >conftest.$ac_ext <<_ACEOF
10125 #line $LINENO "configure"
10126 #include "confdefs.h"
10127
10128 /* Override any gcc2 internal prototype to avoid an error.  */
10129 #ifdef __cplusplus
10130 extern "C"
10131 #endif
10132 /* We use char because int might match the return type of a gcc2
10133    builtin and then its argument prototype would still apply.  */
10134 char dlopen ();
10135 int
10136 main ()
10137 {
10138 dlopen ();
10139   ;
10140   return 0;
10141 }
10142 _ACEOF
10143 rm -f conftest.$ac_objext conftest$ac_exeext
10144 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10145   (eval $ac_link) 2>&5
10146   ac_status=$?
10147   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10148   (exit $ac_status); } &&
10149          { ac_try='test -s conftest$ac_exeext'
10150   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10151   (eval $ac_try) 2>&5
10152   ac_status=$?
10153   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10154   (exit $ac_status); }; }; then
10155   ac_cv_lib_dl_dlopen=yes
10156 else
10157   echo "$as_me: failed program was:" >&5
10158 cat conftest.$ac_ext >&5
10159 ac_cv_lib_dl_dlopen=no
10160 fi
10161 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10162 LIBS=$ac_check_lib_save_LIBS
10163 fi
10164 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10165 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10166 if test $ac_cv_lib_dl_dlopen = yes; then
10167
10168 cat >>confdefs.h <<\_ACEOF
10169 #define HAVE_DLOPEN 1
10170 _ACEOF
10171
10172                           DLLIBS="-ldl"
10173 else
10174   LIBEXT="a"
10175 fi
10176
10177 fi
10178 done
10179
10180 else
10181   LIBEXT="a"
10182 fi
10183
10184 done
10185
10186
10187     if test "$LIBEXT" = "so"
10188     then
10189       DLLFLAGS="-fPIC"
10190       DLLEXT=".so"
10191       echo "$as_me:$LINENO: checking whether we can build a GNU style ELF dll" >&5
10192 echo $ECHO_N "checking whether we can build a GNU style ELF dll... $ECHO_C" >&6
10193 if test "${ac_cv_c_dll_gnuelf+set}" = set; then
10194   echo $ECHO_N "(cached) $ECHO_C" >&6
10195 else
10196   ac_wine_try_cflags_saved=$CFLAGS
10197 CFLAGS="$CFLAGS -fPIC -shared -Wl,-soname,conftest.so.1.0,-Bsymbolic"
10198 cat >conftest.$ac_ext <<_ACEOF
10199 #line $LINENO "configure"
10200 #include "confdefs.h"
10201
10202 int
10203 main ()
10204 {
10205
10206   ;
10207   return 0;
10208 }
10209 _ACEOF
10210 rm -f conftest.$ac_objext conftest$ac_exeext
10211 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10212   (eval $ac_link) 2>&5
10213   ac_status=$?
10214   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10215   (exit $ac_status); } &&
10216          { ac_try='test -s conftest$ac_exeext'
10217   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10218   (eval $ac_try) 2>&5
10219   ac_status=$?
10220   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10221   (exit $ac_status); }; }; then
10222   ac_cv_c_dll_gnuelf="yes"
10223 else
10224   echo "$as_me: failed program was:" >&5
10225 cat conftest.$ac_ext >&5
10226 ac_cv_c_dll_gnuelf="no"
10227 fi
10228 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10229 CFLAGS=$ac_wine_try_cflags_saved
10230 fi
10231 echo "$as_me:$LINENO: result: $ac_cv_c_dll_gnuelf" >&5
10232 echo "${ECHO_T}$ac_cv_c_dll_gnuelf" >&6
10233       if test "$ac_cv_c_dll_gnuelf" = "yes"
10234       then
10235         LDSHARED="\$(CC) -shared \$(SONAME:%=-Wl,-soname,%)"
10236         LDDLLFLAGS="-Wl,-Bsymbolic"
10237         echo "$as_me:$LINENO: checking whether the linker accepts -z defs" >&5
10238 echo $ECHO_N "checking whether the linker accepts -z defs... $ECHO_C" >&6
10239 if test "${ac_cv_c_dll_zdefs+set}" = set; then
10240   echo $ECHO_N "(cached) $ECHO_C" >&6
10241 else
10242   ac_wine_try_cflags_saved=$CFLAGS
10243 CFLAGS="$CFLAGS -fPIC -shared -Wl,-Bsymbolic,-z,defs"
10244 cat >conftest.$ac_ext <<_ACEOF
10245 #line $LINENO "configure"
10246 #include "confdefs.h"
10247
10248 int
10249 main ()
10250 {
10251
10252   ;
10253   return 0;
10254 }
10255 _ACEOF
10256 rm -f conftest.$ac_objext conftest$ac_exeext
10257 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10258   (eval $ac_link) 2>&5
10259   ac_status=$?
10260   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10261   (exit $ac_status); } &&
10262          { ac_try='test -s conftest$ac_exeext'
10263   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10264   (eval $ac_try) 2>&5
10265   ac_status=$?
10266   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10267   (exit $ac_status); }; }; then
10268   ac_cv_c_dll_zdefs="yes"
10269 else
10270   echo "$as_me: failed program was:" >&5
10271 cat conftest.$ac_ext >&5
10272 ac_cv_c_dll_zdefs="no"
10273 fi
10274 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10275 CFLAGS=$ac_wine_try_cflags_saved
10276 fi
10277 echo "$as_me:$LINENO: result: $ac_cv_c_dll_zdefs" >&5
10278 echo "${ECHO_T}$ac_cv_c_dll_zdefs" >&6
10279         if test "$ac_cv_c_dll_zdefs" = "yes"
10280         then
10281           LDDLLFLAGS="$LDDLLFLAGS,-z,defs"
10282         fi
10283       else
10284         echo "$as_me:$LINENO: checking whether we can build a UnixWare (Solaris) dll" >&5
10285 echo $ECHO_N "checking whether we can build a UnixWare (Solaris) dll... $ECHO_C" >&6
10286 if test "${ac_cv_c_dll_unixware+set}" = set; then
10287   echo $ECHO_N "(cached) $ECHO_C" >&6
10288 else
10289   ac_wine_try_cflags_saved=$CFLAGS
10290 CFLAGS="$CFLAGS -fPIC -Wl,-G,-h,conftest.so.1.0,-B,symbolic"
10291 cat >conftest.$ac_ext <<_ACEOF
10292 #line $LINENO "configure"
10293 #include "confdefs.h"
10294
10295 int
10296 main ()
10297 {
10298
10299   ;
10300   return 0;
10301 }
10302 _ACEOF
10303 rm -f conftest.$ac_objext conftest$ac_exeext
10304 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10305   (eval $ac_link) 2>&5
10306   ac_status=$?
10307   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10308   (exit $ac_status); } &&
10309          { ac_try='test -s conftest$ac_exeext'
10310   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10311   (eval $ac_try) 2>&5
10312   ac_status=$?
10313   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10314   (exit $ac_status); }; }; then
10315   ac_cv_c_dll_unixware="yes"
10316 else
10317   echo "$as_me: failed program was:" >&5
10318 cat conftest.$ac_ext >&5
10319 ac_cv_c_dll_unixware="no"
10320 fi
10321 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10322 CFLAGS=$ac_wine_try_cflags_saved
10323 fi
10324 echo "$as_me:$LINENO: result: $ac_cv_c_dll_unixware" >&5
10325 echo "${ECHO_T}$ac_cv_c_dll_unixware" >&6
10326         if test "$ac_cv_c_dll_unixware" = "yes"
10327         then
10328           LDSHARED="\$(CC) -Wl,-G \$(SONAME:%=-Wl,-h,%)"
10329           LDDLLFLAGS="-Wl,-B,symbolic"
10330         fi
10331       fi
10332     fi
10333
10334         CROSSTEST=""
10335
10336     if test "$cross_compiling" = "no"
10337     then
10338       for ac_prog in i586-mingw32msvc-gcc
10339 do
10340   # Extract the first word of "$ac_prog", so it can be a program name with args.
10341 set dummy $ac_prog; ac_word=$2
10342 echo "$as_me:$LINENO: checking for $ac_word" >&5
10343 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10344 if test "${ac_cv_prog_CROSSCC+set}" = set; then
10345   echo $ECHO_N "(cached) $ECHO_C" >&6
10346 else
10347   if test -n "$CROSSCC"; then
10348   ac_cv_prog_CROSSCC="$CROSSCC" # Let the user override the test.
10349 else
10350 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10351 for as_dir in $PATH
10352 do
10353   IFS=$as_save_IFS
10354   test -z "$as_dir" && as_dir=.
10355   for ac_exec_ext in '' $ac_executable_extensions; do
10356   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10357     ac_cv_prog_CROSSCC="$ac_prog"
10358     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10359     break 2
10360   fi
10361 done
10362 done
10363
10364 fi
10365 fi
10366 CROSSCC=$ac_cv_prog_CROSSCC
10367 if test -n "$CROSSCC"; then
10368   echo "$as_me:$LINENO: result: $CROSSCC" >&5
10369 echo "${ECHO_T}$CROSSCC" >&6
10370 else
10371   echo "$as_me:$LINENO: result: no" >&5
10372 echo "${ECHO_T}no" >&6
10373 fi
10374
10375   test -n "$CROSSCC" && break
10376 done
10377 test -n "$CROSSCC" || CROSSCC="false"
10378
10379       for ac_prog in i586-mingw32msvc-dlltool
10380 do
10381   # Extract the first word of "$ac_prog", so it can be a program name with args.
10382 set dummy $ac_prog; ac_word=$2
10383 echo "$as_me:$LINENO: checking for $ac_word" >&5
10384 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10385 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
10386   echo $ECHO_N "(cached) $ECHO_C" >&6
10387 else
10388   if test -n "$DLLTOOL"; then
10389   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
10390 else
10391 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10392 for as_dir in $PATH
10393 do
10394   IFS=$as_save_IFS
10395   test -z "$as_dir" && as_dir=.
10396   for ac_exec_ext in '' $ac_executable_extensions; do
10397   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10398     ac_cv_prog_DLLTOOL="$ac_prog"
10399     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10400     break 2
10401   fi
10402 done
10403 done
10404
10405 fi
10406 fi
10407 DLLTOOL=$ac_cv_prog_DLLTOOL
10408 if test -n "$DLLTOOL"; then
10409   echo "$as_me:$LINENO: result: $DLLTOOL" >&5
10410 echo "${ECHO_T}$DLLTOOL" >&6
10411 else
10412   echo "$as_me:$LINENO: result: no" >&5
10413 echo "${ECHO_T}no" >&6
10414 fi
10415
10416   test -n "$DLLTOOL" && break
10417 done
10418 test -n "$DLLTOOL" || DLLTOOL="false"
10419
10420       if test "$CROSSCC" != "false"; then CROSSTEST="\$(CROSSTEST)"; fi
10421     fi
10422     ;;
10423 esac
10424
10425 if test "$LIBEXT" = "a"; then
10426   { { echo "$as_me:$LINENO: error: could not find a way to build shared libraries.
10427 It is currently not possible to build Wine without shared library
10428 (.so) support to allow transparent switch between .so and .dll files.
10429 If you are using Linux, you will need a newer binutils.
10430 " >&5
10431 echo "$as_me: error: could not find a way to build shared libraries.
10432 It is currently not possible to build Wine without shared library
10433 (.so) support to allow transparent switch between .so and .dll files.
10434 If you are using Linux, you will need a newer binutils.
10435 " >&2;}
10436    { (exit 1); exit 1; }; }
10437 fi
10438
10439 case $build_os in
10440   cygwin*|mingw32*)
10441     LDPATH="PATH=\"\$(TOOLSDIR)/library:\$(TOOLSDIR)/unicode:\$\$PATH\""
10442  ;;
10443   *)
10444     LDPATH="LD_LIBRARY_PATH=\"\$(TOOLSDIR)/library:\$(TOOLSDIR)/unicode:\$\$LD_LIBRARY_PATH\""
10445  ;;
10446 esac
10447
10448 CRTLIBS=""
10449
10450 case $host_os in
10451   mingw32*)
10452     CRTLIBS="-lmsvcrt" ;;
10453 esac
10454
10455
10456 if test "$LIBEXT" = "so"
10457 then
10458   # Extract the first word of "ldd", so it can be a program name with args.
10459 set dummy ldd; ac_word=$2
10460 echo "$as_me:$LINENO: checking for $ac_word" >&5
10461 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10462 if test "${ac_cv_path_LDD+set}" = set; then
10463   echo $ECHO_N "(cached) $ECHO_C" >&6
10464 else
10465   case $LDD in
10466   [\\/]* | ?:[\\/]*)
10467   ac_cv_path_LDD="$LDD" # Let the user override the test with a path.
10468   ;;
10469   *)
10470   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10471 as_dummy="/sbin:/usr/sbin:$PATH"
10472 for as_dir in $as_dummy
10473 do
10474   IFS=$as_save_IFS
10475   test -z "$as_dir" && as_dir=.
10476   for ac_exec_ext in '' $ac_executable_extensions; do
10477   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10478     ac_cv_path_LDD="$as_dir/$ac_word$ac_exec_ext"
10479     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10480     break 2
10481   fi
10482 done
10483 done
10484
10485   test -z "$ac_cv_path_LDD" && ac_cv_path_LDD="true"
10486   ;;
10487 esac
10488 fi
10489 LDD=$ac_cv_path_LDD
10490
10491 if test -n "$LDD"; then
10492   echo "$as_me:$LINENO: result: $LDD" >&5
10493 echo "${ECHO_T}$LDD" >&6
10494 else
10495   echo "$as_me:$LINENO: result: no" >&5
10496 echo "${ECHO_T}no" >&6
10497 fi
10498
10499
10500 echo "$as_me:$LINENO: checking for -lX11 soname" >&5
10501 echo $ECHO_N "checking for -lX11 soname... $ECHO_C" >&6
10502 if test "${ac_cv_lib_soname_X11+set}" = set; then
10503   echo $ECHO_N "(cached) $ECHO_C" >&6
10504 else
10505   ac_get_soname_save_LIBS=$LIBS
10506 LIBS="-lX11 $X_LIBS $X_EXTRA_LIBS $LIBS"
10507   cat >conftest.$ac_ext <<_ACEOF
10508 #line $LINENO "configure"
10509 #include "confdefs.h"
10510
10511 /* Override any gcc2 internal prototype to avoid an error.  */
10512 #ifdef __cplusplus
10513 extern "C"
10514 #endif
10515 /* We use char because int might match the return type of a gcc2
10516    builtin and then its argument prototype would still apply.  */
10517 char XCreateWindow ();
10518 int
10519 main ()
10520 {
10521 XCreateWindow ();
10522   ;
10523   return 0;
10524 }
10525 _ACEOF
10526 rm -f conftest.$ac_objext conftest$ac_exeext
10527 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10528   (eval $ac_link) 2>&5
10529   ac_status=$?
10530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10531   (exit $ac_status); } &&
10532          { ac_try='test -s conftest$ac_exeext'
10533   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10534   (eval $ac_try) 2>&5
10535   ac_status=$?
10536   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10537   (exit $ac_status); }; }; then
10538   ac_cv_lib_soname_X11=`$ac_cv_path_LDD conftest$ac_exeext | grep libX11\\.so | sed 's/^[       ]*\([^  ]*\)[   ]*=>.*$/\1/'`
10539   if test "x$ac_cv_lib_soname_X11" = "x"
10540   then
10541      ac_cv_lib_soname_X11="libX11.so"
10542   fi
10543 else
10544   echo "$as_me: failed program was:" >&5
10545 cat conftest.$ac_ext >&5
10546 ac_cv_lib_soname_X11="libX11.so"
10547 fi
10548 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10549   LIBS=$ac_get_soname_save_LIBS
10550 fi
10551 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_X11" >&5
10552 echo "${ECHO_T}$ac_cv_lib_soname_X11" >&6
10553 if test "x$ac_cv_lib_soname_X11" != xNONE
10554 then
10555 cat >>confdefs.h <<_ACEOF
10556 #define SONAME_LIBX11 "$ac_cv_lib_soname_X11"
10557 _ACEOF
10558 fi
10559
10560 echo "$as_me:$LINENO: checking for -lXext soname" >&5
10561 echo $ECHO_N "checking for -lXext soname... $ECHO_C" >&6
10562 if test "${ac_cv_lib_soname_Xext+set}" = set; then
10563   echo $ECHO_N "(cached) $ECHO_C" >&6
10564 else
10565   ac_get_soname_save_LIBS=$LIBS
10566 LIBS="-lXext $X_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
10567   cat >conftest.$ac_ext <<_ACEOF
10568 #line $LINENO "configure"
10569 #include "confdefs.h"
10570
10571 /* Override any gcc2 internal prototype to avoid an error.  */
10572 #ifdef __cplusplus
10573 extern "C"
10574 #endif
10575 /* We use char because int might match the return type of a gcc2
10576    builtin and then its argument prototype would still apply.  */
10577 char XextCreateExtension ();
10578 int
10579 main ()
10580 {
10581 XextCreateExtension ();
10582   ;
10583   return 0;
10584 }
10585 _ACEOF
10586 rm -f conftest.$ac_objext conftest$ac_exeext
10587 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10588   (eval $ac_link) 2>&5
10589   ac_status=$?
10590   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10591   (exit $ac_status); } &&
10592          { ac_try='test -s conftest$ac_exeext'
10593   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10594   (eval $ac_try) 2>&5
10595   ac_status=$?
10596   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10597   (exit $ac_status); }; }; then
10598   ac_cv_lib_soname_Xext=`$ac_cv_path_LDD conftest$ac_exeext | grep libXext\\.so | sed 's/^[     ]*\([^  ]*\)[   ]*=>.*$/\1/'`
10599   if test "x$ac_cv_lib_soname_Xext" = "x"
10600   then
10601      ac_cv_lib_soname_Xext="libXext.so"
10602   fi
10603 else
10604   echo "$as_me: failed program was:" >&5
10605 cat conftest.$ac_ext >&5
10606 ac_cv_lib_soname_Xext="libXext.so"
10607 fi
10608 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10609   LIBS=$ac_get_soname_save_LIBS
10610 fi
10611 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_Xext" >&5
10612 echo "${ECHO_T}$ac_cv_lib_soname_Xext" >&6
10613 if test "x$ac_cv_lib_soname_Xext" != xNONE
10614 then
10615 cat >>confdefs.h <<_ACEOF
10616 #define SONAME_LIBXEXT "$ac_cv_lib_soname_Xext"
10617 _ACEOF
10618 fi
10619
10620 echo "$as_me:$LINENO: checking for -lXrender soname" >&5
10621 echo $ECHO_N "checking for -lXrender soname... $ECHO_C" >&6
10622 if test "${ac_cv_lib_soname_Xrender+set}" = set; then
10623   echo $ECHO_N "(cached) $ECHO_C" >&6
10624 else
10625   ac_get_soname_save_LIBS=$LIBS
10626 LIBS="-lXrender $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
10627   cat >conftest.$ac_ext <<_ACEOF
10628 #line $LINENO "configure"
10629 #include "confdefs.h"
10630
10631 /* Override any gcc2 internal prototype to avoid an error.  */
10632 #ifdef __cplusplus
10633 extern "C"
10634 #endif
10635 /* We use char because int might match the return type of a gcc2
10636    builtin and then its argument prototype would still apply.  */
10637 char XRenderQueryExtension ();
10638 int
10639 main ()
10640 {
10641 XRenderQueryExtension ();
10642   ;
10643   return 0;
10644 }
10645 _ACEOF
10646 rm -f conftest.$ac_objext conftest$ac_exeext
10647 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10648   (eval $ac_link) 2>&5
10649   ac_status=$?
10650   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10651   (exit $ac_status); } &&
10652          { ac_try='test -s conftest$ac_exeext'
10653   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10654   (eval $ac_try) 2>&5
10655   ac_status=$?
10656   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10657   (exit $ac_status); }; }; then
10658   ac_cv_lib_soname_Xrender=`$ac_cv_path_LDD conftest$ac_exeext | grep libXrender\\.so | sed 's/^[       ]*\([^  ]*\)[   ]*=>.*$/\1/'`
10659   if test "x$ac_cv_lib_soname_Xrender" = "x"
10660   then
10661      ac_cv_lib_soname_Xrender="libXrender.so"
10662   fi
10663 else
10664   echo "$as_me: failed program was:" >&5
10665 cat conftest.$ac_ext >&5
10666 ac_cv_lib_soname_Xrender="libXrender.so"
10667 fi
10668 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10669   LIBS=$ac_get_soname_save_LIBS
10670 fi
10671 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_Xrender" >&5
10672 echo "${ECHO_T}$ac_cv_lib_soname_Xrender" >&6
10673 if test "x$ac_cv_lib_soname_Xrender" != xNONE
10674 then
10675 cat >>confdefs.h <<_ACEOF
10676 #define SONAME_LIBXRENDER "$ac_cv_lib_soname_Xrender"
10677 _ACEOF
10678 fi
10679
10680 echo "$as_me:$LINENO: checking for -lfreetype soname" >&5
10681 echo $ECHO_N "checking for -lfreetype soname... $ECHO_C" >&6
10682 if test "${ac_cv_lib_soname_freetype+set}" = set; then
10683   echo $ECHO_N "(cached) $ECHO_C" >&6
10684 else
10685   ac_get_soname_save_LIBS=$LIBS
10686 LIBS="-lfreetype $X_LIBS $LIBS"
10687   cat >conftest.$ac_ext <<_ACEOF
10688 #line $LINENO "configure"
10689 #include "confdefs.h"
10690
10691 /* Override any gcc2 internal prototype to avoid an error.  */
10692 #ifdef __cplusplus
10693 extern "C"
10694 #endif
10695 /* We use char because int might match the return type of a gcc2
10696    builtin and then its argument prototype would still apply.  */
10697 char FT_Init_FreeType ();
10698 int
10699 main ()
10700 {
10701 FT_Init_FreeType ();
10702   ;
10703   return 0;
10704 }
10705 _ACEOF
10706 rm -f conftest.$ac_objext conftest$ac_exeext
10707 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10708   (eval $ac_link) 2>&5
10709   ac_status=$?
10710   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10711   (exit $ac_status); } &&
10712          { ac_try='test -s conftest$ac_exeext'
10713   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10714   (eval $ac_try) 2>&5
10715   ac_status=$?
10716   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10717   (exit $ac_status); }; }; then
10718   ac_cv_lib_soname_freetype=`$ac_cv_path_LDD conftest$ac_exeext | grep libfreetype\\.so | sed 's/^[     ]*\([^  ]*\)[   ]*=>.*$/\1/'`
10719   if test "x$ac_cv_lib_soname_freetype" = "x"
10720   then
10721      ac_cv_lib_soname_freetype="libfreetype.so"
10722   fi
10723 else
10724   echo "$as_me: failed program was:" >&5
10725 cat conftest.$ac_ext >&5
10726 ac_cv_lib_soname_freetype="libfreetype.so"
10727 fi
10728 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10729   LIBS=$ac_get_soname_save_LIBS
10730 fi
10731 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_freetype" >&5
10732 echo "${ECHO_T}$ac_cv_lib_soname_freetype" >&6
10733 if test "x$ac_cv_lib_soname_freetype" != xNONE
10734 then
10735 cat >>confdefs.h <<_ACEOF
10736 #define SONAME_LIBFREETYPE "$ac_cv_lib_soname_freetype"
10737 _ACEOF
10738 fi
10739
10740 echo "$as_me:$LINENO: checking for -lGL soname" >&5
10741 echo $ECHO_N "checking for -lGL soname... $ECHO_C" >&6
10742 if test "${ac_cv_lib_soname_GL+set}" = set; then
10743   echo $ECHO_N "(cached) $ECHO_C" >&6
10744 else
10745   ac_get_soname_save_LIBS=$LIBS
10746 LIBS="-lGL $X_LIBS $X_EXTRA_LIBS $LIBS"
10747   cat >conftest.$ac_ext <<_ACEOF
10748 #line $LINENO "configure"
10749 #include "confdefs.h"
10750
10751 /* Override any gcc2 internal prototype to avoid an error.  */
10752 #ifdef __cplusplus
10753 extern "C"
10754 #endif
10755 /* We use char because int might match the return type of a gcc2
10756    builtin and then its argument prototype would still apply.  */
10757 char glXQueryExtension ();
10758 int
10759 main ()
10760 {
10761 glXQueryExtension ();
10762   ;
10763   return 0;
10764 }
10765 _ACEOF
10766 rm -f conftest.$ac_objext conftest$ac_exeext
10767 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10768   (eval $ac_link) 2>&5
10769   ac_status=$?
10770   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10771   (exit $ac_status); } &&
10772          { ac_try='test -s conftest$ac_exeext'
10773   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10774   (eval $ac_try) 2>&5
10775   ac_status=$?
10776   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10777   (exit $ac_status); }; }; then
10778   ac_cv_lib_soname_GL=`$ac_cv_path_LDD conftest$ac_exeext | grep libGL\\.so | sed 's/^[         ]*\([^  ]*\)[   ]*=>.*$/\1/'`
10779   if test "x$ac_cv_lib_soname_GL" = "x"
10780   then
10781      ac_cv_lib_soname_GL="libGL.so"
10782   fi
10783 else
10784   echo "$as_me: failed program was:" >&5
10785 cat conftest.$ac_ext >&5
10786 ac_cv_lib_soname_GL="libGL.so"
10787 fi
10788 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10789   LIBS=$ac_get_soname_save_LIBS
10790 fi
10791 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_GL" >&5
10792 echo "${ECHO_T}$ac_cv_lib_soname_GL" >&6
10793 if test "x$ac_cv_lib_soname_GL" != xNONE
10794 then
10795 cat >>confdefs.h <<_ACEOF
10796 #define SONAME_LIBGL "$ac_cv_lib_soname_GL"
10797 _ACEOF
10798 fi
10799
10800 echo "$as_me:$LINENO: checking for -lcups soname" >&5
10801 echo $ECHO_N "checking for -lcups soname... $ECHO_C" >&6
10802 if test "${ac_cv_lib_soname_cups+set}" = set; then
10803   echo $ECHO_N "(cached) $ECHO_C" >&6
10804 else
10805   ac_get_soname_save_LIBS=$LIBS
10806 LIBS="-lcups  $LIBS"
10807   cat >conftest.$ac_ext <<_ACEOF
10808 #line $LINENO "configure"
10809 #include "confdefs.h"
10810
10811 /* Override any gcc2 internal prototype to avoid an error.  */
10812 #ifdef __cplusplus
10813 extern "C"
10814 #endif
10815 /* We use char because int might match the return type of a gcc2
10816    builtin and then its argument prototype would still apply.  */
10817 char cupsGetDefault ();
10818 int
10819 main ()
10820 {
10821 cupsGetDefault ();
10822   ;
10823   return 0;
10824 }
10825 _ACEOF
10826 rm -f conftest.$ac_objext conftest$ac_exeext
10827 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10828   (eval $ac_link) 2>&5
10829   ac_status=$?
10830   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10831   (exit $ac_status); } &&
10832          { ac_try='test -s conftest$ac_exeext'
10833   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10834   (eval $ac_try) 2>&5
10835   ac_status=$?
10836   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10837   (exit $ac_status); }; }; then
10838   ac_cv_lib_soname_cups=`$ac_cv_path_LDD conftest$ac_exeext | grep libcups\\.so | sed 's/^[     ]*\([^  ]*\)[   ]*=>.*$/\1/'`
10839   if test "x$ac_cv_lib_soname_cups" = "x"
10840   then
10841      ac_cv_lib_soname_cups="libcups.so"
10842   fi
10843 else
10844   echo "$as_me: failed program was:" >&5
10845 cat conftest.$ac_ext >&5
10846 ac_cv_lib_soname_cups="libcups.so"
10847 fi
10848 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10849   LIBS=$ac_get_soname_save_LIBS
10850 fi
10851 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_cups" >&5
10852 echo "${ECHO_T}$ac_cv_lib_soname_cups" >&6
10853 if test "x$ac_cv_lib_soname_cups" != xNONE
10854 then
10855 cat >>confdefs.h <<_ACEOF
10856 #define SONAME_LIBCUPS "$ac_cv_lib_soname_cups"
10857 _ACEOF
10858 fi
10859 fi
10860
10861
10862
10863 wine_cv_libc_reentrant=no
10864 echo "$as_me:$LINENO: checking for reentrant libc: __errno_location" >&5
10865 echo $ECHO_N "checking for reentrant libc: __errno_location... $ECHO_C" >&6
10866 if test "${wine_cv_libc_r___errno_location+set}" = set; then
10867   echo $ECHO_N "(cached) $ECHO_C" >&6
10868 else
10869   if test "$cross_compiling" = yes; then
10870   wine_cv_libc_r___errno_location=yes
10871 else
10872   cat >conftest.$ac_ext <<_ACEOF
10873 #line $LINENO "configure"
10874 #include "confdefs.h"
10875 int myerrno = 0;
10876 int *__errno_location(){return &myerrno;}
10877 main(){close(333); close(333); exit(!myerrno);}
10878 _ACEOF
10879 rm -f conftest$ac_exeext
10880 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10881   (eval $ac_link) 2>&5
10882   ac_status=$?
10883   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10884   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10885   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10886   (eval $ac_try) 2>&5
10887   ac_status=$?
10888   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10889   (exit $ac_status); }; }; then
10890   wine_cv_libc_r___errno_location=yes
10891 else
10892   echo "$as_me: program exited with status $ac_status" >&5
10893 echo "$as_me: failed program was:" >&5
10894 cat conftest.$ac_ext >&5
10895 ( exit $ac_status )
10896 wine_cv_libc_r___errno_location=no
10897 fi
10898 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10899 fi
10900 fi
10901 echo "$as_me:$LINENO: result: $wine_cv_libc_r___errno_location" >&5
10902 echo "${ECHO_T}$wine_cv_libc_r___errno_location" >&6
10903 if test "$wine_cv_libc_r___errno_location" = "yes"; then
10904   wine_cv_libc_reentrant=__errno_location
10905 else
10906     echo "$as_me:$LINENO: checking for reentrant libc: __error" >&5
10907 echo $ECHO_N "checking for reentrant libc: __error... $ECHO_C" >&6
10908 if test "${wine_cv_libc_r___error+set}" = set; then
10909   echo $ECHO_N "(cached) $ECHO_C" >&6
10910 else
10911   if test "$cross_compiling" = yes; then
10912   wine_cv_libc_r___error=yes
10913 else
10914   cat >conftest.$ac_ext <<_ACEOF
10915 #line $LINENO "configure"
10916 #include "confdefs.h"
10917 int myerrno = 0;
10918 int *__error(){return &myerrno;}
10919 main(){close(333); close(333); exit(!myerrno);}
10920 _ACEOF
10921 rm -f conftest$ac_exeext
10922 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10923   (eval $ac_link) 2>&5
10924   ac_status=$?
10925   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10926   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10927   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10928   (eval $ac_try) 2>&5
10929   ac_status=$?
10930   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10931   (exit $ac_status); }; }; then
10932   wine_cv_libc_r___error=yes
10933 else
10934   echo "$as_me: program exited with status $ac_status" >&5
10935 echo "$as_me: failed program was:" >&5
10936 cat conftest.$ac_ext >&5
10937 ( exit $ac_status )
10938 wine_cv_libc_r___error=no
10939 fi
10940 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10941 fi
10942 fi
10943 echo "$as_me:$LINENO: result: $wine_cv_libc_r___error" >&5
10944 echo "${ECHO_T}$wine_cv_libc_r___error" >&6
10945 if test "$wine_cv_libc_r___error" = "yes"; then
10946   wine_cv_libc_reentrant=__error
10947 else
10948       echo "$as_me:$LINENO: checking for reentrant libc: ___errno" >&5
10949 echo $ECHO_N "checking for reentrant libc: ___errno... $ECHO_C" >&6
10950 if test "${wine_cv_libc_r____errno+set}" = set; then
10951   echo $ECHO_N "(cached) $ECHO_C" >&6
10952 else
10953   if test "$cross_compiling" = yes; then
10954   wine_cv_libc_r____errno=yes
10955 else
10956   cat >conftest.$ac_ext <<_ACEOF
10957 #line $LINENO "configure"
10958 #include "confdefs.h"
10959 int myerrno = 0;
10960 int *___errno(){return &myerrno;}
10961 main(){close(333); close(333); exit(!myerrno);}
10962 _ACEOF
10963 rm -f conftest$ac_exeext
10964 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10965   (eval $ac_link) 2>&5
10966   ac_status=$?
10967   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10968   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10969   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10970   (eval $ac_try) 2>&5
10971   ac_status=$?
10972   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10973   (exit $ac_status); }; }; then
10974   wine_cv_libc_r____errno=yes
10975 else
10976   echo "$as_me: program exited with status $ac_status" >&5
10977 echo "$as_me: failed program was:" >&5
10978 cat conftest.$ac_ext >&5
10979 ( exit $ac_status )
10980 wine_cv_libc_r____errno=no
10981 fi
10982 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10983 fi
10984 fi
10985 echo "$as_me:$LINENO: result: $wine_cv_libc_r____errno" >&5
10986 echo "${ECHO_T}$wine_cv_libc_r____errno" >&6
10987 if test "$wine_cv_libc_r____errno" = "yes"; then
10988   wine_cv_libc_reentrant=___errno
10989 else
10990         echo "$as_me:$LINENO: checking for reentrant libc: __thr_errno" >&5
10991 echo $ECHO_N "checking for reentrant libc: __thr_errno... $ECHO_C" >&6
10992 if test "${wine_cv_libc_r___thr_errno+set}" = set; then
10993   echo $ECHO_N "(cached) $ECHO_C" >&6
10994 else
10995   if test "$cross_compiling" = yes; then
10996   wine_cv_libc_r___thr_errno=yes
10997 else
10998   cat >conftest.$ac_ext <<_ACEOF
10999 #line $LINENO "configure"
11000 #include "confdefs.h"
11001 int myerrno = 0;
11002 int *__thr_errno(){return &myerrno;}
11003 main(){close(333); close(333); exit(!myerrno);}
11004 _ACEOF
11005 rm -f conftest$ac_exeext
11006 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11007   (eval $ac_link) 2>&5
11008   ac_status=$?
11009   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11010   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11011   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11012   (eval $ac_try) 2>&5
11013   ac_status=$?
11014   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11015   (exit $ac_status); }; }; then
11016   wine_cv_libc_r___thr_errno=yes
11017 else
11018   echo "$as_me: program exited with status $ac_status" >&5
11019 echo "$as_me: failed program was:" >&5
11020 cat conftest.$ac_ext >&5
11021 ( exit $ac_status )
11022 wine_cv_libc_r___thr_errno=no
11023 fi
11024 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11025 fi
11026 fi
11027 echo "$as_me:$LINENO: result: $wine_cv_libc_r___thr_errno" >&5
11028 echo "${ECHO_T}$wine_cv_libc_r___thr_errno" >&6
11029 if test "$wine_cv_libc_r___thr_errno" = "yes"; then
11030   wine_cv_libc_reentrant=__thr_errno
11031 else
11032           echo "$as_me:$LINENO: checking for reentrant libc: __errno" >&5
11033 echo $ECHO_N "checking for reentrant libc: __errno... $ECHO_C" >&6
11034 if test "${wine_cv_libc_r___errno+set}" = set; then
11035   echo $ECHO_N "(cached) $ECHO_C" >&6
11036 else
11037   if test "$cross_compiling" = yes; then
11038   wine_cv_libc_r___errno=yes
11039 else
11040   cat >conftest.$ac_ext <<_ACEOF
11041 #line $LINENO "configure"
11042 #include "confdefs.h"
11043 int myerrno = 0;
11044 int *__errno(){return &myerrno;}
11045 main(){close(333); close(333); exit(!myerrno);}
11046 _ACEOF
11047 rm -f conftest$ac_exeext
11048 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11049   (eval $ac_link) 2>&5
11050   ac_status=$?
11051   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11052   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11053   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11054   (eval $ac_try) 2>&5
11055   ac_status=$?
11056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11057   (exit $ac_status); }; }; then
11058   wine_cv_libc_r___errno=yes
11059 else
11060   echo "$as_me: program exited with status $ac_status" >&5
11061 echo "$as_me: failed program was:" >&5
11062 cat conftest.$ac_ext >&5
11063 ( exit $ac_status )
11064 wine_cv_libc_r___errno=no
11065 fi
11066 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11067 fi
11068 fi
11069 echo "$as_me:$LINENO: result: $wine_cv_libc_r___errno" >&5
11070 echo "${ECHO_T}$wine_cv_libc_r___errno" >&6
11071 if test "$wine_cv_libc_r___errno" = "yes"; then
11072   wine_cv_libc_reentrant=__errno
11073 fi
11074
11075
11076 fi
11077
11078 fi
11079
11080 fi
11081
11082 fi
11083
11084
11085 if test "$wine_cv_libc_reentrant" != "no"
11086 then
11087
11088 cat >>confdefs.h <<_ACEOF
11089 #define ERRNO_LOCATION $wine_cv_libc_reentrant
11090 _ACEOF
11091
11092 fi
11093
11094
11095 if test "$have_x" = "yes"
11096 then
11097 echo "$as_me:$LINENO: checking for reentrant X libraries" >&5
11098 echo $ECHO_N "checking for reentrant X libraries... $ECHO_C" >&6
11099 if test "${wine_cv_x_reentrant+set}" = set; then
11100   echo $ECHO_N "(cached) $ECHO_C" >&6
11101 else
11102   libX11_check=none
11103     for dir in "$x_libraries" /usr/lib /usr/local/lib /lib; do
11104         if test -r $dir/libX11.so; then
11105             libX11_check="-D $dir/libX11.so"
11106             break
11107         fi
11108         if test -r $dir/libX11.a; then
11109             libX11_check="$dir/libX11.a"
11110             break
11111         fi
11112     done
11113     if test "$libX11_check" != "none"; then
11114         if nm $libX11_check | grep $wine_cv_libc_reentrant >/dev/null 2>&1
11115         then
11116             wine_cv_x_reentrant=yes
11117         else
11118             wine_cv_x_reentrant=no
11119         fi
11120     else
11121         wine_cv_x_reentrant=unknown
11122     fi
11123 fi
11124 echo "$as_me:$LINENO: result: $wine_cv_x_reentrant" >&5
11125 echo "${ECHO_T}$wine_cv_x_reentrant" >&6
11126 fi
11127
11128
11129 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
11130 # for constant arguments.  Useless!
11131 echo "$as_me:$LINENO: checking for working alloca.h" >&5
11132 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
11133 if test "${ac_cv_working_alloca_h+set}" = set; then
11134   echo $ECHO_N "(cached) $ECHO_C" >&6
11135 else
11136   cat >conftest.$ac_ext <<_ACEOF
11137 #line $LINENO "configure"
11138 #include "confdefs.h"
11139 #include <alloca.h>
11140 int
11141 main ()
11142 {
11143 char *p = (char *) alloca (2 * sizeof (int));
11144   ;
11145   return 0;
11146 }
11147 _ACEOF
11148 rm -f conftest.$ac_objext conftest$ac_exeext
11149 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11150   (eval $ac_link) 2>&5
11151   ac_status=$?
11152   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11153   (exit $ac_status); } &&
11154          { ac_try='test -s conftest$ac_exeext'
11155   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11156   (eval $ac_try) 2>&5
11157   ac_status=$?
11158   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11159   (exit $ac_status); }; }; then
11160   ac_cv_working_alloca_h=yes
11161 else
11162   echo "$as_me: failed program was:" >&5
11163 cat conftest.$ac_ext >&5
11164 ac_cv_working_alloca_h=no
11165 fi
11166 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11167 fi
11168 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
11169 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
11170 if test $ac_cv_working_alloca_h = yes; then
11171
11172 cat >>confdefs.h <<\_ACEOF
11173 #define HAVE_ALLOCA_H 1
11174 _ACEOF
11175
11176 fi
11177
11178 echo "$as_me:$LINENO: checking for alloca" >&5
11179 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
11180 if test "${ac_cv_func_alloca_works+set}" = set; then
11181   echo $ECHO_N "(cached) $ECHO_C" >&6
11182 else
11183   cat >conftest.$ac_ext <<_ACEOF
11184 #line $LINENO "configure"
11185 #include "confdefs.h"
11186 #ifdef __GNUC__
11187 # define alloca __builtin_alloca
11188 #else
11189 # ifdef _MSC_VER
11190 #  include <malloc.h>
11191 #  define alloca _alloca
11192 # else
11193 #  if HAVE_ALLOCA_H
11194 #   include <alloca.h>
11195 #  else
11196 #   ifdef _AIX
11197  #pragma alloca
11198 #   else
11199 #    ifndef alloca /* predefined by HP cc +Olibcalls */
11200 char *alloca ();
11201 #    endif
11202 #   endif
11203 #  endif
11204 # endif
11205 #endif
11206
11207 int
11208 main ()
11209 {
11210 char *p = (char *) alloca (1);
11211   ;
11212   return 0;
11213 }
11214 _ACEOF
11215 rm -f conftest.$ac_objext conftest$ac_exeext
11216 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11217   (eval $ac_link) 2>&5
11218   ac_status=$?
11219   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11220   (exit $ac_status); } &&
11221          { ac_try='test -s conftest$ac_exeext'
11222   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11223   (eval $ac_try) 2>&5
11224   ac_status=$?
11225   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11226   (exit $ac_status); }; }; then
11227   ac_cv_func_alloca_works=yes
11228 else
11229   echo "$as_me: failed program was:" >&5
11230 cat conftest.$ac_ext >&5
11231 ac_cv_func_alloca_works=no
11232 fi
11233 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11234 fi
11235 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
11236 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
11237
11238 if test $ac_cv_func_alloca_works = yes; then
11239
11240 cat >>confdefs.h <<\_ACEOF
11241 #define HAVE_ALLOCA 1
11242 _ACEOF
11243
11244 else
11245   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
11246 # that cause trouble.  Some versions do not even contain alloca or
11247 # contain a buggy version.  If you still want to use their alloca,
11248 # use ar to extract alloca.o from them instead of compiling alloca.c.
11249
11250 ALLOCA=alloca.$ac_objext
11251
11252 cat >>confdefs.h <<\_ACEOF
11253 #define C_ALLOCA 1
11254 _ACEOF
11255
11256
11257 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
11258 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
11259 if test "${ac_cv_os_cray+set}" = set; then
11260   echo $ECHO_N "(cached) $ECHO_C" >&6
11261 else
11262   cat >conftest.$ac_ext <<_ACEOF
11263 #line $LINENO "configure"
11264 #include "confdefs.h"
11265 #if defined(CRAY) && ! defined(CRAY2)
11266 webecray
11267 #else
11268 wenotbecray
11269 #endif
11270
11271 _ACEOF
11272 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11273   $EGREP "webecray" >/dev/null 2>&1; then
11274   ac_cv_os_cray=yes
11275 else
11276   ac_cv_os_cray=no
11277 fi
11278 rm -f conftest*
11279
11280 fi
11281 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
11282 echo "${ECHO_T}$ac_cv_os_cray" >&6
11283 if test $ac_cv_os_cray = yes; then
11284   for ac_func in _getb67 GETB67 getb67; do
11285     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11286 echo "$as_me:$LINENO: checking for $ac_func" >&5
11287 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11288 if eval "test \"\${$as_ac_var+set}\" = set"; then
11289   echo $ECHO_N "(cached) $ECHO_C" >&6
11290 else
11291   cat >conftest.$ac_ext <<_ACEOF
11292 #line $LINENO "configure"
11293 #include "confdefs.h"
11294 /* System header to define __stub macros and hopefully few prototypes,
11295     which can conflict with char $ac_func (); below.  */
11296 #include <assert.h>
11297 /* Override any gcc2 internal prototype to avoid an error.  */
11298 #ifdef __cplusplus
11299 extern "C"
11300 #endif
11301 /* We use char because int might match the return type of a gcc2
11302    builtin and then its argument prototype would still apply.  */
11303 char $ac_func ();
11304 char (*f) ();
11305
11306 int
11307 main ()
11308 {
11309 /* The GNU C library defines this for functions which it implements
11310     to always fail with ENOSYS.  Some functions are actually named
11311     something starting with __ and the normal name is an alias.  */
11312 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11313 choke me
11314 #else
11315 f = $ac_func;
11316 #endif
11317
11318   ;
11319   return 0;
11320 }
11321 _ACEOF
11322 rm -f conftest.$ac_objext conftest$ac_exeext
11323 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11324   (eval $ac_link) 2>&5
11325   ac_status=$?
11326   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11327   (exit $ac_status); } &&
11328          { ac_try='test -s conftest$ac_exeext'
11329   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11330   (eval $ac_try) 2>&5
11331   ac_status=$?
11332   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11333   (exit $ac_status); }; }; then
11334   eval "$as_ac_var=yes"
11335 else
11336   echo "$as_me: failed program was:" >&5
11337 cat conftest.$ac_ext >&5
11338 eval "$as_ac_var=no"
11339 fi
11340 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11341 fi
11342 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11343 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11344 if test `eval echo '${'$as_ac_var'}'` = yes; then
11345
11346 cat >>confdefs.h <<_ACEOF
11347 #define CRAY_STACKSEG_END $ac_func
11348 _ACEOF
11349
11350     break
11351 fi
11352
11353   done
11354 fi
11355
11356 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
11357 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
11358 if test "${ac_cv_c_stack_direction+set}" = set; then
11359   echo $ECHO_N "(cached) $ECHO_C" >&6
11360 else
11361   if test "$cross_compiling" = yes; then
11362   ac_cv_c_stack_direction=0
11363 else
11364   cat >conftest.$ac_ext <<_ACEOF
11365 #line $LINENO "configure"
11366 #include "confdefs.h"
11367 int
11368 find_stack_direction ()
11369 {
11370   static char *addr = 0;
11371   auto char dummy;
11372   if (addr == 0)
11373     {
11374       addr = &dummy;
11375       return find_stack_direction ();
11376     }
11377   else
11378     return (&dummy > addr) ? 1 : -1;
11379 }
11380
11381 int
11382 main ()
11383 {
11384   exit (find_stack_direction () < 0);
11385 }
11386 _ACEOF
11387 rm -f conftest$ac_exeext
11388 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11389   (eval $ac_link) 2>&5
11390   ac_status=$?
11391   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11392   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11393   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11394   (eval $ac_try) 2>&5
11395   ac_status=$?
11396   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11397   (exit $ac_status); }; }; then
11398   ac_cv_c_stack_direction=1
11399 else
11400   echo "$as_me: program exited with status $ac_status" >&5
11401 echo "$as_me: failed program was:" >&5
11402 cat conftest.$ac_ext >&5
11403 ( exit $ac_status )
11404 ac_cv_c_stack_direction=-1
11405 fi
11406 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11407 fi
11408 fi
11409 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
11410 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
11411
11412 cat >>confdefs.h <<_ACEOF
11413 #define STACK_DIRECTION $ac_cv_c_stack_direction
11414 _ACEOF
11415
11416
11417 fi
11418
11419
11420
11421
11422
11423
11424
11425
11426
11427
11428
11429
11430
11431
11432
11433
11434
11435
11436
11437
11438
11439
11440
11441
11442
11443
11444
11445
11446
11447
11448
11449
11450
11451
11452
11453
11454
11455
11456
11457
11458
11459
11460
11461
11462
11463
11464
11465
11466 for ac_func in \
11467         _lwp_create \
11468         _pclose \
11469         _popen \
11470         _snprintf \
11471         _stricmp \
11472         _strnicmp \
11473         chsize \
11474         clone \
11475         ecvt \
11476         finite \
11477         fpclass \
11478         ftruncate \
11479         ftruncate64 \
11480         getnetbyaddr \
11481         getnetbyname \
11482         getpagesize \
11483         getprotobyname \
11484         getprotobynumber \
11485         getpwuid \
11486         getservbyport \
11487         getsockopt \
11488         inet_network \
11489         lseek64 \
11490         lstat \
11491         memmove \
11492         mkstemp \
11493         mmap \
11494         pclose \
11495         popen \
11496         pread \
11497         pwrite \
11498         rfork \
11499         select \
11500         sendmsg \
11501         settimeofday \
11502         sigaltstack \
11503         snprintf \
11504         statfs \
11505         strcasecmp \
11506         strerror \
11507         strncasecmp \
11508         tcgetattr \
11509         timegm \
11510         usleep \
11511         vfscanf \
11512         wait4 \
11513         waitpid \
11514
11515 do
11516 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11517 echo "$as_me:$LINENO: checking for $ac_func" >&5
11518 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11519 if eval "test \"\${$as_ac_var+set}\" = set"; then
11520   echo $ECHO_N "(cached) $ECHO_C" >&6
11521 else
11522   cat >conftest.$ac_ext <<_ACEOF
11523 #line $LINENO "configure"
11524 #include "confdefs.h"
11525 /* System header to define __stub macros and hopefully few prototypes,
11526     which can conflict with char $ac_func (); below.  */
11527 #include <assert.h>
11528 /* Override any gcc2 internal prototype to avoid an error.  */
11529 #ifdef __cplusplus
11530 extern "C"
11531 #endif
11532 /* We use char because int might match the return type of a gcc2
11533    builtin and then its argument prototype would still apply.  */
11534 char $ac_func ();
11535 char (*f) ();
11536
11537 int
11538 main ()
11539 {
11540 /* The GNU C library defines this for functions which it implements
11541     to always fail with ENOSYS.  Some functions are actually named
11542     something starting with __ and the normal name is an alias.  */
11543 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11544 choke me
11545 #else
11546 f = $ac_func;
11547 #endif
11548
11549   ;
11550   return 0;
11551 }
11552 _ACEOF
11553 rm -f conftest.$ac_objext conftest$ac_exeext
11554 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11555   (eval $ac_link) 2>&5
11556   ac_status=$?
11557   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11558   (exit $ac_status); } &&
11559          { ac_try='test -s conftest$ac_exeext'
11560   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11561   (eval $ac_try) 2>&5
11562   ac_status=$?
11563   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11564   (exit $ac_status); }; }; then
11565   eval "$as_ac_var=yes"
11566 else
11567   echo "$as_me: failed program was:" >&5
11568 cat conftest.$ac_ext >&5
11569 eval "$as_ac_var=no"
11570 fi
11571 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11572 fi
11573 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11574 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11575 if test `eval echo '${'$as_ac_var'}'` = yes; then
11576   cat >>confdefs.h <<_ACEOF
11577 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11578 _ACEOF
11579
11580 fi
11581 done
11582
11583
11584
11585
11586
11587
11588
11589
11590
11591
11592
11593
11594
11595
11596
11597
11598
11599
11600
11601
11602
11603
11604
11605
11606
11607
11608
11609
11610
11611
11612
11613
11614
11615
11616
11617
11618
11619
11620
11621
11622
11623
11624
11625
11626
11627
11628
11629
11630
11631
11632
11633
11634
11635
11636
11637
11638
11639
11640
11641
11642
11643
11644
11645
11646
11647
11648
11649
11650
11651
11652 for ac_header in \
11653         arpa/inet.h \
11654         arpa/nameser.h \
11655         cups/cups.h \
11656         direct.h \
11657         elf.h \
11658         float.h \
11659         ieeefp.h \
11660         io.h \
11661         libio.h \
11662         libutil.h \
11663         link.h \
11664         linux/cdrom.h \
11665         linux/hdreg.h \
11666         linux/input.h \
11667         linux/joystick.h \
11668         linux/major.h \
11669         linux/param.h \
11670         linux/serial.h \
11671         linux/ucdrom.h \
11672         netdb.h \
11673         netinet/in.h \
11674         netinet/in_systm.h \
11675         netinet/tcp.h \
11676         pty.h \
11677         pwd.h \
11678         sched.h \
11679         scsi/sg.h \
11680         socket.h \
11681         stdint.h \
11682         strings.h \
11683         sys/cdio.h \
11684         sys/errno.h \
11685         sys/file.h \
11686         sys/filio.h \
11687         sys/inttypes.h \
11688         sys/ioctl.h \
11689         sys/ipc.h \
11690         sys/link.h \
11691         sys/lwp.h \
11692         sys/mman.h \
11693         sys/modem.h \
11694         sys/msg.h \
11695         sys/param.h \
11696         sys/poll.h \
11697         sys/ptrace.h \
11698         sys/reg.h \
11699         sys/shm.h \
11700         sys/signal.h \
11701         sys/socket.h \
11702         sys/sockio.h \
11703         sys/statfs.h \
11704         sys/strtio.h \
11705         sys/syscall.h \
11706         sys/sysctl.h \
11707         sys/time.h \
11708         sys/times.h \
11709         sys/uio.h \
11710         sys/un.h \
11711         sys/v86.h \
11712         sys/v86intr.h \
11713         sys/vfs.h \
11714         sys/vm86.h \
11715         sys/wait.h \
11716         syscall.h \
11717         termios.h \
11718         unistd.h \
11719         utime.h \
11720
11721 do
11722 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11723 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11724   echo "$as_me:$LINENO: checking for $ac_header" >&5
11725 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11726 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11727   echo $ECHO_N "(cached) $ECHO_C" >&6
11728 fi
11729 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11730 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11731 else
11732   # Is the header compilable?
11733 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11734 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11735 cat >conftest.$ac_ext <<_ACEOF
11736 #line $LINENO "configure"
11737 #include "confdefs.h"
11738 $ac_includes_default
11739 #include <$ac_header>
11740 _ACEOF
11741 rm -f conftest.$ac_objext
11742 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11743   (eval $ac_compile) 2>&5
11744   ac_status=$?
11745   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11746   (exit $ac_status); } &&
11747          { ac_try='test -s conftest.$ac_objext'
11748   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11749   (eval $ac_try) 2>&5
11750   ac_status=$?
11751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11752   (exit $ac_status); }; }; then
11753   ac_header_compiler=yes
11754 else
11755   echo "$as_me: failed program was:" >&5
11756 cat conftest.$ac_ext >&5
11757 ac_header_compiler=no
11758 fi
11759 rm -f conftest.$ac_objext conftest.$ac_ext
11760 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11761 echo "${ECHO_T}$ac_header_compiler" >&6
11762
11763 # Is the header present?
11764 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11765 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11766 cat >conftest.$ac_ext <<_ACEOF
11767 #line $LINENO "configure"
11768 #include "confdefs.h"
11769 #include <$ac_header>
11770 _ACEOF
11771 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11772   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11773   ac_status=$?
11774   grep -v '^ *+' conftest.er1 >conftest.err
11775   rm -f conftest.er1
11776   cat conftest.err >&5
11777   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11778   (exit $ac_status); } >/dev/null; then
11779   if test -s conftest.err; then
11780     ac_cpp_err=$ac_c_preproc_warn_flag
11781   else
11782     ac_cpp_err=
11783   fi
11784 else
11785   ac_cpp_err=yes
11786 fi
11787 if test -z "$ac_cpp_err"; then
11788   ac_header_preproc=yes
11789 else
11790   echo "$as_me: failed program was:" >&5
11791   cat conftest.$ac_ext >&5
11792   ac_header_preproc=no
11793 fi
11794 rm -f conftest.err conftest.$ac_ext
11795 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11796 echo "${ECHO_T}$ac_header_preproc" >&6
11797
11798 # So?  What about this header?
11799 case $ac_header_compiler:$ac_header_preproc in
11800   yes:no )
11801     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11802 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11803     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11804 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
11805   no:yes )
11806     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11807 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11808     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11809 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11810     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11811 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
11812 esac
11813 echo "$as_me:$LINENO: checking for $ac_header" >&5
11814 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11815 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11816   echo $ECHO_N "(cached) $ECHO_C" >&6
11817 else
11818   eval "$as_ac_Header=$ac_header_preproc"
11819 fi
11820 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11821 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11822
11823 fi
11824 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11825   cat >>confdefs.h <<_ACEOF
11826 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11827 _ACEOF
11828
11829 fi
11830
11831 done
11832
11833 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
11834 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
11835 if test "${ac_cv_header_stat_broken+set}" = set; then
11836   echo $ECHO_N "(cached) $ECHO_C" >&6
11837 else
11838   cat >conftest.$ac_ext <<_ACEOF
11839 #line $LINENO "configure"
11840 #include "confdefs.h"
11841 #include <sys/types.h>
11842 #include <sys/stat.h>
11843
11844 #if defined(S_ISBLK) && defined(S_IFDIR)
11845 # if S_ISBLK (S_IFDIR)
11846 You lose.
11847 # endif
11848 #endif
11849
11850 #if defined(S_ISBLK) && defined(S_IFCHR)
11851 # if S_ISBLK (S_IFCHR)
11852 You lose.
11853 # endif
11854 #endif
11855
11856 #if defined(S_ISLNK) && defined(S_IFREG)
11857 # if S_ISLNK (S_IFREG)
11858 You lose.
11859 # endif
11860 #endif
11861
11862 #if defined(S_ISSOCK) && defined(S_IFREG)
11863 # if S_ISSOCK (S_IFREG)
11864 You lose.
11865 # endif
11866 #endif
11867
11868 _ACEOF
11869 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11870   $EGREP "You lose" >/dev/null 2>&1; then
11871   ac_cv_header_stat_broken=yes
11872 else
11873   ac_cv_header_stat_broken=no
11874 fi
11875 rm -f conftest*
11876
11877 fi
11878 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
11879 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
11880 if test $ac_cv_header_stat_broken = yes; then
11881
11882 cat >>confdefs.h <<\_ACEOF
11883 #define STAT_MACROS_BROKEN 1
11884 _ACEOF
11885
11886 fi
11887
11888
11889
11890
11891
11892 for ac_header in sys/mount.h sys/user.h
11893 do
11894 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11895 echo "$as_me:$LINENO: checking for $ac_header" >&5
11896 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11897 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11898   echo $ECHO_N "(cached) $ECHO_C" >&6
11899 else
11900   cat >conftest.$ac_ext <<_ACEOF
11901 #line $LINENO "configure"
11902 #include "confdefs.h"
11903 #include <sys/types.h>
11904      #if HAVE_SYS_PARAM_H
11905      # include <sys/param.h>
11906      #endif
11907
11908 #include <$ac_header>
11909 _ACEOF
11910 rm -f conftest.$ac_objext
11911 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11912   (eval $ac_compile) 2>&5
11913   ac_status=$?
11914   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11915   (exit $ac_status); } &&
11916          { ac_try='test -s conftest.$ac_objext'
11917   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11918   (eval $ac_try) 2>&5
11919   ac_status=$?
11920   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11921   (exit $ac_status); }; }; then
11922   eval "$as_ac_Header=yes"
11923 else
11924   echo "$as_me: failed program was:" >&5
11925 cat conftest.$ac_ext >&5
11926 eval "$as_ac_Header=no"
11927 fi
11928 rm -f conftest.$ac_objext conftest.$ac_ext
11929 fi
11930 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11931 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11932 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11933   cat >>confdefs.h <<_ACEOF
11934 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11935 _ACEOF
11936
11937 fi
11938
11939 done
11940
11941
11942
11943 for ac_header in net/if.h
11944 do
11945 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11946 echo "$as_me:$LINENO: checking for $ac_header" >&5
11947 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11948 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11949   echo $ECHO_N "(cached) $ECHO_C" >&6
11950 else
11951   cat >conftest.$ac_ext <<_ACEOF
11952 #line $LINENO "configure"
11953 #include "confdefs.h"
11954 #include <sys/types.h>
11955      #if HAVE_SYS_SOCKET_H
11956      # include <sys/socket.h>
11957      #endif
11958
11959 #include <$ac_header>
11960 _ACEOF
11961 rm -f conftest.$ac_objext
11962 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11963   (eval $ac_compile) 2>&5
11964   ac_status=$?
11965   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11966   (exit $ac_status); } &&
11967          { ac_try='test -s conftest.$ac_objext'
11968   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11969   (eval $ac_try) 2>&5
11970   ac_status=$?
11971   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11972   (exit $ac_status); }; }; then
11973   eval "$as_ac_Header=yes"
11974 else
11975   echo "$as_me: failed program was:" >&5
11976 cat conftest.$ac_ext >&5
11977 eval "$as_ac_Header=no"
11978 fi
11979 rm -f conftest.$ac_objext conftest.$ac_ext
11980 fi
11981 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11982 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11983 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11984   cat >>confdefs.h <<_ACEOF
11985 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11986 _ACEOF
11987
11988 fi
11989
11990 done
11991
11992
11993
11994 for ac_header in netinet/ip.h
11995 do
11996 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11997 echo "$as_me:$LINENO: checking for $ac_header" >&5
11998 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11999 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12000   echo $ECHO_N "(cached) $ECHO_C" >&6
12001 else
12002   cat >conftest.$ac_ext <<_ACEOF
12003 #line $LINENO "configure"
12004 #include "confdefs.h"
12005 #include <sys/types.h>
12006      #if HAVE_SYS_SOCKET_H
12007      # include <sys/socket.h>
12008      #endif
12009      #if HAVE_NETINET_IN_SYSTM_H
12010      # include <netinet/in_systm.h>
12011      #endif
12012
12013 #include <$ac_header>
12014 _ACEOF
12015 rm -f conftest.$ac_objext
12016 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12017   (eval $ac_compile) 2>&5
12018   ac_status=$?
12019   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12020   (exit $ac_status); } &&
12021          { ac_try='test -s conftest.$ac_objext'
12022   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12023   (eval $ac_try) 2>&5
12024   ac_status=$?
12025   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12026   (exit $ac_status); }; }; then
12027   eval "$as_ac_Header=yes"
12028 else
12029   echo "$as_me: failed program was:" >&5
12030 cat conftest.$ac_ext >&5
12031 eval "$as_ac_Header=no"
12032 fi
12033 rm -f conftest.$ac_objext conftest.$ac_ext
12034 fi
12035 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12036 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12037 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12038   cat >>confdefs.h <<_ACEOF
12039 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12040 _ACEOF
12041
12042 fi
12043
12044 done
12045
12046
12047
12048 for ac_header in resolv.h
12049 do
12050 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12051 echo "$as_me:$LINENO: checking for $ac_header" >&5
12052 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12053 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12054   echo $ECHO_N "(cached) $ECHO_C" >&6
12055 else
12056   cat >conftest.$ac_ext <<_ACEOF
12057 #line $LINENO "configure"
12058 #include "confdefs.h"
12059 #include <sys/types.h>
12060      #if HAVE_SYS_SOCKET_H
12061      # include <sys/socket.h>
12062      #endif
12063
12064 #include <$ac_header>
12065 _ACEOF
12066 rm -f conftest.$ac_objext
12067 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12068   (eval $ac_compile) 2>&5
12069   ac_status=$?
12070   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12071   (exit $ac_status); } &&
12072          { ac_try='test -s conftest.$ac_objext'
12073   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12074   (eval $ac_try) 2>&5
12075   ac_status=$?
12076   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12077   (exit $ac_status); }; }; then
12078   eval "$as_ac_Header=yes"
12079 else
12080   echo "$as_me: failed program was:" >&5
12081 cat conftest.$ac_ext >&5
12082 eval "$as_ac_Header=no"
12083 fi
12084 rm -f conftest.$ac_objext conftest.$ac_ext
12085 fi
12086 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12087 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12088 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12089   cat >>confdefs.h <<_ACEOF
12090 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12091 _ACEOF
12092
12093 fi
12094
12095 done
12096
12097
12098
12099 for ac_header in ucontext.h
12100 do
12101 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12102 echo "$as_me:$LINENO: checking for $ac_header" >&5
12103 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12104 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12105   echo $ECHO_N "(cached) $ECHO_C" >&6
12106 else
12107   cat >conftest.$ac_ext <<_ACEOF
12108 #line $LINENO "configure"
12109 #include "confdefs.h"
12110 #include <signal.h>
12111
12112 #include <$ac_header>
12113 _ACEOF
12114 rm -f conftest.$ac_objext
12115 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12116   (eval $ac_compile) 2>&5
12117   ac_status=$?
12118   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12119   (exit $ac_status); } &&
12120          { ac_try='test -s conftest.$ac_objext'
12121   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12122   (eval $ac_try) 2>&5
12123   ac_status=$?
12124   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12125   (exit $ac_status); }; }; then
12126   eval "$as_ac_Header=yes"
12127 else
12128   echo "$as_me: failed program was:" >&5
12129 cat conftest.$ac_ext >&5
12130 eval "$as_ac_Header=no"
12131 fi
12132 rm -f conftest.$ac_objext conftest.$ac_ext
12133 fi
12134 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12135 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12136 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12137   cat >>confdefs.h <<_ACEOF
12138 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12139 _ACEOF
12140
12141 fi
12142
12143 done
12144
12145
12146
12147 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
12148 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
12149 if test "${ac_cv_c_const+set}" = set; then
12150   echo $ECHO_N "(cached) $ECHO_C" >&6
12151 else
12152   cat >conftest.$ac_ext <<_ACEOF
12153 #line $LINENO "configure"
12154 #include "confdefs.h"
12155
12156 int
12157 main ()
12158 {
12159 /* FIXME: Include the comments suggested by Paul. */
12160 #ifndef __cplusplus
12161   /* Ultrix mips cc rejects this.  */
12162   typedef int charset[2];
12163   const charset x;
12164   /* SunOS 4.1.1 cc rejects this.  */
12165   char const *const *ccp;
12166   char **p;
12167   /* NEC SVR4.0.2 mips cc rejects this.  */
12168   struct point {int x, y;};
12169   static struct point const zero = {0,0};
12170   /* AIX XL C 1.02.0.0 rejects this.
12171      It does not let you subtract one const X* pointer from another in
12172      an arm of an if-expression whose if-part is not a constant
12173      expression */
12174   const char *g = "string";
12175   ccp = &g + (g ? g-g : 0);
12176   /* HPUX 7.0 cc rejects these. */
12177   ++ccp;
12178   p = (char**) ccp;
12179   ccp = (char const *const *) p;
12180   { /* SCO 3.2v4 cc rejects this.  */
12181     char *t;
12182     char const *s = 0 ? (char *) 0 : (char const *) 0;
12183
12184     *t++ = 0;
12185   }
12186   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
12187     int x[] = {25, 17};
12188     const int *foo = &x[0];
12189     ++foo;
12190   }
12191   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
12192     typedef const int *iptr;
12193     iptr p = 0;
12194     ++p;
12195   }
12196   { /* AIX XL C 1.02.0.0 rejects this saying
12197        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
12198     struct s { int j; const int *ap[3]; };
12199     struct s *b; b->j = 5;
12200   }
12201   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
12202     const int foo = 10;
12203   }
12204 #endif
12205
12206   ;
12207   return 0;
12208 }
12209 _ACEOF
12210 rm -f conftest.$ac_objext
12211 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12212   (eval $ac_compile) 2>&5
12213   ac_status=$?
12214   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12215   (exit $ac_status); } &&
12216          { ac_try='test -s conftest.$ac_objext'
12217   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12218   (eval $ac_try) 2>&5
12219   ac_status=$?
12220   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12221   (exit $ac_status); }; }; then
12222   ac_cv_c_const=yes
12223 else
12224   echo "$as_me: failed program was:" >&5
12225 cat conftest.$ac_ext >&5
12226 ac_cv_c_const=no
12227 fi
12228 rm -f conftest.$ac_objext conftest.$ac_ext
12229 fi
12230 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
12231 echo "${ECHO_T}$ac_cv_c_const" >&6
12232 if test $ac_cv_c_const = no; then
12233
12234 cat >>confdefs.h <<\_ACEOF
12235 #define const
12236 _ACEOF
12237
12238 fi
12239
12240 echo "$as_me:$LINENO: checking for inline" >&5
12241 echo $ECHO_N "checking for inline... $ECHO_C" >&6
12242 if test "${ac_cv_c_inline+set}" = set; then
12243   echo $ECHO_N "(cached) $ECHO_C" >&6
12244 else
12245   ac_cv_c_inline=no
12246 for ac_kw in inline __inline__ __inline; do
12247   cat >conftest.$ac_ext <<_ACEOF
12248 #line $LINENO "configure"
12249 #include "confdefs.h"
12250 #ifndef __cplusplus
12251 typedef int foo_t;
12252 static $ac_kw foo_t static_foo () {return 0; }
12253 $ac_kw foo_t foo () {return 0; }
12254 #endif
12255
12256 _ACEOF
12257 rm -f conftest.$ac_objext
12258 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12259   (eval $ac_compile) 2>&5
12260   ac_status=$?
12261   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12262   (exit $ac_status); } &&
12263          { ac_try='test -s conftest.$ac_objext'
12264   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12265   (eval $ac_try) 2>&5
12266   ac_status=$?
12267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12268   (exit $ac_status); }; }; then
12269   ac_cv_c_inline=$ac_kw; break
12270 else
12271   echo "$as_me: failed program was:" >&5
12272 cat conftest.$ac_ext >&5
12273 fi
12274 rm -f conftest.$ac_objext conftest.$ac_ext
12275 done
12276
12277 fi
12278 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
12279 echo "${ECHO_T}$ac_cv_c_inline" >&6
12280 case $ac_cv_c_inline in
12281   inline | yes) ;;
12282   no)
12283 cat >>confdefs.h <<\_ACEOF
12284 #define inline
12285 _ACEOF
12286  ;;
12287   *)  cat >>confdefs.h <<_ACEOF
12288 #define inline $ac_cv_c_inline
12289 _ACEOF
12290  ;;
12291 esac
12292
12293 echo "$as_me:$LINENO: checking for mode_t" >&5
12294 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
12295 if test "${ac_cv_type_mode_t+set}" = set; then
12296   echo $ECHO_N "(cached) $ECHO_C" >&6
12297 else
12298   cat >conftest.$ac_ext <<_ACEOF
12299 #line $LINENO "configure"
12300 #include "confdefs.h"
12301 $ac_includes_default
12302 int
12303 main ()
12304 {
12305 if ((mode_t *) 0)
12306   return 0;
12307 if (sizeof (mode_t))
12308   return 0;
12309   ;
12310   return 0;
12311 }
12312 _ACEOF
12313 rm -f conftest.$ac_objext
12314 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12315   (eval $ac_compile) 2>&5
12316   ac_status=$?
12317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12318   (exit $ac_status); } &&
12319          { ac_try='test -s conftest.$ac_objext'
12320   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12321   (eval $ac_try) 2>&5
12322   ac_status=$?
12323   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12324   (exit $ac_status); }; }; then
12325   ac_cv_type_mode_t=yes
12326 else
12327   echo "$as_me: failed program was:" >&5
12328 cat conftest.$ac_ext >&5
12329 ac_cv_type_mode_t=no
12330 fi
12331 rm -f conftest.$ac_objext conftest.$ac_ext
12332 fi
12333 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
12334 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
12335 if test $ac_cv_type_mode_t = yes; then
12336
12337 cat >>confdefs.h <<_ACEOF
12338 #define HAVE_MODE_T 1
12339 _ACEOF
12340
12341
12342 fi
12343 echo "$as_me:$LINENO: checking for off_t" >&5
12344 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
12345 if test "${ac_cv_type_off_t+set}" = set; then
12346   echo $ECHO_N "(cached) $ECHO_C" >&6
12347 else
12348   cat >conftest.$ac_ext <<_ACEOF
12349 #line $LINENO "configure"
12350 #include "confdefs.h"
12351 $ac_includes_default
12352 int
12353 main ()
12354 {
12355 if ((off_t *) 0)
12356   return 0;
12357 if (sizeof (off_t))
12358   return 0;
12359   ;
12360   return 0;
12361 }
12362 _ACEOF
12363 rm -f conftest.$ac_objext
12364 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12365   (eval $ac_compile) 2>&5
12366   ac_status=$?
12367   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12368   (exit $ac_status); } &&
12369          { ac_try='test -s conftest.$ac_objext'
12370   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12371   (eval $ac_try) 2>&5
12372   ac_status=$?
12373   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12374   (exit $ac_status); }; }; then
12375   ac_cv_type_off_t=yes
12376 else
12377   echo "$as_me: failed program was:" >&5
12378 cat conftest.$ac_ext >&5
12379 ac_cv_type_off_t=no
12380 fi
12381 rm -f conftest.$ac_objext conftest.$ac_ext
12382 fi
12383 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
12384 echo "${ECHO_T}$ac_cv_type_off_t" >&6
12385 if test $ac_cv_type_off_t = yes; then
12386
12387 cat >>confdefs.h <<_ACEOF
12388 #define HAVE_OFF_T 1
12389 _ACEOF
12390
12391
12392 fi
12393 echo "$as_me:$LINENO: checking for pid_t" >&5
12394 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
12395 if test "${ac_cv_type_pid_t+set}" = set; then
12396   echo $ECHO_N "(cached) $ECHO_C" >&6
12397 else
12398   cat >conftest.$ac_ext <<_ACEOF
12399 #line $LINENO "configure"
12400 #include "confdefs.h"
12401 $ac_includes_default
12402 int
12403 main ()
12404 {
12405 if ((pid_t *) 0)
12406   return 0;
12407 if (sizeof (pid_t))
12408   return 0;
12409   ;
12410   return 0;
12411 }
12412 _ACEOF
12413 rm -f conftest.$ac_objext
12414 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12415   (eval $ac_compile) 2>&5
12416   ac_status=$?
12417   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12418   (exit $ac_status); } &&
12419          { ac_try='test -s conftest.$ac_objext'
12420   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12421   (eval $ac_try) 2>&5
12422   ac_status=$?
12423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12424   (exit $ac_status); }; }; then
12425   ac_cv_type_pid_t=yes
12426 else
12427   echo "$as_me: failed program was:" >&5
12428 cat conftest.$ac_ext >&5
12429 ac_cv_type_pid_t=no
12430 fi
12431 rm -f conftest.$ac_objext conftest.$ac_ext
12432 fi
12433 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
12434 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
12435 if test $ac_cv_type_pid_t = yes; then
12436
12437 cat >>confdefs.h <<_ACEOF
12438 #define HAVE_PID_T 1
12439 _ACEOF
12440
12441
12442 fi
12443 echo "$as_me:$LINENO: checking for size_t" >&5
12444 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
12445 if test "${ac_cv_type_size_t+set}" = set; then
12446   echo $ECHO_N "(cached) $ECHO_C" >&6
12447 else
12448   cat >conftest.$ac_ext <<_ACEOF
12449 #line $LINENO "configure"
12450 #include "confdefs.h"
12451 $ac_includes_default
12452 int
12453 main ()
12454 {
12455 if ((size_t *) 0)
12456   return 0;
12457 if (sizeof (size_t))
12458   return 0;
12459   ;
12460   return 0;
12461 }
12462 _ACEOF
12463 rm -f conftest.$ac_objext
12464 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12465   (eval $ac_compile) 2>&5
12466   ac_status=$?
12467   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12468   (exit $ac_status); } &&
12469          { ac_try='test -s conftest.$ac_objext'
12470   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12471   (eval $ac_try) 2>&5
12472   ac_status=$?
12473   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12474   (exit $ac_status); }; }; then
12475   ac_cv_type_size_t=yes
12476 else
12477   echo "$as_me: failed program was:" >&5
12478 cat conftest.$ac_ext >&5
12479 ac_cv_type_size_t=no
12480 fi
12481 rm -f conftest.$ac_objext conftest.$ac_ext
12482 fi
12483 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
12484 echo "${ECHO_T}$ac_cv_type_size_t" >&6
12485 if test $ac_cv_type_size_t = yes; then
12486
12487 cat >>confdefs.h <<_ACEOF
12488 #define HAVE_SIZE_T 1
12489 _ACEOF
12490
12491
12492 fi
12493 echo "$as_me:$LINENO: checking for ssize_t" >&5
12494 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
12495 if test "${ac_cv_type_ssize_t+set}" = set; then
12496   echo $ECHO_N "(cached) $ECHO_C" >&6
12497 else
12498   cat >conftest.$ac_ext <<_ACEOF
12499 #line $LINENO "configure"
12500 #include "confdefs.h"
12501 $ac_includes_default
12502 int
12503 main ()
12504 {
12505 if ((ssize_t *) 0)
12506   return 0;
12507 if (sizeof (ssize_t))
12508   return 0;
12509   ;
12510   return 0;
12511 }
12512 _ACEOF
12513 rm -f conftest.$ac_objext
12514 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12515   (eval $ac_compile) 2>&5
12516   ac_status=$?
12517   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12518   (exit $ac_status); } &&
12519          { ac_try='test -s conftest.$ac_objext'
12520   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12521   (eval $ac_try) 2>&5
12522   ac_status=$?
12523   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12524   (exit $ac_status); }; }; then
12525   ac_cv_type_ssize_t=yes
12526 else
12527   echo "$as_me: failed program was:" >&5
12528 cat conftest.$ac_ext >&5
12529 ac_cv_type_ssize_t=no
12530 fi
12531 rm -f conftest.$ac_objext conftest.$ac_ext
12532 fi
12533 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
12534 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
12535 if test $ac_cv_type_ssize_t = yes; then
12536
12537 cat >>confdefs.h <<_ACEOF
12538 #define HAVE_SSIZE_T 1
12539 _ACEOF
12540
12541
12542 fi
12543
12544 echo "$as_me:$LINENO: checking for long long" >&5
12545 echo $ECHO_N "checking for long long... $ECHO_C" >&6
12546 if test "${ac_cv_type_long_long+set}" = set; then
12547   echo $ECHO_N "(cached) $ECHO_C" >&6
12548 else
12549   cat >conftest.$ac_ext <<_ACEOF
12550 #line $LINENO "configure"
12551 #include "confdefs.h"
12552 $ac_includes_default
12553 int
12554 main ()
12555 {
12556 if ((long long *) 0)
12557   return 0;
12558 if (sizeof (long long))
12559   return 0;
12560   ;
12561   return 0;
12562 }
12563 _ACEOF
12564 rm -f conftest.$ac_objext
12565 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12566   (eval $ac_compile) 2>&5
12567   ac_status=$?
12568   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12569   (exit $ac_status); } &&
12570          { ac_try='test -s conftest.$ac_objext'
12571   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12572   (eval $ac_try) 2>&5
12573   ac_status=$?
12574   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12575   (exit $ac_status); }; }; then
12576   ac_cv_type_long_long=yes
12577 else
12578   echo "$as_me: failed program was:" >&5
12579 cat conftest.$ac_ext >&5
12580 ac_cv_type_long_long=no
12581 fi
12582 rm -f conftest.$ac_objext conftest.$ac_ext
12583 fi
12584 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
12585 echo "${ECHO_T}$ac_cv_type_long_long" >&6
12586
12587 echo "$as_me:$LINENO: checking size of long long" >&5
12588 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
12589 if test "${ac_cv_sizeof_long_long+set}" = set; then
12590   echo $ECHO_N "(cached) $ECHO_C" >&6
12591 else
12592   if test "$ac_cv_type_long_long" = yes; then
12593   # The cast to unsigned long works around a bug in the HP C Compiler
12594   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12595   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12596   # This bug is HP SR number 8606223364.
12597   if test "$cross_compiling" = yes; then
12598   # Depending upon the size, compute the lo and hi bounds.
12599 cat >conftest.$ac_ext <<_ACEOF
12600 #line $LINENO "configure"
12601 #include "confdefs.h"
12602 $ac_includes_default
12603 int
12604 main ()
12605 {
12606 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
12607 test_array [0] = 0
12608
12609   ;
12610   return 0;
12611 }
12612 _ACEOF
12613 rm -f conftest.$ac_objext
12614 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12615   (eval $ac_compile) 2>&5
12616   ac_status=$?
12617   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12618   (exit $ac_status); } &&
12619          { ac_try='test -s conftest.$ac_objext'
12620   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12621   (eval $ac_try) 2>&5
12622   ac_status=$?
12623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12624   (exit $ac_status); }; }; then
12625   ac_lo=0 ac_mid=0
12626   while :; do
12627     cat >conftest.$ac_ext <<_ACEOF
12628 #line $LINENO "configure"
12629 #include "confdefs.h"
12630 $ac_includes_default
12631 int
12632 main ()
12633 {
12634 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
12635 test_array [0] = 0
12636
12637   ;
12638   return 0;
12639 }
12640 _ACEOF
12641 rm -f conftest.$ac_objext
12642 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12643   (eval $ac_compile) 2>&5
12644   ac_status=$?
12645   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12646   (exit $ac_status); } &&
12647          { ac_try='test -s conftest.$ac_objext'
12648   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12649   (eval $ac_try) 2>&5
12650   ac_status=$?
12651   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12652   (exit $ac_status); }; }; then
12653   ac_hi=$ac_mid; break
12654 else
12655   echo "$as_me: failed program was:" >&5
12656 cat conftest.$ac_ext >&5
12657 ac_lo=`expr $ac_mid + 1`
12658                     if test $ac_lo -le $ac_mid; then
12659                       ac_lo= ac_hi=
12660                       break
12661                     fi
12662                     ac_mid=`expr 2 '*' $ac_mid + 1`
12663 fi
12664 rm -f conftest.$ac_objext conftest.$ac_ext
12665   done
12666 else
12667   echo "$as_me: failed program was:" >&5
12668 cat conftest.$ac_ext >&5
12669 cat >conftest.$ac_ext <<_ACEOF
12670 #line $LINENO "configure"
12671 #include "confdefs.h"
12672 $ac_includes_default
12673 int
12674 main ()
12675 {
12676 static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
12677 test_array [0] = 0
12678
12679   ;
12680   return 0;
12681 }
12682 _ACEOF
12683 rm -f conftest.$ac_objext
12684 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12685   (eval $ac_compile) 2>&5
12686   ac_status=$?
12687   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12688   (exit $ac_status); } &&
12689          { ac_try='test -s conftest.$ac_objext'
12690   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12691   (eval $ac_try) 2>&5
12692   ac_status=$?
12693   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12694   (exit $ac_status); }; }; then
12695   ac_hi=-1 ac_mid=-1
12696   while :; do
12697     cat >conftest.$ac_ext <<_ACEOF
12698 #line $LINENO "configure"
12699 #include "confdefs.h"
12700 $ac_includes_default
12701 int
12702 main ()
12703 {
12704 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
12705 test_array [0] = 0
12706
12707   ;
12708   return 0;
12709 }
12710 _ACEOF
12711 rm -f conftest.$ac_objext
12712 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12713   (eval $ac_compile) 2>&5
12714   ac_status=$?
12715   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12716   (exit $ac_status); } &&
12717          { ac_try='test -s conftest.$ac_objext'
12718   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12719   (eval $ac_try) 2>&5
12720   ac_status=$?
12721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12722   (exit $ac_status); }; }; then
12723   ac_lo=$ac_mid; break
12724 else
12725   echo "$as_me: failed program was:" >&5
12726 cat conftest.$ac_ext >&5
12727 ac_hi=`expr '(' $ac_mid ')' - 1`
12728                        if test $ac_mid -le $ac_hi; then
12729                          ac_lo= ac_hi=
12730                          break
12731                        fi
12732                        ac_mid=`expr 2 '*' $ac_mid`
12733 fi
12734 rm -f conftest.$ac_objext conftest.$ac_ext
12735   done
12736 else
12737   echo "$as_me: failed program was:" >&5
12738 cat conftest.$ac_ext >&5
12739 ac_lo= ac_hi=
12740 fi
12741 rm -f conftest.$ac_objext conftest.$ac_ext
12742 fi
12743 rm -f conftest.$ac_objext conftest.$ac_ext
12744 # Binary search between lo and hi bounds.
12745 while test "x$ac_lo" != "x$ac_hi"; do
12746   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12747   cat >conftest.$ac_ext <<_ACEOF
12748 #line $LINENO "configure"
12749 #include "confdefs.h"
12750 $ac_includes_default
12751 int
12752 main ()
12753 {
12754 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
12755 test_array [0] = 0
12756
12757   ;
12758   return 0;
12759 }
12760 _ACEOF
12761 rm -f conftest.$ac_objext
12762 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12763   (eval $ac_compile) 2>&5
12764   ac_status=$?
12765   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12766   (exit $ac_status); } &&
12767          { ac_try='test -s conftest.$ac_objext'
12768   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12769   (eval $ac_try) 2>&5
12770   ac_status=$?
12771   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12772   (exit $ac_status); }; }; then
12773   ac_hi=$ac_mid
12774 else
12775   echo "$as_me: failed program was:" >&5
12776 cat conftest.$ac_ext >&5
12777 ac_lo=`expr '(' $ac_mid ')' + 1`
12778 fi
12779 rm -f conftest.$ac_objext conftest.$ac_ext
12780 done
12781 case $ac_lo in
12782 ?*) ac_cv_sizeof_long_long=$ac_lo;;
12783 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77" >&5
12784 echo "$as_me: error: cannot compute sizeof (long long), 77" >&2;}
12785    { (exit 1); exit 1; }; } ;;
12786 esac
12787 else
12788   if test "$cross_compiling" = yes; then
12789   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
12790 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
12791    { (exit 1); exit 1; }; }
12792 else
12793   cat >conftest.$ac_ext <<_ACEOF
12794 #line $LINENO "configure"
12795 #include "confdefs.h"
12796 $ac_includes_default
12797 long longval () { return (long) (sizeof (long long)); }
12798 unsigned long ulongval () { return (long) (sizeof (long long)); }
12799 #include <stdio.h>
12800 #include <stdlib.h>
12801 int
12802 main ()
12803 {
12804
12805   FILE *f = fopen ("conftest.val", "w");
12806   if (! f)
12807     exit (1);
12808   if (((long) (sizeof (long long))) < 0)
12809     {
12810       long i = longval ();
12811       if (i != ((long) (sizeof (long long))))
12812         exit (1);
12813       fprintf (f, "%ld\n", i);
12814     }
12815   else
12816     {
12817       unsigned long i = ulongval ();
12818       if (i != ((long) (sizeof (long long))))
12819         exit (1);
12820       fprintf (f, "%lu\n", i);
12821     }
12822   exit (ferror (f) || fclose (f) != 0);
12823
12824   ;
12825   return 0;
12826 }
12827 _ACEOF
12828 rm -f conftest$ac_exeext
12829 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12830   (eval $ac_link) 2>&5
12831   ac_status=$?
12832   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12833   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12834   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12835   (eval $ac_try) 2>&5
12836   ac_status=$?
12837   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12838   (exit $ac_status); }; }; then
12839   ac_cv_sizeof_long_long=`cat conftest.val`
12840 else
12841   echo "$as_me: program exited with status $ac_status" >&5
12842 echo "$as_me: failed program was:" >&5
12843 cat conftest.$ac_ext >&5
12844 ( exit $ac_status )
12845 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77" >&5
12846 echo "$as_me: error: cannot compute sizeof (long long), 77" >&2;}
12847    { (exit 1); exit 1; }; }
12848 fi
12849 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12850 fi
12851 fi
12852 rm -f conftest.val
12853 else
12854   ac_cv_sizeof_long_long=0
12855 fi
12856 fi
12857 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
12858 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
12859 cat >>confdefs.h <<_ACEOF
12860 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
12861 _ACEOF
12862
12863
12864
12865 echo "$as_me:$LINENO: checking whether linux/input.h is for real" >&5
12866 echo $ECHO_N "checking whether linux/input.h is for real... $ECHO_C" >&6
12867 if test "${wine_cv_linux_input_h+set}" = set; then
12868   echo $ECHO_N "(cached) $ECHO_C" >&6
12869 else
12870   cat >conftest.$ac_ext <<_ACEOF
12871 #line $LINENO "configure"
12872 #include "confdefs.h"
12873
12874             #include <linux/input.h>
12875
12876 int
12877 main ()
12878 {
12879
12880             int foo = EVIOCGBIT(EV_ABS,42);
12881             int bar = BTN_PINKIE;
12882             int fortytwo = 42;
12883
12884   ;
12885   return 0;
12886 }
12887 _ACEOF
12888 rm -f conftest.$ac_objext
12889 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12890   (eval $ac_compile) 2>&5
12891   ac_status=$?
12892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12893   (exit $ac_status); } &&
12894          { ac_try='test -s conftest.$ac_objext'
12895   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12896   (eval $ac_try) 2>&5
12897   ac_status=$?
12898   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12899   (exit $ac_status); }; }; then
12900   wine_cv_linux_input_h=yes
12901 else
12902   echo "$as_me: failed program was:" >&5
12903 cat conftest.$ac_ext >&5
12904 wine_cv_linux_input_h=no
12905 fi
12906 rm -f conftest.$ac_objext conftest.$ac_ext
12907
12908 fi
12909 echo "$as_me:$LINENO: result: $wine_cv_linux_input_h" >&5
12910 echo "${ECHO_T}$wine_cv_linux_input_h" >&6
12911     if test "$wine_cv_linux_input_h" = "yes"
12912     then
12913
12914 cat >>confdefs.h <<\_ACEOF
12915 #define HAVE_CORRECT_LINUXINPUT_H 1
12916 _ACEOF
12917
12918     fi
12919
12920
12921 echo "$as_me:$LINENO: checking whether we can use re-entrant gethostbyname_r Linux style" >&5
12922 echo $ECHO_N "checking whether we can use re-entrant gethostbyname_r Linux style... $ECHO_C" >&6
12923 if test "${wine_cv_linux_gethostbyname_r_6+set}" = set; then
12924   echo $ECHO_N "(cached) $ECHO_C" >&6
12925 else
12926   cat >conftest.$ac_ext <<_ACEOF
12927 #line $LINENO "configure"
12928 #include "confdefs.h"
12929
12930 #include <netdb.h>
12931
12932 int
12933 main ()
12934 {
12935
12936     char *name=NULL;
12937     struct hostent he;
12938     struct hostent *result;
12939     char *buf=NULL;
12940     int bufsize=0;
12941     int res,errnr;
12942     char *addr=NULL;
12943     int addrlen=0;
12944     int addrtype=0;
12945     res=gethostbyname_r(name,&he,buf,bufsize,&result,&errnr);
12946     res=gethostbyaddr_r(addr, addrlen, addrtype,&he,buf,bufsize,&result,&errnr);
12947
12948   ;
12949   return 0;
12950 }
12951 _ACEOF
12952 rm -f conftest.$ac_objext
12953 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12954   (eval $ac_compile) 2>&5
12955   ac_status=$?
12956   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12957   (exit $ac_status); } &&
12958          { ac_try='test -s conftest.$ac_objext'
12959   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12960   (eval $ac_try) 2>&5
12961   ac_status=$?
12962   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12963   (exit $ac_status); }; }; then
12964   wine_cv_linux_gethostbyname_r_6=yes
12965 else
12966   echo "$as_me: failed program was:" >&5
12967 cat conftest.$ac_ext >&5
12968 wine_cv_linux_gethostbyname_r_6=no
12969
12970 fi
12971 rm -f conftest.$ac_objext conftest.$ac_ext
12972
12973 fi
12974 echo "$as_me:$LINENO: result: $wine_cv_linux_gethostbyname_r_6" >&5
12975 echo "${ECHO_T}$wine_cv_linux_gethostbyname_r_6" >&6
12976    if test "$wine_cv_linux_gethostbyname_r_6" = "yes"
12977    then
12978
12979 cat >>confdefs.h <<\_ACEOF
12980 #define HAVE_LINUX_GETHOSTBYNAME_R_6 1
12981 _ACEOF
12982
12983    fi
12984
12985 if test "$ac_cv_header_linux_joystick_h" = "yes"
12986 then
12987    echo "$as_me:$LINENO: checking whether linux/joystick.h uses the Linux 2.2+ API" >&5
12988 echo $ECHO_N "checking whether linux/joystick.h uses the Linux 2.2+ API... $ECHO_C" >&6
12989 if test "${wine_cv_linux_joystick_22_api+set}" = set; then
12990   echo $ECHO_N "(cached) $ECHO_C" >&6
12991 else
12992   cat >conftest.$ac_ext <<_ACEOF
12993 #line $LINENO "configure"
12994 #include "confdefs.h"
12995
12996         #include <sys/ioctl.h>
12997         #include <linux/joystick.h>
12998
12999         struct js_event blub;
13000         #if !defined(JS_EVENT_AXIS) || !defined(JS_EVENT_BUTTON)
13001         #error "no 2.2 header"
13002         #endif
13003
13004 int
13005 main ()
13006 {
13007 /*empty*/
13008   ;
13009   return 0;
13010 }
13011 _ACEOF
13012 rm -f conftest.$ac_objext
13013 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13014   (eval $ac_compile) 2>&5
13015   ac_status=$?
13016   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13017   (exit $ac_status); } &&
13018          { ac_try='test -s conftest.$ac_objext'
13019   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13020   (eval $ac_try) 2>&5
13021   ac_status=$?
13022   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13023   (exit $ac_status); }; }; then
13024   wine_cv_linux_joystick_22_api=yes
13025 else
13026   echo "$as_me: failed program was:" >&5
13027 cat conftest.$ac_ext >&5
13028 wine_cv_linux_joystick_22_api=no
13029 fi
13030 rm -f conftest.$ac_objext conftest.$ac_ext
13031
13032 fi
13033 echo "$as_me:$LINENO: result: $wine_cv_linux_joystick_22_api" >&5
13034 echo "${ECHO_T}$wine_cv_linux_joystick_22_api" >&6
13035    if test "$wine_cv_linux_joystick_22_api" = "yes"
13036    then
13037
13038 cat >>confdefs.h <<\_ACEOF
13039 #define HAVE_LINUX_22_JOYSTICK_API 1
13040 _ACEOF
13041
13042    fi
13043 fi
13044
13045
13046 if test "$ac_cv_header_sys_vfs_h" = "yes"
13047 then
13048     echo "$as_me:$LINENO: checking whether sys/vfs.h defines statfs" >&5
13049 echo $ECHO_N "checking whether sys/vfs.h defines statfs... $ECHO_C" >&6
13050 if test "${wine_cv_sys_vfs_has_statfs+set}" = set; then
13051   echo $ECHO_N "(cached) $ECHO_C" >&6
13052 else
13053   cat >conftest.$ac_ext <<_ACEOF
13054 #line $LINENO "configure"
13055 #include "confdefs.h"
13056
13057         #include <sys/types.h>
13058         #ifdef HAVE_SYS_PARAM_H
13059         # include <sys/param.h>
13060         #endif
13061         #include <sys/vfs.h>
13062
13063 int
13064 main ()
13065 {
13066
13067                 struct statfs stfs;
13068
13069                 memset(&stfs,0,sizeof(stfs));
13070
13071   ;
13072   return 0;
13073 }
13074 _ACEOF
13075 rm -f conftest.$ac_objext
13076 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13077   (eval $ac_compile) 2>&5
13078   ac_status=$?
13079   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13080   (exit $ac_status); } &&
13081          { ac_try='test -s conftest.$ac_objext'
13082   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13083   (eval $ac_try) 2>&5
13084   ac_status=$?
13085   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13086   (exit $ac_status); }; }; then
13087   wine_cv_sys_vfs_has_statfs=yes
13088 else
13089   echo "$as_me: failed program was:" >&5
13090 cat conftest.$ac_ext >&5
13091 wine_cv_sys_vfs_has_statfs=no
13092
13093 fi
13094 rm -f conftest.$ac_objext conftest.$ac_ext
13095
13096 fi
13097 echo "$as_me:$LINENO: result: $wine_cv_sys_vfs_has_statfs" >&5
13098 echo "${ECHO_T}$wine_cv_sys_vfs_has_statfs" >&6
13099     if test "$wine_cv_sys_vfs_has_statfs" = "yes"
13100     then
13101
13102 cat >>confdefs.h <<\_ACEOF
13103 #define STATFS_DEFINED_BY_SYS_VFS 1
13104 _ACEOF
13105
13106     fi
13107 fi
13108
13109 if test "$ac_cv_header_sys_statfs_h" = "yes"
13110 then
13111     echo "$as_me:$LINENO: checking whether sys/statfs.h defines statfs" >&5
13112 echo $ECHO_N "checking whether sys/statfs.h defines statfs... $ECHO_C" >&6
13113 if test "${wine_cv_sys_statfs_has_statfs+set}" = set; then
13114   echo $ECHO_N "(cached) $ECHO_C" >&6
13115 else
13116   cat >conftest.$ac_ext <<_ACEOF
13117 #line $LINENO "configure"
13118 #include "confdefs.h"
13119
13120         #include <sys/types.h>
13121         #ifdef HAVE_SYS_PARAM_H
13122         # include <sys/param.h>
13123         #endif
13124         #include <sys/statfs.h>
13125
13126 int
13127 main ()
13128 {
13129
13130                 struct statfs stfs;
13131
13132   ;
13133   return 0;
13134 }
13135 _ACEOF
13136 rm -f conftest.$ac_objext
13137 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13138   (eval $ac_compile) 2>&5
13139   ac_status=$?
13140   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13141   (exit $ac_status); } &&
13142          { ac_try='test -s conftest.$ac_objext'
13143   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13144   (eval $ac_try) 2>&5
13145   ac_status=$?
13146   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13147   (exit $ac_status); }; }; then
13148   wine_cv_sys_statfs_has_statfs=yes
13149 else
13150   echo "$as_me: failed program was:" >&5
13151 cat conftest.$ac_ext >&5
13152 wine_cv_sys_statfs_has_statfs=no
13153
13154 fi
13155 rm -f conftest.$ac_objext conftest.$ac_ext
13156
13157 fi
13158 echo "$as_me:$LINENO: result: $wine_cv_sys_statfs_has_statfs" >&5
13159 echo "${ECHO_T}$wine_cv_sys_statfs_has_statfs" >&6
13160     if test "$wine_cv_sys_statfs_has_statfs" = "yes"
13161     then
13162
13163 cat >>confdefs.h <<\_ACEOF
13164 #define STATFS_DEFINED_BY_SYS_STATFS 1
13165 _ACEOF
13166
13167     fi
13168 fi
13169
13170 if test "$ac_cv_header_sys_mount_h" = "yes"
13171 then
13172     echo "$as_me:$LINENO: checking whether sys/mount.h defines statfs" >&5
13173 echo $ECHO_N "checking whether sys/mount.h defines statfs... $ECHO_C" >&6
13174 if test "${wine_cv_sys_mount_has_statfs+set}" = set; then
13175   echo $ECHO_N "(cached) $ECHO_C" >&6
13176 else
13177   cat >conftest.$ac_ext <<_ACEOF
13178 #line $LINENO "configure"
13179 #include "confdefs.h"
13180
13181         #include <sys/types.h>
13182         #ifdef HAVE_SYS_PARAM_H
13183         # include <sys/param.h>
13184         #endif
13185         #include <sys/mount.h>
13186
13187 int
13188 main ()
13189 {
13190
13191                 struct statfs stfs;
13192
13193   ;
13194   return 0;
13195 }
13196 _ACEOF
13197 rm -f conftest.$ac_objext
13198 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13199   (eval $ac_compile) 2>&5
13200   ac_status=$?
13201   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13202   (exit $ac_status); } &&
13203          { ac_try='test -s conftest.$ac_objext'
13204   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13205   (eval $ac_try) 2>&5
13206   ac_status=$?
13207   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13208   (exit $ac_status); }; }; then
13209   wine_cv_sys_mount_has_statfs=yes
13210 else
13211   echo "$as_me: failed program was:" >&5
13212 cat conftest.$ac_ext >&5
13213 wine_cv_sys_mount_has_statfs=no
13214
13215 fi
13216 rm -f conftest.$ac_objext conftest.$ac_ext
13217
13218 fi
13219 echo "$as_me:$LINENO: result: $wine_cv_sys_mount_has_statfs" >&5
13220 echo "${ECHO_T}$wine_cv_sys_mount_has_statfs" >&6
13221     if test "$wine_cv_sys_mount_has_statfs" = "yes"
13222     then
13223
13224 cat >>confdefs.h <<\_ACEOF
13225 #define STATFS_DEFINED_BY_SYS_MOUNT 1
13226 _ACEOF
13227
13228     fi
13229 fi
13230
13231
13232 echo "$as_me:$LINENO: checking for f_bfree in struct statfs" >&5
13233 echo $ECHO_N "checking for f_bfree in struct statfs... $ECHO_C" >&6
13234 if test "${ac_cv_c_statfs_f_bfree+set}" = set; then
13235   echo $ECHO_N "(cached) $ECHO_C" >&6
13236 else
13237   cat >conftest.$ac_ext <<_ACEOF
13238 #line $LINENO "configure"
13239 #include "confdefs.h"
13240 #include <sys/types.h>
13241 #ifdef HAVE_SYS_PARAM_H
13242 # include <sys/param.h>
13243 #endif
13244 #ifdef STATFS_DEFINED_BY_SYS_MOUNT
13245 # include <sys/mount.h>
13246 #else
13247 # ifdef STATFS_DEFINED_BY_SYS_VFS
13248 #  include <sys/vfs.h>
13249 # else
13250 #  ifdef STATFS_DEFINED_BY_SYS_STATFS
13251 #   include <sys/statfs.h>
13252 #  endif
13253 # endif
13254 #endif
13255 int
13256 main ()
13257 {
13258 struct statfs s; s.f_bfree = 0
13259   ;
13260   return 0;
13261 }
13262 _ACEOF
13263 rm -f conftest.$ac_objext
13264 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13265   (eval $ac_compile) 2>&5
13266   ac_status=$?
13267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13268   (exit $ac_status); } &&
13269          { ac_try='test -s conftest.$ac_objext'
13270   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13271   (eval $ac_try) 2>&5
13272   ac_status=$?
13273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13274   (exit $ac_status); }; }; then
13275   ac_cv_c_statfs_f_bfree="yes"
13276 else
13277   echo "$as_me: failed program was:" >&5
13278 cat conftest.$ac_ext >&5
13279 ac_cv_c_statfs_f_bfree="no"
13280 fi
13281 rm -f conftest.$ac_objext conftest.$ac_ext
13282 fi
13283 echo "$as_me:$LINENO: result: $ac_cv_c_statfs_f_bfree" >&5
13284 echo "${ECHO_T}$ac_cv_c_statfs_f_bfree" >&6
13285 if  test "x$ac_cv_c_statfs_f_bfree" = "xyes"; then
13286
13287 cat >>confdefs.h <<\_ACEOF
13288 #define STATFS_HAS_BFREE 1
13289 _ACEOF
13290
13291 fi
13292
13293
13294
13295 echo "$as_me:$LINENO: checking for f_bavail in struct statfs" >&5
13296 echo $ECHO_N "checking for f_bavail in struct statfs... $ECHO_C" >&6
13297 if test "${ac_cv_c_statfs_f_bavail+set}" = set; then
13298   echo $ECHO_N "(cached) $ECHO_C" >&6
13299 else
13300   cat >conftest.$ac_ext <<_ACEOF
13301 #line $LINENO "configure"
13302 #include "confdefs.h"
13303 #include <sys/types.h>
13304 #ifdef HAVE_SYS_PARAM_H
13305 # include <sys/param.h>
13306 #endif
13307 #ifdef STATFS_DEFINED_BY_SYS_MOUNT
13308 # include <sys/mount.h>
13309 #else
13310 # ifdef STATFS_DEFINED_BY_SYS_VFS
13311 #  include <sys/vfs.h>
13312 # else
13313 #  ifdef STATFS_DEFINED_BY_SYS_STATFS
13314 #   include <sys/statfs.h>
13315 #  endif
13316 # endif
13317 #endif
13318 int
13319 main ()
13320 {
13321 struct statfs s; s.f_bavail = 0
13322   ;
13323   return 0;
13324 }
13325 _ACEOF
13326 rm -f conftest.$ac_objext
13327 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13328   (eval $ac_compile) 2>&5
13329   ac_status=$?
13330   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13331   (exit $ac_status); } &&
13332          { ac_try='test -s conftest.$ac_objext'
13333   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13334   (eval $ac_try) 2>&5
13335   ac_status=$?
13336   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13337   (exit $ac_status); }; }; then
13338   ac_cv_c_statfs_f_bavail="yes"
13339 else
13340   echo "$as_me: failed program was:" >&5
13341 cat conftest.$ac_ext >&5
13342 ac_cv_c_statfs_f_bavail="no"
13343 fi
13344 rm -f conftest.$ac_objext conftest.$ac_ext
13345 fi
13346 echo "$as_me:$LINENO: result: $ac_cv_c_statfs_f_bavail" >&5
13347 echo "${ECHO_T}$ac_cv_c_statfs_f_bavail" >&6
13348 if  test "x$ac_cv_c_statfs_f_bavail" = "xyes"; then
13349
13350 cat >>confdefs.h <<\_ACEOF
13351 #define STATFS_HAS_BAVAIL 1
13352 _ACEOF
13353
13354 fi
13355
13356
13357
13358 echo "$as_me:$LINENO: checking for msg_accrights in struct msghdr" >&5
13359 echo $ECHO_N "checking for msg_accrights in struct msghdr... $ECHO_C" >&6
13360 if test "${ac_cv_c_msghdr_msg_accrights+set}" = set; then
13361   echo $ECHO_N "(cached) $ECHO_C" >&6
13362 else
13363   cat >conftest.$ac_ext <<_ACEOF
13364 #line $LINENO "configure"
13365 #include "confdefs.h"
13366 #include <sys/types.h>
13367 #ifdef HAVE_SYS_SOCKET_H
13368 # include <sys/socket.h>
13369 #endif
13370 int
13371 main ()
13372 {
13373 struct msghdr s; s.msg_accrights = 0
13374   ;
13375   return 0;
13376 }
13377 _ACEOF
13378 rm -f conftest.$ac_objext
13379 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13380   (eval $ac_compile) 2>&5
13381   ac_status=$?
13382   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13383   (exit $ac_status); } &&
13384          { ac_try='test -s conftest.$ac_objext'
13385   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13386   (eval $ac_try) 2>&5
13387   ac_status=$?
13388   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13389   (exit $ac_status); }; }; then
13390   ac_cv_c_msghdr_msg_accrights="yes"
13391 else
13392   echo "$as_me: failed program was:" >&5
13393 cat conftest.$ac_ext >&5
13394 ac_cv_c_msghdr_msg_accrights="no"
13395 fi
13396 rm -f conftest.$ac_objext conftest.$ac_ext
13397 fi
13398 echo "$as_me:$LINENO: result: $ac_cv_c_msghdr_msg_accrights" >&5
13399 echo "${ECHO_T}$ac_cv_c_msghdr_msg_accrights" >&6
13400 if  test "x$ac_cv_c_msghdr_msg_accrights" = "xyes"; then
13401
13402 cat >>confdefs.h <<\_ACEOF
13403 #define HAVE_MSGHDR_ACCRIGHTS 1
13404 _ACEOF
13405
13406 fi
13407
13408
13409
13410 echo "$as_me:$LINENO: checking for sa_len in struct sockaddr" >&5
13411 echo $ECHO_N "checking for sa_len in struct sockaddr... $ECHO_C" >&6
13412 if test "${ac_cv_c_sockaddr_sa_len+set}" = set; then
13413   echo $ECHO_N "(cached) $ECHO_C" >&6
13414 else
13415   cat >conftest.$ac_ext <<_ACEOF
13416 #line $LINENO "configure"
13417 #include "confdefs.h"
13418 #include <sys/types.h>
13419 #ifdef HAVE_SYS_SOCKET_H
13420 # include <sys/socket.h>
13421 #endif
13422 int
13423 main ()
13424 {
13425 struct sockaddr s; s.sa_len = 0
13426   ;
13427   return 0;
13428 }
13429 _ACEOF
13430 rm -f conftest.$ac_objext
13431 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13432   (eval $ac_compile) 2>&5
13433   ac_status=$?
13434   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13435   (exit $ac_status); } &&
13436          { ac_try='test -s conftest.$ac_objext'
13437   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13438   (eval $ac_try) 2>&5
13439   ac_status=$?
13440   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13441   (exit $ac_status); }; }; then
13442   ac_cv_c_sockaddr_sa_len="yes"
13443 else
13444   echo "$as_me: failed program was:" >&5
13445 cat conftest.$ac_ext >&5
13446 ac_cv_c_sockaddr_sa_len="no"
13447 fi
13448 rm -f conftest.$ac_objext conftest.$ac_ext
13449 fi
13450 echo "$as_me:$LINENO: result: $ac_cv_c_sockaddr_sa_len" >&5
13451 echo "${ECHO_T}$ac_cv_c_sockaddr_sa_len" >&6
13452 if  test "x$ac_cv_c_sockaddr_sa_len" = "xyes"; then
13453
13454 cat >>confdefs.h <<\_ACEOF
13455 #define HAVE_SOCKADDR_SA_LEN 1
13456 _ACEOF
13457
13458 fi
13459
13460
13461
13462 echo "$as_me:$LINENO: checking for sun_len in struct sockaddr_un" >&5
13463 echo $ECHO_N "checking for sun_len in struct sockaddr_un... $ECHO_C" >&6
13464 if test "${ac_cv_c_sockaddr_un_sun_len+set}" = set; then
13465   echo $ECHO_N "(cached) $ECHO_C" >&6
13466 else
13467   cat >conftest.$ac_ext <<_ACEOF
13468 #line $LINENO "configure"
13469 #include "confdefs.h"
13470 #include <sys/types.h>
13471 #ifdef HAVE_SYS_SOCKET_H
13472 # include <sys/socket.h>
13473 #endif
13474 #ifdef HAVE_SYS_UN_H
13475 # include <sys/un.h>
13476 #endif
13477 int
13478 main ()
13479 {
13480 struct sockaddr_un s; s.sun_len = 0
13481   ;
13482   return 0;
13483 }
13484 _ACEOF
13485 rm -f conftest.$ac_objext
13486 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13487   (eval $ac_compile) 2>&5
13488   ac_status=$?
13489   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13490   (exit $ac_status); } &&
13491          { ac_try='test -s conftest.$ac_objext'
13492   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13493   (eval $ac_try) 2>&5
13494   ac_status=$?
13495   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13496   (exit $ac_status); }; }; then
13497   ac_cv_c_sockaddr_un_sun_len="yes"
13498 else
13499   echo "$as_me: failed program was:" >&5
13500 cat conftest.$ac_ext >&5
13501 ac_cv_c_sockaddr_un_sun_len="no"
13502 fi
13503 rm -f conftest.$ac_objext conftest.$ac_ext
13504 fi
13505 echo "$as_me:$LINENO: result: $ac_cv_c_sockaddr_un_sun_len" >&5
13506 echo "${ECHO_T}$ac_cv_c_sockaddr_un_sun_len" >&6
13507 if  test "x$ac_cv_c_sockaddr_un_sun_len" = "xyes"; then
13508
13509 cat >>confdefs.h <<\_ACEOF
13510 #define HAVE_SOCKADDR_SUN_LEN 1
13511 _ACEOF
13512
13513 fi
13514
13515
13516
13517
13518 case $host_cpu in
13519   *i345678986* )
13520     echo "$as_me:$LINENO: checking whether we need to define __i386__" >&5
13521 echo $ECHO_N "checking whether we need to define __i386__... $ECHO_C" >&6
13522 if test "${ac_cv_cpp_def_i386+set}" = set; then
13523   echo $ECHO_N "(cached) $ECHO_C" >&6
13524 else
13525   cat >conftest.$ac_ext <<_ACEOF
13526 #line $LINENO "configure"
13527 #include "confdefs.h"
13528 #ifndef __i386__
13529 yes
13530 #endif
13531 _ACEOF
13532 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13533   $EGREP "yes" >/dev/null 2>&1; then
13534   ac_cv_cpp_def_i386="yes"
13535 else
13536   ac_cv_cpp_def_i386="no"
13537 fi
13538 rm -f conftest*
13539
13540 fi
13541 echo "$as_me:$LINENO: result: $ac_cv_cpp_def_i386" >&5
13542 echo "${ECHO_T}$ac_cv_cpp_def_i386" >&6
13543     ;;
13544 esac
13545 if test "$ac_cv_cpp_def_i386" = "yes"
13546 then
13547     CFLAGS="$CFLAGS -D__i386__"
13548     LINTFLAGS="$LINTFLAGS -D__i386__"
13549 fi
13550
13551
13552 case $host_cpu in
13553   *sparc* )
13554     echo "$as_me:$LINENO: checking whether we need to define __sparc__" >&5
13555 echo $ECHO_N "checking whether we need to define __sparc__... $ECHO_C" >&6
13556 if test "${ac_cv_cpp_def_sparc+set}" = set; then
13557   echo $ECHO_N "(cached) $ECHO_C" >&6
13558 else
13559   cat >conftest.$ac_ext <<_ACEOF
13560 #line $LINENO "configure"
13561 #include "confdefs.h"
13562 #ifndef __sparc__
13563 yes
13564 #endif
13565 _ACEOF
13566 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13567   $EGREP "yes" >/dev/null 2>&1; then
13568   ac_cv_cpp_def_sparc="yes"
13569 else
13570   ac_cv_cpp_def_sparc="no"
13571 fi
13572 rm -f conftest*
13573
13574 fi
13575 echo "$as_me:$LINENO: result: $ac_cv_cpp_def_sparc" >&5
13576 echo "${ECHO_T}$ac_cv_cpp_def_sparc" >&6
13577     ;;
13578 esac
13579 if test "$ac_cv_cpp_def_sparc" = "yes"
13580 then
13581     CFLAGS="$CFLAGS -D__sparc__"
13582     LINTFLAGS="$LINTFLAGS -D__sparc__"
13583 fi
13584
13585
13586 case $host_vendor in
13587   *sun* )
13588     echo "$as_me:$LINENO: checking whether we need to define __sun__" >&5
13589 echo $ECHO_N "checking whether we need to define __sun__... $ECHO_C" >&6
13590 if test "${ac_cv_cpp_def_sun+set}" = set; then
13591   echo $ECHO_N "(cached) $ECHO_C" >&6
13592 else
13593   cat >conftest.$ac_ext <<_ACEOF
13594 #line $LINENO "configure"
13595 #include "confdefs.h"
13596 #ifndef __sun__
13597 yes
13598 #endif
13599 _ACEOF
13600 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13601   $EGREP "yes" >/dev/null 2>&1; then
13602   ac_cv_cpp_def_sun="yes"
13603 else
13604   ac_cv_cpp_def_sun="no"
13605 fi
13606 rm -f conftest*
13607
13608 fi
13609 echo "$as_me:$LINENO: result: $ac_cv_cpp_def_sun" >&5
13610 echo "${ECHO_T}$ac_cv_cpp_def_sun" >&6
13611     ;;
13612 esac
13613 if test "$ac_cv_cpp_def_sun" = "yes"
13614 then
13615     CFLAGS="$CFLAGS -D__sun__"
13616     LINTFLAGS="$LINTFLAGS -D__sun__"
13617 fi
13618
13619
13620
13621
13622
13623           ac_config_commands="$ac_config_commands controls"
13624
13625           ac_config_commands="$ac_config_commands dlls/ddraw/d3ddevice"
13626
13627           ac_config_commands="$ac_config_commands dlls/ddraw/dclipper"
13628
13629           ac_config_commands="$ac_config_commands dlls/ddraw/ddraw"
13630
13631           ac_config_commands="$ac_config_commands dlls/ddraw/direct3d"
13632
13633           ac_config_commands="$ac_config_commands dlls/ddraw/dpalette"
13634
13635           ac_config_commands="$ac_config_commands dlls/ddraw/dsurface"
13636
13637           ac_config_commands="$ac_config_commands dlls/dinput/joystick"
13638
13639           ac_config_commands="$ac_config_commands dlls/dinput/keyboard"
13640
13641           ac_config_commands="$ac_config_commands dlls/dinput/mouse"
13642
13643           ac_config_commands="$ac_config_commands dlls/gdi/enhmfdrv"
13644
13645           ac_config_commands="$ac_config_commands dlls/gdi/mfdrv"
13646
13647           ac_config_commands="$ac_config_commands dlls/gdi/win16drv"
13648
13649           ac_config_commands="$ac_config_commands dlls/kernel/messages"
13650
13651           ac_config_commands="$ac_config_commands dlls/user/dde"
13652
13653           ac_config_commands="$ac_config_commands dlls/user/resources"
13654
13655           ac_config_commands="$ac_config_commands dlls/wineps/data"
13656
13657           ac_config_commands="$ac_config_commands files"
13658
13659           ac_config_commands="$ac_config_commands graphics"
13660
13661           ac_config_commands="$ac_config_commands graphics/x11drv"
13662
13663           ac_config_commands="$ac_config_commands if1632"
13664
13665           ac_config_commands="$ac_config_commands include/wine"
13666
13667           ac_config_commands="$ac_config_commands loader"
13668
13669           ac_config_commands="$ac_config_commands loader/ne"
13670
13671           ac_config_commands="$ac_config_commands memory"
13672
13673           ac_config_commands="$ac_config_commands misc"
13674
13675           ac_config_commands="$ac_config_commands msdos"
13676
13677           ac_config_commands="$ac_config_commands objects"
13678
13679           ac_config_commands="$ac_config_commands programs/regapi/tests"
13680
13681           ac_config_commands="$ac_config_commands programs/regedit/tests"
13682
13683           ac_config_commands="$ac_config_commands relay32"
13684
13685           ac_config_commands="$ac_config_commands scheduler"
13686
13687           ac_config_commands="$ac_config_commands win32"
13688
13689           ac_config_commands="$ac_config_commands windows"
13690
13691
13692 MAKE_RULES=Make.rules
13693
13694
13695 MAKE_DLL_RULES=dlls/Makedll.rules
13696
13697
13698 MAKE_TEST_RULES=dlls/Maketest.rules
13699
13700
13701 MAKE_PROG_RULES=programs/Makeprog.rules
13702
13703
13704                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   ac_config_files="$ac_config_files Make.rules dlls/Makedll.rules dlls/Maketest.rules programs/Makeprog.rules Makefile dlls/Makefile dlls/advapi32/Makefile dlls/advapi32/tests/Makefile dlls/avicap32/Makefile dlls/avifil32/Makefile dlls/cabinet/Makefile dlls/comcat/Makefile dlls/comctl32/Makefile dlls/commdlg/Makefile dlls/crtdll/Makefile dlls/crypt32/Makefile dlls/d3d8/Makefile dlls/dciman32/Makefile dlls/ddraw/Makefile dlls/devenum/Makefile dlls/dinput/Makefile dlls/dinput8/Makefile dlls/dplay/Makefile dlls/dplayx/Makefile dlls/dsound/Makefile dlls/gdi/Makefile dlls/gdi/tests/Makefile dlls/glu32/Makefile dlls/icmp/Makefile dlls/imagehlp/Makefile dlls/imm32/Makefile dlls/kernel/Makefile dlls/kernel/tests/Makefile dlls/lzexpand/Makefile dlls/mapi32/Makefile dlls/mpr/Makefile dlls/msacm/Makefile dlls/msacm/imaadp32/Makefile dlls/msacm/msadp32/Makefile dlls/msacm/msg711/Makefile dlls/msacm/winemp3/Makefile dlls/msdmo/Makefile dlls/msimg32/Makefile dlls/msisys/Makefile dlls/msnet32/Makefile dlls/msvcrt/Makefile dlls/msvcrt/tests/Makefile dlls/msvcrt20/Makefile dlls/msvideo/Makefile dlls/msvideo/msrle32/Makefile dlls/netapi32/Makefile dlls/netapi32/tests/Makefile dlls/ntdll/Makefile dlls/ntdll/tests/Makefile dlls/odbc32/Makefile dlls/ole32/Makefile dlls/oleaut32/Makefile dlls/oleaut32/tests/Makefile dlls/olecli/Makefile dlls/oledlg/Makefile dlls/olepro32/Makefile dlls/olesvr/Makefile dlls/opengl32/Makefile dlls/psapi/Makefile dlls/qcap/Makefile dlls/quartz/Makefile dlls/rasapi32/Makefile dlls/richedit/Makefile dlls/rpcrt4/Makefile dlls/rpcrt4/tests/Makefile dlls/serialui/Makefile dlls/setupapi/Makefile dlls/shdocvw/Makefile dlls/shell32/Makefile dlls/shell32/tests/Makefile dlls/shfolder/Makefile dlls/shlwapi/Makefile dlls/shlwapi/tests/Makefile dlls/snmpapi/Makefile dlls/sti/Makefile dlls/tapi32/Makefile dlls/ttydrv/Makefile dlls/twain/Makefile dlls/url/Makefile dlls/urlmon/Makefile dlls/urlmon/tests/Makefile dlls/user/Makefile dlls/user/tests/Makefile dlls/version/Makefile dlls/win32s/Makefile dlls/winaspi/Makefile dlls/winedos/Makefile dlls/wineps/Makefile dlls/wininet/Makefile dlls/wininet/tests/Makefile dlls/winmm/Makefile dlls/winmm/joystick/Makefile dlls/winmm/mcianim/Makefile dlls/winmm/mciavi/Makefile dlls/winmm/mcicda/Makefile dlls/winmm/mciseq/Makefile dlls/winmm/mciwave/Makefile dlls/winmm/midimap/Makefile dlls/winmm/tests/Makefile dlls/winmm/wavemap/Makefile dlls/winmm/winealsa/Makefile dlls/winmm/winearts/Makefile dlls/winmm/wineaudioio/Makefile dlls/winmm/winenas/Makefile dlls/winmm/wineoss/Makefile dlls/winnls/Makefile dlls/winsock/Makefile dlls/winsock/tests/Makefile dlls/winspool/Makefile dlls/wintrust/Makefile dlls/wow32/Makefile dlls/wsock32/Makefile dlls/x11drv/Makefile documentation/Makefile include/Makefile library/Makefile miscemu/Makefile ole/Makefile programs/Makefile programs/avitools/Makefile programs/clock/Makefile programs/cmdlgtst/Makefile programs/control/Makefile programs/expand/Makefile programs/notepad/Makefile programs/osversioncheck/Makefile programs/progman/Makefile programs/regapi/Makefile programs/regedit/Makefile programs/regsvr32/Makefile programs/regtest/Makefile programs/rundll32/Makefile programs/uninstaller/Makefile programs/view/Makefile programs/wcmd/Makefile programs/wineconsole/Makefile programs/winedbg/Makefile programs/winefile/Makefile programs/winemine/Makefile programs/winepath/Makefile programs/winhelp/Makefile programs/winver/Makefile server/Makefile tools/Makefile tools/widl/Makefile tools/winapi/Makefile tools/winebuild/Makefile tools/winedump/Makefile tools/wmc/Makefile tools/wpp/Makefile tools/wrc/Makefile unicode/Makefile"
13705
13706
13707 cat >confcache <<\_ACEOF
13708 # This file is a shell script that caches the results of configure
13709 # tests run on this system so they can be shared between configure
13710 # scripts and configure runs, see configure's option --config-cache.
13711 # It is not useful on other systems.  If it contains results you don't
13712 # want to keep, you may remove or edit it.
13713 #
13714 # config.status only pays attention to the cache file if you give it
13715 # the --recheck option to rerun configure.
13716 #
13717 # `ac_cv_env_foo' variables (set or unset) will be overridden when
13718 # loading this file, other *unset* `ac_cv_foo' will be assigned the
13719 # following values.
13720
13721 _ACEOF
13722
13723 # The following way of writing the cache mishandles newlines in values,
13724 # but we know of no workaround that is simple, portable, and efficient.
13725 # So, don't put newlines in cache variables' values.
13726 # Ultrix sh set writes to stderr and can't be redirected directly,
13727 # and sets the high bit in the cache file unless we assign to the vars.
13728 {
13729   (set) 2>&1 |
13730     case `(ac_space=' '; set | grep ac_space) 2>&1` in
13731     *ac_space=\ *)
13732       # `set' does not quote correctly, so add quotes (double-quote
13733       # substitution turns \\\\ into \\, and sed turns \\ into \).
13734       sed -n \
13735         "s/'/'\\\\''/g;
13736           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13737       ;;
13738     *)
13739       # `set' quotes correctly as required by POSIX, so do not add quotes.
13740       sed -n \
13741         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
13742       ;;
13743     esac;
13744 } |
13745   sed '
13746      t clear
13747      : clear
13748      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13749      t end
13750      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13751      : end' >>confcache
13752 if cmp -s $cache_file confcache; then :; else
13753   if test -w $cache_file; then
13754     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
13755     cat confcache >$cache_file
13756   else
13757     echo "not updating unwritable cache $cache_file"
13758   fi
13759 fi
13760 rm -f confcache
13761
13762 test "x$prefix" = xNONE && prefix=$ac_default_prefix
13763 # Let make expand exec_prefix.
13764 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13765
13766 # VPATH may cause trouble with some makes, so we remove $(srcdir),
13767 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
13768 # trailing colons and then remove the whole line if VPATH becomes empty
13769 # (actually we leave an empty line to preserve line numbers).
13770 if test "x$srcdir" = x.; then
13771   ac_vpsub='/^[         ]*VPATH[        ]*=/{
13772 s/:*\$(srcdir):*/:/;
13773 s/:*\${srcdir}:*/:/;
13774 s/:*@srcdir@:*/:/;
13775 s/^\([^=]*=[    ]*\):*/\1/;
13776 s/:*$//;
13777 s/^[^=]*=[      ]*$//;
13778 }'
13779 fi
13780
13781 DEFS=-DHAVE_CONFIG_H
13782
13783 ac_libobjs=
13784 ac_ltlibobjs=
13785 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13786   # 1. Remove the extension, and $U if already installed.
13787   ac_i=`echo "$ac_i" |
13788          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
13789   # 2. Add them.
13790   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
13791   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
13792 done
13793 LIBOBJS=$ac_libobjs
13794
13795 LTLIBOBJS=$ac_ltlibobjs
13796
13797
13798
13799 : ${CONFIG_STATUS=./config.status}
13800 ac_clean_files_save=$ac_clean_files
13801 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13802 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
13803 echo "$as_me: creating $CONFIG_STATUS" >&6;}
13804 cat >$CONFIG_STATUS <<_ACEOF
13805 #! $SHELL
13806 # Generated by $as_me.
13807 # Run this file to recreate the current configuration.
13808 # Compiler output produced by configure, useful for debugging
13809 # configure, is in config.log if it exists.
13810
13811 debug=false
13812 SHELL=\${CONFIG_SHELL-$SHELL}
13813 _ACEOF
13814
13815 cat >>$CONFIG_STATUS <<\_ACEOF
13816 ## --------------------- ##
13817 ## M4sh Initialization.  ##
13818 ## --------------------- ##
13819
13820 # Be Bourne compatible
13821 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
13822   emulate sh
13823   NULLCMD=:
13824   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
13825   # is contrary to our usage.  Disable this feature.
13826   alias -g '${1+"$@"}'='"$@"'
13827 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
13828   set -o posix
13829 fi
13830
13831 # Support unset when possible.
13832 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
13833   as_unset=unset
13834 else
13835   as_unset=false
13836 fi
13837
13838
13839 # Work around bugs in pre-3.0 UWIN ksh.
13840 $as_unset ENV MAIL MAILPATH
13841 PS1='$ '
13842 PS2='> '
13843 PS4='+ '
13844
13845 # NLS nuisances.
13846 for as_var in LANG LANGUAGE LC_ALL LC_COLLATE LC_CTYPE LC_NUMERIC LC_MESSAGES LC_TIME
13847 do
13848   if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
13849     eval $as_var=C; export $as_var
13850   else
13851     $as_unset $as_var
13852   fi
13853 done
13854
13855 # Required to use basename.
13856 if expr a : '\(a\)' >/dev/null 2>&1; then
13857   as_expr=expr
13858 else
13859   as_expr=false
13860 fi
13861
13862 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
13863   as_basename=basename
13864 else
13865   as_basename=false
13866 fi
13867
13868
13869 # Name of the executable.
13870 as_me=`$as_basename "$0" ||
13871 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13872          X"$0" : 'X\(//\)$' \| \
13873          X"$0" : 'X\(/\)$' \| \
13874          .     : '\(.\)' 2>/dev/null ||
13875 echo X/"$0" |
13876     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
13877           /^X\/\(\/\/\)$/{ s//\1/; q; }
13878           /^X\/\(\/\).*/{ s//\1/; q; }
13879           s/.*/./; q'`
13880
13881
13882 # PATH needs CR, and LINENO needs CR and PATH.
13883 # Avoid depending upon Character Ranges.
13884 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13885 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13886 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13887 as_cr_digits='0123456789'
13888 as_cr_alnum=$as_cr_Letters$as_cr_digits
13889
13890 # The user is always right.
13891 if test "${PATH_SEPARATOR+set}" != set; then
13892   echo "#! /bin/sh" >conftest.sh
13893   echo  "exit 0"   >>conftest.sh
13894   chmod +x conftest.sh
13895   if (PATH="/nonexistent;."; conftest.sh) >/dev/null 2>&1; then
13896     PATH_SEPARATOR=';'
13897   else
13898     PATH_SEPARATOR=:
13899   fi
13900   rm -f conftest.sh
13901 fi
13902
13903
13904   as_lineno_1=$LINENO
13905   as_lineno_2=$LINENO
13906   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
13907   test "x$as_lineno_1" != "x$as_lineno_2" &&
13908   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
13909   # Find who we are.  Look in the path if we contain no path at all
13910   # relative or not.
13911   case $0 in
13912     *[\\/]* ) as_myself=$0 ;;
13913     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13914 for as_dir in $PATH
13915 do
13916   IFS=$as_save_IFS
13917   test -z "$as_dir" && as_dir=.
13918   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13919 done
13920
13921        ;;
13922   esac
13923   # We did not find ourselves, most probably we were run as `sh COMMAND'
13924   # in which case we are not to be found in the path.
13925   if test "x$as_myself" = x; then
13926     as_myself=$0
13927   fi
13928   if test ! -f "$as_myself"; then
13929     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
13930 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
13931    { (exit 1); exit 1; }; }
13932   fi
13933   case $CONFIG_SHELL in
13934   '')
13935     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13936 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
13937 do
13938   IFS=$as_save_IFS
13939   test -z "$as_dir" && as_dir=.
13940   for as_base in sh bash ksh sh5; do
13941          case $as_dir in
13942          /*)
13943            if ("$as_dir/$as_base" -c '
13944   as_lineno_1=$LINENO
13945   as_lineno_2=$LINENO
13946   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
13947   test "x$as_lineno_1" != "x$as_lineno_2" &&
13948   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
13949              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
13950              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
13951              CONFIG_SHELL=$as_dir/$as_base
13952              export CONFIG_SHELL
13953              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
13954            fi;;
13955          esac
13956        done
13957 done
13958 ;;
13959   esac
13960
13961   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
13962   # uniformly replaced by the line number.  The first 'sed' inserts a
13963   # line-number line before each line; the second 'sed' does the real
13964   # work.  The second script uses 'N' to pair each line-number line
13965   # with the numbered line, and appends trailing '-' during
13966   # substitution so that $LINENO is not a special case at line end.
13967   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
13968   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
13969   sed '=' <$as_myself |
13970     sed '
13971       N
13972       s,$,-,
13973       : loop
13974       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
13975       t loop
13976       s,-$,,
13977       s,^['$as_cr_digits']*\n,,
13978     ' >$as_me.lineno &&
13979   chmod +x $as_me.lineno ||
13980     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
13981 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
13982    { (exit 1); exit 1; }; }
13983
13984   # Don't try to exec as it changes $[0], causing all sort of problems
13985   # (the dirname of $[0] is not the place where we might find the
13986   # original and so on.  Autoconf is especially sensible to this).
13987   . ./$as_me.lineno
13988   # Exit status is that of the last command.
13989   exit
13990 }
13991
13992
13993 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
13994   *c*,-n*) ECHO_N= ECHO_C='
13995 ' ECHO_T='      ' ;;
13996   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
13997   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
13998 esac
13999
14000 if expr a : '\(a\)' >/dev/null 2>&1; then
14001   as_expr=expr
14002 else
14003   as_expr=false
14004 fi
14005
14006 rm -f conf$$ conf$$.exe conf$$.file
14007 echo >conf$$.file
14008 if ln -s conf$$.file conf$$ 2>/dev/null; then
14009   # We could just check for DJGPP; but this test a) works b) is more generic
14010   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
14011   if test -f conf$$.exe; then
14012     # Don't use ln at all; we don't have any links
14013     as_ln_s='cp -p'
14014   else
14015     as_ln_s='ln -s'
14016   fi
14017 elif ln conf$$.file conf$$ 2>/dev/null; then
14018   as_ln_s=ln
14019 else
14020   as_ln_s='cp -p'
14021 fi
14022 rm -f conf$$ conf$$.exe conf$$.file
14023
14024 if mkdir -p . 2>/dev/null; then
14025   as_mkdir_p=:
14026 else
14027   as_mkdir_p=false
14028 fi
14029
14030 as_executable_p="test -f"
14031
14032 # Sed expression to map a string onto a valid CPP name.
14033 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
14034
14035 # Sed expression to map a string onto a valid variable name.
14036 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
14037
14038
14039 # IFS
14040 # We need space, tab and new line, in precisely that order.
14041 as_nl='
14042 '
14043 IFS="   $as_nl"
14044
14045 # CDPATH.
14046 $as_unset CDPATH
14047
14048 exec 6>&1
14049
14050 # Open the log real soon, to keep \$[0] and so on meaningful, and to
14051 # report actual input values of CONFIG_FILES etc. instead of their
14052 # values after options handling.  Logging --version etc. is OK.
14053 exec 5>>config.log
14054 {
14055   echo
14056   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14057 ## Running $as_me. ##
14058 _ASBOX
14059 } >&5
14060 cat >&5 <<_CSEOF
14061
14062 This file was extended by Wine $as_me 20021031, which was
14063 generated by GNU Autoconf 2.54.  Invocation command line was
14064
14065   CONFIG_FILES    = $CONFIG_FILES
14066   CONFIG_HEADERS  = $CONFIG_HEADERS
14067   CONFIG_LINKS    = $CONFIG_LINKS
14068   CONFIG_COMMANDS = $CONFIG_COMMANDS
14069   $ $0 $@
14070
14071 _CSEOF
14072 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
14073 echo >&5
14074 _ACEOF
14075
14076 # Files that config.status was made for.
14077 if test -n "$ac_config_files"; then
14078   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
14079 fi
14080
14081 if test -n "$ac_config_headers"; then
14082   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
14083 fi
14084
14085 if test -n "$ac_config_links"; then
14086   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
14087 fi
14088
14089 if test -n "$ac_config_commands"; then
14090   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
14091 fi
14092
14093 cat >>$CONFIG_STATUS <<\_ACEOF
14094
14095 ac_cs_usage="\
14096 \`$as_me' instantiates files from templates according to the
14097 current configuration.
14098
14099 Usage: $0 [OPTIONS] [FILE]...
14100
14101   -h, --help       print this help, then exit
14102   -V, --version    print version number, then exit
14103   -d, --debug      don't remove temporary files
14104       --recheck    update $as_me by reconfiguring in the same conditions
14105   --file=FILE[:TEMPLATE]
14106                    instantiate the configuration file FILE
14107   --header=FILE[:TEMPLATE]
14108                    instantiate the configuration header FILE
14109
14110 Configuration files:
14111 $config_files
14112
14113 Configuration headers:
14114 $config_headers
14115
14116 Configuration commands:
14117 $config_commands
14118
14119 Report bugs to <bug-autoconf@gnu.org>."
14120 _ACEOF
14121
14122 cat >>$CONFIG_STATUS <<_ACEOF
14123 ac_cs_version="\\
14124 Wine config.status 20021031
14125 configured by $0, generated by GNU Autoconf 2.54,
14126   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
14127
14128 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
14129 Free Software Foundation, Inc.
14130 This config.status script is free software; the Free Software Foundation
14131 gives unlimited permission to copy, distribute and modify it."
14132 srcdir=$srcdir
14133 INSTALL="$INSTALL"
14134 _ACEOF
14135
14136 cat >>$CONFIG_STATUS <<\_ACEOF
14137 # If no file are specified by the user, then we need to provide default
14138 # value.  By we need to know if files were specified by the user.
14139 ac_need_defaults=:
14140 while test $# != 0
14141 do
14142   case $1 in
14143   --*=*)
14144     ac_option=`expr "x$1" : 'x\([^=]*\)='`
14145     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
14146     ac_shift=:
14147     ;;
14148   -*)
14149     ac_option=$1
14150     ac_optarg=$2
14151     ac_shift=shift
14152     ;;
14153   *) # This is not an option, so the user has probably given explicit
14154      # arguments.
14155      ac_option=$1
14156      ac_need_defaults=false;;
14157   esac
14158
14159   case $ac_option in
14160   # Handling of the options.
14161 _ACEOF
14162 cat >>$CONFIG_STATUS <<_ACEOF
14163   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14164     echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
14165     exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
14166 _ACEOF
14167 cat >>$CONFIG_STATUS <<\_ACEOF
14168   --version | --vers* | -V )
14169     echo "$ac_cs_version"; exit 0 ;;
14170   --he | --h)
14171     # Conflict between --help and --header
14172     { { echo "$as_me:$LINENO: error: ambiguous option: $1
14173 Try \`$0 --help' for more information." >&5
14174 echo "$as_me: error: ambiguous option: $1
14175 Try \`$0 --help' for more information." >&2;}
14176    { (exit 1); exit 1; }; };;
14177   --help | --hel | -h )
14178     echo "$ac_cs_usage"; exit 0 ;;
14179   --debug | --d* | -d )
14180     debug=: ;;
14181   --file | --fil | --fi | --f )
14182     $ac_shift
14183     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
14184     ac_need_defaults=false;;
14185   --header | --heade | --head | --hea )
14186     $ac_shift
14187     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
14188     ac_need_defaults=false;;
14189
14190   # This is an error.
14191   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
14192 Try \`$0 --help' for more information." >&5
14193 echo "$as_me: error: unrecognized option: $1
14194 Try \`$0 --help' for more information." >&2;}
14195    { (exit 1); exit 1; }; } ;;
14196
14197   *) ac_config_targets="$ac_config_targets $1" ;;
14198
14199   esac
14200   shift
14201 done
14202
14203 _ACEOF
14204
14205
14206
14207
14208
14209 cat >>$CONFIG_STATUS <<\_ACEOF
14210 for ac_config_target in $ac_config_targets
14211 do
14212   case "$ac_config_target" in
14213   # Handling of arguments.
14214   "Make.rules" ) CONFIG_FILES="$CONFIG_FILES Make.rules" ;;
14215   "dlls/Makedll.rules" ) CONFIG_FILES="$CONFIG_FILES dlls/Makedll.rules" ;;
14216   "dlls/Maketest.rules" ) CONFIG_FILES="$CONFIG_FILES dlls/Maketest.rules" ;;
14217   "programs/Makeprog.rules" ) CONFIG_FILES="$CONFIG_FILES programs/Makeprog.rules" ;;
14218   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
14219   "dlls/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/Makefile" ;;
14220   "dlls/advapi32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/advapi32/Makefile" ;;
14221   "dlls/advapi32/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/advapi32/tests/Makefile" ;;
14222   "dlls/avicap32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/avicap32/Makefile" ;;
14223   "dlls/avifil32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/avifil32/Makefile" ;;
14224   "dlls/cabinet/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/cabinet/Makefile" ;;
14225   "dlls/comcat/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/comcat/Makefile" ;;
14226   "dlls/comctl32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/comctl32/Makefile" ;;
14227   "dlls/commdlg/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/commdlg/Makefile" ;;
14228   "dlls/crtdll/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/crtdll/Makefile" ;;
14229   "dlls/crypt32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/crypt32/Makefile" ;;
14230   "dlls/d3d8/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/d3d8/Makefile" ;;
14231   "dlls/dciman32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dciman32/Makefile" ;;
14232   "dlls/ddraw/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ddraw/Makefile" ;;
14233   "dlls/devenum/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/devenum/Makefile" ;;
14234   "dlls/dinput/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dinput/Makefile" ;;
14235   "dlls/dinput8/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dinput8/Makefile" ;;
14236   "dlls/dplay/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dplay/Makefile" ;;
14237   "dlls/dplayx/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dplayx/Makefile" ;;
14238   "dlls/dsound/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dsound/Makefile" ;;
14239   "dlls/gdi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/gdi/Makefile" ;;
14240   "dlls/gdi/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/gdi/tests/Makefile" ;;
14241   "dlls/glu32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/glu32/Makefile" ;;
14242   "dlls/icmp/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/icmp/Makefile" ;;
14243   "dlls/imagehlp/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/imagehlp/Makefile" ;;
14244   "dlls/imm32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/imm32/Makefile" ;;
14245   "dlls/kernel/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/kernel/Makefile" ;;
14246   "dlls/kernel/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/kernel/tests/Makefile" ;;
14247   "dlls/lzexpand/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/lzexpand/Makefile" ;;
14248   "dlls/mapi32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/mapi32/Makefile" ;;
14249   "dlls/mpr/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/mpr/Makefile" ;;
14250   "dlls/msacm/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msacm/Makefile" ;;
14251   "dlls/msacm/imaadp32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msacm/imaadp32/Makefile" ;;
14252   "dlls/msacm/msadp32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msacm/msadp32/Makefile" ;;
14253   "dlls/msacm/msg711/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msacm/msg711/Makefile" ;;
14254   "dlls/msacm/winemp3/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msacm/winemp3/Makefile" ;;
14255   "dlls/msdmo/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msdmo/Makefile" ;;
14256   "dlls/msimg32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msimg32/Makefile" ;;
14257   "dlls/msisys/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msisys/Makefile" ;;
14258   "dlls/msnet32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msnet32/Makefile" ;;
14259   "dlls/msvcrt/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvcrt/Makefile" ;;
14260   "dlls/msvcrt/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvcrt/tests/Makefile" ;;
14261   "dlls/msvcrt20/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvcrt20/Makefile" ;;
14262   "dlls/msvideo/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvideo/Makefile" ;;
14263   "dlls/msvideo/msrle32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvideo/msrle32/Makefile" ;;
14264   "dlls/netapi32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/netapi32/Makefile" ;;
14265   "dlls/netapi32/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/netapi32/tests/Makefile" ;;
14266   "dlls/ntdll/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ntdll/Makefile" ;;
14267   "dlls/ntdll/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ntdll/tests/Makefile" ;;
14268   "dlls/odbc32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/odbc32/Makefile" ;;
14269   "dlls/ole32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ole32/Makefile" ;;
14270   "dlls/oleaut32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/oleaut32/Makefile" ;;
14271   "dlls/oleaut32/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/oleaut32/tests/Makefile" ;;
14272   "dlls/olecli/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/olecli/Makefile" ;;
14273   "dlls/oledlg/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/oledlg/Makefile" ;;
14274   "dlls/olepro32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/olepro32/Makefile" ;;
14275   "dlls/olesvr/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/olesvr/Makefile" ;;
14276   "dlls/opengl32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/opengl32/Makefile" ;;
14277   "dlls/psapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/psapi/Makefile" ;;
14278   "dlls/qcap/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/qcap/Makefile" ;;
14279   "dlls/quartz/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/quartz/Makefile" ;;
14280   "dlls/rasapi32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/rasapi32/Makefile" ;;
14281   "dlls/richedit/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/richedit/Makefile" ;;
14282   "dlls/rpcrt4/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/rpcrt4/Makefile" ;;
14283   "dlls/rpcrt4/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/rpcrt4/tests/Makefile" ;;
14284   "dlls/serialui/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/serialui/Makefile" ;;
14285   "dlls/setupapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/setupapi/Makefile" ;;
14286   "dlls/shdocvw/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shdocvw/Makefile" ;;
14287   "dlls/shell32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shell32/Makefile" ;;
14288   "dlls/shell32/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shell32/tests/Makefile" ;;
14289   "dlls/shfolder/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shfolder/Makefile" ;;
14290   "dlls/shlwapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shlwapi/Makefile" ;;
14291   "dlls/shlwapi/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shlwapi/tests/Makefile" ;;
14292   "dlls/snmpapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/snmpapi/Makefile" ;;
14293   "dlls/sti/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/sti/Makefile" ;;
14294   "dlls/tapi32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/tapi32/Makefile" ;;
14295   "dlls/ttydrv/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ttydrv/Makefile" ;;
14296   "dlls/twain/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/twain/Makefile" ;;
14297   "dlls/url/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/url/Makefile" ;;
14298   "dlls/urlmon/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/urlmon/Makefile" ;;
14299   "dlls/urlmon/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/urlmon/tests/Makefile" ;;
14300   "dlls/user/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/user/Makefile" ;;
14301   "dlls/user/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/user/tests/Makefile" ;;
14302   "dlls/version/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/version/Makefile" ;;
14303   "dlls/win32s/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/win32s/Makefile" ;;
14304   "dlls/winaspi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winaspi/Makefile" ;;
14305   "dlls/winedos/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winedos/Makefile" ;;
14306   "dlls/wineps/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wineps/Makefile" ;;
14307   "dlls/wininet/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wininet/Makefile" ;;
14308   "dlls/wininet/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wininet/tests/Makefile" ;;
14309   "dlls/winmm/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/Makefile" ;;
14310   "dlls/winmm/joystick/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/joystick/Makefile" ;;
14311   "dlls/winmm/mcianim/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/mcianim/Makefile" ;;
14312   "dlls/winmm/mciavi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/mciavi/Makefile" ;;
14313   "dlls/winmm/mcicda/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/mcicda/Makefile" ;;
14314   "dlls/winmm/mciseq/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/mciseq/Makefile" ;;
14315   "dlls/winmm/mciwave/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/mciwave/Makefile" ;;
14316   "dlls/winmm/midimap/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/midimap/Makefile" ;;
14317   "dlls/winmm/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/tests/Makefile" ;;
14318   "dlls/winmm/wavemap/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/wavemap/Makefile" ;;
14319   "dlls/winmm/winealsa/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/winealsa/Makefile" ;;
14320   "dlls/winmm/winearts/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/winearts/Makefile" ;;
14321   "dlls/winmm/wineaudioio/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/wineaudioio/Makefile" ;;
14322   "dlls/winmm/winenas/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/winenas/Makefile" ;;
14323   "dlls/winmm/wineoss/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/wineoss/Makefile" ;;
14324   "dlls/winnls/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winnls/Makefile" ;;
14325   "dlls/winsock/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winsock/Makefile" ;;
14326   "dlls/winsock/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winsock/tests/Makefile" ;;
14327   "dlls/winspool/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winspool/Makefile" ;;
14328   "dlls/wintrust/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wintrust/Makefile" ;;
14329   "dlls/wow32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wow32/Makefile" ;;
14330   "dlls/wsock32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wsock32/Makefile" ;;
14331   "dlls/x11drv/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/x11drv/Makefile" ;;
14332   "documentation/Makefile" ) CONFIG_FILES="$CONFIG_FILES documentation/Makefile" ;;
14333   "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
14334   "library/Makefile" ) CONFIG_FILES="$CONFIG_FILES library/Makefile" ;;
14335   "miscemu/Makefile" ) CONFIG_FILES="$CONFIG_FILES miscemu/Makefile" ;;
14336   "ole/Makefile" ) CONFIG_FILES="$CONFIG_FILES ole/Makefile" ;;
14337   "programs/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/Makefile" ;;
14338   "programs/avitools/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/avitools/Makefile" ;;
14339   "programs/clock/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/clock/Makefile" ;;
14340   "programs/cmdlgtst/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/cmdlgtst/Makefile" ;;
14341   "programs/control/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/control/Makefile" ;;
14342   "programs/expand/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/expand/Makefile" ;;
14343   "programs/notepad/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/notepad/Makefile" ;;
14344   "programs/osversioncheck/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/osversioncheck/Makefile" ;;
14345   "programs/progman/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/progman/Makefile" ;;
14346   "programs/regapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/regapi/Makefile" ;;
14347   "programs/regedit/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/regedit/Makefile" ;;
14348   "programs/regsvr32/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/regsvr32/Makefile" ;;
14349   "programs/regtest/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/regtest/Makefile" ;;
14350   "programs/rundll32/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/rundll32/Makefile" ;;
14351   "programs/uninstaller/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/uninstaller/Makefile" ;;
14352   "programs/view/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/view/Makefile" ;;
14353   "programs/wcmd/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/wcmd/Makefile" ;;
14354   "programs/wineconsole/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/wineconsole/Makefile" ;;
14355   "programs/winedbg/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winedbg/Makefile" ;;
14356   "programs/winefile/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winefile/Makefile" ;;
14357   "programs/winemine/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winemine/Makefile" ;;
14358   "programs/winepath/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winepath/Makefile" ;;
14359   "programs/winhelp/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winhelp/Makefile" ;;
14360   "programs/winver/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winver/Makefile" ;;
14361   "server/Makefile" ) CONFIG_FILES="$CONFIG_FILES server/Makefile" ;;
14362   "tools/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
14363   "tools/widl/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/widl/Makefile" ;;
14364   "tools/winapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/winapi/Makefile" ;;
14365   "tools/winebuild/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/winebuild/Makefile" ;;
14366   "tools/winedump/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/winedump/Makefile" ;;
14367   "tools/wmc/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/wmc/Makefile" ;;
14368   "tools/wpp/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/wpp/Makefile" ;;
14369   "tools/wrc/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/wrc/Makefile" ;;
14370   "unicode/Makefile" ) CONFIG_FILES="$CONFIG_FILES unicode/Makefile" ;;
14371   "controls" ) CONFIG_COMMANDS="$CONFIG_COMMANDS controls" ;;
14372   "dlls/ddraw/d3ddevice" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/d3ddevice" ;;
14373   "dlls/ddraw/dclipper" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/dclipper" ;;
14374   "dlls/ddraw/ddraw" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/ddraw" ;;
14375   "dlls/ddraw/direct3d" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/direct3d" ;;
14376   "dlls/ddraw/dpalette" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/dpalette" ;;
14377   "dlls/ddraw/dsurface" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/dsurface" ;;
14378   "dlls/dinput/joystick" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/dinput/joystick" ;;
14379   "dlls/dinput/keyboard" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/dinput/keyboard" ;;
14380   "dlls/dinput/mouse" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/dinput/mouse" ;;
14381   "dlls/gdi/enhmfdrv" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/gdi/enhmfdrv" ;;
14382   "dlls/gdi/mfdrv" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/gdi/mfdrv" ;;
14383   "dlls/gdi/win16drv" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/gdi/win16drv" ;;
14384   "dlls/kernel/messages" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/kernel/messages" ;;
14385   "dlls/user/dde" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/user/dde" ;;
14386   "dlls/user/resources" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/user/resources" ;;
14387   "dlls/wineps/data" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/wineps/data" ;;
14388   "files" ) CONFIG_COMMANDS="$CONFIG_COMMANDS files" ;;
14389   "graphics" ) CONFIG_COMMANDS="$CONFIG_COMMANDS graphics" ;;
14390   "graphics/x11drv" ) CONFIG_COMMANDS="$CONFIG_COMMANDS graphics/x11drv" ;;
14391   "if1632" ) CONFIG_COMMANDS="$CONFIG_COMMANDS if1632" ;;
14392   "include/wine" ) CONFIG_COMMANDS="$CONFIG_COMMANDS include/wine" ;;
14393   "loader" ) CONFIG_COMMANDS="$CONFIG_COMMANDS loader" ;;
14394   "loader/ne" ) CONFIG_COMMANDS="$CONFIG_COMMANDS loader/ne" ;;
14395   "memory" ) CONFIG_COMMANDS="$CONFIG_COMMANDS memory" ;;
14396   "misc" ) CONFIG_COMMANDS="$CONFIG_COMMANDS misc" ;;
14397   "msdos" ) CONFIG_COMMANDS="$CONFIG_COMMANDS msdos" ;;
14398   "objects" ) CONFIG_COMMANDS="$CONFIG_COMMANDS objects" ;;
14399   "programs/regapi/tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS programs/regapi/tests" ;;
14400   "programs/regedit/tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS programs/regedit/tests" ;;
14401   "relay32" ) CONFIG_COMMANDS="$CONFIG_COMMANDS relay32" ;;
14402   "scheduler" ) CONFIG_COMMANDS="$CONFIG_COMMANDS scheduler" ;;
14403   "win32" ) CONFIG_COMMANDS="$CONFIG_COMMANDS win32" ;;
14404   "windows" ) CONFIG_COMMANDS="$CONFIG_COMMANDS windows" ;;
14405   "include/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
14406   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
14407 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
14408    { (exit 1); exit 1; }; };;
14409   esac
14410 done
14411
14412 # If the user did not use the arguments to specify the items to instantiate,
14413 # then the envvar interface is used.  Set only those that are not.
14414 # We use the long form for the default assignment because of an extremely
14415 # bizarre bug on SunOS 4.1.3.
14416 if $ac_need_defaults; then
14417   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14418   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
14419   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
14420 fi
14421
14422 # Create a temporary directory, and hook for its removal unless debugging.
14423 $debug ||
14424 {
14425   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
14426   trap '{ (exit 1); exit 1; }' 1 2 13 15
14427 }
14428
14429 # Create a (secure) tmp directory for tmp files.
14430 : ${TMPDIR=/tmp}
14431 {
14432   tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
14433   test -n "$tmp" && test -d "$tmp"
14434 }  ||
14435 {
14436   tmp=$TMPDIR/cs$$-$RANDOM
14437   (umask 077 && mkdir $tmp)
14438 } ||
14439 {
14440    echo "$me: cannot create a temporary directory in $TMPDIR" >&2
14441    { (exit 1); exit 1; }
14442 }
14443
14444 _ACEOF
14445
14446 cat >>$CONFIG_STATUS <<_ACEOF
14447
14448 #
14449 # CONFIG_FILES section.
14450 #
14451
14452 # No need to generate the scripts if there are no CONFIG_FILES.
14453 # This happens for instance when ./config.status config.h
14454 if test -n "\$CONFIG_FILES"; then
14455   # Protect against being on the right side of a sed subst in config.status.
14456   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
14457    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
14458 s,@SHELL@,$SHELL,;t t
14459 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
14460 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
14461 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
14462 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
14463 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
14464 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
14465 s,@exec_prefix@,$exec_prefix,;t t
14466 s,@prefix@,$prefix,;t t
14467 s,@program_transform_name@,$program_transform_name,;t t
14468 s,@bindir@,$bindir,;t t
14469 s,@sbindir@,$sbindir,;t t
14470 s,@libexecdir@,$libexecdir,;t t
14471 s,@datadir@,$datadir,;t t
14472 s,@sysconfdir@,$sysconfdir,;t t
14473 s,@sharedstatedir@,$sharedstatedir,;t t
14474 s,@localstatedir@,$localstatedir,;t t
14475 s,@libdir@,$libdir,;t t
14476 s,@includedir@,$includedir,;t t
14477 s,@oldincludedir@,$oldincludedir,;t t
14478 s,@infodir@,$infodir,;t t
14479 s,@mandir@,$mandir,;t t
14480 s,@build_alias@,$build_alias,;t t
14481 s,@host_alias@,$host_alias,;t t
14482 s,@target_alias@,$target_alias,;t t
14483 s,@DEFS@,$DEFS,;t t
14484 s,@ECHO_C@,$ECHO_C,;t t
14485 s,@ECHO_N@,$ECHO_N,;t t
14486 s,@ECHO_T@,$ECHO_T,;t t
14487 s,@LIBS@,$LIBS,;t t
14488 s,@LIBEXT@,$LIBEXT,;t t
14489 s,@OPTIONS@,$OPTIONS,;t t
14490 s,@WIN16_FILES@,$WIN16_FILES,;t t
14491 s,@WIN16_INSTALL@,$WIN16_INSTALL,;t t
14492 s,@build@,$build,;t t
14493 s,@build_cpu@,$build_cpu,;t t
14494 s,@build_vendor@,$build_vendor,;t t
14495 s,@build_os@,$build_os,;t t
14496 s,@host@,$host,;t t
14497 s,@host_cpu@,$host_cpu,;t t
14498 s,@host_vendor@,$host_vendor,;t t
14499 s,@host_os@,$host_os,;t t
14500 s,@SET_MAKE@,$SET_MAKE,;t t
14501 s,@CC@,$CC,;t t
14502 s,@CFLAGS@,$CFLAGS,;t t
14503 s,@LDFLAGS@,$LDFLAGS,;t t
14504 s,@CPPFLAGS@,$CPPFLAGS,;t t
14505 s,@ac_ct_CC@,$ac_ct_CC,;t t
14506 s,@EXEEXT@,$EXEEXT,;t t
14507 s,@OBJEXT@,$OBJEXT,;t t
14508 s,@CPP@,$CPP,;t t
14509 s,@TOOLSDIR@,$TOOLSDIR,;t t
14510 s,@X_CFLAGS@,$X_CFLAGS,;t t
14511 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
14512 s,@X_LIBS@,$X_LIBS,;t t
14513 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
14514 s,@YACC@,$YACC,;t t
14515 s,@LEX@,$LEX,;t t
14516 s,@LEXLIB@,$LEXLIB,;t t
14517 s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
14518 s,@XYACC@,$XYACC,;t t
14519 s,@XLEX@,$XLEX,;t t
14520 s,@LD@,$LD,;t t
14521 s,@ac_ct_LD@,$ac_ct_LD,;t t
14522 s,@AR@,$AR,;t t
14523 s,@ac_ct_AR@,$ac_ct_AR,;t t
14524 s,@RANLIB@,$RANLIB,;t t
14525 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
14526 s,@STRIP@,$STRIP,;t t
14527 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
14528 s,@WINDRES@,$WINDRES,;t t
14529 s,@ac_ct_WINDRES@,$ac_ct_WINDRES,;t t
14530 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
14531 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
14532 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
14533 s,@LN_S@,$LN_S,;t t
14534 s,@LN@,$LN,;t t
14535 s,@C2MAN@,$C2MAN,;t t
14536 s,@LDCONFIG@,$LDCONFIG,;t t
14537 s,@LINT@,$LINT,;t t
14538 s,@LINTFLAGS@,$LINTFLAGS,;t t
14539 s,@JPEGLIB@,$JPEGLIB,;t t
14540 s,@EGREP@,$EGREP,;t t
14541 s,@XLIB@,$XLIB,;t t
14542 s,@XFILES@,$XFILES,;t t
14543 s,@OPENGLFILES@,$OPENGLFILES,;t t
14544 s,@GLU32FILES@,$GLU32FILES,;t t
14545 s,@OPENGL_LIBS@,$OPENGL_LIBS,;t t
14546 s,@NASLIBS@,$NASLIBS,;t t
14547 s,@CURSESLIBS@,$CURSESLIBS,;t t
14548 s,@sane_devel@,$sane_devel,;t t
14549 s,@SANELIBS@,$SANELIBS,;t t
14550 s,@SANEINCL@,$SANEINCL,;t t
14551 s,@ft_devel@,$ft_devel,;t t
14552 s,@ft_devel2@,$ft_devel2,;t t
14553 s,@FREETYPEINCL@,$FREETYPEINCL,;t t
14554 s,@ARTSCCONFIG@,$ARTSCCONFIG,;t t
14555 s,@ARTSLIBS@,$ARTSLIBS,;t t
14556 s,@ARTSINCL@,$ARTSINCL,;t t
14557 s,@ALSALIBS@,$ALSALIBS,;t t
14558 s,@AUDIOIOLIBS@,$AUDIOIOLIBS,;t t
14559 s,@DLLEXT@,$DLLEXT,;t t
14560 s,@DLLFLAGS@,$DLLFLAGS,;t t
14561 s,@DLLIBS@,$DLLIBS,;t t
14562 s,@LDDLLFLAGS@,$LDDLLFLAGS,;t t
14563 s,@LDSHARED@,$LDSHARED,;t t
14564 s,@DLLWRAP@,$DLLWRAP,;t t
14565 s,@ac_ct_DLLWRAP@,$ac_ct_DLLWRAP,;t t
14566 s,@CROSSTEST@,$CROSSTEST,;t t
14567 s,@CROSSCC@,$CROSSCC,;t t
14568 s,@DLLTOOL@,$DLLTOOL,;t t
14569 s,@LDPATH@,$LDPATH,;t t
14570 s,@CRTLIBS@,$CRTLIBS,;t t
14571 s,@LDD@,$LDD,;t t
14572 s,@ALLOCA@,$ALLOCA,;t t
14573 s,@LIBOBJS@,$LIBOBJS,;t t
14574 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
14575 /@MAKE_RULES@/r $MAKE_RULES
14576 s,@MAKE_RULES@,,;t t
14577 /@MAKE_DLL_RULES@/r $MAKE_DLL_RULES
14578 s,@MAKE_DLL_RULES@,,;t t
14579 /@MAKE_TEST_RULES@/r $MAKE_TEST_RULES
14580 s,@MAKE_TEST_RULES@,,;t t
14581 /@MAKE_PROG_RULES@/r $MAKE_PROG_RULES
14582 s,@MAKE_PROG_RULES@,,;t t
14583 CEOF
14584
14585 _ACEOF
14586
14587   cat >>$CONFIG_STATUS <<\_ACEOF
14588   # Split the substitutions into bite-sized pieces for seds with
14589   # small command number limits, like on Digital OSF/1 and HP-UX.
14590   ac_max_sed_lines=48
14591   ac_sed_frag=1 # Number of current file.
14592   ac_beg=1 # First line for current file.
14593   ac_end=$ac_max_sed_lines # Line after last line for current file.
14594   ac_more_lines=:
14595   ac_sed_cmds=
14596   while $ac_more_lines; do
14597     if test $ac_beg -gt 1; then
14598       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
14599     else
14600       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
14601     fi
14602     if test ! -s $tmp/subs.frag; then
14603       ac_more_lines=false
14604     else
14605       # The purpose of the label and of the branching condition is to
14606       # speed up the sed processing (if there are no `@' at all, there
14607       # is no need to browse any of the substitutions).
14608       # These are the two extra sed commands mentioned above.
14609       (echo ':t
14610   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
14611       if test -z "$ac_sed_cmds"; then
14612         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
14613       else
14614         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
14615       fi
14616       ac_sed_frag=`expr $ac_sed_frag + 1`
14617       ac_beg=$ac_end
14618       ac_end=`expr $ac_end + $ac_max_sed_lines`
14619     fi
14620   done
14621   if test -z "$ac_sed_cmds"; then
14622     ac_sed_cmds=cat
14623   fi
14624 fi # test -n "$CONFIG_FILES"
14625
14626 _ACEOF
14627 cat >>$CONFIG_STATUS <<\_ACEOF
14628 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
14629   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
14630   case $ac_file in
14631   - | *:- | *:-:* ) # input from stdin
14632         cat >$tmp/stdin
14633         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
14634         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
14635   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
14636         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
14637   * )   ac_file_in=$ac_file.in ;;
14638   esac
14639
14640   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
14641   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
14642 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14643          X"$ac_file" : 'X\(//\)[^/]' \| \
14644          X"$ac_file" : 'X\(//\)$' \| \
14645          X"$ac_file" : 'X\(/\)' \| \
14646          .     : '\(.\)' 2>/dev/null ||
14647 echo X"$ac_file" |
14648     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14649           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14650           /^X\(\/\/\)$/{ s//\1/; q; }
14651           /^X\(\/\).*/{ s//\1/; q; }
14652           s/.*/./; q'`
14653   { if $as_mkdir_p; then
14654     mkdir -p "$ac_dir"
14655   else
14656     as_dir="$ac_dir"
14657     as_dirs=
14658     while test ! -d "$as_dir"; do
14659       as_dirs="$as_dir $as_dirs"
14660       as_dir=`(dirname "$as_dir") 2>/dev/null ||
14661 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14662          X"$as_dir" : 'X\(//\)[^/]' \| \
14663          X"$as_dir" : 'X\(//\)$' \| \
14664          X"$as_dir" : 'X\(/\)' \| \
14665          .     : '\(.\)' 2>/dev/null ||
14666 echo X"$as_dir" |
14667     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14668           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14669           /^X\(\/\/\)$/{ s//\1/; q; }
14670           /^X\(\/\).*/{ s//\1/; q; }
14671           s/.*/./; q'`
14672     done
14673     test ! -n "$as_dirs" || mkdir $as_dirs
14674   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
14675 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
14676    { (exit 1); exit 1; }; }; }
14677
14678   ac_builddir=.
14679
14680 if test "$ac_dir" != .; then
14681   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
14682   # A "../" for each directory in $ac_dir_suffix.
14683   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
14684 else
14685   ac_dir_suffix= ac_top_builddir=
14686 fi
14687
14688 case $srcdir in
14689   .)  # No --srcdir option.  We are building in place.
14690     ac_srcdir=.
14691     if test -z "$ac_top_builddir"; then
14692        ac_top_srcdir=.
14693     else
14694        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
14695     fi ;;
14696   [\\/]* | ?:[\\/]* )  # Absolute path.
14697     ac_srcdir=$srcdir$ac_dir_suffix;
14698     ac_top_srcdir=$srcdir ;;
14699   *) # Relative path.
14700     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
14701     ac_top_srcdir=$ac_top_builddir$srcdir ;;
14702 esac
14703 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
14704 # absolute.
14705 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
14706 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
14707 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
14708 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
14709
14710
14711   case $INSTALL in
14712   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
14713   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
14714   esac
14715
14716   if test x"$ac_file" != x-; then
14717     { echo "$as_me:$LINENO: creating $ac_file" >&5
14718 echo "$as_me: creating $ac_file" >&6;}
14719     rm -f "$ac_file"
14720   fi
14721   # Let's still pretend it is `configure' which instantiates (i.e., don't
14722   # use $as_me), people would be surprised to read:
14723   #    /* config.h.  Generated by config.status.  */
14724   if test x"$ac_file" = x-; then
14725     configure_input=
14726   else
14727     configure_input="$ac_file.  "
14728   fi
14729   configure_input=$configure_input"Generated from `echo $ac_file_in |
14730                                      sed 's,.*/,,'` by configure."
14731
14732   # First look for the input files in the build tree, otherwise in the
14733   # src tree.
14734   ac_file_inputs=`IFS=:
14735     for f in $ac_file_in; do
14736       case $f in
14737       -) echo $tmp/stdin ;;
14738       [\\/$]*)
14739          # Absolute (can't be DOS-style, as IFS=:)
14740          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
14741 echo "$as_me: error: cannot find input file: $f" >&2;}
14742    { (exit 1); exit 1; }; }
14743          echo $f;;
14744       *) # Relative
14745          if test -f "$f"; then
14746            # Build tree
14747            echo $f
14748          elif test -f "$srcdir/$f"; then
14749            # Source tree
14750            echo $srcdir/$f
14751          else
14752            # /dev/null tree
14753            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
14754 echo "$as_me: error: cannot find input file: $f" >&2;}
14755    { (exit 1); exit 1; }; }
14756          fi;;
14757       esac
14758     done` || { (exit 1); exit 1; }
14759 _ACEOF
14760 cat >>$CONFIG_STATUS <<_ACEOF
14761   sed "$ac_vpsub
14762 $extrasub
14763 _ACEOF
14764 cat >>$CONFIG_STATUS <<\_ACEOF
14765 :t
14766 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14767 s,@configure_input@,$configure_input,;t t
14768 s,@srcdir@,$ac_srcdir,;t t
14769 s,@abs_srcdir@,$ac_abs_srcdir,;t t
14770 s,@top_srcdir@,$ac_top_srcdir,;t t
14771 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
14772 s,@builddir@,$ac_builddir,;t t
14773 s,@abs_builddir@,$ac_abs_builddir,;t t
14774 s,@top_builddir@,$ac_top_builddir,;t t
14775 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
14776 s,@INSTALL@,$ac_INSTALL,;t t
14777 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
14778   rm -f $tmp/stdin
14779   if test x"$ac_file" != x-; then
14780     mv $tmp/out $ac_file
14781   else
14782     cat $tmp/out
14783     rm -f $tmp/out
14784   fi
14785
14786 done
14787 _ACEOF
14788 cat >>$CONFIG_STATUS <<\_ACEOF
14789
14790 #
14791 # CONFIG_HEADER section.
14792 #
14793
14794 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
14795 # NAME is the cpp macro being defined and VALUE is the value it is being given.
14796 #
14797 # ac_d sets the value in "#define NAME VALUE" lines.
14798 ac_dA='s,^\([   ]*\)#\([        ]*define[       ][      ]*\)'
14799 ac_dB='[        ].*$,\1#\2'
14800 ac_dC=' '
14801 ac_dD=',;t'
14802 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
14803 ac_uA='s,^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
14804 ac_uB='$,\1#\2define\3'
14805 ac_uC=' '
14806 ac_uD=',;t'
14807
14808 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
14809   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
14810   case $ac_file in
14811   - | *:- | *:-:* ) # input from stdin
14812         cat >$tmp/stdin
14813         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
14814         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
14815   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
14816         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
14817   * )   ac_file_in=$ac_file.in ;;
14818   esac
14819
14820   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
14821 echo "$as_me: creating $ac_file" >&6;}
14822
14823   # First look for the input files in the build tree, otherwise in the
14824   # src tree.
14825   ac_file_inputs=`IFS=:
14826     for f in $ac_file_in; do
14827       case $f in
14828       -) echo $tmp/stdin ;;
14829       [\\/$]*)
14830          # Absolute (can't be DOS-style, as IFS=:)
14831          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
14832 echo "$as_me: error: cannot find input file: $f" >&2;}
14833    { (exit 1); exit 1; }; }
14834          echo $f;;
14835       *) # Relative
14836          if test -f "$f"; then
14837            # Build tree
14838            echo $f
14839          elif test -f "$srcdir/$f"; then
14840            # Source tree
14841            echo $srcdir/$f
14842          else
14843            # /dev/null tree
14844            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
14845 echo "$as_me: error: cannot find input file: $f" >&2;}
14846    { (exit 1); exit 1; }; }
14847          fi;;
14848       esac
14849     done` || { (exit 1); exit 1; }
14850   # Remove the trailing spaces.
14851   sed 's/[      ]*$//' $ac_file_inputs >$tmp/in
14852
14853 _ACEOF
14854
14855 # Transform confdefs.h into two sed scripts, `conftest.defines' and
14856 # `conftest.undefs', that substitutes the proper values into
14857 # config.h.in to produce config.h.  The first handles `#define'
14858 # templates, and the second `#undef' templates.
14859 # And first: Protect against being on the right side of a sed subst in
14860 # config.status.  Protect against being in an unquoted here document
14861 # in config.status.
14862 rm -f conftest.defines conftest.undefs
14863 # Using a here document instead of a string reduces the quoting nightmare.
14864 # Putting comments in sed scripts is not portable.
14865 #
14866 # `end' is used to avoid that the second main sed command (meant for
14867 # 0-ary CPP macros) applies to n-ary macro definitions.
14868 # See the Autoconf documentation for `clear'.
14869 cat >confdef2sed.sed <<\_ACEOF
14870 s/[\\&,]/\\&/g
14871 s,[\\$`],\\&,g
14872 t clear
14873 : clear
14874 s,^[    ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
14875 t end
14876 s,^[    ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
14877 : end
14878 _ACEOF
14879 # If some macros were called several times there might be several times
14880 # the same #defines, which is useless.  Nevertheless, we may not want to
14881 # sort them, since we want the *last* AC-DEFINE to be honored.
14882 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
14883 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
14884 rm -f confdef2sed.sed
14885
14886 # This sed command replaces #undef with comments.  This is necessary, for
14887 # example, in the case of _POSIX_SOURCE, which is predefined and required
14888 # on some systems where configure will not decide to define it.
14889 cat >>conftest.undefs <<\_ACEOF
14890 s,^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
14891 _ACEOF
14892
14893 # Break up conftest.defines because some shells have a limit on the size
14894 # of here documents, and old seds have small limits too (100 cmds).
14895 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
14896 echo '  if grep "^[     ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
14897 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
14898 echo '  :' >>$CONFIG_STATUS
14899 rm -f conftest.tail
14900 while grep . conftest.defines >/dev/null
14901 do
14902   # Write a limited-size here document to $tmp/defines.sed.
14903   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
14904   # Speed up: don't consider the non `#define' lines.
14905   echo '/^[     ]*#[    ]*define/!b' >>$CONFIG_STATUS
14906   # Work around the forget-to-reset-the-flag bug.
14907   echo 't clr' >>$CONFIG_STATUS
14908   echo ': clr' >>$CONFIG_STATUS
14909   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
14910   echo 'CEOF
14911   sed -f $tmp/defines.sed $tmp/in >$tmp/out
14912   rm -f $tmp/in
14913   mv $tmp/out $tmp/in
14914 ' >>$CONFIG_STATUS
14915   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
14916   rm -f conftest.defines
14917   mv conftest.tail conftest.defines
14918 done
14919 rm -f conftest.defines
14920 echo '  fi # grep' >>$CONFIG_STATUS
14921 echo >>$CONFIG_STATUS
14922
14923 # Break up conftest.undefs because some shells have a limit on the size
14924 # of here documents, and old seds have small limits too (100 cmds).
14925 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
14926 rm -f conftest.tail
14927 while grep . conftest.undefs >/dev/null
14928 do
14929   # Write a limited-size here document to $tmp/undefs.sed.
14930   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
14931   # Speed up: don't consider the non `#undef'
14932   echo '/^[     ]*#[    ]*undef/!b' >>$CONFIG_STATUS
14933   # Work around the forget-to-reset-the-flag bug.
14934   echo 't clr' >>$CONFIG_STATUS
14935   echo ': clr' >>$CONFIG_STATUS
14936   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
14937   echo 'CEOF
14938   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
14939   rm -f $tmp/in
14940   mv $tmp/out $tmp/in
14941 ' >>$CONFIG_STATUS
14942   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
14943   rm -f conftest.undefs
14944   mv conftest.tail conftest.undefs
14945 done
14946 rm -f conftest.undefs
14947
14948 cat >>$CONFIG_STATUS <<\_ACEOF
14949   # Let's still pretend it is `configure' which instantiates (i.e., don't
14950   # use $as_me), people would be surprised to read:
14951   #    /* config.h.  Generated by config.status.  */
14952   if test x"$ac_file" = x-; then
14953     echo "/* Generated by configure.  */" >$tmp/config.h
14954   else
14955     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
14956   fi
14957   cat $tmp/in >>$tmp/config.h
14958   rm -f $tmp/in
14959   if test x"$ac_file" != x-; then
14960     if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
14961       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
14962 echo "$as_me: $ac_file is unchanged" >&6;}
14963     else
14964       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
14965 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14966          X"$ac_file" : 'X\(//\)[^/]' \| \
14967          X"$ac_file" : 'X\(//\)$' \| \
14968          X"$ac_file" : 'X\(/\)' \| \
14969          .     : '\(.\)' 2>/dev/null ||
14970 echo X"$ac_file" |
14971     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14972           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14973           /^X\(\/\/\)$/{ s//\1/; q; }
14974           /^X\(\/\).*/{ s//\1/; q; }
14975           s/.*/./; q'`
14976       { if $as_mkdir_p; then
14977     mkdir -p "$ac_dir"
14978   else
14979     as_dir="$ac_dir"
14980     as_dirs=
14981     while test ! -d "$as_dir"; do
14982       as_dirs="$as_dir $as_dirs"
14983       as_dir=`(dirname "$as_dir") 2>/dev/null ||
14984 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14985          X"$as_dir" : 'X\(//\)[^/]' \| \
14986          X"$as_dir" : 'X\(//\)$' \| \
14987          X"$as_dir" : 'X\(/\)' \| \
14988          .     : '\(.\)' 2>/dev/null ||
14989 echo X"$as_dir" |
14990     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14991           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14992           /^X\(\/\/\)$/{ s//\1/; q; }
14993           /^X\(\/\).*/{ s//\1/; q; }
14994           s/.*/./; q'`
14995     done
14996     test ! -n "$as_dirs" || mkdir $as_dirs
14997   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
14998 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
14999    { (exit 1); exit 1; }; }; }
15000
15001       rm -f $ac_file
15002       mv $tmp/config.h $ac_file
15003     fi
15004   else
15005     cat $tmp/config.h
15006     rm -f $tmp/config.h
15007   fi
15008 done
15009 _ACEOF
15010 cat >>$CONFIG_STATUS <<\_ACEOF
15011
15012 #
15013 # CONFIG_COMMANDS section.
15014 #
15015 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
15016   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
15017   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
15018   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
15019 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15020          X"$ac_dest" : 'X\(//\)[^/]' \| \
15021          X"$ac_dest" : 'X\(//\)$' \| \
15022          X"$ac_dest" : 'X\(/\)' \| \
15023          .     : '\(.\)' 2>/dev/null ||
15024 echo X"$ac_dest" |
15025     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15026           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15027           /^X\(\/\/\)$/{ s//\1/; q; }
15028           /^X\(\/\).*/{ s//\1/; q; }
15029           s/.*/./; q'`
15030   ac_builddir=.
15031
15032 if test "$ac_dir" != .; then
15033   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
15034   # A "../" for each directory in $ac_dir_suffix.
15035   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
15036 else
15037   ac_dir_suffix= ac_top_builddir=
15038 fi
15039
15040 case $srcdir in
15041   .)  # No --srcdir option.  We are building in place.
15042     ac_srcdir=.
15043     if test -z "$ac_top_builddir"; then
15044        ac_top_srcdir=.
15045     else
15046        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
15047     fi ;;
15048   [\\/]* | ?:[\\/]* )  # Absolute path.
15049     ac_srcdir=$srcdir$ac_dir_suffix;
15050     ac_top_srcdir=$srcdir ;;
15051   *) # Relative path.
15052     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
15053     ac_top_srcdir=$ac_top_builddir$srcdir ;;
15054 esac
15055 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
15056 # absolute.
15057 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
15058 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
15059 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
15060 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
15061
15062
15063   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
15064 echo "$as_me: executing $ac_dest commands" >&6;}
15065   case $ac_dest in
15066     controls ) test -d "controls" || ({ echo "$as_me:$LINENO: creating controls" >&5
15067 echo "$as_me: creating controls" >&6;} && mkdir "controls") ;;
15068     dlls/ddraw/d3ddevice ) test -d "dlls/ddraw/d3ddevice" || ({ echo "$as_me:$LINENO: creating dlls/ddraw/d3ddevice" >&5
15069 echo "$as_me: creating dlls/ddraw/d3ddevice" >&6;} && mkdir "dlls/ddraw/d3ddevice") ;;
15070     dlls/ddraw/dclipper ) test -d "dlls/ddraw/dclipper" || ({ echo "$as_me:$LINENO: creating dlls/ddraw/dclipper" >&5
15071 echo "$as_me: creating dlls/ddraw/dclipper" >&6;} && mkdir "dlls/ddraw/dclipper") ;;
15072     dlls/ddraw/ddraw ) test -d "dlls/ddraw/ddraw" || ({ echo "$as_me:$LINENO: creating dlls/ddraw/ddraw" >&5
15073 echo "$as_me: creating dlls/ddraw/ddraw" >&6;} && mkdir "dlls/ddraw/ddraw") ;;
15074     dlls/ddraw/direct3d ) test -d "dlls/ddraw/direct3d" || ({ echo "$as_me:$LINENO: creating dlls/ddraw/direct3d" >&5
15075 echo "$as_me: creating dlls/ddraw/direct3d" >&6;} && mkdir "dlls/ddraw/direct3d") ;;
15076     dlls/ddraw/dpalette ) test -d "dlls/ddraw/dpalette" || ({ echo "$as_me:$LINENO: creating dlls/ddraw/dpalette" >&5
15077 echo "$as_me: creating dlls/ddraw/dpalette" >&6;} && mkdir "dlls/ddraw/dpalette") ;;
15078     dlls/ddraw/dsurface ) test -d "dlls/ddraw/dsurface" || ({ echo "$as_me:$LINENO: creating dlls/ddraw/dsurface" >&5
15079 echo "$as_me: creating dlls/ddraw/dsurface" >&6;} && mkdir "dlls/ddraw/dsurface") ;;
15080     dlls/dinput/joystick ) test -d "dlls/dinput/joystick" || ({ echo "$as_me:$LINENO: creating dlls/dinput/joystick" >&5
15081 echo "$as_me: creating dlls/dinput/joystick" >&6;} && mkdir "dlls/dinput/joystick") ;;
15082     dlls/dinput/keyboard ) test -d "dlls/dinput/keyboard" || ({ echo "$as_me:$LINENO: creating dlls/dinput/keyboard" >&5
15083 echo "$as_me: creating dlls/dinput/keyboard" >&6;} && mkdir "dlls/dinput/keyboard") ;;
15084     dlls/dinput/mouse ) test -d "dlls/dinput/mouse" || ({ echo "$as_me:$LINENO: creating dlls/dinput/mouse" >&5
15085 echo "$as_me: creating dlls/dinput/mouse" >&6;} && mkdir "dlls/dinput/mouse") ;;
15086     dlls/gdi/enhmfdrv ) test -d "dlls/gdi/enhmfdrv" || ({ echo "$as_me:$LINENO: creating dlls/gdi/enhmfdrv" >&5
15087 echo "$as_me: creating dlls/gdi/enhmfdrv" >&6;} && mkdir "dlls/gdi/enhmfdrv") ;;
15088     dlls/gdi/mfdrv ) test -d "dlls/gdi/mfdrv" || ({ echo "$as_me:$LINENO: creating dlls/gdi/mfdrv" >&5
15089 echo "$as_me: creating dlls/gdi/mfdrv" >&6;} && mkdir "dlls/gdi/mfdrv") ;;
15090     dlls/gdi/win16drv ) test -d "dlls/gdi/win16drv" || ({ echo "$as_me:$LINENO: creating dlls/gdi/win16drv" >&5
15091 echo "$as_me: creating dlls/gdi/win16drv" >&6;} && mkdir "dlls/gdi/win16drv") ;;
15092     dlls/kernel/messages ) test -d "dlls/kernel/messages" || ({ echo "$as_me:$LINENO: creating dlls/kernel/messages" >&5
15093 echo "$as_me: creating dlls/kernel/messages" >&6;} && mkdir "dlls/kernel/messages") ;;
15094     dlls/user/dde ) test -d "dlls/user/dde" || ({ echo "$as_me:$LINENO: creating dlls/user/dde" >&5
15095 echo "$as_me: creating dlls/user/dde" >&6;} && mkdir "dlls/user/dde") ;;
15096     dlls/user/resources ) test -d "dlls/user/resources" || ({ echo "$as_me:$LINENO: creating dlls/user/resources" >&5
15097 echo "$as_me: creating dlls/user/resources" >&6;} && mkdir "dlls/user/resources") ;;
15098     dlls/wineps/data ) test -d "dlls/wineps/data" || ({ echo "$as_me:$LINENO: creating dlls/wineps/data" >&5
15099 echo "$as_me: creating dlls/wineps/data" >&6;} && mkdir "dlls/wineps/data") ;;
15100     files ) test -d "files" || ({ echo "$as_me:$LINENO: creating files" >&5
15101 echo "$as_me: creating files" >&6;} && mkdir "files") ;;
15102     graphics ) test -d "graphics" || ({ echo "$as_me:$LINENO: creating graphics" >&5
15103 echo "$as_me: creating graphics" >&6;} && mkdir "graphics") ;;
15104     graphics/x11drv ) test -d "graphics/x11drv" || ({ echo "$as_me:$LINENO: creating graphics/x11drv" >&5
15105 echo "$as_me: creating graphics/x11drv" >&6;} && mkdir "graphics/x11drv") ;;
15106     if1632 ) test -d "if1632" || ({ echo "$as_me:$LINENO: creating if1632" >&5
15107 echo "$as_me: creating if1632" >&6;} && mkdir "if1632") ;;
15108     include/wine ) test -d "include/wine" || ({ echo "$as_me:$LINENO: creating include/wine" >&5
15109 echo "$as_me: creating include/wine" >&6;} && mkdir "include/wine") ;;
15110     loader ) test -d "loader" || ({ echo "$as_me:$LINENO: creating loader" >&5
15111 echo "$as_me: creating loader" >&6;} && mkdir "loader") ;;
15112     loader/ne ) test -d "loader/ne" || ({ echo "$as_me:$LINENO: creating loader/ne" >&5
15113 echo "$as_me: creating loader/ne" >&6;} && mkdir "loader/ne") ;;
15114     memory ) test -d "memory" || ({ echo "$as_me:$LINENO: creating memory" >&5
15115 echo "$as_me: creating memory" >&6;} && mkdir "memory") ;;
15116     misc ) test -d "misc" || ({ echo "$as_me:$LINENO: creating misc" >&5
15117 echo "$as_me: creating misc" >&6;} && mkdir "misc") ;;
15118     msdos ) test -d "msdos" || ({ echo "$as_me:$LINENO: creating msdos" >&5
15119 echo "$as_me: creating msdos" >&6;} && mkdir "msdos") ;;
15120     objects ) test -d "objects" || ({ echo "$as_me:$LINENO: creating objects" >&5
15121 echo "$as_me: creating objects" >&6;} && mkdir "objects") ;;
15122     programs/regapi/tests ) test -d "programs/regapi/tests" || ({ echo "$as_me:$LINENO: creating programs/regapi/tests" >&5
15123 echo "$as_me: creating programs/regapi/tests" >&6;} && mkdir "programs/regapi/tests") ;;
15124     programs/regedit/tests ) test -d "programs/regedit/tests" || ({ echo "$as_me:$LINENO: creating programs/regedit/tests" >&5
15125 echo "$as_me: creating programs/regedit/tests" >&6;} && mkdir "programs/regedit/tests") ;;
15126     relay32 ) test -d "relay32" || ({ echo "$as_me:$LINENO: creating relay32" >&5
15127 echo "$as_me: creating relay32" >&6;} && mkdir "relay32") ;;
15128     scheduler ) test -d "scheduler" || ({ echo "$as_me:$LINENO: creating scheduler" >&5
15129 echo "$as_me: creating scheduler" >&6;} && mkdir "scheduler") ;;
15130     win32 ) test -d "win32" || ({ echo "$as_me:$LINENO: creating win32" >&5
15131 echo "$as_me: creating win32" >&6;} && mkdir "win32") ;;
15132     windows ) test -d "windows" || ({ echo "$as_me:$LINENO: creating windows" >&5
15133 echo "$as_me: creating windows" >&6;} && mkdir "windows") ;;
15134   esac
15135 done
15136 _ACEOF
15137
15138 cat >>$CONFIG_STATUS <<\_ACEOF
15139
15140 { (exit 0); exit 0; }
15141 _ACEOF
15142 chmod +x $CONFIG_STATUS
15143 ac_clean_files=$ac_clean_files_save
15144
15145
15146 # configure is writing to config.log, and then calls config.status.
15147 # config.status does its own redirection, appending to config.log.
15148 # Unfortunately, on DOS this fails, as config.log is still kept open
15149 # by configure, so config.status won't be able to write to it; its
15150 # output is simply discarded.  So we exec the FD to /dev/null,
15151 # effectively closing config.log, so it can be properly (re)opened and
15152 # appended to by config.status.  When coming back to configure, we
15153 # need to make the FD available again.
15154 if test "$no_create" != yes; then
15155   ac_cs_success=:
15156   exec 5>/dev/null
15157   $SHELL $CONFIG_STATUS || ac_cs_success=false
15158   exec 5>>config.log
15159   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15160   # would make configure fail if this is the last instruction.
15161   $ac_cs_success || { (exit 1); exit 1; }
15162 fi
15163
15164
15165 if test "$have_x" = "no"
15166 then
15167   echo
15168   echo "*** Warning: X development files not found. Wine will be built without"
15169   echo "*** X support, which currently does not work, and would probably not be"
15170   echo "*** what you want anyway. You will need to install devel packages of"
15171   echo "*** Xlib/Xfree86 at the very least."
15172 fi
15173
15174 if test "$ac_cv_lib_ncurses_resizeterm" = "no" -a "$ac_cv_lib_ncurses_waddch" = "yes"
15175 then
15176   echo
15177   echo "*** Warning: resizeterm not found in ncurses. Wine will be built without"
15178   echo "*** terminal resize support. Consider upgrading ncurses."
15179 fi
15180
15181 if test "$wine_cv_libc_reentrant" = "no"
15182 then
15183   echo
15184   echo "*** Warning: non-reentrant libc detected. Wine will be built without"
15185   echo "*** threading support. Consider upgrading libc to a more recent"
15186   echo "*** reentrant version of libc."
15187 fi
15188
15189 if test "$have_x" = "yes" -a "$wine_cv_x_reentrant" != "yes"
15190 then
15191   echo
15192   echo "*** Warning: non-reentrant X11 library detected. Multi-threaded"
15193   echo "*** applications won't work properly. You should upgrade your X11 library."
15194 fi
15195
15196 if test "$wine_cv_opengl_version_OK" = "no"
15197 then
15198   echo
15199   echo "*** Warning: old Mesa headers detected. Wine will be built without Direct3D"
15200   echo "*** support. Consider upgrading your Mesa libraries (http://www.mesa3d.org/)."
15201 fi
15202
15203 if test "$wine_cv_opengl_version_threadsafe" = "yes" -a "x$enable_opengl" = "x"
15204 then
15205   echo
15206   echo "*** Warning: the OpenGL version you have installed relies on libpthread for"
15207   echo "*** thread-safety. To prevent crashes, OpenGL support has been disabled."
15208   echo "*** A fix for glibc 2.1.3 that seems to work is included in this version of Wine,"
15209   echo "*** start configure with '--enable-opengl' to force OpenGL support."
15210 fi
15211
15212 if test "$wine_cv_opengl_version_threadsafe" = "yes" -a "x$enable_opengl" = "xyes"
15213 then
15214   echo
15215   echo "*** Warning: you explicitly linked in a thread-safe OpenGL version. If you"
15216   echo "*** experience unusual crashes on DirectDraw games, try first to disable OpenGL"
15217   echo "*** support before reporting bugs."
15218 fi
15219
15220 if test "$wine_cv_msg_freetype" = "yes"
15221 then
15222   echo
15223   echo "*** Note: Your system appears to have the FreeType 2 runtime libraries"
15224   echo "*** installed, but 'freetype-config' is not in your PATH. Install the"
15225   echo "*** freetype-devel package (or its equivalent on your distribution) to"
15226   echo "*** enable Wine to use TrueType fonts."
15227 fi
15228
15229 echo
15230 echo "Configure finished.  Do 'make depend && make' to compile Wine."
15231 echo
15232