Release 20031016.
[wine] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.57 for Wine 20031016.
4 #
5 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
6 # Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization.  ##
11 ## --------------------- ##
12
13 # Be Bourne compatible
14 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
15   emulate sh
16   NULLCMD=:
17   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
18   # is contrary to our usage.  Disable this feature.
19   alias -g '${1+"$@"}'='"$@"'
20 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
21   set -o posix
22 fi
23
24 # Support unset when possible.
25 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
26   as_unset=unset
27 else
28   as_unset=false
29 fi
30
31
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
34 PS1='$ '
35 PS2='> '
36 PS4='+ '
37
38 # NLS nuisances.
39 for as_var in \
40   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42   LC_TELEPHONE LC_TIME
43 do
44   if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
45     eval $as_var=C; export $as_var
46   else
47     $as_unset $as_var
48   fi
49 done
50
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
53   as_expr=expr
54 else
55   as_expr=false
56 fi
57
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59   as_basename=basename
60 else
61   as_basename=false
62 fi
63
64
65 # Name of the executable.
66 as_me=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68          X"$0" : 'X\(//\)$' \| \
69          X"$0" : 'X\(/\)$' \| \
70          .     : '\(.\)' 2>/dev/null ||
71 echo X/"$0" |
72     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73           /^X\/\(\/\/\)$/{ s//\1/; q; }
74           /^X\/\(\/\).*/{ s//\1/; q; }
75           s/.*/./; q'`
76
77
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
85
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88   echo "#! /bin/sh" >conf$$.sh
89   echo  "exit 0"   >>conf$$.sh
90   chmod +x conf$$.sh
91   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92     PATH_SEPARATOR=';'
93   else
94     PATH_SEPARATOR=:
95   fi
96   rm -f conf$$.sh
97 fi
98
99
100   as_lineno_1=$LINENO
101   as_lineno_2=$LINENO
102   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103   test "x$as_lineno_1" != "x$as_lineno_2" &&
104   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
105   # Find who we are.  Look in the path if we contain no path at all
106   # relative or not.
107   case $0 in
108     *[\\/]* ) as_myself=$0 ;;
109     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110 for as_dir in $PATH
111 do
112   IFS=$as_save_IFS
113   test -z "$as_dir" && as_dir=.
114   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115 done
116
117        ;;
118   esac
119   # We did not find ourselves, most probably we were run as `sh COMMAND'
120   # in which case we are not to be found in the path.
121   if test "x$as_myself" = x; then
122     as_myself=$0
123   fi
124   if test ! -f "$as_myself"; then
125     { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126    { (exit 1); exit 1; }; }
127   fi
128   case $CONFIG_SHELL in
129   '')
130     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132 do
133   IFS=$as_save_IFS
134   test -z "$as_dir" && as_dir=.
135   for as_base in sh bash ksh sh5; do
136          case $as_dir in
137          /*)
138            if ("$as_dir/$as_base" -c '
139   as_lineno_1=$LINENO
140   as_lineno_2=$LINENO
141   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142   test "x$as_lineno_1" != "x$as_lineno_2" &&
143   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
144              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146              CONFIG_SHELL=$as_dir/$as_base
147              export CONFIG_SHELL
148              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149            fi;;
150          esac
151        done
152 done
153 ;;
154   esac
155
156   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157   # uniformly replaced by the line number.  The first 'sed' inserts a
158   # line-number line before each line; the second 'sed' does the real
159   # work.  The second script uses 'N' to pair each line-number line
160   # with the numbered line, and appends trailing '-' during
161   # substitution so that $LINENO is not a special case at line end.
162   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
164   sed '=' <$as_myself |
165     sed '
166       N
167       s,$,-,
168       : loop
169       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170       t loop
171       s,-$,,
172       s,^['$as_cr_digits']*\n,,
173     ' >$as_me.lineno &&
174   chmod +x $as_me.lineno ||
175     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176    { (exit 1); exit 1; }; }
177
178   # Don't try to exec as it changes $[0], causing all sort of problems
179   # (the dirname of $[0] is not the place where we might find the
180   # original and so on.  Autoconf is especially sensible to this).
181   . ./$as_me.lineno
182   # Exit status is that of the last command.
183   exit
184 }
185
186
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188   *c*,-n*) ECHO_N= ECHO_C='
189 ' ECHO_T='      ' ;;
190   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
192 esac
193
194 if expr a : '\(a\)' >/dev/null 2>&1; then
195   as_expr=expr
196 else
197   as_expr=false
198 fi
199
200 rm -f conf$$ conf$$.exe conf$$.file
201 echo >conf$$.file
202 if ln -s conf$$.file conf$$ 2>/dev/null; then
203   # We could just check for DJGPP; but this test a) works b) is more generic
204   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205   if test -f conf$$.exe; then
206     # Don't use ln at all; we don't have any links
207     as_ln_s='cp -p'
208   else
209     as_ln_s='ln -s'
210   fi
211 elif ln conf$$.file conf$$ 2>/dev/null; then
212   as_ln_s=ln
213 else
214   as_ln_s='cp -p'
215 fi
216 rm -f conf$$ conf$$.exe conf$$.file
217
218 if mkdir -p . 2>/dev/null; then
219   as_mkdir_p=:
220 else
221   as_mkdir_p=false
222 fi
223
224 as_executable_p="test -f"
225
226 # Sed expression to map a string onto a valid CPP name.
227 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
228
229 # Sed expression to map a string onto a valid variable name.
230 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
231
232
233 # IFS
234 # We need space, tab and new line, in precisely that order.
235 as_nl='
236 '
237 IFS="   $as_nl"
238
239 # CDPATH.
240 $as_unset CDPATH
241
242
243 # Name of the host.
244 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
245 # so uname gets run too.
246 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
247
248 exec 6>&1
249
250 #
251 # Initializations.
252 #
253 ac_default_prefix=/usr/local
254 ac_config_libobj_dir=.
255 cross_compiling=no
256 subdirs=
257 MFLAGS=
258 MAKEFLAGS=
259 SHELL=${CONFIG_SHELL-/bin/sh}
260
261 # Maximum number of lines to put in a shell here document.
262 # This variable seems obsolete.  It should probably be removed, and
263 # only ac_max_sed_lines should be used.
264 : ${ac_max_here_lines=38}
265
266 # Identity of this package.
267 PACKAGE_NAME='Wine'
268 PACKAGE_TARNAME='wine'
269 PACKAGE_VERSION='20031016'
270 PACKAGE_STRING='Wine 20031016'
271 PACKAGE_BUGREPORT=''
272
273 ac_unique_file="server/atom.c"
274 # Factoring default headers for most tests.
275 ac_includes_default="\
276 #include <stdio.h>
277 #if HAVE_SYS_TYPES_H
278 # include <sys/types.h>
279 #endif
280 #if HAVE_SYS_STAT_H
281 # include <sys/stat.h>
282 #endif
283 #if STDC_HEADERS
284 # include <stdlib.h>
285 # include <stddef.h>
286 #else
287 # if HAVE_STDLIB_H
288 #  include <stdlib.h>
289 # endif
290 #endif
291 #if HAVE_STRING_H
292 # if !STDC_HEADERS && HAVE_MEMORY_H
293 #  include <memory.h>
294 # endif
295 # include <string.h>
296 #endif
297 #if HAVE_STRINGS_H
298 # include <strings.h>
299 #endif
300 #if HAVE_INTTYPES_H
301 # include <inttypes.h>
302 #else
303 # if HAVE_STDINT_H
304 #  include <stdint.h>
305 # endif
306 #endif
307 #if HAVE_UNISTD_H
308 # include <unistd.h>
309 #endif"
310
311 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS WIN16_FILES WIN16_INSTALL LIBPTHREAD build build_cpu build_vendor build_os host host_cpu host_vendor host_os SET_MAKE CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CPP TOOLSDIR X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS YACC LEX LEXLIB LEX_OUTPUT_ROOT XYACC XLEX AS ac_ct_AS LD ac_ct_LD AR ac_ct_AR RANLIB ac_ct_RANLIB STRIP ac_ct_STRIP WINDRES ac_ct_WINDRES LN_S LN LDCONFIG INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA LINT LINTFLAGS DB2HTML DB2PDF DB2PS DB2TXT JPEGLIB EGREP GIFLIB XLIB XFILES OPENGLFILES GLU32FILES OPENGL_LIBS NASLIBS CURSESLIBS sane_devel SANELIBS SANEINCL ICULIBS ft_devel ft_devel2 FREETYPEINCL ARTSCCONFIG ARTSLIBS ARTSINCL ALSALIBS AUDIOIOLIBS EXTRACFLAGS DLLEXT DLLFLAGS DLLIBS LDSHARED LDDLL LIBEXT IMPLIBEXT DLLTOOL ac_ct_DLLTOOL DLLWRAP ac_ct_DLLWRAP LDEXECFLAGS CROSSTEST CROSSCC CROSSWINDRES LDPATH CRTLIBS LDD ALLOCA LIBOBJS LTLIBOBJS'
312 ac_subst_files='MAKE_RULES MAKE_DLL_RULES MAKE_TEST_RULES MAKE_LIB_RULES MAKE_PROG_RULES'
313
314 # Initialize some variables set by options.
315 ac_init_help=
316 ac_init_version=false
317 # The variables have the same names as the options, with
318 # dashes changed to underlines.
319 cache_file=/dev/null
320 exec_prefix=NONE
321 no_create=
322 no_recursion=
323 prefix=NONE
324 program_prefix=NONE
325 program_suffix=NONE
326 program_transform_name=s,x,x,
327 silent=
328 site=
329 srcdir=
330 verbose=
331 x_includes=NONE
332 x_libraries=NONE
333
334 # Installation directory options.
335 # These are left unexpanded so users can "make install exec_prefix=/foo"
336 # and all the variables that are supposed to be based on exec_prefix
337 # by default will actually change.
338 # Use braces instead of parens because sh, perl, etc. also accept them.
339 bindir='${exec_prefix}/bin'
340 sbindir='${exec_prefix}/sbin'
341 libexecdir='${exec_prefix}/libexec'
342 datadir='${prefix}/share'
343 sysconfdir='${prefix}/etc'
344 sharedstatedir='${prefix}/com'
345 localstatedir='${prefix}/var'
346 libdir='${exec_prefix}/lib'
347 includedir='${prefix}/include'
348 oldincludedir='/usr/include'
349 infodir='${prefix}/info'
350 mandir='${prefix}/man'
351
352 ac_prev=
353 for ac_option
354 do
355   # If the previous option needs an argument, assign it.
356   if test -n "$ac_prev"; then
357     eval "$ac_prev=\$ac_option"
358     ac_prev=
359     continue
360   fi
361
362   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
363
364   # Accept the important Cygnus configure options, so we can diagnose typos.
365
366   case $ac_option in
367
368   -bindir | --bindir | --bindi | --bind | --bin | --bi)
369     ac_prev=bindir ;;
370   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
371     bindir=$ac_optarg ;;
372
373   -build | --build | --buil | --bui | --bu)
374     ac_prev=build_alias ;;
375   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
376     build_alias=$ac_optarg ;;
377
378   -cache-file | --cache-file | --cache-fil | --cache-fi \
379   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
380     ac_prev=cache_file ;;
381   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
382   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
383     cache_file=$ac_optarg ;;
384
385   --config-cache | -C)
386     cache_file=config.cache ;;
387
388   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
389     ac_prev=datadir ;;
390   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
391   | --da=*)
392     datadir=$ac_optarg ;;
393
394   -disable-* | --disable-*)
395     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
396     # Reject names that are not valid shell variable names.
397     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
398       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
399    { (exit 1); exit 1; }; }
400     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
401     eval "enable_$ac_feature=no" ;;
402
403   -enable-* | --enable-*)
404     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
405     # Reject names that are not valid shell variable names.
406     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
407       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
408    { (exit 1); exit 1; }; }
409     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
410     case $ac_option in
411       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
412       *) ac_optarg=yes ;;
413     esac
414     eval "enable_$ac_feature='$ac_optarg'" ;;
415
416   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
417   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
418   | --exec | --exe | --ex)
419     ac_prev=exec_prefix ;;
420   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
421   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
422   | --exec=* | --exe=* | --ex=*)
423     exec_prefix=$ac_optarg ;;
424
425   -gas | --gas | --ga | --g)
426     # Obsolete; use --with-gas.
427     with_gas=yes ;;
428
429   -help | --help | --hel | --he | -h)
430     ac_init_help=long ;;
431   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
432     ac_init_help=recursive ;;
433   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
434     ac_init_help=short ;;
435
436   -host | --host | --hos | --ho)
437     ac_prev=host_alias ;;
438   -host=* | --host=* | --hos=* | --ho=*)
439     host_alias=$ac_optarg ;;
440
441   -includedir | --includedir | --includedi | --included | --include \
442   | --includ | --inclu | --incl | --inc)
443     ac_prev=includedir ;;
444   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
445   | --includ=* | --inclu=* | --incl=* | --inc=*)
446     includedir=$ac_optarg ;;
447
448   -infodir | --infodir | --infodi | --infod | --info | --inf)
449     ac_prev=infodir ;;
450   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
451     infodir=$ac_optarg ;;
452
453   -libdir | --libdir | --libdi | --libd)
454     ac_prev=libdir ;;
455   -libdir=* | --libdir=* | --libdi=* | --libd=*)
456     libdir=$ac_optarg ;;
457
458   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
459   | --libexe | --libex | --libe)
460     ac_prev=libexecdir ;;
461   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
462   | --libexe=* | --libex=* | --libe=*)
463     libexecdir=$ac_optarg ;;
464
465   -localstatedir | --localstatedir | --localstatedi | --localstated \
466   | --localstate | --localstat | --localsta | --localst \
467   | --locals | --local | --loca | --loc | --lo)
468     ac_prev=localstatedir ;;
469   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
470   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
471   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
472     localstatedir=$ac_optarg ;;
473
474   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
475     ac_prev=mandir ;;
476   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
477     mandir=$ac_optarg ;;
478
479   -nfp | --nfp | --nf)
480     # Obsolete; use --without-fp.
481     with_fp=no ;;
482
483   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
484   | --no-cr | --no-c | -n)
485     no_create=yes ;;
486
487   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
488   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
489     no_recursion=yes ;;
490
491   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
492   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
493   | --oldin | --oldi | --old | --ol | --o)
494     ac_prev=oldincludedir ;;
495   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
496   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
497   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
498     oldincludedir=$ac_optarg ;;
499
500   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
501     ac_prev=prefix ;;
502   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
503     prefix=$ac_optarg ;;
504
505   -program-prefix | --program-prefix | --program-prefi | --program-pref \
506   | --program-pre | --program-pr | --program-p)
507     ac_prev=program_prefix ;;
508   -program-prefix=* | --program-prefix=* | --program-prefi=* \
509   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
510     program_prefix=$ac_optarg ;;
511
512   -program-suffix | --program-suffix | --program-suffi | --program-suff \
513   | --program-suf | --program-su | --program-s)
514     ac_prev=program_suffix ;;
515   -program-suffix=* | --program-suffix=* | --program-suffi=* \
516   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
517     program_suffix=$ac_optarg ;;
518
519   -program-transform-name | --program-transform-name \
520   | --program-transform-nam | --program-transform-na \
521   | --program-transform-n | --program-transform- \
522   | --program-transform | --program-transfor \
523   | --program-transfo | --program-transf \
524   | --program-trans | --program-tran \
525   | --progr-tra | --program-tr | --program-t)
526     ac_prev=program_transform_name ;;
527   -program-transform-name=* | --program-transform-name=* \
528   | --program-transform-nam=* | --program-transform-na=* \
529   | --program-transform-n=* | --program-transform-=* \
530   | --program-transform=* | --program-transfor=* \
531   | --program-transfo=* | --program-transf=* \
532   | --program-trans=* | --program-tran=* \
533   | --progr-tra=* | --program-tr=* | --program-t=*)
534     program_transform_name=$ac_optarg ;;
535
536   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
537   | -silent | --silent | --silen | --sile | --sil)
538     silent=yes ;;
539
540   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
541     ac_prev=sbindir ;;
542   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
543   | --sbi=* | --sb=*)
544     sbindir=$ac_optarg ;;
545
546   -sharedstatedir | --sharedstatedir | --sharedstatedi \
547   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
548   | --sharedst | --shareds | --shared | --share | --shar \
549   | --sha | --sh)
550     ac_prev=sharedstatedir ;;
551   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
552   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
553   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
554   | --sha=* | --sh=*)
555     sharedstatedir=$ac_optarg ;;
556
557   -site | --site | --sit)
558     ac_prev=site ;;
559   -site=* | --site=* | --sit=*)
560     site=$ac_optarg ;;
561
562   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
563     ac_prev=srcdir ;;
564   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
565     srcdir=$ac_optarg ;;
566
567   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
568   | --syscon | --sysco | --sysc | --sys | --sy)
569     ac_prev=sysconfdir ;;
570   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
571   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
572     sysconfdir=$ac_optarg ;;
573
574   -target | --target | --targe | --targ | --tar | --ta | --t)
575     ac_prev=target_alias ;;
576   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
577     target_alias=$ac_optarg ;;
578
579   -v | -verbose | --verbose | --verbos | --verbo | --verb)
580     verbose=yes ;;
581
582   -version | --version | --versio | --versi | --vers | -V)
583     ac_init_version=: ;;
584
585   -with-* | --with-*)
586     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
587     # Reject names that are not valid shell variable names.
588     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
589       { echo "$as_me: error: invalid package name: $ac_package" >&2
590    { (exit 1); exit 1; }; }
591     ac_package=`echo $ac_package| sed 's/-/_/g'`
592     case $ac_option in
593       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
594       *) ac_optarg=yes ;;
595     esac
596     eval "with_$ac_package='$ac_optarg'" ;;
597
598   -without-* | --without-*)
599     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
600     # Reject names that are not valid shell variable names.
601     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
602       { echo "$as_me: error: invalid package name: $ac_package" >&2
603    { (exit 1); exit 1; }; }
604     ac_package=`echo $ac_package | sed 's/-/_/g'`
605     eval "with_$ac_package=no" ;;
606
607   --x)
608     # Obsolete; use --with-x.
609     with_x=yes ;;
610
611   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
612   | --x-incl | --x-inc | --x-in | --x-i)
613     ac_prev=x_includes ;;
614   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
615   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
616     x_includes=$ac_optarg ;;
617
618   -x-libraries | --x-libraries | --x-librarie | --x-librari \
619   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
620     ac_prev=x_libraries ;;
621   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
622   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
623     x_libraries=$ac_optarg ;;
624
625   -*) { echo "$as_me: error: unrecognized option: $ac_option
626 Try \`$0 --help' for more information." >&2
627    { (exit 1); exit 1; }; }
628     ;;
629
630   *=*)
631     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
632     # Reject names that are not valid shell variable names.
633     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
634       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
635    { (exit 1); exit 1; }; }
636     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
637     eval "$ac_envvar='$ac_optarg'"
638     export $ac_envvar ;;
639
640   *)
641     # FIXME: should be removed in autoconf 3.0.
642     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
643     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
644       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
645     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
646     ;;
647
648   esac
649 done
650
651 if test -n "$ac_prev"; then
652   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
653   { echo "$as_me: error: missing argument to $ac_option" >&2
654    { (exit 1); exit 1; }; }
655 fi
656
657 # Be sure to have absolute paths.
658 for ac_var in exec_prefix prefix
659 do
660   eval ac_val=$`echo $ac_var`
661   case $ac_val in
662     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
663     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
664    { (exit 1); exit 1; }; };;
665   esac
666 done
667
668 # Be sure to have absolute paths.
669 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
670               localstatedir libdir includedir oldincludedir infodir mandir
671 do
672   eval ac_val=$`echo $ac_var`
673   case $ac_val in
674     [\\/$]* | ?:[\\/]* ) ;;
675     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
676    { (exit 1); exit 1; }; };;
677   esac
678 done
679
680 # There might be people who depend on the old broken behavior: `$host'
681 # used to hold the argument of --host etc.
682 # FIXME: To remove some day.
683 build=$build_alias
684 host=$host_alias
685 target=$target_alias
686
687 # FIXME: To remove some day.
688 if test "x$host_alias" != x; then
689   if test "x$build_alias" = x; then
690     cross_compiling=maybe
691     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
692     If a cross compiler is detected then cross compile mode will be used." >&2
693   elif test "x$build_alias" != "x$host_alias"; then
694     cross_compiling=yes
695   fi
696 fi
697
698 ac_tool_prefix=
699 test -n "$host_alias" && ac_tool_prefix=$host_alias-
700
701 test "$silent" = yes && exec 6>/dev/null
702
703
704 # Find the source files, if location was not specified.
705 if test -z "$srcdir"; then
706   ac_srcdir_defaulted=yes
707   # Try the directory containing this script, then its parent.
708   ac_confdir=`(dirname "$0") 2>/dev/null ||
709 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
710          X"$0" : 'X\(//\)[^/]' \| \
711          X"$0" : 'X\(//\)$' \| \
712          X"$0" : 'X\(/\)' \| \
713          .     : '\(.\)' 2>/dev/null ||
714 echo X"$0" |
715     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
716           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
717           /^X\(\/\/\)$/{ s//\1/; q; }
718           /^X\(\/\).*/{ s//\1/; q; }
719           s/.*/./; q'`
720   srcdir=$ac_confdir
721   if test ! -r $srcdir/$ac_unique_file; then
722     srcdir=..
723   fi
724 else
725   ac_srcdir_defaulted=no
726 fi
727 if test ! -r $srcdir/$ac_unique_file; then
728   if test "$ac_srcdir_defaulted" = yes; then
729     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
730    { (exit 1); exit 1; }; }
731   else
732     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
733    { (exit 1); exit 1; }; }
734   fi
735 fi
736 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
737   { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
738    { (exit 1); exit 1; }; }
739 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
740 ac_env_build_alias_set=${build_alias+set}
741 ac_env_build_alias_value=$build_alias
742 ac_cv_env_build_alias_set=${build_alias+set}
743 ac_cv_env_build_alias_value=$build_alias
744 ac_env_host_alias_set=${host_alias+set}
745 ac_env_host_alias_value=$host_alias
746 ac_cv_env_host_alias_set=${host_alias+set}
747 ac_cv_env_host_alias_value=$host_alias
748 ac_env_target_alias_set=${target_alias+set}
749 ac_env_target_alias_value=$target_alias
750 ac_cv_env_target_alias_set=${target_alias+set}
751 ac_cv_env_target_alias_value=$target_alias
752 ac_env_CC_set=${CC+set}
753 ac_env_CC_value=$CC
754 ac_cv_env_CC_set=${CC+set}
755 ac_cv_env_CC_value=$CC
756 ac_env_CFLAGS_set=${CFLAGS+set}
757 ac_env_CFLAGS_value=$CFLAGS
758 ac_cv_env_CFLAGS_set=${CFLAGS+set}
759 ac_cv_env_CFLAGS_value=$CFLAGS
760 ac_env_LDFLAGS_set=${LDFLAGS+set}
761 ac_env_LDFLAGS_value=$LDFLAGS
762 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
763 ac_cv_env_LDFLAGS_value=$LDFLAGS
764 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
765 ac_env_CPPFLAGS_value=$CPPFLAGS
766 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
767 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
768 ac_env_CPP_set=${CPP+set}
769 ac_env_CPP_value=$CPP
770 ac_cv_env_CPP_set=${CPP+set}
771 ac_cv_env_CPP_value=$CPP
772
773 #
774 # Report the --help message.
775 #
776 if test "$ac_init_help" = "long"; then
777   # Omit some internal or obsolete options to make the list less imposing.
778   # This message is too long to be a string in the A/UX 3.1 sh.
779   cat <<_ACEOF
780 \`configure' configures Wine 20031016 to adapt to many kinds of systems.
781
782 Usage: $0 [OPTION]... [VAR=VALUE]...
783
784 To assign environment variables (e.g., CC, CFLAGS...), specify them as
785 VAR=VALUE.  See below for descriptions of some of the useful variables.
786
787 Defaults for the options are specified in brackets.
788
789 Configuration:
790   -h, --help              display this help and exit
791       --help=short        display options specific to this package
792       --help=recursive    display the short help of all the included packages
793   -V, --version           display version information and exit
794   -q, --quiet, --silent   do not print \`checking...' messages
795       --cache-file=FILE   cache test results in FILE [disabled]
796   -C, --config-cache      alias for \`--cache-file=config.cache'
797   -n, --no-create         do not create output files
798       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
799
800 _ACEOF
801
802   cat <<_ACEOF
803 Installation directories:
804   --prefix=PREFIX         install architecture-independent files in PREFIX
805                           [$ac_default_prefix]
806   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
807                           [PREFIX]
808
809 By default, \`make install' will install all the files in
810 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
811 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
812 for instance \`--prefix=\$HOME'.
813
814 For better control, use the options below.
815
816 Fine tuning of the installation directories:
817   --bindir=DIR           user executables [EPREFIX/bin]
818   --sbindir=DIR          system admin executables [EPREFIX/sbin]
819   --libexecdir=DIR       program executables [EPREFIX/libexec]
820   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
821   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
822   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
823   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
824   --libdir=DIR           object code libraries [EPREFIX/lib]
825   --includedir=DIR       C header files [PREFIX/include]
826   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
827   --infodir=DIR          info documentation [PREFIX/info]
828   --mandir=DIR           man documentation [PREFIX/man]
829 _ACEOF
830
831   cat <<\_ACEOF
832
833 X features:
834   --x-includes=DIR    X include files are in DIR
835   --x-libraries=DIR   X library files are in DIR
836
837 System types:
838   --build=BUILD     configure for building on BUILD [guessed]
839   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
840 _ACEOF
841 fi
842
843 if test -n "$ac_init_help"; then
844   case $ac_init_help in
845      short | recursive ) echo "Configuration of Wine 20031016:";;
846    esac
847   cat <<\_ACEOF
848
849 Optional Features:
850   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
851   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
852   --disable-win16         do not include Win16 support
853   --disable-debug         compile out all debugging messages
854   --disable-trace         compile out TRACE messages
855
856 Optional Packages:
857   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
858   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
859   --without-opengl        do not use OpenGL
860   --without-curses        do not use curses
861   --with-nptl             use glibc NPTL threading support
862   --with-wine-tools=<dir> use Wine tools from directory <dir>
863   --with-x                use the X Window System
864
865 Some influential environment variables:
866   CC          C compiler command
867   CFLAGS      C compiler flags
868   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
869               nonstandard directory <lib dir>
870   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
871               headers in a nonstandard directory <include dir>
872   CPP         C preprocessor
873
874 Use these variables to override the choices made by `configure' or to help
875 it to find libraries and programs with nonstandard names/locations.
876
877 _ACEOF
878 fi
879
880 if test "$ac_init_help" = "recursive"; then
881   # If there are subdirs, report their specific --help.
882   ac_popdir=`pwd`
883   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
884     test -d $ac_dir || continue
885     ac_builddir=.
886
887 if test "$ac_dir" != .; then
888   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
889   # A "../" for each directory in $ac_dir_suffix.
890   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
891 else
892   ac_dir_suffix= ac_top_builddir=
893 fi
894
895 case $srcdir in
896   .)  # No --srcdir option.  We are building in place.
897     ac_srcdir=.
898     if test -z "$ac_top_builddir"; then
899        ac_top_srcdir=.
900     else
901        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
902     fi ;;
903   [\\/]* | ?:[\\/]* )  # Absolute path.
904     ac_srcdir=$srcdir$ac_dir_suffix;
905     ac_top_srcdir=$srcdir ;;
906   *) # Relative path.
907     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
908     ac_top_srcdir=$ac_top_builddir$srcdir ;;
909 esac
910 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
911 # absolute.
912 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
913 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
914 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
915 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
916
917     cd $ac_dir
918     # Check for guested configure; otherwise get Cygnus style configure.
919     if test -f $ac_srcdir/configure.gnu; then
920       echo
921       $SHELL $ac_srcdir/configure.gnu  --help=recursive
922     elif test -f $ac_srcdir/configure; then
923       echo
924       $SHELL $ac_srcdir/configure  --help=recursive
925     elif test -f $ac_srcdir/configure.ac ||
926            test -f $ac_srcdir/configure.in; then
927       echo
928       $ac_configure --help
929     else
930       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
931     fi
932     cd "$ac_popdir"
933   done
934 fi
935
936 test -n "$ac_init_help" && exit 0
937 if $ac_init_version; then
938   cat <<\_ACEOF
939 Wine configure 20031016
940 generated by GNU Autoconf 2.57
941
942 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
943 Free Software Foundation, Inc.
944 This configure script is free software; the Free Software Foundation
945 gives unlimited permission to copy, distribute and modify it.
946 _ACEOF
947   exit 0
948 fi
949 exec 5>config.log
950 cat >&5 <<_ACEOF
951 This file contains any messages produced by compilers while
952 running configure, to aid debugging if configure makes a mistake.
953
954 It was created by Wine $as_me 20031016, which was
955 generated by GNU Autoconf 2.57.  Invocation command line was
956
957   $ $0 $@
958
959 _ACEOF
960 {
961 cat <<_ASUNAME
962 ## --------- ##
963 ## Platform. ##
964 ## --------- ##
965
966 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
967 uname -m = `(uname -m) 2>/dev/null || echo unknown`
968 uname -r = `(uname -r) 2>/dev/null || echo unknown`
969 uname -s = `(uname -s) 2>/dev/null || echo unknown`
970 uname -v = `(uname -v) 2>/dev/null || echo unknown`
971
972 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
973 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
974
975 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
976 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
977 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
978 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
979 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
980 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
981 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
982
983 _ASUNAME
984
985 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
986 for as_dir in $PATH
987 do
988   IFS=$as_save_IFS
989   test -z "$as_dir" && as_dir=.
990   echo "PATH: $as_dir"
991 done
992
993 } >&5
994
995 cat >&5 <<_ACEOF
996
997
998 ## ----------- ##
999 ## Core tests. ##
1000 ## ----------- ##
1001
1002 _ACEOF
1003
1004
1005 # Keep a trace of the command line.
1006 # Strip out --no-create and --no-recursion so they do not pile up.
1007 # Strip out --silent because we don't want to record it for future runs.
1008 # Also quote any args containing shell meta-characters.
1009 # Make two passes to allow for proper duplicate-argument suppression.
1010 ac_configure_args=
1011 ac_configure_args0=
1012 ac_configure_args1=
1013 ac_sep=
1014 ac_must_keep_next=false
1015 for ac_pass in 1 2
1016 do
1017   for ac_arg
1018   do
1019     case $ac_arg in
1020     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1021     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1022     | -silent | --silent | --silen | --sile | --sil)
1023       continue ;;
1024     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1025       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1026     esac
1027     case $ac_pass in
1028     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1029     2)
1030       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1031       if test $ac_must_keep_next = true; then
1032         ac_must_keep_next=false # Got value, back to normal.
1033       else
1034         case $ac_arg in
1035           *=* | --config-cache | -C | -disable-* | --disable-* \
1036           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1037           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1038           | -with-* | --with-* | -without-* | --without-* | --x)
1039             case "$ac_configure_args0 " in
1040               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1041             esac
1042             ;;
1043           -* ) ac_must_keep_next=true ;;
1044         esac
1045       fi
1046       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1047       # Get rid of the leading space.
1048       ac_sep=" "
1049       ;;
1050     esac
1051   done
1052 done
1053 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1054 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1055
1056 # When interrupted or exit'd, cleanup temporary files, and complete
1057 # config.log.  We remove comments because anyway the quotes in there
1058 # would cause problems or look ugly.
1059 # WARNING: Be sure not to use single quotes in there, as some shells,
1060 # such as our DU 5.0 friend, will then `close' the trap.
1061 trap 'exit_status=$?
1062   # Save into config.log some information that might help in debugging.
1063   {
1064     echo
1065
1066     cat <<\_ASBOX
1067 ## ---------------- ##
1068 ## Cache variables. ##
1069 ## ---------------- ##
1070 _ASBOX
1071     echo
1072     # The following way of writing the cache mishandles newlines in values,
1073 {
1074   (set) 2>&1 |
1075     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1076     *ac_space=\ *)
1077       sed -n \
1078         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1079           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1080       ;;
1081     *)
1082       sed -n \
1083         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1084       ;;
1085     esac;
1086 }
1087     echo
1088
1089     cat <<\_ASBOX
1090 ## ----------------- ##
1091 ## Output variables. ##
1092 ## ----------------- ##
1093 _ASBOX
1094     echo
1095     for ac_var in $ac_subst_vars
1096     do
1097       eval ac_val=$`echo $ac_var`
1098       echo "$ac_var='"'"'$ac_val'"'"'"
1099     done | sort
1100     echo
1101
1102     if test -n "$ac_subst_files"; then
1103       cat <<\_ASBOX
1104 ## ------------- ##
1105 ## Output files. ##
1106 ## ------------- ##
1107 _ASBOX
1108       echo
1109       for ac_var in $ac_subst_files
1110       do
1111         eval ac_val=$`echo $ac_var`
1112         echo "$ac_var='"'"'$ac_val'"'"'"
1113       done | sort
1114       echo
1115     fi
1116
1117     if test -s confdefs.h; then
1118       cat <<\_ASBOX
1119 ## ----------- ##
1120 ## confdefs.h. ##
1121 ## ----------- ##
1122 _ASBOX
1123       echo
1124       sed "/^$/d" confdefs.h | sort
1125       echo
1126     fi
1127     test "$ac_signal" != 0 &&
1128       echo "$as_me: caught signal $ac_signal"
1129     echo "$as_me: exit $exit_status"
1130   } >&5
1131   rm -f core *.core &&
1132   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1133     exit $exit_status
1134      ' 0
1135 for ac_signal in 1 2 13 15; do
1136   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1137 done
1138 ac_signal=0
1139
1140 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1141 rm -rf conftest* confdefs.h
1142 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1143 echo >confdefs.h
1144
1145 # Predefined preprocessor variables.
1146
1147 cat >>confdefs.h <<_ACEOF
1148 #define PACKAGE_NAME "$PACKAGE_NAME"
1149 _ACEOF
1150
1151
1152 cat >>confdefs.h <<_ACEOF
1153 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1154 _ACEOF
1155
1156
1157 cat >>confdefs.h <<_ACEOF
1158 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1159 _ACEOF
1160
1161
1162 cat >>confdefs.h <<_ACEOF
1163 #define PACKAGE_STRING "$PACKAGE_STRING"
1164 _ACEOF
1165
1166
1167 cat >>confdefs.h <<_ACEOF
1168 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1169 _ACEOF
1170
1171
1172 # Let the site file select an alternate cache file if it wants to.
1173 # Prefer explicitly selected file to automatically selected ones.
1174 if test -z "$CONFIG_SITE"; then
1175   if test "x$prefix" != xNONE; then
1176     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1177   else
1178     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1179   fi
1180 fi
1181 for ac_site_file in $CONFIG_SITE; do
1182   if test -r "$ac_site_file"; then
1183     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1184 echo "$as_me: loading site script $ac_site_file" >&6;}
1185     sed 's/^/| /' "$ac_site_file" >&5
1186     . "$ac_site_file"
1187   fi
1188 done
1189
1190 if test -r "$cache_file"; then
1191   # Some versions of bash will fail to source /dev/null (special
1192   # files actually), so we avoid doing that.
1193   if test -f "$cache_file"; then
1194     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1195 echo "$as_me: loading cache $cache_file" >&6;}
1196     case $cache_file in
1197       [\\/]* | ?:[\\/]* ) . $cache_file;;
1198       *)                      . ./$cache_file;;
1199     esac
1200   fi
1201 else
1202   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1203 echo "$as_me: creating cache $cache_file" >&6;}
1204   >$cache_file
1205 fi
1206
1207 # Check that the precious variables saved in the cache have kept the same
1208 # value.
1209 ac_cache_corrupted=false
1210 for ac_var in `(set) 2>&1 |
1211                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1212   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1213   eval ac_new_set=\$ac_env_${ac_var}_set
1214   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1215   eval ac_new_val="\$ac_env_${ac_var}_value"
1216   case $ac_old_set,$ac_new_set in
1217     set,)
1218       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1219 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1220       ac_cache_corrupted=: ;;
1221     ,set)
1222       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1223 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1224       ac_cache_corrupted=: ;;
1225     ,);;
1226     *)
1227       if test "x$ac_old_val" != "x$ac_new_val"; then
1228         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1229 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1230         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1231 echo "$as_me:   former value:  $ac_old_val" >&2;}
1232         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1233 echo "$as_me:   current value: $ac_new_val" >&2;}
1234         ac_cache_corrupted=:
1235       fi;;
1236   esac
1237   # Pass precious variables to config.status.
1238   if test "$ac_new_set" = set; then
1239     case $ac_new_val in
1240     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1241       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1242     *) ac_arg=$ac_var=$ac_new_val ;;
1243     esac
1244     case " $ac_configure_args " in
1245       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1246       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1247     esac
1248   fi
1249 done
1250 if $ac_cache_corrupted; then
1251   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1252 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1253   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1254 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1255    { (exit 1); exit 1; }; }
1256 fi
1257
1258 ac_ext=c
1259 ac_cpp='$CPP $CPPFLAGS'
1260 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1261 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1262 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291           ac_config_headers="$ac_config_headers include/config.h"
1292
1293 ac_aux_dir=
1294 for ac_dir in tools $srcdir/tools; do
1295   if test -f $ac_dir/install-sh; then
1296     ac_aux_dir=$ac_dir
1297     ac_install_sh="$ac_aux_dir/install-sh -c"
1298     break
1299   elif test -f $ac_dir/install.sh; then
1300     ac_aux_dir=$ac_dir
1301     ac_install_sh="$ac_aux_dir/install.sh -c"
1302     break
1303   elif test -f $ac_dir/shtool; then
1304     ac_aux_dir=$ac_dir
1305     ac_install_sh="$ac_aux_dir/shtool install -c"
1306     break
1307   fi
1308 done
1309 if test -z "$ac_aux_dir"; then
1310   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in tools $srcdir/tools" >&5
1311 echo "$as_me: error: cannot find install-sh or install.sh in tools $srcdir/tools" >&2;}
1312    { (exit 1); exit 1; }; }
1313 fi
1314 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1315 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1316 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1317
1318
1319
1320 # Check whether --enable-win16 or --disable-win16 was given.
1321 if test "${enable_win16+set}" = set; then
1322   enableval="$enable_win16"
1323
1324 fi;
1325 # Check whether --enable-debug or --disable-debug was given.
1326 if test "${enable_debug+set}" = set; then
1327   enableval="$enable_debug"
1328
1329 fi;
1330 # Check whether --enable-trace or --disable-trace was given.
1331 if test "${enable_trace+set}" = set; then
1332   enableval="$enable_trace"
1333
1334 fi;
1335
1336
1337 # Check whether --with-opengl or --without-opengl was given.
1338 if test "${with_opengl+set}" = set; then
1339   withval="$with_opengl"
1340
1341 fi;
1342
1343 # Check whether --with-curses or --without-curses was given.
1344 if test "${with_curses+set}" = set; then
1345   withval="$with_curses"
1346
1347 fi;
1348
1349 # Check whether --with-nptl or --without-nptl was given.
1350 if test "${with_nptl+set}" = set; then
1351   withval="$with_nptl"
1352
1353 fi;
1354
1355 # Check whether --with-wine-tools or --without-wine-tools was given.
1356 if test "${with_wine_tools+set}" = set; then
1357   withval="$with_wine_tools"
1358
1359 fi;
1360
1361 WIN16_FILES="\$(WIN16_FILES)"
1362
1363 WIN16_INSTALL="\$(WIN16_INSTALL)"
1364
1365 if test "x$enable_win16" = "xno"
1366 then
1367   WIN16_FILES=""
1368   WIN16_INSTALL=""
1369 fi
1370 if test "x$enable_debug" = "xno"
1371 then
1372
1373 cat >>confdefs.h <<\_ACEOF
1374 #define NO_DEBUG_MSGS 1
1375 _ACEOF
1376
1377 fi
1378 if test "x$enable_trace" = "xno" -o "x$enable_debug" = "xno"
1379 then
1380
1381 cat >>confdefs.h <<\_ACEOF
1382 #define NO_TRACE_MSGS 1
1383 _ACEOF
1384
1385 fi
1386 if test "x$with_nptl" = "xyes"
1387 then
1388
1389 cat >>confdefs.h <<\_ACEOF
1390 #define HAVE_NPTL 1
1391 _ACEOF
1392
1393     LIBPTHREAD="-lpthread"
1394
1395 fi
1396
1397
1398 # Make sure we can run config.sub.
1399 $ac_config_sub sun4 >/dev/null 2>&1 ||
1400   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1401 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1402    { (exit 1); exit 1; }; }
1403
1404 echo "$as_me:$LINENO: checking build system type" >&5
1405 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1406 if test "${ac_cv_build+set}" = set; then
1407   echo $ECHO_N "(cached) $ECHO_C" >&6
1408 else
1409   ac_cv_build_alias=$build_alias
1410 test -z "$ac_cv_build_alias" &&
1411   ac_cv_build_alias=`$ac_config_guess`
1412 test -z "$ac_cv_build_alias" &&
1413   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1414 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1415    { (exit 1); exit 1; }; }
1416 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1417   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1418 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1419    { (exit 1); exit 1; }; }
1420
1421 fi
1422 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1423 echo "${ECHO_T}$ac_cv_build" >&6
1424 build=$ac_cv_build
1425 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1426 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1427 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1428
1429
1430 echo "$as_me:$LINENO: checking host system type" >&5
1431 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1432 if test "${ac_cv_host+set}" = set; then
1433   echo $ECHO_N "(cached) $ECHO_C" >&6
1434 else
1435   ac_cv_host_alias=$host_alias
1436 test -z "$ac_cv_host_alias" &&
1437   ac_cv_host_alias=$ac_cv_build_alias
1438 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1439   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1440 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1441    { (exit 1); exit 1; }; }
1442
1443 fi
1444 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1445 echo "${ECHO_T}$ac_cv_host" >&6
1446 host=$ac_cv_host
1447 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1448 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1449 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1450
1451
1452 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1453 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1454 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
1455 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1456   echo $ECHO_N "(cached) $ECHO_C" >&6
1457 else
1458   cat >conftest.make <<\_ACEOF
1459 all:
1460         @echo 'ac_maketemp="$(MAKE)"'
1461 _ACEOF
1462 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1463 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1464 if test -n "$ac_maketemp"; then
1465   eval ac_cv_prog_make_${ac_make}_set=yes
1466 else
1467   eval ac_cv_prog_make_${ac_make}_set=no
1468 fi
1469 rm -f conftest.make
1470 fi
1471 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1472   echo "$as_me:$LINENO: result: yes" >&5
1473 echo "${ECHO_T}yes" >&6
1474   SET_MAKE=
1475 else
1476   echo "$as_me:$LINENO: result: no" >&5
1477 echo "${ECHO_T}no" >&6
1478   SET_MAKE="MAKE=${MAKE-make}"
1479 fi
1480
1481 ac_ext=c
1482 ac_cpp='$CPP $CPPFLAGS'
1483 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1484 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1485 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1486 if test -n "$ac_tool_prefix"; then
1487   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1488 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1489 echo "$as_me:$LINENO: checking for $ac_word" >&5
1490 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1491 if test "${ac_cv_prog_CC+set}" = set; then
1492   echo $ECHO_N "(cached) $ECHO_C" >&6
1493 else
1494   if test -n "$CC"; then
1495   ac_cv_prog_CC="$CC" # Let the user override the test.
1496 else
1497 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1498 for as_dir in $PATH
1499 do
1500   IFS=$as_save_IFS
1501   test -z "$as_dir" && as_dir=.
1502   for ac_exec_ext in '' $ac_executable_extensions; do
1503   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1504     ac_cv_prog_CC="${ac_tool_prefix}gcc"
1505     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1506     break 2
1507   fi
1508 done
1509 done
1510
1511 fi
1512 fi
1513 CC=$ac_cv_prog_CC
1514 if test -n "$CC"; then
1515   echo "$as_me:$LINENO: result: $CC" >&5
1516 echo "${ECHO_T}$CC" >&6
1517 else
1518   echo "$as_me:$LINENO: result: no" >&5
1519 echo "${ECHO_T}no" >&6
1520 fi
1521
1522 fi
1523 if test -z "$ac_cv_prog_CC"; then
1524   ac_ct_CC=$CC
1525   # Extract the first word of "gcc", so it can be a program name with args.
1526 set dummy gcc; ac_word=$2
1527 echo "$as_me:$LINENO: checking for $ac_word" >&5
1528 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1529 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1530   echo $ECHO_N "(cached) $ECHO_C" >&6
1531 else
1532   if test -n "$ac_ct_CC"; then
1533   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1534 else
1535 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1536 for as_dir in $PATH
1537 do
1538   IFS=$as_save_IFS
1539   test -z "$as_dir" && as_dir=.
1540   for ac_exec_ext in '' $ac_executable_extensions; do
1541   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1542     ac_cv_prog_ac_ct_CC="gcc"
1543     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1544     break 2
1545   fi
1546 done
1547 done
1548
1549 fi
1550 fi
1551 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1552 if test -n "$ac_ct_CC"; then
1553   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1554 echo "${ECHO_T}$ac_ct_CC" >&6
1555 else
1556   echo "$as_me:$LINENO: result: no" >&5
1557 echo "${ECHO_T}no" >&6
1558 fi
1559
1560   CC=$ac_ct_CC
1561 else
1562   CC="$ac_cv_prog_CC"
1563 fi
1564
1565 if test -z "$CC"; then
1566   if test -n "$ac_tool_prefix"; then
1567   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1568 set dummy ${ac_tool_prefix}cc; ac_word=$2
1569 echo "$as_me:$LINENO: checking for $ac_word" >&5
1570 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1571 if test "${ac_cv_prog_CC+set}" = set; then
1572   echo $ECHO_N "(cached) $ECHO_C" >&6
1573 else
1574   if test -n "$CC"; then
1575   ac_cv_prog_CC="$CC" # Let the user override the test.
1576 else
1577 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1578 for as_dir in $PATH
1579 do
1580   IFS=$as_save_IFS
1581   test -z "$as_dir" && as_dir=.
1582   for ac_exec_ext in '' $ac_executable_extensions; do
1583   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1584     ac_cv_prog_CC="${ac_tool_prefix}cc"
1585     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1586     break 2
1587   fi
1588 done
1589 done
1590
1591 fi
1592 fi
1593 CC=$ac_cv_prog_CC
1594 if test -n "$CC"; then
1595   echo "$as_me:$LINENO: result: $CC" >&5
1596 echo "${ECHO_T}$CC" >&6
1597 else
1598   echo "$as_me:$LINENO: result: no" >&5
1599 echo "${ECHO_T}no" >&6
1600 fi
1601
1602 fi
1603 if test -z "$ac_cv_prog_CC"; then
1604   ac_ct_CC=$CC
1605   # Extract the first word of "cc", so it can be a program name with args.
1606 set dummy cc; ac_word=$2
1607 echo "$as_me:$LINENO: checking for $ac_word" >&5
1608 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1609 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1610   echo $ECHO_N "(cached) $ECHO_C" >&6
1611 else
1612   if test -n "$ac_ct_CC"; then
1613   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1614 else
1615 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1616 for as_dir in $PATH
1617 do
1618   IFS=$as_save_IFS
1619   test -z "$as_dir" && as_dir=.
1620   for ac_exec_ext in '' $ac_executable_extensions; do
1621   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1622     ac_cv_prog_ac_ct_CC="cc"
1623     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1624     break 2
1625   fi
1626 done
1627 done
1628
1629 fi
1630 fi
1631 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1632 if test -n "$ac_ct_CC"; then
1633   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1634 echo "${ECHO_T}$ac_ct_CC" >&6
1635 else
1636   echo "$as_me:$LINENO: result: no" >&5
1637 echo "${ECHO_T}no" >&6
1638 fi
1639
1640   CC=$ac_ct_CC
1641 else
1642   CC="$ac_cv_prog_CC"
1643 fi
1644
1645 fi
1646 if test -z "$CC"; then
1647   # Extract the first word of "cc", so it can be a program name with args.
1648 set dummy cc; ac_word=$2
1649 echo "$as_me:$LINENO: checking for $ac_word" >&5
1650 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1651 if test "${ac_cv_prog_CC+set}" = set; then
1652   echo $ECHO_N "(cached) $ECHO_C" >&6
1653 else
1654   if test -n "$CC"; then
1655   ac_cv_prog_CC="$CC" # Let the user override the test.
1656 else
1657   ac_prog_rejected=no
1658 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1659 for as_dir in $PATH
1660 do
1661   IFS=$as_save_IFS
1662   test -z "$as_dir" && as_dir=.
1663   for ac_exec_ext in '' $ac_executable_extensions; do
1664   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1665     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1666        ac_prog_rejected=yes
1667        continue
1668      fi
1669     ac_cv_prog_CC="cc"
1670     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1671     break 2
1672   fi
1673 done
1674 done
1675
1676 if test $ac_prog_rejected = yes; then
1677   # We found a bogon in the path, so make sure we never use it.
1678   set dummy $ac_cv_prog_CC
1679   shift
1680   if test $# != 0; then
1681     # We chose a different compiler from the bogus one.
1682     # However, it has the same basename, so the bogon will be chosen
1683     # first if we set CC to just the basename; use the full file name.
1684     shift
1685     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1686   fi
1687 fi
1688 fi
1689 fi
1690 CC=$ac_cv_prog_CC
1691 if test -n "$CC"; then
1692   echo "$as_me:$LINENO: result: $CC" >&5
1693 echo "${ECHO_T}$CC" >&6
1694 else
1695   echo "$as_me:$LINENO: result: no" >&5
1696 echo "${ECHO_T}no" >&6
1697 fi
1698
1699 fi
1700 if test -z "$CC"; then
1701   if test -n "$ac_tool_prefix"; then
1702   for ac_prog in cl
1703   do
1704     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1705 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1706 echo "$as_me:$LINENO: checking for $ac_word" >&5
1707 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1708 if test "${ac_cv_prog_CC+set}" = set; then
1709   echo $ECHO_N "(cached) $ECHO_C" >&6
1710 else
1711   if test -n "$CC"; then
1712   ac_cv_prog_CC="$CC" # Let the user override the test.
1713 else
1714 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1715 for as_dir in $PATH
1716 do
1717   IFS=$as_save_IFS
1718   test -z "$as_dir" && as_dir=.
1719   for ac_exec_ext in '' $ac_executable_extensions; do
1720   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1721     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1722     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1723     break 2
1724   fi
1725 done
1726 done
1727
1728 fi
1729 fi
1730 CC=$ac_cv_prog_CC
1731 if test -n "$CC"; then
1732   echo "$as_me:$LINENO: result: $CC" >&5
1733 echo "${ECHO_T}$CC" >&6
1734 else
1735   echo "$as_me:$LINENO: result: no" >&5
1736 echo "${ECHO_T}no" >&6
1737 fi
1738
1739     test -n "$CC" && break
1740   done
1741 fi
1742 if test -z "$CC"; then
1743   ac_ct_CC=$CC
1744   for ac_prog in cl
1745 do
1746   # Extract the first word of "$ac_prog", so it can be a program name with args.
1747 set dummy $ac_prog; ac_word=$2
1748 echo "$as_me:$LINENO: checking for $ac_word" >&5
1749 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1750 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1751   echo $ECHO_N "(cached) $ECHO_C" >&6
1752 else
1753   if test -n "$ac_ct_CC"; then
1754   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1755 else
1756 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1757 for as_dir in $PATH
1758 do
1759   IFS=$as_save_IFS
1760   test -z "$as_dir" && as_dir=.
1761   for ac_exec_ext in '' $ac_executable_extensions; do
1762   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1763     ac_cv_prog_ac_ct_CC="$ac_prog"
1764     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1765     break 2
1766   fi
1767 done
1768 done
1769
1770 fi
1771 fi
1772 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1773 if test -n "$ac_ct_CC"; then
1774   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1775 echo "${ECHO_T}$ac_ct_CC" >&6
1776 else
1777   echo "$as_me:$LINENO: result: no" >&5
1778 echo "${ECHO_T}no" >&6
1779 fi
1780
1781   test -n "$ac_ct_CC" && break
1782 done
1783
1784   CC=$ac_ct_CC
1785 fi
1786
1787 fi
1788
1789
1790 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1791 See \`config.log' for more details." >&5
1792 echo "$as_me: error: no acceptable C compiler found in \$PATH
1793 See \`config.log' for more details." >&2;}
1794    { (exit 1); exit 1; }; }
1795
1796 # Provide some information about the compiler.
1797 echo "$as_me:$LINENO:" \
1798      "checking for C compiler version" >&5
1799 ac_compiler=`set X $ac_compile; echo $2`
1800 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1801   (eval $ac_compiler --version </dev/null >&5) 2>&5
1802   ac_status=$?
1803   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1804   (exit $ac_status); }
1805 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1806   (eval $ac_compiler -v </dev/null >&5) 2>&5
1807   ac_status=$?
1808   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1809   (exit $ac_status); }
1810 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1811   (eval $ac_compiler -V </dev/null >&5) 2>&5
1812   ac_status=$?
1813   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1814   (exit $ac_status); }
1815
1816 cat >conftest.$ac_ext <<_ACEOF
1817 #line $LINENO "configure"
1818 /* confdefs.h.  */
1819 _ACEOF
1820 cat confdefs.h >>conftest.$ac_ext
1821 cat >>conftest.$ac_ext <<_ACEOF
1822 /* end confdefs.h.  */
1823
1824 int
1825 main ()
1826 {
1827
1828   ;
1829   return 0;
1830 }
1831 _ACEOF
1832 ac_clean_files_save=$ac_clean_files
1833 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1834 # Try to create an executable without -o first, disregard a.out.
1835 # It will help us diagnose broken compilers, and finding out an intuition
1836 # of exeext.
1837 echo "$as_me:$LINENO: checking for C compiler default output" >&5
1838 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1839 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1840 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1841   (eval $ac_link_default) 2>&5
1842   ac_status=$?
1843   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1844   (exit $ac_status); }; then
1845   # Find the output, starting from the most likely.  This scheme is
1846 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1847 # resort.
1848
1849 # Be careful to initialize this variable, since it used to be cached.
1850 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1851 ac_cv_exeext=
1852 # b.out is created by i960 compilers.
1853 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1854 do
1855   test -f "$ac_file" || continue
1856   case $ac_file in
1857     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1858         ;;
1859     conftest.$ac_ext )
1860         # This is the source file.
1861         ;;
1862     [ab].out )
1863         # We found the default executable, but exeext='' is most
1864         # certainly right.
1865         break;;
1866     *.* )
1867         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1868         # FIXME: I believe we export ac_cv_exeext for Libtool,
1869         # but it would be cool to find out if it's true.  Does anybody
1870         # maintain Libtool? --akim.
1871         export ac_cv_exeext
1872         break;;
1873     * )
1874         break;;
1875   esac
1876 done
1877 else
1878   echo "$as_me: failed program was:" >&5
1879 sed 's/^/| /' conftest.$ac_ext >&5
1880
1881 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1882 See \`config.log' for more details." >&5
1883 echo "$as_me: error: C compiler cannot create executables
1884 See \`config.log' for more details." >&2;}
1885    { (exit 77); exit 77; }; }
1886 fi
1887
1888 ac_exeext=$ac_cv_exeext
1889 echo "$as_me:$LINENO: result: $ac_file" >&5
1890 echo "${ECHO_T}$ac_file" >&6
1891
1892 # Check the compiler produces executables we can run.  If not, either
1893 # the compiler is broken, or we cross compile.
1894 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1895 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1896 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1897 # If not cross compiling, check that we can run a simple program.
1898 if test "$cross_compiling" != yes; then
1899   if { ac_try='./$ac_file'
1900   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1901   (eval $ac_try) 2>&5
1902   ac_status=$?
1903   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1904   (exit $ac_status); }; }; then
1905     cross_compiling=no
1906   else
1907     if test "$cross_compiling" = maybe; then
1908         cross_compiling=yes
1909     else
1910         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1911 If you meant to cross compile, use \`--host'.
1912 See \`config.log' for more details." >&5
1913 echo "$as_me: error: cannot run C compiled programs.
1914 If you meant to cross compile, use \`--host'.
1915 See \`config.log' for more details." >&2;}
1916    { (exit 1); exit 1; }; }
1917     fi
1918   fi
1919 fi
1920 echo "$as_me:$LINENO: result: yes" >&5
1921 echo "${ECHO_T}yes" >&6
1922
1923 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1924 ac_clean_files=$ac_clean_files_save
1925 # Check the compiler produces executables we can run.  If not, either
1926 # the compiler is broken, or we cross compile.
1927 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1928 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1929 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1930 echo "${ECHO_T}$cross_compiling" >&6
1931
1932 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1933 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1934 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1935   (eval $ac_link) 2>&5
1936   ac_status=$?
1937   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1938   (exit $ac_status); }; then
1939   # If both `conftest.exe' and `conftest' are `present' (well, observable)
1940 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
1941 # work properly (i.e., refer to `conftest.exe'), while it won't with
1942 # `rm'.
1943 for ac_file in conftest.exe conftest conftest.*; do
1944   test -f "$ac_file" || continue
1945   case $ac_file in
1946     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1947     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1948           export ac_cv_exeext
1949           break;;
1950     * ) break;;
1951   esac
1952 done
1953 else
1954   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1955 See \`config.log' for more details." >&5
1956 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1957 See \`config.log' for more details." >&2;}
1958    { (exit 1); exit 1; }; }
1959 fi
1960
1961 rm -f conftest$ac_cv_exeext
1962 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1963 echo "${ECHO_T}$ac_cv_exeext" >&6
1964
1965 rm -f conftest.$ac_ext
1966 EXEEXT=$ac_cv_exeext
1967 ac_exeext=$EXEEXT
1968 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1969 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1970 if test "${ac_cv_objext+set}" = set; then
1971   echo $ECHO_N "(cached) $ECHO_C" >&6
1972 else
1973   cat >conftest.$ac_ext <<_ACEOF
1974 #line $LINENO "configure"
1975 /* confdefs.h.  */
1976 _ACEOF
1977 cat confdefs.h >>conftest.$ac_ext
1978 cat >>conftest.$ac_ext <<_ACEOF
1979 /* end confdefs.h.  */
1980
1981 int
1982 main ()
1983 {
1984
1985   ;
1986   return 0;
1987 }
1988 _ACEOF
1989 rm -f conftest.o conftest.obj
1990 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1991   (eval $ac_compile) 2>&5
1992   ac_status=$?
1993   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1994   (exit $ac_status); }; then
1995   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1996   case $ac_file in
1997     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1998     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1999        break;;
2000   esac
2001 done
2002 else
2003   echo "$as_me: failed program was:" >&5
2004 sed 's/^/| /' conftest.$ac_ext >&5
2005
2006 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2007 See \`config.log' for more details." >&5
2008 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2009 See \`config.log' for more details." >&2;}
2010    { (exit 1); exit 1; }; }
2011 fi
2012
2013 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2014 fi
2015 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2016 echo "${ECHO_T}$ac_cv_objext" >&6
2017 OBJEXT=$ac_cv_objext
2018 ac_objext=$OBJEXT
2019 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2020 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2021 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2022   echo $ECHO_N "(cached) $ECHO_C" >&6
2023 else
2024   cat >conftest.$ac_ext <<_ACEOF
2025 #line $LINENO "configure"
2026 /* confdefs.h.  */
2027 _ACEOF
2028 cat confdefs.h >>conftest.$ac_ext
2029 cat >>conftest.$ac_ext <<_ACEOF
2030 /* end confdefs.h.  */
2031
2032 int
2033 main ()
2034 {
2035 #ifndef __GNUC__
2036        choke me
2037 #endif
2038
2039   ;
2040   return 0;
2041 }
2042 _ACEOF
2043 rm -f conftest.$ac_objext
2044 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2045   (eval $ac_compile) 2>&5
2046   ac_status=$?
2047   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2048   (exit $ac_status); } &&
2049          { ac_try='test -s conftest.$ac_objext'
2050   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2051   (eval $ac_try) 2>&5
2052   ac_status=$?
2053   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2054   (exit $ac_status); }; }; then
2055   ac_compiler_gnu=yes
2056 else
2057   echo "$as_me: failed program was:" >&5
2058 sed 's/^/| /' conftest.$ac_ext >&5
2059
2060 ac_compiler_gnu=no
2061 fi
2062 rm -f conftest.$ac_objext conftest.$ac_ext
2063 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2064
2065 fi
2066 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2067 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2068 GCC=`test $ac_compiler_gnu = yes && echo yes`
2069 ac_test_CFLAGS=${CFLAGS+set}
2070 ac_save_CFLAGS=$CFLAGS
2071 CFLAGS="-g"
2072 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2073 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2074 if test "${ac_cv_prog_cc_g+set}" = set; then
2075   echo $ECHO_N "(cached) $ECHO_C" >&6
2076 else
2077   cat >conftest.$ac_ext <<_ACEOF
2078 #line $LINENO "configure"
2079 /* confdefs.h.  */
2080 _ACEOF
2081 cat confdefs.h >>conftest.$ac_ext
2082 cat >>conftest.$ac_ext <<_ACEOF
2083 /* end confdefs.h.  */
2084
2085 int
2086 main ()
2087 {
2088
2089   ;
2090   return 0;
2091 }
2092 _ACEOF
2093 rm -f conftest.$ac_objext
2094 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2095   (eval $ac_compile) 2>&5
2096   ac_status=$?
2097   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2098   (exit $ac_status); } &&
2099          { ac_try='test -s conftest.$ac_objext'
2100   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2101   (eval $ac_try) 2>&5
2102   ac_status=$?
2103   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2104   (exit $ac_status); }; }; then
2105   ac_cv_prog_cc_g=yes
2106 else
2107   echo "$as_me: failed program was:" >&5
2108 sed 's/^/| /' conftest.$ac_ext >&5
2109
2110 ac_cv_prog_cc_g=no
2111 fi
2112 rm -f conftest.$ac_objext conftest.$ac_ext
2113 fi
2114 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2115 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2116 if test "$ac_test_CFLAGS" = set; then
2117   CFLAGS=$ac_save_CFLAGS
2118 elif test $ac_cv_prog_cc_g = yes; then
2119   if test "$GCC" = yes; then
2120     CFLAGS="-g -O2"
2121   else
2122     CFLAGS="-g"
2123   fi
2124 else
2125   if test "$GCC" = yes; then
2126     CFLAGS="-O2"
2127   else
2128     CFLAGS=
2129   fi
2130 fi
2131 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2132 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2133 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2134   echo $ECHO_N "(cached) $ECHO_C" >&6
2135 else
2136   ac_cv_prog_cc_stdc=no
2137 ac_save_CC=$CC
2138 cat >conftest.$ac_ext <<_ACEOF
2139 #line $LINENO "configure"
2140 /* confdefs.h.  */
2141 _ACEOF
2142 cat confdefs.h >>conftest.$ac_ext
2143 cat >>conftest.$ac_ext <<_ACEOF
2144 /* end confdefs.h.  */
2145 #include <stdarg.h>
2146 #include <stdio.h>
2147 #include <sys/types.h>
2148 #include <sys/stat.h>
2149 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2150 struct buf { int x; };
2151 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2152 static char *e (p, i)
2153      char **p;
2154      int i;
2155 {
2156   return p[i];
2157 }
2158 static char *f (char * (*g) (char **, int), char **p, ...)
2159 {
2160   char *s;
2161   va_list v;
2162   va_start (v,p);
2163   s = g (p, va_arg (v,int));
2164   va_end (v);
2165   return s;
2166 }
2167 int test (int i, double x);
2168 struct s1 {int (*f) (int a);};
2169 struct s2 {int (*f) (double a);};
2170 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2171 int argc;
2172 char **argv;
2173 int
2174 main ()
2175 {
2176 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2177   ;
2178   return 0;
2179 }
2180 _ACEOF
2181 # Don't try gcc -ansi; that turns off useful extensions and
2182 # breaks some systems' header files.
2183 # AIX                   -qlanglvl=ansi
2184 # Ultrix and OSF/1      -std1
2185 # HP-UX 10.20 and later -Ae
2186 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2187 # SVR4                  -Xc -D__EXTENSIONS__
2188 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2189 do
2190   CC="$ac_save_CC $ac_arg"
2191   rm -f conftest.$ac_objext
2192 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2193   (eval $ac_compile) 2>&5
2194   ac_status=$?
2195   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2196   (exit $ac_status); } &&
2197          { ac_try='test -s conftest.$ac_objext'
2198   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2199   (eval $ac_try) 2>&5
2200   ac_status=$?
2201   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2202   (exit $ac_status); }; }; then
2203   ac_cv_prog_cc_stdc=$ac_arg
2204 break
2205 else
2206   echo "$as_me: failed program was:" >&5
2207 sed 's/^/| /' conftest.$ac_ext >&5
2208
2209 fi
2210 rm -f conftest.$ac_objext
2211 done
2212 rm -f conftest.$ac_ext conftest.$ac_objext
2213 CC=$ac_save_CC
2214
2215 fi
2216
2217 case "x$ac_cv_prog_cc_stdc" in
2218   x|xno)
2219     echo "$as_me:$LINENO: result: none needed" >&5
2220 echo "${ECHO_T}none needed" >&6 ;;
2221   *)
2222     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2223 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2224     CC="$CC $ac_cv_prog_cc_stdc" ;;
2225 esac
2226
2227 # Some people use a C++ compiler to compile C.  Since we use `exit',
2228 # in C++ we need to declare it.  In case someone uses the same compiler
2229 # for both compiling C and C++ we need to have the C++ compiler decide
2230 # the declaration of exit, since it's the most demanding environment.
2231 cat >conftest.$ac_ext <<_ACEOF
2232 #ifndef __cplusplus
2233   choke me
2234 #endif
2235 _ACEOF
2236 rm -f conftest.$ac_objext
2237 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2238   (eval $ac_compile) 2>&5
2239   ac_status=$?
2240   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2241   (exit $ac_status); } &&
2242          { ac_try='test -s conftest.$ac_objext'
2243   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2244   (eval $ac_try) 2>&5
2245   ac_status=$?
2246   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2247   (exit $ac_status); }; }; then
2248   for ac_declaration in \
2249    '' \
2250    'extern "C" void std::exit (int) throw (); using std::exit;' \
2251    'extern "C" void std::exit (int); using std::exit;' \
2252    'extern "C" void exit (int) throw ();' \
2253    'extern "C" void exit (int);' \
2254    'void exit (int);'
2255 do
2256   cat >conftest.$ac_ext <<_ACEOF
2257 #line $LINENO "configure"
2258 /* confdefs.h.  */
2259 _ACEOF
2260 cat confdefs.h >>conftest.$ac_ext
2261 cat >>conftest.$ac_ext <<_ACEOF
2262 /* end confdefs.h.  */
2263 $ac_declaration
2264 #include <stdlib.h>
2265 int
2266 main ()
2267 {
2268 exit (42);
2269   ;
2270   return 0;
2271 }
2272 _ACEOF
2273 rm -f conftest.$ac_objext
2274 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2275   (eval $ac_compile) 2>&5
2276   ac_status=$?
2277   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2278   (exit $ac_status); } &&
2279          { ac_try='test -s conftest.$ac_objext'
2280   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2281   (eval $ac_try) 2>&5
2282   ac_status=$?
2283   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2284   (exit $ac_status); }; }; then
2285   :
2286 else
2287   echo "$as_me: failed program was:" >&5
2288 sed 's/^/| /' conftest.$ac_ext >&5
2289
2290 continue
2291 fi
2292 rm -f conftest.$ac_objext conftest.$ac_ext
2293   cat >conftest.$ac_ext <<_ACEOF
2294 #line $LINENO "configure"
2295 /* confdefs.h.  */
2296 _ACEOF
2297 cat confdefs.h >>conftest.$ac_ext
2298 cat >>conftest.$ac_ext <<_ACEOF
2299 /* end confdefs.h.  */
2300 $ac_declaration
2301 int
2302 main ()
2303 {
2304 exit (42);
2305   ;
2306   return 0;
2307 }
2308 _ACEOF
2309 rm -f conftest.$ac_objext
2310 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2311   (eval $ac_compile) 2>&5
2312   ac_status=$?
2313   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2314   (exit $ac_status); } &&
2315          { ac_try='test -s conftest.$ac_objext'
2316   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2317   (eval $ac_try) 2>&5
2318   ac_status=$?
2319   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2320   (exit $ac_status); }; }; then
2321   break
2322 else
2323   echo "$as_me: failed program was:" >&5
2324 sed 's/^/| /' conftest.$ac_ext >&5
2325
2326 fi
2327 rm -f conftest.$ac_objext conftest.$ac_ext
2328 done
2329 rm -f conftest*
2330 if test -n "$ac_declaration"; then
2331   echo '#ifdef __cplusplus' >>confdefs.h
2332   echo $ac_declaration      >>confdefs.h
2333   echo '#endif'             >>confdefs.h
2334 fi
2335
2336 else
2337   echo "$as_me: failed program was:" >&5
2338 sed 's/^/| /' conftest.$ac_ext >&5
2339
2340 fi
2341 rm -f conftest.$ac_objext conftest.$ac_ext
2342 ac_ext=c
2343 ac_cpp='$CPP $CPPFLAGS'
2344 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2345 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2346 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2347
2348 ac_ext=c
2349 ac_cpp='$CPP $CPPFLAGS'
2350 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2351 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2352 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2353 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2354 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2355 # On Suns, sometimes $CPP names a directory.
2356 if test -n "$CPP" && test -d "$CPP"; then
2357   CPP=
2358 fi
2359 if test -z "$CPP"; then
2360   if test "${ac_cv_prog_CPP+set}" = set; then
2361   echo $ECHO_N "(cached) $ECHO_C" >&6
2362 else
2363       # Double quotes because CPP needs to be expanded
2364     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2365     do
2366       ac_preproc_ok=false
2367 for ac_c_preproc_warn_flag in '' yes
2368 do
2369   # Use a header file that comes with gcc, so configuring glibc
2370   # with a fresh cross-compiler works.
2371   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2372   # <limits.h> exists even on freestanding compilers.
2373   # On the NeXT, cc -E runs the code through the compiler's parser,
2374   # not just through cpp. "Syntax error" is here to catch this case.
2375   cat >conftest.$ac_ext <<_ACEOF
2376 #line $LINENO "configure"
2377 /* confdefs.h.  */
2378 _ACEOF
2379 cat confdefs.h >>conftest.$ac_ext
2380 cat >>conftest.$ac_ext <<_ACEOF
2381 /* end confdefs.h.  */
2382 #ifdef __STDC__
2383 # include <limits.h>
2384 #else
2385 # include <assert.h>
2386 #endif
2387                      Syntax error
2388 _ACEOF
2389 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2390   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2391   ac_status=$?
2392   grep -v '^ *+' conftest.er1 >conftest.err
2393   rm -f conftest.er1
2394   cat conftest.err >&5
2395   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2396   (exit $ac_status); } >/dev/null; then
2397   if test -s conftest.err; then
2398     ac_cpp_err=$ac_c_preproc_warn_flag
2399   else
2400     ac_cpp_err=
2401   fi
2402 else
2403   ac_cpp_err=yes
2404 fi
2405 if test -z "$ac_cpp_err"; then
2406   :
2407 else
2408   echo "$as_me: failed program was:" >&5
2409 sed 's/^/| /' conftest.$ac_ext >&5
2410
2411   # Broken: fails on valid input.
2412 continue
2413 fi
2414 rm -f conftest.err conftest.$ac_ext
2415
2416   # OK, works on sane cases.  Now check whether non-existent headers
2417   # can be detected and how.
2418   cat >conftest.$ac_ext <<_ACEOF
2419 #line $LINENO "configure"
2420 /* confdefs.h.  */
2421 _ACEOF
2422 cat confdefs.h >>conftest.$ac_ext
2423 cat >>conftest.$ac_ext <<_ACEOF
2424 /* end confdefs.h.  */
2425 #include <ac_nonexistent.h>
2426 _ACEOF
2427 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2428   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2429   ac_status=$?
2430   grep -v '^ *+' conftest.er1 >conftest.err
2431   rm -f conftest.er1
2432   cat conftest.err >&5
2433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2434   (exit $ac_status); } >/dev/null; then
2435   if test -s conftest.err; then
2436     ac_cpp_err=$ac_c_preproc_warn_flag
2437   else
2438     ac_cpp_err=
2439   fi
2440 else
2441   ac_cpp_err=yes
2442 fi
2443 if test -z "$ac_cpp_err"; then
2444   # Broken: success on invalid input.
2445 continue
2446 else
2447   echo "$as_me: failed program was:" >&5
2448 sed 's/^/| /' conftest.$ac_ext >&5
2449
2450   # Passes both tests.
2451 ac_preproc_ok=:
2452 break
2453 fi
2454 rm -f conftest.err conftest.$ac_ext
2455
2456 done
2457 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2458 rm -f conftest.err conftest.$ac_ext
2459 if $ac_preproc_ok; then
2460   break
2461 fi
2462
2463     done
2464     ac_cv_prog_CPP=$CPP
2465
2466 fi
2467   CPP=$ac_cv_prog_CPP
2468 else
2469   ac_cv_prog_CPP=$CPP
2470 fi
2471 echo "$as_me:$LINENO: result: $CPP" >&5
2472 echo "${ECHO_T}$CPP" >&6
2473 ac_preproc_ok=false
2474 for ac_c_preproc_warn_flag in '' yes
2475 do
2476   # Use a header file that comes with gcc, so configuring glibc
2477   # with a fresh cross-compiler works.
2478   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2479   # <limits.h> exists even on freestanding compilers.
2480   # On the NeXT, cc -E runs the code through the compiler's parser,
2481   # not just through cpp. "Syntax error" is here to catch this case.
2482   cat >conftest.$ac_ext <<_ACEOF
2483 #line $LINENO "configure"
2484 /* confdefs.h.  */
2485 _ACEOF
2486 cat confdefs.h >>conftest.$ac_ext
2487 cat >>conftest.$ac_ext <<_ACEOF
2488 /* end confdefs.h.  */
2489 #ifdef __STDC__
2490 # include <limits.h>
2491 #else
2492 # include <assert.h>
2493 #endif
2494                      Syntax error
2495 _ACEOF
2496 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2497   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2498   ac_status=$?
2499   grep -v '^ *+' conftest.er1 >conftest.err
2500   rm -f conftest.er1
2501   cat conftest.err >&5
2502   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2503   (exit $ac_status); } >/dev/null; then
2504   if test -s conftest.err; then
2505     ac_cpp_err=$ac_c_preproc_warn_flag
2506   else
2507     ac_cpp_err=
2508   fi
2509 else
2510   ac_cpp_err=yes
2511 fi
2512 if test -z "$ac_cpp_err"; then
2513   :
2514 else
2515   echo "$as_me: failed program was:" >&5
2516 sed 's/^/| /' conftest.$ac_ext >&5
2517
2518   # Broken: fails on valid input.
2519 continue
2520 fi
2521 rm -f conftest.err conftest.$ac_ext
2522
2523   # OK, works on sane cases.  Now check whether non-existent headers
2524   # can be detected and how.
2525   cat >conftest.$ac_ext <<_ACEOF
2526 #line $LINENO "configure"
2527 /* confdefs.h.  */
2528 _ACEOF
2529 cat confdefs.h >>conftest.$ac_ext
2530 cat >>conftest.$ac_ext <<_ACEOF
2531 /* end confdefs.h.  */
2532 #include <ac_nonexistent.h>
2533 _ACEOF
2534 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2535   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2536   ac_status=$?
2537   grep -v '^ *+' conftest.er1 >conftest.err
2538   rm -f conftest.er1
2539   cat conftest.err >&5
2540   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2541   (exit $ac_status); } >/dev/null; then
2542   if test -s conftest.err; then
2543     ac_cpp_err=$ac_c_preproc_warn_flag
2544   else
2545     ac_cpp_err=
2546   fi
2547 else
2548   ac_cpp_err=yes
2549 fi
2550 if test -z "$ac_cpp_err"; then
2551   # Broken: success on invalid input.
2552 continue
2553 else
2554   echo "$as_me: failed program was:" >&5
2555 sed 's/^/| /' conftest.$ac_ext >&5
2556
2557   # Passes both tests.
2558 ac_preproc_ok=:
2559 break
2560 fi
2561 rm -f conftest.err conftest.$ac_ext
2562
2563 done
2564 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2565 rm -f conftest.err conftest.$ac_ext
2566 if $ac_preproc_ok; then
2567   :
2568 else
2569   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2570 See \`config.log' for more details." >&5
2571 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2572 See \`config.log' for more details." >&2;}
2573    { (exit 1); exit 1; }; }
2574 fi
2575
2576 ac_ext=c
2577 ac_cpp='$CPP $CPPFLAGS'
2578 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2579 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2580 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2581
2582
2583 echo "$as_me:$LINENO: checking for the directory containing the Wine tools" >&5
2584 echo $ECHO_N "checking for the directory containing the Wine tools... $ECHO_C" >&6
2585 if test "${wine_cv_toolsdir+set}" = set; then
2586   echo $ECHO_N "(cached) $ECHO_C" >&6
2587 else
2588   if test -z "$with_wine_tools"; then
2589      if test "$cross_compiling" = "yes"; then
2590        { { echo "$as_me:$LINENO: error: you must use the --with-wine-tools option when cross-compiling." >&5
2591 echo "$as_me: error: you must use the --with-wine-tools option when cross-compiling." >&2;}
2592    { (exit 1); exit 1; }; }
2593      else
2594        wine_cv_toolsdir="\$(TOPOBJDIR)"
2595      fi
2596    elif test -d "$with_wine_tools/tools/winebuild"; then
2597      case $with_wine_tools in
2598        /*) wine_cv_toolsdir="$with_wine_tools" ;;
2599        *)  wine_cv_toolsdir="\$(TOPOBJDIR)/$with_wine_tools" ;;
2600      esac
2601    else
2602      { { echo "$as_me:$LINENO: error: could not find Wine tools in $with_wine_tools." >&5
2603 echo "$as_me: error: could not find Wine tools in $with_wine_tools." >&2;}
2604    { (exit 1); exit 1; }; }
2605    fi
2606 fi
2607 echo "$as_me:$LINENO: result: $wine_cv_toolsdir" >&5
2608 echo "${ECHO_T}$wine_cv_toolsdir" >&6
2609 TOOLSDIR=$wine_cv_toolsdir
2610
2611
2612
2613
2614 echo "$as_me:$LINENO: checking for X" >&5
2615 echo $ECHO_N "checking for X... $ECHO_C" >&6
2616
2617
2618 # Check whether --with-x or --without-x was given.
2619 if test "${with_x+set}" = set; then
2620   withval="$with_x"
2621
2622 fi;
2623 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
2624 if test "x$with_x" = xno; then
2625   # The user explicitly disabled X.
2626   have_x=disabled
2627 else
2628   if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
2629     # Both variables are already set.
2630     have_x=yes
2631   else
2632     if test "${ac_cv_have_x+set}" = set; then
2633   echo $ECHO_N "(cached) $ECHO_C" >&6
2634 else
2635   # One or both of the vars are not set, and there is no cached value.
2636 ac_x_includes=no ac_x_libraries=no
2637 rm -fr conftest.dir
2638 if mkdir conftest.dir; then
2639   cd conftest.dir
2640   # Make sure to not put "make" in the Imakefile rules, since we grep it out.
2641   cat >Imakefile <<'_ACEOF'
2642 acfindx:
2643         @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
2644 _ACEOF
2645   if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
2646     # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2647     eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
2648     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
2649     for ac_extension in a so sl; do
2650       if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
2651          test -f $ac_im_libdir/libX11.$ac_extension; then
2652         ac_im_usrlibdir=$ac_im_libdir; break
2653       fi
2654     done
2655     # Screen out bogus values from the imake configuration.  They are
2656     # bogus both because they are the default anyway, and because
2657     # using them would break gcc on systems where it needs fixed includes.
2658     case $ac_im_incroot in
2659         /usr/include) ;;
2660         *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
2661     esac
2662     case $ac_im_usrlibdir in
2663         /usr/lib | /lib) ;;
2664         *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
2665     esac
2666   fi
2667   cd ..
2668   rm -fr conftest.dir
2669 fi
2670
2671 # Standard set of common directories for X headers.
2672 # Check X11 before X11Rn because it is often a symlink to the current release.
2673 ac_x_header_dirs='
2674 /usr/X11/include
2675 /usr/X11R6/include
2676 /usr/X11R5/include
2677 /usr/X11R4/include
2678
2679 /usr/include/X11
2680 /usr/include/X11R6
2681 /usr/include/X11R5
2682 /usr/include/X11R4
2683
2684 /usr/local/X11/include
2685 /usr/local/X11R6/include
2686 /usr/local/X11R5/include
2687 /usr/local/X11R4/include
2688
2689 /usr/local/include/X11
2690 /usr/local/include/X11R6
2691 /usr/local/include/X11R5
2692 /usr/local/include/X11R4
2693
2694 /usr/X386/include
2695 /usr/x386/include
2696 /usr/XFree86/include/X11
2697
2698 /usr/include
2699 /usr/local/include
2700 /usr/unsupported/include
2701 /usr/athena/include
2702 /usr/local/x11r5/include
2703 /usr/lpp/Xamples/include
2704
2705 /usr/openwin/include
2706 /usr/openwin/share/include'
2707
2708 if test "$ac_x_includes" = no; then
2709   # Guess where to find include files, by looking for Intrinsic.h.
2710   # First, try using that file with no special directory specified.
2711   cat >conftest.$ac_ext <<_ACEOF
2712 #line $LINENO "configure"
2713 /* confdefs.h.  */
2714 _ACEOF
2715 cat confdefs.h >>conftest.$ac_ext
2716 cat >>conftest.$ac_ext <<_ACEOF
2717 /* end confdefs.h.  */
2718 #include <X11/Intrinsic.h>
2719 _ACEOF
2720 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2721   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2722   ac_status=$?
2723   grep -v '^ *+' conftest.er1 >conftest.err
2724   rm -f conftest.er1
2725   cat conftest.err >&5
2726   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2727   (exit $ac_status); } >/dev/null; then
2728   if test -s conftest.err; then
2729     ac_cpp_err=$ac_c_preproc_warn_flag
2730   else
2731     ac_cpp_err=
2732   fi
2733 else
2734   ac_cpp_err=yes
2735 fi
2736 if test -z "$ac_cpp_err"; then
2737   # We can compile using X headers with no special include directory.
2738 ac_x_includes=
2739 else
2740   echo "$as_me: failed program was:" >&5
2741 sed 's/^/| /' conftest.$ac_ext >&5
2742
2743   for ac_dir in $ac_x_header_dirs; do
2744   if test -r "$ac_dir/X11/Intrinsic.h"; then
2745     ac_x_includes=$ac_dir
2746     break
2747   fi
2748 done
2749 fi
2750 rm -f conftest.err conftest.$ac_ext
2751 fi # $ac_x_includes = no
2752
2753 if test "$ac_x_libraries" = no; then
2754   # Check for the libraries.
2755   # See if we find them without any special options.
2756   # Don't add to $LIBS permanently.
2757   ac_save_LIBS=$LIBS
2758   LIBS="-lXt $LIBS"
2759   cat >conftest.$ac_ext <<_ACEOF
2760 #line $LINENO "configure"
2761 /* confdefs.h.  */
2762 _ACEOF
2763 cat confdefs.h >>conftest.$ac_ext
2764 cat >>conftest.$ac_ext <<_ACEOF
2765 /* end confdefs.h.  */
2766 #include <X11/Intrinsic.h>
2767 int
2768 main ()
2769 {
2770 XtMalloc (0)
2771   ;
2772   return 0;
2773 }
2774 _ACEOF
2775 rm -f conftest.$ac_objext conftest$ac_exeext
2776 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2777   (eval $ac_link) 2>&5
2778   ac_status=$?
2779   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2780   (exit $ac_status); } &&
2781          { ac_try='test -s conftest$ac_exeext'
2782   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2783   (eval $ac_try) 2>&5
2784   ac_status=$?
2785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2786   (exit $ac_status); }; }; then
2787   LIBS=$ac_save_LIBS
2788 # We can link X programs with no special library path.
2789 ac_x_libraries=
2790 else
2791   echo "$as_me: failed program was:" >&5
2792 sed 's/^/| /' conftest.$ac_ext >&5
2793
2794 LIBS=$ac_save_LIBS
2795 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
2796 do
2797   # Don't even attempt the hair of trying to link an X program!
2798   for ac_extension in a so sl; do
2799     if test -r $ac_dir/libXt.$ac_extension; then
2800       ac_x_libraries=$ac_dir
2801       break 2
2802     fi
2803   done
2804 done
2805 fi
2806 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2807 fi # $ac_x_libraries = no
2808
2809 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
2810   # Didn't find X anywhere.  Cache the known absence of X.
2811   ac_cv_have_x="have_x=no"
2812 else
2813   # Record where we found X for the cache.
2814   ac_cv_have_x="have_x=yes \
2815                 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
2816 fi
2817 fi
2818
2819   fi
2820   eval "$ac_cv_have_x"
2821 fi # $with_x != no
2822
2823 if test "$have_x" != yes; then
2824   echo "$as_me:$LINENO: result: $have_x" >&5
2825 echo "${ECHO_T}$have_x" >&6
2826   no_x=yes
2827 else
2828   # If each of the values was on the command line, it overrides each guess.
2829   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
2830   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
2831   # Update the cache value to reflect the command line values.
2832   ac_cv_have_x="have_x=yes \
2833                 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
2834   echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
2835 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
2836 fi
2837
2838 if test "$no_x" = yes; then
2839   # Not all programs may use this symbol, but it does not hurt to define it.
2840
2841 cat >>confdefs.h <<\_ACEOF
2842 #define X_DISPLAY_MISSING 1
2843 _ACEOF
2844
2845   X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
2846 else
2847   if test -n "$x_includes"; then
2848     X_CFLAGS="$X_CFLAGS -I$x_includes"
2849   fi
2850
2851   # It would also be nice to do this for all -L options, not just this one.
2852   if test -n "$x_libraries"; then
2853     X_LIBS="$X_LIBS -L$x_libraries"
2854     # For Solaris; some versions of Sun CC require a space after -R and
2855     # others require no space.  Words are not sufficient . . . .
2856     case `(uname -sr) 2>/dev/null` in
2857     "SunOS 5"*)
2858       echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
2859 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
2860       ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
2861       cat >conftest.$ac_ext <<_ACEOF
2862 #line $LINENO "configure"
2863 /* confdefs.h.  */
2864 _ACEOF
2865 cat confdefs.h >>conftest.$ac_ext
2866 cat >>conftest.$ac_ext <<_ACEOF
2867 /* end confdefs.h.  */
2868
2869 int
2870 main ()
2871 {
2872
2873   ;
2874   return 0;
2875 }
2876 _ACEOF
2877 rm -f conftest.$ac_objext conftest$ac_exeext
2878 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2879   (eval $ac_link) 2>&5
2880   ac_status=$?
2881   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2882   (exit $ac_status); } &&
2883          { ac_try='test -s conftest$ac_exeext'
2884   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2885   (eval $ac_try) 2>&5
2886   ac_status=$?
2887   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2888   (exit $ac_status); }; }; then
2889   ac_R_nospace=yes
2890 else
2891   echo "$as_me: failed program was:" >&5
2892 sed 's/^/| /' conftest.$ac_ext >&5
2893
2894 ac_R_nospace=no
2895 fi
2896 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2897       if test $ac_R_nospace = yes; then
2898         echo "$as_me:$LINENO: result: no" >&5
2899 echo "${ECHO_T}no" >&6
2900         X_LIBS="$X_LIBS -R$x_libraries"
2901       else
2902         LIBS="$ac_xsave_LIBS -R $x_libraries"
2903         cat >conftest.$ac_ext <<_ACEOF
2904 #line $LINENO "configure"
2905 /* confdefs.h.  */
2906 _ACEOF
2907 cat confdefs.h >>conftest.$ac_ext
2908 cat >>conftest.$ac_ext <<_ACEOF
2909 /* end confdefs.h.  */
2910
2911 int
2912 main ()
2913 {
2914
2915   ;
2916   return 0;
2917 }
2918 _ACEOF
2919 rm -f conftest.$ac_objext conftest$ac_exeext
2920 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2921   (eval $ac_link) 2>&5
2922   ac_status=$?
2923   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2924   (exit $ac_status); } &&
2925          { ac_try='test -s conftest$ac_exeext'
2926   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2927   (eval $ac_try) 2>&5
2928   ac_status=$?
2929   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2930   (exit $ac_status); }; }; then
2931   ac_R_space=yes
2932 else
2933   echo "$as_me: failed program was:" >&5
2934 sed 's/^/| /' conftest.$ac_ext >&5
2935
2936 ac_R_space=no
2937 fi
2938 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2939         if test $ac_R_space = yes; then
2940           echo "$as_me:$LINENO: result: yes" >&5
2941 echo "${ECHO_T}yes" >&6
2942           X_LIBS="$X_LIBS -R $x_libraries"
2943         else
2944           echo "$as_me:$LINENO: result: neither works" >&5
2945 echo "${ECHO_T}neither works" >&6
2946         fi
2947       fi
2948       LIBS=$ac_xsave_LIBS
2949     esac
2950   fi
2951
2952   # Check for system-dependent libraries X programs must link with.
2953   # Do this before checking for the system-independent R6 libraries
2954   # (-lICE), since we may need -lsocket or whatever for X linking.
2955
2956   if test "$ISC" = yes; then
2957     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
2958   else
2959     # Martyn Johnson says this is needed for Ultrix, if the X
2960     # libraries were built with DECnet support.  And Karl Berry says
2961     # the Alpha needs dnet_stub (dnet does not exist).
2962     ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
2963     cat >conftest.$ac_ext <<_ACEOF
2964 #line $LINENO "configure"
2965 /* confdefs.h.  */
2966 _ACEOF
2967 cat confdefs.h >>conftest.$ac_ext
2968 cat >>conftest.$ac_ext <<_ACEOF
2969 /* end confdefs.h.  */
2970
2971 /* Override any gcc2 internal prototype to avoid an error.  */
2972 #ifdef __cplusplus
2973 extern "C"
2974 #endif
2975 /* We use char because int might match the return type of a gcc2
2976    builtin and then its argument prototype would still apply.  */
2977 char XOpenDisplay ();
2978 int
2979 main ()
2980 {
2981 XOpenDisplay ();
2982   ;
2983   return 0;
2984 }
2985 _ACEOF
2986 rm -f conftest.$ac_objext conftest$ac_exeext
2987 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2988   (eval $ac_link) 2>&5
2989   ac_status=$?
2990   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2991   (exit $ac_status); } &&
2992          { ac_try='test -s conftest$ac_exeext'
2993   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2994   (eval $ac_try) 2>&5
2995   ac_status=$?
2996   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2997   (exit $ac_status); }; }; then
2998   :
2999 else
3000   echo "$as_me: failed program was:" >&5
3001 sed 's/^/| /' conftest.$ac_ext >&5
3002
3003 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
3004 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
3005 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
3006   echo $ECHO_N "(cached) $ECHO_C" >&6
3007 else
3008   ac_check_lib_save_LIBS=$LIBS
3009 LIBS="-ldnet  $LIBS"
3010 cat >conftest.$ac_ext <<_ACEOF
3011 #line $LINENO "configure"
3012 /* confdefs.h.  */
3013 _ACEOF
3014 cat confdefs.h >>conftest.$ac_ext
3015 cat >>conftest.$ac_ext <<_ACEOF
3016 /* end confdefs.h.  */
3017
3018 /* Override any gcc2 internal prototype to avoid an error.  */
3019 #ifdef __cplusplus
3020 extern "C"
3021 #endif
3022 /* We use char because int might match the return type of a gcc2
3023    builtin and then its argument prototype would still apply.  */
3024 char dnet_ntoa ();
3025 int
3026 main ()
3027 {
3028 dnet_ntoa ();
3029   ;
3030   return 0;
3031 }
3032 _ACEOF
3033 rm -f conftest.$ac_objext conftest$ac_exeext
3034 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3035   (eval $ac_link) 2>&5
3036   ac_status=$?
3037   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3038   (exit $ac_status); } &&
3039          { ac_try='test -s conftest$ac_exeext'
3040   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3041   (eval $ac_try) 2>&5
3042   ac_status=$?
3043   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3044   (exit $ac_status); }; }; then
3045   ac_cv_lib_dnet_dnet_ntoa=yes
3046 else
3047   echo "$as_me: failed program was:" >&5
3048 sed 's/^/| /' conftest.$ac_ext >&5
3049
3050 ac_cv_lib_dnet_dnet_ntoa=no
3051 fi
3052 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3053 LIBS=$ac_check_lib_save_LIBS
3054 fi
3055 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
3056 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
3057 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
3058   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
3059 fi
3060
3061     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
3062       echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
3063 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
3064 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
3065   echo $ECHO_N "(cached) $ECHO_C" >&6
3066 else
3067   ac_check_lib_save_LIBS=$LIBS
3068 LIBS="-ldnet_stub  $LIBS"
3069 cat >conftest.$ac_ext <<_ACEOF
3070 #line $LINENO "configure"
3071 /* confdefs.h.  */
3072 _ACEOF
3073 cat confdefs.h >>conftest.$ac_ext
3074 cat >>conftest.$ac_ext <<_ACEOF
3075 /* end confdefs.h.  */
3076
3077 /* Override any gcc2 internal prototype to avoid an error.  */
3078 #ifdef __cplusplus
3079 extern "C"
3080 #endif
3081 /* We use char because int might match the return type of a gcc2
3082    builtin and then its argument prototype would still apply.  */
3083 char dnet_ntoa ();
3084 int
3085 main ()
3086 {
3087 dnet_ntoa ();
3088   ;
3089   return 0;
3090 }
3091 _ACEOF
3092 rm -f conftest.$ac_objext conftest$ac_exeext
3093 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3094   (eval $ac_link) 2>&5
3095   ac_status=$?
3096   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3097   (exit $ac_status); } &&
3098          { ac_try='test -s conftest$ac_exeext'
3099   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3100   (eval $ac_try) 2>&5
3101   ac_status=$?
3102   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3103   (exit $ac_status); }; }; then
3104   ac_cv_lib_dnet_stub_dnet_ntoa=yes
3105 else
3106   echo "$as_me: failed program was:" >&5
3107 sed 's/^/| /' conftest.$ac_ext >&5
3108
3109 ac_cv_lib_dnet_stub_dnet_ntoa=no
3110 fi
3111 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3112 LIBS=$ac_check_lib_save_LIBS
3113 fi
3114 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
3115 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
3116 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
3117   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
3118 fi
3119
3120     fi
3121 fi
3122 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3123     LIBS="$ac_xsave_LIBS"
3124
3125     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
3126     # to get the SysV transport functions.
3127     # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
3128     # needs -lnsl.
3129     # The nsl library prevents programs from opening the X display
3130     # on Irix 5.2, according to T.E. Dickey.
3131     # The functions gethostbyname, getservbyname, and inet_addr are
3132     # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
3133     echo "$as_me:$LINENO: checking for gethostbyname" >&5
3134 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
3135 if test "${ac_cv_func_gethostbyname+set}" = set; then
3136   echo $ECHO_N "(cached) $ECHO_C" >&6
3137 else
3138   cat >conftest.$ac_ext <<_ACEOF
3139 #line $LINENO "configure"
3140 /* confdefs.h.  */
3141 _ACEOF
3142 cat confdefs.h >>conftest.$ac_ext
3143 cat >>conftest.$ac_ext <<_ACEOF
3144 /* end confdefs.h.  */
3145 /* System header to define __stub macros and hopefully few prototypes,
3146     which can conflict with char gethostbyname (); below.
3147     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3148     <limits.h> exists even on freestanding compilers.  */
3149 #ifdef __STDC__
3150 # include <limits.h>
3151 #else
3152 # include <assert.h>
3153 #endif
3154 /* Override any gcc2 internal prototype to avoid an error.  */
3155 #ifdef __cplusplus
3156 extern "C"
3157 {
3158 #endif
3159 /* We use char because int might match the return type of a gcc2
3160    builtin and then its argument prototype would still apply.  */
3161 char gethostbyname ();
3162 /* The GNU C library defines this for functions which it implements
3163     to always fail with ENOSYS.  Some functions are actually named
3164     something starting with __ and the normal name is an alias.  */
3165 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
3166 choke me
3167 #else
3168 char (*f) () = gethostbyname;
3169 #endif
3170 #ifdef __cplusplus
3171 }
3172 #endif
3173
3174 int
3175 main ()
3176 {
3177 return f != gethostbyname;
3178   ;
3179   return 0;
3180 }
3181 _ACEOF
3182 rm -f conftest.$ac_objext conftest$ac_exeext
3183 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3184   (eval $ac_link) 2>&5
3185   ac_status=$?
3186   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3187   (exit $ac_status); } &&
3188          { ac_try='test -s conftest$ac_exeext'
3189   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3190   (eval $ac_try) 2>&5
3191   ac_status=$?
3192   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3193   (exit $ac_status); }; }; then
3194   ac_cv_func_gethostbyname=yes
3195 else
3196   echo "$as_me: failed program was:" >&5
3197 sed 's/^/| /' conftest.$ac_ext >&5
3198
3199 ac_cv_func_gethostbyname=no
3200 fi
3201 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3202 fi
3203 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
3204 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
3205
3206     if test $ac_cv_func_gethostbyname = no; then
3207       echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
3208 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
3209 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
3210   echo $ECHO_N "(cached) $ECHO_C" >&6
3211 else
3212   ac_check_lib_save_LIBS=$LIBS
3213 LIBS="-lnsl  $LIBS"
3214 cat >conftest.$ac_ext <<_ACEOF
3215 #line $LINENO "configure"
3216 /* confdefs.h.  */
3217 _ACEOF
3218 cat confdefs.h >>conftest.$ac_ext
3219 cat >>conftest.$ac_ext <<_ACEOF
3220 /* end confdefs.h.  */
3221
3222 /* Override any gcc2 internal prototype to avoid an error.  */
3223 #ifdef __cplusplus
3224 extern "C"
3225 #endif
3226 /* We use char because int might match the return type of a gcc2
3227    builtin and then its argument prototype would still apply.  */
3228 char gethostbyname ();
3229 int
3230 main ()
3231 {
3232 gethostbyname ();
3233   ;
3234   return 0;
3235 }
3236 _ACEOF
3237 rm -f conftest.$ac_objext conftest$ac_exeext
3238 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3239   (eval $ac_link) 2>&5
3240   ac_status=$?
3241   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3242   (exit $ac_status); } &&
3243          { ac_try='test -s conftest$ac_exeext'
3244   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3245   (eval $ac_try) 2>&5
3246   ac_status=$?
3247   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3248   (exit $ac_status); }; }; then
3249   ac_cv_lib_nsl_gethostbyname=yes
3250 else
3251   echo "$as_me: failed program was:" >&5
3252 sed 's/^/| /' conftest.$ac_ext >&5
3253
3254 ac_cv_lib_nsl_gethostbyname=no
3255 fi
3256 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3257 LIBS=$ac_check_lib_save_LIBS
3258 fi
3259 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
3260 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
3261 if test $ac_cv_lib_nsl_gethostbyname = yes; then
3262   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
3263 fi
3264
3265       if test $ac_cv_lib_nsl_gethostbyname = no; then
3266         echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
3267 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
3268 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
3269   echo $ECHO_N "(cached) $ECHO_C" >&6
3270 else
3271   ac_check_lib_save_LIBS=$LIBS
3272 LIBS="-lbsd  $LIBS"
3273 cat >conftest.$ac_ext <<_ACEOF
3274 #line $LINENO "configure"
3275 /* confdefs.h.  */
3276 _ACEOF
3277 cat confdefs.h >>conftest.$ac_ext
3278 cat >>conftest.$ac_ext <<_ACEOF
3279 /* end confdefs.h.  */
3280
3281 /* Override any gcc2 internal prototype to avoid an error.  */
3282 #ifdef __cplusplus
3283 extern "C"
3284 #endif
3285 /* We use char because int might match the return type of a gcc2
3286    builtin and then its argument prototype would still apply.  */
3287 char gethostbyname ();
3288 int
3289 main ()
3290 {
3291 gethostbyname ();
3292   ;
3293   return 0;
3294 }
3295 _ACEOF
3296 rm -f conftest.$ac_objext conftest$ac_exeext
3297 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3298   (eval $ac_link) 2>&5
3299   ac_status=$?
3300   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3301   (exit $ac_status); } &&
3302          { ac_try='test -s conftest$ac_exeext'
3303   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3304   (eval $ac_try) 2>&5
3305   ac_status=$?
3306   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3307   (exit $ac_status); }; }; then
3308   ac_cv_lib_bsd_gethostbyname=yes
3309 else
3310   echo "$as_me: failed program was:" >&5
3311 sed 's/^/| /' conftest.$ac_ext >&5
3312
3313 ac_cv_lib_bsd_gethostbyname=no
3314 fi
3315 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3316 LIBS=$ac_check_lib_save_LIBS
3317 fi
3318 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
3319 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
3320 if test $ac_cv_lib_bsd_gethostbyname = yes; then
3321   X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
3322 fi
3323
3324       fi
3325     fi
3326
3327     # lieder@skyler.mavd.honeywell.com says without -lsocket,
3328     # socket/setsockopt and other routines are undefined under SCO ODT
3329     # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
3330     # on later versions), says Simon Leinen: it contains gethostby*
3331     # variants that don't use the name server (or something).  -lsocket
3332     # must be given before -lnsl if both are needed.  We assume that
3333     # if connect needs -lnsl, so does gethostbyname.
3334     echo "$as_me:$LINENO: checking for connect" >&5
3335 echo $ECHO_N "checking for connect... $ECHO_C" >&6
3336 if test "${ac_cv_func_connect+set}" = set; then
3337   echo $ECHO_N "(cached) $ECHO_C" >&6
3338 else
3339   cat >conftest.$ac_ext <<_ACEOF
3340 #line $LINENO "configure"
3341 /* confdefs.h.  */
3342 _ACEOF
3343 cat confdefs.h >>conftest.$ac_ext
3344 cat >>conftest.$ac_ext <<_ACEOF
3345 /* end confdefs.h.  */
3346 /* System header to define __stub macros and hopefully few prototypes,
3347     which can conflict with char connect (); below.
3348     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3349     <limits.h> exists even on freestanding compilers.  */
3350 #ifdef __STDC__
3351 # include <limits.h>
3352 #else
3353 # include <assert.h>
3354 #endif
3355 /* Override any gcc2 internal prototype to avoid an error.  */
3356 #ifdef __cplusplus
3357 extern "C"
3358 {
3359 #endif
3360 /* We use char because int might match the return type of a gcc2
3361    builtin and then its argument prototype would still apply.  */
3362 char connect ();
3363 /* The GNU C library defines this for functions which it implements
3364     to always fail with ENOSYS.  Some functions are actually named
3365     something starting with __ and the normal name is an alias.  */
3366 #if defined (__stub_connect) || defined (__stub___connect)
3367 choke me
3368 #else
3369 char (*f) () = connect;
3370 #endif
3371 #ifdef __cplusplus
3372 }
3373 #endif
3374
3375 int
3376 main ()
3377 {
3378 return f != connect;
3379   ;
3380   return 0;
3381 }
3382 _ACEOF
3383 rm -f conftest.$ac_objext conftest$ac_exeext
3384 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3385   (eval $ac_link) 2>&5
3386   ac_status=$?
3387   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3388   (exit $ac_status); } &&
3389          { ac_try='test -s conftest$ac_exeext'
3390   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3391   (eval $ac_try) 2>&5
3392   ac_status=$?
3393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3394   (exit $ac_status); }; }; then
3395   ac_cv_func_connect=yes
3396 else
3397   echo "$as_me: failed program was:" >&5
3398 sed 's/^/| /' conftest.$ac_ext >&5
3399
3400 ac_cv_func_connect=no
3401 fi
3402 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3403 fi
3404 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
3405 echo "${ECHO_T}$ac_cv_func_connect" >&6
3406
3407     if test $ac_cv_func_connect = no; then
3408       echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
3409 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
3410 if test "${ac_cv_lib_socket_connect+set}" = set; then
3411   echo $ECHO_N "(cached) $ECHO_C" >&6
3412 else
3413   ac_check_lib_save_LIBS=$LIBS
3414 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
3415 cat >conftest.$ac_ext <<_ACEOF
3416 #line $LINENO "configure"
3417 /* confdefs.h.  */
3418 _ACEOF
3419 cat confdefs.h >>conftest.$ac_ext
3420 cat >>conftest.$ac_ext <<_ACEOF
3421 /* end confdefs.h.  */
3422
3423 /* Override any gcc2 internal prototype to avoid an error.  */
3424 #ifdef __cplusplus
3425 extern "C"
3426 #endif
3427 /* We use char because int might match the return type of a gcc2
3428    builtin and then its argument prototype would still apply.  */
3429 char connect ();
3430 int
3431 main ()
3432 {
3433 connect ();
3434   ;
3435   return 0;
3436 }
3437 _ACEOF
3438 rm -f conftest.$ac_objext conftest$ac_exeext
3439 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3440   (eval $ac_link) 2>&5
3441   ac_status=$?
3442   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3443   (exit $ac_status); } &&
3444          { ac_try='test -s conftest$ac_exeext'
3445   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3446   (eval $ac_try) 2>&5
3447   ac_status=$?
3448   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3449   (exit $ac_status); }; }; then
3450   ac_cv_lib_socket_connect=yes
3451 else
3452   echo "$as_me: failed program was:" >&5
3453 sed 's/^/| /' conftest.$ac_ext >&5
3454
3455 ac_cv_lib_socket_connect=no
3456 fi
3457 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3458 LIBS=$ac_check_lib_save_LIBS
3459 fi
3460 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
3461 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
3462 if test $ac_cv_lib_socket_connect = yes; then
3463   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
3464 fi
3465
3466     fi
3467
3468     # Guillermo Gomez says -lposix is necessary on A/UX.
3469     echo "$as_me:$LINENO: checking for remove" >&5
3470 echo $ECHO_N "checking for remove... $ECHO_C" >&6
3471 if test "${ac_cv_func_remove+set}" = set; then
3472   echo $ECHO_N "(cached) $ECHO_C" >&6
3473 else
3474   cat >conftest.$ac_ext <<_ACEOF
3475 #line $LINENO "configure"
3476 /* confdefs.h.  */
3477 _ACEOF
3478 cat confdefs.h >>conftest.$ac_ext
3479 cat >>conftest.$ac_ext <<_ACEOF
3480 /* end confdefs.h.  */
3481 /* System header to define __stub macros and hopefully few prototypes,
3482     which can conflict with char remove (); below.
3483     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3484     <limits.h> exists even on freestanding compilers.  */
3485 #ifdef __STDC__
3486 # include <limits.h>
3487 #else
3488 # include <assert.h>
3489 #endif
3490 /* Override any gcc2 internal prototype to avoid an error.  */
3491 #ifdef __cplusplus
3492 extern "C"
3493 {
3494 #endif
3495 /* We use char because int might match the return type of a gcc2
3496    builtin and then its argument prototype would still apply.  */
3497 char remove ();
3498 /* The GNU C library defines this for functions which it implements
3499     to always fail with ENOSYS.  Some functions are actually named
3500     something starting with __ and the normal name is an alias.  */
3501 #if defined (__stub_remove) || defined (__stub___remove)
3502 choke me
3503 #else
3504 char (*f) () = remove;
3505 #endif
3506 #ifdef __cplusplus
3507 }
3508 #endif
3509
3510 int
3511 main ()
3512 {
3513 return f != remove;
3514   ;
3515   return 0;
3516 }
3517 _ACEOF
3518 rm -f conftest.$ac_objext conftest$ac_exeext
3519 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3520   (eval $ac_link) 2>&5
3521   ac_status=$?
3522   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3523   (exit $ac_status); } &&
3524          { ac_try='test -s conftest$ac_exeext'
3525   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3526   (eval $ac_try) 2>&5
3527   ac_status=$?
3528   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3529   (exit $ac_status); }; }; then
3530   ac_cv_func_remove=yes
3531 else
3532   echo "$as_me: failed program was:" >&5
3533 sed 's/^/| /' conftest.$ac_ext >&5
3534
3535 ac_cv_func_remove=no
3536 fi
3537 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3538 fi
3539 echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
3540 echo "${ECHO_T}$ac_cv_func_remove" >&6
3541
3542     if test $ac_cv_func_remove = no; then
3543       echo "$as_me:$LINENO: checking for remove in -lposix" >&5
3544 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
3545 if test "${ac_cv_lib_posix_remove+set}" = set; then
3546   echo $ECHO_N "(cached) $ECHO_C" >&6
3547 else
3548   ac_check_lib_save_LIBS=$LIBS
3549 LIBS="-lposix  $LIBS"
3550 cat >conftest.$ac_ext <<_ACEOF
3551 #line $LINENO "configure"
3552 /* confdefs.h.  */
3553 _ACEOF
3554 cat confdefs.h >>conftest.$ac_ext
3555 cat >>conftest.$ac_ext <<_ACEOF
3556 /* end confdefs.h.  */
3557
3558 /* Override any gcc2 internal prototype to avoid an error.  */
3559 #ifdef __cplusplus
3560 extern "C"
3561 #endif
3562 /* We use char because int might match the return type of a gcc2
3563    builtin and then its argument prototype would still apply.  */
3564 char remove ();
3565 int
3566 main ()
3567 {
3568 remove ();
3569   ;
3570   return 0;
3571 }
3572 _ACEOF
3573 rm -f conftest.$ac_objext conftest$ac_exeext
3574 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3575   (eval $ac_link) 2>&5
3576   ac_status=$?
3577   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3578   (exit $ac_status); } &&
3579          { ac_try='test -s conftest$ac_exeext'
3580   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3581   (eval $ac_try) 2>&5
3582   ac_status=$?
3583   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3584   (exit $ac_status); }; }; then
3585   ac_cv_lib_posix_remove=yes
3586 else
3587   echo "$as_me: failed program was:" >&5
3588 sed 's/^/| /' conftest.$ac_ext >&5
3589
3590 ac_cv_lib_posix_remove=no
3591 fi
3592 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3593 LIBS=$ac_check_lib_save_LIBS
3594 fi
3595 echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
3596 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
3597 if test $ac_cv_lib_posix_remove = yes; then
3598   X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
3599 fi
3600
3601     fi
3602
3603     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
3604     echo "$as_me:$LINENO: checking for shmat" >&5
3605 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
3606 if test "${ac_cv_func_shmat+set}" = set; then
3607   echo $ECHO_N "(cached) $ECHO_C" >&6
3608 else
3609   cat >conftest.$ac_ext <<_ACEOF
3610 #line $LINENO "configure"
3611 /* confdefs.h.  */
3612 _ACEOF
3613 cat confdefs.h >>conftest.$ac_ext
3614 cat >>conftest.$ac_ext <<_ACEOF
3615 /* end confdefs.h.  */
3616 /* System header to define __stub macros and hopefully few prototypes,
3617     which can conflict with char shmat (); below.
3618     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3619     <limits.h> exists even on freestanding compilers.  */
3620 #ifdef __STDC__
3621 # include <limits.h>
3622 #else
3623 # include <assert.h>
3624 #endif
3625 /* Override any gcc2 internal prototype to avoid an error.  */
3626 #ifdef __cplusplus
3627 extern "C"
3628 {
3629 #endif
3630 /* We use char because int might match the return type of a gcc2
3631    builtin and then its argument prototype would still apply.  */
3632 char shmat ();
3633 /* The GNU C library defines this for functions which it implements
3634     to always fail with ENOSYS.  Some functions are actually named
3635     something starting with __ and the normal name is an alias.  */
3636 #if defined (__stub_shmat) || defined (__stub___shmat)
3637 choke me
3638 #else
3639 char (*f) () = shmat;
3640 #endif
3641 #ifdef __cplusplus
3642 }
3643 #endif
3644
3645 int
3646 main ()
3647 {
3648 return f != shmat;
3649   ;
3650   return 0;
3651 }
3652 _ACEOF
3653 rm -f conftest.$ac_objext conftest$ac_exeext
3654 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3655   (eval $ac_link) 2>&5
3656   ac_status=$?
3657   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3658   (exit $ac_status); } &&
3659          { ac_try='test -s conftest$ac_exeext'
3660   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3661   (eval $ac_try) 2>&5
3662   ac_status=$?
3663   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3664   (exit $ac_status); }; }; then
3665   ac_cv_func_shmat=yes
3666 else
3667   echo "$as_me: failed program was:" >&5
3668 sed 's/^/| /' conftest.$ac_ext >&5
3669
3670 ac_cv_func_shmat=no
3671 fi
3672 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3673 fi
3674 echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
3675 echo "${ECHO_T}$ac_cv_func_shmat" >&6
3676
3677     if test $ac_cv_func_shmat = no; then
3678       echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
3679 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
3680 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
3681   echo $ECHO_N "(cached) $ECHO_C" >&6
3682 else
3683   ac_check_lib_save_LIBS=$LIBS
3684 LIBS="-lipc  $LIBS"
3685 cat >conftest.$ac_ext <<_ACEOF
3686 #line $LINENO "configure"
3687 /* confdefs.h.  */
3688 _ACEOF
3689 cat confdefs.h >>conftest.$ac_ext
3690 cat >>conftest.$ac_ext <<_ACEOF
3691 /* end confdefs.h.  */
3692
3693 /* Override any gcc2 internal prototype to avoid an error.  */
3694 #ifdef __cplusplus
3695 extern "C"
3696 #endif
3697 /* We use char because int might match the return type of a gcc2
3698    builtin and then its argument prototype would still apply.  */
3699 char shmat ();
3700 int
3701 main ()
3702 {
3703 shmat ();
3704   ;
3705   return 0;
3706 }
3707 _ACEOF
3708 rm -f conftest.$ac_objext conftest$ac_exeext
3709 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3710   (eval $ac_link) 2>&5
3711   ac_status=$?
3712   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3713   (exit $ac_status); } &&
3714          { ac_try='test -s conftest$ac_exeext'
3715   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3716   (eval $ac_try) 2>&5
3717   ac_status=$?
3718   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3719   (exit $ac_status); }; }; then
3720   ac_cv_lib_ipc_shmat=yes
3721 else
3722   echo "$as_me: failed program was:" >&5
3723 sed 's/^/| /' conftest.$ac_ext >&5
3724
3725 ac_cv_lib_ipc_shmat=no
3726 fi
3727 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3728 LIBS=$ac_check_lib_save_LIBS
3729 fi
3730 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
3731 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
3732 if test $ac_cv_lib_ipc_shmat = yes; then
3733   X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
3734 fi
3735
3736     fi
3737   fi
3738
3739   # Check for libraries that X11R6 Xt/Xaw programs need.
3740   ac_save_LDFLAGS=$LDFLAGS
3741   test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
3742   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
3743   # check for ICE first), but we must link in the order -lSM -lICE or
3744   # we get undefined symbols.  So assume we have SM if we have ICE.
3745   # These have to be linked with before -lX11, unlike the other
3746   # libraries we check for below, so use a different variable.
3747   # John Interrante, Karl Berry
3748   echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
3749 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
3750 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
3751   echo $ECHO_N "(cached) $ECHO_C" >&6
3752 else
3753   ac_check_lib_save_LIBS=$LIBS
3754 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
3755 cat >conftest.$ac_ext <<_ACEOF
3756 #line $LINENO "configure"
3757 /* confdefs.h.  */
3758 _ACEOF
3759 cat confdefs.h >>conftest.$ac_ext
3760 cat >>conftest.$ac_ext <<_ACEOF
3761 /* end confdefs.h.  */
3762
3763 /* Override any gcc2 internal prototype to avoid an error.  */
3764 #ifdef __cplusplus
3765 extern "C"
3766 #endif
3767 /* We use char because int might match the return type of a gcc2
3768    builtin and then its argument prototype would still apply.  */
3769 char IceConnectionNumber ();
3770 int
3771 main ()
3772 {
3773 IceConnectionNumber ();
3774   ;
3775   return 0;
3776 }
3777 _ACEOF
3778 rm -f conftest.$ac_objext conftest$ac_exeext
3779 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3780   (eval $ac_link) 2>&5
3781   ac_status=$?
3782   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3783   (exit $ac_status); } &&
3784          { ac_try='test -s conftest$ac_exeext'
3785   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3786   (eval $ac_try) 2>&5
3787   ac_status=$?
3788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3789   (exit $ac_status); }; }; then
3790   ac_cv_lib_ICE_IceConnectionNumber=yes
3791 else
3792   echo "$as_me: failed program was:" >&5
3793 sed 's/^/| /' conftest.$ac_ext >&5
3794
3795 ac_cv_lib_ICE_IceConnectionNumber=no
3796 fi
3797 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3798 LIBS=$ac_check_lib_save_LIBS
3799 fi
3800 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
3801 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
3802 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
3803   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
3804 fi
3805
3806   LDFLAGS=$ac_save_LDFLAGS
3807
3808 fi
3809
3810 for ac_prog in 'bison -y' byacc
3811 do
3812   # Extract the first word of "$ac_prog", so it can be a program name with args.
3813 set dummy $ac_prog; ac_word=$2
3814 echo "$as_me:$LINENO: checking for $ac_word" >&5
3815 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3816 if test "${ac_cv_prog_YACC+set}" = set; then
3817   echo $ECHO_N "(cached) $ECHO_C" >&6
3818 else
3819   if test -n "$YACC"; then
3820   ac_cv_prog_YACC="$YACC" # Let the user override the test.
3821 else
3822 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3823 for as_dir in $PATH
3824 do
3825   IFS=$as_save_IFS
3826   test -z "$as_dir" && as_dir=.
3827   for ac_exec_ext in '' $ac_executable_extensions; do
3828   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3829     ac_cv_prog_YACC="$ac_prog"
3830     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3831     break 2
3832   fi
3833 done
3834 done
3835
3836 fi
3837 fi
3838 YACC=$ac_cv_prog_YACC
3839 if test -n "$YACC"; then
3840   echo "$as_me:$LINENO: result: $YACC" >&5
3841 echo "${ECHO_T}$YACC" >&6
3842 else
3843   echo "$as_me:$LINENO: result: no" >&5
3844 echo "${ECHO_T}no" >&6
3845 fi
3846
3847   test -n "$YACC" && break
3848 done
3849 test -n "$YACC" || YACC="yacc"
3850
3851 for ac_prog in flex lex
3852 do
3853   # Extract the first word of "$ac_prog", so it can be a program name with args.
3854 set dummy $ac_prog; ac_word=$2
3855 echo "$as_me:$LINENO: checking for $ac_word" >&5
3856 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3857 if test "${ac_cv_prog_LEX+set}" = set; then
3858   echo $ECHO_N "(cached) $ECHO_C" >&6
3859 else
3860   if test -n "$LEX"; then
3861   ac_cv_prog_LEX="$LEX" # Let the user override the test.
3862 else
3863 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3864 for as_dir in $PATH
3865 do
3866   IFS=$as_save_IFS
3867   test -z "$as_dir" && as_dir=.
3868   for ac_exec_ext in '' $ac_executable_extensions; do
3869   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3870     ac_cv_prog_LEX="$ac_prog"
3871     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3872     break 2
3873   fi
3874 done
3875 done
3876
3877 fi
3878 fi
3879 LEX=$ac_cv_prog_LEX
3880 if test -n "$LEX"; then
3881   echo "$as_me:$LINENO: result: $LEX" >&5
3882 echo "${ECHO_T}$LEX" >&6
3883 else
3884   echo "$as_me:$LINENO: result: no" >&5
3885 echo "${ECHO_T}no" >&6
3886 fi
3887
3888   test -n "$LEX" && break
3889 done
3890 test -n "$LEX" || LEX=":"
3891
3892 if test -z "$LEXLIB"
3893 then
3894   echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
3895 echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
3896 if test "${ac_cv_lib_fl_yywrap+set}" = set; then
3897   echo $ECHO_N "(cached) $ECHO_C" >&6
3898 else
3899   ac_check_lib_save_LIBS=$LIBS
3900 LIBS="-lfl  $LIBS"
3901 cat >conftest.$ac_ext <<_ACEOF
3902 #line $LINENO "configure"
3903 /* confdefs.h.  */
3904 _ACEOF
3905 cat confdefs.h >>conftest.$ac_ext
3906 cat >>conftest.$ac_ext <<_ACEOF
3907 /* end confdefs.h.  */
3908
3909 /* Override any gcc2 internal prototype to avoid an error.  */
3910 #ifdef __cplusplus
3911 extern "C"
3912 #endif
3913 /* We use char because int might match the return type of a gcc2
3914    builtin and then its argument prototype would still apply.  */
3915 char yywrap ();
3916 int
3917 main ()
3918 {
3919 yywrap ();
3920   ;
3921   return 0;
3922 }
3923 _ACEOF
3924 rm -f conftest.$ac_objext conftest$ac_exeext
3925 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3926   (eval $ac_link) 2>&5
3927   ac_status=$?
3928   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3929   (exit $ac_status); } &&
3930          { ac_try='test -s conftest$ac_exeext'
3931   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3932   (eval $ac_try) 2>&5
3933   ac_status=$?
3934   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3935   (exit $ac_status); }; }; then
3936   ac_cv_lib_fl_yywrap=yes
3937 else
3938   echo "$as_me: failed program was:" >&5
3939 sed 's/^/| /' conftest.$ac_ext >&5
3940
3941 ac_cv_lib_fl_yywrap=no
3942 fi
3943 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3944 LIBS=$ac_check_lib_save_LIBS
3945 fi
3946 echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
3947 echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
3948 if test $ac_cv_lib_fl_yywrap = yes; then
3949   LEXLIB="-lfl"
3950 else
3951   echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
3952 echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
3953 if test "${ac_cv_lib_l_yywrap+set}" = set; then
3954   echo $ECHO_N "(cached) $ECHO_C" >&6
3955 else
3956   ac_check_lib_save_LIBS=$LIBS
3957 LIBS="-ll  $LIBS"
3958 cat >conftest.$ac_ext <<_ACEOF
3959 #line $LINENO "configure"
3960 /* confdefs.h.  */
3961 _ACEOF
3962 cat confdefs.h >>conftest.$ac_ext
3963 cat >>conftest.$ac_ext <<_ACEOF
3964 /* end confdefs.h.  */
3965
3966 /* Override any gcc2 internal prototype to avoid an error.  */
3967 #ifdef __cplusplus
3968 extern "C"
3969 #endif
3970 /* We use char because int might match the return type of a gcc2
3971    builtin and then its argument prototype would still apply.  */
3972 char yywrap ();
3973 int
3974 main ()
3975 {
3976 yywrap ();
3977   ;
3978   return 0;
3979 }
3980 _ACEOF
3981 rm -f conftest.$ac_objext conftest$ac_exeext
3982 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3983   (eval $ac_link) 2>&5
3984   ac_status=$?
3985   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3986   (exit $ac_status); } &&
3987          { ac_try='test -s conftest$ac_exeext'
3988   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3989   (eval $ac_try) 2>&5
3990   ac_status=$?
3991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3992   (exit $ac_status); }; }; then
3993   ac_cv_lib_l_yywrap=yes
3994 else
3995   echo "$as_me: failed program was:" >&5
3996 sed 's/^/| /' conftest.$ac_ext >&5
3997
3998 ac_cv_lib_l_yywrap=no
3999 fi
4000 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4001 LIBS=$ac_check_lib_save_LIBS
4002 fi
4003 echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
4004 echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
4005 if test $ac_cv_lib_l_yywrap = yes; then
4006   LEXLIB="-ll"
4007 fi
4008
4009 fi
4010
4011 fi
4012
4013 if test "x$LEX" != "x:"; then
4014   echo "$as_me:$LINENO: checking lex output file root" >&5
4015 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
4016 if test "${ac_cv_prog_lex_root+set}" = set; then
4017   echo $ECHO_N "(cached) $ECHO_C" >&6
4018 else
4019   # The minimal lex program is just a single line: %%.  But some broken lexes
4020 # (Solaris, I think it was) want two %% lines, so accommodate them.
4021 cat >conftest.l <<_ACEOF
4022 %%
4023 %%
4024 _ACEOF
4025 { (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
4026   (eval $LEX conftest.l) 2>&5
4027   ac_status=$?
4028   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4029   (exit $ac_status); }
4030 if test -f lex.yy.c; then
4031   ac_cv_prog_lex_root=lex.yy
4032 elif test -f lexyy.c; then
4033   ac_cv_prog_lex_root=lexyy
4034 else
4035   { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
4036 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
4037    { (exit 1); exit 1; }; }
4038 fi
4039 fi
4040 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
4041 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
4042 rm -f conftest.l
4043 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
4044
4045 echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
4046 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
4047 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
4048   echo $ECHO_N "(cached) $ECHO_C" >&6
4049 else
4050   # POSIX says lex can declare yytext either as a pointer or an array; the
4051 # default is implementation-dependent. Figure out which it is, since
4052 # not all implementations provide the %pointer and %array declarations.
4053 ac_cv_prog_lex_yytext_pointer=no
4054 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
4055 ac_save_LIBS=$LIBS
4056 LIBS="$LIBS $LEXLIB"
4057 cat >conftest.$ac_ext <<_ACEOF
4058 `cat $LEX_OUTPUT_ROOT.c`
4059 _ACEOF
4060 rm -f conftest.$ac_objext conftest$ac_exeext
4061 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4062   (eval $ac_link) 2>&5
4063   ac_status=$?
4064   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4065   (exit $ac_status); } &&
4066          { ac_try='test -s conftest$ac_exeext'
4067   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4068   (eval $ac_try) 2>&5
4069   ac_status=$?
4070   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4071   (exit $ac_status); }; }; then
4072   ac_cv_prog_lex_yytext_pointer=yes
4073 else
4074   echo "$as_me: failed program was:" >&5
4075 sed 's/^/| /' conftest.$ac_ext >&5
4076
4077 fi
4078 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4079 LIBS=$ac_save_LIBS
4080 rm -f "${LEX_OUTPUT_ROOT}.c"
4081
4082 fi
4083 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
4084 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
4085 if test $ac_cv_prog_lex_yytext_pointer = yes; then
4086
4087 cat >>confdefs.h <<\_ACEOF
4088 #define YYTEXT_POINTER 1
4089 _ACEOF
4090
4091 fi
4092
4093 fi
4094
4095 for ac_prog in $YACC bison yacc
4096 do
4097   # Extract the first word of "$ac_prog", so it can be a program name with args.
4098 set dummy $ac_prog; ac_word=$2
4099 echo "$as_me:$LINENO: checking for $ac_word" >&5
4100 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4101 if test "${ac_cv_prog_XYACC+set}" = set; then
4102   echo $ECHO_N "(cached) $ECHO_C" >&6
4103 else
4104   if test -n "$XYACC"; then
4105   ac_cv_prog_XYACC="$XYACC" # Let the user override the test.
4106 else
4107 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4108 for as_dir in $PATH
4109 do
4110   IFS=$as_save_IFS
4111   test -z "$as_dir" && as_dir=.
4112   for ac_exec_ext in '' $ac_executable_extensions; do
4113   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4114     ac_cv_prog_XYACC="$ac_prog"
4115     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4116     break 2
4117   fi
4118 done
4119 done
4120
4121 fi
4122 fi
4123 XYACC=$ac_cv_prog_XYACC
4124 if test -n "$XYACC"; then
4125   echo "$as_me:$LINENO: result: $XYACC" >&5
4126 echo "${ECHO_T}$XYACC" >&6
4127 else
4128   echo "$as_me:$LINENO: result: no" >&5
4129 echo "${ECHO_T}no" >&6
4130 fi
4131
4132   test -n "$XYACC" && break
4133 done
4134 test -n "$XYACC" || XYACC="none"
4135
4136 if test "$XYACC" = "none"
4137 then
4138   { { echo "$as_me:$LINENO: error: no suitable bison/yacc found. Please install the 'bison' package." >&5
4139 echo "$as_me: error: no suitable bison/yacc found. Please install the 'bison' package." >&2;}
4140    { (exit 1); exit 1; }; }
4141 fi
4142 for ac_prog in $LEX flex lex
4143 do
4144   # Extract the first word of "$ac_prog", so it can be a program name with args.
4145 set dummy $ac_prog; ac_word=$2
4146 echo "$as_me:$LINENO: checking for $ac_word" >&5
4147 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4148 if test "${ac_cv_prog_XLEX+set}" = set; then
4149   echo $ECHO_N "(cached) $ECHO_C" >&6
4150 else
4151   if test -n "$XLEX"; then
4152   ac_cv_prog_XLEX="$XLEX" # Let the user override the test.
4153 else
4154 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4155 for as_dir in $PATH
4156 do
4157   IFS=$as_save_IFS
4158   test -z "$as_dir" && as_dir=.
4159   for ac_exec_ext in '' $ac_executable_extensions; do
4160   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4161     ac_cv_prog_XLEX="$ac_prog"
4162     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4163     break 2
4164   fi
4165 done
4166 done
4167
4168 fi
4169 fi
4170 XLEX=$ac_cv_prog_XLEX
4171 if test -n "$XLEX"; then
4172   echo "$as_me:$LINENO: result: $XLEX" >&5
4173 echo "${ECHO_T}$XLEX" >&6
4174 else
4175   echo "$as_me:$LINENO: result: no" >&5
4176 echo "${ECHO_T}no" >&6
4177 fi
4178
4179   test -n "$XLEX" && break
4180 done
4181 test -n "$XLEX" || XLEX="none"
4182
4183 if test "$XLEX" = "none"
4184 then
4185   { { echo "$as_me:$LINENO: error: no suitable lex found. Please install the 'flex' package." >&5
4186 echo "$as_me: error: no suitable lex found. Please install the 'flex' package." >&2;}
4187    { (exit 1); exit 1; }; }
4188 fi
4189
4190 if test -n "$ac_tool_prefix"; then
4191   for ac_prog in gas as
4192   do
4193     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4194 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4195 echo "$as_me:$LINENO: checking for $ac_word" >&5
4196 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4197 if test "${ac_cv_prog_AS+set}" = set; then
4198   echo $ECHO_N "(cached) $ECHO_C" >&6
4199 else
4200   if test -n "$AS"; then
4201   ac_cv_prog_AS="$AS" # Let the user override the test.
4202 else
4203 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4204 for as_dir in $PATH
4205 do
4206   IFS=$as_save_IFS
4207   test -z "$as_dir" && as_dir=.
4208   for ac_exec_ext in '' $ac_executable_extensions; do
4209   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4210     ac_cv_prog_AS="$ac_tool_prefix$ac_prog"
4211     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4212     break 2
4213   fi
4214 done
4215 done
4216
4217 fi
4218 fi
4219 AS=$ac_cv_prog_AS
4220 if test -n "$AS"; then
4221   echo "$as_me:$LINENO: result: $AS" >&5
4222 echo "${ECHO_T}$AS" >&6
4223 else
4224   echo "$as_me:$LINENO: result: no" >&5
4225 echo "${ECHO_T}no" >&6
4226 fi
4227
4228     test -n "$AS" && break
4229   done
4230 fi
4231 if test -z "$AS"; then
4232   ac_ct_AS=$AS
4233   for ac_prog in gas as
4234 do
4235   # Extract the first word of "$ac_prog", so it can be a program name with args.
4236 set dummy $ac_prog; ac_word=$2
4237 echo "$as_me:$LINENO: checking for $ac_word" >&5
4238 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4239 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
4240   echo $ECHO_N "(cached) $ECHO_C" >&6
4241 else
4242   if test -n "$ac_ct_AS"; then
4243   ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
4244 else
4245 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4246 for as_dir in $PATH
4247 do
4248   IFS=$as_save_IFS
4249   test -z "$as_dir" && as_dir=.
4250   for ac_exec_ext in '' $ac_executable_extensions; do
4251   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4252     ac_cv_prog_ac_ct_AS="$ac_prog"
4253     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4254     break 2
4255   fi
4256 done
4257 done
4258
4259 fi
4260 fi
4261 ac_ct_AS=$ac_cv_prog_ac_ct_AS
4262 if test -n "$ac_ct_AS"; then
4263   echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
4264 echo "${ECHO_T}$ac_ct_AS" >&6
4265 else
4266   echo "$as_me:$LINENO: result: no" >&5
4267 echo "${ECHO_T}no" >&6
4268 fi
4269
4270   test -n "$ac_ct_AS" && break
4271 done
4272 test -n "$ac_ct_AS" || ac_ct_AS="as"
4273
4274   AS=$ac_ct_AS
4275 fi
4276
4277 if test -n "$ac_tool_prefix"; then
4278   # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
4279 set dummy ${ac_tool_prefix}ld; ac_word=$2
4280 echo "$as_me:$LINENO: checking for $ac_word" >&5
4281 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4282 if test "${ac_cv_prog_LD+set}" = set; then
4283   echo $ECHO_N "(cached) $ECHO_C" >&6
4284 else
4285   if test -n "$LD"; then
4286   ac_cv_prog_LD="$LD" # Let the user override the test.
4287 else
4288 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4289 for as_dir in $PATH
4290 do
4291   IFS=$as_save_IFS
4292   test -z "$as_dir" && as_dir=.
4293   for ac_exec_ext in '' $ac_executable_extensions; do
4294   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4295     ac_cv_prog_LD="${ac_tool_prefix}ld"
4296     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4297     break 2
4298   fi
4299 done
4300 done
4301
4302 fi
4303 fi
4304 LD=$ac_cv_prog_LD
4305 if test -n "$LD"; then
4306   echo "$as_me:$LINENO: result: $LD" >&5
4307 echo "${ECHO_T}$LD" >&6
4308 else
4309   echo "$as_me:$LINENO: result: no" >&5
4310 echo "${ECHO_T}no" >&6
4311 fi
4312
4313 fi
4314 if test -z "$ac_cv_prog_LD"; then
4315   ac_ct_LD=$LD
4316   # Extract the first word of "ld", so it can be a program name with args.
4317 set dummy ld; ac_word=$2
4318 echo "$as_me:$LINENO: checking for $ac_word" >&5
4319 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4320 if test "${ac_cv_prog_ac_ct_LD+set}" = set; then
4321   echo $ECHO_N "(cached) $ECHO_C" >&6
4322 else
4323   if test -n "$ac_ct_LD"; then
4324   ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test.
4325 else
4326 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4327 for as_dir in $PATH
4328 do
4329   IFS=$as_save_IFS
4330   test -z "$as_dir" && as_dir=.
4331   for ac_exec_ext in '' $ac_executable_extensions; do
4332   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4333     ac_cv_prog_ac_ct_LD="ld"
4334     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4335     break 2
4336   fi
4337 done
4338 done
4339
4340   test -z "$ac_cv_prog_ac_ct_LD" && ac_cv_prog_ac_ct_LD="ld"
4341 fi
4342 fi
4343 ac_ct_LD=$ac_cv_prog_ac_ct_LD
4344 if test -n "$ac_ct_LD"; then
4345   echo "$as_me:$LINENO: result: $ac_ct_LD" >&5
4346 echo "${ECHO_T}$ac_ct_LD" >&6
4347 else
4348   echo "$as_me:$LINENO: result: no" >&5
4349 echo "${ECHO_T}no" >&6
4350 fi
4351
4352   LD=$ac_ct_LD
4353 else
4354   LD="$ac_cv_prog_LD"
4355 fi
4356
4357 if test -n "$ac_tool_prefix"; then
4358   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4359 set dummy ${ac_tool_prefix}ar; ac_word=$2
4360 echo "$as_me:$LINENO: checking for $ac_word" >&5
4361 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4362 if test "${ac_cv_prog_AR+set}" = set; then
4363   echo $ECHO_N "(cached) $ECHO_C" >&6
4364 else
4365   if test -n "$AR"; then
4366   ac_cv_prog_AR="$AR" # Let the user override the test.
4367 else
4368 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4369 for as_dir in $PATH
4370 do
4371   IFS=$as_save_IFS
4372   test -z "$as_dir" && as_dir=.
4373   for ac_exec_ext in '' $ac_executable_extensions; do
4374   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4375     ac_cv_prog_AR="${ac_tool_prefix}ar"
4376     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4377     break 2
4378   fi
4379 done
4380 done
4381
4382 fi
4383 fi
4384 AR=$ac_cv_prog_AR
4385 if test -n "$AR"; then
4386   echo "$as_me:$LINENO: result: $AR" >&5
4387 echo "${ECHO_T}$AR" >&6
4388 else
4389   echo "$as_me:$LINENO: result: no" >&5
4390 echo "${ECHO_T}no" >&6
4391 fi
4392
4393 fi
4394 if test -z "$ac_cv_prog_AR"; then
4395   ac_ct_AR=$AR
4396   # Extract the first word of "ar", so it can be a program name with args.
4397 set dummy ar; ac_word=$2
4398 echo "$as_me:$LINENO: checking for $ac_word" >&5
4399 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4400 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
4401   echo $ECHO_N "(cached) $ECHO_C" >&6
4402 else
4403   if test -n "$ac_ct_AR"; then
4404   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4405 else
4406 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4407 for as_dir in $PATH
4408 do
4409   IFS=$as_save_IFS
4410   test -z "$as_dir" && as_dir=.
4411   for ac_exec_ext in '' $ac_executable_extensions; do
4412   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4413     ac_cv_prog_ac_ct_AR="ar"
4414     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4415     break 2
4416   fi
4417 done
4418 done
4419
4420   test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar"
4421 fi
4422 fi
4423 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4424 if test -n "$ac_ct_AR"; then
4425   echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
4426 echo "${ECHO_T}$ac_ct_AR" >&6
4427 else
4428   echo "$as_me:$LINENO: result: no" >&5
4429 echo "${ECHO_T}no" >&6
4430 fi
4431
4432   AR=$ac_ct_AR
4433 else
4434   AR="$ac_cv_prog_AR"
4435 fi
4436
4437 if test -n "$ac_tool_prefix"; then
4438   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4439 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4440 echo "$as_me:$LINENO: checking for $ac_word" >&5
4441 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4442 if test "${ac_cv_prog_RANLIB+set}" = set; then
4443   echo $ECHO_N "(cached) $ECHO_C" >&6
4444 else
4445   if test -n "$RANLIB"; then
4446   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4447 else
4448 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4449 for as_dir in $PATH
4450 do
4451   IFS=$as_save_IFS
4452   test -z "$as_dir" && as_dir=.
4453   for ac_exec_ext in '' $ac_executable_extensions; do
4454   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4455     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4456     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4457     break 2
4458   fi
4459 done
4460 done
4461
4462 fi
4463 fi
4464 RANLIB=$ac_cv_prog_RANLIB
4465 if test -n "$RANLIB"; then
4466   echo "$as_me:$LINENO: result: $RANLIB" >&5
4467 echo "${ECHO_T}$RANLIB" >&6
4468 else
4469   echo "$as_me:$LINENO: result: no" >&5
4470 echo "${ECHO_T}no" >&6
4471 fi
4472
4473 fi
4474 if test -z "$ac_cv_prog_RANLIB"; then
4475   ac_ct_RANLIB=$RANLIB
4476   # Extract the first word of "ranlib", so it can be a program name with args.
4477 set dummy ranlib; ac_word=$2
4478 echo "$as_me:$LINENO: checking for $ac_word" >&5
4479 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4480 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4481   echo $ECHO_N "(cached) $ECHO_C" >&6
4482 else
4483   if test -n "$ac_ct_RANLIB"; then
4484   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4485 else
4486 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4487 for as_dir in $PATH
4488 do
4489   IFS=$as_save_IFS
4490   test -z "$as_dir" && as_dir=.
4491   for ac_exec_ext in '' $ac_executable_extensions; do
4492   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4493     ac_cv_prog_ac_ct_RANLIB="ranlib"
4494     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4495     break 2
4496   fi
4497 done
4498 done
4499
4500   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4501 fi
4502 fi
4503 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4504 if test -n "$ac_ct_RANLIB"; then
4505   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4506 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4507 else
4508   echo "$as_me:$LINENO: result: no" >&5
4509 echo "${ECHO_T}no" >&6
4510 fi
4511
4512   RANLIB=$ac_ct_RANLIB
4513 else
4514   RANLIB="$ac_cv_prog_RANLIB"
4515 fi
4516
4517 if test -n "$ac_tool_prefix"; then
4518   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4519 set dummy ${ac_tool_prefix}strip; ac_word=$2
4520 echo "$as_me:$LINENO: checking for $ac_word" >&5
4521 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4522 if test "${ac_cv_prog_STRIP+set}" = set; then
4523   echo $ECHO_N "(cached) $ECHO_C" >&6
4524 else
4525   if test -n "$STRIP"; then
4526   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4527 else
4528 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4529 for as_dir in $PATH
4530 do
4531   IFS=$as_save_IFS
4532   test -z "$as_dir" && as_dir=.
4533   for ac_exec_ext in '' $ac_executable_extensions; do
4534   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4535     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4536     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4537     break 2
4538   fi
4539 done
4540 done
4541
4542 fi
4543 fi
4544 STRIP=$ac_cv_prog_STRIP
4545 if test -n "$STRIP"; then
4546   echo "$as_me:$LINENO: result: $STRIP" >&5
4547 echo "${ECHO_T}$STRIP" >&6
4548 else
4549   echo "$as_me:$LINENO: result: no" >&5
4550 echo "${ECHO_T}no" >&6
4551 fi
4552
4553 fi
4554 if test -z "$ac_cv_prog_STRIP"; then
4555   ac_ct_STRIP=$STRIP
4556   # Extract the first word of "strip", so it can be a program name with args.
4557 set dummy strip; ac_word=$2
4558 echo "$as_me:$LINENO: checking for $ac_word" >&5
4559 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4560 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4561   echo $ECHO_N "(cached) $ECHO_C" >&6
4562 else
4563   if test -n "$ac_ct_STRIP"; then
4564   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4565 else
4566 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4567 for as_dir in $PATH
4568 do
4569   IFS=$as_save_IFS
4570   test -z "$as_dir" && as_dir=.
4571   for ac_exec_ext in '' $ac_executable_extensions; do
4572   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4573     ac_cv_prog_ac_ct_STRIP="strip"
4574     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4575     break 2
4576   fi
4577 done
4578 done
4579
4580   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP="strip"
4581 fi
4582 fi
4583 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4584 if test -n "$ac_ct_STRIP"; then
4585   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4586 echo "${ECHO_T}$ac_ct_STRIP" >&6
4587 else
4588   echo "$as_me:$LINENO: result: no" >&5
4589 echo "${ECHO_T}no" >&6
4590 fi
4591
4592   STRIP=$ac_ct_STRIP
4593 else
4594   STRIP="$ac_cv_prog_STRIP"
4595 fi
4596
4597 if test -n "$ac_tool_prefix"; then
4598   # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
4599 set dummy ${ac_tool_prefix}windres; ac_word=$2
4600 echo "$as_me:$LINENO: checking for $ac_word" >&5
4601 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4602 if test "${ac_cv_prog_WINDRES+set}" = set; then
4603   echo $ECHO_N "(cached) $ECHO_C" >&6
4604 else
4605   if test -n "$WINDRES"; then
4606   ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
4607 else
4608 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4609 for as_dir in $PATH
4610 do
4611   IFS=$as_save_IFS
4612   test -z "$as_dir" && as_dir=.
4613   for ac_exec_ext in '' $ac_executable_extensions; do
4614   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4615     ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
4616     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4617     break 2
4618   fi
4619 done
4620 done
4621
4622 fi
4623 fi
4624 WINDRES=$ac_cv_prog_WINDRES
4625 if test -n "$WINDRES"; then
4626   echo "$as_me:$LINENO: result: $WINDRES" >&5
4627 echo "${ECHO_T}$WINDRES" >&6
4628 else
4629   echo "$as_me:$LINENO: result: no" >&5
4630 echo "${ECHO_T}no" >&6
4631 fi
4632
4633 fi
4634 if test -z "$ac_cv_prog_WINDRES"; then
4635   ac_ct_WINDRES=$WINDRES
4636   # Extract the first word of "windres", so it can be a program name with args.
4637 set dummy windres; ac_word=$2
4638 echo "$as_me:$LINENO: checking for $ac_word" >&5
4639 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4640 if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
4641   echo $ECHO_N "(cached) $ECHO_C" >&6
4642 else
4643   if test -n "$ac_ct_WINDRES"; then
4644   ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
4645 else
4646 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4647 for as_dir in $PATH
4648 do
4649   IFS=$as_save_IFS
4650   test -z "$as_dir" && as_dir=.
4651   for ac_exec_ext in '' $ac_executable_extensions; do
4652   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4653     ac_cv_prog_ac_ct_WINDRES="windres"
4654     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4655     break 2
4656   fi
4657 done
4658 done
4659
4660   test -z "$ac_cv_prog_ac_ct_WINDRES" && ac_cv_prog_ac_ct_WINDRES="false"
4661 fi
4662 fi
4663 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
4664 if test -n "$ac_ct_WINDRES"; then
4665   echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
4666 echo "${ECHO_T}$ac_ct_WINDRES" >&6
4667 else
4668   echo "$as_me:$LINENO: result: no" >&5
4669 echo "${ECHO_T}no" >&6
4670 fi
4671
4672   WINDRES=$ac_ct_WINDRES
4673 else
4674   WINDRES="$ac_cv_prog_WINDRES"
4675 fi
4676
4677 echo "$as_me:$LINENO: checking whether ln -s works" >&5
4678 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4679 LN_S=$as_ln_s
4680 if test "$LN_S" = "ln -s"; then
4681   echo "$as_me:$LINENO: result: yes" >&5
4682 echo "${ECHO_T}yes" >&6
4683 else
4684   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4685 echo "${ECHO_T}no, using $LN_S" >&6
4686 fi
4687
4688 echo "$as_me:$LINENO: checking whether ln works" >&5
4689 echo $ECHO_N "checking whether ln works... $ECHO_C" >&6
4690 rm -f conf$$ conf$$.file
4691 echo >conf$$.file
4692 if ln conf$$.file conf$$ 2>/dev/null; then
4693   LN=ln
4694
4695   echo "$as_me:$LINENO: result: yes" >&5
4696 echo "${ECHO_T}yes" >&6
4697 else
4698   LN="cp -p"
4699
4700   echo "$as_me:$LINENO: result: no, using $LN" >&5
4701 echo "${ECHO_T}no, using $LN" >&6
4702 fi
4703 rm -f conf$$ conf$$.file
4704 # Extract the first word of "ldconfig", so it can be a program name with args.
4705 set dummy ldconfig; ac_word=$2
4706 echo "$as_me:$LINENO: checking for $ac_word" >&5
4707 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4708 if test "${ac_cv_path_LDCONFIG+set}" = set; then
4709   echo $ECHO_N "(cached) $ECHO_C" >&6
4710 else
4711   case $LDCONFIG in
4712   [\\/]* | ?:[\\/]*)
4713   ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
4714   ;;
4715   *)
4716   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4717 for as_dir in /sbin /usr/sbin $PATH
4718 do
4719   IFS=$as_save_IFS
4720   test -z "$as_dir" && as_dir=.
4721   for ac_exec_ext in '' $ac_executable_extensions; do
4722   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4723     ac_cv_path_LDCONFIG="$as_dir/$ac_word$ac_exec_ext"
4724     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4725     break 2
4726   fi
4727 done
4728 done
4729
4730   test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG="true"
4731   ;;
4732 esac
4733 fi
4734 LDCONFIG=$ac_cv_path_LDCONFIG
4735
4736 if test -n "$LDCONFIG"; then
4737   echo "$as_me:$LINENO: result: $LDCONFIG" >&5
4738 echo "${ECHO_T}$LDCONFIG" >&6
4739 else
4740   echo "$as_me:$LINENO: result: no" >&5
4741 echo "${ECHO_T}no" >&6
4742 fi
4743
4744 # Find a good install program.  We prefer a C program (faster),
4745 # so one script is as good as another.  But avoid the broken or
4746 # incompatible versions:
4747 # SysV /etc/install, /usr/sbin/install
4748 # SunOS /usr/etc/install
4749 # IRIX /sbin/install
4750 # AIX /bin/install
4751 # AmigaOS /C/install, which installs bootblocks on floppy discs
4752 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4753 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4754 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4755 # ./install, which can be erroneously created by make from ./install.sh.
4756 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4757 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
4758 if test -z "$INSTALL"; then
4759 if test "${ac_cv_path_install+set}" = set; then
4760   echo $ECHO_N "(cached) $ECHO_C" >&6
4761 else
4762   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4763 for as_dir in $PATH
4764 do
4765   IFS=$as_save_IFS
4766   test -z "$as_dir" && as_dir=.
4767   # Account for people who put trailing slashes in PATH elements.
4768 case $as_dir/ in
4769   ./ | .// | /cC/* | \
4770   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4771   /usr/ucb/* ) ;;
4772   *)
4773     # OSF1 and SCO ODT 3.0 have their own names for install.
4774     # Don't use installbsd from OSF since it installs stuff as root
4775     # by default.
4776     for ac_prog in ginstall scoinst install; do
4777       for ac_exec_ext in '' $ac_executable_extensions; do
4778         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4779           if test $ac_prog = install &&
4780             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4781             # AIX install.  It has an incompatible calling convention.
4782             :
4783           elif test $ac_prog = install &&
4784             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4785             # program-specific install script used by HP pwplus--don't use.
4786             :
4787           else
4788             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4789             break 3
4790           fi
4791         fi
4792       done
4793     done
4794     ;;
4795 esac
4796 done
4797
4798
4799 fi
4800   if test "${ac_cv_path_install+set}" = set; then
4801     INSTALL=$ac_cv_path_install
4802   else
4803     # As a last resort, use the slow shell script.  We don't cache a
4804     # path for INSTALL within a source directory, because that will
4805     # break other packages using the cache if that directory is
4806     # removed, or if the path is relative.
4807     INSTALL=$ac_install_sh
4808   fi
4809 fi
4810 echo "$as_me:$LINENO: result: $INSTALL" >&5
4811 echo "${ECHO_T}$INSTALL" >&6
4812
4813 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4814 # It thinks the first close brace ends the variable substitution.
4815 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4816
4817 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4818
4819 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4820
4821 case "$INSTALL" in
4822   [\\/$]* | ?:[\\/]* ) ;;
4823   *)  INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;;
4824 esac
4825
4826 for ac_prog in lclint lint
4827 do
4828   # Extract the first word of "$ac_prog", so it can be a program name with args.
4829 set dummy $ac_prog; ac_word=$2
4830 echo "$as_me:$LINENO: checking for $ac_word" >&5
4831 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4832 if test "${ac_cv_prog_LINT+set}" = set; then
4833   echo $ECHO_N "(cached) $ECHO_C" >&6
4834 else
4835   if test -n "$LINT"; then
4836   ac_cv_prog_LINT="$LINT" # Let the user override the test.
4837 else
4838 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4839 for as_dir in $PATH
4840 do
4841   IFS=$as_save_IFS
4842   test -z "$as_dir" && as_dir=.
4843   for ac_exec_ext in '' $ac_executable_extensions; do
4844   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4845     ac_cv_prog_LINT="$ac_prog"
4846     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4847     break 2
4848   fi
4849 done
4850 done
4851
4852 fi
4853 fi
4854 LINT=$ac_cv_prog_LINT
4855 if test -n "$LINT"; then
4856   echo "$as_me:$LINENO: result: $LINT" >&5
4857 echo "${ECHO_T}$LINT" >&6
4858 else
4859   echo "$as_me:$LINENO: result: no" >&5
4860 echo "${ECHO_T}no" >&6
4861 fi
4862
4863   test -n "$LINT" && break
4864 done
4865
4866 if test "$LINT" = "lint"
4867 then
4868   LINTFLAGS="$LINTFLAGS -errchk=%all,no%longptr64 -errhdr=%user -Ncheck=macro -Nlevel=4"
4869   fi
4870
4871
4872
4873 for ac_prog in docbook2html db2html
4874 do
4875   # Extract the first word of "$ac_prog", so it can be a program name with args.
4876 set dummy $ac_prog; ac_word=$2
4877 echo "$as_me:$LINENO: checking for $ac_word" >&5
4878 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4879 if test "${ac_cv_prog_DB2HTML+set}" = set; then
4880   echo $ECHO_N "(cached) $ECHO_C" >&6
4881 else
4882   if test -n "$DB2HTML"; then
4883   ac_cv_prog_DB2HTML="$DB2HTML" # Let the user override the test.
4884 else
4885 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4886 for as_dir in $PATH
4887 do
4888   IFS=$as_save_IFS
4889   test -z "$as_dir" && as_dir=.
4890   for ac_exec_ext in '' $ac_executable_extensions; do
4891   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4892     ac_cv_prog_DB2HTML="$ac_prog"
4893     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4894     break 2
4895   fi
4896 done
4897 done
4898
4899 fi
4900 fi
4901 DB2HTML=$ac_cv_prog_DB2HTML
4902 if test -n "$DB2HTML"; then
4903   echo "$as_me:$LINENO: result: $DB2HTML" >&5
4904 echo "${ECHO_T}$DB2HTML" >&6
4905 else
4906   echo "$as_me:$LINENO: result: no" >&5
4907 echo "${ECHO_T}no" >&6
4908 fi
4909
4910   test -n "$DB2HTML" && break
4911 done
4912 test -n "$DB2HTML" || DB2HTML="false"
4913
4914
4915
4916 for ac_prog in docbook2pdf db2pdf
4917 do
4918   # Extract the first word of "$ac_prog", so it can be a program name with args.
4919 set dummy $ac_prog; ac_word=$2
4920 echo "$as_me:$LINENO: checking for $ac_word" >&5
4921 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4922 if test "${ac_cv_prog_DB2PDF+set}" = set; then
4923   echo $ECHO_N "(cached) $ECHO_C" >&6
4924 else
4925   if test -n "$DB2PDF"; then
4926   ac_cv_prog_DB2PDF="$DB2PDF" # Let the user override the test.
4927 else
4928 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4929 for as_dir in $PATH
4930 do
4931   IFS=$as_save_IFS
4932   test -z "$as_dir" && as_dir=.
4933   for ac_exec_ext in '' $ac_executable_extensions; do
4934   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4935     ac_cv_prog_DB2PDF="$ac_prog"
4936     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4937     break 2
4938   fi
4939 done
4940 done
4941
4942 fi
4943 fi
4944 DB2PDF=$ac_cv_prog_DB2PDF
4945 if test -n "$DB2PDF"; then
4946   echo "$as_me:$LINENO: result: $DB2PDF" >&5
4947 echo "${ECHO_T}$DB2PDF" >&6
4948 else
4949   echo "$as_me:$LINENO: result: no" >&5
4950 echo "${ECHO_T}no" >&6
4951 fi
4952
4953   test -n "$DB2PDF" && break
4954 done
4955 test -n "$DB2PDF" || DB2PDF="false"
4956
4957
4958
4959 for ac_prog in docbook2ps db2ps
4960 do
4961   # Extract the first word of "$ac_prog", so it can be a program name with args.
4962 set dummy $ac_prog; ac_word=$2
4963 echo "$as_me:$LINENO: checking for $ac_word" >&5
4964 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4965 if test "${ac_cv_prog_DB2PS+set}" = set; then
4966   echo $ECHO_N "(cached) $ECHO_C" >&6
4967 else
4968   if test -n "$DB2PS"; then
4969   ac_cv_prog_DB2PS="$DB2PS" # Let the user override the test.
4970 else
4971 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4972 for as_dir in $PATH
4973 do
4974   IFS=$as_save_IFS
4975   test -z "$as_dir" && as_dir=.
4976   for ac_exec_ext in '' $ac_executable_extensions; do
4977   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4978     ac_cv_prog_DB2PS="$ac_prog"
4979     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4980     break 2
4981   fi
4982 done
4983 done
4984
4985 fi
4986 fi
4987 DB2PS=$ac_cv_prog_DB2PS
4988 if test -n "$DB2PS"; then
4989   echo "$as_me:$LINENO: result: $DB2PS" >&5
4990 echo "${ECHO_T}$DB2PS" >&6
4991 else
4992   echo "$as_me:$LINENO: result: no" >&5
4993 echo "${ECHO_T}no" >&6
4994 fi
4995
4996   test -n "$DB2PS" && break
4997 done
4998 test -n "$DB2PS" || DB2PS="false"
4999
5000
5001
5002 for ac_prog in docbook2txt db2txt
5003 do
5004   # Extract the first word of "$ac_prog", so it can be a program name with args.
5005 set dummy $ac_prog; ac_word=$2
5006 echo "$as_me:$LINENO: checking for $ac_word" >&5
5007 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5008 if test "${ac_cv_prog_DB2TXT+set}" = set; then
5009   echo $ECHO_N "(cached) $ECHO_C" >&6
5010 else
5011   if test -n "$DB2TXT"; then
5012   ac_cv_prog_DB2TXT="$DB2TXT" # Let the user override the test.
5013 else
5014 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5015 for as_dir in $PATH
5016 do
5017   IFS=$as_save_IFS
5018   test -z "$as_dir" && as_dir=.
5019   for ac_exec_ext in '' $ac_executable_extensions; do
5020   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5021     ac_cv_prog_DB2TXT="$ac_prog"
5022     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5023     break 2
5024   fi
5025 done
5026 done
5027
5028 fi
5029 fi
5030 DB2TXT=$ac_cv_prog_DB2TXT
5031 if test -n "$DB2TXT"; then
5032   echo "$as_me:$LINENO: result: $DB2TXT" >&5
5033 echo "${ECHO_T}$DB2TXT" >&6
5034 else
5035   echo "$as_me:$LINENO: result: no" >&5
5036 echo "${ECHO_T}no" >&6
5037 fi
5038
5039   test -n "$DB2TXT" && break
5040 done
5041 test -n "$DB2TXT" || DB2TXT="false"
5042
5043
5044
5045
5046
5047 echo "$as_me:$LINENO: checking for sqrt in -lm" >&5
5048 echo $ECHO_N "checking for sqrt in -lm... $ECHO_C" >&6
5049 if test "${ac_cv_lib_m_sqrt+set}" = set; then
5050   echo $ECHO_N "(cached) $ECHO_C" >&6
5051 else
5052   ac_check_lib_save_LIBS=$LIBS
5053 LIBS="-lm  $LIBS"
5054 cat >conftest.$ac_ext <<_ACEOF
5055 #line $LINENO "configure"
5056 /* confdefs.h.  */
5057 _ACEOF
5058 cat confdefs.h >>conftest.$ac_ext
5059 cat >>conftest.$ac_ext <<_ACEOF
5060 /* end confdefs.h.  */
5061
5062 /* Override any gcc2 internal prototype to avoid an error.  */
5063 #ifdef __cplusplus
5064 extern "C"
5065 #endif
5066 /* We use char because int might match the return type of a gcc2
5067    builtin and then its argument prototype would still apply.  */
5068 char sqrt ();
5069 int
5070 main ()
5071 {
5072 sqrt ();
5073   ;
5074   return 0;
5075 }
5076 _ACEOF
5077 rm -f conftest.$ac_objext conftest$ac_exeext
5078 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5079   (eval $ac_link) 2>&5
5080   ac_status=$?
5081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5082   (exit $ac_status); } &&
5083          { ac_try='test -s conftest$ac_exeext'
5084   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5085   (eval $ac_try) 2>&5
5086   ac_status=$?
5087   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5088   (exit $ac_status); }; }; then
5089   ac_cv_lib_m_sqrt=yes
5090 else
5091   echo "$as_me: failed program was:" >&5
5092 sed 's/^/| /' conftest.$ac_ext >&5
5093
5094 ac_cv_lib_m_sqrt=no
5095 fi
5096 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5097 LIBS=$ac_check_lib_save_LIBS
5098 fi
5099 echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrt" >&5
5100 echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6
5101 if test $ac_cv_lib_m_sqrt = yes; then
5102   cat >>confdefs.h <<_ACEOF
5103 #define HAVE_LIBM 1
5104 _ACEOF
5105
5106   LIBS="-lm $LIBS"
5107
5108 fi
5109
5110
5111 echo "$as_me:$LINENO: checking for i386_set_ldt in -li386" >&5
5112 echo $ECHO_N "checking for i386_set_ldt in -li386... $ECHO_C" >&6
5113 if test "${ac_cv_lib_i386_i386_set_ldt+set}" = set; then
5114   echo $ECHO_N "(cached) $ECHO_C" >&6
5115 else
5116   ac_check_lib_save_LIBS=$LIBS
5117 LIBS="-li386  $LIBS"
5118 cat >conftest.$ac_ext <<_ACEOF
5119 #line $LINENO "configure"
5120 /* confdefs.h.  */
5121 _ACEOF
5122 cat confdefs.h >>conftest.$ac_ext
5123 cat >>conftest.$ac_ext <<_ACEOF
5124 /* end confdefs.h.  */
5125
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 i386_set_ldt ();
5133 int
5134 main ()
5135 {
5136 i386_set_ldt ();
5137   ;
5138   return 0;
5139 }
5140 _ACEOF
5141 rm -f conftest.$ac_objext conftest$ac_exeext
5142 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5143   (eval $ac_link) 2>&5
5144   ac_status=$?
5145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5146   (exit $ac_status); } &&
5147          { ac_try='test -s conftest$ac_exeext'
5148   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5149   (eval $ac_try) 2>&5
5150   ac_status=$?
5151   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5152   (exit $ac_status); }; }; then
5153   ac_cv_lib_i386_i386_set_ldt=yes
5154 else
5155   echo "$as_me: failed program was:" >&5
5156 sed 's/^/| /' conftest.$ac_ext >&5
5157
5158 ac_cv_lib_i386_i386_set_ldt=no
5159 fi
5160 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5161 LIBS=$ac_check_lib_save_LIBS
5162 fi
5163 echo "$as_me:$LINENO: result: $ac_cv_lib_i386_i386_set_ldt" >&5
5164 echo "${ECHO_T}$ac_cv_lib_i386_i386_set_ldt" >&6
5165 if test $ac_cv_lib_i386_i386_set_ldt = yes; then
5166   cat >>confdefs.h <<_ACEOF
5167 #define HAVE_LIBI386 1
5168 _ACEOF
5169
5170   LIBS="-li386 $LIBS"
5171
5172 fi
5173
5174
5175 echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5
5176 echo $ECHO_N "checking for _oss_ioctl in -lossaudio... $ECHO_C" >&6
5177 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then
5178   echo $ECHO_N "(cached) $ECHO_C" >&6
5179 else
5180   ac_check_lib_save_LIBS=$LIBS
5181 LIBS="-lossaudio  $LIBS"
5182 cat >conftest.$ac_ext <<_ACEOF
5183 #line $LINENO "configure"
5184 /* confdefs.h.  */
5185 _ACEOF
5186 cat confdefs.h >>conftest.$ac_ext
5187 cat >>conftest.$ac_ext <<_ACEOF
5188 /* end confdefs.h.  */
5189
5190 /* Override any gcc2 internal prototype to avoid an error.  */
5191 #ifdef __cplusplus
5192 extern "C"
5193 #endif
5194 /* We use char because int might match the return type of a gcc2
5195    builtin and then its argument prototype would still apply.  */
5196 char _oss_ioctl ();
5197 int
5198 main ()
5199 {
5200 _oss_ioctl ();
5201   ;
5202   return 0;
5203 }
5204 _ACEOF
5205 rm -f conftest.$ac_objext conftest$ac_exeext
5206 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5207   (eval $ac_link) 2>&5
5208   ac_status=$?
5209   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5210   (exit $ac_status); } &&
5211          { ac_try='test -s conftest$ac_exeext'
5212   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5213   (eval $ac_try) 2>&5
5214   ac_status=$?
5215   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5216   (exit $ac_status); }; }; then
5217   ac_cv_lib_ossaudio__oss_ioctl=yes
5218 else
5219   echo "$as_me: failed program was:" >&5
5220 sed 's/^/| /' conftest.$ac_ext >&5
5221
5222 ac_cv_lib_ossaudio__oss_ioctl=no
5223 fi
5224 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5225 LIBS=$ac_check_lib_save_LIBS
5226 fi
5227 echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
5228 echo "${ECHO_T}$ac_cv_lib_ossaudio__oss_ioctl" >&6
5229 if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then
5230   cat >>confdefs.h <<_ACEOF
5231 #define HAVE_LIBOSSAUDIO 1
5232 _ACEOF
5233
5234   LIBS="-lossaudio $LIBS"
5235
5236 fi
5237
5238
5239 for ac_func in iswalnum
5240 do
5241 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5242 echo "$as_me:$LINENO: checking for $ac_func" >&5
5243 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5244 if eval "test \"\${$as_ac_var+set}\" = set"; then
5245   echo $ECHO_N "(cached) $ECHO_C" >&6
5246 else
5247   cat >conftest.$ac_ext <<_ACEOF
5248 #line $LINENO "configure"
5249 /* confdefs.h.  */
5250 _ACEOF
5251 cat confdefs.h >>conftest.$ac_ext
5252 cat >>conftest.$ac_ext <<_ACEOF
5253 /* end confdefs.h.  */
5254 /* System header to define __stub macros and hopefully few prototypes,
5255     which can conflict with char $ac_func (); below.
5256     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5257     <limits.h> exists even on freestanding compilers.  */
5258 #ifdef __STDC__
5259 # include <limits.h>
5260 #else
5261 # include <assert.h>
5262 #endif
5263 /* Override any gcc2 internal prototype to avoid an error.  */
5264 #ifdef __cplusplus
5265 extern "C"
5266 {
5267 #endif
5268 /* We use char because int might match the return type of a gcc2
5269    builtin and then its argument prototype would still apply.  */
5270 char $ac_func ();
5271 /* The GNU C library defines this for functions which it implements
5272     to always fail with ENOSYS.  Some functions are actually named
5273     something starting with __ and the normal name is an alias.  */
5274 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5275 choke me
5276 #else
5277 char (*f) () = $ac_func;
5278 #endif
5279 #ifdef __cplusplus
5280 }
5281 #endif
5282
5283 int
5284 main ()
5285 {
5286 return f != $ac_func;
5287   ;
5288   return 0;
5289 }
5290 _ACEOF
5291 rm -f conftest.$ac_objext conftest$ac_exeext
5292 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5293   (eval $ac_link) 2>&5
5294   ac_status=$?
5295   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5296   (exit $ac_status); } &&
5297          { ac_try='test -s conftest$ac_exeext'
5298   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5299   (eval $ac_try) 2>&5
5300   ac_status=$?
5301   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5302   (exit $ac_status); }; }; then
5303   eval "$as_ac_var=yes"
5304 else
5305   echo "$as_me: failed program was:" >&5
5306 sed 's/^/| /' conftest.$ac_ext >&5
5307
5308 eval "$as_ac_var=no"
5309 fi
5310 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5311 fi
5312 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5313 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5314 if test `eval echo '${'$as_ac_var'}'` = yes; then
5315   cat >>confdefs.h <<_ACEOF
5316 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5317 _ACEOF
5318
5319 else
5320
5321 echo "$as_me:$LINENO: checking for iswalnum in -lw" >&5
5322 echo $ECHO_N "checking for iswalnum in -lw... $ECHO_C" >&6
5323 if test "${ac_cv_lib_w_iswalnum+set}" = set; then
5324   echo $ECHO_N "(cached) $ECHO_C" >&6
5325 else
5326   ac_check_lib_save_LIBS=$LIBS
5327 LIBS="-lw  $LIBS"
5328 cat >conftest.$ac_ext <<_ACEOF
5329 #line $LINENO "configure"
5330 /* confdefs.h.  */
5331 _ACEOF
5332 cat confdefs.h >>conftest.$ac_ext
5333 cat >>conftest.$ac_ext <<_ACEOF
5334 /* end confdefs.h.  */
5335
5336 /* Override any gcc2 internal prototype to avoid an error.  */
5337 #ifdef __cplusplus
5338 extern "C"
5339 #endif
5340 /* We use char because int might match the return type of a gcc2
5341    builtin and then its argument prototype would still apply.  */
5342 char iswalnum ();
5343 int
5344 main ()
5345 {
5346 iswalnum ();
5347   ;
5348   return 0;
5349 }
5350 _ACEOF
5351 rm -f conftest.$ac_objext conftest$ac_exeext
5352 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5353   (eval $ac_link) 2>&5
5354   ac_status=$?
5355   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5356   (exit $ac_status); } &&
5357          { ac_try='test -s conftest$ac_exeext'
5358   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5359   (eval $ac_try) 2>&5
5360   ac_status=$?
5361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5362   (exit $ac_status); }; }; then
5363   ac_cv_lib_w_iswalnum=yes
5364 else
5365   echo "$as_me: failed program was:" >&5
5366 sed 's/^/| /' conftest.$ac_ext >&5
5367
5368 ac_cv_lib_w_iswalnum=no
5369 fi
5370 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5371 LIBS=$ac_check_lib_save_LIBS
5372 fi
5373 echo "$as_me:$LINENO: result: $ac_cv_lib_w_iswalnum" >&5
5374 echo "${ECHO_T}$ac_cv_lib_w_iswalnum" >&6
5375 if test $ac_cv_lib_w_iswalnum = yes; then
5376   cat >>confdefs.h <<_ACEOF
5377 #define HAVE_LIBW 1
5378 _ACEOF
5379
5380   LIBS="-lw $LIBS"
5381
5382 fi
5383
5384 fi
5385 done
5386
5387
5388 for ac_func in gethostbyname
5389 do
5390 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5391 echo "$as_me:$LINENO: checking for $ac_func" >&5
5392 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5393 if eval "test \"\${$as_ac_var+set}\" = set"; then
5394   echo $ECHO_N "(cached) $ECHO_C" >&6
5395 else
5396   cat >conftest.$ac_ext <<_ACEOF
5397 #line $LINENO "configure"
5398 /* confdefs.h.  */
5399 _ACEOF
5400 cat confdefs.h >>conftest.$ac_ext
5401 cat >>conftest.$ac_ext <<_ACEOF
5402 /* end confdefs.h.  */
5403 /* System header to define __stub macros and hopefully few prototypes,
5404     which can conflict with char $ac_func (); below.
5405     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5406     <limits.h> exists even on freestanding compilers.  */
5407 #ifdef __STDC__
5408 # include <limits.h>
5409 #else
5410 # include <assert.h>
5411 #endif
5412 /* Override any gcc2 internal prototype to avoid an error.  */
5413 #ifdef __cplusplus
5414 extern "C"
5415 {
5416 #endif
5417 /* We use char because int might match the return type of a gcc2
5418    builtin and then its argument prototype would still apply.  */
5419 char $ac_func ();
5420 /* The GNU C library defines this for functions which it implements
5421     to always fail with ENOSYS.  Some functions are actually named
5422     something starting with __ and the normal name is an alias.  */
5423 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5424 choke me
5425 #else
5426 char (*f) () = $ac_func;
5427 #endif
5428 #ifdef __cplusplus
5429 }
5430 #endif
5431
5432 int
5433 main ()
5434 {
5435 return f != $ac_func;
5436   ;
5437   return 0;
5438 }
5439 _ACEOF
5440 rm -f conftest.$ac_objext conftest$ac_exeext
5441 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5442   (eval $ac_link) 2>&5
5443   ac_status=$?
5444   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5445   (exit $ac_status); } &&
5446          { ac_try='test -s conftest$ac_exeext'
5447   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5448   (eval $ac_try) 2>&5
5449   ac_status=$?
5450   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5451   (exit $ac_status); }; }; then
5452   eval "$as_ac_var=yes"
5453 else
5454   echo "$as_me: failed program was:" >&5
5455 sed 's/^/| /' conftest.$ac_ext >&5
5456
5457 eval "$as_ac_var=no"
5458 fi
5459 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5460 fi
5461 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5462 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5463 if test `eval echo '${'$as_ac_var'}'` = yes; then
5464   cat >>confdefs.h <<_ACEOF
5465 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5466 _ACEOF
5467
5468 else
5469
5470 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
5471 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
5472 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
5473   echo $ECHO_N "(cached) $ECHO_C" >&6
5474 else
5475   ac_check_lib_save_LIBS=$LIBS
5476 LIBS="-lnsl  $LIBS"
5477 cat >conftest.$ac_ext <<_ACEOF
5478 #line $LINENO "configure"
5479 /* confdefs.h.  */
5480 _ACEOF
5481 cat confdefs.h >>conftest.$ac_ext
5482 cat >>conftest.$ac_ext <<_ACEOF
5483 /* end confdefs.h.  */
5484
5485 /* Override any gcc2 internal prototype to avoid an error.  */
5486 #ifdef __cplusplus
5487 extern "C"
5488 #endif
5489 /* We use char because int might match the return type of a gcc2
5490    builtin and then its argument prototype would still apply.  */
5491 char gethostbyname ();
5492 int
5493 main ()
5494 {
5495 gethostbyname ();
5496   ;
5497   return 0;
5498 }
5499 _ACEOF
5500 rm -f conftest.$ac_objext conftest$ac_exeext
5501 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5502   (eval $ac_link) 2>&5
5503   ac_status=$?
5504   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5505   (exit $ac_status); } &&
5506          { ac_try='test -s conftest$ac_exeext'
5507   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5508   (eval $ac_try) 2>&5
5509   ac_status=$?
5510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5511   (exit $ac_status); }; }; then
5512   ac_cv_lib_nsl_gethostbyname=yes
5513 else
5514   echo "$as_me: failed program was:" >&5
5515 sed 's/^/| /' conftest.$ac_ext >&5
5516
5517 ac_cv_lib_nsl_gethostbyname=no
5518 fi
5519 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5520 LIBS=$ac_check_lib_save_LIBS
5521 fi
5522 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
5523 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
5524 if test $ac_cv_lib_nsl_gethostbyname = yes; then
5525   cat >>confdefs.h <<_ACEOF
5526 #define HAVE_LIBNSL 1
5527 _ACEOF
5528
5529   LIBS="-lnsl $LIBS"
5530
5531 fi
5532
5533 fi
5534 done
5535
5536
5537 for ac_func in connect
5538 do
5539 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5540 echo "$as_me:$LINENO: checking for $ac_func" >&5
5541 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5542 if eval "test \"\${$as_ac_var+set}\" = set"; then
5543   echo $ECHO_N "(cached) $ECHO_C" >&6
5544 else
5545   cat >conftest.$ac_ext <<_ACEOF
5546 #line $LINENO "configure"
5547 /* confdefs.h.  */
5548 _ACEOF
5549 cat confdefs.h >>conftest.$ac_ext
5550 cat >>conftest.$ac_ext <<_ACEOF
5551 /* end confdefs.h.  */
5552 /* System header to define __stub macros and hopefully few prototypes,
5553     which can conflict with char $ac_func (); below.
5554     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5555     <limits.h> exists even on freestanding compilers.  */
5556 #ifdef __STDC__
5557 # include <limits.h>
5558 #else
5559 # include <assert.h>
5560 #endif
5561 /* Override any gcc2 internal prototype to avoid an error.  */
5562 #ifdef __cplusplus
5563 extern "C"
5564 {
5565 #endif
5566 /* We use char because int might match the return type of a gcc2
5567    builtin and then its argument prototype would still apply.  */
5568 char $ac_func ();
5569 /* The GNU C library defines this for functions which it implements
5570     to always fail with ENOSYS.  Some functions are actually named
5571     something starting with __ and the normal name is an alias.  */
5572 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5573 choke me
5574 #else
5575 char (*f) () = $ac_func;
5576 #endif
5577 #ifdef __cplusplus
5578 }
5579 #endif
5580
5581 int
5582 main ()
5583 {
5584 return f != $ac_func;
5585   ;
5586   return 0;
5587 }
5588 _ACEOF
5589 rm -f conftest.$ac_objext conftest$ac_exeext
5590 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5591   (eval $ac_link) 2>&5
5592   ac_status=$?
5593   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5594   (exit $ac_status); } &&
5595          { ac_try='test -s conftest$ac_exeext'
5596   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5597   (eval $ac_try) 2>&5
5598   ac_status=$?
5599   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5600   (exit $ac_status); }; }; then
5601   eval "$as_ac_var=yes"
5602 else
5603   echo "$as_me: failed program was:" >&5
5604 sed 's/^/| /' conftest.$ac_ext >&5
5605
5606 eval "$as_ac_var=no"
5607 fi
5608 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5609 fi
5610 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5611 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5612 if test `eval echo '${'$as_ac_var'}'` = yes; then
5613   cat >>confdefs.h <<_ACEOF
5614 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5615 _ACEOF
5616
5617 else
5618
5619 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
5620 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
5621 if test "${ac_cv_lib_socket_connect+set}" = set; then
5622   echo $ECHO_N "(cached) $ECHO_C" >&6
5623 else
5624   ac_check_lib_save_LIBS=$LIBS
5625 LIBS="-lsocket  $LIBS"
5626 cat >conftest.$ac_ext <<_ACEOF
5627 #line $LINENO "configure"
5628 /* confdefs.h.  */
5629 _ACEOF
5630 cat confdefs.h >>conftest.$ac_ext
5631 cat >>conftest.$ac_ext <<_ACEOF
5632 /* end confdefs.h.  */
5633
5634 /* Override any gcc2 internal prototype to avoid an error.  */
5635 #ifdef __cplusplus
5636 extern "C"
5637 #endif
5638 /* We use char because int might match the return type of a gcc2
5639    builtin and then its argument prototype would still apply.  */
5640 char connect ();
5641 int
5642 main ()
5643 {
5644 connect ();
5645   ;
5646   return 0;
5647 }
5648 _ACEOF
5649 rm -f conftest.$ac_objext conftest$ac_exeext
5650 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5651   (eval $ac_link) 2>&5
5652   ac_status=$?
5653   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5654   (exit $ac_status); } &&
5655          { ac_try='test -s conftest$ac_exeext'
5656   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5657   (eval $ac_try) 2>&5
5658   ac_status=$?
5659   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5660   (exit $ac_status); }; }; then
5661   ac_cv_lib_socket_connect=yes
5662 else
5663   echo "$as_me: failed program was:" >&5
5664 sed 's/^/| /' conftest.$ac_ext >&5
5665
5666 ac_cv_lib_socket_connect=no
5667 fi
5668 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5669 LIBS=$ac_check_lib_save_LIBS
5670 fi
5671 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
5672 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
5673 if test $ac_cv_lib_socket_connect = yes; then
5674   cat >>confdefs.h <<_ACEOF
5675 #define HAVE_LIBSOCKET 1
5676 _ACEOF
5677
5678   LIBS="-lsocket $LIBS"
5679
5680 fi
5681
5682 fi
5683 done
5684
5685
5686 for ac_func in inet_aton
5687 do
5688 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5689 echo "$as_me:$LINENO: checking for $ac_func" >&5
5690 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5691 if eval "test \"\${$as_ac_var+set}\" = set"; then
5692   echo $ECHO_N "(cached) $ECHO_C" >&6
5693 else
5694   cat >conftest.$ac_ext <<_ACEOF
5695 #line $LINENO "configure"
5696 /* confdefs.h.  */
5697 _ACEOF
5698 cat confdefs.h >>conftest.$ac_ext
5699 cat >>conftest.$ac_ext <<_ACEOF
5700 /* end confdefs.h.  */
5701 /* System header to define __stub macros and hopefully few prototypes,
5702     which can conflict with char $ac_func (); below.
5703     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5704     <limits.h> exists even on freestanding compilers.  */
5705 #ifdef __STDC__
5706 # include <limits.h>
5707 #else
5708 # include <assert.h>
5709 #endif
5710 /* Override any gcc2 internal prototype to avoid an error.  */
5711 #ifdef __cplusplus
5712 extern "C"
5713 {
5714 #endif
5715 /* We use char because int might match the return type of a gcc2
5716    builtin and then its argument prototype would still apply.  */
5717 char $ac_func ();
5718 /* The GNU C library defines this for functions which it implements
5719     to always fail with ENOSYS.  Some functions are actually named
5720     something starting with __ and the normal name is an alias.  */
5721 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5722 choke me
5723 #else
5724 char (*f) () = $ac_func;
5725 #endif
5726 #ifdef __cplusplus
5727 }
5728 #endif
5729
5730 int
5731 main ()
5732 {
5733 return f != $ac_func;
5734   ;
5735   return 0;
5736 }
5737 _ACEOF
5738 rm -f conftest.$ac_objext conftest$ac_exeext
5739 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5740   (eval $ac_link) 2>&5
5741   ac_status=$?
5742   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5743   (exit $ac_status); } &&
5744          { ac_try='test -s conftest$ac_exeext'
5745   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5746   (eval $ac_try) 2>&5
5747   ac_status=$?
5748   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5749   (exit $ac_status); }; }; then
5750   eval "$as_ac_var=yes"
5751 else
5752   echo "$as_me: failed program was:" >&5
5753 sed 's/^/| /' conftest.$ac_ext >&5
5754
5755 eval "$as_ac_var=no"
5756 fi
5757 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5758 fi
5759 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5760 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5761 if test `eval echo '${'$as_ac_var'}'` = yes; then
5762   cat >>confdefs.h <<_ACEOF
5763 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5764 _ACEOF
5765
5766 else
5767
5768 echo "$as_me:$LINENO: checking for inet_aton in -lresolv" >&5
5769 echo $ECHO_N "checking for inet_aton in -lresolv... $ECHO_C" >&6
5770 if test "${ac_cv_lib_resolv_inet_aton+set}" = set; then
5771   echo $ECHO_N "(cached) $ECHO_C" >&6
5772 else
5773   ac_check_lib_save_LIBS=$LIBS
5774 LIBS="-lresolv  $LIBS"
5775 cat >conftest.$ac_ext <<_ACEOF
5776 #line $LINENO "configure"
5777 /* confdefs.h.  */
5778 _ACEOF
5779 cat confdefs.h >>conftest.$ac_ext
5780 cat >>conftest.$ac_ext <<_ACEOF
5781 /* end confdefs.h.  */
5782
5783 /* Override any gcc2 internal prototype to avoid an error.  */
5784 #ifdef __cplusplus
5785 extern "C"
5786 #endif
5787 /* We use char because int might match the return type of a gcc2
5788    builtin and then its argument prototype would still apply.  */
5789 char inet_aton ();
5790 int
5791 main ()
5792 {
5793 inet_aton ();
5794   ;
5795   return 0;
5796 }
5797 _ACEOF
5798 rm -f conftest.$ac_objext conftest$ac_exeext
5799 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5800   (eval $ac_link) 2>&5
5801   ac_status=$?
5802   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5803   (exit $ac_status); } &&
5804          { ac_try='test -s conftest$ac_exeext'
5805   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5806   (eval $ac_try) 2>&5
5807   ac_status=$?
5808   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5809   (exit $ac_status); }; }; then
5810   ac_cv_lib_resolv_inet_aton=yes
5811 else
5812   echo "$as_me: failed program was:" >&5
5813 sed 's/^/| /' conftest.$ac_ext >&5
5814
5815 ac_cv_lib_resolv_inet_aton=no
5816 fi
5817 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5818 LIBS=$ac_check_lib_save_LIBS
5819 fi
5820 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_aton" >&5
5821 echo "${ECHO_T}$ac_cv_lib_resolv_inet_aton" >&6
5822 if test $ac_cv_lib_resolv_inet_aton = yes; then
5823   cat >>confdefs.h <<_ACEOF
5824 #define HAVE_LIBRESOLV 1
5825 _ACEOF
5826
5827   LIBS="-lresolv $LIBS"
5828
5829 fi
5830
5831 fi
5832 done
5833
5834
5835 echo "$as_me:$LINENO: checking for _xpg4_setrunelocale in -lxpg4" >&5
5836 echo $ECHO_N "checking for _xpg4_setrunelocale in -lxpg4... $ECHO_C" >&6
5837 if test "${ac_cv_lib_xpg4__xpg4_setrunelocale+set}" = set; then
5838   echo $ECHO_N "(cached) $ECHO_C" >&6
5839 else
5840   ac_check_lib_save_LIBS=$LIBS
5841 LIBS="-lxpg4  $LIBS"
5842 cat >conftest.$ac_ext <<_ACEOF
5843 #line $LINENO "configure"
5844 /* confdefs.h.  */
5845 _ACEOF
5846 cat confdefs.h >>conftest.$ac_ext
5847 cat >>conftest.$ac_ext <<_ACEOF
5848 /* end confdefs.h.  */
5849
5850 /* Override any gcc2 internal prototype to avoid an error.  */
5851 #ifdef __cplusplus
5852 extern "C"
5853 #endif
5854 /* We use char because int might match the return type of a gcc2
5855    builtin and then its argument prototype would still apply.  */
5856 char _xpg4_setrunelocale ();
5857 int
5858 main ()
5859 {
5860 _xpg4_setrunelocale ();
5861   ;
5862   return 0;
5863 }
5864 _ACEOF
5865 rm -f conftest.$ac_objext conftest$ac_exeext
5866 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5867   (eval $ac_link) 2>&5
5868   ac_status=$?
5869   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5870   (exit $ac_status); } &&
5871          { ac_try='test -s conftest$ac_exeext'
5872   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5873   (eval $ac_try) 2>&5
5874   ac_status=$?
5875   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5876   (exit $ac_status); }; }; then
5877   ac_cv_lib_xpg4__xpg4_setrunelocale=yes
5878 else
5879   echo "$as_me: failed program was:" >&5
5880 sed 's/^/| /' conftest.$ac_ext >&5
5881
5882 ac_cv_lib_xpg4__xpg4_setrunelocale=no
5883 fi
5884 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5885 LIBS=$ac_check_lib_save_LIBS
5886 fi
5887 echo "$as_me:$LINENO: result: $ac_cv_lib_xpg4__xpg4_setrunelocale" >&5
5888 echo "${ECHO_T}$ac_cv_lib_xpg4__xpg4_setrunelocale" >&6
5889 if test $ac_cv_lib_xpg4__xpg4_setrunelocale = yes; then
5890   cat >>confdefs.h <<_ACEOF
5891 #define HAVE_LIBXPG4 1
5892 _ACEOF
5893
5894   LIBS="-lxpg4 $LIBS"
5895
5896 fi
5897
5898
5899 echo "$as_me:$LINENO: checking for mmap in -lmmap" >&5
5900 echo $ECHO_N "checking for mmap in -lmmap... $ECHO_C" >&6
5901 if test "${ac_cv_lib_mmap_mmap+set}" = set; then
5902   echo $ECHO_N "(cached) $ECHO_C" >&6
5903 else
5904   ac_check_lib_save_LIBS=$LIBS
5905 LIBS="-lmmap  $LIBS"
5906 cat >conftest.$ac_ext <<_ACEOF
5907 #line $LINENO "configure"
5908 /* confdefs.h.  */
5909 _ACEOF
5910 cat confdefs.h >>conftest.$ac_ext
5911 cat >>conftest.$ac_ext <<_ACEOF
5912 /* end confdefs.h.  */
5913
5914 /* Override any gcc2 internal prototype to avoid an error.  */
5915 #ifdef __cplusplus
5916 extern "C"
5917 #endif
5918 /* We use char because int might match the return type of a gcc2
5919    builtin and then its argument prototype would still apply.  */
5920 char mmap ();
5921 int
5922 main ()
5923 {
5924 mmap ();
5925   ;
5926   return 0;
5927 }
5928 _ACEOF
5929 rm -f conftest.$ac_objext conftest$ac_exeext
5930 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5931   (eval $ac_link) 2>&5
5932   ac_status=$?
5933   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5934   (exit $ac_status); } &&
5935          { ac_try='test -s conftest$ac_exeext'
5936   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5937   (eval $ac_try) 2>&5
5938   ac_status=$?
5939   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5940   (exit $ac_status); }; }; then
5941   ac_cv_lib_mmap_mmap=yes
5942 else
5943   echo "$as_me: failed program was:" >&5
5944 sed 's/^/| /' conftest.$ac_ext >&5
5945
5946 ac_cv_lib_mmap_mmap=no
5947 fi
5948 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5949 LIBS=$ac_check_lib_save_LIBS
5950 fi
5951 echo "$as_me:$LINENO: result: $ac_cv_lib_mmap_mmap" >&5
5952 echo "${ECHO_T}$ac_cv_lib_mmap_mmap" >&6
5953 if test $ac_cv_lib_mmap_mmap = yes; then
5954   cat >>confdefs.h <<_ACEOF
5955 #define HAVE_LIBMMAP 1
5956 _ACEOF
5957
5958   LIBS="-lmmap $LIBS"
5959
5960 fi
5961
5962
5963 JPEGLIB=""
5964
5965 echo "$as_me:$LINENO: checking for egrep" >&5
5966 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
5967 if test "${ac_cv_prog_egrep+set}" = set; then
5968   echo $ECHO_N "(cached) $ECHO_C" >&6
5969 else
5970   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
5971     then ac_cv_prog_egrep='grep -E'
5972     else ac_cv_prog_egrep='egrep'
5973     fi
5974 fi
5975 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
5976 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
5977  EGREP=$ac_cv_prog_egrep
5978
5979
5980 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5981 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5982 if test "${ac_cv_header_stdc+set}" = set; then
5983   echo $ECHO_N "(cached) $ECHO_C" >&6
5984 else
5985   cat >conftest.$ac_ext <<_ACEOF
5986 #line $LINENO "configure"
5987 /* confdefs.h.  */
5988 _ACEOF
5989 cat confdefs.h >>conftest.$ac_ext
5990 cat >>conftest.$ac_ext <<_ACEOF
5991 /* end confdefs.h.  */
5992 #include <stdlib.h>
5993 #include <stdarg.h>
5994 #include <string.h>
5995 #include <float.h>
5996
5997 int
5998 main ()
5999 {
6000
6001   ;
6002   return 0;
6003 }
6004 _ACEOF
6005 rm -f conftest.$ac_objext
6006 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6007   (eval $ac_compile) 2>&5
6008   ac_status=$?
6009   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6010   (exit $ac_status); } &&
6011          { ac_try='test -s conftest.$ac_objext'
6012   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6013   (eval $ac_try) 2>&5
6014   ac_status=$?
6015   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6016   (exit $ac_status); }; }; then
6017   ac_cv_header_stdc=yes
6018 else
6019   echo "$as_me: failed program was:" >&5
6020 sed 's/^/| /' conftest.$ac_ext >&5
6021
6022 ac_cv_header_stdc=no
6023 fi
6024 rm -f conftest.$ac_objext conftest.$ac_ext
6025
6026 if test $ac_cv_header_stdc = yes; then
6027   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6028   cat >conftest.$ac_ext <<_ACEOF
6029 #line $LINENO "configure"
6030 /* confdefs.h.  */
6031 _ACEOF
6032 cat confdefs.h >>conftest.$ac_ext
6033 cat >>conftest.$ac_ext <<_ACEOF
6034 /* end confdefs.h.  */
6035 #include <string.h>
6036
6037 _ACEOF
6038 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6039   $EGREP "memchr" >/dev/null 2>&1; then
6040   :
6041 else
6042   ac_cv_header_stdc=no
6043 fi
6044 rm -f conftest*
6045
6046 fi
6047
6048 if test $ac_cv_header_stdc = yes; then
6049   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6050   cat >conftest.$ac_ext <<_ACEOF
6051 #line $LINENO "configure"
6052 /* confdefs.h.  */
6053 _ACEOF
6054 cat confdefs.h >>conftest.$ac_ext
6055 cat >>conftest.$ac_ext <<_ACEOF
6056 /* end confdefs.h.  */
6057 #include <stdlib.h>
6058
6059 _ACEOF
6060 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6061   $EGREP "free" >/dev/null 2>&1; then
6062   :
6063 else
6064   ac_cv_header_stdc=no
6065 fi
6066 rm -f conftest*
6067
6068 fi
6069
6070 if test $ac_cv_header_stdc = yes; then
6071   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6072   if test "$cross_compiling" = yes; then
6073   :
6074 else
6075   cat >conftest.$ac_ext <<_ACEOF
6076 #line $LINENO "configure"
6077 /* confdefs.h.  */
6078 _ACEOF
6079 cat confdefs.h >>conftest.$ac_ext
6080 cat >>conftest.$ac_ext <<_ACEOF
6081 /* end confdefs.h.  */
6082 #include <ctype.h>
6083 #if ((' ' & 0x0FF) == 0x020)
6084 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6085 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6086 #else
6087 # define ISLOWER(c) \
6088                    (('a' <= (c) && (c) <= 'i') \
6089                      || ('j' <= (c) && (c) <= 'r') \
6090                      || ('s' <= (c) && (c) <= 'z'))
6091 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6092 #endif
6093
6094 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6095 int
6096 main ()
6097 {
6098   int i;
6099   for (i = 0; i < 256; i++)
6100     if (XOR (islower (i), ISLOWER (i))
6101         || toupper (i) != TOUPPER (i))
6102       exit(2);
6103   exit (0);
6104 }
6105 _ACEOF
6106 rm -f conftest$ac_exeext
6107 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6108   (eval $ac_link) 2>&5
6109   ac_status=$?
6110   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6111   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6112   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6113   (eval $ac_try) 2>&5
6114   ac_status=$?
6115   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6116   (exit $ac_status); }; }; then
6117   :
6118 else
6119   echo "$as_me: program exited with status $ac_status" >&5
6120 echo "$as_me: failed program was:" >&5
6121 sed 's/^/| /' conftest.$ac_ext >&5
6122
6123 ( exit $ac_status )
6124 ac_cv_header_stdc=no
6125 fi
6126 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6127 fi
6128 fi
6129 fi
6130 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6131 echo "${ECHO_T}$ac_cv_header_stdc" >&6
6132 if test $ac_cv_header_stdc = yes; then
6133
6134 cat >>confdefs.h <<\_ACEOF
6135 #define STDC_HEADERS 1
6136 _ACEOF
6137
6138 fi
6139
6140 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6141
6142
6143
6144
6145
6146
6147
6148
6149
6150 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6151                   inttypes.h stdint.h unistd.h
6152 do
6153 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6154 echo "$as_me:$LINENO: checking for $ac_header" >&5
6155 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6156 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6157   echo $ECHO_N "(cached) $ECHO_C" >&6
6158 else
6159   cat >conftest.$ac_ext <<_ACEOF
6160 #line $LINENO "configure"
6161 /* confdefs.h.  */
6162 _ACEOF
6163 cat confdefs.h >>conftest.$ac_ext
6164 cat >>conftest.$ac_ext <<_ACEOF
6165 /* end confdefs.h.  */
6166 $ac_includes_default
6167
6168 #include <$ac_header>
6169 _ACEOF
6170 rm -f conftest.$ac_objext
6171 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6172   (eval $ac_compile) 2>&5
6173   ac_status=$?
6174   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6175   (exit $ac_status); } &&
6176          { ac_try='test -s conftest.$ac_objext'
6177   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6178   (eval $ac_try) 2>&5
6179   ac_status=$?
6180   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6181   (exit $ac_status); }; }; then
6182   eval "$as_ac_Header=yes"
6183 else
6184   echo "$as_me: failed program was:" >&5
6185 sed 's/^/| /' conftest.$ac_ext >&5
6186
6187 eval "$as_ac_Header=no"
6188 fi
6189 rm -f conftest.$ac_objext conftest.$ac_ext
6190 fi
6191 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6192 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6193 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6194   cat >>confdefs.h <<_ACEOF
6195 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6196 _ACEOF
6197
6198 fi
6199
6200 done
6201
6202
6203
6204 for ac_header in jpeglib.h
6205 do
6206 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6207 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6208   echo "$as_me:$LINENO: checking for $ac_header" >&5
6209 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6210 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6211   echo $ECHO_N "(cached) $ECHO_C" >&6
6212 fi
6213 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6214 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6215 else
6216   # Is the header compilable?
6217 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6218 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6219 cat >conftest.$ac_ext <<_ACEOF
6220 #line $LINENO "configure"
6221 /* confdefs.h.  */
6222 _ACEOF
6223 cat confdefs.h >>conftest.$ac_ext
6224 cat >>conftest.$ac_ext <<_ACEOF
6225 /* end confdefs.h.  */
6226 $ac_includes_default
6227 #include <$ac_header>
6228 _ACEOF
6229 rm -f conftest.$ac_objext
6230 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6231   (eval $ac_compile) 2>&5
6232   ac_status=$?
6233   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6234   (exit $ac_status); } &&
6235          { ac_try='test -s conftest.$ac_objext'
6236   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6237   (eval $ac_try) 2>&5
6238   ac_status=$?
6239   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6240   (exit $ac_status); }; }; then
6241   ac_header_compiler=yes
6242 else
6243   echo "$as_me: failed program was:" >&5
6244 sed 's/^/| /' conftest.$ac_ext >&5
6245
6246 ac_header_compiler=no
6247 fi
6248 rm -f conftest.$ac_objext conftest.$ac_ext
6249 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6250 echo "${ECHO_T}$ac_header_compiler" >&6
6251
6252 # Is the header present?
6253 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6254 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6255 cat >conftest.$ac_ext <<_ACEOF
6256 #line $LINENO "configure"
6257 /* confdefs.h.  */
6258 _ACEOF
6259 cat confdefs.h >>conftest.$ac_ext
6260 cat >>conftest.$ac_ext <<_ACEOF
6261 /* end confdefs.h.  */
6262 #include <$ac_header>
6263 _ACEOF
6264 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6265   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6266   ac_status=$?
6267   grep -v '^ *+' conftest.er1 >conftest.err
6268   rm -f conftest.er1
6269   cat conftest.err >&5
6270   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6271   (exit $ac_status); } >/dev/null; then
6272   if test -s conftest.err; then
6273     ac_cpp_err=$ac_c_preproc_warn_flag
6274   else
6275     ac_cpp_err=
6276   fi
6277 else
6278   ac_cpp_err=yes
6279 fi
6280 if test -z "$ac_cpp_err"; then
6281   ac_header_preproc=yes
6282 else
6283   echo "$as_me: failed program was:" >&5
6284 sed 's/^/| /' conftest.$ac_ext >&5
6285
6286   ac_header_preproc=no
6287 fi
6288 rm -f conftest.err conftest.$ac_ext
6289 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6290 echo "${ECHO_T}$ac_header_preproc" >&6
6291
6292 # So?  What about this header?
6293 case $ac_header_compiler:$ac_header_preproc in
6294   yes:no )
6295     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6296 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6297     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6298 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6299     (
6300       cat <<\_ASBOX
6301 ## ------------------------------------ ##
6302 ## Report this to bug-autoconf@gnu.org. ##
6303 ## ------------------------------------ ##
6304 _ASBOX
6305     ) |
6306       sed "s/^/$as_me: WARNING:     /" >&2
6307     ;;
6308   no:yes )
6309     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6310 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6311     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6312 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6313     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6314 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6315     (
6316       cat <<\_ASBOX
6317 ## ------------------------------------ ##
6318 ## Report this to bug-autoconf@gnu.org. ##
6319 ## ------------------------------------ ##
6320 _ASBOX
6321     ) |
6322       sed "s/^/$as_me: WARNING:     /" >&2
6323     ;;
6324 esac
6325 echo "$as_me:$LINENO: checking for $ac_header" >&5
6326 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6327 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6328   echo $ECHO_N "(cached) $ECHO_C" >&6
6329 else
6330   eval "$as_ac_Header=$ac_header_preproc"
6331 fi
6332 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6333 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6334
6335 fi
6336 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6337   cat >>confdefs.h <<_ACEOF
6338 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6339 _ACEOF
6340  echo "$as_me:$LINENO: checking for jpeg_start_decompress in -ljpeg" >&5
6341 echo $ECHO_N "checking for jpeg_start_decompress in -ljpeg... $ECHO_C" >&6
6342 if test "${ac_cv_lib_jpeg_jpeg_start_decompress+set}" = set; then
6343   echo $ECHO_N "(cached) $ECHO_C" >&6
6344 else
6345   ac_check_lib_save_LIBS=$LIBS
6346 LIBS="-ljpeg  $LIBS"
6347 cat >conftest.$ac_ext <<_ACEOF
6348 #line $LINENO "configure"
6349 /* confdefs.h.  */
6350 _ACEOF
6351 cat confdefs.h >>conftest.$ac_ext
6352 cat >>conftest.$ac_ext <<_ACEOF
6353 /* end confdefs.h.  */
6354
6355 /* Override any gcc2 internal prototype to avoid an error.  */
6356 #ifdef __cplusplus
6357 extern "C"
6358 #endif
6359 /* We use char because int might match the return type of a gcc2
6360    builtin and then its argument prototype would still apply.  */
6361 char jpeg_start_decompress ();
6362 int
6363 main ()
6364 {
6365 jpeg_start_decompress ();
6366   ;
6367   return 0;
6368 }
6369 _ACEOF
6370 rm -f conftest.$ac_objext conftest$ac_exeext
6371 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6372   (eval $ac_link) 2>&5
6373   ac_status=$?
6374   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6375   (exit $ac_status); } &&
6376          { ac_try='test -s conftest$ac_exeext'
6377   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6378   (eval $ac_try) 2>&5
6379   ac_status=$?
6380   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6381   (exit $ac_status); }; }; then
6382   ac_cv_lib_jpeg_jpeg_start_decompress=yes
6383 else
6384   echo "$as_me: failed program was:" >&5
6385 sed 's/^/| /' conftest.$ac_ext >&5
6386
6387 ac_cv_lib_jpeg_jpeg_start_decompress=no
6388 fi
6389 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6390 LIBS=$ac_check_lib_save_LIBS
6391 fi
6392 echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_start_decompress" >&5
6393 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_start_decompress" >&6
6394 if test $ac_cv_lib_jpeg_jpeg_start_decompress = yes; then
6395
6396 cat >>confdefs.h <<\_ACEOF
6397 #define HAVE_LIBJPEG 1
6398 _ACEOF
6399
6400         JPEGLIB="-ljpeg"
6401
6402 fi
6403
6404
6405 fi
6406
6407 done
6408
6409
6410 GIFLIB=""
6411
6412
6413 for ac_header in gif_lib.h
6414 do
6415 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6416 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6417   echo "$as_me:$LINENO: checking for $ac_header" >&5
6418 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6419 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6420   echo $ECHO_N "(cached) $ECHO_C" >&6
6421 fi
6422 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6423 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6424 else
6425   # Is the header compilable?
6426 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6427 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6428 cat >conftest.$ac_ext <<_ACEOF
6429 #line $LINENO "configure"
6430 /* confdefs.h.  */
6431 _ACEOF
6432 cat confdefs.h >>conftest.$ac_ext
6433 cat >>conftest.$ac_ext <<_ACEOF
6434 /* end confdefs.h.  */
6435 $ac_includes_default
6436 #include <$ac_header>
6437 _ACEOF
6438 rm -f conftest.$ac_objext
6439 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6440   (eval $ac_compile) 2>&5
6441   ac_status=$?
6442   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6443   (exit $ac_status); } &&
6444          { ac_try='test -s conftest.$ac_objext'
6445   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6446   (eval $ac_try) 2>&5
6447   ac_status=$?
6448   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6449   (exit $ac_status); }; }; then
6450   ac_header_compiler=yes
6451 else
6452   echo "$as_me: failed program was:" >&5
6453 sed 's/^/| /' conftest.$ac_ext >&5
6454
6455 ac_header_compiler=no
6456 fi
6457 rm -f conftest.$ac_objext conftest.$ac_ext
6458 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6459 echo "${ECHO_T}$ac_header_compiler" >&6
6460
6461 # Is the header present?
6462 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6463 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6464 cat >conftest.$ac_ext <<_ACEOF
6465 #line $LINENO "configure"
6466 /* confdefs.h.  */
6467 _ACEOF
6468 cat confdefs.h >>conftest.$ac_ext
6469 cat >>conftest.$ac_ext <<_ACEOF
6470 /* end confdefs.h.  */
6471 #include <$ac_header>
6472 _ACEOF
6473 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6474   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6475   ac_status=$?
6476   grep -v '^ *+' conftest.er1 >conftest.err
6477   rm -f conftest.er1
6478   cat conftest.err >&5
6479   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6480   (exit $ac_status); } >/dev/null; then
6481   if test -s conftest.err; then
6482     ac_cpp_err=$ac_c_preproc_warn_flag
6483   else
6484     ac_cpp_err=
6485   fi
6486 else
6487   ac_cpp_err=yes
6488 fi
6489 if test -z "$ac_cpp_err"; then
6490   ac_header_preproc=yes
6491 else
6492   echo "$as_me: failed program was:" >&5
6493 sed 's/^/| /' conftest.$ac_ext >&5
6494
6495   ac_header_preproc=no
6496 fi
6497 rm -f conftest.err conftest.$ac_ext
6498 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6499 echo "${ECHO_T}$ac_header_preproc" >&6
6500
6501 # So?  What about this header?
6502 case $ac_header_compiler:$ac_header_preproc in
6503   yes:no )
6504     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6505 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6506     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6507 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6508     (
6509       cat <<\_ASBOX
6510 ## ------------------------------------ ##
6511 ## Report this to bug-autoconf@gnu.org. ##
6512 ## ------------------------------------ ##
6513 _ASBOX
6514     ) |
6515       sed "s/^/$as_me: WARNING:     /" >&2
6516     ;;
6517   no:yes )
6518     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6519 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6520     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6521 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6522     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6523 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6524     (
6525       cat <<\_ASBOX
6526 ## ------------------------------------ ##
6527 ## Report this to bug-autoconf@gnu.org. ##
6528 ## ------------------------------------ ##
6529 _ASBOX
6530     ) |
6531       sed "s/^/$as_me: WARNING:     /" >&2
6532     ;;
6533 esac
6534 echo "$as_me:$LINENO: checking for $ac_header" >&5
6535 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6536 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6537   echo $ECHO_N "(cached) $ECHO_C" >&6
6538 else
6539   eval "$as_ac_Header=$ac_header_preproc"
6540 fi
6541 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6542 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6543
6544 fi
6545 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6546   cat >>confdefs.h <<_ACEOF
6547 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6548 _ACEOF
6549  echo "$as_me:$LINENO: checking for DGifOpen in -lungif" >&5
6550 echo $ECHO_N "checking for DGifOpen in -lungif... $ECHO_C" >&6
6551 if test "${ac_cv_lib_ungif_DGifOpen+set}" = set; then
6552   echo $ECHO_N "(cached) $ECHO_C" >&6
6553 else
6554   ac_check_lib_save_LIBS=$LIBS
6555 LIBS="-lungif  $LIBS"
6556 cat >conftest.$ac_ext <<_ACEOF
6557 #line $LINENO "configure"
6558 /* confdefs.h.  */
6559 _ACEOF
6560 cat confdefs.h >>conftest.$ac_ext
6561 cat >>conftest.$ac_ext <<_ACEOF
6562 /* end confdefs.h.  */
6563
6564 /* Override any gcc2 internal prototype to avoid an error.  */
6565 #ifdef __cplusplus
6566 extern "C"
6567 #endif
6568 /* We use char because int might match the return type of a gcc2
6569    builtin and then its argument prototype would still apply.  */
6570 char DGifOpen ();
6571 int
6572 main ()
6573 {
6574 DGifOpen ();
6575   ;
6576   return 0;
6577 }
6578 _ACEOF
6579 rm -f conftest.$ac_objext conftest$ac_exeext
6580 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6581   (eval $ac_link) 2>&5
6582   ac_status=$?
6583   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6584   (exit $ac_status); } &&
6585          { ac_try='test -s conftest$ac_exeext'
6586   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6587   (eval $ac_try) 2>&5
6588   ac_status=$?
6589   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6590   (exit $ac_status); }; }; then
6591   ac_cv_lib_ungif_DGifOpen=yes
6592 else
6593   echo "$as_me: failed program was:" >&5
6594 sed 's/^/| /' conftest.$ac_ext >&5
6595
6596 ac_cv_lib_ungif_DGifOpen=no
6597 fi
6598 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6599 LIBS=$ac_check_lib_save_LIBS
6600 fi
6601 echo "$as_me:$LINENO: result: $ac_cv_lib_ungif_DGifOpen" >&5
6602 echo "${ECHO_T}$ac_cv_lib_ungif_DGifOpen" >&6
6603 if test $ac_cv_lib_ungif_DGifOpen = yes; then
6604
6605 cat >>confdefs.h <<\_ACEOF
6606 #define HAVE_LIBGIF 1
6607 _ACEOF
6608
6609          GIFLIB="-lungif"
6610 else
6611   echo "$as_me:$LINENO: checking for DGifOpen in -lgif" >&5
6612 echo $ECHO_N "checking for DGifOpen in -lgif... $ECHO_C" >&6
6613 if test "${ac_cv_lib_gif_DGifOpen+set}" = set; then
6614   echo $ECHO_N "(cached) $ECHO_C" >&6
6615 else
6616   ac_check_lib_save_LIBS=$LIBS
6617 LIBS="-lgif  $LIBS"
6618 cat >conftest.$ac_ext <<_ACEOF
6619 #line $LINENO "configure"
6620 /* confdefs.h.  */
6621 _ACEOF
6622 cat confdefs.h >>conftest.$ac_ext
6623 cat >>conftest.$ac_ext <<_ACEOF
6624 /* end confdefs.h.  */
6625
6626 /* Override any gcc2 internal prototype to avoid an error.  */
6627 #ifdef __cplusplus
6628 extern "C"
6629 #endif
6630 /* We use char because int might match the return type of a gcc2
6631    builtin and then its argument prototype would still apply.  */
6632 char DGifOpen ();
6633 int
6634 main ()
6635 {
6636 DGifOpen ();
6637   ;
6638   return 0;
6639 }
6640 _ACEOF
6641 rm -f conftest.$ac_objext conftest$ac_exeext
6642 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6643   (eval $ac_link) 2>&5
6644   ac_status=$?
6645   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6646   (exit $ac_status); } &&
6647          { ac_try='test -s conftest$ac_exeext'
6648   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6649   (eval $ac_try) 2>&5
6650   ac_status=$?
6651   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6652   (exit $ac_status); }; }; then
6653   ac_cv_lib_gif_DGifOpen=yes
6654 else
6655   echo "$as_me: failed program was:" >&5
6656 sed 's/^/| /' conftest.$ac_ext >&5
6657
6658 ac_cv_lib_gif_DGifOpen=no
6659 fi
6660 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6661 LIBS=$ac_check_lib_save_LIBS
6662 fi
6663 echo "$as_me:$LINENO: result: $ac_cv_lib_gif_DGifOpen" >&5
6664 echo "${ECHO_T}$ac_cv_lib_gif_DGifOpen" >&6
6665 if test $ac_cv_lib_gif_DGifOpen = yes; then
6666   cat >>confdefs.h <<\_ACEOF
6667 #define HAVE_LIBGIF 1
6668 _ACEOF
6669
6670                        GIFLIB="-lgif"
6671 fi
6672
6673 fi
6674
6675 fi
6676
6677 done
6678
6679
6680
6681
6682 XFILES=""
6683
6684 OPENGLFILES=""
6685
6686 GLU32FILES=""
6687
6688 OPENGL_LIBS=""
6689 if test "$have_x" = "yes"
6690 then
6691     XLIB="-lXext -lX11"
6692     ac_save_CPPFLAGS="$CPPFLAGS"
6693     CPPFLAGS="$CPPFLAGS $X_CFLAGS"
6694
6695
6696 for ac_header in X11/Xlib.h
6697 do
6698 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6699 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6700   echo "$as_me:$LINENO: checking for $ac_header" >&5
6701 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6702 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6703   echo $ECHO_N "(cached) $ECHO_C" >&6
6704 fi
6705 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6706 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6707 else
6708   # Is the header compilable?
6709 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6710 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6711 cat >conftest.$ac_ext <<_ACEOF
6712 #line $LINENO "configure"
6713 /* confdefs.h.  */
6714 _ACEOF
6715 cat confdefs.h >>conftest.$ac_ext
6716 cat >>conftest.$ac_ext <<_ACEOF
6717 /* end confdefs.h.  */
6718 $ac_includes_default
6719 #include <$ac_header>
6720 _ACEOF
6721 rm -f conftest.$ac_objext
6722 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6723   (eval $ac_compile) 2>&5
6724   ac_status=$?
6725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6726   (exit $ac_status); } &&
6727          { ac_try='test -s conftest.$ac_objext'
6728   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6729   (eval $ac_try) 2>&5
6730   ac_status=$?
6731   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6732   (exit $ac_status); }; }; then
6733   ac_header_compiler=yes
6734 else
6735   echo "$as_me: failed program was:" >&5
6736 sed 's/^/| /' conftest.$ac_ext >&5
6737
6738 ac_header_compiler=no
6739 fi
6740 rm -f conftest.$ac_objext conftest.$ac_ext
6741 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6742 echo "${ECHO_T}$ac_header_compiler" >&6
6743
6744 # Is the header present?
6745 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6746 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6747 cat >conftest.$ac_ext <<_ACEOF
6748 #line $LINENO "configure"
6749 /* confdefs.h.  */
6750 _ACEOF
6751 cat confdefs.h >>conftest.$ac_ext
6752 cat >>conftest.$ac_ext <<_ACEOF
6753 /* end confdefs.h.  */
6754 #include <$ac_header>
6755 _ACEOF
6756 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6757   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6758   ac_status=$?
6759   grep -v '^ *+' conftest.er1 >conftest.err
6760   rm -f conftest.er1
6761   cat conftest.err >&5
6762   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6763   (exit $ac_status); } >/dev/null; then
6764   if test -s conftest.err; then
6765     ac_cpp_err=$ac_c_preproc_warn_flag
6766   else
6767     ac_cpp_err=
6768   fi
6769 else
6770   ac_cpp_err=yes
6771 fi
6772 if test -z "$ac_cpp_err"; then
6773   ac_header_preproc=yes
6774 else
6775   echo "$as_me: failed program was:" >&5
6776 sed 's/^/| /' conftest.$ac_ext >&5
6777
6778   ac_header_preproc=no
6779 fi
6780 rm -f conftest.err conftest.$ac_ext
6781 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6782 echo "${ECHO_T}$ac_header_preproc" >&6
6783
6784 # So?  What about this header?
6785 case $ac_header_compiler:$ac_header_preproc in
6786   yes:no )
6787     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6788 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6789     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6790 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6791     (
6792       cat <<\_ASBOX
6793 ## ------------------------------------ ##
6794 ## Report this to bug-autoconf@gnu.org. ##
6795 ## ------------------------------------ ##
6796 _ASBOX
6797     ) |
6798       sed "s/^/$as_me: WARNING:     /" >&2
6799     ;;
6800   no:yes )
6801     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6802 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6803     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6804 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6805     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6806 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6807     (
6808       cat <<\_ASBOX
6809 ## ------------------------------------ ##
6810 ## Report this to bug-autoconf@gnu.org. ##
6811 ## ------------------------------------ ##
6812 _ASBOX
6813     ) |
6814       sed "s/^/$as_me: WARNING:     /" >&2
6815     ;;
6816 esac
6817 echo "$as_me:$LINENO: checking for $ac_header" >&5
6818 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6819 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6820   echo $ECHO_N "(cached) $ECHO_C" >&6
6821 else
6822   eval "$as_ac_Header=$ac_header_preproc"
6823 fi
6824 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6825 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6826
6827 fi
6828 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6829   cat >>confdefs.h <<_ACEOF
6830 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6831 _ACEOF
6832
6833
6834
6835
6836
6837
6838
6839
6840
6841
6842 for ac_header in X11/XKBlib.h \
6843                           X11/Xutil.h \
6844                           X11/extensions/shape.h \
6845                           X11/extensions/XShm.h \
6846                           X11/extensions/Xrandr.h \
6847                           X11/extensions/Xrender.h \
6848                           X11/extensions/Xvlib.h \
6849                           X11/extensions/xf86dga.h \
6850                           X11/extensions/xf86vmode.h
6851 do
6852 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6853 echo "$as_me:$LINENO: checking for $ac_header" >&5
6854 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6855 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6856   echo $ECHO_N "(cached) $ECHO_C" >&6
6857 else
6858   cat >conftest.$ac_ext <<_ACEOF
6859 #line $LINENO "configure"
6860 /* confdefs.h.  */
6861 _ACEOF
6862 cat confdefs.h >>conftest.$ac_ext
6863 cat >>conftest.$ac_ext <<_ACEOF
6864 /* end confdefs.h.  */
6865 #include <X11/Xlib.h>
6866                           #ifdef HAVE_X11_XUTIL_H
6867                           # include <X11/Xutil.h>
6868                           #endif
6869
6870 #include <$ac_header>
6871 _ACEOF
6872 rm -f conftest.$ac_objext
6873 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6874   (eval $ac_compile) 2>&5
6875   ac_status=$?
6876   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6877   (exit $ac_status); } &&
6878          { ac_try='test -s conftest.$ac_objext'
6879   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6880   (eval $ac_try) 2>&5
6881   ac_status=$?
6882   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6883   (exit $ac_status); }; }; then
6884   eval "$as_ac_Header=yes"
6885 else
6886   echo "$as_me: failed program was:" >&5
6887 sed 's/^/| /' conftest.$ac_ext >&5
6888
6889 eval "$as_ac_Header=no"
6890 fi
6891 rm -f conftest.$ac_objext conftest.$ac_ext
6892 fi
6893 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6894 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6895 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6896   cat >>confdefs.h <<_ACEOF
6897 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6898 _ACEOF
6899
6900 fi
6901
6902 done
6903
6904
6905                 if test "$ac_cv_header_X11_XKBlib_h" = "yes"
6906         then
6907               echo "$as_me:$LINENO: checking for XkbQueryExtension in -lX11" >&5
6908 echo $ECHO_N "checking for XkbQueryExtension in -lX11... $ECHO_C" >&6
6909 if test "${ac_cv_lib_X11_XkbQueryExtension+set}" = set; then
6910   echo $ECHO_N "(cached) $ECHO_C" >&6
6911 else
6912   ac_check_lib_save_LIBS=$LIBS
6913 LIBS="-lX11 $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
6914 cat >conftest.$ac_ext <<_ACEOF
6915 #line $LINENO "configure"
6916 /* confdefs.h.  */
6917 _ACEOF
6918 cat confdefs.h >>conftest.$ac_ext
6919 cat >>conftest.$ac_ext <<_ACEOF
6920 /* end confdefs.h.  */
6921
6922 /* Override any gcc2 internal prototype to avoid an error.  */
6923 #ifdef __cplusplus
6924 extern "C"
6925 #endif
6926 /* We use char because int might match the return type of a gcc2
6927    builtin and then its argument prototype would still apply.  */
6928 char XkbQueryExtension ();
6929 int
6930 main ()
6931 {
6932 XkbQueryExtension ();
6933   ;
6934   return 0;
6935 }
6936 _ACEOF
6937 rm -f conftest.$ac_objext conftest$ac_exeext
6938 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6939   (eval $ac_link) 2>&5
6940   ac_status=$?
6941   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6942   (exit $ac_status); } &&
6943          { ac_try='test -s conftest$ac_exeext'
6944   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6945   (eval $ac_try) 2>&5
6946   ac_status=$?
6947   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6948   (exit $ac_status); }; }; then
6949   ac_cv_lib_X11_XkbQueryExtension=yes
6950 else
6951   echo "$as_me: failed program was:" >&5
6952 sed 's/^/| /' conftest.$ac_ext >&5
6953
6954 ac_cv_lib_X11_XkbQueryExtension=no
6955 fi
6956 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6957 LIBS=$ac_check_lib_save_LIBS
6958 fi
6959 echo "$as_me:$LINENO: result: $ac_cv_lib_X11_XkbQueryExtension" >&5
6960 echo "${ECHO_T}$ac_cv_lib_X11_XkbQueryExtension" >&6
6961 if test $ac_cv_lib_X11_XkbQueryExtension = yes; then
6962
6963 cat >>confdefs.h <<\_ACEOF
6964 #define HAVE_XKB 1
6965 _ACEOF
6966
6967 fi
6968
6969         fi
6970
6971                 if test "$ac_cv_header_X11_extensions_XShm_h" = "yes"
6972         then
6973               echo "$as_me:$LINENO: checking for XShmQueryExtension in -lXext" >&5
6974 echo $ECHO_N "checking for XShmQueryExtension in -lXext... $ECHO_C" >&6
6975 if test "${ac_cv_lib_Xext_XShmQueryExtension+set}" = set; then
6976   echo $ECHO_N "(cached) $ECHO_C" >&6
6977 else
6978   ac_check_lib_save_LIBS=$LIBS
6979 LIBS="-lXext $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
6980 cat >conftest.$ac_ext <<_ACEOF
6981 #line $LINENO "configure"
6982 /* confdefs.h.  */
6983 _ACEOF
6984 cat confdefs.h >>conftest.$ac_ext
6985 cat >>conftest.$ac_ext <<_ACEOF
6986 /* end confdefs.h.  */
6987
6988 /* Override any gcc2 internal prototype to avoid an error.  */
6989 #ifdef __cplusplus
6990 extern "C"
6991 #endif
6992 /* We use char because int might match the return type of a gcc2
6993    builtin and then its argument prototype would still apply.  */
6994 char XShmQueryExtension ();
6995 int
6996 main ()
6997 {
6998 XShmQueryExtension ();
6999   ;
7000   return 0;
7001 }
7002 _ACEOF
7003 rm -f conftest.$ac_objext conftest$ac_exeext
7004 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7005   (eval $ac_link) 2>&5
7006   ac_status=$?
7007   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7008   (exit $ac_status); } &&
7009          { ac_try='test -s conftest$ac_exeext'
7010   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7011   (eval $ac_try) 2>&5
7012   ac_status=$?
7013   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7014   (exit $ac_status); }; }; then
7015   ac_cv_lib_Xext_XShmQueryExtension=yes
7016 else
7017   echo "$as_me: failed program was:" >&5
7018 sed 's/^/| /' conftest.$ac_ext >&5
7019
7020 ac_cv_lib_Xext_XShmQueryExtension=no
7021 fi
7022 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7023 LIBS=$ac_check_lib_save_LIBS
7024 fi
7025 echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShmQueryExtension" >&5
7026 echo "${ECHO_T}$ac_cv_lib_Xext_XShmQueryExtension" >&6
7027 if test $ac_cv_lib_Xext_XShmQueryExtension = yes; then
7028
7029 cat >>confdefs.h <<\_ACEOF
7030 #define HAVE_LIBXXSHM 1
7031 _ACEOF
7032
7033 fi
7034
7035         fi
7036
7037                 if test "$ac_cv_header_X11_extensions_shape_h" = "yes"
7038         then
7039               echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
7040 echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6
7041 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
7042   echo $ECHO_N "(cached) $ECHO_C" >&6
7043 else
7044   ac_check_lib_save_LIBS=$LIBS
7045 LIBS="-lXext $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
7046 cat >conftest.$ac_ext <<_ACEOF
7047 #line $LINENO "configure"
7048 /* confdefs.h.  */
7049 _ACEOF
7050 cat confdefs.h >>conftest.$ac_ext
7051 cat >>conftest.$ac_ext <<_ACEOF
7052 /* end confdefs.h.  */
7053
7054 /* Override any gcc2 internal prototype to avoid an error.  */
7055 #ifdef __cplusplus
7056 extern "C"
7057 #endif
7058 /* We use char because int might match the return type of a gcc2
7059    builtin and then its argument prototype would still apply.  */
7060 char XShapeQueryExtension ();
7061 int
7062 main ()
7063 {
7064 XShapeQueryExtension ();
7065   ;
7066   return 0;
7067 }
7068 _ACEOF
7069 rm -f conftest.$ac_objext conftest$ac_exeext
7070 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7071   (eval $ac_link) 2>&5
7072   ac_status=$?
7073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7074   (exit $ac_status); } &&
7075          { ac_try='test -s conftest$ac_exeext'
7076   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7077   (eval $ac_try) 2>&5
7078   ac_status=$?
7079   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7080   (exit $ac_status); }; }; then
7081   ac_cv_lib_Xext_XShapeQueryExtension=yes
7082 else
7083   echo "$as_me: failed program was:" >&5
7084 sed 's/^/| /' conftest.$ac_ext >&5
7085
7086 ac_cv_lib_Xext_XShapeQueryExtension=no
7087 fi
7088 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7089 LIBS=$ac_check_lib_save_LIBS
7090 fi
7091 echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
7092 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6
7093 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
7094
7095 cat >>confdefs.h <<\_ACEOF
7096 #define HAVE_LIBXSHAPE 1
7097 _ACEOF
7098
7099 fi
7100
7101         fi
7102
7103                 if test "$ac_cv_header_X11_extensions_xf86dga_h" = "yes"
7104         then
7105               echo "$as_me:$LINENO: checking for XDGAQueryExtension in -lXxf86dga" >&5
7106 echo $ECHO_N "checking for XDGAQueryExtension in -lXxf86dga... $ECHO_C" >&6
7107 if test "${ac_cv_lib_Xxf86dga_XDGAQueryExtension+set}" = set; then
7108   echo $ECHO_N "(cached) $ECHO_C" >&6
7109 else
7110   ac_check_lib_save_LIBS=$LIBS
7111 LIBS="-lXxf86dga $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
7112 cat >conftest.$ac_ext <<_ACEOF
7113 #line $LINENO "configure"
7114 /* confdefs.h.  */
7115 _ACEOF
7116 cat confdefs.h >>conftest.$ac_ext
7117 cat >>conftest.$ac_ext <<_ACEOF
7118 /* end confdefs.h.  */
7119
7120 /* Override any gcc2 internal prototype to avoid an error.  */
7121 #ifdef __cplusplus
7122 extern "C"
7123 #endif
7124 /* We use char because int might match the return type of a gcc2
7125    builtin and then its argument prototype would still apply.  */
7126 char XDGAQueryExtension ();
7127 int
7128 main ()
7129 {
7130 XDGAQueryExtension ();
7131   ;
7132   return 0;
7133 }
7134 _ACEOF
7135 rm -f conftest.$ac_objext conftest$ac_exeext
7136 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7137   (eval $ac_link) 2>&5
7138   ac_status=$?
7139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7140   (exit $ac_status); } &&
7141          { ac_try='test -s conftest$ac_exeext'
7142   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7143   (eval $ac_try) 2>&5
7144   ac_status=$?
7145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7146   (exit $ac_status); }; }; then
7147   ac_cv_lib_Xxf86dga_XDGAQueryExtension=yes
7148 else
7149   echo "$as_me: failed program was:" >&5
7150 sed 's/^/| /' conftest.$ac_ext >&5
7151
7152 ac_cv_lib_Xxf86dga_XDGAQueryExtension=no
7153 fi
7154 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7155 LIBS=$ac_check_lib_save_LIBS
7156 fi
7157 echo "$as_me:$LINENO: result: $ac_cv_lib_Xxf86dga_XDGAQueryExtension" >&5
7158 echo "${ECHO_T}$ac_cv_lib_Xxf86dga_XDGAQueryExtension" >&6
7159 if test $ac_cv_lib_Xxf86dga_XDGAQueryExtension = yes; then
7160
7161 cat >>confdefs.h <<\_ACEOF
7162 #define HAVE_LIBXXF86DGA2 1
7163 _ACEOF
7164
7165                   X_PRE_LIBS="$X_PRE_LIBS -lXxf86dga"
7166
7167 else
7168                                        echo "$as_me:$LINENO: checking for XF86DGAQueryExtension in -lXxf86dga" >&5
7169 echo $ECHO_N "checking for XF86DGAQueryExtension in -lXxf86dga... $ECHO_C" >&6
7170 if test "${ac_cv_lib_Xxf86dga_XF86DGAQueryExtension+set}" = set; then
7171   echo $ECHO_N "(cached) $ECHO_C" >&6
7172 else
7173   ac_check_lib_save_LIBS=$LIBS
7174 LIBS="-lXxf86dga $X_LIBS -lXext -lX11 $X_EXTRA_LIBS
7175                    $LIBS"
7176 cat >conftest.$ac_ext <<_ACEOF
7177 #line $LINENO "configure"
7178 /* confdefs.h.  */
7179 _ACEOF
7180 cat confdefs.h >>conftest.$ac_ext
7181 cat >>conftest.$ac_ext <<_ACEOF
7182 /* end confdefs.h.  */
7183
7184 /* Override any gcc2 internal prototype to avoid an error.  */
7185 #ifdef __cplusplus
7186 extern "C"
7187 #endif
7188 /* We use char because int might match the return type of a gcc2
7189    builtin and then its argument prototype would still apply.  */
7190 char XF86DGAQueryExtension ();
7191 int
7192 main ()
7193 {
7194 XF86DGAQueryExtension ();
7195   ;
7196   return 0;
7197 }
7198 _ACEOF
7199 rm -f conftest.$ac_objext conftest$ac_exeext
7200 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7201   (eval $ac_link) 2>&5
7202   ac_status=$?
7203   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7204   (exit $ac_status); } &&
7205          { ac_try='test -s conftest$ac_exeext'
7206   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7207   (eval $ac_try) 2>&5
7208   ac_status=$?
7209   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7210   (exit $ac_status); }; }; then
7211   ac_cv_lib_Xxf86dga_XF86DGAQueryExtension=yes
7212 else
7213   echo "$as_me: failed program was:" >&5
7214 sed 's/^/| /' conftest.$ac_ext >&5
7215
7216 ac_cv_lib_Xxf86dga_XF86DGAQueryExtension=no
7217 fi
7218 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7219 LIBS=$ac_check_lib_save_LIBS
7220 fi
7221 echo "$as_me:$LINENO: result: $ac_cv_lib_Xxf86dga_XF86DGAQueryExtension" >&5
7222 echo "${ECHO_T}$ac_cv_lib_Xxf86dga_XF86DGAQueryExtension" >&6
7223 if test $ac_cv_lib_Xxf86dga_XF86DGAQueryExtension = yes; then
7224
7225 cat >>confdefs.h <<\_ACEOF
7226 #define HAVE_LIBXXF86DGA 1
7227 _ACEOF
7228
7229                       X_PRE_LIBS="$X_PRE_LIBS -lXxf86dga"
7230
7231 fi
7232
7233
7234 fi
7235
7236         fi
7237
7238                 if test "$ac_cv_header_X11_extensions_xf86vmode_h" = "yes"
7239         then
7240                 echo "$as_me:$LINENO: checking for XF86VidModeQueryExtension in -lXxf86vm" >&5
7241 echo $ECHO_N "checking for XF86VidModeQueryExtension in -lXxf86vm... $ECHO_C" >&6
7242 if test "${ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension+set}" = set; then
7243   echo $ECHO_N "(cached) $ECHO_C" >&6
7244 else
7245   ac_check_lib_save_LIBS=$LIBS
7246 LIBS="-lXxf86vm $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
7247 cat >conftest.$ac_ext <<_ACEOF
7248 #line $LINENO "configure"
7249 /* confdefs.h.  */
7250 _ACEOF
7251 cat confdefs.h >>conftest.$ac_ext
7252 cat >>conftest.$ac_ext <<_ACEOF
7253 /* end confdefs.h.  */
7254
7255 /* Override any gcc2 internal prototype to avoid an error.  */
7256 #ifdef __cplusplus
7257 extern "C"
7258 #endif
7259 /* We use char because int might match the return type of a gcc2
7260    builtin and then its argument prototype would still apply.  */
7261 char XF86VidModeQueryExtension ();
7262 int
7263 main ()
7264 {
7265 XF86VidModeQueryExtension ();
7266   ;
7267   return 0;
7268 }
7269 _ACEOF
7270 rm -f conftest.$ac_objext conftest$ac_exeext
7271 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7272   (eval $ac_link) 2>&5
7273   ac_status=$?
7274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7275   (exit $ac_status); } &&
7276          { ac_try='test -s conftest$ac_exeext'
7277   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7278   (eval $ac_try) 2>&5
7279   ac_status=$?
7280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7281   (exit $ac_status); }; }; then
7282   ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=yes
7283 else
7284   echo "$as_me: failed program was:" >&5
7285 sed 's/^/| /' conftest.$ac_ext >&5
7286
7287 ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=no
7288 fi
7289 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7290 LIBS=$ac_check_lib_save_LIBS
7291 fi
7292 echo "$as_me:$LINENO: result: $ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&5
7293 echo "${ECHO_T}$ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&6
7294 if test $ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension = yes; then
7295
7296 cat >>confdefs.h <<\_ACEOF
7297 #define HAVE_LIBXXF86VM 1
7298 _ACEOF
7299
7300                      X_PRE_LIBS="$X_PRE_LIBS -lXxf86vm"
7301
7302 fi
7303
7304         fi
7305
7306                 if test "$ac_cv_header_X11_extensions_Xrandr_h" = "yes"
7307         then
7308                 echo "$as_me:$LINENO: checking for XRRSetScreenConfigAndRate in -lXrandr" >&5
7309 echo $ECHO_N "checking for XRRSetScreenConfigAndRate in -lXrandr... $ECHO_C" >&6
7310 if test "${ac_cv_lib_Xrandr_XRRSetScreenConfigAndRate+set}" = set; then
7311   echo $ECHO_N "(cached) $ECHO_C" >&6
7312 else
7313   ac_check_lib_save_LIBS=$LIBS
7314 LIBS="-lXrandr $X_LIBS -lXrender -lXext -lX11 $X_EXTRA_LIBS $LIBS"
7315 cat >conftest.$ac_ext <<_ACEOF
7316 #line $LINENO "configure"
7317 /* confdefs.h.  */
7318 _ACEOF
7319 cat confdefs.h >>conftest.$ac_ext
7320 cat >>conftest.$ac_ext <<_ACEOF
7321 /* end confdefs.h.  */
7322
7323 /* Override any gcc2 internal prototype to avoid an error.  */
7324 #ifdef __cplusplus
7325 extern "C"
7326 #endif
7327 /* We use char because int might match the return type of a gcc2
7328    builtin and then its argument prototype would still apply.  */
7329 char XRRSetScreenConfigAndRate ();
7330 int
7331 main ()
7332 {
7333 XRRSetScreenConfigAndRate ();
7334   ;
7335   return 0;
7336 }
7337 _ACEOF
7338 rm -f conftest.$ac_objext conftest$ac_exeext
7339 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7340   (eval $ac_link) 2>&5
7341   ac_status=$?
7342   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7343   (exit $ac_status); } &&
7344          { ac_try='test -s conftest$ac_exeext'
7345   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7346   (eval $ac_try) 2>&5
7347   ac_status=$?
7348   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7349   (exit $ac_status); }; }; then
7350   ac_cv_lib_Xrandr_XRRSetScreenConfigAndRate=yes
7351 else
7352   echo "$as_me: failed program was:" >&5
7353 sed 's/^/| /' conftest.$ac_ext >&5
7354
7355 ac_cv_lib_Xrandr_XRRSetScreenConfigAndRate=no
7356 fi
7357 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7358 LIBS=$ac_check_lib_save_LIBS
7359 fi
7360 echo "$as_me:$LINENO: result: $ac_cv_lib_Xrandr_XRRSetScreenConfigAndRate" >&5
7361 echo "${ECHO_T}$ac_cv_lib_Xrandr_XRRSetScreenConfigAndRate" >&6
7362 if test $ac_cv_lib_Xrandr_XRRSetScreenConfigAndRate = yes; then
7363
7364 cat >>confdefs.h <<\_ACEOF
7365 #define HAVE_LIBXRANDR 1
7366 _ACEOF
7367
7368                      X_PRE_LIBS="$X_PRE_LIBS -lXrandr -lXrender"
7369
7370 fi
7371
7372         fi
7373
7374                 if test "$ac_cv_header_X11_extensions_Xvlib_h" = "yes"
7375         then
7376                 echo "$as_me:$LINENO: checking for XvShmCreateImage in -lXv" >&5
7377 echo $ECHO_N "checking for XvShmCreateImage in -lXv... $ECHO_C" >&6
7378 if test "${ac_cv_lib_Xv_XvShmCreateImage+set}" = set; then
7379   echo $ECHO_N "(cached) $ECHO_C" >&6
7380 else
7381   ac_check_lib_save_LIBS=$LIBS
7382 LIBS="-lXv $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
7383 cat >conftest.$ac_ext <<_ACEOF
7384 #line $LINENO "configure"
7385 /* confdefs.h.  */
7386 _ACEOF
7387 cat confdefs.h >>conftest.$ac_ext
7388 cat >>conftest.$ac_ext <<_ACEOF
7389 /* end confdefs.h.  */
7390
7391 /* Override any gcc2 internal prototype to avoid an error.  */
7392 #ifdef __cplusplus
7393 extern "C"
7394 #endif
7395 /* We use char because int might match the return type of a gcc2
7396    builtin and then its argument prototype would still apply.  */
7397 char XvShmCreateImage ();
7398 int
7399 main ()
7400 {
7401 XvShmCreateImage ();
7402   ;
7403   return 0;
7404 }
7405 _ACEOF
7406 rm -f conftest.$ac_objext conftest$ac_exeext
7407 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7408   (eval $ac_link) 2>&5
7409   ac_status=$?
7410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7411   (exit $ac_status); } &&
7412          { ac_try='test -s conftest$ac_exeext'
7413   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7414   (eval $ac_try) 2>&5
7415   ac_status=$?
7416   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7417   (exit $ac_status); }; }; then
7418   ac_cv_lib_Xv_XvShmCreateImage=yes
7419 else
7420   echo "$as_me: failed program was:" >&5
7421 sed 's/^/| /' conftest.$ac_ext >&5
7422
7423 ac_cv_lib_Xv_XvShmCreateImage=no
7424 fi
7425 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7426 LIBS=$ac_check_lib_save_LIBS
7427 fi
7428 echo "$as_me:$LINENO: result: $ac_cv_lib_Xv_XvShmCreateImage" >&5
7429 echo "${ECHO_T}$ac_cv_lib_Xv_XvShmCreateImage" >&6
7430 if test $ac_cv_lib_Xv_XvShmCreateImage = yes; then
7431
7432 cat >>confdefs.h <<\_ACEOF
7433 #define HAVE_XVIDEO 1
7434 _ACEOF
7435
7436                      X_PRE_LIBS="$X_PRE_LIBS -lXv"
7437
7438 fi
7439
7440         fi
7441
7442
7443 fi
7444
7445 done
7446
7447         if test "x$with_opengl" != "xno"
7448     then
7449         if test -f /usr/X11R6/lib/libGL.a -a ! -f /usr/X11R6/lib/libGL.so
7450         then
7451             { { echo "$as_me:$LINENO: error: /usr/X11R6/lib/libGL.a is present on your system.
7452 This prevents linking to OpenGL. Delete the file and restart configure." >&5
7453 echo "$as_me: error: /usr/X11R6/lib/libGL.a is present on your system.
7454 This prevents linking to OpenGL. Delete the file and restart configure." >&2;}
7455    { (exit 1); exit 1; }; }
7456         fi
7457
7458
7459
7460 for ac_header in GL/gl.h GL/glx.h
7461 do
7462 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7463 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7464   echo "$as_me:$LINENO: checking for $ac_header" >&5
7465 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7466 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7467   echo $ECHO_N "(cached) $ECHO_C" >&6
7468 fi
7469 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7470 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7471 else
7472   # Is the header compilable?
7473 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7474 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7475 cat >conftest.$ac_ext <<_ACEOF
7476 #line $LINENO "configure"
7477 /* confdefs.h.  */
7478 _ACEOF
7479 cat confdefs.h >>conftest.$ac_ext
7480 cat >>conftest.$ac_ext <<_ACEOF
7481 /* end confdefs.h.  */
7482 $ac_includes_default
7483 #include <$ac_header>
7484 _ACEOF
7485 rm -f conftest.$ac_objext
7486 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7487   (eval $ac_compile) 2>&5
7488   ac_status=$?
7489   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7490   (exit $ac_status); } &&
7491          { ac_try='test -s conftest.$ac_objext'
7492   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7493   (eval $ac_try) 2>&5
7494   ac_status=$?
7495   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7496   (exit $ac_status); }; }; then
7497   ac_header_compiler=yes
7498 else
7499   echo "$as_me: failed program was:" >&5
7500 sed 's/^/| /' conftest.$ac_ext >&5
7501
7502 ac_header_compiler=no
7503 fi
7504 rm -f conftest.$ac_objext conftest.$ac_ext
7505 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7506 echo "${ECHO_T}$ac_header_compiler" >&6
7507
7508 # Is the header present?
7509 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7510 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7511 cat >conftest.$ac_ext <<_ACEOF
7512 #line $LINENO "configure"
7513 /* confdefs.h.  */
7514 _ACEOF
7515 cat confdefs.h >>conftest.$ac_ext
7516 cat >>conftest.$ac_ext <<_ACEOF
7517 /* end confdefs.h.  */
7518 #include <$ac_header>
7519 _ACEOF
7520 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7521   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7522   ac_status=$?
7523   grep -v '^ *+' conftest.er1 >conftest.err
7524   rm -f conftest.er1
7525   cat conftest.err >&5
7526   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7527   (exit $ac_status); } >/dev/null; then
7528   if test -s conftest.err; then
7529     ac_cpp_err=$ac_c_preproc_warn_flag
7530   else
7531     ac_cpp_err=
7532   fi
7533 else
7534   ac_cpp_err=yes
7535 fi
7536 if test -z "$ac_cpp_err"; then
7537   ac_header_preproc=yes
7538 else
7539   echo "$as_me: failed program was:" >&5
7540 sed 's/^/| /' conftest.$ac_ext >&5
7541
7542   ac_header_preproc=no
7543 fi
7544 rm -f conftest.err conftest.$ac_ext
7545 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7546 echo "${ECHO_T}$ac_header_preproc" >&6
7547
7548 # So?  What about this header?
7549 case $ac_header_compiler:$ac_header_preproc in
7550   yes:no )
7551     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7552 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7553     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7554 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7555     (
7556       cat <<\_ASBOX
7557 ## ------------------------------------ ##
7558 ## Report this to bug-autoconf@gnu.org. ##
7559 ## ------------------------------------ ##
7560 _ASBOX
7561     ) |
7562       sed "s/^/$as_me: WARNING:     /" >&2
7563     ;;
7564   no:yes )
7565     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7566 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7567     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7568 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7569     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7570 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7571     (
7572       cat <<\_ASBOX
7573 ## ------------------------------------ ##
7574 ## Report this to bug-autoconf@gnu.org. ##
7575 ## ------------------------------------ ##
7576 _ASBOX
7577     ) |
7578       sed "s/^/$as_me: WARNING:     /" >&2
7579     ;;
7580 esac
7581 echo "$as_me:$LINENO: checking for $ac_header" >&5
7582 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7583 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7584   echo $ECHO_N "(cached) $ECHO_C" >&6
7585 else
7586   eval "$as_ac_Header=$ac_header_preproc"
7587 fi
7588 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7589 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7590
7591 fi
7592 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7593   cat >>confdefs.h <<_ACEOF
7594 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7595 _ACEOF
7596
7597 fi
7598
7599 done
7600
7601         if test "$ac_cv_header_GL_gl_h" = "yes" -a "$ac_cv_header_GL_glx_h" = "yes"
7602         then
7603
7604 for ac_header in GL/glext.h
7605 do
7606 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7607 echo "$as_me:$LINENO: checking for $ac_header" >&5
7608 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7609 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7610   echo $ECHO_N "(cached) $ECHO_C" >&6
7611 else
7612   cat >conftest.$ac_ext <<_ACEOF
7613 #line $LINENO "configure"
7614 /* confdefs.h.  */
7615 _ACEOF
7616 cat confdefs.h >>conftest.$ac_ext
7617 cat >>conftest.$ac_ext <<_ACEOF
7618 /* end confdefs.h.  */
7619 #include <GL/glx.h>
7620
7621 #include <$ac_header>
7622 _ACEOF
7623 rm -f conftest.$ac_objext
7624 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7625   (eval $ac_compile) 2>&5
7626   ac_status=$?
7627   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7628   (exit $ac_status); } &&
7629          { ac_try='test -s conftest.$ac_objext'
7630   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7631   (eval $ac_try) 2>&5
7632   ac_status=$?
7633   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7634   (exit $ac_status); }; }; then
7635   eval "$as_ac_Header=yes"
7636 else
7637   echo "$as_me: failed program was:" >&5
7638 sed 's/^/| /' conftest.$ac_ext >&5
7639
7640 eval "$as_ac_Header=no"
7641 fi
7642 rm -f conftest.$ac_objext conftest.$ac_ext
7643 fi
7644 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7645 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7646 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7647   cat >>confdefs.h <<_ACEOF
7648 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7649 _ACEOF
7650
7651 fi
7652
7653 done
7654
7655                     echo "$as_me:$LINENO: checking for up-to-date OpenGL version" >&5
7656 echo $ECHO_N "checking for up-to-date OpenGL version... $ECHO_C" >&6
7657 if test "${wine_cv_opengl_version_OK+set}" = set; then
7658   echo $ECHO_N "(cached) $ECHO_C" >&6
7659 else
7660   cat >conftest.$ac_ext <<_ACEOF
7661 #line $LINENO "configure"
7662 /* confdefs.h.  */
7663 _ACEOF
7664 cat confdefs.h >>conftest.$ac_ext
7665 cat >>conftest.$ac_ext <<_ACEOF
7666 /* end confdefs.h.  */
7667 #include <GL/gl.h>
7668 int
7669 main ()
7670 {
7671 GLenum test = GL_UNSIGNED_SHORT_5_6_5;
7672   ;
7673   return 0;
7674 }
7675 _ACEOF
7676 rm -f conftest.$ac_objext
7677 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7678   (eval $ac_compile) 2>&5
7679   ac_status=$?
7680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7681   (exit $ac_status); } &&
7682          { ac_try='test -s conftest.$ac_objext'
7683   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7684   (eval $ac_try) 2>&5
7685   ac_status=$?
7686   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7687   (exit $ac_status); }; }; then
7688   wine_cv_opengl_version_OK="yes"
7689 else
7690   echo "$as_me: failed program was:" >&5
7691 sed 's/^/| /' conftest.$ac_ext >&5
7692
7693 wine_cv_opengl_version_OK="no"
7694
7695 fi
7696 rm -f conftest.$ac_objext conftest.$ac_ext
7697
7698 fi
7699 echo "$as_me:$LINENO: result: $wine_cv_opengl_version_OK" >&5
7700 echo "${ECHO_T}$wine_cv_opengl_version_OK" >&6
7701
7702             if test "$wine_cv_opengl_version_OK" = "yes"
7703             then
7704                                 echo "$as_me:$LINENO: checking for glXCreateContext in -lGL" >&5
7705 echo $ECHO_N "checking for glXCreateContext in -lGL... $ECHO_C" >&6
7706 if test "${ac_cv_lib_GL_glXCreateContext+set}" = set; then
7707   echo $ECHO_N "(cached) $ECHO_C" >&6
7708 else
7709   ac_check_lib_save_LIBS=$LIBS
7710 LIBS="-lGL $X_LIBS -lXext -lX11 -lm $X_EXTRA_LIBS $LIBS"
7711 cat >conftest.$ac_ext <<_ACEOF
7712 #line $LINENO "configure"
7713 /* confdefs.h.  */
7714 _ACEOF
7715 cat confdefs.h >>conftest.$ac_ext
7716 cat >>conftest.$ac_ext <<_ACEOF
7717 /* end confdefs.h.  */
7718
7719 /* Override any gcc2 internal prototype to avoid an error.  */
7720 #ifdef __cplusplus
7721 extern "C"
7722 #endif
7723 /* We use char because int might match the return type of a gcc2
7724    builtin and then its argument prototype would still apply.  */
7725 char glXCreateContext ();
7726 int
7727 main ()
7728 {
7729 glXCreateContext ();
7730   ;
7731   return 0;
7732 }
7733 _ACEOF
7734 rm -f conftest.$ac_objext conftest$ac_exeext
7735 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7736   (eval $ac_link) 2>&5
7737   ac_status=$?
7738   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7739   (exit $ac_status); } &&
7740          { ac_try='test -s conftest$ac_exeext'
7741   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7742   (eval $ac_try) 2>&5
7743   ac_status=$?
7744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7745   (exit $ac_status); }; }; then
7746   ac_cv_lib_GL_glXCreateContext=yes
7747 else
7748   echo "$as_me: failed program was:" >&5
7749 sed 's/^/| /' conftest.$ac_ext >&5
7750
7751 ac_cv_lib_GL_glXCreateContext=no
7752 fi
7753 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7754 LIBS=$ac_check_lib_save_LIBS
7755 fi
7756 echo "$as_me:$LINENO: result: $ac_cv_lib_GL_glXCreateContext" >&5
7757 echo "${ECHO_T}$ac_cv_lib_GL_glXCreateContext" >&6
7758 if test $ac_cv_lib_GL_glXCreateContext = yes; then
7759   OPENGL_LIBS="-lGL"
7760
7761 fi
7762
7763
7764                 if test "$ac_cv_lib_GL_glXCreateContext" = "yes"
7765                 then
7766                         OPENGLFILES='$(OPENGLFILES)'
7767
7768 cat >>confdefs.h <<\_ACEOF
7769 #define HAVE_OPENGL 1
7770 _ACEOF
7771
7772
7773                         echo "$as_me:$LINENO: checking for glXGetProcAddressARB in -lGL" >&5
7774 echo $ECHO_N "checking for glXGetProcAddressARB in -lGL... $ECHO_C" >&6
7775 if test "${ac_cv_lib_GL_glXGetProcAddressARB+set}" = set; then
7776   echo $ECHO_N "(cached) $ECHO_C" >&6
7777 else
7778   ac_check_lib_save_LIBS=$LIBS
7779 LIBS="-lGL $X_LIBS -lXext -lX11 -lm $X_EXTRA_LIBS $LIBS"
7780 cat >conftest.$ac_ext <<_ACEOF
7781 #line $LINENO "configure"
7782 /* confdefs.h.  */
7783 _ACEOF
7784 cat confdefs.h >>conftest.$ac_ext
7785 cat >>conftest.$ac_ext <<_ACEOF
7786 /* end confdefs.h.  */
7787
7788 /* Override any gcc2 internal prototype to avoid an error.  */
7789 #ifdef __cplusplus
7790 extern "C"
7791 #endif
7792 /* We use char because int might match the return type of a gcc2
7793    builtin and then its argument prototype would still apply.  */
7794 char glXGetProcAddressARB ();
7795 int
7796 main ()
7797 {
7798 glXGetProcAddressARB ();
7799   ;
7800   return 0;
7801 }
7802 _ACEOF
7803 rm -f conftest.$ac_objext conftest$ac_exeext
7804 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7805   (eval $ac_link) 2>&5
7806   ac_status=$?
7807   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7808   (exit $ac_status); } &&
7809          { ac_try='test -s conftest$ac_exeext'
7810   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7811   (eval $ac_try) 2>&5
7812   ac_status=$?
7813   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7814   (exit $ac_status); }; }; then
7815   ac_cv_lib_GL_glXGetProcAddressARB=yes
7816 else
7817   echo "$as_me: failed program was:" >&5
7818 sed 's/^/| /' conftest.$ac_ext >&5
7819
7820 ac_cv_lib_GL_glXGetProcAddressARB=no
7821 fi
7822 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7823 LIBS=$ac_check_lib_save_LIBS
7824 fi
7825 echo "$as_me:$LINENO: result: $ac_cv_lib_GL_glXGetProcAddressARB" >&5
7826 echo "${ECHO_T}$ac_cv_lib_GL_glXGetProcAddressARB" >&6
7827 if test $ac_cv_lib_GL_glXGetProcAddressARB = yes; then
7828
7829 cat >>confdefs.h <<\_ACEOF
7830 #define HAVE_GLX_GETPROCADDRESS 1
7831 _ACEOF
7832
7833 fi
7834
7835
7836                         if test "$ac_cv_lib_GL_glXGetProcAddressARB" = "yes"
7837                         then
7838                                echo "$as_me:$LINENO: checking for OpenGL extension functions prototypes" >&5
7839 echo $ECHO_N "checking for OpenGL extension functions prototypes... $ECHO_C" >&6
7840 if test "${wine_cv_extension_prototypes+set}" = set; then
7841   echo $ECHO_N "(cached) $ECHO_C" >&6
7842 else
7843   cat >conftest.$ac_ext <<_ACEOF
7844 #line $LINENO "configure"
7845 /* confdefs.h.  */
7846 _ACEOF
7847 cat confdefs.h >>conftest.$ac_ext
7848 cat >>conftest.$ac_ext <<_ACEOF
7849 /* end confdefs.h.  */
7850 #include <GL/gl.h>
7851                                                   #ifdef HAVE_GL_GLEXT_H
7852                                                   # include <GL/glext.h>
7853                                                   #endif
7854
7855 int
7856 main ()
7857 {
7858 PFNGLCOLORTABLEEXTPROC test_proc;
7859   ;
7860   return 0;
7861 }
7862 _ACEOF
7863 rm -f conftest.$ac_objext
7864 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7865   (eval $ac_compile) 2>&5
7866   ac_status=$?
7867   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7868   (exit $ac_status); } &&
7869          { ac_try='test -s conftest.$ac_objext'
7870   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7871   (eval $ac_try) 2>&5
7872   ac_status=$?
7873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7874   (exit $ac_status); }; }; then
7875   wine_cv_extension_prototypes="yes"
7876 else
7877   echo "$as_me: failed program was:" >&5
7878 sed 's/^/| /' conftest.$ac_ext >&5
7879
7880 wine_cv_extension_prototypes="no"
7881
7882 fi
7883 rm -f conftest.$ac_objext conftest.$ac_ext
7884
7885 fi
7886 echo "$as_me:$LINENO: result: $wine_cv_extension_prototypes" >&5
7887 echo "${ECHO_T}$wine_cv_extension_prototypes" >&6
7888                                 if test "$wine_cv_extension_prototypes" = "yes"
7889                                 then
7890
7891 cat >>confdefs.h <<\_ACEOF
7892 #define HAVE_GLEXT_PROTOTYPES 1
7893 _ACEOF
7894
7895                                 fi
7896                         fi
7897
7898                 fi
7899                                 echo "$as_me:$LINENO: checking for gluLookAt in -lGLU" >&5
7900 echo $ECHO_N "checking for gluLookAt in -lGLU... $ECHO_C" >&6
7901 if test "${ac_cv_lib_GLU_gluLookAt+set}" = set; then
7902   echo $ECHO_N "(cached) $ECHO_C" >&6
7903 else
7904   ac_check_lib_save_LIBS=$LIBS
7905 LIBS="-lGLU $OPENGL_LIBS $X_LIBS $X_PRE_LIBS -lXext -lX11 -lm $X_EXTRA_LIBS
7906                  $LIBS"
7907 cat >conftest.$ac_ext <<_ACEOF
7908 #line $LINENO "configure"
7909 /* confdefs.h.  */
7910 _ACEOF
7911 cat confdefs.h >>conftest.$ac_ext
7912 cat >>conftest.$ac_ext <<_ACEOF
7913 /* end confdefs.h.  */
7914
7915 /* Override any gcc2 internal prototype to avoid an error.  */
7916 #ifdef __cplusplus
7917 extern "C"
7918 #endif
7919 /* We use char because int might match the return type of a gcc2
7920    builtin and then its argument prototype would still apply.  */
7921 char gluLookAt ();
7922 int
7923 main ()
7924 {
7925 gluLookAt ();
7926   ;
7927   return 0;
7928 }
7929 _ACEOF
7930 rm -f conftest.$ac_objext conftest$ac_exeext
7931 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7932   (eval $ac_link) 2>&5
7933   ac_status=$?
7934   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7935   (exit $ac_status); } &&
7936          { ac_try='test -s conftest$ac_exeext'
7937   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7938   (eval $ac_try) 2>&5
7939   ac_status=$?
7940   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7941   (exit $ac_status); }; }; then
7942   ac_cv_lib_GLU_gluLookAt=yes
7943 else
7944   echo "$as_me: failed program was:" >&5
7945 sed 's/^/| /' conftest.$ac_ext >&5
7946
7947 ac_cv_lib_GLU_gluLookAt=no
7948 fi
7949 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7950 LIBS=$ac_check_lib_save_LIBS
7951 fi
7952 echo "$as_me:$LINENO: result: $ac_cv_lib_GLU_gluLookAt" >&5
7953 echo "${ECHO_T}$ac_cv_lib_GLU_gluLookAt" >&6
7954 if test $ac_cv_lib_GLU_gluLookAt = yes; then
7955   OPENGL_LIBS="$OPENGL_LIBS -lGLU"
7956                              GLU32FILES='$(GLU32FILES)'
7957
7958 fi
7959
7960              fi
7961          fi
7962     fi
7963
7964         NASLIBS=""
7965
7966
7967 for ac_header in audio/audiolib.h
7968 do
7969 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7970 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7971   echo "$as_me:$LINENO: checking for $ac_header" >&5
7972 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7973 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7974   echo $ECHO_N "(cached) $ECHO_C" >&6
7975 fi
7976 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7977 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7978 else
7979   # Is the header compilable?
7980 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7981 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7982 cat >conftest.$ac_ext <<_ACEOF
7983 #line $LINENO "configure"
7984 /* confdefs.h.  */
7985 _ACEOF
7986 cat confdefs.h >>conftest.$ac_ext
7987 cat >>conftest.$ac_ext <<_ACEOF
7988 /* end confdefs.h.  */
7989 $ac_includes_default
7990 #include <$ac_header>
7991 _ACEOF
7992 rm -f conftest.$ac_objext
7993 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7994   (eval $ac_compile) 2>&5
7995   ac_status=$?
7996   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7997   (exit $ac_status); } &&
7998          { ac_try='test -s conftest.$ac_objext'
7999   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8000   (eval $ac_try) 2>&5
8001   ac_status=$?
8002   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8003   (exit $ac_status); }; }; then
8004   ac_header_compiler=yes
8005 else
8006   echo "$as_me: failed program was:" >&5
8007 sed 's/^/| /' conftest.$ac_ext >&5
8008
8009 ac_header_compiler=no
8010 fi
8011 rm -f conftest.$ac_objext conftest.$ac_ext
8012 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8013 echo "${ECHO_T}$ac_header_compiler" >&6
8014
8015 # Is the header present?
8016 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8017 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8018 cat >conftest.$ac_ext <<_ACEOF
8019 #line $LINENO "configure"
8020 /* confdefs.h.  */
8021 _ACEOF
8022 cat confdefs.h >>conftest.$ac_ext
8023 cat >>conftest.$ac_ext <<_ACEOF
8024 /* end confdefs.h.  */
8025 #include <$ac_header>
8026 _ACEOF
8027 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8028   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8029   ac_status=$?
8030   grep -v '^ *+' conftest.er1 >conftest.err
8031   rm -f conftest.er1
8032   cat conftest.err >&5
8033   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8034   (exit $ac_status); } >/dev/null; then
8035   if test -s conftest.err; then
8036     ac_cpp_err=$ac_c_preproc_warn_flag
8037   else
8038     ac_cpp_err=
8039   fi
8040 else
8041   ac_cpp_err=yes
8042 fi
8043 if test -z "$ac_cpp_err"; then
8044   ac_header_preproc=yes
8045 else
8046   echo "$as_me: failed program was:" >&5
8047 sed 's/^/| /' conftest.$ac_ext >&5
8048
8049   ac_header_preproc=no
8050 fi
8051 rm -f conftest.err conftest.$ac_ext
8052 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8053 echo "${ECHO_T}$ac_header_preproc" >&6
8054
8055 # So?  What about this header?
8056 case $ac_header_compiler:$ac_header_preproc in
8057   yes:no )
8058     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8059 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8060     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8061 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8062     (
8063       cat <<\_ASBOX
8064 ## ------------------------------------ ##
8065 ## Report this to bug-autoconf@gnu.org. ##
8066 ## ------------------------------------ ##
8067 _ASBOX
8068     ) |
8069       sed "s/^/$as_me: WARNING:     /" >&2
8070     ;;
8071   no:yes )
8072     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8073 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8074     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8075 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8076     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8077 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8078     (
8079       cat <<\_ASBOX
8080 ## ------------------------------------ ##
8081 ## Report this to bug-autoconf@gnu.org. ##
8082 ## ------------------------------------ ##
8083 _ASBOX
8084     ) |
8085       sed "s/^/$as_me: WARNING:     /" >&2
8086     ;;
8087 esac
8088 echo "$as_me:$LINENO: checking for $ac_header" >&5
8089 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8090 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8091   echo $ECHO_N "(cached) $ECHO_C" >&6
8092 else
8093   eval "$as_ac_Header=$ac_header_preproc"
8094 fi
8095 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8096 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8097
8098 fi
8099 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8100   cat >>confdefs.h <<_ACEOF
8101 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8102 _ACEOF
8103
8104 for ac_header in audio/soundlib.h
8105 do
8106 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8107 echo "$as_me:$LINENO: checking for $ac_header" >&5
8108 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8109 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8110   echo $ECHO_N "(cached) $ECHO_C" >&6
8111 else
8112   cat >conftest.$ac_ext <<_ACEOF
8113 #line $LINENO "configure"
8114 /* confdefs.h.  */
8115 _ACEOF
8116 cat confdefs.h >>conftest.$ac_ext
8117 cat >>conftest.$ac_ext <<_ACEOF
8118 /* end confdefs.h.  */
8119 #include <audio/audiolib.h>
8120
8121 #include <$ac_header>
8122 _ACEOF
8123 rm -f conftest.$ac_objext
8124 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8125   (eval $ac_compile) 2>&5
8126   ac_status=$?
8127   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8128   (exit $ac_status); } &&
8129          { ac_try='test -s conftest.$ac_objext'
8130   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8131   (eval $ac_try) 2>&5
8132   ac_status=$?
8133   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8134   (exit $ac_status); }; }; then
8135   eval "$as_ac_Header=yes"
8136 else
8137   echo "$as_me: failed program was:" >&5
8138 sed 's/^/| /' conftest.$ac_ext >&5
8139
8140 eval "$as_ac_Header=no"
8141 fi
8142 rm -f conftest.$ac_objext conftest.$ac_ext
8143 fi
8144 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8145 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8146 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8147   cat >>confdefs.h <<_ACEOF
8148 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8149 _ACEOF
8150
8151 fi
8152
8153 done
8154
8155           echo "$as_me:$LINENO: checking for AuCreateFlow in -laudio" >&5
8156 echo $ECHO_N "checking for AuCreateFlow in -laudio... $ECHO_C" >&6
8157 if test "${ac_cv_lib_audio_AuCreateFlow+set}" = set; then
8158   echo $ECHO_N "(cached) $ECHO_C" >&6
8159 else
8160   ac_check_lib_save_LIBS=$LIBS
8161 LIBS="-laudio -lXt $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
8162 cat >conftest.$ac_ext <<_ACEOF
8163 #line $LINENO "configure"
8164 /* confdefs.h.  */
8165 _ACEOF
8166 cat confdefs.h >>conftest.$ac_ext
8167 cat >>conftest.$ac_ext <<_ACEOF
8168 /* end confdefs.h.  */
8169
8170 /* Override any gcc2 internal prototype to avoid an error.  */
8171 #ifdef __cplusplus
8172 extern "C"
8173 #endif
8174 /* We use char because int might match the return type of a gcc2
8175    builtin and then its argument prototype would still apply.  */
8176 char AuCreateFlow ();
8177 int
8178 main ()
8179 {
8180 AuCreateFlow ();
8181   ;
8182   return 0;
8183 }
8184 _ACEOF
8185 rm -f conftest.$ac_objext conftest$ac_exeext
8186 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8187   (eval $ac_link) 2>&5
8188   ac_status=$?
8189   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8190   (exit $ac_status); } &&
8191          { ac_try='test -s conftest$ac_exeext'
8192   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8193   (eval $ac_try) 2>&5
8194   ac_status=$?
8195   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8196   (exit $ac_status); }; }; then
8197   ac_cv_lib_audio_AuCreateFlow=yes
8198 else
8199   echo "$as_me: failed program was:" >&5
8200 sed 's/^/| /' conftest.$ac_ext >&5
8201
8202 ac_cv_lib_audio_AuCreateFlow=no
8203 fi
8204 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8205 LIBS=$ac_check_lib_save_LIBS
8206 fi
8207 echo "$as_me:$LINENO: result: $ac_cv_lib_audio_AuCreateFlow" >&5
8208 echo "${ECHO_T}$ac_cv_lib_audio_AuCreateFlow" >&6
8209 if test $ac_cv_lib_audio_AuCreateFlow = yes; then
8210
8211 cat >>confdefs.h <<\_ACEOF
8212 #define HAVE_NAS 1
8213 _ACEOF
8214
8215                         NASLIBS="-laudio -lXt $X_LIBS -lXext -lX11 $X_EXTRA_LIBS"
8216 fi
8217
8218 fi
8219
8220 done
8221
8222
8223     CPPFLAGS="$ac_save_CPPFLAGS"
8224     XFILES='$(XFILES)'
8225 else
8226     XLIB=""
8227     X_CFLAGS=""
8228     X_LIBS=""
8229 fi
8230
8231 CURSESLIBS=""
8232 if test "x$with_curses" != "xno"
8233 then
8234
8235 for ac_header in ncurses.h
8236 do
8237 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8238 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8239   echo "$as_me:$LINENO: checking for $ac_header" >&5
8240 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8241 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8242   echo $ECHO_N "(cached) $ECHO_C" >&6
8243 fi
8244 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8245 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8246 else
8247   # Is the header compilable?
8248 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8249 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8250 cat >conftest.$ac_ext <<_ACEOF
8251 #line $LINENO "configure"
8252 /* confdefs.h.  */
8253 _ACEOF
8254 cat confdefs.h >>conftest.$ac_ext
8255 cat >>conftest.$ac_ext <<_ACEOF
8256 /* end confdefs.h.  */
8257 $ac_includes_default
8258 #include <$ac_header>
8259 _ACEOF
8260 rm -f conftest.$ac_objext
8261 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8262   (eval $ac_compile) 2>&5
8263   ac_status=$?
8264   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8265   (exit $ac_status); } &&
8266          { ac_try='test -s conftest.$ac_objext'
8267   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8268   (eval $ac_try) 2>&5
8269   ac_status=$?
8270   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8271   (exit $ac_status); }; }; then
8272   ac_header_compiler=yes
8273 else
8274   echo "$as_me: failed program was:" >&5
8275 sed 's/^/| /' conftest.$ac_ext >&5
8276
8277 ac_header_compiler=no
8278 fi
8279 rm -f conftest.$ac_objext conftest.$ac_ext
8280 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8281 echo "${ECHO_T}$ac_header_compiler" >&6
8282
8283 # Is the header present?
8284 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8285 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8286 cat >conftest.$ac_ext <<_ACEOF
8287 #line $LINENO "configure"
8288 /* confdefs.h.  */
8289 _ACEOF
8290 cat confdefs.h >>conftest.$ac_ext
8291 cat >>conftest.$ac_ext <<_ACEOF
8292 /* end confdefs.h.  */
8293 #include <$ac_header>
8294 _ACEOF
8295 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8296   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8297   ac_status=$?
8298   grep -v '^ *+' conftest.er1 >conftest.err
8299   rm -f conftest.er1
8300   cat conftest.err >&5
8301   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8302   (exit $ac_status); } >/dev/null; then
8303   if test -s conftest.err; then
8304     ac_cpp_err=$ac_c_preproc_warn_flag
8305   else
8306     ac_cpp_err=
8307   fi
8308 else
8309   ac_cpp_err=yes
8310 fi
8311 if test -z "$ac_cpp_err"; then
8312   ac_header_preproc=yes
8313 else
8314   echo "$as_me: failed program was:" >&5
8315 sed 's/^/| /' conftest.$ac_ext >&5
8316
8317   ac_header_preproc=no
8318 fi
8319 rm -f conftest.err conftest.$ac_ext
8320 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8321 echo "${ECHO_T}$ac_header_preproc" >&6
8322
8323 # So?  What about this header?
8324 case $ac_header_compiler:$ac_header_preproc in
8325   yes:no )
8326     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8327 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8328     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8329 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8330     (
8331       cat <<\_ASBOX
8332 ## ------------------------------------ ##
8333 ## Report this to bug-autoconf@gnu.org. ##
8334 ## ------------------------------------ ##
8335 _ASBOX
8336     ) |
8337       sed "s/^/$as_me: WARNING:     /" >&2
8338     ;;
8339   no:yes )
8340     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8341 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8342     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8343 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8344     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8345 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8346     (
8347       cat <<\_ASBOX
8348 ## ------------------------------------ ##
8349 ## Report this to bug-autoconf@gnu.org. ##
8350 ## ------------------------------------ ##
8351 _ASBOX
8352     ) |
8353       sed "s/^/$as_me: WARNING:     /" >&2
8354     ;;
8355 esac
8356 echo "$as_me:$LINENO: checking for $ac_header" >&5
8357 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8358 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8359   echo $ECHO_N "(cached) $ECHO_C" >&6
8360 else
8361   eval "$as_ac_Header=$ac_header_preproc"
8362 fi
8363 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8364 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8365
8366 fi
8367 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8368   cat >>confdefs.h <<_ACEOF
8369 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8370 _ACEOF
8371  echo "$as_me:$LINENO: checking for waddch in -lncurses" >&5
8372 echo $ECHO_N "checking for waddch in -lncurses... $ECHO_C" >&6
8373 if test "${ac_cv_lib_ncurses_waddch+set}" = set; then
8374   echo $ECHO_N "(cached) $ECHO_C" >&6
8375 else
8376   ac_check_lib_save_LIBS=$LIBS
8377 LIBS="-lncurses  $LIBS"
8378 cat >conftest.$ac_ext <<_ACEOF
8379 #line $LINENO "configure"
8380 /* confdefs.h.  */
8381 _ACEOF
8382 cat confdefs.h >>conftest.$ac_ext
8383 cat >>conftest.$ac_ext <<_ACEOF
8384 /* end confdefs.h.  */
8385
8386 /* Override any gcc2 internal prototype to avoid an error.  */
8387 #ifdef __cplusplus
8388 extern "C"
8389 #endif
8390 /* We use char because int might match the return type of a gcc2
8391    builtin and then its argument prototype would still apply.  */
8392 char waddch ();
8393 int
8394 main ()
8395 {
8396 waddch ();
8397   ;
8398   return 0;
8399 }
8400 _ACEOF
8401 rm -f conftest.$ac_objext conftest$ac_exeext
8402 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8403   (eval $ac_link) 2>&5
8404   ac_status=$?
8405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8406   (exit $ac_status); } &&
8407          { ac_try='test -s conftest$ac_exeext'
8408   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8409   (eval $ac_try) 2>&5
8410   ac_status=$?
8411   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8412   (exit $ac_status); }; }; then
8413   ac_cv_lib_ncurses_waddch=yes
8414 else
8415   echo "$as_me: failed program was:" >&5
8416 sed 's/^/| /' conftest.$ac_ext >&5
8417
8418 ac_cv_lib_ncurses_waddch=no
8419 fi
8420 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8421 LIBS=$ac_check_lib_save_LIBS
8422 fi
8423 echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_waddch" >&5
8424 echo "${ECHO_T}$ac_cv_lib_ncurses_waddch" >&6
8425 if test $ac_cv_lib_ncurses_waddch = yes; then
8426
8427 cat >>confdefs.h <<\_ACEOF
8428 #define HAVE_LIBNCURSES 1
8429 _ACEOF
8430
8431              CURSESLIBS="-lncurses"
8432 else
8433
8434 for ac_header in curses.h
8435 do
8436 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8437 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8438   echo "$as_me:$LINENO: checking for $ac_header" >&5
8439 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8440 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8441   echo $ECHO_N "(cached) $ECHO_C" >&6
8442 fi
8443 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8444 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8445 else
8446   # Is the header compilable?
8447 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8448 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8449 cat >conftest.$ac_ext <<_ACEOF
8450 #line $LINENO "configure"
8451 /* confdefs.h.  */
8452 _ACEOF
8453 cat confdefs.h >>conftest.$ac_ext
8454 cat >>conftest.$ac_ext <<_ACEOF
8455 /* end confdefs.h.  */
8456 $ac_includes_default
8457 #include <$ac_header>
8458 _ACEOF
8459 rm -f conftest.$ac_objext
8460 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8461   (eval $ac_compile) 2>&5
8462   ac_status=$?
8463   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8464   (exit $ac_status); } &&
8465          { ac_try='test -s conftest.$ac_objext'
8466   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8467   (eval $ac_try) 2>&5
8468   ac_status=$?
8469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8470   (exit $ac_status); }; }; then
8471   ac_header_compiler=yes
8472 else
8473   echo "$as_me: failed program was:" >&5
8474 sed 's/^/| /' conftest.$ac_ext >&5
8475
8476 ac_header_compiler=no
8477 fi
8478 rm -f conftest.$ac_objext conftest.$ac_ext
8479 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8480 echo "${ECHO_T}$ac_header_compiler" >&6
8481
8482 # Is the header present?
8483 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8484 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8485 cat >conftest.$ac_ext <<_ACEOF
8486 #line $LINENO "configure"
8487 /* confdefs.h.  */
8488 _ACEOF
8489 cat confdefs.h >>conftest.$ac_ext
8490 cat >>conftest.$ac_ext <<_ACEOF
8491 /* end confdefs.h.  */
8492 #include <$ac_header>
8493 _ACEOF
8494 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8495   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8496   ac_status=$?
8497   grep -v '^ *+' conftest.er1 >conftest.err
8498   rm -f conftest.er1
8499   cat conftest.err >&5
8500   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8501   (exit $ac_status); } >/dev/null; then
8502   if test -s conftest.err; then
8503     ac_cpp_err=$ac_c_preproc_warn_flag
8504   else
8505     ac_cpp_err=
8506   fi
8507 else
8508   ac_cpp_err=yes
8509 fi
8510 if test -z "$ac_cpp_err"; then
8511   ac_header_preproc=yes
8512 else
8513   echo "$as_me: failed program was:" >&5
8514 sed 's/^/| /' conftest.$ac_ext >&5
8515
8516   ac_header_preproc=no
8517 fi
8518 rm -f conftest.err conftest.$ac_ext
8519 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8520 echo "${ECHO_T}$ac_header_preproc" >&6
8521
8522 # So?  What about this header?
8523 case $ac_header_compiler:$ac_header_preproc in
8524   yes:no )
8525     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8526 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8527     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8528 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8529     (
8530       cat <<\_ASBOX
8531 ## ------------------------------------ ##
8532 ## Report this to bug-autoconf@gnu.org. ##
8533 ## ------------------------------------ ##
8534 _ASBOX
8535     ) |
8536       sed "s/^/$as_me: WARNING:     /" >&2
8537     ;;
8538   no:yes )
8539     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8540 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8541     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8542 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8543     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8544 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8545     (
8546       cat <<\_ASBOX
8547 ## ------------------------------------ ##
8548 ## Report this to bug-autoconf@gnu.org. ##
8549 ## ------------------------------------ ##
8550 _ASBOX
8551     ) |
8552       sed "s/^/$as_me: WARNING:     /" >&2
8553     ;;
8554 esac
8555 echo "$as_me:$LINENO: checking for $ac_header" >&5
8556 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8557 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8558   echo $ECHO_N "(cached) $ECHO_C" >&6
8559 else
8560   eval "$as_ac_Header=$ac_header_preproc"
8561 fi
8562 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8563 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8564
8565 fi
8566 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8567   cat >>confdefs.h <<_ACEOF
8568 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8569 _ACEOF
8570  echo "$as_me:$LINENO: checking for waddch in -lcurses" >&5
8571 echo $ECHO_N "checking for waddch in -lcurses... $ECHO_C" >&6
8572 if test "${ac_cv_lib_curses_waddch+set}" = set; then
8573   echo $ECHO_N "(cached) $ECHO_C" >&6
8574 else
8575   ac_check_lib_save_LIBS=$LIBS
8576 LIBS="-lcurses  $LIBS"
8577 cat >conftest.$ac_ext <<_ACEOF
8578 #line $LINENO "configure"
8579 /* confdefs.h.  */
8580 _ACEOF
8581 cat confdefs.h >>conftest.$ac_ext
8582 cat >>conftest.$ac_ext <<_ACEOF
8583 /* end confdefs.h.  */
8584
8585 /* Override any gcc2 internal prototype to avoid an error.  */
8586 #ifdef __cplusplus
8587 extern "C"
8588 #endif
8589 /* We use char because int might match the return type of a gcc2
8590    builtin and then its argument prototype would still apply.  */
8591 char waddch ();
8592 int
8593 main ()
8594 {
8595 waddch ();
8596   ;
8597   return 0;
8598 }
8599 _ACEOF
8600 rm -f conftest.$ac_objext conftest$ac_exeext
8601 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8602   (eval $ac_link) 2>&5
8603   ac_status=$?
8604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8605   (exit $ac_status); } &&
8606          { ac_try='test -s conftest$ac_exeext'
8607   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8608   (eval $ac_try) 2>&5
8609   ac_status=$?
8610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8611   (exit $ac_status); }; }; then
8612   ac_cv_lib_curses_waddch=yes
8613 else
8614   echo "$as_me: failed program was:" >&5
8615 sed 's/^/| /' conftest.$ac_ext >&5
8616
8617 ac_cv_lib_curses_waddch=no
8618 fi
8619 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8620 LIBS=$ac_check_lib_save_LIBS
8621 fi
8622 echo "$as_me:$LINENO: result: $ac_cv_lib_curses_waddch" >&5
8623 echo "${ECHO_T}$ac_cv_lib_curses_waddch" >&6
8624 if test $ac_cv_lib_curses_waddch = yes; then
8625
8626 cat >>confdefs.h <<\_ACEOF
8627 #define HAVE_LIBCURSES 1
8628 _ACEOF
8629
8630                       CURSESLIBS="-lcurses"
8631 fi
8632
8633 fi
8634
8635 done
8636
8637 fi
8638
8639 fi
8640
8641 done
8642
8643     saved_libs="$LIBS"
8644     LIBS="$CURSESLIBS $LIBS"
8645
8646
8647 for ac_func in getbkgd resizeterm
8648 do
8649 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8650 echo "$as_me:$LINENO: checking for $ac_func" >&5
8651 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8652 if eval "test \"\${$as_ac_var+set}\" = set"; then
8653   echo $ECHO_N "(cached) $ECHO_C" >&6
8654 else
8655   cat >conftest.$ac_ext <<_ACEOF
8656 #line $LINENO "configure"
8657 /* confdefs.h.  */
8658 _ACEOF
8659 cat confdefs.h >>conftest.$ac_ext
8660 cat >>conftest.$ac_ext <<_ACEOF
8661 /* end confdefs.h.  */
8662 /* System header to define __stub macros and hopefully few prototypes,
8663     which can conflict with char $ac_func (); below.
8664     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8665     <limits.h> exists even on freestanding compilers.  */
8666 #ifdef __STDC__
8667 # include <limits.h>
8668 #else
8669 # include <assert.h>
8670 #endif
8671 /* Override any gcc2 internal prototype to avoid an error.  */
8672 #ifdef __cplusplus
8673 extern "C"
8674 {
8675 #endif
8676 /* We use char because int might match the return type of a gcc2
8677    builtin and then its argument prototype would still apply.  */
8678 char $ac_func ();
8679 /* The GNU C library defines this for functions which it implements
8680     to always fail with ENOSYS.  Some functions are actually named
8681     something starting with __ and the normal name is an alias.  */
8682 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8683 choke me
8684 #else
8685 char (*f) () = $ac_func;
8686 #endif
8687 #ifdef __cplusplus
8688 }
8689 #endif
8690
8691 int
8692 main ()
8693 {
8694 return f != $ac_func;
8695   ;
8696   return 0;
8697 }
8698 _ACEOF
8699 rm -f conftest.$ac_objext conftest$ac_exeext
8700 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8701   (eval $ac_link) 2>&5
8702   ac_status=$?
8703   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8704   (exit $ac_status); } &&
8705          { ac_try='test -s conftest$ac_exeext'
8706   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8707   (eval $ac_try) 2>&5
8708   ac_status=$?
8709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8710   (exit $ac_status); }; }; then
8711   eval "$as_ac_var=yes"
8712 else
8713   echo "$as_me: failed program was:" >&5
8714 sed 's/^/| /' conftest.$ac_ext >&5
8715
8716 eval "$as_ac_var=no"
8717 fi
8718 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8719 fi
8720 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8721 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8722 if test `eval echo '${'$as_ac_var'}'` = yes; then
8723   cat >>confdefs.h <<_ACEOF
8724 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8725 _ACEOF
8726
8727 fi
8728 done
8729
8730     LIBS="$saved_libs"
8731 fi
8732
8733
8734 # Extract the first word of "sane-config", so it can be a program name with args.
8735 set dummy sane-config; ac_word=$2
8736 echo "$as_me:$LINENO: checking for $ac_word" >&5
8737 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8738 if test "${ac_cv_prog_sane_devel+set}" = set; then
8739   echo $ECHO_N "(cached) $ECHO_C" >&6
8740 else
8741   if test -n "$sane_devel"; then
8742   ac_cv_prog_sane_devel="$sane_devel" # Let the user override the test.
8743 else
8744 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8745 for as_dir in $PATH
8746 do
8747   IFS=$as_save_IFS
8748   test -z "$as_dir" && as_dir=.
8749   for ac_exec_ext in '' $ac_executable_extensions; do
8750   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8751     ac_cv_prog_sane_devel="sane-config"
8752     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8753     break 2
8754   fi
8755 done
8756 done
8757
8758   test -z "$ac_cv_prog_sane_devel" && ac_cv_prog_sane_devel="no"
8759 fi
8760 fi
8761 sane_devel=$ac_cv_prog_sane_devel
8762 if test -n "$sane_devel"; then
8763   echo "$as_me:$LINENO: result: $sane_devel" >&5
8764 echo "${ECHO_T}$sane_devel" >&6
8765 else
8766   echo "$as_me:$LINENO: result: no" >&5
8767 echo "${ECHO_T}no" >&6
8768 fi
8769
8770 if test "$sane_devel" = "no"
8771 then
8772     SANELIBS=""
8773     SANEINCL=""
8774 else
8775     SANELIBS="`$sane_devel --libs`"
8776     SANEINCL="`$sane_devel --cflags`"
8777     ac_save_CPPFLAGS="$CPPFLAGS"
8778     ac_save_LIBS="$LIBS"
8779     CPPFLAGS="$CPPFLAGS $SANEINCL"
8780     LIBS="$LIBS $SANELIBS"
8781     if test "${ac_cv_header_sane_sane_h+set}" = set; then
8782   echo "$as_me:$LINENO: checking for sane/sane.h" >&5
8783 echo $ECHO_N "checking for sane/sane.h... $ECHO_C" >&6
8784 if test "${ac_cv_header_sane_sane_h+set}" = set; then
8785   echo $ECHO_N "(cached) $ECHO_C" >&6
8786 fi
8787 echo "$as_me:$LINENO: result: $ac_cv_header_sane_sane_h" >&5
8788 echo "${ECHO_T}$ac_cv_header_sane_sane_h" >&6
8789 else
8790   # Is the header compilable?
8791 echo "$as_me:$LINENO: checking sane/sane.h usability" >&5
8792 echo $ECHO_N "checking sane/sane.h usability... $ECHO_C" >&6
8793 cat >conftest.$ac_ext <<_ACEOF
8794 #line $LINENO "configure"
8795 /* confdefs.h.  */
8796 _ACEOF
8797 cat confdefs.h >>conftest.$ac_ext
8798 cat >>conftest.$ac_ext <<_ACEOF
8799 /* end confdefs.h.  */
8800 $ac_includes_default
8801 #include <sane/sane.h>
8802 _ACEOF
8803 rm -f conftest.$ac_objext
8804 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8805   (eval $ac_compile) 2>&5
8806   ac_status=$?
8807   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8808   (exit $ac_status); } &&
8809          { ac_try='test -s conftest.$ac_objext'
8810   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8811   (eval $ac_try) 2>&5
8812   ac_status=$?
8813   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8814   (exit $ac_status); }; }; then
8815   ac_header_compiler=yes
8816 else
8817   echo "$as_me: failed program was:" >&5
8818 sed 's/^/| /' conftest.$ac_ext >&5
8819
8820 ac_header_compiler=no
8821 fi
8822 rm -f conftest.$ac_objext conftest.$ac_ext
8823 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8824 echo "${ECHO_T}$ac_header_compiler" >&6
8825
8826 # Is the header present?
8827 echo "$as_me:$LINENO: checking sane/sane.h presence" >&5
8828 echo $ECHO_N "checking sane/sane.h presence... $ECHO_C" >&6
8829 cat >conftest.$ac_ext <<_ACEOF
8830 #line $LINENO "configure"
8831 /* confdefs.h.  */
8832 _ACEOF
8833 cat confdefs.h >>conftest.$ac_ext
8834 cat >>conftest.$ac_ext <<_ACEOF
8835 /* end confdefs.h.  */
8836 #include <sane/sane.h>
8837 _ACEOF
8838 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8839   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8840   ac_status=$?
8841   grep -v '^ *+' conftest.er1 >conftest.err
8842   rm -f conftest.er1
8843   cat conftest.err >&5
8844   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8845   (exit $ac_status); } >/dev/null; then
8846   if test -s conftest.err; then
8847     ac_cpp_err=$ac_c_preproc_warn_flag
8848   else
8849     ac_cpp_err=
8850   fi
8851 else
8852   ac_cpp_err=yes
8853 fi
8854 if test -z "$ac_cpp_err"; then
8855   ac_header_preproc=yes
8856 else
8857   echo "$as_me: failed program was:" >&5
8858 sed 's/^/| /' conftest.$ac_ext >&5
8859
8860   ac_header_preproc=no
8861 fi
8862 rm -f conftest.err conftest.$ac_ext
8863 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8864 echo "${ECHO_T}$ac_header_preproc" >&6
8865
8866 # So?  What about this header?
8867 case $ac_header_compiler:$ac_header_preproc in
8868   yes:no )
8869     { echo "$as_me:$LINENO: WARNING: sane/sane.h: accepted by the compiler, rejected by the preprocessor!" >&5
8870 echo "$as_me: WARNING: sane/sane.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8871     { echo "$as_me:$LINENO: WARNING: sane/sane.h: proceeding with the preprocessor's result" >&5
8872 echo "$as_me: WARNING: sane/sane.h: proceeding with the preprocessor's result" >&2;}
8873     (
8874       cat <<\_ASBOX
8875 ## ------------------------------------ ##
8876 ## Report this to bug-autoconf@gnu.org. ##
8877 ## ------------------------------------ ##
8878 _ASBOX
8879     ) |
8880       sed "s/^/$as_me: WARNING:     /" >&2
8881     ;;
8882   no:yes )
8883     { echo "$as_me:$LINENO: WARNING: sane/sane.h: present but cannot be compiled" >&5
8884 echo "$as_me: WARNING: sane/sane.h: present but cannot be compiled" >&2;}
8885     { echo "$as_me:$LINENO: WARNING: sane/sane.h: check for missing prerequisite headers?" >&5
8886 echo "$as_me: WARNING: sane/sane.h: check for missing prerequisite headers?" >&2;}
8887     { echo "$as_me:$LINENO: WARNING: sane/sane.h: proceeding with the preprocessor's result" >&5
8888 echo "$as_me: WARNING: sane/sane.h: proceeding with the preprocessor's result" >&2;}
8889     (
8890       cat <<\_ASBOX
8891 ## ------------------------------------ ##
8892 ## Report this to bug-autoconf@gnu.org. ##
8893 ## ------------------------------------ ##
8894 _ASBOX
8895     ) |
8896       sed "s/^/$as_me: WARNING:     /" >&2
8897     ;;
8898 esac
8899 echo "$as_me:$LINENO: checking for sane/sane.h" >&5
8900 echo $ECHO_N "checking for sane/sane.h... $ECHO_C" >&6
8901 if test "${ac_cv_header_sane_sane_h+set}" = set; then
8902   echo $ECHO_N "(cached) $ECHO_C" >&6
8903 else
8904   ac_cv_header_sane_sane_h=$ac_header_preproc
8905 fi
8906 echo "$as_me:$LINENO: result: $ac_cv_header_sane_sane_h" >&5
8907 echo "${ECHO_T}$ac_cv_header_sane_sane_h" >&6
8908
8909 fi
8910 if test $ac_cv_header_sane_sane_h = yes; then
8911   echo "$as_me:$LINENO: checking for sane_open in -lsane" >&5
8912 echo $ECHO_N "checking for sane_open in -lsane... $ECHO_C" >&6
8913 if test "${ac_cv_lib_sane_sane_open+set}" = set; then
8914   echo $ECHO_N "(cached) $ECHO_C" >&6
8915 else
8916   ac_check_lib_save_LIBS=$LIBS
8917 LIBS="-lsane  $LIBS"
8918 cat >conftest.$ac_ext <<_ACEOF
8919 #line $LINENO "configure"
8920 /* confdefs.h.  */
8921 _ACEOF
8922 cat confdefs.h >>conftest.$ac_ext
8923 cat >>conftest.$ac_ext <<_ACEOF
8924 /* end confdefs.h.  */
8925
8926 /* Override any gcc2 internal prototype to avoid an error.  */
8927 #ifdef __cplusplus
8928 extern "C"
8929 #endif
8930 /* We use char because int might match the return type of a gcc2
8931    builtin and then its argument prototype would still apply.  */
8932 char sane_open ();
8933 int
8934 main ()
8935 {
8936 sane_open ();
8937   ;
8938   return 0;
8939 }
8940 _ACEOF
8941 rm -f conftest.$ac_objext conftest$ac_exeext
8942 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8943   (eval $ac_link) 2>&5
8944   ac_status=$?
8945   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8946   (exit $ac_status); } &&
8947          { ac_try='test -s conftest$ac_exeext'
8948   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8949   (eval $ac_try) 2>&5
8950   ac_status=$?
8951   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8952   (exit $ac_status); }; }; then
8953   ac_cv_lib_sane_sane_open=yes
8954 else
8955   echo "$as_me: failed program was:" >&5
8956 sed 's/^/| /' conftest.$ac_ext >&5
8957
8958 ac_cv_lib_sane_sane_open=no
8959 fi
8960 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8961 LIBS=$ac_check_lib_save_LIBS
8962 fi
8963 echo "$as_me:$LINENO: result: $ac_cv_lib_sane_sane_open" >&5
8964 echo "${ECHO_T}$ac_cv_lib_sane_sane_open" >&6
8965 if test $ac_cv_lib_sane_sane_open = yes; then
8966
8967 cat >>confdefs.h <<\_ACEOF
8968 #define HAVE_SANE 1
8969 _ACEOF
8970
8971 else
8972   SANELIBS=""
8973                                   SANEINCL=""
8974 fi
8975
8976 else
8977   SANELIBS=""
8978                     SANEINCL=""
8979 fi
8980
8981
8982     LIBS="$ac_save_LIBS"
8983     CPPFLAGS="$ac_save_CPPFLAGS"
8984 fi
8985
8986
8987
8988
8989 for ac_header in unicode/ubidi.h
8990 do
8991 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8992 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8993   echo "$as_me:$LINENO: checking for $ac_header" >&5
8994 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8995 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8996   echo $ECHO_N "(cached) $ECHO_C" >&6
8997 fi
8998 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8999 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9000 else
9001   # Is the header compilable?
9002 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9003 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9004 cat >conftest.$ac_ext <<_ACEOF
9005 #line $LINENO "configure"
9006 /* confdefs.h.  */
9007 _ACEOF
9008 cat confdefs.h >>conftest.$ac_ext
9009 cat >>conftest.$ac_ext <<_ACEOF
9010 /* end confdefs.h.  */
9011 $ac_includes_default
9012 #include <$ac_header>
9013 _ACEOF
9014 rm -f conftest.$ac_objext
9015 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9016   (eval $ac_compile) 2>&5
9017   ac_status=$?
9018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9019   (exit $ac_status); } &&
9020          { ac_try='test -s conftest.$ac_objext'
9021   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9022   (eval $ac_try) 2>&5
9023   ac_status=$?
9024   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9025   (exit $ac_status); }; }; then
9026   ac_header_compiler=yes
9027 else
9028   echo "$as_me: failed program was:" >&5
9029 sed 's/^/| /' conftest.$ac_ext >&5
9030
9031 ac_header_compiler=no
9032 fi
9033 rm -f conftest.$ac_objext conftest.$ac_ext
9034 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9035 echo "${ECHO_T}$ac_header_compiler" >&6
9036
9037 # Is the header present?
9038 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9039 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9040 cat >conftest.$ac_ext <<_ACEOF
9041 #line $LINENO "configure"
9042 /* confdefs.h.  */
9043 _ACEOF
9044 cat confdefs.h >>conftest.$ac_ext
9045 cat >>conftest.$ac_ext <<_ACEOF
9046 /* end confdefs.h.  */
9047 #include <$ac_header>
9048 _ACEOF
9049 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9050   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9051   ac_status=$?
9052   grep -v '^ *+' conftest.er1 >conftest.err
9053   rm -f conftest.er1
9054   cat conftest.err >&5
9055   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9056   (exit $ac_status); } >/dev/null; then
9057   if test -s conftest.err; then
9058     ac_cpp_err=$ac_c_preproc_warn_flag
9059   else
9060     ac_cpp_err=
9061   fi
9062 else
9063   ac_cpp_err=yes
9064 fi
9065 if test -z "$ac_cpp_err"; then
9066   ac_header_preproc=yes
9067 else
9068   echo "$as_me: failed program was:" >&5
9069 sed 's/^/| /' conftest.$ac_ext >&5
9070
9071   ac_header_preproc=no
9072 fi
9073 rm -f conftest.err conftest.$ac_ext
9074 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9075 echo "${ECHO_T}$ac_header_preproc" >&6
9076
9077 # So?  What about this header?
9078 case $ac_header_compiler:$ac_header_preproc in
9079   yes:no )
9080     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9081 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9082     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9083 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9084     (
9085       cat <<\_ASBOX
9086 ## ------------------------------------ ##
9087 ## Report this to bug-autoconf@gnu.org. ##
9088 ## ------------------------------------ ##
9089 _ASBOX
9090     ) |
9091       sed "s/^/$as_me: WARNING:     /" >&2
9092     ;;
9093   no:yes )
9094     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9095 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9096     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9097 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9098     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9099 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9100     (
9101       cat <<\_ASBOX
9102 ## ------------------------------------ ##
9103 ## Report this to bug-autoconf@gnu.org. ##
9104 ## ------------------------------------ ##
9105 _ASBOX
9106     ) |
9107       sed "s/^/$as_me: WARNING:     /" >&2
9108     ;;
9109 esac
9110 echo "$as_me:$LINENO: checking for $ac_header" >&5
9111 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9112 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9113   echo $ECHO_N "(cached) $ECHO_C" >&6
9114 else
9115   eval "$as_ac_Header=$ac_header_preproc"
9116 fi
9117 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9118 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9119
9120 fi
9121 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9122   cat >>confdefs.h <<_ACEOF
9123 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9124 _ACEOF
9125
9126 fi
9127
9128 done
9129
9130 if test "$ac_cv_header_unicode_ubidi_h" = "yes"
9131 then
9132     echo "$as_me:$LINENO: checking whether we can statically link the ICU libraries" >&5
9133 echo $ECHO_N "checking whether we can statically link the ICU libraries... $ECHO_C" >&6
9134 if test "${ac_cv_lib_icu+set}" = set; then
9135   echo $ECHO_N "(cached) $ECHO_C" >&6
9136 else
9137   saved_libs="$LIBS"
9138          ICU_LIB_DIR="${ICU_LIB_DIR-/usr/lib}"
9139          ICUUC_LIB="${ICUUC_LIB-$ICU_LIB_DIR/libicuuc.a}"
9140          ICUDATA_LIB="${ICUDATA_LIB-$ICU_LIB_DIR/libicudata.a}"
9141          LIBS="$LIBS $ICUUC_LIB $ICUDATA_LIB -lstdc++ -lgcc_s"
9142          cat >conftest.$ac_ext <<_ACEOF
9143 #line $LINENO "configure"
9144 /* confdefs.h.  */
9145 _ACEOF
9146 cat confdefs.h >>conftest.$ac_ext
9147 cat >>conftest.$ac_ext <<_ACEOF
9148 /* end confdefs.h.  */
9149 #include <unicode/ubidi.h>
9150 int
9151 main ()
9152 {
9153 ubidi_open()
9154   ;
9155   return 0;
9156 }
9157 _ACEOF
9158 rm -f conftest.$ac_objext conftest$ac_exeext
9159 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9160   (eval $ac_link) 2>&5
9161   ac_status=$?
9162   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9163   (exit $ac_status); } &&
9164          { ac_try='test -s conftest$ac_exeext'
9165   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9166   (eval $ac_try) 2>&5
9167   ac_status=$?
9168   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9169   (exit $ac_status); }; }; then
9170   ac_cv_lib_icu="yes"
9171 else
9172   echo "$as_me: failed program was:" >&5
9173 sed 's/^/| /' conftest.$ac_ext >&5
9174
9175 ac_cv_lib_icu="no"
9176 fi
9177 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9178         LIBS="$saved_libs"
9179 fi
9180 echo "$as_me:$LINENO: result: $ac_cv_lib_icu" >&5
9181 echo "${ECHO_T}$ac_cv_lib_icu" >&6
9182     if test "$ac_cv_lib_icu" = "yes"
9183     then
9184
9185 cat >>confdefs.h <<\_ACEOF
9186 #define HAVE_ICU 1
9187 _ACEOF
9188
9189         ICULIBS="$ICUUC_LIB $ICUDATA_LIB -lstdc++ -lgcc_s"
9190
9191     fi
9192 fi
9193
9194 echo "$as_me:$LINENO: checking for FT_Init_FreeType in -lfreetype" >&5
9195 echo $ECHO_N "checking for FT_Init_FreeType in -lfreetype... $ECHO_C" >&6
9196 if test "${ac_cv_lib_freetype_FT_Init_FreeType+set}" = set; then
9197   echo $ECHO_N "(cached) $ECHO_C" >&6
9198 else
9199   ac_check_lib_save_LIBS=$LIBS
9200 LIBS="-lfreetype $X_LIBS $LIBS"
9201 cat >conftest.$ac_ext <<_ACEOF
9202 #line $LINENO "configure"
9203 /* confdefs.h.  */
9204 _ACEOF
9205 cat confdefs.h >>conftest.$ac_ext
9206 cat >>conftest.$ac_ext <<_ACEOF
9207 /* end confdefs.h.  */
9208
9209 /* Override any gcc2 internal prototype to avoid an error.  */
9210 #ifdef __cplusplus
9211 extern "C"
9212 #endif
9213 /* We use char because int might match the return type of a gcc2
9214    builtin and then its argument prototype would still apply.  */
9215 char FT_Init_FreeType ();
9216 int
9217 main ()
9218 {
9219 FT_Init_FreeType ();
9220   ;
9221   return 0;
9222 }
9223 _ACEOF
9224 rm -f conftest.$ac_objext conftest$ac_exeext
9225 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9226   (eval $ac_link) 2>&5
9227   ac_status=$?
9228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9229   (exit $ac_status); } &&
9230          { ac_try='test -s conftest$ac_exeext'
9231   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9232   (eval $ac_try) 2>&5
9233   ac_status=$?
9234   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9235   (exit $ac_status); }; }; then
9236   ac_cv_lib_freetype_FT_Init_FreeType=yes
9237 else
9238   echo "$as_me: failed program was:" >&5
9239 sed 's/^/| /' conftest.$ac_ext >&5
9240
9241 ac_cv_lib_freetype_FT_Init_FreeType=no
9242 fi
9243 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9244 LIBS=$ac_check_lib_save_LIBS
9245 fi
9246 echo "$as_me:$LINENO: result: $ac_cv_lib_freetype_FT_Init_FreeType" >&5
9247 echo "${ECHO_T}$ac_cv_lib_freetype_FT_Init_FreeType" >&6
9248 if test $ac_cv_lib_freetype_FT_Init_FreeType = yes; then
9249   ft_lib=yes
9250 else
9251   ft_lib=no
9252 fi
9253
9254 if test "$ft_lib" = "no"
9255 then
9256     FREETYPEINCL=""
9257     wine_cv_msg_freetype=no
9258 else
9259     # Extract the first word of "freetype-config", so it can be a program name with args.
9260 set dummy freetype-config; ac_word=$2
9261 echo "$as_me:$LINENO: checking for $ac_word" >&5
9262 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9263 if test "${ac_cv_prog_ft_devel+set}" = set; then
9264   echo $ECHO_N "(cached) $ECHO_C" >&6
9265 else
9266   if test -n "$ft_devel"; then
9267   ac_cv_prog_ft_devel="$ft_devel" # Let the user override the test.
9268 else
9269 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9270 for as_dir in $PATH
9271 do
9272   IFS=$as_save_IFS
9273   test -z "$as_dir" && as_dir=.
9274   for ac_exec_ext in '' $ac_executable_extensions; do
9275   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9276     ac_cv_prog_ft_devel="freetype-config"
9277     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9278     break 2
9279   fi
9280 done
9281 done
9282
9283   test -z "$ac_cv_prog_ft_devel" && ac_cv_prog_ft_devel="no"
9284 fi
9285 fi
9286 ft_devel=$ac_cv_prog_ft_devel
9287 if test -n "$ft_devel"; then
9288   echo "$as_me:$LINENO: result: $ft_devel" >&5
9289 echo "${ECHO_T}$ft_devel" >&6
9290 else
9291   echo "$as_me:$LINENO: result: no" >&5
9292 echo "${ECHO_T}no" >&6
9293 fi
9294
9295     if test "$ft_devel" = "no"
9296     then
9297         # Extract the first word of "freetype2-config", so it can be a program name with args.
9298 set dummy freetype2-config; ac_word=$2
9299 echo "$as_me:$LINENO: checking for $ac_word" >&5
9300 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9301 if test "${ac_cv_prog_ft_devel2+set}" = set; then
9302   echo $ECHO_N "(cached) $ECHO_C" >&6
9303 else
9304   if test -n "$ft_devel2"; then
9305   ac_cv_prog_ft_devel2="$ft_devel2" # Let the user override the test.
9306 else
9307 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9308 for as_dir in $PATH
9309 do
9310   IFS=$as_save_IFS
9311   test -z "$as_dir" && as_dir=.
9312   for ac_exec_ext in '' $ac_executable_extensions; do
9313   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9314     ac_cv_prog_ft_devel2="freetype2-config"
9315     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9316     break 2
9317   fi
9318 done
9319 done
9320
9321   test -z "$ac_cv_prog_ft_devel2" && ac_cv_prog_ft_devel2="no"
9322 fi
9323 fi
9324 ft_devel2=$ac_cv_prog_ft_devel2
9325 if test -n "$ft_devel2"; then
9326   echo "$as_me:$LINENO: result: $ft_devel2" >&5
9327 echo "${ECHO_T}$ft_devel2" >&6
9328 else
9329   echo "$as_me:$LINENO: result: no" >&5
9330 echo "${ECHO_T}no" >&6
9331 fi
9332
9333         if test "$ft_devel2" = "freetype2-config"
9334         then
9335                 ft_devel=$ft_devel2
9336         fi
9337     fi
9338     if test "$ft_devel" = "no"
9339     then
9340         FREETYPEINCL=""
9341         wine_cv_msg_freetype=yes
9342     else
9343         FREETYPEINCL=`$ft_devel --cflags`
9344         ac_save_CPPFLAGS="$CPPFLAGS"
9345         CPPFLAGS="$FREETYPEINCL $CPPFLAGS"
9346
9347
9348
9349
9350
9351
9352
9353
9354 for ac_header in freetype/freetype.h \
9355                          freetype/ftglyph.h \
9356                          freetype/tttables.h \
9357                          freetype/ftnames.h \
9358                          freetype/ftsnames.h \
9359                          freetype/ttnameid.h \
9360                          freetype/ftoutln.h \
9361                          freetype/internal/sfnt.h
9362 do
9363 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9364 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9365   echo "$as_me:$LINENO: checking for $ac_header" >&5
9366 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9367 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9368   echo $ECHO_N "(cached) $ECHO_C" >&6
9369 fi
9370 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9371 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9372 else
9373   # Is the header compilable?
9374 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9375 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9376 cat >conftest.$ac_ext <<_ACEOF
9377 #line $LINENO "configure"
9378 /* confdefs.h.  */
9379 _ACEOF
9380 cat confdefs.h >>conftest.$ac_ext
9381 cat >>conftest.$ac_ext <<_ACEOF
9382 /* end confdefs.h.  */
9383 $ac_includes_default
9384 #include <$ac_header>
9385 _ACEOF
9386 rm -f conftest.$ac_objext
9387 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9388   (eval $ac_compile) 2>&5
9389   ac_status=$?
9390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9391   (exit $ac_status); } &&
9392          { ac_try='test -s conftest.$ac_objext'
9393   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9394   (eval $ac_try) 2>&5
9395   ac_status=$?
9396   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9397   (exit $ac_status); }; }; then
9398   ac_header_compiler=yes
9399 else
9400   echo "$as_me: failed program was:" >&5
9401 sed 's/^/| /' conftest.$ac_ext >&5
9402
9403 ac_header_compiler=no
9404 fi
9405 rm -f conftest.$ac_objext conftest.$ac_ext
9406 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9407 echo "${ECHO_T}$ac_header_compiler" >&6
9408
9409 # Is the header present?
9410 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9411 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9412 cat >conftest.$ac_ext <<_ACEOF
9413 #line $LINENO "configure"
9414 /* confdefs.h.  */
9415 _ACEOF
9416 cat confdefs.h >>conftest.$ac_ext
9417 cat >>conftest.$ac_ext <<_ACEOF
9418 /* end confdefs.h.  */
9419 #include <$ac_header>
9420 _ACEOF
9421 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9422   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9423   ac_status=$?
9424   grep -v '^ *+' conftest.er1 >conftest.err
9425   rm -f conftest.er1
9426   cat conftest.err >&5
9427   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9428   (exit $ac_status); } >/dev/null; then
9429   if test -s conftest.err; then
9430     ac_cpp_err=$ac_c_preproc_warn_flag
9431   else
9432     ac_cpp_err=
9433   fi
9434 else
9435   ac_cpp_err=yes
9436 fi
9437 if test -z "$ac_cpp_err"; then
9438   ac_header_preproc=yes
9439 else
9440   echo "$as_me: failed program was:" >&5
9441 sed 's/^/| /' conftest.$ac_ext >&5
9442
9443   ac_header_preproc=no
9444 fi
9445 rm -f conftest.err conftest.$ac_ext
9446 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9447 echo "${ECHO_T}$ac_header_preproc" >&6
9448
9449 # So?  What about this header?
9450 case $ac_header_compiler:$ac_header_preproc in
9451   yes:no )
9452     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9453 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9454     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9455 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9456     (
9457       cat <<\_ASBOX
9458 ## ------------------------------------ ##
9459 ## Report this to bug-autoconf@gnu.org. ##
9460 ## ------------------------------------ ##
9461 _ASBOX
9462     ) |
9463       sed "s/^/$as_me: WARNING:     /" >&2
9464     ;;
9465   no:yes )
9466     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9467 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9468     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9469 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9470     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9471 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9472     (
9473       cat <<\_ASBOX
9474 ## ------------------------------------ ##
9475 ## Report this to bug-autoconf@gnu.org. ##
9476 ## ------------------------------------ ##
9477 _ASBOX
9478     ) |
9479       sed "s/^/$as_me: WARNING:     /" >&2
9480     ;;
9481 esac
9482 echo "$as_me:$LINENO: checking for $ac_header" >&5
9483 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9484 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9485   echo $ECHO_N "(cached) $ECHO_C" >&6
9486 else
9487   eval "$as_ac_Header=$ac_header_preproc"
9488 fi
9489 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9490 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9491
9492 fi
9493 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9494   cat >>confdefs.h <<_ACEOF
9495 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9496 _ACEOF
9497
9498 fi
9499
9500 done
9501
9502         cat >conftest.$ac_ext <<_ACEOF
9503 #line $LINENO "configure"
9504 /* confdefs.h.  */
9505 _ACEOF
9506 cat confdefs.h >>conftest.$ac_ext
9507 cat >>conftest.$ac_ext <<_ACEOF
9508 /* end confdefs.h.  */
9509 #include <ft2build.h>
9510                     #include <freetype/fttrigon.h>
9511 _ACEOF
9512 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9513   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9514   ac_status=$?
9515   grep -v '^ *+' conftest.er1 >conftest.err
9516   rm -f conftest.er1
9517   cat conftest.err >&5
9518   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9519   (exit $ac_status); } >/dev/null; then
9520   if test -s conftest.err; then
9521     ac_cpp_err=$ac_c_preproc_warn_flag
9522   else
9523     ac_cpp_err=
9524   fi
9525 else
9526   ac_cpp_err=yes
9527 fi
9528 if test -z "$ac_cpp_err"; then
9529
9530 cat >>confdefs.h <<\_ACEOF
9531 #define HAVE_FREETYPE_FTTRIGON_H 1
9532 _ACEOF
9533
9534                     wine_cv_fttrigon=yes
9535 else
9536   echo "$as_me: failed program was:" >&5
9537 sed 's/^/| /' conftest.$ac_ext >&5
9538
9539   wine_cv_fttrigon=no
9540 fi
9541 rm -f conftest.err conftest.$ac_ext
9542         CPPFLAGS="$ac_save_CPPFLAGS"
9543                 if test "$ac_cv_header_freetype_freetype_h" = "yes" -a "$wine_cv_fttrigon" = "yes"
9544         then
9545
9546 cat >>confdefs.h <<\_ACEOF
9547 #define HAVE_FREETYPE 1
9548 _ACEOF
9549
9550             wine_cv_msg_freetype=no
9551         else
9552             FREETYPEINCL=""
9553             wine_cv_msg_freetype=yes
9554         fi
9555     fi
9556 fi
9557
9558
9559 echo "$as_me:$LINENO: checking for parport header/ppdev.h" >&5
9560 echo $ECHO_N "checking for parport header/ppdev.h... $ECHO_C" >&6
9561 if test "${ac_cv_c_ppdev+set}" = set; then
9562   echo $ECHO_N "(cached) $ECHO_C" >&6
9563 else
9564   cat >conftest.$ac_ext <<_ACEOF
9565 #line $LINENO "configure"
9566 /* confdefs.h.  */
9567 _ACEOF
9568 cat confdefs.h >>conftest.$ac_ext
9569 cat >>conftest.$ac_ext <<_ACEOF
9570 /* end confdefs.h.  */
9571 #include <linux/ppdev.h>
9572 int
9573 main ()
9574 {
9575 ioctl (1,PPCLAIM,0)
9576   ;
9577   return 0;
9578 }
9579 _ACEOF
9580 rm -f conftest.$ac_objext
9581 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9582   (eval $ac_compile) 2>&5
9583   ac_status=$?
9584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9585   (exit $ac_status); } &&
9586          { ac_try='test -s conftest.$ac_objext'
9587   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9588   (eval $ac_try) 2>&5
9589   ac_status=$?
9590   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9591   (exit $ac_status); }; }; then
9592   ac_cv_c_ppdev="yes"
9593 else
9594   echo "$as_me: failed program was:" >&5
9595 sed 's/^/| /' conftest.$ac_ext >&5
9596
9597 ac_cv_c_ppdev="no"
9598 fi
9599 rm -f conftest.$ac_objext conftest.$ac_ext
9600
9601 fi
9602 echo "$as_me:$LINENO: result: $ac_cv_c_ppdev" >&5
9603 echo "${ECHO_T}$ac_cv_c_ppdev" >&6
9604 if test "$ac_cv_c_ppdev" = "yes"
9605 then
9606
9607 cat >>confdefs.h <<\_ACEOF
9608 #define HAVE_PPDEV 1
9609 _ACEOF
9610
9611 fi
9612
9613 echo "$as_me:$LINENO: checking for va_copy" >&5
9614 echo $ECHO_N "checking for va_copy... $ECHO_C" >&6
9615 if test "${ac_cv_c_va_copy+set}" = set; then
9616   echo $ECHO_N "(cached) $ECHO_C" >&6
9617 else
9618   cat >conftest.$ac_ext <<_ACEOF
9619 #line $LINENO "configure"
9620 /* confdefs.h.  */
9621 _ACEOF
9622 cat confdefs.h >>conftest.$ac_ext
9623 cat >>conftest.$ac_ext <<_ACEOF
9624 /* end confdefs.h.  */
9625 #include <stdarg.h>
9626 int
9627 main ()
9628 {
9629 va_list ap1, ap2;
9630     va_copy(ap1,ap2);
9631
9632   ;
9633   return 0;
9634 }
9635 _ACEOF
9636 rm -f conftest.$ac_objext conftest$ac_exeext
9637 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9638   (eval $ac_link) 2>&5
9639   ac_status=$?
9640   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9641   (exit $ac_status); } &&
9642          { ac_try='test -s conftest$ac_exeext'
9643   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9644   (eval $ac_try) 2>&5
9645   ac_status=$?
9646   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9647   (exit $ac_status); }; }; then
9648   ac_cv_c_va_copy="yes"
9649 else
9650   echo "$as_me: failed program was:" >&5
9651 sed 's/^/| /' conftest.$ac_ext >&5
9652
9653 ac_cv_c_va_copy="no"
9654 fi
9655 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9656
9657 fi
9658 echo "$as_me:$LINENO: result: $ac_cv_c_va_copy" >&5
9659 echo "${ECHO_T}$ac_cv_c_va_copy" >&6
9660 if test "$ac_cv_c_va_copy" = "yes"
9661 then
9662
9663 cat >>confdefs.h <<\_ACEOF
9664 #define HAVE_VA_COPY 1
9665 _ACEOF
9666
9667 fi
9668 echo "$as_me:$LINENO: checking for __va_copy" >&5
9669 echo $ECHO_N "checking for __va_copy... $ECHO_C" >&6
9670 if test "${ac_cv_c___va_copy+set}" = set; then
9671   echo $ECHO_N "(cached) $ECHO_C" >&6
9672 else
9673   cat >conftest.$ac_ext <<_ACEOF
9674 #line $LINENO "configure"
9675 /* confdefs.h.  */
9676 _ACEOF
9677 cat confdefs.h >>conftest.$ac_ext
9678 cat >>conftest.$ac_ext <<_ACEOF
9679 /* end confdefs.h.  */
9680 #include <stdarg.h>
9681 int
9682 main ()
9683 {
9684 va_list ap1, ap2;
9685     __va_copy(ap1,ap2);
9686
9687   ;
9688   return 0;
9689 }
9690 _ACEOF
9691 rm -f conftest.$ac_objext conftest$ac_exeext
9692 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9693   (eval $ac_link) 2>&5
9694   ac_status=$?
9695   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9696   (exit $ac_status); } &&
9697          { ac_try='test -s conftest$ac_exeext'
9698   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9699   (eval $ac_try) 2>&5
9700   ac_status=$?
9701   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9702   (exit $ac_status); }; }; then
9703   ac_cv_c___va_copy="yes"
9704 else
9705   echo "$as_me: failed program was:" >&5
9706 sed 's/^/| /' conftest.$ac_ext >&5
9707
9708 ac_cv_c___va_copy="no"
9709 fi
9710 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9711
9712 fi
9713 echo "$as_me:$LINENO: result: $ac_cv_c___va_copy" >&5
9714 echo "${ECHO_T}$ac_cv_c___va_copy" >&6
9715 if test "$ac_cv_c___va_copy" = "yes"
9716 then
9717
9718 cat >>confdefs.h <<\_ACEOF
9719 #define HAVE___VA_COPY 1
9720 _ACEOF
9721
9722 fi
9723
9724 echo "$as_me:$LINENO: checking for pthread_rwlock_t" >&5
9725 echo $ECHO_N "checking for pthread_rwlock_t... $ECHO_C" >&6
9726 if test "${ac_cv_type_pthread_rwlock_t+set}" = set; then
9727   echo $ECHO_N "(cached) $ECHO_C" >&6
9728 else
9729   cat >conftest.$ac_ext <<_ACEOF
9730 #line $LINENO "configure"
9731 /* confdefs.h.  */
9732 _ACEOF
9733 cat confdefs.h >>conftest.$ac_ext
9734 cat >>conftest.$ac_ext <<_ACEOF
9735 /* end confdefs.h.  */
9736 #define _GNU_SOURCE
9737 #include <pthread.h>
9738
9739 int
9740 main ()
9741 {
9742 if ((pthread_rwlock_t *) 0)
9743   return 0;
9744 if (sizeof (pthread_rwlock_t))
9745   return 0;
9746   ;
9747   return 0;
9748 }
9749 _ACEOF
9750 rm -f conftest.$ac_objext
9751 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9752   (eval $ac_compile) 2>&5
9753   ac_status=$?
9754   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9755   (exit $ac_status); } &&
9756          { ac_try='test -s conftest.$ac_objext'
9757   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9758   (eval $ac_try) 2>&5
9759   ac_status=$?
9760   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9761   (exit $ac_status); }; }; then
9762   ac_cv_type_pthread_rwlock_t=yes
9763 else
9764   echo "$as_me: failed program was:" >&5
9765 sed 's/^/| /' conftest.$ac_ext >&5
9766
9767 ac_cv_type_pthread_rwlock_t=no
9768 fi
9769 rm -f conftest.$ac_objext conftest.$ac_ext
9770 fi
9771 echo "$as_me:$LINENO: result: $ac_cv_type_pthread_rwlock_t" >&5
9772 echo "${ECHO_T}$ac_cv_type_pthread_rwlock_t" >&6
9773 if test $ac_cv_type_pthread_rwlock_t = yes; then
9774
9775 cat >>confdefs.h <<_ACEOF
9776 #define HAVE_PTHREAD_RWLOCK_T 1
9777 _ACEOF
9778
9779
9780 fi
9781 echo "$as_me:$LINENO: checking for pthread_rwlockattr_t" >&5
9782 echo $ECHO_N "checking for pthread_rwlockattr_t... $ECHO_C" >&6
9783 if test "${ac_cv_type_pthread_rwlockattr_t+set}" = set; then
9784   echo $ECHO_N "(cached) $ECHO_C" >&6
9785 else
9786   cat >conftest.$ac_ext <<_ACEOF
9787 #line $LINENO "configure"
9788 /* confdefs.h.  */
9789 _ACEOF
9790 cat confdefs.h >>conftest.$ac_ext
9791 cat >>conftest.$ac_ext <<_ACEOF
9792 /* end confdefs.h.  */
9793 #define _GNU_SOURCE
9794 #include <pthread.h>
9795
9796 int
9797 main ()
9798 {
9799 if ((pthread_rwlockattr_t *) 0)
9800   return 0;
9801 if (sizeof (pthread_rwlockattr_t))
9802   return 0;
9803   ;
9804   return 0;
9805 }
9806 _ACEOF
9807 rm -f conftest.$ac_objext
9808 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9809   (eval $ac_compile) 2>&5
9810   ac_status=$?
9811   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9812   (exit $ac_status); } &&
9813          { ac_try='test -s conftest.$ac_objext'
9814   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9815   (eval $ac_try) 2>&5
9816   ac_status=$?
9817   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9818   (exit $ac_status); }; }; then
9819   ac_cv_type_pthread_rwlockattr_t=yes
9820 else
9821   echo "$as_me: failed program was:" >&5
9822 sed 's/^/| /' conftest.$ac_ext >&5
9823
9824 ac_cv_type_pthread_rwlockattr_t=no
9825 fi
9826 rm -f conftest.$ac_objext conftest.$ac_ext
9827 fi
9828 echo "$as_me:$LINENO: result: $ac_cv_type_pthread_rwlockattr_t" >&5
9829 echo "${ECHO_T}$ac_cv_type_pthread_rwlockattr_t" >&6
9830 if test $ac_cv_type_pthread_rwlockattr_t = yes; then
9831
9832 cat >>confdefs.h <<_ACEOF
9833 #define HAVE_PTHREAD_RWLOCKATTR_T 1
9834 _ACEOF
9835
9836
9837 fi
9838
9839
9840
9841
9842
9843 for ac_header in sys/soundcard.h machine/soundcard.h soundcard.h
9844 do
9845 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9846 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9847   echo "$as_me:$LINENO: checking for $ac_header" >&5
9848 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9849 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9850   echo $ECHO_N "(cached) $ECHO_C" >&6
9851 fi
9852 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9853 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9854 else
9855   # Is the header compilable?
9856 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9857 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9858 cat >conftest.$ac_ext <<_ACEOF
9859 #line $LINENO "configure"
9860 /* confdefs.h.  */
9861 _ACEOF
9862 cat confdefs.h >>conftest.$ac_ext
9863 cat >>conftest.$ac_ext <<_ACEOF
9864 /* end confdefs.h.  */
9865 $ac_includes_default
9866 #include <$ac_header>
9867 _ACEOF
9868 rm -f conftest.$ac_objext
9869 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9870   (eval $ac_compile) 2>&5
9871   ac_status=$?
9872   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9873   (exit $ac_status); } &&
9874          { ac_try='test -s conftest.$ac_objext'
9875   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9876   (eval $ac_try) 2>&5
9877   ac_status=$?
9878   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9879   (exit $ac_status); }; }; then
9880   ac_header_compiler=yes
9881 else
9882   echo "$as_me: failed program was:" >&5
9883 sed 's/^/| /' conftest.$ac_ext >&5
9884
9885 ac_header_compiler=no
9886 fi
9887 rm -f conftest.$ac_objext conftest.$ac_ext
9888 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9889 echo "${ECHO_T}$ac_header_compiler" >&6
9890
9891 # Is the header present?
9892 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9893 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9894 cat >conftest.$ac_ext <<_ACEOF
9895 #line $LINENO "configure"
9896 /* confdefs.h.  */
9897 _ACEOF
9898 cat confdefs.h >>conftest.$ac_ext
9899 cat >>conftest.$ac_ext <<_ACEOF
9900 /* end confdefs.h.  */
9901 #include <$ac_header>
9902 _ACEOF
9903 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9904   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9905   ac_status=$?
9906   grep -v '^ *+' conftest.er1 >conftest.err
9907   rm -f conftest.er1
9908   cat conftest.err >&5
9909   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9910   (exit $ac_status); } >/dev/null; then
9911   if test -s conftest.err; then
9912     ac_cpp_err=$ac_c_preproc_warn_flag
9913   else
9914     ac_cpp_err=
9915   fi
9916 else
9917   ac_cpp_err=yes
9918 fi
9919 if test -z "$ac_cpp_err"; then
9920   ac_header_preproc=yes
9921 else
9922   echo "$as_me: failed program was:" >&5
9923 sed 's/^/| /' conftest.$ac_ext >&5
9924
9925   ac_header_preproc=no
9926 fi
9927 rm -f conftest.err conftest.$ac_ext
9928 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9929 echo "${ECHO_T}$ac_header_preproc" >&6
9930
9931 # So?  What about this header?
9932 case $ac_header_compiler:$ac_header_preproc in
9933   yes:no )
9934     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9935 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9936     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9937 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9938     (
9939       cat <<\_ASBOX
9940 ## ------------------------------------ ##
9941 ## Report this to bug-autoconf@gnu.org. ##
9942 ## ------------------------------------ ##
9943 _ASBOX
9944     ) |
9945       sed "s/^/$as_me: WARNING:     /" >&2
9946     ;;
9947   no:yes )
9948     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9949 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9950     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9951 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9952     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9953 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9954     (
9955       cat <<\_ASBOX
9956 ## ------------------------------------ ##
9957 ## Report this to bug-autoconf@gnu.org. ##
9958 ## ------------------------------------ ##
9959 _ASBOX
9960     ) |
9961       sed "s/^/$as_me: WARNING:     /" >&2
9962     ;;
9963 esac
9964 echo "$as_me:$LINENO: checking for $ac_header" >&5
9965 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9966 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9967   echo $ECHO_N "(cached) $ECHO_C" >&6
9968 else
9969   eval "$as_ac_Header=$ac_header_preproc"
9970 fi
9971 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9972 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9973
9974 fi
9975 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9976   cat >>confdefs.h <<_ACEOF
9977 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9978 _ACEOF
9979  break
9980 fi
9981
9982 done
9983
9984
9985 echo "$as_me:$LINENO: checking for Open Sound System" >&5
9986 echo $ECHO_N "checking for Open Sound System... $ECHO_C" >&6
9987 if test "${ac_cv_c_opensoundsystem+set}" = set; then
9988   echo $ECHO_N "(cached) $ECHO_C" >&6
9989 else
9990   cat >conftest.$ac_ext <<_ACEOF
9991 #line $LINENO "configure"
9992 /* confdefs.h.  */
9993 _ACEOF
9994 cat confdefs.h >>conftest.$ac_ext
9995 cat >>conftest.$ac_ext <<_ACEOF
9996 /* end confdefs.h.  */
9997
9998         #if defined(HAVE_SYS_SOUNDCARD_H)
9999                 #include <sys/soundcard.h>
10000         #elif defined(HAVE_MACHINE_SOUNDCARD_H)
10001                 #include <machine/soundcard.h>
10002         #elif defined(HAVE_SOUNDCARD_H)
10003                 #include <soundcard.h>
10004         #endif
10005
10006 int
10007 main ()
10008 {
10009
10010
10011 /* check for one of the Open Sound System specific SNDCTL_ defines */
10012 #if !defined(SNDCTL_DSP_STEREO)
10013 #error No open sound system
10014 #endif
10015
10016   ;
10017   return 0;
10018 }
10019 _ACEOF
10020 rm -f conftest.$ac_objext
10021 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10022   (eval $ac_compile) 2>&5
10023   ac_status=$?
10024   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10025   (exit $ac_status); } &&
10026          { ac_try='test -s conftest.$ac_objext'
10027   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10028   (eval $ac_try) 2>&5
10029   ac_status=$?
10030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10031   (exit $ac_status); }; }; then
10032   ac_cv_c_opensoundsystem="yes"
10033 else
10034   echo "$as_me: failed program was:" >&5
10035 sed 's/^/| /' conftest.$ac_ext >&5
10036
10037 ac_cv_c_opensoundsystem="no"
10038 fi
10039 rm -f conftest.$ac_objext conftest.$ac_ext
10040 fi
10041 echo "$as_me:$LINENO: result: $ac_cv_c_opensoundsystem" >&5
10042 echo "${ECHO_T}$ac_cv_c_opensoundsystem" >&6
10043
10044 if test "$ac_cv_c_opensoundsystem" = "yes"
10045 then
10046
10047 cat >>confdefs.h <<\_ACEOF
10048 #define HAVE_OSS 1
10049 _ACEOF
10050
10051 fi
10052
10053 echo "$as_me:$LINENO: checking for Open Sound System/MIDI interface" >&5
10054 echo $ECHO_N "checking for Open Sound System/MIDI interface... $ECHO_C" >&6
10055 if test "${ac_cv_c_opensoundsystem_midi+set}" = set; then
10056   echo $ECHO_N "(cached) $ECHO_C" >&6
10057 else
10058   cat >conftest.$ac_ext <<_ACEOF
10059 #line $LINENO "configure"
10060 /* confdefs.h.  */
10061 _ACEOF
10062 cat confdefs.h >>conftest.$ac_ext
10063 cat >>conftest.$ac_ext <<_ACEOF
10064 /* end confdefs.h.  */
10065
10066         #if defined(HAVE_SYS_SOUNDCARD_H)
10067                 #include <sys/soundcard.h>
10068         #elif defined(HAVE_MACHINE_SOUNDCARD_H)
10069                 #include <machine/soundcard.h>
10070         #elif defined(HAVE_SOUNDCARD_H)
10071                 #include <soundcard.h>
10072         #endif
10073
10074 int
10075 main ()
10076 {
10077
10078
10079 /* check for one of the Open Sound System specific SNDCTL_SEQ defines */
10080 #if !defined(SNDCTL_SEQ_SYNC)
10081 #error No open sound system MIDI interface
10082 #endif
10083
10084   ;
10085   return 0;
10086 }
10087 _ACEOF
10088 rm -f conftest.$ac_objext
10089 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10090   (eval $ac_compile) 2>&5
10091   ac_status=$?
10092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10093   (exit $ac_status); } &&
10094          { ac_try='test -s conftest.$ac_objext'
10095   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10096   (eval $ac_try) 2>&5
10097   ac_status=$?
10098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10099   (exit $ac_status); }; }; then
10100   ac_cv_c_opensoundsystem_midi="yes"
10101 else
10102   echo "$as_me: failed program was:" >&5
10103 sed 's/^/| /' conftest.$ac_ext >&5
10104
10105 ac_cv_c_opensoundsystem_midi="no"
10106 fi
10107 rm -f conftest.$ac_objext conftest.$ac_ext
10108 fi
10109 echo "$as_me:$LINENO: result: $ac_cv_c_opensoundsystem_midi" >&5
10110 echo "${ECHO_T}$ac_cv_c_opensoundsystem_midi" >&6
10111
10112 if test "$ac_cv_c_opensoundsystem_midi" = "yes"
10113 then
10114
10115 cat >>confdefs.h <<\_ACEOF
10116 #define HAVE_OSS_MIDI 1
10117 _ACEOF
10118
10119 fi
10120
10121 # Extract the first word of "artsc-config", so it can be a program name with args.
10122 set dummy artsc-config; ac_word=$2
10123 echo "$as_me:$LINENO: checking for $ac_word" >&5
10124 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10125 if test "${ac_cv_path_ARTSCCONFIG+set}" = set; then
10126   echo $ECHO_N "(cached) $ECHO_C" >&6
10127 else
10128   case $ARTSCCONFIG in
10129   [\\/]* | ?:[\\/]*)
10130   ac_cv_path_ARTSCCONFIG="$ARTSCCONFIG" # Let the user override the test with a path.
10131   ;;
10132   *)
10133   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10134 for as_dir in $PATH
10135 do
10136   IFS=$as_save_IFS
10137   test -z "$as_dir" && as_dir=.
10138   for ac_exec_ext in '' $ac_executable_extensions; do
10139   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10140     ac_cv_path_ARTSCCONFIG="$as_dir/$ac_word$ac_exec_ext"
10141     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10142     break 2
10143   fi
10144 done
10145 done
10146
10147   ;;
10148 esac
10149 fi
10150 ARTSCCONFIG=$ac_cv_path_ARTSCCONFIG
10151
10152 if test -n "$ARTSCCONFIG"; then
10153   echo "$as_me:$LINENO: result: $ARTSCCONFIG" >&5
10154 echo "${ECHO_T}$ARTSCCONFIG" >&6
10155 else
10156   echo "$as_me:$LINENO: result: no" >&5
10157 echo "${ECHO_T}no" >&6
10158 fi
10159
10160 echo "$as_me:$LINENO: checking for aRts Sound server" >&5
10161 echo $ECHO_N "checking for aRts Sound server... $ECHO_C" >&6
10162 if test "${ac_cv_c_artsserver+set}" = set; then
10163   echo $ECHO_N "(cached) $ECHO_C" >&6
10164 else
10165   if test x$ARTSCCONFIG = x -o x$ARTSCCONFIG = x'"$ARTSCCONFIG"';
10166         then
10167             ac_cv_c_artsserver=no
10168         else
10169             ARTSC_CFLAGS=`$ARTSCCONFIG --cflags`
10170             ARTSC_LIBS=`$ARTSCCONFIG --libs`
10171             ac_cv_c_artsserver=no
10172             save_CFLAGS="$CFLAGS"
10173             CFLAGS="$CFLAGS $ARTSC_CFLAGS"
10174             cat >conftest.$ac_ext <<_ACEOF
10175 #line $LINENO "configure"
10176 /* confdefs.h.  */
10177 _ACEOF
10178 cat confdefs.h >>conftest.$ac_ext
10179 cat >>conftest.$ac_ext <<_ACEOF
10180 /* end confdefs.h.  */
10181
10182              #include <artsc.h>
10183
10184 int
10185 main ()
10186 {
10187
10188              arts_stream_t stream;
10189
10190   ;
10191   return 0;
10192 }
10193 _ACEOF
10194 rm -f conftest.$ac_objext
10195 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10196   (eval $ac_compile) 2>&5
10197   ac_status=$?
10198   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10199   (exit $ac_status); } &&
10200          { ac_try='test -s conftest.$ac_objext'
10201   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10202   (eval $ac_try) 2>&5
10203   ac_status=$?
10204   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10205   (exit $ac_status); }; }; then
10206
10207             ac_cv_c_artsserver=yes
10208
10209 else
10210   echo "$as_me: failed program was:" >&5
10211 sed 's/^/| /' conftest.$ac_ext >&5
10212
10213 fi
10214 rm -f conftest.$ac_objext conftest.$ac_ext
10215             CFLAGS="$save_CFLAGS"
10216         fi
10217 fi
10218 echo "$as_me:$LINENO: result: $ac_cv_c_artsserver" >&5
10219 echo "${ECHO_T}$ac_cv_c_artsserver" >&6
10220
10221 if test "$ac_cv_c_artsserver" = "yes"
10222 then
10223     ARTSLIBS=$ARTSC_LIBS
10224
10225     ARTSINCL=$ARTSC_CFLAGS
10226
10227
10228
10229 cat >>confdefs.h <<\_ACEOF
10230 #define HAVE_ARTS 1
10231 _ACEOF
10232
10233 fi
10234
10235 ALSALIBS=""
10236
10237
10238
10239 for ac_header in alsa/asoundlib.h sys/asoundlib.h
10240 do
10241 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10242 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10243   echo "$as_me:$LINENO: checking for $ac_header" >&5
10244 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10245 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10246   echo $ECHO_N "(cached) $ECHO_C" >&6
10247 fi
10248 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10249 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10250 else
10251   # Is the header compilable?
10252 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10253 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10254 cat >conftest.$ac_ext <<_ACEOF
10255 #line $LINENO "configure"
10256 /* confdefs.h.  */
10257 _ACEOF
10258 cat confdefs.h >>conftest.$ac_ext
10259 cat >>conftest.$ac_ext <<_ACEOF
10260 /* end confdefs.h.  */
10261 $ac_includes_default
10262 #include <$ac_header>
10263 _ACEOF
10264 rm -f conftest.$ac_objext
10265 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10266   (eval $ac_compile) 2>&5
10267   ac_status=$?
10268   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10269   (exit $ac_status); } &&
10270          { ac_try='test -s conftest.$ac_objext'
10271   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10272   (eval $ac_try) 2>&5
10273   ac_status=$?
10274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10275   (exit $ac_status); }; }; then
10276   ac_header_compiler=yes
10277 else
10278   echo "$as_me: failed program was:" >&5
10279 sed 's/^/| /' conftest.$ac_ext >&5
10280
10281 ac_header_compiler=no
10282 fi
10283 rm -f conftest.$ac_objext conftest.$ac_ext
10284 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10285 echo "${ECHO_T}$ac_header_compiler" >&6
10286
10287 # Is the header present?
10288 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10289 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10290 cat >conftest.$ac_ext <<_ACEOF
10291 #line $LINENO "configure"
10292 /* confdefs.h.  */
10293 _ACEOF
10294 cat confdefs.h >>conftest.$ac_ext
10295 cat >>conftest.$ac_ext <<_ACEOF
10296 /* end confdefs.h.  */
10297 #include <$ac_header>
10298 _ACEOF
10299 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10300   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10301   ac_status=$?
10302   grep -v '^ *+' conftest.er1 >conftest.err
10303   rm -f conftest.er1
10304   cat conftest.err >&5
10305   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10306   (exit $ac_status); } >/dev/null; then
10307   if test -s conftest.err; then
10308     ac_cpp_err=$ac_c_preproc_warn_flag
10309   else
10310     ac_cpp_err=
10311   fi
10312 else
10313   ac_cpp_err=yes
10314 fi
10315 if test -z "$ac_cpp_err"; then
10316   ac_header_preproc=yes
10317 else
10318   echo "$as_me: failed program was:" >&5
10319 sed 's/^/| /' conftest.$ac_ext >&5
10320
10321   ac_header_preproc=no
10322 fi
10323 rm -f conftest.err conftest.$ac_ext
10324 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10325 echo "${ECHO_T}$ac_header_preproc" >&6
10326
10327 # So?  What about this header?
10328 case $ac_header_compiler:$ac_header_preproc in
10329   yes:no )
10330     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10331 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10332     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10333 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10334     (
10335       cat <<\_ASBOX
10336 ## ------------------------------------ ##
10337 ## Report this to bug-autoconf@gnu.org. ##
10338 ## ------------------------------------ ##
10339 _ASBOX
10340     ) |
10341       sed "s/^/$as_me: WARNING:     /" >&2
10342     ;;
10343   no:yes )
10344     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10345 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10346     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10347 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10348     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10349 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10350     (
10351       cat <<\_ASBOX
10352 ## ------------------------------------ ##
10353 ## Report this to bug-autoconf@gnu.org. ##
10354 ## ------------------------------------ ##
10355 _ASBOX
10356     ) |
10357       sed "s/^/$as_me: WARNING:     /" >&2
10358     ;;
10359 esac
10360 echo "$as_me:$LINENO: checking for $ac_header" >&5
10361 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10362 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10363   echo $ECHO_N "(cached) $ECHO_C" >&6
10364 else
10365   eval "$as_ac_Header=$ac_header_preproc"
10366 fi
10367 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10368 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10369
10370 fi
10371 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10372   cat >>confdefs.h <<_ACEOF
10373 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10374 _ACEOF
10375  break
10376 fi
10377
10378 done
10379
10380 if test "$ac_cv_header_sys_asoundlib_h" = "yes" -o "$ac_cv_header_alsa_asoundlib_h" = "yes"
10381 then
10382     echo "$as_me:$LINENO: checking for snd_pcm_open in -lasound" >&5
10383 echo $ECHO_N "checking for snd_pcm_open in -lasound... $ECHO_C" >&6
10384 if test "${ac_cv_lib_asound_snd_pcm_open+set}" = set; then
10385   echo $ECHO_N "(cached) $ECHO_C" >&6
10386 else
10387   ac_check_lib_save_LIBS=$LIBS
10388 LIBS="-lasound  $LIBS"
10389 cat >conftest.$ac_ext <<_ACEOF
10390 #line $LINENO "configure"
10391 /* confdefs.h.  */
10392 _ACEOF
10393 cat confdefs.h >>conftest.$ac_ext
10394 cat >>conftest.$ac_ext <<_ACEOF
10395 /* end confdefs.h.  */
10396
10397 /* Override any gcc2 internal prototype to avoid an error.  */
10398 #ifdef __cplusplus
10399 extern "C"
10400 #endif
10401 /* We use char because int might match the return type of a gcc2
10402    builtin and then its argument prototype would still apply.  */
10403 char snd_pcm_open ();
10404 int
10405 main ()
10406 {
10407 snd_pcm_open ();
10408   ;
10409   return 0;
10410 }
10411 _ACEOF
10412 rm -f conftest.$ac_objext conftest$ac_exeext
10413 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10414   (eval $ac_link) 2>&5
10415   ac_status=$?
10416   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10417   (exit $ac_status); } &&
10418          { ac_try='test -s conftest$ac_exeext'
10419   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10420   (eval $ac_try) 2>&5
10421   ac_status=$?
10422   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10423   (exit $ac_status); }; }; then
10424   ac_cv_lib_asound_snd_pcm_open=yes
10425 else
10426   echo "$as_me: failed program was:" >&5
10427 sed 's/^/| /' conftest.$ac_ext >&5
10428
10429 ac_cv_lib_asound_snd_pcm_open=no
10430 fi
10431 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10432 LIBS=$ac_check_lib_save_LIBS
10433 fi
10434 echo "$as_me:$LINENO: result: $ac_cv_lib_asound_snd_pcm_open" >&5
10435 echo "${ECHO_T}$ac_cv_lib_asound_snd_pcm_open" >&6
10436 if test $ac_cv_lib_asound_snd_pcm_open = yes; then
10437
10438 cat >>confdefs.h <<\_ACEOF
10439 #define HAVE_ALSA 1
10440 _ACEOF
10441
10442         ALSALIBS="-lasound"
10443 fi
10444
10445 fi
10446
10447
10448 AUDIOIOLIBS=""
10449
10450
10451 for ac_header in libaudioio.h
10452 do
10453 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10454 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10455   echo "$as_me:$LINENO: checking for $ac_header" >&5
10456 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10457 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10458   echo $ECHO_N "(cached) $ECHO_C" >&6
10459 fi
10460 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10461 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10462 else
10463   # Is the header compilable?
10464 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10465 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10466 cat >conftest.$ac_ext <<_ACEOF
10467 #line $LINENO "configure"
10468 /* confdefs.h.  */
10469 _ACEOF
10470 cat confdefs.h >>conftest.$ac_ext
10471 cat >>conftest.$ac_ext <<_ACEOF
10472 /* end confdefs.h.  */
10473 $ac_includes_default
10474 #include <$ac_header>
10475 _ACEOF
10476 rm -f conftest.$ac_objext
10477 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10478   (eval $ac_compile) 2>&5
10479   ac_status=$?
10480   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10481   (exit $ac_status); } &&
10482          { ac_try='test -s conftest.$ac_objext'
10483   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10484   (eval $ac_try) 2>&5
10485   ac_status=$?
10486   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10487   (exit $ac_status); }; }; then
10488   ac_header_compiler=yes
10489 else
10490   echo "$as_me: failed program was:" >&5
10491 sed 's/^/| /' conftest.$ac_ext >&5
10492
10493 ac_header_compiler=no
10494 fi
10495 rm -f conftest.$ac_objext conftest.$ac_ext
10496 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10497 echo "${ECHO_T}$ac_header_compiler" >&6
10498
10499 # Is the header present?
10500 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10501 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10502 cat >conftest.$ac_ext <<_ACEOF
10503 #line $LINENO "configure"
10504 /* confdefs.h.  */
10505 _ACEOF
10506 cat confdefs.h >>conftest.$ac_ext
10507 cat >>conftest.$ac_ext <<_ACEOF
10508 /* end confdefs.h.  */
10509 #include <$ac_header>
10510 _ACEOF
10511 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10512   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10513   ac_status=$?
10514   grep -v '^ *+' conftest.er1 >conftest.err
10515   rm -f conftest.er1
10516   cat conftest.err >&5
10517   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10518   (exit $ac_status); } >/dev/null; then
10519   if test -s conftest.err; then
10520     ac_cpp_err=$ac_c_preproc_warn_flag
10521   else
10522     ac_cpp_err=
10523   fi
10524 else
10525   ac_cpp_err=yes
10526 fi
10527 if test -z "$ac_cpp_err"; then
10528   ac_header_preproc=yes
10529 else
10530   echo "$as_me: failed program was:" >&5
10531 sed 's/^/| /' conftest.$ac_ext >&5
10532
10533   ac_header_preproc=no
10534 fi
10535 rm -f conftest.err conftest.$ac_ext
10536 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10537 echo "${ECHO_T}$ac_header_preproc" >&6
10538
10539 # So?  What about this header?
10540 case $ac_header_compiler:$ac_header_preproc in
10541   yes:no )
10542     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10543 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10544     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10545 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10546     (
10547       cat <<\_ASBOX
10548 ## ------------------------------------ ##
10549 ## Report this to bug-autoconf@gnu.org. ##
10550 ## ------------------------------------ ##
10551 _ASBOX
10552     ) |
10553       sed "s/^/$as_me: WARNING:     /" >&2
10554     ;;
10555   no:yes )
10556     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10557 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10558     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10559 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10560     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10561 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10562     (
10563       cat <<\_ASBOX
10564 ## ------------------------------------ ##
10565 ## Report this to bug-autoconf@gnu.org. ##
10566 ## ------------------------------------ ##
10567 _ASBOX
10568     ) |
10569       sed "s/^/$as_me: WARNING:     /" >&2
10570     ;;
10571 esac
10572 echo "$as_me:$LINENO: checking for $ac_header" >&5
10573 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10574 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10575   echo $ECHO_N "(cached) $ECHO_C" >&6
10576 else
10577   eval "$as_ac_Header=$ac_header_preproc"
10578 fi
10579 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10580 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10581
10582 fi
10583 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10584   cat >>confdefs.h <<_ACEOF
10585 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10586 _ACEOF
10587  echo "$as_me:$LINENO: checking for AudioIOGetVersion in -laudioio" >&5
10588 echo $ECHO_N "checking for AudioIOGetVersion in -laudioio... $ECHO_C" >&6
10589 if test "${ac_cv_lib_audioio_AudioIOGetVersion+set}" = set; then
10590   echo $ECHO_N "(cached) $ECHO_C" >&6
10591 else
10592   ac_check_lib_save_LIBS=$LIBS
10593 LIBS="-laudioio  $LIBS"
10594 cat >conftest.$ac_ext <<_ACEOF
10595 #line $LINENO "configure"
10596 /* confdefs.h.  */
10597 _ACEOF
10598 cat confdefs.h >>conftest.$ac_ext
10599 cat >>conftest.$ac_ext <<_ACEOF
10600 /* end confdefs.h.  */
10601
10602 /* Override any gcc2 internal prototype to avoid an error.  */
10603 #ifdef __cplusplus
10604 extern "C"
10605 #endif
10606 /* We use char because int might match the return type of a gcc2
10607    builtin and then its argument prototype would still apply.  */
10608 char AudioIOGetVersion ();
10609 int
10610 main ()
10611 {
10612 AudioIOGetVersion ();
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   ac_cv_lib_audioio_AudioIOGetVersion=yes
10630 else
10631   echo "$as_me: failed program was:" >&5
10632 sed 's/^/| /' conftest.$ac_ext >&5
10633
10634 ac_cv_lib_audioio_AudioIOGetVersion=no
10635 fi
10636 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10637 LIBS=$ac_check_lib_save_LIBS
10638 fi
10639 echo "$as_me:$LINENO: result: $ac_cv_lib_audioio_AudioIOGetVersion" >&5
10640 echo "${ECHO_T}$ac_cv_lib_audioio_AudioIOGetVersion" >&6
10641 if test $ac_cv_lib_audioio_AudioIOGetVersion = yes; then
10642   AUDIOIOLIBS="-laudioio"
10643
10644 cat >>confdefs.h <<\_ACEOF
10645 #define HAVE_LIBAUDIOIO 1
10646 _ACEOF
10647
10648 fi
10649
10650 fi
10651
10652 done
10653
10654
10655
10656 echo "$as_me:$LINENO: checking whether mmap64 works defined as mmap" >&5
10657 echo $ECHO_N "checking whether mmap64 works defined as mmap... $ECHO_C" >&6
10658 if test "${ac_cv_mmap64_works+set}" = set; then
10659   echo $ECHO_N "(cached) $ECHO_C" >&6
10660 else
10661   if test "$cross_compiling" = yes; then
10662   ac_cv_mmap64_works="no"
10663 else
10664   cat >conftest.$ac_ext <<_ACEOF
10665 #line $LINENO "configure"
10666 /* confdefs.h.  */
10667 _ACEOF
10668 cat confdefs.h >>conftest.$ac_ext
10669 cat >>conftest.$ac_ext <<_ACEOF
10670 /* end confdefs.h.  */
10671
10672                 #define _FILE_OFFSET_BITS 64
10673                 #include <stdio.h>
10674                 #include <unistd.h>
10675                 #include <fcntl.h>
10676                 #include <sys/mman.h>
10677                 #include <errno.h>
10678
10679                 int main(int argc,char **argv) {
10680                         int fd = open("conftest.map",O_CREAT|O_RDWR,0600);
10681                         if (fd == -1) exit(1);
10682
10683                         unlink("conftest.map");
10684
10685                         write(fd,"test",4);
10686
10687                         if ((-1 == mmap(0,4,PROT_READ|PROT_WRITE,MAP_SHARED,fd,0)) &&
10688                             (errno == EINVAL)
10689                         ) {
10690                                 exit(1);
10691                         }
10692                         close(fd);
10693                         fprintf(stderr,"success!\n");
10694                         exit(0);
10695                 }
10696
10697
10698 _ACEOF
10699 rm -f conftest$ac_exeext
10700 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10701   (eval $ac_link) 2>&5
10702   ac_status=$?
10703   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10704   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10705   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10706   (eval $ac_try) 2>&5
10707   ac_status=$?
10708   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10709   (exit $ac_status); }; }; then
10710   ac_cv_mmap64_works="yes"
10711 else
10712   echo "$as_me: program exited with status $ac_status" >&5
10713 echo "$as_me: failed program was:" >&5
10714 sed 's/^/| /' conftest.$ac_ext >&5
10715
10716 ( exit $ac_status )
10717 ac_cv_mmap64_works="no"
10718 fi
10719 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10720 fi
10721 fi
10722 echo "$as_me:$LINENO: result: $ac_cv_mmap64_works" >&5
10723 echo "${ECHO_T}$ac_cv_mmap64_works" >&6
10724
10725 if test "$ac_cv_mmap64_works" = "yes"
10726 then
10727
10728 cat >>confdefs.h <<\_ACEOF
10729 #define _FILE_OFFSET_BITS 64
10730 _ACEOF
10731
10732 fi
10733
10734
10735 EXTRACFLAGS=""
10736
10737 if test "x${GCC}" = "xyes"
10738 then
10739   EXTRACFLAGS=-Wall
10740
10741     echo "$as_me:$LINENO: checking for gcc strength-reduce bug" >&5
10742 echo $ECHO_N "checking for gcc strength-reduce bug... $ECHO_C" >&6
10743 if test "${ac_cv_c_gcc_strength_bug+set}" = set; then
10744   echo $ECHO_N "(cached) $ECHO_C" >&6
10745 else
10746   if test "$cross_compiling" = yes; then
10747   ac_cv_c_gcc_strength_bug="yes"
10748 else
10749   cat >conftest.$ac_ext <<_ACEOF
10750 #line $LINENO "configure"
10751 /* confdefs.h.  */
10752 _ACEOF
10753 cat confdefs.h >>conftest.$ac_ext
10754 cat >>conftest.$ac_ext <<_ACEOF
10755 /* end confdefs.h.  */
10756
10757 int     L[4] = {0,1,2,3};
10758 int main(void) {
10759   static int Array[3];
10760   unsigned int B = 3;
10761   int i;
10762   for(i=0; i<B; i++) Array[i] = i - 3;
10763   for(i=0; i<4 - 1; i++) L[i] = L[i + 1];
10764   L[i] = 4;
10765
10766   exit( Array[1] != -2 || L[2] != 3);
10767 }
10768 _ACEOF
10769 rm -f conftest$ac_exeext
10770 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10771   (eval $ac_link) 2>&5
10772   ac_status=$?
10773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10774   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10775   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10776   (eval $ac_try) 2>&5
10777   ac_status=$?
10778   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10779   (exit $ac_status); }; }; then
10780   ac_cv_c_gcc_strength_bug="no"
10781 else
10782   echo "$as_me: program exited with status $ac_status" >&5
10783 echo "$as_me: failed program was:" >&5
10784 sed 's/^/| /' conftest.$ac_ext >&5
10785
10786 ( exit $ac_status )
10787 ac_cv_c_gcc_strength_bug="yes"
10788 fi
10789 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10790 fi
10791 fi
10792 echo "$as_me:$LINENO: result: $ac_cv_c_gcc_strength_bug" >&5
10793 echo "${ECHO_T}$ac_cv_c_gcc_strength_bug" >&6
10794   if test "$ac_cv_c_gcc_strength_bug" = "yes"
10795   then
10796     EXTRACFLAGS="$EXTRACFLAGS -fno-strength-reduce"
10797   fi
10798
10799     echo "$as_me:$LINENO: checking for gcc -mpreferred-stack-boundary=2 support" >&5
10800 echo $ECHO_N "checking for gcc -mpreferred-stack-boundary=2 support... $ECHO_C" >&6
10801 if test "${ac_cv_c_gcc_stack_boundary+set}" = set; then
10802   echo $ECHO_N "(cached) $ECHO_C" >&6
10803 else
10804   ac_wine_try_cflags_saved=$CFLAGS
10805 CFLAGS="$CFLAGS -mpreferred-stack-boundary=2"
10806 cat >conftest.$ac_ext <<_ACEOF
10807 #line $LINENO "configure"
10808 /* confdefs.h.  */
10809 _ACEOF
10810 cat confdefs.h >>conftest.$ac_ext
10811 cat >>conftest.$ac_ext <<_ACEOF
10812 /* end confdefs.h.  */
10813
10814 int
10815 main ()
10816 {
10817
10818   ;
10819   return 0;
10820 }
10821 _ACEOF
10822 rm -f conftest.$ac_objext conftest$ac_exeext
10823 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10824   (eval $ac_link) 2>&5
10825   ac_status=$?
10826   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10827   (exit $ac_status); } &&
10828          { ac_try='test -s conftest$ac_exeext'
10829   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10830   (eval $ac_try) 2>&5
10831   ac_status=$?
10832   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10833   (exit $ac_status); }; }; then
10834   ac_cv_c_gcc_stack_boundary="yes"
10835 else
10836   echo "$as_me: failed program was:" >&5
10837 sed 's/^/| /' conftest.$ac_ext >&5
10838
10839 ac_cv_c_gcc_stack_boundary="no"
10840 fi
10841 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10842 CFLAGS=$ac_wine_try_cflags_saved
10843 fi
10844 echo "$as_me:$LINENO: result: $ac_cv_c_gcc_stack_boundary" >&5
10845 echo "${ECHO_T}$ac_cv_c_gcc_stack_boundary" >&6
10846   if test "$ac_cv_c_gcc_stack_boundary" = "yes"
10847   then
10848     EXTRACFLAGS="$EXTRACFLAGS -mpreferred-stack-boundary=2"
10849   fi
10850
10851     echo "$as_me:$LINENO: checking for gcc -fno-strict-aliasing support" >&5
10852 echo $ECHO_N "checking for gcc -fno-strict-aliasing support... $ECHO_C" >&6
10853 if test "${ac_cv_c_gcc_no_strict_aliasing+set}" = set; then
10854   echo $ECHO_N "(cached) $ECHO_C" >&6
10855 else
10856   ac_wine_try_cflags_saved=$CFLAGS
10857 CFLAGS="$CFLAGS -fno-strict-aliasing"
10858 cat >conftest.$ac_ext <<_ACEOF
10859 #line $LINENO "configure"
10860 /* confdefs.h.  */
10861 _ACEOF
10862 cat confdefs.h >>conftest.$ac_ext
10863 cat >>conftest.$ac_ext <<_ACEOF
10864 /* end confdefs.h.  */
10865
10866 int
10867 main ()
10868 {
10869
10870   ;
10871   return 0;
10872 }
10873 _ACEOF
10874 rm -f conftest.$ac_objext conftest$ac_exeext
10875 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10876   (eval $ac_link) 2>&5
10877   ac_status=$?
10878   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10879   (exit $ac_status); } &&
10880          { ac_try='test -s conftest$ac_exeext'
10881   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10882   (eval $ac_try) 2>&5
10883   ac_status=$?
10884   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10885   (exit $ac_status); }; }; then
10886   ac_cv_c_gcc_no_strict_aliasing="yes"
10887 else
10888   echo "$as_me: failed program was:" >&5
10889 sed 's/^/| /' conftest.$ac_ext >&5
10890
10891 ac_cv_c_gcc_no_strict_aliasing="no"
10892 fi
10893 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10894 CFLAGS=$ac_wine_try_cflags_saved
10895 fi
10896 echo "$as_me:$LINENO: result: $ac_cv_c_gcc_no_strict_aliasing" >&5
10897 echo "${ECHO_T}$ac_cv_c_gcc_no_strict_aliasing" >&6
10898   if test "$ac_cv_c_gcc_no_strict_aliasing" = "yes"
10899   then
10900     EXTRACFLAGS="$EXTRACFLAGS -fno-strict-aliasing"
10901   fi
10902
10903     echo "$as_me:$LINENO: checking for gcc -gstabs+ support" >&5
10904 echo $ECHO_N "checking for gcc -gstabs+ support... $ECHO_C" >&6
10905 if test "${ac_cv_c_gcc_gstabs+set}" = set; then
10906   echo $ECHO_N "(cached) $ECHO_C" >&6
10907 else
10908   ac_wine_try_cflags_saved=$CFLAGS
10909 CFLAGS="$CFLAGS -gstabs+"
10910 cat >conftest.$ac_ext <<_ACEOF
10911 #line $LINENO "configure"
10912 /* confdefs.h.  */
10913 _ACEOF
10914 cat confdefs.h >>conftest.$ac_ext
10915 cat >>conftest.$ac_ext <<_ACEOF
10916 /* end confdefs.h.  */
10917
10918 int
10919 main ()
10920 {
10921
10922   ;
10923   return 0;
10924 }
10925 _ACEOF
10926 rm -f conftest.$ac_objext conftest$ac_exeext
10927 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10928   (eval $ac_link) 2>&5
10929   ac_status=$?
10930   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10931   (exit $ac_status); } &&
10932          { ac_try='test -s conftest$ac_exeext'
10933   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10934   (eval $ac_try) 2>&5
10935   ac_status=$?
10936   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10937   (exit $ac_status); }; }; then
10938   ac_cv_c_gcc_gstabs="yes"
10939 else
10940   echo "$as_me: failed program was:" >&5
10941 sed 's/^/| /' conftest.$ac_ext >&5
10942
10943 ac_cv_c_gcc_gstabs="no"
10944 fi
10945 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10946 CFLAGS=$ac_wine_try_cflags_saved
10947 fi
10948 echo "$as_me:$LINENO: result: $ac_cv_c_gcc_gstabs" >&5
10949 echo "${ECHO_T}$ac_cv_c_gcc_gstabs" >&6
10950   if test "$ac_cv_c_gcc_gstabs" = "yes"
10951   then
10952     EXTRACFLAGS="$EXTRACFLAGS -gstabs+"
10953   fi
10954
10955     saved_CFLAGS="$CFLAGS"
10956   CFLAGS="$CFLAGS -Wpointer-arith -Werror"
10957   echo "$as_me:$LINENO: checking for broken string.h that generates warnings" >&5
10958 echo $ECHO_N "checking for broken string.h that generates warnings... $ECHO_C" >&6
10959 if test "${ac_cv_c_string_h_warnings+set}" = set; then
10960   echo $ECHO_N "(cached) $ECHO_C" >&6
10961 else
10962   cat >conftest.$ac_ext <<_ACEOF
10963 #line $LINENO "configure"
10964 /* confdefs.h.  */
10965 _ACEOF
10966 cat confdefs.h >>conftest.$ac_ext
10967 cat >>conftest.$ac_ext <<_ACEOF
10968 /* end confdefs.h.  */
10969 #include <string.h>
10970 int
10971 main ()
10972 {
10973
10974   ;
10975   return 0;
10976 }
10977 _ACEOF
10978 rm -f conftest.$ac_objext
10979 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10980   (eval $ac_compile) 2>&5
10981   ac_status=$?
10982   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10983   (exit $ac_status); } &&
10984          { ac_try='test -s conftest.$ac_objext'
10985   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10986   (eval $ac_try) 2>&5
10987   ac_status=$?
10988   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10989   (exit $ac_status); }; }; then
10990   ac_cv_c_string_h_warnings=no
10991 else
10992   echo "$as_me: failed program was:" >&5
10993 sed 's/^/| /' conftest.$ac_ext >&5
10994
10995 ac_cv_c_string_h_warnings=yes
10996 fi
10997 rm -f conftest.$ac_objext conftest.$ac_ext
10998 fi
10999 echo "$as_me:$LINENO: result: $ac_cv_c_string_h_warnings" >&5
11000 echo "${ECHO_T}$ac_cv_c_string_h_warnings" >&6
11001   CFLAGS="$saved_CFLAGS"
11002   if test "$ac_cv_c_string_h_warnings" = "no"
11003   then
11004     EXTRACFLAGS="$EXTRACFLAGS -Wpointer-arith"
11005   fi
11006 fi
11007
11008
11009 echo "$as_me:$LINENO: checking how to define a function in assembly code" >&5
11010 echo $ECHO_N "checking how to define a function in assembly code... $ECHO_C" >&6
11011 if test "${ac_cv_asm_func_def+set}" = set; then
11012   echo $ECHO_N "(cached) $ECHO_C" >&6
11013 else
11014   cat >conftest.$ac_ext <<_ACEOF
11015 #line $LINENO "configure"
11016 /* confdefs.h.  */
11017 _ACEOF
11018 cat confdefs.h >>conftest.$ac_ext
11019 cat >>conftest.$ac_ext <<_ACEOF
11020 /* end confdefs.h.  */
11021 void ac_asm(void) { asm("\t.globl _ac_test\n\t.def _ac_test; .scl 2; .type 32; .endef\n_ac_test:\t.long 0"); }
11022
11023 int
11024 main ()
11025 {
11026
11027   ;
11028   return 0;
11029 }
11030 _ACEOF
11031 rm -f conftest.$ac_objext conftest$ac_exeext
11032 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11033   (eval $ac_link) 2>&5
11034   ac_status=$?
11035   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11036   (exit $ac_status); } &&
11037          { ac_try='test -s conftest$ac_exeext'
11038   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11039   (eval $ac_try) 2>&5
11040   ac_status=$?
11041   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11042   (exit $ac_status); }; }; then
11043   ac_cv_asm_func_def=".def"
11044 else
11045   echo "$as_me: failed program was:" >&5
11046 sed 's/^/| /' conftest.$ac_ext >&5
11047
11048 cat >conftest.$ac_ext <<_ACEOF
11049 #line $LINENO "configure"
11050 /* confdefs.h.  */
11051 _ACEOF
11052 cat confdefs.h >>conftest.$ac_ext
11053 cat >>conftest.$ac_ext <<_ACEOF
11054 /* end confdefs.h.  */
11055 void ac_asm(void) { asm("\t.globl _ac_test\n\t.type _ac_test,@function\n_ac_test:\t.long 0"); }
11056
11057 int
11058 main ()
11059 {
11060
11061   ;
11062   return 0;
11063 }
11064 _ACEOF
11065 rm -f conftest.$ac_objext conftest$ac_exeext
11066 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11067   (eval $ac_link) 2>&5
11068   ac_status=$?
11069   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11070   (exit $ac_status); } &&
11071          { ac_try='test -s conftest$ac_exeext'
11072   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11073   (eval $ac_try) 2>&5
11074   ac_status=$?
11075   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11076   (exit $ac_status); }; }; then
11077   ac_cv_asm_func_def=".type @function"
11078 else
11079   echo "$as_me: failed program was:" >&5
11080 sed 's/^/| /' conftest.$ac_ext >&5
11081
11082 cat >conftest.$ac_ext <<_ACEOF
11083 #line $LINENO "configure"
11084 /* confdefs.h.  */
11085 _ACEOF
11086 cat confdefs.h >>conftest.$ac_ext
11087 cat >>conftest.$ac_ext <<_ACEOF
11088 /* end confdefs.h.  */
11089 void ac_asm(void) { asm("\t.globl _ac_test\n\t.type _ac_test,2\n_ac_test:\t.long 0"); }
11090
11091 int
11092 main ()
11093 {
11094
11095   ;
11096   return 0;
11097 }
11098 _ACEOF
11099 rm -f conftest.$ac_objext conftest$ac_exeext
11100 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11101   (eval $ac_link) 2>&5
11102   ac_status=$?
11103   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11104   (exit $ac_status); } &&
11105          { ac_try='test -s conftest$ac_exeext'
11106   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11107   (eval $ac_try) 2>&5
11108   ac_status=$?
11109   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11110   (exit $ac_status); }; }; then
11111   ac_cv_asm_func_def=".type 2"
11112 else
11113   echo "$as_me: failed program was:" >&5
11114 sed 's/^/| /' conftest.$ac_ext >&5
11115
11116 ac_cv_asm_func_def="unknown"
11117 fi
11118 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11119 fi
11120 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11121 fi
11122 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11123 fi
11124 echo "$as_me:$LINENO: result: $ac_cv_asm_func_def" >&5
11125 echo "${ECHO_T}$ac_cv_asm_func_def" >&6
11126
11127
11128
11129 case "$ac_cv_asm_func_def" in
11130   ".def")
11131      cat >>confdefs.h <<\_ACEOF
11132 #define __ASM_FUNC(name) ".def " __ASM_NAME(name) "; .scl 2; .type 32; .endef"
11133 _ACEOF
11134  ;;
11135   ".type @function")
11136      cat >>confdefs.h <<\_ACEOF
11137 #define __ASM_FUNC(name) ".type " __ASM_NAME(name) ",@function"
11138 _ACEOF
11139  ;;
11140   ".type 2")
11141      cat >>confdefs.h <<\_ACEOF
11142 #define __ASM_FUNC(name) ".type " __ASM_NAME(name) ",2"
11143 _ACEOF
11144  ;;
11145   *)
11146      cat >>confdefs.h <<\_ACEOF
11147 #define __ASM_FUNC(name) ""
11148 _ACEOF
11149  ;;
11150 esac
11151
11152
11153 echo "$as_me:$LINENO: checking whether external symbols need an underscore prefix" >&5
11154 echo $ECHO_N "checking whether external symbols need an underscore prefix... $ECHO_C" >&6
11155 if test "${ac_cv_c_extern_prefix+set}" = set; then
11156   echo $ECHO_N "(cached) $ECHO_C" >&6
11157 else
11158   cat >conftest.$ac_ext <<_ACEOF
11159 #line $LINENO "configure"
11160 /* confdefs.h.  */
11161 _ACEOF
11162 cat confdefs.h >>conftest.$ac_ext
11163 cat >>conftest.$ac_ext <<_ACEOF
11164 /* end confdefs.h.  */
11165 void ac_asm(void) { asm(".globl _ac_test\n_ac_test:\t.long 0"); }
11166 extern int ac_test;
11167 int
11168 main ()
11169 {
11170 if (ac_test) return 1
11171   ;
11172   return 0;
11173 }
11174 _ACEOF
11175 rm -f conftest.$ac_objext conftest$ac_exeext
11176 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11177   (eval $ac_link) 2>&5
11178   ac_status=$?
11179   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11180   (exit $ac_status); } &&
11181          { ac_try='test -s conftest$ac_exeext'
11182   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11183   (eval $ac_try) 2>&5
11184   ac_status=$?
11185   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11186   (exit $ac_status); }; }; then
11187   ac_cv_c_extern_prefix="yes"
11188 else
11189   echo "$as_me: failed program was:" >&5
11190 sed 's/^/| /' conftest.$ac_ext >&5
11191
11192 ac_cv_c_extern_prefix="no"
11193 fi
11194 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11195 fi
11196 echo "$as_me:$LINENO: result: $ac_cv_c_extern_prefix" >&5
11197 echo "${ECHO_T}$ac_cv_c_extern_prefix" >&6
11198
11199
11200
11201 if test "$ac_cv_c_extern_prefix" = "yes"
11202 then
11203   cat >>confdefs.h <<\_ACEOF
11204 #define __ASM_NAME(name) "_" name
11205 _ACEOF
11206
11207 else
11208   cat >>confdefs.h <<\_ACEOF
11209 #define __ASM_NAME(name) name
11210 _ACEOF
11211
11212 fi
11213
11214
11215 echo "$as_me:$LINENO: checking whether assembler accepts .string" >&5
11216 echo $ECHO_N "checking whether assembler accepts .string... $ECHO_C" >&6
11217 if test "${ac_cv_c_asm_string+set}" = set; then
11218   echo $ECHO_N "(cached) $ECHO_C" >&6
11219 else
11220   cat >conftest.$ac_ext <<_ACEOF
11221 #line $LINENO "configure"
11222 /* confdefs.h.  */
11223 _ACEOF
11224 cat confdefs.h >>conftest.$ac_ext
11225 cat >>conftest.$ac_ext <<_ACEOF
11226 /* end confdefs.h.  */
11227 void ac_asm(void) { asm(".data\n\t.string \"test\"\n\t.text"); }
11228
11229 int
11230 main ()
11231 {
11232
11233   ;
11234   return 0;
11235 }
11236 _ACEOF
11237 rm -f conftest.$ac_objext conftest$ac_exeext
11238 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11239   (eval $ac_link) 2>&5
11240   ac_status=$?
11241   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11242   (exit $ac_status); } &&
11243          { ac_try='test -s conftest$ac_exeext'
11244   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11245   (eval $ac_try) 2>&5
11246   ac_status=$?
11247   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11248   (exit $ac_status); }; }; then
11249   ac_cv_c_asm_string="yes"
11250 else
11251   echo "$as_me: failed program was:" >&5
11252 sed 's/^/| /' conftest.$ac_ext >&5
11253
11254 ac_cv_c_asm_string="no"
11255 fi
11256 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11257 fi
11258 echo "$as_me:$LINENO: result: $ac_cv_c_asm_string" >&5
11259 echo "${ECHO_T}$ac_cv_c_asm_string" >&6
11260 if test "$ac_cv_c_asm_string" = "yes"
11261 then
11262
11263 cat >>confdefs.h <<\_ACEOF
11264 #define __ASM_STRING ".string"
11265 _ACEOF
11266
11267 else
11268     echo "$as_me:$LINENO: checking whether assembler accepts .asciz" >&5
11269 echo $ECHO_N "checking whether assembler accepts .asciz... $ECHO_C" >&6
11270 if test "${ac_cv_c_asm_asciz+set}" = set; then
11271   echo $ECHO_N "(cached) $ECHO_C" >&6
11272 else
11273   cat >conftest.$ac_ext <<_ACEOF
11274 #line $LINENO "configure"
11275 /* confdefs.h.  */
11276 _ACEOF
11277 cat confdefs.h >>conftest.$ac_ext
11278 cat >>conftest.$ac_ext <<_ACEOF
11279 /* end confdefs.h.  */
11280 void ac_asm(void) { asm(".data\n\t.asciz \"test\"\n\t.text"); }
11281
11282 int
11283 main ()
11284 {
11285
11286   ;
11287   return 0;
11288 }
11289 _ACEOF
11290 rm -f conftest.$ac_objext conftest$ac_exeext
11291 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11292   (eval $ac_link) 2>&5
11293   ac_status=$?
11294   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11295   (exit $ac_status); } &&
11296          { ac_try='test -s conftest$ac_exeext'
11297   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11298   (eval $ac_try) 2>&5
11299   ac_status=$?
11300   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11301   (exit $ac_status); }; }; then
11302   ac_cv_c_asm_asciz="yes"
11303 else
11304   echo "$as_me: failed program was:" >&5
11305 sed 's/^/| /' conftest.$ac_ext >&5
11306
11307 ac_cv_c_asm_asciz="no"
11308 fi
11309 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11310 fi
11311 echo "$as_me:$LINENO: result: $ac_cv_c_asm_asciz" >&5
11312 echo "${ECHO_T}$ac_cv_c_asm_asciz" >&6
11313     if test "$ac_cv_c_asm_asciz" = "yes"
11314     then
11315       cat >>confdefs.h <<\_ACEOF
11316 #define __ASM_STRING ".asciz"
11317 _ACEOF
11318
11319     else
11320       cat >>confdefs.h <<\_ACEOF
11321 #define __ASM_STRING ".ascii"
11322 _ACEOF
11323
11324     fi
11325 fi
11326
11327
11328 echo "$as_me:$LINENO: checking whether assembler accepts .short" >&5
11329 echo $ECHO_N "checking whether assembler accepts .short... $ECHO_C" >&6
11330 if test "${ac_cv_c_asm_short+set}" = set; then
11331   echo $ECHO_N "(cached) $ECHO_C" >&6
11332 else
11333   cat >conftest.$ac_ext <<_ACEOF
11334 #line $LINENO "configure"
11335 /* confdefs.h.  */
11336 _ACEOF
11337 cat confdefs.h >>conftest.$ac_ext
11338 cat >>conftest.$ac_ext <<_ACEOF
11339 /* end confdefs.h.  */
11340 void ac_asm(void) { asm(".data\n\t.short 1\n\t.text"); }
11341
11342 int
11343 main ()
11344 {
11345
11346   ;
11347   return 0;
11348 }
11349 _ACEOF
11350 rm -f conftest.$ac_objext conftest$ac_exeext
11351 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11352   (eval $ac_link) 2>&5
11353   ac_status=$?
11354   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11355   (exit $ac_status); } &&
11356          { ac_try='test -s conftest$ac_exeext'
11357   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11358   (eval $ac_try) 2>&5
11359   ac_status=$?
11360   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11361   (exit $ac_status); }; }; then
11362   ac_cv_c_asm_short="yes"
11363 else
11364   echo "$as_me: failed program was:" >&5
11365 sed 's/^/| /' conftest.$ac_ext >&5
11366
11367 ac_cv_c_asm_short="no"
11368 fi
11369 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11370 fi
11371 echo "$as_me:$LINENO: result: $ac_cv_c_asm_short" >&5
11372 echo "${ECHO_T}$ac_cv_c_asm_short" >&6
11373 if test "$ac_cv_c_asm_short" = "yes"
11374 then
11375
11376 cat >>confdefs.h <<\_ACEOF
11377 #define __ASM_SHORT ".short"
11378 _ACEOF
11379
11380 else
11381   cat >>confdefs.h <<\_ACEOF
11382 #define __ASM_SHORT ".half"
11383 _ACEOF
11384
11385 fi
11386
11387
11388 DLLEXT=""
11389
11390 DLLFLAGS="-D_REENTRANT"
11391
11392 DLLIBS=""
11393
11394 LDSHARED=""
11395
11396 LDDLL=""
11397
11398 LIBEXT="so"
11399
11400 IMPLIBEXT="def"
11401
11402
11403 case $host_os in
11404   cygwin*|mingw32*)
11405     if test -n "$ac_tool_prefix"; then
11406   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
11407 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
11408 echo "$as_me:$LINENO: checking for $ac_word" >&5
11409 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11410 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
11411   echo $ECHO_N "(cached) $ECHO_C" >&6
11412 else
11413   if test -n "$DLLTOOL"; then
11414   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
11415 else
11416 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11417 for as_dir in $PATH
11418 do
11419   IFS=$as_save_IFS
11420   test -z "$as_dir" && as_dir=.
11421   for ac_exec_ext in '' $ac_executable_extensions; do
11422   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11423     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
11424     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11425     break 2
11426   fi
11427 done
11428 done
11429
11430 fi
11431 fi
11432 DLLTOOL=$ac_cv_prog_DLLTOOL
11433 if test -n "$DLLTOOL"; then
11434   echo "$as_me:$LINENO: result: $DLLTOOL" >&5
11435 echo "${ECHO_T}$DLLTOOL" >&6
11436 else
11437   echo "$as_me:$LINENO: result: no" >&5
11438 echo "${ECHO_T}no" >&6
11439 fi
11440
11441 fi
11442 if test -z "$ac_cv_prog_DLLTOOL"; then
11443   ac_ct_DLLTOOL=$DLLTOOL
11444   # Extract the first word of "dlltool", so it can be a program name with args.
11445 set dummy dlltool; ac_word=$2
11446 echo "$as_me:$LINENO: checking for $ac_word" >&5
11447 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11448 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
11449   echo $ECHO_N "(cached) $ECHO_C" >&6
11450 else
11451   if test -n "$ac_ct_DLLTOOL"; then
11452   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
11453 else
11454 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11455 for as_dir in $PATH
11456 do
11457   IFS=$as_save_IFS
11458   test -z "$as_dir" && as_dir=.
11459   for ac_exec_ext in '' $ac_executable_extensions; do
11460   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11461     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
11462     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11463     break 2
11464   fi
11465 done
11466 done
11467
11468   test -z "$ac_cv_prog_ac_ct_DLLTOOL" && ac_cv_prog_ac_ct_DLLTOOL="false"
11469 fi
11470 fi
11471 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
11472 if test -n "$ac_ct_DLLTOOL"; then
11473   echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
11474 echo "${ECHO_T}$ac_ct_DLLTOOL" >&6
11475 else
11476   echo "$as_me:$LINENO: result: no" >&5
11477 echo "${ECHO_T}no" >&6
11478 fi
11479
11480   DLLTOOL=$ac_ct_DLLTOOL
11481 else
11482   DLLTOOL="$ac_cv_prog_DLLTOOL"
11483 fi
11484
11485     if test -n "$ac_tool_prefix"; then
11486   # Extract the first word of "${ac_tool_prefix}dllwrap", so it can be a program name with args.
11487 set dummy ${ac_tool_prefix}dllwrap; ac_word=$2
11488 echo "$as_me:$LINENO: checking for $ac_word" >&5
11489 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11490 if test "${ac_cv_prog_DLLWRAP+set}" = set; then
11491   echo $ECHO_N "(cached) $ECHO_C" >&6
11492 else
11493   if test -n "$DLLWRAP"; then
11494   ac_cv_prog_DLLWRAP="$DLLWRAP" # Let the user override the test.
11495 else
11496 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11497 for as_dir in $PATH
11498 do
11499   IFS=$as_save_IFS
11500   test -z "$as_dir" && as_dir=.
11501   for ac_exec_ext in '' $ac_executable_extensions; do
11502   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11503     ac_cv_prog_DLLWRAP="${ac_tool_prefix}dllwrap"
11504     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11505     break 2
11506   fi
11507 done
11508 done
11509
11510 fi
11511 fi
11512 DLLWRAP=$ac_cv_prog_DLLWRAP
11513 if test -n "$DLLWRAP"; then
11514   echo "$as_me:$LINENO: result: $DLLWRAP" >&5
11515 echo "${ECHO_T}$DLLWRAP" >&6
11516 else
11517   echo "$as_me:$LINENO: result: no" >&5
11518 echo "${ECHO_T}no" >&6
11519 fi
11520
11521 fi
11522 if test -z "$ac_cv_prog_DLLWRAP"; then
11523   ac_ct_DLLWRAP=$DLLWRAP
11524   # Extract the first word of "dllwrap", so it can be a program name with args.
11525 set dummy dllwrap; ac_word=$2
11526 echo "$as_me:$LINENO: checking for $ac_word" >&5
11527 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11528 if test "${ac_cv_prog_ac_ct_DLLWRAP+set}" = set; then
11529   echo $ECHO_N "(cached) $ECHO_C" >&6
11530 else
11531   if test -n "$ac_ct_DLLWRAP"; then
11532   ac_cv_prog_ac_ct_DLLWRAP="$ac_ct_DLLWRAP" # Let the user override the test.
11533 else
11534 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11535 for as_dir in $PATH
11536 do
11537   IFS=$as_save_IFS
11538   test -z "$as_dir" && as_dir=.
11539   for ac_exec_ext in '' $ac_executable_extensions; do
11540   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11541     ac_cv_prog_ac_ct_DLLWRAP="dllwrap"
11542     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11543     break 2
11544   fi
11545 done
11546 done
11547
11548   test -z "$ac_cv_prog_ac_ct_DLLWRAP" && ac_cv_prog_ac_ct_DLLWRAP="false"
11549 fi
11550 fi
11551 ac_ct_DLLWRAP=$ac_cv_prog_ac_ct_DLLWRAP
11552 if test -n "$ac_ct_DLLWRAP"; then
11553   echo "$as_me:$LINENO: result: $ac_ct_DLLWRAP" >&5
11554 echo "${ECHO_T}$ac_ct_DLLWRAP" >&6
11555 else
11556   echo "$as_me:$LINENO: result: no" >&5
11557 echo "${ECHO_T}no" >&6
11558 fi
11559
11560   DLLWRAP=$ac_ct_DLLWRAP
11561 else
11562   DLLWRAP="$ac_cv_prog_DLLWRAP"
11563 fi
11564
11565     if test "$DLLWRAP" = "false"; then
11566       LIBEXT="a"
11567     else
11568             LIBEXT="dll"
11569     fi
11570     IMPLIBEXT="a"
11571     ;;
11572   *)
11573
11574 for ac_header in dlfcn.h
11575 do
11576 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11577 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11578   echo "$as_me:$LINENO: checking for $ac_header" >&5
11579 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11580 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11581   echo $ECHO_N "(cached) $ECHO_C" >&6
11582 fi
11583 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11584 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11585 else
11586   # Is the header compilable?
11587 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11588 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11589 cat >conftest.$ac_ext <<_ACEOF
11590 #line $LINENO "configure"
11591 /* confdefs.h.  */
11592 _ACEOF
11593 cat confdefs.h >>conftest.$ac_ext
11594 cat >>conftest.$ac_ext <<_ACEOF
11595 /* end confdefs.h.  */
11596 $ac_includes_default
11597 #include <$ac_header>
11598 _ACEOF
11599 rm -f conftest.$ac_objext
11600 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11601   (eval $ac_compile) 2>&5
11602   ac_status=$?
11603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11604   (exit $ac_status); } &&
11605          { ac_try='test -s conftest.$ac_objext'
11606   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11607   (eval $ac_try) 2>&5
11608   ac_status=$?
11609   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11610   (exit $ac_status); }; }; then
11611   ac_header_compiler=yes
11612 else
11613   echo "$as_me: failed program was:" >&5
11614 sed 's/^/| /' conftest.$ac_ext >&5
11615
11616 ac_header_compiler=no
11617 fi
11618 rm -f conftest.$ac_objext conftest.$ac_ext
11619 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11620 echo "${ECHO_T}$ac_header_compiler" >&6
11621
11622 # Is the header present?
11623 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11624 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11625 cat >conftest.$ac_ext <<_ACEOF
11626 #line $LINENO "configure"
11627 /* confdefs.h.  */
11628 _ACEOF
11629 cat confdefs.h >>conftest.$ac_ext
11630 cat >>conftest.$ac_ext <<_ACEOF
11631 /* end confdefs.h.  */
11632 #include <$ac_header>
11633 _ACEOF
11634 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11635   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11636   ac_status=$?
11637   grep -v '^ *+' conftest.er1 >conftest.err
11638   rm -f conftest.er1
11639   cat conftest.err >&5
11640   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11641   (exit $ac_status); } >/dev/null; then
11642   if test -s conftest.err; then
11643     ac_cpp_err=$ac_c_preproc_warn_flag
11644   else
11645     ac_cpp_err=
11646   fi
11647 else
11648   ac_cpp_err=yes
11649 fi
11650 if test -z "$ac_cpp_err"; then
11651   ac_header_preproc=yes
11652 else
11653   echo "$as_me: failed program was:" >&5
11654 sed 's/^/| /' conftest.$ac_ext >&5
11655
11656   ac_header_preproc=no
11657 fi
11658 rm -f conftest.err conftest.$ac_ext
11659 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11660 echo "${ECHO_T}$ac_header_preproc" >&6
11661
11662 # So?  What about this header?
11663 case $ac_header_compiler:$ac_header_preproc in
11664   yes:no )
11665     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11666 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11667     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11668 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11669     (
11670       cat <<\_ASBOX
11671 ## ------------------------------------ ##
11672 ## Report this to bug-autoconf@gnu.org. ##
11673 ## ------------------------------------ ##
11674 _ASBOX
11675     ) |
11676       sed "s/^/$as_me: WARNING:     /" >&2
11677     ;;
11678   no:yes )
11679     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11680 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11681     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11682 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11683     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11684 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11685     (
11686       cat <<\_ASBOX
11687 ## ------------------------------------ ##
11688 ## Report this to bug-autoconf@gnu.org. ##
11689 ## ------------------------------------ ##
11690 _ASBOX
11691     ) |
11692       sed "s/^/$as_me: WARNING:     /" >&2
11693     ;;
11694 esac
11695 echo "$as_me:$LINENO: checking for $ac_header" >&5
11696 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11697 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11698   echo $ECHO_N "(cached) $ECHO_C" >&6
11699 else
11700   eval "$as_ac_Header=$ac_header_preproc"
11701 fi
11702 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11703 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11704
11705 fi
11706 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11707   cat >>confdefs.h <<_ACEOF
11708 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11709 _ACEOF
11710
11711 for ac_func in dlopen
11712 do
11713 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11714 echo "$as_me:$LINENO: checking for $ac_func" >&5
11715 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11716 if eval "test \"\${$as_ac_var+set}\" = set"; then
11717   echo $ECHO_N "(cached) $ECHO_C" >&6
11718 else
11719   cat >conftest.$ac_ext <<_ACEOF
11720 #line $LINENO "configure"
11721 /* confdefs.h.  */
11722 _ACEOF
11723 cat confdefs.h >>conftest.$ac_ext
11724 cat >>conftest.$ac_ext <<_ACEOF
11725 /* end confdefs.h.  */
11726 /* System header to define __stub macros and hopefully few prototypes,
11727     which can conflict with char $ac_func (); below.
11728     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11729     <limits.h> exists even on freestanding compilers.  */
11730 #ifdef __STDC__
11731 # include <limits.h>
11732 #else
11733 # include <assert.h>
11734 #endif
11735 /* Override any gcc2 internal prototype to avoid an error.  */
11736 #ifdef __cplusplus
11737 extern "C"
11738 {
11739 #endif
11740 /* We use char because int might match the return type of a gcc2
11741    builtin and then its argument prototype would still apply.  */
11742 char $ac_func ();
11743 /* The GNU C library defines this for functions which it implements
11744     to always fail with ENOSYS.  Some functions are actually named
11745     something starting with __ and the normal name is an alias.  */
11746 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11747 choke me
11748 #else
11749 char (*f) () = $ac_func;
11750 #endif
11751 #ifdef __cplusplus
11752 }
11753 #endif
11754
11755 int
11756 main ()
11757 {
11758 return f != $ac_func;
11759   ;
11760   return 0;
11761 }
11762 _ACEOF
11763 rm -f conftest.$ac_objext conftest$ac_exeext
11764 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11765   (eval $ac_link) 2>&5
11766   ac_status=$?
11767   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11768   (exit $ac_status); } &&
11769          { ac_try='test -s conftest$ac_exeext'
11770   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11771   (eval $ac_try) 2>&5
11772   ac_status=$?
11773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11774   (exit $ac_status); }; }; then
11775   eval "$as_ac_var=yes"
11776 else
11777   echo "$as_me: failed program was:" >&5
11778 sed 's/^/| /' conftest.$ac_ext >&5
11779
11780 eval "$as_ac_var=no"
11781 fi
11782 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11783 fi
11784 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11785 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11786 if test `eval echo '${'$as_ac_var'}'` = yes; then
11787   cat >>confdefs.h <<_ACEOF
11788 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11789 _ACEOF
11790
11791 else
11792   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11793 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11794 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11795   echo $ECHO_N "(cached) $ECHO_C" >&6
11796 else
11797   ac_check_lib_save_LIBS=$LIBS
11798 LIBS="-ldl  $LIBS"
11799 cat >conftest.$ac_ext <<_ACEOF
11800 #line $LINENO "configure"
11801 /* confdefs.h.  */
11802 _ACEOF
11803 cat confdefs.h >>conftest.$ac_ext
11804 cat >>conftest.$ac_ext <<_ACEOF
11805 /* end confdefs.h.  */
11806
11807 /* Override any gcc2 internal prototype to avoid an error.  */
11808 #ifdef __cplusplus
11809 extern "C"
11810 #endif
11811 /* We use char because int might match the return type of a gcc2
11812    builtin and then its argument prototype would still apply.  */
11813 char dlopen ();
11814 int
11815 main ()
11816 {
11817 dlopen ();
11818   ;
11819   return 0;
11820 }
11821 _ACEOF
11822 rm -f conftest.$ac_objext conftest$ac_exeext
11823 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11824   (eval $ac_link) 2>&5
11825   ac_status=$?
11826   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11827   (exit $ac_status); } &&
11828          { ac_try='test -s conftest$ac_exeext'
11829   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11830   (eval $ac_try) 2>&5
11831   ac_status=$?
11832   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11833   (exit $ac_status); }; }; then
11834   ac_cv_lib_dl_dlopen=yes
11835 else
11836   echo "$as_me: failed program was:" >&5
11837 sed 's/^/| /' conftest.$ac_ext >&5
11838
11839 ac_cv_lib_dl_dlopen=no
11840 fi
11841 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11842 LIBS=$ac_check_lib_save_LIBS
11843 fi
11844 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11845 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11846 if test $ac_cv_lib_dl_dlopen = yes; then
11847
11848 cat >>confdefs.h <<\_ACEOF
11849 #define HAVE_DLOPEN 1
11850 _ACEOF
11851
11852                           DLLIBS="-ldl"
11853 else
11854   LIBEXT="a"
11855 fi
11856
11857 fi
11858 done
11859
11860 else
11861   LIBEXT="a"
11862 fi
11863
11864 done
11865
11866
11867     if test "$LIBEXT" = "so"
11868     then
11869       DLLFLAGS="$DLLFLAGS -fPIC"
11870       DLLEXT=".so"
11871       echo "$as_me:$LINENO: checking whether we can build a GNU style ELF dll" >&5
11872 echo $ECHO_N "checking whether we can build a GNU style ELF dll... $ECHO_C" >&6
11873 if test "${ac_cv_c_dll_gnuelf+set}" = set; then
11874   echo $ECHO_N "(cached) $ECHO_C" >&6
11875 else
11876   ac_wine_try_cflags_saved=$CFLAGS
11877 CFLAGS="$CFLAGS -fPIC -shared -Wl,-soname,conftest.so.1.0,-Bsymbolic"
11878 cat >conftest.$ac_ext <<_ACEOF
11879 #line $LINENO "configure"
11880 /* confdefs.h.  */
11881 _ACEOF
11882 cat confdefs.h >>conftest.$ac_ext
11883 cat >>conftest.$ac_ext <<_ACEOF
11884 /* end confdefs.h.  */
11885
11886 int
11887 main ()
11888 {
11889
11890   ;
11891   return 0;
11892 }
11893 _ACEOF
11894 rm -f conftest.$ac_objext conftest$ac_exeext
11895 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11896   (eval $ac_link) 2>&5
11897   ac_status=$?
11898   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11899   (exit $ac_status); } &&
11900          { ac_try='test -s conftest$ac_exeext'
11901   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11902   (eval $ac_try) 2>&5
11903   ac_status=$?
11904   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11905   (exit $ac_status); }; }; then
11906   ac_cv_c_dll_gnuelf="yes"
11907 else
11908   echo "$as_me: failed program was:" >&5
11909 sed 's/^/| /' conftest.$ac_ext >&5
11910
11911 ac_cv_c_dll_gnuelf="no"
11912 fi
11913 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11914 CFLAGS=$ac_wine_try_cflags_saved
11915 fi
11916 echo "$as_me:$LINENO: result: $ac_cv_c_dll_gnuelf" >&5
11917 echo "${ECHO_T}$ac_cv_c_dll_gnuelf" >&6
11918       if test "$ac_cv_c_dll_gnuelf" = "yes"
11919       then
11920         LDSHARED="\$(CC) -shared \$(SONAME:%=-Wl,-soname,%)"
11921         LDDLL="\$(CC) -shared -Wl,-Bsymbolic"
11922         echo "$as_me:$LINENO: checking whether the linker accepts -z defs" >&5
11923 echo $ECHO_N "checking whether the linker accepts -z defs... $ECHO_C" >&6
11924 if test "${ac_cv_c_dll_zdefs+set}" = set; then
11925   echo $ECHO_N "(cached) $ECHO_C" >&6
11926 else
11927   ac_wine_try_cflags_saved=$CFLAGS
11928 CFLAGS="$CFLAGS -fPIC -shared -Wl,-Bsymbolic,-z,defs"
11929 cat >conftest.$ac_ext <<_ACEOF
11930 #line $LINENO "configure"
11931 /* confdefs.h.  */
11932 _ACEOF
11933 cat confdefs.h >>conftest.$ac_ext
11934 cat >>conftest.$ac_ext <<_ACEOF
11935 /* end confdefs.h.  */
11936
11937 int
11938 main ()
11939 {
11940
11941   ;
11942   return 0;
11943 }
11944 _ACEOF
11945 rm -f conftest.$ac_objext conftest$ac_exeext
11946 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11947   (eval $ac_link) 2>&5
11948   ac_status=$?
11949   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11950   (exit $ac_status); } &&
11951          { ac_try='test -s conftest$ac_exeext'
11952   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11953   (eval $ac_try) 2>&5
11954   ac_status=$?
11955   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11956   (exit $ac_status); }; }; then
11957   ac_cv_c_dll_zdefs="yes"
11958 else
11959   echo "$as_me: failed program was:" >&5
11960 sed 's/^/| /' conftest.$ac_ext >&5
11961
11962 ac_cv_c_dll_zdefs="no"
11963 fi
11964 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11965 CFLAGS=$ac_wine_try_cflags_saved
11966 fi
11967 echo "$as_me:$LINENO: result: $ac_cv_c_dll_zdefs" >&5
11968 echo "${ECHO_T}$ac_cv_c_dll_zdefs" >&6
11969         if test "$ac_cv_c_dll_zdefs" = "yes"
11970         then
11971           LDDLL="$LDDLL,-z,defs"
11972         fi
11973         echo "$as_me:$LINENO: checking whether we can relocate the executable to 0x3c000000" >&5
11974 echo $ECHO_N "checking whether we can relocate the executable to 0x3c000000... $ECHO_C" >&6
11975 if test "${ac_cv_ld_reloc_exec+set}" = set; then
11976   echo $ECHO_N "(cached) $ECHO_C" >&6
11977 else
11978   saved_CFLAGS="$CFLAGS"
11979            CFLAGS="$CFLAGS -Wl,--section-start,.interp=0x3c000100"
11980            if test "$cross_compiling" = yes; then
11981   ac_cv_ld_reloc_exec="no"
11982 else
11983   cat >conftest.$ac_ext <<_ACEOF
11984 #line $LINENO "configure"
11985 /* confdefs.h.  */
11986 _ACEOF
11987 cat confdefs.h >>conftest.$ac_ext
11988 cat >>conftest.$ac_ext <<_ACEOF
11989 /* end confdefs.h.  */
11990 #include <unistd.h>
11991                        int main() { return (sbrk(32*1024*1024) == (void *)-1); }
11992 _ACEOF
11993 rm -f conftest$ac_exeext
11994 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11995   (eval $ac_link) 2>&5
11996   ac_status=$?
11997   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11998   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11999   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12000   (eval $ac_try) 2>&5
12001   ac_status=$?
12002   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12003   (exit $ac_status); }; }; then
12004   ac_cv_ld_reloc_exec="yes"
12005 else
12006   echo "$as_me: program exited with status $ac_status" >&5
12007 echo "$as_me: failed program was:" >&5
12008 sed 's/^/| /' conftest.$ac_ext >&5
12009
12010 ( exit $ac_status )
12011 ac_cv_ld_reloc_exec="no"
12012 fi
12013 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12014 fi
12015            CFLAGS="$saved_CFLAGS"
12016 fi
12017 echo "$as_me:$LINENO: result: $ac_cv_ld_reloc_exec" >&5
12018 echo "${ECHO_T}$ac_cv_ld_reloc_exec" >&6
12019         if test "$ac_cv_ld_reloc_exec" = "yes"
12020         then
12021           LDEXECFLAGS="-Wl,--section-start,.interp=0x3c000100"
12022
12023         fi
12024       else
12025         echo "$as_me:$LINENO: checking whether we can build a UnixWare (Solaris) dll" >&5
12026 echo $ECHO_N "checking whether we can build a UnixWare (Solaris) dll... $ECHO_C" >&6
12027 if test "${ac_cv_c_dll_unixware+set}" = set; then
12028   echo $ECHO_N "(cached) $ECHO_C" >&6
12029 else
12030   ac_wine_try_cflags_saved=$CFLAGS
12031 CFLAGS="$CFLAGS -fPIC -Wl,-G,-h,conftest.so.1.0,-B,symbolic"
12032 cat >conftest.$ac_ext <<_ACEOF
12033 #line $LINENO "configure"
12034 /* confdefs.h.  */
12035 _ACEOF
12036 cat confdefs.h >>conftest.$ac_ext
12037 cat >>conftest.$ac_ext <<_ACEOF
12038 /* end confdefs.h.  */
12039
12040 int
12041 main ()
12042 {
12043
12044   ;
12045   return 0;
12046 }
12047 _ACEOF
12048 rm -f conftest.$ac_objext conftest$ac_exeext
12049 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12050   (eval $ac_link) 2>&5
12051   ac_status=$?
12052   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12053   (exit $ac_status); } &&
12054          { ac_try='test -s conftest$ac_exeext'
12055   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12056   (eval $ac_try) 2>&5
12057   ac_status=$?
12058   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12059   (exit $ac_status); }; }; then
12060   ac_cv_c_dll_unixware="yes"
12061 else
12062   echo "$as_me: failed program was:" >&5
12063 sed 's/^/| /' conftest.$ac_ext >&5
12064
12065 ac_cv_c_dll_unixware="no"
12066 fi
12067 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12068 CFLAGS=$ac_wine_try_cflags_saved
12069 fi
12070 echo "$as_me:$LINENO: result: $ac_cv_c_dll_unixware" >&5
12071 echo "${ECHO_T}$ac_cv_c_dll_unixware" >&6
12072         if test "$ac_cv_c_dll_unixware" = "yes"
12073         then
12074           LDSHARED="\$(CC) -Wl,-G \$(SONAME:%=-Wl,-h,%)"
12075           LDDLL="\$(CC) -Wl,-G,-B,symbolic"
12076         fi
12077       fi
12078     fi
12079
12080         CROSSTEST=""
12081
12082     if test "$cross_compiling" = "no"
12083     then
12084       for ac_prog in i586-mingw32msvc-gcc i386-mingw32-gcc
12085 do
12086   # Extract the first word of "$ac_prog", so it can be a program name with args.
12087 set dummy $ac_prog; ac_word=$2
12088 echo "$as_me:$LINENO: checking for $ac_word" >&5
12089 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12090 if test "${ac_cv_prog_CROSSCC+set}" = set; then
12091   echo $ECHO_N "(cached) $ECHO_C" >&6
12092 else
12093   if test -n "$CROSSCC"; then
12094   ac_cv_prog_CROSSCC="$CROSSCC" # Let the user override the test.
12095 else
12096 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12097 for as_dir in $PATH
12098 do
12099   IFS=$as_save_IFS
12100   test -z "$as_dir" && as_dir=.
12101   for ac_exec_ext in '' $ac_executable_extensions; do
12102   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12103     ac_cv_prog_CROSSCC="$ac_prog"
12104     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12105     break 2
12106   fi
12107 done
12108 done
12109
12110 fi
12111 fi
12112 CROSSCC=$ac_cv_prog_CROSSCC
12113 if test -n "$CROSSCC"; then
12114   echo "$as_me:$LINENO: result: $CROSSCC" >&5
12115 echo "${ECHO_T}$CROSSCC" >&6
12116 else
12117   echo "$as_me:$LINENO: result: no" >&5
12118 echo "${ECHO_T}no" >&6
12119 fi
12120
12121   test -n "$CROSSCC" && break
12122 done
12123 test -n "$CROSSCC" || CROSSCC="false"
12124
12125       for ac_prog in i586-mingw32msvc-dlltool i386-mingw32-dlltool
12126 do
12127   # Extract the first word of "$ac_prog", so it can be a program name with args.
12128 set dummy $ac_prog; ac_word=$2
12129 echo "$as_me:$LINENO: checking for $ac_word" >&5
12130 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12131 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
12132   echo $ECHO_N "(cached) $ECHO_C" >&6
12133 else
12134   if test -n "$DLLTOOL"; then
12135   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
12136 else
12137 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12138 for as_dir in $PATH
12139 do
12140   IFS=$as_save_IFS
12141   test -z "$as_dir" && as_dir=.
12142   for ac_exec_ext in '' $ac_executable_extensions; do
12143   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12144     ac_cv_prog_DLLTOOL="$ac_prog"
12145     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12146     break 2
12147   fi
12148 done
12149 done
12150
12151 fi
12152 fi
12153 DLLTOOL=$ac_cv_prog_DLLTOOL
12154 if test -n "$DLLTOOL"; then
12155   echo "$as_me:$LINENO: result: $DLLTOOL" >&5
12156 echo "${ECHO_T}$DLLTOOL" >&6
12157 else
12158   echo "$as_me:$LINENO: result: no" >&5
12159 echo "${ECHO_T}no" >&6
12160 fi
12161
12162   test -n "$DLLTOOL" && break
12163 done
12164 test -n "$DLLTOOL" || DLLTOOL="false"
12165
12166       for ac_prog in i586-mingw32msvc-windres i386-mingw32-windres
12167 do
12168   # Extract the first word of "$ac_prog", so it can be a program name with args.
12169 set dummy $ac_prog; ac_word=$2
12170 echo "$as_me:$LINENO: checking for $ac_word" >&5
12171 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12172 if test "${ac_cv_prog_CROSSWINDRES+set}" = set; then
12173   echo $ECHO_N "(cached) $ECHO_C" >&6
12174 else
12175   if test -n "$CROSSWINDRES"; then
12176   ac_cv_prog_CROSSWINDRES="$CROSSWINDRES" # Let the user override the test.
12177 else
12178 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12179 for as_dir in $PATH
12180 do
12181   IFS=$as_save_IFS
12182   test -z "$as_dir" && as_dir=.
12183   for ac_exec_ext in '' $ac_executable_extensions; do
12184   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12185     ac_cv_prog_CROSSWINDRES="$ac_prog"
12186     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12187     break 2
12188   fi
12189 done
12190 done
12191
12192 fi
12193 fi
12194 CROSSWINDRES=$ac_cv_prog_CROSSWINDRES
12195 if test -n "$CROSSWINDRES"; then
12196   echo "$as_me:$LINENO: result: $CROSSWINDRES" >&5
12197 echo "${ECHO_T}$CROSSWINDRES" >&6
12198 else
12199   echo "$as_me:$LINENO: result: no" >&5
12200 echo "${ECHO_T}no" >&6
12201 fi
12202
12203   test -n "$CROSSWINDRES" && break
12204 done
12205 test -n "$CROSSWINDRES" || CROSSWINDRES="false"
12206
12207       if test "$CROSSCC" != "false"; then CROSSTEST="\$(CROSSTEST)"; fi
12208     fi
12209     ;;
12210 esac
12211
12212 if test "$LIBEXT" = "a"; then
12213   { { echo "$as_me:$LINENO: error: could not find a way to build shared libraries.
12214 It is currently not possible to build Wine without shared library
12215 (.so) support to allow transparent switch between .so and .dll files.
12216 If you are using Linux, you will need a newer binutils.
12217 " >&5
12218 echo "$as_me: error: could not find a way to build shared libraries.
12219 It is currently not possible to build Wine without shared library
12220 (.so) support to allow transparent switch between .so and .dll files.
12221 If you are using Linux, you will need a newer binutils.
12222 " >&2;}
12223    { (exit 1); exit 1; }; }
12224 fi
12225
12226 case $build_os in
12227   cygwin*|mingw32*)
12228     LDPATH="PATH=\"\$(TOOLSDIR)/libs/unicode:\$\$PATH\""
12229  ;;
12230   *)
12231     LDPATH="LD_LIBRARY_PATH=\"\$(TOOLSDIR)/libs/unicode:\$\$LD_LIBRARY_PATH\""
12232  ;;
12233 esac
12234
12235 CRTLIBS=""
12236
12237 case $host_os in
12238   mingw32*)
12239     CRTLIBS="-lmsvcrt" ;;
12240 esac
12241
12242
12243 if test "$LIBEXT" = "so"
12244 then
12245   # Extract the first word of "ldd", so it can be a program name with args.
12246 set dummy ldd; ac_word=$2
12247 echo "$as_me:$LINENO: checking for $ac_word" >&5
12248 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12249 if test "${ac_cv_path_LDD+set}" = set; then
12250   echo $ECHO_N "(cached) $ECHO_C" >&6
12251 else
12252   case $LDD in
12253   [\\/]* | ?:[\\/]*)
12254   ac_cv_path_LDD="$LDD" # Let the user override the test with a path.
12255   ;;
12256   *)
12257   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12258 as_dummy="/sbin:/usr/sbin:$PATH"
12259 for as_dir in $as_dummy
12260 do
12261   IFS=$as_save_IFS
12262   test -z "$as_dir" && as_dir=.
12263   for ac_exec_ext in '' $ac_executable_extensions; do
12264   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12265     ac_cv_path_LDD="$as_dir/$ac_word$ac_exec_ext"
12266     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12267     break 2
12268   fi
12269 done
12270 done
12271
12272   test -z "$ac_cv_path_LDD" && ac_cv_path_LDD="true"
12273   ;;
12274 esac
12275 fi
12276 LDD=$ac_cv_path_LDD
12277
12278 if test -n "$LDD"; then
12279   echo "$as_me:$LINENO: result: $LDD" >&5
12280 echo "${ECHO_T}$LDD" >&6
12281 else
12282   echo "$as_me:$LINENO: result: no" >&5
12283 echo "${ECHO_T}no" >&6
12284 fi
12285
12286
12287 echo "$as_me:$LINENO: checking for -lX11 soname" >&5
12288 echo $ECHO_N "checking for -lX11 soname... $ECHO_C" >&6
12289 if test "${ac_cv_lib_soname_X11+set}" = set; then
12290   echo $ECHO_N "(cached) $ECHO_C" >&6
12291 else
12292   ac_get_soname_save_LIBS=$LIBS
12293 LIBS="-lX11 $X_LIBS $X_EXTRA_LIBS $LIBS"
12294   cat >conftest.$ac_ext <<_ACEOF
12295 #line $LINENO "configure"
12296 /* confdefs.h.  */
12297 _ACEOF
12298 cat confdefs.h >>conftest.$ac_ext
12299 cat >>conftest.$ac_ext <<_ACEOF
12300 /* end confdefs.h.  */
12301
12302 /* Override any gcc2 internal prototype to avoid an error.  */
12303 #ifdef __cplusplus
12304 extern "C"
12305 #endif
12306 /* We use char because int might match the return type of a gcc2
12307    builtin and then its argument prototype would still apply.  */
12308 char XCreateWindow ();
12309 int
12310 main ()
12311 {
12312 XCreateWindow ();
12313   ;
12314   return 0;
12315 }
12316 _ACEOF
12317 rm -f conftest.$ac_objext conftest$ac_exeext
12318 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12319   (eval $ac_link) 2>&5
12320   ac_status=$?
12321   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12322   (exit $ac_status); } &&
12323          { ac_try='test -s conftest$ac_exeext'
12324   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12325   (eval $ac_try) 2>&5
12326   ac_status=$?
12327   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12328   (exit $ac_status); }; }; then
12329   ac_cv_lib_soname_X11=`$ac_cv_path_LDD conftest$ac_exeext | grep libX11\\.so | sed 's/^.*\(libX11\.so[^         ]*\).*$/\1/'`
12330   if test "x$ac_cv_lib_soname_X11" = "x"
12331   then
12332      ac_cv_lib_soname_X11="libX11.so"
12333   fi
12334 else
12335   echo "$as_me: failed program was:" >&5
12336 sed 's/^/| /' conftest.$ac_ext >&5
12337
12338 ac_cv_lib_soname_X11="libX11.so"
12339 fi
12340 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12341   LIBS=$ac_get_soname_save_LIBS
12342 fi
12343 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_X11" >&5
12344 echo "${ECHO_T}$ac_cv_lib_soname_X11" >&6
12345 if test "x$ac_cv_lib_soname_X11" != xNONE
12346 then
12347 cat >>confdefs.h <<_ACEOF
12348 #define SONAME_LIBX11 "$ac_cv_lib_soname_X11"
12349 _ACEOF
12350 fi
12351
12352 echo "$as_me:$LINENO: checking for -lXext soname" >&5
12353 echo $ECHO_N "checking for -lXext soname... $ECHO_C" >&6
12354 if test "${ac_cv_lib_soname_Xext+set}" = set; then
12355   echo $ECHO_N "(cached) $ECHO_C" >&6
12356 else
12357   ac_get_soname_save_LIBS=$LIBS
12358 LIBS="-lXext $X_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
12359   cat >conftest.$ac_ext <<_ACEOF
12360 #line $LINENO "configure"
12361 /* confdefs.h.  */
12362 _ACEOF
12363 cat confdefs.h >>conftest.$ac_ext
12364 cat >>conftest.$ac_ext <<_ACEOF
12365 /* end confdefs.h.  */
12366
12367 /* Override any gcc2 internal prototype to avoid an error.  */
12368 #ifdef __cplusplus
12369 extern "C"
12370 #endif
12371 /* We use char because int might match the return type of a gcc2
12372    builtin and then its argument prototype would still apply.  */
12373 char XextCreateExtension ();
12374 int
12375 main ()
12376 {
12377 XextCreateExtension ();
12378   ;
12379   return 0;
12380 }
12381 _ACEOF
12382 rm -f conftest.$ac_objext conftest$ac_exeext
12383 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12384   (eval $ac_link) 2>&5
12385   ac_status=$?
12386   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12387   (exit $ac_status); } &&
12388          { ac_try='test -s conftest$ac_exeext'
12389   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12390   (eval $ac_try) 2>&5
12391   ac_status=$?
12392   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12393   (exit $ac_status); }; }; then
12394   ac_cv_lib_soname_Xext=`$ac_cv_path_LDD conftest$ac_exeext | grep libXext\\.so | sed 's/^.*\(libXext\.so[^      ]*\).*$/\1/'`
12395   if test "x$ac_cv_lib_soname_Xext" = "x"
12396   then
12397      ac_cv_lib_soname_Xext="libXext.so"
12398   fi
12399 else
12400   echo "$as_me: failed program was:" >&5
12401 sed 's/^/| /' conftest.$ac_ext >&5
12402
12403 ac_cv_lib_soname_Xext="libXext.so"
12404 fi
12405 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12406   LIBS=$ac_get_soname_save_LIBS
12407 fi
12408 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_Xext" >&5
12409 echo "${ECHO_T}$ac_cv_lib_soname_Xext" >&6
12410 if test "x$ac_cv_lib_soname_Xext" != xNONE
12411 then
12412 cat >>confdefs.h <<_ACEOF
12413 #define SONAME_LIBXEXT "$ac_cv_lib_soname_Xext"
12414 _ACEOF
12415 fi
12416
12417 echo "$as_me:$LINENO: checking for -lXrender soname" >&5
12418 echo $ECHO_N "checking for -lXrender soname... $ECHO_C" >&6
12419 if test "${ac_cv_lib_soname_Xrender+set}" = set; then
12420   echo $ECHO_N "(cached) $ECHO_C" >&6
12421 else
12422   ac_get_soname_save_LIBS=$LIBS
12423 LIBS="-lXrender $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
12424   cat >conftest.$ac_ext <<_ACEOF
12425 #line $LINENO "configure"
12426 /* confdefs.h.  */
12427 _ACEOF
12428 cat confdefs.h >>conftest.$ac_ext
12429 cat >>conftest.$ac_ext <<_ACEOF
12430 /* end confdefs.h.  */
12431
12432 /* Override any gcc2 internal prototype to avoid an error.  */
12433 #ifdef __cplusplus
12434 extern "C"
12435 #endif
12436 /* We use char because int might match the return type of a gcc2
12437    builtin and then its argument prototype would still apply.  */
12438 char XRenderQueryExtension ();
12439 int
12440 main ()
12441 {
12442 XRenderQueryExtension ();
12443   ;
12444   return 0;
12445 }
12446 _ACEOF
12447 rm -f conftest.$ac_objext conftest$ac_exeext
12448 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12449   (eval $ac_link) 2>&5
12450   ac_status=$?
12451   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12452   (exit $ac_status); } &&
12453          { ac_try='test -s conftest$ac_exeext'
12454   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12455   (eval $ac_try) 2>&5
12456   ac_status=$?
12457   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12458   (exit $ac_status); }; }; then
12459   ac_cv_lib_soname_Xrender=`$ac_cv_path_LDD conftest$ac_exeext | grep libXrender\\.so | sed 's/^.*\(libXrender\.so[^     ]*\).*$/\1/'`
12460   if test "x$ac_cv_lib_soname_Xrender" = "x"
12461   then
12462      ac_cv_lib_soname_Xrender="libXrender.so"
12463   fi
12464 else
12465   echo "$as_me: failed program was:" >&5
12466 sed 's/^/| /' conftest.$ac_ext >&5
12467
12468 ac_cv_lib_soname_Xrender="libXrender.so"
12469 fi
12470 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12471   LIBS=$ac_get_soname_save_LIBS
12472 fi
12473 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_Xrender" >&5
12474 echo "${ECHO_T}$ac_cv_lib_soname_Xrender" >&6
12475 if test "x$ac_cv_lib_soname_Xrender" != xNONE
12476 then
12477 cat >>confdefs.h <<_ACEOF
12478 #define SONAME_LIBXRENDER "$ac_cv_lib_soname_Xrender"
12479 _ACEOF
12480 fi
12481
12482 echo "$as_me:$LINENO: checking for -lfreetype soname" >&5
12483 echo $ECHO_N "checking for -lfreetype soname... $ECHO_C" >&6
12484 if test "${ac_cv_lib_soname_freetype+set}" = set; then
12485   echo $ECHO_N "(cached) $ECHO_C" >&6
12486 else
12487   ac_get_soname_save_LIBS=$LIBS
12488 LIBS="-lfreetype $X_LIBS $LIBS"
12489   cat >conftest.$ac_ext <<_ACEOF
12490 #line $LINENO "configure"
12491 /* confdefs.h.  */
12492 _ACEOF
12493 cat confdefs.h >>conftest.$ac_ext
12494 cat >>conftest.$ac_ext <<_ACEOF
12495 /* end confdefs.h.  */
12496
12497 /* Override any gcc2 internal prototype to avoid an error.  */
12498 #ifdef __cplusplus
12499 extern "C"
12500 #endif
12501 /* We use char because int might match the return type of a gcc2
12502    builtin and then its argument prototype would still apply.  */
12503 char FT_Init_FreeType ();
12504 int
12505 main ()
12506 {
12507 FT_Init_FreeType ();
12508   ;
12509   return 0;
12510 }
12511 _ACEOF
12512 rm -f conftest.$ac_objext conftest$ac_exeext
12513 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12514   (eval $ac_link) 2>&5
12515   ac_status=$?
12516   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12517   (exit $ac_status); } &&
12518          { ac_try='test -s conftest$ac_exeext'
12519   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12520   (eval $ac_try) 2>&5
12521   ac_status=$?
12522   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12523   (exit $ac_status); }; }; then
12524   ac_cv_lib_soname_freetype=`$ac_cv_path_LDD conftest$ac_exeext | grep libfreetype\\.so | sed 's/^.*\(libfreetype\.so[^  ]*\).*$/\1/'`
12525   if test "x$ac_cv_lib_soname_freetype" = "x"
12526   then
12527      ac_cv_lib_soname_freetype="libfreetype.so"
12528   fi
12529 else
12530   echo "$as_me: failed program was:" >&5
12531 sed 's/^/| /' conftest.$ac_ext >&5
12532
12533 ac_cv_lib_soname_freetype="libfreetype.so"
12534 fi
12535 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12536   LIBS=$ac_get_soname_save_LIBS
12537 fi
12538 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_freetype" >&5
12539 echo "${ECHO_T}$ac_cv_lib_soname_freetype" >&6
12540 if test "x$ac_cv_lib_soname_freetype" != xNONE
12541 then
12542 cat >>confdefs.h <<_ACEOF
12543 #define SONAME_LIBFREETYPE "$ac_cv_lib_soname_freetype"
12544 _ACEOF
12545 fi
12546
12547 echo "$as_me:$LINENO: checking for -lGL soname" >&5
12548 echo $ECHO_N "checking for -lGL soname... $ECHO_C" >&6
12549 if test "${ac_cv_lib_soname_GL+set}" = set; then
12550   echo $ECHO_N "(cached) $ECHO_C" >&6
12551 else
12552   ac_get_soname_save_LIBS=$LIBS
12553 LIBS="-lGL $X_LIBS $X_EXTRA_LIBS $LIBS"
12554   cat >conftest.$ac_ext <<_ACEOF
12555 #line $LINENO "configure"
12556 /* confdefs.h.  */
12557 _ACEOF
12558 cat confdefs.h >>conftest.$ac_ext
12559 cat >>conftest.$ac_ext <<_ACEOF
12560 /* end confdefs.h.  */
12561
12562 /* Override any gcc2 internal prototype to avoid an error.  */
12563 #ifdef __cplusplus
12564 extern "C"
12565 #endif
12566 /* We use char because int might match the return type of a gcc2
12567    builtin and then its argument prototype would still apply.  */
12568 char glXQueryExtension ();
12569 int
12570 main ()
12571 {
12572 glXQueryExtension ();
12573   ;
12574   return 0;
12575 }
12576 _ACEOF
12577 rm -f conftest.$ac_objext conftest$ac_exeext
12578 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12579   (eval $ac_link) 2>&5
12580   ac_status=$?
12581   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12582   (exit $ac_status); } &&
12583          { ac_try='test -s conftest$ac_exeext'
12584   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12585   (eval $ac_try) 2>&5
12586   ac_status=$?
12587   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12588   (exit $ac_status); }; }; then
12589   ac_cv_lib_soname_GL=`$ac_cv_path_LDD conftest$ac_exeext | grep libGL\\.so | sed 's/^.*\(libGL\.so[^    ]*\).*$/\1/'`
12590   if test "x$ac_cv_lib_soname_GL" = "x"
12591   then
12592      ac_cv_lib_soname_GL="libGL.so"
12593   fi
12594 else
12595   echo "$as_me: failed program was:" >&5
12596 sed 's/^/| /' conftest.$ac_ext >&5
12597
12598 ac_cv_lib_soname_GL="libGL.so"
12599 fi
12600 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12601   LIBS=$ac_get_soname_save_LIBS
12602 fi
12603 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_GL" >&5
12604 echo "${ECHO_T}$ac_cv_lib_soname_GL" >&6
12605 if test "x$ac_cv_lib_soname_GL" != xNONE
12606 then
12607 cat >>confdefs.h <<_ACEOF
12608 #define SONAME_LIBGL "$ac_cv_lib_soname_GL"
12609 _ACEOF
12610 fi
12611
12612 echo "$as_me:$LINENO: checking for -lcups soname" >&5
12613 echo $ECHO_N "checking for -lcups soname... $ECHO_C" >&6
12614 if test "${ac_cv_lib_soname_cups+set}" = set; then
12615   echo $ECHO_N "(cached) $ECHO_C" >&6
12616 else
12617   ac_get_soname_save_LIBS=$LIBS
12618 LIBS="-lcups  $LIBS"
12619   cat >conftest.$ac_ext <<_ACEOF
12620 #line $LINENO "configure"
12621 /* confdefs.h.  */
12622 _ACEOF
12623 cat confdefs.h >>conftest.$ac_ext
12624 cat >>conftest.$ac_ext <<_ACEOF
12625 /* end confdefs.h.  */
12626
12627 /* Override any gcc2 internal prototype to avoid an error.  */
12628 #ifdef __cplusplus
12629 extern "C"
12630 #endif
12631 /* We use char because int might match the return type of a gcc2
12632    builtin and then its argument prototype would still apply.  */
12633 char cupsGetDefault ();
12634 int
12635 main ()
12636 {
12637 cupsGetDefault ();
12638   ;
12639   return 0;
12640 }
12641 _ACEOF
12642 rm -f conftest.$ac_objext conftest$ac_exeext
12643 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12644   (eval $ac_link) 2>&5
12645   ac_status=$?
12646   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12647   (exit $ac_status); } &&
12648          { ac_try='test -s conftest$ac_exeext'
12649   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12650   (eval $ac_try) 2>&5
12651   ac_status=$?
12652   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12653   (exit $ac_status); }; }; then
12654   ac_cv_lib_soname_cups=`$ac_cv_path_LDD conftest$ac_exeext | grep libcups\\.so | sed 's/^.*\(libcups\.so[^      ]*\).*$/\1/'`
12655   if test "x$ac_cv_lib_soname_cups" = "x"
12656   then
12657      ac_cv_lib_soname_cups="libcups.so"
12658   fi
12659 else
12660   echo "$as_me: failed program was:" >&5
12661 sed 's/^/| /' conftest.$ac_ext >&5
12662
12663 ac_cv_lib_soname_cups="libcups.so"
12664 fi
12665 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12666   LIBS=$ac_get_soname_save_LIBS
12667 fi
12668 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_cups" >&5
12669 echo "${ECHO_T}$ac_cv_lib_soname_cups" >&6
12670 if test "x$ac_cv_lib_soname_cups" != xNONE
12671 then
12672 cat >>confdefs.h <<_ACEOF
12673 #define SONAME_LIBCUPS "$ac_cv_lib_soname_cups"
12674 _ACEOF
12675 fi
12676
12677 echo "$as_me:$LINENO: checking for -ljack soname" >&5
12678 echo $ECHO_N "checking for -ljack soname... $ECHO_C" >&6
12679 if test "${ac_cv_lib_soname_jack+set}" = set; then
12680   echo $ECHO_N "(cached) $ECHO_C" >&6
12681 else
12682   ac_get_soname_save_LIBS=$LIBS
12683 LIBS="-ljack  $LIBS"
12684   cat >conftest.$ac_ext <<_ACEOF
12685 #line $LINENO "configure"
12686 /* confdefs.h.  */
12687 _ACEOF
12688 cat confdefs.h >>conftest.$ac_ext
12689 cat >>conftest.$ac_ext <<_ACEOF
12690 /* end confdefs.h.  */
12691
12692 /* Override any gcc2 internal prototype to avoid an error.  */
12693 #ifdef __cplusplus
12694 extern "C"
12695 #endif
12696 /* We use char because int might match the return type of a gcc2
12697    builtin and then its argument prototype would still apply.  */
12698 char jack_client_new ();
12699 int
12700 main ()
12701 {
12702 jack_client_new ();
12703   ;
12704   return 0;
12705 }
12706 _ACEOF
12707 rm -f conftest.$ac_objext conftest$ac_exeext
12708 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12709   (eval $ac_link) 2>&5
12710   ac_status=$?
12711   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12712   (exit $ac_status); } &&
12713          { ac_try='test -s conftest$ac_exeext'
12714   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12715   (eval $ac_try) 2>&5
12716   ac_status=$?
12717   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12718   (exit $ac_status); }; }; then
12719   ac_cv_lib_soname_jack=`$ac_cv_path_LDD conftest$ac_exeext | grep libjack\\.so | sed 's/^.*\(libjack\.so[^      ]*\).*$/\1/'`
12720   if test "x$ac_cv_lib_soname_jack" = "x"
12721   then
12722      ac_cv_lib_soname_jack="libjack.so"
12723   fi
12724 else
12725   echo "$as_me: failed program was:" >&5
12726 sed 's/^/| /' conftest.$ac_ext >&5
12727
12728 ac_cv_lib_soname_jack="libjack.so"
12729 fi
12730 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12731   LIBS=$ac_get_soname_save_LIBS
12732 fi
12733 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_jack" >&5
12734 echo "${ECHO_T}$ac_cv_lib_soname_jack" >&6
12735 if test "x$ac_cv_lib_soname_jack" != xNONE
12736 then
12737 cat >>confdefs.h <<_ACEOF
12738 #define SONAME_LIBJACK "$ac_cv_lib_soname_jack"
12739 _ACEOF
12740 fi
12741
12742 echo "$as_me:$LINENO: checking for -lssl soname" >&5
12743 echo $ECHO_N "checking for -lssl soname... $ECHO_C" >&6
12744 if test "${ac_cv_lib_soname_ssl+set}" = set; then
12745   echo $ECHO_N "(cached) $ECHO_C" >&6
12746 else
12747   ac_get_soname_save_LIBS=$LIBS
12748 LIBS="-lssl  $LIBS"
12749   cat >conftest.$ac_ext <<_ACEOF
12750 #line $LINENO "configure"
12751 /* confdefs.h.  */
12752 _ACEOF
12753 cat confdefs.h >>conftest.$ac_ext
12754 cat >>conftest.$ac_ext <<_ACEOF
12755 /* end confdefs.h.  */
12756
12757 /* Override any gcc2 internal prototype to avoid an error.  */
12758 #ifdef __cplusplus
12759 extern "C"
12760 #endif
12761 /* We use char because int might match the return type of a gcc2
12762    builtin and then its argument prototype would still apply.  */
12763 char SSL_library_init ();
12764 int
12765 main ()
12766 {
12767 SSL_library_init ();
12768   ;
12769   return 0;
12770 }
12771 _ACEOF
12772 rm -f conftest.$ac_objext conftest$ac_exeext
12773 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12774   (eval $ac_link) 2>&5
12775   ac_status=$?
12776   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12777   (exit $ac_status); } &&
12778          { ac_try='test -s conftest$ac_exeext'
12779   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12780   (eval $ac_try) 2>&5
12781   ac_status=$?
12782   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12783   (exit $ac_status); }; }; then
12784   ac_cv_lib_soname_ssl=`$ac_cv_path_LDD conftest$ac_exeext | grep libssl\\.so | sed 's/^.*\(libssl\.so[^         ]*\).*$/\1/'`
12785   if test "x$ac_cv_lib_soname_ssl" = "x"
12786   then
12787      ac_cv_lib_soname_ssl="libssl.so"
12788   fi
12789 else
12790   echo "$as_me: failed program was:" >&5
12791 sed 's/^/| /' conftest.$ac_ext >&5
12792
12793 ac_cv_lib_soname_ssl="libssl.so"
12794 fi
12795 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12796   LIBS=$ac_get_soname_save_LIBS
12797 fi
12798 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_ssl" >&5
12799 echo "${ECHO_T}$ac_cv_lib_soname_ssl" >&6
12800 if test "x$ac_cv_lib_soname_ssl" != xNONE
12801 then
12802 cat >>confdefs.h <<_ACEOF
12803 #define SONAME_LIBSSL "$ac_cv_lib_soname_ssl"
12804 _ACEOF
12805 fi
12806
12807 echo "$as_me:$LINENO: checking for -lcrypto soname" >&5
12808 echo $ECHO_N "checking for -lcrypto soname... $ECHO_C" >&6
12809 if test "${ac_cv_lib_soname_crypto+set}" = set; then
12810   echo $ECHO_N "(cached) $ECHO_C" >&6
12811 else
12812   ac_get_soname_save_LIBS=$LIBS
12813 LIBS="-lcrypto  $LIBS"
12814   cat >conftest.$ac_ext <<_ACEOF
12815 #line $LINENO "configure"
12816 /* confdefs.h.  */
12817 _ACEOF
12818 cat confdefs.h >>conftest.$ac_ext
12819 cat >>conftest.$ac_ext <<_ACEOF
12820 /* end confdefs.h.  */
12821
12822 /* Override any gcc2 internal prototype to avoid an error.  */
12823 #ifdef __cplusplus
12824 extern "C"
12825 #endif
12826 /* We use char because int might match the return type of a gcc2
12827    builtin and then its argument prototype would still apply.  */
12828 char BIO_new_socket ();
12829 int
12830 main ()
12831 {
12832 BIO_new_socket ();
12833   ;
12834   return 0;
12835 }
12836 _ACEOF
12837 rm -f conftest.$ac_objext conftest$ac_exeext
12838 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12839   (eval $ac_link) 2>&5
12840   ac_status=$?
12841   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12842   (exit $ac_status); } &&
12843          { ac_try='test -s conftest$ac_exeext'
12844   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12845   (eval $ac_try) 2>&5
12846   ac_status=$?
12847   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12848   (exit $ac_status); }; }; then
12849   ac_cv_lib_soname_crypto=`$ac_cv_path_LDD conftest$ac_exeext | grep libcrypto\\.so | sed 's/^.*\(libcrypto\.so[^        ]*\).*$/\1/'`
12850   if test "x$ac_cv_lib_soname_crypto" = "x"
12851   then
12852      ac_cv_lib_soname_crypto="libcrypto.so"
12853   fi
12854 else
12855   echo "$as_me: failed program was:" >&5
12856 sed 's/^/| /' conftest.$ac_ext >&5
12857
12858 ac_cv_lib_soname_crypto="libcrypto.so"
12859 fi
12860 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12861   LIBS=$ac_get_soname_save_LIBS
12862 fi
12863 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_crypto" >&5
12864 echo "${ECHO_T}$ac_cv_lib_soname_crypto" >&6
12865 if test "x$ac_cv_lib_soname_crypto" != xNONE
12866 then
12867 cat >>confdefs.h <<_ACEOF
12868 #define SONAME_LIBCRYPTO "$ac_cv_lib_soname_crypto"
12869 _ACEOF
12870 fi
12871
12872 echo "$as_me:$LINENO: checking for -lncurses soname" >&5
12873 echo $ECHO_N "checking for -lncurses soname... $ECHO_C" >&6
12874 if test "${ac_cv_lib_soname_ncurses+set}" = set; then
12875   echo $ECHO_N "(cached) $ECHO_C" >&6
12876 else
12877   ac_get_soname_save_LIBS=$LIBS
12878 LIBS="-lncurses  $LIBS"
12879   cat >conftest.$ac_ext <<_ACEOF
12880 #line $LINENO "configure"
12881 /* confdefs.h.  */
12882 _ACEOF
12883 cat confdefs.h >>conftest.$ac_ext
12884 cat >>conftest.$ac_ext <<_ACEOF
12885 /* end confdefs.h.  */
12886
12887 /* Override any gcc2 internal prototype to avoid an error.  */
12888 #ifdef __cplusplus
12889 extern "C"
12890 #endif
12891 /* We use char because int might match the return type of a gcc2
12892    builtin and then its argument prototype would still apply.  */
12893 char waddch ();
12894 int
12895 main ()
12896 {
12897 waddch ();
12898   ;
12899   return 0;
12900 }
12901 _ACEOF
12902 rm -f conftest.$ac_objext conftest$ac_exeext
12903 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12904   (eval $ac_link) 2>&5
12905   ac_status=$?
12906   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12907   (exit $ac_status); } &&
12908          { ac_try='test -s conftest$ac_exeext'
12909   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12910   (eval $ac_try) 2>&5
12911   ac_status=$?
12912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12913   (exit $ac_status); }; }; then
12914   ac_cv_lib_soname_ncurses=`$ac_cv_path_LDD conftest$ac_exeext | grep libncurses\\.so | sed 's/^.*\(libncurses\.so[^     ]*\).*$/\1/'`
12915   if test "x$ac_cv_lib_soname_ncurses" = "x"
12916   then
12917      ac_cv_lib_soname_ncurses="libncurses.so"
12918   fi
12919 else
12920   echo "$as_me: failed program was:" >&5
12921 sed 's/^/| /' conftest.$ac_ext >&5
12922
12923 ac_cv_lib_soname_ncurses="libncurses.so"
12924 fi
12925 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12926   LIBS=$ac_get_soname_save_LIBS
12927 fi
12928 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_ncurses" >&5
12929 echo "${ECHO_T}$ac_cv_lib_soname_ncurses" >&6
12930 if test "x$ac_cv_lib_soname_ncurses" != xNONE
12931 then
12932 cat >>confdefs.h <<_ACEOF
12933 #define SONAME_LIBNCURSES "$ac_cv_lib_soname_ncurses"
12934 _ACEOF
12935 fi
12936
12937 echo "$as_me:$LINENO: checking for -lcurses soname" >&5
12938 echo $ECHO_N "checking for -lcurses soname... $ECHO_C" >&6
12939 if test "${ac_cv_lib_soname_curses+set}" = set; then
12940   echo $ECHO_N "(cached) $ECHO_C" >&6
12941 else
12942   ac_get_soname_save_LIBS=$LIBS
12943 LIBS="-lcurses  $LIBS"
12944   cat >conftest.$ac_ext <<_ACEOF
12945 #line $LINENO "configure"
12946 /* confdefs.h.  */
12947 _ACEOF
12948 cat confdefs.h >>conftest.$ac_ext
12949 cat >>conftest.$ac_ext <<_ACEOF
12950 /* end confdefs.h.  */
12951
12952 /* Override any gcc2 internal prototype to avoid an error.  */
12953 #ifdef __cplusplus
12954 extern "C"
12955 #endif
12956 /* We use char because int might match the return type of a gcc2
12957    builtin and then its argument prototype would still apply.  */
12958 char waddch ();
12959 int
12960 main ()
12961 {
12962 waddch ();
12963   ;
12964   return 0;
12965 }
12966 _ACEOF
12967 rm -f conftest.$ac_objext conftest$ac_exeext
12968 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12969   (eval $ac_link) 2>&5
12970   ac_status=$?
12971   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12972   (exit $ac_status); } &&
12973          { ac_try='test -s conftest$ac_exeext'
12974   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12975   (eval $ac_try) 2>&5
12976   ac_status=$?
12977   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12978   (exit $ac_status); }; }; then
12979   ac_cv_lib_soname_curses=`$ac_cv_path_LDD conftest$ac_exeext | grep libcurses\\.so | sed 's/^.*\(libcurses\.so[^        ]*\).*$/\1/'`
12980   if test "x$ac_cv_lib_soname_curses" = "x"
12981   then
12982      ac_cv_lib_soname_curses="libcurses.so"
12983   fi
12984 else
12985   echo "$as_me: failed program was:" >&5
12986 sed 's/^/| /' conftest.$ac_ext >&5
12987
12988 ac_cv_lib_soname_curses="libcurses.so"
12989 fi
12990 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12991   LIBS=$ac_get_soname_save_LIBS
12992 fi
12993 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_curses" >&5
12994 echo "${ECHO_T}$ac_cv_lib_soname_curses" >&6
12995 if test "x$ac_cv_lib_soname_curses" != xNONE
12996 then
12997 cat >>confdefs.h <<_ACEOF
12998 #define SONAME_LIBCURSES "$ac_cv_lib_soname_curses"
12999 _ACEOF
13000 fi
13001 fi
13002
13003
13004
13005 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
13006 # for constant arguments.  Useless!
13007 echo "$as_me:$LINENO: checking for working alloca.h" >&5
13008 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
13009 if test "${ac_cv_working_alloca_h+set}" = set; then
13010   echo $ECHO_N "(cached) $ECHO_C" >&6
13011 else
13012   cat >conftest.$ac_ext <<_ACEOF
13013 #line $LINENO "configure"
13014 /* confdefs.h.  */
13015 _ACEOF
13016 cat confdefs.h >>conftest.$ac_ext
13017 cat >>conftest.$ac_ext <<_ACEOF
13018 /* end confdefs.h.  */
13019 #include <alloca.h>
13020 int
13021 main ()
13022 {
13023 char *p = (char *) alloca (2 * sizeof (int));
13024   ;
13025   return 0;
13026 }
13027 _ACEOF
13028 rm -f conftest.$ac_objext conftest$ac_exeext
13029 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13030   (eval $ac_link) 2>&5
13031   ac_status=$?
13032   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13033   (exit $ac_status); } &&
13034          { ac_try='test -s conftest$ac_exeext'
13035   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13036   (eval $ac_try) 2>&5
13037   ac_status=$?
13038   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13039   (exit $ac_status); }; }; then
13040   ac_cv_working_alloca_h=yes
13041 else
13042   echo "$as_me: failed program was:" >&5
13043 sed 's/^/| /' conftest.$ac_ext >&5
13044
13045 ac_cv_working_alloca_h=no
13046 fi
13047 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13048 fi
13049 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
13050 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
13051 if test $ac_cv_working_alloca_h = yes; then
13052
13053 cat >>confdefs.h <<\_ACEOF
13054 #define HAVE_ALLOCA_H 1
13055 _ACEOF
13056
13057 fi
13058
13059 echo "$as_me:$LINENO: checking for alloca" >&5
13060 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
13061 if test "${ac_cv_func_alloca_works+set}" = set; then
13062   echo $ECHO_N "(cached) $ECHO_C" >&6
13063 else
13064   cat >conftest.$ac_ext <<_ACEOF
13065 #line $LINENO "configure"
13066 /* confdefs.h.  */
13067 _ACEOF
13068 cat confdefs.h >>conftest.$ac_ext
13069 cat >>conftest.$ac_ext <<_ACEOF
13070 /* end confdefs.h.  */
13071 #ifdef __GNUC__
13072 # define alloca __builtin_alloca
13073 #else
13074 # ifdef _MSC_VER
13075 #  include <malloc.h>
13076 #  define alloca _alloca
13077 # else
13078 #  if HAVE_ALLOCA_H
13079 #   include <alloca.h>
13080 #  else
13081 #   ifdef _AIX
13082  #pragma alloca
13083 #   else
13084 #    ifndef alloca /* predefined by HP cc +Olibcalls */
13085 char *alloca ();
13086 #    endif
13087 #   endif
13088 #  endif
13089 # endif
13090 #endif
13091
13092 int
13093 main ()
13094 {
13095 char *p = (char *) alloca (1);
13096   ;
13097   return 0;
13098 }
13099 _ACEOF
13100 rm -f conftest.$ac_objext conftest$ac_exeext
13101 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13102   (eval $ac_link) 2>&5
13103   ac_status=$?
13104   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13105   (exit $ac_status); } &&
13106          { ac_try='test -s conftest$ac_exeext'
13107   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13108   (eval $ac_try) 2>&5
13109   ac_status=$?
13110   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13111   (exit $ac_status); }; }; then
13112   ac_cv_func_alloca_works=yes
13113 else
13114   echo "$as_me: failed program was:" >&5
13115 sed 's/^/| /' conftest.$ac_ext >&5
13116
13117 ac_cv_func_alloca_works=no
13118 fi
13119 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13120 fi
13121 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
13122 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
13123
13124 if test $ac_cv_func_alloca_works = yes; then
13125
13126 cat >>confdefs.h <<\_ACEOF
13127 #define HAVE_ALLOCA 1
13128 _ACEOF
13129
13130 else
13131   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
13132 # that cause trouble.  Some versions do not even contain alloca or
13133 # contain a buggy version.  If you still want to use their alloca,
13134 # use ar to extract alloca.o from them instead of compiling alloca.c.
13135
13136 ALLOCA=alloca.$ac_objext
13137
13138 cat >>confdefs.h <<\_ACEOF
13139 #define C_ALLOCA 1
13140 _ACEOF
13141
13142
13143 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
13144 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
13145 if test "${ac_cv_os_cray+set}" = set; then
13146   echo $ECHO_N "(cached) $ECHO_C" >&6
13147 else
13148   cat >conftest.$ac_ext <<_ACEOF
13149 #line $LINENO "configure"
13150 /* confdefs.h.  */
13151 _ACEOF
13152 cat confdefs.h >>conftest.$ac_ext
13153 cat >>conftest.$ac_ext <<_ACEOF
13154 /* end confdefs.h.  */
13155 #if defined(CRAY) && ! defined(CRAY2)
13156 webecray
13157 #else
13158 wenotbecray
13159 #endif
13160
13161 _ACEOF
13162 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13163   $EGREP "webecray" >/dev/null 2>&1; then
13164   ac_cv_os_cray=yes
13165 else
13166   ac_cv_os_cray=no
13167 fi
13168 rm -f conftest*
13169
13170 fi
13171 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
13172 echo "${ECHO_T}$ac_cv_os_cray" >&6
13173 if test $ac_cv_os_cray = yes; then
13174   for ac_func in _getb67 GETB67 getb67; do
13175     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13176 echo "$as_me:$LINENO: checking for $ac_func" >&5
13177 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13178 if eval "test \"\${$as_ac_var+set}\" = set"; then
13179   echo $ECHO_N "(cached) $ECHO_C" >&6
13180 else
13181   cat >conftest.$ac_ext <<_ACEOF
13182 #line $LINENO "configure"
13183 /* confdefs.h.  */
13184 _ACEOF
13185 cat confdefs.h >>conftest.$ac_ext
13186 cat >>conftest.$ac_ext <<_ACEOF
13187 /* end confdefs.h.  */
13188 /* System header to define __stub macros and hopefully few prototypes,
13189     which can conflict with char $ac_func (); below.
13190     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13191     <limits.h> exists even on freestanding compilers.  */
13192 #ifdef __STDC__
13193 # include <limits.h>
13194 #else
13195 # include <assert.h>
13196 #endif
13197 /* Override any gcc2 internal prototype to avoid an error.  */
13198 #ifdef __cplusplus
13199 extern "C"
13200 {
13201 #endif
13202 /* We use char because int might match the return type of a gcc2
13203    builtin and then its argument prototype would still apply.  */
13204 char $ac_func ();
13205 /* The GNU C library defines this for functions which it implements
13206     to always fail with ENOSYS.  Some functions are actually named
13207     something starting with __ and the normal name is an alias.  */
13208 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13209 choke me
13210 #else
13211 char (*f) () = $ac_func;
13212 #endif
13213 #ifdef __cplusplus
13214 }
13215 #endif
13216
13217 int
13218 main ()
13219 {
13220 return f != $ac_func;
13221   ;
13222   return 0;
13223 }
13224 _ACEOF
13225 rm -f conftest.$ac_objext conftest$ac_exeext
13226 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13227   (eval $ac_link) 2>&5
13228   ac_status=$?
13229   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13230   (exit $ac_status); } &&
13231          { ac_try='test -s conftest$ac_exeext'
13232   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13233   (eval $ac_try) 2>&5
13234   ac_status=$?
13235   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13236   (exit $ac_status); }; }; then
13237   eval "$as_ac_var=yes"
13238 else
13239   echo "$as_me: failed program was:" >&5
13240 sed 's/^/| /' conftest.$ac_ext >&5
13241
13242 eval "$as_ac_var=no"
13243 fi
13244 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13245 fi
13246 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13247 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13248 if test `eval echo '${'$as_ac_var'}'` = yes; then
13249
13250 cat >>confdefs.h <<_ACEOF
13251 #define CRAY_STACKSEG_END $ac_func
13252 _ACEOF
13253
13254     break
13255 fi
13256
13257   done
13258 fi
13259
13260 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
13261 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
13262 if test "${ac_cv_c_stack_direction+set}" = set; then
13263   echo $ECHO_N "(cached) $ECHO_C" >&6
13264 else
13265   if test "$cross_compiling" = yes; then
13266   ac_cv_c_stack_direction=0
13267 else
13268   cat >conftest.$ac_ext <<_ACEOF
13269 #line $LINENO "configure"
13270 /* confdefs.h.  */
13271 _ACEOF
13272 cat confdefs.h >>conftest.$ac_ext
13273 cat >>conftest.$ac_ext <<_ACEOF
13274 /* end confdefs.h.  */
13275 int
13276 find_stack_direction ()
13277 {
13278   static char *addr = 0;
13279   auto char dummy;
13280   if (addr == 0)
13281     {
13282       addr = &dummy;
13283       return find_stack_direction ();
13284     }
13285   else
13286     return (&dummy > addr) ? 1 : -1;
13287 }
13288
13289 int
13290 main ()
13291 {
13292   exit (find_stack_direction () < 0);
13293 }
13294 _ACEOF
13295 rm -f conftest$ac_exeext
13296 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13297   (eval $ac_link) 2>&5
13298   ac_status=$?
13299   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13300   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13301   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13302   (eval $ac_try) 2>&5
13303   ac_status=$?
13304   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13305   (exit $ac_status); }; }; then
13306   ac_cv_c_stack_direction=1
13307 else
13308   echo "$as_me: program exited with status $ac_status" >&5
13309 echo "$as_me: failed program was:" >&5
13310 sed 's/^/| /' conftest.$ac_ext >&5
13311
13312 ( exit $ac_status )
13313 ac_cv_c_stack_direction=-1
13314 fi
13315 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13316 fi
13317 fi
13318 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
13319 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
13320
13321 cat >>confdefs.h <<_ACEOF
13322 #define STACK_DIRECTION $ac_cv_c_stack_direction
13323 _ACEOF
13324
13325
13326 fi
13327
13328
13329
13330
13331
13332
13333
13334
13335
13336
13337
13338
13339
13340
13341
13342
13343
13344
13345
13346
13347
13348
13349
13350
13351
13352
13353
13354
13355
13356
13357
13358
13359
13360
13361
13362
13363
13364
13365
13366
13367
13368
13369
13370
13371
13372
13373
13374
13375
13376
13377
13378
13379 for ac_func in \
13380         _lwp_create \
13381         _lwp_self \
13382         _pclose \
13383         _popen \
13384         _snprintf \
13385         _spawnvp \
13386         _stricmp \
13387         _strnicmp \
13388         _vsnprintf \
13389         chsize \
13390         clone \
13391         finite \
13392         fpclass \
13393         ftruncate \
13394         ftruncate64 \
13395         getnetbyaddr \
13396         getnetbyname \
13397         getopt_long \
13398         getpagesize \
13399         getprotobyname \
13400         getprotobynumber \
13401         getpwuid \
13402         getservbyport \
13403         gettimeofday \
13404         inet_network \
13405         lseek64 \
13406         lstat \
13407         memmove \
13408         mmap \
13409         pclose \
13410         popen \
13411         pread \
13412         pwrite \
13413         rfork \
13414         select \
13415         sendmsg \
13416         settimeofday \
13417         sigaltstack \
13418         snprintf \
13419         spawnvp \
13420         statfs \
13421         strcasecmp \
13422         strerror \
13423         strncasecmp \
13424         tcgetattr \
13425         timegm \
13426         usleep \
13427         vfscanf \
13428         vsnprintf \
13429         wait4 \
13430         waitpid \
13431
13432 do
13433 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13434 echo "$as_me:$LINENO: checking for $ac_func" >&5
13435 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13436 if eval "test \"\${$as_ac_var+set}\" = set"; then
13437   echo $ECHO_N "(cached) $ECHO_C" >&6
13438 else
13439   cat >conftest.$ac_ext <<_ACEOF
13440 #line $LINENO "configure"
13441 /* confdefs.h.  */
13442 _ACEOF
13443 cat confdefs.h >>conftest.$ac_ext
13444 cat >>conftest.$ac_ext <<_ACEOF
13445 /* end confdefs.h.  */
13446 /* System header to define __stub macros and hopefully few prototypes,
13447     which can conflict with char $ac_func (); below.
13448     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13449     <limits.h> exists even on freestanding compilers.  */
13450 #ifdef __STDC__
13451 # include <limits.h>
13452 #else
13453 # include <assert.h>
13454 #endif
13455 /* Override any gcc2 internal prototype to avoid an error.  */
13456 #ifdef __cplusplus
13457 extern "C"
13458 {
13459 #endif
13460 /* We use char because int might match the return type of a gcc2
13461    builtin and then its argument prototype would still apply.  */
13462 char $ac_func ();
13463 /* The GNU C library defines this for functions which it implements
13464     to always fail with ENOSYS.  Some functions are actually named
13465     something starting with __ and the normal name is an alias.  */
13466 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13467 choke me
13468 #else
13469 char (*f) () = $ac_func;
13470 #endif
13471 #ifdef __cplusplus
13472 }
13473 #endif
13474
13475 int
13476 main ()
13477 {
13478 return f != $ac_func;
13479   ;
13480   return 0;
13481 }
13482 _ACEOF
13483 rm -f conftest.$ac_objext conftest$ac_exeext
13484 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13485   (eval $ac_link) 2>&5
13486   ac_status=$?
13487   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13488   (exit $ac_status); } &&
13489          { ac_try='test -s conftest$ac_exeext'
13490   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13491   (eval $ac_try) 2>&5
13492   ac_status=$?
13493   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13494   (exit $ac_status); }; }; then
13495   eval "$as_ac_var=yes"
13496 else
13497   echo "$as_me: failed program was:" >&5
13498 sed 's/^/| /' conftest.$ac_ext >&5
13499
13500 eval "$as_ac_var=no"
13501 fi
13502 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13503 fi
13504 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13505 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13506 if test `eval echo '${'$as_ac_var'}'` = yes; then
13507   cat >>confdefs.h <<_ACEOF
13508 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13509 _ACEOF
13510
13511 fi
13512 done
13513
13514
13515
13516
13517
13518
13519
13520
13521
13522
13523
13524
13525
13526
13527
13528
13529
13530
13531
13532
13533
13534
13535
13536
13537
13538
13539
13540
13541
13542
13543
13544
13545
13546
13547
13548
13549
13550
13551
13552
13553
13554
13555
13556
13557
13558
13559
13560
13561
13562
13563
13564
13565
13566
13567
13568
13569
13570
13571
13572
13573
13574
13575
13576
13577
13578
13579
13580
13581
13582
13583
13584
13585
13586
13587
13588
13589
13590
13591
13592
13593
13594
13595 for ac_header in \
13596         arpa/inet.h \
13597         arpa/nameser.h \
13598         cups/cups.h \
13599         direct.h \
13600         elf.h \
13601         float.h \
13602         getopt.h \
13603         ieeefp.h \
13604         io.h \
13605         jack/jack.h \
13606         libio.h \
13607         libutil.h \
13608         link.h \
13609         linux/cdrom.h \
13610         linux/hdreg.h \
13611         linux/input.h \
13612         linux/joystick.h \
13613         linux/major.h \
13614         linux/param.h \
13615         linux/serial.h \
13616         linux/ucdrom.h \
13617         machine/cpu.h \
13618         netdb.h \
13619         netinet/in.h \
13620         netinet/in_systm.h \
13621         netinet/tcp.h \
13622         netinet/tcp_fsm.h \
13623         openssl/ssl.h \
13624         process.h \
13625         pthread.h \
13626         pty.h \
13627         pwd.h \
13628         regex.h \
13629         sched.h \
13630         scsi/sg.h \
13631         scsi/scsi.h \
13632         scsi/scsi_ioctl.h \
13633         socket.h \
13634         stdint.h \
13635         strings.h \
13636         sys/cdio.h \
13637         sys/errno.h \
13638         sys/file.h \
13639         sys/filio.h \
13640         sys/inttypes.h \
13641         sys/ioctl.h \
13642         sys/ipc.h \
13643         sys/link.h \
13644         sys/lwp.h \
13645         sys/mman.h \
13646         sys/modem.h \
13647         sys/msg.h \
13648         sys/param.h \
13649         sys/poll.h \
13650         sys/ptrace.h \
13651         sys/reg.h \
13652         sys/scsiio.h \
13653         sys/shm.h \
13654         sys/signal.h \
13655         sys/socket.h \
13656         sys/sockio.h \
13657         sys/statfs.h \
13658         sys/strtio.h \
13659         sys/syscall.h \
13660         sys/sysctl.h \
13661         sys/time.h \
13662         sys/times.h \
13663         sys/uio.h \
13664         sys/un.h \
13665         sys/v86.h \
13666         sys/v86intr.h \
13667         sys/vfs.h \
13668         sys/vm86.h \
13669         sys/wait.h \
13670         syscall.h \
13671         termios.h \
13672         unistd.h \
13673         utime.h \
13674         valgrind/memcheck.h
13675
13676 do
13677 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13678 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13679   echo "$as_me:$LINENO: checking for $ac_header" >&5
13680 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13681 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13682   echo $ECHO_N "(cached) $ECHO_C" >&6
13683 fi
13684 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13685 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13686 else
13687   # Is the header compilable?
13688 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13689 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13690 cat >conftest.$ac_ext <<_ACEOF
13691 #line $LINENO "configure"
13692 /* confdefs.h.  */
13693 _ACEOF
13694 cat confdefs.h >>conftest.$ac_ext
13695 cat >>conftest.$ac_ext <<_ACEOF
13696 /* end confdefs.h.  */
13697 $ac_includes_default
13698 #include <$ac_header>
13699 _ACEOF
13700 rm -f conftest.$ac_objext
13701 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13702   (eval $ac_compile) 2>&5
13703   ac_status=$?
13704   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13705   (exit $ac_status); } &&
13706          { ac_try='test -s conftest.$ac_objext'
13707   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13708   (eval $ac_try) 2>&5
13709   ac_status=$?
13710   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13711   (exit $ac_status); }; }; then
13712   ac_header_compiler=yes
13713 else
13714   echo "$as_me: failed program was:" >&5
13715 sed 's/^/| /' conftest.$ac_ext >&5
13716
13717 ac_header_compiler=no
13718 fi
13719 rm -f conftest.$ac_objext conftest.$ac_ext
13720 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13721 echo "${ECHO_T}$ac_header_compiler" >&6
13722
13723 # Is the header present?
13724 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13725 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13726 cat >conftest.$ac_ext <<_ACEOF
13727 #line $LINENO "configure"
13728 /* confdefs.h.  */
13729 _ACEOF
13730 cat confdefs.h >>conftest.$ac_ext
13731 cat >>conftest.$ac_ext <<_ACEOF
13732 /* end confdefs.h.  */
13733 #include <$ac_header>
13734 _ACEOF
13735 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13736   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13737   ac_status=$?
13738   grep -v '^ *+' conftest.er1 >conftest.err
13739   rm -f conftest.er1
13740   cat conftest.err >&5
13741   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13742   (exit $ac_status); } >/dev/null; then
13743   if test -s conftest.err; then
13744     ac_cpp_err=$ac_c_preproc_warn_flag
13745   else
13746     ac_cpp_err=
13747   fi
13748 else
13749   ac_cpp_err=yes
13750 fi
13751 if test -z "$ac_cpp_err"; then
13752   ac_header_preproc=yes
13753 else
13754   echo "$as_me: failed program was:" >&5
13755 sed 's/^/| /' conftest.$ac_ext >&5
13756
13757   ac_header_preproc=no
13758 fi
13759 rm -f conftest.err conftest.$ac_ext
13760 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13761 echo "${ECHO_T}$ac_header_preproc" >&6
13762
13763 # So?  What about this header?
13764 case $ac_header_compiler:$ac_header_preproc in
13765   yes:no )
13766     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13767 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13768     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13769 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13770     (
13771       cat <<\_ASBOX
13772 ## ------------------------------------ ##
13773 ## Report this to bug-autoconf@gnu.org. ##
13774 ## ------------------------------------ ##
13775 _ASBOX
13776     ) |
13777       sed "s/^/$as_me: WARNING:     /" >&2
13778     ;;
13779   no:yes )
13780     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13781 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13782     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13783 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13784     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13785 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13786     (
13787       cat <<\_ASBOX
13788 ## ------------------------------------ ##
13789 ## Report this to bug-autoconf@gnu.org. ##
13790 ## ------------------------------------ ##
13791 _ASBOX
13792     ) |
13793       sed "s/^/$as_me: WARNING:     /" >&2
13794     ;;
13795 esac
13796 echo "$as_me:$LINENO: checking for $ac_header" >&5
13797 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13798 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13799   echo $ECHO_N "(cached) $ECHO_C" >&6
13800 else
13801   eval "$as_ac_Header=$ac_header_preproc"
13802 fi
13803 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13804 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13805
13806 fi
13807 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13808   cat >>confdefs.h <<_ACEOF
13809 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13810 _ACEOF
13811
13812 fi
13813
13814 done
13815
13816 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
13817 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
13818 if test "${ac_cv_header_stat_broken+set}" = set; then
13819   echo $ECHO_N "(cached) $ECHO_C" >&6
13820 else
13821   cat >conftest.$ac_ext <<_ACEOF
13822 #line $LINENO "configure"
13823 /* confdefs.h.  */
13824 _ACEOF
13825 cat confdefs.h >>conftest.$ac_ext
13826 cat >>conftest.$ac_ext <<_ACEOF
13827 /* end confdefs.h.  */
13828 #include <sys/types.h>
13829 #include <sys/stat.h>
13830
13831 #if defined(S_ISBLK) && defined(S_IFDIR)
13832 # if S_ISBLK (S_IFDIR)
13833 You lose.
13834 # endif
13835 #endif
13836
13837 #if defined(S_ISBLK) && defined(S_IFCHR)
13838 # if S_ISBLK (S_IFCHR)
13839 You lose.
13840 # endif
13841 #endif
13842
13843 #if defined(S_ISLNK) && defined(S_IFREG)
13844 # if S_ISLNK (S_IFREG)
13845 You lose.
13846 # endif
13847 #endif
13848
13849 #if defined(S_ISSOCK) && defined(S_IFREG)
13850 # if S_ISSOCK (S_IFREG)
13851 You lose.
13852 # endif
13853 #endif
13854
13855 _ACEOF
13856 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13857   $EGREP "You lose" >/dev/null 2>&1; then
13858   ac_cv_header_stat_broken=yes
13859 else
13860   ac_cv_header_stat_broken=no
13861 fi
13862 rm -f conftest*
13863
13864 fi
13865 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
13866 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
13867 if test $ac_cv_header_stat_broken = yes; then
13868
13869 cat >>confdefs.h <<\_ACEOF
13870 #define STAT_MACROS_BROKEN 1
13871 _ACEOF
13872
13873 fi
13874
13875
13876
13877
13878
13879 for ac_header in sys/mount.h sys/user.h
13880 do
13881 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13882 echo "$as_me:$LINENO: checking for $ac_header" >&5
13883 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13884 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13885   echo $ECHO_N "(cached) $ECHO_C" >&6
13886 else
13887   cat >conftest.$ac_ext <<_ACEOF
13888 #line $LINENO "configure"
13889 /* confdefs.h.  */
13890 _ACEOF
13891 cat confdefs.h >>conftest.$ac_ext
13892 cat >>conftest.$ac_ext <<_ACEOF
13893 /* end confdefs.h.  */
13894 #include <sys/types.h>
13895      #if HAVE_SYS_PARAM_H
13896      # include <sys/param.h>
13897      #endif
13898
13899 #include <$ac_header>
13900 _ACEOF
13901 rm -f conftest.$ac_objext
13902 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13903   (eval $ac_compile) 2>&5
13904   ac_status=$?
13905   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13906   (exit $ac_status); } &&
13907          { ac_try='test -s conftest.$ac_objext'
13908   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13909   (eval $ac_try) 2>&5
13910   ac_status=$?
13911   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13912   (exit $ac_status); }; }; then
13913   eval "$as_ac_Header=yes"
13914 else
13915   echo "$as_me: failed program was:" >&5
13916 sed 's/^/| /' conftest.$ac_ext >&5
13917
13918 eval "$as_ac_Header=no"
13919 fi
13920 rm -f conftest.$ac_objext conftest.$ac_ext
13921 fi
13922 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13923 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13924 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13925   cat >>confdefs.h <<_ACEOF
13926 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13927 _ACEOF
13928
13929 fi
13930
13931 done
13932
13933
13934
13935
13936
13937
13938
13939 for ac_header in net/if.h net/if_arp.h net/if_dl.h net/if_types.h net/route.h
13940 do
13941 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13942 echo "$as_me:$LINENO: checking for $ac_header" >&5
13943 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13944 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13945   echo $ECHO_N "(cached) $ECHO_C" >&6
13946 else
13947   cat >conftest.$ac_ext <<_ACEOF
13948 #line $LINENO "configure"
13949 /* confdefs.h.  */
13950 _ACEOF
13951 cat confdefs.h >>conftest.$ac_ext
13952 cat >>conftest.$ac_ext <<_ACEOF
13953 /* end confdefs.h.  */
13954 #include <sys/types.h>
13955      #if HAVE_SYS_SOCKET_H
13956      # include <sys/socket.h>
13957      #endif
13958
13959 #include <$ac_header>
13960 _ACEOF
13961 rm -f conftest.$ac_objext
13962 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13963   (eval $ac_compile) 2>&5
13964   ac_status=$?
13965   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13966   (exit $ac_status); } &&
13967          { ac_try='test -s conftest.$ac_objext'
13968   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13969   (eval $ac_try) 2>&5
13970   ac_status=$?
13971   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13972   (exit $ac_status); }; }; then
13973   eval "$as_ac_Header=yes"
13974 else
13975   echo "$as_me: failed program was:" >&5
13976 sed 's/^/| /' conftest.$ac_ext >&5
13977
13978 eval "$as_ac_Header=no"
13979 fi
13980 rm -f conftest.$ac_objext conftest.$ac_ext
13981 fi
13982 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13983 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13984 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13985   cat >>confdefs.h <<_ACEOF
13986 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13987 _ACEOF
13988
13989 fi
13990
13991 done
13992
13993
13994
13995 for ac_header in resolv.h
13996 do
13997 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13998 echo "$as_me:$LINENO: checking for $ac_header" >&5
13999 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14000 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14001   echo $ECHO_N "(cached) $ECHO_C" >&6
14002 else
14003   cat >conftest.$ac_ext <<_ACEOF
14004 #line $LINENO "configure"
14005 /* confdefs.h.  */
14006 _ACEOF
14007 cat confdefs.h >>conftest.$ac_ext
14008 cat >>conftest.$ac_ext <<_ACEOF
14009 /* end confdefs.h.  */
14010 #include <sys/types.h>
14011      #if HAVE_SYS_SOCKET_H
14012      # include <sys/socket.h>
14013      #endif
14014      #if HAVE_NETINET_IN_H
14015      # include <netinet/in.h>
14016      #endif
14017
14018 #include <$ac_header>
14019 _ACEOF
14020 rm -f conftest.$ac_objext
14021 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14022   (eval $ac_compile) 2>&5
14023   ac_status=$?
14024   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14025   (exit $ac_status); } &&
14026          { ac_try='test -s conftest.$ac_objext'
14027   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14028   (eval $ac_try) 2>&5
14029   ac_status=$?
14030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14031   (exit $ac_status); }; }; then
14032   eval "$as_ac_Header=yes"
14033 else
14034   echo "$as_me: failed program was:" >&5
14035 sed 's/^/| /' conftest.$ac_ext >&5
14036
14037 eval "$as_ac_Header=no"
14038 fi
14039 rm -f conftest.$ac_objext conftest.$ac_ext
14040 fi
14041 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14042 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14043 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14044   cat >>confdefs.h <<_ACEOF
14045 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14046 _ACEOF
14047
14048 fi
14049
14050 done
14051
14052
14053
14054 for ac_header in netinet/ip.h
14055 do
14056 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14057 echo "$as_me:$LINENO: checking for $ac_header" >&5
14058 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14059 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14060   echo $ECHO_N "(cached) $ECHO_C" >&6
14061 else
14062   cat >conftest.$ac_ext <<_ACEOF
14063 #line $LINENO "configure"
14064 /* confdefs.h.  */
14065 _ACEOF
14066 cat confdefs.h >>conftest.$ac_ext
14067 cat >>conftest.$ac_ext <<_ACEOF
14068 /* end confdefs.h.  */
14069 #include <sys/types.h>
14070      #if HAVE_SYS_SOCKET_H
14071      # include <sys/socket.h>
14072      #endif
14073      #if HAVE_NETINET_IN_SYSTM_H
14074      # include <netinet/in_systm.h>
14075      #endif
14076
14077 #include <$ac_header>
14078 _ACEOF
14079 rm -f conftest.$ac_objext
14080 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14081   (eval $ac_compile) 2>&5
14082   ac_status=$?
14083   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14084   (exit $ac_status); } &&
14085          { ac_try='test -s conftest.$ac_objext'
14086   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14087   (eval $ac_try) 2>&5
14088   ac_status=$?
14089   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14090   (exit $ac_status); }; }; then
14091   eval "$as_ac_Header=yes"
14092 else
14093   echo "$as_me: failed program was:" >&5
14094 sed 's/^/| /' conftest.$ac_ext >&5
14095
14096 eval "$as_ac_Header=no"
14097 fi
14098 rm -f conftest.$ac_objext conftest.$ac_ext
14099 fi
14100 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14101 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14102 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14103   cat >>confdefs.h <<_ACEOF
14104 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14105 _ACEOF
14106
14107 fi
14108
14109 done
14110
14111
14112
14113 for ac_header in ucontext.h
14114 do
14115 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14116 echo "$as_me:$LINENO: checking for $ac_header" >&5
14117 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14118 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14119   echo $ECHO_N "(cached) $ECHO_C" >&6
14120 else
14121   cat >conftest.$ac_ext <<_ACEOF
14122 #line $LINENO "configure"
14123 /* confdefs.h.  */
14124 _ACEOF
14125 cat confdefs.h >>conftest.$ac_ext
14126 cat >>conftest.$ac_ext <<_ACEOF
14127 /* end confdefs.h.  */
14128 #include <signal.h>
14129
14130 #include <$ac_header>
14131 _ACEOF
14132 rm -f conftest.$ac_objext
14133 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14134   (eval $ac_compile) 2>&5
14135   ac_status=$?
14136   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14137   (exit $ac_status); } &&
14138          { ac_try='test -s conftest.$ac_objext'
14139   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14140   (eval $ac_try) 2>&5
14141   ac_status=$?
14142   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14143   (exit $ac_status); }; }; then
14144   eval "$as_ac_Header=yes"
14145 else
14146   echo "$as_me: failed program was:" >&5
14147 sed 's/^/| /' conftest.$ac_ext >&5
14148
14149 eval "$as_ac_Header=no"
14150 fi
14151 rm -f conftest.$ac_objext conftest.$ac_ext
14152 fi
14153 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14154 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14155 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14156   cat >>confdefs.h <<_ACEOF
14157 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14158 _ACEOF
14159
14160 fi
14161
14162 done
14163
14164
14165
14166 echo "$as_me:$LINENO: checking for GNU style IPX support" >&5
14167 echo $ECHO_N "checking for GNU style IPX support... $ECHO_C" >&6
14168 if test "${ac_cv_c_ipx_gnu+set}" = set; then
14169   echo $ECHO_N "(cached) $ECHO_C" >&6
14170 else
14171   cat >conftest.$ac_ext <<_ACEOF
14172 #line $LINENO "configure"
14173 /* confdefs.h.  */
14174 _ACEOF
14175 cat confdefs.h >>conftest.$ac_ext
14176 cat >>conftest.$ac_ext <<_ACEOF
14177 /* end confdefs.h.  */
14178 #include <sys/types.h>
14179     #ifdef HAVE_SYS_SOCKET_H
14180     # include <sys/socket.h>
14181     #endif
14182     #include <netipx/ipx.h>
14183 int
14184 main ()
14185 {
14186 ((struct sockaddr_ipx *)0)->sipx_family == AF_IPX
14187   ;
14188   return 0;
14189 }
14190 _ACEOF
14191 rm -f conftest.$ac_objext
14192 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14193   (eval $ac_compile) 2>&5
14194   ac_status=$?
14195   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14196   (exit $ac_status); } &&
14197          { ac_try='test -s conftest.$ac_objext'
14198   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14199   (eval $ac_try) 2>&5
14200   ac_status=$?
14201   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14202   (exit $ac_status); }; }; then
14203   ac_cv_c_ipx_gnu="yes"
14204 else
14205   echo "$as_me: failed program was:" >&5
14206 sed 's/^/| /' conftest.$ac_ext >&5
14207
14208 ac_cv_c_ipx_gnu="no"
14209 fi
14210 rm -f conftest.$ac_objext conftest.$ac_ext
14211
14212 fi
14213 echo "$as_me:$LINENO: result: $ac_cv_c_ipx_gnu" >&5
14214 echo "${ECHO_T}$ac_cv_c_ipx_gnu" >&6
14215 if test "$ac_cv_c_ipx_gnu" = "yes"
14216 then
14217
14218 cat >>confdefs.h <<\_ACEOF
14219 #define HAVE_IPX_GNU 1
14220 _ACEOF
14221
14222 fi
14223
14224 if test "$ac_cv_c_ipx_gnu" = "no"
14225 then
14226  echo "$as_me:$LINENO: checking for linux style IPX support" >&5
14227 echo $ECHO_N "checking for linux style IPX support... $ECHO_C" >&6
14228 if test "${ac_cv_c_ipx_linux+set}" = set; then
14229   echo $ECHO_N "(cached) $ECHO_C" >&6
14230 else
14231   cat >conftest.$ac_ext <<_ACEOF
14232 #line $LINENO "configure"
14233 /* confdefs.h.  */
14234 _ACEOF
14235 cat confdefs.h >>conftest.$ac_ext
14236 cat >>conftest.$ac_ext <<_ACEOF
14237 /* end confdefs.h.  */
14238 #include <sys/types.h>
14239      #ifdef HAVE_SYS_SOCKET_H
14240      # include <sys/socket.h>
14241      #endif
14242      #include <asm/types.h>
14243      #include <linux/ipx.h>
14244 int
14245 main ()
14246 {
14247 ((struct sockaddr_ipx *)0)->sipx_family == AF_IPX
14248   ;
14249   return 0;
14250 }
14251 _ACEOF
14252 rm -f conftest.$ac_objext
14253 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14254   (eval $ac_compile) 2>&5
14255   ac_status=$?
14256   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14257   (exit $ac_status); } &&
14258          { ac_try='test -s conftest.$ac_objext'
14259   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14260   (eval $ac_try) 2>&5
14261   ac_status=$?
14262   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14263   (exit $ac_status); }; }; then
14264   ac_cv_c_ipx_linux="yes"
14265 else
14266   echo "$as_me: failed program was:" >&5
14267 sed 's/^/| /' conftest.$ac_ext >&5
14268
14269 ac_cv_c_ipx_linux="no"
14270 fi
14271 rm -f conftest.$ac_objext conftest.$ac_ext
14272
14273 fi
14274 echo "$as_me:$LINENO: result: $ac_cv_c_ipx_linux" >&5
14275 echo "${ECHO_T}$ac_cv_c_ipx_linux" >&6
14276   if test "$ac_cv_c_ipx_linux" = "yes"
14277   then
14278
14279 cat >>confdefs.h <<\_ACEOF
14280 #define HAVE_IPX_LINUX 1
14281 _ACEOF
14282
14283   fi
14284 fi
14285
14286
14287 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
14288 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
14289 if test "${ac_cv_c_const+set}" = set; then
14290   echo $ECHO_N "(cached) $ECHO_C" >&6
14291 else
14292   cat >conftest.$ac_ext <<_ACEOF
14293 #line $LINENO "configure"
14294 /* confdefs.h.  */
14295 _ACEOF
14296 cat confdefs.h >>conftest.$ac_ext
14297 cat >>conftest.$ac_ext <<_ACEOF
14298 /* end confdefs.h.  */
14299
14300 int
14301 main ()
14302 {
14303 /* FIXME: Include the comments suggested by Paul. */
14304 #ifndef __cplusplus
14305   /* Ultrix mips cc rejects this.  */
14306   typedef int charset[2];
14307   const charset x;
14308   /* SunOS 4.1.1 cc rejects this.  */
14309   char const *const *ccp;
14310   char **p;
14311   /* NEC SVR4.0.2 mips cc rejects this.  */
14312   struct point {int x, y;};
14313   static struct point const zero = {0,0};
14314   /* AIX XL C 1.02.0.0 rejects this.
14315      It does not let you subtract one const X* pointer from another in
14316      an arm of an if-expression whose if-part is not a constant
14317      expression */
14318   const char *g = "string";
14319   ccp = &g + (g ? g-g : 0);
14320   /* HPUX 7.0 cc rejects these. */
14321   ++ccp;
14322   p = (char**) ccp;
14323   ccp = (char const *const *) p;
14324   { /* SCO 3.2v4 cc rejects this.  */
14325     char *t;
14326     char const *s = 0 ? (char *) 0 : (char const *) 0;
14327
14328     *t++ = 0;
14329   }
14330   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
14331     int x[] = {25, 17};
14332     const int *foo = &x[0];
14333     ++foo;
14334   }
14335   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
14336     typedef const int *iptr;
14337     iptr p = 0;
14338     ++p;
14339   }
14340   { /* AIX XL C 1.02.0.0 rejects this saying
14341        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
14342     struct s { int j; const int *ap[3]; };
14343     struct s *b; b->j = 5;
14344   }
14345   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
14346     const int foo = 10;
14347   }
14348 #endif
14349
14350   ;
14351   return 0;
14352 }
14353 _ACEOF
14354 rm -f conftest.$ac_objext
14355 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14356   (eval $ac_compile) 2>&5
14357   ac_status=$?
14358   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14359   (exit $ac_status); } &&
14360          { ac_try='test -s conftest.$ac_objext'
14361   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14362   (eval $ac_try) 2>&5
14363   ac_status=$?
14364   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14365   (exit $ac_status); }; }; then
14366   ac_cv_c_const=yes
14367 else
14368   echo "$as_me: failed program was:" >&5
14369 sed 's/^/| /' conftest.$ac_ext >&5
14370
14371 ac_cv_c_const=no
14372 fi
14373 rm -f conftest.$ac_objext conftest.$ac_ext
14374 fi
14375 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
14376 echo "${ECHO_T}$ac_cv_c_const" >&6
14377 if test $ac_cv_c_const = no; then
14378
14379 cat >>confdefs.h <<\_ACEOF
14380 #define const
14381 _ACEOF
14382
14383 fi
14384
14385 echo "$as_me:$LINENO: checking for inline" >&5
14386 echo $ECHO_N "checking for inline... $ECHO_C" >&6
14387 if test "${ac_cv_c_inline+set}" = set; then
14388   echo $ECHO_N "(cached) $ECHO_C" >&6
14389 else
14390   ac_cv_c_inline=no
14391 for ac_kw in inline __inline__ __inline; do
14392   cat >conftest.$ac_ext <<_ACEOF
14393 #line $LINENO "configure"
14394 /* confdefs.h.  */
14395 _ACEOF
14396 cat confdefs.h >>conftest.$ac_ext
14397 cat >>conftest.$ac_ext <<_ACEOF
14398 /* end confdefs.h.  */
14399 #ifndef __cplusplus
14400 typedef int foo_t;
14401 static $ac_kw foo_t static_foo () {return 0; }
14402 $ac_kw foo_t foo () {return 0; }
14403 #endif
14404
14405 _ACEOF
14406 rm -f conftest.$ac_objext
14407 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14408   (eval $ac_compile) 2>&5
14409   ac_status=$?
14410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14411   (exit $ac_status); } &&
14412          { ac_try='test -s conftest.$ac_objext'
14413   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14414   (eval $ac_try) 2>&5
14415   ac_status=$?
14416   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14417   (exit $ac_status); }; }; then
14418   ac_cv_c_inline=$ac_kw; break
14419 else
14420   echo "$as_me: failed program was:" >&5
14421 sed 's/^/| /' conftest.$ac_ext >&5
14422
14423 fi
14424 rm -f conftest.$ac_objext conftest.$ac_ext
14425 done
14426
14427 fi
14428 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
14429 echo "${ECHO_T}$ac_cv_c_inline" >&6
14430 case $ac_cv_c_inline in
14431   inline | yes) ;;
14432   no)
14433 cat >>confdefs.h <<\_ACEOF
14434 #define inline
14435 _ACEOF
14436  ;;
14437   *)  cat >>confdefs.h <<_ACEOF
14438 #define inline $ac_cv_c_inline
14439 _ACEOF
14440  ;;
14441 esac
14442
14443 echo "$as_me:$LINENO: checking for mode_t" >&5
14444 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
14445 if test "${ac_cv_type_mode_t+set}" = set; then
14446   echo $ECHO_N "(cached) $ECHO_C" >&6
14447 else
14448   cat >conftest.$ac_ext <<_ACEOF
14449 #line $LINENO "configure"
14450 /* confdefs.h.  */
14451 _ACEOF
14452 cat confdefs.h >>conftest.$ac_ext
14453 cat >>conftest.$ac_ext <<_ACEOF
14454 /* end confdefs.h.  */
14455 $ac_includes_default
14456 int
14457 main ()
14458 {
14459 if ((mode_t *) 0)
14460   return 0;
14461 if (sizeof (mode_t))
14462   return 0;
14463   ;
14464   return 0;
14465 }
14466 _ACEOF
14467 rm -f conftest.$ac_objext
14468 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14469   (eval $ac_compile) 2>&5
14470   ac_status=$?
14471   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14472   (exit $ac_status); } &&
14473          { ac_try='test -s conftest.$ac_objext'
14474   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14475   (eval $ac_try) 2>&5
14476   ac_status=$?
14477   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14478   (exit $ac_status); }; }; then
14479   ac_cv_type_mode_t=yes
14480 else
14481   echo "$as_me: failed program was:" >&5
14482 sed 's/^/| /' conftest.$ac_ext >&5
14483
14484 ac_cv_type_mode_t=no
14485 fi
14486 rm -f conftest.$ac_objext conftest.$ac_ext
14487 fi
14488 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
14489 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
14490 if test $ac_cv_type_mode_t = yes; then
14491
14492 cat >>confdefs.h <<_ACEOF
14493 #define HAVE_MODE_T 1
14494 _ACEOF
14495
14496
14497 fi
14498 echo "$as_me:$LINENO: checking for off_t" >&5
14499 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
14500 if test "${ac_cv_type_off_t+set}" = set; then
14501   echo $ECHO_N "(cached) $ECHO_C" >&6
14502 else
14503   cat >conftest.$ac_ext <<_ACEOF
14504 #line $LINENO "configure"
14505 /* confdefs.h.  */
14506 _ACEOF
14507 cat confdefs.h >>conftest.$ac_ext
14508 cat >>conftest.$ac_ext <<_ACEOF
14509 /* end confdefs.h.  */
14510 $ac_includes_default
14511 int
14512 main ()
14513 {
14514 if ((off_t *) 0)
14515   return 0;
14516 if (sizeof (off_t))
14517   return 0;
14518   ;
14519   return 0;
14520 }
14521 _ACEOF
14522 rm -f conftest.$ac_objext
14523 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14524   (eval $ac_compile) 2>&5
14525   ac_status=$?
14526   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14527   (exit $ac_status); } &&
14528          { ac_try='test -s conftest.$ac_objext'
14529   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14530   (eval $ac_try) 2>&5
14531   ac_status=$?
14532   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14533   (exit $ac_status); }; }; then
14534   ac_cv_type_off_t=yes
14535 else
14536   echo "$as_me: failed program was:" >&5
14537 sed 's/^/| /' conftest.$ac_ext >&5
14538
14539 ac_cv_type_off_t=no
14540 fi
14541 rm -f conftest.$ac_objext conftest.$ac_ext
14542 fi
14543 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
14544 echo "${ECHO_T}$ac_cv_type_off_t" >&6
14545 if test $ac_cv_type_off_t = yes; then
14546
14547 cat >>confdefs.h <<_ACEOF
14548 #define HAVE_OFF_T 1
14549 _ACEOF
14550
14551
14552 fi
14553 echo "$as_me:$LINENO: checking for pid_t" >&5
14554 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
14555 if test "${ac_cv_type_pid_t+set}" = set; then
14556   echo $ECHO_N "(cached) $ECHO_C" >&6
14557 else
14558   cat >conftest.$ac_ext <<_ACEOF
14559 #line $LINENO "configure"
14560 /* confdefs.h.  */
14561 _ACEOF
14562 cat confdefs.h >>conftest.$ac_ext
14563 cat >>conftest.$ac_ext <<_ACEOF
14564 /* end confdefs.h.  */
14565 $ac_includes_default
14566 int
14567 main ()
14568 {
14569 if ((pid_t *) 0)
14570   return 0;
14571 if (sizeof (pid_t))
14572   return 0;
14573   ;
14574   return 0;
14575 }
14576 _ACEOF
14577 rm -f conftest.$ac_objext
14578 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14579   (eval $ac_compile) 2>&5
14580   ac_status=$?
14581   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14582   (exit $ac_status); } &&
14583          { ac_try='test -s conftest.$ac_objext'
14584   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14585   (eval $ac_try) 2>&5
14586   ac_status=$?
14587   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14588   (exit $ac_status); }; }; then
14589   ac_cv_type_pid_t=yes
14590 else
14591   echo "$as_me: failed program was:" >&5
14592 sed 's/^/| /' conftest.$ac_ext >&5
14593
14594 ac_cv_type_pid_t=no
14595 fi
14596 rm -f conftest.$ac_objext conftest.$ac_ext
14597 fi
14598 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
14599 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
14600 if test $ac_cv_type_pid_t = yes; then
14601
14602 cat >>confdefs.h <<_ACEOF
14603 #define HAVE_PID_T 1
14604 _ACEOF
14605
14606
14607 fi
14608 echo "$as_me:$LINENO: checking for size_t" >&5
14609 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
14610 if test "${ac_cv_type_size_t+set}" = set; then
14611   echo $ECHO_N "(cached) $ECHO_C" >&6
14612 else
14613   cat >conftest.$ac_ext <<_ACEOF
14614 #line $LINENO "configure"
14615 /* confdefs.h.  */
14616 _ACEOF
14617 cat confdefs.h >>conftest.$ac_ext
14618 cat >>conftest.$ac_ext <<_ACEOF
14619 /* end confdefs.h.  */
14620 $ac_includes_default
14621 int
14622 main ()
14623 {
14624 if ((size_t *) 0)
14625   return 0;
14626 if (sizeof (size_t))
14627   return 0;
14628   ;
14629   return 0;
14630 }
14631 _ACEOF
14632 rm -f conftest.$ac_objext
14633 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14634   (eval $ac_compile) 2>&5
14635   ac_status=$?
14636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14637   (exit $ac_status); } &&
14638          { ac_try='test -s conftest.$ac_objext'
14639   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14640   (eval $ac_try) 2>&5
14641   ac_status=$?
14642   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14643   (exit $ac_status); }; }; then
14644   ac_cv_type_size_t=yes
14645 else
14646   echo "$as_me: failed program was:" >&5
14647 sed 's/^/| /' conftest.$ac_ext >&5
14648
14649 ac_cv_type_size_t=no
14650 fi
14651 rm -f conftest.$ac_objext conftest.$ac_ext
14652 fi
14653 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
14654 echo "${ECHO_T}$ac_cv_type_size_t" >&6
14655 if test $ac_cv_type_size_t = yes; then
14656
14657 cat >>confdefs.h <<_ACEOF
14658 #define HAVE_SIZE_T 1
14659 _ACEOF
14660
14661
14662 fi
14663 echo "$as_me:$LINENO: checking for ssize_t" >&5
14664 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
14665 if test "${ac_cv_type_ssize_t+set}" = set; then
14666   echo $ECHO_N "(cached) $ECHO_C" >&6
14667 else
14668   cat >conftest.$ac_ext <<_ACEOF
14669 #line $LINENO "configure"
14670 /* confdefs.h.  */
14671 _ACEOF
14672 cat confdefs.h >>conftest.$ac_ext
14673 cat >>conftest.$ac_ext <<_ACEOF
14674 /* end confdefs.h.  */
14675 $ac_includes_default
14676 int
14677 main ()
14678 {
14679 if ((ssize_t *) 0)
14680   return 0;
14681 if (sizeof (ssize_t))
14682   return 0;
14683   ;
14684   return 0;
14685 }
14686 _ACEOF
14687 rm -f conftest.$ac_objext
14688 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14689   (eval $ac_compile) 2>&5
14690   ac_status=$?
14691   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14692   (exit $ac_status); } &&
14693          { ac_try='test -s conftest.$ac_objext'
14694   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14695   (eval $ac_try) 2>&5
14696   ac_status=$?
14697   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14698   (exit $ac_status); }; }; then
14699   ac_cv_type_ssize_t=yes
14700 else
14701   echo "$as_me: failed program was:" >&5
14702 sed 's/^/| /' conftest.$ac_ext >&5
14703
14704 ac_cv_type_ssize_t=no
14705 fi
14706 rm -f conftest.$ac_objext conftest.$ac_ext
14707 fi
14708 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
14709 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
14710 if test $ac_cv_type_ssize_t = yes; then
14711
14712 cat >>confdefs.h <<_ACEOF
14713 #define HAVE_SSIZE_T 1
14714 _ACEOF
14715
14716
14717 fi
14718
14719 echo "$as_me:$LINENO: checking for long long" >&5
14720 echo $ECHO_N "checking for long long... $ECHO_C" >&6
14721 if test "${ac_cv_type_long_long+set}" = set; then
14722   echo $ECHO_N "(cached) $ECHO_C" >&6
14723 else
14724   cat >conftest.$ac_ext <<_ACEOF
14725 #line $LINENO "configure"
14726 /* confdefs.h.  */
14727 _ACEOF
14728 cat confdefs.h >>conftest.$ac_ext
14729 cat >>conftest.$ac_ext <<_ACEOF
14730 /* end confdefs.h.  */
14731 $ac_includes_default
14732 int
14733 main ()
14734 {
14735 if ((long long *) 0)
14736   return 0;
14737 if (sizeof (long long))
14738   return 0;
14739   ;
14740   return 0;
14741 }
14742 _ACEOF
14743 rm -f conftest.$ac_objext
14744 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14745   (eval $ac_compile) 2>&5
14746   ac_status=$?
14747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14748   (exit $ac_status); } &&
14749          { ac_try='test -s conftest.$ac_objext'
14750   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14751   (eval $ac_try) 2>&5
14752   ac_status=$?
14753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14754   (exit $ac_status); }; }; then
14755   ac_cv_type_long_long=yes
14756 else
14757   echo "$as_me: failed program was:" >&5
14758 sed 's/^/| /' conftest.$ac_ext >&5
14759
14760 ac_cv_type_long_long=no
14761 fi
14762 rm -f conftest.$ac_objext conftest.$ac_ext
14763 fi
14764 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
14765 echo "${ECHO_T}$ac_cv_type_long_long" >&6
14766
14767 echo "$as_me:$LINENO: checking size of long long" >&5
14768 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
14769 if test "${ac_cv_sizeof_long_long+set}" = set; then
14770   echo $ECHO_N "(cached) $ECHO_C" >&6
14771 else
14772   if test "$ac_cv_type_long_long" = yes; then
14773   # The cast to unsigned long works around a bug in the HP C Compiler
14774   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14775   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14776   # This bug is HP SR number 8606223364.
14777   if test "$cross_compiling" = yes; then
14778   # Depending upon the size, compute the lo and hi bounds.
14779 cat >conftest.$ac_ext <<_ACEOF
14780 #line $LINENO "configure"
14781 /* confdefs.h.  */
14782 _ACEOF
14783 cat confdefs.h >>conftest.$ac_ext
14784 cat >>conftest.$ac_ext <<_ACEOF
14785 /* end confdefs.h.  */
14786 $ac_includes_default
14787 int
14788 main ()
14789 {
14790 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
14791 test_array [0] = 0
14792
14793   ;
14794   return 0;
14795 }
14796 _ACEOF
14797 rm -f conftest.$ac_objext
14798 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14799   (eval $ac_compile) 2>&5
14800   ac_status=$?
14801   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14802   (exit $ac_status); } &&
14803          { ac_try='test -s conftest.$ac_objext'
14804   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14805   (eval $ac_try) 2>&5
14806   ac_status=$?
14807   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14808   (exit $ac_status); }; }; then
14809   ac_lo=0 ac_mid=0
14810   while :; do
14811     cat >conftest.$ac_ext <<_ACEOF
14812 #line $LINENO "configure"
14813 /* confdefs.h.  */
14814 _ACEOF
14815 cat confdefs.h >>conftest.$ac_ext
14816 cat >>conftest.$ac_ext <<_ACEOF
14817 /* end confdefs.h.  */
14818 $ac_includes_default
14819 int
14820 main ()
14821 {
14822 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
14823 test_array [0] = 0
14824
14825   ;
14826   return 0;
14827 }
14828 _ACEOF
14829 rm -f conftest.$ac_objext
14830 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14831   (eval $ac_compile) 2>&5
14832   ac_status=$?
14833   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14834   (exit $ac_status); } &&
14835          { ac_try='test -s conftest.$ac_objext'
14836   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14837   (eval $ac_try) 2>&5
14838   ac_status=$?
14839   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14840   (exit $ac_status); }; }; then
14841   ac_hi=$ac_mid; break
14842 else
14843   echo "$as_me: failed program was:" >&5
14844 sed 's/^/| /' conftest.$ac_ext >&5
14845
14846 ac_lo=`expr $ac_mid + 1`
14847                     if test $ac_lo -le $ac_mid; then
14848                       ac_lo= ac_hi=
14849                       break
14850                     fi
14851                     ac_mid=`expr 2 '*' $ac_mid + 1`
14852 fi
14853 rm -f conftest.$ac_objext conftest.$ac_ext
14854   done
14855 else
14856   echo "$as_me: failed program was:" >&5
14857 sed 's/^/| /' conftest.$ac_ext >&5
14858
14859 cat >conftest.$ac_ext <<_ACEOF
14860 #line $LINENO "configure"
14861 /* confdefs.h.  */
14862 _ACEOF
14863 cat confdefs.h >>conftest.$ac_ext
14864 cat >>conftest.$ac_ext <<_ACEOF
14865 /* end confdefs.h.  */
14866 $ac_includes_default
14867 int
14868 main ()
14869 {
14870 static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
14871 test_array [0] = 0
14872
14873   ;
14874   return 0;
14875 }
14876 _ACEOF
14877 rm -f conftest.$ac_objext
14878 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14879   (eval $ac_compile) 2>&5
14880   ac_status=$?
14881   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14882   (exit $ac_status); } &&
14883          { ac_try='test -s conftest.$ac_objext'
14884   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14885   (eval $ac_try) 2>&5
14886   ac_status=$?
14887   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14888   (exit $ac_status); }; }; then
14889   ac_hi=-1 ac_mid=-1
14890   while :; do
14891     cat >conftest.$ac_ext <<_ACEOF
14892 #line $LINENO "configure"
14893 /* confdefs.h.  */
14894 _ACEOF
14895 cat confdefs.h >>conftest.$ac_ext
14896 cat >>conftest.$ac_ext <<_ACEOF
14897 /* end confdefs.h.  */
14898 $ac_includes_default
14899 int
14900 main ()
14901 {
14902 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
14903 test_array [0] = 0
14904
14905   ;
14906   return 0;
14907 }
14908 _ACEOF
14909 rm -f conftest.$ac_objext
14910 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14911   (eval $ac_compile) 2>&5
14912   ac_status=$?
14913   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14914   (exit $ac_status); } &&
14915          { ac_try='test -s conftest.$ac_objext'
14916   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14917   (eval $ac_try) 2>&5
14918   ac_status=$?
14919   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14920   (exit $ac_status); }; }; then
14921   ac_lo=$ac_mid; break
14922 else
14923   echo "$as_me: failed program was:" >&5
14924 sed 's/^/| /' conftest.$ac_ext >&5
14925
14926 ac_hi=`expr '(' $ac_mid ')' - 1`
14927                        if test $ac_mid -le $ac_hi; then
14928                          ac_lo= ac_hi=
14929                          break
14930                        fi
14931                        ac_mid=`expr 2 '*' $ac_mid`
14932 fi
14933 rm -f conftest.$ac_objext conftest.$ac_ext
14934   done
14935 else
14936   echo "$as_me: failed program was:" >&5
14937 sed 's/^/| /' conftest.$ac_ext >&5
14938
14939 ac_lo= ac_hi=
14940 fi
14941 rm -f conftest.$ac_objext conftest.$ac_ext
14942 fi
14943 rm -f conftest.$ac_objext conftest.$ac_ext
14944 # Binary search between lo and hi bounds.
14945 while test "x$ac_lo" != "x$ac_hi"; do
14946   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14947   cat >conftest.$ac_ext <<_ACEOF
14948 #line $LINENO "configure"
14949 /* confdefs.h.  */
14950 _ACEOF
14951 cat confdefs.h >>conftest.$ac_ext
14952 cat >>conftest.$ac_ext <<_ACEOF
14953 /* end confdefs.h.  */
14954 $ac_includes_default
14955 int
14956 main ()
14957 {
14958 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
14959 test_array [0] = 0
14960
14961   ;
14962   return 0;
14963 }
14964 _ACEOF
14965 rm -f conftest.$ac_objext
14966 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14967   (eval $ac_compile) 2>&5
14968   ac_status=$?
14969   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14970   (exit $ac_status); } &&
14971          { ac_try='test -s conftest.$ac_objext'
14972   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14973   (eval $ac_try) 2>&5
14974   ac_status=$?
14975   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14976   (exit $ac_status); }; }; then
14977   ac_hi=$ac_mid
14978 else
14979   echo "$as_me: failed program was:" >&5
14980 sed 's/^/| /' conftest.$ac_ext >&5
14981
14982 ac_lo=`expr '(' $ac_mid ')' + 1`
14983 fi
14984 rm -f conftest.$ac_objext conftest.$ac_ext
14985 done
14986 case $ac_lo in
14987 ?*) ac_cv_sizeof_long_long=$ac_lo;;
14988 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
14989 See \`config.log' for more details." >&5
14990 echo "$as_me: error: cannot compute sizeof (long long), 77
14991 See \`config.log' for more details." >&2;}
14992    { (exit 1); exit 1; }; } ;;
14993 esac
14994 else
14995   if test "$cross_compiling" = yes; then
14996   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14997 See \`config.log' for more details." >&5
14998 echo "$as_me: error: cannot run test program while cross compiling
14999 See \`config.log' for more details." >&2;}
15000    { (exit 1); exit 1; }; }
15001 else
15002   cat >conftest.$ac_ext <<_ACEOF
15003 #line $LINENO "configure"
15004 /* confdefs.h.  */
15005 _ACEOF
15006 cat confdefs.h >>conftest.$ac_ext
15007 cat >>conftest.$ac_ext <<_ACEOF
15008 /* end confdefs.h.  */
15009 $ac_includes_default
15010 long longval () { return (long) (sizeof (long long)); }
15011 unsigned long ulongval () { return (long) (sizeof (long long)); }
15012 #include <stdio.h>
15013 #include <stdlib.h>
15014 int
15015 main ()
15016 {
15017
15018   FILE *f = fopen ("conftest.val", "w");
15019   if (! f)
15020     exit (1);
15021   if (((long) (sizeof (long long))) < 0)
15022     {
15023       long i = longval ();
15024       if (i != ((long) (sizeof (long long))))
15025         exit (1);
15026       fprintf (f, "%ld\n", i);
15027     }
15028   else
15029     {
15030       unsigned long i = ulongval ();
15031       if (i != ((long) (sizeof (long long))))
15032         exit (1);
15033       fprintf (f, "%lu\n", i);
15034     }
15035   exit (ferror (f) || fclose (f) != 0);
15036
15037   ;
15038   return 0;
15039 }
15040 _ACEOF
15041 rm -f conftest$ac_exeext
15042 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15043   (eval $ac_link) 2>&5
15044   ac_status=$?
15045   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15046   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15047   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15048   (eval $ac_try) 2>&5
15049   ac_status=$?
15050   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15051   (exit $ac_status); }; }; then
15052   ac_cv_sizeof_long_long=`cat conftest.val`
15053 else
15054   echo "$as_me: program exited with status $ac_status" >&5
15055 echo "$as_me: failed program was:" >&5
15056 sed 's/^/| /' conftest.$ac_ext >&5
15057
15058 ( exit $ac_status )
15059 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
15060 See \`config.log' for more details." >&5
15061 echo "$as_me: error: cannot compute sizeof (long long), 77
15062 See \`config.log' for more details." >&2;}
15063    { (exit 1); exit 1; }; }
15064 fi
15065 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15066 fi
15067 fi
15068 rm -f conftest.val
15069 else
15070   ac_cv_sizeof_long_long=0
15071 fi
15072 fi
15073 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
15074 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
15075 cat >>confdefs.h <<_ACEOF
15076 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
15077 _ACEOF
15078
15079
15080
15081 echo "$as_me:$LINENO: checking whether linux/input.h is for real" >&5
15082 echo $ECHO_N "checking whether linux/input.h is for real... $ECHO_C" >&6
15083 if test "${wine_cv_linux_input_h+set}" = set; then
15084   echo $ECHO_N "(cached) $ECHO_C" >&6
15085 else
15086   cat >conftest.$ac_ext <<_ACEOF
15087 #line $LINENO "configure"
15088 /* confdefs.h.  */
15089 _ACEOF
15090 cat confdefs.h >>conftest.$ac_ext
15091 cat >>conftest.$ac_ext <<_ACEOF
15092 /* end confdefs.h.  */
15093
15094             #include <linux/input.h>
15095
15096 int
15097 main ()
15098 {
15099
15100             int foo = EVIOCGBIT(EV_ABS,42);
15101             int bar = BTN_PINKIE;
15102             int fortytwo = 42;
15103
15104   ;
15105   return 0;
15106 }
15107 _ACEOF
15108 rm -f conftest.$ac_objext
15109 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15110   (eval $ac_compile) 2>&5
15111   ac_status=$?
15112   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15113   (exit $ac_status); } &&
15114          { ac_try='test -s conftest.$ac_objext'
15115   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15116   (eval $ac_try) 2>&5
15117   ac_status=$?
15118   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15119   (exit $ac_status); }; }; then
15120   wine_cv_linux_input_h=yes
15121 else
15122   echo "$as_me: failed program was:" >&5
15123 sed 's/^/| /' conftest.$ac_ext >&5
15124
15125 wine_cv_linux_input_h=no
15126 fi
15127 rm -f conftest.$ac_objext conftest.$ac_ext
15128
15129 fi
15130 echo "$as_me:$LINENO: result: $wine_cv_linux_input_h" >&5
15131 echo "${ECHO_T}$wine_cv_linux_input_h" >&6
15132     if test "$wine_cv_linux_input_h" = "yes"
15133     then
15134
15135 cat >>confdefs.h <<\_ACEOF
15136 #define HAVE_CORRECT_LINUXINPUT_H 1
15137 _ACEOF
15138
15139     fi
15140
15141
15142 echo "$as_me:$LINENO: checking whether we can use re-entrant gethostbyname_r Linux style" >&5
15143 echo $ECHO_N "checking whether we can use re-entrant gethostbyname_r Linux style... $ECHO_C" >&6
15144 if test "${wine_cv_linux_gethostbyname_r_6+set}" = set; then
15145   echo $ECHO_N "(cached) $ECHO_C" >&6
15146 else
15147   cat >conftest.$ac_ext <<_ACEOF
15148 #line $LINENO "configure"
15149 /* confdefs.h.  */
15150 _ACEOF
15151 cat confdefs.h >>conftest.$ac_ext
15152 cat >>conftest.$ac_ext <<_ACEOF
15153 /* end confdefs.h.  */
15154
15155 #include <netdb.h>
15156
15157 int
15158 main ()
15159 {
15160
15161     char *name=NULL;
15162     struct hostent he;
15163     struct hostent *result;
15164     char *buf=NULL;
15165     int bufsize=0;
15166     int res,errnr;
15167     char *addr=NULL;
15168     int addrlen=0;
15169     int addrtype=0;
15170     res=gethostbyname_r(name,&he,buf,bufsize,&result,&errnr);
15171     res=gethostbyaddr_r(addr, addrlen, addrtype,&he,buf,bufsize,&result,&errnr);
15172
15173   ;
15174   return 0;
15175 }
15176 _ACEOF
15177 rm -f conftest.$ac_objext
15178 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15179   (eval $ac_compile) 2>&5
15180   ac_status=$?
15181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15182   (exit $ac_status); } &&
15183          { ac_try='test -s conftest.$ac_objext'
15184   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15185   (eval $ac_try) 2>&5
15186   ac_status=$?
15187   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15188   (exit $ac_status); }; }; then
15189   wine_cv_linux_gethostbyname_r_6=yes
15190 else
15191   echo "$as_me: failed program was:" >&5
15192 sed 's/^/| /' conftest.$ac_ext >&5
15193
15194 wine_cv_linux_gethostbyname_r_6=no
15195
15196 fi
15197 rm -f conftest.$ac_objext conftest.$ac_ext
15198
15199 fi
15200 echo "$as_me:$LINENO: result: $wine_cv_linux_gethostbyname_r_6" >&5
15201 echo "${ECHO_T}$wine_cv_linux_gethostbyname_r_6" >&6
15202    if test "$wine_cv_linux_gethostbyname_r_6" = "yes"
15203    then
15204
15205 cat >>confdefs.h <<\_ACEOF
15206 #define HAVE_LINUX_GETHOSTBYNAME_R_6 1
15207 _ACEOF
15208
15209    fi
15210
15211 if test "$ac_cv_header_linux_joystick_h" = "yes"
15212 then
15213    echo "$as_me:$LINENO: checking whether linux/joystick.h uses the Linux 2.2+ API" >&5
15214 echo $ECHO_N "checking whether linux/joystick.h uses the Linux 2.2+ API... $ECHO_C" >&6
15215 if test "${wine_cv_linux_joystick_22_api+set}" = set; then
15216   echo $ECHO_N "(cached) $ECHO_C" >&6
15217 else
15218   cat >conftest.$ac_ext <<_ACEOF
15219 #line $LINENO "configure"
15220 /* confdefs.h.  */
15221 _ACEOF
15222 cat confdefs.h >>conftest.$ac_ext
15223 cat >>conftest.$ac_ext <<_ACEOF
15224 /* end confdefs.h.  */
15225
15226         #include <sys/ioctl.h>
15227         #include <linux/joystick.h>
15228
15229         struct js_event blub;
15230         #if !defined(JS_EVENT_AXIS) || !defined(JS_EVENT_BUTTON)
15231         #error "no 2.2 header"
15232         #endif
15233
15234 int
15235 main ()
15236 {
15237 /*empty*/
15238   ;
15239   return 0;
15240 }
15241 _ACEOF
15242 rm -f conftest.$ac_objext
15243 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15244   (eval $ac_compile) 2>&5
15245   ac_status=$?
15246   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15247   (exit $ac_status); } &&
15248          { ac_try='test -s conftest.$ac_objext'
15249   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15250   (eval $ac_try) 2>&5
15251   ac_status=$?
15252   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15253   (exit $ac_status); }; }; then
15254   wine_cv_linux_joystick_22_api=yes
15255 else
15256   echo "$as_me: failed program was:" >&5
15257 sed 's/^/| /' conftest.$ac_ext >&5
15258
15259 wine_cv_linux_joystick_22_api=no
15260 fi
15261 rm -f conftest.$ac_objext conftest.$ac_ext
15262
15263 fi
15264 echo "$as_me:$LINENO: result: $wine_cv_linux_joystick_22_api" >&5
15265 echo "${ECHO_T}$wine_cv_linux_joystick_22_api" >&6
15266    if test "$wine_cv_linux_joystick_22_api" = "yes"
15267    then
15268
15269 cat >>confdefs.h <<\_ACEOF
15270 #define HAVE_LINUX_22_JOYSTICK_API 1
15271 _ACEOF
15272
15273    fi
15274 fi
15275
15276
15277 if test "$ac_cv_header_sys_vfs_h" = "yes"
15278 then
15279     echo "$as_me:$LINENO: checking whether sys/vfs.h defines statfs" >&5
15280 echo $ECHO_N "checking whether sys/vfs.h defines statfs... $ECHO_C" >&6
15281 if test "${wine_cv_sys_vfs_has_statfs+set}" = set; then
15282   echo $ECHO_N "(cached) $ECHO_C" >&6
15283 else
15284   cat >conftest.$ac_ext <<_ACEOF
15285 #line $LINENO "configure"
15286 /* confdefs.h.  */
15287 _ACEOF
15288 cat confdefs.h >>conftest.$ac_ext
15289 cat >>conftest.$ac_ext <<_ACEOF
15290 /* end confdefs.h.  */
15291
15292         #include <sys/types.h>
15293         #ifdef HAVE_SYS_PARAM_H
15294         # include <sys/param.h>
15295         #endif
15296         #include <sys/vfs.h>
15297
15298 int
15299 main ()
15300 {
15301
15302                 struct statfs stfs;
15303
15304                 memset(&stfs,0,sizeof(stfs));
15305
15306   ;
15307   return 0;
15308 }
15309 _ACEOF
15310 rm -f conftest.$ac_objext
15311 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15312   (eval $ac_compile) 2>&5
15313   ac_status=$?
15314   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15315   (exit $ac_status); } &&
15316          { ac_try='test -s conftest.$ac_objext'
15317   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15318   (eval $ac_try) 2>&5
15319   ac_status=$?
15320   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15321   (exit $ac_status); }; }; then
15322   wine_cv_sys_vfs_has_statfs=yes
15323 else
15324   echo "$as_me: failed program was:" >&5
15325 sed 's/^/| /' conftest.$ac_ext >&5
15326
15327 wine_cv_sys_vfs_has_statfs=no
15328
15329 fi
15330 rm -f conftest.$ac_objext conftest.$ac_ext
15331
15332 fi
15333 echo "$as_me:$LINENO: result: $wine_cv_sys_vfs_has_statfs" >&5
15334 echo "${ECHO_T}$wine_cv_sys_vfs_has_statfs" >&6
15335     if test "$wine_cv_sys_vfs_has_statfs" = "yes"
15336     then
15337
15338 cat >>confdefs.h <<\_ACEOF
15339 #define STATFS_DEFINED_BY_SYS_VFS 1
15340 _ACEOF
15341
15342     fi
15343 fi
15344
15345 if test "$ac_cv_header_sys_statfs_h" = "yes"
15346 then
15347     echo "$as_me:$LINENO: checking whether sys/statfs.h defines statfs" >&5
15348 echo $ECHO_N "checking whether sys/statfs.h defines statfs... $ECHO_C" >&6
15349 if test "${wine_cv_sys_statfs_has_statfs+set}" = set; then
15350   echo $ECHO_N "(cached) $ECHO_C" >&6
15351 else
15352   cat >conftest.$ac_ext <<_ACEOF
15353 #line $LINENO "configure"
15354 /* confdefs.h.  */
15355 _ACEOF
15356 cat confdefs.h >>conftest.$ac_ext
15357 cat >>conftest.$ac_ext <<_ACEOF
15358 /* end confdefs.h.  */
15359
15360         #include <sys/types.h>
15361         #ifdef HAVE_SYS_PARAM_H
15362         # include <sys/param.h>
15363         #endif
15364         #include <sys/statfs.h>
15365
15366 int
15367 main ()
15368 {
15369
15370                 struct statfs stfs;
15371
15372   ;
15373   return 0;
15374 }
15375 _ACEOF
15376 rm -f conftest.$ac_objext
15377 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15378   (eval $ac_compile) 2>&5
15379   ac_status=$?
15380   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15381   (exit $ac_status); } &&
15382          { ac_try='test -s conftest.$ac_objext'
15383   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15384   (eval $ac_try) 2>&5
15385   ac_status=$?
15386   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15387   (exit $ac_status); }; }; then
15388   wine_cv_sys_statfs_has_statfs=yes
15389 else
15390   echo "$as_me: failed program was:" >&5
15391 sed 's/^/| /' conftest.$ac_ext >&5
15392
15393 wine_cv_sys_statfs_has_statfs=no
15394
15395 fi
15396 rm -f conftest.$ac_objext conftest.$ac_ext
15397
15398 fi
15399 echo "$as_me:$LINENO: result: $wine_cv_sys_statfs_has_statfs" >&5
15400 echo "${ECHO_T}$wine_cv_sys_statfs_has_statfs" >&6
15401     if test "$wine_cv_sys_statfs_has_statfs" = "yes"
15402     then
15403
15404 cat >>confdefs.h <<\_ACEOF
15405 #define STATFS_DEFINED_BY_SYS_STATFS 1
15406 _ACEOF
15407
15408     fi
15409 fi
15410
15411 if test "$ac_cv_header_sys_mount_h" = "yes"
15412 then
15413     echo "$as_me:$LINENO: checking whether sys/mount.h defines statfs" >&5
15414 echo $ECHO_N "checking whether sys/mount.h defines statfs... $ECHO_C" >&6
15415 if test "${wine_cv_sys_mount_has_statfs+set}" = set; then
15416   echo $ECHO_N "(cached) $ECHO_C" >&6
15417 else
15418   cat >conftest.$ac_ext <<_ACEOF
15419 #line $LINENO "configure"
15420 /* confdefs.h.  */
15421 _ACEOF
15422 cat confdefs.h >>conftest.$ac_ext
15423 cat >>conftest.$ac_ext <<_ACEOF
15424 /* end confdefs.h.  */
15425
15426         #include <sys/types.h>
15427         #ifdef HAVE_SYS_PARAM_H
15428         # include <sys/param.h>
15429         #endif
15430         #include <sys/mount.h>
15431
15432 int
15433 main ()
15434 {
15435
15436                 struct statfs stfs;
15437
15438   ;
15439   return 0;
15440 }
15441 _ACEOF
15442 rm -f conftest.$ac_objext
15443 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15444   (eval $ac_compile) 2>&5
15445   ac_status=$?
15446   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15447   (exit $ac_status); } &&
15448          { ac_try='test -s conftest.$ac_objext'
15449   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15450   (eval $ac_try) 2>&5
15451   ac_status=$?
15452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15453   (exit $ac_status); }; }; then
15454   wine_cv_sys_mount_has_statfs=yes
15455 else
15456   echo "$as_me: failed program was:" >&5
15457 sed 's/^/| /' conftest.$ac_ext >&5
15458
15459 wine_cv_sys_mount_has_statfs=no
15460
15461 fi
15462 rm -f conftest.$ac_objext conftest.$ac_ext
15463
15464 fi
15465 echo "$as_me:$LINENO: result: $wine_cv_sys_mount_has_statfs" >&5
15466 echo "${ECHO_T}$wine_cv_sys_mount_has_statfs" >&6
15467     if test "$wine_cv_sys_mount_has_statfs" = "yes"
15468     then
15469
15470 cat >>confdefs.h <<\_ACEOF
15471 #define STATFS_DEFINED_BY_SYS_MOUNT 1
15472 _ACEOF
15473
15474     fi
15475 fi
15476
15477
15478 echo "$as_me:$LINENO: checking for struct statfs.f_bfree" >&5
15479 echo $ECHO_N "checking for struct statfs.f_bfree... $ECHO_C" >&6
15480 if test "${ac_cv_member_struct_statfs_f_bfree+set}" = set; then
15481   echo $ECHO_N "(cached) $ECHO_C" >&6
15482 else
15483   cat >conftest.$ac_ext <<_ACEOF
15484 #line $LINENO "configure"
15485 /* confdefs.h.  */
15486 _ACEOF
15487 cat confdefs.h >>conftest.$ac_ext
15488 cat >>conftest.$ac_ext <<_ACEOF
15489 /* end confdefs.h.  */
15490 #include <sys/types.h>
15491 #ifdef HAVE_SYS_PARAM_H
15492 # include <sys/param.h>
15493 #endif
15494 #ifdef STATFS_DEFINED_BY_SYS_MOUNT
15495 # include <sys/mount.h>
15496 #else
15497 # ifdef STATFS_DEFINED_BY_SYS_VFS
15498 #  include <sys/vfs.h>
15499 # else
15500 #  ifdef STATFS_DEFINED_BY_SYS_STATFS
15501 #   include <sys/statfs.h>
15502 #  endif
15503 # endif
15504 #endif
15505
15506 int
15507 main ()
15508 {
15509 static struct statfs ac_aggr;
15510 if (ac_aggr.f_bfree)
15511 return 0;
15512   ;
15513   return 0;
15514 }
15515 _ACEOF
15516 rm -f conftest.$ac_objext
15517 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15518   (eval $ac_compile) 2>&5
15519   ac_status=$?
15520   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15521   (exit $ac_status); } &&
15522          { ac_try='test -s conftest.$ac_objext'
15523   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15524   (eval $ac_try) 2>&5
15525   ac_status=$?
15526   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15527   (exit $ac_status); }; }; then
15528   ac_cv_member_struct_statfs_f_bfree=yes
15529 else
15530   echo "$as_me: failed program was:" >&5
15531 sed 's/^/| /' conftest.$ac_ext >&5
15532
15533 cat >conftest.$ac_ext <<_ACEOF
15534 #line $LINENO "configure"
15535 /* confdefs.h.  */
15536 _ACEOF
15537 cat confdefs.h >>conftest.$ac_ext
15538 cat >>conftest.$ac_ext <<_ACEOF
15539 /* end confdefs.h.  */
15540 #include <sys/types.h>
15541 #ifdef HAVE_SYS_PARAM_H
15542 # include <sys/param.h>
15543 #endif
15544 #ifdef STATFS_DEFINED_BY_SYS_MOUNT
15545 # include <sys/mount.h>
15546 #else
15547 # ifdef STATFS_DEFINED_BY_SYS_VFS
15548 #  include <sys/vfs.h>
15549 # else
15550 #  ifdef STATFS_DEFINED_BY_SYS_STATFS
15551 #   include <sys/statfs.h>
15552 #  endif
15553 # endif
15554 #endif
15555
15556 int
15557 main ()
15558 {
15559 static struct statfs ac_aggr;
15560 if (sizeof ac_aggr.f_bfree)
15561 return 0;
15562   ;
15563   return 0;
15564 }
15565 _ACEOF
15566 rm -f conftest.$ac_objext
15567 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15568   (eval $ac_compile) 2>&5
15569   ac_status=$?
15570   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15571   (exit $ac_status); } &&
15572          { ac_try='test -s conftest.$ac_objext'
15573   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15574   (eval $ac_try) 2>&5
15575   ac_status=$?
15576   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15577   (exit $ac_status); }; }; then
15578   ac_cv_member_struct_statfs_f_bfree=yes
15579 else
15580   echo "$as_me: failed program was:" >&5
15581 sed 's/^/| /' conftest.$ac_ext >&5
15582
15583 ac_cv_member_struct_statfs_f_bfree=no
15584 fi
15585 rm -f conftest.$ac_objext conftest.$ac_ext
15586 fi
15587 rm -f conftest.$ac_objext conftest.$ac_ext
15588 fi
15589 echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_bfree" >&5
15590 echo "${ECHO_T}$ac_cv_member_struct_statfs_f_bfree" >&6
15591 if test $ac_cv_member_struct_statfs_f_bfree = yes; then
15592
15593 cat >>confdefs.h <<_ACEOF
15594 #define HAVE_STRUCT_STATFS_F_BFREE 1
15595 _ACEOF
15596
15597
15598 fi
15599 echo "$as_me:$LINENO: checking for struct statfs.f_bavail" >&5
15600 echo $ECHO_N "checking for struct statfs.f_bavail... $ECHO_C" >&6
15601 if test "${ac_cv_member_struct_statfs_f_bavail+set}" = set; then
15602   echo $ECHO_N "(cached) $ECHO_C" >&6
15603 else
15604   cat >conftest.$ac_ext <<_ACEOF
15605 #line $LINENO "configure"
15606 /* confdefs.h.  */
15607 _ACEOF
15608 cat confdefs.h >>conftest.$ac_ext
15609 cat >>conftest.$ac_ext <<_ACEOF
15610 /* end confdefs.h.  */
15611 #include <sys/types.h>
15612 #ifdef HAVE_SYS_PARAM_H
15613 # include <sys/param.h>
15614 #endif
15615 #ifdef STATFS_DEFINED_BY_SYS_MOUNT
15616 # include <sys/mount.h>
15617 #else
15618 # ifdef STATFS_DEFINED_BY_SYS_VFS
15619 #  include <sys/vfs.h>
15620 # else
15621 #  ifdef STATFS_DEFINED_BY_SYS_STATFS
15622 #   include <sys/statfs.h>
15623 #  endif
15624 # endif
15625 #endif
15626
15627 int
15628 main ()
15629 {
15630 static struct statfs ac_aggr;
15631 if (ac_aggr.f_bavail)
15632 return 0;
15633   ;
15634   return 0;
15635 }
15636 _ACEOF
15637 rm -f conftest.$ac_objext
15638 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15639   (eval $ac_compile) 2>&5
15640   ac_status=$?
15641   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15642   (exit $ac_status); } &&
15643          { ac_try='test -s conftest.$ac_objext'
15644   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15645   (eval $ac_try) 2>&5
15646   ac_status=$?
15647   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15648   (exit $ac_status); }; }; then
15649   ac_cv_member_struct_statfs_f_bavail=yes
15650 else
15651   echo "$as_me: failed program was:" >&5
15652 sed 's/^/| /' conftest.$ac_ext >&5
15653
15654 cat >conftest.$ac_ext <<_ACEOF
15655 #line $LINENO "configure"
15656 /* confdefs.h.  */
15657 _ACEOF
15658 cat confdefs.h >>conftest.$ac_ext
15659 cat >>conftest.$ac_ext <<_ACEOF
15660 /* end confdefs.h.  */
15661 #include <sys/types.h>
15662 #ifdef HAVE_SYS_PARAM_H
15663 # include <sys/param.h>
15664 #endif
15665 #ifdef STATFS_DEFINED_BY_SYS_MOUNT
15666 # include <sys/mount.h>
15667 #else
15668 # ifdef STATFS_DEFINED_BY_SYS_VFS
15669 #  include <sys/vfs.h>
15670 # else
15671 #  ifdef STATFS_DEFINED_BY_SYS_STATFS
15672 #   include <sys/statfs.h>
15673 #  endif
15674 # endif
15675 #endif
15676
15677 int
15678 main ()
15679 {
15680 static struct statfs ac_aggr;
15681 if (sizeof ac_aggr.f_bavail)
15682 return 0;
15683   ;
15684   return 0;
15685 }
15686 _ACEOF
15687 rm -f conftest.$ac_objext
15688 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15689   (eval $ac_compile) 2>&5
15690   ac_status=$?
15691   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15692   (exit $ac_status); } &&
15693          { ac_try='test -s conftest.$ac_objext'
15694   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15695   (eval $ac_try) 2>&5
15696   ac_status=$?
15697   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15698   (exit $ac_status); }; }; then
15699   ac_cv_member_struct_statfs_f_bavail=yes
15700 else
15701   echo "$as_me: failed program was:" >&5
15702 sed 's/^/| /' conftest.$ac_ext >&5
15703
15704 ac_cv_member_struct_statfs_f_bavail=no
15705 fi
15706 rm -f conftest.$ac_objext conftest.$ac_ext
15707 fi
15708 rm -f conftest.$ac_objext conftest.$ac_ext
15709 fi
15710 echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_bavail" >&5
15711 echo "${ECHO_T}$ac_cv_member_struct_statfs_f_bavail" >&6
15712 if test $ac_cv_member_struct_statfs_f_bavail = yes; then
15713
15714 cat >>confdefs.h <<_ACEOF
15715 #define HAVE_STRUCT_STATFS_F_BAVAIL 1
15716 _ACEOF
15717
15718
15719 fi
15720
15721
15722 echo "$as_me:$LINENO: checking for struct msghdr.msg_accrights" >&5
15723 echo $ECHO_N "checking for struct msghdr.msg_accrights... $ECHO_C" >&6
15724 if test "${ac_cv_member_struct_msghdr_msg_accrights+set}" = set; then
15725   echo $ECHO_N "(cached) $ECHO_C" >&6
15726 else
15727   cat >conftest.$ac_ext <<_ACEOF
15728 #line $LINENO "configure"
15729 /* confdefs.h.  */
15730 _ACEOF
15731 cat confdefs.h >>conftest.$ac_ext
15732 cat >>conftest.$ac_ext <<_ACEOF
15733 /* end confdefs.h.  */
15734 #include <sys/types.h>
15735 #ifdef HAVE_SYS_SOCKET_H
15736 # include <sys/socket.h>
15737 #endif
15738 #ifdef HAVE_SYS_UN_H
15739 # include <sys/un.h>
15740 #endif
15741
15742 int
15743 main ()
15744 {
15745 static struct msghdr ac_aggr;
15746 if (ac_aggr.msg_accrights)
15747 return 0;
15748   ;
15749   return 0;
15750 }
15751 _ACEOF
15752 rm -f conftest.$ac_objext
15753 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15754   (eval $ac_compile) 2>&5
15755   ac_status=$?
15756   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15757   (exit $ac_status); } &&
15758          { ac_try='test -s conftest.$ac_objext'
15759   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15760   (eval $ac_try) 2>&5
15761   ac_status=$?
15762   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15763   (exit $ac_status); }; }; then
15764   ac_cv_member_struct_msghdr_msg_accrights=yes
15765 else
15766   echo "$as_me: failed program was:" >&5
15767 sed 's/^/| /' conftest.$ac_ext >&5
15768
15769 cat >conftest.$ac_ext <<_ACEOF
15770 #line $LINENO "configure"
15771 /* confdefs.h.  */
15772 _ACEOF
15773 cat confdefs.h >>conftest.$ac_ext
15774 cat >>conftest.$ac_ext <<_ACEOF
15775 /* end confdefs.h.  */
15776 #include <sys/types.h>
15777 #ifdef HAVE_SYS_SOCKET_H
15778 # include <sys/socket.h>
15779 #endif
15780 #ifdef HAVE_SYS_UN_H
15781 # include <sys/un.h>
15782 #endif
15783
15784 int
15785 main ()
15786 {
15787 static struct msghdr ac_aggr;
15788 if (sizeof ac_aggr.msg_accrights)
15789 return 0;
15790   ;
15791   return 0;
15792 }
15793 _ACEOF
15794 rm -f conftest.$ac_objext
15795 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15796   (eval $ac_compile) 2>&5
15797   ac_status=$?
15798   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15799   (exit $ac_status); } &&
15800          { ac_try='test -s conftest.$ac_objext'
15801   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15802   (eval $ac_try) 2>&5
15803   ac_status=$?
15804   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15805   (exit $ac_status); }; }; then
15806   ac_cv_member_struct_msghdr_msg_accrights=yes
15807 else
15808   echo "$as_me: failed program was:" >&5
15809 sed 's/^/| /' conftest.$ac_ext >&5
15810
15811 ac_cv_member_struct_msghdr_msg_accrights=no
15812 fi
15813 rm -f conftest.$ac_objext conftest.$ac_ext
15814 fi
15815 rm -f conftest.$ac_objext conftest.$ac_ext
15816 fi
15817 echo "$as_me:$LINENO: result: $ac_cv_member_struct_msghdr_msg_accrights" >&5
15818 echo "${ECHO_T}$ac_cv_member_struct_msghdr_msg_accrights" >&6
15819 if test $ac_cv_member_struct_msghdr_msg_accrights = yes; then
15820
15821 cat >>confdefs.h <<_ACEOF
15822 #define HAVE_STRUCT_MSGHDR_MSG_ACCRIGHTS 1
15823 _ACEOF
15824
15825
15826 fi
15827 echo "$as_me:$LINENO: checking for struct sockaddr.sa_len" >&5
15828 echo $ECHO_N "checking for struct sockaddr.sa_len... $ECHO_C" >&6
15829 if test "${ac_cv_member_struct_sockaddr_sa_len+set}" = set; then
15830   echo $ECHO_N "(cached) $ECHO_C" >&6
15831 else
15832   cat >conftest.$ac_ext <<_ACEOF
15833 #line $LINENO "configure"
15834 /* confdefs.h.  */
15835 _ACEOF
15836 cat confdefs.h >>conftest.$ac_ext
15837 cat >>conftest.$ac_ext <<_ACEOF
15838 /* end confdefs.h.  */
15839 #include <sys/types.h>
15840 #ifdef HAVE_SYS_SOCKET_H
15841 # include <sys/socket.h>
15842 #endif
15843 #ifdef HAVE_SYS_UN_H
15844 # include <sys/un.h>
15845 #endif
15846
15847 int
15848 main ()
15849 {
15850 static struct sockaddr ac_aggr;
15851 if (ac_aggr.sa_len)
15852 return 0;
15853   ;
15854   return 0;
15855 }
15856 _ACEOF
15857 rm -f conftest.$ac_objext
15858 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15859   (eval $ac_compile) 2>&5
15860   ac_status=$?
15861   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15862   (exit $ac_status); } &&
15863          { ac_try='test -s conftest.$ac_objext'
15864   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15865   (eval $ac_try) 2>&5
15866   ac_status=$?
15867   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15868   (exit $ac_status); }; }; then
15869   ac_cv_member_struct_sockaddr_sa_len=yes
15870 else
15871   echo "$as_me: failed program was:" >&5
15872 sed 's/^/| /' conftest.$ac_ext >&5
15873
15874 cat >conftest.$ac_ext <<_ACEOF
15875 #line $LINENO "configure"
15876 /* confdefs.h.  */
15877 _ACEOF
15878 cat confdefs.h >>conftest.$ac_ext
15879 cat >>conftest.$ac_ext <<_ACEOF
15880 /* end confdefs.h.  */
15881 #include <sys/types.h>
15882 #ifdef HAVE_SYS_SOCKET_H
15883 # include <sys/socket.h>
15884 #endif
15885 #ifdef HAVE_SYS_UN_H
15886 # include <sys/un.h>
15887 #endif
15888
15889 int
15890 main ()
15891 {
15892 static struct sockaddr ac_aggr;
15893 if (sizeof ac_aggr.sa_len)
15894 return 0;
15895   ;
15896   return 0;
15897 }
15898 _ACEOF
15899 rm -f conftest.$ac_objext
15900 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15901   (eval $ac_compile) 2>&5
15902   ac_status=$?
15903   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15904   (exit $ac_status); } &&
15905          { ac_try='test -s conftest.$ac_objext'
15906   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15907   (eval $ac_try) 2>&5
15908   ac_status=$?
15909   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15910   (exit $ac_status); }; }; then
15911   ac_cv_member_struct_sockaddr_sa_len=yes
15912 else
15913   echo "$as_me: failed program was:" >&5
15914 sed 's/^/| /' conftest.$ac_ext >&5
15915
15916 ac_cv_member_struct_sockaddr_sa_len=no
15917 fi
15918 rm -f conftest.$ac_objext conftest.$ac_ext
15919 fi
15920 rm -f conftest.$ac_objext conftest.$ac_ext
15921 fi
15922 echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_sa_len" >&5
15923 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_sa_len" >&6
15924 if test $ac_cv_member_struct_sockaddr_sa_len = yes; then
15925
15926 cat >>confdefs.h <<_ACEOF
15927 #define HAVE_STRUCT_SOCKADDR_SA_LEN 1
15928 _ACEOF
15929
15930
15931 fi
15932 echo "$as_me:$LINENO: checking for struct sockaddr_un.sun_len" >&5
15933 echo $ECHO_N "checking for struct sockaddr_un.sun_len... $ECHO_C" >&6
15934 if test "${ac_cv_member_struct_sockaddr_un_sun_len+set}" = set; then
15935   echo $ECHO_N "(cached) $ECHO_C" >&6
15936 else
15937   cat >conftest.$ac_ext <<_ACEOF
15938 #line $LINENO "configure"
15939 /* confdefs.h.  */
15940 _ACEOF
15941 cat confdefs.h >>conftest.$ac_ext
15942 cat >>conftest.$ac_ext <<_ACEOF
15943 /* end confdefs.h.  */
15944 #include <sys/types.h>
15945 #ifdef HAVE_SYS_SOCKET_H
15946 # include <sys/socket.h>
15947 #endif
15948 #ifdef HAVE_SYS_UN_H
15949 # include <sys/un.h>
15950 #endif
15951
15952 int
15953 main ()
15954 {
15955 static struct sockaddr_un ac_aggr;
15956 if (ac_aggr.sun_len)
15957 return 0;
15958   ;
15959   return 0;
15960 }
15961 _ACEOF
15962 rm -f conftest.$ac_objext
15963 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15964   (eval $ac_compile) 2>&5
15965   ac_status=$?
15966   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15967   (exit $ac_status); } &&
15968          { ac_try='test -s conftest.$ac_objext'
15969   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15970   (eval $ac_try) 2>&5
15971   ac_status=$?
15972   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15973   (exit $ac_status); }; }; then
15974   ac_cv_member_struct_sockaddr_un_sun_len=yes
15975 else
15976   echo "$as_me: failed program was:" >&5
15977 sed 's/^/| /' conftest.$ac_ext >&5
15978
15979 cat >conftest.$ac_ext <<_ACEOF
15980 #line $LINENO "configure"
15981 /* confdefs.h.  */
15982 _ACEOF
15983 cat confdefs.h >>conftest.$ac_ext
15984 cat >>conftest.$ac_ext <<_ACEOF
15985 /* end confdefs.h.  */
15986 #include <sys/types.h>
15987 #ifdef HAVE_SYS_SOCKET_H
15988 # include <sys/socket.h>
15989 #endif
15990 #ifdef HAVE_SYS_UN_H
15991 # include <sys/un.h>
15992 #endif
15993
15994 int
15995 main ()
15996 {
15997 static struct sockaddr_un ac_aggr;
15998 if (sizeof ac_aggr.sun_len)
15999 return 0;
16000   ;
16001   return 0;
16002 }
16003 _ACEOF
16004 rm -f conftest.$ac_objext
16005 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16006   (eval $ac_compile) 2>&5
16007   ac_status=$?
16008   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16009   (exit $ac_status); } &&
16010          { ac_try='test -s conftest.$ac_objext'
16011   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16012   (eval $ac_try) 2>&5
16013   ac_status=$?
16014   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16015   (exit $ac_status); }; }; then
16016   ac_cv_member_struct_sockaddr_un_sun_len=yes
16017 else
16018   echo "$as_me: failed program was:" >&5
16019 sed 's/^/| /' conftest.$ac_ext >&5
16020
16021 ac_cv_member_struct_sockaddr_un_sun_len=no
16022 fi
16023 rm -f conftest.$ac_objext conftest.$ac_ext
16024 fi
16025 rm -f conftest.$ac_objext conftest.$ac_ext
16026 fi
16027 echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_un_sun_len" >&5
16028 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_un_sun_len" >&6
16029 if test $ac_cv_member_struct_sockaddr_un_sun_len = yes; then
16030
16031 cat >>confdefs.h <<_ACEOF
16032 #define HAVE_STRUCT_SOCKADDR_UN_SUN_LEN 1
16033 _ACEOF
16034
16035
16036 fi
16037
16038
16039 echo "$as_me:$LINENO: checking for siginfo_t.si_fd" >&5
16040 echo $ECHO_N "checking for siginfo_t.si_fd... $ECHO_C" >&6
16041 if test "${ac_cv_member_siginfo_t_si_fd+set}" = set; then
16042   echo $ECHO_N "(cached) $ECHO_C" >&6
16043 else
16044   cat >conftest.$ac_ext <<_ACEOF
16045 #line $LINENO "configure"
16046 /* confdefs.h.  */
16047 _ACEOF
16048 cat confdefs.h >>conftest.$ac_ext
16049 cat >>conftest.$ac_ext <<_ACEOF
16050 /* end confdefs.h.  */
16051 #include <signal.h>
16052
16053 int
16054 main ()
16055 {
16056 static siginfo_t ac_aggr;
16057 if (ac_aggr.si_fd)
16058 return 0;
16059   ;
16060   return 0;
16061 }
16062 _ACEOF
16063 rm -f conftest.$ac_objext
16064 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16065   (eval $ac_compile) 2>&5
16066   ac_status=$?
16067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16068   (exit $ac_status); } &&
16069          { ac_try='test -s conftest.$ac_objext'
16070   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16071   (eval $ac_try) 2>&5
16072   ac_status=$?
16073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16074   (exit $ac_status); }; }; then
16075   ac_cv_member_siginfo_t_si_fd=yes
16076 else
16077   echo "$as_me: failed program was:" >&5
16078 sed 's/^/| /' conftest.$ac_ext >&5
16079
16080 cat >conftest.$ac_ext <<_ACEOF
16081 #line $LINENO "configure"
16082 /* confdefs.h.  */
16083 _ACEOF
16084 cat confdefs.h >>conftest.$ac_ext
16085 cat >>conftest.$ac_ext <<_ACEOF
16086 /* end confdefs.h.  */
16087 #include <signal.h>
16088
16089 int
16090 main ()
16091 {
16092 static siginfo_t ac_aggr;
16093 if (sizeof ac_aggr.si_fd)
16094 return 0;
16095   ;
16096   return 0;
16097 }
16098 _ACEOF
16099 rm -f conftest.$ac_objext
16100 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16101   (eval $ac_compile) 2>&5
16102   ac_status=$?
16103   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16104   (exit $ac_status); } &&
16105          { ac_try='test -s conftest.$ac_objext'
16106   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16107   (eval $ac_try) 2>&5
16108   ac_status=$?
16109   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16110   (exit $ac_status); }; }; then
16111   ac_cv_member_siginfo_t_si_fd=yes
16112 else
16113   echo "$as_me: failed program was:" >&5
16114 sed 's/^/| /' conftest.$ac_ext >&5
16115
16116 ac_cv_member_siginfo_t_si_fd=no
16117 fi
16118 rm -f conftest.$ac_objext conftest.$ac_ext
16119 fi
16120 rm -f conftest.$ac_objext conftest.$ac_ext
16121 fi
16122 echo "$as_me:$LINENO: result: $ac_cv_member_siginfo_t_si_fd" >&5
16123 echo "${ECHO_T}$ac_cv_member_siginfo_t_si_fd" >&6
16124 if test $ac_cv_member_siginfo_t_si_fd = yes; then
16125
16126 cat >>confdefs.h <<_ACEOF
16127 #define HAVE_SIGINFO_T_SI_FD 1
16128 _ACEOF
16129
16130
16131 fi
16132
16133
16134 echo "$as_me:$LINENO: checking for struct option.name" >&5
16135 echo $ECHO_N "checking for struct option.name... $ECHO_C" >&6
16136 if test "${ac_cv_member_struct_option_name+set}" = set; then
16137   echo $ECHO_N "(cached) $ECHO_C" >&6
16138 else
16139   cat >conftest.$ac_ext <<_ACEOF
16140 #line $LINENO "configure"
16141 /* confdefs.h.  */
16142 _ACEOF
16143 cat confdefs.h >>conftest.$ac_ext
16144 cat >>conftest.$ac_ext <<_ACEOF
16145 /* end confdefs.h.  */
16146 #ifdef HAVE_GETOPT_H
16147 #include <getopt.h>
16148 #endif
16149
16150 int
16151 main ()
16152 {
16153 static struct option ac_aggr;
16154 if (ac_aggr.name)
16155 return 0;
16156   ;
16157   return 0;
16158 }
16159 _ACEOF
16160 rm -f conftest.$ac_objext
16161 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16162   (eval $ac_compile) 2>&5
16163   ac_status=$?
16164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16165   (exit $ac_status); } &&
16166          { ac_try='test -s conftest.$ac_objext'
16167   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16168   (eval $ac_try) 2>&5
16169   ac_status=$?
16170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16171   (exit $ac_status); }; }; then
16172   ac_cv_member_struct_option_name=yes
16173 else
16174   echo "$as_me: failed program was:" >&5
16175 sed 's/^/| /' conftest.$ac_ext >&5
16176
16177 cat >conftest.$ac_ext <<_ACEOF
16178 #line $LINENO "configure"
16179 /* confdefs.h.  */
16180 _ACEOF
16181 cat confdefs.h >>conftest.$ac_ext
16182 cat >>conftest.$ac_ext <<_ACEOF
16183 /* end confdefs.h.  */
16184 #ifdef HAVE_GETOPT_H
16185 #include <getopt.h>
16186 #endif
16187
16188 int
16189 main ()
16190 {
16191 static struct option ac_aggr;
16192 if (sizeof ac_aggr.name)
16193 return 0;
16194   ;
16195   return 0;
16196 }
16197 _ACEOF
16198 rm -f conftest.$ac_objext
16199 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16200   (eval $ac_compile) 2>&5
16201   ac_status=$?
16202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16203   (exit $ac_status); } &&
16204          { ac_try='test -s conftest.$ac_objext'
16205   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16206   (eval $ac_try) 2>&5
16207   ac_status=$?
16208   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16209   (exit $ac_status); }; }; then
16210   ac_cv_member_struct_option_name=yes
16211 else
16212   echo "$as_me: failed program was:" >&5
16213 sed 's/^/| /' conftest.$ac_ext >&5
16214
16215 ac_cv_member_struct_option_name=no
16216 fi
16217 rm -f conftest.$ac_objext conftest.$ac_ext
16218 fi
16219 rm -f conftest.$ac_objext conftest.$ac_ext
16220 fi
16221 echo "$as_me:$LINENO: result: $ac_cv_member_struct_option_name" >&5
16222 echo "${ECHO_T}$ac_cv_member_struct_option_name" >&6
16223 if test $ac_cv_member_struct_option_name = yes; then
16224
16225 cat >>confdefs.h <<_ACEOF
16226 #define HAVE_STRUCT_OPTION_NAME 1
16227 _ACEOF
16228
16229
16230 fi
16231
16232
16233 echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
16234 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
16235 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
16236   echo $ECHO_N "(cached) $ECHO_C" >&6
16237 else
16238   cat >conftest.$ac_ext <<_ACEOF
16239 #line $LINENO "configure"
16240 /* confdefs.h.  */
16241 _ACEOF
16242 cat confdefs.h >>conftest.$ac_ext
16243 cat >>conftest.$ac_ext <<_ACEOF
16244 /* end confdefs.h.  */
16245 $ac_includes_default
16246 int
16247 main ()
16248 {
16249 static struct stat ac_aggr;
16250 if (ac_aggr.st_blocks)
16251 return 0;
16252   ;
16253   return 0;
16254 }
16255 _ACEOF
16256 rm -f conftest.$ac_objext
16257 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16258   (eval $ac_compile) 2>&5
16259   ac_status=$?
16260   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16261   (exit $ac_status); } &&
16262          { ac_try='test -s conftest.$ac_objext'
16263   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16264   (eval $ac_try) 2>&5
16265   ac_status=$?
16266   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16267   (exit $ac_status); }; }; then
16268   ac_cv_member_struct_stat_st_blocks=yes
16269 else
16270   echo "$as_me: failed program was:" >&5
16271 sed 's/^/| /' conftest.$ac_ext >&5
16272
16273 cat >conftest.$ac_ext <<_ACEOF
16274 #line $LINENO "configure"
16275 /* confdefs.h.  */
16276 _ACEOF
16277 cat confdefs.h >>conftest.$ac_ext
16278 cat >>conftest.$ac_ext <<_ACEOF
16279 /* end confdefs.h.  */
16280 $ac_includes_default
16281 int
16282 main ()
16283 {
16284 static struct stat ac_aggr;
16285 if (sizeof ac_aggr.st_blocks)
16286 return 0;
16287   ;
16288   return 0;
16289 }
16290 _ACEOF
16291 rm -f conftest.$ac_objext
16292 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16293   (eval $ac_compile) 2>&5
16294   ac_status=$?
16295   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16296   (exit $ac_status); } &&
16297          { ac_try='test -s conftest.$ac_objext'
16298   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16299   (eval $ac_try) 2>&5
16300   ac_status=$?
16301   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16302   (exit $ac_status); }; }; then
16303   ac_cv_member_struct_stat_st_blocks=yes
16304 else
16305   echo "$as_me: failed program was:" >&5
16306 sed 's/^/| /' conftest.$ac_ext >&5
16307
16308 ac_cv_member_struct_stat_st_blocks=no
16309 fi
16310 rm -f conftest.$ac_objext conftest.$ac_ext
16311 fi
16312 rm -f conftest.$ac_objext conftest.$ac_ext
16313 fi
16314 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
16315 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
16316 if test $ac_cv_member_struct_stat_st_blocks = yes; then
16317
16318 cat >>confdefs.h <<_ACEOF
16319 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
16320 _ACEOF
16321
16322
16323 fi
16324
16325
16326
16327 case $host_cpu in
16328   *i[3456789]86*) echo "$as_me:$LINENO: checking whether we need to define __i386__" >&5
16329 echo $ECHO_N "checking whether we need to define __i386__... $ECHO_C" >&6
16330 if test "${ac_cv_cpp_def___i386__+set}" = set; then
16331   echo $ECHO_N "(cached) $ECHO_C" >&6
16332 else
16333   cat >conftest.$ac_ext <<_ACEOF
16334 #line $LINENO "configure"
16335 /* confdefs.h.  */
16336 _ACEOF
16337 cat confdefs.h >>conftest.$ac_ext
16338 cat >>conftest.$ac_ext <<_ACEOF
16339 /* end confdefs.h.  */
16340 #ifndef __i386__
16341 yes
16342 #endif
16343 _ACEOF
16344 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16345   $EGREP "yes" >/dev/null 2>&1; then
16346   ac_cv_cpp_def___i386__=yes
16347 else
16348   ac_cv_cpp_def___i386__=no
16349 fi
16350 rm -f conftest*
16351
16352 fi
16353 echo "$as_me:$LINENO: result: $ac_cv_cpp_def___i386__" >&5
16354 echo "${ECHO_T}$ac_cv_cpp_def___i386__" >&6
16355 if test $ac_cv_cpp_def___i386__ = yes; then
16356   CFLAGS="$CFLAGS -D__i386__"
16357   LINTFLAGS="$LINTFLAGS -D__i386__"
16358 fi
16359  ;;
16360   *alpha*)          echo "$as_me:$LINENO: checking whether we need to define __ALPHA__" >&5
16361 echo $ECHO_N "checking whether we need to define __ALPHA__... $ECHO_C" >&6
16362 if test "${ac_cv_cpp_def___ALPHA__+set}" = set; then
16363   echo $ECHO_N "(cached) $ECHO_C" >&6
16364 else
16365   cat >conftest.$ac_ext <<_ACEOF
16366 #line $LINENO "configure"
16367 /* confdefs.h.  */
16368 _ACEOF
16369 cat confdefs.h >>conftest.$ac_ext
16370 cat >>conftest.$ac_ext <<_ACEOF
16371 /* end confdefs.h.  */
16372 #ifndef __ALPHA__
16373 yes
16374 #endif
16375 _ACEOF
16376 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16377   $EGREP "yes" >/dev/null 2>&1; then
16378   ac_cv_cpp_def___ALPHA__=yes
16379 else
16380   ac_cv_cpp_def___ALPHA__=no
16381 fi
16382 rm -f conftest*
16383
16384 fi
16385 echo "$as_me:$LINENO: result: $ac_cv_cpp_def___ALPHA__" >&5
16386 echo "${ECHO_T}$ac_cv_cpp_def___ALPHA__" >&6
16387 if test $ac_cv_cpp_def___ALPHA__ = yes; then
16388   CFLAGS="$CFLAGS -D__ALPHA__"
16389   LINTFLAGS="$LINTFLAGS -D__ALPHA__"
16390 fi
16391  ;;
16392   *sparc*)          echo "$as_me:$LINENO: checking whether we need to define __sparc__" >&5
16393 echo $ECHO_N "checking whether we need to define __sparc__... $ECHO_C" >&6
16394 if test "${ac_cv_cpp_def___sparc__+set}" = set; then
16395   echo $ECHO_N "(cached) $ECHO_C" >&6
16396 else
16397   cat >conftest.$ac_ext <<_ACEOF
16398 #line $LINENO "configure"
16399 /* confdefs.h.  */
16400 _ACEOF
16401 cat confdefs.h >>conftest.$ac_ext
16402 cat >>conftest.$ac_ext <<_ACEOF
16403 /* end confdefs.h.  */
16404 #ifndef __sparc__
16405 yes
16406 #endif
16407 _ACEOF
16408 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16409   $EGREP "yes" >/dev/null 2>&1; then
16410   ac_cv_cpp_def___sparc__=yes
16411 else
16412   ac_cv_cpp_def___sparc__=no
16413 fi
16414 rm -f conftest*
16415
16416 fi
16417 echo "$as_me:$LINENO: result: $ac_cv_cpp_def___sparc__" >&5
16418 echo "${ECHO_T}$ac_cv_cpp_def___sparc__" >&6
16419 if test $ac_cv_cpp_def___sparc__ = yes; then
16420   CFLAGS="$CFLAGS -D__sparc__"
16421   LINTFLAGS="$LINTFLAGS -D__sparc__"
16422 fi
16423  ;;
16424   *powerpc*)        echo "$as_me:$LINENO: checking whether we need to define __powerpc__" >&5
16425 echo $ECHO_N "checking whether we need to define __powerpc__... $ECHO_C" >&6
16426 if test "${ac_cv_cpp_def___powerpc__+set}" = set; then
16427   echo $ECHO_N "(cached) $ECHO_C" >&6
16428 else
16429   cat >conftest.$ac_ext <<_ACEOF
16430 #line $LINENO "configure"
16431 /* confdefs.h.  */
16432 _ACEOF
16433 cat confdefs.h >>conftest.$ac_ext
16434 cat >>conftest.$ac_ext <<_ACEOF
16435 /* end confdefs.h.  */
16436 #ifndef __powerpc__
16437 yes
16438 #endif
16439 _ACEOF
16440 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16441   $EGREP "yes" >/dev/null 2>&1; then
16442   ac_cv_cpp_def___powerpc__=yes
16443 else
16444   ac_cv_cpp_def___powerpc__=no
16445 fi
16446 rm -f conftest*
16447
16448 fi
16449 echo "$as_me:$LINENO: result: $ac_cv_cpp_def___powerpc__" >&5
16450 echo "${ECHO_T}$ac_cv_cpp_def___powerpc__" >&6
16451 if test $ac_cv_cpp_def___powerpc__ = yes; then
16452   CFLAGS="$CFLAGS -D__powerpc__"
16453   LINTFLAGS="$LINTFLAGS -D__powerpc__"
16454 fi
16455  ;;
16456 esac
16457
16458 case $host_vendor in
16459   *sun*) echo "$as_me:$LINENO: checking whether we need to define __sun__" >&5
16460 echo $ECHO_N "checking whether we need to define __sun__... $ECHO_C" >&6
16461 if test "${ac_cv_cpp_def___sun__+set}" = set; then
16462   echo $ECHO_N "(cached) $ECHO_C" >&6
16463 else
16464   cat >conftest.$ac_ext <<_ACEOF
16465 #line $LINENO "configure"
16466 /* confdefs.h.  */
16467 _ACEOF
16468 cat confdefs.h >>conftest.$ac_ext
16469 cat >>conftest.$ac_ext <<_ACEOF
16470 /* end confdefs.h.  */
16471 #ifndef __sun__
16472 yes
16473 #endif
16474 _ACEOF
16475 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16476   $EGREP "yes" >/dev/null 2>&1; then
16477   ac_cv_cpp_def___sun__=yes
16478 else
16479   ac_cv_cpp_def___sun__=no
16480 fi
16481 rm -f conftest*
16482
16483 fi
16484 echo "$as_me:$LINENO: result: $ac_cv_cpp_def___sun__" >&5
16485 echo "${ECHO_T}$ac_cv_cpp_def___sun__" >&6
16486 if test $ac_cv_cpp_def___sun__ = yes; then
16487   CFLAGS="$CFLAGS -D__sun__"
16488   LINTFLAGS="$LINTFLAGS -D__sun__"
16489 fi
16490  ;;
16491 esac
16492
16493
16494
16495
16496
16497           ac_config_commands="$ac_config_commands controls"
16498
16499           ac_config_commands="$ac_config_commands dlls/ddraw/d3ddevice"
16500
16501           ac_config_commands="$ac_config_commands dlls/ddraw/dclipper"
16502
16503           ac_config_commands="$ac_config_commands dlls/ddraw/ddraw"
16504
16505           ac_config_commands="$ac_config_commands dlls/ddraw/direct3d"
16506
16507           ac_config_commands="$ac_config_commands dlls/ddraw/dpalette"
16508
16509           ac_config_commands="$ac_config_commands dlls/ddraw/dsurface"
16510
16511           ac_config_commands="$ac_config_commands dlls/dinput/joystick"
16512
16513           ac_config_commands="$ac_config_commands dlls/dinput/keyboard"
16514
16515           ac_config_commands="$ac_config_commands dlls/dinput/mouse"
16516
16517           ac_config_commands="$ac_config_commands dlls/gdi/enhmfdrv"
16518
16519           ac_config_commands="$ac_config_commands dlls/gdi/mfdrv"
16520
16521           ac_config_commands="$ac_config_commands dlls/kernel/messages"
16522
16523           ac_config_commands="$ac_config_commands dlls/user/dde"
16524
16525           ac_config_commands="$ac_config_commands dlls/user/resources"
16526
16527           ac_config_commands="$ac_config_commands dlls/wineps/data"
16528
16529           ac_config_commands="$ac_config_commands files"
16530
16531           ac_config_commands="$ac_config_commands graphics"
16532
16533           ac_config_commands="$ac_config_commands graphics/x11drv"
16534
16535           ac_config_commands="$ac_config_commands include/wine"
16536
16537           ac_config_commands="$ac_config_commands loader"
16538
16539           ac_config_commands="$ac_config_commands memory"
16540
16541           ac_config_commands="$ac_config_commands misc"
16542
16543           ac_config_commands="$ac_config_commands msdos"
16544
16545           ac_config_commands="$ac_config_commands objects"
16546
16547           ac_config_commands="$ac_config_commands programs/regapi/tests"
16548
16549           ac_config_commands="$ac_config_commands programs/regedit/tests"
16550
16551           ac_config_commands="$ac_config_commands scheduler"
16552
16553           ac_config_commands="$ac_config_commands windows"
16554
16555
16556 MAKE_RULES=Make.rules
16557
16558
16559 MAKE_DLL_RULES=dlls/Makedll.rules
16560
16561
16562 MAKE_TEST_RULES=dlls/Maketest.rules
16563
16564
16565 MAKE_LIB_RULES=libs/Makelib.rules
16566
16567
16568 MAKE_PROG_RULES=programs/Makeprog.rules
16569
16570
16571                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           ac_config_files="$ac_config_files Make.rules dlls/Makedll.rules dlls/Maketest.rules libs/Makelib.rules programs/Makeprog.rules Makefile dlls/Makefile dlls/advapi32/Makefile dlls/advapi32/tests/Makefile dlls/avicap32/Makefile dlls/avifil32/Makefile dlls/cabinet/Makefile dlls/comcat/Makefile dlls/comctl32/Makefile dlls/comctl32/tests/Makefile dlls/commdlg/Makefile dlls/crtdll/Makefile dlls/crypt32/Makefile dlls/ctl3d/Makefile dlls/d3d8/Makefile dlls/d3d9/Makefile dlls/d3dim/Makefile dlls/d3dx8/Makefile dlls/dciman32/Makefile dlls/ddraw/Makefile dlls/devenum/Makefile dlls/dinput/Makefile dlls/dinput8/Makefile dlls/dmband/Makefile dlls/dmcompos/Makefile dlls/dmime/Makefile dlls/dmloader/Makefile dlls/dmscript/Makefile dlls/dmstyle/Makefile dlls/dmsynth/Makefile dlls/dmusic/Makefile dlls/dmusic32/Makefile dlls/dplay/Makefile dlls/dplayx/Makefile dlls/dpnhpast/Makefile dlls/dsound/Makefile dlls/dsound/tests/Makefile dlls/gdi/Makefile dlls/gdi/tests/Makefile dlls/glu32/Makefile dlls/icmp/Makefile dlls/imagehlp/Makefile dlls/imm32/Makefile dlls/iphlpapi/Makefile dlls/kernel/Makefile dlls/kernel/tests/Makefile dlls/lzexpand/Makefile dlls/mapi32/Makefile dlls/mpr/Makefile dlls/msacm/Makefile dlls/msacm/imaadp32/Makefile dlls/msacm/msadp32/Makefile dlls/msacm/msg711/Makefile dlls/msacm/winemp3/Makefile dlls/msdmo/Makefile dlls/mshtml/Makefile dlls/msi/Makefile dlls/msimg32/Makefile dlls/msisys/Makefile dlls/msnet32/Makefile dlls/msvcrt/Makefile dlls/msvcrt/tests/Makefile dlls/msvcrt20/Makefile dlls/msvcrtd/Makefile dlls/msvideo/Makefile dlls/msvideo/msrle32/Makefile dlls/mswsock/Makefile dlls/netapi32/Makefile dlls/netapi32/tests/Makefile dlls/ntdll/Makefile dlls/ntdll/tests/Makefile dlls/odbc32/Makefile dlls/ole32/Makefile dlls/oleacc/Makefile dlls/oleaut32/Makefile dlls/oleaut32/tests/Makefile dlls/olecli/Makefile dlls/oledlg/Makefile dlls/olepro32/Makefile dlls/olesvr/Makefile dlls/opengl32/Makefile dlls/psapi/Makefile dlls/qcap/Makefile dlls/quartz/Makefile dlls/rasapi32/Makefile dlls/richedit/Makefile dlls/rpcrt4/Makefile dlls/rpcrt4/tests/Makefile dlls/serialui/Makefile dlls/setupapi/Makefile dlls/shdocvw/Makefile dlls/shell32/Makefile dlls/shell32/tests/Makefile dlls/shfolder/Makefile dlls/shlwapi/Makefile dlls/shlwapi/tests/Makefile dlls/snmpapi/Makefile dlls/sti/Makefile dlls/tapi32/Makefile dlls/ttydrv/Makefile dlls/twain/Makefile dlls/url/Makefile dlls/urlmon/Makefile dlls/urlmon/tests/Makefile dlls/user/Makefile dlls/user/tests/Makefile dlls/uxtheme/Makefile dlls/version/Makefile dlls/win32s/Makefile dlls/winaspi/Makefile dlls/winedos/Makefile dlls/wineps/Makefile dlls/wininet/Makefile dlls/wininet/tests/Makefile dlls/winmm/Makefile dlls/winmm/joystick/Makefile dlls/winmm/mcianim/Makefile dlls/winmm/mciavi/Makefile dlls/winmm/mcicda/Makefile dlls/winmm/mciseq/Makefile dlls/winmm/mciwave/Makefile dlls/winmm/midimap/Makefile dlls/winmm/tests/Makefile dlls/winmm/wavemap/Makefile dlls/winmm/winealsa/Makefile dlls/winmm/winearts/Makefile dlls/winmm/wineaudioio/Makefile dlls/winmm/winenas/Makefile dlls/winmm/winejack/Makefile dlls/winmm/wineoss/Makefile dlls/winnls/Makefile dlls/winsock/Makefile dlls/winsock/tests/Makefile dlls/winspool/Makefile dlls/winspool/tests/Makefile dlls/wintab32/Makefile dlls/wintrust/Makefile dlls/wow32/Makefile dlls/wsock32/Makefile dlls/x11drv/Makefile documentation/Makefile include/Makefile libs/Makefile libs/port/Makefile libs/unicode/Makefile libs/uuid/Makefile libs/wine/Makefile libs/wpp/Makefile miscemu/Makefile programs/Makefile programs/avitools/Makefile programs/clock/Makefile programs/cmdlgtst/Makefile programs/control/Makefile programs/expand/Makefile programs/notepad/Makefile programs/osversioncheck/Makefile programs/progman/Makefile programs/regapi/Makefile programs/regedit/Makefile programs/regsvr32/Makefile programs/regtest/Makefile programs/rpcss/Makefile programs/rundll32/Makefile programs/start/Makefile programs/uninstaller/Makefile programs/view/Makefile programs/wcmd/Makefile programs/wineboot/Makefile programs/winecfg/Makefile programs/wineconsole/Makefile programs/winedbg/Makefile programs/winefile/Makefile programs/winemenubuilder/Makefile programs/winemine/Makefile programs/winepath/Makefile programs/winevdm/Makefile programs/winhelp/Makefile programs/winver/Makefile server/Makefile tools/Makefile tools/widl/Makefile tools/winapi/Makefile tools/winebuild/Makefile tools/winedump/Makefile tools/winegcc/Makefile tools/wmc/Makefile tools/wrc/Makefile"
16572
16573
16574 cat >confcache <<\_ACEOF
16575 # This file is a shell script that caches the results of configure
16576 # tests run on this system so they can be shared between configure
16577 # scripts and configure runs, see configure's option --config-cache.
16578 # It is not useful on other systems.  If it contains results you don't
16579 # want to keep, you may remove or edit it.
16580 #
16581 # config.status only pays attention to the cache file if you give it
16582 # the --recheck option to rerun configure.
16583 #
16584 # `ac_cv_env_foo' variables (set or unset) will be overridden when
16585 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16586 # following values.
16587
16588 _ACEOF
16589
16590 # The following way of writing the cache mishandles newlines in values,
16591 # but we know of no workaround that is simple, portable, and efficient.
16592 # So, don't put newlines in cache variables' values.
16593 # Ultrix sh set writes to stderr and can't be redirected directly,
16594 # and sets the high bit in the cache file unless we assign to the vars.
16595 {
16596   (set) 2>&1 |
16597     case `(ac_space=' '; set | grep ac_space) 2>&1` in
16598     *ac_space=\ *)
16599       # `set' does not quote correctly, so add quotes (double-quote
16600       # substitution turns \\\\ into \\, and sed turns \\ into \).
16601       sed -n \
16602         "s/'/'\\\\''/g;
16603           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16604       ;;
16605     *)
16606       # `set' quotes correctly as required by POSIX, so do not add quotes.
16607       sed -n \
16608         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
16609       ;;
16610     esac;
16611 } |
16612   sed '
16613      t clear
16614      : clear
16615      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16616      t end
16617      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16618      : end' >>confcache
16619 if diff $cache_file confcache >/dev/null 2>&1; then :; else
16620   if test -w $cache_file; then
16621     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
16622     cat confcache >$cache_file
16623   else
16624     echo "not updating unwritable cache $cache_file"
16625   fi
16626 fi
16627 rm -f confcache
16628
16629 test "x$prefix" = xNONE && prefix=$ac_default_prefix
16630 # Let make expand exec_prefix.
16631 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16632
16633 # VPATH may cause trouble with some makes, so we remove $(srcdir),
16634 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
16635 # trailing colons and then remove the whole line if VPATH becomes empty
16636 # (actually we leave an empty line to preserve line numbers).
16637 if test "x$srcdir" = x.; then
16638   ac_vpsub='/^[         ]*VPATH[        ]*=/{
16639 s/:*\$(srcdir):*/:/;
16640 s/:*\${srcdir}:*/:/;
16641 s/:*@srcdir@:*/:/;
16642 s/^\([^=]*=[    ]*\):*/\1/;
16643 s/:*$//;
16644 s/^[^=]*=[      ]*$//;
16645 }'
16646 fi
16647
16648 DEFS=-DHAVE_CONFIG_H
16649
16650 ac_libobjs=
16651 ac_ltlibobjs=
16652 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16653   # 1. Remove the extension, and $U if already installed.
16654   ac_i=`echo "$ac_i" |
16655          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
16656   # 2. Add them.
16657   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
16658   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
16659 done
16660 LIBOBJS=$ac_libobjs
16661
16662 LTLIBOBJS=$ac_ltlibobjs
16663
16664
16665
16666 : ${CONFIG_STATUS=./config.status}
16667 ac_clean_files_save=$ac_clean_files
16668 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16669 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
16670 echo "$as_me: creating $CONFIG_STATUS" >&6;}
16671 cat >$CONFIG_STATUS <<_ACEOF
16672 #! $SHELL
16673 # Generated by $as_me.
16674 # Run this file to recreate the current configuration.
16675 # Compiler output produced by configure, useful for debugging
16676 # configure, is in config.log if it exists.
16677
16678 debug=false
16679 ac_cs_recheck=false
16680 ac_cs_silent=false
16681 SHELL=\${CONFIG_SHELL-$SHELL}
16682 _ACEOF
16683
16684 cat >>$CONFIG_STATUS <<\_ACEOF
16685 ## --------------------- ##
16686 ## M4sh Initialization.  ##
16687 ## --------------------- ##
16688
16689 # Be Bourne compatible
16690 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16691   emulate sh
16692   NULLCMD=:
16693   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
16694   # is contrary to our usage.  Disable this feature.
16695   alias -g '${1+"$@"}'='"$@"'
16696 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
16697   set -o posix
16698 fi
16699
16700 # Support unset when possible.
16701 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
16702   as_unset=unset
16703 else
16704   as_unset=false
16705 fi
16706
16707
16708 # Work around bugs in pre-3.0 UWIN ksh.
16709 $as_unset ENV MAIL MAILPATH
16710 PS1='$ '
16711 PS2='> '
16712 PS4='+ '
16713
16714 # NLS nuisances.
16715 for as_var in \
16716   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
16717   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
16718   LC_TELEPHONE LC_TIME
16719 do
16720   if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
16721     eval $as_var=C; export $as_var
16722   else
16723     $as_unset $as_var
16724   fi
16725 done
16726
16727 # Required to use basename.
16728 if expr a : '\(a\)' >/dev/null 2>&1; then
16729   as_expr=expr
16730 else
16731   as_expr=false
16732 fi
16733
16734 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
16735   as_basename=basename
16736 else
16737   as_basename=false
16738 fi
16739
16740
16741 # Name of the executable.
16742 as_me=`$as_basename "$0" ||
16743 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16744          X"$0" : 'X\(//\)$' \| \
16745          X"$0" : 'X\(/\)$' \| \
16746          .     : '\(.\)' 2>/dev/null ||
16747 echo X/"$0" |
16748     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
16749           /^X\/\(\/\/\)$/{ s//\1/; q; }
16750           /^X\/\(\/\).*/{ s//\1/; q; }
16751           s/.*/./; q'`
16752
16753
16754 # PATH needs CR, and LINENO needs CR and PATH.
16755 # Avoid depending upon Character Ranges.
16756 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16757 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16758 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16759 as_cr_digits='0123456789'
16760 as_cr_alnum=$as_cr_Letters$as_cr_digits
16761
16762 # The user is always right.
16763 if test "${PATH_SEPARATOR+set}" != set; then
16764   echo "#! /bin/sh" >conf$$.sh
16765   echo  "exit 0"   >>conf$$.sh
16766   chmod +x conf$$.sh
16767   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16768     PATH_SEPARATOR=';'
16769   else
16770     PATH_SEPARATOR=:
16771   fi
16772   rm -f conf$$.sh
16773 fi
16774
16775
16776   as_lineno_1=$LINENO
16777   as_lineno_2=$LINENO
16778   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
16779   test "x$as_lineno_1" != "x$as_lineno_2" &&
16780   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
16781   # Find who we are.  Look in the path if we contain no path at all
16782   # relative or not.
16783   case $0 in
16784     *[\\/]* ) as_myself=$0 ;;
16785     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16786 for as_dir in $PATH
16787 do
16788   IFS=$as_save_IFS
16789   test -z "$as_dir" && as_dir=.
16790   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16791 done
16792
16793        ;;
16794   esac
16795   # We did not find ourselves, most probably we were run as `sh COMMAND'
16796   # in which case we are not to be found in the path.
16797   if test "x$as_myself" = x; then
16798     as_myself=$0
16799   fi
16800   if test ! -f "$as_myself"; then
16801     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
16802 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
16803    { (exit 1); exit 1; }; }
16804   fi
16805   case $CONFIG_SHELL in
16806   '')
16807     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16808 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
16809 do
16810   IFS=$as_save_IFS
16811   test -z "$as_dir" && as_dir=.
16812   for as_base in sh bash ksh sh5; do
16813          case $as_dir in
16814          /*)
16815            if ("$as_dir/$as_base" -c '
16816   as_lineno_1=$LINENO
16817   as_lineno_2=$LINENO
16818   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
16819   test "x$as_lineno_1" != "x$as_lineno_2" &&
16820   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
16821              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
16822              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
16823              CONFIG_SHELL=$as_dir/$as_base
16824              export CONFIG_SHELL
16825              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
16826            fi;;
16827          esac
16828        done
16829 done
16830 ;;
16831   esac
16832
16833   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
16834   # uniformly replaced by the line number.  The first 'sed' inserts a
16835   # line-number line before each line; the second 'sed' does the real
16836   # work.  The second script uses 'N' to pair each line-number line
16837   # with the numbered line, and appends trailing '-' during
16838   # substitution so that $LINENO is not a special case at line end.
16839   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
16840   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
16841   sed '=' <$as_myself |
16842     sed '
16843       N
16844       s,$,-,
16845       : loop
16846       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
16847       t loop
16848       s,-$,,
16849       s,^['$as_cr_digits']*\n,,
16850     ' >$as_me.lineno &&
16851   chmod +x $as_me.lineno ||
16852     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
16853 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
16854    { (exit 1); exit 1; }; }
16855
16856   # Don't try to exec as it changes $[0], causing all sort of problems
16857   # (the dirname of $[0] is not the place where we might find the
16858   # original and so on.  Autoconf is especially sensible to this).
16859   . ./$as_me.lineno
16860   # Exit status is that of the last command.
16861   exit
16862 }
16863
16864
16865 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
16866   *c*,-n*) ECHO_N= ECHO_C='
16867 ' ECHO_T='      ' ;;
16868   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
16869   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
16870 esac
16871
16872 if expr a : '\(a\)' >/dev/null 2>&1; then
16873   as_expr=expr
16874 else
16875   as_expr=false
16876 fi
16877
16878 rm -f conf$$ conf$$.exe conf$$.file
16879 echo >conf$$.file
16880 if ln -s conf$$.file conf$$ 2>/dev/null; then
16881   # We could just check for DJGPP; but this test a) works b) is more generic
16882   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
16883   if test -f conf$$.exe; then
16884     # Don't use ln at all; we don't have any links
16885     as_ln_s='cp -p'
16886   else
16887     as_ln_s='ln -s'
16888   fi
16889 elif ln conf$$.file conf$$ 2>/dev/null; then
16890   as_ln_s=ln
16891 else
16892   as_ln_s='cp -p'
16893 fi
16894 rm -f conf$$ conf$$.exe conf$$.file
16895
16896 if mkdir -p . 2>/dev/null; then
16897   as_mkdir_p=:
16898 else
16899   as_mkdir_p=false
16900 fi
16901
16902 as_executable_p="test -f"
16903
16904 # Sed expression to map a string onto a valid CPP name.
16905 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
16906
16907 # Sed expression to map a string onto a valid variable name.
16908 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
16909
16910
16911 # IFS
16912 # We need space, tab and new line, in precisely that order.
16913 as_nl='
16914 '
16915 IFS="   $as_nl"
16916
16917 # CDPATH.
16918 $as_unset CDPATH
16919
16920 exec 6>&1
16921
16922 # Open the log real soon, to keep \$[0] and so on meaningful, and to
16923 # report actual input values of CONFIG_FILES etc. instead of their
16924 # values after options handling.  Logging --version etc. is OK.
16925 exec 5>>config.log
16926 {
16927   echo
16928   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16929 ## Running $as_me. ##
16930 _ASBOX
16931 } >&5
16932 cat >&5 <<_CSEOF
16933
16934 This file was extended by Wine $as_me 20031016, which was
16935 generated by GNU Autoconf 2.57.  Invocation command line was
16936
16937   CONFIG_FILES    = $CONFIG_FILES
16938   CONFIG_HEADERS  = $CONFIG_HEADERS
16939   CONFIG_LINKS    = $CONFIG_LINKS
16940   CONFIG_COMMANDS = $CONFIG_COMMANDS
16941   $ $0 $@
16942
16943 _CSEOF
16944 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
16945 echo >&5
16946 _ACEOF
16947
16948 # Files that config.status was made for.
16949 if test -n "$ac_config_files"; then
16950   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
16951 fi
16952
16953 if test -n "$ac_config_headers"; then
16954   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
16955 fi
16956
16957 if test -n "$ac_config_links"; then
16958   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
16959 fi
16960
16961 if test -n "$ac_config_commands"; then
16962   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
16963 fi
16964
16965 cat >>$CONFIG_STATUS <<\_ACEOF
16966
16967 ac_cs_usage="\
16968 \`$as_me' instantiates files from templates according to the
16969 current configuration.
16970
16971 Usage: $0 [OPTIONS] [FILE]...
16972
16973   -h, --help       print this help, then exit
16974   -V, --version    print version number, then exit
16975   -q, --quiet      do not print progress messages
16976   -d, --debug      don't remove temporary files
16977       --recheck    update $as_me by reconfiguring in the same conditions
16978   --file=FILE[:TEMPLATE]
16979                    instantiate the configuration file FILE
16980   --header=FILE[:TEMPLATE]
16981                    instantiate the configuration header FILE
16982
16983 Configuration files:
16984 $config_files
16985
16986 Configuration headers:
16987 $config_headers
16988
16989 Configuration commands:
16990 $config_commands
16991
16992 Report bugs to <bug-autoconf@gnu.org>."
16993 _ACEOF
16994
16995 cat >>$CONFIG_STATUS <<_ACEOF
16996 ac_cs_version="\\
16997 Wine config.status 20031016
16998 configured by $0, generated by GNU Autoconf 2.57,
16999   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
17000
17001 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
17002 Free Software Foundation, Inc.
17003 This config.status script is free software; the Free Software Foundation
17004 gives unlimited permission to copy, distribute and modify it."
17005 srcdir=$srcdir
17006 INSTALL="$INSTALL"
17007 _ACEOF
17008
17009 cat >>$CONFIG_STATUS <<\_ACEOF
17010 # If no file are specified by the user, then we need to provide default
17011 # value.  By we need to know if files were specified by the user.
17012 ac_need_defaults=:
17013 while test $# != 0
17014 do
17015   case $1 in
17016   --*=*)
17017     ac_option=`expr "x$1" : 'x\([^=]*\)='`
17018     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
17019     ac_shift=:
17020     ;;
17021   -*)
17022     ac_option=$1
17023     ac_optarg=$2
17024     ac_shift=shift
17025     ;;
17026   *) # This is not an option, so the user has probably given explicit
17027      # arguments.
17028      ac_option=$1
17029      ac_need_defaults=false;;
17030   esac
17031
17032   case $ac_option in
17033   # Handling of the options.
17034 _ACEOF
17035 cat >>$CONFIG_STATUS <<\_ACEOF
17036   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17037     ac_cs_recheck=: ;;
17038   --version | --vers* | -V )
17039     echo "$ac_cs_version"; exit 0 ;;
17040   --he | --h)
17041     # Conflict between --help and --header
17042     { { echo "$as_me:$LINENO: error: ambiguous option: $1
17043 Try \`$0 --help' for more information." >&5
17044 echo "$as_me: error: ambiguous option: $1
17045 Try \`$0 --help' for more information." >&2;}
17046    { (exit 1); exit 1; }; };;
17047   --help | --hel | -h )
17048     echo "$ac_cs_usage"; exit 0 ;;
17049   --debug | --d* | -d )
17050     debug=: ;;
17051   --file | --fil | --fi | --f )
17052     $ac_shift
17053     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
17054     ac_need_defaults=false;;
17055   --header | --heade | --head | --hea )
17056     $ac_shift
17057     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
17058     ac_need_defaults=false;;
17059   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17060   | -silent | --silent | --silen | --sile | --sil | --si | --s)
17061     ac_cs_silent=: ;;
17062
17063   # This is an error.
17064   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
17065 Try \`$0 --help' for more information." >&5
17066 echo "$as_me: error: unrecognized option: $1
17067 Try \`$0 --help' for more information." >&2;}
17068    { (exit 1); exit 1; }; } ;;
17069
17070   *) ac_config_targets="$ac_config_targets $1" ;;
17071
17072   esac
17073   shift
17074 done
17075
17076 ac_configure_extra_args=
17077
17078 if $ac_cs_silent; then
17079   exec 6>/dev/null
17080   ac_configure_extra_args="$ac_configure_extra_args --silent"
17081 fi
17082
17083 _ACEOF
17084 cat >>$CONFIG_STATUS <<_ACEOF
17085 if \$ac_cs_recheck; then
17086   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
17087   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17088 fi
17089
17090 _ACEOF
17091
17092
17093
17094
17095
17096 cat >>$CONFIG_STATUS <<\_ACEOF
17097 for ac_config_target in $ac_config_targets
17098 do
17099   case "$ac_config_target" in
17100   # Handling of arguments.
17101   "Make.rules" ) CONFIG_FILES="$CONFIG_FILES Make.rules" ;;
17102   "dlls/Makedll.rules" ) CONFIG_FILES="$CONFIG_FILES dlls/Makedll.rules" ;;
17103   "dlls/Maketest.rules" ) CONFIG_FILES="$CONFIG_FILES dlls/Maketest.rules" ;;
17104   "libs/Makelib.rules" ) CONFIG_FILES="$CONFIG_FILES libs/Makelib.rules" ;;
17105   "programs/Makeprog.rules" ) CONFIG_FILES="$CONFIG_FILES programs/Makeprog.rules" ;;
17106   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
17107   "dlls/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/Makefile" ;;
17108   "dlls/advapi32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/advapi32/Makefile" ;;
17109   "dlls/advapi32/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/advapi32/tests/Makefile" ;;
17110   "dlls/avicap32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/avicap32/Makefile" ;;
17111   "dlls/avifil32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/avifil32/Makefile" ;;
17112   "dlls/cabinet/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/cabinet/Makefile" ;;
17113   "dlls/comcat/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/comcat/Makefile" ;;
17114   "dlls/comctl32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/comctl32/Makefile" ;;
17115   "dlls/comctl32/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/comctl32/tests/Makefile" ;;
17116   "dlls/commdlg/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/commdlg/Makefile" ;;
17117   "dlls/crtdll/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/crtdll/Makefile" ;;
17118   "dlls/crypt32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/crypt32/Makefile" ;;
17119   "dlls/ctl3d/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ctl3d/Makefile" ;;
17120   "dlls/d3d8/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/d3d8/Makefile" ;;
17121   "dlls/d3d9/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/d3d9/Makefile" ;;
17122   "dlls/d3dim/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/d3dim/Makefile" ;;
17123   "dlls/d3dx8/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/d3dx8/Makefile" ;;
17124   "dlls/dciman32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dciman32/Makefile" ;;
17125   "dlls/ddraw/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ddraw/Makefile" ;;
17126   "dlls/devenum/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/devenum/Makefile" ;;
17127   "dlls/dinput/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dinput/Makefile" ;;
17128   "dlls/dinput8/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dinput8/Makefile" ;;
17129   "dlls/dmband/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dmband/Makefile" ;;
17130   "dlls/dmcompos/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dmcompos/Makefile" ;;
17131   "dlls/dmime/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dmime/Makefile" ;;
17132   "dlls/dmloader/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dmloader/Makefile" ;;
17133   "dlls/dmscript/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dmscript/Makefile" ;;
17134   "dlls/dmstyle/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dmstyle/Makefile" ;;
17135   "dlls/dmsynth/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dmsynth/Makefile" ;;
17136   "dlls/dmusic/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dmusic/Makefile" ;;
17137   "dlls/dmusic32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dmusic32/Makefile" ;;
17138   "dlls/dplay/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dplay/Makefile" ;;
17139   "dlls/dplayx/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dplayx/Makefile" ;;
17140   "dlls/dpnhpast/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dpnhpast/Makefile" ;;
17141   "dlls/dsound/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dsound/Makefile" ;;
17142   "dlls/dsound/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dsound/tests/Makefile" ;;
17143   "dlls/gdi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/gdi/Makefile" ;;
17144   "dlls/gdi/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/gdi/tests/Makefile" ;;
17145   "dlls/glu32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/glu32/Makefile" ;;
17146   "dlls/icmp/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/icmp/Makefile" ;;
17147   "dlls/imagehlp/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/imagehlp/Makefile" ;;
17148   "dlls/imm32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/imm32/Makefile" ;;
17149   "dlls/iphlpapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/iphlpapi/Makefile" ;;
17150   "dlls/kernel/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/kernel/Makefile" ;;
17151   "dlls/kernel/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/kernel/tests/Makefile" ;;
17152   "dlls/lzexpand/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/lzexpand/Makefile" ;;
17153   "dlls/mapi32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/mapi32/Makefile" ;;
17154   "dlls/mpr/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/mpr/Makefile" ;;
17155   "dlls/msacm/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msacm/Makefile" ;;
17156   "dlls/msacm/imaadp32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msacm/imaadp32/Makefile" ;;
17157   "dlls/msacm/msadp32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msacm/msadp32/Makefile" ;;
17158   "dlls/msacm/msg711/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msacm/msg711/Makefile" ;;
17159   "dlls/msacm/winemp3/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msacm/winemp3/Makefile" ;;
17160   "dlls/msdmo/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msdmo/Makefile" ;;
17161   "dlls/mshtml/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/mshtml/Makefile" ;;
17162   "dlls/msi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msi/Makefile" ;;
17163   "dlls/msimg32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msimg32/Makefile" ;;
17164   "dlls/msisys/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msisys/Makefile" ;;
17165   "dlls/msnet32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msnet32/Makefile" ;;
17166   "dlls/msvcrt/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvcrt/Makefile" ;;
17167   "dlls/msvcrt/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvcrt/tests/Makefile" ;;
17168   "dlls/msvcrt20/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvcrt20/Makefile" ;;
17169   "dlls/msvcrtd/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvcrtd/Makefile" ;;
17170   "dlls/msvideo/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvideo/Makefile" ;;
17171   "dlls/msvideo/msrle32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvideo/msrle32/Makefile" ;;
17172   "dlls/mswsock/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/mswsock/Makefile" ;;
17173   "dlls/netapi32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/netapi32/Makefile" ;;
17174   "dlls/netapi32/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/netapi32/tests/Makefile" ;;
17175   "dlls/ntdll/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ntdll/Makefile" ;;
17176   "dlls/ntdll/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ntdll/tests/Makefile" ;;
17177   "dlls/odbc32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/odbc32/Makefile" ;;
17178   "dlls/ole32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ole32/Makefile" ;;
17179   "dlls/oleacc/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/oleacc/Makefile" ;;
17180   "dlls/oleaut32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/oleaut32/Makefile" ;;
17181   "dlls/oleaut32/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/oleaut32/tests/Makefile" ;;
17182   "dlls/olecli/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/olecli/Makefile" ;;
17183   "dlls/oledlg/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/oledlg/Makefile" ;;
17184   "dlls/olepro32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/olepro32/Makefile" ;;
17185   "dlls/olesvr/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/olesvr/Makefile" ;;
17186   "dlls/opengl32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/opengl32/Makefile" ;;
17187   "dlls/psapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/psapi/Makefile" ;;
17188   "dlls/qcap/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/qcap/Makefile" ;;
17189   "dlls/quartz/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/quartz/Makefile" ;;
17190   "dlls/rasapi32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/rasapi32/Makefile" ;;
17191   "dlls/richedit/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/richedit/Makefile" ;;
17192   "dlls/rpcrt4/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/rpcrt4/Makefile" ;;
17193   "dlls/rpcrt4/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/rpcrt4/tests/Makefile" ;;
17194   "dlls/serialui/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/serialui/Makefile" ;;
17195   "dlls/setupapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/setupapi/Makefile" ;;
17196   "dlls/shdocvw/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shdocvw/Makefile" ;;
17197   "dlls/shell32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shell32/Makefile" ;;
17198   "dlls/shell32/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shell32/tests/Makefile" ;;
17199   "dlls/shfolder/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shfolder/Makefile" ;;
17200   "dlls/shlwapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shlwapi/Makefile" ;;
17201   "dlls/shlwapi/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shlwapi/tests/Makefile" ;;
17202   "dlls/snmpapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/snmpapi/Makefile" ;;
17203   "dlls/sti/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/sti/Makefile" ;;
17204   "dlls/tapi32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/tapi32/Makefile" ;;
17205   "dlls/ttydrv/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ttydrv/Makefile" ;;
17206   "dlls/twain/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/twain/Makefile" ;;
17207   "dlls/url/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/url/Makefile" ;;
17208   "dlls/urlmon/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/urlmon/Makefile" ;;
17209   "dlls/urlmon/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/urlmon/tests/Makefile" ;;
17210   "dlls/user/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/user/Makefile" ;;
17211   "dlls/user/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/user/tests/Makefile" ;;
17212   "dlls/uxtheme/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/uxtheme/Makefile" ;;
17213   "dlls/version/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/version/Makefile" ;;
17214   "dlls/win32s/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/win32s/Makefile" ;;
17215   "dlls/winaspi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winaspi/Makefile" ;;
17216   "dlls/winedos/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winedos/Makefile" ;;
17217   "dlls/wineps/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wineps/Makefile" ;;
17218   "dlls/wininet/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wininet/Makefile" ;;
17219   "dlls/wininet/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wininet/tests/Makefile" ;;
17220   "dlls/winmm/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/Makefile" ;;
17221   "dlls/winmm/joystick/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/joystick/Makefile" ;;
17222   "dlls/winmm/mcianim/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/mcianim/Makefile" ;;
17223   "dlls/winmm/mciavi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/mciavi/Makefile" ;;
17224   "dlls/winmm/mcicda/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/mcicda/Makefile" ;;
17225   "dlls/winmm/mciseq/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/mciseq/Makefile" ;;
17226   "dlls/winmm/mciwave/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/mciwave/Makefile" ;;
17227   "dlls/winmm/midimap/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/midimap/Makefile" ;;
17228   "dlls/winmm/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/tests/Makefile" ;;
17229   "dlls/winmm/wavemap/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/wavemap/Makefile" ;;
17230   "dlls/winmm/winealsa/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/winealsa/Makefile" ;;
17231   "dlls/winmm/winearts/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/winearts/Makefile" ;;
17232   "dlls/winmm/wineaudioio/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/wineaudioio/Makefile" ;;
17233   "dlls/winmm/winenas/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/winenas/Makefile" ;;
17234   "dlls/winmm/winejack/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/winejack/Makefile" ;;
17235   "dlls/winmm/wineoss/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/wineoss/Makefile" ;;
17236   "dlls/winnls/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winnls/Makefile" ;;
17237   "dlls/winsock/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winsock/Makefile" ;;
17238   "dlls/winsock/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winsock/tests/Makefile" ;;
17239   "dlls/winspool/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winspool/Makefile" ;;
17240   "dlls/winspool/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winspool/tests/Makefile" ;;
17241   "dlls/wintab32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wintab32/Makefile" ;;
17242   "dlls/wintrust/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wintrust/Makefile" ;;
17243   "dlls/wow32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wow32/Makefile" ;;
17244   "dlls/wsock32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wsock32/Makefile" ;;
17245   "dlls/x11drv/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/x11drv/Makefile" ;;
17246   "documentation/Makefile" ) CONFIG_FILES="$CONFIG_FILES documentation/Makefile" ;;
17247   "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
17248   "libs/Makefile" ) CONFIG_FILES="$CONFIG_FILES libs/Makefile" ;;
17249   "libs/port/Makefile" ) CONFIG_FILES="$CONFIG_FILES libs/port/Makefile" ;;
17250   "libs/unicode/Makefile" ) CONFIG_FILES="$CONFIG_FILES libs/unicode/Makefile" ;;
17251   "libs/uuid/Makefile" ) CONFIG_FILES="$CONFIG_FILES libs/uuid/Makefile" ;;
17252   "libs/wine/Makefile" ) CONFIG_FILES="$CONFIG_FILES libs/wine/Makefile" ;;
17253   "libs/wpp/Makefile" ) CONFIG_FILES="$CONFIG_FILES libs/wpp/Makefile" ;;
17254   "miscemu/Makefile" ) CONFIG_FILES="$CONFIG_FILES miscemu/Makefile" ;;
17255   "programs/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/Makefile" ;;
17256   "programs/avitools/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/avitools/Makefile" ;;
17257   "programs/clock/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/clock/Makefile" ;;
17258   "programs/cmdlgtst/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/cmdlgtst/Makefile" ;;
17259   "programs/control/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/control/Makefile" ;;
17260   "programs/expand/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/expand/Makefile" ;;
17261   "programs/notepad/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/notepad/Makefile" ;;
17262   "programs/osversioncheck/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/osversioncheck/Makefile" ;;
17263   "programs/progman/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/progman/Makefile" ;;
17264   "programs/regapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/regapi/Makefile" ;;
17265   "programs/regedit/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/regedit/Makefile" ;;
17266   "programs/regsvr32/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/regsvr32/Makefile" ;;
17267   "programs/regtest/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/regtest/Makefile" ;;
17268   "programs/rpcss/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/rpcss/Makefile" ;;
17269   "programs/rundll32/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/rundll32/Makefile" ;;
17270   "programs/start/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/start/Makefile" ;;
17271   "programs/uninstaller/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/uninstaller/Makefile" ;;
17272   "programs/view/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/view/Makefile" ;;
17273   "programs/wcmd/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/wcmd/Makefile" ;;
17274   "programs/wineboot/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/wineboot/Makefile" ;;
17275   "programs/winecfg/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winecfg/Makefile" ;;
17276   "programs/wineconsole/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/wineconsole/Makefile" ;;
17277   "programs/winedbg/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winedbg/Makefile" ;;
17278   "programs/winefile/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winefile/Makefile" ;;
17279   "programs/winemenubuilder/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winemenubuilder/Makefile" ;;
17280   "programs/winemine/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winemine/Makefile" ;;
17281   "programs/winepath/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winepath/Makefile" ;;
17282   "programs/winevdm/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winevdm/Makefile" ;;
17283   "programs/winhelp/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winhelp/Makefile" ;;
17284   "programs/winver/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winver/Makefile" ;;
17285   "server/Makefile" ) CONFIG_FILES="$CONFIG_FILES server/Makefile" ;;
17286   "tools/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
17287   "tools/widl/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/widl/Makefile" ;;
17288   "tools/winapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/winapi/Makefile" ;;
17289   "tools/winebuild/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/winebuild/Makefile" ;;
17290   "tools/winedump/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/winedump/Makefile" ;;
17291   "tools/winegcc/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/winegcc/Makefile" ;;
17292   "tools/wmc/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/wmc/Makefile" ;;
17293   "tools/wrc/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/wrc/Makefile" ;;
17294   "controls" ) CONFIG_COMMANDS="$CONFIG_COMMANDS controls" ;;
17295   "dlls/ddraw/d3ddevice" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/d3ddevice" ;;
17296   "dlls/ddraw/dclipper" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/dclipper" ;;
17297   "dlls/ddraw/ddraw" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/ddraw" ;;
17298   "dlls/ddraw/direct3d" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/direct3d" ;;
17299   "dlls/ddraw/dpalette" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/dpalette" ;;
17300   "dlls/ddraw/dsurface" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/dsurface" ;;
17301   "dlls/dinput/joystick" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/dinput/joystick" ;;
17302   "dlls/dinput/keyboard" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/dinput/keyboard" ;;
17303   "dlls/dinput/mouse" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/dinput/mouse" ;;
17304   "dlls/gdi/enhmfdrv" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/gdi/enhmfdrv" ;;
17305   "dlls/gdi/mfdrv" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/gdi/mfdrv" ;;
17306   "dlls/kernel/messages" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/kernel/messages" ;;
17307   "dlls/user/dde" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/user/dde" ;;
17308   "dlls/user/resources" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/user/resources" ;;
17309   "dlls/wineps/data" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/wineps/data" ;;
17310   "files" ) CONFIG_COMMANDS="$CONFIG_COMMANDS files" ;;
17311   "graphics" ) CONFIG_COMMANDS="$CONFIG_COMMANDS graphics" ;;
17312   "graphics/x11drv" ) CONFIG_COMMANDS="$CONFIG_COMMANDS graphics/x11drv" ;;
17313   "include/wine" ) CONFIG_COMMANDS="$CONFIG_COMMANDS include/wine" ;;
17314   "loader" ) CONFIG_COMMANDS="$CONFIG_COMMANDS loader" ;;
17315   "memory" ) CONFIG_COMMANDS="$CONFIG_COMMANDS memory" ;;
17316   "misc" ) CONFIG_COMMANDS="$CONFIG_COMMANDS misc" ;;
17317   "msdos" ) CONFIG_COMMANDS="$CONFIG_COMMANDS msdos" ;;
17318   "objects" ) CONFIG_COMMANDS="$CONFIG_COMMANDS objects" ;;
17319   "programs/regapi/tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS programs/regapi/tests" ;;
17320   "programs/regedit/tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS programs/regedit/tests" ;;
17321   "scheduler" ) CONFIG_COMMANDS="$CONFIG_COMMANDS scheduler" ;;
17322   "windows" ) CONFIG_COMMANDS="$CONFIG_COMMANDS windows" ;;
17323   "include/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
17324   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
17325 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
17326    { (exit 1); exit 1; }; };;
17327   esac
17328 done
17329
17330 # If the user did not use the arguments to specify the items to instantiate,
17331 # then the envvar interface is used.  Set only those that are not.
17332 # We use the long form for the default assignment because of an extremely
17333 # bizarre bug on SunOS 4.1.3.
17334 if $ac_need_defaults; then
17335   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
17336   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
17337   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
17338 fi
17339
17340 # Have a temporary directory for convenience.  Make it in the build tree
17341 # simply because there is no reason to put it here, and in addition,
17342 # creating and moving files from /tmp can sometimes cause problems.
17343 # Create a temporary directory, and hook for its removal unless debugging.
17344 $debug ||
17345 {
17346   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
17347   trap '{ (exit 1); exit 1; }' 1 2 13 15
17348 }
17349
17350 # Create a (secure) tmp directory for tmp files.
17351
17352 {
17353   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
17354   test -n "$tmp" && test -d "$tmp"
17355 }  ||
17356 {
17357   tmp=./confstat$$-$RANDOM
17358   (umask 077 && mkdir $tmp)
17359 } ||
17360 {
17361    echo "$me: cannot create a temporary directory in ." >&2
17362    { (exit 1); exit 1; }
17363 }
17364
17365 _ACEOF
17366
17367 cat >>$CONFIG_STATUS <<_ACEOF
17368
17369 #
17370 # CONFIG_FILES section.
17371 #
17372
17373 # No need to generate the scripts if there are no CONFIG_FILES.
17374 # This happens for instance when ./config.status config.h
17375 if test -n "\$CONFIG_FILES"; then
17376   # Protect against being on the right side of a sed subst in config.status.
17377   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
17378    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
17379 s,@SHELL@,$SHELL,;t t
17380 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
17381 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
17382 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
17383 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
17384 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
17385 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
17386 s,@exec_prefix@,$exec_prefix,;t t
17387 s,@prefix@,$prefix,;t t
17388 s,@program_transform_name@,$program_transform_name,;t t
17389 s,@bindir@,$bindir,;t t
17390 s,@sbindir@,$sbindir,;t t
17391 s,@libexecdir@,$libexecdir,;t t
17392 s,@datadir@,$datadir,;t t
17393 s,@sysconfdir@,$sysconfdir,;t t
17394 s,@sharedstatedir@,$sharedstatedir,;t t
17395 s,@localstatedir@,$localstatedir,;t t
17396 s,@libdir@,$libdir,;t t
17397 s,@includedir@,$includedir,;t t
17398 s,@oldincludedir@,$oldincludedir,;t t
17399 s,@infodir@,$infodir,;t t
17400 s,@mandir@,$mandir,;t t
17401 s,@build_alias@,$build_alias,;t t
17402 s,@host_alias@,$host_alias,;t t
17403 s,@target_alias@,$target_alias,;t t
17404 s,@DEFS@,$DEFS,;t t
17405 s,@ECHO_C@,$ECHO_C,;t t
17406 s,@ECHO_N@,$ECHO_N,;t t
17407 s,@ECHO_T@,$ECHO_T,;t t
17408 s,@LIBS@,$LIBS,;t t
17409 s,@WIN16_FILES@,$WIN16_FILES,;t t
17410 s,@WIN16_INSTALL@,$WIN16_INSTALL,;t t
17411 s,@LIBPTHREAD@,$LIBPTHREAD,;t t
17412 s,@build@,$build,;t t
17413 s,@build_cpu@,$build_cpu,;t t
17414 s,@build_vendor@,$build_vendor,;t t
17415 s,@build_os@,$build_os,;t t
17416 s,@host@,$host,;t t
17417 s,@host_cpu@,$host_cpu,;t t
17418 s,@host_vendor@,$host_vendor,;t t
17419 s,@host_os@,$host_os,;t t
17420 s,@SET_MAKE@,$SET_MAKE,;t t
17421 s,@CC@,$CC,;t t
17422 s,@CFLAGS@,$CFLAGS,;t t
17423 s,@LDFLAGS@,$LDFLAGS,;t t
17424 s,@CPPFLAGS@,$CPPFLAGS,;t t
17425 s,@ac_ct_CC@,$ac_ct_CC,;t t
17426 s,@EXEEXT@,$EXEEXT,;t t
17427 s,@OBJEXT@,$OBJEXT,;t t
17428 s,@CPP@,$CPP,;t t
17429 s,@TOOLSDIR@,$TOOLSDIR,;t t
17430 s,@X_CFLAGS@,$X_CFLAGS,;t t
17431 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
17432 s,@X_LIBS@,$X_LIBS,;t t
17433 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
17434 s,@YACC@,$YACC,;t t
17435 s,@LEX@,$LEX,;t t
17436 s,@LEXLIB@,$LEXLIB,;t t
17437 s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
17438 s,@XYACC@,$XYACC,;t t
17439 s,@XLEX@,$XLEX,;t t
17440 s,@AS@,$AS,;t t
17441 s,@ac_ct_AS@,$ac_ct_AS,;t t
17442 s,@LD@,$LD,;t t
17443 s,@ac_ct_LD@,$ac_ct_LD,;t t
17444 s,@AR@,$AR,;t t
17445 s,@ac_ct_AR@,$ac_ct_AR,;t t
17446 s,@RANLIB@,$RANLIB,;t t
17447 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
17448 s,@STRIP@,$STRIP,;t t
17449 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
17450 s,@WINDRES@,$WINDRES,;t t
17451 s,@ac_ct_WINDRES@,$ac_ct_WINDRES,;t t
17452 s,@LN_S@,$LN_S,;t t
17453 s,@LN@,$LN,;t t
17454 s,@LDCONFIG@,$LDCONFIG,;t t
17455 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
17456 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
17457 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
17458 s,@LINT@,$LINT,;t t
17459 s,@LINTFLAGS@,$LINTFLAGS,;t t
17460 s,@DB2HTML@,$DB2HTML,;t t
17461 s,@DB2PDF@,$DB2PDF,;t t
17462 s,@DB2PS@,$DB2PS,;t t
17463 s,@DB2TXT@,$DB2TXT,;t t
17464 s,@JPEGLIB@,$JPEGLIB,;t t
17465 s,@EGREP@,$EGREP,;t t
17466 s,@GIFLIB@,$GIFLIB,;t t
17467 s,@XLIB@,$XLIB,;t t
17468 s,@XFILES@,$XFILES,;t t
17469 s,@OPENGLFILES@,$OPENGLFILES,;t t
17470 s,@GLU32FILES@,$GLU32FILES,;t t
17471 s,@OPENGL_LIBS@,$OPENGL_LIBS,;t t
17472 s,@NASLIBS@,$NASLIBS,;t t
17473 s,@CURSESLIBS@,$CURSESLIBS,;t t
17474 s,@sane_devel@,$sane_devel,;t t
17475 s,@SANELIBS@,$SANELIBS,;t t
17476 s,@SANEINCL@,$SANEINCL,;t t
17477 s,@ICULIBS@,$ICULIBS,;t t
17478 s,@ft_devel@,$ft_devel,;t t
17479 s,@ft_devel2@,$ft_devel2,;t t
17480 s,@FREETYPEINCL@,$FREETYPEINCL,;t t
17481 s,@ARTSCCONFIG@,$ARTSCCONFIG,;t t
17482 s,@ARTSLIBS@,$ARTSLIBS,;t t
17483 s,@ARTSINCL@,$ARTSINCL,;t t
17484 s,@ALSALIBS@,$ALSALIBS,;t t
17485 s,@AUDIOIOLIBS@,$AUDIOIOLIBS,;t t
17486 s,@EXTRACFLAGS@,$EXTRACFLAGS,;t t
17487 s,@DLLEXT@,$DLLEXT,;t t
17488 s,@DLLFLAGS@,$DLLFLAGS,;t t
17489 s,@DLLIBS@,$DLLIBS,;t t
17490 s,@LDSHARED@,$LDSHARED,;t t
17491 s,@LDDLL@,$LDDLL,;t t
17492 s,@LIBEXT@,$LIBEXT,;t t
17493 s,@IMPLIBEXT@,$IMPLIBEXT,;t t
17494 s,@DLLTOOL@,$DLLTOOL,;t t
17495 s,@ac_ct_DLLTOOL@,$ac_ct_DLLTOOL,;t t
17496 s,@DLLWRAP@,$DLLWRAP,;t t
17497 s,@ac_ct_DLLWRAP@,$ac_ct_DLLWRAP,;t t
17498 s,@LDEXECFLAGS@,$LDEXECFLAGS,;t t
17499 s,@CROSSTEST@,$CROSSTEST,;t t
17500 s,@CROSSCC@,$CROSSCC,;t t
17501 s,@CROSSWINDRES@,$CROSSWINDRES,;t t
17502 s,@LDPATH@,$LDPATH,;t t
17503 s,@CRTLIBS@,$CRTLIBS,;t t
17504 s,@LDD@,$LDD,;t t
17505 s,@ALLOCA@,$ALLOCA,;t t
17506 s,@LIBOBJS@,$LIBOBJS,;t t
17507 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
17508 /@MAKE_RULES@/r $MAKE_RULES
17509 s,@MAKE_RULES@,,;t t
17510 /@MAKE_DLL_RULES@/r $MAKE_DLL_RULES
17511 s,@MAKE_DLL_RULES@,,;t t
17512 /@MAKE_TEST_RULES@/r $MAKE_TEST_RULES
17513 s,@MAKE_TEST_RULES@,,;t t
17514 /@MAKE_LIB_RULES@/r $MAKE_LIB_RULES
17515 s,@MAKE_LIB_RULES@,,;t t
17516 /@MAKE_PROG_RULES@/r $MAKE_PROG_RULES
17517 s,@MAKE_PROG_RULES@,,;t t
17518 CEOF
17519
17520 _ACEOF
17521
17522   cat >>$CONFIG_STATUS <<\_ACEOF
17523   # Split the substitutions into bite-sized pieces for seds with
17524   # small command number limits, like on Digital OSF/1 and HP-UX.
17525   ac_max_sed_lines=48
17526   ac_sed_frag=1 # Number of current file.
17527   ac_beg=1 # First line for current file.
17528   ac_end=$ac_max_sed_lines # Line after last line for current file.
17529   ac_more_lines=:
17530   ac_sed_cmds=
17531   while $ac_more_lines; do
17532     if test $ac_beg -gt 1; then
17533       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
17534     else
17535       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
17536     fi
17537     if test ! -s $tmp/subs.frag; then
17538       ac_more_lines=false
17539     else
17540       # The purpose of the label and of the branching condition is to
17541       # speed up the sed processing (if there are no `@' at all, there
17542       # is no need to browse any of the substitutions).
17543       # These are the two extra sed commands mentioned above.
17544       (echo ':t
17545   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
17546       if test -z "$ac_sed_cmds"; then
17547         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
17548       else
17549         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
17550       fi
17551       ac_sed_frag=`expr $ac_sed_frag + 1`
17552       ac_beg=$ac_end
17553       ac_end=`expr $ac_end + $ac_max_sed_lines`
17554     fi
17555   done
17556   if test -z "$ac_sed_cmds"; then
17557     ac_sed_cmds=cat
17558   fi
17559 fi # test -n "$CONFIG_FILES"
17560
17561 _ACEOF
17562 cat >>$CONFIG_STATUS <<\_ACEOF
17563 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
17564   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
17565   case $ac_file in
17566   - | *:- | *:-:* ) # input from stdin
17567         cat >$tmp/stdin
17568         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17569         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17570   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17571         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17572   * )   ac_file_in=$ac_file.in ;;
17573   esac
17574
17575   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
17576   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
17577 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17578          X"$ac_file" : 'X\(//\)[^/]' \| \
17579          X"$ac_file" : 'X\(//\)$' \| \
17580          X"$ac_file" : 'X\(/\)' \| \
17581          .     : '\(.\)' 2>/dev/null ||
17582 echo X"$ac_file" |
17583     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17584           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17585           /^X\(\/\/\)$/{ s//\1/; q; }
17586           /^X\(\/\).*/{ s//\1/; q; }
17587           s/.*/./; q'`
17588   { if $as_mkdir_p; then
17589     mkdir -p "$ac_dir"
17590   else
17591     as_dir="$ac_dir"
17592     as_dirs=
17593     while test ! -d "$as_dir"; do
17594       as_dirs="$as_dir $as_dirs"
17595       as_dir=`(dirname "$as_dir") 2>/dev/null ||
17596 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17597          X"$as_dir" : 'X\(//\)[^/]' \| \
17598          X"$as_dir" : 'X\(//\)$' \| \
17599          X"$as_dir" : 'X\(/\)' \| \
17600          .     : '\(.\)' 2>/dev/null ||
17601 echo X"$as_dir" |
17602     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17603           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17604           /^X\(\/\/\)$/{ s//\1/; q; }
17605           /^X\(\/\).*/{ s//\1/; q; }
17606           s/.*/./; q'`
17607     done
17608     test ! -n "$as_dirs" || mkdir $as_dirs
17609   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
17610 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
17611    { (exit 1); exit 1; }; }; }
17612
17613   ac_builddir=.
17614
17615 if test "$ac_dir" != .; then
17616   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
17617   # A "../" for each directory in $ac_dir_suffix.
17618   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
17619 else
17620   ac_dir_suffix= ac_top_builddir=
17621 fi
17622
17623 case $srcdir in
17624   .)  # No --srcdir option.  We are building in place.
17625     ac_srcdir=.
17626     if test -z "$ac_top_builddir"; then
17627        ac_top_srcdir=.
17628     else
17629        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
17630     fi ;;
17631   [\\/]* | ?:[\\/]* )  # Absolute path.
17632     ac_srcdir=$srcdir$ac_dir_suffix;
17633     ac_top_srcdir=$srcdir ;;
17634   *) # Relative path.
17635     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
17636     ac_top_srcdir=$ac_top_builddir$srcdir ;;
17637 esac
17638 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
17639 # absolute.
17640 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
17641 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
17642 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
17643 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
17644
17645
17646   case $INSTALL in
17647   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
17648   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
17649   esac
17650
17651   if test x"$ac_file" != x-; then
17652     { echo "$as_me:$LINENO: creating $ac_file" >&5
17653 echo "$as_me: creating $ac_file" >&6;}
17654     rm -f "$ac_file"
17655   fi
17656   # Let's still pretend it is `configure' which instantiates (i.e., don't
17657   # use $as_me), people would be surprised to read:
17658   #    /* config.h.  Generated by config.status.  */
17659   if test x"$ac_file" = x-; then
17660     configure_input=
17661   else
17662     configure_input="$ac_file.  "
17663   fi
17664   configure_input=$configure_input"Generated from `echo $ac_file_in |
17665                                      sed 's,.*/,,'` by configure."
17666
17667   # First look for the input files in the build tree, otherwise in the
17668   # src tree.
17669   ac_file_inputs=`IFS=:
17670     for f in $ac_file_in; do
17671       case $f in
17672       -) echo $tmp/stdin ;;
17673       [\\/$]*)
17674          # Absolute (can't be DOS-style, as IFS=:)
17675          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17676 echo "$as_me: error: cannot find input file: $f" >&2;}
17677    { (exit 1); exit 1; }; }
17678          echo $f;;
17679       *) # Relative
17680          if test -f "$f"; then
17681            # Build tree
17682            echo $f
17683          elif test -f "$srcdir/$f"; then
17684            # Source tree
17685            echo $srcdir/$f
17686          else
17687            # /dev/null tree
17688            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17689 echo "$as_me: error: cannot find input file: $f" >&2;}
17690    { (exit 1); exit 1; }; }
17691          fi;;
17692       esac
17693     done` || { (exit 1); exit 1; }
17694 _ACEOF
17695 cat >>$CONFIG_STATUS <<_ACEOF
17696   sed "$ac_vpsub
17697 $extrasub
17698 _ACEOF
17699 cat >>$CONFIG_STATUS <<\_ACEOF
17700 :t
17701 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17702 s,@configure_input@,$configure_input,;t t
17703 s,@srcdir@,$ac_srcdir,;t t
17704 s,@abs_srcdir@,$ac_abs_srcdir,;t t
17705 s,@top_srcdir@,$ac_top_srcdir,;t t
17706 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
17707 s,@builddir@,$ac_builddir,;t t
17708 s,@abs_builddir@,$ac_abs_builddir,;t t
17709 s,@top_builddir@,$ac_top_builddir,;t t
17710 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
17711 s,@INSTALL@,$ac_INSTALL,;t t
17712 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
17713   rm -f $tmp/stdin
17714   if test x"$ac_file" != x-; then
17715     mv $tmp/out $ac_file
17716   else
17717     cat $tmp/out
17718     rm -f $tmp/out
17719   fi
17720
17721 done
17722 _ACEOF
17723 cat >>$CONFIG_STATUS <<\_ACEOF
17724
17725 #
17726 # CONFIG_HEADER section.
17727 #
17728
17729 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
17730 # NAME is the cpp macro being defined and VALUE is the value it is being given.
17731 #
17732 # ac_d sets the value in "#define NAME VALUE" lines.
17733 ac_dA='s,^\([   ]*\)#\([        ]*define[       ][      ]*\)'
17734 ac_dB='[        ].*$,\1#\2'
17735 ac_dC=' '
17736 ac_dD=',;t'
17737 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
17738 ac_uA='s,^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
17739 ac_uB='$,\1#\2define\3'
17740 ac_uC=' '
17741 ac_uD=',;t'
17742
17743 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
17744   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
17745   case $ac_file in
17746   - | *:- | *:-:* ) # input from stdin
17747         cat >$tmp/stdin
17748         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17749         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17750   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17751         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17752   * )   ac_file_in=$ac_file.in ;;
17753   esac
17754
17755   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
17756 echo "$as_me: creating $ac_file" >&6;}
17757
17758   # First look for the input files in the build tree, otherwise in the
17759   # src tree.
17760   ac_file_inputs=`IFS=:
17761     for f in $ac_file_in; do
17762       case $f in
17763       -) echo $tmp/stdin ;;
17764       [\\/$]*)
17765          # Absolute (can't be DOS-style, as IFS=:)
17766          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17767 echo "$as_me: error: cannot find input file: $f" >&2;}
17768    { (exit 1); exit 1; }; }
17769          echo $f;;
17770       *) # Relative
17771          if test -f "$f"; then
17772            # Build tree
17773            echo $f
17774          elif test -f "$srcdir/$f"; then
17775            # Source tree
17776            echo $srcdir/$f
17777          else
17778            # /dev/null tree
17779            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17780 echo "$as_me: error: cannot find input file: $f" >&2;}
17781    { (exit 1); exit 1; }; }
17782          fi;;
17783       esac
17784     done` || { (exit 1); exit 1; }
17785   # Remove the trailing spaces.
17786   sed 's/[      ]*$//' $ac_file_inputs >$tmp/in
17787
17788 _ACEOF
17789
17790 # Transform confdefs.h into two sed scripts, `conftest.defines' and
17791 # `conftest.undefs', that substitutes the proper values into
17792 # config.h.in to produce config.h.  The first handles `#define'
17793 # templates, and the second `#undef' templates.
17794 # And first: Protect against being on the right side of a sed subst in
17795 # config.status.  Protect against being in an unquoted here document
17796 # in config.status.
17797 rm -f conftest.defines conftest.undefs
17798 # Using a here document instead of a string reduces the quoting nightmare.
17799 # Putting comments in sed scripts is not portable.
17800 #
17801 # `end' is used to avoid that the second main sed command (meant for
17802 # 0-ary CPP macros) applies to n-ary macro definitions.
17803 # See the Autoconf documentation for `clear'.
17804 cat >confdef2sed.sed <<\_ACEOF
17805 s/[\\&,]/\\&/g
17806 s,[\\$`],\\&,g
17807 t clear
17808 : clear
17809 s,^[    ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
17810 t end
17811 s,^[    ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
17812 : end
17813 _ACEOF
17814 # If some macros were called several times there might be several times
17815 # the same #defines, which is useless.  Nevertheless, we may not want to
17816 # sort them, since we want the *last* AC-DEFINE to be honored.
17817 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
17818 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
17819 rm -f confdef2sed.sed
17820
17821 # This sed command replaces #undef with comments.  This is necessary, for
17822 # example, in the case of _POSIX_SOURCE, which is predefined and required
17823 # on some systems where configure will not decide to define it.
17824 cat >>conftest.undefs <<\_ACEOF
17825 s,^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
17826 _ACEOF
17827
17828 # Break up conftest.defines because some shells have a limit on the size
17829 # of here documents, and old seds have small limits too (100 cmds).
17830 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
17831 echo '  if grep "^[     ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
17832 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
17833 echo '  :' >>$CONFIG_STATUS
17834 rm -f conftest.tail
17835 while grep . conftest.defines >/dev/null
17836 do
17837   # Write a limited-size here document to $tmp/defines.sed.
17838   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
17839   # Speed up: don't consider the non `#define' lines.
17840   echo '/^[     ]*#[    ]*define/!b' >>$CONFIG_STATUS
17841   # Work around the forget-to-reset-the-flag bug.
17842   echo 't clr' >>$CONFIG_STATUS
17843   echo ': clr' >>$CONFIG_STATUS
17844   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
17845   echo 'CEOF
17846   sed -f $tmp/defines.sed $tmp/in >$tmp/out
17847   rm -f $tmp/in
17848   mv $tmp/out $tmp/in
17849 ' >>$CONFIG_STATUS
17850   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
17851   rm -f conftest.defines
17852   mv conftest.tail conftest.defines
17853 done
17854 rm -f conftest.defines
17855 echo '  fi # grep' >>$CONFIG_STATUS
17856 echo >>$CONFIG_STATUS
17857
17858 # Break up conftest.undefs because some shells have a limit on the size
17859 # of here documents, and old seds have small limits too (100 cmds).
17860 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
17861 rm -f conftest.tail
17862 while grep . conftest.undefs >/dev/null
17863 do
17864   # Write a limited-size here document to $tmp/undefs.sed.
17865   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
17866   # Speed up: don't consider the non `#undef'
17867   echo '/^[     ]*#[    ]*undef/!b' >>$CONFIG_STATUS
17868   # Work around the forget-to-reset-the-flag bug.
17869   echo 't clr' >>$CONFIG_STATUS
17870   echo ': clr' >>$CONFIG_STATUS
17871   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
17872   echo 'CEOF
17873   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
17874   rm -f $tmp/in
17875   mv $tmp/out $tmp/in
17876 ' >>$CONFIG_STATUS
17877   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
17878   rm -f conftest.undefs
17879   mv conftest.tail conftest.undefs
17880 done
17881 rm -f conftest.undefs
17882
17883 cat >>$CONFIG_STATUS <<\_ACEOF
17884   # Let's still pretend it is `configure' which instantiates (i.e., don't
17885   # use $as_me), people would be surprised to read:
17886   #    /* config.h.  Generated by config.status.  */
17887   if test x"$ac_file" = x-; then
17888     echo "/* Generated by configure.  */" >$tmp/config.h
17889   else
17890     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
17891   fi
17892   cat $tmp/in >>$tmp/config.h
17893   rm -f $tmp/in
17894   if test x"$ac_file" != x-; then
17895     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
17896       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
17897 echo "$as_me: $ac_file is unchanged" >&6;}
17898     else
17899       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
17900 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17901          X"$ac_file" : 'X\(//\)[^/]' \| \
17902          X"$ac_file" : 'X\(//\)$' \| \
17903          X"$ac_file" : 'X\(/\)' \| \
17904          .     : '\(.\)' 2>/dev/null ||
17905 echo X"$ac_file" |
17906     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17907           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17908           /^X\(\/\/\)$/{ s//\1/; q; }
17909           /^X\(\/\).*/{ s//\1/; q; }
17910           s/.*/./; q'`
17911       { if $as_mkdir_p; then
17912     mkdir -p "$ac_dir"
17913   else
17914     as_dir="$ac_dir"
17915     as_dirs=
17916     while test ! -d "$as_dir"; do
17917       as_dirs="$as_dir $as_dirs"
17918       as_dir=`(dirname "$as_dir") 2>/dev/null ||
17919 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17920          X"$as_dir" : 'X\(//\)[^/]' \| \
17921          X"$as_dir" : 'X\(//\)$' \| \
17922          X"$as_dir" : 'X\(/\)' \| \
17923          .     : '\(.\)' 2>/dev/null ||
17924 echo X"$as_dir" |
17925     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17926           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17927           /^X\(\/\/\)$/{ s//\1/; q; }
17928           /^X\(\/\).*/{ s//\1/; q; }
17929           s/.*/./; q'`
17930     done
17931     test ! -n "$as_dirs" || mkdir $as_dirs
17932   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
17933 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
17934    { (exit 1); exit 1; }; }; }
17935
17936       rm -f $ac_file
17937       mv $tmp/config.h $ac_file
17938     fi
17939   else
17940     cat $tmp/config.h
17941     rm -f $tmp/config.h
17942   fi
17943 done
17944 _ACEOF
17945 cat >>$CONFIG_STATUS <<\_ACEOF
17946
17947 #
17948 # CONFIG_COMMANDS section.
17949 #
17950 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
17951   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
17952   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
17953   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
17954 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17955          X"$ac_dest" : 'X\(//\)[^/]' \| \
17956          X"$ac_dest" : 'X\(//\)$' \| \
17957          X"$ac_dest" : 'X\(/\)' \| \
17958          .     : '\(.\)' 2>/dev/null ||
17959 echo X"$ac_dest" |
17960     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17961           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17962           /^X\(\/\/\)$/{ s//\1/; q; }
17963           /^X\(\/\).*/{ s//\1/; q; }
17964           s/.*/./; q'`
17965   ac_builddir=.
17966
17967 if test "$ac_dir" != .; then
17968   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
17969   # A "../" for each directory in $ac_dir_suffix.
17970   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
17971 else
17972   ac_dir_suffix= ac_top_builddir=
17973 fi
17974
17975 case $srcdir in
17976   .)  # No --srcdir option.  We are building in place.
17977     ac_srcdir=.
17978     if test -z "$ac_top_builddir"; then
17979        ac_top_srcdir=.
17980     else
17981        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
17982     fi ;;
17983   [\\/]* | ?:[\\/]* )  # Absolute path.
17984     ac_srcdir=$srcdir$ac_dir_suffix;
17985     ac_top_srcdir=$srcdir ;;
17986   *) # Relative path.
17987     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
17988     ac_top_srcdir=$ac_top_builddir$srcdir ;;
17989 esac
17990 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
17991 # absolute.
17992 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
17993 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
17994 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
17995 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
17996
17997
17998   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
17999 echo "$as_me: executing $ac_dest commands" >&6;}
18000   case $ac_dest in
18001     controls ) test -d "controls" || ({ echo "$as_me:$LINENO: creating controls" >&5
18002 echo "$as_me: creating controls" >&6;} && mkdir "controls") ;;
18003     dlls/ddraw/d3ddevice ) test -d "dlls/ddraw/d3ddevice" || ({ echo "$as_me:$LINENO: creating dlls/ddraw/d3ddevice" >&5
18004 echo "$as_me: creating dlls/ddraw/d3ddevice" >&6;} && mkdir "dlls/ddraw/d3ddevice") ;;
18005     dlls/ddraw/dclipper ) test -d "dlls/ddraw/dclipper" || ({ echo "$as_me:$LINENO: creating dlls/ddraw/dclipper" >&5
18006 echo "$as_me: creating dlls/ddraw/dclipper" >&6;} && mkdir "dlls/ddraw/dclipper") ;;
18007     dlls/ddraw/ddraw ) test -d "dlls/ddraw/ddraw" || ({ echo "$as_me:$LINENO: creating dlls/ddraw/ddraw" >&5
18008 echo "$as_me: creating dlls/ddraw/ddraw" >&6;} && mkdir "dlls/ddraw/ddraw") ;;
18009     dlls/ddraw/direct3d ) test -d "dlls/ddraw/direct3d" || ({ echo "$as_me:$LINENO: creating dlls/ddraw/direct3d" >&5
18010 echo "$as_me: creating dlls/ddraw/direct3d" >&6;} && mkdir "dlls/ddraw/direct3d") ;;
18011     dlls/ddraw/dpalette ) test -d "dlls/ddraw/dpalette" || ({ echo "$as_me:$LINENO: creating dlls/ddraw/dpalette" >&5
18012 echo "$as_me: creating dlls/ddraw/dpalette" >&6;} && mkdir "dlls/ddraw/dpalette") ;;
18013     dlls/ddraw/dsurface ) test -d "dlls/ddraw/dsurface" || ({ echo "$as_me:$LINENO: creating dlls/ddraw/dsurface" >&5
18014 echo "$as_me: creating dlls/ddraw/dsurface" >&6;} && mkdir "dlls/ddraw/dsurface") ;;
18015     dlls/dinput/joystick ) test -d "dlls/dinput/joystick" || ({ echo "$as_me:$LINENO: creating dlls/dinput/joystick" >&5
18016 echo "$as_me: creating dlls/dinput/joystick" >&6;} && mkdir "dlls/dinput/joystick") ;;
18017     dlls/dinput/keyboard ) test -d "dlls/dinput/keyboard" || ({ echo "$as_me:$LINENO: creating dlls/dinput/keyboard" >&5
18018 echo "$as_me: creating dlls/dinput/keyboard" >&6;} && mkdir "dlls/dinput/keyboard") ;;
18019     dlls/dinput/mouse ) test -d "dlls/dinput/mouse" || ({ echo "$as_me:$LINENO: creating dlls/dinput/mouse" >&5
18020 echo "$as_me: creating dlls/dinput/mouse" >&6;} && mkdir "dlls/dinput/mouse") ;;
18021     dlls/gdi/enhmfdrv ) test -d "dlls/gdi/enhmfdrv" || ({ echo "$as_me:$LINENO: creating dlls/gdi/enhmfdrv" >&5
18022 echo "$as_me: creating dlls/gdi/enhmfdrv" >&6;} && mkdir "dlls/gdi/enhmfdrv") ;;
18023     dlls/gdi/mfdrv ) test -d "dlls/gdi/mfdrv" || ({ echo "$as_me:$LINENO: creating dlls/gdi/mfdrv" >&5
18024 echo "$as_me: creating dlls/gdi/mfdrv" >&6;} && mkdir "dlls/gdi/mfdrv") ;;
18025     dlls/kernel/messages ) test -d "dlls/kernel/messages" || ({ echo "$as_me:$LINENO: creating dlls/kernel/messages" >&5
18026 echo "$as_me: creating dlls/kernel/messages" >&6;} && mkdir "dlls/kernel/messages") ;;
18027     dlls/user/dde ) test -d "dlls/user/dde" || ({ echo "$as_me:$LINENO: creating dlls/user/dde" >&5
18028 echo "$as_me: creating dlls/user/dde" >&6;} && mkdir "dlls/user/dde") ;;
18029     dlls/user/resources ) test -d "dlls/user/resources" || ({ echo "$as_me:$LINENO: creating dlls/user/resources" >&5
18030 echo "$as_me: creating dlls/user/resources" >&6;} && mkdir "dlls/user/resources") ;;
18031     dlls/wineps/data ) test -d "dlls/wineps/data" || ({ echo "$as_me:$LINENO: creating dlls/wineps/data" >&5
18032 echo "$as_me: creating dlls/wineps/data" >&6;} && mkdir "dlls/wineps/data") ;;
18033     files ) test -d "files" || ({ echo "$as_me:$LINENO: creating files" >&5
18034 echo "$as_me: creating files" >&6;} && mkdir "files") ;;
18035     graphics ) test -d "graphics" || ({ echo "$as_me:$LINENO: creating graphics" >&5
18036 echo "$as_me: creating graphics" >&6;} && mkdir "graphics") ;;
18037     graphics/x11drv ) test -d "graphics/x11drv" || ({ echo "$as_me:$LINENO: creating graphics/x11drv" >&5
18038 echo "$as_me: creating graphics/x11drv" >&6;} && mkdir "graphics/x11drv") ;;
18039     include/wine ) test -d "include/wine" || ({ echo "$as_me:$LINENO: creating include/wine" >&5
18040 echo "$as_me: creating include/wine" >&6;} && mkdir "include/wine") ;;
18041     loader ) test -d "loader" || ({ echo "$as_me:$LINENO: creating loader" >&5
18042 echo "$as_me: creating loader" >&6;} && mkdir "loader") ;;
18043     memory ) test -d "memory" || ({ echo "$as_me:$LINENO: creating memory" >&5
18044 echo "$as_me: creating memory" >&6;} && mkdir "memory") ;;
18045     misc ) test -d "misc" || ({ echo "$as_me:$LINENO: creating misc" >&5
18046 echo "$as_me: creating misc" >&6;} && mkdir "misc") ;;
18047     msdos ) test -d "msdos" || ({ echo "$as_me:$LINENO: creating msdos" >&5
18048 echo "$as_me: creating msdos" >&6;} && mkdir "msdos") ;;
18049     objects ) test -d "objects" || ({ echo "$as_me:$LINENO: creating objects" >&5
18050 echo "$as_me: creating objects" >&6;} && mkdir "objects") ;;
18051     programs/regapi/tests ) test -d "programs/regapi/tests" || ({ echo "$as_me:$LINENO: creating programs/regapi/tests" >&5
18052 echo "$as_me: creating programs/regapi/tests" >&6;} && mkdir "programs/regapi/tests") ;;
18053     programs/regedit/tests ) test -d "programs/regedit/tests" || ({ echo "$as_me:$LINENO: creating programs/regedit/tests" >&5
18054 echo "$as_me: creating programs/regedit/tests" >&6;} && mkdir "programs/regedit/tests") ;;
18055     scheduler ) test -d "scheduler" || ({ echo "$as_me:$LINENO: creating scheduler" >&5
18056 echo "$as_me: creating scheduler" >&6;} && mkdir "scheduler") ;;
18057     windows ) test -d "windows" || ({ echo "$as_me:$LINENO: creating windows" >&5
18058 echo "$as_me: creating windows" >&6;} && mkdir "windows") ;;
18059   esac
18060 done
18061 _ACEOF
18062
18063 cat >>$CONFIG_STATUS <<\_ACEOF
18064
18065 { (exit 0); exit 0; }
18066 _ACEOF
18067 chmod +x $CONFIG_STATUS
18068 ac_clean_files=$ac_clean_files_save
18069
18070
18071 # configure is writing to config.log, and then calls config.status.
18072 # config.status does its own redirection, appending to config.log.
18073 # Unfortunately, on DOS this fails, as config.log is still kept open
18074 # by configure, so config.status won't be able to write to it; its
18075 # output is simply discarded.  So we exec the FD to /dev/null,
18076 # effectively closing config.log, so it can be properly (re)opened and
18077 # appended to by config.status.  When coming back to configure, we
18078 # need to make the FD available again.
18079 if test "$no_create" != yes; then
18080   ac_cs_success=:
18081   ac_config_status_args=
18082   test "$silent" = yes &&
18083     ac_config_status_args="$ac_config_status_args --quiet"
18084   exec 5>/dev/null
18085   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
18086   exec 5>>config.log
18087   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18088   # would make configure fail if this is the last instruction.
18089   $ac_cs_success || { (exit 1); exit 1; }
18090 fi
18091
18092
18093 if test "$have_x" = "no"
18094 then
18095   echo
18096   echo "*** Warning: X development files not found. Wine will be built without"
18097   echo "*** X support, which currently does not work, and would probably not be"
18098   echo "*** what you want anyway. You will need to install devel packages of"
18099   echo "*** Xlib/Xfree86 at the very least."
18100 fi
18101
18102 if test "$wine_cv_opengl_version_OK" = "no"
18103 then
18104   echo
18105   echo "*** Warning: old Mesa headers detected. Wine will be built without Direct3D"
18106   echo "*** support. Consider upgrading your Mesa libraries (http://www.mesa3d.org/)."
18107 fi
18108
18109 if test "$wine_cv_msg_freetype" = "yes"
18110 then
18111   echo
18112   echo "*** Note: Your system appears to have the FreeType 2 runtime libraries"
18113   echo "*** installed, but 'freetype-config' is not in your PATH. Install the"
18114   echo "*** freetype-devel package (or its equivalent on your distribution) to"
18115   echo "*** enable Wine to use TrueType fonts."
18116 fi
18117
18118 echo
18119 echo "Configure finished.  Do 'make depend && make' to compile Wine."
18120 echo
18121