Always close fd when reading super block.
[wine] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.53 for Wine 20020411.
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='20020411'
258 PACKAGE_STRING='Wine 20020411'
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 20020411 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   --target=TARGET   configure for building compilers for TARGET [HOST]
824 _ACEOF
825 fi
826
827 if test -n "$ac_init_help"; then
828   case $ac_init_help in
829      short | recursive ) echo "Configuration of Wine 20020411:";;
830    esac
831   cat <<\_ACEOF
832
833 Optional Features:
834   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
835   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
836   --disable-debug         compile out all debugging messages
837   --disable-trace         compile out TRACE messages
838   --enable-opengl         force usage of OpenGL even if the latter is
839                           thread-safe via pthread
840
841 Optional Packages:
842   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
843   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
844   --without-curses        do not use curses
845   --without-reentrant-x   compile for use with non-reentrant X libraries
846   --with-x                use the X Window System
847
848 Some influential environment variables:
849   CC          C compiler command
850   CFLAGS      C compiler flags
851   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
852               nonstandard directory <lib dir>
853   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
854               headers in a nonstandard directory <include dir>
855   CPP         C preprocessor
856
857 Use these variables to override the choices made by `configure' or to help
858 it to find libraries and programs with nonstandard names/locations.
859
860 _ACEOF
861 fi
862
863 if test "$ac_init_help" = "recursive"; then
864   # If there are subdirs, report their specific --help.
865   ac_popdir=`pwd`
866   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
867     test -d $ac_dir || continue
868     ac_builddir=.
869
870 if test "$ac_dir" != .; then
871   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
872   # A "../" for each directory in $ac_dir_suffix.
873   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
874 else
875   ac_dir_suffix= ac_top_builddir=
876 fi
877
878 case $srcdir in
879   .)  # No --srcdir option.  We are building in place.
880     ac_srcdir=.
881     if test -z "$ac_top_builddir"; then
882        ac_top_srcdir=.
883     else
884        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
885     fi ;;
886   [\\/]* | ?:[\\/]* )  # Absolute path.
887     ac_srcdir=$srcdir$ac_dir_suffix;
888     ac_top_srcdir=$srcdir ;;
889   *) # Relative path.
890     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
891     ac_top_srcdir=$ac_top_builddir$srcdir ;;
892 esac
893 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
894 # absolute.
895 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
896 ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
897 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
898 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
899
900     cd $ac_dir
901     # Check for guested configure; otherwise get Cygnus style configure.
902     if test -f $ac_srcdir/configure.gnu; then
903       echo
904       $SHELL $ac_srcdir/configure.gnu  --help=recursive
905     elif test -f $ac_srcdir/configure; then
906       echo
907       $SHELL $ac_srcdir/configure  --help=recursive
908     elif test -f $ac_srcdir/configure.ac ||
909            test -f $ac_srcdir/configure.in; then
910       echo
911       $ac_configure --help
912     else
913       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
914     fi
915     cd $ac_popdir
916   done
917 fi
918
919 test -n "$ac_init_help" && exit 0
920 if $ac_init_version; then
921   cat <<\_ACEOF
922 Wine configure 20020411
923 generated by GNU Autoconf 2.53
924
925 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
926 Free Software Foundation, Inc.
927 This configure script is free software; the Free Software Foundation
928 gives unlimited permission to copy, distribute and modify it.
929 _ACEOF
930   exit 0
931 fi
932 exec 5>config.log
933 cat >&5 <<_ACEOF
934 This file contains any messages produced by compilers while
935 running configure, to aid debugging if configure makes a mistake.
936
937 It was created by Wine $as_me 20020411, which was
938 generated by GNU Autoconf 2.53.  Invocation command line was
939
940   $ $0 $@
941
942 _ACEOF
943 {
944 cat <<_ASUNAME
945 ## --------- ##
946 ## Platform. ##
947 ## --------- ##
948
949 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
950 uname -m = `(uname -m) 2>/dev/null || echo unknown`
951 uname -r = `(uname -r) 2>/dev/null || echo unknown`
952 uname -s = `(uname -s) 2>/dev/null || echo unknown`
953 uname -v = `(uname -v) 2>/dev/null || echo unknown`
954
955 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
956 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
957
958 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
959 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
960 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
961 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
962 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
963 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
964 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
965
966 _ASUNAME
967
968 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
969 for as_dir in $PATH
970 do
971   IFS=$as_save_IFS
972   test -z "$as_dir" && as_dir=.
973   echo "PATH: $as_dir"
974 done
975
976 } >&5
977
978 cat >&5 <<_ACEOF
979
980
981 ## ----------- ##
982 ## Core tests. ##
983 ## ----------- ##
984
985 _ACEOF
986
987
988 # Keep a trace of the command line.
989 # Strip out --no-create and --no-recursion so they do not pile up.
990 # Also quote any args containing shell meta-characters.
991 ac_configure_args=
992 ac_sep=
993 for ac_arg
994 do
995   case $ac_arg in
996   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
997   | --no-cr | --no-c | -n ) continue ;;
998   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
999   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1000     continue ;;
1001   *" "*|*"      "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1002     ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1003   esac
1004   case " $ac_configure_args " in
1005     *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1006     *) ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1007        ac_sep=" " ;;
1008   esac
1009   # Get rid of the leading space.
1010 done
1011
1012 # When interrupted or exit'd, cleanup temporary files, and complete
1013 # config.log.  We remove comments because anyway the quotes in there
1014 # would cause problems or look ugly.
1015 # WARNING: Be sure not to use single quotes in there, as some shells,
1016 # such as our DU 5.0 friend, will then `close' the trap.
1017 trap 'exit_status=$?
1018   # Save into config.log some information that might help in debugging.
1019   {
1020     echo
1021     cat <<\_ASBOX
1022 ## ---------------- ##
1023 ## Cache variables. ##
1024 ## ---------------- ##
1025 _ASBOX
1026     echo
1027     # The following way of writing the cache mishandles newlines in values,
1028 {
1029   (set) 2>&1 |
1030     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1031     *ac_space=\ *)
1032       sed -n \
1033         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1034           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1035       ;;
1036     *)
1037       sed -n \
1038         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1039       ;;
1040     esac;
1041 }
1042     echo
1043     if test -s confdefs.h; then
1044       cat <<\_ASBOX
1045 ## ----------- ##
1046 ## confdefs.h. ##
1047 ## ----------- ##
1048 _ASBOX
1049       echo
1050       sed "/^$/d" confdefs.h
1051       echo
1052     fi
1053     test "$ac_signal" != 0 &&
1054       echo "$as_me: caught signal $ac_signal"
1055     echo "$as_me: exit $exit_status"
1056   } >&5
1057   rm -f core core.* *.core &&
1058   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1059     exit $exit_status
1060      ' 0
1061 for ac_signal in 1 2 13 15; do
1062   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1063 done
1064 ac_signal=0
1065
1066 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1067 rm -rf conftest* confdefs.h
1068 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1069 echo >confdefs.h
1070
1071 # Predefined preprocessor variables.
1072
1073 cat >>confdefs.h <<_ACEOF
1074 #define PACKAGE_NAME "$PACKAGE_NAME"
1075 _ACEOF
1076
1077
1078 cat >>confdefs.h <<_ACEOF
1079 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1080 _ACEOF
1081
1082
1083 cat >>confdefs.h <<_ACEOF
1084 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1085 _ACEOF
1086
1087
1088 cat >>confdefs.h <<_ACEOF
1089 #define PACKAGE_STRING "$PACKAGE_STRING"
1090 _ACEOF
1091
1092
1093 cat >>confdefs.h <<_ACEOF
1094 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1095 _ACEOF
1096
1097
1098 # Let the site file select an alternate cache file if it wants to.
1099 # Prefer explicitly selected file to automatically selected ones.
1100 if test -z "$CONFIG_SITE"; then
1101   if test "x$prefix" != xNONE; then
1102     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1103   else
1104     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1105   fi
1106 fi
1107 for ac_site_file in $CONFIG_SITE; do
1108   if test -r "$ac_site_file"; then
1109     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1110 echo "$as_me: loading site script $ac_site_file" >&6;}
1111     sed 's/^/| /' "$ac_site_file" >&5
1112     . "$ac_site_file"
1113   fi
1114 done
1115
1116 if test -r "$cache_file"; then
1117   # Some versions of bash will fail to source /dev/null (special
1118   # files actually), so we avoid doing that.
1119   if test -f "$cache_file"; then
1120     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1121 echo "$as_me: loading cache $cache_file" >&6;}
1122     case $cache_file in
1123       [\\/]* | ?:[\\/]* ) . $cache_file;;
1124       *)                      . ./$cache_file;;
1125     esac
1126   fi
1127 else
1128   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1129 echo "$as_me: creating cache $cache_file" >&6;}
1130   >$cache_file
1131 fi
1132
1133 # Check that the precious variables saved in the cache have kept the same
1134 # value.
1135 ac_cache_corrupted=false
1136 for ac_var in `(set) 2>&1 |
1137                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1138   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1139   eval ac_new_set=\$ac_env_${ac_var}_set
1140   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1141   eval ac_new_val="\$ac_env_${ac_var}_value"
1142   case $ac_old_set,$ac_new_set in
1143     set,)
1144       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1145 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1146       ac_cache_corrupted=: ;;
1147     ,set)
1148       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1149 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1150       ac_cache_corrupted=: ;;
1151     ,);;
1152     *)
1153       if test "x$ac_old_val" != "x$ac_new_val"; then
1154         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1155 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1156         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1157 echo "$as_me:   former value:  $ac_old_val" >&2;}
1158         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1159 echo "$as_me:   current value: $ac_new_val" >&2;}
1160         ac_cache_corrupted=:
1161       fi;;
1162   esac
1163   # Pass precious variables to config.status.
1164   if test "$ac_new_set" = set; then
1165     case $ac_new_val in
1166     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1167       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1168     *) ac_arg=$ac_var=$ac_new_val ;;
1169     esac
1170     case " $ac_configure_args " in
1171       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1172       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1173     esac
1174   fi
1175 done
1176 if $ac_cache_corrupted; then
1177   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1178 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1179   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1180 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1181    { (exit 1); exit 1; }; }
1182 fi
1183
1184 ac_ext=c
1185 ac_cpp='$CPP $CPPFLAGS'
1186 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1187 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1188 ac_compiler_gnu=$ac_cv_c_compiler_gnu
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
1216 ac_config_headers="$ac_config_headers include/config.h"
1217
1218 ac_aux_dir=
1219 for ac_dir in tools $srcdir/tools; do
1220   if test -f $ac_dir/install-sh; then
1221     ac_aux_dir=$ac_dir
1222     ac_install_sh="$ac_aux_dir/install-sh -c"
1223     break
1224   elif test -f $ac_dir/install.sh; then
1225     ac_aux_dir=$ac_dir
1226     ac_install_sh="$ac_aux_dir/install.sh -c"
1227     break
1228   elif test -f $ac_dir/shtool; then
1229     ac_aux_dir=$ac_dir
1230     ac_install_sh="$ac_aux_dir/shtool install -c"
1231     break
1232   fi
1233 done
1234 if test -z "$ac_aux_dir"; then
1235   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in tools $srcdir/tools" >&5
1236 echo "$as_me: error: cannot find install-sh or install.sh in tools $srcdir/tools" >&2;}
1237    { (exit 1); exit 1; }; }
1238 fi
1239 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1240 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1241 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1242
1243
1244
1245 LIBEXT=so       # library type .so or .a
1246
1247 # Check whether --enable-debug or --disable-debug was given.
1248 if test "${enable_debug+set}" = set; then
1249   enableval="$enable_debug"
1250
1251 fi;
1252 # Check whether --enable-trace or --disable-trace was given.
1253 if test "${enable_trace+set}" = set; then
1254   enableval="$enable_trace"
1255
1256 fi;
1257 # Check whether --enable-opengl or --disable-opengl was given.
1258 if test "${enable_opengl+set}" = set; then
1259   enableval="$enable_opengl"
1260
1261 fi;
1262
1263 # Check whether --with-curses or --without-curses was given.
1264 if test "${with_curses+set}" = set; then
1265   withval="$with_curses"
1266
1267 fi;
1268
1269 # Check whether --with-reentrant-x or --without-reentrant-x was given.
1270 if test "${with_reentrant_x+set}" = set; then
1271   withval="$with_reentrant_x"
1272
1273 fi;
1274
1275
1276 if test "x$enable_debug" = "xno"
1277 then
1278
1279 cat >>confdefs.h <<\_ACEOF
1280 #define NO_DEBUG_MSGS 1
1281 _ACEOF
1282
1283 fi
1284 if test "x$enable_trace" = "xno" -o "x$enable_debug" = "xno"
1285 then
1286
1287 cat >>confdefs.h <<\_ACEOF
1288 #define NO_TRACE_MSGS 1
1289 _ACEOF
1290
1291 fi
1292
1293
1294 # Make sure we can run config.sub.
1295 $ac_config_sub sun4 >/dev/null 2>&1 ||
1296   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1297 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1298    { (exit 1); exit 1; }; }
1299
1300 echo "$as_me:$LINENO: checking build system type" >&5
1301 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1302 if test "${ac_cv_build+set}" = set; then
1303   echo $ECHO_N "(cached) $ECHO_C" >&6
1304 else
1305   ac_cv_build_alias=$build_alias
1306 test -z "$ac_cv_build_alias" &&
1307   ac_cv_build_alias=`$ac_config_guess`
1308 test -z "$ac_cv_build_alias" &&
1309   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1310 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1311    { (exit 1); exit 1; }; }
1312 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1313   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1314 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1315    { (exit 1); exit 1; }; }
1316
1317 fi
1318 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1319 echo "${ECHO_T}$ac_cv_build" >&6
1320 build=$ac_cv_build
1321 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1322 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1323 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1324
1325
1326 echo "$as_me:$LINENO: checking host system type" >&5
1327 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1328 if test "${ac_cv_host+set}" = set; then
1329   echo $ECHO_N "(cached) $ECHO_C" >&6
1330 else
1331   ac_cv_host_alias=$host_alias
1332 test -z "$ac_cv_host_alias" &&
1333   ac_cv_host_alias=$ac_cv_build_alias
1334 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1335   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1336 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1337    { (exit 1); exit 1; }; }
1338
1339 fi
1340 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1341 echo "${ECHO_T}$ac_cv_host" >&6
1342 host=$ac_cv_host
1343 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1344 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1345 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1346
1347
1348 echo "$as_me:$LINENO: checking target system type" >&5
1349 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1350 if test "${ac_cv_target+set}" = set; then
1351   echo $ECHO_N "(cached) $ECHO_C" >&6
1352 else
1353   ac_cv_target_alias=$target_alias
1354 test "x$ac_cv_target_alias" = "x" &&
1355   ac_cv_target_alias=$ac_cv_host_alias
1356 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1357   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1358 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1359    { (exit 1); exit 1; }; }
1360
1361 fi
1362 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1363 echo "${ECHO_T}$ac_cv_target" >&6
1364 target=$ac_cv_target
1365 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1366 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1367 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1368
1369
1370 # The aliases save the names the user supplied, while $host etc.
1371 # will get canonicalized.
1372 test -n "$target_alias" &&
1373   test "$program_prefix$program_suffix$program_transform_name" = \
1374     NONENONEs,x,x, &&
1375   program_prefix=${target_alias}-
1376 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \${MAKE}" >&5
1377 echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
1378 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
1379 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1380   echo $ECHO_N "(cached) $ECHO_C" >&6
1381 else
1382   cat >conftest.make <<\_ACEOF
1383 all:
1384         @echo 'ac_maketemp="${MAKE}"'
1385 _ACEOF
1386 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1387 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1388 if test -n "$ac_maketemp"; then
1389   eval ac_cv_prog_make_${ac_make}_set=yes
1390 else
1391   eval ac_cv_prog_make_${ac_make}_set=no
1392 fi
1393 rm -f conftest.make
1394 fi
1395 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1396   echo "$as_me:$LINENO: result: yes" >&5
1397 echo "${ECHO_T}yes" >&6
1398   SET_MAKE=
1399 else
1400   echo "$as_me:$LINENO: result: no" >&5
1401 echo "${ECHO_T}no" >&6
1402   SET_MAKE="MAKE=${MAKE-make}"
1403 fi
1404
1405 ac_ext=c
1406 ac_cpp='$CPP $CPPFLAGS'
1407 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1408 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1409 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1410 if test -n "$ac_tool_prefix"; then
1411   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1412 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1413 echo "$as_me:$LINENO: checking for $ac_word" >&5
1414 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1415 if test "${ac_cv_prog_CC+set}" = set; then
1416   echo $ECHO_N "(cached) $ECHO_C" >&6
1417 else
1418   if test -n "$CC"; then
1419   ac_cv_prog_CC="$CC" # Let the user override the test.
1420 else
1421 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1422 for as_dir in $PATH
1423 do
1424   IFS=$as_save_IFS
1425   test -z "$as_dir" && as_dir=.
1426   for ac_exec_ext in '' $ac_executable_extensions; do
1427   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1428     ac_cv_prog_CC="${ac_tool_prefix}gcc"
1429     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1430     break 2
1431   fi
1432 done
1433 done
1434
1435 fi
1436 fi
1437 CC=$ac_cv_prog_CC
1438 if test -n "$CC"; then
1439   echo "$as_me:$LINENO: result: $CC" >&5
1440 echo "${ECHO_T}$CC" >&6
1441 else
1442   echo "$as_me:$LINENO: result: no" >&5
1443 echo "${ECHO_T}no" >&6
1444 fi
1445
1446 fi
1447 if test -z "$ac_cv_prog_CC"; then
1448   ac_ct_CC=$CC
1449   # Extract the first word of "gcc", so it can be a program name with args.
1450 set dummy gcc; ac_word=$2
1451 echo "$as_me:$LINENO: checking for $ac_word" >&5
1452 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1453 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1454   echo $ECHO_N "(cached) $ECHO_C" >&6
1455 else
1456   if test -n "$ac_ct_CC"; then
1457   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1458 else
1459 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1460 for as_dir in $PATH
1461 do
1462   IFS=$as_save_IFS
1463   test -z "$as_dir" && as_dir=.
1464   for ac_exec_ext in '' $ac_executable_extensions; do
1465   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1466     ac_cv_prog_ac_ct_CC="gcc"
1467     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1468     break 2
1469   fi
1470 done
1471 done
1472
1473 fi
1474 fi
1475 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1476 if test -n "$ac_ct_CC"; then
1477   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1478 echo "${ECHO_T}$ac_ct_CC" >&6
1479 else
1480   echo "$as_me:$LINENO: result: no" >&5
1481 echo "${ECHO_T}no" >&6
1482 fi
1483
1484   CC=$ac_ct_CC
1485 else
1486   CC="$ac_cv_prog_CC"
1487 fi
1488
1489 if test -z "$CC"; then
1490   if test -n "$ac_tool_prefix"; then
1491   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1492 set dummy ${ac_tool_prefix}cc; ac_word=$2
1493 echo "$as_me:$LINENO: checking for $ac_word" >&5
1494 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1495 if test "${ac_cv_prog_CC+set}" = set; then
1496   echo $ECHO_N "(cached) $ECHO_C" >&6
1497 else
1498   if test -n "$CC"; then
1499   ac_cv_prog_CC="$CC" # Let the user override the test.
1500 else
1501 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1502 for as_dir in $PATH
1503 do
1504   IFS=$as_save_IFS
1505   test -z "$as_dir" && as_dir=.
1506   for ac_exec_ext in '' $ac_executable_extensions; do
1507   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1508     ac_cv_prog_CC="${ac_tool_prefix}cc"
1509     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1510     break 2
1511   fi
1512 done
1513 done
1514
1515 fi
1516 fi
1517 CC=$ac_cv_prog_CC
1518 if test -n "$CC"; then
1519   echo "$as_me:$LINENO: result: $CC" >&5
1520 echo "${ECHO_T}$CC" >&6
1521 else
1522   echo "$as_me:$LINENO: result: no" >&5
1523 echo "${ECHO_T}no" >&6
1524 fi
1525
1526 fi
1527 if test -z "$ac_cv_prog_CC"; then
1528   ac_ct_CC=$CC
1529   # Extract the first word of "cc", so it can be a program name with args.
1530 set dummy cc; ac_word=$2
1531 echo "$as_me:$LINENO: checking for $ac_word" >&5
1532 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1533 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1534   echo $ECHO_N "(cached) $ECHO_C" >&6
1535 else
1536   if test -n "$ac_ct_CC"; then
1537   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1538 else
1539 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1540 for as_dir in $PATH
1541 do
1542   IFS=$as_save_IFS
1543   test -z "$as_dir" && as_dir=.
1544   for ac_exec_ext in '' $ac_executable_extensions; do
1545   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1546     ac_cv_prog_ac_ct_CC="cc"
1547     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1548     break 2
1549   fi
1550 done
1551 done
1552
1553 fi
1554 fi
1555 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1556 if test -n "$ac_ct_CC"; then
1557   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1558 echo "${ECHO_T}$ac_ct_CC" >&6
1559 else
1560   echo "$as_me:$LINENO: result: no" >&5
1561 echo "${ECHO_T}no" >&6
1562 fi
1563
1564   CC=$ac_ct_CC
1565 else
1566   CC="$ac_cv_prog_CC"
1567 fi
1568
1569 fi
1570 if test -z "$CC"; then
1571   # Extract the first word of "cc", so it can be a program name with args.
1572 set dummy cc; ac_word=$2
1573 echo "$as_me:$LINENO: checking for $ac_word" >&5
1574 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1575 if test "${ac_cv_prog_CC+set}" = set; then
1576   echo $ECHO_N "(cached) $ECHO_C" >&6
1577 else
1578   if test -n "$CC"; then
1579   ac_cv_prog_CC="$CC" # Let the user override the test.
1580 else
1581   ac_prog_rejected=no
1582 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1583 for as_dir in $PATH
1584 do
1585   IFS=$as_save_IFS
1586   test -z "$as_dir" && as_dir=.
1587   for ac_exec_ext in '' $ac_executable_extensions; do
1588   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1589     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1590        ac_prog_rejected=yes
1591        continue
1592      fi
1593     ac_cv_prog_CC="cc"
1594     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1595     break 2
1596   fi
1597 done
1598 done
1599
1600 if test $ac_prog_rejected = yes; then
1601   # We found a bogon in the path, so make sure we never use it.
1602   set dummy $ac_cv_prog_CC
1603   shift
1604   if test $# != 0; then
1605     # We chose a different compiler from the bogus one.
1606     # However, it has the same basename, so the bogon will be chosen
1607     # first if we set CC to just the basename; use the full file name.
1608     shift
1609     set dummy "$as_dir/$ac_word" ${1+"$@"}
1610     shift
1611     ac_cv_prog_CC="$@"
1612   fi
1613 fi
1614 fi
1615 fi
1616 CC=$ac_cv_prog_CC
1617 if test -n "$CC"; then
1618   echo "$as_me:$LINENO: result: $CC" >&5
1619 echo "${ECHO_T}$CC" >&6
1620 else
1621   echo "$as_me:$LINENO: result: no" >&5
1622 echo "${ECHO_T}no" >&6
1623 fi
1624
1625 fi
1626 if test -z "$CC"; then
1627   if test -n "$ac_tool_prefix"; then
1628   for ac_prog in cl
1629   do
1630     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1631 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1632 echo "$as_me:$LINENO: checking for $ac_word" >&5
1633 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1634 if test "${ac_cv_prog_CC+set}" = set; then
1635   echo $ECHO_N "(cached) $ECHO_C" >&6
1636 else
1637   if test -n "$CC"; then
1638   ac_cv_prog_CC="$CC" # Let the user override the test.
1639 else
1640 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1641 for as_dir in $PATH
1642 do
1643   IFS=$as_save_IFS
1644   test -z "$as_dir" && as_dir=.
1645   for ac_exec_ext in '' $ac_executable_extensions; do
1646   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1647     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1648     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1649     break 2
1650   fi
1651 done
1652 done
1653
1654 fi
1655 fi
1656 CC=$ac_cv_prog_CC
1657 if test -n "$CC"; then
1658   echo "$as_me:$LINENO: result: $CC" >&5
1659 echo "${ECHO_T}$CC" >&6
1660 else
1661   echo "$as_me:$LINENO: result: no" >&5
1662 echo "${ECHO_T}no" >&6
1663 fi
1664
1665     test -n "$CC" && break
1666   done
1667 fi
1668 if test -z "$CC"; then
1669   ac_ct_CC=$CC
1670   for ac_prog in cl
1671 do
1672   # Extract the first word of "$ac_prog", so it can be a program name with args.
1673 set dummy $ac_prog; ac_word=$2
1674 echo "$as_me:$LINENO: checking for $ac_word" >&5
1675 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1676 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1677   echo $ECHO_N "(cached) $ECHO_C" >&6
1678 else
1679   if test -n "$ac_ct_CC"; then
1680   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1681 else
1682 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1683 for as_dir in $PATH
1684 do
1685   IFS=$as_save_IFS
1686   test -z "$as_dir" && as_dir=.
1687   for ac_exec_ext in '' $ac_executable_extensions; do
1688   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1689     ac_cv_prog_ac_ct_CC="$ac_prog"
1690     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1691     break 2
1692   fi
1693 done
1694 done
1695
1696 fi
1697 fi
1698 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1699 if test -n "$ac_ct_CC"; then
1700   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1701 echo "${ECHO_T}$ac_ct_CC" >&6
1702 else
1703   echo "$as_me:$LINENO: result: no" >&5
1704 echo "${ECHO_T}no" >&6
1705 fi
1706
1707   test -n "$ac_ct_CC" && break
1708 done
1709
1710   CC=$ac_ct_CC
1711 fi
1712
1713 fi
1714
1715
1716 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH" >&5
1717 echo "$as_me: error: no acceptable C compiler found in \$PATH" >&2;}
1718    { (exit 1); exit 1; }; }
1719
1720 # Provide some information about the compiler.
1721 echo "$as_me:$LINENO:" \
1722      "checking for C compiler version" >&5
1723 ac_compiler=`set X $ac_compile; echo $2`
1724 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1725   (eval $ac_compiler --version </dev/null >&5) 2>&5
1726   ac_status=$?
1727   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1728   (exit $ac_status); }
1729 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1730   (eval $ac_compiler -v </dev/null >&5) 2>&5
1731   ac_status=$?
1732   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1733   (exit $ac_status); }
1734 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1735   (eval $ac_compiler -V </dev/null >&5) 2>&5
1736   ac_status=$?
1737   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1738   (exit $ac_status); }
1739
1740 cat >conftest.$ac_ext <<_ACEOF
1741 #line $LINENO "configure"
1742 #include "confdefs.h"
1743
1744 #ifdef F77_DUMMY_MAIN
1745 #  ifdef __cplusplus
1746      extern "C"
1747 #  endif
1748    int F77_DUMMY_MAIN() { return 1; }
1749 #endif
1750 int
1751 main ()
1752 {
1753
1754   ;
1755   return 0;
1756 }
1757 _ACEOF
1758 ac_clean_files_save=$ac_clean_files
1759 ac_clean_files="$ac_clean_files a.out a.exe"
1760 # Try to create an executable without -o first, disregard a.out.
1761 # It will help us diagnose broken compilers, and finding out an intuition
1762 # of exeext.
1763 echo "$as_me:$LINENO: checking for C compiler default output" >&5
1764 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1765 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1766 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1767   (eval $ac_link_default) 2>&5
1768   ac_status=$?
1769   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1770   (exit $ac_status); }; then
1771   # Find the output, starting from the most likely.  This scheme is
1772 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1773 # resort.
1774
1775 # Be careful to initialize this variable, since it used to be cached.
1776 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1777 ac_cv_exeext=
1778 for ac_file in `ls a_out.exe a.exe conftest.exe 2>/dev/null;
1779                 ls a.out conftest 2>/dev/null;
1780                 ls a.* conftest.* 2>/dev/null`; do
1781   case $ac_file in
1782     *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb | *.xSYM ) ;;
1783     a.out ) # We found the default executable, but exeext='' is most
1784             # certainly right.
1785             break;;
1786     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1787           # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
1788           export ac_cv_exeext
1789           break;;
1790     * ) break;;
1791   esac
1792 done
1793 else
1794   echo "$as_me: failed program was:" >&5
1795 cat conftest.$ac_ext >&5
1796 { { echo "$as_me:$LINENO: error: C compiler cannot create executables" >&5
1797 echo "$as_me: error: C compiler cannot create executables" >&2;}
1798    { (exit 77); exit 77; }; }
1799 fi
1800
1801 ac_exeext=$ac_cv_exeext
1802 echo "$as_me:$LINENO: result: $ac_file" >&5
1803 echo "${ECHO_T}$ac_file" >&6
1804
1805 # Check the compiler produces executables we can run.  If not, either
1806 # the compiler is broken, or we cross compile.
1807 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1808 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1809 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1810 # If not cross compiling, check that we can run a simple program.
1811 if test "$cross_compiling" != yes; then
1812   if { ac_try='./$ac_file'
1813   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1814   (eval $ac_try) 2>&5
1815   ac_status=$?
1816   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1817   (exit $ac_status); }; }; then
1818     cross_compiling=no
1819   else
1820     if test "$cross_compiling" = maybe; then
1821         cross_compiling=yes
1822     else
1823         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1824 If you meant to cross compile, use \`--host'." >&5
1825 echo "$as_me: error: cannot run C compiled programs.
1826 If you meant to cross compile, use \`--host'." >&2;}
1827    { (exit 1); exit 1; }; }
1828     fi
1829   fi
1830 fi
1831 echo "$as_me:$LINENO: result: yes" >&5
1832 echo "${ECHO_T}yes" >&6
1833
1834 rm -f a.out a.exe conftest$ac_cv_exeext
1835 ac_clean_files=$ac_clean_files_save
1836 # Check the compiler produces executables we can run.  If not, either
1837 # the compiler is broken, or we cross compile.
1838 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1839 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1840 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1841 echo "${ECHO_T}$cross_compiling" >&6
1842
1843 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1844 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1845 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1846   (eval $ac_link) 2>&5
1847   ac_status=$?
1848   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1849   (exit $ac_status); }; then
1850   # If both `conftest.exe' and `conftest' are `present' (well, observable)
1851 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
1852 # work properly (i.e., refer to `conftest.exe'), while it won't with
1853 # `rm'.
1854 for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
1855   case $ac_file in
1856     *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
1857     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1858           export ac_cv_exeext
1859           break;;
1860     * ) break;;
1861   esac
1862 done
1863 else
1864   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link" >&5
1865 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link" >&2;}
1866    { (exit 1); exit 1; }; }
1867 fi
1868
1869 rm -f conftest$ac_cv_exeext
1870 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1871 echo "${ECHO_T}$ac_cv_exeext" >&6
1872
1873 rm -f conftest.$ac_ext
1874 EXEEXT=$ac_cv_exeext
1875 ac_exeext=$EXEEXT
1876 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1877 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1878 if test "${ac_cv_objext+set}" = set; then
1879   echo $ECHO_N "(cached) $ECHO_C" >&6
1880 else
1881   cat >conftest.$ac_ext <<_ACEOF
1882 #line $LINENO "configure"
1883 #include "confdefs.h"
1884
1885 #ifdef F77_DUMMY_MAIN
1886 #  ifdef __cplusplus
1887      extern "C"
1888 #  endif
1889    int F77_DUMMY_MAIN() { return 1; }
1890 #endif
1891 int
1892 main ()
1893 {
1894
1895   ;
1896   return 0;
1897 }
1898 _ACEOF
1899 rm -f conftest.o conftest.obj
1900 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1901   (eval $ac_compile) 2>&5
1902   ac_status=$?
1903   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1904   (exit $ac_status); }; then
1905   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1906   case $ac_file in
1907     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;;
1908     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1909        break;;
1910   esac
1911 done
1912 else
1913   echo "$as_me: failed program was:" >&5
1914 cat conftest.$ac_ext >&5
1915 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile" >&5
1916 echo "$as_me: error: cannot compute suffix of object files: cannot compile" >&2;}
1917    { (exit 1); exit 1; }; }
1918 fi
1919
1920 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1921 fi
1922 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1923 echo "${ECHO_T}$ac_cv_objext" >&6
1924 OBJEXT=$ac_cv_objext
1925 ac_objext=$OBJEXT
1926 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1927 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1928 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1929   echo $ECHO_N "(cached) $ECHO_C" >&6
1930 else
1931   cat >conftest.$ac_ext <<_ACEOF
1932 #line $LINENO "configure"
1933 #include "confdefs.h"
1934
1935 #ifdef F77_DUMMY_MAIN
1936 #  ifdef __cplusplus
1937      extern "C"
1938 #  endif
1939    int F77_DUMMY_MAIN() { return 1; }
1940 #endif
1941 int
1942 main ()
1943 {
1944 #ifndef __GNUC__
1945        choke me
1946 #endif
1947
1948   ;
1949   return 0;
1950 }
1951 _ACEOF
1952 rm -f conftest.$ac_objext
1953 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1954   (eval $ac_compile) 2>&5
1955   ac_status=$?
1956   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1957   (exit $ac_status); } &&
1958          { ac_try='test -s conftest.$ac_objext'
1959   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1960   (eval $ac_try) 2>&5
1961   ac_status=$?
1962   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1963   (exit $ac_status); }; }; then
1964   ac_compiler_gnu=yes
1965 else
1966   echo "$as_me: failed program was:" >&5
1967 cat conftest.$ac_ext >&5
1968 ac_compiler_gnu=no
1969 fi
1970 rm -f conftest.$ac_objext conftest.$ac_ext
1971 ac_cv_c_compiler_gnu=$ac_compiler_gnu
1972
1973 fi
1974 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
1975 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1976 GCC=`test $ac_compiler_gnu = yes && echo yes`
1977 ac_test_CFLAGS=${CFLAGS+set}
1978 ac_save_CFLAGS=$CFLAGS
1979 CFLAGS="-g"
1980 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
1981 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1982 if test "${ac_cv_prog_cc_g+set}" = set; then
1983   echo $ECHO_N "(cached) $ECHO_C" >&6
1984 else
1985   cat >conftest.$ac_ext <<_ACEOF
1986 #line $LINENO "configure"
1987 #include "confdefs.h"
1988
1989 #ifdef F77_DUMMY_MAIN
1990 #  ifdef __cplusplus
1991      extern "C"
1992 #  endif
1993    int F77_DUMMY_MAIN() { return 1; }
1994 #endif
1995 int
1996 main ()
1997 {
1998
1999   ;
2000   return 0;
2001 }
2002 _ACEOF
2003 rm -f conftest.$ac_objext
2004 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2005   (eval $ac_compile) 2>&5
2006   ac_status=$?
2007   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2008   (exit $ac_status); } &&
2009          { ac_try='test -s conftest.$ac_objext'
2010   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2011   (eval $ac_try) 2>&5
2012   ac_status=$?
2013   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2014   (exit $ac_status); }; }; then
2015   ac_cv_prog_cc_g=yes
2016 else
2017   echo "$as_me: failed program was:" >&5
2018 cat conftest.$ac_ext >&5
2019 ac_cv_prog_cc_g=no
2020 fi
2021 rm -f conftest.$ac_objext conftest.$ac_ext
2022 fi
2023 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2024 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2025 if test "$ac_test_CFLAGS" = set; then
2026   CFLAGS=$ac_save_CFLAGS
2027 elif test $ac_cv_prog_cc_g = yes; then
2028   if test "$GCC" = yes; then
2029     CFLAGS="-g -O2"
2030   else
2031     CFLAGS="-g"
2032   fi
2033 else
2034   if test "$GCC" = yes; then
2035     CFLAGS="-O2"
2036   else
2037     CFLAGS=
2038   fi
2039 fi
2040 # Some people use a C++ compiler to compile C.  Since we use `exit',
2041 # in C++ we need to declare it.  In case someone uses the same compiler
2042 # for both compiling C and C++ we need to have the C++ compiler decide
2043 # the declaration of exit, since it's the most demanding environment.
2044 cat >conftest.$ac_ext <<_ACEOF
2045 #ifndef __cplusplus
2046   choke me
2047 #endif
2048 _ACEOF
2049 rm -f conftest.$ac_objext
2050 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2051   (eval $ac_compile) 2>&5
2052   ac_status=$?
2053   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2054   (exit $ac_status); } &&
2055          { ac_try='test -s conftest.$ac_objext'
2056   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2057   (eval $ac_try) 2>&5
2058   ac_status=$?
2059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2060   (exit $ac_status); }; }; then
2061   for ac_declaration in \
2062    ''\
2063    '#include <stdlib.h>' \
2064    'extern "C" void std::exit (int) throw (); using std::exit;' \
2065    'extern "C" void std::exit (int); using std::exit;' \
2066    'extern "C" void exit (int) throw ();' \
2067    'extern "C" void exit (int);' \
2068    'void exit (int);'
2069 do
2070   cat >conftest.$ac_ext <<_ACEOF
2071 #line $LINENO "configure"
2072 #include "confdefs.h"
2073 #include <stdlib.h>
2074 $ac_declaration
2075 #ifdef F77_DUMMY_MAIN
2076 #  ifdef __cplusplus
2077      extern "C"
2078 #  endif
2079    int F77_DUMMY_MAIN() { return 1; }
2080 #endif
2081 int
2082 main ()
2083 {
2084 exit (42);
2085   ;
2086   return 0;
2087 }
2088 _ACEOF
2089 rm -f conftest.$ac_objext
2090 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2091   (eval $ac_compile) 2>&5
2092   ac_status=$?
2093   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2094   (exit $ac_status); } &&
2095          { ac_try='test -s conftest.$ac_objext'
2096   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2097   (eval $ac_try) 2>&5
2098   ac_status=$?
2099   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2100   (exit $ac_status); }; }; then
2101   :
2102 else
2103   echo "$as_me: failed program was:" >&5
2104 cat conftest.$ac_ext >&5
2105 continue
2106 fi
2107 rm -f conftest.$ac_objext conftest.$ac_ext
2108   cat >conftest.$ac_ext <<_ACEOF
2109 #line $LINENO "configure"
2110 #include "confdefs.h"
2111 $ac_declaration
2112 #ifdef F77_DUMMY_MAIN
2113 #  ifdef __cplusplus
2114      extern "C"
2115 #  endif
2116    int F77_DUMMY_MAIN() { return 1; }
2117 #endif
2118 int
2119 main ()
2120 {
2121 exit (42);
2122   ;
2123   return 0;
2124 }
2125 _ACEOF
2126 rm -f conftest.$ac_objext
2127 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2128   (eval $ac_compile) 2>&5
2129   ac_status=$?
2130   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2131   (exit $ac_status); } &&
2132          { ac_try='test -s conftest.$ac_objext'
2133   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2134   (eval $ac_try) 2>&5
2135   ac_status=$?
2136   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2137   (exit $ac_status); }; }; then
2138   break
2139 else
2140   echo "$as_me: failed program was:" >&5
2141 cat conftest.$ac_ext >&5
2142 fi
2143 rm -f conftest.$ac_objext conftest.$ac_ext
2144 done
2145 rm -f conftest*
2146 if test -n "$ac_declaration"; then
2147   echo '#ifdef __cplusplus' >>confdefs.h
2148   echo $ac_declaration      >>confdefs.h
2149   echo '#endif'             >>confdefs.h
2150 fi
2151
2152 else
2153   echo "$as_me: failed program was:" >&5
2154 cat conftest.$ac_ext >&5
2155 fi
2156 rm -f conftest.$ac_objext conftest.$ac_ext
2157 ac_ext=c
2158 ac_cpp='$CPP $CPPFLAGS'
2159 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2160 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2161 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2162
2163 ac_ext=c
2164 ac_cpp='$CPP $CPPFLAGS'
2165 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2166 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2167 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2168 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2169 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2170 # On Suns, sometimes $CPP names a directory.
2171 if test -n "$CPP" && test -d "$CPP"; then
2172   CPP=
2173 fi
2174 if test -z "$CPP"; then
2175   if test "${ac_cv_prog_CPP+set}" = set; then
2176   echo $ECHO_N "(cached) $ECHO_C" >&6
2177 else
2178       # Double quotes because CPP needs to be expanded
2179     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2180     do
2181       ac_preproc_ok=false
2182 for ac_c_preproc_warn_flag in '' yes
2183 do
2184   # Use a header file that comes with gcc, so configuring glibc
2185   # with a fresh cross-compiler works.
2186   # On the NeXT, cc -E runs the code through the compiler's parser,
2187   # not just through cpp. "Syntax error" is here to catch this case.
2188   cat >conftest.$ac_ext <<_ACEOF
2189 #line $LINENO "configure"
2190 #include "confdefs.h"
2191 #include <assert.h>
2192                      Syntax error
2193 _ACEOF
2194 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2195   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2196   ac_status=$?
2197   egrep -v '^ *\+' conftest.er1 >conftest.err
2198   rm -f conftest.er1
2199   cat conftest.err >&5
2200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2201   (exit $ac_status); } >/dev/null; then
2202   if test -s conftest.err; then
2203     ac_cpp_err=$ac_c_preproc_warn_flag
2204   else
2205     ac_cpp_err=
2206   fi
2207 else
2208   ac_cpp_err=yes
2209 fi
2210 if test -z "$ac_cpp_err"; then
2211   :
2212 else
2213   echo "$as_me: failed program was:" >&5
2214   cat conftest.$ac_ext >&5
2215   # Broken: fails on valid input.
2216 continue
2217 fi
2218 rm -f conftest.err conftest.$ac_ext
2219
2220   # OK, works on sane cases.  Now check whether non-existent headers
2221   # can be detected and how.
2222   cat >conftest.$ac_ext <<_ACEOF
2223 #line $LINENO "configure"
2224 #include "confdefs.h"
2225 #include <ac_nonexistent.h>
2226 _ACEOF
2227 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2228   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2229   ac_status=$?
2230   egrep -v '^ *\+' conftest.er1 >conftest.err
2231   rm -f conftest.er1
2232   cat conftest.err >&5
2233   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2234   (exit $ac_status); } >/dev/null; then
2235   if test -s conftest.err; then
2236     ac_cpp_err=$ac_c_preproc_warn_flag
2237   else
2238     ac_cpp_err=
2239   fi
2240 else
2241   ac_cpp_err=yes
2242 fi
2243 if test -z "$ac_cpp_err"; then
2244   # Broken: success on invalid input.
2245 continue
2246 else
2247   echo "$as_me: failed program was:" >&5
2248   cat conftest.$ac_ext >&5
2249   # Passes both tests.
2250 ac_preproc_ok=:
2251 break
2252 fi
2253 rm -f conftest.err conftest.$ac_ext
2254
2255 done
2256 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2257 rm -f conftest.err conftest.$ac_ext
2258 if $ac_preproc_ok; then
2259   break
2260 fi
2261
2262     done
2263     ac_cv_prog_CPP=$CPP
2264
2265 fi
2266   CPP=$ac_cv_prog_CPP
2267 else
2268   ac_cv_prog_CPP=$CPP
2269 fi
2270 echo "$as_me:$LINENO: result: $CPP" >&5
2271 echo "${ECHO_T}$CPP" >&6
2272 ac_preproc_ok=false
2273 for ac_c_preproc_warn_flag in '' yes
2274 do
2275   # Use a header file that comes with gcc, so configuring glibc
2276   # with a fresh cross-compiler works.
2277   # On the NeXT, cc -E runs the code through the compiler's parser,
2278   # not just through cpp. "Syntax error" is here to catch this case.
2279   cat >conftest.$ac_ext <<_ACEOF
2280 #line $LINENO "configure"
2281 #include "confdefs.h"
2282 #include <assert.h>
2283                      Syntax error
2284 _ACEOF
2285 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2286   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2287   ac_status=$?
2288   egrep -v '^ *\+' conftest.er1 >conftest.err
2289   rm -f conftest.er1
2290   cat conftest.err >&5
2291   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2292   (exit $ac_status); } >/dev/null; then
2293   if test -s conftest.err; then
2294     ac_cpp_err=$ac_c_preproc_warn_flag
2295   else
2296     ac_cpp_err=
2297   fi
2298 else
2299   ac_cpp_err=yes
2300 fi
2301 if test -z "$ac_cpp_err"; then
2302   :
2303 else
2304   echo "$as_me: failed program was:" >&5
2305   cat conftest.$ac_ext >&5
2306   # Broken: fails on valid input.
2307 continue
2308 fi
2309 rm -f conftest.err conftest.$ac_ext
2310
2311   # OK, works on sane cases.  Now check whether non-existent headers
2312   # can be detected and how.
2313   cat >conftest.$ac_ext <<_ACEOF
2314 #line $LINENO "configure"
2315 #include "confdefs.h"
2316 #include <ac_nonexistent.h>
2317 _ACEOF
2318 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2319   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2320   ac_status=$?
2321   egrep -v '^ *\+' conftest.er1 >conftest.err
2322   rm -f conftest.er1
2323   cat conftest.err >&5
2324   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2325   (exit $ac_status); } >/dev/null; then
2326   if test -s conftest.err; then
2327     ac_cpp_err=$ac_c_preproc_warn_flag
2328   else
2329     ac_cpp_err=
2330   fi
2331 else
2332   ac_cpp_err=yes
2333 fi
2334 if test -z "$ac_cpp_err"; then
2335   # Broken: success on invalid input.
2336 continue
2337 else
2338   echo "$as_me: failed program was:" >&5
2339   cat conftest.$ac_ext >&5
2340   # Passes both tests.
2341 ac_preproc_ok=:
2342 break
2343 fi
2344 rm -f conftest.err conftest.$ac_ext
2345
2346 done
2347 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2348 rm -f conftest.err conftest.$ac_ext
2349 if $ac_preproc_ok; then
2350   :
2351 else
2352   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check" >&5
2353 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
2354    { (exit 1); exit 1; }; }
2355 fi
2356
2357 ac_ext=c
2358 ac_cpp='$CPP $CPPFLAGS'
2359 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2360 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2361 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2362
2363
2364
2365 echo "$as_me:$LINENO: checking for X" >&5
2366 echo $ECHO_N "checking for X... $ECHO_C" >&6
2367
2368
2369 # Check whether --with-x or --without-x was given.
2370 if test "${with_x+set}" = set; then
2371   withval="$with_x"
2372
2373 fi;
2374 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
2375 if test "x$with_x" = xno; then
2376   # The user explicitly disabled X.
2377   have_x=disabled
2378 else
2379   if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
2380     # Both variables are already set.
2381     have_x=yes
2382   else
2383     if test "${ac_cv_have_x+set}" = set; then
2384   echo $ECHO_N "(cached) $ECHO_C" >&6
2385 else
2386   # One or both of the vars are not set, and there is no cached value.
2387 ac_x_includes=no ac_x_libraries=no
2388 rm -fr conftest.dir
2389 if mkdir conftest.dir; then
2390   cd conftest.dir
2391   # Make sure to not put "make" in the Imakefile rules, since we grep it out.
2392   cat >Imakefile <<'_ACEOF'
2393 acfindx:
2394         @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
2395 _ACEOF
2396   if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
2397     # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2398     eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
2399     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
2400     for ac_extension in a so sl; do
2401       if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
2402          test -f $ac_im_libdir/libX11.$ac_extension; then
2403         ac_im_usrlibdir=$ac_im_libdir; break
2404       fi
2405     done
2406     # Screen out bogus values from the imake configuration.  They are
2407     # bogus both because they are the default anyway, and because
2408     # using them would break gcc on systems where it needs fixed includes.
2409     case $ac_im_incroot in
2410         /usr/include) ;;
2411         *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
2412     esac
2413     case $ac_im_usrlibdir in
2414         /usr/lib | /lib) ;;
2415         *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
2416     esac
2417   fi
2418   cd ..
2419   rm -fr conftest.dir
2420 fi
2421
2422 # Standard set of common directories for X headers.
2423 # Check X11 before X11Rn because it is often a symlink to the current release.
2424 ac_x_header_dirs='
2425 /usr/X11/include
2426 /usr/X11R6/include
2427 /usr/X11R5/include
2428 /usr/X11R4/include
2429
2430 /usr/include/X11
2431 /usr/include/X11R6
2432 /usr/include/X11R5
2433 /usr/include/X11R4
2434
2435 /usr/local/X11/include
2436 /usr/local/X11R6/include
2437 /usr/local/X11R5/include
2438 /usr/local/X11R4/include
2439
2440 /usr/local/include/X11
2441 /usr/local/include/X11R6
2442 /usr/local/include/X11R5
2443 /usr/local/include/X11R4
2444
2445 /usr/X386/include
2446 /usr/x386/include
2447 /usr/XFree86/include/X11
2448
2449 /usr/include
2450 /usr/local/include
2451 /usr/unsupported/include
2452 /usr/athena/include
2453 /usr/local/x11r5/include
2454 /usr/lpp/Xamples/include
2455
2456 /usr/openwin/include
2457 /usr/openwin/share/include'
2458
2459 if test "$ac_x_includes" = no; then
2460   # Guess where to find include files, by looking for Intrinsic.h.
2461   # First, try using that file with no special directory specified.
2462   cat >conftest.$ac_ext <<_ACEOF
2463 #line $LINENO "configure"
2464 #include "confdefs.h"
2465 #include <X11/Intrinsic.h>
2466 _ACEOF
2467 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2468   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2469   ac_status=$?
2470   egrep -v '^ *\+' conftest.er1 >conftest.err
2471   rm -f conftest.er1
2472   cat conftest.err >&5
2473   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2474   (exit $ac_status); } >/dev/null; then
2475   if test -s conftest.err; then
2476     ac_cpp_err=$ac_c_preproc_warn_flag
2477   else
2478     ac_cpp_err=
2479   fi
2480 else
2481   ac_cpp_err=yes
2482 fi
2483 if test -z "$ac_cpp_err"; then
2484   # We can compile using X headers with no special include directory.
2485 ac_x_includes=
2486 else
2487   echo "$as_me: failed program was:" >&5
2488   cat conftest.$ac_ext >&5
2489   for ac_dir in $ac_x_header_dirs; do
2490   if test -r "$ac_dir/X11/Intrinsic.h"; then
2491     ac_x_includes=$ac_dir
2492     break
2493   fi
2494 done
2495 fi
2496 rm -f conftest.err conftest.$ac_ext
2497 fi # $ac_x_includes = no
2498
2499 if test "$ac_x_libraries" = no; then
2500   # Check for the libraries.
2501   # See if we find them without any special options.
2502   # Don't add to $LIBS permanently.
2503   ac_save_LIBS=$LIBS
2504   LIBS="-lXt $LIBS"
2505   cat >conftest.$ac_ext <<_ACEOF
2506 #line $LINENO "configure"
2507 #include "confdefs.h"
2508 #include <X11/Intrinsic.h>
2509 #ifdef F77_DUMMY_MAIN
2510 #  ifdef __cplusplus
2511      extern "C"
2512 #  endif
2513    int F77_DUMMY_MAIN() { return 1; }
2514 #endif
2515 int
2516 main ()
2517 {
2518 XtMalloc (0)
2519   ;
2520   return 0;
2521 }
2522 _ACEOF
2523 rm -f conftest.$ac_objext conftest$ac_exeext
2524 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2525   (eval $ac_link) 2>&5
2526   ac_status=$?
2527   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2528   (exit $ac_status); } &&
2529          { ac_try='test -s conftest$ac_exeext'
2530   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2531   (eval $ac_try) 2>&5
2532   ac_status=$?
2533   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2534   (exit $ac_status); }; }; then
2535   LIBS=$ac_save_LIBS
2536 # We can link X programs with no special library path.
2537 ac_x_libraries=
2538 else
2539   echo "$as_me: failed program was:" >&5
2540 cat conftest.$ac_ext >&5
2541 LIBS=$ac_save_LIBS
2542 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
2543 do
2544   # Don't even attempt the hair of trying to link an X program!
2545   for ac_extension in a so sl; do
2546     if test -r $ac_dir/libXt.$ac_extension; then
2547       ac_x_libraries=$ac_dir
2548       break 2
2549     fi
2550   done
2551 done
2552 fi
2553 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2554 fi # $ac_x_libraries = no
2555
2556 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
2557   # Didn't find X anywhere.  Cache the known absence of X.
2558   ac_cv_have_x="have_x=no"
2559 else
2560   # Record where we found X for the cache.
2561   ac_cv_have_x="have_x=yes \
2562                 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
2563 fi
2564 fi
2565
2566   fi
2567   eval "$ac_cv_have_x"
2568 fi # $with_x != no
2569
2570 if test "$have_x" != yes; then
2571   echo "$as_me:$LINENO: result: $have_x" >&5
2572 echo "${ECHO_T}$have_x" >&6
2573   no_x=yes
2574 else
2575   # If each of the values was on the command line, it overrides each guess.
2576   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
2577   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
2578   # Update the cache value to reflect the command line values.
2579   ac_cv_have_x="have_x=yes \
2580                 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
2581   echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
2582 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
2583 fi
2584
2585 if test "$no_x" = yes; then
2586   # Not all programs may use this symbol, but it does not hurt to define it.
2587
2588 cat >>confdefs.h <<\_ACEOF
2589 #define X_DISPLAY_MISSING 1
2590 _ACEOF
2591
2592   X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
2593 else
2594   if test -n "$x_includes"; then
2595     X_CFLAGS="$X_CFLAGS -I$x_includes"
2596   fi
2597
2598   # It would also be nice to do this for all -L options, not just this one.
2599   if test -n "$x_libraries"; then
2600     X_LIBS="$X_LIBS -L$x_libraries"
2601     # For Solaris; some versions of Sun CC require a space after -R and
2602     # others require no space.  Words are not sufficient . . . .
2603     case `(uname -sr) 2>/dev/null` in
2604     "SunOS 5"*)
2605       echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
2606 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
2607       ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
2608       cat >conftest.$ac_ext <<_ACEOF
2609 #line $LINENO "configure"
2610 #include "confdefs.h"
2611
2612 #ifdef F77_DUMMY_MAIN
2613 #  ifdef __cplusplus
2614      extern "C"
2615 #  endif
2616    int F77_DUMMY_MAIN() { return 1; }
2617 #endif
2618 int
2619 main ()
2620 {
2621
2622   ;
2623   return 0;
2624 }
2625 _ACEOF
2626 rm -f conftest.$ac_objext conftest$ac_exeext
2627 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2628   (eval $ac_link) 2>&5
2629   ac_status=$?
2630   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2631   (exit $ac_status); } &&
2632          { ac_try='test -s conftest$ac_exeext'
2633   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2634   (eval $ac_try) 2>&5
2635   ac_status=$?
2636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2637   (exit $ac_status); }; }; then
2638   ac_R_nospace=yes
2639 else
2640   echo "$as_me: failed program was:" >&5
2641 cat conftest.$ac_ext >&5
2642 ac_R_nospace=no
2643 fi
2644 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2645       if test $ac_R_nospace = yes; then
2646         echo "$as_me:$LINENO: result: no" >&5
2647 echo "${ECHO_T}no" >&6
2648         X_LIBS="$X_LIBS -R$x_libraries"
2649       else
2650         LIBS="$ac_xsave_LIBS -R $x_libraries"
2651         cat >conftest.$ac_ext <<_ACEOF
2652 #line $LINENO "configure"
2653 #include "confdefs.h"
2654
2655 #ifdef F77_DUMMY_MAIN
2656 #  ifdef __cplusplus
2657      extern "C"
2658 #  endif
2659    int F77_DUMMY_MAIN() { return 1; }
2660 #endif
2661 int
2662 main ()
2663 {
2664
2665   ;
2666   return 0;
2667 }
2668 _ACEOF
2669 rm -f conftest.$ac_objext conftest$ac_exeext
2670 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2671   (eval $ac_link) 2>&5
2672   ac_status=$?
2673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2674   (exit $ac_status); } &&
2675          { ac_try='test -s conftest$ac_exeext'
2676   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2677   (eval $ac_try) 2>&5
2678   ac_status=$?
2679   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2680   (exit $ac_status); }; }; then
2681   ac_R_space=yes
2682 else
2683   echo "$as_me: failed program was:" >&5
2684 cat conftest.$ac_ext >&5
2685 ac_R_space=no
2686 fi
2687 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2688         if test $ac_R_space = yes; then
2689           echo "$as_me:$LINENO: result: yes" >&5
2690 echo "${ECHO_T}yes" >&6
2691           X_LIBS="$X_LIBS -R $x_libraries"
2692         else
2693           echo "$as_me:$LINENO: result: neither works" >&5
2694 echo "${ECHO_T}neither works" >&6
2695         fi
2696       fi
2697       LIBS=$ac_xsave_LIBS
2698     esac
2699   fi
2700
2701   # Check for system-dependent libraries X programs must link with.
2702   # Do this before checking for the system-independent R6 libraries
2703   # (-lICE), since we may need -lsocket or whatever for X linking.
2704
2705   if test "$ISC" = yes; then
2706     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
2707   else
2708     # Martyn Johnson says this is needed for Ultrix, if the X
2709     # libraries were built with DECnet support.  And Karl Berry says
2710     # the Alpha needs dnet_stub (dnet does not exist).
2711     ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
2712     cat >conftest.$ac_ext <<_ACEOF
2713 #line $LINENO "configure"
2714 #include "confdefs.h"
2715
2716 /* Override any gcc2 internal prototype to avoid an error.  */
2717 #ifdef __cplusplus
2718 extern "C"
2719 #endif
2720 /* We use char because int might match the return type of a gcc2
2721    builtin and then its argument prototype would still apply.  */
2722 char XOpenDisplay ();
2723 #ifdef F77_DUMMY_MAIN
2724 #  ifdef __cplusplus
2725      extern "C"
2726 #  endif
2727    int F77_DUMMY_MAIN() { return 1; }
2728 #endif
2729 int
2730 main ()
2731 {
2732 XOpenDisplay ();
2733   ;
2734   return 0;
2735 }
2736 _ACEOF
2737 rm -f conftest.$ac_objext conftest$ac_exeext
2738 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2739   (eval $ac_link) 2>&5
2740   ac_status=$?
2741   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2742   (exit $ac_status); } &&
2743          { ac_try='test -s conftest$ac_exeext'
2744   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2745   (eval $ac_try) 2>&5
2746   ac_status=$?
2747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2748   (exit $ac_status); }; }; then
2749   :
2750 else
2751   echo "$as_me: failed program was:" >&5
2752 cat conftest.$ac_ext >&5
2753 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
2754 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
2755 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
2756   echo $ECHO_N "(cached) $ECHO_C" >&6
2757 else
2758   ac_check_lib_save_LIBS=$LIBS
2759 LIBS="-ldnet  $LIBS"
2760 cat >conftest.$ac_ext <<_ACEOF
2761 #line $LINENO "configure"
2762 #include "confdefs.h"
2763
2764 /* Override any gcc2 internal prototype to avoid an error.  */
2765 #ifdef __cplusplus
2766 extern "C"
2767 #endif
2768 /* We use char because int might match the return type of a gcc2
2769    builtin and then its argument prototype would still apply.  */
2770 char dnet_ntoa ();
2771 #ifdef F77_DUMMY_MAIN
2772 #  ifdef __cplusplus
2773      extern "C"
2774 #  endif
2775    int F77_DUMMY_MAIN() { return 1; }
2776 #endif
2777 int
2778 main ()
2779 {
2780 dnet_ntoa ();
2781   ;
2782   return 0;
2783 }
2784 _ACEOF
2785 rm -f conftest.$ac_objext conftest$ac_exeext
2786 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2787   (eval $ac_link) 2>&5
2788   ac_status=$?
2789   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2790   (exit $ac_status); } &&
2791          { ac_try='test -s conftest$ac_exeext'
2792   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2793   (eval $ac_try) 2>&5
2794   ac_status=$?
2795   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2796   (exit $ac_status); }; }; then
2797   ac_cv_lib_dnet_dnet_ntoa=yes
2798 else
2799   echo "$as_me: failed program was:" >&5
2800 cat conftest.$ac_ext >&5
2801 ac_cv_lib_dnet_dnet_ntoa=no
2802 fi
2803 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2804 LIBS=$ac_check_lib_save_LIBS
2805 fi
2806 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
2807 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
2808 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
2809   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
2810 fi
2811
2812     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
2813       echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
2814 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
2815 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
2816   echo $ECHO_N "(cached) $ECHO_C" >&6
2817 else
2818   ac_check_lib_save_LIBS=$LIBS
2819 LIBS="-ldnet_stub  $LIBS"
2820 cat >conftest.$ac_ext <<_ACEOF
2821 #line $LINENO "configure"
2822 #include "confdefs.h"
2823
2824 /* Override any gcc2 internal prototype to avoid an error.  */
2825 #ifdef __cplusplus
2826 extern "C"
2827 #endif
2828 /* We use char because int might match the return type of a gcc2
2829    builtin and then its argument prototype would still apply.  */
2830 char dnet_ntoa ();
2831 #ifdef F77_DUMMY_MAIN
2832 #  ifdef __cplusplus
2833      extern "C"
2834 #  endif
2835    int F77_DUMMY_MAIN() { return 1; }
2836 #endif
2837 int
2838 main ()
2839 {
2840 dnet_ntoa ();
2841   ;
2842   return 0;
2843 }
2844 _ACEOF
2845 rm -f conftest.$ac_objext conftest$ac_exeext
2846 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2847   (eval $ac_link) 2>&5
2848   ac_status=$?
2849   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2850   (exit $ac_status); } &&
2851          { ac_try='test -s conftest$ac_exeext'
2852   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2853   (eval $ac_try) 2>&5
2854   ac_status=$?
2855   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2856   (exit $ac_status); }; }; then
2857   ac_cv_lib_dnet_stub_dnet_ntoa=yes
2858 else
2859   echo "$as_me: failed program was:" >&5
2860 cat conftest.$ac_ext >&5
2861 ac_cv_lib_dnet_stub_dnet_ntoa=no
2862 fi
2863 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2864 LIBS=$ac_check_lib_save_LIBS
2865 fi
2866 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
2867 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
2868 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
2869   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
2870 fi
2871
2872     fi
2873 fi
2874 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2875     LIBS="$ac_xsave_LIBS"
2876
2877     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
2878     # to get the SysV transport functions.
2879     # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
2880     # needs -lnsl.
2881     # The nsl library prevents programs from opening the X display
2882     # on Irix 5.2, according to T.E. Dickey.
2883     # The functions gethostbyname, getservbyname, and inet_addr are
2884     # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
2885     echo "$as_me:$LINENO: checking for gethostbyname" >&5
2886 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
2887 if test "${ac_cv_func_gethostbyname+set}" = set; then
2888   echo $ECHO_N "(cached) $ECHO_C" >&6
2889 else
2890   cat >conftest.$ac_ext <<_ACEOF
2891 #line $LINENO "configure"
2892 #include "confdefs.h"
2893 /* System header to define __stub macros and hopefully few prototypes,
2894     which can conflict with char gethostbyname (); below.  */
2895 #include <assert.h>
2896 /* Override any gcc2 internal prototype to avoid an error.  */
2897 #ifdef __cplusplus
2898 extern "C"
2899 #endif
2900 /* We use char because int might match the return type of a gcc2
2901    builtin and then its argument prototype would still apply.  */
2902 char gethostbyname ();
2903 char (*f) ();
2904
2905 #ifdef F77_DUMMY_MAIN
2906 #  ifdef __cplusplus
2907      extern "C"
2908 #  endif
2909    int F77_DUMMY_MAIN() { return 1; }
2910 #endif
2911 int
2912 main ()
2913 {
2914 /* The GNU C library defines this for functions which it implements
2915     to always fail with ENOSYS.  Some functions are actually named
2916     something starting with __ and the normal name is an alias.  */
2917 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
2918 choke me
2919 #else
2920 f = gethostbyname;
2921 #endif
2922
2923   ;
2924   return 0;
2925 }
2926 _ACEOF
2927 rm -f conftest.$ac_objext conftest$ac_exeext
2928 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2929   (eval $ac_link) 2>&5
2930   ac_status=$?
2931   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2932   (exit $ac_status); } &&
2933          { ac_try='test -s conftest$ac_exeext'
2934   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2935   (eval $ac_try) 2>&5
2936   ac_status=$?
2937   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2938   (exit $ac_status); }; }; then
2939   ac_cv_func_gethostbyname=yes
2940 else
2941   echo "$as_me: failed program was:" >&5
2942 cat conftest.$ac_ext >&5
2943 ac_cv_func_gethostbyname=no
2944 fi
2945 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2946 fi
2947 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
2948 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
2949
2950     if test $ac_cv_func_gethostbyname = no; then
2951       echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
2952 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
2953 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
2954   echo $ECHO_N "(cached) $ECHO_C" >&6
2955 else
2956   ac_check_lib_save_LIBS=$LIBS
2957 LIBS="-lnsl  $LIBS"
2958 cat >conftest.$ac_ext <<_ACEOF
2959 #line $LINENO "configure"
2960 #include "confdefs.h"
2961
2962 /* Override any gcc2 internal prototype to avoid an error.  */
2963 #ifdef __cplusplus
2964 extern "C"
2965 #endif
2966 /* We use char because int might match the return type of a gcc2
2967    builtin and then its argument prototype would still apply.  */
2968 char gethostbyname ();
2969 #ifdef F77_DUMMY_MAIN
2970 #  ifdef __cplusplus
2971      extern "C"
2972 #  endif
2973    int F77_DUMMY_MAIN() { return 1; }
2974 #endif
2975 int
2976 main ()
2977 {
2978 gethostbyname ();
2979   ;
2980   return 0;
2981 }
2982 _ACEOF
2983 rm -f conftest.$ac_objext conftest$ac_exeext
2984 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2985   (eval $ac_link) 2>&5
2986   ac_status=$?
2987   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2988   (exit $ac_status); } &&
2989          { ac_try='test -s conftest$ac_exeext'
2990   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2991   (eval $ac_try) 2>&5
2992   ac_status=$?
2993   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2994   (exit $ac_status); }; }; then
2995   ac_cv_lib_nsl_gethostbyname=yes
2996 else
2997   echo "$as_me: failed program was:" >&5
2998 cat conftest.$ac_ext >&5
2999 ac_cv_lib_nsl_gethostbyname=no
3000 fi
3001 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3002 LIBS=$ac_check_lib_save_LIBS
3003 fi
3004 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
3005 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
3006 if test $ac_cv_lib_nsl_gethostbyname = yes; then
3007   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
3008 fi
3009
3010       if test $ac_cv_lib_nsl_gethostbyname = no; then
3011         echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
3012 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
3013 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
3014   echo $ECHO_N "(cached) $ECHO_C" >&6
3015 else
3016   ac_check_lib_save_LIBS=$LIBS
3017 LIBS="-lbsd  $LIBS"
3018 cat >conftest.$ac_ext <<_ACEOF
3019 #line $LINENO "configure"
3020 #include "confdefs.h"
3021
3022 /* Override any gcc2 internal prototype to avoid an error.  */
3023 #ifdef __cplusplus
3024 extern "C"
3025 #endif
3026 /* We use char because int might match the return type of a gcc2
3027    builtin and then its argument prototype would still apply.  */
3028 char gethostbyname ();
3029 #ifdef F77_DUMMY_MAIN
3030 #  ifdef __cplusplus
3031      extern "C"
3032 #  endif
3033    int F77_DUMMY_MAIN() { return 1; }
3034 #endif
3035 int
3036 main ()
3037 {
3038 gethostbyname ();
3039   ;
3040   return 0;
3041 }
3042 _ACEOF
3043 rm -f conftest.$ac_objext conftest$ac_exeext
3044 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3045   (eval $ac_link) 2>&5
3046   ac_status=$?
3047   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3048   (exit $ac_status); } &&
3049          { ac_try='test -s conftest$ac_exeext'
3050   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3051   (eval $ac_try) 2>&5
3052   ac_status=$?
3053   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3054   (exit $ac_status); }; }; then
3055   ac_cv_lib_bsd_gethostbyname=yes
3056 else
3057   echo "$as_me: failed program was:" >&5
3058 cat conftest.$ac_ext >&5
3059 ac_cv_lib_bsd_gethostbyname=no
3060 fi
3061 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3062 LIBS=$ac_check_lib_save_LIBS
3063 fi
3064 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
3065 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
3066 if test $ac_cv_lib_bsd_gethostbyname = yes; then
3067   X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
3068 fi
3069
3070       fi
3071     fi
3072
3073     # lieder@skyler.mavd.honeywell.com says without -lsocket,
3074     # socket/setsockopt and other routines are undefined under SCO ODT
3075     # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
3076     # on later versions), says Simon Leinen: it contains gethostby*
3077     # variants that don't use the nameserver (or something).  -lsocket
3078     # must be given before -lnsl if both are needed.  We assume that
3079     # if connect needs -lnsl, so does gethostbyname.
3080     echo "$as_me:$LINENO: checking for connect" >&5
3081 echo $ECHO_N "checking for connect... $ECHO_C" >&6
3082 if test "${ac_cv_func_connect+set}" = set; then
3083   echo $ECHO_N "(cached) $ECHO_C" >&6
3084 else
3085   cat >conftest.$ac_ext <<_ACEOF
3086 #line $LINENO "configure"
3087 #include "confdefs.h"
3088 /* System header to define __stub macros and hopefully few prototypes,
3089     which can conflict with char connect (); below.  */
3090 #include <assert.h>
3091 /* Override any gcc2 internal prototype to avoid an error.  */
3092 #ifdef __cplusplus
3093 extern "C"
3094 #endif
3095 /* We use char because int might match the return type of a gcc2
3096    builtin and then its argument prototype would still apply.  */
3097 char connect ();
3098 char (*f) ();
3099
3100 #ifdef F77_DUMMY_MAIN
3101 #  ifdef __cplusplus
3102      extern "C"
3103 #  endif
3104    int F77_DUMMY_MAIN() { return 1; }
3105 #endif
3106 int
3107 main ()
3108 {
3109 /* The GNU C library defines this for functions which it implements
3110     to always fail with ENOSYS.  Some functions are actually named
3111     something starting with __ and the normal name is an alias.  */
3112 #if defined (__stub_connect) || defined (__stub___connect)
3113 choke me
3114 #else
3115 f = connect;
3116 #endif
3117
3118   ;
3119   return 0;
3120 }
3121 _ACEOF
3122 rm -f conftest.$ac_objext conftest$ac_exeext
3123 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3124   (eval $ac_link) 2>&5
3125   ac_status=$?
3126   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3127   (exit $ac_status); } &&
3128          { ac_try='test -s conftest$ac_exeext'
3129   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3130   (eval $ac_try) 2>&5
3131   ac_status=$?
3132   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3133   (exit $ac_status); }; }; then
3134   ac_cv_func_connect=yes
3135 else
3136   echo "$as_me: failed program was:" >&5
3137 cat conftest.$ac_ext >&5
3138 ac_cv_func_connect=no
3139 fi
3140 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3141 fi
3142 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
3143 echo "${ECHO_T}$ac_cv_func_connect" >&6
3144
3145     if test $ac_cv_func_connect = no; then
3146       echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
3147 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
3148 if test "${ac_cv_lib_socket_connect+set}" = set; then
3149   echo $ECHO_N "(cached) $ECHO_C" >&6
3150 else
3151   ac_check_lib_save_LIBS=$LIBS
3152 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
3153 cat >conftest.$ac_ext <<_ACEOF
3154 #line $LINENO "configure"
3155 #include "confdefs.h"
3156
3157 /* Override any gcc2 internal prototype to avoid an error.  */
3158 #ifdef __cplusplus
3159 extern "C"
3160 #endif
3161 /* We use char because int might match the return type of a gcc2
3162    builtin and then its argument prototype would still apply.  */
3163 char connect ();
3164 #ifdef F77_DUMMY_MAIN
3165 #  ifdef __cplusplus
3166      extern "C"
3167 #  endif
3168    int F77_DUMMY_MAIN() { return 1; }
3169 #endif
3170 int
3171 main ()
3172 {
3173 connect ();
3174   ;
3175   return 0;
3176 }
3177 _ACEOF
3178 rm -f conftest.$ac_objext conftest$ac_exeext
3179 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3180   (eval $ac_link) 2>&5
3181   ac_status=$?
3182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3183   (exit $ac_status); } &&
3184          { ac_try='test -s conftest$ac_exeext'
3185   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3186   (eval $ac_try) 2>&5
3187   ac_status=$?
3188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3189   (exit $ac_status); }; }; then
3190   ac_cv_lib_socket_connect=yes
3191 else
3192   echo "$as_me: failed program was:" >&5
3193 cat conftest.$ac_ext >&5
3194 ac_cv_lib_socket_connect=no
3195 fi
3196 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3197 LIBS=$ac_check_lib_save_LIBS
3198 fi
3199 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
3200 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
3201 if test $ac_cv_lib_socket_connect = yes; then
3202   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
3203 fi
3204
3205     fi
3206
3207     # Guillermo Gomez says -lposix is necessary on A/UX.
3208     echo "$as_me:$LINENO: checking for remove" >&5
3209 echo $ECHO_N "checking for remove... $ECHO_C" >&6
3210 if test "${ac_cv_func_remove+set}" = set; then
3211   echo $ECHO_N "(cached) $ECHO_C" >&6
3212 else
3213   cat >conftest.$ac_ext <<_ACEOF
3214 #line $LINENO "configure"
3215 #include "confdefs.h"
3216 /* System header to define __stub macros and hopefully few prototypes,
3217     which can conflict with char remove (); below.  */
3218 #include <assert.h>
3219 /* Override any gcc2 internal prototype to avoid an error.  */
3220 #ifdef __cplusplus
3221 extern "C"
3222 #endif
3223 /* We use char because int might match the return type of a gcc2
3224    builtin and then its argument prototype would still apply.  */
3225 char remove ();
3226 char (*f) ();
3227
3228 #ifdef F77_DUMMY_MAIN
3229 #  ifdef __cplusplus
3230      extern "C"
3231 #  endif
3232    int F77_DUMMY_MAIN() { return 1; }
3233 #endif
3234 int
3235 main ()
3236 {
3237 /* The GNU C library defines this for functions which it implements
3238     to always fail with ENOSYS.  Some functions are actually named
3239     something starting with __ and the normal name is an alias.  */
3240 #if defined (__stub_remove) || defined (__stub___remove)
3241 choke me
3242 #else
3243 f = remove;
3244 #endif
3245
3246   ;
3247   return 0;
3248 }
3249 _ACEOF
3250 rm -f conftest.$ac_objext conftest$ac_exeext
3251 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3252   (eval $ac_link) 2>&5
3253   ac_status=$?
3254   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3255   (exit $ac_status); } &&
3256          { ac_try='test -s conftest$ac_exeext'
3257   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3258   (eval $ac_try) 2>&5
3259   ac_status=$?
3260   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3261   (exit $ac_status); }; }; then
3262   ac_cv_func_remove=yes
3263 else
3264   echo "$as_me: failed program was:" >&5
3265 cat conftest.$ac_ext >&5
3266 ac_cv_func_remove=no
3267 fi
3268 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3269 fi
3270 echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
3271 echo "${ECHO_T}$ac_cv_func_remove" >&6
3272
3273     if test $ac_cv_func_remove = no; then
3274       echo "$as_me:$LINENO: checking for remove in -lposix" >&5
3275 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
3276 if test "${ac_cv_lib_posix_remove+set}" = set; then
3277   echo $ECHO_N "(cached) $ECHO_C" >&6
3278 else
3279   ac_check_lib_save_LIBS=$LIBS
3280 LIBS="-lposix  $LIBS"
3281 cat >conftest.$ac_ext <<_ACEOF
3282 #line $LINENO "configure"
3283 #include "confdefs.h"
3284
3285 /* Override any gcc2 internal prototype to avoid an error.  */
3286 #ifdef __cplusplus
3287 extern "C"
3288 #endif
3289 /* We use char because int might match the return type of a gcc2
3290    builtin and then its argument prototype would still apply.  */
3291 char remove ();
3292 #ifdef F77_DUMMY_MAIN
3293 #  ifdef __cplusplus
3294      extern "C"
3295 #  endif
3296    int F77_DUMMY_MAIN() { return 1; }
3297 #endif
3298 int
3299 main ()
3300 {
3301 remove ();
3302   ;
3303   return 0;
3304 }
3305 _ACEOF
3306 rm -f conftest.$ac_objext conftest$ac_exeext
3307 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3308   (eval $ac_link) 2>&5
3309   ac_status=$?
3310   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3311   (exit $ac_status); } &&
3312          { ac_try='test -s conftest$ac_exeext'
3313   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3314   (eval $ac_try) 2>&5
3315   ac_status=$?
3316   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3317   (exit $ac_status); }; }; then
3318   ac_cv_lib_posix_remove=yes
3319 else
3320   echo "$as_me: failed program was:" >&5
3321 cat conftest.$ac_ext >&5
3322 ac_cv_lib_posix_remove=no
3323 fi
3324 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3325 LIBS=$ac_check_lib_save_LIBS
3326 fi
3327 echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
3328 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
3329 if test $ac_cv_lib_posix_remove = yes; then
3330   X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
3331 fi
3332
3333     fi
3334
3335     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
3336     echo "$as_me:$LINENO: checking for shmat" >&5
3337 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
3338 if test "${ac_cv_func_shmat+set}" = set; then
3339   echo $ECHO_N "(cached) $ECHO_C" >&6
3340 else
3341   cat >conftest.$ac_ext <<_ACEOF
3342 #line $LINENO "configure"
3343 #include "confdefs.h"
3344 /* System header to define __stub macros and hopefully few prototypes,
3345     which can conflict with char shmat (); below.  */
3346 #include <assert.h>
3347 /* Override any gcc2 internal prototype to avoid an error.  */
3348 #ifdef __cplusplus
3349 extern "C"
3350 #endif
3351 /* We use char because int might match the return type of a gcc2
3352    builtin and then its argument prototype would still apply.  */
3353 char shmat ();
3354 char (*f) ();
3355
3356 #ifdef F77_DUMMY_MAIN
3357 #  ifdef __cplusplus
3358      extern "C"
3359 #  endif
3360    int F77_DUMMY_MAIN() { return 1; }
3361 #endif
3362 int
3363 main ()
3364 {
3365 /* The GNU C library defines this for functions which it implements
3366     to always fail with ENOSYS.  Some functions are actually named
3367     something starting with __ and the normal name is an alias.  */
3368 #if defined (__stub_shmat) || defined (__stub___shmat)
3369 choke me
3370 #else
3371 f = shmat;
3372 #endif
3373
3374   ;
3375   return 0;
3376 }
3377 _ACEOF
3378 rm -f conftest.$ac_objext conftest$ac_exeext
3379 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3380   (eval $ac_link) 2>&5
3381   ac_status=$?
3382   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3383   (exit $ac_status); } &&
3384          { ac_try='test -s conftest$ac_exeext'
3385   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3386   (eval $ac_try) 2>&5
3387   ac_status=$?
3388   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3389   (exit $ac_status); }; }; then
3390   ac_cv_func_shmat=yes
3391 else
3392   echo "$as_me: failed program was:" >&5
3393 cat conftest.$ac_ext >&5
3394 ac_cv_func_shmat=no
3395 fi
3396 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3397 fi
3398 echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
3399 echo "${ECHO_T}$ac_cv_func_shmat" >&6
3400
3401     if test $ac_cv_func_shmat = no; then
3402       echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
3403 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
3404 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
3405   echo $ECHO_N "(cached) $ECHO_C" >&6
3406 else
3407   ac_check_lib_save_LIBS=$LIBS
3408 LIBS="-lipc  $LIBS"
3409 cat >conftest.$ac_ext <<_ACEOF
3410 #line $LINENO "configure"
3411 #include "confdefs.h"
3412
3413 /* Override any gcc2 internal prototype to avoid an error.  */
3414 #ifdef __cplusplus
3415 extern "C"
3416 #endif
3417 /* We use char because int might match the return type of a gcc2
3418    builtin and then its argument prototype would still apply.  */
3419 char shmat ();
3420 #ifdef F77_DUMMY_MAIN
3421 #  ifdef __cplusplus
3422      extern "C"
3423 #  endif
3424    int F77_DUMMY_MAIN() { return 1; }
3425 #endif
3426 int
3427 main ()
3428 {
3429 shmat ();
3430   ;
3431   return 0;
3432 }
3433 _ACEOF
3434 rm -f conftest.$ac_objext conftest$ac_exeext
3435 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3436   (eval $ac_link) 2>&5
3437   ac_status=$?
3438   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3439   (exit $ac_status); } &&
3440          { ac_try='test -s conftest$ac_exeext'
3441   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3442   (eval $ac_try) 2>&5
3443   ac_status=$?
3444   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3445   (exit $ac_status); }; }; then
3446   ac_cv_lib_ipc_shmat=yes
3447 else
3448   echo "$as_me: failed program was:" >&5
3449 cat conftest.$ac_ext >&5
3450 ac_cv_lib_ipc_shmat=no
3451 fi
3452 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3453 LIBS=$ac_check_lib_save_LIBS
3454 fi
3455 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
3456 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
3457 if test $ac_cv_lib_ipc_shmat = yes; then
3458   X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
3459 fi
3460
3461     fi
3462   fi
3463
3464   # Check for libraries that X11R6 Xt/Xaw programs need.
3465   ac_save_LDFLAGS=$LDFLAGS
3466   test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
3467   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
3468   # check for ICE first), but we must link in the order -lSM -lICE or
3469   # we get undefined symbols.  So assume we have SM if we have ICE.
3470   # These have to be linked with before -lX11, unlike the other
3471   # libraries we check for below, so use a different variable.
3472   # John Interrante, Karl Berry
3473   echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
3474 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
3475 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
3476   echo $ECHO_N "(cached) $ECHO_C" >&6
3477 else
3478   ac_check_lib_save_LIBS=$LIBS
3479 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
3480 cat >conftest.$ac_ext <<_ACEOF
3481 #line $LINENO "configure"
3482 #include "confdefs.h"
3483
3484 /* Override any gcc2 internal prototype to avoid an error.  */
3485 #ifdef __cplusplus
3486 extern "C"
3487 #endif
3488 /* We use char because int might match the return type of a gcc2
3489    builtin and then its argument prototype would still apply.  */
3490 char IceConnectionNumber ();
3491 #ifdef F77_DUMMY_MAIN
3492 #  ifdef __cplusplus
3493      extern "C"
3494 #  endif
3495    int F77_DUMMY_MAIN() { return 1; }
3496 #endif
3497 int
3498 main ()
3499 {
3500 IceConnectionNumber ();
3501   ;
3502   return 0;
3503 }
3504 _ACEOF
3505 rm -f conftest.$ac_objext conftest$ac_exeext
3506 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3507   (eval $ac_link) 2>&5
3508   ac_status=$?
3509   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3510   (exit $ac_status); } &&
3511          { ac_try='test -s conftest$ac_exeext'
3512   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3513   (eval $ac_try) 2>&5
3514   ac_status=$?
3515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3516   (exit $ac_status); }; }; then
3517   ac_cv_lib_ICE_IceConnectionNumber=yes
3518 else
3519   echo "$as_me: failed program was:" >&5
3520 cat conftest.$ac_ext >&5
3521 ac_cv_lib_ICE_IceConnectionNumber=no
3522 fi
3523 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3524 LIBS=$ac_check_lib_save_LIBS
3525 fi
3526 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
3527 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
3528 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
3529   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
3530 fi
3531
3532   LDFLAGS=$ac_save_LDFLAGS
3533
3534 fi
3535
3536 for ac_prog in 'bison -y' byacc
3537 do
3538   # Extract the first word of "$ac_prog", so it can be a program name with args.
3539 set dummy $ac_prog; ac_word=$2
3540 echo "$as_me:$LINENO: checking for $ac_word" >&5
3541 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3542 if test "${ac_cv_prog_YACC+set}" = set; then
3543   echo $ECHO_N "(cached) $ECHO_C" >&6
3544 else
3545   if test -n "$YACC"; then
3546   ac_cv_prog_YACC="$YACC" # Let the user override the test.
3547 else
3548 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3549 for as_dir in $PATH
3550 do
3551   IFS=$as_save_IFS
3552   test -z "$as_dir" && as_dir=.
3553   for ac_exec_ext in '' $ac_executable_extensions; do
3554   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3555     ac_cv_prog_YACC="$ac_prog"
3556     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3557     break 2
3558   fi
3559 done
3560 done
3561
3562 fi
3563 fi
3564 YACC=$ac_cv_prog_YACC
3565 if test -n "$YACC"; then
3566   echo "$as_me:$LINENO: result: $YACC" >&5
3567 echo "${ECHO_T}$YACC" >&6
3568 else
3569   echo "$as_me:$LINENO: result: no" >&5
3570 echo "${ECHO_T}no" >&6
3571 fi
3572
3573   test -n "$YACC" && break
3574 done
3575 test -n "$YACC" || YACC="yacc"
3576
3577 for ac_prog in flex lex
3578 do
3579   # Extract the first word of "$ac_prog", so it can be a program name with args.
3580 set dummy $ac_prog; ac_word=$2
3581 echo "$as_me:$LINENO: checking for $ac_word" >&5
3582 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3583 if test "${ac_cv_prog_LEX+set}" = set; then
3584   echo $ECHO_N "(cached) $ECHO_C" >&6
3585 else
3586   if test -n "$LEX"; then
3587   ac_cv_prog_LEX="$LEX" # Let the user override the test.
3588 else
3589 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3590 for as_dir in $PATH
3591 do
3592   IFS=$as_save_IFS
3593   test -z "$as_dir" && as_dir=.
3594   for ac_exec_ext in '' $ac_executable_extensions; do
3595   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3596     ac_cv_prog_LEX="$ac_prog"
3597     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3598     break 2
3599   fi
3600 done
3601 done
3602
3603 fi
3604 fi
3605 LEX=$ac_cv_prog_LEX
3606 if test -n "$LEX"; then
3607   echo "$as_me:$LINENO: result: $LEX" >&5
3608 echo "${ECHO_T}$LEX" >&6
3609 else
3610   echo "$as_me:$LINENO: result: no" >&5
3611 echo "${ECHO_T}no" >&6
3612 fi
3613
3614   test -n "$LEX" && break
3615 done
3616 test -n "$LEX" || LEX=":"
3617
3618 if test -z "$LEXLIB"
3619 then
3620   echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
3621 echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
3622 if test "${ac_cv_lib_fl_yywrap+set}" = set; then
3623   echo $ECHO_N "(cached) $ECHO_C" >&6
3624 else
3625   ac_check_lib_save_LIBS=$LIBS
3626 LIBS="-lfl  $LIBS"
3627 cat >conftest.$ac_ext <<_ACEOF
3628 #line $LINENO "configure"
3629 #include "confdefs.h"
3630
3631 /* Override any gcc2 internal prototype to avoid an error.  */
3632 #ifdef __cplusplus
3633 extern "C"
3634 #endif
3635 /* We use char because int might match the return type of a gcc2
3636    builtin and then its argument prototype would still apply.  */
3637 char yywrap ();
3638 #ifdef F77_DUMMY_MAIN
3639 #  ifdef __cplusplus
3640      extern "C"
3641 #  endif
3642    int F77_DUMMY_MAIN() { return 1; }
3643 #endif
3644 int
3645 main ()
3646 {
3647 yywrap ();
3648   ;
3649   return 0;
3650 }
3651 _ACEOF
3652 rm -f conftest.$ac_objext conftest$ac_exeext
3653 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3654   (eval $ac_link) 2>&5
3655   ac_status=$?
3656   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3657   (exit $ac_status); } &&
3658          { ac_try='test -s conftest$ac_exeext'
3659   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3660   (eval $ac_try) 2>&5
3661   ac_status=$?
3662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3663   (exit $ac_status); }; }; then
3664   ac_cv_lib_fl_yywrap=yes
3665 else
3666   echo "$as_me: failed program was:" >&5
3667 cat conftest.$ac_ext >&5
3668 ac_cv_lib_fl_yywrap=no
3669 fi
3670 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3671 LIBS=$ac_check_lib_save_LIBS
3672 fi
3673 echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
3674 echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
3675 if test $ac_cv_lib_fl_yywrap = yes; then
3676   LEXLIB="-lfl"
3677 else
3678   echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
3679 echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
3680 if test "${ac_cv_lib_l_yywrap+set}" = set; then
3681   echo $ECHO_N "(cached) $ECHO_C" >&6
3682 else
3683   ac_check_lib_save_LIBS=$LIBS
3684 LIBS="-ll  $LIBS"
3685 cat >conftest.$ac_ext <<_ACEOF
3686 #line $LINENO "configure"
3687 #include "confdefs.h"
3688
3689 /* Override any gcc2 internal prototype to avoid an error.  */
3690 #ifdef __cplusplus
3691 extern "C"
3692 #endif
3693 /* We use char because int might match the return type of a gcc2
3694    builtin and then its argument prototype would still apply.  */
3695 char yywrap ();
3696 #ifdef F77_DUMMY_MAIN
3697 #  ifdef __cplusplus
3698      extern "C"
3699 #  endif
3700    int F77_DUMMY_MAIN() { return 1; }
3701 #endif
3702 int
3703 main ()
3704 {
3705 yywrap ();
3706   ;
3707   return 0;
3708 }
3709 _ACEOF
3710 rm -f conftest.$ac_objext conftest$ac_exeext
3711 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3712   (eval $ac_link) 2>&5
3713   ac_status=$?
3714   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3715   (exit $ac_status); } &&
3716          { ac_try='test -s conftest$ac_exeext'
3717   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3718   (eval $ac_try) 2>&5
3719   ac_status=$?
3720   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3721   (exit $ac_status); }; }; then
3722   ac_cv_lib_l_yywrap=yes
3723 else
3724   echo "$as_me: failed program was:" >&5
3725 cat conftest.$ac_ext >&5
3726 ac_cv_lib_l_yywrap=no
3727 fi
3728 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3729 LIBS=$ac_check_lib_save_LIBS
3730 fi
3731 echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
3732 echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
3733 if test $ac_cv_lib_l_yywrap = yes; then
3734   LEXLIB="-ll"
3735 fi
3736
3737 fi
3738
3739 fi
3740
3741 if test "x$LEX" != "x:"; then
3742   echo "$as_me:$LINENO: checking lex output file root" >&5
3743 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
3744 if test "${ac_cv_prog_lex_root+set}" = set; then
3745   echo $ECHO_N "(cached) $ECHO_C" >&6
3746 else
3747   # The minimal lex program is just a single line: %%.  But some broken lexes
3748 # (Solaris, I think it was) want two %% lines, so accommodate them.
3749 cat >conftest.l <<_ACEOF
3750 %%
3751 %%
3752 _ACEOF
3753 { (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
3754   (eval $LEX conftest.l) 2>&5
3755   ac_status=$?
3756   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3757   (exit $ac_status); }
3758 if test -f lex.yy.c; then
3759   ac_cv_prog_lex_root=lex.yy
3760 elif test -f lexyy.c; then
3761   ac_cv_prog_lex_root=lexyy
3762 else
3763   { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
3764 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
3765    { (exit 1); exit 1; }; }
3766 fi
3767 fi
3768 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
3769 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
3770 rm -f conftest.l
3771 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
3772
3773 echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
3774 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
3775 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
3776   echo $ECHO_N "(cached) $ECHO_C" >&6
3777 else
3778   # POSIX says lex can declare yytext either as a pointer or an array; the
3779 # default is implementation-dependent. Figure out which it is, since
3780 # not all implementations provide the %pointer and %array declarations.
3781 ac_cv_prog_lex_yytext_pointer=no
3782 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
3783 ac_save_LIBS=$LIBS
3784 LIBS="$LIBS $LEXLIB"
3785 cat >conftest.$ac_ext <<_ACEOF
3786 `cat $LEX_OUTPUT_ROOT.c`
3787 _ACEOF
3788 rm -f conftest.$ac_objext conftest$ac_exeext
3789 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3790   (eval $ac_link) 2>&5
3791   ac_status=$?
3792   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3793   (exit $ac_status); } &&
3794          { ac_try='test -s conftest$ac_exeext'
3795   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3796   (eval $ac_try) 2>&5
3797   ac_status=$?
3798   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3799   (exit $ac_status); }; }; then
3800   ac_cv_prog_lex_yytext_pointer=yes
3801 else
3802   echo "$as_me: failed program was:" >&5
3803 cat conftest.$ac_ext >&5
3804 fi
3805 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3806 LIBS=$ac_save_LIBS
3807 rm -f "${LEX_OUTPUT_ROOT}.c"
3808
3809 fi
3810 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
3811 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
3812 if test $ac_cv_prog_lex_yytext_pointer = yes; then
3813
3814 cat >>confdefs.h <<\_ACEOF
3815 #define YYTEXT_POINTER 1
3816 _ACEOF
3817
3818 fi
3819
3820 fi
3821
3822 for ac_prog in $YACC bison yacc
3823 do
3824   # Extract the first word of "$ac_prog", so it can be a program name with args.
3825 set dummy $ac_prog; ac_word=$2
3826 echo "$as_me:$LINENO: checking for $ac_word" >&5
3827 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3828 if test "${ac_cv_prog_XYACC+set}" = set; then
3829   echo $ECHO_N "(cached) $ECHO_C" >&6
3830 else
3831   if test -n "$XYACC"; then
3832   ac_cv_prog_XYACC="$XYACC" # Let the user override the test.
3833 else
3834 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3835 for as_dir in $PATH
3836 do
3837   IFS=$as_save_IFS
3838   test -z "$as_dir" && as_dir=.
3839   for ac_exec_ext in '' $ac_executable_extensions; do
3840   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3841     ac_cv_prog_XYACC="$ac_prog"
3842     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3843     break 2
3844   fi
3845 done
3846 done
3847
3848 fi
3849 fi
3850 XYACC=$ac_cv_prog_XYACC
3851 if test -n "$XYACC"; then
3852   echo "$as_me:$LINENO: result: $XYACC" >&5
3853 echo "${ECHO_T}$XYACC" >&6
3854 else
3855   echo "$as_me:$LINENO: result: no" >&5
3856 echo "${ECHO_T}no" >&6
3857 fi
3858
3859   test -n "$XYACC" && break
3860 done
3861 test -n "$XYACC" || XYACC="none"
3862
3863 if test "$XYACC" = "none"
3864 then
3865   { { echo "$as_me:$LINENO: error: no suitable bison/yacc found. Please install the 'bison' package." >&5
3866 echo "$as_me: error: no suitable bison/yacc found. Please install the 'bison' package." >&2;}
3867    { (exit 1); exit 1; }; }
3868 fi
3869 for ac_prog in $LEX flex lex
3870 do
3871   # Extract the first word of "$ac_prog", so it can be a program name with args.
3872 set dummy $ac_prog; ac_word=$2
3873 echo "$as_me:$LINENO: checking for $ac_word" >&5
3874 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3875 if test "${ac_cv_prog_XLEX+set}" = set; then
3876   echo $ECHO_N "(cached) $ECHO_C" >&6
3877 else
3878   if test -n "$XLEX"; then
3879   ac_cv_prog_XLEX="$XLEX" # Let the user override the test.
3880 else
3881 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3882 for as_dir in $PATH
3883 do
3884   IFS=$as_save_IFS
3885   test -z "$as_dir" && as_dir=.
3886   for ac_exec_ext in '' $ac_executable_extensions; do
3887   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3888     ac_cv_prog_XLEX="$ac_prog"
3889     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3890     break 2
3891   fi
3892 done
3893 done
3894
3895 fi
3896 fi
3897 XLEX=$ac_cv_prog_XLEX
3898 if test -n "$XLEX"; then
3899   echo "$as_me:$LINENO: result: $XLEX" >&5
3900 echo "${ECHO_T}$XLEX" >&6
3901 else
3902   echo "$as_me:$LINENO: result: no" >&5
3903 echo "${ECHO_T}no" >&6
3904 fi
3905
3906   test -n "$XLEX" && break
3907 done
3908 test -n "$XLEX" || XLEX="none"
3909
3910 if test "$XLEX" = "none"
3911 then
3912   { { echo "$as_me:$LINENO: error: no suitable lex found. Please install the 'flex' package." >&5
3913 echo "$as_me: error: no suitable lex found. Please install the 'flex' package." >&2;}
3914    { (exit 1); exit 1; }; }
3915 fi
3916 if test -n "$ac_tool_prefix"; then
3917   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3918 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3919 echo "$as_me:$LINENO: checking for $ac_word" >&5
3920 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3921 if test "${ac_cv_prog_RANLIB+set}" = set; then
3922   echo $ECHO_N "(cached) $ECHO_C" >&6
3923 else
3924   if test -n "$RANLIB"; then
3925   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3926 else
3927 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3928 for as_dir in $PATH
3929 do
3930   IFS=$as_save_IFS
3931   test -z "$as_dir" && as_dir=.
3932   for ac_exec_ext in '' $ac_executable_extensions; do
3933   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3934     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3935     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3936     break 2
3937   fi
3938 done
3939 done
3940
3941 fi
3942 fi
3943 RANLIB=$ac_cv_prog_RANLIB
3944 if test -n "$RANLIB"; then
3945   echo "$as_me:$LINENO: result: $RANLIB" >&5
3946 echo "${ECHO_T}$RANLIB" >&6
3947 else
3948   echo "$as_me:$LINENO: result: no" >&5
3949 echo "${ECHO_T}no" >&6
3950 fi
3951
3952 fi
3953 if test -z "$ac_cv_prog_RANLIB"; then
3954   ac_ct_RANLIB=$RANLIB
3955   # Extract the first word of "ranlib", so it can be a program name with args.
3956 set dummy ranlib; ac_word=$2
3957 echo "$as_me:$LINENO: checking for $ac_word" >&5
3958 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3959 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3960   echo $ECHO_N "(cached) $ECHO_C" >&6
3961 else
3962   if test -n "$ac_ct_RANLIB"; then
3963   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3964 else
3965 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3966 for as_dir in $PATH
3967 do
3968   IFS=$as_save_IFS
3969   test -z "$as_dir" && as_dir=.
3970   for ac_exec_ext in '' $ac_executable_extensions; do
3971   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3972     ac_cv_prog_ac_ct_RANLIB="ranlib"
3973     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3974     break 2
3975   fi
3976 done
3977 done
3978
3979   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3980 fi
3981 fi
3982 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3983 if test -n "$ac_ct_RANLIB"; then
3984   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3985 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3986 else
3987   echo "$as_me:$LINENO: result: no" >&5
3988 echo "${ECHO_T}no" >&6
3989 fi
3990
3991   RANLIB=$ac_ct_RANLIB
3992 else
3993   RANLIB="$ac_cv_prog_RANLIB"
3994 fi
3995
3996 # Find a good install program.  We prefer a C program (faster),
3997 # so one script is as good as another.  But avoid the broken or
3998 # incompatible versions:
3999 # SysV /etc/install, /usr/sbin/install
4000 # SunOS /usr/etc/install
4001 # IRIX /sbin/install
4002 # AIX /bin/install
4003 # AmigaOS /C/install, which installs bootblocks on floppy discs
4004 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4005 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4006 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4007 # ./install, which can be erroneously created by make from ./install.sh.
4008 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4009 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
4010 if test -z "$INSTALL"; then
4011 if test "${ac_cv_path_install+set}" = set; then
4012   echo $ECHO_N "(cached) $ECHO_C" >&6
4013 else
4014   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4015 for as_dir in $PATH
4016 do
4017   IFS=$as_save_IFS
4018   test -z "$as_dir" && as_dir=.
4019   # Account for people who put trailing slashes in PATH elements.
4020 case $as_dir/ in
4021   ./ | .// | /cC/* | \
4022   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4023   /usr/ucb/* ) ;;
4024   *)
4025     # OSF1 and SCO ODT 3.0 have their own names for install.
4026     # Don't use installbsd from OSF since it installs stuff as root
4027     # by default.
4028     for ac_prog in ginstall scoinst install; do
4029       for ac_exec_ext in '' $ac_executable_extensions; do
4030         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4031           if test $ac_prog = install &&
4032             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4033             # AIX install.  It has an incompatible calling convention.
4034             :
4035           elif test $ac_prog = install &&
4036             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4037             # program-specific install script used by HP pwplus--don't use.
4038             :
4039           else
4040             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4041             break 3
4042           fi
4043         fi
4044       done
4045     done
4046     ;;
4047 esac
4048 done
4049
4050
4051 fi
4052   if test "${ac_cv_path_install+set}" = set; then
4053     INSTALL=$ac_cv_path_install
4054   else
4055     # As a last resort, use the slow shell script.  We don't cache a
4056     # path for INSTALL within a source directory, because that will
4057     # break other packages using the cache if that directory is
4058     # removed, or if the path is relative.
4059     INSTALL=$ac_install_sh
4060   fi
4061 fi
4062 echo "$as_me:$LINENO: result: $INSTALL" >&5
4063 echo "${ECHO_T}$INSTALL" >&6
4064
4065 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4066 # It thinks the first close brace ends the variable substitution.
4067 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4068
4069 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4070
4071 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4072
4073 echo "$as_me:$LINENO: checking whether ln -s works" >&5
4074 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4075 LN_S=$as_ln_s
4076 if test "$LN_S" = "ln -s"; then
4077   echo "$as_me:$LINENO: result: yes" >&5
4078 echo "${ECHO_T}yes" >&6
4079 else
4080   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4081 echo "${ECHO_T}no, using $LN_S" >&6
4082 fi
4083
4084 # Extract the first word of "c2man", so it can be a program name with args.
4085 set dummy c2man; ac_word=$2
4086 echo "$as_me:$LINENO: checking for $ac_word" >&5
4087 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4088 if test "${ac_cv_prog_C2MAN+set}" = set; then
4089   echo $ECHO_N "(cached) $ECHO_C" >&6
4090 else
4091   if test -n "$C2MAN"; then
4092   ac_cv_prog_C2MAN="$C2MAN" # Let the user override the test.
4093 else
4094 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4095 for as_dir in $PATH
4096 do
4097   IFS=$as_save_IFS
4098   test -z "$as_dir" && as_dir=.
4099   for ac_exec_ext in '' $ac_executable_extensions; do
4100   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4101     ac_cv_prog_C2MAN="c2man"
4102     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4103     break 2
4104   fi
4105 done
4106 done
4107
4108   test -z "$ac_cv_prog_C2MAN" && ac_cv_prog_C2MAN="\$(TOPSRCDIR)/tools/c2man.pl"
4109 fi
4110 fi
4111 C2MAN=$ac_cv_prog_C2MAN
4112 if test -n "$C2MAN"; then
4113   echo "$as_me:$LINENO: result: $C2MAN" >&5
4114 echo "${ECHO_T}$C2MAN" >&6
4115 else
4116   echo "$as_me:$LINENO: result: no" >&5
4117 echo "${ECHO_T}no" >&6
4118 fi
4119
4120 # Extract the first word of "ldconfig", so it can be a program name with args.
4121 set dummy ldconfig; ac_word=$2
4122 echo "$as_me:$LINENO: checking for $ac_word" >&5
4123 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4124 if test "${ac_cv_path_LDCONFIG+set}" = set; then
4125   echo $ECHO_N "(cached) $ECHO_C" >&6
4126 else
4127   case $LDCONFIG in
4128   [\\/]* | ?:[\\/]*)
4129   ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
4130   ;;
4131   *)
4132   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4133 for as_dir in /sbin /usr/sbin $PATH
4134 do
4135   IFS=$as_save_IFS
4136   test -z "$as_dir" && as_dir=.
4137   for ac_exec_ext in '' $ac_executable_extensions; do
4138   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4139     ac_cv_path_LDCONFIG="$as_dir/$ac_word$ac_exec_ext"
4140     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4141     break 2
4142   fi
4143 done
4144 done
4145
4146   test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG="true"
4147   ;;
4148 esac
4149 fi
4150 LDCONFIG=$ac_cv_path_LDCONFIG
4151
4152 if test -n "$LDCONFIG"; then
4153   echo "$as_me:$LINENO: result: $LDCONFIG" >&5
4154 echo "${ECHO_T}$LDCONFIG" >&6
4155 else
4156   echo "$as_me:$LINENO: result: no" >&5
4157 echo "${ECHO_T}no" >&6
4158 fi
4159
4160
4161 for ac_prog in lclint lint
4162 do
4163   # Extract the first word of "$ac_prog", so it can be a program name with args.
4164 set dummy $ac_prog; ac_word=$2
4165 echo "$as_me:$LINENO: checking for $ac_word" >&5
4166 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4167 if test "${ac_cv_prog_LINT+set}" = set; then
4168   echo $ECHO_N "(cached) $ECHO_C" >&6
4169 else
4170   if test -n "$LINT"; then
4171   ac_cv_prog_LINT="$LINT" # Let the user override the test.
4172 else
4173 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4174 for as_dir in $PATH
4175 do
4176   IFS=$as_save_IFS
4177   test -z "$as_dir" && as_dir=.
4178   for ac_exec_ext in '' $ac_executable_extensions; do
4179   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4180     ac_cv_prog_LINT="$ac_prog"
4181     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4182     break 2
4183   fi
4184 done
4185 done
4186
4187 fi
4188 fi
4189 LINT=$ac_cv_prog_LINT
4190 if test -n "$LINT"; then
4191   echo "$as_me:$LINENO: result: $LINT" >&5
4192 echo "${ECHO_T}$LINT" >&6
4193 else
4194   echo "$as_me:$LINENO: result: no" >&5
4195 echo "${ECHO_T}no" >&6
4196 fi
4197
4198   test -n "$LINT" && break
4199 done
4200
4201 if test "$LINT" = "lint"
4202 then
4203   LINTFLAGS="$LINTFLAGS -errchk=%all,no%longptr64 -errhdr=%user -Ncheck=macro -Nlevel=4"
4204   fi
4205
4206
4207
4208 case $host_os in
4209   *cygwin*) LDCOMBINE="ld -r --enable-stdcall-fixup" ;;
4210          *) LDCOMBINE="ld -r" ;;
4211 esac
4212
4213
4214
4215
4216 echo "$as_me:$LINENO: checking for sqrt in -lm" >&5
4217 echo $ECHO_N "checking for sqrt in -lm... $ECHO_C" >&6
4218 if test "${ac_cv_lib_m_sqrt+set}" = set; then
4219   echo $ECHO_N "(cached) $ECHO_C" >&6
4220 else
4221   ac_check_lib_save_LIBS=$LIBS
4222 LIBS="-lm  $LIBS"
4223 cat >conftest.$ac_ext <<_ACEOF
4224 #line $LINENO "configure"
4225 #include "confdefs.h"
4226
4227 /* Override any gcc2 internal prototype to avoid an error.  */
4228 #ifdef __cplusplus
4229 extern "C"
4230 #endif
4231 /* We use char because int might match the return type of a gcc2
4232    builtin and then its argument prototype would still apply.  */
4233 char sqrt ();
4234 #ifdef F77_DUMMY_MAIN
4235 #  ifdef __cplusplus
4236      extern "C"
4237 #  endif
4238    int F77_DUMMY_MAIN() { return 1; }
4239 #endif
4240 int
4241 main ()
4242 {
4243 sqrt ();
4244   ;
4245   return 0;
4246 }
4247 _ACEOF
4248 rm -f conftest.$ac_objext conftest$ac_exeext
4249 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4250   (eval $ac_link) 2>&5
4251   ac_status=$?
4252   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4253   (exit $ac_status); } &&
4254          { ac_try='test -s conftest$ac_exeext'
4255   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4256   (eval $ac_try) 2>&5
4257   ac_status=$?
4258   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4259   (exit $ac_status); }; }; then
4260   ac_cv_lib_m_sqrt=yes
4261 else
4262   echo "$as_me: failed program was:" >&5
4263 cat conftest.$ac_ext >&5
4264 ac_cv_lib_m_sqrt=no
4265 fi
4266 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4267 LIBS=$ac_check_lib_save_LIBS
4268 fi
4269 echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrt" >&5
4270 echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6
4271 if test $ac_cv_lib_m_sqrt = yes; then
4272   cat >>confdefs.h <<_ACEOF
4273 #define HAVE_LIBM 1
4274 _ACEOF
4275
4276   LIBS="-lm $LIBS"
4277
4278 fi
4279
4280
4281 echo "$as_me:$LINENO: checking for i386_set_ldt in -li386" >&5
4282 echo $ECHO_N "checking for i386_set_ldt in -li386... $ECHO_C" >&6
4283 if test "${ac_cv_lib_i386_i386_set_ldt+set}" = set; then
4284   echo $ECHO_N "(cached) $ECHO_C" >&6
4285 else
4286   ac_check_lib_save_LIBS=$LIBS
4287 LIBS="-li386  $LIBS"
4288 cat >conftest.$ac_ext <<_ACEOF
4289 #line $LINENO "configure"
4290 #include "confdefs.h"
4291
4292 /* Override any gcc2 internal prototype to avoid an error.  */
4293 #ifdef __cplusplus
4294 extern "C"
4295 #endif
4296 /* We use char because int might match the return type of a gcc2
4297    builtin and then its argument prototype would still apply.  */
4298 char i386_set_ldt ();
4299 #ifdef F77_DUMMY_MAIN
4300 #  ifdef __cplusplus
4301      extern "C"
4302 #  endif
4303    int F77_DUMMY_MAIN() { return 1; }
4304 #endif
4305 int
4306 main ()
4307 {
4308 i386_set_ldt ();
4309   ;
4310   return 0;
4311 }
4312 _ACEOF
4313 rm -f conftest.$ac_objext conftest$ac_exeext
4314 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4315   (eval $ac_link) 2>&5
4316   ac_status=$?
4317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4318   (exit $ac_status); } &&
4319          { ac_try='test -s conftest$ac_exeext'
4320   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4321   (eval $ac_try) 2>&5
4322   ac_status=$?
4323   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4324   (exit $ac_status); }; }; then
4325   ac_cv_lib_i386_i386_set_ldt=yes
4326 else
4327   echo "$as_me: failed program was:" >&5
4328 cat conftest.$ac_ext >&5
4329 ac_cv_lib_i386_i386_set_ldt=no
4330 fi
4331 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4332 LIBS=$ac_check_lib_save_LIBS
4333 fi
4334 echo "$as_me:$LINENO: result: $ac_cv_lib_i386_i386_set_ldt" >&5
4335 echo "${ECHO_T}$ac_cv_lib_i386_i386_set_ldt" >&6
4336 if test $ac_cv_lib_i386_i386_set_ldt = yes; then
4337   cat >>confdefs.h <<_ACEOF
4338 #define HAVE_LIBI386 1
4339 _ACEOF
4340
4341   LIBS="-li386 $LIBS"
4342
4343 fi
4344
4345
4346 echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5
4347 echo $ECHO_N "checking for _oss_ioctl in -lossaudio... $ECHO_C" >&6
4348 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then
4349   echo $ECHO_N "(cached) $ECHO_C" >&6
4350 else
4351   ac_check_lib_save_LIBS=$LIBS
4352 LIBS="-lossaudio  $LIBS"
4353 cat >conftest.$ac_ext <<_ACEOF
4354 #line $LINENO "configure"
4355 #include "confdefs.h"
4356
4357 /* Override any gcc2 internal prototype to avoid an error.  */
4358 #ifdef __cplusplus
4359 extern "C"
4360 #endif
4361 /* We use char because int might match the return type of a gcc2
4362    builtin and then its argument prototype would still apply.  */
4363 char _oss_ioctl ();
4364 #ifdef F77_DUMMY_MAIN
4365 #  ifdef __cplusplus
4366      extern "C"
4367 #  endif
4368    int F77_DUMMY_MAIN() { return 1; }
4369 #endif
4370 int
4371 main ()
4372 {
4373 _oss_ioctl ();
4374   ;
4375   return 0;
4376 }
4377 _ACEOF
4378 rm -f conftest.$ac_objext conftest$ac_exeext
4379 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4380   (eval $ac_link) 2>&5
4381   ac_status=$?
4382   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4383   (exit $ac_status); } &&
4384          { ac_try='test -s conftest$ac_exeext'
4385   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4386   (eval $ac_try) 2>&5
4387   ac_status=$?
4388   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4389   (exit $ac_status); }; }; then
4390   ac_cv_lib_ossaudio__oss_ioctl=yes
4391 else
4392   echo "$as_me: failed program was:" >&5
4393 cat conftest.$ac_ext >&5
4394 ac_cv_lib_ossaudio__oss_ioctl=no
4395 fi
4396 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4397 LIBS=$ac_check_lib_save_LIBS
4398 fi
4399 echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
4400 echo "${ECHO_T}$ac_cv_lib_ossaudio__oss_ioctl" >&6
4401 if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then
4402   cat >>confdefs.h <<_ACEOF
4403 #define HAVE_LIBOSSAUDIO 1
4404 _ACEOF
4405
4406   LIBS="-lossaudio $LIBS"
4407
4408 fi
4409
4410
4411 for ac_func in iswalnum
4412 do
4413 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4414 echo "$as_me:$LINENO: checking for $ac_func" >&5
4415 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4416 if eval "test \"\${$as_ac_var+set}\" = set"; then
4417   echo $ECHO_N "(cached) $ECHO_C" >&6
4418 else
4419   cat >conftest.$ac_ext <<_ACEOF
4420 #line $LINENO "configure"
4421 #include "confdefs.h"
4422 /* System header to define __stub macros and hopefully few prototypes,
4423     which can conflict with char $ac_func (); below.  */
4424 #include <assert.h>
4425 /* Override any gcc2 internal prototype to avoid an error.  */
4426 #ifdef __cplusplus
4427 extern "C"
4428 #endif
4429 /* We use char because int might match the return type of a gcc2
4430    builtin and then its argument prototype would still apply.  */
4431 char $ac_func ();
4432 char (*f) ();
4433
4434 #ifdef F77_DUMMY_MAIN
4435 #  ifdef __cplusplus
4436      extern "C"
4437 #  endif
4438    int F77_DUMMY_MAIN() { return 1; }
4439 #endif
4440 int
4441 main ()
4442 {
4443 /* The GNU C library defines this for functions which it implements
4444     to always fail with ENOSYS.  Some functions are actually named
4445     something starting with __ and the normal name is an alias.  */
4446 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4447 choke me
4448 #else
4449 f = $ac_func;
4450 #endif
4451
4452   ;
4453   return 0;
4454 }
4455 _ACEOF
4456 rm -f conftest.$ac_objext conftest$ac_exeext
4457 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4458   (eval $ac_link) 2>&5
4459   ac_status=$?
4460   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4461   (exit $ac_status); } &&
4462          { ac_try='test -s conftest$ac_exeext'
4463   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4464   (eval $ac_try) 2>&5
4465   ac_status=$?
4466   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4467   (exit $ac_status); }; }; then
4468   eval "$as_ac_var=yes"
4469 else
4470   echo "$as_me: failed program was:" >&5
4471 cat conftest.$ac_ext >&5
4472 eval "$as_ac_var=no"
4473 fi
4474 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4475 fi
4476 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4477 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4478 if test `eval echo '${'$as_ac_var'}'` = yes; then
4479   cat >>confdefs.h <<_ACEOF
4480 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4481 _ACEOF
4482
4483 else
4484
4485 echo "$as_me:$LINENO: checking for iswalnum in -lw" >&5
4486 echo $ECHO_N "checking for iswalnum in -lw... $ECHO_C" >&6
4487 if test "${ac_cv_lib_w_iswalnum+set}" = set; then
4488   echo $ECHO_N "(cached) $ECHO_C" >&6
4489 else
4490   ac_check_lib_save_LIBS=$LIBS
4491 LIBS="-lw  $LIBS"
4492 cat >conftest.$ac_ext <<_ACEOF
4493 #line $LINENO "configure"
4494 #include "confdefs.h"
4495
4496 /* Override any gcc2 internal prototype to avoid an error.  */
4497 #ifdef __cplusplus
4498 extern "C"
4499 #endif
4500 /* We use char because int might match the return type of a gcc2
4501    builtin and then its argument prototype would still apply.  */
4502 char iswalnum ();
4503 #ifdef F77_DUMMY_MAIN
4504 #  ifdef __cplusplus
4505      extern "C"
4506 #  endif
4507    int F77_DUMMY_MAIN() { return 1; }
4508 #endif
4509 int
4510 main ()
4511 {
4512 iswalnum ();
4513   ;
4514   return 0;
4515 }
4516 _ACEOF
4517 rm -f conftest.$ac_objext conftest$ac_exeext
4518 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4519   (eval $ac_link) 2>&5
4520   ac_status=$?
4521   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4522   (exit $ac_status); } &&
4523          { ac_try='test -s conftest$ac_exeext'
4524   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4525   (eval $ac_try) 2>&5
4526   ac_status=$?
4527   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4528   (exit $ac_status); }; }; then
4529   ac_cv_lib_w_iswalnum=yes
4530 else
4531   echo "$as_me: failed program was:" >&5
4532 cat conftest.$ac_ext >&5
4533 ac_cv_lib_w_iswalnum=no
4534 fi
4535 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4536 LIBS=$ac_check_lib_save_LIBS
4537 fi
4538 echo "$as_me:$LINENO: result: $ac_cv_lib_w_iswalnum" >&5
4539 echo "${ECHO_T}$ac_cv_lib_w_iswalnum" >&6
4540 if test $ac_cv_lib_w_iswalnum = yes; then
4541   cat >>confdefs.h <<_ACEOF
4542 #define HAVE_LIBW 1
4543 _ACEOF
4544
4545   LIBS="-lw $LIBS"
4546
4547 fi
4548
4549 fi
4550 done
4551
4552
4553 for ac_func in gethostbyname
4554 do
4555 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4556 echo "$as_me:$LINENO: checking for $ac_func" >&5
4557 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4558 if eval "test \"\${$as_ac_var+set}\" = set"; then
4559   echo $ECHO_N "(cached) $ECHO_C" >&6
4560 else
4561   cat >conftest.$ac_ext <<_ACEOF
4562 #line $LINENO "configure"
4563 #include "confdefs.h"
4564 /* System header to define __stub macros and hopefully few prototypes,
4565     which can conflict with char $ac_func (); below.  */
4566 #include <assert.h>
4567 /* Override any gcc2 internal prototype to avoid an error.  */
4568 #ifdef __cplusplus
4569 extern "C"
4570 #endif
4571 /* We use char because int might match the return type of a gcc2
4572    builtin and then its argument prototype would still apply.  */
4573 char $ac_func ();
4574 char (*f) ();
4575
4576 #ifdef F77_DUMMY_MAIN
4577 #  ifdef __cplusplus
4578      extern "C"
4579 #  endif
4580    int F77_DUMMY_MAIN() { return 1; }
4581 #endif
4582 int
4583 main ()
4584 {
4585 /* The GNU C library defines this for functions which it implements
4586     to always fail with ENOSYS.  Some functions are actually named
4587     something starting with __ and the normal name is an alias.  */
4588 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4589 choke me
4590 #else
4591 f = $ac_func;
4592 #endif
4593
4594   ;
4595   return 0;
4596 }
4597 _ACEOF
4598 rm -f conftest.$ac_objext conftest$ac_exeext
4599 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4600   (eval $ac_link) 2>&5
4601   ac_status=$?
4602   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4603   (exit $ac_status); } &&
4604          { ac_try='test -s conftest$ac_exeext'
4605   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4606   (eval $ac_try) 2>&5
4607   ac_status=$?
4608   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4609   (exit $ac_status); }; }; then
4610   eval "$as_ac_var=yes"
4611 else
4612   echo "$as_me: failed program was:" >&5
4613 cat conftest.$ac_ext >&5
4614 eval "$as_ac_var=no"
4615 fi
4616 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4617 fi
4618 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4619 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4620 if test `eval echo '${'$as_ac_var'}'` = yes; then
4621   cat >>confdefs.h <<_ACEOF
4622 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4623 _ACEOF
4624
4625 else
4626
4627 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
4628 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
4629 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
4630   echo $ECHO_N "(cached) $ECHO_C" >&6
4631 else
4632   ac_check_lib_save_LIBS=$LIBS
4633 LIBS="-lnsl  $LIBS"
4634 cat >conftest.$ac_ext <<_ACEOF
4635 #line $LINENO "configure"
4636 #include "confdefs.h"
4637
4638 /* Override any gcc2 internal prototype to avoid an error.  */
4639 #ifdef __cplusplus
4640 extern "C"
4641 #endif
4642 /* We use char because int might match the return type of a gcc2
4643    builtin and then its argument prototype would still apply.  */
4644 char gethostbyname ();
4645 #ifdef F77_DUMMY_MAIN
4646 #  ifdef __cplusplus
4647      extern "C"
4648 #  endif
4649    int F77_DUMMY_MAIN() { return 1; }
4650 #endif
4651 int
4652 main ()
4653 {
4654 gethostbyname ();
4655   ;
4656   return 0;
4657 }
4658 _ACEOF
4659 rm -f conftest.$ac_objext conftest$ac_exeext
4660 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4661   (eval $ac_link) 2>&5
4662   ac_status=$?
4663   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4664   (exit $ac_status); } &&
4665          { ac_try='test -s conftest$ac_exeext'
4666   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4667   (eval $ac_try) 2>&5
4668   ac_status=$?
4669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4670   (exit $ac_status); }; }; then
4671   ac_cv_lib_nsl_gethostbyname=yes
4672 else
4673   echo "$as_me: failed program was:" >&5
4674 cat conftest.$ac_ext >&5
4675 ac_cv_lib_nsl_gethostbyname=no
4676 fi
4677 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4678 LIBS=$ac_check_lib_save_LIBS
4679 fi
4680 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
4681 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
4682 if test $ac_cv_lib_nsl_gethostbyname = yes; then
4683   cat >>confdefs.h <<_ACEOF
4684 #define HAVE_LIBNSL 1
4685 _ACEOF
4686
4687   LIBS="-lnsl $LIBS"
4688
4689 fi
4690
4691 fi
4692 done
4693
4694
4695 for ac_func in connect
4696 do
4697 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4698 echo "$as_me:$LINENO: checking for $ac_func" >&5
4699 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4700 if eval "test \"\${$as_ac_var+set}\" = set"; then
4701   echo $ECHO_N "(cached) $ECHO_C" >&6
4702 else
4703   cat >conftest.$ac_ext <<_ACEOF
4704 #line $LINENO "configure"
4705 #include "confdefs.h"
4706 /* System header to define __stub macros and hopefully few prototypes,
4707     which can conflict with char $ac_func (); below.  */
4708 #include <assert.h>
4709 /* Override any gcc2 internal prototype to avoid an error.  */
4710 #ifdef __cplusplus
4711 extern "C"
4712 #endif
4713 /* We use char because int might match the return type of a gcc2
4714    builtin and then its argument prototype would still apply.  */
4715 char $ac_func ();
4716 char (*f) ();
4717
4718 #ifdef F77_DUMMY_MAIN
4719 #  ifdef __cplusplus
4720      extern "C"
4721 #  endif
4722    int F77_DUMMY_MAIN() { return 1; }
4723 #endif
4724 int
4725 main ()
4726 {
4727 /* The GNU C library defines this for functions which it implements
4728     to always fail with ENOSYS.  Some functions are actually named
4729     something starting with __ and the normal name is an alias.  */
4730 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4731 choke me
4732 #else
4733 f = $ac_func;
4734 #endif
4735
4736   ;
4737   return 0;
4738 }
4739 _ACEOF
4740 rm -f conftest.$ac_objext conftest$ac_exeext
4741 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4742   (eval $ac_link) 2>&5
4743   ac_status=$?
4744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4745   (exit $ac_status); } &&
4746          { ac_try='test -s conftest$ac_exeext'
4747   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4748   (eval $ac_try) 2>&5
4749   ac_status=$?
4750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4751   (exit $ac_status); }; }; then
4752   eval "$as_ac_var=yes"
4753 else
4754   echo "$as_me: failed program was:" >&5
4755 cat conftest.$ac_ext >&5
4756 eval "$as_ac_var=no"
4757 fi
4758 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4759 fi
4760 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4761 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4762 if test `eval echo '${'$as_ac_var'}'` = yes; then
4763   cat >>confdefs.h <<_ACEOF
4764 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4765 _ACEOF
4766
4767 else
4768
4769 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
4770 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
4771 if test "${ac_cv_lib_socket_connect+set}" = set; then
4772   echo $ECHO_N "(cached) $ECHO_C" >&6
4773 else
4774   ac_check_lib_save_LIBS=$LIBS
4775 LIBS="-lsocket  $LIBS"
4776 cat >conftest.$ac_ext <<_ACEOF
4777 #line $LINENO "configure"
4778 #include "confdefs.h"
4779
4780 /* Override any gcc2 internal prototype to avoid an error.  */
4781 #ifdef __cplusplus
4782 extern "C"
4783 #endif
4784 /* We use char because int might match the return type of a gcc2
4785    builtin and then its argument prototype would still apply.  */
4786 char connect ();
4787 #ifdef F77_DUMMY_MAIN
4788 #  ifdef __cplusplus
4789      extern "C"
4790 #  endif
4791    int F77_DUMMY_MAIN() { return 1; }
4792 #endif
4793 int
4794 main ()
4795 {
4796 connect ();
4797   ;
4798   return 0;
4799 }
4800 _ACEOF
4801 rm -f conftest.$ac_objext conftest$ac_exeext
4802 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4803   (eval $ac_link) 2>&5
4804   ac_status=$?
4805   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4806   (exit $ac_status); } &&
4807          { ac_try='test -s conftest$ac_exeext'
4808   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4809   (eval $ac_try) 2>&5
4810   ac_status=$?
4811   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4812   (exit $ac_status); }; }; then
4813   ac_cv_lib_socket_connect=yes
4814 else
4815   echo "$as_me: failed program was:" >&5
4816 cat conftest.$ac_ext >&5
4817 ac_cv_lib_socket_connect=no
4818 fi
4819 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4820 LIBS=$ac_check_lib_save_LIBS
4821 fi
4822 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
4823 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
4824 if test $ac_cv_lib_socket_connect = yes; then
4825   cat >>confdefs.h <<_ACEOF
4826 #define HAVE_LIBSOCKET 1
4827 _ACEOF
4828
4829   LIBS="-lsocket $LIBS"
4830
4831 fi
4832
4833 fi
4834 done
4835
4836
4837 for ac_func in inet_aton
4838 do
4839 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4840 echo "$as_me:$LINENO: checking for $ac_func" >&5
4841 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4842 if eval "test \"\${$as_ac_var+set}\" = set"; then
4843   echo $ECHO_N "(cached) $ECHO_C" >&6
4844 else
4845   cat >conftest.$ac_ext <<_ACEOF
4846 #line $LINENO "configure"
4847 #include "confdefs.h"
4848 /* System header to define __stub macros and hopefully few prototypes,
4849     which can conflict with char $ac_func (); below.  */
4850 #include <assert.h>
4851 /* Override any gcc2 internal prototype to avoid an error.  */
4852 #ifdef __cplusplus
4853 extern "C"
4854 #endif
4855 /* We use char because int might match the return type of a gcc2
4856    builtin and then its argument prototype would still apply.  */
4857 char $ac_func ();
4858 char (*f) ();
4859
4860 #ifdef F77_DUMMY_MAIN
4861 #  ifdef __cplusplus
4862      extern "C"
4863 #  endif
4864    int F77_DUMMY_MAIN() { return 1; }
4865 #endif
4866 int
4867 main ()
4868 {
4869 /* The GNU C library defines this for functions which it implements
4870     to always fail with ENOSYS.  Some functions are actually named
4871     something starting with __ and the normal name is an alias.  */
4872 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4873 choke me
4874 #else
4875 f = $ac_func;
4876 #endif
4877
4878   ;
4879   return 0;
4880 }
4881 _ACEOF
4882 rm -f conftest.$ac_objext conftest$ac_exeext
4883 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4884   (eval $ac_link) 2>&5
4885   ac_status=$?
4886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4887   (exit $ac_status); } &&
4888          { ac_try='test -s conftest$ac_exeext'
4889   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4890   (eval $ac_try) 2>&5
4891   ac_status=$?
4892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4893   (exit $ac_status); }; }; then
4894   eval "$as_ac_var=yes"
4895 else
4896   echo "$as_me: failed program was:" >&5
4897 cat conftest.$ac_ext >&5
4898 eval "$as_ac_var=no"
4899 fi
4900 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4901 fi
4902 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4903 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4904 if test `eval echo '${'$as_ac_var'}'` = yes; then
4905   cat >>confdefs.h <<_ACEOF
4906 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4907 _ACEOF
4908
4909 else
4910
4911 echo "$as_me:$LINENO: checking for inet_aton in -lresolv" >&5
4912 echo $ECHO_N "checking for inet_aton in -lresolv... $ECHO_C" >&6
4913 if test "${ac_cv_lib_resolv_inet_aton+set}" = set; then
4914   echo $ECHO_N "(cached) $ECHO_C" >&6
4915 else
4916   ac_check_lib_save_LIBS=$LIBS
4917 LIBS="-lresolv  $LIBS"
4918 cat >conftest.$ac_ext <<_ACEOF
4919 #line $LINENO "configure"
4920 #include "confdefs.h"
4921
4922 /* Override any gcc2 internal prototype to avoid an error.  */
4923 #ifdef __cplusplus
4924 extern "C"
4925 #endif
4926 /* We use char because int might match the return type of a gcc2
4927    builtin and then its argument prototype would still apply.  */
4928 char inet_aton ();
4929 #ifdef F77_DUMMY_MAIN
4930 #  ifdef __cplusplus
4931      extern "C"
4932 #  endif
4933    int F77_DUMMY_MAIN() { return 1; }
4934 #endif
4935 int
4936 main ()
4937 {
4938 inet_aton ();
4939   ;
4940   return 0;
4941 }
4942 _ACEOF
4943 rm -f conftest.$ac_objext conftest$ac_exeext
4944 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4945   (eval $ac_link) 2>&5
4946   ac_status=$?
4947   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4948   (exit $ac_status); } &&
4949          { ac_try='test -s conftest$ac_exeext'
4950   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4951   (eval $ac_try) 2>&5
4952   ac_status=$?
4953   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4954   (exit $ac_status); }; }; then
4955   ac_cv_lib_resolv_inet_aton=yes
4956 else
4957   echo "$as_me: failed program was:" >&5
4958 cat conftest.$ac_ext >&5
4959 ac_cv_lib_resolv_inet_aton=no
4960 fi
4961 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4962 LIBS=$ac_check_lib_save_LIBS
4963 fi
4964 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_aton" >&5
4965 echo "${ECHO_T}$ac_cv_lib_resolv_inet_aton" >&6
4966 if test $ac_cv_lib_resolv_inet_aton = yes; then
4967   cat >>confdefs.h <<_ACEOF
4968 #define HAVE_LIBRESOLV 1
4969 _ACEOF
4970
4971   LIBS="-lresolv $LIBS"
4972
4973 fi
4974
4975 fi
4976 done
4977
4978
4979 echo "$as_me:$LINENO: checking for _xpg4_setrunelocale in -lxpg4" >&5
4980 echo $ECHO_N "checking for _xpg4_setrunelocale in -lxpg4... $ECHO_C" >&6
4981 if test "${ac_cv_lib_xpg4__xpg4_setrunelocale+set}" = set; then
4982   echo $ECHO_N "(cached) $ECHO_C" >&6
4983 else
4984   ac_check_lib_save_LIBS=$LIBS
4985 LIBS="-lxpg4  $LIBS"
4986 cat >conftest.$ac_ext <<_ACEOF
4987 #line $LINENO "configure"
4988 #include "confdefs.h"
4989
4990 /* Override any gcc2 internal prototype to avoid an error.  */
4991 #ifdef __cplusplus
4992 extern "C"
4993 #endif
4994 /* We use char because int might match the return type of a gcc2
4995    builtin and then its argument prototype would still apply.  */
4996 char _xpg4_setrunelocale ();
4997 #ifdef F77_DUMMY_MAIN
4998 #  ifdef __cplusplus
4999      extern "C"
5000 #  endif
5001    int F77_DUMMY_MAIN() { return 1; }
5002 #endif
5003 int
5004 main ()
5005 {
5006 _xpg4_setrunelocale ();
5007   ;
5008   return 0;
5009 }
5010 _ACEOF
5011 rm -f conftest.$ac_objext conftest$ac_exeext
5012 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5013   (eval $ac_link) 2>&5
5014   ac_status=$?
5015   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5016   (exit $ac_status); } &&
5017          { ac_try='test -s conftest$ac_exeext'
5018   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5019   (eval $ac_try) 2>&5
5020   ac_status=$?
5021   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5022   (exit $ac_status); }; }; then
5023   ac_cv_lib_xpg4__xpg4_setrunelocale=yes
5024 else
5025   echo "$as_me: failed program was:" >&5
5026 cat conftest.$ac_ext >&5
5027 ac_cv_lib_xpg4__xpg4_setrunelocale=no
5028 fi
5029 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5030 LIBS=$ac_check_lib_save_LIBS
5031 fi
5032 echo "$as_me:$LINENO: result: $ac_cv_lib_xpg4__xpg4_setrunelocale" >&5
5033 echo "${ECHO_T}$ac_cv_lib_xpg4__xpg4_setrunelocale" >&6
5034 if test $ac_cv_lib_xpg4__xpg4_setrunelocale = yes; then
5035   cat >>confdefs.h <<_ACEOF
5036 #define HAVE_LIBXPG4 1
5037 _ACEOF
5038
5039   LIBS="-lxpg4 $LIBS"
5040
5041 fi
5042
5043
5044 echo "$as_me:$LINENO: checking for mmap in -lmmap" >&5
5045 echo $ECHO_N "checking for mmap in -lmmap... $ECHO_C" >&6
5046 if test "${ac_cv_lib_mmap_mmap+set}" = set; then
5047   echo $ECHO_N "(cached) $ECHO_C" >&6
5048 else
5049   ac_check_lib_save_LIBS=$LIBS
5050 LIBS="-lmmap  $LIBS"
5051 cat >conftest.$ac_ext <<_ACEOF
5052 #line $LINENO "configure"
5053 #include "confdefs.h"
5054
5055 /* Override any gcc2 internal prototype to avoid an error.  */
5056 #ifdef __cplusplus
5057 extern "C"
5058 #endif
5059 /* We use char because int might match the return type of a gcc2
5060    builtin and then its argument prototype would still apply.  */
5061 char mmap ();
5062 #ifdef F77_DUMMY_MAIN
5063 #  ifdef __cplusplus
5064      extern "C"
5065 #  endif
5066    int F77_DUMMY_MAIN() { return 1; }
5067 #endif
5068 int
5069 main ()
5070 {
5071 mmap ();
5072   ;
5073   return 0;
5074 }
5075 _ACEOF
5076 rm -f conftest.$ac_objext conftest$ac_exeext
5077 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5078   (eval $ac_link) 2>&5
5079   ac_status=$?
5080   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5081   (exit $ac_status); } &&
5082          { ac_try='test -s conftest$ac_exeext'
5083   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5084   (eval $ac_try) 2>&5
5085   ac_status=$?
5086   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5087   (exit $ac_status); }; }; then
5088   ac_cv_lib_mmap_mmap=yes
5089 else
5090   echo "$as_me: failed program was:" >&5
5091 cat conftest.$ac_ext >&5
5092 ac_cv_lib_mmap_mmap=no
5093 fi
5094 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5095 LIBS=$ac_check_lib_save_LIBS
5096 fi
5097 echo "$as_me:$LINENO: result: $ac_cv_lib_mmap_mmap" >&5
5098 echo "${ECHO_T}$ac_cv_lib_mmap_mmap" >&6
5099 if test $ac_cv_lib_mmap_mmap = yes; then
5100   cat >>confdefs.h <<_ACEOF
5101 #define HAVE_LIBMMAP 1
5102 _ACEOF
5103
5104   LIBS="-lmmap $LIBS"
5105
5106 fi
5107
5108
5109 UTILLIBS=""
5110
5111
5112 for ac_func in openpty
5113 do
5114 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5115 echo "$as_me:$LINENO: checking for $ac_func" >&5
5116 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5117 if eval "test \"\${$as_ac_var+set}\" = set"; then
5118   echo $ECHO_N "(cached) $ECHO_C" >&6
5119 else
5120   cat >conftest.$ac_ext <<_ACEOF
5121 #line $LINENO "configure"
5122 #include "confdefs.h"
5123 /* System header to define __stub macros and hopefully few prototypes,
5124     which can conflict with char $ac_func (); below.  */
5125 #include <assert.h>
5126 /* Override any gcc2 internal prototype to avoid an error.  */
5127 #ifdef __cplusplus
5128 extern "C"
5129 #endif
5130 /* We use char because int might match the return type of a gcc2
5131    builtin and then its argument prototype would still apply.  */
5132 char $ac_func ();
5133 char (*f) ();
5134
5135 #ifdef F77_DUMMY_MAIN
5136 #  ifdef __cplusplus
5137      extern "C"
5138 #  endif
5139    int F77_DUMMY_MAIN() { return 1; }
5140 #endif
5141 int
5142 main ()
5143 {
5144 /* The GNU C library defines this for functions which it implements
5145     to always fail with ENOSYS.  Some functions are actually named
5146     something starting with __ and the normal name is an alias.  */
5147 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5148 choke me
5149 #else
5150 f = $ac_func;
5151 #endif
5152
5153   ;
5154   return 0;
5155 }
5156 _ACEOF
5157 rm -f conftest.$ac_objext conftest$ac_exeext
5158 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5159   (eval $ac_link) 2>&5
5160   ac_status=$?
5161   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5162   (exit $ac_status); } &&
5163          { ac_try='test -s conftest$ac_exeext'
5164   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5165   (eval $ac_try) 2>&5
5166   ac_status=$?
5167   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5168   (exit $ac_status); }; }; then
5169   eval "$as_ac_var=yes"
5170 else
5171   echo "$as_me: failed program was:" >&5
5172 cat conftest.$ac_ext >&5
5173 eval "$as_ac_var=no"
5174 fi
5175 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5176 fi
5177 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5178 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5179 if test `eval echo '${'$as_ac_var'}'` = yes; then
5180   cat >>confdefs.h <<_ACEOF
5181 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5182 _ACEOF
5183
5184 else
5185   echo "$as_me:$LINENO: checking for openpty in -lutil" >&5
5186 echo $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6
5187 if test "${ac_cv_lib_util_openpty+set}" = set; then
5188   echo $ECHO_N "(cached) $ECHO_C" >&6
5189 else
5190   ac_check_lib_save_LIBS=$LIBS
5191 LIBS="-lutil  $LIBS"
5192 cat >conftest.$ac_ext <<_ACEOF
5193 #line $LINENO "configure"
5194 #include "confdefs.h"
5195
5196 /* Override any gcc2 internal prototype to avoid an error.  */
5197 #ifdef __cplusplus
5198 extern "C"
5199 #endif
5200 /* We use char because int might match the return type of a gcc2
5201    builtin and then its argument prototype would still apply.  */
5202 char openpty ();
5203 #ifdef F77_DUMMY_MAIN
5204 #  ifdef __cplusplus
5205      extern "C"
5206 #  endif
5207    int F77_DUMMY_MAIN() { return 1; }
5208 #endif
5209 int
5210 main ()
5211 {
5212 openpty ();
5213   ;
5214   return 0;
5215 }
5216 _ACEOF
5217 rm -f conftest.$ac_objext conftest$ac_exeext
5218 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5219   (eval $ac_link) 2>&5
5220   ac_status=$?
5221   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5222   (exit $ac_status); } &&
5223          { ac_try='test -s conftest$ac_exeext'
5224   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5225   (eval $ac_try) 2>&5
5226   ac_status=$?
5227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5228   (exit $ac_status); }; }; then
5229   ac_cv_lib_util_openpty=yes
5230 else
5231   echo "$as_me: failed program was:" >&5
5232 cat conftest.$ac_ext >&5
5233 ac_cv_lib_util_openpty=no
5234 fi
5235 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5236 LIBS=$ac_check_lib_save_LIBS
5237 fi
5238 echo "$as_me:$LINENO: result: $ac_cv_lib_util_openpty" >&5
5239 echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6
5240 if test $ac_cv_lib_util_openpty = yes; then
5241   cat >>confdefs.h <<\_ACEOF
5242 #define HAVE_OPENPTY 1
5243 _ACEOF
5244
5245                 UTILLIBS="-lutil"
5246
5247 fi
5248
5249 fi
5250 done
5251
5252
5253 DLLIBS=""
5254
5255 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5256 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5257 if test "${ac_cv_header_stdc+set}" = set; then
5258   echo $ECHO_N "(cached) $ECHO_C" >&6
5259 else
5260   cat >conftest.$ac_ext <<_ACEOF
5261 #line $LINENO "configure"
5262 #include "confdefs.h"
5263 #include <stdlib.h>
5264 #include <stdarg.h>
5265 #include <string.h>
5266 #include <float.h>
5267
5268 _ACEOF
5269 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5270   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5271   ac_status=$?
5272   egrep -v '^ *\+' conftest.er1 >conftest.err
5273   rm -f conftest.er1
5274   cat conftest.err >&5
5275   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5276   (exit $ac_status); } >/dev/null; then
5277   if test -s conftest.err; then
5278     ac_cpp_err=$ac_c_preproc_warn_flag
5279   else
5280     ac_cpp_err=
5281   fi
5282 else
5283   ac_cpp_err=yes
5284 fi
5285 if test -z "$ac_cpp_err"; then
5286   ac_cv_header_stdc=yes
5287 else
5288   echo "$as_me: failed program was:" >&5
5289   cat conftest.$ac_ext >&5
5290   ac_cv_header_stdc=no
5291 fi
5292 rm -f conftest.err conftest.$ac_ext
5293
5294 if test $ac_cv_header_stdc = yes; then
5295   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5296   cat >conftest.$ac_ext <<_ACEOF
5297 #line $LINENO "configure"
5298 #include "confdefs.h"
5299 #include <string.h>
5300
5301 _ACEOF
5302 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5303   egrep "memchr" >/dev/null 2>&1; then
5304   :
5305 else
5306   ac_cv_header_stdc=no
5307 fi
5308 rm -f conftest*
5309
5310 fi
5311
5312 if test $ac_cv_header_stdc = yes; then
5313   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5314   cat >conftest.$ac_ext <<_ACEOF
5315 #line $LINENO "configure"
5316 #include "confdefs.h"
5317 #include <stdlib.h>
5318
5319 _ACEOF
5320 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5321   egrep "free" >/dev/null 2>&1; then
5322   :
5323 else
5324   ac_cv_header_stdc=no
5325 fi
5326 rm -f conftest*
5327
5328 fi
5329
5330 if test $ac_cv_header_stdc = yes; then
5331   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5332   if test "$cross_compiling" = yes; then
5333   :
5334 else
5335   cat >conftest.$ac_ext <<_ACEOF
5336 #line $LINENO "configure"
5337 #include "confdefs.h"
5338 #include <ctype.h>
5339 #if ((' ' & 0x0FF) == 0x020)
5340 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5341 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5342 #else
5343 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
5344                      || ('j' <= (c) && (c) <= 'r') \
5345                      || ('s' <= (c) && (c) <= 'z'))
5346 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5347 #endif
5348
5349 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5350 int
5351 main ()
5352 {
5353   int i;
5354   for (i = 0; i < 256; i++)
5355     if (XOR (islower (i), ISLOWER (i))
5356         || toupper (i) != TOUPPER (i))
5357       exit(2);
5358   exit (0);
5359 }
5360 _ACEOF
5361 rm -f conftest$ac_exeext
5362 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5363   (eval $ac_link) 2>&5
5364   ac_status=$?
5365   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5366   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5367   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5368   (eval $ac_try) 2>&5
5369   ac_status=$?
5370   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5371   (exit $ac_status); }; }; then
5372   :
5373 else
5374   echo "$as_me: program exited with status $ac_status" >&5
5375 echo "$as_me: failed program was:" >&5
5376 cat conftest.$ac_ext >&5
5377 ( exit $ac_status )
5378 ac_cv_header_stdc=no
5379 fi
5380 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5381 fi
5382 fi
5383 fi
5384 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5385 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5386 if test $ac_cv_header_stdc = yes; then
5387
5388 cat >>confdefs.h <<\_ACEOF
5389 #define STDC_HEADERS 1
5390 _ACEOF
5391
5392 fi
5393
5394 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5395
5396
5397
5398
5399
5400
5401
5402
5403
5404 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5405                   inttypes.h stdint.h unistd.h
5406 do
5407 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5408 echo "$as_me:$LINENO: checking for $ac_header" >&5
5409 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5410 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5411   echo $ECHO_N "(cached) $ECHO_C" >&6
5412 else
5413   cat >conftest.$ac_ext <<_ACEOF
5414 #line $LINENO "configure"
5415 #include "confdefs.h"
5416 $ac_includes_default
5417
5418 #include <$ac_header>
5419 _ACEOF
5420 rm -f conftest.$ac_objext
5421 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5422   (eval $ac_compile) 2>&5
5423   ac_status=$?
5424   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5425   (exit $ac_status); } &&
5426          { ac_try='test -s conftest.$ac_objext'
5427   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5428   (eval $ac_try) 2>&5
5429   ac_status=$?
5430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5431   (exit $ac_status); }; }; then
5432   eval "$as_ac_Header=yes"
5433 else
5434   echo "$as_me: failed program was:" >&5
5435 cat conftest.$ac_ext >&5
5436 eval "$as_ac_Header=no"
5437 fi
5438 rm -f conftest.$ac_objext conftest.$ac_ext
5439 fi
5440 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5441 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5442 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5443   cat >>confdefs.h <<_ACEOF
5444 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5445 _ACEOF
5446
5447 fi
5448
5449 done
5450
5451
5452
5453 for ac_header in dlfcn.h
5454 do
5455 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5456 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5457   echo "$as_me:$LINENO: checking for $ac_header" >&5
5458 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5459 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5460   echo $ECHO_N "(cached) $ECHO_C" >&6
5461 fi
5462 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5463 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5464 else
5465   # Is the header compilable?
5466 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5467 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5468 cat >conftest.$ac_ext <<_ACEOF
5469 #line $LINENO "configure"
5470 #include "confdefs.h"
5471 $ac_includes_default
5472 #include <$ac_header>
5473 _ACEOF
5474 rm -f conftest.$ac_objext
5475 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5476   (eval $ac_compile) 2>&5
5477   ac_status=$?
5478   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5479   (exit $ac_status); } &&
5480          { ac_try='test -s conftest.$ac_objext'
5481   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5482   (eval $ac_try) 2>&5
5483   ac_status=$?
5484   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5485   (exit $ac_status); }; }; then
5486   ac_header_compiler=yes
5487 else
5488   echo "$as_me: failed program was:" >&5
5489 cat conftest.$ac_ext >&5
5490 ac_header_compiler=no
5491 fi
5492 rm -f conftest.$ac_objext conftest.$ac_ext
5493 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5494 echo "${ECHO_T}$ac_header_compiler" >&6
5495
5496 # Is the header present?
5497 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5498 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5499 cat >conftest.$ac_ext <<_ACEOF
5500 #line $LINENO "configure"
5501 #include "confdefs.h"
5502 #include <$ac_header>
5503 _ACEOF
5504 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5505   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5506   ac_status=$?
5507   egrep -v '^ *\+' conftest.er1 >conftest.err
5508   rm -f conftest.er1
5509   cat conftest.err >&5
5510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5511   (exit $ac_status); } >/dev/null; then
5512   if test -s conftest.err; then
5513     ac_cpp_err=$ac_c_preproc_warn_flag
5514   else
5515     ac_cpp_err=
5516   fi
5517 else
5518   ac_cpp_err=yes
5519 fi
5520 if test -z "$ac_cpp_err"; then
5521   ac_header_preproc=yes
5522 else
5523   echo "$as_me: failed program was:" >&5
5524   cat conftest.$ac_ext >&5
5525   ac_header_preproc=no
5526 fi
5527 rm -f conftest.err conftest.$ac_ext
5528 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5529 echo "${ECHO_T}$ac_header_preproc" >&6
5530
5531 # So?  What about this header?
5532 case $ac_header_compiler:$ac_header_preproc in
5533   yes:no )
5534     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5535 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5536     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5537 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
5538   no:yes )
5539     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5540 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5541     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5542 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5543     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5544 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
5545 esac
5546 echo "$as_me:$LINENO: checking for $ac_header" >&5
5547 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5548 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5549   echo $ECHO_N "(cached) $ECHO_C" >&6
5550 else
5551   eval "$as_ac_Header=$ac_header_preproc"
5552 fi
5553 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5554 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5555
5556 fi
5557 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5558   cat >>confdefs.h <<_ACEOF
5559 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5560 _ACEOF
5561
5562 for ac_func in dlopen
5563 do
5564 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5565 echo "$as_me:$LINENO: checking for $ac_func" >&5
5566 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5567 if eval "test \"\${$as_ac_var+set}\" = set"; then
5568   echo $ECHO_N "(cached) $ECHO_C" >&6
5569 else
5570   cat >conftest.$ac_ext <<_ACEOF
5571 #line $LINENO "configure"
5572 #include "confdefs.h"
5573 /* System header to define __stub macros and hopefully few prototypes,
5574     which can conflict with char $ac_func (); below.  */
5575 #include <assert.h>
5576 /* Override any gcc2 internal prototype to avoid an error.  */
5577 #ifdef __cplusplus
5578 extern "C"
5579 #endif
5580 /* We use char because int might match the return type of a gcc2
5581    builtin and then its argument prototype would still apply.  */
5582 char $ac_func ();
5583 char (*f) ();
5584
5585 #ifdef F77_DUMMY_MAIN
5586 #  ifdef __cplusplus
5587      extern "C"
5588 #  endif
5589    int F77_DUMMY_MAIN() { return 1; }
5590 #endif
5591 int
5592 main ()
5593 {
5594 /* The GNU C library defines this for functions which it implements
5595     to always fail with ENOSYS.  Some functions are actually named
5596     something starting with __ and the normal name is an alias.  */
5597 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5598 choke me
5599 #else
5600 f = $ac_func;
5601 #endif
5602
5603   ;
5604   return 0;
5605 }
5606 _ACEOF
5607 rm -f conftest.$ac_objext conftest$ac_exeext
5608 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5609   (eval $ac_link) 2>&5
5610   ac_status=$?
5611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5612   (exit $ac_status); } &&
5613          { ac_try='test -s conftest$ac_exeext'
5614   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5615   (eval $ac_try) 2>&5
5616   ac_status=$?
5617   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5618   (exit $ac_status); }; }; then
5619   eval "$as_ac_var=yes"
5620 else
5621   echo "$as_me: failed program was:" >&5
5622 cat conftest.$ac_ext >&5
5623 eval "$as_ac_var=no"
5624 fi
5625 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5626 fi
5627 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5628 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5629 if test `eval echo '${'$as_ac_var'}'` = yes; then
5630   cat >>confdefs.h <<_ACEOF
5631 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5632 _ACEOF
5633
5634 else
5635   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
5636 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
5637 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
5638   echo $ECHO_N "(cached) $ECHO_C" >&6
5639 else
5640   ac_check_lib_save_LIBS=$LIBS
5641 LIBS="-ldl  $LIBS"
5642 cat >conftest.$ac_ext <<_ACEOF
5643 #line $LINENO "configure"
5644 #include "confdefs.h"
5645
5646 /* Override any gcc2 internal prototype to avoid an error.  */
5647 #ifdef __cplusplus
5648 extern "C"
5649 #endif
5650 /* We use char because int might match the return type of a gcc2
5651    builtin and then its argument prototype would still apply.  */
5652 char dlopen ();
5653 #ifdef F77_DUMMY_MAIN
5654 #  ifdef __cplusplus
5655      extern "C"
5656 #  endif
5657    int F77_DUMMY_MAIN() { return 1; }
5658 #endif
5659 int
5660 main ()
5661 {
5662 dlopen ();
5663   ;
5664   return 0;
5665 }
5666 _ACEOF
5667 rm -f conftest.$ac_objext conftest$ac_exeext
5668 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5669   (eval $ac_link) 2>&5
5670   ac_status=$?
5671   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5672   (exit $ac_status); } &&
5673          { ac_try='test -s conftest$ac_exeext'
5674   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5675   (eval $ac_try) 2>&5
5676   ac_status=$?
5677   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5678   (exit $ac_status); }; }; then
5679   ac_cv_lib_dl_dlopen=yes
5680 else
5681   echo "$as_me: failed program was:" >&5
5682 cat conftest.$ac_ext >&5
5683 ac_cv_lib_dl_dlopen=no
5684 fi
5685 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5686 LIBS=$ac_check_lib_save_LIBS
5687 fi
5688 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
5689 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
5690 if test $ac_cv_lib_dl_dlopen = yes; then
5691
5692 cat >>confdefs.h <<\_ACEOF
5693 #define HAVE_DLOPEN 1
5694 _ACEOF
5695
5696                      DLLIBS="-ldl"
5697 else
5698   LIBEXT="a"
5699 fi
5700
5701
5702 fi
5703 done
5704
5705 else
5706   LIBEXT="a"
5707
5708 fi
5709
5710 done
5711
5712
5713 JPEGLIB=""
5714
5715
5716 for ac_header in jpeglib.h
5717 do
5718 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5719 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5720   echo "$as_me:$LINENO: checking for $ac_header" >&5
5721 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5722 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5723   echo $ECHO_N "(cached) $ECHO_C" >&6
5724 fi
5725 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5726 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5727 else
5728   # Is the header compilable?
5729 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5730 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5731 cat >conftest.$ac_ext <<_ACEOF
5732 #line $LINENO "configure"
5733 #include "confdefs.h"
5734 $ac_includes_default
5735 #include <$ac_header>
5736 _ACEOF
5737 rm -f conftest.$ac_objext
5738 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5739   (eval $ac_compile) 2>&5
5740   ac_status=$?
5741   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5742   (exit $ac_status); } &&
5743          { ac_try='test -s conftest.$ac_objext'
5744   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5745   (eval $ac_try) 2>&5
5746   ac_status=$?
5747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5748   (exit $ac_status); }; }; then
5749   ac_header_compiler=yes
5750 else
5751   echo "$as_me: failed program was:" >&5
5752 cat conftest.$ac_ext >&5
5753 ac_header_compiler=no
5754 fi
5755 rm -f conftest.$ac_objext conftest.$ac_ext
5756 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5757 echo "${ECHO_T}$ac_header_compiler" >&6
5758
5759 # Is the header present?
5760 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5761 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5762 cat >conftest.$ac_ext <<_ACEOF
5763 #line $LINENO "configure"
5764 #include "confdefs.h"
5765 #include <$ac_header>
5766 _ACEOF
5767 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5768   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5769   ac_status=$?
5770   egrep -v '^ *\+' conftest.er1 >conftest.err
5771   rm -f conftest.er1
5772   cat conftest.err >&5
5773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5774   (exit $ac_status); } >/dev/null; then
5775   if test -s conftest.err; then
5776     ac_cpp_err=$ac_c_preproc_warn_flag
5777   else
5778     ac_cpp_err=
5779   fi
5780 else
5781   ac_cpp_err=yes
5782 fi
5783 if test -z "$ac_cpp_err"; then
5784   ac_header_preproc=yes
5785 else
5786   echo "$as_me: failed program was:" >&5
5787   cat conftest.$ac_ext >&5
5788   ac_header_preproc=no
5789 fi
5790 rm -f conftest.err conftest.$ac_ext
5791 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5792 echo "${ECHO_T}$ac_header_preproc" >&6
5793
5794 # So?  What about this header?
5795 case $ac_header_compiler:$ac_header_preproc in
5796   yes:no )
5797     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5798 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5799     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5800 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
5801   no:yes )
5802     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5803 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5804     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5805 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5806     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5807 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
5808 esac
5809 echo "$as_me:$LINENO: checking for $ac_header" >&5
5810 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5811 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5812   echo $ECHO_N "(cached) $ECHO_C" >&6
5813 else
5814   eval "$as_ac_Header=$ac_header_preproc"
5815 fi
5816 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5817 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5818
5819 fi
5820 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5821   cat >>confdefs.h <<_ACEOF
5822 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5823 _ACEOF
5824  echo "$as_me:$LINENO: checking for jpeg_start_decompress in -ljpeg" >&5
5825 echo $ECHO_N "checking for jpeg_start_decompress in -ljpeg... $ECHO_C" >&6
5826 if test "${ac_cv_lib_jpeg_jpeg_start_decompress+set}" = set; then
5827   echo $ECHO_N "(cached) $ECHO_C" >&6
5828 else
5829   ac_check_lib_save_LIBS=$LIBS
5830 LIBS="-ljpeg  $LIBS"
5831 cat >conftest.$ac_ext <<_ACEOF
5832 #line $LINENO "configure"
5833 #include "confdefs.h"
5834
5835 /* Override any gcc2 internal prototype to avoid an error.  */
5836 #ifdef __cplusplus
5837 extern "C"
5838 #endif
5839 /* We use char because int might match the return type of a gcc2
5840    builtin and then its argument prototype would still apply.  */
5841 char jpeg_start_decompress ();
5842 #ifdef F77_DUMMY_MAIN
5843 #  ifdef __cplusplus
5844      extern "C"
5845 #  endif
5846    int F77_DUMMY_MAIN() { return 1; }
5847 #endif
5848 int
5849 main ()
5850 {
5851 jpeg_start_decompress ();
5852   ;
5853   return 0;
5854 }
5855 _ACEOF
5856 rm -f conftest.$ac_objext conftest$ac_exeext
5857 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5858   (eval $ac_link) 2>&5
5859   ac_status=$?
5860   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5861   (exit $ac_status); } &&
5862          { ac_try='test -s conftest$ac_exeext'
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_cv_lib_jpeg_jpeg_start_decompress=yes
5869 else
5870   echo "$as_me: failed program was:" >&5
5871 cat conftest.$ac_ext >&5
5872 ac_cv_lib_jpeg_jpeg_start_decompress=no
5873 fi
5874 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5875 LIBS=$ac_check_lib_save_LIBS
5876 fi
5877 echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_start_decompress" >&5
5878 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_start_decompress" >&6
5879 if test $ac_cv_lib_jpeg_jpeg_start_decompress = yes; then
5880
5881 cat >>confdefs.h <<\_ACEOF
5882 #define HAVE_LIBJPEG 1
5883 _ACEOF
5884
5885         JPEGLIB="-ljpeg"
5886
5887 fi
5888
5889
5890 fi
5891
5892 done
5893
5894
5895
5896
5897
5898 XFILES=""
5899
5900 OPENGLFILES=""
5901
5902 GLU32FILES=""
5903 if test "$have_x" = "yes"
5904 then
5905     XLIB="-lXext -lX11"
5906     ac_save_CPPFLAGS="$CPPFLAGS"
5907     CPPFLAGS="$CPPFLAGS $X_CFLAGS"
5908
5909
5910 for ac_header in X11/Xlib.h
5911 do
5912 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5913 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5914   echo "$as_me:$LINENO: checking for $ac_header" >&5
5915 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5916 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5917   echo $ECHO_N "(cached) $ECHO_C" >&6
5918 fi
5919 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5920 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5921 else
5922   # Is the header compilable?
5923 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5924 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5925 cat >conftest.$ac_ext <<_ACEOF
5926 #line $LINENO "configure"
5927 #include "confdefs.h"
5928 $ac_includes_default
5929 #include <$ac_header>
5930 _ACEOF
5931 rm -f conftest.$ac_objext
5932 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5933   (eval $ac_compile) 2>&5
5934   ac_status=$?
5935   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5936   (exit $ac_status); } &&
5937          { ac_try='test -s conftest.$ac_objext'
5938   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5939   (eval $ac_try) 2>&5
5940   ac_status=$?
5941   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5942   (exit $ac_status); }; }; then
5943   ac_header_compiler=yes
5944 else
5945   echo "$as_me: failed program was:" >&5
5946 cat conftest.$ac_ext >&5
5947 ac_header_compiler=no
5948 fi
5949 rm -f conftest.$ac_objext conftest.$ac_ext
5950 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5951 echo "${ECHO_T}$ac_header_compiler" >&6
5952
5953 # Is the header present?
5954 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5955 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5956 cat >conftest.$ac_ext <<_ACEOF
5957 #line $LINENO "configure"
5958 #include "confdefs.h"
5959 #include <$ac_header>
5960 _ACEOF
5961 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5962   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5963   ac_status=$?
5964   egrep -v '^ *\+' conftest.er1 >conftest.err
5965   rm -f conftest.er1
5966   cat conftest.err >&5
5967   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5968   (exit $ac_status); } >/dev/null; then
5969   if test -s conftest.err; then
5970     ac_cpp_err=$ac_c_preproc_warn_flag
5971   else
5972     ac_cpp_err=
5973   fi
5974 else
5975   ac_cpp_err=yes
5976 fi
5977 if test -z "$ac_cpp_err"; then
5978   ac_header_preproc=yes
5979 else
5980   echo "$as_me: failed program was:" >&5
5981   cat conftest.$ac_ext >&5
5982   ac_header_preproc=no
5983 fi
5984 rm -f conftest.err conftest.$ac_ext
5985 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5986 echo "${ECHO_T}$ac_header_preproc" >&6
5987
5988 # So?  What about this header?
5989 case $ac_header_compiler:$ac_header_preproc in
5990   yes:no )
5991     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5992 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5993     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5994 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
5995   no:yes )
5996     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5997 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5998     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5999 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6000     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6001 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
6002 esac
6003 echo "$as_me:$LINENO: checking for $ac_header" >&5
6004 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6005 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6006   echo $ECHO_N "(cached) $ECHO_C" >&6
6007 else
6008   eval "$as_ac_Header=$ac_header_preproc"
6009 fi
6010 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6011 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6012
6013 fi
6014 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6015   cat >>confdefs.h <<_ACEOF
6016 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6017 _ACEOF
6018
6019
6020 for ac_header in X11/XKBlib.h
6021 do
6022 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6023 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6024   echo "$as_me:$LINENO: checking for $ac_header" >&5
6025 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6026 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6027   echo $ECHO_N "(cached) $ECHO_C" >&6
6028 fi
6029 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6030 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6031 else
6032   # Is the header compilable?
6033 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6034 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6035 cat >conftest.$ac_ext <<_ACEOF
6036 #line $LINENO "configure"
6037 #include "confdefs.h"
6038 $ac_includes_default
6039 #include <$ac_header>
6040 _ACEOF
6041 rm -f conftest.$ac_objext
6042 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6043   (eval $ac_compile) 2>&5
6044   ac_status=$?
6045   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6046   (exit $ac_status); } &&
6047          { ac_try='test -s conftest.$ac_objext'
6048   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6049   (eval $ac_try) 2>&5
6050   ac_status=$?
6051   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6052   (exit $ac_status); }; }; then
6053   ac_header_compiler=yes
6054 else
6055   echo "$as_me: failed program was:" >&5
6056 cat conftest.$ac_ext >&5
6057 ac_header_compiler=no
6058 fi
6059 rm -f conftest.$ac_objext conftest.$ac_ext
6060 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6061 echo "${ECHO_T}$ac_header_compiler" >&6
6062
6063 # Is the header present?
6064 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6065 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6066 cat >conftest.$ac_ext <<_ACEOF
6067 #line $LINENO "configure"
6068 #include "confdefs.h"
6069 #include <$ac_header>
6070 _ACEOF
6071 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6072   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6073   ac_status=$?
6074   egrep -v '^ *\+' conftest.er1 >conftest.err
6075   rm -f conftest.er1
6076   cat conftest.err >&5
6077   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6078   (exit $ac_status); } >/dev/null; then
6079   if test -s conftest.err; then
6080     ac_cpp_err=$ac_c_preproc_warn_flag
6081   else
6082     ac_cpp_err=
6083   fi
6084 else
6085   ac_cpp_err=yes
6086 fi
6087 if test -z "$ac_cpp_err"; then
6088   ac_header_preproc=yes
6089 else
6090   echo "$as_me: failed program was:" >&5
6091   cat conftest.$ac_ext >&5
6092   ac_header_preproc=no
6093 fi
6094 rm -f conftest.err conftest.$ac_ext
6095 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6096 echo "${ECHO_T}$ac_header_preproc" >&6
6097
6098 # So?  What about this header?
6099 case $ac_header_compiler:$ac_header_preproc in
6100   yes:no )
6101     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6102 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6103     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6104 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
6105   no:yes )
6106     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6107 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6108     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6109 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6110     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6111 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
6112 esac
6113 echo "$as_me:$LINENO: checking for $ac_header" >&5
6114 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6115 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6116   echo $ECHO_N "(cached) $ECHO_C" >&6
6117 else
6118   eval "$as_ac_Header=$ac_header_preproc"
6119 fi
6120 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6121 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6122
6123 fi
6124 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6125   cat >>confdefs.h <<_ACEOF
6126 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6127 _ACEOF
6128                 echo "$as_me:$LINENO: checking for XkbQueryExtension in -lX11" >&5
6129 echo $ECHO_N "checking for XkbQueryExtension in -lX11... $ECHO_C" >&6
6130 if test "${ac_cv_lib_X11_XkbQueryExtension+set}" = set; then
6131   echo $ECHO_N "(cached) $ECHO_C" >&6
6132 else
6133   ac_check_lib_save_LIBS=$LIBS
6134 LIBS="-lX11 $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
6135 cat >conftest.$ac_ext <<_ACEOF
6136 #line $LINENO "configure"
6137 #include "confdefs.h"
6138
6139 /* Override any gcc2 internal prototype to avoid an error.  */
6140 #ifdef __cplusplus
6141 extern "C"
6142 #endif
6143 /* We use char because int might match the return type of a gcc2
6144    builtin and then its argument prototype would still apply.  */
6145 char XkbQueryExtension ();
6146 #ifdef F77_DUMMY_MAIN
6147 #  ifdef __cplusplus
6148      extern "C"
6149 #  endif
6150    int F77_DUMMY_MAIN() { return 1; }
6151 #endif
6152 int
6153 main ()
6154 {
6155 XkbQueryExtension ();
6156   ;
6157   return 0;
6158 }
6159 _ACEOF
6160 rm -f conftest.$ac_objext conftest$ac_exeext
6161 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6162   (eval $ac_link) 2>&5
6163   ac_status=$?
6164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6165   (exit $ac_status); } &&
6166          { ac_try='test -s conftest$ac_exeext'
6167   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6168   (eval $ac_try) 2>&5
6169   ac_status=$?
6170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6171   (exit $ac_status); }; }; then
6172   ac_cv_lib_X11_XkbQueryExtension=yes
6173 else
6174   echo "$as_me: failed program was:" >&5
6175 cat conftest.$ac_ext >&5
6176 ac_cv_lib_X11_XkbQueryExtension=no
6177 fi
6178 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6179 LIBS=$ac_check_lib_save_LIBS
6180 fi
6181 echo "$as_me:$LINENO: result: $ac_cv_lib_X11_XkbQueryExtension" >&5
6182 echo "${ECHO_T}$ac_cv_lib_X11_XkbQueryExtension" >&6
6183 if test $ac_cv_lib_X11_XkbQueryExtension = yes; then
6184
6185 cat >>confdefs.h <<\_ACEOF
6186 #define HAVE_XKB 1
6187 _ACEOF
6188
6189 fi
6190
6191
6192 else
6193   { echo "$as_me:$LINENO: WARNING: Xkb extension not found, Wine will be built without it" >&5
6194 echo "$as_me: WARNING: Xkb extension not found, Wine will be built without it" >&2;}
6195
6196 fi
6197
6198 done
6199
6200
6201
6202 for ac_header in X11/extensions/XShm.h
6203 do
6204 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6205 echo "$as_me:$LINENO: checking for $ac_header" >&5
6206 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6207 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6208   echo $ECHO_N "(cached) $ECHO_C" >&6
6209 else
6210   cat >conftest.$ac_ext <<_ACEOF
6211 #line $LINENO "configure"
6212 #include "confdefs.h"
6213 #include <X11/Xlib.h>
6214
6215 #include <$ac_header>
6216 _ACEOF
6217 rm -f conftest.$ac_objext
6218 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6219   (eval $ac_compile) 2>&5
6220   ac_status=$?
6221   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6222   (exit $ac_status); } &&
6223          { ac_try='test -s conftest.$ac_objext'
6224   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6225   (eval $ac_try) 2>&5
6226   ac_status=$?
6227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6228   (exit $ac_status); }; }; then
6229   eval "$as_ac_Header=yes"
6230 else
6231   echo "$as_me: failed program was:" >&5
6232 cat conftest.$ac_ext >&5
6233 eval "$as_ac_Header=no"
6234 fi
6235 rm -f conftest.$ac_objext conftest.$ac_ext
6236 fi
6237 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6238 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6239 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6240   cat >>confdefs.h <<_ACEOF
6241 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6242 _ACEOF
6243                 echo "$as_me:$LINENO: checking for XShmQueryExtension in -lXext" >&5
6244 echo $ECHO_N "checking for XShmQueryExtension in -lXext... $ECHO_C" >&6
6245 if test "${ac_cv_lib_Xext_XShmQueryExtension+set}" = set; then
6246   echo $ECHO_N "(cached) $ECHO_C" >&6
6247 else
6248   ac_check_lib_save_LIBS=$LIBS
6249 LIBS="-lXext $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
6250 cat >conftest.$ac_ext <<_ACEOF
6251 #line $LINENO "configure"
6252 #include "confdefs.h"
6253
6254 /* Override any gcc2 internal prototype to avoid an error.  */
6255 #ifdef __cplusplus
6256 extern "C"
6257 #endif
6258 /* We use char because int might match the return type of a gcc2
6259    builtin and then its argument prototype would still apply.  */
6260 char XShmQueryExtension ();
6261 #ifdef F77_DUMMY_MAIN
6262 #  ifdef __cplusplus
6263      extern "C"
6264 #  endif
6265    int F77_DUMMY_MAIN() { return 1; }
6266 #endif
6267 int
6268 main ()
6269 {
6270 XShmQueryExtension ();
6271   ;
6272   return 0;
6273 }
6274 _ACEOF
6275 rm -f conftest.$ac_objext conftest$ac_exeext
6276 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6277   (eval $ac_link) 2>&5
6278   ac_status=$?
6279   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6280   (exit $ac_status); } &&
6281          { ac_try='test -s conftest$ac_exeext'
6282   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6283   (eval $ac_try) 2>&5
6284   ac_status=$?
6285   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6286   (exit $ac_status); }; }; then
6287   ac_cv_lib_Xext_XShmQueryExtension=yes
6288 else
6289   echo "$as_me: failed program was:" >&5
6290 cat conftest.$ac_ext >&5
6291 ac_cv_lib_Xext_XShmQueryExtension=no
6292 fi
6293 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6294 LIBS=$ac_check_lib_save_LIBS
6295 fi
6296 echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShmQueryExtension" >&5
6297 echo "${ECHO_T}$ac_cv_lib_Xext_XShmQueryExtension" >&6
6298 if test $ac_cv_lib_Xext_XShmQueryExtension = yes; then
6299
6300 cat >>confdefs.h <<\_ACEOF
6301 #define HAVE_LIBXXSHM 1
6302 _ACEOF
6303
6304 fi
6305
6306
6307 else
6308   { echo "$as_me:$LINENO: WARNING: XShm extension not found, Wine will be built without it" >&5
6309 echo "$as_me: WARNING: XShm extension not found, Wine will be built without it" >&2;}
6310 fi
6311
6312 done
6313
6314
6315
6316 for ac_header in X11/extensions/shape.h
6317 do
6318 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6319 echo "$as_me:$LINENO: checking for $ac_header" >&5
6320 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6321 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6322   echo $ECHO_N "(cached) $ECHO_C" >&6
6323 else
6324   cat >conftest.$ac_ext <<_ACEOF
6325 #line $LINENO "configure"
6326 #include "confdefs.h"
6327 #include <X11/Xlib.h>
6328
6329 #include <$ac_header>
6330 _ACEOF
6331 rm -f conftest.$ac_objext
6332 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6333   (eval $ac_compile) 2>&5
6334   ac_status=$?
6335   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6336   (exit $ac_status); } &&
6337          { ac_try='test -s conftest.$ac_objext'
6338   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6339   (eval $ac_try) 2>&5
6340   ac_status=$?
6341   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6342   (exit $ac_status); }; }; then
6343   eval "$as_ac_Header=yes"
6344 else
6345   echo "$as_me: failed program was:" >&5
6346 cat conftest.$ac_ext >&5
6347 eval "$as_ac_Header=no"
6348 fi
6349 rm -f conftest.$ac_objext conftest.$ac_ext
6350 fi
6351 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6352 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6353 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6354   cat >>confdefs.h <<_ACEOF
6355 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6356 _ACEOF
6357                 echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
6358 echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6
6359 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
6360   echo $ECHO_N "(cached) $ECHO_C" >&6
6361 else
6362   ac_check_lib_save_LIBS=$LIBS
6363 LIBS="-lXext $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
6364 cat >conftest.$ac_ext <<_ACEOF
6365 #line $LINENO "configure"
6366 #include "confdefs.h"
6367
6368 /* Override any gcc2 internal prototype to avoid an error.  */
6369 #ifdef __cplusplus
6370 extern "C"
6371 #endif
6372 /* We use char because int might match the return type of a gcc2
6373    builtin and then its argument prototype would still apply.  */
6374 char XShapeQueryExtension ();
6375 #ifdef F77_DUMMY_MAIN
6376 #  ifdef __cplusplus
6377      extern "C"
6378 #  endif
6379    int F77_DUMMY_MAIN() { return 1; }
6380 #endif
6381 int
6382 main ()
6383 {
6384 XShapeQueryExtension ();
6385   ;
6386   return 0;
6387 }
6388 _ACEOF
6389 rm -f conftest.$ac_objext conftest$ac_exeext
6390 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6391   (eval $ac_link) 2>&5
6392   ac_status=$?
6393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6394   (exit $ac_status); } &&
6395          { ac_try='test -s conftest$ac_exeext'
6396   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6397   (eval $ac_try) 2>&5
6398   ac_status=$?
6399   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6400   (exit $ac_status); }; }; then
6401   ac_cv_lib_Xext_XShapeQueryExtension=yes
6402 else
6403   echo "$as_me: failed program was:" >&5
6404 cat conftest.$ac_ext >&5
6405 ac_cv_lib_Xext_XShapeQueryExtension=no
6406 fi
6407 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6408 LIBS=$ac_check_lib_save_LIBS
6409 fi
6410 echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
6411 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6
6412 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
6413
6414 cat >>confdefs.h <<\_ACEOF
6415 #define HAVE_LIBXSHAPE 1
6416 _ACEOF
6417
6418 fi
6419
6420
6421 else
6422   { echo "$as_me:$LINENO: WARNING: XShape extension not found, Wine will be built without it" >&5
6423 echo "$as_me: WARNING: XShape extension not found, Wine will be built without it" >&2;}
6424 fi
6425
6426 done
6427
6428
6429
6430 for ac_header in X11/extensions/xf86dga.h
6431 do
6432 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6433 echo "$as_me:$LINENO: checking for $ac_header" >&5
6434 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6435 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6436   echo $ECHO_N "(cached) $ECHO_C" >&6
6437 else
6438   cat >conftest.$ac_ext <<_ACEOF
6439 #line $LINENO "configure"
6440 #include "confdefs.h"
6441 #include <X11/Xlib.h>
6442
6443 #include <$ac_header>
6444 _ACEOF
6445 rm -f conftest.$ac_objext
6446 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6447   (eval $ac_compile) 2>&5
6448   ac_status=$?
6449   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6450   (exit $ac_status); } &&
6451          { ac_try='test -s conftest.$ac_objext'
6452   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6453   (eval $ac_try) 2>&5
6454   ac_status=$?
6455   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6456   (exit $ac_status); }; }; then
6457   eval "$as_ac_Header=yes"
6458 else
6459   echo "$as_me: failed program was:" >&5
6460 cat conftest.$ac_ext >&5
6461 eval "$as_ac_Header=no"
6462 fi
6463 rm -f conftest.$ac_objext conftest.$ac_ext
6464 fi
6465 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6466 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6467 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6468   cat >>confdefs.h <<_ACEOF
6469 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6470 _ACEOF
6471                               echo "$as_me:$LINENO: checking for XDGAQueryExtension in -lXxf86dga" >&5
6472 echo $ECHO_N "checking for XDGAQueryExtension in -lXxf86dga... $ECHO_C" >&6
6473 if test "${ac_cv_lib_Xxf86dga_XDGAQueryExtension+set}" = set; then
6474   echo $ECHO_N "(cached) $ECHO_C" >&6
6475 else
6476   ac_check_lib_save_LIBS=$LIBS
6477 LIBS="-lXxf86dga $X_LIBS -lXext -lX11 $X_EXTRA_LIBS
6478                $LIBS"
6479 cat >conftest.$ac_ext <<_ACEOF
6480 #line $LINENO "configure"
6481 #include "confdefs.h"
6482
6483 /* Override any gcc2 internal prototype to avoid an error.  */
6484 #ifdef __cplusplus
6485 extern "C"
6486 #endif
6487 /* We use char because int might match the return type of a gcc2
6488    builtin and then its argument prototype would still apply.  */
6489 char XDGAQueryExtension ();
6490 #ifdef F77_DUMMY_MAIN
6491 #  ifdef __cplusplus
6492      extern "C"
6493 #  endif
6494    int F77_DUMMY_MAIN() { return 1; }
6495 #endif
6496 int
6497 main ()
6498 {
6499 XDGAQueryExtension ();
6500   ;
6501   return 0;
6502 }
6503 _ACEOF
6504 rm -f conftest.$ac_objext conftest$ac_exeext
6505 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6506   (eval $ac_link) 2>&5
6507   ac_status=$?
6508   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6509   (exit $ac_status); } &&
6510          { ac_try='test -s conftest$ac_exeext'
6511   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6512   (eval $ac_try) 2>&5
6513   ac_status=$?
6514   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6515   (exit $ac_status); }; }; then
6516   ac_cv_lib_Xxf86dga_XDGAQueryExtension=yes
6517 else
6518   echo "$as_me: failed program was:" >&5
6519 cat conftest.$ac_ext >&5
6520 ac_cv_lib_Xxf86dga_XDGAQueryExtension=no
6521 fi
6522 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6523 LIBS=$ac_check_lib_save_LIBS
6524 fi
6525 echo "$as_me:$LINENO: result: $ac_cv_lib_Xxf86dga_XDGAQueryExtension" >&5
6526 echo "${ECHO_T}$ac_cv_lib_Xxf86dga_XDGAQueryExtension" >&6
6527 if test $ac_cv_lib_Xxf86dga_XDGAQueryExtension = yes; then
6528
6529 cat >>confdefs.h <<\_ACEOF
6530 #define HAVE_LIBXXF86DGA2 1
6531 _ACEOF
6532
6533                   X_PRE_LIBS="$X_PRE_LIBS -lXxf86dga"
6534
6535 else
6536                                        echo "$as_me:$LINENO: checking for XF86DGAQueryExtension in -lXxf86dga" >&5
6537 echo $ECHO_N "checking for XF86DGAQueryExtension in -lXxf86dga... $ECHO_C" >&6
6538 if test "${ac_cv_lib_Xxf86dga_XF86DGAQueryExtension+set}" = set; then
6539   echo $ECHO_N "(cached) $ECHO_C" >&6
6540 else
6541   ac_check_lib_save_LIBS=$LIBS
6542 LIBS="-lXxf86dga $X_LIBS -lXext -lX11 $X_EXTRA_LIBS
6543                    $LIBS"
6544 cat >conftest.$ac_ext <<_ACEOF
6545 #line $LINENO "configure"
6546 #include "confdefs.h"
6547
6548 /* Override any gcc2 internal prototype to avoid an error.  */
6549 #ifdef __cplusplus
6550 extern "C"
6551 #endif
6552 /* We use char because int might match the return type of a gcc2
6553    builtin and then its argument prototype would still apply.  */
6554 char XF86DGAQueryExtension ();
6555 #ifdef F77_DUMMY_MAIN
6556 #  ifdef __cplusplus
6557      extern "C"
6558 #  endif
6559    int F77_DUMMY_MAIN() { return 1; }
6560 #endif
6561 int
6562 main ()
6563 {
6564 XF86DGAQueryExtension ();
6565   ;
6566   return 0;
6567 }
6568 _ACEOF
6569 rm -f conftest.$ac_objext conftest$ac_exeext
6570 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6571   (eval $ac_link) 2>&5
6572   ac_status=$?
6573   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6574   (exit $ac_status); } &&
6575          { ac_try='test -s conftest$ac_exeext'
6576   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6577   (eval $ac_try) 2>&5
6578   ac_status=$?
6579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6580   (exit $ac_status); }; }; then
6581   ac_cv_lib_Xxf86dga_XF86DGAQueryExtension=yes
6582 else
6583   echo "$as_me: failed program was:" >&5
6584 cat conftest.$ac_ext >&5
6585 ac_cv_lib_Xxf86dga_XF86DGAQueryExtension=no
6586 fi
6587 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6588 LIBS=$ac_check_lib_save_LIBS
6589 fi
6590 echo "$as_me:$LINENO: result: $ac_cv_lib_Xxf86dga_XF86DGAQueryExtension" >&5
6591 echo "${ECHO_T}$ac_cv_lib_Xxf86dga_XF86DGAQueryExtension" >&6
6592 if test $ac_cv_lib_Xxf86dga_XF86DGAQueryExtension = yes; then
6593
6594 cat >>confdefs.h <<\_ACEOF
6595 #define HAVE_LIBXXF86DGA 1
6596 _ACEOF
6597
6598                       X_PRE_LIBS="$X_PRE_LIBS -lXxf86dga"
6599
6600 fi
6601
6602
6603 fi
6604
6605
6606 else
6607   { echo "$as_me:$LINENO: WARNING: DGA extension not found, Wine will be built without it" >&5
6608 echo "$as_me: WARNING: DGA extension not found, Wine will be built without it" >&2;}
6609 fi
6610
6611 done
6612
6613
6614
6615 for ac_header in X11/extensions/xf86vmode.h
6616 do
6617 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6618 echo "$as_me:$LINENO: checking for $ac_header" >&5
6619 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6620 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6621   echo $ECHO_N "(cached) $ECHO_C" >&6
6622 else
6623   cat >conftest.$ac_ext <<_ACEOF
6624 #line $LINENO "configure"
6625 #include "confdefs.h"
6626 #include <X11/Xlib.h>
6627
6628 #include <$ac_header>
6629 _ACEOF
6630 rm -f conftest.$ac_objext
6631 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6632   (eval $ac_compile) 2>&5
6633   ac_status=$?
6634   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6635   (exit $ac_status); } &&
6636          { ac_try='test -s conftest.$ac_objext'
6637   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6638   (eval $ac_try) 2>&5
6639   ac_status=$?
6640   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6641   (exit $ac_status); }; }; then
6642   eval "$as_ac_Header=yes"
6643 else
6644   echo "$as_me: failed program was:" >&5
6645 cat conftest.$ac_ext >&5
6646 eval "$as_ac_Header=no"
6647 fi
6648 rm -f conftest.$ac_objext conftest.$ac_ext
6649 fi
6650 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6651 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6652 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6653   cat >>confdefs.h <<_ACEOF
6654 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6655 _ACEOF
6656                   echo "$as_me:$LINENO: checking for XF86VidModeQueryExtension in -lXxf86vm" >&5
6657 echo $ECHO_N "checking for XF86VidModeQueryExtension in -lXxf86vm... $ECHO_C" >&6
6658 if test "${ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension+set}" = set; then
6659   echo $ECHO_N "(cached) $ECHO_C" >&6
6660 else
6661   ac_check_lib_save_LIBS=$LIBS
6662 LIBS="-lXxf86vm $X_LIBS -lXext -lX11 $X_EXTRA_LIBS
6663                  $LIBS"
6664 cat >conftest.$ac_ext <<_ACEOF
6665 #line $LINENO "configure"
6666 #include "confdefs.h"
6667
6668 /* Override any gcc2 internal prototype to avoid an error.  */
6669 #ifdef __cplusplus
6670 extern "C"
6671 #endif
6672 /* We use char because int might match the return type of a gcc2
6673    builtin and then its argument prototype would still apply.  */
6674 char XF86VidModeQueryExtension ();
6675 #ifdef F77_DUMMY_MAIN
6676 #  ifdef __cplusplus
6677      extern "C"
6678 #  endif
6679    int F77_DUMMY_MAIN() { return 1; }
6680 #endif
6681 int
6682 main ()
6683 {
6684 XF86VidModeQueryExtension ();
6685   ;
6686   return 0;
6687 }
6688 _ACEOF
6689 rm -f conftest.$ac_objext conftest$ac_exeext
6690 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6691   (eval $ac_link) 2>&5
6692   ac_status=$?
6693   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6694   (exit $ac_status); } &&
6695          { ac_try='test -s conftest$ac_exeext'
6696   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6697   (eval $ac_try) 2>&5
6698   ac_status=$?
6699   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6700   (exit $ac_status); }; }; then
6701   ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=yes
6702 else
6703   echo "$as_me: failed program was:" >&5
6704 cat conftest.$ac_ext >&5
6705 ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=no
6706 fi
6707 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6708 LIBS=$ac_check_lib_save_LIBS
6709 fi
6710 echo "$as_me:$LINENO: result: $ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&5
6711 echo "${ECHO_T}$ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&6
6712 if test $ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension = yes; then
6713
6714 cat >>confdefs.h <<\_ACEOF
6715 #define HAVE_LIBXXF86VM 1
6716 _ACEOF
6717
6718                      X_PRE_LIBS="$X_PRE_LIBS -lXxf86vm"
6719
6720 fi
6721
6722
6723 else
6724   { echo "$as_me:$LINENO: WARNING: XFree86 VMODE extension not found, Wine will be built without it" >&5
6725 echo "$as_me: WARNING: XFree86 VMODE extension not found, Wine will be built without it" >&2;}
6726 fi
6727
6728 done
6729
6730
6731
6732 for ac_header in X11/extensions/Xvlib.h
6733 do
6734 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6735 echo "$as_me:$LINENO: checking for $ac_header" >&5
6736 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6737 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6738   echo $ECHO_N "(cached) $ECHO_C" >&6
6739 else
6740   cat >conftest.$ac_ext <<_ACEOF
6741 #line $LINENO "configure"
6742 #include "confdefs.h"
6743 #include <X11/Xlib.h>
6744
6745 #include <$ac_header>
6746 _ACEOF
6747 rm -f conftest.$ac_objext
6748 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6749   (eval $ac_compile) 2>&5
6750   ac_status=$?
6751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6752   (exit $ac_status); } &&
6753          { ac_try='test -s conftest.$ac_objext'
6754   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6755   (eval $ac_try) 2>&5
6756   ac_status=$?
6757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6758   (exit $ac_status); }; }; then
6759   eval "$as_ac_Header=yes"
6760 else
6761   echo "$as_me: failed program was:" >&5
6762 cat conftest.$ac_ext >&5
6763 eval "$as_ac_Header=no"
6764 fi
6765 rm -f conftest.$ac_objext conftest.$ac_ext
6766 fi
6767 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6768 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6769 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6770   cat >>confdefs.h <<_ACEOF
6771 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6772 _ACEOF
6773                   echo "$as_me:$LINENO: checking for XvShmCreateImage in -lXv" >&5
6774 echo $ECHO_N "checking for XvShmCreateImage in -lXv... $ECHO_C" >&6
6775 if test "${ac_cv_lib_Xv_XvShmCreateImage+set}" = set; then
6776   echo $ECHO_N "(cached) $ECHO_C" >&6
6777 else
6778   ac_check_lib_save_LIBS=$LIBS
6779 LIBS="-lXv $X_LIBS -lXext -lX11 $X_EXTRA_LIBS
6780                  $LIBS"
6781 cat >conftest.$ac_ext <<_ACEOF
6782 #line $LINENO "configure"
6783 #include "confdefs.h"
6784
6785 /* Override any gcc2 internal prototype to avoid an error.  */
6786 #ifdef __cplusplus
6787 extern "C"
6788 #endif
6789 /* We use char because int might match the return type of a gcc2
6790    builtin and then its argument prototype would still apply.  */
6791 char XvShmCreateImage ();
6792 #ifdef F77_DUMMY_MAIN
6793 #  ifdef __cplusplus
6794      extern "C"
6795 #  endif
6796    int F77_DUMMY_MAIN() { return 1; }
6797 #endif
6798 int
6799 main ()
6800 {
6801 XvShmCreateImage ();
6802   ;
6803   return 0;
6804 }
6805 _ACEOF
6806 rm -f conftest.$ac_objext conftest$ac_exeext
6807 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6808   (eval $ac_link) 2>&5
6809   ac_status=$?
6810   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6811   (exit $ac_status); } &&
6812          { ac_try='test -s conftest$ac_exeext'
6813   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6814   (eval $ac_try) 2>&5
6815   ac_status=$?
6816   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6817   (exit $ac_status); }; }; then
6818   ac_cv_lib_Xv_XvShmCreateImage=yes
6819 else
6820   echo "$as_me: failed program was:" >&5
6821 cat conftest.$ac_ext >&5
6822 ac_cv_lib_Xv_XvShmCreateImage=no
6823 fi
6824 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6825 LIBS=$ac_check_lib_save_LIBS
6826 fi
6827 echo "$as_me:$LINENO: result: $ac_cv_lib_Xv_XvShmCreateImage" >&5
6828 echo "${ECHO_T}$ac_cv_lib_Xv_XvShmCreateImage" >&6
6829 if test $ac_cv_lib_Xv_XvShmCreateImage = yes; then
6830
6831 cat >>confdefs.h <<\_ACEOF
6832 #define HAVE_XVIDEO 1
6833 _ACEOF
6834
6835                      X_PRE_LIBS="$X_PRE_LIBS -lXv"
6836
6837 fi
6838
6839
6840 else
6841   { echo "$as_me:$LINENO: WARNING: XVideo extension not found, Wine will be built without it" >&5
6842 echo "$as_me: WARNING: XVideo extension not found, Wine will be built without it" >&2;}
6843 fi
6844
6845 done
6846
6847
6848
6849 for ac_header in X11/extensions/Xrender.h
6850 do
6851 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6852 echo "$as_me:$LINENO: checking for $ac_header" >&5
6853 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6854 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6855   echo $ECHO_N "(cached) $ECHO_C" >&6
6856 else
6857   cat >conftest.$ac_ext <<_ACEOF
6858 #line $LINENO "configure"
6859 #include "confdefs.h"
6860 #include <X11/Xlib.h>
6861
6862 #include <$ac_header>
6863 _ACEOF
6864 rm -f conftest.$ac_objext
6865 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6866   (eval $ac_compile) 2>&5
6867   ac_status=$?
6868   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6869   (exit $ac_status); } &&
6870          { ac_try='test -s conftest.$ac_objext'
6871   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6872   (eval $ac_try) 2>&5
6873   ac_status=$?
6874   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6875   (exit $ac_status); }; }; then
6876   eval "$as_ac_Header=yes"
6877 else
6878   echo "$as_me: failed program was:" >&5
6879 cat conftest.$ac_ext >&5
6880 eval "$as_ac_Header=no"
6881 fi
6882 rm -f conftest.$ac_objext conftest.$ac_ext
6883 fi
6884 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6885 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6886 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6887   cat >>confdefs.h <<_ACEOF
6888 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6889 _ACEOF
6890                   echo "$as_me:$LINENO: checking for XRenderQueryExtension in -lXrender" >&5
6891 echo $ECHO_N "checking for XRenderQueryExtension in -lXrender... $ECHO_C" >&6
6892 if test "${ac_cv_lib_Xrender_XRenderQueryExtension+set}" = set; then
6893   echo $ECHO_N "(cached) $ECHO_C" >&6
6894 else
6895   ac_check_lib_save_LIBS=$LIBS
6896 LIBS="-lXrender $X_LIBS -lXext -lX11 $X_EXTRA_LIBS
6897                  $LIBS"
6898 cat >conftest.$ac_ext <<_ACEOF
6899 #line $LINENO "configure"
6900 #include "confdefs.h"
6901
6902 /* Override any gcc2 internal prototype to avoid an error.  */
6903 #ifdef __cplusplus
6904 extern "C"
6905 #endif
6906 /* We use char because int might match the return type of a gcc2
6907    builtin and then its argument prototype would still apply.  */
6908 char XRenderQueryExtension ();
6909 #ifdef F77_DUMMY_MAIN
6910 #  ifdef __cplusplus
6911      extern "C"
6912 #  endif
6913    int F77_DUMMY_MAIN() { return 1; }
6914 #endif
6915 int
6916 main ()
6917 {
6918 XRenderQueryExtension ();
6919   ;
6920   return 0;
6921 }
6922 _ACEOF
6923 rm -f conftest.$ac_objext conftest$ac_exeext
6924 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6925   (eval $ac_link) 2>&5
6926   ac_status=$?
6927   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6928   (exit $ac_status); } &&
6929          { ac_try='test -s conftest$ac_exeext'
6930   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6931   (eval $ac_try) 2>&5
6932   ac_status=$?
6933   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6934   (exit $ac_status); }; }; then
6935   ac_cv_lib_Xrender_XRenderQueryExtension=yes
6936 else
6937   echo "$as_me: failed program was:" >&5
6938 cat conftest.$ac_ext >&5
6939 ac_cv_lib_Xrender_XRenderQueryExtension=no
6940 fi
6941 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6942 LIBS=$ac_check_lib_save_LIBS
6943 fi
6944 echo "$as_me:$LINENO: result: $ac_cv_lib_Xrender_XRenderQueryExtension" >&5
6945 echo "${ECHO_T}$ac_cv_lib_Xrender_XRenderQueryExtension" >&6
6946 if test $ac_cv_lib_Xrender_XRenderQueryExtension = yes; then
6947
6948 cat >>confdefs.h <<\_ACEOF
6949 #define HAVE_LIBXRENDER 1
6950 _ACEOF
6951
6952                      X_PRE_LIBS="$X_PRE_LIBS -lXrender"
6953
6954 fi
6955
6956
6957 else
6958   { echo "$as_me:$LINENO: WARNING: XRender extension not found, Wine will be built without it" >&5
6959 echo "$as_me: WARNING: XRender extension not found, Wine will be built without it" >&2;}
6960 fi
6961
6962 done
6963
6964
6965
6966
6967 fi
6968
6969 done
6970
6971         if test "x$enable_opengl" != "xno"
6972     then
6973         if test -f /usr/X11R6/lib/libGL.a -a ! -f /usr/X11R6/lib/libGL.so
6974         then
6975             { { echo "$as_me:$LINENO: error: /usr/X11R6/lib/libGL.a is present on your system.
6976 This prevents linking to OpenGL. Delete the file and restart configure." >&5
6977 echo "$as_me: error: /usr/X11R6/lib/libGL.a is present on your system.
6978 This prevents linking to OpenGL. Delete the file and restart configure." >&2;}
6979    { (exit 1); exit 1; }; }
6980         fi
6981
6982
6983
6984 for ac_header in GL/gl.h GL/glx.h
6985 do
6986 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6987 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6988   echo "$as_me:$LINENO: checking for $ac_header" >&5
6989 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6990 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6991   echo $ECHO_N "(cached) $ECHO_C" >&6
6992 fi
6993 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6994 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6995 else
6996   # Is the header compilable?
6997 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6998 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6999 cat >conftest.$ac_ext <<_ACEOF
7000 #line $LINENO "configure"
7001 #include "confdefs.h"
7002 $ac_includes_default
7003 #include <$ac_header>
7004 _ACEOF
7005 rm -f conftest.$ac_objext
7006 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7007   (eval $ac_compile) 2>&5
7008   ac_status=$?
7009   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7010   (exit $ac_status); } &&
7011          { ac_try='test -s conftest.$ac_objext'
7012   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7013   (eval $ac_try) 2>&5
7014   ac_status=$?
7015   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7016   (exit $ac_status); }; }; then
7017   ac_header_compiler=yes
7018 else
7019   echo "$as_me: failed program was:" >&5
7020 cat conftest.$ac_ext >&5
7021 ac_header_compiler=no
7022 fi
7023 rm -f conftest.$ac_objext conftest.$ac_ext
7024 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7025 echo "${ECHO_T}$ac_header_compiler" >&6
7026
7027 # Is the header present?
7028 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7029 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7030 cat >conftest.$ac_ext <<_ACEOF
7031 #line $LINENO "configure"
7032 #include "confdefs.h"
7033 #include <$ac_header>
7034 _ACEOF
7035 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7036   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7037   ac_status=$?
7038   egrep -v '^ *\+' conftest.er1 >conftest.err
7039   rm -f conftest.er1
7040   cat conftest.err >&5
7041   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7042   (exit $ac_status); } >/dev/null; then
7043   if test -s conftest.err; then
7044     ac_cpp_err=$ac_c_preproc_warn_flag
7045   else
7046     ac_cpp_err=
7047   fi
7048 else
7049   ac_cpp_err=yes
7050 fi
7051 if test -z "$ac_cpp_err"; then
7052   ac_header_preproc=yes
7053 else
7054   echo "$as_me: failed program was:" >&5
7055   cat conftest.$ac_ext >&5
7056   ac_header_preproc=no
7057 fi
7058 rm -f conftest.err conftest.$ac_ext
7059 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7060 echo "${ECHO_T}$ac_header_preproc" >&6
7061
7062 # So?  What about this header?
7063 case $ac_header_compiler:$ac_header_preproc in
7064   yes:no )
7065     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7066 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7067     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7068 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7069   no:yes )
7070     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7071 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7072     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7073 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7074     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7075 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7076 esac
7077 echo "$as_me:$LINENO: checking for $ac_header" >&5
7078 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7079 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7080   echo $ECHO_N "(cached) $ECHO_C" >&6
7081 else
7082   eval "$as_ac_Header=$ac_header_preproc"
7083 fi
7084 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7085 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7086
7087 fi
7088 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7089   cat >>confdefs.h <<_ACEOF
7090 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7091 _ACEOF
7092
7093 fi
7094
7095 done
7096
7097         if test "$ac_cv_header_GL_gl_h" = "yes" -a "$ac_cv_header_GL_glx_h" = "yes"
7098         then
7099
7100 for ac_header in GL/glext.h
7101 do
7102 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7103 echo "$as_me:$LINENO: checking for $ac_header" >&5
7104 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7105 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7106   echo $ECHO_N "(cached) $ECHO_C" >&6
7107 else
7108   cat >conftest.$ac_ext <<_ACEOF
7109 #line $LINENO "configure"
7110 #include "confdefs.h"
7111 #include <GL/glx.h>
7112
7113 #include <$ac_header>
7114 _ACEOF
7115 rm -f conftest.$ac_objext
7116 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7117   (eval $ac_compile) 2>&5
7118   ac_status=$?
7119   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7120   (exit $ac_status); } &&
7121          { ac_try='test -s conftest.$ac_objext'
7122   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7123   (eval $ac_try) 2>&5
7124   ac_status=$?
7125   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7126   (exit $ac_status); }; }; then
7127   eval "$as_ac_Header=yes"
7128 else
7129   echo "$as_me: failed program was:" >&5
7130 cat conftest.$ac_ext >&5
7131 eval "$as_ac_Header=no"
7132 fi
7133 rm -f conftest.$ac_objext conftest.$ac_ext
7134 fi
7135 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7136 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7137 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7138   cat >>confdefs.h <<_ACEOF
7139 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7140 _ACEOF
7141
7142 fi
7143
7144 done
7145
7146                     echo "$as_me:$LINENO: checking for up-to-date OpenGL version" >&5
7147 echo $ECHO_N "checking for up-to-date OpenGL version... $ECHO_C" >&6
7148 if test "${wine_cv_opengl_version_OK+set}" = set; then
7149   echo $ECHO_N "(cached) $ECHO_C" >&6
7150 else
7151   cat >conftest.$ac_ext <<_ACEOF
7152 #line $LINENO "configure"
7153 #include "confdefs.h"
7154 #include <GL/gl.h>
7155 #ifdef F77_DUMMY_MAIN
7156 #  ifdef __cplusplus
7157      extern "C"
7158 #  endif
7159    int F77_DUMMY_MAIN() { return 1; }
7160 #endif
7161 int
7162 main ()
7163 {
7164 GLenum test = GL_UNSIGNED_SHORT_5_6_5;
7165   ;
7166   return 0;
7167 }
7168 _ACEOF
7169 rm -f conftest.$ac_objext
7170 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7171   (eval $ac_compile) 2>&5
7172   ac_status=$?
7173   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7174   (exit $ac_status); } &&
7175          { ac_try='test -s conftest.$ac_objext'
7176   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7177   (eval $ac_try) 2>&5
7178   ac_status=$?
7179   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7180   (exit $ac_status); }; }; then
7181   wine_cv_opengl_version_OK="yes"
7182 else
7183   echo "$as_me: failed program was:" >&5
7184 cat conftest.$ac_ext >&5
7185 wine_cv_opengl_version_OK="no"
7186
7187 fi
7188 rm -f conftest.$ac_objext conftest.$ac_ext
7189
7190 fi
7191 echo "$as_me:$LINENO: result: $wine_cv_opengl_version_OK" >&5
7192 echo "${ECHO_T}$wine_cv_opengl_version_OK" >&6
7193
7194                     echo "$as_me:$LINENO: checking for thread-safe OpenGL version" >&5
7195 echo $ECHO_N "checking for thread-safe OpenGL version... $ECHO_C" >&6
7196 if test "${wine_cv_opengl_version_threadsafe+set}" = set; then
7197   echo $ECHO_N "(cached) $ECHO_C" >&6
7198 else
7199   saved_libs=$LIBS
7200                LIBS="$X_LIBS -lGL"
7201                cat >conftest.$ac_ext <<_ACEOF
7202 #line $LINENO "configure"
7203 #include "confdefs.h"
7204
7205 #ifdef F77_DUMMY_MAIN
7206 #  ifdef __cplusplus
7207      extern "C"
7208 #  endif
7209    int F77_DUMMY_MAIN() { return 1; }
7210 #endif
7211 int
7212 main ()
7213 {
7214 pthread_getspecific();
7215   ;
7216   return 0;
7217 }
7218 _ACEOF
7219 rm -f conftest.$ac_objext conftest$ac_exeext
7220 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7221   (eval $ac_link) 2>&5
7222   ac_status=$?
7223   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7224   (exit $ac_status); } &&
7225          { ac_try='test -s conftest$ac_exeext'
7226   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7227   (eval $ac_try) 2>&5
7228   ac_status=$?
7229   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7230   (exit $ac_status); }; }; then
7231   wine_cv_opengl_version_threadsafe="yes"
7232 else
7233   echo "$as_me: failed program was:" >&5
7234 cat conftest.$ac_ext >&5
7235 wine_cv_opengl_version_threadsafe="no"
7236 fi
7237 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7238                LIBS=$saved_libs
7239
7240 fi
7241 echo "$as_me:$LINENO: result: $wine_cv_opengl_version_threadsafe" >&5
7242 echo "${ECHO_T}$wine_cv_opengl_version_threadsafe" >&6
7243
7244             if test "$wine_cv_opengl_version_OK" = "yes" -a \( "$wine_cv_opengl_version_threadsafe" = "no" -o "x$enable_opengl" = "xyes" \)
7245             then
7246                                 echo "$as_me:$LINENO: checking for glXCreateContext in -lGL" >&5
7247 echo $ECHO_N "checking for glXCreateContext in -lGL... $ECHO_C" >&6
7248 if test "${ac_cv_lib_GL_glXCreateContext+set}" = set; then
7249   echo $ECHO_N "(cached) $ECHO_C" >&6
7250 else
7251   ac_check_lib_save_LIBS=$LIBS
7252 LIBS="-lGL $X_LIBS -lXext -lX11 -lm $X_EXTRA_LIBS $LIBS"
7253 cat >conftest.$ac_ext <<_ACEOF
7254 #line $LINENO "configure"
7255 #include "confdefs.h"
7256
7257 /* Override any gcc2 internal prototype to avoid an error.  */
7258 #ifdef __cplusplus
7259 extern "C"
7260 #endif
7261 /* We use char because int might match the return type of a gcc2
7262    builtin and then its argument prototype would still apply.  */
7263 char glXCreateContext ();
7264 #ifdef F77_DUMMY_MAIN
7265 #  ifdef __cplusplus
7266      extern "C"
7267 #  endif
7268    int F77_DUMMY_MAIN() { return 1; }
7269 #endif
7270 int
7271 main ()
7272 {
7273 glXCreateContext ();
7274   ;
7275   return 0;
7276 }
7277 _ACEOF
7278 rm -f conftest.$ac_objext conftest$ac_exeext
7279 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7280   (eval $ac_link) 2>&5
7281   ac_status=$?
7282   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7283   (exit $ac_status); } &&
7284          { ac_try='test -s conftest$ac_exeext'
7285   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7286   (eval $ac_try) 2>&5
7287   ac_status=$?
7288   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7289   (exit $ac_status); }; }; then
7290   ac_cv_lib_GL_glXCreateContext=yes
7291 else
7292   echo "$as_me: failed program was:" >&5
7293 cat conftest.$ac_ext >&5
7294 ac_cv_lib_GL_glXCreateContext=no
7295 fi
7296 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7297 LIBS=$ac_check_lib_save_LIBS
7298 fi
7299 echo "$as_me:$LINENO: result: $ac_cv_lib_GL_glXCreateContext" >&5
7300 echo "${ECHO_T}$ac_cv_lib_GL_glXCreateContext" >&6
7301 if test $ac_cv_lib_GL_glXCreateContext = yes; then
7302   X_PRE_LIBS="$X_PRE_LIBS -lGL"
7303
7304 fi
7305
7306
7307                 if test "$ac_cv_lib_GL_glXCreateContext" = "yes"
7308                 then
7309                         OPENGLFILES='$(OPENGLFILES)'
7310
7311 cat >>confdefs.h <<\_ACEOF
7312 #define HAVE_OPENGL 1
7313 _ACEOF
7314
7315
7316                         echo "$as_me:$LINENO: checking for glXGetProcAddressARB in -lGL" >&5
7317 echo $ECHO_N "checking for glXGetProcAddressARB in -lGL... $ECHO_C" >&6
7318 if test "${ac_cv_lib_GL_glXGetProcAddressARB+set}" = set; then
7319   echo $ECHO_N "(cached) $ECHO_C" >&6
7320 else
7321   ac_check_lib_save_LIBS=$LIBS
7322 LIBS="-lGL $X_LIBS -lXext -lX11 -lm $X_EXTRA_LIBS $LIBS"
7323 cat >conftest.$ac_ext <<_ACEOF
7324 #line $LINENO "configure"
7325 #include "confdefs.h"
7326
7327 /* Override any gcc2 internal prototype to avoid an error.  */
7328 #ifdef __cplusplus
7329 extern "C"
7330 #endif
7331 /* We use char because int might match the return type of a gcc2
7332    builtin and then its argument prototype would still apply.  */
7333 char glXGetProcAddressARB ();
7334 #ifdef F77_DUMMY_MAIN
7335 #  ifdef __cplusplus
7336      extern "C"
7337 #  endif
7338    int F77_DUMMY_MAIN() { return 1; }
7339 #endif
7340 int
7341 main ()
7342 {
7343 glXGetProcAddressARB ();
7344   ;
7345   return 0;
7346 }
7347 _ACEOF
7348 rm -f conftest.$ac_objext conftest$ac_exeext
7349 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7350   (eval $ac_link) 2>&5
7351   ac_status=$?
7352   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7353   (exit $ac_status); } &&
7354          { ac_try='test -s conftest$ac_exeext'
7355   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7356   (eval $ac_try) 2>&5
7357   ac_status=$?
7358   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7359   (exit $ac_status); }; }; then
7360   ac_cv_lib_GL_glXGetProcAddressARB=yes
7361 else
7362   echo "$as_me: failed program was:" >&5
7363 cat conftest.$ac_ext >&5
7364 ac_cv_lib_GL_glXGetProcAddressARB=no
7365 fi
7366 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7367 LIBS=$ac_check_lib_save_LIBS
7368 fi
7369 echo "$as_me:$LINENO: result: $ac_cv_lib_GL_glXGetProcAddressARB" >&5
7370 echo "${ECHO_T}$ac_cv_lib_GL_glXGetProcAddressARB" >&6
7371 if test $ac_cv_lib_GL_glXGetProcAddressARB = yes; then
7372
7373 cat >>confdefs.h <<\_ACEOF
7374 #define HAVE_GLX_GETPROCADDRESS 1
7375 _ACEOF
7376
7377 fi
7378
7379
7380                         if test "$ac_cv_lib_GL_glXGetProcAddressARB" = "yes"
7381                         then
7382                                echo "$as_me:$LINENO: checking for OpenGL extension functions prototypes" >&5
7383 echo $ECHO_N "checking for OpenGL extension functions prototypes... $ECHO_C" >&6
7384 if test "${wine_cv_extension_prototypes+set}" = set; then
7385   echo $ECHO_N "(cached) $ECHO_C" >&6
7386 else
7387   cat >conftest.$ac_ext <<_ACEOF
7388 #line $LINENO "configure"
7389 #include "confdefs.h"
7390 #include <GL/gl.h>
7391                                                   #ifdef HAVE_GL_GLEXT_H
7392                                                   # include <GL/glext.h>
7393                                                   #endif
7394
7395 #ifdef F77_DUMMY_MAIN
7396 #  ifdef __cplusplus
7397      extern "C"
7398 #  endif
7399    int F77_DUMMY_MAIN() { return 1; }
7400 #endif
7401 int
7402 main ()
7403 {
7404 PFNGLCOLORTABLEEXTPROC test_proc;
7405   ;
7406   return 0;
7407 }
7408 _ACEOF
7409 rm -f conftest.$ac_objext
7410 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7411   (eval $ac_compile) 2>&5
7412   ac_status=$?
7413   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7414   (exit $ac_status); } &&
7415          { ac_try='test -s conftest.$ac_objext'
7416   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7417   (eval $ac_try) 2>&5
7418   ac_status=$?
7419   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7420   (exit $ac_status); }; }; then
7421   wine_cv_extension_prototypes="yes"
7422 else
7423   echo "$as_me: failed program was:" >&5
7424 cat conftest.$ac_ext >&5
7425 wine_cv_extension_prototypes="no"
7426
7427 fi
7428 rm -f conftest.$ac_objext conftest.$ac_ext
7429
7430 fi
7431 echo "$as_me:$LINENO: result: $wine_cv_extension_prototypes" >&5
7432 echo "${ECHO_T}$wine_cv_extension_prototypes" >&6
7433                                 if test "$wine_cv_extension_prototypes" = "yes"
7434                                 then
7435
7436 cat >>confdefs.h <<\_ACEOF
7437 #define HAVE_GLEXT_PROTOTYPES 1
7438 _ACEOF
7439
7440                                 fi
7441                         fi
7442
7443                 fi
7444                                 echo "$as_me:$LINENO: checking for gluLookAt in -lGLU" >&5
7445 echo $ECHO_N "checking for gluLookAt in -lGLU... $ECHO_C" >&6
7446 if test "${ac_cv_lib_GLU_gluLookAt+set}" = set; then
7447   echo $ECHO_N "(cached) $ECHO_C" >&6
7448 else
7449   ac_check_lib_save_LIBS=$LIBS
7450 LIBS="-lGLU $X_LIBS $X_PRE_LIBS -lXext -lX11 -lm $X_EXTRA_LIBS
7451                  $LIBS"
7452 cat >conftest.$ac_ext <<_ACEOF
7453 #line $LINENO "configure"
7454 #include "confdefs.h"
7455
7456 /* Override any gcc2 internal prototype to avoid an error.  */
7457 #ifdef __cplusplus
7458 extern "C"
7459 #endif
7460 /* We use char because int might match the return type of a gcc2
7461    builtin and then its argument prototype would still apply.  */
7462 char gluLookAt ();
7463 #ifdef F77_DUMMY_MAIN
7464 #  ifdef __cplusplus
7465      extern "C"
7466 #  endif
7467    int F77_DUMMY_MAIN() { return 1; }
7468 #endif
7469 int
7470 main ()
7471 {
7472 gluLookAt ();
7473   ;
7474   return 0;
7475 }
7476 _ACEOF
7477 rm -f conftest.$ac_objext conftest$ac_exeext
7478 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7479   (eval $ac_link) 2>&5
7480   ac_status=$?
7481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7482   (exit $ac_status); } &&
7483          { ac_try='test -s conftest$ac_exeext'
7484   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7485   (eval $ac_try) 2>&5
7486   ac_status=$?
7487   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7488   (exit $ac_status); }; }; then
7489   ac_cv_lib_GLU_gluLookAt=yes
7490 else
7491   echo "$as_me: failed program was:" >&5
7492 cat conftest.$ac_ext >&5
7493 ac_cv_lib_GLU_gluLookAt=no
7494 fi
7495 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7496 LIBS=$ac_check_lib_save_LIBS
7497 fi
7498 echo "$as_me:$LINENO: result: $ac_cv_lib_GLU_gluLookAt" >&5
7499 echo "${ECHO_T}$ac_cv_lib_GLU_gluLookAt" >&6
7500 if test $ac_cv_lib_GLU_gluLookAt = yes; then
7501   X_PRE_LIBS="$X_PRE_LIBS -lGLU"
7502                              GLU32FILES='$(GLU32FILES)'
7503
7504 fi
7505
7506              fi
7507          fi
7508     fi
7509
7510     CPPFLAGS="$ac_save_CPPFLAGS"
7511     XFILES='$(XFILES)'
7512 else
7513     XLIB=""
7514     X_CFLAGS=""
7515     X_LIBS=""
7516 fi
7517
7518 CURSESLIBS=""
7519 if test "x$with_curses" != "xno"
7520 then
7521
7522 for ac_header in ncurses.h
7523 do
7524 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7525 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7526   echo "$as_me:$LINENO: checking for $ac_header" >&5
7527 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7528 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7529   echo $ECHO_N "(cached) $ECHO_C" >&6
7530 fi
7531 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7532 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7533 else
7534   # Is the header compilable?
7535 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7536 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7537 cat >conftest.$ac_ext <<_ACEOF
7538 #line $LINENO "configure"
7539 #include "confdefs.h"
7540 $ac_includes_default
7541 #include <$ac_header>
7542 _ACEOF
7543 rm -f conftest.$ac_objext
7544 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7545   (eval $ac_compile) 2>&5
7546   ac_status=$?
7547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7548   (exit $ac_status); } &&
7549          { ac_try='test -s conftest.$ac_objext'
7550   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7551   (eval $ac_try) 2>&5
7552   ac_status=$?
7553   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7554   (exit $ac_status); }; }; then
7555   ac_header_compiler=yes
7556 else
7557   echo "$as_me: failed program was:" >&5
7558 cat conftest.$ac_ext >&5
7559 ac_header_compiler=no
7560 fi
7561 rm -f conftest.$ac_objext conftest.$ac_ext
7562 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7563 echo "${ECHO_T}$ac_header_compiler" >&6
7564
7565 # Is the header present?
7566 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7567 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7568 cat >conftest.$ac_ext <<_ACEOF
7569 #line $LINENO "configure"
7570 #include "confdefs.h"
7571 #include <$ac_header>
7572 _ACEOF
7573 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7574   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7575   ac_status=$?
7576   egrep -v '^ *\+' conftest.er1 >conftest.err
7577   rm -f conftest.er1
7578   cat conftest.err >&5
7579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7580   (exit $ac_status); } >/dev/null; then
7581   if test -s conftest.err; then
7582     ac_cpp_err=$ac_c_preproc_warn_flag
7583   else
7584     ac_cpp_err=
7585   fi
7586 else
7587   ac_cpp_err=yes
7588 fi
7589 if test -z "$ac_cpp_err"; then
7590   ac_header_preproc=yes
7591 else
7592   echo "$as_me: failed program was:" >&5
7593   cat conftest.$ac_ext >&5
7594   ac_header_preproc=no
7595 fi
7596 rm -f conftest.err conftest.$ac_ext
7597 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7598 echo "${ECHO_T}$ac_header_preproc" >&6
7599
7600 # So?  What about this header?
7601 case $ac_header_compiler:$ac_header_preproc in
7602   yes:no )
7603     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7604 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7605     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7606 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7607   no:yes )
7608     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7609 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7610     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7611 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7612     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7613 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7614 esac
7615 echo "$as_me:$LINENO: checking for $ac_header" >&5
7616 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7617 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7618   echo $ECHO_N "(cached) $ECHO_C" >&6
7619 else
7620   eval "$as_ac_Header=$ac_header_preproc"
7621 fi
7622 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7623 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7624
7625 fi
7626 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7627   cat >>confdefs.h <<_ACEOF
7628 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7629 _ACEOF
7630  echo "$as_me:$LINENO: checking for waddch in -lncurses" >&5
7631 echo $ECHO_N "checking for waddch in -lncurses... $ECHO_C" >&6
7632 if test "${ac_cv_lib_ncurses_waddch+set}" = set; then
7633   echo $ECHO_N "(cached) $ECHO_C" >&6
7634 else
7635   ac_check_lib_save_LIBS=$LIBS
7636 LIBS="-lncurses  $LIBS"
7637 cat >conftest.$ac_ext <<_ACEOF
7638 #line $LINENO "configure"
7639 #include "confdefs.h"
7640
7641 /* Override any gcc2 internal prototype to avoid an error.  */
7642 #ifdef __cplusplus
7643 extern "C"
7644 #endif
7645 /* We use char because int might match the return type of a gcc2
7646    builtin and then its argument prototype would still apply.  */
7647 char waddch ();
7648 #ifdef F77_DUMMY_MAIN
7649 #  ifdef __cplusplus
7650      extern "C"
7651 #  endif
7652    int F77_DUMMY_MAIN() { return 1; }
7653 #endif
7654 int
7655 main ()
7656 {
7657 waddch ();
7658   ;
7659   return 0;
7660 }
7661 _ACEOF
7662 rm -f conftest.$ac_objext conftest$ac_exeext
7663 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7664   (eval $ac_link) 2>&5
7665   ac_status=$?
7666   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7667   (exit $ac_status); } &&
7668          { ac_try='test -s conftest$ac_exeext'
7669   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7670   (eval $ac_try) 2>&5
7671   ac_status=$?
7672   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7673   (exit $ac_status); }; }; then
7674   ac_cv_lib_ncurses_waddch=yes
7675 else
7676   echo "$as_me: failed program was:" >&5
7677 cat conftest.$ac_ext >&5
7678 ac_cv_lib_ncurses_waddch=no
7679 fi
7680 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7681 LIBS=$ac_check_lib_save_LIBS
7682 fi
7683 echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_waddch" >&5
7684 echo "${ECHO_T}$ac_cv_lib_ncurses_waddch" >&6
7685 if test $ac_cv_lib_ncurses_waddch = yes; then
7686
7687 cat >>confdefs.h <<\_ACEOF
7688 #define HAVE_LIBNCURSES 1
7689 _ACEOF
7690
7691              CURSESLIBS="-lncurses"
7692 else
7693
7694 for ac_header in curses.h
7695 do
7696 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7697 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7698   echo "$as_me:$LINENO: checking for $ac_header" >&5
7699 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7700 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7701   echo $ECHO_N "(cached) $ECHO_C" >&6
7702 fi
7703 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7704 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7705 else
7706   # Is the header compilable?
7707 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7708 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7709 cat >conftest.$ac_ext <<_ACEOF
7710 #line $LINENO "configure"
7711 #include "confdefs.h"
7712 $ac_includes_default
7713 #include <$ac_header>
7714 _ACEOF
7715 rm -f conftest.$ac_objext
7716 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7717   (eval $ac_compile) 2>&5
7718   ac_status=$?
7719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7720   (exit $ac_status); } &&
7721          { ac_try='test -s conftest.$ac_objext'
7722   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7723   (eval $ac_try) 2>&5
7724   ac_status=$?
7725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7726   (exit $ac_status); }; }; then
7727   ac_header_compiler=yes
7728 else
7729   echo "$as_me: failed program was:" >&5
7730 cat conftest.$ac_ext >&5
7731 ac_header_compiler=no
7732 fi
7733 rm -f conftest.$ac_objext conftest.$ac_ext
7734 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7735 echo "${ECHO_T}$ac_header_compiler" >&6
7736
7737 # Is the header present?
7738 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7739 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7740 cat >conftest.$ac_ext <<_ACEOF
7741 #line $LINENO "configure"
7742 #include "confdefs.h"
7743 #include <$ac_header>
7744 _ACEOF
7745 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7746   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7747   ac_status=$?
7748   egrep -v '^ *\+' conftest.er1 >conftest.err
7749   rm -f conftest.er1
7750   cat conftest.err >&5
7751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7752   (exit $ac_status); } >/dev/null; then
7753   if test -s conftest.err; then
7754     ac_cpp_err=$ac_c_preproc_warn_flag
7755   else
7756     ac_cpp_err=
7757   fi
7758 else
7759   ac_cpp_err=yes
7760 fi
7761 if test -z "$ac_cpp_err"; then
7762   ac_header_preproc=yes
7763 else
7764   echo "$as_me: failed program was:" >&5
7765   cat conftest.$ac_ext >&5
7766   ac_header_preproc=no
7767 fi
7768 rm -f conftest.err conftest.$ac_ext
7769 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7770 echo "${ECHO_T}$ac_header_preproc" >&6
7771
7772 # So?  What about this header?
7773 case $ac_header_compiler:$ac_header_preproc in
7774   yes:no )
7775     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7776 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7777     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7778 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7779   no:yes )
7780     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7781 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7782     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7783 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7784     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7785 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7786 esac
7787 echo "$as_me:$LINENO: checking for $ac_header" >&5
7788 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7789 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7790   echo $ECHO_N "(cached) $ECHO_C" >&6
7791 else
7792   eval "$as_ac_Header=$ac_header_preproc"
7793 fi
7794 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7795 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7796
7797 fi
7798 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7799   cat >>confdefs.h <<_ACEOF
7800 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7801 _ACEOF
7802  echo "$as_me:$LINENO: checking for waddch in -lcurses" >&5
7803 echo $ECHO_N "checking for waddch in -lcurses... $ECHO_C" >&6
7804 if test "${ac_cv_lib_curses_waddch+set}" = set; then
7805   echo $ECHO_N "(cached) $ECHO_C" >&6
7806 else
7807   ac_check_lib_save_LIBS=$LIBS
7808 LIBS="-lcurses  $LIBS"
7809 cat >conftest.$ac_ext <<_ACEOF
7810 #line $LINENO "configure"
7811 #include "confdefs.h"
7812
7813 /* Override any gcc2 internal prototype to avoid an error.  */
7814 #ifdef __cplusplus
7815 extern "C"
7816 #endif
7817 /* We use char because int might match the return type of a gcc2
7818    builtin and then its argument prototype would still apply.  */
7819 char waddch ();
7820 #ifdef F77_DUMMY_MAIN
7821 #  ifdef __cplusplus
7822      extern "C"
7823 #  endif
7824    int F77_DUMMY_MAIN() { return 1; }
7825 #endif
7826 int
7827 main ()
7828 {
7829 waddch ();
7830   ;
7831   return 0;
7832 }
7833 _ACEOF
7834 rm -f conftest.$ac_objext conftest$ac_exeext
7835 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7836   (eval $ac_link) 2>&5
7837   ac_status=$?
7838   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7839   (exit $ac_status); } &&
7840          { ac_try='test -s conftest$ac_exeext'
7841   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7842   (eval $ac_try) 2>&5
7843   ac_status=$?
7844   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7845   (exit $ac_status); }; }; then
7846   ac_cv_lib_curses_waddch=yes
7847 else
7848   echo "$as_me: failed program was:" >&5
7849 cat conftest.$ac_ext >&5
7850 ac_cv_lib_curses_waddch=no
7851 fi
7852 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7853 LIBS=$ac_check_lib_save_LIBS
7854 fi
7855 echo "$as_me:$LINENO: result: $ac_cv_lib_curses_waddch" >&5
7856 echo "${ECHO_T}$ac_cv_lib_curses_waddch" >&6
7857 if test $ac_cv_lib_curses_waddch = yes; then
7858
7859 cat >>confdefs.h <<\_ACEOF
7860 #define HAVE_LIBCURSES 1
7861 _ACEOF
7862
7863                       CURSESLIBS="-lcurses"
7864 fi
7865
7866 fi
7867
7868 done
7869
7870 fi
7871
7872 fi
7873
7874 done
7875
7876     saved_libs="$LIBS"
7877     LIBS="$CURSESLIBS $LIBS"
7878
7879
7880 for ac_func in getbkgd resizeterm
7881 do
7882 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7883 echo "$as_me:$LINENO: checking for $ac_func" >&5
7884 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7885 if eval "test \"\${$as_ac_var+set}\" = set"; then
7886   echo $ECHO_N "(cached) $ECHO_C" >&6
7887 else
7888   cat >conftest.$ac_ext <<_ACEOF
7889 #line $LINENO "configure"
7890 #include "confdefs.h"
7891 /* System header to define __stub macros and hopefully few prototypes,
7892     which can conflict with char $ac_func (); below.  */
7893 #include <assert.h>
7894 /* Override any gcc2 internal prototype to avoid an error.  */
7895 #ifdef __cplusplus
7896 extern "C"
7897 #endif
7898 /* We use char because int might match the return type of a gcc2
7899    builtin and then its argument prototype would still apply.  */
7900 char $ac_func ();
7901 char (*f) ();
7902
7903 #ifdef F77_DUMMY_MAIN
7904 #  ifdef __cplusplus
7905      extern "C"
7906 #  endif
7907    int F77_DUMMY_MAIN() { return 1; }
7908 #endif
7909 int
7910 main ()
7911 {
7912 /* The GNU C library defines this for functions which it implements
7913     to always fail with ENOSYS.  Some functions are actually named
7914     something starting with __ and the normal name is an alias.  */
7915 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7916 choke me
7917 #else
7918 f = $ac_func;
7919 #endif
7920
7921   ;
7922   return 0;
7923 }
7924 _ACEOF
7925 rm -f conftest.$ac_objext conftest$ac_exeext
7926 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7927   (eval $ac_link) 2>&5
7928   ac_status=$?
7929   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7930   (exit $ac_status); } &&
7931          { ac_try='test -s conftest$ac_exeext'
7932   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7933   (eval $ac_try) 2>&5
7934   ac_status=$?
7935   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7936   (exit $ac_status); }; }; then
7937   eval "$as_ac_var=yes"
7938 else
7939   echo "$as_me: failed program was:" >&5
7940 cat conftest.$ac_ext >&5
7941 eval "$as_ac_var=no"
7942 fi
7943 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7944 fi
7945 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7946 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7947 if test `eval echo '${'$as_ac_var'}'` = yes; then
7948   cat >>confdefs.h <<_ACEOF
7949 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7950 _ACEOF
7951
7952 fi
7953 done
7954
7955     LIBS="$saved_libs"
7956 fi
7957
7958
7959 CUPSLIBS=""
7960 wine_cv_warn_cups_h=no
7961 echo "$as_me:$LINENO: checking for cupsGetPPD in -lcups" >&5
7962 echo $ECHO_N "checking for cupsGetPPD in -lcups... $ECHO_C" >&6
7963 if test "${ac_cv_lib_cups_cupsGetPPD+set}" = set; then
7964   echo $ECHO_N "(cached) $ECHO_C" >&6
7965 else
7966   ac_check_lib_save_LIBS=$LIBS
7967 LIBS="-lcups  $LIBS"
7968 cat >conftest.$ac_ext <<_ACEOF
7969 #line $LINENO "configure"
7970 #include "confdefs.h"
7971
7972 /* Override any gcc2 internal prototype to avoid an error.  */
7973 #ifdef __cplusplus
7974 extern "C"
7975 #endif
7976 /* We use char because int might match the return type of a gcc2
7977    builtin and then its argument prototype would still apply.  */
7978 char cupsGetPPD ();
7979 #ifdef F77_DUMMY_MAIN
7980 #  ifdef __cplusplus
7981      extern "C"
7982 #  endif
7983    int F77_DUMMY_MAIN() { return 1; }
7984 #endif
7985 int
7986 main ()
7987 {
7988 cupsGetPPD ();
7989   ;
7990   return 0;
7991 }
7992 _ACEOF
7993 rm -f conftest.$ac_objext conftest$ac_exeext
7994 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7995   (eval $ac_link) 2>&5
7996   ac_status=$?
7997   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7998   (exit $ac_status); } &&
7999          { ac_try='test -s conftest$ac_exeext'
8000   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8001   (eval $ac_try) 2>&5
8002   ac_status=$?
8003   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8004   (exit $ac_status); }; }; then
8005   ac_cv_lib_cups_cupsGetPPD=yes
8006 else
8007   echo "$as_me: failed program was:" >&5
8008 cat conftest.$ac_ext >&5
8009 ac_cv_lib_cups_cupsGetPPD=no
8010 fi
8011 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8012 LIBS=$ac_check_lib_save_LIBS
8013 fi
8014 echo "$as_me:$LINENO: result: $ac_cv_lib_cups_cupsGetPPD" >&5
8015 echo "${ECHO_T}$ac_cv_lib_cups_cupsGetPPD" >&6
8016 if test $ac_cv_lib_cups_cupsGetPPD = yes; then
8017   if test "${ac_cv_header_cups_cups_h+set}" = set; then
8018   echo "$as_me:$LINENO: checking for cups/cups.h" >&5
8019 echo $ECHO_N "checking for cups/cups.h... $ECHO_C" >&6
8020 if test "${ac_cv_header_cups_cups_h+set}" = set; then
8021   echo $ECHO_N "(cached) $ECHO_C" >&6
8022 fi
8023 echo "$as_me:$LINENO: result: $ac_cv_header_cups_cups_h" >&5
8024 echo "${ECHO_T}$ac_cv_header_cups_cups_h" >&6
8025 else
8026   # Is the header compilable?
8027 echo "$as_me:$LINENO: checking cups/cups.h usability" >&5
8028 echo $ECHO_N "checking cups/cups.h usability... $ECHO_C" >&6
8029 cat >conftest.$ac_ext <<_ACEOF
8030 #line $LINENO "configure"
8031 #include "confdefs.h"
8032 $ac_includes_default
8033 #include <cups/cups.h>
8034 _ACEOF
8035 rm -f conftest.$ac_objext
8036 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8037   (eval $ac_compile) 2>&5
8038   ac_status=$?
8039   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8040   (exit $ac_status); } &&
8041          { ac_try='test -s conftest.$ac_objext'
8042   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8043   (eval $ac_try) 2>&5
8044   ac_status=$?
8045   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8046   (exit $ac_status); }; }; then
8047   ac_header_compiler=yes
8048 else
8049   echo "$as_me: failed program was:" >&5
8050 cat conftest.$ac_ext >&5
8051 ac_header_compiler=no
8052 fi
8053 rm -f conftest.$ac_objext conftest.$ac_ext
8054 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8055 echo "${ECHO_T}$ac_header_compiler" >&6
8056
8057 # Is the header present?
8058 echo "$as_me:$LINENO: checking cups/cups.h presence" >&5
8059 echo $ECHO_N "checking cups/cups.h presence... $ECHO_C" >&6
8060 cat >conftest.$ac_ext <<_ACEOF
8061 #line $LINENO "configure"
8062 #include "confdefs.h"
8063 #include <cups/cups.h>
8064 _ACEOF
8065 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8066   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8067   ac_status=$?
8068   egrep -v '^ *\+' conftest.er1 >conftest.err
8069   rm -f conftest.er1
8070   cat conftest.err >&5
8071   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8072   (exit $ac_status); } >/dev/null; then
8073   if test -s conftest.err; then
8074     ac_cpp_err=$ac_c_preproc_warn_flag
8075   else
8076     ac_cpp_err=
8077   fi
8078 else
8079   ac_cpp_err=yes
8080 fi
8081 if test -z "$ac_cpp_err"; then
8082   ac_header_preproc=yes
8083 else
8084   echo "$as_me: failed program was:" >&5
8085   cat conftest.$ac_ext >&5
8086   ac_header_preproc=no
8087 fi
8088 rm -f conftest.err conftest.$ac_ext
8089 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8090 echo "${ECHO_T}$ac_header_preproc" >&6
8091
8092 # So?  What about this header?
8093 case $ac_header_compiler:$ac_header_preproc in
8094   yes:no )
8095     { echo "$as_me:$LINENO: WARNING: cups/cups.h: accepted by the compiler, rejected by the preprocessor!" >&5
8096 echo "$as_me: WARNING: cups/cups.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8097     { echo "$as_me:$LINENO: WARNING: cups/cups.h: proceeding with the preprocessor's result" >&5
8098 echo "$as_me: WARNING: cups/cups.h: proceeding with the preprocessor's result" >&2;};;
8099   no:yes )
8100     { echo "$as_me:$LINENO: WARNING: cups/cups.h: present but cannot be compiled" >&5
8101 echo "$as_me: WARNING: cups/cups.h: present but cannot be compiled" >&2;}
8102     { echo "$as_me:$LINENO: WARNING: cups/cups.h: check for missing prerequisite headers?" >&5
8103 echo "$as_me: WARNING: cups/cups.h: check for missing prerequisite headers?" >&2;}
8104     { echo "$as_me:$LINENO: WARNING: cups/cups.h: proceeding with the preprocessor's result" >&5
8105 echo "$as_me: WARNING: cups/cups.h: proceeding with the preprocessor's result" >&2;};;
8106 esac
8107 echo "$as_me:$LINENO: checking for cups/cups.h" >&5
8108 echo $ECHO_N "checking for cups/cups.h... $ECHO_C" >&6
8109 if test "${ac_cv_header_cups_cups_h+set}" = set; then
8110   echo $ECHO_N "(cached) $ECHO_C" >&6
8111 else
8112   ac_cv_header_cups_cups_h=$ac_header_preproc
8113 fi
8114 echo "$as_me:$LINENO: result: $ac_cv_header_cups_cups_h" >&5
8115 echo "${ECHO_T}$ac_cv_header_cups_cups_h" >&6
8116
8117 fi
8118 if test $ac_cv_header_cups_cups_h = yes; then
8119
8120 cat >>confdefs.h <<\_ACEOF
8121 #define HAVE_CUPS 1
8122 _ACEOF
8123
8124             CUPSLIBS="-lcups"
8125 else
8126   wine_cv_warn_cups_h=yes
8127 fi
8128
8129
8130
8131 fi
8132
8133
8134
8135 # Extract the first word of "sane-config", so it can be a program name with args.
8136 set dummy sane-config; ac_word=$2
8137 echo "$as_me:$LINENO: checking for $ac_word" >&5
8138 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8139 if test "${ac_cv_prog_sane_devel+set}" = set; then
8140   echo $ECHO_N "(cached) $ECHO_C" >&6
8141 else
8142   if test -n "$sane_devel"; then
8143   ac_cv_prog_sane_devel="$sane_devel" # Let the user override the test.
8144 else
8145 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8146 for as_dir in $PATH
8147 do
8148   IFS=$as_save_IFS
8149   test -z "$as_dir" && as_dir=.
8150   for ac_exec_ext in '' $ac_executable_extensions; do
8151   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8152     ac_cv_prog_sane_devel="sane-config"
8153     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8154     break 2
8155   fi
8156 done
8157 done
8158
8159   test -z "$ac_cv_prog_sane_devel" && ac_cv_prog_sane_devel="no"
8160 fi
8161 fi
8162 sane_devel=$ac_cv_prog_sane_devel
8163 if test -n "$sane_devel"; then
8164   echo "$as_me:$LINENO: result: $sane_devel" >&5
8165 echo "${ECHO_T}$sane_devel" >&6
8166 else
8167   echo "$as_me:$LINENO: result: no" >&5
8168 echo "${ECHO_T}no" >&6
8169 fi
8170
8171 if test "$sane_devel" = "no"
8172 then
8173     SANELIBS=""
8174     SANEINCL=""
8175 else
8176     SANELIBS="`$sane_devel --libs`"
8177     SANEINCL="`$sane_devel --cflags`"
8178     ac_save_CPPFLAGS="$CPPFLAGS"
8179     ac_save_LIBS="$LIBS"
8180     CPPFLAGS="$CPPFLAGS $SANEINCL"
8181     LIBS="$LIBS $SANELIBS"
8182     if test "${ac_cv_header_sane_sane_h+set}" = set; then
8183   echo "$as_me:$LINENO: checking for sane/sane.h" >&5
8184 echo $ECHO_N "checking for sane/sane.h... $ECHO_C" >&6
8185 if test "${ac_cv_header_sane_sane_h+set}" = set; then
8186   echo $ECHO_N "(cached) $ECHO_C" >&6
8187 fi
8188 echo "$as_me:$LINENO: result: $ac_cv_header_sane_sane_h" >&5
8189 echo "${ECHO_T}$ac_cv_header_sane_sane_h" >&6
8190 else
8191   # Is the header compilable?
8192 echo "$as_me:$LINENO: checking sane/sane.h usability" >&5
8193 echo $ECHO_N "checking sane/sane.h usability... $ECHO_C" >&6
8194 cat >conftest.$ac_ext <<_ACEOF
8195 #line $LINENO "configure"
8196 #include "confdefs.h"
8197 $ac_includes_default
8198 #include <sane/sane.h>
8199 _ACEOF
8200 rm -f conftest.$ac_objext
8201 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8202   (eval $ac_compile) 2>&5
8203   ac_status=$?
8204   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8205   (exit $ac_status); } &&
8206          { ac_try='test -s conftest.$ac_objext'
8207   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8208   (eval $ac_try) 2>&5
8209   ac_status=$?
8210   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8211   (exit $ac_status); }; }; then
8212   ac_header_compiler=yes
8213 else
8214   echo "$as_me: failed program was:" >&5
8215 cat conftest.$ac_ext >&5
8216 ac_header_compiler=no
8217 fi
8218 rm -f conftest.$ac_objext conftest.$ac_ext
8219 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8220 echo "${ECHO_T}$ac_header_compiler" >&6
8221
8222 # Is the header present?
8223 echo "$as_me:$LINENO: checking sane/sane.h presence" >&5
8224 echo $ECHO_N "checking sane/sane.h presence... $ECHO_C" >&6
8225 cat >conftest.$ac_ext <<_ACEOF
8226 #line $LINENO "configure"
8227 #include "confdefs.h"
8228 #include <sane/sane.h>
8229 _ACEOF
8230 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8231   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8232   ac_status=$?
8233   egrep -v '^ *\+' conftest.er1 >conftest.err
8234   rm -f conftest.er1
8235   cat conftest.err >&5
8236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8237   (exit $ac_status); } >/dev/null; then
8238   if test -s conftest.err; then
8239     ac_cpp_err=$ac_c_preproc_warn_flag
8240   else
8241     ac_cpp_err=
8242   fi
8243 else
8244   ac_cpp_err=yes
8245 fi
8246 if test -z "$ac_cpp_err"; then
8247   ac_header_preproc=yes
8248 else
8249   echo "$as_me: failed program was:" >&5
8250   cat conftest.$ac_ext >&5
8251   ac_header_preproc=no
8252 fi
8253 rm -f conftest.err conftest.$ac_ext
8254 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8255 echo "${ECHO_T}$ac_header_preproc" >&6
8256
8257 # So?  What about this header?
8258 case $ac_header_compiler:$ac_header_preproc in
8259   yes:no )
8260     { echo "$as_me:$LINENO: WARNING: sane/sane.h: accepted by the compiler, rejected by the preprocessor!" >&5
8261 echo "$as_me: WARNING: sane/sane.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8262     { echo "$as_me:$LINENO: WARNING: sane/sane.h: proceeding with the preprocessor's result" >&5
8263 echo "$as_me: WARNING: sane/sane.h: proceeding with the preprocessor's result" >&2;};;
8264   no:yes )
8265     { echo "$as_me:$LINENO: WARNING: sane/sane.h: present but cannot be compiled" >&5
8266 echo "$as_me: WARNING: sane/sane.h: present but cannot be compiled" >&2;}
8267     { echo "$as_me:$LINENO: WARNING: sane/sane.h: check for missing prerequisite headers?" >&5
8268 echo "$as_me: WARNING: sane/sane.h: check for missing prerequisite headers?" >&2;}
8269     { echo "$as_me:$LINENO: WARNING: sane/sane.h: proceeding with the preprocessor's result" >&5
8270 echo "$as_me: WARNING: sane/sane.h: proceeding with the preprocessor's result" >&2;};;
8271 esac
8272 echo "$as_me:$LINENO: checking for sane/sane.h" >&5
8273 echo $ECHO_N "checking for sane/sane.h... $ECHO_C" >&6
8274 if test "${ac_cv_header_sane_sane_h+set}" = set; then
8275   echo $ECHO_N "(cached) $ECHO_C" >&6
8276 else
8277   ac_cv_header_sane_sane_h=$ac_header_preproc
8278 fi
8279 echo "$as_me:$LINENO: result: $ac_cv_header_sane_sane_h" >&5
8280 echo "${ECHO_T}$ac_cv_header_sane_sane_h" >&6
8281
8282 fi
8283 if test $ac_cv_header_sane_sane_h = yes; then
8284   echo "$as_me:$LINENO: checking for sane_open in -lsane" >&5
8285 echo $ECHO_N "checking for sane_open in -lsane... $ECHO_C" >&6
8286 if test "${ac_cv_lib_sane_sane_open+set}" = set; then
8287   echo $ECHO_N "(cached) $ECHO_C" >&6
8288 else
8289   ac_check_lib_save_LIBS=$LIBS
8290 LIBS="-lsane  $LIBS"
8291 cat >conftest.$ac_ext <<_ACEOF
8292 #line $LINENO "configure"
8293 #include "confdefs.h"
8294
8295 /* Override any gcc2 internal prototype to avoid an error.  */
8296 #ifdef __cplusplus
8297 extern "C"
8298 #endif
8299 /* We use char because int might match the return type of a gcc2
8300    builtin and then its argument prototype would still apply.  */
8301 char sane_open ();
8302 #ifdef F77_DUMMY_MAIN
8303 #  ifdef __cplusplus
8304      extern "C"
8305 #  endif
8306    int F77_DUMMY_MAIN() { return 1; }
8307 #endif
8308 int
8309 main ()
8310 {
8311 sane_open ();
8312   ;
8313   return 0;
8314 }
8315 _ACEOF
8316 rm -f conftest.$ac_objext conftest$ac_exeext
8317 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8318   (eval $ac_link) 2>&5
8319   ac_status=$?
8320   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8321   (exit $ac_status); } &&
8322          { ac_try='test -s conftest$ac_exeext'
8323   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8324   (eval $ac_try) 2>&5
8325   ac_status=$?
8326   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8327   (exit $ac_status); }; }; then
8328   ac_cv_lib_sane_sane_open=yes
8329 else
8330   echo "$as_me: failed program was:" >&5
8331 cat conftest.$ac_ext >&5
8332 ac_cv_lib_sane_sane_open=no
8333 fi
8334 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8335 LIBS=$ac_check_lib_save_LIBS
8336 fi
8337 echo "$as_me:$LINENO: result: $ac_cv_lib_sane_sane_open" >&5
8338 echo "${ECHO_T}$ac_cv_lib_sane_sane_open" >&6
8339 if test $ac_cv_lib_sane_sane_open = yes; then
8340
8341 cat >>confdefs.h <<\_ACEOF
8342 #define HAVE_SANE 1
8343 _ACEOF
8344
8345 else
8346   SANELIBS=""
8347                                   SANEINCL=""
8348 fi
8349
8350 else
8351   SANELIBS=""
8352                     SANEINCL=""
8353 fi
8354
8355
8356     LIBS="$ac_save_LIBS"
8357     CPPFLAGS="$ac_save_CPPFLAGS"
8358 fi
8359
8360
8361
8362 echo "$as_me:$LINENO: checking for FT_Init_FreeType in -lfreetype" >&5
8363 echo $ECHO_N "checking for FT_Init_FreeType in -lfreetype... $ECHO_C" >&6
8364 if test "${ac_cv_lib_freetype_FT_Init_FreeType+set}" = set; then
8365   echo $ECHO_N "(cached) $ECHO_C" >&6
8366 else
8367   ac_check_lib_save_LIBS=$LIBS
8368 LIBS="-lfreetype $X_LIBS $LIBS"
8369 cat >conftest.$ac_ext <<_ACEOF
8370 #line $LINENO "configure"
8371 #include "confdefs.h"
8372
8373 /* Override any gcc2 internal prototype to avoid an error.  */
8374 #ifdef __cplusplus
8375 extern "C"
8376 #endif
8377 /* We use char because int might match the return type of a gcc2
8378    builtin and then its argument prototype would still apply.  */
8379 char FT_Init_FreeType ();
8380 #ifdef F77_DUMMY_MAIN
8381 #  ifdef __cplusplus
8382      extern "C"
8383 #  endif
8384    int F77_DUMMY_MAIN() { return 1; }
8385 #endif
8386 int
8387 main ()
8388 {
8389 FT_Init_FreeType ();
8390   ;
8391   return 0;
8392 }
8393 _ACEOF
8394 rm -f conftest.$ac_objext conftest$ac_exeext
8395 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8396   (eval $ac_link) 2>&5
8397   ac_status=$?
8398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8399   (exit $ac_status); } &&
8400          { ac_try='test -s conftest$ac_exeext'
8401   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8402   (eval $ac_try) 2>&5
8403   ac_status=$?
8404   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8405   (exit $ac_status); }; }; then
8406   ac_cv_lib_freetype_FT_Init_FreeType=yes
8407 else
8408   echo "$as_me: failed program was:" >&5
8409 cat conftest.$ac_ext >&5
8410 ac_cv_lib_freetype_FT_Init_FreeType=no
8411 fi
8412 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8413 LIBS=$ac_check_lib_save_LIBS
8414 fi
8415 echo "$as_me:$LINENO: result: $ac_cv_lib_freetype_FT_Init_FreeType" >&5
8416 echo "${ECHO_T}$ac_cv_lib_freetype_FT_Init_FreeType" >&6
8417 if test $ac_cv_lib_freetype_FT_Init_FreeType = yes; then
8418   ft_lib=yes
8419 else
8420   ft_lib=no
8421 fi
8422
8423 if test "$ft_lib" = "no"
8424 then
8425     FREETYPEINCL=""
8426     wine_cv_msg_freetype=no
8427 else
8428     # Extract the first word of "freetype-config", so it can be a program name with args.
8429 set dummy freetype-config; ac_word=$2
8430 echo "$as_me:$LINENO: checking for $ac_word" >&5
8431 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8432 if test "${ac_cv_prog_ft_devel+set}" = set; then
8433   echo $ECHO_N "(cached) $ECHO_C" >&6
8434 else
8435   if test -n "$ft_devel"; then
8436   ac_cv_prog_ft_devel="$ft_devel" # Let the user override the test.
8437 else
8438 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8439 for as_dir in $PATH
8440 do
8441   IFS=$as_save_IFS
8442   test -z "$as_dir" && as_dir=.
8443   for ac_exec_ext in '' $ac_executable_extensions; do
8444   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8445     ac_cv_prog_ft_devel="freetype-config"
8446     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8447     break 2
8448   fi
8449 done
8450 done
8451
8452   test -z "$ac_cv_prog_ft_devel" && ac_cv_prog_ft_devel="no"
8453 fi
8454 fi
8455 ft_devel=$ac_cv_prog_ft_devel
8456 if test -n "$ft_devel"; then
8457   echo "$as_me:$LINENO: result: $ft_devel" >&5
8458 echo "${ECHO_T}$ft_devel" >&6
8459 else
8460   echo "$as_me:$LINENO: result: no" >&5
8461 echo "${ECHO_T}no" >&6
8462 fi
8463
8464     if test "$ft_devel" = "no"
8465     then
8466         # Extract the first word of "freetype2-config", so it can be a program name with args.
8467 set dummy freetype2-config; ac_word=$2
8468 echo "$as_me:$LINENO: checking for $ac_word" >&5
8469 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8470 if test "${ac_cv_prog_ft_devel2+set}" = set; then
8471   echo $ECHO_N "(cached) $ECHO_C" >&6
8472 else
8473   if test -n "$ft_devel2"; then
8474   ac_cv_prog_ft_devel2="$ft_devel2" # Let the user override the test.
8475 else
8476 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8477 for as_dir in $PATH
8478 do
8479   IFS=$as_save_IFS
8480   test -z "$as_dir" && as_dir=.
8481   for ac_exec_ext in '' $ac_executable_extensions; do
8482   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8483     ac_cv_prog_ft_devel2="freetype2-config"
8484     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8485     break 2
8486   fi
8487 done
8488 done
8489
8490   test -z "$ac_cv_prog_ft_devel2" && ac_cv_prog_ft_devel2="no"
8491 fi
8492 fi
8493 ft_devel2=$ac_cv_prog_ft_devel2
8494 if test -n "$ft_devel2"; then
8495   echo "$as_me:$LINENO: result: $ft_devel2" >&5
8496 echo "${ECHO_T}$ft_devel2" >&6
8497 else
8498   echo "$as_me:$LINENO: result: no" >&5
8499 echo "${ECHO_T}no" >&6
8500 fi
8501
8502         if test "$ft_devel2" = "freetype2-config"
8503         then
8504                 ft_devel=$ft_devel2
8505         fi
8506     fi
8507     if test "$ft_devel" = "no"
8508     then
8509         FREETYPEINCL=""
8510         wine_cv_msg_freetype=yes
8511     else
8512         FREETYPEINCL=`$ft_devel --cflags`
8513         ac_save_CPPFLAGS="$CPPFLAGS"
8514         CPPFLAGS="$FREETYPEINCL $CPPFLAGS"
8515
8516
8517
8518
8519
8520
8521
8522
8523 for ac_header in freetype/freetype.h \
8524                          freetype/ftglyph.h \
8525                          freetype/tttables.h \
8526                          freetype/ftnames.h \
8527                          freetype/ftsnames.h \
8528                          freetype/ttnameid.h \
8529                          freetype/ftoutln.h \
8530                          freetype/internal/sfnt.h
8531 do
8532 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8533 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8534   echo "$as_me:$LINENO: checking for $ac_header" >&5
8535 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8536 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8537   echo $ECHO_N "(cached) $ECHO_C" >&6
8538 fi
8539 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8540 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8541 else
8542   # Is the header compilable?
8543 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8544 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8545 cat >conftest.$ac_ext <<_ACEOF
8546 #line $LINENO "configure"
8547 #include "confdefs.h"
8548 $ac_includes_default
8549 #include <$ac_header>
8550 _ACEOF
8551 rm -f conftest.$ac_objext
8552 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8553   (eval $ac_compile) 2>&5
8554   ac_status=$?
8555   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8556   (exit $ac_status); } &&
8557          { ac_try='test -s conftest.$ac_objext'
8558   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8559   (eval $ac_try) 2>&5
8560   ac_status=$?
8561   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8562   (exit $ac_status); }; }; then
8563   ac_header_compiler=yes
8564 else
8565   echo "$as_me: failed program was:" >&5
8566 cat conftest.$ac_ext >&5
8567 ac_header_compiler=no
8568 fi
8569 rm -f conftest.$ac_objext conftest.$ac_ext
8570 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8571 echo "${ECHO_T}$ac_header_compiler" >&6
8572
8573 # Is the header present?
8574 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8575 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8576 cat >conftest.$ac_ext <<_ACEOF
8577 #line $LINENO "configure"
8578 #include "confdefs.h"
8579 #include <$ac_header>
8580 _ACEOF
8581 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8582   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8583   ac_status=$?
8584   egrep -v '^ *\+' conftest.er1 >conftest.err
8585   rm -f conftest.er1
8586   cat conftest.err >&5
8587   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8588   (exit $ac_status); } >/dev/null; then
8589   if test -s conftest.err; then
8590     ac_cpp_err=$ac_c_preproc_warn_flag
8591   else
8592     ac_cpp_err=
8593   fi
8594 else
8595   ac_cpp_err=yes
8596 fi
8597 if test -z "$ac_cpp_err"; then
8598   ac_header_preproc=yes
8599 else
8600   echo "$as_me: failed program was:" >&5
8601   cat conftest.$ac_ext >&5
8602   ac_header_preproc=no
8603 fi
8604 rm -f conftest.err conftest.$ac_ext
8605 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8606 echo "${ECHO_T}$ac_header_preproc" >&6
8607
8608 # So?  What about this header?
8609 case $ac_header_compiler:$ac_header_preproc in
8610   yes:no )
8611     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8612 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8613     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8614 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8615   no:yes )
8616     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8617 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8618     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8619 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8620     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8621 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8622 esac
8623 echo "$as_me:$LINENO: checking for $ac_header" >&5
8624 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8625 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8626   echo $ECHO_N "(cached) $ECHO_C" >&6
8627 else
8628   eval "$as_ac_Header=$ac_header_preproc"
8629 fi
8630 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8631 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8632
8633 fi
8634 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8635   cat >>confdefs.h <<_ACEOF
8636 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8637 _ACEOF
8638
8639 fi
8640
8641 done
8642
8643         cat >conftest.$ac_ext <<_ACEOF
8644 #line $LINENO "configure"
8645 #include "confdefs.h"
8646 #include <ft2build.h>
8647                     #include <freetype/fttrigon.h>
8648 _ACEOF
8649 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8650   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8651   ac_status=$?
8652   egrep -v '^ *\+' conftest.er1 >conftest.err
8653   rm -f conftest.er1
8654   cat conftest.err >&5
8655   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8656   (exit $ac_status); } >/dev/null; then
8657   if test -s conftest.err; then
8658     ac_cpp_err=$ac_c_preproc_warn_flag
8659   else
8660     ac_cpp_err=
8661   fi
8662 else
8663   ac_cpp_err=yes
8664 fi
8665 if test -z "$ac_cpp_err"; then
8666
8667 cat >>confdefs.h <<\_ACEOF
8668 #define HAVE_FREETYPE_FTTRIGON_H 1
8669 _ACEOF
8670
8671                     wine_cv_fttrigon=yes
8672 else
8673   echo "$as_me: failed program was:" >&5
8674   cat conftest.$ac_ext >&5
8675   wine_cv_fttrigon=no
8676 fi
8677 rm -f conftest.err conftest.$ac_ext
8678         CPPFLAGS="$ac_save_CPPFLAGS"
8679                 if test "$ac_cv_header_freetype_freetype_h" = "yes" -a "$wine_cv_fttrigon" = "yes"
8680         then
8681
8682 cat >>confdefs.h <<\_ACEOF
8683 #define HAVE_FREETYPE 1
8684 _ACEOF
8685
8686             wine_cv_msg_freetype=no
8687         else
8688             FREETYPEINCL=""
8689             wine_cv_msg_freetype=yes
8690         fi
8691     fi
8692 fi
8693
8694
8695 echo "$as_me:$LINENO: checking for parport header/ppdev.h" >&5
8696 echo $ECHO_N "checking for parport header/ppdev.h... $ECHO_C" >&6
8697 if test "${ac_cv_c_ppdev+set}" = set; then
8698   echo $ECHO_N "(cached) $ECHO_C" >&6
8699 else
8700   cat >conftest.$ac_ext <<_ACEOF
8701 #line $LINENO "configure"
8702 #include "confdefs.h"
8703 #include <linux/ppdev.h>
8704 #ifdef F77_DUMMY_MAIN
8705 #  ifdef __cplusplus
8706      extern "C"
8707 #  endif
8708    int F77_DUMMY_MAIN() { return 1; }
8709 #endif
8710 int
8711 main ()
8712 {
8713 ioctl (1,PPCLAIM,0)
8714   ;
8715   return 0;
8716 }
8717 _ACEOF
8718 rm -f conftest.$ac_objext
8719 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8720   (eval $ac_compile) 2>&5
8721   ac_status=$?
8722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8723   (exit $ac_status); } &&
8724          { ac_try='test -s conftest.$ac_objext'
8725   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8726   (eval $ac_try) 2>&5
8727   ac_status=$?
8728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8729   (exit $ac_status); }; }; then
8730   ac_cv_c_ppdev="yes"
8731 else
8732   echo "$as_me: failed program was:" >&5
8733 cat conftest.$ac_ext >&5
8734 ac_cv_c_ppdev="no"
8735 fi
8736 rm -f conftest.$ac_objext conftest.$ac_ext
8737
8738 fi
8739 echo "$as_me:$LINENO: result: $ac_cv_c_ppdev" >&5
8740 echo "${ECHO_T}$ac_cv_c_ppdev" >&6
8741 if test "$ac_cv_c_ppdev" = "yes"
8742 then
8743
8744 cat >>confdefs.h <<\_ACEOF
8745 #define HAVE_PPDEV 1
8746 _ACEOF
8747
8748 fi
8749
8750 echo "$as_me:$LINENO: checking for GNU style IPX support" >&5
8751 echo $ECHO_N "checking for GNU style IPX support... $ECHO_C" >&6
8752 if test "${ac_cv_c_ipx_gnu+set}" = set; then
8753   echo $ECHO_N "(cached) $ECHO_C" >&6
8754 else
8755   cat >conftest.$ac_ext <<_ACEOF
8756 #line $LINENO "configure"
8757 #include "confdefs.h"
8758 #include <sys/socket.h>
8759     #include <netipx/ipx.h>
8760 #ifdef F77_DUMMY_MAIN
8761 #  ifdef __cplusplus
8762      extern "C"
8763 #  endif
8764    int F77_DUMMY_MAIN() { return 1; }
8765 #endif
8766 int
8767 main ()
8768 {
8769 ((struct sockaddr_ipx *)0)->sipx_family == AF_IPX
8770   ;
8771   return 0;
8772 }
8773 _ACEOF
8774 rm -f conftest.$ac_objext
8775 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8776   (eval $ac_compile) 2>&5
8777   ac_status=$?
8778   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8779   (exit $ac_status); } &&
8780          { ac_try='test -s conftest.$ac_objext'
8781   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8782   (eval $ac_try) 2>&5
8783   ac_status=$?
8784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8785   (exit $ac_status); }; }; then
8786   ac_cv_c_ipx_gnu="yes"
8787 else
8788   echo "$as_me: failed program was:" >&5
8789 cat conftest.$ac_ext >&5
8790 ac_cv_c_ipx_gnu="no"
8791 fi
8792 rm -f conftest.$ac_objext conftest.$ac_ext
8793
8794 fi
8795 echo "$as_me:$LINENO: result: $ac_cv_c_ipx_gnu" >&5
8796 echo "${ECHO_T}$ac_cv_c_ipx_gnu" >&6
8797 if test "$ac_cv_c_ipx_gnu" = "yes"
8798 then
8799
8800 cat >>confdefs.h <<\_ACEOF
8801 #define HAVE_IPX_GNU 1
8802 _ACEOF
8803
8804 fi
8805
8806 if test "$ac_cv_c_ipx_gnu" = "no"
8807 then
8808  echo "$as_me:$LINENO: checking for linux style IPX support" >&5
8809 echo $ECHO_N "checking for linux style IPX support... $ECHO_C" >&6
8810 if test "${ac_cv_c_ipx_linux+set}" = set; then
8811   echo $ECHO_N "(cached) $ECHO_C" >&6
8812 else
8813   cat >conftest.$ac_ext <<_ACEOF
8814 #line $LINENO "configure"
8815 #include "confdefs.h"
8816 #include <sys/socket.h>
8817      #include <asm/types.h>
8818      #include <linux/ipx.h>
8819 #ifdef F77_DUMMY_MAIN
8820 #  ifdef __cplusplus
8821      extern "C"
8822 #  endif
8823    int F77_DUMMY_MAIN() { return 1; }
8824 #endif
8825 int
8826 main ()
8827 {
8828 ((struct sockaddr_ipx *)0)->sipx_family == AF_IPX
8829   ;
8830   return 0;
8831 }
8832 _ACEOF
8833 rm -f conftest.$ac_objext
8834 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8835   (eval $ac_compile) 2>&5
8836   ac_status=$?
8837   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8838   (exit $ac_status); } &&
8839          { ac_try='test -s conftest.$ac_objext'
8840   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8841   (eval $ac_try) 2>&5
8842   ac_status=$?
8843   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8844   (exit $ac_status); }; }; then
8845   ac_cv_c_ipx_linux="yes"
8846 else
8847   echo "$as_me: failed program was:" >&5
8848 cat conftest.$ac_ext >&5
8849 ac_cv_c_ipx_linux="no"
8850 fi
8851 rm -f conftest.$ac_objext conftest.$ac_ext
8852
8853 fi
8854 echo "$as_me:$LINENO: result: $ac_cv_c_ipx_linux" >&5
8855 echo "${ECHO_T}$ac_cv_c_ipx_linux" >&6
8856   if test "$ac_cv_c_ipx_linux" = "yes"
8857   then
8858
8859 cat >>confdefs.h <<\_ACEOF
8860 #define HAVE_IPX_LINUX 1
8861 _ACEOF
8862
8863   fi
8864 fi
8865
8866
8867
8868
8869 for ac_header in sys/soundcard.h machine/soundcard.h soundcard.h
8870 do
8871 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8872 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8873   echo "$as_me:$LINENO: checking for $ac_header" >&5
8874 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8875 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8876   echo $ECHO_N "(cached) $ECHO_C" >&6
8877 fi
8878 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8879 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8880 else
8881   # Is the header compilable?
8882 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8883 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8884 cat >conftest.$ac_ext <<_ACEOF
8885 #line $LINENO "configure"
8886 #include "confdefs.h"
8887 $ac_includes_default
8888 #include <$ac_header>
8889 _ACEOF
8890 rm -f conftest.$ac_objext
8891 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8892   (eval $ac_compile) 2>&5
8893   ac_status=$?
8894   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8895   (exit $ac_status); } &&
8896          { ac_try='test -s conftest.$ac_objext'
8897   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8898   (eval $ac_try) 2>&5
8899   ac_status=$?
8900   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8901   (exit $ac_status); }; }; then
8902   ac_header_compiler=yes
8903 else
8904   echo "$as_me: failed program was:" >&5
8905 cat conftest.$ac_ext >&5
8906 ac_header_compiler=no
8907 fi
8908 rm -f conftest.$ac_objext conftest.$ac_ext
8909 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8910 echo "${ECHO_T}$ac_header_compiler" >&6
8911
8912 # Is the header present?
8913 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8914 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8915 cat >conftest.$ac_ext <<_ACEOF
8916 #line $LINENO "configure"
8917 #include "confdefs.h"
8918 #include <$ac_header>
8919 _ACEOF
8920 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8921   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8922   ac_status=$?
8923   egrep -v '^ *\+' conftest.er1 >conftest.err
8924   rm -f conftest.er1
8925   cat conftest.err >&5
8926   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8927   (exit $ac_status); } >/dev/null; then
8928   if test -s conftest.err; then
8929     ac_cpp_err=$ac_c_preproc_warn_flag
8930   else
8931     ac_cpp_err=
8932   fi
8933 else
8934   ac_cpp_err=yes
8935 fi
8936 if test -z "$ac_cpp_err"; then
8937   ac_header_preproc=yes
8938 else
8939   echo "$as_me: failed program was:" >&5
8940   cat conftest.$ac_ext >&5
8941   ac_header_preproc=no
8942 fi
8943 rm -f conftest.err conftest.$ac_ext
8944 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8945 echo "${ECHO_T}$ac_header_preproc" >&6
8946
8947 # So?  What about this header?
8948 case $ac_header_compiler:$ac_header_preproc in
8949   yes:no )
8950     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8951 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8952     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8953 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8954   no:yes )
8955     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8956 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8957     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8958 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8959     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8960 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8961 esac
8962 echo "$as_me:$LINENO: checking for $ac_header" >&5
8963 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8964 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8965   echo $ECHO_N "(cached) $ECHO_C" >&6
8966 else
8967   eval "$as_ac_Header=$ac_header_preproc"
8968 fi
8969 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8970 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8971
8972 fi
8973 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8974   cat >>confdefs.h <<_ACEOF
8975 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8976 _ACEOF
8977  break
8978 fi
8979
8980 done
8981
8982
8983 echo "$as_me:$LINENO: checking for Open Sound System" >&5
8984 echo $ECHO_N "checking for Open Sound System... $ECHO_C" >&6
8985 if test "${ac_cv_c_opensoundsystem+set}" = set; then
8986   echo $ECHO_N "(cached) $ECHO_C" >&6
8987 else
8988   cat >conftest.$ac_ext <<_ACEOF
8989 #line $LINENO "configure"
8990 #include "confdefs.h"
8991
8992         #if defined(HAVE_SYS_SOUNDCARD_H)
8993                 #include <sys/soundcard.h>
8994         #elif defined(HAVE_MACHINE_SOUNDCARD_H)
8995                 #include <machine/soundcard.h>
8996         #elif defined(HAVE_SOUNDCARD_H)
8997                 #include <soundcard.h>
8998         #endif
8999
9000 #ifdef F77_DUMMY_MAIN
9001 #  ifdef __cplusplus
9002      extern "C"
9003 #  endif
9004    int F77_DUMMY_MAIN() { return 1; }
9005 #endif
9006 int
9007 main ()
9008 {
9009
9010
9011 /* check for one of the Open Sound System specific SNDCTL_ defines */
9012 #if !defined(SNDCTL_DSP_STEREO)
9013 #error No open sound system
9014 #endif
9015
9016   ;
9017   return 0;
9018 }
9019 _ACEOF
9020 rm -f conftest.$ac_objext
9021 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9022   (eval $ac_compile) 2>&5
9023   ac_status=$?
9024   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9025   (exit $ac_status); } &&
9026          { ac_try='test -s conftest.$ac_objext'
9027   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9028   (eval $ac_try) 2>&5
9029   ac_status=$?
9030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9031   (exit $ac_status); }; }; then
9032   ac_cv_c_opensoundsystem="yes"
9033 else
9034   echo "$as_me: failed program was:" >&5
9035 cat conftest.$ac_ext >&5
9036 ac_cv_c_opensoundsystem="no"
9037 fi
9038 rm -f conftest.$ac_objext conftest.$ac_ext
9039 fi
9040 echo "$as_me:$LINENO: result: $ac_cv_c_opensoundsystem" >&5
9041 echo "${ECHO_T}$ac_cv_c_opensoundsystem" >&6
9042
9043 if test "$ac_cv_c_opensoundsystem" = "yes"
9044 then
9045
9046 cat >>confdefs.h <<\_ACEOF
9047 #define HAVE_OSS 1
9048 _ACEOF
9049
9050 fi
9051
9052 echo "$as_me:$LINENO: checking for Open Sound System/MIDI interface" >&5
9053 echo $ECHO_N "checking for Open Sound System/MIDI interface... $ECHO_C" >&6
9054 if test "${ac_cv_c_opensoundsystem_midi+set}" = set; then
9055   echo $ECHO_N "(cached) $ECHO_C" >&6
9056 else
9057   cat >conftest.$ac_ext <<_ACEOF
9058 #line $LINENO "configure"
9059 #include "confdefs.h"
9060
9061         #if defined(HAVE_SYS_SOUNDCARD_H)
9062                 #include <sys/soundcard.h>
9063         #elif defined(HAVE_MACHINE_SOUNDCARD_H)
9064                 #include <machine/soundcard.h>
9065         #elif defined(HAVE_SOUNDCARD_H)
9066                 #include <soundcard.h>
9067         #endif
9068
9069 #ifdef F77_DUMMY_MAIN
9070 #  ifdef __cplusplus
9071      extern "C"
9072 #  endif
9073    int F77_DUMMY_MAIN() { return 1; }
9074 #endif
9075 int
9076 main ()
9077 {
9078
9079
9080 /* check for one of the Open Sound System specific SNDCTL_SEQ defines */
9081 #if !defined(SNDCTL_SEQ_SYNC)
9082 #error No open sound system MIDI interface
9083 #endif
9084
9085   ;
9086   return 0;
9087 }
9088 _ACEOF
9089 rm -f conftest.$ac_objext
9090 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9091   (eval $ac_compile) 2>&5
9092   ac_status=$?
9093   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9094   (exit $ac_status); } &&
9095          { ac_try='test -s conftest.$ac_objext'
9096   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9097   (eval $ac_try) 2>&5
9098   ac_status=$?
9099   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9100   (exit $ac_status); }; }; then
9101   ac_cv_c_opensoundsystem_midi="yes"
9102 else
9103   echo "$as_me: failed program was:" >&5
9104 cat conftest.$ac_ext >&5
9105 ac_cv_c_opensoundsystem_midi="no"
9106 fi
9107 rm -f conftest.$ac_objext conftest.$ac_ext
9108 fi
9109 echo "$as_me:$LINENO: result: $ac_cv_c_opensoundsystem_midi" >&5
9110 echo "${ECHO_T}$ac_cv_c_opensoundsystem_midi" >&6
9111
9112 if test "$ac_cv_c_opensoundsystem_midi" = "yes"
9113 then
9114
9115 cat >>confdefs.h <<\_ACEOF
9116 #define HAVE_OSS_MIDI 1
9117 _ACEOF
9118
9119 fi
9120
9121 # Extract the first word of "artsc-config", so it can be a program name with args.
9122 set dummy artsc-config; ac_word=$2
9123 echo "$as_me:$LINENO: checking for $ac_word" >&5
9124 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9125 if test "${ac_cv_path_ARTSCCONFIG+set}" = set; then
9126   echo $ECHO_N "(cached) $ECHO_C" >&6
9127 else
9128   case $ARTSCCONFIG in
9129   [\\/]* | ?:[\\/]*)
9130   ac_cv_path_ARTSCCONFIG="$ARTSCCONFIG" # Let the user override the test with a path.
9131   ;;
9132   *)
9133   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9134 for as_dir in $PATH
9135 do
9136   IFS=$as_save_IFS
9137   test -z "$as_dir" && as_dir=.
9138   for ac_exec_ext in '' $ac_executable_extensions; do
9139   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9140     ac_cv_path_ARTSCCONFIG="$as_dir/$ac_word$ac_exec_ext"
9141     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9142     break 2
9143   fi
9144 done
9145 done
9146
9147   ;;
9148 esac
9149 fi
9150 ARTSCCONFIG=$ac_cv_path_ARTSCCONFIG
9151
9152 if test -n "$ARTSCCONFIG"; then
9153   echo "$as_me:$LINENO: result: $ARTSCCONFIG" >&5
9154 echo "${ECHO_T}$ARTSCCONFIG" >&6
9155 else
9156   echo "$as_me:$LINENO: result: no" >&5
9157 echo "${ECHO_T}no" >&6
9158 fi
9159
9160 echo "$as_me:$LINENO: checking for aRts Sound server" >&5
9161 echo $ECHO_N "checking for aRts Sound server... $ECHO_C" >&6
9162 if test "${ac_cv_c_artsserver+set}" = set; then
9163   echo $ECHO_N "(cached) $ECHO_C" >&6
9164 else
9165   if test x$ARTSCCONFIG = x -o x$ARTSCCONFIG = x'"$ARTSCCONFIG"';
9166         then
9167             ac_cv_c_artsserver=no
9168         else
9169             ARTSC_CFLAGS=`$ARTSCCONFIG --cflags`
9170             ARTSC_LIBS=`$ARTSCCONFIG --libs`
9171             ac_cv_c_artsserver=no
9172             save_CFLAGS="$CFLAGS"
9173             CFLAGS="$CFLAGS $ARTSC_CFLAGS"
9174             cat >conftest.$ac_ext <<_ACEOF
9175 #line $LINENO "configure"
9176 #include "confdefs.h"
9177
9178              #include <artsc.h>
9179
9180 #ifdef F77_DUMMY_MAIN
9181 #  ifdef __cplusplus
9182      extern "C"
9183 #  endif
9184    int F77_DUMMY_MAIN() { return 1; }
9185 #endif
9186 int
9187 main ()
9188 {
9189
9190              arts_stream_t stream;
9191
9192   ;
9193   return 0;
9194 }
9195 _ACEOF
9196 rm -f conftest.$ac_objext
9197 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9198   (eval $ac_compile) 2>&5
9199   ac_status=$?
9200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9201   (exit $ac_status); } &&
9202          { ac_try='test -s conftest.$ac_objext'
9203   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9204   (eval $ac_try) 2>&5
9205   ac_status=$?
9206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9207   (exit $ac_status); }; }; then
9208
9209             ac_cv_c_artsserver=yes
9210
9211 else
9212   echo "$as_me: failed program was:" >&5
9213 cat conftest.$ac_ext >&5
9214 fi
9215 rm -f conftest.$ac_objext conftest.$ac_ext
9216             CFLAGS="$save_CFLAGS"
9217         fi
9218 fi
9219 echo "$as_me:$LINENO: result: $ac_cv_c_artsserver" >&5
9220 echo "${ECHO_T}$ac_cv_c_artsserver" >&6
9221
9222 if test "$ac_cv_c_artsserver" = "yes"
9223 then
9224     ARTSLIBS=$ARTSC_LIBS
9225
9226     ARTSINCL=$ARTSC_CFLAGS
9227
9228
9229
9230 cat >>confdefs.h <<\_ACEOF
9231 #define HAVE_ARTS 1
9232 _ACEOF
9233
9234 fi
9235
9236
9237 echo "$as_me:$LINENO: checking whether mmap64 works defined as mmap" >&5
9238 echo $ECHO_N "checking whether mmap64 works defined as mmap... $ECHO_C" >&6
9239 if test "${ac_cv_mmap64_works+set}" = set; then
9240   echo $ECHO_N "(cached) $ECHO_C" >&6
9241 else
9242   if test "$cross_compiling" = yes; then
9243   ac_cv_mmap64_works="no"
9244 else
9245   cat >conftest.$ac_ext <<_ACEOF
9246 #line $LINENO "configure"
9247 #include "confdefs.h"
9248
9249                 #define _FILE_OFFSET_BITS 64
9250                 #include <stdio.h>
9251                 #include <unistd.h>
9252                 #include <fcntl.h>
9253                 #include <sys/mman.h>
9254                 #include <errno.h>
9255
9256                 int main(int argc,char **argv) {
9257                         int fd = open("conftest.map",O_CREAT|O_RDWR,0600);
9258                         if (fd == -1) exit(1);
9259
9260                         unlink("conftest.map");
9261
9262                         write(fd,"test",4);
9263
9264                         if ((-1 == mmap(0,4,PROT_READ|PROT_WRITE,MAP_SHARED,fd,0)) &&
9265                             (errno == EINVAL)
9266                         ) {
9267                                 exit(1);
9268                         }
9269                         close(fd);
9270                         fprintf(stderr,"success!\n");
9271                         exit(0);
9272                 }
9273
9274
9275 _ACEOF
9276 rm -f conftest$ac_exeext
9277 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9278   (eval $ac_link) 2>&5
9279   ac_status=$?
9280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9281   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9282   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9283   (eval $ac_try) 2>&5
9284   ac_status=$?
9285   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9286   (exit $ac_status); }; }; then
9287   ac_cv_mmap64_works="yes"
9288 else
9289   echo "$as_me: program exited with status $ac_status" >&5
9290 echo "$as_me: failed program was:" >&5
9291 cat conftest.$ac_ext >&5
9292 ( exit $ac_status )
9293 ac_cv_mmap64_works="no"
9294 fi
9295 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9296 fi
9297 fi
9298 echo "$as_me:$LINENO: result: $ac_cv_mmap64_works" >&5
9299 echo "${ECHO_T}$ac_cv_mmap64_works" >&6
9300
9301 if test "$ac_cv_mmap64_works" = "yes"
9302 then
9303
9304 cat >>confdefs.h <<\_ACEOF
9305 #define _FILE_OFFSET_BITS 64
9306 _ACEOF
9307
9308 fi
9309
9310
9311 if test "x${GCC}" = "xyes"
9312 then
9313   CFLAGS="$CFLAGS -Wall"
9314   echo "$as_me:$LINENO: checking for gcc strength-reduce bug" >&5
9315 echo $ECHO_N "checking for gcc strength-reduce bug... $ECHO_C" >&6
9316 if test "${ac_cv_c_gcc_strength_bug+set}" = set; then
9317   echo $ECHO_N "(cached) $ECHO_C" >&6
9318 else
9319   if test "$cross_compiling" = yes; then
9320   ac_cv_c_gcc_strength_bug="yes"
9321 else
9322   cat >conftest.$ac_ext <<_ACEOF
9323 #line $LINENO "configure"
9324 #include "confdefs.h"
9325
9326 int     L[4] = {0,1,2,3};
9327 int main(void) {
9328   static int Array[3];
9329   unsigned int B = 3;
9330   int i;
9331   for(i=0; i<B; i++) Array[i] = i - 3;
9332   for(i=0; i<4 - 1; i++) L[i] = L[i + 1];
9333   L[i] = 4;
9334
9335   exit( Array[1] != -2 || L[2] != 3);
9336 }
9337 _ACEOF
9338 rm -f conftest$ac_exeext
9339 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9340   (eval $ac_link) 2>&5
9341   ac_status=$?
9342   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9343   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9344   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9345   (eval $ac_try) 2>&5
9346   ac_status=$?
9347   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9348   (exit $ac_status); }; }; then
9349   ac_cv_c_gcc_strength_bug="no"
9350 else
9351   echo "$as_me: program exited with status $ac_status" >&5
9352 echo "$as_me: failed program was:" >&5
9353 cat conftest.$ac_ext >&5
9354 ( exit $ac_status )
9355 ac_cv_c_gcc_strength_bug="yes"
9356 fi
9357 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9358 fi
9359 fi
9360 echo "$as_me:$LINENO: result: $ac_cv_c_gcc_strength_bug" >&5
9361 echo "${ECHO_T}$ac_cv_c_gcc_strength_bug" >&6
9362   if test "$ac_cv_c_gcc_strength_bug" = "yes"
9363   then
9364     CFLAGS="$CFLAGS -fno-strength-reduce"
9365   fi
9366
9367     echo "$as_me:$LINENO: checking for gcc -mpreferred-stack-boundary=2 support" >&5
9368 echo $ECHO_N "checking for gcc -mpreferred-stack-boundary=2 support... $ECHO_C" >&6
9369 if test "${ac_cv_c_gcc_stack_boundary+set}" = set; then
9370   echo $ECHO_N "(cached) $ECHO_C" >&6
9371 else
9372   saved_cflags=$CFLAGS
9373   CFLAGS="$CFLAGS -mpreferred-stack-boundary=2"
9374   cat >conftest.$ac_ext <<_ACEOF
9375 #line $LINENO "configure"
9376 #include "confdefs.h"
9377
9378 #ifdef F77_DUMMY_MAIN
9379 #  ifdef __cplusplus
9380      extern "C"
9381 #  endif
9382    int F77_DUMMY_MAIN() { return 1; }
9383 #endif
9384 int
9385 main ()
9386 {
9387 return 0
9388   ;
9389   return 0;
9390 }
9391 _ACEOF
9392 rm -f conftest.$ac_objext
9393 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9394   (eval $ac_compile) 2>&5
9395   ac_status=$?
9396   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9397   (exit $ac_status); } &&
9398          { ac_try='test -s conftest.$ac_objext'
9399   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9400   (eval $ac_try) 2>&5
9401   ac_status=$?
9402   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9403   (exit $ac_status); }; }; then
9404   ac_cv_c_gcc_stack_boundary="yes"
9405 else
9406   echo "$as_me: failed program was:" >&5
9407 cat conftest.$ac_ext >&5
9408 ac_cv_c_gcc_stack_boundary="no"
9409 fi
9410 rm -f conftest.$ac_objext conftest.$ac_ext
9411   CFLAGS=$saved_cflags
9412
9413 fi
9414 echo "$as_me:$LINENO: result: $ac_cv_c_gcc_stack_boundary" >&5
9415 echo "${ECHO_T}$ac_cv_c_gcc_stack_boundary" >&6
9416   if test "$ac_cv_c_gcc_stack_boundary" = "yes"
9417   then
9418     CFLAGS="$CFLAGS -mpreferred-stack-boundary=2"
9419   fi
9420 fi
9421
9422
9423 echo "$as_me:$LINENO: checking whether .type must sit inside a .def directive" >&5
9424 echo $ECHO_N "checking whether .type must sit inside a .def directive... $ECHO_C" >&6
9425 if test "${ac_cv_c_type_in_def+set}" = set; then
9426   echo $ECHO_N "(cached) $ECHO_C" >&6
9427 else
9428   saved_libs=$LIBS
9429 LIBS="conftest_asm.s $LIBS"
9430 cat > conftest_asm.s <<EOF
9431         .globl _ac_test
9432         .def _ac_test; .scl 2; .type 32; .endef
9433 _ac_test:
9434         .long 0
9435 EOF
9436 cat >conftest.$ac_ext <<_ACEOF
9437 #line $LINENO "configure"
9438 #include "confdefs.h"
9439
9440 #ifdef F77_DUMMY_MAIN
9441 #  ifdef __cplusplus
9442      extern "C"
9443 #  endif
9444    int F77_DUMMY_MAIN() { return 1; }
9445 #endif
9446 int
9447 main ()
9448 {
9449
9450   ;
9451   return 0;
9452 }
9453 _ACEOF
9454 rm -f conftest.$ac_objext conftest$ac_exeext
9455 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9456   (eval $ac_link) 2>&5
9457   ac_status=$?
9458   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9459   (exit $ac_status); } &&
9460          { ac_try='test -s conftest$ac_exeext'
9461   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9462   (eval $ac_try) 2>&5
9463   ac_status=$?
9464   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9465   (exit $ac_status); }; }; then
9466   ac_cv_c_type_in_def="yes"
9467 else
9468   echo "$as_me: failed program was:" >&5
9469 cat conftest.$ac_ext >&5
9470 ac_cv_c_type_in_def="no"
9471 fi
9472 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9473 LIBS=$saved_libs
9474 fi
9475 echo "$as_me:$LINENO: result: $ac_cv_c_type_in_def" >&5
9476 echo "${ECHO_T}$ac_cv_c_type_in_def" >&6
9477 if test "$ac_cv_c_type_in_def" = "yes"
9478 then
9479
9480 cat >>confdefs.h <<\_ACEOF
9481 #define NEED_TYPE_IN_DEF 1
9482 _ACEOF
9483
9484 fi
9485
9486
9487 echo "$as_me:$LINENO: checking whether external symbols need an underscore prefix" >&5
9488 echo $ECHO_N "checking whether external symbols need an underscore prefix... $ECHO_C" >&6
9489 if test "${ac_cv_c_extern_prefix+set}" = set; then
9490   echo $ECHO_N "(cached) $ECHO_C" >&6
9491 else
9492   saved_libs=$LIBS
9493 LIBS="conftest_asm.s $LIBS"
9494 cat > conftest_asm.s <<EOF
9495         .globl _ac_test
9496 _ac_test:
9497         .long 0
9498 EOF
9499 cat >conftest.$ac_ext <<_ACEOF
9500 #line $LINENO "configure"
9501 #include "confdefs.h"
9502 extern int ac_test;
9503 #ifdef F77_DUMMY_MAIN
9504 #  ifdef __cplusplus
9505      extern "C"
9506 #  endif
9507    int F77_DUMMY_MAIN() { return 1; }
9508 #endif
9509 int
9510 main ()
9511 {
9512 if (ac_test) return 1
9513   ;
9514   return 0;
9515 }
9516 _ACEOF
9517 rm -f conftest.$ac_objext conftest$ac_exeext
9518 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9519   (eval $ac_link) 2>&5
9520   ac_status=$?
9521   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9522   (exit $ac_status); } &&
9523          { ac_try='test -s conftest$ac_exeext'
9524   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9525   (eval $ac_try) 2>&5
9526   ac_status=$?
9527   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9528   (exit $ac_status); }; }; then
9529   ac_cv_c_extern_prefix="yes"
9530 else
9531   echo "$as_me: failed program was:" >&5
9532 cat conftest.$ac_ext >&5
9533 ac_cv_c_extern_prefix="no"
9534 fi
9535 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9536 LIBS=$saved_libs
9537 fi
9538 echo "$as_me:$LINENO: result: $ac_cv_c_extern_prefix" >&5
9539 echo "${ECHO_T}$ac_cv_c_extern_prefix" >&6
9540 if test "$ac_cv_c_extern_prefix" = "yes"
9541 then
9542
9543 cat >>confdefs.h <<\_ACEOF
9544 #define NEED_UNDERSCORE_PREFIX 1
9545 _ACEOF
9546
9547 fi
9548
9549
9550 echo "$as_me:$LINENO: checking whether stdcall symbols need to be decorated" >&5
9551 echo $ECHO_N "checking whether stdcall symbols need to be decorated... $ECHO_C" >&6
9552 if test "${ac_cv_c_stdcall_decoration+set}" = set; then
9553   echo $ECHO_N "(cached) $ECHO_C" >&6
9554 else
9555   saved_libs=$LIBS
9556 LIBS="conftest_asm.s $LIBS"
9557 if test "$ac_cv_c_extern_prefix" = "yes"
9558 then
9559 cat > conftest_asm.s <<EOF
9560         .globl _ac_test@0
9561 _ac_test@0:
9562 EOF
9563 else
9564 cat > conftest_asm.s <<EOF
9565         .globl ac_test@0
9566 ac_test@0:
9567 EOF
9568 fi
9569 cat >conftest.$ac_ext <<_ACEOF
9570 #line $LINENO "configure"
9571 #include "confdefs.h"
9572 extern void __attribute__((__stdcall__)) ac_test(void);
9573 #ifdef F77_DUMMY_MAIN
9574 #  ifdef __cplusplus
9575      extern "C"
9576 #  endif
9577    int F77_DUMMY_MAIN() { return 1; }
9578 #endif
9579 int
9580 main ()
9581 {
9582 ac_test(); return 0
9583   ;
9584   return 0;
9585 }
9586 _ACEOF
9587 rm -f conftest.$ac_objext conftest$ac_exeext
9588 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9589   (eval $ac_link) 2>&5
9590   ac_status=$?
9591   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9592   (exit $ac_status); } &&
9593          { ac_try='test -s conftest$ac_exeext'
9594   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9595   (eval $ac_try) 2>&5
9596   ac_status=$?
9597   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9598   (exit $ac_status); }; }; then
9599   ac_cv_c_stdcall_decoration="yes"
9600 else
9601   echo "$as_me: failed program was:" >&5
9602 cat conftest.$ac_ext >&5
9603 ac_cv_c_stdcall_decoration="no"
9604 fi
9605 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9606 LIBS=$saved_libs
9607 fi
9608 echo "$as_me:$LINENO: result: $ac_cv_c_stdcall_decoration" >&5
9609 echo "${ECHO_T}$ac_cv_c_stdcall_decoration" >&6
9610 if test "$ac_cv_c_stdcall_decoration" = "yes"
9611 then
9612
9613 cat >>confdefs.h <<\_ACEOF
9614 #define NEED_STDCALL_DECORATION 1
9615 _ACEOF
9616
9617 fi
9618
9619
9620 echo "$as_me:$LINENO: checking whether assembler accepts .string" >&5
9621 echo $ECHO_N "checking whether assembler accepts .string... $ECHO_C" >&6
9622 if test "${ac_cv_c_asm_string+set}" = set; then
9623   echo $ECHO_N "(cached) $ECHO_C" >&6
9624 else
9625   saved_libs=$LIBS
9626 LIBS="conftest_asm.s $LIBS"
9627 cat > conftest_asm.s <<EOF
9628         .string "test"
9629 EOF
9630 cat >conftest.$ac_ext <<_ACEOF
9631 #line $LINENO "configure"
9632 #include "confdefs.h"
9633
9634 #ifdef F77_DUMMY_MAIN
9635 #  ifdef __cplusplus
9636      extern "C"
9637 #  endif
9638    int F77_DUMMY_MAIN() { return 1; }
9639 #endif
9640 int
9641 main ()
9642 {
9643
9644   ;
9645   return 0;
9646 }
9647 _ACEOF
9648 rm -f conftest.$ac_objext conftest$ac_exeext
9649 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9650   (eval $ac_link) 2>&5
9651   ac_status=$?
9652   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9653   (exit $ac_status); } &&
9654          { ac_try='test -s conftest$ac_exeext'
9655   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9656   (eval $ac_try) 2>&5
9657   ac_status=$?
9658   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9659   (exit $ac_status); }; }; then
9660   ac_cv_c_asm_string="yes"
9661 else
9662   echo "$as_me: failed program was:" >&5
9663 cat conftest.$ac_ext >&5
9664 ac_cv_c_asm_string="no"
9665 fi
9666 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9667 LIBS=$saved_libs
9668 fi
9669 echo "$as_me:$LINENO: result: $ac_cv_c_asm_string" >&5
9670 echo "${ECHO_T}$ac_cv_c_asm_string" >&6
9671 if test "$ac_cv_c_asm_string" = "yes"
9672 then
9673
9674 cat >>confdefs.h <<\_ACEOF
9675 #define HAVE_ASM_STRING 1
9676 _ACEOF
9677
9678 fi
9679
9680
9681 LDSHARED=""
9682 LDDLLFLAGS=""
9683 if test "$LIBEXT" = "so"
9684 then
9685   echo "$as_me:$LINENO: checking whether we can build a GNU style ELF dll" >&5
9686 echo $ECHO_N "checking whether we can build a GNU style ELF dll... $ECHO_C" >&6
9687 if test "${ac_cv_c_dll_gnuelf+set}" = set; then
9688   echo $ECHO_N "(cached) $ECHO_C" >&6
9689 else
9690   saved_cflags=$CFLAGS
9691   CFLAGS="$CFLAGS -fPIC -shared -Wl,-soname,conftest.so.1.0,-Bsymbolic"
9692   cat >conftest.$ac_ext <<_ACEOF
9693 #line $LINENO "configure"
9694 #include "confdefs.h"
9695
9696 #ifdef F77_DUMMY_MAIN
9697 #  ifdef __cplusplus
9698      extern "C"
9699 #  endif
9700    int F77_DUMMY_MAIN() { return 1; }
9701 #endif
9702 int
9703 main ()
9704 {
9705 return 1
9706   ;
9707   return 0;
9708 }
9709 _ACEOF
9710 rm -f conftest.$ac_objext conftest$ac_exeext
9711 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9712   (eval $ac_link) 2>&5
9713   ac_status=$?
9714   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9715   (exit $ac_status); } &&
9716          { ac_try='test -s conftest$ac_exeext'
9717   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9718   (eval $ac_try) 2>&5
9719   ac_status=$?
9720   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9721   (exit $ac_status); }; }; then
9722   ac_cv_c_dll_gnuelf="yes"
9723 else
9724   echo "$as_me: failed program was:" >&5
9725 cat conftest.$ac_ext >&5
9726 ac_cv_c_dll_gnuelf="no"
9727 fi
9728 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9729   CFLAGS=$saved_cflags
9730
9731 fi
9732 echo "$as_me:$LINENO: result: $ac_cv_c_dll_gnuelf" >&5
9733 echo "${ECHO_T}$ac_cv_c_dll_gnuelf" >&6
9734   if test "$ac_cv_c_dll_gnuelf" = "yes"
9735   then
9736     LDSHARED="\$(CC) -shared \$(SONAME:%=-Wl,-soname,%)"
9737     LDDLLFLAGS="-Wl,-Bsymbolic"
9738   else
9739     echo "$as_me:$LINENO: checking whether we can build a UnixWare (Solaris) dll" >&5
9740 echo $ECHO_N "checking whether we can build a UnixWare (Solaris) dll... $ECHO_C" >&6
9741 if test "${ac_cv_c_dll_unixware+set}" = set; then
9742   echo $ECHO_N "(cached) $ECHO_C" >&6
9743 else
9744   saved_cflags=$CFLAGS
9745     CFLAGS="$CFLAGS -fPIC -Wl,-G,-h,conftest.so.1.0,-B,symbolic"
9746     cat >conftest.$ac_ext <<_ACEOF
9747 #line $LINENO "configure"
9748 #include "confdefs.h"
9749
9750 #ifdef F77_DUMMY_MAIN
9751 #  ifdef __cplusplus
9752      extern "C"
9753 #  endif
9754    int F77_DUMMY_MAIN() { return 1; }
9755 #endif
9756 int
9757 main ()
9758 {
9759 return 1
9760   ;
9761   return 0;
9762 }
9763 _ACEOF
9764 rm -f conftest.$ac_objext conftest$ac_exeext
9765 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9766   (eval $ac_link) 2>&5
9767   ac_status=$?
9768   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9769   (exit $ac_status); } &&
9770          { ac_try='test -s conftest$ac_exeext'
9771   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9772   (eval $ac_try) 2>&5
9773   ac_status=$?
9774   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9775   (exit $ac_status); }; }; then
9776   ac_cv_c_dll_unixware="yes"
9777 else
9778   echo "$as_me: failed program was:" >&5
9779 cat conftest.$ac_ext >&5
9780 ac_cv_c_dll_unixware="no"
9781 fi
9782 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9783     CFLAGS=$saved_cflags
9784
9785 fi
9786 echo "$as_me:$LINENO: result: $ac_cv_c_dll_unixware" >&5
9787 echo "${ECHO_T}$ac_cv_c_dll_unixware" >&6
9788     if test "$ac_cv_c_dll_unixware" = "yes"
9789     then
9790       LDSHARED="\$(CC) -Wl,-G \$(SONAME:%=-Wl,-h,%)"
9791       LDDLLFLAGS="-Wl,-B,symbolic"
9792     fi
9793   fi
9794   if test "$ac_cv_c_dll_gnuelf" = "no" -a "$ac_cv_c_dll_unixware" = "no"
9795   then
9796     LIBEXT="a"
9797     # Extract the first word of "dllwrap", so it can be a program name with args.
9798 set dummy dllwrap; ac_word=$2
9799 echo "$as_me:$LINENO: checking for $ac_word" >&5
9800 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9801 if test "${ac_cv_prog_DLLWRAP+set}" = set; then
9802   echo $ECHO_N "(cached) $ECHO_C" >&6
9803 else
9804   if test -n "$DLLWRAP"; then
9805   ac_cv_prog_DLLWRAP="$DLLWRAP" # Let the user override the test.
9806 else
9807 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9808 for as_dir in $PATH
9809 do
9810   IFS=$as_save_IFS
9811   test -z "$as_dir" && as_dir=.
9812   for ac_exec_ext in '' $ac_executable_extensions; do
9813   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9814     ac_cv_prog_DLLWRAP="dllwrap"
9815     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9816     break 2
9817   fi
9818 done
9819 done
9820
9821   test -z "$ac_cv_prog_DLLWRAP" && ac_cv_prog_DLLWRAP="false"
9822 fi
9823 fi
9824 DLLWRAP=$ac_cv_prog_DLLWRAP
9825 if test -n "$DLLWRAP"; then
9826   echo "$as_me:$LINENO: result: $DLLWRAP" >&5
9827 echo "${ECHO_T}$DLLWRAP" >&6
9828 else
9829   echo "$as_me:$LINENO: result: no" >&5
9830 echo "${ECHO_T}no" >&6
9831 fi
9832
9833     if test "$DLLWRAP" = "dllwrap"; then
9834             case $host_os in
9835         *cygwin*)
9836             LIBEXT="dll"
9837             ;;
9838       esac
9839     fi
9840   fi
9841 fi
9842
9843 if test "$LIBEXT" = "a"; then
9844   { { echo "$as_me:$LINENO: error: could not find a way to build shared libraries.
9845 It is currently not possible to build Wine without shared library
9846 (.so) support to allow transparent switch between .so and .dll files.
9847 If you are using Linux, you will need a newer binutils.
9848 " >&5
9849 echo "$as_me: error: could not find a way to build shared libraries.
9850 It is currently not possible to build Wine without shared library
9851 (.so) support to allow transparent switch between .so and .dll files.
9852 If you are using Linux, you will need a newer binutils.
9853 " >&2;}
9854    { (exit 1); exit 1; }; }
9855 fi
9856
9857 DLLFLAGS=""
9858 LDPATH=""
9859
9860 if test "$LIBEXT" = "so"; then
9861     DLLFLAGS="-fPIC"
9862     DLLEXT=".so"
9863     LDPATH="LD_LIBRARY_PATH=\"\$(TOPOBJDIR)/unicode:\$\$LD_LIBRARY_PATH\""
9864 elif test "$LIBEXT" = "dll"; then
9865     #DLLFLAGS="-fPIC" # -fPIC doesn't work(at least in cygwin-b20) - FIXME
9866     DLLEXT=""
9867     LDPATH="PATH=\"\$(TOPOBJDIR)/unicode:\$\$PATH\""
9868 fi
9869
9870
9871
9872
9873
9874
9875
9876
9877
9878
9879
9880 wine_cv_libc_reentrant=no
9881
9882   echo "$as_me:$LINENO: checking for reentrant libc: __errno_location" >&5
9883 echo $ECHO_N "checking for reentrant libc: __errno_location... $ECHO_C" >&6
9884 if test "${wine_cv_libc_r___errno_location+set}" = set; then
9885   echo $ECHO_N "(cached) $ECHO_C" >&6
9886 else
9887   if test "$cross_compiling" = yes; then
9888   wine_cv_libc_r___errno_location=yes
9889 else
9890   cat >conftest.$ac_ext <<_ACEOF
9891 #line $LINENO "configure"
9892 #include "confdefs.h"
9893 int myerrno = 0;
9894 char buf[256];
9895 int *__errno_location(){return &myerrno;}
9896 main(){connect(0,buf,255); exit(!myerrno);}
9897 _ACEOF
9898 rm -f conftest$ac_exeext
9899 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9900   (eval $ac_link) 2>&5
9901   ac_status=$?
9902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9903   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9904   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9905   (eval $ac_try) 2>&5
9906   ac_status=$?
9907   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9908   (exit $ac_status); }; }; then
9909   wine_cv_libc_r___errno_location=yes
9910 else
9911   echo "$as_me: program exited with status $ac_status" >&5
9912 echo "$as_me: failed program was:" >&5
9913 cat conftest.$ac_ext >&5
9914 ( exit $ac_status )
9915 wine_cv_libc_r___errno_location=no
9916 fi
9917 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9918 fi
9919
9920 fi
9921 echo "$as_me:$LINENO: result: $wine_cv_libc_r___errno_location" >&5
9922 echo "${ECHO_T}$wine_cv_libc_r___errno_location" >&6
9923 if test "$wine_cv_libc_r___errno_location" = "yes"
9924 then
9925     wine_cv_libc_reentrant=__errno_location
9926 fi
9927
9928
9929   echo "$as_me:$LINENO: checking for reentrant libc: __error" >&5
9930 echo $ECHO_N "checking for reentrant libc: __error... $ECHO_C" >&6
9931 if test "${wine_cv_libc_r___error+set}" = set; then
9932   echo $ECHO_N "(cached) $ECHO_C" >&6
9933 else
9934   if test "$cross_compiling" = yes; then
9935   wine_cv_libc_r___error=yes
9936 else
9937   cat >conftest.$ac_ext <<_ACEOF
9938 #line $LINENO "configure"
9939 #include "confdefs.h"
9940 int myerrno = 0;
9941 char buf[256];
9942 int *__error(){return &myerrno;}
9943 main(){connect(0,buf,255); exit(!myerrno);}
9944 _ACEOF
9945 rm -f conftest$ac_exeext
9946 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9947   (eval $ac_link) 2>&5
9948   ac_status=$?
9949   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9950   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9951   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9952   (eval $ac_try) 2>&5
9953   ac_status=$?
9954   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9955   (exit $ac_status); }; }; then
9956   wine_cv_libc_r___error=yes
9957 else
9958   echo "$as_me: program exited with status $ac_status" >&5
9959 echo "$as_me: failed program was:" >&5
9960 cat conftest.$ac_ext >&5
9961 ( exit $ac_status )
9962 wine_cv_libc_r___error=no
9963 fi
9964 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9965 fi
9966
9967 fi
9968 echo "$as_me:$LINENO: result: $wine_cv_libc_r___error" >&5
9969 echo "${ECHO_T}$wine_cv_libc_r___error" >&6
9970 if test "$wine_cv_libc_r___error" = "yes"
9971 then
9972     wine_cv_libc_reentrant=__error
9973 fi
9974
9975
9976   echo "$as_me:$LINENO: checking for reentrant libc: ___errno" >&5
9977 echo $ECHO_N "checking for reentrant libc: ___errno... $ECHO_C" >&6
9978 if test "${wine_cv_libc_r____errno+set}" = set; then
9979   echo $ECHO_N "(cached) $ECHO_C" >&6
9980 else
9981   if test "$cross_compiling" = yes; then
9982   wine_cv_libc_r____errno=yes
9983 else
9984   cat >conftest.$ac_ext <<_ACEOF
9985 #line $LINENO "configure"
9986 #include "confdefs.h"
9987 int myerrno = 0;
9988 char buf[256];
9989 int *___errno(){return &myerrno;}
9990 main(){connect(0,buf,255); exit(!myerrno);}
9991 _ACEOF
9992 rm -f conftest$ac_exeext
9993 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9994   (eval $ac_link) 2>&5
9995   ac_status=$?
9996   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9997   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9998   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9999   (eval $ac_try) 2>&5
10000   ac_status=$?
10001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10002   (exit $ac_status); }; }; then
10003   wine_cv_libc_r____errno=yes
10004 else
10005   echo "$as_me: program exited with status $ac_status" >&5
10006 echo "$as_me: failed program was:" >&5
10007 cat conftest.$ac_ext >&5
10008 ( exit $ac_status )
10009 wine_cv_libc_r____errno=no
10010 fi
10011 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10012 fi
10013
10014 fi
10015 echo "$as_me:$LINENO: result: $wine_cv_libc_r____errno" >&5
10016 echo "${ECHO_T}$wine_cv_libc_r____errno" >&6
10017 if test "$wine_cv_libc_r____errno" = "yes"
10018 then
10019     wine_cv_libc_reentrant=___errno
10020 fi
10021
10022
10023   echo "$as_me:$LINENO: checking for reentrant libc: __thr_errno" >&5
10024 echo $ECHO_N "checking for reentrant libc: __thr_errno... $ECHO_C" >&6
10025 if test "${wine_cv_libc_r___thr_errno+set}" = set; then
10026   echo $ECHO_N "(cached) $ECHO_C" >&6
10027 else
10028   if test "$cross_compiling" = yes; then
10029   wine_cv_libc_r___thr_errno=yes
10030 else
10031   cat >conftest.$ac_ext <<_ACEOF
10032 #line $LINENO "configure"
10033 #include "confdefs.h"
10034 int myerrno = 0;
10035 char buf[256];
10036 int *__thr_errno(){return &myerrno;}
10037 main(){connect(0,buf,255); exit(!myerrno);}
10038 _ACEOF
10039 rm -f conftest$ac_exeext
10040 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10041   (eval $ac_link) 2>&5
10042   ac_status=$?
10043   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10044   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10045   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10046   (eval $ac_try) 2>&5
10047   ac_status=$?
10048   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10049   (exit $ac_status); }; }; then
10050   wine_cv_libc_r___thr_errno=yes
10051 else
10052   echo "$as_me: program exited with status $ac_status" >&5
10053 echo "$as_me: failed program was:" >&5
10054 cat conftest.$ac_ext >&5
10055 ( exit $ac_status )
10056 wine_cv_libc_r___thr_errno=no
10057 fi
10058 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10059 fi
10060
10061 fi
10062 echo "$as_me:$LINENO: result: $wine_cv_libc_r___thr_errno" >&5
10063 echo "${ECHO_T}$wine_cv_libc_r___thr_errno" >&6
10064 if test "$wine_cv_libc_r___thr_errno" = "yes"
10065 then
10066     wine_cv_libc_reentrant=__thr_errno
10067 fi
10068
10069
10070   echo "$as_me:$LINENO: checking for reentrant libc: __errno" >&5
10071 echo $ECHO_N "checking for reentrant libc: __errno... $ECHO_C" >&6
10072 if test "${wine_cv_libc_r___errno+set}" = set; then
10073   echo $ECHO_N "(cached) $ECHO_C" >&6
10074 else
10075   if test "$cross_compiling" = yes; then
10076   wine_cv_libc_r___errno=yes
10077 else
10078   cat >conftest.$ac_ext <<_ACEOF
10079 #line $LINENO "configure"
10080 #include "confdefs.h"
10081 int myerrno = 0;
10082 char buf[256];
10083 int *__errno(){return &myerrno;}
10084 main(){connect(0,buf,255); exit(!myerrno);}
10085 _ACEOF
10086 rm -f conftest$ac_exeext
10087 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10088   (eval $ac_link) 2>&5
10089   ac_status=$?
10090   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10091   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10092   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10093   (eval $ac_try) 2>&5
10094   ac_status=$?
10095   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10096   (exit $ac_status); }; }; then
10097   wine_cv_libc_r___errno=yes
10098 else
10099   echo "$as_me: program exited with status $ac_status" >&5
10100 echo "$as_me: failed program was:" >&5
10101 cat conftest.$ac_ext >&5
10102 ( exit $ac_status )
10103 wine_cv_libc_r___errno=no
10104 fi
10105 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10106 fi
10107
10108 fi
10109 echo "$as_me:$LINENO: result: $wine_cv_libc_r___errno" >&5
10110 echo "${ECHO_T}$wine_cv_libc_r___errno" >&6
10111 if test "$wine_cv_libc_r___errno" = "yes"
10112 then
10113     wine_cv_libc_reentrant=__errno
10114 fi
10115
10116
10117 if test "$wine_cv_libc_reentrant" != "no"
10118 then
10119
10120 cat >>confdefs.h <<_ACEOF
10121 #define ERRNO_LOCATION $wine_cv_libc_reentrant
10122 _ACEOF
10123
10124 fi
10125
10126
10127 if test "$have_x" = "yes" -a "$wine_cv_libc_reentrant" != "no"
10128 then
10129 echo "$as_me:$LINENO: checking for reentrant X libraries" >&5
10130 echo $ECHO_N "checking for reentrant X libraries... $ECHO_C" >&6
10131 if test "${wine_cv_x_reentrant+set}" = set; then
10132   echo $ECHO_N "(cached) $ECHO_C" >&6
10133 else
10134    if test "x$with_reentrant_x" = "xno"
10135     then
10136         wine_cv_x_reentrant=no
10137     else
10138         libX11_check=none
10139         for dir in "$x_libraries" /usr/lib /usr/local/lib /lib; do
10140             if test -r $dir/libX11.so; then
10141                 libX11_check="-D $dir/libX11.so"
10142                 break 1
10143             fi
10144             if test -r $dir/libX11.a; then
10145                 libX11_check="$dir/libX11.a"
10146                 break 1
10147             fi
10148         done
10149         if test "$libX11_check" != "none"; then
10150             if nm $libX11_check | grep $wine_cv_libc_reentrant >/dev/null 2>&1
10151             then
10152                 wine_cv_x_reentrant=yes
10153             else
10154                 wine_cv_x_reentrant=no
10155             fi
10156         else
10157             wine_cv_x_reentrant=unknown
10158         fi
10159     fi
10160 fi
10161 echo "$as_me:$LINENO: result: $wine_cv_x_reentrant" >&5
10162 echo "${ECHO_T}$wine_cv_x_reentrant" >&6
10163 else
10164     wine_cv_x_reentrant=no
10165 fi
10166 if test "$wine_cv_x_reentrant" = "no"
10167 then
10168
10169 cat >>confdefs.h <<\_ACEOF
10170 #define NO_REENTRANT_X11 1
10171 _ACEOF
10172
10173 fi
10174
10175
10176
10177 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
10178 # for constant arguments.  Useless!
10179 echo "$as_me:$LINENO: checking for working alloca.h" >&5
10180 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
10181 if test "${ac_cv_working_alloca_h+set}" = set; then
10182   echo $ECHO_N "(cached) $ECHO_C" >&6
10183 else
10184   cat >conftest.$ac_ext <<_ACEOF
10185 #line $LINENO "configure"
10186 #include "confdefs.h"
10187 #include <alloca.h>
10188 #ifdef F77_DUMMY_MAIN
10189 #  ifdef __cplusplus
10190      extern "C"
10191 #  endif
10192    int F77_DUMMY_MAIN() { return 1; }
10193 #endif
10194 int
10195 main ()
10196 {
10197 char *p = (char *) alloca (2 * sizeof (int));
10198   ;
10199   return 0;
10200 }
10201 _ACEOF
10202 rm -f conftest.$ac_objext conftest$ac_exeext
10203 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10204   (eval $ac_link) 2>&5
10205   ac_status=$?
10206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10207   (exit $ac_status); } &&
10208          { ac_try='test -s conftest$ac_exeext'
10209   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10210   (eval $ac_try) 2>&5
10211   ac_status=$?
10212   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10213   (exit $ac_status); }; }; then
10214   ac_cv_working_alloca_h=yes
10215 else
10216   echo "$as_me: failed program was:" >&5
10217 cat conftest.$ac_ext >&5
10218 ac_cv_working_alloca_h=no
10219 fi
10220 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10221 fi
10222 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
10223 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
10224 if test $ac_cv_working_alloca_h = yes; then
10225
10226 cat >>confdefs.h <<\_ACEOF
10227 #define HAVE_ALLOCA_H 1
10228 _ACEOF
10229
10230 fi
10231
10232 echo "$as_me:$LINENO: checking for alloca" >&5
10233 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
10234 if test "${ac_cv_func_alloca_works+set}" = set; then
10235   echo $ECHO_N "(cached) $ECHO_C" >&6
10236 else
10237   cat >conftest.$ac_ext <<_ACEOF
10238 #line $LINENO "configure"
10239 #include "confdefs.h"
10240 #ifdef __GNUC__
10241 # define alloca __builtin_alloca
10242 #else
10243 # ifdef _MSC_VER
10244 #  include <malloc.h>
10245 #  define alloca _alloca
10246 # else
10247 #  if HAVE_ALLOCA_H
10248 #   include <alloca.h>
10249 #  else
10250 #   ifdef _AIX
10251  #pragma alloca
10252 #   else
10253 #    ifndef alloca /* predefined by HP cc +Olibcalls */
10254 char *alloca ();
10255 #    endif
10256 #   endif
10257 #  endif
10258 # endif
10259 #endif
10260
10261 #ifdef F77_DUMMY_MAIN
10262 #  ifdef __cplusplus
10263      extern "C"
10264 #  endif
10265    int F77_DUMMY_MAIN() { return 1; }
10266 #endif
10267 int
10268 main ()
10269 {
10270 char *p = (char *) alloca (1);
10271   ;
10272   return 0;
10273 }
10274 _ACEOF
10275 rm -f conftest.$ac_objext conftest$ac_exeext
10276 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10277   (eval $ac_link) 2>&5
10278   ac_status=$?
10279   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10280   (exit $ac_status); } &&
10281          { ac_try='test -s conftest$ac_exeext'
10282   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10283   (eval $ac_try) 2>&5
10284   ac_status=$?
10285   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10286   (exit $ac_status); }; }; then
10287   ac_cv_func_alloca_works=yes
10288 else
10289   echo "$as_me: failed program was:" >&5
10290 cat conftest.$ac_ext >&5
10291 ac_cv_func_alloca_works=no
10292 fi
10293 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10294 fi
10295 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
10296 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
10297
10298 if test $ac_cv_func_alloca_works = yes; then
10299
10300 cat >>confdefs.h <<\_ACEOF
10301 #define HAVE_ALLOCA 1
10302 _ACEOF
10303
10304 else
10305   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
10306 # that cause trouble.  Some versions do not even contain alloca or
10307 # contain a buggy version.  If you still want to use their alloca,
10308 # use ar to extract alloca.o from them instead of compiling alloca.c.
10309
10310 ALLOCA=alloca.$ac_objext
10311
10312 cat >>confdefs.h <<\_ACEOF
10313 #define C_ALLOCA 1
10314 _ACEOF
10315
10316
10317 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
10318 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
10319 if test "${ac_cv_os_cray+set}" = set; then
10320   echo $ECHO_N "(cached) $ECHO_C" >&6
10321 else
10322   cat >conftest.$ac_ext <<_ACEOF
10323 #line $LINENO "configure"
10324 #include "confdefs.h"
10325 #if defined(CRAY) && ! defined(CRAY2)
10326 webecray
10327 #else
10328 wenotbecray
10329 #endif
10330
10331 _ACEOF
10332 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10333   egrep "webecray" >/dev/null 2>&1; then
10334   ac_cv_os_cray=yes
10335 else
10336   ac_cv_os_cray=no
10337 fi
10338 rm -f conftest*
10339
10340 fi
10341 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
10342 echo "${ECHO_T}$ac_cv_os_cray" >&6
10343 if test $ac_cv_os_cray = yes; then
10344   for ac_func in _getb67 GETB67 getb67; do
10345     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10346 echo "$as_me:$LINENO: checking for $ac_func" >&5
10347 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10348 if eval "test \"\${$as_ac_var+set}\" = set"; then
10349   echo $ECHO_N "(cached) $ECHO_C" >&6
10350 else
10351   cat >conftest.$ac_ext <<_ACEOF
10352 #line $LINENO "configure"
10353 #include "confdefs.h"
10354 /* System header to define __stub macros and hopefully few prototypes,
10355     which can conflict with char $ac_func (); below.  */
10356 #include <assert.h>
10357 /* Override any gcc2 internal prototype to avoid an error.  */
10358 #ifdef __cplusplus
10359 extern "C"
10360 #endif
10361 /* We use char because int might match the return type of a gcc2
10362    builtin and then its argument prototype would still apply.  */
10363 char $ac_func ();
10364 char (*f) ();
10365
10366 #ifdef F77_DUMMY_MAIN
10367 #  ifdef __cplusplus
10368      extern "C"
10369 #  endif
10370    int F77_DUMMY_MAIN() { return 1; }
10371 #endif
10372 int
10373 main ()
10374 {
10375 /* The GNU C library defines this for functions which it implements
10376     to always fail with ENOSYS.  Some functions are actually named
10377     something starting with __ and the normal name is an alias.  */
10378 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10379 choke me
10380 #else
10381 f = $ac_func;
10382 #endif
10383
10384   ;
10385   return 0;
10386 }
10387 _ACEOF
10388 rm -f conftest.$ac_objext conftest$ac_exeext
10389 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10390   (eval $ac_link) 2>&5
10391   ac_status=$?
10392   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10393   (exit $ac_status); } &&
10394          { ac_try='test -s conftest$ac_exeext'
10395   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10396   (eval $ac_try) 2>&5
10397   ac_status=$?
10398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10399   (exit $ac_status); }; }; then
10400   eval "$as_ac_var=yes"
10401 else
10402   echo "$as_me: failed program was:" >&5
10403 cat conftest.$ac_ext >&5
10404 eval "$as_ac_var=no"
10405 fi
10406 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10407 fi
10408 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10409 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10410 if test `eval echo '${'$as_ac_var'}'` = yes; then
10411
10412 cat >>confdefs.h <<_ACEOF
10413 #define CRAY_STACKSEG_END $ac_func
10414 _ACEOF
10415
10416     break
10417 fi
10418
10419   done
10420 fi
10421
10422 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
10423 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
10424 if test "${ac_cv_c_stack_direction+set}" = set; then
10425   echo $ECHO_N "(cached) $ECHO_C" >&6
10426 else
10427   if test "$cross_compiling" = yes; then
10428   ac_cv_c_stack_direction=0
10429 else
10430   cat >conftest.$ac_ext <<_ACEOF
10431 #line $LINENO "configure"
10432 #include "confdefs.h"
10433 int
10434 find_stack_direction ()
10435 {
10436   static char *addr = 0;
10437   auto char dummy;
10438   if (addr == 0)
10439     {
10440       addr = &dummy;
10441       return find_stack_direction ();
10442     }
10443   else
10444     return (&dummy > addr) ? 1 : -1;
10445 }
10446
10447 int
10448 main ()
10449 {
10450   exit (find_stack_direction () < 0);
10451 }
10452 _ACEOF
10453 rm -f conftest$ac_exeext
10454 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10455   (eval $ac_link) 2>&5
10456   ac_status=$?
10457   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10458   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10459   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10460   (eval $ac_try) 2>&5
10461   ac_status=$?
10462   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10463   (exit $ac_status); }; }; then
10464   ac_cv_c_stack_direction=1
10465 else
10466   echo "$as_me: program exited with status $ac_status" >&5
10467 echo "$as_me: failed program was:" >&5
10468 cat conftest.$ac_ext >&5
10469 ( exit $ac_status )
10470 ac_cv_c_stack_direction=-1
10471 fi
10472 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10473 fi
10474 fi
10475 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
10476 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
10477
10478 cat >>confdefs.h <<_ACEOF
10479 #define STACK_DIRECTION $ac_cv_c_stack_direction
10480 _ACEOF
10481
10482
10483 fi
10484
10485
10486
10487
10488
10489
10490
10491
10492
10493
10494
10495
10496
10497
10498
10499
10500
10501
10502
10503
10504
10505
10506
10507
10508
10509
10510
10511
10512
10513
10514
10515
10516
10517
10518
10519
10520
10521
10522
10523
10524
10525
10526
10527
10528 for ac_func in \
10529         __libc_fork \
10530         _lwp_create \
10531         _pclose \
10532         _popen \
10533         _stricmp \
10534         _strnicmp \
10535         clone \
10536         ecvt \
10537         finite \
10538         fpclass \
10539         ftruncate64 \
10540         getnetbyaddr \
10541         getnetbyname \
10542         getpagesize \
10543         getprotobyname \
10544         getprotobynumber \
10545         getrlimit \
10546         getservbyport \
10547         getsockopt \
10548         inet_network \
10549         lseek64 \
10550         lstat \
10551         memmove \
10552         mmap \
10553         pclose \
10554         pread \
10555         popen \
10556         pwrite \
10557         rfork \
10558         select \
10559         sendmsg \
10560         settimeofday \
10561         sigaltstack \
10562         statfs \
10563         strcasecmp \
10564         strerror \
10565         strncasecmp \
10566         tcgetattr \
10567         timegm \
10568         usleep \
10569         vfscanf \
10570         wait4 \
10571         waitpid \
10572
10573 do
10574 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10575 echo "$as_me:$LINENO: checking for $ac_func" >&5
10576 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10577 if eval "test \"\${$as_ac_var+set}\" = set"; then
10578   echo $ECHO_N "(cached) $ECHO_C" >&6
10579 else
10580   cat >conftest.$ac_ext <<_ACEOF
10581 #line $LINENO "configure"
10582 #include "confdefs.h"
10583 /* System header to define __stub macros and hopefully few prototypes,
10584     which can conflict with char $ac_func (); below.  */
10585 #include <assert.h>
10586 /* Override any gcc2 internal prototype to avoid an error.  */
10587 #ifdef __cplusplus
10588 extern "C"
10589 #endif
10590 /* We use char because int might match the return type of a gcc2
10591    builtin and then its argument prototype would still apply.  */
10592 char $ac_func ();
10593 char (*f) ();
10594
10595 #ifdef F77_DUMMY_MAIN
10596 #  ifdef __cplusplus
10597      extern "C"
10598 #  endif
10599    int F77_DUMMY_MAIN() { return 1; }
10600 #endif
10601 int
10602 main ()
10603 {
10604 /* The GNU C library defines this for functions which it implements
10605     to always fail with ENOSYS.  Some functions are actually named
10606     something starting with __ and the normal name is an alias.  */
10607 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10608 choke me
10609 #else
10610 f = $ac_func;
10611 #endif
10612
10613   ;
10614   return 0;
10615 }
10616 _ACEOF
10617 rm -f conftest.$ac_objext conftest$ac_exeext
10618 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10619   (eval $ac_link) 2>&5
10620   ac_status=$?
10621   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10622   (exit $ac_status); } &&
10623          { ac_try='test -s conftest$ac_exeext'
10624   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10625   (eval $ac_try) 2>&5
10626   ac_status=$?
10627   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10628   (exit $ac_status); }; }; then
10629   eval "$as_ac_var=yes"
10630 else
10631   echo "$as_me: failed program was:" >&5
10632 cat conftest.$ac_ext >&5
10633 eval "$as_ac_var=no"
10634 fi
10635 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10636 fi
10637 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10638 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10639 if test `eval echo '${'$as_ac_var'}'` = yes; then
10640   cat >>confdefs.h <<_ACEOF
10641 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10642 _ACEOF
10643
10644 fi
10645 done
10646
10647
10648
10649
10650
10651
10652
10653
10654
10655
10656
10657
10658
10659
10660
10661
10662
10663
10664
10665
10666
10667
10668
10669
10670
10671
10672
10673
10674
10675
10676
10677
10678
10679
10680
10681
10682
10683
10684
10685
10686
10687
10688
10689
10690
10691
10692
10693
10694
10695
10696
10697
10698
10699
10700
10701
10702
10703
10704
10705
10706
10707
10708 for ac_header in \
10709         arpa/inet.h \
10710         arpa/nameser.h \
10711         direct.h \
10712         elf.h \
10713         float.h \
10714         ieeefp.h \
10715         io.h \
10716         libio.h \
10717         libutil.h \
10718         link.h \
10719         linux/cdrom.h \
10720         linux/input.h \
10721         linux/joystick.h \
10722         linux/serial.h \
10723         linux/ucdrom.h \
10724         net/if.h \
10725         netdb.h \
10726         netinet/in.h \
10727         netinet/in_systm.h \
10728         netinet/ip.h \
10729         netinet/tcp.h \
10730         pty.h \
10731         resolv.h \
10732         sched.h \
10733         socket.h \
10734         stdint.h \
10735         strings.h \
10736         sys/cdio.h \
10737         sys/errno.h \
10738         sys/file.h \
10739         sys/filio.h \
10740         sys/inttypes.h \
10741         sys/ipc.h \
10742         sys/link.h \
10743         sys/lwp.h \
10744         sys/mman.h \
10745         sys/modem.h \
10746         sys/mount.h \
10747         sys/msg.h \
10748         sys/param.h \
10749         sys/ptrace.h \
10750         sys/reg.h \
10751         sys/signal.h \
10752         sys/shm.h \
10753         sys/socket.h \
10754         sys/sockio.h \
10755         sys/statfs.h \
10756         sys/strtio.h \
10757         sys/syscall.h \
10758         sys/time.h \
10759         sys/user.h \
10760         sys/wait.h \
10761         sys/v86.h \
10762         sys/v86intr.h \
10763         sys/vfs.h \
10764         sys/vm86.h \
10765         syscall.h \
10766         ucontext.h \
10767         unistd.h \
10768
10769 do
10770 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10771 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10772   echo "$as_me:$LINENO: checking for $ac_header" >&5
10773 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10774 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10775   echo $ECHO_N "(cached) $ECHO_C" >&6
10776 fi
10777 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10778 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10779 else
10780   # Is the header compilable?
10781 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10782 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10783 cat >conftest.$ac_ext <<_ACEOF
10784 #line $LINENO "configure"
10785 #include "confdefs.h"
10786 $ac_includes_default
10787 #include <$ac_header>
10788 _ACEOF
10789 rm -f conftest.$ac_objext
10790 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10791   (eval $ac_compile) 2>&5
10792   ac_status=$?
10793   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10794   (exit $ac_status); } &&
10795          { ac_try='test -s conftest.$ac_objext'
10796   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10797   (eval $ac_try) 2>&5
10798   ac_status=$?
10799   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10800   (exit $ac_status); }; }; then
10801   ac_header_compiler=yes
10802 else
10803   echo "$as_me: failed program was:" >&5
10804 cat conftest.$ac_ext >&5
10805 ac_header_compiler=no
10806 fi
10807 rm -f conftest.$ac_objext conftest.$ac_ext
10808 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10809 echo "${ECHO_T}$ac_header_compiler" >&6
10810
10811 # Is the header present?
10812 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10813 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10814 cat >conftest.$ac_ext <<_ACEOF
10815 #line $LINENO "configure"
10816 #include "confdefs.h"
10817 #include <$ac_header>
10818 _ACEOF
10819 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10820   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10821   ac_status=$?
10822   egrep -v '^ *\+' conftest.er1 >conftest.err
10823   rm -f conftest.er1
10824   cat conftest.err >&5
10825   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10826   (exit $ac_status); } >/dev/null; then
10827   if test -s conftest.err; then
10828     ac_cpp_err=$ac_c_preproc_warn_flag
10829   else
10830     ac_cpp_err=
10831   fi
10832 else
10833   ac_cpp_err=yes
10834 fi
10835 if test -z "$ac_cpp_err"; then
10836   ac_header_preproc=yes
10837 else
10838   echo "$as_me: failed program was:" >&5
10839   cat conftest.$ac_ext >&5
10840   ac_header_preproc=no
10841 fi
10842 rm -f conftest.err conftest.$ac_ext
10843 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10844 echo "${ECHO_T}$ac_header_preproc" >&6
10845
10846 # So?  What about this header?
10847 case $ac_header_compiler:$ac_header_preproc in
10848   yes:no )
10849     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10850 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10851     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10852 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
10853   no:yes )
10854     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10855 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10856     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10857 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10858     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10859 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
10860 esac
10861 echo "$as_me:$LINENO: checking for $ac_header" >&5
10862 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10863 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10864   echo $ECHO_N "(cached) $ECHO_C" >&6
10865 else
10866   eval "$as_ac_Header=$ac_header_preproc"
10867 fi
10868 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10869 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10870
10871 fi
10872 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10873   cat >>confdefs.h <<_ACEOF
10874 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10875 _ACEOF
10876
10877 fi
10878
10879 done
10880
10881 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
10882 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
10883 if test "${ac_cv_header_stat_broken+set}" = set; then
10884   echo $ECHO_N "(cached) $ECHO_C" >&6
10885 else
10886   cat >conftest.$ac_ext <<_ACEOF
10887 #line $LINENO "configure"
10888 #include "confdefs.h"
10889 #include <sys/types.h>
10890 #include <sys/stat.h>
10891
10892 #if defined(S_ISBLK) && defined(S_IFDIR)
10893 # if S_ISBLK (S_IFDIR)
10894 You lose.
10895 # endif
10896 #endif
10897
10898 #if defined(S_ISBLK) && defined(S_IFCHR)
10899 # if S_ISBLK (S_IFCHR)
10900 You lose.
10901 # endif
10902 #endif
10903
10904 #if defined(S_ISLNK) && defined(S_IFREG)
10905 # if S_ISLNK (S_IFREG)
10906 You lose.
10907 # endif
10908 #endif
10909
10910 #if defined(S_ISSOCK) && defined(S_IFREG)
10911 # if S_ISSOCK (S_IFREG)
10912 You lose.
10913 # endif
10914 #endif
10915
10916 _ACEOF
10917 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10918   egrep "You lose" >/dev/null 2>&1; then
10919   ac_cv_header_stat_broken=yes
10920 else
10921   ac_cv_header_stat_broken=no
10922 fi
10923 rm -f conftest*
10924
10925 fi
10926 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
10927 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
10928 if test $ac_cv_header_stat_broken = yes; then
10929
10930 cat >>confdefs.h <<\_ACEOF
10931 #define STAT_MACROS_BROKEN 1
10932 _ACEOF
10933
10934 fi
10935
10936
10937
10938 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
10939 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
10940 if test "${ac_cv_prog_cc_stdc+set}" = set; then
10941   echo $ECHO_N "(cached) $ECHO_C" >&6
10942 else
10943   ac_cv_prog_cc_stdc=no
10944 ac_save_CC=$CC
10945 cat >conftest.$ac_ext <<_ACEOF
10946 #line $LINENO "configure"
10947 #include "confdefs.h"
10948 #include <stdarg.h>
10949 #include <stdio.h>
10950 #include <sys/types.h>
10951 #include <sys/stat.h>
10952 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
10953 struct buf { int x; };
10954 FILE * (*rcsopen) (struct buf *, struct stat *, int);
10955 static char *e (p, i)
10956      char **p;
10957      int i;
10958 {
10959   return p[i];
10960 }
10961 static char *f (char * (*g) (char **, int), char **p, ...)
10962 {
10963   char *s;
10964   va_list v;
10965   va_start (v,p);
10966   s = g (p, va_arg (v,int));
10967   va_end (v);
10968   return s;
10969 }
10970 int test (int i, double x);
10971 struct s1 {int (*f) (int a);};
10972 struct s2 {int (*f) (double a);};
10973 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
10974 int argc;
10975 char **argv;
10976 #ifdef F77_DUMMY_MAIN
10977 #  ifdef __cplusplus
10978      extern "C"
10979 #  endif
10980    int F77_DUMMY_MAIN() { return 1; }
10981 #endif
10982 int
10983 main ()
10984 {
10985 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
10986   ;
10987   return 0;
10988 }
10989 _ACEOF
10990 # Don't try gcc -ansi; that turns off useful extensions and
10991 # breaks some systems' header files.
10992 # AIX                   -qlanglvl=ansi
10993 # Ultrix and OSF/1      -std1
10994 # HP-UX 10.20 and later -Ae
10995 # HP-UX older versions  -Aa -D_HPUX_SOURCE
10996 # SVR4                  -Xc -D__EXTENSIONS__
10997 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
10998 do
10999   CC="$ac_save_CC $ac_arg"
11000   rm -f conftest.$ac_objext
11001 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11002   (eval $ac_compile) 2>&5
11003   ac_status=$?
11004   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11005   (exit $ac_status); } &&
11006          { ac_try='test -s conftest.$ac_objext'
11007   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11008   (eval $ac_try) 2>&5
11009   ac_status=$?
11010   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11011   (exit $ac_status); }; }; then
11012   ac_cv_prog_cc_stdc=$ac_arg
11013 break
11014 else
11015   echo "$as_me: failed program was:" >&5
11016 cat conftest.$ac_ext >&5
11017 fi
11018 rm -f conftest.$ac_objext
11019 done
11020 rm -f conftest.$ac_ext conftest.$ac_objext
11021 CC=$ac_save_CC
11022
11023 fi
11024
11025 case "x$ac_cv_prog_cc_stdc" in
11026   x|xno)
11027     echo "$as_me:$LINENO: result: none needed" >&5
11028 echo "${ECHO_T}none needed" >&6 ;;
11029   *)
11030     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
11031 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
11032     CC="$CC $ac_cv_prog_cc_stdc" ;;
11033 esac
11034
11035 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
11036 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
11037 if test "${ac_cv_c_const+set}" = set; then
11038   echo $ECHO_N "(cached) $ECHO_C" >&6
11039 else
11040   cat >conftest.$ac_ext <<_ACEOF
11041 #line $LINENO "configure"
11042 #include "confdefs.h"
11043
11044 #ifdef F77_DUMMY_MAIN
11045 #  ifdef __cplusplus
11046      extern "C"
11047 #  endif
11048    int F77_DUMMY_MAIN() { return 1; }
11049 #endif
11050 int
11051 main ()
11052 {
11053 /* FIXME: Include the comments suggested by Paul. */
11054 #ifndef __cplusplus
11055   /* Ultrix mips cc rejects this.  */
11056   typedef int charset[2];
11057   const charset x;
11058   /* SunOS 4.1.1 cc rejects this.  */
11059   char const *const *ccp;
11060   char **p;
11061   /* NEC SVR4.0.2 mips cc rejects this.  */
11062   struct point {int x, y;};
11063   static struct point const zero = {0,0};
11064   /* AIX XL C 1.02.0.0 rejects this.
11065      It does not let you subtract one const X* pointer from another in
11066      an arm of an if-expression whose if-part is not a constant
11067      expression */
11068   const char *g = "string";
11069   ccp = &g + (g ? g-g : 0);
11070   /* HPUX 7.0 cc rejects these. */
11071   ++ccp;
11072   p = (char**) ccp;
11073   ccp = (char const *const *) p;
11074   { /* SCO 3.2v4 cc rejects this.  */
11075     char *t;
11076     char const *s = 0 ? (char *) 0 : (char const *) 0;
11077
11078     *t++ = 0;
11079   }
11080   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
11081     int x[] = {25, 17};
11082     const int *foo = &x[0];
11083     ++foo;
11084   }
11085   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
11086     typedef const int *iptr;
11087     iptr p = 0;
11088     ++p;
11089   }
11090   { /* AIX XL C 1.02.0.0 rejects this saying
11091        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
11092     struct s { int j; const int *ap[3]; };
11093     struct s *b; b->j = 5;
11094   }
11095   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
11096     const int foo = 10;
11097   }
11098 #endif
11099
11100   ;
11101   return 0;
11102 }
11103 _ACEOF
11104 rm -f conftest.$ac_objext
11105 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11106   (eval $ac_compile) 2>&5
11107   ac_status=$?
11108   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11109   (exit $ac_status); } &&
11110          { ac_try='test -s conftest.$ac_objext'
11111   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11112   (eval $ac_try) 2>&5
11113   ac_status=$?
11114   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11115   (exit $ac_status); }; }; then
11116   ac_cv_c_const=yes
11117 else
11118   echo "$as_me: failed program was:" >&5
11119 cat conftest.$ac_ext >&5
11120 ac_cv_c_const=no
11121 fi
11122 rm -f conftest.$ac_objext conftest.$ac_ext
11123 fi
11124 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
11125 echo "${ECHO_T}$ac_cv_c_const" >&6
11126 if test $ac_cv_c_const = no; then
11127
11128 cat >>confdefs.h <<\_ACEOF
11129 #define const
11130 _ACEOF
11131
11132 fi
11133
11134 echo "$as_me:$LINENO: checking for inline" >&5
11135 echo $ECHO_N "checking for inline... $ECHO_C" >&6
11136 if test "${ac_cv_c_inline+set}" = set; then
11137   echo $ECHO_N "(cached) $ECHO_C" >&6
11138 else
11139   ac_cv_c_inline=no
11140 for ac_kw in inline __inline__ __inline; do
11141   cat >conftest.$ac_ext <<_ACEOF
11142 #line $LINENO "configure"
11143 #include "confdefs.h"
11144 #ifndef __cplusplus
11145 static $ac_kw int static_foo () {return 0; }
11146 $ac_kw int foo () {return 0; }
11147 #endif
11148
11149 _ACEOF
11150 rm -f conftest.$ac_objext
11151 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11152   (eval $ac_compile) 2>&5
11153   ac_status=$?
11154   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11155   (exit $ac_status); } &&
11156          { ac_try='test -s conftest.$ac_objext'
11157   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11158   (eval $ac_try) 2>&5
11159   ac_status=$?
11160   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11161   (exit $ac_status); }; }; then
11162   ac_cv_c_inline=$ac_kw; break
11163 else
11164   echo "$as_me: failed program was:" >&5
11165 cat conftest.$ac_ext >&5
11166 fi
11167 rm -f conftest.$ac_objext conftest.$ac_ext
11168 done
11169
11170 fi
11171 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
11172 echo "${ECHO_T}$ac_cv_c_inline" >&6
11173 case $ac_cv_c_inline in
11174   inline | yes) ;;
11175   no)
11176 cat >>confdefs.h <<\_ACEOF
11177 #define inline
11178 _ACEOF
11179  ;;
11180   *)  cat >>confdefs.h <<_ACEOF
11181 #define inline $ac_cv_c_inline
11182 _ACEOF
11183  ;;
11184 esac
11185
11186 echo "$as_me:$LINENO: checking for mode_t" >&5
11187 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
11188 if test "${ac_cv_type_mode_t+set}" = set; then
11189   echo $ECHO_N "(cached) $ECHO_C" >&6
11190 else
11191   cat >conftest.$ac_ext <<_ACEOF
11192 #line $LINENO "configure"
11193 #include "confdefs.h"
11194 $ac_includes_default
11195 #ifdef F77_DUMMY_MAIN
11196 #  ifdef __cplusplus
11197      extern "C"
11198 #  endif
11199    int F77_DUMMY_MAIN() { return 1; }
11200 #endif
11201 int
11202 main ()
11203 {
11204 if ((mode_t *) 0)
11205   return 0;
11206 if (sizeof (mode_t))
11207   return 0;
11208   ;
11209   return 0;
11210 }
11211 _ACEOF
11212 rm -f conftest.$ac_objext
11213 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11214   (eval $ac_compile) 2>&5
11215   ac_status=$?
11216   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11217   (exit $ac_status); } &&
11218          { ac_try='test -s conftest.$ac_objext'
11219   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11220   (eval $ac_try) 2>&5
11221   ac_status=$?
11222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11223   (exit $ac_status); }; }; then
11224   ac_cv_type_mode_t=yes
11225 else
11226   echo "$as_me: failed program was:" >&5
11227 cat conftest.$ac_ext >&5
11228 ac_cv_type_mode_t=no
11229 fi
11230 rm -f conftest.$ac_objext conftest.$ac_ext
11231 fi
11232 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
11233 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
11234 if test $ac_cv_type_mode_t = yes; then
11235   :
11236 else
11237
11238 cat >>confdefs.h <<_ACEOF
11239 #define mode_t int
11240 _ACEOF
11241
11242 fi
11243
11244 echo "$as_me:$LINENO: checking for off_t" >&5
11245 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
11246 if test "${ac_cv_type_off_t+set}" = set; then
11247   echo $ECHO_N "(cached) $ECHO_C" >&6
11248 else
11249   cat >conftest.$ac_ext <<_ACEOF
11250 #line $LINENO "configure"
11251 #include "confdefs.h"
11252 $ac_includes_default
11253 #ifdef F77_DUMMY_MAIN
11254 #  ifdef __cplusplus
11255      extern "C"
11256 #  endif
11257    int F77_DUMMY_MAIN() { return 1; }
11258 #endif
11259 int
11260 main ()
11261 {
11262 if ((off_t *) 0)
11263   return 0;
11264 if (sizeof (off_t))
11265   return 0;
11266   ;
11267   return 0;
11268 }
11269 _ACEOF
11270 rm -f conftest.$ac_objext
11271 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11272   (eval $ac_compile) 2>&5
11273   ac_status=$?
11274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11275   (exit $ac_status); } &&
11276          { ac_try='test -s conftest.$ac_objext'
11277   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11278   (eval $ac_try) 2>&5
11279   ac_status=$?
11280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11281   (exit $ac_status); }; }; then
11282   ac_cv_type_off_t=yes
11283 else
11284   echo "$as_me: failed program was:" >&5
11285 cat conftest.$ac_ext >&5
11286 ac_cv_type_off_t=no
11287 fi
11288 rm -f conftest.$ac_objext conftest.$ac_ext
11289 fi
11290 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
11291 echo "${ECHO_T}$ac_cv_type_off_t" >&6
11292 if test $ac_cv_type_off_t = yes; then
11293   :
11294 else
11295
11296 cat >>confdefs.h <<_ACEOF
11297 #define off_t long
11298 _ACEOF
11299
11300 fi
11301
11302 echo "$as_me:$LINENO: checking for pid_t" >&5
11303 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
11304 if test "${ac_cv_type_pid_t+set}" = set; then
11305   echo $ECHO_N "(cached) $ECHO_C" >&6
11306 else
11307   cat >conftest.$ac_ext <<_ACEOF
11308 #line $LINENO "configure"
11309 #include "confdefs.h"
11310 $ac_includes_default
11311 #ifdef F77_DUMMY_MAIN
11312 #  ifdef __cplusplus
11313      extern "C"
11314 #  endif
11315    int F77_DUMMY_MAIN() { return 1; }
11316 #endif
11317 int
11318 main ()
11319 {
11320 if ((pid_t *) 0)
11321   return 0;
11322 if (sizeof (pid_t))
11323   return 0;
11324   ;
11325   return 0;
11326 }
11327 _ACEOF
11328 rm -f conftest.$ac_objext
11329 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11330   (eval $ac_compile) 2>&5
11331   ac_status=$?
11332   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11333   (exit $ac_status); } &&
11334          { ac_try='test -s conftest.$ac_objext'
11335   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11336   (eval $ac_try) 2>&5
11337   ac_status=$?
11338   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11339   (exit $ac_status); }; }; then
11340   ac_cv_type_pid_t=yes
11341 else
11342   echo "$as_me: failed program was:" >&5
11343 cat conftest.$ac_ext >&5
11344 ac_cv_type_pid_t=no
11345 fi
11346 rm -f conftest.$ac_objext conftest.$ac_ext
11347 fi
11348 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
11349 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
11350 if test $ac_cv_type_pid_t = yes; then
11351   :
11352 else
11353
11354 cat >>confdefs.h <<_ACEOF
11355 #define pid_t int
11356 _ACEOF
11357
11358 fi
11359
11360 echo "$as_me:$LINENO: checking for size_t" >&5
11361 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
11362 if test "${ac_cv_type_size_t+set}" = set; then
11363   echo $ECHO_N "(cached) $ECHO_C" >&6
11364 else
11365   cat >conftest.$ac_ext <<_ACEOF
11366 #line $LINENO "configure"
11367 #include "confdefs.h"
11368 $ac_includes_default
11369 #ifdef F77_DUMMY_MAIN
11370 #  ifdef __cplusplus
11371      extern "C"
11372 #  endif
11373    int F77_DUMMY_MAIN() { return 1; }
11374 #endif
11375 int
11376 main ()
11377 {
11378 if ((size_t *) 0)
11379   return 0;
11380 if (sizeof (size_t))
11381   return 0;
11382   ;
11383   return 0;
11384 }
11385 _ACEOF
11386 rm -f conftest.$ac_objext
11387 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11388   (eval $ac_compile) 2>&5
11389   ac_status=$?
11390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11391   (exit $ac_status); } &&
11392          { ac_try='test -s conftest.$ac_objext'
11393   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11394   (eval $ac_try) 2>&5
11395   ac_status=$?
11396   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11397   (exit $ac_status); }; }; then
11398   ac_cv_type_size_t=yes
11399 else
11400   echo "$as_me: failed program was:" >&5
11401 cat conftest.$ac_ext >&5
11402 ac_cv_type_size_t=no
11403 fi
11404 rm -f conftest.$ac_objext conftest.$ac_ext
11405 fi
11406 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
11407 echo "${ECHO_T}$ac_cv_type_size_t" >&6
11408 if test $ac_cv_type_size_t = yes; then
11409   :
11410 else
11411
11412 cat >>confdefs.h <<_ACEOF
11413 #define size_t unsigned
11414 _ACEOF
11415
11416 fi
11417
11418 echo "$as_me:$LINENO: checking for long long" >&5
11419 echo $ECHO_N "checking for long long... $ECHO_C" >&6
11420 if test "${ac_cv_type_long_long+set}" = set; then
11421   echo $ECHO_N "(cached) $ECHO_C" >&6
11422 else
11423   cat >conftest.$ac_ext <<_ACEOF
11424 #line $LINENO "configure"
11425 #include "confdefs.h"
11426 $ac_includes_default
11427 #ifdef F77_DUMMY_MAIN
11428 #  ifdef __cplusplus
11429      extern "C"
11430 #  endif
11431    int F77_DUMMY_MAIN() { return 1; }
11432 #endif
11433 int
11434 main ()
11435 {
11436 if ((long long *) 0)
11437   return 0;
11438 if (sizeof (long long))
11439   return 0;
11440   ;
11441   return 0;
11442 }
11443 _ACEOF
11444 rm -f conftest.$ac_objext
11445 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11446   (eval $ac_compile) 2>&5
11447   ac_status=$?
11448   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11449   (exit $ac_status); } &&
11450          { ac_try='test -s conftest.$ac_objext'
11451   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11452   (eval $ac_try) 2>&5
11453   ac_status=$?
11454   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11455   (exit $ac_status); }; }; then
11456   ac_cv_type_long_long=yes
11457 else
11458   echo "$as_me: failed program was:" >&5
11459 cat conftest.$ac_ext >&5
11460 ac_cv_type_long_long=no
11461 fi
11462 rm -f conftest.$ac_objext conftest.$ac_ext
11463 fi
11464 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
11465 echo "${ECHO_T}$ac_cv_type_long_long" >&6
11466
11467 echo "$as_me:$LINENO: checking size of long long" >&5
11468 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
11469 if test "${ac_cv_sizeof_long_long+set}" = set; then
11470   echo $ECHO_N "(cached) $ECHO_C" >&6
11471 else
11472   if test "$ac_cv_type_long_long" = yes; then
11473   # The cast to unsigned long works around a bug in the HP C Compiler
11474   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11475   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11476   # This bug is HP SR number 8606223364.
11477   if test "$cross_compiling" = yes; then
11478   # Depending upon the size, compute the lo and hi bounds.
11479 cat >conftest.$ac_ext <<_ACEOF
11480 #line $LINENO "configure"
11481 #include "confdefs.h"
11482 $ac_includes_default
11483 #ifdef F77_DUMMY_MAIN
11484 #  ifdef __cplusplus
11485      extern "C"
11486 #  endif
11487    int F77_DUMMY_MAIN() { return 1; }
11488 #endif
11489 int
11490 main ()
11491 {
11492 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
11493 test_array [0] = 0
11494
11495   ;
11496   return 0;
11497 }
11498 _ACEOF
11499 rm -f conftest.$ac_objext
11500 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11501   (eval $ac_compile) 2>&5
11502   ac_status=$?
11503   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11504   (exit $ac_status); } &&
11505          { ac_try='test -s conftest.$ac_objext'
11506   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11507   (eval $ac_try) 2>&5
11508   ac_status=$?
11509   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11510   (exit $ac_status); }; }; then
11511   ac_lo=0 ac_mid=0
11512   while :; do
11513     cat >conftest.$ac_ext <<_ACEOF
11514 #line $LINENO "configure"
11515 #include "confdefs.h"
11516 $ac_includes_default
11517 #ifdef F77_DUMMY_MAIN
11518 #  ifdef __cplusplus
11519      extern "C"
11520 #  endif
11521    int F77_DUMMY_MAIN() { return 1; }
11522 #endif
11523 int
11524 main ()
11525 {
11526 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
11527 test_array [0] = 0
11528
11529   ;
11530   return 0;
11531 }
11532 _ACEOF
11533 rm -f conftest.$ac_objext
11534 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11535   (eval $ac_compile) 2>&5
11536   ac_status=$?
11537   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11538   (exit $ac_status); } &&
11539          { ac_try='test -s conftest.$ac_objext'
11540   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11541   (eval $ac_try) 2>&5
11542   ac_status=$?
11543   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11544   (exit $ac_status); }; }; then
11545   ac_hi=$ac_mid; break
11546 else
11547   echo "$as_me: failed program was:" >&5
11548 cat conftest.$ac_ext >&5
11549 ac_lo=`expr $ac_mid + 1`
11550                     if test $ac_lo -le $ac_mid; then
11551                       ac_lo= ac_hi=
11552                       break
11553                     fi
11554                     ac_mid=`expr 2 '*' $ac_mid + 1`
11555 fi
11556 rm -f conftest.$ac_objext conftest.$ac_ext
11557   done
11558 else
11559   echo "$as_me: failed program was:" >&5
11560 cat conftest.$ac_ext >&5
11561 cat >conftest.$ac_ext <<_ACEOF
11562 #line $LINENO "configure"
11563 #include "confdefs.h"
11564 $ac_includes_default
11565 #ifdef F77_DUMMY_MAIN
11566 #  ifdef __cplusplus
11567      extern "C"
11568 #  endif
11569    int F77_DUMMY_MAIN() { return 1; }
11570 #endif
11571 int
11572 main ()
11573 {
11574 static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
11575 test_array [0] = 0
11576
11577   ;
11578   return 0;
11579 }
11580 _ACEOF
11581 rm -f conftest.$ac_objext
11582 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11583   (eval $ac_compile) 2>&5
11584   ac_status=$?
11585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11586   (exit $ac_status); } &&
11587          { ac_try='test -s conftest.$ac_objext'
11588   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11589   (eval $ac_try) 2>&5
11590   ac_status=$?
11591   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11592   (exit $ac_status); }; }; then
11593   ac_hi=-1 ac_mid=-1
11594   while :; do
11595     cat >conftest.$ac_ext <<_ACEOF
11596 #line $LINENO "configure"
11597 #include "confdefs.h"
11598 $ac_includes_default
11599 #ifdef F77_DUMMY_MAIN
11600 #  ifdef __cplusplus
11601      extern "C"
11602 #  endif
11603    int F77_DUMMY_MAIN() { return 1; }
11604 #endif
11605 int
11606 main ()
11607 {
11608 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
11609 test_array [0] = 0
11610
11611   ;
11612   return 0;
11613 }
11614 _ACEOF
11615 rm -f conftest.$ac_objext
11616 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11617   (eval $ac_compile) 2>&5
11618   ac_status=$?
11619   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11620   (exit $ac_status); } &&
11621          { ac_try='test -s conftest.$ac_objext'
11622   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11623   (eval $ac_try) 2>&5
11624   ac_status=$?
11625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11626   (exit $ac_status); }; }; then
11627   ac_lo=$ac_mid; break
11628 else
11629   echo "$as_me: failed program was:" >&5
11630 cat conftest.$ac_ext >&5
11631 ac_hi=`expr '(' $ac_mid ')' - 1`
11632                        if test $ac_mid -le $ac_hi; then
11633                          ac_lo= ac_hi=
11634                          break
11635                        fi
11636                        ac_mid=`expr 2 '*' $ac_mid`
11637 fi
11638 rm -f conftest.$ac_objext conftest.$ac_ext
11639   done
11640 else
11641   echo "$as_me: failed program was:" >&5
11642 cat conftest.$ac_ext >&5
11643 ac_lo= ac_hi=
11644 fi
11645 rm -f conftest.$ac_objext conftest.$ac_ext
11646 fi
11647 rm -f conftest.$ac_objext conftest.$ac_ext
11648 # Binary search between lo and hi bounds.
11649 while test "x$ac_lo" != "x$ac_hi"; do
11650   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
11651   cat >conftest.$ac_ext <<_ACEOF
11652 #line $LINENO "configure"
11653 #include "confdefs.h"
11654 $ac_includes_default
11655 #ifdef F77_DUMMY_MAIN
11656 #  ifdef __cplusplus
11657      extern "C"
11658 #  endif
11659    int F77_DUMMY_MAIN() { return 1; }
11660 #endif
11661 int
11662 main ()
11663 {
11664 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
11665 test_array [0] = 0
11666
11667   ;
11668   return 0;
11669 }
11670 _ACEOF
11671 rm -f conftest.$ac_objext
11672 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11673   (eval $ac_compile) 2>&5
11674   ac_status=$?
11675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11676   (exit $ac_status); } &&
11677          { ac_try='test -s conftest.$ac_objext'
11678   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11679   (eval $ac_try) 2>&5
11680   ac_status=$?
11681   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11682   (exit $ac_status); }; }; then
11683   ac_hi=$ac_mid
11684 else
11685   echo "$as_me: failed program was:" >&5
11686 cat conftest.$ac_ext >&5
11687 ac_lo=`expr '(' $ac_mid ')' + 1`
11688 fi
11689 rm -f conftest.$ac_objext conftest.$ac_ext
11690 done
11691 case $ac_lo in
11692 ?*) ac_cv_sizeof_long_long=$ac_lo;;
11693 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77" >&5
11694 echo "$as_me: error: cannot compute sizeof (long long), 77" >&2;}
11695    { (exit 1); exit 1; }; } ;;
11696 esac
11697 else
11698   if test "$cross_compiling" = yes; then
11699   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
11700 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
11701    { (exit 1); exit 1; }; }
11702 else
11703   cat >conftest.$ac_ext <<_ACEOF
11704 #line $LINENO "configure"
11705 #include "confdefs.h"
11706 $ac_includes_default
11707 long longval () { return (long) (sizeof (long long)); }
11708 unsigned long ulongval () { return (long) (sizeof (long long)); }
11709 #include <stdio.h>
11710 #include <stdlib.h>
11711 #ifdef F77_DUMMY_MAIN
11712 #  ifdef __cplusplus
11713      extern "C"
11714 #  endif
11715    int F77_DUMMY_MAIN() { return 1; }
11716 #endif
11717 int
11718 main ()
11719 {
11720
11721   FILE *f = fopen ("conftest.val", "w");
11722   if (! f)
11723     exit (1);
11724   if (((long) (sizeof (long long))) < 0)
11725     {
11726       long i = longval ();
11727       if (i != ((long) (sizeof (long long))))
11728         exit (1);
11729       fprintf (f, "%ld\n", i);
11730     }
11731   else
11732     {
11733       unsigned long i = ulongval ();
11734       if (i != ((long) (sizeof (long long))))
11735         exit (1);
11736       fprintf (f, "%lu\n", i);
11737     }
11738   exit (ferror (f) || fclose (f) != 0);
11739
11740   ;
11741   return 0;
11742 }
11743 _ACEOF
11744 rm -f conftest$ac_exeext
11745 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11746   (eval $ac_link) 2>&5
11747   ac_status=$?
11748   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11749   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11750   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11751   (eval $ac_try) 2>&5
11752   ac_status=$?
11753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11754   (exit $ac_status); }; }; then
11755   ac_cv_sizeof_long_long=`cat conftest.val`
11756 else
11757   echo "$as_me: program exited with status $ac_status" >&5
11758 echo "$as_me: failed program was:" >&5
11759 cat conftest.$ac_ext >&5
11760 ( exit $ac_status )
11761 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77" >&5
11762 echo "$as_me: error: cannot compute sizeof (long long), 77" >&2;}
11763    { (exit 1); exit 1; }; }
11764 fi
11765 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11766 fi
11767 fi
11768 rm -f conftest.val
11769 else
11770   ac_cv_sizeof_long_long=0
11771 fi
11772 fi
11773 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
11774 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
11775 cat >>confdefs.h <<_ACEOF
11776 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
11777 _ACEOF
11778
11779
11780
11781 echo "$as_me:$LINENO: checking whether linux/input.h is for real" >&5
11782 echo $ECHO_N "checking whether linux/input.h is for real... $ECHO_C" >&6
11783 if test "${wine_cv_linux_input_h+set}" = set; then
11784   echo $ECHO_N "(cached) $ECHO_C" >&6
11785 else
11786   cat >conftest.$ac_ext <<_ACEOF
11787 #line $LINENO "configure"
11788 #include "confdefs.h"
11789
11790             #include <linux/input.h>
11791
11792 #ifdef F77_DUMMY_MAIN
11793 #  ifdef __cplusplus
11794      extern "C"
11795 #  endif
11796    int F77_DUMMY_MAIN() { return 1; }
11797 #endif
11798 int
11799 main ()
11800 {
11801
11802             int foo = EVIOCGBIT(EV_ABS,42);
11803             int bar = BTN_PINKIE;
11804             int fortytwo = 42;
11805
11806   ;
11807   return 0;
11808 }
11809 _ACEOF
11810 rm -f conftest.$ac_objext
11811 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11812   (eval $ac_compile) 2>&5
11813   ac_status=$?
11814   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11815   (exit $ac_status); } &&
11816          { ac_try='test -s conftest.$ac_objext'
11817   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11818   (eval $ac_try) 2>&5
11819   ac_status=$?
11820   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11821   (exit $ac_status); }; }; then
11822   wine_cv_linux_input_h=yes
11823 else
11824   echo "$as_me: failed program was:" >&5
11825 cat conftest.$ac_ext >&5
11826 wine_cv_linux_input_h=no
11827 fi
11828 rm -f conftest.$ac_objext conftest.$ac_ext
11829
11830 fi
11831 echo "$as_me:$LINENO: result: $wine_cv_linux_input_h" >&5
11832 echo "${ECHO_T}$wine_cv_linux_input_h" >&6
11833     if test "$wine_cv_linux_input_h" = "yes"
11834     then
11835
11836 cat >>confdefs.h <<\_ACEOF
11837 #define HAVE_CORRECT_LINUXINPUT_H 1
11838 _ACEOF
11839
11840     fi
11841
11842
11843 echo "$as_me:$LINENO: checking whether we can use re-entrant gethostbyname_r Linux style" >&5
11844 echo $ECHO_N "checking whether we can use re-entrant gethostbyname_r Linux style... $ECHO_C" >&6
11845 if test "${wine_cv_linux_gethostbyname_r_6+set}" = set; then
11846   echo $ECHO_N "(cached) $ECHO_C" >&6
11847 else
11848   cat >conftest.$ac_ext <<_ACEOF
11849 #line $LINENO "configure"
11850 #include "confdefs.h"
11851
11852 #include <netdb.h>
11853
11854 #ifdef F77_DUMMY_MAIN
11855 #  ifdef __cplusplus
11856      extern "C"
11857 #  endif
11858    int F77_DUMMY_MAIN() { return 1; }
11859 #endif
11860 int
11861 main ()
11862 {
11863
11864     char *name=NULL;
11865     struct hostent he;
11866     struct hostent *result;
11867     char *buf=NULL;
11868     int bufsize=0;
11869     int res,errnr;
11870     char *addr=NULL;
11871     int addrlen=0;
11872     int addrtype=0;
11873     res=gethostbyname_r(name,&he,buf,bufsize,&result,&errnr);
11874     res=gethostbyaddr_r(addr, addrlen, addrtype,&he,buf,bufsize,&result,&errnr);
11875
11876   ;
11877   return 0;
11878 }
11879 _ACEOF
11880 rm -f conftest.$ac_objext
11881 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11882   (eval $ac_compile) 2>&5
11883   ac_status=$?
11884   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11885   (exit $ac_status); } &&
11886          { ac_try='test -s conftest.$ac_objext'
11887   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11888   (eval $ac_try) 2>&5
11889   ac_status=$?
11890   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11891   (exit $ac_status); }; }; then
11892   wine_cv_linux_gethostbyname_r_6=yes
11893 else
11894   echo "$as_me: failed program was:" >&5
11895 cat conftest.$ac_ext >&5
11896 wine_cv_linux_gethostbyname_r_6=no
11897
11898 fi
11899 rm -f conftest.$ac_objext conftest.$ac_ext
11900
11901 fi
11902 echo "$as_me:$LINENO: result: $wine_cv_linux_gethostbyname_r_6" >&5
11903 echo "${ECHO_T}$wine_cv_linux_gethostbyname_r_6" >&6
11904    if test "$wine_cv_linux_gethostbyname_r_6" = "yes"
11905    then
11906
11907 cat >>confdefs.h <<\_ACEOF
11908 #define HAVE_LINUX_GETHOSTBYNAME_R_6 1
11909 _ACEOF
11910
11911    fi
11912
11913 if test "$ac_cv_header_linux_joystick_h" = "yes"
11914 then
11915    echo "$as_me:$LINENO: checking whether linux/joystick.h uses the Linux 2.2+ API" >&5
11916 echo $ECHO_N "checking whether linux/joystick.h uses the Linux 2.2+ API... $ECHO_C" >&6
11917 if test "${wine_cv_linux_joystick_22_api+set}" = set; then
11918   echo $ECHO_N "(cached) $ECHO_C" >&6
11919 else
11920   cat >conftest.$ac_ext <<_ACEOF
11921 #line $LINENO "configure"
11922 #include "confdefs.h"
11923
11924         #include <sys/ioctl.h>
11925         #include <linux/joystick.h>
11926
11927         struct js_event blub;
11928         #if !defined(JS_EVENT_AXIS) || !defined(JS_EVENT_BUTTON)
11929         #error "no 2.2 header"
11930         #endif
11931
11932 #ifdef F77_DUMMY_MAIN
11933 #  ifdef __cplusplus
11934      extern "C"
11935 #  endif
11936    int F77_DUMMY_MAIN() { return 1; }
11937 #endif
11938 int
11939 main ()
11940 {
11941 /*empty*/
11942   ;
11943   return 0;
11944 }
11945 _ACEOF
11946 rm -f conftest.$ac_objext
11947 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11948   (eval $ac_compile) 2>&5
11949   ac_status=$?
11950   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11951   (exit $ac_status); } &&
11952          { ac_try='test -s conftest.$ac_objext'
11953   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11954   (eval $ac_try) 2>&5
11955   ac_status=$?
11956   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11957   (exit $ac_status); }; }; then
11958   wine_cv_linux_joystick_22_api=yes
11959 else
11960   echo "$as_me: failed program was:" >&5
11961 cat conftest.$ac_ext >&5
11962 wine_cv_linux_joystick_22_api=no
11963 fi
11964 rm -f conftest.$ac_objext conftest.$ac_ext
11965
11966 fi
11967 echo "$as_me:$LINENO: result: $wine_cv_linux_joystick_22_api" >&5
11968 echo "${ECHO_T}$wine_cv_linux_joystick_22_api" >&6
11969    if test "$wine_cv_linux_joystick_22_api" = "yes"
11970    then
11971
11972 cat >>confdefs.h <<\_ACEOF
11973 #define HAVE_LINUX_22_JOYSTICK_API 1
11974 _ACEOF
11975
11976    fi
11977 fi
11978
11979
11980 if test "$ac_cv_header_sys_vfs_h" = "yes"
11981 then
11982     echo "$as_me:$LINENO: checking whether sys/vfs.h defines statfs" >&5
11983 echo $ECHO_N "checking whether sys/vfs.h defines statfs... $ECHO_C" >&6
11984 if test "${wine_cv_sys_vfs_has_statfs+set}" = set; then
11985   echo $ECHO_N "(cached) $ECHO_C" >&6
11986 else
11987   cat >conftest.$ac_ext <<_ACEOF
11988 #line $LINENO "configure"
11989 #include "confdefs.h"
11990
11991         #include <sys/types.h>
11992         #ifdef HAVE_SYS_PARAM_H
11993         # include <sys/param.h>
11994         #endif
11995         #include <sys/vfs.h>
11996
11997 #ifdef F77_DUMMY_MAIN
11998 #  ifdef __cplusplus
11999      extern "C"
12000 #  endif
12001    int F77_DUMMY_MAIN() { return 1; }
12002 #endif
12003 int
12004 main ()
12005 {
12006
12007                 struct statfs stfs;
12008
12009                 memset(&stfs,0,sizeof(stfs));
12010
12011   ;
12012   return 0;
12013 }
12014 _ACEOF
12015 rm -f conftest.$ac_objext
12016 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12017   (eval $ac_compile) 2>&5
12018   ac_status=$?
12019   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12020   (exit $ac_status); } &&
12021          { ac_try='test -s conftest.$ac_objext'
12022   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12023   (eval $ac_try) 2>&5
12024   ac_status=$?
12025   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12026   (exit $ac_status); }; }; then
12027   wine_cv_sys_vfs_has_statfs=yes
12028 else
12029   echo "$as_me: failed program was:" >&5
12030 cat conftest.$ac_ext >&5
12031 wine_cv_sys_vfs_has_statfs=no
12032
12033 fi
12034 rm -f conftest.$ac_objext conftest.$ac_ext
12035
12036 fi
12037 echo "$as_me:$LINENO: result: $wine_cv_sys_vfs_has_statfs" >&5
12038 echo "${ECHO_T}$wine_cv_sys_vfs_has_statfs" >&6
12039     if test "$wine_cv_sys_vfs_has_statfs" = "yes"
12040     then
12041
12042 cat >>confdefs.h <<\_ACEOF
12043 #define STATFS_DEFINED_BY_SYS_VFS 1
12044 _ACEOF
12045
12046     fi
12047 fi
12048
12049 if test "$ac_cv_header_sys_statfs_h" = "yes"
12050 then
12051     echo "$as_me:$LINENO: checking whether sys/statfs.h defines statfs" >&5
12052 echo $ECHO_N "checking whether sys/statfs.h defines statfs... $ECHO_C" >&6
12053 if test "${wine_cv_sys_statfs_has_statfs+set}" = set; then
12054   echo $ECHO_N "(cached) $ECHO_C" >&6
12055 else
12056   cat >conftest.$ac_ext <<_ACEOF
12057 #line $LINENO "configure"
12058 #include "confdefs.h"
12059
12060         #include <sys/types.h>
12061         #ifdef HAVE_SYS_PARAM_H
12062         # include <sys/param.h>
12063         #endif
12064         #include <sys/statfs.h>
12065
12066 #ifdef F77_DUMMY_MAIN
12067 #  ifdef __cplusplus
12068      extern "C"
12069 #  endif
12070    int F77_DUMMY_MAIN() { return 1; }
12071 #endif
12072 int
12073 main ()
12074 {
12075
12076                 struct statfs stfs;
12077
12078   ;
12079   return 0;
12080 }
12081 _ACEOF
12082 rm -f conftest.$ac_objext
12083 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12084   (eval $ac_compile) 2>&5
12085   ac_status=$?
12086   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12087   (exit $ac_status); } &&
12088          { ac_try='test -s conftest.$ac_objext'
12089   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12090   (eval $ac_try) 2>&5
12091   ac_status=$?
12092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12093   (exit $ac_status); }; }; then
12094   wine_cv_sys_statfs_has_statfs=yes
12095 else
12096   echo "$as_me: failed program was:" >&5
12097 cat conftest.$ac_ext >&5
12098 wine_cv_sys_statfs_has_statfs=no
12099
12100 fi
12101 rm -f conftest.$ac_objext conftest.$ac_ext
12102
12103 fi
12104 echo "$as_me:$LINENO: result: $wine_cv_sys_statfs_has_statfs" >&5
12105 echo "${ECHO_T}$wine_cv_sys_statfs_has_statfs" >&6
12106     if test "$wine_cv_sys_statfs_has_statfs" = "yes"
12107     then
12108
12109 cat >>confdefs.h <<\_ACEOF
12110 #define STATFS_DEFINED_BY_SYS_STATFS 1
12111 _ACEOF
12112
12113     fi
12114 fi
12115
12116 if test "$ac_cv_header_sys_mount_h" = "yes"
12117 then
12118     echo "$as_me:$LINENO: checking whether sys/mount.h defines statfs" >&5
12119 echo $ECHO_N "checking whether sys/mount.h defines statfs... $ECHO_C" >&6
12120 if test "${wine_cv_sys_mount_has_statfs+set}" = set; then
12121   echo $ECHO_N "(cached) $ECHO_C" >&6
12122 else
12123   cat >conftest.$ac_ext <<_ACEOF
12124 #line $LINENO "configure"
12125 #include "confdefs.h"
12126
12127         #include <sys/types.h>
12128         #ifdef HAVE_SYS_PARAM_H
12129         # include <sys/param.h>
12130         #endif
12131         #include <sys/mount.h>
12132
12133 #ifdef F77_DUMMY_MAIN
12134 #  ifdef __cplusplus
12135      extern "C"
12136 #  endif
12137    int F77_DUMMY_MAIN() { return 1; }
12138 #endif
12139 int
12140 main ()
12141 {
12142
12143                 struct statfs stfs;
12144
12145   ;
12146   return 0;
12147 }
12148 _ACEOF
12149 rm -f conftest.$ac_objext
12150 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12151   (eval $ac_compile) 2>&5
12152   ac_status=$?
12153   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12154   (exit $ac_status); } &&
12155          { ac_try='test -s conftest.$ac_objext'
12156   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12157   (eval $ac_try) 2>&5
12158   ac_status=$?
12159   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12160   (exit $ac_status); }; }; then
12161   wine_cv_sys_mount_has_statfs=yes
12162 else
12163   echo "$as_me: failed program was:" >&5
12164 cat conftest.$ac_ext >&5
12165 wine_cv_sys_mount_has_statfs=no
12166
12167 fi
12168 rm -f conftest.$ac_objext conftest.$ac_ext
12169
12170 fi
12171 echo "$as_me:$LINENO: result: $wine_cv_sys_mount_has_statfs" >&5
12172 echo "${ECHO_T}$wine_cv_sys_mount_has_statfs" >&6
12173     if test "$wine_cv_sys_mount_has_statfs" = "yes"
12174     then
12175
12176 cat >>confdefs.h <<\_ACEOF
12177 #define STATFS_DEFINED_BY_SYS_MOUNT 1
12178 _ACEOF
12179
12180     fi
12181 fi
12182
12183
12184
12185
12186
12187
12188 echo "$as_me:$LINENO: checking for f_bfree in struct statfs" >&5
12189 echo $ECHO_N "checking for f_bfree in struct statfs... $ECHO_C" >&6
12190 if test "${ac_cv_c_statfs_f_bfree+set}" = set; then
12191   echo $ECHO_N "(cached) $ECHO_C" >&6
12192 else
12193   cat >conftest.$ac_ext <<_ACEOF
12194 #line $LINENO "configure"
12195 #include "confdefs.h"
12196 #include <sys/types.h>
12197 #ifdef HAVE_SYS_PARAM_H
12198 # include <sys/param.h>
12199 #endif
12200 #ifdef STATFS_DEFINED_BY_SYS_MOUNT
12201 # include <sys/mount.h>
12202 #else
12203 # ifdef STATFS_DEFINED_BY_SYS_VFS
12204 #  include <sys/vfs.h>
12205 # else
12206 #  ifdef STATFS_DEFINED_BY_SYS_STATFS
12207 #   include <sys/statfs.h>
12208 #  endif
12209 # endif
12210 #endif
12211 #ifdef F77_DUMMY_MAIN
12212 #  ifdef __cplusplus
12213      extern "C"
12214 #  endif
12215    int F77_DUMMY_MAIN() { return 1; }
12216 #endif
12217 int
12218 main ()
12219 {
12220 struct statfs s; s.f_bfree = 0
12221   ;
12222   return 0;
12223 }
12224 _ACEOF
12225 rm -f conftest.$ac_objext
12226 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12227   (eval $ac_compile) 2>&5
12228   ac_status=$?
12229   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12230   (exit $ac_status); } &&
12231          { ac_try='test -s conftest.$ac_objext'
12232   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12233   (eval $ac_try) 2>&5
12234   ac_status=$?
12235   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12236   (exit $ac_status); }; }; then
12237   ac_cv_c_statfs_f_bfree="yes"
12238 else
12239   echo "$as_me: failed program was:" >&5
12240 cat conftest.$ac_ext >&5
12241 ac_cv_c_statfs_f_bfree="no"
12242 fi
12243 rm -f conftest.$ac_objext conftest.$ac_ext
12244 fi
12245 echo "$as_me:$LINENO: result: $ac_cv_c_statfs_f_bfree" >&5
12246 echo "${ECHO_T}$ac_cv_c_statfs_f_bfree" >&6
12247 if  test "x$ac_cv_c_statfs_f_bfree" = "xyes"; then
12248
12249 cat >>confdefs.h <<\_ACEOF
12250 #define STATFS_HAS_BFREE 1
12251 _ACEOF
12252
12253 fi
12254
12255
12256
12257 echo "$as_me:$LINENO: checking for f_bavail in struct statfs" >&5
12258 echo $ECHO_N "checking for f_bavail in struct statfs... $ECHO_C" >&6
12259 if test "${ac_cv_c_statfs_f_bavail+set}" = set; then
12260   echo $ECHO_N "(cached) $ECHO_C" >&6
12261 else
12262   cat >conftest.$ac_ext <<_ACEOF
12263 #line $LINENO "configure"
12264 #include "confdefs.h"
12265 #include <sys/types.h>
12266 #ifdef HAVE_SYS_PARAM_H
12267 # include <sys/param.h>
12268 #endif
12269 #ifdef STATFS_DEFINED_BY_SYS_MOUNT
12270 # include <sys/mount.h>
12271 #else
12272 # ifdef STATFS_DEFINED_BY_SYS_VFS
12273 #  include <sys/vfs.h>
12274 # else
12275 #  ifdef STATFS_DEFINED_BY_SYS_STATFS
12276 #   include <sys/statfs.h>
12277 #  endif
12278 # endif
12279 #endif
12280 #ifdef F77_DUMMY_MAIN
12281 #  ifdef __cplusplus
12282      extern "C"
12283 #  endif
12284    int F77_DUMMY_MAIN() { return 1; }
12285 #endif
12286 int
12287 main ()
12288 {
12289 struct statfs s; s.f_bavail = 0
12290   ;
12291   return 0;
12292 }
12293 _ACEOF
12294 rm -f conftest.$ac_objext
12295 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12296   (eval $ac_compile) 2>&5
12297   ac_status=$?
12298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12299   (exit $ac_status); } &&
12300          { ac_try='test -s conftest.$ac_objext'
12301   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12302   (eval $ac_try) 2>&5
12303   ac_status=$?
12304   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12305   (exit $ac_status); }; }; then
12306   ac_cv_c_statfs_f_bavail="yes"
12307 else
12308   echo "$as_me: failed program was:" >&5
12309 cat conftest.$ac_ext >&5
12310 ac_cv_c_statfs_f_bavail="no"
12311 fi
12312 rm -f conftest.$ac_objext conftest.$ac_ext
12313 fi
12314 echo "$as_me:$LINENO: result: $ac_cv_c_statfs_f_bavail" >&5
12315 echo "${ECHO_T}$ac_cv_c_statfs_f_bavail" >&6
12316 if  test "x$ac_cv_c_statfs_f_bavail" = "xyes"; then
12317
12318 cat >>confdefs.h <<\_ACEOF
12319 #define STATFS_HAS_BAVAIL 1
12320 _ACEOF
12321
12322 fi
12323
12324
12325
12326 echo "$as_me:$LINENO: checking for msg_accrights in struct msghdr" >&5
12327 echo $ECHO_N "checking for msg_accrights in struct msghdr... $ECHO_C" >&6
12328 if test "${ac_cv_c_msghdr_msg_accrights+set}" = set; then
12329   echo $ECHO_N "(cached) $ECHO_C" >&6
12330 else
12331   cat >conftest.$ac_ext <<_ACEOF
12332 #line $LINENO "configure"
12333 #include "confdefs.h"
12334 #include <sys/types.h>
12335 #include <sys/socket.h>
12336 #ifdef F77_DUMMY_MAIN
12337 #  ifdef __cplusplus
12338      extern "C"
12339 #  endif
12340    int F77_DUMMY_MAIN() { return 1; }
12341 #endif
12342 int
12343 main ()
12344 {
12345 struct msghdr s; s.msg_accrights = 0
12346   ;
12347   return 0;
12348 }
12349 _ACEOF
12350 rm -f conftest.$ac_objext
12351 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12352   (eval $ac_compile) 2>&5
12353   ac_status=$?
12354   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12355   (exit $ac_status); } &&
12356          { ac_try='test -s conftest.$ac_objext'
12357   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12358   (eval $ac_try) 2>&5
12359   ac_status=$?
12360   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12361   (exit $ac_status); }; }; then
12362   ac_cv_c_msghdr_msg_accrights="yes"
12363 else
12364   echo "$as_me: failed program was:" >&5
12365 cat conftest.$ac_ext >&5
12366 ac_cv_c_msghdr_msg_accrights="no"
12367 fi
12368 rm -f conftest.$ac_objext conftest.$ac_ext
12369 fi
12370 echo "$as_me:$LINENO: result: $ac_cv_c_msghdr_msg_accrights" >&5
12371 echo "${ECHO_T}$ac_cv_c_msghdr_msg_accrights" >&6
12372 if  test "x$ac_cv_c_msghdr_msg_accrights" = "xyes"; then
12373
12374 cat >>confdefs.h <<\_ACEOF
12375 #define HAVE_MSGHDR_ACCRIGHTS 1
12376 _ACEOF
12377
12378 fi
12379
12380
12381
12382 echo "$as_me:$LINENO: checking for sa_len in struct sockaddr" >&5
12383 echo $ECHO_N "checking for sa_len in struct sockaddr... $ECHO_C" >&6
12384 if test "${ac_cv_c_sockaddr_sa_len+set}" = set; then
12385   echo $ECHO_N "(cached) $ECHO_C" >&6
12386 else
12387   cat >conftest.$ac_ext <<_ACEOF
12388 #line $LINENO "configure"
12389 #include "confdefs.h"
12390 #include <sys/types.h>
12391 #include <sys/socket.h>
12392 #ifdef F77_DUMMY_MAIN
12393 #  ifdef __cplusplus
12394      extern "C"
12395 #  endif
12396    int F77_DUMMY_MAIN() { return 1; }
12397 #endif
12398 int
12399 main ()
12400 {
12401 struct sockaddr s; s.sa_len = 0
12402   ;
12403   return 0;
12404 }
12405 _ACEOF
12406 rm -f conftest.$ac_objext
12407 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12408   (eval $ac_compile) 2>&5
12409   ac_status=$?
12410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12411   (exit $ac_status); } &&
12412          { ac_try='test -s conftest.$ac_objext'
12413   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12414   (eval $ac_try) 2>&5
12415   ac_status=$?
12416   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12417   (exit $ac_status); }; }; then
12418   ac_cv_c_sockaddr_sa_len="yes"
12419 else
12420   echo "$as_me: failed program was:" >&5
12421 cat conftest.$ac_ext >&5
12422 ac_cv_c_sockaddr_sa_len="no"
12423 fi
12424 rm -f conftest.$ac_objext conftest.$ac_ext
12425 fi
12426 echo "$as_me:$LINENO: result: $ac_cv_c_sockaddr_sa_len" >&5
12427 echo "${ECHO_T}$ac_cv_c_sockaddr_sa_len" >&6
12428 if  test "x$ac_cv_c_sockaddr_sa_len" = "xyes"; then
12429
12430 cat >>confdefs.h <<\_ACEOF
12431 #define HAVE_SOCKADDR_SA_LEN 1
12432 _ACEOF
12433
12434 fi
12435
12436
12437
12438 echo "$as_me:$LINENO: checking for sun_len in struct sockaddr_un" >&5
12439 echo $ECHO_N "checking for sun_len in struct sockaddr_un... $ECHO_C" >&6
12440 if test "${ac_cv_c_sockaddr_un_sun_len+set}" = set; then
12441   echo $ECHO_N "(cached) $ECHO_C" >&6
12442 else
12443   cat >conftest.$ac_ext <<_ACEOF
12444 #line $LINENO "configure"
12445 #include "confdefs.h"
12446 #include <sys/types.h>
12447 #include <sys/socket.h>
12448 #include <sys/un.h>
12449 #ifdef F77_DUMMY_MAIN
12450 #  ifdef __cplusplus
12451      extern "C"
12452 #  endif
12453    int F77_DUMMY_MAIN() { return 1; }
12454 #endif
12455 int
12456 main ()
12457 {
12458 struct sockaddr_un s; s.sun_len = 0
12459   ;
12460   return 0;
12461 }
12462 _ACEOF
12463 rm -f conftest.$ac_objext
12464 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12465   (eval $ac_compile) 2>&5
12466   ac_status=$?
12467   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12468   (exit $ac_status); } &&
12469          { ac_try='test -s conftest.$ac_objext'
12470   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12471   (eval $ac_try) 2>&5
12472   ac_status=$?
12473   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12474   (exit $ac_status); }; }; then
12475   ac_cv_c_sockaddr_un_sun_len="yes"
12476 else
12477   echo "$as_me: failed program was:" >&5
12478 cat conftest.$ac_ext >&5
12479 ac_cv_c_sockaddr_un_sun_len="no"
12480 fi
12481 rm -f conftest.$ac_objext conftest.$ac_ext
12482 fi
12483 echo "$as_me:$LINENO: result: $ac_cv_c_sockaddr_un_sun_len" >&5
12484 echo "${ECHO_T}$ac_cv_c_sockaddr_un_sun_len" >&6
12485 if  test "x$ac_cv_c_sockaddr_un_sun_len" = "xyes"; then
12486
12487 cat >>confdefs.h <<\_ACEOF
12488 #define HAVE_SOCKADDR_SUN_LEN 1
12489 _ACEOF
12490
12491 fi
12492
12493
12494
12495
12496 case $target_cpu in
12497   *i345678986* )
12498     echo "$as_me:$LINENO: checking whether we need to define __i386__" >&5
12499 echo $ECHO_N "checking whether we need to define __i386__... $ECHO_C" >&6
12500 if test "${ac_cv_cpp_def_i386+set}" = set; then
12501   echo $ECHO_N "(cached) $ECHO_C" >&6
12502 else
12503   cat >conftest.$ac_ext <<_ACEOF
12504 #line $LINENO "configure"
12505 #include "confdefs.h"
12506 #ifndef __i386__
12507 yes
12508 #endif
12509 _ACEOF
12510 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12511   egrep "yes" >/dev/null 2>&1; then
12512   ac_cv_cpp_def_i386="yes"
12513 else
12514   ac_cv_cpp_def_i386="no"
12515 fi
12516 rm -f conftest*
12517
12518 fi
12519 echo "$as_me:$LINENO: result: $ac_cv_cpp_def_i386" >&5
12520 echo "${ECHO_T}$ac_cv_cpp_def_i386" >&6
12521     ;;
12522 esac
12523 if test "$ac_cv_cpp_def_i386" = "yes"
12524 then
12525     CFLAGS="$CFLAGS -D__i386__"
12526     LINTFLAGS="$LINTFLAGS -D__i386__"
12527 fi
12528
12529
12530
12531
12532
12533
12534
12535 ac_config_commands="$ac_config_commands dlls/ddraw/d3ddevice"
12536
12537 ac_config_commands="$ac_config_commands dlls/ddraw/dclipper"
12538
12539 ac_config_commands="$ac_config_commands dlls/ddraw/ddraw"
12540
12541 ac_config_commands="$ac_config_commands dlls/ddraw/direct3d"
12542
12543 ac_config_commands="$ac_config_commands dlls/ddraw/dpalette"
12544
12545 ac_config_commands="$ac_config_commands dlls/ddraw/dsurface"
12546
12547 ac_config_commands="$ac_config_commands dlls/dinput/joystick"
12548
12549 ac_config_commands="$ac_config_commands dlls/dinput/keyboard"
12550
12551 ac_config_commands="$ac_config_commands dlls/dinput/mouse"
12552
12553 ac_config_commands="$ac_config_commands dlls/gdi/enhmfdrv"
12554
12555 ac_config_commands="$ac_config_commands dlls/gdi/mfdrv"
12556
12557 ac_config_commands="$ac_config_commands dlls/gdi/win16drv"
12558
12559 ac_config_commands="$ac_config_commands dlls/kernel/messages"
12560
12561 ac_config_commands="$ac_config_commands dlls/kernel/tests"
12562
12563 ac_config_commands="$ac_config_commands dlls/oleaut32/tests"
12564
12565 ac_config_commands="$ac_config_commands dlls/user/dde"
12566
12567 ac_config_commands="$ac_config_commands dlls/user/resources"
12568
12569 ac_config_commands="$ac_config_commands dlls/user/tests"
12570
12571 ac_config_commands="$ac_config_commands dlls/wineps/data"
12572
12573 ac_config_commands="$ac_config_commands include/wine"
12574
12575 ac_config_commands="$ac_config_commands programs/regapi/tests"
12576
12577 ac_config_commands="$ac_config_commands programs/winetest/tests"
12578
12579
12580 MAKE_RULES=Make.rules
12581
12582
12583 MAKE_DLL_RULES=dlls/Makedll.rules
12584
12585
12586 MAKE_PROG_RULES=programs/Makeprog.rules
12587
12588
12589 ac_config_files="$ac_config_files Make.rules dlls/Makedll.rules programs/Makeprog.rules Makefile controls/Makefile debugger/Makefile dlls/Makefile dlls/advapi32/Makefile dlls/avicap32/Makefile dlls/avifil32/Makefile dlls/comctl32/Makefile dlls/commdlg/Makefile dlls/crtdll/Makefile dlls/crypt32/Makefile dlls/dciman32/Makefile dlls/ddraw/Makefile dlls/devenum/Makefile dlls/dinput/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/msg711/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/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/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 files/Makefile graphics/Makefile graphics/x11drv/Makefile if1632/Makefile include/Makefile library/Makefile libtest/Makefile loader/Makefile loader/ne/Makefile memory/Makefile misc/Makefile miscemu/Makefile msdos/Makefile objects/Makefile ole/Makefile programs/Makefile programs/avitools/Makefile programs/clock/Makefile programs/cmdlgtst/Makefile programs/control/Makefile programs/notepad/Makefile programs/osversioncheck/Makefile programs/progman/Makefile programs/regapi/Makefile programs/regedit/Makefile programs/regtest/Makefile programs/uninstaller/Makefile programs/view/Makefile programs/wcmd/Makefile programs/wineconsole/Makefile programs/winemine/Makefile programs/winetest/Makefile programs/winhelp/Makefile programs/winver/Makefile relay32/Makefile scheduler/Makefile server/Makefile tools/Makefile tools/winapi/Makefile tools/winebuild/Makefile tools/winedump/Makefile tools/wmc/Makefile tools/wrc/Makefile tsx11/Makefile unicode/Makefile win32/Makefile windows/Makefile windows/x11drv/Makefile"
12590
12591
12592 cat >confcache <<\_ACEOF
12593 # This file is a shell script that caches the results of configure
12594 # tests run on this system so they can be shared between configure
12595 # scripts and configure runs, see configure's option --config-cache.
12596 # It is not useful on other systems.  If it contains results you don't
12597 # want to keep, you may remove or edit it.
12598 #
12599 # config.status only pays attention to the cache file if you give it
12600 # the --recheck option to rerun configure.
12601 #
12602 # `ac_cv_env_foo' variables (set or unset) will be overriden when
12603 # loading this file, other *unset* `ac_cv_foo' will be assigned the
12604 # following values.
12605
12606 _ACEOF
12607
12608 # The following way of writing the cache mishandles newlines in values,
12609 # but we know of no workaround that is simple, portable, and efficient.
12610 # So, don't put newlines in cache variables' values.
12611 # Ultrix sh set writes to stderr and can't be redirected directly,
12612 # and sets the high bit in the cache file unless we assign to the vars.
12613 {
12614   (set) 2>&1 |
12615     case `(ac_space=' '; set | grep ac_space) 2>&1` in
12616     *ac_space=\ *)
12617       # `set' does not quote correctly, so add quotes (double-quote
12618       # substitution turns \\\\ into \\, and sed turns \\ into \).
12619       sed -n \
12620         "s/'/'\\\\''/g;
12621           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12622       ;;
12623     *)
12624       # `set' quotes correctly as required by POSIX, so do not add quotes.
12625       sed -n \
12626         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
12627       ;;
12628     esac;
12629 } |
12630   sed '
12631      t clear
12632      : clear
12633      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12634      t end
12635      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12636      : end' >>confcache
12637 if cmp -s $cache_file confcache; then :; else
12638   if test -w $cache_file; then
12639     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
12640     cat confcache >$cache_file
12641   else
12642     echo "not updating unwritable cache $cache_file"
12643   fi
12644 fi
12645 rm -f confcache
12646
12647 test "x$prefix" = xNONE && prefix=$ac_default_prefix
12648 # Let make expand exec_prefix.
12649 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12650
12651 # VPATH may cause trouble with some makes, so we remove $(srcdir),
12652 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
12653 # trailing colons and then remove the whole line if VPATH becomes empty
12654 # (actually we leave an empty line to preserve line numbers).
12655 if test "x$srcdir" = x.; then
12656   ac_vpsub='/^[         ]*VPATH[        ]*=/{
12657 s/:*\$(srcdir):*/:/;
12658 s/:*\${srcdir}:*/:/;
12659 s/:*@srcdir@:*/:/;
12660 s/^\([^=]*=[    ]*\):*/\1/;
12661 s/:*$//;
12662 s/^[^=]*=[      ]*$//;
12663 }'
12664 fi
12665
12666 DEFS=-DHAVE_CONFIG_H
12667
12668
12669 : ${CONFIG_STATUS=./config.status}
12670 ac_clean_files_save=$ac_clean_files
12671 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12672 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
12673 echo "$as_me: creating $CONFIG_STATUS" >&6;}
12674 cat >$CONFIG_STATUS <<_ACEOF
12675 #! $SHELL
12676 # Generated by $as_me.
12677 # Run this file to recreate the current configuration.
12678 # Compiler output produced by configure, useful for debugging
12679 # configure, is in config.log if it exists.
12680
12681 debug=false
12682 SHELL=\${CONFIG_SHELL-$SHELL}
12683 _ACEOF
12684
12685 cat >>$CONFIG_STATUS <<\_ACEOF
12686
12687 ## --------------------- ##
12688 ## M4sh Initialization.  ##
12689 ## --------------------- ##
12690
12691 # Be Bourne compatible
12692 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
12693   emulate sh
12694   NULLCMD=:
12695 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
12696   set -o posix
12697 fi
12698
12699 # NLS nuisances.
12700 # Support unset when possible.
12701 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
12702   as_unset=unset
12703 else
12704   as_unset=false
12705 fi
12706
12707 (set +x; test -n "`(LANG=C; export LANG) 2>&1`") &&
12708     { $as_unset LANG || test "${LANG+set}" != set; } ||
12709       { LANG=C; export LANG; }
12710 (set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") &&
12711     { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } ||
12712       { LC_ALL=C; export LC_ALL; }
12713 (set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") &&
12714     { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } ||
12715       { LC_TIME=C; export LC_TIME; }
12716 (set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") &&
12717     { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } ||
12718       { LC_CTYPE=C; export LC_CTYPE; }
12719 (set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") &&
12720     { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } ||
12721       { LANGUAGE=C; export LANGUAGE; }
12722 (set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") &&
12723     { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } ||
12724       { LC_COLLATE=C; export LC_COLLATE; }
12725 (set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") &&
12726     { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } ||
12727       { LC_NUMERIC=C; export LC_NUMERIC; }
12728 (set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") &&
12729     { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } ||
12730       { LC_MESSAGES=C; export LC_MESSAGES; }
12731
12732
12733 # Name of the executable.
12734 as_me=`(basename "$0") 2>/dev/null ||
12735 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12736          X"$0" : 'X\(//\)$' \| \
12737          X"$0" : 'X\(/\)$' \| \
12738          .     : '\(.\)' 2>/dev/null ||
12739 echo X/"$0" |
12740     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
12741           /^X\/\(\/\/\)$/{ s//\1/; q; }
12742           /^X\/\(\/\).*/{ s//\1/; q; }
12743           s/.*/./; q'`
12744
12745 # PATH needs CR, and LINENO needs CR and PATH.
12746 # Avoid depending upon Character Ranges.
12747 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12748 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12749 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12750 as_cr_digits='0123456789'
12751 as_cr_alnum=$as_cr_Letters$as_cr_digits
12752
12753 # The user is always right.
12754 if test "${PATH_SEPARATOR+set}" != set; then
12755   echo "#! /bin/sh" >conftest.sh
12756   echo  "exit 0"   >>conftest.sh
12757   chmod +x conftest.sh
12758   if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then
12759     PATH_SEPARATOR=';'
12760   else
12761     PATH_SEPARATOR=:
12762   fi
12763   rm -f conftest.sh
12764 fi
12765
12766
12767   as_lineno_1=$LINENO
12768   as_lineno_2=$LINENO
12769   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
12770   test "x$as_lineno_1" != "x$as_lineno_2" &&
12771   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
12772   # Find who we are.  Look in the path if we contain no path at all
12773   # relative or not.
12774   case $0 in
12775     *[\\/]* ) as_myself=$0 ;;
12776     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12777 for as_dir in $PATH
12778 do
12779   IFS=$as_save_IFS
12780   test -z "$as_dir" && as_dir=.
12781   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12782 done
12783
12784        ;;
12785   esac
12786   # We did not find ourselves, most probably we were run as `sh COMMAND'
12787   # in which case we are not to be found in the path.
12788   if test "x$as_myself" = x; then
12789     as_myself=$0
12790   fi
12791   if test ! -f "$as_myself"; then
12792     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
12793 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
12794    { (exit 1); exit 1; }; }
12795   fi
12796   case $CONFIG_SHELL in
12797   '')
12798     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12799 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
12800 do
12801   IFS=$as_save_IFS
12802   test -z "$as_dir" && as_dir=.
12803   for as_base in sh bash ksh sh5; do
12804          case $as_dir in
12805          /*)
12806            if ("$as_dir/$as_base" -c '
12807   as_lineno_1=$LINENO
12808   as_lineno_2=$LINENO
12809   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
12810   test "x$as_lineno_1" != "x$as_lineno_2" &&
12811   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
12812              CONFIG_SHELL=$as_dir/$as_base
12813              export CONFIG_SHELL
12814              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
12815            fi;;
12816          esac
12817        done
12818 done
12819 ;;
12820   esac
12821
12822   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
12823   # uniformly replaced by the line number.  The first 'sed' inserts a
12824   # line-number line before each line; the second 'sed' does the real
12825   # work.  The second script uses 'N' to pair each line-number line
12826   # with the numbered line, and appends trailing '-' during
12827   # substitution so that $LINENO is not a special case at line end.
12828   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
12829   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
12830   sed '=' <$as_myself |
12831     sed '
12832       N
12833       s,$,-,
12834       : loop
12835       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
12836       t loop
12837       s,-$,,
12838       s,^['$as_cr_digits']*\n,,
12839     ' >$as_me.lineno &&
12840   chmod +x $as_me.lineno ||
12841     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
12842 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
12843    { (exit 1); exit 1; }; }
12844
12845   # Don't try to exec as it changes $[0], causing all sort of problems
12846   # (the dirname of $[0] is not the place where we might find the
12847   # original and so on.  Autoconf is especially sensible to this).
12848   . ./$as_me.lineno
12849   # Exit status is that of the last command.
12850   exit
12851 }
12852
12853
12854 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
12855   *c*,-n*) ECHO_N= ECHO_C='
12856 ' ECHO_T='      ' ;;
12857   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
12858   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
12859 esac
12860
12861 if expr a : '\(a\)' >/dev/null 2>&1; then
12862   as_expr=expr
12863 else
12864   as_expr=false
12865 fi
12866
12867 rm -f conf$$ conf$$.exe conf$$.file
12868 echo >conf$$.file
12869 if ln -s conf$$.file conf$$ 2>/dev/null; then
12870   # We could just check for DJGPP; but this test a) works b) is more generic
12871   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
12872   if test -f conf$$.exe; then
12873     # Don't use ln at all; we don't have any links
12874     as_ln_s='cp -p'
12875   else
12876     as_ln_s='ln -s'
12877   fi
12878 elif ln conf$$.file conf$$ 2>/dev/null; then
12879   as_ln_s=ln
12880 else
12881   as_ln_s='cp -p'
12882 fi
12883 rm -f conf$$ conf$$.exe conf$$.file
12884
12885 as_executable_p="test -f"
12886
12887 # Sed expression to map a string onto a valid CPP name.
12888 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
12889
12890 # Sed expression to map a string onto a valid variable name.
12891 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
12892
12893
12894 # IFS
12895 # We need space, tab and new line, in precisely that order.
12896 as_nl='
12897 '
12898 IFS="   $as_nl"
12899
12900 # CDPATH.
12901 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; }
12902
12903 exec 6>&1
12904
12905 # Open the log real soon, to keep \$[0] and so on meaningful, and to
12906 # report actual input values of CONFIG_FILES etc. instead of their
12907 # values after options handling.  Logging --version etc. is OK.
12908 exec 5>>config.log
12909 {
12910   echo
12911   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12912 ## Running $as_me. ##
12913 _ASBOX
12914 } >&5
12915 cat >&5 <<_CSEOF
12916
12917 This file was extended by Wine $as_me 20020411, which was
12918 generated by GNU Autoconf 2.53.  Invocation command line was
12919
12920   CONFIG_FILES    = $CONFIG_FILES
12921   CONFIG_HEADERS  = $CONFIG_HEADERS
12922   CONFIG_LINKS    = $CONFIG_LINKS
12923   CONFIG_COMMANDS = $CONFIG_COMMANDS
12924   $ $0 $@
12925
12926 _CSEOF
12927 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
12928 echo >&5
12929 _ACEOF
12930
12931 # Files that config.status was made for.
12932 if test -n "$ac_config_files"; then
12933   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
12934 fi
12935
12936 if test -n "$ac_config_headers"; then
12937   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
12938 fi
12939
12940 if test -n "$ac_config_links"; then
12941   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
12942 fi
12943
12944 if test -n "$ac_config_commands"; then
12945   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
12946 fi
12947
12948 cat >>$CONFIG_STATUS <<\_ACEOF
12949
12950 ac_cs_usage="\
12951 \`$as_me' instantiates files from templates according to the
12952 current configuration.
12953
12954 Usage: $0 [OPTIONS] [FILE]...
12955
12956   -h, --help       print this help, then exit
12957   -V, --version    print version number, then exit
12958   -d, --debug      don't remove temporary files
12959       --recheck    update $as_me by reconfiguring in the same conditions
12960   --file=FILE[:TEMPLATE]
12961                    instantiate the configuration file FILE
12962   --header=FILE[:TEMPLATE]
12963                    instantiate the configuration header FILE
12964
12965 Configuration files:
12966 $config_files
12967
12968 Configuration headers:
12969 $config_headers
12970
12971 Configuration commands:
12972 $config_commands
12973
12974 Report bugs to <bug-autoconf@gnu.org>."
12975 _ACEOF
12976
12977 cat >>$CONFIG_STATUS <<_ACEOF
12978 ac_cs_version="\\
12979 Wine config.status 20020411
12980 configured by $0, generated by GNU Autoconf 2.53,
12981   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
12982
12983 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
12984 Free Software Foundation, Inc.
12985 This config.status script is free software; the Free Software Foundation
12986 gives unlimited permission to copy, distribute and modify it."
12987 srcdir=$srcdir
12988 INSTALL="$INSTALL"
12989 _ACEOF
12990
12991 cat >>$CONFIG_STATUS <<\_ACEOF
12992 # If no file are specified by the user, then we need to provide default
12993 # value.  By we need to know if files were specified by the user.
12994 ac_need_defaults=:
12995 while test $# != 0
12996 do
12997   case $1 in
12998   --*=*)
12999     ac_option=`expr "x$1" : 'x\([^=]*\)='`
13000     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
13001     shift
13002     set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
13003     shift
13004     ;;
13005   -*);;
13006   *) # This is not an option, so the user has probably given explicit
13007      # arguments.
13008      ac_need_defaults=false;;
13009   esac
13010
13011   case $1 in
13012   # Handling of the options.
13013 _ACEOF
13014 cat >>$CONFIG_STATUS <<_ACEOF
13015   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13016     echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
13017     exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
13018 _ACEOF
13019 cat >>$CONFIG_STATUS <<\_ACEOF
13020   --version | --vers* | -V )
13021     echo "$ac_cs_version"; exit 0 ;;
13022   --he | --h)
13023     # Conflict between --help and --header
13024     { { echo "$as_me:$LINENO: error: ambiguous option: $1
13025 Try \`$0 --help' for more information." >&5
13026 echo "$as_me: error: ambiguous option: $1
13027 Try \`$0 --help' for more information." >&2;}
13028    { (exit 1); exit 1; }; };;
13029   --help | --hel | -h )
13030     echo "$ac_cs_usage"; exit 0 ;;
13031   --debug | --d* | -d )
13032     debug=: ;;
13033   --file | --fil | --fi | --f )
13034     shift
13035     CONFIG_FILES="$CONFIG_FILES $1"
13036     ac_need_defaults=false;;
13037   --header | --heade | --head | --hea )
13038     shift
13039     CONFIG_HEADERS="$CONFIG_HEADERS $1"
13040     ac_need_defaults=false;;
13041
13042   # This is an error.
13043   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
13044 Try \`$0 --help' for more information." >&5
13045 echo "$as_me: error: unrecognized option: $1
13046 Try \`$0 --help' for more information." >&2;}
13047    { (exit 1); exit 1; }; } ;;
13048
13049   *) ac_config_targets="$ac_config_targets $1" ;;
13050
13051   esac
13052   shift
13053 done
13054
13055 _ACEOF
13056
13057
13058
13059
13060
13061 cat >>$CONFIG_STATUS <<\_ACEOF
13062 for ac_config_target in $ac_config_targets
13063 do
13064   case "$ac_config_target" in
13065   # Handling of arguments.
13066   "Make.rules" ) CONFIG_FILES="$CONFIG_FILES Make.rules" ;;
13067   "dlls/Makedll.rules" ) CONFIG_FILES="$CONFIG_FILES dlls/Makedll.rules" ;;
13068   "programs/Makeprog.rules" ) CONFIG_FILES="$CONFIG_FILES programs/Makeprog.rules" ;;
13069   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
13070   "controls/Makefile" ) CONFIG_FILES="$CONFIG_FILES controls/Makefile" ;;
13071   "debugger/Makefile" ) CONFIG_FILES="$CONFIG_FILES debugger/Makefile" ;;
13072   "dlls/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/Makefile" ;;
13073   "dlls/advapi32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/advapi32/Makefile" ;;
13074   "dlls/avicap32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/avicap32/Makefile" ;;
13075   "dlls/avifil32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/avifil32/Makefile" ;;
13076   "dlls/comctl32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/comctl32/Makefile" ;;
13077   "dlls/commdlg/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/commdlg/Makefile" ;;
13078   "dlls/crtdll/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/crtdll/Makefile" ;;
13079   "dlls/crypt32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/crypt32/Makefile" ;;
13080   "dlls/dciman32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dciman32/Makefile" ;;
13081   "dlls/ddraw/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ddraw/Makefile" ;;
13082   "dlls/devenum/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/devenum/Makefile" ;;
13083   "dlls/dinput/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dinput/Makefile" ;;
13084   "dlls/dplay/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dplay/Makefile" ;;
13085   "dlls/dplayx/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dplayx/Makefile" ;;
13086   "dlls/dsound/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dsound/Makefile" ;;
13087   "dlls/gdi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/gdi/Makefile" ;;
13088   "dlls/glu32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/glu32/Makefile" ;;
13089   "dlls/icmp/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/icmp/Makefile" ;;
13090   "dlls/imagehlp/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/imagehlp/Makefile" ;;
13091   "dlls/imm32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/imm32/Makefile" ;;
13092   "dlls/kernel/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/kernel/Makefile" ;;
13093   "dlls/lzexpand/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/lzexpand/Makefile" ;;
13094   "dlls/mapi32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/mapi32/Makefile" ;;
13095   "dlls/mpr/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/mpr/Makefile" ;;
13096   "dlls/msacm/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msacm/Makefile" ;;
13097   "dlls/msacm/imaadp32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msacm/imaadp32/Makefile" ;;
13098   "dlls/msacm/msg711/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msacm/msg711/Makefile" ;;
13099   "dlls/msdmo/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msdmo/Makefile" ;;
13100   "dlls/msimg32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msimg32/Makefile" ;;
13101   "dlls/msisys/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msisys/Makefile" ;;
13102   "dlls/msnet32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msnet32/Makefile" ;;
13103   "dlls/msrle32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msrle32/Makefile" ;;
13104   "dlls/msvcrt/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvcrt/Makefile" ;;
13105   "dlls/msvcrt20/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvcrt20/Makefile" ;;
13106   "dlls/msvideo/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvideo/Makefile" ;;
13107   "dlls/netapi32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/netapi32/Makefile" ;;
13108   "dlls/ntdll/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ntdll/Makefile" ;;
13109   "dlls/odbc32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/odbc32/Makefile" ;;
13110   "dlls/ole32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ole32/Makefile" ;;
13111   "dlls/oleaut32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/oleaut32/Makefile" ;;
13112   "dlls/olecli/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/olecli/Makefile" ;;
13113   "dlls/oledlg/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/oledlg/Makefile" ;;
13114   "dlls/olepro32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/olepro32/Makefile" ;;
13115   "dlls/olesvr/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/olesvr/Makefile" ;;
13116   "dlls/opengl32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/opengl32/Makefile" ;;
13117   "dlls/psapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/psapi/Makefile" ;;
13118   "dlls/qcap/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/qcap/Makefile" ;;
13119   "dlls/quartz/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/quartz/Makefile" ;;
13120   "dlls/rasapi32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/rasapi32/Makefile" ;;
13121   "dlls/richedit/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/richedit/Makefile" ;;
13122   "dlls/rpcrt4/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/rpcrt4/Makefile" ;;
13123   "dlls/serialui/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/serialui/Makefile" ;;
13124   "dlls/setupapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/setupapi/Makefile" ;;
13125   "dlls/shdocvw/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shdocvw/Makefile" ;;
13126   "dlls/shell32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shell32/Makefile" ;;
13127   "dlls/shfolder/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shfolder/Makefile" ;;
13128   "dlls/shlwapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shlwapi/Makefile" ;;
13129   "dlls/sti/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/sti/Makefile" ;;
13130   "dlls/tapi32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/tapi32/Makefile" ;;
13131   "dlls/ttydrv/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ttydrv/Makefile" ;;
13132   "dlls/twain/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/twain/Makefile" ;;
13133   "dlls/url/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/url/Makefile" ;;
13134   "dlls/urlmon/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/urlmon/Makefile" ;;
13135   "dlls/user/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/user/Makefile" ;;
13136   "dlls/version/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/version/Makefile" ;;
13137   "dlls/win32s/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/win32s/Makefile" ;;
13138   "dlls/winaspi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winaspi/Makefile" ;;
13139   "dlls/winedos/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winedos/Makefile" ;;
13140   "dlls/wineps/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wineps/Makefile" ;;
13141   "dlls/wininet/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wininet/Makefile" ;;
13142   "dlls/winmm/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/Makefile" ;;
13143   "dlls/winmm/joystick/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/joystick/Makefile" ;;
13144   "dlls/winmm/mcianim/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/mcianim/Makefile" ;;
13145   "dlls/winmm/mciavi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/mciavi/Makefile" ;;
13146   "dlls/winmm/mcicda/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/mcicda/Makefile" ;;
13147   "dlls/winmm/mciseq/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/mciseq/Makefile" ;;
13148   "dlls/winmm/mciwave/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/mciwave/Makefile" ;;
13149   "dlls/winmm/midimap/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/midimap/Makefile" ;;
13150   "dlls/winmm/wavemap/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/wavemap/Makefile" ;;
13151   "dlls/winmm/winearts/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/winearts/Makefile" ;;
13152   "dlls/winmm/wineoss/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/wineoss/Makefile" ;;
13153   "dlls/winnls/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winnls/Makefile" ;;
13154   "dlls/winsock/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winsock/Makefile" ;;
13155   "dlls/winspool/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winspool/Makefile" ;;
13156   "dlls/wintrust/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wintrust/Makefile" ;;
13157   "dlls/wow32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wow32/Makefile" ;;
13158   "dlls/wsock32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wsock32/Makefile" ;;
13159   "dlls/x11drv/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/x11drv/Makefile" ;;
13160   "documentation/Makefile" ) CONFIG_FILES="$CONFIG_FILES documentation/Makefile" ;;
13161   "files/Makefile" ) CONFIG_FILES="$CONFIG_FILES files/Makefile" ;;
13162   "graphics/Makefile" ) CONFIG_FILES="$CONFIG_FILES graphics/Makefile" ;;
13163   "graphics/x11drv/Makefile" ) CONFIG_FILES="$CONFIG_FILES graphics/x11drv/Makefile" ;;
13164   "if1632/Makefile" ) CONFIG_FILES="$CONFIG_FILES if1632/Makefile" ;;
13165   "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
13166   "library/Makefile" ) CONFIG_FILES="$CONFIG_FILES library/Makefile" ;;
13167   "libtest/Makefile" ) CONFIG_FILES="$CONFIG_FILES libtest/Makefile" ;;
13168   "loader/Makefile" ) CONFIG_FILES="$CONFIG_FILES loader/Makefile" ;;
13169   "loader/ne/Makefile" ) CONFIG_FILES="$CONFIG_FILES loader/ne/Makefile" ;;
13170   "memory/Makefile" ) CONFIG_FILES="$CONFIG_FILES memory/Makefile" ;;
13171   "misc/Makefile" ) CONFIG_FILES="$CONFIG_FILES misc/Makefile" ;;
13172   "miscemu/Makefile" ) CONFIG_FILES="$CONFIG_FILES miscemu/Makefile" ;;
13173   "msdos/Makefile" ) CONFIG_FILES="$CONFIG_FILES msdos/Makefile" ;;
13174   "objects/Makefile" ) CONFIG_FILES="$CONFIG_FILES objects/Makefile" ;;
13175   "ole/Makefile" ) CONFIG_FILES="$CONFIG_FILES ole/Makefile" ;;
13176   "programs/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/Makefile" ;;
13177   "programs/avitools/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/avitools/Makefile" ;;
13178   "programs/clock/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/clock/Makefile" ;;
13179   "programs/cmdlgtst/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/cmdlgtst/Makefile" ;;
13180   "programs/control/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/control/Makefile" ;;
13181   "programs/notepad/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/notepad/Makefile" ;;
13182   "programs/osversioncheck/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/osversioncheck/Makefile" ;;
13183   "programs/progman/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/progman/Makefile" ;;
13184   "programs/regapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/regapi/Makefile" ;;
13185   "programs/regedit/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/regedit/Makefile" ;;
13186   "programs/regtest/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/regtest/Makefile" ;;
13187   "programs/uninstaller/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/uninstaller/Makefile" ;;
13188   "programs/view/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/view/Makefile" ;;
13189   "programs/wcmd/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/wcmd/Makefile" ;;
13190   "programs/wineconsole/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/wineconsole/Makefile" ;;
13191   "programs/winemine/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winemine/Makefile" ;;
13192   "programs/winetest/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winetest/Makefile" ;;
13193   "programs/winhelp/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winhelp/Makefile" ;;
13194   "programs/winver/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winver/Makefile" ;;
13195   "relay32/Makefile" ) CONFIG_FILES="$CONFIG_FILES relay32/Makefile" ;;
13196   "scheduler/Makefile" ) CONFIG_FILES="$CONFIG_FILES scheduler/Makefile" ;;
13197   "server/Makefile" ) CONFIG_FILES="$CONFIG_FILES server/Makefile" ;;
13198   "tools/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
13199   "tools/winapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/winapi/Makefile" ;;
13200   "tools/winebuild/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/winebuild/Makefile" ;;
13201   "tools/winedump/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/winedump/Makefile" ;;
13202   "tools/wmc/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/wmc/Makefile" ;;
13203   "tools/wrc/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/wrc/Makefile" ;;
13204   "tsx11/Makefile" ) CONFIG_FILES="$CONFIG_FILES tsx11/Makefile" ;;
13205   "unicode/Makefile" ) CONFIG_FILES="$CONFIG_FILES unicode/Makefile" ;;
13206   "win32/Makefile" ) CONFIG_FILES="$CONFIG_FILES win32/Makefile" ;;
13207   "windows/Makefile" ) CONFIG_FILES="$CONFIG_FILES windows/Makefile" ;;
13208   "windows/x11drv/Makefile" ) CONFIG_FILES="$CONFIG_FILES windows/x11drv/Makefile" ;;
13209   "dlls/ddraw/d3ddevice" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/d3ddevice" ;;
13210   "dlls/ddraw/dclipper" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/dclipper" ;;
13211   "dlls/ddraw/ddraw" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/ddraw" ;;
13212   "dlls/ddraw/direct3d" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/direct3d" ;;
13213   "dlls/ddraw/dpalette" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/dpalette" ;;
13214   "dlls/ddraw/dsurface" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/dsurface" ;;
13215   "dlls/dinput/joystick" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/dinput/joystick" ;;
13216   "dlls/dinput/keyboard" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/dinput/keyboard" ;;
13217   "dlls/dinput/mouse" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/dinput/mouse" ;;
13218   "dlls/gdi/enhmfdrv" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/gdi/enhmfdrv" ;;
13219   "dlls/gdi/mfdrv" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/gdi/mfdrv" ;;
13220   "dlls/gdi/win16drv" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/gdi/win16drv" ;;
13221   "dlls/kernel/messages" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/kernel/messages" ;;
13222   "dlls/kernel/tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/kernel/tests" ;;
13223   "dlls/oleaut32/tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/oleaut32/tests" ;;
13224   "dlls/user/dde" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/user/dde" ;;
13225   "dlls/user/resources" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/user/resources" ;;
13226   "dlls/user/tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/user/tests" ;;
13227   "dlls/wineps/data" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/wineps/data" ;;
13228   "include/wine" ) CONFIG_COMMANDS="$CONFIG_COMMANDS include/wine" ;;
13229   "programs/regapi/tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS programs/regapi/tests" ;;
13230   "programs/winetest/tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS programs/winetest/tests" ;;
13231   "include/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
13232   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
13233 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
13234    { (exit 1); exit 1; }; };;
13235   esac
13236 done
13237
13238 # If the user did not use the arguments to specify the items to instantiate,
13239 # then the envvar interface is used.  Set only those that are not.
13240 # We use the long form for the default assignment because of an extremely
13241 # bizarre bug on SunOS 4.1.3.
13242 if $ac_need_defaults; then
13243   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13244   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
13245   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
13246 fi
13247
13248 # Create a temporary directory, and hook for its removal unless debugging.
13249 $debug ||
13250 {
13251   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
13252   trap '{ (exit 1); exit 1; }' 1 2 13 15
13253 }
13254
13255 # Create a (secure) tmp directory for tmp files.
13256 : ${TMPDIR=/tmp}
13257 {
13258   tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
13259   test -n "$tmp" && test -d "$tmp"
13260 }  ||
13261 {
13262   tmp=$TMPDIR/cs$$-$RANDOM
13263   (umask 077 && mkdir $tmp)
13264 } ||
13265 {
13266    echo "$me: cannot create a temporary directory in $TMPDIR" >&2
13267    { (exit 1); exit 1; }
13268 }
13269
13270 _ACEOF
13271
13272 cat >>$CONFIG_STATUS <<_ACEOF
13273
13274 #
13275 # CONFIG_FILES section.
13276 #
13277
13278 # No need to generate the scripts if there are no CONFIG_FILES.
13279 # This happens for instance when ./config.status config.h
13280 if test -n "\$CONFIG_FILES"; then
13281   # Protect against being on the right side of a sed subst in config.status.
13282   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
13283    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
13284 s,@SHELL@,$SHELL,;t t
13285 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
13286 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
13287 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
13288 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
13289 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
13290 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
13291 s,@exec_prefix@,$exec_prefix,;t t
13292 s,@prefix@,$prefix,;t t
13293 s,@program_transform_name@,$program_transform_name,;t t
13294 s,@bindir@,$bindir,;t t
13295 s,@sbindir@,$sbindir,;t t
13296 s,@libexecdir@,$libexecdir,;t t
13297 s,@datadir@,$datadir,;t t
13298 s,@sysconfdir@,$sysconfdir,;t t
13299 s,@sharedstatedir@,$sharedstatedir,;t t
13300 s,@localstatedir@,$localstatedir,;t t
13301 s,@libdir@,$libdir,;t t
13302 s,@includedir@,$includedir,;t t
13303 s,@oldincludedir@,$oldincludedir,;t t
13304 s,@infodir@,$infodir,;t t
13305 s,@mandir@,$mandir,;t t
13306 s,@build_alias@,$build_alias,;t t
13307 s,@host_alias@,$host_alias,;t t
13308 s,@target_alias@,$target_alias,;t t
13309 s,@DEFS@,$DEFS,;t t
13310 s,@ECHO_C@,$ECHO_C,;t t
13311 s,@ECHO_N@,$ECHO_N,;t t
13312 s,@ECHO_T@,$ECHO_T,;t t
13313 s,@LIBS@,$LIBS,;t t
13314 s,@OPTIONS@,$OPTIONS,;t t
13315 s,@build@,$build,;t t
13316 s,@build_cpu@,$build_cpu,;t t
13317 s,@build_vendor@,$build_vendor,;t t
13318 s,@build_os@,$build_os,;t t
13319 s,@host@,$host,;t t
13320 s,@host_cpu@,$host_cpu,;t t
13321 s,@host_vendor@,$host_vendor,;t t
13322 s,@host_os@,$host_os,;t t
13323 s,@target@,$target,;t t
13324 s,@target_cpu@,$target_cpu,;t t
13325 s,@target_vendor@,$target_vendor,;t t
13326 s,@target_os@,$target_os,;t t
13327 s,@SET_MAKE@,$SET_MAKE,;t t
13328 s,@CC@,$CC,;t t
13329 s,@CFLAGS@,$CFLAGS,;t t
13330 s,@LDFLAGS@,$LDFLAGS,;t t
13331 s,@CPPFLAGS@,$CPPFLAGS,;t t
13332 s,@ac_ct_CC@,$ac_ct_CC,;t t
13333 s,@EXEEXT@,$EXEEXT,;t t
13334 s,@OBJEXT@,$OBJEXT,;t t
13335 s,@CPP@,$CPP,;t t
13336 s,@X_CFLAGS@,$X_CFLAGS,;t t
13337 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
13338 s,@X_LIBS@,$X_LIBS,;t t
13339 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
13340 s,@YACC@,$YACC,;t t
13341 s,@LEX@,$LEX,;t t
13342 s,@LEXLIB@,$LEXLIB,;t t
13343 s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
13344 s,@XYACC@,$XYACC,;t t
13345 s,@XLEX@,$XLEX,;t t
13346 s,@RANLIB@,$RANLIB,;t t
13347 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
13348 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
13349 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
13350 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
13351 s,@LN_S@,$LN_S,;t t
13352 s,@C2MAN@,$C2MAN,;t t
13353 s,@LDCONFIG@,$LDCONFIG,;t t
13354 s,@LINT@,$LINT,;t t
13355 s,@LINTFLAGS@,$LINTFLAGS,;t t
13356 s,@LDCOMBINE@,$LDCOMBINE,;t t
13357 s,@UTILLIBS@,$UTILLIBS,;t t
13358 s,@DLLIBS@,$DLLIBS,;t t
13359 s,@JPEGLIB@,$JPEGLIB,;t t
13360 s,@XLIB@,$XLIB,;t t
13361 s,@XFILES@,$XFILES,;t t
13362 s,@OPENGLFILES@,$OPENGLFILES,;t t
13363 s,@GLU32FILES@,$GLU32FILES,;t t
13364 s,@CURSESLIBS@,$CURSESLIBS,;t t
13365 s,@CUPSLIBS@,$CUPSLIBS,;t t
13366 s,@sane_devel@,$sane_devel,;t t
13367 s,@SANELIBS@,$SANELIBS,;t t
13368 s,@SANEINCL@,$SANEINCL,;t t
13369 s,@ft_devel@,$ft_devel,;t t
13370 s,@ft_devel2@,$ft_devel2,;t t
13371 s,@FREETYPEINCL@,$FREETYPEINCL,;t t
13372 s,@ARTSCCONFIG@,$ARTSCCONFIG,;t t
13373 s,@ARTSLIBS@,$ARTSLIBS,;t t
13374 s,@ARTSINCL@,$ARTSINCL,;t t
13375 s,@DLLWRAP@,$DLLWRAP,;t t
13376 s,@DLLFLAGS@,$DLLFLAGS,;t t
13377 s,@DLLEXT@,$DLLEXT,;t t
13378 s,@LDSHARED@,$LDSHARED,;t t
13379 s,@LDDLLFLAGS@,$LDDLLFLAGS,;t t
13380 s,@LIBEXT@,$LIBEXT,;t t
13381 s,@LDPATH@,$LDPATH,;t t
13382 s,@ALLOCA@,$ALLOCA,;t t
13383 /@MAKE_RULES@/r $MAKE_RULES
13384 s,@MAKE_RULES@,,;t t
13385 /@MAKE_DLL_RULES@/r $MAKE_DLL_RULES
13386 s,@MAKE_DLL_RULES@,,;t t
13387 /@MAKE_PROG_RULES@/r $MAKE_PROG_RULES
13388 s,@MAKE_PROG_RULES@,,;t t
13389 CEOF
13390
13391 _ACEOF
13392
13393   cat >>$CONFIG_STATUS <<\_ACEOF
13394   # Split the substitutions into bite-sized pieces for seds with
13395   # small command number limits, like on Digital OSF/1 and HP-UX.
13396   ac_max_sed_lines=48
13397   ac_sed_frag=1 # Number of current file.
13398   ac_beg=1 # First line for current file.
13399   ac_end=$ac_max_sed_lines # Line after last line for current file.
13400   ac_more_lines=:
13401   ac_sed_cmds=
13402   while $ac_more_lines; do
13403     if test $ac_beg -gt 1; then
13404       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
13405     else
13406       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
13407     fi
13408     if test ! -s $tmp/subs.frag; then
13409       ac_more_lines=false
13410     else
13411       # The purpose of the label and of the branching condition is to
13412       # speed up the sed processing (if there are no `@' at all, there
13413       # is no need to browse any of the substitutions).
13414       # These are the two extra sed commands mentioned above.
13415       (echo ':t
13416   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
13417       if test -z "$ac_sed_cmds"; then
13418         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
13419       else
13420         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
13421       fi
13422       ac_sed_frag=`expr $ac_sed_frag + 1`
13423       ac_beg=$ac_end
13424       ac_end=`expr $ac_end + $ac_max_sed_lines`
13425     fi
13426   done
13427   if test -z "$ac_sed_cmds"; then
13428     ac_sed_cmds=cat
13429   fi
13430 fi # test -n "$CONFIG_FILES"
13431
13432 _ACEOF
13433 cat >>$CONFIG_STATUS <<\_ACEOF
13434 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
13435   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
13436   case $ac_file in
13437   - | *:- | *:-:* ) # input from stdin
13438         cat >$tmp/stdin
13439         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13440         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13441   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13442         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13443   * )   ac_file_in=$ac_file.in ;;
13444   esac
13445
13446   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
13447   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
13448 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13449          X"$ac_file" : 'X\(//\)[^/]' \| \
13450          X"$ac_file" : 'X\(//\)$' \| \
13451          X"$ac_file" : 'X\(/\)' \| \
13452          .     : '\(.\)' 2>/dev/null ||
13453 echo X"$ac_file" |
13454     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13455           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13456           /^X\(\/\/\)$/{ s//\1/; q; }
13457           /^X\(\/\).*/{ s//\1/; q; }
13458           s/.*/./; q'`
13459   { case "$ac_dir" in
13460   [\\/]* | ?:[\\/]* ) as_incr_dir=;;
13461   *)                      as_incr_dir=.;;
13462 esac
13463 as_dummy="$ac_dir"
13464 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
13465   case $as_mkdir_dir in
13466     # Skip DOS drivespec
13467     ?:) as_incr_dir=$as_mkdir_dir ;;
13468     *)
13469       as_incr_dir=$as_incr_dir/$as_mkdir_dir
13470       test -d "$as_incr_dir" ||
13471         mkdir "$as_incr_dir" ||
13472         { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
13473 echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
13474    { (exit 1); exit 1; }; }
13475     ;;
13476   esac
13477 done; }
13478
13479   ac_builddir=.
13480
13481 if test "$ac_dir" != .; then
13482   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
13483   # A "../" for each directory in $ac_dir_suffix.
13484   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
13485 else
13486   ac_dir_suffix= ac_top_builddir=
13487 fi
13488
13489 case $srcdir in
13490   .)  # No --srcdir option.  We are building in place.
13491     ac_srcdir=.
13492     if test -z "$ac_top_builddir"; then
13493        ac_top_srcdir=.
13494     else
13495        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
13496     fi ;;
13497   [\\/]* | ?:[\\/]* )  # Absolute path.
13498     ac_srcdir=$srcdir$ac_dir_suffix;
13499     ac_top_srcdir=$srcdir ;;
13500   *) # Relative path.
13501     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
13502     ac_top_srcdir=$ac_top_builddir$srcdir ;;
13503 esac
13504 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
13505 # absolute.
13506 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
13507 ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
13508 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
13509 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
13510
13511
13512   case $INSTALL in
13513   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
13514   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
13515   esac
13516
13517   if test x"$ac_file" != x-; then
13518     { echo "$as_me:$LINENO: creating $ac_file" >&5
13519 echo "$as_me: creating $ac_file" >&6;}
13520     rm -f "$ac_file"
13521   fi
13522   # Let's still pretend it is `configure' which instantiates (i.e., don't
13523   # use $as_me), people would be surprised to read:
13524   #    /* config.h.  Generated by config.status.  */
13525   if test x"$ac_file" = x-; then
13526     configure_input=
13527   else
13528     configure_input="$ac_file.  "
13529   fi
13530   configure_input=$configure_input"Generated from `echo $ac_file_in |
13531                                      sed 's,.*/,,'` by configure."
13532
13533   # First look for the input files in the build tree, otherwise in the
13534   # src tree.
13535   ac_file_inputs=`IFS=:
13536     for f in $ac_file_in; do
13537       case $f in
13538       -) echo $tmp/stdin ;;
13539       [\\/$]*)
13540          # Absolute (can't be DOS-style, as IFS=:)
13541          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13542 echo "$as_me: error: cannot find input file: $f" >&2;}
13543    { (exit 1); exit 1; }; }
13544          echo $f;;
13545       *) # Relative
13546          if test -f "$f"; then
13547            # Build tree
13548            echo $f
13549          elif test -f "$srcdir/$f"; then
13550            # Source tree
13551            echo $srcdir/$f
13552          else
13553            # /dev/null tree
13554            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13555 echo "$as_me: error: cannot find input file: $f" >&2;}
13556    { (exit 1); exit 1; }; }
13557          fi;;
13558       esac
13559     done` || { (exit 1); exit 1; }
13560 _ACEOF
13561 cat >>$CONFIG_STATUS <<_ACEOF
13562   sed "$ac_vpsub
13563 $extrasub
13564 _ACEOF
13565 cat >>$CONFIG_STATUS <<\_ACEOF
13566 :t
13567 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13568 s,@configure_input@,$configure_input,;t t
13569 s,@srcdir@,$ac_srcdir,;t t
13570 s,@abs_srcdir@,$ac_abs_srcdir,;t t
13571 s,@top_srcdir@,$ac_top_srcdir,;t t
13572 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
13573 s,@builddir@,$ac_builddir,;t t
13574 s,@abs_builddir@,$ac_abs_builddir,;t t
13575 s,@top_builddir@,$ac_top_builddir,;t t
13576 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
13577 s,@INSTALL@,$ac_INSTALL,;t t
13578 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
13579   rm -f $tmp/stdin
13580   if test x"$ac_file" != x-; then
13581     mv $tmp/out $ac_file
13582   else
13583     cat $tmp/out
13584     rm -f $tmp/out
13585   fi
13586
13587 done
13588 _ACEOF
13589 cat >>$CONFIG_STATUS <<\_ACEOF
13590
13591 #
13592 # CONFIG_HEADER section.
13593 #
13594
13595 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
13596 # NAME is the cpp macro being defined and VALUE is the value it is being given.
13597 #
13598 # ac_d sets the value in "#define NAME VALUE" lines.
13599 ac_dA='s,^\([   ]*\)#\([        ]*define[       ][      ]*\)'
13600 ac_dB='[        ].*$,\1#\2'
13601 ac_dC=' '
13602 ac_dD=',;t'
13603 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
13604 ac_uA='s,^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
13605 ac_uB='$,\1#\2define\3'
13606 ac_uC=' '
13607 ac_uD=',;t'
13608
13609 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
13610   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
13611   case $ac_file in
13612   - | *:- | *:-:* ) # input from stdin
13613         cat >$tmp/stdin
13614         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13615         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13616   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13617         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13618   * )   ac_file_in=$ac_file.in ;;
13619   esac
13620
13621   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
13622 echo "$as_me: creating $ac_file" >&6;}
13623
13624   # First look for the input files in the build tree, otherwise in the
13625   # src tree.
13626   ac_file_inputs=`IFS=:
13627     for f in $ac_file_in; do
13628       case $f in
13629       -) echo $tmp/stdin ;;
13630       [\\/$]*)
13631          # Absolute (can't be DOS-style, as IFS=:)
13632          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13633 echo "$as_me: error: cannot find input file: $f" >&2;}
13634    { (exit 1); exit 1; }; }
13635          echo $f;;
13636       *) # Relative
13637          if test -f "$f"; then
13638            # Build tree
13639            echo $f
13640          elif test -f "$srcdir/$f"; then
13641            # Source tree
13642            echo $srcdir/$f
13643          else
13644            # /dev/null tree
13645            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13646 echo "$as_me: error: cannot find input file: $f" >&2;}
13647    { (exit 1); exit 1; }; }
13648          fi;;
13649       esac
13650     done` || { (exit 1); exit 1; }
13651   # Remove the trailing spaces.
13652   sed 's/[      ]*$//' $ac_file_inputs >$tmp/in
13653
13654 _ACEOF
13655
13656 # Transform confdefs.h into two sed scripts, `conftest.defines' and
13657 # `conftest.undefs', that substitutes the proper values into
13658 # config.h.in to produce config.h.  The first handles `#define'
13659 # templates, and the second `#undef' templates.
13660 # And first: Protect against being on the right side of a sed subst in
13661 # config.status.  Protect against being in an unquoted here document
13662 # in config.status.
13663 rm -f conftest.defines conftest.undefs
13664 # Using a here document instead of a string reduces the quoting nightmare.
13665 # Putting comments in sed scripts is not portable.
13666 #
13667 # `end' is used to avoid that the second main sed command (meant for
13668 # 0-ary CPP macros) applies to n-ary macro definitions.
13669 # See the Autoconf documentation for `clear'.
13670 cat >confdef2sed.sed <<\_ACEOF
13671 s/[\\&,]/\\&/g
13672 s,[\\$`],\\&,g
13673 t clear
13674 : clear
13675 s,^[    ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
13676 t end
13677 s,^[    ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
13678 : end
13679 _ACEOF
13680 # If some macros were called several times there might be several times
13681 # the same #defines, which is useless.  Nevertheless, we may not want to
13682 # sort them, since we want the *last* AC-DEFINE to be honored.
13683 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
13684 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
13685 rm -f confdef2sed.sed
13686
13687 # This sed command replaces #undef with comments.  This is necessary, for
13688 # example, in the case of _POSIX_SOURCE, which is predefined and required
13689 # on some systems where configure will not decide to define it.
13690 cat >>conftest.undefs <<\_ACEOF
13691 s,^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
13692 _ACEOF
13693
13694 # Break up conftest.defines because some shells have a limit on the size
13695 # of here documents, and old seds have small limits too (100 cmds).
13696 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
13697 echo '  if egrep "^[    ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
13698 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
13699 echo '  :' >>$CONFIG_STATUS
13700 rm -f conftest.tail
13701 while grep . conftest.defines >/dev/null
13702 do
13703   # Write a limited-size here document to $tmp/defines.sed.
13704   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
13705   # Speed up: don't consider the non `#define' lines.
13706   echo '/^[     ]*#[    ]*define/!b' >>$CONFIG_STATUS
13707   # Work around the forget-to-reset-the-flag bug.
13708   echo 't clr' >>$CONFIG_STATUS
13709   echo ': clr' >>$CONFIG_STATUS
13710   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
13711   echo 'CEOF
13712   sed -f $tmp/defines.sed $tmp/in >$tmp/out
13713   rm -f $tmp/in
13714   mv $tmp/out $tmp/in
13715 ' >>$CONFIG_STATUS
13716   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
13717   rm -f conftest.defines
13718   mv conftest.tail conftest.defines
13719 done
13720 rm -f conftest.defines
13721 echo '  fi # egrep' >>$CONFIG_STATUS
13722 echo >>$CONFIG_STATUS
13723
13724 # Break up conftest.undefs because some shells have a limit on the size
13725 # of here documents, and old seds have small limits too (100 cmds).
13726 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
13727 rm -f conftest.tail
13728 while grep . conftest.undefs >/dev/null
13729 do
13730   # Write a limited-size here document to $tmp/undefs.sed.
13731   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
13732   # Speed up: don't consider the non `#undef'
13733   echo '/^[     ]*#[    ]*undef/!b' >>$CONFIG_STATUS
13734   # Work around the forget-to-reset-the-flag bug.
13735   echo 't clr' >>$CONFIG_STATUS
13736   echo ': clr' >>$CONFIG_STATUS
13737   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
13738   echo 'CEOF
13739   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
13740   rm -f $tmp/in
13741   mv $tmp/out $tmp/in
13742 ' >>$CONFIG_STATUS
13743   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
13744   rm -f conftest.undefs
13745   mv conftest.tail conftest.undefs
13746 done
13747 rm -f conftest.undefs
13748
13749 cat >>$CONFIG_STATUS <<\_ACEOF
13750   # Let's still pretend it is `configure' which instantiates (i.e., don't
13751   # use $as_me), people would be surprised to read:
13752   #    /* config.h.  Generated by config.status.  */
13753   if test x"$ac_file" = x-; then
13754     echo "/* Generated by configure.  */" >$tmp/config.h
13755   else
13756     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
13757   fi
13758   cat $tmp/in >>$tmp/config.h
13759   rm -f $tmp/in
13760   if test x"$ac_file" != x-; then
13761     if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
13762       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
13763 echo "$as_me: $ac_file is unchanged" >&6;}
13764     else
13765       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
13766 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13767          X"$ac_file" : 'X\(//\)[^/]' \| \
13768          X"$ac_file" : 'X\(//\)$' \| \
13769          X"$ac_file" : 'X\(/\)' \| \
13770          .     : '\(.\)' 2>/dev/null ||
13771 echo X"$ac_file" |
13772     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13773           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13774           /^X\(\/\/\)$/{ s//\1/; q; }
13775           /^X\(\/\).*/{ s//\1/; q; }
13776           s/.*/./; q'`
13777       { case "$ac_dir" in
13778   [\\/]* | ?:[\\/]* ) as_incr_dir=;;
13779   *)                      as_incr_dir=.;;
13780 esac
13781 as_dummy="$ac_dir"
13782 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
13783   case $as_mkdir_dir in
13784     # Skip DOS drivespec
13785     ?:) as_incr_dir=$as_mkdir_dir ;;
13786     *)
13787       as_incr_dir=$as_incr_dir/$as_mkdir_dir
13788       test -d "$as_incr_dir" ||
13789         mkdir "$as_incr_dir" ||
13790         { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
13791 echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
13792    { (exit 1); exit 1; }; }
13793     ;;
13794   esac
13795 done; }
13796
13797       rm -f $ac_file
13798       mv $tmp/config.h $ac_file
13799     fi
13800   else
13801     cat $tmp/config.h
13802     rm -f $tmp/config.h
13803   fi
13804 done
13805 _ACEOF
13806 cat >>$CONFIG_STATUS <<\_ACEOF
13807
13808 #
13809 # CONFIG_COMMANDS section.
13810 #
13811 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
13812   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
13813   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
13814   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
13815 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13816          X"$ac_dest" : 'X\(//\)[^/]' \| \
13817          X"$ac_dest" : 'X\(//\)$' \| \
13818          X"$ac_dest" : 'X\(/\)' \| \
13819          .     : '\(.\)' 2>/dev/null ||
13820 echo X"$ac_dest" |
13821     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13822           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13823           /^X\(\/\/\)$/{ s//\1/; q; }
13824           /^X\(\/\).*/{ s//\1/; q; }
13825           s/.*/./; q'`
13826   ac_builddir=.
13827
13828 if test "$ac_dir" != .; then
13829   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
13830   # A "../" for each directory in $ac_dir_suffix.
13831   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
13832 else
13833   ac_dir_suffix= ac_top_builddir=
13834 fi
13835
13836 case $srcdir in
13837   .)  # No --srcdir option.  We are building in place.
13838     ac_srcdir=.
13839     if test -z "$ac_top_builddir"; then
13840        ac_top_srcdir=.
13841     else
13842        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
13843     fi ;;
13844   [\\/]* | ?:[\\/]* )  # Absolute path.
13845     ac_srcdir=$srcdir$ac_dir_suffix;
13846     ac_top_srcdir=$srcdir ;;
13847   *) # Relative path.
13848     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
13849     ac_top_srcdir=$ac_top_builddir$srcdir ;;
13850 esac
13851 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
13852 # absolute.
13853 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
13854 ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
13855 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
13856 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
13857
13858
13859   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
13860 echo "$as_me: executing $ac_dest commands" >&6;}
13861   case $ac_dest in
13862     dlls/ddraw/d3ddevice ) test -d "dlls/ddraw/d3ddevice" || ({ echo "$as_me:$LINENO: creating dlls/ddraw/d3ddevice" >&5
13863 echo "$as_me: creating dlls/ddraw/d3ddevice" >&6;} && mkdir "dlls/ddraw/d3ddevice") ;;
13864     dlls/ddraw/dclipper ) test -d "dlls/ddraw/dclipper" || ({ echo "$as_me:$LINENO: creating dlls/ddraw/dclipper" >&5
13865 echo "$as_me: creating dlls/ddraw/dclipper" >&6;} && mkdir "dlls/ddraw/dclipper") ;;
13866     dlls/ddraw/ddraw ) test -d "dlls/ddraw/ddraw" || ({ echo "$as_me:$LINENO: creating dlls/ddraw/ddraw" >&5
13867 echo "$as_me: creating dlls/ddraw/ddraw" >&6;} && mkdir "dlls/ddraw/ddraw") ;;
13868     dlls/ddraw/direct3d ) test -d "dlls/ddraw/direct3d" || ({ echo "$as_me:$LINENO: creating dlls/ddraw/direct3d" >&5
13869 echo "$as_me: creating dlls/ddraw/direct3d" >&6;} && mkdir "dlls/ddraw/direct3d") ;;
13870     dlls/ddraw/dpalette ) test -d "dlls/ddraw/dpalette" || ({ echo "$as_me:$LINENO: creating dlls/ddraw/dpalette" >&5
13871 echo "$as_me: creating dlls/ddraw/dpalette" >&6;} && mkdir "dlls/ddraw/dpalette") ;;
13872     dlls/ddraw/dsurface ) test -d "dlls/ddraw/dsurface" || ({ echo "$as_me:$LINENO: creating dlls/ddraw/dsurface" >&5
13873 echo "$as_me: creating dlls/ddraw/dsurface" >&6;} && mkdir "dlls/ddraw/dsurface") ;;
13874     dlls/dinput/joystick ) test -d "dlls/dinput/joystick" || ({ echo "$as_me:$LINENO: creating dlls/dinput/joystick" >&5
13875 echo "$as_me: creating dlls/dinput/joystick" >&6;} && mkdir "dlls/dinput/joystick") ;;
13876     dlls/dinput/keyboard ) test -d "dlls/dinput/keyboard" || ({ echo "$as_me:$LINENO: creating dlls/dinput/keyboard" >&5
13877 echo "$as_me: creating dlls/dinput/keyboard" >&6;} && mkdir "dlls/dinput/keyboard") ;;
13878     dlls/dinput/mouse ) test -d "dlls/dinput/mouse" || ({ echo "$as_me:$LINENO: creating dlls/dinput/mouse" >&5
13879 echo "$as_me: creating dlls/dinput/mouse" >&6;} && mkdir "dlls/dinput/mouse") ;;
13880     dlls/gdi/enhmfdrv ) test -d "dlls/gdi/enhmfdrv" || ({ echo "$as_me:$LINENO: creating dlls/gdi/enhmfdrv" >&5
13881 echo "$as_me: creating dlls/gdi/enhmfdrv" >&6;} && mkdir "dlls/gdi/enhmfdrv") ;;
13882     dlls/gdi/mfdrv ) test -d "dlls/gdi/mfdrv" || ({ echo "$as_me:$LINENO: creating dlls/gdi/mfdrv" >&5
13883 echo "$as_me: creating dlls/gdi/mfdrv" >&6;} && mkdir "dlls/gdi/mfdrv") ;;
13884     dlls/gdi/win16drv ) test -d "dlls/gdi/win16drv" || ({ echo "$as_me:$LINENO: creating dlls/gdi/win16drv" >&5
13885 echo "$as_me: creating dlls/gdi/win16drv" >&6;} && mkdir "dlls/gdi/win16drv") ;;
13886     dlls/kernel/messages ) test -d "dlls/kernel/messages" || ({ echo "$as_me:$LINENO: creating dlls/kernel/messages" >&5
13887 echo "$as_me: creating dlls/kernel/messages" >&6;} && mkdir "dlls/kernel/messages") ;;
13888     dlls/kernel/tests ) test -d "dlls/kernel/tests" || ({ echo "$as_me:$LINENO: creating dlls/kernel/tests" >&5
13889 echo "$as_me: creating dlls/kernel/tests" >&6;} && mkdir "dlls/kernel/tests") ;;
13890     dlls/oleaut32/tests ) test -d "dlls/oleaut32/tests" || ({ echo "$as_me:$LINENO: creating dlls/oleaut32/tests" >&5
13891 echo "$as_me: creating dlls/oleaut32/tests" >&6;} && mkdir "dlls/oleaut32/tests") ;;
13892     dlls/user/dde ) test -d "dlls/user/dde" || ({ echo "$as_me:$LINENO: creating dlls/user/dde" >&5
13893 echo "$as_me: creating dlls/user/dde" >&6;} && mkdir "dlls/user/dde") ;;
13894     dlls/user/resources ) test -d "dlls/user/resources" || ({ echo "$as_me:$LINENO: creating dlls/user/resources" >&5
13895 echo "$as_me: creating dlls/user/resources" >&6;} && mkdir "dlls/user/resources") ;;
13896     dlls/user/tests ) test -d "dlls/user/tests" || ({ echo "$as_me:$LINENO: creating dlls/user/tests" >&5
13897 echo "$as_me: creating dlls/user/tests" >&6;} && mkdir "dlls/user/tests") ;;
13898     dlls/wineps/data ) test -d "dlls/wineps/data" || ({ echo "$as_me:$LINENO: creating dlls/wineps/data" >&5
13899 echo "$as_me: creating dlls/wineps/data" >&6;} && mkdir "dlls/wineps/data") ;;
13900     include/wine ) test -d "include/wine" || ({ echo "$as_me:$LINENO: creating include/wine" >&5
13901 echo "$as_me: creating include/wine" >&6;} && mkdir "include/wine") ;;
13902     programs/regapi/tests ) test -d "programs/regapi/tests" || ({ echo "$as_me:$LINENO: creating programs/regapi/tests" >&5
13903 echo "$as_me: creating programs/regapi/tests" >&6;} && mkdir "programs/regapi/tests") ;;
13904     programs/winetest/tests ) test -d "programs/winetest/tests" || ({ echo "$as_me:$LINENO: creating programs/winetest/tests" >&5
13905 echo "$as_me: creating programs/winetest/tests" >&6;} && mkdir "programs/winetest/tests") ;;
13906   esac
13907 done
13908 _ACEOF
13909
13910 cat >>$CONFIG_STATUS <<\_ACEOF
13911
13912 { (exit 0); exit 0; }
13913 _ACEOF
13914 chmod +x $CONFIG_STATUS
13915 ac_clean_files=$ac_clean_files_save
13916
13917
13918 # configure is writing to config.log, and then calls config.status.
13919 # config.status does its own redirection, appending to config.log.
13920 # Unfortunately, on DOS this fails, as config.log is still kept open
13921 # by configure, so config.status won't be able to write to it; its
13922 # output is simply discarded.  So we exec the FD to /dev/null,
13923 # effectively closing config.log, so it can be properly (re)opened and
13924 # appended to by config.status.  When coming back to configure, we
13925 # need to make the FD available again.
13926 if test "$no_create" != yes; then
13927   ac_cs_success=:
13928   exec 5>/dev/null
13929   $SHELL $CONFIG_STATUS || ac_cs_success=false
13930   exec 5>>config.log
13931   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13932   # would make configure fail if this is the last instruction.
13933   $ac_cs_success || { (exit 1); exit 1; }
13934 fi
13935
13936
13937 if test "$have_x" = "no"
13938 then
13939   echo
13940   echo "*** Warning: X development files not found. Wine will be built without"
13941   echo "*** X support, which currently does not work, and would probably not be"
13942   echo "*** what you want anyway. You will need to install devel packages of"
13943   echo "*** Xlib/Xfree86 at the very least."
13944 fi
13945
13946 if test "$ac_cv_lib_ncurses_resizeterm" = "no" -a "$ac_cv_lib_ncurses_waddch" = "yes"
13947 then
13948   echo
13949   echo "*** Warning: resizeterm not found in ncurses. Wine will be built without"
13950   echo "*** terminal resize support. Consider upgrading ncurses."
13951 fi
13952
13953 if test "$wine_cv_libc_reentrant" = "no"
13954 then
13955   echo
13956   echo "*** Warning: non-reentrant libc detected. Wine will be built without"
13957   echo "*** threading support. Consider upgrading libc to a more recent"
13958   echo "*** reentrant version of libc."
13959 fi
13960
13961 if test "$wine_cv_opengl_version_OK" = "no"
13962 then
13963   echo
13964   echo "*** Warning: old Mesa headers detected. Wine will be built without Direct3D"
13965   echo "*** support. Consider upgrading your Mesa libraries (http://www.mesa3d.org/)."
13966 fi
13967
13968 if test "$wine_cv_opengl_version_threadsafe" = "yes" -a "x$enable_opengl" = "x"
13969 then
13970   echo
13971   echo "*** Warning: the OpenGL version you have installed relies on libpthread for"
13972   echo "*** thread-safety. To prevent crashes, OpenGL support has been removed."
13973   echo "*** A fix for glibc 2.1.3 that seems to work is included in this version of Wine,"
13974   echo "*** start configure with '--enable-opengl' to force OpenGL support."
13975 fi
13976
13977 if test "$wine_cv_opengl_version_threadsafe" = "yes" -a "x$enable_opengl" = "xyes"
13978 then
13979   echo
13980   echo "*** Warning: you explicitly linked in a thread-safe OpenGL version. If you"
13981   echo "*** experience unusual crashes on DirectDraw games, try first to disable OpenGL"
13982   echo "*** support before reporting bugs."
13983 fi
13984
13985 if test "$wine_cv_warn_cups_h" = "yes"
13986 then
13987   echo
13988   echo "*** Note: You have cups runtime libraries, but no development"
13989   echo "*** libraries. Install the cups-devel package or whichever package"
13990   echo "*** contains cups.h to enable CUPS support in Wine."
13991 fi
13992
13993 if test "$wine_cv_msg_freetype" = "yes"
13994 then
13995   echo
13996   echo "*** Note: Your system appears to have the FreeType 2 runtime libraries"
13997   echo "*** installed, but 'freetype-config' is not in your PATH. Install the"
13998   echo "*** freetype-devel package (or its equivalent on your distribution) to"
13999   echo "*** enable Wine to use TrueType fonts."
14000 fi
14001
14002 echo
14003 echo "Configure finished.  Do 'make depend && make' to compile Wine."
14004 echo
14005