Implemented import libraries; on Unix we import the .def file
[wine] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.54 for Wine 20021125.
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='20021125'
267 PACKAGE_STRING='Wine 20021125'
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 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 DB2HTML DB2PDF DB2PS JPEGLIB EGREP XLIB XFILES OPENGLFILES GLU32FILES OPENGL_LIBS NASLIBS CURSESLIBS sane_devel SANELIBS SANEINCL ft_devel ft_devel2 FREETYPEINCL ARTSCCONFIG ARTSLIBS ARTSINCL ALSALIBS AUDIOIOLIBS DLLEXT DLLFLAGS DLLIBS LDDLLFLAGS LDSHARED LIBEXT IMPLIBEXT DLLTOOL ac_ct_DLLTOOL DLLWRAP ac_ct_DLLWRAP CROSSTEST CROSSCC LDPATH CRTLIBS LDD ALLOCA LIBOBJS LTLIBOBJS'
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 20021125 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 20021125:";;
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
853 Optional Packages:
854   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
855   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
856   --without-opengl        do not use OpenGL
857   --without-curses        do not use curses
858   --with-wine-tools=<dir> use Wine tools from directory <dir>
859   --with-x                use the X Window System
860
861 Some influential environment variables:
862   CC          C compiler command
863   CFLAGS      C compiler flags
864   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
865               nonstandard directory <lib dir>
866   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
867               headers in a nonstandard directory <include dir>
868   CPP         C preprocessor
869
870 Use these variables to override the choices made by `configure' or to help
871 it to find libraries and programs with nonstandard names/locations.
872
873 _ACEOF
874 fi
875
876 if test "$ac_init_help" = "recursive"; then
877   # If there are subdirs, report their specific --help.
878   ac_popdir=`pwd`
879   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
880     test -d $ac_dir || continue
881     ac_builddir=.
882
883 if test "$ac_dir" != .; then
884   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
885   # A "../" for each directory in $ac_dir_suffix.
886   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
887 else
888   ac_dir_suffix= ac_top_builddir=
889 fi
890
891 case $srcdir in
892   .)  # No --srcdir option.  We are building in place.
893     ac_srcdir=.
894     if test -z "$ac_top_builddir"; then
895        ac_top_srcdir=.
896     else
897        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
898     fi ;;
899   [\\/]* | ?:[\\/]* )  # Absolute path.
900     ac_srcdir=$srcdir$ac_dir_suffix;
901     ac_top_srcdir=$srcdir ;;
902   *) # Relative path.
903     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
904     ac_top_srcdir=$ac_top_builddir$srcdir ;;
905 esac
906 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
907 # absolute.
908 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
909 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
910 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
911 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
912
913     cd $ac_dir
914     # Check for guested configure; otherwise get Cygnus style configure.
915     if test -f $ac_srcdir/configure.gnu; then
916       echo
917       $SHELL $ac_srcdir/configure.gnu  --help=recursive
918     elif test -f $ac_srcdir/configure; then
919       echo
920       $SHELL $ac_srcdir/configure  --help=recursive
921     elif test -f $ac_srcdir/configure.ac ||
922            test -f $ac_srcdir/configure.in; then
923       echo
924       $ac_configure --help
925     else
926       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
927     fi
928     cd $ac_popdir
929   done
930 fi
931
932 test -n "$ac_init_help" && exit 0
933 if $ac_init_version; then
934   cat <<\_ACEOF
935 Wine configure 20021125
936 generated by GNU Autoconf 2.54
937
938 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
939 Free Software Foundation, Inc.
940 This configure script is free software; the Free Software Foundation
941 gives unlimited permission to copy, distribute and modify it.
942 _ACEOF
943   exit 0
944 fi
945 exec 5>config.log
946 cat >&5 <<_ACEOF
947 This file contains any messages produced by compilers while
948 running configure, to aid debugging if configure makes a mistake.
949
950 It was created by Wine $as_me 20021125, which was
951 generated by GNU Autoconf 2.54.  Invocation command line was
952
953   $ $0 $@
954
955 _ACEOF
956 {
957 cat <<_ASUNAME
958 ## --------- ##
959 ## Platform. ##
960 ## --------- ##
961
962 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
963 uname -m = `(uname -m) 2>/dev/null || echo unknown`
964 uname -r = `(uname -r) 2>/dev/null || echo unknown`
965 uname -s = `(uname -s) 2>/dev/null || echo unknown`
966 uname -v = `(uname -v) 2>/dev/null || echo unknown`
967
968 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
969 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
970
971 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
972 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
973 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
974 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
975 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
976 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
977 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
978
979 _ASUNAME
980
981 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
982 for as_dir in $PATH
983 do
984   IFS=$as_save_IFS
985   test -z "$as_dir" && as_dir=.
986   echo "PATH: $as_dir"
987 done
988
989 } >&5
990
991 cat >&5 <<_ACEOF
992
993
994 ## ----------- ##
995 ## Core tests. ##
996 ## ----------- ##
997
998 _ACEOF
999
1000
1001 # Keep a trace of the command line.
1002 # Strip out --no-create and --no-recursion so they do not pile up.
1003 # Also quote any args containing shell meta-characters.
1004 ac_configure_args=
1005 ac_sep=
1006 for ac_arg
1007 do
1008   case $ac_arg in
1009   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1010   | --no-cr | --no-c | -n ) continue ;;
1011   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1012   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1013     continue ;;
1014   *" "*|*"      "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1015     ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1016   esac
1017   ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1018   # Get rid of the leading space.
1019   ac_sep=" "
1020 done
1021
1022 # When interrupted or exit'd, cleanup temporary files, and complete
1023 # config.log.  We remove comments because anyway the quotes in there
1024 # would cause problems or look ugly.
1025 # WARNING: Be sure not to use single quotes in there, as some shells,
1026 # such as our DU 5.0 friend, will then `close' the trap.
1027 trap 'exit_status=$?
1028   # Save into config.log some information that might help in debugging.
1029   {
1030     echo
1031
1032     cat <<\_ASBOX
1033 ## ---------------- ##
1034 ## Cache variables. ##
1035 ## ---------------- ##
1036 _ASBOX
1037     echo
1038     # The following way of writing the cache mishandles newlines in values,
1039 {
1040   (set) 2>&1 |
1041     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1042     *ac_space=\ *)
1043       sed -n \
1044         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1045           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1046       ;;
1047     *)
1048       sed -n \
1049         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1050       ;;
1051     esac;
1052 }
1053     echo
1054
1055     cat <<\_ASBOX
1056 ## ----------------- ##
1057 ## Output variables. ##
1058 ## ----------------- ##
1059 _ASBOX
1060     echo
1061     for ac_var in $ac_subst_vars
1062     do
1063       eval ac_val=$`echo $ac_var`
1064       echo "$ac_var='"'"'$ac_val'"'"'"
1065     done | sort
1066     echo
1067
1068     if test -n "$ac_subst_files"; then
1069       cat <<\_ASBOX
1070 ## ------------- ##
1071 ## Output files. ##
1072 ## ------------- ##
1073 _ASBOX
1074       echo
1075       for ac_var in $ac_subst_files
1076       do
1077         eval ac_val=$`echo $ac_var`
1078         echo "$ac_var='"'"'$ac_val'"'"'"
1079       done | sort
1080       echo
1081     fi
1082
1083     if test -s confdefs.h; then
1084       cat <<\_ASBOX
1085 ## ----------- ##
1086 ## confdefs.h. ##
1087 ## ----------- ##
1088 _ASBOX
1089       echo
1090       sed "/^$/d" confdefs.h | sort
1091       echo
1092     fi
1093     test "$ac_signal" != 0 &&
1094       echo "$as_me: caught signal $ac_signal"
1095     echo "$as_me: exit $exit_status"
1096   } >&5
1097   rm -f core core.* *.core &&
1098   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1099     exit $exit_status
1100      ' 0
1101 for ac_signal in 1 2 13 15; do
1102   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1103 done
1104 ac_signal=0
1105
1106 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1107 rm -rf conftest* confdefs.h
1108 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1109 echo >confdefs.h
1110
1111 # Predefined preprocessor variables.
1112
1113 cat >>confdefs.h <<_ACEOF
1114 #define PACKAGE_NAME "$PACKAGE_NAME"
1115 _ACEOF
1116
1117
1118 cat >>confdefs.h <<_ACEOF
1119 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1120 _ACEOF
1121
1122
1123 cat >>confdefs.h <<_ACEOF
1124 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1125 _ACEOF
1126
1127
1128 cat >>confdefs.h <<_ACEOF
1129 #define PACKAGE_STRING "$PACKAGE_STRING"
1130 _ACEOF
1131
1132
1133 cat >>confdefs.h <<_ACEOF
1134 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1135 _ACEOF
1136
1137
1138 # Let the site file select an alternate cache file if it wants to.
1139 # Prefer explicitly selected file to automatically selected ones.
1140 if test -z "$CONFIG_SITE"; then
1141   if test "x$prefix" != xNONE; then
1142     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1143   else
1144     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1145   fi
1146 fi
1147 for ac_site_file in $CONFIG_SITE; do
1148   if test -r "$ac_site_file"; then
1149     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1150 echo "$as_me: loading site script $ac_site_file" >&6;}
1151     sed 's/^/| /' "$ac_site_file" >&5
1152     . "$ac_site_file"
1153   fi
1154 done
1155
1156 if test -r "$cache_file"; then
1157   # Some versions of bash will fail to source /dev/null (special
1158   # files actually), so we avoid doing that.
1159   if test -f "$cache_file"; then
1160     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1161 echo "$as_me: loading cache $cache_file" >&6;}
1162     case $cache_file in
1163       [\\/]* | ?:[\\/]* ) . $cache_file;;
1164       *)                      . ./$cache_file;;
1165     esac
1166   fi
1167 else
1168   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1169 echo "$as_me: creating cache $cache_file" >&6;}
1170   >$cache_file
1171 fi
1172
1173 # Check that the precious variables saved in the cache have kept the same
1174 # value.
1175 ac_cache_corrupted=false
1176 for ac_var in `(set) 2>&1 |
1177                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1178   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1179   eval ac_new_set=\$ac_env_${ac_var}_set
1180   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1181   eval ac_new_val="\$ac_env_${ac_var}_value"
1182   case $ac_old_set,$ac_new_set in
1183     set,)
1184       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1185 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1186       ac_cache_corrupted=: ;;
1187     ,set)
1188       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1189 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1190       ac_cache_corrupted=: ;;
1191     ,);;
1192     *)
1193       if test "x$ac_old_val" != "x$ac_new_val"; then
1194         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1195 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1196         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1197 echo "$as_me:   former value:  $ac_old_val" >&2;}
1198         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1199 echo "$as_me:   current value: $ac_new_val" >&2;}
1200         ac_cache_corrupted=:
1201       fi;;
1202   esac
1203   # Pass precious variables to config.status.
1204   if test "$ac_new_set" = set; then
1205     case $ac_new_val in
1206     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1207       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1208     *) ac_arg=$ac_var=$ac_new_val ;;
1209     esac
1210     case " $ac_configure_args " in
1211       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1212       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1213     esac
1214   fi
1215 done
1216 if $ac_cache_corrupted; then
1217   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1218 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1219   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1220 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1221    { (exit 1); exit 1; }; }
1222 fi
1223
1224 ac_ext=c
1225 ac_cpp='$CPP $CPPFLAGS'
1226 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1227 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1228 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1229
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           ac_config_headers="$ac_config_headers include/config.h"
1258
1259 ac_aux_dir=
1260 for ac_dir in tools $srcdir/tools; do
1261   if test -f $ac_dir/install-sh; then
1262     ac_aux_dir=$ac_dir
1263     ac_install_sh="$ac_aux_dir/install-sh -c"
1264     break
1265   elif test -f $ac_dir/install.sh; then
1266     ac_aux_dir=$ac_dir
1267     ac_install_sh="$ac_aux_dir/install.sh -c"
1268     break
1269   elif test -f $ac_dir/shtool; then
1270     ac_aux_dir=$ac_dir
1271     ac_install_sh="$ac_aux_dir/shtool install -c"
1272     break
1273   fi
1274 done
1275 if test -z "$ac_aux_dir"; then
1276   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in tools $srcdir/tools" >&5
1277 echo "$as_me: error: cannot find install-sh or install.sh in tools $srcdir/tools" >&2;}
1278    { (exit 1); exit 1; }; }
1279 fi
1280 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1281 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1282 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1283
1284
1285
1286 # Check whether --enable-win16 or --disable-win16 was given.
1287 if test "${enable_win16+set}" = set; then
1288   enableval="$enable_win16"
1289
1290 fi;
1291 # Check whether --enable-debug or --disable-debug was given.
1292 if test "${enable_debug+set}" = set; then
1293   enableval="$enable_debug"
1294
1295 fi;
1296 # Check whether --enable-trace or --disable-trace was given.
1297 if test "${enable_trace+set}" = set; then
1298   enableval="$enable_trace"
1299
1300 fi;
1301
1302
1303 # Check whether --with-opengl or --without-opengl was given.
1304 if test "${with_opengl+set}" = set; then
1305   withval="$with_opengl"
1306
1307 fi;
1308
1309 # Check whether --with-curses or --without-curses was given.
1310 if test "${with_curses+set}" = set; then
1311   withval="$with_curses"
1312
1313 fi;
1314
1315 # Check whether --with-wine-tools or --without-wine-tools was given.
1316 if test "${with_wine_tools+set}" = set; then
1317   withval="$with_wine_tools"
1318
1319 fi;
1320
1321
1322 WIN16_FILES="\$(WIN16_FILES)"
1323
1324 WIN16_INSTALL="\$(WIN16_INSTALL)"
1325
1326 if test "x$enable_win16" = "xno"
1327 then
1328   WIN16_FILES=""
1329   WIN16_INSTALL=""
1330 fi
1331 if test "x$enable_debug" = "xno"
1332 then
1333
1334 cat >>confdefs.h <<\_ACEOF
1335 #define NO_DEBUG_MSGS 1
1336 _ACEOF
1337
1338 fi
1339 if test "x$enable_trace" = "xno" -o "x$enable_debug" = "xno"
1340 then
1341
1342 cat >>confdefs.h <<\_ACEOF
1343 #define NO_TRACE_MSGS 1
1344 _ACEOF
1345
1346 fi
1347
1348
1349 # Make sure we can run config.sub.
1350 $ac_config_sub sun4 >/dev/null 2>&1 ||
1351   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1352 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1353    { (exit 1); exit 1; }; }
1354
1355 echo "$as_me:$LINENO: checking build system type" >&5
1356 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1357 if test "${ac_cv_build+set}" = set; then
1358   echo $ECHO_N "(cached) $ECHO_C" >&6
1359 else
1360   ac_cv_build_alias=$build_alias
1361 test -z "$ac_cv_build_alias" &&
1362   ac_cv_build_alias=`$ac_config_guess`
1363 test -z "$ac_cv_build_alias" &&
1364   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1365 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1366    { (exit 1); exit 1; }; }
1367 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1368   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1369 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1370    { (exit 1); exit 1; }; }
1371
1372 fi
1373 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1374 echo "${ECHO_T}$ac_cv_build" >&6
1375 build=$ac_cv_build
1376 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1377 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1378 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1379
1380
1381 echo "$as_me:$LINENO: checking host system type" >&5
1382 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1383 if test "${ac_cv_host+set}" = set; then
1384   echo $ECHO_N "(cached) $ECHO_C" >&6
1385 else
1386   ac_cv_host_alias=$host_alias
1387 test -z "$ac_cv_host_alias" &&
1388   ac_cv_host_alias=$ac_cv_build_alias
1389 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1390   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1391 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1392    { (exit 1); exit 1; }; }
1393
1394 fi
1395 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1396 echo "${ECHO_T}$ac_cv_host" >&6
1397 host=$ac_cv_host
1398 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1399 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1400 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1401
1402
1403 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \${MAKE}" >&5
1404 echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
1405 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
1406 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1407   echo $ECHO_N "(cached) $ECHO_C" >&6
1408 else
1409   cat >conftest.make <<\_ACEOF
1410 all:
1411         @echo 'ac_maketemp="${MAKE}"'
1412 _ACEOF
1413 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1414 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1415 if test -n "$ac_maketemp"; then
1416   eval ac_cv_prog_make_${ac_make}_set=yes
1417 else
1418   eval ac_cv_prog_make_${ac_make}_set=no
1419 fi
1420 rm -f conftest.make
1421 fi
1422 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1423   echo "$as_me:$LINENO: result: yes" >&5
1424 echo "${ECHO_T}yes" >&6
1425   SET_MAKE=
1426 else
1427   echo "$as_me:$LINENO: result: no" >&5
1428 echo "${ECHO_T}no" >&6
1429   SET_MAKE="MAKE=${MAKE-make}"
1430 fi
1431
1432 ac_ext=c
1433 ac_cpp='$CPP $CPPFLAGS'
1434 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1435 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1436 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1437 if test -n "$ac_tool_prefix"; then
1438   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1439 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1440 echo "$as_me:$LINENO: checking for $ac_word" >&5
1441 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1442 if test "${ac_cv_prog_CC+set}" = set; then
1443   echo $ECHO_N "(cached) $ECHO_C" >&6
1444 else
1445   if test -n "$CC"; then
1446   ac_cv_prog_CC="$CC" # Let the user override the test.
1447 else
1448 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1449 for as_dir in $PATH
1450 do
1451   IFS=$as_save_IFS
1452   test -z "$as_dir" && as_dir=.
1453   for ac_exec_ext in '' $ac_executable_extensions; do
1454   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1455     ac_cv_prog_CC="${ac_tool_prefix}gcc"
1456     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1457     break 2
1458   fi
1459 done
1460 done
1461
1462 fi
1463 fi
1464 CC=$ac_cv_prog_CC
1465 if test -n "$CC"; then
1466   echo "$as_me:$LINENO: result: $CC" >&5
1467 echo "${ECHO_T}$CC" >&6
1468 else
1469   echo "$as_me:$LINENO: result: no" >&5
1470 echo "${ECHO_T}no" >&6
1471 fi
1472
1473 fi
1474 if test -z "$ac_cv_prog_CC"; then
1475   ac_ct_CC=$CC
1476   # Extract the first word of "gcc", so it can be a program name with args.
1477 set dummy gcc; ac_word=$2
1478 echo "$as_me:$LINENO: checking for $ac_word" >&5
1479 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1480 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1481   echo $ECHO_N "(cached) $ECHO_C" >&6
1482 else
1483   if test -n "$ac_ct_CC"; then
1484   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1485 else
1486 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1487 for as_dir in $PATH
1488 do
1489   IFS=$as_save_IFS
1490   test -z "$as_dir" && as_dir=.
1491   for ac_exec_ext in '' $ac_executable_extensions; do
1492   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1493     ac_cv_prog_ac_ct_CC="gcc"
1494     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1495     break 2
1496   fi
1497 done
1498 done
1499
1500 fi
1501 fi
1502 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1503 if test -n "$ac_ct_CC"; then
1504   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1505 echo "${ECHO_T}$ac_ct_CC" >&6
1506 else
1507   echo "$as_me:$LINENO: result: no" >&5
1508 echo "${ECHO_T}no" >&6
1509 fi
1510
1511   CC=$ac_ct_CC
1512 else
1513   CC="$ac_cv_prog_CC"
1514 fi
1515
1516 if test -z "$CC"; then
1517   if test -n "$ac_tool_prefix"; then
1518   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1519 set dummy ${ac_tool_prefix}cc; ac_word=$2
1520 echo "$as_me:$LINENO: checking for $ac_word" >&5
1521 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1522 if test "${ac_cv_prog_CC+set}" = set; then
1523   echo $ECHO_N "(cached) $ECHO_C" >&6
1524 else
1525   if test -n "$CC"; then
1526   ac_cv_prog_CC="$CC" # Let the user override the test.
1527 else
1528 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1529 for as_dir in $PATH
1530 do
1531   IFS=$as_save_IFS
1532   test -z "$as_dir" && as_dir=.
1533   for ac_exec_ext in '' $ac_executable_extensions; do
1534   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1535     ac_cv_prog_CC="${ac_tool_prefix}cc"
1536     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1537     break 2
1538   fi
1539 done
1540 done
1541
1542 fi
1543 fi
1544 CC=$ac_cv_prog_CC
1545 if test -n "$CC"; then
1546   echo "$as_me:$LINENO: result: $CC" >&5
1547 echo "${ECHO_T}$CC" >&6
1548 else
1549   echo "$as_me:$LINENO: result: no" >&5
1550 echo "${ECHO_T}no" >&6
1551 fi
1552
1553 fi
1554 if test -z "$ac_cv_prog_CC"; then
1555   ac_ct_CC=$CC
1556   # Extract the first word of "cc", so it can be a program name with args.
1557 set dummy cc; ac_word=$2
1558 echo "$as_me:$LINENO: checking for $ac_word" >&5
1559 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1560 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1561   echo $ECHO_N "(cached) $ECHO_C" >&6
1562 else
1563   if test -n "$ac_ct_CC"; then
1564   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1565 else
1566 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1567 for as_dir in $PATH
1568 do
1569   IFS=$as_save_IFS
1570   test -z "$as_dir" && as_dir=.
1571   for ac_exec_ext in '' $ac_executable_extensions; do
1572   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1573     ac_cv_prog_ac_ct_CC="cc"
1574     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1575     break 2
1576   fi
1577 done
1578 done
1579
1580 fi
1581 fi
1582 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1583 if test -n "$ac_ct_CC"; then
1584   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1585 echo "${ECHO_T}$ac_ct_CC" >&6
1586 else
1587   echo "$as_me:$LINENO: result: no" >&5
1588 echo "${ECHO_T}no" >&6
1589 fi
1590
1591   CC=$ac_ct_CC
1592 else
1593   CC="$ac_cv_prog_CC"
1594 fi
1595
1596 fi
1597 if test -z "$CC"; then
1598   # Extract the first word of "cc", so it can be a program name with args.
1599 set dummy cc; ac_word=$2
1600 echo "$as_me:$LINENO: checking for $ac_word" >&5
1601 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1602 if test "${ac_cv_prog_CC+set}" = set; then
1603   echo $ECHO_N "(cached) $ECHO_C" >&6
1604 else
1605   if test -n "$CC"; then
1606   ac_cv_prog_CC="$CC" # Let the user override the test.
1607 else
1608   ac_prog_rejected=no
1609 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1610 for as_dir in $PATH
1611 do
1612   IFS=$as_save_IFS
1613   test -z "$as_dir" && as_dir=.
1614   for ac_exec_ext in '' $ac_executable_extensions; do
1615   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1616     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1617        ac_prog_rejected=yes
1618        continue
1619      fi
1620     ac_cv_prog_CC="cc"
1621     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1622     break 2
1623   fi
1624 done
1625 done
1626
1627 if test $ac_prog_rejected = yes; then
1628   # We found a bogon in the path, so make sure we never use it.
1629   set dummy $ac_cv_prog_CC
1630   shift
1631   if test $# != 0; then
1632     # We chose a different compiler from the bogus one.
1633     # However, it has the same basename, so the bogon will be chosen
1634     # first if we set CC to just the basename; use the full file name.
1635     shift
1636     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1637   fi
1638 fi
1639 fi
1640 fi
1641 CC=$ac_cv_prog_CC
1642 if test -n "$CC"; then
1643   echo "$as_me:$LINENO: result: $CC" >&5
1644 echo "${ECHO_T}$CC" >&6
1645 else
1646   echo "$as_me:$LINENO: result: no" >&5
1647 echo "${ECHO_T}no" >&6
1648 fi
1649
1650 fi
1651 if test -z "$CC"; then
1652   if test -n "$ac_tool_prefix"; then
1653   for ac_prog in cl
1654   do
1655     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1656 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1657 echo "$as_me:$LINENO: checking for $ac_word" >&5
1658 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1659 if test "${ac_cv_prog_CC+set}" = set; then
1660   echo $ECHO_N "(cached) $ECHO_C" >&6
1661 else
1662   if test -n "$CC"; then
1663   ac_cv_prog_CC="$CC" # Let the user override the test.
1664 else
1665 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1666 for as_dir in $PATH
1667 do
1668   IFS=$as_save_IFS
1669   test -z "$as_dir" && as_dir=.
1670   for ac_exec_ext in '' $ac_executable_extensions; do
1671   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1672     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1673     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1674     break 2
1675   fi
1676 done
1677 done
1678
1679 fi
1680 fi
1681 CC=$ac_cv_prog_CC
1682 if test -n "$CC"; then
1683   echo "$as_me:$LINENO: result: $CC" >&5
1684 echo "${ECHO_T}$CC" >&6
1685 else
1686   echo "$as_me:$LINENO: result: no" >&5
1687 echo "${ECHO_T}no" >&6
1688 fi
1689
1690     test -n "$CC" && break
1691   done
1692 fi
1693 if test -z "$CC"; then
1694   ac_ct_CC=$CC
1695   for ac_prog in cl
1696 do
1697   # Extract the first word of "$ac_prog", so it can be a program name with args.
1698 set dummy $ac_prog; ac_word=$2
1699 echo "$as_me:$LINENO: checking for $ac_word" >&5
1700 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1701 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1702   echo $ECHO_N "(cached) $ECHO_C" >&6
1703 else
1704   if test -n "$ac_ct_CC"; then
1705   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1706 else
1707 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1708 for as_dir in $PATH
1709 do
1710   IFS=$as_save_IFS
1711   test -z "$as_dir" && as_dir=.
1712   for ac_exec_ext in '' $ac_executable_extensions; do
1713   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1714     ac_cv_prog_ac_ct_CC="$ac_prog"
1715     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1716     break 2
1717   fi
1718 done
1719 done
1720
1721 fi
1722 fi
1723 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1724 if test -n "$ac_ct_CC"; then
1725   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1726 echo "${ECHO_T}$ac_ct_CC" >&6
1727 else
1728   echo "$as_me:$LINENO: result: no" >&5
1729 echo "${ECHO_T}no" >&6
1730 fi
1731
1732   test -n "$ac_ct_CC" && break
1733 done
1734
1735   CC=$ac_ct_CC
1736 fi
1737
1738 fi
1739
1740
1741 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH" >&5
1742 echo "$as_me: error: no acceptable C compiler found in \$PATH" >&2;}
1743    { (exit 1); exit 1; }; }
1744
1745 # Provide some information about the compiler.
1746 echo "$as_me:$LINENO:" \
1747      "checking for C compiler version" >&5
1748 ac_compiler=`set X $ac_compile; echo $2`
1749 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1750   (eval $ac_compiler --version </dev/null >&5) 2>&5
1751   ac_status=$?
1752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1753   (exit $ac_status); }
1754 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1755   (eval $ac_compiler -v </dev/null >&5) 2>&5
1756   ac_status=$?
1757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1758   (exit $ac_status); }
1759 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1760   (eval $ac_compiler -V </dev/null >&5) 2>&5
1761   ac_status=$?
1762   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1763   (exit $ac_status); }
1764
1765 cat >conftest.$ac_ext <<_ACEOF
1766 #line $LINENO "configure"
1767 #include "confdefs.h"
1768
1769 int
1770 main ()
1771 {
1772
1773   ;
1774   return 0;
1775 }
1776 _ACEOF
1777 ac_clean_files_save=$ac_clean_files
1778 ac_clean_files="$ac_clean_files a.out a.exe"
1779 # Try to create an executable without -o first, disregard a.out.
1780 # It will help us diagnose broken compilers, and finding out an intuition
1781 # of exeext.
1782 echo "$as_me:$LINENO: checking for C compiler default output" >&5
1783 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1784 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1785 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1786   (eval $ac_link_default) 2>&5
1787   ac_status=$?
1788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1789   (exit $ac_status); }; then
1790   # Find the output, starting from the most likely.  This scheme is
1791 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1792 # resort.
1793
1794 # Be careful to initialize this variable, since it used to be cached.
1795 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1796 ac_cv_exeext=
1797 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.*; do
1798   test -f "$ac_file" || continue
1799   case $ac_file in
1800     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1801     a.out ) # We found the default executable, but exeext='' is most
1802             # certainly right.
1803             break;;
1804     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1805           # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
1806           export ac_cv_exeext
1807           break;;
1808     * ) break;;
1809   esac
1810 done
1811 else
1812   echo "$as_me: failed program was:" >&5
1813 cat conftest.$ac_ext >&5
1814 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1815 check \`config.log' for details." >&5
1816 echo "$as_me: error: C compiler cannot create executables
1817 check \`config.log' for details." >&2;}
1818    { (exit 77); exit 77; }; }
1819 fi
1820
1821 ac_exeext=$ac_cv_exeext
1822 echo "$as_me:$LINENO: result: $ac_file" >&5
1823 echo "${ECHO_T}$ac_file" >&6
1824
1825 # Check the compiler produces executables we can run.  If not, either
1826 # the compiler is broken, or we cross compile.
1827 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1828 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1829 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1830 # If not cross compiling, check that we can run a simple program.
1831 if test "$cross_compiling" != yes; then
1832   if { ac_try='./$ac_file'
1833   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1834   (eval $ac_try) 2>&5
1835   ac_status=$?
1836   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1837   (exit $ac_status); }; }; then
1838     cross_compiling=no
1839   else
1840     if test "$cross_compiling" = maybe; then
1841         cross_compiling=yes
1842     else
1843         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1844 If you meant to cross compile, use \`--host'." >&5
1845 echo "$as_me: error: cannot run C compiled programs.
1846 If you meant to cross compile, use \`--host'." >&2;}
1847    { (exit 1); exit 1; }; }
1848     fi
1849   fi
1850 fi
1851 echo "$as_me:$LINENO: result: yes" >&5
1852 echo "${ECHO_T}yes" >&6
1853
1854 rm -f a.out a.exe conftest$ac_cv_exeext
1855 ac_clean_files=$ac_clean_files_save
1856 # Check the compiler produces executables we can run.  If not, either
1857 # the compiler is broken, or we cross compile.
1858 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1859 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1860 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1861 echo "${ECHO_T}$cross_compiling" >&6
1862
1863 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1864 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1865 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1866   (eval $ac_link) 2>&5
1867   ac_status=$?
1868   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1869   (exit $ac_status); }; then
1870   # If both `conftest.exe' and `conftest' are `present' (well, observable)
1871 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
1872 # work properly (i.e., refer to `conftest.exe'), while it won't with
1873 # `rm'.
1874 for ac_file in conftest.exe conftest conftest.*; do
1875   test -f "$ac_file" || continue
1876   case $ac_file in
1877     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1878     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1879           export ac_cv_exeext
1880           break;;
1881     * ) break;;
1882   esac
1883 done
1884 else
1885   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link" >&5
1886 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link" >&2;}
1887    { (exit 1); exit 1; }; }
1888 fi
1889
1890 rm -f conftest$ac_cv_exeext
1891 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1892 echo "${ECHO_T}$ac_cv_exeext" >&6
1893
1894 rm -f conftest.$ac_ext
1895 EXEEXT=$ac_cv_exeext
1896 ac_exeext=$EXEEXT
1897 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1898 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1899 if test "${ac_cv_objext+set}" = set; then
1900   echo $ECHO_N "(cached) $ECHO_C" >&6
1901 else
1902   cat >conftest.$ac_ext <<_ACEOF
1903 #line $LINENO "configure"
1904 #include "confdefs.h"
1905
1906 int
1907 main ()
1908 {
1909
1910   ;
1911   return 0;
1912 }
1913 _ACEOF
1914 rm -f conftest.o conftest.obj
1915 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1916   (eval $ac_compile) 2>&5
1917   ac_status=$?
1918   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1919   (exit $ac_status); }; then
1920   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1921   case $ac_file in
1922     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1923     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1924        break;;
1925   esac
1926 done
1927 else
1928   echo "$as_me: failed program was:" >&5
1929 cat conftest.$ac_ext >&5
1930 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile" >&5
1931 echo "$as_me: error: cannot compute suffix of object files: cannot compile" >&2;}
1932    { (exit 1); exit 1; }; }
1933 fi
1934
1935 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1936 fi
1937 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1938 echo "${ECHO_T}$ac_cv_objext" >&6
1939 OBJEXT=$ac_cv_objext
1940 ac_objext=$OBJEXT
1941 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1942 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1943 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1944   echo $ECHO_N "(cached) $ECHO_C" >&6
1945 else
1946   cat >conftest.$ac_ext <<_ACEOF
1947 #line $LINENO "configure"
1948 #include "confdefs.h"
1949
1950 int
1951 main ()
1952 {
1953 #ifndef __GNUC__
1954        choke me
1955 #endif
1956
1957   ;
1958   return 0;
1959 }
1960 _ACEOF
1961 rm -f conftest.$ac_objext
1962 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1963   (eval $ac_compile) 2>&5
1964   ac_status=$?
1965   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1966   (exit $ac_status); } &&
1967          { ac_try='test -s conftest.$ac_objext'
1968   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1969   (eval $ac_try) 2>&5
1970   ac_status=$?
1971   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1972   (exit $ac_status); }; }; then
1973   ac_compiler_gnu=yes
1974 else
1975   echo "$as_me: failed program was:" >&5
1976 cat conftest.$ac_ext >&5
1977 ac_compiler_gnu=no
1978 fi
1979 rm -f conftest.$ac_objext conftest.$ac_ext
1980 ac_cv_c_compiler_gnu=$ac_compiler_gnu
1981
1982 fi
1983 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
1984 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1985 GCC=`test $ac_compiler_gnu = yes && echo yes`
1986 ac_test_CFLAGS=${CFLAGS+set}
1987 ac_save_CFLAGS=$CFLAGS
1988 CFLAGS="-g"
1989 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
1990 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1991 if test "${ac_cv_prog_cc_g+set}" = set; then
1992   echo $ECHO_N "(cached) $ECHO_C" >&6
1993 else
1994   cat >conftest.$ac_ext <<_ACEOF
1995 #line $LINENO "configure"
1996 #include "confdefs.h"
1997
1998 int
1999 main ()
2000 {
2001
2002   ;
2003   return 0;
2004 }
2005 _ACEOF
2006 rm -f conftest.$ac_objext
2007 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2008   (eval $ac_compile) 2>&5
2009   ac_status=$?
2010   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2011   (exit $ac_status); } &&
2012          { ac_try='test -s conftest.$ac_objext'
2013   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2014   (eval $ac_try) 2>&5
2015   ac_status=$?
2016   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2017   (exit $ac_status); }; }; then
2018   ac_cv_prog_cc_g=yes
2019 else
2020   echo "$as_me: failed program was:" >&5
2021 cat conftest.$ac_ext >&5
2022 ac_cv_prog_cc_g=no
2023 fi
2024 rm -f conftest.$ac_objext conftest.$ac_ext
2025 fi
2026 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2027 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2028 if test "$ac_test_CFLAGS" = set; then
2029   CFLAGS=$ac_save_CFLAGS
2030 elif test $ac_cv_prog_cc_g = yes; then
2031   if test "$GCC" = yes; then
2032     CFLAGS="-g -O2"
2033   else
2034     CFLAGS="-g"
2035   fi
2036 else
2037   if test "$GCC" = yes; then
2038     CFLAGS="-O2"
2039   else
2040     CFLAGS=
2041   fi
2042 fi
2043 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2044 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2045 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2046   echo $ECHO_N "(cached) $ECHO_C" >&6
2047 else
2048   ac_cv_prog_cc_stdc=no
2049 ac_save_CC=$CC
2050 cat >conftest.$ac_ext <<_ACEOF
2051 #line $LINENO "configure"
2052 #include "confdefs.h"
2053 #include <stdarg.h>
2054 #include <stdio.h>
2055 #include <sys/types.h>
2056 #include <sys/stat.h>
2057 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2058 struct buf { int x; };
2059 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2060 static char *e (p, i)
2061      char **p;
2062      int i;
2063 {
2064   return p[i];
2065 }
2066 static char *f (char * (*g) (char **, int), char **p, ...)
2067 {
2068   char *s;
2069   va_list v;
2070   va_start (v,p);
2071   s = g (p, va_arg (v,int));
2072   va_end (v);
2073   return s;
2074 }
2075 int test (int i, double x);
2076 struct s1 {int (*f) (int a);};
2077 struct s2 {int (*f) (double a);};
2078 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2079 int argc;
2080 char **argv;
2081 int
2082 main ()
2083 {
2084 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2085   ;
2086   return 0;
2087 }
2088 _ACEOF
2089 # Don't try gcc -ansi; that turns off useful extensions and
2090 # breaks some systems' header files.
2091 # AIX                   -qlanglvl=ansi
2092 # Ultrix and OSF/1      -std1
2093 # HP-UX 10.20 and later -Ae
2094 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2095 # SVR4                  -Xc -D__EXTENSIONS__
2096 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2097 do
2098   CC="$ac_save_CC $ac_arg"
2099   rm -f conftest.$ac_objext
2100 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2101   (eval $ac_compile) 2>&5
2102   ac_status=$?
2103   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2104   (exit $ac_status); } &&
2105          { ac_try='test -s conftest.$ac_objext'
2106   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2107   (eval $ac_try) 2>&5
2108   ac_status=$?
2109   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2110   (exit $ac_status); }; }; then
2111   ac_cv_prog_cc_stdc=$ac_arg
2112 break
2113 else
2114   echo "$as_me: failed program was:" >&5
2115 cat conftest.$ac_ext >&5
2116 fi
2117 rm -f conftest.$ac_objext
2118 done
2119 rm -f conftest.$ac_ext conftest.$ac_objext
2120 CC=$ac_save_CC
2121
2122 fi
2123
2124 case "x$ac_cv_prog_cc_stdc" in
2125   x|xno)
2126     echo "$as_me:$LINENO: result: none needed" >&5
2127 echo "${ECHO_T}none needed" >&6 ;;
2128   *)
2129     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2130 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2131     CC="$CC $ac_cv_prog_cc_stdc" ;;
2132 esac
2133
2134 # Some people use a C++ compiler to compile C.  Since we use `exit',
2135 # in C++ we need to declare it.  In case someone uses the same compiler
2136 # for both compiling C and C++ we need to have the C++ compiler decide
2137 # the declaration of exit, since it's the most demanding environment.
2138 cat >conftest.$ac_ext <<_ACEOF
2139 #ifndef __cplusplus
2140   choke me
2141 #endif
2142 _ACEOF
2143 rm -f conftest.$ac_objext
2144 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2145   (eval $ac_compile) 2>&5
2146   ac_status=$?
2147   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2148   (exit $ac_status); } &&
2149          { ac_try='test -s conftest.$ac_objext'
2150   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2151   (eval $ac_try) 2>&5
2152   ac_status=$?
2153   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2154   (exit $ac_status); }; }; then
2155   for ac_declaration in \
2156    ''\
2157    '#include <stdlib.h>' \
2158    'extern "C" void std::exit (int) throw (); using std::exit;' \
2159    'extern "C" void std::exit (int); using std::exit;' \
2160    'extern "C" void exit (int) throw ();' \
2161    'extern "C" void exit (int);' \
2162    'void exit (int);'
2163 do
2164   cat >conftest.$ac_ext <<_ACEOF
2165 #line $LINENO "configure"
2166 #include "confdefs.h"
2167 #include <stdlib.h>
2168 $ac_declaration
2169 int
2170 main ()
2171 {
2172 exit (42);
2173   ;
2174   return 0;
2175 }
2176 _ACEOF
2177 rm -f conftest.$ac_objext
2178 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2179   (eval $ac_compile) 2>&5
2180   ac_status=$?
2181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2182   (exit $ac_status); } &&
2183          { ac_try='test -s conftest.$ac_objext'
2184   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2185   (eval $ac_try) 2>&5
2186   ac_status=$?
2187   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2188   (exit $ac_status); }; }; then
2189   :
2190 else
2191   echo "$as_me: failed program was:" >&5
2192 cat conftest.$ac_ext >&5
2193 continue
2194 fi
2195 rm -f conftest.$ac_objext conftest.$ac_ext
2196   cat >conftest.$ac_ext <<_ACEOF
2197 #line $LINENO "configure"
2198 #include "confdefs.h"
2199 $ac_declaration
2200 int
2201 main ()
2202 {
2203 exit (42);
2204   ;
2205   return 0;
2206 }
2207 _ACEOF
2208 rm -f conftest.$ac_objext
2209 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2210   (eval $ac_compile) 2>&5
2211   ac_status=$?
2212   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2213   (exit $ac_status); } &&
2214          { ac_try='test -s conftest.$ac_objext'
2215   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2216   (eval $ac_try) 2>&5
2217   ac_status=$?
2218   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2219   (exit $ac_status); }; }; then
2220   break
2221 else
2222   echo "$as_me: failed program was:" >&5
2223 cat conftest.$ac_ext >&5
2224 fi
2225 rm -f conftest.$ac_objext conftest.$ac_ext
2226 done
2227 rm -f conftest*
2228 if test -n "$ac_declaration"; then
2229   echo '#ifdef __cplusplus' >>confdefs.h
2230   echo $ac_declaration      >>confdefs.h
2231   echo '#endif'             >>confdefs.h
2232 fi
2233
2234 else
2235   echo "$as_me: failed program was:" >&5
2236 cat conftest.$ac_ext >&5
2237 fi
2238 rm -f conftest.$ac_objext conftest.$ac_ext
2239 ac_ext=c
2240 ac_cpp='$CPP $CPPFLAGS'
2241 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2242 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2243 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2244
2245 ac_ext=c
2246 ac_cpp='$CPP $CPPFLAGS'
2247 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2248 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2249 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2250 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2251 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2252 # On Suns, sometimes $CPP names a directory.
2253 if test -n "$CPP" && test -d "$CPP"; then
2254   CPP=
2255 fi
2256 if test -z "$CPP"; then
2257   if test "${ac_cv_prog_CPP+set}" = set; then
2258   echo $ECHO_N "(cached) $ECHO_C" >&6
2259 else
2260       # Double quotes because CPP needs to be expanded
2261     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2262     do
2263       ac_preproc_ok=false
2264 for ac_c_preproc_warn_flag in '' yes
2265 do
2266   # Use a header file that comes with gcc, so configuring glibc
2267   # with a fresh cross-compiler works.
2268   # On the NeXT, cc -E runs the code through the compiler's parser,
2269   # not just through cpp. "Syntax error" is here to catch this case.
2270   cat >conftest.$ac_ext <<_ACEOF
2271 #line $LINENO "configure"
2272 #include "confdefs.h"
2273 #include <assert.h>
2274                      Syntax error
2275 _ACEOF
2276 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2277   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2278   ac_status=$?
2279   grep -v '^ *+' conftest.er1 >conftest.err
2280   rm -f conftest.er1
2281   cat conftest.err >&5
2282   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2283   (exit $ac_status); } >/dev/null; then
2284   if test -s conftest.err; then
2285     ac_cpp_err=$ac_c_preproc_warn_flag
2286   else
2287     ac_cpp_err=
2288   fi
2289 else
2290   ac_cpp_err=yes
2291 fi
2292 if test -z "$ac_cpp_err"; then
2293   :
2294 else
2295   echo "$as_me: failed program was:" >&5
2296   cat conftest.$ac_ext >&5
2297   # Broken: fails on valid input.
2298 continue
2299 fi
2300 rm -f conftest.err conftest.$ac_ext
2301
2302   # OK, works on sane cases.  Now check whether non-existent headers
2303   # can be detected and how.
2304   cat >conftest.$ac_ext <<_ACEOF
2305 #line $LINENO "configure"
2306 #include "confdefs.h"
2307 #include <ac_nonexistent.h>
2308 _ACEOF
2309 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2310   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2311   ac_status=$?
2312   grep -v '^ *+' conftest.er1 >conftest.err
2313   rm -f conftest.er1
2314   cat conftest.err >&5
2315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2316   (exit $ac_status); } >/dev/null; then
2317   if test -s conftest.err; then
2318     ac_cpp_err=$ac_c_preproc_warn_flag
2319   else
2320     ac_cpp_err=
2321   fi
2322 else
2323   ac_cpp_err=yes
2324 fi
2325 if test -z "$ac_cpp_err"; then
2326   # Broken: success on invalid input.
2327 continue
2328 else
2329   echo "$as_me: failed program was:" >&5
2330   cat conftest.$ac_ext >&5
2331   # Passes both tests.
2332 ac_preproc_ok=:
2333 break
2334 fi
2335 rm -f conftest.err conftest.$ac_ext
2336
2337 done
2338 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2339 rm -f conftest.err conftest.$ac_ext
2340 if $ac_preproc_ok; then
2341   break
2342 fi
2343
2344     done
2345     ac_cv_prog_CPP=$CPP
2346
2347 fi
2348   CPP=$ac_cv_prog_CPP
2349 else
2350   ac_cv_prog_CPP=$CPP
2351 fi
2352 echo "$as_me:$LINENO: result: $CPP" >&5
2353 echo "${ECHO_T}$CPP" >&6
2354 ac_preproc_ok=false
2355 for ac_c_preproc_warn_flag in '' yes
2356 do
2357   # Use a header file that comes with gcc, so configuring glibc
2358   # with a fresh cross-compiler works.
2359   # On the NeXT, cc -E runs the code through the compiler's parser,
2360   # not just through cpp. "Syntax error" is here to catch this case.
2361   cat >conftest.$ac_ext <<_ACEOF
2362 #line $LINENO "configure"
2363 #include "confdefs.h"
2364 #include <assert.h>
2365                      Syntax error
2366 _ACEOF
2367 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2368   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2369   ac_status=$?
2370   grep -v '^ *+' conftest.er1 >conftest.err
2371   rm -f conftest.er1
2372   cat conftest.err >&5
2373   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2374   (exit $ac_status); } >/dev/null; then
2375   if test -s conftest.err; then
2376     ac_cpp_err=$ac_c_preproc_warn_flag
2377   else
2378     ac_cpp_err=
2379   fi
2380 else
2381   ac_cpp_err=yes
2382 fi
2383 if test -z "$ac_cpp_err"; then
2384   :
2385 else
2386   echo "$as_me: failed program was:" >&5
2387   cat conftest.$ac_ext >&5
2388   # Broken: fails on valid input.
2389 continue
2390 fi
2391 rm -f conftest.err conftest.$ac_ext
2392
2393   # OK, works on sane cases.  Now check whether non-existent headers
2394   # can be detected and how.
2395   cat >conftest.$ac_ext <<_ACEOF
2396 #line $LINENO "configure"
2397 #include "confdefs.h"
2398 #include <ac_nonexistent.h>
2399 _ACEOF
2400 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2401   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2402   ac_status=$?
2403   grep -v '^ *+' conftest.er1 >conftest.err
2404   rm -f conftest.er1
2405   cat conftest.err >&5
2406   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2407   (exit $ac_status); } >/dev/null; then
2408   if test -s conftest.err; then
2409     ac_cpp_err=$ac_c_preproc_warn_flag
2410   else
2411     ac_cpp_err=
2412   fi
2413 else
2414   ac_cpp_err=yes
2415 fi
2416 if test -z "$ac_cpp_err"; then
2417   # Broken: success on invalid input.
2418 continue
2419 else
2420   echo "$as_me: failed program was:" >&5
2421   cat conftest.$ac_ext >&5
2422   # Passes both tests.
2423 ac_preproc_ok=:
2424 break
2425 fi
2426 rm -f conftest.err conftest.$ac_ext
2427
2428 done
2429 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2430 rm -f conftest.err conftest.$ac_ext
2431 if $ac_preproc_ok; then
2432   :
2433 else
2434   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check" >&5
2435 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
2436    { (exit 1); exit 1; }; }
2437 fi
2438
2439 ac_ext=c
2440 ac_cpp='$CPP $CPPFLAGS'
2441 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2442 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2443 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2444
2445
2446 echo "$as_me:$LINENO: checking for the directory containing the Wine tools" >&5
2447 echo $ECHO_N "checking for the directory containing the Wine tools... $ECHO_C" >&6
2448 if test "${wine_cv_toolsdir+set}" = set; then
2449   echo $ECHO_N "(cached) $ECHO_C" >&6
2450 else
2451   if test -z "$with_wine_tools"; then
2452      if test "$cross_compiling" = "yes"; then
2453        { { echo "$as_me:$LINENO: error: you must use the --with-wine-tools option when cross-compiling." >&5
2454 echo "$as_me: error: you must use the --with-wine-tools option when cross-compiling." >&2;}
2455    { (exit 1); exit 1; }; }
2456      else
2457        wine_cv_toolsdir="\$(TOPOBJDIR)"
2458      fi
2459    elif test -d "$with_wine_tools/tools/winebuild"; then
2460      case $with_wine_tools in
2461        /*) wine_cv_toolsdir="$with_wine_tools" ;;
2462        *)  wine_cv_toolsdir="\$(TOPOBJDIR)/$with_wine_tools" ;;
2463      esac
2464    else
2465      { { echo "$as_me:$LINENO: error: could not find Wine tools in $with_wine_tools." >&5
2466 echo "$as_me: error: could not find Wine tools in $with_wine_tools." >&2;}
2467    { (exit 1); exit 1; }; }
2468    fi
2469 fi
2470 echo "$as_me:$LINENO: result: $wine_cv_toolsdir" >&5
2471 echo "${ECHO_T}$wine_cv_toolsdir" >&6
2472 TOOLSDIR=$wine_cv_toolsdir
2473
2474
2475
2476
2477 echo "$as_me:$LINENO: checking for X" >&5
2478 echo $ECHO_N "checking for X... $ECHO_C" >&6
2479
2480
2481 # Check whether --with-x or --without-x was given.
2482 if test "${with_x+set}" = set; then
2483   withval="$with_x"
2484
2485 fi;
2486 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
2487 if test "x$with_x" = xno; then
2488   # The user explicitly disabled X.
2489   have_x=disabled
2490 else
2491   if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
2492     # Both variables are already set.
2493     have_x=yes
2494   else
2495     if test "${ac_cv_have_x+set}" = set; then
2496   echo $ECHO_N "(cached) $ECHO_C" >&6
2497 else
2498   # One or both of the vars are not set, and there is no cached value.
2499 ac_x_includes=no ac_x_libraries=no
2500 rm -fr conftest.dir
2501 if mkdir conftest.dir; then
2502   cd conftest.dir
2503   # Make sure to not put "make" in the Imakefile rules, since we grep it out.
2504   cat >Imakefile <<'_ACEOF'
2505 acfindx:
2506         @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
2507 _ACEOF
2508   if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
2509     # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2510     eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
2511     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
2512     for ac_extension in a so sl; do
2513       if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
2514          test -f $ac_im_libdir/libX11.$ac_extension; then
2515         ac_im_usrlibdir=$ac_im_libdir; break
2516       fi
2517     done
2518     # Screen out bogus values from the imake configuration.  They are
2519     # bogus both because they are the default anyway, and because
2520     # using them would break gcc on systems where it needs fixed includes.
2521     case $ac_im_incroot in
2522         /usr/include) ;;
2523         *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
2524     esac
2525     case $ac_im_usrlibdir in
2526         /usr/lib | /lib) ;;
2527         *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
2528     esac
2529   fi
2530   cd ..
2531   rm -fr conftest.dir
2532 fi
2533
2534 # Standard set of common directories for X headers.
2535 # Check X11 before X11Rn because it is often a symlink to the current release.
2536 ac_x_header_dirs='
2537 /usr/X11/include
2538 /usr/X11R6/include
2539 /usr/X11R5/include
2540 /usr/X11R4/include
2541
2542 /usr/include/X11
2543 /usr/include/X11R6
2544 /usr/include/X11R5
2545 /usr/include/X11R4
2546
2547 /usr/local/X11/include
2548 /usr/local/X11R6/include
2549 /usr/local/X11R5/include
2550 /usr/local/X11R4/include
2551
2552 /usr/local/include/X11
2553 /usr/local/include/X11R6
2554 /usr/local/include/X11R5
2555 /usr/local/include/X11R4
2556
2557 /usr/X386/include
2558 /usr/x386/include
2559 /usr/XFree86/include/X11
2560
2561 /usr/include
2562 /usr/local/include
2563 /usr/unsupported/include
2564 /usr/athena/include
2565 /usr/local/x11r5/include
2566 /usr/lpp/Xamples/include
2567
2568 /usr/openwin/include
2569 /usr/openwin/share/include'
2570
2571 if test "$ac_x_includes" = no; then
2572   # Guess where to find include files, by looking for Intrinsic.h.
2573   # First, try using that file with no special directory specified.
2574   cat >conftest.$ac_ext <<_ACEOF
2575 #line $LINENO "configure"
2576 #include "confdefs.h"
2577 #include <X11/Intrinsic.h>
2578 _ACEOF
2579 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2580   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2581   ac_status=$?
2582   grep -v '^ *+' conftest.er1 >conftest.err
2583   rm -f conftest.er1
2584   cat conftest.err >&5
2585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2586   (exit $ac_status); } >/dev/null; then
2587   if test -s conftest.err; then
2588     ac_cpp_err=$ac_c_preproc_warn_flag
2589   else
2590     ac_cpp_err=
2591   fi
2592 else
2593   ac_cpp_err=yes
2594 fi
2595 if test -z "$ac_cpp_err"; then
2596   # We can compile using X headers with no special include directory.
2597 ac_x_includes=
2598 else
2599   echo "$as_me: failed program was:" >&5
2600   cat conftest.$ac_ext >&5
2601   for ac_dir in $ac_x_header_dirs; do
2602   if test -r "$ac_dir/X11/Intrinsic.h"; then
2603     ac_x_includes=$ac_dir
2604     break
2605   fi
2606 done
2607 fi
2608 rm -f conftest.err conftest.$ac_ext
2609 fi # $ac_x_includes = no
2610
2611 if test "$ac_x_libraries" = no; then
2612   # Check for the libraries.
2613   # See if we find them without any special options.
2614   # Don't add to $LIBS permanently.
2615   ac_save_LIBS=$LIBS
2616   LIBS="-lXt $LIBS"
2617   cat >conftest.$ac_ext <<_ACEOF
2618 #line $LINENO "configure"
2619 #include "confdefs.h"
2620 #include <X11/Intrinsic.h>
2621 int
2622 main ()
2623 {
2624 XtMalloc (0)
2625   ;
2626   return 0;
2627 }
2628 _ACEOF
2629 rm -f conftest.$ac_objext conftest$ac_exeext
2630 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2631   (eval $ac_link) 2>&5
2632   ac_status=$?
2633   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2634   (exit $ac_status); } &&
2635          { ac_try='test -s conftest$ac_exeext'
2636   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2637   (eval $ac_try) 2>&5
2638   ac_status=$?
2639   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2640   (exit $ac_status); }; }; then
2641   LIBS=$ac_save_LIBS
2642 # We can link X programs with no special library path.
2643 ac_x_libraries=
2644 else
2645   echo "$as_me: failed program was:" >&5
2646 cat conftest.$ac_ext >&5
2647 LIBS=$ac_save_LIBS
2648 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
2649 do
2650   # Don't even attempt the hair of trying to link an X program!
2651   for ac_extension in a so sl; do
2652     if test -r $ac_dir/libXt.$ac_extension; then
2653       ac_x_libraries=$ac_dir
2654       break 2
2655     fi
2656   done
2657 done
2658 fi
2659 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2660 fi # $ac_x_libraries = no
2661
2662 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
2663   # Didn't find X anywhere.  Cache the known absence of X.
2664   ac_cv_have_x="have_x=no"
2665 else
2666   # Record where we found X for the cache.
2667   ac_cv_have_x="have_x=yes \
2668                 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
2669 fi
2670 fi
2671
2672   fi
2673   eval "$ac_cv_have_x"
2674 fi # $with_x != no
2675
2676 if test "$have_x" != yes; then
2677   echo "$as_me:$LINENO: result: $have_x" >&5
2678 echo "${ECHO_T}$have_x" >&6
2679   no_x=yes
2680 else
2681   # If each of the values was on the command line, it overrides each guess.
2682   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
2683   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
2684   # Update the cache value to reflect the command line values.
2685   ac_cv_have_x="have_x=yes \
2686                 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
2687   echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
2688 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
2689 fi
2690
2691 if test "$no_x" = yes; then
2692   # Not all programs may use this symbol, but it does not hurt to define it.
2693
2694 cat >>confdefs.h <<\_ACEOF
2695 #define X_DISPLAY_MISSING 1
2696 _ACEOF
2697
2698   X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
2699 else
2700   if test -n "$x_includes"; then
2701     X_CFLAGS="$X_CFLAGS -I$x_includes"
2702   fi
2703
2704   # It would also be nice to do this for all -L options, not just this one.
2705   if test -n "$x_libraries"; then
2706     X_LIBS="$X_LIBS -L$x_libraries"
2707     # For Solaris; some versions of Sun CC require a space after -R and
2708     # others require no space.  Words are not sufficient . . . .
2709     case `(uname -sr) 2>/dev/null` in
2710     "SunOS 5"*)
2711       echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
2712 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
2713       ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
2714       cat >conftest.$ac_ext <<_ACEOF
2715 #line $LINENO "configure"
2716 #include "confdefs.h"
2717
2718 int
2719 main ()
2720 {
2721
2722   ;
2723   return 0;
2724 }
2725 _ACEOF
2726 rm -f conftest.$ac_objext conftest$ac_exeext
2727 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2728   (eval $ac_link) 2>&5
2729   ac_status=$?
2730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2731   (exit $ac_status); } &&
2732          { ac_try='test -s conftest$ac_exeext'
2733   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2734   (eval $ac_try) 2>&5
2735   ac_status=$?
2736   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2737   (exit $ac_status); }; }; then
2738   ac_R_nospace=yes
2739 else
2740   echo "$as_me: failed program was:" >&5
2741 cat conftest.$ac_ext >&5
2742 ac_R_nospace=no
2743 fi
2744 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2745       if test $ac_R_nospace = yes; then
2746         echo "$as_me:$LINENO: result: no" >&5
2747 echo "${ECHO_T}no" >&6
2748         X_LIBS="$X_LIBS -R$x_libraries"
2749       else
2750         LIBS="$ac_xsave_LIBS -R $x_libraries"
2751         cat >conftest.$ac_ext <<_ACEOF
2752 #line $LINENO "configure"
2753 #include "confdefs.h"
2754
2755 int
2756 main ()
2757 {
2758
2759   ;
2760   return 0;
2761 }
2762 _ACEOF
2763 rm -f conftest.$ac_objext conftest$ac_exeext
2764 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2765   (eval $ac_link) 2>&5
2766   ac_status=$?
2767   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2768   (exit $ac_status); } &&
2769          { ac_try='test -s conftest$ac_exeext'
2770   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2771   (eval $ac_try) 2>&5
2772   ac_status=$?
2773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2774   (exit $ac_status); }; }; then
2775   ac_R_space=yes
2776 else
2777   echo "$as_me: failed program was:" >&5
2778 cat conftest.$ac_ext >&5
2779 ac_R_space=no
2780 fi
2781 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2782         if test $ac_R_space = yes; then
2783           echo "$as_me:$LINENO: result: yes" >&5
2784 echo "${ECHO_T}yes" >&6
2785           X_LIBS="$X_LIBS -R $x_libraries"
2786         else
2787           echo "$as_me:$LINENO: result: neither works" >&5
2788 echo "${ECHO_T}neither works" >&6
2789         fi
2790       fi
2791       LIBS=$ac_xsave_LIBS
2792     esac
2793   fi
2794
2795   # Check for system-dependent libraries X programs must link with.
2796   # Do this before checking for the system-independent R6 libraries
2797   # (-lICE), since we may need -lsocket or whatever for X linking.
2798
2799   if test "$ISC" = yes; then
2800     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
2801   else
2802     # Martyn Johnson says this is needed for Ultrix, if the X
2803     # libraries were built with DECnet support.  And Karl Berry says
2804     # the Alpha needs dnet_stub (dnet does not exist).
2805     ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
2806     cat >conftest.$ac_ext <<_ACEOF
2807 #line $LINENO "configure"
2808 #include "confdefs.h"
2809
2810 /* Override any gcc2 internal prototype to avoid an error.  */
2811 #ifdef __cplusplus
2812 extern "C"
2813 #endif
2814 /* We use char because int might match the return type of a gcc2
2815    builtin and then its argument prototype would still apply.  */
2816 char XOpenDisplay ();
2817 int
2818 main ()
2819 {
2820 XOpenDisplay ();
2821   ;
2822   return 0;
2823 }
2824 _ACEOF
2825 rm -f conftest.$ac_objext conftest$ac_exeext
2826 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2827   (eval $ac_link) 2>&5
2828   ac_status=$?
2829   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2830   (exit $ac_status); } &&
2831          { ac_try='test -s conftest$ac_exeext'
2832   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2833   (eval $ac_try) 2>&5
2834   ac_status=$?
2835   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2836   (exit $ac_status); }; }; then
2837   :
2838 else
2839   echo "$as_me: failed program was:" >&5
2840 cat conftest.$ac_ext >&5
2841 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
2842 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
2843 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
2844   echo $ECHO_N "(cached) $ECHO_C" >&6
2845 else
2846   ac_check_lib_save_LIBS=$LIBS
2847 LIBS="-ldnet  $LIBS"
2848 cat >conftest.$ac_ext <<_ACEOF
2849 #line $LINENO "configure"
2850 #include "confdefs.h"
2851
2852 /* Override any gcc2 internal prototype to avoid an error.  */
2853 #ifdef __cplusplus
2854 extern "C"
2855 #endif
2856 /* We use char because int might match the return type of a gcc2
2857    builtin and then its argument prototype would still apply.  */
2858 char dnet_ntoa ();
2859 int
2860 main ()
2861 {
2862 dnet_ntoa ();
2863   ;
2864   return 0;
2865 }
2866 _ACEOF
2867 rm -f conftest.$ac_objext conftest$ac_exeext
2868 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2869   (eval $ac_link) 2>&5
2870   ac_status=$?
2871   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2872   (exit $ac_status); } &&
2873          { ac_try='test -s conftest$ac_exeext'
2874   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2875   (eval $ac_try) 2>&5
2876   ac_status=$?
2877   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2878   (exit $ac_status); }; }; then
2879   ac_cv_lib_dnet_dnet_ntoa=yes
2880 else
2881   echo "$as_me: failed program was:" >&5
2882 cat conftest.$ac_ext >&5
2883 ac_cv_lib_dnet_dnet_ntoa=no
2884 fi
2885 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2886 LIBS=$ac_check_lib_save_LIBS
2887 fi
2888 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
2889 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
2890 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
2891   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
2892 fi
2893
2894     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
2895       echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
2896 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
2897 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
2898   echo $ECHO_N "(cached) $ECHO_C" >&6
2899 else
2900   ac_check_lib_save_LIBS=$LIBS
2901 LIBS="-ldnet_stub  $LIBS"
2902 cat >conftest.$ac_ext <<_ACEOF
2903 #line $LINENO "configure"
2904 #include "confdefs.h"
2905
2906 /* Override any gcc2 internal prototype to avoid an error.  */
2907 #ifdef __cplusplus
2908 extern "C"
2909 #endif
2910 /* We use char because int might match the return type of a gcc2
2911    builtin and then its argument prototype would still apply.  */
2912 char dnet_ntoa ();
2913 int
2914 main ()
2915 {
2916 dnet_ntoa ();
2917   ;
2918   return 0;
2919 }
2920 _ACEOF
2921 rm -f conftest.$ac_objext conftest$ac_exeext
2922 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2923   (eval $ac_link) 2>&5
2924   ac_status=$?
2925   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2926   (exit $ac_status); } &&
2927          { ac_try='test -s conftest$ac_exeext'
2928   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2929   (eval $ac_try) 2>&5
2930   ac_status=$?
2931   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2932   (exit $ac_status); }; }; then
2933   ac_cv_lib_dnet_stub_dnet_ntoa=yes
2934 else
2935   echo "$as_me: failed program was:" >&5
2936 cat conftest.$ac_ext >&5
2937 ac_cv_lib_dnet_stub_dnet_ntoa=no
2938 fi
2939 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2940 LIBS=$ac_check_lib_save_LIBS
2941 fi
2942 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
2943 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
2944 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
2945   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
2946 fi
2947
2948     fi
2949 fi
2950 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2951     LIBS="$ac_xsave_LIBS"
2952
2953     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
2954     # to get the SysV transport functions.
2955     # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
2956     # needs -lnsl.
2957     # The nsl library prevents programs from opening the X display
2958     # on Irix 5.2, according to T.E. Dickey.
2959     # The functions gethostbyname, getservbyname, and inet_addr are
2960     # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
2961     echo "$as_me:$LINENO: checking for gethostbyname" >&5
2962 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
2963 if test "${ac_cv_func_gethostbyname+set}" = set; then
2964   echo $ECHO_N "(cached) $ECHO_C" >&6
2965 else
2966   cat >conftest.$ac_ext <<_ACEOF
2967 #line $LINENO "configure"
2968 #include "confdefs.h"
2969 /* System header to define __stub macros and hopefully few prototypes,
2970     which can conflict with char gethostbyname (); below.  */
2971 #include <assert.h>
2972 /* Override any gcc2 internal prototype to avoid an error.  */
2973 #ifdef __cplusplus
2974 extern "C"
2975 #endif
2976 /* We use char because int might match the return type of a gcc2
2977    builtin and then its argument prototype would still apply.  */
2978 char gethostbyname ();
2979 char (*f) ();
2980
2981 int
2982 main ()
2983 {
2984 /* The GNU C library defines this for functions which it implements
2985     to always fail with ENOSYS.  Some functions are actually named
2986     something starting with __ and the normal name is an alias.  */
2987 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
2988 choke me
2989 #else
2990 f = gethostbyname;
2991 #endif
2992
2993   ;
2994   return 0;
2995 }
2996 _ACEOF
2997 rm -f conftest.$ac_objext conftest$ac_exeext
2998 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2999   (eval $ac_link) 2>&5
3000   ac_status=$?
3001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3002   (exit $ac_status); } &&
3003          { ac_try='test -s conftest$ac_exeext'
3004   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3005   (eval $ac_try) 2>&5
3006   ac_status=$?
3007   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3008   (exit $ac_status); }; }; then
3009   ac_cv_func_gethostbyname=yes
3010 else
3011   echo "$as_me: failed program was:" >&5
3012 cat conftest.$ac_ext >&5
3013 ac_cv_func_gethostbyname=no
3014 fi
3015 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3016 fi
3017 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
3018 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
3019
3020     if test $ac_cv_func_gethostbyname = no; then
3021       echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
3022 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
3023 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
3024   echo $ECHO_N "(cached) $ECHO_C" >&6
3025 else
3026   ac_check_lib_save_LIBS=$LIBS
3027 LIBS="-lnsl  $LIBS"
3028 cat >conftest.$ac_ext <<_ACEOF
3029 #line $LINENO "configure"
3030 #include "confdefs.h"
3031
3032 /* Override any gcc2 internal prototype to avoid an error.  */
3033 #ifdef __cplusplus
3034 extern "C"
3035 #endif
3036 /* We use char because int might match the return type of a gcc2
3037    builtin and then its argument prototype would still apply.  */
3038 char gethostbyname ();
3039 int
3040 main ()
3041 {
3042 gethostbyname ();
3043   ;
3044   return 0;
3045 }
3046 _ACEOF
3047 rm -f conftest.$ac_objext conftest$ac_exeext
3048 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3049   (eval $ac_link) 2>&5
3050   ac_status=$?
3051   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3052   (exit $ac_status); } &&
3053          { ac_try='test -s conftest$ac_exeext'
3054   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3055   (eval $ac_try) 2>&5
3056   ac_status=$?
3057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3058   (exit $ac_status); }; }; then
3059   ac_cv_lib_nsl_gethostbyname=yes
3060 else
3061   echo "$as_me: failed program was:" >&5
3062 cat conftest.$ac_ext >&5
3063 ac_cv_lib_nsl_gethostbyname=no
3064 fi
3065 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3066 LIBS=$ac_check_lib_save_LIBS
3067 fi
3068 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
3069 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
3070 if test $ac_cv_lib_nsl_gethostbyname = yes; then
3071   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
3072 fi
3073
3074       if test $ac_cv_lib_nsl_gethostbyname = no; then
3075         echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
3076 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
3077 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
3078   echo $ECHO_N "(cached) $ECHO_C" >&6
3079 else
3080   ac_check_lib_save_LIBS=$LIBS
3081 LIBS="-lbsd  $LIBS"
3082 cat >conftest.$ac_ext <<_ACEOF
3083 #line $LINENO "configure"
3084 #include "confdefs.h"
3085
3086 /* Override any gcc2 internal prototype to avoid an error.  */
3087 #ifdef __cplusplus
3088 extern "C"
3089 #endif
3090 /* We use char because int might match the return type of a gcc2
3091    builtin and then its argument prototype would still apply.  */
3092 char gethostbyname ();
3093 int
3094 main ()
3095 {
3096 gethostbyname ();
3097   ;
3098   return 0;
3099 }
3100 _ACEOF
3101 rm -f conftest.$ac_objext conftest$ac_exeext
3102 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3103   (eval $ac_link) 2>&5
3104   ac_status=$?
3105   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3106   (exit $ac_status); } &&
3107          { ac_try='test -s conftest$ac_exeext'
3108   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3109   (eval $ac_try) 2>&5
3110   ac_status=$?
3111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3112   (exit $ac_status); }; }; then
3113   ac_cv_lib_bsd_gethostbyname=yes
3114 else
3115   echo "$as_me: failed program was:" >&5
3116 cat conftest.$ac_ext >&5
3117 ac_cv_lib_bsd_gethostbyname=no
3118 fi
3119 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3120 LIBS=$ac_check_lib_save_LIBS
3121 fi
3122 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
3123 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
3124 if test $ac_cv_lib_bsd_gethostbyname = yes; then
3125   X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
3126 fi
3127
3128       fi
3129     fi
3130
3131     # lieder@skyler.mavd.honeywell.com says without -lsocket,
3132     # socket/setsockopt and other routines are undefined under SCO ODT
3133     # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
3134     # on later versions), says Simon Leinen: it contains gethostby*
3135     # variants that don't use the name server (or something).  -lsocket
3136     # must be given before -lnsl if both are needed.  We assume that
3137     # if connect needs -lnsl, so does gethostbyname.
3138     echo "$as_me:$LINENO: checking for connect" >&5
3139 echo $ECHO_N "checking for connect... $ECHO_C" >&6
3140 if test "${ac_cv_func_connect+set}" = set; then
3141   echo $ECHO_N "(cached) $ECHO_C" >&6
3142 else
3143   cat >conftest.$ac_ext <<_ACEOF
3144 #line $LINENO "configure"
3145 #include "confdefs.h"
3146 /* System header to define __stub macros and hopefully few prototypes,
3147     which can conflict with char connect (); below.  */
3148 #include <assert.h>
3149 /* Override any gcc2 internal prototype to avoid an error.  */
3150 #ifdef __cplusplus
3151 extern "C"
3152 #endif
3153 /* We use char because int might match the return type of a gcc2
3154    builtin and then its argument prototype would still apply.  */
3155 char connect ();
3156 char (*f) ();
3157
3158 int
3159 main ()
3160 {
3161 /* The GNU C library defines this for functions which it implements
3162     to always fail with ENOSYS.  Some functions are actually named
3163     something starting with __ and the normal name is an alias.  */
3164 #if defined (__stub_connect) || defined (__stub___connect)
3165 choke me
3166 #else
3167 f = connect;
3168 #endif
3169
3170   ;
3171   return 0;
3172 }
3173 _ACEOF
3174 rm -f conftest.$ac_objext conftest$ac_exeext
3175 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3176   (eval $ac_link) 2>&5
3177   ac_status=$?
3178   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3179   (exit $ac_status); } &&
3180          { ac_try='test -s conftest$ac_exeext'
3181   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3182   (eval $ac_try) 2>&5
3183   ac_status=$?
3184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3185   (exit $ac_status); }; }; then
3186   ac_cv_func_connect=yes
3187 else
3188   echo "$as_me: failed program was:" >&5
3189 cat conftest.$ac_ext >&5
3190 ac_cv_func_connect=no
3191 fi
3192 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3193 fi
3194 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
3195 echo "${ECHO_T}$ac_cv_func_connect" >&6
3196
3197     if test $ac_cv_func_connect = no; then
3198       echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
3199 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
3200 if test "${ac_cv_lib_socket_connect+set}" = set; then
3201   echo $ECHO_N "(cached) $ECHO_C" >&6
3202 else
3203   ac_check_lib_save_LIBS=$LIBS
3204 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
3205 cat >conftest.$ac_ext <<_ACEOF
3206 #line $LINENO "configure"
3207 #include "confdefs.h"
3208
3209 /* Override any gcc2 internal prototype to avoid an error.  */
3210 #ifdef __cplusplus
3211 extern "C"
3212 #endif
3213 /* We use char because int might match the return type of a gcc2
3214    builtin and then its argument prototype would still apply.  */
3215 char connect ();
3216 int
3217 main ()
3218 {
3219 connect ();
3220   ;
3221   return 0;
3222 }
3223 _ACEOF
3224 rm -f conftest.$ac_objext conftest$ac_exeext
3225 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3226   (eval $ac_link) 2>&5
3227   ac_status=$?
3228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3229   (exit $ac_status); } &&
3230          { ac_try='test -s conftest$ac_exeext'
3231   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3232   (eval $ac_try) 2>&5
3233   ac_status=$?
3234   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3235   (exit $ac_status); }; }; then
3236   ac_cv_lib_socket_connect=yes
3237 else
3238   echo "$as_me: failed program was:" >&5
3239 cat conftest.$ac_ext >&5
3240 ac_cv_lib_socket_connect=no
3241 fi
3242 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3243 LIBS=$ac_check_lib_save_LIBS
3244 fi
3245 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
3246 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
3247 if test $ac_cv_lib_socket_connect = yes; then
3248   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
3249 fi
3250
3251     fi
3252
3253     # Guillermo Gomez says -lposix is necessary on A/UX.
3254     echo "$as_me:$LINENO: checking for remove" >&5
3255 echo $ECHO_N "checking for remove... $ECHO_C" >&6
3256 if test "${ac_cv_func_remove+set}" = set; then
3257   echo $ECHO_N "(cached) $ECHO_C" >&6
3258 else
3259   cat >conftest.$ac_ext <<_ACEOF
3260 #line $LINENO "configure"
3261 #include "confdefs.h"
3262 /* System header to define __stub macros and hopefully few prototypes,
3263     which can conflict with char remove (); below.  */
3264 #include <assert.h>
3265 /* Override any gcc2 internal prototype to avoid an error.  */
3266 #ifdef __cplusplus
3267 extern "C"
3268 #endif
3269 /* We use char because int might match the return type of a gcc2
3270    builtin and then its argument prototype would still apply.  */
3271 char remove ();
3272 char (*f) ();
3273
3274 int
3275 main ()
3276 {
3277 /* The GNU C library defines this for functions which it implements
3278     to always fail with ENOSYS.  Some functions are actually named
3279     something starting with __ and the normal name is an alias.  */
3280 #if defined (__stub_remove) || defined (__stub___remove)
3281 choke me
3282 #else
3283 f = remove;
3284 #endif
3285
3286   ;
3287   return 0;
3288 }
3289 _ACEOF
3290 rm -f conftest.$ac_objext conftest$ac_exeext
3291 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3292   (eval $ac_link) 2>&5
3293   ac_status=$?
3294   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3295   (exit $ac_status); } &&
3296          { ac_try='test -s conftest$ac_exeext'
3297   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3298   (eval $ac_try) 2>&5
3299   ac_status=$?
3300   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3301   (exit $ac_status); }; }; then
3302   ac_cv_func_remove=yes
3303 else
3304   echo "$as_me: failed program was:" >&5
3305 cat conftest.$ac_ext >&5
3306 ac_cv_func_remove=no
3307 fi
3308 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3309 fi
3310 echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
3311 echo "${ECHO_T}$ac_cv_func_remove" >&6
3312
3313     if test $ac_cv_func_remove = no; then
3314       echo "$as_me:$LINENO: checking for remove in -lposix" >&5
3315 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
3316 if test "${ac_cv_lib_posix_remove+set}" = set; then
3317   echo $ECHO_N "(cached) $ECHO_C" >&6
3318 else
3319   ac_check_lib_save_LIBS=$LIBS
3320 LIBS="-lposix  $LIBS"
3321 cat >conftest.$ac_ext <<_ACEOF
3322 #line $LINENO "configure"
3323 #include "confdefs.h"
3324
3325 /* Override any gcc2 internal prototype to avoid an error.  */
3326 #ifdef __cplusplus
3327 extern "C"
3328 #endif
3329 /* We use char because int might match the return type of a gcc2
3330    builtin and then its argument prototype would still apply.  */
3331 char remove ();
3332 int
3333 main ()
3334 {
3335 remove ();
3336   ;
3337   return 0;
3338 }
3339 _ACEOF
3340 rm -f conftest.$ac_objext conftest$ac_exeext
3341 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3342   (eval $ac_link) 2>&5
3343   ac_status=$?
3344   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3345   (exit $ac_status); } &&
3346          { ac_try='test -s conftest$ac_exeext'
3347   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3348   (eval $ac_try) 2>&5
3349   ac_status=$?
3350   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3351   (exit $ac_status); }; }; then
3352   ac_cv_lib_posix_remove=yes
3353 else
3354   echo "$as_me: failed program was:" >&5
3355 cat conftest.$ac_ext >&5
3356 ac_cv_lib_posix_remove=no
3357 fi
3358 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3359 LIBS=$ac_check_lib_save_LIBS
3360 fi
3361 echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
3362 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
3363 if test $ac_cv_lib_posix_remove = yes; then
3364   X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
3365 fi
3366
3367     fi
3368
3369     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
3370     echo "$as_me:$LINENO: checking for shmat" >&5
3371 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
3372 if test "${ac_cv_func_shmat+set}" = set; then
3373   echo $ECHO_N "(cached) $ECHO_C" >&6
3374 else
3375   cat >conftest.$ac_ext <<_ACEOF
3376 #line $LINENO "configure"
3377 #include "confdefs.h"
3378 /* System header to define __stub macros and hopefully few prototypes,
3379     which can conflict with char shmat (); below.  */
3380 #include <assert.h>
3381 /* Override any gcc2 internal prototype to avoid an error.  */
3382 #ifdef __cplusplus
3383 extern "C"
3384 #endif
3385 /* We use char because int might match the return type of a gcc2
3386    builtin and then its argument prototype would still apply.  */
3387 char shmat ();
3388 char (*f) ();
3389
3390 int
3391 main ()
3392 {
3393 /* The GNU C library defines this for functions which it implements
3394     to always fail with ENOSYS.  Some functions are actually named
3395     something starting with __ and the normal name is an alias.  */
3396 #if defined (__stub_shmat) || defined (__stub___shmat)
3397 choke me
3398 #else
3399 f = shmat;
3400 #endif
3401
3402   ;
3403   return 0;
3404 }
3405 _ACEOF
3406 rm -f conftest.$ac_objext conftest$ac_exeext
3407 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3408   (eval $ac_link) 2>&5
3409   ac_status=$?
3410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3411   (exit $ac_status); } &&
3412          { ac_try='test -s conftest$ac_exeext'
3413   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3414   (eval $ac_try) 2>&5
3415   ac_status=$?
3416   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3417   (exit $ac_status); }; }; then
3418   ac_cv_func_shmat=yes
3419 else
3420   echo "$as_me: failed program was:" >&5
3421 cat conftest.$ac_ext >&5
3422 ac_cv_func_shmat=no
3423 fi
3424 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3425 fi
3426 echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
3427 echo "${ECHO_T}$ac_cv_func_shmat" >&6
3428
3429     if test $ac_cv_func_shmat = no; then
3430       echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
3431 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
3432 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
3433   echo $ECHO_N "(cached) $ECHO_C" >&6
3434 else
3435   ac_check_lib_save_LIBS=$LIBS
3436 LIBS="-lipc  $LIBS"
3437 cat >conftest.$ac_ext <<_ACEOF
3438 #line $LINENO "configure"
3439 #include "confdefs.h"
3440
3441 /* Override any gcc2 internal prototype to avoid an error.  */
3442 #ifdef __cplusplus
3443 extern "C"
3444 #endif
3445 /* We use char because int might match the return type of a gcc2
3446    builtin and then its argument prototype would still apply.  */
3447 char shmat ();
3448 int
3449 main ()
3450 {
3451 shmat ();
3452   ;
3453   return 0;
3454 }
3455 _ACEOF
3456 rm -f conftest.$ac_objext conftest$ac_exeext
3457 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3458   (eval $ac_link) 2>&5
3459   ac_status=$?
3460   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3461   (exit $ac_status); } &&
3462          { ac_try='test -s conftest$ac_exeext'
3463   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3464   (eval $ac_try) 2>&5
3465   ac_status=$?
3466   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3467   (exit $ac_status); }; }; then
3468   ac_cv_lib_ipc_shmat=yes
3469 else
3470   echo "$as_me: failed program was:" >&5
3471 cat conftest.$ac_ext >&5
3472 ac_cv_lib_ipc_shmat=no
3473 fi
3474 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3475 LIBS=$ac_check_lib_save_LIBS
3476 fi
3477 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
3478 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
3479 if test $ac_cv_lib_ipc_shmat = yes; then
3480   X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
3481 fi
3482
3483     fi
3484   fi
3485
3486   # Check for libraries that X11R6 Xt/Xaw programs need.
3487   ac_save_LDFLAGS=$LDFLAGS
3488   test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
3489   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
3490   # check for ICE first), but we must link in the order -lSM -lICE or
3491   # we get undefined symbols.  So assume we have SM if we have ICE.
3492   # These have to be linked with before -lX11, unlike the other
3493   # libraries we check for below, so use a different variable.
3494   # John Interrante, Karl Berry
3495   echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
3496 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
3497 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
3498   echo $ECHO_N "(cached) $ECHO_C" >&6
3499 else
3500   ac_check_lib_save_LIBS=$LIBS
3501 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
3502 cat >conftest.$ac_ext <<_ACEOF
3503 #line $LINENO "configure"
3504 #include "confdefs.h"
3505
3506 /* Override any gcc2 internal prototype to avoid an error.  */
3507 #ifdef __cplusplus
3508 extern "C"
3509 #endif
3510 /* We use char because int might match the return type of a gcc2
3511    builtin and then its argument prototype would still apply.  */
3512 char IceConnectionNumber ();
3513 int
3514 main ()
3515 {
3516 IceConnectionNumber ();
3517   ;
3518   return 0;
3519 }
3520 _ACEOF
3521 rm -f conftest.$ac_objext conftest$ac_exeext
3522 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3523   (eval $ac_link) 2>&5
3524   ac_status=$?
3525   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3526   (exit $ac_status); } &&
3527          { ac_try='test -s conftest$ac_exeext'
3528   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3529   (eval $ac_try) 2>&5
3530   ac_status=$?
3531   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3532   (exit $ac_status); }; }; then
3533   ac_cv_lib_ICE_IceConnectionNumber=yes
3534 else
3535   echo "$as_me: failed program was:" >&5
3536 cat conftest.$ac_ext >&5
3537 ac_cv_lib_ICE_IceConnectionNumber=no
3538 fi
3539 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3540 LIBS=$ac_check_lib_save_LIBS
3541 fi
3542 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
3543 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
3544 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
3545   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
3546 fi
3547
3548   LDFLAGS=$ac_save_LDFLAGS
3549
3550 fi
3551
3552 for ac_prog in 'bison -y' byacc
3553 do
3554   # Extract the first word of "$ac_prog", so it can be a program name with args.
3555 set dummy $ac_prog; ac_word=$2
3556 echo "$as_me:$LINENO: checking for $ac_word" >&5
3557 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3558 if test "${ac_cv_prog_YACC+set}" = set; then
3559   echo $ECHO_N "(cached) $ECHO_C" >&6
3560 else
3561   if test -n "$YACC"; then
3562   ac_cv_prog_YACC="$YACC" # Let the user override the test.
3563 else
3564 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3565 for as_dir in $PATH
3566 do
3567   IFS=$as_save_IFS
3568   test -z "$as_dir" && as_dir=.
3569   for ac_exec_ext in '' $ac_executable_extensions; do
3570   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3571     ac_cv_prog_YACC="$ac_prog"
3572     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3573     break 2
3574   fi
3575 done
3576 done
3577
3578 fi
3579 fi
3580 YACC=$ac_cv_prog_YACC
3581 if test -n "$YACC"; then
3582   echo "$as_me:$LINENO: result: $YACC" >&5
3583 echo "${ECHO_T}$YACC" >&6
3584 else
3585   echo "$as_me:$LINENO: result: no" >&5
3586 echo "${ECHO_T}no" >&6
3587 fi
3588
3589   test -n "$YACC" && break
3590 done
3591 test -n "$YACC" || YACC="yacc"
3592
3593 for ac_prog in flex lex
3594 do
3595   # Extract the first word of "$ac_prog", so it can be a program name with args.
3596 set dummy $ac_prog; ac_word=$2
3597 echo "$as_me:$LINENO: checking for $ac_word" >&5
3598 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3599 if test "${ac_cv_prog_LEX+set}" = set; then
3600   echo $ECHO_N "(cached) $ECHO_C" >&6
3601 else
3602   if test -n "$LEX"; then
3603   ac_cv_prog_LEX="$LEX" # Let the user override the test.
3604 else
3605 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3606 for as_dir in $PATH
3607 do
3608   IFS=$as_save_IFS
3609   test -z "$as_dir" && as_dir=.
3610   for ac_exec_ext in '' $ac_executable_extensions; do
3611   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3612     ac_cv_prog_LEX="$ac_prog"
3613     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3614     break 2
3615   fi
3616 done
3617 done
3618
3619 fi
3620 fi
3621 LEX=$ac_cv_prog_LEX
3622 if test -n "$LEX"; then
3623   echo "$as_me:$LINENO: result: $LEX" >&5
3624 echo "${ECHO_T}$LEX" >&6
3625 else
3626   echo "$as_me:$LINENO: result: no" >&5
3627 echo "${ECHO_T}no" >&6
3628 fi
3629
3630   test -n "$LEX" && break
3631 done
3632 test -n "$LEX" || LEX=":"
3633
3634 if test -z "$LEXLIB"
3635 then
3636   echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
3637 echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
3638 if test "${ac_cv_lib_fl_yywrap+set}" = set; then
3639   echo $ECHO_N "(cached) $ECHO_C" >&6
3640 else
3641   ac_check_lib_save_LIBS=$LIBS
3642 LIBS="-lfl  $LIBS"
3643 cat >conftest.$ac_ext <<_ACEOF
3644 #line $LINENO "configure"
3645 #include "confdefs.h"
3646
3647 /* Override any gcc2 internal prototype to avoid an error.  */
3648 #ifdef __cplusplus
3649 extern "C"
3650 #endif
3651 /* We use char because int might match the return type of a gcc2
3652    builtin and then its argument prototype would still apply.  */
3653 char yywrap ();
3654 int
3655 main ()
3656 {
3657 yywrap ();
3658   ;
3659   return 0;
3660 }
3661 _ACEOF
3662 rm -f conftest.$ac_objext conftest$ac_exeext
3663 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3664   (eval $ac_link) 2>&5
3665   ac_status=$?
3666   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3667   (exit $ac_status); } &&
3668          { ac_try='test -s conftest$ac_exeext'
3669   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3670   (eval $ac_try) 2>&5
3671   ac_status=$?
3672   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3673   (exit $ac_status); }; }; then
3674   ac_cv_lib_fl_yywrap=yes
3675 else
3676   echo "$as_me: failed program was:" >&5
3677 cat conftest.$ac_ext >&5
3678 ac_cv_lib_fl_yywrap=no
3679 fi
3680 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3681 LIBS=$ac_check_lib_save_LIBS
3682 fi
3683 echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
3684 echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
3685 if test $ac_cv_lib_fl_yywrap = yes; then
3686   LEXLIB="-lfl"
3687 else
3688   echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
3689 echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
3690 if test "${ac_cv_lib_l_yywrap+set}" = set; then
3691   echo $ECHO_N "(cached) $ECHO_C" >&6
3692 else
3693   ac_check_lib_save_LIBS=$LIBS
3694 LIBS="-ll  $LIBS"
3695 cat >conftest.$ac_ext <<_ACEOF
3696 #line $LINENO "configure"
3697 #include "confdefs.h"
3698
3699 /* Override any gcc2 internal prototype to avoid an error.  */
3700 #ifdef __cplusplus
3701 extern "C"
3702 #endif
3703 /* We use char because int might match the return type of a gcc2
3704    builtin and then its argument prototype would still apply.  */
3705 char yywrap ();
3706 int
3707 main ()
3708 {
3709 yywrap ();
3710   ;
3711   return 0;
3712 }
3713 _ACEOF
3714 rm -f conftest.$ac_objext conftest$ac_exeext
3715 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3716   (eval $ac_link) 2>&5
3717   ac_status=$?
3718   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3719   (exit $ac_status); } &&
3720          { ac_try='test -s conftest$ac_exeext'
3721   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3722   (eval $ac_try) 2>&5
3723   ac_status=$?
3724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3725   (exit $ac_status); }; }; then
3726   ac_cv_lib_l_yywrap=yes
3727 else
3728   echo "$as_me: failed program was:" >&5
3729 cat conftest.$ac_ext >&5
3730 ac_cv_lib_l_yywrap=no
3731 fi
3732 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3733 LIBS=$ac_check_lib_save_LIBS
3734 fi
3735 echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
3736 echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
3737 if test $ac_cv_lib_l_yywrap = yes; then
3738   LEXLIB="-ll"
3739 fi
3740
3741 fi
3742
3743 fi
3744
3745 if test "x$LEX" != "x:"; then
3746   echo "$as_me:$LINENO: checking lex output file root" >&5
3747 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
3748 if test "${ac_cv_prog_lex_root+set}" = set; then
3749   echo $ECHO_N "(cached) $ECHO_C" >&6
3750 else
3751   # The minimal lex program is just a single line: %%.  But some broken lexes
3752 # (Solaris, I think it was) want two %% lines, so accommodate them.
3753 cat >conftest.l <<_ACEOF
3754 %%
3755 %%
3756 _ACEOF
3757 { (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
3758   (eval $LEX conftest.l) 2>&5
3759   ac_status=$?
3760   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3761   (exit $ac_status); }
3762 if test -f lex.yy.c; then
3763   ac_cv_prog_lex_root=lex.yy
3764 elif test -f lexyy.c; then
3765   ac_cv_prog_lex_root=lexyy
3766 else
3767   { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
3768 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
3769    { (exit 1); exit 1; }; }
3770 fi
3771 fi
3772 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
3773 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
3774 rm -f conftest.l
3775 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
3776
3777 echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
3778 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
3779 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
3780   echo $ECHO_N "(cached) $ECHO_C" >&6
3781 else
3782   # POSIX says lex can declare yytext either as a pointer or an array; the
3783 # default is implementation-dependent. Figure out which it is, since
3784 # not all implementations provide the %pointer and %array declarations.
3785 ac_cv_prog_lex_yytext_pointer=no
3786 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
3787 ac_save_LIBS=$LIBS
3788 LIBS="$LIBS $LEXLIB"
3789 cat >conftest.$ac_ext <<_ACEOF
3790 `cat $LEX_OUTPUT_ROOT.c`
3791 _ACEOF
3792 rm -f conftest.$ac_objext conftest$ac_exeext
3793 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3794   (eval $ac_link) 2>&5
3795   ac_status=$?
3796   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3797   (exit $ac_status); } &&
3798          { ac_try='test -s conftest$ac_exeext'
3799   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3800   (eval $ac_try) 2>&5
3801   ac_status=$?
3802   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3803   (exit $ac_status); }; }; then
3804   ac_cv_prog_lex_yytext_pointer=yes
3805 else
3806   echo "$as_me: failed program was:" >&5
3807 cat conftest.$ac_ext >&5
3808 fi
3809 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3810 LIBS=$ac_save_LIBS
3811 rm -f "${LEX_OUTPUT_ROOT}.c"
3812
3813 fi
3814 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
3815 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
3816 if test $ac_cv_prog_lex_yytext_pointer = yes; then
3817
3818 cat >>confdefs.h <<\_ACEOF
3819 #define YYTEXT_POINTER 1
3820 _ACEOF
3821
3822 fi
3823
3824 fi
3825
3826 for ac_prog in $YACC bison yacc
3827 do
3828   # Extract the first word of "$ac_prog", so it can be a program name with args.
3829 set dummy $ac_prog; ac_word=$2
3830 echo "$as_me:$LINENO: checking for $ac_word" >&5
3831 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3832 if test "${ac_cv_prog_XYACC+set}" = set; then
3833   echo $ECHO_N "(cached) $ECHO_C" >&6
3834 else
3835   if test -n "$XYACC"; then
3836   ac_cv_prog_XYACC="$XYACC" # Let the user override the test.
3837 else
3838 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3839 for as_dir in $PATH
3840 do
3841   IFS=$as_save_IFS
3842   test -z "$as_dir" && as_dir=.
3843   for ac_exec_ext in '' $ac_executable_extensions; do
3844   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3845     ac_cv_prog_XYACC="$ac_prog"
3846     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3847     break 2
3848   fi
3849 done
3850 done
3851
3852 fi
3853 fi
3854 XYACC=$ac_cv_prog_XYACC
3855 if test -n "$XYACC"; then
3856   echo "$as_me:$LINENO: result: $XYACC" >&5
3857 echo "${ECHO_T}$XYACC" >&6
3858 else
3859   echo "$as_me:$LINENO: result: no" >&5
3860 echo "${ECHO_T}no" >&6
3861 fi
3862
3863   test -n "$XYACC" && break
3864 done
3865 test -n "$XYACC" || XYACC="none"
3866
3867 if test "$XYACC" = "none"
3868 then
3869   { { echo "$as_me:$LINENO: error: no suitable bison/yacc found. Please install the 'bison' package." >&5
3870 echo "$as_me: error: no suitable bison/yacc found. Please install the 'bison' package." >&2;}
3871    { (exit 1); exit 1; }; }
3872 fi
3873 for ac_prog in $LEX flex lex
3874 do
3875   # Extract the first word of "$ac_prog", so it can be a program name with args.
3876 set dummy $ac_prog; ac_word=$2
3877 echo "$as_me:$LINENO: checking for $ac_word" >&5
3878 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3879 if test "${ac_cv_prog_XLEX+set}" = set; then
3880   echo $ECHO_N "(cached) $ECHO_C" >&6
3881 else
3882   if test -n "$XLEX"; then
3883   ac_cv_prog_XLEX="$XLEX" # Let the user override the test.
3884 else
3885 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3886 for as_dir in $PATH
3887 do
3888   IFS=$as_save_IFS
3889   test -z "$as_dir" && as_dir=.
3890   for ac_exec_ext in '' $ac_executable_extensions; do
3891   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3892     ac_cv_prog_XLEX="$ac_prog"
3893     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3894     break 2
3895   fi
3896 done
3897 done
3898
3899 fi
3900 fi
3901 XLEX=$ac_cv_prog_XLEX
3902 if test -n "$XLEX"; then
3903   echo "$as_me:$LINENO: result: $XLEX" >&5
3904 echo "${ECHO_T}$XLEX" >&6
3905 else
3906   echo "$as_me:$LINENO: result: no" >&5
3907 echo "${ECHO_T}no" >&6
3908 fi
3909
3910   test -n "$XLEX" && break
3911 done
3912 test -n "$XLEX" || XLEX="none"
3913
3914 if test "$XLEX" = "none"
3915 then
3916   { { echo "$as_me:$LINENO: error: no suitable lex found. Please install the 'flex' package." >&5
3917 echo "$as_me: error: no suitable lex found. Please install the 'flex' package." >&2;}
3918    { (exit 1); exit 1; }; }
3919 fi
3920
3921 if test -n "$ac_tool_prefix"; then
3922   # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
3923 set dummy ${ac_tool_prefix}ld; ac_word=$2
3924 echo "$as_me:$LINENO: checking for $ac_word" >&5
3925 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3926 if test "${ac_cv_prog_LD+set}" = set; then
3927   echo $ECHO_N "(cached) $ECHO_C" >&6
3928 else
3929   if test -n "$LD"; then
3930   ac_cv_prog_LD="$LD" # Let the user override the test.
3931 else
3932 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3933 for as_dir in $PATH
3934 do
3935   IFS=$as_save_IFS
3936   test -z "$as_dir" && as_dir=.
3937   for ac_exec_ext in '' $ac_executable_extensions; do
3938   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3939     ac_cv_prog_LD="${ac_tool_prefix}ld"
3940     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3941     break 2
3942   fi
3943 done
3944 done
3945
3946 fi
3947 fi
3948 LD=$ac_cv_prog_LD
3949 if test -n "$LD"; then
3950   echo "$as_me:$LINENO: result: $LD" >&5
3951 echo "${ECHO_T}$LD" >&6
3952 else
3953   echo "$as_me:$LINENO: result: no" >&5
3954 echo "${ECHO_T}no" >&6
3955 fi
3956
3957 fi
3958 if test -z "$ac_cv_prog_LD"; then
3959   ac_ct_LD=$LD
3960   # Extract the first word of "ld", so it can be a program name with args.
3961 set dummy ld; ac_word=$2
3962 echo "$as_me:$LINENO: checking for $ac_word" >&5
3963 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3964 if test "${ac_cv_prog_ac_ct_LD+set}" = set; then
3965   echo $ECHO_N "(cached) $ECHO_C" >&6
3966 else
3967   if test -n "$ac_ct_LD"; then
3968   ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test.
3969 else
3970 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3971 for as_dir in $PATH
3972 do
3973   IFS=$as_save_IFS
3974   test -z "$as_dir" && as_dir=.
3975   for ac_exec_ext in '' $ac_executable_extensions; do
3976   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3977     ac_cv_prog_ac_ct_LD="ld"
3978     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3979     break 2
3980   fi
3981 done
3982 done
3983
3984   test -z "$ac_cv_prog_ac_ct_LD" && ac_cv_prog_ac_ct_LD="ld"
3985 fi
3986 fi
3987 ac_ct_LD=$ac_cv_prog_ac_ct_LD
3988 if test -n "$ac_ct_LD"; then
3989   echo "$as_me:$LINENO: result: $ac_ct_LD" >&5
3990 echo "${ECHO_T}$ac_ct_LD" >&6
3991 else
3992   echo "$as_me:$LINENO: result: no" >&5
3993 echo "${ECHO_T}no" >&6
3994 fi
3995
3996   LD=$ac_ct_LD
3997 else
3998   LD="$ac_cv_prog_LD"
3999 fi
4000
4001 if test -n "$ac_tool_prefix"; then
4002   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4003 set dummy ${ac_tool_prefix}ar; ac_word=$2
4004 echo "$as_me:$LINENO: checking for $ac_word" >&5
4005 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4006 if test "${ac_cv_prog_AR+set}" = set; then
4007   echo $ECHO_N "(cached) $ECHO_C" >&6
4008 else
4009   if test -n "$AR"; then
4010   ac_cv_prog_AR="$AR" # Let the user override the test.
4011 else
4012 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4013 for as_dir in $PATH
4014 do
4015   IFS=$as_save_IFS
4016   test -z "$as_dir" && as_dir=.
4017   for ac_exec_ext in '' $ac_executable_extensions; do
4018   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4019     ac_cv_prog_AR="${ac_tool_prefix}ar"
4020     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4021     break 2
4022   fi
4023 done
4024 done
4025
4026 fi
4027 fi
4028 AR=$ac_cv_prog_AR
4029 if test -n "$AR"; then
4030   echo "$as_me:$LINENO: result: $AR" >&5
4031 echo "${ECHO_T}$AR" >&6
4032 else
4033   echo "$as_me:$LINENO: result: no" >&5
4034 echo "${ECHO_T}no" >&6
4035 fi
4036
4037 fi
4038 if test -z "$ac_cv_prog_AR"; then
4039   ac_ct_AR=$AR
4040   # Extract the first word of "ar", so it can be a program name with args.
4041 set dummy ar; ac_word=$2
4042 echo "$as_me:$LINENO: checking for $ac_word" >&5
4043 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4044 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
4045   echo $ECHO_N "(cached) $ECHO_C" >&6
4046 else
4047   if test -n "$ac_ct_AR"; then
4048   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4049 else
4050 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4051 for as_dir in $PATH
4052 do
4053   IFS=$as_save_IFS
4054   test -z "$as_dir" && as_dir=.
4055   for ac_exec_ext in '' $ac_executable_extensions; do
4056   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4057     ac_cv_prog_ac_ct_AR="ar"
4058     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4059     break 2
4060   fi
4061 done
4062 done
4063
4064   test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar"
4065 fi
4066 fi
4067 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4068 if test -n "$ac_ct_AR"; then
4069   echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
4070 echo "${ECHO_T}$ac_ct_AR" >&6
4071 else
4072   echo "$as_me:$LINENO: result: no" >&5
4073 echo "${ECHO_T}no" >&6
4074 fi
4075
4076   AR=$ac_ct_AR
4077 else
4078   AR="$ac_cv_prog_AR"
4079 fi
4080
4081 if test -n "$ac_tool_prefix"; then
4082   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4083 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4084 echo "$as_me:$LINENO: checking for $ac_word" >&5
4085 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4086 if test "${ac_cv_prog_RANLIB+set}" = set; then
4087   echo $ECHO_N "(cached) $ECHO_C" >&6
4088 else
4089   if test -n "$RANLIB"; then
4090   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4091 else
4092 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4093 for as_dir in $PATH
4094 do
4095   IFS=$as_save_IFS
4096   test -z "$as_dir" && as_dir=.
4097   for ac_exec_ext in '' $ac_executable_extensions; do
4098   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4099     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4100     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4101     break 2
4102   fi
4103 done
4104 done
4105
4106 fi
4107 fi
4108 RANLIB=$ac_cv_prog_RANLIB
4109 if test -n "$RANLIB"; then
4110   echo "$as_me:$LINENO: result: $RANLIB" >&5
4111 echo "${ECHO_T}$RANLIB" >&6
4112 else
4113   echo "$as_me:$LINENO: result: no" >&5
4114 echo "${ECHO_T}no" >&6
4115 fi
4116
4117 fi
4118 if test -z "$ac_cv_prog_RANLIB"; then
4119   ac_ct_RANLIB=$RANLIB
4120   # Extract the first word of "ranlib", so it can be a program name with args.
4121 set dummy ranlib; ac_word=$2
4122 echo "$as_me:$LINENO: checking for $ac_word" >&5
4123 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4124 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4125   echo $ECHO_N "(cached) $ECHO_C" >&6
4126 else
4127   if test -n "$ac_ct_RANLIB"; then
4128   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4129 else
4130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4131 for as_dir in $PATH
4132 do
4133   IFS=$as_save_IFS
4134   test -z "$as_dir" && as_dir=.
4135   for ac_exec_ext in '' $ac_executable_extensions; do
4136   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4137     ac_cv_prog_ac_ct_RANLIB="ranlib"
4138     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4139     break 2
4140   fi
4141 done
4142 done
4143
4144   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4145 fi
4146 fi
4147 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4148 if test -n "$ac_ct_RANLIB"; then
4149   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4150 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4151 else
4152   echo "$as_me:$LINENO: result: no" >&5
4153 echo "${ECHO_T}no" >&6
4154 fi
4155
4156   RANLIB=$ac_ct_RANLIB
4157 else
4158   RANLIB="$ac_cv_prog_RANLIB"
4159 fi
4160
4161 if test -n "$ac_tool_prefix"; then
4162   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4163 set dummy ${ac_tool_prefix}strip; ac_word=$2
4164 echo "$as_me:$LINENO: checking for $ac_word" >&5
4165 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4166 if test "${ac_cv_prog_STRIP+set}" = set; then
4167   echo $ECHO_N "(cached) $ECHO_C" >&6
4168 else
4169   if test -n "$STRIP"; then
4170   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4171 else
4172 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4173 for as_dir in $PATH
4174 do
4175   IFS=$as_save_IFS
4176   test -z "$as_dir" && as_dir=.
4177   for ac_exec_ext in '' $ac_executable_extensions; do
4178   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4179     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4180     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4181     break 2
4182   fi
4183 done
4184 done
4185
4186 fi
4187 fi
4188 STRIP=$ac_cv_prog_STRIP
4189 if test -n "$STRIP"; then
4190   echo "$as_me:$LINENO: result: $STRIP" >&5
4191 echo "${ECHO_T}$STRIP" >&6
4192 else
4193   echo "$as_me:$LINENO: result: no" >&5
4194 echo "${ECHO_T}no" >&6
4195 fi
4196
4197 fi
4198 if test -z "$ac_cv_prog_STRIP"; then
4199   ac_ct_STRIP=$STRIP
4200   # Extract the first word of "strip", so it can be a program name with args.
4201 set dummy strip; ac_word=$2
4202 echo "$as_me:$LINENO: checking for $ac_word" >&5
4203 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4204 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4205   echo $ECHO_N "(cached) $ECHO_C" >&6
4206 else
4207   if test -n "$ac_ct_STRIP"; then
4208   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4209 else
4210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4211 for as_dir in $PATH
4212 do
4213   IFS=$as_save_IFS
4214   test -z "$as_dir" && as_dir=.
4215   for ac_exec_ext in '' $ac_executable_extensions; do
4216   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4217     ac_cv_prog_ac_ct_STRIP="strip"
4218     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4219     break 2
4220   fi
4221 done
4222 done
4223
4224   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP="strip"
4225 fi
4226 fi
4227 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4228 if test -n "$ac_ct_STRIP"; then
4229   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4230 echo "${ECHO_T}$ac_ct_STRIP" >&6
4231 else
4232   echo "$as_me:$LINENO: result: no" >&5
4233 echo "${ECHO_T}no" >&6
4234 fi
4235
4236   STRIP=$ac_ct_STRIP
4237 else
4238   STRIP="$ac_cv_prog_STRIP"
4239 fi
4240
4241 if test -n "$ac_tool_prefix"; then
4242   # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
4243 set dummy ${ac_tool_prefix}windres; ac_word=$2
4244 echo "$as_me:$LINENO: checking for $ac_word" >&5
4245 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4246 if test "${ac_cv_prog_WINDRES+set}" = set; then
4247   echo $ECHO_N "(cached) $ECHO_C" >&6
4248 else
4249   if test -n "$WINDRES"; then
4250   ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
4251 else
4252 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4253 for as_dir in $PATH
4254 do
4255   IFS=$as_save_IFS
4256   test -z "$as_dir" && as_dir=.
4257   for ac_exec_ext in '' $ac_executable_extensions; do
4258   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4259     ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
4260     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4261     break 2
4262   fi
4263 done
4264 done
4265
4266 fi
4267 fi
4268 WINDRES=$ac_cv_prog_WINDRES
4269 if test -n "$WINDRES"; then
4270   echo "$as_me:$LINENO: result: $WINDRES" >&5
4271 echo "${ECHO_T}$WINDRES" >&6
4272 else
4273   echo "$as_me:$LINENO: result: no" >&5
4274 echo "${ECHO_T}no" >&6
4275 fi
4276
4277 fi
4278 if test -z "$ac_cv_prog_WINDRES"; then
4279   ac_ct_WINDRES=$WINDRES
4280   # Extract the first word of "windres", so it can be a program name with args.
4281 set dummy windres; ac_word=$2
4282 echo "$as_me:$LINENO: checking for $ac_word" >&5
4283 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4284 if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
4285   echo $ECHO_N "(cached) $ECHO_C" >&6
4286 else
4287   if test -n "$ac_ct_WINDRES"; then
4288   ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
4289 else
4290 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4291 for as_dir in $PATH
4292 do
4293   IFS=$as_save_IFS
4294   test -z "$as_dir" && as_dir=.
4295   for ac_exec_ext in '' $ac_executable_extensions; do
4296   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4297     ac_cv_prog_ac_ct_WINDRES="windres"
4298     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4299     break 2
4300   fi
4301 done
4302 done
4303
4304   test -z "$ac_cv_prog_ac_ct_WINDRES" && ac_cv_prog_ac_ct_WINDRES="false"
4305 fi
4306 fi
4307 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
4308 if test -n "$ac_ct_WINDRES"; then
4309   echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
4310 echo "${ECHO_T}$ac_ct_WINDRES" >&6
4311 else
4312   echo "$as_me:$LINENO: result: no" >&5
4313 echo "${ECHO_T}no" >&6
4314 fi
4315
4316   WINDRES=$ac_ct_WINDRES
4317 else
4318   WINDRES="$ac_cv_prog_WINDRES"
4319 fi
4320
4321 # Find a good install program.  We prefer a C program (faster),
4322 # so one script is as good as another.  But avoid the broken or
4323 # incompatible versions:
4324 # SysV /etc/install, /usr/sbin/install
4325 # SunOS /usr/etc/install
4326 # IRIX /sbin/install
4327 # AIX /bin/install
4328 # AmigaOS /C/install, which installs bootblocks on floppy discs
4329 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4330 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4331 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4332 # ./install, which can be erroneously created by make from ./install.sh.
4333 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4334 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
4335 if test -z "$INSTALL"; then
4336 if test "${ac_cv_path_install+set}" = set; then
4337   echo $ECHO_N "(cached) $ECHO_C" >&6
4338 else
4339   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4340 for as_dir in $PATH
4341 do
4342   IFS=$as_save_IFS
4343   test -z "$as_dir" && as_dir=.
4344   # Account for people who put trailing slashes in PATH elements.
4345 case $as_dir/ in
4346   ./ | .// | /cC/* | \
4347   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4348   /usr/ucb/* ) ;;
4349   *)
4350     # OSF1 and SCO ODT 3.0 have their own names for install.
4351     # Don't use installbsd from OSF since it installs stuff as root
4352     # by default.
4353     for ac_prog in ginstall scoinst install; do
4354       for ac_exec_ext in '' $ac_executable_extensions; do
4355         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4356           if test $ac_prog = install &&
4357             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4358             # AIX install.  It has an incompatible calling convention.
4359             :
4360           elif test $ac_prog = install &&
4361             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4362             # program-specific install script used by HP pwplus--don't use.
4363             :
4364           else
4365             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4366             break 3
4367           fi
4368         fi
4369       done
4370     done
4371     ;;
4372 esac
4373 done
4374
4375
4376 fi
4377   if test "${ac_cv_path_install+set}" = set; then
4378     INSTALL=$ac_cv_path_install
4379   else
4380     # As a last resort, use the slow shell script.  We don't cache a
4381     # path for INSTALL within a source directory, because that will
4382     # break other packages using the cache if that directory is
4383     # removed, or if the path is relative.
4384     INSTALL=$ac_install_sh
4385   fi
4386 fi
4387 echo "$as_me:$LINENO: result: $INSTALL" >&5
4388 echo "${ECHO_T}$INSTALL" >&6
4389
4390 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4391 # It thinks the first close brace ends the variable substitution.
4392 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4393
4394 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4395
4396 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4397
4398 echo "$as_me:$LINENO: checking whether ln -s works" >&5
4399 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4400 LN_S=$as_ln_s
4401 if test "$LN_S" = "ln -s"; then
4402   echo "$as_me:$LINENO: result: yes" >&5
4403 echo "${ECHO_T}yes" >&6
4404 else
4405   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4406 echo "${ECHO_T}no, using $LN_S" >&6
4407 fi
4408
4409 echo "$as_me:$LINENO: checking whether ln works" >&5
4410 echo $ECHO_N "checking whether ln works... $ECHO_C" >&6
4411 rm -f conf$$ conf$$.file
4412 echo >conf$$.file
4413 if ln conf$$.file conf$$ 2>/dev/null; then
4414   LN=ln
4415
4416   echo "$as_me:$LINENO: result: yes" >&5
4417 echo "${ECHO_T}yes" >&6
4418 else
4419   LN="cp -p"
4420
4421   echo "$as_me:$LINENO: result: no, using $LN" >&5
4422 echo "${ECHO_T}no, using $LN" >&6
4423 fi
4424 rm -f conf$$ conf$$.file
4425 # Extract the first word of "c2man", so it can be a program name with args.
4426 set dummy c2man; ac_word=$2
4427 echo "$as_me:$LINENO: checking for $ac_word" >&5
4428 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4429 if test "${ac_cv_prog_C2MAN+set}" = set; then
4430   echo $ECHO_N "(cached) $ECHO_C" >&6
4431 else
4432   if test -n "$C2MAN"; then
4433   ac_cv_prog_C2MAN="$C2MAN" # Let the user override the test.
4434 else
4435 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4436 for as_dir in $PATH
4437 do
4438   IFS=$as_save_IFS
4439   test -z "$as_dir" && as_dir=.
4440   for ac_exec_ext in '' $ac_executable_extensions; do
4441   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4442     ac_cv_prog_C2MAN="c2man"
4443     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4444     break 2
4445   fi
4446 done
4447 done
4448
4449   test -z "$ac_cv_prog_C2MAN" && ac_cv_prog_C2MAN="\$(TOPSRCDIR)/tools/c2man.pl"
4450 fi
4451 fi
4452 C2MAN=$ac_cv_prog_C2MAN
4453 if test -n "$C2MAN"; then
4454   echo "$as_me:$LINENO: result: $C2MAN" >&5
4455 echo "${ECHO_T}$C2MAN" >&6
4456 else
4457   echo "$as_me:$LINENO: result: no" >&5
4458 echo "${ECHO_T}no" >&6
4459 fi
4460
4461 # Extract the first word of "ldconfig", so it can be a program name with args.
4462 set dummy ldconfig; ac_word=$2
4463 echo "$as_me:$LINENO: checking for $ac_word" >&5
4464 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4465 if test "${ac_cv_path_LDCONFIG+set}" = set; then
4466   echo $ECHO_N "(cached) $ECHO_C" >&6
4467 else
4468   case $LDCONFIG in
4469   [\\/]* | ?:[\\/]*)
4470   ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
4471   ;;
4472   *)
4473   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4474 for as_dir in /sbin /usr/sbin $PATH
4475 do
4476   IFS=$as_save_IFS
4477   test -z "$as_dir" && as_dir=.
4478   for ac_exec_ext in '' $ac_executable_extensions; do
4479   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4480     ac_cv_path_LDCONFIG="$as_dir/$ac_word$ac_exec_ext"
4481     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4482     break 2
4483   fi
4484 done
4485 done
4486
4487   test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG="true"
4488   ;;
4489 esac
4490 fi
4491 LDCONFIG=$ac_cv_path_LDCONFIG
4492
4493 if test -n "$LDCONFIG"; then
4494   echo "$as_me:$LINENO: result: $LDCONFIG" >&5
4495 echo "${ECHO_T}$LDCONFIG" >&6
4496 else
4497   echo "$as_me:$LINENO: result: no" >&5
4498 echo "${ECHO_T}no" >&6
4499 fi
4500
4501
4502 for ac_prog in lclint lint
4503 do
4504   # Extract the first word of "$ac_prog", so it can be a program name with args.
4505 set dummy $ac_prog; ac_word=$2
4506 echo "$as_me:$LINENO: checking for $ac_word" >&5
4507 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4508 if test "${ac_cv_prog_LINT+set}" = set; then
4509   echo $ECHO_N "(cached) $ECHO_C" >&6
4510 else
4511   if test -n "$LINT"; then
4512   ac_cv_prog_LINT="$LINT" # Let the user override the test.
4513 else
4514 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4515 for as_dir in $PATH
4516 do
4517   IFS=$as_save_IFS
4518   test -z "$as_dir" && as_dir=.
4519   for ac_exec_ext in '' $ac_executable_extensions; do
4520   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4521     ac_cv_prog_LINT="$ac_prog"
4522     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4523     break 2
4524   fi
4525 done
4526 done
4527
4528 fi
4529 fi
4530 LINT=$ac_cv_prog_LINT
4531 if test -n "$LINT"; then
4532   echo "$as_me:$LINENO: result: $LINT" >&5
4533 echo "${ECHO_T}$LINT" >&6
4534 else
4535   echo "$as_me:$LINENO: result: no" >&5
4536 echo "${ECHO_T}no" >&6
4537 fi
4538
4539   test -n "$LINT" && break
4540 done
4541
4542 if test "$LINT" = "lint"
4543 then
4544   LINTFLAGS="$LINTFLAGS -errchk=%all,no%longptr64 -errhdr=%user -Ncheck=macro -Nlevel=4"
4545   fi
4546
4547
4548
4549 for ac_prog in docbook2html db2html
4550 do
4551   # Extract the first word of "$ac_prog", so it can be a program name with args.
4552 set dummy $ac_prog; ac_word=$2
4553 echo "$as_me:$LINENO: checking for $ac_word" >&5
4554 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4555 if test "${ac_cv_prog_DB2HTML+set}" = set; then
4556   echo $ECHO_N "(cached) $ECHO_C" >&6
4557 else
4558   if test -n "$DB2HTML"; then
4559   ac_cv_prog_DB2HTML="$DB2HTML" # Let the user override the test.
4560 else
4561 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4562 for as_dir in $PATH
4563 do
4564   IFS=$as_save_IFS
4565   test -z "$as_dir" && as_dir=.
4566   for ac_exec_ext in '' $ac_executable_extensions; do
4567   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4568     ac_cv_prog_DB2HTML="$ac_prog"
4569     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4570     break 2
4571   fi
4572 done
4573 done
4574
4575 fi
4576 fi
4577 DB2HTML=$ac_cv_prog_DB2HTML
4578 if test -n "$DB2HTML"; then
4579   echo "$as_me:$LINENO: result: $DB2HTML" >&5
4580 echo "${ECHO_T}$DB2HTML" >&6
4581 else
4582   echo "$as_me:$LINENO: result: no" >&5
4583 echo "${ECHO_T}no" >&6
4584 fi
4585
4586   test -n "$DB2HTML" && break
4587 done
4588 test -n "$DB2HTML" || DB2HTML="false"
4589
4590
4591
4592 for ac_prog in docbook2pdf db2pdf
4593 do
4594   # Extract the first word of "$ac_prog", so it can be a program name with args.
4595 set dummy $ac_prog; ac_word=$2
4596 echo "$as_me:$LINENO: checking for $ac_word" >&5
4597 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4598 if test "${ac_cv_prog_DB2PDF+set}" = set; then
4599   echo $ECHO_N "(cached) $ECHO_C" >&6
4600 else
4601   if test -n "$DB2PDF"; then
4602   ac_cv_prog_DB2PDF="$DB2PDF" # Let the user override the test.
4603 else
4604 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4605 for as_dir in $PATH
4606 do
4607   IFS=$as_save_IFS
4608   test -z "$as_dir" && as_dir=.
4609   for ac_exec_ext in '' $ac_executable_extensions; do
4610   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4611     ac_cv_prog_DB2PDF="$ac_prog"
4612     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4613     break 2
4614   fi
4615 done
4616 done
4617
4618 fi
4619 fi
4620 DB2PDF=$ac_cv_prog_DB2PDF
4621 if test -n "$DB2PDF"; then
4622   echo "$as_me:$LINENO: result: $DB2PDF" >&5
4623 echo "${ECHO_T}$DB2PDF" >&6
4624 else
4625   echo "$as_me:$LINENO: result: no" >&5
4626 echo "${ECHO_T}no" >&6
4627 fi
4628
4629   test -n "$DB2PDF" && break
4630 done
4631 test -n "$DB2PDF" || DB2PDF="false"
4632
4633
4634
4635 for ac_prog in docbook2ps db2ps
4636 do
4637   # Extract the first word of "$ac_prog", so it can be a program name with args.
4638 set dummy $ac_prog; ac_word=$2
4639 echo "$as_me:$LINENO: checking for $ac_word" >&5
4640 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4641 if test "${ac_cv_prog_DB2PS+set}" = set; then
4642   echo $ECHO_N "(cached) $ECHO_C" >&6
4643 else
4644   if test -n "$DB2PS"; then
4645   ac_cv_prog_DB2PS="$DB2PS" # Let the user override the test.
4646 else
4647 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4648 for as_dir in $PATH
4649 do
4650   IFS=$as_save_IFS
4651   test -z "$as_dir" && as_dir=.
4652   for ac_exec_ext in '' $ac_executable_extensions; do
4653   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4654     ac_cv_prog_DB2PS="$ac_prog"
4655     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4656     break 2
4657   fi
4658 done
4659 done
4660
4661 fi
4662 fi
4663 DB2PS=$ac_cv_prog_DB2PS
4664 if test -n "$DB2PS"; then
4665   echo "$as_me:$LINENO: result: $DB2PS" >&5
4666 echo "${ECHO_T}$DB2PS" >&6
4667 else
4668   echo "$as_me:$LINENO: result: no" >&5
4669 echo "${ECHO_T}no" >&6
4670 fi
4671
4672   test -n "$DB2PS" && break
4673 done
4674 test -n "$DB2PS" || DB2PS="false"
4675
4676
4677
4678
4679
4680 echo "$as_me:$LINENO: checking for sqrt in -lm" >&5
4681 echo $ECHO_N "checking for sqrt in -lm... $ECHO_C" >&6
4682 if test "${ac_cv_lib_m_sqrt+set}" = set; then
4683   echo $ECHO_N "(cached) $ECHO_C" >&6
4684 else
4685   ac_check_lib_save_LIBS=$LIBS
4686 LIBS="-lm  $LIBS"
4687 cat >conftest.$ac_ext <<_ACEOF
4688 #line $LINENO "configure"
4689 #include "confdefs.h"
4690
4691 /* Override any gcc2 internal prototype to avoid an error.  */
4692 #ifdef __cplusplus
4693 extern "C"
4694 #endif
4695 /* We use char because int might match the return type of a gcc2
4696    builtin and then its argument prototype would still apply.  */
4697 char sqrt ();
4698 int
4699 main ()
4700 {
4701 sqrt ();
4702   ;
4703   return 0;
4704 }
4705 _ACEOF
4706 rm -f conftest.$ac_objext conftest$ac_exeext
4707 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4708   (eval $ac_link) 2>&5
4709   ac_status=$?
4710   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4711   (exit $ac_status); } &&
4712          { ac_try='test -s conftest$ac_exeext'
4713   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4714   (eval $ac_try) 2>&5
4715   ac_status=$?
4716   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4717   (exit $ac_status); }; }; then
4718   ac_cv_lib_m_sqrt=yes
4719 else
4720   echo "$as_me: failed program was:" >&5
4721 cat conftest.$ac_ext >&5
4722 ac_cv_lib_m_sqrt=no
4723 fi
4724 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4725 LIBS=$ac_check_lib_save_LIBS
4726 fi
4727 echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrt" >&5
4728 echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6
4729 if test $ac_cv_lib_m_sqrt = yes; then
4730   cat >>confdefs.h <<_ACEOF
4731 #define HAVE_LIBM 1
4732 _ACEOF
4733
4734   LIBS="-lm $LIBS"
4735
4736 fi
4737
4738
4739 echo "$as_me:$LINENO: checking for i386_set_ldt in -li386" >&5
4740 echo $ECHO_N "checking for i386_set_ldt in -li386... $ECHO_C" >&6
4741 if test "${ac_cv_lib_i386_i386_set_ldt+set}" = set; then
4742   echo $ECHO_N "(cached) $ECHO_C" >&6
4743 else
4744   ac_check_lib_save_LIBS=$LIBS
4745 LIBS="-li386  $LIBS"
4746 cat >conftest.$ac_ext <<_ACEOF
4747 #line $LINENO "configure"
4748 #include "confdefs.h"
4749
4750 /* Override any gcc2 internal prototype to avoid an error.  */
4751 #ifdef __cplusplus
4752 extern "C"
4753 #endif
4754 /* We use char because int might match the return type of a gcc2
4755    builtin and then its argument prototype would still apply.  */
4756 char i386_set_ldt ();
4757 int
4758 main ()
4759 {
4760 i386_set_ldt ();
4761   ;
4762   return 0;
4763 }
4764 _ACEOF
4765 rm -f conftest.$ac_objext conftest$ac_exeext
4766 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4767   (eval $ac_link) 2>&5
4768   ac_status=$?
4769   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4770   (exit $ac_status); } &&
4771          { ac_try='test -s conftest$ac_exeext'
4772   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4773   (eval $ac_try) 2>&5
4774   ac_status=$?
4775   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4776   (exit $ac_status); }; }; then
4777   ac_cv_lib_i386_i386_set_ldt=yes
4778 else
4779   echo "$as_me: failed program was:" >&5
4780 cat conftest.$ac_ext >&5
4781 ac_cv_lib_i386_i386_set_ldt=no
4782 fi
4783 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4784 LIBS=$ac_check_lib_save_LIBS
4785 fi
4786 echo "$as_me:$LINENO: result: $ac_cv_lib_i386_i386_set_ldt" >&5
4787 echo "${ECHO_T}$ac_cv_lib_i386_i386_set_ldt" >&6
4788 if test $ac_cv_lib_i386_i386_set_ldt = yes; then
4789   cat >>confdefs.h <<_ACEOF
4790 #define HAVE_LIBI386 1
4791 _ACEOF
4792
4793   LIBS="-li386 $LIBS"
4794
4795 fi
4796
4797
4798 echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5
4799 echo $ECHO_N "checking for _oss_ioctl in -lossaudio... $ECHO_C" >&6
4800 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then
4801   echo $ECHO_N "(cached) $ECHO_C" >&6
4802 else
4803   ac_check_lib_save_LIBS=$LIBS
4804 LIBS="-lossaudio  $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 _oss_ioctl ();
4816 int
4817 main ()
4818 {
4819 _oss_ioctl ();
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_ossaudio__oss_ioctl=yes
4837 else
4838   echo "$as_me: failed program was:" >&5
4839 cat conftest.$ac_ext >&5
4840 ac_cv_lib_ossaudio__oss_ioctl=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_ossaudio__oss_ioctl" >&5
4846 echo "${ECHO_T}$ac_cv_lib_ossaudio__oss_ioctl" >&6
4847 if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then
4848   cat >>confdefs.h <<_ACEOF
4849 #define HAVE_LIBOSSAUDIO 1
4850 _ACEOF
4851
4852   LIBS="-lossaudio $LIBS"
4853
4854 fi
4855
4856
4857 for ac_func in iswalnum
4858 do
4859 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4860 echo "$as_me:$LINENO: checking for $ac_func" >&5
4861 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4862 if eval "test \"\${$as_ac_var+set}\" = set"; then
4863   echo $ECHO_N "(cached) $ECHO_C" >&6
4864 else
4865   cat >conftest.$ac_ext <<_ACEOF
4866 #line $LINENO "configure"
4867 #include "confdefs.h"
4868 /* System header to define __stub macros and hopefully few prototypes,
4869     which can conflict with char $ac_func (); below.  */
4870 #include <assert.h>
4871 /* Override any gcc2 internal prototype to avoid an error.  */
4872 #ifdef __cplusplus
4873 extern "C"
4874 #endif
4875 /* We use char because int might match the return type of a gcc2
4876    builtin and then its argument prototype would still apply.  */
4877 char $ac_func ();
4878 char (*f) ();
4879
4880 int
4881 main ()
4882 {
4883 /* The GNU C library defines this for functions which it implements
4884     to always fail with ENOSYS.  Some functions are actually named
4885     something starting with __ and the normal name is an alias.  */
4886 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4887 choke me
4888 #else
4889 f = $ac_func;
4890 #endif
4891
4892   ;
4893   return 0;
4894 }
4895 _ACEOF
4896 rm -f conftest.$ac_objext conftest$ac_exeext
4897 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4898   (eval $ac_link) 2>&5
4899   ac_status=$?
4900   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4901   (exit $ac_status); } &&
4902          { ac_try='test -s conftest$ac_exeext'
4903   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4904   (eval $ac_try) 2>&5
4905   ac_status=$?
4906   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4907   (exit $ac_status); }; }; then
4908   eval "$as_ac_var=yes"
4909 else
4910   echo "$as_me: failed program was:" >&5
4911 cat conftest.$ac_ext >&5
4912 eval "$as_ac_var=no"
4913 fi
4914 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4915 fi
4916 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4917 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4918 if test `eval echo '${'$as_ac_var'}'` = yes; then
4919   cat >>confdefs.h <<_ACEOF
4920 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4921 _ACEOF
4922
4923 else
4924
4925 echo "$as_me:$LINENO: checking for iswalnum in -lw" >&5
4926 echo $ECHO_N "checking for iswalnum in -lw... $ECHO_C" >&6
4927 if test "${ac_cv_lib_w_iswalnum+set}" = set; then
4928   echo $ECHO_N "(cached) $ECHO_C" >&6
4929 else
4930   ac_check_lib_save_LIBS=$LIBS
4931 LIBS="-lw  $LIBS"
4932 cat >conftest.$ac_ext <<_ACEOF
4933 #line $LINENO "configure"
4934 #include "confdefs.h"
4935
4936 /* Override any gcc2 internal prototype to avoid an error.  */
4937 #ifdef __cplusplus
4938 extern "C"
4939 #endif
4940 /* We use char because int might match the return type of a gcc2
4941    builtin and then its argument prototype would still apply.  */
4942 char iswalnum ();
4943 int
4944 main ()
4945 {
4946 iswalnum ();
4947   ;
4948   return 0;
4949 }
4950 _ACEOF
4951 rm -f conftest.$ac_objext conftest$ac_exeext
4952 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4953   (eval $ac_link) 2>&5
4954   ac_status=$?
4955   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4956   (exit $ac_status); } &&
4957          { ac_try='test -s conftest$ac_exeext'
4958   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4959   (eval $ac_try) 2>&5
4960   ac_status=$?
4961   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4962   (exit $ac_status); }; }; then
4963   ac_cv_lib_w_iswalnum=yes
4964 else
4965   echo "$as_me: failed program was:" >&5
4966 cat conftest.$ac_ext >&5
4967 ac_cv_lib_w_iswalnum=no
4968 fi
4969 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4970 LIBS=$ac_check_lib_save_LIBS
4971 fi
4972 echo "$as_me:$LINENO: result: $ac_cv_lib_w_iswalnum" >&5
4973 echo "${ECHO_T}$ac_cv_lib_w_iswalnum" >&6
4974 if test $ac_cv_lib_w_iswalnum = yes; then
4975   cat >>confdefs.h <<_ACEOF
4976 #define HAVE_LIBW 1
4977 _ACEOF
4978
4979   LIBS="-lw $LIBS"
4980
4981 fi
4982
4983 fi
4984 done
4985
4986
4987 for ac_func in gethostbyname
4988 do
4989 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4990 echo "$as_me:$LINENO: checking for $ac_func" >&5
4991 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4992 if eval "test \"\${$as_ac_var+set}\" = set"; then
4993   echo $ECHO_N "(cached) $ECHO_C" >&6
4994 else
4995   cat >conftest.$ac_ext <<_ACEOF
4996 #line $LINENO "configure"
4997 #include "confdefs.h"
4998 /* System header to define __stub macros and hopefully few prototypes,
4999     which can conflict with char $ac_func (); below.  */
5000 #include <assert.h>
5001 /* Override any gcc2 internal prototype to avoid an error.  */
5002 #ifdef __cplusplus
5003 extern "C"
5004 #endif
5005 /* We use char because int might match the return type of a gcc2
5006    builtin and then its argument prototype would still apply.  */
5007 char $ac_func ();
5008 char (*f) ();
5009
5010 int
5011 main ()
5012 {
5013 /* The GNU C library defines this for functions which it implements
5014     to always fail with ENOSYS.  Some functions are actually named
5015     something starting with __ and the normal name is an alias.  */
5016 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5017 choke me
5018 #else
5019 f = $ac_func;
5020 #endif
5021
5022   ;
5023   return 0;
5024 }
5025 _ACEOF
5026 rm -f conftest.$ac_objext conftest$ac_exeext
5027 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5028   (eval $ac_link) 2>&5
5029   ac_status=$?
5030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5031   (exit $ac_status); } &&
5032          { ac_try='test -s conftest$ac_exeext'
5033   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5034   (eval $ac_try) 2>&5
5035   ac_status=$?
5036   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5037   (exit $ac_status); }; }; then
5038   eval "$as_ac_var=yes"
5039 else
5040   echo "$as_me: failed program was:" >&5
5041 cat conftest.$ac_ext >&5
5042 eval "$as_ac_var=no"
5043 fi
5044 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5045 fi
5046 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5047 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5048 if test `eval echo '${'$as_ac_var'}'` = yes; then
5049   cat >>confdefs.h <<_ACEOF
5050 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5051 _ACEOF
5052
5053 else
5054
5055 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
5056 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
5057 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
5058   echo $ECHO_N "(cached) $ECHO_C" >&6
5059 else
5060   ac_check_lib_save_LIBS=$LIBS
5061 LIBS="-lnsl  $LIBS"
5062 cat >conftest.$ac_ext <<_ACEOF
5063 #line $LINENO "configure"
5064 #include "confdefs.h"
5065
5066 /* Override any gcc2 internal prototype to avoid an error.  */
5067 #ifdef __cplusplus
5068 extern "C"
5069 #endif
5070 /* We use char because int might match the return type of a gcc2
5071    builtin and then its argument prototype would still apply.  */
5072 char gethostbyname ();
5073 int
5074 main ()
5075 {
5076 gethostbyname ();
5077   ;
5078   return 0;
5079 }
5080 _ACEOF
5081 rm -f conftest.$ac_objext conftest$ac_exeext
5082 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5083   (eval $ac_link) 2>&5
5084   ac_status=$?
5085   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5086   (exit $ac_status); } &&
5087          { ac_try='test -s conftest$ac_exeext'
5088   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5089   (eval $ac_try) 2>&5
5090   ac_status=$?
5091   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5092   (exit $ac_status); }; }; then
5093   ac_cv_lib_nsl_gethostbyname=yes
5094 else
5095   echo "$as_me: failed program was:" >&5
5096 cat conftest.$ac_ext >&5
5097 ac_cv_lib_nsl_gethostbyname=no
5098 fi
5099 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5100 LIBS=$ac_check_lib_save_LIBS
5101 fi
5102 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
5103 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
5104 if test $ac_cv_lib_nsl_gethostbyname = yes; then
5105   cat >>confdefs.h <<_ACEOF
5106 #define HAVE_LIBNSL 1
5107 _ACEOF
5108
5109   LIBS="-lnsl $LIBS"
5110
5111 fi
5112
5113 fi
5114 done
5115
5116
5117 for ac_func in connect
5118 do
5119 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5120 echo "$as_me:$LINENO: checking for $ac_func" >&5
5121 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5122 if eval "test \"\${$as_ac_var+set}\" = set"; then
5123   echo $ECHO_N "(cached) $ECHO_C" >&6
5124 else
5125   cat >conftest.$ac_ext <<_ACEOF
5126 #line $LINENO "configure"
5127 #include "confdefs.h"
5128 /* System header to define __stub macros and hopefully few prototypes,
5129     which can conflict with char $ac_func (); below.  */
5130 #include <assert.h>
5131 /* Override any gcc2 internal prototype to avoid an error.  */
5132 #ifdef __cplusplus
5133 extern "C"
5134 #endif
5135 /* We use char because int might match the return type of a gcc2
5136    builtin and then its argument prototype would still apply.  */
5137 char $ac_func ();
5138 char (*f) ();
5139
5140 int
5141 main ()
5142 {
5143 /* The GNU C library defines this for functions which it implements
5144     to always fail with ENOSYS.  Some functions are actually named
5145     something starting with __ and the normal name is an alias.  */
5146 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5147 choke me
5148 #else
5149 f = $ac_func;
5150 #endif
5151
5152   ;
5153   return 0;
5154 }
5155 _ACEOF
5156 rm -f conftest.$ac_objext conftest$ac_exeext
5157 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5158   (eval $ac_link) 2>&5
5159   ac_status=$?
5160   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5161   (exit $ac_status); } &&
5162          { ac_try='test -s conftest$ac_exeext'
5163   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5164   (eval $ac_try) 2>&5
5165   ac_status=$?
5166   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5167   (exit $ac_status); }; }; then
5168   eval "$as_ac_var=yes"
5169 else
5170   echo "$as_me: failed program was:" >&5
5171 cat conftest.$ac_ext >&5
5172 eval "$as_ac_var=no"
5173 fi
5174 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5175 fi
5176 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5177 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5178 if test `eval echo '${'$as_ac_var'}'` = yes; then
5179   cat >>confdefs.h <<_ACEOF
5180 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5181 _ACEOF
5182
5183 else
5184
5185 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
5186 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
5187 if test "${ac_cv_lib_socket_connect+set}" = set; then
5188   echo $ECHO_N "(cached) $ECHO_C" >&6
5189 else
5190   ac_check_lib_save_LIBS=$LIBS
5191 LIBS="-lsocket  $LIBS"
5192 cat >conftest.$ac_ext <<_ACEOF
5193 #line $LINENO "configure"
5194 #include "confdefs.h"
5195
5196 /* Override any gcc2 internal prototype to avoid an error.  */
5197 #ifdef __cplusplus
5198 extern "C"
5199 #endif
5200 /* We use char because int might match the return type of a gcc2
5201    builtin and then its argument prototype would still apply.  */
5202 char connect ();
5203 int
5204 main ()
5205 {
5206 connect ();
5207   ;
5208   return 0;
5209 }
5210 _ACEOF
5211 rm -f conftest.$ac_objext conftest$ac_exeext
5212 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5213   (eval $ac_link) 2>&5
5214   ac_status=$?
5215   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5216   (exit $ac_status); } &&
5217          { ac_try='test -s conftest$ac_exeext'
5218   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5219   (eval $ac_try) 2>&5
5220   ac_status=$?
5221   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5222   (exit $ac_status); }; }; then
5223   ac_cv_lib_socket_connect=yes
5224 else
5225   echo "$as_me: failed program was:" >&5
5226 cat conftest.$ac_ext >&5
5227 ac_cv_lib_socket_connect=no
5228 fi
5229 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5230 LIBS=$ac_check_lib_save_LIBS
5231 fi
5232 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
5233 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
5234 if test $ac_cv_lib_socket_connect = yes; then
5235   cat >>confdefs.h <<_ACEOF
5236 #define HAVE_LIBSOCKET 1
5237 _ACEOF
5238
5239   LIBS="-lsocket $LIBS"
5240
5241 fi
5242
5243 fi
5244 done
5245
5246
5247 for ac_func in inet_aton
5248 do
5249 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5250 echo "$as_me:$LINENO: checking for $ac_func" >&5
5251 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5252 if eval "test \"\${$as_ac_var+set}\" = set"; then
5253   echo $ECHO_N "(cached) $ECHO_C" >&6
5254 else
5255   cat >conftest.$ac_ext <<_ACEOF
5256 #line $LINENO "configure"
5257 #include "confdefs.h"
5258 /* System header to define __stub macros and hopefully few prototypes,
5259     which can conflict with char $ac_func (); below.  */
5260 #include <assert.h>
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 $ac_func ();
5268 char (*f) ();
5269
5270 int
5271 main ()
5272 {
5273 /* The GNU C library defines this for functions which it implements
5274     to always fail with ENOSYS.  Some functions are actually named
5275     something starting with __ and the normal name is an alias.  */
5276 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5277 choke me
5278 #else
5279 f = $ac_func;
5280 #endif
5281
5282   ;
5283   return 0;
5284 }
5285 _ACEOF
5286 rm -f conftest.$ac_objext conftest$ac_exeext
5287 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5288   (eval $ac_link) 2>&5
5289   ac_status=$?
5290   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5291   (exit $ac_status); } &&
5292          { ac_try='test -s conftest$ac_exeext'
5293   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5294   (eval $ac_try) 2>&5
5295   ac_status=$?
5296   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5297   (exit $ac_status); }; }; then
5298   eval "$as_ac_var=yes"
5299 else
5300   echo "$as_me: failed program was:" >&5
5301 cat conftest.$ac_ext >&5
5302 eval "$as_ac_var=no"
5303 fi
5304 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5305 fi
5306 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5307 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5308 if test `eval echo '${'$as_ac_var'}'` = yes; then
5309   cat >>confdefs.h <<_ACEOF
5310 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5311 _ACEOF
5312
5313 else
5314
5315 echo "$as_me:$LINENO: checking for inet_aton in -lresolv" >&5
5316 echo $ECHO_N "checking for inet_aton in -lresolv... $ECHO_C" >&6
5317 if test "${ac_cv_lib_resolv_inet_aton+set}" = set; then
5318   echo $ECHO_N "(cached) $ECHO_C" >&6
5319 else
5320   ac_check_lib_save_LIBS=$LIBS
5321 LIBS="-lresolv  $LIBS"
5322 cat >conftest.$ac_ext <<_ACEOF
5323 #line $LINENO "configure"
5324 #include "confdefs.h"
5325
5326 /* Override any gcc2 internal prototype to avoid an error.  */
5327 #ifdef __cplusplus
5328 extern "C"
5329 #endif
5330 /* We use char because int might match the return type of a gcc2
5331    builtin and then its argument prototype would still apply.  */
5332 char inet_aton ();
5333 int
5334 main ()
5335 {
5336 inet_aton ();
5337   ;
5338   return 0;
5339 }
5340 _ACEOF
5341 rm -f conftest.$ac_objext conftest$ac_exeext
5342 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5343   (eval $ac_link) 2>&5
5344   ac_status=$?
5345   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5346   (exit $ac_status); } &&
5347          { ac_try='test -s conftest$ac_exeext'
5348   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5349   (eval $ac_try) 2>&5
5350   ac_status=$?
5351   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5352   (exit $ac_status); }; }; then
5353   ac_cv_lib_resolv_inet_aton=yes
5354 else
5355   echo "$as_me: failed program was:" >&5
5356 cat conftest.$ac_ext >&5
5357 ac_cv_lib_resolv_inet_aton=no
5358 fi
5359 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5360 LIBS=$ac_check_lib_save_LIBS
5361 fi
5362 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_aton" >&5
5363 echo "${ECHO_T}$ac_cv_lib_resolv_inet_aton" >&6
5364 if test $ac_cv_lib_resolv_inet_aton = yes; then
5365   cat >>confdefs.h <<_ACEOF
5366 #define HAVE_LIBRESOLV 1
5367 _ACEOF
5368
5369   LIBS="-lresolv $LIBS"
5370
5371 fi
5372
5373 fi
5374 done
5375
5376
5377 echo "$as_me:$LINENO: checking for _xpg4_setrunelocale in -lxpg4" >&5
5378 echo $ECHO_N "checking for _xpg4_setrunelocale in -lxpg4... $ECHO_C" >&6
5379 if test "${ac_cv_lib_xpg4__xpg4_setrunelocale+set}" = set; then
5380   echo $ECHO_N "(cached) $ECHO_C" >&6
5381 else
5382   ac_check_lib_save_LIBS=$LIBS
5383 LIBS="-lxpg4  $LIBS"
5384 cat >conftest.$ac_ext <<_ACEOF
5385 #line $LINENO "configure"
5386 #include "confdefs.h"
5387
5388 /* Override any gcc2 internal prototype to avoid an error.  */
5389 #ifdef __cplusplus
5390 extern "C"
5391 #endif
5392 /* We use char because int might match the return type of a gcc2
5393    builtin and then its argument prototype would still apply.  */
5394 char _xpg4_setrunelocale ();
5395 int
5396 main ()
5397 {
5398 _xpg4_setrunelocale ();
5399   ;
5400   return 0;
5401 }
5402 _ACEOF
5403 rm -f conftest.$ac_objext conftest$ac_exeext
5404 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5405   (eval $ac_link) 2>&5
5406   ac_status=$?
5407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5408   (exit $ac_status); } &&
5409          { ac_try='test -s conftest$ac_exeext'
5410   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5411   (eval $ac_try) 2>&5
5412   ac_status=$?
5413   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5414   (exit $ac_status); }; }; then
5415   ac_cv_lib_xpg4__xpg4_setrunelocale=yes
5416 else
5417   echo "$as_me: failed program was:" >&5
5418 cat conftest.$ac_ext >&5
5419 ac_cv_lib_xpg4__xpg4_setrunelocale=no
5420 fi
5421 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5422 LIBS=$ac_check_lib_save_LIBS
5423 fi
5424 echo "$as_me:$LINENO: result: $ac_cv_lib_xpg4__xpg4_setrunelocale" >&5
5425 echo "${ECHO_T}$ac_cv_lib_xpg4__xpg4_setrunelocale" >&6
5426 if test $ac_cv_lib_xpg4__xpg4_setrunelocale = yes; then
5427   cat >>confdefs.h <<_ACEOF
5428 #define HAVE_LIBXPG4 1
5429 _ACEOF
5430
5431   LIBS="-lxpg4 $LIBS"
5432
5433 fi
5434
5435
5436 echo "$as_me:$LINENO: checking for mmap in -lmmap" >&5
5437 echo $ECHO_N "checking for mmap in -lmmap... $ECHO_C" >&6
5438 if test "${ac_cv_lib_mmap_mmap+set}" = set; then
5439   echo $ECHO_N "(cached) $ECHO_C" >&6
5440 else
5441   ac_check_lib_save_LIBS=$LIBS
5442 LIBS="-lmmap  $LIBS"
5443 cat >conftest.$ac_ext <<_ACEOF
5444 #line $LINENO "configure"
5445 #include "confdefs.h"
5446
5447 /* Override any gcc2 internal prototype to avoid an error.  */
5448 #ifdef __cplusplus
5449 extern "C"
5450 #endif
5451 /* We use char because int might match the return type of a gcc2
5452    builtin and then its argument prototype would still apply.  */
5453 char mmap ();
5454 int
5455 main ()
5456 {
5457 mmap ();
5458   ;
5459   return 0;
5460 }
5461 _ACEOF
5462 rm -f conftest.$ac_objext conftest$ac_exeext
5463 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5464   (eval $ac_link) 2>&5
5465   ac_status=$?
5466   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5467   (exit $ac_status); } &&
5468          { ac_try='test -s conftest$ac_exeext'
5469   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5470   (eval $ac_try) 2>&5
5471   ac_status=$?
5472   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5473   (exit $ac_status); }; }; then
5474   ac_cv_lib_mmap_mmap=yes
5475 else
5476   echo "$as_me: failed program was:" >&5
5477 cat conftest.$ac_ext >&5
5478 ac_cv_lib_mmap_mmap=no
5479 fi
5480 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5481 LIBS=$ac_check_lib_save_LIBS
5482 fi
5483 echo "$as_me:$LINENO: result: $ac_cv_lib_mmap_mmap" >&5
5484 echo "${ECHO_T}$ac_cv_lib_mmap_mmap" >&6
5485 if test $ac_cv_lib_mmap_mmap = yes; then
5486   cat >>confdefs.h <<_ACEOF
5487 #define HAVE_LIBMMAP 1
5488 _ACEOF
5489
5490   LIBS="-lmmap $LIBS"
5491
5492 fi
5493
5494
5495 JPEGLIB=""
5496
5497 echo "$as_me:$LINENO: checking for egrep" >&5
5498 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
5499 if test "${ac_cv_prog_egrep+set}" = set; then
5500   echo $ECHO_N "(cached) $ECHO_C" >&6
5501 else
5502   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
5503     then ac_cv_prog_egrep='grep -E'
5504     else ac_cv_prog_egrep='egrep'
5505     fi
5506 fi
5507 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
5508 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
5509  EGREP=$ac_cv_prog_egrep
5510
5511
5512 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5513 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5514 if test "${ac_cv_header_stdc+set}" = set; then
5515   echo $ECHO_N "(cached) $ECHO_C" >&6
5516 else
5517   cat >conftest.$ac_ext <<_ACEOF
5518 #line $LINENO "configure"
5519 #include "confdefs.h"
5520 #include <stdlib.h>
5521 #include <stdarg.h>
5522 #include <string.h>
5523 #include <float.h>
5524
5525 _ACEOF
5526 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5527   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5528   ac_status=$?
5529   grep -v '^ *+' conftest.er1 >conftest.err
5530   rm -f conftest.er1
5531   cat conftest.err >&5
5532   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5533   (exit $ac_status); } >/dev/null; then
5534   if test -s conftest.err; then
5535     ac_cpp_err=$ac_c_preproc_warn_flag
5536   else
5537     ac_cpp_err=
5538   fi
5539 else
5540   ac_cpp_err=yes
5541 fi
5542 if test -z "$ac_cpp_err"; then
5543   ac_cv_header_stdc=yes
5544 else
5545   echo "$as_me: failed program was:" >&5
5546   cat conftest.$ac_ext >&5
5547   ac_cv_header_stdc=no
5548 fi
5549 rm -f conftest.err conftest.$ac_ext
5550
5551 if test $ac_cv_header_stdc = yes; then
5552   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5553   cat >conftest.$ac_ext <<_ACEOF
5554 #line $LINENO "configure"
5555 #include "confdefs.h"
5556 #include <string.h>
5557
5558 _ACEOF
5559 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5560   $EGREP "memchr" >/dev/null 2>&1; then
5561   :
5562 else
5563   ac_cv_header_stdc=no
5564 fi
5565 rm -f conftest*
5566
5567 fi
5568
5569 if test $ac_cv_header_stdc = yes; then
5570   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5571   cat >conftest.$ac_ext <<_ACEOF
5572 #line $LINENO "configure"
5573 #include "confdefs.h"
5574 #include <stdlib.h>
5575
5576 _ACEOF
5577 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5578   $EGREP "free" >/dev/null 2>&1; then
5579   :
5580 else
5581   ac_cv_header_stdc=no
5582 fi
5583 rm -f conftest*
5584
5585 fi
5586
5587 if test $ac_cv_header_stdc = yes; then
5588   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5589   if test "$cross_compiling" = yes; then
5590   :
5591 else
5592   cat >conftest.$ac_ext <<_ACEOF
5593 #line $LINENO "configure"
5594 #include "confdefs.h"
5595 #include <ctype.h>
5596 #if ((' ' & 0x0FF) == 0x020)
5597 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5598 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5599 #else
5600 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
5601                      || ('j' <= (c) && (c) <= 'r') \
5602                      || ('s' <= (c) && (c) <= 'z'))
5603 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5604 #endif
5605
5606 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5607 int
5608 main ()
5609 {
5610   int i;
5611   for (i = 0; i < 256; i++)
5612     if (XOR (islower (i), ISLOWER (i))
5613         || toupper (i) != TOUPPER (i))
5614       exit(2);
5615   exit (0);
5616 }
5617 _ACEOF
5618 rm -f conftest$ac_exeext
5619 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5620   (eval $ac_link) 2>&5
5621   ac_status=$?
5622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5623   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5624   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5625   (eval $ac_try) 2>&5
5626   ac_status=$?
5627   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5628   (exit $ac_status); }; }; then
5629   :
5630 else
5631   echo "$as_me: program exited with status $ac_status" >&5
5632 echo "$as_me: failed program was:" >&5
5633 cat conftest.$ac_ext >&5
5634 ( exit $ac_status )
5635 ac_cv_header_stdc=no
5636 fi
5637 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5638 fi
5639 fi
5640 fi
5641 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5642 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5643 if test $ac_cv_header_stdc = yes; then
5644
5645 cat >>confdefs.h <<\_ACEOF
5646 #define STDC_HEADERS 1
5647 _ACEOF
5648
5649 fi
5650
5651 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5652
5653
5654
5655
5656
5657
5658
5659
5660
5661 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5662                   inttypes.h stdint.h unistd.h
5663 do
5664 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5665 echo "$as_me:$LINENO: checking for $ac_header" >&5
5666 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5667 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5668   echo $ECHO_N "(cached) $ECHO_C" >&6
5669 else
5670   cat >conftest.$ac_ext <<_ACEOF
5671 #line $LINENO "configure"
5672 #include "confdefs.h"
5673 $ac_includes_default
5674
5675 #include <$ac_header>
5676 _ACEOF
5677 rm -f conftest.$ac_objext
5678 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5679   (eval $ac_compile) 2>&5
5680   ac_status=$?
5681   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5682   (exit $ac_status); } &&
5683          { ac_try='test -s conftest.$ac_objext'
5684   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5685   (eval $ac_try) 2>&5
5686   ac_status=$?
5687   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5688   (exit $ac_status); }; }; then
5689   eval "$as_ac_Header=yes"
5690 else
5691   echo "$as_me: failed program was:" >&5
5692 cat conftest.$ac_ext >&5
5693 eval "$as_ac_Header=no"
5694 fi
5695 rm -f conftest.$ac_objext conftest.$ac_ext
5696 fi
5697 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5698 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5699 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5700   cat >>confdefs.h <<_ACEOF
5701 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5702 _ACEOF
5703
5704 fi
5705
5706 done
5707
5708
5709
5710 for ac_header in jpeglib.h
5711 do
5712 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5713 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5714   echo "$as_me:$LINENO: checking for $ac_header" >&5
5715 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5716 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5717   echo $ECHO_N "(cached) $ECHO_C" >&6
5718 fi
5719 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5720 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5721 else
5722   # Is the header compilable?
5723 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5724 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5725 cat >conftest.$ac_ext <<_ACEOF
5726 #line $LINENO "configure"
5727 #include "confdefs.h"
5728 $ac_includes_default
5729 #include <$ac_header>
5730 _ACEOF
5731 rm -f conftest.$ac_objext
5732 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5733   (eval $ac_compile) 2>&5
5734   ac_status=$?
5735   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5736   (exit $ac_status); } &&
5737          { ac_try='test -s conftest.$ac_objext'
5738   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5739   (eval $ac_try) 2>&5
5740   ac_status=$?
5741   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5742   (exit $ac_status); }; }; then
5743   ac_header_compiler=yes
5744 else
5745   echo "$as_me: failed program was:" >&5
5746 cat conftest.$ac_ext >&5
5747 ac_header_compiler=no
5748 fi
5749 rm -f conftest.$ac_objext conftest.$ac_ext
5750 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5751 echo "${ECHO_T}$ac_header_compiler" >&6
5752
5753 # Is the header present?
5754 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5755 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5756 cat >conftest.$ac_ext <<_ACEOF
5757 #line $LINENO "configure"
5758 #include "confdefs.h"
5759 #include <$ac_header>
5760 _ACEOF
5761 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5762   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5763   ac_status=$?
5764   grep -v '^ *+' conftest.er1 >conftest.err
5765   rm -f conftest.er1
5766   cat conftest.err >&5
5767   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5768   (exit $ac_status); } >/dev/null; then
5769   if test -s conftest.err; then
5770     ac_cpp_err=$ac_c_preproc_warn_flag
5771   else
5772     ac_cpp_err=
5773   fi
5774 else
5775   ac_cpp_err=yes
5776 fi
5777 if test -z "$ac_cpp_err"; then
5778   ac_header_preproc=yes
5779 else
5780   echo "$as_me: failed program was:" >&5
5781   cat conftest.$ac_ext >&5
5782   ac_header_preproc=no
5783 fi
5784 rm -f conftest.err conftest.$ac_ext
5785 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5786 echo "${ECHO_T}$ac_header_preproc" >&6
5787
5788 # So?  What about this header?
5789 case $ac_header_compiler:$ac_header_preproc in
5790   yes:no )
5791     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5792 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5793     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5794 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
5795   no:yes )
5796     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5797 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5798     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5799 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5800     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5801 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
5802 esac
5803 echo "$as_me:$LINENO: checking for $ac_header" >&5
5804 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5805 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5806   echo $ECHO_N "(cached) $ECHO_C" >&6
5807 else
5808   eval "$as_ac_Header=$ac_header_preproc"
5809 fi
5810 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5811 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5812
5813 fi
5814 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5815   cat >>confdefs.h <<_ACEOF
5816 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5817 _ACEOF
5818  echo "$as_me:$LINENO: checking for jpeg_start_decompress in -ljpeg" >&5
5819 echo $ECHO_N "checking for jpeg_start_decompress in -ljpeg... $ECHO_C" >&6
5820 if test "${ac_cv_lib_jpeg_jpeg_start_decompress+set}" = set; then
5821   echo $ECHO_N "(cached) $ECHO_C" >&6
5822 else
5823   ac_check_lib_save_LIBS=$LIBS
5824 LIBS="-ljpeg  $LIBS"
5825 cat >conftest.$ac_ext <<_ACEOF
5826 #line $LINENO "configure"
5827 #include "confdefs.h"
5828
5829 /* Override any gcc2 internal prototype to avoid an error.  */
5830 #ifdef __cplusplus
5831 extern "C"
5832 #endif
5833 /* We use char because int might match the return type of a gcc2
5834    builtin and then its argument prototype would still apply.  */
5835 char jpeg_start_decompress ();
5836 int
5837 main ()
5838 {
5839 jpeg_start_decompress ();
5840   ;
5841   return 0;
5842 }
5843 _ACEOF
5844 rm -f conftest.$ac_objext conftest$ac_exeext
5845 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5846   (eval $ac_link) 2>&5
5847   ac_status=$?
5848   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5849   (exit $ac_status); } &&
5850          { ac_try='test -s conftest$ac_exeext'
5851   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5852   (eval $ac_try) 2>&5
5853   ac_status=$?
5854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5855   (exit $ac_status); }; }; then
5856   ac_cv_lib_jpeg_jpeg_start_decompress=yes
5857 else
5858   echo "$as_me: failed program was:" >&5
5859 cat conftest.$ac_ext >&5
5860 ac_cv_lib_jpeg_jpeg_start_decompress=no
5861 fi
5862 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5863 LIBS=$ac_check_lib_save_LIBS
5864 fi
5865 echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_start_decompress" >&5
5866 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_start_decompress" >&6
5867 if test $ac_cv_lib_jpeg_jpeg_start_decompress = yes; then
5868
5869 cat >>confdefs.h <<\_ACEOF
5870 #define HAVE_LIBJPEG 1
5871 _ACEOF
5872
5873         JPEGLIB="-ljpeg"
5874
5875 fi
5876
5877
5878 fi
5879
5880 done
5881
5882
5883
5884
5885
5886 XFILES=""
5887
5888 OPENGLFILES=""
5889
5890 GLU32FILES=""
5891
5892 OPENGL_LIBS=""
5893 if test "$have_x" = "yes"
5894 then
5895     XLIB="-lXext -lX11"
5896     ac_save_CPPFLAGS="$CPPFLAGS"
5897     CPPFLAGS="$CPPFLAGS $X_CFLAGS"
5898
5899
5900 for ac_header in X11/Xlib.h
5901 do
5902 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5903 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5904   echo "$as_me:$LINENO: checking for $ac_header" >&5
5905 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5906 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5907   echo $ECHO_N "(cached) $ECHO_C" >&6
5908 fi
5909 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5910 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5911 else
5912   # Is the header compilable?
5913 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5914 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5915 cat >conftest.$ac_ext <<_ACEOF
5916 #line $LINENO "configure"
5917 #include "confdefs.h"
5918 $ac_includes_default
5919 #include <$ac_header>
5920 _ACEOF
5921 rm -f conftest.$ac_objext
5922 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5923   (eval $ac_compile) 2>&5
5924   ac_status=$?
5925   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5926   (exit $ac_status); } &&
5927          { ac_try='test -s conftest.$ac_objext'
5928   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5929   (eval $ac_try) 2>&5
5930   ac_status=$?
5931   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5932   (exit $ac_status); }; }; then
5933   ac_header_compiler=yes
5934 else
5935   echo "$as_me: failed program was:" >&5
5936 cat conftest.$ac_ext >&5
5937 ac_header_compiler=no
5938 fi
5939 rm -f conftest.$ac_objext conftest.$ac_ext
5940 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5941 echo "${ECHO_T}$ac_header_compiler" >&6
5942
5943 # Is the header present?
5944 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5945 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5946 cat >conftest.$ac_ext <<_ACEOF
5947 #line $LINENO "configure"
5948 #include "confdefs.h"
5949 #include <$ac_header>
5950 _ACEOF
5951 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5952   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5953   ac_status=$?
5954   grep -v '^ *+' conftest.er1 >conftest.err
5955   rm -f conftest.er1
5956   cat conftest.err >&5
5957   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5958   (exit $ac_status); } >/dev/null; then
5959   if test -s conftest.err; then
5960     ac_cpp_err=$ac_c_preproc_warn_flag
5961   else
5962     ac_cpp_err=
5963   fi
5964 else
5965   ac_cpp_err=yes
5966 fi
5967 if test -z "$ac_cpp_err"; then
5968   ac_header_preproc=yes
5969 else
5970   echo "$as_me: failed program was:" >&5
5971   cat conftest.$ac_ext >&5
5972   ac_header_preproc=no
5973 fi
5974 rm -f conftest.err conftest.$ac_ext
5975 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5976 echo "${ECHO_T}$ac_header_preproc" >&6
5977
5978 # So?  What about this header?
5979 case $ac_header_compiler:$ac_header_preproc in
5980   yes:no )
5981     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5982 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5983     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5984 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
5985   no:yes )
5986     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5987 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5988     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5989 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5990     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5991 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
5992 esac
5993 echo "$as_me:$LINENO: checking for $ac_header" >&5
5994 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5995 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5996   echo $ECHO_N "(cached) $ECHO_C" >&6
5997 else
5998   eval "$as_ac_Header=$ac_header_preproc"
5999 fi
6000 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6001 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6002
6003 fi
6004 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6005   cat >>confdefs.h <<_ACEOF
6006 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6007 _ACEOF
6008
6009
6010 for ac_header in X11/XKBlib.h
6011 do
6012 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6013 echo "$as_me:$LINENO: checking for $ac_header" >&5
6014 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6015 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6016   echo $ECHO_N "(cached) $ECHO_C" >&6
6017 else
6018   cat >conftest.$ac_ext <<_ACEOF
6019 #line $LINENO "configure"
6020 #include "confdefs.h"
6021 #include <X11/Xlib.h>
6022
6023 #include <$ac_header>
6024 _ACEOF
6025 rm -f conftest.$ac_objext
6026 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6027   (eval $ac_compile) 2>&5
6028   ac_status=$?
6029   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6030   (exit $ac_status); } &&
6031          { ac_try='test -s conftest.$ac_objext'
6032   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6033   (eval $ac_try) 2>&5
6034   ac_status=$?
6035   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6036   (exit $ac_status); }; }; then
6037   eval "$as_ac_Header=yes"
6038 else
6039   echo "$as_me: failed program was:" >&5
6040 cat conftest.$ac_ext >&5
6041 eval "$as_ac_Header=no"
6042 fi
6043 rm -f conftest.$ac_objext conftest.$ac_ext
6044 fi
6045 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6046 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6047 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6048   cat >>confdefs.h <<_ACEOF
6049 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6050 _ACEOF
6051                 echo "$as_me:$LINENO: checking for XkbQueryExtension in -lX11" >&5
6052 echo $ECHO_N "checking for XkbQueryExtension in -lX11... $ECHO_C" >&6
6053 if test "${ac_cv_lib_X11_XkbQueryExtension+set}" = set; then
6054   echo $ECHO_N "(cached) $ECHO_C" >&6
6055 else
6056   ac_check_lib_save_LIBS=$LIBS
6057 LIBS="-lX11 $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
6058 cat >conftest.$ac_ext <<_ACEOF
6059 #line $LINENO "configure"
6060 #include "confdefs.h"
6061
6062 /* Override any gcc2 internal prototype to avoid an error.  */
6063 #ifdef __cplusplus
6064 extern "C"
6065 #endif
6066 /* We use char because int might match the return type of a gcc2
6067    builtin and then its argument prototype would still apply.  */
6068 char XkbQueryExtension ();
6069 int
6070 main ()
6071 {
6072 XkbQueryExtension ();
6073   ;
6074   return 0;
6075 }
6076 _ACEOF
6077 rm -f conftest.$ac_objext conftest$ac_exeext
6078 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6079   (eval $ac_link) 2>&5
6080   ac_status=$?
6081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6082   (exit $ac_status); } &&
6083          { ac_try='test -s conftest$ac_exeext'
6084   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6085   (eval $ac_try) 2>&5
6086   ac_status=$?
6087   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6088   (exit $ac_status); }; }; then
6089   ac_cv_lib_X11_XkbQueryExtension=yes
6090 else
6091   echo "$as_me: failed program was:" >&5
6092 cat conftest.$ac_ext >&5
6093 ac_cv_lib_X11_XkbQueryExtension=no
6094 fi
6095 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6096 LIBS=$ac_check_lib_save_LIBS
6097 fi
6098 echo "$as_me:$LINENO: result: $ac_cv_lib_X11_XkbQueryExtension" >&5
6099 echo "${ECHO_T}$ac_cv_lib_X11_XkbQueryExtension" >&6
6100 if test $ac_cv_lib_X11_XkbQueryExtension = yes; then
6101
6102 cat >>confdefs.h <<\_ACEOF
6103 #define HAVE_XKB 1
6104 _ACEOF
6105
6106 fi
6107
6108
6109 else
6110   { echo "$as_me:$LINENO: WARNING: Xkb extension not found, Wine will be built without it" >&5
6111 echo "$as_me: WARNING: Xkb extension not found, Wine will be built without it" >&2;}
6112 fi
6113
6114 done
6115
6116
6117
6118 for ac_header in X11/extensions/XShm.h
6119 do
6120 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6121 echo "$as_me:$LINENO: checking for $ac_header" >&5
6122 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6123 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6124   echo $ECHO_N "(cached) $ECHO_C" >&6
6125 else
6126   cat >conftest.$ac_ext <<_ACEOF
6127 #line $LINENO "configure"
6128 #include "confdefs.h"
6129 #include <X11/Xlib.h>
6130
6131 #include <$ac_header>
6132 _ACEOF
6133 rm -f conftest.$ac_objext
6134 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6135   (eval $ac_compile) 2>&5
6136   ac_status=$?
6137   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6138   (exit $ac_status); } &&
6139          { ac_try='test -s conftest.$ac_objext'
6140   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6141   (eval $ac_try) 2>&5
6142   ac_status=$?
6143   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6144   (exit $ac_status); }; }; then
6145   eval "$as_ac_Header=yes"
6146 else
6147   echo "$as_me: failed program was:" >&5
6148 cat conftest.$ac_ext >&5
6149 eval "$as_ac_Header=no"
6150 fi
6151 rm -f conftest.$ac_objext conftest.$ac_ext
6152 fi
6153 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6154 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6155 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6156   cat >>confdefs.h <<_ACEOF
6157 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6158 _ACEOF
6159                 echo "$as_me:$LINENO: checking for XShmQueryExtension in -lXext" >&5
6160 echo $ECHO_N "checking for XShmQueryExtension in -lXext... $ECHO_C" >&6
6161 if test "${ac_cv_lib_Xext_XShmQueryExtension+set}" = set; then
6162   echo $ECHO_N "(cached) $ECHO_C" >&6
6163 else
6164   ac_check_lib_save_LIBS=$LIBS
6165 LIBS="-lXext $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
6166 cat >conftest.$ac_ext <<_ACEOF
6167 #line $LINENO "configure"
6168 #include "confdefs.h"
6169
6170 /* Override any gcc2 internal prototype to avoid an error.  */
6171 #ifdef __cplusplus
6172 extern "C"
6173 #endif
6174 /* We use char because int might match the return type of a gcc2
6175    builtin and then its argument prototype would still apply.  */
6176 char XShmQueryExtension ();
6177 int
6178 main ()
6179 {
6180 XShmQueryExtension ();
6181   ;
6182   return 0;
6183 }
6184 _ACEOF
6185 rm -f conftest.$ac_objext conftest$ac_exeext
6186 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6187   (eval $ac_link) 2>&5
6188   ac_status=$?
6189   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6190   (exit $ac_status); } &&
6191          { ac_try='test -s conftest$ac_exeext'
6192   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6193   (eval $ac_try) 2>&5
6194   ac_status=$?
6195   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6196   (exit $ac_status); }; }; then
6197   ac_cv_lib_Xext_XShmQueryExtension=yes
6198 else
6199   echo "$as_me: failed program was:" >&5
6200 cat conftest.$ac_ext >&5
6201 ac_cv_lib_Xext_XShmQueryExtension=no
6202 fi
6203 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6204 LIBS=$ac_check_lib_save_LIBS
6205 fi
6206 echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShmQueryExtension" >&5
6207 echo "${ECHO_T}$ac_cv_lib_Xext_XShmQueryExtension" >&6
6208 if test $ac_cv_lib_Xext_XShmQueryExtension = yes; then
6209
6210 cat >>confdefs.h <<\_ACEOF
6211 #define HAVE_LIBXXSHM 1
6212 _ACEOF
6213
6214 fi
6215
6216
6217 else
6218   { echo "$as_me:$LINENO: WARNING: XShm extension not found, Wine will be built without it" >&5
6219 echo "$as_me: WARNING: XShm extension not found, Wine will be built without it" >&2;}
6220 fi
6221
6222 done
6223
6224
6225
6226 for ac_header in X11/Xutil.h
6227 do
6228 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6229 echo "$as_me:$LINENO: checking for $ac_header" >&5
6230 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6231 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6232   echo $ECHO_N "(cached) $ECHO_C" >&6
6233 else
6234   cat >conftest.$ac_ext <<_ACEOF
6235 #line $LINENO "configure"
6236 #include "confdefs.h"
6237 #include <X11/Xlib.h>
6238
6239 #include <$ac_header>
6240 _ACEOF
6241 rm -f conftest.$ac_objext
6242 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6243   (eval $ac_compile) 2>&5
6244   ac_status=$?
6245   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6246   (exit $ac_status); } &&
6247          { ac_try='test -s conftest.$ac_objext'
6248   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6249   (eval $ac_try) 2>&5
6250   ac_status=$?
6251   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6252   (exit $ac_status); }; }; then
6253   eval "$as_ac_Header=yes"
6254 else
6255   echo "$as_me: failed program was:" >&5
6256 cat conftest.$ac_ext >&5
6257 eval "$as_ac_Header=no"
6258 fi
6259 rm -f conftest.$ac_objext conftest.$ac_ext
6260 fi
6261 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6262 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6263 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6264   cat >>confdefs.h <<_ACEOF
6265 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6266 _ACEOF
6267
6268 fi
6269
6270 done
6271
6272
6273
6274 for ac_header in X11/extensions/shape.h
6275 do
6276 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6277 echo "$as_me:$LINENO: checking for $ac_header" >&5
6278 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6279 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6280   echo $ECHO_N "(cached) $ECHO_C" >&6
6281 else
6282   cat >conftest.$ac_ext <<_ACEOF
6283 #line $LINENO "configure"
6284 #include "confdefs.h"
6285 #include <X11/Xlib.h>
6286              #ifdef HAVE_X11_XUTIL_H
6287              # include <X11/Xutil.h>
6288              #endif
6289
6290 #include <$ac_header>
6291 _ACEOF
6292 rm -f conftest.$ac_objext
6293 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6294   (eval $ac_compile) 2>&5
6295   ac_status=$?
6296   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6297   (exit $ac_status); } &&
6298          { ac_try='test -s conftest.$ac_objext'
6299   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6300   (eval $ac_try) 2>&5
6301   ac_status=$?
6302   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6303   (exit $ac_status); }; }; then
6304   eval "$as_ac_Header=yes"
6305 else
6306   echo "$as_me: failed program was:" >&5
6307 cat conftest.$ac_ext >&5
6308 eval "$as_ac_Header=no"
6309 fi
6310 rm -f conftest.$ac_objext conftest.$ac_ext
6311 fi
6312 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6313 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6314 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6315   cat >>confdefs.h <<_ACEOF
6316 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6317 _ACEOF
6318                 echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
6319 echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6
6320 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
6321   echo $ECHO_N "(cached) $ECHO_C" >&6
6322 else
6323   ac_check_lib_save_LIBS=$LIBS
6324 LIBS="-lXext $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
6325 cat >conftest.$ac_ext <<_ACEOF
6326 #line $LINENO "configure"
6327 #include "confdefs.h"
6328
6329 /* Override any gcc2 internal prototype to avoid an error.  */
6330 #ifdef __cplusplus
6331 extern "C"
6332 #endif
6333 /* We use char because int might match the return type of a gcc2
6334    builtin and then its argument prototype would still apply.  */
6335 char XShapeQueryExtension ();
6336 int
6337 main ()
6338 {
6339 XShapeQueryExtension ();
6340   ;
6341   return 0;
6342 }
6343 _ACEOF
6344 rm -f conftest.$ac_objext conftest$ac_exeext
6345 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6346   (eval $ac_link) 2>&5
6347   ac_status=$?
6348   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6349   (exit $ac_status); } &&
6350          { ac_try='test -s conftest$ac_exeext'
6351   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6352   (eval $ac_try) 2>&5
6353   ac_status=$?
6354   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6355   (exit $ac_status); }; }; then
6356   ac_cv_lib_Xext_XShapeQueryExtension=yes
6357 else
6358   echo "$as_me: failed program was:" >&5
6359 cat conftest.$ac_ext >&5
6360 ac_cv_lib_Xext_XShapeQueryExtension=no
6361 fi
6362 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6363 LIBS=$ac_check_lib_save_LIBS
6364 fi
6365 echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
6366 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6
6367 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
6368
6369 cat >>confdefs.h <<\_ACEOF
6370 #define HAVE_LIBXSHAPE 1
6371 _ACEOF
6372
6373 fi
6374
6375
6376 else
6377   { echo "$as_me:$LINENO: WARNING: XShape extension not found, Wine will be built without it" >&5
6378 echo "$as_me: WARNING: XShape extension not found, Wine will be built without it" >&2;}
6379 fi
6380
6381 done
6382
6383
6384
6385 for ac_header in X11/extensions/xf86dga.h
6386 do
6387 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6388 echo "$as_me:$LINENO: checking for $ac_header" >&5
6389 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6390 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6391   echo $ECHO_N "(cached) $ECHO_C" >&6
6392 else
6393   cat >conftest.$ac_ext <<_ACEOF
6394 #line $LINENO "configure"
6395 #include "confdefs.h"
6396 #include <X11/Xlib.h>
6397
6398 #include <$ac_header>
6399 _ACEOF
6400 rm -f conftest.$ac_objext
6401 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6402   (eval $ac_compile) 2>&5
6403   ac_status=$?
6404   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6405   (exit $ac_status); } &&
6406          { ac_try='test -s conftest.$ac_objext'
6407   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6408   (eval $ac_try) 2>&5
6409   ac_status=$?
6410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6411   (exit $ac_status); }; }; then
6412   eval "$as_ac_Header=yes"
6413 else
6414   echo "$as_me: failed program was:" >&5
6415 cat conftest.$ac_ext >&5
6416 eval "$as_ac_Header=no"
6417 fi
6418 rm -f conftest.$ac_objext conftest.$ac_ext
6419 fi
6420 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6421 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6422 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6423   cat >>confdefs.h <<_ACEOF
6424 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6425 _ACEOF
6426                               echo "$as_me:$LINENO: checking for XDGAQueryExtension in -lXxf86dga" >&5
6427 echo $ECHO_N "checking for XDGAQueryExtension in -lXxf86dga... $ECHO_C" >&6
6428 if test "${ac_cv_lib_Xxf86dga_XDGAQueryExtension+set}" = set; then
6429   echo $ECHO_N "(cached) $ECHO_C" >&6
6430 else
6431   ac_check_lib_save_LIBS=$LIBS
6432 LIBS="-lXxf86dga $X_LIBS -lXext -lX11 $X_EXTRA_LIBS
6433                $LIBS"
6434 cat >conftest.$ac_ext <<_ACEOF
6435 #line $LINENO "configure"
6436 #include "confdefs.h"
6437
6438 /* Override any gcc2 internal prototype to avoid an error.  */
6439 #ifdef __cplusplus
6440 extern "C"
6441 #endif
6442 /* We use char because int might match the return type of a gcc2
6443    builtin and then its argument prototype would still apply.  */
6444 char XDGAQueryExtension ();
6445 int
6446 main ()
6447 {
6448 XDGAQueryExtension ();
6449   ;
6450   return 0;
6451 }
6452 _ACEOF
6453 rm -f conftest.$ac_objext conftest$ac_exeext
6454 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6455   (eval $ac_link) 2>&5
6456   ac_status=$?
6457   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6458   (exit $ac_status); } &&
6459          { ac_try='test -s conftest$ac_exeext'
6460   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6461   (eval $ac_try) 2>&5
6462   ac_status=$?
6463   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6464   (exit $ac_status); }; }; then
6465   ac_cv_lib_Xxf86dga_XDGAQueryExtension=yes
6466 else
6467   echo "$as_me: failed program was:" >&5
6468 cat conftest.$ac_ext >&5
6469 ac_cv_lib_Xxf86dga_XDGAQueryExtension=no
6470 fi
6471 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6472 LIBS=$ac_check_lib_save_LIBS
6473 fi
6474 echo "$as_me:$LINENO: result: $ac_cv_lib_Xxf86dga_XDGAQueryExtension" >&5
6475 echo "${ECHO_T}$ac_cv_lib_Xxf86dga_XDGAQueryExtension" >&6
6476 if test $ac_cv_lib_Xxf86dga_XDGAQueryExtension = yes; then
6477
6478 cat >>confdefs.h <<\_ACEOF
6479 #define HAVE_LIBXXF86DGA2 1
6480 _ACEOF
6481
6482                   X_PRE_LIBS="$X_PRE_LIBS -lXxf86dga"
6483
6484 else
6485                                        echo "$as_me:$LINENO: checking for XF86DGAQueryExtension in -lXxf86dga" >&5
6486 echo $ECHO_N "checking for XF86DGAQueryExtension in -lXxf86dga... $ECHO_C" >&6
6487 if test "${ac_cv_lib_Xxf86dga_XF86DGAQueryExtension+set}" = set; then
6488   echo $ECHO_N "(cached) $ECHO_C" >&6
6489 else
6490   ac_check_lib_save_LIBS=$LIBS
6491 LIBS="-lXxf86dga $X_LIBS -lXext -lX11 $X_EXTRA_LIBS
6492                    $LIBS"
6493 cat >conftest.$ac_ext <<_ACEOF
6494 #line $LINENO "configure"
6495 #include "confdefs.h"
6496
6497 /* Override any gcc2 internal prototype to avoid an error.  */
6498 #ifdef __cplusplus
6499 extern "C"
6500 #endif
6501 /* We use char because int might match the return type of a gcc2
6502    builtin and then its argument prototype would still apply.  */
6503 char XF86DGAQueryExtension ();
6504 int
6505 main ()
6506 {
6507 XF86DGAQueryExtension ();
6508   ;
6509   return 0;
6510 }
6511 _ACEOF
6512 rm -f conftest.$ac_objext conftest$ac_exeext
6513 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6514   (eval $ac_link) 2>&5
6515   ac_status=$?
6516   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6517   (exit $ac_status); } &&
6518          { ac_try='test -s conftest$ac_exeext'
6519   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6520   (eval $ac_try) 2>&5
6521   ac_status=$?
6522   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6523   (exit $ac_status); }; }; then
6524   ac_cv_lib_Xxf86dga_XF86DGAQueryExtension=yes
6525 else
6526   echo "$as_me: failed program was:" >&5
6527 cat conftest.$ac_ext >&5
6528 ac_cv_lib_Xxf86dga_XF86DGAQueryExtension=no
6529 fi
6530 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6531 LIBS=$ac_check_lib_save_LIBS
6532 fi
6533 echo "$as_me:$LINENO: result: $ac_cv_lib_Xxf86dga_XF86DGAQueryExtension" >&5
6534 echo "${ECHO_T}$ac_cv_lib_Xxf86dga_XF86DGAQueryExtension" >&6
6535 if test $ac_cv_lib_Xxf86dga_XF86DGAQueryExtension = yes; then
6536
6537 cat >>confdefs.h <<\_ACEOF
6538 #define HAVE_LIBXXF86DGA 1
6539 _ACEOF
6540
6541                       X_PRE_LIBS="$X_PRE_LIBS -lXxf86dga"
6542
6543 fi
6544
6545
6546 fi
6547
6548
6549 else
6550   { echo "$as_me:$LINENO: WARNING: DGA extension not found, Wine will be built without it" >&5
6551 echo "$as_me: WARNING: DGA extension not found, Wine will be built without it" >&2;}
6552 fi
6553
6554 done
6555
6556
6557
6558 for ac_header in X11/extensions/xf86vmode.h
6559 do
6560 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6561 echo "$as_me:$LINENO: checking for $ac_header" >&5
6562 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6563 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6564   echo $ECHO_N "(cached) $ECHO_C" >&6
6565 else
6566   cat >conftest.$ac_ext <<_ACEOF
6567 #line $LINENO "configure"
6568 #include "confdefs.h"
6569 #include <X11/Xlib.h>
6570
6571 #include <$ac_header>
6572 _ACEOF
6573 rm -f conftest.$ac_objext
6574 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6575   (eval $ac_compile) 2>&5
6576   ac_status=$?
6577   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6578   (exit $ac_status); } &&
6579          { ac_try='test -s conftest.$ac_objext'
6580   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6581   (eval $ac_try) 2>&5
6582   ac_status=$?
6583   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6584   (exit $ac_status); }; }; then
6585   eval "$as_ac_Header=yes"
6586 else
6587   echo "$as_me: failed program was:" >&5
6588 cat conftest.$ac_ext >&5
6589 eval "$as_ac_Header=no"
6590 fi
6591 rm -f conftest.$ac_objext conftest.$ac_ext
6592 fi
6593 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6594 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6595 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6596   cat >>confdefs.h <<_ACEOF
6597 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6598 _ACEOF
6599                   echo "$as_me:$LINENO: checking for XF86VidModeQueryExtension in -lXxf86vm" >&5
6600 echo $ECHO_N "checking for XF86VidModeQueryExtension in -lXxf86vm... $ECHO_C" >&6
6601 if test "${ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension+set}" = set; then
6602   echo $ECHO_N "(cached) $ECHO_C" >&6
6603 else
6604   ac_check_lib_save_LIBS=$LIBS
6605 LIBS="-lXxf86vm $X_LIBS -lXext -lX11 $X_EXTRA_LIBS
6606                  $LIBS"
6607 cat >conftest.$ac_ext <<_ACEOF
6608 #line $LINENO "configure"
6609 #include "confdefs.h"
6610
6611 /* Override any gcc2 internal prototype to avoid an error.  */
6612 #ifdef __cplusplus
6613 extern "C"
6614 #endif
6615 /* We use char because int might match the return type of a gcc2
6616    builtin and then its argument prototype would still apply.  */
6617 char XF86VidModeQueryExtension ();
6618 int
6619 main ()
6620 {
6621 XF86VidModeQueryExtension ();
6622   ;
6623   return 0;
6624 }
6625 _ACEOF
6626 rm -f conftest.$ac_objext conftest$ac_exeext
6627 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6628   (eval $ac_link) 2>&5
6629   ac_status=$?
6630   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6631   (exit $ac_status); } &&
6632          { ac_try='test -s conftest$ac_exeext'
6633   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6634   (eval $ac_try) 2>&5
6635   ac_status=$?
6636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6637   (exit $ac_status); }; }; then
6638   ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=yes
6639 else
6640   echo "$as_me: failed program was:" >&5
6641 cat conftest.$ac_ext >&5
6642 ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=no
6643 fi
6644 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6645 LIBS=$ac_check_lib_save_LIBS
6646 fi
6647 echo "$as_me:$LINENO: result: $ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&5
6648 echo "${ECHO_T}$ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&6
6649 if test $ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension = yes; then
6650
6651 cat >>confdefs.h <<\_ACEOF
6652 #define HAVE_LIBXXF86VM 1
6653 _ACEOF
6654
6655                      X_PRE_LIBS="$X_PRE_LIBS -lXxf86vm"
6656
6657 fi
6658
6659
6660 else
6661   { echo "$as_me:$LINENO: WARNING: XFree86 VMODE extension not found, Wine will be built without it" >&5
6662 echo "$as_me: WARNING: XFree86 VMODE extension not found, Wine will be built without it" >&2;}
6663 fi
6664
6665 done
6666
6667
6668
6669 for ac_header in X11/extensions/Xvlib.h
6670 do
6671 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6672 echo "$as_me:$LINENO: checking for $ac_header" >&5
6673 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6674 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6675   echo $ECHO_N "(cached) $ECHO_C" >&6
6676 else
6677   cat >conftest.$ac_ext <<_ACEOF
6678 #line $LINENO "configure"
6679 #include "confdefs.h"
6680 #include <X11/Xlib.h>
6681
6682 #include <$ac_header>
6683 _ACEOF
6684 rm -f conftest.$ac_objext
6685 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6686   (eval $ac_compile) 2>&5
6687   ac_status=$?
6688   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6689   (exit $ac_status); } &&
6690          { ac_try='test -s conftest.$ac_objext'
6691   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6692   (eval $ac_try) 2>&5
6693   ac_status=$?
6694   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6695   (exit $ac_status); }; }; then
6696   eval "$as_ac_Header=yes"
6697 else
6698   echo "$as_me: failed program was:" >&5
6699 cat conftest.$ac_ext >&5
6700 eval "$as_ac_Header=no"
6701 fi
6702 rm -f conftest.$ac_objext conftest.$ac_ext
6703 fi
6704 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6705 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6706 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6707   cat >>confdefs.h <<_ACEOF
6708 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6709 _ACEOF
6710                   echo "$as_me:$LINENO: checking for XvShmCreateImage in -lXv" >&5
6711 echo $ECHO_N "checking for XvShmCreateImage in -lXv... $ECHO_C" >&6
6712 if test "${ac_cv_lib_Xv_XvShmCreateImage+set}" = set; then
6713   echo $ECHO_N "(cached) $ECHO_C" >&6
6714 else
6715   ac_check_lib_save_LIBS=$LIBS
6716 LIBS="-lXv $X_LIBS -lXext -lX11 $X_EXTRA_LIBS
6717                  $LIBS"
6718 cat >conftest.$ac_ext <<_ACEOF
6719 #line $LINENO "configure"
6720 #include "confdefs.h"
6721
6722 /* Override any gcc2 internal prototype to avoid an error.  */
6723 #ifdef __cplusplus
6724 extern "C"
6725 #endif
6726 /* We use char because int might match the return type of a gcc2
6727    builtin and then its argument prototype would still apply.  */
6728 char XvShmCreateImage ();
6729 int
6730 main ()
6731 {
6732 XvShmCreateImage ();
6733   ;
6734   return 0;
6735 }
6736 _ACEOF
6737 rm -f conftest.$ac_objext conftest$ac_exeext
6738 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6739   (eval $ac_link) 2>&5
6740   ac_status=$?
6741   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6742   (exit $ac_status); } &&
6743          { ac_try='test -s conftest$ac_exeext'
6744   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6745   (eval $ac_try) 2>&5
6746   ac_status=$?
6747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6748   (exit $ac_status); }; }; then
6749   ac_cv_lib_Xv_XvShmCreateImage=yes
6750 else
6751   echo "$as_me: failed program was:" >&5
6752 cat conftest.$ac_ext >&5
6753 ac_cv_lib_Xv_XvShmCreateImage=no
6754 fi
6755 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6756 LIBS=$ac_check_lib_save_LIBS
6757 fi
6758 echo "$as_me:$LINENO: result: $ac_cv_lib_Xv_XvShmCreateImage" >&5
6759 echo "${ECHO_T}$ac_cv_lib_Xv_XvShmCreateImage" >&6
6760 if test $ac_cv_lib_Xv_XvShmCreateImage = yes; then
6761
6762 cat >>confdefs.h <<\_ACEOF
6763 #define HAVE_XVIDEO 1
6764 _ACEOF
6765
6766                      X_PRE_LIBS="$X_PRE_LIBS -lXv"
6767
6768 fi
6769
6770
6771 else
6772   { echo "$as_me:$LINENO: WARNING: XVideo extension not found, Wine will be built without it" >&5
6773 echo "$as_me: WARNING: XVideo extension not found, Wine will be built without it" >&2;}
6774 fi
6775
6776 done
6777
6778
6779
6780 for ac_header in X11/extensions/Xrender.h
6781 do
6782 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6783 echo "$as_me:$LINENO: checking for $ac_header" >&5
6784 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6785 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6786   echo $ECHO_N "(cached) $ECHO_C" >&6
6787 else
6788   cat >conftest.$ac_ext <<_ACEOF
6789 #line $LINENO "configure"
6790 #include "confdefs.h"
6791 #include <X11/Xlib.h>
6792
6793 #include <$ac_header>
6794 _ACEOF
6795 rm -f conftest.$ac_objext
6796 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6797   (eval $ac_compile) 2>&5
6798   ac_status=$?
6799   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6800   (exit $ac_status); } &&
6801          { ac_try='test -s conftest.$ac_objext'
6802   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6803   (eval $ac_try) 2>&5
6804   ac_status=$?
6805   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6806   (exit $ac_status); }; }; then
6807   eval "$as_ac_Header=yes"
6808 else
6809   echo "$as_me: failed program was:" >&5
6810 cat conftest.$ac_ext >&5
6811 eval "$as_ac_Header=no"
6812 fi
6813 rm -f conftest.$ac_objext conftest.$ac_ext
6814 fi
6815 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6816 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6817 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6818   cat >>confdefs.h <<_ACEOF
6819 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6820 _ACEOF
6821
6822 fi
6823
6824 done
6825
6826
6827
6828 fi
6829
6830 done
6831
6832         if test "x$with_opengl" != "xno"
6833     then
6834         if test -f /usr/X11R6/lib/libGL.a -a ! -f /usr/X11R6/lib/libGL.so
6835         then
6836             { { echo "$as_me:$LINENO: error: /usr/X11R6/lib/libGL.a is present on your system.
6837 This prevents linking to OpenGL. Delete the file and restart configure." >&5
6838 echo "$as_me: error: /usr/X11R6/lib/libGL.a is present on your system.
6839 This prevents linking to OpenGL. Delete the file and restart configure." >&2;}
6840    { (exit 1); exit 1; }; }
6841         fi
6842
6843
6844
6845 for ac_header in GL/gl.h GL/glx.h
6846 do
6847 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6848 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6849   echo "$as_me:$LINENO: checking for $ac_header" >&5
6850 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6851 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6852   echo $ECHO_N "(cached) $ECHO_C" >&6
6853 fi
6854 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6855 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6856 else
6857   # Is the header compilable?
6858 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6859 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6860 cat >conftest.$ac_ext <<_ACEOF
6861 #line $LINENO "configure"
6862 #include "confdefs.h"
6863 $ac_includes_default
6864 #include <$ac_header>
6865 _ACEOF
6866 rm -f conftest.$ac_objext
6867 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6868   (eval $ac_compile) 2>&5
6869   ac_status=$?
6870   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6871   (exit $ac_status); } &&
6872          { ac_try='test -s conftest.$ac_objext'
6873   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6874   (eval $ac_try) 2>&5
6875   ac_status=$?
6876   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6877   (exit $ac_status); }; }; then
6878   ac_header_compiler=yes
6879 else
6880   echo "$as_me: failed program was:" >&5
6881 cat conftest.$ac_ext >&5
6882 ac_header_compiler=no
6883 fi
6884 rm -f conftest.$ac_objext conftest.$ac_ext
6885 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6886 echo "${ECHO_T}$ac_header_compiler" >&6
6887
6888 # Is the header present?
6889 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6890 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6891 cat >conftest.$ac_ext <<_ACEOF
6892 #line $LINENO "configure"
6893 #include "confdefs.h"
6894 #include <$ac_header>
6895 _ACEOF
6896 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6897   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6898   ac_status=$?
6899   grep -v '^ *+' conftest.er1 >conftest.err
6900   rm -f conftest.er1
6901   cat conftest.err >&5
6902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6903   (exit $ac_status); } >/dev/null; then
6904   if test -s conftest.err; then
6905     ac_cpp_err=$ac_c_preproc_warn_flag
6906   else
6907     ac_cpp_err=
6908   fi
6909 else
6910   ac_cpp_err=yes
6911 fi
6912 if test -z "$ac_cpp_err"; then
6913   ac_header_preproc=yes
6914 else
6915   echo "$as_me: failed program was:" >&5
6916   cat conftest.$ac_ext >&5
6917   ac_header_preproc=no
6918 fi
6919 rm -f conftest.err conftest.$ac_ext
6920 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6921 echo "${ECHO_T}$ac_header_preproc" >&6
6922
6923 # So?  What about this header?
6924 case $ac_header_compiler:$ac_header_preproc in
6925   yes:no )
6926     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6927 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6928     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6929 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
6930   no:yes )
6931     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6932 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6933     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6934 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6935     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6936 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
6937 esac
6938 echo "$as_me:$LINENO: checking for $ac_header" >&5
6939 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6940 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6941   echo $ECHO_N "(cached) $ECHO_C" >&6
6942 else
6943   eval "$as_ac_Header=$ac_header_preproc"
6944 fi
6945 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6946 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6947
6948 fi
6949 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6950   cat >>confdefs.h <<_ACEOF
6951 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6952 _ACEOF
6953
6954 fi
6955
6956 done
6957
6958         if test "$ac_cv_header_GL_gl_h" = "yes" -a "$ac_cv_header_GL_glx_h" = "yes"
6959         then
6960
6961 for ac_header in GL/glext.h
6962 do
6963 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6964 echo "$as_me:$LINENO: checking for $ac_header" >&5
6965 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6966 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6967   echo $ECHO_N "(cached) $ECHO_C" >&6
6968 else
6969   cat >conftest.$ac_ext <<_ACEOF
6970 #line $LINENO "configure"
6971 #include "confdefs.h"
6972 #include <GL/glx.h>
6973
6974 #include <$ac_header>
6975 _ACEOF
6976 rm -f conftest.$ac_objext
6977 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6978   (eval $ac_compile) 2>&5
6979   ac_status=$?
6980   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6981   (exit $ac_status); } &&
6982          { ac_try='test -s conftest.$ac_objext'
6983   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6984   (eval $ac_try) 2>&5
6985   ac_status=$?
6986   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6987   (exit $ac_status); }; }; then
6988   eval "$as_ac_Header=yes"
6989 else
6990   echo "$as_me: failed program was:" >&5
6991 cat conftest.$ac_ext >&5
6992 eval "$as_ac_Header=no"
6993 fi
6994 rm -f conftest.$ac_objext conftest.$ac_ext
6995 fi
6996 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6997 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6998 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6999   cat >>confdefs.h <<_ACEOF
7000 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7001 _ACEOF
7002
7003 fi
7004
7005 done
7006
7007                     echo "$as_me:$LINENO: checking for up-to-date OpenGL version" >&5
7008 echo $ECHO_N "checking for up-to-date OpenGL version... $ECHO_C" >&6
7009 if test "${wine_cv_opengl_version_OK+set}" = set; then
7010   echo $ECHO_N "(cached) $ECHO_C" >&6
7011 else
7012   cat >conftest.$ac_ext <<_ACEOF
7013 #line $LINENO "configure"
7014 #include "confdefs.h"
7015 #include <GL/gl.h>
7016 int
7017 main ()
7018 {
7019 GLenum test = GL_UNSIGNED_SHORT_5_6_5;
7020   ;
7021   return 0;
7022 }
7023 _ACEOF
7024 rm -f conftest.$ac_objext
7025 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7026   (eval $ac_compile) 2>&5
7027   ac_status=$?
7028   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7029   (exit $ac_status); } &&
7030          { ac_try='test -s conftest.$ac_objext'
7031   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7032   (eval $ac_try) 2>&5
7033   ac_status=$?
7034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7035   (exit $ac_status); }; }; then
7036   wine_cv_opengl_version_OK="yes"
7037 else
7038   echo "$as_me: failed program was:" >&5
7039 cat conftest.$ac_ext >&5
7040 wine_cv_opengl_version_OK="no"
7041
7042 fi
7043 rm -f conftest.$ac_objext conftest.$ac_ext
7044
7045 fi
7046 echo "$as_me:$LINENO: result: $wine_cv_opengl_version_OK" >&5
7047 echo "${ECHO_T}$wine_cv_opengl_version_OK" >&6
7048
7049             if test "$wine_cv_opengl_version_OK" = "yes"
7050             then
7051                                 echo "$as_me:$LINENO: checking for glXCreateContext in -lGL" >&5
7052 echo $ECHO_N "checking for glXCreateContext in -lGL... $ECHO_C" >&6
7053 if test "${ac_cv_lib_GL_glXCreateContext+set}" = set; then
7054   echo $ECHO_N "(cached) $ECHO_C" >&6
7055 else
7056   ac_check_lib_save_LIBS=$LIBS
7057 LIBS="-lGL $X_LIBS -lXext -lX11 -lm $X_EXTRA_LIBS $LIBS"
7058 cat >conftest.$ac_ext <<_ACEOF
7059 #line $LINENO "configure"
7060 #include "confdefs.h"
7061
7062 /* Override any gcc2 internal prototype to avoid an error.  */
7063 #ifdef __cplusplus
7064 extern "C"
7065 #endif
7066 /* We use char because int might match the return type of a gcc2
7067    builtin and then its argument prototype would still apply.  */
7068 char glXCreateContext ();
7069 int
7070 main ()
7071 {
7072 glXCreateContext ();
7073   ;
7074   return 0;
7075 }
7076 _ACEOF
7077 rm -f conftest.$ac_objext conftest$ac_exeext
7078 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7079   (eval $ac_link) 2>&5
7080   ac_status=$?
7081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7082   (exit $ac_status); } &&
7083          { ac_try='test -s conftest$ac_exeext'
7084   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7085   (eval $ac_try) 2>&5
7086   ac_status=$?
7087   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7088   (exit $ac_status); }; }; then
7089   ac_cv_lib_GL_glXCreateContext=yes
7090 else
7091   echo "$as_me: failed program was:" >&5
7092 cat conftest.$ac_ext >&5
7093 ac_cv_lib_GL_glXCreateContext=no
7094 fi
7095 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7096 LIBS=$ac_check_lib_save_LIBS
7097 fi
7098 echo "$as_me:$LINENO: result: $ac_cv_lib_GL_glXCreateContext" >&5
7099 echo "${ECHO_T}$ac_cv_lib_GL_glXCreateContext" >&6
7100 if test $ac_cv_lib_GL_glXCreateContext = yes; then
7101   OPENGL_LIBS="-lGL"
7102
7103 fi
7104
7105
7106                 if test "$ac_cv_lib_GL_glXCreateContext" = "yes"
7107                 then
7108                         OPENGLFILES='$(OPENGLFILES)'
7109
7110 cat >>confdefs.h <<\_ACEOF
7111 #define HAVE_OPENGL 1
7112 _ACEOF
7113
7114
7115                         echo "$as_me:$LINENO: checking for glXGetProcAddressARB in -lGL" >&5
7116 echo $ECHO_N "checking for glXGetProcAddressARB in -lGL... $ECHO_C" >&6
7117 if test "${ac_cv_lib_GL_glXGetProcAddressARB+set}" = set; then
7118   echo $ECHO_N "(cached) $ECHO_C" >&6
7119 else
7120   ac_check_lib_save_LIBS=$LIBS
7121 LIBS="-lGL $X_LIBS -lXext -lX11 -lm $X_EXTRA_LIBS $LIBS"
7122 cat >conftest.$ac_ext <<_ACEOF
7123 #line $LINENO "configure"
7124 #include "confdefs.h"
7125
7126 /* Override any gcc2 internal prototype to avoid an error.  */
7127 #ifdef __cplusplus
7128 extern "C"
7129 #endif
7130 /* We use char because int might match the return type of a gcc2
7131    builtin and then its argument prototype would still apply.  */
7132 char glXGetProcAddressARB ();
7133 int
7134 main ()
7135 {
7136 glXGetProcAddressARB ();
7137   ;
7138   return 0;
7139 }
7140 _ACEOF
7141 rm -f conftest.$ac_objext conftest$ac_exeext
7142 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7143   (eval $ac_link) 2>&5
7144   ac_status=$?
7145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7146   (exit $ac_status); } &&
7147          { ac_try='test -s conftest$ac_exeext'
7148   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7149   (eval $ac_try) 2>&5
7150   ac_status=$?
7151   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7152   (exit $ac_status); }; }; then
7153   ac_cv_lib_GL_glXGetProcAddressARB=yes
7154 else
7155   echo "$as_me: failed program was:" >&5
7156 cat conftest.$ac_ext >&5
7157 ac_cv_lib_GL_glXGetProcAddressARB=no
7158 fi
7159 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7160 LIBS=$ac_check_lib_save_LIBS
7161 fi
7162 echo "$as_me:$LINENO: result: $ac_cv_lib_GL_glXGetProcAddressARB" >&5
7163 echo "${ECHO_T}$ac_cv_lib_GL_glXGetProcAddressARB" >&6
7164 if test $ac_cv_lib_GL_glXGetProcAddressARB = yes; then
7165
7166 cat >>confdefs.h <<\_ACEOF
7167 #define HAVE_GLX_GETPROCADDRESS 1
7168 _ACEOF
7169
7170 fi
7171
7172
7173                         if test "$ac_cv_lib_GL_glXGetProcAddressARB" = "yes"
7174                         then
7175                                echo "$as_me:$LINENO: checking for OpenGL extension functions prototypes" >&5
7176 echo $ECHO_N "checking for OpenGL extension functions prototypes... $ECHO_C" >&6
7177 if test "${wine_cv_extension_prototypes+set}" = set; then
7178   echo $ECHO_N "(cached) $ECHO_C" >&6
7179 else
7180   cat >conftest.$ac_ext <<_ACEOF
7181 #line $LINENO "configure"
7182 #include "confdefs.h"
7183 #include <GL/gl.h>
7184                                                   #ifdef HAVE_GL_GLEXT_H
7185                                                   # include <GL/glext.h>
7186                                                   #endif
7187
7188 int
7189 main ()
7190 {
7191 PFNGLCOLORTABLEEXTPROC test_proc;
7192   ;
7193   return 0;
7194 }
7195 _ACEOF
7196 rm -f conftest.$ac_objext
7197 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7198   (eval $ac_compile) 2>&5
7199   ac_status=$?
7200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7201   (exit $ac_status); } &&
7202          { ac_try='test -s conftest.$ac_objext'
7203   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7204   (eval $ac_try) 2>&5
7205   ac_status=$?
7206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7207   (exit $ac_status); }; }; then
7208   wine_cv_extension_prototypes="yes"
7209 else
7210   echo "$as_me: failed program was:" >&5
7211 cat conftest.$ac_ext >&5
7212 wine_cv_extension_prototypes="no"
7213
7214 fi
7215 rm -f conftest.$ac_objext conftest.$ac_ext
7216
7217 fi
7218 echo "$as_me:$LINENO: result: $wine_cv_extension_prototypes" >&5
7219 echo "${ECHO_T}$wine_cv_extension_prototypes" >&6
7220                                 if test "$wine_cv_extension_prototypes" = "yes"
7221                                 then
7222
7223 cat >>confdefs.h <<\_ACEOF
7224 #define HAVE_GLEXT_PROTOTYPES 1
7225 _ACEOF
7226
7227                                 fi
7228                         fi
7229
7230                 fi
7231                                 echo "$as_me:$LINENO: checking for gluLookAt in -lGLU" >&5
7232 echo $ECHO_N "checking for gluLookAt in -lGLU... $ECHO_C" >&6
7233 if test "${ac_cv_lib_GLU_gluLookAt+set}" = set; then
7234   echo $ECHO_N "(cached) $ECHO_C" >&6
7235 else
7236   ac_check_lib_save_LIBS=$LIBS
7237 LIBS="-lGLU $OPENGL_LIBS $X_LIBS $X_PRE_LIBS -lXext -lX11 -lm $X_EXTRA_LIBS
7238                  $LIBS"
7239 cat >conftest.$ac_ext <<_ACEOF
7240 #line $LINENO "configure"
7241 #include "confdefs.h"
7242
7243 /* Override any gcc2 internal prototype to avoid an error.  */
7244 #ifdef __cplusplus
7245 extern "C"
7246 #endif
7247 /* We use char because int might match the return type of a gcc2
7248    builtin and then its argument prototype would still apply.  */
7249 char gluLookAt ();
7250 int
7251 main ()
7252 {
7253 gluLookAt ();
7254   ;
7255   return 0;
7256 }
7257 _ACEOF
7258 rm -f conftest.$ac_objext conftest$ac_exeext
7259 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7260   (eval $ac_link) 2>&5
7261   ac_status=$?
7262   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7263   (exit $ac_status); } &&
7264          { ac_try='test -s conftest$ac_exeext'
7265   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7266   (eval $ac_try) 2>&5
7267   ac_status=$?
7268   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7269   (exit $ac_status); }; }; then
7270   ac_cv_lib_GLU_gluLookAt=yes
7271 else
7272   echo "$as_me: failed program was:" >&5
7273 cat conftest.$ac_ext >&5
7274 ac_cv_lib_GLU_gluLookAt=no
7275 fi
7276 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7277 LIBS=$ac_check_lib_save_LIBS
7278 fi
7279 echo "$as_me:$LINENO: result: $ac_cv_lib_GLU_gluLookAt" >&5
7280 echo "${ECHO_T}$ac_cv_lib_GLU_gluLookAt" >&6
7281 if test $ac_cv_lib_GLU_gluLookAt = yes; then
7282   OPENGL_LIBS="$OPENGL_LIBS -lGLU"
7283                              GLU32FILES='$(GLU32FILES)'
7284
7285 fi
7286
7287              fi
7288          fi
7289     fi
7290
7291         NASLIBS=""
7292
7293
7294 for ac_header in audio/audiolib.h
7295 do
7296 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7297 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7298   echo "$as_me:$LINENO: checking for $ac_header" >&5
7299 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7300 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7301   echo $ECHO_N "(cached) $ECHO_C" >&6
7302 fi
7303 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7304 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7305 else
7306   # Is the header compilable?
7307 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7308 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7309 cat >conftest.$ac_ext <<_ACEOF
7310 #line $LINENO "configure"
7311 #include "confdefs.h"
7312 $ac_includes_default
7313 #include <$ac_header>
7314 _ACEOF
7315 rm -f conftest.$ac_objext
7316 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7317   (eval $ac_compile) 2>&5
7318   ac_status=$?
7319   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7320   (exit $ac_status); } &&
7321          { ac_try='test -s conftest.$ac_objext'
7322   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7323   (eval $ac_try) 2>&5
7324   ac_status=$?
7325   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7326   (exit $ac_status); }; }; then
7327   ac_header_compiler=yes
7328 else
7329   echo "$as_me: failed program was:" >&5
7330 cat conftest.$ac_ext >&5
7331 ac_header_compiler=no
7332 fi
7333 rm -f conftest.$ac_objext conftest.$ac_ext
7334 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7335 echo "${ECHO_T}$ac_header_compiler" >&6
7336
7337 # Is the header present?
7338 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7339 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7340 cat >conftest.$ac_ext <<_ACEOF
7341 #line $LINENO "configure"
7342 #include "confdefs.h"
7343 #include <$ac_header>
7344 _ACEOF
7345 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7346   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7347   ac_status=$?
7348   grep -v '^ *+' conftest.er1 >conftest.err
7349   rm -f conftest.er1
7350   cat conftest.err >&5
7351   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7352   (exit $ac_status); } >/dev/null; then
7353   if test -s conftest.err; then
7354     ac_cpp_err=$ac_c_preproc_warn_flag
7355   else
7356     ac_cpp_err=
7357   fi
7358 else
7359   ac_cpp_err=yes
7360 fi
7361 if test -z "$ac_cpp_err"; then
7362   ac_header_preproc=yes
7363 else
7364   echo "$as_me: failed program was:" >&5
7365   cat conftest.$ac_ext >&5
7366   ac_header_preproc=no
7367 fi
7368 rm -f conftest.err conftest.$ac_ext
7369 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7370 echo "${ECHO_T}$ac_header_preproc" >&6
7371
7372 # So?  What about this header?
7373 case $ac_header_compiler:$ac_header_preproc in
7374   yes:no )
7375     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7376 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7377     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7378 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7379   no:yes )
7380     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7381 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7382     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7383 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7384     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7385 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7386 esac
7387 echo "$as_me:$LINENO: checking for $ac_header" >&5
7388 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7389 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7390   echo $ECHO_N "(cached) $ECHO_C" >&6
7391 else
7392   eval "$as_ac_Header=$ac_header_preproc"
7393 fi
7394 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7395 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7396
7397 fi
7398 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7399   cat >>confdefs.h <<_ACEOF
7400 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7401 _ACEOF
7402
7403 for ac_header in audio/soundlib.h
7404 do
7405 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7406 echo "$as_me:$LINENO: checking for $ac_header" >&5
7407 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7408 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7409   echo $ECHO_N "(cached) $ECHO_C" >&6
7410 else
7411   cat >conftest.$ac_ext <<_ACEOF
7412 #line $LINENO "configure"
7413 #include "confdefs.h"
7414 #include <audio/audiolib.h>
7415
7416 #include <$ac_header>
7417 _ACEOF
7418 rm -f conftest.$ac_objext
7419 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7420   (eval $ac_compile) 2>&5
7421   ac_status=$?
7422   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7423   (exit $ac_status); } &&
7424          { ac_try='test -s conftest.$ac_objext'
7425   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7426   (eval $ac_try) 2>&5
7427   ac_status=$?
7428   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7429   (exit $ac_status); }; }; then
7430   eval "$as_ac_Header=yes"
7431 else
7432   echo "$as_me: failed program was:" >&5
7433 cat conftest.$ac_ext >&5
7434 eval "$as_ac_Header=no"
7435 fi
7436 rm -f conftest.$ac_objext conftest.$ac_ext
7437 fi
7438 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7439 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7440 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7441   cat >>confdefs.h <<_ACEOF
7442 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7443 _ACEOF
7444
7445 fi
7446
7447 done
7448
7449           echo "$as_me:$LINENO: checking for AuCreateFlow in -laudio" >&5
7450 echo $ECHO_N "checking for AuCreateFlow in -laudio... $ECHO_C" >&6
7451 if test "${ac_cv_lib_audio_AuCreateFlow+set}" = set; then
7452   echo $ECHO_N "(cached) $ECHO_C" >&6
7453 else
7454   ac_check_lib_save_LIBS=$LIBS
7455 LIBS="-laudio -lXt $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
7456 cat >conftest.$ac_ext <<_ACEOF
7457 #line $LINENO "configure"
7458 #include "confdefs.h"
7459
7460 /* Override any gcc2 internal prototype to avoid an error.  */
7461 #ifdef __cplusplus
7462 extern "C"
7463 #endif
7464 /* We use char because int might match the return type of a gcc2
7465    builtin and then its argument prototype would still apply.  */
7466 char AuCreateFlow ();
7467 int
7468 main ()
7469 {
7470 AuCreateFlow ();
7471   ;
7472   return 0;
7473 }
7474 _ACEOF
7475 rm -f conftest.$ac_objext conftest$ac_exeext
7476 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7477   (eval $ac_link) 2>&5
7478   ac_status=$?
7479   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7480   (exit $ac_status); } &&
7481          { ac_try='test -s conftest$ac_exeext'
7482   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7483   (eval $ac_try) 2>&5
7484   ac_status=$?
7485   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7486   (exit $ac_status); }; }; then
7487   ac_cv_lib_audio_AuCreateFlow=yes
7488 else
7489   echo "$as_me: failed program was:" >&5
7490 cat conftest.$ac_ext >&5
7491 ac_cv_lib_audio_AuCreateFlow=no
7492 fi
7493 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7494 LIBS=$ac_check_lib_save_LIBS
7495 fi
7496 echo "$as_me:$LINENO: result: $ac_cv_lib_audio_AuCreateFlow" >&5
7497 echo "${ECHO_T}$ac_cv_lib_audio_AuCreateFlow" >&6
7498 if test $ac_cv_lib_audio_AuCreateFlow = yes; then
7499
7500 cat >>confdefs.h <<\_ACEOF
7501 #define HAVE_NAS 1
7502 _ACEOF
7503
7504                         NASLIBS="-laudio -lXt $X_LIBS -lXext -lX11 $X_EXTRA_LIBS"
7505 fi
7506
7507 fi
7508
7509 done
7510
7511
7512     CPPFLAGS="$ac_save_CPPFLAGS"
7513     XFILES='$(XFILES)'
7514 else
7515     XLIB=""
7516     X_CFLAGS=""
7517     X_LIBS=""
7518 fi
7519
7520 CURSESLIBS=""
7521 if test "x$with_curses" != "xno"
7522 then
7523
7524 for ac_header in ncurses.h
7525 do
7526 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7527 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7528   echo "$as_me:$LINENO: checking for $ac_header" >&5
7529 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7530 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7531   echo $ECHO_N "(cached) $ECHO_C" >&6
7532 fi
7533 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7534 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7535 else
7536   # Is the header compilable?
7537 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7538 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7539 cat >conftest.$ac_ext <<_ACEOF
7540 #line $LINENO "configure"
7541 #include "confdefs.h"
7542 $ac_includes_default
7543 #include <$ac_header>
7544 _ACEOF
7545 rm -f conftest.$ac_objext
7546 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7547   (eval $ac_compile) 2>&5
7548   ac_status=$?
7549   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7550   (exit $ac_status); } &&
7551          { ac_try='test -s conftest.$ac_objext'
7552   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7553   (eval $ac_try) 2>&5
7554   ac_status=$?
7555   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7556   (exit $ac_status); }; }; then
7557   ac_header_compiler=yes
7558 else
7559   echo "$as_me: failed program was:" >&5
7560 cat conftest.$ac_ext >&5
7561 ac_header_compiler=no
7562 fi
7563 rm -f conftest.$ac_objext conftest.$ac_ext
7564 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7565 echo "${ECHO_T}$ac_header_compiler" >&6
7566
7567 # Is the header present?
7568 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7569 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7570 cat >conftest.$ac_ext <<_ACEOF
7571 #line $LINENO "configure"
7572 #include "confdefs.h"
7573 #include <$ac_header>
7574 _ACEOF
7575 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7576   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7577   ac_status=$?
7578   grep -v '^ *+' conftest.er1 >conftest.err
7579   rm -f conftest.er1
7580   cat conftest.err >&5
7581   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7582   (exit $ac_status); } >/dev/null; then
7583   if test -s conftest.err; then
7584     ac_cpp_err=$ac_c_preproc_warn_flag
7585   else
7586     ac_cpp_err=
7587   fi
7588 else
7589   ac_cpp_err=yes
7590 fi
7591 if test -z "$ac_cpp_err"; then
7592   ac_header_preproc=yes
7593 else
7594   echo "$as_me: failed program was:" >&5
7595   cat conftest.$ac_ext >&5
7596   ac_header_preproc=no
7597 fi
7598 rm -f conftest.err conftest.$ac_ext
7599 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7600 echo "${ECHO_T}$ac_header_preproc" >&6
7601
7602 # So?  What about this header?
7603 case $ac_header_compiler:$ac_header_preproc in
7604   yes:no )
7605     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7606 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7607     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7608 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7609   no:yes )
7610     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7611 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7612     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7613 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7614     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7615 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7616 esac
7617 echo "$as_me:$LINENO: checking for $ac_header" >&5
7618 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7619 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7620   echo $ECHO_N "(cached) $ECHO_C" >&6
7621 else
7622   eval "$as_ac_Header=$ac_header_preproc"
7623 fi
7624 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7625 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7626
7627 fi
7628 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7629   cat >>confdefs.h <<_ACEOF
7630 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7631 _ACEOF
7632  echo "$as_me:$LINENO: checking for waddch in -lncurses" >&5
7633 echo $ECHO_N "checking for waddch in -lncurses... $ECHO_C" >&6
7634 if test "${ac_cv_lib_ncurses_waddch+set}" = set; then
7635   echo $ECHO_N "(cached) $ECHO_C" >&6
7636 else
7637   ac_check_lib_save_LIBS=$LIBS
7638 LIBS="-lncurses  $LIBS"
7639 cat >conftest.$ac_ext <<_ACEOF
7640 #line $LINENO "configure"
7641 #include "confdefs.h"
7642
7643 /* Override any gcc2 internal prototype to avoid an error.  */
7644 #ifdef __cplusplus
7645 extern "C"
7646 #endif
7647 /* We use char because int might match the return type of a gcc2
7648    builtin and then its argument prototype would still apply.  */
7649 char waddch ();
7650 int
7651 main ()
7652 {
7653 waddch ();
7654   ;
7655   return 0;
7656 }
7657 _ACEOF
7658 rm -f conftest.$ac_objext conftest$ac_exeext
7659 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7660   (eval $ac_link) 2>&5
7661   ac_status=$?
7662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7663   (exit $ac_status); } &&
7664          { ac_try='test -s conftest$ac_exeext'
7665   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7666   (eval $ac_try) 2>&5
7667   ac_status=$?
7668   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7669   (exit $ac_status); }; }; then
7670   ac_cv_lib_ncurses_waddch=yes
7671 else
7672   echo "$as_me: failed program was:" >&5
7673 cat conftest.$ac_ext >&5
7674 ac_cv_lib_ncurses_waddch=no
7675 fi
7676 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7677 LIBS=$ac_check_lib_save_LIBS
7678 fi
7679 echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_waddch" >&5
7680 echo "${ECHO_T}$ac_cv_lib_ncurses_waddch" >&6
7681 if test $ac_cv_lib_ncurses_waddch = yes; then
7682
7683 cat >>confdefs.h <<\_ACEOF
7684 #define HAVE_LIBNCURSES 1
7685 _ACEOF
7686
7687              CURSESLIBS="-lncurses"
7688 else
7689
7690 for ac_header in curses.h
7691 do
7692 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7693 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7694   echo "$as_me:$LINENO: checking for $ac_header" >&5
7695 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7696 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7697   echo $ECHO_N "(cached) $ECHO_C" >&6
7698 fi
7699 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7700 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7701 else
7702   # Is the header compilable?
7703 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7704 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7705 cat >conftest.$ac_ext <<_ACEOF
7706 #line $LINENO "configure"
7707 #include "confdefs.h"
7708 $ac_includes_default
7709 #include <$ac_header>
7710 _ACEOF
7711 rm -f conftest.$ac_objext
7712 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7713   (eval $ac_compile) 2>&5
7714   ac_status=$?
7715   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7716   (exit $ac_status); } &&
7717          { ac_try='test -s conftest.$ac_objext'
7718   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7719   (eval $ac_try) 2>&5
7720   ac_status=$?
7721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7722   (exit $ac_status); }; }; then
7723   ac_header_compiler=yes
7724 else
7725   echo "$as_me: failed program was:" >&5
7726 cat conftest.$ac_ext >&5
7727 ac_header_compiler=no
7728 fi
7729 rm -f conftest.$ac_objext conftest.$ac_ext
7730 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7731 echo "${ECHO_T}$ac_header_compiler" >&6
7732
7733 # Is the header present?
7734 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7735 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7736 cat >conftest.$ac_ext <<_ACEOF
7737 #line $LINENO "configure"
7738 #include "confdefs.h"
7739 #include <$ac_header>
7740 _ACEOF
7741 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7742   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7743   ac_status=$?
7744   grep -v '^ *+' conftest.er1 >conftest.err
7745   rm -f conftest.er1
7746   cat conftest.err >&5
7747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7748   (exit $ac_status); } >/dev/null; then
7749   if test -s conftest.err; then
7750     ac_cpp_err=$ac_c_preproc_warn_flag
7751   else
7752     ac_cpp_err=
7753   fi
7754 else
7755   ac_cpp_err=yes
7756 fi
7757 if test -z "$ac_cpp_err"; then
7758   ac_header_preproc=yes
7759 else
7760   echo "$as_me: failed program was:" >&5
7761   cat conftest.$ac_ext >&5
7762   ac_header_preproc=no
7763 fi
7764 rm -f conftest.err conftest.$ac_ext
7765 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7766 echo "${ECHO_T}$ac_header_preproc" >&6
7767
7768 # So?  What about this header?
7769 case $ac_header_compiler:$ac_header_preproc in
7770   yes:no )
7771     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7772 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7773     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7774 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7775   no:yes )
7776     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7777 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7778     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7779 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7780     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7781 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7782 esac
7783 echo "$as_me:$LINENO: checking for $ac_header" >&5
7784 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7785 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7786   echo $ECHO_N "(cached) $ECHO_C" >&6
7787 else
7788   eval "$as_ac_Header=$ac_header_preproc"
7789 fi
7790 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7791 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7792
7793 fi
7794 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7795   cat >>confdefs.h <<_ACEOF
7796 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7797 _ACEOF
7798  echo "$as_me:$LINENO: checking for waddch in -lcurses" >&5
7799 echo $ECHO_N "checking for waddch in -lcurses... $ECHO_C" >&6
7800 if test "${ac_cv_lib_curses_waddch+set}" = set; then
7801   echo $ECHO_N "(cached) $ECHO_C" >&6
7802 else
7803   ac_check_lib_save_LIBS=$LIBS
7804 LIBS="-lcurses  $LIBS"
7805 cat >conftest.$ac_ext <<_ACEOF
7806 #line $LINENO "configure"
7807 #include "confdefs.h"
7808
7809 /* Override any gcc2 internal prototype to avoid an error.  */
7810 #ifdef __cplusplus
7811 extern "C"
7812 #endif
7813 /* We use char because int might match the return type of a gcc2
7814    builtin and then its argument prototype would still apply.  */
7815 char waddch ();
7816 int
7817 main ()
7818 {
7819 waddch ();
7820   ;
7821   return 0;
7822 }
7823 _ACEOF
7824 rm -f conftest.$ac_objext conftest$ac_exeext
7825 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7826   (eval $ac_link) 2>&5
7827   ac_status=$?
7828   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7829   (exit $ac_status); } &&
7830          { ac_try='test -s conftest$ac_exeext'
7831   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7832   (eval $ac_try) 2>&5
7833   ac_status=$?
7834   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7835   (exit $ac_status); }; }; then
7836   ac_cv_lib_curses_waddch=yes
7837 else
7838   echo "$as_me: failed program was:" >&5
7839 cat conftest.$ac_ext >&5
7840 ac_cv_lib_curses_waddch=no
7841 fi
7842 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7843 LIBS=$ac_check_lib_save_LIBS
7844 fi
7845 echo "$as_me:$LINENO: result: $ac_cv_lib_curses_waddch" >&5
7846 echo "${ECHO_T}$ac_cv_lib_curses_waddch" >&6
7847 if test $ac_cv_lib_curses_waddch = yes; then
7848
7849 cat >>confdefs.h <<\_ACEOF
7850 #define HAVE_LIBCURSES 1
7851 _ACEOF
7852
7853                       CURSESLIBS="-lcurses"
7854 fi
7855
7856 fi
7857
7858 done
7859
7860 fi
7861
7862 fi
7863
7864 done
7865
7866     saved_libs="$LIBS"
7867     LIBS="$CURSESLIBS $LIBS"
7868
7869
7870 for ac_func in getbkgd resizeterm
7871 do
7872 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7873 echo "$as_me:$LINENO: checking for $ac_func" >&5
7874 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7875 if eval "test \"\${$as_ac_var+set}\" = set"; then
7876   echo $ECHO_N "(cached) $ECHO_C" >&6
7877 else
7878   cat >conftest.$ac_ext <<_ACEOF
7879 #line $LINENO "configure"
7880 #include "confdefs.h"
7881 /* System header to define __stub macros and hopefully few prototypes,
7882     which can conflict with char $ac_func (); below.  */
7883 #include <assert.h>
7884 /* Override any gcc2 internal prototype to avoid an error.  */
7885 #ifdef __cplusplus
7886 extern "C"
7887 #endif
7888 /* We use char because int might match the return type of a gcc2
7889    builtin and then its argument prototype would still apply.  */
7890 char $ac_func ();
7891 char (*f) ();
7892
7893 int
7894 main ()
7895 {
7896 /* The GNU C library defines this for functions which it implements
7897     to always fail with ENOSYS.  Some functions are actually named
7898     something starting with __ and the normal name is an alias.  */
7899 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7900 choke me
7901 #else
7902 f = $ac_func;
7903 #endif
7904
7905   ;
7906   return 0;
7907 }
7908 _ACEOF
7909 rm -f conftest.$ac_objext conftest$ac_exeext
7910 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7911   (eval $ac_link) 2>&5
7912   ac_status=$?
7913   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7914   (exit $ac_status); } &&
7915          { ac_try='test -s conftest$ac_exeext'
7916   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7917   (eval $ac_try) 2>&5
7918   ac_status=$?
7919   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7920   (exit $ac_status); }; }; then
7921   eval "$as_ac_var=yes"
7922 else
7923   echo "$as_me: failed program was:" >&5
7924 cat conftest.$ac_ext >&5
7925 eval "$as_ac_var=no"
7926 fi
7927 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7928 fi
7929 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7930 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7931 if test `eval echo '${'$as_ac_var'}'` = yes; then
7932   cat >>confdefs.h <<_ACEOF
7933 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7934 _ACEOF
7935
7936 fi
7937 done
7938
7939     LIBS="$saved_libs"
7940 fi
7941
7942
7943 # Extract the first word of "sane-config", so it can be a program name with args.
7944 set dummy sane-config; ac_word=$2
7945 echo "$as_me:$LINENO: checking for $ac_word" >&5
7946 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7947 if test "${ac_cv_prog_sane_devel+set}" = set; then
7948   echo $ECHO_N "(cached) $ECHO_C" >&6
7949 else
7950   if test -n "$sane_devel"; then
7951   ac_cv_prog_sane_devel="$sane_devel" # Let the user override the test.
7952 else
7953 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7954 for as_dir in $PATH
7955 do
7956   IFS=$as_save_IFS
7957   test -z "$as_dir" && as_dir=.
7958   for ac_exec_ext in '' $ac_executable_extensions; do
7959   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7960     ac_cv_prog_sane_devel="sane-config"
7961     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7962     break 2
7963   fi
7964 done
7965 done
7966
7967   test -z "$ac_cv_prog_sane_devel" && ac_cv_prog_sane_devel="no"
7968 fi
7969 fi
7970 sane_devel=$ac_cv_prog_sane_devel
7971 if test -n "$sane_devel"; then
7972   echo "$as_me:$LINENO: result: $sane_devel" >&5
7973 echo "${ECHO_T}$sane_devel" >&6
7974 else
7975   echo "$as_me:$LINENO: result: no" >&5
7976 echo "${ECHO_T}no" >&6
7977 fi
7978
7979 if test "$sane_devel" = "no"
7980 then
7981     SANELIBS=""
7982     SANEINCL=""
7983 else
7984     SANELIBS="`$sane_devel --libs`"
7985     SANEINCL="`$sane_devel --cflags`"
7986     ac_save_CPPFLAGS="$CPPFLAGS"
7987     ac_save_LIBS="$LIBS"
7988     CPPFLAGS="$CPPFLAGS $SANEINCL"
7989     LIBS="$LIBS $SANELIBS"
7990     if test "${ac_cv_header_sane_sane_h+set}" = set; then
7991   echo "$as_me:$LINENO: checking for sane/sane.h" >&5
7992 echo $ECHO_N "checking for sane/sane.h... $ECHO_C" >&6
7993 if test "${ac_cv_header_sane_sane_h+set}" = set; then
7994   echo $ECHO_N "(cached) $ECHO_C" >&6
7995 fi
7996 echo "$as_me:$LINENO: result: $ac_cv_header_sane_sane_h" >&5
7997 echo "${ECHO_T}$ac_cv_header_sane_sane_h" >&6
7998 else
7999   # Is the header compilable?
8000 echo "$as_me:$LINENO: checking sane/sane.h usability" >&5
8001 echo $ECHO_N "checking sane/sane.h usability... $ECHO_C" >&6
8002 cat >conftest.$ac_ext <<_ACEOF
8003 #line $LINENO "configure"
8004 #include "confdefs.h"
8005 $ac_includes_default
8006 #include <sane/sane.h>
8007 _ACEOF
8008 rm -f conftest.$ac_objext
8009 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8010   (eval $ac_compile) 2>&5
8011   ac_status=$?
8012   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8013   (exit $ac_status); } &&
8014          { ac_try='test -s conftest.$ac_objext'
8015   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8016   (eval $ac_try) 2>&5
8017   ac_status=$?
8018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8019   (exit $ac_status); }; }; then
8020   ac_header_compiler=yes
8021 else
8022   echo "$as_me: failed program was:" >&5
8023 cat conftest.$ac_ext >&5
8024 ac_header_compiler=no
8025 fi
8026 rm -f conftest.$ac_objext conftest.$ac_ext
8027 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8028 echo "${ECHO_T}$ac_header_compiler" >&6
8029
8030 # Is the header present?
8031 echo "$as_me:$LINENO: checking sane/sane.h presence" >&5
8032 echo $ECHO_N "checking sane/sane.h presence... $ECHO_C" >&6
8033 cat >conftest.$ac_ext <<_ACEOF
8034 #line $LINENO "configure"
8035 #include "confdefs.h"
8036 #include <sane/sane.h>
8037 _ACEOF
8038 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8039   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8040   ac_status=$?
8041   grep -v '^ *+' conftest.er1 >conftest.err
8042   rm -f conftest.er1
8043   cat conftest.err >&5
8044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8045   (exit $ac_status); } >/dev/null; then
8046   if test -s conftest.err; then
8047     ac_cpp_err=$ac_c_preproc_warn_flag
8048   else
8049     ac_cpp_err=
8050   fi
8051 else
8052   ac_cpp_err=yes
8053 fi
8054 if test -z "$ac_cpp_err"; then
8055   ac_header_preproc=yes
8056 else
8057   echo "$as_me: failed program was:" >&5
8058   cat conftest.$ac_ext >&5
8059   ac_header_preproc=no
8060 fi
8061 rm -f conftest.err conftest.$ac_ext
8062 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8063 echo "${ECHO_T}$ac_header_preproc" >&6
8064
8065 # So?  What about this header?
8066 case $ac_header_compiler:$ac_header_preproc in
8067   yes:no )
8068     { echo "$as_me:$LINENO: WARNING: sane/sane.h: accepted by the compiler, rejected by the preprocessor!" >&5
8069 echo "$as_me: WARNING: sane/sane.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8070     { echo "$as_me:$LINENO: WARNING: sane/sane.h: proceeding with the preprocessor's result" >&5
8071 echo "$as_me: WARNING: sane/sane.h: proceeding with the preprocessor's result" >&2;};;
8072   no:yes )
8073     { echo "$as_me:$LINENO: WARNING: sane/sane.h: present but cannot be compiled" >&5
8074 echo "$as_me: WARNING: sane/sane.h: present but cannot be compiled" >&2;}
8075     { echo "$as_me:$LINENO: WARNING: sane/sane.h: check for missing prerequisite headers?" >&5
8076 echo "$as_me: WARNING: sane/sane.h: check for missing prerequisite headers?" >&2;}
8077     { echo "$as_me:$LINENO: WARNING: sane/sane.h: proceeding with the preprocessor's result" >&5
8078 echo "$as_me: WARNING: sane/sane.h: proceeding with the preprocessor's result" >&2;};;
8079 esac
8080 echo "$as_me:$LINENO: checking for sane/sane.h" >&5
8081 echo $ECHO_N "checking for sane/sane.h... $ECHO_C" >&6
8082 if test "${ac_cv_header_sane_sane_h+set}" = set; then
8083   echo $ECHO_N "(cached) $ECHO_C" >&6
8084 else
8085   ac_cv_header_sane_sane_h=$ac_header_preproc
8086 fi
8087 echo "$as_me:$LINENO: result: $ac_cv_header_sane_sane_h" >&5
8088 echo "${ECHO_T}$ac_cv_header_sane_sane_h" >&6
8089
8090 fi
8091 if test $ac_cv_header_sane_sane_h = yes; then
8092   echo "$as_me:$LINENO: checking for sane_open in -lsane" >&5
8093 echo $ECHO_N "checking for sane_open in -lsane... $ECHO_C" >&6
8094 if test "${ac_cv_lib_sane_sane_open+set}" = set; then
8095   echo $ECHO_N "(cached) $ECHO_C" >&6
8096 else
8097   ac_check_lib_save_LIBS=$LIBS
8098 LIBS="-lsane  $LIBS"
8099 cat >conftest.$ac_ext <<_ACEOF
8100 #line $LINENO "configure"
8101 #include "confdefs.h"
8102
8103 /* Override any gcc2 internal prototype to avoid an error.  */
8104 #ifdef __cplusplus
8105 extern "C"
8106 #endif
8107 /* We use char because int might match the return type of a gcc2
8108    builtin and then its argument prototype would still apply.  */
8109 char sane_open ();
8110 int
8111 main ()
8112 {
8113 sane_open ();
8114   ;
8115   return 0;
8116 }
8117 _ACEOF
8118 rm -f conftest.$ac_objext conftest$ac_exeext
8119 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8120   (eval $ac_link) 2>&5
8121   ac_status=$?
8122   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8123   (exit $ac_status); } &&
8124          { ac_try='test -s conftest$ac_exeext'
8125   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8126   (eval $ac_try) 2>&5
8127   ac_status=$?
8128   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8129   (exit $ac_status); }; }; then
8130   ac_cv_lib_sane_sane_open=yes
8131 else
8132   echo "$as_me: failed program was:" >&5
8133 cat conftest.$ac_ext >&5
8134 ac_cv_lib_sane_sane_open=no
8135 fi
8136 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8137 LIBS=$ac_check_lib_save_LIBS
8138 fi
8139 echo "$as_me:$LINENO: result: $ac_cv_lib_sane_sane_open" >&5
8140 echo "${ECHO_T}$ac_cv_lib_sane_sane_open" >&6
8141 if test $ac_cv_lib_sane_sane_open = yes; then
8142
8143 cat >>confdefs.h <<\_ACEOF
8144 #define HAVE_SANE 1
8145 _ACEOF
8146
8147 else
8148   SANELIBS=""
8149                                   SANEINCL=""
8150 fi
8151
8152 else
8153   SANELIBS=""
8154                     SANEINCL=""
8155 fi
8156
8157
8158     LIBS="$ac_save_LIBS"
8159     CPPFLAGS="$ac_save_CPPFLAGS"
8160 fi
8161
8162
8163
8164 echo "$as_me:$LINENO: checking for FT_Init_FreeType in -lfreetype" >&5
8165 echo $ECHO_N "checking for FT_Init_FreeType in -lfreetype... $ECHO_C" >&6
8166 if test "${ac_cv_lib_freetype_FT_Init_FreeType+set}" = set; then
8167   echo $ECHO_N "(cached) $ECHO_C" >&6
8168 else
8169   ac_check_lib_save_LIBS=$LIBS
8170 LIBS="-lfreetype $X_LIBS $LIBS"
8171 cat >conftest.$ac_ext <<_ACEOF
8172 #line $LINENO "configure"
8173 #include "confdefs.h"
8174
8175 /* Override any gcc2 internal prototype to avoid an error.  */
8176 #ifdef __cplusplus
8177 extern "C"
8178 #endif
8179 /* We use char because int might match the return type of a gcc2
8180    builtin and then its argument prototype would still apply.  */
8181 char FT_Init_FreeType ();
8182 int
8183 main ()
8184 {
8185 FT_Init_FreeType ();
8186   ;
8187   return 0;
8188 }
8189 _ACEOF
8190 rm -f conftest.$ac_objext conftest$ac_exeext
8191 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8192   (eval $ac_link) 2>&5
8193   ac_status=$?
8194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8195   (exit $ac_status); } &&
8196          { ac_try='test -s conftest$ac_exeext'
8197   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8198   (eval $ac_try) 2>&5
8199   ac_status=$?
8200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8201   (exit $ac_status); }; }; then
8202   ac_cv_lib_freetype_FT_Init_FreeType=yes
8203 else
8204   echo "$as_me: failed program was:" >&5
8205 cat conftest.$ac_ext >&5
8206 ac_cv_lib_freetype_FT_Init_FreeType=no
8207 fi
8208 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8209 LIBS=$ac_check_lib_save_LIBS
8210 fi
8211 echo "$as_me:$LINENO: result: $ac_cv_lib_freetype_FT_Init_FreeType" >&5
8212 echo "${ECHO_T}$ac_cv_lib_freetype_FT_Init_FreeType" >&6
8213 if test $ac_cv_lib_freetype_FT_Init_FreeType = yes; then
8214   ft_lib=yes
8215 else
8216   ft_lib=no
8217 fi
8218
8219 if test "$ft_lib" = "no"
8220 then
8221     FREETYPEINCL=""
8222     wine_cv_msg_freetype=no
8223 else
8224     # Extract the first word of "freetype-config", so it can be a program name with args.
8225 set dummy freetype-config; ac_word=$2
8226 echo "$as_me:$LINENO: checking for $ac_word" >&5
8227 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8228 if test "${ac_cv_prog_ft_devel+set}" = set; then
8229   echo $ECHO_N "(cached) $ECHO_C" >&6
8230 else
8231   if test -n "$ft_devel"; then
8232   ac_cv_prog_ft_devel="$ft_devel" # Let the user override the test.
8233 else
8234 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8235 for as_dir in $PATH
8236 do
8237   IFS=$as_save_IFS
8238   test -z "$as_dir" && as_dir=.
8239   for ac_exec_ext in '' $ac_executable_extensions; do
8240   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8241     ac_cv_prog_ft_devel="freetype-config"
8242     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8243     break 2
8244   fi
8245 done
8246 done
8247
8248   test -z "$ac_cv_prog_ft_devel" && ac_cv_prog_ft_devel="no"
8249 fi
8250 fi
8251 ft_devel=$ac_cv_prog_ft_devel
8252 if test -n "$ft_devel"; then
8253   echo "$as_me:$LINENO: result: $ft_devel" >&5
8254 echo "${ECHO_T}$ft_devel" >&6
8255 else
8256   echo "$as_me:$LINENO: result: no" >&5
8257 echo "${ECHO_T}no" >&6
8258 fi
8259
8260     if test "$ft_devel" = "no"
8261     then
8262         # Extract the first word of "freetype2-config", so it can be a program name with args.
8263 set dummy freetype2-config; ac_word=$2
8264 echo "$as_me:$LINENO: checking for $ac_word" >&5
8265 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8266 if test "${ac_cv_prog_ft_devel2+set}" = set; then
8267   echo $ECHO_N "(cached) $ECHO_C" >&6
8268 else
8269   if test -n "$ft_devel2"; then
8270   ac_cv_prog_ft_devel2="$ft_devel2" # Let the user override the test.
8271 else
8272 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8273 for as_dir in $PATH
8274 do
8275   IFS=$as_save_IFS
8276   test -z "$as_dir" && as_dir=.
8277   for ac_exec_ext in '' $ac_executable_extensions; do
8278   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8279     ac_cv_prog_ft_devel2="freetype2-config"
8280     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8281     break 2
8282   fi
8283 done
8284 done
8285
8286   test -z "$ac_cv_prog_ft_devel2" && ac_cv_prog_ft_devel2="no"
8287 fi
8288 fi
8289 ft_devel2=$ac_cv_prog_ft_devel2
8290 if test -n "$ft_devel2"; then
8291   echo "$as_me:$LINENO: result: $ft_devel2" >&5
8292 echo "${ECHO_T}$ft_devel2" >&6
8293 else
8294   echo "$as_me:$LINENO: result: no" >&5
8295 echo "${ECHO_T}no" >&6
8296 fi
8297
8298         if test "$ft_devel2" = "freetype2-config"
8299         then
8300                 ft_devel=$ft_devel2
8301         fi
8302     fi
8303     if test "$ft_devel" = "no"
8304     then
8305         FREETYPEINCL=""
8306         wine_cv_msg_freetype=yes
8307     else
8308         FREETYPEINCL=`$ft_devel --cflags`
8309         ac_save_CPPFLAGS="$CPPFLAGS"
8310         CPPFLAGS="$FREETYPEINCL $CPPFLAGS"
8311
8312
8313
8314
8315
8316
8317
8318
8319 for ac_header in freetype/freetype.h \
8320                          freetype/ftglyph.h \
8321                          freetype/tttables.h \
8322                          freetype/ftnames.h \
8323                          freetype/ftsnames.h \
8324                          freetype/ttnameid.h \
8325                          freetype/ftoutln.h \
8326                          freetype/internal/sfnt.h
8327 do
8328 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8329 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8330   echo "$as_me:$LINENO: checking for $ac_header" >&5
8331 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8332 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8333   echo $ECHO_N "(cached) $ECHO_C" >&6
8334 fi
8335 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8336 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8337 else
8338   # Is the header compilable?
8339 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8340 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8341 cat >conftest.$ac_ext <<_ACEOF
8342 #line $LINENO "configure"
8343 #include "confdefs.h"
8344 $ac_includes_default
8345 #include <$ac_header>
8346 _ACEOF
8347 rm -f conftest.$ac_objext
8348 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8349   (eval $ac_compile) 2>&5
8350   ac_status=$?
8351   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8352   (exit $ac_status); } &&
8353          { ac_try='test -s conftest.$ac_objext'
8354   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8355   (eval $ac_try) 2>&5
8356   ac_status=$?
8357   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8358   (exit $ac_status); }; }; then
8359   ac_header_compiler=yes
8360 else
8361   echo "$as_me: failed program was:" >&5
8362 cat conftest.$ac_ext >&5
8363 ac_header_compiler=no
8364 fi
8365 rm -f conftest.$ac_objext conftest.$ac_ext
8366 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8367 echo "${ECHO_T}$ac_header_compiler" >&6
8368
8369 # Is the header present?
8370 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8371 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8372 cat >conftest.$ac_ext <<_ACEOF
8373 #line $LINENO "configure"
8374 #include "confdefs.h"
8375 #include <$ac_header>
8376 _ACEOF
8377 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8378   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8379   ac_status=$?
8380   grep -v '^ *+' conftest.er1 >conftest.err
8381   rm -f conftest.er1
8382   cat conftest.err >&5
8383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8384   (exit $ac_status); } >/dev/null; then
8385   if test -s conftest.err; then
8386     ac_cpp_err=$ac_c_preproc_warn_flag
8387   else
8388     ac_cpp_err=
8389   fi
8390 else
8391   ac_cpp_err=yes
8392 fi
8393 if test -z "$ac_cpp_err"; then
8394   ac_header_preproc=yes
8395 else
8396   echo "$as_me: failed program was:" >&5
8397   cat conftest.$ac_ext >&5
8398   ac_header_preproc=no
8399 fi
8400 rm -f conftest.err conftest.$ac_ext
8401 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8402 echo "${ECHO_T}$ac_header_preproc" >&6
8403
8404 # So?  What about this header?
8405 case $ac_header_compiler:$ac_header_preproc in
8406   yes:no )
8407     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8408 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8409     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8410 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8411   no:yes )
8412     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8413 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8414     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8415 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8416     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8417 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8418 esac
8419 echo "$as_me:$LINENO: checking for $ac_header" >&5
8420 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8421 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8422   echo $ECHO_N "(cached) $ECHO_C" >&6
8423 else
8424   eval "$as_ac_Header=$ac_header_preproc"
8425 fi
8426 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8427 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8428
8429 fi
8430 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8431   cat >>confdefs.h <<_ACEOF
8432 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8433 _ACEOF
8434
8435 fi
8436
8437 done
8438
8439         cat >conftest.$ac_ext <<_ACEOF
8440 #line $LINENO "configure"
8441 #include "confdefs.h"
8442 #include <ft2build.h>
8443                     #include <freetype/fttrigon.h>
8444 _ACEOF
8445 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8446   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8447   ac_status=$?
8448   grep -v '^ *+' conftest.er1 >conftest.err
8449   rm -f conftest.er1
8450   cat conftest.err >&5
8451   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8452   (exit $ac_status); } >/dev/null; then
8453   if test -s conftest.err; then
8454     ac_cpp_err=$ac_c_preproc_warn_flag
8455   else
8456     ac_cpp_err=
8457   fi
8458 else
8459   ac_cpp_err=yes
8460 fi
8461 if test -z "$ac_cpp_err"; then
8462
8463 cat >>confdefs.h <<\_ACEOF
8464 #define HAVE_FREETYPE_FTTRIGON_H 1
8465 _ACEOF
8466
8467                     wine_cv_fttrigon=yes
8468 else
8469   echo "$as_me: failed program was:" >&5
8470   cat conftest.$ac_ext >&5
8471   wine_cv_fttrigon=no
8472 fi
8473 rm -f conftest.err conftest.$ac_ext
8474         CPPFLAGS="$ac_save_CPPFLAGS"
8475                 if test "$ac_cv_header_freetype_freetype_h" = "yes" -a "$wine_cv_fttrigon" = "yes"
8476         then
8477
8478 cat >>confdefs.h <<\_ACEOF
8479 #define HAVE_FREETYPE 1
8480 _ACEOF
8481
8482             wine_cv_msg_freetype=no
8483         else
8484             FREETYPEINCL=""
8485             wine_cv_msg_freetype=yes
8486         fi
8487     fi
8488 fi
8489
8490
8491 echo "$as_me:$LINENO: checking for parport header/ppdev.h" >&5
8492 echo $ECHO_N "checking for parport header/ppdev.h... $ECHO_C" >&6
8493 if test "${ac_cv_c_ppdev+set}" = set; then
8494   echo $ECHO_N "(cached) $ECHO_C" >&6
8495 else
8496   cat >conftest.$ac_ext <<_ACEOF
8497 #line $LINENO "configure"
8498 #include "confdefs.h"
8499 #include <linux/ppdev.h>
8500 int
8501 main ()
8502 {
8503 ioctl (1,PPCLAIM,0)
8504   ;
8505   return 0;
8506 }
8507 _ACEOF
8508 rm -f conftest.$ac_objext
8509 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8510   (eval $ac_compile) 2>&5
8511   ac_status=$?
8512   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8513   (exit $ac_status); } &&
8514          { ac_try='test -s conftest.$ac_objext'
8515   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8516   (eval $ac_try) 2>&5
8517   ac_status=$?
8518   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8519   (exit $ac_status); }; }; then
8520   ac_cv_c_ppdev="yes"
8521 else
8522   echo "$as_me: failed program was:" >&5
8523 cat conftest.$ac_ext >&5
8524 ac_cv_c_ppdev="no"
8525 fi
8526 rm -f conftest.$ac_objext conftest.$ac_ext
8527
8528 fi
8529 echo "$as_me:$LINENO: result: $ac_cv_c_ppdev" >&5
8530 echo "${ECHO_T}$ac_cv_c_ppdev" >&6
8531 if test "$ac_cv_c_ppdev" = "yes"
8532 then
8533
8534 cat >>confdefs.h <<\_ACEOF
8535 #define HAVE_PPDEV 1
8536 _ACEOF
8537
8538 fi
8539
8540 echo "$as_me:$LINENO: checking for va_copy" >&5
8541 echo $ECHO_N "checking for va_copy... $ECHO_C" >&6
8542 if test "${ac_cv_c_va_copy+set}" = set; then
8543   echo $ECHO_N "(cached) $ECHO_C" >&6
8544 else
8545   cat >conftest.$ac_ext <<_ACEOF
8546 #line $LINENO "configure"
8547 #include "confdefs.h"
8548 #include <stdarg.h>
8549 int
8550 main ()
8551 {
8552 va_list ap1, ap2;
8553     va_copy(ap1,ap2);
8554
8555   ;
8556   return 0;
8557 }
8558 _ACEOF
8559 rm -f conftest.$ac_objext conftest$ac_exeext
8560 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8561   (eval $ac_link) 2>&5
8562   ac_status=$?
8563   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8564   (exit $ac_status); } &&
8565          { ac_try='test -s conftest$ac_exeext'
8566   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8567   (eval $ac_try) 2>&5
8568   ac_status=$?
8569   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8570   (exit $ac_status); }; }; then
8571   ac_cv_c_va_copy="yes"
8572 else
8573   echo "$as_me: failed program was:" >&5
8574 cat conftest.$ac_ext >&5
8575 ac_cv_c_va_copy="no"
8576 fi
8577 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8578
8579 fi
8580 echo "$as_me:$LINENO: result: $ac_cv_c_va_copy" >&5
8581 echo "${ECHO_T}$ac_cv_c_va_copy" >&6
8582 if test "$ac_cv_c_va_copy" = "yes"
8583 then
8584
8585 cat >>confdefs.h <<\_ACEOF
8586 #define HAVE_VA_COPY 1
8587 _ACEOF
8588
8589 fi
8590 echo "$as_me:$LINENO: checking for __va_copy" >&5
8591 echo $ECHO_N "checking for __va_copy... $ECHO_C" >&6
8592 if test "${ac_cv_c___va_copy+set}" = set; then
8593   echo $ECHO_N "(cached) $ECHO_C" >&6
8594 else
8595   cat >conftest.$ac_ext <<_ACEOF
8596 #line $LINENO "configure"
8597 #include "confdefs.h"
8598 #include <stdarg.h>
8599 int
8600 main ()
8601 {
8602 va_list ap1, ap2;
8603     __va_copy(ap1,ap2);
8604
8605   ;
8606   return 0;
8607 }
8608 _ACEOF
8609 rm -f conftest.$ac_objext conftest$ac_exeext
8610 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8611   (eval $ac_link) 2>&5
8612   ac_status=$?
8613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8614   (exit $ac_status); } &&
8615          { ac_try='test -s conftest$ac_exeext'
8616   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8617   (eval $ac_try) 2>&5
8618   ac_status=$?
8619   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8620   (exit $ac_status); }; }; then
8621   ac_cv_c___va_copy="yes"
8622 else
8623   echo "$as_me: failed program was:" >&5
8624 cat conftest.$ac_ext >&5
8625 ac_cv_c___va_copy="no"
8626 fi
8627 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8628
8629 fi
8630 echo "$as_me:$LINENO: result: $ac_cv_c___va_copy" >&5
8631 echo "${ECHO_T}$ac_cv_c___va_copy" >&6
8632 if test "$ac_cv_c___va_copy" = "yes"
8633 then
8634
8635 cat >>confdefs.h <<\_ACEOF
8636 #define HAVE___VA_COPY 1
8637 _ACEOF
8638
8639 fi
8640
8641 echo "$as_me:$LINENO: checking for GNU style IPX support" >&5
8642 echo $ECHO_N "checking for GNU style IPX support... $ECHO_C" >&6
8643 if test "${ac_cv_c_ipx_gnu+set}" = set; then
8644   echo $ECHO_N "(cached) $ECHO_C" >&6
8645 else
8646   cat >conftest.$ac_ext <<_ACEOF
8647 #line $LINENO "configure"
8648 #include "confdefs.h"
8649 #include <sys/types.h>
8650     #ifdef HAVE_SYS_SOCKET_H
8651     # include <sys/socket.h>
8652     #endif
8653     #include <netipx/ipx.h>
8654 int
8655 main ()
8656 {
8657 ((struct sockaddr_ipx *)0)->sipx_family == AF_IPX
8658   ;
8659   return 0;
8660 }
8661 _ACEOF
8662 rm -f conftest.$ac_objext
8663 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8664   (eval $ac_compile) 2>&5
8665   ac_status=$?
8666   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8667   (exit $ac_status); } &&
8668          { ac_try='test -s conftest.$ac_objext'
8669   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8670   (eval $ac_try) 2>&5
8671   ac_status=$?
8672   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8673   (exit $ac_status); }; }; then
8674   ac_cv_c_ipx_gnu="yes"
8675 else
8676   echo "$as_me: failed program was:" >&5
8677 cat conftest.$ac_ext >&5
8678 ac_cv_c_ipx_gnu="no"
8679 fi
8680 rm -f conftest.$ac_objext conftest.$ac_ext
8681
8682 fi
8683 echo "$as_me:$LINENO: result: $ac_cv_c_ipx_gnu" >&5
8684 echo "${ECHO_T}$ac_cv_c_ipx_gnu" >&6
8685 if test "$ac_cv_c_ipx_gnu" = "yes"
8686 then
8687
8688 cat >>confdefs.h <<\_ACEOF
8689 #define HAVE_IPX_GNU 1
8690 _ACEOF
8691
8692 fi
8693
8694 if test "$ac_cv_c_ipx_gnu" = "no"
8695 then
8696  echo "$as_me:$LINENO: checking for linux style IPX support" >&5
8697 echo $ECHO_N "checking for linux style IPX support... $ECHO_C" >&6
8698 if test "${ac_cv_c_ipx_linux+set}" = set; then
8699   echo $ECHO_N "(cached) $ECHO_C" >&6
8700 else
8701   cat >conftest.$ac_ext <<_ACEOF
8702 #line $LINENO "configure"
8703 #include "confdefs.h"
8704 #include <sys/types.h>
8705      #ifdef HAVE_SYS_SOCKET_H
8706      # include <sys/socket.h>
8707      #endif
8708      #include <asm/types.h>
8709      #include <linux/ipx.h>
8710 int
8711 main ()
8712 {
8713 ((struct sockaddr_ipx *)0)->sipx_family == AF_IPX
8714   ;
8715   return 0;
8716 }
8717 _ACEOF
8718 rm -f conftest.$ac_objext
8719 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8720   (eval $ac_compile) 2>&5
8721   ac_status=$?
8722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8723   (exit $ac_status); } &&
8724          { ac_try='test -s conftest.$ac_objext'
8725   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8726   (eval $ac_try) 2>&5
8727   ac_status=$?
8728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8729   (exit $ac_status); }; }; then
8730   ac_cv_c_ipx_linux="yes"
8731 else
8732   echo "$as_me: failed program was:" >&5
8733 cat conftest.$ac_ext >&5
8734 ac_cv_c_ipx_linux="no"
8735 fi
8736 rm -f conftest.$ac_objext conftest.$ac_ext
8737
8738 fi
8739 echo "$as_me:$LINENO: result: $ac_cv_c_ipx_linux" >&5
8740 echo "${ECHO_T}$ac_cv_c_ipx_linux" >&6
8741   if test "$ac_cv_c_ipx_linux" = "yes"
8742   then
8743
8744 cat >>confdefs.h <<\_ACEOF
8745 #define HAVE_IPX_LINUX 1
8746 _ACEOF
8747
8748   fi
8749 fi
8750
8751
8752
8753
8754 for ac_header in sys/soundcard.h machine/soundcard.h soundcard.h
8755 do
8756 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8757 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8758   echo "$as_me:$LINENO: checking for $ac_header" >&5
8759 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8760 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8761   echo $ECHO_N "(cached) $ECHO_C" >&6
8762 fi
8763 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8764 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8765 else
8766   # Is the header compilable?
8767 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8768 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8769 cat >conftest.$ac_ext <<_ACEOF
8770 #line $LINENO "configure"
8771 #include "confdefs.h"
8772 $ac_includes_default
8773 #include <$ac_header>
8774 _ACEOF
8775 rm -f conftest.$ac_objext
8776 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8777   (eval $ac_compile) 2>&5
8778   ac_status=$?
8779   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8780   (exit $ac_status); } &&
8781          { ac_try='test -s conftest.$ac_objext'
8782   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8783   (eval $ac_try) 2>&5
8784   ac_status=$?
8785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8786   (exit $ac_status); }; }; then
8787   ac_header_compiler=yes
8788 else
8789   echo "$as_me: failed program was:" >&5
8790 cat conftest.$ac_ext >&5
8791 ac_header_compiler=no
8792 fi
8793 rm -f conftest.$ac_objext conftest.$ac_ext
8794 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8795 echo "${ECHO_T}$ac_header_compiler" >&6
8796
8797 # Is the header present?
8798 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8799 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8800 cat >conftest.$ac_ext <<_ACEOF
8801 #line $LINENO "configure"
8802 #include "confdefs.h"
8803 #include <$ac_header>
8804 _ACEOF
8805 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8806   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8807   ac_status=$?
8808   grep -v '^ *+' conftest.er1 >conftest.err
8809   rm -f conftest.er1
8810   cat conftest.err >&5
8811   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8812   (exit $ac_status); } >/dev/null; then
8813   if test -s conftest.err; then
8814     ac_cpp_err=$ac_c_preproc_warn_flag
8815   else
8816     ac_cpp_err=
8817   fi
8818 else
8819   ac_cpp_err=yes
8820 fi
8821 if test -z "$ac_cpp_err"; then
8822   ac_header_preproc=yes
8823 else
8824   echo "$as_me: failed program was:" >&5
8825   cat conftest.$ac_ext >&5
8826   ac_header_preproc=no
8827 fi
8828 rm -f conftest.err conftest.$ac_ext
8829 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8830 echo "${ECHO_T}$ac_header_preproc" >&6
8831
8832 # So?  What about this header?
8833 case $ac_header_compiler:$ac_header_preproc in
8834   yes:no )
8835     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8836 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8837     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8838 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8839   no:yes )
8840     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8841 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8842     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8843 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8844     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8845 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8846 esac
8847 echo "$as_me:$LINENO: checking for $ac_header" >&5
8848 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8849 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8850   echo $ECHO_N "(cached) $ECHO_C" >&6
8851 else
8852   eval "$as_ac_Header=$ac_header_preproc"
8853 fi
8854 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8855 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8856
8857 fi
8858 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8859   cat >>confdefs.h <<_ACEOF
8860 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8861 _ACEOF
8862  break
8863 fi
8864
8865 done
8866
8867
8868 echo "$as_me:$LINENO: checking for Open Sound System" >&5
8869 echo $ECHO_N "checking for Open Sound System... $ECHO_C" >&6
8870 if test "${ac_cv_c_opensoundsystem+set}" = set; then
8871   echo $ECHO_N "(cached) $ECHO_C" >&6
8872 else
8873   cat >conftest.$ac_ext <<_ACEOF
8874 #line $LINENO "configure"
8875 #include "confdefs.h"
8876
8877         #if defined(HAVE_SYS_SOUNDCARD_H)
8878                 #include <sys/soundcard.h>
8879         #elif defined(HAVE_MACHINE_SOUNDCARD_H)
8880                 #include <machine/soundcard.h>
8881         #elif defined(HAVE_SOUNDCARD_H)
8882                 #include <soundcard.h>
8883         #endif
8884
8885 int
8886 main ()
8887 {
8888
8889
8890 /* check for one of the Open Sound System specific SNDCTL_ defines */
8891 #if !defined(SNDCTL_DSP_STEREO)
8892 #error No open sound system
8893 #endif
8894
8895   ;
8896   return 0;
8897 }
8898 _ACEOF
8899 rm -f conftest.$ac_objext
8900 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8901   (eval $ac_compile) 2>&5
8902   ac_status=$?
8903   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8904   (exit $ac_status); } &&
8905          { ac_try='test -s conftest.$ac_objext'
8906   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8907   (eval $ac_try) 2>&5
8908   ac_status=$?
8909   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8910   (exit $ac_status); }; }; then
8911   ac_cv_c_opensoundsystem="yes"
8912 else
8913   echo "$as_me: failed program was:" >&5
8914 cat conftest.$ac_ext >&5
8915 ac_cv_c_opensoundsystem="no"
8916 fi
8917 rm -f conftest.$ac_objext conftest.$ac_ext
8918 fi
8919 echo "$as_me:$LINENO: result: $ac_cv_c_opensoundsystem" >&5
8920 echo "${ECHO_T}$ac_cv_c_opensoundsystem" >&6
8921
8922 if test "$ac_cv_c_opensoundsystem" = "yes"
8923 then
8924
8925 cat >>confdefs.h <<\_ACEOF
8926 #define HAVE_OSS 1
8927 _ACEOF
8928
8929 fi
8930
8931 echo "$as_me:$LINENO: checking for Open Sound System/MIDI interface" >&5
8932 echo $ECHO_N "checking for Open Sound System/MIDI interface... $ECHO_C" >&6
8933 if test "${ac_cv_c_opensoundsystem_midi+set}" = set; then
8934   echo $ECHO_N "(cached) $ECHO_C" >&6
8935 else
8936   cat >conftest.$ac_ext <<_ACEOF
8937 #line $LINENO "configure"
8938 #include "confdefs.h"
8939
8940         #if defined(HAVE_SYS_SOUNDCARD_H)
8941                 #include <sys/soundcard.h>
8942         #elif defined(HAVE_MACHINE_SOUNDCARD_H)
8943                 #include <machine/soundcard.h>
8944         #elif defined(HAVE_SOUNDCARD_H)
8945                 #include <soundcard.h>
8946         #endif
8947
8948 int
8949 main ()
8950 {
8951
8952
8953 /* check for one of the Open Sound System specific SNDCTL_SEQ defines */
8954 #if !defined(SNDCTL_SEQ_SYNC)
8955 #error No open sound system MIDI interface
8956 #endif
8957
8958   ;
8959   return 0;
8960 }
8961 _ACEOF
8962 rm -f conftest.$ac_objext
8963 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8964   (eval $ac_compile) 2>&5
8965   ac_status=$?
8966   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8967   (exit $ac_status); } &&
8968          { ac_try='test -s conftest.$ac_objext'
8969   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8970   (eval $ac_try) 2>&5
8971   ac_status=$?
8972   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8973   (exit $ac_status); }; }; then
8974   ac_cv_c_opensoundsystem_midi="yes"
8975 else
8976   echo "$as_me: failed program was:" >&5
8977 cat conftest.$ac_ext >&5
8978 ac_cv_c_opensoundsystem_midi="no"
8979 fi
8980 rm -f conftest.$ac_objext conftest.$ac_ext
8981 fi
8982 echo "$as_me:$LINENO: result: $ac_cv_c_opensoundsystem_midi" >&5
8983 echo "${ECHO_T}$ac_cv_c_opensoundsystem_midi" >&6
8984
8985 if test "$ac_cv_c_opensoundsystem_midi" = "yes"
8986 then
8987
8988 cat >>confdefs.h <<\_ACEOF
8989 #define HAVE_OSS_MIDI 1
8990 _ACEOF
8991
8992 fi
8993
8994 # Extract the first word of "artsc-config", so it can be a program name with args.
8995 set dummy artsc-config; ac_word=$2
8996 echo "$as_me:$LINENO: checking for $ac_word" >&5
8997 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8998 if test "${ac_cv_path_ARTSCCONFIG+set}" = set; then
8999   echo $ECHO_N "(cached) $ECHO_C" >&6
9000 else
9001   case $ARTSCCONFIG in
9002   [\\/]* | ?:[\\/]*)
9003   ac_cv_path_ARTSCCONFIG="$ARTSCCONFIG" # Let the user override the test with a path.
9004   ;;
9005   *)
9006   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9007 for as_dir in $PATH
9008 do
9009   IFS=$as_save_IFS
9010   test -z "$as_dir" && as_dir=.
9011   for ac_exec_ext in '' $ac_executable_extensions; do
9012   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9013     ac_cv_path_ARTSCCONFIG="$as_dir/$ac_word$ac_exec_ext"
9014     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9015     break 2
9016   fi
9017 done
9018 done
9019
9020   ;;
9021 esac
9022 fi
9023 ARTSCCONFIG=$ac_cv_path_ARTSCCONFIG
9024
9025 if test -n "$ARTSCCONFIG"; then
9026   echo "$as_me:$LINENO: result: $ARTSCCONFIG" >&5
9027 echo "${ECHO_T}$ARTSCCONFIG" >&6
9028 else
9029   echo "$as_me:$LINENO: result: no" >&5
9030 echo "${ECHO_T}no" >&6
9031 fi
9032
9033 echo "$as_me:$LINENO: checking for aRts Sound server" >&5
9034 echo $ECHO_N "checking for aRts Sound server... $ECHO_C" >&6
9035 if test "${ac_cv_c_artsserver+set}" = set; then
9036   echo $ECHO_N "(cached) $ECHO_C" >&6
9037 else
9038   if test x$ARTSCCONFIG = x -o x$ARTSCCONFIG = x'"$ARTSCCONFIG"';
9039         then
9040             ac_cv_c_artsserver=no
9041         else
9042             ARTSC_CFLAGS=`$ARTSCCONFIG --cflags`
9043             ARTSC_LIBS=`$ARTSCCONFIG --libs`
9044             ac_cv_c_artsserver=no
9045             save_CFLAGS="$CFLAGS"
9046             CFLAGS="$CFLAGS $ARTSC_CFLAGS"
9047             cat >conftest.$ac_ext <<_ACEOF
9048 #line $LINENO "configure"
9049 #include "confdefs.h"
9050
9051              #include <artsc.h>
9052
9053 int
9054 main ()
9055 {
9056
9057              arts_stream_t stream;
9058
9059   ;
9060   return 0;
9061 }
9062 _ACEOF
9063 rm -f conftest.$ac_objext
9064 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9065   (eval $ac_compile) 2>&5
9066   ac_status=$?
9067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9068   (exit $ac_status); } &&
9069          { ac_try='test -s conftest.$ac_objext'
9070   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9071   (eval $ac_try) 2>&5
9072   ac_status=$?
9073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9074   (exit $ac_status); }; }; then
9075
9076             ac_cv_c_artsserver=yes
9077
9078 else
9079   echo "$as_me: failed program was:" >&5
9080 cat conftest.$ac_ext >&5
9081 fi
9082 rm -f conftest.$ac_objext conftest.$ac_ext
9083             CFLAGS="$save_CFLAGS"
9084         fi
9085 fi
9086 echo "$as_me:$LINENO: result: $ac_cv_c_artsserver" >&5
9087 echo "${ECHO_T}$ac_cv_c_artsserver" >&6
9088
9089 if test "$ac_cv_c_artsserver" = "yes"
9090 then
9091     ARTSLIBS=$ARTSC_LIBS
9092
9093     ARTSINCL=$ARTSC_CFLAGS
9094
9095
9096
9097 cat >>confdefs.h <<\_ACEOF
9098 #define HAVE_ARTS 1
9099 _ACEOF
9100
9101 fi
9102
9103 ALSALIBS=""
9104
9105
9106
9107 for ac_header in alsa/asoundlib.h sys/asoundlib.h
9108 do
9109 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9110 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9111   echo "$as_me:$LINENO: checking for $ac_header" >&5
9112 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9113 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9114   echo $ECHO_N "(cached) $ECHO_C" >&6
9115 fi
9116 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9117 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9118 else
9119   # Is the header compilable?
9120 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9121 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9122 cat >conftest.$ac_ext <<_ACEOF
9123 #line $LINENO "configure"
9124 #include "confdefs.h"
9125 $ac_includes_default
9126 #include <$ac_header>
9127 _ACEOF
9128 rm -f conftest.$ac_objext
9129 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9130   (eval $ac_compile) 2>&5
9131   ac_status=$?
9132   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9133   (exit $ac_status); } &&
9134          { ac_try='test -s conftest.$ac_objext'
9135   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9136   (eval $ac_try) 2>&5
9137   ac_status=$?
9138   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9139   (exit $ac_status); }; }; then
9140   ac_header_compiler=yes
9141 else
9142   echo "$as_me: failed program was:" >&5
9143 cat conftest.$ac_ext >&5
9144 ac_header_compiler=no
9145 fi
9146 rm -f conftest.$ac_objext conftest.$ac_ext
9147 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9148 echo "${ECHO_T}$ac_header_compiler" >&6
9149
9150 # Is the header present?
9151 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9152 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9153 cat >conftest.$ac_ext <<_ACEOF
9154 #line $LINENO "configure"
9155 #include "confdefs.h"
9156 #include <$ac_header>
9157 _ACEOF
9158 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9159   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9160   ac_status=$?
9161   grep -v '^ *+' conftest.er1 >conftest.err
9162   rm -f conftest.er1
9163   cat conftest.err >&5
9164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9165   (exit $ac_status); } >/dev/null; then
9166   if test -s conftest.err; then
9167     ac_cpp_err=$ac_c_preproc_warn_flag
9168   else
9169     ac_cpp_err=
9170   fi
9171 else
9172   ac_cpp_err=yes
9173 fi
9174 if test -z "$ac_cpp_err"; then
9175   ac_header_preproc=yes
9176 else
9177   echo "$as_me: failed program was:" >&5
9178   cat conftest.$ac_ext >&5
9179   ac_header_preproc=no
9180 fi
9181 rm -f conftest.err conftest.$ac_ext
9182 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9183 echo "${ECHO_T}$ac_header_preproc" >&6
9184
9185 # So?  What about this header?
9186 case $ac_header_compiler:$ac_header_preproc in
9187   yes:no )
9188     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9189 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9190     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9191 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
9192   no:yes )
9193     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9194 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9195     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9196 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9197     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9198 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
9199 esac
9200 echo "$as_me:$LINENO: checking for $ac_header" >&5
9201 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9202 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9203   echo $ECHO_N "(cached) $ECHO_C" >&6
9204 else
9205   eval "$as_ac_Header=$ac_header_preproc"
9206 fi
9207 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9208 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9209
9210 fi
9211 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9212   cat >>confdefs.h <<_ACEOF
9213 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9214 _ACEOF
9215  break
9216 fi
9217
9218 done
9219
9220 if test "$ac_cv_header_sys_asoundlib_h" = "yes" -o "$ac_cv_header_alsa_asoundlib_h" = "yes"
9221 then
9222     echo "$as_me:$LINENO: checking for snd_pcm_open in -lasound" >&5
9223 echo $ECHO_N "checking for snd_pcm_open in -lasound... $ECHO_C" >&6
9224 if test "${ac_cv_lib_asound_snd_pcm_open+set}" = set; then
9225   echo $ECHO_N "(cached) $ECHO_C" >&6
9226 else
9227   ac_check_lib_save_LIBS=$LIBS
9228 LIBS="-lasound  $LIBS"
9229 cat >conftest.$ac_ext <<_ACEOF
9230 #line $LINENO "configure"
9231 #include "confdefs.h"
9232
9233 /* Override any gcc2 internal prototype to avoid an error.  */
9234 #ifdef __cplusplus
9235 extern "C"
9236 #endif
9237 /* We use char because int might match the return type of a gcc2
9238    builtin and then its argument prototype would still apply.  */
9239 char snd_pcm_open ();
9240 int
9241 main ()
9242 {
9243 snd_pcm_open ();
9244   ;
9245   return 0;
9246 }
9247 _ACEOF
9248 rm -f conftest.$ac_objext conftest$ac_exeext
9249 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9250   (eval $ac_link) 2>&5
9251   ac_status=$?
9252   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9253   (exit $ac_status); } &&
9254          { ac_try='test -s conftest$ac_exeext'
9255   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9256   (eval $ac_try) 2>&5
9257   ac_status=$?
9258   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9259   (exit $ac_status); }; }; then
9260   ac_cv_lib_asound_snd_pcm_open=yes
9261 else
9262   echo "$as_me: failed program was:" >&5
9263 cat conftest.$ac_ext >&5
9264 ac_cv_lib_asound_snd_pcm_open=no
9265 fi
9266 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9267 LIBS=$ac_check_lib_save_LIBS
9268 fi
9269 echo "$as_me:$LINENO: result: $ac_cv_lib_asound_snd_pcm_open" >&5
9270 echo "${ECHO_T}$ac_cv_lib_asound_snd_pcm_open" >&6
9271 if test $ac_cv_lib_asound_snd_pcm_open = yes; then
9272
9273 cat >>confdefs.h <<\_ACEOF
9274 #define HAVE_ALSA 1
9275 _ACEOF
9276
9277         ALSALIBS="-lasound"
9278 fi
9279
9280 fi
9281
9282
9283 AUDIOIOLIBS=""
9284
9285
9286 for ac_header in libaudioio.h
9287 do
9288 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9289 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9290   echo "$as_me:$LINENO: checking for $ac_header" >&5
9291 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9292 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9293   echo $ECHO_N "(cached) $ECHO_C" >&6
9294 fi
9295 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9296 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9297 else
9298   # Is the header compilable?
9299 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9300 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9301 cat >conftest.$ac_ext <<_ACEOF
9302 #line $LINENO "configure"
9303 #include "confdefs.h"
9304 $ac_includes_default
9305 #include <$ac_header>
9306 _ACEOF
9307 rm -f conftest.$ac_objext
9308 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9309   (eval $ac_compile) 2>&5
9310   ac_status=$?
9311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9312   (exit $ac_status); } &&
9313          { ac_try='test -s conftest.$ac_objext'
9314   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9315   (eval $ac_try) 2>&5
9316   ac_status=$?
9317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9318   (exit $ac_status); }; }; then
9319   ac_header_compiler=yes
9320 else
9321   echo "$as_me: failed program was:" >&5
9322 cat conftest.$ac_ext >&5
9323 ac_header_compiler=no
9324 fi
9325 rm -f conftest.$ac_objext conftest.$ac_ext
9326 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9327 echo "${ECHO_T}$ac_header_compiler" >&6
9328
9329 # Is the header present?
9330 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9331 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9332 cat >conftest.$ac_ext <<_ACEOF
9333 #line $LINENO "configure"
9334 #include "confdefs.h"
9335 #include <$ac_header>
9336 _ACEOF
9337 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9338   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9339   ac_status=$?
9340   grep -v '^ *+' conftest.er1 >conftest.err
9341   rm -f conftest.er1
9342   cat conftest.err >&5
9343   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9344   (exit $ac_status); } >/dev/null; then
9345   if test -s conftest.err; then
9346     ac_cpp_err=$ac_c_preproc_warn_flag
9347   else
9348     ac_cpp_err=
9349   fi
9350 else
9351   ac_cpp_err=yes
9352 fi
9353 if test -z "$ac_cpp_err"; then
9354   ac_header_preproc=yes
9355 else
9356   echo "$as_me: failed program was:" >&5
9357   cat conftest.$ac_ext >&5
9358   ac_header_preproc=no
9359 fi
9360 rm -f conftest.err conftest.$ac_ext
9361 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9362 echo "${ECHO_T}$ac_header_preproc" >&6
9363
9364 # So?  What about this header?
9365 case $ac_header_compiler:$ac_header_preproc in
9366   yes:no )
9367     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9368 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9369     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9370 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
9371   no:yes )
9372     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9373 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9374     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9375 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9376     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9377 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
9378 esac
9379 echo "$as_me:$LINENO: checking for $ac_header" >&5
9380 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9381 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9382   echo $ECHO_N "(cached) $ECHO_C" >&6
9383 else
9384   eval "$as_ac_Header=$ac_header_preproc"
9385 fi
9386 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9387 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9388
9389 fi
9390 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9391   cat >>confdefs.h <<_ACEOF
9392 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9393 _ACEOF
9394  echo "$as_me:$LINENO: checking for AudioIOGetVersion in -laudioio" >&5
9395 echo $ECHO_N "checking for AudioIOGetVersion in -laudioio... $ECHO_C" >&6
9396 if test "${ac_cv_lib_audioio_AudioIOGetVersion+set}" = set; then
9397   echo $ECHO_N "(cached) $ECHO_C" >&6
9398 else
9399   ac_check_lib_save_LIBS=$LIBS
9400 LIBS="-laudioio  $LIBS"
9401 cat >conftest.$ac_ext <<_ACEOF
9402 #line $LINENO "configure"
9403 #include "confdefs.h"
9404
9405 /* Override any gcc2 internal prototype to avoid an error.  */
9406 #ifdef __cplusplus
9407 extern "C"
9408 #endif
9409 /* We use char because int might match the return type of a gcc2
9410    builtin and then its argument prototype would still apply.  */
9411 char AudioIOGetVersion ();
9412 int
9413 main ()
9414 {
9415 AudioIOGetVersion ();
9416   ;
9417   return 0;
9418 }
9419 _ACEOF
9420 rm -f conftest.$ac_objext conftest$ac_exeext
9421 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9422   (eval $ac_link) 2>&5
9423   ac_status=$?
9424   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9425   (exit $ac_status); } &&
9426          { ac_try='test -s conftest$ac_exeext'
9427   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9428   (eval $ac_try) 2>&5
9429   ac_status=$?
9430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9431   (exit $ac_status); }; }; then
9432   ac_cv_lib_audioio_AudioIOGetVersion=yes
9433 else
9434   echo "$as_me: failed program was:" >&5
9435 cat conftest.$ac_ext >&5
9436 ac_cv_lib_audioio_AudioIOGetVersion=no
9437 fi
9438 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9439 LIBS=$ac_check_lib_save_LIBS
9440 fi
9441 echo "$as_me:$LINENO: result: $ac_cv_lib_audioio_AudioIOGetVersion" >&5
9442 echo "${ECHO_T}$ac_cv_lib_audioio_AudioIOGetVersion" >&6
9443 if test $ac_cv_lib_audioio_AudioIOGetVersion = yes; then
9444   AUDIOIOLIBS="-laudioio"
9445
9446 cat >>confdefs.h <<\_ACEOF
9447 #define HAVE_LIBAUDIOIO 1
9448 _ACEOF
9449
9450 fi
9451
9452 fi
9453
9454 done
9455
9456
9457
9458 echo "$as_me:$LINENO: checking whether mmap64 works defined as mmap" >&5
9459 echo $ECHO_N "checking whether mmap64 works defined as mmap... $ECHO_C" >&6
9460 if test "${ac_cv_mmap64_works+set}" = set; then
9461   echo $ECHO_N "(cached) $ECHO_C" >&6
9462 else
9463   if test "$cross_compiling" = yes; then
9464   ac_cv_mmap64_works="no"
9465 else
9466   cat >conftest.$ac_ext <<_ACEOF
9467 #line $LINENO "configure"
9468 #include "confdefs.h"
9469
9470                 #define _FILE_OFFSET_BITS 64
9471                 #include <stdio.h>
9472                 #include <unistd.h>
9473                 #include <fcntl.h>
9474                 #include <sys/mman.h>
9475                 #include <errno.h>
9476
9477                 int main(int argc,char **argv) {
9478                         int fd = open("conftest.map",O_CREAT|O_RDWR,0600);
9479                         if (fd == -1) exit(1);
9480
9481                         unlink("conftest.map");
9482
9483                         write(fd,"test",4);
9484
9485                         if ((-1 == mmap(0,4,PROT_READ|PROT_WRITE,MAP_SHARED,fd,0)) &&
9486                             (errno == EINVAL)
9487                         ) {
9488                                 exit(1);
9489                         }
9490                         close(fd);
9491                         fprintf(stderr,"success!\n");
9492                         exit(0);
9493                 }
9494
9495
9496 _ACEOF
9497 rm -f conftest$ac_exeext
9498 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9499   (eval $ac_link) 2>&5
9500   ac_status=$?
9501   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9502   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9503   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9504   (eval $ac_try) 2>&5
9505   ac_status=$?
9506   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9507   (exit $ac_status); }; }; then
9508   ac_cv_mmap64_works="yes"
9509 else
9510   echo "$as_me: program exited with status $ac_status" >&5
9511 echo "$as_me: failed program was:" >&5
9512 cat conftest.$ac_ext >&5
9513 ( exit $ac_status )
9514 ac_cv_mmap64_works="no"
9515 fi
9516 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9517 fi
9518 fi
9519 echo "$as_me:$LINENO: result: $ac_cv_mmap64_works" >&5
9520 echo "${ECHO_T}$ac_cv_mmap64_works" >&6
9521
9522 if test "$ac_cv_mmap64_works" = "yes"
9523 then
9524
9525 cat >>confdefs.h <<\_ACEOF
9526 #define _FILE_OFFSET_BITS 64
9527 _ACEOF
9528
9529 fi
9530
9531
9532 if test "x${GCC}" = "xyes"
9533 then
9534   CFLAGS="$CFLAGS -Wall"
9535   echo "$as_me:$LINENO: checking for gcc strength-reduce bug" >&5
9536 echo $ECHO_N "checking for gcc strength-reduce bug... $ECHO_C" >&6
9537 if test "${ac_cv_c_gcc_strength_bug+set}" = set; then
9538   echo $ECHO_N "(cached) $ECHO_C" >&6
9539 else
9540   if test "$cross_compiling" = yes; then
9541   ac_cv_c_gcc_strength_bug="yes"
9542 else
9543   cat >conftest.$ac_ext <<_ACEOF
9544 #line $LINENO "configure"
9545 #include "confdefs.h"
9546
9547 int     L[4] = {0,1,2,3};
9548 int main(void) {
9549   static int Array[3];
9550   unsigned int B = 3;
9551   int i;
9552   for(i=0; i<B; i++) Array[i] = i - 3;
9553   for(i=0; i<4 - 1; i++) L[i] = L[i + 1];
9554   L[i] = 4;
9555
9556   exit( Array[1] != -2 || L[2] != 3);
9557 }
9558 _ACEOF
9559 rm -f conftest$ac_exeext
9560 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9561   (eval $ac_link) 2>&5
9562   ac_status=$?
9563   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9564   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9565   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9566   (eval $ac_try) 2>&5
9567   ac_status=$?
9568   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9569   (exit $ac_status); }; }; then
9570   ac_cv_c_gcc_strength_bug="no"
9571 else
9572   echo "$as_me: program exited with status $ac_status" >&5
9573 echo "$as_me: failed program was:" >&5
9574 cat conftest.$ac_ext >&5
9575 ( exit $ac_status )
9576 ac_cv_c_gcc_strength_bug="yes"
9577 fi
9578 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9579 fi
9580 fi
9581 echo "$as_me:$LINENO: result: $ac_cv_c_gcc_strength_bug" >&5
9582 echo "${ECHO_T}$ac_cv_c_gcc_strength_bug" >&6
9583   if test "$ac_cv_c_gcc_strength_bug" = "yes"
9584   then
9585     CFLAGS="$CFLAGS -fno-strength-reduce"
9586   fi
9587
9588     echo "$as_me:$LINENO: checking for gcc -mpreferred-stack-boundary=2 support" >&5
9589 echo $ECHO_N "checking for gcc -mpreferred-stack-boundary=2 support... $ECHO_C" >&6
9590 if test "${ac_cv_c_gcc_stack_boundary+set}" = set; then
9591   echo $ECHO_N "(cached) $ECHO_C" >&6
9592 else
9593   ac_wine_try_cflags_saved=$CFLAGS
9594 CFLAGS="$CFLAGS -mpreferred-stack-boundary=2"
9595 cat >conftest.$ac_ext <<_ACEOF
9596 #line $LINENO "configure"
9597 #include "confdefs.h"
9598
9599 int
9600 main ()
9601 {
9602
9603   ;
9604   return 0;
9605 }
9606 _ACEOF
9607 rm -f conftest.$ac_objext conftest$ac_exeext
9608 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9609   (eval $ac_link) 2>&5
9610   ac_status=$?
9611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9612   (exit $ac_status); } &&
9613          { ac_try='test -s conftest$ac_exeext'
9614   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9615   (eval $ac_try) 2>&5
9616   ac_status=$?
9617   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9618   (exit $ac_status); }; }; then
9619   ac_cv_c_gcc_stack_boundary="yes"
9620 else
9621   echo "$as_me: failed program was:" >&5
9622 cat conftest.$ac_ext >&5
9623 ac_cv_c_gcc_stack_boundary="no"
9624 fi
9625 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9626 CFLAGS=$ac_wine_try_cflags_saved
9627 fi
9628 echo "$as_me:$LINENO: result: $ac_cv_c_gcc_stack_boundary" >&5
9629 echo "${ECHO_T}$ac_cv_c_gcc_stack_boundary" >&6
9630   if test "$ac_cv_c_gcc_stack_boundary" = "yes"
9631   then
9632     CFLAGS="$CFLAGS -mpreferred-stack-boundary=2"
9633   fi
9634 fi
9635
9636
9637 echo "$as_me:$LINENO: checking how to define a function in assembly code" >&5
9638 echo $ECHO_N "checking how to define a function in assembly code... $ECHO_C" >&6
9639 if test "${ac_cv_asm_func_def+set}" = set; then
9640   echo $ECHO_N "(cached) $ECHO_C" >&6
9641 else
9642   cat >conftest.$ac_ext <<_ACEOF
9643 #line $LINENO "configure"
9644 #include "confdefs.h"
9645 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"); }
9646
9647 int
9648 main ()
9649 {
9650
9651   ;
9652   return 0;
9653 }
9654 _ACEOF
9655 rm -f conftest.$ac_objext conftest$ac_exeext
9656 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9657   (eval $ac_link) 2>&5
9658   ac_status=$?
9659   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9660   (exit $ac_status); } &&
9661          { ac_try='test -s conftest$ac_exeext'
9662   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9663   (eval $ac_try) 2>&5
9664   ac_status=$?
9665   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9666   (exit $ac_status); }; }; then
9667   ac_cv_asm_func_def=".def"
9668 else
9669   echo "$as_me: failed program was:" >&5
9670 cat conftest.$ac_ext >&5
9671 cat >conftest.$ac_ext <<_ACEOF
9672 #line $LINENO "configure"
9673 #include "confdefs.h"
9674 void ac_asm(void) { asm("\t.globl _ac_test\n\t.type _ac_test,@function\n_ac_test:\t.long 0"); }
9675
9676 int
9677 main ()
9678 {
9679
9680   ;
9681   return 0;
9682 }
9683 _ACEOF
9684 rm -f conftest.$ac_objext conftest$ac_exeext
9685 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9686   (eval $ac_link) 2>&5
9687   ac_status=$?
9688   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9689   (exit $ac_status); } &&
9690          { ac_try='test -s conftest$ac_exeext'
9691   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9692   (eval $ac_try) 2>&5
9693   ac_status=$?
9694   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9695   (exit $ac_status); }; }; then
9696   ac_cv_asm_func_def=".type @function"
9697 else
9698   echo "$as_me: failed program was:" >&5
9699 cat conftest.$ac_ext >&5
9700 cat >conftest.$ac_ext <<_ACEOF
9701 #line $LINENO "configure"
9702 #include "confdefs.h"
9703 void ac_asm(void) { asm("\t.globl _ac_test\n\t.type _ac_test,2\n_ac_test:\t.long 0"); }
9704
9705 int
9706 main ()
9707 {
9708
9709   ;
9710   return 0;
9711 }
9712 _ACEOF
9713 rm -f conftest.$ac_objext conftest$ac_exeext
9714 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9715   (eval $ac_link) 2>&5
9716   ac_status=$?
9717   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9718   (exit $ac_status); } &&
9719          { ac_try='test -s conftest$ac_exeext'
9720   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9721   (eval $ac_try) 2>&5
9722   ac_status=$?
9723   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9724   (exit $ac_status); }; }; then
9725   ac_cv_asm_func_def=".type 2"
9726 else
9727   echo "$as_me: failed program was:" >&5
9728 cat conftest.$ac_ext >&5
9729 ac_cv_asm_func_def="unknown"
9730 fi
9731 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9732 fi
9733 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9734 fi
9735 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9736 fi
9737 echo "$as_me:$LINENO: result: $ac_cv_asm_func_def" >&5
9738 echo "${ECHO_T}$ac_cv_asm_func_def" >&6
9739
9740
9741
9742 case "$ac_cv_asm_func_def" in
9743   ".def")
9744      cat >>confdefs.h <<\_ACEOF
9745 #define __ASM_FUNC(name) ".def " __ASM_NAME(name) "; .scl 2; .type 32; .endef"
9746 _ACEOF
9747  ;;
9748   ".type @function")
9749      cat >>confdefs.h <<\_ACEOF
9750 #define __ASM_FUNC(name) ".type " __ASM_NAME(name) ",@function"
9751 _ACEOF
9752  ;;
9753   ".type 2")
9754      cat >>confdefs.h <<\_ACEOF
9755 #define __ASM_FUNC(name) ".type " __ASM_NAME(name) ",2"
9756 _ACEOF
9757  ;;
9758   *)
9759      cat >>confdefs.h <<\_ACEOF
9760 #define __ASM_FUNC(name) ""
9761 _ACEOF
9762  ;;
9763 esac
9764
9765
9766 echo "$as_me:$LINENO: checking whether external symbols need an underscore prefix" >&5
9767 echo $ECHO_N "checking whether external symbols need an underscore prefix... $ECHO_C" >&6
9768 if test "${ac_cv_c_extern_prefix+set}" = set; then
9769   echo $ECHO_N "(cached) $ECHO_C" >&6
9770 else
9771   cat >conftest.$ac_ext <<_ACEOF
9772 #line $LINENO "configure"
9773 #include "confdefs.h"
9774 void ac_asm(void) { asm(".globl _ac_test\n_ac_test:\t.long 0"); }
9775 extern int ac_test;
9776 int
9777 main ()
9778 {
9779 if (ac_test) return 1
9780   ;
9781   return 0;
9782 }
9783 _ACEOF
9784 rm -f conftest.$ac_objext conftest$ac_exeext
9785 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9786   (eval $ac_link) 2>&5
9787   ac_status=$?
9788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9789   (exit $ac_status); } &&
9790          { ac_try='test -s conftest$ac_exeext'
9791   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9792   (eval $ac_try) 2>&5
9793   ac_status=$?
9794   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9795   (exit $ac_status); }; }; then
9796   ac_cv_c_extern_prefix="yes"
9797 else
9798   echo "$as_me: failed program was:" >&5
9799 cat conftest.$ac_ext >&5
9800 ac_cv_c_extern_prefix="no"
9801 fi
9802 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9803 fi
9804 echo "$as_me:$LINENO: result: $ac_cv_c_extern_prefix" >&5
9805 echo "${ECHO_T}$ac_cv_c_extern_prefix" >&6
9806
9807
9808
9809 if test "$ac_cv_c_extern_prefix" = "yes"
9810 then
9811   cat >>confdefs.h <<\_ACEOF
9812 #define __ASM_NAME(name) "_" name
9813 _ACEOF
9814
9815 else
9816   cat >>confdefs.h <<\_ACEOF
9817 #define __ASM_NAME(name) name
9818 _ACEOF
9819
9820 fi
9821
9822
9823 echo "$as_me:$LINENO: checking whether assembler accepts .string" >&5
9824 echo $ECHO_N "checking whether assembler accepts .string... $ECHO_C" >&6
9825 if test "${ac_cv_c_asm_string+set}" = set; then
9826   echo $ECHO_N "(cached) $ECHO_C" >&6
9827 else
9828   cat >conftest.$ac_ext <<_ACEOF
9829 #line $LINENO "configure"
9830 #include "confdefs.h"
9831 void ac_asm(void) { asm(".data\n\t.string \"test\"\n\t.text"); }
9832
9833 int
9834 main ()
9835 {
9836
9837   ;
9838   return 0;
9839 }
9840 _ACEOF
9841 rm -f conftest.$ac_objext conftest$ac_exeext
9842 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9843   (eval $ac_link) 2>&5
9844   ac_status=$?
9845   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9846   (exit $ac_status); } &&
9847          { ac_try='test -s conftest$ac_exeext'
9848   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9849   (eval $ac_try) 2>&5
9850   ac_status=$?
9851   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9852   (exit $ac_status); }; }; then
9853   ac_cv_c_asm_string="yes"
9854 else
9855   echo "$as_me: failed program was:" >&5
9856 cat conftest.$ac_ext >&5
9857 ac_cv_c_asm_string="no"
9858 fi
9859 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9860 fi
9861 echo "$as_me:$LINENO: result: $ac_cv_c_asm_string" >&5
9862 echo "${ECHO_T}$ac_cv_c_asm_string" >&6
9863 if test "$ac_cv_c_asm_string" = "yes"
9864 then
9865
9866 cat >>confdefs.h <<\_ACEOF
9867 #define HAVE_ASM_STRING 1
9868 _ACEOF
9869
9870 fi
9871
9872
9873 DLLEXT=""
9874
9875 DLLFLAGS=""
9876
9877 DLLIBS=""
9878
9879 LDDLLFLAGS=""
9880
9881 LDSHARED=""
9882
9883 LIBEXT="so"
9884
9885 IMPLIBEXT="def"
9886
9887
9888 case $host_os in
9889   cygwin*|mingw32*)
9890     if test -n "$ac_tool_prefix"; then
9891   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
9892 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
9893 echo "$as_me:$LINENO: checking for $ac_word" >&5
9894 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9895 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
9896   echo $ECHO_N "(cached) $ECHO_C" >&6
9897 else
9898   if test -n "$DLLTOOL"; then
9899   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
9900 else
9901 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9902 for as_dir in $PATH
9903 do
9904   IFS=$as_save_IFS
9905   test -z "$as_dir" && as_dir=.
9906   for ac_exec_ext in '' $ac_executable_extensions; do
9907   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9908     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
9909     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9910     break 2
9911   fi
9912 done
9913 done
9914
9915 fi
9916 fi
9917 DLLTOOL=$ac_cv_prog_DLLTOOL
9918 if test -n "$DLLTOOL"; then
9919   echo "$as_me:$LINENO: result: $DLLTOOL" >&5
9920 echo "${ECHO_T}$DLLTOOL" >&6
9921 else
9922   echo "$as_me:$LINENO: result: no" >&5
9923 echo "${ECHO_T}no" >&6
9924 fi
9925
9926 fi
9927 if test -z "$ac_cv_prog_DLLTOOL"; then
9928   ac_ct_DLLTOOL=$DLLTOOL
9929   # Extract the first word of "dlltool", so it can be a program name with args.
9930 set dummy dlltool; ac_word=$2
9931 echo "$as_me:$LINENO: checking for $ac_word" >&5
9932 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9933 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
9934   echo $ECHO_N "(cached) $ECHO_C" >&6
9935 else
9936   if test -n "$ac_ct_DLLTOOL"; then
9937   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
9938 else
9939 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9940 for as_dir in $PATH
9941 do
9942   IFS=$as_save_IFS
9943   test -z "$as_dir" && as_dir=.
9944   for ac_exec_ext in '' $ac_executable_extensions; do
9945   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9946     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
9947     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9948     break 2
9949   fi
9950 done
9951 done
9952
9953   test -z "$ac_cv_prog_ac_ct_DLLTOOL" && ac_cv_prog_ac_ct_DLLTOOL="false"
9954 fi
9955 fi
9956 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
9957 if test -n "$ac_ct_DLLTOOL"; then
9958   echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
9959 echo "${ECHO_T}$ac_ct_DLLTOOL" >&6
9960 else
9961   echo "$as_me:$LINENO: result: no" >&5
9962 echo "${ECHO_T}no" >&6
9963 fi
9964
9965   DLLTOOL=$ac_ct_DLLTOOL
9966 else
9967   DLLTOOL="$ac_cv_prog_DLLTOOL"
9968 fi
9969
9970     if test -n "$ac_tool_prefix"; then
9971   # Extract the first word of "${ac_tool_prefix}dllwrap", so it can be a program name with args.
9972 set dummy ${ac_tool_prefix}dllwrap; ac_word=$2
9973 echo "$as_me:$LINENO: checking for $ac_word" >&5
9974 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9975 if test "${ac_cv_prog_DLLWRAP+set}" = set; then
9976   echo $ECHO_N "(cached) $ECHO_C" >&6
9977 else
9978   if test -n "$DLLWRAP"; then
9979   ac_cv_prog_DLLWRAP="$DLLWRAP" # Let the user override the test.
9980 else
9981 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9982 for as_dir in $PATH
9983 do
9984   IFS=$as_save_IFS
9985   test -z "$as_dir" && as_dir=.
9986   for ac_exec_ext in '' $ac_executable_extensions; do
9987   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9988     ac_cv_prog_DLLWRAP="${ac_tool_prefix}dllwrap"
9989     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9990     break 2
9991   fi
9992 done
9993 done
9994
9995 fi
9996 fi
9997 DLLWRAP=$ac_cv_prog_DLLWRAP
9998 if test -n "$DLLWRAP"; then
9999   echo "$as_me:$LINENO: result: $DLLWRAP" >&5
10000 echo "${ECHO_T}$DLLWRAP" >&6
10001 else
10002   echo "$as_me:$LINENO: result: no" >&5
10003 echo "${ECHO_T}no" >&6
10004 fi
10005
10006 fi
10007 if test -z "$ac_cv_prog_DLLWRAP"; then
10008   ac_ct_DLLWRAP=$DLLWRAP
10009   # Extract the first word of "dllwrap", so it can be a program name with args.
10010 set dummy dllwrap; ac_word=$2
10011 echo "$as_me:$LINENO: checking for $ac_word" >&5
10012 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10013 if test "${ac_cv_prog_ac_ct_DLLWRAP+set}" = set; then
10014   echo $ECHO_N "(cached) $ECHO_C" >&6
10015 else
10016   if test -n "$ac_ct_DLLWRAP"; then
10017   ac_cv_prog_ac_ct_DLLWRAP="$ac_ct_DLLWRAP" # Let the user override the test.
10018 else
10019 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10020 for as_dir in $PATH
10021 do
10022   IFS=$as_save_IFS
10023   test -z "$as_dir" && as_dir=.
10024   for ac_exec_ext in '' $ac_executable_extensions; do
10025   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10026     ac_cv_prog_ac_ct_DLLWRAP="dllwrap"
10027     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10028     break 2
10029   fi
10030 done
10031 done
10032
10033   test -z "$ac_cv_prog_ac_ct_DLLWRAP" && ac_cv_prog_ac_ct_DLLWRAP="false"
10034 fi
10035 fi
10036 ac_ct_DLLWRAP=$ac_cv_prog_ac_ct_DLLWRAP
10037 if test -n "$ac_ct_DLLWRAP"; then
10038   echo "$as_me:$LINENO: result: $ac_ct_DLLWRAP" >&5
10039 echo "${ECHO_T}$ac_ct_DLLWRAP" >&6
10040 else
10041   echo "$as_me:$LINENO: result: no" >&5
10042 echo "${ECHO_T}no" >&6
10043 fi
10044
10045   DLLWRAP=$ac_ct_DLLWRAP
10046 else
10047   DLLWRAP="$ac_cv_prog_DLLWRAP"
10048 fi
10049
10050     if test "$DLLWRAP" = "false"; then
10051       LIBEXT="a"
10052     else
10053             LIBEXT="dll"
10054     fi
10055     IMPLIBEXT="a"
10056     ;;
10057   *)
10058
10059 for ac_header in dlfcn.h
10060 do
10061 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10062 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10063   echo "$as_me:$LINENO: checking for $ac_header" >&5
10064 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10065 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10066   echo $ECHO_N "(cached) $ECHO_C" >&6
10067 fi
10068 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10069 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10070 else
10071   # Is the header compilable?
10072 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10073 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10074 cat >conftest.$ac_ext <<_ACEOF
10075 #line $LINENO "configure"
10076 #include "confdefs.h"
10077 $ac_includes_default
10078 #include <$ac_header>
10079 _ACEOF
10080 rm -f conftest.$ac_objext
10081 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10082   (eval $ac_compile) 2>&5
10083   ac_status=$?
10084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10085   (exit $ac_status); } &&
10086          { ac_try='test -s conftest.$ac_objext'
10087   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10088   (eval $ac_try) 2>&5
10089   ac_status=$?
10090   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10091   (exit $ac_status); }; }; then
10092   ac_header_compiler=yes
10093 else
10094   echo "$as_me: failed program was:" >&5
10095 cat conftest.$ac_ext >&5
10096 ac_header_compiler=no
10097 fi
10098 rm -f conftest.$ac_objext conftest.$ac_ext
10099 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10100 echo "${ECHO_T}$ac_header_compiler" >&6
10101
10102 # Is the header present?
10103 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10104 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10105 cat >conftest.$ac_ext <<_ACEOF
10106 #line $LINENO "configure"
10107 #include "confdefs.h"
10108 #include <$ac_header>
10109 _ACEOF
10110 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10111   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10112   ac_status=$?
10113   grep -v '^ *+' conftest.er1 >conftest.err
10114   rm -f conftest.er1
10115   cat conftest.err >&5
10116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10117   (exit $ac_status); } >/dev/null; then
10118   if test -s conftest.err; then
10119     ac_cpp_err=$ac_c_preproc_warn_flag
10120   else
10121     ac_cpp_err=
10122   fi
10123 else
10124   ac_cpp_err=yes
10125 fi
10126 if test -z "$ac_cpp_err"; then
10127   ac_header_preproc=yes
10128 else
10129   echo "$as_me: failed program was:" >&5
10130   cat conftest.$ac_ext >&5
10131   ac_header_preproc=no
10132 fi
10133 rm -f conftest.err conftest.$ac_ext
10134 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10135 echo "${ECHO_T}$ac_header_preproc" >&6
10136
10137 # So?  What about this header?
10138 case $ac_header_compiler:$ac_header_preproc in
10139   yes:no )
10140     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10141 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10142     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10143 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
10144   no:yes )
10145     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10146 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10147     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10148 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10149     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10150 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
10151 esac
10152 echo "$as_me:$LINENO: checking for $ac_header" >&5
10153 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10154 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10155   echo $ECHO_N "(cached) $ECHO_C" >&6
10156 else
10157   eval "$as_ac_Header=$ac_header_preproc"
10158 fi
10159 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10160 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10161
10162 fi
10163 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10164   cat >>confdefs.h <<_ACEOF
10165 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10166 _ACEOF
10167
10168 for ac_func in dlopen
10169 do
10170 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10171 echo "$as_me:$LINENO: checking for $ac_func" >&5
10172 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10173 if eval "test \"\${$as_ac_var+set}\" = set"; then
10174   echo $ECHO_N "(cached) $ECHO_C" >&6
10175 else
10176   cat >conftest.$ac_ext <<_ACEOF
10177 #line $LINENO "configure"
10178 #include "confdefs.h"
10179 /* System header to define __stub macros and hopefully few prototypes,
10180     which can conflict with char $ac_func (); below.  */
10181 #include <assert.h>
10182 /* Override any gcc2 internal prototype to avoid an error.  */
10183 #ifdef __cplusplus
10184 extern "C"
10185 #endif
10186 /* We use char because int might match the return type of a gcc2
10187    builtin and then its argument prototype would still apply.  */
10188 char $ac_func ();
10189 char (*f) ();
10190
10191 int
10192 main ()
10193 {
10194 /* The GNU C library defines this for functions which it implements
10195     to always fail with ENOSYS.  Some functions are actually named
10196     something starting with __ and the normal name is an alias.  */
10197 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10198 choke me
10199 #else
10200 f = $ac_func;
10201 #endif
10202
10203   ;
10204   return 0;
10205 }
10206 _ACEOF
10207 rm -f conftest.$ac_objext conftest$ac_exeext
10208 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10209   (eval $ac_link) 2>&5
10210   ac_status=$?
10211   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10212   (exit $ac_status); } &&
10213          { ac_try='test -s conftest$ac_exeext'
10214   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10215   (eval $ac_try) 2>&5
10216   ac_status=$?
10217   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10218   (exit $ac_status); }; }; then
10219   eval "$as_ac_var=yes"
10220 else
10221   echo "$as_me: failed program was:" >&5
10222 cat conftest.$ac_ext >&5
10223 eval "$as_ac_var=no"
10224 fi
10225 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10226 fi
10227 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10228 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10229 if test `eval echo '${'$as_ac_var'}'` = yes; then
10230   cat >>confdefs.h <<_ACEOF
10231 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10232 _ACEOF
10233
10234 else
10235   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10236 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
10237 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10238   echo $ECHO_N "(cached) $ECHO_C" >&6
10239 else
10240   ac_check_lib_save_LIBS=$LIBS
10241 LIBS="-ldl  $LIBS"
10242 cat >conftest.$ac_ext <<_ACEOF
10243 #line $LINENO "configure"
10244 #include "confdefs.h"
10245
10246 /* Override any gcc2 internal prototype to avoid an error.  */
10247 #ifdef __cplusplus
10248 extern "C"
10249 #endif
10250 /* We use char because int might match the return type of a gcc2
10251    builtin and then its argument prototype would still apply.  */
10252 char dlopen ();
10253 int
10254 main ()
10255 {
10256 dlopen ();
10257   ;
10258   return 0;
10259 }
10260 _ACEOF
10261 rm -f conftest.$ac_objext conftest$ac_exeext
10262 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10263   (eval $ac_link) 2>&5
10264   ac_status=$?
10265   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10266   (exit $ac_status); } &&
10267          { ac_try='test -s conftest$ac_exeext'
10268   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10269   (eval $ac_try) 2>&5
10270   ac_status=$?
10271   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10272   (exit $ac_status); }; }; then
10273   ac_cv_lib_dl_dlopen=yes
10274 else
10275   echo "$as_me: failed program was:" >&5
10276 cat conftest.$ac_ext >&5
10277 ac_cv_lib_dl_dlopen=no
10278 fi
10279 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10280 LIBS=$ac_check_lib_save_LIBS
10281 fi
10282 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10283 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10284 if test $ac_cv_lib_dl_dlopen = yes; then
10285
10286 cat >>confdefs.h <<\_ACEOF
10287 #define HAVE_DLOPEN 1
10288 _ACEOF
10289
10290                           DLLIBS="-ldl"
10291 else
10292   LIBEXT="a"
10293 fi
10294
10295 fi
10296 done
10297
10298 else
10299   LIBEXT="a"
10300 fi
10301
10302 done
10303
10304
10305     if test "$LIBEXT" = "so"
10306     then
10307       DLLFLAGS="-fPIC"
10308       DLLEXT=".so"
10309       echo "$as_me:$LINENO: checking whether we can build a GNU style ELF dll" >&5
10310 echo $ECHO_N "checking whether we can build a GNU style ELF dll... $ECHO_C" >&6
10311 if test "${ac_cv_c_dll_gnuelf+set}" = set; then
10312   echo $ECHO_N "(cached) $ECHO_C" >&6
10313 else
10314   ac_wine_try_cflags_saved=$CFLAGS
10315 CFLAGS="$CFLAGS -fPIC -shared -Wl,-soname,conftest.so.1.0,-Bsymbolic"
10316 cat >conftest.$ac_ext <<_ACEOF
10317 #line $LINENO "configure"
10318 #include "confdefs.h"
10319
10320 int
10321 main ()
10322 {
10323
10324   ;
10325   return 0;
10326 }
10327 _ACEOF
10328 rm -f conftest.$ac_objext conftest$ac_exeext
10329 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10330   (eval $ac_link) 2>&5
10331   ac_status=$?
10332   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10333   (exit $ac_status); } &&
10334          { ac_try='test -s conftest$ac_exeext'
10335   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10336   (eval $ac_try) 2>&5
10337   ac_status=$?
10338   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10339   (exit $ac_status); }; }; then
10340   ac_cv_c_dll_gnuelf="yes"
10341 else
10342   echo "$as_me: failed program was:" >&5
10343 cat conftest.$ac_ext >&5
10344 ac_cv_c_dll_gnuelf="no"
10345 fi
10346 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10347 CFLAGS=$ac_wine_try_cflags_saved
10348 fi
10349 echo "$as_me:$LINENO: result: $ac_cv_c_dll_gnuelf" >&5
10350 echo "${ECHO_T}$ac_cv_c_dll_gnuelf" >&6
10351       if test "$ac_cv_c_dll_gnuelf" = "yes"
10352       then
10353         LDSHARED="\$(CC) -shared \$(SONAME:%=-Wl,-soname,%)"
10354         LDDLLFLAGS="-Wl,-Bsymbolic"
10355         echo "$as_me:$LINENO: checking whether the linker accepts -z defs" >&5
10356 echo $ECHO_N "checking whether the linker accepts -z defs... $ECHO_C" >&6
10357 if test "${ac_cv_c_dll_zdefs+set}" = set; then
10358   echo $ECHO_N "(cached) $ECHO_C" >&6
10359 else
10360   ac_wine_try_cflags_saved=$CFLAGS
10361 CFLAGS="$CFLAGS -fPIC -shared -Wl,-Bsymbolic,-z,defs"
10362 cat >conftest.$ac_ext <<_ACEOF
10363 #line $LINENO "configure"
10364 #include "confdefs.h"
10365
10366 int
10367 main ()
10368 {
10369
10370   ;
10371   return 0;
10372 }
10373 _ACEOF
10374 rm -f conftest.$ac_objext conftest$ac_exeext
10375 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10376   (eval $ac_link) 2>&5
10377   ac_status=$?
10378   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10379   (exit $ac_status); } &&
10380          { ac_try='test -s conftest$ac_exeext'
10381   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10382   (eval $ac_try) 2>&5
10383   ac_status=$?
10384   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10385   (exit $ac_status); }; }; then
10386   ac_cv_c_dll_zdefs="yes"
10387 else
10388   echo "$as_me: failed program was:" >&5
10389 cat conftest.$ac_ext >&5
10390 ac_cv_c_dll_zdefs="no"
10391 fi
10392 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10393 CFLAGS=$ac_wine_try_cflags_saved
10394 fi
10395 echo "$as_me:$LINENO: result: $ac_cv_c_dll_zdefs" >&5
10396 echo "${ECHO_T}$ac_cv_c_dll_zdefs" >&6
10397         if test "$ac_cv_c_dll_zdefs" = "yes"
10398         then
10399           LDDLLFLAGS="$LDDLLFLAGS,-z,defs"
10400         fi
10401       else
10402         echo "$as_me:$LINENO: checking whether we can build a UnixWare (Solaris) dll" >&5
10403 echo $ECHO_N "checking whether we can build a UnixWare (Solaris) dll... $ECHO_C" >&6
10404 if test "${ac_cv_c_dll_unixware+set}" = set; then
10405   echo $ECHO_N "(cached) $ECHO_C" >&6
10406 else
10407   ac_wine_try_cflags_saved=$CFLAGS
10408 CFLAGS="$CFLAGS -fPIC -Wl,-G,-h,conftest.so.1.0,-B,symbolic"
10409 cat >conftest.$ac_ext <<_ACEOF
10410 #line $LINENO "configure"
10411 #include "confdefs.h"
10412
10413 int
10414 main ()
10415 {
10416
10417   ;
10418   return 0;
10419 }
10420 _ACEOF
10421 rm -f conftest.$ac_objext conftest$ac_exeext
10422 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10423   (eval $ac_link) 2>&5
10424   ac_status=$?
10425   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10426   (exit $ac_status); } &&
10427          { ac_try='test -s conftest$ac_exeext'
10428   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10429   (eval $ac_try) 2>&5
10430   ac_status=$?
10431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10432   (exit $ac_status); }; }; then
10433   ac_cv_c_dll_unixware="yes"
10434 else
10435   echo "$as_me: failed program was:" >&5
10436 cat conftest.$ac_ext >&5
10437 ac_cv_c_dll_unixware="no"
10438 fi
10439 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10440 CFLAGS=$ac_wine_try_cflags_saved
10441 fi
10442 echo "$as_me:$LINENO: result: $ac_cv_c_dll_unixware" >&5
10443 echo "${ECHO_T}$ac_cv_c_dll_unixware" >&6
10444         if test "$ac_cv_c_dll_unixware" = "yes"
10445         then
10446           LDSHARED="\$(CC) -Wl,-G \$(SONAME:%=-Wl,-h,%)"
10447           LDDLLFLAGS="-Wl,-B,symbolic"
10448         fi
10449       fi
10450     fi
10451
10452         CROSSTEST=""
10453
10454     if test "$cross_compiling" = "no"
10455     then
10456       for ac_prog in i586-mingw32msvc-gcc
10457 do
10458   # Extract the first word of "$ac_prog", so it can be a program name with args.
10459 set dummy $ac_prog; 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_prog_CROSSCC+set}" = set; then
10463   echo $ECHO_N "(cached) $ECHO_C" >&6
10464 else
10465   if test -n "$CROSSCC"; then
10466   ac_cv_prog_CROSSCC="$CROSSCC" # Let the user override the test.
10467 else
10468 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10469 for as_dir in $PATH
10470 do
10471   IFS=$as_save_IFS
10472   test -z "$as_dir" && as_dir=.
10473   for ac_exec_ext in '' $ac_executable_extensions; do
10474   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10475     ac_cv_prog_CROSSCC="$ac_prog"
10476     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10477     break 2
10478   fi
10479 done
10480 done
10481
10482 fi
10483 fi
10484 CROSSCC=$ac_cv_prog_CROSSCC
10485 if test -n "$CROSSCC"; then
10486   echo "$as_me:$LINENO: result: $CROSSCC" >&5
10487 echo "${ECHO_T}$CROSSCC" >&6
10488 else
10489   echo "$as_me:$LINENO: result: no" >&5
10490 echo "${ECHO_T}no" >&6
10491 fi
10492
10493   test -n "$CROSSCC" && break
10494 done
10495 test -n "$CROSSCC" || CROSSCC="false"
10496
10497       for ac_prog in i586-mingw32msvc-dlltool
10498 do
10499   # Extract the first word of "$ac_prog", so it can be a program name with args.
10500 set dummy $ac_prog; ac_word=$2
10501 echo "$as_me:$LINENO: checking for $ac_word" >&5
10502 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10503 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
10504   echo $ECHO_N "(cached) $ECHO_C" >&6
10505 else
10506   if test -n "$DLLTOOL"; then
10507   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
10508 else
10509 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10510 for as_dir in $PATH
10511 do
10512   IFS=$as_save_IFS
10513   test -z "$as_dir" && as_dir=.
10514   for ac_exec_ext in '' $ac_executable_extensions; do
10515   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10516     ac_cv_prog_DLLTOOL="$ac_prog"
10517     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10518     break 2
10519   fi
10520 done
10521 done
10522
10523 fi
10524 fi
10525 DLLTOOL=$ac_cv_prog_DLLTOOL
10526 if test -n "$DLLTOOL"; then
10527   echo "$as_me:$LINENO: result: $DLLTOOL" >&5
10528 echo "${ECHO_T}$DLLTOOL" >&6
10529 else
10530   echo "$as_me:$LINENO: result: no" >&5
10531 echo "${ECHO_T}no" >&6
10532 fi
10533
10534   test -n "$DLLTOOL" && break
10535 done
10536 test -n "$DLLTOOL" || DLLTOOL="false"
10537
10538       if test "$CROSSCC" != "false"; then CROSSTEST="\$(CROSSTEST)"; fi
10539     fi
10540     ;;
10541 esac
10542
10543 if test "$LIBEXT" = "a"; then
10544   { { echo "$as_me:$LINENO: error: could not find a way to build shared libraries.
10545 It is currently not possible to build Wine without shared library
10546 (.so) support to allow transparent switch between .so and .dll files.
10547 If you are using Linux, you will need a newer binutils.
10548 " >&5
10549 echo "$as_me: error: could not find a way to build shared libraries.
10550 It is currently not possible to build Wine without shared library
10551 (.so) support to allow transparent switch between .so and .dll files.
10552 If you are using Linux, you will need a newer binutils.
10553 " >&2;}
10554    { (exit 1); exit 1; }; }
10555 fi
10556
10557 case $build_os in
10558   cygwin*|mingw32*)
10559     LDPATH="PATH=\"\$(TOOLSDIR)/library:\$(TOOLSDIR)/unicode:\$\$PATH\""
10560  ;;
10561   *)
10562     LDPATH="LD_LIBRARY_PATH=\"\$(TOOLSDIR)/library:\$(TOOLSDIR)/unicode:\$\$LD_LIBRARY_PATH\""
10563  ;;
10564 esac
10565
10566 CRTLIBS=""
10567
10568 case $host_os in
10569   mingw32*)
10570     CRTLIBS="-lmsvcrt" ;;
10571 esac
10572
10573
10574 if test "$LIBEXT" = "so"
10575 then
10576   # Extract the first word of "ldd", so it can be a program name with args.
10577 set dummy ldd; ac_word=$2
10578 echo "$as_me:$LINENO: checking for $ac_word" >&5
10579 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10580 if test "${ac_cv_path_LDD+set}" = set; then
10581   echo $ECHO_N "(cached) $ECHO_C" >&6
10582 else
10583   case $LDD in
10584   [\\/]* | ?:[\\/]*)
10585   ac_cv_path_LDD="$LDD" # Let the user override the test with a path.
10586   ;;
10587   *)
10588   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10589 as_dummy="/sbin:/usr/sbin:$PATH"
10590 for as_dir in $as_dummy
10591 do
10592   IFS=$as_save_IFS
10593   test -z "$as_dir" && as_dir=.
10594   for ac_exec_ext in '' $ac_executable_extensions; do
10595   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10596     ac_cv_path_LDD="$as_dir/$ac_word$ac_exec_ext"
10597     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10598     break 2
10599   fi
10600 done
10601 done
10602
10603   test -z "$ac_cv_path_LDD" && ac_cv_path_LDD="true"
10604   ;;
10605 esac
10606 fi
10607 LDD=$ac_cv_path_LDD
10608
10609 if test -n "$LDD"; then
10610   echo "$as_me:$LINENO: result: $LDD" >&5
10611 echo "${ECHO_T}$LDD" >&6
10612 else
10613   echo "$as_me:$LINENO: result: no" >&5
10614 echo "${ECHO_T}no" >&6
10615 fi
10616
10617
10618 echo "$as_me:$LINENO: checking for -lX11 soname" >&5
10619 echo $ECHO_N "checking for -lX11 soname... $ECHO_C" >&6
10620 if test "${ac_cv_lib_soname_X11+set}" = set; then
10621   echo $ECHO_N "(cached) $ECHO_C" >&6
10622 else
10623   ac_get_soname_save_LIBS=$LIBS
10624 LIBS="-lX11 $X_LIBS $X_EXTRA_LIBS $LIBS"
10625   cat >conftest.$ac_ext <<_ACEOF
10626 #line $LINENO "configure"
10627 #include "confdefs.h"
10628
10629 /* Override any gcc2 internal prototype to avoid an error.  */
10630 #ifdef __cplusplus
10631 extern "C"
10632 #endif
10633 /* We use char because int might match the return type of a gcc2
10634    builtin and then its argument prototype would still apply.  */
10635 char XCreateWindow ();
10636 int
10637 main ()
10638 {
10639 XCreateWindow ();
10640   ;
10641   return 0;
10642 }
10643 _ACEOF
10644 rm -f conftest.$ac_objext conftest$ac_exeext
10645 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10646   (eval $ac_link) 2>&5
10647   ac_status=$?
10648   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10649   (exit $ac_status); } &&
10650          { ac_try='test -s conftest$ac_exeext'
10651   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10652   (eval $ac_try) 2>&5
10653   ac_status=$?
10654   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10655   (exit $ac_status); }; }; then
10656   ac_cv_lib_soname_X11=`$ac_cv_path_LDD conftest$ac_exeext | grep libX11\\.so | sed 's/^[       ]*\([^  ]*\)[   ]*=>.*$/\1/'`
10657   if test "x$ac_cv_lib_soname_X11" = "x"
10658   then
10659      ac_cv_lib_soname_X11="libX11.so"
10660   fi
10661 else
10662   echo "$as_me: failed program was:" >&5
10663 cat conftest.$ac_ext >&5
10664 ac_cv_lib_soname_X11="libX11.so"
10665 fi
10666 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10667   LIBS=$ac_get_soname_save_LIBS
10668 fi
10669 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_X11" >&5
10670 echo "${ECHO_T}$ac_cv_lib_soname_X11" >&6
10671 if test "x$ac_cv_lib_soname_X11" != xNONE
10672 then
10673 cat >>confdefs.h <<_ACEOF
10674 #define SONAME_LIBX11 "$ac_cv_lib_soname_X11"
10675 _ACEOF
10676 fi
10677
10678 echo "$as_me:$LINENO: checking for -lXext soname" >&5
10679 echo $ECHO_N "checking for -lXext soname... $ECHO_C" >&6
10680 if test "${ac_cv_lib_soname_Xext+set}" = set; then
10681   echo $ECHO_N "(cached) $ECHO_C" >&6
10682 else
10683   ac_get_soname_save_LIBS=$LIBS
10684 LIBS="-lXext $X_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
10685   cat >conftest.$ac_ext <<_ACEOF
10686 #line $LINENO "configure"
10687 #include "confdefs.h"
10688
10689 /* Override any gcc2 internal prototype to avoid an error.  */
10690 #ifdef __cplusplus
10691 extern "C"
10692 #endif
10693 /* We use char because int might match the return type of a gcc2
10694    builtin and then its argument prototype would still apply.  */
10695 char XextCreateExtension ();
10696 int
10697 main ()
10698 {
10699 XextCreateExtension ();
10700   ;
10701   return 0;
10702 }
10703 _ACEOF
10704 rm -f conftest.$ac_objext conftest$ac_exeext
10705 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10706   (eval $ac_link) 2>&5
10707   ac_status=$?
10708   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10709   (exit $ac_status); } &&
10710          { ac_try='test -s conftest$ac_exeext'
10711   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10712   (eval $ac_try) 2>&5
10713   ac_status=$?
10714   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10715   (exit $ac_status); }; }; then
10716   ac_cv_lib_soname_Xext=`$ac_cv_path_LDD conftest$ac_exeext | grep libXext\\.so | sed 's/^[     ]*\([^  ]*\)[   ]*=>.*$/\1/'`
10717   if test "x$ac_cv_lib_soname_Xext" = "x"
10718   then
10719      ac_cv_lib_soname_Xext="libXext.so"
10720   fi
10721 else
10722   echo "$as_me: failed program was:" >&5
10723 cat conftest.$ac_ext >&5
10724 ac_cv_lib_soname_Xext="libXext.so"
10725 fi
10726 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10727   LIBS=$ac_get_soname_save_LIBS
10728 fi
10729 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_Xext" >&5
10730 echo "${ECHO_T}$ac_cv_lib_soname_Xext" >&6
10731 if test "x$ac_cv_lib_soname_Xext" != xNONE
10732 then
10733 cat >>confdefs.h <<_ACEOF
10734 #define SONAME_LIBXEXT "$ac_cv_lib_soname_Xext"
10735 _ACEOF
10736 fi
10737
10738 echo "$as_me:$LINENO: checking for -lXrender soname" >&5
10739 echo $ECHO_N "checking for -lXrender soname... $ECHO_C" >&6
10740 if test "${ac_cv_lib_soname_Xrender+set}" = set; then
10741   echo $ECHO_N "(cached) $ECHO_C" >&6
10742 else
10743   ac_get_soname_save_LIBS=$LIBS
10744 LIBS="-lXrender $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
10745   cat >conftest.$ac_ext <<_ACEOF
10746 #line $LINENO "configure"
10747 #include "confdefs.h"
10748
10749 /* Override any gcc2 internal prototype to avoid an error.  */
10750 #ifdef __cplusplus
10751 extern "C"
10752 #endif
10753 /* We use char because int might match the return type of a gcc2
10754    builtin and then its argument prototype would still apply.  */
10755 char XRenderQueryExtension ();
10756 int
10757 main ()
10758 {
10759 XRenderQueryExtension ();
10760   ;
10761   return 0;
10762 }
10763 _ACEOF
10764 rm -f conftest.$ac_objext conftest$ac_exeext
10765 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10766   (eval $ac_link) 2>&5
10767   ac_status=$?
10768   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10769   (exit $ac_status); } &&
10770          { ac_try='test -s conftest$ac_exeext'
10771   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10772   (eval $ac_try) 2>&5
10773   ac_status=$?
10774   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10775   (exit $ac_status); }; }; then
10776   ac_cv_lib_soname_Xrender=`$ac_cv_path_LDD conftest$ac_exeext | grep libXrender\\.so | sed 's/^[       ]*\([^  ]*\)[   ]*=>.*$/\1/'`
10777   if test "x$ac_cv_lib_soname_Xrender" = "x"
10778   then
10779      ac_cv_lib_soname_Xrender="libXrender.so"
10780   fi
10781 else
10782   echo "$as_me: failed program was:" >&5
10783 cat conftest.$ac_ext >&5
10784 ac_cv_lib_soname_Xrender="libXrender.so"
10785 fi
10786 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10787   LIBS=$ac_get_soname_save_LIBS
10788 fi
10789 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_Xrender" >&5
10790 echo "${ECHO_T}$ac_cv_lib_soname_Xrender" >&6
10791 if test "x$ac_cv_lib_soname_Xrender" != xNONE
10792 then
10793 cat >>confdefs.h <<_ACEOF
10794 #define SONAME_LIBXRENDER "$ac_cv_lib_soname_Xrender"
10795 _ACEOF
10796 fi
10797
10798 echo "$as_me:$LINENO: checking for -lfreetype soname" >&5
10799 echo $ECHO_N "checking for -lfreetype soname... $ECHO_C" >&6
10800 if test "${ac_cv_lib_soname_freetype+set}" = set; then
10801   echo $ECHO_N "(cached) $ECHO_C" >&6
10802 else
10803   ac_get_soname_save_LIBS=$LIBS
10804 LIBS="-lfreetype $X_LIBS $LIBS"
10805   cat >conftest.$ac_ext <<_ACEOF
10806 #line $LINENO "configure"
10807 #include "confdefs.h"
10808
10809 /* Override any gcc2 internal prototype to avoid an error.  */
10810 #ifdef __cplusplus
10811 extern "C"
10812 #endif
10813 /* We use char because int might match the return type of a gcc2
10814    builtin and then its argument prototype would still apply.  */
10815 char FT_Init_FreeType ();
10816 int
10817 main ()
10818 {
10819 FT_Init_FreeType ();
10820   ;
10821   return 0;
10822 }
10823 _ACEOF
10824 rm -f conftest.$ac_objext conftest$ac_exeext
10825 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10826   (eval $ac_link) 2>&5
10827   ac_status=$?
10828   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10829   (exit $ac_status); } &&
10830          { ac_try='test -s conftest$ac_exeext'
10831   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10832   (eval $ac_try) 2>&5
10833   ac_status=$?
10834   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10835   (exit $ac_status); }; }; then
10836   ac_cv_lib_soname_freetype=`$ac_cv_path_LDD conftest$ac_exeext | grep libfreetype\\.so | sed 's/^[     ]*\([^  ]*\)[   ]*=>.*$/\1/'`
10837   if test "x$ac_cv_lib_soname_freetype" = "x"
10838   then
10839      ac_cv_lib_soname_freetype="libfreetype.so"
10840   fi
10841 else
10842   echo "$as_me: failed program was:" >&5
10843 cat conftest.$ac_ext >&5
10844 ac_cv_lib_soname_freetype="libfreetype.so"
10845 fi
10846 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10847   LIBS=$ac_get_soname_save_LIBS
10848 fi
10849 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_freetype" >&5
10850 echo "${ECHO_T}$ac_cv_lib_soname_freetype" >&6
10851 if test "x$ac_cv_lib_soname_freetype" != xNONE
10852 then
10853 cat >>confdefs.h <<_ACEOF
10854 #define SONAME_LIBFREETYPE "$ac_cv_lib_soname_freetype"
10855 _ACEOF
10856 fi
10857
10858 echo "$as_me:$LINENO: checking for -lGL soname" >&5
10859 echo $ECHO_N "checking for -lGL soname... $ECHO_C" >&6
10860 if test "${ac_cv_lib_soname_GL+set}" = set; then
10861   echo $ECHO_N "(cached) $ECHO_C" >&6
10862 else
10863   ac_get_soname_save_LIBS=$LIBS
10864 LIBS="-lGL $X_LIBS $X_EXTRA_LIBS $LIBS"
10865   cat >conftest.$ac_ext <<_ACEOF
10866 #line $LINENO "configure"
10867 #include "confdefs.h"
10868
10869 /* Override any gcc2 internal prototype to avoid an error.  */
10870 #ifdef __cplusplus
10871 extern "C"
10872 #endif
10873 /* We use char because int might match the return type of a gcc2
10874    builtin and then its argument prototype would still apply.  */
10875 char glXQueryExtension ();
10876 int
10877 main ()
10878 {
10879 glXQueryExtension ();
10880   ;
10881   return 0;
10882 }
10883 _ACEOF
10884 rm -f conftest.$ac_objext conftest$ac_exeext
10885 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10886   (eval $ac_link) 2>&5
10887   ac_status=$?
10888   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10889   (exit $ac_status); } &&
10890          { ac_try='test -s conftest$ac_exeext'
10891   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10892   (eval $ac_try) 2>&5
10893   ac_status=$?
10894   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10895   (exit $ac_status); }; }; then
10896   ac_cv_lib_soname_GL=`$ac_cv_path_LDD conftest$ac_exeext | grep libGL\\.so | sed 's/^[         ]*\([^  ]*\)[   ]*=>.*$/\1/'`
10897   if test "x$ac_cv_lib_soname_GL" = "x"
10898   then
10899      ac_cv_lib_soname_GL="libGL.so"
10900   fi
10901 else
10902   echo "$as_me: failed program was:" >&5
10903 cat conftest.$ac_ext >&5
10904 ac_cv_lib_soname_GL="libGL.so"
10905 fi
10906 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10907   LIBS=$ac_get_soname_save_LIBS
10908 fi
10909 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_GL" >&5
10910 echo "${ECHO_T}$ac_cv_lib_soname_GL" >&6
10911 if test "x$ac_cv_lib_soname_GL" != xNONE
10912 then
10913 cat >>confdefs.h <<_ACEOF
10914 #define SONAME_LIBGL "$ac_cv_lib_soname_GL"
10915 _ACEOF
10916 fi
10917
10918 echo "$as_me:$LINENO: checking for -lcups soname" >&5
10919 echo $ECHO_N "checking for -lcups soname... $ECHO_C" >&6
10920 if test "${ac_cv_lib_soname_cups+set}" = set; then
10921   echo $ECHO_N "(cached) $ECHO_C" >&6
10922 else
10923   ac_get_soname_save_LIBS=$LIBS
10924 LIBS="-lcups  $LIBS"
10925   cat >conftest.$ac_ext <<_ACEOF
10926 #line $LINENO "configure"
10927 #include "confdefs.h"
10928
10929 /* Override any gcc2 internal prototype to avoid an error.  */
10930 #ifdef __cplusplus
10931 extern "C"
10932 #endif
10933 /* We use char because int might match the return type of a gcc2
10934    builtin and then its argument prototype would still apply.  */
10935 char cupsGetDefault ();
10936 int
10937 main ()
10938 {
10939 cupsGetDefault ();
10940   ;
10941   return 0;
10942 }
10943 _ACEOF
10944 rm -f conftest.$ac_objext conftest$ac_exeext
10945 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10946   (eval $ac_link) 2>&5
10947   ac_status=$?
10948   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10949   (exit $ac_status); } &&
10950          { ac_try='test -s conftest$ac_exeext'
10951   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10952   (eval $ac_try) 2>&5
10953   ac_status=$?
10954   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10955   (exit $ac_status); }; }; then
10956   ac_cv_lib_soname_cups=`$ac_cv_path_LDD conftest$ac_exeext | grep libcups\\.so | sed 's/^[     ]*\([^  ]*\)[   ]*=>.*$/\1/'`
10957   if test "x$ac_cv_lib_soname_cups" = "x"
10958   then
10959      ac_cv_lib_soname_cups="libcups.so"
10960   fi
10961 else
10962   echo "$as_me: failed program was:" >&5
10963 cat conftest.$ac_ext >&5
10964 ac_cv_lib_soname_cups="libcups.so"
10965 fi
10966 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10967   LIBS=$ac_get_soname_save_LIBS
10968 fi
10969 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_cups" >&5
10970 echo "${ECHO_T}$ac_cv_lib_soname_cups" >&6
10971 if test "x$ac_cv_lib_soname_cups" != xNONE
10972 then
10973 cat >>confdefs.h <<_ACEOF
10974 #define SONAME_LIBCUPS "$ac_cv_lib_soname_cups"
10975 _ACEOF
10976 fi
10977 fi
10978
10979
10980
10981 wine_cv_libc_reentrant=no
10982 echo "$as_me:$LINENO: checking for reentrant libc: __errno_location" >&5
10983 echo $ECHO_N "checking for reentrant libc: __errno_location... $ECHO_C" >&6
10984 if test "${wine_cv_libc_r___errno_location+set}" = set; then
10985   echo $ECHO_N "(cached) $ECHO_C" >&6
10986 else
10987   if test "$cross_compiling" = yes; then
10988   wine_cv_libc_r___errno_location=yes
10989 else
10990   cat >conftest.$ac_ext <<_ACEOF
10991 #line $LINENO "configure"
10992 #include "confdefs.h"
10993 int myerrno = 0;
10994 int *__errno_location(){return &myerrno;}
10995 main(){close(333); close(333); exit(!myerrno);}
10996 _ACEOF
10997 rm -f conftest$ac_exeext
10998 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10999   (eval $ac_link) 2>&5
11000   ac_status=$?
11001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11002   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11003   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11004   (eval $ac_try) 2>&5
11005   ac_status=$?
11006   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11007   (exit $ac_status); }; }; then
11008   wine_cv_libc_r___errno_location=yes
11009 else
11010   echo "$as_me: program exited with status $ac_status" >&5
11011 echo "$as_me: failed program was:" >&5
11012 cat conftest.$ac_ext >&5
11013 ( exit $ac_status )
11014 wine_cv_libc_r___errno_location=no
11015 fi
11016 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11017 fi
11018 fi
11019 echo "$as_me:$LINENO: result: $wine_cv_libc_r___errno_location" >&5
11020 echo "${ECHO_T}$wine_cv_libc_r___errno_location" >&6
11021 if test "$wine_cv_libc_r___errno_location" = "yes"; then
11022   wine_cv_libc_reentrant=__errno_location
11023 else
11024     echo "$as_me:$LINENO: checking for reentrant libc: __error" >&5
11025 echo $ECHO_N "checking for reentrant libc: __error... $ECHO_C" >&6
11026 if test "${wine_cv_libc_r___error+set}" = set; then
11027   echo $ECHO_N "(cached) $ECHO_C" >&6
11028 else
11029   if test "$cross_compiling" = yes; then
11030   wine_cv_libc_r___error=yes
11031 else
11032   cat >conftest.$ac_ext <<_ACEOF
11033 #line $LINENO "configure"
11034 #include "confdefs.h"
11035 int myerrno = 0;
11036 int *__error(){return &myerrno;}
11037 main(){close(333); close(333); exit(!myerrno);}
11038 _ACEOF
11039 rm -f conftest$ac_exeext
11040 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11041   (eval $ac_link) 2>&5
11042   ac_status=$?
11043   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11044   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11045   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11046   (eval $ac_try) 2>&5
11047   ac_status=$?
11048   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11049   (exit $ac_status); }; }; then
11050   wine_cv_libc_r___error=yes
11051 else
11052   echo "$as_me: program exited with status $ac_status" >&5
11053 echo "$as_me: failed program was:" >&5
11054 cat conftest.$ac_ext >&5
11055 ( exit $ac_status )
11056 wine_cv_libc_r___error=no
11057 fi
11058 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11059 fi
11060 fi
11061 echo "$as_me:$LINENO: result: $wine_cv_libc_r___error" >&5
11062 echo "${ECHO_T}$wine_cv_libc_r___error" >&6
11063 if test "$wine_cv_libc_r___error" = "yes"; then
11064   wine_cv_libc_reentrant=__error
11065 else
11066       echo "$as_me:$LINENO: checking for reentrant libc: ___errno" >&5
11067 echo $ECHO_N "checking for reentrant libc: ___errno... $ECHO_C" >&6
11068 if test "${wine_cv_libc_r____errno+set}" = set; then
11069   echo $ECHO_N "(cached) $ECHO_C" >&6
11070 else
11071   if test "$cross_compiling" = yes; then
11072   wine_cv_libc_r____errno=yes
11073 else
11074   cat >conftest.$ac_ext <<_ACEOF
11075 #line $LINENO "configure"
11076 #include "confdefs.h"
11077 int myerrno = 0;
11078 int *___errno(){return &myerrno;}
11079 main(){close(333); close(333); exit(!myerrno);}
11080 _ACEOF
11081 rm -f conftest$ac_exeext
11082 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11083   (eval $ac_link) 2>&5
11084   ac_status=$?
11085   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11086   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11087   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11088   (eval $ac_try) 2>&5
11089   ac_status=$?
11090   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11091   (exit $ac_status); }; }; then
11092   wine_cv_libc_r____errno=yes
11093 else
11094   echo "$as_me: program exited with status $ac_status" >&5
11095 echo "$as_me: failed program was:" >&5
11096 cat conftest.$ac_ext >&5
11097 ( exit $ac_status )
11098 wine_cv_libc_r____errno=no
11099 fi
11100 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11101 fi
11102 fi
11103 echo "$as_me:$LINENO: result: $wine_cv_libc_r____errno" >&5
11104 echo "${ECHO_T}$wine_cv_libc_r____errno" >&6
11105 if test "$wine_cv_libc_r____errno" = "yes"; then
11106   wine_cv_libc_reentrant=___errno
11107 else
11108         echo "$as_me:$LINENO: checking for reentrant libc: __thr_errno" >&5
11109 echo $ECHO_N "checking for reentrant libc: __thr_errno... $ECHO_C" >&6
11110 if test "${wine_cv_libc_r___thr_errno+set}" = set; then
11111   echo $ECHO_N "(cached) $ECHO_C" >&6
11112 else
11113   if test "$cross_compiling" = yes; then
11114   wine_cv_libc_r___thr_errno=yes
11115 else
11116   cat >conftest.$ac_ext <<_ACEOF
11117 #line $LINENO "configure"
11118 #include "confdefs.h"
11119 int myerrno = 0;
11120 int *__thr_errno(){return &myerrno;}
11121 main(){close(333); close(333); exit(!myerrno);}
11122 _ACEOF
11123 rm -f conftest$ac_exeext
11124 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11125   (eval $ac_link) 2>&5
11126   ac_status=$?
11127   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11128   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11129   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11130   (eval $ac_try) 2>&5
11131   ac_status=$?
11132   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11133   (exit $ac_status); }; }; then
11134   wine_cv_libc_r___thr_errno=yes
11135 else
11136   echo "$as_me: program exited with status $ac_status" >&5
11137 echo "$as_me: failed program was:" >&5
11138 cat conftest.$ac_ext >&5
11139 ( exit $ac_status )
11140 wine_cv_libc_r___thr_errno=no
11141 fi
11142 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11143 fi
11144 fi
11145 echo "$as_me:$LINENO: result: $wine_cv_libc_r___thr_errno" >&5
11146 echo "${ECHO_T}$wine_cv_libc_r___thr_errno" >&6
11147 if test "$wine_cv_libc_r___thr_errno" = "yes"; then
11148   wine_cv_libc_reentrant=__thr_errno
11149 else
11150           echo "$as_me:$LINENO: checking for reentrant libc: __errno" >&5
11151 echo $ECHO_N "checking for reentrant libc: __errno... $ECHO_C" >&6
11152 if test "${wine_cv_libc_r___errno+set}" = set; then
11153   echo $ECHO_N "(cached) $ECHO_C" >&6
11154 else
11155   if test "$cross_compiling" = yes; then
11156   wine_cv_libc_r___errno=yes
11157 else
11158   cat >conftest.$ac_ext <<_ACEOF
11159 #line $LINENO "configure"
11160 #include "confdefs.h"
11161 int myerrno = 0;
11162 int *__errno(){return &myerrno;}
11163 main(){close(333); close(333); exit(!myerrno);}
11164 _ACEOF
11165 rm -f conftest$ac_exeext
11166 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11167   (eval $ac_link) 2>&5
11168   ac_status=$?
11169   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11170   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11171   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11172   (eval $ac_try) 2>&5
11173   ac_status=$?
11174   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11175   (exit $ac_status); }; }; then
11176   wine_cv_libc_r___errno=yes
11177 else
11178   echo "$as_me: program exited with status $ac_status" >&5
11179 echo "$as_me: failed program was:" >&5
11180 cat conftest.$ac_ext >&5
11181 ( exit $ac_status )
11182 wine_cv_libc_r___errno=no
11183 fi
11184 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11185 fi
11186 fi
11187 echo "$as_me:$LINENO: result: $wine_cv_libc_r___errno" >&5
11188 echo "${ECHO_T}$wine_cv_libc_r___errno" >&6
11189 if test "$wine_cv_libc_r___errno" = "yes"; then
11190   wine_cv_libc_reentrant=__errno
11191 fi
11192
11193
11194 fi
11195
11196 fi
11197
11198 fi
11199
11200 fi
11201
11202
11203 if test "$wine_cv_libc_reentrant" != "no"
11204 then
11205
11206 cat >>confdefs.h <<_ACEOF
11207 #define ERRNO_LOCATION $wine_cv_libc_reentrant
11208 _ACEOF
11209
11210 fi
11211
11212
11213 if test "$have_x" = "yes"
11214 then
11215 echo "$as_me:$LINENO: checking for reentrant X libraries" >&5
11216 echo $ECHO_N "checking for reentrant X libraries... $ECHO_C" >&6
11217 if test "${wine_cv_x_reentrant+set}" = set; then
11218   echo $ECHO_N "(cached) $ECHO_C" >&6
11219 else
11220   libX11_check=none
11221     for dir in "$x_libraries" /usr/lib /usr/local/lib /lib; do
11222         if test -r $dir/libX11.so; then
11223             libX11_check="-D $dir/libX11.so"
11224             break
11225         fi
11226         if test -r $dir/libX11.a; then
11227             libX11_check="$dir/libX11.a"
11228             break
11229         fi
11230     done
11231     if test "$libX11_check" != "none"; then
11232         if nm $libX11_check | grep $wine_cv_libc_reentrant >/dev/null 2>&1
11233         then
11234             wine_cv_x_reentrant=yes
11235         else
11236             wine_cv_x_reentrant=no
11237         fi
11238     else
11239         wine_cv_x_reentrant=unknown
11240     fi
11241 fi
11242 echo "$as_me:$LINENO: result: $wine_cv_x_reentrant" >&5
11243 echo "${ECHO_T}$wine_cv_x_reentrant" >&6
11244 fi
11245
11246
11247 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
11248 # for constant arguments.  Useless!
11249 echo "$as_me:$LINENO: checking for working alloca.h" >&5
11250 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
11251 if test "${ac_cv_working_alloca_h+set}" = set; then
11252   echo $ECHO_N "(cached) $ECHO_C" >&6
11253 else
11254   cat >conftest.$ac_ext <<_ACEOF
11255 #line $LINENO "configure"
11256 #include "confdefs.h"
11257 #include <alloca.h>
11258 int
11259 main ()
11260 {
11261 char *p = (char *) alloca (2 * sizeof (int));
11262   ;
11263   return 0;
11264 }
11265 _ACEOF
11266 rm -f conftest.$ac_objext conftest$ac_exeext
11267 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11268   (eval $ac_link) 2>&5
11269   ac_status=$?
11270   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11271   (exit $ac_status); } &&
11272          { ac_try='test -s conftest$ac_exeext'
11273   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11274   (eval $ac_try) 2>&5
11275   ac_status=$?
11276   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11277   (exit $ac_status); }; }; then
11278   ac_cv_working_alloca_h=yes
11279 else
11280   echo "$as_me: failed program was:" >&5
11281 cat conftest.$ac_ext >&5
11282 ac_cv_working_alloca_h=no
11283 fi
11284 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11285 fi
11286 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
11287 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
11288 if test $ac_cv_working_alloca_h = yes; then
11289
11290 cat >>confdefs.h <<\_ACEOF
11291 #define HAVE_ALLOCA_H 1
11292 _ACEOF
11293
11294 fi
11295
11296 echo "$as_me:$LINENO: checking for alloca" >&5
11297 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
11298 if test "${ac_cv_func_alloca_works+set}" = set; then
11299   echo $ECHO_N "(cached) $ECHO_C" >&6
11300 else
11301   cat >conftest.$ac_ext <<_ACEOF
11302 #line $LINENO "configure"
11303 #include "confdefs.h"
11304 #ifdef __GNUC__
11305 # define alloca __builtin_alloca
11306 #else
11307 # ifdef _MSC_VER
11308 #  include <malloc.h>
11309 #  define alloca _alloca
11310 # else
11311 #  if HAVE_ALLOCA_H
11312 #   include <alloca.h>
11313 #  else
11314 #   ifdef _AIX
11315  #pragma alloca
11316 #   else
11317 #    ifndef alloca /* predefined by HP cc +Olibcalls */
11318 char *alloca ();
11319 #    endif
11320 #   endif
11321 #  endif
11322 # endif
11323 #endif
11324
11325 int
11326 main ()
11327 {
11328 char *p = (char *) alloca (1);
11329   ;
11330   return 0;
11331 }
11332 _ACEOF
11333 rm -f conftest.$ac_objext conftest$ac_exeext
11334 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11335   (eval $ac_link) 2>&5
11336   ac_status=$?
11337   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11338   (exit $ac_status); } &&
11339          { ac_try='test -s conftest$ac_exeext'
11340   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11341   (eval $ac_try) 2>&5
11342   ac_status=$?
11343   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11344   (exit $ac_status); }; }; then
11345   ac_cv_func_alloca_works=yes
11346 else
11347   echo "$as_me: failed program was:" >&5
11348 cat conftest.$ac_ext >&5
11349 ac_cv_func_alloca_works=no
11350 fi
11351 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11352 fi
11353 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
11354 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
11355
11356 if test $ac_cv_func_alloca_works = yes; then
11357
11358 cat >>confdefs.h <<\_ACEOF
11359 #define HAVE_ALLOCA 1
11360 _ACEOF
11361
11362 else
11363   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
11364 # that cause trouble.  Some versions do not even contain alloca or
11365 # contain a buggy version.  If you still want to use their alloca,
11366 # use ar to extract alloca.o from them instead of compiling alloca.c.
11367
11368 ALLOCA=alloca.$ac_objext
11369
11370 cat >>confdefs.h <<\_ACEOF
11371 #define C_ALLOCA 1
11372 _ACEOF
11373
11374
11375 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
11376 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
11377 if test "${ac_cv_os_cray+set}" = set; then
11378   echo $ECHO_N "(cached) $ECHO_C" >&6
11379 else
11380   cat >conftest.$ac_ext <<_ACEOF
11381 #line $LINENO "configure"
11382 #include "confdefs.h"
11383 #if defined(CRAY) && ! defined(CRAY2)
11384 webecray
11385 #else
11386 wenotbecray
11387 #endif
11388
11389 _ACEOF
11390 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11391   $EGREP "webecray" >/dev/null 2>&1; then
11392   ac_cv_os_cray=yes
11393 else
11394   ac_cv_os_cray=no
11395 fi
11396 rm -f conftest*
11397
11398 fi
11399 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
11400 echo "${ECHO_T}$ac_cv_os_cray" >&6
11401 if test $ac_cv_os_cray = yes; then
11402   for ac_func in _getb67 GETB67 getb67; do
11403     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11404 echo "$as_me:$LINENO: checking for $ac_func" >&5
11405 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11406 if eval "test \"\${$as_ac_var+set}\" = set"; then
11407   echo $ECHO_N "(cached) $ECHO_C" >&6
11408 else
11409   cat >conftest.$ac_ext <<_ACEOF
11410 #line $LINENO "configure"
11411 #include "confdefs.h"
11412 /* System header to define __stub macros and hopefully few prototypes,
11413     which can conflict with char $ac_func (); below.  */
11414 #include <assert.h>
11415 /* Override any gcc2 internal prototype to avoid an error.  */
11416 #ifdef __cplusplus
11417 extern "C"
11418 #endif
11419 /* We use char because int might match the return type of a gcc2
11420    builtin and then its argument prototype would still apply.  */
11421 char $ac_func ();
11422 char (*f) ();
11423
11424 int
11425 main ()
11426 {
11427 /* The GNU C library defines this for functions which it implements
11428     to always fail with ENOSYS.  Some functions are actually named
11429     something starting with __ and the normal name is an alias.  */
11430 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11431 choke me
11432 #else
11433 f = $ac_func;
11434 #endif
11435
11436   ;
11437   return 0;
11438 }
11439 _ACEOF
11440 rm -f conftest.$ac_objext conftest$ac_exeext
11441 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11442   (eval $ac_link) 2>&5
11443   ac_status=$?
11444   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11445   (exit $ac_status); } &&
11446          { ac_try='test -s conftest$ac_exeext'
11447   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11448   (eval $ac_try) 2>&5
11449   ac_status=$?
11450   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11451   (exit $ac_status); }; }; then
11452   eval "$as_ac_var=yes"
11453 else
11454   echo "$as_me: failed program was:" >&5
11455 cat conftest.$ac_ext >&5
11456 eval "$as_ac_var=no"
11457 fi
11458 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11459 fi
11460 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11461 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11462 if test `eval echo '${'$as_ac_var'}'` = yes; then
11463
11464 cat >>confdefs.h <<_ACEOF
11465 #define CRAY_STACKSEG_END $ac_func
11466 _ACEOF
11467
11468     break
11469 fi
11470
11471   done
11472 fi
11473
11474 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
11475 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
11476 if test "${ac_cv_c_stack_direction+set}" = set; then
11477   echo $ECHO_N "(cached) $ECHO_C" >&6
11478 else
11479   if test "$cross_compiling" = yes; then
11480   ac_cv_c_stack_direction=0
11481 else
11482   cat >conftest.$ac_ext <<_ACEOF
11483 #line $LINENO "configure"
11484 #include "confdefs.h"
11485 int
11486 find_stack_direction ()
11487 {
11488   static char *addr = 0;
11489   auto char dummy;
11490   if (addr == 0)
11491     {
11492       addr = &dummy;
11493       return find_stack_direction ();
11494     }
11495   else
11496     return (&dummy > addr) ? 1 : -1;
11497 }
11498
11499 int
11500 main ()
11501 {
11502   exit (find_stack_direction () < 0);
11503 }
11504 _ACEOF
11505 rm -f conftest$ac_exeext
11506 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11507   (eval $ac_link) 2>&5
11508   ac_status=$?
11509   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11510   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11511   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11512   (eval $ac_try) 2>&5
11513   ac_status=$?
11514   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11515   (exit $ac_status); }; }; then
11516   ac_cv_c_stack_direction=1
11517 else
11518   echo "$as_me: program exited with status $ac_status" >&5
11519 echo "$as_me: failed program was:" >&5
11520 cat conftest.$ac_ext >&5
11521 ( exit $ac_status )
11522 ac_cv_c_stack_direction=-1
11523 fi
11524 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11525 fi
11526 fi
11527 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
11528 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
11529
11530 cat >>confdefs.h <<_ACEOF
11531 #define STACK_DIRECTION $ac_cv_c_stack_direction
11532 _ACEOF
11533
11534
11535 fi
11536
11537
11538
11539
11540
11541
11542
11543
11544
11545
11546
11547
11548
11549
11550
11551
11552
11553
11554
11555
11556
11557
11558
11559
11560
11561
11562
11563
11564
11565
11566
11567
11568
11569
11570
11571
11572
11573
11574
11575
11576
11577
11578
11579
11580
11581
11582
11583
11584
11585
11586
11587
11588
11589
11590 for ac_func in \
11591         _lwp_create \
11592         _pclose \
11593         _popen \
11594         _snprintf \
11595         _stricmp \
11596         _strnicmp \
11597         chsize \
11598         clone \
11599         ecvt \
11600         finite \
11601         fpclass \
11602         ftruncate \
11603         ftruncate64 \
11604         getnetbyaddr \
11605         getnetbyname \
11606         getopt_long \
11607         getpagesize \
11608         getprotobyname \
11609         getprotobynumber \
11610         getpwuid \
11611         getservbyport \
11612         getsockopt \
11613         inet_network \
11614         lseek64 \
11615         lstat \
11616         memmove \
11617         mkstemp \
11618         mmap \
11619         pclose \
11620         popen \
11621         pread \
11622         pthread_getspecific \
11623         pthread_key_create \
11624         pthread_mutex_lock \
11625         pthread_mutex_unlock \
11626         pthread_setspecific \
11627         pwrite \
11628         rfork \
11629         select \
11630         sendmsg \
11631         settimeofday \
11632         sigaltstack \
11633         snprintf \
11634         statfs \
11635         strcasecmp \
11636         strerror \
11637         strncasecmp \
11638         tcgetattr \
11639         timegm \
11640         usleep \
11641         vfscanf \
11642         wait4 \
11643         waitpid \
11644
11645 do
11646 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11647 echo "$as_me:$LINENO: checking for $ac_func" >&5
11648 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11649 if eval "test \"\${$as_ac_var+set}\" = set"; then
11650   echo $ECHO_N "(cached) $ECHO_C" >&6
11651 else
11652   cat >conftest.$ac_ext <<_ACEOF
11653 #line $LINENO "configure"
11654 #include "confdefs.h"
11655 /* System header to define __stub macros and hopefully few prototypes,
11656     which can conflict with char $ac_func (); below.  */
11657 #include <assert.h>
11658 /* Override any gcc2 internal prototype to avoid an error.  */
11659 #ifdef __cplusplus
11660 extern "C"
11661 #endif
11662 /* We use char because int might match the return type of a gcc2
11663    builtin and then its argument prototype would still apply.  */
11664 char $ac_func ();
11665 char (*f) ();
11666
11667 int
11668 main ()
11669 {
11670 /* The GNU C library defines this for functions which it implements
11671     to always fail with ENOSYS.  Some functions are actually named
11672     something starting with __ and the normal name is an alias.  */
11673 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11674 choke me
11675 #else
11676 f = $ac_func;
11677 #endif
11678
11679   ;
11680   return 0;
11681 }
11682 _ACEOF
11683 rm -f conftest.$ac_objext conftest$ac_exeext
11684 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11685   (eval $ac_link) 2>&5
11686   ac_status=$?
11687   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11688   (exit $ac_status); } &&
11689          { ac_try='test -s conftest$ac_exeext'
11690   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11691   (eval $ac_try) 2>&5
11692   ac_status=$?
11693   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11694   (exit $ac_status); }; }; then
11695   eval "$as_ac_var=yes"
11696 else
11697   echo "$as_me: failed program was:" >&5
11698 cat conftest.$ac_ext >&5
11699 eval "$as_ac_var=no"
11700 fi
11701 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11702 fi
11703 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11704 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11705 if test `eval echo '${'$as_ac_var'}'` = yes; then
11706   cat >>confdefs.h <<_ACEOF
11707 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11708 _ACEOF
11709
11710 fi
11711 done
11712
11713
11714
11715
11716
11717
11718
11719
11720
11721
11722
11723
11724
11725
11726
11727
11728
11729
11730
11731
11732
11733
11734
11735
11736
11737
11738
11739
11740
11741
11742
11743
11744
11745
11746
11747
11748
11749
11750
11751
11752
11753
11754
11755
11756
11757
11758
11759
11760
11761
11762
11763
11764
11765
11766
11767
11768
11769
11770
11771
11772
11773
11774
11775
11776
11777
11778
11779
11780
11781
11782
11783 for ac_header in \
11784         arpa/inet.h \
11785         arpa/nameser.h \
11786         cups/cups.h \
11787         direct.h \
11788         elf.h \
11789         float.h \
11790         getopt.h \
11791         ieeefp.h \
11792         io.h \
11793         libio.h \
11794         libutil.h \
11795         link.h \
11796         linux/cdrom.h \
11797         linux/hdreg.h \
11798         linux/input.h \
11799         linux/joystick.h \
11800         linux/major.h \
11801         linux/param.h \
11802         linux/serial.h \
11803         linux/ucdrom.h \
11804         netdb.h \
11805         netinet/in.h \
11806         netinet/in_systm.h \
11807         netinet/tcp.h \
11808         pty.h \
11809         pwd.h \
11810         sched.h \
11811         scsi/sg.h \
11812         socket.h \
11813         stdint.h \
11814         strings.h \
11815         sys/cdio.h \
11816         sys/errno.h \
11817         sys/file.h \
11818         sys/filio.h \
11819         sys/inttypes.h \
11820         sys/ioctl.h \
11821         sys/ipc.h \
11822         sys/link.h \
11823         sys/lwp.h \
11824         sys/mman.h \
11825         sys/modem.h \
11826         sys/msg.h \
11827         sys/param.h \
11828         sys/poll.h \
11829         sys/ptrace.h \
11830         sys/reg.h \
11831         sys/shm.h \
11832         sys/signal.h \
11833         sys/socket.h \
11834         sys/sockio.h \
11835         sys/statfs.h \
11836         sys/strtio.h \
11837         sys/syscall.h \
11838         sys/sysctl.h \
11839         sys/time.h \
11840         sys/times.h \
11841         sys/uio.h \
11842         sys/un.h \
11843         sys/v86.h \
11844         sys/v86intr.h \
11845         sys/vfs.h \
11846         sys/vm86.h \
11847         sys/wait.h \
11848         syscall.h \
11849         termios.h \
11850         unistd.h \
11851         utime.h \
11852
11853 do
11854 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11855 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11856   echo "$as_me:$LINENO: checking for $ac_header" >&5
11857 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11858 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11859   echo $ECHO_N "(cached) $ECHO_C" >&6
11860 fi
11861 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11862 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11863 else
11864   # Is the header compilable?
11865 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11866 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11867 cat >conftest.$ac_ext <<_ACEOF
11868 #line $LINENO "configure"
11869 #include "confdefs.h"
11870 $ac_includes_default
11871 #include <$ac_header>
11872 _ACEOF
11873 rm -f conftest.$ac_objext
11874 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11875   (eval $ac_compile) 2>&5
11876   ac_status=$?
11877   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11878   (exit $ac_status); } &&
11879          { ac_try='test -s conftest.$ac_objext'
11880   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11881   (eval $ac_try) 2>&5
11882   ac_status=$?
11883   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11884   (exit $ac_status); }; }; then
11885   ac_header_compiler=yes
11886 else
11887   echo "$as_me: failed program was:" >&5
11888 cat conftest.$ac_ext >&5
11889 ac_header_compiler=no
11890 fi
11891 rm -f conftest.$ac_objext conftest.$ac_ext
11892 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11893 echo "${ECHO_T}$ac_header_compiler" >&6
11894
11895 # Is the header present?
11896 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11897 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11898 cat >conftest.$ac_ext <<_ACEOF
11899 #line $LINENO "configure"
11900 #include "confdefs.h"
11901 #include <$ac_header>
11902 _ACEOF
11903 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11904   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11905   ac_status=$?
11906   grep -v '^ *+' conftest.er1 >conftest.err
11907   rm -f conftest.er1
11908   cat conftest.err >&5
11909   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11910   (exit $ac_status); } >/dev/null; then
11911   if test -s conftest.err; then
11912     ac_cpp_err=$ac_c_preproc_warn_flag
11913   else
11914     ac_cpp_err=
11915   fi
11916 else
11917   ac_cpp_err=yes
11918 fi
11919 if test -z "$ac_cpp_err"; then
11920   ac_header_preproc=yes
11921 else
11922   echo "$as_me: failed program was:" >&5
11923   cat conftest.$ac_ext >&5
11924   ac_header_preproc=no
11925 fi
11926 rm -f conftest.err conftest.$ac_ext
11927 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11928 echo "${ECHO_T}$ac_header_preproc" >&6
11929
11930 # So?  What about this header?
11931 case $ac_header_compiler:$ac_header_preproc in
11932   yes:no )
11933     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11934 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11935     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11936 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
11937   no:yes )
11938     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11939 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11940     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11941 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11942     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11943 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
11944 esac
11945 echo "$as_me:$LINENO: checking for $ac_header" >&5
11946 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11947 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11948   echo $ECHO_N "(cached) $ECHO_C" >&6
11949 else
11950   eval "$as_ac_Header=$ac_header_preproc"
11951 fi
11952 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11953 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11954
11955 fi
11956 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11957   cat >>confdefs.h <<_ACEOF
11958 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11959 _ACEOF
11960
11961 fi
11962
11963 done
11964
11965 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
11966 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
11967 if test "${ac_cv_header_stat_broken+set}" = set; then
11968   echo $ECHO_N "(cached) $ECHO_C" >&6
11969 else
11970   cat >conftest.$ac_ext <<_ACEOF
11971 #line $LINENO "configure"
11972 #include "confdefs.h"
11973 #include <sys/types.h>
11974 #include <sys/stat.h>
11975
11976 #if defined(S_ISBLK) && defined(S_IFDIR)
11977 # if S_ISBLK (S_IFDIR)
11978 You lose.
11979 # endif
11980 #endif
11981
11982 #if defined(S_ISBLK) && defined(S_IFCHR)
11983 # if S_ISBLK (S_IFCHR)
11984 You lose.
11985 # endif
11986 #endif
11987
11988 #if defined(S_ISLNK) && defined(S_IFREG)
11989 # if S_ISLNK (S_IFREG)
11990 You lose.
11991 # endif
11992 #endif
11993
11994 #if defined(S_ISSOCK) && defined(S_IFREG)
11995 # if S_ISSOCK (S_IFREG)
11996 You lose.
11997 # endif
11998 #endif
11999
12000 _ACEOF
12001 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12002   $EGREP "You lose" >/dev/null 2>&1; then
12003   ac_cv_header_stat_broken=yes
12004 else
12005   ac_cv_header_stat_broken=no
12006 fi
12007 rm -f conftest*
12008
12009 fi
12010 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
12011 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
12012 if test $ac_cv_header_stat_broken = yes; then
12013
12014 cat >>confdefs.h <<\_ACEOF
12015 #define STAT_MACROS_BROKEN 1
12016 _ACEOF
12017
12018 fi
12019
12020
12021
12022
12023
12024 for ac_header in sys/mount.h sys/user.h
12025 do
12026 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12027 echo "$as_me:$LINENO: checking for $ac_header" >&5
12028 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12029 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12030   echo $ECHO_N "(cached) $ECHO_C" >&6
12031 else
12032   cat >conftest.$ac_ext <<_ACEOF
12033 #line $LINENO "configure"
12034 #include "confdefs.h"
12035 #include <sys/types.h>
12036      #if HAVE_SYS_PARAM_H
12037      # include <sys/param.h>
12038      #endif
12039
12040 #include <$ac_header>
12041 _ACEOF
12042 rm -f conftest.$ac_objext
12043 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12044   (eval $ac_compile) 2>&5
12045   ac_status=$?
12046   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12047   (exit $ac_status); } &&
12048          { ac_try='test -s conftest.$ac_objext'
12049   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12050   (eval $ac_try) 2>&5
12051   ac_status=$?
12052   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12053   (exit $ac_status); }; }; then
12054   eval "$as_ac_Header=yes"
12055 else
12056   echo "$as_me: failed program was:" >&5
12057 cat conftest.$ac_ext >&5
12058 eval "$as_ac_Header=no"
12059 fi
12060 rm -f conftest.$ac_objext conftest.$ac_ext
12061 fi
12062 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12063 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12064 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12065   cat >>confdefs.h <<_ACEOF
12066 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12067 _ACEOF
12068
12069 fi
12070
12071 done
12072
12073
12074
12075 for ac_header in net/if.h
12076 do
12077 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12078 echo "$as_me:$LINENO: checking for $ac_header" >&5
12079 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12080 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12081   echo $ECHO_N "(cached) $ECHO_C" >&6
12082 else
12083   cat >conftest.$ac_ext <<_ACEOF
12084 #line $LINENO "configure"
12085 #include "confdefs.h"
12086 #include <sys/types.h>
12087      #if HAVE_SYS_SOCKET_H
12088      # include <sys/socket.h>
12089      #endif
12090
12091 #include <$ac_header>
12092 _ACEOF
12093 rm -f conftest.$ac_objext
12094 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12095   (eval $ac_compile) 2>&5
12096   ac_status=$?
12097   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12098   (exit $ac_status); } &&
12099          { ac_try='test -s conftest.$ac_objext'
12100   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12101   (eval $ac_try) 2>&5
12102   ac_status=$?
12103   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12104   (exit $ac_status); }; }; then
12105   eval "$as_ac_Header=yes"
12106 else
12107   echo "$as_me: failed program was:" >&5
12108 cat conftest.$ac_ext >&5
12109 eval "$as_ac_Header=no"
12110 fi
12111 rm -f conftest.$ac_objext conftest.$ac_ext
12112 fi
12113 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12114 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12115 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12116   cat >>confdefs.h <<_ACEOF
12117 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12118 _ACEOF
12119
12120 fi
12121
12122 done
12123
12124
12125
12126 for ac_header in netinet/ip.h
12127 do
12128 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12129 echo "$as_me:$LINENO: checking for $ac_header" >&5
12130 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12131 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12132   echo $ECHO_N "(cached) $ECHO_C" >&6
12133 else
12134   cat >conftest.$ac_ext <<_ACEOF
12135 #line $LINENO "configure"
12136 #include "confdefs.h"
12137 #include <sys/types.h>
12138      #if HAVE_SYS_SOCKET_H
12139      # include <sys/socket.h>
12140      #endif
12141      #if HAVE_NETINET_IN_SYSTM_H
12142      # include <netinet/in_systm.h>
12143      #endif
12144
12145 #include <$ac_header>
12146 _ACEOF
12147 rm -f conftest.$ac_objext
12148 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12149   (eval $ac_compile) 2>&5
12150   ac_status=$?
12151   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12152   (exit $ac_status); } &&
12153          { ac_try='test -s conftest.$ac_objext'
12154   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12155   (eval $ac_try) 2>&5
12156   ac_status=$?
12157   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12158   (exit $ac_status); }; }; then
12159   eval "$as_ac_Header=yes"
12160 else
12161   echo "$as_me: failed program was:" >&5
12162 cat conftest.$ac_ext >&5
12163 eval "$as_ac_Header=no"
12164 fi
12165 rm -f conftest.$ac_objext conftest.$ac_ext
12166 fi
12167 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12168 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12169 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12170   cat >>confdefs.h <<_ACEOF
12171 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12172 _ACEOF
12173
12174 fi
12175
12176 done
12177
12178
12179
12180 for ac_header in resolv.h
12181 do
12182 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12183 echo "$as_me:$LINENO: checking for $ac_header" >&5
12184 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12185 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12186   echo $ECHO_N "(cached) $ECHO_C" >&6
12187 else
12188   cat >conftest.$ac_ext <<_ACEOF
12189 #line $LINENO "configure"
12190 #include "confdefs.h"
12191 #include <sys/types.h>
12192      #if HAVE_SYS_SOCKET_H
12193      # include <sys/socket.h>
12194      #endif
12195
12196 #include <$ac_header>
12197 _ACEOF
12198 rm -f conftest.$ac_objext
12199 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12200   (eval $ac_compile) 2>&5
12201   ac_status=$?
12202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12203   (exit $ac_status); } &&
12204          { ac_try='test -s conftest.$ac_objext'
12205   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12206   (eval $ac_try) 2>&5
12207   ac_status=$?
12208   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12209   (exit $ac_status); }; }; then
12210   eval "$as_ac_Header=yes"
12211 else
12212   echo "$as_me: failed program was:" >&5
12213 cat conftest.$ac_ext >&5
12214 eval "$as_ac_Header=no"
12215 fi
12216 rm -f conftest.$ac_objext conftest.$ac_ext
12217 fi
12218 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12219 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12220 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12221   cat >>confdefs.h <<_ACEOF
12222 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12223 _ACEOF
12224
12225 fi
12226
12227 done
12228
12229
12230
12231 for ac_header in ucontext.h
12232 do
12233 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12234 echo "$as_me:$LINENO: checking for $ac_header" >&5
12235 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12236 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12237   echo $ECHO_N "(cached) $ECHO_C" >&6
12238 else
12239   cat >conftest.$ac_ext <<_ACEOF
12240 #line $LINENO "configure"
12241 #include "confdefs.h"
12242 #include <signal.h>
12243
12244 #include <$ac_header>
12245 _ACEOF
12246 rm -f conftest.$ac_objext
12247 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12248   (eval $ac_compile) 2>&5
12249   ac_status=$?
12250   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12251   (exit $ac_status); } &&
12252          { ac_try='test -s conftest.$ac_objext'
12253   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12254   (eval $ac_try) 2>&5
12255   ac_status=$?
12256   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12257   (exit $ac_status); }; }; then
12258   eval "$as_ac_Header=yes"
12259 else
12260   echo "$as_me: failed program was:" >&5
12261 cat conftest.$ac_ext >&5
12262 eval "$as_ac_Header=no"
12263 fi
12264 rm -f conftest.$ac_objext conftest.$ac_ext
12265 fi
12266 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12267 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12268 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12269   cat >>confdefs.h <<_ACEOF
12270 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12271 _ACEOF
12272
12273 fi
12274
12275 done
12276
12277
12278
12279 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
12280 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
12281 if test "${ac_cv_c_const+set}" = set; then
12282   echo $ECHO_N "(cached) $ECHO_C" >&6
12283 else
12284   cat >conftest.$ac_ext <<_ACEOF
12285 #line $LINENO "configure"
12286 #include "confdefs.h"
12287
12288 int
12289 main ()
12290 {
12291 /* FIXME: Include the comments suggested by Paul. */
12292 #ifndef __cplusplus
12293   /* Ultrix mips cc rejects this.  */
12294   typedef int charset[2];
12295   const charset x;
12296   /* SunOS 4.1.1 cc rejects this.  */
12297   char const *const *ccp;
12298   char **p;
12299   /* NEC SVR4.0.2 mips cc rejects this.  */
12300   struct point {int x, y;};
12301   static struct point const zero = {0,0};
12302   /* AIX XL C 1.02.0.0 rejects this.
12303      It does not let you subtract one const X* pointer from another in
12304      an arm of an if-expression whose if-part is not a constant
12305      expression */
12306   const char *g = "string";
12307   ccp = &g + (g ? g-g : 0);
12308   /* HPUX 7.0 cc rejects these. */
12309   ++ccp;
12310   p = (char**) ccp;
12311   ccp = (char const *const *) p;
12312   { /* SCO 3.2v4 cc rejects this.  */
12313     char *t;
12314     char const *s = 0 ? (char *) 0 : (char const *) 0;
12315
12316     *t++ = 0;
12317   }
12318   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
12319     int x[] = {25, 17};
12320     const int *foo = &x[0];
12321     ++foo;
12322   }
12323   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
12324     typedef const int *iptr;
12325     iptr p = 0;
12326     ++p;
12327   }
12328   { /* AIX XL C 1.02.0.0 rejects this saying
12329        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
12330     struct s { int j; const int *ap[3]; };
12331     struct s *b; b->j = 5;
12332   }
12333   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
12334     const int foo = 10;
12335   }
12336 #endif
12337
12338   ;
12339   return 0;
12340 }
12341 _ACEOF
12342 rm -f conftest.$ac_objext
12343 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12344   (eval $ac_compile) 2>&5
12345   ac_status=$?
12346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12347   (exit $ac_status); } &&
12348          { ac_try='test -s conftest.$ac_objext'
12349   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12350   (eval $ac_try) 2>&5
12351   ac_status=$?
12352   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12353   (exit $ac_status); }; }; then
12354   ac_cv_c_const=yes
12355 else
12356   echo "$as_me: failed program was:" >&5
12357 cat conftest.$ac_ext >&5
12358 ac_cv_c_const=no
12359 fi
12360 rm -f conftest.$ac_objext conftest.$ac_ext
12361 fi
12362 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
12363 echo "${ECHO_T}$ac_cv_c_const" >&6
12364 if test $ac_cv_c_const = no; then
12365
12366 cat >>confdefs.h <<\_ACEOF
12367 #define const
12368 _ACEOF
12369
12370 fi
12371
12372 echo "$as_me:$LINENO: checking for inline" >&5
12373 echo $ECHO_N "checking for inline... $ECHO_C" >&6
12374 if test "${ac_cv_c_inline+set}" = set; then
12375   echo $ECHO_N "(cached) $ECHO_C" >&6
12376 else
12377   ac_cv_c_inline=no
12378 for ac_kw in inline __inline__ __inline; do
12379   cat >conftest.$ac_ext <<_ACEOF
12380 #line $LINENO "configure"
12381 #include "confdefs.h"
12382 #ifndef __cplusplus
12383 typedef int foo_t;
12384 static $ac_kw foo_t static_foo () {return 0; }
12385 $ac_kw foo_t foo () {return 0; }
12386 #endif
12387
12388 _ACEOF
12389 rm -f conftest.$ac_objext
12390 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12391   (eval $ac_compile) 2>&5
12392   ac_status=$?
12393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12394   (exit $ac_status); } &&
12395          { ac_try='test -s conftest.$ac_objext'
12396   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12397   (eval $ac_try) 2>&5
12398   ac_status=$?
12399   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12400   (exit $ac_status); }; }; then
12401   ac_cv_c_inline=$ac_kw; break
12402 else
12403   echo "$as_me: failed program was:" >&5
12404 cat conftest.$ac_ext >&5
12405 fi
12406 rm -f conftest.$ac_objext conftest.$ac_ext
12407 done
12408
12409 fi
12410 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
12411 echo "${ECHO_T}$ac_cv_c_inline" >&6
12412 case $ac_cv_c_inline in
12413   inline | yes) ;;
12414   no)
12415 cat >>confdefs.h <<\_ACEOF
12416 #define inline
12417 _ACEOF
12418  ;;
12419   *)  cat >>confdefs.h <<_ACEOF
12420 #define inline $ac_cv_c_inline
12421 _ACEOF
12422  ;;
12423 esac
12424
12425 echo "$as_me:$LINENO: checking for mode_t" >&5
12426 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
12427 if test "${ac_cv_type_mode_t+set}" = set; then
12428   echo $ECHO_N "(cached) $ECHO_C" >&6
12429 else
12430   cat >conftest.$ac_ext <<_ACEOF
12431 #line $LINENO "configure"
12432 #include "confdefs.h"
12433 $ac_includes_default
12434 int
12435 main ()
12436 {
12437 if ((mode_t *) 0)
12438   return 0;
12439 if (sizeof (mode_t))
12440   return 0;
12441   ;
12442   return 0;
12443 }
12444 _ACEOF
12445 rm -f conftest.$ac_objext
12446 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12447   (eval $ac_compile) 2>&5
12448   ac_status=$?
12449   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12450   (exit $ac_status); } &&
12451          { ac_try='test -s conftest.$ac_objext'
12452   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12453   (eval $ac_try) 2>&5
12454   ac_status=$?
12455   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12456   (exit $ac_status); }; }; then
12457   ac_cv_type_mode_t=yes
12458 else
12459   echo "$as_me: failed program was:" >&5
12460 cat conftest.$ac_ext >&5
12461 ac_cv_type_mode_t=no
12462 fi
12463 rm -f conftest.$ac_objext conftest.$ac_ext
12464 fi
12465 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
12466 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
12467 if test $ac_cv_type_mode_t = yes; then
12468
12469 cat >>confdefs.h <<_ACEOF
12470 #define HAVE_MODE_T 1
12471 _ACEOF
12472
12473
12474 fi
12475 echo "$as_me:$LINENO: checking for off_t" >&5
12476 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
12477 if test "${ac_cv_type_off_t+set}" = set; then
12478   echo $ECHO_N "(cached) $ECHO_C" >&6
12479 else
12480   cat >conftest.$ac_ext <<_ACEOF
12481 #line $LINENO "configure"
12482 #include "confdefs.h"
12483 $ac_includes_default
12484 int
12485 main ()
12486 {
12487 if ((off_t *) 0)
12488   return 0;
12489 if (sizeof (off_t))
12490   return 0;
12491   ;
12492   return 0;
12493 }
12494 _ACEOF
12495 rm -f conftest.$ac_objext
12496 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12497   (eval $ac_compile) 2>&5
12498   ac_status=$?
12499   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12500   (exit $ac_status); } &&
12501          { ac_try='test -s conftest.$ac_objext'
12502   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12503   (eval $ac_try) 2>&5
12504   ac_status=$?
12505   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12506   (exit $ac_status); }; }; then
12507   ac_cv_type_off_t=yes
12508 else
12509   echo "$as_me: failed program was:" >&5
12510 cat conftest.$ac_ext >&5
12511 ac_cv_type_off_t=no
12512 fi
12513 rm -f conftest.$ac_objext conftest.$ac_ext
12514 fi
12515 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
12516 echo "${ECHO_T}$ac_cv_type_off_t" >&6
12517 if test $ac_cv_type_off_t = yes; then
12518
12519 cat >>confdefs.h <<_ACEOF
12520 #define HAVE_OFF_T 1
12521 _ACEOF
12522
12523
12524 fi
12525 echo "$as_me:$LINENO: checking for pid_t" >&5
12526 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
12527 if test "${ac_cv_type_pid_t+set}" = set; then
12528   echo $ECHO_N "(cached) $ECHO_C" >&6
12529 else
12530   cat >conftest.$ac_ext <<_ACEOF
12531 #line $LINENO "configure"
12532 #include "confdefs.h"
12533 $ac_includes_default
12534 int
12535 main ()
12536 {
12537 if ((pid_t *) 0)
12538   return 0;
12539 if (sizeof (pid_t))
12540   return 0;
12541   ;
12542   return 0;
12543 }
12544 _ACEOF
12545 rm -f conftest.$ac_objext
12546 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12547   (eval $ac_compile) 2>&5
12548   ac_status=$?
12549   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12550   (exit $ac_status); } &&
12551          { ac_try='test -s conftest.$ac_objext'
12552   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12553   (eval $ac_try) 2>&5
12554   ac_status=$?
12555   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12556   (exit $ac_status); }; }; then
12557   ac_cv_type_pid_t=yes
12558 else
12559   echo "$as_me: failed program was:" >&5
12560 cat conftest.$ac_ext >&5
12561 ac_cv_type_pid_t=no
12562 fi
12563 rm -f conftest.$ac_objext conftest.$ac_ext
12564 fi
12565 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
12566 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
12567 if test $ac_cv_type_pid_t = yes; then
12568
12569 cat >>confdefs.h <<_ACEOF
12570 #define HAVE_PID_T 1
12571 _ACEOF
12572
12573
12574 fi
12575 echo "$as_me:$LINENO: checking for size_t" >&5
12576 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
12577 if test "${ac_cv_type_size_t+set}" = set; then
12578   echo $ECHO_N "(cached) $ECHO_C" >&6
12579 else
12580   cat >conftest.$ac_ext <<_ACEOF
12581 #line $LINENO "configure"
12582 #include "confdefs.h"
12583 $ac_includes_default
12584 int
12585 main ()
12586 {
12587 if ((size_t *) 0)
12588   return 0;
12589 if (sizeof (size_t))
12590   return 0;
12591   ;
12592   return 0;
12593 }
12594 _ACEOF
12595 rm -f conftest.$ac_objext
12596 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12597   (eval $ac_compile) 2>&5
12598   ac_status=$?
12599   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12600   (exit $ac_status); } &&
12601          { ac_try='test -s conftest.$ac_objext'
12602   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12603   (eval $ac_try) 2>&5
12604   ac_status=$?
12605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12606   (exit $ac_status); }; }; then
12607   ac_cv_type_size_t=yes
12608 else
12609   echo "$as_me: failed program was:" >&5
12610 cat conftest.$ac_ext >&5
12611 ac_cv_type_size_t=no
12612 fi
12613 rm -f conftest.$ac_objext conftest.$ac_ext
12614 fi
12615 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
12616 echo "${ECHO_T}$ac_cv_type_size_t" >&6
12617 if test $ac_cv_type_size_t = yes; then
12618
12619 cat >>confdefs.h <<_ACEOF
12620 #define HAVE_SIZE_T 1
12621 _ACEOF
12622
12623
12624 fi
12625 echo "$as_me:$LINENO: checking for ssize_t" >&5
12626 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
12627 if test "${ac_cv_type_ssize_t+set}" = set; then
12628   echo $ECHO_N "(cached) $ECHO_C" >&6
12629 else
12630   cat >conftest.$ac_ext <<_ACEOF
12631 #line $LINENO "configure"
12632 #include "confdefs.h"
12633 $ac_includes_default
12634 int
12635 main ()
12636 {
12637 if ((ssize_t *) 0)
12638   return 0;
12639 if (sizeof (ssize_t))
12640   return 0;
12641   ;
12642   return 0;
12643 }
12644 _ACEOF
12645 rm -f conftest.$ac_objext
12646 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12647   (eval $ac_compile) 2>&5
12648   ac_status=$?
12649   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12650   (exit $ac_status); } &&
12651          { ac_try='test -s conftest.$ac_objext'
12652   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12653   (eval $ac_try) 2>&5
12654   ac_status=$?
12655   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12656   (exit $ac_status); }; }; then
12657   ac_cv_type_ssize_t=yes
12658 else
12659   echo "$as_me: failed program was:" >&5
12660 cat conftest.$ac_ext >&5
12661 ac_cv_type_ssize_t=no
12662 fi
12663 rm -f conftest.$ac_objext conftest.$ac_ext
12664 fi
12665 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
12666 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
12667 if test $ac_cv_type_ssize_t = yes; then
12668
12669 cat >>confdefs.h <<_ACEOF
12670 #define HAVE_SSIZE_T 1
12671 _ACEOF
12672
12673
12674 fi
12675
12676 echo "$as_me:$LINENO: checking for long long" >&5
12677 echo $ECHO_N "checking for long long... $ECHO_C" >&6
12678 if test "${ac_cv_type_long_long+set}" = set; then
12679   echo $ECHO_N "(cached) $ECHO_C" >&6
12680 else
12681   cat >conftest.$ac_ext <<_ACEOF
12682 #line $LINENO "configure"
12683 #include "confdefs.h"
12684 $ac_includes_default
12685 int
12686 main ()
12687 {
12688 if ((long long *) 0)
12689   return 0;
12690 if (sizeof (long long))
12691   return 0;
12692   ;
12693   return 0;
12694 }
12695 _ACEOF
12696 rm -f conftest.$ac_objext
12697 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12698   (eval $ac_compile) 2>&5
12699   ac_status=$?
12700   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12701   (exit $ac_status); } &&
12702          { ac_try='test -s conftest.$ac_objext'
12703   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12704   (eval $ac_try) 2>&5
12705   ac_status=$?
12706   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12707   (exit $ac_status); }; }; then
12708   ac_cv_type_long_long=yes
12709 else
12710   echo "$as_me: failed program was:" >&5
12711 cat conftest.$ac_ext >&5
12712 ac_cv_type_long_long=no
12713 fi
12714 rm -f conftest.$ac_objext conftest.$ac_ext
12715 fi
12716 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
12717 echo "${ECHO_T}$ac_cv_type_long_long" >&6
12718
12719 echo "$as_me:$LINENO: checking size of long long" >&5
12720 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
12721 if test "${ac_cv_sizeof_long_long+set}" = set; then
12722   echo $ECHO_N "(cached) $ECHO_C" >&6
12723 else
12724   if test "$ac_cv_type_long_long" = yes; then
12725   # The cast to unsigned long works around a bug in the HP C Compiler
12726   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12727   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12728   # This bug is HP SR number 8606223364.
12729   if test "$cross_compiling" = yes; then
12730   # Depending upon the size, compute the lo and hi bounds.
12731 cat >conftest.$ac_ext <<_ACEOF
12732 #line $LINENO "configure"
12733 #include "confdefs.h"
12734 $ac_includes_default
12735 int
12736 main ()
12737 {
12738 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
12739 test_array [0] = 0
12740
12741   ;
12742   return 0;
12743 }
12744 _ACEOF
12745 rm -f conftest.$ac_objext
12746 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12747   (eval $ac_compile) 2>&5
12748   ac_status=$?
12749   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12750   (exit $ac_status); } &&
12751          { ac_try='test -s conftest.$ac_objext'
12752   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12753   (eval $ac_try) 2>&5
12754   ac_status=$?
12755   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12756   (exit $ac_status); }; }; then
12757   ac_lo=0 ac_mid=0
12758   while :; do
12759     cat >conftest.$ac_ext <<_ACEOF
12760 #line $LINENO "configure"
12761 #include "confdefs.h"
12762 $ac_includes_default
12763 int
12764 main ()
12765 {
12766 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
12767 test_array [0] = 0
12768
12769   ;
12770   return 0;
12771 }
12772 _ACEOF
12773 rm -f conftest.$ac_objext
12774 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12775   (eval $ac_compile) 2>&5
12776   ac_status=$?
12777   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12778   (exit $ac_status); } &&
12779          { ac_try='test -s conftest.$ac_objext'
12780   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12781   (eval $ac_try) 2>&5
12782   ac_status=$?
12783   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12784   (exit $ac_status); }; }; then
12785   ac_hi=$ac_mid; break
12786 else
12787   echo "$as_me: failed program was:" >&5
12788 cat conftest.$ac_ext >&5
12789 ac_lo=`expr $ac_mid + 1`
12790                     if test $ac_lo -le $ac_mid; then
12791                       ac_lo= ac_hi=
12792                       break
12793                     fi
12794                     ac_mid=`expr 2 '*' $ac_mid + 1`
12795 fi
12796 rm -f conftest.$ac_objext conftest.$ac_ext
12797   done
12798 else
12799   echo "$as_me: failed program was:" >&5
12800 cat conftest.$ac_ext >&5
12801 cat >conftest.$ac_ext <<_ACEOF
12802 #line $LINENO "configure"
12803 #include "confdefs.h"
12804 $ac_includes_default
12805 int
12806 main ()
12807 {
12808 static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
12809 test_array [0] = 0
12810
12811   ;
12812   return 0;
12813 }
12814 _ACEOF
12815 rm -f conftest.$ac_objext
12816 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12817   (eval $ac_compile) 2>&5
12818   ac_status=$?
12819   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12820   (exit $ac_status); } &&
12821          { ac_try='test -s conftest.$ac_objext'
12822   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12823   (eval $ac_try) 2>&5
12824   ac_status=$?
12825   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12826   (exit $ac_status); }; }; then
12827   ac_hi=-1 ac_mid=-1
12828   while :; do
12829     cat >conftest.$ac_ext <<_ACEOF
12830 #line $LINENO "configure"
12831 #include "confdefs.h"
12832 $ac_includes_default
12833 int
12834 main ()
12835 {
12836 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
12837 test_array [0] = 0
12838
12839   ;
12840   return 0;
12841 }
12842 _ACEOF
12843 rm -f conftest.$ac_objext
12844 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12845   (eval $ac_compile) 2>&5
12846   ac_status=$?
12847   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12848   (exit $ac_status); } &&
12849          { ac_try='test -s conftest.$ac_objext'
12850   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12851   (eval $ac_try) 2>&5
12852   ac_status=$?
12853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12854   (exit $ac_status); }; }; then
12855   ac_lo=$ac_mid; break
12856 else
12857   echo "$as_me: failed program was:" >&5
12858 cat conftest.$ac_ext >&5
12859 ac_hi=`expr '(' $ac_mid ')' - 1`
12860                        if test $ac_mid -le $ac_hi; then
12861                          ac_lo= ac_hi=
12862                          break
12863                        fi
12864                        ac_mid=`expr 2 '*' $ac_mid`
12865 fi
12866 rm -f conftest.$ac_objext conftest.$ac_ext
12867   done
12868 else
12869   echo "$as_me: failed program was:" >&5
12870 cat conftest.$ac_ext >&5
12871 ac_lo= ac_hi=
12872 fi
12873 rm -f conftest.$ac_objext conftest.$ac_ext
12874 fi
12875 rm -f conftest.$ac_objext conftest.$ac_ext
12876 # Binary search between lo and hi bounds.
12877 while test "x$ac_lo" != "x$ac_hi"; do
12878   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12879   cat >conftest.$ac_ext <<_ACEOF
12880 #line $LINENO "configure"
12881 #include "confdefs.h"
12882 $ac_includes_default
12883 int
12884 main ()
12885 {
12886 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
12887 test_array [0] = 0
12888
12889   ;
12890   return 0;
12891 }
12892 _ACEOF
12893 rm -f conftest.$ac_objext
12894 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12895   (eval $ac_compile) 2>&5
12896   ac_status=$?
12897   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12898   (exit $ac_status); } &&
12899          { ac_try='test -s conftest.$ac_objext'
12900   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12901   (eval $ac_try) 2>&5
12902   ac_status=$?
12903   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12904   (exit $ac_status); }; }; then
12905   ac_hi=$ac_mid
12906 else
12907   echo "$as_me: failed program was:" >&5
12908 cat conftest.$ac_ext >&5
12909 ac_lo=`expr '(' $ac_mid ')' + 1`
12910 fi
12911 rm -f conftest.$ac_objext conftest.$ac_ext
12912 done
12913 case $ac_lo in
12914 ?*) ac_cv_sizeof_long_long=$ac_lo;;
12915 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77" >&5
12916 echo "$as_me: error: cannot compute sizeof (long long), 77" >&2;}
12917    { (exit 1); exit 1; }; } ;;
12918 esac
12919 else
12920   if test "$cross_compiling" = yes; then
12921   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
12922 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
12923    { (exit 1); exit 1; }; }
12924 else
12925   cat >conftest.$ac_ext <<_ACEOF
12926 #line $LINENO "configure"
12927 #include "confdefs.h"
12928 $ac_includes_default
12929 long longval () { return (long) (sizeof (long long)); }
12930 unsigned long ulongval () { return (long) (sizeof (long long)); }
12931 #include <stdio.h>
12932 #include <stdlib.h>
12933 int
12934 main ()
12935 {
12936
12937   FILE *f = fopen ("conftest.val", "w");
12938   if (! f)
12939     exit (1);
12940   if (((long) (sizeof (long long))) < 0)
12941     {
12942       long i = longval ();
12943       if (i != ((long) (sizeof (long long))))
12944         exit (1);
12945       fprintf (f, "%ld\n", i);
12946     }
12947   else
12948     {
12949       unsigned long i = ulongval ();
12950       if (i != ((long) (sizeof (long long))))
12951         exit (1);
12952       fprintf (f, "%lu\n", i);
12953     }
12954   exit (ferror (f) || fclose (f) != 0);
12955
12956   ;
12957   return 0;
12958 }
12959 _ACEOF
12960 rm -f conftest$ac_exeext
12961 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12962   (eval $ac_link) 2>&5
12963   ac_status=$?
12964   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12965   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12966   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12967   (eval $ac_try) 2>&5
12968   ac_status=$?
12969   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12970   (exit $ac_status); }; }; then
12971   ac_cv_sizeof_long_long=`cat conftest.val`
12972 else
12973   echo "$as_me: program exited with status $ac_status" >&5
12974 echo "$as_me: failed program was:" >&5
12975 cat conftest.$ac_ext >&5
12976 ( exit $ac_status )
12977 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77" >&5
12978 echo "$as_me: error: cannot compute sizeof (long long), 77" >&2;}
12979    { (exit 1); exit 1; }; }
12980 fi
12981 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12982 fi
12983 fi
12984 rm -f conftest.val
12985 else
12986   ac_cv_sizeof_long_long=0
12987 fi
12988 fi
12989 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
12990 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
12991 cat >>confdefs.h <<_ACEOF
12992 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
12993 _ACEOF
12994
12995
12996
12997 echo "$as_me:$LINENO: checking whether linux/input.h is for real" >&5
12998 echo $ECHO_N "checking whether linux/input.h is for real... $ECHO_C" >&6
12999 if test "${wine_cv_linux_input_h+set}" = set; then
13000   echo $ECHO_N "(cached) $ECHO_C" >&6
13001 else
13002   cat >conftest.$ac_ext <<_ACEOF
13003 #line $LINENO "configure"
13004 #include "confdefs.h"
13005
13006             #include <linux/input.h>
13007
13008 int
13009 main ()
13010 {
13011
13012             int foo = EVIOCGBIT(EV_ABS,42);
13013             int bar = BTN_PINKIE;
13014             int fortytwo = 42;
13015
13016   ;
13017   return 0;
13018 }
13019 _ACEOF
13020 rm -f conftest.$ac_objext
13021 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13022   (eval $ac_compile) 2>&5
13023   ac_status=$?
13024   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13025   (exit $ac_status); } &&
13026          { ac_try='test -s conftest.$ac_objext'
13027   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13028   (eval $ac_try) 2>&5
13029   ac_status=$?
13030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13031   (exit $ac_status); }; }; then
13032   wine_cv_linux_input_h=yes
13033 else
13034   echo "$as_me: failed program was:" >&5
13035 cat conftest.$ac_ext >&5
13036 wine_cv_linux_input_h=no
13037 fi
13038 rm -f conftest.$ac_objext conftest.$ac_ext
13039
13040 fi
13041 echo "$as_me:$LINENO: result: $wine_cv_linux_input_h" >&5
13042 echo "${ECHO_T}$wine_cv_linux_input_h" >&6
13043     if test "$wine_cv_linux_input_h" = "yes"
13044     then
13045
13046 cat >>confdefs.h <<\_ACEOF
13047 #define HAVE_CORRECT_LINUXINPUT_H 1
13048 _ACEOF
13049
13050     fi
13051
13052
13053 echo "$as_me:$LINENO: checking whether we can use re-entrant gethostbyname_r Linux style" >&5
13054 echo $ECHO_N "checking whether we can use re-entrant gethostbyname_r Linux style... $ECHO_C" >&6
13055 if test "${wine_cv_linux_gethostbyname_r_6+set}" = set; then
13056   echo $ECHO_N "(cached) $ECHO_C" >&6
13057 else
13058   cat >conftest.$ac_ext <<_ACEOF
13059 #line $LINENO "configure"
13060 #include "confdefs.h"
13061
13062 #include <netdb.h>
13063
13064 int
13065 main ()
13066 {
13067
13068     char *name=NULL;
13069     struct hostent he;
13070     struct hostent *result;
13071     char *buf=NULL;
13072     int bufsize=0;
13073     int res,errnr;
13074     char *addr=NULL;
13075     int addrlen=0;
13076     int addrtype=0;
13077     res=gethostbyname_r(name,&he,buf,bufsize,&result,&errnr);
13078     res=gethostbyaddr_r(addr, addrlen, addrtype,&he,buf,bufsize,&result,&errnr);
13079
13080   ;
13081   return 0;
13082 }
13083 _ACEOF
13084 rm -f conftest.$ac_objext
13085 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13086   (eval $ac_compile) 2>&5
13087   ac_status=$?
13088   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13089   (exit $ac_status); } &&
13090          { ac_try='test -s conftest.$ac_objext'
13091   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13092   (eval $ac_try) 2>&5
13093   ac_status=$?
13094   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13095   (exit $ac_status); }; }; then
13096   wine_cv_linux_gethostbyname_r_6=yes
13097 else
13098   echo "$as_me: failed program was:" >&5
13099 cat conftest.$ac_ext >&5
13100 wine_cv_linux_gethostbyname_r_6=no
13101
13102 fi
13103 rm -f conftest.$ac_objext conftest.$ac_ext
13104
13105 fi
13106 echo "$as_me:$LINENO: result: $wine_cv_linux_gethostbyname_r_6" >&5
13107 echo "${ECHO_T}$wine_cv_linux_gethostbyname_r_6" >&6
13108    if test "$wine_cv_linux_gethostbyname_r_6" = "yes"
13109    then
13110
13111 cat >>confdefs.h <<\_ACEOF
13112 #define HAVE_LINUX_GETHOSTBYNAME_R_6 1
13113 _ACEOF
13114
13115    fi
13116
13117 if test "$ac_cv_header_linux_joystick_h" = "yes"
13118 then
13119    echo "$as_me:$LINENO: checking whether linux/joystick.h uses the Linux 2.2+ API" >&5
13120 echo $ECHO_N "checking whether linux/joystick.h uses the Linux 2.2+ API... $ECHO_C" >&6
13121 if test "${wine_cv_linux_joystick_22_api+set}" = set; then
13122   echo $ECHO_N "(cached) $ECHO_C" >&6
13123 else
13124   cat >conftest.$ac_ext <<_ACEOF
13125 #line $LINENO "configure"
13126 #include "confdefs.h"
13127
13128         #include <sys/ioctl.h>
13129         #include <linux/joystick.h>
13130
13131         struct js_event blub;
13132         #if !defined(JS_EVENT_AXIS) || !defined(JS_EVENT_BUTTON)
13133         #error "no 2.2 header"
13134         #endif
13135
13136 int
13137 main ()
13138 {
13139 /*empty*/
13140   ;
13141   return 0;
13142 }
13143 _ACEOF
13144 rm -f conftest.$ac_objext
13145 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13146   (eval $ac_compile) 2>&5
13147   ac_status=$?
13148   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13149   (exit $ac_status); } &&
13150          { ac_try='test -s conftest.$ac_objext'
13151   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13152   (eval $ac_try) 2>&5
13153   ac_status=$?
13154   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13155   (exit $ac_status); }; }; then
13156   wine_cv_linux_joystick_22_api=yes
13157 else
13158   echo "$as_me: failed program was:" >&5
13159 cat conftest.$ac_ext >&5
13160 wine_cv_linux_joystick_22_api=no
13161 fi
13162 rm -f conftest.$ac_objext conftest.$ac_ext
13163
13164 fi
13165 echo "$as_me:$LINENO: result: $wine_cv_linux_joystick_22_api" >&5
13166 echo "${ECHO_T}$wine_cv_linux_joystick_22_api" >&6
13167    if test "$wine_cv_linux_joystick_22_api" = "yes"
13168    then
13169
13170 cat >>confdefs.h <<\_ACEOF
13171 #define HAVE_LINUX_22_JOYSTICK_API 1
13172 _ACEOF
13173
13174    fi
13175 fi
13176
13177
13178 if test "$ac_cv_header_sys_vfs_h" = "yes"
13179 then
13180     echo "$as_me:$LINENO: checking whether sys/vfs.h defines statfs" >&5
13181 echo $ECHO_N "checking whether sys/vfs.h defines statfs... $ECHO_C" >&6
13182 if test "${wine_cv_sys_vfs_has_statfs+set}" = set; then
13183   echo $ECHO_N "(cached) $ECHO_C" >&6
13184 else
13185   cat >conftest.$ac_ext <<_ACEOF
13186 #line $LINENO "configure"
13187 #include "confdefs.h"
13188
13189         #include <sys/types.h>
13190         #ifdef HAVE_SYS_PARAM_H
13191         # include <sys/param.h>
13192         #endif
13193         #include <sys/vfs.h>
13194
13195 int
13196 main ()
13197 {
13198
13199                 struct statfs stfs;
13200
13201                 memset(&stfs,0,sizeof(stfs));
13202
13203   ;
13204   return 0;
13205 }
13206 _ACEOF
13207 rm -f conftest.$ac_objext
13208 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13209   (eval $ac_compile) 2>&5
13210   ac_status=$?
13211   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13212   (exit $ac_status); } &&
13213          { ac_try='test -s conftest.$ac_objext'
13214   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13215   (eval $ac_try) 2>&5
13216   ac_status=$?
13217   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13218   (exit $ac_status); }; }; then
13219   wine_cv_sys_vfs_has_statfs=yes
13220 else
13221   echo "$as_me: failed program was:" >&5
13222 cat conftest.$ac_ext >&5
13223 wine_cv_sys_vfs_has_statfs=no
13224
13225 fi
13226 rm -f conftest.$ac_objext conftest.$ac_ext
13227
13228 fi
13229 echo "$as_me:$LINENO: result: $wine_cv_sys_vfs_has_statfs" >&5
13230 echo "${ECHO_T}$wine_cv_sys_vfs_has_statfs" >&6
13231     if test "$wine_cv_sys_vfs_has_statfs" = "yes"
13232     then
13233
13234 cat >>confdefs.h <<\_ACEOF
13235 #define STATFS_DEFINED_BY_SYS_VFS 1
13236 _ACEOF
13237
13238     fi
13239 fi
13240
13241 if test "$ac_cv_header_sys_statfs_h" = "yes"
13242 then
13243     echo "$as_me:$LINENO: checking whether sys/statfs.h defines statfs" >&5
13244 echo $ECHO_N "checking whether sys/statfs.h defines statfs... $ECHO_C" >&6
13245 if test "${wine_cv_sys_statfs_has_statfs+set}" = set; then
13246   echo $ECHO_N "(cached) $ECHO_C" >&6
13247 else
13248   cat >conftest.$ac_ext <<_ACEOF
13249 #line $LINENO "configure"
13250 #include "confdefs.h"
13251
13252         #include <sys/types.h>
13253         #ifdef HAVE_SYS_PARAM_H
13254         # include <sys/param.h>
13255         #endif
13256         #include <sys/statfs.h>
13257
13258 int
13259 main ()
13260 {
13261
13262                 struct statfs stfs;
13263
13264   ;
13265   return 0;
13266 }
13267 _ACEOF
13268 rm -f conftest.$ac_objext
13269 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13270   (eval $ac_compile) 2>&5
13271   ac_status=$?
13272   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13273   (exit $ac_status); } &&
13274          { ac_try='test -s conftest.$ac_objext'
13275   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13276   (eval $ac_try) 2>&5
13277   ac_status=$?
13278   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13279   (exit $ac_status); }; }; then
13280   wine_cv_sys_statfs_has_statfs=yes
13281 else
13282   echo "$as_me: failed program was:" >&5
13283 cat conftest.$ac_ext >&5
13284 wine_cv_sys_statfs_has_statfs=no
13285
13286 fi
13287 rm -f conftest.$ac_objext conftest.$ac_ext
13288
13289 fi
13290 echo "$as_me:$LINENO: result: $wine_cv_sys_statfs_has_statfs" >&5
13291 echo "${ECHO_T}$wine_cv_sys_statfs_has_statfs" >&6
13292     if test "$wine_cv_sys_statfs_has_statfs" = "yes"
13293     then
13294
13295 cat >>confdefs.h <<\_ACEOF
13296 #define STATFS_DEFINED_BY_SYS_STATFS 1
13297 _ACEOF
13298
13299     fi
13300 fi
13301
13302 if test "$ac_cv_header_sys_mount_h" = "yes"
13303 then
13304     echo "$as_me:$LINENO: checking whether sys/mount.h defines statfs" >&5
13305 echo $ECHO_N "checking whether sys/mount.h defines statfs... $ECHO_C" >&6
13306 if test "${wine_cv_sys_mount_has_statfs+set}" = set; then
13307   echo $ECHO_N "(cached) $ECHO_C" >&6
13308 else
13309   cat >conftest.$ac_ext <<_ACEOF
13310 #line $LINENO "configure"
13311 #include "confdefs.h"
13312
13313         #include <sys/types.h>
13314         #ifdef HAVE_SYS_PARAM_H
13315         # include <sys/param.h>
13316         #endif
13317         #include <sys/mount.h>
13318
13319 int
13320 main ()
13321 {
13322
13323                 struct statfs stfs;
13324
13325   ;
13326   return 0;
13327 }
13328 _ACEOF
13329 rm -f conftest.$ac_objext
13330 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13331   (eval $ac_compile) 2>&5
13332   ac_status=$?
13333   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13334   (exit $ac_status); } &&
13335          { ac_try='test -s conftest.$ac_objext'
13336   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13337   (eval $ac_try) 2>&5
13338   ac_status=$?
13339   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13340   (exit $ac_status); }; }; then
13341   wine_cv_sys_mount_has_statfs=yes
13342 else
13343   echo "$as_me: failed program was:" >&5
13344 cat conftest.$ac_ext >&5
13345 wine_cv_sys_mount_has_statfs=no
13346
13347 fi
13348 rm -f conftest.$ac_objext conftest.$ac_ext
13349
13350 fi
13351 echo "$as_me:$LINENO: result: $wine_cv_sys_mount_has_statfs" >&5
13352 echo "${ECHO_T}$wine_cv_sys_mount_has_statfs" >&6
13353     if test "$wine_cv_sys_mount_has_statfs" = "yes"
13354     then
13355
13356 cat >>confdefs.h <<\_ACEOF
13357 #define STATFS_DEFINED_BY_SYS_MOUNT 1
13358 _ACEOF
13359
13360     fi
13361 fi
13362
13363
13364 echo "$as_me:$LINENO: checking for f_bfree in struct statfs" >&5
13365 echo $ECHO_N "checking for f_bfree in struct statfs... $ECHO_C" >&6
13366 if test "${ac_cv_c_statfs_f_bfree+set}" = set; then
13367   echo $ECHO_N "(cached) $ECHO_C" >&6
13368 else
13369   cat >conftest.$ac_ext <<_ACEOF
13370 #line $LINENO "configure"
13371 #include "confdefs.h"
13372 #include <sys/types.h>
13373 #ifdef HAVE_SYS_PARAM_H
13374 # include <sys/param.h>
13375 #endif
13376 #ifdef STATFS_DEFINED_BY_SYS_MOUNT
13377 # include <sys/mount.h>
13378 #else
13379 # ifdef STATFS_DEFINED_BY_SYS_VFS
13380 #  include <sys/vfs.h>
13381 # else
13382 #  ifdef STATFS_DEFINED_BY_SYS_STATFS
13383 #   include <sys/statfs.h>
13384 #  endif
13385 # endif
13386 #endif
13387 int
13388 main ()
13389 {
13390 struct statfs s; s.f_bfree = 0
13391   ;
13392   return 0;
13393 }
13394 _ACEOF
13395 rm -f conftest.$ac_objext
13396 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13397   (eval $ac_compile) 2>&5
13398   ac_status=$?
13399   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13400   (exit $ac_status); } &&
13401          { ac_try='test -s conftest.$ac_objext'
13402   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13403   (eval $ac_try) 2>&5
13404   ac_status=$?
13405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13406   (exit $ac_status); }; }; then
13407   ac_cv_c_statfs_f_bfree="yes"
13408 else
13409   echo "$as_me: failed program was:" >&5
13410 cat conftest.$ac_ext >&5
13411 ac_cv_c_statfs_f_bfree="no"
13412 fi
13413 rm -f conftest.$ac_objext conftest.$ac_ext
13414 fi
13415 echo "$as_me:$LINENO: result: $ac_cv_c_statfs_f_bfree" >&5
13416 echo "${ECHO_T}$ac_cv_c_statfs_f_bfree" >&6
13417 if  test "x$ac_cv_c_statfs_f_bfree" = "xyes"; then
13418
13419 cat >>confdefs.h <<\_ACEOF
13420 #define STATFS_HAS_BFREE 1
13421 _ACEOF
13422
13423 fi
13424
13425
13426
13427 echo "$as_me:$LINENO: checking for f_bavail in struct statfs" >&5
13428 echo $ECHO_N "checking for f_bavail in struct statfs... $ECHO_C" >&6
13429 if test "${ac_cv_c_statfs_f_bavail+set}" = set; then
13430   echo $ECHO_N "(cached) $ECHO_C" >&6
13431 else
13432   cat >conftest.$ac_ext <<_ACEOF
13433 #line $LINENO "configure"
13434 #include "confdefs.h"
13435 #include <sys/types.h>
13436 #ifdef HAVE_SYS_PARAM_H
13437 # include <sys/param.h>
13438 #endif
13439 #ifdef STATFS_DEFINED_BY_SYS_MOUNT
13440 # include <sys/mount.h>
13441 #else
13442 # ifdef STATFS_DEFINED_BY_SYS_VFS
13443 #  include <sys/vfs.h>
13444 # else
13445 #  ifdef STATFS_DEFINED_BY_SYS_STATFS
13446 #   include <sys/statfs.h>
13447 #  endif
13448 # endif
13449 #endif
13450 int
13451 main ()
13452 {
13453 struct statfs s; s.f_bavail = 0
13454   ;
13455   return 0;
13456 }
13457 _ACEOF
13458 rm -f conftest.$ac_objext
13459 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13460   (eval $ac_compile) 2>&5
13461   ac_status=$?
13462   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13463   (exit $ac_status); } &&
13464          { ac_try='test -s conftest.$ac_objext'
13465   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13466   (eval $ac_try) 2>&5
13467   ac_status=$?
13468   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13469   (exit $ac_status); }; }; then
13470   ac_cv_c_statfs_f_bavail="yes"
13471 else
13472   echo "$as_me: failed program was:" >&5
13473 cat conftest.$ac_ext >&5
13474 ac_cv_c_statfs_f_bavail="no"
13475 fi
13476 rm -f conftest.$ac_objext conftest.$ac_ext
13477 fi
13478 echo "$as_me:$LINENO: result: $ac_cv_c_statfs_f_bavail" >&5
13479 echo "${ECHO_T}$ac_cv_c_statfs_f_bavail" >&6
13480 if  test "x$ac_cv_c_statfs_f_bavail" = "xyes"; then
13481
13482 cat >>confdefs.h <<\_ACEOF
13483 #define STATFS_HAS_BAVAIL 1
13484 _ACEOF
13485
13486 fi
13487
13488
13489
13490 echo "$as_me:$LINENO: checking for msg_accrights in struct msghdr" >&5
13491 echo $ECHO_N "checking for msg_accrights in struct msghdr... $ECHO_C" >&6
13492 if test "${ac_cv_c_msghdr_msg_accrights+set}" = set; then
13493   echo $ECHO_N "(cached) $ECHO_C" >&6
13494 else
13495   cat >conftest.$ac_ext <<_ACEOF
13496 #line $LINENO "configure"
13497 #include "confdefs.h"
13498 #include <sys/types.h>
13499 #ifdef HAVE_SYS_SOCKET_H
13500 # include <sys/socket.h>
13501 #endif
13502 int
13503 main ()
13504 {
13505 struct msghdr s; s.msg_accrights = 0
13506   ;
13507   return 0;
13508 }
13509 _ACEOF
13510 rm -f conftest.$ac_objext
13511 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13512   (eval $ac_compile) 2>&5
13513   ac_status=$?
13514   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13515   (exit $ac_status); } &&
13516          { ac_try='test -s conftest.$ac_objext'
13517   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13518   (eval $ac_try) 2>&5
13519   ac_status=$?
13520   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13521   (exit $ac_status); }; }; then
13522   ac_cv_c_msghdr_msg_accrights="yes"
13523 else
13524   echo "$as_me: failed program was:" >&5
13525 cat conftest.$ac_ext >&5
13526 ac_cv_c_msghdr_msg_accrights="no"
13527 fi
13528 rm -f conftest.$ac_objext conftest.$ac_ext
13529 fi
13530 echo "$as_me:$LINENO: result: $ac_cv_c_msghdr_msg_accrights" >&5
13531 echo "${ECHO_T}$ac_cv_c_msghdr_msg_accrights" >&6
13532 if  test "x$ac_cv_c_msghdr_msg_accrights" = "xyes"; then
13533
13534 cat >>confdefs.h <<\_ACEOF
13535 #define HAVE_MSGHDR_ACCRIGHTS 1
13536 _ACEOF
13537
13538 fi
13539
13540
13541
13542 echo "$as_me:$LINENO: checking for sa_len in struct sockaddr" >&5
13543 echo $ECHO_N "checking for sa_len in struct sockaddr... $ECHO_C" >&6
13544 if test "${ac_cv_c_sockaddr_sa_len+set}" = set; then
13545   echo $ECHO_N "(cached) $ECHO_C" >&6
13546 else
13547   cat >conftest.$ac_ext <<_ACEOF
13548 #line $LINENO "configure"
13549 #include "confdefs.h"
13550 #include <sys/types.h>
13551 #ifdef HAVE_SYS_SOCKET_H
13552 # include <sys/socket.h>
13553 #endif
13554 int
13555 main ()
13556 {
13557 struct sockaddr s; s.sa_len = 0
13558   ;
13559   return 0;
13560 }
13561 _ACEOF
13562 rm -f conftest.$ac_objext
13563 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13564   (eval $ac_compile) 2>&5
13565   ac_status=$?
13566   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13567   (exit $ac_status); } &&
13568          { ac_try='test -s conftest.$ac_objext'
13569   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13570   (eval $ac_try) 2>&5
13571   ac_status=$?
13572   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13573   (exit $ac_status); }; }; then
13574   ac_cv_c_sockaddr_sa_len="yes"
13575 else
13576   echo "$as_me: failed program was:" >&5
13577 cat conftest.$ac_ext >&5
13578 ac_cv_c_sockaddr_sa_len="no"
13579 fi
13580 rm -f conftest.$ac_objext conftest.$ac_ext
13581 fi
13582 echo "$as_me:$LINENO: result: $ac_cv_c_sockaddr_sa_len" >&5
13583 echo "${ECHO_T}$ac_cv_c_sockaddr_sa_len" >&6
13584 if  test "x$ac_cv_c_sockaddr_sa_len" = "xyes"; then
13585
13586 cat >>confdefs.h <<\_ACEOF
13587 #define HAVE_SOCKADDR_SA_LEN 1
13588 _ACEOF
13589
13590 fi
13591
13592
13593
13594 echo "$as_me:$LINENO: checking for sun_len in struct sockaddr_un" >&5
13595 echo $ECHO_N "checking for sun_len in struct sockaddr_un... $ECHO_C" >&6
13596 if test "${ac_cv_c_sockaddr_un_sun_len+set}" = set; then
13597   echo $ECHO_N "(cached) $ECHO_C" >&6
13598 else
13599   cat >conftest.$ac_ext <<_ACEOF
13600 #line $LINENO "configure"
13601 #include "confdefs.h"
13602 #include <sys/types.h>
13603 #ifdef HAVE_SYS_SOCKET_H
13604 # include <sys/socket.h>
13605 #endif
13606 #ifdef HAVE_SYS_UN_H
13607 # include <sys/un.h>
13608 #endif
13609 int
13610 main ()
13611 {
13612 struct sockaddr_un s; s.sun_len = 0
13613   ;
13614   return 0;
13615 }
13616 _ACEOF
13617 rm -f conftest.$ac_objext
13618 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13619   (eval $ac_compile) 2>&5
13620   ac_status=$?
13621   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13622   (exit $ac_status); } &&
13623          { ac_try='test -s conftest.$ac_objext'
13624   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13625   (eval $ac_try) 2>&5
13626   ac_status=$?
13627   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13628   (exit $ac_status); }; }; then
13629   ac_cv_c_sockaddr_un_sun_len="yes"
13630 else
13631   echo "$as_me: failed program was:" >&5
13632 cat conftest.$ac_ext >&5
13633 ac_cv_c_sockaddr_un_sun_len="no"
13634 fi
13635 rm -f conftest.$ac_objext conftest.$ac_ext
13636 fi
13637 echo "$as_me:$LINENO: result: $ac_cv_c_sockaddr_un_sun_len" >&5
13638 echo "${ECHO_T}$ac_cv_c_sockaddr_un_sun_len" >&6
13639 if  test "x$ac_cv_c_sockaddr_un_sun_len" = "xyes"; then
13640
13641 cat >>confdefs.h <<\_ACEOF
13642 #define HAVE_SOCKADDR_SUN_LEN 1
13643 _ACEOF
13644
13645 fi
13646
13647
13648
13649
13650 case $host_cpu in
13651   *i[3456789]86*) echo "$as_me:$LINENO: checking whether we need to define __i386__" >&5
13652 echo $ECHO_N "checking whether we need to define __i386__... $ECHO_C" >&6
13653 if test "${ac_cv_cpp_def___i386__+set}" = set; then
13654   echo $ECHO_N "(cached) $ECHO_C" >&6
13655 else
13656   cat >conftest.$ac_ext <<_ACEOF
13657 #line $LINENO "configure"
13658 #include "confdefs.h"
13659 #ifndef __i386__
13660 yes
13661 #endif
13662 _ACEOF
13663 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13664   $EGREP "yes" >/dev/null 2>&1; then
13665   ac_cv_cpp_def___i386__=yes
13666 else
13667   ac_cv_cpp_def___i386__=no
13668 fi
13669 rm -f conftest*
13670
13671 fi
13672 echo "$as_me:$LINENO: result: $ac_cv_cpp_def___i386__" >&5
13673 echo "${ECHO_T}$ac_cv_cpp_def___i386__" >&6
13674 if test $ac_cv_cpp_def___i386__ = yes; then
13675   CFLAGS="$CFLAGS -D__i386__"
13676   LINTFLAGS="$LINTFLAGS -D__i386__"
13677 fi
13678  ;;
13679   *alpha*)          echo "$as_me:$LINENO: checking whether we need to define __ALPHA__" >&5
13680 echo $ECHO_N "checking whether we need to define __ALPHA__... $ECHO_C" >&6
13681 if test "${ac_cv_cpp_def___ALPHA__+set}" = set; then
13682   echo $ECHO_N "(cached) $ECHO_C" >&6
13683 else
13684   cat >conftest.$ac_ext <<_ACEOF
13685 #line $LINENO "configure"
13686 #include "confdefs.h"
13687 #ifndef __ALPHA__
13688 yes
13689 #endif
13690 _ACEOF
13691 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13692   $EGREP "yes" >/dev/null 2>&1; then
13693   ac_cv_cpp_def___ALPHA__=yes
13694 else
13695   ac_cv_cpp_def___ALPHA__=no
13696 fi
13697 rm -f conftest*
13698
13699 fi
13700 echo "$as_me:$LINENO: result: $ac_cv_cpp_def___ALPHA__" >&5
13701 echo "${ECHO_T}$ac_cv_cpp_def___ALPHA__" >&6
13702 if test $ac_cv_cpp_def___ALPHA__ = yes; then
13703   CFLAGS="$CFLAGS -D__ALPHA__"
13704   LINTFLAGS="$LINTFLAGS -D__ALPHA__"
13705 fi
13706  ;;
13707   *sparc*)          echo "$as_me:$LINENO: checking whether we need to define __sparc__" >&5
13708 echo $ECHO_N "checking whether we need to define __sparc__... $ECHO_C" >&6
13709 if test "${ac_cv_cpp_def___sparc__+set}" = set; then
13710   echo $ECHO_N "(cached) $ECHO_C" >&6
13711 else
13712   cat >conftest.$ac_ext <<_ACEOF
13713 #line $LINENO "configure"
13714 #include "confdefs.h"
13715 #ifndef __sparc__
13716 yes
13717 #endif
13718 _ACEOF
13719 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13720   $EGREP "yes" >/dev/null 2>&1; then
13721   ac_cv_cpp_def___sparc__=yes
13722 else
13723   ac_cv_cpp_def___sparc__=no
13724 fi
13725 rm -f conftest*
13726
13727 fi
13728 echo "$as_me:$LINENO: result: $ac_cv_cpp_def___sparc__" >&5
13729 echo "${ECHO_T}$ac_cv_cpp_def___sparc__" >&6
13730 if test $ac_cv_cpp_def___sparc__ = yes; then
13731   CFLAGS="$CFLAGS -D__sparc__"
13732   LINTFLAGS="$LINTFLAGS -D__sparc__"
13733 fi
13734  ;;
13735 esac
13736
13737 case $host_vendor in
13738   *sun*) echo "$as_me:$LINENO: checking whether we need to define __sun__" >&5
13739 echo $ECHO_N "checking whether we need to define __sun__... $ECHO_C" >&6
13740 if test "${ac_cv_cpp_def___sun__+set}" = set; then
13741   echo $ECHO_N "(cached) $ECHO_C" >&6
13742 else
13743   cat >conftest.$ac_ext <<_ACEOF
13744 #line $LINENO "configure"
13745 #include "confdefs.h"
13746 #ifndef __sun__
13747 yes
13748 #endif
13749 _ACEOF
13750 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13751   $EGREP "yes" >/dev/null 2>&1; then
13752   ac_cv_cpp_def___sun__=yes
13753 else
13754   ac_cv_cpp_def___sun__=no
13755 fi
13756 rm -f conftest*
13757
13758 fi
13759 echo "$as_me:$LINENO: result: $ac_cv_cpp_def___sun__" >&5
13760 echo "${ECHO_T}$ac_cv_cpp_def___sun__" >&6
13761 if test $ac_cv_cpp_def___sun__ = yes; then
13762   CFLAGS="$CFLAGS -D__sun__"
13763   LINTFLAGS="$LINTFLAGS -D__sun__"
13764 fi
13765  ;;
13766 esac
13767
13768
13769
13770
13771
13772           ac_config_commands="$ac_config_commands controls"
13773
13774           ac_config_commands="$ac_config_commands dlls/ddraw/d3ddevice"
13775
13776           ac_config_commands="$ac_config_commands dlls/ddraw/dclipper"
13777
13778           ac_config_commands="$ac_config_commands dlls/ddraw/ddraw"
13779
13780           ac_config_commands="$ac_config_commands dlls/ddraw/direct3d"
13781
13782           ac_config_commands="$ac_config_commands dlls/ddraw/dpalette"
13783
13784           ac_config_commands="$ac_config_commands dlls/ddraw/dsurface"
13785
13786           ac_config_commands="$ac_config_commands dlls/dinput/joystick"
13787
13788           ac_config_commands="$ac_config_commands dlls/dinput/keyboard"
13789
13790           ac_config_commands="$ac_config_commands dlls/dinput/mouse"
13791
13792           ac_config_commands="$ac_config_commands dlls/gdi/enhmfdrv"
13793
13794           ac_config_commands="$ac_config_commands dlls/gdi/mfdrv"
13795
13796           ac_config_commands="$ac_config_commands dlls/gdi/win16drv"
13797
13798           ac_config_commands="$ac_config_commands dlls/kernel/messages"
13799
13800           ac_config_commands="$ac_config_commands dlls/user/dde"
13801
13802           ac_config_commands="$ac_config_commands dlls/user/resources"
13803
13804           ac_config_commands="$ac_config_commands dlls/wineps/data"
13805
13806           ac_config_commands="$ac_config_commands files"
13807
13808           ac_config_commands="$ac_config_commands graphics"
13809
13810           ac_config_commands="$ac_config_commands graphics/x11drv"
13811
13812           ac_config_commands="$ac_config_commands if1632"
13813
13814           ac_config_commands="$ac_config_commands include/wine"
13815
13816           ac_config_commands="$ac_config_commands loader"
13817
13818           ac_config_commands="$ac_config_commands loader/ne"
13819
13820           ac_config_commands="$ac_config_commands memory"
13821
13822           ac_config_commands="$ac_config_commands misc"
13823
13824           ac_config_commands="$ac_config_commands msdos"
13825
13826           ac_config_commands="$ac_config_commands objects"
13827
13828           ac_config_commands="$ac_config_commands programs/regapi/tests"
13829
13830           ac_config_commands="$ac_config_commands programs/regedit/tests"
13831
13832           ac_config_commands="$ac_config_commands relay32"
13833
13834           ac_config_commands="$ac_config_commands scheduler"
13835
13836           ac_config_commands="$ac_config_commands win32"
13837
13838           ac_config_commands="$ac_config_commands windows"
13839
13840
13841 MAKE_RULES=Make.rules
13842
13843
13844 MAKE_DLL_RULES=dlls/Makedll.rules
13845
13846
13847 MAKE_TEST_RULES=dlls/Maketest.rules
13848
13849
13850 MAKE_PROG_RULES=programs/Makeprog.rules
13851
13852
13853                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       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/dsound/tests/Makefile dlls/gdi/Makefile dlls/gdi/tests/Makefile dlls/glu32/Makefile dlls/icmp/Makefile dlls/imagehlp/Makefile dlls/imm32/Makefile dlls/kernel/Makefile dlls/kernel/tests/Makefile dlls/lzexpand/Makefile dlls/mapi32/Makefile dlls/mpr/Makefile dlls/msacm/Makefile dlls/msacm/imaadp32/Makefile dlls/msacm/msadp32/Makefile dlls/msacm/msg711/Makefile dlls/msacm/winemp3/Makefile dlls/msdmo/Makefile dlls/msimg32/Makefile dlls/msisys/Makefile dlls/msnet32/Makefile dlls/msvcrt/Makefile dlls/msvcrt/tests/Makefile dlls/msvcrt20/Makefile dlls/msvideo/Makefile dlls/msvideo/msrle32/Makefile dlls/netapi32/Makefile dlls/netapi32/tests/Makefile dlls/ntdll/Makefile dlls/ntdll/tests/Makefile dlls/odbc32/Makefile dlls/ole32/Makefile dlls/oleaut32/Makefile dlls/oleaut32/tests/Makefile dlls/olecli/Makefile dlls/oledlg/Makefile dlls/olepro32/Makefile dlls/olesvr/Makefile dlls/opengl32/Makefile dlls/psapi/Makefile dlls/qcap/Makefile dlls/quartz/Makefile dlls/rasapi32/Makefile dlls/richedit/Makefile dlls/rpcrt4/Makefile dlls/rpcrt4/tests/Makefile dlls/serialui/Makefile dlls/setupapi/Makefile dlls/shdocvw/Makefile dlls/shell32/Makefile dlls/shell32/tests/Makefile dlls/shfolder/Makefile dlls/shlwapi/Makefile dlls/shlwapi/tests/Makefile dlls/snmpapi/Makefile dlls/sti/Makefile dlls/tapi32/Makefile dlls/ttydrv/Makefile dlls/twain/Makefile dlls/url/Makefile dlls/urlmon/Makefile dlls/urlmon/tests/Makefile dlls/user/Makefile dlls/user/tests/Makefile dlls/version/Makefile dlls/win32s/Makefile dlls/winaspi/Makefile dlls/winedos/Makefile dlls/wineps/Makefile dlls/wininet/Makefile dlls/wininet/tests/Makefile dlls/winmm/Makefile dlls/winmm/joystick/Makefile dlls/winmm/mcianim/Makefile dlls/winmm/mciavi/Makefile dlls/winmm/mcicda/Makefile dlls/winmm/mciseq/Makefile dlls/winmm/mciwave/Makefile dlls/winmm/midimap/Makefile dlls/winmm/tests/Makefile dlls/winmm/wavemap/Makefile dlls/winmm/winealsa/Makefile dlls/winmm/winearts/Makefile dlls/winmm/wineaudioio/Makefile dlls/winmm/winenas/Makefile dlls/winmm/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/rpcss/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"
13854
13855
13856 cat >confcache <<\_ACEOF
13857 # This file is a shell script that caches the results of configure
13858 # tests run on this system so they can be shared between configure
13859 # scripts and configure runs, see configure's option --config-cache.
13860 # It is not useful on other systems.  If it contains results you don't
13861 # want to keep, you may remove or edit it.
13862 #
13863 # config.status only pays attention to the cache file if you give it
13864 # the --recheck option to rerun configure.
13865 #
13866 # `ac_cv_env_foo' variables (set or unset) will be overridden when
13867 # loading this file, other *unset* `ac_cv_foo' will be assigned the
13868 # following values.
13869
13870 _ACEOF
13871
13872 # The following way of writing the cache mishandles newlines in values,
13873 # but we know of no workaround that is simple, portable, and efficient.
13874 # So, don't put newlines in cache variables' values.
13875 # Ultrix sh set writes to stderr and can't be redirected directly,
13876 # and sets the high bit in the cache file unless we assign to the vars.
13877 {
13878   (set) 2>&1 |
13879     case `(ac_space=' '; set | grep ac_space) 2>&1` in
13880     *ac_space=\ *)
13881       # `set' does not quote correctly, so add quotes (double-quote
13882       # substitution turns \\\\ into \\, and sed turns \\ into \).
13883       sed -n \
13884         "s/'/'\\\\''/g;
13885           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13886       ;;
13887     *)
13888       # `set' quotes correctly as required by POSIX, so do not add quotes.
13889       sed -n \
13890         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
13891       ;;
13892     esac;
13893 } |
13894   sed '
13895      t clear
13896      : clear
13897      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13898      t end
13899      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13900      : end' >>confcache
13901 if cmp -s $cache_file confcache; then :; else
13902   if test -w $cache_file; then
13903     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
13904     cat confcache >$cache_file
13905   else
13906     echo "not updating unwritable cache $cache_file"
13907   fi
13908 fi
13909 rm -f confcache
13910
13911 test "x$prefix" = xNONE && prefix=$ac_default_prefix
13912 # Let make expand exec_prefix.
13913 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13914
13915 # VPATH may cause trouble with some makes, so we remove $(srcdir),
13916 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
13917 # trailing colons and then remove the whole line if VPATH becomes empty
13918 # (actually we leave an empty line to preserve line numbers).
13919 if test "x$srcdir" = x.; then
13920   ac_vpsub='/^[         ]*VPATH[        ]*=/{
13921 s/:*\$(srcdir):*/:/;
13922 s/:*\${srcdir}:*/:/;
13923 s/:*@srcdir@:*/:/;
13924 s/^\([^=]*=[    ]*\):*/\1/;
13925 s/:*$//;
13926 s/^[^=]*=[      ]*$//;
13927 }'
13928 fi
13929
13930 DEFS=-DHAVE_CONFIG_H
13931
13932 ac_libobjs=
13933 ac_ltlibobjs=
13934 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13935   # 1. Remove the extension, and $U if already installed.
13936   ac_i=`echo "$ac_i" |
13937          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
13938   # 2. Add them.
13939   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
13940   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
13941 done
13942 LIBOBJS=$ac_libobjs
13943
13944 LTLIBOBJS=$ac_ltlibobjs
13945
13946
13947
13948 : ${CONFIG_STATUS=./config.status}
13949 ac_clean_files_save=$ac_clean_files
13950 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13951 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
13952 echo "$as_me: creating $CONFIG_STATUS" >&6;}
13953 cat >$CONFIG_STATUS <<_ACEOF
13954 #! $SHELL
13955 # Generated by $as_me.
13956 # Run this file to recreate the current configuration.
13957 # Compiler output produced by configure, useful for debugging
13958 # configure, is in config.log if it exists.
13959
13960 debug=false
13961 SHELL=\${CONFIG_SHELL-$SHELL}
13962 _ACEOF
13963
13964 cat >>$CONFIG_STATUS <<\_ACEOF
13965 ## --------------------- ##
13966 ## M4sh Initialization.  ##
13967 ## --------------------- ##
13968
13969 # Be Bourne compatible
13970 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
13971   emulate sh
13972   NULLCMD=:
13973   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
13974   # is contrary to our usage.  Disable this feature.
13975   alias -g '${1+"$@"}'='"$@"'
13976 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
13977   set -o posix
13978 fi
13979
13980 # Support unset when possible.
13981 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
13982   as_unset=unset
13983 else
13984   as_unset=false
13985 fi
13986
13987
13988 # Work around bugs in pre-3.0 UWIN ksh.
13989 $as_unset ENV MAIL MAILPATH
13990 PS1='$ '
13991 PS2='> '
13992 PS4='+ '
13993
13994 # NLS nuisances.
13995 for as_var in LANG LANGUAGE LC_ALL LC_COLLATE LC_CTYPE LC_NUMERIC LC_MESSAGES LC_TIME
13996 do
13997   if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
13998     eval $as_var=C; export $as_var
13999   else
14000     $as_unset $as_var
14001   fi
14002 done
14003
14004 # Required to use basename.
14005 if expr a : '\(a\)' >/dev/null 2>&1; then
14006   as_expr=expr
14007 else
14008   as_expr=false
14009 fi
14010
14011 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
14012   as_basename=basename
14013 else
14014   as_basename=false
14015 fi
14016
14017
14018 # Name of the executable.
14019 as_me=`$as_basename "$0" ||
14020 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14021          X"$0" : 'X\(//\)$' \| \
14022          X"$0" : 'X\(/\)$' \| \
14023          .     : '\(.\)' 2>/dev/null ||
14024 echo X/"$0" |
14025     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
14026           /^X\/\(\/\/\)$/{ s//\1/; q; }
14027           /^X\/\(\/\).*/{ s//\1/; q; }
14028           s/.*/./; q'`
14029
14030
14031 # PATH needs CR, and LINENO needs CR and PATH.
14032 # Avoid depending upon Character Ranges.
14033 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14034 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14035 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14036 as_cr_digits='0123456789'
14037 as_cr_alnum=$as_cr_Letters$as_cr_digits
14038
14039 # The user is always right.
14040 if test "${PATH_SEPARATOR+set}" != set; then
14041   echo "#! /bin/sh" >conftest.sh
14042   echo  "exit 0"   >>conftest.sh
14043   chmod +x conftest.sh
14044   if (PATH="/nonexistent;."; conftest.sh) >/dev/null 2>&1; then
14045     PATH_SEPARATOR=';'
14046   else
14047     PATH_SEPARATOR=:
14048   fi
14049   rm -f conftest.sh
14050 fi
14051
14052
14053   as_lineno_1=$LINENO
14054   as_lineno_2=$LINENO
14055   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
14056   test "x$as_lineno_1" != "x$as_lineno_2" &&
14057   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
14058   # Find who we are.  Look in the path if we contain no path at all
14059   # relative or not.
14060   case $0 in
14061     *[\\/]* ) as_myself=$0 ;;
14062     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14063 for as_dir in $PATH
14064 do
14065   IFS=$as_save_IFS
14066   test -z "$as_dir" && as_dir=.
14067   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14068 done
14069
14070        ;;
14071   esac
14072   # We did not find ourselves, most probably we were run as `sh COMMAND'
14073   # in which case we are not to be found in the path.
14074   if test "x$as_myself" = x; then
14075     as_myself=$0
14076   fi
14077   if test ! -f "$as_myself"; then
14078     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
14079 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
14080    { (exit 1); exit 1; }; }
14081   fi
14082   case $CONFIG_SHELL in
14083   '')
14084     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14085 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
14086 do
14087   IFS=$as_save_IFS
14088   test -z "$as_dir" && as_dir=.
14089   for as_base in sh bash ksh sh5; do
14090          case $as_dir in
14091          /*)
14092            if ("$as_dir/$as_base" -c '
14093   as_lineno_1=$LINENO
14094   as_lineno_2=$LINENO
14095   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
14096   test "x$as_lineno_1" != "x$as_lineno_2" &&
14097   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
14098              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
14099              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
14100              CONFIG_SHELL=$as_dir/$as_base
14101              export CONFIG_SHELL
14102              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
14103            fi;;
14104          esac
14105        done
14106 done
14107 ;;
14108   esac
14109
14110   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
14111   # uniformly replaced by the line number.  The first 'sed' inserts a
14112   # line-number line before each line; the second 'sed' does the real
14113   # work.  The second script uses 'N' to pair each line-number line
14114   # with the numbered line, and appends trailing '-' during
14115   # substitution so that $LINENO is not a special case at line end.
14116   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
14117   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
14118   sed '=' <$as_myself |
14119     sed '
14120       N
14121       s,$,-,
14122       : loop
14123       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
14124       t loop
14125       s,-$,,
14126       s,^['$as_cr_digits']*\n,,
14127     ' >$as_me.lineno &&
14128   chmod +x $as_me.lineno ||
14129     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
14130 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
14131    { (exit 1); exit 1; }; }
14132
14133   # Don't try to exec as it changes $[0], causing all sort of problems
14134   # (the dirname of $[0] is not the place where we might find the
14135   # original and so on.  Autoconf is especially sensible to this).
14136   . ./$as_me.lineno
14137   # Exit status is that of the last command.
14138   exit
14139 }
14140
14141
14142 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
14143   *c*,-n*) ECHO_N= ECHO_C='
14144 ' ECHO_T='      ' ;;
14145   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
14146   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
14147 esac
14148
14149 if expr a : '\(a\)' >/dev/null 2>&1; then
14150   as_expr=expr
14151 else
14152   as_expr=false
14153 fi
14154
14155 rm -f conf$$ conf$$.exe conf$$.file
14156 echo >conf$$.file
14157 if ln -s conf$$.file conf$$ 2>/dev/null; then
14158   # We could just check for DJGPP; but this test a) works b) is more generic
14159   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
14160   if test -f conf$$.exe; then
14161     # Don't use ln at all; we don't have any links
14162     as_ln_s='cp -p'
14163   else
14164     as_ln_s='ln -s'
14165   fi
14166 elif ln conf$$.file conf$$ 2>/dev/null; then
14167   as_ln_s=ln
14168 else
14169   as_ln_s='cp -p'
14170 fi
14171 rm -f conf$$ conf$$.exe conf$$.file
14172
14173 if mkdir -p . 2>/dev/null; then
14174   as_mkdir_p=:
14175 else
14176   as_mkdir_p=false
14177 fi
14178
14179 as_executable_p="test -f"
14180
14181 # Sed expression to map a string onto a valid CPP name.
14182 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
14183
14184 # Sed expression to map a string onto a valid variable name.
14185 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
14186
14187
14188 # IFS
14189 # We need space, tab and new line, in precisely that order.
14190 as_nl='
14191 '
14192 IFS="   $as_nl"
14193
14194 # CDPATH.
14195 $as_unset CDPATH
14196
14197 exec 6>&1
14198
14199 # Open the log real soon, to keep \$[0] and so on meaningful, and to
14200 # report actual input values of CONFIG_FILES etc. instead of their
14201 # values after options handling.  Logging --version etc. is OK.
14202 exec 5>>config.log
14203 {
14204   echo
14205   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14206 ## Running $as_me. ##
14207 _ASBOX
14208 } >&5
14209 cat >&5 <<_CSEOF
14210
14211 This file was extended by Wine $as_me 20021125, which was
14212 generated by GNU Autoconf 2.54.  Invocation command line was
14213
14214   CONFIG_FILES    = $CONFIG_FILES
14215   CONFIG_HEADERS  = $CONFIG_HEADERS
14216   CONFIG_LINKS    = $CONFIG_LINKS
14217   CONFIG_COMMANDS = $CONFIG_COMMANDS
14218   $ $0 $@
14219
14220 _CSEOF
14221 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
14222 echo >&5
14223 _ACEOF
14224
14225 # Files that config.status was made for.
14226 if test -n "$ac_config_files"; then
14227   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
14228 fi
14229
14230 if test -n "$ac_config_headers"; then
14231   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
14232 fi
14233
14234 if test -n "$ac_config_links"; then
14235   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
14236 fi
14237
14238 if test -n "$ac_config_commands"; then
14239   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
14240 fi
14241
14242 cat >>$CONFIG_STATUS <<\_ACEOF
14243
14244 ac_cs_usage="\
14245 \`$as_me' instantiates files from templates according to the
14246 current configuration.
14247
14248 Usage: $0 [OPTIONS] [FILE]...
14249
14250   -h, --help       print this help, then exit
14251   -V, --version    print version number, then exit
14252   -d, --debug      don't remove temporary files
14253       --recheck    update $as_me by reconfiguring in the same conditions
14254   --file=FILE[:TEMPLATE]
14255                    instantiate the configuration file FILE
14256   --header=FILE[:TEMPLATE]
14257                    instantiate the configuration header FILE
14258
14259 Configuration files:
14260 $config_files
14261
14262 Configuration headers:
14263 $config_headers
14264
14265 Configuration commands:
14266 $config_commands
14267
14268 Report bugs to <bug-autoconf@gnu.org>."
14269 _ACEOF
14270
14271 cat >>$CONFIG_STATUS <<_ACEOF
14272 ac_cs_version="\\
14273 Wine config.status 20021125
14274 configured by $0, generated by GNU Autoconf 2.54,
14275   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
14276
14277 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
14278 Free Software Foundation, Inc.
14279 This config.status script is free software; the Free Software Foundation
14280 gives unlimited permission to copy, distribute and modify it."
14281 srcdir=$srcdir
14282 INSTALL="$INSTALL"
14283 _ACEOF
14284
14285 cat >>$CONFIG_STATUS <<\_ACEOF
14286 # If no file are specified by the user, then we need to provide default
14287 # value.  By we need to know if files were specified by the user.
14288 ac_need_defaults=:
14289 while test $# != 0
14290 do
14291   case $1 in
14292   --*=*)
14293     ac_option=`expr "x$1" : 'x\([^=]*\)='`
14294     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
14295     ac_shift=:
14296     ;;
14297   -*)
14298     ac_option=$1
14299     ac_optarg=$2
14300     ac_shift=shift
14301     ;;
14302   *) # This is not an option, so the user has probably given explicit
14303      # arguments.
14304      ac_option=$1
14305      ac_need_defaults=false;;
14306   esac
14307
14308   case $ac_option in
14309   # Handling of the options.
14310 _ACEOF
14311 cat >>$CONFIG_STATUS <<_ACEOF
14312   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14313     echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
14314     exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
14315 _ACEOF
14316 cat >>$CONFIG_STATUS <<\_ACEOF
14317   --version | --vers* | -V )
14318     echo "$ac_cs_version"; exit 0 ;;
14319   --he | --h)
14320     # Conflict between --help and --header
14321     { { echo "$as_me:$LINENO: error: ambiguous option: $1
14322 Try \`$0 --help' for more information." >&5
14323 echo "$as_me: error: ambiguous option: $1
14324 Try \`$0 --help' for more information." >&2;}
14325    { (exit 1); exit 1; }; };;
14326   --help | --hel | -h )
14327     echo "$ac_cs_usage"; exit 0 ;;
14328   --debug | --d* | -d )
14329     debug=: ;;
14330   --file | --fil | --fi | --f )
14331     $ac_shift
14332     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
14333     ac_need_defaults=false;;
14334   --header | --heade | --head | --hea )
14335     $ac_shift
14336     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
14337     ac_need_defaults=false;;
14338
14339   # This is an error.
14340   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
14341 Try \`$0 --help' for more information." >&5
14342 echo "$as_me: error: unrecognized option: $1
14343 Try \`$0 --help' for more information." >&2;}
14344    { (exit 1); exit 1; }; } ;;
14345
14346   *) ac_config_targets="$ac_config_targets $1" ;;
14347
14348   esac
14349   shift
14350 done
14351
14352 _ACEOF
14353
14354
14355
14356
14357
14358 cat >>$CONFIG_STATUS <<\_ACEOF
14359 for ac_config_target in $ac_config_targets
14360 do
14361   case "$ac_config_target" in
14362   # Handling of arguments.
14363   "Make.rules" ) CONFIG_FILES="$CONFIG_FILES Make.rules" ;;
14364   "dlls/Makedll.rules" ) CONFIG_FILES="$CONFIG_FILES dlls/Makedll.rules" ;;
14365   "dlls/Maketest.rules" ) CONFIG_FILES="$CONFIG_FILES dlls/Maketest.rules" ;;
14366   "programs/Makeprog.rules" ) CONFIG_FILES="$CONFIG_FILES programs/Makeprog.rules" ;;
14367   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
14368   "dlls/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/Makefile" ;;
14369   "dlls/advapi32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/advapi32/Makefile" ;;
14370   "dlls/advapi32/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/advapi32/tests/Makefile" ;;
14371   "dlls/avicap32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/avicap32/Makefile" ;;
14372   "dlls/avifil32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/avifil32/Makefile" ;;
14373   "dlls/cabinet/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/cabinet/Makefile" ;;
14374   "dlls/comcat/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/comcat/Makefile" ;;
14375   "dlls/comctl32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/comctl32/Makefile" ;;
14376   "dlls/commdlg/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/commdlg/Makefile" ;;
14377   "dlls/crtdll/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/crtdll/Makefile" ;;
14378   "dlls/crypt32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/crypt32/Makefile" ;;
14379   "dlls/d3d8/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/d3d8/Makefile" ;;
14380   "dlls/dciman32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dciman32/Makefile" ;;
14381   "dlls/ddraw/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ddraw/Makefile" ;;
14382   "dlls/devenum/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/devenum/Makefile" ;;
14383   "dlls/dinput/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dinput/Makefile" ;;
14384   "dlls/dinput8/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dinput8/Makefile" ;;
14385   "dlls/dplay/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dplay/Makefile" ;;
14386   "dlls/dplayx/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dplayx/Makefile" ;;
14387   "dlls/dsound/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dsound/Makefile" ;;
14388   "dlls/dsound/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dsound/tests/Makefile" ;;
14389   "dlls/gdi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/gdi/Makefile" ;;
14390   "dlls/gdi/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/gdi/tests/Makefile" ;;
14391   "dlls/glu32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/glu32/Makefile" ;;
14392   "dlls/icmp/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/icmp/Makefile" ;;
14393   "dlls/imagehlp/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/imagehlp/Makefile" ;;
14394   "dlls/imm32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/imm32/Makefile" ;;
14395   "dlls/kernel/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/kernel/Makefile" ;;
14396   "dlls/kernel/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/kernel/tests/Makefile" ;;
14397   "dlls/lzexpand/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/lzexpand/Makefile" ;;
14398   "dlls/mapi32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/mapi32/Makefile" ;;
14399   "dlls/mpr/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/mpr/Makefile" ;;
14400   "dlls/msacm/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msacm/Makefile" ;;
14401   "dlls/msacm/imaadp32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msacm/imaadp32/Makefile" ;;
14402   "dlls/msacm/msadp32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msacm/msadp32/Makefile" ;;
14403   "dlls/msacm/msg711/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msacm/msg711/Makefile" ;;
14404   "dlls/msacm/winemp3/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msacm/winemp3/Makefile" ;;
14405   "dlls/msdmo/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msdmo/Makefile" ;;
14406   "dlls/msimg32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msimg32/Makefile" ;;
14407   "dlls/msisys/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msisys/Makefile" ;;
14408   "dlls/msnet32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msnet32/Makefile" ;;
14409   "dlls/msvcrt/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvcrt/Makefile" ;;
14410   "dlls/msvcrt/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvcrt/tests/Makefile" ;;
14411   "dlls/msvcrt20/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvcrt20/Makefile" ;;
14412   "dlls/msvideo/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvideo/Makefile" ;;
14413   "dlls/msvideo/msrle32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvideo/msrle32/Makefile" ;;
14414   "dlls/netapi32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/netapi32/Makefile" ;;
14415   "dlls/netapi32/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/netapi32/tests/Makefile" ;;
14416   "dlls/ntdll/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ntdll/Makefile" ;;
14417   "dlls/ntdll/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ntdll/tests/Makefile" ;;
14418   "dlls/odbc32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/odbc32/Makefile" ;;
14419   "dlls/ole32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ole32/Makefile" ;;
14420   "dlls/oleaut32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/oleaut32/Makefile" ;;
14421   "dlls/oleaut32/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/oleaut32/tests/Makefile" ;;
14422   "dlls/olecli/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/olecli/Makefile" ;;
14423   "dlls/oledlg/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/oledlg/Makefile" ;;
14424   "dlls/olepro32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/olepro32/Makefile" ;;
14425   "dlls/olesvr/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/olesvr/Makefile" ;;
14426   "dlls/opengl32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/opengl32/Makefile" ;;
14427   "dlls/psapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/psapi/Makefile" ;;
14428   "dlls/qcap/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/qcap/Makefile" ;;
14429   "dlls/quartz/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/quartz/Makefile" ;;
14430   "dlls/rasapi32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/rasapi32/Makefile" ;;
14431   "dlls/richedit/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/richedit/Makefile" ;;
14432   "dlls/rpcrt4/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/rpcrt4/Makefile" ;;
14433   "dlls/rpcrt4/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/rpcrt4/tests/Makefile" ;;
14434   "dlls/serialui/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/serialui/Makefile" ;;
14435   "dlls/setupapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/setupapi/Makefile" ;;
14436   "dlls/shdocvw/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shdocvw/Makefile" ;;
14437   "dlls/shell32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shell32/Makefile" ;;
14438   "dlls/shell32/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shell32/tests/Makefile" ;;
14439   "dlls/shfolder/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shfolder/Makefile" ;;
14440   "dlls/shlwapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shlwapi/Makefile" ;;
14441   "dlls/shlwapi/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shlwapi/tests/Makefile" ;;
14442   "dlls/snmpapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/snmpapi/Makefile" ;;
14443   "dlls/sti/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/sti/Makefile" ;;
14444   "dlls/tapi32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/tapi32/Makefile" ;;
14445   "dlls/ttydrv/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ttydrv/Makefile" ;;
14446   "dlls/twain/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/twain/Makefile" ;;
14447   "dlls/url/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/url/Makefile" ;;
14448   "dlls/urlmon/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/urlmon/Makefile" ;;
14449   "dlls/urlmon/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/urlmon/tests/Makefile" ;;
14450   "dlls/user/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/user/Makefile" ;;
14451   "dlls/user/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/user/tests/Makefile" ;;
14452   "dlls/version/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/version/Makefile" ;;
14453   "dlls/win32s/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/win32s/Makefile" ;;
14454   "dlls/winaspi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winaspi/Makefile" ;;
14455   "dlls/winedos/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winedos/Makefile" ;;
14456   "dlls/wineps/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wineps/Makefile" ;;
14457   "dlls/wininet/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wininet/Makefile" ;;
14458   "dlls/wininet/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wininet/tests/Makefile" ;;
14459   "dlls/winmm/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/Makefile" ;;
14460   "dlls/winmm/joystick/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/joystick/Makefile" ;;
14461   "dlls/winmm/mcianim/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/mcianim/Makefile" ;;
14462   "dlls/winmm/mciavi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/mciavi/Makefile" ;;
14463   "dlls/winmm/mcicda/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/mcicda/Makefile" ;;
14464   "dlls/winmm/mciseq/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/mciseq/Makefile" ;;
14465   "dlls/winmm/mciwave/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/mciwave/Makefile" ;;
14466   "dlls/winmm/midimap/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/midimap/Makefile" ;;
14467   "dlls/winmm/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/tests/Makefile" ;;
14468   "dlls/winmm/wavemap/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/wavemap/Makefile" ;;
14469   "dlls/winmm/winealsa/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/winealsa/Makefile" ;;
14470   "dlls/winmm/winearts/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/winearts/Makefile" ;;
14471   "dlls/winmm/wineaudioio/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/wineaudioio/Makefile" ;;
14472   "dlls/winmm/winenas/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/winenas/Makefile" ;;
14473   "dlls/winmm/wineoss/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/wineoss/Makefile" ;;
14474   "dlls/winnls/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winnls/Makefile" ;;
14475   "dlls/winsock/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winsock/Makefile" ;;
14476   "dlls/winsock/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winsock/tests/Makefile" ;;
14477   "dlls/winspool/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winspool/Makefile" ;;
14478   "dlls/wintrust/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wintrust/Makefile" ;;
14479   "dlls/wow32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wow32/Makefile" ;;
14480   "dlls/wsock32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wsock32/Makefile" ;;
14481   "dlls/x11drv/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/x11drv/Makefile" ;;
14482   "documentation/Makefile" ) CONFIG_FILES="$CONFIG_FILES documentation/Makefile" ;;
14483   "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
14484   "library/Makefile" ) CONFIG_FILES="$CONFIG_FILES library/Makefile" ;;
14485   "miscemu/Makefile" ) CONFIG_FILES="$CONFIG_FILES miscemu/Makefile" ;;
14486   "ole/Makefile" ) CONFIG_FILES="$CONFIG_FILES ole/Makefile" ;;
14487   "programs/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/Makefile" ;;
14488   "programs/avitools/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/avitools/Makefile" ;;
14489   "programs/clock/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/clock/Makefile" ;;
14490   "programs/cmdlgtst/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/cmdlgtst/Makefile" ;;
14491   "programs/control/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/control/Makefile" ;;
14492   "programs/expand/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/expand/Makefile" ;;
14493   "programs/notepad/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/notepad/Makefile" ;;
14494   "programs/osversioncheck/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/osversioncheck/Makefile" ;;
14495   "programs/progman/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/progman/Makefile" ;;
14496   "programs/regapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/regapi/Makefile" ;;
14497   "programs/regedit/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/regedit/Makefile" ;;
14498   "programs/regsvr32/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/regsvr32/Makefile" ;;
14499   "programs/regtest/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/regtest/Makefile" ;;
14500   "programs/rpcss/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/rpcss/Makefile" ;;
14501   "programs/rundll32/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/rundll32/Makefile" ;;
14502   "programs/uninstaller/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/uninstaller/Makefile" ;;
14503   "programs/view/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/view/Makefile" ;;
14504   "programs/wcmd/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/wcmd/Makefile" ;;
14505   "programs/wineconsole/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/wineconsole/Makefile" ;;
14506   "programs/winedbg/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winedbg/Makefile" ;;
14507   "programs/winefile/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winefile/Makefile" ;;
14508   "programs/winemine/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winemine/Makefile" ;;
14509   "programs/winepath/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winepath/Makefile" ;;
14510   "programs/winhelp/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winhelp/Makefile" ;;
14511   "programs/winver/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winver/Makefile" ;;
14512   "server/Makefile" ) CONFIG_FILES="$CONFIG_FILES server/Makefile" ;;
14513   "tools/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
14514   "tools/widl/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/widl/Makefile" ;;
14515   "tools/winapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/winapi/Makefile" ;;
14516   "tools/winebuild/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/winebuild/Makefile" ;;
14517   "tools/winedump/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/winedump/Makefile" ;;
14518   "tools/wmc/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/wmc/Makefile" ;;
14519   "tools/wpp/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/wpp/Makefile" ;;
14520   "tools/wrc/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/wrc/Makefile" ;;
14521   "unicode/Makefile" ) CONFIG_FILES="$CONFIG_FILES unicode/Makefile" ;;
14522   "controls" ) CONFIG_COMMANDS="$CONFIG_COMMANDS controls" ;;
14523   "dlls/ddraw/d3ddevice" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/d3ddevice" ;;
14524   "dlls/ddraw/dclipper" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/dclipper" ;;
14525   "dlls/ddraw/ddraw" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/ddraw" ;;
14526   "dlls/ddraw/direct3d" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/direct3d" ;;
14527   "dlls/ddraw/dpalette" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/dpalette" ;;
14528   "dlls/ddraw/dsurface" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/dsurface" ;;
14529   "dlls/dinput/joystick" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/dinput/joystick" ;;
14530   "dlls/dinput/keyboard" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/dinput/keyboard" ;;
14531   "dlls/dinput/mouse" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/dinput/mouse" ;;
14532   "dlls/gdi/enhmfdrv" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/gdi/enhmfdrv" ;;
14533   "dlls/gdi/mfdrv" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/gdi/mfdrv" ;;
14534   "dlls/gdi/win16drv" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/gdi/win16drv" ;;
14535   "dlls/kernel/messages" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/kernel/messages" ;;
14536   "dlls/user/dde" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/user/dde" ;;
14537   "dlls/user/resources" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/user/resources" ;;
14538   "dlls/wineps/data" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/wineps/data" ;;
14539   "files" ) CONFIG_COMMANDS="$CONFIG_COMMANDS files" ;;
14540   "graphics" ) CONFIG_COMMANDS="$CONFIG_COMMANDS graphics" ;;
14541   "graphics/x11drv" ) CONFIG_COMMANDS="$CONFIG_COMMANDS graphics/x11drv" ;;
14542   "if1632" ) CONFIG_COMMANDS="$CONFIG_COMMANDS if1632" ;;
14543   "include/wine" ) CONFIG_COMMANDS="$CONFIG_COMMANDS include/wine" ;;
14544   "loader" ) CONFIG_COMMANDS="$CONFIG_COMMANDS loader" ;;
14545   "loader/ne" ) CONFIG_COMMANDS="$CONFIG_COMMANDS loader/ne" ;;
14546   "memory" ) CONFIG_COMMANDS="$CONFIG_COMMANDS memory" ;;
14547   "misc" ) CONFIG_COMMANDS="$CONFIG_COMMANDS misc" ;;
14548   "msdos" ) CONFIG_COMMANDS="$CONFIG_COMMANDS msdos" ;;
14549   "objects" ) CONFIG_COMMANDS="$CONFIG_COMMANDS objects" ;;
14550   "programs/regapi/tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS programs/regapi/tests" ;;
14551   "programs/regedit/tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS programs/regedit/tests" ;;
14552   "relay32" ) CONFIG_COMMANDS="$CONFIG_COMMANDS relay32" ;;
14553   "scheduler" ) CONFIG_COMMANDS="$CONFIG_COMMANDS scheduler" ;;
14554   "win32" ) CONFIG_COMMANDS="$CONFIG_COMMANDS win32" ;;
14555   "windows" ) CONFIG_COMMANDS="$CONFIG_COMMANDS windows" ;;
14556   "include/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
14557   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
14558 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
14559    { (exit 1); exit 1; }; };;
14560   esac
14561 done
14562
14563 # If the user did not use the arguments to specify the items to instantiate,
14564 # then the envvar interface is used.  Set only those that are not.
14565 # We use the long form for the default assignment because of an extremely
14566 # bizarre bug on SunOS 4.1.3.
14567 if $ac_need_defaults; then
14568   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14569   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
14570   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
14571 fi
14572
14573 # Create a temporary directory, and hook for its removal unless debugging.
14574 $debug ||
14575 {
14576   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
14577   trap '{ (exit 1); exit 1; }' 1 2 13 15
14578 }
14579
14580 # Create a (secure) tmp directory for tmp files.
14581 : ${TMPDIR=/tmp}
14582 {
14583   tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
14584   test -n "$tmp" && test -d "$tmp"
14585 }  ||
14586 {
14587   tmp=$TMPDIR/cs$$-$RANDOM
14588   (umask 077 && mkdir $tmp)
14589 } ||
14590 {
14591    echo "$me: cannot create a temporary directory in $TMPDIR" >&2
14592    { (exit 1); exit 1; }
14593 }
14594
14595 _ACEOF
14596
14597 cat >>$CONFIG_STATUS <<_ACEOF
14598
14599 #
14600 # CONFIG_FILES section.
14601 #
14602
14603 # No need to generate the scripts if there are no CONFIG_FILES.
14604 # This happens for instance when ./config.status config.h
14605 if test -n "\$CONFIG_FILES"; then
14606   # Protect against being on the right side of a sed subst in config.status.
14607   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
14608    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
14609 s,@SHELL@,$SHELL,;t t
14610 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
14611 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
14612 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
14613 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
14614 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
14615 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
14616 s,@exec_prefix@,$exec_prefix,;t t
14617 s,@prefix@,$prefix,;t t
14618 s,@program_transform_name@,$program_transform_name,;t t
14619 s,@bindir@,$bindir,;t t
14620 s,@sbindir@,$sbindir,;t t
14621 s,@libexecdir@,$libexecdir,;t t
14622 s,@datadir@,$datadir,;t t
14623 s,@sysconfdir@,$sysconfdir,;t t
14624 s,@sharedstatedir@,$sharedstatedir,;t t
14625 s,@localstatedir@,$localstatedir,;t t
14626 s,@libdir@,$libdir,;t t
14627 s,@includedir@,$includedir,;t t
14628 s,@oldincludedir@,$oldincludedir,;t t
14629 s,@infodir@,$infodir,;t t
14630 s,@mandir@,$mandir,;t t
14631 s,@build_alias@,$build_alias,;t t
14632 s,@host_alias@,$host_alias,;t t
14633 s,@target_alias@,$target_alias,;t t
14634 s,@DEFS@,$DEFS,;t t
14635 s,@ECHO_C@,$ECHO_C,;t t
14636 s,@ECHO_N@,$ECHO_N,;t t
14637 s,@ECHO_T@,$ECHO_T,;t t
14638 s,@LIBS@,$LIBS,;t t
14639 s,@OPTIONS@,$OPTIONS,;t t
14640 s,@WIN16_FILES@,$WIN16_FILES,;t t
14641 s,@WIN16_INSTALL@,$WIN16_INSTALL,;t t
14642 s,@build@,$build,;t t
14643 s,@build_cpu@,$build_cpu,;t t
14644 s,@build_vendor@,$build_vendor,;t t
14645 s,@build_os@,$build_os,;t t
14646 s,@host@,$host,;t t
14647 s,@host_cpu@,$host_cpu,;t t
14648 s,@host_vendor@,$host_vendor,;t t
14649 s,@host_os@,$host_os,;t t
14650 s,@SET_MAKE@,$SET_MAKE,;t t
14651 s,@CC@,$CC,;t t
14652 s,@CFLAGS@,$CFLAGS,;t t
14653 s,@LDFLAGS@,$LDFLAGS,;t t
14654 s,@CPPFLAGS@,$CPPFLAGS,;t t
14655 s,@ac_ct_CC@,$ac_ct_CC,;t t
14656 s,@EXEEXT@,$EXEEXT,;t t
14657 s,@OBJEXT@,$OBJEXT,;t t
14658 s,@CPP@,$CPP,;t t
14659 s,@TOOLSDIR@,$TOOLSDIR,;t t
14660 s,@X_CFLAGS@,$X_CFLAGS,;t t
14661 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
14662 s,@X_LIBS@,$X_LIBS,;t t
14663 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
14664 s,@YACC@,$YACC,;t t
14665 s,@LEX@,$LEX,;t t
14666 s,@LEXLIB@,$LEXLIB,;t t
14667 s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
14668 s,@XYACC@,$XYACC,;t t
14669 s,@XLEX@,$XLEX,;t t
14670 s,@LD@,$LD,;t t
14671 s,@ac_ct_LD@,$ac_ct_LD,;t t
14672 s,@AR@,$AR,;t t
14673 s,@ac_ct_AR@,$ac_ct_AR,;t t
14674 s,@RANLIB@,$RANLIB,;t t
14675 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
14676 s,@STRIP@,$STRIP,;t t
14677 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
14678 s,@WINDRES@,$WINDRES,;t t
14679 s,@ac_ct_WINDRES@,$ac_ct_WINDRES,;t t
14680 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
14681 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
14682 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
14683 s,@LN_S@,$LN_S,;t t
14684 s,@LN@,$LN,;t t
14685 s,@C2MAN@,$C2MAN,;t t
14686 s,@LDCONFIG@,$LDCONFIG,;t t
14687 s,@LINT@,$LINT,;t t
14688 s,@LINTFLAGS@,$LINTFLAGS,;t t
14689 s,@DB2HTML@,$DB2HTML,;t t
14690 s,@DB2PDF@,$DB2PDF,;t t
14691 s,@DB2PS@,$DB2PS,;t t
14692 s,@JPEGLIB@,$JPEGLIB,;t t
14693 s,@EGREP@,$EGREP,;t t
14694 s,@XLIB@,$XLIB,;t t
14695 s,@XFILES@,$XFILES,;t t
14696 s,@OPENGLFILES@,$OPENGLFILES,;t t
14697 s,@GLU32FILES@,$GLU32FILES,;t t
14698 s,@OPENGL_LIBS@,$OPENGL_LIBS,;t t
14699 s,@NASLIBS@,$NASLIBS,;t t
14700 s,@CURSESLIBS@,$CURSESLIBS,;t t
14701 s,@sane_devel@,$sane_devel,;t t
14702 s,@SANELIBS@,$SANELIBS,;t t
14703 s,@SANEINCL@,$SANEINCL,;t t
14704 s,@ft_devel@,$ft_devel,;t t
14705 s,@ft_devel2@,$ft_devel2,;t t
14706 s,@FREETYPEINCL@,$FREETYPEINCL,;t t
14707 s,@ARTSCCONFIG@,$ARTSCCONFIG,;t t
14708 s,@ARTSLIBS@,$ARTSLIBS,;t t
14709 s,@ARTSINCL@,$ARTSINCL,;t t
14710 s,@ALSALIBS@,$ALSALIBS,;t t
14711 s,@AUDIOIOLIBS@,$AUDIOIOLIBS,;t t
14712 s,@DLLEXT@,$DLLEXT,;t t
14713 s,@DLLFLAGS@,$DLLFLAGS,;t t
14714 s,@DLLIBS@,$DLLIBS,;t t
14715 s,@LDDLLFLAGS@,$LDDLLFLAGS,;t t
14716 s,@LDSHARED@,$LDSHARED,;t t
14717 s,@LIBEXT@,$LIBEXT,;t t
14718 s,@IMPLIBEXT@,$IMPLIBEXT,;t t
14719 s,@DLLTOOL@,$DLLTOOL,;t t
14720 s,@ac_ct_DLLTOOL@,$ac_ct_DLLTOOL,;t t
14721 s,@DLLWRAP@,$DLLWRAP,;t t
14722 s,@ac_ct_DLLWRAP@,$ac_ct_DLLWRAP,;t t
14723 s,@CROSSTEST@,$CROSSTEST,;t t
14724 s,@CROSSCC@,$CROSSCC,;t t
14725 s,@LDPATH@,$LDPATH,;t t
14726 s,@CRTLIBS@,$CRTLIBS,;t t
14727 s,@LDD@,$LDD,;t t
14728 s,@ALLOCA@,$ALLOCA,;t t
14729 s,@LIBOBJS@,$LIBOBJS,;t t
14730 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
14731 /@MAKE_RULES@/r $MAKE_RULES
14732 s,@MAKE_RULES@,,;t t
14733 /@MAKE_DLL_RULES@/r $MAKE_DLL_RULES
14734 s,@MAKE_DLL_RULES@,,;t t
14735 /@MAKE_TEST_RULES@/r $MAKE_TEST_RULES
14736 s,@MAKE_TEST_RULES@,,;t t
14737 /@MAKE_PROG_RULES@/r $MAKE_PROG_RULES
14738 s,@MAKE_PROG_RULES@,,;t t
14739 CEOF
14740
14741 _ACEOF
14742
14743   cat >>$CONFIG_STATUS <<\_ACEOF
14744   # Split the substitutions into bite-sized pieces for seds with
14745   # small command number limits, like on Digital OSF/1 and HP-UX.
14746   ac_max_sed_lines=48
14747   ac_sed_frag=1 # Number of current file.
14748   ac_beg=1 # First line for current file.
14749   ac_end=$ac_max_sed_lines # Line after last line for current file.
14750   ac_more_lines=:
14751   ac_sed_cmds=
14752   while $ac_more_lines; do
14753     if test $ac_beg -gt 1; then
14754       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
14755     else
14756       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
14757     fi
14758     if test ! -s $tmp/subs.frag; then
14759       ac_more_lines=false
14760     else
14761       # The purpose of the label and of the branching condition is to
14762       # speed up the sed processing (if there are no `@' at all, there
14763       # is no need to browse any of the substitutions).
14764       # These are the two extra sed commands mentioned above.
14765       (echo ':t
14766   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
14767       if test -z "$ac_sed_cmds"; then
14768         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
14769       else
14770         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
14771       fi
14772       ac_sed_frag=`expr $ac_sed_frag + 1`
14773       ac_beg=$ac_end
14774       ac_end=`expr $ac_end + $ac_max_sed_lines`
14775     fi
14776   done
14777   if test -z "$ac_sed_cmds"; then
14778     ac_sed_cmds=cat
14779   fi
14780 fi # test -n "$CONFIG_FILES"
14781
14782 _ACEOF
14783 cat >>$CONFIG_STATUS <<\_ACEOF
14784 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
14785   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
14786   case $ac_file in
14787   - | *:- | *:-:* ) # input from stdin
14788         cat >$tmp/stdin
14789         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
14790         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
14791   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
14792         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
14793   * )   ac_file_in=$ac_file.in ;;
14794   esac
14795
14796   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
14797   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
14798 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14799          X"$ac_file" : 'X\(//\)[^/]' \| \
14800          X"$ac_file" : 'X\(//\)$' \| \
14801          X"$ac_file" : 'X\(/\)' \| \
14802          .     : '\(.\)' 2>/dev/null ||
14803 echo X"$ac_file" |
14804     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14805           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14806           /^X\(\/\/\)$/{ s//\1/; q; }
14807           /^X\(\/\).*/{ s//\1/; q; }
14808           s/.*/./; q'`
14809   { if $as_mkdir_p; then
14810     mkdir -p "$ac_dir"
14811   else
14812     as_dir="$ac_dir"
14813     as_dirs=
14814     while test ! -d "$as_dir"; do
14815       as_dirs="$as_dir $as_dirs"
14816       as_dir=`(dirname "$as_dir") 2>/dev/null ||
14817 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14818          X"$as_dir" : 'X\(//\)[^/]' \| \
14819          X"$as_dir" : 'X\(//\)$' \| \
14820          X"$as_dir" : 'X\(/\)' \| \
14821          .     : '\(.\)' 2>/dev/null ||
14822 echo X"$as_dir" |
14823     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14824           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14825           /^X\(\/\/\)$/{ s//\1/; q; }
14826           /^X\(\/\).*/{ s//\1/; q; }
14827           s/.*/./; q'`
14828     done
14829     test ! -n "$as_dirs" || mkdir $as_dirs
14830   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
14831 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
14832    { (exit 1); exit 1; }; }; }
14833
14834   ac_builddir=.
14835
14836 if test "$ac_dir" != .; then
14837   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
14838   # A "../" for each directory in $ac_dir_suffix.
14839   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
14840 else
14841   ac_dir_suffix= ac_top_builddir=
14842 fi
14843
14844 case $srcdir in
14845   .)  # No --srcdir option.  We are building in place.
14846     ac_srcdir=.
14847     if test -z "$ac_top_builddir"; then
14848        ac_top_srcdir=.
14849     else
14850        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
14851     fi ;;
14852   [\\/]* | ?:[\\/]* )  # Absolute path.
14853     ac_srcdir=$srcdir$ac_dir_suffix;
14854     ac_top_srcdir=$srcdir ;;
14855   *) # Relative path.
14856     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
14857     ac_top_srcdir=$ac_top_builddir$srcdir ;;
14858 esac
14859 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
14860 # absolute.
14861 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
14862 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
14863 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
14864 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
14865
14866
14867   case $INSTALL in
14868   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
14869   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
14870   esac
14871
14872   if test x"$ac_file" != x-; then
14873     { echo "$as_me:$LINENO: creating $ac_file" >&5
14874 echo "$as_me: creating $ac_file" >&6;}
14875     rm -f "$ac_file"
14876   fi
14877   # Let's still pretend it is `configure' which instantiates (i.e., don't
14878   # use $as_me), people would be surprised to read:
14879   #    /* config.h.  Generated by config.status.  */
14880   if test x"$ac_file" = x-; then
14881     configure_input=
14882   else
14883     configure_input="$ac_file.  "
14884   fi
14885   configure_input=$configure_input"Generated from `echo $ac_file_in |
14886                                      sed 's,.*/,,'` by configure."
14887
14888   # First look for the input files in the build tree, otherwise in the
14889   # src tree.
14890   ac_file_inputs=`IFS=:
14891     for f in $ac_file_in; do
14892       case $f in
14893       -) echo $tmp/stdin ;;
14894       [\\/$]*)
14895          # Absolute (can't be DOS-style, as IFS=:)
14896          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
14897 echo "$as_me: error: cannot find input file: $f" >&2;}
14898    { (exit 1); exit 1; }; }
14899          echo $f;;
14900       *) # Relative
14901          if test -f "$f"; then
14902            # Build tree
14903            echo $f
14904          elif test -f "$srcdir/$f"; then
14905            # Source tree
14906            echo $srcdir/$f
14907          else
14908            # /dev/null tree
14909            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
14910 echo "$as_me: error: cannot find input file: $f" >&2;}
14911    { (exit 1); exit 1; }; }
14912          fi;;
14913       esac
14914     done` || { (exit 1); exit 1; }
14915 _ACEOF
14916 cat >>$CONFIG_STATUS <<_ACEOF
14917   sed "$ac_vpsub
14918 $extrasub
14919 _ACEOF
14920 cat >>$CONFIG_STATUS <<\_ACEOF
14921 :t
14922 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14923 s,@configure_input@,$configure_input,;t t
14924 s,@srcdir@,$ac_srcdir,;t t
14925 s,@abs_srcdir@,$ac_abs_srcdir,;t t
14926 s,@top_srcdir@,$ac_top_srcdir,;t t
14927 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
14928 s,@builddir@,$ac_builddir,;t t
14929 s,@abs_builddir@,$ac_abs_builddir,;t t
14930 s,@top_builddir@,$ac_top_builddir,;t t
14931 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
14932 s,@INSTALL@,$ac_INSTALL,;t t
14933 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
14934   rm -f $tmp/stdin
14935   if test x"$ac_file" != x-; then
14936     mv $tmp/out $ac_file
14937   else
14938     cat $tmp/out
14939     rm -f $tmp/out
14940   fi
14941
14942 done
14943 _ACEOF
14944 cat >>$CONFIG_STATUS <<\_ACEOF
14945
14946 #
14947 # CONFIG_HEADER section.
14948 #
14949
14950 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
14951 # NAME is the cpp macro being defined and VALUE is the value it is being given.
14952 #
14953 # ac_d sets the value in "#define NAME VALUE" lines.
14954 ac_dA='s,^\([   ]*\)#\([        ]*define[       ][      ]*\)'
14955 ac_dB='[        ].*$,\1#\2'
14956 ac_dC=' '
14957 ac_dD=',;t'
14958 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
14959 ac_uA='s,^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
14960 ac_uB='$,\1#\2define\3'
14961 ac_uC=' '
14962 ac_uD=',;t'
14963
14964 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
14965   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
14966   case $ac_file in
14967   - | *:- | *:-:* ) # input from stdin
14968         cat >$tmp/stdin
14969         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
14970         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
14971   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
14972         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
14973   * )   ac_file_in=$ac_file.in ;;
14974   esac
14975
14976   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
14977 echo "$as_me: creating $ac_file" >&6;}
14978
14979   # First look for the input files in the build tree, otherwise in the
14980   # src tree.
14981   ac_file_inputs=`IFS=:
14982     for f in $ac_file_in; do
14983       case $f in
14984       -) echo $tmp/stdin ;;
14985       [\\/$]*)
14986          # Absolute (can't be DOS-style, as IFS=:)
14987          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
14988 echo "$as_me: error: cannot find input file: $f" >&2;}
14989    { (exit 1); exit 1; }; }
14990          echo $f;;
14991       *) # Relative
14992          if test -f "$f"; then
14993            # Build tree
14994            echo $f
14995          elif test -f "$srcdir/$f"; then
14996            # Source tree
14997            echo $srcdir/$f
14998          else
14999            # /dev/null tree
15000            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
15001 echo "$as_me: error: cannot find input file: $f" >&2;}
15002    { (exit 1); exit 1; }; }
15003          fi;;
15004       esac
15005     done` || { (exit 1); exit 1; }
15006   # Remove the trailing spaces.
15007   sed 's/[      ]*$//' $ac_file_inputs >$tmp/in
15008
15009 _ACEOF
15010
15011 # Transform confdefs.h into two sed scripts, `conftest.defines' and
15012 # `conftest.undefs', that substitutes the proper values into
15013 # config.h.in to produce config.h.  The first handles `#define'
15014 # templates, and the second `#undef' templates.
15015 # And first: Protect against being on the right side of a sed subst in
15016 # config.status.  Protect against being in an unquoted here document
15017 # in config.status.
15018 rm -f conftest.defines conftest.undefs
15019 # Using a here document instead of a string reduces the quoting nightmare.
15020 # Putting comments in sed scripts is not portable.
15021 #
15022 # `end' is used to avoid that the second main sed command (meant for
15023 # 0-ary CPP macros) applies to n-ary macro definitions.
15024 # See the Autoconf documentation for `clear'.
15025 cat >confdef2sed.sed <<\_ACEOF
15026 s/[\\&,]/\\&/g
15027 s,[\\$`],\\&,g
15028 t clear
15029 : clear
15030 s,^[    ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
15031 t end
15032 s,^[    ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
15033 : end
15034 _ACEOF
15035 # If some macros were called several times there might be several times
15036 # the same #defines, which is useless.  Nevertheless, we may not want to
15037 # sort them, since we want the *last* AC-DEFINE to be honored.
15038 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
15039 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
15040 rm -f confdef2sed.sed
15041
15042 # This sed command replaces #undef with comments.  This is necessary, for
15043 # example, in the case of _POSIX_SOURCE, which is predefined and required
15044 # on some systems where configure will not decide to define it.
15045 cat >>conftest.undefs <<\_ACEOF
15046 s,^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
15047 _ACEOF
15048
15049 # Break up conftest.defines because some shells have a limit on the size
15050 # of here documents, and old seds have small limits too (100 cmds).
15051 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
15052 echo '  if grep "^[     ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
15053 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
15054 echo '  :' >>$CONFIG_STATUS
15055 rm -f conftest.tail
15056 while grep . conftest.defines >/dev/null
15057 do
15058   # Write a limited-size here document to $tmp/defines.sed.
15059   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
15060   # Speed up: don't consider the non `#define' lines.
15061   echo '/^[     ]*#[    ]*define/!b' >>$CONFIG_STATUS
15062   # Work around the forget-to-reset-the-flag bug.
15063   echo 't clr' >>$CONFIG_STATUS
15064   echo ': clr' >>$CONFIG_STATUS
15065   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
15066   echo 'CEOF
15067   sed -f $tmp/defines.sed $tmp/in >$tmp/out
15068   rm -f $tmp/in
15069   mv $tmp/out $tmp/in
15070 ' >>$CONFIG_STATUS
15071   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
15072   rm -f conftest.defines
15073   mv conftest.tail conftest.defines
15074 done
15075 rm -f conftest.defines
15076 echo '  fi # grep' >>$CONFIG_STATUS
15077 echo >>$CONFIG_STATUS
15078
15079 # Break up conftest.undefs because some shells have a limit on the size
15080 # of here documents, and old seds have small limits too (100 cmds).
15081 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
15082 rm -f conftest.tail
15083 while grep . conftest.undefs >/dev/null
15084 do
15085   # Write a limited-size here document to $tmp/undefs.sed.
15086   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
15087   # Speed up: don't consider the non `#undef'
15088   echo '/^[     ]*#[    ]*undef/!b' >>$CONFIG_STATUS
15089   # Work around the forget-to-reset-the-flag bug.
15090   echo 't clr' >>$CONFIG_STATUS
15091   echo ': clr' >>$CONFIG_STATUS
15092   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
15093   echo 'CEOF
15094   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
15095   rm -f $tmp/in
15096   mv $tmp/out $tmp/in
15097 ' >>$CONFIG_STATUS
15098   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
15099   rm -f conftest.undefs
15100   mv conftest.tail conftest.undefs
15101 done
15102 rm -f conftest.undefs
15103
15104 cat >>$CONFIG_STATUS <<\_ACEOF
15105   # Let's still pretend it is `configure' which instantiates (i.e., don't
15106   # use $as_me), people would be surprised to read:
15107   #    /* config.h.  Generated by config.status.  */
15108   if test x"$ac_file" = x-; then
15109     echo "/* Generated by configure.  */" >$tmp/config.h
15110   else
15111     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
15112   fi
15113   cat $tmp/in >>$tmp/config.h
15114   rm -f $tmp/in
15115   if test x"$ac_file" != x-; then
15116     if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
15117       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
15118 echo "$as_me: $ac_file is unchanged" >&6;}
15119     else
15120       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
15121 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15122          X"$ac_file" : 'X\(//\)[^/]' \| \
15123          X"$ac_file" : 'X\(//\)$' \| \
15124          X"$ac_file" : 'X\(/\)' \| \
15125          .     : '\(.\)' 2>/dev/null ||
15126 echo X"$ac_file" |
15127     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15128           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15129           /^X\(\/\/\)$/{ s//\1/; q; }
15130           /^X\(\/\).*/{ s//\1/; q; }
15131           s/.*/./; q'`
15132       { if $as_mkdir_p; then
15133     mkdir -p "$ac_dir"
15134   else
15135     as_dir="$ac_dir"
15136     as_dirs=
15137     while test ! -d "$as_dir"; do
15138       as_dirs="$as_dir $as_dirs"
15139       as_dir=`(dirname "$as_dir") 2>/dev/null ||
15140 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15141          X"$as_dir" : 'X\(//\)[^/]' \| \
15142          X"$as_dir" : 'X\(//\)$' \| \
15143          X"$as_dir" : 'X\(/\)' \| \
15144          .     : '\(.\)' 2>/dev/null ||
15145 echo X"$as_dir" |
15146     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15147           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15148           /^X\(\/\/\)$/{ s//\1/; q; }
15149           /^X\(\/\).*/{ s//\1/; q; }
15150           s/.*/./; q'`
15151     done
15152     test ! -n "$as_dirs" || mkdir $as_dirs
15153   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
15154 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
15155    { (exit 1); exit 1; }; }; }
15156
15157       rm -f $ac_file
15158       mv $tmp/config.h $ac_file
15159     fi
15160   else
15161     cat $tmp/config.h
15162     rm -f $tmp/config.h
15163   fi
15164 done
15165 _ACEOF
15166 cat >>$CONFIG_STATUS <<\_ACEOF
15167
15168 #
15169 # CONFIG_COMMANDS section.
15170 #
15171 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
15172   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
15173   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
15174   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
15175 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15176          X"$ac_dest" : 'X\(//\)[^/]' \| \
15177          X"$ac_dest" : 'X\(//\)$' \| \
15178          X"$ac_dest" : 'X\(/\)' \| \
15179          .     : '\(.\)' 2>/dev/null ||
15180 echo X"$ac_dest" |
15181     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15182           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15183           /^X\(\/\/\)$/{ s//\1/; q; }
15184           /^X\(\/\).*/{ s//\1/; q; }
15185           s/.*/./; q'`
15186   ac_builddir=.
15187
15188 if test "$ac_dir" != .; then
15189   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
15190   # A "../" for each directory in $ac_dir_suffix.
15191   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
15192 else
15193   ac_dir_suffix= ac_top_builddir=
15194 fi
15195
15196 case $srcdir in
15197   .)  # No --srcdir option.  We are building in place.
15198     ac_srcdir=.
15199     if test -z "$ac_top_builddir"; then
15200        ac_top_srcdir=.
15201     else
15202        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
15203     fi ;;
15204   [\\/]* | ?:[\\/]* )  # Absolute path.
15205     ac_srcdir=$srcdir$ac_dir_suffix;
15206     ac_top_srcdir=$srcdir ;;
15207   *) # Relative path.
15208     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
15209     ac_top_srcdir=$ac_top_builddir$srcdir ;;
15210 esac
15211 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
15212 # absolute.
15213 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
15214 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
15215 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
15216 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
15217
15218
15219   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
15220 echo "$as_me: executing $ac_dest commands" >&6;}
15221   case $ac_dest in
15222     controls ) test -d "controls" || ({ echo "$as_me:$LINENO: creating controls" >&5
15223 echo "$as_me: creating controls" >&6;} && mkdir "controls") ;;
15224     dlls/ddraw/d3ddevice ) test -d "dlls/ddraw/d3ddevice" || ({ echo "$as_me:$LINENO: creating dlls/ddraw/d3ddevice" >&5
15225 echo "$as_me: creating dlls/ddraw/d3ddevice" >&6;} && mkdir "dlls/ddraw/d3ddevice") ;;
15226     dlls/ddraw/dclipper ) test -d "dlls/ddraw/dclipper" || ({ echo "$as_me:$LINENO: creating dlls/ddraw/dclipper" >&5
15227 echo "$as_me: creating dlls/ddraw/dclipper" >&6;} && mkdir "dlls/ddraw/dclipper") ;;
15228     dlls/ddraw/ddraw ) test -d "dlls/ddraw/ddraw" || ({ echo "$as_me:$LINENO: creating dlls/ddraw/ddraw" >&5
15229 echo "$as_me: creating dlls/ddraw/ddraw" >&6;} && mkdir "dlls/ddraw/ddraw") ;;
15230     dlls/ddraw/direct3d ) test -d "dlls/ddraw/direct3d" || ({ echo "$as_me:$LINENO: creating dlls/ddraw/direct3d" >&5
15231 echo "$as_me: creating dlls/ddraw/direct3d" >&6;} && mkdir "dlls/ddraw/direct3d") ;;
15232     dlls/ddraw/dpalette ) test -d "dlls/ddraw/dpalette" || ({ echo "$as_me:$LINENO: creating dlls/ddraw/dpalette" >&5
15233 echo "$as_me: creating dlls/ddraw/dpalette" >&6;} && mkdir "dlls/ddraw/dpalette") ;;
15234     dlls/ddraw/dsurface ) test -d "dlls/ddraw/dsurface" || ({ echo "$as_me:$LINENO: creating dlls/ddraw/dsurface" >&5
15235 echo "$as_me: creating dlls/ddraw/dsurface" >&6;} && mkdir "dlls/ddraw/dsurface") ;;
15236     dlls/dinput/joystick ) test -d "dlls/dinput/joystick" || ({ echo "$as_me:$LINENO: creating dlls/dinput/joystick" >&5
15237 echo "$as_me: creating dlls/dinput/joystick" >&6;} && mkdir "dlls/dinput/joystick") ;;
15238     dlls/dinput/keyboard ) test -d "dlls/dinput/keyboard" || ({ echo "$as_me:$LINENO: creating dlls/dinput/keyboard" >&5
15239 echo "$as_me: creating dlls/dinput/keyboard" >&6;} && mkdir "dlls/dinput/keyboard") ;;
15240     dlls/dinput/mouse ) test -d "dlls/dinput/mouse" || ({ echo "$as_me:$LINENO: creating dlls/dinput/mouse" >&5
15241 echo "$as_me: creating dlls/dinput/mouse" >&6;} && mkdir "dlls/dinput/mouse") ;;
15242     dlls/gdi/enhmfdrv ) test -d "dlls/gdi/enhmfdrv" || ({ echo "$as_me:$LINENO: creating dlls/gdi/enhmfdrv" >&5
15243 echo "$as_me: creating dlls/gdi/enhmfdrv" >&6;} && mkdir "dlls/gdi/enhmfdrv") ;;
15244     dlls/gdi/mfdrv ) test -d "dlls/gdi/mfdrv" || ({ echo "$as_me:$LINENO: creating dlls/gdi/mfdrv" >&5
15245 echo "$as_me: creating dlls/gdi/mfdrv" >&6;} && mkdir "dlls/gdi/mfdrv") ;;
15246     dlls/gdi/win16drv ) test -d "dlls/gdi/win16drv" || ({ echo "$as_me:$LINENO: creating dlls/gdi/win16drv" >&5
15247 echo "$as_me: creating dlls/gdi/win16drv" >&6;} && mkdir "dlls/gdi/win16drv") ;;
15248     dlls/kernel/messages ) test -d "dlls/kernel/messages" || ({ echo "$as_me:$LINENO: creating dlls/kernel/messages" >&5
15249 echo "$as_me: creating dlls/kernel/messages" >&6;} && mkdir "dlls/kernel/messages") ;;
15250     dlls/user/dde ) test -d "dlls/user/dde" || ({ echo "$as_me:$LINENO: creating dlls/user/dde" >&5
15251 echo "$as_me: creating dlls/user/dde" >&6;} && mkdir "dlls/user/dde") ;;
15252     dlls/user/resources ) test -d "dlls/user/resources" || ({ echo "$as_me:$LINENO: creating dlls/user/resources" >&5
15253 echo "$as_me: creating dlls/user/resources" >&6;} && mkdir "dlls/user/resources") ;;
15254     dlls/wineps/data ) test -d "dlls/wineps/data" || ({ echo "$as_me:$LINENO: creating dlls/wineps/data" >&5
15255 echo "$as_me: creating dlls/wineps/data" >&6;} && mkdir "dlls/wineps/data") ;;
15256     files ) test -d "files" || ({ echo "$as_me:$LINENO: creating files" >&5
15257 echo "$as_me: creating files" >&6;} && mkdir "files") ;;
15258     graphics ) test -d "graphics" || ({ echo "$as_me:$LINENO: creating graphics" >&5
15259 echo "$as_me: creating graphics" >&6;} && mkdir "graphics") ;;
15260     graphics/x11drv ) test -d "graphics/x11drv" || ({ echo "$as_me:$LINENO: creating graphics/x11drv" >&5
15261 echo "$as_me: creating graphics/x11drv" >&6;} && mkdir "graphics/x11drv") ;;
15262     if1632 ) test -d "if1632" || ({ echo "$as_me:$LINENO: creating if1632" >&5
15263 echo "$as_me: creating if1632" >&6;} && mkdir "if1632") ;;
15264     include/wine ) test -d "include/wine" || ({ echo "$as_me:$LINENO: creating include/wine" >&5
15265 echo "$as_me: creating include/wine" >&6;} && mkdir "include/wine") ;;
15266     loader ) test -d "loader" || ({ echo "$as_me:$LINENO: creating loader" >&5
15267 echo "$as_me: creating loader" >&6;} && mkdir "loader") ;;
15268     loader/ne ) test -d "loader/ne" || ({ echo "$as_me:$LINENO: creating loader/ne" >&5
15269 echo "$as_me: creating loader/ne" >&6;} && mkdir "loader/ne") ;;
15270     memory ) test -d "memory" || ({ echo "$as_me:$LINENO: creating memory" >&5
15271 echo "$as_me: creating memory" >&6;} && mkdir "memory") ;;
15272     misc ) test -d "misc" || ({ echo "$as_me:$LINENO: creating misc" >&5
15273 echo "$as_me: creating misc" >&6;} && mkdir "misc") ;;
15274     msdos ) test -d "msdos" || ({ echo "$as_me:$LINENO: creating msdos" >&5
15275 echo "$as_me: creating msdos" >&6;} && mkdir "msdos") ;;
15276     objects ) test -d "objects" || ({ echo "$as_me:$LINENO: creating objects" >&5
15277 echo "$as_me: creating objects" >&6;} && mkdir "objects") ;;
15278     programs/regapi/tests ) test -d "programs/regapi/tests" || ({ echo "$as_me:$LINENO: creating programs/regapi/tests" >&5
15279 echo "$as_me: creating programs/regapi/tests" >&6;} && mkdir "programs/regapi/tests") ;;
15280     programs/regedit/tests ) test -d "programs/regedit/tests" || ({ echo "$as_me:$LINENO: creating programs/regedit/tests" >&5
15281 echo "$as_me: creating programs/regedit/tests" >&6;} && mkdir "programs/regedit/tests") ;;
15282     relay32 ) test -d "relay32" || ({ echo "$as_me:$LINENO: creating relay32" >&5
15283 echo "$as_me: creating relay32" >&6;} && mkdir "relay32") ;;
15284     scheduler ) test -d "scheduler" || ({ echo "$as_me:$LINENO: creating scheduler" >&5
15285 echo "$as_me: creating scheduler" >&6;} && mkdir "scheduler") ;;
15286     win32 ) test -d "win32" || ({ echo "$as_me:$LINENO: creating win32" >&5
15287 echo "$as_me: creating win32" >&6;} && mkdir "win32") ;;
15288     windows ) test -d "windows" || ({ echo "$as_me:$LINENO: creating windows" >&5
15289 echo "$as_me: creating windows" >&6;} && mkdir "windows") ;;
15290   esac
15291 done
15292 _ACEOF
15293
15294 cat >>$CONFIG_STATUS <<\_ACEOF
15295
15296 { (exit 0); exit 0; }
15297 _ACEOF
15298 chmod +x $CONFIG_STATUS
15299 ac_clean_files=$ac_clean_files_save
15300
15301
15302 # configure is writing to config.log, and then calls config.status.
15303 # config.status does its own redirection, appending to config.log.
15304 # Unfortunately, on DOS this fails, as config.log is still kept open
15305 # by configure, so config.status won't be able to write to it; its
15306 # output is simply discarded.  So we exec the FD to /dev/null,
15307 # effectively closing config.log, so it can be properly (re)opened and
15308 # appended to by config.status.  When coming back to configure, we
15309 # need to make the FD available again.
15310 if test "$no_create" != yes; then
15311   ac_cs_success=:
15312   exec 5>/dev/null
15313   $SHELL $CONFIG_STATUS || ac_cs_success=false
15314   exec 5>>config.log
15315   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15316   # would make configure fail if this is the last instruction.
15317   $ac_cs_success || { (exit 1); exit 1; }
15318 fi
15319
15320
15321 if test "$have_x" = "no"
15322 then
15323   echo
15324   echo "*** Warning: X development files not found. Wine will be built without"
15325   echo "*** X support, which currently does not work, and would probably not be"
15326   echo "*** what you want anyway. You will need to install devel packages of"
15327   echo "*** Xlib/Xfree86 at the very least."
15328 fi
15329
15330 if test "$ac_cv_lib_ncurses_resizeterm" = "no" -a "$ac_cv_lib_ncurses_waddch" = "yes"
15331 then
15332   echo
15333   echo "*** Warning: resizeterm not found in ncurses. Wine will be built without"
15334   echo "*** terminal resize support. Consider upgrading ncurses."
15335 fi
15336
15337 if test "$wine_cv_libc_reentrant" = "no"
15338 then
15339   echo
15340   echo "*** Warning: non-reentrant libc detected. Wine will be built without"
15341   echo "*** threading support. Consider upgrading libc to a more recent"
15342   echo "*** reentrant version of libc."
15343 fi
15344
15345 if test "$have_x" = "yes" -a "$wine_cv_x_reentrant" != "yes"
15346 then
15347   echo
15348   echo "*** Warning: non-reentrant X11 library detected. Multi-threaded"
15349   echo "*** applications won't work properly. You should upgrade your X11 library."
15350 fi
15351
15352 if test "$wine_cv_opengl_version_OK" = "no"
15353 then
15354   echo
15355   echo "*** Warning: old Mesa headers detected. Wine will be built without Direct3D"
15356   echo "*** support. Consider upgrading your Mesa libraries (http://www.mesa3d.org/)."
15357 fi
15358
15359 if test "$wine_cv_msg_freetype" = "yes"
15360 then
15361   echo
15362   echo "*** Note: Your system appears to have the FreeType 2 runtime libraries"
15363   echo "*** installed, but 'freetype-config' is not in your PATH. Install the"
15364   echo "*** freetype-devel package (or its equivalent on your distribution) to"
15365   echo "*** enable Wine to use TrueType fonts."
15366 fi
15367
15368 echo
15369 echo "Configure finished.  Do 'make depend && make' to compile Wine."
15370 echo
15371