Added configure check for getpwuid.
[wine] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.53 for Wine 20020605.
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 if expr a : '\(a\)' >/dev/null 2>&1; then
11   as_expr=expr
12 else
13   as_expr=false
14 fi
15
16
17 ## --------------------- ##
18 ## M4sh Initialization.  ##
19 ## --------------------- ##
20
21 # Be Bourne compatible
22 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
23   emulate sh
24   NULLCMD=:
25 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
26   set -o posix
27 fi
28
29 # NLS nuisances.
30 # Support unset when possible.
31 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
32   as_unset=unset
33 else
34   as_unset=false
35 fi
36
37 (set +x; test -n "`(LANG=C; export LANG) 2>&1`") &&
38     { $as_unset LANG || test "${LANG+set}" != set; } ||
39       { LANG=C; export LANG; }
40 (set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") &&
41     { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } ||
42       { LC_ALL=C; export LC_ALL; }
43 (set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") &&
44     { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } ||
45       { LC_TIME=C; export LC_TIME; }
46 (set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") &&
47     { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } ||
48       { LC_CTYPE=C; export LC_CTYPE; }
49 (set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") &&
50     { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } ||
51       { LANGUAGE=C; export LANGUAGE; }
52 (set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") &&
53     { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } ||
54       { LC_COLLATE=C; export LC_COLLATE; }
55 (set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") &&
56     { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } ||
57       { LC_NUMERIC=C; export LC_NUMERIC; }
58 (set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") &&
59     { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } ||
60       { LC_MESSAGES=C; export LC_MESSAGES; }
61
62
63 # Name of the executable.
64 as_me=`(basename "$0") 2>/dev/null ||
65 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
66          X"$0" : 'X\(//\)$' \| \
67          X"$0" : 'X\(/\)$' \| \
68          .     : '\(.\)' 2>/dev/null ||
69 echo X/"$0" |
70     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
71           /^X\/\(\/\/\)$/{ s//\1/; q; }
72           /^X\/\(\/\).*/{ s//\1/; q; }
73           s/.*/./; q'`
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=".;."; 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              CONFIG_SHELL=$as_dir/$as_base
142              export CONFIG_SHELL
143              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
144            fi;;
145          esac
146        done
147 done
148 ;;
149   esac
150
151   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
152   # uniformly replaced by the line number.  The first 'sed' inserts a
153   # line-number line before each line; the second 'sed' does the real
154   # work.  The second script uses 'N' to pair each line-number line
155   # with the numbered line, and appends trailing '-' during
156   # substitution so that $LINENO is not a special case at line end.
157   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
158   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
159   sed '=' <$as_myself |
160     sed '
161       N
162       s,$,-,
163       : loop
164       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
165       t loop
166       s,-$,,
167       s,^['$as_cr_digits']*\n,,
168     ' >$as_me.lineno &&
169   chmod +x $as_me.lineno ||
170     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
171    { (exit 1); exit 1; }; }
172
173   # Don't try to exec as it changes $[0], causing all sort of problems
174   # (the dirname of $[0] is not the place where we might find the
175   # original and so on.  Autoconf is especially sensible to this).
176   . ./$as_me.lineno
177   # Exit status is that of the last command.
178   exit
179 }
180
181
182 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
183   *c*,-n*) ECHO_N= ECHO_C='
184 ' ECHO_T='      ' ;;
185   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
186   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
187 esac
188
189 if expr a : '\(a\)' >/dev/null 2>&1; then
190   as_expr=expr
191 else
192   as_expr=false
193 fi
194
195 rm -f conf$$ conf$$.exe conf$$.file
196 echo >conf$$.file
197 if ln -s conf$$.file conf$$ 2>/dev/null; then
198   # We could just check for DJGPP; but this test a) works b) is more generic
199   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
200   if test -f conf$$.exe; then
201     # Don't use ln at all; we don't have any links
202     as_ln_s='cp -p'
203   else
204     as_ln_s='ln -s'
205   fi
206 elif ln conf$$.file conf$$ 2>/dev/null; then
207   as_ln_s=ln
208 else
209   as_ln_s='cp -p'
210 fi
211 rm -f conf$$ conf$$.exe conf$$.file
212
213 as_executable_p="test -f"
214
215 # Sed expression to map a string onto a valid CPP name.
216 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
217
218 # Sed expression to map a string onto a valid variable name.
219 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
220
221
222 # IFS
223 # We need space, tab and new line, in precisely that order.
224 as_nl='
225 '
226 IFS="   $as_nl"
227
228 # CDPATH.
229 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; }
230
231
232 # Name of the host.
233 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
234 # so uname gets run too.
235 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
236
237 exec 6>&1
238
239 #
240 # Initializations.
241 #
242 ac_default_prefix=/usr/local
243 cross_compiling=no
244 subdirs=
245 MFLAGS=
246 MAKEFLAGS=
247 SHELL=${CONFIG_SHELL-/bin/sh}
248
249 # Maximum number of lines to put in a shell here document.
250 # This variable seems obsolete.  It should probably be removed, and
251 # only ac_max_sed_lines should be used.
252 : ${ac_max_here_lines=38}
253
254 # Identity of this package.
255 PACKAGE_NAME='Wine'
256 PACKAGE_TARNAME='wine'
257 PACKAGE_VERSION='20020605'
258 PACKAGE_STRING='Wine 20020605'
259 PACKAGE_BUGREPORT=''
260
261 ac_unique_file="server/atom.c"
262 # Factoring default headers for most tests.
263 ac_includes_default="\
264 #include <stdio.h>
265 #if HAVE_SYS_TYPES_H
266 # include <sys/types.h>
267 #endif
268 #if HAVE_SYS_STAT_H
269 # include <sys/stat.h>
270 #endif
271 #if STDC_HEADERS
272 # include <stdlib.h>
273 # include <stddef.h>
274 #else
275 # if HAVE_STDLIB_H
276 #  include <stdlib.h>
277 # endif
278 #endif
279 #if HAVE_STRING_H
280 # if !STDC_HEADERS && HAVE_MEMORY_H
281 #  include <memory.h>
282 # endif
283 # include <string.h>
284 #endif
285 #if HAVE_STRINGS_H
286 # include <strings.h>
287 #endif
288 #if HAVE_INTTYPES_H
289 # include <inttypes.h>
290 #else
291 # if HAVE_STDINT_H
292 #  include <stdint.h>
293 # endif
294 #endif
295 #if HAVE_UNISTD_H
296 # include <unistd.h>
297 #endif"
298
299
300 # Initialize some variables set by options.
301 ac_init_help=
302 ac_init_version=false
303 # The variables have the same names as the options, with
304 # dashes changed to underlines.
305 cache_file=/dev/null
306 exec_prefix=NONE
307 no_create=
308 no_recursion=
309 prefix=NONE
310 program_prefix=NONE
311 program_suffix=NONE
312 program_transform_name=s,x,x,
313 silent=
314 site=
315 srcdir=
316 verbose=
317 x_includes=NONE
318 x_libraries=NONE
319
320 # Installation directory options.
321 # These are left unexpanded so users can "make install exec_prefix=/foo"
322 # and all the variables that are supposed to be based on exec_prefix
323 # by default will actually change.
324 # Use braces instead of parens because sh, perl, etc. also accept them.
325 bindir='${exec_prefix}/bin'
326 sbindir='${exec_prefix}/sbin'
327 libexecdir='${exec_prefix}/libexec'
328 datadir='${prefix}/share'
329 sysconfdir='${prefix}/etc'
330 sharedstatedir='${prefix}/com'
331 localstatedir='${prefix}/var'
332 libdir='${exec_prefix}/lib'
333 includedir='${prefix}/include'
334 oldincludedir='/usr/include'
335 infodir='${prefix}/info'
336 mandir='${prefix}/man'
337
338 ac_prev=
339 for ac_option
340 do
341   # If the previous option needs an argument, assign it.
342   if test -n "$ac_prev"; then
343     eval "$ac_prev=\$ac_option"
344     ac_prev=
345     continue
346   fi
347
348   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
349
350   # Accept the important Cygnus configure options, so we can diagnose typos.
351
352   case $ac_option in
353
354   -bindir | --bindir | --bindi | --bind | --bin | --bi)
355     ac_prev=bindir ;;
356   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
357     bindir=$ac_optarg ;;
358
359   -build | --build | --buil | --bui | --bu)
360     ac_prev=build_alias ;;
361   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
362     build_alias=$ac_optarg ;;
363
364   -cache-file | --cache-file | --cache-fil | --cache-fi \
365   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
366     ac_prev=cache_file ;;
367   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
368   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
369     cache_file=$ac_optarg ;;
370
371   --config-cache | -C)
372     cache_file=config.cache ;;
373
374   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
375     ac_prev=datadir ;;
376   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
377   | --da=*)
378     datadir=$ac_optarg ;;
379
380   -disable-* | --disable-*)
381     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
382     # Reject names that are not valid shell variable names.
383     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
384       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
385    { (exit 1); exit 1; }; }
386     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
387     eval "enable_$ac_feature=no" ;;
388
389   -enable-* | --enable-*)
390     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
391     # Reject names that are not valid shell variable names.
392     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
393       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
394    { (exit 1); exit 1; }; }
395     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
396     case $ac_option in
397       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
398       *) ac_optarg=yes ;;
399     esac
400     eval "enable_$ac_feature='$ac_optarg'" ;;
401
402   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
403   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
404   | --exec | --exe | --ex)
405     ac_prev=exec_prefix ;;
406   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
407   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
408   | --exec=* | --exe=* | --ex=*)
409     exec_prefix=$ac_optarg ;;
410
411   -gas | --gas | --ga | --g)
412     # Obsolete; use --with-gas.
413     with_gas=yes ;;
414
415   -help | --help | --hel | --he | -h)
416     ac_init_help=long ;;
417   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
418     ac_init_help=recursive ;;
419   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
420     ac_init_help=short ;;
421
422   -host | --host | --hos | --ho)
423     ac_prev=host_alias ;;
424   -host=* | --host=* | --hos=* | --ho=*)
425     host_alias=$ac_optarg ;;
426
427   -includedir | --includedir | --includedi | --included | --include \
428   | --includ | --inclu | --incl | --inc)
429     ac_prev=includedir ;;
430   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
431   | --includ=* | --inclu=* | --incl=* | --inc=*)
432     includedir=$ac_optarg ;;
433
434   -infodir | --infodir | --infodi | --infod | --info | --inf)
435     ac_prev=infodir ;;
436   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
437     infodir=$ac_optarg ;;
438
439   -libdir | --libdir | --libdi | --libd)
440     ac_prev=libdir ;;
441   -libdir=* | --libdir=* | --libdi=* | --libd=*)
442     libdir=$ac_optarg ;;
443
444   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
445   | --libexe | --libex | --libe)
446     ac_prev=libexecdir ;;
447   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
448   | --libexe=* | --libex=* | --libe=*)
449     libexecdir=$ac_optarg ;;
450
451   -localstatedir | --localstatedir | --localstatedi | --localstated \
452   | --localstate | --localstat | --localsta | --localst \
453   | --locals | --local | --loca | --loc | --lo)
454     ac_prev=localstatedir ;;
455   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
456   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
457   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
458     localstatedir=$ac_optarg ;;
459
460   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
461     ac_prev=mandir ;;
462   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
463     mandir=$ac_optarg ;;
464
465   -nfp | --nfp | --nf)
466     # Obsolete; use --without-fp.
467     with_fp=no ;;
468
469   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
470   | --no-cr | --no-c | -n)
471     no_create=yes ;;
472
473   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
474   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
475     no_recursion=yes ;;
476
477   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
478   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
479   | --oldin | --oldi | --old | --ol | --o)
480     ac_prev=oldincludedir ;;
481   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
482   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
483   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
484     oldincludedir=$ac_optarg ;;
485
486   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
487     ac_prev=prefix ;;
488   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
489     prefix=$ac_optarg ;;
490
491   -program-prefix | --program-prefix | --program-prefi | --program-pref \
492   | --program-pre | --program-pr | --program-p)
493     ac_prev=program_prefix ;;
494   -program-prefix=* | --program-prefix=* | --program-prefi=* \
495   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
496     program_prefix=$ac_optarg ;;
497
498   -program-suffix | --program-suffix | --program-suffi | --program-suff \
499   | --program-suf | --program-su | --program-s)
500     ac_prev=program_suffix ;;
501   -program-suffix=* | --program-suffix=* | --program-suffi=* \
502   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
503     program_suffix=$ac_optarg ;;
504
505   -program-transform-name | --program-transform-name \
506   | --program-transform-nam | --program-transform-na \
507   | --program-transform-n | --program-transform- \
508   | --program-transform | --program-transfor \
509   | --program-transfo | --program-transf \
510   | --program-trans | --program-tran \
511   | --progr-tra | --program-tr | --program-t)
512     ac_prev=program_transform_name ;;
513   -program-transform-name=* | --program-transform-name=* \
514   | --program-transform-nam=* | --program-transform-na=* \
515   | --program-transform-n=* | --program-transform-=* \
516   | --program-transform=* | --program-transfor=* \
517   | --program-transfo=* | --program-transf=* \
518   | --program-trans=* | --program-tran=* \
519   | --progr-tra=* | --program-tr=* | --program-t=*)
520     program_transform_name=$ac_optarg ;;
521
522   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
523   | -silent | --silent | --silen | --sile | --sil)
524     silent=yes ;;
525
526   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
527     ac_prev=sbindir ;;
528   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
529   | --sbi=* | --sb=*)
530     sbindir=$ac_optarg ;;
531
532   -sharedstatedir | --sharedstatedir | --sharedstatedi \
533   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
534   | --sharedst | --shareds | --shared | --share | --shar \
535   | --sha | --sh)
536     ac_prev=sharedstatedir ;;
537   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
538   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
539   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
540   | --sha=* | --sh=*)
541     sharedstatedir=$ac_optarg ;;
542
543   -site | --site | --sit)
544     ac_prev=site ;;
545   -site=* | --site=* | --sit=*)
546     site=$ac_optarg ;;
547
548   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
549     ac_prev=srcdir ;;
550   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
551     srcdir=$ac_optarg ;;
552
553   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
554   | --syscon | --sysco | --sysc | --sys | --sy)
555     ac_prev=sysconfdir ;;
556   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
557   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
558     sysconfdir=$ac_optarg ;;
559
560   -target | --target | --targe | --targ | --tar | --ta | --t)
561     ac_prev=target_alias ;;
562   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
563     target_alias=$ac_optarg ;;
564
565   -v | -verbose | --verbose | --verbos | --verbo | --verb)
566     verbose=yes ;;
567
568   -version | --version | --versio | --versi | --vers | -V)
569     ac_init_version=: ;;
570
571   -with-* | --with-*)
572     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
573     # Reject names that are not valid shell variable names.
574     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
575       { echo "$as_me: error: invalid package name: $ac_package" >&2
576    { (exit 1); exit 1; }; }
577     ac_package=`echo $ac_package| sed 's/-/_/g'`
578     case $ac_option in
579       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
580       *) ac_optarg=yes ;;
581     esac
582     eval "with_$ac_package='$ac_optarg'" ;;
583
584   -without-* | --without-*)
585     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
586     # Reject names that are not valid shell variable names.
587     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
588       { echo "$as_me: error: invalid package name: $ac_package" >&2
589    { (exit 1); exit 1; }; }
590     ac_package=`echo $ac_package | sed 's/-/_/g'`
591     eval "with_$ac_package=no" ;;
592
593   --x)
594     # Obsolete; use --with-x.
595     with_x=yes ;;
596
597   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
598   | --x-incl | --x-inc | --x-in | --x-i)
599     ac_prev=x_includes ;;
600   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
601   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
602     x_includes=$ac_optarg ;;
603
604   -x-libraries | --x-libraries | --x-librarie | --x-librari \
605   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
606     ac_prev=x_libraries ;;
607   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
608   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
609     x_libraries=$ac_optarg ;;
610
611   -*) { echo "$as_me: error: unrecognized option: $ac_option
612 Try \`$0 --help' for more information." >&2
613    { (exit 1); exit 1; }; }
614     ;;
615
616   *=*)
617     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
618     # Reject names that are not valid shell variable names.
619     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
620       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
621    { (exit 1); exit 1; }; }
622     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
623     eval "$ac_envvar='$ac_optarg'"
624     export $ac_envvar ;;
625
626   *)
627     # FIXME: should be removed in autoconf 3.0.
628     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
629     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
630       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
631     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
632     ;;
633
634   esac
635 done
636
637 if test -n "$ac_prev"; then
638   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
639   { echo "$as_me: error: missing argument to $ac_option" >&2
640    { (exit 1); exit 1; }; }
641 fi
642
643 # Be sure to have absolute paths.
644 for ac_var in exec_prefix prefix
645 do
646   eval ac_val=$`echo $ac_var`
647   case $ac_val in
648     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
649     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
650    { (exit 1); exit 1; }; };;
651   esac
652 done
653
654 # Be sure to have absolute paths.
655 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
656               localstatedir libdir includedir oldincludedir infodir mandir
657 do
658   eval ac_val=$`echo $ac_var`
659   case $ac_val in
660     [\\/$]* | ?:[\\/]* ) ;;
661     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
662    { (exit 1); exit 1; }; };;
663   esac
664 done
665
666 # There might be people who depend on the old broken behavior: `$host'
667 # used to hold the argument of --host etc.
668 # FIXME: To remove some day.
669 build=$build_alias
670 host=$host_alias
671 target=$target_alias
672
673 # FIXME: To remove some day.
674 if test "x$host_alias" != x; then
675   if test "x$build_alias" = x; then
676     cross_compiling=maybe
677     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
678     If a cross compiler is detected then cross compile mode will be used." >&2
679   elif test "x$build_alias" != "x$host_alias"; then
680     cross_compiling=yes
681   fi
682 fi
683
684 ac_tool_prefix=
685 test -n "$host_alias" && ac_tool_prefix=$host_alias-
686
687 test "$silent" = yes && exec 6>/dev/null
688
689
690 # Find the source files, if location was not specified.
691 if test -z "$srcdir"; then
692   ac_srcdir_defaulted=yes
693   # Try the directory containing this script, then its parent.
694   ac_confdir=`(dirname "$0") 2>/dev/null ||
695 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
696          X"$0" : 'X\(//\)[^/]' \| \
697          X"$0" : 'X\(//\)$' \| \
698          X"$0" : 'X\(/\)' \| \
699          .     : '\(.\)' 2>/dev/null ||
700 echo X"$0" |
701     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
702           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
703           /^X\(\/\/\)$/{ s//\1/; q; }
704           /^X\(\/\).*/{ s//\1/; q; }
705           s/.*/./; q'`
706   srcdir=$ac_confdir
707   if test ! -r $srcdir/$ac_unique_file; then
708     srcdir=..
709   fi
710 else
711   ac_srcdir_defaulted=no
712 fi
713 if test ! -r $srcdir/$ac_unique_file; then
714   if test "$ac_srcdir_defaulted" = yes; then
715     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
716    { (exit 1); exit 1; }; }
717   else
718     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
719    { (exit 1); exit 1; }; }
720   fi
721 fi
722 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
723 ac_env_build_alias_set=${build_alias+set}
724 ac_env_build_alias_value=$build_alias
725 ac_cv_env_build_alias_set=${build_alias+set}
726 ac_cv_env_build_alias_value=$build_alias
727 ac_env_host_alias_set=${host_alias+set}
728 ac_env_host_alias_value=$host_alias
729 ac_cv_env_host_alias_set=${host_alias+set}
730 ac_cv_env_host_alias_value=$host_alias
731 ac_env_target_alias_set=${target_alias+set}
732 ac_env_target_alias_value=$target_alias
733 ac_cv_env_target_alias_set=${target_alias+set}
734 ac_cv_env_target_alias_value=$target_alias
735 ac_env_CC_set=${CC+set}
736 ac_env_CC_value=$CC
737 ac_cv_env_CC_set=${CC+set}
738 ac_cv_env_CC_value=$CC
739 ac_env_CFLAGS_set=${CFLAGS+set}
740 ac_env_CFLAGS_value=$CFLAGS
741 ac_cv_env_CFLAGS_set=${CFLAGS+set}
742 ac_cv_env_CFLAGS_value=$CFLAGS
743 ac_env_LDFLAGS_set=${LDFLAGS+set}
744 ac_env_LDFLAGS_value=$LDFLAGS
745 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
746 ac_cv_env_LDFLAGS_value=$LDFLAGS
747 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
748 ac_env_CPPFLAGS_value=$CPPFLAGS
749 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
750 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
751 ac_env_CPP_set=${CPP+set}
752 ac_env_CPP_value=$CPP
753 ac_cv_env_CPP_set=${CPP+set}
754 ac_cv_env_CPP_value=$CPP
755
756 #
757 # Report the --help message.
758 #
759 if test "$ac_init_help" = "long"; then
760   # Omit some internal or obsolete options to make the list less imposing.
761   # This message is too long to be a string in the A/UX 3.1 sh.
762   cat <<_ACEOF
763 \`configure' configures Wine 20020605 to adapt to many kinds of systems.
764
765 Usage: $0 [OPTION]... [VAR=VALUE]...
766
767 To assign environment variables (e.g., CC, CFLAGS...), specify them as
768 VAR=VALUE.  See below for descriptions of some of the useful variables.
769
770 Defaults for the options are specified in brackets.
771
772 Configuration:
773   -h, --help              display this help and exit
774       --help=short        display options specific to this package
775       --help=recursive    display the short help of all the included packages
776   -V, --version           display version information and exit
777   -q, --quiet, --silent   do not print \`checking...' messages
778       --cache-file=FILE   cache test results in FILE [disabled]
779   -C, --config-cache      alias for \`--cache-file=config.cache'
780   -n, --no-create         do not create output files
781       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
782
783 _ACEOF
784
785   cat <<_ACEOF
786 Installation directories:
787   --prefix=PREFIX         install architecture-independent files in PREFIX
788                           [$ac_default_prefix]
789   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
790                           [PREFIX]
791
792 By default, \`make install' will install all the files in
793 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
794 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
795 for instance \`--prefix=\$HOME'.
796
797 For better control, use the options below.
798
799 Fine tuning of the installation directories:
800   --bindir=DIR           user executables [EPREFIX/bin]
801   --sbindir=DIR          system admin executables [EPREFIX/sbin]
802   --libexecdir=DIR       program executables [EPREFIX/libexec]
803   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
804   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
805   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
806   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
807   --libdir=DIR           object code libraries [EPREFIX/lib]
808   --includedir=DIR       C header files [PREFIX/include]
809   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
810   --infodir=DIR          info documentation [PREFIX/info]
811   --mandir=DIR           man documentation [PREFIX/man]
812 _ACEOF
813
814   cat <<\_ACEOF
815
816 X features:
817   --x-includes=DIR    X include files are in DIR
818   --x-libraries=DIR   X library files are in DIR
819
820 System types:
821   --build=BUILD     configure for building on BUILD [guessed]
822   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
823 _ACEOF
824 fi
825
826 if test -n "$ac_init_help"; then
827   case $ac_init_help in
828      short | recursive ) echo "Configuration of Wine 20020605:";;
829    esac
830   cat <<\_ACEOF
831
832 Optional Features:
833   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
834   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
835   --disable-debug         compile out all debugging messages
836   --disable-trace         compile out TRACE messages
837   --enable-opengl         force usage of OpenGL even if the latter is
838                           thread-safe via pthread
839
840 Optional Packages:
841   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
842   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
843   --without-curses        do not use curses
844   --with-wine-tools=<dir> use Wine tools from directory <dir>
845   --with-x                use the X Window System
846
847 Some influential environment variables:
848   CC          C compiler command
849   CFLAGS      C compiler flags
850   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
851               nonstandard directory <lib dir>
852   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
853               headers in a nonstandard directory <include dir>
854   CPP         C preprocessor
855
856 Use these variables to override the choices made by `configure' or to help
857 it to find libraries and programs with nonstandard names/locations.
858
859 _ACEOF
860 fi
861
862 if test "$ac_init_help" = "recursive"; then
863   # If there are subdirs, report their specific --help.
864   ac_popdir=`pwd`
865   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
866     test -d $ac_dir || continue
867     ac_builddir=.
868
869 if test "$ac_dir" != .; then
870   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
871   # A "../" for each directory in $ac_dir_suffix.
872   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
873 else
874   ac_dir_suffix= ac_top_builddir=
875 fi
876
877 case $srcdir in
878   .)  # No --srcdir option.  We are building in place.
879     ac_srcdir=.
880     if test -z "$ac_top_builddir"; then
881        ac_top_srcdir=.
882     else
883        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
884     fi ;;
885   [\\/]* | ?:[\\/]* )  # Absolute path.
886     ac_srcdir=$srcdir$ac_dir_suffix;
887     ac_top_srcdir=$srcdir ;;
888   *) # Relative path.
889     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
890     ac_top_srcdir=$ac_top_builddir$srcdir ;;
891 esac
892 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
893 # absolute.
894 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
895 ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
896 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
897 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
898
899     cd $ac_dir
900     # Check for guested configure; otherwise get Cygnus style configure.
901     if test -f $ac_srcdir/configure.gnu; then
902       echo
903       $SHELL $ac_srcdir/configure.gnu  --help=recursive
904     elif test -f $ac_srcdir/configure; then
905       echo
906       $SHELL $ac_srcdir/configure  --help=recursive
907     elif test -f $ac_srcdir/configure.ac ||
908            test -f $ac_srcdir/configure.in; then
909       echo
910       $ac_configure --help
911     else
912       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
913     fi
914     cd $ac_popdir
915   done
916 fi
917
918 test -n "$ac_init_help" && exit 0
919 if $ac_init_version; then
920   cat <<\_ACEOF
921 Wine configure 20020605
922 generated by GNU Autoconf 2.53
923
924 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
925 Free Software Foundation, Inc.
926 This configure script is free software; the Free Software Foundation
927 gives unlimited permission to copy, distribute and modify it.
928 _ACEOF
929   exit 0
930 fi
931 exec 5>config.log
932 cat >&5 <<_ACEOF
933 This file contains any messages produced by compilers while
934 running configure, to aid debugging if configure makes a mistake.
935
936 It was created by Wine $as_me 20020605, which was
937 generated by GNU Autoconf 2.53.  Invocation command line was
938
939   $ $0 $@
940
941 _ACEOF
942 {
943 cat <<_ASUNAME
944 ## --------- ##
945 ## Platform. ##
946 ## --------- ##
947
948 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
949 uname -m = `(uname -m) 2>/dev/null || echo unknown`
950 uname -r = `(uname -r) 2>/dev/null || echo unknown`
951 uname -s = `(uname -s) 2>/dev/null || echo unknown`
952 uname -v = `(uname -v) 2>/dev/null || echo unknown`
953
954 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
955 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
956
957 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
958 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
959 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
960 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
961 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
962 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
963 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
964
965 _ASUNAME
966
967 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
968 for as_dir in $PATH
969 do
970   IFS=$as_save_IFS
971   test -z "$as_dir" && as_dir=.
972   echo "PATH: $as_dir"
973 done
974
975 } >&5
976
977 cat >&5 <<_ACEOF
978
979
980 ## ----------- ##
981 ## Core tests. ##
982 ## ----------- ##
983
984 _ACEOF
985
986
987 # Keep a trace of the command line.
988 # Strip out --no-create and --no-recursion so they do not pile up.
989 # Also quote any args containing shell meta-characters.
990 ac_configure_args=
991 ac_sep=
992 for ac_arg
993 do
994   case $ac_arg in
995   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
996   | --no-cr | --no-c | -n ) continue ;;
997   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
998   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
999     continue ;;
1000   *" "*|*"      "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1001     ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1002   esac
1003   case " $ac_configure_args " in
1004     *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1005     *) ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1006        ac_sep=" " ;;
1007   esac
1008   # Get rid of the leading space.
1009 done
1010
1011 # When interrupted or exit'd, cleanup temporary files, and complete
1012 # config.log.  We remove comments because anyway the quotes in there
1013 # would cause problems or look ugly.
1014 # WARNING: Be sure not to use single quotes in there, as some shells,
1015 # such as our DU 5.0 friend, will then `close' the trap.
1016 trap 'exit_status=$?
1017   # Save into config.log some information that might help in debugging.
1018   {
1019     echo
1020     cat <<\_ASBOX
1021 ## ---------------- ##
1022 ## Cache variables. ##
1023 ## ---------------- ##
1024 _ASBOX
1025     echo
1026     # The following way of writing the cache mishandles newlines in values,
1027 {
1028   (set) 2>&1 |
1029     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1030     *ac_space=\ *)
1031       sed -n \
1032         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1033           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1034       ;;
1035     *)
1036       sed -n \
1037         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1038       ;;
1039     esac;
1040 }
1041     echo
1042     if test -s confdefs.h; then
1043       cat <<\_ASBOX
1044 ## ----------- ##
1045 ## confdefs.h. ##
1046 ## ----------- ##
1047 _ASBOX
1048       echo
1049       sed "/^$/d" confdefs.h
1050       echo
1051     fi
1052     test "$ac_signal" != 0 &&
1053       echo "$as_me: caught signal $ac_signal"
1054     echo "$as_me: exit $exit_status"
1055   } >&5
1056   rm -f core core.* *.core &&
1057   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1058     exit $exit_status
1059      ' 0
1060 for ac_signal in 1 2 13 15; do
1061   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1062 done
1063 ac_signal=0
1064
1065 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1066 rm -rf conftest* confdefs.h
1067 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1068 echo >confdefs.h
1069
1070 # Predefined preprocessor variables.
1071
1072 cat >>confdefs.h <<_ACEOF
1073 #define PACKAGE_NAME "$PACKAGE_NAME"
1074 _ACEOF
1075
1076
1077 cat >>confdefs.h <<_ACEOF
1078 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1079 _ACEOF
1080
1081
1082 cat >>confdefs.h <<_ACEOF
1083 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1084 _ACEOF
1085
1086
1087 cat >>confdefs.h <<_ACEOF
1088 #define PACKAGE_STRING "$PACKAGE_STRING"
1089 _ACEOF
1090
1091
1092 cat >>confdefs.h <<_ACEOF
1093 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1094 _ACEOF
1095
1096
1097 # Let the site file select an alternate cache file if it wants to.
1098 # Prefer explicitly selected file to automatically selected ones.
1099 if test -z "$CONFIG_SITE"; then
1100   if test "x$prefix" != xNONE; then
1101     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1102   else
1103     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1104   fi
1105 fi
1106 for ac_site_file in $CONFIG_SITE; do
1107   if test -r "$ac_site_file"; then
1108     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1109 echo "$as_me: loading site script $ac_site_file" >&6;}
1110     sed 's/^/| /' "$ac_site_file" >&5
1111     . "$ac_site_file"
1112   fi
1113 done
1114
1115 if test -r "$cache_file"; then
1116   # Some versions of bash will fail to source /dev/null (special
1117   # files actually), so we avoid doing that.
1118   if test -f "$cache_file"; then
1119     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1120 echo "$as_me: loading cache $cache_file" >&6;}
1121     case $cache_file in
1122       [\\/]* | ?:[\\/]* ) . $cache_file;;
1123       *)                      . ./$cache_file;;
1124     esac
1125   fi
1126 else
1127   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1128 echo "$as_me: creating cache $cache_file" >&6;}
1129   >$cache_file
1130 fi
1131
1132 # Check that the precious variables saved in the cache have kept the same
1133 # value.
1134 ac_cache_corrupted=false
1135 for ac_var in `(set) 2>&1 |
1136                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1137   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1138   eval ac_new_set=\$ac_env_${ac_var}_set
1139   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1140   eval ac_new_val="\$ac_env_${ac_var}_value"
1141   case $ac_old_set,$ac_new_set in
1142     set,)
1143       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1144 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1145       ac_cache_corrupted=: ;;
1146     ,set)
1147       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1148 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1149       ac_cache_corrupted=: ;;
1150     ,);;
1151     *)
1152       if test "x$ac_old_val" != "x$ac_new_val"; then
1153         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1154 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1155         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1156 echo "$as_me:   former value:  $ac_old_val" >&2;}
1157         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1158 echo "$as_me:   current value: $ac_new_val" >&2;}
1159         ac_cache_corrupted=:
1160       fi;;
1161   esac
1162   # Pass precious variables to config.status.
1163   if test "$ac_new_set" = set; then
1164     case $ac_new_val in
1165     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1166       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1167     *) ac_arg=$ac_var=$ac_new_val ;;
1168     esac
1169     case " $ac_configure_args " in
1170       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1171       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1172     esac
1173   fi
1174 done
1175 if $ac_cache_corrupted; then
1176   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1177 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1178   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1179 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1180    { (exit 1); exit 1; }; }
1181 fi
1182
1183 ac_ext=c
1184 ac_cpp='$CPP $CPPFLAGS'
1185 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1186 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1187 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215 ac_config_headers="$ac_config_headers include/config.h"
1216
1217 ac_aux_dir=
1218 for ac_dir in tools $srcdir/tools; do
1219   if test -f $ac_dir/install-sh; then
1220     ac_aux_dir=$ac_dir
1221     ac_install_sh="$ac_aux_dir/install-sh -c"
1222     break
1223   elif test -f $ac_dir/install.sh; then
1224     ac_aux_dir=$ac_dir
1225     ac_install_sh="$ac_aux_dir/install.sh -c"
1226     break
1227   elif test -f $ac_dir/shtool; then
1228     ac_aux_dir=$ac_dir
1229     ac_install_sh="$ac_aux_dir/shtool install -c"
1230     break
1231   fi
1232 done
1233 if test -z "$ac_aux_dir"; then
1234   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in tools $srcdir/tools" >&5
1235 echo "$as_me: error: cannot find install-sh or install.sh in tools $srcdir/tools" >&2;}
1236    { (exit 1); exit 1; }; }
1237 fi
1238 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1239 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1240 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1241
1242
1243
1244 LIBEXT=so       # library type .so or .a
1245
1246 # Check whether --enable-debug or --disable-debug was given.
1247 if test "${enable_debug+set}" = set; then
1248   enableval="$enable_debug"
1249
1250 fi;
1251 # Check whether --enable-trace or --disable-trace was given.
1252 if test "${enable_trace+set}" = set; then
1253   enableval="$enable_trace"
1254
1255 fi;
1256 # Check whether --enable-opengl or --disable-opengl was given.
1257 if test "${enable_opengl+set}" = set; then
1258   enableval="$enable_opengl"
1259
1260 fi;
1261
1262 # Check whether --with-curses or --without-curses was given.
1263 if test "${with_curses+set}" = set; then
1264   withval="$with_curses"
1265
1266 fi;
1267
1268 # Check whether --with-wine-tools or --without-wine-tools was given.
1269 if test "${with_wine_tools+set}" = set; then
1270   withval="$with_wine_tools"
1271
1272 fi;
1273
1274
1275 if test "x$enable_debug" = "xno"
1276 then
1277
1278 cat >>confdefs.h <<\_ACEOF
1279 #define NO_DEBUG_MSGS 1
1280 _ACEOF
1281
1282 fi
1283 if test "x$enable_trace" = "xno" -o "x$enable_debug" = "xno"
1284 then
1285
1286 cat >>confdefs.h <<\_ACEOF
1287 #define NO_TRACE_MSGS 1
1288 _ACEOF
1289
1290 fi
1291
1292
1293 # Make sure we can run config.sub.
1294 $ac_config_sub sun4 >/dev/null 2>&1 ||
1295   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1296 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1297    { (exit 1); exit 1; }; }
1298
1299 echo "$as_me:$LINENO: checking build system type" >&5
1300 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1301 if test "${ac_cv_build+set}" = set; then
1302   echo $ECHO_N "(cached) $ECHO_C" >&6
1303 else
1304   ac_cv_build_alias=$build_alias
1305 test -z "$ac_cv_build_alias" &&
1306   ac_cv_build_alias=`$ac_config_guess`
1307 test -z "$ac_cv_build_alias" &&
1308   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1309 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1310    { (exit 1); exit 1; }; }
1311 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1312   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1313 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1314    { (exit 1); exit 1; }; }
1315
1316 fi
1317 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1318 echo "${ECHO_T}$ac_cv_build" >&6
1319 build=$ac_cv_build
1320 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1321 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1322 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1323
1324
1325 echo "$as_me:$LINENO: checking host system type" >&5
1326 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1327 if test "${ac_cv_host+set}" = set; then
1328   echo $ECHO_N "(cached) $ECHO_C" >&6
1329 else
1330   ac_cv_host_alias=$host_alias
1331 test -z "$ac_cv_host_alias" &&
1332   ac_cv_host_alias=$ac_cv_build_alias
1333 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1334   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1335 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1336    { (exit 1); exit 1; }; }
1337
1338 fi
1339 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1340 echo "${ECHO_T}$ac_cv_host" >&6
1341 host=$ac_cv_host
1342 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1343 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1344 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1345
1346
1347 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \${MAKE}" >&5
1348 echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
1349 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
1350 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1351   echo $ECHO_N "(cached) $ECHO_C" >&6
1352 else
1353   cat >conftest.make <<\_ACEOF
1354 all:
1355         @echo 'ac_maketemp="${MAKE}"'
1356 _ACEOF
1357 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1358 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1359 if test -n "$ac_maketemp"; then
1360   eval ac_cv_prog_make_${ac_make}_set=yes
1361 else
1362   eval ac_cv_prog_make_${ac_make}_set=no
1363 fi
1364 rm -f conftest.make
1365 fi
1366 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1367   echo "$as_me:$LINENO: result: yes" >&5
1368 echo "${ECHO_T}yes" >&6
1369   SET_MAKE=
1370 else
1371   echo "$as_me:$LINENO: result: no" >&5
1372 echo "${ECHO_T}no" >&6
1373   SET_MAKE="MAKE=${MAKE-make}"
1374 fi
1375
1376 ac_ext=c
1377 ac_cpp='$CPP $CPPFLAGS'
1378 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1379 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1380 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1381 if test -n "$ac_tool_prefix"; then
1382   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1383 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1384 echo "$as_me:$LINENO: checking for $ac_word" >&5
1385 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1386 if test "${ac_cv_prog_CC+set}" = set; then
1387   echo $ECHO_N "(cached) $ECHO_C" >&6
1388 else
1389   if test -n "$CC"; then
1390   ac_cv_prog_CC="$CC" # Let the user override the test.
1391 else
1392 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1393 for as_dir in $PATH
1394 do
1395   IFS=$as_save_IFS
1396   test -z "$as_dir" && as_dir=.
1397   for ac_exec_ext in '' $ac_executable_extensions; do
1398   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1399     ac_cv_prog_CC="${ac_tool_prefix}gcc"
1400     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1401     break 2
1402   fi
1403 done
1404 done
1405
1406 fi
1407 fi
1408 CC=$ac_cv_prog_CC
1409 if test -n "$CC"; then
1410   echo "$as_me:$LINENO: result: $CC" >&5
1411 echo "${ECHO_T}$CC" >&6
1412 else
1413   echo "$as_me:$LINENO: result: no" >&5
1414 echo "${ECHO_T}no" >&6
1415 fi
1416
1417 fi
1418 if test -z "$ac_cv_prog_CC"; then
1419   ac_ct_CC=$CC
1420   # Extract the first word of "gcc", so it can be a program name with args.
1421 set dummy gcc; ac_word=$2
1422 echo "$as_me:$LINENO: checking for $ac_word" >&5
1423 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1424 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1425   echo $ECHO_N "(cached) $ECHO_C" >&6
1426 else
1427   if test -n "$ac_ct_CC"; then
1428   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1429 else
1430 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1431 for as_dir in $PATH
1432 do
1433   IFS=$as_save_IFS
1434   test -z "$as_dir" && as_dir=.
1435   for ac_exec_ext in '' $ac_executable_extensions; do
1436   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1437     ac_cv_prog_ac_ct_CC="gcc"
1438     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1439     break 2
1440   fi
1441 done
1442 done
1443
1444 fi
1445 fi
1446 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1447 if test -n "$ac_ct_CC"; then
1448   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1449 echo "${ECHO_T}$ac_ct_CC" >&6
1450 else
1451   echo "$as_me:$LINENO: result: no" >&5
1452 echo "${ECHO_T}no" >&6
1453 fi
1454
1455   CC=$ac_ct_CC
1456 else
1457   CC="$ac_cv_prog_CC"
1458 fi
1459
1460 if test -z "$CC"; then
1461   if test -n "$ac_tool_prefix"; then
1462   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1463 set dummy ${ac_tool_prefix}cc; ac_word=$2
1464 echo "$as_me:$LINENO: checking for $ac_word" >&5
1465 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1466 if test "${ac_cv_prog_CC+set}" = set; then
1467   echo $ECHO_N "(cached) $ECHO_C" >&6
1468 else
1469   if test -n "$CC"; then
1470   ac_cv_prog_CC="$CC" # Let the user override the test.
1471 else
1472 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1473 for as_dir in $PATH
1474 do
1475   IFS=$as_save_IFS
1476   test -z "$as_dir" && as_dir=.
1477   for ac_exec_ext in '' $ac_executable_extensions; do
1478   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1479     ac_cv_prog_CC="${ac_tool_prefix}cc"
1480     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1481     break 2
1482   fi
1483 done
1484 done
1485
1486 fi
1487 fi
1488 CC=$ac_cv_prog_CC
1489 if test -n "$CC"; then
1490   echo "$as_me:$LINENO: result: $CC" >&5
1491 echo "${ECHO_T}$CC" >&6
1492 else
1493   echo "$as_me:$LINENO: result: no" >&5
1494 echo "${ECHO_T}no" >&6
1495 fi
1496
1497 fi
1498 if test -z "$ac_cv_prog_CC"; then
1499   ac_ct_CC=$CC
1500   # Extract the first word of "cc", so it can be a program name with args.
1501 set dummy cc; ac_word=$2
1502 echo "$as_me:$LINENO: checking for $ac_word" >&5
1503 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1504 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1505   echo $ECHO_N "(cached) $ECHO_C" >&6
1506 else
1507   if test -n "$ac_ct_CC"; then
1508   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1509 else
1510 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1511 for as_dir in $PATH
1512 do
1513   IFS=$as_save_IFS
1514   test -z "$as_dir" && as_dir=.
1515   for ac_exec_ext in '' $ac_executable_extensions; do
1516   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1517     ac_cv_prog_ac_ct_CC="cc"
1518     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1519     break 2
1520   fi
1521 done
1522 done
1523
1524 fi
1525 fi
1526 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1527 if test -n "$ac_ct_CC"; then
1528   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1529 echo "${ECHO_T}$ac_ct_CC" >&6
1530 else
1531   echo "$as_me:$LINENO: result: no" >&5
1532 echo "${ECHO_T}no" >&6
1533 fi
1534
1535   CC=$ac_ct_CC
1536 else
1537   CC="$ac_cv_prog_CC"
1538 fi
1539
1540 fi
1541 if test -z "$CC"; then
1542   # Extract the first word of "cc", so it can be a program name with args.
1543 set dummy cc; ac_word=$2
1544 echo "$as_me:$LINENO: checking for $ac_word" >&5
1545 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1546 if test "${ac_cv_prog_CC+set}" = set; then
1547   echo $ECHO_N "(cached) $ECHO_C" >&6
1548 else
1549   if test -n "$CC"; then
1550   ac_cv_prog_CC="$CC" # Let the user override the test.
1551 else
1552   ac_prog_rejected=no
1553 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1554 for as_dir in $PATH
1555 do
1556   IFS=$as_save_IFS
1557   test -z "$as_dir" && as_dir=.
1558   for ac_exec_ext in '' $ac_executable_extensions; do
1559   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1560     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1561        ac_prog_rejected=yes
1562        continue
1563      fi
1564     ac_cv_prog_CC="cc"
1565     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1566     break 2
1567   fi
1568 done
1569 done
1570
1571 if test $ac_prog_rejected = yes; then
1572   # We found a bogon in the path, so make sure we never use it.
1573   set dummy $ac_cv_prog_CC
1574   shift
1575   if test $# != 0; then
1576     # We chose a different compiler from the bogus one.
1577     # However, it has the same basename, so the bogon will be chosen
1578     # first if we set CC to just the basename; use the full file name.
1579     shift
1580     set dummy "$as_dir/$ac_word" ${1+"$@"}
1581     shift
1582     ac_cv_prog_CC="$@"
1583   fi
1584 fi
1585 fi
1586 fi
1587 CC=$ac_cv_prog_CC
1588 if test -n "$CC"; then
1589   echo "$as_me:$LINENO: result: $CC" >&5
1590 echo "${ECHO_T}$CC" >&6
1591 else
1592   echo "$as_me:$LINENO: result: no" >&5
1593 echo "${ECHO_T}no" >&6
1594 fi
1595
1596 fi
1597 if test -z "$CC"; then
1598   if test -n "$ac_tool_prefix"; then
1599   for ac_prog in cl
1600   do
1601     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1602 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1603 echo "$as_me:$LINENO: checking for $ac_word" >&5
1604 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1605 if test "${ac_cv_prog_CC+set}" = set; then
1606   echo $ECHO_N "(cached) $ECHO_C" >&6
1607 else
1608   if test -n "$CC"; then
1609   ac_cv_prog_CC="$CC" # Let the user override the test.
1610 else
1611 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1612 for as_dir in $PATH
1613 do
1614   IFS=$as_save_IFS
1615   test -z "$as_dir" && as_dir=.
1616   for ac_exec_ext in '' $ac_executable_extensions; do
1617   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1618     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1619     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1620     break 2
1621   fi
1622 done
1623 done
1624
1625 fi
1626 fi
1627 CC=$ac_cv_prog_CC
1628 if test -n "$CC"; then
1629   echo "$as_me:$LINENO: result: $CC" >&5
1630 echo "${ECHO_T}$CC" >&6
1631 else
1632   echo "$as_me:$LINENO: result: no" >&5
1633 echo "${ECHO_T}no" >&6
1634 fi
1635
1636     test -n "$CC" && break
1637   done
1638 fi
1639 if test -z "$CC"; then
1640   ac_ct_CC=$CC
1641   for ac_prog in cl
1642 do
1643   # Extract the first word of "$ac_prog", so it can be a program name with args.
1644 set dummy $ac_prog; ac_word=$2
1645 echo "$as_me:$LINENO: checking for $ac_word" >&5
1646 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1647 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1648   echo $ECHO_N "(cached) $ECHO_C" >&6
1649 else
1650   if test -n "$ac_ct_CC"; then
1651   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1652 else
1653 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1654 for as_dir in $PATH
1655 do
1656   IFS=$as_save_IFS
1657   test -z "$as_dir" && as_dir=.
1658   for ac_exec_ext in '' $ac_executable_extensions; do
1659   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1660     ac_cv_prog_ac_ct_CC="$ac_prog"
1661     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1662     break 2
1663   fi
1664 done
1665 done
1666
1667 fi
1668 fi
1669 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1670 if test -n "$ac_ct_CC"; then
1671   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1672 echo "${ECHO_T}$ac_ct_CC" >&6
1673 else
1674   echo "$as_me:$LINENO: result: no" >&5
1675 echo "${ECHO_T}no" >&6
1676 fi
1677
1678   test -n "$ac_ct_CC" && break
1679 done
1680
1681   CC=$ac_ct_CC
1682 fi
1683
1684 fi
1685
1686
1687 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH" >&5
1688 echo "$as_me: error: no acceptable C compiler found in \$PATH" >&2;}
1689    { (exit 1); exit 1; }; }
1690
1691 # Provide some information about the compiler.
1692 echo "$as_me:$LINENO:" \
1693      "checking for C compiler version" >&5
1694 ac_compiler=`set X $ac_compile; echo $2`
1695 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1696   (eval $ac_compiler --version </dev/null >&5) 2>&5
1697   ac_status=$?
1698   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1699   (exit $ac_status); }
1700 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1701   (eval $ac_compiler -v </dev/null >&5) 2>&5
1702   ac_status=$?
1703   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1704   (exit $ac_status); }
1705 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1706   (eval $ac_compiler -V </dev/null >&5) 2>&5
1707   ac_status=$?
1708   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1709   (exit $ac_status); }
1710
1711 cat >conftest.$ac_ext <<_ACEOF
1712 #line $LINENO "configure"
1713 #include "confdefs.h"
1714
1715 #ifdef F77_DUMMY_MAIN
1716 #  ifdef __cplusplus
1717      extern "C"
1718 #  endif
1719    int F77_DUMMY_MAIN() { return 1; }
1720 #endif
1721 int
1722 main ()
1723 {
1724
1725   ;
1726   return 0;
1727 }
1728 _ACEOF
1729 ac_clean_files_save=$ac_clean_files
1730 ac_clean_files="$ac_clean_files a.out a.exe"
1731 # Try to create an executable without -o first, disregard a.out.
1732 # It will help us diagnose broken compilers, and finding out an intuition
1733 # of exeext.
1734 echo "$as_me:$LINENO: checking for C compiler default output" >&5
1735 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1736 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1737 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1738   (eval $ac_link_default) 2>&5
1739   ac_status=$?
1740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1741   (exit $ac_status); }; then
1742   # Find the output, starting from the most likely.  This scheme is
1743 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1744 # resort.
1745
1746 # Be careful to initialize this variable, since it used to be cached.
1747 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1748 ac_cv_exeext=
1749 for ac_file in `ls a_out.exe a.exe conftest.exe 2>/dev/null;
1750                 ls a.out conftest 2>/dev/null;
1751                 ls a.* conftest.* 2>/dev/null`; do
1752   case $ac_file in
1753     *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb | *.xSYM ) ;;
1754     a.out ) # We found the default executable, but exeext='' is most
1755             # certainly right.
1756             break;;
1757     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1758           # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
1759           export ac_cv_exeext
1760           break;;
1761     * ) break;;
1762   esac
1763 done
1764 else
1765   echo "$as_me: failed program was:" >&5
1766 cat conftest.$ac_ext >&5
1767 { { echo "$as_me:$LINENO: error: C compiler cannot create executables" >&5
1768 echo "$as_me: error: C compiler cannot create executables" >&2;}
1769    { (exit 77); exit 77; }; }
1770 fi
1771
1772 ac_exeext=$ac_cv_exeext
1773 echo "$as_me:$LINENO: result: $ac_file" >&5
1774 echo "${ECHO_T}$ac_file" >&6
1775
1776 # Check the compiler produces executables we can run.  If not, either
1777 # the compiler is broken, or we cross compile.
1778 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1779 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1780 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1781 # If not cross compiling, check that we can run a simple program.
1782 if test "$cross_compiling" != yes; then
1783   if { ac_try='./$ac_file'
1784   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1785   (eval $ac_try) 2>&5
1786   ac_status=$?
1787   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1788   (exit $ac_status); }; }; then
1789     cross_compiling=no
1790   else
1791     if test "$cross_compiling" = maybe; then
1792         cross_compiling=yes
1793     else
1794         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1795 If you meant to cross compile, use \`--host'." >&5
1796 echo "$as_me: error: cannot run C compiled programs.
1797 If you meant to cross compile, use \`--host'." >&2;}
1798    { (exit 1); exit 1; }; }
1799     fi
1800   fi
1801 fi
1802 echo "$as_me:$LINENO: result: yes" >&5
1803 echo "${ECHO_T}yes" >&6
1804
1805 rm -f a.out a.exe conftest$ac_cv_exeext
1806 ac_clean_files=$ac_clean_files_save
1807 # Check the compiler produces executables we can run.  If not, either
1808 # the compiler is broken, or we cross compile.
1809 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1810 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1811 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1812 echo "${ECHO_T}$cross_compiling" >&6
1813
1814 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1815 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1816 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1817   (eval $ac_link) 2>&5
1818   ac_status=$?
1819   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1820   (exit $ac_status); }; then
1821   # If both `conftest.exe' and `conftest' are `present' (well, observable)
1822 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
1823 # work properly (i.e., refer to `conftest.exe'), while it won't with
1824 # `rm'.
1825 for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
1826   case $ac_file in
1827     *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
1828     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1829           export ac_cv_exeext
1830           break;;
1831     * ) break;;
1832   esac
1833 done
1834 else
1835   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link" >&5
1836 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link" >&2;}
1837    { (exit 1); exit 1; }; }
1838 fi
1839
1840 rm -f conftest$ac_cv_exeext
1841 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1842 echo "${ECHO_T}$ac_cv_exeext" >&6
1843
1844 rm -f conftest.$ac_ext
1845 EXEEXT=$ac_cv_exeext
1846 ac_exeext=$EXEEXT
1847 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1848 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1849 if test "${ac_cv_objext+set}" = set; then
1850   echo $ECHO_N "(cached) $ECHO_C" >&6
1851 else
1852   cat >conftest.$ac_ext <<_ACEOF
1853 #line $LINENO "configure"
1854 #include "confdefs.h"
1855
1856 #ifdef F77_DUMMY_MAIN
1857 #  ifdef __cplusplus
1858      extern "C"
1859 #  endif
1860    int F77_DUMMY_MAIN() { return 1; }
1861 #endif
1862 int
1863 main ()
1864 {
1865
1866   ;
1867   return 0;
1868 }
1869 _ACEOF
1870 rm -f conftest.o conftest.obj
1871 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1872   (eval $ac_compile) 2>&5
1873   ac_status=$?
1874   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1875   (exit $ac_status); }; then
1876   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1877   case $ac_file in
1878     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;;
1879     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1880        break;;
1881   esac
1882 done
1883 else
1884   echo "$as_me: failed program was:" >&5
1885 cat conftest.$ac_ext >&5
1886 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile" >&5
1887 echo "$as_me: error: cannot compute suffix of object files: cannot compile" >&2;}
1888    { (exit 1); exit 1; }; }
1889 fi
1890
1891 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1892 fi
1893 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1894 echo "${ECHO_T}$ac_cv_objext" >&6
1895 OBJEXT=$ac_cv_objext
1896 ac_objext=$OBJEXT
1897 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1898 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1899 if test "${ac_cv_c_compiler_gnu+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 #ifdef F77_DUMMY_MAIN
1907 #  ifdef __cplusplus
1908      extern "C"
1909 #  endif
1910    int F77_DUMMY_MAIN() { return 1; }
1911 #endif
1912 int
1913 main ()
1914 {
1915 #ifndef __GNUC__
1916        choke me
1917 #endif
1918
1919   ;
1920   return 0;
1921 }
1922 _ACEOF
1923 rm -f conftest.$ac_objext
1924 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1925   (eval $ac_compile) 2>&5
1926   ac_status=$?
1927   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1928   (exit $ac_status); } &&
1929          { ac_try='test -s conftest.$ac_objext'
1930   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1931   (eval $ac_try) 2>&5
1932   ac_status=$?
1933   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1934   (exit $ac_status); }; }; then
1935   ac_compiler_gnu=yes
1936 else
1937   echo "$as_me: failed program was:" >&5
1938 cat conftest.$ac_ext >&5
1939 ac_compiler_gnu=no
1940 fi
1941 rm -f conftest.$ac_objext conftest.$ac_ext
1942 ac_cv_c_compiler_gnu=$ac_compiler_gnu
1943
1944 fi
1945 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
1946 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1947 GCC=`test $ac_compiler_gnu = yes && echo yes`
1948 ac_test_CFLAGS=${CFLAGS+set}
1949 ac_save_CFLAGS=$CFLAGS
1950 CFLAGS="-g"
1951 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
1952 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1953 if test "${ac_cv_prog_cc_g+set}" = set; then
1954   echo $ECHO_N "(cached) $ECHO_C" >&6
1955 else
1956   cat >conftest.$ac_ext <<_ACEOF
1957 #line $LINENO "configure"
1958 #include "confdefs.h"
1959
1960 #ifdef F77_DUMMY_MAIN
1961 #  ifdef __cplusplus
1962      extern "C"
1963 #  endif
1964    int F77_DUMMY_MAIN() { return 1; }
1965 #endif
1966 int
1967 main ()
1968 {
1969
1970   ;
1971   return 0;
1972 }
1973 _ACEOF
1974 rm -f conftest.$ac_objext
1975 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1976   (eval $ac_compile) 2>&5
1977   ac_status=$?
1978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1979   (exit $ac_status); } &&
1980          { ac_try='test -s conftest.$ac_objext'
1981   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1982   (eval $ac_try) 2>&5
1983   ac_status=$?
1984   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1985   (exit $ac_status); }; }; then
1986   ac_cv_prog_cc_g=yes
1987 else
1988   echo "$as_me: failed program was:" >&5
1989 cat conftest.$ac_ext >&5
1990 ac_cv_prog_cc_g=no
1991 fi
1992 rm -f conftest.$ac_objext conftest.$ac_ext
1993 fi
1994 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
1995 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
1996 if test "$ac_test_CFLAGS" = set; then
1997   CFLAGS=$ac_save_CFLAGS
1998 elif test $ac_cv_prog_cc_g = yes; then
1999   if test "$GCC" = yes; then
2000     CFLAGS="-g -O2"
2001   else
2002     CFLAGS="-g"
2003   fi
2004 else
2005   if test "$GCC" = yes; then
2006     CFLAGS="-O2"
2007   else
2008     CFLAGS=
2009   fi
2010 fi
2011 # Some people use a C++ compiler to compile C.  Since we use `exit',
2012 # in C++ we need to declare it.  In case someone uses the same compiler
2013 # for both compiling C and C++ we need to have the C++ compiler decide
2014 # the declaration of exit, since it's the most demanding environment.
2015 cat >conftest.$ac_ext <<_ACEOF
2016 #ifndef __cplusplus
2017   choke me
2018 #endif
2019 _ACEOF
2020 rm -f conftest.$ac_objext
2021 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2022   (eval $ac_compile) 2>&5
2023   ac_status=$?
2024   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2025   (exit $ac_status); } &&
2026          { ac_try='test -s conftest.$ac_objext'
2027   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2028   (eval $ac_try) 2>&5
2029   ac_status=$?
2030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2031   (exit $ac_status); }; }; then
2032   for ac_declaration in \
2033    ''\
2034    '#include <stdlib.h>' \
2035    'extern "C" void std::exit (int) throw (); using std::exit;' \
2036    'extern "C" void std::exit (int); using std::exit;' \
2037    'extern "C" void exit (int) throw ();' \
2038    'extern "C" void exit (int);' \
2039    'void exit (int);'
2040 do
2041   cat >conftest.$ac_ext <<_ACEOF
2042 #line $LINENO "configure"
2043 #include "confdefs.h"
2044 #include <stdlib.h>
2045 $ac_declaration
2046 #ifdef F77_DUMMY_MAIN
2047 #  ifdef __cplusplus
2048      extern "C"
2049 #  endif
2050    int F77_DUMMY_MAIN() { return 1; }
2051 #endif
2052 int
2053 main ()
2054 {
2055 exit (42);
2056   ;
2057   return 0;
2058 }
2059 _ACEOF
2060 rm -f conftest.$ac_objext
2061 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2062   (eval $ac_compile) 2>&5
2063   ac_status=$?
2064   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2065   (exit $ac_status); } &&
2066          { ac_try='test -s conftest.$ac_objext'
2067   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2068   (eval $ac_try) 2>&5
2069   ac_status=$?
2070   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2071   (exit $ac_status); }; }; then
2072   :
2073 else
2074   echo "$as_me: failed program was:" >&5
2075 cat conftest.$ac_ext >&5
2076 continue
2077 fi
2078 rm -f conftest.$ac_objext conftest.$ac_ext
2079   cat >conftest.$ac_ext <<_ACEOF
2080 #line $LINENO "configure"
2081 #include "confdefs.h"
2082 $ac_declaration
2083 #ifdef F77_DUMMY_MAIN
2084 #  ifdef __cplusplus
2085      extern "C"
2086 #  endif
2087    int F77_DUMMY_MAIN() { return 1; }
2088 #endif
2089 int
2090 main ()
2091 {
2092 exit (42);
2093   ;
2094   return 0;
2095 }
2096 _ACEOF
2097 rm -f conftest.$ac_objext
2098 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2099   (eval $ac_compile) 2>&5
2100   ac_status=$?
2101   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2102   (exit $ac_status); } &&
2103          { ac_try='test -s conftest.$ac_objext'
2104   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2105   (eval $ac_try) 2>&5
2106   ac_status=$?
2107   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2108   (exit $ac_status); }; }; then
2109   break
2110 else
2111   echo "$as_me: failed program was:" >&5
2112 cat conftest.$ac_ext >&5
2113 fi
2114 rm -f conftest.$ac_objext conftest.$ac_ext
2115 done
2116 rm -f conftest*
2117 if test -n "$ac_declaration"; then
2118   echo '#ifdef __cplusplus' >>confdefs.h
2119   echo $ac_declaration      >>confdefs.h
2120   echo '#endif'             >>confdefs.h
2121 fi
2122
2123 else
2124   echo "$as_me: failed program was:" >&5
2125 cat conftest.$ac_ext >&5
2126 fi
2127 rm -f conftest.$ac_objext conftest.$ac_ext
2128 ac_ext=c
2129 ac_cpp='$CPP $CPPFLAGS'
2130 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2131 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2132 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2133
2134 ac_ext=c
2135 ac_cpp='$CPP $CPPFLAGS'
2136 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2137 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2138 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2139 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2140 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2141 # On Suns, sometimes $CPP names a directory.
2142 if test -n "$CPP" && test -d "$CPP"; then
2143   CPP=
2144 fi
2145 if test -z "$CPP"; then
2146   if test "${ac_cv_prog_CPP+set}" = set; then
2147   echo $ECHO_N "(cached) $ECHO_C" >&6
2148 else
2149       # Double quotes because CPP needs to be expanded
2150     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2151     do
2152       ac_preproc_ok=false
2153 for ac_c_preproc_warn_flag in '' yes
2154 do
2155   # Use a header file that comes with gcc, so configuring glibc
2156   # with a fresh cross-compiler works.
2157   # On the NeXT, cc -E runs the code through the compiler's parser,
2158   # not just through cpp. "Syntax error" is here to catch this case.
2159   cat >conftest.$ac_ext <<_ACEOF
2160 #line $LINENO "configure"
2161 #include "confdefs.h"
2162 #include <assert.h>
2163                      Syntax error
2164 _ACEOF
2165 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2166   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2167   ac_status=$?
2168   egrep -v '^ *\+' conftest.er1 >conftest.err
2169   rm -f conftest.er1
2170   cat conftest.err >&5
2171   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2172   (exit $ac_status); } >/dev/null; then
2173   if test -s conftest.err; then
2174     ac_cpp_err=$ac_c_preproc_warn_flag
2175   else
2176     ac_cpp_err=
2177   fi
2178 else
2179   ac_cpp_err=yes
2180 fi
2181 if test -z "$ac_cpp_err"; then
2182   :
2183 else
2184   echo "$as_me: failed program was:" >&5
2185   cat conftest.$ac_ext >&5
2186   # Broken: fails on valid input.
2187 continue
2188 fi
2189 rm -f conftest.err conftest.$ac_ext
2190
2191   # OK, works on sane cases.  Now check whether non-existent headers
2192   # can be detected and how.
2193   cat >conftest.$ac_ext <<_ACEOF
2194 #line $LINENO "configure"
2195 #include "confdefs.h"
2196 #include <ac_nonexistent.h>
2197 _ACEOF
2198 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2199   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2200   ac_status=$?
2201   egrep -v '^ *\+' conftest.er1 >conftest.err
2202   rm -f conftest.er1
2203   cat conftest.err >&5
2204   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2205   (exit $ac_status); } >/dev/null; then
2206   if test -s conftest.err; then
2207     ac_cpp_err=$ac_c_preproc_warn_flag
2208   else
2209     ac_cpp_err=
2210   fi
2211 else
2212   ac_cpp_err=yes
2213 fi
2214 if test -z "$ac_cpp_err"; then
2215   # Broken: success on invalid input.
2216 continue
2217 else
2218   echo "$as_me: failed program was:" >&5
2219   cat conftest.$ac_ext >&5
2220   # Passes both tests.
2221 ac_preproc_ok=:
2222 break
2223 fi
2224 rm -f conftest.err conftest.$ac_ext
2225
2226 done
2227 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2228 rm -f conftest.err conftest.$ac_ext
2229 if $ac_preproc_ok; then
2230   break
2231 fi
2232
2233     done
2234     ac_cv_prog_CPP=$CPP
2235
2236 fi
2237   CPP=$ac_cv_prog_CPP
2238 else
2239   ac_cv_prog_CPP=$CPP
2240 fi
2241 echo "$as_me:$LINENO: result: $CPP" >&5
2242 echo "${ECHO_T}$CPP" >&6
2243 ac_preproc_ok=false
2244 for ac_c_preproc_warn_flag in '' yes
2245 do
2246   # Use a header file that comes with gcc, so configuring glibc
2247   # with a fresh cross-compiler works.
2248   # On the NeXT, cc -E runs the code through the compiler's parser,
2249   # not just through cpp. "Syntax error" is here to catch this case.
2250   cat >conftest.$ac_ext <<_ACEOF
2251 #line $LINENO "configure"
2252 #include "confdefs.h"
2253 #include <assert.h>
2254                      Syntax error
2255 _ACEOF
2256 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2257   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2258   ac_status=$?
2259   egrep -v '^ *\+' conftest.er1 >conftest.err
2260   rm -f conftest.er1
2261   cat conftest.err >&5
2262   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2263   (exit $ac_status); } >/dev/null; then
2264   if test -s conftest.err; then
2265     ac_cpp_err=$ac_c_preproc_warn_flag
2266   else
2267     ac_cpp_err=
2268   fi
2269 else
2270   ac_cpp_err=yes
2271 fi
2272 if test -z "$ac_cpp_err"; then
2273   :
2274 else
2275   echo "$as_me: failed program was:" >&5
2276   cat conftest.$ac_ext >&5
2277   # Broken: fails on valid input.
2278 continue
2279 fi
2280 rm -f conftest.err conftest.$ac_ext
2281
2282   # OK, works on sane cases.  Now check whether non-existent headers
2283   # can be detected and how.
2284   cat >conftest.$ac_ext <<_ACEOF
2285 #line $LINENO "configure"
2286 #include "confdefs.h"
2287 #include <ac_nonexistent.h>
2288 _ACEOF
2289 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2290   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2291   ac_status=$?
2292   egrep -v '^ *\+' conftest.er1 >conftest.err
2293   rm -f conftest.er1
2294   cat conftest.err >&5
2295   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2296   (exit $ac_status); } >/dev/null; then
2297   if test -s conftest.err; then
2298     ac_cpp_err=$ac_c_preproc_warn_flag
2299   else
2300     ac_cpp_err=
2301   fi
2302 else
2303   ac_cpp_err=yes
2304 fi
2305 if test -z "$ac_cpp_err"; then
2306   # Broken: success on invalid input.
2307 continue
2308 else
2309   echo "$as_me: failed program was:" >&5
2310   cat conftest.$ac_ext >&5
2311   # Passes both tests.
2312 ac_preproc_ok=:
2313 break
2314 fi
2315 rm -f conftest.err conftest.$ac_ext
2316
2317 done
2318 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2319 rm -f conftest.err conftest.$ac_ext
2320 if $ac_preproc_ok; then
2321   :
2322 else
2323   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check" >&5
2324 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
2325    { (exit 1); exit 1; }; }
2326 fi
2327
2328 ac_ext=c
2329 ac_cpp='$CPP $CPPFLAGS'
2330 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2331 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2332 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2333
2334
2335 echo "$as_me:$LINENO: checking for the directory containing the Wine tools" >&5
2336 echo $ECHO_N "checking for the directory containing the Wine tools... $ECHO_C" >&6
2337 if test "${wine_cv_toolsdir+set}" = set; then
2338   echo $ECHO_N "(cached) $ECHO_C" >&6
2339 else
2340   if test -z "$with_wine_tools"; then
2341      if test "$cross_compiling" = "yes"; then
2342        { { echo "$as_me:$LINENO: error: you must use the --with-wine-tools option when cross-compiling." >&5
2343 echo "$as_me: error: you must use the --with-wine-tools option when cross-compiling." >&2;}
2344    { (exit 1); exit 1; }; }
2345      else
2346        wine_cv_toolsdir="\$(TOPOBJDIR)"
2347      fi
2348    elif test -d "$with_wine_tools/tools/winebuild"; then
2349      case $with_wine_tools in
2350        /*) wine_cv_toolsdir="$with_wine_tools" ;;
2351        *)  wine_cv_toolsdir="\$(TOPOBJDIR)/$with_wine_tools" ;;
2352      esac
2353    else
2354      { { echo "$as_me:$LINENO: error: could not find Wine tools in $with_wine_tools." >&5
2355 echo "$as_me: error: could not find Wine tools in $with_wine_tools." >&2;}
2356    { (exit 1); exit 1; }; }
2357    fi
2358 fi
2359 echo "$as_me:$LINENO: result: $wine_cv_toolsdir" >&5
2360 echo "${ECHO_T}$wine_cv_toolsdir" >&6
2361 TOOLSDIR=$wine_cv_toolsdir
2362
2363
2364
2365
2366 echo "$as_me:$LINENO: checking for X" >&5
2367 echo $ECHO_N "checking for X... $ECHO_C" >&6
2368
2369
2370 # Check whether --with-x or --without-x was given.
2371 if test "${with_x+set}" = set; then
2372   withval="$with_x"
2373
2374 fi;
2375 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
2376 if test "x$with_x" = xno; then
2377   # The user explicitly disabled X.
2378   have_x=disabled
2379 else
2380   if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
2381     # Both variables are already set.
2382     have_x=yes
2383   else
2384     if test "${ac_cv_have_x+set}" = set; then
2385   echo $ECHO_N "(cached) $ECHO_C" >&6
2386 else
2387   # One or both of the vars are not set, and there is no cached value.
2388 ac_x_includes=no ac_x_libraries=no
2389 rm -fr conftest.dir
2390 if mkdir conftest.dir; then
2391   cd conftest.dir
2392   # Make sure to not put "make" in the Imakefile rules, since we grep it out.
2393   cat >Imakefile <<'_ACEOF'
2394 acfindx:
2395         @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
2396 _ACEOF
2397   if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
2398     # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2399     eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
2400     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
2401     for ac_extension in a so sl; do
2402       if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
2403          test -f $ac_im_libdir/libX11.$ac_extension; then
2404         ac_im_usrlibdir=$ac_im_libdir; break
2405       fi
2406     done
2407     # Screen out bogus values from the imake configuration.  They are
2408     # bogus both because they are the default anyway, and because
2409     # using them would break gcc on systems where it needs fixed includes.
2410     case $ac_im_incroot in
2411         /usr/include) ;;
2412         *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
2413     esac
2414     case $ac_im_usrlibdir in
2415         /usr/lib | /lib) ;;
2416         *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
2417     esac
2418   fi
2419   cd ..
2420   rm -fr conftest.dir
2421 fi
2422
2423 # Standard set of common directories for X headers.
2424 # Check X11 before X11Rn because it is often a symlink to the current release.
2425 ac_x_header_dirs='
2426 /usr/X11/include
2427 /usr/X11R6/include
2428 /usr/X11R5/include
2429 /usr/X11R4/include
2430
2431 /usr/include/X11
2432 /usr/include/X11R6
2433 /usr/include/X11R5
2434 /usr/include/X11R4
2435
2436 /usr/local/X11/include
2437 /usr/local/X11R6/include
2438 /usr/local/X11R5/include
2439 /usr/local/X11R4/include
2440
2441 /usr/local/include/X11
2442 /usr/local/include/X11R6
2443 /usr/local/include/X11R5
2444 /usr/local/include/X11R4
2445
2446 /usr/X386/include
2447 /usr/x386/include
2448 /usr/XFree86/include/X11
2449
2450 /usr/include
2451 /usr/local/include
2452 /usr/unsupported/include
2453 /usr/athena/include
2454 /usr/local/x11r5/include
2455 /usr/lpp/Xamples/include
2456
2457 /usr/openwin/include
2458 /usr/openwin/share/include'
2459
2460 if test "$ac_x_includes" = no; then
2461   # Guess where to find include files, by looking for Intrinsic.h.
2462   # First, try using that file with no special directory specified.
2463   cat >conftest.$ac_ext <<_ACEOF
2464 #line $LINENO "configure"
2465 #include "confdefs.h"
2466 #include <X11/Intrinsic.h>
2467 _ACEOF
2468 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2469   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2470   ac_status=$?
2471   egrep -v '^ *\+' conftest.er1 >conftest.err
2472   rm -f conftest.er1
2473   cat conftest.err >&5
2474   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2475   (exit $ac_status); } >/dev/null; then
2476   if test -s conftest.err; then
2477     ac_cpp_err=$ac_c_preproc_warn_flag
2478   else
2479     ac_cpp_err=
2480   fi
2481 else
2482   ac_cpp_err=yes
2483 fi
2484 if test -z "$ac_cpp_err"; then
2485   # We can compile using X headers with no special include directory.
2486 ac_x_includes=
2487 else
2488   echo "$as_me: failed program was:" >&5
2489   cat conftest.$ac_ext >&5
2490   for ac_dir in $ac_x_header_dirs; do
2491   if test -r "$ac_dir/X11/Intrinsic.h"; then
2492     ac_x_includes=$ac_dir
2493     break
2494   fi
2495 done
2496 fi
2497 rm -f conftest.err conftest.$ac_ext
2498 fi # $ac_x_includes = no
2499
2500 if test "$ac_x_libraries" = no; then
2501   # Check for the libraries.
2502   # See if we find them without any special options.
2503   # Don't add to $LIBS permanently.
2504   ac_save_LIBS=$LIBS
2505   LIBS="-lXt $LIBS"
2506   cat >conftest.$ac_ext <<_ACEOF
2507 #line $LINENO "configure"
2508 #include "confdefs.h"
2509 #include <X11/Intrinsic.h>
2510 #ifdef F77_DUMMY_MAIN
2511 #  ifdef __cplusplus
2512      extern "C"
2513 #  endif
2514    int F77_DUMMY_MAIN() { return 1; }
2515 #endif
2516 int
2517 main ()
2518 {
2519 XtMalloc (0)
2520   ;
2521   return 0;
2522 }
2523 _ACEOF
2524 rm -f conftest.$ac_objext conftest$ac_exeext
2525 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2526   (eval $ac_link) 2>&5
2527   ac_status=$?
2528   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2529   (exit $ac_status); } &&
2530          { ac_try='test -s conftest$ac_exeext'
2531   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2532   (eval $ac_try) 2>&5
2533   ac_status=$?
2534   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2535   (exit $ac_status); }; }; then
2536   LIBS=$ac_save_LIBS
2537 # We can link X programs with no special library path.
2538 ac_x_libraries=
2539 else
2540   echo "$as_me: failed program was:" >&5
2541 cat conftest.$ac_ext >&5
2542 LIBS=$ac_save_LIBS
2543 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
2544 do
2545   # Don't even attempt the hair of trying to link an X program!
2546   for ac_extension in a so sl; do
2547     if test -r $ac_dir/libXt.$ac_extension; then
2548       ac_x_libraries=$ac_dir
2549       break 2
2550     fi
2551   done
2552 done
2553 fi
2554 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2555 fi # $ac_x_libraries = no
2556
2557 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
2558   # Didn't find X anywhere.  Cache the known absence of X.
2559   ac_cv_have_x="have_x=no"
2560 else
2561   # Record where we found X for the cache.
2562   ac_cv_have_x="have_x=yes \
2563                 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
2564 fi
2565 fi
2566
2567   fi
2568   eval "$ac_cv_have_x"
2569 fi # $with_x != no
2570
2571 if test "$have_x" != yes; then
2572   echo "$as_me:$LINENO: result: $have_x" >&5
2573 echo "${ECHO_T}$have_x" >&6
2574   no_x=yes
2575 else
2576   # If each of the values was on the command line, it overrides each guess.
2577   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
2578   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
2579   # Update the cache value to reflect the command line values.
2580   ac_cv_have_x="have_x=yes \
2581                 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
2582   echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
2583 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
2584 fi
2585
2586 if test "$no_x" = yes; then
2587   # Not all programs may use this symbol, but it does not hurt to define it.
2588
2589 cat >>confdefs.h <<\_ACEOF
2590 #define X_DISPLAY_MISSING 1
2591 _ACEOF
2592
2593   X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
2594 else
2595   if test -n "$x_includes"; then
2596     X_CFLAGS="$X_CFLAGS -I$x_includes"
2597   fi
2598
2599   # It would also be nice to do this for all -L options, not just this one.
2600   if test -n "$x_libraries"; then
2601     X_LIBS="$X_LIBS -L$x_libraries"
2602     # For Solaris; some versions of Sun CC require a space after -R and
2603     # others require no space.  Words are not sufficient . . . .
2604     case `(uname -sr) 2>/dev/null` in
2605     "SunOS 5"*)
2606       echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
2607 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
2608       ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
2609       cat >conftest.$ac_ext <<_ACEOF
2610 #line $LINENO "configure"
2611 #include "confdefs.h"
2612
2613 #ifdef F77_DUMMY_MAIN
2614 #  ifdef __cplusplus
2615      extern "C"
2616 #  endif
2617    int F77_DUMMY_MAIN() { return 1; }
2618 #endif
2619 int
2620 main ()
2621 {
2622
2623   ;
2624   return 0;
2625 }
2626 _ACEOF
2627 rm -f conftest.$ac_objext conftest$ac_exeext
2628 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2629   (eval $ac_link) 2>&5
2630   ac_status=$?
2631   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2632   (exit $ac_status); } &&
2633          { ac_try='test -s conftest$ac_exeext'
2634   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2635   (eval $ac_try) 2>&5
2636   ac_status=$?
2637   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2638   (exit $ac_status); }; }; then
2639   ac_R_nospace=yes
2640 else
2641   echo "$as_me: failed program was:" >&5
2642 cat conftest.$ac_ext >&5
2643 ac_R_nospace=no
2644 fi
2645 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2646       if test $ac_R_nospace = yes; then
2647         echo "$as_me:$LINENO: result: no" >&5
2648 echo "${ECHO_T}no" >&6
2649         X_LIBS="$X_LIBS -R$x_libraries"
2650       else
2651         LIBS="$ac_xsave_LIBS -R $x_libraries"
2652         cat >conftest.$ac_ext <<_ACEOF
2653 #line $LINENO "configure"
2654 #include "confdefs.h"
2655
2656 #ifdef F77_DUMMY_MAIN
2657 #  ifdef __cplusplus
2658      extern "C"
2659 #  endif
2660    int F77_DUMMY_MAIN() { return 1; }
2661 #endif
2662 int
2663 main ()
2664 {
2665
2666   ;
2667   return 0;
2668 }
2669 _ACEOF
2670 rm -f conftest.$ac_objext conftest$ac_exeext
2671 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2672   (eval $ac_link) 2>&5
2673   ac_status=$?
2674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2675   (exit $ac_status); } &&
2676          { ac_try='test -s conftest$ac_exeext'
2677   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2678   (eval $ac_try) 2>&5
2679   ac_status=$?
2680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2681   (exit $ac_status); }; }; then
2682   ac_R_space=yes
2683 else
2684   echo "$as_me: failed program was:" >&5
2685 cat conftest.$ac_ext >&5
2686 ac_R_space=no
2687 fi
2688 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2689         if test $ac_R_space = yes; then
2690           echo "$as_me:$LINENO: result: yes" >&5
2691 echo "${ECHO_T}yes" >&6
2692           X_LIBS="$X_LIBS -R $x_libraries"
2693         else
2694           echo "$as_me:$LINENO: result: neither works" >&5
2695 echo "${ECHO_T}neither works" >&6
2696         fi
2697       fi
2698       LIBS=$ac_xsave_LIBS
2699     esac
2700   fi
2701
2702   # Check for system-dependent libraries X programs must link with.
2703   # Do this before checking for the system-independent R6 libraries
2704   # (-lICE), since we may need -lsocket or whatever for X linking.
2705
2706   if test "$ISC" = yes; then
2707     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
2708   else
2709     # Martyn Johnson says this is needed for Ultrix, if the X
2710     # libraries were built with DECnet support.  And Karl Berry says
2711     # the Alpha needs dnet_stub (dnet does not exist).
2712     ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
2713     cat >conftest.$ac_ext <<_ACEOF
2714 #line $LINENO "configure"
2715 #include "confdefs.h"
2716
2717 /* Override any gcc2 internal prototype to avoid an error.  */
2718 #ifdef __cplusplus
2719 extern "C"
2720 #endif
2721 /* We use char because int might match the return type of a gcc2
2722    builtin and then its argument prototype would still apply.  */
2723 char XOpenDisplay ();
2724 #ifdef F77_DUMMY_MAIN
2725 #  ifdef __cplusplus
2726      extern "C"
2727 #  endif
2728    int F77_DUMMY_MAIN() { return 1; }
2729 #endif
2730 int
2731 main ()
2732 {
2733 XOpenDisplay ();
2734   ;
2735   return 0;
2736 }
2737 _ACEOF
2738 rm -f conftest.$ac_objext conftest$ac_exeext
2739 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2740   (eval $ac_link) 2>&5
2741   ac_status=$?
2742   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2743   (exit $ac_status); } &&
2744          { ac_try='test -s conftest$ac_exeext'
2745   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2746   (eval $ac_try) 2>&5
2747   ac_status=$?
2748   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2749   (exit $ac_status); }; }; then
2750   :
2751 else
2752   echo "$as_me: failed program was:" >&5
2753 cat conftest.$ac_ext >&5
2754 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
2755 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
2756 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
2757   echo $ECHO_N "(cached) $ECHO_C" >&6
2758 else
2759   ac_check_lib_save_LIBS=$LIBS
2760 LIBS="-ldnet  $LIBS"
2761 cat >conftest.$ac_ext <<_ACEOF
2762 #line $LINENO "configure"
2763 #include "confdefs.h"
2764
2765 /* Override any gcc2 internal prototype to avoid an error.  */
2766 #ifdef __cplusplus
2767 extern "C"
2768 #endif
2769 /* We use char because int might match the return type of a gcc2
2770    builtin and then its argument prototype would still apply.  */
2771 char dnet_ntoa ();
2772 #ifdef F77_DUMMY_MAIN
2773 #  ifdef __cplusplus
2774      extern "C"
2775 #  endif
2776    int F77_DUMMY_MAIN() { return 1; }
2777 #endif
2778 int
2779 main ()
2780 {
2781 dnet_ntoa ();
2782   ;
2783   return 0;
2784 }
2785 _ACEOF
2786 rm -f conftest.$ac_objext conftest$ac_exeext
2787 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2788   (eval $ac_link) 2>&5
2789   ac_status=$?
2790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2791   (exit $ac_status); } &&
2792          { ac_try='test -s conftest$ac_exeext'
2793   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2794   (eval $ac_try) 2>&5
2795   ac_status=$?
2796   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2797   (exit $ac_status); }; }; then
2798   ac_cv_lib_dnet_dnet_ntoa=yes
2799 else
2800   echo "$as_me: failed program was:" >&5
2801 cat conftest.$ac_ext >&5
2802 ac_cv_lib_dnet_dnet_ntoa=no
2803 fi
2804 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2805 LIBS=$ac_check_lib_save_LIBS
2806 fi
2807 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
2808 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
2809 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
2810   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
2811 fi
2812
2813     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
2814       echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
2815 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
2816 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
2817   echo $ECHO_N "(cached) $ECHO_C" >&6
2818 else
2819   ac_check_lib_save_LIBS=$LIBS
2820 LIBS="-ldnet_stub  $LIBS"
2821 cat >conftest.$ac_ext <<_ACEOF
2822 #line $LINENO "configure"
2823 #include "confdefs.h"
2824
2825 /* Override any gcc2 internal prototype to avoid an error.  */
2826 #ifdef __cplusplus
2827 extern "C"
2828 #endif
2829 /* We use char because int might match the return type of a gcc2
2830    builtin and then its argument prototype would still apply.  */
2831 char dnet_ntoa ();
2832 #ifdef F77_DUMMY_MAIN
2833 #  ifdef __cplusplus
2834      extern "C"
2835 #  endif
2836    int F77_DUMMY_MAIN() { return 1; }
2837 #endif
2838 int
2839 main ()
2840 {
2841 dnet_ntoa ();
2842   ;
2843   return 0;
2844 }
2845 _ACEOF
2846 rm -f conftest.$ac_objext conftest$ac_exeext
2847 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2848   (eval $ac_link) 2>&5
2849   ac_status=$?
2850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2851   (exit $ac_status); } &&
2852          { ac_try='test -s conftest$ac_exeext'
2853   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2854   (eval $ac_try) 2>&5
2855   ac_status=$?
2856   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2857   (exit $ac_status); }; }; then
2858   ac_cv_lib_dnet_stub_dnet_ntoa=yes
2859 else
2860   echo "$as_me: failed program was:" >&5
2861 cat conftest.$ac_ext >&5
2862 ac_cv_lib_dnet_stub_dnet_ntoa=no
2863 fi
2864 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2865 LIBS=$ac_check_lib_save_LIBS
2866 fi
2867 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
2868 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
2869 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
2870   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
2871 fi
2872
2873     fi
2874 fi
2875 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2876     LIBS="$ac_xsave_LIBS"
2877
2878     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
2879     # to get the SysV transport functions.
2880     # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
2881     # needs -lnsl.
2882     # The nsl library prevents programs from opening the X display
2883     # on Irix 5.2, according to T.E. Dickey.
2884     # The functions gethostbyname, getservbyname, and inet_addr are
2885     # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
2886     echo "$as_me:$LINENO: checking for gethostbyname" >&5
2887 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
2888 if test "${ac_cv_func_gethostbyname+set}" = set; then
2889   echo $ECHO_N "(cached) $ECHO_C" >&6
2890 else
2891   cat >conftest.$ac_ext <<_ACEOF
2892 #line $LINENO "configure"
2893 #include "confdefs.h"
2894 /* System header to define __stub macros and hopefully few prototypes,
2895     which can conflict with char gethostbyname (); below.  */
2896 #include <assert.h>
2897 /* Override any gcc2 internal prototype to avoid an error.  */
2898 #ifdef __cplusplus
2899 extern "C"
2900 #endif
2901 /* We use char because int might match the return type of a gcc2
2902    builtin and then its argument prototype would still apply.  */
2903 char gethostbyname ();
2904 char (*f) ();
2905
2906 #ifdef F77_DUMMY_MAIN
2907 #  ifdef __cplusplus
2908      extern "C"
2909 #  endif
2910    int F77_DUMMY_MAIN() { return 1; }
2911 #endif
2912 int
2913 main ()
2914 {
2915 /* The GNU C library defines this for functions which it implements
2916     to always fail with ENOSYS.  Some functions are actually named
2917     something starting with __ and the normal name is an alias.  */
2918 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
2919 choke me
2920 #else
2921 f = gethostbyname;
2922 #endif
2923
2924   ;
2925   return 0;
2926 }
2927 _ACEOF
2928 rm -f conftest.$ac_objext conftest$ac_exeext
2929 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2930   (eval $ac_link) 2>&5
2931   ac_status=$?
2932   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2933   (exit $ac_status); } &&
2934          { ac_try='test -s conftest$ac_exeext'
2935   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2936   (eval $ac_try) 2>&5
2937   ac_status=$?
2938   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2939   (exit $ac_status); }; }; then
2940   ac_cv_func_gethostbyname=yes
2941 else
2942   echo "$as_me: failed program was:" >&5
2943 cat conftest.$ac_ext >&5
2944 ac_cv_func_gethostbyname=no
2945 fi
2946 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2947 fi
2948 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
2949 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
2950
2951     if test $ac_cv_func_gethostbyname = no; then
2952       echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
2953 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
2954 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
2955   echo $ECHO_N "(cached) $ECHO_C" >&6
2956 else
2957   ac_check_lib_save_LIBS=$LIBS
2958 LIBS="-lnsl  $LIBS"
2959 cat >conftest.$ac_ext <<_ACEOF
2960 #line $LINENO "configure"
2961 #include "confdefs.h"
2962
2963 /* Override any gcc2 internal prototype to avoid an error.  */
2964 #ifdef __cplusplus
2965 extern "C"
2966 #endif
2967 /* We use char because int might match the return type of a gcc2
2968    builtin and then its argument prototype would still apply.  */
2969 char gethostbyname ();
2970 #ifdef F77_DUMMY_MAIN
2971 #  ifdef __cplusplus
2972      extern "C"
2973 #  endif
2974    int F77_DUMMY_MAIN() { return 1; }
2975 #endif
2976 int
2977 main ()
2978 {
2979 gethostbyname ();
2980   ;
2981   return 0;
2982 }
2983 _ACEOF
2984 rm -f conftest.$ac_objext conftest$ac_exeext
2985 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2986   (eval $ac_link) 2>&5
2987   ac_status=$?
2988   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2989   (exit $ac_status); } &&
2990          { ac_try='test -s conftest$ac_exeext'
2991   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2992   (eval $ac_try) 2>&5
2993   ac_status=$?
2994   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2995   (exit $ac_status); }; }; then
2996   ac_cv_lib_nsl_gethostbyname=yes
2997 else
2998   echo "$as_me: failed program was:" >&5
2999 cat conftest.$ac_ext >&5
3000 ac_cv_lib_nsl_gethostbyname=no
3001 fi
3002 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3003 LIBS=$ac_check_lib_save_LIBS
3004 fi
3005 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
3006 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
3007 if test $ac_cv_lib_nsl_gethostbyname = yes; then
3008   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
3009 fi
3010
3011       if test $ac_cv_lib_nsl_gethostbyname = no; then
3012         echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
3013 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
3014 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
3015   echo $ECHO_N "(cached) $ECHO_C" >&6
3016 else
3017   ac_check_lib_save_LIBS=$LIBS
3018 LIBS="-lbsd  $LIBS"
3019 cat >conftest.$ac_ext <<_ACEOF
3020 #line $LINENO "configure"
3021 #include "confdefs.h"
3022
3023 /* Override any gcc2 internal prototype to avoid an error.  */
3024 #ifdef __cplusplus
3025 extern "C"
3026 #endif
3027 /* We use char because int might match the return type of a gcc2
3028    builtin and then its argument prototype would still apply.  */
3029 char gethostbyname ();
3030 #ifdef F77_DUMMY_MAIN
3031 #  ifdef __cplusplus
3032      extern "C"
3033 #  endif
3034    int F77_DUMMY_MAIN() { return 1; }
3035 #endif
3036 int
3037 main ()
3038 {
3039 gethostbyname ();
3040   ;
3041   return 0;
3042 }
3043 _ACEOF
3044 rm -f conftest.$ac_objext conftest$ac_exeext
3045 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3046   (eval $ac_link) 2>&5
3047   ac_status=$?
3048   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3049   (exit $ac_status); } &&
3050          { ac_try='test -s conftest$ac_exeext'
3051   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3052   (eval $ac_try) 2>&5
3053   ac_status=$?
3054   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3055   (exit $ac_status); }; }; then
3056   ac_cv_lib_bsd_gethostbyname=yes
3057 else
3058   echo "$as_me: failed program was:" >&5
3059 cat conftest.$ac_ext >&5
3060 ac_cv_lib_bsd_gethostbyname=no
3061 fi
3062 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3063 LIBS=$ac_check_lib_save_LIBS
3064 fi
3065 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
3066 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
3067 if test $ac_cv_lib_bsd_gethostbyname = yes; then
3068   X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
3069 fi
3070
3071       fi
3072     fi
3073
3074     # lieder@skyler.mavd.honeywell.com says without -lsocket,
3075     # socket/setsockopt and other routines are undefined under SCO ODT
3076     # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
3077     # on later versions), says Simon Leinen: it contains gethostby*
3078     # variants that don't use the nameserver (or something).  -lsocket
3079     # must be given before -lnsl if both are needed.  We assume that
3080     # if connect needs -lnsl, so does gethostbyname.
3081     echo "$as_me:$LINENO: checking for connect" >&5
3082 echo $ECHO_N "checking for connect... $ECHO_C" >&6
3083 if test "${ac_cv_func_connect+set}" = set; then
3084   echo $ECHO_N "(cached) $ECHO_C" >&6
3085 else
3086   cat >conftest.$ac_ext <<_ACEOF
3087 #line $LINENO "configure"
3088 #include "confdefs.h"
3089 /* System header to define __stub macros and hopefully few prototypes,
3090     which can conflict with char connect (); below.  */
3091 #include <assert.h>
3092 /* Override any gcc2 internal prototype to avoid an error.  */
3093 #ifdef __cplusplus
3094 extern "C"
3095 #endif
3096 /* We use char because int might match the return type of a gcc2
3097    builtin and then its argument prototype would still apply.  */
3098 char connect ();
3099 char (*f) ();
3100
3101 #ifdef F77_DUMMY_MAIN
3102 #  ifdef __cplusplus
3103      extern "C"
3104 #  endif
3105    int F77_DUMMY_MAIN() { return 1; }
3106 #endif
3107 int
3108 main ()
3109 {
3110 /* The GNU C library defines this for functions which it implements
3111     to always fail with ENOSYS.  Some functions are actually named
3112     something starting with __ and the normal name is an alias.  */
3113 #if defined (__stub_connect) || defined (__stub___connect)
3114 choke me
3115 #else
3116 f = connect;
3117 #endif
3118
3119   ;
3120   return 0;
3121 }
3122 _ACEOF
3123 rm -f conftest.$ac_objext conftest$ac_exeext
3124 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3125   (eval $ac_link) 2>&5
3126   ac_status=$?
3127   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3128   (exit $ac_status); } &&
3129          { ac_try='test -s conftest$ac_exeext'
3130   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3131   (eval $ac_try) 2>&5
3132   ac_status=$?
3133   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3134   (exit $ac_status); }; }; then
3135   ac_cv_func_connect=yes
3136 else
3137   echo "$as_me: failed program was:" >&5
3138 cat conftest.$ac_ext >&5
3139 ac_cv_func_connect=no
3140 fi
3141 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3142 fi
3143 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
3144 echo "${ECHO_T}$ac_cv_func_connect" >&6
3145
3146     if test $ac_cv_func_connect = no; then
3147       echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
3148 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
3149 if test "${ac_cv_lib_socket_connect+set}" = set; then
3150   echo $ECHO_N "(cached) $ECHO_C" >&6
3151 else
3152   ac_check_lib_save_LIBS=$LIBS
3153 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
3154 cat >conftest.$ac_ext <<_ACEOF
3155 #line $LINENO "configure"
3156 #include "confdefs.h"
3157
3158 /* Override any gcc2 internal prototype to avoid an error.  */
3159 #ifdef __cplusplus
3160 extern "C"
3161 #endif
3162 /* We use char because int might match the return type of a gcc2
3163    builtin and then its argument prototype would still apply.  */
3164 char connect ();
3165 #ifdef F77_DUMMY_MAIN
3166 #  ifdef __cplusplus
3167      extern "C"
3168 #  endif
3169    int F77_DUMMY_MAIN() { return 1; }
3170 #endif
3171 int
3172 main ()
3173 {
3174 connect ();
3175   ;
3176   return 0;
3177 }
3178 _ACEOF
3179 rm -f conftest.$ac_objext conftest$ac_exeext
3180 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3181   (eval $ac_link) 2>&5
3182   ac_status=$?
3183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3184   (exit $ac_status); } &&
3185          { ac_try='test -s conftest$ac_exeext'
3186   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3187   (eval $ac_try) 2>&5
3188   ac_status=$?
3189   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3190   (exit $ac_status); }; }; then
3191   ac_cv_lib_socket_connect=yes
3192 else
3193   echo "$as_me: failed program was:" >&5
3194 cat conftest.$ac_ext >&5
3195 ac_cv_lib_socket_connect=no
3196 fi
3197 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3198 LIBS=$ac_check_lib_save_LIBS
3199 fi
3200 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
3201 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
3202 if test $ac_cv_lib_socket_connect = yes; then
3203   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
3204 fi
3205
3206     fi
3207
3208     # Guillermo Gomez says -lposix is necessary on A/UX.
3209     echo "$as_me:$LINENO: checking for remove" >&5
3210 echo $ECHO_N "checking for remove... $ECHO_C" >&6
3211 if test "${ac_cv_func_remove+set}" = set; then
3212   echo $ECHO_N "(cached) $ECHO_C" >&6
3213 else
3214   cat >conftest.$ac_ext <<_ACEOF
3215 #line $LINENO "configure"
3216 #include "confdefs.h"
3217 /* System header to define __stub macros and hopefully few prototypes,
3218     which can conflict with char remove (); below.  */
3219 #include <assert.h>
3220 /* Override any gcc2 internal prototype to avoid an error.  */
3221 #ifdef __cplusplus
3222 extern "C"
3223 #endif
3224 /* We use char because int might match the return type of a gcc2
3225    builtin and then its argument prototype would still apply.  */
3226 char remove ();
3227 char (*f) ();
3228
3229 #ifdef F77_DUMMY_MAIN
3230 #  ifdef __cplusplus
3231      extern "C"
3232 #  endif
3233    int F77_DUMMY_MAIN() { return 1; }
3234 #endif
3235 int
3236 main ()
3237 {
3238 /* The GNU C library defines this for functions which it implements
3239     to always fail with ENOSYS.  Some functions are actually named
3240     something starting with __ and the normal name is an alias.  */
3241 #if defined (__stub_remove) || defined (__stub___remove)
3242 choke me
3243 #else
3244 f = remove;
3245 #endif
3246
3247   ;
3248   return 0;
3249 }
3250 _ACEOF
3251 rm -f conftest.$ac_objext conftest$ac_exeext
3252 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3253   (eval $ac_link) 2>&5
3254   ac_status=$?
3255   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3256   (exit $ac_status); } &&
3257          { ac_try='test -s conftest$ac_exeext'
3258   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3259   (eval $ac_try) 2>&5
3260   ac_status=$?
3261   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3262   (exit $ac_status); }; }; then
3263   ac_cv_func_remove=yes
3264 else
3265   echo "$as_me: failed program was:" >&5
3266 cat conftest.$ac_ext >&5
3267 ac_cv_func_remove=no
3268 fi
3269 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3270 fi
3271 echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
3272 echo "${ECHO_T}$ac_cv_func_remove" >&6
3273
3274     if test $ac_cv_func_remove = no; then
3275       echo "$as_me:$LINENO: checking for remove in -lposix" >&5
3276 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
3277 if test "${ac_cv_lib_posix_remove+set}" = set; then
3278   echo $ECHO_N "(cached) $ECHO_C" >&6
3279 else
3280   ac_check_lib_save_LIBS=$LIBS
3281 LIBS="-lposix  $LIBS"
3282 cat >conftest.$ac_ext <<_ACEOF
3283 #line $LINENO "configure"
3284 #include "confdefs.h"
3285
3286 /* Override any gcc2 internal prototype to avoid an error.  */
3287 #ifdef __cplusplus
3288 extern "C"
3289 #endif
3290 /* We use char because int might match the return type of a gcc2
3291    builtin and then its argument prototype would still apply.  */
3292 char remove ();
3293 #ifdef F77_DUMMY_MAIN
3294 #  ifdef __cplusplus
3295      extern "C"
3296 #  endif
3297    int F77_DUMMY_MAIN() { return 1; }
3298 #endif
3299 int
3300 main ()
3301 {
3302 remove ();
3303   ;
3304   return 0;
3305 }
3306 _ACEOF
3307 rm -f conftest.$ac_objext conftest$ac_exeext
3308 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3309   (eval $ac_link) 2>&5
3310   ac_status=$?
3311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3312   (exit $ac_status); } &&
3313          { ac_try='test -s conftest$ac_exeext'
3314   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3315   (eval $ac_try) 2>&5
3316   ac_status=$?
3317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3318   (exit $ac_status); }; }; then
3319   ac_cv_lib_posix_remove=yes
3320 else
3321   echo "$as_me: failed program was:" >&5
3322 cat conftest.$ac_ext >&5
3323 ac_cv_lib_posix_remove=no
3324 fi
3325 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3326 LIBS=$ac_check_lib_save_LIBS
3327 fi
3328 echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
3329 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
3330 if test $ac_cv_lib_posix_remove = yes; then
3331   X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
3332 fi
3333
3334     fi
3335
3336     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
3337     echo "$as_me:$LINENO: checking for shmat" >&5
3338 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
3339 if test "${ac_cv_func_shmat+set}" = set; then
3340   echo $ECHO_N "(cached) $ECHO_C" >&6
3341 else
3342   cat >conftest.$ac_ext <<_ACEOF
3343 #line $LINENO "configure"
3344 #include "confdefs.h"
3345 /* System header to define __stub macros and hopefully few prototypes,
3346     which can conflict with char shmat (); below.  */
3347 #include <assert.h>
3348 /* Override any gcc2 internal prototype to avoid an error.  */
3349 #ifdef __cplusplus
3350 extern "C"
3351 #endif
3352 /* We use char because int might match the return type of a gcc2
3353    builtin and then its argument prototype would still apply.  */
3354 char shmat ();
3355 char (*f) ();
3356
3357 #ifdef F77_DUMMY_MAIN
3358 #  ifdef __cplusplus
3359      extern "C"
3360 #  endif
3361    int F77_DUMMY_MAIN() { return 1; }
3362 #endif
3363 int
3364 main ()
3365 {
3366 /* The GNU C library defines this for functions which it implements
3367     to always fail with ENOSYS.  Some functions are actually named
3368     something starting with __ and the normal name is an alias.  */
3369 #if defined (__stub_shmat) || defined (__stub___shmat)
3370 choke me
3371 #else
3372 f = shmat;
3373 #endif
3374
3375   ;
3376   return 0;
3377 }
3378 _ACEOF
3379 rm -f conftest.$ac_objext conftest$ac_exeext
3380 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3381   (eval $ac_link) 2>&5
3382   ac_status=$?
3383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3384   (exit $ac_status); } &&
3385          { ac_try='test -s conftest$ac_exeext'
3386   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3387   (eval $ac_try) 2>&5
3388   ac_status=$?
3389   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3390   (exit $ac_status); }; }; then
3391   ac_cv_func_shmat=yes
3392 else
3393   echo "$as_me: failed program was:" >&5
3394 cat conftest.$ac_ext >&5
3395 ac_cv_func_shmat=no
3396 fi
3397 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3398 fi
3399 echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
3400 echo "${ECHO_T}$ac_cv_func_shmat" >&6
3401
3402     if test $ac_cv_func_shmat = no; then
3403       echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
3404 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
3405 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
3406   echo $ECHO_N "(cached) $ECHO_C" >&6
3407 else
3408   ac_check_lib_save_LIBS=$LIBS
3409 LIBS="-lipc  $LIBS"
3410 cat >conftest.$ac_ext <<_ACEOF
3411 #line $LINENO "configure"
3412 #include "confdefs.h"
3413
3414 /* Override any gcc2 internal prototype to avoid an error.  */
3415 #ifdef __cplusplus
3416 extern "C"
3417 #endif
3418 /* We use char because int might match the return type of a gcc2
3419    builtin and then its argument prototype would still apply.  */
3420 char shmat ();
3421 #ifdef F77_DUMMY_MAIN
3422 #  ifdef __cplusplus
3423      extern "C"
3424 #  endif
3425    int F77_DUMMY_MAIN() { return 1; }
3426 #endif
3427 int
3428 main ()
3429 {
3430 shmat ();
3431   ;
3432   return 0;
3433 }
3434 _ACEOF
3435 rm -f conftest.$ac_objext conftest$ac_exeext
3436 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3437   (eval $ac_link) 2>&5
3438   ac_status=$?
3439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3440   (exit $ac_status); } &&
3441          { ac_try='test -s conftest$ac_exeext'
3442   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3443   (eval $ac_try) 2>&5
3444   ac_status=$?
3445   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3446   (exit $ac_status); }; }; then
3447   ac_cv_lib_ipc_shmat=yes
3448 else
3449   echo "$as_me: failed program was:" >&5
3450 cat conftest.$ac_ext >&5
3451 ac_cv_lib_ipc_shmat=no
3452 fi
3453 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3454 LIBS=$ac_check_lib_save_LIBS
3455 fi
3456 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
3457 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
3458 if test $ac_cv_lib_ipc_shmat = yes; then
3459   X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
3460 fi
3461
3462     fi
3463   fi
3464
3465   # Check for libraries that X11R6 Xt/Xaw programs need.
3466   ac_save_LDFLAGS=$LDFLAGS
3467   test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
3468   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
3469   # check for ICE first), but we must link in the order -lSM -lICE or
3470   # we get undefined symbols.  So assume we have SM if we have ICE.
3471   # These have to be linked with before -lX11, unlike the other
3472   # libraries we check for below, so use a different variable.
3473   # John Interrante, Karl Berry
3474   echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
3475 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
3476 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
3477   echo $ECHO_N "(cached) $ECHO_C" >&6
3478 else
3479   ac_check_lib_save_LIBS=$LIBS
3480 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
3481 cat >conftest.$ac_ext <<_ACEOF
3482 #line $LINENO "configure"
3483 #include "confdefs.h"
3484
3485 /* Override any gcc2 internal prototype to avoid an error.  */
3486 #ifdef __cplusplus
3487 extern "C"
3488 #endif
3489 /* We use char because int might match the return type of a gcc2
3490    builtin and then its argument prototype would still apply.  */
3491 char IceConnectionNumber ();
3492 #ifdef F77_DUMMY_MAIN
3493 #  ifdef __cplusplus
3494      extern "C"
3495 #  endif
3496    int F77_DUMMY_MAIN() { return 1; }
3497 #endif
3498 int
3499 main ()
3500 {
3501 IceConnectionNumber ();
3502   ;
3503   return 0;
3504 }
3505 _ACEOF
3506 rm -f conftest.$ac_objext conftest$ac_exeext
3507 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3508   (eval $ac_link) 2>&5
3509   ac_status=$?
3510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3511   (exit $ac_status); } &&
3512          { ac_try='test -s conftest$ac_exeext'
3513   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3514   (eval $ac_try) 2>&5
3515   ac_status=$?
3516   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3517   (exit $ac_status); }; }; then
3518   ac_cv_lib_ICE_IceConnectionNumber=yes
3519 else
3520   echo "$as_me: failed program was:" >&5
3521 cat conftest.$ac_ext >&5
3522 ac_cv_lib_ICE_IceConnectionNumber=no
3523 fi
3524 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3525 LIBS=$ac_check_lib_save_LIBS
3526 fi
3527 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
3528 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
3529 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
3530   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
3531 fi
3532
3533   LDFLAGS=$ac_save_LDFLAGS
3534
3535 fi
3536
3537 for ac_prog in 'bison -y' byacc
3538 do
3539   # Extract the first word of "$ac_prog", so it can be a program name with args.
3540 set dummy $ac_prog; ac_word=$2
3541 echo "$as_me:$LINENO: checking for $ac_word" >&5
3542 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3543 if test "${ac_cv_prog_YACC+set}" = set; then
3544   echo $ECHO_N "(cached) $ECHO_C" >&6
3545 else
3546   if test -n "$YACC"; then
3547   ac_cv_prog_YACC="$YACC" # Let the user override the test.
3548 else
3549 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3550 for as_dir in $PATH
3551 do
3552   IFS=$as_save_IFS
3553   test -z "$as_dir" && as_dir=.
3554   for ac_exec_ext in '' $ac_executable_extensions; do
3555   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3556     ac_cv_prog_YACC="$ac_prog"
3557     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3558     break 2
3559   fi
3560 done
3561 done
3562
3563 fi
3564 fi
3565 YACC=$ac_cv_prog_YACC
3566 if test -n "$YACC"; then
3567   echo "$as_me:$LINENO: result: $YACC" >&5
3568 echo "${ECHO_T}$YACC" >&6
3569 else
3570   echo "$as_me:$LINENO: result: no" >&5
3571 echo "${ECHO_T}no" >&6
3572 fi
3573
3574   test -n "$YACC" && break
3575 done
3576 test -n "$YACC" || YACC="yacc"
3577
3578 for ac_prog in flex lex
3579 do
3580   # Extract the first word of "$ac_prog", so it can be a program name with args.
3581 set dummy $ac_prog; ac_word=$2
3582 echo "$as_me:$LINENO: checking for $ac_word" >&5
3583 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3584 if test "${ac_cv_prog_LEX+set}" = set; then
3585   echo $ECHO_N "(cached) $ECHO_C" >&6
3586 else
3587   if test -n "$LEX"; then
3588   ac_cv_prog_LEX="$LEX" # Let the user override the test.
3589 else
3590 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3591 for as_dir in $PATH
3592 do
3593   IFS=$as_save_IFS
3594   test -z "$as_dir" && as_dir=.
3595   for ac_exec_ext in '' $ac_executable_extensions; do
3596   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3597     ac_cv_prog_LEX="$ac_prog"
3598     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3599     break 2
3600   fi
3601 done
3602 done
3603
3604 fi
3605 fi
3606 LEX=$ac_cv_prog_LEX
3607 if test -n "$LEX"; then
3608   echo "$as_me:$LINENO: result: $LEX" >&5
3609 echo "${ECHO_T}$LEX" >&6
3610 else
3611   echo "$as_me:$LINENO: result: no" >&5
3612 echo "${ECHO_T}no" >&6
3613 fi
3614
3615   test -n "$LEX" && break
3616 done
3617 test -n "$LEX" || LEX=":"
3618
3619 if test -z "$LEXLIB"
3620 then
3621   echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
3622 echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
3623 if test "${ac_cv_lib_fl_yywrap+set}" = set; then
3624   echo $ECHO_N "(cached) $ECHO_C" >&6
3625 else
3626   ac_check_lib_save_LIBS=$LIBS
3627 LIBS="-lfl  $LIBS"
3628 cat >conftest.$ac_ext <<_ACEOF
3629 #line $LINENO "configure"
3630 #include "confdefs.h"
3631
3632 /* Override any gcc2 internal prototype to avoid an error.  */
3633 #ifdef __cplusplus
3634 extern "C"
3635 #endif
3636 /* We use char because int might match the return type of a gcc2
3637    builtin and then its argument prototype would still apply.  */
3638 char yywrap ();
3639 #ifdef F77_DUMMY_MAIN
3640 #  ifdef __cplusplus
3641      extern "C"
3642 #  endif
3643    int F77_DUMMY_MAIN() { return 1; }
3644 #endif
3645 int
3646 main ()
3647 {
3648 yywrap ();
3649   ;
3650   return 0;
3651 }
3652 _ACEOF
3653 rm -f conftest.$ac_objext conftest$ac_exeext
3654 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3655   (eval $ac_link) 2>&5
3656   ac_status=$?
3657   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3658   (exit $ac_status); } &&
3659          { ac_try='test -s conftest$ac_exeext'
3660   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3661   (eval $ac_try) 2>&5
3662   ac_status=$?
3663   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3664   (exit $ac_status); }; }; then
3665   ac_cv_lib_fl_yywrap=yes
3666 else
3667   echo "$as_me: failed program was:" >&5
3668 cat conftest.$ac_ext >&5
3669 ac_cv_lib_fl_yywrap=no
3670 fi
3671 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3672 LIBS=$ac_check_lib_save_LIBS
3673 fi
3674 echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
3675 echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
3676 if test $ac_cv_lib_fl_yywrap = yes; then
3677   LEXLIB="-lfl"
3678 else
3679   echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
3680 echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
3681 if test "${ac_cv_lib_l_yywrap+set}" = set; then
3682   echo $ECHO_N "(cached) $ECHO_C" >&6
3683 else
3684   ac_check_lib_save_LIBS=$LIBS
3685 LIBS="-ll  $LIBS"
3686 cat >conftest.$ac_ext <<_ACEOF
3687 #line $LINENO "configure"
3688 #include "confdefs.h"
3689
3690 /* Override any gcc2 internal prototype to avoid an error.  */
3691 #ifdef __cplusplus
3692 extern "C"
3693 #endif
3694 /* We use char because int might match the return type of a gcc2
3695    builtin and then its argument prototype would still apply.  */
3696 char yywrap ();
3697 #ifdef F77_DUMMY_MAIN
3698 #  ifdef __cplusplus
3699      extern "C"
3700 #  endif
3701    int F77_DUMMY_MAIN() { return 1; }
3702 #endif
3703 int
3704 main ()
3705 {
3706 yywrap ();
3707   ;
3708   return 0;
3709 }
3710 _ACEOF
3711 rm -f conftest.$ac_objext conftest$ac_exeext
3712 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3713   (eval $ac_link) 2>&5
3714   ac_status=$?
3715   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3716   (exit $ac_status); } &&
3717          { ac_try='test -s conftest$ac_exeext'
3718   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3719   (eval $ac_try) 2>&5
3720   ac_status=$?
3721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3722   (exit $ac_status); }; }; then
3723   ac_cv_lib_l_yywrap=yes
3724 else
3725   echo "$as_me: failed program was:" >&5
3726 cat conftest.$ac_ext >&5
3727 ac_cv_lib_l_yywrap=no
3728 fi
3729 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3730 LIBS=$ac_check_lib_save_LIBS
3731 fi
3732 echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
3733 echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
3734 if test $ac_cv_lib_l_yywrap = yes; then
3735   LEXLIB="-ll"
3736 fi
3737
3738 fi
3739
3740 fi
3741
3742 if test "x$LEX" != "x:"; then
3743   echo "$as_me:$LINENO: checking lex output file root" >&5
3744 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
3745 if test "${ac_cv_prog_lex_root+set}" = set; then
3746   echo $ECHO_N "(cached) $ECHO_C" >&6
3747 else
3748   # The minimal lex program is just a single line: %%.  But some broken lexes
3749 # (Solaris, I think it was) want two %% lines, so accommodate them.
3750 cat >conftest.l <<_ACEOF
3751 %%
3752 %%
3753 _ACEOF
3754 { (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
3755   (eval $LEX conftest.l) 2>&5
3756   ac_status=$?
3757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3758   (exit $ac_status); }
3759 if test -f lex.yy.c; then
3760   ac_cv_prog_lex_root=lex.yy
3761 elif test -f lexyy.c; then
3762   ac_cv_prog_lex_root=lexyy
3763 else
3764   { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
3765 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
3766    { (exit 1); exit 1; }; }
3767 fi
3768 fi
3769 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
3770 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
3771 rm -f conftest.l
3772 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
3773
3774 echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
3775 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
3776 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
3777   echo $ECHO_N "(cached) $ECHO_C" >&6
3778 else
3779   # POSIX says lex can declare yytext either as a pointer or an array; the
3780 # default is implementation-dependent. Figure out which it is, since
3781 # not all implementations provide the %pointer and %array declarations.
3782 ac_cv_prog_lex_yytext_pointer=no
3783 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
3784 ac_save_LIBS=$LIBS
3785 LIBS="$LIBS $LEXLIB"
3786 cat >conftest.$ac_ext <<_ACEOF
3787 `cat $LEX_OUTPUT_ROOT.c`
3788 _ACEOF
3789 rm -f conftest.$ac_objext conftest$ac_exeext
3790 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3791   (eval $ac_link) 2>&5
3792   ac_status=$?
3793   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3794   (exit $ac_status); } &&
3795          { ac_try='test -s conftest$ac_exeext'
3796   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3797   (eval $ac_try) 2>&5
3798   ac_status=$?
3799   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3800   (exit $ac_status); }; }; then
3801   ac_cv_prog_lex_yytext_pointer=yes
3802 else
3803   echo "$as_me: failed program was:" >&5
3804 cat conftest.$ac_ext >&5
3805 fi
3806 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3807 LIBS=$ac_save_LIBS
3808 rm -f "${LEX_OUTPUT_ROOT}.c"
3809
3810 fi
3811 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
3812 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
3813 if test $ac_cv_prog_lex_yytext_pointer = yes; then
3814
3815 cat >>confdefs.h <<\_ACEOF
3816 #define YYTEXT_POINTER 1
3817 _ACEOF
3818
3819 fi
3820
3821 fi
3822
3823 for ac_prog in $YACC bison yacc
3824 do
3825   # Extract the first word of "$ac_prog", so it can be a program name with args.
3826 set dummy $ac_prog; ac_word=$2
3827 echo "$as_me:$LINENO: checking for $ac_word" >&5
3828 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3829 if test "${ac_cv_prog_XYACC+set}" = set; then
3830   echo $ECHO_N "(cached) $ECHO_C" >&6
3831 else
3832   if test -n "$XYACC"; then
3833   ac_cv_prog_XYACC="$XYACC" # Let the user override the test.
3834 else
3835 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3836 for as_dir in $PATH
3837 do
3838   IFS=$as_save_IFS
3839   test -z "$as_dir" && as_dir=.
3840   for ac_exec_ext in '' $ac_executable_extensions; do
3841   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3842     ac_cv_prog_XYACC="$ac_prog"
3843     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3844     break 2
3845   fi
3846 done
3847 done
3848
3849 fi
3850 fi
3851 XYACC=$ac_cv_prog_XYACC
3852 if test -n "$XYACC"; then
3853   echo "$as_me:$LINENO: result: $XYACC" >&5
3854 echo "${ECHO_T}$XYACC" >&6
3855 else
3856   echo "$as_me:$LINENO: result: no" >&5
3857 echo "${ECHO_T}no" >&6
3858 fi
3859
3860   test -n "$XYACC" && break
3861 done
3862 test -n "$XYACC" || XYACC="none"
3863
3864 if test "$XYACC" = "none"
3865 then
3866   { { echo "$as_me:$LINENO: error: no suitable bison/yacc found. Please install the 'bison' package." >&5
3867 echo "$as_me: error: no suitable bison/yacc found. Please install the 'bison' package." >&2;}
3868    { (exit 1); exit 1; }; }
3869 fi
3870 for ac_prog in $LEX flex lex
3871 do
3872   # Extract the first word of "$ac_prog", so it can be a program name with args.
3873 set dummy $ac_prog; ac_word=$2
3874 echo "$as_me:$LINENO: checking for $ac_word" >&5
3875 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3876 if test "${ac_cv_prog_XLEX+set}" = set; then
3877   echo $ECHO_N "(cached) $ECHO_C" >&6
3878 else
3879   if test -n "$XLEX"; then
3880   ac_cv_prog_XLEX="$XLEX" # Let the user override the test.
3881 else
3882 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3883 for as_dir in $PATH
3884 do
3885   IFS=$as_save_IFS
3886   test -z "$as_dir" && as_dir=.
3887   for ac_exec_ext in '' $ac_executable_extensions; do
3888   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3889     ac_cv_prog_XLEX="$ac_prog"
3890     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3891     break 2
3892   fi
3893 done
3894 done
3895
3896 fi
3897 fi
3898 XLEX=$ac_cv_prog_XLEX
3899 if test -n "$XLEX"; then
3900   echo "$as_me:$LINENO: result: $XLEX" >&5
3901 echo "${ECHO_T}$XLEX" >&6
3902 else
3903   echo "$as_me:$LINENO: result: no" >&5
3904 echo "${ECHO_T}no" >&6
3905 fi
3906
3907   test -n "$XLEX" && break
3908 done
3909 test -n "$XLEX" || XLEX="none"
3910
3911 if test "$XLEX" = "none"
3912 then
3913   { { echo "$as_me:$LINENO: error: no suitable lex found. Please install the 'flex' package." >&5
3914 echo "$as_me: error: no suitable lex found. Please install the 'flex' package." >&2;}
3915    { (exit 1); exit 1; }; }
3916 fi
3917
3918 if test -n "$ac_tool_prefix"; then
3919   # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
3920 set dummy ${ac_tool_prefix}ld; ac_word=$2
3921 echo "$as_me:$LINENO: checking for $ac_word" >&5
3922 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3923 if test "${ac_cv_prog_LD+set}" = set; then
3924   echo $ECHO_N "(cached) $ECHO_C" >&6
3925 else
3926   if test -n "$LD"; then
3927   ac_cv_prog_LD="$LD" # Let the user override the test.
3928 else
3929 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3930 for as_dir in $PATH
3931 do
3932   IFS=$as_save_IFS
3933   test -z "$as_dir" && as_dir=.
3934   for ac_exec_ext in '' $ac_executable_extensions; do
3935   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3936     ac_cv_prog_LD="${ac_tool_prefix}ld"
3937     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3938     break 2
3939   fi
3940 done
3941 done
3942
3943 fi
3944 fi
3945 LD=$ac_cv_prog_LD
3946 if test -n "$LD"; then
3947   echo "$as_me:$LINENO: result: $LD" >&5
3948 echo "${ECHO_T}$LD" >&6
3949 else
3950   echo "$as_me:$LINENO: result: no" >&5
3951 echo "${ECHO_T}no" >&6
3952 fi
3953
3954 fi
3955 if test -z "$ac_cv_prog_LD"; then
3956   ac_ct_LD=$LD
3957   # Extract the first word of "ld", so it can be a program name with args.
3958 set dummy ld; ac_word=$2
3959 echo "$as_me:$LINENO: checking for $ac_word" >&5
3960 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3961 if test "${ac_cv_prog_ac_ct_LD+set}" = set; then
3962   echo $ECHO_N "(cached) $ECHO_C" >&6
3963 else
3964   if test -n "$ac_ct_LD"; then
3965   ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test.
3966 else
3967 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3968 for as_dir in $PATH
3969 do
3970   IFS=$as_save_IFS
3971   test -z "$as_dir" && as_dir=.
3972   for ac_exec_ext in '' $ac_executable_extensions; do
3973   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3974     ac_cv_prog_ac_ct_LD="ld"
3975     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3976     break 2
3977   fi
3978 done
3979 done
3980
3981   test -z "$ac_cv_prog_ac_ct_LD" && ac_cv_prog_ac_ct_LD="ld"
3982 fi
3983 fi
3984 ac_ct_LD=$ac_cv_prog_ac_ct_LD
3985 if test -n "$ac_ct_LD"; then
3986   echo "$as_me:$LINENO: result: $ac_ct_LD" >&5
3987 echo "${ECHO_T}$ac_ct_LD" >&6
3988 else
3989   echo "$as_me:$LINENO: result: no" >&5
3990 echo "${ECHO_T}no" >&6
3991 fi
3992
3993   LD=$ac_ct_LD
3994 else
3995   LD="$ac_cv_prog_LD"
3996 fi
3997
3998 if test -n "$ac_tool_prefix"; then
3999   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4000 set dummy ${ac_tool_prefix}ar; ac_word=$2
4001 echo "$as_me:$LINENO: checking for $ac_word" >&5
4002 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4003 if test "${ac_cv_prog_AR+set}" = set; then
4004   echo $ECHO_N "(cached) $ECHO_C" >&6
4005 else
4006   if test -n "$AR"; then
4007   ac_cv_prog_AR="$AR" # Let the user override the test.
4008 else
4009 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4010 for as_dir in $PATH
4011 do
4012   IFS=$as_save_IFS
4013   test -z "$as_dir" && as_dir=.
4014   for ac_exec_ext in '' $ac_executable_extensions; do
4015   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4016     ac_cv_prog_AR="${ac_tool_prefix}ar"
4017     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4018     break 2
4019   fi
4020 done
4021 done
4022
4023 fi
4024 fi
4025 AR=$ac_cv_prog_AR
4026 if test -n "$AR"; then
4027   echo "$as_me:$LINENO: result: $AR" >&5
4028 echo "${ECHO_T}$AR" >&6
4029 else
4030   echo "$as_me:$LINENO: result: no" >&5
4031 echo "${ECHO_T}no" >&6
4032 fi
4033
4034 fi
4035 if test -z "$ac_cv_prog_AR"; then
4036   ac_ct_AR=$AR
4037   # Extract the first word of "ar", so it can be a program name with args.
4038 set dummy ar; ac_word=$2
4039 echo "$as_me:$LINENO: checking for $ac_word" >&5
4040 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4041 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
4042   echo $ECHO_N "(cached) $ECHO_C" >&6
4043 else
4044   if test -n "$ac_ct_AR"; then
4045   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4046 else
4047 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4048 for as_dir in $PATH
4049 do
4050   IFS=$as_save_IFS
4051   test -z "$as_dir" && as_dir=.
4052   for ac_exec_ext in '' $ac_executable_extensions; do
4053   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4054     ac_cv_prog_ac_ct_AR="ar"
4055     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4056     break 2
4057   fi
4058 done
4059 done
4060
4061   test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar"
4062 fi
4063 fi
4064 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4065 if test -n "$ac_ct_AR"; then
4066   echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
4067 echo "${ECHO_T}$ac_ct_AR" >&6
4068 else
4069   echo "$as_me:$LINENO: result: no" >&5
4070 echo "${ECHO_T}no" >&6
4071 fi
4072
4073   AR=$ac_ct_AR
4074 else
4075   AR="$ac_cv_prog_AR"
4076 fi
4077
4078 if test -n "$ac_tool_prefix"; then
4079   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4080 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4081 echo "$as_me:$LINENO: checking for $ac_word" >&5
4082 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4083 if test "${ac_cv_prog_RANLIB+set}" = set; then
4084   echo $ECHO_N "(cached) $ECHO_C" >&6
4085 else
4086   if test -n "$RANLIB"; then
4087   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4088 else
4089 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4090 for as_dir in $PATH
4091 do
4092   IFS=$as_save_IFS
4093   test -z "$as_dir" && as_dir=.
4094   for ac_exec_ext in '' $ac_executable_extensions; do
4095   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4096     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4097     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4098     break 2
4099   fi
4100 done
4101 done
4102
4103 fi
4104 fi
4105 RANLIB=$ac_cv_prog_RANLIB
4106 if test -n "$RANLIB"; then
4107   echo "$as_me:$LINENO: result: $RANLIB" >&5
4108 echo "${ECHO_T}$RANLIB" >&6
4109 else
4110   echo "$as_me:$LINENO: result: no" >&5
4111 echo "${ECHO_T}no" >&6
4112 fi
4113
4114 fi
4115 if test -z "$ac_cv_prog_RANLIB"; then
4116   ac_ct_RANLIB=$RANLIB
4117   # Extract the first word of "ranlib", so it can be a program name with args.
4118 set dummy ranlib; ac_word=$2
4119 echo "$as_me:$LINENO: checking for $ac_word" >&5
4120 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4121 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4122   echo $ECHO_N "(cached) $ECHO_C" >&6
4123 else
4124   if test -n "$ac_ct_RANLIB"; then
4125   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4126 else
4127 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4128 for as_dir in $PATH
4129 do
4130   IFS=$as_save_IFS
4131   test -z "$as_dir" && as_dir=.
4132   for ac_exec_ext in '' $ac_executable_extensions; do
4133   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4134     ac_cv_prog_ac_ct_RANLIB="ranlib"
4135     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4136     break 2
4137   fi
4138 done
4139 done
4140
4141   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4142 fi
4143 fi
4144 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4145 if test -n "$ac_ct_RANLIB"; then
4146   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4147 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4148 else
4149   echo "$as_me:$LINENO: result: no" >&5
4150 echo "${ECHO_T}no" >&6
4151 fi
4152
4153   RANLIB=$ac_ct_RANLIB
4154 else
4155   RANLIB="$ac_cv_prog_RANLIB"
4156 fi
4157
4158 if test -n "$ac_tool_prefix"; then
4159   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4160 set dummy ${ac_tool_prefix}strip; ac_word=$2
4161 echo "$as_me:$LINENO: checking for $ac_word" >&5
4162 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4163 if test "${ac_cv_prog_STRIP+set}" = set; then
4164   echo $ECHO_N "(cached) $ECHO_C" >&6
4165 else
4166   if test -n "$STRIP"; then
4167   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4168 else
4169 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4170 for as_dir in $PATH
4171 do
4172   IFS=$as_save_IFS
4173   test -z "$as_dir" && as_dir=.
4174   for ac_exec_ext in '' $ac_executable_extensions; do
4175   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4176     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4177     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4178     break 2
4179   fi
4180 done
4181 done
4182
4183 fi
4184 fi
4185 STRIP=$ac_cv_prog_STRIP
4186 if test -n "$STRIP"; then
4187   echo "$as_me:$LINENO: result: $STRIP" >&5
4188 echo "${ECHO_T}$STRIP" >&6
4189 else
4190   echo "$as_me:$LINENO: result: no" >&5
4191 echo "${ECHO_T}no" >&6
4192 fi
4193
4194 fi
4195 if test -z "$ac_cv_prog_STRIP"; then
4196   ac_ct_STRIP=$STRIP
4197   # Extract the first word of "strip", so it can be a program name with args.
4198 set dummy strip; ac_word=$2
4199 echo "$as_me:$LINENO: checking for $ac_word" >&5
4200 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4201 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4202   echo $ECHO_N "(cached) $ECHO_C" >&6
4203 else
4204   if test -n "$ac_ct_STRIP"; then
4205   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4206 else
4207 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4208 for as_dir in $PATH
4209 do
4210   IFS=$as_save_IFS
4211   test -z "$as_dir" && as_dir=.
4212   for ac_exec_ext in '' $ac_executable_extensions; do
4213   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4214     ac_cv_prog_ac_ct_STRIP="strip"
4215     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4216     break 2
4217   fi
4218 done
4219 done
4220
4221   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP="strip"
4222 fi
4223 fi
4224 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4225 if test -n "$ac_ct_STRIP"; then
4226   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4227 echo "${ECHO_T}$ac_ct_STRIP" >&6
4228 else
4229   echo "$as_me:$LINENO: result: no" >&5
4230 echo "${ECHO_T}no" >&6
4231 fi
4232
4233   STRIP=$ac_ct_STRIP
4234 else
4235   STRIP="$ac_cv_prog_STRIP"
4236 fi
4237
4238 if test -n "$ac_tool_prefix"; then
4239   # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
4240 set dummy ${ac_tool_prefix}windres; ac_word=$2
4241 echo "$as_me:$LINENO: checking for $ac_word" >&5
4242 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4243 if test "${ac_cv_prog_WINDRES+set}" = set; then
4244   echo $ECHO_N "(cached) $ECHO_C" >&6
4245 else
4246   if test -n "$WINDRES"; then
4247   ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
4248 else
4249 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4250 for as_dir in $PATH
4251 do
4252   IFS=$as_save_IFS
4253   test -z "$as_dir" && as_dir=.
4254   for ac_exec_ext in '' $ac_executable_extensions; do
4255   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4256     ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
4257     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4258     break 2
4259   fi
4260 done
4261 done
4262
4263 fi
4264 fi
4265 WINDRES=$ac_cv_prog_WINDRES
4266 if test -n "$WINDRES"; then
4267   echo "$as_me:$LINENO: result: $WINDRES" >&5
4268 echo "${ECHO_T}$WINDRES" >&6
4269 else
4270   echo "$as_me:$LINENO: result: no" >&5
4271 echo "${ECHO_T}no" >&6
4272 fi
4273
4274 fi
4275 if test -z "$ac_cv_prog_WINDRES"; then
4276   ac_ct_WINDRES=$WINDRES
4277   # Extract the first word of "windres", so it can be a program name with args.
4278 set dummy windres; ac_word=$2
4279 echo "$as_me:$LINENO: checking for $ac_word" >&5
4280 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4281 if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
4282   echo $ECHO_N "(cached) $ECHO_C" >&6
4283 else
4284   if test -n "$ac_ct_WINDRES"; then
4285   ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
4286 else
4287 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4288 for as_dir in $PATH
4289 do
4290   IFS=$as_save_IFS
4291   test -z "$as_dir" && as_dir=.
4292   for ac_exec_ext in '' $ac_executable_extensions; do
4293   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4294     ac_cv_prog_ac_ct_WINDRES="windres"
4295     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4296     break 2
4297   fi
4298 done
4299 done
4300
4301   test -z "$ac_cv_prog_ac_ct_WINDRES" && ac_cv_prog_ac_ct_WINDRES="false"
4302 fi
4303 fi
4304 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
4305 if test -n "$ac_ct_WINDRES"; then
4306   echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
4307 echo "${ECHO_T}$ac_ct_WINDRES" >&6
4308 else
4309   echo "$as_me:$LINENO: result: no" >&5
4310 echo "${ECHO_T}no" >&6
4311 fi
4312
4313   WINDRES=$ac_ct_WINDRES
4314 else
4315   WINDRES="$ac_cv_prog_WINDRES"
4316 fi
4317
4318 # Find a good install program.  We prefer a C program (faster),
4319 # so one script is as good as another.  But avoid the broken or
4320 # incompatible versions:
4321 # SysV /etc/install, /usr/sbin/install
4322 # SunOS /usr/etc/install
4323 # IRIX /sbin/install
4324 # AIX /bin/install
4325 # AmigaOS /C/install, which installs bootblocks on floppy discs
4326 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4327 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4328 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4329 # ./install, which can be erroneously created by make from ./install.sh.
4330 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4331 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
4332 if test -z "$INSTALL"; then
4333 if test "${ac_cv_path_install+set}" = set; then
4334   echo $ECHO_N "(cached) $ECHO_C" >&6
4335 else
4336   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4337 for as_dir in $PATH
4338 do
4339   IFS=$as_save_IFS
4340   test -z "$as_dir" && as_dir=.
4341   # Account for people who put trailing slashes in PATH elements.
4342 case $as_dir/ in
4343   ./ | .// | /cC/* | \
4344   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4345   /usr/ucb/* ) ;;
4346   *)
4347     # OSF1 and SCO ODT 3.0 have their own names for install.
4348     # Don't use installbsd from OSF since it installs stuff as root
4349     # by default.
4350     for ac_prog in ginstall scoinst install; do
4351       for ac_exec_ext in '' $ac_executable_extensions; do
4352         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4353           if test $ac_prog = install &&
4354             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4355             # AIX install.  It has an incompatible calling convention.
4356             :
4357           elif test $ac_prog = install &&
4358             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4359             # program-specific install script used by HP pwplus--don't use.
4360             :
4361           else
4362             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4363             break 3
4364           fi
4365         fi
4366       done
4367     done
4368     ;;
4369 esac
4370 done
4371
4372
4373 fi
4374   if test "${ac_cv_path_install+set}" = set; then
4375     INSTALL=$ac_cv_path_install
4376   else
4377     # As a last resort, use the slow shell script.  We don't cache a
4378     # path for INSTALL within a source directory, because that will
4379     # break other packages using the cache if that directory is
4380     # removed, or if the path is relative.
4381     INSTALL=$ac_install_sh
4382   fi
4383 fi
4384 echo "$as_me:$LINENO: result: $INSTALL" >&5
4385 echo "${ECHO_T}$INSTALL" >&6
4386
4387 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4388 # It thinks the first close brace ends the variable substitution.
4389 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4390
4391 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4392
4393 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4394
4395 echo "$as_me:$LINENO: checking whether ln -s works" >&5
4396 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4397 LN_S=$as_ln_s
4398 if test "$LN_S" = "ln -s"; then
4399   echo "$as_me:$LINENO: result: yes" >&5
4400 echo "${ECHO_T}yes" >&6
4401 else
4402   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4403 echo "${ECHO_T}no, using $LN_S" >&6
4404 fi
4405
4406 echo "$as_me:$LINENO: checking whether ln works" >&5
4407 echo $ECHO_N "checking whether ln works... $ECHO_C" >&6
4408 rm -f conf$$ conf$$.file
4409 echo >conf$$.file
4410 if ln conf$$.file conf$$ 2>/dev/null; then
4411   LN=ln
4412
4413   echo "$as_me:$LINENO: result: yes" >&5
4414 echo "${ECHO_T}yes" >&6
4415 else
4416   LN="cp -p"
4417
4418   echo "$as_me:$LINENO: result: no, using $LN" >&5
4419 echo "${ECHO_T}no, using $LN" >&6
4420 fi
4421 rm -f conf$$ conf$$.file
4422 # Extract the first word of "c2man", so it can be a program name with args.
4423 set dummy c2man; ac_word=$2
4424 echo "$as_me:$LINENO: checking for $ac_word" >&5
4425 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4426 if test "${ac_cv_prog_C2MAN+set}" = set; then
4427   echo $ECHO_N "(cached) $ECHO_C" >&6
4428 else
4429   if test -n "$C2MAN"; then
4430   ac_cv_prog_C2MAN="$C2MAN" # Let the user override the test.
4431 else
4432 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4433 for as_dir in $PATH
4434 do
4435   IFS=$as_save_IFS
4436   test -z "$as_dir" && as_dir=.
4437   for ac_exec_ext in '' $ac_executable_extensions; do
4438   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4439     ac_cv_prog_C2MAN="c2man"
4440     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4441     break 2
4442   fi
4443 done
4444 done
4445
4446   test -z "$ac_cv_prog_C2MAN" && ac_cv_prog_C2MAN="\$(TOPSRCDIR)/tools/c2man.pl"
4447 fi
4448 fi
4449 C2MAN=$ac_cv_prog_C2MAN
4450 if test -n "$C2MAN"; then
4451   echo "$as_me:$LINENO: result: $C2MAN" >&5
4452 echo "${ECHO_T}$C2MAN" >&6
4453 else
4454   echo "$as_me:$LINENO: result: no" >&5
4455 echo "${ECHO_T}no" >&6
4456 fi
4457
4458 # Extract the first word of "ldconfig", so it can be a program name with args.
4459 set dummy ldconfig; ac_word=$2
4460 echo "$as_me:$LINENO: checking for $ac_word" >&5
4461 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4462 if test "${ac_cv_path_LDCONFIG+set}" = set; then
4463   echo $ECHO_N "(cached) $ECHO_C" >&6
4464 else
4465   case $LDCONFIG in
4466   [\\/]* | ?:[\\/]*)
4467   ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
4468   ;;
4469   *)
4470   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4471 for as_dir in /sbin /usr/sbin $PATH
4472 do
4473   IFS=$as_save_IFS
4474   test -z "$as_dir" && as_dir=.
4475   for ac_exec_ext in '' $ac_executable_extensions; do
4476   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4477     ac_cv_path_LDCONFIG="$as_dir/$ac_word$ac_exec_ext"
4478     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4479     break 2
4480   fi
4481 done
4482 done
4483
4484   test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG="true"
4485   ;;
4486 esac
4487 fi
4488 LDCONFIG=$ac_cv_path_LDCONFIG
4489
4490 if test -n "$LDCONFIG"; then
4491   echo "$as_me:$LINENO: result: $LDCONFIG" >&5
4492 echo "${ECHO_T}$LDCONFIG" >&6
4493 else
4494   echo "$as_me:$LINENO: result: no" >&5
4495 echo "${ECHO_T}no" >&6
4496 fi
4497
4498
4499 for ac_prog in lclint lint
4500 do
4501   # Extract the first word of "$ac_prog", so it can be a program name with args.
4502 set dummy $ac_prog; ac_word=$2
4503 echo "$as_me:$LINENO: checking for $ac_word" >&5
4504 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4505 if test "${ac_cv_prog_LINT+set}" = set; then
4506   echo $ECHO_N "(cached) $ECHO_C" >&6
4507 else
4508   if test -n "$LINT"; then
4509   ac_cv_prog_LINT="$LINT" # Let the user override the test.
4510 else
4511 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4512 for as_dir in $PATH
4513 do
4514   IFS=$as_save_IFS
4515   test -z "$as_dir" && as_dir=.
4516   for ac_exec_ext in '' $ac_executable_extensions; do
4517   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4518     ac_cv_prog_LINT="$ac_prog"
4519     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4520     break 2
4521   fi
4522 done
4523 done
4524
4525 fi
4526 fi
4527 LINT=$ac_cv_prog_LINT
4528 if test -n "$LINT"; then
4529   echo "$as_me:$LINENO: result: $LINT" >&5
4530 echo "${ECHO_T}$LINT" >&6
4531 else
4532   echo "$as_me:$LINENO: result: no" >&5
4533 echo "${ECHO_T}no" >&6
4534 fi
4535
4536   test -n "$LINT" && break
4537 done
4538
4539 if test "$LINT" = "lint"
4540 then
4541   LINTFLAGS="$LINTFLAGS -errchk=%all,no%longptr64 -errhdr=%user -Ncheck=macro -Nlevel=4"
4542   fi
4543
4544
4545
4546
4547
4548 echo "$as_me:$LINENO: checking for sqrt in -lm" >&5
4549 echo $ECHO_N "checking for sqrt in -lm... $ECHO_C" >&6
4550 if test "${ac_cv_lib_m_sqrt+set}" = set; then
4551   echo $ECHO_N "(cached) $ECHO_C" >&6
4552 else
4553   ac_check_lib_save_LIBS=$LIBS
4554 LIBS="-lm  $LIBS"
4555 cat >conftest.$ac_ext <<_ACEOF
4556 #line $LINENO "configure"
4557 #include "confdefs.h"
4558
4559 /* Override any gcc2 internal prototype to avoid an error.  */
4560 #ifdef __cplusplus
4561 extern "C"
4562 #endif
4563 /* We use char because int might match the return type of a gcc2
4564    builtin and then its argument prototype would still apply.  */
4565 char sqrt ();
4566 #ifdef F77_DUMMY_MAIN
4567 #  ifdef __cplusplus
4568      extern "C"
4569 #  endif
4570    int F77_DUMMY_MAIN() { return 1; }
4571 #endif
4572 int
4573 main ()
4574 {
4575 sqrt ();
4576   ;
4577   return 0;
4578 }
4579 _ACEOF
4580 rm -f conftest.$ac_objext conftest$ac_exeext
4581 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4582   (eval $ac_link) 2>&5
4583   ac_status=$?
4584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4585   (exit $ac_status); } &&
4586          { ac_try='test -s conftest$ac_exeext'
4587   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4588   (eval $ac_try) 2>&5
4589   ac_status=$?
4590   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4591   (exit $ac_status); }; }; then
4592   ac_cv_lib_m_sqrt=yes
4593 else
4594   echo "$as_me: failed program was:" >&5
4595 cat conftest.$ac_ext >&5
4596 ac_cv_lib_m_sqrt=no
4597 fi
4598 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4599 LIBS=$ac_check_lib_save_LIBS
4600 fi
4601 echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrt" >&5
4602 echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6
4603 if test $ac_cv_lib_m_sqrt = yes; then
4604   cat >>confdefs.h <<_ACEOF
4605 #define HAVE_LIBM 1
4606 _ACEOF
4607
4608   LIBS="-lm $LIBS"
4609
4610 fi
4611
4612
4613 echo "$as_me:$LINENO: checking for i386_set_ldt in -li386" >&5
4614 echo $ECHO_N "checking for i386_set_ldt in -li386... $ECHO_C" >&6
4615 if test "${ac_cv_lib_i386_i386_set_ldt+set}" = set; then
4616   echo $ECHO_N "(cached) $ECHO_C" >&6
4617 else
4618   ac_check_lib_save_LIBS=$LIBS
4619 LIBS="-li386  $LIBS"
4620 cat >conftest.$ac_ext <<_ACEOF
4621 #line $LINENO "configure"
4622 #include "confdefs.h"
4623
4624 /* Override any gcc2 internal prototype to avoid an error.  */
4625 #ifdef __cplusplus
4626 extern "C"
4627 #endif
4628 /* We use char because int might match the return type of a gcc2
4629    builtin and then its argument prototype would still apply.  */
4630 char i386_set_ldt ();
4631 #ifdef F77_DUMMY_MAIN
4632 #  ifdef __cplusplus
4633      extern "C"
4634 #  endif
4635    int F77_DUMMY_MAIN() { return 1; }
4636 #endif
4637 int
4638 main ()
4639 {
4640 i386_set_ldt ();
4641   ;
4642   return 0;
4643 }
4644 _ACEOF
4645 rm -f conftest.$ac_objext conftest$ac_exeext
4646 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4647   (eval $ac_link) 2>&5
4648   ac_status=$?
4649   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4650   (exit $ac_status); } &&
4651          { ac_try='test -s conftest$ac_exeext'
4652   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4653   (eval $ac_try) 2>&5
4654   ac_status=$?
4655   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4656   (exit $ac_status); }; }; then
4657   ac_cv_lib_i386_i386_set_ldt=yes
4658 else
4659   echo "$as_me: failed program was:" >&5
4660 cat conftest.$ac_ext >&5
4661 ac_cv_lib_i386_i386_set_ldt=no
4662 fi
4663 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4664 LIBS=$ac_check_lib_save_LIBS
4665 fi
4666 echo "$as_me:$LINENO: result: $ac_cv_lib_i386_i386_set_ldt" >&5
4667 echo "${ECHO_T}$ac_cv_lib_i386_i386_set_ldt" >&6
4668 if test $ac_cv_lib_i386_i386_set_ldt = yes; then
4669   cat >>confdefs.h <<_ACEOF
4670 #define HAVE_LIBI386 1
4671 _ACEOF
4672
4673   LIBS="-li386 $LIBS"
4674
4675 fi
4676
4677
4678 echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5
4679 echo $ECHO_N "checking for _oss_ioctl in -lossaudio... $ECHO_C" >&6
4680 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then
4681   echo $ECHO_N "(cached) $ECHO_C" >&6
4682 else
4683   ac_check_lib_save_LIBS=$LIBS
4684 LIBS="-lossaudio  $LIBS"
4685 cat >conftest.$ac_ext <<_ACEOF
4686 #line $LINENO "configure"
4687 #include "confdefs.h"
4688
4689 /* Override any gcc2 internal prototype to avoid an error.  */
4690 #ifdef __cplusplus
4691 extern "C"
4692 #endif
4693 /* We use char because int might match the return type of a gcc2
4694    builtin and then its argument prototype would still apply.  */
4695 char _oss_ioctl ();
4696 #ifdef F77_DUMMY_MAIN
4697 #  ifdef __cplusplus
4698      extern "C"
4699 #  endif
4700    int F77_DUMMY_MAIN() { return 1; }
4701 #endif
4702 int
4703 main ()
4704 {
4705 _oss_ioctl ();
4706   ;
4707   return 0;
4708 }
4709 _ACEOF
4710 rm -f conftest.$ac_objext conftest$ac_exeext
4711 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4712   (eval $ac_link) 2>&5
4713   ac_status=$?
4714   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4715   (exit $ac_status); } &&
4716          { ac_try='test -s conftest$ac_exeext'
4717   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4718   (eval $ac_try) 2>&5
4719   ac_status=$?
4720   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4721   (exit $ac_status); }; }; then
4722   ac_cv_lib_ossaudio__oss_ioctl=yes
4723 else
4724   echo "$as_me: failed program was:" >&5
4725 cat conftest.$ac_ext >&5
4726 ac_cv_lib_ossaudio__oss_ioctl=no
4727 fi
4728 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4729 LIBS=$ac_check_lib_save_LIBS
4730 fi
4731 echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
4732 echo "${ECHO_T}$ac_cv_lib_ossaudio__oss_ioctl" >&6
4733 if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then
4734   cat >>confdefs.h <<_ACEOF
4735 #define HAVE_LIBOSSAUDIO 1
4736 _ACEOF
4737
4738   LIBS="-lossaudio $LIBS"
4739
4740 fi
4741
4742
4743 for ac_func in iswalnum
4744 do
4745 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4746 echo "$as_me:$LINENO: checking for $ac_func" >&5
4747 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4748 if eval "test \"\${$as_ac_var+set}\" = set"; then
4749   echo $ECHO_N "(cached) $ECHO_C" >&6
4750 else
4751   cat >conftest.$ac_ext <<_ACEOF
4752 #line $LINENO "configure"
4753 #include "confdefs.h"
4754 /* System header to define __stub macros and hopefully few prototypes,
4755     which can conflict with char $ac_func (); below.  */
4756 #include <assert.h>
4757 /* Override any gcc2 internal prototype to avoid an error.  */
4758 #ifdef __cplusplus
4759 extern "C"
4760 #endif
4761 /* We use char because int might match the return type of a gcc2
4762    builtin and then its argument prototype would still apply.  */
4763 char $ac_func ();
4764 char (*f) ();
4765
4766 #ifdef F77_DUMMY_MAIN
4767 #  ifdef __cplusplus
4768      extern "C"
4769 #  endif
4770    int F77_DUMMY_MAIN() { return 1; }
4771 #endif
4772 int
4773 main ()
4774 {
4775 /* The GNU C library defines this for functions which it implements
4776     to always fail with ENOSYS.  Some functions are actually named
4777     something starting with __ and the normal name is an alias.  */
4778 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4779 choke me
4780 #else
4781 f = $ac_func;
4782 #endif
4783
4784   ;
4785   return 0;
4786 }
4787 _ACEOF
4788 rm -f conftest.$ac_objext conftest$ac_exeext
4789 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4790   (eval $ac_link) 2>&5
4791   ac_status=$?
4792   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4793   (exit $ac_status); } &&
4794          { ac_try='test -s conftest$ac_exeext'
4795   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4796   (eval $ac_try) 2>&5
4797   ac_status=$?
4798   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4799   (exit $ac_status); }; }; then
4800   eval "$as_ac_var=yes"
4801 else
4802   echo "$as_me: failed program was:" >&5
4803 cat conftest.$ac_ext >&5
4804 eval "$as_ac_var=no"
4805 fi
4806 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4807 fi
4808 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4809 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4810 if test `eval echo '${'$as_ac_var'}'` = yes; then
4811   cat >>confdefs.h <<_ACEOF
4812 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4813 _ACEOF
4814
4815 else
4816
4817 echo "$as_me:$LINENO: checking for iswalnum in -lw" >&5
4818 echo $ECHO_N "checking for iswalnum in -lw... $ECHO_C" >&6
4819 if test "${ac_cv_lib_w_iswalnum+set}" = set; then
4820   echo $ECHO_N "(cached) $ECHO_C" >&6
4821 else
4822   ac_check_lib_save_LIBS=$LIBS
4823 LIBS="-lw  $LIBS"
4824 cat >conftest.$ac_ext <<_ACEOF
4825 #line $LINENO "configure"
4826 #include "confdefs.h"
4827
4828 /* Override any gcc2 internal prototype to avoid an error.  */
4829 #ifdef __cplusplus
4830 extern "C"
4831 #endif
4832 /* We use char because int might match the return type of a gcc2
4833    builtin and then its argument prototype would still apply.  */
4834 char iswalnum ();
4835 #ifdef F77_DUMMY_MAIN
4836 #  ifdef __cplusplus
4837      extern "C"
4838 #  endif
4839    int F77_DUMMY_MAIN() { return 1; }
4840 #endif
4841 int
4842 main ()
4843 {
4844 iswalnum ();
4845   ;
4846   return 0;
4847 }
4848 _ACEOF
4849 rm -f conftest.$ac_objext conftest$ac_exeext
4850 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4851   (eval $ac_link) 2>&5
4852   ac_status=$?
4853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4854   (exit $ac_status); } &&
4855          { ac_try='test -s conftest$ac_exeext'
4856   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4857   (eval $ac_try) 2>&5
4858   ac_status=$?
4859   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4860   (exit $ac_status); }; }; then
4861   ac_cv_lib_w_iswalnum=yes
4862 else
4863   echo "$as_me: failed program was:" >&5
4864 cat conftest.$ac_ext >&5
4865 ac_cv_lib_w_iswalnum=no
4866 fi
4867 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4868 LIBS=$ac_check_lib_save_LIBS
4869 fi
4870 echo "$as_me:$LINENO: result: $ac_cv_lib_w_iswalnum" >&5
4871 echo "${ECHO_T}$ac_cv_lib_w_iswalnum" >&6
4872 if test $ac_cv_lib_w_iswalnum = yes; then
4873   cat >>confdefs.h <<_ACEOF
4874 #define HAVE_LIBW 1
4875 _ACEOF
4876
4877   LIBS="-lw $LIBS"
4878
4879 fi
4880
4881 fi
4882 done
4883
4884
4885 for ac_func in gethostbyname
4886 do
4887 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4888 echo "$as_me:$LINENO: checking for $ac_func" >&5
4889 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4890 if eval "test \"\${$as_ac_var+set}\" = set"; then
4891   echo $ECHO_N "(cached) $ECHO_C" >&6
4892 else
4893   cat >conftest.$ac_ext <<_ACEOF
4894 #line $LINENO "configure"
4895 #include "confdefs.h"
4896 /* System header to define __stub macros and hopefully few prototypes,
4897     which can conflict with char $ac_func (); below.  */
4898 #include <assert.h>
4899 /* Override any gcc2 internal prototype to avoid an error.  */
4900 #ifdef __cplusplus
4901 extern "C"
4902 #endif
4903 /* We use char because int might match the return type of a gcc2
4904    builtin and then its argument prototype would still apply.  */
4905 char $ac_func ();
4906 char (*f) ();
4907
4908 #ifdef F77_DUMMY_MAIN
4909 #  ifdef __cplusplus
4910      extern "C"
4911 #  endif
4912    int F77_DUMMY_MAIN() { return 1; }
4913 #endif
4914 int
4915 main ()
4916 {
4917 /* The GNU C library defines this for functions which it implements
4918     to always fail with ENOSYS.  Some functions are actually named
4919     something starting with __ and the normal name is an alias.  */
4920 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4921 choke me
4922 #else
4923 f = $ac_func;
4924 #endif
4925
4926   ;
4927   return 0;
4928 }
4929 _ACEOF
4930 rm -f conftest.$ac_objext conftest$ac_exeext
4931 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4932   (eval $ac_link) 2>&5
4933   ac_status=$?
4934   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4935   (exit $ac_status); } &&
4936          { ac_try='test -s conftest$ac_exeext'
4937   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4938   (eval $ac_try) 2>&5
4939   ac_status=$?
4940   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4941   (exit $ac_status); }; }; then
4942   eval "$as_ac_var=yes"
4943 else
4944   echo "$as_me: failed program was:" >&5
4945 cat conftest.$ac_ext >&5
4946 eval "$as_ac_var=no"
4947 fi
4948 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4949 fi
4950 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4951 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4952 if test `eval echo '${'$as_ac_var'}'` = yes; then
4953   cat >>confdefs.h <<_ACEOF
4954 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4955 _ACEOF
4956
4957 else
4958
4959 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
4960 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
4961 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
4962   echo $ECHO_N "(cached) $ECHO_C" >&6
4963 else
4964   ac_check_lib_save_LIBS=$LIBS
4965 LIBS="-lnsl  $LIBS"
4966 cat >conftest.$ac_ext <<_ACEOF
4967 #line $LINENO "configure"
4968 #include "confdefs.h"
4969
4970 /* Override any gcc2 internal prototype to avoid an error.  */
4971 #ifdef __cplusplus
4972 extern "C"
4973 #endif
4974 /* We use char because int might match the return type of a gcc2
4975    builtin and then its argument prototype would still apply.  */
4976 char gethostbyname ();
4977 #ifdef F77_DUMMY_MAIN
4978 #  ifdef __cplusplus
4979      extern "C"
4980 #  endif
4981    int F77_DUMMY_MAIN() { return 1; }
4982 #endif
4983 int
4984 main ()
4985 {
4986 gethostbyname ();
4987   ;
4988   return 0;
4989 }
4990 _ACEOF
4991 rm -f conftest.$ac_objext conftest$ac_exeext
4992 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4993   (eval $ac_link) 2>&5
4994   ac_status=$?
4995   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4996   (exit $ac_status); } &&
4997          { ac_try='test -s conftest$ac_exeext'
4998   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4999   (eval $ac_try) 2>&5
5000   ac_status=$?
5001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5002   (exit $ac_status); }; }; then
5003   ac_cv_lib_nsl_gethostbyname=yes
5004 else
5005   echo "$as_me: failed program was:" >&5
5006 cat conftest.$ac_ext >&5
5007 ac_cv_lib_nsl_gethostbyname=no
5008 fi
5009 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5010 LIBS=$ac_check_lib_save_LIBS
5011 fi
5012 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
5013 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
5014 if test $ac_cv_lib_nsl_gethostbyname = yes; then
5015   cat >>confdefs.h <<_ACEOF
5016 #define HAVE_LIBNSL 1
5017 _ACEOF
5018
5019   LIBS="-lnsl $LIBS"
5020
5021 fi
5022
5023 fi
5024 done
5025
5026
5027 for ac_func in connect
5028 do
5029 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5030 echo "$as_me:$LINENO: checking for $ac_func" >&5
5031 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5032 if eval "test \"\${$as_ac_var+set}\" = set"; then
5033   echo $ECHO_N "(cached) $ECHO_C" >&6
5034 else
5035   cat >conftest.$ac_ext <<_ACEOF
5036 #line $LINENO "configure"
5037 #include "confdefs.h"
5038 /* System header to define __stub macros and hopefully few prototypes,
5039     which can conflict with char $ac_func (); below.  */
5040 #include <assert.h>
5041 /* Override any gcc2 internal prototype to avoid an error.  */
5042 #ifdef __cplusplus
5043 extern "C"
5044 #endif
5045 /* We use char because int might match the return type of a gcc2
5046    builtin and then its argument prototype would still apply.  */
5047 char $ac_func ();
5048 char (*f) ();
5049
5050 #ifdef F77_DUMMY_MAIN
5051 #  ifdef __cplusplus
5052      extern "C"
5053 #  endif
5054    int F77_DUMMY_MAIN() { return 1; }
5055 #endif
5056 int
5057 main ()
5058 {
5059 /* The GNU C library defines this for functions which it implements
5060     to always fail with ENOSYS.  Some functions are actually named
5061     something starting with __ and the normal name is an alias.  */
5062 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5063 choke me
5064 #else
5065 f = $ac_func;
5066 #endif
5067
5068   ;
5069   return 0;
5070 }
5071 _ACEOF
5072 rm -f conftest.$ac_objext conftest$ac_exeext
5073 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5074   (eval $ac_link) 2>&5
5075   ac_status=$?
5076   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5077   (exit $ac_status); } &&
5078          { ac_try='test -s conftest$ac_exeext'
5079   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5080   (eval $ac_try) 2>&5
5081   ac_status=$?
5082   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5083   (exit $ac_status); }; }; then
5084   eval "$as_ac_var=yes"
5085 else
5086   echo "$as_me: failed program was:" >&5
5087 cat conftest.$ac_ext >&5
5088 eval "$as_ac_var=no"
5089 fi
5090 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5091 fi
5092 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5093 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5094 if test `eval echo '${'$as_ac_var'}'` = yes; then
5095   cat >>confdefs.h <<_ACEOF
5096 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5097 _ACEOF
5098
5099 else
5100
5101 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
5102 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
5103 if test "${ac_cv_lib_socket_connect+set}" = set; then
5104   echo $ECHO_N "(cached) $ECHO_C" >&6
5105 else
5106   ac_check_lib_save_LIBS=$LIBS
5107 LIBS="-lsocket  $LIBS"
5108 cat >conftest.$ac_ext <<_ACEOF
5109 #line $LINENO "configure"
5110 #include "confdefs.h"
5111
5112 /* Override any gcc2 internal prototype to avoid an error.  */
5113 #ifdef __cplusplus
5114 extern "C"
5115 #endif
5116 /* We use char because int might match the return type of a gcc2
5117    builtin and then its argument prototype would still apply.  */
5118 char connect ();
5119 #ifdef F77_DUMMY_MAIN
5120 #  ifdef __cplusplus
5121      extern "C"
5122 #  endif
5123    int F77_DUMMY_MAIN() { return 1; }
5124 #endif
5125 int
5126 main ()
5127 {
5128 connect ();
5129   ;
5130   return 0;
5131 }
5132 _ACEOF
5133 rm -f conftest.$ac_objext conftest$ac_exeext
5134 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5135   (eval $ac_link) 2>&5
5136   ac_status=$?
5137   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5138   (exit $ac_status); } &&
5139          { ac_try='test -s conftest$ac_exeext'
5140   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5141   (eval $ac_try) 2>&5
5142   ac_status=$?
5143   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5144   (exit $ac_status); }; }; then
5145   ac_cv_lib_socket_connect=yes
5146 else
5147   echo "$as_me: failed program was:" >&5
5148 cat conftest.$ac_ext >&5
5149 ac_cv_lib_socket_connect=no
5150 fi
5151 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5152 LIBS=$ac_check_lib_save_LIBS
5153 fi
5154 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
5155 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
5156 if test $ac_cv_lib_socket_connect = yes; then
5157   cat >>confdefs.h <<_ACEOF
5158 #define HAVE_LIBSOCKET 1
5159 _ACEOF
5160
5161   LIBS="-lsocket $LIBS"
5162
5163 fi
5164
5165 fi
5166 done
5167
5168
5169 for ac_func in inet_aton
5170 do
5171 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5172 echo "$as_me:$LINENO: checking for $ac_func" >&5
5173 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5174 if eval "test \"\${$as_ac_var+set}\" = set"; then
5175   echo $ECHO_N "(cached) $ECHO_C" >&6
5176 else
5177   cat >conftest.$ac_ext <<_ACEOF
5178 #line $LINENO "configure"
5179 #include "confdefs.h"
5180 /* System header to define __stub macros and hopefully few prototypes,
5181     which can conflict with char $ac_func (); below.  */
5182 #include <assert.h>
5183 /* Override any gcc2 internal prototype to avoid an error.  */
5184 #ifdef __cplusplus
5185 extern "C"
5186 #endif
5187 /* We use char because int might match the return type of a gcc2
5188    builtin and then its argument prototype would still apply.  */
5189 char $ac_func ();
5190 char (*f) ();
5191
5192 #ifdef F77_DUMMY_MAIN
5193 #  ifdef __cplusplus
5194      extern "C"
5195 #  endif
5196    int F77_DUMMY_MAIN() { return 1; }
5197 #endif
5198 int
5199 main ()
5200 {
5201 /* The GNU C library defines this for functions which it implements
5202     to always fail with ENOSYS.  Some functions are actually named
5203     something starting with __ and the normal name is an alias.  */
5204 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5205 choke me
5206 #else
5207 f = $ac_func;
5208 #endif
5209
5210   ;
5211   return 0;
5212 }
5213 _ACEOF
5214 rm -f conftest.$ac_objext conftest$ac_exeext
5215 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5216   (eval $ac_link) 2>&5
5217   ac_status=$?
5218   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5219   (exit $ac_status); } &&
5220          { ac_try='test -s conftest$ac_exeext'
5221   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5222   (eval $ac_try) 2>&5
5223   ac_status=$?
5224   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5225   (exit $ac_status); }; }; then
5226   eval "$as_ac_var=yes"
5227 else
5228   echo "$as_me: failed program was:" >&5
5229 cat conftest.$ac_ext >&5
5230 eval "$as_ac_var=no"
5231 fi
5232 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5233 fi
5234 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5235 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5236 if test `eval echo '${'$as_ac_var'}'` = yes; then
5237   cat >>confdefs.h <<_ACEOF
5238 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5239 _ACEOF
5240
5241 else
5242
5243 echo "$as_me:$LINENO: checking for inet_aton in -lresolv" >&5
5244 echo $ECHO_N "checking for inet_aton in -lresolv... $ECHO_C" >&6
5245 if test "${ac_cv_lib_resolv_inet_aton+set}" = set; then
5246   echo $ECHO_N "(cached) $ECHO_C" >&6
5247 else
5248   ac_check_lib_save_LIBS=$LIBS
5249 LIBS="-lresolv  $LIBS"
5250 cat >conftest.$ac_ext <<_ACEOF
5251 #line $LINENO "configure"
5252 #include "confdefs.h"
5253
5254 /* Override any gcc2 internal prototype to avoid an error.  */
5255 #ifdef __cplusplus
5256 extern "C"
5257 #endif
5258 /* We use char because int might match the return type of a gcc2
5259    builtin and then its argument prototype would still apply.  */
5260 char inet_aton ();
5261 #ifdef F77_DUMMY_MAIN
5262 #  ifdef __cplusplus
5263      extern "C"
5264 #  endif
5265    int F77_DUMMY_MAIN() { return 1; }
5266 #endif
5267 int
5268 main ()
5269 {
5270 inet_aton ();
5271   ;
5272   return 0;
5273 }
5274 _ACEOF
5275 rm -f conftest.$ac_objext conftest$ac_exeext
5276 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5277   (eval $ac_link) 2>&5
5278   ac_status=$?
5279   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5280   (exit $ac_status); } &&
5281          { ac_try='test -s conftest$ac_exeext'
5282   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5283   (eval $ac_try) 2>&5
5284   ac_status=$?
5285   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5286   (exit $ac_status); }; }; then
5287   ac_cv_lib_resolv_inet_aton=yes
5288 else
5289   echo "$as_me: failed program was:" >&5
5290 cat conftest.$ac_ext >&5
5291 ac_cv_lib_resolv_inet_aton=no
5292 fi
5293 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5294 LIBS=$ac_check_lib_save_LIBS
5295 fi
5296 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_aton" >&5
5297 echo "${ECHO_T}$ac_cv_lib_resolv_inet_aton" >&6
5298 if test $ac_cv_lib_resolv_inet_aton = yes; then
5299   cat >>confdefs.h <<_ACEOF
5300 #define HAVE_LIBRESOLV 1
5301 _ACEOF
5302
5303   LIBS="-lresolv $LIBS"
5304
5305 fi
5306
5307 fi
5308 done
5309
5310
5311 echo "$as_me:$LINENO: checking for _xpg4_setrunelocale in -lxpg4" >&5
5312 echo $ECHO_N "checking for _xpg4_setrunelocale in -lxpg4... $ECHO_C" >&6
5313 if test "${ac_cv_lib_xpg4__xpg4_setrunelocale+set}" = set; then
5314   echo $ECHO_N "(cached) $ECHO_C" >&6
5315 else
5316   ac_check_lib_save_LIBS=$LIBS
5317 LIBS="-lxpg4  $LIBS"
5318 cat >conftest.$ac_ext <<_ACEOF
5319 #line $LINENO "configure"
5320 #include "confdefs.h"
5321
5322 /* Override any gcc2 internal prototype to avoid an error.  */
5323 #ifdef __cplusplus
5324 extern "C"
5325 #endif
5326 /* We use char because int might match the return type of a gcc2
5327    builtin and then its argument prototype would still apply.  */
5328 char _xpg4_setrunelocale ();
5329 #ifdef F77_DUMMY_MAIN
5330 #  ifdef __cplusplus
5331      extern "C"
5332 #  endif
5333    int F77_DUMMY_MAIN() { return 1; }
5334 #endif
5335 int
5336 main ()
5337 {
5338 _xpg4_setrunelocale ();
5339   ;
5340   return 0;
5341 }
5342 _ACEOF
5343 rm -f conftest.$ac_objext conftest$ac_exeext
5344 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5345   (eval $ac_link) 2>&5
5346   ac_status=$?
5347   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5348   (exit $ac_status); } &&
5349          { ac_try='test -s conftest$ac_exeext'
5350   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5351   (eval $ac_try) 2>&5
5352   ac_status=$?
5353   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5354   (exit $ac_status); }; }; then
5355   ac_cv_lib_xpg4__xpg4_setrunelocale=yes
5356 else
5357   echo "$as_me: failed program was:" >&5
5358 cat conftest.$ac_ext >&5
5359 ac_cv_lib_xpg4__xpg4_setrunelocale=no
5360 fi
5361 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5362 LIBS=$ac_check_lib_save_LIBS
5363 fi
5364 echo "$as_me:$LINENO: result: $ac_cv_lib_xpg4__xpg4_setrunelocale" >&5
5365 echo "${ECHO_T}$ac_cv_lib_xpg4__xpg4_setrunelocale" >&6
5366 if test $ac_cv_lib_xpg4__xpg4_setrunelocale = yes; then
5367   cat >>confdefs.h <<_ACEOF
5368 #define HAVE_LIBXPG4 1
5369 _ACEOF
5370
5371   LIBS="-lxpg4 $LIBS"
5372
5373 fi
5374
5375
5376 echo "$as_me:$LINENO: checking for mmap in -lmmap" >&5
5377 echo $ECHO_N "checking for mmap in -lmmap... $ECHO_C" >&6
5378 if test "${ac_cv_lib_mmap_mmap+set}" = set; then
5379   echo $ECHO_N "(cached) $ECHO_C" >&6
5380 else
5381   ac_check_lib_save_LIBS=$LIBS
5382 LIBS="-lmmap  $LIBS"
5383 cat >conftest.$ac_ext <<_ACEOF
5384 #line $LINENO "configure"
5385 #include "confdefs.h"
5386
5387 /* Override any gcc2 internal prototype to avoid an error.  */
5388 #ifdef __cplusplus
5389 extern "C"
5390 #endif
5391 /* We use char because int might match the return type of a gcc2
5392    builtin and then its argument prototype would still apply.  */
5393 char mmap ();
5394 #ifdef F77_DUMMY_MAIN
5395 #  ifdef __cplusplus
5396      extern "C"
5397 #  endif
5398    int F77_DUMMY_MAIN() { return 1; }
5399 #endif
5400 int
5401 main ()
5402 {
5403 mmap ();
5404   ;
5405   return 0;
5406 }
5407 _ACEOF
5408 rm -f conftest.$ac_objext conftest$ac_exeext
5409 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5410   (eval $ac_link) 2>&5
5411   ac_status=$?
5412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5413   (exit $ac_status); } &&
5414          { ac_try='test -s conftest$ac_exeext'
5415   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5416   (eval $ac_try) 2>&5
5417   ac_status=$?
5418   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5419   (exit $ac_status); }; }; then
5420   ac_cv_lib_mmap_mmap=yes
5421 else
5422   echo "$as_me: failed program was:" >&5
5423 cat conftest.$ac_ext >&5
5424 ac_cv_lib_mmap_mmap=no
5425 fi
5426 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5427 LIBS=$ac_check_lib_save_LIBS
5428 fi
5429 echo "$as_me:$LINENO: result: $ac_cv_lib_mmap_mmap" >&5
5430 echo "${ECHO_T}$ac_cv_lib_mmap_mmap" >&6
5431 if test $ac_cv_lib_mmap_mmap = yes; then
5432   cat >>confdefs.h <<_ACEOF
5433 #define HAVE_LIBMMAP 1
5434 _ACEOF
5435
5436   LIBS="-lmmap $LIBS"
5437
5438 fi
5439
5440
5441 JPEGLIB=""
5442
5443 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5444 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5445 if test "${ac_cv_header_stdc+set}" = set; then
5446   echo $ECHO_N "(cached) $ECHO_C" >&6
5447 else
5448   cat >conftest.$ac_ext <<_ACEOF
5449 #line $LINENO "configure"
5450 #include "confdefs.h"
5451 #include <stdlib.h>
5452 #include <stdarg.h>
5453 #include <string.h>
5454 #include <float.h>
5455
5456 _ACEOF
5457 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5458   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5459   ac_status=$?
5460   egrep -v '^ *\+' conftest.er1 >conftest.err
5461   rm -f conftest.er1
5462   cat conftest.err >&5
5463   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5464   (exit $ac_status); } >/dev/null; then
5465   if test -s conftest.err; then
5466     ac_cpp_err=$ac_c_preproc_warn_flag
5467   else
5468     ac_cpp_err=
5469   fi
5470 else
5471   ac_cpp_err=yes
5472 fi
5473 if test -z "$ac_cpp_err"; then
5474   ac_cv_header_stdc=yes
5475 else
5476   echo "$as_me: failed program was:" >&5
5477   cat conftest.$ac_ext >&5
5478   ac_cv_header_stdc=no
5479 fi
5480 rm -f conftest.err conftest.$ac_ext
5481
5482 if test $ac_cv_header_stdc = yes; then
5483   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5484   cat >conftest.$ac_ext <<_ACEOF
5485 #line $LINENO "configure"
5486 #include "confdefs.h"
5487 #include <string.h>
5488
5489 _ACEOF
5490 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5491   egrep "memchr" >/dev/null 2>&1; then
5492   :
5493 else
5494   ac_cv_header_stdc=no
5495 fi
5496 rm -f conftest*
5497
5498 fi
5499
5500 if test $ac_cv_header_stdc = yes; then
5501   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5502   cat >conftest.$ac_ext <<_ACEOF
5503 #line $LINENO "configure"
5504 #include "confdefs.h"
5505 #include <stdlib.h>
5506
5507 _ACEOF
5508 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5509   egrep "free" >/dev/null 2>&1; then
5510   :
5511 else
5512   ac_cv_header_stdc=no
5513 fi
5514 rm -f conftest*
5515
5516 fi
5517
5518 if test $ac_cv_header_stdc = yes; then
5519   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5520   if test "$cross_compiling" = yes; then
5521   :
5522 else
5523   cat >conftest.$ac_ext <<_ACEOF
5524 #line $LINENO "configure"
5525 #include "confdefs.h"
5526 #include <ctype.h>
5527 #if ((' ' & 0x0FF) == 0x020)
5528 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5529 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5530 #else
5531 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
5532                      || ('j' <= (c) && (c) <= 'r') \
5533                      || ('s' <= (c) && (c) <= 'z'))
5534 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5535 #endif
5536
5537 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5538 int
5539 main ()
5540 {
5541   int i;
5542   for (i = 0; i < 256; i++)
5543     if (XOR (islower (i), ISLOWER (i))
5544         || toupper (i) != TOUPPER (i))
5545       exit(2);
5546   exit (0);
5547 }
5548 _ACEOF
5549 rm -f conftest$ac_exeext
5550 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5551   (eval $ac_link) 2>&5
5552   ac_status=$?
5553   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5554   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5555   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5556   (eval $ac_try) 2>&5
5557   ac_status=$?
5558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5559   (exit $ac_status); }; }; then
5560   :
5561 else
5562   echo "$as_me: program exited with status $ac_status" >&5
5563 echo "$as_me: failed program was:" >&5
5564 cat conftest.$ac_ext >&5
5565 ( exit $ac_status )
5566 ac_cv_header_stdc=no
5567 fi
5568 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5569 fi
5570 fi
5571 fi
5572 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5573 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5574 if test $ac_cv_header_stdc = yes; then
5575
5576 cat >>confdefs.h <<\_ACEOF
5577 #define STDC_HEADERS 1
5578 _ACEOF
5579
5580 fi
5581
5582 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5583
5584
5585
5586
5587
5588
5589
5590
5591
5592 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5593                   inttypes.h stdint.h unistd.h
5594 do
5595 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5596 echo "$as_me:$LINENO: checking for $ac_header" >&5
5597 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5598 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5599   echo $ECHO_N "(cached) $ECHO_C" >&6
5600 else
5601   cat >conftest.$ac_ext <<_ACEOF
5602 #line $LINENO "configure"
5603 #include "confdefs.h"
5604 $ac_includes_default
5605
5606 #include <$ac_header>
5607 _ACEOF
5608 rm -f conftest.$ac_objext
5609 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5610   (eval $ac_compile) 2>&5
5611   ac_status=$?
5612   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5613   (exit $ac_status); } &&
5614          { ac_try='test -s conftest.$ac_objext'
5615   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5616   (eval $ac_try) 2>&5
5617   ac_status=$?
5618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5619   (exit $ac_status); }; }; then
5620   eval "$as_ac_Header=yes"
5621 else
5622   echo "$as_me: failed program was:" >&5
5623 cat conftest.$ac_ext >&5
5624 eval "$as_ac_Header=no"
5625 fi
5626 rm -f conftest.$ac_objext conftest.$ac_ext
5627 fi
5628 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5629 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5630 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5631   cat >>confdefs.h <<_ACEOF
5632 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5633 _ACEOF
5634
5635 fi
5636
5637 done
5638
5639
5640
5641 for ac_header in jpeglib.h
5642 do
5643 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5644 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5645   echo "$as_me:$LINENO: checking for $ac_header" >&5
5646 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5647 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5648   echo $ECHO_N "(cached) $ECHO_C" >&6
5649 fi
5650 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5651 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5652 else
5653   # Is the header compilable?
5654 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5655 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5656 cat >conftest.$ac_ext <<_ACEOF
5657 #line $LINENO "configure"
5658 #include "confdefs.h"
5659 $ac_includes_default
5660 #include <$ac_header>
5661 _ACEOF
5662 rm -f conftest.$ac_objext
5663 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5664   (eval $ac_compile) 2>&5
5665   ac_status=$?
5666   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5667   (exit $ac_status); } &&
5668          { ac_try='test -s conftest.$ac_objext'
5669   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5670   (eval $ac_try) 2>&5
5671   ac_status=$?
5672   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5673   (exit $ac_status); }; }; then
5674   ac_header_compiler=yes
5675 else
5676   echo "$as_me: failed program was:" >&5
5677 cat conftest.$ac_ext >&5
5678 ac_header_compiler=no
5679 fi
5680 rm -f conftest.$ac_objext conftest.$ac_ext
5681 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5682 echo "${ECHO_T}$ac_header_compiler" >&6
5683
5684 # Is the header present?
5685 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5686 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5687 cat >conftest.$ac_ext <<_ACEOF
5688 #line $LINENO "configure"
5689 #include "confdefs.h"
5690 #include <$ac_header>
5691 _ACEOF
5692 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5693   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5694   ac_status=$?
5695   egrep -v '^ *\+' conftest.er1 >conftest.err
5696   rm -f conftest.er1
5697   cat conftest.err >&5
5698   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5699   (exit $ac_status); } >/dev/null; then
5700   if test -s conftest.err; then
5701     ac_cpp_err=$ac_c_preproc_warn_flag
5702   else
5703     ac_cpp_err=
5704   fi
5705 else
5706   ac_cpp_err=yes
5707 fi
5708 if test -z "$ac_cpp_err"; then
5709   ac_header_preproc=yes
5710 else
5711   echo "$as_me: failed program was:" >&5
5712   cat conftest.$ac_ext >&5
5713   ac_header_preproc=no
5714 fi
5715 rm -f conftest.err conftest.$ac_ext
5716 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5717 echo "${ECHO_T}$ac_header_preproc" >&6
5718
5719 # So?  What about this header?
5720 case $ac_header_compiler:$ac_header_preproc in
5721   yes:no )
5722     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5723 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5724     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5725 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
5726   no:yes )
5727     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5728 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5729     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5730 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5731     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5732 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
5733 esac
5734 echo "$as_me:$LINENO: checking for $ac_header" >&5
5735 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5736 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5737   echo $ECHO_N "(cached) $ECHO_C" >&6
5738 else
5739   eval "$as_ac_Header=$ac_header_preproc"
5740 fi
5741 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5742 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5743
5744 fi
5745 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5746   cat >>confdefs.h <<_ACEOF
5747 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5748 _ACEOF
5749  echo "$as_me:$LINENO: checking for jpeg_start_decompress in -ljpeg" >&5
5750 echo $ECHO_N "checking for jpeg_start_decompress in -ljpeg... $ECHO_C" >&6
5751 if test "${ac_cv_lib_jpeg_jpeg_start_decompress+set}" = set; then
5752   echo $ECHO_N "(cached) $ECHO_C" >&6
5753 else
5754   ac_check_lib_save_LIBS=$LIBS
5755 LIBS="-ljpeg  $LIBS"
5756 cat >conftest.$ac_ext <<_ACEOF
5757 #line $LINENO "configure"
5758 #include "confdefs.h"
5759
5760 /* Override any gcc2 internal prototype to avoid an error.  */
5761 #ifdef __cplusplus
5762 extern "C"
5763 #endif
5764 /* We use char because int might match the return type of a gcc2
5765    builtin and then its argument prototype would still apply.  */
5766 char jpeg_start_decompress ();
5767 #ifdef F77_DUMMY_MAIN
5768 #  ifdef __cplusplus
5769      extern "C"
5770 #  endif
5771    int F77_DUMMY_MAIN() { return 1; }
5772 #endif
5773 int
5774 main ()
5775 {
5776 jpeg_start_decompress ();
5777   ;
5778   return 0;
5779 }
5780 _ACEOF
5781 rm -f conftest.$ac_objext conftest$ac_exeext
5782 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5783   (eval $ac_link) 2>&5
5784   ac_status=$?
5785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5786   (exit $ac_status); } &&
5787          { ac_try='test -s conftest$ac_exeext'
5788   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5789   (eval $ac_try) 2>&5
5790   ac_status=$?
5791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5792   (exit $ac_status); }; }; then
5793   ac_cv_lib_jpeg_jpeg_start_decompress=yes
5794 else
5795   echo "$as_me: failed program was:" >&5
5796 cat conftest.$ac_ext >&5
5797 ac_cv_lib_jpeg_jpeg_start_decompress=no
5798 fi
5799 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5800 LIBS=$ac_check_lib_save_LIBS
5801 fi
5802 echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_start_decompress" >&5
5803 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_start_decompress" >&6
5804 if test $ac_cv_lib_jpeg_jpeg_start_decompress = yes; then
5805
5806 cat >>confdefs.h <<\_ACEOF
5807 #define HAVE_LIBJPEG 1
5808 _ACEOF
5809
5810         JPEGLIB="-ljpeg"
5811
5812 fi
5813
5814
5815 fi
5816
5817 done
5818
5819
5820
5821
5822
5823 XFILES=""
5824
5825 OPENGLFILES=""
5826
5827 GLU32FILES=""
5828 if test "$have_x" = "yes"
5829 then
5830     XLIB="-lXext -lX11"
5831     ac_save_CPPFLAGS="$CPPFLAGS"
5832     CPPFLAGS="$CPPFLAGS $X_CFLAGS"
5833
5834
5835 for ac_header in X11/Xlib.h
5836 do
5837 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5838 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5839   echo "$as_me:$LINENO: checking for $ac_header" >&5
5840 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5841 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5842   echo $ECHO_N "(cached) $ECHO_C" >&6
5843 fi
5844 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5845 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5846 else
5847   # Is the header compilable?
5848 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5849 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5850 cat >conftest.$ac_ext <<_ACEOF
5851 #line $LINENO "configure"
5852 #include "confdefs.h"
5853 $ac_includes_default
5854 #include <$ac_header>
5855 _ACEOF
5856 rm -f conftest.$ac_objext
5857 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5858   (eval $ac_compile) 2>&5
5859   ac_status=$?
5860   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5861   (exit $ac_status); } &&
5862          { ac_try='test -s conftest.$ac_objext'
5863   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5864   (eval $ac_try) 2>&5
5865   ac_status=$?
5866   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5867   (exit $ac_status); }; }; then
5868   ac_header_compiler=yes
5869 else
5870   echo "$as_me: failed program was:" >&5
5871 cat conftest.$ac_ext >&5
5872 ac_header_compiler=no
5873 fi
5874 rm -f conftest.$ac_objext conftest.$ac_ext
5875 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5876 echo "${ECHO_T}$ac_header_compiler" >&6
5877
5878 # Is the header present?
5879 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5880 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5881 cat >conftest.$ac_ext <<_ACEOF
5882 #line $LINENO "configure"
5883 #include "confdefs.h"
5884 #include <$ac_header>
5885 _ACEOF
5886 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5887   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5888   ac_status=$?
5889   egrep -v '^ *\+' conftest.er1 >conftest.err
5890   rm -f conftest.er1
5891   cat conftest.err >&5
5892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5893   (exit $ac_status); } >/dev/null; then
5894   if test -s conftest.err; then
5895     ac_cpp_err=$ac_c_preproc_warn_flag
5896   else
5897     ac_cpp_err=
5898   fi
5899 else
5900   ac_cpp_err=yes
5901 fi
5902 if test -z "$ac_cpp_err"; then
5903   ac_header_preproc=yes
5904 else
5905   echo "$as_me: failed program was:" >&5
5906   cat conftest.$ac_ext >&5
5907   ac_header_preproc=no
5908 fi
5909 rm -f conftest.err conftest.$ac_ext
5910 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5911 echo "${ECHO_T}$ac_header_preproc" >&6
5912
5913 # So?  What about this header?
5914 case $ac_header_compiler:$ac_header_preproc in
5915   yes:no )
5916     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5917 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5918     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5919 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
5920   no:yes )
5921     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5922 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5923     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5924 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5925     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5926 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
5927 esac
5928 echo "$as_me:$LINENO: checking for $ac_header" >&5
5929 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5930 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5931   echo $ECHO_N "(cached) $ECHO_C" >&6
5932 else
5933   eval "$as_ac_Header=$ac_header_preproc"
5934 fi
5935 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5936 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5937
5938 fi
5939 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5940   cat >>confdefs.h <<_ACEOF
5941 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5942 _ACEOF
5943
5944
5945 for ac_header in X11/XKBlib.h
5946 do
5947 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5948 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5949   echo "$as_me:$LINENO: checking for $ac_header" >&5
5950 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5951 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5952   echo $ECHO_N "(cached) $ECHO_C" >&6
5953 fi
5954 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5955 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5956 else
5957   # Is the header compilable?
5958 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5959 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5960 cat >conftest.$ac_ext <<_ACEOF
5961 #line $LINENO "configure"
5962 #include "confdefs.h"
5963 $ac_includes_default
5964 #include <$ac_header>
5965 _ACEOF
5966 rm -f conftest.$ac_objext
5967 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5968   (eval $ac_compile) 2>&5
5969   ac_status=$?
5970   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5971   (exit $ac_status); } &&
5972          { ac_try='test -s conftest.$ac_objext'
5973   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5974   (eval $ac_try) 2>&5
5975   ac_status=$?
5976   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5977   (exit $ac_status); }; }; then
5978   ac_header_compiler=yes
5979 else
5980   echo "$as_me: failed program was:" >&5
5981 cat conftest.$ac_ext >&5
5982 ac_header_compiler=no
5983 fi
5984 rm -f conftest.$ac_objext conftest.$ac_ext
5985 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5986 echo "${ECHO_T}$ac_header_compiler" >&6
5987
5988 # Is the header present?
5989 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5990 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5991 cat >conftest.$ac_ext <<_ACEOF
5992 #line $LINENO "configure"
5993 #include "confdefs.h"
5994 #include <$ac_header>
5995 _ACEOF
5996 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5997   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5998   ac_status=$?
5999   egrep -v '^ *\+' conftest.er1 >conftest.err
6000   rm -f conftest.er1
6001   cat conftest.err >&5
6002   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6003   (exit $ac_status); } >/dev/null; then
6004   if test -s conftest.err; then
6005     ac_cpp_err=$ac_c_preproc_warn_flag
6006   else
6007     ac_cpp_err=
6008   fi
6009 else
6010   ac_cpp_err=yes
6011 fi
6012 if test -z "$ac_cpp_err"; then
6013   ac_header_preproc=yes
6014 else
6015   echo "$as_me: failed program was:" >&5
6016   cat conftest.$ac_ext >&5
6017   ac_header_preproc=no
6018 fi
6019 rm -f conftest.err conftest.$ac_ext
6020 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6021 echo "${ECHO_T}$ac_header_preproc" >&6
6022
6023 # So?  What about this header?
6024 case $ac_header_compiler:$ac_header_preproc in
6025   yes:no )
6026     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6027 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6028     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6029 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
6030   no:yes )
6031     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6032 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6033     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6034 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6035     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6036 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
6037 esac
6038 echo "$as_me:$LINENO: checking for $ac_header" >&5
6039 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6040 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6041   echo $ECHO_N "(cached) $ECHO_C" >&6
6042 else
6043   eval "$as_ac_Header=$ac_header_preproc"
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
6048 fi
6049 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6050   cat >>confdefs.h <<_ACEOF
6051 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6052 _ACEOF
6053                 echo "$as_me:$LINENO: checking for XkbQueryExtension in -lX11" >&5
6054 echo $ECHO_N "checking for XkbQueryExtension in -lX11... $ECHO_C" >&6
6055 if test "${ac_cv_lib_X11_XkbQueryExtension+set}" = set; then
6056   echo $ECHO_N "(cached) $ECHO_C" >&6
6057 else
6058   ac_check_lib_save_LIBS=$LIBS
6059 LIBS="-lX11 $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
6060 cat >conftest.$ac_ext <<_ACEOF
6061 #line $LINENO "configure"
6062 #include "confdefs.h"
6063
6064 /* Override any gcc2 internal prototype to avoid an error.  */
6065 #ifdef __cplusplus
6066 extern "C"
6067 #endif
6068 /* We use char because int might match the return type of a gcc2
6069    builtin and then its argument prototype would still apply.  */
6070 char XkbQueryExtension ();
6071 #ifdef F77_DUMMY_MAIN
6072 #  ifdef __cplusplus
6073      extern "C"
6074 #  endif
6075    int F77_DUMMY_MAIN() { return 1; }
6076 #endif
6077 int
6078 main ()
6079 {
6080 XkbQueryExtension ();
6081   ;
6082   return 0;
6083 }
6084 _ACEOF
6085 rm -f conftest.$ac_objext conftest$ac_exeext
6086 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6087   (eval $ac_link) 2>&5
6088   ac_status=$?
6089   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6090   (exit $ac_status); } &&
6091          { ac_try='test -s conftest$ac_exeext'
6092   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6093   (eval $ac_try) 2>&5
6094   ac_status=$?
6095   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6096   (exit $ac_status); }; }; then
6097   ac_cv_lib_X11_XkbQueryExtension=yes
6098 else
6099   echo "$as_me: failed program was:" >&5
6100 cat conftest.$ac_ext >&5
6101 ac_cv_lib_X11_XkbQueryExtension=no
6102 fi
6103 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6104 LIBS=$ac_check_lib_save_LIBS
6105 fi
6106 echo "$as_me:$LINENO: result: $ac_cv_lib_X11_XkbQueryExtension" >&5
6107 echo "${ECHO_T}$ac_cv_lib_X11_XkbQueryExtension" >&6
6108 if test $ac_cv_lib_X11_XkbQueryExtension = yes; then
6109
6110 cat >>confdefs.h <<\_ACEOF
6111 #define HAVE_XKB 1
6112 _ACEOF
6113
6114 fi
6115
6116
6117 else
6118   { echo "$as_me:$LINENO: WARNING: Xkb extension not found, Wine will be built without it" >&5
6119 echo "$as_me: WARNING: Xkb extension not found, Wine will be built without it" >&2;}
6120
6121 fi
6122
6123 done
6124
6125
6126
6127 for ac_header in X11/extensions/XShm.h
6128 do
6129 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6130 echo "$as_me:$LINENO: checking for $ac_header" >&5
6131 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6132 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6133   echo $ECHO_N "(cached) $ECHO_C" >&6
6134 else
6135   cat >conftest.$ac_ext <<_ACEOF
6136 #line $LINENO "configure"
6137 #include "confdefs.h"
6138 #include <X11/Xlib.h>
6139
6140 #include <$ac_header>
6141 _ACEOF
6142 rm -f conftest.$ac_objext
6143 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6144   (eval $ac_compile) 2>&5
6145   ac_status=$?
6146   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6147   (exit $ac_status); } &&
6148          { ac_try='test -s conftest.$ac_objext'
6149   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6150   (eval $ac_try) 2>&5
6151   ac_status=$?
6152   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6153   (exit $ac_status); }; }; then
6154   eval "$as_ac_Header=yes"
6155 else
6156   echo "$as_me: failed program was:" >&5
6157 cat conftest.$ac_ext >&5
6158 eval "$as_ac_Header=no"
6159 fi
6160 rm -f conftest.$ac_objext conftest.$ac_ext
6161 fi
6162 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6163 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6164 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6165   cat >>confdefs.h <<_ACEOF
6166 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6167 _ACEOF
6168                 echo "$as_me:$LINENO: checking for XShmQueryExtension in -lXext" >&5
6169 echo $ECHO_N "checking for XShmQueryExtension in -lXext... $ECHO_C" >&6
6170 if test "${ac_cv_lib_Xext_XShmQueryExtension+set}" = set; then
6171   echo $ECHO_N "(cached) $ECHO_C" >&6
6172 else
6173   ac_check_lib_save_LIBS=$LIBS
6174 LIBS="-lXext $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
6175 cat >conftest.$ac_ext <<_ACEOF
6176 #line $LINENO "configure"
6177 #include "confdefs.h"
6178
6179 /* Override any gcc2 internal prototype to avoid an error.  */
6180 #ifdef __cplusplus
6181 extern "C"
6182 #endif
6183 /* We use char because int might match the return type of a gcc2
6184    builtin and then its argument prototype would still apply.  */
6185 char XShmQueryExtension ();
6186 #ifdef F77_DUMMY_MAIN
6187 #  ifdef __cplusplus
6188      extern "C"
6189 #  endif
6190    int F77_DUMMY_MAIN() { return 1; }
6191 #endif
6192 int
6193 main ()
6194 {
6195 XShmQueryExtension ();
6196   ;
6197   return 0;
6198 }
6199 _ACEOF
6200 rm -f conftest.$ac_objext conftest$ac_exeext
6201 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6202   (eval $ac_link) 2>&5
6203   ac_status=$?
6204   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6205   (exit $ac_status); } &&
6206          { ac_try='test -s conftest$ac_exeext'
6207   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6208   (eval $ac_try) 2>&5
6209   ac_status=$?
6210   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6211   (exit $ac_status); }; }; then
6212   ac_cv_lib_Xext_XShmQueryExtension=yes
6213 else
6214   echo "$as_me: failed program was:" >&5
6215 cat conftest.$ac_ext >&5
6216 ac_cv_lib_Xext_XShmQueryExtension=no
6217 fi
6218 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6219 LIBS=$ac_check_lib_save_LIBS
6220 fi
6221 echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShmQueryExtension" >&5
6222 echo "${ECHO_T}$ac_cv_lib_Xext_XShmQueryExtension" >&6
6223 if test $ac_cv_lib_Xext_XShmQueryExtension = yes; then
6224
6225 cat >>confdefs.h <<\_ACEOF
6226 #define HAVE_LIBXXSHM 1
6227 _ACEOF
6228
6229 fi
6230
6231
6232 else
6233   { echo "$as_me:$LINENO: WARNING: XShm extension not found, Wine will be built without it" >&5
6234 echo "$as_me: WARNING: XShm extension not found, Wine will be built without it" >&2;}
6235 fi
6236
6237 done
6238
6239
6240
6241 for ac_header in X11/extensions/shape.h
6242 do
6243 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6244 echo "$as_me:$LINENO: checking for $ac_header" >&5
6245 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6246 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6247   echo $ECHO_N "(cached) $ECHO_C" >&6
6248 else
6249   cat >conftest.$ac_ext <<_ACEOF
6250 #line $LINENO "configure"
6251 #include "confdefs.h"
6252 #include <X11/Xlib.h>
6253
6254 #include <$ac_header>
6255 _ACEOF
6256 rm -f conftest.$ac_objext
6257 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6258   (eval $ac_compile) 2>&5
6259   ac_status=$?
6260   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6261   (exit $ac_status); } &&
6262          { ac_try='test -s conftest.$ac_objext'
6263   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6264   (eval $ac_try) 2>&5
6265   ac_status=$?
6266   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6267   (exit $ac_status); }; }; then
6268   eval "$as_ac_Header=yes"
6269 else
6270   echo "$as_me: failed program was:" >&5
6271 cat conftest.$ac_ext >&5
6272 eval "$as_ac_Header=no"
6273 fi
6274 rm -f conftest.$ac_objext conftest.$ac_ext
6275 fi
6276 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6277 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6278 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6279   cat >>confdefs.h <<_ACEOF
6280 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6281 _ACEOF
6282                 echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
6283 echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6
6284 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
6285   echo $ECHO_N "(cached) $ECHO_C" >&6
6286 else
6287   ac_check_lib_save_LIBS=$LIBS
6288 LIBS="-lXext $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
6289 cat >conftest.$ac_ext <<_ACEOF
6290 #line $LINENO "configure"
6291 #include "confdefs.h"
6292
6293 /* Override any gcc2 internal prototype to avoid an error.  */
6294 #ifdef __cplusplus
6295 extern "C"
6296 #endif
6297 /* We use char because int might match the return type of a gcc2
6298    builtin and then its argument prototype would still apply.  */
6299 char XShapeQueryExtension ();
6300 #ifdef F77_DUMMY_MAIN
6301 #  ifdef __cplusplus
6302      extern "C"
6303 #  endif
6304    int F77_DUMMY_MAIN() { return 1; }
6305 #endif
6306 int
6307 main ()
6308 {
6309 XShapeQueryExtension ();
6310   ;
6311   return 0;
6312 }
6313 _ACEOF
6314 rm -f conftest.$ac_objext conftest$ac_exeext
6315 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6316   (eval $ac_link) 2>&5
6317   ac_status=$?
6318   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6319   (exit $ac_status); } &&
6320          { ac_try='test -s conftest$ac_exeext'
6321   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6322   (eval $ac_try) 2>&5
6323   ac_status=$?
6324   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6325   (exit $ac_status); }; }; then
6326   ac_cv_lib_Xext_XShapeQueryExtension=yes
6327 else
6328   echo "$as_me: failed program was:" >&5
6329 cat conftest.$ac_ext >&5
6330 ac_cv_lib_Xext_XShapeQueryExtension=no
6331 fi
6332 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6333 LIBS=$ac_check_lib_save_LIBS
6334 fi
6335 echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
6336 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6
6337 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
6338
6339 cat >>confdefs.h <<\_ACEOF
6340 #define HAVE_LIBXSHAPE 1
6341 _ACEOF
6342
6343 fi
6344
6345
6346 else
6347   { echo "$as_me:$LINENO: WARNING: XShape extension not found, Wine will be built without it" >&5
6348 echo "$as_me: WARNING: XShape extension not found, Wine will be built without it" >&2;}
6349 fi
6350
6351 done
6352
6353
6354
6355 for ac_header in X11/extensions/xf86dga.h
6356 do
6357 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6358 echo "$as_me:$LINENO: checking for $ac_header" >&5
6359 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6360 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6361   echo $ECHO_N "(cached) $ECHO_C" >&6
6362 else
6363   cat >conftest.$ac_ext <<_ACEOF
6364 #line $LINENO "configure"
6365 #include "confdefs.h"
6366 #include <X11/Xlib.h>
6367
6368 #include <$ac_header>
6369 _ACEOF
6370 rm -f conftest.$ac_objext
6371 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6372   (eval $ac_compile) 2>&5
6373   ac_status=$?
6374   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6375   (exit $ac_status); } &&
6376          { ac_try='test -s conftest.$ac_objext'
6377   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6378   (eval $ac_try) 2>&5
6379   ac_status=$?
6380   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6381   (exit $ac_status); }; }; then
6382   eval "$as_ac_Header=yes"
6383 else
6384   echo "$as_me: failed program was:" >&5
6385 cat conftest.$ac_ext >&5
6386 eval "$as_ac_Header=no"
6387 fi
6388 rm -f conftest.$ac_objext conftest.$ac_ext
6389 fi
6390 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6391 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6392 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6393   cat >>confdefs.h <<_ACEOF
6394 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6395 _ACEOF
6396                               echo "$as_me:$LINENO: checking for XDGAQueryExtension in -lXxf86dga" >&5
6397 echo $ECHO_N "checking for XDGAQueryExtension in -lXxf86dga... $ECHO_C" >&6
6398 if test "${ac_cv_lib_Xxf86dga_XDGAQueryExtension+set}" = set; then
6399   echo $ECHO_N "(cached) $ECHO_C" >&6
6400 else
6401   ac_check_lib_save_LIBS=$LIBS
6402 LIBS="-lXxf86dga $X_LIBS -lXext -lX11 $X_EXTRA_LIBS
6403                $LIBS"
6404 cat >conftest.$ac_ext <<_ACEOF
6405 #line $LINENO "configure"
6406 #include "confdefs.h"
6407
6408 /* Override any gcc2 internal prototype to avoid an error.  */
6409 #ifdef __cplusplus
6410 extern "C"
6411 #endif
6412 /* We use char because int might match the return type of a gcc2
6413    builtin and then its argument prototype would still apply.  */
6414 char XDGAQueryExtension ();
6415 #ifdef F77_DUMMY_MAIN
6416 #  ifdef __cplusplus
6417      extern "C"
6418 #  endif
6419    int F77_DUMMY_MAIN() { return 1; }
6420 #endif
6421 int
6422 main ()
6423 {
6424 XDGAQueryExtension ();
6425   ;
6426   return 0;
6427 }
6428 _ACEOF
6429 rm -f conftest.$ac_objext conftest$ac_exeext
6430 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6431   (eval $ac_link) 2>&5
6432   ac_status=$?
6433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6434   (exit $ac_status); } &&
6435          { ac_try='test -s conftest$ac_exeext'
6436   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6437   (eval $ac_try) 2>&5
6438   ac_status=$?
6439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6440   (exit $ac_status); }; }; then
6441   ac_cv_lib_Xxf86dga_XDGAQueryExtension=yes
6442 else
6443   echo "$as_me: failed program was:" >&5
6444 cat conftest.$ac_ext >&5
6445 ac_cv_lib_Xxf86dga_XDGAQueryExtension=no
6446 fi
6447 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6448 LIBS=$ac_check_lib_save_LIBS
6449 fi
6450 echo "$as_me:$LINENO: result: $ac_cv_lib_Xxf86dga_XDGAQueryExtension" >&5
6451 echo "${ECHO_T}$ac_cv_lib_Xxf86dga_XDGAQueryExtension" >&6
6452 if test $ac_cv_lib_Xxf86dga_XDGAQueryExtension = yes; then
6453
6454 cat >>confdefs.h <<\_ACEOF
6455 #define HAVE_LIBXXF86DGA2 1
6456 _ACEOF
6457
6458                   X_PRE_LIBS="$X_PRE_LIBS -lXxf86dga"
6459
6460 else
6461                                        echo "$as_me:$LINENO: checking for XF86DGAQueryExtension in -lXxf86dga" >&5
6462 echo $ECHO_N "checking for XF86DGAQueryExtension in -lXxf86dga... $ECHO_C" >&6
6463 if test "${ac_cv_lib_Xxf86dga_XF86DGAQueryExtension+set}" = set; then
6464   echo $ECHO_N "(cached) $ECHO_C" >&6
6465 else
6466   ac_check_lib_save_LIBS=$LIBS
6467 LIBS="-lXxf86dga $X_LIBS -lXext -lX11 $X_EXTRA_LIBS
6468                    $LIBS"
6469 cat >conftest.$ac_ext <<_ACEOF
6470 #line $LINENO "configure"
6471 #include "confdefs.h"
6472
6473 /* Override any gcc2 internal prototype to avoid an error.  */
6474 #ifdef __cplusplus
6475 extern "C"
6476 #endif
6477 /* We use char because int might match the return type of a gcc2
6478    builtin and then its argument prototype would still apply.  */
6479 char XF86DGAQueryExtension ();
6480 #ifdef F77_DUMMY_MAIN
6481 #  ifdef __cplusplus
6482      extern "C"
6483 #  endif
6484    int F77_DUMMY_MAIN() { return 1; }
6485 #endif
6486 int
6487 main ()
6488 {
6489 XF86DGAQueryExtension ();
6490   ;
6491   return 0;
6492 }
6493 _ACEOF
6494 rm -f conftest.$ac_objext conftest$ac_exeext
6495 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6496   (eval $ac_link) 2>&5
6497   ac_status=$?
6498   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6499   (exit $ac_status); } &&
6500          { ac_try='test -s conftest$ac_exeext'
6501   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6502   (eval $ac_try) 2>&5
6503   ac_status=$?
6504   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6505   (exit $ac_status); }; }; then
6506   ac_cv_lib_Xxf86dga_XF86DGAQueryExtension=yes
6507 else
6508   echo "$as_me: failed program was:" >&5
6509 cat conftest.$ac_ext >&5
6510 ac_cv_lib_Xxf86dga_XF86DGAQueryExtension=no
6511 fi
6512 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6513 LIBS=$ac_check_lib_save_LIBS
6514 fi
6515 echo "$as_me:$LINENO: result: $ac_cv_lib_Xxf86dga_XF86DGAQueryExtension" >&5
6516 echo "${ECHO_T}$ac_cv_lib_Xxf86dga_XF86DGAQueryExtension" >&6
6517 if test $ac_cv_lib_Xxf86dga_XF86DGAQueryExtension = yes; then
6518
6519 cat >>confdefs.h <<\_ACEOF
6520 #define HAVE_LIBXXF86DGA 1
6521 _ACEOF
6522
6523                       X_PRE_LIBS="$X_PRE_LIBS -lXxf86dga"
6524
6525 fi
6526
6527
6528 fi
6529
6530
6531 else
6532   { echo "$as_me:$LINENO: WARNING: DGA extension not found, Wine will be built without it" >&5
6533 echo "$as_me: WARNING: DGA extension not found, Wine will be built without it" >&2;}
6534 fi
6535
6536 done
6537
6538
6539
6540 for ac_header in X11/extensions/xf86vmode.h
6541 do
6542 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6543 echo "$as_me:$LINENO: checking for $ac_header" >&5
6544 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6545 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6546   echo $ECHO_N "(cached) $ECHO_C" >&6
6547 else
6548   cat >conftest.$ac_ext <<_ACEOF
6549 #line $LINENO "configure"
6550 #include "confdefs.h"
6551 #include <X11/Xlib.h>
6552
6553 #include <$ac_header>
6554 _ACEOF
6555 rm -f conftest.$ac_objext
6556 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6557   (eval $ac_compile) 2>&5
6558   ac_status=$?
6559   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6560   (exit $ac_status); } &&
6561          { ac_try='test -s conftest.$ac_objext'
6562   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6563   (eval $ac_try) 2>&5
6564   ac_status=$?
6565   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6566   (exit $ac_status); }; }; then
6567   eval "$as_ac_Header=yes"
6568 else
6569   echo "$as_me: failed program was:" >&5
6570 cat conftest.$ac_ext >&5
6571 eval "$as_ac_Header=no"
6572 fi
6573 rm -f conftest.$ac_objext conftest.$ac_ext
6574 fi
6575 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6576 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6577 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6578   cat >>confdefs.h <<_ACEOF
6579 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6580 _ACEOF
6581                   echo "$as_me:$LINENO: checking for XF86VidModeQueryExtension in -lXxf86vm" >&5
6582 echo $ECHO_N "checking for XF86VidModeQueryExtension in -lXxf86vm... $ECHO_C" >&6
6583 if test "${ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension+set}" = set; then
6584   echo $ECHO_N "(cached) $ECHO_C" >&6
6585 else
6586   ac_check_lib_save_LIBS=$LIBS
6587 LIBS="-lXxf86vm $X_LIBS -lXext -lX11 $X_EXTRA_LIBS
6588                  $LIBS"
6589 cat >conftest.$ac_ext <<_ACEOF
6590 #line $LINENO "configure"
6591 #include "confdefs.h"
6592
6593 /* Override any gcc2 internal prototype to avoid an error.  */
6594 #ifdef __cplusplus
6595 extern "C"
6596 #endif
6597 /* We use char because int might match the return type of a gcc2
6598    builtin and then its argument prototype would still apply.  */
6599 char XF86VidModeQueryExtension ();
6600 #ifdef F77_DUMMY_MAIN
6601 #  ifdef __cplusplus
6602      extern "C"
6603 #  endif
6604    int F77_DUMMY_MAIN() { return 1; }
6605 #endif
6606 int
6607 main ()
6608 {
6609 XF86VidModeQueryExtension ();
6610   ;
6611   return 0;
6612 }
6613 _ACEOF
6614 rm -f conftest.$ac_objext conftest$ac_exeext
6615 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6616   (eval $ac_link) 2>&5
6617   ac_status=$?
6618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6619   (exit $ac_status); } &&
6620          { ac_try='test -s conftest$ac_exeext'
6621   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6622   (eval $ac_try) 2>&5
6623   ac_status=$?
6624   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6625   (exit $ac_status); }; }; then
6626   ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=yes
6627 else
6628   echo "$as_me: failed program was:" >&5
6629 cat conftest.$ac_ext >&5
6630 ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=no
6631 fi
6632 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6633 LIBS=$ac_check_lib_save_LIBS
6634 fi
6635 echo "$as_me:$LINENO: result: $ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&5
6636 echo "${ECHO_T}$ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&6
6637 if test $ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension = yes; then
6638
6639 cat >>confdefs.h <<\_ACEOF
6640 #define HAVE_LIBXXF86VM 1
6641 _ACEOF
6642
6643                      X_PRE_LIBS="$X_PRE_LIBS -lXxf86vm"
6644
6645 fi
6646
6647
6648 else
6649   { echo "$as_me:$LINENO: WARNING: XFree86 VMODE extension not found, Wine will be built without it" >&5
6650 echo "$as_me: WARNING: XFree86 VMODE extension not found, Wine will be built without it" >&2;}
6651 fi
6652
6653 done
6654
6655
6656
6657 for ac_header in X11/extensions/Xvlib.h
6658 do
6659 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6660 echo "$as_me:$LINENO: checking for $ac_header" >&5
6661 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6662 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6663   echo $ECHO_N "(cached) $ECHO_C" >&6
6664 else
6665   cat >conftest.$ac_ext <<_ACEOF
6666 #line $LINENO "configure"
6667 #include "confdefs.h"
6668 #include <X11/Xlib.h>
6669
6670 #include <$ac_header>
6671 _ACEOF
6672 rm -f conftest.$ac_objext
6673 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6674   (eval $ac_compile) 2>&5
6675   ac_status=$?
6676   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6677   (exit $ac_status); } &&
6678          { ac_try='test -s conftest.$ac_objext'
6679   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6680   (eval $ac_try) 2>&5
6681   ac_status=$?
6682   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6683   (exit $ac_status); }; }; then
6684   eval "$as_ac_Header=yes"
6685 else
6686   echo "$as_me: failed program was:" >&5
6687 cat conftest.$ac_ext >&5
6688 eval "$as_ac_Header=no"
6689 fi
6690 rm -f conftest.$ac_objext conftest.$ac_ext
6691 fi
6692 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6693 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6694 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6695   cat >>confdefs.h <<_ACEOF
6696 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6697 _ACEOF
6698                   echo "$as_me:$LINENO: checking for XvShmCreateImage in -lXv" >&5
6699 echo $ECHO_N "checking for XvShmCreateImage in -lXv... $ECHO_C" >&6
6700 if test "${ac_cv_lib_Xv_XvShmCreateImage+set}" = set; then
6701   echo $ECHO_N "(cached) $ECHO_C" >&6
6702 else
6703   ac_check_lib_save_LIBS=$LIBS
6704 LIBS="-lXv $X_LIBS -lXext -lX11 $X_EXTRA_LIBS
6705                  $LIBS"
6706 cat >conftest.$ac_ext <<_ACEOF
6707 #line $LINENO "configure"
6708 #include "confdefs.h"
6709
6710 /* Override any gcc2 internal prototype to avoid an error.  */
6711 #ifdef __cplusplus
6712 extern "C"
6713 #endif
6714 /* We use char because int might match the return type of a gcc2
6715    builtin and then its argument prototype would still apply.  */
6716 char XvShmCreateImage ();
6717 #ifdef F77_DUMMY_MAIN
6718 #  ifdef __cplusplus
6719      extern "C"
6720 #  endif
6721    int F77_DUMMY_MAIN() { return 1; }
6722 #endif
6723 int
6724 main ()
6725 {
6726 XvShmCreateImage ();
6727   ;
6728   return 0;
6729 }
6730 _ACEOF
6731 rm -f conftest.$ac_objext conftest$ac_exeext
6732 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6733   (eval $ac_link) 2>&5
6734   ac_status=$?
6735   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6736   (exit $ac_status); } &&
6737          { ac_try='test -s conftest$ac_exeext'
6738   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6739   (eval $ac_try) 2>&5
6740   ac_status=$?
6741   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6742   (exit $ac_status); }; }; then
6743   ac_cv_lib_Xv_XvShmCreateImage=yes
6744 else
6745   echo "$as_me: failed program was:" >&5
6746 cat conftest.$ac_ext >&5
6747 ac_cv_lib_Xv_XvShmCreateImage=no
6748 fi
6749 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6750 LIBS=$ac_check_lib_save_LIBS
6751 fi
6752 echo "$as_me:$LINENO: result: $ac_cv_lib_Xv_XvShmCreateImage" >&5
6753 echo "${ECHO_T}$ac_cv_lib_Xv_XvShmCreateImage" >&6
6754 if test $ac_cv_lib_Xv_XvShmCreateImage = yes; then
6755
6756 cat >>confdefs.h <<\_ACEOF
6757 #define HAVE_XVIDEO 1
6758 _ACEOF
6759
6760                      X_PRE_LIBS="$X_PRE_LIBS -lXv"
6761
6762 fi
6763
6764
6765 else
6766   { echo "$as_me:$LINENO: WARNING: XVideo extension not found, Wine will be built without it" >&5
6767 echo "$as_me: WARNING: XVideo extension not found, Wine will be built without it" >&2;}
6768 fi
6769
6770 done
6771
6772
6773
6774 for ac_header in X11/extensions/Xrender.h
6775 do
6776 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6777 echo "$as_me:$LINENO: checking for $ac_header" >&5
6778 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6779 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6780   echo $ECHO_N "(cached) $ECHO_C" >&6
6781 else
6782   cat >conftest.$ac_ext <<_ACEOF
6783 #line $LINENO "configure"
6784 #include "confdefs.h"
6785 #include <X11/Xlib.h>
6786
6787 #include <$ac_header>
6788 _ACEOF
6789 rm -f conftest.$ac_objext
6790 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6791   (eval $ac_compile) 2>&5
6792   ac_status=$?
6793   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6794   (exit $ac_status); } &&
6795          { ac_try='test -s conftest.$ac_objext'
6796   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6797   (eval $ac_try) 2>&5
6798   ac_status=$?
6799   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6800   (exit $ac_status); }; }; then
6801   eval "$as_ac_Header=yes"
6802 else
6803   echo "$as_me: failed program was:" >&5
6804 cat conftest.$ac_ext >&5
6805 eval "$as_ac_Header=no"
6806 fi
6807 rm -f conftest.$ac_objext conftest.$ac_ext
6808 fi
6809 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6810 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6811 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6812   cat >>confdefs.h <<_ACEOF
6813 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6814 _ACEOF
6815
6816 fi
6817
6818 done
6819
6820
6821
6822 fi
6823
6824 done
6825
6826         if test "x$enable_opengl" != "xno"
6827     then
6828         if test -f /usr/X11R6/lib/libGL.a -a ! -f /usr/X11R6/lib/libGL.so
6829         then
6830             { { echo "$as_me:$LINENO: error: /usr/X11R6/lib/libGL.a is present on your system.
6831 This prevents linking to OpenGL. Delete the file and restart configure." >&5
6832 echo "$as_me: error: /usr/X11R6/lib/libGL.a is present on your system.
6833 This prevents linking to OpenGL. Delete the file and restart configure." >&2;}
6834    { (exit 1); exit 1; }; }
6835         fi
6836
6837
6838
6839 for ac_header in GL/gl.h GL/glx.h
6840 do
6841 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6842 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6843   echo "$as_me:$LINENO: checking for $ac_header" >&5
6844 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6845 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6846   echo $ECHO_N "(cached) $ECHO_C" >&6
6847 fi
6848 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6849 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6850 else
6851   # Is the header compilable?
6852 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6853 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6854 cat >conftest.$ac_ext <<_ACEOF
6855 #line $LINENO "configure"
6856 #include "confdefs.h"
6857 $ac_includes_default
6858 #include <$ac_header>
6859 _ACEOF
6860 rm -f conftest.$ac_objext
6861 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6862   (eval $ac_compile) 2>&5
6863   ac_status=$?
6864   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6865   (exit $ac_status); } &&
6866          { ac_try='test -s conftest.$ac_objext'
6867   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6868   (eval $ac_try) 2>&5
6869   ac_status=$?
6870   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6871   (exit $ac_status); }; }; then
6872   ac_header_compiler=yes
6873 else
6874   echo "$as_me: failed program was:" >&5
6875 cat conftest.$ac_ext >&5
6876 ac_header_compiler=no
6877 fi
6878 rm -f conftest.$ac_objext conftest.$ac_ext
6879 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6880 echo "${ECHO_T}$ac_header_compiler" >&6
6881
6882 # Is the header present?
6883 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6884 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6885 cat >conftest.$ac_ext <<_ACEOF
6886 #line $LINENO "configure"
6887 #include "confdefs.h"
6888 #include <$ac_header>
6889 _ACEOF
6890 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6891   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6892   ac_status=$?
6893   egrep -v '^ *\+' conftest.er1 >conftest.err
6894   rm -f conftest.er1
6895   cat conftest.err >&5
6896   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6897   (exit $ac_status); } >/dev/null; then
6898   if test -s conftest.err; then
6899     ac_cpp_err=$ac_c_preproc_warn_flag
6900   else
6901     ac_cpp_err=
6902   fi
6903 else
6904   ac_cpp_err=yes
6905 fi
6906 if test -z "$ac_cpp_err"; then
6907   ac_header_preproc=yes
6908 else
6909   echo "$as_me: failed program was:" >&5
6910   cat conftest.$ac_ext >&5
6911   ac_header_preproc=no
6912 fi
6913 rm -f conftest.err conftest.$ac_ext
6914 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6915 echo "${ECHO_T}$ac_header_preproc" >&6
6916
6917 # So?  What about this header?
6918 case $ac_header_compiler:$ac_header_preproc in
6919   yes:no )
6920     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6921 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6922     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6923 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
6924   no:yes )
6925     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6926 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6927     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6928 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6929     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6930 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
6931 esac
6932 echo "$as_me:$LINENO: checking for $ac_header" >&5
6933 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6934 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6935   echo $ECHO_N "(cached) $ECHO_C" >&6
6936 else
6937   eval "$as_ac_Header=$ac_header_preproc"
6938 fi
6939 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6940 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6941
6942 fi
6943 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6944   cat >>confdefs.h <<_ACEOF
6945 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6946 _ACEOF
6947
6948 fi
6949
6950 done
6951
6952         if test "$ac_cv_header_GL_gl_h" = "yes" -a "$ac_cv_header_GL_glx_h" = "yes"
6953         then
6954
6955 for ac_header in GL/glext.h
6956 do
6957 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6958 echo "$as_me:$LINENO: checking for $ac_header" >&5
6959 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6960 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6961   echo $ECHO_N "(cached) $ECHO_C" >&6
6962 else
6963   cat >conftest.$ac_ext <<_ACEOF
6964 #line $LINENO "configure"
6965 #include "confdefs.h"
6966 #include <GL/glx.h>
6967
6968 #include <$ac_header>
6969 _ACEOF
6970 rm -f conftest.$ac_objext
6971 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6972   (eval $ac_compile) 2>&5
6973   ac_status=$?
6974   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6975   (exit $ac_status); } &&
6976          { ac_try='test -s conftest.$ac_objext'
6977   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6978   (eval $ac_try) 2>&5
6979   ac_status=$?
6980   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6981   (exit $ac_status); }; }; then
6982   eval "$as_ac_Header=yes"
6983 else
6984   echo "$as_me: failed program was:" >&5
6985 cat conftest.$ac_ext >&5
6986 eval "$as_ac_Header=no"
6987 fi
6988 rm -f conftest.$ac_objext conftest.$ac_ext
6989 fi
6990 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6991 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6992 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6993   cat >>confdefs.h <<_ACEOF
6994 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6995 _ACEOF
6996
6997 fi
6998
6999 done
7000
7001                     echo "$as_me:$LINENO: checking for up-to-date OpenGL version" >&5
7002 echo $ECHO_N "checking for up-to-date OpenGL version... $ECHO_C" >&6
7003 if test "${wine_cv_opengl_version_OK+set}" = set; then
7004   echo $ECHO_N "(cached) $ECHO_C" >&6
7005 else
7006   cat >conftest.$ac_ext <<_ACEOF
7007 #line $LINENO "configure"
7008 #include "confdefs.h"
7009 #include <GL/gl.h>
7010 #ifdef F77_DUMMY_MAIN
7011 #  ifdef __cplusplus
7012      extern "C"
7013 #  endif
7014    int F77_DUMMY_MAIN() { return 1; }
7015 #endif
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                     echo "$as_me:$LINENO: checking for thread-safe OpenGL version" >&5
7050 echo $ECHO_N "checking for thread-safe OpenGL version... $ECHO_C" >&6
7051 if test "${wine_cv_opengl_version_threadsafe+set}" = set; then
7052   echo $ECHO_N "(cached) $ECHO_C" >&6
7053 else
7054   saved_libs=$LIBS
7055                LIBS="$X_LIBS -lGL"
7056                cat >conftest.$ac_ext <<_ACEOF
7057 #line $LINENO "configure"
7058 #include "confdefs.h"
7059
7060 #ifdef F77_DUMMY_MAIN
7061 #  ifdef __cplusplus
7062      extern "C"
7063 #  endif
7064    int F77_DUMMY_MAIN() { return 1; }
7065 #endif
7066 int
7067 main ()
7068 {
7069 pthread_getspecific();
7070   ;
7071   return 0;
7072 }
7073 _ACEOF
7074 rm -f conftest.$ac_objext conftest$ac_exeext
7075 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7076   (eval $ac_link) 2>&5
7077   ac_status=$?
7078   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7079   (exit $ac_status); } &&
7080          { ac_try='test -s conftest$ac_exeext'
7081   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7082   (eval $ac_try) 2>&5
7083   ac_status=$?
7084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7085   (exit $ac_status); }; }; then
7086   wine_cv_opengl_version_threadsafe="yes"
7087 else
7088   echo "$as_me: failed program was:" >&5
7089 cat conftest.$ac_ext >&5
7090 wine_cv_opengl_version_threadsafe="no"
7091 fi
7092 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7093                LIBS=$saved_libs
7094
7095 fi
7096 echo "$as_me:$LINENO: result: $wine_cv_opengl_version_threadsafe" >&5
7097 echo "${ECHO_T}$wine_cv_opengl_version_threadsafe" >&6
7098
7099             if test "$wine_cv_opengl_version_OK" = "yes" -a \( "$wine_cv_opengl_version_threadsafe" = "no" -o "x$enable_opengl" = "xyes" \)
7100             then
7101                                 echo "$as_me:$LINENO: checking for glXCreateContext in -lGL" >&5
7102 echo $ECHO_N "checking for glXCreateContext in -lGL... $ECHO_C" >&6
7103 if test "${ac_cv_lib_GL_glXCreateContext+set}" = set; then
7104   echo $ECHO_N "(cached) $ECHO_C" >&6
7105 else
7106   ac_check_lib_save_LIBS=$LIBS
7107 LIBS="-lGL $X_LIBS -lXext -lX11 -lm $X_EXTRA_LIBS $LIBS"
7108 cat >conftest.$ac_ext <<_ACEOF
7109 #line $LINENO "configure"
7110 #include "confdefs.h"
7111
7112 /* Override any gcc2 internal prototype to avoid an error.  */
7113 #ifdef __cplusplus
7114 extern "C"
7115 #endif
7116 /* We use char because int might match the return type of a gcc2
7117    builtin and then its argument prototype would still apply.  */
7118 char glXCreateContext ();
7119 #ifdef F77_DUMMY_MAIN
7120 #  ifdef __cplusplus
7121      extern "C"
7122 #  endif
7123    int F77_DUMMY_MAIN() { return 1; }
7124 #endif
7125 int
7126 main ()
7127 {
7128 glXCreateContext ();
7129   ;
7130   return 0;
7131 }
7132 _ACEOF
7133 rm -f conftest.$ac_objext conftest$ac_exeext
7134 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7135   (eval $ac_link) 2>&5
7136   ac_status=$?
7137   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7138   (exit $ac_status); } &&
7139          { ac_try='test -s conftest$ac_exeext'
7140   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7141   (eval $ac_try) 2>&5
7142   ac_status=$?
7143   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7144   (exit $ac_status); }; }; then
7145   ac_cv_lib_GL_glXCreateContext=yes
7146 else
7147   echo "$as_me: failed program was:" >&5
7148 cat conftest.$ac_ext >&5
7149 ac_cv_lib_GL_glXCreateContext=no
7150 fi
7151 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7152 LIBS=$ac_check_lib_save_LIBS
7153 fi
7154 echo "$as_me:$LINENO: result: $ac_cv_lib_GL_glXCreateContext" >&5
7155 echo "${ECHO_T}$ac_cv_lib_GL_glXCreateContext" >&6
7156 if test $ac_cv_lib_GL_glXCreateContext = yes; then
7157   X_PRE_LIBS="$X_PRE_LIBS -lGL"
7158
7159 fi
7160
7161
7162                 if test "$ac_cv_lib_GL_glXCreateContext" = "yes"
7163                 then
7164                         OPENGLFILES='$(OPENGLFILES)'
7165
7166 cat >>confdefs.h <<\_ACEOF
7167 #define HAVE_OPENGL 1
7168 _ACEOF
7169
7170
7171                         echo "$as_me:$LINENO: checking for glXGetProcAddressARB in -lGL" >&5
7172 echo $ECHO_N "checking for glXGetProcAddressARB in -lGL... $ECHO_C" >&6
7173 if test "${ac_cv_lib_GL_glXGetProcAddressARB+set}" = set; then
7174   echo $ECHO_N "(cached) $ECHO_C" >&6
7175 else
7176   ac_check_lib_save_LIBS=$LIBS
7177 LIBS="-lGL $X_LIBS -lXext -lX11 -lm $X_EXTRA_LIBS $LIBS"
7178 cat >conftest.$ac_ext <<_ACEOF
7179 #line $LINENO "configure"
7180 #include "confdefs.h"
7181
7182 /* Override any gcc2 internal prototype to avoid an error.  */
7183 #ifdef __cplusplus
7184 extern "C"
7185 #endif
7186 /* We use char because int might match the return type of a gcc2
7187    builtin and then its argument prototype would still apply.  */
7188 char glXGetProcAddressARB ();
7189 #ifdef F77_DUMMY_MAIN
7190 #  ifdef __cplusplus
7191      extern "C"
7192 #  endif
7193    int F77_DUMMY_MAIN() { return 1; }
7194 #endif
7195 int
7196 main ()
7197 {
7198 glXGetProcAddressARB ();
7199   ;
7200   return 0;
7201 }
7202 _ACEOF
7203 rm -f conftest.$ac_objext conftest$ac_exeext
7204 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7205   (eval $ac_link) 2>&5
7206   ac_status=$?
7207   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7208   (exit $ac_status); } &&
7209          { ac_try='test -s conftest$ac_exeext'
7210   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7211   (eval $ac_try) 2>&5
7212   ac_status=$?
7213   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7214   (exit $ac_status); }; }; then
7215   ac_cv_lib_GL_glXGetProcAddressARB=yes
7216 else
7217   echo "$as_me: failed program was:" >&5
7218 cat conftest.$ac_ext >&5
7219 ac_cv_lib_GL_glXGetProcAddressARB=no
7220 fi
7221 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7222 LIBS=$ac_check_lib_save_LIBS
7223 fi
7224 echo "$as_me:$LINENO: result: $ac_cv_lib_GL_glXGetProcAddressARB" >&5
7225 echo "${ECHO_T}$ac_cv_lib_GL_glXGetProcAddressARB" >&6
7226 if test $ac_cv_lib_GL_glXGetProcAddressARB = yes; then
7227
7228 cat >>confdefs.h <<\_ACEOF
7229 #define HAVE_GLX_GETPROCADDRESS 1
7230 _ACEOF
7231
7232 fi
7233
7234
7235                         if test "$ac_cv_lib_GL_glXGetProcAddressARB" = "yes"
7236                         then
7237                                echo "$as_me:$LINENO: checking for OpenGL extension functions prototypes" >&5
7238 echo $ECHO_N "checking for OpenGL extension functions prototypes... $ECHO_C" >&6
7239 if test "${wine_cv_extension_prototypes+set}" = set; then
7240   echo $ECHO_N "(cached) $ECHO_C" >&6
7241 else
7242   cat >conftest.$ac_ext <<_ACEOF
7243 #line $LINENO "configure"
7244 #include "confdefs.h"
7245 #include <GL/gl.h>
7246                                                   #ifdef HAVE_GL_GLEXT_H
7247                                                   # include <GL/glext.h>
7248                                                   #endif
7249
7250 #ifdef F77_DUMMY_MAIN
7251 #  ifdef __cplusplus
7252      extern "C"
7253 #  endif
7254    int F77_DUMMY_MAIN() { return 1; }
7255 #endif
7256 int
7257 main ()
7258 {
7259 PFNGLCOLORTABLEEXTPROC test_proc;
7260   ;
7261   return 0;
7262 }
7263 _ACEOF
7264 rm -f conftest.$ac_objext
7265 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7266   (eval $ac_compile) 2>&5
7267   ac_status=$?
7268   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7269   (exit $ac_status); } &&
7270          { ac_try='test -s conftest.$ac_objext'
7271   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7272   (eval $ac_try) 2>&5
7273   ac_status=$?
7274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7275   (exit $ac_status); }; }; then
7276   wine_cv_extension_prototypes="yes"
7277 else
7278   echo "$as_me: failed program was:" >&5
7279 cat conftest.$ac_ext >&5
7280 wine_cv_extension_prototypes="no"
7281
7282 fi
7283 rm -f conftest.$ac_objext conftest.$ac_ext
7284
7285 fi
7286 echo "$as_me:$LINENO: result: $wine_cv_extension_prototypes" >&5
7287 echo "${ECHO_T}$wine_cv_extension_prototypes" >&6
7288                                 if test "$wine_cv_extension_prototypes" = "yes"
7289                                 then
7290
7291 cat >>confdefs.h <<\_ACEOF
7292 #define HAVE_GLEXT_PROTOTYPES 1
7293 _ACEOF
7294
7295                                 fi
7296                         fi
7297
7298                 fi
7299                                 echo "$as_me:$LINENO: checking for gluLookAt in -lGLU" >&5
7300 echo $ECHO_N "checking for gluLookAt in -lGLU... $ECHO_C" >&6
7301 if test "${ac_cv_lib_GLU_gluLookAt+set}" = set; then
7302   echo $ECHO_N "(cached) $ECHO_C" >&6
7303 else
7304   ac_check_lib_save_LIBS=$LIBS
7305 LIBS="-lGLU $X_LIBS $X_PRE_LIBS -lXext -lX11 -lm $X_EXTRA_LIBS
7306                  $LIBS"
7307 cat >conftest.$ac_ext <<_ACEOF
7308 #line $LINENO "configure"
7309 #include "confdefs.h"
7310
7311 /* Override any gcc2 internal prototype to avoid an error.  */
7312 #ifdef __cplusplus
7313 extern "C"
7314 #endif
7315 /* We use char because int might match the return type of a gcc2
7316    builtin and then its argument prototype would still apply.  */
7317 char gluLookAt ();
7318 #ifdef F77_DUMMY_MAIN
7319 #  ifdef __cplusplus
7320      extern "C"
7321 #  endif
7322    int F77_DUMMY_MAIN() { return 1; }
7323 #endif
7324 int
7325 main ()
7326 {
7327 gluLookAt ();
7328   ;
7329   return 0;
7330 }
7331 _ACEOF
7332 rm -f conftest.$ac_objext conftest$ac_exeext
7333 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7334   (eval $ac_link) 2>&5
7335   ac_status=$?
7336   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7337   (exit $ac_status); } &&
7338          { ac_try='test -s conftest$ac_exeext'
7339   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7340   (eval $ac_try) 2>&5
7341   ac_status=$?
7342   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7343   (exit $ac_status); }; }; then
7344   ac_cv_lib_GLU_gluLookAt=yes
7345 else
7346   echo "$as_me: failed program was:" >&5
7347 cat conftest.$ac_ext >&5
7348 ac_cv_lib_GLU_gluLookAt=no
7349 fi
7350 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7351 LIBS=$ac_check_lib_save_LIBS
7352 fi
7353 echo "$as_me:$LINENO: result: $ac_cv_lib_GLU_gluLookAt" >&5
7354 echo "${ECHO_T}$ac_cv_lib_GLU_gluLookAt" >&6
7355 if test $ac_cv_lib_GLU_gluLookAt = yes; then
7356   X_PRE_LIBS="$X_PRE_LIBS -lGLU"
7357                              GLU32FILES='$(GLU32FILES)'
7358
7359 fi
7360
7361              fi
7362          fi
7363     fi
7364
7365     CPPFLAGS="$ac_save_CPPFLAGS"
7366     XFILES='$(XFILES)'
7367 else
7368     XLIB=""
7369     X_CFLAGS=""
7370     X_LIBS=""
7371 fi
7372
7373 CURSESLIBS=""
7374 if test "x$with_curses" != "xno"
7375 then
7376
7377 for ac_header in ncurses.h
7378 do
7379 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7380 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7381   echo "$as_me:$LINENO: checking for $ac_header" >&5
7382 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7383 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7384   echo $ECHO_N "(cached) $ECHO_C" >&6
7385 fi
7386 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7387 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7388 else
7389   # Is the header compilable?
7390 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7391 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7392 cat >conftest.$ac_ext <<_ACEOF
7393 #line $LINENO "configure"
7394 #include "confdefs.h"
7395 $ac_includes_default
7396 #include <$ac_header>
7397 _ACEOF
7398 rm -f conftest.$ac_objext
7399 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7400   (eval $ac_compile) 2>&5
7401   ac_status=$?
7402   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7403   (exit $ac_status); } &&
7404          { ac_try='test -s conftest.$ac_objext'
7405   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7406   (eval $ac_try) 2>&5
7407   ac_status=$?
7408   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7409   (exit $ac_status); }; }; then
7410   ac_header_compiler=yes
7411 else
7412   echo "$as_me: failed program was:" >&5
7413 cat conftest.$ac_ext >&5
7414 ac_header_compiler=no
7415 fi
7416 rm -f conftest.$ac_objext conftest.$ac_ext
7417 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7418 echo "${ECHO_T}$ac_header_compiler" >&6
7419
7420 # Is the header present?
7421 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7422 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7423 cat >conftest.$ac_ext <<_ACEOF
7424 #line $LINENO "configure"
7425 #include "confdefs.h"
7426 #include <$ac_header>
7427 _ACEOF
7428 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7429   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7430   ac_status=$?
7431   egrep -v '^ *\+' conftest.er1 >conftest.err
7432   rm -f conftest.er1
7433   cat conftest.err >&5
7434   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7435   (exit $ac_status); } >/dev/null; then
7436   if test -s conftest.err; then
7437     ac_cpp_err=$ac_c_preproc_warn_flag
7438   else
7439     ac_cpp_err=
7440   fi
7441 else
7442   ac_cpp_err=yes
7443 fi
7444 if test -z "$ac_cpp_err"; then
7445   ac_header_preproc=yes
7446 else
7447   echo "$as_me: failed program was:" >&5
7448   cat conftest.$ac_ext >&5
7449   ac_header_preproc=no
7450 fi
7451 rm -f conftest.err conftest.$ac_ext
7452 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7453 echo "${ECHO_T}$ac_header_preproc" >&6
7454
7455 # So?  What about this header?
7456 case $ac_header_compiler:$ac_header_preproc in
7457   yes:no )
7458     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7459 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7460     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7461 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7462   no:yes )
7463     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7464 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7465     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7466 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7467     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7468 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7469 esac
7470 echo "$as_me:$LINENO: checking for $ac_header" >&5
7471 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7472 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7473   echo $ECHO_N "(cached) $ECHO_C" >&6
7474 else
7475   eval "$as_ac_Header=$ac_header_preproc"
7476 fi
7477 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7478 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7479
7480 fi
7481 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7482   cat >>confdefs.h <<_ACEOF
7483 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7484 _ACEOF
7485  echo "$as_me:$LINENO: checking for waddch in -lncurses" >&5
7486 echo $ECHO_N "checking for waddch in -lncurses... $ECHO_C" >&6
7487 if test "${ac_cv_lib_ncurses_waddch+set}" = set; then
7488   echo $ECHO_N "(cached) $ECHO_C" >&6
7489 else
7490   ac_check_lib_save_LIBS=$LIBS
7491 LIBS="-lncurses  $LIBS"
7492 cat >conftest.$ac_ext <<_ACEOF
7493 #line $LINENO "configure"
7494 #include "confdefs.h"
7495
7496 /* Override any gcc2 internal prototype to avoid an error.  */
7497 #ifdef __cplusplus
7498 extern "C"
7499 #endif
7500 /* We use char because int might match the return type of a gcc2
7501    builtin and then its argument prototype would still apply.  */
7502 char waddch ();
7503 #ifdef F77_DUMMY_MAIN
7504 #  ifdef __cplusplus
7505      extern "C"
7506 #  endif
7507    int F77_DUMMY_MAIN() { return 1; }
7508 #endif
7509 int
7510 main ()
7511 {
7512 waddch ();
7513   ;
7514   return 0;
7515 }
7516 _ACEOF
7517 rm -f conftest.$ac_objext conftest$ac_exeext
7518 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7519   (eval $ac_link) 2>&5
7520   ac_status=$?
7521   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7522   (exit $ac_status); } &&
7523          { ac_try='test -s conftest$ac_exeext'
7524   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7525   (eval $ac_try) 2>&5
7526   ac_status=$?
7527   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7528   (exit $ac_status); }; }; then
7529   ac_cv_lib_ncurses_waddch=yes
7530 else
7531   echo "$as_me: failed program was:" >&5
7532 cat conftest.$ac_ext >&5
7533 ac_cv_lib_ncurses_waddch=no
7534 fi
7535 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7536 LIBS=$ac_check_lib_save_LIBS
7537 fi
7538 echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_waddch" >&5
7539 echo "${ECHO_T}$ac_cv_lib_ncurses_waddch" >&6
7540 if test $ac_cv_lib_ncurses_waddch = yes; then
7541
7542 cat >>confdefs.h <<\_ACEOF
7543 #define HAVE_LIBNCURSES 1
7544 _ACEOF
7545
7546              CURSESLIBS="-lncurses"
7547 else
7548
7549 for ac_header in curses.h
7550 do
7551 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7552 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7553   echo "$as_me:$LINENO: checking for $ac_header" >&5
7554 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7555 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7556   echo $ECHO_N "(cached) $ECHO_C" >&6
7557 fi
7558 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7559 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7560 else
7561   # Is the header compilable?
7562 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7563 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7564 cat >conftest.$ac_ext <<_ACEOF
7565 #line $LINENO "configure"
7566 #include "confdefs.h"
7567 $ac_includes_default
7568 #include <$ac_header>
7569 _ACEOF
7570 rm -f conftest.$ac_objext
7571 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7572   (eval $ac_compile) 2>&5
7573   ac_status=$?
7574   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7575   (exit $ac_status); } &&
7576          { ac_try='test -s conftest.$ac_objext'
7577   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7578   (eval $ac_try) 2>&5
7579   ac_status=$?
7580   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7581   (exit $ac_status); }; }; then
7582   ac_header_compiler=yes
7583 else
7584   echo "$as_me: failed program was:" >&5
7585 cat conftest.$ac_ext >&5
7586 ac_header_compiler=no
7587 fi
7588 rm -f conftest.$ac_objext conftest.$ac_ext
7589 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7590 echo "${ECHO_T}$ac_header_compiler" >&6
7591
7592 # Is the header present?
7593 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7594 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7595 cat >conftest.$ac_ext <<_ACEOF
7596 #line $LINENO "configure"
7597 #include "confdefs.h"
7598 #include <$ac_header>
7599 _ACEOF
7600 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7601   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7602   ac_status=$?
7603   egrep -v '^ *\+' conftest.er1 >conftest.err
7604   rm -f conftest.er1
7605   cat conftest.err >&5
7606   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7607   (exit $ac_status); } >/dev/null; then
7608   if test -s conftest.err; then
7609     ac_cpp_err=$ac_c_preproc_warn_flag
7610   else
7611     ac_cpp_err=
7612   fi
7613 else
7614   ac_cpp_err=yes
7615 fi
7616 if test -z "$ac_cpp_err"; then
7617   ac_header_preproc=yes
7618 else
7619   echo "$as_me: failed program was:" >&5
7620   cat conftest.$ac_ext >&5
7621   ac_header_preproc=no
7622 fi
7623 rm -f conftest.err conftest.$ac_ext
7624 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7625 echo "${ECHO_T}$ac_header_preproc" >&6
7626
7627 # So?  What about this header?
7628 case $ac_header_compiler:$ac_header_preproc in
7629   yes:no )
7630     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7631 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7632     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7633 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7634   no:yes )
7635     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7636 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7637     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7638 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7639     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7640 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7641 esac
7642 echo "$as_me:$LINENO: checking for $ac_header" >&5
7643 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7644 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7645   echo $ECHO_N "(cached) $ECHO_C" >&6
7646 else
7647   eval "$as_ac_Header=$ac_header_preproc"
7648 fi
7649 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7650 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7651
7652 fi
7653 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7654   cat >>confdefs.h <<_ACEOF
7655 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7656 _ACEOF
7657  echo "$as_me:$LINENO: checking for waddch in -lcurses" >&5
7658 echo $ECHO_N "checking for waddch in -lcurses... $ECHO_C" >&6
7659 if test "${ac_cv_lib_curses_waddch+set}" = set; then
7660   echo $ECHO_N "(cached) $ECHO_C" >&6
7661 else
7662   ac_check_lib_save_LIBS=$LIBS
7663 LIBS="-lcurses  $LIBS"
7664 cat >conftest.$ac_ext <<_ACEOF
7665 #line $LINENO "configure"
7666 #include "confdefs.h"
7667
7668 /* Override any gcc2 internal prototype to avoid an error.  */
7669 #ifdef __cplusplus
7670 extern "C"
7671 #endif
7672 /* We use char because int might match the return type of a gcc2
7673    builtin and then its argument prototype would still apply.  */
7674 char waddch ();
7675 #ifdef F77_DUMMY_MAIN
7676 #  ifdef __cplusplus
7677      extern "C"
7678 #  endif
7679    int F77_DUMMY_MAIN() { return 1; }
7680 #endif
7681 int
7682 main ()
7683 {
7684 waddch ();
7685   ;
7686   return 0;
7687 }
7688 _ACEOF
7689 rm -f conftest.$ac_objext conftest$ac_exeext
7690 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7691   (eval $ac_link) 2>&5
7692   ac_status=$?
7693   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7694   (exit $ac_status); } &&
7695          { ac_try='test -s conftest$ac_exeext'
7696   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7697   (eval $ac_try) 2>&5
7698   ac_status=$?
7699   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7700   (exit $ac_status); }; }; then
7701   ac_cv_lib_curses_waddch=yes
7702 else
7703   echo "$as_me: failed program was:" >&5
7704 cat conftest.$ac_ext >&5
7705 ac_cv_lib_curses_waddch=no
7706 fi
7707 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7708 LIBS=$ac_check_lib_save_LIBS
7709 fi
7710 echo "$as_me:$LINENO: result: $ac_cv_lib_curses_waddch" >&5
7711 echo "${ECHO_T}$ac_cv_lib_curses_waddch" >&6
7712 if test $ac_cv_lib_curses_waddch = yes; then
7713
7714 cat >>confdefs.h <<\_ACEOF
7715 #define HAVE_LIBCURSES 1
7716 _ACEOF
7717
7718                       CURSESLIBS="-lcurses"
7719 fi
7720
7721 fi
7722
7723 done
7724
7725 fi
7726
7727 fi
7728
7729 done
7730
7731     saved_libs="$LIBS"
7732     LIBS="$CURSESLIBS $LIBS"
7733
7734
7735 for ac_func in getbkgd resizeterm
7736 do
7737 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7738 echo "$as_me:$LINENO: checking for $ac_func" >&5
7739 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7740 if eval "test \"\${$as_ac_var+set}\" = set"; then
7741   echo $ECHO_N "(cached) $ECHO_C" >&6
7742 else
7743   cat >conftest.$ac_ext <<_ACEOF
7744 #line $LINENO "configure"
7745 #include "confdefs.h"
7746 /* System header to define __stub macros and hopefully few prototypes,
7747     which can conflict with char $ac_func (); below.  */
7748 #include <assert.h>
7749 /* Override any gcc2 internal prototype to avoid an error.  */
7750 #ifdef __cplusplus
7751 extern "C"
7752 #endif
7753 /* We use char because int might match the return type of a gcc2
7754    builtin and then its argument prototype would still apply.  */
7755 char $ac_func ();
7756 char (*f) ();
7757
7758 #ifdef F77_DUMMY_MAIN
7759 #  ifdef __cplusplus
7760      extern "C"
7761 #  endif
7762    int F77_DUMMY_MAIN() { return 1; }
7763 #endif
7764 int
7765 main ()
7766 {
7767 /* The GNU C library defines this for functions which it implements
7768     to always fail with ENOSYS.  Some functions are actually named
7769     something starting with __ and the normal name is an alias.  */
7770 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7771 choke me
7772 #else
7773 f = $ac_func;
7774 #endif
7775
7776   ;
7777   return 0;
7778 }
7779 _ACEOF
7780 rm -f conftest.$ac_objext conftest$ac_exeext
7781 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7782   (eval $ac_link) 2>&5
7783   ac_status=$?
7784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7785   (exit $ac_status); } &&
7786          { ac_try='test -s conftest$ac_exeext'
7787   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7788   (eval $ac_try) 2>&5
7789   ac_status=$?
7790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7791   (exit $ac_status); }; }; then
7792   eval "$as_ac_var=yes"
7793 else
7794   echo "$as_me: failed program was:" >&5
7795 cat conftest.$ac_ext >&5
7796 eval "$as_ac_var=no"
7797 fi
7798 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7799 fi
7800 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7801 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7802 if test `eval echo '${'$as_ac_var'}'` = yes; then
7803   cat >>confdefs.h <<_ACEOF
7804 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7805 _ACEOF
7806
7807 fi
7808 done
7809
7810     LIBS="$saved_libs"
7811 fi
7812
7813
7814 CUPSLIBS=""
7815 wine_cv_warn_cups_h=no
7816 echo "$as_me:$LINENO: checking for cupsGetPPD in -lcups" >&5
7817 echo $ECHO_N "checking for cupsGetPPD in -lcups... $ECHO_C" >&6
7818 if test "${ac_cv_lib_cups_cupsGetPPD+set}" = set; then
7819   echo $ECHO_N "(cached) $ECHO_C" >&6
7820 else
7821   ac_check_lib_save_LIBS=$LIBS
7822 LIBS="-lcups  $LIBS"
7823 cat >conftest.$ac_ext <<_ACEOF
7824 #line $LINENO "configure"
7825 #include "confdefs.h"
7826
7827 /* Override any gcc2 internal prototype to avoid an error.  */
7828 #ifdef __cplusplus
7829 extern "C"
7830 #endif
7831 /* We use char because int might match the return type of a gcc2
7832    builtin and then its argument prototype would still apply.  */
7833 char cupsGetPPD ();
7834 #ifdef F77_DUMMY_MAIN
7835 #  ifdef __cplusplus
7836      extern "C"
7837 #  endif
7838    int F77_DUMMY_MAIN() { return 1; }
7839 #endif
7840 int
7841 main ()
7842 {
7843 cupsGetPPD ();
7844   ;
7845   return 0;
7846 }
7847 _ACEOF
7848 rm -f conftest.$ac_objext conftest$ac_exeext
7849 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7850   (eval $ac_link) 2>&5
7851   ac_status=$?
7852   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7853   (exit $ac_status); } &&
7854          { ac_try='test -s conftest$ac_exeext'
7855   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7856   (eval $ac_try) 2>&5
7857   ac_status=$?
7858   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7859   (exit $ac_status); }; }; then
7860   ac_cv_lib_cups_cupsGetPPD=yes
7861 else
7862   echo "$as_me: failed program was:" >&5
7863 cat conftest.$ac_ext >&5
7864 ac_cv_lib_cups_cupsGetPPD=no
7865 fi
7866 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7867 LIBS=$ac_check_lib_save_LIBS
7868 fi
7869 echo "$as_me:$LINENO: result: $ac_cv_lib_cups_cupsGetPPD" >&5
7870 echo "${ECHO_T}$ac_cv_lib_cups_cupsGetPPD" >&6
7871 if test $ac_cv_lib_cups_cupsGetPPD = yes; then
7872   if test "${ac_cv_header_cups_cups_h+set}" = set; then
7873   echo "$as_me:$LINENO: checking for cups/cups.h" >&5
7874 echo $ECHO_N "checking for cups/cups.h... $ECHO_C" >&6
7875 if test "${ac_cv_header_cups_cups_h+set}" = set; then
7876   echo $ECHO_N "(cached) $ECHO_C" >&6
7877 fi
7878 echo "$as_me:$LINENO: result: $ac_cv_header_cups_cups_h" >&5
7879 echo "${ECHO_T}$ac_cv_header_cups_cups_h" >&6
7880 else
7881   # Is the header compilable?
7882 echo "$as_me:$LINENO: checking cups/cups.h usability" >&5
7883 echo $ECHO_N "checking cups/cups.h usability... $ECHO_C" >&6
7884 cat >conftest.$ac_ext <<_ACEOF
7885 #line $LINENO "configure"
7886 #include "confdefs.h"
7887 $ac_includes_default
7888 #include <cups/cups.h>
7889 _ACEOF
7890 rm -f conftest.$ac_objext
7891 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7892   (eval $ac_compile) 2>&5
7893   ac_status=$?
7894   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7895   (exit $ac_status); } &&
7896          { ac_try='test -s conftest.$ac_objext'
7897   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7898   (eval $ac_try) 2>&5
7899   ac_status=$?
7900   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7901   (exit $ac_status); }; }; then
7902   ac_header_compiler=yes
7903 else
7904   echo "$as_me: failed program was:" >&5
7905 cat conftest.$ac_ext >&5
7906 ac_header_compiler=no
7907 fi
7908 rm -f conftest.$ac_objext conftest.$ac_ext
7909 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7910 echo "${ECHO_T}$ac_header_compiler" >&6
7911
7912 # Is the header present?
7913 echo "$as_me:$LINENO: checking cups/cups.h presence" >&5
7914 echo $ECHO_N "checking cups/cups.h presence... $ECHO_C" >&6
7915 cat >conftest.$ac_ext <<_ACEOF
7916 #line $LINENO "configure"
7917 #include "confdefs.h"
7918 #include <cups/cups.h>
7919 _ACEOF
7920 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7921   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7922   ac_status=$?
7923   egrep -v '^ *\+' conftest.er1 >conftest.err
7924   rm -f conftest.er1
7925   cat conftest.err >&5
7926   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7927   (exit $ac_status); } >/dev/null; then
7928   if test -s conftest.err; then
7929     ac_cpp_err=$ac_c_preproc_warn_flag
7930   else
7931     ac_cpp_err=
7932   fi
7933 else
7934   ac_cpp_err=yes
7935 fi
7936 if test -z "$ac_cpp_err"; then
7937   ac_header_preproc=yes
7938 else
7939   echo "$as_me: failed program was:" >&5
7940   cat conftest.$ac_ext >&5
7941   ac_header_preproc=no
7942 fi
7943 rm -f conftest.err conftest.$ac_ext
7944 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7945 echo "${ECHO_T}$ac_header_preproc" >&6
7946
7947 # So?  What about this header?
7948 case $ac_header_compiler:$ac_header_preproc in
7949   yes:no )
7950     { echo "$as_me:$LINENO: WARNING: cups/cups.h: accepted by the compiler, rejected by the preprocessor!" >&5
7951 echo "$as_me: WARNING: cups/cups.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7952     { echo "$as_me:$LINENO: WARNING: cups/cups.h: proceeding with the preprocessor's result" >&5
7953 echo "$as_me: WARNING: cups/cups.h: proceeding with the preprocessor's result" >&2;};;
7954   no:yes )
7955     { echo "$as_me:$LINENO: WARNING: cups/cups.h: present but cannot be compiled" >&5
7956 echo "$as_me: WARNING: cups/cups.h: present but cannot be compiled" >&2;}
7957     { echo "$as_me:$LINENO: WARNING: cups/cups.h: check for missing prerequisite headers?" >&5
7958 echo "$as_me: WARNING: cups/cups.h: check for missing prerequisite headers?" >&2;}
7959     { echo "$as_me:$LINENO: WARNING: cups/cups.h: proceeding with the preprocessor's result" >&5
7960 echo "$as_me: WARNING: cups/cups.h: proceeding with the preprocessor's result" >&2;};;
7961 esac
7962 echo "$as_me:$LINENO: checking for cups/cups.h" >&5
7963 echo $ECHO_N "checking for cups/cups.h... $ECHO_C" >&6
7964 if test "${ac_cv_header_cups_cups_h+set}" = set; then
7965   echo $ECHO_N "(cached) $ECHO_C" >&6
7966 else
7967   ac_cv_header_cups_cups_h=$ac_header_preproc
7968 fi
7969 echo "$as_me:$LINENO: result: $ac_cv_header_cups_cups_h" >&5
7970 echo "${ECHO_T}$ac_cv_header_cups_cups_h" >&6
7971
7972 fi
7973 if test $ac_cv_header_cups_cups_h = yes; then
7974
7975 cat >>confdefs.h <<\_ACEOF
7976 #define HAVE_CUPS 1
7977 _ACEOF
7978
7979             CUPSLIBS="-lcups"
7980 else
7981   wine_cv_warn_cups_h=yes
7982 fi
7983
7984
7985
7986 fi
7987
7988
7989
7990 # Extract the first word of "sane-config", so it can be a program name with args.
7991 set dummy sane-config; ac_word=$2
7992 echo "$as_me:$LINENO: checking for $ac_word" >&5
7993 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7994 if test "${ac_cv_prog_sane_devel+set}" = set; then
7995   echo $ECHO_N "(cached) $ECHO_C" >&6
7996 else
7997   if test -n "$sane_devel"; then
7998   ac_cv_prog_sane_devel="$sane_devel" # Let the user override the test.
7999 else
8000 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8001 for as_dir in $PATH
8002 do
8003   IFS=$as_save_IFS
8004   test -z "$as_dir" && as_dir=.
8005   for ac_exec_ext in '' $ac_executable_extensions; do
8006   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8007     ac_cv_prog_sane_devel="sane-config"
8008     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8009     break 2
8010   fi
8011 done
8012 done
8013
8014   test -z "$ac_cv_prog_sane_devel" && ac_cv_prog_sane_devel="no"
8015 fi
8016 fi
8017 sane_devel=$ac_cv_prog_sane_devel
8018 if test -n "$sane_devel"; then
8019   echo "$as_me:$LINENO: result: $sane_devel" >&5
8020 echo "${ECHO_T}$sane_devel" >&6
8021 else
8022   echo "$as_me:$LINENO: result: no" >&5
8023 echo "${ECHO_T}no" >&6
8024 fi
8025
8026 if test "$sane_devel" = "no"
8027 then
8028     SANELIBS=""
8029     SANEINCL=""
8030 else
8031     SANELIBS="`$sane_devel --libs`"
8032     SANEINCL="`$sane_devel --cflags`"
8033     ac_save_CPPFLAGS="$CPPFLAGS"
8034     ac_save_LIBS="$LIBS"
8035     CPPFLAGS="$CPPFLAGS $SANEINCL"
8036     LIBS="$LIBS $SANELIBS"
8037     if test "${ac_cv_header_sane_sane_h+set}" = set; then
8038   echo "$as_me:$LINENO: checking for sane/sane.h" >&5
8039 echo $ECHO_N "checking for sane/sane.h... $ECHO_C" >&6
8040 if test "${ac_cv_header_sane_sane_h+set}" = set; then
8041   echo $ECHO_N "(cached) $ECHO_C" >&6
8042 fi
8043 echo "$as_me:$LINENO: result: $ac_cv_header_sane_sane_h" >&5
8044 echo "${ECHO_T}$ac_cv_header_sane_sane_h" >&6
8045 else
8046   # Is the header compilable?
8047 echo "$as_me:$LINENO: checking sane/sane.h usability" >&5
8048 echo $ECHO_N "checking sane/sane.h usability... $ECHO_C" >&6
8049 cat >conftest.$ac_ext <<_ACEOF
8050 #line $LINENO "configure"
8051 #include "confdefs.h"
8052 $ac_includes_default
8053 #include <sane/sane.h>
8054 _ACEOF
8055 rm -f conftest.$ac_objext
8056 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8057   (eval $ac_compile) 2>&5
8058   ac_status=$?
8059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8060   (exit $ac_status); } &&
8061          { ac_try='test -s conftest.$ac_objext'
8062   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8063   (eval $ac_try) 2>&5
8064   ac_status=$?
8065   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8066   (exit $ac_status); }; }; then
8067   ac_header_compiler=yes
8068 else
8069   echo "$as_me: failed program was:" >&5
8070 cat conftest.$ac_ext >&5
8071 ac_header_compiler=no
8072 fi
8073 rm -f conftest.$ac_objext conftest.$ac_ext
8074 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8075 echo "${ECHO_T}$ac_header_compiler" >&6
8076
8077 # Is the header present?
8078 echo "$as_me:$LINENO: checking sane/sane.h presence" >&5
8079 echo $ECHO_N "checking sane/sane.h presence... $ECHO_C" >&6
8080 cat >conftest.$ac_ext <<_ACEOF
8081 #line $LINENO "configure"
8082 #include "confdefs.h"
8083 #include <sane/sane.h>
8084 _ACEOF
8085 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8086   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8087   ac_status=$?
8088   egrep -v '^ *\+' conftest.er1 >conftest.err
8089   rm -f conftest.er1
8090   cat conftest.err >&5
8091   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8092   (exit $ac_status); } >/dev/null; then
8093   if test -s conftest.err; then
8094     ac_cpp_err=$ac_c_preproc_warn_flag
8095   else
8096     ac_cpp_err=
8097   fi
8098 else
8099   ac_cpp_err=yes
8100 fi
8101 if test -z "$ac_cpp_err"; then
8102   ac_header_preproc=yes
8103 else
8104   echo "$as_me: failed program was:" >&5
8105   cat conftest.$ac_ext >&5
8106   ac_header_preproc=no
8107 fi
8108 rm -f conftest.err conftest.$ac_ext
8109 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8110 echo "${ECHO_T}$ac_header_preproc" >&6
8111
8112 # So?  What about this header?
8113 case $ac_header_compiler:$ac_header_preproc in
8114   yes:no )
8115     { echo "$as_me:$LINENO: WARNING: sane/sane.h: accepted by the compiler, rejected by the preprocessor!" >&5
8116 echo "$as_me: WARNING: sane/sane.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8117     { echo "$as_me:$LINENO: WARNING: sane/sane.h: proceeding with the preprocessor's result" >&5
8118 echo "$as_me: WARNING: sane/sane.h: proceeding with the preprocessor's result" >&2;};;
8119   no:yes )
8120     { echo "$as_me:$LINENO: WARNING: sane/sane.h: present but cannot be compiled" >&5
8121 echo "$as_me: WARNING: sane/sane.h: present but cannot be compiled" >&2;}
8122     { echo "$as_me:$LINENO: WARNING: sane/sane.h: check for missing prerequisite headers?" >&5
8123 echo "$as_me: WARNING: sane/sane.h: check for missing prerequisite headers?" >&2;}
8124     { echo "$as_me:$LINENO: WARNING: sane/sane.h: proceeding with the preprocessor's result" >&5
8125 echo "$as_me: WARNING: sane/sane.h: proceeding with the preprocessor's result" >&2;};;
8126 esac
8127 echo "$as_me:$LINENO: checking for sane/sane.h" >&5
8128 echo $ECHO_N "checking for sane/sane.h... $ECHO_C" >&6
8129 if test "${ac_cv_header_sane_sane_h+set}" = set; then
8130   echo $ECHO_N "(cached) $ECHO_C" >&6
8131 else
8132   ac_cv_header_sane_sane_h=$ac_header_preproc
8133 fi
8134 echo "$as_me:$LINENO: result: $ac_cv_header_sane_sane_h" >&5
8135 echo "${ECHO_T}$ac_cv_header_sane_sane_h" >&6
8136
8137 fi
8138 if test $ac_cv_header_sane_sane_h = yes; then
8139   echo "$as_me:$LINENO: checking for sane_open in -lsane" >&5
8140 echo $ECHO_N "checking for sane_open in -lsane... $ECHO_C" >&6
8141 if test "${ac_cv_lib_sane_sane_open+set}" = set; then
8142   echo $ECHO_N "(cached) $ECHO_C" >&6
8143 else
8144   ac_check_lib_save_LIBS=$LIBS
8145 LIBS="-lsane  $LIBS"
8146 cat >conftest.$ac_ext <<_ACEOF
8147 #line $LINENO "configure"
8148 #include "confdefs.h"
8149
8150 /* Override any gcc2 internal prototype to avoid an error.  */
8151 #ifdef __cplusplus
8152 extern "C"
8153 #endif
8154 /* We use char because int might match the return type of a gcc2
8155    builtin and then its argument prototype would still apply.  */
8156 char sane_open ();
8157 #ifdef F77_DUMMY_MAIN
8158 #  ifdef __cplusplus
8159      extern "C"
8160 #  endif
8161    int F77_DUMMY_MAIN() { return 1; }
8162 #endif
8163 int
8164 main ()
8165 {
8166 sane_open ();
8167   ;
8168   return 0;
8169 }
8170 _ACEOF
8171 rm -f conftest.$ac_objext conftest$ac_exeext
8172 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8173   (eval $ac_link) 2>&5
8174   ac_status=$?
8175   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8176   (exit $ac_status); } &&
8177          { ac_try='test -s conftest$ac_exeext'
8178   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8179   (eval $ac_try) 2>&5
8180   ac_status=$?
8181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8182   (exit $ac_status); }; }; then
8183   ac_cv_lib_sane_sane_open=yes
8184 else
8185   echo "$as_me: failed program was:" >&5
8186 cat conftest.$ac_ext >&5
8187 ac_cv_lib_sane_sane_open=no
8188 fi
8189 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8190 LIBS=$ac_check_lib_save_LIBS
8191 fi
8192 echo "$as_me:$LINENO: result: $ac_cv_lib_sane_sane_open" >&5
8193 echo "${ECHO_T}$ac_cv_lib_sane_sane_open" >&6
8194 if test $ac_cv_lib_sane_sane_open = yes; then
8195
8196 cat >>confdefs.h <<\_ACEOF
8197 #define HAVE_SANE 1
8198 _ACEOF
8199
8200 else
8201   SANELIBS=""
8202                                   SANEINCL=""
8203 fi
8204
8205 else
8206   SANELIBS=""
8207                     SANEINCL=""
8208 fi
8209
8210
8211     LIBS="$ac_save_LIBS"
8212     CPPFLAGS="$ac_save_CPPFLAGS"
8213 fi
8214
8215
8216
8217 echo "$as_me:$LINENO: checking for FT_Init_FreeType in -lfreetype" >&5
8218 echo $ECHO_N "checking for FT_Init_FreeType in -lfreetype... $ECHO_C" >&6
8219 if test "${ac_cv_lib_freetype_FT_Init_FreeType+set}" = set; then
8220   echo $ECHO_N "(cached) $ECHO_C" >&6
8221 else
8222   ac_check_lib_save_LIBS=$LIBS
8223 LIBS="-lfreetype $X_LIBS $LIBS"
8224 cat >conftest.$ac_ext <<_ACEOF
8225 #line $LINENO "configure"
8226 #include "confdefs.h"
8227
8228 /* Override any gcc2 internal prototype to avoid an error.  */
8229 #ifdef __cplusplus
8230 extern "C"
8231 #endif
8232 /* We use char because int might match the return type of a gcc2
8233    builtin and then its argument prototype would still apply.  */
8234 char FT_Init_FreeType ();
8235 #ifdef F77_DUMMY_MAIN
8236 #  ifdef __cplusplus
8237      extern "C"
8238 #  endif
8239    int F77_DUMMY_MAIN() { return 1; }
8240 #endif
8241 int
8242 main ()
8243 {
8244 FT_Init_FreeType ();
8245   ;
8246   return 0;
8247 }
8248 _ACEOF
8249 rm -f conftest.$ac_objext conftest$ac_exeext
8250 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8251   (eval $ac_link) 2>&5
8252   ac_status=$?
8253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8254   (exit $ac_status); } &&
8255          { ac_try='test -s conftest$ac_exeext'
8256   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8257   (eval $ac_try) 2>&5
8258   ac_status=$?
8259   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8260   (exit $ac_status); }; }; then
8261   ac_cv_lib_freetype_FT_Init_FreeType=yes
8262 else
8263   echo "$as_me: failed program was:" >&5
8264 cat conftest.$ac_ext >&5
8265 ac_cv_lib_freetype_FT_Init_FreeType=no
8266 fi
8267 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8268 LIBS=$ac_check_lib_save_LIBS
8269 fi
8270 echo "$as_me:$LINENO: result: $ac_cv_lib_freetype_FT_Init_FreeType" >&5
8271 echo "${ECHO_T}$ac_cv_lib_freetype_FT_Init_FreeType" >&6
8272 if test $ac_cv_lib_freetype_FT_Init_FreeType = yes; then
8273   ft_lib=yes
8274 else
8275   ft_lib=no
8276 fi
8277
8278 if test "$ft_lib" = "no"
8279 then
8280     FREETYPEINCL=""
8281     wine_cv_msg_freetype=no
8282 else
8283     # Extract the first word of "freetype-config", so it can be a program name with args.
8284 set dummy freetype-config; ac_word=$2
8285 echo "$as_me:$LINENO: checking for $ac_word" >&5
8286 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8287 if test "${ac_cv_prog_ft_devel+set}" = set; then
8288   echo $ECHO_N "(cached) $ECHO_C" >&6
8289 else
8290   if test -n "$ft_devel"; then
8291   ac_cv_prog_ft_devel="$ft_devel" # Let the user override the test.
8292 else
8293 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8294 for as_dir in $PATH
8295 do
8296   IFS=$as_save_IFS
8297   test -z "$as_dir" && as_dir=.
8298   for ac_exec_ext in '' $ac_executable_extensions; do
8299   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8300     ac_cv_prog_ft_devel="freetype-config"
8301     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8302     break 2
8303   fi
8304 done
8305 done
8306
8307   test -z "$ac_cv_prog_ft_devel" && ac_cv_prog_ft_devel="no"
8308 fi
8309 fi
8310 ft_devel=$ac_cv_prog_ft_devel
8311 if test -n "$ft_devel"; then
8312   echo "$as_me:$LINENO: result: $ft_devel" >&5
8313 echo "${ECHO_T}$ft_devel" >&6
8314 else
8315   echo "$as_me:$LINENO: result: no" >&5
8316 echo "${ECHO_T}no" >&6
8317 fi
8318
8319     if test "$ft_devel" = "no"
8320     then
8321         # Extract the first word of "freetype2-config", so it can be a program name with args.
8322 set dummy freetype2-config; ac_word=$2
8323 echo "$as_me:$LINENO: checking for $ac_word" >&5
8324 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8325 if test "${ac_cv_prog_ft_devel2+set}" = set; then
8326   echo $ECHO_N "(cached) $ECHO_C" >&6
8327 else
8328   if test -n "$ft_devel2"; then
8329   ac_cv_prog_ft_devel2="$ft_devel2" # Let the user override the test.
8330 else
8331 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8332 for as_dir in $PATH
8333 do
8334   IFS=$as_save_IFS
8335   test -z "$as_dir" && as_dir=.
8336   for ac_exec_ext in '' $ac_executable_extensions; do
8337   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8338     ac_cv_prog_ft_devel2="freetype2-config"
8339     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8340     break 2
8341   fi
8342 done
8343 done
8344
8345   test -z "$ac_cv_prog_ft_devel2" && ac_cv_prog_ft_devel2="no"
8346 fi
8347 fi
8348 ft_devel2=$ac_cv_prog_ft_devel2
8349 if test -n "$ft_devel2"; then
8350   echo "$as_me:$LINENO: result: $ft_devel2" >&5
8351 echo "${ECHO_T}$ft_devel2" >&6
8352 else
8353   echo "$as_me:$LINENO: result: no" >&5
8354 echo "${ECHO_T}no" >&6
8355 fi
8356
8357         if test "$ft_devel2" = "freetype2-config"
8358         then
8359                 ft_devel=$ft_devel2
8360         fi
8361     fi
8362     if test "$ft_devel" = "no"
8363     then
8364         FREETYPEINCL=""
8365         wine_cv_msg_freetype=yes
8366     else
8367         FREETYPEINCL=`$ft_devel --cflags`
8368         ac_save_CPPFLAGS="$CPPFLAGS"
8369         CPPFLAGS="$FREETYPEINCL $CPPFLAGS"
8370
8371
8372
8373
8374
8375
8376
8377
8378 for ac_header in freetype/freetype.h \
8379                          freetype/ftglyph.h \
8380                          freetype/tttables.h \
8381                          freetype/ftnames.h \
8382                          freetype/ftsnames.h \
8383                          freetype/ttnameid.h \
8384                          freetype/ftoutln.h \
8385                          freetype/internal/sfnt.h
8386 do
8387 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8388 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8389   echo "$as_me:$LINENO: checking for $ac_header" >&5
8390 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8391 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8392   echo $ECHO_N "(cached) $ECHO_C" >&6
8393 fi
8394 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8395 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8396 else
8397   # Is the header compilable?
8398 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8399 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8400 cat >conftest.$ac_ext <<_ACEOF
8401 #line $LINENO "configure"
8402 #include "confdefs.h"
8403 $ac_includes_default
8404 #include <$ac_header>
8405 _ACEOF
8406 rm -f conftest.$ac_objext
8407 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8408   (eval $ac_compile) 2>&5
8409   ac_status=$?
8410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8411   (exit $ac_status); } &&
8412          { ac_try='test -s conftest.$ac_objext'
8413   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8414   (eval $ac_try) 2>&5
8415   ac_status=$?
8416   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8417   (exit $ac_status); }; }; then
8418   ac_header_compiler=yes
8419 else
8420   echo "$as_me: failed program was:" >&5
8421 cat conftest.$ac_ext >&5
8422 ac_header_compiler=no
8423 fi
8424 rm -f conftest.$ac_objext conftest.$ac_ext
8425 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8426 echo "${ECHO_T}$ac_header_compiler" >&6
8427
8428 # Is the header present?
8429 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8430 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8431 cat >conftest.$ac_ext <<_ACEOF
8432 #line $LINENO "configure"
8433 #include "confdefs.h"
8434 #include <$ac_header>
8435 _ACEOF
8436 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8437   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8438   ac_status=$?
8439   egrep -v '^ *\+' conftest.er1 >conftest.err
8440   rm -f conftest.er1
8441   cat conftest.err >&5
8442   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8443   (exit $ac_status); } >/dev/null; then
8444   if test -s conftest.err; then
8445     ac_cpp_err=$ac_c_preproc_warn_flag
8446   else
8447     ac_cpp_err=
8448   fi
8449 else
8450   ac_cpp_err=yes
8451 fi
8452 if test -z "$ac_cpp_err"; then
8453   ac_header_preproc=yes
8454 else
8455   echo "$as_me: failed program was:" >&5
8456   cat conftest.$ac_ext >&5
8457   ac_header_preproc=no
8458 fi
8459 rm -f conftest.err conftest.$ac_ext
8460 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8461 echo "${ECHO_T}$ac_header_preproc" >&6
8462
8463 # So?  What about this header?
8464 case $ac_header_compiler:$ac_header_preproc in
8465   yes:no )
8466     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8467 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8468     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8469 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8470   no:yes )
8471     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8472 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8473     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8474 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8475     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8476 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8477 esac
8478 echo "$as_me:$LINENO: checking for $ac_header" >&5
8479 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8480 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8481   echo $ECHO_N "(cached) $ECHO_C" >&6
8482 else
8483   eval "$as_ac_Header=$ac_header_preproc"
8484 fi
8485 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8486 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8487
8488 fi
8489 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8490   cat >>confdefs.h <<_ACEOF
8491 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8492 _ACEOF
8493
8494 fi
8495
8496 done
8497
8498         cat >conftest.$ac_ext <<_ACEOF
8499 #line $LINENO "configure"
8500 #include "confdefs.h"
8501 #include <ft2build.h>
8502                     #include <freetype/fttrigon.h>
8503 _ACEOF
8504 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8505   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8506   ac_status=$?
8507   egrep -v '^ *\+' conftest.er1 >conftest.err
8508   rm -f conftest.er1
8509   cat conftest.err >&5
8510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8511   (exit $ac_status); } >/dev/null; then
8512   if test -s conftest.err; then
8513     ac_cpp_err=$ac_c_preproc_warn_flag
8514   else
8515     ac_cpp_err=
8516   fi
8517 else
8518   ac_cpp_err=yes
8519 fi
8520 if test -z "$ac_cpp_err"; then
8521
8522 cat >>confdefs.h <<\_ACEOF
8523 #define HAVE_FREETYPE_FTTRIGON_H 1
8524 _ACEOF
8525
8526                     wine_cv_fttrigon=yes
8527 else
8528   echo "$as_me: failed program was:" >&5
8529   cat conftest.$ac_ext >&5
8530   wine_cv_fttrigon=no
8531 fi
8532 rm -f conftest.err conftest.$ac_ext
8533         CPPFLAGS="$ac_save_CPPFLAGS"
8534                 if test "$ac_cv_header_freetype_freetype_h" = "yes" -a "$wine_cv_fttrigon" = "yes"
8535         then
8536
8537 cat >>confdefs.h <<\_ACEOF
8538 #define HAVE_FREETYPE 1
8539 _ACEOF
8540
8541             wine_cv_msg_freetype=no
8542         else
8543             FREETYPEINCL=""
8544             wine_cv_msg_freetype=yes
8545         fi
8546     fi
8547 fi
8548
8549
8550 echo "$as_me:$LINENO: checking for parport header/ppdev.h" >&5
8551 echo $ECHO_N "checking for parport header/ppdev.h... $ECHO_C" >&6
8552 if test "${ac_cv_c_ppdev+set}" = set; then
8553   echo $ECHO_N "(cached) $ECHO_C" >&6
8554 else
8555   cat >conftest.$ac_ext <<_ACEOF
8556 #line $LINENO "configure"
8557 #include "confdefs.h"
8558 #include <linux/ppdev.h>
8559 #ifdef F77_DUMMY_MAIN
8560 #  ifdef __cplusplus
8561      extern "C"
8562 #  endif
8563    int F77_DUMMY_MAIN() { return 1; }
8564 #endif
8565 int
8566 main ()
8567 {
8568 ioctl (1,PPCLAIM,0)
8569   ;
8570   return 0;
8571 }
8572 _ACEOF
8573 rm -f conftest.$ac_objext
8574 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8575   (eval $ac_compile) 2>&5
8576   ac_status=$?
8577   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8578   (exit $ac_status); } &&
8579          { ac_try='test -s conftest.$ac_objext'
8580   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8581   (eval $ac_try) 2>&5
8582   ac_status=$?
8583   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8584   (exit $ac_status); }; }; then
8585   ac_cv_c_ppdev="yes"
8586 else
8587   echo "$as_me: failed program was:" >&5
8588 cat conftest.$ac_ext >&5
8589 ac_cv_c_ppdev="no"
8590 fi
8591 rm -f conftest.$ac_objext conftest.$ac_ext
8592
8593 fi
8594 echo "$as_me:$LINENO: result: $ac_cv_c_ppdev" >&5
8595 echo "${ECHO_T}$ac_cv_c_ppdev" >&6
8596 if test "$ac_cv_c_ppdev" = "yes"
8597 then
8598
8599 cat >>confdefs.h <<\_ACEOF
8600 #define HAVE_PPDEV 1
8601 _ACEOF
8602
8603 fi
8604
8605 echo "$as_me:$LINENO: checking for GNU style IPX support" >&5
8606 echo $ECHO_N "checking for GNU style IPX support... $ECHO_C" >&6
8607 if test "${ac_cv_c_ipx_gnu+set}" = set; then
8608   echo $ECHO_N "(cached) $ECHO_C" >&6
8609 else
8610   cat >conftest.$ac_ext <<_ACEOF
8611 #line $LINENO "configure"
8612 #include "confdefs.h"
8613 #include <sys/socket.h>
8614     #include <netipx/ipx.h>
8615 #ifdef F77_DUMMY_MAIN
8616 #  ifdef __cplusplus
8617      extern "C"
8618 #  endif
8619    int F77_DUMMY_MAIN() { return 1; }
8620 #endif
8621 int
8622 main ()
8623 {
8624 ((struct sockaddr_ipx *)0)->sipx_family == AF_IPX
8625   ;
8626   return 0;
8627 }
8628 _ACEOF
8629 rm -f conftest.$ac_objext
8630 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8631   (eval $ac_compile) 2>&5
8632   ac_status=$?
8633   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8634   (exit $ac_status); } &&
8635          { ac_try='test -s conftest.$ac_objext'
8636   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8637   (eval $ac_try) 2>&5
8638   ac_status=$?
8639   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8640   (exit $ac_status); }; }; then
8641   ac_cv_c_ipx_gnu="yes"
8642 else
8643   echo "$as_me: failed program was:" >&5
8644 cat conftest.$ac_ext >&5
8645 ac_cv_c_ipx_gnu="no"
8646 fi
8647 rm -f conftest.$ac_objext conftest.$ac_ext
8648
8649 fi
8650 echo "$as_me:$LINENO: result: $ac_cv_c_ipx_gnu" >&5
8651 echo "${ECHO_T}$ac_cv_c_ipx_gnu" >&6
8652 if test "$ac_cv_c_ipx_gnu" = "yes"
8653 then
8654
8655 cat >>confdefs.h <<\_ACEOF
8656 #define HAVE_IPX_GNU 1
8657 _ACEOF
8658
8659 fi
8660
8661 if test "$ac_cv_c_ipx_gnu" = "no"
8662 then
8663  echo "$as_me:$LINENO: checking for linux style IPX support" >&5
8664 echo $ECHO_N "checking for linux style IPX support... $ECHO_C" >&6
8665 if test "${ac_cv_c_ipx_linux+set}" = set; then
8666   echo $ECHO_N "(cached) $ECHO_C" >&6
8667 else
8668   cat >conftest.$ac_ext <<_ACEOF
8669 #line $LINENO "configure"
8670 #include "confdefs.h"
8671 #include <sys/socket.h>
8672      #include <asm/types.h>
8673      #include <linux/ipx.h>
8674 #ifdef F77_DUMMY_MAIN
8675 #  ifdef __cplusplus
8676      extern "C"
8677 #  endif
8678    int F77_DUMMY_MAIN() { return 1; }
8679 #endif
8680 int
8681 main ()
8682 {
8683 ((struct sockaddr_ipx *)0)->sipx_family == AF_IPX
8684   ;
8685   return 0;
8686 }
8687 _ACEOF
8688 rm -f conftest.$ac_objext
8689 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8690   (eval $ac_compile) 2>&5
8691   ac_status=$?
8692   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8693   (exit $ac_status); } &&
8694          { ac_try='test -s conftest.$ac_objext'
8695   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8696   (eval $ac_try) 2>&5
8697   ac_status=$?
8698   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8699   (exit $ac_status); }; }; then
8700   ac_cv_c_ipx_linux="yes"
8701 else
8702   echo "$as_me: failed program was:" >&5
8703 cat conftest.$ac_ext >&5
8704 ac_cv_c_ipx_linux="no"
8705 fi
8706 rm -f conftest.$ac_objext conftest.$ac_ext
8707
8708 fi
8709 echo "$as_me:$LINENO: result: $ac_cv_c_ipx_linux" >&5
8710 echo "${ECHO_T}$ac_cv_c_ipx_linux" >&6
8711   if test "$ac_cv_c_ipx_linux" = "yes"
8712   then
8713
8714 cat >>confdefs.h <<\_ACEOF
8715 #define HAVE_IPX_LINUX 1
8716 _ACEOF
8717
8718   fi
8719 fi
8720
8721
8722
8723
8724 for ac_header in sys/soundcard.h machine/soundcard.h soundcard.h
8725 do
8726 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8727 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8728   echo "$as_me:$LINENO: checking for $ac_header" >&5
8729 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8730 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8731   echo $ECHO_N "(cached) $ECHO_C" >&6
8732 fi
8733 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8734 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8735 else
8736   # Is the header compilable?
8737 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8738 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8739 cat >conftest.$ac_ext <<_ACEOF
8740 #line $LINENO "configure"
8741 #include "confdefs.h"
8742 $ac_includes_default
8743 #include <$ac_header>
8744 _ACEOF
8745 rm -f conftest.$ac_objext
8746 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8747   (eval $ac_compile) 2>&5
8748   ac_status=$?
8749   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8750   (exit $ac_status); } &&
8751          { ac_try='test -s conftest.$ac_objext'
8752   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8753   (eval $ac_try) 2>&5
8754   ac_status=$?
8755   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8756   (exit $ac_status); }; }; then
8757   ac_header_compiler=yes
8758 else
8759   echo "$as_me: failed program was:" >&5
8760 cat conftest.$ac_ext >&5
8761 ac_header_compiler=no
8762 fi
8763 rm -f conftest.$ac_objext conftest.$ac_ext
8764 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8765 echo "${ECHO_T}$ac_header_compiler" >&6
8766
8767 # Is the header present?
8768 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8769 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8770 cat >conftest.$ac_ext <<_ACEOF
8771 #line $LINENO "configure"
8772 #include "confdefs.h"
8773 #include <$ac_header>
8774 _ACEOF
8775 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8776   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8777   ac_status=$?
8778   egrep -v '^ *\+' conftest.er1 >conftest.err
8779   rm -f conftest.er1
8780   cat conftest.err >&5
8781   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8782   (exit $ac_status); } >/dev/null; then
8783   if test -s conftest.err; then
8784     ac_cpp_err=$ac_c_preproc_warn_flag
8785   else
8786     ac_cpp_err=
8787   fi
8788 else
8789   ac_cpp_err=yes
8790 fi
8791 if test -z "$ac_cpp_err"; then
8792   ac_header_preproc=yes
8793 else
8794   echo "$as_me: failed program was:" >&5
8795   cat conftest.$ac_ext >&5
8796   ac_header_preproc=no
8797 fi
8798 rm -f conftest.err conftest.$ac_ext
8799 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8800 echo "${ECHO_T}$ac_header_preproc" >&6
8801
8802 # So?  What about this header?
8803 case $ac_header_compiler:$ac_header_preproc in
8804   yes:no )
8805     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8806 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8807     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8808 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8809   no:yes )
8810     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8811 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8812     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8813 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8814     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8815 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8816 esac
8817 echo "$as_me:$LINENO: checking for $ac_header" >&5
8818 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8819 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8820   echo $ECHO_N "(cached) $ECHO_C" >&6
8821 else
8822   eval "$as_ac_Header=$ac_header_preproc"
8823 fi
8824 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8825 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8826
8827 fi
8828 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8829   cat >>confdefs.h <<_ACEOF
8830 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8831 _ACEOF
8832  break
8833 fi
8834
8835 done
8836
8837
8838 echo "$as_me:$LINENO: checking for Open Sound System" >&5
8839 echo $ECHO_N "checking for Open Sound System... $ECHO_C" >&6
8840 if test "${ac_cv_c_opensoundsystem+set}" = set; then
8841   echo $ECHO_N "(cached) $ECHO_C" >&6
8842 else
8843   cat >conftest.$ac_ext <<_ACEOF
8844 #line $LINENO "configure"
8845 #include "confdefs.h"
8846
8847         #if defined(HAVE_SYS_SOUNDCARD_H)
8848                 #include <sys/soundcard.h>
8849         #elif defined(HAVE_MACHINE_SOUNDCARD_H)
8850                 #include <machine/soundcard.h>
8851         #elif defined(HAVE_SOUNDCARD_H)
8852                 #include <soundcard.h>
8853         #endif
8854
8855 #ifdef F77_DUMMY_MAIN
8856 #  ifdef __cplusplus
8857      extern "C"
8858 #  endif
8859    int F77_DUMMY_MAIN() { return 1; }
8860 #endif
8861 int
8862 main ()
8863 {
8864
8865
8866 /* check for one of the Open Sound System specific SNDCTL_ defines */
8867 #if !defined(SNDCTL_DSP_STEREO)
8868 #error No open sound system
8869 #endif
8870
8871   ;
8872   return 0;
8873 }
8874 _ACEOF
8875 rm -f conftest.$ac_objext
8876 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8877   (eval $ac_compile) 2>&5
8878   ac_status=$?
8879   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8880   (exit $ac_status); } &&
8881          { ac_try='test -s conftest.$ac_objext'
8882   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8883   (eval $ac_try) 2>&5
8884   ac_status=$?
8885   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8886   (exit $ac_status); }; }; then
8887   ac_cv_c_opensoundsystem="yes"
8888 else
8889   echo "$as_me: failed program was:" >&5
8890 cat conftest.$ac_ext >&5
8891 ac_cv_c_opensoundsystem="no"
8892 fi
8893 rm -f conftest.$ac_objext conftest.$ac_ext
8894 fi
8895 echo "$as_me:$LINENO: result: $ac_cv_c_opensoundsystem" >&5
8896 echo "${ECHO_T}$ac_cv_c_opensoundsystem" >&6
8897
8898 if test "$ac_cv_c_opensoundsystem" = "yes"
8899 then
8900
8901 cat >>confdefs.h <<\_ACEOF
8902 #define HAVE_OSS 1
8903 _ACEOF
8904
8905 fi
8906
8907 echo "$as_me:$LINENO: checking for Open Sound System/MIDI interface" >&5
8908 echo $ECHO_N "checking for Open Sound System/MIDI interface... $ECHO_C" >&6
8909 if test "${ac_cv_c_opensoundsystem_midi+set}" = set; then
8910   echo $ECHO_N "(cached) $ECHO_C" >&6
8911 else
8912   cat >conftest.$ac_ext <<_ACEOF
8913 #line $LINENO "configure"
8914 #include "confdefs.h"
8915
8916         #if defined(HAVE_SYS_SOUNDCARD_H)
8917                 #include <sys/soundcard.h>
8918         #elif defined(HAVE_MACHINE_SOUNDCARD_H)
8919                 #include <machine/soundcard.h>
8920         #elif defined(HAVE_SOUNDCARD_H)
8921                 #include <soundcard.h>
8922         #endif
8923
8924 #ifdef F77_DUMMY_MAIN
8925 #  ifdef __cplusplus
8926      extern "C"
8927 #  endif
8928    int F77_DUMMY_MAIN() { return 1; }
8929 #endif
8930 int
8931 main ()
8932 {
8933
8934
8935 /* check for one of the Open Sound System specific SNDCTL_SEQ defines */
8936 #if !defined(SNDCTL_SEQ_SYNC)
8937 #error No open sound system MIDI interface
8938 #endif
8939
8940   ;
8941   return 0;
8942 }
8943 _ACEOF
8944 rm -f conftest.$ac_objext
8945 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8946   (eval $ac_compile) 2>&5
8947   ac_status=$?
8948   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8949   (exit $ac_status); } &&
8950          { ac_try='test -s conftest.$ac_objext'
8951   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8952   (eval $ac_try) 2>&5
8953   ac_status=$?
8954   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8955   (exit $ac_status); }; }; then
8956   ac_cv_c_opensoundsystem_midi="yes"
8957 else
8958   echo "$as_me: failed program was:" >&5
8959 cat conftest.$ac_ext >&5
8960 ac_cv_c_opensoundsystem_midi="no"
8961 fi
8962 rm -f conftest.$ac_objext conftest.$ac_ext
8963 fi
8964 echo "$as_me:$LINENO: result: $ac_cv_c_opensoundsystem_midi" >&5
8965 echo "${ECHO_T}$ac_cv_c_opensoundsystem_midi" >&6
8966
8967 if test "$ac_cv_c_opensoundsystem_midi" = "yes"
8968 then
8969
8970 cat >>confdefs.h <<\_ACEOF
8971 #define HAVE_OSS_MIDI 1
8972 _ACEOF
8973
8974 fi
8975
8976 # Extract the first word of "artsc-config", so it can be a program name with args.
8977 set dummy artsc-config; ac_word=$2
8978 echo "$as_me:$LINENO: checking for $ac_word" >&5
8979 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8980 if test "${ac_cv_path_ARTSCCONFIG+set}" = set; then
8981   echo $ECHO_N "(cached) $ECHO_C" >&6
8982 else
8983   case $ARTSCCONFIG in
8984   [\\/]* | ?:[\\/]*)
8985   ac_cv_path_ARTSCCONFIG="$ARTSCCONFIG" # Let the user override the test with a path.
8986   ;;
8987   *)
8988   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8989 for as_dir in $PATH
8990 do
8991   IFS=$as_save_IFS
8992   test -z "$as_dir" && as_dir=.
8993   for ac_exec_ext in '' $ac_executable_extensions; do
8994   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8995     ac_cv_path_ARTSCCONFIG="$as_dir/$ac_word$ac_exec_ext"
8996     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8997     break 2
8998   fi
8999 done
9000 done
9001
9002   ;;
9003 esac
9004 fi
9005 ARTSCCONFIG=$ac_cv_path_ARTSCCONFIG
9006
9007 if test -n "$ARTSCCONFIG"; then
9008   echo "$as_me:$LINENO: result: $ARTSCCONFIG" >&5
9009 echo "${ECHO_T}$ARTSCCONFIG" >&6
9010 else
9011   echo "$as_me:$LINENO: result: no" >&5
9012 echo "${ECHO_T}no" >&6
9013 fi
9014
9015 echo "$as_me:$LINENO: checking for aRts Sound server" >&5
9016 echo $ECHO_N "checking for aRts Sound server... $ECHO_C" >&6
9017 if test "${ac_cv_c_artsserver+set}" = set; then
9018   echo $ECHO_N "(cached) $ECHO_C" >&6
9019 else
9020   if test x$ARTSCCONFIG = x -o x$ARTSCCONFIG = x'"$ARTSCCONFIG"';
9021         then
9022             ac_cv_c_artsserver=no
9023         else
9024             ARTSC_CFLAGS=`$ARTSCCONFIG --cflags`
9025             ARTSC_LIBS=`$ARTSCCONFIG --libs`
9026             ac_cv_c_artsserver=no
9027             save_CFLAGS="$CFLAGS"
9028             CFLAGS="$CFLAGS $ARTSC_CFLAGS"
9029             cat >conftest.$ac_ext <<_ACEOF
9030 #line $LINENO "configure"
9031 #include "confdefs.h"
9032
9033              #include <artsc.h>
9034
9035 #ifdef F77_DUMMY_MAIN
9036 #  ifdef __cplusplus
9037      extern "C"
9038 #  endif
9039    int F77_DUMMY_MAIN() { return 1; }
9040 #endif
9041 int
9042 main ()
9043 {
9044
9045              arts_stream_t stream;
9046
9047   ;
9048   return 0;
9049 }
9050 _ACEOF
9051 rm -f conftest.$ac_objext
9052 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9053   (eval $ac_compile) 2>&5
9054   ac_status=$?
9055   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9056   (exit $ac_status); } &&
9057          { ac_try='test -s conftest.$ac_objext'
9058   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9059   (eval $ac_try) 2>&5
9060   ac_status=$?
9061   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9062   (exit $ac_status); }; }; then
9063
9064             ac_cv_c_artsserver=yes
9065
9066 else
9067   echo "$as_me: failed program was:" >&5
9068 cat conftest.$ac_ext >&5
9069 fi
9070 rm -f conftest.$ac_objext conftest.$ac_ext
9071             CFLAGS="$save_CFLAGS"
9072         fi
9073 fi
9074 echo "$as_me:$LINENO: result: $ac_cv_c_artsserver" >&5
9075 echo "${ECHO_T}$ac_cv_c_artsserver" >&6
9076
9077 if test "$ac_cv_c_artsserver" = "yes"
9078 then
9079     ARTSLIBS=$ARTSC_LIBS
9080
9081     ARTSINCL=$ARTSC_CFLAGS
9082
9083
9084
9085 cat >>confdefs.h <<\_ACEOF
9086 #define HAVE_ARTS 1
9087 _ACEOF
9088
9089 fi
9090
9091 ALSALIBS=""
9092
9093
9094 for ac_header in sys/asoundlib.h
9095 do
9096 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9097 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9098   echo "$as_me:$LINENO: checking for $ac_header" >&5
9099 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9100 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9101   echo $ECHO_N "(cached) $ECHO_C" >&6
9102 fi
9103 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9104 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9105 else
9106   # Is the header compilable?
9107 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9108 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9109 cat >conftest.$ac_ext <<_ACEOF
9110 #line $LINENO "configure"
9111 #include "confdefs.h"
9112 $ac_includes_default
9113 #include <$ac_header>
9114 _ACEOF
9115 rm -f conftest.$ac_objext
9116 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9117   (eval $ac_compile) 2>&5
9118   ac_status=$?
9119   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9120   (exit $ac_status); } &&
9121          { ac_try='test -s conftest.$ac_objext'
9122   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9123   (eval $ac_try) 2>&5
9124   ac_status=$?
9125   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9126   (exit $ac_status); }; }; then
9127   ac_header_compiler=yes
9128 else
9129   echo "$as_me: failed program was:" >&5
9130 cat conftest.$ac_ext >&5
9131 ac_header_compiler=no
9132 fi
9133 rm -f conftest.$ac_objext conftest.$ac_ext
9134 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9135 echo "${ECHO_T}$ac_header_compiler" >&6
9136
9137 # Is the header present?
9138 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9139 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9140 cat >conftest.$ac_ext <<_ACEOF
9141 #line $LINENO "configure"
9142 #include "confdefs.h"
9143 #include <$ac_header>
9144 _ACEOF
9145 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9146   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9147   ac_status=$?
9148   egrep -v '^ *\+' conftest.er1 >conftest.err
9149   rm -f conftest.er1
9150   cat conftest.err >&5
9151   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9152   (exit $ac_status); } >/dev/null; then
9153   if test -s conftest.err; then
9154     ac_cpp_err=$ac_c_preproc_warn_flag
9155   else
9156     ac_cpp_err=
9157   fi
9158 else
9159   ac_cpp_err=yes
9160 fi
9161 if test -z "$ac_cpp_err"; then
9162   ac_header_preproc=yes
9163 else
9164   echo "$as_me: failed program was:" >&5
9165   cat conftest.$ac_ext >&5
9166   ac_header_preproc=no
9167 fi
9168 rm -f conftest.err conftest.$ac_ext
9169 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9170 echo "${ECHO_T}$ac_header_preproc" >&6
9171
9172 # So?  What about this header?
9173 case $ac_header_compiler:$ac_header_preproc in
9174   yes:no )
9175     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9176 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9177     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9178 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
9179   no:yes )
9180     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9181 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9182     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9183 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9184     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9185 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
9186 esac
9187 echo "$as_me:$LINENO: checking for $ac_header" >&5
9188 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9189 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9190   echo $ECHO_N "(cached) $ECHO_C" >&6
9191 else
9192   eval "$as_ac_Header=$ac_header_preproc"
9193 fi
9194 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9195 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9196
9197 fi
9198 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9199   cat >>confdefs.h <<_ACEOF
9200 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9201 _ACEOF
9202
9203 fi
9204
9205 done
9206
9207 if test "$ac_cv_header_sys_asoundlib_h" = "yes"
9208 then
9209     echo "$as_me:$LINENO: checking for snd_pcm_open in -lasound" >&5
9210 echo $ECHO_N "checking for snd_pcm_open in -lasound... $ECHO_C" >&6
9211 if test "${ac_cv_lib_asound_snd_pcm_open+set}" = set; then
9212   echo $ECHO_N "(cached) $ECHO_C" >&6
9213 else
9214   ac_check_lib_save_LIBS=$LIBS
9215 LIBS="-lasound  $LIBS"
9216 cat >conftest.$ac_ext <<_ACEOF
9217 #line $LINENO "configure"
9218 #include "confdefs.h"
9219
9220 /* Override any gcc2 internal prototype to avoid an error.  */
9221 #ifdef __cplusplus
9222 extern "C"
9223 #endif
9224 /* We use char because int might match the return type of a gcc2
9225    builtin and then its argument prototype would still apply.  */
9226 char snd_pcm_open ();
9227 #ifdef F77_DUMMY_MAIN
9228 #  ifdef __cplusplus
9229      extern "C"
9230 #  endif
9231    int F77_DUMMY_MAIN() { return 1; }
9232 #endif
9233 int
9234 main ()
9235 {
9236 snd_pcm_open ();
9237   ;
9238   return 0;
9239 }
9240 _ACEOF
9241 rm -f conftest.$ac_objext conftest$ac_exeext
9242 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9243   (eval $ac_link) 2>&5
9244   ac_status=$?
9245   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9246   (exit $ac_status); } &&
9247          { ac_try='test -s conftest$ac_exeext'
9248   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9249   (eval $ac_try) 2>&5
9250   ac_status=$?
9251   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9252   (exit $ac_status); }; }; then
9253   ac_cv_lib_asound_snd_pcm_open=yes
9254 else
9255   echo "$as_me: failed program was:" >&5
9256 cat conftest.$ac_ext >&5
9257 ac_cv_lib_asound_snd_pcm_open=no
9258 fi
9259 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9260 LIBS=$ac_check_lib_save_LIBS
9261 fi
9262 echo "$as_me:$LINENO: result: $ac_cv_lib_asound_snd_pcm_open" >&5
9263 echo "${ECHO_T}$ac_cv_lib_asound_snd_pcm_open" >&6
9264 if test $ac_cv_lib_asound_snd_pcm_open = yes; then
9265
9266 cat >>confdefs.h <<\_ACEOF
9267 #define HAVE_ALSA 1
9268 _ACEOF
9269
9270         ALSALIBS="-lasound"
9271 fi
9272
9273 fi
9274
9275
9276 echo "$as_me:$LINENO: checking whether mmap64 works defined as mmap" >&5
9277 echo $ECHO_N "checking whether mmap64 works defined as mmap... $ECHO_C" >&6
9278 if test "${ac_cv_mmap64_works+set}" = set; then
9279   echo $ECHO_N "(cached) $ECHO_C" >&6
9280 else
9281   if test "$cross_compiling" = yes; then
9282   ac_cv_mmap64_works="no"
9283 else
9284   cat >conftest.$ac_ext <<_ACEOF
9285 #line $LINENO "configure"
9286 #include "confdefs.h"
9287
9288                 #define _FILE_OFFSET_BITS 64
9289                 #include <stdio.h>
9290                 #include <unistd.h>
9291                 #include <fcntl.h>
9292                 #include <sys/mman.h>
9293                 #include <errno.h>
9294
9295                 int main(int argc,char **argv) {
9296                         int fd = open("conftest.map",O_CREAT|O_RDWR,0600);
9297                         if (fd == -1) exit(1);
9298
9299                         unlink("conftest.map");
9300
9301                         write(fd,"test",4);
9302
9303                         if ((-1 == mmap(0,4,PROT_READ|PROT_WRITE,MAP_SHARED,fd,0)) &&
9304                             (errno == EINVAL)
9305                         ) {
9306                                 exit(1);
9307                         }
9308                         close(fd);
9309                         fprintf(stderr,"success!\n");
9310                         exit(0);
9311                 }
9312
9313
9314 _ACEOF
9315 rm -f conftest$ac_exeext
9316 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9317   (eval $ac_link) 2>&5
9318   ac_status=$?
9319   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9320   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9321   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9322   (eval $ac_try) 2>&5
9323   ac_status=$?
9324   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9325   (exit $ac_status); }; }; then
9326   ac_cv_mmap64_works="yes"
9327 else
9328   echo "$as_me: program exited with status $ac_status" >&5
9329 echo "$as_me: failed program was:" >&5
9330 cat conftest.$ac_ext >&5
9331 ( exit $ac_status )
9332 ac_cv_mmap64_works="no"
9333 fi
9334 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9335 fi
9336 fi
9337 echo "$as_me:$LINENO: result: $ac_cv_mmap64_works" >&5
9338 echo "${ECHO_T}$ac_cv_mmap64_works" >&6
9339
9340 if test "$ac_cv_mmap64_works" = "yes"
9341 then
9342
9343 cat >>confdefs.h <<\_ACEOF
9344 #define _FILE_OFFSET_BITS 64
9345 _ACEOF
9346
9347 fi
9348
9349
9350 if test "x${GCC}" = "xyes"
9351 then
9352   CFLAGS="$CFLAGS -Wall"
9353   echo "$as_me:$LINENO: checking for gcc strength-reduce bug" >&5
9354 echo $ECHO_N "checking for gcc strength-reduce bug... $ECHO_C" >&6
9355 if test "${ac_cv_c_gcc_strength_bug+set}" = set; then
9356   echo $ECHO_N "(cached) $ECHO_C" >&6
9357 else
9358   if test "$cross_compiling" = yes; then
9359   ac_cv_c_gcc_strength_bug="yes"
9360 else
9361   cat >conftest.$ac_ext <<_ACEOF
9362 #line $LINENO "configure"
9363 #include "confdefs.h"
9364
9365 int     L[4] = {0,1,2,3};
9366 int main(void) {
9367   static int Array[3];
9368   unsigned int B = 3;
9369   int i;
9370   for(i=0; i<B; i++) Array[i] = i - 3;
9371   for(i=0; i<4 - 1; i++) L[i] = L[i + 1];
9372   L[i] = 4;
9373
9374   exit( Array[1] != -2 || L[2] != 3);
9375 }
9376 _ACEOF
9377 rm -f conftest$ac_exeext
9378 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9379   (eval $ac_link) 2>&5
9380   ac_status=$?
9381   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9382   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9383   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9384   (eval $ac_try) 2>&5
9385   ac_status=$?
9386   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9387   (exit $ac_status); }; }; then
9388   ac_cv_c_gcc_strength_bug="no"
9389 else
9390   echo "$as_me: program exited with status $ac_status" >&5
9391 echo "$as_me: failed program was:" >&5
9392 cat conftest.$ac_ext >&5
9393 ( exit $ac_status )
9394 ac_cv_c_gcc_strength_bug="yes"
9395 fi
9396 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9397 fi
9398 fi
9399 echo "$as_me:$LINENO: result: $ac_cv_c_gcc_strength_bug" >&5
9400 echo "${ECHO_T}$ac_cv_c_gcc_strength_bug" >&6
9401   if test "$ac_cv_c_gcc_strength_bug" = "yes"
9402   then
9403     CFLAGS="$CFLAGS -fno-strength-reduce"
9404   fi
9405
9406     echo "$as_me:$LINENO: checking for gcc -mpreferred-stack-boundary=2 support" >&5
9407 echo $ECHO_N "checking for gcc -mpreferred-stack-boundary=2 support... $ECHO_C" >&6
9408 if test "${ac_cv_c_gcc_stack_boundary+set}" = set; then
9409   echo $ECHO_N "(cached) $ECHO_C" >&6
9410 else
9411   ac_wine_try_cflags_saved=$CFLAGS
9412 CFLAGS="$CFLAGS -mpreferred-stack-boundary=2"
9413 cat >conftest.$ac_ext <<_ACEOF
9414 #line $LINENO "configure"
9415 #include "confdefs.h"
9416
9417 #ifdef F77_DUMMY_MAIN
9418 #  ifdef __cplusplus
9419      extern "C"
9420 #  endif
9421    int F77_DUMMY_MAIN() { return 1; }
9422 #endif
9423 int
9424 main ()
9425 {
9426
9427   ;
9428   return 0;
9429 }
9430 _ACEOF
9431 rm -f conftest.$ac_objext conftest$ac_exeext
9432 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9433   (eval $ac_link) 2>&5
9434   ac_status=$?
9435   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9436   (exit $ac_status); } &&
9437          { ac_try='test -s conftest$ac_exeext'
9438   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9439   (eval $ac_try) 2>&5
9440   ac_status=$?
9441   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9442   (exit $ac_status); }; }; then
9443   ac_cv_c_gcc_stack_boundary="yes"
9444 else
9445   echo "$as_me: failed program was:" >&5
9446 cat conftest.$ac_ext >&5
9447 ac_cv_c_gcc_stack_boundary="no"
9448 fi
9449 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9450 CFLAGS=$ac_wine_try_cflags_saved
9451 fi
9452 echo "$as_me:$LINENO: result: $ac_cv_c_gcc_stack_boundary" >&5
9453 echo "${ECHO_T}$ac_cv_c_gcc_stack_boundary" >&6
9454   if test "$ac_cv_c_gcc_stack_boundary" = "yes"
9455   then
9456     CFLAGS="$CFLAGS -mpreferred-stack-boundary=2"
9457   fi
9458 fi
9459
9460
9461 echo "$as_me:$LINENO: checking whether .type must sit inside a .def directive" >&5
9462 echo $ECHO_N "checking whether .type must sit inside a .def directive... $ECHO_C" >&6
9463 if test "${ac_cv_c_type_in_def+set}" = set; then
9464   echo $ECHO_N "(cached) $ECHO_C" >&6
9465 else
9466   ac_try_asm_link_saved_libs=$LIBS
9467 LIBS="conftest_asm.s $LIBS"
9468 cat > conftest_asm.s <<EOF
9469         .globl _ac_test
9470         .def _ac_test; .scl 2; .type 32; .endef
9471 _ac_test:
9472         .long 0
9473 EOF
9474 cat >conftest.$ac_ext <<_ACEOF
9475 #line $LINENO "configure"
9476 #include "confdefs.h"
9477
9478 #ifdef F77_DUMMY_MAIN
9479 #  ifdef __cplusplus
9480      extern "C"
9481 #  endif
9482    int F77_DUMMY_MAIN() { return 1; }
9483 #endif
9484 int
9485 main ()
9486 {
9487
9488   ;
9489   return 0;
9490 }
9491 _ACEOF
9492 rm -f conftest.$ac_objext conftest$ac_exeext
9493 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9494   (eval $ac_link) 2>&5
9495   ac_status=$?
9496   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9497   (exit $ac_status); } &&
9498          { ac_try='test -s conftest$ac_exeext'
9499   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9500   (eval $ac_try) 2>&5
9501   ac_status=$?
9502   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9503   (exit $ac_status); }; }; then
9504   ac_cv_c_type_in_def="yes"
9505 else
9506   echo "$as_me: failed program was:" >&5
9507 cat conftest.$ac_ext >&5
9508 ac_cv_c_type_in_def="no"
9509 fi
9510 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9511 rm -f conftest_asm.s
9512 LIBS=$ac_try_asm_link_saved_libs
9513 fi
9514 echo "$as_me:$LINENO: result: $ac_cv_c_type_in_def" >&5
9515 echo "${ECHO_T}$ac_cv_c_type_in_def" >&6
9516 if test "$ac_cv_c_type_in_def" = "yes"
9517 then
9518
9519 cat >>confdefs.h <<\_ACEOF
9520 #define NEED_TYPE_IN_DEF 1
9521 _ACEOF
9522
9523 fi
9524
9525
9526 echo "$as_me:$LINENO: checking whether external symbols need an underscore prefix" >&5
9527 echo $ECHO_N "checking whether external symbols need an underscore prefix... $ECHO_C" >&6
9528 if test "${ac_cv_c_extern_prefix+set}" = set; then
9529   echo $ECHO_N "(cached) $ECHO_C" >&6
9530 else
9531   ac_try_asm_link_saved_libs=$LIBS
9532 LIBS="conftest_asm.s $LIBS"
9533 cat > conftest_asm.s <<EOF
9534         .globl _ac_test
9535 _ac_test:
9536         .long 0
9537 EOF
9538 cat >conftest.$ac_ext <<_ACEOF
9539 #line $LINENO "configure"
9540 #include "confdefs.h"
9541 extern int ac_test;
9542 #ifdef F77_DUMMY_MAIN
9543 #  ifdef __cplusplus
9544      extern "C"
9545 #  endif
9546    int F77_DUMMY_MAIN() { return 1; }
9547 #endif
9548 int
9549 main ()
9550 {
9551 if (ac_test) return 1
9552   ;
9553   return 0;
9554 }
9555 _ACEOF
9556 rm -f conftest.$ac_objext conftest$ac_exeext
9557 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9558   (eval $ac_link) 2>&5
9559   ac_status=$?
9560   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9561   (exit $ac_status); } &&
9562          { ac_try='test -s conftest$ac_exeext'
9563   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9564   (eval $ac_try) 2>&5
9565   ac_status=$?
9566   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9567   (exit $ac_status); }; }; then
9568   ac_cv_c_extern_prefix="yes"
9569 else
9570   echo "$as_me: failed program was:" >&5
9571 cat conftest.$ac_ext >&5
9572 ac_cv_c_extern_prefix="no"
9573 fi
9574 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9575 rm -f conftest_asm.s
9576 LIBS=$ac_try_asm_link_saved_libs
9577 fi
9578 echo "$as_me:$LINENO: result: $ac_cv_c_extern_prefix" >&5
9579 echo "${ECHO_T}$ac_cv_c_extern_prefix" >&6
9580 if test "$ac_cv_c_extern_prefix" = "yes"
9581 then
9582
9583 cat >>confdefs.h <<\_ACEOF
9584 #define NEED_UNDERSCORE_PREFIX 1
9585 _ACEOF
9586
9587 fi
9588
9589
9590 echo "$as_me:$LINENO: checking whether stdcall symbols need to be decorated" >&5
9591 echo $ECHO_N "checking whether stdcall symbols need to be decorated... $ECHO_C" >&6
9592 if test "${ac_cv_c_stdcall_decoration+set}" = set; then
9593   echo $ECHO_N "(cached) $ECHO_C" >&6
9594 else
9595   ac_try_asm_link_saved_libs=$LIBS
9596 LIBS="conftest_asm.s $LIBS"
9597 cat > conftest_asm.s <<EOF
9598         .globl _ac_test@0
9599 _ac_test@0:
9600         .globl ac_test@0
9601 ac_test@0:
9602 EOF
9603 cat >conftest.$ac_ext <<_ACEOF
9604 #line $LINENO "configure"
9605 #include "confdefs.h"
9606 extern void __attribute__((__stdcall__)) ac_test(void);
9607 #ifdef F77_DUMMY_MAIN
9608 #  ifdef __cplusplus
9609      extern "C"
9610 #  endif
9611    int F77_DUMMY_MAIN() { return 1; }
9612 #endif
9613 int
9614 main ()
9615 {
9616 ac_test()
9617   ;
9618   return 0;
9619 }
9620 _ACEOF
9621 rm -f conftest.$ac_objext conftest$ac_exeext
9622 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9623   (eval $ac_link) 2>&5
9624   ac_status=$?
9625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9626   (exit $ac_status); } &&
9627          { ac_try='test -s conftest$ac_exeext'
9628   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9629   (eval $ac_try) 2>&5
9630   ac_status=$?
9631   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9632   (exit $ac_status); }; }; then
9633   ac_cv_c_stdcall_decoration="yes"
9634 else
9635   echo "$as_me: failed program was:" >&5
9636 cat conftest.$ac_ext >&5
9637 ac_cv_c_stdcall_decoration="no"
9638 fi
9639 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9640 rm -f conftest_asm.s
9641 LIBS=$ac_try_asm_link_saved_libs
9642 fi
9643 echo "$as_me:$LINENO: result: $ac_cv_c_stdcall_decoration" >&5
9644 echo "${ECHO_T}$ac_cv_c_stdcall_decoration" >&6
9645 if test "$ac_cv_c_stdcall_decoration" = "yes"
9646 then
9647
9648 cat >>confdefs.h <<\_ACEOF
9649 #define NEED_STDCALL_DECORATION 1
9650 _ACEOF
9651
9652 fi
9653
9654
9655 echo "$as_me:$LINENO: checking whether assembler accepts .string" >&5
9656 echo $ECHO_N "checking whether assembler accepts .string... $ECHO_C" >&6
9657 if test "${ac_cv_c_asm_string+set}" = set; then
9658   echo $ECHO_N "(cached) $ECHO_C" >&6
9659 else
9660   ac_try_asm_link_saved_libs=$LIBS
9661 LIBS="conftest_asm.s $LIBS"
9662 cat > conftest_asm.s <<EOF
9663         .string "test"
9664 EOF
9665 cat >conftest.$ac_ext <<_ACEOF
9666 #line $LINENO "configure"
9667 #include "confdefs.h"
9668
9669 #ifdef F77_DUMMY_MAIN
9670 #  ifdef __cplusplus
9671      extern "C"
9672 #  endif
9673    int F77_DUMMY_MAIN() { return 1; }
9674 #endif
9675 int
9676 main ()
9677 {
9678
9679   ;
9680   return 0;
9681 }
9682 _ACEOF
9683 rm -f conftest.$ac_objext conftest$ac_exeext
9684 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9685   (eval $ac_link) 2>&5
9686   ac_status=$?
9687   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9688   (exit $ac_status); } &&
9689          { ac_try='test -s conftest$ac_exeext'
9690   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9691   (eval $ac_try) 2>&5
9692   ac_status=$?
9693   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9694   (exit $ac_status); }; }; then
9695   ac_cv_c_asm_string="yes"
9696 else
9697   echo "$as_me: failed program was:" >&5
9698 cat conftest.$ac_ext >&5
9699 ac_cv_c_asm_string="no"
9700 fi
9701 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9702 rm -f conftest_asm.s
9703 LIBS=$ac_try_asm_link_saved_libs
9704 fi
9705 echo "$as_me:$LINENO: result: $ac_cv_c_asm_string" >&5
9706 echo "${ECHO_T}$ac_cv_c_asm_string" >&6
9707 if test "$ac_cv_c_asm_string" = "yes"
9708 then
9709
9710 cat >>confdefs.h <<\_ACEOF
9711 #define HAVE_ASM_STRING 1
9712 _ACEOF
9713
9714 fi
9715
9716
9717 LDSHARED=""
9718 LDDLLFLAGS=""
9719 DLLIBS=""
9720
9721 case $host_os in
9722   cygwin*|mingw32*)
9723     if test -n "$ac_tool_prefix"; then
9724   # Extract the first word of "${ac_tool_prefix}dllwrap", so it can be a program name with args.
9725 set dummy ${ac_tool_prefix}dllwrap; ac_word=$2
9726 echo "$as_me:$LINENO: checking for $ac_word" >&5
9727 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9728 if test "${ac_cv_prog_DLLWRAP+set}" = set; then
9729   echo $ECHO_N "(cached) $ECHO_C" >&6
9730 else
9731   if test -n "$DLLWRAP"; then
9732   ac_cv_prog_DLLWRAP="$DLLWRAP" # Let the user override the test.
9733 else
9734 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9735 for as_dir in $PATH
9736 do
9737   IFS=$as_save_IFS
9738   test -z "$as_dir" && as_dir=.
9739   for ac_exec_ext in '' $ac_executable_extensions; do
9740   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9741     ac_cv_prog_DLLWRAP="${ac_tool_prefix}dllwrap"
9742     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9743     break 2
9744   fi
9745 done
9746 done
9747
9748 fi
9749 fi
9750 DLLWRAP=$ac_cv_prog_DLLWRAP
9751 if test -n "$DLLWRAP"; then
9752   echo "$as_me:$LINENO: result: $DLLWRAP" >&5
9753 echo "${ECHO_T}$DLLWRAP" >&6
9754 else
9755   echo "$as_me:$LINENO: result: no" >&5
9756 echo "${ECHO_T}no" >&6
9757 fi
9758
9759 fi
9760 if test -z "$ac_cv_prog_DLLWRAP"; then
9761   ac_ct_DLLWRAP=$DLLWRAP
9762   # Extract the first word of "dllwrap", so it can be a program name with args.
9763 set dummy dllwrap; ac_word=$2
9764 echo "$as_me:$LINENO: checking for $ac_word" >&5
9765 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9766 if test "${ac_cv_prog_ac_ct_DLLWRAP+set}" = set; then
9767   echo $ECHO_N "(cached) $ECHO_C" >&6
9768 else
9769   if test -n "$ac_ct_DLLWRAP"; then
9770   ac_cv_prog_ac_ct_DLLWRAP="$ac_ct_DLLWRAP" # Let the user override the test.
9771 else
9772 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9773 for as_dir in $PATH
9774 do
9775   IFS=$as_save_IFS
9776   test -z "$as_dir" && as_dir=.
9777   for ac_exec_ext in '' $ac_executable_extensions; do
9778   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9779     ac_cv_prog_ac_ct_DLLWRAP="dllwrap"
9780     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9781     break 2
9782   fi
9783 done
9784 done
9785
9786   test -z "$ac_cv_prog_ac_ct_DLLWRAP" && ac_cv_prog_ac_ct_DLLWRAP="false"
9787 fi
9788 fi
9789 ac_ct_DLLWRAP=$ac_cv_prog_ac_ct_DLLWRAP
9790 if test -n "$ac_ct_DLLWRAP"; then
9791   echo "$as_me:$LINENO: result: $ac_ct_DLLWRAP" >&5
9792 echo "${ECHO_T}$ac_ct_DLLWRAP" >&6
9793 else
9794   echo "$as_me:$LINENO: result: no" >&5
9795 echo "${ECHO_T}no" >&6
9796 fi
9797
9798   DLLWRAP=$ac_ct_DLLWRAP
9799 else
9800   DLLWRAP="$ac_cv_prog_DLLWRAP"
9801 fi
9802
9803     if test "$DLLWRAP" = "false"; then
9804       LIBEXT="a"
9805     else
9806             LIBEXT="dll"
9807     fi
9808     ;;
9809   *)
9810
9811 for ac_header in dlfcn.h
9812 do
9813 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9814 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9815   echo "$as_me:$LINENO: checking for $ac_header" >&5
9816 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9817 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9818   echo $ECHO_N "(cached) $ECHO_C" >&6
9819 fi
9820 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9821 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9822 else
9823   # Is the header compilable?
9824 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9825 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9826 cat >conftest.$ac_ext <<_ACEOF
9827 #line $LINENO "configure"
9828 #include "confdefs.h"
9829 $ac_includes_default
9830 #include <$ac_header>
9831 _ACEOF
9832 rm -f conftest.$ac_objext
9833 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9834   (eval $ac_compile) 2>&5
9835   ac_status=$?
9836   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9837   (exit $ac_status); } &&
9838          { ac_try='test -s conftest.$ac_objext'
9839   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9840   (eval $ac_try) 2>&5
9841   ac_status=$?
9842   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9843   (exit $ac_status); }; }; then
9844   ac_header_compiler=yes
9845 else
9846   echo "$as_me: failed program was:" >&5
9847 cat conftest.$ac_ext >&5
9848 ac_header_compiler=no
9849 fi
9850 rm -f conftest.$ac_objext conftest.$ac_ext
9851 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9852 echo "${ECHO_T}$ac_header_compiler" >&6
9853
9854 # Is the header present?
9855 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9856 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9857 cat >conftest.$ac_ext <<_ACEOF
9858 #line $LINENO "configure"
9859 #include "confdefs.h"
9860 #include <$ac_header>
9861 _ACEOF
9862 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9863   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9864   ac_status=$?
9865   egrep -v '^ *\+' conftest.er1 >conftest.err
9866   rm -f conftest.er1
9867   cat conftest.err >&5
9868   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9869   (exit $ac_status); } >/dev/null; then
9870   if test -s conftest.err; then
9871     ac_cpp_err=$ac_c_preproc_warn_flag
9872   else
9873     ac_cpp_err=
9874   fi
9875 else
9876   ac_cpp_err=yes
9877 fi
9878 if test -z "$ac_cpp_err"; then
9879   ac_header_preproc=yes
9880 else
9881   echo "$as_me: failed program was:" >&5
9882   cat conftest.$ac_ext >&5
9883   ac_header_preproc=no
9884 fi
9885 rm -f conftest.err conftest.$ac_ext
9886 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9887 echo "${ECHO_T}$ac_header_preproc" >&6
9888
9889 # So?  What about this header?
9890 case $ac_header_compiler:$ac_header_preproc in
9891   yes:no )
9892     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9893 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9894     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9895 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
9896   no:yes )
9897     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9898 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9899     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9900 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9901     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9902 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
9903 esac
9904 echo "$as_me:$LINENO: checking for $ac_header" >&5
9905 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9906 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9907   echo $ECHO_N "(cached) $ECHO_C" >&6
9908 else
9909   eval "$as_ac_Header=$ac_header_preproc"
9910 fi
9911 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9912 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9913
9914 fi
9915 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9916   cat >>confdefs.h <<_ACEOF
9917 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9918 _ACEOF
9919
9920 for ac_func in dlopen
9921 do
9922 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9923 echo "$as_me:$LINENO: checking for $ac_func" >&5
9924 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9925 if eval "test \"\${$as_ac_var+set}\" = set"; then
9926   echo $ECHO_N "(cached) $ECHO_C" >&6
9927 else
9928   cat >conftest.$ac_ext <<_ACEOF
9929 #line $LINENO "configure"
9930 #include "confdefs.h"
9931 /* System header to define __stub macros and hopefully few prototypes,
9932     which can conflict with char $ac_func (); below.  */
9933 #include <assert.h>
9934 /* Override any gcc2 internal prototype to avoid an error.  */
9935 #ifdef __cplusplus
9936 extern "C"
9937 #endif
9938 /* We use char because int might match the return type of a gcc2
9939    builtin and then its argument prototype would still apply.  */
9940 char $ac_func ();
9941 char (*f) ();
9942
9943 #ifdef F77_DUMMY_MAIN
9944 #  ifdef __cplusplus
9945      extern "C"
9946 #  endif
9947    int F77_DUMMY_MAIN() { return 1; }
9948 #endif
9949 int
9950 main ()
9951 {
9952 /* The GNU C library defines this for functions which it implements
9953     to always fail with ENOSYS.  Some functions are actually named
9954     something starting with __ and the normal name is an alias.  */
9955 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9956 choke me
9957 #else
9958 f = $ac_func;
9959 #endif
9960
9961   ;
9962   return 0;
9963 }
9964 _ACEOF
9965 rm -f conftest.$ac_objext conftest$ac_exeext
9966 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9967   (eval $ac_link) 2>&5
9968   ac_status=$?
9969   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9970   (exit $ac_status); } &&
9971          { ac_try='test -s conftest$ac_exeext'
9972   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9973   (eval $ac_try) 2>&5
9974   ac_status=$?
9975   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9976   (exit $ac_status); }; }; then
9977   eval "$as_ac_var=yes"
9978 else
9979   echo "$as_me: failed program was:" >&5
9980 cat conftest.$ac_ext >&5
9981 eval "$as_ac_var=no"
9982 fi
9983 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9984 fi
9985 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9986 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9987 if test `eval echo '${'$as_ac_var'}'` = yes; then
9988   cat >>confdefs.h <<_ACEOF
9989 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9990 _ACEOF
9991
9992 else
9993   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9994 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9995 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9996   echo $ECHO_N "(cached) $ECHO_C" >&6
9997 else
9998   ac_check_lib_save_LIBS=$LIBS
9999 LIBS="-ldl  $LIBS"
10000 cat >conftest.$ac_ext <<_ACEOF
10001 #line $LINENO "configure"
10002 #include "confdefs.h"
10003
10004 /* Override any gcc2 internal prototype to avoid an error.  */
10005 #ifdef __cplusplus
10006 extern "C"
10007 #endif
10008 /* We use char because int might match the return type of a gcc2
10009    builtin and then its argument prototype would still apply.  */
10010 char dlopen ();
10011 #ifdef F77_DUMMY_MAIN
10012 #  ifdef __cplusplus
10013      extern "C"
10014 #  endif
10015    int F77_DUMMY_MAIN() { return 1; }
10016 #endif
10017 int
10018 main ()
10019 {
10020 dlopen ();
10021   ;
10022   return 0;
10023 }
10024 _ACEOF
10025 rm -f conftest.$ac_objext conftest$ac_exeext
10026 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10027   (eval $ac_link) 2>&5
10028   ac_status=$?
10029   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10030   (exit $ac_status); } &&
10031          { ac_try='test -s conftest$ac_exeext'
10032   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10033   (eval $ac_try) 2>&5
10034   ac_status=$?
10035   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10036   (exit $ac_status); }; }; then
10037   ac_cv_lib_dl_dlopen=yes
10038 else
10039   echo "$as_me: failed program was:" >&5
10040 cat conftest.$ac_ext >&5
10041 ac_cv_lib_dl_dlopen=no
10042 fi
10043 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10044 LIBS=$ac_check_lib_save_LIBS
10045 fi
10046 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10047 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10048 if test $ac_cv_lib_dl_dlopen = yes; then
10049
10050 cat >>confdefs.h <<\_ACEOF
10051 #define HAVE_DLOPEN 1
10052 _ACEOF
10053
10054                           DLLIBS="-ldl"
10055 else
10056   LIBEXT="a"
10057 fi
10058
10059 fi
10060 done
10061
10062 else
10063   LIBEXT="a"
10064 fi
10065
10066 done
10067
10068
10069     if test "$LIBEXT" = "so"
10070     then
10071       echo "$as_me:$LINENO: checking whether we can build a GNU style ELF dll" >&5
10072 echo $ECHO_N "checking whether we can build a GNU style ELF dll... $ECHO_C" >&6
10073 if test "${ac_cv_c_dll_gnuelf+set}" = set; then
10074   echo $ECHO_N "(cached) $ECHO_C" >&6
10075 else
10076   ac_wine_try_cflags_saved=$CFLAGS
10077 CFLAGS="$CFLAGS -fPIC -shared -Wl,-soname,conftest.so.1.0,-Bsymbolic"
10078 cat >conftest.$ac_ext <<_ACEOF
10079 #line $LINENO "configure"
10080 #include "confdefs.h"
10081
10082 #ifdef F77_DUMMY_MAIN
10083 #  ifdef __cplusplus
10084      extern "C"
10085 #  endif
10086    int F77_DUMMY_MAIN() { return 1; }
10087 #endif
10088 int
10089 main ()
10090 {
10091
10092   ;
10093   return 0;
10094 }
10095 _ACEOF
10096 rm -f conftest.$ac_objext conftest$ac_exeext
10097 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10098   (eval $ac_link) 2>&5
10099   ac_status=$?
10100   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10101   (exit $ac_status); } &&
10102          { ac_try='test -s conftest$ac_exeext'
10103   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10104   (eval $ac_try) 2>&5
10105   ac_status=$?
10106   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10107   (exit $ac_status); }; }; then
10108   ac_cv_c_dll_gnuelf="yes"
10109 else
10110   echo "$as_me: failed program was:" >&5
10111 cat conftest.$ac_ext >&5
10112 ac_cv_c_dll_gnuelf="no"
10113 fi
10114 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10115 CFLAGS=$ac_wine_try_cflags_saved
10116 fi
10117 echo "$as_me:$LINENO: result: $ac_cv_c_dll_gnuelf" >&5
10118 echo "${ECHO_T}$ac_cv_c_dll_gnuelf" >&6
10119       if test "$ac_cv_c_dll_gnuelf" = "yes"
10120       then
10121         LDSHARED="\$(CC) -shared \$(SONAME:%=-Wl,-soname,%)"
10122         LDDLLFLAGS="-Wl,-Bsymbolic"
10123       else
10124         echo "$as_me:$LINENO: checking whether we can build a UnixWare (Solaris) dll" >&5
10125 echo $ECHO_N "checking whether we can build a UnixWare (Solaris) dll... $ECHO_C" >&6
10126 if test "${ac_cv_c_dll_unixware+set}" = set; then
10127   echo $ECHO_N "(cached) $ECHO_C" >&6
10128 else
10129   ac_wine_try_cflags_saved=$CFLAGS
10130 CFLAGS="$CFLAGS -fPIC -Wl,-G,-h,conftest.so.1.0,-B,symbolic"
10131 cat >conftest.$ac_ext <<_ACEOF
10132 #line $LINENO "configure"
10133 #include "confdefs.h"
10134
10135 #ifdef F77_DUMMY_MAIN
10136 #  ifdef __cplusplus
10137      extern "C"
10138 #  endif
10139    int F77_DUMMY_MAIN() { return 1; }
10140 #endif
10141 int
10142 main ()
10143 {
10144
10145   ;
10146   return 0;
10147 }
10148 _ACEOF
10149 rm -f conftest.$ac_objext conftest$ac_exeext
10150 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10151   (eval $ac_link) 2>&5
10152   ac_status=$?
10153   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10154   (exit $ac_status); } &&
10155          { ac_try='test -s conftest$ac_exeext'
10156   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10157   (eval $ac_try) 2>&5
10158   ac_status=$?
10159   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10160   (exit $ac_status); }; }; then
10161   ac_cv_c_dll_unixware="yes"
10162 else
10163   echo "$as_me: failed program was:" >&5
10164 cat conftest.$ac_ext >&5
10165 ac_cv_c_dll_unixware="no"
10166 fi
10167 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10168 CFLAGS=$ac_wine_try_cflags_saved
10169 fi
10170 echo "$as_me:$LINENO: result: $ac_cv_c_dll_unixware" >&5
10171 echo "${ECHO_T}$ac_cv_c_dll_unixware" >&6
10172         if test "$ac_cv_c_dll_unixware" = "yes"
10173         then
10174           LDSHARED="\$(CC) -Wl,-G \$(SONAME:%=-Wl,-h,%)"
10175           LDDLLFLAGS="-Wl,-B,symbolic"
10176         fi
10177       fi
10178     fi
10179     ;;
10180 esac
10181
10182 if test "$LIBEXT" = "a"; then
10183   { { echo "$as_me:$LINENO: error: could not find a way to build shared libraries.
10184 It is currently not possible to build Wine without shared library
10185 (.so) support to allow transparent switch between .so and .dll files.
10186 If you are using Linux, you will need a newer binutils.
10187 " >&5
10188 echo "$as_me: error: could not find a way to build shared libraries.
10189 It is currently not possible to build Wine without shared library
10190 (.so) support to allow transparent switch between .so and .dll files.
10191 If you are using Linux, you will need a newer binutils.
10192 " >&2;}
10193    { (exit 1); exit 1; }; }
10194 fi
10195
10196 DLLFLAGS=""
10197
10198 if test "$LIBEXT" = "so"; then
10199     DLLFLAGS="-fPIC"
10200     DLLEXT=".so"
10201 elif test "$LIBEXT" = "dll"; then
10202     #DLLFLAGS="-fPIC" # -fPIC doesn't work(at least in cygwin-b20) - FIXME
10203     DLLEXT=""
10204 fi
10205
10206 case $build_os in
10207   cygwin*|mingw32*)
10208     LDPATH="PATH=\"\$(TOOLSDIR)/library:\$(TOOLSDIR)/unicode:\$\$PATH\"" ;;
10209   *)
10210     LDPATH="LD_LIBRARY_PATH=\"\$(TOOLSDIR)/library:\$(TOOLSDIR)/unicode:\$\$LD_LIBRARY_PATH\"" ;;
10211 esac
10212
10213
10214
10215
10216
10217
10218
10219
10220
10221
10222 if test "$LIBEXT" = "so"
10223 then
10224   # Extract the first word of "ldd", so it can be a program name with args.
10225 set dummy ldd; ac_word=$2
10226 echo "$as_me:$LINENO: checking for $ac_word" >&5
10227 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10228 if test "${ac_cv_path_LDD+set}" = set; then
10229   echo $ECHO_N "(cached) $ECHO_C" >&6
10230 else
10231   case $LDD in
10232   [\\/]* | ?:[\\/]*)
10233   ac_cv_path_LDD="$LDD" # Let the user override the test with a path.
10234   ;;
10235   *)
10236   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10237 for as_dir in /sbin:/usr/sbin:$PATH
10238 do
10239   IFS=$as_save_IFS
10240   test -z "$as_dir" && as_dir=.
10241   for ac_exec_ext in '' $ac_executable_extensions; do
10242   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10243     ac_cv_path_LDD="$as_dir/$ac_word$ac_exec_ext"
10244     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10245     break 2
10246   fi
10247 done
10248 done
10249
10250   test -z "$ac_cv_path_LDD" && ac_cv_path_LDD="true"
10251   ;;
10252 esac
10253 fi
10254 LDD=$ac_cv_path_LDD
10255
10256 if test -n "$LDD"; then
10257   echo "$as_me:$LINENO: result: $LDD" >&5
10258 echo "${ECHO_T}$LDD" >&6
10259 else
10260   echo "$as_me:$LINENO: result: no" >&5
10261 echo "${ECHO_T}no" >&6
10262 fi
10263
10264
10265 echo "$as_me:$LINENO: checking for -lX11 soname" >&5
10266 echo $ECHO_N "checking for -lX11 soname... $ECHO_C" >&6
10267 if test "${ac_cv_lib_soname_X11+set}" = set; then
10268   echo $ECHO_N "(cached) $ECHO_C" >&6
10269 else
10270   ac_get_soname_save_LIBS=$LIBS
10271 LIBS="-lX11 $X_LIBS $X_EXTRA_LIBS $LIBS"
10272   cat >conftest.$ac_ext <<_ACEOF
10273 #line $LINENO "configure"
10274 #include "confdefs.h"
10275
10276 /* Override any gcc2 internal prototype to avoid an error.  */
10277 #ifdef __cplusplus
10278 extern "C"
10279 #endif
10280 /* We use char because int might match the return type of a gcc2
10281    builtin and then its argument prototype would still apply.  */
10282 char XCreateWindow ();
10283 #ifdef F77_DUMMY_MAIN
10284 #  ifdef __cplusplus
10285      extern "C"
10286 #  endif
10287    int F77_DUMMY_MAIN() { return 1; }
10288 #endif
10289 int
10290 main ()
10291 {
10292 XCreateWindow ();
10293   ;
10294   return 0;
10295 }
10296 _ACEOF
10297 rm -f conftest.$ac_objext conftest$ac_exeext
10298 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10299   (eval $ac_link) 2>&5
10300   ac_status=$?
10301   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10302   (exit $ac_status); } &&
10303          { ac_try='test -s conftest$ac_exeext'
10304   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10305   (eval $ac_try) 2>&5
10306   ac_status=$?
10307   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10308   (exit $ac_status); }; }; then
10309   ac_cv_lib_soname_X11=`$ac_cv_path_LDD conftest$ac_exeext | grep libX11\\.so | sed 's/^[       ]*\([^  ]*\)[   ]*=>.*$/\1/'`
10310   if test "x$ac_cv_lib_soname_X11" = "x"
10311   then
10312      ac_cv_lib_soname_X11="libX11.so"
10313   fi
10314 else
10315   echo "$as_me: failed program was:" >&5
10316 cat conftest.$ac_ext >&5
10317 ac_cv_lib_soname_X11="libX11.so"
10318 fi
10319 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10320   LIBS=$ac_get_soname_save_LIBS
10321 fi
10322 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_X11" >&5
10323 echo "${ECHO_T}$ac_cv_lib_soname_X11" >&6
10324 if test "x$ac_cv_lib_soname_X11" != xNONE
10325 then
10326 cat >>confdefs.h <<_ACEOF
10327 #define SONAME_LIBX11 "$ac_cv_lib_soname_X11"
10328 _ACEOF
10329 fi
10330
10331 echo "$as_me:$LINENO: checking for -lXext soname" >&5
10332 echo $ECHO_N "checking for -lXext soname... $ECHO_C" >&6
10333 if test "${ac_cv_lib_soname_Xext+set}" = set; then
10334   echo $ECHO_N "(cached) $ECHO_C" >&6
10335 else
10336   ac_get_soname_save_LIBS=$LIBS
10337 LIBS="-lXext $X_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
10338   cat >conftest.$ac_ext <<_ACEOF
10339 #line $LINENO "configure"
10340 #include "confdefs.h"
10341
10342 /* Override any gcc2 internal prototype to avoid an error.  */
10343 #ifdef __cplusplus
10344 extern "C"
10345 #endif
10346 /* We use char because int might match the return type of a gcc2
10347    builtin and then its argument prototype would still apply.  */
10348 char XextCreateExtension ();
10349 #ifdef F77_DUMMY_MAIN
10350 #  ifdef __cplusplus
10351      extern "C"
10352 #  endif
10353    int F77_DUMMY_MAIN() { return 1; }
10354 #endif
10355 int
10356 main ()
10357 {
10358 XextCreateExtension ();
10359   ;
10360   return 0;
10361 }
10362 _ACEOF
10363 rm -f conftest.$ac_objext conftest$ac_exeext
10364 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10365   (eval $ac_link) 2>&5
10366   ac_status=$?
10367   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10368   (exit $ac_status); } &&
10369          { ac_try='test -s conftest$ac_exeext'
10370   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10371   (eval $ac_try) 2>&5
10372   ac_status=$?
10373   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10374   (exit $ac_status); }; }; then
10375   ac_cv_lib_soname_Xext=`$ac_cv_path_LDD conftest$ac_exeext | grep libXext\\.so | sed 's/^[     ]*\([^  ]*\)[   ]*=>.*$/\1/'`
10376   if test "x$ac_cv_lib_soname_Xext" = "x"
10377   then
10378      ac_cv_lib_soname_Xext="libXext.so"
10379   fi
10380 else
10381   echo "$as_me: failed program was:" >&5
10382 cat conftest.$ac_ext >&5
10383 ac_cv_lib_soname_Xext="libXext.so"
10384 fi
10385 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10386   LIBS=$ac_get_soname_save_LIBS
10387 fi
10388 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_Xext" >&5
10389 echo "${ECHO_T}$ac_cv_lib_soname_Xext" >&6
10390 if test "x$ac_cv_lib_soname_Xext" != xNONE
10391 then
10392 cat >>confdefs.h <<_ACEOF
10393 #define SONAME_LIBXEXT "$ac_cv_lib_soname_Xext"
10394 _ACEOF
10395 fi
10396
10397 echo "$as_me:$LINENO: checking for -lXrender soname" >&5
10398 echo $ECHO_N "checking for -lXrender soname... $ECHO_C" >&6
10399 if test "${ac_cv_lib_soname_Xrender+set}" = set; then
10400   echo $ECHO_N "(cached) $ECHO_C" >&6
10401 else
10402   ac_get_soname_save_LIBS=$LIBS
10403 LIBS="-lXrender $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
10404   cat >conftest.$ac_ext <<_ACEOF
10405 #line $LINENO "configure"
10406 #include "confdefs.h"
10407
10408 /* Override any gcc2 internal prototype to avoid an error.  */
10409 #ifdef __cplusplus
10410 extern "C"
10411 #endif
10412 /* We use char because int might match the return type of a gcc2
10413    builtin and then its argument prototype would still apply.  */
10414 char XRenderQueryExtension ();
10415 #ifdef F77_DUMMY_MAIN
10416 #  ifdef __cplusplus
10417      extern "C"
10418 #  endif
10419    int F77_DUMMY_MAIN() { return 1; }
10420 #endif
10421 int
10422 main ()
10423 {
10424 XRenderQueryExtension ();
10425   ;
10426   return 0;
10427 }
10428 _ACEOF
10429 rm -f conftest.$ac_objext conftest$ac_exeext
10430 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10431   (eval $ac_link) 2>&5
10432   ac_status=$?
10433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10434   (exit $ac_status); } &&
10435          { ac_try='test -s conftest$ac_exeext'
10436   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10437   (eval $ac_try) 2>&5
10438   ac_status=$?
10439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10440   (exit $ac_status); }; }; then
10441   ac_cv_lib_soname_Xrender=`$ac_cv_path_LDD conftest$ac_exeext | grep libXrender\\.so | sed 's/^[       ]*\([^  ]*\)[   ]*=>.*$/\1/'`
10442   if test "x$ac_cv_lib_soname_Xrender" = "x"
10443   then
10444      ac_cv_lib_soname_Xrender="libXrender.so"
10445   fi
10446 else
10447   echo "$as_me: failed program was:" >&5
10448 cat conftest.$ac_ext >&5
10449 ac_cv_lib_soname_Xrender="libXrender.so"
10450 fi
10451 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10452   LIBS=$ac_get_soname_save_LIBS
10453 fi
10454 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_Xrender" >&5
10455 echo "${ECHO_T}$ac_cv_lib_soname_Xrender" >&6
10456 if test "x$ac_cv_lib_soname_Xrender" != xNONE
10457 then
10458 cat >>confdefs.h <<_ACEOF
10459 #define SONAME_LIBXRENDER "$ac_cv_lib_soname_Xrender"
10460 _ACEOF
10461 fi
10462
10463 echo "$as_me:$LINENO: checking for -lfreetype soname" >&5
10464 echo $ECHO_N "checking for -lfreetype soname... $ECHO_C" >&6
10465 if test "${ac_cv_lib_soname_freetype+set}" = set; then
10466   echo $ECHO_N "(cached) $ECHO_C" >&6
10467 else
10468   ac_get_soname_save_LIBS=$LIBS
10469 LIBS="-lfreetype $X_LIBS $LIBS"
10470   cat >conftest.$ac_ext <<_ACEOF
10471 #line $LINENO "configure"
10472 #include "confdefs.h"
10473
10474 /* Override any gcc2 internal prototype to avoid an error.  */
10475 #ifdef __cplusplus
10476 extern "C"
10477 #endif
10478 /* We use char because int might match the return type of a gcc2
10479    builtin and then its argument prototype would still apply.  */
10480 char FT_Init_FreeType ();
10481 #ifdef F77_DUMMY_MAIN
10482 #  ifdef __cplusplus
10483      extern "C"
10484 #  endif
10485    int F77_DUMMY_MAIN() { return 1; }
10486 #endif
10487 int
10488 main ()
10489 {
10490 FT_Init_FreeType ();
10491   ;
10492   return 0;
10493 }
10494 _ACEOF
10495 rm -f conftest.$ac_objext conftest$ac_exeext
10496 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10497   (eval $ac_link) 2>&5
10498   ac_status=$?
10499   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10500   (exit $ac_status); } &&
10501          { ac_try='test -s conftest$ac_exeext'
10502   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10503   (eval $ac_try) 2>&5
10504   ac_status=$?
10505   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10506   (exit $ac_status); }; }; then
10507   ac_cv_lib_soname_freetype=`$ac_cv_path_LDD conftest$ac_exeext | grep libfreetype\\.so | sed 's/^[     ]*\([^  ]*\)[   ]*=>.*$/\1/'`
10508   if test "x$ac_cv_lib_soname_freetype" = "x"
10509   then
10510      ac_cv_lib_soname_freetype="libfreetype.so"
10511   fi
10512 else
10513   echo "$as_me: failed program was:" >&5
10514 cat conftest.$ac_ext >&5
10515 ac_cv_lib_soname_freetype="libfreetype.so"
10516 fi
10517 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10518   LIBS=$ac_get_soname_save_LIBS
10519 fi
10520 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_freetype" >&5
10521 echo "${ECHO_T}$ac_cv_lib_soname_freetype" >&6
10522 if test "x$ac_cv_lib_soname_freetype" != xNONE
10523 then
10524 cat >>confdefs.h <<_ACEOF
10525 #define SONAME_LIBFREETYPE "$ac_cv_lib_soname_freetype"
10526 _ACEOF
10527 fi
10528 fi
10529
10530
10531
10532 wine_cv_libc_reentrant=no
10533 echo "$as_me:$LINENO: checking for reentrant libc: __errno_location" >&5
10534 echo $ECHO_N "checking for reentrant libc: __errno_location... $ECHO_C" >&6
10535 if test "${wine_cv_libc_r___errno_location+set}" = set; then
10536   echo $ECHO_N "(cached) $ECHO_C" >&6
10537 else
10538   if test "$cross_compiling" = yes; then
10539   wine_cv_libc_r___errno_location=yes
10540 else
10541   cat >conftest.$ac_ext <<_ACEOF
10542 #line $LINENO "configure"
10543 #include "confdefs.h"
10544 int myerrno = 0;
10545 char buf[256];
10546 int *__errno_location(){return &myerrno;}
10547 main(){connect(0,buf,255); exit(!myerrno);}
10548 _ACEOF
10549 rm -f conftest$ac_exeext
10550 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10551   (eval $ac_link) 2>&5
10552   ac_status=$?
10553   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10554   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10555   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10556   (eval $ac_try) 2>&5
10557   ac_status=$?
10558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10559   (exit $ac_status); }; }; then
10560   wine_cv_libc_r___errno_location=yes
10561 else
10562   echo "$as_me: program exited with status $ac_status" >&5
10563 echo "$as_me: failed program was:" >&5
10564 cat conftest.$ac_ext >&5
10565 ( exit $ac_status )
10566 wine_cv_libc_r___errno_location=no
10567 fi
10568 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10569 fi
10570 fi
10571 echo "$as_me:$LINENO: result: $wine_cv_libc_r___errno_location" >&5
10572 echo "${ECHO_T}$wine_cv_libc_r___errno_location" >&6
10573 if test "$wine_cv_libc_r___errno_location" = "yes"; then
10574   wine_cv_libc_reentrant=__errno_location
10575 else
10576     echo "$as_me:$LINENO: checking for reentrant libc: __error" >&5
10577 echo $ECHO_N "checking for reentrant libc: __error... $ECHO_C" >&6
10578 if test "${wine_cv_libc_r___error+set}" = set; then
10579   echo $ECHO_N "(cached) $ECHO_C" >&6
10580 else
10581   if test "$cross_compiling" = yes; then
10582   wine_cv_libc_r___error=yes
10583 else
10584   cat >conftest.$ac_ext <<_ACEOF
10585 #line $LINENO "configure"
10586 #include "confdefs.h"
10587 int myerrno = 0;
10588 char buf256;
10589 int *__error(){return &myerrno;}
10590 main(){connect(0,buf,255); exit(!myerrno);}
10591 _ACEOF
10592 rm -f conftest$ac_exeext
10593 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10594   (eval $ac_link) 2>&5
10595   ac_status=$?
10596   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10597   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10598   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10599   (eval $ac_try) 2>&5
10600   ac_status=$?
10601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10602   (exit $ac_status); }; }; then
10603   wine_cv_libc_r___error=yes
10604 else
10605   echo "$as_me: program exited with status $ac_status" >&5
10606 echo "$as_me: failed program was:" >&5
10607 cat conftest.$ac_ext >&5
10608 ( exit $ac_status )
10609 wine_cv_libc_r___error=no
10610 fi
10611 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10612 fi
10613 fi
10614 echo "$as_me:$LINENO: result: $wine_cv_libc_r___error" >&5
10615 echo "${ECHO_T}$wine_cv_libc_r___error" >&6
10616 if test "$wine_cv_libc_r___error" = "yes"; then
10617   wine_cv_libc_reentrant=__error
10618 else
10619       echo "$as_me:$LINENO: checking for reentrant libc: ___errno" >&5
10620 echo $ECHO_N "checking for reentrant libc: ___errno... $ECHO_C" >&6
10621 if test "${wine_cv_libc_r____errno+set}" = set; then
10622   echo $ECHO_N "(cached) $ECHO_C" >&6
10623 else
10624   if test "$cross_compiling" = yes; then
10625   wine_cv_libc_r____errno=yes
10626 else
10627   cat >conftest.$ac_ext <<_ACEOF
10628 #line $LINENO "configure"
10629 #include "confdefs.h"
10630 int myerrno = 0;
10631 char buf256;
10632 int *___errno(){return &myerrno;}
10633 main(){connect(0,buf,255); exit(!myerrno);}
10634 _ACEOF
10635 rm -f conftest$ac_exeext
10636 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10637   (eval $ac_link) 2>&5
10638   ac_status=$?
10639   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10640   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10641   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10642   (eval $ac_try) 2>&5
10643   ac_status=$?
10644   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10645   (exit $ac_status); }; }; then
10646   wine_cv_libc_r____errno=yes
10647 else
10648   echo "$as_me: program exited with status $ac_status" >&5
10649 echo "$as_me: failed program was:" >&5
10650 cat conftest.$ac_ext >&5
10651 ( exit $ac_status )
10652 wine_cv_libc_r____errno=no
10653 fi
10654 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10655 fi
10656 fi
10657 echo "$as_me:$LINENO: result: $wine_cv_libc_r____errno" >&5
10658 echo "${ECHO_T}$wine_cv_libc_r____errno" >&6
10659 if test "$wine_cv_libc_r____errno" = "yes"; then
10660   wine_cv_libc_reentrant=___errno
10661 else
10662         echo "$as_me:$LINENO: checking for reentrant libc: __thr_errno" >&5
10663 echo $ECHO_N "checking for reentrant libc: __thr_errno... $ECHO_C" >&6
10664 if test "${wine_cv_libc_r___thr_errno+set}" = set; then
10665   echo $ECHO_N "(cached) $ECHO_C" >&6
10666 else
10667   if test "$cross_compiling" = yes; then
10668   wine_cv_libc_r___thr_errno=yes
10669 else
10670   cat >conftest.$ac_ext <<_ACEOF
10671 #line $LINENO "configure"
10672 #include "confdefs.h"
10673 int myerrno = 0;
10674 char buf256;
10675 int *__thr_errno(){return &myerrno;}
10676 main(){connect(0,buf,255); exit(!myerrno);}
10677 _ACEOF
10678 rm -f conftest$ac_exeext
10679 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10680   (eval $ac_link) 2>&5
10681   ac_status=$?
10682   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10683   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10684   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10685   (eval $ac_try) 2>&5
10686   ac_status=$?
10687   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10688   (exit $ac_status); }; }; then
10689   wine_cv_libc_r___thr_errno=yes
10690 else
10691   echo "$as_me: program exited with status $ac_status" >&5
10692 echo "$as_me: failed program was:" >&5
10693 cat conftest.$ac_ext >&5
10694 ( exit $ac_status )
10695 wine_cv_libc_r___thr_errno=no
10696 fi
10697 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10698 fi
10699 fi
10700 echo "$as_me:$LINENO: result: $wine_cv_libc_r___thr_errno" >&5
10701 echo "${ECHO_T}$wine_cv_libc_r___thr_errno" >&6
10702 if test "$wine_cv_libc_r___thr_errno" = "yes"; then
10703   wine_cv_libc_reentrant=__thr_errno
10704 else
10705           echo "$as_me:$LINENO: checking for reentrant libc: __errno" >&5
10706 echo $ECHO_N "checking for reentrant libc: __errno... $ECHO_C" >&6
10707 if test "${wine_cv_libc_r___errno+set}" = set; then
10708   echo $ECHO_N "(cached) $ECHO_C" >&6
10709 else
10710   if test "$cross_compiling" = yes; then
10711   wine_cv_libc_r___errno=yes
10712 else
10713   cat >conftest.$ac_ext <<_ACEOF
10714 #line $LINENO "configure"
10715 #include "confdefs.h"
10716 int myerrno = 0;
10717 char buf256;
10718 int *__errno(){return &myerrno;}
10719 main(){connect(0,buf,255); exit(!myerrno);}
10720 _ACEOF
10721 rm -f conftest$ac_exeext
10722 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10723   (eval $ac_link) 2>&5
10724   ac_status=$?
10725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10726   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10727   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10728   (eval $ac_try) 2>&5
10729   ac_status=$?
10730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10731   (exit $ac_status); }; }; then
10732   wine_cv_libc_r___errno=yes
10733 else
10734   echo "$as_me: program exited with status $ac_status" >&5
10735 echo "$as_me: failed program was:" >&5
10736 cat conftest.$ac_ext >&5
10737 ( exit $ac_status )
10738 wine_cv_libc_r___errno=no
10739 fi
10740 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10741 fi
10742 fi
10743 echo "$as_me:$LINENO: result: $wine_cv_libc_r___errno" >&5
10744 echo "${ECHO_T}$wine_cv_libc_r___errno" >&6
10745 if test "$wine_cv_libc_r___errno" = "yes"; then
10746   wine_cv_libc_reentrant=__errno
10747 fi
10748
10749
10750 fi
10751
10752 fi
10753
10754 fi
10755
10756 fi
10757
10758
10759 if test "$wine_cv_libc_reentrant" != "no"
10760 then
10761
10762 cat >>confdefs.h <<_ACEOF
10763 #define ERRNO_LOCATION $wine_cv_libc_reentrant
10764 _ACEOF
10765
10766 fi
10767
10768
10769 if test "$have_x" = "yes"
10770 then
10771 echo "$as_me:$LINENO: checking for reentrant X libraries" >&5
10772 echo $ECHO_N "checking for reentrant X libraries... $ECHO_C" >&6
10773 if test "${wine_cv_x_reentrant+set}" = set; then
10774   echo $ECHO_N "(cached) $ECHO_C" >&6
10775 else
10776   libX11_check=none
10777     for dir in "$x_libraries" /usr/lib /usr/local/lib /lib; do
10778         if test -r $dir/libX11.so; then
10779             libX11_check="-D $dir/libX11.so"
10780             break
10781         fi
10782         if test -r $dir/libX11.a; then
10783             libX11_check="$dir/libX11.a"
10784             break
10785         fi
10786     done
10787     if test "$libX11_check" != "none"; then
10788         if nm $libX11_check | grep $wine_cv_libc_reentrant >/dev/null 2>&1
10789         then
10790             wine_cv_x_reentrant=yes
10791         else
10792             wine_cv_x_reentrant=no
10793         fi
10794     else
10795         wine_cv_x_reentrant=unknown
10796     fi
10797 fi
10798 echo "$as_me:$LINENO: result: $wine_cv_x_reentrant" >&5
10799 echo "${ECHO_T}$wine_cv_x_reentrant" >&6
10800 fi
10801
10802
10803 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
10804 # for constant arguments.  Useless!
10805 echo "$as_me:$LINENO: checking for working alloca.h" >&5
10806 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
10807 if test "${ac_cv_working_alloca_h+set}" = set; then
10808   echo $ECHO_N "(cached) $ECHO_C" >&6
10809 else
10810   cat >conftest.$ac_ext <<_ACEOF
10811 #line $LINENO "configure"
10812 #include "confdefs.h"
10813 #include <alloca.h>
10814 #ifdef F77_DUMMY_MAIN
10815 #  ifdef __cplusplus
10816      extern "C"
10817 #  endif
10818    int F77_DUMMY_MAIN() { return 1; }
10819 #endif
10820 int
10821 main ()
10822 {
10823 char *p = (char *) alloca (2 * sizeof (int));
10824   ;
10825   return 0;
10826 }
10827 _ACEOF
10828 rm -f conftest.$ac_objext conftest$ac_exeext
10829 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10830   (eval $ac_link) 2>&5
10831   ac_status=$?
10832   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10833   (exit $ac_status); } &&
10834          { ac_try='test -s conftest$ac_exeext'
10835   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10836   (eval $ac_try) 2>&5
10837   ac_status=$?
10838   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10839   (exit $ac_status); }; }; then
10840   ac_cv_working_alloca_h=yes
10841 else
10842   echo "$as_me: failed program was:" >&5
10843 cat conftest.$ac_ext >&5
10844 ac_cv_working_alloca_h=no
10845 fi
10846 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10847 fi
10848 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
10849 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
10850 if test $ac_cv_working_alloca_h = yes; then
10851
10852 cat >>confdefs.h <<\_ACEOF
10853 #define HAVE_ALLOCA_H 1
10854 _ACEOF
10855
10856 fi
10857
10858 echo "$as_me:$LINENO: checking for alloca" >&5
10859 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
10860 if test "${ac_cv_func_alloca_works+set}" = set; then
10861   echo $ECHO_N "(cached) $ECHO_C" >&6
10862 else
10863   cat >conftest.$ac_ext <<_ACEOF
10864 #line $LINENO "configure"
10865 #include "confdefs.h"
10866 #ifdef __GNUC__
10867 # define alloca __builtin_alloca
10868 #else
10869 # ifdef _MSC_VER
10870 #  include <malloc.h>
10871 #  define alloca _alloca
10872 # else
10873 #  if HAVE_ALLOCA_H
10874 #   include <alloca.h>
10875 #  else
10876 #   ifdef _AIX
10877  #pragma alloca
10878 #   else
10879 #    ifndef alloca /* predefined by HP cc +Olibcalls */
10880 char *alloca ();
10881 #    endif
10882 #   endif
10883 #  endif
10884 # endif
10885 #endif
10886
10887 #ifdef F77_DUMMY_MAIN
10888 #  ifdef __cplusplus
10889      extern "C"
10890 #  endif
10891    int F77_DUMMY_MAIN() { return 1; }
10892 #endif
10893 int
10894 main ()
10895 {
10896 char *p = (char *) alloca (1);
10897   ;
10898   return 0;
10899 }
10900 _ACEOF
10901 rm -f conftest.$ac_objext conftest$ac_exeext
10902 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10903   (eval $ac_link) 2>&5
10904   ac_status=$?
10905   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10906   (exit $ac_status); } &&
10907          { ac_try='test -s conftest$ac_exeext'
10908   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10909   (eval $ac_try) 2>&5
10910   ac_status=$?
10911   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10912   (exit $ac_status); }; }; then
10913   ac_cv_func_alloca_works=yes
10914 else
10915   echo "$as_me: failed program was:" >&5
10916 cat conftest.$ac_ext >&5
10917 ac_cv_func_alloca_works=no
10918 fi
10919 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10920 fi
10921 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
10922 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
10923
10924 if test $ac_cv_func_alloca_works = yes; then
10925
10926 cat >>confdefs.h <<\_ACEOF
10927 #define HAVE_ALLOCA 1
10928 _ACEOF
10929
10930 else
10931   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
10932 # that cause trouble.  Some versions do not even contain alloca or
10933 # contain a buggy version.  If you still want to use their alloca,
10934 # use ar to extract alloca.o from them instead of compiling alloca.c.
10935
10936 ALLOCA=alloca.$ac_objext
10937
10938 cat >>confdefs.h <<\_ACEOF
10939 #define C_ALLOCA 1
10940 _ACEOF
10941
10942
10943 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
10944 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
10945 if test "${ac_cv_os_cray+set}" = set; then
10946   echo $ECHO_N "(cached) $ECHO_C" >&6
10947 else
10948   cat >conftest.$ac_ext <<_ACEOF
10949 #line $LINENO "configure"
10950 #include "confdefs.h"
10951 #if defined(CRAY) && ! defined(CRAY2)
10952 webecray
10953 #else
10954 wenotbecray
10955 #endif
10956
10957 _ACEOF
10958 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10959   egrep "webecray" >/dev/null 2>&1; then
10960   ac_cv_os_cray=yes
10961 else
10962   ac_cv_os_cray=no
10963 fi
10964 rm -f conftest*
10965
10966 fi
10967 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
10968 echo "${ECHO_T}$ac_cv_os_cray" >&6
10969 if test $ac_cv_os_cray = yes; then
10970   for ac_func in _getb67 GETB67 getb67; do
10971     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10972 echo "$as_me:$LINENO: checking for $ac_func" >&5
10973 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10974 if eval "test \"\${$as_ac_var+set}\" = set"; then
10975   echo $ECHO_N "(cached) $ECHO_C" >&6
10976 else
10977   cat >conftest.$ac_ext <<_ACEOF
10978 #line $LINENO "configure"
10979 #include "confdefs.h"
10980 /* System header to define __stub macros and hopefully few prototypes,
10981     which can conflict with char $ac_func (); below.  */
10982 #include <assert.h>
10983 /* Override any gcc2 internal prototype to avoid an error.  */
10984 #ifdef __cplusplus
10985 extern "C"
10986 #endif
10987 /* We use char because int might match the return type of a gcc2
10988    builtin and then its argument prototype would still apply.  */
10989 char $ac_func ();
10990 char (*f) ();
10991
10992 #ifdef F77_DUMMY_MAIN
10993 #  ifdef __cplusplus
10994      extern "C"
10995 #  endif
10996    int F77_DUMMY_MAIN() { return 1; }
10997 #endif
10998 int
10999 main ()
11000 {
11001 /* The GNU C library defines this for functions which it implements
11002     to always fail with ENOSYS.  Some functions are actually named
11003     something starting with __ and the normal name is an alias.  */
11004 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11005 choke me
11006 #else
11007 f = $ac_func;
11008 #endif
11009
11010   ;
11011   return 0;
11012 }
11013 _ACEOF
11014 rm -f conftest.$ac_objext conftest$ac_exeext
11015 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11016   (eval $ac_link) 2>&5
11017   ac_status=$?
11018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11019   (exit $ac_status); } &&
11020          { ac_try='test -s conftest$ac_exeext'
11021   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11022   (eval $ac_try) 2>&5
11023   ac_status=$?
11024   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11025   (exit $ac_status); }; }; then
11026   eval "$as_ac_var=yes"
11027 else
11028   echo "$as_me: failed program was:" >&5
11029 cat conftest.$ac_ext >&5
11030 eval "$as_ac_var=no"
11031 fi
11032 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11033 fi
11034 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11035 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11036 if test `eval echo '${'$as_ac_var'}'` = yes; then
11037
11038 cat >>confdefs.h <<_ACEOF
11039 #define CRAY_STACKSEG_END $ac_func
11040 _ACEOF
11041
11042     break
11043 fi
11044
11045   done
11046 fi
11047
11048 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
11049 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
11050 if test "${ac_cv_c_stack_direction+set}" = set; then
11051   echo $ECHO_N "(cached) $ECHO_C" >&6
11052 else
11053   if test "$cross_compiling" = yes; then
11054   ac_cv_c_stack_direction=0
11055 else
11056   cat >conftest.$ac_ext <<_ACEOF
11057 #line $LINENO "configure"
11058 #include "confdefs.h"
11059 int
11060 find_stack_direction ()
11061 {
11062   static char *addr = 0;
11063   auto char dummy;
11064   if (addr == 0)
11065     {
11066       addr = &dummy;
11067       return find_stack_direction ();
11068     }
11069   else
11070     return (&dummy > addr) ? 1 : -1;
11071 }
11072
11073 int
11074 main ()
11075 {
11076   exit (find_stack_direction () < 0);
11077 }
11078 _ACEOF
11079 rm -f conftest$ac_exeext
11080 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11081   (eval $ac_link) 2>&5
11082   ac_status=$?
11083   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11084   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11085   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11086   (eval $ac_try) 2>&5
11087   ac_status=$?
11088   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11089   (exit $ac_status); }; }; then
11090   ac_cv_c_stack_direction=1
11091 else
11092   echo "$as_me: program exited with status $ac_status" >&5
11093 echo "$as_me: failed program was:" >&5
11094 cat conftest.$ac_ext >&5
11095 ( exit $ac_status )
11096 ac_cv_c_stack_direction=-1
11097 fi
11098 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11099 fi
11100 fi
11101 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
11102 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
11103
11104 cat >>confdefs.h <<_ACEOF
11105 #define STACK_DIRECTION $ac_cv_c_stack_direction
11106 _ACEOF
11107
11108
11109 fi
11110
11111
11112
11113
11114
11115
11116
11117
11118
11119
11120
11121
11122
11123
11124
11125
11126
11127
11128
11129
11130
11131
11132
11133
11134
11135
11136
11137
11138
11139
11140
11141
11142
11143
11144
11145
11146
11147
11148
11149
11150
11151
11152
11153
11154
11155
11156
11157
11158 for ac_func in \
11159         __libc_fork \
11160         _lwp_create \
11161         _pclose \
11162         _popen \
11163         _snprintf \
11164         _stricmp \
11165         _strnicmp \
11166         chsize \
11167         clone \
11168         ecvt \
11169         finite \
11170         fpclass \
11171         ftruncate \
11172         ftruncate64 \
11173         getnetbyaddr \
11174         getnetbyname \
11175         getpagesize \
11176         getprotobyname \
11177         getprotobynumber \
11178         getpwuid \
11179         getservbyport \
11180         getsockopt \
11181         inet_network \
11182         lseek64 \
11183         lstat \
11184         memmove \
11185         mmap \
11186         pclose \
11187         popen \
11188         pread \
11189         pwrite \
11190         rfork \
11191         select \
11192         sendmsg \
11193         settimeofday \
11194         sigaltstack \
11195         snprintf \
11196         statfs \
11197         strcasecmp \
11198         strerror \
11199         strncasecmp \
11200         tcgetattr \
11201         timegm \
11202         usleep \
11203         vfscanf \
11204         wait4 \
11205         waitpid \
11206
11207 do
11208 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11209 echo "$as_me:$LINENO: checking for $ac_func" >&5
11210 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11211 if eval "test \"\${$as_ac_var+set}\" = set"; then
11212   echo $ECHO_N "(cached) $ECHO_C" >&6
11213 else
11214   cat >conftest.$ac_ext <<_ACEOF
11215 #line $LINENO "configure"
11216 #include "confdefs.h"
11217 /* System header to define __stub macros and hopefully few prototypes,
11218     which can conflict with char $ac_func (); below.  */
11219 #include <assert.h>
11220 /* Override any gcc2 internal prototype to avoid an error.  */
11221 #ifdef __cplusplus
11222 extern "C"
11223 #endif
11224 /* We use char because int might match the return type of a gcc2
11225    builtin and then its argument prototype would still apply.  */
11226 char $ac_func ();
11227 char (*f) ();
11228
11229 #ifdef F77_DUMMY_MAIN
11230 #  ifdef __cplusplus
11231      extern "C"
11232 #  endif
11233    int F77_DUMMY_MAIN() { return 1; }
11234 #endif
11235 int
11236 main ()
11237 {
11238 /* The GNU C library defines this for functions which it implements
11239     to always fail with ENOSYS.  Some functions are actually named
11240     something starting with __ and the normal name is an alias.  */
11241 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11242 choke me
11243 #else
11244 f = $ac_func;
11245 #endif
11246
11247   ;
11248   return 0;
11249 }
11250 _ACEOF
11251 rm -f conftest.$ac_objext conftest$ac_exeext
11252 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11253   (eval $ac_link) 2>&5
11254   ac_status=$?
11255   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11256   (exit $ac_status); } &&
11257          { ac_try='test -s conftest$ac_exeext'
11258   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11259   (eval $ac_try) 2>&5
11260   ac_status=$?
11261   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11262   (exit $ac_status); }; }; then
11263   eval "$as_ac_var=yes"
11264 else
11265   echo "$as_me: failed program was:" >&5
11266 cat conftest.$ac_ext >&5
11267 eval "$as_ac_var=no"
11268 fi
11269 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11270 fi
11271 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11272 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11273 if test `eval echo '${'$as_ac_var'}'` = yes; then
11274   cat >>confdefs.h <<_ACEOF
11275 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11276 _ACEOF
11277
11278 fi
11279 done
11280
11281
11282
11283
11284
11285
11286
11287
11288
11289
11290
11291
11292
11293
11294
11295
11296
11297
11298
11299
11300
11301
11302
11303
11304
11305
11306
11307
11308
11309
11310
11311
11312
11313
11314
11315
11316
11317
11318
11319
11320
11321
11322
11323
11324
11325
11326
11327
11328
11329
11330
11331
11332
11333
11334
11335
11336
11337
11338
11339
11340
11341
11342
11343
11344
11345
11346
11347
11348
11349
11350 for ac_header in \
11351         arpa/inet.h \
11352         arpa/nameser.h \
11353         direct.h \
11354         elf.h \
11355         float.h \
11356         ieeefp.h \
11357         io.h \
11358         libio.h \
11359         libutil.h \
11360         link.h \
11361         linux/cdrom.h \
11362         linux/hdreg.h \
11363         linux/input.h \
11364         linux/joystick.h \
11365         linux/major.h \
11366         linux/param.h \
11367         linux/serial.h \
11368         linux/ucdrom.h \
11369         net/if.h \
11370         netdb.h \
11371         netinet/in.h \
11372         netinet/in_systm.h \
11373         netinet/ip.h \
11374         netinet/tcp.h \
11375         pty.h \
11376         pwd.h \
11377         resolv.h \
11378         sched.h \
11379         scsi/sg.h \
11380         socket.h \
11381         stdint.h \
11382         strings.h \
11383         sys/cdio.h \
11384         sys/errno.h \
11385         sys/file.h \
11386         sys/filio.h \
11387         sys/inttypes.h \
11388         sys/ioctl.h \
11389         sys/ipc.h \
11390         sys/link.h \
11391         sys/lwp.h \
11392         sys/mman.h \
11393         sys/modem.h \
11394         sys/mount.h \
11395         sys/msg.h \
11396         sys/param.h \
11397         sys/ptrace.h \
11398         sys/reg.h \
11399         sys/shm.h \
11400         sys/signal.h \
11401         sys/socket.h \
11402         sys/sockio.h \
11403         sys/statfs.h \
11404         sys/strtio.h \
11405         sys/syscall.h \
11406         sys/sysctl.h \
11407         sys/time.h \
11408         sys/user.h \
11409         sys/v86.h \
11410         sys/v86intr.h \
11411         sys/vfs.h \
11412         sys/vm86.h \
11413         sys/wait.h \
11414         syscall.h \
11415         termios.h \
11416         ucontext.h \
11417         unistd.h \
11418
11419 do
11420 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11421 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11422   echo "$as_me:$LINENO: checking for $ac_header" >&5
11423 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11424 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11425   echo $ECHO_N "(cached) $ECHO_C" >&6
11426 fi
11427 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11428 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11429 else
11430   # Is the header compilable?
11431 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11432 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11433 cat >conftest.$ac_ext <<_ACEOF
11434 #line $LINENO "configure"
11435 #include "confdefs.h"
11436 $ac_includes_default
11437 #include <$ac_header>
11438 _ACEOF
11439 rm -f conftest.$ac_objext
11440 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11441   (eval $ac_compile) 2>&5
11442   ac_status=$?
11443   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11444   (exit $ac_status); } &&
11445          { ac_try='test -s conftest.$ac_objext'
11446   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11447   (eval $ac_try) 2>&5
11448   ac_status=$?
11449   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11450   (exit $ac_status); }; }; then
11451   ac_header_compiler=yes
11452 else
11453   echo "$as_me: failed program was:" >&5
11454 cat conftest.$ac_ext >&5
11455 ac_header_compiler=no
11456 fi
11457 rm -f conftest.$ac_objext conftest.$ac_ext
11458 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11459 echo "${ECHO_T}$ac_header_compiler" >&6
11460
11461 # Is the header present?
11462 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11463 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11464 cat >conftest.$ac_ext <<_ACEOF
11465 #line $LINENO "configure"
11466 #include "confdefs.h"
11467 #include <$ac_header>
11468 _ACEOF
11469 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11470   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11471   ac_status=$?
11472   egrep -v '^ *\+' conftest.er1 >conftest.err
11473   rm -f conftest.er1
11474   cat conftest.err >&5
11475   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11476   (exit $ac_status); } >/dev/null; then
11477   if test -s conftest.err; then
11478     ac_cpp_err=$ac_c_preproc_warn_flag
11479   else
11480     ac_cpp_err=
11481   fi
11482 else
11483   ac_cpp_err=yes
11484 fi
11485 if test -z "$ac_cpp_err"; then
11486   ac_header_preproc=yes
11487 else
11488   echo "$as_me: failed program was:" >&5
11489   cat conftest.$ac_ext >&5
11490   ac_header_preproc=no
11491 fi
11492 rm -f conftest.err conftest.$ac_ext
11493 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11494 echo "${ECHO_T}$ac_header_preproc" >&6
11495
11496 # So?  What about this header?
11497 case $ac_header_compiler:$ac_header_preproc in
11498   yes:no )
11499     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11500 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11501     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11502 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
11503   no:yes )
11504     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11505 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11506     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11507 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11508     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11509 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
11510 esac
11511 echo "$as_me:$LINENO: checking for $ac_header" >&5
11512 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11513 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11514   echo $ECHO_N "(cached) $ECHO_C" >&6
11515 else
11516   eval "$as_ac_Header=$ac_header_preproc"
11517 fi
11518 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11519 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11520
11521 fi
11522 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11523   cat >>confdefs.h <<_ACEOF
11524 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11525 _ACEOF
11526
11527 fi
11528
11529 done
11530
11531 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
11532 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
11533 if test "${ac_cv_header_stat_broken+set}" = set; then
11534   echo $ECHO_N "(cached) $ECHO_C" >&6
11535 else
11536   cat >conftest.$ac_ext <<_ACEOF
11537 #line $LINENO "configure"
11538 #include "confdefs.h"
11539 #include <sys/types.h>
11540 #include <sys/stat.h>
11541
11542 #if defined(S_ISBLK) && defined(S_IFDIR)
11543 # if S_ISBLK (S_IFDIR)
11544 You lose.
11545 # endif
11546 #endif
11547
11548 #if defined(S_ISBLK) && defined(S_IFCHR)
11549 # if S_ISBLK (S_IFCHR)
11550 You lose.
11551 # endif
11552 #endif
11553
11554 #if defined(S_ISLNK) && defined(S_IFREG)
11555 # if S_ISLNK (S_IFREG)
11556 You lose.
11557 # endif
11558 #endif
11559
11560 #if defined(S_ISSOCK) && defined(S_IFREG)
11561 # if S_ISSOCK (S_IFREG)
11562 You lose.
11563 # endif
11564 #endif
11565
11566 _ACEOF
11567 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11568   egrep "You lose" >/dev/null 2>&1; then
11569   ac_cv_header_stat_broken=yes
11570 else
11571   ac_cv_header_stat_broken=no
11572 fi
11573 rm -f conftest*
11574
11575 fi
11576 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
11577 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
11578 if test $ac_cv_header_stat_broken = yes; then
11579
11580 cat >>confdefs.h <<\_ACEOF
11581 #define STAT_MACROS_BROKEN 1
11582 _ACEOF
11583
11584 fi
11585
11586
11587
11588 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
11589 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
11590 if test "${ac_cv_prog_cc_stdc+set}" = set; then
11591   echo $ECHO_N "(cached) $ECHO_C" >&6
11592 else
11593   ac_cv_prog_cc_stdc=no
11594 ac_save_CC=$CC
11595 cat >conftest.$ac_ext <<_ACEOF
11596 #line $LINENO "configure"
11597 #include "confdefs.h"
11598 #include <stdarg.h>
11599 #include <stdio.h>
11600 #include <sys/types.h>
11601 #include <sys/stat.h>
11602 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
11603 struct buf { int x; };
11604 FILE * (*rcsopen) (struct buf *, struct stat *, int);
11605 static char *e (p, i)
11606      char **p;
11607      int i;
11608 {
11609   return p[i];
11610 }
11611 static char *f (char * (*g) (char **, int), char **p, ...)
11612 {
11613   char *s;
11614   va_list v;
11615   va_start (v,p);
11616   s = g (p, va_arg (v,int));
11617   va_end (v);
11618   return s;
11619 }
11620 int test (int i, double x);
11621 struct s1 {int (*f) (int a);};
11622 struct s2 {int (*f) (double a);};
11623 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
11624 int argc;
11625 char **argv;
11626 #ifdef F77_DUMMY_MAIN
11627 #  ifdef __cplusplus
11628      extern "C"
11629 #  endif
11630    int F77_DUMMY_MAIN() { return 1; }
11631 #endif
11632 int
11633 main ()
11634 {
11635 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
11636   ;
11637   return 0;
11638 }
11639 _ACEOF
11640 # Don't try gcc -ansi; that turns off useful extensions and
11641 # breaks some systems' header files.
11642 # AIX                   -qlanglvl=ansi
11643 # Ultrix and OSF/1      -std1
11644 # HP-UX 10.20 and later -Ae
11645 # HP-UX older versions  -Aa -D_HPUX_SOURCE
11646 # SVR4                  -Xc -D__EXTENSIONS__
11647 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
11648 do
11649   CC="$ac_save_CC $ac_arg"
11650   rm -f conftest.$ac_objext
11651 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11652   (eval $ac_compile) 2>&5
11653   ac_status=$?
11654   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11655   (exit $ac_status); } &&
11656          { ac_try='test -s conftest.$ac_objext'
11657   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11658   (eval $ac_try) 2>&5
11659   ac_status=$?
11660   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11661   (exit $ac_status); }; }; then
11662   ac_cv_prog_cc_stdc=$ac_arg
11663 break
11664 else
11665   echo "$as_me: failed program was:" >&5
11666 cat conftest.$ac_ext >&5
11667 fi
11668 rm -f conftest.$ac_objext
11669 done
11670 rm -f conftest.$ac_ext conftest.$ac_objext
11671 CC=$ac_save_CC
11672
11673 fi
11674
11675 case "x$ac_cv_prog_cc_stdc" in
11676   x|xno)
11677     echo "$as_me:$LINENO: result: none needed" >&5
11678 echo "${ECHO_T}none needed" >&6 ;;
11679   *)
11680     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
11681 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
11682     CC="$CC $ac_cv_prog_cc_stdc" ;;
11683 esac
11684
11685 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
11686 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
11687 if test "${ac_cv_c_const+set}" = set; then
11688   echo $ECHO_N "(cached) $ECHO_C" >&6
11689 else
11690   cat >conftest.$ac_ext <<_ACEOF
11691 #line $LINENO "configure"
11692 #include "confdefs.h"
11693
11694 #ifdef F77_DUMMY_MAIN
11695 #  ifdef __cplusplus
11696      extern "C"
11697 #  endif
11698    int F77_DUMMY_MAIN() { return 1; }
11699 #endif
11700 int
11701 main ()
11702 {
11703 /* FIXME: Include the comments suggested by Paul. */
11704 #ifndef __cplusplus
11705   /* Ultrix mips cc rejects this.  */
11706   typedef int charset[2];
11707   const charset x;
11708   /* SunOS 4.1.1 cc rejects this.  */
11709   char const *const *ccp;
11710   char **p;
11711   /* NEC SVR4.0.2 mips cc rejects this.  */
11712   struct point {int x, y;};
11713   static struct point const zero = {0,0};
11714   /* AIX XL C 1.02.0.0 rejects this.
11715      It does not let you subtract one const X* pointer from another in
11716      an arm of an if-expression whose if-part is not a constant
11717      expression */
11718   const char *g = "string";
11719   ccp = &g + (g ? g-g : 0);
11720   /* HPUX 7.0 cc rejects these. */
11721   ++ccp;
11722   p = (char**) ccp;
11723   ccp = (char const *const *) p;
11724   { /* SCO 3.2v4 cc rejects this.  */
11725     char *t;
11726     char const *s = 0 ? (char *) 0 : (char const *) 0;
11727
11728     *t++ = 0;
11729   }
11730   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
11731     int x[] = {25, 17};
11732     const int *foo = &x[0];
11733     ++foo;
11734   }
11735   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
11736     typedef const int *iptr;
11737     iptr p = 0;
11738     ++p;
11739   }
11740   { /* AIX XL C 1.02.0.0 rejects this saying
11741        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
11742     struct s { int j; const int *ap[3]; };
11743     struct s *b; b->j = 5;
11744   }
11745   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
11746     const int foo = 10;
11747   }
11748 #endif
11749
11750   ;
11751   return 0;
11752 }
11753 _ACEOF
11754 rm -f conftest.$ac_objext
11755 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11756   (eval $ac_compile) 2>&5
11757   ac_status=$?
11758   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11759   (exit $ac_status); } &&
11760          { ac_try='test -s conftest.$ac_objext'
11761   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11762   (eval $ac_try) 2>&5
11763   ac_status=$?
11764   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11765   (exit $ac_status); }; }; then
11766   ac_cv_c_const=yes
11767 else
11768   echo "$as_me: failed program was:" >&5
11769 cat conftest.$ac_ext >&5
11770 ac_cv_c_const=no
11771 fi
11772 rm -f conftest.$ac_objext conftest.$ac_ext
11773 fi
11774 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
11775 echo "${ECHO_T}$ac_cv_c_const" >&6
11776 if test $ac_cv_c_const = no; then
11777
11778 cat >>confdefs.h <<\_ACEOF
11779 #define const
11780 _ACEOF
11781
11782 fi
11783
11784 echo "$as_me:$LINENO: checking for inline" >&5
11785 echo $ECHO_N "checking for inline... $ECHO_C" >&6
11786 if test "${ac_cv_c_inline+set}" = set; then
11787   echo $ECHO_N "(cached) $ECHO_C" >&6
11788 else
11789   ac_cv_c_inline=no
11790 for ac_kw in inline __inline__ __inline; do
11791   cat >conftest.$ac_ext <<_ACEOF
11792 #line $LINENO "configure"
11793 #include "confdefs.h"
11794 #ifndef __cplusplus
11795 static $ac_kw int static_foo () {return 0; }
11796 $ac_kw int foo () {return 0; }
11797 #endif
11798
11799 _ACEOF
11800 rm -f conftest.$ac_objext
11801 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11802   (eval $ac_compile) 2>&5
11803   ac_status=$?
11804   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11805   (exit $ac_status); } &&
11806          { ac_try='test -s conftest.$ac_objext'
11807   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11808   (eval $ac_try) 2>&5
11809   ac_status=$?
11810   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11811   (exit $ac_status); }; }; then
11812   ac_cv_c_inline=$ac_kw; break
11813 else
11814   echo "$as_me: failed program was:" >&5
11815 cat conftest.$ac_ext >&5
11816 fi
11817 rm -f conftest.$ac_objext conftest.$ac_ext
11818 done
11819
11820 fi
11821 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
11822 echo "${ECHO_T}$ac_cv_c_inline" >&6
11823 case $ac_cv_c_inline in
11824   inline | yes) ;;
11825   no)
11826 cat >>confdefs.h <<\_ACEOF
11827 #define inline
11828 _ACEOF
11829  ;;
11830   *)  cat >>confdefs.h <<_ACEOF
11831 #define inline $ac_cv_c_inline
11832 _ACEOF
11833  ;;
11834 esac
11835
11836 echo "$as_me:$LINENO: checking for mode_t" >&5
11837 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
11838 if test "${ac_cv_type_mode_t+set}" = set; then
11839   echo $ECHO_N "(cached) $ECHO_C" >&6
11840 else
11841   cat >conftest.$ac_ext <<_ACEOF
11842 #line $LINENO "configure"
11843 #include "confdefs.h"
11844 $ac_includes_default
11845 #ifdef F77_DUMMY_MAIN
11846 #  ifdef __cplusplus
11847      extern "C"
11848 #  endif
11849    int F77_DUMMY_MAIN() { return 1; }
11850 #endif
11851 int
11852 main ()
11853 {
11854 if ((mode_t *) 0)
11855   return 0;
11856 if (sizeof (mode_t))
11857   return 0;
11858   ;
11859   return 0;
11860 }
11861 _ACEOF
11862 rm -f conftest.$ac_objext
11863 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11864   (eval $ac_compile) 2>&5
11865   ac_status=$?
11866   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11867   (exit $ac_status); } &&
11868          { ac_try='test -s conftest.$ac_objext'
11869   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11870   (eval $ac_try) 2>&5
11871   ac_status=$?
11872   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11873   (exit $ac_status); }; }; then
11874   ac_cv_type_mode_t=yes
11875 else
11876   echo "$as_me: failed program was:" >&5
11877 cat conftest.$ac_ext >&5
11878 ac_cv_type_mode_t=no
11879 fi
11880 rm -f conftest.$ac_objext conftest.$ac_ext
11881 fi
11882 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
11883 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
11884 if test $ac_cv_type_mode_t = yes; then
11885
11886 cat >>confdefs.h <<_ACEOF
11887 #define HAVE_MODE_T 1
11888 _ACEOF
11889
11890
11891 fi
11892 echo "$as_me:$LINENO: checking for off_t" >&5
11893 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
11894 if test "${ac_cv_type_off_t+set}" = set; then
11895   echo $ECHO_N "(cached) $ECHO_C" >&6
11896 else
11897   cat >conftest.$ac_ext <<_ACEOF
11898 #line $LINENO "configure"
11899 #include "confdefs.h"
11900 $ac_includes_default
11901 #ifdef F77_DUMMY_MAIN
11902 #  ifdef __cplusplus
11903      extern "C"
11904 #  endif
11905    int F77_DUMMY_MAIN() { return 1; }
11906 #endif
11907 int
11908 main ()
11909 {
11910 if ((off_t *) 0)
11911   return 0;
11912 if (sizeof (off_t))
11913   return 0;
11914   ;
11915   return 0;
11916 }
11917 _ACEOF
11918 rm -f conftest.$ac_objext
11919 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11920   (eval $ac_compile) 2>&5
11921   ac_status=$?
11922   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11923   (exit $ac_status); } &&
11924          { ac_try='test -s conftest.$ac_objext'
11925   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11926   (eval $ac_try) 2>&5
11927   ac_status=$?
11928   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11929   (exit $ac_status); }; }; then
11930   ac_cv_type_off_t=yes
11931 else
11932   echo "$as_me: failed program was:" >&5
11933 cat conftest.$ac_ext >&5
11934 ac_cv_type_off_t=no
11935 fi
11936 rm -f conftest.$ac_objext conftest.$ac_ext
11937 fi
11938 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
11939 echo "${ECHO_T}$ac_cv_type_off_t" >&6
11940 if test $ac_cv_type_off_t = yes; then
11941
11942 cat >>confdefs.h <<_ACEOF
11943 #define HAVE_OFF_T 1
11944 _ACEOF
11945
11946
11947 fi
11948 echo "$as_me:$LINENO: checking for pid_t" >&5
11949 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
11950 if test "${ac_cv_type_pid_t+set}" = set; then
11951   echo $ECHO_N "(cached) $ECHO_C" >&6
11952 else
11953   cat >conftest.$ac_ext <<_ACEOF
11954 #line $LINENO "configure"
11955 #include "confdefs.h"
11956 $ac_includes_default
11957 #ifdef F77_DUMMY_MAIN
11958 #  ifdef __cplusplus
11959      extern "C"
11960 #  endif
11961    int F77_DUMMY_MAIN() { return 1; }
11962 #endif
11963 int
11964 main ()
11965 {
11966 if ((pid_t *) 0)
11967   return 0;
11968 if (sizeof (pid_t))
11969   return 0;
11970   ;
11971   return 0;
11972 }
11973 _ACEOF
11974 rm -f conftest.$ac_objext
11975 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11976   (eval $ac_compile) 2>&5
11977   ac_status=$?
11978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11979   (exit $ac_status); } &&
11980          { ac_try='test -s conftest.$ac_objext'
11981   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11982   (eval $ac_try) 2>&5
11983   ac_status=$?
11984   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11985   (exit $ac_status); }; }; then
11986   ac_cv_type_pid_t=yes
11987 else
11988   echo "$as_me: failed program was:" >&5
11989 cat conftest.$ac_ext >&5
11990 ac_cv_type_pid_t=no
11991 fi
11992 rm -f conftest.$ac_objext conftest.$ac_ext
11993 fi
11994 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
11995 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
11996 if test $ac_cv_type_pid_t = yes; then
11997
11998 cat >>confdefs.h <<_ACEOF
11999 #define HAVE_PID_T 1
12000 _ACEOF
12001
12002
12003 fi
12004 echo "$as_me:$LINENO: checking for size_t" >&5
12005 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
12006 if test "${ac_cv_type_size_t+set}" = set; then
12007   echo $ECHO_N "(cached) $ECHO_C" >&6
12008 else
12009   cat >conftest.$ac_ext <<_ACEOF
12010 #line $LINENO "configure"
12011 #include "confdefs.h"
12012 $ac_includes_default
12013 #ifdef F77_DUMMY_MAIN
12014 #  ifdef __cplusplus
12015      extern "C"
12016 #  endif
12017    int F77_DUMMY_MAIN() { return 1; }
12018 #endif
12019 int
12020 main ()
12021 {
12022 if ((size_t *) 0)
12023   return 0;
12024 if (sizeof (size_t))
12025   return 0;
12026   ;
12027   return 0;
12028 }
12029 _ACEOF
12030 rm -f conftest.$ac_objext
12031 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12032   (eval $ac_compile) 2>&5
12033   ac_status=$?
12034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12035   (exit $ac_status); } &&
12036          { ac_try='test -s conftest.$ac_objext'
12037   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12038   (eval $ac_try) 2>&5
12039   ac_status=$?
12040   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12041   (exit $ac_status); }; }; then
12042   ac_cv_type_size_t=yes
12043 else
12044   echo "$as_me: failed program was:" >&5
12045 cat conftest.$ac_ext >&5
12046 ac_cv_type_size_t=no
12047 fi
12048 rm -f conftest.$ac_objext conftest.$ac_ext
12049 fi
12050 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
12051 echo "${ECHO_T}$ac_cv_type_size_t" >&6
12052 if test $ac_cv_type_size_t = yes; then
12053
12054 cat >>confdefs.h <<_ACEOF
12055 #define HAVE_SIZE_T 1
12056 _ACEOF
12057
12058
12059 fi
12060 echo "$as_me:$LINENO: checking for ssize_t" >&5
12061 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
12062 if test "${ac_cv_type_ssize_t+set}" = set; then
12063   echo $ECHO_N "(cached) $ECHO_C" >&6
12064 else
12065   cat >conftest.$ac_ext <<_ACEOF
12066 #line $LINENO "configure"
12067 #include "confdefs.h"
12068 $ac_includes_default
12069 #ifdef F77_DUMMY_MAIN
12070 #  ifdef __cplusplus
12071      extern "C"
12072 #  endif
12073    int F77_DUMMY_MAIN() { return 1; }
12074 #endif
12075 int
12076 main ()
12077 {
12078 if ((ssize_t *) 0)
12079   return 0;
12080 if (sizeof (ssize_t))
12081   return 0;
12082   ;
12083   return 0;
12084 }
12085 _ACEOF
12086 rm -f conftest.$ac_objext
12087 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12088   (eval $ac_compile) 2>&5
12089   ac_status=$?
12090   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12091   (exit $ac_status); } &&
12092          { ac_try='test -s conftest.$ac_objext'
12093   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12094   (eval $ac_try) 2>&5
12095   ac_status=$?
12096   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12097   (exit $ac_status); }; }; then
12098   ac_cv_type_ssize_t=yes
12099 else
12100   echo "$as_me: failed program was:" >&5
12101 cat conftest.$ac_ext >&5
12102 ac_cv_type_ssize_t=no
12103 fi
12104 rm -f conftest.$ac_objext conftest.$ac_ext
12105 fi
12106 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
12107 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
12108 if test $ac_cv_type_ssize_t = yes; then
12109
12110 cat >>confdefs.h <<_ACEOF
12111 #define HAVE_SSIZE_T 1
12112 _ACEOF
12113
12114
12115 fi
12116
12117 echo "$as_me:$LINENO: checking for long long" >&5
12118 echo $ECHO_N "checking for long long... $ECHO_C" >&6
12119 if test "${ac_cv_type_long_long+set}" = set; then
12120   echo $ECHO_N "(cached) $ECHO_C" >&6
12121 else
12122   cat >conftest.$ac_ext <<_ACEOF
12123 #line $LINENO "configure"
12124 #include "confdefs.h"
12125 $ac_includes_default
12126 #ifdef F77_DUMMY_MAIN
12127 #  ifdef __cplusplus
12128      extern "C"
12129 #  endif
12130    int F77_DUMMY_MAIN() { return 1; }
12131 #endif
12132 int
12133 main ()
12134 {
12135 if ((long long *) 0)
12136   return 0;
12137 if (sizeof (long long))
12138   return 0;
12139   ;
12140   return 0;
12141 }
12142 _ACEOF
12143 rm -f conftest.$ac_objext
12144 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12145   (eval $ac_compile) 2>&5
12146   ac_status=$?
12147   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12148   (exit $ac_status); } &&
12149          { ac_try='test -s conftest.$ac_objext'
12150   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12151   (eval $ac_try) 2>&5
12152   ac_status=$?
12153   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12154   (exit $ac_status); }; }; then
12155   ac_cv_type_long_long=yes
12156 else
12157   echo "$as_me: failed program was:" >&5
12158 cat conftest.$ac_ext >&5
12159 ac_cv_type_long_long=no
12160 fi
12161 rm -f conftest.$ac_objext conftest.$ac_ext
12162 fi
12163 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
12164 echo "${ECHO_T}$ac_cv_type_long_long" >&6
12165
12166 echo "$as_me:$LINENO: checking size of long long" >&5
12167 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
12168 if test "${ac_cv_sizeof_long_long+set}" = set; then
12169   echo $ECHO_N "(cached) $ECHO_C" >&6
12170 else
12171   if test "$ac_cv_type_long_long" = yes; then
12172   # The cast to unsigned long works around a bug in the HP C Compiler
12173   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12174   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12175   # This bug is HP SR number 8606223364.
12176   if test "$cross_compiling" = yes; then
12177   # Depending upon the size, compute the lo and hi bounds.
12178 cat >conftest.$ac_ext <<_ACEOF
12179 #line $LINENO "configure"
12180 #include "confdefs.h"
12181 $ac_includes_default
12182 #ifdef F77_DUMMY_MAIN
12183 #  ifdef __cplusplus
12184      extern "C"
12185 #  endif
12186    int F77_DUMMY_MAIN() { return 1; }
12187 #endif
12188 int
12189 main ()
12190 {
12191 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
12192 test_array [0] = 0
12193
12194   ;
12195   return 0;
12196 }
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   ac_lo=0 ac_mid=0
12211   while :; do
12212     cat >conftest.$ac_ext <<_ACEOF
12213 #line $LINENO "configure"
12214 #include "confdefs.h"
12215 $ac_includes_default
12216 #ifdef F77_DUMMY_MAIN
12217 #  ifdef __cplusplus
12218      extern "C"
12219 #  endif
12220    int F77_DUMMY_MAIN() { return 1; }
12221 #endif
12222 int
12223 main ()
12224 {
12225 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
12226 test_array [0] = 0
12227
12228   ;
12229   return 0;
12230 }
12231 _ACEOF
12232 rm -f conftest.$ac_objext
12233 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12234   (eval $ac_compile) 2>&5
12235   ac_status=$?
12236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12237   (exit $ac_status); } &&
12238          { ac_try='test -s conftest.$ac_objext'
12239   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12240   (eval $ac_try) 2>&5
12241   ac_status=$?
12242   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12243   (exit $ac_status); }; }; then
12244   ac_hi=$ac_mid; break
12245 else
12246   echo "$as_me: failed program was:" >&5
12247 cat conftest.$ac_ext >&5
12248 ac_lo=`expr $ac_mid + 1`
12249                     if test $ac_lo -le $ac_mid; then
12250                       ac_lo= ac_hi=
12251                       break
12252                     fi
12253                     ac_mid=`expr 2 '*' $ac_mid + 1`
12254 fi
12255 rm -f conftest.$ac_objext conftest.$ac_ext
12256   done
12257 else
12258   echo "$as_me: failed program was:" >&5
12259 cat conftest.$ac_ext >&5
12260 cat >conftest.$ac_ext <<_ACEOF
12261 #line $LINENO "configure"
12262 #include "confdefs.h"
12263 $ac_includes_default
12264 #ifdef F77_DUMMY_MAIN
12265 #  ifdef __cplusplus
12266      extern "C"
12267 #  endif
12268    int F77_DUMMY_MAIN() { return 1; }
12269 #endif
12270 int
12271 main ()
12272 {
12273 static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
12274 test_array [0] = 0
12275
12276   ;
12277   return 0;
12278 }
12279 _ACEOF
12280 rm -f conftest.$ac_objext
12281 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12282   (eval $ac_compile) 2>&5
12283   ac_status=$?
12284   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12285   (exit $ac_status); } &&
12286          { ac_try='test -s conftest.$ac_objext'
12287   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12288   (eval $ac_try) 2>&5
12289   ac_status=$?
12290   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12291   (exit $ac_status); }; }; then
12292   ac_hi=-1 ac_mid=-1
12293   while :; do
12294     cat >conftest.$ac_ext <<_ACEOF
12295 #line $LINENO "configure"
12296 #include "confdefs.h"
12297 $ac_includes_default
12298 #ifdef F77_DUMMY_MAIN
12299 #  ifdef __cplusplus
12300      extern "C"
12301 #  endif
12302    int F77_DUMMY_MAIN() { return 1; }
12303 #endif
12304 int
12305 main ()
12306 {
12307 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
12308 test_array [0] = 0
12309
12310   ;
12311   return 0;
12312 }
12313 _ACEOF
12314 rm -f conftest.$ac_objext
12315 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12316   (eval $ac_compile) 2>&5
12317   ac_status=$?
12318   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12319   (exit $ac_status); } &&
12320          { ac_try='test -s conftest.$ac_objext'
12321   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12322   (eval $ac_try) 2>&5
12323   ac_status=$?
12324   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12325   (exit $ac_status); }; }; then
12326   ac_lo=$ac_mid; break
12327 else
12328   echo "$as_me: failed program was:" >&5
12329 cat conftest.$ac_ext >&5
12330 ac_hi=`expr '(' $ac_mid ')' - 1`
12331                        if test $ac_mid -le $ac_hi; then
12332                          ac_lo= ac_hi=
12333                          break
12334                        fi
12335                        ac_mid=`expr 2 '*' $ac_mid`
12336 fi
12337 rm -f conftest.$ac_objext conftest.$ac_ext
12338   done
12339 else
12340   echo "$as_me: failed program was:" >&5
12341 cat conftest.$ac_ext >&5
12342 ac_lo= ac_hi=
12343 fi
12344 rm -f conftest.$ac_objext conftest.$ac_ext
12345 fi
12346 rm -f conftest.$ac_objext conftest.$ac_ext
12347 # Binary search between lo and hi bounds.
12348 while test "x$ac_lo" != "x$ac_hi"; do
12349   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12350   cat >conftest.$ac_ext <<_ACEOF
12351 #line $LINENO "configure"
12352 #include "confdefs.h"
12353 $ac_includes_default
12354 #ifdef F77_DUMMY_MAIN
12355 #  ifdef __cplusplus
12356      extern "C"
12357 #  endif
12358    int F77_DUMMY_MAIN() { return 1; }
12359 #endif
12360 int
12361 main ()
12362 {
12363 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
12364 test_array [0] = 0
12365
12366   ;
12367   return 0;
12368 }
12369 _ACEOF
12370 rm -f conftest.$ac_objext
12371 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12372   (eval $ac_compile) 2>&5
12373   ac_status=$?
12374   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12375   (exit $ac_status); } &&
12376          { ac_try='test -s conftest.$ac_objext'
12377   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12378   (eval $ac_try) 2>&5
12379   ac_status=$?
12380   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12381   (exit $ac_status); }; }; then
12382   ac_hi=$ac_mid
12383 else
12384   echo "$as_me: failed program was:" >&5
12385 cat conftest.$ac_ext >&5
12386 ac_lo=`expr '(' $ac_mid ')' + 1`
12387 fi
12388 rm -f conftest.$ac_objext conftest.$ac_ext
12389 done
12390 case $ac_lo in
12391 ?*) ac_cv_sizeof_long_long=$ac_lo;;
12392 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77" >&5
12393 echo "$as_me: error: cannot compute sizeof (long long), 77" >&2;}
12394    { (exit 1); exit 1; }; } ;;
12395 esac
12396 else
12397   if test "$cross_compiling" = yes; then
12398   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
12399 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
12400    { (exit 1); exit 1; }; }
12401 else
12402   cat >conftest.$ac_ext <<_ACEOF
12403 #line $LINENO "configure"
12404 #include "confdefs.h"
12405 $ac_includes_default
12406 long longval () { return (long) (sizeof (long long)); }
12407 unsigned long ulongval () { return (long) (sizeof (long long)); }
12408 #include <stdio.h>
12409 #include <stdlib.h>
12410 #ifdef F77_DUMMY_MAIN
12411 #  ifdef __cplusplus
12412      extern "C"
12413 #  endif
12414    int F77_DUMMY_MAIN() { return 1; }
12415 #endif
12416 int
12417 main ()
12418 {
12419
12420   FILE *f = fopen ("conftest.val", "w");
12421   if (! f)
12422     exit (1);
12423   if (((long) (sizeof (long long))) < 0)
12424     {
12425       long i = longval ();
12426       if (i != ((long) (sizeof (long long))))
12427         exit (1);
12428       fprintf (f, "%ld\n", i);
12429     }
12430   else
12431     {
12432       unsigned long i = ulongval ();
12433       if (i != ((long) (sizeof (long long))))
12434         exit (1);
12435       fprintf (f, "%lu\n", i);
12436     }
12437   exit (ferror (f) || fclose (f) != 0);
12438
12439   ;
12440   return 0;
12441 }
12442 _ACEOF
12443 rm -f conftest$ac_exeext
12444 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12445   (eval $ac_link) 2>&5
12446   ac_status=$?
12447   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12448   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12449   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12450   (eval $ac_try) 2>&5
12451   ac_status=$?
12452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12453   (exit $ac_status); }; }; then
12454   ac_cv_sizeof_long_long=`cat conftest.val`
12455 else
12456   echo "$as_me: program exited with status $ac_status" >&5
12457 echo "$as_me: failed program was:" >&5
12458 cat conftest.$ac_ext >&5
12459 ( exit $ac_status )
12460 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77" >&5
12461 echo "$as_me: error: cannot compute sizeof (long long), 77" >&2;}
12462    { (exit 1); exit 1; }; }
12463 fi
12464 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12465 fi
12466 fi
12467 rm -f conftest.val
12468 else
12469   ac_cv_sizeof_long_long=0
12470 fi
12471 fi
12472 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
12473 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
12474 cat >>confdefs.h <<_ACEOF
12475 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
12476 _ACEOF
12477
12478
12479
12480 echo "$as_me:$LINENO: checking whether linux/input.h is for real" >&5
12481 echo $ECHO_N "checking whether linux/input.h is for real... $ECHO_C" >&6
12482 if test "${wine_cv_linux_input_h+set}" = set; then
12483   echo $ECHO_N "(cached) $ECHO_C" >&6
12484 else
12485   cat >conftest.$ac_ext <<_ACEOF
12486 #line $LINENO "configure"
12487 #include "confdefs.h"
12488
12489             #include <linux/input.h>
12490
12491 #ifdef F77_DUMMY_MAIN
12492 #  ifdef __cplusplus
12493      extern "C"
12494 #  endif
12495    int F77_DUMMY_MAIN() { return 1; }
12496 #endif
12497 int
12498 main ()
12499 {
12500
12501             int foo = EVIOCGBIT(EV_ABS,42);
12502             int bar = BTN_PINKIE;
12503             int fortytwo = 42;
12504
12505   ;
12506   return 0;
12507 }
12508 _ACEOF
12509 rm -f conftest.$ac_objext
12510 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12511   (eval $ac_compile) 2>&5
12512   ac_status=$?
12513   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12514   (exit $ac_status); } &&
12515          { ac_try='test -s conftest.$ac_objext'
12516   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12517   (eval $ac_try) 2>&5
12518   ac_status=$?
12519   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12520   (exit $ac_status); }; }; then
12521   wine_cv_linux_input_h=yes
12522 else
12523   echo "$as_me: failed program was:" >&5
12524 cat conftest.$ac_ext >&5
12525 wine_cv_linux_input_h=no
12526 fi
12527 rm -f conftest.$ac_objext conftest.$ac_ext
12528
12529 fi
12530 echo "$as_me:$LINENO: result: $wine_cv_linux_input_h" >&5
12531 echo "${ECHO_T}$wine_cv_linux_input_h" >&6
12532     if test "$wine_cv_linux_input_h" = "yes"
12533     then
12534
12535 cat >>confdefs.h <<\_ACEOF
12536 #define HAVE_CORRECT_LINUXINPUT_H 1
12537 _ACEOF
12538
12539     fi
12540
12541
12542 echo "$as_me:$LINENO: checking whether we can use re-entrant gethostbyname_r Linux style" >&5
12543 echo $ECHO_N "checking whether we can use re-entrant gethostbyname_r Linux style... $ECHO_C" >&6
12544 if test "${wine_cv_linux_gethostbyname_r_6+set}" = set; then
12545   echo $ECHO_N "(cached) $ECHO_C" >&6
12546 else
12547   cat >conftest.$ac_ext <<_ACEOF
12548 #line $LINENO "configure"
12549 #include "confdefs.h"
12550
12551 #include <netdb.h>
12552
12553 #ifdef F77_DUMMY_MAIN
12554 #  ifdef __cplusplus
12555      extern "C"
12556 #  endif
12557    int F77_DUMMY_MAIN() { return 1; }
12558 #endif
12559 int
12560 main ()
12561 {
12562
12563     char *name=NULL;
12564     struct hostent he;
12565     struct hostent *result;
12566     char *buf=NULL;
12567     int bufsize=0;
12568     int res,errnr;
12569     char *addr=NULL;
12570     int addrlen=0;
12571     int addrtype=0;
12572     res=gethostbyname_r(name,&he,buf,bufsize,&result,&errnr);
12573     res=gethostbyaddr_r(addr, addrlen, addrtype,&he,buf,bufsize,&result,&errnr);
12574
12575   ;
12576   return 0;
12577 }
12578 _ACEOF
12579 rm -f conftest.$ac_objext
12580 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12581   (eval $ac_compile) 2>&5
12582   ac_status=$?
12583   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12584   (exit $ac_status); } &&
12585          { ac_try='test -s conftest.$ac_objext'
12586   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12587   (eval $ac_try) 2>&5
12588   ac_status=$?
12589   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12590   (exit $ac_status); }; }; then
12591   wine_cv_linux_gethostbyname_r_6=yes
12592 else
12593   echo "$as_me: failed program was:" >&5
12594 cat conftest.$ac_ext >&5
12595 wine_cv_linux_gethostbyname_r_6=no
12596
12597 fi
12598 rm -f conftest.$ac_objext conftest.$ac_ext
12599
12600 fi
12601 echo "$as_me:$LINENO: result: $wine_cv_linux_gethostbyname_r_6" >&5
12602 echo "${ECHO_T}$wine_cv_linux_gethostbyname_r_6" >&6
12603    if test "$wine_cv_linux_gethostbyname_r_6" = "yes"
12604    then
12605
12606 cat >>confdefs.h <<\_ACEOF
12607 #define HAVE_LINUX_GETHOSTBYNAME_R_6 1
12608 _ACEOF
12609
12610    fi
12611
12612 if test "$ac_cv_header_linux_joystick_h" = "yes"
12613 then
12614    echo "$as_me:$LINENO: checking whether linux/joystick.h uses the Linux 2.2+ API" >&5
12615 echo $ECHO_N "checking whether linux/joystick.h uses the Linux 2.2+ API... $ECHO_C" >&6
12616 if test "${wine_cv_linux_joystick_22_api+set}" = set; then
12617   echo $ECHO_N "(cached) $ECHO_C" >&6
12618 else
12619   cat >conftest.$ac_ext <<_ACEOF
12620 #line $LINENO "configure"
12621 #include "confdefs.h"
12622
12623         #include <sys/ioctl.h>
12624         #include <linux/joystick.h>
12625
12626         struct js_event blub;
12627         #if !defined(JS_EVENT_AXIS) || !defined(JS_EVENT_BUTTON)
12628         #error "no 2.2 header"
12629         #endif
12630
12631 #ifdef F77_DUMMY_MAIN
12632 #  ifdef __cplusplus
12633      extern "C"
12634 #  endif
12635    int F77_DUMMY_MAIN() { return 1; }
12636 #endif
12637 int
12638 main ()
12639 {
12640 /*empty*/
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   wine_cv_linux_joystick_22_api=yes
12658 else
12659   echo "$as_me: failed program was:" >&5
12660 cat conftest.$ac_ext >&5
12661 wine_cv_linux_joystick_22_api=no
12662 fi
12663 rm -f conftest.$ac_objext conftest.$ac_ext
12664
12665 fi
12666 echo "$as_me:$LINENO: result: $wine_cv_linux_joystick_22_api" >&5
12667 echo "${ECHO_T}$wine_cv_linux_joystick_22_api" >&6
12668    if test "$wine_cv_linux_joystick_22_api" = "yes"
12669    then
12670
12671 cat >>confdefs.h <<\_ACEOF
12672 #define HAVE_LINUX_22_JOYSTICK_API 1
12673 _ACEOF
12674
12675    fi
12676 fi
12677
12678
12679 if test "$ac_cv_header_sys_vfs_h" = "yes"
12680 then
12681     echo "$as_me:$LINENO: checking whether sys/vfs.h defines statfs" >&5
12682 echo $ECHO_N "checking whether sys/vfs.h defines statfs... $ECHO_C" >&6
12683 if test "${wine_cv_sys_vfs_has_statfs+set}" = set; then
12684   echo $ECHO_N "(cached) $ECHO_C" >&6
12685 else
12686   cat >conftest.$ac_ext <<_ACEOF
12687 #line $LINENO "configure"
12688 #include "confdefs.h"
12689
12690         #include <sys/types.h>
12691         #ifdef HAVE_SYS_PARAM_H
12692         # include <sys/param.h>
12693         #endif
12694         #include <sys/vfs.h>
12695
12696 #ifdef F77_DUMMY_MAIN
12697 #  ifdef __cplusplus
12698      extern "C"
12699 #  endif
12700    int F77_DUMMY_MAIN() { return 1; }
12701 #endif
12702 int
12703 main ()
12704 {
12705
12706                 struct statfs stfs;
12707
12708                 memset(&stfs,0,sizeof(stfs));
12709
12710   ;
12711   return 0;
12712 }
12713 _ACEOF
12714 rm -f conftest.$ac_objext
12715 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12716   (eval $ac_compile) 2>&5
12717   ac_status=$?
12718   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12719   (exit $ac_status); } &&
12720          { ac_try='test -s conftest.$ac_objext'
12721   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12722   (eval $ac_try) 2>&5
12723   ac_status=$?
12724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12725   (exit $ac_status); }; }; then
12726   wine_cv_sys_vfs_has_statfs=yes
12727 else
12728   echo "$as_me: failed program was:" >&5
12729 cat conftest.$ac_ext >&5
12730 wine_cv_sys_vfs_has_statfs=no
12731
12732 fi
12733 rm -f conftest.$ac_objext conftest.$ac_ext
12734
12735 fi
12736 echo "$as_me:$LINENO: result: $wine_cv_sys_vfs_has_statfs" >&5
12737 echo "${ECHO_T}$wine_cv_sys_vfs_has_statfs" >&6
12738     if test "$wine_cv_sys_vfs_has_statfs" = "yes"
12739     then
12740
12741 cat >>confdefs.h <<\_ACEOF
12742 #define STATFS_DEFINED_BY_SYS_VFS 1
12743 _ACEOF
12744
12745     fi
12746 fi
12747
12748 if test "$ac_cv_header_sys_statfs_h" = "yes"
12749 then
12750     echo "$as_me:$LINENO: checking whether sys/statfs.h defines statfs" >&5
12751 echo $ECHO_N "checking whether sys/statfs.h defines statfs... $ECHO_C" >&6
12752 if test "${wine_cv_sys_statfs_has_statfs+set}" = set; then
12753   echo $ECHO_N "(cached) $ECHO_C" >&6
12754 else
12755   cat >conftest.$ac_ext <<_ACEOF
12756 #line $LINENO "configure"
12757 #include "confdefs.h"
12758
12759         #include <sys/types.h>
12760         #ifdef HAVE_SYS_PARAM_H
12761         # include <sys/param.h>
12762         #endif
12763         #include <sys/statfs.h>
12764
12765 #ifdef F77_DUMMY_MAIN
12766 #  ifdef __cplusplus
12767      extern "C"
12768 #  endif
12769    int F77_DUMMY_MAIN() { return 1; }
12770 #endif
12771 int
12772 main ()
12773 {
12774
12775                 struct statfs stfs;
12776
12777   ;
12778   return 0;
12779 }
12780 _ACEOF
12781 rm -f conftest.$ac_objext
12782 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12783   (eval $ac_compile) 2>&5
12784   ac_status=$?
12785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12786   (exit $ac_status); } &&
12787          { ac_try='test -s conftest.$ac_objext'
12788   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12789   (eval $ac_try) 2>&5
12790   ac_status=$?
12791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12792   (exit $ac_status); }; }; then
12793   wine_cv_sys_statfs_has_statfs=yes
12794 else
12795   echo "$as_me: failed program was:" >&5
12796 cat conftest.$ac_ext >&5
12797 wine_cv_sys_statfs_has_statfs=no
12798
12799 fi
12800 rm -f conftest.$ac_objext conftest.$ac_ext
12801
12802 fi
12803 echo "$as_me:$LINENO: result: $wine_cv_sys_statfs_has_statfs" >&5
12804 echo "${ECHO_T}$wine_cv_sys_statfs_has_statfs" >&6
12805     if test "$wine_cv_sys_statfs_has_statfs" = "yes"
12806     then
12807
12808 cat >>confdefs.h <<\_ACEOF
12809 #define STATFS_DEFINED_BY_SYS_STATFS 1
12810 _ACEOF
12811
12812     fi
12813 fi
12814
12815 if test "$ac_cv_header_sys_mount_h" = "yes"
12816 then
12817     echo "$as_me:$LINENO: checking whether sys/mount.h defines statfs" >&5
12818 echo $ECHO_N "checking whether sys/mount.h defines statfs... $ECHO_C" >&6
12819 if test "${wine_cv_sys_mount_has_statfs+set}" = set; then
12820   echo $ECHO_N "(cached) $ECHO_C" >&6
12821 else
12822   cat >conftest.$ac_ext <<_ACEOF
12823 #line $LINENO "configure"
12824 #include "confdefs.h"
12825
12826         #include <sys/types.h>
12827         #ifdef HAVE_SYS_PARAM_H
12828         # include <sys/param.h>
12829         #endif
12830         #include <sys/mount.h>
12831
12832 #ifdef F77_DUMMY_MAIN
12833 #  ifdef __cplusplus
12834      extern "C"
12835 #  endif
12836    int F77_DUMMY_MAIN() { return 1; }
12837 #endif
12838 int
12839 main ()
12840 {
12841
12842                 struct statfs stfs;
12843
12844   ;
12845   return 0;
12846 }
12847 _ACEOF
12848 rm -f conftest.$ac_objext
12849 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12850   (eval $ac_compile) 2>&5
12851   ac_status=$?
12852   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12853   (exit $ac_status); } &&
12854          { ac_try='test -s conftest.$ac_objext'
12855   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12856   (eval $ac_try) 2>&5
12857   ac_status=$?
12858   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12859   (exit $ac_status); }; }; then
12860   wine_cv_sys_mount_has_statfs=yes
12861 else
12862   echo "$as_me: failed program was:" >&5
12863 cat conftest.$ac_ext >&5
12864 wine_cv_sys_mount_has_statfs=no
12865
12866 fi
12867 rm -f conftest.$ac_objext conftest.$ac_ext
12868
12869 fi
12870 echo "$as_me:$LINENO: result: $wine_cv_sys_mount_has_statfs" >&5
12871 echo "${ECHO_T}$wine_cv_sys_mount_has_statfs" >&6
12872     if test "$wine_cv_sys_mount_has_statfs" = "yes"
12873     then
12874
12875 cat >>confdefs.h <<\_ACEOF
12876 #define STATFS_DEFINED_BY_SYS_MOUNT 1
12877 _ACEOF
12878
12879     fi
12880 fi
12881
12882
12883 echo "$as_me:$LINENO: checking for f_bfree in struct statfs" >&5
12884 echo $ECHO_N "checking for f_bfree in struct statfs... $ECHO_C" >&6
12885 if test "${ac_cv_c_statfs_f_bfree+set}" = set; then
12886   echo $ECHO_N "(cached) $ECHO_C" >&6
12887 else
12888   cat >conftest.$ac_ext <<_ACEOF
12889 #line $LINENO "configure"
12890 #include "confdefs.h"
12891 #include <sys/types.h>
12892 #ifdef HAVE_SYS_PARAM_H
12893 # include <sys/param.h>
12894 #endif
12895 #ifdef STATFS_DEFINED_BY_SYS_MOUNT
12896 # include <sys/mount.h>
12897 #else
12898 # ifdef STATFS_DEFINED_BY_SYS_VFS
12899 #  include <sys/vfs.h>
12900 # else
12901 #  ifdef STATFS_DEFINED_BY_SYS_STATFS
12902 #   include <sys/statfs.h>
12903 #  endif
12904 # endif
12905 #endif
12906 #ifdef F77_DUMMY_MAIN
12907 #  ifdef __cplusplus
12908      extern "C"
12909 #  endif
12910    int F77_DUMMY_MAIN() { return 1; }
12911 #endif
12912 int
12913 main ()
12914 {
12915 struct statfs s; s.f_bfree = 0
12916   ;
12917   return 0;
12918 }
12919 _ACEOF
12920 rm -f conftest.$ac_objext
12921 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12922   (eval $ac_compile) 2>&5
12923   ac_status=$?
12924   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12925   (exit $ac_status); } &&
12926          { ac_try='test -s conftest.$ac_objext'
12927   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12928   (eval $ac_try) 2>&5
12929   ac_status=$?
12930   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12931   (exit $ac_status); }; }; then
12932   ac_cv_c_statfs_f_bfree="yes"
12933 else
12934   echo "$as_me: failed program was:" >&5
12935 cat conftest.$ac_ext >&5
12936 ac_cv_c_statfs_f_bfree="no"
12937 fi
12938 rm -f conftest.$ac_objext conftest.$ac_ext
12939 fi
12940 echo "$as_me:$LINENO: result: $ac_cv_c_statfs_f_bfree" >&5
12941 echo "${ECHO_T}$ac_cv_c_statfs_f_bfree" >&6
12942 if  test "x$ac_cv_c_statfs_f_bfree" = "xyes"; then
12943
12944 cat >>confdefs.h <<\_ACEOF
12945 #define STATFS_HAS_BFREE 1
12946 _ACEOF
12947
12948 fi
12949
12950
12951
12952 echo "$as_me:$LINENO: checking for f_bavail in struct statfs" >&5
12953 echo $ECHO_N "checking for f_bavail in struct statfs... $ECHO_C" >&6
12954 if test "${ac_cv_c_statfs_f_bavail+set}" = set; then
12955   echo $ECHO_N "(cached) $ECHO_C" >&6
12956 else
12957   cat >conftest.$ac_ext <<_ACEOF
12958 #line $LINENO "configure"
12959 #include "confdefs.h"
12960 #include <sys/types.h>
12961 #ifdef HAVE_SYS_PARAM_H
12962 # include <sys/param.h>
12963 #endif
12964 #ifdef STATFS_DEFINED_BY_SYS_MOUNT
12965 # include <sys/mount.h>
12966 #else
12967 # ifdef STATFS_DEFINED_BY_SYS_VFS
12968 #  include <sys/vfs.h>
12969 # else
12970 #  ifdef STATFS_DEFINED_BY_SYS_STATFS
12971 #   include <sys/statfs.h>
12972 #  endif
12973 # endif
12974 #endif
12975 #ifdef F77_DUMMY_MAIN
12976 #  ifdef __cplusplus
12977      extern "C"
12978 #  endif
12979    int F77_DUMMY_MAIN() { return 1; }
12980 #endif
12981 int
12982 main ()
12983 {
12984 struct statfs s; s.f_bavail = 0
12985   ;
12986   return 0;
12987 }
12988 _ACEOF
12989 rm -f conftest.$ac_objext
12990 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12991   (eval $ac_compile) 2>&5
12992   ac_status=$?
12993   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12994   (exit $ac_status); } &&
12995          { ac_try='test -s conftest.$ac_objext'
12996   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12997   (eval $ac_try) 2>&5
12998   ac_status=$?
12999   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13000   (exit $ac_status); }; }; then
13001   ac_cv_c_statfs_f_bavail="yes"
13002 else
13003   echo "$as_me: failed program was:" >&5
13004 cat conftest.$ac_ext >&5
13005 ac_cv_c_statfs_f_bavail="no"
13006 fi
13007 rm -f conftest.$ac_objext conftest.$ac_ext
13008 fi
13009 echo "$as_me:$LINENO: result: $ac_cv_c_statfs_f_bavail" >&5
13010 echo "${ECHO_T}$ac_cv_c_statfs_f_bavail" >&6
13011 if  test "x$ac_cv_c_statfs_f_bavail" = "xyes"; then
13012
13013 cat >>confdefs.h <<\_ACEOF
13014 #define STATFS_HAS_BAVAIL 1
13015 _ACEOF
13016
13017 fi
13018
13019
13020
13021 echo "$as_me:$LINENO: checking for msg_accrights in struct msghdr" >&5
13022 echo $ECHO_N "checking for msg_accrights in struct msghdr... $ECHO_C" >&6
13023 if test "${ac_cv_c_msghdr_msg_accrights+set}" = set; then
13024   echo $ECHO_N "(cached) $ECHO_C" >&6
13025 else
13026   cat >conftest.$ac_ext <<_ACEOF
13027 #line $LINENO "configure"
13028 #include "confdefs.h"
13029 #include <sys/types.h>
13030 #include <sys/socket.h>
13031 #ifdef F77_DUMMY_MAIN
13032 #  ifdef __cplusplus
13033      extern "C"
13034 #  endif
13035    int F77_DUMMY_MAIN() { return 1; }
13036 #endif
13037 int
13038 main ()
13039 {
13040 struct msghdr s; s.msg_accrights = 0
13041   ;
13042   return 0;
13043 }
13044 _ACEOF
13045 rm -f conftest.$ac_objext
13046 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13047   (eval $ac_compile) 2>&5
13048   ac_status=$?
13049   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13050   (exit $ac_status); } &&
13051          { ac_try='test -s conftest.$ac_objext'
13052   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13053   (eval $ac_try) 2>&5
13054   ac_status=$?
13055   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13056   (exit $ac_status); }; }; then
13057   ac_cv_c_msghdr_msg_accrights="yes"
13058 else
13059   echo "$as_me: failed program was:" >&5
13060 cat conftest.$ac_ext >&5
13061 ac_cv_c_msghdr_msg_accrights="no"
13062 fi
13063 rm -f conftest.$ac_objext conftest.$ac_ext
13064 fi
13065 echo "$as_me:$LINENO: result: $ac_cv_c_msghdr_msg_accrights" >&5
13066 echo "${ECHO_T}$ac_cv_c_msghdr_msg_accrights" >&6
13067 if  test "x$ac_cv_c_msghdr_msg_accrights" = "xyes"; then
13068
13069 cat >>confdefs.h <<\_ACEOF
13070 #define HAVE_MSGHDR_ACCRIGHTS 1
13071 _ACEOF
13072
13073 fi
13074
13075
13076
13077 echo "$as_me:$LINENO: checking for sa_len in struct sockaddr" >&5
13078 echo $ECHO_N "checking for sa_len in struct sockaddr... $ECHO_C" >&6
13079 if test "${ac_cv_c_sockaddr_sa_len+set}" = set; then
13080   echo $ECHO_N "(cached) $ECHO_C" >&6
13081 else
13082   cat >conftest.$ac_ext <<_ACEOF
13083 #line $LINENO "configure"
13084 #include "confdefs.h"
13085 #include <sys/types.h>
13086 #include <sys/socket.h>
13087 #ifdef F77_DUMMY_MAIN
13088 #  ifdef __cplusplus
13089      extern "C"
13090 #  endif
13091    int F77_DUMMY_MAIN() { return 1; }
13092 #endif
13093 int
13094 main ()
13095 {
13096 struct sockaddr s; s.sa_len = 0
13097   ;
13098   return 0;
13099 }
13100 _ACEOF
13101 rm -f conftest.$ac_objext
13102 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13103   (eval $ac_compile) 2>&5
13104   ac_status=$?
13105   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13106   (exit $ac_status); } &&
13107          { ac_try='test -s conftest.$ac_objext'
13108   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13109   (eval $ac_try) 2>&5
13110   ac_status=$?
13111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13112   (exit $ac_status); }; }; then
13113   ac_cv_c_sockaddr_sa_len="yes"
13114 else
13115   echo "$as_me: failed program was:" >&5
13116 cat conftest.$ac_ext >&5
13117 ac_cv_c_sockaddr_sa_len="no"
13118 fi
13119 rm -f conftest.$ac_objext conftest.$ac_ext
13120 fi
13121 echo "$as_me:$LINENO: result: $ac_cv_c_sockaddr_sa_len" >&5
13122 echo "${ECHO_T}$ac_cv_c_sockaddr_sa_len" >&6
13123 if  test "x$ac_cv_c_sockaddr_sa_len" = "xyes"; then
13124
13125 cat >>confdefs.h <<\_ACEOF
13126 #define HAVE_SOCKADDR_SA_LEN 1
13127 _ACEOF
13128
13129 fi
13130
13131
13132
13133 echo "$as_me:$LINENO: checking for sun_len in struct sockaddr_un" >&5
13134 echo $ECHO_N "checking for sun_len in struct sockaddr_un... $ECHO_C" >&6
13135 if test "${ac_cv_c_sockaddr_un_sun_len+set}" = set; then
13136   echo $ECHO_N "(cached) $ECHO_C" >&6
13137 else
13138   cat >conftest.$ac_ext <<_ACEOF
13139 #line $LINENO "configure"
13140 #include "confdefs.h"
13141 #include <sys/types.h>
13142 #include <sys/socket.h>
13143 #include <sys/un.h>
13144 #ifdef F77_DUMMY_MAIN
13145 #  ifdef __cplusplus
13146      extern "C"
13147 #  endif
13148    int F77_DUMMY_MAIN() { return 1; }
13149 #endif
13150 int
13151 main ()
13152 {
13153 struct sockaddr_un s; s.sun_len = 0
13154   ;
13155   return 0;
13156 }
13157 _ACEOF
13158 rm -f conftest.$ac_objext
13159 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13160   (eval $ac_compile) 2>&5
13161   ac_status=$?
13162   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13163   (exit $ac_status); } &&
13164          { ac_try='test -s conftest.$ac_objext'
13165   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13166   (eval $ac_try) 2>&5
13167   ac_status=$?
13168   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13169   (exit $ac_status); }; }; then
13170   ac_cv_c_sockaddr_un_sun_len="yes"
13171 else
13172   echo "$as_me: failed program was:" >&5
13173 cat conftest.$ac_ext >&5
13174 ac_cv_c_sockaddr_un_sun_len="no"
13175 fi
13176 rm -f conftest.$ac_objext conftest.$ac_ext
13177 fi
13178 echo "$as_me:$LINENO: result: $ac_cv_c_sockaddr_un_sun_len" >&5
13179 echo "${ECHO_T}$ac_cv_c_sockaddr_un_sun_len" >&6
13180 if  test "x$ac_cv_c_sockaddr_un_sun_len" = "xyes"; then
13181
13182 cat >>confdefs.h <<\_ACEOF
13183 #define HAVE_SOCKADDR_SUN_LEN 1
13184 _ACEOF
13185
13186 fi
13187
13188
13189
13190
13191 case $host_cpu in
13192   *i345678986* )
13193     echo "$as_me:$LINENO: checking whether we need to define __i386__" >&5
13194 echo $ECHO_N "checking whether we need to define __i386__... $ECHO_C" >&6
13195 if test "${ac_cv_cpp_def_i386+set}" = set; then
13196   echo $ECHO_N "(cached) $ECHO_C" >&6
13197 else
13198   cat >conftest.$ac_ext <<_ACEOF
13199 #line $LINENO "configure"
13200 #include "confdefs.h"
13201 #ifndef __i386__
13202 yes
13203 #endif
13204 _ACEOF
13205 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13206   egrep "yes" >/dev/null 2>&1; then
13207   ac_cv_cpp_def_i386="yes"
13208 else
13209   ac_cv_cpp_def_i386="no"
13210 fi
13211 rm -f conftest*
13212
13213 fi
13214 echo "$as_me:$LINENO: result: $ac_cv_cpp_def_i386" >&5
13215 echo "${ECHO_T}$ac_cv_cpp_def_i386" >&6
13216     ;;
13217 esac
13218 if test "$ac_cv_cpp_def_i386" = "yes"
13219 then
13220     CFLAGS="$CFLAGS -D__i386__"
13221     LINTFLAGS="$LINTFLAGS -D__i386__"
13222 fi
13223
13224
13225
13226
13227
13228 ac_config_commands="$ac_config_commands controls"
13229
13230 ac_config_commands="$ac_config_commands dlls/ddraw/d3ddevice"
13231
13232 ac_config_commands="$ac_config_commands dlls/ddraw/dclipper"
13233
13234 ac_config_commands="$ac_config_commands dlls/ddraw/ddraw"
13235
13236 ac_config_commands="$ac_config_commands dlls/ddraw/direct3d"
13237
13238 ac_config_commands="$ac_config_commands dlls/ddraw/dpalette"
13239
13240 ac_config_commands="$ac_config_commands dlls/ddraw/dsurface"
13241
13242 ac_config_commands="$ac_config_commands dlls/dinput/joystick"
13243
13244 ac_config_commands="$ac_config_commands dlls/dinput/keyboard"
13245
13246 ac_config_commands="$ac_config_commands dlls/dinput/mouse"
13247
13248 ac_config_commands="$ac_config_commands dlls/gdi/enhmfdrv"
13249
13250 ac_config_commands="$ac_config_commands dlls/gdi/mfdrv"
13251
13252 ac_config_commands="$ac_config_commands dlls/gdi/win16drv"
13253
13254 ac_config_commands="$ac_config_commands dlls/kernel/messages"
13255
13256 ac_config_commands="$ac_config_commands dlls/kernel/tests"
13257
13258 ac_config_commands="$ac_config_commands dlls/oleaut32/tests"
13259
13260 ac_config_commands="$ac_config_commands dlls/shlwapi/tests"
13261
13262 ac_config_commands="$ac_config_commands dlls/user/dde"
13263
13264 ac_config_commands="$ac_config_commands dlls/user/resources"
13265
13266 ac_config_commands="$ac_config_commands dlls/user/tests"
13267
13268 ac_config_commands="$ac_config_commands dlls/wineps/data"
13269
13270 ac_config_commands="$ac_config_commands dlls/wininet/tests"
13271
13272 ac_config_commands="$ac_config_commands dlls/winsock/tests"
13273
13274 ac_config_commands="$ac_config_commands files"
13275
13276 ac_config_commands="$ac_config_commands graphics"
13277
13278 ac_config_commands="$ac_config_commands graphics/x11drv"
13279
13280 ac_config_commands="$ac_config_commands if1632"
13281
13282 ac_config_commands="$ac_config_commands include/wine"
13283
13284 ac_config_commands="$ac_config_commands loader"
13285
13286 ac_config_commands="$ac_config_commands loader/ne"
13287
13288 ac_config_commands="$ac_config_commands memory"
13289
13290 ac_config_commands="$ac_config_commands misc"
13291
13292 ac_config_commands="$ac_config_commands msdos"
13293
13294 ac_config_commands="$ac_config_commands objects"
13295
13296 ac_config_commands="$ac_config_commands programs/regapi/tests"
13297
13298 ac_config_commands="$ac_config_commands programs/regedit/tests"
13299
13300 ac_config_commands="$ac_config_commands programs/winetest/tests"
13301
13302 ac_config_commands="$ac_config_commands relay32"
13303
13304 ac_config_commands="$ac_config_commands scheduler"
13305
13306 ac_config_commands="$ac_config_commands win32"
13307
13308 ac_config_commands="$ac_config_commands windows"
13309
13310
13311 MAKE_RULES=Make.rules
13312
13313
13314 MAKE_DLL_RULES=dlls/Makedll.rules
13315
13316
13317 MAKE_PROG_RULES=programs/Makeprog.rules
13318
13319
13320 ac_config_files="$ac_config_files Make.rules dlls/Makedll.rules programs/Makeprog.rules Makefile debugger/Makefile dlls/Makefile dlls/advapi32/Makefile dlls/avicap32/Makefile dlls/avifil32/Makefile dlls/comcat/Makefile dlls/comctl32/Makefile dlls/commdlg/Makefile dlls/crtdll/Makefile dlls/crypt32/Makefile dlls/d3d8/Makefile dlls/dciman32/Makefile dlls/ddraw/Makefile dlls/devenum/Makefile dlls/dinput/Makefile dlls/dinput8/Makefile dlls/dplay/Makefile dlls/dplayx/Makefile dlls/dsound/Makefile dlls/gdi/Makefile dlls/glu32/Makefile dlls/icmp/Makefile dlls/imagehlp/Makefile dlls/imm32/Makefile dlls/kernel/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/msrle32/Makefile dlls/msvcrt/Makefile dlls/msvcrt20/Makefile dlls/msvideo/Makefile dlls/netapi32/Makefile dlls/ntdll/Makefile dlls/odbc32/Makefile dlls/ole32/Makefile dlls/oleaut32/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/serialui/Makefile dlls/setupapi/Makefile dlls/shdocvw/Makefile dlls/shell32/Makefile dlls/shfolder/Makefile dlls/shlwapi/Makefile dlls/snmpapi/Makefile dlls/sti/Makefile dlls/tapi32/Makefile dlls/ttydrv/Makefile dlls/twain/Makefile dlls/url/Makefile dlls/urlmon/Makefile dlls/user/Makefile dlls/version/Makefile dlls/win32s/Makefile dlls/winaspi/Makefile dlls/winedos/Makefile dlls/wineps/Makefile dlls/wininet/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/wavemap/Makefile dlls/winmm/winealsa/Makefile dlls/winmm/winearts/Makefile dlls/winmm/wineoss/Makefile dlls/winnls/Makefile dlls/winsock/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/uninstaller/Makefile programs/view/Makefile programs/wcmd/Makefile programs/wineconsole/Makefile programs/winefile/Makefile programs/winemine/Makefile programs/winepath/Makefile programs/winetest/Makefile programs/winhelp/Makefile programs/winver/Makefile server/Makefile tools/Makefile tools/winapi/Makefile tools/winebuild/Makefile tools/winedump/Makefile tools/wmc/Makefile tools/wrc/Makefile tsx11/Makefile unicode/Makefile"
13321
13322
13323 cat >confcache <<\_ACEOF
13324 # This file is a shell script that caches the results of configure
13325 # tests run on this system so they can be shared between configure
13326 # scripts and configure runs, see configure's option --config-cache.
13327 # It is not useful on other systems.  If it contains results you don't
13328 # want to keep, you may remove or edit it.
13329 #
13330 # config.status only pays attention to the cache file if you give it
13331 # the --recheck option to rerun configure.
13332 #
13333 # `ac_cv_env_foo' variables (set or unset) will be overriden when
13334 # loading this file, other *unset* `ac_cv_foo' will be assigned the
13335 # following values.
13336
13337 _ACEOF
13338
13339 # The following way of writing the cache mishandles newlines in values,
13340 # but we know of no workaround that is simple, portable, and efficient.
13341 # So, don't put newlines in cache variables' values.
13342 # Ultrix sh set writes to stderr and can't be redirected directly,
13343 # and sets the high bit in the cache file unless we assign to the vars.
13344 {
13345   (set) 2>&1 |
13346     case `(ac_space=' '; set | grep ac_space) 2>&1` in
13347     *ac_space=\ *)
13348       # `set' does not quote correctly, so add quotes (double-quote
13349       # substitution turns \\\\ into \\, and sed turns \\ into \).
13350       sed -n \
13351         "s/'/'\\\\''/g;
13352           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13353       ;;
13354     *)
13355       # `set' quotes correctly as required by POSIX, so do not add quotes.
13356       sed -n \
13357         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
13358       ;;
13359     esac;
13360 } |
13361   sed '
13362      t clear
13363      : clear
13364      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13365      t end
13366      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13367      : end' >>confcache
13368 if cmp -s $cache_file confcache; then :; else
13369   if test -w $cache_file; then
13370     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
13371     cat confcache >$cache_file
13372   else
13373     echo "not updating unwritable cache $cache_file"
13374   fi
13375 fi
13376 rm -f confcache
13377
13378 test "x$prefix" = xNONE && prefix=$ac_default_prefix
13379 # Let make expand exec_prefix.
13380 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13381
13382 # VPATH may cause trouble with some makes, so we remove $(srcdir),
13383 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
13384 # trailing colons and then remove the whole line if VPATH becomes empty
13385 # (actually we leave an empty line to preserve line numbers).
13386 if test "x$srcdir" = x.; then
13387   ac_vpsub='/^[         ]*VPATH[        ]*=/{
13388 s/:*\$(srcdir):*/:/;
13389 s/:*\${srcdir}:*/:/;
13390 s/:*@srcdir@:*/:/;
13391 s/^\([^=]*=[    ]*\):*/\1/;
13392 s/:*$//;
13393 s/^[^=]*=[      ]*$//;
13394 }'
13395 fi
13396
13397 DEFS=-DHAVE_CONFIG_H
13398
13399
13400 : ${CONFIG_STATUS=./config.status}
13401 ac_clean_files_save=$ac_clean_files
13402 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13403 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
13404 echo "$as_me: creating $CONFIG_STATUS" >&6;}
13405 cat >$CONFIG_STATUS <<_ACEOF
13406 #! $SHELL
13407 # Generated by $as_me.
13408 # Run this file to recreate the current configuration.
13409 # Compiler output produced by configure, useful for debugging
13410 # configure, is in config.log if it exists.
13411
13412 debug=false
13413 SHELL=\${CONFIG_SHELL-$SHELL}
13414 _ACEOF
13415
13416 cat >>$CONFIG_STATUS <<\_ACEOF
13417
13418 ## --------------------- ##
13419 ## M4sh Initialization.  ##
13420 ## --------------------- ##
13421
13422 # Be Bourne compatible
13423 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
13424   emulate sh
13425   NULLCMD=:
13426 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
13427   set -o posix
13428 fi
13429
13430 # NLS nuisances.
13431 # Support unset when possible.
13432 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
13433   as_unset=unset
13434 else
13435   as_unset=false
13436 fi
13437
13438 (set +x; test -n "`(LANG=C; export LANG) 2>&1`") &&
13439     { $as_unset LANG || test "${LANG+set}" != set; } ||
13440       { LANG=C; export LANG; }
13441 (set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") &&
13442     { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } ||
13443       { LC_ALL=C; export LC_ALL; }
13444 (set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") &&
13445     { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } ||
13446       { LC_TIME=C; export LC_TIME; }
13447 (set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") &&
13448     { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } ||
13449       { LC_CTYPE=C; export LC_CTYPE; }
13450 (set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") &&
13451     { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } ||
13452       { LANGUAGE=C; export LANGUAGE; }
13453 (set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") &&
13454     { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } ||
13455       { LC_COLLATE=C; export LC_COLLATE; }
13456 (set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") &&
13457     { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } ||
13458       { LC_NUMERIC=C; export LC_NUMERIC; }
13459 (set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") &&
13460     { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } ||
13461       { LC_MESSAGES=C; export LC_MESSAGES; }
13462
13463
13464 # Name of the executable.
13465 as_me=`(basename "$0") 2>/dev/null ||
13466 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13467          X"$0" : 'X\(//\)$' \| \
13468          X"$0" : 'X\(/\)$' \| \
13469          .     : '\(.\)' 2>/dev/null ||
13470 echo X/"$0" |
13471     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
13472           /^X\/\(\/\/\)$/{ s//\1/; q; }
13473           /^X\/\(\/\).*/{ s//\1/; q; }
13474           s/.*/./; q'`
13475
13476 # PATH needs CR, and LINENO needs CR and PATH.
13477 # Avoid depending upon Character Ranges.
13478 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13479 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13480 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13481 as_cr_digits='0123456789'
13482 as_cr_alnum=$as_cr_Letters$as_cr_digits
13483
13484 # The user is always right.
13485 if test "${PATH_SEPARATOR+set}" != set; then
13486   echo "#! /bin/sh" >conftest.sh
13487   echo  "exit 0"   >>conftest.sh
13488   chmod +x conftest.sh
13489   if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then
13490     PATH_SEPARATOR=';'
13491   else
13492     PATH_SEPARATOR=:
13493   fi
13494   rm -f conftest.sh
13495 fi
13496
13497
13498   as_lineno_1=$LINENO
13499   as_lineno_2=$LINENO
13500   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
13501   test "x$as_lineno_1" != "x$as_lineno_2" &&
13502   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
13503   # Find who we are.  Look in the path if we contain no path at all
13504   # relative or not.
13505   case $0 in
13506     *[\\/]* ) as_myself=$0 ;;
13507     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13508 for as_dir in $PATH
13509 do
13510   IFS=$as_save_IFS
13511   test -z "$as_dir" && as_dir=.
13512   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13513 done
13514
13515        ;;
13516   esac
13517   # We did not find ourselves, most probably we were run as `sh COMMAND'
13518   # in which case we are not to be found in the path.
13519   if test "x$as_myself" = x; then
13520     as_myself=$0
13521   fi
13522   if test ! -f "$as_myself"; then
13523     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
13524 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
13525    { (exit 1); exit 1; }; }
13526   fi
13527   case $CONFIG_SHELL in
13528   '')
13529     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13530 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
13531 do
13532   IFS=$as_save_IFS
13533   test -z "$as_dir" && as_dir=.
13534   for as_base in sh bash ksh sh5; do
13535          case $as_dir in
13536          /*)
13537            if ("$as_dir/$as_base" -c '
13538   as_lineno_1=$LINENO
13539   as_lineno_2=$LINENO
13540   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
13541   test "x$as_lineno_1" != "x$as_lineno_2" &&
13542   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
13543              CONFIG_SHELL=$as_dir/$as_base
13544              export CONFIG_SHELL
13545              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
13546            fi;;
13547          esac
13548        done
13549 done
13550 ;;
13551   esac
13552
13553   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
13554   # uniformly replaced by the line number.  The first 'sed' inserts a
13555   # line-number line before each line; the second 'sed' does the real
13556   # work.  The second script uses 'N' to pair each line-number line
13557   # with the numbered line, and appends trailing '-' during
13558   # substitution so that $LINENO is not a special case at line end.
13559   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
13560   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
13561   sed '=' <$as_myself |
13562     sed '
13563       N
13564       s,$,-,
13565       : loop
13566       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
13567       t loop
13568       s,-$,,
13569       s,^['$as_cr_digits']*\n,,
13570     ' >$as_me.lineno &&
13571   chmod +x $as_me.lineno ||
13572     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
13573 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
13574    { (exit 1); exit 1; }; }
13575
13576   # Don't try to exec as it changes $[0], causing all sort of problems
13577   # (the dirname of $[0] is not the place where we might find the
13578   # original and so on.  Autoconf is especially sensible to this).
13579   . ./$as_me.lineno
13580   # Exit status is that of the last command.
13581   exit
13582 }
13583
13584
13585 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
13586   *c*,-n*) ECHO_N= ECHO_C='
13587 ' ECHO_T='      ' ;;
13588   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
13589   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
13590 esac
13591
13592 if expr a : '\(a\)' >/dev/null 2>&1; then
13593   as_expr=expr
13594 else
13595   as_expr=false
13596 fi
13597
13598 rm -f conf$$ conf$$.exe conf$$.file
13599 echo >conf$$.file
13600 if ln -s conf$$.file conf$$ 2>/dev/null; then
13601   # We could just check for DJGPP; but this test a) works b) is more generic
13602   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
13603   if test -f conf$$.exe; then
13604     # Don't use ln at all; we don't have any links
13605     as_ln_s='cp -p'
13606   else
13607     as_ln_s='ln -s'
13608   fi
13609 elif ln conf$$.file conf$$ 2>/dev/null; then
13610   as_ln_s=ln
13611 else
13612   as_ln_s='cp -p'
13613 fi
13614 rm -f conf$$ conf$$.exe conf$$.file
13615
13616 as_executable_p="test -f"
13617
13618 # Sed expression to map a string onto a valid CPP name.
13619 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
13620
13621 # Sed expression to map a string onto a valid variable name.
13622 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
13623
13624
13625 # IFS
13626 # We need space, tab and new line, in precisely that order.
13627 as_nl='
13628 '
13629 IFS="   $as_nl"
13630
13631 # CDPATH.
13632 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; }
13633
13634 exec 6>&1
13635
13636 # Open the log real soon, to keep \$[0] and so on meaningful, and to
13637 # report actual input values of CONFIG_FILES etc. instead of their
13638 # values after options handling.  Logging --version etc. is OK.
13639 exec 5>>config.log
13640 {
13641   echo
13642   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13643 ## Running $as_me. ##
13644 _ASBOX
13645 } >&5
13646 cat >&5 <<_CSEOF
13647
13648 This file was extended by Wine $as_me 20020605, which was
13649 generated by GNU Autoconf 2.53.  Invocation command line was
13650
13651   CONFIG_FILES    = $CONFIG_FILES
13652   CONFIG_HEADERS  = $CONFIG_HEADERS
13653   CONFIG_LINKS    = $CONFIG_LINKS
13654   CONFIG_COMMANDS = $CONFIG_COMMANDS
13655   $ $0 $@
13656
13657 _CSEOF
13658 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
13659 echo >&5
13660 _ACEOF
13661
13662 # Files that config.status was made for.
13663 if test -n "$ac_config_files"; then
13664   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
13665 fi
13666
13667 if test -n "$ac_config_headers"; then
13668   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
13669 fi
13670
13671 if test -n "$ac_config_links"; then
13672   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
13673 fi
13674
13675 if test -n "$ac_config_commands"; then
13676   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
13677 fi
13678
13679 cat >>$CONFIG_STATUS <<\_ACEOF
13680
13681 ac_cs_usage="\
13682 \`$as_me' instantiates files from templates according to the
13683 current configuration.
13684
13685 Usage: $0 [OPTIONS] [FILE]...
13686
13687   -h, --help       print this help, then exit
13688   -V, --version    print version number, then exit
13689   -d, --debug      don't remove temporary files
13690       --recheck    update $as_me by reconfiguring in the same conditions
13691   --file=FILE[:TEMPLATE]
13692                    instantiate the configuration file FILE
13693   --header=FILE[:TEMPLATE]
13694                    instantiate the configuration header FILE
13695
13696 Configuration files:
13697 $config_files
13698
13699 Configuration headers:
13700 $config_headers
13701
13702 Configuration commands:
13703 $config_commands
13704
13705 Report bugs to <bug-autoconf@gnu.org>."
13706 _ACEOF
13707
13708 cat >>$CONFIG_STATUS <<_ACEOF
13709 ac_cs_version="\\
13710 Wine config.status 20020605
13711 configured by $0, generated by GNU Autoconf 2.53,
13712   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
13713
13714 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
13715 Free Software Foundation, Inc.
13716 This config.status script is free software; the Free Software Foundation
13717 gives unlimited permission to copy, distribute and modify it."
13718 srcdir=$srcdir
13719 INSTALL="$INSTALL"
13720 _ACEOF
13721
13722 cat >>$CONFIG_STATUS <<\_ACEOF
13723 # If no file are specified by the user, then we need to provide default
13724 # value.  By we need to know if files were specified by the user.
13725 ac_need_defaults=:
13726 while test $# != 0
13727 do
13728   case $1 in
13729   --*=*)
13730     ac_option=`expr "x$1" : 'x\([^=]*\)='`
13731     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
13732     shift
13733     set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
13734     shift
13735     ;;
13736   -*);;
13737   *) # This is not an option, so the user has probably given explicit
13738      # arguments.
13739      ac_need_defaults=false;;
13740   esac
13741
13742   case $1 in
13743   # Handling of the options.
13744 _ACEOF
13745 cat >>$CONFIG_STATUS <<_ACEOF
13746   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13747     echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
13748     exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
13749 _ACEOF
13750 cat >>$CONFIG_STATUS <<\_ACEOF
13751   --version | --vers* | -V )
13752     echo "$ac_cs_version"; exit 0 ;;
13753   --he | --h)
13754     # Conflict between --help and --header
13755     { { echo "$as_me:$LINENO: error: ambiguous option: $1
13756 Try \`$0 --help' for more information." >&5
13757 echo "$as_me: error: ambiguous option: $1
13758 Try \`$0 --help' for more information." >&2;}
13759    { (exit 1); exit 1; }; };;
13760   --help | --hel | -h )
13761     echo "$ac_cs_usage"; exit 0 ;;
13762   --debug | --d* | -d )
13763     debug=: ;;
13764   --file | --fil | --fi | --f )
13765     shift
13766     CONFIG_FILES="$CONFIG_FILES $1"
13767     ac_need_defaults=false;;
13768   --header | --heade | --head | --hea )
13769     shift
13770     CONFIG_HEADERS="$CONFIG_HEADERS $1"
13771     ac_need_defaults=false;;
13772
13773   # This is an error.
13774   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
13775 Try \`$0 --help' for more information." >&5
13776 echo "$as_me: error: unrecognized option: $1
13777 Try \`$0 --help' for more information." >&2;}
13778    { (exit 1); exit 1; }; } ;;
13779
13780   *) ac_config_targets="$ac_config_targets $1" ;;
13781
13782   esac
13783   shift
13784 done
13785
13786 _ACEOF
13787
13788
13789
13790
13791
13792 cat >>$CONFIG_STATUS <<\_ACEOF
13793 for ac_config_target in $ac_config_targets
13794 do
13795   case "$ac_config_target" in
13796   # Handling of arguments.
13797   "Make.rules" ) CONFIG_FILES="$CONFIG_FILES Make.rules" ;;
13798   "dlls/Makedll.rules" ) CONFIG_FILES="$CONFIG_FILES dlls/Makedll.rules" ;;
13799   "programs/Makeprog.rules" ) CONFIG_FILES="$CONFIG_FILES programs/Makeprog.rules" ;;
13800   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
13801   "debugger/Makefile" ) CONFIG_FILES="$CONFIG_FILES debugger/Makefile" ;;
13802   "dlls/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/Makefile" ;;
13803   "dlls/advapi32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/advapi32/Makefile" ;;
13804   "dlls/avicap32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/avicap32/Makefile" ;;
13805   "dlls/avifil32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/avifil32/Makefile" ;;
13806   "dlls/comcat/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/comcat/Makefile" ;;
13807   "dlls/comctl32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/comctl32/Makefile" ;;
13808   "dlls/commdlg/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/commdlg/Makefile" ;;
13809   "dlls/crtdll/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/crtdll/Makefile" ;;
13810   "dlls/crypt32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/crypt32/Makefile" ;;
13811   "dlls/d3d8/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/d3d8/Makefile" ;;
13812   "dlls/dciman32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dciman32/Makefile" ;;
13813   "dlls/ddraw/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ddraw/Makefile" ;;
13814   "dlls/devenum/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/devenum/Makefile" ;;
13815   "dlls/dinput/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dinput/Makefile" ;;
13816   "dlls/dinput8/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dinput8/Makefile" ;;
13817   "dlls/dplay/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dplay/Makefile" ;;
13818   "dlls/dplayx/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dplayx/Makefile" ;;
13819   "dlls/dsound/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dsound/Makefile" ;;
13820   "dlls/gdi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/gdi/Makefile" ;;
13821   "dlls/glu32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/glu32/Makefile" ;;
13822   "dlls/icmp/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/icmp/Makefile" ;;
13823   "dlls/imagehlp/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/imagehlp/Makefile" ;;
13824   "dlls/imm32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/imm32/Makefile" ;;
13825   "dlls/kernel/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/kernel/Makefile" ;;
13826   "dlls/lzexpand/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/lzexpand/Makefile" ;;
13827   "dlls/mapi32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/mapi32/Makefile" ;;
13828   "dlls/mpr/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/mpr/Makefile" ;;
13829   "dlls/msacm/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msacm/Makefile" ;;
13830   "dlls/msacm/imaadp32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msacm/imaadp32/Makefile" ;;
13831   "dlls/msacm/msadp32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msacm/msadp32/Makefile" ;;
13832   "dlls/msacm/msg711/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msacm/msg711/Makefile" ;;
13833   "dlls/msacm/winemp3/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msacm/winemp3/Makefile" ;;
13834   "dlls/msdmo/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msdmo/Makefile" ;;
13835   "dlls/msimg32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msimg32/Makefile" ;;
13836   "dlls/msisys/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msisys/Makefile" ;;
13837   "dlls/msnet32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msnet32/Makefile" ;;
13838   "dlls/msrle32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msrle32/Makefile" ;;
13839   "dlls/msvcrt/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvcrt/Makefile" ;;
13840   "dlls/msvcrt20/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvcrt20/Makefile" ;;
13841   "dlls/msvideo/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvideo/Makefile" ;;
13842   "dlls/netapi32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/netapi32/Makefile" ;;
13843   "dlls/ntdll/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ntdll/Makefile" ;;
13844   "dlls/odbc32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/odbc32/Makefile" ;;
13845   "dlls/ole32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ole32/Makefile" ;;
13846   "dlls/oleaut32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/oleaut32/Makefile" ;;
13847   "dlls/olecli/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/olecli/Makefile" ;;
13848   "dlls/oledlg/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/oledlg/Makefile" ;;
13849   "dlls/olepro32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/olepro32/Makefile" ;;
13850   "dlls/olesvr/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/olesvr/Makefile" ;;
13851   "dlls/opengl32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/opengl32/Makefile" ;;
13852   "dlls/psapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/psapi/Makefile" ;;
13853   "dlls/qcap/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/qcap/Makefile" ;;
13854   "dlls/quartz/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/quartz/Makefile" ;;
13855   "dlls/rasapi32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/rasapi32/Makefile" ;;
13856   "dlls/richedit/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/richedit/Makefile" ;;
13857   "dlls/rpcrt4/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/rpcrt4/Makefile" ;;
13858   "dlls/serialui/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/serialui/Makefile" ;;
13859   "dlls/setupapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/setupapi/Makefile" ;;
13860   "dlls/shdocvw/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shdocvw/Makefile" ;;
13861   "dlls/shell32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shell32/Makefile" ;;
13862   "dlls/shfolder/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shfolder/Makefile" ;;
13863   "dlls/shlwapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shlwapi/Makefile" ;;
13864   "dlls/snmpapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/snmpapi/Makefile" ;;
13865   "dlls/sti/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/sti/Makefile" ;;
13866   "dlls/tapi32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/tapi32/Makefile" ;;
13867   "dlls/ttydrv/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ttydrv/Makefile" ;;
13868   "dlls/twain/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/twain/Makefile" ;;
13869   "dlls/url/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/url/Makefile" ;;
13870   "dlls/urlmon/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/urlmon/Makefile" ;;
13871   "dlls/user/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/user/Makefile" ;;
13872   "dlls/version/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/version/Makefile" ;;
13873   "dlls/win32s/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/win32s/Makefile" ;;
13874   "dlls/winaspi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winaspi/Makefile" ;;
13875   "dlls/winedos/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winedos/Makefile" ;;
13876   "dlls/wineps/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wineps/Makefile" ;;
13877   "dlls/wininet/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wininet/Makefile" ;;
13878   "dlls/winmm/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/Makefile" ;;
13879   "dlls/winmm/joystick/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/joystick/Makefile" ;;
13880   "dlls/winmm/mcianim/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/mcianim/Makefile" ;;
13881   "dlls/winmm/mciavi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/mciavi/Makefile" ;;
13882   "dlls/winmm/mcicda/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/mcicda/Makefile" ;;
13883   "dlls/winmm/mciseq/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/mciseq/Makefile" ;;
13884   "dlls/winmm/mciwave/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/mciwave/Makefile" ;;
13885   "dlls/winmm/midimap/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/midimap/Makefile" ;;
13886   "dlls/winmm/wavemap/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/wavemap/Makefile" ;;
13887   "dlls/winmm/winealsa/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/winealsa/Makefile" ;;
13888   "dlls/winmm/winearts/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/winearts/Makefile" ;;
13889   "dlls/winmm/wineoss/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/wineoss/Makefile" ;;
13890   "dlls/winnls/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winnls/Makefile" ;;
13891   "dlls/winsock/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winsock/Makefile" ;;
13892   "dlls/winspool/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winspool/Makefile" ;;
13893   "dlls/wintrust/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wintrust/Makefile" ;;
13894   "dlls/wow32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wow32/Makefile" ;;
13895   "dlls/wsock32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wsock32/Makefile" ;;
13896   "dlls/x11drv/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/x11drv/Makefile" ;;
13897   "documentation/Makefile" ) CONFIG_FILES="$CONFIG_FILES documentation/Makefile" ;;
13898   "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
13899   "library/Makefile" ) CONFIG_FILES="$CONFIG_FILES library/Makefile" ;;
13900   "miscemu/Makefile" ) CONFIG_FILES="$CONFIG_FILES miscemu/Makefile" ;;
13901   "ole/Makefile" ) CONFIG_FILES="$CONFIG_FILES ole/Makefile" ;;
13902   "programs/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/Makefile" ;;
13903   "programs/avitools/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/avitools/Makefile" ;;
13904   "programs/clock/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/clock/Makefile" ;;
13905   "programs/cmdlgtst/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/cmdlgtst/Makefile" ;;
13906   "programs/control/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/control/Makefile" ;;
13907   "programs/expand/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/expand/Makefile" ;;
13908   "programs/notepad/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/notepad/Makefile" ;;
13909   "programs/osversioncheck/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/osversioncheck/Makefile" ;;
13910   "programs/progman/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/progman/Makefile" ;;
13911   "programs/regapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/regapi/Makefile" ;;
13912   "programs/regedit/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/regedit/Makefile" ;;
13913   "programs/regsvr32/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/regsvr32/Makefile" ;;
13914   "programs/regtest/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/regtest/Makefile" ;;
13915   "programs/uninstaller/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/uninstaller/Makefile" ;;
13916   "programs/view/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/view/Makefile" ;;
13917   "programs/wcmd/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/wcmd/Makefile" ;;
13918   "programs/wineconsole/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/wineconsole/Makefile" ;;
13919   "programs/winefile/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winefile/Makefile" ;;
13920   "programs/winemine/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winemine/Makefile" ;;
13921   "programs/winepath/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winepath/Makefile" ;;
13922   "programs/winetest/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winetest/Makefile" ;;
13923   "programs/winhelp/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winhelp/Makefile" ;;
13924   "programs/winver/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winver/Makefile" ;;
13925   "server/Makefile" ) CONFIG_FILES="$CONFIG_FILES server/Makefile" ;;
13926   "tools/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
13927   "tools/winapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/winapi/Makefile" ;;
13928   "tools/winebuild/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/winebuild/Makefile" ;;
13929   "tools/winedump/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/winedump/Makefile" ;;
13930   "tools/wmc/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/wmc/Makefile" ;;
13931   "tools/wrc/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/wrc/Makefile" ;;
13932   "tsx11/Makefile" ) CONFIG_FILES="$CONFIG_FILES tsx11/Makefile" ;;
13933   "unicode/Makefile" ) CONFIG_FILES="$CONFIG_FILES unicode/Makefile" ;;
13934   "controls" ) CONFIG_COMMANDS="$CONFIG_COMMANDS controls" ;;
13935   "dlls/ddraw/d3ddevice" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/d3ddevice" ;;
13936   "dlls/ddraw/dclipper" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/dclipper" ;;
13937   "dlls/ddraw/ddraw" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/ddraw" ;;
13938   "dlls/ddraw/direct3d" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/direct3d" ;;
13939   "dlls/ddraw/dpalette" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/dpalette" ;;
13940   "dlls/ddraw/dsurface" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/dsurface" ;;
13941   "dlls/dinput/joystick" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/dinput/joystick" ;;
13942   "dlls/dinput/keyboard" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/dinput/keyboard" ;;
13943   "dlls/dinput/mouse" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/dinput/mouse" ;;
13944   "dlls/gdi/enhmfdrv" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/gdi/enhmfdrv" ;;
13945   "dlls/gdi/mfdrv" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/gdi/mfdrv" ;;
13946   "dlls/gdi/win16drv" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/gdi/win16drv" ;;
13947   "dlls/kernel/messages" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/kernel/messages" ;;
13948   "dlls/kernel/tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/kernel/tests" ;;
13949   "dlls/oleaut32/tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/oleaut32/tests" ;;
13950   "dlls/shlwapi/tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/shlwapi/tests" ;;
13951   "dlls/user/dde" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/user/dde" ;;
13952   "dlls/user/resources" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/user/resources" ;;
13953   "dlls/user/tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/user/tests" ;;
13954   "dlls/wineps/data" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/wineps/data" ;;
13955   "dlls/wininet/tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/wininet/tests" ;;
13956   "dlls/winsock/tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/winsock/tests" ;;
13957   "files" ) CONFIG_COMMANDS="$CONFIG_COMMANDS files" ;;
13958   "graphics" ) CONFIG_COMMANDS="$CONFIG_COMMANDS graphics" ;;
13959   "graphics/x11drv" ) CONFIG_COMMANDS="$CONFIG_COMMANDS graphics/x11drv" ;;
13960   "if1632" ) CONFIG_COMMANDS="$CONFIG_COMMANDS if1632" ;;
13961   "include/wine" ) CONFIG_COMMANDS="$CONFIG_COMMANDS include/wine" ;;
13962   "loader" ) CONFIG_COMMANDS="$CONFIG_COMMANDS loader" ;;
13963   "loader/ne" ) CONFIG_COMMANDS="$CONFIG_COMMANDS loader/ne" ;;
13964   "memory" ) CONFIG_COMMANDS="$CONFIG_COMMANDS memory" ;;
13965   "misc" ) CONFIG_COMMANDS="$CONFIG_COMMANDS misc" ;;
13966   "msdos" ) CONFIG_COMMANDS="$CONFIG_COMMANDS msdos" ;;
13967   "objects" ) CONFIG_COMMANDS="$CONFIG_COMMANDS objects" ;;
13968   "programs/regapi/tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS programs/regapi/tests" ;;
13969   "programs/regedit/tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS programs/regedit/tests" ;;
13970   "programs/winetest/tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS programs/winetest/tests" ;;
13971   "relay32" ) CONFIG_COMMANDS="$CONFIG_COMMANDS relay32" ;;
13972   "scheduler" ) CONFIG_COMMANDS="$CONFIG_COMMANDS scheduler" ;;
13973   "win32" ) CONFIG_COMMANDS="$CONFIG_COMMANDS win32" ;;
13974   "windows" ) CONFIG_COMMANDS="$CONFIG_COMMANDS windows" ;;
13975   "include/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
13976   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
13977 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
13978    { (exit 1); exit 1; }; };;
13979   esac
13980 done
13981
13982 # If the user did not use the arguments to specify the items to instantiate,
13983 # then the envvar interface is used.  Set only those that are not.
13984 # We use the long form for the default assignment because of an extremely
13985 # bizarre bug on SunOS 4.1.3.
13986 if $ac_need_defaults; then
13987   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13988   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
13989   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
13990 fi
13991
13992 # Create a temporary directory, and hook for its removal unless debugging.
13993 $debug ||
13994 {
13995   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
13996   trap '{ (exit 1); exit 1; }' 1 2 13 15
13997 }
13998
13999 # Create a (secure) tmp directory for tmp files.
14000 : ${TMPDIR=/tmp}
14001 {
14002   tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
14003   test -n "$tmp" && test -d "$tmp"
14004 }  ||
14005 {
14006   tmp=$TMPDIR/cs$$-$RANDOM
14007   (umask 077 && mkdir $tmp)
14008 } ||
14009 {
14010    echo "$me: cannot create a temporary directory in $TMPDIR" >&2
14011    { (exit 1); exit 1; }
14012 }
14013
14014 _ACEOF
14015
14016 cat >>$CONFIG_STATUS <<_ACEOF
14017
14018 #
14019 # CONFIG_FILES section.
14020 #
14021
14022 # No need to generate the scripts if there are no CONFIG_FILES.
14023 # This happens for instance when ./config.status config.h
14024 if test -n "\$CONFIG_FILES"; then
14025   # Protect against being on the right side of a sed subst in config.status.
14026   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
14027    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
14028 s,@SHELL@,$SHELL,;t t
14029 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
14030 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
14031 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
14032 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
14033 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
14034 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
14035 s,@exec_prefix@,$exec_prefix,;t t
14036 s,@prefix@,$prefix,;t t
14037 s,@program_transform_name@,$program_transform_name,;t t
14038 s,@bindir@,$bindir,;t t
14039 s,@sbindir@,$sbindir,;t t
14040 s,@libexecdir@,$libexecdir,;t t
14041 s,@datadir@,$datadir,;t t
14042 s,@sysconfdir@,$sysconfdir,;t t
14043 s,@sharedstatedir@,$sharedstatedir,;t t
14044 s,@localstatedir@,$localstatedir,;t t
14045 s,@libdir@,$libdir,;t t
14046 s,@includedir@,$includedir,;t t
14047 s,@oldincludedir@,$oldincludedir,;t t
14048 s,@infodir@,$infodir,;t t
14049 s,@mandir@,$mandir,;t t
14050 s,@build_alias@,$build_alias,;t t
14051 s,@host_alias@,$host_alias,;t t
14052 s,@target_alias@,$target_alias,;t t
14053 s,@DEFS@,$DEFS,;t t
14054 s,@ECHO_C@,$ECHO_C,;t t
14055 s,@ECHO_N@,$ECHO_N,;t t
14056 s,@ECHO_T@,$ECHO_T,;t t
14057 s,@LIBS@,$LIBS,;t t
14058 s,@OPTIONS@,$OPTIONS,;t t
14059 s,@build@,$build,;t t
14060 s,@build_cpu@,$build_cpu,;t t
14061 s,@build_vendor@,$build_vendor,;t t
14062 s,@build_os@,$build_os,;t t
14063 s,@host@,$host,;t t
14064 s,@host_cpu@,$host_cpu,;t t
14065 s,@host_vendor@,$host_vendor,;t t
14066 s,@host_os@,$host_os,;t t
14067 s,@SET_MAKE@,$SET_MAKE,;t t
14068 s,@CC@,$CC,;t t
14069 s,@CFLAGS@,$CFLAGS,;t t
14070 s,@LDFLAGS@,$LDFLAGS,;t t
14071 s,@CPPFLAGS@,$CPPFLAGS,;t t
14072 s,@ac_ct_CC@,$ac_ct_CC,;t t
14073 s,@EXEEXT@,$EXEEXT,;t t
14074 s,@OBJEXT@,$OBJEXT,;t t
14075 s,@CPP@,$CPP,;t t
14076 s,@TOOLSDIR@,$TOOLSDIR,;t t
14077 s,@X_CFLAGS@,$X_CFLAGS,;t t
14078 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
14079 s,@X_LIBS@,$X_LIBS,;t t
14080 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
14081 s,@YACC@,$YACC,;t t
14082 s,@LEX@,$LEX,;t t
14083 s,@LEXLIB@,$LEXLIB,;t t
14084 s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
14085 s,@XYACC@,$XYACC,;t t
14086 s,@XLEX@,$XLEX,;t t
14087 s,@LD@,$LD,;t t
14088 s,@ac_ct_LD@,$ac_ct_LD,;t t
14089 s,@AR@,$AR,;t t
14090 s,@ac_ct_AR@,$ac_ct_AR,;t t
14091 s,@RANLIB@,$RANLIB,;t t
14092 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
14093 s,@STRIP@,$STRIP,;t t
14094 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
14095 s,@WINDRES@,$WINDRES,;t t
14096 s,@ac_ct_WINDRES@,$ac_ct_WINDRES,;t t
14097 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
14098 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
14099 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
14100 s,@LN_S@,$LN_S,;t t
14101 s,@LN@,$LN,;t t
14102 s,@C2MAN@,$C2MAN,;t t
14103 s,@LDCONFIG@,$LDCONFIG,;t t
14104 s,@LINT@,$LINT,;t t
14105 s,@LINTFLAGS@,$LINTFLAGS,;t t
14106 s,@JPEGLIB@,$JPEGLIB,;t t
14107 s,@XLIB@,$XLIB,;t t
14108 s,@XFILES@,$XFILES,;t t
14109 s,@OPENGLFILES@,$OPENGLFILES,;t t
14110 s,@GLU32FILES@,$GLU32FILES,;t t
14111 s,@CURSESLIBS@,$CURSESLIBS,;t t
14112 s,@CUPSLIBS@,$CUPSLIBS,;t t
14113 s,@sane_devel@,$sane_devel,;t t
14114 s,@SANELIBS@,$SANELIBS,;t t
14115 s,@SANEINCL@,$SANEINCL,;t t
14116 s,@ft_devel@,$ft_devel,;t t
14117 s,@ft_devel2@,$ft_devel2,;t t
14118 s,@FREETYPEINCL@,$FREETYPEINCL,;t t
14119 s,@ARTSCCONFIG@,$ARTSCCONFIG,;t t
14120 s,@ARTSLIBS@,$ARTSLIBS,;t t
14121 s,@ARTSINCL@,$ARTSINCL,;t t
14122 s,@ALSALIBS@,$ALSALIBS,;t t
14123 s,@DLLWRAP@,$DLLWRAP,;t t
14124 s,@ac_ct_DLLWRAP@,$ac_ct_DLLWRAP,;t t
14125 s,@DLLIBS@,$DLLIBS,;t t
14126 s,@DLLFLAGS@,$DLLFLAGS,;t t
14127 s,@DLLEXT@,$DLLEXT,;t t
14128 s,@LDSHARED@,$LDSHARED,;t t
14129 s,@LDDLLFLAGS@,$LDDLLFLAGS,;t t
14130 s,@LIBEXT@,$LIBEXT,;t t
14131 s,@LDPATH@,$LDPATH,;t t
14132 s,@LDD@,$LDD,;t t
14133 s,@ALLOCA@,$ALLOCA,;t t
14134 /@MAKE_RULES@/r $MAKE_RULES
14135 s,@MAKE_RULES@,,;t t
14136 /@MAKE_DLL_RULES@/r $MAKE_DLL_RULES
14137 s,@MAKE_DLL_RULES@,,;t t
14138 /@MAKE_PROG_RULES@/r $MAKE_PROG_RULES
14139 s,@MAKE_PROG_RULES@,,;t t
14140 CEOF
14141
14142 _ACEOF
14143
14144   cat >>$CONFIG_STATUS <<\_ACEOF
14145   # Split the substitutions into bite-sized pieces for seds with
14146   # small command number limits, like on Digital OSF/1 and HP-UX.
14147   ac_max_sed_lines=48
14148   ac_sed_frag=1 # Number of current file.
14149   ac_beg=1 # First line for current file.
14150   ac_end=$ac_max_sed_lines # Line after last line for current file.
14151   ac_more_lines=:
14152   ac_sed_cmds=
14153   while $ac_more_lines; do
14154     if test $ac_beg -gt 1; then
14155       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
14156     else
14157       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
14158     fi
14159     if test ! -s $tmp/subs.frag; then
14160       ac_more_lines=false
14161     else
14162       # The purpose of the label and of the branching condition is to
14163       # speed up the sed processing (if there are no `@' at all, there
14164       # is no need to browse any of the substitutions).
14165       # These are the two extra sed commands mentioned above.
14166       (echo ':t
14167   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
14168       if test -z "$ac_sed_cmds"; then
14169         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
14170       else
14171         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
14172       fi
14173       ac_sed_frag=`expr $ac_sed_frag + 1`
14174       ac_beg=$ac_end
14175       ac_end=`expr $ac_end + $ac_max_sed_lines`
14176     fi
14177   done
14178   if test -z "$ac_sed_cmds"; then
14179     ac_sed_cmds=cat
14180   fi
14181 fi # test -n "$CONFIG_FILES"
14182
14183 _ACEOF
14184 cat >>$CONFIG_STATUS <<\_ACEOF
14185 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
14186   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
14187   case $ac_file in
14188   - | *:- | *:-:* ) # input from stdin
14189         cat >$tmp/stdin
14190         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
14191         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
14192   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
14193         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
14194   * )   ac_file_in=$ac_file.in ;;
14195   esac
14196
14197   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
14198   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
14199 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14200          X"$ac_file" : 'X\(//\)[^/]' \| \
14201          X"$ac_file" : 'X\(//\)$' \| \
14202          X"$ac_file" : 'X\(/\)' \| \
14203          .     : '\(.\)' 2>/dev/null ||
14204 echo X"$ac_file" |
14205     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14206           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14207           /^X\(\/\/\)$/{ s//\1/; q; }
14208           /^X\(\/\).*/{ s//\1/; q; }
14209           s/.*/./; q'`
14210   { case "$ac_dir" in
14211   [\\/]* | ?:[\\/]* ) as_incr_dir=;;
14212   *)                      as_incr_dir=.;;
14213 esac
14214 as_dummy="$ac_dir"
14215 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
14216   case $as_mkdir_dir in
14217     # Skip DOS drivespec
14218     ?:) as_incr_dir=$as_mkdir_dir ;;
14219     *)
14220       as_incr_dir=$as_incr_dir/$as_mkdir_dir
14221       test -d "$as_incr_dir" ||
14222         mkdir "$as_incr_dir" ||
14223         { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
14224 echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
14225    { (exit 1); exit 1; }; }
14226     ;;
14227   esac
14228 done; }
14229
14230   ac_builddir=.
14231
14232 if test "$ac_dir" != .; then
14233   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
14234   # A "../" for each directory in $ac_dir_suffix.
14235   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
14236 else
14237   ac_dir_suffix= ac_top_builddir=
14238 fi
14239
14240 case $srcdir in
14241   .)  # No --srcdir option.  We are building in place.
14242     ac_srcdir=.
14243     if test -z "$ac_top_builddir"; then
14244        ac_top_srcdir=.
14245     else
14246        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
14247     fi ;;
14248   [\\/]* | ?:[\\/]* )  # Absolute path.
14249     ac_srcdir=$srcdir$ac_dir_suffix;
14250     ac_top_srcdir=$srcdir ;;
14251   *) # Relative path.
14252     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
14253     ac_top_srcdir=$ac_top_builddir$srcdir ;;
14254 esac
14255 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
14256 # absolute.
14257 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
14258 ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
14259 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
14260 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
14261
14262
14263   case $INSTALL in
14264   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
14265   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
14266   esac
14267
14268   if test x"$ac_file" != x-; then
14269     { echo "$as_me:$LINENO: creating $ac_file" >&5
14270 echo "$as_me: creating $ac_file" >&6;}
14271     rm -f "$ac_file"
14272   fi
14273   # Let's still pretend it is `configure' which instantiates (i.e., don't
14274   # use $as_me), people would be surprised to read:
14275   #    /* config.h.  Generated by config.status.  */
14276   if test x"$ac_file" = x-; then
14277     configure_input=
14278   else
14279     configure_input="$ac_file.  "
14280   fi
14281   configure_input=$configure_input"Generated from `echo $ac_file_in |
14282                                      sed 's,.*/,,'` by configure."
14283
14284   # First look for the input files in the build tree, otherwise in the
14285   # src tree.
14286   ac_file_inputs=`IFS=:
14287     for f in $ac_file_in; do
14288       case $f in
14289       -) echo $tmp/stdin ;;
14290       [\\/$]*)
14291          # Absolute (can't be DOS-style, as IFS=:)
14292          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
14293 echo "$as_me: error: cannot find input file: $f" >&2;}
14294    { (exit 1); exit 1; }; }
14295          echo $f;;
14296       *) # Relative
14297          if test -f "$f"; then
14298            # Build tree
14299            echo $f
14300          elif test -f "$srcdir/$f"; then
14301            # Source tree
14302            echo $srcdir/$f
14303          else
14304            # /dev/null tree
14305            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
14306 echo "$as_me: error: cannot find input file: $f" >&2;}
14307    { (exit 1); exit 1; }; }
14308          fi;;
14309       esac
14310     done` || { (exit 1); exit 1; }
14311 _ACEOF
14312 cat >>$CONFIG_STATUS <<_ACEOF
14313   sed "$ac_vpsub
14314 $extrasub
14315 _ACEOF
14316 cat >>$CONFIG_STATUS <<\_ACEOF
14317 :t
14318 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14319 s,@configure_input@,$configure_input,;t t
14320 s,@srcdir@,$ac_srcdir,;t t
14321 s,@abs_srcdir@,$ac_abs_srcdir,;t t
14322 s,@top_srcdir@,$ac_top_srcdir,;t t
14323 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
14324 s,@builddir@,$ac_builddir,;t t
14325 s,@abs_builddir@,$ac_abs_builddir,;t t
14326 s,@top_builddir@,$ac_top_builddir,;t t
14327 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
14328 s,@INSTALL@,$ac_INSTALL,;t t
14329 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
14330   rm -f $tmp/stdin
14331   if test x"$ac_file" != x-; then
14332     mv $tmp/out $ac_file
14333   else
14334     cat $tmp/out
14335     rm -f $tmp/out
14336   fi
14337
14338 done
14339 _ACEOF
14340 cat >>$CONFIG_STATUS <<\_ACEOF
14341
14342 #
14343 # CONFIG_HEADER section.
14344 #
14345
14346 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
14347 # NAME is the cpp macro being defined and VALUE is the value it is being given.
14348 #
14349 # ac_d sets the value in "#define NAME VALUE" lines.
14350 ac_dA='s,^\([   ]*\)#\([        ]*define[       ][      ]*\)'
14351 ac_dB='[        ].*$,\1#\2'
14352 ac_dC=' '
14353 ac_dD=',;t'
14354 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
14355 ac_uA='s,^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
14356 ac_uB='$,\1#\2define\3'
14357 ac_uC=' '
14358 ac_uD=',;t'
14359
14360 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
14361   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
14362   case $ac_file in
14363   - | *:- | *:-:* ) # input from stdin
14364         cat >$tmp/stdin
14365         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
14366         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
14367   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
14368         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
14369   * )   ac_file_in=$ac_file.in ;;
14370   esac
14371
14372   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
14373 echo "$as_me: creating $ac_file" >&6;}
14374
14375   # First look for the input files in the build tree, otherwise in the
14376   # src tree.
14377   ac_file_inputs=`IFS=:
14378     for f in $ac_file_in; do
14379       case $f in
14380       -) echo $tmp/stdin ;;
14381       [\\/$]*)
14382          # Absolute (can't be DOS-style, as IFS=:)
14383          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
14384 echo "$as_me: error: cannot find input file: $f" >&2;}
14385    { (exit 1); exit 1; }; }
14386          echo $f;;
14387       *) # Relative
14388          if test -f "$f"; then
14389            # Build tree
14390            echo $f
14391          elif test -f "$srcdir/$f"; then
14392            # Source tree
14393            echo $srcdir/$f
14394          else
14395            # /dev/null tree
14396            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
14397 echo "$as_me: error: cannot find input file: $f" >&2;}
14398    { (exit 1); exit 1; }; }
14399          fi;;
14400       esac
14401     done` || { (exit 1); exit 1; }
14402   # Remove the trailing spaces.
14403   sed 's/[      ]*$//' $ac_file_inputs >$tmp/in
14404
14405 _ACEOF
14406
14407 # Transform confdefs.h into two sed scripts, `conftest.defines' and
14408 # `conftest.undefs', that substitutes the proper values into
14409 # config.h.in to produce config.h.  The first handles `#define'
14410 # templates, and the second `#undef' templates.
14411 # And first: Protect against being on the right side of a sed subst in
14412 # config.status.  Protect against being in an unquoted here document
14413 # in config.status.
14414 rm -f conftest.defines conftest.undefs
14415 # Using a here document instead of a string reduces the quoting nightmare.
14416 # Putting comments in sed scripts is not portable.
14417 #
14418 # `end' is used to avoid that the second main sed command (meant for
14419 # 0-ary CPP macros) applies to n-ary macro definitions.
14420 # See the Autoconf documentation for `clear'.
14421 cat >confdef2sed.sed <<\_ACEOF
14422 s/[\\&,]/\\&/g
14423 s,[\\$`],\\&,g
14424 t clear
14425 : clear
14426 s,^[    ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
14427 t end
14428 s,^[    ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
14429 : end
14430 _ACEOF
14431 # If some macros were called several times there might be several times
14432 # the same #defines, which is useless.  Nevertheless, we may not want to
14433 # sort them, since we want the *last* AC-DEFINE to be honored.
14434 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
14435 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
14436 rm -f confdef2sed.sed
14437
14438 # This sed command replaces #undef with comments.  This is necessary, for
14439 # example, in the case of _POSIX_SOURCE, which is predefined and required
14440 # on some systems where configure will not decide to define it.
14441 cat >>conftest.undefs <<\_ACEOF
14442 s,^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
14443 _ACEOF
14444
14445 # Break up conftest.defines because some shells have a limit on the size
14446 # of here documents, and old seds have small limits too (100 cmds).
14447 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
14448 echo '  if egrep "^[    ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
14449 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
14450 echo '  :' >>$CONFIG_STATUS
14451 rm -f conftest.tail
14452 while grep . conftest.defines >/dev/null
14453 do
14454   # Write a limited-size here document to $tmp/defines.sed.
14455   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
14456   # Speed up: don't consider the non `#define' lines.
14457   echo '/^[     ]*#[    ]*define/!b' >>$CONFIG_STATUS
14458   # Work around the forget-to-reset-the-flag bug.
14459   echo 't clr' >>$CONFIG_STATUS
14460   echo ': clr' >>$CONFIG_STATUS
14461   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
14462   echo 'CEOF
14463   sed -f $tmp/defines.sed $tmp/in >$tmp/out
14464   rm -f $tmp/in
14465   mv $tmp/out $tmp/in
14466 ' >>$CONFIG_STATUS
14467   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
14468   rm -f conftest.defines
14469   mv conftest.tail conftest.defines
14470 done
14471 rm -f conftest.defines
14472 echo '  fi # egrep' >>$CONFIG_STATUS
14473 echo >>$CONFIG_STATUS
14474
14475 # Break up conftest.undefs because some shells have a limit on the size
14476 # of here documents, and old seds have small limits too (100 cmds).
14477 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
14478 rm -f conftest.tail
14479 while grep . conftest.undefs >/dev/null
14480 do
14481   # Write a limited-size here document to $tmp/undefs.sed.
14482   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
14483   # Speed up: don't consider the non `#undef'
14484   echo '/^[     ]*#[    ]*undef/!b' >>$CONFIG_STATUS
14485   # Work around the forget-to-reset-the-flag bug.
14486   echo 't clr' >>$CONFIG_STATUS
14487   echo ': clr' >>$CONFIG_STATUS
14488   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
14489   echo 'CEOF
14490   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
14491   rm -f $tmp/in
14492   mv $tmp/out $tmp/in
14493 ' >>$CONFIG_STATUS
14494   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
14495   rm -f conftest.undefs
14496   mv conftest.tail conftest.undefs
14497 done
14498 rm -f conftest.undefs
14499
14500 cat >>$CONFIG_STATUS <<\_ACEOF
14501   # Let's still pretend it is `configure' which instantiates (i.e., don't
14502   # use $as_me), people would be surprised to read:
14503   #    /* config.h.  Generated by config.status.  */
14504   if test x"$ac_file" = x-; then
14505     echo "/* Generated by configure.  */" >$tmp/config.h
14506   else
14507     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
14508   fi
14509   cat $tmp/in >>$tmp/config.h
14510   rm -f $tmp/in
14511   if test x"$ac_file" != x-; then
14512     if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
14513       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
14514 echo "$as_me: $ac_file is unchanged" >&6;}
14515     else
14516       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
14517 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14518          X"$ac_file" : 'X\(//\)[^/]' \| \
14519          X"$ac_file" : 'X\(//\)$' \| \
14520          X"$ac_file" : 'X\(/\)' \| \
14521          .     : '\(.\)' 2>/dev/null ||
14522 echo X"$ac_file" |
14523     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14524           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14525           /^X\(\/\/\)$/{ s//\1/; q; }
14526           /^X\(\/\).*/{ s//\1/; q; }
14527           s/.*/./; q'`
14528       { case "$ac_dir" in
14529   [\\/]* | ?:[\\/]* ) as_incr_dir=;;
14530   *)                      as_incr_dir=.;;
14531 esac
14532 as_dummy="$ac_dir"
14533 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
14534   case $as_mkdir_dir in
14535     # Skip DOS drivespec
14536     ?:) as_incr_dir=$as_mkdir_dir ;;
14537     *)
14538       as_incr_dir=$as_incr_dir/$as_mkdir_dir
14539       test -d "$as_incr_dir" ||
14540         mkdir "$as_incr_dir" ||
14541         { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
14542 echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
14543    { (exit 1); exit 1; }; }
14544     ;;
14545   esac
14546 done; }
14547
14548       rm -f $ac_file
14549       mv $tmp/config.h $ac_file
14550     fi
14551   else
14552     cat $tmp/config.h
14553     rm -f $tmp/config.h
14554   fi
14555 done
14556 _ACEOF
14557 cat >>$CONFIG_STATUS <<\_ACEOF
14558
14559 #
14560 # CONFIG_COMMANDS section.
14561 #
14562 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
14563   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
14564   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
14565   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
14566 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14567          X"$ac_dest" : 'X\(//\)[^/]' \| \
14568          X"$ac_dest" : 'X\(//\)$' \| \
14569          X"$ac_dest" : 'X\(/\)' \| \
14570          .     : '\(.\)' 2>/dev/null ||
14571 echo X"$ac_dest" |
14572     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14573           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14574           /^X\(\/\/\)$/{ s//\1/; q; }
14575           /^X\(\/\).*/{ s//\1/; q; }
14576           s/.*/./; q'`
14577   ac_builddir=.
14578
14579 if test "$ac_dir" != .; then
14580   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
14581   # A "../" for each directory in $ac_dir_suffix.
14582   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
14583 else
14584   ac_dir_suffix= ac_top_builddir=
14585 fi
14586
14587 case $srcdir in
14588   .)  # No --srcdir option.  We are building in place.
14589     ac_srcdir=.
14590     if test -z "$ac_top_builddir"; then
14591        ac_top_srcdir=.
14592     else
14593        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
14594     fi ;;
14595   [\\/]* | ?:[\\/]* )  # Absolute path.
14596     ac_srcdir=$srcdir$ac_dir_suffix;
14597     ac_top_srcdir=$srcdir ;;
14598   *) # Relative path.
14599     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
14600     ac_top_srcdir=$ac_top_builddir$srcdir ;;
14601 esac
14602 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
14603 # absolute.
14604 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
14605 ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
14606 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
14607 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
14608
14609
14610   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
14611 echo "$as_me: executing $ac_dest commands" >&6;}
14612   case $ac_dest in
14613     controls ) test -d "controls" || ({ echo "$as_me:$LINENO: creating controls" >&5
14614 echo "$as_me: creating controls" >&6;} && mkdir "controls") ;;
14615     dlls/ddraw/d3ddevice ) test -d "dlls/ddraw/d3ddevice" || ({ echo "$as_me:$LINENO: creating dlls/ddraw/d3ddevice" >&5
14616 echo "$as_me: creating dlls/ddraw/d3ddevice" >&6;} && mkdir "dlls/ddraw/d3ddevice") ;;
14617     dlls/ddraw/dclipper ) test -d "dlls/ddraw/dclipper" || ({ echo "$as_me:$LINENO: creating dlls/ddraw/dclipper" >&5
14618 echo "$as_me: creating dlls/ddraw/dclipper" >&6;} && mkdir "dlls/ddraw/dclipper") ;;
14619     dlls/ddraw/ddraw ) test -d "dlls/ddraw/ddraw" || ({ echo "$as_me:$LINENO: creating dlls/ddraw/ddraw" >&5
14620 echo "$as_me: creating dlls/ddraw/ddraw" >&6;} && mkdir "dlls/ddraw/ddraw") ;;
14621     dlls/ddraw/direct3d ) test -d "dlls/ddraw/direct3d" || ({ echo "$as_me:$LINENO: creating dlls/ddraw/direct3d" >&5
14622 echo "$as_me: creating dlls/ddraw/direct3d" >&6;} && mkdir "dlls/ddraw/direct3d") ;;
14623     dlls/ddraw/dpalette ) test -d "dlls/ddraw/dpalette" || ({ echo "$as_me:$LINENO: creating dlls/ddraw/dpalette" >&5
14624 echo "$as_me: creating dlls/ddraw/dpalette" >&6;} && mkdir "dlls/ddraw/dpalette") ;;
14625     dlls/ddraw/dsurface ) test -d "dlls/ddraw/dsurface" || ({ echo "$as_me:$LINENO: creating dlls/ddraw/dsurface" >&5
14626 echo "$as_me: creating dlls/ddraw/dsurface" >&6;} && mkdir "dlls/ddraw/dsurface") ;;
14627     dlls/dinput/joystick ) test -d "dlls/dinput/joystick" || ({ echo "$as_me:$LINENO: creating dlls/dinput/joystick" >&5
14628 echo "$as_me: creating dlls/dinput/joystick" >&6;} && mkdir "dlls/dinput/joystick") ;;
14629     dlls/dinput/keyboard ) test -d "dlls/dinput/keyboard" || ({ echo "$as_me:$LINENO: creating dlls/dinput/keyboard" >&5
14630 echo "$as_me: creating dlls/dinput/keyboard" >&6;} && mkdir "dlls/dinput/keyboard") ;;
14631     dlls/dinput/mouse ) test -d "dlls/dinput/mouse" || ({ echo "$as_me:$LINENO: creating dlls/dinput/mouse" >&5
14632 echo "$as_me: creating dlls/dinput/mouse" >&6;} && mkdir "dlls/dinput/mouse") ;;
14633     dlls/gdi/enhmfdrv ) test -d "dlls/gdi/enhmfdrv" || ({ echo "$as_me:$LINENO: creating dlls/gdi/enhmfdrv" >&5
14634 echo "$as_me: creating dlls/gdi/enhmfdrv" >&6;} && mkdir "dlls/gdi/enhmfdrv") ;;
14635     dlls/gdi/mfdrv ) test -d "dlls/gdi/mfdrv" || ({ echo "$as_me:$LINENO: creating dlls/gdi/mfdrv" >&5
14636 echo "$as_me: creating dlls/gdi/mfdrv" >&6;} && mkdir "dlls/gdi/mfdrv") ;;
14637     dlls/gdi/win16drv ) test -d "dlls/gdi/win16drv" || ({ echo "$as_me:$LINENO: creating dlls/gdi/win16drv" >&5
14638 echo "$as_me: creating dlls/gdi/win16drv" >&6;} && mkdir "dlls/gdi/win16drv") ;;
14639     dlls/kernel/messages ) test -d "dlls/kernel/messages" || ({ echo "$as_me:$LINENO: creating dlls/kernel/messages" >&5
14640 echo "$as_me: creating dlls/kernel/messages" >&6;} && mkdir "dlls/kernel/messages") ;;
14641     dlls/kernel/tests ) test -d "dlls/kernel/tests" || ({ echo "$as_me:$LINENO: creating dlls/kernel/tests" >&5
14642 echo "$as_me: creating dlls/kernel/tests" >&6;} && mkdir "dlls/kernel/tests") ;;
14643     dlls/oleaut32/tests ) test -d "dlls/oleaut32/tests" || ({ echo "$as_me:$LINENO: creating dlls/oleaut32/tests" >&5
14644 echo "$as_me: creating dlls/oleaut32/tests" >&6;} && mkdir "dlls/oleaut32/tests") ;;
14645     dlls/shlwapi/tests ) test -d "dlls/shlwapi/tests" || ({ echo "$as_me:$LINENO: creating dlls/shlwapi/tests" >&5
14646 echo "$as_me: creating dlls/shlwapi/tests" >&6;} && mkdir "dlls/shlwapi/tests") ;;
14647     dlls/user/dde ) test -d "dlls/user/dde" || ({ echo "$as_me:$LINENO: creating dlls/user/dde" >&5
14648 echo "$as_me: creating dlls/user/dde" >&6;} && mkdir "dlls/user/dde") ;;
14649     dlls/user/resources ) test -d "dlls/user/resources" || ({ echo "$as_me:$LINENO: creating dlls/user/resources" >&5
14650 echo "$as_me: creating dlls/user/resources" >&6;} && mkdir "dlls/user/resources") ;;
14651     dlls/user/tests ) test -d "dlls/user/tests" || ({ echo "$as_me:$LINENO: creating dlls/user/tests" >&5
14652 echo "$as_me: creating dlls/user/tests" >&6;} && mkdir "dlls/user/tests") ;;
14653     dlls/wineps/data ) test -d "dlls/wineps/data" || ({ echo "$as_me:$LINENO: creating dlls/wineps/data" >&5
14654 echo "$as_me: creating dlls/wineps/data" >&6;} && mkdir "dlls/wineps/data") ;;
14655     dlls/wininet/tests ) test -d "dlls/wininet/tests" || ({ echo "$as_me:$LINENO: creating dlls/wininet/tests" >&5
14656 echo "$as_me: creating dlls/wininet/tests" >&6;} && mkdir "dlls/wininet/tests") ;;
14657     dlls/winsock/tests ) test -d "dlls/winsock/tests" || ({ echo "$as_me:$LINENO: creating dlls/winsock/tests" >&5
14658 echo "$as_me: creating dlls/winsock/tests" >&6;} && mkdir "dlls/winsock/tests") ;;
14659     files ) test -d "files" || ({ echo "$as_me:$LINENO: creating files" >&5
14660 echo "$as_me: creating files" >&6;} && mkdir "files") ;;
14661     graphics ) test -d "graphics" || ({ echo "$as_me:$LINENO: creating graphics" >&5
14662 echo "$as_me: creating graphics" >&6;} && mkdir "graphics") ;;
14663     graphics/x11drv ) test -d "graphics/x11drv" || ({ echo "$as_me:$LINENO: creating graphics/x11drv" >&5
14664 echo "$as_me: creating graphics/x11drv" >&6;} && mkdir "graphics/x11drv") ;;
14665     if1632 ) test -d "if1632" || ({ echo "$as_me:$LINENO: creating if1632" >&5
14666 echo "$as_me: creating if1632" >&6;} && mkdir "if1632") ;;
14667     include/wine ) test -d "include/wine" || ({ echo "$as_me:$LINENO: creating include/wine" >&5
14668 echo "$as_me: creating include/wine" >&6;} && mkdir "include/wine") ;;
14669     loader ) test -d "loader" || ({ echo "$as_me:$LINENO: creating loader" >&5
14670 echo "$as_me: creating loader" >&6;} && mkdir "loader") ;;
14671     loader/ne ) test -d "loader/ne" || ({ echo "$as_me:$LINENO: creating loader/ne" >&5
14672 echo "$as_me: creating loader/ne" >&6;} && mkdir "loader/ne") ;;
14673     memory ) test -d "memory" || ({ echo "$as_me:$LINENO: creating memory" >&5
14674 echo "$as_me: creating memory" >&6;} && mkdir "memory") ;;
14675     misc ) test -d "misc" || ({ echo "$as_me:$LINENO: creating misc" >&5
14676 echo "$as_me: creating misc" >&6;} && mkdir "misc") ;;
14677     msdos ) test -d "msdos" || ({ echo "$as_me:$LINENO: creating msdos" >&5
14678 echo "$as_me: creating msdos" >&6;} && mkdir "msdos") ;;
14679     objects ) test -d "objects" || ({ echo "$as_me:$LINENO: creating objects" >&5
14680 echo "$as_me: creating objects" >&6;} && mkdir "objects") ;;
14681     programs/regapi/tests ) test -d "programs/regapi/tests" || ({ echo "$as_me:$LINENO: creating programs/regapi/tests" >&5
14682 echo "$as_me: creating programs/regapi/tests" >&6;} && mkdir "programs/regapi/tests") ;;
14683     programs/regedit/tests ) test -d "programs/regedit/tests" || ({ echo "$as_me:$LINENO: creating programs/regedit/tests" >&5
14684 echo "$as_me: creating programs/regedit/tests" >&6;} && mkdir "programs/regedit/tests") ;;
14685     programs/winetest/tests ) test -d "programs/winetest/tests" || ({ echo "$as_me:$LINENO: creating programs/winetest/tests" >&5
14686 echo "$as_me: creating programs/winetest/tests" >&6;} && mkdir "programs/winetest/tests") ;;
14687     relay32 ) test -d "relay32" || ({ echo "$as_me:$LINENO: creating relay32" >&5
14688 echo "$as_me: creating relay32" >&6;} && mkdir "relay32") ;;
14689     scheduler ) test -d "scheduler" || ({ echo "$as_me:$LINENO: creating scheduler" >&5
14690 echo "$as_me: creating scheduler" >&6;} && mkdir "scheduler") ;;
14691     win32 ) test -d "win32" || ({ echo "$as_me:$LINENO: creating win32" >&5
14692 echo "$as_me: creating win32" >&6;} && mkdir "win32") ;;
14693     windows ) test -d "windows" || ({ echo "$as_me:$LINENO: creating windows" >&5
14694 echo "$as_me: creating windows" >&6;} && mkdir "windows") ;;
14695   esac
14696 done
14697 _ACEOF
14698
14699 cat >>$CONFIG_STATUS <<\_ACEOF
14700
14701 { (exit 0); exit 0; }
14702 _ACEOF
14703 chmod +x $CONFIG_STATUS
14704 ac_clean_files=$ac_clean_files_save
14705
14706
14707 # configure is writing to config.log, and then calls config.status.
14708 # config.status does its own redirection, appending to config.log.
14709 # Unfortunately, on DOS this fails, as config.log is still kept open
14710 # by configure, so config.status won't be able to write to it; its
14711 # output is simply discarded.  So we exec the FD to /dev/null,
14712 # effectively closing config.log, so it can be properly (re)opened and
14713 # appended to by config.status.  When coming back to configure, we
14714 # need to make the FD available again.
14715 if test "$no_create" != yes; then
14716   ac_cs_success=:
14717   exec 5>/dev/null
14718   $SHELL $CONFIG_STATUS || ac_cs_success=false
14719   exec 5>>config.log
14720   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
14721   # would make configure fail if this is the last instruction.
14722   $ac_cs_success || { (exit 1); exit 1; }
14723 fi
14724
14725
14726 if test "$have_x" = "no"
14727 then
14728   echo
14729   echo "*** Warning: X development files not found. Wine will be built without"
14730   echo "*** X support, which currently does not work, and would probably not be"
14731   echo "*** what you want anyway. You will need to install devel packages of"
14732   echo "*** Xlib/Xfree86 at the very least."
14733 fi
14734
14735 if test "$ac_cv_lib_ncurses_resizeterm" = "no" -a "$ac_cv_lib_ncurses_waddch" = "yes"
14736 then
14737   echo
14738   echo "*** Warning: resizeterm not found in ncurses. Wine will be built without"
14739   echo "*** terminal resize support. Consider upgrading ncurses."
14740 fi
14741
14742 if test "$wine_cv_libc_reentrant" = "no"
14743 then
14744   echo
14745   echo "*** Warning: non-reentrant libc detected. Wine will be built without"
14746   echo "*** threading support. Consider upgrading libc to a more recent"
14747   echo "*** reentrant version of libc."
14748 fi
14749
14750 if test "$have_x" = "yes" -a "$wine_cv_x_reentrant" != "yes"
14751 then
14752   echo
14753   echo "*** Warning: non-reentrant X11 library detected. Multi-threaded"
14754   echo "*** applications won't work properly. You should upgrade your X11 library."
14755 fi
14756
14757 if test "$wine_cv_opengl_version_OK" = "no"
14758 then
14759   echo
14760   echo "*** Warning: old Mesa headers detected. Wine will be built without Direct3D"
14761   echo "*** support. Consider upgrading your Mesa libraries (http://www.mesa3d.org/)."
14762 fi
14763
14764 if test "$wine_cv_opengl_version_threadsafe" = "yes" -a "x$enable_opengl" = "x"
14765 then
14766   echo
14767   echo "*** Warning: the OpenGL version you have installed relies on libpthread for"
14768   echo "*** thread-safety. To prevent crashes, OpenGL support has been removed."
14769   echo "*** A fix for glibc 2.1.3 that seems to work is included in this version of Wine,"
14770   echo "*** start configure with '--enable-opengl' to force OpenGL support."
14771 fi
14772
14773 if test "$wine_cv_opengl_version_threadsafe" = "yes" -a "x$enable_opengl" = "xyes"
14774 then
14775   echo
14776   echo "*** Warning: you explicitly linked in a thread-safe OpenGL version. If you"
14777   echo "*** experience unusual crashes on DirectDraw games, try first to disable OpenGL"
14778   echo "*** support before reporting bugs."
14779 fi
14780
14781 if test "$wine_cv_warn_cups_h" = "yes"
14782 then
14783   echo
14784   echo "*** Note: You have cups runtime libraries, but no development"
14785   echo "*** libraries. Install the cups-devel package or whichever package"
14786   echo "*** contains cups.h to enable CUPS support in Wine."
14787 fi
14788
14789 if test "$wine_cv_msg_freetype" = "yes"
14790 then
14791   echo
14792   echo "*** Note: Your system appears to have the FreeType 2 runtime libraries"
14793   echo "*** installed, but 'freetype-config' is not in your PATH. Install the"
14794   echo "*** freetype-devel package (or its equivalent on your distribution) to"
14795   echo "*** enable Wine to use TrueType fonts."
14796 fi
14797
14798 echo
14799 echo "Configure finished.  Do 'make depend && make' to compile Wine."
14800 echo
14801