Merge from vendor branch GPERF:
[dragonfly.git] / contrib / cvs-1.12.12 / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59 for Concurrent Versions System (CVS) 1.12.12.
4 #
5 # Report bugs to <bug-cvs@gnu.org>.
6 #
7 # Copyright (C) 1986, 1987, 1988, 1989, 1990, 1991, 1992, 1993, 1994, 1995,
8 #               1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004
9 #               Free Software Foundation, Inc.
10 #
11 # This program is free software; you can redistribute it and/or modify
12 # it under the terms of the GNU General Public License as published by
13 # the Free Software Foundation; either version 2, or (at your option)
14 # any later version.
15 #
16 # This program is distributed in the hope that it will be useful,
17 # but WITHOUT ANY WARRANTY; without even the implied warranty of
18 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
19 # GNU General Public License for more details.
20 #
21 # Copyright (C) 2003 Free Software Foundation, Inc.
22 # This configure script is free software; the Free Software Foundation
23 # gives unlimited permission to copy, distribute and modify it.
24 ## --------------------- ##
25 ## M4sh Initialization.  ##
26 ## --------------------- ##
27
28 # Be Bourne compatible
29 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
30   emulate sh
31   NULLCMD=:
32   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
33   # is contrary to our usage.  Disable this feature.
34   alias -g '${1+"$@"}'='"$@"'
35 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
36   set -o posix
37 fi
38 DUALCASE=1; export DUALCASE # for MKS sh
39
40 # Support unset when possible.
41 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
42   as_unset=unset
43 else
44   as_unset=false
45 fi
46
47
48 # Work around bugs in pre-3.0 UWIN ksh.
49 $as_unset ENV MAIL MAILPATH
50 PS1='$ '
51 PS2='> '
52 PS4='+ '
53
54 # NLS nuisances.
55 for as_var in \
56   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
57   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
58   LC_TELEPHONE LC_TIME
59 do
60   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
61     eval $as_var=C; export $as_var
62   else
63     $as_unset $as_var
64   fi
65 done
66
67 # Required to use basename.
68 if expr a : '\(a\)' >/dev/null 2>&1; then
69   as_expr=expr
70 else
71   as_expr=false
72 fi
73
74 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
75   as_basename=basename
76 else
77   as_basename=false
78 fi
79
80
81 # Name of the executable.
82 as_me=`$as_basename "$0" ||
83 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
84          X"$0" : 'X\(//\)$' \| \
85          X"$0" : 'X\(/\)$' \| \
86          .     : '\(.\)' 2>/dev/null ||
87 echo X/"$0" |
88     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
89           /^X\/\(\/\/\)$/{ s//\1/; q; }
90           /^X\/\(\/\).*/{ s//\1/; q; }
91           s/.*/./; q'`
92
93
94 # PATH needs CR, and LINENO needs CR and PATH.
95 # Avoid depending upon Character Ranges.
96 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
97 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
98 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
99 as_cr_digits='0123456789'
100 as_cr_alnum=$as_cr_Letters$as_cr_digits
101
102 # The user is always right.
103 if test "${PATH_SEPARATOR+set}" != set; then
104   echo "#! /bin/sh" >conf$$.sh
105   echo  "exit 0"   >>conf$$.sh
106   chmod +x conf$$.sh
107   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
108     PATH_SEPARATOR=';'
109   else
110     PATH_SEPARATOR=:
111   fi
112   rm -f conf$$.sh
113 fi
114
115
116   as_lineno_1=$LINENO
117   as_lineno_2=$LINENO
118   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
119   test "x$as_lineno_1" != "x$as_lineno_2" &&
120   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
121   # Find who we are.  Look in the path if we contain no path at all
122   # relative or not.
123   case $0 in
124     *[\\/]* ) as_myself=$0 ;;
125     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
126 for as_dir in $PATH
127 do
128   IFS=$as_save_IFS
129   test -z "$as_dir" && as_dir=.
130   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
131 done
132
133        ;;
134   esac
135   # We did not find ourselves, most probably we were run as `sh COMMAND'
136   # in which case we are not to be found in the path.
137   if test "x$as_myself" = x; then
138     as_myself=$0
139   fi
140   if test ! -f "$as_myself"; then
141     { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
142    { (exit 1); exit 1; }; }
143   fi
144   case $CONFIG_SHELL in
145   '')
146     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
147 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
148 do
149   IFS=$as_save_IFS
150   test -z "$as_dir" && as_dir=.
151   for as_base in sh bash ksh sh5; do
152          case $as_dir in
153          /*)
154            if ("$as_dir/$as_base" -c '
155   as_lineno_1=$LINENO
156   as_lineno_2=$LINENO
157   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
158   test "x$as_lineno_1" != "x$as_lineno_2" &&
159   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
160              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
161              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
162              CONFIG_SHELL=$as_dir/$as_base
163              export CONFIG_SHELL
164              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
165            fi;;
166          esac
167        done
168 done
169 ;;
170   esac
171
172   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
173   # uniformly replaced by the line number.  The first 'sed' inserts a
174   # line-number line before each line; the second 'sed' does the real
175   # work.  The second script uses 'N' to pair each line-number line
176   # with the numbered line, and appends trailing '-' during
177   # substitution so that $LINENO is not a special case at line end.
178   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
179   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
180   sed '=' <$as_myself |
181     sed '
182       N
183       s,$,-,
184       : loop
185       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
186       t loop
187       s,-$,,
188       s,^['$as_cr_digits']*\n,,
189     ' >$as_me.lineno &&
190   chmod +x $as_me.lineno ||
191     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
192    { (exit 1); exit 1; }; }
193
194   # Don't try to exec as it changes $[0], causing all sort of problems
195   # (the dirname of $[0] is not the place where we might find the
196   # original and so on.  Autoconf is especially sensible to this).
197   . ./$as_me.lineno
198   # Exit status is that of the last command.
199   exit
200 }
201
202
203 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
204   *c*,-n*) ECHO_N= ECHO_C='
205 ' ECHO_T='      ' ;;
206   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
207   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
208 esac
209
210 if expr a : '\(a\)' >/dev/null 2>&1; then
211   as_expr=expr
212 else
213   as_expr=false
214 fi
215
216 rm -f conf$$ conf$$.exe conf$$.file
217 echo >conf$$.file
218 if ln -s conf$$.file conf$$ 2>/dev/null; then
219   # We could just check for DJGPP; but this test a) works b) is more generic
220   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
221   if test -f conf$$.exe; then
222     # Don't use ln at all; we don't have any links
223     as_ln_s='cp -p'
224   else
225     as_ln_s='ln -s'
226   fi
227 elif ln conf$$.file conf$$ 2>/dev/null; then
228   as_ln_s=ln
229 else
230   as_ln_s='cp -p'
231 fi
232 rm -f conf$$ conf$$.exe conf$$.file
233
234 if mkdir -p . 2>/dev/null; then
235   as_mkdir_p=:
236 else
237   test -d ./-p && rmdir ./-p
238   as_mkdir_p=false
239 fi
240
241 as_executable_p="test -f"
242
243 # Sed expression to map a string onto a valid CPP name.
244 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
245
246 # Sed expression to map a string onto a valid variable name.
247 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
248
249
250 # IFS
251 # We need space, tab and new line, in precisely that order.
252 as_nl='
253 '
254 IFS="   $as_nl"
255
256 # CDPATH.
257 $as_unset CDPATH
258
259
260 # Name of the host.
261 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
262 # so uname gets run too.
263 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
264
265 exec 6>&1
266
267 #
268 # Initializations.
269 #
270 ac_default_prefix=/usr/local
271 ac_config_libobj_dir=.
272 cross_compiling=no
273 subdirs=
274 MFLAGS=
275 MAKEFLAGS=
276 SHELL=${CONFIG_SHELL-/bin/sh}
277
278 # Maximum number of lines to put in a shell here document.
279 # This variable seems obsolete.  It should probably be removed, and
280 # only ac_max_sed_lines should be used.
281 : ${ac_max_here_lines=38}
282
283 # Identity of this package.
284 PACKAGE_NAME='Concurrent Versions System (CVS)'
285 PACKAGE_TARNAME='cvs'
286 PACKAGE_VERSION='1.12.12'
287 PACKAGE_STRING='Concurrent Versions System (CVS) 1.12.12'
288 PACKAGE_BUGREPORT='bug-cvs@gnu.org'
289
290 ac_unique_file="src/cvs.h"
291 # Factoring default headers for most tests.
292 ac_includes_default="\
293 #include <stdio.h>
294 #if HAVE_SYS_TYPES_H
295 # include <sys/types.h>
296 #endif
297 #if HAVE_SYS_STAT_H
298 # include <sys/stat.h>
299 #endif
300 #if STDC_HEADERS
301 # include <stdlib.h>
302 # include <stddef.h>
303 #else
304 # if HAVE_STDLIB_H
305 #  include <stdlib.h>
306 # endif
307 #endif
308 #if HAVE_STRING_H
309 # if !STDC_HEADERS && HAVE_MEMORY_H
310 #  include <memory.h>
311 # endif
312 # include <string.h>
313 #endif
314 #if HAVE_STRINGS_H
315 # include <strings.h>
316 #endif
317 #if HAVE_INTTYPES_H
318 # include <inttypes.h>
319 #else
320 # if HAVE_STDINT_H
321 #  include <stdint.h>
322 # endif
323 #endif
324 #if HAVE_UNISTD_H
325 # include <unistd.h>
326 #endif"
327
328 gl_func_list=
329 gl_header_list=
330 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 INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar ac_prefix_program MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CPP EGREP RANLIB ac_ct_RANLIB LN_S PERL CSH MKTEMP SENDMAIL PR ROFF PS2PDF TEXI2DVI MAKE_TARGETS_IN_VPATH_TRUE MAKE_TARGETS_IN_VPATH_FALSE LIBOBJS ALLOCA ALLOCA_H STDBOOL_H HAVE__BOOL FNMATCH_H YACC YFLAGS LIB_CLOCK_GETTIME GETOPT_H LIB_NANOSLEEP HAVE_LONG_64BIT HAVE_LONG_LONG_64BIT STDINT_H EOVERFLOW MKINSTALLDIRS USE_NLS MSGFMT GMSGFMT XGETTEXT MSGMERGE build build_cpu build_vendor build_os host host_cpu host_vendor host_os INTL_MACOSX_LIBS LIBICONV LTLIBICONV INTLLIBS LIBINTL LTLIBINTL POSUB HAVE_PUTENV cvs_client_objects KRB4 ZLIB_SUBDIRS ZLIB_CPPFLAGS ZLIB_LIBS with_default_rsh RSH_DFLT EDITOR LTLIBOBJS'
331 ac_subst_files='MKTEMP_SH_FUNCTION'
332
333 # Initialize some variables set by options.
334 ac_init_help=
335 ac_init_version=false
336 # The variables have the same names as the options, with
337 # dashes changed to underlines.
338 cache_file=/dev/null
339 exec_prefix=NONE
340 no_create=
341 no_recursion=
342 prefix=NONE
343 program_prefix=NONE
344 program_suffix=NONE
345 program_transform_name=s,x,x,
346 silent=
347 site=
348 srcdir=
349 verbose=
350 x_includes=NONE
351 x_libraries=NONE
352
353 # Installation directory options.
354 # These are left unexpanded so users can "make install exec_prefix=/foo"
355 # and all the variables that are supposed to be based on exec_prefix
356 # by default will actually change.
357 # Use braces instead of parens because sh, perl, etc. also accept them.
358 bindir='${exec_prefix}/bin'
359 sbindir='${exec_prefix}/sbin'
360 libexecdir='${exec_prefix}/libexec'
361 datadir='${prefix}/share'
362 sysconfdir='${prefix}/etc'
363 sharedstatedir='${prefix}/com'
364 localstatedir='${prefix}/var'
365 libdir='${exec_prefix}/lib'
366 includedir='${prefix}/include'
367 oldincludedir='/usr/include'
368 infodir='${prefix}/info'
369 mandir='${prefix}/man'
370
371 ac_prev=
372 for ac_option
373 do
374   # If the previous option needs an argument, assign it.
375   if test -n "$ac_prev"; then
376     eval "$ac_prev=\$ac_option"
377     ac_prev=
378     continue
379   fi
380
381   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
382
383   # Accept the important Cygnus configure options, so we can diagnose typos.
384
385   case $ac_option in
386
387   -bindir | --bindir | --bindi | --bind | --bin | --bi)
388     ac_prev=bindir ;;
389   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
390     bindir=$ac_optarg ;;
391
392   -build | --build | --buil | --bui | --bu)
393     ac_prev=build_alias ;;
394   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
395     build_alias=$ac_optarg ;;
396
397   -cache-file | --cache-file | --cache-fil | --cache-fi \
398   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
399     ac_prev=cache_file ;;
400   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
401   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
402     cache_file=$ac_optarg ;;
403
404   --config-cache | -C)
405     cache_file=config.cache ;;
406
407   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
408     ac_prev=datadir ;;
409   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
410   | --da=*)
411     datadir=$ac_optarg ;;
412
413   -disable-* | --disable-*)
414     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
415     # Reject names that are not valid shell variable names.
416     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
417       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
418    { (exit 1); exit 1; }; }
419     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
420     eval "enable_$ac_feature=no" ;;
421
422   -enable-* | --enable-*)
423     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
424     # Reject names that are not valid shell variable names.
425     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
426       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
427    { (exit 1); exit 1; }; }
428     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
429     case $ac_option in
430       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
431       *) ac_optarg=yes ;;
432     esac
433     eval "enable_$ac_feature='$ac_optarg'" ;;
434
435   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
436   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
437   | --exec | --exe | --ex)
438     ac_prev=exec_prefix ;;
439   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
440   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
441   | --exec=* | --exe=* | --ex=*)
442     exec_prefix=$ac_optarg ;;
443
444   -gas | --gas | --ga | --g)
445     # Obsolete; use --with-gas.
446     with_gas=yes ;;
447
448   -help | --help | --hel | --he | -h)
449     ac_init_help=long ;;
450   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
451     ac_init_help=recursive ;;
452   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
453     ac_init_help=short ;;
454
455   -host | --host | --hos | --ho)
456     ac_prev=host_alias ;;
457   -host=* | --host=* | --hos=* | --ho=*)
458     host_alias=$ac_optarg ;;
459
460   -includedir | --includedir | --includedi | --included | --include \
461   | --includ | --inclu | --incl | --inc)
462     ac_prev=includedir ;;
463   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
464   | --includ=* | --inclu=* | --incl=* | --inc=*)
465     includedir=$ac_optarg ;;
466
467   -infodir | --infodir | --infodi | --infod | --info | --inf)
468     ac_prev=infodir ;;
469   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
470     infodir=$ac_optarg ;;
471
472   -libdir | --libdir | --libdi | --libd)
473     ac_prev=libdir ;;
474   -libdir=* | --libdir=* | --libdi=* | --libd=*)
475     libdir=$ac_optarg ;;
476
477   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
478   | --libexe | --libex | --libe)
479     ac_prev=libexecdir ;;
480   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
481   | --libexe=* | --libex=* | --libe=*)
482     libexecdir=$ac_optarg ;;
483
484   -localstatedir | --localstatedir | --localstatedi | --localstated \
485   | --localstate | --localstat | --localsta | --localst \
486   | --locals | --local | --loca | --loc | --lo)
487     ac_prev=localstatedir ;;
488   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
489   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
490   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
491     localstatedir=$ac_optarg ;;
492
493   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
494     ac_prev=mandir ;;
495   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
496     mandir=$ac_optarg ;;
497
498   -nfp | --nfp | --nf)
499     # Obsolete; use --without-fp.
500     with_fp=no ;;
501
502   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
503   | --no-cr | --no-c | -n)
504     no_create=yes ;;
505
506   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
507   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
508     no_recursion=yes ;;
509
510   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
511   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
512   | --oldin | --oldi | --old | --ol | --o)
513     ac_prev=oldincludedir ;;
514   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
515   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
516   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
517     oldincludedir=$ac_optarg ;;
518
519   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
520     ac_prev=prefix ;;
521   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
522     prefix=$ac_optarg ;;
523
524   -program-prefix | --program-prefix | --program-prefi | --program-pref \
525   | --program-pre | --program-pr | --program-p)
526     ac_prev=program_prefix ;;
527   -program-prefix=* | --program-prefix=* | --program-prefi=* \
528   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
529     program_prefix=$ac_optarg ;;
530
531   -program-suffix | --program-suffix | --program-suffi | --program-suff \
532   | --program-suf | --program-su | --program-s)
533     ac_prev=program_suffix ;;
534   -program-suffix=* | --program-suffix=* | --program-suffi=* \
535   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
536     program_suffix=$ac_optarg ;;
537
538   -program-transform-name | --program-transform-name \
539   | --program-transform-nam | --program-transform-na \
540   | --program-transform-n | --program-transform- \
541   | --program-transform | --program-transfor \
542   | --program-transfo | --program-transf \
543   | --program-trans | --program-tran \
544   | --progr-tra | --program-tr | --program-t)
545     ac_prev=program_transform_name ;;
546   -program-transform-name=* | --program-transform-name=* \
547   | --program-transform-nam=* | --program-transform-na=* \
548   | --program-transform-n=* | --program-transform-=* \
549   | --program-transform=* | --program-transfor=* \
550   | --program-transfo=* | --program-transf=* \
551   | --program-trans=* | --program-tran=* \
552   | --progr-tra=* | --program-tr=* | --program-t=*)
553     program_transform_name=$ac_optarg ;;
554
555   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
556   | -silent | --silent | --silen | --sile | --sil)
557     silent=yes ;;
558
559   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
560     ac_prev=sbindir ;;
561   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
562   | --sbi=* | --sb=*)
563     sbindir=$ac_optarg ;;
564
565   -sharedstatedir | --sharedstatedir | --sharedstatedi \
566   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
567   | --sharedst | --shareds | --shared | --share | --shar \
568   | --sha | --sh)
569     ac_prev=sharedstatedir ;;
570   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
571   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
572   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
573   | --sha=* | --sh=*)
574     sharedstatedir=$ac_optarg ;;
575
576   -site | --site | --sit)
577     ac_prev=site ;;
578   -site=* | --site=* | --sit=*)
579     site=$ac_optarg ;;
580
581   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
582     ac_prev=srcdir ;;
583   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
584     srcdir=$ac_optarg ;;
585
586   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
587   | --syscon | --sysco | --sysc | --sys | --sy)
588     ac_prev=sysconfdir ;;
589   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
590   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
591     sysconfdir=$ac_optarg ;;
592
593   -target | --target | --targe | --targ | --tar | --ta | --t)
594     ac_prev=target_alias ;;
595   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
596     target_alias=$ac_optarg ;;
597
598   -v | -verbose | --verbose | --verbos | --verbo | --verb)
599     verbose=yes ;;
600
601   -version | --version | --versio | --versi | --vers | -V)
602     ac_init_version=: ;;
603
604   -with-* | --with-*)
605     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
606     # Reject names that are not valid shell variable names.
607     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
608       { echo "$as_me: error: invalid package name: $ac_package" >&2
609    { (exit 1); exit 1; }; }
610     ac_package=`echo $ac_package| sed 's/-/_/g'`
611     case $ac_option in
612       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
613       *) ac_optarg=yes ;;
614     esac
615     eval "with_$ac_package='$ac_optarg'" ;;
616
617   -without-* | --without-*)
618     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
619     # Reject names that are not valid shell variable names.
620     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
621       { echo "$as_me: error: invalid package name: $ac_package" >&2
622    { (exit 1); exit 1; }; }
623     ac_package=`echo $ac_package | sed 's/-/_/g'`
624     eval "with_$ac_package=no" ;;
625
626   --x)
627     # Obsolete; use --with-x.
628     with_x=yes ;;
629
630   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
631   | --x-incl | --x-inc | --x-in | --x-i)
632     ac_prev=x_includes ;;
633   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
634   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
635     x_includes=$ac_optarg ;;
636
637   -x-libraries | --x-libraries | --x-librarie | --x-librari \
638   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
639     ac_prev=x_libraries ;;
640   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
641   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
642     x_libraries=$ac_optarg ;;
643
644   -*) { echo "$as_me: error: unrecognized option: $ac_option
645 Try \`$0 --help' for more information." >&2
646    { (exit 1); exit 1; }; }
647     ;;
648
649   *=*)
650     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
651     # Reject names that are not valid shell variable names.
652     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
653       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
654    { (exit 1); exit 1; }; }
655     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
656     eval "$ac_envvar='$ac_optarg'"
657     export $ac_envvar ;;
658
659   *)
660     # FIXME: should be removed in autoconf 3.0.
661     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
662     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
663       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
664     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
665     ;;
666
667   esac
668 done
669
670 if test -n "$ac_prev"; then
671   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
672   { echo "$as_me: error: missing argument to $ac_option" >&2
673    { (exit 1); exit 1; }; }
674 fi
675
676 # Be sure to have absolute paths.
677 for ac_var in exec_prefix prefix
678 do
679   eval ac_val=$`echo $ac_var`
680   case $ac_val in
681     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
682     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
683    { (exit 1); exit 1; }; };;
684   esac
685 done
686
687 # Be sure to have absolute paths.
688 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
689               localstatedir libdir includedir oldincludedir infodir mandir
690 do
691   eval ac_val=$`echo $ac_var`
692   case $ac_val in
693     [\\/$]* | ?:[\\/]* ) ;;
694     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
695    { (exit 1); exit 1; }; };;
696   esac
697 done
698
699 # There might be people who depend on the old broken behavior: `$host'
700 # used to hold the argument of --host etc.
701 # FIXME: To remove some day.
702 build=$build_alias
703 host=$host_alias
704 target=$target_alias
705
706 # FIXME: To remove some day.
707 if test "x$host_alias" != x; then
708   if test "x$build_alias" = x; then
709     cross_compiling=maybe
710     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
711     If a cross compiler is detected then cross compile mode will be used." >&2
712   elif test "x$build_alias" != "x$host_alias"; then
713     cross_compiling=yes
714   fi
715 fi
716
717 ac_tool_prefix=
718 test -n "$host_alias" && ac_tool_prefix=$host_alias-
719
720 test "$silent" = yes && exec 6>/dev/null
721
722
723 # Find the source files, if location was not specified.
724 if test -z "$srcdir"; then
725   ac_srcdir_defaulted=yes
726   # Try the directory containing this script, then its parent.
727   ac_confdir=`(dirname "$0") 2>/dev/null ||
728 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
729          X"$0" : 'X\(//\)[^/]' \| \
730          X"$0" : 'X\(//\)$' \| \
731          X"$0" : 'X\(/\)' \| \
732          .     : '\(.\)' 2>/dev/null ||
733 echo X"$0" |
734     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
735           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
736           /^X\(\/\/\)$/{ s//\1/; q; }
737           /^X\(\/\).*/{ s//\1/; q; }
738           s/.*/./; q'`
739   srcdir=$ac_confdir
740   if test ! -r $srcdir/$ac_unique_file; then
741     srcdir=..
742   fi
743 else
744   ac_srcdir_defaulted=no
745 fi
746 if test ! -r $srcdir/$ac_unique_file; then
747   if test "$ac_srcdir_defaulted" = yes; then
748     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
749    { (exit 1); exit 1; }; }
750   else
751     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
752    { (exit 1); exit 1; }; }
753   fi
754 fi
755 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
756   { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
757    { (exit 1); exit 1; }; }
758 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
759 ac_env_build_alias_set=${build_alias+set}
760 ac_env_build_alias_value=$build_alias
761 ac_cv_env_build_alias_set=${build_alias+set}
762 ac_cv_env_build_alias_value=$build_alias
763 ac_env_host_alias_set=${host_alias+set}
764 ac_env_host_alias_value=$host_alias
765 ac_cv_env_host_alias_set=${host_alias+set}
766 ac_cv_env_host_alias_value=$host_alias
767 ac_env_target_alias_set=${target_alias+set}
768 ac_env_target_alias_value=$target_alias
769 ac_cv_env_target_alias_set=${target_alias+set}
770 ac_cv_env_target_alias_value=$target_alias
771 ac_env_CC_set=${CC+set}
772 ac_env_CC_value=$CC
773 ac_cv_env_CC_set=${CC+set}
774 ac_cv_env_CC_value=$CC
775 ac_env_CFLAGS_set=${CFLAGS+set}
776 ac_env_CFLAGS_value=$CFLAGS
777 ac_cv_env_CFLAGS_set=${CFLAGS+set}
778 ac_cv_env_CFLAGS_value=$CFLAGS
779 ac_env_LDFLAGS_set=${LDFLAGS+set}
780 ac_env_LDFLAGS_value=$LDFLAGS
781 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
782 ac_cv_env_LDFLAGS_value=$LDFLAGS
783 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
784 ac_env_CPPFLAGS_value=$CPPFLAGS
785 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
786 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
787 ac_env_CPP_set=${CPP+set}
788 ac_env_CPP_value=$CPP
789 ac_cv_env_CPP_set=${CPP+set}
790 ac_cv_env_CPP_value=$CPP
791 ac_env_YACC_set=${YACC+set}
792 ac_env_YACC_value=$YACC
793 ac_cv_env_YACC_set=${YACC+set}
794 ac_cv_env_YACC_value=$YACC
795 ac_env_YFLAGS_set=${YFLAGS+set}
796 ac_env_YFLAGS_value=$YFLAGS
797 ac_cv_env_YFLAGS_set=${YFLAGS+set}
798 ac_cv_env_YFLAGS_value=$YFLAGS
799 ac_env_EDITOR_set=${EDITOR+set}
800 ac_env_EDITOR_value=$EDITOR
801 ac_cv_env_EDITOR_set=${EDITOR+set}
802 ac_cv_env_EDITOR_value=$EDITOR
803
804 #
805 # Report the --help message.
806 #
807 if test "$ac_init_help" = "long"; then
808   # Omit some internal or obsolete options to make the list less imposing.
809   # This message is too long to be a string in the A/UX 3.1 sh.
810   cat <<_ACEOF
811 \`configure' configures Concurrent Versions System (CVS) 1.12.12 to adapt to many kinds of systems.
812
813 Usage: $0 [OPTION]... [VAR=VALUE]...
814
815 To assign environment variables (e.g., CC, CFLAGS...), specify them as
816 VAR=VALUE.  See below for descriptions of some of the useful variables.
817
818 Defaults for the options are specified in brackets.
819
820 Configuration:
821   -h, --help              display this help and exit
822       --help=short        display options specific to this package
823       --help=recursive    display the short help of all the included packages
824   -V, --version           display version information and exit
825   -q, --quiet, --silent   do not print \`checking...' messages
826       --cache-file=FILE   cache test results in FILE [disabled]
827   -C, --config-cache      alias for \`--cache-file=config.cache'
828   -n, --no-create         do not create output files
829       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
830
831 _ACEOF
832
833   cat <<_ACEOF
834 Installation directories:
835   --prefix=PREFIX         install architecture-independent files in PREFIX
836                           [$ac_default_prefix]
837   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
838                           [PREFIX]
839
840 By default, \`make install' will install all the files in
841 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
842 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
843 for instance \`--prefix=\$HOME'.
844
845 For better control, use the options below.
846
847 Fine tuning of the installation directories:
848   --bindir=DIR           user executables [EPREFIX/bin]
849   --sbindir=DIR          system admin executables [EPREFIX/sbin]
850   --libexecdir=DIR       program executables [EPREFIX/libexec]
851   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
852   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
853   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
854   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
855   --libdir=DIR           object code libraries [EPREFIX/lib]
856   --includedir=DIR       C header files [PREFIX/include]
857   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
858   --infodir=DIR          info documentation [PREFIX/info]
859   --mandir=DIR           man documentation [PREFIX/man]
860 _ACEOF
861
862   cat <<\_ACEOF
863
864 Program names:
865   --program-prefix=PREFIX            prepend PREFIX to installed program names
866   --program-suffix=SUFFIX            append SUFFIX to installed program names
867   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
868
869 System types:
870   --build=BUILD     configure for building on BUILD [guessed]
871   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
872 _ACEOF
873 fi
874
875 if test -n "$ac_init_help"; then
876   case $ac_init_help in
877      short | recursive ) echo "Configuration of Concurrent Versions System (CVS) 1.12.12:";;
878    esac
879   cat <<\_ACEOF
880
881 Optional Features:
882   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
883   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
884   --enable-maintainer-mode  enable make rules and dependencies not useful
885                           (and sometimes confusing) to the casual installer
886   --disable-dependency-tracking  speeds up one-time build
887   --enable-dependency-tracking   do not reject slow dependency extractors
888   --disable-largefile     omit support for large files
889   --disable-nls           do not use Native Language Support
890   --disable-rpath         do not hardcode runtime library paths
891   --enable-cvs-ndbm       Use the NDBM library distributed with CVS rather
892                           than attempting to use a system NDBM library.
893                           Disabling this may not work. (default)
894   --enable-client         Include code for running as a remote client
895                           (default)
896   --enable-password-authenticated-client
897                           Enable pserver as a remote access method in the CVS
898                           client (default)
899   --enable-server         Include code for running as a server (default)
900   --enable-server-flow-control
901                           If you are working with a large remote repository
902                           and a 'cvs checkout' is swamping your network and
903                           memory, define these to enable flow control. You may
904                           optionally pass a low water mark in bytes and a high
905                           water mark in bytes, separated by commas. (default
906                           is enabled 1M,2M)
907   --enable-proxy          Include code for running as a transparent proxy
908                           server. Disabling this may produce a slight
909                           performance gain on some systems, at the expense of
910                           write proxy support. (default)
911   --enable-pam            Use to enable system authentication with PAM instead
912                           of using the simple getpwnam interface. This allows
913                           authentication (in theory) with any PAM module, e.g.
914                           on systems with shadow passwords or via LDAP
915   --enable-case-sensitivity
916                           Force CVS to expect a case sensitive file system.
917                           Enabling this on a case insensitive system should
918                           have little effect on the server or client
919                           operation, though client users may ocassionally be
920                           suprised that the CVS server appears to be case
921                           sensitive. Disabling this for a case sensitive
922                           server disables server support for case insensitive
923                           clients, which can confuse all users of case
924                           insensitive clients contacting the server. Disabling
925                           this for a case sensitive client will cause the
926                           client to ask servers to behave case insensitively,
927                           which could cause confusion for users, but also
928                           probably no real harm. (default autoselects based on
929                           the case sensitivity of the file system containing
930                           the current working directory)
931   --enable-encryption     Enable encryption support (disabled by default)
932   --enable-force-editor   When committing or importing files, you must enter a
933                           log message. Normally, you can do this either via
934                           the -m flag on the command line, the -F flag on the
935                           command line, or an editor will be started for you.
936                           If you like to use logging templates (the rcsinfo
937                           file within the $CVSROOT/CVSROOT directory), you
938                           might want to force people to use the editor even if
939                           they specify a message with -m or -F.
940                           --enable-force-editor will cause the -m or -F
941                           message to be appended to the temp file when the
942                           editor is started. (disabled by default)
943   --enable-lock-compatibility
944                           Include locking code which prevents versions of CVS
945                           earlier than 1.12.4 directly accessing the same
946                           repositiory as this executable from ignoring this
947                           executable's promotable read locks. If only CVS
948                           versions 1.12.4 and later will be accessing your
949                           repository directly (as a server or locally), you
950                           can safely disable this option in return for fewer
951                           disk accesses and a small speed increase. Disabling
952                           this option when versions of CVS earlier than 1,12,4
953                           _will_ be accessing your repository, however, is
954                           *VERY* *VERY* *VERY* dangerous and could result in
955                           data loss. (enabled by default)
956   --enable-rootcommit     Allow the root user to commit files (disabled by
957                           default)
958   --enable-old-info-format-support
959                           Enable support for the pre 1.12.1 *info scripting
960                           hook format strings. Disable this option for a
961                           smaller executable once your scripting hooks have
962                           been updated to use the new *info format strings
963                           (default).
964
965 Optional Packages:
966   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
967   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
968   --without-included-regex don't compile regex; this is the default on
969                           systems with version 2 of the GNU C library
970                           (use with caution on other system)
971   --with-gnu-ld           assume the C compiler uses GNU ld default=no
972   --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
973   --without-libiconv-prefix     don't search for libiconv in includedir and libdir
974   --with-libintl-prefix[=DIR]  search for libintl in DIR/include and DIR/lib
975   --without-libintl-prefix     don't search for libintl in includedir and libdir
976   --with-krb4             Kerberos 4 directory (default /usr/kerberos)
977   --with-gssapi           GSSAPI directory (default autoselects)
978   --with-external-zlib    Use the specified ZLIB library (defaults to the
979                           version distributed with the CVS source)
980   --with-rsh              The default remote shell CVS will use for :ext:
981                           transport (default ssh)
982   --with-editor           The default text editor CVS should use for log
983                           messages (default autoselects)
984   --with-hardcoded-pam-service-name
985                           Use this to hard code a service name for PAM CVS
986                           authentication. The special name, `program_name',
987                           will cause CVS to use whatever name it was invoked
988                           as as the service name. (defaults to `cvs')
989   --with-tmpdir           The temporary directory CVS should use as a default
990                           (default autoselects)
991   --with-umask            Set the umask CVS will use by default in the
992                           repository (default 002)
993   --with-cvs-admin-group=GROUP
994                           The CVS admin command is restricted to the members
995                           of this group. If this group does not exist, all
996                           users are allowed to run CVS admin. To disable the
997                           CVS admin command for all users, create an empty
998                           group by specifying the --with-cvs-admin-group=
999                           option. To disable access control for CVS admin, run
1000                           configure with the --without-cvs-admin-group option.
1001                           (default 'cvsadmin')
1002
1003 Some influential environment variables:
1004   CC          C compiler command
1005   CFLAGS      C compiler flags
1006   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1007               nonstandard directory <lib dir>
1008   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1009               headers in a nonstandard directory <include dir>
1010   CPP         C preprocessor
1011   YACC        The `Yet Another C Compiler' implementation to use. Defaults to
1012               `bison -y'. Values other than `bison -y' will most likely break
1013               on most systems.
1014   YFLAGS      YFLAGS contains the list arguments that will be passed by
1015               default to Bison. This script will default YFLAGS to the empty
1016               string to avoid a default value of `-d' given by some make
1017               applications.
1018   EDITOR      The text editor CVS will use by default for log messages.
1019
1020 Use these variables to override the choices made by `configure' or to help
1021 it to find libraries and programs with nonstandard names/locations.
1022
1023 Report bugs to <bug-cvs@gnu.org>.
1024 _ACEOF
1025 fi
1026
1027 if test "$ac_init_help" = "recursive"; then
1028   # If there are subdirs, report their specific --help.
1029   ac_popdir=`pwd`
1030   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1031     test -d $ac_dir || continue
1032     ac_builddir=.
1033
1034 if test "$ac_dir" != .; then
1035   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1036   # A "../" for each directory in $ac_dir_suffix.
1037   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1038 else
1039   ac_dir_suffix= ac_top_builddir=
1040 fi
1041
1042 case $srcdir in
1043   .)  # No --srcdir option.  We are building in place.
1044     ac_srcdir=.
1045     if test -z "$ac_top_builddir"; then
1046        ac_top_srcdir=.
1047     else
1048        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1049     fi ;;
1050   [\\/]* | ?:[\\/]* )  # Absolute path.
1051     ac_srcdir=$srcdir$ac_dir_suffix;
1052     ac_top_srcdir=$srcdir ;;
1053   *) # Relative path.
1054     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1055     ac_top_srcdir=$ac_top_builddir$srcdir ;;
1056 esac
1057
1058 # Do not use `cd foo && pwd` to compute absolute paths, because
1059 # the directories may not exist.
1060 case `pwd` in
1061 .) ac_abs_builddir="$ac_dir";;
1062 *)
1063   case "$ac_dir" in
1064   .) ac_abs_builddir=`pwd`;;
1065   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1066   *) ac_abs_builddir=`pwd`/"$ac_dir";;
1067   esac;;
1068 esac
1069 case $ac_abs_builddir in
1070 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1071 *)
1072   case ${ac_top_builddir}. in
1073   .) ac_abs_top_builddir=$ac_abs_builddir;;
1074   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1075   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1076   esac;;
1077 esac
1078 case $ac_abs_builddir in
1079 .) ac_abs_srcdir=$ac_srcdir;;
1080 *)
1081   case $ac_srcdir in
1082   .) ac_abs_srcdir=$ac_abs_builddir;;
1083   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1084   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1085   esac;;
1086 esac
1087 case $ac_abs_builddir in
1088 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1089 *)
1090   case $ac_top_srcdir in
1091   .) ac_abs_top_srcdir=$ac_abs_builddir;;
1092   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1093   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1094   esac;;
1095 esac
1096
1097     cd $ac_dir
1098     # Check for guested configure; otherwise get Cygnus style configure.
1099     if test -f $ac_srcdir/configure.gnu; then
1100       echo
1101       $SHELL $ac_srcdir/configure.gnu  --help=recursive
1102     elif test -f $ac_srcdir/configure; then
1103       echo
1104       $SHELL $ac_srcdir/configure  --help=recursive
1105     elif test -f $ac_srcdir/configure.ac ||
1106            test -f $ac_srcdir/configure.in; then
1107       echo
1108       $ac_configure --help
1109     else
1110       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1111     fi
1112     cd $ac_popdir
1113   done
1114 fi
1115
1116 test -n "$ac_init_help" && exit 0
1117 if $ac_init_version; then
1118   cat <<\_ACEOF
1119 Concurrent Versions System (CVS) configure 1.12.12
1120 generated by GNU Autoconf 2.59
1121
1122 Copyright (C) 2003 Free Software Foundation, Inc.
1123 This configure script is free software; the Free Software Foundation
1124 gives unlimited permission to copy, distribute and modify it.
1125
1126 Copyright (C) 1986, 1987, 1988, 1989, 1990, 1991, 1992, 1993, 1994, 1995,
1127               1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004
1128               Free Software Foundation, Inc.
1129
1130 This program is free software; you can redistribute it and/or modify
1131 it under the terms of the GNU General Public License as published by
1132 the Free Software Foundation; either version 2, or (at your option)
1133 any later version.
1134
1135 This program is distributed in the hope that it will be useful,
1136 but WITHOUT ANY WARRANTY; without even the implied warranty of
1137 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
1138 GNU General Public License for more details.
1139 _ACEOF
1140   exit 0
1141 fi
1142 exec 5>config.log
1143 cat >&5 <<_ACEOF
1144 This file contains any messages produced by compilers while
1145 running configure, to aid debugging if configure makes a mistake.
1146
1147 It was created by Concurrent Versions System (CVS) $as_me 1.12.12, which was
1148 generated by GNU Autoconf 2.59.  Invocation command line was
1149
1150   $ $0 $@
1151
1152 _ACEOF
1153 {
1154 cat <<_ASUNAME
1155 ## --------- ##
1156 ## Platform. ##
1157 ## --------- ##
1158
1159 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1160 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1161 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1162 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1163 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1164
1165 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1166 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1167
1168 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1169 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1170 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1171 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1172 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1173 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1174 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1175
1176 _ASUNAME
1177
1178 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1179 for as_dir in $PATH
1180 do
1181   IFS=$as_save_IFS
1182   test -z "$as_dir" && as_dir=.
1183   echo "PATH: $as_dir"
1184 done
1185
1186 } >&5
1187
1188 cat >&5 <<_ACEOF
1189
1190
1191 ## ----------- ##
1192 ## Core tests. ##
1193 ## ----------- ##
1194
1195 _ACEOF
1196
1197
1198 # Keep a trace of the command line.
1199 # Strip out --no-create and --no-recursion so they do not pile up.
1200 # Strip out --silent because we don't want to record it for future runs.
1201 # Also quote any args containing shell meta-characters.
1202 # Make two passes to allow for proper duplicate-argument suppression.
1203 ac_configure_args=
1204 ac_configure_args0=
1205 ac_configure_args1=
1206 ac_sep=
1207 ac_must_keep_next=false
1208 for ac_pass in 1 2
1209 do
1210   for ac_arg
1211   do
1212     case $ac_arg in
1213     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1214     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1215     | -silent | --silent | --silen | --sile | --sil)
1216       continue ;;
1217     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1218       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1219     esac
1220     case $ac_pass in
1221     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1222     2)
1223       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1224       if test $ac_must_keep_next = true; then
1225         ac_must_keep_next=false # Got value, back to normal.
1226       else
1227         case $ac_arg in
1228           *=* | --config-cache | -C | -disable-* | --disable-* \
1229           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1230           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1231           | -with-* | --with-* | -without-* | --without-* | --x)
1232             case "$ac_configure_args0 " in
1233               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1234             esac
1235             ;;
1236           -* ) ac_must_keep_next=true ;;
1237         esac
1238       fi
1239       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1240       # Get rid of the leading space.
1241       ac_sep=" "
1242       ;;
1243     esac
1244   done
1245 done
1246 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1247 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1248
1249 # When interrupted or exit'd, cleanup temporary files, and complete
1250 # config.log.  We remove comments because anyway the quotes in there
1251 # would cause problems or look ugly.
1252 # WARNING: Be sure not to use single quotes in there, as some shells,
1253 # such as our DU 5.0 friend, will then `close' the trap.
1254 trap 'exit_status=$?
1255   # Save into config.log some information that might help in debugging.
1256   {
1257     echo
1258
1259     cat <<\_ASBOX
1260 ## ---------------- ##
1261 ## Cache variables. ##
1262 ## ---------------- ##
1263 _ASBOX
1264     echo
1265     # The following way of writing the cache mishandles newlines in values,
1266 {
1267   (set) 2>&1 |
1268     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1269     *ac_space=\ *)
1270       sed -n \
1271         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1272           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1273       ;;
1274     *)
1275       sed -n \
1276         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1277       ;;
1278     esac;
1279 }
1280     echo
1281
1282     cat <<\_ASBOX
1283 ## ----------------- ##
1284 ## Output variables. ##
1285 ## ----------------- ##
1286 _ASBOX
1287     echo
1288     for ac_var in $ac_subst_vars
1289     do
1290       eval ac_val=$`echo $ac_var`
1291       echo "$ac_var='"'"'$ac_val'"'"'"
1292     done | sort
1293     echo
1294
1295     if test -n "$ac_subst_files"; then
1296       cat <<\_ASBOX
1297 ## ------------- ##
1298 ## Output files. ##
1299 ## ------------- ##
1300 _ASBOX
1301       echo
1302       for ac_var in $ac_subst_files
1303       do
1304         eval ac_val=$`echo $ac_var`
1305         echo "$ac_var='"'"'$ac_val'"'"'"
1306       done | sort
1307       echo
1308     fi
1309
1310     if test -s confdefs.h; then
1311       cat <<\_ASBOX
1312 ## ----------- ##
1313 ## confdefs.h. ##
1314 ## ----------- ##
1315 _ASBOX
1316       echo
1317       sed "/^$/d" confdefs.h | sort
1318       echo
1319     fi
1320     test "$ac_signal" != 0 &&
1321       echo "$as_me: caught signal $ac_signal"
1322     echo "$as_me: exit $exit_status"
1323   } >&5
1324   rm -f core *.core &&
1325   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1326     exit $exit_status
1327      ' 0
1328 for ac_signal in 1 2 13 15; do
1329   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1330 done
1331 ac_signal=0
1332
1333 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1334 rm -rf conftest* confdefs.h
1335 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1336 echo >confdefs.h
1337
1338 # Predefined preprocessor variables.
1339
1340 cat >>confdefs.h <<_ACEOF
1341 #define PACKAGE_NAME "$PACKAGE_NAME"
1342 _ACEOF
1343
1344
1345 cat >>confdefs.h <<_ACEOF
1346 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1347 _ACEOF
1348
1349
1350 cat >>confdefs.h <<_ACEOF
1351 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1352 _ACEOF
1353
1354
1355 cat >>confdefs.h <<_ACEOF
1356 #define PACKAGE_STRING "$PACKAGE_STRING"
1357 _ACEOF
1358
1359
1360 cat >>confdefs.h <<_ACEOF
1361 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1362 _ACEOF
1363
1364
1365 # Let the site file select an alternate cache file if it wants to.
1366 # Prefer explicitly selected file to automatically selected ones.
1367 if test -z "$CONFIG_SITE"; then
1368   if test "x$prefix" != xNONE; then
1369     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1370   else
1371     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1372   fi
1373 fi
1374 for ac_site_file in $CONFIG_SITE; do
1375   if test -r "$ac_site_file"; then
1376     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1377 echo "$as_me: loading site script $ac_site_file" >&6;}
1378     sed 's/^/| /' "$ac_site_file" >&5
1379     . "$ac_site_file"
1380   fi
1381 done
1382
1383 if test -r "$cache_file"; then
1384   # Some versions of bash will fail to source /dev/null (special
1385   # files actually), so we avoid doing that.
1386   if test -f "$cache_file"; then
1387     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1388 echo "$as_me: loading cache $cache_file" >&6;}
1389     case $cache_file in
1390       [\\/]* | ?:[\\/]* ) . $cache_file;;
1391       *)                      . ./$cache_file;;
1392     esac
1393   fi
1394 else
1395   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1396 echo "$as_me: creating cache $cache_file" >&6;}
1397   >$cache_file
1398 fi
1399
1400 # Check that the precious variables saved in the cache have kept the same
1401 # value.
1402 ac_cache_corrupted=false
1403 for ac_var in `(set) 2>&1 |
1404                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1405   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1406   eval ac_new_set=\$ac_env_${ac_var}_set
1407   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1408   eval ac_new_val="\$ac_env_${ac_var}_value"
1409   case $ac_old_set,$ac_new_set in
1410     set,)
1411       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1412 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1413       ac_cache_corrupted=: ;;
1414     ,set)
1415       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1416 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1417       ac_cache_corrupted=: ;;
1418     ,);;
1419     *)
1420       if test "x$ac_old_val" != "x$ac_new_val"; then
1421         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1422 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1423         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1424 echo "$as_me:   former value:  $ac_old_val" >&2;}
1425         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1426 echo "$as_me:   current value: $ac_new_val" >&2;}
1427         ac_cache_corrupted=:
1428       fi;;
1429   esac
1430   # Pass precious variables to config.status.
1431   if test "$ac_new_set" = set; then
1432     case $ac_new_val in
1433     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1434       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1435     *) ac_arg=$ac_var=$ac_new_val ;;
1436     esac
1437     case " $ac_configure_args " in
1438       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1439       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1440     esac
1441   fi
1442 done
1443 if $ac_cache_corrupted; then
1444   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1445 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1446   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1447 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1448    { (exit 1); exit 1; }; }
1449 fi
1450
1451 ac_ext=c
1452 ac_cpp='$CPP $CPPFLAGS'
1453 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1454 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1455 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1456
1457
1458 gl_func_list="$gl_func_list fchdir"
1459 gl_header_list="$gl_header_list fcntl.h"
1460 gl_header_list="$gl_header_list unistd.h"
1461 gl_header_list="$gl_header_list sys/time.h"
1462 gl_func_list="$gl_func_list isascii"
1463 gl_header_list="$gl_header_list sys/param.h"
1464 gl_header_list="$gl_header_list stdio_ext.h"
1465 gl_func_list="$gl_func_list gettimeofday"
1466 gl_func_list="$gl_func_list nanotime"
1467 gl_func_list="$gl_func_list posix_memalign"
1468 gl_header_list="$gl_header_list wchar.h"
1469 gl_header_list="$gl_header_list wctype.h"
1470 gl_func_list="$gl_func_list iswprint"
1471 gl_func_list="$gl_func_list mbsinit"
1472 gl_func_list="$gl_func_list mempcpy"
1473 gl_func_list="$gl_func_list mblen"
1474 gl_func_list="$gl_func_list mbrlen"
1475 gl_func_list="$gl_func_list tzset"
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502 ac_aux_dir=
1503 for ac_dir in build-aux $srcdir/build-aux; do
1504   if test -f $ac_dir/install-sh; then
1505     ac_aux_dir=$ac_dir
1506     ac_install_sh="$ac_aux_dir/install-sh -c"
1507     break
1508   elif test -f $ac_dir/install.sh; then
1509     ac_aux_dir=$ac_dir
1510     ac_install_sh="$ac_aux_dir/install.sh -c"
1511     break
1512   elif test -f $ac_dir/shtool; then
1513     ac_aux_dir=$ac_dir
1514     ac_install_sh="$ac_aux_dir/shtool install -c"
1515     break
1516   fi
1517 done
1518 if test -z "$ac_aux_dir"; then
1519   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in build-aux $srcdir/build-aux" >&5
1520 echo "$as_me: error: cannot find install-sh or install.sh in build-aux $srcdir/build-aux" >&2;}
1521    { (exit 1); exit 1; }; }
1522 fi
1523 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1524 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1525 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1526
1527 am__api_version="1.9"
1528 # Find a good install program.  We prefer a C program (faster),
1529 # so one script is as good as another.  But avoid the broken or
1530 # incompatible versions:
1531 # SysV /etc/install, /usr/sbin/install
1532 # SunOS /usr/etc/install
1533 # IRIX /sbin/install
1534 # AIX /bin/install
1535 # AmigaOS /C/install, which installs bootblocks on floppy discs
1536 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1537 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1538 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1539 # OS/2's system install, which has a completely different semantic
1540 # ./install, which can be erroneously created by make from ./install.sh.
1541 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1542 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1543 if test -z "$INSTALL"; then
1544 if test "${ac_cv_path_install+set}" = set; then
1545   echo $ECHO_N "(cached) $ECHO_C" >&6
1546 else
1547   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1548 for as_dir in $PATH
1549 do
1550   IFS=$as_save_IFS
1551   test -z "$as_dir" && as_dir=.
1552   # Account for people who put trailing slashes in PATH elements.
1553 case $as_dir/ in
1554   ./ | .// | /cC/* | \
1555   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1556   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1557   /usr/ucb/* ) ;;
1558   *)
1559     # OSF1 and SCO ODT 3.0 have their own names for install.
1560     # Don't use installbsd from OSF since it installs stuff as root
1561     # by default.
1562     for ac_prog in ginstall scoinst install; do
1563       for ac_exec_ext in '' $ac_executable_extensions; do
1564         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1565           if test $ac_prog = install &&
1566             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1567             # AIX install.  It has an incompatible calling convention.
1568             :
1569           elif test $ac_prog = install &&
1570             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1571             # program-specific install script used by HP pwplus--don't use.
1572             :
1573           else
1574             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1575             break 3
1576           fi
1577         fi
1578       done
1579     done
1580     ;;
1581 esac
1582 done
1583
1584
1585 fi
1586   if test "${ac_cv_path_install+set}" = set; then
1587     INSTALL=$ac_cv_path_install
1588   else
1589     # As a last resort, use the slow shell script.  We don't cache a
1590     # path for INSTALL within a source directory, because that will
1591     # break other packages using the cache if that directory is
1592     # removed, or if the path is relative.
1593     INSTALL=$ac_install_sh
1594   fi
1595 fi
1596 echo "$as_me:$LINENO: result: $INSTALL" >&5
1597 echo "${ECHO_T}$INSTALL" >&6
1598
1599 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1600 # It thinks the first close brace ends the variable substitution.
1601 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1602
1603 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1604
1605 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1606
1607 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1608 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1609 # Just in case
1610 sleep 1
1611 echo timestamp > conftest.file
1612 # Do `set' in a subshell so we don't clobber the current shell's
1613 # arguments.  Must try -L first in case configure is actually a
1614 # symlink; some systems play weird games with the mod time of symlinks
1615 # (eg FreeBSD returns the mod time of the symlink's containing
1616 # directory).
1617 if (
1618    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1619    if test "$*" = "X"; then
1620       # -L didn't work.
1621       set X `ls -t $srcdir/configure conftest.file`
1622    fi
1623    rm -f conftest.file
1624    if test "$*" != "X $srcdir/configure conftest.file" \
1625       && test "$*" != "X conftest.file $srcdir/configure"; then
1626
1627       # If neither matched, then we have a broken ls.  This can happen
1628       # if, for instance, CONFIG_SHELL is bash and it inherits a
1629       # broken ls alias from the environment.  This has actually
1630       # happened.  Such a system could not be considered "sane".
1631       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
1632 alias in your environment" >&5
1633 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
1634 alias in your environment" >&2;}
1635    { (exit 1); exit 1; }; }
1636    fi
1637
1638    test "$2" = conftest.file
1639    )
1640 then
1641    # Ok.
1642    :
1643 else
1644    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1645 Check your system clock" >&5
1646 echo "$as_me: error: newly created file is older than distributed files!
1647 Check your system clock" >&2;}
1648    { (exit 1); exit 1; }; }
1649 fi
1650 echo "$as_me:$LINENO: result: yes" >&5
1651 echo "${ECHO_T}yes" >&6
1652 test "$program_prefix" != NONE &&
1653   program_transform_name="s,^,$program_prefix,;$program_transform_name"
1654 # Use a double $ so make ignores it.
1655 test "$program_suffix" != NONE &&
1656   program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1657 # Double any \ or $.  echo might interpret backslashes.
1658 # By default was `s,x,x', remove it if useless.
1659 cat <<\_ACEOF >conftest.sed
1660 s/[\\$]/&&/g;s/;s,x,x,$//
1661 _ACEOF
1662 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1663 rm conftest.sed
1664
1665 # expand $ac_aux_dir to an absolute path
1666 am_aux_dir=`cd $ac_aux_dir && pwd`
1667
1668 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1669 # Use eval to expand $SHELL
1670 if eval "$MISSING --run true"; then
1671   am_missing_run="$MISSING --run "
1672 else
1673   am_missing_run=
1674   { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1675 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1676 fi
1677
1678 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1679   # We used to keeping the `.' as first argument, in order to
1680   # allow $(mkdir_p) to be used without argument.  As in
1681   #   $(mkdir_p) $(somedir)
1682   # where $(somedir) is conditionally defined.  However this is wrong
1683   # for two reasons:
1684   #  1. if the package is installed by a user who cannot write `.'
1685   #     make install will fail,
1686   #  2. the above comment should most certainly read
1687   #     $(mkdir_p) $(DESTDIR)$(somedir)
1688   #     so it does not work when $(somedir) is undefined and
1689   #     $(DESTDIR) is not.
1690   #  To support the latter case, we have to write
1691   #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1692   #  so the `.' trick is pointless.
1693   mkdir_p='mkdir -p --'
1694 else
1695   # On NextStep and OpenStep, the `mkdir' command does not
1696   # recognize any option.  It will interpret all options as
1697   # directories to create, and then abort because `.' already
1698   # exists.
1699   for d in ./-p ./--version;
1700   do
1701     test -d $d && rmdir $d
1702   done
1703   # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1704   if test -f "$ac_aux_dir/mkinstalldirs"; then
1705     mkdir_p='$(mkinstalldirs)'
1706   else
1707     mkdir_p='$(install_sh) -d'
1708   fi
1709 fi
1710
1711 for ac_prog in gawk mawk nawk awk
1712 do
1713   # Extract the first word of "$ac_prog", so it can be a program name with args.
1714 set dummy $ac_prog; ac_word=$2
1715 echo "$as_me:$LINENO: checking for $ac_word" >&5
1716 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1717 if test "${ac_cv_prog_AWK+set}" = set; then
1718   echo $ECHO_N "(cached) $ECHO_C" >&6
1719 else
1720   if test -n "$AWK"; then
1721   ac_cv_prog_AWK="$AWK" # Let the user override the test.
1722 else
1723 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1724 for as_dir in $PATH
1725 do
1726   IFS=$as_save_IFS
1727   test -z "$as_dir" && as_dir=.
1728   for ac_exec_ext in '' $ac_executable_extensions; do
1729   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1730     ac_cv_prog_AWK="$ac_prog"
1731     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1732     break 2
1733   fi
1734 done
1735 done
1736
1737 fi
1738 fi
1739 AWK=$ac_cv_prog_AWK
1740 if test -n "$AWK"; then
1741   echo "$as_me:$LINENO: result: $AWK" >&5
1742 echo "${ECHO_T}$AWK" >&6
1743 else
1744   echo "$as_me:$LINENO: result: no" >&5
1745 echo "${ECHO_T}no" >&6
1746 fi
1747
1748   test -n "$AWK" && break
1749 done
1750
1751 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1752 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1753 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1754 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1755   echo $ECHO_N "(cached) $ECHO_C" >&6
1756 else
1757   cat >conftest.make <<\_ACEOF
1758 all:
1759         @echo 'ac_maketemp="$(MAKE)"'
1760 _ACEOF
1761 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1762 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1763 if test -n "$ac_maketemp"; then
1764   eval ac_cv_prog_make_${ac_make}_set=yes
1765 else
1766   eval ac_cv_prog_make_${ac_make}_set=no
1767 fi
1768 rm -f conftest.make
1769 fi
1770 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1771   echo "$as_me:$LINENO: result: yes" >&5
1772 echo "${ECHO_T}yes" >&6
1773   SET_MAKE=
1774 else
1775   echo "$as_me:$LINENO: result: no" >&5
1776 echo "${ECHO_T}no" >&6
1777   SET_MAKE="MAKE=${MAKE-make}"
1778 fi
1779
1780 rm -rf .tst 2>/dev/null
1781 mkdir .tst 2>/dev/null
1782 if test -d .tst; then
1783   am__leading_dot=.
1784 else
1785   am__leading_dot=_
1786 fi
1787 rmdir .tst 2>/dev/null
1788
1789 # test to see if srcdir already configured
1790 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1791    test -f $srcdir/config.status; then
1792   { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1793 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1794    { (exit 1); exit 1; }; }
1795 fi
1796
1797 # test whether we have cygpath
1798 if test -z "$CYGPATH_W"; then
1799   if (cygpath --version) >/dev/null 2>/dev/null; then
1800     CYGPATH_W='cygpath -w'
1801   else
1802     CYGPATH_W=echo
1803   fi
1804 fi
1805
1806
1807 # Define the identity of the package.
1808  PACKAGE='cvs'
1809  VERSION='1.12.12'
1810
1811
1812 # Some tools Automake needs.
1813
1814 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1815
1816
1817 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1818
1819
1820 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1821
1822
1823 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1824
1825
1826 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1827
1828 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1829
1830 # Installed binaries are usually stripped using `strip' when the user
1831 # run `make install-strip'.  However `strip' might not be the right
1832 # tool to use in cross-compilation environments, therefore Automake
1833 # will honor the `STRIP' environment variable to overrule this program.
1834 if test "$cross_compiling" != no; then
1835   if test -n "$ac_tool_prefix"; then
1836   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1837 set dummy ${ac_tool_prefix}strip; ac_word=$2
1838 echo "$as_me:$LINENO: checking for $ac_word" >&5
1839 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1840 if test "${ac_cv_prog_STRIP+set}" = set; then
1841   echo $ECHO_N "(cached) $ECHO_C" >&6
1842 else
1843   if test -n "$STRIP"; then
1844   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1845 else
1846 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1847 for as_dir in $PATH
1848 do
1849   IFS=$as_save_IFS
1850   test -z "$as_dir" && as_dir=.
1851   for ac_exec_ext in '' $ac_executable_extensions; do
1852   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1853     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1854     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1855     break 2
1856   fi
1857 done
1858 done
1859
1860 fi
1861 fi
1862 STRIP=$ac_cv_prog_STRIP
1863 if test -n "$STRIP"; then
1864   echo "$as_me:$LINENO: result: $STRIP" >&5
1865 echo "${ECHO_T}$STRIP" >&6
1866 else
1867   echo "$as_me:$LINENO: result: no" >&5
1868 echo "${ECHO_T}no" >&6
1869 fi
1870
1871 fi
1872 if test -z "$ac_cv_prog_STRIP"; then
1873   ac_ct_STRIP=$STRIP
1874   # Extract the first word of "strip", so it can be a program name with args.
1875 set dummy strip; ac_word=$2
1876 echo "$as_me:$LINENO: checking for $ac_word" >&5
1877 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1878 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1879   echo $ECHO_N "(cached) $ECHO_C" >&6
1880 else
1881   if test -n "$ac_ct_STRIP"; then
1882   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1883 else
1884 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1885 for as_dir in $PATH
1886 do
1887   IFS=$as_save_IFS
1888   test -z "$as_dir" && as_dir=.
1889   for ac_exec_ext in '' $ac_executable_extensions; do
1890   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1891     ac_cv_prog_ac_ct_STRIP="strip"
1892     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1893     break 2
1894   fi
1895 done
1896 done
1897
1898   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1899 fi
1900 fi
1901 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1902 if test -n "$ac_ct_STRIP"; then
1903   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1904 echo "${ECHO_T}$ac_ct_STRIP" >&6
1905 else
1906   echo "$as_me:$LINENO: result: no" >&5
1907 echo "${ECHO_T}no" >&6
1908 fi
1909
1910   STRIP=$ac_ct_STRIP
1911 else
1912   STRIP="$ac_cv_prog_STRIP"
1913 fi
1914
1915 fi
1916 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1917
1918 # We need awk for the "check" target.  The system "awk" is bad on
1919 # some platforms.
1920 # Always define AMTAR for backward compatibility.
1921
1922 AMTAR=${AMTAR-"${am_missing_run}tar"}
1923
1924 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
1925
1926
1927
1928
1929
1930
1931
1932 if test "x$prefix" = xNONE; then
1933   echo $ECHO_N "checking for prefix by $ECHO_C" >&6
1934   # Extract the first word of "cvs", so it can be a program name with args.
1935 set dummy cvs; ac_word=$2
1936 echo "$as_me:$LINENO: checking for $ac_word" >&5
1937 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1938 if test "${ac_cv_path_ac_prefix_program+set}" = set; then
1939   echo $ECHO_N "(cached) $ECHO_C" >&6
1940 else
1941   case $ac_prefix_program in
1942   [\\/]* | ?:[\\/]*)
1943   ac_cv_path_ac_prefix_program="$ac_prefix_program" # Let the user override the test with a path.
1944   ;;
1945   *)
1946   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1947 for as_dir in $PATH
1948 do
1949   IFS=$as_save_IFS
1950   test -z "$as_dir" && as_dir=.
1951   for ac_exec_ext in '' $ac_executable_extensions; do
1952   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1953     ac_cv_path_ac_prefix_program="$as_dir/$ac_word$ac_exec_ext"
1954     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1955     break 2
1956   fi
1957 done
1958 done
1959
1960   ;;
1961 esac
1962 fi
1963 ac_prefix_program=$ac_cv_path_ac_prefix_program
1964
1965 if test -n "$ac_prefix_program"; then
1966   echo "$as_me:$LINENO: result: $ac_prefix_program" >&5
1967 echo "${ECHO_T}$ac_prefix_program" >&6
1968 else
1969   echo "$as_me:$LINENO: result: no" >&5
1970 echo "${ECHO_T}no" >&6
1971 fi
1972
1973   if test -n "$ac_prefix_program"; then
1974     prefix=`(dirname "$ac_prefix_program") 2>/dev/null ||
1975 $as_expr X"$ac_prefix_program" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1976          X"$ac_prefix_program" : 'X\(//\)[^/]' \| \
1977          X"$ac_prefix_program" : 'X\(//\)$' \| \
1978          X"$ac_prefix_program" : 'X\(/\)' \| \
1979          .     : '\(.\)' 2>/dev/null ||
1980 echo X"$ac_prefix_program" |
1981     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
1982           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
1983           /^X\(\/\/\)$/{ s//\1/; q; }
1984           /^X\(\/\).*/{ s//\1/; q; }
1985           s/.*/./; q'`
1986     prefix=`(dirname "$prefix") 2>/dev/null ||
1987 $as_expr X"$prefix" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1988          X"$prefix" : 'X\(//\)[^/]' \| \
1989          X"$prefix" : 'X\(//\)$' \| \
1990          X"$prefix" : 'X\(/\)' \| \
1991          .     : '\(.\)' 2>/dev/null ||
1992 echo X"$prefix" |
1993     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
1994           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
1995           /^X\(\/\/\)$/{ s//\1/; q; }
1996           /^X\(\/\).*/{ s//\1/; q; }
1997           s/.*/./; q'`
1998   fi
1999 fi
2000
2001           ac_config_headers="$ac_config_headers config.h"
2002
2003 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
2004 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
2005     # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
2006 if test "${enable_maintainer_mode+set}" = set; then
2007   enableval="$enable_maintainer_mode"
2008   USE_MAINTAINER_MODE=$enableval
2009 else
2010   USE_MAINTAINER_MODE=no
2011 fi;
2012   echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
2013 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
2014
2015
2016 if test $USE_MAINTAINER_MODE = yes; then
2017   MAINTAINER_MODE_TRUE=
2018   MAINTAINER_MODE_FALSE='#'
2019 else
2020   MAINTAINER_MODE_TRUE='#'
2021   MAINTAINER_MODE_FALSE=
2022 fi
2023
2024   MAINT=$MAINTAINER_MODE_TRUE
2025
2026
2027
2028 DEPDIR="${am__leading_dot}deps"
2029
2030           ac_config_commands="$ac_config_commands depfiles"
2031
2032
2033 am_make=${MAKE-make}
2034 cat > confinc << 'END'
2035 am__doit:
2036         @echo done
2037 .PHONY: am__doit
2038 END
2039 # If we don't find an include directive, just comment out the code.
2040 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2041 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2042 am__include="#"
2043 am__quote=
2044 _am_result=none
2045 # First try GNU make style include.
2046 echo "include confinc" > confmf
2047 # We grep out `Entering directory' and `Leaving directory'
2048 # messages which can occur if `w' ends up in MAKEFLAGS.
2049 # In particular we don't look at `^make:' because GNU make might
2050 # be invoked under some other name (usually "gmake"), in which
2051 # case it prints its new name instead of `make'.
2052 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2053    am__include=include
2054    am__quote=
2055    _am_result=GNU
2056 fi
2057 # Now try BSD make style include.
2058 if test "$am__include" = "#"; then
2059    echo '.include "confinc"' > confmf
2060    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2061       am__include=.include
2062       am__quote="\""
2063       _am_result=BSD
2064    fi
2065 fi
2066
2067
2068 echo "$as_me:$LINENO: result: $_am_result" >&5
2069 echo "${ECHO_T}$_am_result" >&6
2070 rm -f confinc confmf
2071
2072 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2073 if test "${enable_dependency_tracking+set}" = set; then
2074   enableval="$enable_dependency_tracking"
2075
2076 fi;
2077 if test "x$enable_dependency_tracking" != xno; then
2078   am_depcomp="$ac_aux_dir/depcomp"
2079   AMDEPBACKSLASH='\'
2080 fi
2081
2082
2083 if test "x$enable_dependency_tracking" != xno; then
2084   AMDEP_TRUE=
2085   AMDEP_FALSE='#'
2086 else
2087   AMDEP_TRUE='#'
2088   AMDEP_FALSE=
2089 fi
2090
2091
2092
2093 ac_ext=c
2094 ac_cpp='$CPP $CPPFLAGS'
2095 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2096 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2097 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2098 if test -n "$ac_tool_prefix"; then
2099   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2100 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2101 echo "$as_me:$LINENO: checking for $ac_word" >&5
2102 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2103 if test "${ac_cv_prog_CC+set}" = set; then
2104   echo $ECHO_N "(cached) $ECHO_C" >&6
2105 else
2106   if test -n "$CC"; then
2107   ac_cv_prog_CC="$CC" # Let the user override the test.
2108 else
2109 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2110 for as_dir in $PATH
2111 do
2112   IFS=$as_save_IFS
2113   test -z "$as_dir" && as_dir=.
2114   for ac_exec_ext in '' $ac_executable_extensions; do
2115   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2116     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2117     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2118     break 2
2119   fi
2120 done
2121 done
2122
2123 fi
2124 fi
2125 CC=$ac_cv_prog_CC
2126 if test -n "$CC"; then
2127   echo "$as_me:$LINENO: result: $CC" >&5
2128 echo "${ECHO_T}$CC" >&6
2129 else
2130   echo "$as_me:$LINENO: result: no" >&5
2131 echo "${ECHO_T}no" >&6
2132 fi
2133
2134 fi
2135 if test -z "$ac_cv_prog_CC"; then
2136   ac_ct_CC=$CC
2137   # Extract the first word of "gcc", so it can be a program name with args.
2138 set dummy gcc; ac_word=$2
2139 echo "$as_me:$LINENO: checking for $ac_word" >&5
2140 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2141 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2142   echo $ECHO_N "(cached) $ECHO_C" >&6
2143 else
2144   if test -n "$ac_ct_CC"; then
2145   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2146 else
2147 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2148 for as_dir in $PATH
2149 do
2150   IFS=$as_save_IFS
2151   test -z "$as_dir" && as_dir=.
2152   for ac_exec_ext in '' $ac_executable_extensions; do
2153   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2154     ac_cv_prog_ac_ct_CC="gcc"
2155     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2156     break 2
2157   fi
2158 done
2159 done
2160
2161 fi
2162 fi
2163 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2164 if test -n "$ac_ct_CC"; then
2165   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2166 echo "${ECHO_T}$ac_ct_CC" >&6
2167 else
2168   echo "$as_me:$LINENO: result: no" >&5
2169 echo "${ECHO_T}no" >&6
2170 fi
2171
2172   CC=$ac_ct_CC
2173 else
2174   CC="$ac_cv_prog_CC"
2175 fi
2176
2177 if test -z "$CC"; then
2178   if test -n "$ac_tool_prefix"; then
2179   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2180 set dummy ${ac_tool_prefix}cc; ac_word=$2
2181 echo "$as_me:$LINENO: checking for $ac_word" >&5
2182 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2183 if test "${ac_cv_prog_CC+set}" = set; then
2184   echo $ECHO_N "(cached) $ECHO_C" >&6
2185 else
2186   if test -n "$CC"; then
2187   ac_cv_prog_CC="$CC" # Let the user override the test.
2188 else
2189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2190 for as_dir in $PATH
2191 do
2192   IFS=$as_save_IFS
2193   test -z "$as_dir" && as_dir=.
2194   for ac_exec_ext in '' $ac_executable_extensions; do
2195   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2196     ac_cv_prog_CC="${ac_tool_prefix}cc"
2197     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2198     break 2
2199   fi
2200 done
2201 done
2202
2203 fi
2204 fi
2205 CC=$ac_cv_prog_CC
2206 if test -n "$CC"; then
2207   echo "$as_me:$LINENO: result: $CC" >&5
2208 echo "${ECHO_T}$CC" >&6
2209 else
2210   echo "$as_me:$LINENO: result: no" >&5
2211 echo "${ECHO_T}no" >&6
2212 fi
2213
2214 fi
2215 if test -z "$ac_cv_prog_CC"; then
2216   ac_ct_CC=$CC
2217   # Extract the first word of "cc", so it can be a program name with args.
2218 set dummy cc; ac_word=$2
2219 echo "$as_me:$LINENO: checking for $ac_word" >&5
2220 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2221 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2222   echo $ECHO_N "(cached) $ECHO_C" >&6
2223 else
2224   if test -n "$ac_ct_CC"; then
2225   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2226 else
2227 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2228 for as_dir in $PATH
2229 do
2230   IFS=$as_save_IFS
2231   test -z "$as_dir" && as_dir=.
2232   for ac_exec_ext in '' $ac_executable_extensions; do
2233   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2234     ac_cv_prog_ac_ct_CC="cc"
2235     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2236     break 2
2237   fi
2238 done
2239 done
2240
2241 fi
2242 fi
2243 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2244 if test -n "$ac_ct_CC"; then
2245   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2246 echo "${ECHO_T}$ac_ct_CC" >&6
2247 else
2248   echo "$as_me:$LINENO: result: no" >&5
2249 echo "${ECHO_T}no" >&6
2250 fi
2251
2252   CC=$ac_ct_CC
2253 else
2254   CC="$ac_cv_prog_CC"
2255 fi
2256
2257 fi
2258 if test -z "$CC"; then
2259   # Extract the first word of "cc", so it can be a program name with args.
2260 set dummy cc; ac_word=$2
2261 echo "$as_me:$LINENO: checking for $ac_word" >&5
2262 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2263 if test "${ac_cv_prog_CC+set}" = set; then
2264   echo $ECHO_N "(cached) $ECHO_C" >&6
2265 else
2266   if test -n "$CC"; then
2267   ac_cv_prog_CC="$CC" # Let the user override the test.
2268 else
2269   ac_prog_rejected=no
2270 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2271 for as_dir in $PATH
2272 do
2273   IFS=$as_save_IFS
2274   test -z "$as_dir" && as_dir=.
2275   for ac_exec_ext in '' $ac_executable_extensions; do
2276   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2277     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2278        ac_prog_rejected=yes
2279        continue
2280      fi
2281     ac_cv_prog_CC="cc"
2282     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2283     break 2
2284   fi
2285 done
2286 done
2287
2288 if test $ac_prog_rejected = yes; then
2289   # We found a bogon in the path, so make sure we never use it.
2290   set dummy $ac_cv_prog_CC
2291   shift
2292   if test $# != 0; then
2293     # We chose a different compiler from the bogus one.
2294     # However, it has the same basename, so the bogon will be chosen
2295     # first if we set CC to just the basename; use the full file name.
2296     shift
2297     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2298   fi
2299 fi
2300 fi
2301 fi
2302 CC=$ac_cv_prog_CC
2303 if test -n "$CC"; then
2304   echo "$as_me:$LINENO: result: $CC" >&5
2305 echo "${ECHO_T}$CC" >&6
2306 else
2307   echo "$as_me:$LINENO: result: no" >&5
2308 echo "${ECHO_T}no" >&6
2309 fi
2310
2311 fi
2312 if test -z "$CC"; then
2313   if test -n "$ac_tool_prefix"; then
2314   for ac_prog in cl
2315   do
2316     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2317 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2318 echo "$as_me:$LINENO: checking for $ac_word" >&5
2319 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2320 if test "${ac_cv_prog_CC+set}" = set; then
2321   echo $ECHO_N "(cached) $ECHO_C" >&6
2322 else
2323   if test -n "$CC"; then
2324   ac_cv_prog_CC="$CC" # Let the user override the test.
2325 else
2326 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2327 for as_dir in $PATH
2328 do
2329   IFS=$as_save_IFS
2330   test -z "$as_dir" && as_dir=.
2331   for ac_exec_ext in '' $ac_executable_extensions; do
2332   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2333     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2334     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2335     break 2
2336   fi
2337 done
2338 done
2339
2340 fi
2341 fi
2342 CC=$ac_cv_prog_CC
2343 if test -n "$CC"; then
2344   echo "$as_me:$LINENO: result: $CC" >&5
2345 echo "${ECHO_T}$CC" >&6
2346 else
2347   echo "$as_me:$LINENO: result: no" >&5
2348 echo "${ECHO_T}no" >&6
2349 fi
2350
2351     test -n "$CC" && break
2352   done
2353 fi
2354 if test -z "$CC"; then
2355   ac_ct_CC=$CC
2356   for ac_prog in cl
2357 do
2358   # Extract the first word of "$ac_prog", so it can be a program name with args.
2359 set dummy $ac_prog; ac_word=$2
2360 echo "$as_me:$LINENO: checking for $ac_word" >&5
2361 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2362 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2363   echo $ECHO_N "(cached) $ECHO_C" >&6
2364 else
2365   if test -n "$ac_ct_CC"; then
2366   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2367 else
2368 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2369 for as_dir in $PATH
2370 do
2371   IFS=$as_save_IFS
2372   test -z "$as_dir" && as_dir=.
2373   for ac_exec_ext in '' $ac_executable_extensions; do
2374   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2375     ac_cv_prog_ac_ct_CC="$ac_prog"
2376     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2377     break 2
2378   fi
2379 done
2380 done
2381
2382 fi
2383 fi
2384 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2385 if test -n "$ac_ct_CC"; then
2386   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2387 echo "${ECHO_T}$ac_ct_CC" >&6
2388 else
2389   echo "$as_me:$LINENO: result: no" >&5
2390 echo "${ECHO_T}no" >&6
2391 fi
2392
2393   test -n "$ac_ct_CC" && break
2394 done
2395
2396   CC=$ac_ct_CC
2397 fi
2398
2399 fi
2400
2401
2402 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2403 See \`config.log' for more details." >&5
2404 echo "$as_me: error: no acceptable C compiler found in \$PATH
2405 See \`config.log' for more details." >&2;}
2406    { (exit 1); exit 1; }; }
2407
2408 # Provide some information about the compiler.
2409 echo "$as_me:$LINENO:" \
2410      "checking for C compiler version" >&5
2411 ac_compiler=`set X $ac_compile; echo $2`
2412 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2413   (eval $ac_compiler --version </dev/null >&5) 2>&5
2414   ac_status=$?
2415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2416   (exit $ac_status); }
2417 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2418   (eval $ac_compiler -v </dev/null >&5) 2>&5
2419   ac_status=$?
2420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2421   (exit $ac_status); }
2422 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2423   (eval $ac_compiler -V </dev/null >&5) 2>&5
2424   ac_status=$?
2425   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2426   (exit $ac_status); }
2427
2428 cat >conftest.$ac_ext <<_ACEOF
2429 /* confdefs.h.  */
2430 _ACEOF
2431 cat confdefs.h >>conftest.$ac_ext
2432 cat >>conftest.$ac_ext <<_ACEOF
2433 /* end confdefs.h.  */
2434
2435 int
2436 main ()
2437 {
2438
2439   ;
2440   return 0;
2441 }
2442 _ACEOF
2443 ac_clean_files_save=$ac_clean_files
2444 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2445 # Try to create an executable without -o first, disregard a.out.
2446 # It will help us diagnose broken compilers, and finding out an intuition
2447 # of exeext.
2448 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2449 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2450 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2451 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2452   (eval $ac_link_default) 2>&5
2453   ac_status=$?
2454   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2455   (exit $ac_status); }; then
2456   # Find the output, starting from the most likely.  This scheme is
2457 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2458 # resort.
2459
2460 # Be careful to initialize this variable, since it used to be cached.
2461 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2462 ac_cv_exeext=
2463 # b.out is created by i960 compilers.
2464 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2465 do
2466   test -f "$ac_file" || continue
2467   case $ac_file in
2468     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2469         ;;
2470     conftest.$ac_ext )
2471         # This is the source file.
2472         ;;
2473     [ab].out )
2474         # We found the default executable, but exeext='' is most
2475         # certainly right.
2476         break;;
2477     *.* )
2478         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2479         # FIXME: I believe we export ac_cv_exeext for Libtool,
2480         # but it would be cool to find out if it's true.  Does anybody
2481         # maintain Libtool? --akim.
2482         export ac_cv_exeext
2483         break;;
2484     * )
2485         break;;
2486   esac
2487 done
2488 else
2489   echo "$as_me: failed program was:" >&5
2490 sed 's/^/| /' conftest.$ac_ext >&5
2491
2492 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2493 See \`config.log' for more details." >&5
2494 echo "$as_me: error: C compiler cannot create executables
2495 See \`config.log' for more details." >&2;}
2496    { (exit 77); exit 77; }; }
2497 fi
2498
2499 ac_exeext=$ac_cv_exeext
2500 echo "$as_me:$LINENO: result: $ac_file" >&5
2501 echo "${ECHO_T}$ac_file" >&6
2502
2503 # Check the compiler produces executables we can run.  If not, either
2504 # the compiler is broken, or we cross compile.
2505 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2506 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2507 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2508 # If not cross compiling, check that we can run a simple program.
2509 if test "$cross_compiling" != yes; then
2510   if { ac_try='./$ac_file'
2511   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2512   (eval $ac_try) 2>&5
2513   ac_status=$?
2514   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2515   (exit $ac_status); }; }; then
2516     cross_compiling=no
2517   else
2518     if test "$cross_compiling" = maybe; then
2519         cross_compiling=yes
2520     else
2521         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2522 If you meant to cross compile, use \`--host'.
2523 See \`config.log' for more details." >&5
2524 echo "$as_me: error: cannot run C compiled programs.
2525 If you meant to cross compile, use \`--host'.
2526 See \`config.log' for more details." >&2;}
2527    { (exit 1); exit 1; }; }
2528     fi
2529   fi
2530 fi
2531 echo "$as_me:$LINENO: result: yes" >&5
2532 echo "${ECHO_T}yes" >&6
2533
2534 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2535 ac_clean_files=$ac_clean_files_save
2536 # Check the compiler produces executables we can run.  If not, either
2537 # the compiler is broken, or we cross compile.
2538 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2539 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2540 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2541 echo "${ECHO_T}$cross_compiling" >&6
2542
2543 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2544 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2545 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2546   (eval $ac_link) 2>&5
2547   ac_status=$?
2548   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2549   (exit $ac_status); }; then
2550   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2551 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2552 # work properly (i.e., refer to `conftest.exe'), while it won't with
2553 # `rm'.
2554 for ac_file in conftest.exe conftest conftest.*; do
2555   test -f "$ac_file" || continue
2556   case $ac_file in
2557     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2558     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2559           export ac_cv_exeext
2560           break;;
2561     * ) break;;
2562   esac
2563 done
2564 else
2565   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2566 See \`config.log' for more details." >&5
2567 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2568 See \`config.log' for more details." >&2;}
2569    { (exit 1); exit 1; }; }
2570 fi
2571
2572 rm -f conftest$ac_cv_exeext
2573 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2574 echo "${ECHO_T}$ac_cv_exeext" >&6
2575
2576 rm -f conftest.$ac_ext
2577 EXEEXT=$ac_cv_exeext
2578 ac_exeext=$EXEEXT
2579 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2580 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2581 if test "${ac_cv_objext+set}" = set; then
2582   echo $ECHO_N "(cached) $ECHO_C" >&6
2583 else
2584   cat >conftest.$ac_ext <<_ACEOF
2585 /* confdefs.h.  */
2586 _ACEOF
2587 cat confdefs.h >>conftest.$ac_ext
2588 cat >>conftest.$ac_ext <<_ACEOF
2589 /* end confdefs.h.  */
2590
2591 int
2592 main ()
2593 {
2594
2595   ;
2596   return 0;
2597 }
2598 _ACEOF
2599 rm -f conftest.o conftest.obj
2600 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2601   (eval $ac_compile) 2>&5
2602   ac_status=$?
2603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2604   (exit $ac_status); }; then
2605   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2606   case $ac_file in
2607     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2608     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2609        break;;
2610   esac
2611 done
2612 else
2613   echo "$as_me: failed program was:" >&5
2614 sed 's/^/| /' conftest.$ac_ext >&5
2615
2616 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2617 See \`config.log' for more details." >&5
2618 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2619 See \`config.log' for more details." >&2;}
2620    { (exit 1); exit 1; }; }
2621 fi
2622
2623 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2624 fi
2625 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2626 echo "${ECHO_T}$ac_cv_objext" >&6
2627 OBJEXT=$ac_cv_objext
2628 ac_objext=$OBJEXT
2629 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2630 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2631 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2632   echo $ECHO_N "(cached) $ECHO_C" >&6
2633 else
2634   cat >conftest.$ac_ext <<_ACEOF
2635 /* confdefs.h.  */
2636 _ACEOF
2637 cat confdefs.h >>conftest.$ac_ext
2638 cat >>conftest.$ac_ext <<_ACEOF
2639 /* end confdefs.h.  */
2640
2641 int
2642 main ()
2643 {
2644 #ifndef __GNUC__
2645        choke me
2646 #endif
2647
2648   ;
2649   return 0;
2650 }
2651 _ACEOF
2652 rm -f conftest.$ac_objext
2653 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2654   (eval $ac_compile) 2>conftest.er1
2655   ac_status=$?
2656   grep -v '^ *+' conftest.er1 >conftest.err
2657   rm -f conftest.er1
2658   cat conftest.err >&5
2659   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2660   (exit $ac_status); } &&
2661          { ac_try='test -z "$ac_c_werror_flag"
2662                          || test ! -s conftest.err'
2663   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2664   (eval $ac_try) 2>&5
2665   ac_status=$?
2666   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2667   (exit $ac_status); }; } &&
2668          { ac_try='test -s conftest.$ac_objext'
2669   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2670   (eval $ac_try) 2>&5
2671   ac_status=$?
2672   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2673   (exit $ac_status); }; }; then
2674   ac_compiler_gnu=yes
2675 else
2676   echo "$as_me: failed program was:" >&5
2677 sed 's/^/| /' conftest.$ac_ext >&5
2678
2679 ac_compiler_gnu=no
2680 fi
2681 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2682 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2683
2684 fi
2685 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2686 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2687 GCC=`test $ac_compiler_gnu = yes && echo yes`
2688 ac_test_CFLAGS=${CFLAGS+set}
2689 ac_save_CFLAGS=$CFLAGS
2690 CFLAGS="-g"
2691 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2692 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2693 if test "${ac_cv_prog_cc_g+set}" = set; then
2694   echo $ECHO_N "(cached) $ECHO_C" >&6
2695 else
2696   cat >conftest.$ac_ext <<_ACEOF
2697 /* confdefs.h.  */
2698 _ACEOF
2699 cat confdefs.h >>conftest.$ac_ext
2700 cat >>conftest.$ac_ext <<_ACEOF
2701 /* end confdefs.h.  */
2702
2703 int
2704 main ()
2705 {
2706
2707   ;
2708   return 0;
2709 }
2710 _ACEOF
2711 rm -f conftest.$ac_objext
2712 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2713   (eval $ac_compile) 2>conftest.er1
2714   ac_status=$?
2715   grep -v '^ *+' conftest.er1 >conftest.err
2716   rm -f conftest.er1
2717   cat conftest.err >&5
2718   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2719   (exit $ac_status); } &&
2720          { ac_try='test -z "$ac_c_werror_flag"
2721                          || test ! -s conftest.err'
2722   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2723   (eval $ac_try) 2>&5
2724   ac_status=$?
2725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2726   (exit $ac_status); }; } &&
2727          { ac_try='test -s conftest.$ac_objext'
2728   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2729   (eval $ac_try) 2>&5
2730   ac_status=$?
2731   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2732   (exit $ac_status); }; }; then
2733   ac_cv_prog_cc_g=yes
2734 else
2735   echo "$as_me: failed program was:" >&5
2736 sed 's/^/| /' conftest.$ac_ext >&5
2737
2738 ac_cv_prog_cc_g=no
2739 fi
2740 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2741 fi
2742 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2743 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2744 if test "$ac_test_CFLAGS" = set; then
2745   CFLAGS=$ac_save_CFLAGS
2746 elif test $ac_cv_prog_cc_g = yes; then
2747   if test "$GCC" = yes; then
2748     CFLAGS="-g -O2"
2749   else
2750     CFLAGS="-g"
2751   fi
2752 else
2753   if test "$GCC" = yes; then
2754     CFLAGS="-O2"
2755   else
2756     CFLAGS=
2757   fi
2758 fi
2759 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2760 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2761 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2762   echo $ECHO_N "(cached) $ECHO_C" >&6
2763 else
2764   ac_cv_prog_cc_stdc=no
2765 ac_save_CC=$CC
2766 cat >conftest.$ac_ext <<_ACEOF
2767 /* confdefs.h.  */
2768 _ACEOF
2769 cat confdefs.h >>conftest.$ac_ext
2770 cat >>conftest.$ac_ext <<_ACEOF
2771 /* end confdefs.h.  */
2772 #include <stdarg.h>
2773 #include <stdio.h>
2774 #include <sys/types.h>
2775 #include <sys/stat.h>
2776 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2777 struct buf { int x; };
2778 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2779 static char *e (p, i)
2780      char **p;
2781      int i;
2782 {
2783   return p[i];
2784 }
2785 static char *f (char * (*g) (char **, int), char **p, ...)
2786 {
2787   char *s;
2788   va_list v;
2789   va_start (v,p);
2790   s = g (p, va_arg (v,int));
2791   va_end (v);
2792   return s;
2793 }
2794
2795 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2796    function prototypes and stuff, but not '\xHH' hex character constants.
2797    These don't provoke an error unfortunately, instead are silently treated
2798    as 'x'.  The following induces an error, until -std1 is added to get
2799    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2800    array size at least.  It's necessary to write '\x00'==0 to get something
2801    that's true only with -std1.  */
2802 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2803
2804 int test (int i, double x);
2805 struct s1 {int (*f) (int a);};
2806 struct s2 {int (*f) (double a);};
2807 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2808 int argc;
2809 char **argv;
2810 int
2811 main ()
2812 {
2813 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2814   ;
2815   return 0;
2816 }
2817 _ACEOF
2818 # Don't try gcc -ansi; that turns off useful extensions and
2819 # breaks some systems' header files.
2820 # AIX                   -qlanglvl=ansi
2821 # Ultrix and OSF/1      -std1
2822 # HP-UX 10.20 and later -Ae
2823 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2824 # SVR4                  -Xc -D__EXTENSIONS__
2825 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2826 do
2827   CC="$ac_save_CC $ac_arg"
2828   rm -f conftest.$ac_objext
2829 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2830   (eval $ac_compile) 2>conftest.er1
2831   ac_status=$?
2832   grep -v '^ *+' conftest.er1 >conftest.err
2833   rm -f conftest.er1
2834   cat conftest.err >&5
2835   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2836   (exit $ac_status); } &&
2837          { ac_try='test -z "$ac_c_werror_flag"
2838                          || test ! -s conftest.err'
2839   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2840   (eval $ac_try) 2>&5
2841   ac_status=$?
2842   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2843   (exit $ac_status); }; } &&
2844          { ac_try='test -s conftest.$ac_objext'
2845   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2846   (eval $ac_try) 2>&5
2847   ac_status=$?
2848   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2849   (exit $ac_status); }; }; then
2850   ac_cv_prog_cc_stdc=$ac_arg
2851 break
2852 else
2853   echo "$as_me: failed program was:" >&5
2854 sed 's/^/| /' conftest.$ac_ext >&5
2855
2856 fi
2857 rm -f conftest.err conftest.$ac_objext
2858 done
2859 rm -f conftest.$ac_ext conftest.$ac_objext
2860 CC=$ac_save_CC
2861
2862 fi
2863
2864 case "x$ac_cv_prog_cc_stdc" in
2865   x|xno)
2866     echo "$as_me:$LINENO: result: none needed" >&5
2867 echo "${ECHO_T}none needed" >&6 ;;
2868   *)
2869     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2870 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2871     CC="$CC $ac_cv_prog_cc_stdc" ;;
2872 esac
2873
2874 # Some people use a C++ compiler to compile C.  Since we use `exit',
2875 # in C++ we need to declare it.  In case someone uses the same compiler
2876 # for both compiling C and C++ we need to have the C++ compiler decide
2877 # the declaration of exit, since it's the most demanding environment.
2878 cat >conftest.$ac_ext <<_ACEOF
2879 #ifndef __cplusplus
2880   choke me
2881 #endif
2882 _ACEOF
2883 rm -f conftest.$ac_objext
2884 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2885   (eval $ac_compile) 2>conftest.er1
2886   ac_status=$?
2887   grep -v '^ *+' conftest.er1 >conftest.err
2888   rm -f conftest.er1
2889   cat conftest.err >&5
2890   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2891   (exit $ac_status); } &&
2892          { ac_try='test -z "$ac_c_werror_flag"
2893                          || test ! -s conftest.err'
2894   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2895   (eval $ac_try) 2>&5
2896   ac_status=$?
2897   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2898   (exit $ac_status); }; } &&
2899          { ac_try='test -s conftest.$ac_objext'
2900   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2901   (eval $ac_try) 2>&5
2902   ac_status=$?
2903   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2904   (exit $ac_status); }; }; then
2905   for ac_declaration in \
2906    '' \
2907    'extern "C" void std::exit (int) throw (); using std::exit;' \
2908    'extern "C" void std::exit (int); using std::exit;' \
2909    'extern "C" void exit (int) throw ();' \
2910    'extern "C" void exit (int);' \
2911    'void exit (int);'
2912 do
2913   cat >conftest.$ac_ext <<_ACEOF
2914 /* confdefs.h.  */
2915 _ACEOF
2916 cat confdefs.h >>conftest.$ac_ext
2917 cat >>conftest.$ac_ext <<_ACEOF
2918 /* end confdefs.h.  */
2919 $ac_declaration
2920 #include <stdlib.h>
2921 int
2922 main ()
2923 {
2924 exit (42);
2925   ;
2926   return 0;
2927 }
2928 _ACEOF
2929 rm -f conftest.$ac_objext
2930 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2931   (eval $ac_compile) 2>conftest.er1
2932   ac_status=$?
2933   grep -v '^ *+' conftest.er1 >conftest.err
2934   rm -f conftest.er1
2935   cat conftest.err >&5
2936   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2937   (exit $ac_status); } &&
2938          { ac_try='test -z "$ac_c_werror_flag"
2939                          || test ! -s conftest.err'
2940   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2941   (eval $ac_try) 2>&5
2942   ac_status=$?
2943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2944   (exit $ac_status); }; } &&
2945          { ac_try='test -s conftest.$ac_objext'
2946   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2947   (eval $ac_try) 2>&5
2948   ac_status=$?
2949   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2950   (exit $ac_status); }; }; then
2951   :
2952 else
2953   echo "$as_me: failed program was:" >&5
2954 sed 's/^/| /' conftest.$ac_ext >&5
2955
2956 continue
2957 fi
2958 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2959   cat >conftest.$ac_ext <<_ACEOF
2960 /* confdefs.h.  */
2961 _ACEOF
2962 cat confdefs.h >>conftest.$ac_ext
2963 cat >>conftest.$ac_ext <<_ACEOF
2964 /* end confdefs.h.  */
2965 $ac_declaration
2966 int
2967 main ()
2968 {
2969 exit (42);
2970   ;
2971   return 0;
2972 }
2973 _ACEOF
2974 rm -f conftest.$ac_objext
2975 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2976   (eval $ac_compile) 2>conftest.er1
2977   ac_status=$?
2978   grep -v '^ *+' conftest.er1 >conftest.err
2979   rm -f conftest.er1
2980   cat conftest.err >&5
2981   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2982   (exit $ac_status); } &&
2983          { ac_try='test -z "$ac_c_werror_flag"
2984                          || test ! -s conftest.err'
2985   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2986   (eval $ac_try) 2>&5
2987   ac_status=$?
2988   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2989   (exit $ac_status); }; } &&
2990          { ac_try='test -s conftest.$ac_objext'
2991   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2992   (eval $ac_try) 2>&5
2993   ac_status=$?
2994   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2995   (exit $ac_status); }; }; then
2996   break
2997 else
2998   echo "$as_me: failed program was:" >&5
2999 sed 's/^/| /' conftest.$ac_ext >&5
3000
3001 fi
3002 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3003 done
3004 rm -f conftest*
3005 if test -n "$ac_declaration"; then
3006   echo '#ifdef __cplusplus' >>confdefs.h
3007   echo $ac_declaration      >>confdefs.h
3008   echo '#endif'             >>confdefs.h
3009 fi
3010
3011 else
3012   echo "$as_me: failed program was:" >&5
3013 sed 's/^/| /' conftest.$ac_ext >&5
3014
3015 fi
3016 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3017 ac_ext=c
3018 ac_cpp='$CPP $CPPFLAGS'
3019 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3020 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3021 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3022
3023 depcc="$CC"   am_compiler_list=
3024
3025 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3026 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3027 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3028   echo $ECHO_N "(cached) $ECHO_C" >&6
3029 else
3030   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3031   # We make a subdir and do the tests there.  Otherwise we can end up
3032   # making bogus files that we don't know about and never remove.  For
3033   # instance it was reported that on HP-UX the gcc test will end up
3034   # making a dummy file named `D' -- because `-MD' means `put the output
3035   # in D'.
3036   mkdir conftest.dir
3037   # Copy depcomp to subdir because otherwise we won't find it if we're
3038   # using a relative directory.
3039   cp "$am_depcomp" conftest.dir
3040   cd conftest.dir
3041   # We will build objects and dependencies in a subdirectory because
3042   # it helps to detect inapplicable dependency modes.  For instance
3043   # both Tru64's cc and ICC support -MD to output dependencies as a
3044   # side effect of compilation, but ICC will put the dependencies in
3045   # the current directory while Tru64 will put them in the object
3046   # directory.
3047   mkdir sub
3048
3049   am_cv_CC_dependencies_compiler_type=none
3050   if test "$am_compiler_list" = ""; then
3051      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3052   fi
3053   for depmode in $am_compiler_list; do
3054     # Setup a source with many dependencies, because some compilers
3055     # like to wrap large dependency lists on column 80 (with \), and
3056     # we should not choose a depcomp mode which is confused by this.
3057     #
3058     # We need to recreate these files for each test, as the compiler may
3059     # overwrite some of them when testing with obscure command lines.
3060     # This happens at least with the AIX C compiler.
3061     : > sub/conftest.c
3062     for i in 1 2 3 4 5 6; do
3063       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3064       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3065       # Solaris 8's {/usr,}/bin/sh.
3066       touch sub/conftst$i.h
3067     done
3068     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3069
3070     case $depmode in
3071     nosideeffect)
3072       # after this tag, mechanisms are not by side-effect, so they'll
3073       # only be used when explicitly requested
3074       if test "x$enable_dependency_tracking" = xyes; then
3075         continue
3076       else
3077         break
3078       fi
3079       ;;
3080     none) break ;;
3081     esac
3082     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3083     # mode.  It turns out that the SunPro C++ compiler does not properly
3084     # handle `-M -o', and we need to detect this.
3085     if depmode=$depmode \
3086        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3087        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3088        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3089          >/dev/null 2>conftest.err &&
3090        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3091        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3092        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3093       # icc doesn't choke on unknown options, it will just issue warnings
3094       # or remarks (even with -Werror).  So we grep stderr for any message
3095       # that says an option was ignored or not supported.
3096       # When given -MP, icc 7.0 and 7.1 complain thusly:
3097       #   icc: Command line warning: ignoring option '-M'; no argument required
3098       # The diagnosis changed in icc 8.0:
3099       #   icc: Command line remark: option '-MP' not supported
3100       if (grep 'ignoring option' conftest.err ||
3101           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3102         am_cv_CC_dependencies_compiler_type=$depmode
3103         break
3104       fi
3105     fi
3106   done
3107
3108   cd ..
3109   rm -rf conftest.dir
3110 else
3111   am_cv_CC_dependencies_compiler_type=none
3112 fi
3113
3114 fi
3115 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3116 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3117 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3118
3119
3120
3121 if
3122   test "x$enable_dependency_tracking" != xno \
3123   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3124   am__fastdepCC_TRUE=
3125   am__fastdepCC_FALSE='#'
3126 else
3127   am__fastdepCC_TRUE='#'
3128   am__fastdepCC_FALSE=
3129 fi
3130
3131
3132
3133 ac_ext=c
3134 ac_cpp='$CPP $CPPFLAGS'
3135 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3136 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3137 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3138 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3139 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3140 # On Suns, sometimes $CPP names a directory.
3141 if test -n "$CPP" && test -d "$CPP"; then
3142   CPP=
3143 fi
3144 if test -z "$CPP"; then
3145   if test "${ac_cv_prog_CPP+set}" = set; then
3146   echo $ECHO_N "(cached) $ECHO_C" >&6
3147 else
3148       # Double quotes because CPP needs to be expanded
3149     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3150     do
3151       ac_preproc_ok=false
3152 for ac_c_preproc_warn_flag in '' yes
3153 do
3154   # Use a header file that comes with gcc, so configuring glibc
3155   # with a fresh cross-compiler works.
3156   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3157   # <limits.h> exists even on freestanding compilers.
3158   # On the NeXT, cc -E runs the code through the compiler's parser,
3159   # not just through cpp. "Syntax error" is here to catch this case.
3160   cat >conftest.$ac_ext <<_ACEOF
3161 /* confdefs.h.  */
3162 _ACEOF
3163 cat confdefs.h >>conftest.$ac_ext
3164 cat >>conftest.$ac_ext <<_ACEOF
3165 /* end confdefs.h.  */
3166 #ifdef __STDC__
3167 # include <limits.h>
3168 #else
3169 # include <assert.h>
3170 #endif
3171                      Syntax error
3172 _ACEOF
3173 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3174   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3175   ac_status=$?
3176   grep -v '^ *+' conftest.er1 >conftest.err
3177   rm -f conftest.er1
3178   cat conftest.err >&5
3179   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3180   (exit $ac_status); } >/dev/null; then
3181   if test -s conftest.err; then
3182     ac_cpp_err=$ac_c_preproc_warn_flag
3183     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3184   else
3185     ac_cpp_err=
3186   fi
3187 else
3188   ac_cpp_err=yes
3189 fi
3190 if test -z "$ac_cpp_err"; then
3191   :
3192 else
3193   echo "$as_me: failed program was:" >&5
3194 sed 's/^/| /' conftest.$ac_ext >&5
3195
3196   # Broken: fails on valid input.
3197 continue
3198 fi
3199 rm -f conftest.err conftest.$ac_ext
3200
3201   # OK, works on sane cases.  Now check whether non-existent headers
3202   # can be detected and how.
3203   cat >conftest.$ac_ext <<_ACEOF
3204 /* confdefs.h.  */
3205 _ACEOF
3206 cat confdefs.h >>conftest.$ac_ext
3207 cat >>conftest.$ac_ext <<_ACEOF
3208 /* end confdefs.h.  */
3209 #include <ac_nonexistent.h>
3210 _ACEOF
3211 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3212   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3213   ac_status=$?
3214   grep -v '^ *+' conftest.er1 >conftest.err
3215   rm -f conftest.er1
3216   cat conftest.err >&5
3217   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3218   (exit $ac_status); } >/dev/null; then
3219   if test -s conftest.err; then
3220     ac_cpp_err=$ac_c_preproc_warn_flag
3221     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3222   else
3223     ac_cpp_err=
3224   fi
3225 else
3226   ac_cpp_err=yes
3227 fi
3228 if test -z "$ac_cpp_err"; then
3229   # Broken: success on invalid input.
3230 continue
3231 else
3232   echo "$as_me: failed program was:" >&5
3233 sed 's/^/| /' conftest.$ac_ext >&5
3234
3235   # Passes both tests.
3236 ac_preproc_ok=:
3237 break
3238 fi
3239 rm -f conftest.err conftest.$ac_ext
3240
3241 done
3242 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3243 rm -f conftest.err conftest.$ac_ext
3244 if $ac_preproc_ok; then
3245   break
3246 fi
3247
3248     done
3249     ac_cv_prog_CPP=$CPP
3250
3251 fi
3252   CPP=$ac_cv_prog_CPP
3253 else
3254   ac_cv_prog_CPP=$CPP
3255 fi
3256 echo "$as_me:$LINENO: result: $CPP" >&5
3257 echo "${ECHO_T}$CPP" >&6
3258 ac_preproc_ok=false
3259 for ac_c_preproc_warn_flag in '' yes
3260 do
3261   # Use a header file that comes with gcc, so configuring glibc
3262   # with a fresh cross-compiler works.
3263   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3264   # <limits.h> exists even on freestanding compilers.
3265   # On the NeXT, cc -E runs the code through the compiler's parser,
3266   # not just through cpp. "Syntax error" is here to catch this case.
3267   cat >conftest.$ac_ext <<_ACEOF
3268 /* confdefs.h.  */
3269 _ACEOF
3270 cat confdefs.h >>conftest.$ac_ext
3271 cat >>conftest.$ac_ext <<_ACEOF
3272 /* end confdefs.h.  */
3273 #ifdef __STDC__
3274 # include <limits.h>
3275 #else
3276 # include <assert.h>
3277 #endif
3278                      Syntax error
3279 _ACEOF
3280 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3281   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3282   ac_status=$?
3283   grep -v '^ *+' conftest.er1 >conftest.err
3284   rm -f conftest.er1
3285   cat conftest.err >&5
3286   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3287   (exit $ac_status); } >/dev/null; then
3288   if test -s conftest.err; then
3289     ac_cpp_err=$ac_c_preproc_warn_flag
3290     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3291   else
3292     ac_cpp_err=
3293   fi
3294 else
3295   ac_cpp_err=yes
3296 fi
3297 if test -z "$ac_cpp_err"; then
3298   :
3299 else
3300   echo "$as_me: failed program was:" >&5
3301 sed 's/^/| /' conftest.$ac_ext >&5
3302
3303   # Broken: fails on valid input.
3304 continue
3305 fi
3306 rm -f conftest.err conftest.$ac_ext
3307
3308   # OK, works on sane cases.  Now check whether non-existent headers
3309   # can be detected and how.
3310   cat >conftest.$ac_ext <<_ACEOF
3311 /* confdefs.h.  */
3312 _ACEOF
3313 cat confdefs.h >>conftest.$ac_ext
3314 cat >>conftest.$ac_ext <<_ACEOF
3315 /* end confdefs.h.  */
3316 #include <ac_nonexistent.h>
3317 _ACEOF
3318 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3319   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3320   ac_status=$?
3321   grep -v '^ *+' conftest.er1 >conftest.err
3322   rm -f conftest.er1
3323   cat conftest.err >&5
3324   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3325   (exit $ac_status); } >/dev/null; then
3326   if test -s conftest.err; then
3327     ac_cpp_err=$ac_c_preproc_warn_flag
3328     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3329   else
3330     ac_cpp_err=
3331   fi
3332 else
3333   ac_cpp_err=yes
3334 fi
3335 if test -z "$ac_cpp_err"; then
3336   # Broken: success on invalid input.
3337 continue
3338 else
3339   echo "$as_me: failed program was:" >&5
3340 sed 's/^/| /' conftest.$ac_ext >&5
3341
3342   # Passes both tests.
3343 ac_preproc_ok=:
3344 break
3345 fi
3346 rm -f conftest.err conftest.$ac_ext
3347
3348 done
3349 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3350 rm -f conftest.err conftest.$ac_ext
3351 if $ac_preproc_ok; then
3352   :
3353 else
3354   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3355 See \`config.log' for more details." >&5
3356 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3357 See \`config.log' for more details." >&2;}
3358    { (exit 1); exit 1; }; }
3359 fi
3360
3361 ac_ext=c
3362 ac_cpp='$CPP $CPPFLAGS'
3363 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3364 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3365 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3366
3367
3368 echo "$as_me:$LINENO: checking for egrep" >&5
3369 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3370 if test "${ac_cv_prog_egrep+set}" = set; then
3371   echo $ECHO_N "(cached) $ECHO_C" >&6
3372 else
3373   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3374     then ac_cv_prog_egrep='grep -E'
3375     else ac_cv_prog_egrep='egrep'
3376     fi
3377 fi
3378 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3379 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3380  EGREP=$ac_cv_prog_egrep
3381
3382
3383
3384 echo "$as_me:$LINENO: checking for AIX" >&5
3385 echo $ECHO_N "checking for AIX... $ECHO_C" >&6
3386 cat >conftest.$ac_ext <<_ACEOF
3387 /* confdefs.h.  */
3388 _ACEOF
3389 cat confdefs.h >>conftest.$ac_ext
3390 cat >>conftest.$ac_ext <<_ACEOF
3391 /* end confdefs.h.  */
3392 #ifdef _AIX
3393   yes
3394 #endif
3395
3396 _ACEOF
3397 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3398   $EGREP "yes" >/dev/null 2>&1; then
3399   echo "$as_me:$LINENO: result: yes" >&5
3400 echo "${ECHO_T}yes" >&6
3401 cat >>confdefs.h <<\_ACEOF
3402 #define _ALL_SOURCE 1
3403 _ACEOF
3404
3405 else
3406   echo "$as_me:$LINENO: result: no" >&5
3407 echo "${ECHO_T}no" >&6
3408 fi
3409 rm -f conftest*
3410
3411
3412 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3413 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3414 if test "${ac_cv_header_stdc+set}" = set; then
3415   echo $ECHO_N "(cached) $ECHO_C" >&6
3416 else
3417   cat >conftest.$ac_ext <<_ACEOF
3418 /* confdefs.h.  */
3419 _ACEOF
3420 cat confdefs.h >>conftest.$ac_ext
3421 cat >>conftest.$ac_ext <<_ACEOF
3422 /* end confdefs.h.  */
3423 #include <stdlib.h>
3424 #include <stdarg.h>
3425 #include <string.h>
3426 #include <float.h>
3427
3428 int
3429 main ()
3430 {
3431
3432   ;
3433   return 0;
3434 }
3435 _ACEOF
3436 rm -f conftest.$ac_objext
3437 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3438   (eval $ac_compile) 2>conftest.er1
3439   ac_status=$?
3440   grep -v '^ *+' conftest.er1 >conftest.err
3441   rm -f conftest.er1
3442   cat conftest.err >&5
3443   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3444   (exit $ac_status); } &&
3445          { ac_try='test -z "$ac_c_werror_flag"
3446                          || test ! -s conftest.err'
3447   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3448   (eval $ac_try) 2>&5
3449   ac_status=$?
3450   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3451   (exit $ac_status); }; } &&
3452          { ac_try='test -s conftest.$ac_objext'
3453   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3454   (eval $ac_try) 2>&5
3455   ac_status=$?
3456   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3457   (exit $ac_status); }; }; then
3458   ac_cv_header_stdc=yes
3459 else
3460   echo "$as_me: failed program was:" >&5
3461 sed 's/^/| /' conftest.$ac_ext >&5
3462
3463 ac_cv_header_stdc=no
3464 fi
3465 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3466
3467 if test $ac_cv_header_stdc = yes; then
3468   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3469   cat >conftest.$ac_ext <<_ACEOF
3470 /* confdefs.h.  */
3471 _ACEOF
3472 cat confdefs.h >>conftest.$ac_ext
3473 cat >>conftest.$ac_ext <<_ACEOF
3474 /* end confdefs.h.  */
3475 #include <string.h>
3476
3477 _ACEOF
3478 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3479   $EGREP "memchr" >/dev/null 2>&1; then
3480   :
3481 else
3482   ac_cv_header_stdc=no
3483 fi
3484 rm -f conftest*
3485
3486 fi
3487
3488 if test $ac_cv_header_stdc = yes; then
3489   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3490   cat >conftest.$ac_ext <<_ACEOF
3491 /* confdefs.h.  */
3492 _ACEOF
3493 cat confdefs.h >>conftest.$ac_ext
3494 cat >>conftest.$ac_ext <<_ACEOF
3495 /* end confdefs.h.  */
3496 #include <stdlib.h>
3497
3498 _ACEOF
3499 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3500   $EGREP "free" >/dev/null 2>&1; then
3501   :
3502 else
3503   ac_cv_header_stdc=no
3504 fi
3505 rm -f conftest*
3506
3507 fi
3508
3509 if test $ac_cv_header_stdc = yes; then
3510   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3511   if test "$cross_compiling" = yes; then
3512   :
3513 else
3514   cat >conftest.$ac_ext <<_ACEOF
3515 /* confdefs.h.  */
3516 _ACEOF
3517 cat confdefs.h >>conftest.$ac_ext
3518 cat >>conftest.$ac_ext <<_ACEOF
3519 /* end confdefs.h.  */
3520 #include <ctype.h>
3521 #if ((' ' & 0x0FF) == 0x020)
3522 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3523 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3524 #else
3525 # define ISLOWER(c) \
3526                    (('a' <= (c) && (c) <= 'i') \
3527                      || ('j' <= (c) && (c) <= 'r') \
3528                      || ('s' <= (c) && (c) <= 'z'))
3529 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3530 #endif
3531
3532 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3533 int
3534 main ()
3535 {
3536   int i;
3537   for (i = 0; i < 256; i++)
3538     if (XOR (islower (i), ISLOWER (i))
3539         || toupper (i) != TOUPPER (i))
3540       exit(2);
3541   exit (0);
3542 }
3543 _ACEOF
3544 rm -f conftest$ac_exeext
3545 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3546   (eval $ac_link) 2>&5
3547   ac_status=$?
3548   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3549   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3550   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3551   (eval $ac_try) 2>&5
3552   ac_status=$?
3553   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3554   (exit $ac_status); }; }; then
3555   :
3556 else
3557   echo "$as_me: program exited with status $ac_status" >&5
3558 echo "$as_me: failed program was:" >&5
3559 sed 's/^/| /' conftest.$ac_ext >&5
3560
3561 ( exit $ac_status )
3562 ac_cv_header_stdc=no
3563 fi
3564 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3565 fi
3566 fi
3567 fi
3568 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3569 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3570 if test $ac_cv_header_stdc = yes; then
3571
3572 cat >>confdefs.h <<\_ACEOF
3573 #define STDC_HEADERS 1
3574 _ACEOF
3575
3576 fi
3577
3578 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3579
3580
3581
3582
3583
3584
3585
3586
3587
3588 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3589                   inttypes.h stdint.h unistd.h
3590 do
3591 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3592 echo "$as_me:$LINENO: checking for $ac_header" >&5
3593 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3594 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3595   echo $ECHO_N "(cached) $ECHO_C" >&6
3596 else
3597   cat >conftest.$ac_ext <<_ACEOF
3598 /* confdefs.h.  */
3599 _ACEOF
3600 cat confdefs.h >>conftest.$ac_ext
3601 cat >>conftest.$ac_ext <<_ACEOF
3602 /* end confdefs.h.  */
3603 $ac_includes_default
3604
3605 #include <$ac_header>
3606 _ACEOF
3607 rm -f conftest.$ac_objext
3608 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3609   (eval $ac_compile) 2>conftest.er1
3610   ac_status=$?
3611   grep -v '^ *+' conftest.er1 >conftest.err
3612   rm -f conftest.er1
3613   cat conftest.err >&5
3614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3615   (exit $ac_status); } &&
3616          { ac_try='test -z "$ac_c_werror_flag"
3617                          || test ! -s conftest.err'
3618   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3619   (eval $ac_try) 2>&5
3620   ac_status=$?
3621   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3622   (exit $ac_status); }; } &&
3623          { ac_try='test -s conftest.$ac_objext'
3624   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3625   (eval $ac_try) 2>&5
3626   ac_status=$?
3627   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3628   (exit $ac_status); }; }; then
3629   eval "$as_ac_Header=yes"
3630 else
3631   echo "$as_me: failed program was:" >&5
3632 sed 's/^/| /' conftest.$ac_ext >&5
3633
3634 eval "$as_ac_Header=no"
3635 fi
3636 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3637 fi
3638 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3639 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3640 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3641   cat >>confdefs.h <<_ACEOF
3642 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3643 _ACEOF
3644
3645 fi
3646
3647 done
3648
3649
3650 if test "${ac_cv_header_minix_config_h+set}" = set; then
3651   echo "$as_me:$LINENO: checking for minix/config.h" >&5
3652 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
3653 if test "${ac_cv_header_minix_config_h+set}" = set; then
3654   echo $ECHO_N "(cached) $ECHO_C" >&6
3655 fi
3656 echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
3657 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
3658 else
3659   # Is the header compilable?
3660 echo "$as_me:$LINENO: checking minix/config.h usability" >&5
3661 echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6
3662 cat >conftest.$ac_ext <<_ACEOF
3663 /* confdefs.h.  */
3664 _ACEOF
3665 cat confdefs.h >>conftest.$ac_ext
3666 cat >>conftest.$ac_ext <<_ACEOF
3667 /* end confdefs.h.  */
3668 $ac_includes_default
3669 #include <minix/config.h>
3670 _ACEOF
3671 rm -f conftest.$ac_objext
3672 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3673   (eval $ac_compile) 2>conftest.er1
3674   ac_status=$?
3675   grep -v '^ *+' conftest.er1 >conftest.err
3676   rm -f conftest.er1
3677   cat conftest.err >&5
3678   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3679   (exit $ac_status); } &&
3680          { ac_try='test -z "$ac_c_werror_flag"
3681                          || test ! -s conftest.err'
3682   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3683   (eval $ac_try) 2>&5
3684   ac_status=$?
3685   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3686   (exit $ac_status); }; } &&
3687          { ac_try='test -s conftest.$ac_objext'
3688   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3689   (eval $ac_try) 2>&5
3690   ac_status=$?
3691   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3692   (exit $ac_status); }; }; then
3693   ac_header_compiler=yes
3694 else
3695   echo "$as_me: failed program was:" >&5
3696 sed 's/^/| /' conftest.$ac_ext >&5
3697
3698 ac_header_compiler=no
3699 fi
3700 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3701 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3702 echo "${ECHO_T}$ac_header_compiler" >&6
3703
3704 # Is the header present?
3705 echo "$as_me:$LINENO: checking minix/config.h presence" >&5
3706 echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6
3707 cat >conftest.$ac_ext <<_ACEOF
3708 /* confdefs.h.  */
3709 _ACEOF
3710 cat confdefs.h >>conftest.$ac_ext
3711 cat >>conftest.$ac_ext <<_ACEOF
3712 /* end confdefs.h.  */
3713 #include <minix/config.h>
3714 _ACEOF
3715 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3716   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3717   ac_status=$?
3718   grep -v '^ *+' conftest.er1 >conftest.err
3719   rm -f conftest.er1
3720   cat conftest.err >&5
3721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3722   (exit $ac_status); } >/dev/null; then
3723   if test -s conftest.err; then
3724     ac_cpp_err=$ac_c_preproc_warn_flag
3725     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3726   else
3727     ac_cpp_err=
3728   fi
3729 else
3730   ac_cpp_err=yes
3731 fi
3732 if test -z "$ac_cpp_err"; then
3733   ac_header_preproc=yes
3734 else
3735   echo "$as_me: failed program was:" >&5
3736 sed 's/^/| /' conftest.$ac_ext >&5
3737
3738   ac_header_preproc=no
3739 fi
3740 rm -f conftest.err conftest.$ac_ext
3741 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3742 echo "${ECHO_T}$ac_header_preproc" >&6
3743
3744 # So?  What about this header?
3745 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3746   yes:no: )
3747     { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
3748 echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
3749     { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
3750 echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
3751     ac_header_preproc=yes
3752     ;;
3753   no:yes:* )
3754     { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
3755 echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
3756     { echo "$as_me:$LINENO: WARNING: minix/config.h:     check for missing prerequisite headers?" >&5
3757 echo "$as_me: WARNING: minix/config.h:     check for missing prerequisite headers?" >&2;}
3758     { echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
3759 echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
3760     { echo "$as_me:$LINENO: WARNING: minix/config.h:     section \"Present But Cannot Be Compiled\"" >&5
3761 echo "$as_me: WARNING: minix/config.h:     section \"Present But Cannot Be Compiled\"" >&2;}
3762     { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
3763 echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
3764     { echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
3765 echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
3766     (
3767       cat <<\_ASBOX
3768 ## ------------------------------ ##
3769 ## Report this to bug-cvs@gnu.org ##
3770 ## ------------------------------ ##
3771 _ASBOX
3772     ) |
3773       sed "s/^/$as_me: WARNING:     /" >&2
3774     ;;
3775 esac
3776 echo "$as_me:$LINENO: checking for minix/config.h" >&5
3777 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
3778 if test "${ac_cv_header_minix_config_h+set}" = set; then
3779   echo $ECHO_N "(cached) $ECHO_C" >&6
3780 else
3781   ac_cv_header_minix_config_h=$ac_header_preproc
3782 fi
3783 echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
3784 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
3785
3786 fi
3787 if test $ac_cv_header_minix_config_h = yes; then
3788   MINIX=yes
3789 else
3790   MINIX=
3791 fi
3792
3793
3794 if test "$MINIX" = yes; then
3795
3796 cat >>confdefs.h <<\_ACEOF
3797 #define _POSIX_SOURCE 1
3798 _ACEOF
3799
3800
3801 cat >>confdefs.h <<\_ACEOF
3802 #define _POSIX_1_SOURCE 2
3803 _ACEOF
3804
3805
3806 cat >>confdefs.h <<\_ACEOF
3807 #define _MINIX 1
3808 _ACEOF
3809
3810 fi
3811
3812
3813
3814 cat >>confdefs.h <<\_ACEOF
3815 #define _GNU_SOURCE 1
3816 _ACEOF
3817
3818
3819
3820
3821
3822
3823
3824
3825
3826
3827
3828
3829   cat >>confdefs.h <<\_ACEOF
3830 #define __EXTENSIONS__ 1
3831 _ACEOF
3832
3833
3834
3835
3836 ac_ext=c
3837 ac_cpp='$CPP $CPPFLAGS'
3838 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3839 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3840 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3841 if test -n "$ac_tool_prefix"; then
3842   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3843 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3844 echo "$as_me:$LINENO: checking for $ac_word" >&5
3845 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3846 if test "${ac_cv_prog_CC+set}" = set; then
3847   echo $ECHO_N "(cached) $ECHO_C" >&6
3848 else
3849   if test -n "$CC"; then
3850   ac_cv_prog_CC="$CC" # Let the user override the test.
3851 else
3852 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3853 for as_dir in $PATH
3854 do
3855   IFS=$as_save_IFS
3856   test -z "$as_dir" && as_dir=.
3857   for ac_exec_ext in '' $ac_executable_extensions; do
3858   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3859     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3860     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3861     break 2
3862   fi
3863 done
3864 done
3865
3866 fi
3867 fi
3868 CC=$ac_cv_prog_CC
3869 if test -n "$CC"; then
3870   echo "$as_me:$LINENO: result: $CC" >&5
3871 echo "${ECHO_T}$CC" >&6
3872 else
3873   echo "$as_me:$LINENO: result: no" >&5
3874 echo "${ECHO_T}no" >&6
3875 fi
3876
3877 fi
3878 if test -z "$ac_cv_prog_CC"; then
3879   ac_ct_CC=$CC
3880   # Extract the first word of "gcc", so it can be a program name with args.
3881 set dummy gcc; ac_word=$2
3882 echo "$as_me:$LINENO: checking for $ac_word" >&5
3883 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3884 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3885   echo $ECHO_N "(cached) $ECHO_C" >&6
3886 else
3887   if test -n "$ac_ct_CC"; then
3888   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3889 else
3890 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3891 for as_dir in $PATH
3892 do
3893   IFS=$as_save_IFS
3894   test -z "$as_dir" && as_dir=.
3895   for ac_exec_ext in '' $ac_executable_extensions; do
3896   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3897     ac_cv_prog_ac_ct_CC="gcc"
3898     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3899     break 2
3900   fi
3901 done
3902 done
3903
3904 fi
3905 fi
3906 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3907 if test -n "$ac_ct_CC"; then
3908   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3909 echo "${ECHO_T}$ac_ct_CC" >&6
3910 else
3911   echo "$as_me:$LINENO: result: no" >&5
3912 echo "${ECHO_T}no" >&6
3913 fi
3914
3915   CC=$ac_ct_CC
3916 else
3917   CC="$ac_cv_prog_CC"
3918 fi
3919
3920 if test -z "$CC"; then
3921   if test -n "$ac_tool_prefix"; then
3922   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3923 set dummy ${ac_tool_prefix}cc; ac_word=$2
3924 echo "$as_me:$LINENO: checking for $ac_word" >&5
3925 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3926 if test "${ac_cv_prog_CC+set}" = set; then
3927   echo $ECHO_N "(cached) $ECHO_C" >&6
3928 else
3929   if test -n "$CC"; then
3930   ac_cv_prog_CC="$CC" # Let the user override the test.
3931 else
3932 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3933 for as_dir in $PATH
3934 do
3935   IFS=$as_save_IFS
3936   test -z "$as_dir" && as_dir=.
3937   for ac_exec_ext in '' $ac_executable_extensions; do
3938   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3939     ac_cv_prog_CC="${ac_tool_prefix}cc"
3940     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3941     break 2
3942   fi
3943 done
3944 done
3945
3946 fi
3947 fi
3948 CC=$ac_cv_prog_CC
3949 if test -n "$CC"; then
3950   echo "$as_me:$LINENO: result: $CC" >&5
3951 echo "${ECHO_T}$CC" >&6
3952 else
3953   echo "$as_me:$LINENO: result: no" >&5
3954 echo "${ECHO_T}no" >&6
3955 fi
3956
3957 fi
3958 if test -z "$ac_cv_prog_CC"; then
3959   ac_ct_CC=$CC
3960   # Extract the first word of "cc", so it can be a program name with args.
3961 set dummy cc; ac_word=$2
3962 echo "$as_me:$LINENO: checking for $ac_word" >&5
3963 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3964 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3965   echo $ECHO_N "(cached) $ECHO_C" >&6
3966 else
3967   if test -n "$ac_ct_CC"; then
3968   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3969 else
3970 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3971 for as_dir in $PATH
3972 do
3973   IFS=$as_save_IFS
3974   test -z "$as_dir" && as_dir=.
3975   for ac_exec_ext in '' $ac_executable_extensions; do
3976   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3977     ac_cv_prog_ac_ct_CC="cc"
3978     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3979     break 2
3980   fi
3981 done
3982 done
3983
3984 fi
3985 fi
3986 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3987 if test -n "$ac_ct_CC"; then
3988   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3989 echo "${ECHO_T}$ac_ct_CC" >&6
3990 else
3991   echo "$as_me:$LINENO: result: no" >&5
3992 echo "${ECHO_T}no" >&6
3993 fi
3994
3995   CC=$ac_ct_CC
3996 else
3997   CC="$ac_cv_prog_CC"
3998 fi
3999
4000 fi
4001 if test -z "$CC"; then
4002   # Extract the first word of "cc", so it can be a program name with args.
4003 set dummy cc; ac_word=$2
4004 echo "$as_me:$LINENO: checking for $ac_word" >&5
4005 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4006 if test "${ac_cv_prog_CC+set}" = set; then
4007   echo $ECHO_N "(cached) $ECHO_C" >&6
4008 else
4009   if test -n "$CC"; then
4010   ac_cv_prog_CC="$CC" # Let the user override the test.
4011 else
4012   ac_prog_rejected=no
4013 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4014 for as_dir in $PATH
4015 do
4016   IFS=$as_save_IFS
4017   test -z "$as_dir" && as_dir=.
4018   for ac_exec_ext in '' $ac_executable_extensions; do
4019   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4020     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4021        ac_prog_rejected=yes
4022        continue
4023      fi
4024     ac_cv_prog_CC="cc"
4025     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4026     break 2
4027   fi
4028 done
4029 done
4030
4031 if test $ac_prog_rejected = yes; then
4032   # We found a bogon in the path, so make sure we never use it.
4033   set dummy $ac_cv_prog_CC
4034   shift
4035   if test $# != 0; then
4036     # We chose a different compiler from the bogus one.
4037     # However, it has the same basename, so the bogon will be chosen
4038     # first if we set CC to just the basename; use the full file name.
4039     shift
4040     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4041   fi
4042 fi
4043 fi
4044 fi
4045 CC=$ac_cv_prog_CC
4046 if test -n "$CC"; then
4047   echo "$as_me:$LINENO: result: $CC" >&5
4048 echo "${ECHO_T}$CC" >&6
4049 else
4050   echo "$as_me:$LINENO: result: no" >&5
4051 echo "${ECHO_T}no" >&6
4052 fi
4053
4054 fi
4055 if test -z "$CC"; then
4056   if test -n "$ac_tool_prefix"; then
4057   for ac_prog in cl
4058   do
4059     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4060 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4061 echo "$as_me:$LINENO: checking for $ac_word" >&5
4062 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4063 if test "${ac_cv_prog_CC+set}" = set; then
4064   echo $ECHO_N "(cached) $ECHO_C" >&6
4065 else
4066   if test -n "$CC"; then
4067   ac_cv_prog_CC="$CC" # Let the user override the test.
4068 else
4069 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4070 for as_dir in $PATH
4071 do
4072   IFS=$as_save_IFS
4073   test -z "$as_dir" && as_dir=.
4074   for ac_exec_ext in '' $ac_executable_extensions; do
4075   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4076     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4077     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4078     break 2
4079   fi
4080 done
4081 done
4082
4083 fi
4084 fi
4085 CC=$ac_cv_prog_CC
4086 if test -n "$CC"; then
4087   echo "$as_me:$LINENO: result: $CC" >&5
4088 echo "${ECHO_T}$CC" >&6
4089 else
4090   echo "$as_me:$LINENO: result: no" >&5
4091 echo "${ECHO_T}no" >&6
4092 fi
4093
4094     test -n "$CC" && break
4095   done
4096 fi
4097 if test -z "$CC"; then
4098   ac_ct_CC=$CC
4099   for ac_prog in cl
4100 do
4101   # Extract the first word of "$ac_prog", so it can be a program name with args.
4102 set dummy $ac_prog; ac_word=$2
4103 echo "$as_me:$LINENO: checking for $ac_word" >&5
4104 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4105 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4106   echo $ECHO_N "(cached) $ECHO_C" >&6
4107 else
4108   if test -n "$ac_ct_CC"; then
4109   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4110 else
4111 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4112 for as_dir in $PATH
4113 do
4114   IFS=$as_save_IFS
4115   test -z "$as_dir" && as_dir=.
4116   for ac_exec_ext in '' $ac_executable_extensions; do
4117   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4118     ac_cv_prog_ac_ct_CC="$ac_prog"
4119     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4120     break 2
4121   fi
4122 done
4123 done
4124
4125 fi
4126 fi
4127 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4128 if test -n "$ac_ct_CC"; then
4129   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4130 echo "${ECHO_T}$ac_ct_CC" >&6
4131 else
4132   echo "$as_me:$LINENO: result: no" >&5
4133 echo "${ECHO_T}no" >&6
4134 fi
4135
4136   test -n "$ac_ct_CC" && break
4137 done
4138
4139   CC=$ac_ct_CC
4140 fi
4141
4142 fi
4143
4144
4145 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
4146 See \`config.log' for more details." >&5
4147 echo "$as_me: error: no acceptable C compiler found in \$PATH
4148 See \`config.log' for more details." >&2;}
4149    { (exit 1); exit 1; }; }
4150
4151 # Provide some information about the compiler.
4152 echo "$as_me:$LINENO:" \
4153      "checking for C compiler version" >&5
4154 ac_compiler=`set X $ac_compile; echo $2`
4155 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4156   (eval $ac_compiler --version </dev/null >&5) 2>&5
4157   ac_status=$?
4158   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4159   (exit $ac_status); }
4160 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4161   (eval $ac_compiler -v </dev/null >&5) 2>&5
4162   ac_status=$?
4163   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4164   (exit $ac_status); }
4165 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4166   (eval $ac_compiler -V </dev/null >&5) 2>&5
4167   ac_status=$?
4168   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4169   (exit $ac_status); }
4170
4171 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
4172 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
4173 if test "${ac_cv_c_compiler_gnu+set}" = set; then
4174   echo $ECHO_N "(cached) $ECHO_C" >&6
4175 else
4176   cat >conftest.$ac_ext <<_ACEOF
4177 /* confdefs.h.  */
4178 _ACEOF
4179 cat confdefs.h >>conftest.$ac_ext
4180 cat >>conftest.$ac_ext <<_ACEOF
4181 /* end confdefs.h.  */
4182
4183 int
4184 main ()
4185 {
4186 #ifndef __GNUC__
4187        choke me
4188 #endif
4189
4190   ;
4191   return 0;
4192 }
4193 _ACEOF
4194 rm -f conftest.$ac_objext
4195 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4196   (eval $ac_compile) 2>conftest.er1
4197   ac_status=$?
4198   grep -v '^ *+' conftest.er1 >conftest.err
4199   rm -f conftest.er1
4200   cat conftest.err >&5
4201   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4202   (exit $ac_status); } &&
4203          { ac_try='test -z "$ac_c_werror_flag"
4204                          || test ! -s conftest.err'
4205   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4206   (eval $ac_try) 2>&5
4207   ac_status=$?
4208   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4209   (exit $ac_status); }; } &&
4210          { ac_try='test -s conftest.$ac_objext'
4211   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4212   (eval $ac_try) 2>&5
4213   ac_status=$?
4214   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4215   (exit $ac_status); }; }; then
4216   ac_compiler_gnu=yes
4217 else
4218   echo "$as_me: failed program was:" >&5
4219 sed 's/^/| /' conftest.$ac_ext >&5
4220
4221 ac_compiler_gnu=no
4222 fi
4223 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4224 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4225
4226 fi
4227 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
4228 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
4229 GCC=`test $ac_compiler_gnu = yes && echo yes`
4230 ac_test_CFLAGS=${CFLAGS+set}
4231 ac_save_CFLAGS=$CFLAGS
4232 CFLAGS="-g"
4233 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
4234 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
4235 if test "${ac_cv_prog_cc_g+set}" = set; then
4236   echo $ECHO_N "(cached) $ECHO_C" >&6
4237 else
4238   cat >conftest.$ac_ext <<_ACEOF
4239 /* confdefs.h.  */
4240 _ACEOF
4241 cat confdefs.h >>conftest.$ac_ext
4242 cat >>conftest.$ac_ext <<_ACEOF
4243 /* end confdefs.h.  */
4244
4245 int
4246 main ()
4247 {
4248
4249   ;
4250   return 0;
4251 }
4252 _ACEOF
4253 rm -f conftest.$ac_objext
4254 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4255   (eval $ac_compile) 2>conftest.er1
4256   ac_status=$?
4257   grep -v '^ *+' conftest.er1 >conftest.err
4258   rm -f conftest.er1
4259   cat conftest.err >&5
4260   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4261   (exit $ac_status); } &&
4262          { ac_try='test -z "$ac_c_werror_flag"
4263                          || test ! -s conftest.err'
4264   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4265   (eval $ac_try) 2>&5
4266   ac_status=$?
4267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4268   (exit $ac_status); }; } &&
4269          { ac_try='test -s conftest.$ac_objext'
4270   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4271   (eval $ac_try) 2>&5
4272   ac_status=$?
4273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4274   (exit $ac_status); }; }; then
4275   ac_cv_prog_cc_g=yes
4276 else
4277   echo "$as_me: failed program was:" >&5
4278 sed 's/^/| /' conftest.$ac_ext >&5
4279
4280 ac_cv_prog_cc_g=no
4281 fi
4282 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4283 fi
4284 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4285 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
4286 if test "$ac_test_CFLAGS" = set; then
4287   CFLAGS=$ac_save_CFLAGS
4288 elif test $ac_cv_prog_cc_g = yes; then
4289   if test "$GCC" = yes; then
4290     CFLAGS="-g -O2"
4291   else
4292     CFLAGS="-g"
4293   fi
4294 else
4295   if test "$GCC" = yes; then
4296     CFLAGS="-O2"
4297   else
4298     CFLAGS=
4299   fi
4300 fi
4301 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
4302 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
4303 if test "${ac_cv_prog_cc_stdc+set}" = set; then
4304   echo $ECHO_N "(cached) $ECHO_C" >&6
4305 else
4306   ac_cv_prog_cc_stdc=no
4307 ac_save_CC=$CC
4308 cat >conftest.$ac_ext <<_ACEOF
4309 /* confdefs.h.  */
4310 _ACEOF
4311 cat confdefs.h >>conftest.$ac_ext
4312 cat >>conftest.$ac_ext <<_ACEOF
4313 /* end confdefs.h.  */
4314 #include <stdarg.h>
4315 #include <stdio.h>
4316 #include <sys/types.h>
4317 #include <sys/stat.h>
4318 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4319 struct buf { int x; };
4320 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4321 static char *e (p, i)
4322      char **p;
4323      int i;
4324 {
4325   return p[i];
4326 }
4327 static char *f (char * (*g) (char **, int), char **p, ...)
4328 {
4329   char *s;
4330   va_list v;
4331   va_start (v,p);
4332   s = g (p, va_arg (v,int));
4333   va_end (v);
4334   return s;
4335 }
4336
4337 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4338    function prototypes and stuff, but not '\xHH' hex character constants.
4339    These don't provoke an error unfortunately, instead are silently treated
4340    as 'x'.  The following induces an error, until -std1 is added to get
4341    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4342    array size at least.  It's necessary to write '\x00'==0 to get something
4343    that's true only with -std1.  */
4344 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4345
4346 int test (int i, double x);
4347 struct s1 {int (*f) (int a);};
4348 struct s2 {int (*f) (double a);};
4349 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4350 int argc;
4351 char **argv;
4352 int
4353 main ()
4354 {
4355 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4356   ;
4357   return 0;
4358 }
4359 _ACEOF
4360 # Don't try gcc -ansi; that turns off useful extensions and
4361 # breaks some systems' header files.
4362 # AIX                   -qlanglvl=ansi
4363 # Ultrix and OSF/1      -std1
4364 # HP-UX 10.20 and later -Ae
4365 # HP-UX older versions  -Aa -D_HPUX_SOURCE
4366 # SVR4                  -Xc -D__EXTENSIONS__
4367 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4368 do
4369   CC="$ac_save_CC $ac_arg"
4370   rm -f conftest.$ac_objext
4371 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4372   (eval $ac_compile) 2>conftest.er1
4373   ac_status=$?
4374   grep -v '^ *+' conftest.er1 >conftest.err
4375   rm -f conftest.er1
4376   cat conftest.err >&5
4377   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4378   (exit $ac_status); } &&
4379          { ac_try='test -z "$ac_c_werror_flag"
4380                          || test ! -s conftest.err'
4381   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4382   (eval $ac_try) 2>&5
4383   ac_status=$?
4384   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4385   (exit $ac_status); }; } &&
4386          { ac_try='test -s conftest.$ac_objext'
4387   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4388   (eval $ac_try) 2>&5
4389   ac_status=$?
4390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4391   (exit $ac_status); }; }; then
4392   ac_cv_prog_cc_stdc=$ac_arg
4393 break
4394 else
4395   echo "$as_me: failed program was:" >&5
4396 sed 's/^/| /' conftest.$ac_ext >&5
4397
4398 fi
4399 rm -f conftest.err conftest.$ac_objext
4400 done
4401 rm -f conftest.$ac_ext conftest.$ac_objext
4402 CC=$ac_save_CC
4403
4404 fi
4405
4406 case "x$ac_cv_prog_cc_stdc" in
4407   x|xno)
4408     echo "$as_me:$LINENO: result: none needed" >&5
4409 echo "${ECHO_T}none needed" >&6 ;;
4410   *)
4411     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
4412 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
4413     CC="$CC $ac_cv_prog_cc_stdc" ;;
4414 esac
4415
4416 # Some people use a C++ compiler to compile C.  Since we use `exit',
4417 # in C++ we need to declare it.  In case someone uses the same compiler
4418 # for both compiling C and C++ we need to have the C++ compiler decide
4419 # the declaration of exit, since it's the most demanding environment.
4420 cat >conftest.$ac_ext <<_ACEOF
4421 #ifndef __cplusplus
4422   choke me
4423 #endif
4424 _ACEOF
4425 rm -f conftest.$ac_objext
4426 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4427   (eval $ac_compile) 2>conftest.er1
4428   ac_status=$?
4429   grep -v '^ *+' conftest.er1 >conftest.err
4430   rm -f conftest.er1
4431   cat conftest.err >&5
4432   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4433   (exit $ac_status); } &&
4434          { ac_try='test -z "$ac_c_werror_flag"
4435                          || test ! -s conftest.err'
4436   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4437   (eval $ac_try) 2>&5
4438   ac_status=$?
4439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4440   (exit $ac_status); }; } &&
4441          { ac_try='test -s conftest.$ac_objext'
4442   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4443   (eval $ac_try) 2>&5
4444   ac_status=$?
4445   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4446   (exit $ac_status); }; }; then
4447   for ac_declaration in \
4448    '' \
4449    'extern "C" void std::exit (int) throw (); using std::exit;' \
4450    'extern "C" void std::exit (int); using std::exit;' \
4451    'extern "C" void exit (int) throw ();' \
4452    'extern "C" void exit (int);' \
4453    'void exit (int);'
4454 do
4455   cat >conftest.$ac_ext <<_ACEOF
4456 /* confdefs.h.  */
4457 _ACEOF
4458 cat confdefs.h >>conftest.$ac_ext
4459 cat >>conftest.$ac_ext <<_ACEOF
4460 /* end confdefs.h.  */
4461 $ac_declaration
4462 #include <stdlib.h>
4463 int
4464 main ()
4465 {
4466 exit (42);
4467   ;
4468   return 0;
4469 }
4470 _ACEOF
4471 rm -f conftest.$ac_objext
4472 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4473   (eval $ac_compile) 2>conftest.er1
4474   ac_status=$?
4475   grep -v '^ *+' conftest.er1 >conftest.err
4476   rm -f conftest.er1
4477   cat conftest.err >&5
4478   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4479   (exit $ac_status); } &&
4480          { ac_try='test -z "$ac_c_werror_flag"
4481                          || test ! -s conftest.err'
4482   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4483   (eval $ac_try) 2>&5
4484   ac_status=$?
4485   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4486   (exit $ac_status); }; } &&
4487          { ac_try='test -s conftest.$ac_objext'
4488   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4489   (eval $ac_try) 2>&5
4490   ac_status=$?
4491   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4492   (exit $ac_status); }; }; then
4493   :
4494 else
4495   echo "$as_me: failed program was:" >&5
4496 sed 's/^/| /' conftest.$ac_ext >&5
4497
4498 continue
4499 fi
4500 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4501   cat >conftest.$ac_ext <<_ACEOF
4502 /* confdefs.h.  */
4503 _ACEOF
4504 cat confdefs.h >>conftest.$ac_ext
4505 cat >>conftest.$ac_ext <<_ACEOF
4506 /* end confdefs.h.  */
4507 $ac_declaration
4508 int
4509 main ()
4510 {
4511 exit (42);
4512   ;
4513   return 0;
4514 }
4515 _ACEOF
4516 rm -f conftest.$ac_objext
4517 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4518   (eval $ac_compile) 2>conftest.er1
4519   ac_status=$?
4520   grep -v '^ *+' conftest.er1 >conftest.err
4521   rm -f conftest.er1
4522   cat conftest.err >&5
4523   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4524   (exit $ac_status); } &&
4525          { ac_try='test -z "$ac_c_werror_flag"
4526                          || test ! -s conftest.err'
4527   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4528   (eval $ac_try) 2>&5
4529   ac_status=$?
4530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4531   (exit $ac_status); }; } &&
4532          { ac_try='test -s conftest.$ac_objext'
4533   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4534   (eval $ac_try) 2>&5
4535   ac_status=$?
4536   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4537   (exit $ac_status); }; }; then
4538   break
4539 else
4540   echo "$as_me: failed program was:" >&5
4541 sed 's/^/| /' conftest.$ac_ext >&5
4542
4543 fi
4544 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4545 done
4546 rm -f conftest*
4547 if test -n "$ac_declaration"; then
4548   echo '#ifdef __cplusplus' >>confdefs.h
4549   echo $ac_declaration      >>confdefs.h
4550   echo '#endif'             >>confdefs.h
4551 fi
4552
4553 else
4554   echo "$as_me: failed program was:" >&5
4555 sed 's/^/| /' conftest.$ac_ext >&5
4556
4557 fi
4558 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4559 ac_ext=c
4560 ac_cpp='$CPP $CPPFLAGS'
4561 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4562 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4563 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4564
4565 depcc="$CC"   am_compiler_list=
4566
4567 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4568 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
4569 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
4570   echo $ECHO_N "(cached) $ECHO_C" >&6
4571 else
4572   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4573   # We make a subdir and do the tests there.  Otherwise we can end up
4574   # making bogus files that we don't know about and never remove.  For
4575   # instance it was reported that on HP-UX the gcc test will end up
4576   # making a dummy file named `D' -- because `-MD' means `put the output
4577   # in D'.
4578   mkdir conftest.dir
4579   # Copy depcomp to subdir because otherwise we won't find it if we're
4580   # using a relative directory.
4581   cp "$am_depcomp" conftest.dir
4582   cd conftest.dir
4583   # We will build objects and dependencies in a subdirectory because
4584   # it helps to detect inapplicable dependency modes.  For instance
4585   # both Tru64's cc and ICC support -MD to output dependencies as a
4586   # side effect of compilation, but ICC will put the dependencies in
4587   # the current directory while Tru64 will put them in the object
4588   # directory.
4589   mkdir sub
4590
4591   am_cv_CC_dependencies_compiler_type=none
4592   if test "$am_compiler_list" = ""; then
4593      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4594   fi
4595   for depmode in $am_compiler_list; do
4596     # Setup a source with many dependencies, because some compilers
4597     # like to wrap large dependency lists on column 80 (with \), and
4598     # we should not choose a depcomp mode which is confused by this.
4599     #
4600     # We need to recreate these files for each test, as the compiler may
4601     # overwrite some of them when testing with obscure command lines.
4602     # This happens at least with the AIX C compiler.
4603     : > sub/conftest.c
4604     for i in 1 2 3 4 5 6; do
4605       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4606       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4607       # Solaris 8's {/usr,}/bin/sh.
4608       touch sub/conftst$i.h
4609     done
4610     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4611
4612     case $depmode in
4613     nosideeffect)
4614       # after this tag, mechanisms are not by side-effect, so they'll
4615       # only be used when explicitly requested
4616       if test "x$enable_dependency_tracking" = xyes; then
4617         continue
4618       else
4619         break
4620       fi
4621       ;;
4622     none) break ;;
4623     esac
4624     # We check with `-c' and `-o' for the sake of the "dashmstdout"
4625     # mode.  It turns out that the SunPro C++ compiler does not properly
4626     # handle `-M -o', and we need to detect this.
4627     if depmode=$depmode \
4628        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4629        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4630        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4631          >/dev/null 2>conftest.err &&
4632        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4633        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4634        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4635       # icc doesn't choke on unknown options, it will just issue warnings
4636       # or remarks (even with -Werror).  So we grep stderr for any message
4637       # that says an option was ignored or not supported.
4638       # When given -MP, icc 7.0 and 7.1 complain thusly:
4639       #   icc: Command line warning: ignoring option '-M'; no argument required
4640       # The diagnosis changed in icc 8.0:
4641       #   icc: Command line remark: option '-MP' not supported
4642       if (grep 'ignoring option' conftest.err ||
4643           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4644         am_cv_CC_dependencies_compiler_type=$depmode
4645         break
4646       fi
4647     fi
4648   done
4649
4650   cd ..
4651   rm -rf conftest.dir
4652 else
4653   am_cv_CC_dependencies_compiler_type=none
4654 fi
4655
4656 fi
4657 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
4658 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
4659 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4660
4661
4662
4663 if
4664   test "x$enable_dependency_tracking" != xno \
4665   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4666   am__fastdepCC_TRUE=
4667   am__fastdepCC_FALSE='#'
4668 else
4669   am__fastdepCC_TRUE='#'
4670   am__fastdepCC_FALSE=
4671 fi
4672
4673
4674 if test "x$CC" != xcc; then
4675   echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
4676 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6
4677 else
4678   echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
4679 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6
4680 fi
4681 set dummy $CC; ac_cc=`echo $2 |
4682                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4683 if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\" = set"; then
4684   echo $ECHO_N "(cached) $ECHO_C" >&6
4685 else
4686   cat >conftest.$ac_ext <<_ACEOF
4687 /* confdefs.h.  */
4688 _ACEOF
4689 cat confdefs.h >>conftest.$ac_ext
4690 cat >>conftest.$ac_ext <<_ACEOF
4691 /* end confdefs.h.  */
4692
4693 int
4694 main ()
4695 {
4696
4697   ;
4698   return 0;
4699 }
4700 _ACEOF
4701 # Make sure it works both with $CC and with simple cc.
4702 # We do the test twice because some compilers refuse to overwrite an
4703 # existing .o file with -o, though they will create one.
4704 ac_try='$CC -c conftest.$ac_ext -o conftest.$ac_objext >&5'
4705 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4706   (eval $ac_try) 2>&5
4707   ac_status=$?
4708   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4709   (exit $ac_status); } &&
4710    test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4711   (eval $ac_try) 2>&5
4712   ac_status=$?
4713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4714   (exit $ac_status); };
4715 then
4716   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
4717   if test "x$CC" != xcc; then
4718     # Test first that cc exists at all.
4719     if { ac_try='cc -c conftest.$ac_ext >&5'
4720   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4721   (eval $ac_try) 2>&5
4722   ac_status=$?
4723   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4724   (exit $ac_status); }; }; then
4725       ac_try='cc -c conftest.$ac_ext -o conftest.$ac_objext >&5'
4726       if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4727   (eval $ac_try) 2>&5
4728   ac_status=$?
4729   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4730   (exit $ac_status); } &&
4731          test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4732   (eval $ac_try) 2>&5
4733   ac_status=$?
4734   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4735   (exit $ac_status); };
4736       then
4737         # cc works too.
4738         :
4739       else
4740         # cc exists but doesn't like -o.
4741         eval ac_cv_prog_cc_${ac_cc}_c_o=no
4742       fi
4743     fi
4744   fi
4745 else
4746   eval ac_cv_prog_cc_${ac_cc}_c_o=no
4747 fi
4748 rm -f conftest*
4749
4750 fi
4751 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
4752   echo "$as_me:$LINENO: result: yes" >&5
4753 echo "${ECHO_T}yes" >&6
4754 else
4755   echo "$as_me:$LINENO: result: no" >&5
4756 echo "${ECHO_T}no" >&6
4757
4758 cat >>confdefs.h <<\_ACEOF
4759 #define NO_MINUS_C_MINUS_O 1
4760 _ACEOF
4761
4762 fi
4763
4764 # FIXME: we rely on the cache variable name because
4765 # there is no other way.
4766 set dummy $CC
4767 ac_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4768 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
4769    # Losing compiler, so override with the script.
4770    # FIXME: It is wrong to rewrite CC.
4771    # But if we don't then we get into trouble of one sort or another.
4772    # A longer-term fix would be to have automake use am__CC in this case,
4773    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4774    CC="$am_aux_dir/compile $CC"
4775 fi
4776
4777
4778 # Find the posix library needed on INTERACTIVE UNIX (ISC)
4779 echo "$as_me:$LINENO: checking for library containing strerror" >&5
4780 echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
4781 if test "${ac_cv_search_strerror+set}" = set; then
4782   echo $ECHO_N "(cached) $ECHO_C" >&6
4783 else
4784   ac_func_search_save_LIBS=$LIBS
4785 ac_cv_search_strerror=no
4786 cat >conftest.$ac_ext <<_ACEOF
4787 /* confdefs.h.  */
4788 _ACEOF
4789 cat confdefs.h >>conftest.$ac_ext
4790 cat >>conftest.$ac_ext <<_ACEOF
4791 /* end confdefs.h.  */
4792
4793 /* Override any gcc2 internal prototype to avoid an error.  */
4794 #ifdef __cplusplus
4795 extern "C"
4796 #endif
4797 /* We use char because int might match the return type of a gcc2
4798    builtin and then its argument prototype would still apply.  */
4799 char strerror ();
4800 int
4801 main ()
4802 {
4803 strerror ();
4804   ;
4805   return 0;
4806 }
4807 _ACEOF
4808 rm -f conftest.$ac_objext conftest$ac_exeext
4809 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4810   (eval $ac_link) 2>conftest.er1
4811   ac_status=$?
4812   grep -v '^ *+' conftest.er1 >conftest.err
4813   rm -f conftest.er1
4814   cat conftest.err >&5
4815   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4816   (exit $ac_status); } &&
4817          { ac_try='test -z "$ac_c_werror_flag"
4818                          || test ! -s conftest.err'
4819   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4820   (eval $ac_try) 2>&5
4821   ac_status=$?
4822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4823   (exit $ac_status); }; } &&
4824          { ac_try='test -s conftest$ac_exeext'
4825   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4826   (eval $ac_try) 2>&5
4827   ac_status=$?
4828   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4829   (exit $ac_status); }; }; then
4830   ac_cv_search_strerror="none required"
4831 else
4832   echo "$as_me: failed program was:" >&5
4833 sed 's/^/| /' conftest.$ac_ext >&5
4834
4835 fi
4836 rm -f conftest.err conftest.$ac_objext \
4837       conftest$ac_exeext conftest.$ac_ext
4838 if test "$ac_cv_search_strerror" = no; then
4839   for ac_lib in cposix; do
4840     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
4841     cat >conftest.$ac_ext <<_ACEOF
4842 /* confdefs.h.  */
4843 _ACEOF
4844 cat confdefs.h >>conftest.$ac_ext
4845 cat >>conftest.$ac_ext <<_ACEOF
4846 /* end confdefs.h.  */
4847
4848 /* Override any gcc2 internal prototype to avoid an error.  */
4849 #ifdef __cplusplus
4850 extern "C"
4851 #endif
4852 /* We use char because int might match the return type of a gcc2
4853    builtin and then its argument prototype would still apply.  */
4854 char strerror ();
4855 int
4856 main ()
4857 {
4858 strerror ();
4859   ;
4860   return 0;
4861 }
4862 _ACEOF
4863 rm -f conftest.$ac_objext conftest$ac_exeext
4864 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4865   (eval $ac_link) 2>conftest.er1
4866   ac_status=$?
4867   grep -v '^ *+' conftest.er1 >conftest.err
4868   rm -f conftest.er1
4869   cat conftest.err >&5
4870   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4871   (exit $ac_status); } &&
4872          { ac_try='test -z "$ac_c_werror_flag"
4873                          || test ! -s conftest.err'
4874   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4875   (eval $ac_try) 2>&5
4876   ac_status=$?
4877   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4878   (exit $ac_status); }; } &&
4879          { ac_try='test -s conftest$ac_exeext'
4880   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4881   (eval $ac_try) 2>&5
4882   ac_status=$?
4883   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4884   (exit $ac_status); }; }; then
4885   ac_cv_search_strerror="-l$ac_lib"
4886 break
4887 else
4888   echo "$as_me: failed program was:" >&5
4889 sed 's/^/| /' conftest.$ac_ext >&5
4890
4891 fi
4892 rm -f conftest.err conftest.$ac_objext \
4893       conftest$ac_exeext conftest.$ac_ext
4894   done
4895 fi
4896 LIBS=$ac_func_search_save_LIBS
4897 fi
4898 echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
4899 echo "${ECHO_T}$ac_cv_search_strerror" >&6
4900 if test "$ac_cv_search_strerror" != no; then
4901   test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
4902
4903 fi
4904
4905
4906
4907 if test -n "$ac_tool_prefix"; then
4908   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4909 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4910 echo "$as_me:$LINENO: checking for $ac_word" >&5
4911 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4912 if test "${ac_cv_prog_RANLIB+set}" = set; then
4913   echo $ECHO_N "(cached) $ECHO_C" >&6
4914 else
4915   if test -n "$RANLIB"; then
4916   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4917 else
4918 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4919 for as_dir in $PATH
4920 do
4921   IFS=$as_save_IFS
4922   test -z "$as_dir" && as_dir=.
4923   for ac_exec_ext in '' $ac_executable_extensions; do
4924   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4925     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4926     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4927     break 2
4928   fi
4929 done
4930 done
4931
4932 fi
4933 fi
4934 RANLIB=$ac_cv_prog_RANLIB
4935 if test -n "$RANLIB"; then
4936   echo "$as_me:$LINENO: result: $RANLIB" >&5
4937 echo "${ECHO_T}$RANLIB" >&6
4938 else
4939   echo "$as_me:$LINENO: result: no" >&5
4940 echo "${ECHO_T}no" >&6
4941 fi
4942
4943 fi
4944 if test -z "$ac_cv_prog_RANLIB"; then
4945   ac_ct_RANLIB=$RANLIB
4946   # Extract the first word of "ranlib", so it can be a program name with args.
4947 set dummy ranlib; ac_word=$2
4948 echo "$as_me:$LINENO: checking for $ac_word" >&5
4949 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4950 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4951   echo $ECHO_N "(cached) $ECHO_C" >&6
4952 else
4953   if test -n "$ac_ct_RANLIB"; then
4954   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4955 else
4956 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4957 for as_dir in $PATH
4958 do
4959   IFS=$as_save_IFS
4960   test -z "$as_dir" && as_dir=.
4961   for ac_exec_ext in '' $ac_executable_extensions; do
4962   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4963     ac_cv_prog_ac_ct_RANLIB="ranlib"
4964     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4965     break 2
4966   fi
4967 done
4968 done
4969
4970   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4971 fi
4972 fi
4973 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4974 if test -n "$ac_ct_RANLIB"; then
4975   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4976 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4977 else
4978   echo "$as_me:$LINENO: result: no" >&5
4979 echo "${ECHO_T}no" >&6
4980 fi
4981
4982   RANLIB=$ac_ct_RANLIB
4983 else
4984   RANLIB="$ac_cv_prog_RANLIB"
4985 fi
4986
4987 echo "$as_me:$LINENO: checking whether ln -s works" >&5
4988 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4989 LN_S=$as_ln_s
4990 if test "$LN_S" = "ln -s"; then
4991   echo "$as_me:$LINENO: result: yes" >&5
4992 echo "${ECHO_T}yes" >&6
4993 else
4994   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4995 echo "${ECHO_T}no, using $LN_S" >&6
4996 fi
4997
4998 # Check whether --enable-largefile or --disable-largefile was given.
4999 if test "${enable_largefile+set}" = set; then
5000   enableval="$enable_largefile"
5001
5002 fi;
5003 if test "$enable_largefile" != no; then
5004
5005   echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
5006 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
5007 if test "${ac_cv_sys_largefile_CC+set}" = set; then
5008   echo $ECHO_N "(cached) $ECHO_C" >&6
5009 else
5010   ac_cv_sys_largefile_CC=no
5011      if test "$GCC" != yes; then
5012        ac_save_CC=$CC
5013        while :; do
5014          # IRIX 6.2 and later do not support large files by default,
5015          # so use the C compiler's -n32 option if that helps.
5016          cat >conftest.$ac_ext <<_ACEOF
5017 /* confdefs.h.  */
5018 _ACEOF
5019 cat confdefs.h >>conftest.$ac_ext
5020 cat >>conftest.$ac_ext <<_ACEOF
5021 /* end confdefs.h.  */
5022 #include <sys/types.h>
5023  /* Check that off_t can represent 2**63 - 1 correctly.
5024     We can't simply define LARGE_OFF_T to be 9223372036854775807,
5025     since some C++ compilers masquerading as C compilers
5026     incorrectly reject 9223372036854775807.  */
5027 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5028   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5029                        && LARGE_OFF_T % 2147483647 == 1)
5030                       ? 1 : -1];
5031 int
5032 main ()
5033 {
5034
5035   ;
5036   return 0;
5037 }
5038 _ACEOF
5039          rm -f conftest.$ac_objext
5040 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5041   (eval $ac_compile) 2>conftest.er1
5042   ac_status=$?
5043   grep -v '^ *+' conftest.er1 >conftest.err
5044   rm -f conftest.er1
5045   cat conftest.err >&5
5046   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5047   (exit $ac_status); } &&
5048          { ac_try='test -z "$ac_c_werror_flag"
5049                          || test ! -s conftest.err'
5050   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5051   (eval $ac_try) 2>&5
5052   ac_status=$?
5053   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5054   (exit $ac_status); }; } &&
5055          { ac_try='test -s conftest.$ac_objext'
5056   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5057   (eval $ac_try) 2>&5
5058   ac_status=$?
5059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5060   (exit $ac_status); }; }; then
5061   break
5062 else
5063   echo "$as_me: failed program was:" >&5
5064 sed 's/^/| /' conftest.$ac_ext >&5
5065
5066 fi
5067 rm -f conftest.err conftest.$ac_objext
5068          CC="$CC -n32"
5069          rm -f conftest.$ac_objext
5070 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5071   (eval $ac_compile) 2>conftest.er1
5072   ac_status=$?
5073   grep -v '^ *+' conftest.er1 >conftest.err
5074   rm -f conftest.er1
5075   cat conftest.err >&5
5076   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5077   (exit $ac_status); } &&
5078          { ac_try='test -z "$ac_c_werror_flag"
5079                          || test ! -s conftest.err'
5080   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5081   (eval $ac_try) 2>&5
5082   ac_status=$?
5083   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5084   (exit $ac_status); }; } &&
5085          { ac_try='test -s conftest.$ac_objext'
5086   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5087   (eval $ac_try) 2>&5
5088   ac_status=$?
5089   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5090   (exit $ac_status); }; }; then
5091   ac_cv_sys_largefile_CC=' -n32'; break
5092 else
5093   echo "$as_me: failed program was:" >&5
5094 sed 's/^/| /' conftest.$ac_ext >&5
5095
5096 fi
5097 rm -f conftest.err conftest.$ac_objext
5098          break
5099        done
5100        CC=$ac_save_CC
5101        rm -f conftest.$ac_ext
5102     fi
5103 fi
5104 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
5105 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
5106   if test "$ac_cv_sys_largefile_CC" != no; then
5107     CC=$CC$ac_cv_sys_largefile_CC
5108   fi
5109
5110   echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5111 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
5112 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
5113   echo $ECHO_N "(cached) $ECHO_C" >&6
5114 else
5115   while :; do
5116   ac_cv_sys_file_offset_bits=no
5117   cat >conftest.$ac_ext <<_ACEOF
5118 /* confdefs.h.  */
5119 _ACEOF
5120 cat confdefs.h >>conftest.$ac_ext
5121 cat >>conftest.$ac_ext <<_ACEOF
5122 /* end confdefs.h.  */
5123 #include <sys/types.h>
5124  /* Check that off_t can represent 2**63 - 1 correctly.
5125     We can't simply define LARGE_OFF_T to be 9223372036854775807,
5126     since some C++ compilers masquerading as C compilers
5127     incorrectly reject 9223372036854775807.  */
5128 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5129   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5130                        && LARGE_OFF_T % 2147483647 == 1)
5131                       ? 1 : -1];
5132 int
5133 main ()
5134 {
5135
5136   ;
5137   return 0;
5138 }
5139 _ACEOF
5140 rm -f conftest.$ac_objext
5141 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5142   (eval $ac_compile) 2>conftest.er1
5143   ac_status=$?
5144   grep -v '^ *+' conftest.er1 >conftest.err
5145   rm -f conftest.er1
5146   cat conftest.err >&5
5147   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5148   (exit $ac_status); } &&
5149          { ac_try='test -z "$ac_c_werror_flag"
5150                          || test ! -s conftest.err'
5151   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5152   (eval $ac_try) 2>&5
5153   ac_status=$?
5154   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5155   (exit $ac_status); }; } &&
5156          { ac_try='test -s conftest.$ac_objext'
5157   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5158   (eval $ac_try) 2>&5
5159   ac_status=$?
5160   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5161   (exit $ac_status); }; }; then
5162   break
5163 else
5164   echo "$as_me: failed program was:" >&5
5165 sed 's/^/| /' conftest.$ac_ext >&5
5166
5167 fi
5168 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5169   cat >conftest.$ac_ext <<_ACEOF
5170 /* confdefs.h.  */
5171 _ACEOF
5172 cat confdefs.h >>conftest.$ac_ext
5173 cat >>conftest.$ac_ext <<_ACEOF
5174 /* end confdefs.h.  */
5175 #define _FILE_OFFSET_BITS 64
5176 #include <sys/types.h>
5177  /* Check that off_t can represent 2**63 - 1 correctly.
5178     We can't simply define LARGE_OFF_T to be 9223372036854775807,
5179     since some C++ compilers masquerading as C compilers
5180     incorrectly reject 9223372036854775807.  */
5181 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5182   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5183                        && LARGE_OFF_T % 2147483647 == 1)
5184                       ? 1 : -1];
5185 int
5186 main ()
5187 {
5188
5189   ;
5190   return 0;
5191 }
5192 _ACEOF
5193 rm -f conftest.$ac_objext
5194 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5195   (eval $ac_compile) 2>conftest.er1
5196   ac_status=$?
5197   grep -v '^ *+' conftest.er1 >conftest.err
5198   rm -f conftest.er1
5199   cat conftest.err >&5
5200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5201   (exit $ac_status); } &&
5202          { ac_try='test -z "$ac_c_werror_flag"
5203                          || test ! -s conftest.err'
5204   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5205   (eval $ac_try) 2>&5
5206   ac_status=$?
5207   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5208   (exit $ac_status); }; } &&
5209          { ac_try='test -s conftest.$ac_objext'
5210   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5211   (eval $ac_try) 2>&5
5212   ac_status=$?
5213   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5214   (exit $ac_status); }; }; then
5215   ac_cv_sys_file_offset_bits=64; break
5216 else
5217   echo "$as_me: failed program was:" >&5
5218 sed 's/^/| /' conftest.$ac_ext >&5
5219
5220 fi
5221 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5222   break
5223 done
5224 fi
5225 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
5226 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
5227 if test "$ac_cv_sys_file_offset_bits" != no; then
5228
5229 cat >>confdefs.h <<_ACEOF
5230 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5231 _ACEOF
5232
5233 fi
5234 rm -f conftest*
5235   echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
5236 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
5237 if test "${ac_cv_sys_large_files+set}" = set; then
5238   echo $ECHO_N "(cached) $ECHO_C" >&6
5239 else
5240   while :; do
5241   ac_cv_sys_large_files=no
5242   cat >conftest.$ac_ext <<_ACEOF
5243 /* confdefs.h.  */
5244 _ACEOF
5245 cat confdefs.h >>conftest.$ac_ext
5246 cat >>conftest.$ac_ext <<_ACEOF
5247 /* end confdefs.h.  */
5248 #include <sys/types.h>
5249  /* Check that off_t can represent 2**63 - 1 correctly.
5250     We can't simply define LARGE_OFF_T to be 9223372036854775807,
5251     since some C++ compilers masquerading as C compilers
5252     incorrectly reject 9223372036854775807.  */
5253 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5254   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5255                        && LARGE_OFF_T % 2147483647 == 1)
5256                       ? 1 : -1];
5257 int
5258 main ()
5259 {
5260
5261   ;
5262   return 0;
5263 }
5264 _ACEOF
5265 rm -f conftest.$ac_objext
5266 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5267   (eval $ac_compile) 2>conftest.er1
5268   ac_status=$?
5269   grep -v '^ *+' conftest.er1 >conftest.err
5270   rm -f conftest.er1
5271   cat conftest.err >&5
5272   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5273   (exit $ac_status); } &&
5274          { ac_try='test -z "$ac_c_werror_flag"
5275                          || test ! -s conftest.err'
5276   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5277   (eval $ac_try) 2>&5
5278   ac_status=$?
5279   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5280   (exit $ac_status); }; } &&
5281          { ac_try='test -s conftest.$ac_objext'
5282   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5283   (eval $ac_try) 2>&5
5284   ac_status=$?
5285   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5286   (exit $ac_status); }; }; then
5287   break
5288 else
5289   echo "$as_me: failed program was:" >&5
5290 sed 's/^/| /' conftest.$ac_ext >&5
5291
5292 fi
5293 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5294   cat >conftest.$ac_ext <<_ACEOF
5295 /* confdefs.h.  */
5296 _ACEOF
5297 cat confdefs.h >>conftest.$ac_ext
5298 cat >>conftest.$ac_ext <<_ACEOF
5299 /* end confdefs.h.  */
5300 #define _LARGE_FILES 1
5301 #include <sys/types.h>
5302  /* Check that off_t can represent 2**63 - 1 correctly.
5303     We can't simply define LARGE_OFF_T to be 9223372036854775807,
5304     since some C++ compilers masquerading as C compilers
5305     incorrectly reject 9223372036854775807.  */
5306 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5307   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5308                        && LARGE_OFF_T % 2147483647 == 1)
5309                       ? 1 : -1];
5310 int
5311 main ()
5312 {
5313
5314   ;
5315   return 0;
5316 }
5317 _ACEOF
5318 rm -f conftest.$ac_objext
5319 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5320   (eval $ac_compile) 2>conftest.er1
5321   ac_status=$?
5322   grep -v '^ *+' conftest.er1 >conftest.err
5323   rm -f conftest.er1
5324   cat conftest.err >&5
5325   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5326   (exit $ac_status); } &&
5327          { ac_try='test -z "$ac_c_werror_flag"
5328                          || test ! -s conftest.err'
5329   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5330   (eval $ac_try) 2>&5
5331   ac_status=$?
5332   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5333   (exit $ac_status); }; } &&
5334          { ac_try='test -s conftest.$ac_objext'
5335   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5336   (eval $ac_try) 2>&5
5337   ac_status=$?
5338   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5339   (exit $ac_status); }; }; then
5340   ac_cv_sys_large_files=1; break
5341 else
5342   echo "$as_me: failed program was:" >&5
5343 sed 's/^/| /' conftest.$ac_ext >&5
5344
5345 fi
5346 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5347   break
5348 done
5349 fi
5350 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
5351 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
5352 if test "$ac_cv_sys_large_files" != no; then
5353
5354 cat >>confdefs.h <<_ACEOF
5355 #define _LARGE_FILES $ac_cv_sys_large_files
5356 _ACEOF
5357
5358 fi
5359 rm -f conftest*
5360 fi
5361
5362
5363
5364 # Extract the first word of "perl", so it can be a program name with args.
5365 set dummy perl; ac_word=$2
5366 echo "$as_me:$LINENO: checking for $ac_word" >&5
5367 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5368 if test "${ac_cv_path_PERL+set}" = set; then
5369   echo $ECHO_N "(cached) $ECHO_C" >&6
5370 else
5371   case $PERL in
5372   [\\/]* | ?:[\\/]*)
5373   ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
5374   ;;
5375   *)
5376   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5377 for as_dir in $PATH
5378 do
5379   IFS=$as_save_IFS
5380   test -z "$as_dir" && as_dir=.
5381   for ac_exec_ext in '' $ac_executable_extensions; do
5382   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5383     ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
5384     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5385     break 2
5386   fi
5387 done
5388 done
5389
5390   test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="no"
5391   ;;
5392 esac
5393 fi
5394 PERL=$ac_cv_path_PERL
5395
5396 if test -n "$PERL"; then
5397   echo "$as_me:$LINENO: result: $PERL" >&5
5398 echo "${ECHO_T}$PERL" >&6
5399 else
5400   echo "$as_me:$LINENO: result: no" >&5
5401 echo "${ECHO_T}no" >&6
5402 fi
5403
5404 # Extract the first word of "csh", so it can be a program name with args.
5405 set dummy csh; ac_word=$2
5406 echo "$as_me:$LINENO: checking for $ac_word" >&5
5407 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5408 if test "${ac_cv_path_CSH+set}" = set; then
5409   echo $ECHO_N "(cached) $ECHO_C" >&6
5410 else
5411   case $CSH in
5412   [\\/]* | ?:[\\/]*)
5413   ac_cv_path_CSH="$CSH" # Let the user override the test with a path.
5414   ;;
5415   *)
5416   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5417 for as_dir in $PATH
5418 do
5419   IFS=$as_save_IFS
5420   test -z "$as_dir" && as_dir=.
5421   for ac_exec_ext in '' $ac_executable_extensions; do
5422   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5423     ac_cv_path_CSH="$as_dir/$ac_word$ac_exec_ext"
5424     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5425     break 2
5426   fi
5427 done
5428 done
5429
5430   test -z "$ac_cv_path_CSH" && ac_cv_path_CSH="no"
5431   ;;
5432 esac
5433 fi
5434 CSH=$ac_cv_path_CSH
5435
5436 if test -n "$CSH"; then
5437   echo "$as_me:$LINENO: result: $CSH" >&5
5438 echo "${ECHO_T}$CSH" >&6
5439 else
5440   echo "$as_me:$LINENO: result: no" >&5
5441 echo "${ECHO_T}no" >&6
5442 fi
5443
5444 # for contrib/rcs2log.sh & src/cvsbug.in.
5445 # Extract the first word of "mktemp", so it can be a program name with args.
5446 set dummy mktemp; ac_word=$2
5447 echo "$as_me:$LINENO: checking for $ac_word" >&5
5448 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5449 if test "${ac_cv_path_MKTEMP+set}" = set; then
5450   echo $ECHO_N "(cached) $ECHO_C" >&6
5451 else
5452   case $MKTEMP in
5453   [\\/]* | ?:[\\/]*)
5454   ac_cv_path_MKTEMP="$MKTEMP" # Let the user override the test with a path.
5455   ;;
5456   *)
5457   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5458 for as_dir in $PATH
5459 do
5460   IFS=$as_save_IFS
5461   test -z "$as_dir" && as_dir=.
5462   for ac_exec_ext in '' $ac_executable_extensions; do
5463   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5464     ac_cv_path_MKTEMP="$as_dir/$ac_word$ac_exec_ext"
5465     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5466     break 2
5467   fi
5468 done
5469 done
5470
5471   test -z "$ac_cv_path_MKTEMP" && ac_cv_path_MKTEMP="mktemp"
5472   ;;
5473 esac
5474 fi
5475 MKTEMP=$ac_cv_path_MKTEMP
5476
5477 if test -n "$MKTEMP"; then
5478   echo "$as_me:$LINENO: result: $MKTEMP" >&5
5479 echo "${ECHO_T}$MKTEMP" >&6
5480 else
5481   echo "$as_me:$LINENO: result: no" >&5
5482 echo "${ECHO_T}no" >&6
5483 fi
5484
5485 if test x"$MKTEMP" = xmktemp; then
5486         MKTEMP_SH_FUNCTION=$srcdir/mktemp.sh
5487 else
5488         MKTEMP_SH_FUNCTION=/dev/null
5489 fi
5490
5491 # for src/cvsbug.in
5492 # Extract the first word of "sendmail", so it can be a program name with args.
5493 set dummy sendmail; ac_word=$2
5494 echo "$as_me:$LINENO: checking for $ac_word" >&5
5495 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5496 if test "${ac_cv_path_SENDMAIL+set}" = set; then
5497   echo $ECHO_N "(cached) $ECHO_C" >&6
5498 else
5499   case $SENDMAIL in
5500   [\\/]* | ?:[\\/]*)
5501   ac_cv_path_SENDMAIL="$SENDMAIL" # Let the user override the test with a path.
5502   ;;
5503   *)
5504   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5505 as_dummy="$PATH:/usr/sbin:/usr/lib"
5506 for as_dir in $as_dummy
5507 do
5508   IFS=$as_save_IFS
5509   test -z "$as_dir" && as_dir=.
5510   for ac_exec_ext in '' $ac_executable_extensions; do
5511   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5512     ac_cv_path_SENDMAIL="$as_dir/$ac_word$ac_exec_ext"
5513     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5514     break 2
5515   fi
5516 done
5517 done
5518
5519   test -z "$ac_cv_path_SENDMAIL" && ac_cv_path_SENDMAIL="no"
5520   ;;
5521 esac
5522 fi
5523 SENDMAIL=$ac_cv_path_SENDMAIL
5524
5525 if test -n "$SENDMAIL"; then
5526   echo "$as_me:$LINENO: result: $SENDMAIL" >&5
5527 echo "${ECHO_T}$SENDMAIL" >&6
5528 else
5529   echo "$as_me:$LINENO: result: no" >&5
5530 echo "${ECHO_T}no" >&6
5531 fi
5532
5533 # For diff/util.c
5534 # Extract the first word of "pr", so it can be a program name with args.
5535 set dummy pr; ac_word=$2
5536 echo "$as_me:$LINENO: checking for $ac_word" >&5
5537 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5538 if test "${ac_cv_path_PR+set}" = set; then
5539   echo $ECHO_N "(cached) $ECHO_C" >&6
5540 else
5541   case $PR in
5542   [\\/]* | ?:[\\/]*)
5543   ac_cv_path_PR="$PR" # Let the user override the test with a path.
5544   ;;
5545   *)
5546   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5547 for as_dir in $PATH
5548 do
5549   IFS=$as_save_IFS
5550   test -z "$as_dir" && as_dir=.
5551   for ac_exec_ext in '' $ac_executable_extensions; do
5552   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5553     ac_cv_path_PR="$as_dir/$ac_word$ac_exec_ext"
5554     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5555     break 2
5556   fi
5557 done
5558 done
5559
5560   test -z "$ac_cv_path_PR" && ac_cv_path_PR="no"
5561   ;;
5562 esac
5563 fi
5564 PR=$ac_cv_path_PR
5565
5566 if test -n "$PR"; then
5567   echo "$as_me:$LINENO: result: $PR" >&5
5568 echo "${ECHO_T}$PR" >&6
5569 else
5570   echo "$as_me:$LINENO: result: no" >&5
5571 echo "${ECHO_T}no" >&6
5572 fi
5573
5574 if test x"$PR" != xno; then
5575
5576 cat >>confdefs.h <<_ACEOF
5577 #define PR_PROGRAM "$PR"
5578 _ACEOF
5579
5580 fi
5581
5582 missing_dir=`cd $ac_aux_dir && pwd`
5583 glocs="$PATH:/usr/local/bin:/usr/contrib/bin:/usr/gnu/bin:/local/bin:/local/gnu/bin:/gnu/bin"
5584 for ac_prog in groff roff
5585 do
5586   # Extract the first word of "$ac_prog", so it can be a program name with args.
5587 set dummy $ac_prog; ac_word=$2
5588 echo "$as_me:$LINENO: checking for $ac_word" >&5
5589 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5590 if test "${ac_cv_path_ROFF+set}" = set; then
5591   echo $ECHO_N "(cached) $ECHO_C" >&6
5592 else
5593   case $ROFF in
5594   [\\/]* | ?:[\\/]*)
5595   ac_cv_path_ROFF="$ROFF" # Let the user override the test with a path.
5596   ;;
5597   *)
5598   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5599 for as_dir in $glocs
5600 do
5601   IFS=$as_save_IFS
5602   test -z "$as_dir" && as_dir=.
5603   for ac_exec_ext in '' $ac_executable_extensions; do
5604   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5605     ac_cv_path_ROFF="$as_dir/$ac_word$ac_exec_ext"
5606     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5607     break 2
5608   fi
5609 done
5610 done
5611
5612   ;;
5613 esac
5614 fi
5615 ROFF=$ac_cv_path_ROFF
5616
5617 if test -n "$ROFF"; then
5618   echo "$as_me:$LINENO: result: $ROFF" >&5
5619 echo "${ECHO_T}$ROFF" >&6
5620 else
5621   echo "$as_me:$LINENO: result: no" >&5
5622 echo "${ECHO_T}no" >&6
5623 fi
5624
5625   test -n "$ROFF" && break
5626 done
5627 test -n "$ROFF" || ROFF="$missing_dir/missing roff"
5628
5629 # Extract the first word of "ps2pdf", so it can be a program name with args.
5630 set dummy ps2pdf; ac_word=$2
5631 echo "$as_me:$LINENO: checking for $ac_word" >&5
5632 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5633 if test "${ac_cv_path_PS2PDF+set}" = set; then
5634   echo $ECHO_N "(cached) $ECHO_C" >&6
5635 else
5636   case $PS2PDF in
5637   [\\/]* | ?:[\\/]*)
5638   ac_cv_path_PS2PDF="$PS2PDF" # Let the user override the test with a path.
5639   ;;
5640   *)
5641   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5642 for as_dir in $PATH
5643 do
5644   IFS=$as_save_IFS
5645   test -z "$as_dir" && as_dir=.
5646   for ac_exec_ext in '' $ac_executable_extensions; do
5647   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5648     ac_cv_path_PS2PDF="$as_dir/$ac_word$ac_exec_ext"
5649     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5650     break 2
5651   fi
5652 done
5653 done
5654
5655   test -z "$ac_cv_path_PS2PDF" && ac_cv_path_PS2PDF="$missing_dir/missing ps2pdf"
5656   ;;
5657 esac
5658 fi
5659 PS2PDF=$ac_cv_path_PS2PDF
5660
5661 if test -n "$PS2PDF"; then
5662   echo "$as_me:$LINENO: result: $PS2PDF" >&5
5663 echo "${ECHO_T}$PS2PDF" >&6
5664 else
5665   echo "$as_me:$LINENO: result: no" >&5
5666 echo "${ECHO_T}no" >&6
5667 fi
5668
5669 # Extract the first word of "texi2dvi", so it can be a program name with args.
5670 set dummy texi2dvi; ac_word=$2
5671 echo "$as_me:$LINENO: checking for $ac_word" >&5
5672 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5673 if test "${ac_cv_path_TEXI2DVI+set}" = set; then
5674   echo $ECHO_N "(cached) $ECHO_C" >&6
5675 else
5676   case $TEXI2DVI in
5677   [\\/]* | ?:[\\/]*)
5678   ac_cv_path_TEXI2DVI="$TEXI2DVI" # Let the user override the test with a path.
5679   ;;
5680   *)
5681   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5682 for as_dir in $PATH
5683 do
5684   IFS=$as_save_IFS
5685   test -z "$as_dir" && as_dir=.
5686   for ac_exec_ext in '' $ac_executable_extensions; do
5687   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5688     ac_cv_path_TEXI2DVI="$as_dir/$ac_word$ac_exec_ext"
5689     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5690     break 2
5691   fi
5692 done
5693 done
5694
5695   test -z "$ac_cv_path_TEXI2DVI" && ac_cv_path_TEXI2DVI="$missing_dir/missing texi2dvi"
5696   ;;
5697 esac
5698 fi
5699 TEXI2DVI=$ac_cv_path_TEXI2DVI
5700
5701 if test -n "$TEXI2DVI"; then
5702   echo "$as_me:$LINENO: result: $TEXI2DVI" >&5
5703 echo "${ECHO_T}$TEXI2DVI" >&6
5704 else
5705   echo "$as_me:$LINENO: result: no" >&5
5706 echo "${ECHO_T}no" >&6
5707 fi
5708
5709
5710 echo "$as_me:$LINENO: checking whether #! works in shell scripts" >&5
5711 echo $ECHO_N "checking whether #! works in shell scripts... $ECHO_C" >&6
5712 if test "${ac_cv_sys_interpreter+set}" = set; then
5713   echo $ECHO_N "(cached) $ECHO_C" >&6
5714 else
5715   echo '#! /bin/cat
5716 exit 69
5717 ' >conftest
5718 chmod u+x conftest
5719 (SHELL=/bin/sh; export SHELL; ./conftest >/dev/null)
5720 if test $? -ne 69; then
5721    ac_cv_sys_interpreter=yes
5722 else
5723    ac_cv_sys_interpreter=no
5724 fi
5725 rm -f conftest
5726 fi
5727 echo "$as_me:$LINENO: result: $ac_cv_sys_interpreter" >&5
5728 echo "${ECHO_T}$ac_cv_sys_interpreter" >&6
5729 interpval=$ac_cv_sys_interpreter
5730
5731 if test X"$ac_cv_sys_interpreter" != X"yes" ; then
5732   # silly trick to avoid problems in AC macros...
5733   ac_msg='perl scripts using #! may not be invoked properly'
5734   { echo "$as_me:$LINENO: WARNING: $ac_msg" >&5
5735 echo "$as_me: WARNING: $ac_msg" >&2;}
5736 fi
5737
5738 # BSD's logo is a devil for a reason, hey?
5739 echo "$as_me:$LINENO: checking for BSD VPATH bug in make" >&5
5740 echo $ECHO_N "checking for BSD VPATH bug in make... $ECHO_C" >&6
5741 if test "${ccvs_cv_bsd_make_vpath_bug+set}" = set; then
5742   echo $ECHO_N "(cached) $ECHO_C" >&6
5743 else
5744   if test ! -d ac_test_dir ; then
5745         { ac_try='mkdir ac_test_dir'
5746   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5747   (eval $ac_try) 2>&5
5748   ac_status=$?
5749   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5750   (exit $ac_status); }; }
5751 fi
5752 cat >conftestmake <<EOF
5753 VPATH = ac_test_dir
5754 ac_test_target: ac_test_dep
5755         echo BSD VPATH bug present >&2
5756 ac_test_dep: ac_test_dep_dep
5757 EOF
5758 touch ac_test_dir/ac_test_dep_dep
5759 touch ac_test_dir/ac_test_dep
5760 touch ac_test_target
5761 # Don't know why, but the following test doesn't work under FreeBSD 4.2
5762 # without this sleep command
5763 sleep 1
5764 if { ac_try='make -f conftestmake 2>&1 >/dev/null |grep ^BSD\ VPATH\ bug\ present\$ >/dev/null'
5765   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5766   (eval $ac_try) 2>&5
5767   ac_status=$?
5768   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5769   (exit $ac_status); }; } ; then
5770         ccvs_cv_bsd_make_vpath_bug=yes
5771 else
5772         ccvs_cv_bsd_make_vpath_bug=no
5773 fi
5774 { ac_try='rm -rf ac_test_dir ac_test_target conftestmake'
5775   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5776   (eval $ac_try) 2>&5
5777   ac_status=$?
5778   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5779   (exit $ac_status); }; }
5780 fi
5781 echo "$as_me:$LINENO: result: $ccvs_cv_bsd_make_vpath_bug" >&5
5782 echo "${ECHO_T}$ccvs_cv_bsd_make_vpath_bug" >&6
5783 # We also don't need to worry about the bug when $srcdir = $builddir
5784
5785
5786 if \
5787                 test $ccvs_cv_bsd_make_vpath_bug = no \
5788                 || test $srcdir = .; then
5789   MAKE_TARGETS_IN_VPATH_TRUE=
5790   MAKE_TARGETS_IN_VPATH_FALSE='#'
5791 else
5792   MAKE_TARGETS_IN_VPATH_TRUE='#'
5793   MAKE_TARGETS_IN_VPATH_FALSE=
5794 fi
5795
5796
5797
5798
5799
5800
5801
5802 ac_header_dirent=no
5803 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
5804   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
5805 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
5806 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
5807 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5808   echo $ECHO_N "(cached) $ECHO_C" >&6
5809 else
5810   cat >conftest.$ac_ext <<_ACEOF
5811 /* confdefs.h.  */
5812 _ACEOF
5813 cat confdefs.h >>conftest.$ac_ext
5814 cat >>conftest.$ac_ext <<_ACEOF
5815 /* end confdefs.h.  */
5816 #include <sys/types.h>
5817 #include <$ac_hdr>
5818
5819 int
5820 main ()
5821 {
5822 if ((DIR *) 0)
5823 return 0;
5824   ;
5825   return 0;
5826 }
5827 _ACEOF
5828 rm -f conftest.$ac_objext
5829 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5830   (eval $ac_compile) 2>conftest.er1
5831   ac_status=$?
5832   grep -v '^ *+' conftest.er1 >conftest.err
5833   rm -f conftest.er1
5834   cat conftest.err >&5
5835   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5836   (exit $ac_status); } &&
5837          { ac_try='test -z "$ac_c_werror_flag"
5838                          || test ! -s conftest.err'
5839   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5840   (eval $ac_try) 2>&5
5841   ac_status=$?
5842   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5843   (exit $ac_status); }; } &&
5844          { ac_try='test -s conftest.$ac_objext'
5845   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5846   (eval $ac_try) 2>&5
5847   ac_status=$?
5848   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5849   (exit $ac_status); }; }; then
5850   eval "$as_ac_Header=yes"
5851 else
5852   echo "$as_me: failed program was:" >&5
5853 sed 's/^/| /' conftest.$ac_ext >&5
5854
5855 eval "$as_ac_Header=no"
5856 fi
5857 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5858 fi
5859 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5860 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5861 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5862   cat >>confdefs.h <<_ACEOF
5863 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
5864 _ACEOF
5865
5866 ac_header_dirent=$ac_hdr; break
5867 fi
5868
5869 done
5870 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
5871 if test $ac_header_dirent = dirent.h; then
5872   echo "$as_me:$LINENO: checking for library containing opendir" >&5
5873 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
5874 if test "${ac_cv_search_opendir+set}" = set; then
5875   echo $ECHO_N "(cached) $ECHO_C" >&6
5876 else
5877   ac_func_search_save_LIBS=$LIBS
5878 ac_cv_search_opendir=no
5879 cat >conftest.$ac_ext <<_ACEOF
5880 /* confdefs.h.  */
5881 _ACEOF
5882 cat confdefs.h >>conftest.$ac_ext
5883 cat >>conftest.$ac_ext <<_ACEOF
5884 /* end confdefs.h.  */
5885
5886 /* Override any gcc2 internal prototype to avoid an error.  */
5887 #ifdef __cplusplus
5888 extern "C"
5889 #endif
5890 /* We use char because int might match the return type of a gcc2
5891    builtin and then its argument prototype would still apply.  */
5892 char opendir ();
5893 int
5894 main ()
5895 {
5896 opendir ();
5897   ;
5898   return 0;
5899 }
5900 _ACEOF
5901 rm -f conftest.$ac_objext conftest$ac_exeext
5902 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5903   (eval $ac_link) 2>conftest.er1
5904   ac_status=$?
5905   grep -v '^ *+' conftest.er1 >conftest.err
5906   rm -f conftest.er1
5907   cat conftest.err >&5
5908   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5909   (exit $ac_status); } &&
5910          { ac_try='test -z "$ac_c_werror_flag"
5911                          || test ! -s conftest.err'
5912   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5913   (eval $ac_try) 2>&5
5914   ac_status=$?
5915   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5916   (exit $ac_status); }; } &&
5917          { ac_try='test -s conftest$ac_exeext'
5918   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5919   (eval $ac_try) 2>&5
5920   ac_status=$?
5921   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5922   (exit $ac_status); }; }; then
5923   ac_cv_search_opendir="none required"
5924 else
5925   echo "$as_me: failed program was:" >&5
5926 sed 's/^/| /' conftest.$ac_ext >&5
5927
5928 fi
5929 rm -f conftest.err conftest.$ac_objext \
5930       conftest$ac_exeext conftest.$ac_ext
5931 if test "$ac_cv_search_opendir" = no; then
5932   for ac_lib in dir; do
5933     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
5934     cat >conftest.$ac_ext <<_ACEOF
5935 /* confdefs.h.  */
5936 _ACEOF
5937 cat confdefs.h >>conftest.$ac_ext
5938 cat >>conftest.$ac_ext <<_ACEOF
5939 /* end confdefs.h.  */
5940
5941 /* Override any gcc2 internal prototype to avoid an error.  */
5942 #ifdef __cplusplus
5943 extern "C"
5944 #endif
5945 /* We use char because int might match the return type of a gcc2
5946    builtin and then its argument prototype would still apply.  */
5947 char opendir ();
5948 int
5949 main ()
5950 {
5951 opendir ();
5952   ;
5953   return 0;
5954 }
5955 _ACEOF
5956 rm -f conftest.$ac_objext conftest$ac_exeext
5957 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5958   (eval $ac_link) 2>conftest.er1
5959   ac_status=$?
5960   grep -v '^ *+' conftest.er1 >conftest.err
5961   rm -f conftest.er1
5962   cat conftest.err >&5
5963   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5964   (exit $ac_status); } &&
5965          { ac_try='test -z "$ac_c_werror_flag"
5966                          || test ! -s conftest.err'
5967   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5968   (eval $ac_try) 2>&5
5969   ac_status=$?
5970   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5971   (exit $ac_status); }; } &&
5972          { ac_try='test -s conftest$ac_exeext'
5973   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5974   (eval $ac_try) 2>&5
5975   ac_status=$?
5976   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5977   (exit $ac_status); }; }; then
5978   ac_cv_search_opendir="-l$ac_lib"
5979 break
5980 else
5981   echo "$as_me: failed program was:" >&5
5982 sed 's/^/| /' conftest.$ac_ext >&5
5983
5984 fi
5985 rm -f conftest.err conftest.$ac_objext \
5986       conftest$ac_exeext conftest.$ac_ext
5987   done
5988 fi
5989 LIBS=$ac_func_search_save_LIBS
5990 fi
5991 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
5992 echo "${ECHO_T}$ac_cv_search_opendir" >&6
5993 if test "$ac_cv_search_opendir" != no; then
5994   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
5995
5996 fi
5997
5998 else
5999   echo "$as_me:$LINENO: checking for library containing opendir" >&5
6000 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
6001 if test "${ac_cv_search_opendir+set}" = set; then
6002   echo $ECHO_N "(cached) $ECHO_C" >&6
6003 else
6004   ac_func_search_save_LIBS=$LIBS
6005 ac_cv_search_opendir=no
6006 cat >conftest.$ac_ext <<_ACEOF
6007 /* confdefs.h.  */
6008 _ACEOF
6009 cat confdefs.h >>conftest.$ac_ext
6010 cat >>conftest.$ac_ext <<_ACEOF
6011 /* end confdefs.h.  */
6012
6013 /* Override any gcc2 internal prototype to avoid an error.  */
6014 #ifdef __cplusplus
6015 extern "C"
6016 #endif
6017 /* We use char because int might match the return type of a gcc2
6018    builtin and then its argument prototype would still apply.  */
6019 char opendir ();
6020 int
6021 main ()
6022 {
6023 opendir ();
6024   ;
6025   return 0;
6026 }
6027 _ACEOF
6028 rm -f conftest.$ac_objext conftest$ac_exeext
6029 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6030   (eval $ac_link) 2>conftest.er1
6031   ac_status=$?
6032   grep -v '^ *+' conftest.er1 >conftest.err
6033   rm -f conftest.er1
6034   cat conftest.err >&5
6035   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6036   (exit $ac_status); } &&
6037          { ac_try='test -z "$ac_c_werror_flag"
6038                          || test ! -s conftest.err'
6039   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6040   (eval $ac_try) 2>&5
6041   ac_status=$?
6042   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6043   (exit $ac_status); }; } &&
6044          { ac_try='test -s conftest$ac_exeext'
6045   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6046   (eval $ac_try) 2>&5
6047   ac_status=$?
6048   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6049   (exit $ac_status); }; }; then
6050   ac_cv_search_opendir="none required"
6051 else
6052   echo "$as_me: failed program was:" >&5
6053 sed 's/^/| /' conftest.$ac_ext >&5
6054
6055 fi
6056 rm -f conftest.err conftest.$ac_objext \
6057       conftest$ac_exeext conftest.$ac_ext
6058 if test "$ac_cv_search_opendir" = no; then
6059   for ac_lib in x; do
6060     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6061     cat >conftest.$ac_ext <<_ACEOF
6062 /* confdefs.h.  */
6063 _ACEOF
6064 cat confdefs.h >>conftest.$ac_ext
6065 cat >>conftest.$ac_ext <<_ACEOF
6066 /* end confdefs.h.  */
6067
6068 /* Override any gcc2 internal prototype to avoid an error.  */
6069 #ifdef __cplusplus
6070 extern "C"
6071 #endif
6072 /* We use char because int might match the return type of a gcc2
6073    builtin and then its argument prototype would still apply.  */
6074 char opendir ();
6075 int
6076 main ()
6077 {
6078 opendir ();
6079   ;
6080   return 0;
6081 }
6082 _ACEOF
6083 rm -f conftest.$ac_objext conftest$ac_exeext
6084 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6085   (eval $ac_link) 2>conftest.er1
6086   ac_status=$?
6087   grep -v '^ *+' conftest.er1 >conftest.err
6088   rm -f conftest.er1
6089   cat conftest.err >&5
6090   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6091   (exit $ac_status); } &&
6092          { ac_try='test -z "$ac_c_werror_flag"
6093                          || test ! -s conftest.err'
6094   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6095   (eval $ac_try) 2>&5
6096   ac_status=$?
6097   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6098   (exit $ac_status); }; } &&
6099          { ac_try='test -s conftest$ac_exeext'
6100   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6101   (eval $ac_try) 2>&5
6102   ac_status=$?
6103   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6104   (exit $ac_status); }; }; then
6105   ac_cv_search_opendir="-l$ac_lib"
6106 break
6107 else
6108   echo "$as_me: failed program was:" >&5
6109 sed 's/^/| /' conftest.$ac_ext >&5
6110
6111 fi
6112 rm -f conftest.err conftest.$ac_objext \
6113       conftest$ac_exeext conftest.$ac_ext
6114   done
6115 fi
6116 LIBS=$ac_func_search_save_LIBS
6117 fi
6118 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6119 echo "${ECHO_T}$ac_cv_search_opendir" >&6
6120 if test "$ac_cv_search_opendir" != no; then
6121   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
6122
6123 fi
6124
6125 fi
6126
6127 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6128 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6129 if test "${ac_cv_header_stdc+set}" = set; then
6130   echo $ECHO_N "(cached) $ECHO_C" >&6
6131 else
6132   cat >conftest.$ac_ext <<_ACEOF
6133 /* confdefs.h.  */
6134 _ACEOF
6135 cat confdefs.h >>conftest.$ac_ext
6136 cat >>conftest.$ac_ext <<_ACEOF
6137 /* end confdefs.h.  */
6138 #include <stdlib.h>
6139 #include <stdarg.h>
6140 #include <string.h>
6141 #include <float.h>
6142
6143 int
6144 main ()
6145 {
6146
6147   ;
6148   return 0;
6149 }
6150 _ACEOF
6151 rm -f conftest.$ac_objext
6152 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6153   (eval $ac_compile) 2>conftest.er1
6154   ac_status=$?
6155   grep -v '^ *+' conftest.er1 >conftest.err
6156   rm -f conftest.er1
6157   cat conftest.err >&5
6158   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6159   (exit $ac_status); } &&
6160          { ac_try='test -z "$ac_c_werror_flag"
6161                          || test ! -s conftest.err'
6162   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6163   (eval $ac_try) 2>&5
6164   ac_status=$?
6165   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6166   (exit $ac_status); }; } &&
6167          { ac_try='test -s conftest.$ac_objext'
6168   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6169   (eval $ac_try) 2>&5
6170   ac_status=$?
6171   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6172   (exit $ac_status); }; }; then
6173   ac_cv_header_stdc=yes
6174 else
6175   echo "$as_me: failed program was:" >&5
6176 sed 's/^/| /' conftest.$ac_ext >&5
6177
6178 ac_cv_header_stdc=no
6179 fi
6180 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6181
6182 if test $ac_cv_header_stdc = yes; then
6183   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6184   cat >conftest.$ac_ext <<_ACEOF
6185 /* confdefs.h.  */
6186 _ACEOF
6187 cat confdefs.h >>conftest.$ac_ext
6188 cat >>conftest.$ac_ext <<_ACEOF
6189 /* end confdefs.h.  */
6190 #include <string.h>
6191
6192 _ACEOF
6193 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6194   $EGREP "memchr" >/dev/null 2>&1; then
6195   :
6196 else
6197   ac_cv_header_stdc=no
6198 fi
6199 rm -f conftest*
6200
6201 fi
6202
6203 if test $ac_cv_header_stdc = yes; then
6204   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6205   cat >conftest.$ac_ext <<_ACEOF
6206 /* confdefs.h.  */
6207 _ACEOF
6208 cat confdefs.h >>conftest.$ac_ext
6209 cat >>conftest.$ac_ext <<_ACEOF
6210 /* end confdefs.h.  */
6211 #include <stdlib.h>
6212
6213 _ACEOF
6214 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6215   $EGREP "free" >/dev/null 2>&1; then
6216   :
6217 else
6218   ac_cv_header_stdc=no
6219 fi
6220 rm -f conftest*
6221
6222 fi
6223
6224 if test $ac_cv_header_stdc = yes; then
6225   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6226   if test "$cross_compiling" = yes; then
6227   :
6228 else
6229   cat >conftest.$ac_ext <<_ACEOF
6230 /* confdefs.h.  */
6231 _ACEOF
6232 cat confdefs.h >>conftest.$ac_ext
6233 cat >>conftest.$ac_ext <<_ACEOF
6234 /* end confdefs.h.  */
6235 #include <ctype.h>
6236 #if ((' ' & 0x0FF) == 0x020)
6237 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6238 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6239 #else
6240 # define ISLOWER(c) \
6241                    (('a' <= (c) && (c) <= 'i') \
6242                      || ('j' <= (c) && (c) <= 'r') \
6243                      || ('s' <= (c) && (c) <= 'z'))
6244 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6245 #endif
6246
6247 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6248 int
6249 main ()
6250 {
6251   int i;
6252   for (i = 0; i < 256; i++)
6253     if (XOR (islower (i), ISLOWER (i))
6254         || toupper (i) != TOUPPER (i))
6255       exit(2);
6256   exit (0);
6257 }
6258 _ACEOF
6259 rm -f conftest$ac_exeext
6260 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6261   (eval $ac_link) 2>&5
6262   ac_status=$?
6263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6264   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6265   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6266   (eval $ac_try) 2>&5
6267   ac_status=$?
6268   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6269   (exit $ac_status); }; }; then
6270   :
6271 else
6272   echo "$as_me: program exited with status $ac_status" >&5
6273 echo "$as_me: failed program was:" >&5
6274 sed 's/^/| /' conftest.$ac_ext >&5
6275
6276 ( exit $ac_status )
6277 ac_cv_header_stdc=no
6278 fi
6279 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6280 fi
6281 fi
6282 fi
6283 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6284 echo "${ECHO_T}$ac_cv_header_stdc" >&6
6285 if test $ac_cv_header_stdc = yes; then
6286
6287 cat >>confdefs.h <<\_ACEOF
6288 #define STDC_HEADERS 1
6289 _ACEOF
6290
6291 fi
6292
6293 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
6294 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
6295 if test "${ac_cv_header_sys_wait_h+set}" = set; then
6296   echo $ECHO_N "(cached) $ECHO_C" >&6
6297 else
6298   cat >conftest.$ac_ext <<_ACEOF
6299 /* confdefs.h.  */
6300 _ACEOF
6301 cat confdefs.h >>conftest.$ac_ext
6302 cat >>conftest.$ac_ext <<_ACEOF
6303 /* end confdefs.h.  */
6304 #include <sys/types.h>
6305 #include <sys/wait.h>
6306 #ifndef WEXITSTATUS
6307 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
6308 #endif
6309 #ifndef WIFEXITED
6310 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
6311 #endif
6312
6313 int
6314 main ()
6315 {
6316   int s;
6317   wait (&s);
6318   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
6319   ;
6320   return 0;
6321 }
6322 _ACEOF
6323 rm -f conftest.$ac_objext
6324 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6325   (eval $ac_compile) 2>conftest.er1
6326   ac_status=$?
6327   grep -v '^ *+' conftest.er1 >conftest.err
6328   rm -f conftest.er1
6329   cat conftest.err >&5
6330   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6331   (exit $ac_status); } &&
6332          { ac_try='test -z "$ac_c_werror_flag"
6333                          || test ! -s conftest.err'
6334   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6335   (eval $ac_try) 2>&5
6336   ac_status=$?
6337   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6338   (exit $ac_status); }; } &&
6339          { ac_try='test -s conftest.$ac_objext'
6340   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6341   (eval $ac_try) 2>&5
6342   ac_status=$?
6343   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6344   (exit $ac_status); }; }; then
6345   ac_cv_header_sys_wait_h=yes
6346 else
6347   echo "$as_me: failed program was:" >&5
6348 sed 's/^/| /' conftest.$ac_ext >&5
6349
6350 ac_cv_header_sys_wait_h=no
6351 fi
6352 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6353 fi
6354 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
6355 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
6356 if test $ac_cv_header_sys_wait_h = yes; then
6357
6358 cat >>confdefs.h <<\_ACEOF
6359 #define HAVE_SYS_WAIT_H 1
6360 _ACEOF
6361
6362 fi
6363
6364
6365
6366
6367
6368
6369
6370
6371
6372
6373
6374
6375
6376
6377
6378 for ac_header in \
6379         direct.h \
6380         fcntl.h \
6381         io.h \
6382         memory.h \
6383         ndbm.h \
6384         stdint.h \
6385         syslog.h \
6386         sys/bsdtypes.h \
6387         sys/file.h \
6388         sys/param.h \
6389         sys/resource.h \
6390         sys/select.h \
6391         unistd.h \
6392         utime.h\
6393
6394 do
6395 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6396 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6397   echo "$as_me:$LINENO: checking for $ac_header" >&5
6398 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6399 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6400   echo $ECHO_N "(cached) $ECHO_C" >&6
6401 fi
6402 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6403 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6404 else
6405   # Is the header compilable?
6406 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6407 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6408 cat >conftest.$ac_ext <<_ACEOF
6409 /* confdefs.h.  */
6410 _ACEOF
6411 cat confdefs.h >>conftest.$ac_ext
6412 cat >>conftest.$ac_ext <<_ACEOF
6413 /* end confdefs.h.  */
6414 $ac_includes_default
6415 #include <$ac_header>
6416 _ACEOF
6417 rm -f conftest.$ac_objext
6418 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6419   (eval $ac_compile) 2>conftest.er1
6420   ac_status=$?
6421   grep -v '^ *+' conftest.er1 >conftest.err
6422   rm -f conftest.er1
6423   cat conftest.err >&5
6424   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6425   (exit $ac_status); } &&
6426          { ac_try='test -z "$ac_c_werror_flag"
6427                          || test ! -s conftest.err'
6428   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6429   (eval $ac_try) 2>&5
6430   ac_status=$?
6431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6432   (exit $ac_status); }; } &&
6433          { ac_try='test -s conftest.$ac_objext'
6434   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6435   (eval $ac_try) 2>&5
6436   ac_status=$?
6437   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6438   (exit $ac_status); }; }; then
6439   ac_header_compiler=yes
6440 else
6441   echo "$as_me: failed program was:" >&5
6442 sed 's/^/| /' conftest.$ac_ext >&5
6443
6444 ac_header_compiler=no
6445 fi
6446 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6447 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6448 echo "${ECHO_T}$ac_header_compiler" >&6
6449
6450 # Is the header present?
6451 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6452 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6453 cat >conftest.$ac_ext <<_ACEOF
6454 /* confdefs.h.  */
6455 _ACEOF
6456 cat confdefs.h >>conftest.$ac_ext
6457 cat >>conftest.$ac_ext <<_ACEOF
6458 /* end confdefs.h.  */
6459 #include <$ac_header>
6460 _ACEOF
6461 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6462   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6463   ac_status=$?
6464   grep -v '^ *+' conftest.er1 >conftest.err
6465   rm -f conftest.er1
6466   cat conftest.err >&5
6467   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6468   (exit $ac_status); } >/dev/null; then
6469   if test -s conftest.err; then
6470     ac_cpp_err=$ac_c_preproc_warn_flag
6471     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6472   else
6473     ac_cpp_err=
6474   fi
6475 else
6476   ac_cpp_err=yes
6477 fi
6478 if test -z "$ac_cpp_err"; then
6479   ac_header_preproc=yes
6480 else
6481   echo "$as_me: failed program was:" >&5
6482 sed 's/^/| /' conftest.$ac_ext >&5
6483
6484   ac_header_preproc=no
6485 fi
6486 rm -f conftest.err conftest.$ac_ext
6487 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6488 echo "${ECHO_T}$ac_header_preproc" >&6
6489
6490 # So?  What about this header?
6491 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6492   yes:no: )
6493     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6494 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6495     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6496 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6497     ac_header_preproc=yes
6498     ;;
6499   no:yes:* )
6500     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6501 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6502     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6503 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6504     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6505 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6506     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6507 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6508     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6509 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6510     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6511 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6512     (
6513       cat <<\_ASBOX
6514 ## ------------------------------ ##
6515 ## Report this to bug-cvs@gnu.org ##
6516 ## ------------------------------ ##
6517 _ASBOX
6518     ) |
6519       sed "s/^/$as_me: WARNING:     /" >&2
6520     ;;
6521 esac
6522 echo "$as_me:$LINENO: checking for $ac_header" >&5
6523 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6524 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6525   echo $ECHO_N "(cached) $ECHO_C" >&6
6526 else
6527   eval "$as_ac_Header=\$ac_header_preproc"
6528 fi
6529 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6530 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6531
6532 fi
6533 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6534   cat >>confdefs.h <<_ACEOF
6535 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6536 _ACEOF
6537
6538 fi
6539
6540 done
6541
6542 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
6543 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
6544 if test "${ac_cv_header_stat_broken+set}" = set; then
6545   echo $ECHO_N "(cached) $ECHO_C" >&6
6546 else
6547   cat >conftest.$ac_ext <<_ACEOF
6548 /* confdefs.h.  */
6549 _ACEOF
6550 cat confdefs.h >>conftest.$ac_ext
6551 cat >>conftest.$ac_ext <<_ACEOF
6552 /* end confdefs.h.  */
6553 #include <sys/types.h>
6554 #include <sys/stat.h>
6555
6556 #if defined(S_ISBLK) && defined(S_IFDIR)
6557 # if S_ISBLK (S_IFDIR)
6558 You lose.
6559 # endif
6560 #endif
6561
6562 #if defined(S_ISBLK) && defined(S_IFCHR)
6563 # if S_ISBLK (S_IFCHR)
6564 You lose.
6565 # endif
6566 #endif
6567
6568 #if defined(S_ISLNK) && defined(S_IFREG)
6569 # if S_ISLNK (S_IFREG)
6570 You lose.
6571 # endif
6572 #endif
6573
6574 #if defined(S_ISSOCK) && defined(S_IFREG)
6575 # if S_ISSOCK (S_IFREG)
6576 You lose.
6577 # endif
6578 #endif
6579
6580 _ACEOF
6581 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6582   $EGREP "You lose" >/dev/null 2>&1; then
6583   ac_cv_header_stat_broken=yes
6584 else
6585   ac_cv_header_stat_broken=no
6586 fi
6587 rm -f conftest*
6588
6589 fi
6590 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
6591 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
6592 if test $ac_cv_header_stat_broken = yes; then
6593
6594 cat >>confdefs.h <<\_ACEOF
6595 #define STAT_MACROS_BROKEN 1
6596 _ACEOF
6597
6598 fi
6599
6600
6601 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
6602 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
6603 if test "${ac_cv_c_const+set}" = set; then
6604   echo $ECHO_N "(cached) $ECHO_C" >&6
6605 else
6606   cat >conftest.$ac_ext <<_ACEOF
6607 /* confdefs.h.  */
6608 _ACEOF
6609 cat confdefs.h >>conftest.$ac_ext
6610 cat >>conftest.$ac_ext <<_ACEOF
6611 /* end confdefs.h.  */
6612
6613 int
6614 main ()
6615 {
6616 /* FIXME: Include the comments suggested by Paul. */
6617 #ifndef __cplusplus
6618   /* Ultrix mips cc rejects this.  */
6619   typedef int charset[2];
6620   const charset x;
6621   /* SunOS 4.1.1 cc rejects this.  */
6622   char const *const *ccp;
6623   char **p;
6624   /* NEC SVR4.0.2 mips cc rejects this.  */
6625   struct point {int x, y;};
6626   static struct point const zero = {0,0};
6627   /* AIX XL C 1.02.0.0 rejects this.
6628      It does not let you subtract one const X* pointer from another in
6629      an arm of an if-expression whose if-part is not a constant
6630      expression */
6631   const char *g = "string";
6632   ccp = &g + (g ? g-g : 0);
6633   /* HPUX 7.0 cc rejects these. */
6634   ++ccp;
6635   p = (char**) ccp;
6636   ccp = (char const *const *) p;
6637   { /* SCO 3.2v4 cc rejects this.  */
6638     char *t;
6639     char const *s = 0 ? (char *) 0 : (char const *) 0;
6640
6641     *t++ = 0;
6642   }
6643   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
6644     int x[] = {25, 17};
6645     const int *foo = &x[0];
6646     ++foo;
6647   }
6648   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
6649     typedef const int *iptr;
6650     iptr p = 0;
6651     ++p;
6652   }
6653   { /* AIX XL C 1.02.0.0 rejects this saying
6654        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
6655     struct s { int j; const int *ap[3]; };
6656     struct s *b; b->j = 5;
6657   }
6658   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
6659     const int foo = 10;
6660   }
6661 #endif
6662
6663   ;
6664   return 0;
6665 }
6666 _ACEOF
6667 rm -f conftest.$ac_objext
6668 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6669   (eval $ac_compile) 2>conftest.er1
6670   ac_status=$?
6671   grep -v '^ *+' conftest.er1 >conftest.err
6672   rm -f conftest.er1
6673   cat conftest.err >&5
6674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6675   (exit $ac_status); } &&
6676          { ac_try='test -z "$ac_c_werror_flag"
6677                          || test ! -s conftest.err'
6678   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6679   (eval $ac_try) 2>&5
6680   ac_status=$?
6681   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6682   (exit $ac_status); }; } &&
6683          { ac_try='test -s conftest.$ac_objext'
6684   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6685   (eval $ac_try) 2>&5
6686   ac_status=$?
6687   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6688   (exit $ac_status); }; }; then
6689   ac_cv_c_const=yes
6690 else
6691   echo "$as_me: failed program was:" >&5
6692 sed 's/^/| /' conftest.$ac_ext >&5
6693
6694 ac_cv_c_const=no
6695 fi
6696 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6697 fi
6698 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
6699 echo "${ECHO_T}$ac_cv_c_const" >&6
6700 if test $ac_cv_c_const = no; then
6701
6702 cat >>confdefs.h <<\_ACEOF
6703 #define const
6704 _ACEOF
6705
6706 fi
6707
6708 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
6709 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
6710 if test "${ac_cv_type_uid_t+set}" = set; then
6711   echo $ECHO_N "(cached) $ECHO_C" >&6
6712 else
6713   cat >conftest.$ac_ext <<_ACEOF
6714 /* confdefs.h.  */
6715 _ACEOF
6716 cat confdefs.h >>conftest.$ac_ext
6717 cat >>conftest.$ac_ext <<_ACEOF
6718 /* end confdefs.h.  */
6719 #include <sys/types.h>
6720
6721 _ACEOF
6722 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6723   $EGREP "uid_t" >/dev/null 2>&1; then
6724   ac_cv_type_uid_t=yes
6725 else
6726   ac_cv_type_uid_t=no
6727 fi
6728 rm -f conftest*
6729
6730 fi
6731 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
6732 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
6733 if test $ac_cv_type_uid_t = no; then
6734
6735 cat >>confdefs.h <<\_ACEOF
6736 #define uid_t int
6737 _ACEOF
6738
6739
6740 cat >>confdefs.h <<\_ACEOF
6741 #define gid_t int
6742 _ACEOF
6743
6744 fi
6745
6746 echo "$as_me:$LINENO: checking for mode_t" >&5
6747 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
6748 if test "${ac_cv_type_mode_t+set}" = set; then
6749   echo $ECHO_N "(cached) $ECHO_C" >&6
6750 else
6751   cat >conftest.$ac_ext <<_ACEOF
6752 /* confdefs.h.  */
6753 _ACEOF
6754 cat confdefs.h >>conftest.$ac_ext
6755 cat >>conftest.$ac_ext <<_ACEOF
6756 /* end confdefs.h.  */
6757 $ac_includes_default
6758 int
6759 main ()
6760 {
6761 if ((mode_t *) 0)
6762   return 0;
6763 if (sizeof (mode_t))
6764   return 0;
6765   ;
6766   return 0;
6767 }
6768 _ACEOF
6769 rm -f conftest.$ac_objext
6770 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6771   (eval $ac_compile) 2>conftest.er1
6772   ac_status=$?
6773   grep -v '^ *+' conftest.er1 >conftest.err
6774   rm -f conftest.er1
6775   cat conftest.err >&5
6776   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6777   (exit $ac_status); } &&
6778          { ac_try='test -z "$ac_c_werror_flag"
6779                          || test ! -s conftest.err'
6780   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6781   (eval $ac_try) 2>&5
6782   ac_status=$?
6783   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6784   (exit $ac_status); }; } &&
6785          { ac_try='test -s conftest.$ac_objext'
6786   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6787   (eval $ac_try) 2>&5
6788   ac_status=$?
6789   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6790   (exit $ac_status); }; }; then
6791   ac_cv_type_mode_t=yes
6792 else
6793   echo "$as_me: failed program was:" >&5
6794 sed 's/^/| /' conftest.$ac_ext >&5
6795
6796 ac_cv_type_mode_t=no
6797 fi
6798 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6799 fi
6800 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
6801 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
6802 if test $ac_cv_type_mode_t = yes; then
6803   :
6804 else
6805
6806 cat >>confdefs.h <<_ACEOF
6807 #define mode_t int
6808 _ACEOF
6809
6810 fi
6811
6812 echo "$as_me:$LINENO: checking for pid_t" >&5
6813 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
6814 if test "${ac_cv_type_pid_t+set}" = set; then
6815   echo $ECHO_N "(cached) $ECHO_C" >&6
6816 else
6817   cat >conftest.$ac_ext <<_ACEOF
6818 /* confdefs.h.  */
6819 _ACEOF
6820 cat confdefs.h >>conftest.$ac_ext
6821 cat >>conftest.$ac_ext <<_ACEOF
6822 /* end confdefs.h.  */
6823 $ac_includes_default
6824 int
6825 main ()
6826 {
6827 if ((pid_t *) 0)
6828   return 0;
6829 if (sizeof (pid_t))
6830   return 0;
6831   ;
6832   return 0;
6833 }
6834 _ACEOF
6835 rm -f conftest.$ac_objext
6836 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6837   (eval $ac_compile) 2>conftest.er1
6838   ac_status=$?
6839   grep -v '^ *+' conftest.er1 >conftest.err
6840   rm -f conftest.er1
6841   cat conftest.err >&5
6842   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6843   (exit $ac_status); } &&
6844          { ac_try='test -z "$ac_c_werror_flag"
6845                          || test ! -s conftest.err'
6846   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6847   (eval $ac_try) 2>&5
6848   ac_status=$?
6849   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6850   (exit $ac_status); }; } &&
6851          { ac_try='test -s conftest.$ac_objext'
6852   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6853   (eval $ac_try) 2>&5
6854   ac_status=$?
6855   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6856   (exit $ac_status); }; }; then
6857   ac_cv_type_pid_t=yes
6858 else
6859   echo "$as_me: failed program was:" >&5
6860 sed 's/^/| /' conftest.$ac_ext >&5
6861
6862 ac_cv_type_pid_t=no
6863 fi
6864 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6865 fi
6866 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
6867 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
6868 if test $ac_cv_type_pid_t = yes; then
6869   :
6870 else
6871
6872 cat >>confdefs.h <<_ACEOF
6873 #define pid_t int
6874 _ACEOF
6875
6876 fi
6877
6878 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
6879 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
6880 if test "${ac_cv_type_signal+set}" = set; then
6881   echo $ECHO_N "(cached) $ECHO_C" >&6
6882 else
6883   cat >conftest.$ac_ext <<_ACEOF
6884 /* confdefs.h.  */
6885 _ACEOF
6886 cat confdefs.h >>conftest.$ac_ext
6887 cat >>conftest.$ac_ext <<_ACEOF
6888 /* end confdefs.h.  */
6889 #include <sys/types.h>
6890 #include <signal.h>
6891 #ifdef signal
6892 # undef signal
6893 #endif
6894 #ifdef __cplusplus
6895 extern "C" void (*signal (int, void (*)(int)))(int);
6896 #else
6897 void (*signal ()) ();
6898 #endif
6899
6900 int
6901 main ()
6902 {
6903 int i;
6904   ;
6905   return 0;
6906 }
6907 _ACEOF
6908 rm -f conftest.$ac_objext
6909 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6910   (eval $ac_compile) 2>conftest.er1
6911   ac_status=$?
6912   grep -v '^ *+' conftest.er1 >conftest.err
6913   rm -f conftest.er1
6914   cat conftest.err >&5
6915   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6916   (exit $ac_status); } &&
6917          { ac_try='test -z "$ac_c_werror_flag"
6918                          || test ! -s conftest.err'
6919   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6920   (eval $ac_try) 2>&5
6921   ac_status=$?
6922   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6923   (exit $ac_status); }; } &&
6924          { ac_try='test -s conftest.$ac_objext'
6925   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6926   (eval $ac_try) 2>&5
6927   ac_status=$?
6928   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6929   (exit $ac_status); }; }; then
6930   ac_cv_type_signal=void
6931 else
6932   echo "$as_me: failed program was:" >&5
6933 sed 's/^/| /' conftest.$ac_ext >&5
6934
6935 ac_cv_type_signal=int
6936 fi
6937 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6938 fi
6939 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
6940 echo "${ECHO_T}$ac_cv_type_signal" >&6
6941
6942 cat >>confdefs.h <<_ACEOF
6943 #define RETSIGTYPE $ac_cv_type_signal
6944 _ACEOF
6945
6946
6947
6948 echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
6949 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6
6950 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
6951   echo $ECHO_N "(cached) $ECHO_C" >&6
6952 else
6953   cat >conftest.$ac_ext <<_ACEOF
6954 /* confdefs.h.  */
6955 _ACEOF
6956 cat confdefs.h >>conftest.$ac_ext
6957 cat >>conftest.$ac_ext <<_ACEOF
6958 /* end confdefs.h.  */
6959 $ac_includes_default
6960 int
6961 main ()
6962 {
6963 static struct stat ac_aggr;
6964 if (ac_aggr.st_blksize)
6965 return 0;
6966   ;
6967   return 0;
6968 }
6969 _ACEOF
6970 rm -f conftest.$ac_objext
6971 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6972   (eval $ac_compile) 2>conftest.er1
6973   ac_status=$?
6974   grep -v '^ *+' conftest.er1 >conftest.err
6975   rm -f conftest.er1
6976   cat conftest.err >&5
6977   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6978   (exit $ac_status); } &&
6979          { ac_try='test -z "$ac_c_werror_flag"
6980                          || test ! -s conftest.err'
6981   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6982   (eval $ac_try) 2>&5
6983   ac_status=$?
6984   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6985   (exit $ac_status); }; } &&
6986          { ac_try='test -s conftest.$ac_objext'
6987   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6988   (eval $ac_try) 2>&5
6989   ac_status=$?
6990   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6991   (exit $ac_status); }; }; then
6992   ac_cv_member_struct_stat_st_blksize=yes
6993 else
6994   echo "$as_me: failed program was:" >&5
6995 sed 's/^/| /' conftest.$ac_ext >&5
6996
6997 cat >conftest.$ac_ext <<_ACEOF
6998 /* confdefs.h.  */
6999 _ACEOF
7000 cat confdefs.h >>conftest.$ac_ext
7001 cat >>conftest.$ac_ext <<_ACEOF
7002 /* end confdefs.h.  */
7003 $ac_includes_default
7004 int
7005 main ()
7006 {
7007 static struct stat ac_aggr;
7008 if (sizeof ac_aggr.st_blksize)
7009 return 0;
7010   ;
7011   return 0;
7012 }
7013 _ACEOF
7014 rm -f conftest.$ac_objext
7015 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7016   (eval $ac_compile) 2>conftest.er1
7017   ac_status=$?
7018   grep -v '^ *+' conftest.er1 >conftest.err
7019   rm -f conftest.er1
7020   cat conftest.err >&5
7021   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7022   (exit $ac_status); } &&
7023          { ac_try='test -z "$ac_c_werror_flag"
7024                          || test ! -s conftest.err'
7025   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7026   (eval $ac_try) 2>&5
7027   ac_status=$?
7028   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7029   (exit $ac_status); }; } &&
7030          { ac_try='test -s conftest.$ac_objext'
7031   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7032   (eval $ac_try) 2>&5
7033   ac_status=$?
7034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7035   (exit $ac_status); }; }; then
7036   ac_cv_member_struct_stat_st_blksize=yes
7037 else
7038   echo "$as_me: failed program was:" >&5
7039 sed 's/^/| /' conftest.$ac_ext >&5
7040
7041 ac_cv_member_struct_stat_st_blksize=no
7042 fi
7043 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7044 fi
7045 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7046 fi
7047 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
7048 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6
7049 if test $ac_cv_member_struct_stat_st_blksize = yes; then
7050
7051 cat >>confdefs.h <<_ACEOF
7052 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
7053 _ACEOF
7054
7055
7056 fi
7057
7058 echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
7059 echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6
7060 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
7061   echo $ECHO_N "(cached) $ECHO_C" >&6
7062 else
7063   cat >conftest.$ac_ext <<_ACEOF
7064 /* confdefs.h.  */
7065 _ACEOF
7066 cat confdefs.h >>conftest.$ac_ext
7067 cat >>conftest.$ac_ext <<_ACEOF
7068 /* end confdefs.h.  */
7069 $ac_includes_default
7070 int
7071 main ()
7072 {
7073 static struct stat ac_aggr;
7074 if (ac_aggr.st_rdev)
7075 return 0;
7076   ;
7077   return 0;
7078 }
7079 _ACEOF
7080 rm -f conftest.$ac_objext
7081 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7082   (eval $ac_compile) 2>conftest.er1
7083   ac_status=$?
7084   grep -v '^ *+' conftest.er1 >conftest.err
7085   rm -f conftest.er1
7086   cat conftest.err >&5
7087   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7088   (exit $ac_status); } &&
7089          { ac_try='test -z "$ac_c_werror_flag"
7090                          || test ! -s conftest.err'
7091   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7092   (eval $ac_try) 2>&5
7093   ac_status=$?
7094   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7095   (exit $ac_status); }; } &&
7096          { ac_try='test -s conftest.$ac_objext'
7097   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7098   (eval $ac_try) 2>&5
7099   ac_status=$?
7100   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7101   (exit $ac_status); }; }; then
7102   ac_cv_member_struct_stat_st_rdev=yes
7103 else
7104   echo "$as_me: failed program was:" >&5
7105 sed 's/^/| /' conftest.$ac_ext >&5
7106
7107 cat >conftest.$ac_ext <<_ACEOF
7108 /* confdefs.h.  */
7109 _ACEOF
7110 cat confdefs.h >>conftest.$ac_ext
7111 cat >>conftest.$ac_ext <<_ACEOF
7112 /* end confdefs.h.  */
7113 $ac_includes_default
7114 int
7115 main ()
7116 {
7117 static struct stat ac_aggr;
7118 if (sizeof ac_aggr.st_rdev)
7119 return 0;
7120   ;
7121   return 0;
7122 }
7123 _ACEOF
7124 rm -f conftest.$ac_objext
7125 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7126   (eval $ac_compile) 2>conftest.er1
7127   ac_status=$?
7128   grep -v '^ *+' conftest.er1 >conftest.err
7129   rm -f conftest.er1
7130   cat conftest.err >&5
7131   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7132   (exit $ac_status); } &&
7133          { ac_try='test -z "$ac_c_werror_flag"
7134                          || test ! -s conftest.err'
7135   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7136   (eval $ac_try) 2>&5
7137   ac_status=$?
7138   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7139   (exit $ac_status); }; } &&
7140          { ac_try='test -s conftest.$ac_objext'
7141   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7142   (eval $ac_try) 2>&5
7143   ac_status=$?
7144   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7145   (exit $ac_status); }; }; then
7146   ac_cv_member_struct_stat_st_rdev=yes
7147 else
7148   echo "$as_me: failed program was:" >&5
7149 sed 's/^/| /' conftest.$ac_ext >&5
7150
7151 ac_cv_member_struct_stat_st_rdev=no
7152 fi
7153 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7154 fi
7155 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7156 fi
7157 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
7158 echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6
7159 if test $ac_cv_member_struct_stat_st_rdev = yes; then
7160
7161 cat >>confdefs.h <<_ACEOF
7162 #define HAVE_STRUCT_STAT_ST_RDEV 1
7163 _ACEOF
7164
7165
7166 fi
7167
7168
7169 echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
7170 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6
7171 if test "${ac_cv_sys_largefile_source+set}" = set; then
7172   echo $ECHO_N "(cached) $ECHO_C" >&6
7173 else
7174   while :; do
7175   ac_cv_sys_largefile_source=no
7176   cat >conftest.$ac_ext <<_ACEOF
7177 /* confdefs.h.  */
7178 _ACEOF
7179 cat confdefs.h >>conftest.$ac_ext
7180 cat >>conftest.$ac_ext <<_ACEOF
7181 /* end confdefs.h.  */
7182 #include <stdio.h>
7183 int
7184 main ()
7185 {
7186 return !fseeko;
7187   ;
7188   return 0;
7189 }
7190 _ACEOF
7191 rm -f conftest.$ac_objext
7192 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7193   (eval $ac_compile) 2>conftest.er1
7194   ac_status=$?
7195   grep -v '^ *+' conftest.er1 >conftest.err
7196   rm -f conftest.er1
7197   cat conftest.err >&5
7198   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7199   (exit $ac_status); } &&
7200          { ac_try='test -z "$ac_c_werror_flag"
7201                          || test ! -s conftest.err'
7202   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7203   (eval $ac_try) 2>&5
7204   ac_status=$?
7205   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7206   (exit $ac_status); }; } &&
7207          { ac_try='test -s conftest.$ac_objext'
7208   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7209   (eval $ac_try) 2>&5
7210   ac_status=$?
7211   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7212   (exit $ac_status); }; }; then
7213   break
7214 else
7215   echo "$as_me: failed program was:" >&5
7216 sed 's/^/| /' conftest.$ac_ext >&5
7217
7218 fi
7219 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7220   cat >conftest.$ac_ext <<_ACEOF
7221 /* confdefs.h.  */
7222 _ACEOF
7223 cat confdefs.h >>conftest.$ac_ext
7224 cat >>conftest.$ac_ext <<_ACEOF
7225 /* end confdefs.h.  */
7226 #define _LARGEFILE_SOURCE 1
7227 #include <stdio.h>
7228 int
7229 main ()
7230 {
7231 return !fseeko;
7232   ;
7233   return 0;
7234 }
7235 _ACEOF
7236 rm -f conftest.$ac_objext
7237 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7238   (eval $ac_compile) 2>conftest.er1
7239   ac_status=$?
7240   grep -v '^ *+' conftest.er1 >conftest.err
7241   rm -f conftest.er1
7242   cat conftest.err >&5
7243   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7244   (exit $ac_status); } &&
7245          { ac_try='test -z "$ac_c_werror_flag"
7246                          || test ! -s conftest.err'
7247   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7248   (eval $ac_try) 2>&5
7249   ac_status=$?
7250   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7251   (exit $ac_status); }; } &&
7252          { ac_try='test -s conftest.$ac_objext'
7253   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7254   (eval $ac_try) 2>&5
7255   ac_status=$?
7256   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7257   (exit $ac_status); }; }; then
7258   ac_cv_sys_largefile_source=1; break
7259 else
7260   echo "$as_me: failed program was:" >&5
7261 sed 's/^/| /' conftest.$ac_ext >&5
7262
7263 fi
7264 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7265   break
7266 done
7267 fi
7268 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
7269 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
7270 if test "$ac_cv_sys_largefile_source" != no; then
7271
7272 cat >>confdefs.h <<_ACEOF
7273 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
7274 _ACEOF
7275
7276 fi
7277 rm -f conftest*
7278
7279 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
7280 # in glibc 2.1.3, but that breaks too many other things.
7281 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
7282 echo "$as_me:$LINENO: checking for fseeko" >&5
7283 echo $ECHO_N "checking for fseeko... $ECHO_C" >&6
7284 if test "${ac_cv_func_fseeko+set}" = set; then
7285   echo $ECHO_N "(cached) $ECHO_C" >&6
7286 else
7287   cat >conftest.$ac_ext <<_ACEOF
7288 /* confdefs.h.  */
7289 _ACEOF
7290 cat confdefs.h >>conftest.$ac_ext
7291 cat >>conftest.$ac_ext <<_ACEOF
7292 /* end confdefs.h.  */
7293 #include <stdio.h>
7294 int
7295 main ()
7296 {
7297 return fseeko && fseeko (stdin, 0, 0);
7298   ;
7299   return 0;
7300 }
7301 _ACEOF
7302 rm -f conftest.$ac_objext conftest$ac_exeext
7303 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7304   (eval $ac_link) 2>conftest.er1
7305   ac_status=$?
7306   grep -v '^ *+' conftest.er1 >conftest.err
7307   rm -f conftest.er1
7308   cat conftest.err >&5
7309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7310   (exit $ac_status); } &&
7311          { ac_try='test -z "$ac_c_werror_flag"
7312                          || test ! -s conftest.err'
7313   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7314   (eval $ac_try) 2>&5
7315   ac_status=$?
7316   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7317   (exit $ac_status); }; } &&
7318          { ac_try='test -s conftest$ac_exeext'
7319   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7320   (eval $ac_try) 2>&5
7321   ac_status=$?
7322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7323   (exit $ac_status); }; }; then
7324   ac_cv_func_fseeko=yes
7325 else
7326   echo "$as_me: failed program was:" >&5
7327 sed 's/^/| /' conftest.$ac_ext >&5
7328
7329 ac_cv_func_fseeko=no
7330 fi
7331 rm -f conftest.err conftest.$ac_objext \
7332       conftest$ac_exeext conftest.$ac_ext
7333 fi
7334 echo "$as_me:$LINENO: result: $ac_cv_func_fseeko" >&5
7335 echo "${ECHO_T}$ac_cv_func_fseeko" >&6
7336 if test $ac_cv_func_fseeko = yes; then
7337
7338 cat >>confdefs.h <<\_ACEOF
7339 #define HAVE_FSEEKO 1
7340 _ACEOF
7341
7342 fi
7343
7344 if test $ac_cv_func_fseeko = no; then
7345     case $LIBOBJS in
7346     "fseeko.$ac_objext"   | \
7347   *" fseeko.$ac_objext"   | \
7348     "fseeko.$ac_objext "* | \
7349   *" fseeko.$ac_objext "* ) ;;
7350   *) LIBOBJS="$LIBOBJS fseeko.$ac_objext" ;;
7351 esac
7352
7353     case $LIBOBJS in
7354     "ftello.$ac_objext"   | \
7355   *" ftello.$ac_objext"   | \
7356     "ftello.$ac_objext "* | \
7357   *" ftello.$ac_objext "* ) ;;
7358   *) LIBOBJS="$LIBOBJS ftello.$ac_objext" ;;
7359 esac
7360
7361 fi
7362
7363 # Replace functions with versions in lib/ when they can't be found.
7364
7365 for ac_func in \
7366         waitpid \
7367
7368 do
7369 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7370 echo "$as_me:$LINENO: checking for $ac_func" >&5
7371 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7372 if eval "test \"\${$as_ac_var+set}\" = set"; then
7373   echo $ECHO_N "(cached) $ECHO_C" >&6
7374 else
7375   cat >conftest.$ac_ext <<_ACEOF
7376 /* confdefs.h.  */
7377 _ACEOF
7378 cat confdefs.h >>conftest.$ac_ext
7379 cat >>conftest.$ac_ext <<_ACEOF
7380 /* end confdefs.h.  */
7381 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7382    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
7383 #define $ac_func innocuous_$ac_func
7384
7385 /* System header to define __stub macros and hopefully few prototypes,
7386     which can conflict with char $ac_func (); below.
7387     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7388     <limits.h> exists even on freestanding compilers.  */
7389
7390 #ifdef __STDC__
7391 # include <limits.h>
7392 #else
7393 # include <assert.h>
7394 #endif
7395
7396 #undef $ac_func
7397
7398 /* Override any gcc2 internal prototype to avoid an error.  */
7399 #ifdef __cplusplus
7400 extern "C"
7401 {
7402 #endif
7403 /* We use char because int might match the return type of a gcc2
7404    builtin and then its argument prototype would still apply.  */
7405 char $ac_func ();
7406 /* The GNU C library defines this for functions which it implements
7407     to always fail with ENOSYS.  Some functions are actually named
7408     something starting with __ and the normal name is an alias.  */
7409 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7410 choke me
7411 #else
7412 char (*f) () = $ac_func;
7413 #endif
7414 #ifdef __cplusplus
7415 }
7416 #endif
7417
7418 int
7419 main ()
7420 {
7421 return f != $ac_func;
7422   ;
7423   return 0;
7424 }
7425 _ACEOF
7426 rm -f conftest.$ac_objext conftest$ac_exeext
7427 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7428   (eval $ac_link) 2>conftest.er1
7429   ac_status=$?
7430   grep -v '^ *+' conftest.er1 >conftest.err
7431   rm -f conftest.er1
7432   cat conftest.err >&5
7433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7434   (exit $ac_status); } &&
7435          { ac_try='test -z "$ac_c_werror_flag"
7436                          || test ! -s conftest.err'
7437   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7438   (eval $ac_try) 2>&5
7439   ac_status=$?
7440   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7441   (exit $ac_status); }; } &&
7442          { ac_try='test -s conftest$ac_exeext'
7443   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7444   (eval $ac_try) 2>&5
7445   ac_status=$?
7446   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7447   (exit $ac_status); }; }; then
7448   eval "$as_ac_var=yes"
7449 else
7450   echo "$as_me: failed program was:" >&5
7451 sed 's/^/| /' conftest.$ac_ext >&5
7452
7453 eval "$as_ac_var=no"
7454 fi
7455 rm -f conftest.err conftest.$ac_objext \
7456       conftest$ac_exeext conftest.$ac_ext
7457 fi
7458 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7459 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7460 if test `eval echo '${'$as_ac_var'}'` = yes; then
7461   cat >>confdefs.h <<_ACEOF
7462 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7463 _ACEOF
7464
7465 else
7466   case $LIBOBJS in
7467     "$ac_func.$ac_objext"   | \
7468   *" $ac_func.$ac_objext"   | \
7469     "$ac_func.$ac_objext "* | \
7470   *" $ac_func.$ac_objext "* ) ;;
7471   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
7472 esac
7473
7474 fi
7475 done
7476
7477
7478
7479 #
7480 # Special hack for a SunOS 5.7 (aka Solaris 7) select() problem.
7481 #
7482
7483
7484 for ac_header in fcntl.h
7485 do
7486 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7487 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7488   echo "$as_me:$LINENO: checking for $ac_header" >&5
7489 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7490 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7491   echo $ECHO_N "(cached) $ECHO_C" >&6
7492 fi
7493 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7494 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7495 else
7496   # Is the header compilable?
7497 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7498 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7499 cat >conftest.$ac_ext <<_ACEOF
7500 /* confdefs.h.  */
7501 _ACEOF
7502 cat confdefs.h >>conftest.$ac_ext
7503 cat >>conftest.$ac_ext <<_ACEOF
7504 /* end confdefs.h.  */
7505 $ac_includes_default
7506 #include <$ac_header>
7507 _ACEOF
7508 rm -f conftest.$ac_objext
7509 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7510   (eval $ac_compile) 2>conftest.er1
7511   ac_status=$?
7512   grep -v '^ *+' conftest.er1 >conftest.err
7513   rm -f conftest.er1
7514   cat conftest.err >&5
7515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7516   (exit $ac_status); } &&
7517          { ac_try='test -z "$ac_c_werror_flag"
7518                          || test ! -s conftest.err'
7519   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7520   (eval $ac_try) 2>&5
7521   ac_status=$?
7522   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7523   (exit $ac_status); }; } &&
7524          { ac_try='test -s conftest.$ac_objext'
7525   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7526   (eval $ac_try) 2>&5
7527   ac_status=$?
7528   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7529   (exit $ac_status); }; }; then
7530   ac_header_compiler=yes
7531 else
7532   echo "$as_me: failed program was:" >&5
7533 sed 's/^/| /' conftest.$ac_ext >&5
7534
7535 ac_header_compiler=no
7536 fi
7537 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7538 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7539 echo "${ECHO_T}$ac_header_compiler" >&6
7540
7541 # Is the header present?
7542 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7543 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7544 cat >conftest.$ac_ext <<_ACEOF
7545 /* confdefs.h.  */
7546 _ACEOF
7547 cat confdefs.h >>conftest.$ac_ext
7548 cat >>conftest.$ac_ext <<_ACEOF
7549 /* end confdefs.h.  */
7550 #include <$ac_header>
7551 _ACEOF
7552 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7553   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7554   ac_status=$?
7555   grep -v '^ *+' conftest.er1 >conftest.err
7556   rm -f conftest.er1
7557   cat conftest.err >&5
7558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7559   (exit $ac_status); } >/dev/null; then
7560   if test -s conftest.err; then
7561     ac_cpp_err=$ac_c_preproc_warn_flag
7562     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7563   else
7564     ac_cpp_err=
7565   fi
7566 else
7567   ac_cpp_err=yes
7568 fi
7569 if test -z "$ac_cpp_err"; then
7570   ac_header_preproc=yes
7571 else
7572   echo "$as_me: failed program was:" >&5
7573 sed 's/^/| /' conftest.$ac_ext >&5
7574
7575   ac_header_preproc=no
7576 fi
7577 rm -f conftest.err conftest.$ac_ext
7578 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7579 echo "${ECHO_T}$ac_header_preproc" >&6
7580
7581 # So?  What about this header?
7582 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7583   yes:no: )
7584     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7585 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7586     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7587 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7588     ac_header_preproc=yes
7589     ;;
7590   no:yes:* )
7591     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7592 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7593     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
7594 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
7595     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7596 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7597     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
7598 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
7599     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7600 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7601     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7602 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7603     (
7604       cat <<\_ASBOX
7605 ## ------------------------------ ##
7606 ## Report this to bug-cvs@gnu.org ##
7607 ## ------------------------------ ##
7608 _ASBOX
7609     ) |
7610       sed "s/^/$as_me: WARNING:     /" >&2
7611     ;;
7612 esac
7613 echo "$as_me:$LINENO: checking for $ac_header" >&5
7614 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7615 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7616   echo $ECHO_N "(cached) $ECHO_C" >&6
7617 else
7618   eval "$as_ac_Header=\$ac_header_preproc"
7619 fi
7620 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7621 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7622
7623 fi
7624 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7625   cat >>confdefs.h <<_ACEOF
7626 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7627 _ACEOF
7628
7629 fi
7630
7631 done
7632
7633  echo "$as_me:$LINENO: checking whether select hangs on /dev/null fd when timeout is NULL" >&5
7634 echo $ECHO_N "checking whether select hangs on /dev/null fd when timeout is NULL... $ECHO_C" >&6
7635 if test "${ccvs_cv_func_select_hang+set}" = set; then
7636   echo $ECHO_N "(cached) $ECHO_C" >&6
7637 else
7638   if test "$cross_compiling" = yes; then
7639          ccvs_cv_func_select_hang=yes
7640 else
7641   cat >conftest.$ac_ext <<_ACEOF
7642 /* confdefs.h.  */
7643 _ACEOF
7644 cat confdefs.h >>conftest.$ac_ext
7645 cat >>conftest.$ac_ext <<_ACEOF
7646 /* end confdefs.h.  */
7647
7648 #include <stdio.h>
7649 #include <sys/select.h>
7650 #ifdef HAVE_FCNTL_H
7651 # include <fcntl.h>
7652 #endif
7653 #include <errno.h>
7654 int
7655 main ()
7656 {
7657
7658   int numfds;
7659   fd_set readfds;
7660   struct timeval timeout;
7661   int fd = open ("/dev/null", O_RDONLY);
7662
7663   FD_ZERO (&readfds);
7664   FD_SET (fd, &readfds);
7665   timeout.tv_sec = 0;
7666   timeout.tv_usec = 1;
7667
7668   while ((numfds = select (fd + 1, &readfds, NULL, NULL, &timeout)) < 0
7669          && errno == EINTR);
7670   return (numfds <= 0);
7671
7672   ;
7673   return 0;
7674 }
7675 _ACEOF
7676 rm -f conftest$ac_exeext
7677 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7678   (eval $ac_link) 2>&5
7679   ac_status=$?
7680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7681   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7682   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7683   (eval $ac_try) 2>&5
7684   ac_status=$?
7685   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7686   (exit $ac_status); }; }; then
7687   ccvs_cv_func_select_hang=no
7688 else
7689   echo "$as_me: program exited with status $ac_status" >&5
7690 echo "$as_me: failed program was:" >&5
7691 sed 's/^/| /' conftest.$ac_ext >&5
7692
7693 ( exit $ac_status )
7694 ccvs_cv_func_select_hang=yes
7695 fi
7696 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7697 fi
7698
7699 fi
7700 echo "$as_me:$LINENO: result: $ccvs_cv_func_select_hang" >&5
7701 echo "${ECHO_T}$ccvs_cv_func_select_hang" >&6
7702   if test $ccvs_cv_func_select_hang = yes; then
7703
7704
7705
7706 for ac_header in fcntl.h unistd.h
7707 do
7708 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7709 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7710   echo "$as_me:$LINENO: checking for $ac_header" >&5
7711 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7712 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7713   echo $ECHO_N "(cached) $ECHO_C" >&6
7714 fi
7715 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7716 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7717 else
7718   # Is the header compilable?
7719 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7720 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7721 cat >conftest.$ac_ext <<_ACEOF
7722 /* confdefs.h.  */
7723 _ACEOF
7724 cat confdefs.h >>conftest.$ac_ext
7725 cat >>conftest.$ac_ext <<_ACEOF
7726 /* end confdefs.h.  */
7727 $ac_includes_default
7728 #include <$ac_header>
7729 _ACEOF
7730 rm -f conftest.$ac_objext
7731 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7732   (eval $ac_compile) 2>conftest.er1
7733   ac_status=$?
7734   grep -v '^ *+' conftest.er1 >conftest.err
7735   rm -f conftest.er1
7736   cat conftest.err >&5
7737   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7738   (exit $ac_status); } &&
7739          { ac_try='test -z "$ac_c_werror_flag"
7740                          || test ! -s conftest.err'
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); }; } &&
7746          { ac_try='test -s conftest.$ac_objext'
7747   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7748   (eval $ac_try) 2>&5
7749   ac_status=$?
7750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7751   (exit $ac_status); }; }; then
7752   ac_header_compiler=yes
7753 else
7754   echo "$as_me: failed program was:" >&5
7755 sed 's/^/| /' conftest.$ac_ext >&5
7756
7757 ac_header_compiler=no
7758 fi
7759 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7760 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7761 echo "${ECHO_T}$ac_header_compiler" >&6
7762
7763 # Is the header present?
7764 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7765 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7766 cat >conftest.$ac_ext <<_ACEOF
7767 /* confdefs.h.  */
7768 _ACEOF
7769 cat confdefs.h >>conftest.$ac_ext
7770 cat >>conftest.$ac_ext <<_ACEOF
7771 /* end confdefs.h.  */
7772 #include <$ac_header>
7773 _ACEOF
7774 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7775   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7776   ac_status=$?
7777   grep -v '^ *+' conftest.er1 >conftest.err
7778   rm -f conftest.er1
7779   cat conftest.err >&5
7780   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7781   (exit $ac_status); } >/dev/null; then
7782   if test -s conftest.err; then
7783     ac_cpp_err=$ac_c_preproc_warn_flag
7784     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7785   else
7786     ac_cpp_err=
7787   fi
7788 else
7789   ac_cpp_err=yes
7790 fi
7791 if test -z "$ac_cpp_err"; then
7792   ac_header_preproc=yes
7793 else
7794   echo "$as_me: failed program was:" >&5
7795 sed 's/^/| /' conftest.$ac_ext >&5
7796
7797   ac_header_preproc=no
7798 fi
7799 rm -f conftest.err conftest.$ac_ext
7800 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7801 echo "${ECHO_T}$ac_header_preproc" >&6
7802
7803 # So?  What about this header?
7804 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7805   yes:no: )
7806     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7807 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7808     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7809 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7810     ac_header_preproc=yes
7811     ;;
7812   no:yes:* )
7813     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7814 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7815     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
7816 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
7817     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7818 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7819     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
7820 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
7821     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7822 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7823     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7824 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7825     (
7826       cat <<\_ASBOX
7827 ## ------------------------------ ##
7828 ## Report this to bug-cvs@gnu.org ##
7829 ## ------------------------------ ##
7830 _ASBOX
7831     ) |
7832       sed "s/^/$as_me: WARNING:     /" >&2
7833     ;;
7834 esac
7835 echo "$as_me:$LINENO: checking for $ac_header" >&5
7836 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7837 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7838   echo $ECHO_N "(cached) $ECHO_C" >&6
7839 else
7840   eval "$as_ac_Header=\$ac_header_preproc"
7841 fi
7842 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7843 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7844
7845 fi
7846 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7847   cat >>confdefs.h <<_ACEOF
7848 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7849 _ACEOF
7850
7851 fi
7852
7853 done
7854
7855
7856     case $LIBOBJS in
7857     "sunos57-select.$ac_objext"   | \
7858   *" sunos57-select.$ac_objext"   | \
7859     "sunos57-select.$ac_objext "* | \
7860   *" sunos57-select.$ac_objext "* ) ;;
7861   *) LIBOBJS="$LIBOBJS sunos57-select.$ac_objext" ;;
7862 esac
7863
7864
7865 cat >>confdefs.h <<\_ACEOF
7866 #define select rpl_select
7867 _ACEOF
7868
7869   fi
7870
7871
7872 #
7873 # Begin GNULIB stuff.
7874 #
7875
7876 # Look for functions from GNULIB and replace with versions in lib/ when
7877 # necessary.
7878 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
7879 # for constant arguments.  Useless!
7880 echo "$as_me:$LINENO: checking for working alloca.h" >&5
7881 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
7882 if test "${ac_cv_working_alloca_h+set}" = set; then
7883   echo $ECHO_N "(cached) $ECHO_C" >&6
7884 else
7885   cat >conftest.$ac_ext <<_ACEOF
7886 /* confdefs.h.  */
7887 _ACEOF
7888 cat confdefs.h >>conftest.$ac_ext
7889 cat >>conftest.$ac_ext <<_ACEOF
7890 /* end confdefs.h.  */
7891 #include <alloca.h>
7892 int
7893 main ()
7894 {
7895 char *p = (char *) alloca (2 * sizeof (int));
7896   ;
7897   return 0;
7898 }
7899 _ACEOF
7900 rm -f conftest.$ac_objext conftest$ac_exeext
7901 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7902   (eval $ac_link) 2>conftest.er1
7903   ac_status=$?
7904   grep -v '^ *+' conftest.er1 >conftest.err
7905   rm -f conftest.er1
7906   cat conftest.err >&5
7907   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7908   (exit $ac_status); } &&
7909          { ac_try='test -z "$ac_c_werror_flag"
7910                          || test ! -s conftest.err'
7911   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7912   (eval $ac_try) 2>&5
7913   ac_status=$?
7914   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7915   (exit $ac_status); }; } &&
7916          { ac_try='test -s conftest$ac_exeext'
7917   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7918   (eval $ac_try) 2>&5
7919   ac_status=$?
7920   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7921   (exit $ac_status); }; }; then
7922   ac_cv_working_alloca_h=yes
7923 else
7924   echo "$as_me: failed program was:" >&5
7925 sed 's/^/| /' conftest.$ac_ext >&5
7926
7927 ac_cv_working_alloca_h=no
7928 fi
7929 rm -f conftest.err conftest.$ac_objext \
7930       conftest$ac_exeext conftest.$ac_ext
7931 fi
7932 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
7933 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
7934 if test $ac_cv_working_alloca_h = yes; then
7935
7936 cat >>confdefs.h <<\_ACEOF
7937 #define HAVE_ALLOCA_H 1
7938 _ACEOF
7939
7940 fi
7941
7942 echo "$as_me:$LINENO: checking for alloca" >&5
7943 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
7944 if test "${ac_cv_func_alloca_works+set}" = set; then
7945   echo $ECHO_N "(cached) $ECHO_C" >&6
7946 else
7947   cat >conftest.$ac_ext <<_ACEOF
7948 /* confdefs.h.  */
7949 _ACEOF
7950 cat confdefs.h >>conftest.$ac_ext
7951 cat >>conftest.$ac_ext <<_ACEOF
7952 /* end confdefs.h.  */
7953 #ifdef __GNUC__
7954 # define alloca __builtin_alloca
7955 #else
7956 # ifdef _MSC_VER
7957 #  include <malloc.h>
7958 #  define alloca _alloca
7959 # else
7960 #  if HAVE_ALLOCA_H
7961 #   include <alloca.h>
7962 #  else
7963 #   ifdef _AIX
7964  #pragma alloca
7965 #   else
7966 #    ifndef alloca /* predefined by HP cc +Olibcalls */
7967 char *alloca ();
7968 #    endif
7969 #   endif
7970 #  endif
7971 # endif
7972 #endif
7973
7974 int
7975 main ()
7976 {
7977 char *p = (char *) alloca (1);
7978   ;
7979   return 0;
7980 }
7981 _ACEOF
7982 rm -f conftest.$ac_objext conftest$ac_exeext
7983 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7984   (eval $ac_link) 2>conftest.er1
7985   ac_status=$?
7986   grep -v '^ *+' conftest.er1 >conftest.err
7987   rm -f conftest.er1
7988   cat conftest.err >&5
7989   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7990   (exit $ac_status); } &&
7991          { ac_try='test -z "$ac_c_werror_flag"
7992                          || test ! -s conftest.err'
7993   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7994   (eval $ac_try) 2>&5
7995   ac_status=$?
7996   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7997   (exit $ac_status); }; } &&
7998          { ac_try='test -s conftest$ac_exeext'
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_cv_func_alloca_works=yes
8005 else
8006   echo "$as_me: failed program was:" >&5
8007 sed 's/^/| /' conftest.$ac_ext >&5
8008
8009 ac_cv_func_alloca_works=no
8010 fi
8011 rm -f conftest.err conftest.$ac_objext \
8012       conftest$ac_exeext conftest.$ac_ext
8013 fi
8014 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
8015 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
8016
8017 if test $ac_cv_func_alloca_works = yes; then
8018
8019 cat >>confdefs.h <<\_ACEOF
8020 #define HAVE_ALLOCA 1
8021 _ACEOF
8022
8023 else
8024   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
8025 # that cause trouble.  Some versions do not even contain alloca or
8026 # contain a buggy version.  If you still want to use their alloca,
8027 # use ar to extract alloca.o from them instead of compiling alloca.c.
8028
8029 ALLOCA=alloca.$ac_objext
8030
8031 cat >>confdefs.h <<\_ACEOF
8032 #define C_ALLOCA 1
8033 _ACEOF
8034
8035
8036 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
8037 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
8038 if test "${ac_cv_os_cray+set}" = set; then
8039   echo $ECHO_N "(cached) $ECHO_C" >&6
8040 else
8041   cat >conftest.$ac_ext <<_ACEOF
8042 /* confdefs.h.  */
8043 _ACEOF
8044 cat confdefs.h >>conftest.$ac_ext
8045 cat >>conftest.$ac_ext <<_ACEOF
8046 /* end confdefs.h.  */
8047 #if defined(CRAY) && ! defined(CRAY2)
8048 webecray
8049 #else
8050 wenotbecray
8051 #endif
8052
8053 _ACEOF
8054 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8055   $EGREP "webecray" >/dev/null 2>&1; then
8056   ac_cv_os_cray=yes
8057 else
8058   ac_cv_os_cray=no
8059 fi
8060 rm -f conftest*
8061
8062 fi
8063 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
8064 echo "${ECHO_T}$ac_cv_os_cray" >&6
8065 if test $ac_cv_os_cray = yes; then
8066   for ac_func in _getb67 GETB67 getb67; do
8067     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8068 echo "$as_me:$LINENO: checking for $ac_func" >&5
8069 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8070 if eval "test \"\${$as_ac_var+set}\" = set"; then
8071   echo $ECHO_N "(cached) $ECHO_C" >&6
8072 else
8073   cat >conftest.$ac_ext <<_ACEOF
8074 /* confdefs.h.  */
8075 _ACEOF
8076 cat confdefs.h >>conftest.$ac_ext
8077 cat >>conftest.$ac_ext <<_ACEOF
8078 /* end confdefs.h.  */
8079 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8080    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8081 #define $ac_func innocuous_$ac_func
8082
8083 /* System header to define __stub macros and hopefully few prototypes,
8084     which can conflict with char $ac_func (); below.
8085     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8086     <limits.h> exists even on freestanding compilers.  */
8087
8088 #ifdef __STDC__
8089 # include <limits.h>
8090 #else
8091 # include <assert.h>
8092 #endif
8093
8094 #undef $ac_func
8095
8096 /* Override any gcc2 internal prototype to avoid an error.  */
8097 #ifdef __cplusplus
8098 extern "C"
8099 {
8100 #endif
8101 /* We use char because int might match the return type of a gcc2
8102    builtin and then its argument prototype would still apply.  */
8103 char $ac_func ();
8104 /* The GNU C library defines this for functions which it implements
8105     to always fail with ENOSYS.  Some functions are actually named
8106     something starting with __ and the normal name is an alias.  */
8107 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8108 choke me
8109 #else
8110 char (*f) () = $ac_func;
8111 #endif
8112 #ifdef __cplusplus
8113 }
8114 #endif
8115
8116 int
8117 main ()
8118 {
8119 return f != $ac_func;
8120   ;
8121   return 0;
8122 }
8123 _ACEOF
8124 rm -f conftest.$ac_objext conftest$ac_exeext
8125 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8126   (eval $ac_link) 2>conftest.er1
8127   ac_status=$?
8128   grep -v '^ *+' conftest.er1 >conftest.err
8129   rm -f conftest.er1
8130   cat conftest.err >&5
8131   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8132   (exit $ac_status); } &&
8133          { ac_try='test -z "$ac_c_werror_flag"
8134                          || test ! -s conftest.err'
8135   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8136   (eval $ac_try) 2>&5
8137   ac_status=$?
8138   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8139   (exit $ac_status); }; } &&
8140          { ac_try='test -s conftest$ac_exeext'
8141   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8142   (eval $ac_try) 2>&5
8143   ac_status=$?
8144   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8145   (exit $ac_status); }; }; then
8146   eval "$as_ac_var=yes"
8147 else
8148   echo "$as_me: failed program was:" >&5
8149 sed 's/^/| /' conftest.$ac_ext >&5
8150
8151 eval "$as_ac_var=no"
8152 fi
8153 rm -f conftest.err conftest.$ac_objext \
8154       conftest$ac_exeext conftest.$ac_ext
8155 fi
8156 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8157 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8158 if test `eval echo '${'$as_ac_var'}'` = yes; then
8159
8160 cat >>confdefs.h <<_ACEOF
8161 #define CRAY_STACKSEG_END $ac_func
8162 _ACEOF
8163
8164     break
8165 fi
8166
8167   done
8168 fi
8169
8170 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
8171 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
8172 if test "${ac_cv_c_stack_direction+set}" = set; then
8173   echo $ECHO_N "(cached) $ECHO_C" >&6
8174 else
8175   if test "$cross_compiling" = yes; then
8176   ac_cv_c_stack_direction=0
8177 else
8178   cat >conftest.$ac_ext <<_ACEOF
8179 /* confdefs.h.  */
8180 _ACEOF
8181 cat confdefs.h >>conftest.$ac_ext
8182 cat >>conftest.$ac_ext <<_ACEOF
8183 /* end confdefs.h.  */
8184 int
8185 find_stack_direction ()
8186 {
8187   static char *addr = 0;
8188   auto char dummy;
8189   if (addr == 0)
8190     {
8191       addr = &dummy;
8192       return find_stack_direction ();
8193     }
8194   else
8195     return (&dummy > addr) ? 1 : -1;
8196 }
8197
8198 int
8199 main ()
8200 {
8201   exit (find_stack_direction () < 0);
8202 }
8203 _ACEOF
8204 rm -f conftest$ac_exeext
8205 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8206   (eval $ac_link) 2>&5
8207   ac_status=$?
8208   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8209   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8210   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8211   (eval $ac_try) 2>&5
8212   ac_status=$?
8213   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8214   (exit $ac_status); }; }; then
8215   ac_cv_c_stack_direction=1
8216 else
8217   echo "$as_me: program exited with status $ac_status" >&5
8218 echo "$as_me: failed program was:" >&5
8219 sed 's/^/| /' conftest.$ac_ext >&5
8220
8221 ( exit $ac_status )
8222 ac_cv_c_stack_direction=-1
8223 fi
8224 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8225 fi
8226 fi
8227 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
8228 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
8229
8230 cat >>confdefs.h <<_ACEOF
8231 #define STACK_DIRECTION $ac_cv_c_stack_direction
8232 _ACEOF
8233
8234
8235 fi
8236
8237
8238
8239 for ac_header in stdlib.h
8240 do
8241 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8242 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8243   echo "$as_me:$LINENO: checking for $ac_header" >&5
8244 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8245 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8246   echo $ECHO_N "(cached) $ECHO_C" >&6
8247 fi
8248 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8249 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8250 else
8251   # Is the header compilable?
8252 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8253 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8254 cat >conftest.$ac_ext <<_ACEOF
8255 /* confdefs.h.  */
8256 _ACEOF
8257 cat confdefs.h >>conftest.$ac_ext
8258 cat >>conftest.$ac_ext <<_ACEOF
8259 /* end confdefs.h.  */
8260 $ac_includes_default
8261 #include <$ac_header>
8262 _ACEOF
8263 rm -f conftest.$ac_objext
8264 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8265   (eval $ac_compile) 2>conftest.er1
8266   ac_status=$?
8267   grep -v '^ *+' conftest.er1 >conftest.err
8268   rm -f conftest.er1
8269   cat conftest.err >&5
8270   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8271   (exit $ac_status); } &&
8272          { ac_try='test -z "$ac_c_werror_flag"
8273                          || test ! -s conftest.err'
8274   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8275   (eval $ac_try) 2>&5
8276   ac_status=$?
8277   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8278   (exit $ac_status); }; } &&
8279          { ac_try='test -s conftest.$ac_objext'
8280   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8281   (eval $ac_try) 2>&5
8282   ac_status=$?
8283   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8284   (exit $ac_status); }; }; then
8285   ac_header_compiler=yes
8286 else
8287   echo "$as_me: failed program was:" >&5
8288 sed 's/^/| /' conftest.$ac_ext >&5
8289
8290 ac_header_compiler=no
8291 fi
8292 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8293 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8294 echo "${ECHO_T}$ac_header_compiler" >&6
8295
8296 # Is the header present?
8297 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8298 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8299 cat >conftest.$ac_ext <<_ACEOF
8300 /* confdefs.h.  */
8301 _ACEOF
8302 cat confdefs.h >>conftest.$ac_ext
8303 cat >>conftest.$ac_ext <<_ACEOF
8304 /* end confdefs.h.  */
8305 #include <$ac_header>
8306 _ACEOF
8307 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8308   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8309   ac_status=$?
8310   grep -v '^ *+' conftest.er1 >conftest.err
8311   rm -f conftest.er1
8312   cat conftest.err >&5
8313   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8314   (exit $ac_status); } >/dev/null; then
8315   if test -s conftest.err; then
8316     ac_cpp_err=$ac_c_preproc_warn_flag
8317     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8318   else
8319     ac_cpp_err=
8320   fi
8321 else
8322   ac_cpp_err=yes
8323 fi
8324 if test -z "$ac_cpp_err"; then
8325   ac_header_preproc=yes
8326 else
8327   echo "$as_me: failed program was:" >&5
8328 sed 's/^/| /' conftest.$ac_ext >&5
8329
8330   ac_header_preproc=no
8331 fi
8332 rm -f conftest.err conftest.$ac_ext
8333 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8334 echo "${ECHO_T}$ac_header_preproc" >&6
8335
8336 # So?  What about this header?
8337 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8338   yes:no: )
8339     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8340 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8341     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8342 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8343     ac_header_preproc=yes
8344     ;;
8345   no:yes:* )
8346     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8347 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8348     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8349 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8350     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8351 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8352     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8353 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8354     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8355 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8356     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8357 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8358     (
8359       cat <<\_ASBOX
8360 ## ------------------------------ ##
8361 ## Report this to bug-cvs@gnu.org ##
8362 ## ------------------------------ ##
8363 _ASBOX
8364     ) |
8365       sed "s/^/$as_me: WARNING:     /" >&2
8366     ;;
8367 esac
8368 echo "$as_me:$LINENO: checking for $ac_header" >&5
8369 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8370 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8371   echo $ECHO_N "(cached) $ECHO_C" >&6
8372 else
8373   eval "$as_ac_Header=\$ac_header_preproc"
8374 fi
8375 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8376 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8377
8378 fi
8379 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8380   cat >>confdefs.h <<_ACEOF
8381 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8382 _ACEOF
8383
8384 fi
8385
8386 done
8387
8388 echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
8389 echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6
8390 if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
8391   echo $ECHO_N "(cached) $ECHO_C" >&6
8392 else
8393   if test "$cross_compiling" = yes; then
8394   ac_cv_func_malloc_0_nonnull=no
8395 else
8396   cat >conftest.$ac_ext <<_ACEOF
8397 /* confdefs.h.  */
8398 _ACEOF
8399 cat confdefs.h >>conftest.$ac_ext
8400 cat >>conftest.$ac_ext <<_ACEOF
8401 /* end confdefs.h.  */
8402 #if STDC_HEADERS || HAVE_STDLIB_H
8403 # include <stdlib.h>
8404 #else
8405 char *malloc ();
8406 #endif
8407
8408 int
8409 main ()
8410 {
8411 exit (malloc (0) ? 0 : 1);
8412   ;
8413   return 0;
8414 }
8415 _ACEOF
8416 rm -f conftest$ac_exeext
8417 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8418   (eval $ac_link) 2>&5
8419   ac_status=$?
8420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8421   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8422   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8423   (eval $ac_try) 2>&5
8424   ac_status=$?
8425   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8426   (exit $ac_status); }; }; then
8427   ac_cv_func_malloc_0_nonnull=yes
8428 else
8429   echo "$as_me: program exited with status $ac_status" >&5
8430 echo "$as_me: failed program was:" >&5
8431 sed 's/^/| /' conftest.$ac_ext >&5
8432
8433 ( exit $ac_status )
8434 ac_cv_func_malloc_0_nonnull=no
8435 fi
8436 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8437 fi
8438 fi
8439 echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
8440 echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6
8441 if test $ac_cv_func_malloc_0_nonnull = yes; then
8442   gl_cv_func_malloc_0_nonnull=1
8443 else
8444   gl_cv_func_malloc_0_nonnull=0
8445 fi
8446
8447
8448
8449 cat >>confdefs.h <<_ACEOF
8450 #define MALLOC_0_IS_NONNULL $gl_cv_func_malloc_0_nonnull
8451 _ACEOF
8452
8453
8454
8455   echo "$as_me:$LINENO: checking for long long" >&5
8456 echo $ECHO_N "checking for long long... $ECHO_C" >&6
8457 if test "${ac_cv_type_long_long+set}" = set; then
8458   echo $ECHO_N "(cached) $ECHO_C" >&6
8459 else
8460   cat >conftest.$ac_ext <<_ACEOF
8461 /* confdefs.h.  */
8462 _ACEOF
8463 cat confdefs.h >>conftest.$ac_ext
8464 cat >>conftest.$ac_ext <<_ACEOF
8465 /* end confdefs.h.  */
8466 long long ll = 1LL; int i = 63;
8467 int
8468 main ()
8469 {
8470 long long llmax = (long long) -1;
8471      return ll << i | ll >> i | llmax / ll | llmax % ll;
8472   ;
8473   return 0;
8474 }
8475 _ACEOF
8476 rm -f conftest.$ac_objext conftest$ac_exeext
8477 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8478   (eval $ac_link) 2>conftest.er1
8479   ac_status=$?
8480   grep -v '^ *+' conftest.er1 >conftest.err
8481   rm -f conftest.er1
8482   cat conftest.err >&5
8483   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8484   (exit $ac_status); } &&
8485          { ac_try='test -z "$ac_c_werror_flag"
8486                          || test ! -s conftest.err'
8487   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8488   (eval $ac_try) 2>&5
8489   ac_status=$?
8490   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8491   (exit $ac_status); }; } &&
8492          { ac_try='test -s conftest$ac_exeext'
8493   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8494   (eval $ac_try) 2>&5
8495   ac_status=$?
8496   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8497   (exit $ac_status); }; }; then
8498   ac_cv_type_long_long=yes
8499 else
8500   echo "$as_me: failed program was:" >&5
8501 sed 's/^/| /' conftest.$ac_ext >&5
8502
8503 ac_cv_type_long_long=no
8504 fi
8505 rm -f conftest.err conftest.$ac_objext \
8506       conftest$ac_exeext conftest.$ac_ext
8507 fi
8508 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
8509 echo "${ECHO_T}$ac_cv_type_long_long" >&6
8510   if test $ac_cv_type_long_long = yes; then
8511
8512 cat >>confdefs.h <<\_ACEOF
8513 #define HAVE_LONG_LONG 1
8514 _ACEOF
8515
8516   fi
8517
8518
8519   echo "$as_me:$LINENO: checking for long double" >&5
8520 echo $ECHO_N "checking for long double... $ECHO_C" >&6
8521 if test "${gt_cv_c_long_double+set}" = set; then
8522   echo $ECHO_N "(cached) $ECHO_C" >&6
8523 else
8524   if test "$GCC" = yes; then
8525        gt_cv_c_long_double=yes
8526      else
8527        cat >conftest.$ac_ext <<_ACEOF
8528 /* confdefs.h.  */
8529 _ACEOF
8530 cat confdefs.h >>conftest.$ac_ext
8531 cat >>conftest.$ac_ext <<_ACEOF
8532 /* end confdefs.h.  */
8533
8534          /* The Stardent Vistra knows sizeof(long double), but does not support it.  */
8535          long double foo = 0.0;
8536          /* On Ultrix 4.3 cc, long double is 4 and double is 8.  */
8537          int array [2*(sizeof(long double) >= sizeof(double)) - 1];
8538
8539 int
8540 main ()
8541 {
8542
8543   ;
8544   return 0;
8545 }
8546 _ACEOF
8547 rm -f conftest.$ac_objext
8548 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8549   (eval $ac_compile) 2>conftest.er1
8550   ac_status=$?
8551   grep -v '^ *+' conftest.er1 >conftest.err
8552   rm -f conftest.er1
8553   cat conftest.err >&5
8554   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8555   (exit $ac_status); } &&
8556          { ac_try='test -z "$ac_c_werror_flag"
8557                          || test ! -s conftest.err'
8558   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8559   (eval $ac_try) 2>&5
8560   ac_status=$?
8561   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8562   (exit $ac_status); }; } &&
8563          { ac_try='test -s conftest.$ac_objext'
8564   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8565   (eval $ac_try) 2>&5
8566   ac_status=$?
8567   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8568   (exit $ac_status); }; }; then
8569   gt_cv_c_long_double=yes
8570 else
8571   echo "$as_me: failed program was:" >&5
8572 sed 's/^/| /' conftest.$ac_ext >&5
8573
8574 gt_cv_c_long_double=no
8575 fi
8576 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8577      fi
8578 fi
8579 echo "$as_me:$LINENO: result: $gt_cv_c_long_double" >&5
8580 echo "${ECHO_T}$gt_cv_c_long_double" >&6
8581   if test $gt_cv_c_long_double = yes; then
8582
8583 cat >>confdefs.h <<\_ACEOF
8584 #define HAVE_LONG_DOUBLE 1
8585 _ACEOF
8586
8587   fi
8588
8589 echo "$as_me:$LINENO: checking for stdbool.h that conforms to C99" >&5
8590 echo $ECHO_N "checking for stdbool.h that conforms to C99... $ECHO_C" >&6
8591 if test "${ac_cv_header_stdbool_h+set}" = set; then
8592   echo $ECHO_N "(cached) $ECHO_C" >&6
8593 else
8594   cat >conftest.$ac_ext <<_ACEOF
8595 /* confdefs.h.  */
8596 _ACEOF
8597 cat confdefs.h >>conftest.$ac_ext
8598 cat >>conftest.$ac_ext <<_ACEOF
8599 /* end confdefs.h.  */
8600
8601           #include <stdbool.h>
8602           #ifndef bool
8603            "error: bool is not defined"
8604           #endif
8605           #ifndef false
8606            "error: false is not defined"
8607           #endif
8608           #if false
8609            "error: false is not 0"
8610           #endif
8611           #ifndef true
8612            "error: true is not defined"
8613           #endif
8614           #if true != 1
8615            "error: true is not 1"
8616           #endif
8617           #ifndef __bool_true_false_are_defined
8618            "error: __bool_true_false_are_defined is not defined"
8619           #endif
8620
8621           struct s { _Bool s: 1; _Bool t; } s;
8622
8623           char a[true == 1 ? 1 : -1];
8624           char b[false == 0 ? 1 : -1];
8625           char c[__bool_true_false_are_defined == 1 ? 1 : -1];
8626           char d[(bool) -0.5 == true ? 1 : -1];
8627           bool e = &s;
8628           char f[(_Bool) -0.0 == false ? 1 : -1];
8629           char g[true];
8630           char h[sizeof (_Bool)];
8631           char i[sizeof s.t];
8632           enum { j = false, k = true, l = false * true, m = true * 256 };
8633           _Bool n[m];
8634           char o[sizeof n == m * sizeof n[0] ? 1 : -1];
8635
8636 int
8637 main ()
8638 {
8639
8640           return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !j + !k + !l
8641                   + !m + !n + !o);
8642
8643   ;
8644   return 0;
8645 }
8646 _ACEOF
8647 rm -f conftest.$ac_objext
8648 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8649   (eval $ac_compile) 2>conftest.er1
8650   ac_status=$?
8651   grep -v '^ *+' conftest.er1 >conftest.err
8652   rm -f conftest.er1
8653   cat conftest.err >&5
8654   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8655   (exit $ac_status); } &&
8656          { ac_try='test -z "$ac_c_werror_flag"
8657                          || test ! -s conftest.err'
8658   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8659   (eval $ac_try) 2>&5
8660   ac_status=$?
8661   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8662   (exit $ac_status); }; } &&
8663          { ac_try='test -s conftest.$ac_objext'
8664   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8665   (eval $ac_try) 2>&5
8666   ac_status=$?
8667   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8668   (exit $ac_status); }; }; then
8669   ac_cv_header_stdbool_h=yes
8670 else
8671   echo "$as_me: failed program was:" >&5
8672 sed 's/^/| /' conftest.$ac_ext >&5
8673
8674 ac_cv_header_stdbool_h=no
8675 fi
8676 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8677 fi
8678 echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5
8679 echo "${ECHO_T}$ac_cv_header_stdbool_h" >&6
8680    echo "$as_me:$LINENO: checking for _Bool" >&5
8681 echo $ECHO_N "checking for _Bool... $ECHO_C" >&6
8682 if test "${ac_cv_type__Bool+set}" = set; then
8683   echo $ECHO_N "(cached) $ECHO_C" >&6
8684 else
8685   cat >conftest.$ac_ext <<_ACEOF
8686 /* confdefs.h.  */
8687 _ACEOF
8688 cat confdefs.h >>conftest.$ac_ext
8689 cat >>conftest.$ac_ext <<_ACEOF
8690 /* end confdefs.h.  */
8691 $ac_includes_default
8692 int
8693 main ()
8694 {
8695 if ((_Bool *) 0)
8696   return 0;
8697 if (sizeof (_Bool))
8698   return 0;
8699   ;
8700   return 0;
8701 }
8702 _ACEOF
8703 rm -f conftest.$ac_objext
8704 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8705   (eval $ac_compile) 2>conftest.er1
8706   ac_status=$?
8707   grep -v '^ *+' conftest.er1 >conftest.err
8708   rm -f conftest.er1
8709   cat conftest.err >&5
8710   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8711   (exit $ac_status); } &&
8712          { ac_try='test -z "$ac_c_werror_flag"
8713                          || test ! -s conftest.err'
8714   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8715   (eval $ac_try) 2>&5
8716   ac_status=$?
8717   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8718   (exit $ac_status); }; } &&
8719          { ac_try='test -s conftest.$ac_objext'
8720   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8721   (eval $ac_try) 2>&5
8722   ac_status=$?
8723   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8724   (exit $ac_status); }; }; then
8725   ac_cv_type__Bool=yes
8726 else
8727   echo "$as_me: failed program was:" >&5
8728 sed 's/^/| /' conftest.$ac_ext >&5
8729
8730 ac_cv_type__Bool=no
8731 fi
8732 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8733 fi
8734 echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5
8735 echo "${ECHO_T}$ac_cv_type__Bool" >&6
8736 if test $ac_cv_type__Bool = yes; then
8737
8738 cat >>confdefs.h <<_ACEOF
8739 #define HAVE__BOOL 1
8740 _ACEOF
8741
8742
8743 fi
8744
8745    if test $ac_cv_header_stdbool_h = yes; then
8746
8747 cat >>confdefs.h <<\_ACEOF
8748 #define HAVE_STDBOOL_H 1
8749 _ACEOF
8750
8751    fi
8752
8753
8754
8755
8756
8757 for ac_func in $gl_func_list
8758 do
8759 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8760 echo "$as_me:$LINENO: checking for $ac_func" >&5
8761 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8762 if eval "test \"\${$as_ac_var+set}\" = set"; then
8763   echo $ECHO_N "(cached) $ECHO_C" >&6
8764 else
8765   cat >conftest.$ac_ext <<_ACEOF
8766 /* confdefs.h.  */
8767 _ACEOF
8768 cat confdefs.h >>conftest.$ac_ext
8769 cat >>conftest.$ac_ext <<_ACEOF
8770 /* end confdefs.h.  */
8771 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8772    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8773 #define $ac_func innocuous_$ac_func
8774
8775 /* System header to define __stub macros and hopefully few prototypes,
8776     which can conflict with char $ac_func (); below.
8777     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8778     <limits.h> exists even on freestanding compilers.  */
8779
8780 #ifdef __STDC__
8781 # include <limits.h>
8782 #else
8783 # include <assert.h>
8784 #endif
8785
8786 #undef $ac_func
8787
8788 /* Override any gcc2 internal prototype to avoid an error.  */
8789 #ifdef __cplusplus
8790 extern "C"
8791 {
8792 #endif
8793 /* We use char because int might match the return type of a gcc2
8794    builtin and then its argument prototype would still apply.  */
8795 char $ac_func ();
8796 /* The GNU C library defines this for functions which it implements
8797     to always fail with ENOSYS.  Some functions are actually named
8798     something starting with __ and the normal name is an alias.  */
8799 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8800 choke me
8801 #else
8802 char (*f) () = $ac_func;
8803 #endif
8804 #ifdef __cplusplus
8805 }
8806 #endif
8807
8808 int
8809 main ()
8810 {
8811 return f != $ac_func;
8812   ;
8813   return 0;
8814 }
8815 _ACEOF
8816 rm -f conftest.$ac_objext conftest$ac_exeext
8817 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8818   (eval $ac_link) 2>conftest.er1
8819   ac_status=$?
8820   grep -v '^ *+' conftest.er1 >conftest.err
8821   rm -f conftest.er1
8822   cat conftest.err >&5
8823   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8824   (exit $ac_status); } &&
8825          { ac_try='test -z "$ac_c_werror_flag"
8826                          || test ! -s conftest.err'
8827   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8828   (eval $ac_try) 2>&5
8829   ac_status=$?
8830   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8831   (exit $ac_status); }; } &&
8832          { ac_try='test -s conftest$ac_exeext'
8833   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8834   (eval $ac_try) 2>&5
8835   ac_status=$?
8836   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8837   (exit $ac_status); }; }; then
8838   eval "$as_ac_var=yes"
8839 else
8840   echo "$as_me: failed program was:" >&5
8841 sed 's/^/| /' conftest.$ac_ext >&5
8842
8843 eval "$as_ac_var=no"
8844 fi
8845 rm -f conftest.err conftest.$ac_objext \
8846       conftest$ac_exeext conftest.$ac_ext
8847 fi
8848 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8849 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8850 if test `eval echo '${'$as_ac_var'}'` = yes; then
8851   cat >>confdefs.h <<_ACEOF
8852 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8853 _ACEOF
8854
8855 fi
8856 done
8857
8858
8859
8860
8861
8862
8863
8864
8865
8866
8867
8868 for ac_header in $gl_header_list
8869 do
8870 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8871 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8872   echo "$as_me:$LINENO: checking for $ac_header" >&5
8873 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8874 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8875   echo $ECHO_N "(cached) $ECHO_C" >&6
8876 fi
8877 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8878 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8879 else
8880   # Is the header compilable?
8881 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8882 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8883 cat >conftest.$ac_ext <<_ACEOF
8884 /* confdefs.h.  */
8885 _ACEOF
8886 cat confdefs.h >>conftest.$ac_ext
8887 cat >>conftest.$ac_ext <<_ACEOF
8888 /* end confdefs.h.  */
8889 $ac_includes_default
8890 #include <$ac_header>
8891 _ACEOF
8892 rm -f conftest.$ac_objext
8893 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8894   (eval $ac_compile) 2>conftest.er1
8895   ac_status=$?
8896   grep -v '^ *+' conftest.er1 >conftest.err
8897   rm -f conftest.er1
8898   cat conftest.err >&5
8899   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8900   (exit $ac_status); } &&
8901          { ac_try='test -z "$ac_c_werror_flag"
8902                          || test ! -s conftest.err'
8903   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8904   (eval $ac_try) 2>&5
8905   ac_status=$?
8906   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8907   (exit $ac_status); }; } &&
8908          { ac_try='test -s conftest.$ac_objext'
8909   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8910   (eval $ac_try) 2>&5
8911   ac_status=$?
8912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8913   (exit $ac_status); }; }; then
8914   ac_header_compiler=yes
8915 else
8916   echo "$as_me: failed program was:" >&5
8917 sed 's/^/| /' conftest.$ac_ext >&5
8918
8919 ac_header_compiler=no
8920 fi
8921 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8922 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8923 echo "${ECHO_T}$ac_header_compiler" >&6
8924
8925 # Is the header present?
8926 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8927 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8928 cat >conftest.$ac_ext <<_ACEOF
8929 /* confdefs.h.  */
8930 _ACEOF
8931 cat confdefs.h >>conftest.$ac_ext
8932 cat >>conftest.$ac_ext <<_ACEOF
8933 /* end confdefs.h.  */
8934 #include <$ac_header>
8935 _ACEOF
8936 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8937   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8938   ac_status=$?
8939   grep -v '^ *+' conftest.er1 >conftest.err
8940   rm -f conftest.er1
8941   cat conftest.err >&5
8942   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8943   (exit $ac_status); } >/dev/null; then
8944   if test -s conftest.err; then
8945     ac_cpp_err=$ac_c_preproc_warn_flag
8946     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8947   else
8948     ac_cpp_err=
8949   fi
8950 else
8951   ac_cpp_err=yes
8952 fi
8953 if test -z "$ac_cpp_err"; then
8954   ac_header_preproc=yes
8955 else
8956   echo "$as_me: failed program was:" >&5
8957 sed 's/^/| /' conftest.$ac_ext >&5
8958
8959   ac_header_preproc=no
8960 fi
8961 rm -f conftest.err conftest.$ac_ext
8962 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8963 echo "${ECHO_T}$ac_header_preproc" >&6
8964
8965 # So?  What about this header?
8966 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8967   yes:no: )
8968     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8969 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8970     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8971 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8972     ac_header_preproc=yes
8973     ;;
8974   no:yes:* )
8975     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8976 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8977     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8978 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8979     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8980 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8981     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8982 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8983     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8984 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8985     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8986 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8987     (
8988       cat <<\_ASBOX
8989 ## ------------------------------ ##
8990 ## Report this to bug-cvs@gnu.org ##
8991 ## ------------------------------ ##
8992 _ASBOX
8993     ) |
8994       sed "s/^/$as_me: WARNING:     /" >&2
8995     ;;
8996 esac
8997 echo "$as_me:$LINENO: checking for $ac_header" >&5
8998 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8999 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9000   echo $ECHO_N "(cached) $ECHO_C" >&6
9001 else
9002   eval "$as_ac_Header=\$ac_header_preproc"
9003 fi
9004 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9005 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9006
9007 fi
9008 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9009   cat >>confdefs.h <<_ACEOF
9010 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9011 _ACEOF
9012
9013 fi
9014
9015 done
9016
9017
9018
9019
9020
9021
9022
9023
9024
9025
9026
9027
9028
9029
9030   case $LIBOBJS in
9031     "save-cwd.$ac_objext"   | \
9032   *" save-cwd.$ac_objext"   | \
9033     "save-cwd.$ac_objext "* | \
9034   *" save-cwd.$ac_objext "* ) ;;
9035   *) LIBOBJS="$LIBOBJS save-cwd.$ac_objext" ;;
9036 esac
9037
9038
9039   :
9040
9041
9042
9043
9044
9045
9046   :
9047
9048
9049
9050
9051
9052
9053
9054
9055
9056
9057       echo "$as_me:$LINENO: checking whether memrchr is declared" >&5
9058 echo $ECHO_N "checking whether memrchr is declared... $ECHO_C" >&6
9059 if test "${ac_cv_have_decl_memrchr+set}" = set; then
9060   echo $ECHO_N "(cached) $ECHO_C" >&6
9061 else
9062   cat >conftest.$ac_ext <<_ACEOF
9063 /* confdefs.h.  */
9064 _ACEOF
9065 cat confdefs.h >>conftest.$ac_ext
9066 cat >>conftest.$ac_ext <<_ACEOF
9067 /* end confdefs.h.  */
9068 $ac_includes_default
9069 int
9070 main ()
9071 {
9072 #ifndef memrchr
9073   char *p = (char *) memrchr;
9074 #endif
9075
9076   ;
9077   return 0;
9078 }
9079 _ACEOF
9080 rm -f conftest.$ac_objext
9081 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9082   (eval $ac_compile) 2>conftest.er1
9083   ac_status=$?
9084   grep -v '^ *+' conftest.er1 >conftest.err
9085   rm -f conftest.er1
9086   cat conftest.err >&5
9087   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9088   (exit $ac_status); } &&
9089          { ac_try='test -z "$ac_c_werror_flag"
9090                          || test ! -s conftest.err'
9091   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9092   (eval $ac_try) 2>&5
9093   ac_status=$?
9094   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9095   (exit $ac_status); }; } &&
9096          { ac_try='test -s conftest.$ac_objext'
9097   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9098   (eval $ac_try) 2>&5
9099   ac_status=$?
9100   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9101   (exit $ac_status); }; }; then
9102   ac_cv_have_decl_memrchr=yes
9103 else
9104   echo "$as_me: failed program was:" >&5
9105 sed 's/^/| /' conftest.$ac_ext >&5
9106
9107 ac_cv_have_decl_memrchr=no
9108 fi
9109 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9110 fi
9111 echo "$as_me:$LINENO: result: $ac_cv_have_decl_memrchr" >&5
9112 echo "${ECHO_T}$ac_cv_have_decl_memrchr" >&6
9113 if test $ac_cv_have_decl_memrchr = yes; then
9114
9115 cat >>confdefs.h <<_ACEOF
9116 #define HAVE_DECL_MEMRCHR 1
9117 _ACEOF
9118
9119
9120 else
9121   cat >>confdefs.h <<_ACEOF
9122 #define HAVE_DECL_MEMRCHR 0
9123 _ACEOF
9124
9125
9126 fi
9127
9128
9129
9130
9131     echo "$as_me:$LINENO: checking whether system is Windows or MSDOS" >&5
9132 echo $ECHO_N "checking whether system is Windows or MSDOS... $ECHO_C" >&6
9133 if test "${ac_cv_win_or_dos+set}" = set; then
9134   echo $ECHO_N "(cached) $ECHO_C" >&6
9135 else
9136
9137         cat >conftest.$ac_ext <<_ACEOF
9138 /* confdefs.h.  */
9139 _ACEOF
9140 cat confdefs.h >>conftest.$ac_ext
9141 cat >>conftest.$ac_ext <<_ACEOF
9142 /* end confdefs.h.  */
9143
9144 int
9145 main ()
9146 {
9147 #if !defined _WIN32 && !defined __WIN32__ && !defined __MSDOS__ && !defined __CYGWIN__
9148 neither MSDOS nor Windows
9149 #endif
9150   ;
9151   return 0;
9152 }
9153 _ACEOF
9154 rm -f conftest.$ac_objext
9155 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9156   (eval $ac_compile) 2>conftest.er1
9157   ac_status=$?
9158   grep -v '^ *+' conftest.er1 >conftest.err
9159   rm -f conftest.er1
9160   cat conftest.err >&5
9161   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9162   (exit $ac_status); } &&
9163          { ac_try='test -z "$ac_c_werror_flag"
9164                          || test ! -s conftest.err'
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); }; } &&
9170          { ac_try='test -s conftest.$ac_objext'
9171   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9172   (eval $ac_try) 2>&5
9173   ac_status=$?
9174   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9175   (exit $ac_status); }; }; then
9176   ac_cv_win_or_dos=yes
9177 else
9178   echo "$as_me: failed program was:" >&5
9179 sed 's/^/| /' conftest.$ac_ext >&5
9180
9181 ac_cv_win_or_dos=no
9182 fi
9183 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9184
9185 fi
9186 echo "$as_me:$LINENO: result: $ac_cv_win_or_dos" >&5
9187 echo "${ECHO_T}$ac_cv_win_or_dos" >&6
9188
9189     if test x"$ac_cv_win_or_dos" = xyes; then
9190       ac_fs_accepts_drive_letter_prefix=1
9191       ac_fs_backslash_is_file_name_separator=1
9192     else
9193       ac_fs_accepts_drive_letter_prefix=0
9194       ac_fs_backslash_is_file_name_separator=0
9195     fi
9196
9197
9198
9199
9200
9201 cat >>confdefs.h <<_ACEOF
9202 #define FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX $ac_fs_accepts_drive_letter_prefix
9203 _ACEOF
9204
9205
9206
9207
9208
9209
9210 cat >>confdefs.h <<_ACEOF
9211 #define FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR $ac_fs_backslash_is_file_name_separator
9212 _ACEOF
9213
9214
9215 echo "$as_me:$LINENO: checking whether strerror_r is declared" >&5
9216 echo $ECHO_N "checking whether strerror_r is declared... $ECHO_C" >&6
9217 if test "${ac_cv_have_decl_strerror_r+set}" = set; then
9218   echo $ECHO_N "(cached) $ECHO_C" >&6
9219 else
9220   cat >conftest.$ac_ext <<_ACEOF
9221 /* confdefs.h.  */
9222 _ACEOF
9223 cat confdefs.h >>conftest.$ac_ext
9224 cat >>conftest.$ac_ext <<_ACEOF
9225 /* end confdefs.h.  */
9226 $ac_includes_default
9227 int
9228 main ()
9229 {
9230 #ifndef strerror_r
9231   char *p = (char *) strerror_r;
9232 #endif
9233
9234   ;
9235   return 0;
9236 }
9237 _ACEOF
9238 rm -f conftest.$ac_objext
9239 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9240   (eval $ac_compile) 2>conftest.er1
9241   ac_status=$?
9242   grep -v '^ *+' conftest.er1 >conftest.err
9243   rm -f conftest.er1
9244   cat conftest.err >&5
9245   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9246   (exit $ac_status); } &&
9247          { ac_try='test -z "$ac_c_werror_flag"
9248                          || test ! -s conftest.err'
9249   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9250   (eval $ac_try) 2>&5
9251   ac_status=$?
9252   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9253   (exit $ac_status); }; } &&
9254          { ac_try='test -s conftest.$ac_objext'
9255   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9256   (eval $ac_try) 2>&5
9257   ac_status=$?
9258   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9259   (exit $ac_status); }; }; then
9260   ac_cv_have_decl_strerror_r=yes
9261 else
9262   echo "$as_me: failed program was:" >&5
9263 sed 's/^/| /' conftest.$ac_ext >&5
9264
9265 ac_cv_have_decl_strerror_r=no
9266 fi
9267 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9268 fi
9269 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_r" >&5
9270 echo "${ECHO_T}$ac_cv_have_decl_strerror_r" >&6
9271 if test $ac_cv_have_decl_strerror_r = yes; then
9272
9273 cat >>confdefs.h <<_ACEOF
9274 #define HAVE_DECL_STRERROR_R 1
9275 _ACEOF
9276
9277
9278 else
9279   cat >>confdefs.h <<_ACEOF
9280 #define HAVE_DECL_STRERROR_R 0
9281 _ACEOF
9282
9283
9284 fi
9285
9286
9287
9288 for ac_func in strerror_r
9289 do
9290 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9291 echo "$as_me:$LINENO: checking for $ac_func" >&5
9292 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9293 if eval "test \"\${$as_ac_var+set}\" = set"; then
9294   echo $ECHO_N "(cached) $ECHO_C" >&6
9295 else
9296   cat >conftest.$ac_ext <<_ACEOF
9297 /* confdefs.h.  */
9298 _ACEOF
9299 cat confdefs.h >>conftest.$ac_ext
9300 cat >>conftest.$ac_ext <<_ACEOF
9301 /* end confdefs.h.  */
9302 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9303    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9304 #define $ac_func innocuous_$ac_func
9305
9306 /* System header to define __stub macros and hopefully few prototypes,
9307     which can conflict with char $ac_func (); below.
9308     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9309     <limits.h> exists even on freestanding compilers.  */
9310
9311 #ifdef __STDC__
9312 # include <limits.h>
9313 #else
9314 # include <assert.h>
9315 #endif
9316
9317 #undef $ac_func
9318
9319 /* Override any gcc2 internal prototype to avoid an error.  */
9320 #ifdef __cplusplus
9321 extern "C"
9322 {
9323 #endif
9324 /* We use char because int might match the return type of a gcc2
9325    builtin and then its argument prototype would still apply.  */
9326 char $ac_func ();
9327 /* The GNU C library defines this for functions which it implements
9328     to always fail with ENOSYS.  Some functions are actually named
9329     something starting with __ and the normal name is an alias.  */
9330 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9331 choke me
9332 #else
9333 char (*f) () = $ac_func;
9334 #endif
9335 #ifdef __cplusplus
9336 }
9337 #endif
9338
9339 int
9340 main ()
9341 {
9342 return f != $ac_func;
9343   ;
9344   return 0;
9345 }
9346 _ACEOF
9347 rm -f conftest.$ac_objext conftest$ac_exeext
9348 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9349   (eval $ac_link) 2>conftest.er1
9350   ac_status=$?
9351   grep -v '^ *+' conftest.er1 >conftest.err
9352   rm -f conftest.er1
9353   cat conftest.err >&5
9354   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9355   (exit $ac_status); } &&
9356          { ac_try='test -z "$ac_c_werror_flag"
9357                          || test ! -s conftest.err'
9358   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9359   (eval $ac_try) 2>&5
9360   ac_status=$?
9361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9362   (exit $ac_status); }; } &&
9363          { ac_try='test -s conftest$ac_exeext'
9364   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9365   (eval $ac_try) 2>&5
9366   ac_status=$?
9367   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9368   (exit $ac_status); }; }; then
9369   eval "$as_ac_var=yes"
9370 else
9371   echo "$as_me: failed program was:" >&5
9372 sed 's/^/| /' conftest.$ac_ext >&5
9373
9374 eval "$as_ac_var=no"
9375 fi
9376 rm -f conftest.err conftest.$ac_objext \
9377       conftest$ac_exeext conftest.$ac_ext
9378 fi
9379 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9380 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9381 if test `eval echo '${'$as_ac_var'}'` = yes; then
9382   cat >>confdefs.h <<_ACEOF
9383 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9384 _ACEOF
9385
9386 fi
9387 done
9388
9389 echo "$as_me:$LINENO: checking whether strerror_r returns char *" >&5
9390 echo $ECHO_N "checking whether strerror_r returns char *... $ECHO_C" >&6
9391 if test "${ac_cv_func_strerror_r_char_p+set}" = set; then
9392   echo $ECHO_N "(cached) $ECHO_C" >&6
9393 else
9394
9395     ac_cv_func_strerror_r_char_p=no
9396     if test $ac_cv_have_decl_strerror_r = yes; then
9397       cat >conftest.$ac_ext <<_ACEOF
9398 /* confdefs.h.  */
9399 _ACEOF
9400 cat confdefs.h >>conftest.$ac_ext
9401 cat >>conftest.$ac_ext <<_ACEOF
9402 /* end confdefs.h.  */
9403 $ac_includes_default
9404 int
9405 main ()
9406 {
9407
9408           char buf[100];
9409           char x = *strerror_r (0, buf, sizeof buf);
9410           char *p = strerror_r (0, buf, sizeof buf);
9411
9412   ;
9413   return 0;
9414 }
9415 _ACEOF
9416 rm -f conftest.$ac_objext
9417 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9418   (eval $ac_compile) 2>conftest.er1
9419   ac_status=$?
9420   grep -v '^ *+' conftest.er1 >conftest.err
9421   rm -f conftest.er1
9422   cat conftest.err >&5
9423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9424   (exit $ac_status); } &&
9425          { ac_try='test -z "$ac_c_werror_flag"
9426                          || test ! -s conftest.err'
9427   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9428   (eval $ac_try) 2>&5
9429   ac_status=$?
9430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9431   (exit $ac_status); }; } &&
9432          { ac_try='test -s conftest.$ac_objext'
9433   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9434   (eval $ac_try) 2>&5
9435   ac_status=$?
9436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9437   (exit $ac_status); }; }; then
9438   ac_cv_func_strerror_r_char_p=yes
9439 else
9440   echo "$as_me: failed program was:" >&5
9441 sed 's/^/| /' conftest.$ac_ext >&5
9442
9443 fi
9444 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9445     else
9446       # strerror_r is not declared.  Choose between
9447       # systems that have relatively inaccessible declarations for the
9448       # function.  BeOS and DEC UNIX 4.0 fall in this category, but the
9449       # former has a strerror_r that returns char*, while the latter
9450       # has a strerror_r that returns `int'.
9451       # This test should segfault on the DEC system.
9452       if test "$cross_compiling" = yes; then
9453   :
9454 else
9455   cat >conftest.$ac_ext <<_ACEOF
9456 /* confdefs.h.  */
9457 _ACEOF
9458 cat confdefs.h >>conftest.$ac_ext
9459 cat >>conftest.$ac_ext <<_ACEOF
9460 /* end confdefs.h.  */
9461 $ac_includes_default
9462         extern char *strerror_r ();
9463 int
9464 main ()
9465 {
9466 char buf[100];
9467           char x = *strerror_r (0, buf, sizeof buf);
9468           exit (!isalpha (x));
9469   ;
9470   return 0;
9471 }
9472 _ACEOF
9473 rm -f conftest$ac_exeext
9474 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9475   (eval $ac_link) 2>&5
9476   ac_status=$?
9477   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9478   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9479   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9480   (eval $ac_try) 2>&5
9481   ac_status=$?
9482   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9483   (exit $ac_status); }; }; then
9484   ac_cv_func_strerror_r_char_p=yes
9485 else
9486   echo "$as_me: program exited with status $ac_status" >&5
9487 echo "$as_me: failed program was:" >&5
9488 sed 's/^/| /' conftest.$ac_ext >&5
9489
9490 fi
9491 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9492 fi
9493     fi
9494
9495 fi
9496 echo "$as_me:$LINENO: result: $ac_cv_func_strerror_r_char_p" >&5
9497 echo "${ECHO_T}$ac_cv_func_strerror_r_char_p" >&6
9498 if test $ac_cv_func_strerror_r_char_p = yes; then
9499
9500 cat >>confdefs.h <<\_ACEOF
9501 #define STRERROR_R_CHAR_P 1
9502 _ACEOF
9503
9504 fi
9505
9506 echo "$as_me:$LINENO: checking for mbstate_t" >&5
9507 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6
9508 if test "${ac_cv_type_mbstate_t+set}" = set; then
9509   echo $ECHO_N "(cached) $ECHO_C" >&6
9510 else
9511   cat >conftest.$ac_ext <<_ACEOF
9512 /* confdefs.h.  */
9513 _ACEOF
9514 cat confdefs.h >>conftest.$ac_ext
9515 cat >>conftest.$ac_ext <<_ACEOF
9516 /* end confdefs.h.  */
9517 $ac_includes_default
9518 #           include <wchar.h>
9519 int
9520 main ()
9521 {
9522 mbstate_t x; return sizeof x;
9523   ;
9524   return 0;
9525 }
9526 _ACEOF
9527 rm -f conftest.$ac_objext
9528 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9529   (eval $ac_compile) 2>conftest.er1
9530   ac_status=$?
9531   grep -v '^ *+' conftest.er1 >conftest.err
9532   rm -f conftest.er1
9533   cat conftest.err >&5
9534   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9535   (exit $ac_status); } &&
9536          { ac_try='test -z "$ac_c_werror_flag"
9537                          || test ! -s conftest.err'
9538   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9539   (eval $ac_try) 2>&5
9540   ac_status=$?
9541   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9542   (exit $ac_status); }; } &&
9543          { ac_try='test -s conftest.$ac_objext'
9544   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9545   (eval $ac_try) 2>&5
9546   ac_status=$?
9547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9548   (exit $ac_status); }; }; then
9549   ac_cv_type_mbstate_t=yes
9550 else
9551   echo "$as_me: failed program was:" >&5
9552 sed 's/^/| /' conftest.$ac_ext >&5
9553
9554 ac_cv_type_mbstate_t=no
9555 fi
9556 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9557 fi
9558 echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
9559 echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6
9560    if test $ac_cv_type_mbstate_t = yes; then
9561
9562 cat >>confdefs.h <<\_ACEOF
9563 #define HAVE_MBSTATE_T 1
9564 _ACEOF
9565
9566    else
9567
9568 cat >>confdefs.h <<\_ACEOF
9569 #define mbstate_t int
9570 _ACEOF
9571
9572    fi
9573
9574
9575
9576
9577   :
9578
9579
9580
9581
9582
9583    echo "$as_me:$LINENO: checking whether getcwd (NULL, 0) allocates memory for result" >&5
9584 echo $ECHO_N "checking whether getcwd (NULL, 0) allocates memory for result... $ECHO_C" >&6
9585 if test "${gl_cv_func_getcwd_null+set}" = set; then
9586   echo $ECHO_N "(cached) $ECHO_C" >&6
9587 else
9588   if test "$cross_compiling" = yes; then
9589   gl_cv_func_getcwd_null=no
9590 else
9591   cat >conftest.$ac_ext <<_ACEOF
9592 /* confdefs.h.  */
9593 _ACEOF
9594 cat confdefs.h >>conftest.$ac_ext
9595 cat >>conftest.$ac_ext <<_ACEOF
9596 /* end confdefs.h.  */
9597
9598 #        include <stdlib.h>
9599 #        ifdef HAVE_UNISTD_H
9600 #         include <unistd.h>
9601 #        endif
9602 #        ifndef getcwd
9603          char *getcwd ();
9604 #        endif
9605          int
9606          main ()
9607          {
9608            if (chdir ("/") != 0)
9609              exit (1);
9610            else
9611              {
9612                char *f = getcwd (NULL, 0);
9613                exit (! (f && f[0] == '/' && !f[1]));
9614              }
9615          }
9616 _ACEOF
9617 rm -f conftest$ac_exeext
9618 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9619   (eval $ac_link) 2>&5
9620   ac_status=$?
9621   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9622   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9623   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9624   (eval $ac_try) 2>&5
9625   ac_status=$?
9626   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9627   (exit $ac_status); }; }; then
9628   gl_cv_func_getcwd_null=yes
9629 else
9630   echo "$as_me: program exited with status $ac_status" >&5
9631 echo "$as_me: failed program was:" >&5
9632 sed 's/^/| /' conftest.$ac_ext >&5
9633
9634 ( exit $ac_status )
9635 gl_cv_func_getcwd_null=no
9636 fi
9637 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9638 fi
9639 fi
9640 echo "$as_me:$LINENO: result: $gl_cv_func_getcwd_null" >&5
9641 echo "${ECHO_T}$gl_cv_func_getcwd_null" >&6
9642
9643
9644       echo "$as_me:$LINENO: checking whether getcwd is declared" >&5
9645 echo $ECHO_N "checking whether getcwd is declared... $ECHO_C" >&6
9646 if test "${ac_cv_have_decl_getcwd+set}" = set; then
9647   echo $ECHO_N "(cached) $ECHO_C" >&6
9648 else
9649   cat >conftest.$ac_ext <<_ACEOF
9650 /* confdefs.h.  */
9651 _ACEOF
9652 cat confdefs.h >>conftest.$ac_ext
9653 cat >>conftest.$ac_ext <<_ACEOF
9654 /* end confdefs.h.  */
9655 $ac_includes_default
9656 int
9657 main ()
9658 {
9659 #ifndef getcwd
9660   char *p = (char *) getcwd;
9661 #endif
9662
9663   ;
9664   return 0;
9665 }
9666 _ACEOF
9667 rm -f conftest.$ac_objext
9668 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9669   (eval $ac_compile) 2>conftest.er1
9670   ac_status=$?
9671   grep -v '^ *+' conftest.er1 >conftest.err
9672   rm -f conftest.er1
9673   cat conftest.err >&5
9674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9675   (exit $ac_status); } &&
9676          { ac_try='test -z "$ac_c_werror_flag"
9677                          || test ! -s conftest.err'
9678   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9679   (eval $ac_try) 2>&5
9680   ac_status=$?
9681   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9682   (exit $ac_status); }; } &&
9683          { ac_try='test -s conftest.$ac_objext'
9684   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9685   (eval $ac_try) 2>&5
9686   ac_status=$?
9687   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9688   (exit $ac_status); }; }; then
9689   ac_cv_have_decl_getcwd=yes
9690 else
9691   echo "$as_me: failed program was:" >&5
9692 sed 's/^/| /' conftest.$ac_ext >&5
9693
9694 ac_cv_have_decl_getcwd=no
9695 fi
9696 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9697 fi
9698 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getcwd" >&5
9699 echo "${ECHO_T}$ac_cv_have_decl_getcwd" >&6
9700 if test $ac_cv_have_decl_getcwd = yes; then
9701
9702 cat >>confdefs.h <<_ACEOF
9703 #define HAVE_DECL_GETCWD 1
9704 _ACEOF
9705
9706
9707 else
9708   cat >>confdefs.h <<_ACEOF
9709 #define HAVE_DECL_GETCWD 0
9710 _ACEOF
9711
9712
9713 fi
9714
9715
9716
9717    echo "$as_me:$LINENO: checking for d_ino member in directory struct" >&5
9718 echo $ECHO_N "checking for d_ino member in directory struct... $ECHO_C" >&6
9719 if test "${jm_cv_struct_dirent_d_ino+set}" = set; then
9720   echo $ECHO_N "(cached) $ECHO_C" >&6
9721 else
9722   cat >conftest.$ac_ext <<_ACEOF
9723 /* confdefs.h.  */
9724 _ACEOF
9725 cat confdefs.h >>conftest.$ac_ext
9726 cat >>conftest.$ac_ext <<_ACEOF
9727 /* end confdefs.h.  */
9728
9729 #include <sys/types.h>
9730 #ifdef HAVE_DIRENT_H
9731 # include <dirent.h>
9732 #else /* not HAVE_DIRENT_H */
9733 # define dirent direct
9734 # ifdef HAVE_SYS_NDIR_H
9735 #  include <sys/ndir.h>
9736 # endif /* HAVE_SYS_NDIR_H */
9737 # ifdef HAVE_SYS_DIR_H
9738 #  include <sys/dir.h>
9739 # endif /* HAVE_SYS_DIR_H */
9740 # ifdef HAVE_NDIR_H
9741 #  include <ndir.h>
9742 # endif /* HAVE_NDIR_H */
9743 #endif /* HAVE_DIRENT_H */
9744
9745 int
9746 main ()
9747 {
9748 struct dirent dp; dp.d_ino = 0;
9749   ;
9750   return 0;
9751 }
9752 _ACEOF
9753 rm -f conftest.$ac_objext conftest$ac_exeext
9754 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9755   (eval $ac_link) 2>conftest.er1
9756   ac_status=$?
9757   grep -v '^ *+' conftest.er1 >conftest.err
9758   rm -f conftest.er1
9759   cat conftest.err >&5
9760   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9761   (exit $ac_status); } &&
9762          { ac_try='test -z "$ac_c_werror_flag"
9763                          || test ! -s conftest.err'
9764   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9765   (eval $ac_try) 2>&5
9766   ac_status=$?
9767   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9768   (exit $ac_status); }; } &&
9769          { ac_try='test -s conftest$ac_exeext'
9770   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9771   (eval $ac_try) 2>&5
9772   ac_status=$?
9773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9774   (exit $ac_status); }; }; then
9775   jm_cv_struct_dirent_d_ino=yes
9776 else
9777   echo "$as_me: failed program was:" >&5
9778 sed 's/^/| /' conftest.$ac_ext >&5
9779
9780 jm_cv_struct_dirent_d_ino=no
9781 fi
9782 rm -f conftest.err conftest.$ac_objext \
9783       conftest$ac_exeext conftest.$ac_ext
9784
9785
9786 fi
9787 echo "$as_me:$LINENO: result: $jm_cv_struct_dirent_d_ino" >&5
9788 echo "${ECHO_T}$jm_cv_struct_dirent_d_ino" >&6
9789    if test $jm_cv_struct_dirent_d_ino = yes; then
9790
9791 cat >>confdefs.h <<\_ACEOF
9792 #define D_INO_IN_DIRENT 1
9793 _ACEOF
9794
9795    fi
9796
9797
9798 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
9799 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
9800 if test "${ac_cv_header_time+set}" = set; then
9801   echo $ECHO_N "(cached) $ECHO_C" >&6
9802 else
9803   cat >conftest.$ac_ext <<_ACEOF
9804 /* confdefs.h.  */
9805 _ACEOF
9806 cat confdefs.h >>conftest.$ac_ext
9807 cat >>conftest.$ac_ext <<_ACEOF
9808 /* end confdefs.h.  */
9809 #include <sys/types.h>
9810 #include <sys/time.h>
9811 #include <time.h>
9812
9813 int
9814 main ()
9815 {
9816 if ((struct tm *) 0)
9817 return 0;
9818   ;
9819   return 0;
9820 }
9821 _ACEOF
9822 rm -f conftest.$ac_objext
9823 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9824   (eval $ac_compile) 2>conftest.er1
9825   ac_status=$?
9826   grep -v '^ *+' conftest.er1 >conftest.err
9827   rm -f conftest.er1
9828   cat conftest.err >&5
9829   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9830   (exit $ac_status); } &&
9831          { ac_try='test -z "$ac_c_werror_flag"
9832                          || test ! -s conftest.err'
9833   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9834   (eval $ac_try) 2>&5
9835   ac_status=$?
9836   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9837   (exit $ac_status); }; } &&
9838          { ac_try='test -s conftest.$ac_objext'
9839   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9840   (eval $ac_try) 2>&5
9841   ac_status=$?
9842   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9843   (exit $ac_status); }; }; then
9844   ac_cv_header_time=yes
9845 else
9846   echo "$as_me: failed program was:" >&5
9847 sed 's/^/| /' conftest.$ac_ext >&5
9848
9849 ac_cv_header_time=no
9850 fi
9851 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9852 fi
9853 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
9854 echo "${ECHO_T}$ac_cv_header_time" >&6
9855 if test $ac_cv_header_time = yes; then
9856
9857 cat >>confdefs.h <<\_ACEOF
9858 #define TIME_WITH_SYS_TIME 1
9859 _ACEOF
9860
9861 fi
9862
9863
9864
9865
9866
9867
9868
9869
9870
9871
9872
9873
9874   :
9875
9876
9877
9878
9879
9880
9881
9882
9883
9884
9885   :
9886
9887
9888
9889
9890
9891   echo "$as_me:$LINENO: checking for struct timespec" >&5
9892 echo $ECHO_N "checking for struct timespec... $ECHO_C" >&6
9893 if test "${fu_cv_sys_struct_timespec+set}" = set; then
9894   echo $ECHO_N "(cached) $ECHO_C" >&6
9895 else
9896   cat >conftest.$ac_ext <<_ACEOF
9897 /* confdefs.h.  */
9898 _ACEOF
9899 cat confdefs.h >>conftest.$ac_ext
9900 cat >>conftest.$ac_ext <<_ACEOF
9901 /* end confdefs.h.  */
9902
9903 #      if TIME_WITH_SYS_TIME
9904 #       include <sys/time.h>
9905 #       include <time.h>
9906 #      else
9907 #       if HAVE_SYS_TIME_H
9908 #        include <sys/time.h>
9909 #       else
9910 #        include <time.h>
9911 #       endif
9912 #      endif
9913
9914 int
9915 main ()
9916 {
9917 static struct timespec x; x.tv_sec = x.tv_nsec;
9918   ;
9919   return 0;
9920 }
9921 _ACEOF
9922 rm -f conftest.$ac_objext
9923 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9924   (eval $ac_compile) 2>conftest.er1
9925   ac_status=$?
9926   grep -v '^ *+' conftest.er1 >conftest.err
9927   rm -f conftest.er1
9928   cat conftest.err >&5
9929   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9930   (exit $ac_status); } &&
9931          { ac_try='test -z "$ac_c_werror_flag"
9932                          || test ! -s conftest.err'
9933   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9934   (eval $ac_try) 2>&5
9935   ac_status=$?
9936   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9937   (exit $ac_status); }; } &&
9938          { ac_try='test -s conftest.$ac_objext'
9939   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9940   (eval $ac_try) 2>&5
9941   ac_status=$?
9942   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9943   (exit $ac_status); }; }; then
9944   fu_cv_sys_struct_timespec=yes
9945 else
9946   echo "$as_me: failed program was:" >&5
9947 sed 's/^/| /' conftest.$ac_ext >&5
9948
9949 fu_cv_sys_struct_timespec=no
9950 fi
9951 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9952
9953 fi
9954 echo "$as_me:$LINENO: result: $fu_cv_sys_struct_timespec" >&5
9955 echo "${ECHO_T}$fu_cv_sys_struct_timespec" >&6
9956
9957   if test $fu_cv_sys_struct_timespec = yes; then
9958
9959 cat >>confdefs.h <<\_ACEOF
9960 #define HAVE_STRUCT_TIMESPEC 1
9961 _ACEOF
9962
9963   fi
9964
9965   echo "$as_me:$LINENO: checking for nanoseconds member of struct stat.st_mtim" >&5
9966 echo $ECHO_N "checking for nanoseconds member of struct stat.st_mtim... $ECHO_C" >&6
9967 if test "${ac_cv_struct_st_mtim_nsec+set}" = set; then
9968   echo $ECHO_N "(cached) $ECHO_C" >&6
9969 else
9970   ac_save_CPPFLAGS="$CPPFLAGS"
9971     ac_cv_struct_st_mtim_nsec=no
9972     # tv_nsec -- the usual case
9973     # _tv_nsec -- Solaris 2.6, if
9974     #   (defined _XOPEN_SOURCE && _XOPEN_SOURCE_EXTENDED == 1
9975     #    && !defined __EXTENSIONS__)
9976     # st__tim.tv_nsec -- UnixWare 2.1.2
9977     for ac_val in tv_nsec _tv_nsec st__tim.tv_nsec; do
9978       CPPFLAGS="$ac_save_CPPFLAGS -DST_MTIM_NSEC=$ac_val"
9979       cat >conftest.$ac_ext <<_ACEOF
9980 /* confdefs.h.  */
9981 _ACEOF
9982 cat confdefs.h >>conftest.$ac_ext
9983 cat >>conftest.$ac_ext <<_ACEOF
9984 /* end confdefs.h.  */
9985 #include <sys/types.h>
9986 #include <sys/stat.h>
9987 int
9988 main ()
9989 {
9990 struct stat s; s.st_mtim.ST_MTIM_NSEC;
9991   ;
9992   return 0;
9993 }
9994 _ACEOF
9995 rm -f conftest.$ac_objext
9996 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9997   (eval $ac_compile) 2>conftest.er1
9998   ac_status=$?
9999   grep -v '^ *+' conftest.er1 >conftest.err
10000   rm -f conftest.er1
10001   cat conftest.err >&5
10002   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10003   (exit $ac_status); } &&
10004          { ac_try='test -z "$ac_c_werror_flag"
10005                          || test ! -s conftest.err'
10006   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10007   (eval $ac_try) 2>&5
10008   ac_status=$?
10009   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10010   (exit $ac_status); }; } &&
10011          { ac_try='test -s conftest.$ac_objext'
10012   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10013   (eval $ac_try) 2>&5
10014   ac_status=$?
10015   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10016   (exit $ac_status); }; }; then
10017   ac_cv_struct_st_mtim_nsec=$ac_val; break
10018 else
10019   echo "$as_me: failed program was:" >&5
10020 sed 's/^/| /' conftest.$ac_ext >&5
10021
10022 fi
10023 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10024     done
10025     CPPFLAGS="$ac_save_CPPFLAGS"
10026 fi
10027 echo "$as_me:$LINENO: result: $ac_cv_struct_st_mtim_nsec" >&5
10028 echo "${ECHO_T}$ac_cv_struct_st_mtim_nsec" >&6
10029
10030   if test $ac_cv_struct_st_mtim_nsec != no; then
10031
10032 cat >>confdefs.h <<_ACEOF
10033 #define ST_MTIM_NSEC $ac_cv_struct_st_mtim_nsec
10034 _ACEOF
10035
10036   fi
10037
10038
10039
10040
10041
10042   echo "$as_me:$LINENO: checking whether nanosleep is declared" >&5
10043 echo $ECHO_N "checking whether nanosleep is declared... $ECHO_C" >&6
10044 if test "${ac_cv_have_decl_nanosleep+set}" = set; then
10045   echo $ECHO_N "(cached) $ECHO_C" >&6
10046 else
10047   cat >conftest.$ac_ext <<_ACEOF
10048 /* confdefs.h.  */
10049 _ACEOF
10050 cat confdefs.h >>conftest.$ac_ext
10051 cat >>conftest.$ac_ext <<_ACEOF
10052 /* end confdefs.h.  */
10053 #include <time.h>
10054
10055 int
10056 main ()
10057 {
10058 #ifndef nanosleep
10059   char *p = (char *) nanosleep;
10060 #endif
10061
10062   ;
10063   return 0;
10064 }
10065 _ACEOF
10066 rm -f conftest.$ac_objext
10067 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10068   (eval $ac_compile) 2>conftest.er1
10069   ac_status=$?
10070   grep -v '^ *+' conftest.er1 >conftest.err
10071   rm -f conftest.er1
10072   cat conftest.err >&5
10073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10074   (exit $ac_status); } &&
10075          { ac_try='test -z "$ac_c_werror_flag"
10076                          || test ! -s conftest.err'
10077   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10078   (eval $ac_try) 2>&5
10079   ac_status=$?
10080   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10081   (exit $ac_status); }; } &&
10082          { ac_try='test -s conftest.$ac_objext'
10083   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10084   (eval $ac_try) 2>&5
10085   ac_status=$?
10086   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10087   (exit $ac_status); }; }; then
10088   ac_cv_have_decl_nanosleep=yes
10089 else
10090   echo "$as_me: failed program was:" >&5
10091 sed 's/^/| /' conftest.$ac_ext >&5
10092
10093 ac_cv_have_decl_nanosleep=no
10094 fi
10095 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10096 fi
10097 echo "$as_me:$LINENO: result: $ac_cv_have_decl_nanosleep" >&5
10098 echo "${ECHO_T}$ac_cv_have_decl_nanosleep" >&6
10099 if test $ac_cv_have_decl_nanosleep = yes; then
10100
10101 cat >>confdefs.h <<_ACEOF
10102 #define HAVE_DECL_NANOSLEEP 1
10103 _ACEOF
10104
10105
10106 else
10107   cat >>confdefs.h <<_ACEOF
10108 #define HAVE_DECL_NANOSLEEP 0
10109 _ACEOF
10110
10111
10112 fi
10113
10114
10115
10116
10117   # getdate.y works with bison only.
10118
10119 YACC=${YACC-"${am_missing_run}bison -y"}
10120
10121
10122
10123
10124
10125
10126
10127
10128
10129
10130 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
10131 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
10132 if test "${ac_cv_struct_tm+set}" = set; then
10133   echo $ECHO_N "(cached) $ECHO_C" >&6
10134 else
10135   cat >conftest.$ac_ext <<_ACEOF
10136 /* confdefs.h.  */
10137 _ACEOF
10138 cat confdefs.h >>conftest.$ac_ext
10139 cat >>conftest.$ac_ext <<_ACEOF
10140 /* end confdefs.h.  */
10141 #include <sys/types.h>
10142 #include <time.h>
10143
10144 int
10145 main ()
10146 {
10147 struct tm *tp; tp->tm_sec;
10148   ;
10149   return 0;
10150 }
10151 _ACEOF
10152 rm -f conftest.$ac_objext
10153 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10154   (eval $ac_compile) 2>conftest.er1
10155   ac_status=$?
10156   grep -v '^ *+' conftest.er1 >conftest.err
10157   rm -f conftest.er1
10158   cat conftest.err >&5
10159   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10160   (exit $ac_status); } &&
10161          { ac_try='test -z "$ac_c_werror_flag"
10162                          || test ! -s conftest.err'
10163   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10164   (eval $ac_try) 2>&5
10165   ac_status=$?
10166   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10167   (exit $ac_status); }; } &&
10168          { ac_try='test -s conftest.$ac_objext'
10169   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10170   (eval $ac_try) 2>&5
10171   ac_status=$?
10172   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10173   (exit $ac_status); }; }; then
10174   ac_cv_struct_tm=time.h
10175 else
10176   echo "$as_me: failed program was:" >&5
10177 sed 's/^/| /' conftest.$ac_ext >&5
10178
10179 ac_cv_struct_tm=sys/time.h
10180 fi
10181 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10182 fi
10183 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
10184 echo "${ECHO_T}$ac_cv_struct_tm" >&6
10185 if test $ac_cv_struct_tm = sys/time.h; then
10186
10187 cat >>confdefs.h <<\_ACEOF
10188 #define TM_IN_SYS_TIME 1
10189 _ACEOF
10190
10191 fi
10192
10193
10194   # dnl Persuade glibc <time.h> to declare these functions.
10195
10196
10197   # Solaris 2.5.1 needs -lposix4 to get the clock_gettime function.
10198   # Solaris 7 prefers the library name -lrt to the obsolescent name -lposix4.
10199
10200   # Save and restore LIBS so e.g., -lrt, isn't added to it.  Otherwise, *all*
10201   # programs in the package would end up linked with that potentially-shared
10202   # library, inducing unnecessary run-time overhead.
10203   fetish_saved_libs=$LIBS
10204     echo "$as_me:$LINENO: checking for library containing clock_gettime" >&5
10205 echo $ECHO_N "checking for library containing clock_gettime... $ECHO_C" >&6
10206 if test "${ac_cv_search_clock_gettime+set}" = set; then
10207   echo $ECHO_N "(cached) $ECHO_C" >&6
10208 else
10209   ac_func_search_save_LIBS=$LIBS
10210 ac_cv_search_clock_gettime=no
10211 cat >conftest.$ac_ext <<_ACEOF
10212 /* confdefs.h.  */
10213 _ACEOF
10214 cat confdefs.h >>conftest.$ac_ext
10215 cat >>conftest.$ac_ext <<_ACEOF
10216 /* end confdefs.h.  */
10217
10218 /* Override any gcc2 internal prototype to avoid an error.  */
10219 #ifdef __cplusplus
10220 extern "C"
10221 #endif
10222 /* We use char because int might match the return type of a gcc2
10223    builtin and then its argument prototype would still apply.  */
10224 char clock_gettime ();
10225 int
10226 main ()
10227 {
10228 clock_gettime ();
10229   ;
10230   return 0;
10231 }
10232 _ACEOF
10233 rm -f conftest.$ac_objext conftest$ac_exeext
10234 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10235   (eval $ac_link) 2>conftest.er1
10236   ac_status=$?
10237   grep -v '^ *+' conftest.er1 >conftest.err
10238   rm -f conftest.er1
10239   cat conftest.err >&5
10240   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10241   (exit $ac_status); } &&
10242          { ac_try='test -z "$ac_c_werror_flag"
10243                          || test ! -s conftest.err'
10244   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10245   (eval $ac_try) 2>&5
10246   ac_status=$?
10247   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10248   (exit $ac_status); }; } &&
10249          { ac_try='test -s conftest$ac_exeext'
10250   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10251   (eval $ac_try) 2>&5
10252   ac_status=$?
10253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10254   (exit $ac_status); }; }; then
10255   ac_cv_search_clock_gettime="none required"
10256 else
10257   echo "$as_me: failed program was:" >&5
10258 sed 's/^/| /' conftest.$ac_ext >&5
10259
10260 fi
10261 rm -f conftest.err conftest.$ac_objext \
10262       conftest$ac_exeext conftest.$ac_ext
10263 if test "$ac_cv_search_clock_gettime" = no; then
10264   for ac_lib in rt posix4; do
10265     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
10266     cat >conftest.$ac_ext <<_ACEOF
10267 /* confdefs.h.  */
10268 _ACEOF
10269 cat confdefs.h >>conftest.$ac_ext
10270 cat >>conftest.$ac_ext <<_ACEOF
10271 /* end confdefs.h.  */
10272
10273 /* Override any gcc2 internal prototype to avoid an error.  */
10274 #ifdef __cplusplus
10275 extern "C"
10276 #endif
10277 /* We use char because int might match the return type of a gcc2
10278    builtin and then its argument prototype would still apply.  */
10279 char clock_gettime ();
10280 int
10281 main ()
10282 {
10283 clock_gettime ();
10284   ;
10285   return 0;
10286 }
10287 _ACEOF
10288 rm -f conftest.$ac_objext conftest$ac_exeext
10289 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10290   (eval $ac_link) 2>conftest.er1
10291   ac_status=$?
10292   grep -v '^ *+' conftest.er1 >conftest.err
10293   rm -f conftest.er1
10294   cat conftest.err >&5
10295   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10296   (exit $ac_status); } &&
10297          { ac_try='test -z "$ac_c_werror_flag"
10298                          || test ! -s conftest.err'
10299   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10300   (eval $ac_try) 2>&5
10301   ac_status=$?
10302   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10303   (exit $ac_status); }; } &&
10304          { ac_try='test -s conftest$ac_exeext'
10305   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10306   (eval $ac_try) 2>&5
10307   ac_status=$?
10308   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10309   (exit $ac_status); }; }; then
10310   ac_cv_search_clock_gettime="-l$ac_lib"
10311 break
10312 else
10313   echo "$as_me: failed program was:" >&5
10314 sed 's/^/| /' conftest.$ac_ext >&5
10315
10316 fi
10317 rm -f conftest.err conftest.$ac_objext \
10318       conftest$ac_exeext conftest.$ac_ext
10319   done
10320 fi
10321 LIBS=$ac_func_search_save_LIBS
10322 fi
10323 echo "$as_me:$LINENO: result: $ac_cv_search_clock_gettime" >&5
10324 echo "${ECHO_T}$ac_cv_search_clock_gettime" >&6
10325 if test "$ac_cv_search_clock_gettime" != no; then
10326   test "$ac_cv_search_clock_gettime" = "none required" || LIBS="$ac_cv_search_clock_gettime $LIBS"
10327   test "$ac_cv_search_clock_gettime" = "none required" ||
10328                     LIB_CLOCK_GETTIME=$ac_cv_search_clock_gettime
10329 fi
10330
10331
10332
10333
10334 for ac_func in clock_gettime clock_settime
10335 do
10336 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10337 echo "$as_me:$LINENO: checking for $ac_func" >&5
10338 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10339 if eval "test \"\${$as_ac_var+set}\" = set"; then
10340   echo $ECHO_N "(cached) $ECHO_C" >&6
10341 else
10342   cat >conftest.$ac_ext <<_ACEOF
10343 /* confdefs.h.  */
10344 _ACEOF
10345 cat confdefs.h >>conftest.$ac_ext
10346 cat >>conftest.$ac_ext <<_ACEOF
10347 /* end confdefs.h.  */
10348 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10349    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10350 #define $ac_func innocuous_$ac_func
10351
10352 /* System header to define __stub macros and hopefully few prototypes,
10353     which can conflict with char $ac_func (); below.
10354     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10355     <limits.h> exists even on freestanding compilers.  */
10356
10357 #ifdef __STDC__
10358 # include <limits.h>
10359 #else
10360 # include <assert.h>
10361 #endif
10362
10363 #undef $ac_func
10364
10365 /* Override any gcc2 internal prototype to avoid an error.  */
10366 #ifdef __cplusplus
10367 extern "C"
10368 {
10369 #endif
10370 /* We use char because int might match the return type of a gcc2
10371    builtin and then its argument prototype would still apply.  */
10372 char $ac_func ();
10373 /* The GNU C library defines this for functions which it implements
10374     to always fail with ENOSYS.  Some functions are actually named
10375     something starting with __ and the normal name is an alias.  */
10376 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10377 choke me
10378 #else
10379 char (*f) () = $ac_func;
10380 #endif
10381 #ifdef __cplusplus
10382 }
10383 #endif
10384
10385 int
10386 main ()
10387 {
10388 return f != $ac_func;
10389   ;
10390   return 0;
10391 }
10392 _ACEOF
10393 rm -f conftest.$ac_objext conftest$ac_exeext
10394 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10395   (eval $ac_link) 2>conftest.er1
10396   ac_status=$?
10397   grep -v '^ *+' conftest.er1 >conftest.err
10398   rm -f conftest.er1
10399   cat conftest.err >&5
10400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10401   (exit $ac_status); } &&
10402          { ac_try='test -z "$ac_c_werror_flag"
10403                          || test ! -s conftest.err'
10404   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10405   (eval $ac_try) 2>&5
10406   ac_status=$?
10407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10408   (exit $ac_status); }; } &&
10409          { ac_try='test -s conftest$ac_exeext'
10410   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10411   (eval $ac_try) 2>&5
10412   ac_status=$?
10413   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10414   (exit $ac_status); }; }; then
10415   eval "$as_ac_var=yes"
10416 else
10417   echo "$as_me: failed program was:" >&5
10418 sed 's/^/| /' conftest.$ac_ext >&5
10419
10420 eval "$as_ac_var=no"
10421 fi
10422 rm -f conftest.err conftest.$ac_objext \
10423       conftest$ac_exeext conftest.$ac_ext
10424 fi
10425 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10426 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10427 if test `eval echo '${'$as_ac_var'}'` = yes; then
10428   cat >>confdefs.h <<_ACEOF
10429 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10430 _ACEOF
10431
10432 fi
10433 done
10434
10435   LIBS=$fetish_saved_libs
10436
10437
10438  echo "$as_me:$LINENO: checking for struct tm.tm_gmtoff" >&5
10439 echo $ECHO_N "checking for struct tm.tm_gmtoff... $ECHO_C" >&6
10440 if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then
10441   echo $ECHO_N "(cached) $ECHO_C" >&6
10442 else
10443   cat >conftest.$ac_ext <<_ACEOF
10444 /* confdefs.h.  */
10445 _ACEOF
10446 cat confdefs.h >>conftest.$ac_ext
10447 cat >>conftest.$ac_ext <<_ACEOF
10448 /* end confdefs.h.  */
10449 #include <time.h>
10450
10451 int
10452 main ()
10453 {
10454 static struct tm ac_aggr;
10455 if (ac_aggr.tm_gmtoff)
10456 return 0;
10457   ;
10458   return 0;
10459 }
10460 _ACEOF
10461 rm -f conftest.$ac_objext
10462 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10463   (eval $ac_compile) 2>conftest.er1
10464   ac_status=$?
10465   grep -v '^ *+' conftest.er1 >conftest.err
10466   rm -f conftest.er1
10467   cat conftest.err >&5
10468   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10469   (exit $ac_status); } &&
10470          { ac_try='test -z "$ac_c_werror_flag"
10471                          || test ! -s conftest.err'
10472   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10473   (eval $ac_try) 2>&5
10474   ac_status=$?
10475   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10476   (exit $ac_status); }; } &&
10477          { ac_try='test -s conftest.$ac_objext'
10478   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10479   (eval $ac_try) 2>&5
10480   ac_status=$?
10481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10482   (exit $ac_status); }; }; then
10483   ac_cv_member_struct_tm_tm_gmtoff=yes
10484 else
10485   echo "$as_me: failed program was:" >&5
10486 sed 's/^/| /' conftest.$ac_ext >&5
10487
10488 cat >conftest.$ac_ext <<_ACEOF
10489 /* confdefs.h.  */
10490 _ACEOF
10491 cat confdefs.h >>conftest.$ac_ext
10492 cat >>conftest.$ac_ext <<_ACEOF
10493 /* end confdefs.h.  */
10494 #include <time.h>
10495
10496 int
10497 main ()
10498 {
10499 static struct tm ac_aggr;
10500 if (sizeof ac_aggr.tm_gmtoff)
10501 return 0;
10502   ;
10503   return 0;
10504 }
10505 _ACEOF
10506 rm -f conftest.$ac_objext
10507 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10508   (eval $ac_compile) 2>conftest.er1
10509   ac_status=$?
10510   grep -v '^ *+' conftest.er1 >conftest.err
10511   rm -f conftest.er1
10512   cat conftest.err >&5
10513   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10514   (exit $ac_status); } &&
10515          { ac_try='test -z "$ac_c_werror_flag"
10516                          || test ! -s conftest.err'
10517   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10518   (eval $ac_try) 2>&5
10519   ac_status=$?
10520   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10521   (exit $ac_status); }; } &&
10522          { ac_try='test -s conftest.$ac_objext'
10523   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10524   (eval $ac_try) 2>&5
10525   ac_status=$?
10526   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10527   (exit $ac_status); }; }; then
10528   ac_cv_member_struct_tm_tm_gmtoff=yes
10529 else
10530   echo "$as_me: failed program was:" >&5
10531 sed 's/^/| /' conftest.$ac_ext >&5
10532
10533 ac_cv_member_struct_tm_tm_gmtoff=no
10534 fi
10535 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10536 fi
10537 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10538 fi
10539 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5
10540 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_gmtoff" >&6
10541 if test $ac_cv_member_struct_tm_tm_gmtoff = yes; then
10542
10543 cat >>confdefs.h <<\_ACEOF
10544 #define HAVE_TM_GMTOFF 1
10545 _ACEOF
10546
10547 fi
10548
10549
10550
10551   echo "$as_me:$LINENO: checking for ssize_t" >&5
10552 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
10553 if test "${gt_cv_ssize_t+set}" = set; then
10554   echo $ECHO_N "(cached) $ECHO_C" >&6
10555 else
10556   cat >conftest.$ac_ext <<_ACEOF
10557 /* confdefs.h.  */
10558 _ACEOF
10559 cat confdefs.h >>conftest.$ac_ext
10560 cat >>conftest.$ac_ext <<_ACEOF
10561 /* end confdefs.h.  */
10562 #include <sys/types.h>
10563 int
10564 main ()
10565 {
10566 int x = sizeof (ssize_t *) + sizeof (ssize_t);
10567   ;
10568   return 0;
10569 }
10570 _ACEOF
10571 rm -f conftest.$ac_objext
10572 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10573   (eval $ac_compile) 2>conftest.er1
10574   ac_status=$?
10575   grep -v '^ *+' conftest.er1 >conftest.err
10576   rm -f conftest.er1
10577   cat conftest.err >&5
10578   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10579   (exit $ac_status); } &&
10580          { ac_try='test -z "$ac_c_werror_flag"
10581                          || test ! -s conftest.err'
10582   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10583   (eval $ac_try) 2>&5
10584   ac_status=$?
10585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10586   (exit $ac_status); }; } &&
10587          { ac_try='test -s conftest.$ac_objext'
10588   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10589   (eval $ac_try) 2>&5
10590   ac_status=$?
10591   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10592   (exit $ac_status); }; }; then
10593   gt_cv_ssize_t=yes
10594 else
10595   echo "$as_me: failed program was:" >&5
10596 sed 's/^/| /' conftest.$ac_ext >&5
10597
10598 gt_cv_ssize_t=no
10599 fi
10600 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10601 fi
10602 echo "$as_me:$LINENO: result: $gt_cv_ssize_t" >&5
10603 echo "${ECHO_T}$gt_cv_ssize_t" >&6
10604   if test $gt_cv_ssize_t = no; then
10605
10606 cat >>confdefs.h <<\_ACEOF
10607 #define ssize_t int
10608 _ACEOF
10609
10610   fi
10611
10612
10613
10614
10615
10616
10617
10618
10619       echo "$as_me:$LINENO: checking whether getpass is declared" >&5
10620 echo $ECHO_N "checking whether getpass is declared... $ECHO_C" >&6
10621 if test "${ac_cv_have_decl_getpass+set}" = set; then
10622   echo $ECHO_N "(cached) $ECHO_C" >&6
10623 else
10624   cat >conftest.$ac_ext <<_ACEOF
10625 /* confdefs.h.  */
10626 _ACEOF
10627 cat confdefs.h >>conftest.$ac_ext
10628 cat >>conftest.$ac_ext <<_ACEOF
10629 /* end confdefs.h.  */
10630 $ac_includes_default
10631 int
10632 main ()
10633 {
10634 #ifndef getpass
10635   char *p = (char *) getpass;
10636 #endif
10637
10638   ;
10639   return 0;
10640 }
10641 _ACEOF
10642 rm -f conftest.$ac_objext
10643 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10644   (eval $ac_compile) 2>conftest.er1
10645   ac_status=$?
10646   grep -v '^ *+' conftest.er1 >conftest.err
10647   rm -f conftest.er1
10648   cat conftest.err >&5
10649   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10650   (exit $ac_status); } &&
10651          { ac_try='test -z "$ac_c_werror_flag"
10652                          || test ! -s conftest.err'
10653   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10654   (eval $ac_try) 2>&5
10655   ac_status=$?
10656   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10657   (exit $ac_status); }; } &&
10658          { ac_try='test -s conftest.$ac_objext'
10659   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10660   (eval $ac_try) 2>&5
10661   ac_status=$?
10662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10663   (exit $ac_status); }; }; then
10664   ac_cv_have_decl_getpass=yes
10665 else
10666   echo "$as_me: failed program was:" >&5
10667 sed 's/^/| /' conftest.$ac_ext >&5
10668
10669 ac_cv_have_decl_getpass=no
10670 fi
10671 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10672 fi
10673 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getpass" >&5
10674 echo "${ECHO_T}$ac_cv_have_decl_getpass" >&6
10675 if test $ac_cv_have_decl_getpass = yes; then
10676
10677 cat >>confdefs.h <<_ACEOF
10678 #define HAVE_DECL_GETPASS 1
10679 _ACEOF
10680
10681
10682 else
10683   cat >>confdefs.h <<_ACEOF
10684 #define HAVE_DECL_GETPASS 0
10685 _ACEOF
10686
10687
10688 fi
10689
10690
10691
10692
10693
10694
10695
10696
10697
10698
10699       echo "$as_me:$LINENO: checking whether fflush_unlocked is declared" >&5
10700 echo $ECHO_N "checking whether fflush_unlocked is declared... $ECHO_C" >&6
10701 if test "${ac_cv_have_decl_fflush_unlocked+set}" = set; then
10702   echo $ECHO_N "(cached) $ECHO_C" >&6
10703 else
10704   cat >conftest.$ac_ext <<_ACEOF
10705 /* confdefs.h.  */
10706 _ACEOF
10707 cat confdefs.h >>conftest.$ac_ext
10708 cat >>conftest.$ac_ext <<_ACEOF
10709 /* end confdefs.h.  */
10710 $ac_includes_default
10711 int
10712 main ()
10713 {
10714 #ifndef fflush_unlocked
10715   char *p = (char *) fflush_unlocked;
10716 #endif
10717
10718   ;
10719   return 0;
10720 }
10721 _ACEOF
10722 rm -f conftest.$ac_objext
10723 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10724   (eval $ac_compile) 2>conftest.er1
10725   ac_status=$?
10726   grep -v '^ *+' conftest.er1 >conftest.err
10727   rm -f conftest.er1
10728   cat conftest.err >&5
10729   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10730   (exit $ac_status); } &&
10731          { ac_try='test -z "$ac_c_werror_flag"
10732                          || test ! -s conftest.err'
10733   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10734   (eval $ac_try) 2>&5
10735   ac_status=$?
10736   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10737   (exit $ac_status); }; } &&
10738          { ac_try='test -s conftest.$ac_objext'
10739   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10740   (eval $ac_try) 2>&5
10741   ac_status=$?
10742   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10743   (exit $ac_status); }; }; then
10744   ac_cv_have_decl_fflush_unlocked=yes
10745 else
10746   echo "$as_me: failed program was:" >&5
10747 sed 's/^/| /' conftest.$ac_ext >&5
10748
10749 ac_cv_have_decl_fflush_unlocked=no
10750 fi
10751 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10752 fi
10753 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fflush_unlocked" >&5
10754 echo "${ECHO_T}$ac_cv_have_decl_fflush_unlocked" >&6
10755 if test $ac_cv_have_decl_fflush_unlocked = yes; then
10756
10757 cat >>confdefs.h <<_ACEOF
10758 #define HAVE_DECL_FFLUSH_UNLOCKED 1
10759 _ACEOF
10760
10761
10762 else
10763   cat >>confdefs.h <<_ACEOF
10764 #define HAVE_DECL_FFLUSH_UNLOCKED 0
10765 _ACEOF
10766
10767
10768 fi
10769
10770
10771
10772
10773       echo "$as_me:$LINENO: checking whether flockfile is declared" >&5
10774 echo $ECHO_N "checking whether flockfile is declared... $ECHO_C" >&6
10775 if test "${ac_cv_have_decl_flockfile+set}" = set; then
10776   echo $ECHO_N "(cached) $ECHO_C" >&6
10777 else
10778   cat >conftest.$ac_ext <<_ACEOF
10779 /* confdefs.h.  */
10780 _ACEOF
10781 cat confdefs.h >>conftest.$ac_ext
10782 cat >>conftest.$ac_ext <<_ACEOF
10783 /* end confdefs.h.  */
10784 $ac_includes_default
10785 int
10786 main ()
10787 {
10788 #ifndef flockfile
10789   char *p = (char *) flockfile;
10790 #endif
10791
10792   ;
10793   return 0;
10794 }
10795 _ACEOF
10796 rm -f conftest.$ac_objext
10797 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10798   (eval $ac_compile) 2>conftest.er1
10799   ac_status=$?
10800   grep -v '^ *+' conftest.er1 >conftest.err
10801   rm -f conftest.er1
10802   cat conftest.err >&5
10803   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10804   (exit $ac_status); } &&
10805          { ac_try='test -z "$ac_c_werror_flag"
10806                          || test ! -s conftest.err'
10807   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10808   (eval $ac_try) 2>&5
10809   ac_status=$?
10810   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10811   (exit $ac_status); }; } &&
10812          { ac_try='test -s conftest.$ac_objext'
10813   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10814   (eval $ac_try) 2>&5
10815   ac_status=$?
10816   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10817   (exit $ac_status); }; }; then
10818   ac_cv_have_decl_flockfile=yes
10819 else
10820   echo "$as_me: failed program was:" >&5
10821 sed 's/^/| /' conftest.$ac_ext >&5
10822
10823 ac_cv_have_decl_flockfile=no
10824 fi
10825 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10826 fi
10827 echo "$as_me:$LINENO: result: $ac_cv_have_decl_flockfile" >&5
10828 echo "${ECHO_T}$ac_cv_have_decl_flockfile" >&6
10829 if test $ac_cv_have_decl_flockfile = yes; then
10830
10831 cat >>confdefs.h <<_ACEOF
10832 #define HAVE_DECL_FLOCKFILE 1
10833 _ACEOF
10834
10835
10836 else
10837   cat >>confdefs.h <<_ACEOF
10838 #define HAVE_DECL_FLOCKFILE 0
10839 _ACEOF
10840
10841
10842 fi
10843
10844
10845
10846
10847       echo "$as_me:$LINENO: checking whether fputs_unlocked is declared" >&5
10848 echo $ECHO_N "checking whether fputs_unlocked is declared... $ECHO_C" >&6
10849 if test "${ac_cv_have_decl_fputs_unlocked+set}" = set; then
10850   echo $ECHO_N "(cached) $ECHO_C" >&6
10851 else
10852   cat >conftest.$ac_ext <<_ACEOF
10853 /* confdefs.h.  */
10854 _ACEOF
10855 cat confdefs.h >>conftest.$ac_ext
10856 cat >>conftest.$ac_ext <<_ACEOF
10857 /* end confdefs.h.  */
10858 $ac_includes_default
10859 int
10860 main ()
10861 {
10862 #ifndef fputs_unlocked
10863   char *p = (char *) fputs_unlocked;
10864 #endif
10865
10866   ;
10867   return 0;
10868 }
10869 _ACEOF
10870 rm -f conftest.$ac_objext
10871 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10872   (eval $ac_compile) 2>conftest.er1
10873   ac_status=$?
10874   grep -v '^ *+' conftest.er1 >conftest.err
10875   rm -f conftest.er1
10876   cat conftest.err >&5
10877   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10878   (exit $ac_status); } &&
10879          { ac_try='test -z "$ac_c_werror_flag"
10880                          || test ! -s conftest.err'
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); }; } &&
10886          { ac_try='test -s conftest.$ac_objext'
10887   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10888   (eval $ac_try) 2>&5
10889   ac_status=$?
10890   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10891   (exit $ac_status); }; }; then
10892   ac_cv_have_decl_fputs_unlocked=yes
10893 else
10894   echo "$as_me: failed program was:" >&5
10895 sed 's/^/| /' conftest.$ac_ext >&5
10896
10897 ac_cv_have_decl_fputs_unlocked=no
10898 fi
10899 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10900 fi
10901 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fputs_unlocked" >&5
10902 echo "${ECHO_T}$ac_cv_have_decl_fputs_unlocked" >&6
10903 if test $ac_cv_have_decl_fputs_unlocked = yes; then
10904
10905 cat >>confdefs.h <<_ACEOF
10906 #define HAVE_DECL_FPUTS_UNLOCKED 1
10907 _ACEOF
10908
10909
10910 else
10911   cat >>confdefs.h <<_ACEOF
10912 #define HAVE_DECL_FPUTS_UNLOCKED 0
10913 _ACEOF
10914
10915
10916 fi
10917
10918
10919
10920
10921       echo "$as_me:$LINENO: checking whether funlockfile is declared" >&5
10922 echo $ECHO_N "checking whether funlockfile is declared... $ECHO_C" >&6
10923 if test "${ac_cv_have_decl_funlockfile+set}" = set; then
10924   echo $ECHO_N "(cached) $ECHO_C" >&6
10925 else
10926   cat >conftest.$ac_ext <<_ACEOF
10927 /* confdefs.h.  */
10928 _ACEOF
10929 cat confdefs.h >>conftest.$ac_ext
10930 cat >>conftest.$ac_ext <<_ACEOF
10931 /* end confdefs.h.  */
10932 $ac_includes_default
10933 int
10934 main ()
10935 {
10936 #ifndef funlockfile
10937   char *p = (char *) funlockfile;
10938 #endif
10939
10940   ;
10941   return 0;
10942 }
10943 _ACEOF
10944 rm -f conftest.$ac_objext
10945 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10946   (eval $ac_compile) 2>conftest.er1
10947   ac_status=$?
10948   grep -v '^ *+' conftest.er1 >conftest.err
10949   rm -f conftest.er1
10950   cat conftest.err >&5
10951   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10952   (exit $ac_status); } &&
10953          { ac_try='test -z "$ac_c_werror_flag"
10954                          || test ! -s conftest.err'
10955   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10956   (eval $ac_try) 2>&5
10957   ac_status=$?
10958   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10959   (exit $ac_status); }; } &&
10960          { ac_try='test -s conftest.$ac_objext'
10961   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10962   (eval $ac_try) 2>&5
10963   ac_status=$?
10964   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10965   (exit $ac_status); }; }; then
10966   ac_cv_have_decl_funlockfile=yes
10967 else
10968   echo "$as_me: failed program was:" >&5
10969 sed 's/^/| /' conftest.$ac_ext >&5
10970
10971 ac_cv_have_decl_funlockfile=no
10972 fi
10973 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10974 fi
10975 echo "$as_me:$LINENO: result: $ac_cv_have_decl_funlockfile" >&5
10976 echo "${ECHO_T}$ac_cv_have_decl_funlockfile" >&6
10977 if test $ac_cv_have_decl_funlockfile = yes; then
10978
10979 cat >>confdefs.h <<_ACEOF
10980 #define HAVE_DECL_FUNLOCKFILE 1
10981 _ACEOF
10982
10983
10984 else
10985   cat >>confdefs.h <<_ACEOF
10986 #define HAVE_DECL_FUNLOCKFILE 0
10987 _ACEOF
10988
10989
10990 fi
10991
10992
10993
10994
10995       echo "$as_me:$LINENO: checking whether putc_unlocked is declared" >&5
10996 echo $ECHO_N "checking whether putc_unlocked is declared... $ECHO_C" >&6
10997 if test "${ac_cv_have_decl_putc_unlocked+set}" = set; then
10998   echo $ECHO_N "(cached) $ECHO_C" >&6
10999 else
11000   cat >conftest.$ac_ext <<_ACEOF
11001 /* confdefs.h.  */
11002 _ACEOF
11003 cat confdefs.h >>conftest.$ac_ext
11004 cat >>conftest.$ac_ext <<_ACEOF
11005 /* end confdefs.h.  */
11006 $ac_includes_default
11007 int
11008 main ()
11009 {
11010 #ifndef putc_unlocked
11011   char *p = (char *) putc_unlocked;
11012 #endif
11013
11014   ;
11015   return 0;
11016 }
11017 _ACEOF
11018 rm -f conftest.$ac_objext
11019 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11020   (eval $ac_compile) 2>conftest.er1
11021   ac_status=$?
11022   grep -v '^ *+' conftest.er1 >conftest.err
11023   rm -f conftest.er1
11024   cat conftest.err >&5
11025   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11026   (exit $ac_status); } &&
11027          { ac_try='test -z "$ac_c_werror_flag"
11028                          || test ! -s conftest.err'
11029   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11030   (eval $ac_try) 2>&5
11031   ac_status=$?
11032   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11033   (exit $ac_status); }; } &&
11034          { ac_try='test -s conftest.$ac_objext'
11035   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11036   (eval $ac_try) 2>&5
11037   ac_status=$?
11038   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11039   (exit $ac_status); }; }; then
11040   ac_cv_have_decl_putc_unlocked=yes
11041 else
11042   echo "$as_me: failed program was:" >&5
11043 sed 's/^/| /' conftest.$ac_ext >&5
11044
11045 ac_cv_have_decl_putc_unlocked=no
11046 fi
11047 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11048 fi
11049 echo "$as_me:$LINENO: result: $ac_cv_have_decl_putc_unlocked" >&5
11050 echo "${ECHO_T}$ac_cv_have_decl_putc_unlocked" >&6
11051 if test $ac_cv_have_decl_putc_unlocked = yes; then
11052
11053 cat >>confdefs.h <<_ACEOF
11054 #define HAVE_DECL_PUTC_UNLOCKED 1
11055 _ACEOF
11056
11057
11058 else
11059   cat >>confdefs.h <<_ACEOF
11060 #define HAVE_DECL_PUTC_UNLOCKED 0
11061 _ACEOF
11062
11063
11064 fi
11065
11066
11067
11068
11069
11070
11071
11072
11073
11074
11075
11076
11077
11078
11079
11080 echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
11081 echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6
11082 if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
11083   echo $ECHO_N "(cached) $ECHO_C" >&6
11084 else
11085   rm -f conftest.sym conftest.file
11086 echo >conftest.file
11087 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
11088   if test "$cross_compiling" = yes; then
11089   ac_cv_func_lstat_dereferences_slashed_symlink=no
11090 else
11091   cat >conftest.$ac_ext <<_ACEOF
11092 /* confdefs.h.  */
11093 _ACEOF
11094 cat confdefs.h >>conftest.$ac_ext
11095 cat >>conftest.$ac_ext <<_ACEOF
11096 /* end confdefs.h.  */
11097 $ac_includes_default
11098 int
11099 main ()
11100 {
11101 struct stat sbuf;
11102      /* Linux will dereference the symlink and fail.
11103         That is better in the sense that it means we will not
11104         have to compile and use the lstat wrapper.  */
11105      exit (lstat ("conftest.sym/", &sbuf) ? 0 : 1);
11106   ;
11107   return 0;
11108 }
11109 _ACEOF
11110 rm -f conftest$ac_exeext
11111 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11112   (eval $ac_link) 2>&5
11113   ac_status=$?
11114   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11115   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11116   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11117   (eval $ac_try) 2>&5
11118   ac_status=$?
11119   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11120   (exit $ac_status); }; }; then
11121   ac_cv_func_lstat_dereferences_slashed_symlink=yes
11122 else
11123   echo "$as_me: program exited with status $ac_status" >&5
11124 echo "$as_me: failed program was:" >&5
11125 sed 's/^/| /' conftest.$ac_ext >&5
11126
11127 ( exit $ac_status )
11128 ac_cv_func_lstat_dereferences_slashed_symlink=no
11129 fi
11130 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11131 fi
11132 else
11133   # If the `ln -s' command failed, then we probably don't even
11134   # have an lstat function.
11135   ac_cv_func_lstat_dereferences_slashed_symlink=no
11136 fi
11137 rm -f conftest.sym conftest.file
11138
11139 fi
11140 echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
11141 echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6
11142
11143 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
11144
11145 cat >>confdefs.h <<_ACEOF
11146 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
11147 _ACEOF
11148
11149
11150 if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
11151   case $LIBOBJS in
11152     "lstat.$ac_objext"   | \
11153   *" lstat.$ac_objext"   | \
11154     "lstat.$ac_objext "* | \
11155   *" lstat.$ac_objext "* ) ;;
11156   *) LIBOBJS="$LIBOBJS lstat.$ac_objext" ;;
11157 esac
11158
11159 fi
11160
11161
11162   echo "$as_me:$LINENO: checking for uint32_t" >&5
11163 echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6
11164 if test "${gl_cv_c_uint32_t+set}" = set; then
11165   echo $ECHO_N "(cached) $ECHO_C" >&6
11166 else
11167   gl_cv_c_uint32_t=no
11168      for ac_type in "uint32_t" "unsigned int" \
11169          "unsigned long int" "unsigned short int"; do
11170        cat >conftest.$ac_ext <<_ACEOF
11171 /* confdefs.h.  */
11172 _ACEOF
11173 cat confdefs.h >>conftest.$ac_ext
11174 cat >>conftest.$ac_ext <<_ACEOF
11175 /* end confdefs.h.  */
11176 $ac_includes_default
11177 int
11178 main ()
11179 {
11180 static int test_array [1 - 2 * !(($ac_type) -1 == 4294967295U)];
11181 test_array [0] = 0
11182
11183   ;
11184   return 0;
11185 }
11186 _ACEOF
11187 rm -f conftest.$ac_objext
11188 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11189   (eval $ac_compile) 2>conftest.er1
11190   ac_status=$?
11191   grep -v '^ *+' conftest.er1 >conftest.err
11192   rm -f conftest.er1
11193   cat conftest.err >&5
11194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11195   (exit $ac_status); } &&
11196          { ac_try='test -z "$ac_c_werror_flag"
11197                          || test ! -s conftest.err'
11198   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11199   (eval $ac_try) 2>&5
11200   ac_status=$?
11201   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11202   (exit $ac_status); }; } &&
11203          { ac_try='test -s conftest.$ac_objext'
11204   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11205   (eval $ac_try) 2>&5
11206   ac_status=$?
11207   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11208   (exit $ac_status); }; }; then
11209   gl_cv_c_uint32_t=$ac_type
11210 else
11211   echo "$as_me: failed program was:" >&5
11212 sed 's/^/| /' conftest.$ac_ext >&5
11213
11214 fi
11215 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11216        test "$gl_cv_c_uint32_t" != no && break
11217      done
11218 fi
11219 echo "$as_me:$LINENO: result: $gl_cv_c_uint32_t" >&5
11220 echo "${ECHO_T}$gl_cv_c_uint32_t" >&6
11221   case "$gl_cv_c_uint32_t" in
11222   no|uint32_t) ;;
11223   *)
11224
11225 cat >>confdefs.h <<\_ACEOF
11226 #define _UINT32_T 1
11227 _ACEOF
11228
11229
11230 cat >>confdefs.h <<_ACEOF
11231 #define uint32_t $gl_cv_c_uint32_t
11232 _ACEOF
11233
11234     ;;
11235   esac
11236
11237   echo "$as_me:$LINENO: checking for UINT32_MAX" >&5
11238 echo $ECHO_N "checking for UINT32_MAX... $ECHO_C" >&6
11239 if test "${gl_cv_c_uint32_max+set}" = set; then
11240   echo $ECHO_N "(cached) $ECHO_C" >&6
11241 else
11242   cat >conftest.$ac_ext <<_ACEOF
11243 /* confdefs.h.  */
11244 _ACEOF
11245 cat confdefs.h >>conftest.$ac_ext
11246 cat >>conftest.$ac_ext <<_ACEOF
11247 /* end confdefs.h.  */
11248 $ac_includes_default
11249 int
11250 main ()
11251 {
11252 static int test_array [1 - 2 * !(UINT32_MAX == 4294967295U)];
11253 test_array [0] = 0
11254
11255   ;
11256   return 0;
11257 }
11258 _ACEOF
11259 rm -f conftest.$ac_objext
11260 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11261   (eval $ac_compile) 2>conftest.er1
11262   ac_status=$?
11263   grep -v '^ *+' conftest.er1 >conftest.err
11264   rm -f conftest.er1
11265   cat conftest.err >&5
11266   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11267   (exit $ac_status); } &&
11268          { ac_try='test -z "$ac_c_werror_flag"
11269                          || test ! -s conftest.err'
11270   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11271   (eval $ac_try) 2>&5
11272   ac_status=$?
11273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11274   (exit $ac_status); }; } &&
11275          { ac_try='test -s conftest.$ac_objext'
11276   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11277   (eval $ac_try) 2>&5
11278   ac_status=$?
11279   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11280   (exit $ac_status); }; }; then
11281   gl_cv_c_uint32_max=yes
11282 else
11283   echo "$as_me: failed program was:" >&5
11284 sed 's/^/| /' conftest.$ac_ext >&5
11285
11286 gl_cv_c_uint32_max=no
11287 fi
11288 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11289 fi
11290 echo "$as_me:$LINENO: result: $gl_cv_c_uint32_max" >&5
11291 echo "${ECHO_T}$gl_cv_c_uint32_max" >&6
11292   case $gl_cv_c_uint32_max,$gl_cv_c_uint32_t in
11293   yes,*) ;;
11294   *,no) ;;
11295   *)
11296
11297 cat >>confdefs.h <<\_ACEOF
11298 #define UINT32_MAX 4294967295U
11299 _ACEOF
11300
11301     ;;
11302   esac
11303
11304 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
11305 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
11306 if test "${ac_cv_c_bigendian+set}" = set; then
11307   echo $ECHO_N "(cached) $ECHO_C" >&6
11308 else
11309   # See if sys/param.h defines the BYTE_ORDER macro.
11310 cat >conftest.$ac_ext <<_ACEOF
11311 /* confdefs.h.  */
11312 _ACEOF
11313 cat confdefs.h >>conftest.$ac_ext
11314 cat >>conftest.$ac_ext <<_ACEOF
11315 /* end confdefs.h.  */
11316 #include <sys/types.h>
11317 #include <sys/param.h>
11318
11319 int
11320 main ()
11321 {
11322 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
11323  bogus endian macros
11324 #endif
11325
11326   ;
11327   return 0;
11328 }
11329 _ACEOF
11330 rm -f conftest.$ac_objext
11331 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11332   (eval $ac_compile) 2>conftest.er1
11333   ac_status=$?
11334   grep -v '^ *+' conftest.er1 >conftest.err
11335   rm -f conftest.er1
11336   cat conftest.err >&5
11337   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11338   (exit $ac_status); } &&
11339          { ac_try='test -z "$ac_c_werror_flag"
11340                          || test ! -s conftest.err'
11341   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11342   (eval $ac_try) 2>&5
11343   ac_status=$?
11344   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11345   (exit $ac_status); }; } &&
11346          { ac_try='test -s conftest.$ac_objext'
11347   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11348   (eval $ac_try) 2>&5
11349   ac_status=$?
11350   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11351   (exit $ac_status); }; }; then
11352   # It does; now see whether it defined to BIG_ENDIAN or not.
11353 cat >conftest.$ac_ext <<_ACEOF
11354 /* confdefs.h.  */
11355 _ACEOF
11356 cat confdefs.h >>conftest.$ac_ext
11357 cat >>conftest.$ac_ext <<_ACEOF
11358 /* end confdefs.h.  */
11359 #include <sys/types.h>
11360 #include <sys/param.h>
11361
11362 int
11363 main ()
11364 {
11365 #if BYTE_ORDER != BIG_ENDIAN
11366  not big endian
11367 #endif
11368
11369   ;
11370   return 0;
11371 }
11372 _ACEOF
11373 rm -f conftest.$ac_objext
11374 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11375   (eval $ac_compile) 2>conftest.er1
11376   ac_status=$?
11377   grep -v '^ *+' conftest.er1 >conftest.err
11378   rm -f conftest.er1
11379   cat conftest.err >&5
11380   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11381   (exit $ac_status); } &&
11382          { ac_try='test -z "$ac_c_werror_flag"
11383                          || test ! -s conftest.err'
11384   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11385   (eval $ac_try) 2>&5
11386   ac_status=$?
11387   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11388   (exit $ac_status); }; } &&
11389          { ac_try='test -s conftest.$ac_objext'
11390   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11391   (eval $ac_try) 2>&5
11392   ac_status=$?
11393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11394   (exit $ac_status); }; }; then
11395   ac_cv_c_bigendian=yes
11396 else
11397   echo "$as_me: failed program was:" >&5
11398 sed 's/^/| /' conftest.$ac_ext >&5
11399
11400 ac_cv_c_bigendian=no
11401 fi
11402 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11403 else
11404   echo "$as_me: failed program was:" >&5
11405 sed 's/^/| /' conftest.$ac_ext >&5
11406
11407 # It does not; compile a test program.
11408 if test "$cross_compiling" = yes; then
11409   # try to guess the endianness by grepping values into an object file
11410   ac_cv_c_bigendian=unknown
11411   cat >conftest.$ac_ext <<_ACEOF
11412 /* confdefs.h.  */
11413 _ACEOF
11414 cat confdefs.h >>conftest.$ac_ext
11415 cat >>conftest.$ac_ext <<_ACEOF
11416 /* end confdefs.h.  */
11417 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
11418 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
11419 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
11420 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
11421 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
11422 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
11423 int
11424 main ()
11425 {
11426  _ascii (); _ebcdic ();
11427   ;
11428   return 0;
11429 }
11430 _ACEOF
11431 rm -f conftest.$ac_objext
11432 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11433   (eval $ac_compile) 2>conftest.er1
11434   ac_status=$?
11435   grep -v '^ *+' conftest.er1 >conftest.err
11436   rm -f conftest.er1
11437   cat conftest.err >&5
11438   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11439   (exit $ac_status); } &&
11440          { ac_try='test -z "$ac_c_werror_flag"
11441                          || test ! -s conftest.err'
11442   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11443   (eval $ac_try) 2>&5
11444   ac_status=$?
11445   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11446   (exit $ac_status); }; } &&
11447          { ac_try='test -s conftest.$ac_objext'
11448   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11449   (eval $ac_try) 2>&5
11450   ac_status=$?
11451   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11452   (exit $ac_status); }; }; then
11453   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
11454   ac_cv_c_bigendian=yes
11455 fi
11456 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
11457   if test "$ac_cv_c_bigendian" = unknown; then
11458     ac_cv_c_bigendian=no
11459   else
11460     # finding both strings is unlikely to happen, but who knows?
11461     ac_cv_c_bigendian=unknown
11462   fi
11463 fi
11464 else
11465   echo "$as_me: failed program was:" >&5
11466 sed 's/^/| /' conftest.$ac_ext >&5
11467
11468 fi
11469 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11470 else
11471   cat >conftest.$ac_ext <<_ACEOF
11472 /* confdefs.h.  */
11473 _ACEOF
11474 cat confdefs.h >>conftest.$ac_ext
11475 cat >>conftest.$ac_ext <<_ACEOF
11476 /* end confdefs.h.  */
11477 int
11478 main ()
11479 {
11480   /* Are we little or big endian?  From Harbison&Steele.  */
11481   union
11482   {
11483     long l;
11484     char c[sizeof (long)];
11485   } u;
11486   u.l = 1;
11487   exit (u.c[sizeof (long) - 1] == 1);
11488 }
11489 _ACEOF
11490 rm -f conftest$ac_exeext
11491 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11492   (eval $ac_link) 2>&5
11493   ac_status=$?
11494   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11495   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11496   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11497   (eval $ac_try) 2>&5
11498   ac_status=$?
11499   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11500   (exit $ac_status); }; }; then
11501   ac_cv_c_bigendian=no
11502 else
11503   echo "$as_me: program exited with status $ac_status" >&5
11504 echo "$as_me: failed program was:" >&5
11505 sed 's/^/| /' conftest.$ac_ext >&5
11506
11507 ( exit $ac_status )
11508 ac_cv_c_bigendian=yes
11509 fi
11510 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11511 fi
11512 fi
11513 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11514 fi
11515 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
11516 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
11517 case $ac_cv_c_bigendian in
11518   yes)
11519
11520 cat >>confdefs.h <<\_ACEOF
11521 #define WORDS_BIGENDIAN 1
11522 _ACEOF
11523  ;;
11524   no)
11525      ;;
11526   *)
11527     { { echo "$as_me:$LINENO: error: unknown endianness
11528 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
11529 echo "$as_me: error: unknown endianness
11530 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
11531    { (exit 1); exit 1; }; } ;;
11532 esac
11533
11534
11535       echo "$as_me:$LINENO: checking whether getenv is declared" >&5
11536 echo $ECHO_N "checking whether getenv is declared... $ECHO_C" >&6
11537 if test "${ac_cv_have_decl_getenv+set}" = set; then
11538   echo $ECHO_N "(cached) $ECHO_C" >&6
11539 else
11540   cat >conftest.$ac_ext <<_ACEOF
11541 /* confdefs.h.  */
11542 _ACEOF
11543 cat confdefs.h >>conftest.$ac_ext
11544 cat >>conftest.$ac_ext <<_ACEOF
11545 /* end confdefs.h.  */
11546 $ac_includes_default
11547 int
11548 main ()
11549 {
11550 #ifndef getenv
11551   char *p = (char *) getenv;
11552 #endif
11553
11554   ;
11555   return 0;
11556 }
11557 _ACEOF
11558 rm -f conftest.$ac_objext
11559 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11560   (eval $ac_compile) 2>conftest.er1
11561   ac_status=$?
11562   grep -v '^ *+' conftest.er1 >conftest.err
11563   rm -f conftest.er1
11564   cat conftest.err >&5
11565   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11566   (exit $ac_status); } &&
11567          { ac_try='test -z "$ac_c_werror_flag"
11568                          || test ! -s conftest.err'
11569   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11570   (eval $ac_try) 2>&5
11571   ac_status=$?
11572   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11573   (exit $ac_status); }; } &&
11574          { ac_try='test -s conftest.$ac_objext'
11575   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11576   (eval $ac_try) 2>&5
11577   ac_status=$?
11578   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11579   (exit $ac_status); }; }; then
11580   ac_cv_have_decl_getenv=yes
11581 else
11582   echo "$as_me: failed program was:" >&5
11583 sed 's/^/| /' conftest.$ac_ext >&5
11584
11585 ac_cv_have_decl_getenv=no
11586 fi
11587 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11588 fi
11589 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getenv" >&5
11590 echo "${ECHO_T}$ac_cv_have_decl_getenv" >&6
11591 if test $ac_cv_have_decl_getenv = yes; then
11592
11593 cat >>confdefs.h <<_ACEOF
11594 #define HAVE_DECL_GETENV 1
11595 _ACEOF
11596
11597
11598 else
11599   cat >>confdefs.h <<_ACEOF
11600 #define HAVE_DECL_GETENV 0
11601 _ACEOF
11602
11603
11604 fi
11605
11606
11607
11608
11609   echo "$as_me:$LINENO: checking for inttypes.h" >&5
11610 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
11611 if test "${gl_cv_header_inttypes_h+set}" = set; then
11612   echo $ECHO_N "(cached) $ECHO_C" >&6
11613 else
11614   cat >conftest.$ac_ext <<_ACEOF
11615 /* confdefs.h.  */
11616 _ACEOF
11617 cat confdefs.h >>conftest.$ac_ext
11618 cat >>conftest.$ac_ext <<_ACEOF
11619 /* end confdefs.h.  */
11620 #include <sys/types.h>
11621 #include <inttypes.h>
11622 int
11623 main ()
11624 {
11625 uintmax_t i = (uintmax_t) -1;
11626   ;
11627   return 0;
11628 }
11629 _ACEOF
11630 rm -f conftest.$ac_objext
11631 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11632   (eval $ac_compile) 2>conftest.er1
11633   ac_status=$?
11634   grep -v '^ *+' conftest.er1 >conftest.err
11635   rm -f conftest.er1
11636   cat conftest.err >&5
11637   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11638   (exit $ac_status); } &&
11639          { ac_try='test -z "$ac_c_werror_flag"
11640                          || test ! -s conftest.err'
11641   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11642   (eval $ac_try) 2>&5
11643   ac_status=$?
11644   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11645   (exit $ac_status); }; } &&
11646          { ac_try='test -s conftest.$ac_objext'
11647   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11648   (eval $ac_try) 2>&5
11649   ac_status=$?
11650   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11651   (exit $ac_status); }; }; then
11652   gl_cv_header_inttypes_h=yes
11653 else
11654   echo "$as_me: failed program was:" >&5
11655 sed 's/^/| /' conftest.$ac_ext >&5
11656
11657 gl_cv_header_inttypes_h=no
11658 fi
11659 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11660 fi
11661 echo "$as_me:$LINENO: result: $gl_cv_header_inttypes_h" >&5
11662 echo "${ECHO_T}$gl_cv_header_inttypes_h" >&6
11663   if test $gl_cv_header_inttypes_h = yes; then
11664
11665 cat >>confdefs.h <<_ACEOF
11666 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
11667 _ACEOF
11668
11669   fi
11670
11671
11672   echo "$as_me:$LINENO: checking for stdint.h" >&5
11673 echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6
11674 if test "${gl_cv_header_stdint_h+set}" = set; then
11675   echo $ECHO_N "(cached) $ECHO_C" >&6
11676 else
11677   cat >conftest.$ac_ext <<_ACEOF
11678 /* confdefs.h.  */
11679 _ACEOF
11680 cat confdefs.h >>conftest.$ac_ext
11681 cat >>conftest.$ac_ext <<_ACEOF
11682 /* end confdefs.h.  */
11683 #include <sys/types.h>
11684 #include <stdint.h>
11685 int
11686 main ()
11687 {
11688 uintmax_t i = (uintmax_t) -1;
11689   ;
11690   return 0;
11691 }
11692 _ACEOF
11693 rm -f conftest.$ac_objext
11694 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11695   (eval $ac_compile) 2>conftest.er1
11696   ac_status=$?
11697   grep -v '^ *+' conftest.er1 >conftest.err
11698   rm -f conftest.er1
11699   cat conftest.err >&5
11700   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11701   (exit $ac_status); } &&
11702          { ac_try='test -z "$ac_c_werror_flag"
11703                          || test ! -s conftest.err'
11704   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11705   (eval $ac_try) 2>&5
11706   ac_status=$?
11707   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11708   (exit $ac_status); }; } &&
11709          { ac_try='test -s conftest.$ac_objext'
11710   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11711   (eval $ac_try) 2>&5
11712   ac_status=$?
11713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11714   (exit $ac_status); }; }; then
11715   gl_cv_header_stdint_h=yes
11716 else
11717   echo "$as_me: failed program was:" >&5
11718 sed 's/^/| /' conftest.$ac_ext >&5
11719
11720 gl_cv_header_stdint_h=no
11721 fi
11722 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11723 fi
11724 echo "$as_me:$LINENO: result: $gl_cv_header_stdint_h" >&5
11725 echo "${ECHO_T}$gl_cv_header_stdint_h" >&6
11726   if test $gl_cv_header_stdint_h = yes; then
11727
11728 cat >>confdefs.h <<_ACEOF
11729 #define HAVE_STDINT_H_WITH_UINTMAX 1
11730 _ACEOF
11731
11732   fi
11733
11734
11735   echo "$as_me:$LINENO: checking for unsigned long long" >&5
11736 echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6
11737 if test "${ac_cv_type_unsigned_long_long+set}" = set; then
11738   echo $ECHO_N "(cached) $ECHO_C" >&6
11739 else
11740   cat >conftest.$ac_ext <<_ACEOF
11741 /* confdefs.h.  */
11742 _ACEOF
11743 cat confdefs.h >>conftest.$ac_ext
11744 cat >>conftest.$ac_ext <<_ACEOF
11745 /* end confdefs.h.  */
11746 unsigned long long ull = 1ULL; int i = 63;
11747 int
11748 main ()
11749 {
11750 unsigned long long ullmax = (unsigned long long) -1;
11751      return ull << i | ull >> i | ullmax / ull | ullmax % ull;
11752   ;
11753   return 0;
11754 }
11755 _ACEOF
11756 rm -f conftest.$ac_objext conftest$ac_exeext
11757 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11758   (eval $ac_link) 2>conftest.er1
11759   ac_status=$?
11760   grep -v '^ *+' conftest.er1 >conftest.err
11761   rm -f conftest.er1
11762   cat conftest.err >&5
11763   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11764   (exit $ac_status); } &&
11765          { ac_try='test -z "$ac_c_werror_flag"
11766                          || test ! -s conftest.err'
11767   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11768   (eval $ac_try) 2>&5
11769   ac_status=$?
11770   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11771   (exit $ac_status); }; } &&
11772          { ac_try='test -s conftest$ac_exeext'
11773   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11774   (eval $ac_try) 2>&5
11775   ac_status=$?
11776   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11777   (exit $ac_status); }; }; then
11778   ac_cv_type_unsigned_long_long=yes
11779 else
11780   echo "$as_me: failed program was:" >&5
11781 sed 's/^/| /' conftest.$ac_ext >&5
11782
11783 ac_cv_type_unsigned_long_long=no
11784 fi
11785 rm -f conftest.err conftest.$ac_objext \
11786       conftest$ac_exeext conftest.$ac_ext
11787 fi
11788 echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5
11789 echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6
11790   if test $ac_cv_type_unsigned_long_long = yes; then
11791
11792 cat >>confdefs.h <<\_ACEOF
11793 #define HAVE_UNSIGNED_LONG_LONG 1
11794 _ACEOF
11795
11796   fi
11797
11798
11799
11800
11801   if test $gl_cv_header_inttypes_h = no && test $gl_cv_header_stdint_h = no; then
11802
11803     test $ac_cv_type_unsigned_long_long = yes \
11804       && ac_type='unsigned long long' \
11805       || ac_type='unsigned long'
11806
11807 cat >>confdefs.h <<_ACEOF
11808 #define uintmax_t $ac_type
11809 _ACEOF
11810
11811   else
11812
11813 cat >>confdefs.h <<\_ACEOF
11814 #define HAVE_UINTMAX_T 1
11815 _ACEOF
11816
11817   fi
11818
11819
11820
11821
11822 for ac_header in stdlib.h sys/time.h unistd.h
11823 do
11824 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11825 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11826   echo "$as_me:$LINENO: checking for $ac_header" >&5
11827 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11828 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11829   echo $ECHO_N "(cached) $ECHO_C" >&6
11830 fi
11831 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11832 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11833 else
11834   # Is the header compilable?
11835 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11836 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11837 cat >conftest.$ac_ext <<_ACEOF
11838 /* confdefs.h.  */
11839 _ACEOF
11840 cat confdefs.h >>conftest.$ac_ext
11841 cat >>conftest.$ac_ext <<_ACEOF
11842 /* end confdefs.h.  */
11843 $ac_includes_default
11844 #include <$ac_header>
11845 _ACEOF
11846 rm -f conftest.$ac_objext
11847 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11848   (eval $ac_compile) 2>conftest.er1
11849   ac_status=$?
11850   grep -v '^ *+' conftest.er1 >conftest.err
11851   rm -f conftest.er1
11852   cat conftest.err >&5
11853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11854   (exit $ac_status); } &&
11855          { ac_try='test -z "$ac_c_werror_flag"
11856                          || test ! -s conftest.err'
11857   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11858   (eval $ac_try) 2>&5
11859   ac_status=$?
11860   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11861   (exit $ac_status); }; } &&
11862          { ac_try='test -s conftest.$ac_objext'
11863   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11864   (eval $ac_try) 2>&5
11865   ac_status=$?
11866   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11867   (exit $ac_status); }; }; then
11868   ac_header_compiler=yes
11869 else
11870   echo "$as_me: failed program was:" >&5
11871 sed 's/^/| /' conftest.$ac_ext >&5
11872
11873 ac_header_compiler=no
11874 fi
11875 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11876 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11877 echo "${ECHO_T}$ac_header_compiler" >&6
11878
11879 # Is the header present?
11880 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11881 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11882 cat >conftest.$ac_ext <<_ACEOF
11883 /* confdefs.h.  */
11884 _ACEOF
11885 cat confdefs.h >>conftest.$ac_ext
11886 cat >>conftest.$ac_ext <<_ACEOF
11887 /* end confdefs.h.  */
11888 #include <$ac_header>
11889 _ACEOF
11890 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11891   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11892   ac_status=$?
11893   grep -v '^ *+' conftest.er1 >conftest.err
11894   rm -f conftest.er1
11895   cat conftest.err >&5
11896   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11897   (exit $ac_status); } >/dev/null; then
11898   if test -s conftest.err; then
11899     ac_cpp_err=$ac_c_preproc_warn_flag
11900     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11901   else
11902     ac_cpp_err=
11903   fi
11904 else
11905   ac_cpp_err=yes
11906 fi
11907 if test -z "$ac_cpp_err"; then
11908   ac_header_preproc=yes
11909 else
11910   echo "$as_me: failed program was:" >&5
11911 sed 's/^/| /' conftest.$ac_ext >&5
11912
11913   ac_header_preproc=no
11914 fi
11915 rm -f conftest.err conftest.$ac_ext
11916 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11917 echo "${ECHO_T}$ac_header_preproc" >&6
11918
11919 # So?  What about this header?
11920 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11921   yes:no: )
11922     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11923 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11924     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11925 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11926     ac_header_preproc=yes
11927     ;;
11928   no:yes:* )
11929     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11930 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11931     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11932 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11933     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11934 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11935     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11936 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11937     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11938 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11939     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11940 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11941     (
11942       cat <<\_ASBOX
11943 ## ------------------------------ ##
11944 ## Report this to bug-cvs@gnu.org ##
11945 ## ------------------------------ ##
11946 _ASBOX
11947     ) |
11948       sed "s/^/$as_me: WARNING:     /" >&2
11949     ;;
11950 esac
11951 echo "$as_me:$LINENO: checking for $ac_header" >&5
11952 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11953 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11954   echo $ECHO_N "(cached) $ECHO_C" >&6
11955 else
11956   eval "$as_ac_Header=\$ac_header_preproc"
11957 fi
11958 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11959 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11960
11961 fi
11962 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11963   cat >>confdefs.h <<_ACEOF
11964 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11965 _ACEOF
11966
11967 fi
11968
11969 done
11970
11971
11972 for ac_func in alarm
11973 do
11974 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11975 echo "$as_me:$LINENO: checking for $ac_func" >&5
11976 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11977 if eval "test \"\${$as_ac_var+set}\" = set"; then
11978   echo $ECHO_N "(cached) $ECHO_C" >&6
11979 else
11980   cat >conftest.$ac_ext <<_ACEOF
11981 /* confdefs.h.  */
11982 _ACEOF
11983 cat confdefs.h >>conftest.$ac_ext
11984 cat >>conftest.$ac_ext <<_ACEOF
11985 /* end confdefs.h.  */
11986 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11987    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11988 #define $ac_func innocuous_$ac_func
11989
11990 /* System header to define __stub macros and hopefully few prototypes,
11991     which can conflict with char $ac_func (); below.
11992     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11993     <limits.h> exists even on freestanding compilers.  */
11994
11995 #ifdef __STDC__
11996 # include <limits.h>
11997 #else
11998 # include <assert.h>
11999 #endif
12000
12001 #undef $ac_func
12002
12003 /* Override any gcc2 internal prototype to avoid an error.  */
12004 #ifdef __cplusplus
12005 extern "C"
12006 {
12007 #endif
12008 /* We use char because int might match the return type of a gcc2
12009    builtin and then its argument prototype would still apply.  */
12010 char $ac_func ();
12011 /* The GNU C library defines this for functions which it implements
12012     to always fail with ENOSYS.  Some functions are actually named
12013     something starting with __ and the normal name is an alias.  */
12014 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12015 choke me
12016 #else
12017 char (*f) () = $ac_func;
12018 #endif
12019 #ifdef __cplusplus
12020 }
12021 #endif
12022
12023 int
12024 main ()
12025 {
12026 return f != $ac_func;
12027   ;
12028   return 0;
12029 }
12030 _ACEOF
12031 rm -f conftest.$ac_objext conftest$ac_exeext
12032 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12033   (eval $ac_link) 2>conftest.er1
12034   ac_status=$?
12035   grep -v '^ *+' conftest.er1 >conftest.err
12036   rm -f conftest.er1
12037   cat conftest.err >&5
12038   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12039   (exit $ac_status); } &&
12040          { ac_try='test -z "$ac_c_werror_flag"
12041                          || test ! -s conftest.err'
12042   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12043   (eval $ac_try) 2>&5
12044   ac_status=$?
12045   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12046   (exit $ac_status); }; } &&
12047          { ac_try='test -s conftest$ac_exeext'
12048   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12049   (eval $ac_try) 2>&5
12050   ac_status=$?
12051   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12052   (exit $ac_status); }; }; then
12053   eval "$as_ac_var=yes"
12054 else
12055   echo "$as_me: failed program was:" >&5
12056 sed 's/^/| /' conftest.$ac_ext >&5
12057
12058 eval "$as_ac_var=no"
12059 fi
12060 rm -f conftest.err conftest.$ac_objext \
12061       conftest$ac_exeext conftest.$ac_ext
12062 fi
12063 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12064 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12065 if test `eval echo '${'$as_ac_var'}'` = yes; then
12066   cat >>confdefs.h <<_ACEOF
12067 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12068 _ACEOF
12069
12070 fi
12071 done
12072
12073 echo "$as_me:$LINENO: checking for working mktime" >&5
12074 echo $ECHO_N "checking for working mktime... $ECHO_C" >&6
12075 if test "${ac_cv_func_working_mktime+set}" = set; then
12076   echo $ECHO_N "(cached) $ECHO_C" >&6
12077 else
12078   if test "$cross_compiling" = yes; then
12079   ac_cv_func_working_mktime=no
12080 else
12081   cat >conftest.$ac_ext <<_ACEOF
12082 /* confdefs.h.  */
12083 _ACEOF
12084 cat confdefs.h >>conftest.$ac_ext
12085 cat >>conftest.$ac_ext <<_ACEOF
12086 /* end confdefs.h.  */
12087 /* Test program from Paul Eggert and Tony Leneis.  */
12088 #if TIME_WITH_SYS_TIME
12089 # include <sys/time.h>
12090 # include <time.h>
12091 #else
12092 # if HAVE_SYS_TIME_H
12093 #  include <sys/time.h>
12094 # else
12095 #  include <time.h>
12096 # endif
12097 #endif
12098
12099 #if HAVE_STDLIB_H
12100 # include <stdlib.h>
12101 #endif
12102
12103 #if HAVE_UNISTD_H
12104 # include <unistd.h>
12105 #endif
12106
12107 #if !HAVE_ALARM
12108 # define alarm(X) /* empty */
12109 #endif
12110
12111 /* Work around redefinition to rpl_putenv by other config tests.  */
12112 #undef putenv
12113
12114 static time_t time_t_max;
12115 static time_t time_t_min;
12116
12117 /* Values we'll use to set the TZ environment variable.  */
12118 static char *tz_strings[] = {
12119   (char *) 0, "TZ=GMT0", "TZ=JST-9",
12120   "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
12121 };
12122 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
12123
12124 /* Fail if mktime fails to convert a date in the spring-forward gap.
12125    Based on a problem report from Andreas Jaeger.  */
12126 static void
12127 spring_forward_gap ()
12128 {
12129   /* glibc (up to about 1998-10-07) failed this test. */
12130   struct tm tm;
12131
12132   /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
12133      instead of "TZ=America/Vancouver" in order to detect the bug even
12134      on systems that don't support the Olson extension, or don't have the
12135      full zoneinfo tables installed.  */
12136   putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
12137
12138   tm.tm_year = 98;
12139   tm.tm_mon = 3;
12140   tm.tm_mday = 5;
12141   tm.tm_hour = 2;
12142   tm.tm_min = 0;
12143   tm.tm_sec = 0;
12144   tm.tm_isdst = -1;
12145   if (mktime (&tm) == (time_t)-1)
12146     exit (1);
12147 }
12148
12149 static void
12150 mktime_test1 (now)
12151      time_t now;
12152 {
12153   struct tm *lt;
12154   if ((lt = localtime (&now)) && mktime (lt) != now)
12155     exit (1);
12156 }
12157
12158 static void
12159 mktime_test (now)
12160      time_t now;
12161 {
12162   mktime_test1 (now);
12163   mktime_test1 ((time_t) (time_t_max - now));
12164   mktime_test1 ((time_t) (time_t_min + now));
12165 }
12166
12167 static void
12168 irix_6_4_bug ()
12169 {
12170   /* Based on code from Ariel Faigon.  */
12171   struct tm tm;
12172   tm.tm_year = 96;
12173   tm.tm_mon = 3;
12174   tm.tm_mday = 0;
12175   tm.tm_hour = 0;
12176   tm.tm_min = 0;
12177   tm.tm_sec = 0;
12178   tm.tm_isdst = -1;
12179   mktime (&tm);
12180   if (tm.tm_mon != 2 || tm.tm_mday != 31)
12181     exit (1);
12182 }
12183
12184 static void
12185 bigtime_test (j)
12186      int j;
12187 {
12188   struct tm tm;
12189   time_t now;
12190   tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
12191   now = mktime (&tm);
12192   if (now != (time_t) -1)
12193     {
12194       struct tm *lt = localtime (&now);
12195       if (! (lt
12196              && lt->tm_year == tm.tm_year
12197              && lt->tm_mon == tm.tm_mon
12198              && lt->tm_mday == tm.tm_mday
12199              && lt->tm_hour == tm.tm_hour
12200              && lt->tm_min == tm.tm_min
12201              && lt->tm_sec == tm.tm_sec
12202              && lt->tm_yday == tm.tm_yday
12203              && lt->tm_wday == tm.tm_wday
12204              && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
12205                   == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
12206         exit (1);
12207     }
12208 }
12209
12210 int
12211 main ()
12212 {
12213   time_t t, delta;
12214   int i, j;
12215
12216   /* This test makes some buggy mktime implementations loop.
12217      Give up after 60 seconds; a mktime slower than that
12218      isn't worth using anyway.  */
12219   alarm (60);
12220
12221   for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2)
12222     continue;
12223   time_t_max--;
12224   if ((time_t) -1 < 0)
12225     for (time_t_min = -1; (time_t) (time_t_min * 2) < 0; time_t_min *= 2)
12226       continue;
12227   delta = time_t_max / 997; /* a suitable prime number */
12228   for (i = 0; i < N_STRINGS; i++)
12229     {
12230       if (tz_strings[i])
12231         putenv (tz_strings[i]);
12232
12233       for (t = 0; t <= time_t_max - delta; t += delta)
12234         mktime_test (t);
12235       mktime_test ((time_t) 1);
12236       mktime_test ((time_t) (60 * 60));
12237       mktime_test ((time_t) (60 * 60 * 24));
12238
12239       for (j = 1; 0 < j; j *= 2)
12240         bigtime_test (j);
12241       bigtime_test (j - 1);
12242     }
12243   irix_6_4_bug ();
12244   spring_forward_gap ();
12245   exit (0);
12246 }
12247 _ACEOF
12248 rm -f conftest$ac_exeext
12249 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12250   (eval $ac_link) 2>&5
12251   ac_status=$?
12252   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12253   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12254   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12255   (eval $ac_try) 2>&5
12256   ac_status=$?
12257   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12258   (exit $ac_status); }; }; then
12259   ac_cv_func_working_mktime=yes
12260 else
12261   echo "$as_me: program exited with status $ac_status" >&5
12262 echo "$as_me: failed program was:" >&5
12263 sed 's/^/| /' conftest.$ac_ext >&5
12264
12265 ( exit $ac_status )
12266 ac_cv_func_working_mktime=no
12267 fi
12268 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12269 fi
12270 fi
12271 echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5
12272 echo "${ECHO_T}$ac_cv_func_working_mktime" >&6
12273 if test $ac_cv_func_working_mktime = no; then
12274   case $LIBOBJS in
12275     "mktime.$ac_objext"   | \
12276   *" mktime.$ac_objext"   | \
12277     "mktime.$ac_objext "* | \
12278   *" mktime.$ac_objext "* ) ;;
12279   *) LIBOBJS="$LIBOBJS mktime.$ac_objext" ;;
12280 esac
12281
12282 fi
12283
12284
12285
12286
12287
12288
12289
12290   # Check for mmap()
12291
12292
12293 for ac_header in stdlib.h unistd.h
12294 do
12295 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12296 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12297   echo "$as_me:$LINENO: checking for $ac_header" >&5
12298 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12299 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12300   echo $ECHO_N "(cached) $ECHO_C" >&6
12301 fi
12302 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12303 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12304 else
12305   # Is the header compilable?
12306 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12307 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12308 cat >conftest.$ac_ext <<_ACEOF
12309 /* confdefs.h.  */
12310 _ACEOF
12311 cat confdefs.h >>conftest.$ac_ext
12312 cat >>conftest.$ac_ext <<_ACEOF
12313 /* end confdefs.h.  */
12314 $ac_includes_default
12315 #include <$ac_header>
12316 _ACEOF
12317 rm -f conftest.$ac_objext
12318 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12319   (eval $ac_compile) 2>conftest.er1
12320   ac_status=$?
12321   grep -v '^ *+' conftest.er1 >conftest.err
12322   rm -f conftest.er1
12323   cat conftest.err >&5
12324   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12325   (exit $ac_status); } &&
12326          { ac_try='test -z "$ac_c_werror_flag"
12327                          || test ! -s conftest.err'
12328   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12329   (eval $ac_try) 2>&5
12330   ac_status=$?
12331   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12332   (exit $ac_status); }; } &&
12333          { ac_try='test -s conftest.$ac_objext'
12334   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12335   (eval $ac_try) 2>&5
12336   ac_status=$?
12337   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12338   (exit $ac_status); }; }; then
12339   ac_header_compiler=yes
12340 else
12341   echo "$as_me: failed program was:" >&5
12342 sed 's/^/| /' conftest.$ac_ext >&5
12343
12344 ac_header_compiler=no
12345 fi
12346 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12347 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12348 echo "${ECHO_T}$ac_header_compiler" >&6
12349
12350 # Is the header present?
12351 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12352 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12353 cat >conftest.$ac_ext <<_ACEOF
12354 /* confdefs.h.  */
12355 _ACEOF
12356 cat confdefs.h >>conftest.$ac_ext
12357 cat >>conftest.$ac_ext <<_ACEOF
12358 /* end confdefs.h.  */
12359 #include <$ac_header>
12360 _ACEOF
12361 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12362   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12363   ac_status=$?
12364   grep -v '^ *+' conftest.er1 >conftest.err
12365   rm -f conftest.er1
12366   cat conftest.err >&5
12367   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12368   (exit $ac_status); } >/dev/null; then
12369   if test -s conftest.err; then
12370     ac_cpp_err=$ac_c_preproc_warn_flag
12371     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12372   else
12373     ac_cpp_err=
12374   fi
12375 else
12376   ac_cpp_err=yes
12377 fi
12378 if test -z "$ac_cpp_err"; then
12379   ac_header_preproc=yes
12380 else
12381   echo "$as_me: failed program was:" >&5
12382 sed 's/^/| /' conftest.$ac_ext >&5
12383
12384   ac_header_preproc=no
12385 fi
12386 rm -f conftest.err conftest.$ac_ext
12387 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12388 echo "${ECHO_T}$ac_header_preproc" >&6
12389
12390 # So?  What about this header?
12391 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12392   yes:no: )
12393     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12394 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12395     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12396 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12397     ac_header_preproc=yes
12398     ;;
12399   no:yes:* )
12400     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12401 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12402     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
12403 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
12404     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12405 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12406     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
12407 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
12408     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12409 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12410     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12411 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12412     (
12413       cat <<\_ASBOX
12414 ## ------------------------------ ##
12415 ## Report this to bug-cvs@gnu.org ##
12416 ## ------------------------------ ##
12417 _ASBOX
12418     ) |
12419       sed "s/^/$as_me: WARNING:     /" >&2
12420     ;;
12421 esac
12422 echo "$as_me:$LINENO: checking for $ac_header" >&5
12423 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12424 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12425   echo $ECHO_N "(cached) $ECHO_C" >&6
12426 else
12427   eval "$as_ac_Header=\$ac_header_preproc"
12428 fi
12429 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12430 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12431
12432 fi
12433 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12434   cat >>confdefs.h <<_ACEOF
12435 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12436 _ACEOF
12437
12438 fi
12439
12440 done
12441
12442
12443 for ac_func in getpagesize
12444 do
12445 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12446 echo "$as_me:$LINENO: checking for $ac_func" >&5
12447 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12448 if eval "test \"\${$as_ac_var+set}\" = set"; then
12449   echo $ECHO_N "(cached) $ECHO_C" >&6
12450 else
12451   cat >conftest.$ac_ext <<_ACEOF
12452 /* confdefs.h.  */
12453 _ACEOF
12454 cat confdefs.h >>conftest.$ac_ext
12455 cat >>conftest.$ac_ext <<_ACEOF
12456 /* end confdefs.h.  */
12457 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12458    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12459 #define $ac_func innocuous_$ac_func
12460
12461 /* System header to define __stub macros and hopefully few prototypes,
12462     which can conflict with char $ac_func (); below.
12463     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12464     <limits.h> exists even on freestanding compilers.  */
12465
12466 #ifdef __STDC__
12467 # include <limits.h>
12468 #else
12469 # include <assert.h>
12470 #endif
12471
12472 #undef $ac_func
12473
12474 /* Override any gcc2 internal prototype to avoid an error.  */
12475 #ifdef __cplusplus
12476 extern "C"
12477 {
12478 #endif
12479 /* We use char because int might match the return type of a gcc2
12480    builtin and then its argument prototype would still apply.  */
12481 char $ac_func ();
12482 /* The GNU C library defines this for functions which it implements
12483     to always fail with ENOSYS.  Some functions are actually named
12484     something starting with __ and the normal name is an alias.  */
12485 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12486 choke me
12487 #else
12488 char (*f) () = $ac_func;
12489 #endif
12490 #ifdef __cplusplus
12491 }
12492 #endif
12493
12494 int
12495 main ()
12496 {
12497 return f != $ac_func;
12498   ;
12499   return 0;
12500 }
12501 _ACEOF
12502 rm -f conftest.$ac_objext conftest$ac_exeext
12503 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12504   (eval $ac_link) 2>conftest.er1
12505   ac_status=$?
12506   grep -v '^ *+' conftest.er1 >conftest.err
12507   rm -f conftest.er1
12508   cat conftest.err >&5
12509   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12510   (exit $ac_status); } &&
12511          { ac_try='test -z "$ac_c_werror_flag"
12512                          || test ! -s conftest.err'
12513   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12514   (eval $ac_try) 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   eval "$as_ac_var=yes"
12525 else
12526   echo "$as_me: failed program was:" >&5
12527 sed 's/^/| /' conftest.$ac_ext >&5
12528
12529 eval "$as_ac_var=no"
12530 fi
12531 rm -f conftest.err conftest.$ac_objext \
12532       conftest$ac_exeext conftest.$ac_ext
12533 fi
12534 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12535 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12536 if test `eval echo '${'$as_ac_var'}'` = yes; then
12537   cat >>confdefs.h <<_ACEOF
12538 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12539 _ACEOF
12540
12541 fi
12542 done
12543
12544 echo "$as_me:$LINENO: checking for working mmap" >&5
12545 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
12546 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
12547   echo $ECHO_N "(cached) $ECHO_C" >&6
12548 else
12549   if test "$cross_compiling" = yes; then
12550   ac_cv_func_mmap_fixed_mapped=no
12551 else
12552   cat >conftest.$ac_ext <<_ACEOF
12553 /* confdefs.h.  */
12554 _ACEOF
12555 cat confdefs.h >>conftest.$ac_ext
12556 cat >>conftest.$ac_ext <<_ACEOF
12557 /* end confdefs.h.  */
12558 $ac_includes_default
12559 /* malloc might have been renamed as rpl_malloc. */
12560 #undef malloc
12561
12562 /* Thanks to Mike Haertel and Jim Avera for this test.
12563    Here is a matrix of mmap possibilities:
12564         mmap private not fixed
12565         mmap private fixed at somewhere currently unmapped
12566         mmap private fixed at somewhere already mapped
12567         mmap shared not fixed
12568         mmap shared fixed at somewhere currently unmapped
12569         mmap shared fixed at somewhere already mapped
12570    For private mappings, we should verify that changes cannot be read()
12571    back from the file, nor mmap's back from the file at a different
12572    address.  (There have been systems where private was not correctly
12573    implemented like the infamous i386 svr4.0, and systems where the
12574    VM page cache was not coherent with the file system buffer cache
12575    like early versions of FreeBSD and possibly contemporary NetBSD.)
12576    For shared mappings, we should conversely verify that changes get
12577    propagated back to all the places they're supposed to be.
12578
12579    Grep wants private fixed already mapped.
12580    The main things grep needs to know about mmap are:
12581    * does it exist and is it safe to write into the mmap'd area
12582    * how to use it (BSD variants)  */
12583
12584 #include <fcntl.h>
12585 #include <sys/mman.h>
12586
12587 #if !STDC_HEADERS && !HAVE_STDLIB_H
12588 char *malloc ();
12589 #endif
12590
12591 /* This mess was copied from the GNU getpagesize.h.  */
12592 #if !HAVE_GETPAGESIZE
12593 /* Assume that all systems that can run configure have sys/param.h.  */
12594 # if !HAVE_SYS_PARAM_H
12595 #  define HAVE_SYS_PARAM_H 1
12596 # endif
12597
12598 # ifdef _SC_PAGESIZE
12599 #  define getpagesize() sysconf(_SC_PAGESIZE)
12600 # else /* no _SC_PAGESIZE */
12601 #  if HAVE_SYS_PARAM_H
12602 #   include <sys/param.h>
12603 #   ifdef EXEC_PAGESIZE
12604 #    define getpagesize() EXEC_PAGESIZE
12605 #   else /* no EXEC_PAGESIZE */
12606 #    ifdef NBPG
12607 #     define getpagesize() NBPG * CLSIZE
12608 #     ifndef CLSIZE
12609 #      define CLSIZE 1
12610 #     endif /* no CLSIZE */
12611 #    else /* no NBPG */
12612 #     ifdef NBPC
12613 #      define getpagesize() NBPC
12614 #     else /* no NBPC */
12615 #      ifdef PAGESIZE
12616 #       define getpagesize() PAGESIZE
12617 #      endif /* PAGESIZE */
12618 #     endif /* no NBPC */
12619 #    endif /* no NBPG */
12620 #   endif /* no EXEC_PAGESIZE */
12621 #  else /* no HAVE_SYS_PARAM_H */
12622 #   define getpagesize() 8192   /* punt totally */
12623 #  endif /* no HAVE_SYS_PARAM_H */
12624 # endif /* no _SC_PAGESIZE */
12625
12626 #endif /* no HAVE_GETPAGESIZE */
12627
12628 int
12629 main ()
12630 {
12631   char *data, *data2, *data3;
12632   int i, pagesize;
12633   int fd;
12634
12635   pagesize = getpagesize ();
12636
12637   /* First, make a file with some known garbage in it. */
12638   data = (char *) malloc (pagesize);
12639   if (!data)
12640     exit (1);
12641   for (i = 0; i < pagesize; ++i)
12642     *(data + i) = rand ();
12643   umask (0);
12644   fd = creat ("conftest.mmap", 0600);
12645   if (fd < 0)
12646     exit (1);
12647   if (write (fd, data, pagesize) != pagesize)
12648     exit (1);
12649   close (fd);
12650
12651   /* Next, try to mmap the file at a fixed address which already has
12652      something else allocated at it.  If we can, also make sure that
12653      we see the same garbage.  */
12654   fd = open ("conftest.mmap", O_RDWR);
12655   if (fd < 0)
12656     exit (1);
12657   data2 = (char *) malloc (2 * pagesize);
12658   if (!data2)
12659     exit (1);
12660   data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
12661   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
12662                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
12663     exit (1);
12664   for (i = 0; i < pagesize; ++i)
12665     if (*(data + i) != *(data2 + i))
12666       exit (1);
12667
12668   /* Finally, make sure that changes to the mapped area do not
12669      percolate back to the file as seen by read().  (This is a bug on
12670      some variants of i386 svr4.0.)  */
12671   for (i = 0; i < pagesize; ++i)
12672     *(data2 + i) = *(data2 + i) + 1;
12673   data3 = (char *) malloc (pagesize);
12674   if (!data3)
12675     exit (1);
12676   if (read (fd, data3, pagesize) != pagesize)
12677     exit (1);
12678   for (i = 0; i < pagesize; ++i)
12679     if (*(data + i) != *(data3 + i))
12680       exit (1);
12681   close (fd);
12682   exit (0);
12683 }
12684 _ACEOF
12685 rm -f conftest$ac_exeext
12686 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12687   (eval $ac_link) 2>&5
12688   ac_status=$?
12689   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12690   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12691   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12692   (eval $ac_try) 2>&5
12693   ac_status=$?
12694   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12695   (exit $ac_status); }; }; then
12696   ac_cv_func_mmap_fixed_mapped=yes
12697 else
12698   echo "$as_me: program exited with status $ac_status" >&5
12699 echo "$as_me: failed program was:" >&5
12700 sed 's/^/| /' conftest.$ac_ext >&5
12701
12702 ( exit $ac_status )
12703 ac_cv_func_mmap_fixed_mapped=no
12704 fi
12705 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12706 fi
12707 fi
12708 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
12709 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
12710 if test $ac_cv_func_mmap_fixed_mapped = yes; then
12711
12712 cat >>confdefs.h <<\_ACEOF
12713 #define HAVE_MMAP 1
12714 _ACEOF
12715
12716 fi
12717 rm -f conftest.mmap
12718
12719
12720   # Try to allow MAP_ANONYMOUS.
12721   gl_have_mmap_anonymous=no
12722   if test $ac_cv_func_mmap_fixed_mapped = yes; then
12723     echo "$as_me:$LINENO: checking for MAP_ANONYMOUS" >&5
12724 echo $ECHO_N "checking for MAP_ANONYMOUS... $ECHO_C" >&6
12725     cat >conftest.$ac_ext <<_ACEOF
12726 /* confdefs.h.  */
12727 _ACEOF
12728 cat confdefs.h >>conftest.$ac_ext
12729 cat >>conftest.$ac_ext <<_ACEOF
12730 /* end confdefs.h.  */
12731
12732 #include <sys/mman.h>
12733 #ifdef MAP_ANONYMOUS
12734     I cant identify this map.
12735 #endif
12736
12737 _ACEOF
12738 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12739   $EGREP "I cant identify this map." >/dev/null 2>&1; then
12740   gl_have_mmap_anonymous=yes
12741 fi
12742 rm -f conftest*
12743
12744     if test $gl_have_mmap_anonymous = no; then
12745       cat >conftest.$ac_ext <<_ACEOF
12746 /* confdefs.h.  */
12747 _ACEOF
12748 cat confdefs.h >>conftest.$ac_ext
12749 cat >>conftest.$ac_ext <<_ACEOF
12750 /* end confdefs.h.  */
12751 #include <
12752 #include <sys/mman.h>
12753 #ifdef MAP_ANON
12754     I cant identify this map.
12755 #endif
12756 >
12757
12758 _ACEOF
12759 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12760   $EGREP "MAP_ANON" >/dev/null 2>&1; then
12761
12762 cat >>confdefs.h <<\_ACEOF
12763 #define MAP_ANONYMOUS MAP_ANON
12764 _ACEOF
12765
12766          gl_have_mmap_anonymous=yes
12767 fi
12768 rm -f conftest*
12769
12770     fi
12771     echo "$as_me:$LINENO: result: $gl_have_mmap_anonymous" >&5
12772 echo "${ECHO_T}$gl_have_mmap_anonymous" >&6
12773     if test $gl_have_mmap_anonymous = yes; then
12774
12775 cat >>confdefs.h <<\_ACEOF
12776 #define HAVE_MAP_ANONYMOUS 1
12777 _ACEOF
12778
12779     fi
12780   fi
12781
12782
12783
12784
12785
12786
12787
12788
12789
12790
12791
12792
12793
12794
12795
12796
12797
12798
12799
12800
12801
12802
12803
12804
12805
12806
12807
12808
12809
12810
12811
12812 echo "$as_me:$LINENO: checking for C/C++ restrict keyword" >&5
12813 echo $ECHO_N "checking for C/C++ restrict keyword... $ECHO_C" >&6
12814 if test "${gl_cv_c_restrict+set}" = set; then
12815   echo $ECHO_N "(cached) $ECHO_C" >&6
12816 else
12817   gl_cv_c_restrict=no
12818    # Try the official restrict keyword, then gcc's __restrict, and
12819    # the less common variants.
12820    for ac_kw in restrict __restrict __restrict__ _Restrict; do
12821      cat >conftest.$ac_ext <<_ACEOF
12822 /* confdefs.h.  */
12823 _ACEOF
12824 cat confdefs.h >>conftest.$ac_ext
12825 cat >>conftest.$ac_ext <<_ACEOF
12826 /* end confdefs.h.  */
12827 float * $ac_kw x;
12828 _ACEOF
12829 rm -f conftest.$ac_objext
12830 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12831   (eval $ac_compile) 2>conftest.er1
12832   ac_status=$?
12833   grep -v '^ *+' conftest.er1 >conftest.err
12834   rm -f conftest.er1
12835   cat conftest.err >&5
12836   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12837   (exit $ac_status); } &&
12838          { ac_try='test -z "$ac_c_werror_flag"
12839                          || test ! -s conftest.err'
12840   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12841   (eval $ac_try) 2>&5
12842   ac_status=$?
12843   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12844   (exit $ac_status); }; } &&
12845          { ac_try='test -s conftest.$ac_objext'
12846   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12847   (eval $ac_try) 2>&5
12848   ac_status=$?
12849   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12850   (exit $ac_status); }; }; then
12851   gl_cv_c_restrict=$ac_kw; break
12852 else
12853   echo "$as_me: failed program was:" >&5
12854 sed 's/^/| /' conftest.$ac_ext >&5
12855
12856 fi
12857 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12858    done
12859
12860 fi
12861 echo "$as_me:$LINENO: result: $gl_cv_c_restrict" >&5
12862 echo "${ECHO_T}$gl_cv_c_restrict" >&6
12863  case $gl_cv_c_restrict in
12864    restrict) ;;
12865    no)
12866 cat >>confdefs.h <<\_ACEOF
12867 #define restrict
12868 _ACEOF
12869  ;;
12870    *)  cat >>confdefs.h <<_ACEOF
12871 #define restrict $gl_cv_c_restrict
12872 _ACEOF
12873  ;;
12874  esac
12875
12876
12877
12878
12879
12880
12881
12882
12883   echo "$as_me:$LINENO: checking for inttypes.h" >&5
12884 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
12885 if test "${gt_cv_header_inttypes_h+set}" = set; then
12886   echo $ECHO_N "(cached) $ECHO_C" >&6
12887 else
12888
12889     cat >conftest.$ac_ext <<_ACEOF
12890 /* confdefs.h.  */
12891 _ACEOF
12892 cat confdefs.h >>conftest.$ac_ext
12893 cat >>conftest.$ac_ext <<_ACEOF
12894 /* end confdefs.h.  */
12895 #include <sys/types.h>
12896 #include <inttypes.h>
12897 int
12898 main ()
12899 {
12900
12901   ;
12902   return 0;
12903 }
12904 _ACEOF
12905 rm -f conftest.$ac_objext
12906 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12907   (eval $ac_compile) 2>conftest.er1
12908   ac_status=$?
12909   grep -v '^ *+' conftest.er1 >conftest.err
12910   rm -f conftest.er1
12911   cat conftest.err >&5
12912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12913   (exit $ac_status); } &&
12914          { ac_try='test -z "$ac_c_werror_flag"
12915                          || test ! -s conftest.err'
12916   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12917   (eval $ac_try) 2>&5
12918   ac_status=$?
12919   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12920   (exit $ac_status); }; } &&
12921          { ac_try='test -s conftest.$ac_objext'
12922   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12923   (eval $ac_try) 2>&5
12924   ac_status=$?
12925   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12926   (exit $ac_status); }; }; then
12927   gt_cv_header_inttypes_h=yes
12928 else
12929   echo "$as_me: failed program was:" >&5
12930 sed 's/^/| /' conftest.$ac_ext >&5
12931
12932 gt_cv_header_inttypes_h=no
12933 fi
12934 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12935
12936 fi
12937 echo "$as_me:$LINENO: result: $gt_cv_header_inttypes_h" >&5
12938 echo "${ECHO_T}$gt_cv_header_inttypes_h" >&6
12939   if test $gt_cv_header_inttypes_h = yes; then
12940
12941 cat >>confdefs.h <<_ACEOF
12942 #define HAVE_INTTYPES_H 1
12943 _ACEOF
12944
12945   fi
12946
12947
12948 for ac_func in strftime
12949 do
12950 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12951 echo "$as_me:$LINENO: checking for $ac_func" >&5
12952 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12953 if eval "test \"\${$as_ac_var+set}\" = set"; then
12954   echo $ECHO_N "(cached) $ECHO_C" >&6
12955 else
12956   cat >conftest.$ac_ext <<_ACEOF
12957 /* confdefs.h.  */
12958 _ACEOF
12959 cat confdefs.h >>conftest.$ac_ext
12960 cat >>conftest.$ac_ext <<_ACEOF
12961 /* end confdefs.h.  */
12962 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12963    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12964 #define $ac_func innocuous_$ac_func
12965
12966 /* System header to define __stub macros and hopefully few prototypes,
12967     which can conflict with char $ac_func (); below.
12968     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12969     <limits.h> exists even on freestanding compilers.  */
12970
12971 #ifdef __STDC__
12972 # include <limits.h>
12973 #else
12974 # include <assert.h>
12975 #endif
12976
12977 #undef $ac_func
12978
12979 /* Override any gcc2 internal prototype to avoid an error.  */
12980 #ifdef __cplusplus
12981 extern "C"
12982 {
12983 #endif
12984 /* We use char because int might match the return type of a gcc2
12985    builtin and then its argument prototype would still apply.  */
12986 char $ac_func ();
12987 /* The GNU C library defines this for functions which it implements
12988     to always fail with ENOSYS.  Some functions are actually named
12989     something starting with __ and the normal name is an alias.  */
12990 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12991 choke me
12992 #else
12993 char (*f) () = $ac_func;
12994 #endif
12995 #ifdef __cplusplus
12996 }
12997 #endif
12998
12999 int
13000 main ()
13001 {
13002 return f != $ac_func;
13003   ;
13004   return 0;
13005 }
13006 _ACEOF
13007 rm -f conftest.$ac_objext conftest$ac_exeext
13008 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13009   (eval $ac_link) 2>conftest.er1
13010   ac_status=$?
13011   grep -v '^ *+' conftest.er1 >conftest.err
13012   rm -f conftest.er1
13013   cat conftest.err >&5
13014   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13015   (exit $ac_status); } &&
13016          { ac_try='test -z "$ac_c_werror_flag"
13017                          || test ! -s conftest.err'
13018   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13019   (eval $ac_try) 2>&5
13020   ac_status=$?
13021   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13022   (exit $ac_status); }; } &&
13023          { ac_try='test -s conftest$ac_exeext'
13024   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13025   (eval $ac_try) 2>&5
13026   ac_status=$?
13027   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13028   (exit $ac_status); }; }; then
13029   eval "$as_ac_var=yes"
13030 else
13031   echo "$as_me: failed program was:" >&5
13032 sed 's/^/| /' conftest.$ac_ext >&5
13033
13034 eval "$as_ac_var=no"
13035 fi
13036 rm -f conftest.err conftest.$ac_objext \
13037       conftest$ac_exeext conftest.$ac_ext
13038 fi
13039 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13040 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13041 if test `eval echo '${'$as_ac_var'}'` = yes; then
13042   cat >>confdefs.h <<_ACEOF
13043 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13044 _ACEOF
13045
13046 else
13047   # strftime is in -lintl on SCO UNIX.
13048 echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
13049 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
13050 if test "${ac_cv_lib_intl_strftime+set}" = set; then
13051   echo $ECHO_N "(cached) $ECHO_C" >&6
13052 else
13053   ac_check_lib_save_LIBS=$LIBS
13054 LIBS="-lintl  $LIBS"
13055 cat >conftest.$ac_ext <<_ACEOF
13056 /* confdefs.h.  */
13057 _ACEOF
13058 cat confdefs.h >>conftest.$ac_ext
13059 cat >>conftest.$ac_ext <<_ACEOF
13060 /* end confdefs.h.  */
13061
13062 /* Override any gcc2 internal prototype to avoid an error.  */
13063 #ifdef __cplusplus
13064 extern "C"
13065 #endif
13066 /* We use char because int might match the return type of a gcc2
13067    builtin and then its argument prototype would still apply.  */
13068 char strftime ();
13069 int
13070 main ()
13071 {
13072 strftime ();
13073   ;
13074   return 0;
13075 }
13076 _ACEOF
13077 rm -f conftest.$ac_objext conftest$ac_exeext
13078 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13079   (eval $ac_link) 2>conftest.er1
13080   ac_status=$?
13081   grep -v '^ *+' conftest.er1 >conftest.err
13082   rm -f conftest.er1
13083   cat conftest.err >&5
13084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13085   (exit $ac_status); } &&
13086          { ac_try='test -z "$ac_c_werror_flag"
13087                          || test ! -s conftest.err'
13088   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13089   (eval $ac_try) 2>&5
13090   ac_status=$?
13091   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13092   (exit $ac_status); }; } &&
13093          { ac_try='test -s conftest$ac_exeext'
13094   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13095   (eval $ac_try) 2>&5
13096   ac_status=$?
13097   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13098   (exit $ac_status); }; }; then
13099   ac_cv_lib_intl_strftime=yes
13100 else
13101   echo "$as_me: failed program was:" >&5
13102 sed 's/^/| /' conftest.$ac_ext >&5
13103
13104 ac_cv_lib_intl_strftime=no
13105 fi
13106 rm -f conftest.err conftest.$ac_objext \
13107       conftest$ac_exeext conftest.$ac_ext
13108 LIBS=$ac_check_lib_save_LIBS
13109 fi
13110 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
13111 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
13112 if test $ac_cv_lib_intl_strftime = yes; then
13113   cat >>confdefs.h <<\_ACEOF
13114 #define HAVE_STRFTIME 1
13115 _ACEOF
13116
13117 LIBS="-lintl $LIBS"
13118 fi
13119
13120 fi
13121 done
13122
13123
13124
13125   echo "$as_me:$LINENO: checking whether tzset clobbers localtime buffer" >&5
13126 echo $ECHO_N "checking whether tzset clobbers localtime buffer... $ECHO_C" >&6
13127 if test "${gl_cv_func_tzset_clobber+set}" = set; then
13128   echo $ECHO_N "(cached) $ECHO_C" >&6
13129 else
13130
13131   if test "$cross_compiling" = yes; then
13132   gl_cv_func_tzset_clobber=yes
13133 else
13134   cat >conftest.$ac_ext <<_ACEOF
13135 /* confdefs.h.  */
13136 _ACEOF
13137 cat confdefs.h >>conftest.$ac_ext
13138 cat >>conftest.$ac_ext <<_ACEOF
13139 /* end confdefs.h.  */
13140
13141 #if TIME_WITH_SYS_TIME
13142 # include <sys/time.h>
13143 # include <time.h>
13144 #else
13145 # if HAVE_SYS_TIME_H
13146 #  include <sys/time.h>
13147 # else
13148 #  include <time.h>
13149 # endif
13150 #endif
13151 #include <stdlib.h>
13152
13153 int
13154 main ()
13155 {
13156   time_t t1 = 853958121;
13157   struct tm *p, s;
13158   putenv ("TZ=GMT0");
13159   p = localtime (&t1);
13160   s = *p;
13161   putenv ("TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00");
13162   tzset ();
13163   exit (p->tm_year != s.tm_year
13164         || p->tm_mon != s.tm_mon
13165         || p->tm_mday != s.tm_mday
13166         || p->tm_hour != s.tm_hour
13167         || p->tm_min != s.tm_min
13168         || p->tm_sec != s.tm_sec);
13169 }
13170
13171 _ACEOF
13172 rm -f conftest$ac_exeext
13173 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13174   (eval $ac_link) 2>&5
13175   ac_status=$?
13176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13177   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13178   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13179   (eval $ac_try) 2>&5
13180   ac_status=$?
13181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13182   (exit $ac_status); }; }; then
13183   gl_cv_func_tzset_clobber=no
13184 else
13185   echo "$as_me: program exited with status $ac_status" >&5
13186 echo "$as_me: failed program was:" >&5
13187 sed 's/^/| /' conftest.$ac_ext >&5
13188
13189 ( exit $ac_status )
13190 gl_cv_func_tzset_clobber=yes
13191 fi
13192 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13193 fi
13194 fi
13195 echo "$as_me:$LINENO: result: $gl_cv_func_tzset_clobber" >&5
13196 echo "${ECHO_T}$gl_cv_func_tzset_clobber" >&6
13197
13198
13199 cat >>confdefs.h <<\_ACEOF
13200 #define HAVE_RUN_TZSET_TEST 1
13201 _ACEOF
13202
13203
13204   if test $gl_cv_func_tzset_clobber = yes; then
13205
13206   case $LIBOBJS in
13207     "gettimeofday.$ac_objext"   | \
13208   *" gettimeofday.$ac_objext"   | \
13209     "gettimeofday.$ac_objext "* | \
13210   *" gettimeofday.$ac_objext "* ) ;;
13211   *) LIBOBJS="$LIBOBJS gettimeofday.$ac_objext" ;;
13212 esac
13213
13214
13215 cat >>confdefs.h <<\_ACEOF
13216 #define gmtime rpl_gmtime
13217 _ACEOF
13218
13219
13220 cat >>confdefs.h <<\_ACEOF
13221 #define localtime rpl_localtime
13222 _ACEOF
13223
13224
13225
13226
13227 cat >>confdefs.h <<\_ACEOF
13228 #define tzset rpl_tzset
13229 _ACEOF
13230
13231
13232 cat >>confdefs.h <<\_ACEOF
13233 #define TZSET_CLOBBERS_LOCALTIME_BUFFER 1
13234 _ACEOF
13235
13236   fi
13237
13238
13239
13240
13241
13242
13243
13244
13245
13246
13247
13248
13249
13250
13251
13252
13253
13254
13255
13256
13257
13258  case $LIBOBJS in
13259     "strftime.$ac_objext"   | \
13260   *" strftime.$ac_objext"   | \
13261     "strftime.$ac_objext "* | \
13262   *" strftime.$ac_objext "* ) ;;
13263   *) LIBOBJS="$LIBOBJS strftime.$ac_objext" ;;
13264 esac
13265
13266
13267  # strftime.c uses the underyling system strftime if it exists.
13268
13269
13270  # This defines (or not) HAVE_TZNAME and HAVE_TM_ZONE.
13271
13272
13273
13274
13275
13276
13277
13278
13279   :
13280
13281
13282
13283
13284
13285
13286
13287
13288
13289
13290
13291
13292
13293
13294
13295   :
13296
13297
13298
13299
13300
13301
13302
13303
13304
13305
13306 cat >>confdefs.h <<\_ACEOF
13307 #define my_strftime nstrftime
13308 _ACEOF
13309
13310
13311
13312       echo "$as_me:$LINENO: checking whether clearerr_unlocked is declared" >&5
13313 echo $ECHO_N "checking whether clearerr_unlocked is declared... $ECHO_C" >&6
13314 if test "${ac_cv_have_decl_clearerr_unlocked+set}" = set; then
13315   echo $ECHO_N "(cached) $ECHO_C" >&6
13316 else
13317   cat >conftest.$ac_ext <<_ACEOF
13318 /* confdefs.h.  */
13319 _ACEOF
13320 cat confdefs.h >>conftest.$ac_ext
13321 cat >>conftest.$ac_ext <<_ACEOF
13322 /* end confdefs.h.  */
13323 $ac_includes_default
13324 int
13325 main ()
13326 {
13327 #ifndef clearerr_unlocked
13328   char *p = (char *) clearerr_unlocked;
13329 #endif
13330
13331   ;
13332   return 0;
13333 }
13334 _ACEOF
13335 rm -f conftest.$ac_objext
13336 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13337   (eval $ac_compile) 2>conftest.er1
13338   ac_status=$?
13339   grep -v '^ *+' conftest.er1 >conftest.err
13340   rm -f conftest.er1
13341   cat conftest.err >&5
13342   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13343   (exit $ac_status); } &&
13344          { ac_try='test -z "$ac_c_werror_flag"
13345                          || test ! -s conftest.err'
13346   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13347   (eval $ac_try) 2>&5
13348   ac_status=$?
13349   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13350   (exit $ac_status); }; } &&
13351          { ac_try='test -s conftest.$ac_objext'
13352   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13353   (eval $ac_try) 2>&5
13354   ac_status=$?
13355   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13356   (exit $ac_status); }; }; then
13357   ac_cv_have_decl_clearerr_unlocked=yes
13358 else
13359   echo "$as_me: failed program was:" >&5
13360 sed 's/^/| /' conftest.$ac_ext >&5
13361
13362 ac_cv_have_decl_clearerr_unlocked=no
13363 fi
13364 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13365 fi
13366 echo "$as_me:$LINENO: result: $ac_cv_have_decl_clearerr_unlocked" >&5
13367 echo "${ECHO_T}$ac_cv_have_decl_clearerr_unlocked" >&6
13368 if test $ac_cv_have_decl_clearerr_unlocked = yes; then
13369
13370 cat >>confdefs.h <<_ACEOF
13371 #define HAVE_DECL_CLEARERR_UNLOCKED 1
13372 _ACEOF
13373
13374
13375 else
13376   cat >>confdefs.h <<_ACEOF
13377 #define HAVE_DECL_CLEARERR_UNLOCKED 0
13378 _ACEOF
13379
13380
13381 fi
13382
13383
13384
13385
13386       echo "$as_me:$LINENO: checking whether feof_unlocked is declared" >&5
13387 echo $ECHO_N "checking whether feof_unlocked is declared... $ECHO_C" >&6
13388 if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then
13389   echo $ECHO_N "(cached) $ECHO_C" >&6
13390 else
13391   cat >conftest.$ac_ext <<_ACEOF
13392 /* confdefs.h.  */
13393 _ACEOF
13394 cat confdefs.h >>conftest.$ac_ext
13395 cat >>conftest.$ac_ext <<_ACEOF
13396 /* end confdefs.h.  */
13397 $ac_includes_default
13398 int
13399 main ()
13400 {
13401 #ifndef feof_unlocked
13402   char *p = (char *) feof_unlocked;
13403 #endif
13404
13405   ;
13406   return 0;
13407 }
13408 _ACEOF
13409 rm -f conftest.$ac_objext
13410 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13411   (eval $ac_compile) 2>conftest.er1
13412   ac_status=$?
13413   grep -v '^ *+' conftest.er1 >conftest.err
13414   rm -f conftest.er1
13415   cat conftest.err >&5
13416   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13417   (exit $ac_status); } &&
13418          { ac_try='test -z "$ac_c_werror_flag"
13419                          || test ! -s conftest.err'
13420   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13421   (eval $ac_try) 2>&5
13422   ac_status=$?
13423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13424   (exit $ac_status); }; } &&
13425          { ac_try='test -s conftest.$ac_objext'
13426   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13427   (eval $ac_try) 2>&5
13428   ac_status=$?
13429   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13430   (exit $ac_status); }; }; then
13431   ac_cv_have_decl_feof_unlocked=yes
13432 else
13433   echo "$as_me: failed program was:" >&5
13434 sed 's/^/| /' conftest.$ac_ext >&5
13435
13436 ac_cv_have_decl_feof_unlocked=no
13437 fi
13438 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13439 fi
13440 echo "$as_me:$LINENO: result: $ac_cv_have_decl_feof_unlocked" >&5
13441 echo "${ECHO_T}$ac_cv_have_decl_feof_unlocked" >&6
13442 if test $ac_cv_have_decl_feof_unlocked = yes; then
13443
13444 cat >>confdefs.h <<_ACEOF
13445 #define HAVE_DECL_FEOF_UNLOCKED 1
13446 _ACEOF
13447
13448
13449 else
13450   cat >>confdefs.h <<_ACEOF
13451 #define HAVE_DECL_FEOF_UNLOCKED 0
13452 _ACEOF
13453
13454
13455 fi
13456
13457
13458
13459
13460       echo "$as_me:$LINENO: checking whether ferror_unlocked is declared" >&5
13461 echo $ECHO_N "checking whether ferror_unlocked is declared... $ECHO_C" >&6
13462 if test "${ac_cv_have_decl_ferror_unlocked+set}" = set; then
13463   echo $ECHO_N "(cached) $ECHO_C" >&6
13464 else
13465   cat >conftest.$ac_ext <<_ACEOF
13466 /* confdefs.h.  */
13467 _ACEOF
13468 cat confdefs.h >>conftest.$ac_ext
13469 cat >>conftest.$ac_ext <<_ACEOF
13470 /* end confdefs.h.  */
13471 $ac_includes_default
13472 int
13473 main ()
13474 {
13475 #ifndef ferror_unlocked
13476   char *p = (char *) ferror_unlocked;
13477 #endif
13478
13479   ;
13480   return 0;
13481 }
13482 _ACEOF
13483 rm -f conftest.$ac_objext
13484 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13485   (eval $ac_compile) 2>conftest.er1
13486   ac_status=$?
13487   grep -v '^ *+' conftest.er1 >conftest.err
13488   rm -f conftest.er1
13489   cat conftest.err >&5
13490   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13491   (exit $ac_status); } &&
13492          { ac_try='test -z "$ac_c_werror_flag"
13493                          || test ! -s conftest.err'
13494   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13495   (eval $ac_try) 2>&5
13496   ac_status=$?
13497   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13498   (exit $ac_status); }; } &&
13499          { ac_try='test -s conftest.$ac_objext'
13500   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13501   (eval $ac_try) 2>&5
13502   ac_status=$?
13503   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13504   (exit $ac_status); }; }; then
13505   ac_cv_have_decl_ferror_unlocked=yes
13506 else
13507   echo "$as_me: failed program was:" >&5
13508 sed 's/^/| /' conftest.$ac_ext >&5
13509
13510 ac_cv_have_decl_ferror_unlocked=no
13511 fi
13512 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13513 fi
13514 echo "$as_me:$LINENO: result: $ac_cv_have_decl_ferror_unlocked" >&5
13515 echo "${ECHO_T}$ac_cv_have_decl_ferror_unlocked" >&6
13516 if test $ac_cv_have_decl_ferror_unlocked = yes; then
13517
13518 cat >>confdefs.h <<_ACEOF
13519 #define HAVE_DECL_FERROR_UNLOCKED 1
13520 _ACEOF
13521
13522
13523 else
13524   cat >>confdefs.h <<_ACEOF
13525 #define HAVE_DECL_FERROR_UNLOCKED 0
13526 _ACEOF
13527
13528
13529 fi
13530
13531
13532
13533
13534       echo "$as_me:$LINENO: checking whether fgets_unlocked is declared" >&5
13535 echo $ECHO_N "checking whether fgets_unlocked is declared... $ECHO_C" >&6
13536 if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then
13537   echo $ECHO_N "(cached) $ECHO_C" >&6
13538 else
13539   cat >conftest.$ac_ext <<_ACEOF
13540 /* confdefs.h.  */
13541 _ACEOF
13542 cat confdefs.h >>conftest.$ac_ext
13543 cat >>conftest.$ac_ext <<_ACEOF
13544 /* end confdefs.h.  */
13545 $ac_includes_default
13546 int
13547 main ()
13548 {
13549 #ifndef fgets_unlocked
13550   char *p = (char *) fgets_unlocked;
13551 #endif
13552
13553   ;
13554   return 0;
13555 }
13556 _ACEOF
13557 rm -f conftest.$ac_objext
13558 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13559   (eval $ac_compile) 2>conftest.er1
13560   ac_status=$?
13561   grep -v '^ *+' conftest.er1 >conftest.err
13562   rm -f conftest.er1
13563   cat conftest.err >&5
13564   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13565   (exit $ac_status); } &&
13566          { ac_try='test -z "$ac_c_werror_flag"
13567                          || test ! -s conftest.err'
13568   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13569   (eval $ac_try) 2>&5
13570   ac_status=$?
13571   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13572   (exit $ac_status); }; } &&
13573          { ac_try='test -s conftest.$ac_objext'
13574   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13575   (eval $ac_try) 2>&5
13576   ac_status=$?
13577   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13578   (exit $ac_status); }; }; then
13579   ac_cv_have_decl_fgets_unlocked=yes
13580 else
13581   echo "$as_me: failed program was:" >&5
13582 sed 's/^/| /' conftest.$ac_ext >&5
13583
13584 ac_cv_have_decl_fgets_unlocked=no
13585 fi
13586 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13587 fi
13588 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fgets_unlocked" >&5
13589 echo "${ECHO_T}$ac_cv_have_decl_fgets_unlocked" >&6
13590 if test $ac_cv_have_decl_fgets_unlocked = yes; then
13591
13592 cat >>confdefs.h <<_ACEOF
13593 #define HAVE_DECL_FGETS_UNLOCKED 1
13594 _ACEOF
13595
13596
13597 else
13598   cat >>confdefs.h <<_ACEOF
13599 #define HAVE_DECL_FGETS_UNLOCKED 0
13600 _ACEOF
13601
13602
13603 fi
13604
13605
13606
13607
13608       echo "$as_me:$LINENO: checking whether fputc_unlocked is declared" >&5
13609 echo $ECHO_N "checking whether fputc_unlocked is declared... $ECHO_C" >&6
13610 if test "${ac_cv_have_decl_fputc_unlocked+set}" = set; then
13611   echo $ECHO_N "(cached) $ECHO_C" >&6
13612 else
13613   cat >conftest.$ac_ext <<_ACEOF
13614 /* confdefs.h.  */
13615 _ACEOF
13616 cat confdefs.h >>conftest.$ac_ext
13617 cat >>conftest.$ac_ext <<_ACEOF
13618 /* end confdefs.h.  */
13619 $ac_includes_default
13620 int
13621 main ()
13622 {
13623 #ifndef fputc_unlocked
13624   char *p = (char *) fputc_unlocked;
13625 #endif
13626
13627   ;
13628   return 0;
13629 }
13630 _ACEOF
13631 rm -f conftest.$ac_objext
13632 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13633   (eval $ac_compile) 2>conftest.er1
13634   ac_status=$?
13635   grep -v '^ *+' conftest.er1 >conftest.err
13636   rm -f conftest.er1
13637   cat conftest.err >&5
13638   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13639   (exit $ac_status); } &&
13640          { ac_try='test -z "$ac_c_werror_flag"
13641                          || test ! -s conftest.err'
13642   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13643   (eval $ac_try) 2>&5
13644   ac_status=$?
13645   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13646   (exit $ac_status); }; } &&
13647          { ac_try='test -s conftest.$ac_objext'
13648   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13649   (eval $ac_try) 2>&5
13650   ac_status=$?
13651   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13652   (exit $ac_status); }; }; then
13653   ac_cv_have_decl_fputc_unlocked=yes
13654 else
13655   echo "$as_me: failed program was:" >&5
13656 sed 's/^/| /' conftest.$ac_ext >&5
13657
13658 ac_cv_have_decl_fputc_unlocked=no
13659 fi
13660 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13661 fi
13662 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fputc_unlocked" >&5
13663 echo "${ECHO_T}$ac_cv_have_decl_fputc_unlocked" >&6
13664 if test $ac_cv_have_decl_fputc_unlocked = yes; then
13665
13666 cat >>confdefs.h <<_ACEOF
13667 #define HAVE_DECL_FPUTC_UNLOCKED 1
13668 _ACEOF
13669
13670
13671 else
13672   cat >>confdefs.h <<_ACEOF
13673 #define HAVE_DECL_FPUTC_UNLOCKED 0
13674 _ACEOF
13675
13676
13677 fi
13678
13679
13680
13681
13682       echo "$as_me:$LINENO: checking whether fread_unlocked is declared" >&5
13683 echo $ECHO_N "checking whether fread_unlocked is declared... $ECHO_C" >&6
13684 if test "${ac_cv_have_decl_fread_unlocked+set}" = set; then
13685   echo $ECHO_N "(cached) $ECHO_C" >&6
13686 else
13687   cat >conftest.$ac_ext <<_ACEOF
13688 /* confdefs.h.  */
13689 _ACEOF
13690 cat confdefs.h >>conftest.$ac_ext
13691 cat >>conftest.$ac_ext <<_ACEOF
13692 /* end confdefs.h.  */
13693 $ac_includes_default
13694 int
13695 main ()
13696 {
13697 #ifndef fread_unlocked
13698   char *p = (char *) fread_unlocked;
13699 #endif
13700
13701   ;
13702   return 0;
13703 }
13704 _ACEOF
13705 rm -f conftest.$ac_objext
13706 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13707   (eval $ac_compile) 2>conftest.er1
13708   ac_status=$?
13709   grep -v '^ *+' conftest.er1 >conftest.err
13710   rm -f conftest.er1
13711   cat conftest.err >&5
13712   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13713   (exit $ac_status); } &&
13714          { ac_try='test -z "$ac_c_werror_flag"
13715                          || test ! -s conftest.err'
13716   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13717   (eval $ac_try) 2>&5
13718   ac_status=$?
13719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13720   (exit $ac_status); }; } &&
13721          { ac_try='test -s conftest.$ac_objext'
13722   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13723   (eval $ac_try) 2>&5
13724   ac_status=$?
13725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13726   (exit $ac_status); }; }; then
13727   ac_cv_have_decl_fread_unlocked=yes
13728 else
13729   echo "$as_me: failed program was:" >&5
13730 sed 's/^/| /' conftest.$ac_ext >&5
13731
13732 ac_cv_have_decl_fread_unlocked=no
13733 fi
13734 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13735 fi
13736 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fread_unlocked" >&5
13737 echo "${ECHO_T}$ac_cv_have_decl_fread_unlocked" >&6
13738 if test $ac_cv_have_decl_fread_unlocked = yes; then
13739
13740 cat >>confdefs.h <<_ACEOF
13741 #define HAVE_DECL_FREAD_UNLOCKED 1
13742 _ACEOF
13743
13744
13745 else
13746   cat >>confdefs.h <<_ACEOF
13747 #define HAVE_DECL_FREAD_UNLOCKED 0
13748 _ACEOF
13749
13750
13751 fi
13752
13753
13754
13755
13756       echo "$as_me:$LINENO: checking whether fwrite_unlocked is declared" >&5
13757 echo $ECHO_N "checking whether fwrite_unlocked is declared... $ECHO_C" >&6
13758 if test "${ac_cv_have_decl_fwrite_unlocked+set}" = set; then
13759   echo $ECHO_N "(cached) $ECHO_C" >&6
13760 else
13761   cat >conftest.$ac_ext <<_ACEOF
13762 /* confdefs.h.  */
13763 _ACEOF
13764 cat confdefs.h >>conftest.$ac_ext
13765 cat >>conftest.$ac_ext <<_ACEOF
13766 /* end confdefs.h.  */
13767 $ac_includes_default
13768 int
13769 main ()
13770 {
13771 #ifndef fwrite_unlocked
13772   char *p = (char *) fwrite_unlocked;
13773 #endif
13774
13775   ;
13776   return 0;
13777 }
13778 _ACEOF
13779 rm -f conftest.$ac_objext
13780 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13781   (eval $ac_compile) 2>conftest.er1
13782   ac_status=$?
13783   grep -v '^ *+' conftest.er1 >conftest.err
13784   rm -f conftest.er1
13785   cat conftest.err >&5
13786   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13787   (exit $ac_status); } &&
13788          { ac_try='test -z "$ac_c_werror_flag"
13789                          || test ! -s conftest.err'
13790   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13791   (eval $ac_try) 2>&5
13792   ac_status=$?
13793   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13794   (exit $ac_status); }; } &&
13795          { ac_try='test -s conftest.$ac_objext'
13796   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13797   (eval $ac_try) 2>&5
13798   ac_status=$?
13799   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13800   (exit $ac_status); }; }; then
13801   ac_cv_have_decl_fwrite_unlocked=yes
13802 else
13803   echo "$as_me: failed program was:" >&5
13804 sed 's/^/| /' conftest.$ac_ext >&5
13805
13806 ac_cv_have_decl_fwrite_unlocked=no
13807 fi
13808 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13809 fi
13810 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fwrite_unlocked" >&5
13811 echo "${ECHO_T}$ac_cv_have_decl_fwrite_unlocked" >&6
13812 if test $ac_cv_have_decl_fwrite_unlocked = yes; then
13813
13814 cat >>confdefs.h <<_ACEOF
13815 #define HAVE_DECL_FWRITE_UNLOCKED 1
13816 _ACEOF
13817
13818
13819 else
13820   cat >>confdefs.h <<_ACEOF
13821 #define HAVE_DECL_FWRITE_UNLOCKED 0
13822 _ACEOF
13823
13824
13825 fi
13826
13827
13828
13829
13830       echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5
13831 echo $ECHO_N "checking whether getc_unlocked is declared... $ECHO_C" >&6
13832 if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then
13833   echo $ECHO_N "(cached) $ECHO_C" >&6
13834 else
13835   cat >conftest.$ac_ext <<_ACEOF
13836 /* confdefs.h.  */
13837 _ACEOF
13838 cat confdefs.h >>conftest.$ac_ext
13839 cat >>conftest.$ac_ext <<_ACEOF
13840 /* end confdefs.h.  */
13841 $ac_includes_default
13842 int
13843 main ()
13844 {
13845 #ifndef getc_unlocked
13846   char *p = (char *) getc_unlocked;
13847 #endif
13848
13849   ;
13850   return 0;
13851 }
13852 _ACEOF
13853 rm -f conftest.$ac_objext
13854 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13855   (eval $ac_compile) 2>conftest.er1
13856   ac_status=$?
13857   grep -v '^ *+' conftest.er1 >conftest.err
13858   rm -f conftest.er1
13859   cat conftest.err >&5
13860   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13861   (exit $ac_status); } &&
13862          { ac_try='test -z "$ac_c_werror_flag"
13863                          || test ! -s conftest.err'
13864   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13865   (eval $ac_try) 2>&5
13866   ac_status=$?
13867   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13868   (exit $ac_status); }; } &&
13869          { ac_try='test -s conftest.$ac_objext'
13870   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13871   (eval $ac_try) 2>&5
13872   ac_status=$?
13873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13874   (exit $ac_status); }; }; then
13875   ac_cv_have_decl_getc_unlocked=yes
13876 else
13877   echo "$as_me: failed program was:" >&5
13878 sed 's/^/| /' conftest.$ac_ext >&5
13879
13880 ac_cv_have_decl_getc_unlocked=no
13881 fi
13882 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13883 fi
13884 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5
13885 echo "${ECHO_T}$ac_cv_have_decl_getc_unlocked" >&6
13886 if test $ac_cv_have_decl_getc_unlocked = yes; then
13887
13888 cat >>confdefs.h <<_ACEOF
13889 #define HAVE_DECL_GETC_UNLOCKED 1
13890 _ACEOF
13891
13892
13893 else
13894   cat >>confdefs.h <<_ACEOF
13895 #define HAVE_DECL_GETC_UNLOCKED 0
13896 _ACEOF
13897
13898
13899 fi
13900
13901
13902
13903
13904       echo "$as_me:$LINENO: checking whether getchar_unlocked is declared" >&5
13905 echo $ECHO_N "checking whether getchar_unlocked is declared... $ECHO_C" >&6
13906 if test "${ac_cv_have_decl_getchar_unlocked+set}" = set; then
13907   echo $ECHO_N "(cached) $ECHO_C" >&6
13908 else
13909   cat >conftest.$ac_ext <<_ACEOF
13910 /* confdefs.h.  */
13911 _ACEOF
13912 cat confdefs.h >>conftest.$ac_ext
13913 cat >>conftest.$ac_ext <<_ACEOF
13914 /* end confdefs.h.  */
13915 $ac_includes_default
13916 int
13917 main ()
13918 {
13919 #ifndef getchar_unlocked
13920   char *p = (char *) getchar_unlocked;
13921 #endif
13922
13923   ;
13924   return 0;
13925 }
13926 _ACEOF
13927 rm -f conftest.$ac_objext
13928 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13929   (eval $ac_compile) 2>conftest.er1
13930   ac_status=$?
13931   grep -v '^ *+' conftest.er1 >conftest.err
13932   rm -f conftest.er1
13933   cat conftest.err >&5
13934   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13935   (exit $ac_status); } &&
13936          { ac_try='test -z "$ac_c_werror_flag"
13937                          || test ! -s conftest.err'
13938   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13939   (eval $ac_try) 2>&5
13940   ac_status=$?
13941   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13942   (exit $ac_status); }; } &&
13943          { ac_try='test -s conftest.$ac_objext'
13944   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13945   (eval $ac_try) 2>&5
13946   ac_status=$?
13947   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13948   (exit $ac_status); }; }; then
13949   ac_cv_have_decl_getchar_unlocked=yes
13950 else
13951   echo "$as_me: failed program was:" >&5
13952 sed 's/^/| /' conftest.$ac_ext >&5
13953
13954 ac_cv_have_decl_getchar_unlocked=no
13955 fi
13956 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13957 fi
13958 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getchar_unlocked" >&5
13959 echo "${ECHO_T}$ac_cv_have_decl_getchar_unlocked" >&6
13960 if test $ac_cv_have_decl_getchar_unlocked = yes; then
13961
13962 cat >>confdefs.h <<_ACEOF
13963 #define HAVE_DECL_GETCHAR_UNLOCKED 1
13964 _ACEOF
13965
13966
13967 else
13968   cat >>confdefs.h <<_ACEOF
13969 #define HAVE_DECL_GETCHAR_UNLOCKED 0
13970 _ACEOF
13971
13972
13973 fi
13974
13975
13976
13977
13978       echo "$as_me:$LINENO: checking whether putchar_unlocked is declared" >&5
13979 echo $ECHO_N "checking whether putchar_unlocked is declared... $ECHO_C" >&6
13980 if test "${ac_cv_have_decl_putchar_unlocked+set}" = set; then
13981   echo $ECHO_N "(cached) $ECHO_C" >&6
13982 else
13983   cat >conftest.$ac_ext <<_ACEOF
13984 /* confdefs.h.  */
13985 _ACEOF
13986 cat confdefs.h >>conftest.$ac_ext
13987 cat >>conftest.$ac_ext <<_ACEOF
13988 /* end confdefs.h.  */
13989 $ac_includes_default
13990 int
13991 main ()
13992 {
13993 #ifndef putchar_unlocked
13994   char *p = (char *) putchar_unlocked;
13995 #endif
13996
13997   ;
13998   return 0;
13999 }
14000 _ACEOF
14001 rm -f conftest.$ac_objext
14002 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14003   (eval $ac_compile) 2>conftest.er1
14004   ac_status=$?
14005   grep -v '^ *+' conftest.er1 >conftest.err
14006   rm -f conftest.er1
14007   cat conftest.err >&5
14008   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14009   (exit $ac_status); } &&
14010          { ac_try='test -z "$ac_c_werror_flag"
14011                          || test ! -s conftest.err'
14012   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14013   (eval $ac_try) 2>&5
14014   ac_status=$?
14015   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14016   (exit $ac_status); }; } &&
14017          { ac_try='test -s conftest.$ac_objext'
14018   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14019   (eval $ac_try) 2>&5
14020   ac_status=$?
14021   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14022   (exit $ac_status); }; }; then
14023   ac_cv_have_decl_putchar_unlocked=yes
14024 else
14025   echo "$as_me: failed program was:" >&5
14026 sed 's/^/| /' conftest.$ac_ext >&5
14027
14028 ac_cv_have_decl_putchar_unlocked=no
14029 fi
14030 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14031 fi
14032 echo "$as_me:$LINENO: result: $ac_cv_have_decl_putchar_unlocked" >&5
14033 echo "${ECHO_T}$ac_cv_have_decl_putchar_unlocked" >&6
14034 if test $ac_cv_have_decl_putchar_unlocked = yes; then
14035
14036 cat >>confdefs.h <<_ACEOF
14037 #define HAVE_DECL_PUTCHAR_UNLOCKED 1
14038 _ACEOF
14039
14040
14041 else
14042   cat >>confdefs.h <<_ACEOF
14043 #define HAVE_DECL_PUTCHAR_UNLOCKED 0
14044 _ACEOF
14045
14046
14047 fi
14048
14049
14050
14051
14052
14053   echo "$as_me:$LINENO: checking for EOVERFLOW" >&5
14054 echo $ECHO_N "checking for EOVERFLOW... $ECHO_C" >&6
14055 if test "${ac_cv_decl_EOVERFLOW+set}" = set; then
14056   echo $ECHO_N "(cached) $ECHO_C" >&6
14057 else
14058
14059     cat >conftest.$ac_ext <<_ACEOF
14060 /* confdefs.h.  */
14061 _ACEOF
14062 cat confdefs.h >>conftest.$ac_ext
14063 cat >>conftest.$ac_ext <<_ACEOF
14064 /* end confdefs.h.  */
14065
14066 #include <errno.h>
14067 #ifdef EOVERFLOW
14068 yes
14069 #endif
14070
14071 _ACEOF
14072 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14073   $EGREP "yes" >/dev/null 2>&1; then
14074   have_eoverflow=1
14075 fi
14076 rm -f conftest*
14077
14078     if test -n "$have_eoverflow"; then
14079             ac_cv_decl_EOVERFLOW=yes
14080     else
14081       cat >conftest.$ac_ext <<_ACEOF
14082 /* confdefs.h.  */
14083 _ACEOF
14084 cat confdefs.h >>conftest.$ac_ext
14085 cat >>conftest.$ac_ext <<_ACEOF
14086 /* end confdefs.h.  */
14087
14088 #define _XOPEN_SOURCE_EXTENDED 1
14089 #include <errno.h>
14090 #ifdef EOVERFLOW
14091 yes
14092 #endif
14093
14094 _ACEOF
14095 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14096   $EGREP "yes" >/dev/null 2>&1; then
14097   have_eoverflow=1
14098 fi
14099 rm -f conftest*
14100
14101       if test -n "$have_eoverflow"; then
14102                         if test "$cross_compiling" = yes; then
14103   # Depending upon the size, compute the lo and hi bounds.
14104 cat >conftest.$ac_ext <<_ACEOF
14105 /* confdefs.h.  */
14106 _ACEOF
14107 cat confdefs.h >>conftest.$ac_ext
14108 cat >>conftest.$ac_ext <<_ACEOF
14109 /* end confdefs.h.  */
14110
14111 #define _XOPEN_SOURCE_EXTENDED 1
14112 #include <errno.h>
14113 /* The following two lines are a workaround against an autoconf-2.52 bug.  */
14114 #include <stdio.h>
14115 #include <stdlib.h>
14116
14117 int
14118 main ()
14119 {
14120 static int test_array [1 - 2 * !((EOVERFLOW) >= 0)];
14121 test_array [0] = 0
14122
14123   ;
14124   return 0;
14125 }
14126 _ACEOF
14127 rm -f conftest.$ac_objext
14128 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14129   (eval $ac_compile) 2>conftest.er1
14130   ac_status=$?
14131   grep -v '^ *+' conftest.er1 >conftest.err
14132   rm -f conftest.er1
14133   cat conftest.err >&5
14134   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14135   (exit $ac_status); } &&
14136          { ac_try='test -z "$ac_c_werror_flag"
14137                          || test ! -s conftest.err'
14138   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14139   (eval $ac_try) 2>&5
14140   ac_status=$?
14141   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14142   (exit $ac_status); }; } &&
14143          { ac_try='test -s conftest.$ac_objext'
14144   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14145   (eval $ac_try) 2>&5
14146   ac_status=$?
14147   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14148   (exit $ac_status); }; }; then
14149   ac_lo=0 ac_mid=0
14150   while :; do
14151     cat >conftest.$ac_ext <<_ACEOF
14152 /* confdefs.h.  */
14153 _ACEOF
14154 cat confdefs.h >>conftest.$ac_ext
14155 cat >>conftest.$ac_ext <<_ACEOF
14156 /* end confdefs.h.  */
14157
14158 #define _XOPEN_SOURCE_EXTENDED 1
14159 #include <errno.h>
14160 /* The following two lines are a workaround against an autoconf-2.52 bug.  */
14161 #include <stdio.h>
14162 #include <stdlib.h>
14163
14164 int
14165 main ()
14166 {
14167 static int test_array [1 - 2 * !((EOVERFLOW) <= $ac_mid)];
14168 test_array [0] = 0
14169
14170   ;
14171   return 0;
14172 }
14173 _ACEOF
14174 rm -f conftest.$ac_objext
14175 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14176   (eval $ac_compile) 2>conftest.er1
14177   ac_status=$?
14178   grep -v '^ *+' conftest.er1 >conftest.err
14179   rm -f conftest.er1
14180   cat conftest.err >&5
14181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14182   (exit $ac_status); } &&
14183          { ac_try='test -z "$ac_c_werror_flag"
14184                          || test ! -s conftest.err'
14185   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14186   (eval $ac_try) 2>&5
14187   ac_status=$?
14188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14189   (exit $ac_status); }; } &&
14190          { ac_try='test -s conftest.$ac_objext'
14191   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14192   (eval $ac_try) 2>&5
14193   ac_status=$?
14194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14195   (exit $ac_status); }; }; then
14196   ac_hi=$ac_mid; break
14197 else
14198   echo "$as_me: failed program was:" >&5
14199 sed 's/^/| /' conftest.$ac_ext >&5
14200
14201 ac_lo=`expr $ac_mid + 1`
14202                     if test $ac_lo -le $ac_mid; then
14203                       ac_lo= ac_hi=
14204                       break
14205                     fi
14206                     ac_mid=`expr 2 '*' $ac_mid + 1`
14207 fi
14208 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14209   done
14210 else
14211   echo "$as_me: failed program was:" >&5
14212 sed 's/^/| /' conftest.$ac_ext >&5
14213
14214 cat >conftest.$ac_ext <<_ACEOF
14215 /* confdefs.h.  */
14216 _ACEOF
14217 cat confdefs.h >>conftest.$ac_ext
14218 cat >>conftest.$ac_ext <<_ACEOF
14219 /* end confdefs.h.  */
14220
14221 #define _XOPEN_SOURCE_EXTENDED 1
14222 #include <errno.h>
14223 /* The following two lines are a workaround against an autoconf-2.52 bug.  */
14224 #include <stdio.h>
14225 #include <stdlib.h>
14226
14227 int
14228 main ()
14229 {
14230 static int test_array [1 - 2 * !((EOVERFLOW) < 0)];
14231 test_array [0] = 0
14232
14233   ;
14234   return 0;
14235 }
14236 _ACEOF
14237 rm -f conftest.$ac_objext
14238 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14239   (eval $ac_compile) 2>conftest.er1
14240   ac_status=$?
14241   grep -v '^ *+' conftest.er1 >conftest.err
14242   rm -f conftest.er1
14243   cat conftest.err >&5
14244   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14245   (exit $ac_status); } &&
14246          { ac_try='test -z "$ac_c_werror_flag"
14247                          || test ! -s conftest.err'
14248   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14249   (eval $ac_try) 2>&5
14250   ac_status=$?
14251   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14252   (exit $ac_status); }; } &&
14253          { ac_try='test -s conftest.$ac_objext'
14254   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14255   (eval $ac_try) 2>&5
14256   ac_status=$?
14257   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14258   (exit $ac_status); }; }; then
14259   ac_hi=-1 ac_mid=-1
14260   while :; do
14261     cat >conftest.$ac_ext <<_ACEOF
14262 /* confdefs.h.  */
14263 _ACEOF
14264 cat confdefs.h >>conftest.$ac_ext
14265 cat >>conftest.$ac_ext <<_ACEOF
14266 /* end confdefs.h.  */
14267
14268 #define _XOPEN_SOURCE_EXTENDED 1
14269 #include <errno.h>
14270 /* The following two lines are a workaround against an autoconf-2.52 bug.  */
14271 #include <stdio.h>
14272 #include <stdlib.h>
14273
14274 int
14275 main ()
14276 {
14277 static int test_array [1 - 2 * !((EOVERFLOW) >= $ac_mid)];
14278 test_array [0] = 0
14279
14280   ;
14281   return 0;
14282 }
14283 _ACEOF
14284 rm -f conftest.$ac_objext
14285 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14286   (eval $ac_compile) 2>conftest.er1
14287   ac_status=$?
14288   grep -v '^ *+' conftest.er1 >conftest.err
14289   rm -f conftest.er1
14290   cat conftest.err >&5
14291   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14292   (exit $ac_status); } &&
14293          { ac_try='test -z "$ac_c_werror_flag"
14294                          || test ! -s conftest.err'
14295   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14296   (eval $ac_try) 2>&5
14297   ac_status=$?
14298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14299   (exit $ac_status); }; } &&
14300          { ac_try='test -s conftest.$ac_objext'
14301   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14302   (eval $ac_try) 2>&5
14303   ac_status=$?
14304   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14305   (exit $ac_status); }; }; then
14306   ac_lo=$ac_mid; break
14307 else
14308   echo "$as_me: failed program was:" >&5
14309 sed 's/^/| /' conftest.$ac_ext >&5
14310
14311 ac_hi=`expr '(' $ac_mid ')' - 1`
14312                        if test $ac_mid -le $ac_hi; then
14313                          ac_lo= ac_hi=
14314                          break
14315                        fi
14316                        ac_mid=`expr 2 '*' $ac_mid`
14317 fi
14318 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14319   done
14320 else
14321   echo "$as_me: failed program was:" >&5
14322 sed 's/^/| /' conftest.$ac_ext >&5
14323
14324 ac_lo= ac_hi=
14325 fi
14326 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14327 fi
14328 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14329 # Binary search between lo and hi bounds.
14330 while test "x$ac_lo" != "x$ac_hi"; do
14331   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14332   cat >conftest.$ac_ext <<_ACEOF
14333 /* confdefs.h.  */
14334 _ACEOF
14335 cat confdefs.h >>conftest.$ac_ext
14336 cat >>conftest.$ac_ext <<_ACEOF
14337 /* end confdefs.h.  */
14338
14339 #define _XOPEN_SOURCE_EXTENDED 1
14340 #include <errno.h>
14341 /* The following two lines are a workaround against an autoconf-2.52 bug.  */
14342 #include <stdio.h>
14343 #include <stdlib.h>
14344
14345 int
14346 main ()
14347 {
14348 static int test_array [1 - 2 * !((EOVERFLOW) <= $ac_mid)];
14349 test_array [0] = 0
14350
14351   ;
14352   return 0;
14353 }
14354 _ACEOF
14355 rm -f conftest.$ac_objext
14356 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14357   (eval $ac_compile) 2>conftest.er1
14358   ac_status=$?
14359   grep -v '^ *+' conftest.er1 >conftest.err
14360   rm -f conftest.er1
14361   cat conftest.err >&5
14362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14363   (exit $ac_status); } &&
14364          { ac_try='test -z "$ac_c_werror_flag"
14365                          || test ! -s conftest.err'
14366   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14367   (eval $ac_try) 2>&5
14368   ac_status=$?
14369   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14370   (exit $ac_status); }; } &&
14371          { ac_try='test -s conftest.$ac_objext'
14372   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14373   (eval $ac_try) 2>&5
14374   ac_status=$?
14375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14376   (exit $ac_status); }; }; then
14377   ac_hi=$ac_mid
14378 else
14379   echo "$as_me: failed program was:" >&5
14380 sed 's/^/| /' conftest.$ac_ext >&5
14381
14382 ac_lo=`expr '(' $ac_mid ')' + 1`
14383 fi
14384 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14385 done
14386 case $ac_lo in
14387 ?*) ac_cv_decl_EOVERFLOW=$ac_lo;;
14388 '')  ;;
14389 esac
14390 else
14391   if test "$cross_compiling" = yes; then
14392   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14393 See \`config.log' for more details." >&5
14394 echo "$as_me: error: cannot run test program while cross compiling
14395 See \`config.log' for more details." >&2;}
14396    { (exit 1); exit 1; }; }
14397 else
14398   cat >conftest.$ac_ext <<_ACEOF
14399 /* confdefs.h.  */
14400 _ACEOF
14401 cat confdefs.h >>conftest.$ac_ext
14402 cat >>conftest.$ac_ext <<_ACEOF
14403 /* end confdefs.h.  */
14404
14405 #define _XOPEN_SOURCE_EXTENDED 1
14406 #include <errno.h>
14407 /* The following two lines are a workaround against an autoconf-2.52 bug.  */
14408 #include <stdio.h>
14409 #include <stdlib.h>
14410
14411 long longval () { return EOVERFLOW; }
14412 unsigned long ulongval () { return EOVERFLOW; }
14413 #include <stdio.h>
14414 #include <stdlib.h>
14415 int
14416 main ()
14417 {
14418
14419   FILE *f = fopen ("conftest.val", "w");
14420   if (! f)
14421     exit (1);
14422   if ((EOVERFLOW) < 0)
14423     {
14424       long i = longval ();
14425       if (i != (EOVERFLOW))
14426         exit (1);
14427       fprintf (f, "%ld\n", i);
14428     }
14429   else
14430     {
14431       unsigned long i = ulongval ();
14432       if (i != (EOVERFLOW))
14433         exit (1);
14434       fprintf (f, "%lu\n", i);
14435     }
14436   exit (ferror (f) || fclose (f) != 0);
14437
14438   ;
14439   return 0;
14440 }
14441 _ACEOF
14442 rm -f conftest$ac_exeext
14443 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14444   (eval $ac_link) 2>&5
14445   ac_status=$?
14446   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14447   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14448   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14449   (eval $ac_try) 2>&5
14450   ac_status=$?
14451   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14452   (exit $ac_status); }; }; then
14453   ac_cv_decl_EOVERFLOW=`cat conftest.val`
14454 else
14455   echo "$as_me: program exited with status $ac_status" >&5
14456 echo "$as_me: failed program was:" >&5
14457 sed 's/^/| /' conftest.$ac_ext >&5
14458
14459 fi
14460 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14461 fi
14462 fi
14463 rm -f conftest.val
14464       else
14465                                 ac_cv_decl_EOVERFLOW=E2BIG
14466       fi
14467     fi
14468
14469 fi
14470 echo "$as_me:$LINENO: result: $ac_cv_decl_EOVERFLOW" >&5
14471 echo "${ECHO_T}$ac_cv_decl_EOVERFLOW" >&6
14472   if test "$ac_cv_decl_EOVERFLOW" != yes; then
14473
14474 cat >>confdefs.h <<_ACEOF
14475 #define EOVERFLOW $ac_cv_decl_EOVERFLOW
14476 _ACEOF
14477
14478     EOVERFLOW="$ac_cv_decl_EOVERFLOW"
14479
14480   fi
14481
14482
14483   echo "$as_me:$LINENO: checking for signed" >&5
14484 echo $ECHO_N "checking for signed... $ECHO_C" >&6
14485 if test "${bh_cv_c_signed+set}" = set; then
14486   echo $ECHO_N "(cached) $ECHO_C" >&6
14487 else
14488   cat >conftest.$ac_ext <<_ACEOF
14489 /* confdefs.h.  */
14490 _ACEOF
14491 cat confdefs.h >>conftest.$ac_ext
14492 cat >>conftest.$ac_ext <<_ACEOF
14493 /* end confdefs.h.  */
14494
14495 int
14496 main ()
14497 {
14498 signed char x;
14499   ;
14500   return 0;
14501 }
14502 _ACEOF
14503 rm -f conftest.$ac_objext
14504 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14505   (eval $ac_compile) 2>conftest.er1
14506   ac_status=$?
14507   grep -v '^ *+' conftest.er1 >conftest.err
14508   rm -f conftest.er1
14509   cat conftest.err >&5
14510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14511   (exit $ac_status); } &&
14512          { ac_try='test -z "$ac_c_werror_flag"
14513                          || test ! -s conftest.err'
14514   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14515   (eval $ac_try) 2>&5
14516   ac_status=$?
14517   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14518   (exit $ac_status); }; } &&
14519          { ac_try='test -s conftest.$ac_objext'
14520   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14521   (eval $ac_try) 2>&5
14522   ac_status=$?
14523   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14524   (exit $ac_status); }; }; then
14525   bh_cv_c_signed=yes
14526 else
14527   echo "$as_me: failed program was:" >&5
14528 sed 's/^/| /' conftest.$ac_ext >&5
14529
14530 bh_cv_c_signed=no
14531 fi
14532 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14533 fi
14534 echo "$as_me:$LINENO: result: $bh_cv_c_signed" >&5
14535 echo "${ECHO_T}$bh_cv_c_signed" >&6
14536   if test $bh_cv_c_signed = no; then
14537
14538 cat >>confdefs.h <<\_ACEOF
14539 #define signed
14540 _ACEOF
14541
14542   fi
14543
14544
14545   echo "$as_me:$LINENO: checking for wchar_t" >&5
14546 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6
14547 if test "${gt_cv_c_wchar_t+set}" = set; then
14548   echo $ECHO_N "(cached) $ECHO_C" >&6
14549 else
14550   cat >conftest.$ac_ext <<_ACEOF
14551 /* confdefs.h.  */
14552 _ACEOF
14553 cat confdefs.h >>conftest.$ac_ext
14554 cat >>conftest.$ac_ext <<_ACEOF
14555 /* end confdefs.h.  */
14556 #include <stddef.h>
14557        wchar_t foo = (wchar_t)'\0';
14558 int
14559 main ()
14560 {
14561
14562   ;
14563   return 0;
14564 }
14565 _ACEOF
14566 rm -f conftest.$ac_objext
14567 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14568   (eval $ac_compile) 2>conftest.er1
14569   ac_status=$?
14570   grep -v '^ *+' conftest.er1 >conftest.err
14571   rm -f conftest.er1
14572   cat conftest.err >&5
14573   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14574   (exit $ac_status); } &&
14575          { ac_try='test -z "$ac_c_werror_flag"
14576                          || test ! -s conftest.err'
14577   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14578   (eval $ac_try) 2>&5
14579   ac_status=$?
14580   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14581   (exit $ac_status); }; } &&
14582          { ac_try='test -s conftest.$ac_objext'
14583   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14584   (eval $ac_try) 2>&5
14585   ac_status=$?
14586   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14587   (exit $ac_status); }; }; then
14588   gt_cv_c_wchar_t=yes
14589 else
14590   echo "$as_me: failed program was:" >&5
14591 sed 's/^/| /' conftest.$ac_ext >&5
14592
14593 gt_cv_c_wchar_t=no
14594 fi
14595 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14596 fi
14597 echo "$as_me:$LINENO: result: $gt_cv_c_wchar_t" >&5
14598 echo "${ECHO_T}$gt_cv_c_wchar_t" >&6
14599   if test $gt_cv_c_wchar_t = yes; then
14600
14601 cat >>confdefs.h <<\_ACEOF
14602 #define HAVE_WCHAR_T 1
14603 _ACEOF
14604
14605   fi
14606
14607
14608   echo "$as_me:$LINENO: checking for wint_t" >&5
14609 echo $ECHO_N "checking for wint_t... $ECHO_C" >&6
14610 if test "${gt_cv_c_wint_t+set}" = set; then
14611   echo $ECHO_N "(cached) $ECHO_C" >&6
14612 else
14613   cat >conftest.$ac_ext <<_ACEOF
14614 /* confdefs.h.  */
14615 _ACEOF
14616 cat confdefs.h >>conftest.$ac_ext
14617 cat >>conftest.$ac_ext <<_ACEOF
14618 /* end confdefs.h.  */
14619 #include <wchar.h>
14620        wint_t foo = (wchar_t)'\0';
14621 int
14622 main ()
14623 {
14624
14625   ;
14626   return 0;
14627 }
14628 _ACEOF
14629 rm -f conftest.$ac_objext
14630 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14631   (eval $ac_compile) 2>conftest.er1
14632   ac_status=$?
14633   grep -v '^ *+' conftest.er1 >conftest.err
14634   rm -f conftest.er1
14635   cat conftest.err >&5
14636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14637   (exit $ac_status); } &&
14638          { ac_try='test -z "$ac_c_werror_flag"
14639                          || test ! -s conftest.err'
14640   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14641   (eval $ac_try) 2>&5
14642   ac_status=$?
14643   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14644   (exit $ac_status); }; } &&
14645          { ac_try='test -s conftest.$ac_objext'
14646   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14647   (eval $ac_try) 2>&5
14648   ac_status=$?
14649   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14650   (exit $ac_status); }; }; then
14651   gt_cv_c_wint_t=yes
14652 else
14653   echo "$as_me: failed program was:" >&5
14654 sed 's/^/| /' conftest.$ac_ext >&5
14655
14656 gt_cv_c_wint_t=no
14657 fi
14658 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14659 fi
14660 echo "$as_me:$LINENO: result: $gt_cv_c_wint_t" >&5
14661 echo "${ECHO_T}$gt_cv_c_wint_t" >&6
14662   if test $gt_cv_c_wint_t = yes; then
14663
14664 cat >>confdefs.h <<\_ACEOF
14665 #define HAVE_WINT_T 1
14666 _ACEOF
14667
14668   fi
14669
14670 echo "$as_me:$LINENO: checking for size_t" >&5
14671 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
14672 if test "${ac_cv_type_size_t+set}" = set; then
14673   echo $ECHO_N "(cached) $ECHO_C" >&6
14674 else
14675   cat >conftest.$ac_ext <<_ACEOF
14676 /* confdefs.h.  */
14677 _ACEOF
14678 cat confdefs.h >>conftest.$ac_ext
14679 cat >>conftest.$ac_ext <<_ACEOF
14680 /* end confdefs.h.  */
14681 $ac_includes_default
14682 int
14683 main ()
14684 {
14685 if ((size_t *) 0)
14686   return 0;
14687 if (sizeof (size_t))
14688   return 0;
14689   ;
14690   return 0;
14691 }
14692 _ACEOF
14693 rm -f conftest.$ac_objext
14694 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14695   (eval $ac_compile) 2>conftest.er1
14696   ac_status=$?
14697   grep -v '^ *+' conftest.er1 >conftest.err
14698   rm -f conftest.er1
14699   cat conftest.err >&5
14700   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14701   (exit $ac_status); } &&
14702          { ac_try='test -z "$ac_c_werror_flag"
14703                          || test ! -s conftest.err'
14704   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14705   (eval $ac_try) 2>&5
14706   ac_status=$?
14707   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14708   (exit $ac_status); }; } &&
14709          { ac_try='test -s conftest.$ac_objext'
14710   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14711   (eval $ac_try) 2>&5
14712   ac_status=$?
14713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14714   (exit $ac_status); }; }; then
14715   ac_cv_type_size_t=yes
14716 else
14717   echo "$as_me: failed program was:" >&5
14718 sed 's/^/| /' conftest.$ac_ext >&5
14719
14720 ac_cv_type_size_t=no
14721 fi
14722 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14723 fi
14724 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
14725 echo "${ECHO_T}$ac_cv_type_size_t" >&6
14726 if test $ac_cv_type_size_t = yes; then
14727   :
14728 else
14729
14730 cat >>confdefs.h <<_ACEOF
14731 #define size_t unsigned
14732 _ACEOF
14733
14734 fi
14735
14736
14737
14738
14739   echo "$as_me:$LINENO: checking for intmax_t" >&5
14740 echo $ECHO_N "checking for intmax_t... $ECHO_C" >&6
14741 if test "${gt_cv_c_intmax_t+set}" = set; then
14742   echo $ECHO_N "(cached) $ECHO_C" >&6
14743 else
14744   cat >conftest.$ac_ext <<_ACEOF
14745 /* confdefs.h.  */
14746 _ACEOF
14747 cat confdefs.h >>conftest.$ac_ext
14748 cat >>conftest.$ac_ext <<_ACEOF
14749 /* end confdefs.h.  */
14750
14751 #include <stddef.h>
14752 #include <stdlib.h>
14753 #if HAVE_STDINT_H_WITH_UINTMAX
14754 #include <stdint.h>
14755 #endif
14756 #if HAVE_INTTYPES_H_WITH_UINTMAX
14757 #include <inttypes.h>
14758 #endif
14759
14760 int
14761 main ()
14762 {
14763 intmax_t x = -1;
14764   ;
14765   return 0;
14766 }
14767 _ACEOF
14768 rm -f conftest.$ac_objext
14769 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14770   (eval $ac_compile) 2>conftest.er1
14771   ac_status=$?
14772   grep -v '^ *+' conftest.er1 >conftest.err
14773   rm -f conftest.er1
14774   cat conftest.err >&5
14775   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14776   (exit $ac_status); } &&
14777          { ac_try='test -z "$ac_c_werror_flag"
14778                          || test ! -s conftest.err'
14779   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14780   (eval $ac_try) 2>&5
14781   ac_status=$?
14782   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14783   (exit $ac_status); }; } &&
14784          { ac_try='test -s conftest.$ac_objext'
14785   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14786   (eval $ac_try) 2>&5
14787   ac_status=$?
14788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14789   (exit $ac_status); }; }; then
14790   gt_cv_c_intmax_t=yes
14791 else
14792   echo "$as_me: failed program was:" >&5
14793 sed 's/^/| /' conftest.$ac_ext >&5
14794
14795 gt_cv_c_intmax_t=no
14796 fi
14797 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14798 fi
14799 echo "$as_me:$LINENO: result: $gt_cv_c_intmax_t" >&5
14800 echo "${ECHO_T}$gt_cv_c_intmax_t" >&6
14801   if test $gt_cv_c_intmax_t = yes; then
14802
14803 cat >>confdefs.h <<\_ACEOF
14804 #define HAVE_INTMAX_T 1
14805 _ACEOF
14806
14807   else
14808
14809     test $ac_cv_type_long_long = yes \
14810       && ac_type='long long' \
14811       || ac_type='long'
14812
14813 cat >>confdefs.h <<_ACEOF
14814 #define intmax_t $ac_type
14815 _ACEOF
14816
14817   fi
14818
14819 echo "$as_me:$LINENO: checking for inline" >&5
14820 echo $ECHO_N "checking for inline... $ECHO_C" >&6
14821 if test "${ac_cv_c_inline+set}" = set; then
14822   echo $ECHO_N "(cached) $ECHO_C" >&6
14823 else
14824   ac_cv_c_inline=no
14825 for ac_kw in inline __inline__ __inline; do
14826   cat >conftest.$ac_ext <<_ACEOF
14827 /* confdefs.h.  */
14828 _ACEOF
14829 cat confdefs.h >>conftest.$ac_ext
14830 cat >>conftest.$ac_ext <<_ACEOF
14831 /* end confdefs.h.  */
14832 #ifndef __cplusplus
14833 typedef int foo_t;
14834 static $ac_kw foo_t static_foo () {return 0; }
14835 $ac_kw foo_t foo () {return 0; }
14836 #endif
14837
14838 _ACEOF
14839 rm -f conftest.$ac_objext
14840 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14841   (eval $ac_compile) 2>conftest.er1
14842   ac_status=$?
14843   grep -v '^ *+' conftest.er1 >conftest.err
14844   rm -f conftest.er1
14845   cat conftest.err >&5
14846   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14847   (exit $ac_status); } &&
14848          { ac_try='test -z "$ac_c_werror_flag"
14849                          || test ! -s conftest.err'
14850   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14851   (eval $ac_try) 2>&5
14852   ac_status=$?
14853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14854   (exit $ac_status); }; } &&
14855          { ac_try='test -s conftest.$ac_objext'
14856   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14857   (eval $ac_try) 2>&5
14858   ac_status=$?
14859   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14860   (exit $ac_status); }; }; then
14861   ac_cv_c_inline=$ac_kw; break
14862 else
14863   echo "$as_me: failed program was:" >&5
14864 sed 's/^/| /' conftest.$ac_ext >&5
14865
14866 fi
14867 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14868 done
14869
14870 fi
14871 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
14872 echo "${ECHO_T}$ac_cv_c_inline" >&6
14873
14874
14875 case $ac_cv_c_inline in
14876   inline | yes) ;;
14877   *)
14878     case $ac_cv_c_inline in
14879       no) ac_val=;;
14880       *) ac_val=$ac_cv_c_inline;;
14881     esac
14882     cat >>confdefs.h <<_ACEOF
14883 #ifndef __cplusplus
14884 #define inline $ac_val
14885 #endif
14886 _ACEOF
14887     ;;
14888 esac
14889
14890
14891
14892 for ac_header in stdint.h
14893 do
14894 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14895 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14896   echo "$as_me:$LINENO: checking for $ac_header" >&5
14897 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14898 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14899   echo $ECHO_N "(cached) $ECHO_C" >&6
14900 fi
14901 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14902 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14903 else
14904   # Is the header compilable?
14905 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14906 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14907 cat >conftest.$ac_ext <<_ACEOF
14908 /* confdefs.h.  */
14909 _ACEOF
14910 cat confdefs.h >>conftest.$ac_ext
14911 cat >>conftest.$ac_ext <<_ACEOF
14912 /* end confdefs.h.  */
14913 $ac_includes_default
14914 #include <$ac_header>
14915 _ACEOF
14916 rm -f conftest.$ac_objext
14917 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14918   (eval $ac_compile) 2>conftest.er1
14919   ac_status=$?
14920   grep -v '^ *+' conftest.er1 >conftest.err
14921   rm -f conftest.er1
14922   cat conftest.err >&5
14923   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14924   (exit $ac_status); } &&
14925          { ac_try='test -z "$ac_c_werror_flag"
14926                          || test ! -s conftest.err'
14927   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14928   (eval $ac_try) 2>&5
14929   ac_status=$?
14930   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14931   (exit $ac_status); }; } &&
14932          { ac_try='test -s conftest.$ac_objext'
14933   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14934   (eval $ac_try) 2>&5
14935   ac_status=$?
14936   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14937   (exit $ac_status); }; }; then
14938   ac_header_compiler=yes
14939 else
14940   echo "$as_me: failed program was:" >&5
14941 sed 's/^/| /' conftest.$ac_ext >&5
14942
14943 ac_header_compiler=no
14944 fi
14945 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14946 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14947 echo "${ECHO_T}$ac_header_compiler" >&6
14948
14949 # Is the header present?
14950 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14951 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14952 cat >conftest.$ac_ext <<_ACEOF
14953 /* confdefs.h.  */
14954 _ACEOF
14955 cat confdefs.h >>conftest.$ac_ext
14956 cat >>conftest.$ac_ext <<_ACEOF
14957 /* end confdefs.h.  */
14958 #include <$ac_header>
14959 _ACEOF
14960 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14961   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14962   ac_status=$?
14963   grep -v '^ *+' conftest.er1 >conftest.err
14964   rm -f conftest.er1
14965   cat conftest.err >&5
14966   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14967   (exit $ac_status); } >/dev/null; then
14968   if test -s conftest.err; then
14969     ac_cpp_err=$ac_c_preproc_warn_flag
14970     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14971   else
14972     ac_cpp_err=
14973   fi
14974 else
14975   ac_cpp_err=yes
14976 fi
14977 if test -z "$ac_cpp_err"; then
14978   ac_header_preproc=yes
14979 else
14980   echo "$as_me: failed program was:" >&5
14981 sed 's/^/| /' conftest.$ac_ext >&5
14982
14983   ac_header_preproc=no
14984 fi
14985 rm -f conftest.err conftest.$ac_ext
14986 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14987 echo "${ECHO_T}$ac_header_preproc" >&6
14988
14989 # So?  What about this header?
14990 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14991   yes:no: )
14992     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14993 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14994     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14995 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14996     ac_header_preproc=yes
14997     ;;
14998   no:yes:* )
14999     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15000 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15001     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15002 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15003     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15004 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15005     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15006 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15007     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15008 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15009     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15010 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15011     (
15012       cat <<\_ASBOX
15013 ## ------------------------------ ##
15014 ## Report this to bug-cvs@gnu.org ##
15015 ## ------------------------------ ##
15016 _ASBOX
15017     ) |
15018       sed "s/^/$as_me: WARNING:     /" >&2
15019     ;;
15020 esac
15021 echo "$as_me:$LINENO: checking for $ac_header" >&5
15022 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15023 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15024   echo $ECHO_N "(cached) $ECHO_C" >&6
15025 else
15026   eval "$as_ac_Header=\$ac_header_preproc"
15027 fi
15028 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15029 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15030
15031 fi
15032 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15033   cat >>confdefs.h <<_ACEOF
15034 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15035 _ACEOF
15036
15037 fi
15038
15039 done
15040
15041     echo "$as_me:$LINENO: checking for SIZE_MAX" >&5
15042 echo $ECHO_N "checking for SIZE_MAX... $ECHO_C" >&6
15043   result=
15044   cat >conftest.$ac_ext <<_ACEOF
15045 /* confdefs.h.  */
15046 _ACEOF
15047 cat confdefs.h >>conftest.$ac_ext
15048 cat >>conftest.$ac_ext <<_ACEOF
15049 /* end confdefs.h.  */
15050
15051 #include <limits.h>
15052 #if HAVE_STDINT_H
15053 #include <stdint.h>
15054 #endif
15055 #ifdef SIZE_MAX
15056 Found it
15057 #endif
15058
15059 _ACEOF
15060 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15061   $EGREP "Found it" >/dev/null 2>&1; then
15062   result=yes
15063 fi
15064 rm -f conftest*
15065
15066   if test -z "$result"; then
15067                     if test "$cross_compiling" = yes; then
15068   # Depending upon the size, compute the lo and hi bounds.
15069 cat >conftest.$ac_ext <<_ACEOF
15070 /* confdefs.h.  */
15071 _ACEOF
15072 cat confdefs.h >>conftest.$ac_ext
15073 cat >>conftest.$ac_ext <<_ACEOF
15074 /* end confdefs.h.  */
15075 #include <stddef.h>
15076 int
15077 main ()
15078 {
15079 static int test_array [1 - 2 * !((~(size_t)0 / 10) >= 0)];
15080 test_array [0] = 0
15081
15082   ;
15083   return 0;
15084 }
15085 _ACEOF
15086 rm -f conftest.$ac_objext
15087 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15088   (eval $ac_compile) 2>conftest.er1
15089   ac_status=$?
15090   grep -v '^ *+' conftest.er1 >conftest.err
15091   rm -f conftest.er1
15092   cat conftest.err >&5
15093   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15094   (exit $ac_status); } &&
15095          { ac_try='test -z "$ac_c_werror_flag"
15096                          || test ! -s conftest.err'
15097   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15098   (eval $ac_try) 2>&5
15099   ac_status=$?
15100   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15101   (exit $ac_status); }; } &&
15102          { ac_try='test -s conftest.$ac_objext'
15103   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15104   (eval $ac_try) 2>&5
15105   ac_status=$?
15106   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15107   (exit $ac_status); }; }; then
15108   ac_lo=0 ac_mid=0
15109   while :; do
15110     cat >conftest.$ac_ext <<_ACEOF
15111 /* confdefs.h.  */
15112 _ACEOF
15113 cat confdefs.h >>conftest.$ac_ext
15114 cat >>conftest.$ac_ext <<_ACEOF
15115 /* end confdefs.h.  */
15116 #include <stddef.h>
15117 int
15118 main ()
15119 {
15120 static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
15121 test_array [0] = 0
15122
15123   ;
15124   return 0;
15125 }
15126 _ACEOF
15127 rm -f conftest.$ac_objext
15128 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15129   (eval $ac_compile) 2>conftest.er1
15130   ac_status=$?
15131   grep -v '^ *+' conftest.er1 >conftest.err
15132   rm -f conftest.er1
15133   cat conftest.err >&5
15134   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15135   (exit $ac_status); } &&
15136          { ac_try='test -z "$ac_c_werror_flag"
15137                          || test ! -s conftest.err'
15138   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15139   (eval $ac_try) 2>&5
15140   ac_status=$?
15141   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15142   (exit $ac_status); }; } &&
15143          { ac_try='test -s conftest.$ac_objext'
15144   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15145   (eval $ac_try) 2>&5
15146   ac_status=$?
15147   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15148   (exit $ac_status); }; }; then
15149   ac_hi=$ac_mid; break
15150 else
15151   echo "$as_me: failed program was:" >&5
15152 sed 's/^/| /' conftest.$ac_ext >&5
15153
15154 ac_lo=`expr $ac_mid + 1`
15155                     if test $ac_lo -le $ac_mid; then
15156                       ac_lo= ac_hi=
15157                       break
15158                     fi
15159                     ac_mid=`expr 2 '*' $ac_mid + 1`
15160 fi
15161 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15162   done
15163 else
15164   echo "$as_me: failed program was:" >&5
15165 sed 's/^/| /' conftest.$ac_ext >&5
15166
15167 cat >conftest.$ac_ext <<_ACEOF
15168 /* confdefs.h.  */
15169 _ACEOF
15170 cat confdefs.h >>conftest.$ac_ext
15171 cat >>conftest.$ac_ext <<_ACEOF
15172 /* end confdefs.h.  */
15173 #include <stddef.h>
15174 int
15175 main ()
15176 {
15177 static int test_array [1 - 2 * !((~(size_t)0 / 10) < 0)];
15178 test_array [0] = 0
15179
15180   ;
15181   return 0;
15182 }
15183 _ACEOF
15184 rm -f conftest.$ac_objext
15185 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15186   (eval $ac_compile) 2>conftest.er1
15187   ac_status=$?
15188   grep -v '^ *+' conftest.er1 >conftest.err
15189   rm -f conftest.er1
15190   cat conftest.err >&5
15191   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15192   (exit $ac_status); } &&
15193          { ac_try='test -z "$ac_c_werror_flag"
15194                          || test ! -s conftest.err'
15195   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15196   (eval $ac_try) 2>&5
15197   ac_status=$?
15198   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15199   (exit $ac_status); }; } &&
15200          { ac_try='test -s conftest.$ac_objext'
15201   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15202   (eval $ac_try) 2>&5
15203   ac_status=$?
15204   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15205   (exit $ac_status); }; }; then
15206   ac_hi=-1 ac_mid=-1
15207   while :; do
15208     cat >conftest.$ac_ext <<_ACEOF
15209 /* confdefs.h.  */
15210 _ACEOF
15211 cat confdefs.h >>conftest.$ac_ext
15212 cat >>conftest.$ac_ext <<_ACEOF
15213 /* end confdefs.h.  */
15214 #include <stddef.h>
15215 int
15216 main ()
15217 {
15218 static int test_array [1 - 2 * !((~(size_t)0 / 10) >= $ac_mid)];
15219 test_array [0] = 0
15220
15221   ;
15222   return 0;
15223 }
15224 _ACEOF
15225 rm -f conftest.$ac_objext
15226 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15227   (eval $ac_compile) 2>conftest.er1
15228   ac_status=$?
15229   grep -v '^ *+' conftest.er1 >conftest.err
15230   rm -f conftest.er1
15231   cat conftest.err >&5
15232   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15233   (exit $ac_status); } &&
15234          { ac_try='test -z "$ac_c_werror_flag"
15235                          || test ! -s conftest.err'
15236   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15237   (eval $ac_try) 2>&5
15238   ac_status=$?
15239   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15240   (exit $ac_status); }; } &&
15241          { ac_try='test -s conftest.$ac_objext'
15242   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15243   (eval $ac_try) 2>&5
15244   ac_status=$?
15245   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15246   (exit $ac_status); }; }; then
15247   ac_lo=$ac_mid; break
15248 else
15249   echo "$as_me: failed program was:" >&5
15250 sed 's/^/| /' conftest.$ac_ext >&5
15251
15252 ac_hi=`expr '(' $ac_mid ')' - 1`
15253                        if test $ac_mid -le $ac_hi; then
15254                          ac_lo= ac_hi=
15255                          break
15256                        fi
15257                        ac_mid=`expr 2 '*' $ac_mid`
15258 fi
15259 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15260   done
15261 else
15262   echo "$as_me: failed program was:" >&5
15263 sed 's/^/| /' conftest.$ac_ext >&5
15264
15265 ac_lo= ac_hi=
15266 fi
15267 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15268 fi
15269 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15270 # Binary search between lo and hi bounds.
15271 while test "x$ac_lo" != "x$ac_hi"; do
15272   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15273   cat >conftest.$ac_ext <<_ACEOF
15274 /* confdefs.h.  */
15275 _ACEOF
15276 cat confdefs.h >>conftest.$ac_ext
15277 cat >>conftest.$ac_ext <<_ACEOF
15278 /* end confdefs.h.  */
15279 #include <stddef.h>
15280 int
15281 main ()
15282 {
15283 static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
15284 test_array [0] = 0
15285
15286   ;
15287   return 0;
15288 }
15289 _ACEOF
15290 rm -f conftest.$ac_objext
15291 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15292   (eval $ac_compile) 2>conftest.er1
15293   ac_status=$?
15294   grep -v '^ *+' conftest.er1 >conftest.err
15295   rm -f conftest.er1
15296   cat conftest.err >&5
15297   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15298   (exit $ac_status); } &&
15299          { ac_try='test -z "$ac_c_werror_flag"
15300                          || test ! -s conftest.err'
15301   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15302   (eval $ac_try) 2>&5
15303   ac_status=$?
15304   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15305   (exit $ac_status); }; } &&
15306          { ac_try='test -s conftest.$ac_objext'
15307   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15308   (eval $ac_try) 2>&5
15309   ac_status=$?
15310   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15311   (exit $ac_status); }; }; then
15312   ac_hi=$ac_mid
15313 else
15314   echo "$as_me: failed program was:" >&5
15315 sed 's/^/| /' conftest.$ac_ext >&5
15316
15317 ac_lo=`expr '(' $ac_mid ')' + 1`
15318 fi
15319 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15320 done
15321 case $ac_lo in
15322 ?*) res_hi=$ac_lo;;
15323 '') result=? ;;
15324 esac
15325 else
15326   if test "$cross_compiling" = yes; then
15327   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
15328 See \`config.log' for more details." >&5
15329 echo "$as_me: error: cannot run test program while cross compiling
15330 See \`config.log' for more details." >&2;}
15331    { (exit 1); exit 1; }; }
15332 else
15333   cat >conftest.$ac_ext <<_ACEOF
15334 /* confdefs.h.  */
15335 _ACEOF
15336 cat confdefs.h >>conftest.$ac_ext
15337 cat >>conftest.$ac_ext <<_ACEOF
15338 /* end confdefs.h.  */
15339 #include <stddef.h>
15340 long longval () { return ~(size_t)0 / 10; }
15341 unsigned long ulongval () { return ~(size_t)0 / 10; }
15342 #include <stdio.h>
15343 #include <stdlib.h>
15344 int
15345 main ()
15346 {
15347
15348   FILE *f = fopen ("conftest.val", "w");
15349   if (! f)
15350     exit (1);
15351   if ((~(size_t)0 / 10) < 0)
15352     {
15353       long i = longval ();
15354       if (i != (~(size_t)0 / 10))
15355         exit (1);
15356       fprintf (f, "%ld\n", i);
15357     }
15358   else
15359     {
15360       unsigned long i = ulongval ();
15361       if (i != (~(size_t)0 / 10))
15362         exit (1);
15363       fprintf (f, "%lu\n", i);
15364     }
15365   exit (ferror (f) || fclose (f) != 0);
15366
15367   ;
15368   return 0;
15369 }
15370 _ACEOF
15371 rm -f conftest$ac_exeext
15372 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15373   (eval $ac_link) 2>&5
15374   ac_status=$?
15375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15376   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15377   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15378   (eval $ac_try) 2>&5
15379   ac_status=$?
15380   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15381   (exit $ac_status); }; }; then
15382   res_hi=`cat conftest.val`
15383 else
15384   echo "$as_me: program exited with status $ac_status" >&5
15385 echo "$as_me: failed program was:" >&5
15386 sed 's/^/| /' conftest.$ac_ext >&5
15387
15388 ( exit $ac_status )
15389 result=?
15390 fi
15391 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15392 fi
15393 fi
15394 rm -f conftest.val
15395     if test "$cross_compiling" = yes; then
15396   # Depending upon the size, compute the lo and hi bounds.
15397 cat >conftest.$ac_ext <<_ACEOF
15398 /* confdefs.h.  */
15399 _ACEOF
15400 cat confdefs.h >>conftest.$ac_ext
15401 cat >>conftest.$ac_ext <<_ACEOF
15402 /* end confdefs.h.  */
15403 #include <stddef.h>
15404 int
15405 main ()
15406 {
15407 static int test_array [1 - 2 * !((~(size_t)0 % 10) >= 0)];
15408 test_array [0] = 0
15409
15410   ;
15411   return 0;
15412 }
15413 _ACEOF
15414 rm -f conftest.$ac_objext
15415 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15416   (eval $ac_compile) 2>conftest.er1
15417   ac_status=$?
15418   grep -v '^ *+' conftest.er1 >conftest.err
15419   rm -f conftest.er1
15420   cat conftest.err >&5
15421   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15422   (exit $ac_status); } &&
15423          { ac_try='test -z "$ac_c_werror_flag"
15424                          || test ! -s conftest.err'
15425   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15426   (eval $ac_try) 2>&5
15427   ac_status=$?
15428   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15429   (exit $ac_status); }; } &&
15430          { ac_try='test -s conftest.$ac_objext'
15431   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15432   (eval $ac_try) 2>&5
15433   ac_status=$?
15434   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15435   (exit $ac_status); }; }; then
15436   ac_lo=0 ac_mid=0
15437   while :; do
15438     cat >conftest.$ac_ext <<_ACEOF
15439 /* confdefs.h.  */
15440 _ACEOF
15441 cat confdefs.h >>conftest.$ac_ext
15442 cat >>conftest.$ac_ext <<_ACEOF
15443 /* end confdefs.h.  */
15444 #include <stddef.h>
15445 int
15446 main ()
15447 {
15448 static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
15449 test_array [0] = 0
15450
15451   ;
15452   return 0;
15453 }
15454 _ACEOF
15455 rm -f conftest.$ac_objext
15456 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15457   (eval $ac_compile) 2>conftest.er1
15458   ac_status=$?
15459   grep -v '^ *+' conftest.er1 >conftest.err
15460   rm -f conftest.er1
15461   cat conftest.err >&5
15462   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15463   (exit $ac_status); } &&
15464          { ac_try='test -z "$ac_c_werror_flag"
15465                          || test ! -s conftest.err'
15466   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15467   (eval $ac_try) 2>&5
15468   ac_status=$?
15469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15470   (exit $ac_status); }; } &&
15471          { ac_try='test -s conftest.$ac_objext'
15472   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15473   (eval $ac_try) 2>&5
15474   ac_status=$?
15475   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15476   (exit $ac_status); }; }; then
15477   ac_hi=$ac_mid; break
15478 else
15479   echo "$as_me: failed program was:" >&5
15480 sed 's/^/| /' conftest.$ac_ext >&5
15481
15482 ac_lo=`expr $ac_mid + 1`
15483                     if test $ac_lo -le $ac_mid; then
15484                       ac_lo= ac_hi=
15485                       break
15486                     fi
15487                     ac_mid=`expr 2 '*' $ac_mid + 1`
15488 fi
15489 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15490   done
15491 else
15492   echo "$as_me: failed program was:" >&5
15493 sed 's/^/| /' conftest.$ac_ext >&5
15494
15495 cat >conftest.$ac_ext <<_ACEOF
15496 /* confdefs.h.  */
15497 _ACEOF
15498 cat confdefs.h >>conftest.$ac_ext
15499 cat >>conftest.$ac_ext <<_ACEOF
15500 /* end confdefs.h.  */
15501 #include <stddef.h>
15502 int
15503 main ()
15504 {
15505 static int test_array [1 - 2 * !((~(size_t)0 % 10) < 0)];
15506 test_array [0] = 0
15507
15508   ;
15509   return 0;
15510 }
15511 _ACEOF
15512 rm -f conftest.$ac_objext
15513 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15514   (eval $ac_compile) 2>conftest.er1
15515   ac_status=$?
15516   grep -v '^ *+' conftest.er1 >conftest.err
15517   rm -f conftest.er1
15518   cat conftest.err >&5
15519   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15520   (exit $ac_status); } &&
15521          { ac_try='test -z "$ac_c_werror_flag"
15522                          || test ! -s conftest.err'
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); }; } &&
15528          { ac_try='test -s conftest.$ac_objext'
15529   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15530   (eval $ac_try) 2>&5
15531   ac_status=$?
15532   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15533   (exit $ac_status); }; }; then
15534   ac_hi=-1 ac_mid=-1
15535   while :; do
15536     cat >conftest.$ac_ext <<_ACEOF
15537 /* confdefs.h.  */
15538 _ACEOF
15539 cat confdefs.h >>conftest.$ac_ext
15540 cat >>conftest.$ac_ext <<_ACEOF
15541 /* end confdefs.h.  */
15542 #include <stddef.h>
15543 int
15544 main ()
15545 {
15546 static int test_array [1 - 2 * !((~(size_t)0 % 10) >= $ac_mid)];
15547 test_array [0] = 0
15548
15549   ;
15550   return 0;
15551 }
15552 _ACEOF
15553 rm -f conftest.$ac_objext
15554 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15555   (eval $ac_compile) 2>conftest.er1
15556   ac_status=$?
15557   grep -v '^ *+' conftest.er1 >conftest.err
15558   rm -f conftest.er1
15559   cat conftest.err >&5
15560   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15561   (exit $ac_status); } &&
15562          { ac_try='test -z "$ac_c_werror_flag"
15563                          || test ! -s conftest.err'
15564   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15565   (eval $ac_try) 2>&5
15566   ac_status=$?
15567   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15568   (exit $ac_status); }; } &&
15569          { ac_try='test -s conftest.$ac_objext'
15570   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15571   (eval $ac_try) 2>&5
15572   ac_status=$?
15573   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15574   (exit $ac_status); }; }; then
15575   ac_lo=$ac_mid; break
15576 else
15577   echo "$as_me: failed program was:" >&5
15578 sed 's/^/| /' conftest.$ac_ext >&5
15579
15580 ac_hi=`expr '(' $ac_mid ')' - 1`
15581                        if test $ac_mid -le $ac_hi; then
15582                          ac_lo= ac_hi=
15583                          break
15584                        fi
15585                        ac_mid=`expr 2 '*' $ac_mid`
15586 fi
15587 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15588   done
15589 else
15590   echo "$as_me: failed program was:" >&5
15591 sed 's/^/| /' conftest.$ac_ext >&5
15592
15593 ac_lo= ac_hi=
15594 fi
15595 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15596 fi
15597 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15598 # Binary search between lo and hi bounds.
15599 while test "x$ac_lo" != "x$ac_hi"; do
15600   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15601   cat >conftest.$ac_ext <<_ACEOF
15602 /* confdefs.h.  */
15603 _ACEOF
15604 cat confdefs.h >>conftest.$ac_ext
15605 cat >>conftest.$ac_ext <<_ACEOF
15606 /* end confdefs.h.  */
15607 #include <stddef.h>
15608 int
15609 main ()
15610 {
15611 static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
15612 test_array [0] = 0
15613
15614   ;
15615   return 0;
15616 }
15617 _ACEOF
15618 rm -f conftest.$ac_objext
15619 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15620   (eval $ac_compile) 2>conftest.er1
15621   ac_status=$?
15622   grep -v '^ *+' conftest.er1 >conftest.err
15623   rm -f conftest.er1
15624   cat conftest.err >&5
15625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15626   (exit $ac_status); } &&
15627          { ac_try='test -z "$ac_c_werror_flag"
15628                          || test ! -s conftest.err'
15629   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15630   (eval $ac_try) 2>&5
15631   ac_status=$?
15632   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15633   (exit $ac_status); }; } &&
15634          { ac_try='test -s conftest.$ac_objext'
15635   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15636   (eval $ac_try) 2>&5
15637   ac_status=$?
15638   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15639   (exit $ac_status); }; }; then
15640   ac_hi=$ac_mid
15641 else
15642   echo "$as_me: failed program was:" >&5
15643 sed 's/^/| /' conftest.$ac_ext >&5
15644
15645 ac_lo=`expr '(' $ac_mid ')' + 1`
15646 fi
15647 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15648 done
15649 case $ac_lo in
15650 ?*) res_lo=$ac_lo;;
15651 '') result=? ;;
15652 esac
15653 else
15654   if test "$cross_compiling" = yes; then
15655   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
15656 See \`config.log' for more details." >&5
15657 echo "$as_me: error: cannot run test program while cross compiling
15658 See \`config.log' for more details." >&2;}
15659    { (exit 1); exit 1; }; }
15660 else
15661   cat >conftest.$ac_ext <<_ACEOF
15662 /* confdefs.h.  */
15663 _ACEOF
15664 cat confdefs.h >>conftest.$ac_ext
15665 cat >>conftest.$ac_ext <<_ACEOF
15666 /* end confdefs.h.  */
15667 #include <stddef.h>
15668 long longval () { return ~(size_t)0 % 10; }
15669 unsigned long ulongval () { return ~(size_t)0 % 10; }
15670 #include <stdio.h>
15671 #include <stdlib.h>
15672 int
15673 main ()
15674 {
15675
15676   FILE *f = fopen ("conftest.val", "w");
15677   if (! f)
15678     exit (1);
15679   if ((~(size_t)0 % 10) < 0)
15680     {
15681       long i = longval ();
15682       if (i != (~(size_t)0 % 10))
15683         exit (1);
15684       fprintf (f, "%ld\n", i);
15685     }
15686   else
15687     {
15688       unsigned long i = ulongval ();
15689       if (i != (~(size_t)0 % 10))
15690         exit (1);
15691       fprintf (f, "%lu\n", i);
15692     }
15693   exit (ferror (f) || fclose (f) != 0);
15694
15695   ;
15696   return 0;
15697 }
15698 _ACEOF
15699 rm -f conftest$ac_exeext
15700 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15701   (eval $ac_link) 2>&5
15702   ac_status=$?
15703   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15704   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15705   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15706   (eval $ac_try) 2>&5
15707   ac_status=$?
15708   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15709   (exit $ac_status); }; }; then
15710   res_lo=`cat conftest.val`
15711 else
15712   echo "$as_me: program exited with status $ac_status" >&5
15713 echo "$as_me: failed program was:" >&5
15714 sed 's/^/| /' conftest.$ac_ext >&5
15715
15716 ( exit $ac_status )
15717 result=?
15718 fi
15719 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15720 fi
15721 fi
15722 rm -f conftest.val
15723     if test "$cross_compiling" = yes; then
15724   # Depending upon the size, compute the lo and hi bounds.
15725 cat >conftest.$ac_ext <<_ACEOF
15726 /* confdefs.h.  */
15727 _ACEOF
15728 cat confdefs.h >>conftest.$ac_ext
15729 cat >>conftest.$ac_ext <<_ACEOF
15730 /* end confdefs.h.  */
15731 #include <stddef.h>
15732 int
15733 main ()
15734 {
15735 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= 0)];
15736 test_array [0] = 0
15737
15738   ;
15739   return 0;
15740 }
15741 _ACEOF
15742 rm -f conftest.$ac_objext
15743 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15744   (eval $ac_compile) 2>conftest.er1
15745   ac_status=$?
15746   grep -v '^ *+' conftest.er1 >conftest.err
15747   rm -f conftest.er1
15748   cat conftest.err >&5
15749   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15750   (exit $ac_status); } &&
15751          { ac_try='test -z "$ac_c_werror_flag"
15752                          || test ! -s conftest.err'
15753   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15754   (eval $ac_try) 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_lo=0 ac_mid=0
15765   while :; do
15766     cat >conftest.$ac_ext <<_ACEOF
15767 /* confdefs.h.  */
15768 _ACEOF
15769 cat confdefs.h >>conftest.$ac_ext
15770 cat >>conftest.$ac_ext <<_ACEOF
15771 /* end confdefs.h.  */
15772 #include <stddef.h>
15773 int
15774 main ()
15775 {
15776 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
15777 test_array [0] = 0
15778
15779   ;
15780   return 0;
15781 }
15782 _ACEOF
15783 rm -f conftest.$ac_objext
15784 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15785   (eval $ac_compile) 2>conftest.er1
15786   ac_status=$?
15787   grep -v '^ *+' conftest.er1 >conftest.err
15788   rm -f conftest.er1
15789   cat conftest.err >&5
15790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15791   (exit $ac_status); } &&
15792          { ac_try='test -z "$ac_c_werror_flag"
15793                          || test ! -s conftest.err'
15794   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15795   (eval $ac_try) 2>&5
15796   ac_status=$?
15797   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15798   (exit $ac_status); }; } &&
15799          { ac_try='test -s conftest.$ac_objext'
15800   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15801   (eval $ac_try) 2>&5
15802   ac_status=$?
15803   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15804   (exit $ac_status); }; }; then
15805   ac_hi=$ac_mid; break
15806 else
15807   echo "$as_me: failed program was:" >&5
15808 sed 's/^/| /' conftest.$ac_ext >&5
15809
15810 ac_lo=`expr $ac_mid + 1`
15811                     if test $ac_lo -le $ac_mid; then
15812                       ac_lo= ac_hi=
15813                       break
15814                     fi
15815                     ac_mid=`expr 2 '*' $ac_mid + 1`
15816 fi
15817 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15818   done
15819 else
15820   echo "$as_me: failed program was:" >&5
15821 sed 's/^/| /' conftest.$ac_ext >&5
15822
15823 cat >conftest.$ac_ext <<_ACEOF
15824 /* confdefs.h.  */
15825 _ACEOF
15826 cat confdefs.h >>conftest.$ac_ext
15827 cat >>conftest.$ac_ext <<_ACEOF
15828 /* end confdefs.h.  */
15829 #include <stddef.h>
15830 int
15831 main ()
15832 {
15833 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) < 0)];
15834 test_array [0] = 0
15835
15836   ;
15837   return 0;
15838 }
15839 _ACEOF
15840 rm -f conftest.$ac_objext
15841 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15842   (eval $ac_compile) 2>conftest.er1
15843   ac_status=$?
15844   grep -v '^ *+' conftest.er1 >conftest.err
15845   rm -f conftest.er1
15846   cat conftest.err >&5
15847   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15848   (exit $ac_status); } &&
15849          { ac_try='test -z "$ac_c_werror_flag"
15850                          || test ! -s conftest.err'
15851   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15852   (eval $ac_try) 2>&5
15853   ac_status=$?
15854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15855   (exit $ac_status); }; } &&
15856          { ac_try='test -s conftest.$ac_objext'
15857   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15858   (eval $ac_try) 2>&5
15859   ac_status=$?
15860   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15861   (exit $ac_status); }; }; then
15862   ac_hi=-1 ac_mid=-1
15863   while :; do
15864     cat >conftest.$ac_ext <<_ACEOF
15865 /* confdefs.h.  */
15866 _ACEOF
15867 cat confdefs.h >>conftest.$ac_ext
15868 cat >>conftest.$ac_ext <<_ACEOF
15869 /* end confdefs.h.  */
15870 #include <stddef.h>
15871 int
15872 main ()
15873 {
15874 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= $ac_mid)];
15875 test_array [0] = 0
15876
15877   ;
15878   return 0;
15879 }
15880 _ACEOF
15881 rm -f conftest.$ac_objext
15882 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15883   (eval $ac_compile) 2>conftest.er1
15884   ac_status=$?
15885   grep -v '^ *+' conftest.er1 >conftest.err
15886   rm -f conftest.er1
15887   cat conftest.err >&5
15888   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15889   (exit $ac_status); } &&
15890          { ac_try='test -z "$ac_c_werror_flag"
15891                          || test ! -s conftest.err'
15892   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15893   (eval $ac_try) 2>&5
15894   ac_status=$?
15895   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15896   (exit $ac_status); }; } &&
15897          { ac_try='test -s conftest.$ac_objext'
15898   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15899   (eval $ac_try) 2>&5
15900   ac_status=$?
15901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15902   (exit $ac_status); }; }; then
15903   ac_lo=$ac_mid; break
15904 else
15905   echo "$as_me: failed program was:" >&5
15906 sed 's/^/| /' conftest.$ac_ext >&5
15907
15908 ac_hi=`expr '(' $ac_mid ')' - 1`
15909                        if test $ac_mid -le $ac_hi; then
15910                          ac_lo= ac_hi=
15911                          break
15912                        fi
15913                        ac_mid=`expr 2 '*' $ac_mid`
15914 fi
15915 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15916   done
15917 else
15918   echo "$as_me: failed program was:" >&5
15919 sed 's/^/| /' conftest.$ac_ext >&5
15920
15921 ac_lo= ac_hi=
15922 fi
15923 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15924 fi
15925 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15926 # Binary search between lo and hi bounds.
15927 while test "x$ac_lo" != "x$ac_hi"; do
15928   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15929   cat >conftest.$ac_ext <<_ACEOF
15930 /* confdefs.h.  */
15931 _ACEOF
15932 cat confdefs.h >>conftest.$ac_ext
15933 cat >>conftest.$ac_ext <<_ACEOF
15934 /* end confdefs.h.  */
15935 #include <stddef.h>
15936 int
15937 main ()
15938 {
15939 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
15940 test_array [0] = 0
15941
15942   ;
15943   return 0;
15944 }
15945 _ACEOF
15946 rm -f conftest.$ac_objext
15947 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15948   (eval $ac_compile) 2>conftest.er1
15949   ac_status=$?
15950   grep -v '^ *+' conftest.er1 >conftest.err
15951   rm -f conftest.er1
15952   cat conftest.err >&5
15953   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15954   (exit $ac_status); } &&
15955          { ac_try='test -z "$ac_c_werror_flag"
15956                          || test ! -s conftest.err'
15957   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15958   (eval $ac_try) 2>&5
15959   ac_status=$?
15960   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15961   (exit $ac_status); }; } &&
15962          { ac_try='test -s conftest.$ac_objext'
15963   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15964   (eval $ac_try) 2>&5
15965   ac_status=$?
15966   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15967   (exit $ac_status); }; }; then
15968   ac_hi=$ac_mid
15969 else
15970   echo "$as_me: failed program was:" >&5
15971 sed 's/^/| /' conftest.$ac_ext >&5
15972
15973 ac_lo=`expr '(' $ac_mid ')' + 1`
15974 fi
15975 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15976 done
15977 case $ac_lo in
15978 ?*) fits_in_uint=$ac_lo;;
15979 '') result=? ;;
15980 esac
15981 else
15982   if test "$cross_compiling" = yes; then
15983   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
15984 See \`config.log' for more details." >&5
15985 echo "$as_me: error: cannot run test program while cross compiling
15986 See \`config.log' for more details." >&2;}
15987    { (exit 1); exit 1; }; }
15988 else
15989   cat >conftest.$ac_ext <<_ACEOF
15990 /* confdefs.h.  */
15991 _ACEOF
15992 cat confdefs.h >>conftest.$ac_ext
15993 cat >>conftest.$ac_ext <<_ACEOF
15994 /* end confdefs.h.  */
15995 #include <stddef.h>
15996 long longval () { return sizeof (size_t) <= sizeof (unsigned int); }
15997 unsigned long ulongval () { return sizeof (size_t) <= sizeof (unsigned int); }
15998 #include <stdio.h>
15999 #include <stdlib.h>
16000 int
16001 main ()
16002 {
16003
16004   FILE *f = fopen ("conftest.val", "w");
16005   if (! f)
16006     exit (1);
16007   if ((sizeof (size_t) <= sizeof (unsigned int)) < 0)
16008     {
16009       long i = longval ();
16010       if (i != (sizeof (size_t) <= sizeof (unsigned int)))
16011         exit (1);
16012       fprintf (f, "%ld\n", i);
16013     }
16014   else
16015     {
16016       unsigned long i = ulongval ();
16017       if (i != (sizeof (size_t) <= sizeof (unsigned int)))
16018         exit (1);
16019       fprintf (f, "%lu\n", i);
16020     }
16021   exit (ferror (f) || fclose (f) != 0);
16022
16023   ;
16024   return 0;
16025 }
16026 _ACEOF
16027 rm -f conftest$ac_exeext
16028 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16029   (eval $ac_link) 2>&5
16030   ac_status=$?
16031   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16032   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16033   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16034   (eval $ac_try) 2>&5
16035   ac_status=$?
16036   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16037   (exit $ac_status); }; }; then
16038   fits_in_uint=`cat conftest.val`
16039 else
16040   echo "$as_me: program exited with status $ac_status" >&5
16041 echo "$as_me: failed program was:" >&5
16042 sed 's/^/| /' conftest.$ac_ext >&5
16043
16044 ( exit $ac_status )
16045 result=?
16046 fi
16047 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16048 fi
16049 fi
16050 rm -f conftest.val
16051     if test "$fits_in_uint" = 1; then
16052                   cat >conftest.$ac_ext <<_ACEOF
16053 /* confdefs.h.  */
16054 _ACEOF
16055 cat confdefs.h >>conftest.$ac_ext
16056 cat >>conftest.$ac_ext <<_ACEOF
16057 /* end confdefs.h.  */
16058 #include <stddef.h>
16059         extern size_t foo;
16060         extern unsigned long foo;
16061
16062 int
16063 main ()
16064 {
16065
16066   ;
16067   return 0;
16068 }
16069 _ACEOF
16070 rm -f conftest.$ac_objext
16071 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16072   (eval $ac_compile) 2>conftest.er1
16073   ac_status=$?
16074   grep -v '^ *+' conftest.er1 >conftest.err
16075   rm -f conftest.er1
16076   cat conftest.err >&5
16077   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16078   (exit $ac_status); } &&
16079          { ac_try='test -z "$ac_c_werror_flag"
16080                          || test ! -s conftest.err'
16081   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16082   (eval $ac_try) 2>&5
16083   ac_status=$?
16084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16085   (exit $ac_status); }; } &&
16086          { ac_try='test -s conftest.$ac_objext'
16087   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16088   (eval $ac_try) 2>&5
16089   ac_status=$?
16090   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16091   (exit $ac_status); }; }; then
16092   fits_in_uint=0
16093 else
16094   echo "$as_me: failed program was:" >&5
16095 sed 's/^/| /' conftest.$ac_ext >&5
16096
16097 fi
16098 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16099     fi
16100     if test -z "$result"; then
16101       if test "$fits_in_uint" = 1; then
16102         result="$res_hi$res_lo"U
16103       else
16104         result="$res_hi$res_lo"UL
16105       fi
16106     else
16107             result='~(size_t)0'
16108     fi
16109   fi
16110   echo "$as_me:$LINENO: result: $result" >&5
16111 echo "${ECHO_T}$result" >&6
16112   if test "$result" != yes; then
16113
16114 cat >>confdefs.h <<_ACEOF
16115 #define SIZE_MAX $result
16116 _ACEOF
16117
16118   fi
16119
16120
16121
16122
16123
16124
16125
16126   if test $ac_cv_func_alloca_works = no; then
16127     :
16128   fi
16129
16130   # Define an additional variable used in the Makefile substitution.
16131   if test $ac_cv_working_alloca_h = yes; then
16132     cat >conftest.$ac_ext <<_ACEOF
16133 /* confdefs.h.  */
16134 _ACEOF
16135 cat confdefs.h >>conftest.$ac_ext
16136 cat >>conftest.$ac_ext <<_ACEOF
16137 /* end confdefs.h.  */
16138
16139 #if defined __GNUC__ || defined _AIX || defined _MSC_VER
16140         Need own alloca
16141 #endif
16142
16143 _ACEOF
16144 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16145   $EGREP "Need own alloca" >/dev/null 2>&1; then
16146
16147 cat >>confdefs.h <<\_ACEOF
16148 #define HAVE_ALLOCA 1
16149 _ACEOF
16150
16151        ALLOCA_H=alloca.h
16152 else
16153   ALLOCA_H=
16154 fi
16155 rm -f conftest*
16156
16157   else
16158     ALLOCA_H=alloca.h
16159   fi
16160
16161
16162
16163 cat >>confdefs.h <<\_ACEOF
16164 #define HAVE_ALLOCA_H 1
16165 _ACEOF
16166
16167
16168
16169
16170
16171
16172
16173
16174
16175
16176 for ac_func in atexit
16177 do
16178 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16179 echo "$as_me:$LINENO: checking for $ac_func" >&5
16180 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16181 if eval "test \"\${$as_ac_var+set}\" = set"; then
16182   echo $ECHO_N "(cached) $ECHO_C" >&6
16183 else
16184   cat >conftest.$ac_ext <<_ACEOF
16185 /* confdefs.h.  */
16186 _ACEOF
16187 cat confdefs.h >>conftest.$ac_ext
16188 cat >>conftest.$ac_ext <<_ACEOF
16189 /* end confdefs.h.  */
16190 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16191    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16192 #define $ac_func innocuous_$ac_func
16193
16194 /* System header to define __stub macros and hopefully few prototypes,
16195     which can conflict with char $ac_func (); below.
16196     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16197     <limits.h> exists even on freestanding compilers.  */
16198
16199 #ifdef __STDC__
16200 # include <limits.h>
16201 #else
16202 # include <assert.h>
16203 #endif
16204
16205 #undef $ac_func
16206
16207 /* Override any gcc2 internal prototype to avoid an error.  */
16208 #ifdef __cplusplus
16209 extern "C"
16210 {
16211 #endif
16212 /* We use char because int might match the return type of a gcc2
16213    builtin and then its argument prototype would still apply.  */
16214 char $ac_func ();
16215 /* The GNU C library defines this for functions which it implements
16216     to always fail with ENOSYS.  Some functions are actually named
16217     something starting with __ and the normal name is an alias.  */
16218 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16219 choke me
16220 #else
16221 char (*f) () = $ac_func;
16222 #endif
16223 #ifdef __cplusplus
16224 }
16225 #endif
16226
16227 int
16228 main ()
16229 {
16230 return f != $ac_func;
16231   ;
16232   return 0;
16233 }
16234 _ACEOF
16235 rm -f conftest.$ac_objext conftest$ac_exeext
16236 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16237   (eval $ac_link) 2>conftest.er1
16238   ac_status=$?
16239   grep -v '^ *+' conftest.er1 >conftest.err
16240   rm -f conftest.er1
16241   cat conftest.err >&5
16242   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16243   (exit $ac_status); } &&
16244          { ac_try='test -z "$ac_c_werror_flag"
16245                          || test ! -s conftest.err'
16246   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16247   (eval $ac_try) 2>&5
16248   ac_status=$?
16249   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16250   (exit $ac_status); }; } &&
16251          { ac_try='test -s conftest$ac_exeext'
16252   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16253   (eval $ac_try) 2>&5
16254   ac_status=$?
16255   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16256   (exit $ac_status); }; }; then
16257   eval "$as_ac_var=yes"
16258 else
16259   echo "$as_me: failed program was:" >&5
16260 sed 's/^/| /' conftest.$ac_ext >&5
16261
16262 eval "$as_ac_var=no"
16263 fi
16264 rm -f conftest.err conftest.$ac_objext \
16265       conftest$ac_exeext conftest.$ac_ext
16266 fi
16267 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16268 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16269 if test `eval echo '${'$as_ac_var'}'` = yes; then
16270   cat >>confdefs.h <<_ACEOF
16271 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16272 _ACEOF
16273
16274 else
16275   case $LIBOBJS in
16276     "$ac_func.$ac_objext"   | \
16277   *" $ac_func.$ac_objext"   | \
16278     "$ac_func.$ac_objext "* | \
16279   *" $ac_func.$ac_objext "* ) ;;
16280   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
16281 esac
16282
16283 fi
16284 done
16285
16286
16287   if test $ac_cv_func_atexit = no; then
16288
16289   :
16290
16291   fi
16292
16293
16294
16295   echo "$as_me:$LINENO: checking whether this system has a definition of PATH_MAX" >&5
16296 echo $ECHO_N "checking whether this system has a definition of PATH_MAX... $ECHO_C" >&6
16297 if test "${gl_have_path_max_definition+set}" = set; then
16298   echo $ECHO_N "(cached) $ECHO_C" >&6
16299 else
16300   cat >conftest.$ac_ext <<_ACEOF
16301 /* confdefs.h.  */
16302 _ACEOF
16303 cat confdefs.h >>conftest.$ac_ext
16304 cat >>conftest.$ac_ext <<_ACEOF
16305 /* end confdefs.h.  */
16306 #include <unistd.h>
16307 #include <limits.h>
16308 #ifdef PATH_MAX
16309 have_path_max_definition
16310 #endif
16311 _ACEOF
16312 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16313   $EGREP "have_path_max_definition" >/dev/null 2>&1; then
16314   gl_have_path_max_definition=yes
16315 else
16316   gl_have_path_max_definition=no
16317 fi
16318 rm -f conftest*
16319
16320 fi
16321 echo "$as_me:$LINENO: result: $gl_have_path_max_definition" >&5
16322 echo "${ECHO_T}$gl_have_path_max_definition" >&6
16323
16324   if test $gl_have_path_max_definition; then
16325     case $LIBOBJS in
16326     "chdir-long.$ac_objext"   | \
16327   *" chdir-long.$ac_objext"   | \
16328     "chdir-long.$ac_objext "* | \
16329   *" chdir-long.$ac_objext "* ) ;;
16330   *) LIBOBJS="$LIBOBJS chdir-long.$ac_objext" ;;
16331 esac
16332
16333
16334
16335
16336
16337   # Define two additional variables used in the Makefile substitution.
16338
16339   if test "$ac_cv_header_stdbool_h" = yes; then
16340     STDBOOL_H=''
16341   else
16342     STDBOOL_H='stdbool.h'
16343   fi
16344
16345
16346   if test "$ac_cv_type__Bool" = yes; then
16347     HAVE__BOOL=1
16348   else
16349     HAVE__BOOL=0
16350   fi
16351
16352
16353
16354
16355
16356
16357
16358
16359 for ac_func in mempcpy
16360 do
16361 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16362 echo "$as_me:$LINENO: checking for $ac_func" >&5
16363 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16364 if eval "test \"\${$as_ac_var+set}\" = set"; then
16365   echo $ECHO_N "(cached) $ECHO_C" >&6
16366 else
16367   cat >conftest.$ac_ext <<_ACEOF
16368 /* confdefs.h.  */
16369 _ACEOF
16370 cat confdefs.h >>conftest.$ac_ext
16371 cat >>conftest.$ac_ext <<_ACEOF
16372 /* end confdefs.h.  */
16373 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16374    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16375 #define $ac_func innocuous_$ac_func
16376
16377 /* System header to define __stub macros and hopefully few prototypes,
16378     which can conflict with char $ac_func (); below.
16379     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16380     <limits.h> exists even on freestanding compilers.  */
16381
16382 #ifdef __STDC__
16383 # include <limits.h>
16384 #else
16385 # include <assert.h>
16386 #endif
16387
16388 #undef $ac_func
16389
16390 /* Override any gcc2 internal prototype to avoid an error.  */
16391 #ifdef __cplusplus
16392 extern "C"
16393 {
16394 #endif
16395 /* We use char because int might match the return type of a gcc2
16396    builtin and then its argument prototype would still apply.  */
16397 char $ac_func ();
16398 /* The GNU C library defines this for functions which it implements
16399     to always fail with ENOSYS.  Some functions are actually named
16400     something starting with __ and the normal name is an alias.  */
16401 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16402 choke me
16403 #else
16404 char (*f) () = $ac_func;
16405 #endif
16406 #ifdef __cplusplus
16407 }
16408 #endif
16409
16410 int
16411 main ()
16412 {
16413 return f != $ac_func;
16414   ;
16415   return 0;
16416 }
16417 _ACEOF
16418 rm -f conftest.$ac_objext conftest$ac_exeext
16419 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16420   (eval $ac_link) 2>conftest.er1
16421   ac_status=$?
16422   grep -v '^ *+' conftest.er1 >conftest.err
16423   rm -f conftest.er1
16424   cat conftest.err >&5
16425   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16426   (exit $ac_status); } &&
16427          { ac_try='test -z "$ac_c_werror_flag"
16428                          || test ! -s conftest.err'
16429   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16430   (eval $ac_try) 2>&5
16431   ac_status=$?
16432   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16433   (exit $ac_status); }; } &&
16434          { ac_try='test -s conftest$ac_exeext'
16435   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16436   (eval $ac_try) 2>&5
16437   ac_status=$?
16438   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16439   (exit $ac_status); }; }; then
16440   eval "$as_ac_var=yes"
16441 else
16442   echo "$as_me: failed program was:" >&5
16443 sed 's/^/| /' conftest.$ac_ext >&5
16444
16445 eval "$as_ac_var=no"
16446 fi
16447 rm -f conftest.err conftest.$ac_objext \
16448       conftest$ac_exeext conftest.$ac_ext
16449 fi
16450 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16451 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16452 if test `eval echo '${'$as_ac_var'}'` = yes; then
16453   cat >>confdefs.h <<_ACEOF
16454 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16455 _ACEOF
16456
16457 else
16458   case $LIBOBJS in
16459     "$ac_func.$ac_objext"   | \
16460   *" $ac_func.$ac_objext"   | \
16461     "$ac_func.$ac_objext "* | \
16462   *" $ac_func.$ac_objext "* ) ;;
16463   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
16464 esac
16465
16466 fi
16467 done
16468
16469
16470   if test $ac_cv_func_mempcpy = no; then
16471
16472   :
16473
16474   fi
16475
16476
16477
16478
16479
16480 for ac_func in openat
16481 do
16482 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16483 echo "$as_me:$LINENO: checking for $ac_func" >&5
16484 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16485 if eval "test \"\${$as_ac_var+set}\" = set"; then
16486   echo $ECHO_N "(cached) $ECHO_C" >&6
16487 else
16488   cat >conftest.$ac_ext <<_ACEOF
16489 /* confdefs.h.  */
16490 _ACEOF
16491 cat confdefs.h >>conftest.$ac_ext
16492 cat >>conftest.$ac_ext <<_ACEOF
16493 /* end confdefs.h.  */
16494 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16495    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16496 #define $ac_func innocuous_$ac_func
16497
16498 /* System header to define __stub macros and hopefully few prototypes,
16499     which can conflict with char $ac_func (); below.
16500     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16501     <limits.h> exists even on freestanding compilers.  */
16502
16503 #ifdef __STDC__
16504 # include <limits.h>
16505 #else
16506 # include <assert.h>
16507 #endif
16508
16509 #undef $ac_func
16510
16511 /* Override any gcc2 internal prototype to avoid an error.  */
16512 #ifdef __cplusplus
16513 extern "C"
16514 {
16515 #endif
16516 /* We use char because int might match the return type of a gcc2
16517    builtin and then its argument prototype would still apply.  */
16518 char $ac_func ();
16519 /* The GNU C library defines this for functions which it implements
16520     to always fail with ENOSYS.  Some functions are actually named
16521     something starting with __ and the normal name is an alias.  */
16522 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16523 choke me
16524 #else
16525 char (*f) () = $ac_func;
16526 #endif
16527 #ifdef __cplusplus
16528 }
16529 #endif
16530
16531 int
16532 main ()
16533 {
16534 return f != $ac_func;
16535   ;
16536   return 0;
16537 }
16538 _ACEOF
16539 rm -f conftest.$ac_objext conftest$ac_exeext
16540 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16541   (eval $ac_link) 2>conftest.er1
16542   ac_status=$?
16543   grep -v '^ *+' conftest.er1 >conftest.err
16544   rm -f conftest.er1
16545   cat conftest.err >&5
16546   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16547   (exit $ac_status); } &&
16548          { ac_try='test -z "$ac_c_werror_flag"
16549                          || test ! -s conftest.err'
16550   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16551   (eval $ac_try) 2>&5
16552   ac_status=$?
16553   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16554   (exit $ac_status); }; } &&
16555          { ac_try='test -s conftest$ac_exeext'
16556   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16557   (eval $ac_try) 2>&5
16558   ac_status=$?
16559   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16560   (exit $ac_status); }; }; then
16561   eval "$as_ac_var=yes"
16562 else
16563   echo "$as_me: failed program was:" >&5
16564 sed 's/^/| /' conftest.$ac_ext >&5
16565
16566 eval "$as_ac_var=no"
16567 fi
16568 rm -f conftest.err conftest.$ac_objext \
16569       conftest$ac_exeext conftest.$ac_ext
16570 fi
16571 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16572 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16573 if test `eval echo '${'$as_ac_var'}'` = yes; then
16574   cat >>confdefs.h <<_ACEOF
16575 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16576 _ACEOF
16577
16578 else
16579   case $LIBOBJS in
16580     "$ac_func.$ac_objext"   | \
16581   *" $ac_func.$ac_objext"   | \
16582     "$ac_func.$ac_objext "* | \
16583   *" $ac_func.$ac_objext "* ) ;;
16584   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
16585 esac
16586
16587 fi
16588 done
16589
16590
16591   case $ac_cv_func_openat in
16592   yes) ;;
16593   *)
16594
16595 cat >>confdefs.h <<\_ACEOF
16596 #define __OPENAT_PREFIX rpl_
16597 _ACEOF
16598
16599
16600
16601 ;;
16602   esac
16603
16604
16605
16606
16607
16608
16609
16610   :
16611
16612
16613
16614
16615
16616
16617
16618 for ac_func in memrchr
16619 do
16620 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16621 echo "$as_me:$LINENO: checking for $ac_func" >&5
16622 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16623 if eval "test \"\${$as_ac_var+set}\" = set"; then
16624   echo $ECHO_N "(cached) $ECHO_C" >&6
16625 else
16626   cat >conftest.$ac_ext <<_ACEOF
16627 /* confdefs.h.  */
16628 _ACEOF
16629 cat confdefs.h >>conftest.$ac_ext
16630 cat >>conftest.$ac_ext <<_ACEOF
16631 /* end confdefs.h.  */
16632 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16633    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16634 #define $ac_func innocuous_$ac_func
16635
16636 /* System header to define __stub macros and hopefully few prototypes,
16637     which can conflict with char $ac_func (); below.
16638     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16639     <limits.h> exists even on freestanding compilers.  */
16640
16641 #ifdef __STDC__
16642 # include <limits.h>
16643 #else
16644 # include <assert.h>
16645 #endif
16646
16647 #undef $ac_func
16648
16649 /* Override any gcc2 internal prototype to avoid an error.  */
16650 #ifdef __cplusplus
16651 extern "C"
16652 {
16653 #endif
16654 /* We use char because int might match the return type of a gcc2
16655    builtin and then its argument prototype would still apply.  */
16656 char $ac_func ();
16657 /* The GNU C library defines this for functions which it implements
16658     to always fail with ENOSYS.  Some functions are actually named
16659     something starting with __ and the normal name is an alias.  */
16660 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16661 choke me
16662 #else
16663 char (*f) () = $ac_func;
16664 #endif
16665 #ifdef __cplusplus
16666 }
16667 #endif
16668
16669 int
16670 main ()
16671 {
16672 return f != $ac_func;
16673   ;
16674   return 0;
16675 }
16676 _ACEOF
16677 rm -f conftest.$ac_objext conftest$ac_exeext
16678 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16679   (eval $ac_link) 2>conftest.er1
16680   ac_status=$?
16681   grep -v '^ *+' conftest.er1 >conftest.err
16682   rm -f conftest.er1
16683   cat conftest.err >&5
16684   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16685   (exit $ac_status); } &&
16686          { ac_try='test -z "$ac_c_werror_flag"
16687                          || test ! -s conftest.err'
16688   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16689   (eval $ac_try) 2>&5
16690   ac_status=$?
16691   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16692   (exit $ac_status); }; } &&
16693          { ac_try='test -s conftest$ac_exeext'
16694   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16695   (eval $ac_try) 2>&5
16696   ac_status=$?
16697   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16698   (exit $ac_status); }; }; then
16699   eval "$as_ac_var=yes"
16700 else
16701   echo "$as_me: failed program was:" >&5
16702 sed 's/^/| /' conftest.$ac_ext >&5
16703
16704 eval "$as_ac_var=no"
16705 fi
16706 rm -f conftest.err conftest.$ac_objext \
16707       conftest$ac_exeext conftest.$ac_ext
16708 fi
16709 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16710 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16711 if test `eval echo '${'$as_ac_var'}'` = yes; then
16712   cat >>confdefs.h <<_ACEOF
16713 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16714 _ACEOF
16715
16716 else
16717   case $LIBOBJS in
16718     "$ac_func.$ac_objext"   | \
16719   *" $ac_func.$ac_objext"   | \
16720     "$ac_func.$ac_objext "* | \
16721   *" $ac_func.$ac_objext "* ) ;;
16722   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
16723 esac
16724
16725 fi
16726 done
16727
16728
16729   if test $ac_cv_func_memrchr = no; then
16730     :
16731   fi
16732
16733
16734   fi
16735
16736
16737
16738   case $LIBOBJS in
16739     "closeout.$ac_objext"   | \
16740   *" closeout.$ac_objext"   | \
16741     "closeout.$ac_objext "* | \
16742   *" closeout.$ac_objext "* ) ;;
16743   *) LIBOBJS="$LIBOBJS closeout.$ac_objext" ;;
16744 esac
16745
16746
16747     :
16748
16749
16750
16751   case $LIBOBJS in
16752     "dirname.$ac_objext"   | \
16753   *" dirname.$ac_objext"   | \
16754     "dirname.$ac_objext "* | \
16755   *" dirname.$ac_objext "* ) ;;
16756   *) LIBOBJS="$LIBOBJS dirname.$ac_objext" ;;
16757 esac
16758
16759
16760
16761
16762
16763
16764
16765 for ac_func in dup2
16766 do
16767 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16768 echo "$as_me:$LINENO: checking for $ac_func" >&5
16769 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16770 if eval "test \"\${$as_ac_var+set}\" = set"; then
16771   echo $ECHO_N "(cached) $ECHO_C" >&6
16772 else
16773   cat >conftest.$ac_ext <<_ACEOF
16774 /* confdefs.h.  */
16775 _ACEOF
16776 cat confdefs.h >>conftest.$ac_ext
16777 cat >>conftest.$ac_ext <<_ACEOF
16778 /* end confdefs.h.  */
16779 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16780    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16781 #define $ac_func innocuous_$ac_func
16782
16783 /* System header to define __stub macros and hopefully few prototypes,
16784     which can conflict with char $ac_func (); below.
16785     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16786     <limits.h> exists even on freestanding compilers.  */
16787
16788 #ifdef __STDC__
16789 # include <limits.h>
16790 #else
16791 # include <assert.h>
16792 #endif
16793
16794 #undef $ac_func
16795
16796 /* Override any gcc2 internal prototype to avoid an error.  */
16797 #ifdef __cplusplus
16798 extern "C"
16799 {
16800 #endif
16801 /* We use char because int might match the return type of a gcc2
16802    builtin and then its argument prototype would still apply.  */
16803 char $ac_func ();
16804 /* The GNU C library defines this for functions which it implements
16805     to always fail with ENOSYS.  Some functions are actually named
16806     something starting with __ and the normal name is an alias.  */
16807 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16808 choke me
16809 #else
16810 char (*f) () = $ac_func;
16811 #endif
16812 #ifdef __cplusplus
16813 }
16814 #endif
16815
16816 int
16817 main ()
16818 {
16819 return f != $ac_func;
16820   ;
16821   return 0;
16822 }
16823 _ACEOF
16824 rm -f conftest.$ac_objext conftest$ac_exeext
16825 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16826   (eval $ac_link) 2>conftest.er1
16827   ac_status=$?
16828   grep -v '^ *+' conftest.er1 >conftest.err
16829   rm -f conftest.er1
16830   cat conftest.err >&5
16831   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16832   (exit $ac_status); } &&
16833          { ac_try='test -z "$ac_c_werror_flag"
16834                          || test ! -s conftest.err'
16835   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16836   (eval $ac_try) 2>&5
16837   ac_status=$?
16838   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16839   (exit $ac_status); }; } &&
16840          { ac_try='test -s conftest$ac_exeext'
16841   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16842   (eval $ac_try) 2>&5
16843   ac_status=$?
16844   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16845   (exit $ac_status); }; }; then
16846   eval "$as_ac_var=yes"
16847 else
16848   echo "$as_me: failed program was:" >&5
16849 sed 's/^/| /' conftest.$ac_ext >&5
16850
16851 eval "$as_ac_var=no"
16852 fi
16853 rm -f conftest.err conftest.$ac_objext \
16854       conftest$ac_exeext conftest.$ac_ext
16855 fi
16856 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16857 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16858 if test `eval echo '${'$as_ac_var'}'` = yes; then
16859   cat >>confdefs.h <<_ACEOF
16860 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16861 _ACEOF
16862
16863 else
16864   case $LIBOBJS in
16865     "$ac_func.$ac_objext"   | \
16866   *" $ac_func.$ac_objext"   | \
16867     "$ac_func.$ac_objext "* | \
16868   *" $ac_func.$ac_objext "* ) ;;
16869   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
16870 esac
16871
16872 fi
16873 done
16874
16875
16876   if test $ac_cv_func_dup2 = no; then
16877
16878
16879   :
16880
16881
16882
16883
16884
16885
16886
16887
16888
16889   fi
16890
16891
16892
16893
16894   :
16895
16896
16897
16898
16899   case $LIBOBJS in
16900     "exitfail.$ac_objext"   | \
16901   *" exitfail.$ac_objext"   | \
16902     "exitfail.$ac_objext "* | \
16903   *" exitfail.$ac_objext "* ) ;;
16904   *) LIBOBJS="$LIBOBJS exitfail.$ac_objext" ;;
16905 esac
16906
16907
16908     :
16909
16910     # No macro. You should also use one of fnmatch-posix or fnmatch-gnu.
16911
16912   FNMATCH_H=
16913   echo "$as_me:$LINENO: checking for working POSIX fnmatch" >&5
16914 echo $ECHO_N "checking for working POSIX fnmatch... $ECHO_C" >&6
16915 if test "${ac_cv_func_fnmatch_posix+set}" = set; then
16916   echo $ECHO_N "(cached) $ECHO_C" >&6
16917 else
16918               if test "$cross_compiling" = yes; then
16919   ac_cv_func_fnmatch_posix=cross
16920 else
16921   cat >conftest.$ac_ext <<_ACEOF
16922 /* confdefs.h.  */
16923 _ACEOF
16924 cat confdefs.h >>conftest.$ac_ext
16925 cat >>conftest.$ac_ext <<_ACEOF
16926 /* end confdefs.h.  */
16927
16928 #          include <stdlib.h>
16929 #          include <fnmatch.h>
16930 #          define y(a, b, c) (fnmatch (a, b, c) == 0)
16931 #          define n(a, b, c) (fnmatch (a, b, c) == FNM_NOMATCH)
16932
16933 int
16934 main ()
16935 {
16936 exit
16937            (!(y ("a*", "abc", 0)
16938               && n ("d*/*1", "d/s/1", FNM_PATHNAME)
16939               && y ("a\\\\bc", "abc", 0)
16940               && n ("a\\\\bc", "abc", FNM_NOESCAPE)
16941               && y ("*x", ".x", 0)
16942               && n ("*x", ".x", FNM_PERIOD)
16943               && 1));
16944   ;
16945   return 0;
16946 }
16947 _ACEOF
16948 rm -f conftest$ac_exeext
16949 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16950   (eval $ac_link) 2>&5
16951   ac_status=$?
16952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16953   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16954   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16955   (eval $ac_try) 2>&5
16956   ac_status=$?
16957   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16958   (exit $ac_status); }; }; then
16959   ac_cv_func_fnmatch_posix=yes
16960 else
16961   echo "$as_me: program exited with status $ac_status" >&5
16962 echo "$as_me: failed program was:" >&5
16963 sed 's/^/| /' conftest.$ac_ext >&5
16964
16965 ( exit $ac_status )
16966 ac_cv_func_fnmatch_posix=no
16967 fi
16968 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16969 fi
16970 fi
16971 echo "$as_me:$LINENO: result: $ac_cv_func_fnmatch_posix" >&5
16972 echo "${ECHO_T}$ac_cv_func_fnmatch_posix" >&6
16973 if test $ac_cv_func_fnmatch_posix = yes; then
16974   rm -f lib/fnmatch.h
16975 else
16976   echo "$as_me:$LINENO: checking whether getenv is declared" >&5
16977 echo $ECHO_N "checking whether getenv is declared... $ECHO_C" >&6
16978 if test "${ac_cv_have_decl_getenv+set}" = set; then
16979   echo $ECHO_N "(cached) $ECHO_C" >&6
16980 else
16981   cat >conftest.$ac_ext <<_ACEOF
16982 /* confdefs.h.  */
16983 _ACEOF
16984 cat confdefs.h >>conftest.$ac_ext
16985 cat >>conftest.$ac_ext <<_ACEOF
16986 /* end confdefs.h.  */
16987 $ac_includes_default
16988 int
16989 main ()
16990 {
16991 #ifndef getenv
16992   char *p = (char *) getenv;
16993 #endif
16994
16995   ;
16996   return 0;
16997 }
16998 _ACEOF
16999 rm -f conftest.$ac_objext
17000 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17001   (eval $ac_compile) 2>conftest.er1
17002   ac_status=$?
17003   grep -v '^ *+' conftest.er1 >conftest.err
17004   rm -f conftest.er1
17005   cat conftest.err >&5
17006   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17007   (exit $ac_status); } &&
17008          { ac_try='test -z "$ac_c_werror_flag"
17009                          || test ! -s conftest.err'
17010   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17011   (eval $ac_try) 2>&5
17012   ac_status=$?
17013   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17014   (exit $ac_status); }; } &&
17015          { ac_try='test -s conftest.$ac_objext'
17016   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17017   (eval $ac_try) 2>&5
17018   ac_status=$?
17019   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17020   (exit $ac_status); }; }; then
17021   ac_cv_have_decl_getenv=yes
17022 else
17023   echo "$as_me: failed program was:" >&5
17024 sed 's/^/| /' conftest.$ac_ext >&5
17025
17026 ac_cv_have_decl_getenv=no
17027 fi
17028 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17029 fi
17030 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getenv" >&5
17031 echo "${ECHO_T}$ac_cv_have_decl_getenv" >&6
17032 if test $ac_cv_have_decl_getenv = yes; then
17033
17034 cat >>confdefs.h <<_ACEOF
17035 #define HAVE_DECL_GETENV 1
17036 _ACEOF
17037
17038
17039 else
17040   cat >>confdefs.h <<_ACEOF
17041 #define HAVE_DECL_GETENV 0
17042 _ACEOF
17043
17044
17045 fi
17046
17047
17048
17049
17050
17051
17052
17053
17054 for ac_func in btowc mbsrtowcs mempcpy wmemchr wmemcpy wmempcpy
17055 do
17056 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17057 echo "$as_me:$LINENO: checking for $ac_func" >&5
17058 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17059 if eval "test \"\${$as_ac_var+set}\" = set"; then
17060   echo $ECHO_N "(cached) $ECHO_C" >&6
17061 else
17062   cat >conftest.$ac_ext <<_ACEOF
17063 /* confdefs.h.  */
17064 _ACEOF
17065 cat confdefs.h >>conftest.$ac_ext
17066 cat >>conftest.$ac_ext <<_ACEOF
17067 /* end confdefs.h.  */
17068 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17069    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17070 #define $ac_func innocuous_$ac_func
17071
17072 /* System header to define __stub macros and hopefully few prototypes,
17073     which can conflict with char $ac_func (); below.
17074     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17075     <limits.h> exists even on freestanding compilers.  */
17076
17077 #ifdef __STDC__
17078 # include <limits.h>
17079 #else
17080 # include <assert.h>
17081 #endif
17082
17083 #undef $ac_func
17084
17085 /* Override any gcc2 internal prototype to avoid an error.  */
17086 #ifdef __cplusplus
17087 extern "C"
17088 {
17089 #endif
17090 /* We use char because int might match the return type of a gcc2
17091    builtin and then its argument prototype would still apply.  */
17092 char $ac_func ();
17093 /* The GNU C library defines this for functions which it implements
17094     to always fail with ENOSYS.  Some functions are actually named
17095     something starting with __ and the normal name is an alias.  */
17096 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17097 choke me
17098 #else
17099 char (*f) () = $ac_func;
17100 #endif
17101 #ifdef __cplusplus
17102 }
17103 #endif
17104
17105 int
17106 main ()
17107 {
17108 return f != $ac_func;
17109   ;
17110   return 0;
17111 }
17112 _ACEOF
17113 rm -f conftest.$ac_objext conftest$ac_exeext
17114 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17115   (eval $ac_link) 2>conftest.er1
17116   ac_status=$?
17117   grep -v '^ *+' conftest.er1 >conftest.err
17118   rm -f conftest.er1
17119   cat conftest.err >&5
17120   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17121   (exit $ac_status); } &&
17122          { ac_try='test -z "$ac_c_werror_flag"
17123                          || test ! -s conftest.err'
17124   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17125   (eval $ac_try) 2>&5
17126   ac_status=$?
17127   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17128   (exit $ac_status); }; } &&
17129          { ac_try='test -s conftest$ac_exeext'
17130   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17131   (eval $ac_try) 2>&5
17132   ac_status=$?
17133   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17134   (exit $ac_status); }; }; then
17135   eval "$as_ac_var=yes"
17136 else
17137   echo "$as_me: failed program was:" >&5
17138 sed 's/^/| /' conftest.$ac_ext >&5
17139
17140 eval "$as_ac_var=no"
17141 fi
17142 rm -f conftest.err conftest.$ac_objext \
17143       conftest$ac_exeext conftest.$ac_ext
17144 fi
17145 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17146 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17147 if test `eval echo '${'$as_ac_var'}'` = yes; then
17148   cat >>confdefs.h <<_ACEOF
17149 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17150 _ACEOF
17151
17152 fi
17153 done
17154
17155
17156
17157 for ac_header in wchar.h wctype.h
17158 do
17159 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17160 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17161   echo "$as_me:$LINENO: checking for $ac_header" >&5
17162 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17163 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17164   echo $ECHO_N "(cached) $ECHO_C" >&6
17165 fi
17166 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17167 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17168 else
17169   # Is the header compilable?
17170 echo "$as_me:$LINENO: checking $ac_header usability" >&5
17171 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17172 cat >conftest.$ac_ext <<_ACEOF
17173 /* confdefs.h.  */
17174 _ACEOF
17175 cat confdefs.h >>conftest.$ac_ext
17176 cat >>conftest.$ac_ext <<_ACEOF
17177 /* end confdefs.h.  */
17178 $ac_includes_default
17179 #include <$ac_header>
17180 _ACEOF
17181 rm -f conftest.$ac_objext
17182 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17183   (eval $ac_compile) 2>conftest.er1
17184   ac_status=$?
17185   grep -v '^ *+' conftest.er1 >conftest.err
17186   rm -f conftest.er1
17187   cat conftest.err >&5
17188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17189   (exit $ac_status); } &&
17190          { ac_try='test -z "$ac_c_werror_flag"
17191                          || test ! -s conftest.err'
17192   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17193   (eval $ac_try) 2>&5
17194   ac_status=$?
17195   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17196   (exit $ac_status); }; } &&
17197          { ac_try='test -s conftest.$ac_objext'
17198   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17199   (eval $ac_try) 2>&5
17200   ac_status=$?
17201   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17202   (exit $ac_status); }; }; then
17203   ac_header_compiler=yes
17204 else
17205   echo "$as_me: failed program was:" >&5
17206 sed 's/^/| /' conftest.$ac_ext >&5
17207
17208 ac_header_compiler=no
17209 fi
17210 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17211 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17212 echo "${ECHO_T}$ac_header_compiler" >&6
17213
17214 # Is the header present?
17215 echo "$as_me:$LINENO: checking $ac_header presence" >&5
17216 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17217 cat >conftest.$ac_ext <<_ACEOF
17218 /* confdefs.h.  */
17219 _ACEOF
17220 cat confdefs.h >>conftest.$ac_ext
17221 cat >>conftest.$ac_ext <<_ACEOF
17222 /* end confdefs.h.  */
17223 #include <$ac_header>
17224 _ACEOF
17225 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17226   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17227   ac_status=$?
17228   grep -v '^ *+' conftest.er1 >conftest.err
17229   rm -f conftest.er1
17230   cat conftest.err >&5
17231   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17232   (exit $ac_status); } >/dev/null; then
17233   if test -s conftest.err; then
17234     ac_cpp_err=$ac_c_preproc_warn_flag
17235     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17236   else
17237     ac_cpp_err=
17238   fi
17239 else
17240   ac_cpp_err=yes
17241 fi
17242 if test -z "$ac_cpp_err"; then
17243   ac_header_preproc=yes
17244 else
17245   echo "$as_me: failed program was:" >&5
17246 sed 's/^/| /' conftest.$ac_ext >&5
17247
17248   ac_header_preproc=no
17249 fi
17250 rm -f conftest.err conftest.$ac_ext
17251 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17252 echo "${ECHO_T}$ac_header_preproc" >&6
17253
17254 # So?  What about this header?
17255 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17256   yes:no: )
17257     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17258 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17259     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17260 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17261     ac_header_preproc=yes
17262     ;;
17263   no:yes:* )
17264     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17265 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17266     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
17267 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
17268     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17269 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17270     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
17271 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
17272     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17273 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17274     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17275 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17276     (
17277       cat <<\_ASBOX
17278 ## ------------------------------ ##
17279 ## Report this to bug-cvs@gnu.org ##
17280 ## ------------------------------ ##
17281 _ASBOX
17282     ) |
17283       sed "s/^/$as_me: WARNING:     /" >&2
17284     ;;
17285 esac
17286 echo "$as_me:$LINENO: checking for $ac_header" >&5
17287 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17288 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17289   echo $ECHO_N "(cached) $ECHO_C" >&6
17290 else
17291   eval "$as_ac_Header=\$ac_header_preproc"
17292 fi
17293 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17294 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17295
17296 fi
17297 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17298   cat >>confdefs.h <<_ACEOF
17299 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17300 _ACEOF
17301
17302 fi
17303
17304 done
17305
17306 case $LIBOBJS in
17307     "fnmatch.$ac_objext"   | \
17308   *" fnmatch.$ac_objext"   | \
17309     "fnmatch.$ac_objext "* | \
17310   *" fnmatch.$ac_objext "* ) ;;
17311   *) LIBOBJS="$LIBOBJS fnmatch.$ac_objext" ;;
17312 esac
17313
17314 FNMATCH_H=fnmatch.h
17315
17316 fi
17317
17318
17319   if test $ac_cv_func_fnmatch_posix != yes; then
17320
17321 cat >>confdefs.h <<\_ACEOF
17322 #define fnmatch posix_fnmatch
17323 _ACEOF
17324
17325   fi
17326
17327
17328
17329
17330
17331
17332 for ac_header in stdio_ext.h
17333 do
17334 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17335 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17336   echo "$as_me:$LINENO: checking for $ac_header" >&5
17337 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17338 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17339   echo $ECHO_N "(cached) $ECHO_C" >&6
17340 fi
17341 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17342 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17343 else
17344   # Is the header compilable?
17345 echo "$as_me:$LINENO: checking $ac_header usability" >&5
17346 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17347 cat >conftest.$ac_ext <<_ACEOF
17348 /* confdefs.h.  */
17349 _ACEOF
17350 cat confdefs.h >>conftest.$ac_ext
17351 cat >>conftest.$ac_ext <<_ACEOF
17352 /* end confdefs.h.  */
17353 $ac_includes_default
17354 #include <$ac_header>
17355 _ACEOF
17356 rm -f conftest.$ac_objext
17357 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17358   (eval $ac_compile) 2>conftest.er1
17359   ac_status=$?
17360   grep -v '^ *+' conftest.er1 >conftest.err
17361   rm -f conftest.er1
17362   cat conftest.err >&5
17363   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17364   (exit $ac_status); } &&
17365          { ac_try='test -z "$ac_c_werror_flag"
17366                          || test ! -s conftest.err'
17367   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17368   (eval $ac_try) 2>&5
17369   ac_status=$?
17370   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17371   (exit $ac_status); }; } &&
17372          { ac_try='test -s conftest.$ac_objext'
17373   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17374   (eval $ac_try) 2>&5
17375   ac_status=$?
17376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17377   (exit $ac_status); }; }; then
17378   ac_header_compiler=yes
17379 else
17380   echo "$as_me: failed program was:" >&5
17381 sed 's/^/| /' conftest.$ac_ext >&5
17382
17383 ac_header_compiler=no
17384 fi
17385 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17386 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17387 echo "${ECHO_T}$ac_header_compiler" >&6
17388
17389 # Is the header present?
17390 echo "$as_me:$LINENO: checking $ac_header presence" >&5
17391 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17392 cat >conftest.$ac_ext <<_ACEOF
17393 /* confdefs.h.  */
17394 _ACEOF
17395 cat confdefs.h >>conftest.$ac_ext
17396 cat >>conftest.$ac_ext <<_ACEOF
17397 /* end confdefs.h.  */
17398 #include <$ac_header>
17399 _ACEOF
17400 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17401   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17402   ac_status=$?
17403   grep -v '^ *+' conftest.er1 >conftest.err
17404   rm -f conftest.er1
17405   cat conftest.err >&5
17406   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17407   (exit $ac_status); } >/dev/null; then
17408   if test -s conftest.err; then
17409     ac_cpp_err=$ac_c_preproc_warn_flag
17410     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17411   else
17412     ac_cpp_err=
17413   fi
17414 else
17415   ac_cpp_err=yes
17416 fi
17417 if test -z "$ac_cpp_err"; then
17418   ac_header_preproc=yes
17419 else
17420   echo "$as_me: failed program was:" >&5
17421 sed 's/^/| /' conftest.$ac_ext >&5
17422
17423   ac_header_preproc=no
17424 fi
17425 rm -f conftest.err conftest.$ac_ext
17426 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17427 echo "${ECHO_T}$ac_header_preproc" >&6
17428
17429 # So?  What about this header?
17430 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17431   yes:no: )
17432     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17433 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17434     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17435 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17436     ac_header_preproc=yes
17437     ;;
17438   no:yes:* )
17439     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17440 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17441     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
17442 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
17443     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17444 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17445     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
17446 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
17447     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17448 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17449     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17450 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17451     (
17452       cat <<\_ASBOX
17453 ## ------------------------------ ##
17454 ## Report this to bug-cvs@gnu.org ##
17455 ## ------------------------------ ##
17456 _ASBOX
17457     ) |
17458       sed "s/^/$as_me: WARNING:     /" >&2
17459     ;;
17460 esac
17461 echo "$as_me:$LINENO: checking for $ac_header" >&5
17462 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17463 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17464   echo $ECHO_N "(cached) $ECHO_C" >&6
17465 else
17466   eval "$as_ac_Header=\$ac_header_preproc"
17467 fi
17468 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17469 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17470
17471 fi
17472 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17473   cat >>confdefs.h <<_ACEOF
17474 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17475 _ACEOF
17476
17477 fi
17478
17479 done
17480
17481
17482 for ac_func in __fpending
17483 do
17484 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17485 echo "$as_me:$LINENO: checking for $ac_func" >&5
17486 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17487 if eval "test \"\${$as_ac_var+set}\" = set"; then
17488   echo $ECHO_N "(cached) $ECHO_C" >&6
17489 else
17490   cat >conftest.$ac_ext <<_ACEOF
17491 /* confdefs.h.  */
17492 _ACEOF
17493 cat confdefs.h >>conftest.$ac_ext
17494 cat >>conftest.$ac_ext <<_ACEOF
17495 /* end confdefs.h.  */
17496 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17497    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17498 #define $ac_func innocuous_$ac_func
17499
17500 /* System header to define __stub macros and hopefully few prototypes,
17501     which can conflict with char $ac_func (); below.
17502     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17503     <limits.h> exists even on freestanding compilers.  */
17504
17505 #ifdef __STDC__
17506 # include <limits.h>
17507 #else
17508 # include <assert.h>
17509 #endif
17510
17511 #undef $ac_func
17512
17513 /* Override any gcc2 internal prototype to avoid an error.  */
17514 #ifdef __cplusplus
17515 extern "C"
17516 {
17517 #endif
17518 /* We use char because int might match the return type of a gcc2
17519    builtin and then its argument prototype would still apply.  */
17520 char $ac_func ();
17521 /* The GNU C library defines this for functions which it implements
17522     to always fail with ENOSYS.  Some functions are actually named
17523     something starting with __ and the normal name is an alias.  */
17524 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17525 choke me
17526 #else
17527 char (*f) () = $ac_func;
17528 #endif
17529 #ifdef __cplusplus
17530 }
17531 #endif
17532
17533 int
17534 main ()
17535 {
17536 return f != $ac_func;
17537   ;
17538   return 0;
17539 }
17540 _ACEOF
17541 rm -f conftest.$ac_objext conftest$ac_exeext
17542 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17543   (eval $ac_link) 2>conftest.er1
17544   ac_status=$?
17545   grep -v '^ *+' conftest.er1 >conftest.err
17546   rm -f conftest.er1
17547   cat conftest.err >&5
17548   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17549   (exit $ac_status); } &&
17550          { ac_try='test -z "$ac_c_werror_flag"
17551                          || test ! -s conftest.err'
17552   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17553   (eval $ac_try) 2>&5
17554   ac_status=$?
17555   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17556   (exit $ac_status); }; } &&
17557          { ac_try='test -s conftest$ac_exeext'
17558   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17559   (eval $ac_try) 2>&5
17560   ac_status=$?
17561   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17562   (exit $ac_status); }; }; then
17563   eval "$as_ac_var=yes"
17564 else
17565   echo "$as_me: failed program was:" >&5
17566 sed 's/^/| /' conftest.$ac_ext >&5
17567
17568 eval "$as_ac_var=no"
17569 fi
17570 rm -f conftest.err conftest.$ac_objext \
17571       conftest$ac_exeext conftest.$ac_ext
17572 fi
17573 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17574 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17575 if test `eval echo '${'$as_ac_var'}'` = yes; then
17576   cat >>confdefs.h <<_ACEOF
17577 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17578 _ACEOF
17579
17580 else
17581   case $LIBOBJS in
17582     "$ac_func.$ac_objext"   | \
17583   *" $ac_func.$ac_objext"   | \
17584     "$ac_func.$ac_objext "* | \
17585   *" $ac_func.$ac_objext "* ) ;;
17586   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
17587 esac
17588
17589 fi
17590 done
17591
17592
17593   fp_headers='
17594 #     if HAVE_STDIO_EXT_H
17595 #      include <stdio_ext.h>
17596 #     endif
17597 '
17598   echo "$as_me:$LINENO: checking whether __fpending is declared" >&5
17599 echo $ECHO_N "checking whether __fpending is declared... $ECHO_C" >&6
17600 if test "${ac_cv_have_decl___fpending+set}" = set; then
17601   echo $ECHO_N "(cached) $ECHO_C" >&6
17602 else
17603   cat >conftest.$ac_ext <<_ACEOF
17604 /* confdefs.h.  */
17605 _ACEOF
17606 cat confdefs.h >>conftest.$ac_ext
17607 cat >>conftest.$ac_ext <<_ACEOF
17608 /* end confdefs.h.  */
17609 $fp_headers
17610
17611 int
17612 main ()
17613 {
17614 #ifndef __fpending
17615   char *p = (char *) __fpending;
17616 #endif
17617
17618   ;
17619   return 0;
17620 }
17621 _ACEOF
17622 rm -f conftest.$ac_objext
17623 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17624   (eval $ac_compile) 2>conftest.er1
17625   ac_status=$?
17626   grep -v '^ *+' conftest.er1 >conftest.err
17627   rm -f conftest.er1
17628   cat conftest.err >&5
17629   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17630   (exit $ac_status); } &&
17631          { ac_try='test -z "$ac_c_werror_flag"
17632                          || test ! -s conftest.err'
17633   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17634   (eval $ac_try) 2>&5
17635   ac_status=$?
17636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17637   (exit $ac_status); }; } &&
17638          { ac_try='test -s conftest.$ac_objext'
17639   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17640   (eval $ac_try) 2>&5
17641   ac_status=$?
17642   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17643   (exit $ac_status); }; }; then
17644   ac_cv_have_decl___fpending=yes
17645 else
17646   echo "$as_me: failed program was:" >&5
17647 sed 's/^/| /' conftest.$ac_ext >&5
17648
17649 ac_cv_have_decl___fpending=no
17650 fi
17651 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17652 fi
17653 echo "$as_me:$LINENO: result: $ac_cv_have_decl___fpending" >&5
17654 echo "${ECHO_T}$ac_cv_have_decl___fpending" >&6
17655 if test $ac_cv_have_decl___fpending = yes; then
17656
17657 cat >>confdefs.h <<_ACEOF
17658 #define HAVE_DECL___FPENDING 1
17659 _ACEOF
17660
17661
17662 else
17663   cat >>confdefs.h <<_ACEOF
17664 #define HAVE_DECL___FPENDING 0
17665 _ACEOF
17666
17667
17668 fi
17669
17670
17671   if test $ac_cv_func___fpending = no; then
17672     echo "$as_me:$LINENO: checking how to determine the number of pending output bytes on a stream" >&5
17673 echo $ECHO_N "checking how to determine the number of pending output bytes on a stream... $ECHO_C" >&6
17674 if test "${ac_cv_sys_pending_output_n_bytes+set}" = set; then
17675   echo $ECHO_N "(cached) $ECHO_C" >&6
17676 else
17677
17678         for ac_expr in                                          \
17679                                                                 \
17680             '# glibc2'                                          \
17681             'fp->_IO_write_ptr - fp->_IO_write_base'            \
17682                                                                 \
17683             '# traditional Unix'                                \
17684             'fp->_ptr - fp->_base'                              \
17685                                                                 \
17686             '# BSD'                                             \
17687             'fp->_p - fp->_bf._base'                            \
17688                                                                 \
17689             '# SCO, Unixware'                                   \
17690             'fp->__ptr - fp->__base'                            \
17691                                                                 \
17692             '# old glibc?'                                      \
17693             'fp->__bufp - fp->__buffer'                         \
17694                                                                 \
17695             '# old glibc iostream?'                             \
17696             'fp->_pptr - fp->_pbase'                            \
17697                                                                 \
17698             '# VMS'                                             \
17699             '(*fp)->_ptr - (*fp)->_base'                        \
17700                                                                 \
17701             '# e.g., DGUX R4.11; the info is not available'     \
17702             1                                                   \
17703             ; do
17704
17705           # Skip each embedded comment.
17706           case "$ac_expr" in '#'*) continue;; esac
17707
17708           cat >conftest.$ac_ext <<_ACEOF
17709 /* confdefs.h.  */
17710 _ACEOF
17711 cat confdefs.h >>conftest.$ac_ext
17712 cat >>conftest.$ac_ext <<_ACEOF
17713 /* end confdefs.h.  */
17714 #include <stdio.h>
17715
17716 int
17717 main ()
17718 {
17719 FILE *fp = stdin; (void) ($ac_expr);
17720   ;
17721   return 0;
17722 }
17723 _ACEOF
17724 rm -f conftest.$ac_objext
17725 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17726   (eval $ac_compile) 2>conftest.er1
17727   ac_status=$?
17728   grep -v '^ *+' conftest.er1 >conftest.err
17729   rm -f conftest.er1
17730   cat conftest.err >&5
17731   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17732   (exit $ac_status); } &&
17733          { ac_try='test -z "$ac_c_werror_flag"
17734                          || test ! -s conftest.err'
17735   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17736   (eval $ac_try) 2>&5
17737   ac_status=$?
17738   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17739   (exit $ac_status); }; } &&
17740          { ac_try='test -s conftest.$ac_objext'
17741   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17742   (eval $ac_try) 2>&5
17743   ac_status=$?
17744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17745   (exit $ac_status); }; }; then
17746   fp_done=yes
17747
17748 else
17749   echo "$as_me: failed program was:" >&5
17750 sed 's/^/| /' conftest.$ac_ext >&5
17751
17752 fi
17753 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17754           test "$fp_done" = yes && break
17755         done
17756
17757         ac_cv_sys_pending_output_n_bytes=$ac_expr
17758
17759
17760 fi
17761 echo "$as_me:$LINENO: result: $ac_cv_sys_pending_output_n_bytes" >&5
17762 echo "${ECHO_T}$ac_cv_sys_pending_output_n_bytes" >&6
17763
17764 cat >>confdefs.h <<_ACEOF
17765 #define PENDING_OUTPUT_N_BYTES $ac_cv_sys_pending_output_n_bytes
17766 _ACEOF
17767
17768   fi
17769
17770
17771
17772 for ac_func in ftruncate
17773 do
17774 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17775 echo "$as_me:$LINENO: checking for $ac_func" >&5
17776 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17777 if eval "test \"\${$as_ac_var+set}\" = set"; then
17778   echo $ECHO_N "(cached) $ECHO_C" >&6
17779 else
17780   cat >conftest.$ac_ext <<_ACEOF
17781 /* confdefs.h.  */
17782 _ACEOF
17783 cat confdefs.h >>conftest.$ac_ext
17784 cat >>conftest.$ac_ext <<_ACEOF
17785 /* end confdefs.h.  */
17786 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17787    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17788 #define $ac_func innocuous_$ac_func
17789
17790 /* System header to define __stub macros and hopefully few prototypes,
17791     which can conflict with char $ac_func (); below.
17792     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17793     <limits.h> exists even on freestanding compilers.  */
17794
17795 #ifdef __STDC__
17796 # include <limits.h>
17797 #else
17798 # include <assert.h>
17799 #endif
17800
17801 #undef $ac_func
17802
17803 /* Override any gcc2 internal prototype to avoid an error.  */
17804 #ifdef __cplusplus
17805 extern "C"
17806 {
17807 #endif
17808 /* We use char because int might match the return type of a gcc2
17809    builtin and then its argument prototype would still apply.  */
17810 char $ac_func ();
17811 /* The GNU C library defines this for functions which it implements
17812     to always fail with ENOSYS.  Some functions are actually named
17813     something starting with __ and the normal name is an alias.  */
17814 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17815 choke me
17816 #else
17817 char (*f) () = $ac_func;
17818 #endif
17819 #ifdef __cplusplus
17820 }
17821 #endif
17822
17823 int
17824 main ()
17825 {
17826 return f != $ac_func;
17827   ;
17828   return 0;
17829 }
17830 _ACEOF
17831 rm -f conftest.$ac_objext conftest$ac_exeext
17832 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17833   (eval $ac_link) 2>conftest.er1
17834   ac_status=$?
17835   grep -v '^ *+' conftest.er1 >conftest.err
17836   rm -f conftest.er1
17837   cat conftest.err >&5
17838   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17839   (exit $ac_status); } &&
17840          { ac_try='test -z "$ac_c_werror_flag"
17841                          || test ! -s conftest.err'
17842   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17843   (eval $ac_try) 2>&5
17844   ac_status=$?
17845   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17846   (exit $ac_status); }; } &&
17847          { ac_try='test -s conftest$ac_exeext'
17848   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17849   (eval $ac_try) 2>&5
17850   ac_status=$?
17851   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17852   (exit $ac_status); }; }; then
17853   eval "$as_ac_var=yes"
17854 else
17855   echo "$as_me: failed program was:" >&5
17856 sed 's/^/| /' conftest.$ac_ext >&5
17857
17858 eval "$as_ac_var=no"
17859 fi
17860 rm -f conftest.err conftest.$ac_objext \
17861       conftest$ac_exeext conftest.$ac_ext
17862 fi
17863 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17864 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17865 if test `eval echo '${'$as_ac_var'}'` = yes; then
17866   cat >>confdefs.h <<_ACEOF
17867 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17868 _ACEOF
17869
17870 else
17871   case $LIBOBJS in
17872     "$ac_func.$ac_objext"   | \
17873   *" $ac_func.$ac_objext"   | \
17874     "$ac_func.$ac_objext "* | \
17875   *" $ac_func.$ac_objext "* ) ;;
17876   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
17877 esac
17878
17879 fi
17880 done
17881
17882
17883   if test $ac_cv_func_ftruncate = no; then
17884
17885
17886   :
17887
17888
17889
17890
17891
17892
17893 for ac_func in chsize
17894 do
17895 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17896 echo "$as_me:$LINENO: checking for $ac_func" >&5
17897 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17898 if eval "test \"\${$as_ac_var+set}\" = set"; then
17899   echo $ECHO_N "(cached) $ECHO_C" >&6
17900 else
17901   cat >conftest.$ac_ext <<_ACEOF
17902 /* confdefs.h.  */
17903 _ACEOF
17904 cat confdefs.h >>conftest.$ac_ext
17905 cat >>conftest.$ac_ext <<_ACEOF
17906 /* end confdefs.h.  */
17907 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17908    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17909 #define $ac_func innocuous_$ac_func
17910
17911 /* System header to define __stub macros and hopefully few prototypes,
17912     which can conflict with char $ac_func (); below.
17913     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17914     <limits.h> exists even on freestanding compilers.  */
17915
17916 #ifdef __STDC__
17917 # include <limits.h>
17918 #else
17919 # include <assert.h>
17920 #endif
17921
17922 #undef $ac_func
17923
17924 /* Override any gcc2 internal prototype to avoid an error.  */
17925 #ifdef __cplusplus
17926 extern "C"
17927 {
17928 #endif
17929 /* We use char because int might match the return type of a gcc2
17930    builtin and then its argument prototype would still apply.  */
17931 char $ac_func ();
17932 /* The GNU C library defines this for functions which it implements
17933     to always fail with ENOSYS.  Some functions are actually named
17934     something starting with __ and the normal name is an alias.  */
17935 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17936 choke me
17937 #else
17938 char (*f) () = $ac_func;
17939 #endif
17940 #ifdef __cplusplus
17941 }
17942 #endif
17943
17944 int
17945 main ()
17946 {
17947 return f != $ac_func;
17948   ;
17949   return 0;
17950 }
17951 _ACEOF
17952 rm -f conftest.$ac_objext conftest$ac_exeext
17953 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17954   (eval $ac_link) 2>conftest.er1
17955   ac_status=$?
17956   grep -v '^ *+' conftest.er1 >conftest.err
17957   rm -f conftest.er1
17958   cat conftest.err >&5
17959   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17960   (exit $ac_status); } &&
17961          { ac_try='test -z "$ac_c_werror_flag"
17962                          || test ! -s conftest.err'
17963   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17964   (eval $ac_try) 2>&5
17965   ac_status=$?
17966   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17967   (exit $ac_status); }; } &&
17968          { ac_try='test -s conftest$ac_exeext'
17969   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17970   (eval $ac_try) 2>&5
17971   ac_status=$?
17972   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17973   (exit $ac_status); }; }; then
17974   eval "$as_ac_var=yes"
17975 else
17976   echo "$as_me: failed program was:" >&5
17977 sed 's/^/| /' conftest.$ac_ext >&5
17978
17979 eval "$as_ac_var=no"
17980 fi
17981 rm -f conftest.err conftest.$ac_objext \
17982       conftest$ac_exeext conftest.$ac_ext
17983 fi
17984 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17985 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17986 if test `eval echo '${'$as_ac_var'}'` = yes; then
17987   cat >>confdefs.h <<_ACEOF
17988 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17989 _ACEOF
17990
17991 fi
17992 done
17993
17994
17995   fi
17996
17997
17998
17999
18000   case $gl_cv_func_getcwd_null in
18001   yes)
18002
18003   :
18004
18005
18006
18007
18008
18009
18010   :
18011
18012
18013
18014
18015
18016
18017   echo "$as_me:$LINENO: checking whether getcwd handles long file names properly" >&5
18018 echo $ECHO_N "checking whether getcwd handles long file names properly... $ECHO_C" >&6
18019 if test "${gl_cv_func_getcwd_path_max+set}" = set; then
18020   echo $ECHO_N "(cached) $ECHO_C" >&6
18021 else
18022   # Arrange for deletion of the temporary directory this test creates.
18023      ac_clean_files="$ac_clean_files confdir3"
18024      if test "$cross_compiling" = yes; then
18025   gl_cv_func_getcwd_path_max=no
18026 else
18027   cat >conftest.$ac_ext <<_ACEOF
18028 /* confdefs.h.  */
18029 _ACEOF
18030 cat confdefs.h >>conftest.$ac_ext
18031 cat >>conftest.$ac_ext <<_ACEOF
18032 /* end confdefs.h.  */
18033
18034 #include <errno.h>
18035 #include <stdlib.h>
18036 #include <unistd.h>
18037 #include <string.h>
18038 #include <limits.h>
18039 #include <sys/stat.h>
18040 #include <sys/types.h>
18041 #if HAVE_FCNTL_H
18042 # include <fcntl.h>
18043 #endif
18044
18045 #ifndef AT_FDCWD
18046 # define AT_FDCWD 0
18047 #endif
18048 #ifdef ENAMETOOLONG
18049 # define is_ENAMETOOLONG(x) ((x) == ENAMETOOLONG)
18050 #else
18051 # define is_ENAMETOOLONG(x) 0
18052 #endif
18053
18054 /* Don't get link errors because mkdir is redefined to rpl_mkdir.  */
18055 #undef mkdir
18056
18057 #ifndef S_IRWXU
18058 # define S_IRWXU 0700
18059 #endif
18060
18061 /* The length of this name must be 8.  */
18062 #define DIR_NAME "confdir3"
18063 #define DIR_NAME_LEN 8
18064 #define DIR_NAME_SIZE (DIR_NAME_LEN + 1)
18065
18066 /* The length of "../".  */
18067 #define DOTDOTSLASH_LEN 3
18068
18069 /* Leftover bytes in the buffer, to work around library or OS bugs.  */
18070 #define BUF_SLOP 20
18071
18072 int
18073 main (void)
18074 {
18075 #ifndef PATH_MAX
18076   /* The Hurd doesn't define this, so getcwd can't exhibit the bug --
18077      at least not on a local file system.  And if we were to start worrying
18078      about remote file systems, we'd have to enable the wrapper function
18079      all of the time, just to be safe.  That's not worth the cost.  */
18080   exit (0);
18081 #elif ((INT_MAX / (DIR_NAME_SIZE / DOTDOTSLASH_LEN + 1) \
18082         - DIR_NAME_SIZE - BUF_SLOP) \
18083        <= PATH_MAX)
18084   /* FIXME: Assuming there's a system for which this is true,
18085      this should be done in a compile test.  */
18086   exit (0);
18087 #else
18088   char buf[PATH_MAX * (DIR_NAME_SIZE / DOTDOTSLASH_LEN + 1)
18089            + DIR_NAME_SIZE + BUF_SLOP];
18090   char *cwd = getcwd (buf, PATH_MAX);
18091   size_t initial_cwd_len;
18092   size_t cwd_len;
18093   int fail = 0;
18094   size_t n_chdirs = 0;
18095
18096   if (cwd == NULL)
18097     exit (1);
18098
18099   cwd_len = initial_cwd_len = strlen (cwd);
18100
18101   while (1)
18102     {
18103       size_t dotdot_max = PATH_MAX * (DIR_NAME_SIZE / DOTDOTSLASH_LEN);
18104       char *c = NULL;
18105
18106       cwd_len += DIR_NAME_SIZE;
18107       /* If mkdir or chdir fails, it could be that this system cannot create
18108          any file with an absolute name longer than PATH_MAX, such as cygwin.
18109          If so, leave fail as 0, because the current working directory can't
18110          be too long for getcwd if it can't even be created.  For other
18111          errors, be pessimistic and consider that as a failure, too.  */
18112       if (mkdir (DIR_NAME, S_IRWXU) < 0 || chdir (DIR_NAME) < 0)
18113         {
18114           if (! (errno == ERANGE || is_ENAMETOOLONG (errno)))
18115             fail = 2;
18116           break;
18117         }
18118
18119       if (PATH_MAX <= cwd_len && cwd_len < PATH_MAX + DIR_NAME_SIZE)
18120         {
18121           c = getcwd (buf, PATH_MAX);
18122           if (!c && errno == ENOENT)
18123             {
18124               fail = 1;
18125               break;
18126             }
18127           if (c || ! (errno == ERANGE || is_ENAMETOOLONG (errno)))
18128             {
18129               fail = 2;
18130               break;
18131             }
18132         }
18133
18134       if (dotdot_max <= cwd_len - initial_cwd_len)
18135         {
18136           if (dotdot_max + DIR_NAME_SIZE < cwd_len - initial_cwd_len)
18137             break;
18138           c = getcwd (buf, cwd_len + 1);
18139           if (!c)
18140             {
18141               if (! (errno == ERANGE || errno == ENOENT
18142                      || is_ENAMETOOLONG (errno)))
18143                 {
18144                   fail = 2;
18145                   break;
18146                 }
18147               if (AT_FDCWD || errno == ERANGE || errno == ENOENT)
18148                 {
18149                   fail = 1;
18150                   break;
18151                 }
18152             }
18153         }
18154
18155       if (c && strlen (c) != cwd_len)
18156         {
18157           fail = 2;
18158           break;
18159         }
18160       ++n_chdirs;
18161     }
18162
18163   /* Leaving behind such a deep directory is not polite.
18164      So clean up here, right away, even though the driving
18165      shell script would also clean up.  */
18166   {
18167     size_t i;
18168
18169     /* Unlink first, in case the chdir failed.  */
18170     unlink (DIR_NAME);
18171     for (i = 0; i <= n_chdirs; i++)
18172       {
18173         if (chdir ("..") < 0)
18174           break;
18175         rmdir (DIR_NAME);
18176       }
18177   }
18178
18179   exit (fail);
18180 #endif
18181 }
18182
18183 _ACEOF
18184 rm -f conftest$ac_exeext
18185 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18186   (eval $ac_link) 2>&5
18187   ac_status=$?
18188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18189   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18190   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18191   (eval $ac_try) 2>&5
18192   ac_status=$?
18193   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18194   (exit $ac_status); }; }; then
18195   gl_cv_func_getcwd_path_max=yes
18196 else
18197   echo "$as_me: program exited with status $ac_status" >&5
18198 echo "$as_me: failed program was:" >&5
18199 sed 's/^/| /' conftest.$ac_ext >&5
18200
18201 ( exit $ac_status )
18202 case $? in
18203      1) gl_cv_func_getcwd_path_max='no, but it is partly working';;
18204      *) gl_cv_func_getcwd_path_max=no;;
18205      esac
18206 fi
18207 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18208 fi
18209
18210 fi
18211 echo "$as_me:$LINENO: result: $gl_cv_func_getcwd_path_max" >&5
18212 echo "${ECHO_T}$gl_cv_func_getcwd_path_max" >&6
18213   case $gl_cv_func_getcwd_path_max in
18214   no,*)
18215
18216 cat >>confdefs.h <<\_ACEOF
18217 #define HAVE_PARTLY_WORKING_GETCWD 1
18218 _ACEOF
18219 ;;
18220   esac
18221 ;;
18222   esac
18223
18224   case $gl_cv_func_getcwd_null,$gl_cv_func_getcwd_path_max in
18225   yes,yes) ;;
18226   *)
18227     case $LIBOBJS in
18228     "getcwd.$ac_objext"   | \
18229   *" getcwd.$ac_objext"   | \
18230     "getcwd.$ac_objext "* | \
18231   *" getcwd.$ac_objext "* ) ;;
18232   *) LIBOBJS="$LIBOBJS getcwd.$ac_objext" ;;
18233 esac
18234
18235
18236 cat >>confdefs.h <<\_ACEOF
18237 #define __GETCWD_PREFIX rpl_
18238 _ACEOF
18239
18240
18241
18242
18243
18244
18245   :
18246
18247
18248
18249
18250
18251   :
18252 ;;
18253   esac
18254
18255
18256
18257   case $LIBOBJS in
18258     "getdate.$ac_objext"   | \
18259   *" getdate.$ac_objext"   | \
18260     "getdate.$ac_objext "* | \
18261   *" getdate.$ac_objext "* ) ;;
18262   *) LIBOBJS="$LIBOBJS getdate.$ac_objext" ;;
18263 esac
18264
18265
18266
18267
18268
18269
18270
18271
18272   :
18273
18274
18275
18276
18277
18278   echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
18279 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
18280 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
18281   echo $ECHO_N "(cached) $ECHO_C" >&6
18282 else
18283   cat >conftest.$ac_ext <<_ACEOF
18284 /* confdefs.h.  */
18285 _ACEOF
18286 cat confdefs.h >>conftest.$ac_ext
18287 cat >>conftest.$ac_ext <<_ACEOF
18288 /* end confdefs.h.  */
18289 #include <sys/types.h>
18290 #include <$ac_cv_struct_tm>
18291
18292
18293 int
18294 main ()
18295 {
18296 static struct tm ac_aggr;
18297 if (ac_aggr.tm_zone)
18298 return 0;
18299   ;
18300   return 0;
18301 }
18302 _ACEOF
18303 rm -f conftest.$ac_objext
18304 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18305   (eval $ac_compile) 2>conftest.er1
18306   ac_status=$?
18307   grep -v '^ *+' conftest.er1 >conftest.err
18308   rm -f conftest.er1
18309   cat conftest.err >&5
18310   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18311   (exit $ac_status); } &&
18312          { ac_try='test -z "$ac_c_werror_flag"
18313                          || test ! -s conftest.err'
18314   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18315   (eval $ac_try) 2>&5
18316   ac_status=$?
18317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18318   (exit $ac_status); }; } &&
18319          { ac_try='test -s conftest.$ac_objext'
18320   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18321   (eval $ac_try) 2>&5
18322   ac_status=$?
18323   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18324   (exit $ac_status); }; }; then
18325   ac_cv_member_struct_tm_tm_zone=yes
18326 else
18327   echo "$as_me: failed program was:" >&5
18328 sed 's/^/| /' conftest.$ac_ext >&5
18329
18330 cat >conftest.$ac_ext <<_ACEOF
18331 /* confdefs.h.  */
18332 _ACEOF
18333 cat confdefs.h >>conftest.$ac_ext
18334 cat >>conftest.$ac_ext <<_ACEOF
18335 /* end confdefs.h.  */
18336 #include <sys/types.h>
18337 #include <$ac_cv_struct_tm>
18338
18339
18340 int
18341 main ()
18342 {
18343 static struct tm ac_aggr;
18344 if (sizeof ac_aggr.tm_zone)
18345 return 0;
18346   ;
18347   return 0;
18348 }
18349 _ACEOF
18350 rm -f conftest.$ac_objext
18351 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18352   (eval $ac_compile) 2>conftest.er1
18353   ac_status=$?
18354   grep -v '^ *+' conftest.er1 >conftest.err
18355   rm -f conftest.er1
18356   cat conftest.err >&5
18357   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18358   (exit $ac_status); } &&
18359          { ac_try='test -z "$ac_c_werror_flag"
18360                          || test ! -s conftest.err'
18361   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18362   (eval $ac_try) 2>&5
18363   ac_status=$?
18364   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18365   (exit $ac_status); }; } &&
18366          { ac_try='test -s conftest.$ac_objext'
18367   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18368   (eval $ac_try) 2>&5
18369   ac_status=$?
18370   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18371   (exit $ac_status); }; }; then
18372   ac_cv_member_struct_tm_tm_zone=yes
18373 else
18374   echo "$as_me: failed program was:" >&5
18375 sed 's/^/| /' conftest.$ac_ext >&5
18376
18377 ac_cv_member_struct_tm_tm_zone=no
18378 fi
18379 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18380 fi
18381 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18382 fi
18383 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
18384 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
18385 if test $ac_cv_member_struct_tm_tm_zone = yes; then
18386
18387 cat >>confdefs.h <<_ACEOF
18388 #define HAVE_STRUCT_TM_TM_ZONE 1
18389 _ACEOF
18390
18391
18392 fi
18393
18394 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
18395
18396 cat >>confdefs.h <<\_ACEOF
18397 #define HAVE_TM_ZONE 1
18398 _ACEOF
18399
18400 else
18401   echo "$as_me:$LINENO: checking for tzname" >&5
18402 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
18403 if test "${ac_cv_var_tzname+set}" = set; then
18404   echo $ECHO_N "(cached) $ECHO_C" >&6
18405 else
18406   cat >conftest.$ac_ext <<_ACEOF
18407 /* confdefs.h.  */
18408 _ACEOF
18409 cat confdefs.h >>conftest.$ac_ext
18410 cat >>conftest.$ac_ext <<_ACEOF
18411 /* end confdefs.h.  */
18412 #include <time.h>
18413 #ifndef tzname /* For SGI.  */
18414 extern char *tzname[]; /* RS6000 and others reject char **tzname.  */
18415 #endif
18416
18417 int
18418 main ()
18419 {
18420 atoi(*tzname);
18421   ;
18422   return 0;
18423 }
18424 _ACEOF
18425 rm -f conftest.$ac_objext conftest$ac_exeext
18426 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18427   (eval $ac_link) 2>conftest.er1
18428   ac_status=$?
18429   grep -v '^ *+' conftest.er1 >conftest.err
18430   rm -f conftest.er1
18431   cat conftest.err >&5
18432   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18433   (exit $ac_status); } &&
18434          { ac_try='test -z "$ac_c_werror_flag"
18435                          || test ! -s conftest.err'
18436   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18437   (eval $ac_try) 2>&5
18438   ac_status=$?
18439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18440   (exit $ac_status); }; } &&
18441          { ac_try='test -s conftest$ac_exeext'
18442   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18443   (eval $ac_try) 2>&5
18444   ac_status=$?
18445   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18446   (exit $ac_status); }; }; then
18447   ac_cv_var_tzname=yes
18448 else
18449   echo "$as_me: failed program was:" >&5
18450 sed 's/^/| /' conftest.$ac_ext >&5
18451
18452 ac_cv_var_tzname=no
18453 fi
18454 rm -f conftest.err conftest.$ac_objext \
18455       conftest$ac_exeext conftest.$ac_ext
18456 fi
18457 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
18458 echo "${ECHO_T}$ac_cv_var_tzname" >&6
18459   if test $ac_cv_var_tzname = yes; then
18460
18461 cat >>confdefs.h <<\_ACEOF
18462 #define HAVE_TZNAME 1
18463 _ACEOF
18464
18465   fi
18466 fi
18467
18468
18469
18470
18471
18472
18473 for ac_func in gethostname
18474 do
18475 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18476 echo "$as_me:$LINENO: checking for $ac_func" >&5
18477 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18478 if eval "test \"\${$as_ac_var+set}\" = set"; then
18479   echo $ECHO_N "(cached) $ECHO_C" >&6
18480 else
18481   cat >conftest.$ac_ext <<_ACEOF
18482 /* confdefs.h.  */
18483 _ACEOF
18484 cat confdefs.h >>conftest.$ac_ext
18485 cat >>conftest.$ac_ext <<_ACEOF
18486 /* end confdefs.h.  */
18487 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18488    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18489 #define $ac_func innocuous_$ac_func
18490
18491 /* System header to define __stub macros and hopefully few prototypes,
18492     which can conflict with char $ac_func (); below.
18493     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18494     <limits.h> exists even on freestanding compilers.  */
18495
18496 #ifdef __STDC__
18497 # include <limits.h>
18498 #else
18499 # include <assert.h>
18500 #endif
18501
18502 #undef $ac_func
18503
18504 /* Override any gcc2 internal prototype to avoid an error.  */
18505 #ifdef __cplusplus
18506 extern "C"
18507 {
18508 #endif
18509 /* We use char because int might match the return type of a gcc2
18510    builtin and then its argument prototype would still apply.  */
18511 char $ac_func ();
18512 /* The GNU C library defines this for functions which it implements
18513     to always fail with ENOSYS.  Some functions are actually named
18514     something starting with __ and the normal name is an alias.  */
18515 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18516 choke me
18517 #else
18518 char (*f) () = $ac_func;
18519 #endif
18520 #ifdef __cplusplus
18521 }
18522 #endif
18523
18524 int
18525 main ()
18526 {
18527 return f != $ac_func;
18528   ;
18529   return 0;
18530 }
18531 _ACEOF
18532 rm -f conftest.$ac_objext conftest$ac_exeext
18533 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18534   (eval $ac_link) 2>conftest.er1
18535   ac_status=$?
18536   grep -v '^ *+' conftest.er1 >conftest.err
18537   rm -f conftest.er1
18538   cat conftest.err >&5
18539   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18540   (exit $ac_status); } &&
18541          { ac_try='test -z "$ac_c_werror_flag"
18542                          || test ! -s conftest.err'
18543   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18544   (eval $ac_try) 2>&5
18545   ac_status=$?
18546   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18547   (exit $ac_status); }; } &&
18548          { ac_try='test -s conftest$ac_exeext'
18549   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18550   (eval $ac_try) 2>&5
18551   ac_status=$?
18552   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18553   (exit $ac_status); }; }; then
18554   eval "$as_ac_var=yes"
18555 else
18556   echo "$as_me: failed program was:" >&5
18557 sed 's/^/| /' conftest.$ac_ext >&5
18558
18559 eval "$as_ac_var=no"
18560 fi
18561 rm -f conftest.err conftest.$ac_objext \
18562       conftest$ac_exeext conftest.$ac_ext
18563 fi
18564 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18565 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18566 if test `eval echo '${'$as_ac_var'}'` = yes; then
18567   cat >>confdefs.h <<_ACEOF
18568 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18569 _ACEOF
18570
18571 else
18572   case $LIBOBJS in
18573     "$ac_func.$ac_objext"   | \
18574   *" $ac_func.$ac_objext"   | \
18575     "$ac_func.$ac_objext "* | \
18576   *" $ac_func.$ac_objext "* ) ;;
18577   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
18578 esac
18579
18580 fi
18581 done
18582
18583
18584   if test $ac_cv_func_gethostname = no; then
18585
18586
18587 for ac_func in uname
18588 do
18589 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18590 echo "$as_me:$LINENO: checking for $ac_func" >&5
18591 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18592 if eval "test \"\${$as_ac_var+set}\" = set"; then
18593   echo $ECHO_N "(cached) $ECHO_C" >&6
18594 else
18595   cat >conftest.$ac_ext <<_ACEOF
18596 /* confdefs.h.  */
18597 _ACEOF
18598 cat confdefs.h >>conftest.$ac_ext
18599 cat >>conftest.$ac_ext <<_ACEOF
18600 /* end confdefs.h.  */
18601 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18602    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18603 #define $ac_func innocuous_$ac_func
18604
18605 /* System header to define __stub macros and hopefully few prototypes,
18606     which can conflict with char $ac_func (); below.
18607     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18608     <limits.h> exists even on freestanding compilers.  */
18609
18610 #ifdef __STDC__
18611 # include <limits.h>
18612 #else
18613 # include <assert.h>
18614 #endif
18615
18616 #undef $ac_func
18617
18618 /* Override any gcc2 internal prototype to avoid an error.  */
18619 #ifdef __cplusplus
18620 extern "C"
18621 {
18622 #endif
18623 /* We use char because int might match the return type of a gcc2
18624    builtin and then its argument prototype would still apply.  */
18625 char $ac_func ();
18626 /* The GNU C library defines this for functions which it implements
18627     to always fail with ENOSYS.  Some functions are actually named
18628     something starting with __ and the normal name is an alias.  */
18629 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18630 choke me
18631 #else
18632 char (*f) () = $ac_func;
18633 #endif
18634 #ifdef __cplusplus
18635 }
18636 #endif
18637
18638 int
18639 main ()
18640 {
18641 return f != $ac_func;
18642   ;
18643   return 0;
18644 }
18645 _ACEOF
18646 rm -f conftest.$ac_objext conftest$ac_exeext
18647 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18648   (eval $ac_link) 2>conftest.er1
18649   ac_status=$?
18650   grep -v '^ *+' conftest.er1 >conftest.err
18651   rm -f conftest.er1
18652   cat conftest.err >&5
18653   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18654   (exit $ac_status); } &&
18655          { ac_try='test -z "$ac_c_werror_flag"
18656                          || test ! -s conftest.err'
18657   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18658   (eval $ac_try) 2>&5
18659   ac_status=$?
18660   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18661   (exit $ac_status); }; } &&
18662          { ac_try='test -s conftest$ac_exeext'
18663   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18664   (eval $ac_try) 2>&5
18665   ac_status=$?
18666   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18667   (exit $ac_status); }; }; then
18668   eval "$as_ac_var=yes"
18669 else
18670   echo "$as_me: failed program was:" >&5
18671 sed 's/^/| /' conftest.$ac_ext >&5
18672
18673 eval "$as_ac_var=no"
18674 fi
18675 rm -f conftest.err conftest.$ac_objext \
18676       conftest$ac_exeext conftest.$ac_ext
18677 fi
18678 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18679 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18680 if test `eval echo '${'$as_ac_var'}'` = yes; then
18681   cat >>confdefs.h <<_ACEOF
18682 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18683 _ACEOF
18684
18685 fi
18686 done
18687
18688
18689   fi
18690
18691
18692
18693
18694
18695
18696   am_getline_needs_run_time_check=no
18697   echo "$as_me:$LINENO: checking for getline" >&5
18698 echo $ECHO_N "checking for getline... $ECHO_C" >&6
18699 if test "${ac_cv_func_getline+set}" = set; then
18700   echo $ECHO_N "(cached) $ECHO_C" >&6
18701 else
18702   cat >conftest.$ac_ext <<_ACEOF
18703 /* confdefs.h.  */
18704 _ACEOF
18705 cat confdefs.h >>conftest.$ac_ext
18706 cat >>conftest.$ac_ext <<_ACEOF
18707 /* end confdefs.h.  */
18708 /* Define getline to an innocuous variant, in case <limits.h> declares getline.
18709    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18710 #define getline innocuous_getline
18711
18712 /* System header to define __stub macros and hopefully few prototypes,
18713     which can conflict with char getline (); below.
18714     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18715     <limits.h> exists even on freestanding compilers.  */
18716
18717 #ifdef __STDC__
18718 # include <limits.h>
18719 #else
18720 # include <assert.h>
18721 #endif
18722
18723 #undef getline
18724
18725 /* Override any gcc2 internal prototype to avoid an error.  */
18726 #ifdef __cplusplus
18727 extern "C"
18728 {
18729 #endif
18730 /* We use char because int might match the return type of a gcc2
18731    builtin and then its argument prototype would still apply.  */
18732 char getline ();
18733 /* The GNU C library defines this for functions which it implements
18734     to always fail with ENOSYS.  Some functions are actually named
18735     something starting with __ and the normal name is an alias.  */
18736 #if defined (__stub_getline) || defined (__stub___getline)
18737 choke me
18738 #else
18739 char (*f) () = getline;
18740 #endif
18741 #ifdef __cplusplus
18742 }
18743 #endif
18744
18745 int
18746 main ()
18747 {
18748 return f != getline;
18749   ;
18750   return 0;
18751 }
18752 _ACEOF
18753 rm -f conftest.$ac_objext conftest$ac_exeext
18754 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18755   (eval $ac_link) 2>conftest.er1
18756   ac_status=$?
18757   grep -v '^ *+' conftest.er1 >conftest.err
18758   rm -f conftest.er1
18759   cat conftest.err >&5
18760   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18761   (exit $ac_status); } &&
18762          { ac_try='test -z "$ac_c_werror_flag"
18763                          || test ! -s conftest.err'
18764   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18765   (eval $ac_try) 2>&5
18766   ac_status=$?
18767   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18768   (exit $ac_status); }; } &&
18769          { ac_try='test -s conftest$ac_exeext'
18770   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18771   (eval $ac_try) 2>&5
18772   ac_status=$?
18773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18774   (exit $ac_status); }; }; then
18775   ac_cv_func_getline=yes
18776 else
18777   echo "$as_me: failed program was:" >&5
18778 sed 's/^/| /' conftest.$ac_ext >&5
18779
18780 ac_cv_func_getline=no
18781 fi
18782 rm -f conftest.err conftest.$ac_objext \
18783       conftest$ac_exeext conftest.$ac_ext
18784 fi
18785 echo "$as_me:$LINENO: result: $ac_cv_func_getline" >&5
18786 echo "${ECHO_T}$ac_cv_func_getline" >&6
18787 if test $ac_cv_func_getline = yes; then
18788                 am_getline_needs_run_time_check=yes
18789 else
18790   am_cv_func_working_getline=no
18791 fi
18792
18793   if test $am_getline_needs_run_time_check = yes; then
18794     echo "$as_me:$LINENO: checking for working getline function" >&5
18795 echo $ECHO_N "checking for working getline function... $ECHO_C" >&6
18796 if test "${am_cv_func_working_getline+set}" = set; then
18797   echo $ECHO_N "(cached) $ECHO_C" >&6
18798 else
18799   echo fooN |tr -d '\012'|tr N '\012' > conftest.data
18800     if test "$cross_compiling" = yes; then
18801   am_cv_func_working_getline=no
18802 else
18803   cat >conftest.$ac_ext <<_ACEOF
18804 /* confdefs.h.  */
18805 _ACEOF
18806 cat confdefs.h >>conftest.$ac_ext
18807 cat >>conftest.$ac_ext <<_ACEOF
18808 /* end confdefs.h.  */
18809
18810 #    include <stdio.h>
18811 #    include <stdlib.h>
18812 #    include <string.h>
18813     int main ()
18814     { /* Based on a test program from Karl Heuer.  */
18815       char *line = NULL;
18816       size_t siz = 0;
18817       int len;
18818       FILE *in = fopen ("./conftest.data", "r");
18819       if (!in)
18820         return 1;
18821       len = getline (&line, &siz, in);
18822       exit ((len == 4 && line && strcmp (line, "foo\n") == 0) ? 0 : 1);
18823     }
18824
18825 _ACEOF
18826 rm -f conftest$ac_exeext
18827 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18828   (eval $ac_link) 2>&5
18829   ac_status=$?
18830   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18831   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18832   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18833   (eval $ac_try) 2>&5
18834   ac_status=$?
18835   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18836   (exit $ac_status); }; }; then
18837   am_cv_func_working_getline=yes
18838 else
18839   echo "$as_me: program exited with status $ac_status" >&5
18840 echo "$as_me: failed program was:" >&5
18841 sed 's/^/| /' conftest.$ac_ext >&5
18842
18843 ( exit $ac_status )
18844 am_cv_func_working_getline=no
18845 fi
18846 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18847 fi
18848 fi
18849 echo "$as_me:$LINENO: result: $am_cv_func_working_getline" >&5
18850 echo "${ECHO_T}$am_cv_func_working_getline" >&6
18851   fi
18852
18853   if test $am_cv_func_working_getline = no; then
18854
18855 cat >>confdefs.h <<\_ACEOF
18856 #define getline gnu_getline
18857 _ACEOF
18858
18859     case $LIBOBJS in
18860     "getline.$ac_objext"   | \
18861   *" getline.$ac_objext"   | \
18862     "getline.$ac_objext "* | \
18863   *" getline.$ac_objext "* ) ;;
18864   *) LIBOBJS="$LIBOBJS getline.$ac_objext" ;;
18865 esac
18866
18867
18868     # Avoid multiple inclusions of getndelim2.o into LIBOBJS.
18869     # This hack won't be needed after gnulib requires Autoconf 2.58 or later.
18870     case " $LIBOBJS " in
18871     *" getndelim2.$ac_objext "* ) ;;
18872     *) case $LIBOBJS in
18873     "getndelim2.$ac_objext"   | \
18874   *" getndelim2.$ac_objext"   | \
18875     "getndelim2.$ac_objext "* | \
18876   *" getndelim2.$ac_objext "* ) ;;
18877   *) LIBOBJS="$LIBOBJS getndelim2.$ac_objext" ;;
18878 esac
18879 ;;
18880     esac
18881
18882
18883
18884 for ac_func in getdelim
18885 do
18886 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18887 echo "$as_me:$LINENO: checking for $ac_func" >&5
18888 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18889 if eval "test \"\${$as_ac_var+set}\" = set"; then
18890   echo $ECHO_N "(cached) $ECHO_C" >&6
18891 else
18892   cat >conftest.$ac_ext <<_ACEOF
18893 /* confdefs.h.  */
18894 _ACEOF
18895 cat confdefs.h >>conftest.$ac_ext
18896 cat >>conftest.$ac_ext <<_ACEOF
18897 /* end confdefs.h.  */
18898 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18899    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18900 #define $ac_func innocuous_$ac_func
18901
18902 /* System header to define __stub macros and hopefully few prototypes,
18903     which can conflict with char $ac_func (); below.
18904     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18905     <limits.h> exists even on freestanding compilers.  */
18906
18907 #ifdef __STDC__
18908 # include <limits.h>
18909 #else
18910 # include <assert.h>
18911 #endif
18912
18913 #undef $ac_func
18914
18915 /* Override any gcc2 internal prototype to avoid an error.  */
18916 #ifdef __cplusplus
18917 extern "C"
18918 {
18919 #endif
18920 /* We use char because int might match the return type of a gcc2
18921    builtin and then its argument prototype would still apply.  */
18922 char $ac_func ();
18923 /* The GNU C library defines this for functions which it implements
18924     to always fail with ENOSYS.  Some functions are actually named
18925     something starting with __ and the normal name is an alias.  */
18926 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18927 choke me
18928 #else
18929 char (*f) () = $ac_func;
18930 #endif
18931 #ifdef __cplusplus
18932 }
18933 #endif
18934
18935 int
18936 main ()
18937 {
18938 return f != $ac_func;
18939   ;
18940   return 0;
18941 }
18942 _ACEOF
18943 rm -f conftest.$ac_objext conftest$ac_exeext
18944 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18945   (eval $ac_link) 2>conftest.er1
18946   ac_status=$?
18947   grep -v '^ *+' conftest.er1 >conftest.err
18948   rm -f conftest.er1
18949   cat conftest.err >&5
18950   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18951   (exit $ac_status); } &&
18952          { ac_try='test -z "$ac_c_werror_flag"
18953                          || test ! -s conftest.err'
18954   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18955   (eval $ac_try) 2>&5
18956   ac_status=$?
18957   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18958   (exit $ac_status); }; } &&
18959          { ac_try='test -s conftest$ac_exeext'
18960   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18961   (eval $ac_try) 2>&5
18962   ac_status=$?
18963   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18964   (exit $ac_status); }; }; then
18965   eval "$as_ac_var=yes"
18966 else
18967   echo "$as_me: failed program was:" >&5
18968 sed 's/^/| /' conftest.$ac_ext >&5
18969
18970 eval "$as_ac_var=no"
18971 fi
18972 rm -f conftest.err conftest.$ac_objext \
18973       conftest$ac_exeext conftest.$ac_ext
18974 fi
18975 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18976 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18977 if test `eval echo '${'$as_ac_var'}'` = yes; then
18978   cat >>confdefs.h <<_ACEOF
18979 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18980 _ACEOF
18981
18982 fi
18983 done
18984
18985
18986
18987
18988
18989   fi
18990
18991
18992   # Avoid multiple inclusions of getndelim2.o into LIBOBJS.
18993   # This hack won't be needed after gnulib requires Autoconf 2.58 or later.
18994   case " $LIBOBJS " in
18995   *" getndelim2.$ac_objext "* ) ;;
18996   *) case $LIBOBJS in
18997     "getndelim2.$ac_objext"   | \
18998   *" getndelim2.$ac_objext"   | \
18999     "getndelim2.$ac_objext "* | \
19000   *" getndelim2.$ac_objext "* ) ;;
19001   *) LIBOBJS="$LIBOBJS getndelim2.$ac_objext" ;;
19002 esac
19003 ;;
19004   esac
19005
19006
19007
19008
19009
19010
19011
19012     :
19013
19014
19015   :
19016
19017   if test -z "$GETOPT_H"; then
19018     GETOPT_H=
19019
19020 for ac_header in getopt.h
19021 do
19022 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19023 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19024   echo "$as_me:$LINENO: checking for $ac_header" >&5
19025 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19026 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19027   echo $ECHO_N "(cached) $ECHO_C" >&6
19028 fi
19029 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19030 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19031 else
19032   # Is the header compilable?
19033 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19034 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19035 cat >conftest.$ac_ext <<_ACEOF
19036 /* confdefs.h.  */
19037 _ACEOF
19038 cat confdefs.h >>conftest.$ac_ext
19039 cat >>conftest.$ac_ext <<_ACEOF
19040 /* end confdefs.h.  */
19041 $ac_includes_default
19042 #include <$ac_header>
19043 _ACEOF
19044 rm -f conftest.$ac_objext
19045 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19046   (eval $ac_compile) 2>conftest.er1
19047   ac_status=$?
19048   grep -v '^ *+' conftest.er1 >conftest.err
19049   rm -f conftest.er1
19050   cat conftest.err >&5
19051   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19052   (exit $ac_status); } &&
19053          { ac_try='test -z "$ac_c_werror_flag"
19054                          || test ! -s conftest.err'
19055   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19056   (eval $ac_try) 2>&5
19057   ac_status=$?
19058   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19059   (exit $ac_status); }; } &&
19060          { ac_try='test -s conftest.$ac_objext'
19061   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19062   (eval $ac_try) 2>&5
19063   ac_status=$?
19064   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19065   (exit $ac_status); }; }; then
19066   ac_header_compiler=yes
19067 else
19068   echo "$as_me: failed program was:" >&5
19069 sed 's/^/| /' conftest.$ac_ext >&5
19070
19071 ac_header_compiler=no
19072 fi
19073 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19074 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19075 echo "${ECHO_T}$ac_header_compiler" >&6
19076
19077 # Is the header present?
19078 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19079 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19080 cat >conftest.$ac_ext <<_ACEOF
19081 /* confdefs.h.  */
19082 _ACEOF
19083 cat confdefs.h >>conftest.$ac_ext
19084 cat >>conftest.$ac_ext <<_ACEOF
19085 /* end confdefs.h.  */
19086 #include <$ac_header>
19087 _ACEOF
19088 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19089   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19090   ac_status=$?
19091   grep -v '^ *+' conftest.er1 >conftest.err
19092   rm -f conftest.er1
19093   cat conftest.err >&5
19094   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19095   (exit $ac_status); } >/dev/null; then
19096   if test -s conftest.err; then
19097     ac_cpp_err=$ac_c_preproc_warn_flag
19098     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19099   else
19100     ac_cpp_err=
19101   fi
19102 else
19103   ac_cpp_err=yes
19104 fi
19105 if test -z "$ac_cpp_err"; then
19106   ac_header_preproc=yes
19107 else
19108   echo "$as_me: failed program was:" >&5
19109 sed 's/^/| /' conftest.$ac_ext >&5
19110
19111   ac_header_preproc=no
19112 fi
19113 rm -f conftest.err conftest.$ac_ext
19114 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19115 echo "${ECHO_T}$ac_header_preproc" >&6
19116
19117 # So?  What about this header?
19118 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19119   yes:no: )
19120     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19121 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19122     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19123 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19124     ac_header_preproc=yes
19125     ;;
19126   no:yes:* )
19127     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19128 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19129     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
19130 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
19131     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19132 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19133     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
19134 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
19135     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19136 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19137     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19138 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19139     (
19140       cat <<\_ASBOX
19141 ## ------------------------------ ##
19142 ## Report this to bug-cvs@gnu.org ##
19143 ## ------------------------------ ##
19144 _ASBOX
19145     ) |
19146       sed "s/^/$as_me: WARNING:     /" >&2
19147     ;;
19148 esac
19149 echo "$as_me:$LINENO: checking for $ac_header" >&5
19150 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19151 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19152   echo $ECHO_N "(cached) $ECHO_C" >&6
19153 else
19154   eval "$as_ac_Header=\$ac_header_preproc"
19155 fi
19156 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19157 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19158
19159 fi
19160 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19161   cat >>confdefs.h <<_ACEOF
19162 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19163 _ACEOF
19164
19165 else
19166   GETOPT_H=getopt.h
19167 fi
19168
19169 done
19170
19171
19172 for ac_func in getopt_long_only
19173 do
19174 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19175 echo "$as_me:$LINENO: checking for $ac_func" >&5
19176 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19177 if eval "test \"\${$as_ac_var+set}\" = set"; then
19178   echo $ECHO_N "(cached) $ECHO_C" >&6
19179 else
19180   cat >conftest.$ac_ext <<_ACEOF
19181 /* confdefs.h.  */
19182 _ACEOF
19183 cat confdefs.h >>conftest.$ac_ext
19184 cat >>conftest.$ac_ext <<_ACEOF
19185 /* end confdefs.h.  */
19186 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19187    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19188 #define $ac_func innocuous_$ac_func
19189
19190 /* System header to define __stub macros and hopefully few prototypes,
19191     which can conflict with char $ac_func (); below.
19192     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19193     <limits.h> exists even on freestanding compilers.  */
19194
19195 #ifdef __STDC__
19196 # include <limits.h>
19197 #else
19198 # include <assert.h>
19199 #endif
19200
19201 #undef $ac_func
19202
19203 /* Override any gcc2 internal prototype to avoid an error.  */
19204 #ifdef __cplusplus
19205 extern "C"
19206 {
19207 #endif
19208 /* We use char because int might match the return type of a gcc2
19209    builtin and then its argument prototype would still apply.  */
19210 char $ac_func ();
19211 /* The GNU C library defines this for functions which it implements
19212     to always fail with ENOSYS.  Some functions are actually named
19213     something starting with __ and the normal name is an alias.  */
19214 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19215 choke me
19216 #else
19217 char (*f) () = $ac_func;
19218 #endif
19219 #ifdef __cplusplus
19220 }
19221 #endif
19222
19223 int
19224 main ()
19225 {
19226 return f != $ac_func;
19227   ;
19228   return 0;
19229 }
19230 _ACEOF
19231 rm -f conftest.$ac_objext conftest$ac_exeext
19232 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19233   (eval $ac_link) 2>conftest.er1
19234   ac_status=$?
19235   grep -v '^ *+' conftest.er1 >conftest.err
19236   rm -f conftest.er1
19237   cat conftest.err >&5
19238   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19239   (exit $ac_status); } &&
19240          { ac_try='test -z "$ac_c_werror_flag"
19241                          || test ! -s conftest.err'
19242   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19243   (eval $ac_try) 2>&5
19244   ac_status=$?
19245   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19246   (exit $ac_status); }; } &&
19247          { ac_try='test -s conftest$ac_exeext'
19248   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19249   (eval $ac_try) 2>&5
19250   ac_status=$?
19251   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19252   (exit $ac_status); }; }; then
19253   eval "$as_ac_var=yes"
19254 else
19255   echo "$as_me: failed program was:" >&5
19256 sed 's/^/| /' conftest.$ac_ext >&5
19257
19258 eval "$as_ac_var=no"
19259 fi
19260 rm -f conftest.err conftest.$ac_objext \
19261       conftest$ac_exeext conftest.$ac_ext
19262 fi
19263 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19264 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19265 if test `eval echo '${'$as_ac_var'}'` = yes; then
19266   cat >>confdefs.h <<_ACEOF
19267 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19268 _ACEOF
19269
19270 else
19271   GETOPT_H=getopt.h
19272 fi
19273 done
19274
19275
19276             echo "$as_me:$LINENO: checking whether optreset is declared" >&5
19277 echo $ECHO_N "checking whether optreset is declared... $ECHO_C" >&6
19278 if test "${ac_cv_have_decl_optreset+set}" = set; then
19279   echo $ECHO_N "(cached) $ECHO_C" >&6
19280 else
19281   cat >conftest.$ac_ext <<_ACEOF
19282 /* confdefs.h.  */
19283 _ACEOF
19284 cat confdefs.h >>conftest.$ac_ext
19285 cat >>conftest.$ac_ext <<_ACEOF
19286 /* end confdefs.h.  */
19287 #include <getopt.h>
19288
19289 int
19290 main ()
19291 {
19292 #ifndef optreset
19293   char *p = (char *) optreset;
19294 #endif
19295
19296   ;
19297   return 0;
19298 }
19299 _ACEOF
19300 rm -f conftest.$ac_objext
19301 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19302   (eval $ac_compile) 2>conftest.er1
19303   ac_status=$?
19304   grep -v '^ *+' conftest.er1 >conftest.err
19305   rm -f conftest.er1
19306   cat conftest.err >&5
19307   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19308   (exit $ac_status); } &&
19309          { ac_try='test -z "$ac_c_werror_flag"
19310                          || test ! -s conftest.err'
19311   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19312   (eval $ac_try) 2>&5
19313   ac_status=$?
19314   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19315   (exit $ac_status); }; } &&
19316          { ac_try='test -s conftest.$ac_objext'
19317   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19318   (eval $ac_try) 2>&5
19319   ac_status=$?
19320   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19321   (exit $ac_status); }; }; then
19322   ac_cv_have_decl_optreset=yes
19323 else
19324   echo "$as_me: failed program was:" >&5
19325 sed 's/^/| /' conftest.$ac_ext >&5
19326
19327 ac_cv_have_decl_optreset=no
19328 fi
19329 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19330 fi
19331 echo "$as_me:$LINENO: result: $ac_cv_have_decl_optreset" >&5
19332 echo "${ECHO_T}$ac_cv_have_decl_optreset" >&6
19333 if test $ac_cv_have_decl_optreset = yes; then
19334   GETOPT_H=getopt.h
19335 fi
19336
19337
19338     if test -n "$GETOPT_H"; then
19339
19340   GETOPT_H=getopt.h
19341   case $LIBOBJS in
19342     "getopt.$ac_objext"   | \
19343   *" getopt.$ac_objext"   | \
19344     "getopt.$ac_objext "* | \
19345   *" getopt.$ac_objext "* ) ;;
19346   *) LIBOBJS="$LIBOBJS getopt.$ac_objext" ;;
19347 esac
19348
19349   case $LIBOBJS in
19350     "getopt1.$ac_objext"   | \
19351   *" getopt1.$ac_objext"   | \
19352     "getopt1.$ac_objext "* | \
19353   *" getopt1.$ac_objext "* ) ;;
19354   *) LIBOBJS="$LIBOBJS getopt1.$ac_objext" ;;
19355 esac
19356
19357
19358 cat >>confdefs.h <<\_ACEOF
19359 #define __GETOPT_PREFIX rpl_
19360 _ACEOF
19361
19362
19363
19364     fi
19365   fi
19366
19367
19368
19369
19370
19371   :
19372
19373
19374
19375
19376
19377
19378
19379
19380
19381 for ac_header in OS.h
19382 do
19383 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19384 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19385   echo "$as_me:$LINENO: checking for $ac_header" >&5
19386 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19387 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19388   echo $ECHO_N "(cached) $ECHO_C" >&6
19389 fi
19390 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19391 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19392 else
19393   # Is the header compilable?
19394 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19395 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19396 cat >conftest.$ac_ext <<_ACEOF
19397 /* confdefs.h.  */
19398 _ACEOF
19399 cat confdefs.h >>conftest.$ac_ext
19400 cat >>conftest.$ac_ext <<_ACEOF
19401 /* end confdefs.h.  */
19402 $ac_includes_default
19403 #include <$ac_header>
19404 _ACEOF
19405 rm -f conftest.$ac_objext
19406 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19407   (eval $ac_compile) 2>conftest.er1
19408   ac_status=$?
19409   grep -v '^ *+' conftest.er1 >conftest.err
19410   rm -f conftest.er1
19411   cat conftest.err >&5
19412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19413   (exit $ac_status); } &&
19414          { ac_try='test -z "$ac_c_werror_flag"
19415                          || test ! -s conftest.err'
19416   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19417   (eval $ac_try) 2>&5
19418   ac_status=$?
19419   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19420   (exit $ac_status); }; } &&
19421          { ac_try='test -s conftest.$ac_objext'
19422   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19423   (eval $ac_try) 2>&5
19424   ac_status=$?
19425   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19426   (exit $ac_status); }; }; then
19427   ac_header_compiler=yes
19428 else
19429   echo "$as_me: failed program was:" >&5
19430 sed 's/^/| /' conftest.$ac_ext >&5
19431
19432 ac_header_compiler=no
19433 fi
19434 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19435 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19436 echo "${ECHO_T}$ac_header_compiler" >&6
19437
19438 # Is the header present?
19439 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19440 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19441 cat >conftest.$ac_ext <<_ACEOF
19442 /* confdefs.h.  */
19443 _ACEOF
19444 cat confdefs.h >>conftest.$ac_ext
19445 cat >>conftest.$ac_ext <<_ACEOF
19446 /* end confdefs.h.  */
19447 #include <$ac_header>
19448 _ACEOF
19449 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19450   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19451   ac_status=$?
19452   grep -v '^ *+' conftest.er1 >conftest.err
19453   rm -f conftest.er1
19454   cat conftest.err >&5
19455   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19456   (exit $ac_status); } >/dev/null; then
19457   if test -s conftest.err; then
19458     ac_cpp_err=$ac_c_preproc_warn_flag
19459     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19460   else
19461     ac_cpp_err=
19462   fi
19463 else
19464   ac_cpp_err=yes
19465 fi
19466 if test -z "$ac_cpp_err"; then
19467   ac_header_preproc=yes
19468 else
19469   echo "$as_me: failed program was:" >&5
19470 sed 's/^/| /' conftest.$ac_ext >&5
19471
19472   ac_header_preproc=no
19473 fi
19474 rm -f conftest.err conftest.$ac_ext
19475 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19476 echo "${ECHO_T}$ac_header_preproc" >&6
19477
19478 # So?  What about this header?
19479 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19480   yes:no: )
19481     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19482 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19483     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19484 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19485     ac_header_preproc=yes
19486     ;;
19487   no:yes:* )
19488     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19489 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19490     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
19491 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
19492     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19493 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19494     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
19495 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
19496     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19497 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19498     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19499 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19500     (
19501       cat <<\_ASBOX
19502 ## ------------------------------ ##
19503 ## Report this to bug-cvs@gnu.org ##
19504 ## ------------------------------ ##
19505 _ASBOX
19506     ) |
19507       sed "s/^/$as_me: WARNING:     /" >&2
19508     ;;
19509 esac
19510 echo "$as_me:$LINENO: checking for $ac_header" >&5
19511 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19512 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19513   echo $ECHO_N "(cached) $ECHO_C" >&6
19514 else
19515   eval "$as_ac_Header=\$ac_header_preproc"
19516 fi
19517 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19518 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19519
19520 fi
19521 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19522   cat >>confdefs.h <<_ACEOF
19523 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19524 _ACEOF
19525
19526 fi
19527
19528 done
19529
19530
19531 for ac_func in getpagesize
19532 do
19533 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19534 echo "$as_me:$LINENO: checking for $ac_func" >&5
19535 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19536 if eval "test \"\${$as_ac_var+set}\" = set"; then
19537   echo $ECHO_N "(cached) $ECHO_C" >&6
19538 else
19539   cat >conftest.$ac_ext <<_ACEOF
19540 /* confdefs.h.  */
19541 _ACEOF
19542 cat confdefs.h >>conftest.$ac_ext
19543 cat >>conftest.$ac_ext <<_ACEOF
19544 /* end confdefs.h.  */
19545 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19546    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19547 #define $ac_func innocuous_$ac_func
19548
19549 /* System header to define __stub macros and hopefully few prototypes,
19550     which can conflict with char $ac_func (); below.
19551     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19552     <limits.h> exists even on freestanding compilers.  */
19553
19554 #ifdef __STDC__
19555 # include <limits.h>
19556 #else
19557 # include <assert.h>
19558 #endif
19559
19560 #undef $ac_func
19561
19562 /* Override any gcc2 internal prototype to avoid an error.  */
19563 #ifdef __cplusplus
19564 extern "C"
19565 {
19566 #endif
19567 /* We use char because int might match the return type of a gcc2
19568    builtin and then its argument prototype would still apply.  */
19569 char $ac_func ();
19570 /* The GNU C library defines this for functions which it implements
19571     to always fail with ENOSYS.  Some functions are actually named
19572     something starting with __ and the normal name is an alias.  */
19573 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19574 choke me
19575 #else
19576 char (*f) () = $ac_func;
19577 #endif
19578 #ifdef __cplusplus
19579 }
19580 #endif
19581
19582 int
19583 main ()
19584 {
19585 return f != $ac_func;
19586   ;
19587   return 0;
19588 }
19589 _ACEOF
19590 rm -f conftest.$ac_objext conftest$ac_exeext
19591 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19592   (eval $ac_link) 2>conftest.er1
19593   ac_status=$?
19594   grep -v '^ *+' conftest.er1 >conftest.err
19595   rm -f conftest.er1
19596   cat conftest.err >&5
19597   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19598   (exit $ac_status); } &&
19599          { ac_try='test -z "$ac_c_werror_flag"
19600                          || test ! -s conftest.err'
19601   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19602   (eval $ac_try) 2>&5
19603   ac_status=$?
19604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19605   (exit $ac_status); }; } &&
19606          { ac_try='test -s conftest$ac_exeext'
19607   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19608   (eval $ac_try) 2>&5
19609   ac_status=$?
19610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19611   (exit $ac_status); }; }; then
19612   eval "$as_ac_var=yes"
19613 else
19614   echo "$as_me: failed program was:" >&5
19615 sed 's/^/| /' conftest.$ac_ext >&5
19616
19617 eval "$as_ac_var=no"
19618 fi
19619 rm -f conftest.err conftest.$ac_objext \
19620       conftest$ac_exeext conftest.$ac_ext
19621 fi
19622 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19623 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19624 if test `eval echo '${'$as_ac_var'}'` = yes; then
19625   cat >>confdefs.h <<_ACEOF
19626 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19627 _ACEOF
19628
19629 fi
19630 done
19631
19632
19633
19634
19635
19636
19637   :
19638
19639
19640
19641
19642
19643     case $LIBOBJS in
19644     "getpass.$ac_objext"   | \
19645   *" getpass.$ac_objext"   | \
19646     "getpass.$ac_objext "* | \
19647   *" getpass.$ac_objext "* ) ;;
19648   *) LIBOBJS="$LIBOBJS getpass.$ac_objext" ;;
19649 esac
19650
19651
19652
19653   :
19654
19655
19656
19657
19658
19659
19660   :
19661
19662
19663
19664
19665
19666
19667
19668
19669
19670
19671
19672
19673
19674
19675
19676
19677
19678   :
19679
19680
19681 cat >>confdefs.h <<\_ACEOF
19682 #define getpass gnu_getpass
19683 _ACEOF
19684
19685
19686
19687
19688   case $LIBOBJS in
19689     "gettime.$ac_objext"   | \
19690   *" gettime.$ac_objext"   | \
19691     "gettime.$ac_objext "* | \
19692   *" gettime.$ac_objext "* ) ;;
19693   *) LIBOBJS="$LIBOBJS gettime.$ac_objext" ;;
19694 esac
19695
19696
19697
19698
19699
19700   :
19701
19702
19703
19704
19705
19706
19707
19708
19709
19710
19711
19712  echo "$as_me:$LINENO: checking whether gettimeofday clobbers localtime buffer" >&5
19713 echo $ECHO_N "checking whether gettimeofday clobbers localtime buffer... $ECHO_C" >&6
19714 if test "${jm_cv_func_gettimeofday_clobber+set}" = set; then
19715   echo $ECHO_N "(cached) $ECHO_C" >&6
19716 else
19717   if test "$cross_compiling" = yes; then
19718          jm_cv_func_gettimeofday_clobber=yes
19719 else
19720   cat >conftest.$ac_ext <<_ACEOF
19721 /* confdefs.h.  */
19722 _ACEOF
19723 cat confdefs.h >>conftest.$ac_ext
19724 cat >>conftest.$ac_ext <<_ACEOF
19725 /* end confdefs.h.  */
19726
19727 #include <stdio.h>
19728 #include <string.h>
19729
19730 #if TIME_WITH_SYS_TIME
19731 # include <sys/time.h>
19732 # include <time.h>
19733 #else
19734 # if HAVE_SYS_TIME_H
19735 #  include <sys/time.h>
19736 # else
19737 #  include <time.h>
19738 # endif
19739 #endif
19740
19741 #include <stdlib.h>
19742
19743 int
19744 main ()
19745 {
19746   time_t t = 0;
19747   struct tm *lt;
19748   struct tm saved_lt;
19749   struct timeval tv;
19750   lt = localtime (&t);
19751   saved_lt = *lt;
19752   gettimeofday (&tv, NULL);
19753   if (memcmp (lt, &saved_lt, sizeof (struct tm)) != 0)
19754     exit (1);
19755
19756   exit (0);
19757 }
19758
19759 _ACEOF
19760 rm -f conftest$ac_exeext
19761 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19762   (eval $ac_link) 2>&5
19763   ac_status=$?
19764   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19765   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19766   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19767   (eval $ac_try) 2>&5
19768   ac_status=$?
19769   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19770   (exit $ac_status); }; }; then
19771   jm_cv_func_gettimeofday_clobber=no
19772 else
19773   echo "$as_me: program exited with status $ac_status" >&5
19774 echo "$as_me: failed program was:" >&5
19775 sed 's/^/| /' conftest.$ac_ext >&5
19776
19777 ( exit $ac_status )
19778 jm_cv_func_gettimeofday_clobber=yes
19779 fi
19780 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19781 fi
19782
19783 fi
19784 echo "$as_me:$LINENO: result: $jm_cv_func_gettimeofday_clobber" >&5
19785 echo "${ECHO_T}$jm_cv_func_gettimeofday_clobber" >&6
19786   if test $jm_cv_func_gettimeofday_clobber = yes; then
19787
19788   case $LIBOBJS in
19789     "gettimeofday.$ac_objext"   | \
19790   *" gettimeofday.$ac_objext"   | \
19791     "gettimeofday.$ac_objext "* | \
19792   *" gettimeofday.$ac_objext "* ) ;;
19793   *) LIBOBJS="$LIBOBJS gettimeofday.$ac_objext" ;;
19794 esac
19795
19796
19797 cat >>confdefs.h <<\_ACEOF
19798 #define gmtime rpl_gmtime
19799 _ACEOF
19800
19801
19802 cat >>confdefs.h <<\_ACEOF
19803 #define localtime rpl_localtime
19804 _ACEOF
19805
19806
19807
19808
19809 cat >>confdefs.h <<\_ACEOF
19810 #define gettimeofday rpl_gettimeofday
19811 _ACEOF
19812
19813
19814 cat >>confdefs.h <<\_ACEOF
19815 #define GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER 1
19816 _ACEOF
19817
19818
19819
19820
19821   fi
19822
19823
19824   echo "$as_me:$LINENO: checking whether lstat accepts an empty string" >&5
19825 echo $ECHO_N "checking whether lstat accepts an empty string... $ECHO_C" >&6
19826 if test "${ac_cv_func_lstat_empty_string_bug+set}" = set; then
19827   echo $ECHO_N "(cached) $ECHO_C" >&6
19828 else
19829   if test "$cross_compiling" = yes; then
19830   ac_cv_func_lstat_empty_string_bug=yes
19831 else
19832   cat >conftest.$ac_ext <<_ACEOF
19833 /* confdefs.h.  */
19834 _ACEOF
19835 cat confdefs.h >>conftest.$ac_ext
19836 cat >>conftest.$ac_ext <<_ACEOF
19837 /* end confdefs.h.  */
19838 $ac_includes_default
19839 int
19840 main ()
19841 {
19842 struct stat sbuf;
19843   exit (lstat ("", &sbuf) ? 1 : 0);
19844   ;
19845   return 0;
19846 }
19847 _ACEOF
19848 rm -f conftest$ac_exeext
19849 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19850   (eval $ac_link) 2>&5
19851   ac_status=$?
19852   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19853   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19854   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19855   (eval $ac_try) 2>&5
19856   ac_status=$?
19857   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19858   (exit $ac_status); }; }; then
19859   ac_cv_func_lstat_empty_string_bug=yes
19860 else
19861   echo "$as_me: program exited with status $ac_status" >&5
19862 echo "$as_me: failed program was:" >&5
19863 sed 's/^/| /' conftest.$ac_ext >&5
19864
19865 ( exit $ac_status )
19866 ac_cv_func_lstat_empty_string_bug=no
19867 fi
19868 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19869 fi
19870 fi
19871 echo "$as_me:$LINENO: result: $ac_cv_func_lstat_empty_string_bug" >&5
19872 echo "${ECHO_T}$ac_cv_func_lstat_empty_string_bug" >&6
19873 if test $ac_cv_func_lstat_empty_string_bug = yes; then
19874   case $LIBOBJS in
19875     "lstat.$ac_objext"   | \
19876   *" lstat.$ac_objext"   | \
19877     "lstat.$ac_objext "* | \
19878   *" lstat.$ac_objext "* ) ;;
19879   *) LIBOBJS="$LIBOBJS lstat.$ac_objext" ;;
19880 esac
19881
19882
19883 cat >>confdefs.h <<_ACEOF
19884 #define HAVE_LSTAT_EMPTY_STRING_BUG 1
19885 _ACEOF
19886
19887 fi
19888
19889     if test $ac_cv_func_lstat_empty_string_bug = yes; then
19890
19891
19892   :
19893
19894   fi
19895
19896
19897 for ac_header in stdlib.h
19898 do
19899 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19900 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19901   echo "$as_me:$LINENO: checking for $ac_header" >&5
19902 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19903 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19904   echo $ECHO_N "(cached) $ECHO_C" >&6
19905 fi
19906 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19907 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19908 else
19909   # Is the header compilable?
19910 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19911 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19912 cat >conftest.$ac_ext <<_ACEOF
19913 /* confdefs.h.  */
19914 _ACEOF
19915 cat confdefs.h >>conftest.$ac_ext
19916 cat >>conftest.$ac_ext <<_ACEOF
19917 /* end confdefs.h.  */
19918 $ac_includes_default
19919 #include <$ac_header>
19920 _ACEOF
19921 rm -f conftest.$ac_objext
19922 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19923   (eval $ac_compile) 2>conftest.er1
19924   ac_status=$?
19925   grep -v '^ *+' conftest.er1 >conftest.err
19926   rm -f conftest.er1
19927   cat conftest.err >&5
19928   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19929   (exit $ac_status); } &&
19930          { ac_try='test -z "$ac_c_werror_flag"
19931                          || test ! -s conftest.err'
19932   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19933   (eval $ac_try) 2>&5
19934   ac_status=$?
19935   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19936   (exit $ac_status); }; } &&
19937          { ac_try='test -s conftest.$ac_objext'
19938   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19939   (eval $ac_try) 2>&5
19940   ac_status=$?
19941   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19942   (exit $ac_status); }; }; then
19943   ac_header_compiler=yes
19944 else
19945   echo "$as_me: failed program was:" >&5
19946 sed 's/^/| /' conftest.$ac_ext >&5
19947
19948 ac_header_compiler=no
19949 fi
19950 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19951 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19952 echo "${ECHO_T}$ac_header_compiler" >&6
19953
19954 # Is the header present?
19955 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19956 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19957 cat >conftest.$ac_ext <<_ACEOF
19958 /* confdefs.h.  */
19959 _ACEOF
19960 cat confdefs.h >>conftest.$ac_ext
19961 cat >>conftest.$ac_ext <<_ACEOF
19962 /* end confdefs.h.  */
19963 #include <$ac_header>
19964 _ACEOF
19965 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19966   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19967   ac_status=$?
19968   grep -v '^ *+' conftest.er1 >conftest.err
19969   rm -f conftest.er1
19970   cat conftest.err >&5
19971   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19972   (exit $ac_status); } >/dev/null; then
19973   if test -s conftest.err; then
19974     ac_cpp_err=$ac_c_preproc_warn_flag
19975     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19976   else
19977     ac_cpp_err=
19978   fi
19979 else
19980   ac_cpp_err=yes
19981 fi
19982 if test -z "$ac_cpp_err"; then
19983   ac_header_preproc=yes
19984 else
19985   echo "$as_me: failed program was:" >&5
19986 sed 's/^/| /' conftest.$ac_ext >&5
19987
19988   ac_header_preproc=no
19989 fi
19990 rm -f conftest.err conftest.$ac_ext
19991 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19992 echo "${ECHO_T}$ac_header_preproc" >&6
19993
19994 # So?  What about this header?
19995 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19996   yes:no: )
19997     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19998 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19999     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20000 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20001     ac_header_preproc=yes
20002     ;;
20003   no:yes:* )
20004     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20005 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20006     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
20007 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
20008     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20009 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20010     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
20011 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
20012     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20013 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20014     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20015 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20016     (
20017       cat <<\_ASBOX
20018 ## ------------------------------ ##
20019 ## Report this to bug-cvs@gnu.org ##
20020 ## ------------------------------ ##
20021 _ASBOX
20022     ) |
20023       sed "s/^/$as_me: WARNING:     /" >&2
20024     ;;
20025 esac
20026 echo "$as_me:$LINENO: checking for $ac_header" >&5
20027 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20028 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20029   echo $ECHO_N "(cached) $ECHO_C" >&6
20030 else
20031   eval "$as_ac_Header=\$ac_header_preproc"
20032 fi
20033 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20034 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20035
20036 fi
20037 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20038   cat >>confdefs.h <<_ACEOF
20039 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20040 _ACEOF
20041
20042 fi
20043
20044 done
20045
20046 echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
20047 echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6
20048 if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
20049   echo $ECHO_N "(cached) $ECHO_C" >&6
20050 else
20051   if test "$cross_compiling" = yes; then
20052   ac_cv_func_malloc_0_nonnull=no
20053 else
20054   cat >conftest.$ac_ext <<_ACEOF
20055 /* confdefs.h.  */
20056 _ACEOF
20057 cat confdefs.h >>conftest.$ac_ext
20058 cat >>conftest.$ac_ext <<_ACEOF
20059 /* end confdefs.h.  */
20060 #if STDC_HEADERS || HAVE_STDLIB_H
20061 # include <stdlib.h>
20062 #else
20063 char *malloc ();
20064 #endif
20065
20066 int
20067 main ()
20068 {
20069 exit (malloc (0) ? 0 : 1);
20070   ;
20071   return 0;
20072 }
20073 _ACEOF
20074 rm -f conftest$ac_exeext
20075 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20076   (eval $ac_link) 2>&5
20077   ac_status=$?
20078   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20079   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20080   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20081   (eval $ac_try) 2>&5
20082   ac_status=$?
20083   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20084   (exit $ac_status); }; }; then
20085   ac_cv_func_malloc_0_nonnull=yes
20086 else
20087   echo "$as_me: program exited with status $ac_status" >&5
20088 echo "$as_me: failed program was:" >&5
20089 sed 's/^/| /' conftest.$ac_ext >&5
20090
20091 ( exit $ac_status )
20092 ac_cv_func_malloc_0_nonnull=no
20093 fi
20094 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20095 fi
20096 fi
20097 echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
20098 echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6
20099 if test $ac_cv_func_malloc_0_nonnull = yes; then
20100
20101 cat >>confdefs.h <<\_ACEOF
20102 #define HAVE_MALLOC 1
20103 _ACEOF
20104
20105 else
20106   cat >>confdefs.h <<\_ACEOF
20107 #define HAVE_MALLOC 0
20108 _ACEOF
20109
20110    case $LIBOBJS in
20111     "malloc.$ac_objext"   | \
20112   *" malloc.$ac_objext"   | \
20113     "malloc.$ac_objext "* | \
20114   *" malloc.$ac_objext "* ) ;;
20115   *) LIBOBJS="$LIBOBJS malloc.$ac_objext" ;;
20116 esac
20117
20118
20119 cat >>confdefs.h <<\_ACEOF
20120 #define malloc rpl_malloc
20121 _ACEOF
20122
20123 fi
20124
20125
20126
20127
20128
20129   case $LIBOBJS in
20130     "md5.$ac_objext"   | \
20131   *" md5.$ac_objext"   | \
20132     "md5.$ac_objext "* | \
20133   *" md5.$ac_objext "* ) ;;
20134   *) LIBOBJS="$LIBOBJS md5.$ac_objext" ;;
20135 esac
20136
20137
20138
20139
20140
20141   :
20142
20143
20144
20145 for ac_func in memmove
20146 do
20147 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20148 echo "$as_me:$LINENO: checking for $ac_func" >&5
20149 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20150 if eval "test \"\${$as_ac_var+set}\" = set"; then
20151   echo $ECHO_N "(cached) $ECHO_C" >&6
20152 else
20153   cat >conftest.$ac_ext <<_ACEOF
20154 /* confdefs.h.  */
20155 _ACEOF
20156 cat confdefs.h >>conftest.$ac_ext
20157 cat >>conftest.$ac_ext <<_ACEOF
20158 /* end confdefs.h.  */
20159 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20160    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20161 #define $ac_func innocuous_$ac_func
20162
20163 /* System header to define __stub macros and hopefully few prototypes,
20164     which can conflict with char $ac_func (); below.
20165     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20166     <limits.h> exists even on freestanding compilers.  */
20167
20168 #ifdef __STDC__
20169 # include <limits.h>
20170 #else
20171 # include <assert.h>
20172 #endif
20173
20174 #undef $ac_func
20175
20176 /* Override any gcc2 internal prototype to avoid an error.  */
20177 #ifdef __cplusplus
20178 extern "C"
20179 {
20180 #endif
20181 /* We use char because int might match the return type of a gcc2
20182    builtin and then its argument prototype would still apply.  */
20183 char $ac_func ();
20184 /* The GNU C library defines this for functions which it implements
20185     to always fail with ENOSYS.  Some functions are actually named
20186     something starting with __ and the normal name is an alias.  */
20187 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20188 choke me
20189 #else
20190 char (*f) () = $ac_func;
20191 #endif
20192 #ifdef __cplusplus
20193 }
20194 #endif
20195
20196 int
20197 main ()
20198 {
20199 return f != $ac_func;
20200   ;
20201   return 0;
20202 }
20203 _ACEOF
20204 rm -f conftest.$ac_objext conftest$ac_exeext
20205 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20206   (eval $ac_link) 2>conftest.er1
20207   ac_status=$?
20208   grep -v '^ *+' conftest.er1 >conftest.err
20209   rm -f conftest.er1
20210   cat conftest.err >&5
20211   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20212   (exit $ac_status); } &&
20213          { ac_try='test -z "$ac_c_werror_flag"
20214                          || test ! -s conftest.err'
20215   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20216   (eval $ac_try) 2>&5
20217   ac_status=$?
20218   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20219   (exit $ac_status); }; } &&
20220          { ac_try='test -s conftest$ac_exeext'
20221   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20222   (eval $ac_try) 2>&5
20223   ac_status=$?
20224   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20225   (exit $ac_status); }; }; then
20226   eval "$as_ac_var=yes"
20227 else
20228   echo "$as_me: failed program was:" >&5
20229 sed 's/^/| /' conftest.$ac_ext >&5
20230
20231 eval "$as_ac_var=no"
20232 fi
20233 rm -f conftest.err conftest.$ac_objext \
20234       conftest$ac_exeext conftest.$ac_ext
20235 fi
20236 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20237 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20238 if test `eval echo '${'$as_ac_var'}'` = yes; then
20239   cat >>confdefs.h <<_ACEOF
20240 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20241 _ACEOF
20242
20243 else
20244   case $LIBOBJS in
20245     "$ac_func.$ac_objext"   | \
20246   *" $ac_func.$ac_objext"   | \
20247     "$ac_func.$ac_objext "* | \
20248   *" $ac_func.$ac_objext "* ) ;;
20249   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
20250 esac
20251
20252 fi
20253 done
20254
20255
20256   if test $ac_cv_func_memmove = no; then
20257
20258   :
20259
20260   fi
20261
20262
20263
20264
20265
20266
20267
20268 for ac_func in mempcpy
20269 do
20270 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20271 echo "$as_me:$LINENO: checking for $ac_func" >&5
20272 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20273 if eval "test \"\${$as_ac_var+set}\" = set"; then
20274   echo $ECHO_N "(cached) $ECHO_C" >&6
20275 else
20276   cat >conftest.$ac_ext <<_ACEOF
20277 /* confdefs.h.  */
20278 _ACEOF
20279 cat confdefs.h >>conftest.$ac_ext
20280 cat >>conftest.$ac_ext <<_ACEOF
20281 /* end confdefs.h.  */
20282 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20283    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20284 #define $ac_func innocuous_$ac_func
20285
20286 /* System header to define __stub macros and hopefully few prototypes,
20287     which can conflict with char $ac_func (); below.
20288     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20289     <limits.h> exists even on freestanding compilers.  */
20290
20291 #ifdef __STDC__
20292 # include <limits.h>
20293 #else
20294 # include <assert.h>
20295 #endif
20296
20297 #undef $ac_func
20298
20299 /* Override any gcc2 internal prototype to avoid an error.  */
20300 #ifdef __cplusplus
20301 extern "C"
20302 {
20303 #endif
20304 /* We use char because int might match the return type of a gcc2
20305    builtin and then its argument prototype would still apply.  */
20306 char $ac_func ();
20307 /* The GNU C library defines this for functions which it implements
20308     to always fail with ENOSYS.  Some functions are actually named
20309     something starting with __ and the normal name is an alias.  */
20310 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20311 choke me
20312 #else
20313 char (*f) () = $ac_func;
20314 #endif
20315 #ifdef __cplusplus
20316 }
20317 #endif
20318
20319 int
20320 main ()
20321 {
20322 return f != $ac_func;
20323   ;
20324   return 0;
20325 }
20326 _ACEOF
20327 rm -f conftest.$ac_objext conftest$ac_exeext
20328 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20329   (eval $ac_link) 2>conftest.er1
20330   ac_status=$?
20331   grep -v '^ *+' conftest.er1 >conftest.err
20332   rm -f conftest.er1
20333   cat conftest.err >&5
20334   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20335   (exit $ac_status); } &&
20336          { ac_try='test -z "$ac_c_werror_flag"
20337                          || test ! -s conftest.err'
20338   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20339   (eval $ac_try) 2>&5
20340   ac_status=$?
20341   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20342   (exit $ac_status); }; } &&
20343          { ac_try='test -s conftest$ac_exeext'
20344   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20345   (eval $ac_try) 2>&5
20346   ac_status=$?
20347   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20348   (exit $ac_status); }; }; then
20349   eval "$as_ac_var=yes"
20350 else
20351   echo "$as_me: failed program was:" >&5
20352 sed 's/^/| /' conftest.$ac_ext >&5
20353
20354 eval "$as_ac_var=no"
20355 fi
20356 rm -f conftest.err conftest.$ac_objext \
20357       conftest$ac_exeext conftest.$ac_ext
20358 fi
20359 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20360 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20361 if test `eval echo '${'$as_ac_var'}'` = yes; then
20362   cat >>confdefs.h <<_ACEOF
20363 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20364 _ACEOF
20365
20366 else
20367   case $LIBOBJS in
20368     "$ac_func.$ac_objext"   | \
20369   *" $ac_func.$ac_objext"   | \
20370     "$ac_func.$ac_objext "* | \
20371   *" $ac_func.$ac_objext "* ) ;;
20372   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
20373 esac
20374
20375 fi
20376 done
20377
20378
20379   if test $ac_cv_func_mempcpy = no; then
20380
20381   :
20382
20383   fi
20384
20385
20386
20387
20388
20389
20390
20391   :
20392
20393
20394
20395
20396
20397
20398
20399 for ac_func in memrchr
20400 do
20401 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20402 echo "$as_me:$LINENO: checking for $ac_func" >&5
20403 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20404 if eval "test \"\${$as_ac_var+set}\" = set"; then
20405   echo $ECHO_N "(cached) $ECHO_C" >&6
20406 else
20407   cat >conftest.$ac_ext <<_ACEOF
20408 /* confdefs.h.  */
20409 _ACEOF
20410 cat confdefs.h >>conftest.$ac_ext
20411 cat >>conftest.$ac_ext <<_ACEOF
20412 /* end confdefs.h.  */
20413 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20414    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20415 #define $ac_func innocuous_$ac_func
20416
20417 /* System header to define __stub macros and hopefully few prototypes,
20418     which can conflict with char $ac_func (); below.
20419     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20420     <limits.h> exists even on freestanding compilers.  */
20421
20422 #ifdef __STDC__
20423 # include <limits.h>
20424 #else
20425 # include <assert.h>
20426 #endif
20427
20428 #undef $ac_func
20429
20430 /* Override any gcc2 internal prototype to avoid an error.  */
20431 #ifdef __cplusplus
20432 extern "C"
20433 {
20434 #endif
20435 /* We use char because int might match the return type of a gcc2
20436    builtin and then its argument prototype would still apply.  */
20437 char $ac_func ();
20438 /* The GNU C library defines this for functions which it implements
20439     to always fail with ENOSYS.  Some functions are actually named
20440     something starting with __ and the normal name is an alias.  */
20441 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20442 choke me
20443 #else
20444 char (*f) () = $ac_func;
20445 #endif
20446 #ifdef __cplusplus
20447 }
20448 #endif
20449
20450 int
20451 main ()
20452 {
20453 return f != $ac_func;
20454   ;
20455   return 0;
20456 }
20457 _ACEOF
20458 rm -f conftest.$ac_objext conftest$ac_exeext
20459 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20460   (eval $ac_link) 2>conftest.er1
20461   ac_status=$?
20462   grep -v '^ *+' conftest.er1 >conftest.err
20463   rm -f conftest.er1
20464   cat conftest.err >&5
20465   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20466   (exit $ac_status); } &&
20467          { ac_try='test -z "$ac_c_werror_flag"
20468                          || test ! -s conftest.err'
20469   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20470   (eval $ac_try) 2>&5
20471   ac_status=$?
20472   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20473   (exit $ac_status); }; } &&
20474          { ac_try='test -s conftest$ac_exeext'
20475   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20476   (eval $ac_try) 2>&5
20477   ac_status=$?
20478   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20479   (exit $ac_status); }; }; then
20480   eval "$as_ac_var=yes"
20481 else
20482   echo "$as_me: failed program was:" >&5
20483 sed 's/^/| /' conftest.$ac_ext >&5
20484
20485 eval "$as_ac_var=no"
20486 fi
20487 rm -f conftest.err conftest.$ac_objext \
20488       conftest$ac_exeext conftest.$ac_ext
20489 fi
20490 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20491 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20492 if test `eval echo '${'$as_ac_var'}'` = yes; then
20493   cat >>confdefs.h <<_ACEOF
20494 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20495 _ACEOF
20496
20497 else
20498   case $LIBOBJS in
20499     "$ac_func.$ac_objext"   | \
20500   *" $ac_func.$ac_objext"   | \
20501     "$ac_func.$ac_objext "* | \
20502   *" $ac_func.$ac_objext "* ) ;;
20503   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
20504 esac
20505
20506 fi
20507 done
20508
20509
20510   if test $ac_cv_func_memrchr = no; then
20511     :
20512   fi
20513
20514     echo "$as_me:$LINENO: checking whether mkdir fails due to a trailing slash" >&5
20515 echo $ECHO_N "checking whether mkdir fails due to a trailing slash... $ECHO_C" >&6
20516 if test "${gl_cv_func_mkdir_trailing_slash_bug+set}" = set; then
20517   echo $ECHO_N "(cached) $ECHO_C" >&6
20518 else
20519
20520       # Arrange for deletion of the temporary directory this test might create.
20521       ac_clean_files="$ac_clean_files confdir-slash"
20522       if test "$cross_compiling" = yes; then
20523   gl_cv_func_mkdir_trailing_slash_bug=yes
20524
20525 else
20526   cat >conftest.$ac_ext <<_ACEOF
20527 /* confdefs.h.  */
20528 _ACEOF
20529 cat confdefs.h >>conftest.$ac_ext
20530 cat >>conftest.$ac_ext <<_ACEOF
20531 /* end confdefs.h.  */
20532
20533 #       include <sys/types.h>
20534 #       include <sys/stat.h>
20535 #       include <stdlib.h>
20536         int main ()
20537         {
20538           rmdir ("confdir-slash");
20539           exit (mkdir ("confdir-slash/", 0700));
20540         }
20541
20542 _ACEOF
20543 rm -f conftest$ac_exeext
20544 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20545   (eval $ac_link) 2>&5
20546   ac_status=$?
20547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20548   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20549   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20550   (eval $ac_try) 2>&5
20551   ac_status=$?
20552   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20553   (exit $ac_status); }; }; then
20554   gl_cv_func_mkdir_trailing_slash_bug=no
20555 else
20556   echo "$as_me: program exited with status $ac_status" >&5
20557 echo "$as_me: failed program was:" >&5
20558 sed 's/^/| /' conftest.$ac_ext >&5
20559
20560 ( exit $ac_status )
20561 gl_cv_func_mkdir_trailing_slash_bug=yes
20562 fi
20563 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20564 fi
20565
20566
20567 fi
20568 echo "$as_me:$LINENO: result: $gl_cv_func_mkdir_trailing_slash_bug" >&5
20569 echo "${ECHO_T}$gl_cv_func_mkdir_trailing_slash_bug" >&6
20570
20571   if test $gl_cv_func_mkdir_trailing_slash_bug = yes; then
20572     case $LIBOBJS in
20573     "mkdir.$ac_objext"   | \
20574   *" mkdir.$ac_objext"   | \
20575     "mkdir.$ac_objext "* | \
20576   *" mkdir.$ac_objext "* ) ;;
20577   *) LIBOBJS="$LIBOBJS mkdir.$ac_objext" ;;
20578 esac
20579
20580
20581 cat >>confdefs.h <<\_ACEOF
20582 #define mkdir rpl_mkdir
20583 _ACEOF
20584
20585     :
20586   fi
20587
20588
20589 for ac_func in mkstemp
20590 do
20591 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20592 echo "$as_me:$LINENO: checking for $ac_func" >&5
20593 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20594 if eval "test \"\${$as_ac_var+set}\" = set"; then
20595   echo $ECHO_N "(cached) $ECHO_C" >&6
20596 else
20597   cat >conftest.$ac_ext <<_ACEOF
20598 /* confdefs.h.  */
20599 _ACEOF
20600 cat confdefs.h >>conftest.$ac_ext
20601 cat >>conftest.$ac_ext <<_ACEOF
20602 /* end confdefs.h.  */
20603 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20604    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20605 #define $ac_func innocuous_$ac_func
20606
20607 /* System header to define __stub macros and hopefully few prototypes,
20608     which can conflict with char $ac_func (); below.
20609     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20610     <limits.h> exists even on freestanding compilers.  */
20611
20612 #ifdef __STDC__
20613 # include <limits.h>
20614 #else
20615 # include <assert.h>
20616 #endif
20617
20618 #undef $ac_func
20619
20620 /* Override any gcc2 internal prototype to avoid an error.  */
20621 #ifdef __cplusplus
20622 extern "C"
20623 {
20624 #endif
20625 /* We use char because int might match the return type of a gcc2
20626    builtin and then its argument prototype would still apply.  */
20627 char $ac_func ();
20628 /* The GNU C library defines this for functions which it implements
20629     to always fail with ENOSYS.  Some functions are actually named
20630     something starting with __ and the normal name is an alias.  */
20631 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20632 choke me
20633 #else
20634 char (*f) () = $ac_func;
20635 #endif
20636 #ifdef __cplusplus
20637 }
20638 #endif
20639
20640 int
20641 main ()
20642 {
20643 return f != $ac_func;
20644   ;
20645   return 0;
20646 }
20647 _ACEOF
20648 rm -f conftest.$ac_objext conftest$ac_exeext
20649 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20650   (eval $ac_link) 2>conftest.er1
20651   ac_status=$?
20652   grep -v '^ *+' conftest.er1 >conftest.err
20653   rm -f conftest.er1
20654   cat conftest.err >&5
20655   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20656   (exit $ac_status); } &&
20657          { ac_try='test -z "$ac_c_werror_flag"
20658                          || test ! -s conftest.err'
20659   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20660   (eval $ac_try) 2>&5
20661   ac_status=$?
20662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20663   (exit $ac_status); }; } &&
20664          { ac_try='test -s conftest$ac_exeext'
20665   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20666   (eval $ac_try) 2>&5
20667   ac_status=$?
20668   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20669   (exit $ac_status); }; }; then
20670   eval "$as_ac_var=yes"
20671 else
20672   echo "$as_me: failed program was:" >&5
20673 sed 's/^/| /' conftest.$ac_ext >&5
20674
20675 eval "$as_ac_var=no"
20676 fi
20677 rm -f conftest.err conftest.$ac_objext \
20678       conftest$ac_exeext conftest.$ac_ext
20679 fi
20680 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20681 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20682 if test `eval echo '${'$as_ac_var'}'` = yes; then
20683   cat >>confdefs.h <<_ACEOF
20684 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20685 _ACEOF
20686
20687 else
20688   case $LIBOBJS in
20689     "$ac_func.$ac_objext"   | \
20690   *" $ac_func.$ac_objext"   | \
20691     "$ac_func.$ac_objext "* | \
20692   *" $ac_func.$ac_objext "* ) ;;
20693   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
20694 esac
20695
20696 fi
20697 done
20698
20699
20700   if test $ac_cv_func_mkstemp = no; then
20701     gl_cv_func_mkstemp_limitations=yes
20702   else
20703     echo "$as_me:$LINENO: checking for mkstemp limitations" >&5
20704 echo $ECHO_N "checking for mkstemp limitations... $ECHO_C" >&6
20705 if test "${gl_cv_func_mkstemp_limitations+set}" = set; then
20706   echo $ECHO_N "(cached) $ECHO_C" >&6
20707 else
20708
20709         mkdir conftest.mkstemp
20710         if test "$cross_compiling" = yes; then
20711   gl_cv_func_mkstemp_limitations=yes
20712
20713 else
20714   cat >conftest.$ac_ext <<_ACEOF
20715 /* confdefs.h.  */
20716 _ACEOF
20717 cat confdefs.h >>conftest.$ac_ext
20718 cat >>conftest.$ac_ext <<_ACEOF
20719 /* end confdefs.h.  */
20720
20721 #           include <stdlib.h>
20722 #           include <unistd.h>
20723             int main ()
20724             {
20725               int i;
20726               for (i = 0; i < 70; i++)
20727                 {
20728                   char template[] = "conftest.mkstemp/coXXXXXX";
20729                   int fd = mkstemp (template);
20730                   if (fd == -1)
20731                     exit (1);
20732                   close (fd);
20733                 }
20734               exit (0);
20735             }
20736
20737 _ACEOF
20738 rm -f conftest$ac_exeext
20739 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20740   (eval $ac_link) 2>&5
20741   ac_status=$?
20742   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20743   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20744   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20745   (eval $ac_try) 2>&5
20746   ac_status=$?
20747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20748   (exit $ac_status); }; }; then
20749   gl_cv_func_mkstemp_limitations=no
20750 else
20751   echo "$as_me: program exited with status $ac_status" >&5
20752 echo "$as_me: failed program was:" >&5
20753 sed 's/^/| /' conftest.$ac_ext >&5
20754
20755 ( exit $ac_status )
20756 gl_cv_func_mkstemp_limitations=yes
20757 fi
20758 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20759 fi
20760         rm -rf conftest.mkstemp
20761
20762
20763 fi
20764 echo "$as_me:$LINENO: result: $gl_cv_func_mkstemp_limitations" >&5
20765 echo "${ECHO_T}$gl_cv_func_mkstemp_limitations" >&6
20766   fi
20767
20768   if test $gl_cv_func_mkstemp_limitations = yes; then
20769     case $LIBOBJS in
20770     "mkstemp.$ac_objext"   | \
20771   *" mkstemp.$ac_objext"   | \
20772     "mkstemp.$ac_objext "* | \
20773   *" mkstemp.$ac_objext "* ) ;;
20774   *) LIBOBJS="$LIBOBJS mkstemp.$ac_objext" ;;
20775 esac
20776
20777     case $LIBOBJS in
20778     "tempname.$ac_objext"   | \
20779   *" tempname.$ac_objext"   | \
20780     "tempname.$ac_objext "* | \
20781   *" tempname.$ac_objext "* ) ;;
20782   *) LIBOBJS="$LIBOBJS tempname.$ac_objext" ;;
20783 esac
20784
20785
20786 cat >>confdefs.h <<\_ACEOF
20787 #define mkstemp rpl_mkstemp
20788 _ACEOF
20789
20790
20791
20792
20793
20794
20795   :
20796
20797
20798
20799
20800
20801
20802
20803
20804
20805
20806
20807
20808 for ac_header in stdint.h
20809 do
20810 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20811 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20812   echo "$as_me:$LINENO: checking for $ac_header" >&5
20813 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20814 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20815   echo $ECHO_N "(cached) $ECHO_C" >&6
20816 fi
20817 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20818 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20819 else
20820   # Is the header compilable?
20821 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20822 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20823 cat >conftest.$ac_ext <<_ACEOF
20824 /* confdefs.h.  */
20825 _ACEOF
20826 cat confdefs.h >>conftest.$ac_ext
20827 cat >>conftest.$ac_ext <<_ACEOF
20828 /* end confdefs.h.  */
20829 $ac_includes_default
20830 #include <$ac_header>
20831 _ACEOF
20832 rm -f conftest.$ac_objext
20833 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20834   (eval $ac_compile) 2>conftest.er1
20835   ac_status=$?
20836   grep -v '^ *+' conftest.er1 >conftest.err
20837   rm -f conftest.er1
20838   cat conftest.err >&5
20839   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20840   (exit $ac_status); } &&
20841          { ac_try='test -z "$ac_c_werror_flag"
20842                          || test ! -s conftest.err'
20843   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20844   (eval $ac_try) 2>&5
20845   ac_status=$?
20846   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20847   (exit $ac_status); }; } &&
20848          { ac_try='test -s conftest.$ac_objext'
20849   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20850   (eval $ac_try) 2>&5
20851   ac_status=$?
20852   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20853   (exit $ac_status); }; }; then
20854   ac_header_compiler=yes
20855 else
20856   echo "$as_me: failed program was:" >&5
20857 sed 's/^/| /' conftest.$ac_ext >&5
20858
20859 ac_header_compiler=no
20860 fi
20861 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20862 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20863 echo "${ECHO_T}$ac_header_compiler" >&6
20864
20865 # Is the header present?
20866 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20867 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20868 cat >conftest.$ac_ext <<_ACEOF
20869 /* confdefs.h.  */
20870 _ACEOF
20871 cat confdefs.h >>conftest.$ac_ext
20872 cat >>conftest.$ac_ext <<_ACEOF
20873 /* end confdefs.h.  */
20874 #include <$ac_header>
20875 _ACEOF
20876 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20877   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20878   ac_status=$?
20879   grep -v '^ *+' conftest.er1 >conftest.err
20880   rm -f conftest.er1
20881   cat conftest.err >&5
20882   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20883   (exit $ac_status); } >/dev/null; then
20884   if test -s conftest.err; then
20885     ac_cpp_err=$ac_c_preproc_warn_flag
20886     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20887   else
20888     ac_cpp_err=
20889   fi
20890 else
20891   ac_cpp_err=yes
20892 fi
20893 if test -z "$ac_cpp_err"; then
20894   ac_header_preproc=yes
20895 else
20896   echo "$as_me: failed program was:" >&5
20897 sed 's/^/| /' conftest.$ac_ext >&5
20898
20899   ac_header_preproc=no
20900 fi
20901 rm -f conftest.err conftest.$ac_ext
20902 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20903 echo "${ECHO_T}$ac_header_preproc" >&6
20904
20905 # So?  What about this header?
20906 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20907   yes:no: )
20908     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20909 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20910     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20911 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20912     ac_header_preproc=yes
20913     ;;
20914   no:yes:* )
20915     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20916 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20917     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
20918 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
20919     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20920 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20921     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
20922 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
20923     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20924 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20925     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20926 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20927     (
20928       cat <<\_ASBOX
20929 ## ------------------------------ ##
20930 ## Report this to bug-cvs@gnu.org ##
20931 ## ------------------------------ ##
20932 _ASBOX
20933     ) |
20934       sed "s/^/$as_me: WARNING:     /" >&2
20935     ;;
20936 esac
20937 echo "$as_me:$LINENO: checking for $ac_header" >&5
20938 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20939 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20940   echo $ECHO_N "(cached) $ECHO_C" >&6
20941 else
20942   eval "$as_ac_Header=\$ac_header_preproc"
20943 fi
20944 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20945 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20946
20947 fi
20948 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20949   cat >>confdefs.h <<_ACEOF
20950 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20951 _ACEOF
20952
20953 fi
20954
20955 done
20956
20957
20958
20959 for ac_func in __secure_getenv gettimeofday
20960 do
20961 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20962 echo "$as_me:$LINENO: checking for $ac_func" >&5
20963 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20964 if eval "test \"\${$as_ac_var+set}\" = set"; then
20965   echo $ECHO_N "(cached) $ECHO_C" >&6
20966 else
20967   cat >conftest.$ac_ext <<_ACEOF
20968 /* confdefs.h.  */
20969 _ACEOF
20970 cat confdefs.h >>conftest.$ac_ext
20971 cat >>conftest.$ac_ext <<_ACEOF
20972 /* end confdefs.h.  */
20973 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20974    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20975 #define $ac_func innocuous_$ac_func
20976
20977 /* System header to define __stub macros and hopefully few prototypes,
20978     which can conflict with char $ac_func (); below.
20979     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20980     <limits.h> exists even on freestanding compilers.  */
20981
20982 #ifdef __STDC__
20983 # include <limits.h>
20984 #else
20985 # include <assert.h>
20986 #endif
20987
20988 #undef $ac_func
20989
20990 /* Override any gcc2 internal prototype to avoid an error.  */
20991 #ifdef __cplusplus
20992 extern "C"
20993 {
20994 #endif
20995 /* We use char because int might match the return type of a gcc2
20996    builtin and then its argument prototype would still apply.  */
20997 char $ac_func ();
20998 /* The GNU C library defines this for functions which it implements
20999     to always fail with ENOSYS.  Some functions are actually named
21000     something starting with __ and the normal name is an alias.  */
21001 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21002 choke me
21003 #else
21004 char (*f) () = $ac_func;
21005 #endif
21006 #ifdef __cplusplus
21007 }
21008 #endif
21009
21010 int
21011 main ()
21012 {
21013 return f != $ac_func;
21014   ;
21015   return 0;
21016 }
21017 _ACEOF
21018 rm -f conftest.$ac_objext conftest$ac_exeext
21019 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21020   (eval $ac_link) 2>conftest.er1
21021   ac_status=$?
21022   grep -v '^ *+' conftest.er1 >conftest.err
21023   rm -f conftest.er1
21024   cat conftest.err >&5
21025   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21026   (exit $ac_status); } &&
21027          { ac_try='test -z "$ac_c_werror_flag"
21028                          || test ! -s conftest.err'
21029   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21030   (eval $ac_try) 2>&5
21031   ac_status=$?
21032   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21033   (exit $ac_status); }; } &&
21034          { ac_try='test -s conftest$ac_exeext'
21035   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21036   (eval $ac_try) 2>&5
21037   ac_status=$?
21038   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21039   (exit $ac_status); }; }; then
21040   eval "$as_ac_var=yes"
21041 else
21042   echo "$as_me: failed program was:" >&5
21043 sed 's/^/| /' conftest.$ac_ext >&5
21044
21045 eval "$as_ac_var=no"
21046 fi
21047 rm -f conftest.err conftest.$ac_objext \
21048       conftest$ac_exeext conftest.$ac_ext
21049 fi
21050 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21051 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21052 if test `eval echo '${'$as_ac_var'}'` = yes; then
21053   cat >>confdefs.h <<_ACEOF
21054 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21055 _ACEOF
21056
21057 fi
21058 done
21059
21060
21061   :
21062
21063
21064
21065
21066
21067
21068
21069   fi
21070
21071
21072
21073   if test $ac_cv_func_working_mktime = no; then
21074
21075 cat >>confdefs.h <<\_ACEOF
21076 #define mktime rpl_mktime
21077 _ACEOF
21078
21079     :
21080   fi
21081
21082
21083
21084
21085  nanosleep_save_libs=$LIBS
21086
21087  # Solaris 2.5.1 needs -lposix4 to get the nanosleep function.
21088  # Solaris 7 prefers the library name -lrt to the obsolescent name -lposix4.
21089  echo "$as_me:$LINENO: checking for library containing nanosleep" >&5
21090 echo $ECHO_N "checking for library containing nanosleep... $ECHO_C" >&6
21091 if test "${ac_cv_search_nanosleep+set}" = set; then
21092   echo $ECHO_N "(cached) $ECHO_C" >&6
21093 else
21094   ac_func_search_save_LIBS=$LIBS
21095 ac_cv_search_nanosleep=no
21096 cat >conftest.$ac_ext <<_ACEOF
21097 /* confdefs.h.  */
21098 _ACEOF
21099 cat confdefs.h >>conftest.$ac_ext
21100 cat >>conftest.$ac_ext <<_ACEOF
21101 /* end confdefs.h.  */
21102
21103 /* Override any gcc2 internal prototype to avoid an error.  */
21104 #ifdef __cplusplus
21105 extern "C"
21106 #endif
21107 /* We use char because int might match the return type of a gcc2
21108    builtin and then its argument prototype would still apply.  */
21109 char nanosleep ();
21110 int
21111 main ()
21112 {
21113 nanosleep ();
21114   ;
21115   return 0;
21116 }
21117 _ACEOF
21118 rm -f conftest.$ac_objext conftest$ac_exeext
21119 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21120   (eval $ac_link) 2>conftest.er1
21121   ac_status=$?
21122   grep -v '^ *+' conftest.er1 >conftest.err
21123   rm -f conftest.er1
21124   cat conftest.err >&5
21125   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21126   (exit $ac_status); } &&
21127          { ac_try='test -z "$ac_c_werror_flag"
21128                          || test ! -s conftest.err'
21129   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21130   (eval $ac_try) 2>&5
21131   ac_status=$?
21132   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21133   (exit $ac_status); }; } &&
21134          { ac_try='test -s conftest$ac_exeext'
21135   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21136   (eval $ac_try) 2>&5
21137   ac_status=$?
21138   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21139   (exit $ac_status); }; }; then
21140   ac_cv_search_nanosleep="none required"
21141 else
21142   echo "$as_me: failed program was:" >&5
21143 sed 's/^/| /' conftest.$ac_ext >&5
21144
21145 fi
21146 rm -f conftest.err conftest.$ac_objext \
21147       conftest$ac_exeext conftest.$ac_ext
21148 if test "$ac_cv_search_nanosleep" = no; then
21149   for ac_lib in rt posix4; do
21150     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
21151     cat >conftest.$ac_ext <<_ACEOF
21152 /* confdefs.h.  */
21153 _ACEOF
21154 cat confdefs.h >>conftest.$ac_ext
21155 cat >>conftest.$ac_ext <<_ACEOF
21156 /* end confdefs.h.  */
21157
21158 /* Override any gcc2 internal prototype to avoid an error.  */
21159 #ifdef __cplusplus
21160 extern "C"
21161 #endif
21162 /* We use char because int might match the return type of a gcc2
21163    builtin and then its argument prototype would still apply.  */
21164 char nanosleep ();
21165 int
21166 main ()
21167 {
21168 nanosleep ();
21169   ;
21170   return 0;
21171 }
21172 _ACEOF
21173 rm -f conftest.$ac_objext conftest$ac_exeext
21174 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21175   (eval $ac_link) 2>conftest.er1
21176   ac_status=$?
21177   grep -v '^ *+' conftest.er1 >conftest.err
21178   rm -f conftest.er1
21179   cat conftest.err >&5
21180   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21181   (exit $ac_status); } &&
21182          { ac_try='test -z "$ac_c_werror_flag"
21183                          || test ! -s conftest.err'
21184   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21185   (eval $ac_try) 2>&5
21186   ac_status=$?
21187   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21188   (exit $ac_status); }; } &&
21189          { ac_try='test -s conftest$ac_exeext'
21190   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21191   (eval $ac_try) 2>&5
21192   ac_status=$?
21193   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21194   (exit $ac_status); }; }; then
21195   ac_cv_search_nanosleep="-l$ac_lib"
21196 break
21197 else
21198   echo "$as_me: failed program was:" >&5
21199 sed 's/^/| /' conftest.$ac_ext >&5
21200
21201 fi
21202 rm -f conftest.err conftest.$ac_objext \
21203       conftest$ac_exeext conftest.$ac_ext
21204   done
21205 fi
21206 LIBS=$ac_func_search_save_LIBS
21207 fi
21208 echo "$as_me:$LINENO: result: $ac_cv_search_nanosleep" >&5
21209 echo "${ECHO_T}$ac_cv_search_nanosleep" >&6
21210 if test "$ac_cv_search_nanosleep" != no; then
21211   test "$ac_cv_search_nanosleep" = "none required" || LIBS="$ac_cv_search_nanosleep $LIBS"
21212   test "$ac_cv_search_nanosleep" = "none required" ||
21213                  LIB_NANOSLEEP=$ac_cv_search_nanosleep
21214 fi
21215
21216
21217
21218  echo "$as_me:$LINENO: checking whether nanosleep works" >&5
21219 echo $ECHO_N "checking whether nanosleep works... $ECHO_C" >&6
21220 if test "${jm_cv_func_nanosleep_works+set}" = set; then
21221   echo $ECHO_N "(cached) $ECHO_C" >&6
21222 else
21223
21224
21225
21226   :
21227
21228
21229
21230
21231
21232    if test "$cross_compiling" = yes; then
21233          jm_cv_func_nanosleep_works=no
21234 else
21235   cat >conftest.$ac_ext <<_ACEOF
21236 /* confdefs.h.  */
21237 _ACEOF
21238 cat confdefs.h >>conftest.$ac_ext
21239 cat >>conftest.$ac_ext <<_ACEOF
21240 /* end confdefs.h.  */
21241
21242 #   if TIME_WITH_SYS_TIME
21243 #    include <sys/time.h>
21244 #    include <time.h>
21245 #   else
21246 #    if HAVE_SYS_TIME_H
21247 #     include <sys/time.h>
21248 #    else
21249 #     include <time.h>
21250 #    endif
21251 #   endif
21252
21253     int
21254     main ()
21255     {
21256       struct timespec ts_sleep, ts_remaining;
21257       ts_sleep.tv_sec = 0;
21258       ts_sleep.tv_nsec = 1;
21259       exit (nanosleep (&ts_sleep, &ts_remaining) == 0 ? 0 : 1);
21260     }
21261
21262 _ACEOF
21263 rm -f conftest$ac_exeext
21264 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21265   (eval $ac_link) 2>&5
21266   ac_status=$?
21267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21268   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21269   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21270   (eval $ac_try) 2>&5
21271   ac_status=$?
21272   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21273   (exit $ac_status); }; }; then
21274   jm_cv_func_nanosleep_works=yes
21275 else
21276   echo "$as_me: program exited with status $ac_status" >&5
21277 echo "$as_me: failed program was:" >&5
21278 sed 's/^/| /' conftest.$ac_ext >&5
21279
21280 ( exit $ac_status )
21281 jm_cv_func_nanosleep_works=no
21282 fi
21283 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21284 fi
21285
21286 fi
21287 echo "$as_me:$LINENO: result: $jm_cv_func_nanosleep_works" >&5
21288 echo "${ECHO_T}$jm_cv_func_nanosleep_works" >&6
21289   if test $jm_cv_func_nanosleep_works = no; then
21290     case $LIBOBJS in
21291     "nanosleep.$ac_objext"   | \
21292   *" nanosleep.$ac_objext"   | \
21293     "nanosleep.$ac_objext "* | \
21294   *" nanosleep.$ac_objext "* ) ;;
21295   *) LIBOBJS="$LIBOBJS nanosleep.$ac_objext" ;;
21296 esac
21297
21298
21299 cat >>confdefs.h <<\_ACEOF
21300 #define nanosleep rpl_nanosleep
21301 _ACEOF
21302
21303
21304
21305   :
21306
21307
21308
21309
21310
21311
21312   fi
21313
21314  LIBS=$nanosleep_save_libs
21315
21316
21317
21318
21319
21320 for ac_func in openat
21321 do
21322 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21323 echo "$as_me:$LINENO: checking for $ac_func" >&5
21324 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21325 if eval "test \"\${$as_ac_var+set}\" = set"; then
21326   echo $ECHO_N "(cached) $ECHO_C" >&6
21327 else
21328   cat >conftest.$ac_ext <<_ACEOF
21329 /* confdefs.h.  */
21330 _ACEOF
21331 cat confdefs.h >>conftest.$ac_ext
21332 cat >>conftest.$ac_ext <<_ACEOF
21333 /* end confdefs.h.  */
21334 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21335    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21336 #define $ac_func innocuous_$ac_func
21337
21338 /* System header to define __stub macros and hopefully few prototypes,
21339     which can conflict with char $ac_func (); below.
21340     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21341     <limits.h> exists even on freestanding compilers.  */
21342
21343 #ifdef __STDC__
21344 # include <limits.h>
21345 #else
21346 # include <assert.h>
21347 #endif
21348
21349 #undef $ac_func
21350
21351 /* Override any gcc2 internal prototype to avoid an error.  */
21352 #ifdef __cplusplus
21353 extern "C"
21354 {
21355 #endif
21356 /* We use char because int might match the return type of a gcc2
21357    builtin and then its argument prototype would still apply.  */
21358 char $ac_func ();
21359 /* The GNU C library defines this for functions which it implements
21360     to always fail with ENOSYS.  Some functions are actually named
21361     something starting with __ and the normal name is an alias.  */
21362 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21363 choke me
21364 #else
21365 char (*f) () = $ac_func;
21366 #endif
21367 #ifdef __cplusplus
21368 }
21369 #endif
21370
21371 int
21372 main ()
21373 {
21374 return f != $ac_func;
21375   ;
21376   return 0;
21377 }
21378 _ACEOF
21379 rm -f conftest.$ac_objext conftest$ac_exeext
21380 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21381   (eval $ac_link) 2>conftest.er1
21382   ac_status=$?
21383   grep -v '^ *+' conftest.er1 >conftest.err
21384   rm -f conftest.er1
21385   cat conftest.err >&5
21386   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21387   (exit $ac_status); } &&
21388          { ac_try='test -z "$ac_c_werror_flag"
21389                          || test ! -s conftest.err'
21390   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21391   (eval $ac_try) 2>&5
21392   ac_status=$?
21393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21394   (exit $ac_status); }; } &&
21395          { ac_try='test -s conftest$ac_exeext'
21396   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21397   (eval $ac_try) 2>&5
21398   ac_status=$?
21399   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21400   (exit $ac_status); }; }; then
21401   eval "$as_ac_var=yes"
21402 else
21403   echo "$as_me: failed program was:" >&5
21404 sed 's/^/| /' conftest.$ac_ext >&5
21405
21406 eval "$as_ac_var=no"
21407 fi
21408 rm -f conftest.err conftest.$ac_objext \
21409       conftest$ac_exeext conftest.$ac_ext
21410 fi
21411 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21412 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21413 if test `eval echo '${'$as_ac_var'}'` = yes; then
21414   cat >>confdefs.h <<_ACEOF
21415 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21416 _ACEOF
21417
21418 else
21419   case $LIBOBJS in
21420     "$ac_func.$ac_objext"   | \
21421   *" $ac_func.$ac_objext"   | \
21422     "$ac_func.$ac_objext "* | \
21423   *" $ac_func.$ac_objext "* ) ;;
21424   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
21425 esac
21426
21427 fi
21428 done
21429
21430
21431   case $ac_cv_func_openat in
21432   yes) ;;
21433   *)
21434
21435 cat >>confdefs.h <<\_ACEOF
21436 #define __OPENAT_PREFIX rpl_
21437 _ACEOF
21438
21439
21440
21441 ;;
21442   esac
21443
21444
21445
21446
21447
21448   case $LIBOBJS in
21449     "pagealign_alloc.$ac_objext"   | \
21450   *" pagealign_alloc.$ac_objext"   | \
21451     "pagealign_alloc.$ac_objext "* | \
21452   *" pagealign_alloc.$ac_objext "* ) ;;
21453   *) LIBOBJS="$LIBOBJS pagealign_alloc.$ac_objext" ;;
21454 esac
21455
21456
21457
21458
21459
21460   :
21461
21462
21463
21464
21465
21466
21467   :
21468
21469
21470
21471
21472
21473
21474
21475
21476
21477
21478
21479
21480
21481
21482   :
21483
21484
21485
21486
21487
21488
21489
21490
21491
21492
21493
21494   case $LIBOBJS in
21495     "quotearg.$ac_objext"   | \
21496   *" quotearg.$ac_objext"   | \
21497     "quotearg.$ac_objext "* | \
21498   *" quotearg.$ac_objext "* ) ;;
21499   *) LIBOBJS="$LIBOBJS quotearg.$ac_objext" ;;
21500 esac
21501
21502
21503
21504   :
21505
21506
21507
21508
21509
21510
21511
21512
21513
21514   :
21515
21516
21517
21518
21519
21520
21521
21522
21523   echo "$as_me:$LINENO: checking for mbstate_t" >&5
21524 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6
21525 if test "${ac_cv_type_mbstate_t+set}" = set; then
21526   echo $ECHO_N "(cached) $ECHO_C" >&6
21527 else
21528   cat >conftest.$ac_ext <<_ACEOF
21529 /* confdefs.h.  */
21530 _ACEOF
21531 cat confdefs.h >>conftest.$ac_ext
21532 cat >>conftest.$ac_ext <<_ACEOF
21533 /* end confdefs.h.  */
21534 $ac_includes_default
21535 #           include <wchar.h>
21536 int
21537 main ()
21538 {
21539 mbstate_t x; return sizeof x;
21540   ;
21541   return 0;
21542 }
21543 _ACEOF
21544 rm -f conftest.$ac_objext
21545 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21546   (eval $ac_compile) 2>conftest.er1
21547   ac_status=$?
21548   grep -v '^ *+' conftest.er1 >conftest.err
21549   rm -f conftest.er1
21550   cat conftest.err >&5
21551   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21552   (exit $ac_status); } &&
21553          { ac_try='test -z "$ac_c_werror_flag"
21554                          || test ! -s conftest.err'
21555   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21556   (eval $ac_try) 2>&5
21557   ac_status=$?
21558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21559   (exit $ac_status); }; } &&
21560          { ac_try='test -s conftest.$ac_objext'
21561   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21562   (eval $ac_try) 2>&5
21563   ac_status=$?
21564   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21565   (exit $ac_status); }; }; then
21566   ac_cv_type_mbstate_t=yes
21567 else
21568   echo "$as_me: failed program was:" >&5
21569 sed 's/^/| /' conftest.$ac_ext >&5
21570
21571 ac_cv_type_mbstate_t=no
21572 fi
21573 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21574 fi
21575 echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
21576 echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6
21577    if test $ac_cv_type_mbstate_t = yes; then
21578
21579 cat >>confdefs.h <<\_ACEOF
21580 #define HAVE_MBSTATE_T 1
21581 _ACEOF
21582
21583    else
21584
21585 cat >>confdefs.h <<\_ACEOF
21586 #define mbstate_t int
21587 _ACEOF
21588
21589    fi
21590
21591   echo "$as_me:$LINENO: checking whether mbrtowc and mbstate_t are properly declared" >&5
21592 echo $ECHO_N "checking whether mbrtowc and mbstate_t are properly declared... $ECHO_C" >&6
21593 if test "${gl_cv_func_mbrtowc+set}" = set; then
21594   echo $ECHO_N "(cached) $ECHO_C" >&6
21595 else
21596   cat >conftest.$ac_ext <<_ACEOF
21597 /* confdefs.h.  */
21598 _ACEOF
21599 cat confdefs.h >>conftest.$ac_ext
21600 cat >>conftest.$ac_ext <<_ACEOF
21601 /* end confdefs.h.  */
21602 #include <wchar.h>
21603 int
21604 main ()
21605 {
21606 mbstate_t state; return ! (sizeof state && mbrtowc);
21607   ;
21608   return 0;
21609 }
21610 _ACEOF
21611 rm -f conftest.$ac_objext conftest$ac_exeext
21612 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21613   (eval $ac_link) 2>conftest.er1
21614   ac_status=$?
21615   grep -v '^ *+' conftest.er1 >conftest.err
21616   rm -f conftest.er1
21617   cat conftest.err >&5
21618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21619   (exit $ac_status); } &&
21620          { ac_try='test -z "$ac_c_werror_flag"
21621                          || test ! -s conftest.err'
21622   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21623   (eval $ac_try) 2>&5
21624   ac_status=$?
21625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21626   (exit $ac_status); }; } &&
21627          { ac_try='test -s conftest$ac_exeext'
21628   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21629   (eval $ac_try) 2>&5
21630   ac_status=$?
21631   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21632   (exit $ac_status); }; }; then
21633   gl_cv_func_mbrtowc=yes
21634 else
21635   echo "$as_me: failed program was:" >&5
21636 sed 's/^/| /' conftest.$ac_ext >&5
21637
21638 gl_cv_func_mbrtowc=no
21639 fi
21640 rm -f conftest.err conftest.$ac_objext \
21641       conftest$ac_exeext conftest.$ac_ext
21642 fi
21643 echo "$as_me:$LINENO: result: $gl_cv_func_mbrtowc" >&5
21644 echo "${ECHO_T}$gl_cv_func_mbrtowc" >&6
21645   if test $gl_cv_func_mbrtowc = yes; then
21646
21647 cat >>confdefs.h <<\_ACEOF
21648 #define HAVE_MBRTOWC 1
21649 _ACEOF
21650
21651   fi
21652
21653
21654
21655
21656 for ac_func in readlink
21657 do
21658 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21659 echo "$as_me:$LINENO: checking for $ac_func" >&5
21660 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21661 if eval "test \"\${$as_ac_var+set}\" = set"; then
21662   echo $ECHO_N "(cached) $ECHO_C" >&6
21663 else
21664   cat >conftest.$ac_ext <<_ACEOF
21665 /* confdefs.h.  */
21666 _ACEOF
21667 cat confdefs.h >>conftest.$ac_ext
21668 cat >>conftest.$ac_ext <<_ACEOF
21669 /* end confdefs.h.  */
21670 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21671    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21672 #define $ac_func innocuous_$ac_func
21673
21674 /* System header to define __stub macros and hopefully few prototypes,
21675     which can conflict with char $ac_func (); below.
21676     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21677     <limits.h> exists even on freestanding compilers.  */
21678
21679 #ifdef __STDC__
21680 # include <limits.h>
21681 #else
21682 # include <assert.h>
21683 #endif
21684
21685 #undef $ac_func
21686
21687 /* Override any gcc2 internal prototype to avoid an error.  */
21688 #ifdef __cplusplus
21689 extern "C"
21690 {
21691 #endif
21692 /* We use char because int might match the return type of a gcc2
21693    builtin and then its argument prototype would still apply.  */
21694 char $ac_func ();
21695 /* The GNU C library defines this for functions which it implements
21696     to always fail with ENOSYS.  Some functions are actually named
21697     something starting with __ and the normal name is an alias.  */
21698 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21699 choke me
21700 #else
21701 char (*f) () = $ac_func;
21702 #endif
21703 #ifdef __cplusplus
21704 }
21705 #endif
21706
21707 int
21708 main ()
21709 {
21710 return f != $ac_func;
21711   ;
21712   return 0;
21713 }
21714 _ACEOF
21715 rm -f conftest.$ac_objext conftest$ac_exeext
21716 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21717   (eval $ac_link) 2>conftest.er1
21718   ac_status=$?
21719   grep -v '^ *+' conftest.er1 >conftest.err
21720   rm -f conftest.er1
21721   cat conftest.err >&5
21722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21723   (exit $ac_status); } &&
21724          { ac_try='test -z "$ac_c_werror_flag"
21725                          || test ! -s conftest.err'
21726   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21727   (eval $ac_try) 2>&5
21728   ac_status=$?
21729   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21730   (exit $ac_status); }; } &&
21731          { ac_try='test -s conftest$ac_exeext'
21732   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21733   (eval $ac_try) 2>&5
21734   ac_status=$?
21735   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21736   (exit $ac_status); }; }; then
21737   eval "$as_ac_var=yes"
21738 else
21739   echo "$as_me: failed program was:" >&5
21740 sed 's/^/| /' conftest.$ac_ext >&5
21741
21742 eval "$as_ac_var=no"
21743 fi
21744 rm -f conftest.err conftest.$ac_objext \
21745       conftest$ac_exeext conftest.$ac_ext
21746 fi
21747 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21748 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21749 if test `eval echo '${'$as_ac_var'}'` = yes; then
21750   cat >>confdefs.h <<_ACEOF
21751 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21752 _ACEOF
21753
21754 fi
21755 done
21756
21757   if test $ac_cv_func_readlink = no; then
21758     case $LIBOBJS in
21759     "readlink.$ac_objext"   | \
21760   *" readlink.$ac_objext"   | \
21761     "readlink.$ac_objext "* | \
21762   *" readlink.$ac_objext "* ) ;;
21763   *) LIBOBJS="$LIBOBJS readlink.$ac_objext" ;;
21764 esac
21765
21766
21767   :
21768
21769   fi
21770
21771
21772 for ac_header in stdlib.h
21773 do
21774 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21775 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21776   echo "$as_me:$LINENO: checking for $ac_header" >&5
21777 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21778 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21779   echo $ECHO_N "(cached) $ECHO_C" >&6
21780 fi
21781 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21782 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21783 else
21784   # Is the header compilable?
21785 echo "$as_me:$LINENO: checking $ac_header usability" >&5
21786 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21787 cat >conftest.$ac_ext <<_ACEOF
21788 /* confdefs.h.  */
21789 _ACEOF
21790 cat confdefs.h >>conftest.$ac_ext
21791 cat >>conftest.$ac_ext <<_ACEOF
21792 /* end confdefs.h.  */
21793 $ac_includes_default
21794 #include <$ac_header>
21795 _ACEOF
21796 rm -f conftest.$ac_objext
21797 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21798   (eval $ac_compile) 2>conftest.er1
21799   ac_status=$?
21800   grep -v '^ *+' conftest.er1 >conftest.err
21801   rm -f conftest.er1
21802   cat conftest.err >&5
21803   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21804   (exit $ac_status); } &&
21805          { ac_try='test -z "$ac_c_werror_flag"
21806                          || test ! -s conftest.err'
21807   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21808   (eval $ac_try) 2>&5
21809   ac_status=$?
21810   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21811   (exit $ac_status); }; } &&
21812          { ac_try='test -s conftest.$ac_objext'
21813   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21814   (eval $ac_try) 2>&5
21815   ac_status=$?
21816   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21817   (exit $ac_status); }; }; then
21818   ac_header_compiler=yes
21819 else
21820   echo "$as_me: failed program was:" >&5
21821 sed 's/^/| /' conftest.$ac_ext >&5
21822
21823 ac_header_compiler=no
21824 fi
21825 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21826 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21827 echo "${ECHO_T}$ac_header_compiler" >&6
21828
21829 # Is the header present?
21830 echo "$as_me:$LINENO: checking $ac_header presence" >&5
21831 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21832 cat >conftest.$ac_ext <<_ACEOF
21833 /* confdefs.h.  */
21834 _ACEOF
21835 cat confdefs.h >>conftest.$ac_ext
21836 cat >>conftest.$ac_ext <<_ACEOF
21837 /* end confdefs.h.  */
21838 #include <$ac_header>
21839 _ACEOF
21840 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21841   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21842   ac_status=$?
21843   grep -v '^ *+' conftest.er1 >conftest.err
21844   rm -f conftest.er1
21845   cat conftest.err >&5
21846   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21847   (exit $ac_status); } >/dev/null; then
21848   if test -s conftest.err; then
21849     ac_cpp_err=$ac_c_preproc_warn_flag
21850     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21851   else
21852     ac_cpp_err=
21853   fi
21854 else
21855   ac_cpp_err=yes
21856 fi
21857 if test -z "$ac_cpp_err"; then
21858   ac_header_preproc=yes
21859 else
21860   echo "$as_me: failed program was:" >&5
21861 sed 's/^/| /' conftest.$ac_ext >&5
21862
21863   ac_header_preproc=no
21864 fi
21865 rm -f conftest.err conftest.$ac_ext
21866 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21867 echo "${ECHO_T}$ac_header_preproc" >&6
21868
21869 # So?  What about this header?
21870 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21871   yes:no: )
21872     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21873 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21874     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21875 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21876     ac_header_preproc=yes
21877     ;;
21878   no:yes:* )
21879     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21880 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21881     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
21882 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
21883     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21884 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21885     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
21886 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
21887     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21888 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21889     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21890 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21891     (
21892       cat <<\_ASBOX
21893 ## ------------------------------ ##
21894 ## Report this to bug-cvs@gnu.org ##
21895 ## ------------------------------ ##
21896 _ASBOX
21897     ) |
21898       sed "s/^/$as_me: WARNING:     /" >&2
21899     ;;
21900 esac
21901 echo "$as_me:$LINENO: checking for $ac_header" >&5
21902 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21903 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21904   echo $ECHO_N "(cached) $ECHO_C" >&6
21905 else
21906   eval "$as_ac_Header=\$ac_header_preproc"
21907 fi
21908 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21909 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21910
21911 fi
21912 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21913   cat >>confdefs.h <<_ACEOF
21914 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21915 _ACEOF
21916
21917 fi
21918
21919 done
21920
21921 echo "$as_me:$LINENO: checking for GNU libc compatible realloc" >&5
21922 echo $ECHO_N "checking for GNU libc compatible realloc... $ECHO_C" >&6
21923 if test "${ac_cv_func_realloc_0_nonnull+set}" = set; then
21924   echo $ECHO_N "(cached) $ECHO_C" >&6
21925 else
21926   if test "$cross_compiling" = yes; then
21927   ac_cv_func_realloc_0_nonnull=no
21928 else
21929   cat >conftest.$ac_ext <<_ACEOF
21930 /* confdefs.h.  */
21931 _ACEOF
21932 cat confdefs.h >>conftest.$ac_ext
21933 cat >>conftest.$ac_ext <<_ACEOF
21934 /* end confdefs.h.  */
21935 #if STDC_HEADERS || HAVE_STDLIB_H
21936 # include <stdlib.h>
21937 #else
21938 char *realloc ();
21939 #endif
21940
21941 int
21942 main ()
21943 {
21944 exit (realloc (0, 0) ? 0 : 1);
21945   ;
21946   return 0;
21947 }
21948 _ACEOF
21949 rm -f conftest$ac_exeext
21950 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21951   (eval $ac_link) 2>&5
21952   ac_status=$?
21953   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21954   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21955   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21956   (eval $ac_try) 2>&5
21957   ac_status=$?
21958   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21959   (exit $ac_status); }; }; then
21960   ac_cv_func_realloc_0_nonnull=yes
21961 else
21962   echo "$as_me: program exited with status $ac_status" >&5
21963 echo "$as_me: failed program was:" >&5
21964 sed 's/^/| /' conftest.$ac_ext >&5
21965
21966 ( exit $ac_status )
21967 ac_cv_func_realloc_0_nonnull=no
21968 fi
21969 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21970 fi
21971 fi
21972 echo "$as_me:$LINENO: result: $ac_cv_func_realloc_0_nonnull" >&5
21973 echo "${ECHO_T}$ac_cv_func_realloc_0_nonnull" >&6
21974 if test $ac_cv_func_realloc_0_nonnull = yes; then
21975
21976 cat >>confdefs.h <<\_ACEOF
21977 #define HAVE_REALLOC 1
21978 _ACEOF
21979
21980 else
21981   cat >>confdefs.h <<\_ACEOF
21982 #define HAVE_REALLOC 0
21983 _ACEOF
21984
21985    case $LIBOBJS in
21986     "realloc.$ac_objext"   | \
21987   *" realloc.$ac_objext"   | \
21988     "realloc.$ac_objext "* | \
21989   *" realloc.$ac_objext "* ) ;;
21990   *) LIBOBJS="$LIBOBJS realloc.$ac_objext" ;;
21991 esac
21992
21993
21994 cat >>confdefs.h <<\_ACEOF
21995 #define realloc rpl_realloc
21996 _ACEOF
21997
21998 fi
21999
22000
22001
22002
22003
22004
22005     # Assume we'll default to using the included regex.c.
22006     ac_use_included_regex=yes
22007
22008     # However, if the system regex support is good enough that it passes the
22009     # the following run test, then default to *not* using the included regex.c.
22010     # If cross compiling, assume the test would fail and use the included
22011     # regex.c.  The first failing regular expression is from `Spencer ere
22012     # test #75' in grep-2.3.
22013     echo "$as_me:$LINENO: checking for working re_compile_pattern" >&5
22014 echo $ECHO_N "checking for working re_compile_pattern... $ECHO_C" >&6
22015 if test "${jm_cv_func_working_re_compile_pattern+set}" = set; then
22016   echo $ECHO_N "(cached) $ECHO_C" >&6
22017 else
22018   if test "$cross_compiling" = yes; then
22019                jm_cv_func_working_re_compile_pattern=no
22020 else
22021   cat >conftest.$ac_ext <<_ACEOF
22022 /* confdefs.h.  */
22023 _ACEOF
22024 cat confdefs.h >>conftest.$ac_ext
22025 cat >>conftest.$ac_ext <<_ACEOF
22026 /* end confdefs.h.  */
22027 #include <stdio.h>
22028 #include <string.h>
22029 #include <regex.h>
22030           int
22031           main ()
22032           {
22033             static struct re_pattern_buffer regex;
22034             const char *s;
22035             struct re_registers regs;
22036             re_set_syntax (RE_SYNTAX_POSIX_EGREP);
22037             memset (&regex, 0, sizeof (regex));
22038             s = re_compile_pattern ("a[[:]:]]b\n", 9, &regex);
22039             /* This should fail with _Invalid character class name_ error.  */
22040             if (!s)
22041               exit (1);
22042
22043             /* This should succeed, but doesn't for e.g. glibc-2.1.3.  */
22044             memset (&regex, 0, sizeof (regex));
22045             s = re_compile_pattern ("{1", 2, &regex);
22046
22047             if (s)
22048               exit (1);
22049
22050             /* The following example is derived from a problem report
22051                against gawk from Jorge Stolfi <stolfi@ic.unicamp.br>.  */
22052             memset (&regex, 0, sizeof (regex));
22053             s = re_compile_pattern ("[an\371]*n", 7, &regex);
22054             if (s)
22055               exit (1);
22056
22057             /* This should match, but doesn't for e.g. glibc-2.2.1.  */
22058             if (re_match (&regex, "an", 2, 0, &regs) != 2)
22059               exit (1);
22060
22061             memset (&regex, 0, sizeof (regex));
22062             s = re_compile_pattern ("x", 1, &regex);
22063             if (s)
22064               exit (1);
22065
22066             /* The version of regex.c in e.g. GNU libc-2.2.93 didn't
22067                work with a negative RANGE argument.  */
22068             if (re_search (&regex, "wxy", 3, 2, -2, &regs) != 1)
22069               exit (1);
22070
22071             exit (0);
22072           }
22073
22074 _ACEOF
22075 rm -f conftest$ac_exeext
22076 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22077   (eval $ac_link) 2>&5
22078   ac_status=$?
22079   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22080   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22081   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22082   (eval $ac_try) 2>&5
22083   ac_status=$?
22084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22085   (exit $ac_status); }; }; then
22086   jm_cv_func_working_re_compile_pattern=yes
22087 else
22088   echo "$as_me: program exited with status $ac_status" >&5
22089 echo "$as_me: failed program was:" >&5
22090 sed 's/^/| /' conftest.$ac_ext >&5
22091
22092 ( exit $ac_status )
22093 jm_cv_func_working_re_compile_pattern=no
22094 fi
22095 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22096 fi
22097 fi
22098 echo "$as_me:$LINENO: result: $jm_cv_func_working_re_compile_pattern" >&5
22099 echo "${ECHO_T}$jm_cv_func_working_re_compile_pattern" >&6
22100     if test $jm_cv_func_working_re_compile_pattern = yes; then
22101       ac_use_included_regex=no
22102     fi
22103
22104     test -n "lib/regex.c" || { { echo "$as_me:$LINENO: error: missing argument" >&5
22105 echo "$as_me: error: missing argument" >&2;}
22106    { (exit 1); exit 1; }; }
22107
22108
22109
22110 # Check whether --with-included-regex or --without-included-regex was given.
22111 if test "${with_included_regex+set}" = set; then
22112   withval="$with_included_regex"
22113   jm_with_regex=$withval
22114 else
22115   jm_with_regex=$ac_use_included_regex
22116 fi;
22117         if test "$jm_with_regex" = yes; then
22118           case $LIBOBJS in
22119     "regex.$ac_objext"   | \
22120   *" regex.$ac_objext"   | \
22121     "regex.$ac_objext "* | \
22122   *" regex.$ac_objext "* ) ;;
22123   *) LIBOBJS="$LIBOBJS regex.$ac_objext" ;;
22124 esac
22125
22126
22127
22128
22129
22130
22131
22132
22133
22134   :
22135
22136
22137
22138
22139
22140
22141
22142
22143
22144   :
22145
22146
22147
22148
22149
22150
22151
22152
22153
22154 for ac_func in btowc
22155 do
22156 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22157 echo "$as_me:$LINENO: checking for $ac_func" >&5
22158 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22159 if eval "test \"\${$as_ac_var+set}\" = set"; then
22160   echo $ECHO_N "(cached) $ECHO_C" >&6
22161 else
22162   cat >conftest.$ac_ext <<_ACEOF
22163 /* confdefs.h.  */
22164 _ACEOF
22165 cat confdefs.h >>conftest.$ac_ext
22166 cat >>conftest.$ac_ext <<_ACEOF
22167 /* end confdefs.h.  */
22168 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22169    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
22170 #define $ac_func innocuous_$ac_func
22171
22172 /* System header to define __stub macros and hopefully few prototypes,
22173     which can conflict with char $ac_func (); below.
22174     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22175     <limits.h> exists even on freestanding compilers.  */
22176
22177 #ifdef __STDC__
22178 # include <limits.h>
22179 #else
22180 # include <assert.h>
22181 #endif
22182
22183 #undef $ac_func
22184
22185 /* Override any gcc2 internal prototype to avoid an error.  */
22186 #ifdef __cplusplus
22187 extern "C"
22188 {
22189 #endif
22190 /* We use char because int might match the return type of a gcc2
22191    builtin and then its argument prototype would still apply.  */
22192 char $ac_func ();
22193 /* The GNU C library defines this for functions which it implements
22194     to always fail with ENOSYS.  Some functions are actually named
22195     something starting with __ and the normal name is an alias.  */
22196 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22197 choke me
22198 #else
22199 char (*f) () = $ac_func;
22200 #endif
22201 #ifdef __cplusplus
22202 }
22203 #endif
22204
22205 int
22206 main ()
22207 {
22208 return f != $ac_func;
22209   ;
22210   return 0;
22211 }
22212 _ACEOF
22213 rm -f conftest.$ac_objext conftest$ac_exeext
22214 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22215   (eval $ac_link) 2>conftest.er1
22216   ac_status=$?
22217   grep -v '^ *+' conftest.er1 >conftest.err
22218   rm -f conftest.er1
22219   cat conftest.err >&5
22220   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22221   (exit $ac_status); } &&
22222          { ac_try='test -z "$ac_c_werror_flag"
22223                          || test ! -s conftest.err'
22224   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22225   (eval $ac_try) 2>&5
22226   ac_status=$?
22227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22228   (exit $ac_status); }; } &&
22229          { ac_try='test -s conftest$ac_exeext'
22230   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22231   (eval $ac_try) 2>&5
22232   ac_status=$?
22233   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22234   (exit $ac_status); }; }; then
22235   eval "$as_ac_var=yes"
22236 else
22237   echo "$as_me: failed program was:" >&5
22238 sed 's/^/| /' conftest.$ac_ext >&5
22239
22240 eval "$as_ac_var=no"
22241 fi
22242 rm -f conftest.err conftest.$ac_objext \
22243       conftest$ac_exeext conftest.$ac_ext
22244 fi
22245 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22246 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22247 if test `eval echo '${'$as_ac_var'}'` = yes; then
22248   cat >>confdefs.h <<_ACEOF
22249 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22250 _ACEOF
22251
22252 fi
22253 done
22254
22255
22256         fi
22257
22258
22259
22260
22261
22262  echo "$as_me:$LINENO: checking whether rename is broken" >&5
22263 echo $ECHO_N "checking whether rename is broken... $ECHO_C" >&6
22264 if test "${vb_cv_func_rename_trailing_slash_bug+set}" = set; then
22265   echo $ECHO_N "(cached) $ECHO_C" >&6
22266 else
22267
22268     rm -rf conftest.d1 conftest.d2
22269     mkdir conftest.d1 ||
22270       { { echo "$as_me:$LINENO: error: cannot create temporary directory" >&5
22271 echo "$as_me: error: cannot create temporary directory" >&2;}
22272    { (exit 1); exit 1; }; }
22273     if test "$cross_compiling" = yes; then
22274         vb_cv_func_rename_trailing_slash_bug=yes
22275 else
22276   cat >conftest.$ac_ext <<_ACEOF
22277 /* confdefs.h.  */
22278 _ACEOF
22279 cat confdefs.h >>conftest.$ac_ext
22280 cat >>conftest.$ac_ext <<_ACEOF
22281 /* end confdefs.h.  */
22282
22283 #       include <stdio.h>
22284         int
22285         main ()
22286         {
22287           exit (rename ("conftest.d1/", "conftest.d2") ? 1 : 0);
22288         }
22289
22290 _ACEOF
22291 rm -f conftest$ac_exeext
22292 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22293   (eval $ac_link) 2>&5
22294   ac_status=$?
22295   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22296   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22297   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22298   (eval $ac_try) 2>&5
22299   ac_status=$?
22300   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22301   (exit $ac_status); }; }; then
22302   vb_cv_func_rename_trailing_slash_bug=no
22303 else
22304   echo "$as_me: program exited with status $ac_status" >&5
22305 echo "$as_me: failed program was:" >&5
22306 sed 's/^/| /' conftest.$ac_ext >&5
22307
22308 ( exit $ac_status )
22309 vb_cv_func_rename_trailing_slash_bug=yes
22310 fi
22311 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22312 fi
22313
22314       rm -rf conftest.d1 conftest.d2
22315
22316 fi
22317 echo "$as_me:$LINENO: result: $vb_cv_func_rename_trailing_slash_bug" >&5
22318 echo "${ECHO_T}$vb_cv_func_rename_trailing_slash_bug" >&6
22319   if test $vb_cv_func_rename_trailing_slash_bug = yes; then
22320     case $LIBOBJS in
22321     "rename.$ac_objext"   | \
22322   *" rename.$ac_objext"   | \
22323     "rename.$ac_objext "* | \
22324   *" rename.$ac_objext "* ) ;;
22325   *) LIBOBJS="$LIBOBJS rename.$ac_objext" ;;
22326 esac
22327
22328
22329 cat >>confdefs.h <<\_ACEOF
22330 #define rename rpl_rename
22331 _ACEOF
22332
22333
22334 cat >>confdefs.h <<\_ACEOF
22335 #define RENAME_TRAILING_SLASH_BUG 1
22336 _ACEOF
22337
22338     :
22339   fi
22340
22341   echo "$as_me:$LINENO: checking for C/C++ restrict keyword" >&5
22342 echo $ECHO_N "checking for C/C++ restrict keyword... $ECHO_C" >&6
22343 if test "${gl_cv_c_restrict+set}" = set; then
22344   echo $ECHO_N "(cached) $ECHO_C" >&6
22345 else
22346   gl_cv_c_restrict=no
22347    # Try the official restrict keyword, then gcc's __restrict, and
22348    # the less common variants.
22349    for ac_kw in restrict __restrict __restrict__ _Restrict; do
22350      cat >conftest.$ac_ext <<_ACEOF
22351 /* confdefs.h.  */
22352 _ACEOF
22353 cat confdefs.h >>conftest.$ac_ext
22354 cat >>conftest.$ac_ext <<_ACEOF
22355 /* end confdefs.h.  */
22356 float * $ac_kw x;
22357 _ACEOF
22358 rm -f conftest.$ac_objext
22359 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22360   (eval $ac_compile) 2>conftest.er1
22361   ac_status=$?
22362   grep -v '^ *+' conftest.er1 >conftest.err
22363   rm -f conftest.er1
22364   cat conftest.err >&5
22365   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22366   (exit $ac_status); } &&
22367          { ac_try='test -z "$ac_c_werror_flag"
22368                          || test ! -s conftest.err'
22369   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22370   (eval $ac_try) 2>&5
22371   ac_status=$?
22372   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22373   (exit $ac_status); }; } &&
22374          { ac_try='test -s conftest.$ac_objext'
22375   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22376   (eval $ac_try) 2>&5
22377   ac_status=$?
22378   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22379   (exit $ac_status); }; }; then
22380   gl_cv_c_restrict=$ac_kw; break
22381 else
22382   echo "$as_me: failed program was:" >&5
22383 sed 's/^/| /' conftest.$ac_ext >&5
22384
22385 fi
22386 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22387    done
22388
22389 fi
22390 echo "$as_me:$LINENO: result: $gl_cv_c_restrict" >&5
22391 echo "${ECHO_T}$gl_cv_c_restrict" >&6
22392  case $gl_cv_c_restrict in
22393    restrict) ;;
22394    no)
22395 cat >>confdefs.h <<\_ACEOF
22396 #define restrict
22397 _ACEOF
22398  ;;
22399    *)  cat >>confdefs.h <<_ACEOF
22400 #define restrict $gl_cv_c_restrict
22401 _ACEOF
22402  ;;
22403  esac
22404
22405
22406
22407 for ac_func in rpmatch
22408 do
22409 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22410 echo "$as_me:$LINENO: checking for $ac_func" >&5
22411 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22412 if eval "test \"\${$as_ac_var+set}\" = set"; then
22413   echo $ECHO_N "(cached) $ECHO_C" >&6
22414 else
22415   cat >conftest.$ac_ext <<_ACEOF
22416 /* confdefs.h.  */
22417 _ACEOF
22418 cat confdefs.h >>conftest.$ac_ext
22419 cat >>conftest.$ac_ext <<_ACEOF
22420 /* end confdefs.h.  */
22421 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22422    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
22423 #define $ac_func innocuous_$ac_func
22424
22425 /* System header to define __stub macros and hopefully few prototypes,
22426     which can conflict with char $ac_func (); below.
22427     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22428     <limits.h> exists even on freestanding compilers.  */
22429
22430 #ifdef __STDC__
22431 # include <limits.h>
22432 #else
22433 # include <assert.h>
22434 #endif
22435
22436 #undef $ac_func
22437
22438 /* Override any gcc2 internal prototype to avoid an error.  */
22439 #ifdef __cplusplus
22440 extern "C"
22441 {
22442 #endif
22443 /* We use char because int might match the return type of a gcc2
22444    builtin and then its argument prototype would still apply.  */
22445 char $ac_func ();
22446 /* The GNU C library defines this for functions which it implements
22447     to always fail with ENOSYS.  Some functions are actually named
22448     something starting with __ and the normal name is an alias.  */
22449 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22450 choke me
22451 #else
22452 char (*f) () = $ac_func;
22453 #endif
22454 #ifdef __cplusplus
22455 }
22456 #endif
22457
22458 int
22459 main ()
22460 {
22461 return f != $ac_func;
22462   ;
22463   return 0;
22464 }
22465 _ACEOF
22466 rm -f conftest.$ac_objext conftest$ac_exeext
22467 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22468   (eval $ac_link) 2>conftest.er1
22469   ac_status=$?
22470   grep -v '^ *+' conftest.er1 >conftest.err
22471   rm -f conftest.er1
22472   cat conftest.err >&5
22473   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22474   (exit $ac_status); } &&
22475          { ac_try='test -z "$ac_c_werror_flag"
22476                          || test ! -s conftest.err'
22477   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22478   (eval $ac_try) 2>&5
22479   ac_status=$?
22480   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22481   (exit $ac_status); }; } &&
22482          { ac_try='test -s conftest$ac_exeext'
22483   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22484   (eval $ac_try) 2>&5
22485   ac_status=$?
22486   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22487   (exit $ac_status); }; }; then
22488   eval "$as_ac_var=yes"
22489 else
22490   echo "$as_me: failed program was:" >&5
22491 sed 's/^/| /' conftest.$ac_ext >&5
22492
22493 eval "$as_ac_var=no"
22494 fi
22495 rm -f conftest.err conftest.$ac_objext \
22496       conftest$ac_exeext conftest.$ac_ext
22497 fi
22498 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22499 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22500 if test `eval echo '${'$as_ac_var'}'` = yes; then
22501   cat >>confdefs.h <<_ACEOF
22502 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22503 _ACEOF
22504
22505 else
22506   case $LIBOBJS in
22507     "$ac_func.$ac_objext"   | \
22508   *" $ac_func.$ac_objext"   | \
22509     "$ac_func.$ac_objext "* | \
22510   *" $ac_func.$ac_objext "* ) ;;
22511   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
22512 esac
22513
22514 fi
22515 done
22516
22517
22518   if test $ac_cv_func_rpmatch = no; then
22519     :
22520   fi
22521
22522
22523
22524   case $LIBOBJS in
22525     "save-cwd.$ac_objext"   | \
22526   *" save-cwd.$ac_objext"   | \
22527     "save-cwd.$ac_objext "* | \
22528   *" save-cwd.$ac_objext "* ) ;;
22529   *) LIBOBJS="$LIBOBJS save-cwd.$ac_objext" ;;
22530 esac
22531
22532
22533   :
22534
22535
22536
22537
22538
22539
22540   :
22541
22542
22543
22544
22545
22546
22547
22548
22549
22550
22551
22552
22553 for ac_func in setenv unsetenv
22554 do
22555 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22556 echo "$as_me:$LINENO: checking for $ac_func" >&5
22557 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22558 if eval "test \"\${$as_ac_var+set}\" = set"; then
22559   echo $ECHO_N "(cached) $ECHO_C" >&6
22560 else
22561   cat >conftest.$ac_ext <<_ACEOF
22562 /* confdefs.h.  */
22563 _ACEOF
22564 cat confdefs.h >>conftest.$ac_ext
22565 cat >>conftest.$ac_ext <<_ACEOF
22566 /* end confdefs.h.  */
22567 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22568    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
22569 #define $ac_func innocuous_$ac_func
22570
22571 /* System header to define __stub macros and hopefully few prototypes,
22572     which can conflict with char $ac_func (); below.
22573     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22574     <limits.h> exists even on freestanding compilers.  */
22575
22576 #ifdef __STDC__
22577 # include <limits.h>
22578 #else
22579 # include <assert.h>
22580 #endif
22581
22582 #undef $ac_func
22583
22584 /* Override any gcc2 internal prototype to avoid an error.  */
22585 #ifdef __cplusplus
22586 extern "C"
22587 {
22588 #endif
22589 /* We use char because int might match the return type of a gcc2
22590    builtin and then its argument prototype would still apply.  */
22591 char $ac_func ();
22592 /* The GNU C library defines this for functions which it implements
22593     to always fail with ENOSYS.  Some functions are actually named
22594     something starting with __ and the normal name is an alias.  */
22595 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22596 choke me
22597 #else
22598 char (*f) () = $ac_func;
22599 #endif
22600 #ifdef __cplusplus
22601 }
22602 #endif
22603
22604 int
22605 main ()
22606 {
22607 return f != $ac_func;
22608   ;
22609   return 0;
22610 }
22611 _ACEOF
22612 rm -f conftest.$ac_objext conftest$ac_exeext
22613 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22614   (eval $ac_link) 2>conftest.er1
22615   ac_status=$?
22616   grep -v '^ *+' conftest.er1 >conftest.err
22617   rm -f conftest.er1
22618   cat conftest.err >&5
22619   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22620   (exit $ac_status); } &&
22621          { ac_try='test -z "$ac_c_werror_flag"
22622                          || test ! -s conftest.err'
22623   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22624   (eval $ac_try) 2>&5
22625   ac_status=$?
22626   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22627   (exit $ac_status); }; } &&
22628          { ac_try='test -s conftest$ac_exeext'
22629   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22630   (eval $ac_try) 2>&5
22631   ac_status=$?
22632   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22633   (exit $ac_status); }; }; then
22634   eval "$as_ac_var=yes"
22635 else
22636   echo "$as_me: failed program was:" >&5
22637 sed 's/^/| /' conftest.$ac_ext >&5
22638
22639 eval "$as_ac_var=no"
22640 fi
22641 rm -f conftest.err conftest.$ac_objext \
22642       conftest$ac_exeext conftest.$ac_ext
22643 fi
22644 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22645 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22646 if test `eval echo '${'$as_ac_var'}'` = yes; then
22647   cat >>confdefs.h <<_ACEOF
22648 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22649 _ACEOF
22650
22651 else
22652   case $LIBOBJS in
22653     "$ac_func.$ac_objext"   | \
22654   *" $ac_func.$ac_objext"   | \
22655     "$ac_func.$ac_objext "* | \
22656   *" $ac_func.$ac_objext "* ) ;;
22657   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
22658 esac
22659
22660 fi
22661 done
22662
22663
22664   if test $ac_cv_func_setenv = no; then
22665
22666
22667
22668   :
22669
22670
22671
22672
22673
22674
22675 for ac_header in search.h
22676 do
22677 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22678 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22679   echo "$as_me:$LINENO: checking for $ac_header" >&5
22680 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22681 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22682   echo $ECHO_N "(cached) $ECHO_C" >&6
22683 fi
22684 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22685 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22686 else
22687   # Is the header compilable?
22688 echo "$as_me:$LINENO: checking $ac_header usability" >&5
22689 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
22690 cat >conftest.$ac_ext <<_ACEOF
22691 /* confdefs.h.  */
22692 _ACEOF
22693 cat confdefs.h >>conftest.$ac_ext
22694 cat >>conftest.$ac_ext <<_ACEOF
22695 /* end confdefs.h.  */
22696 $ac_includes_default
22697 #include <$ac_header>
22698 _ACEOF
22699 rm -f conftest.$ac_objext
22700 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22701   (eval $ac_compile) 2>conftest.er1
22702   ac_status=$?
22703   grep -v '^ *+' conftest.er1 >conftest.err
22704   rm -f conftest.er1
22705   cat conftest.err >&5
22706   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22707   (exit $ac_status); } &&
22708          { ac_try='test -z "$ac_c_werror_flag"
22709                          || test ! -s conftest.err'
22710   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22711   (eval $ac_try) 2>&5
22712   ac_status=$?
22713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22714   (exit $ac_status); }; } &&
22715          { ac_try='test -s conftest.$ac_objext'
22716   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22717   (eval $ac_try) 2>&5
22718   ac_status=$?
22719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22720   (exit $ac_status); }; }; then
22721   ac_header_compiler=yes
22722 else
22723   echo "$as_me: failed program was:" >&5
22724 sed 's/^/| /' conftest.$ac_ext >&5
22725
22726 ac_header_compiler=no
22727 fi
22728 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22729 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22730 echo "${ECHO_T}$ac_header_compiler" >&6
22731
22732 # Is the header present?
22733 echo "$as_me:$LINENO: checking $ac_header presence" >&5
22734 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
22735 cat >conftest.$ac_ext <<_ACEOF
22736 /* confdefs.h.  */
22737 _ACEOF
22738 cat confdefs.h >>conftest.$ac_ext
22739 cat >>conftest.$ac_ext <<_ACEOF
22740 /* end confdefs.h.  */
22741 #include <$ac_header>
22742 _ACEOF
22743 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22744   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22745   ac_status=$?
22746   grep -v '^ *+' conftest.er1 >conftest.err
22747   rm -f conftest.er1
22748   cat conftest.err >&5
22749   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22750   (exit $ac_status); } >/dev/null; then
22751   if test -s conftest.err; then
22752     ac_cpp_err=$ac_c_preproc_warn_flag
22753     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22754   else
22755     ac_cpp_err=
22756   fi
22757 else
22758   ac_cpp_err=yes
22759 fi
22760 if test -z "$ac_cpp_err"; then
22761   ac_header_preproc=yes
22762 else
22763   echo "$as_me: failed program was:" >&5
22764 sed 's/^/| /' conftest.$ac_ext >&5
22765
22766   ac_header_preproc=no
22767 fi
22768 rm -f conftest.err conftest.$ac_ext
22769 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22770 echo "${ECHO_T}$ac_header_preproc" >&6
22771
22772 # So?  What about this header?
22773 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22774   yes:no: )
22775     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22776 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22777     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22778 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22779     ac_header_preproc=yes
22780     ;;
22781   no:yes:* )
22782     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22783 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22784     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
22785 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
22786     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22787 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22788     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
22789 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
22790     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22791 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22792     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22793 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22794     (
22795       cat <<\_ASBOX
22796 ## ------------------------------ ##
22797 ## Report this to bug-cvs@gnu.org ##
22798 ## ------------------------------ ##
22799 _ASBOX
22800     ) |
22801       sed "s/^/$as_me: WARNING:     /" >&2
22802     ;;
22803 esac
22804 echo "$as_me:$LINENO: checking for $ac_header" >&5
22805 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22806 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22807   echo $ECHO_N "(cached) $ECHO_C" >&6
22808 else
22809   eval "$as_ac_Header=\$ac_header_preproc"
22810 fi
22811 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22812 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22813
22814 fi
22815 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22816   cat >>confdefs.h <<_ACEOF
22817 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22818 _ACEOF
22819
22820 fi
22821
22822 done
22823
22824
22825 for ac_func in tsearch
22826 do
22827 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22828 echo "$as_me:$LINENO: checking for $ac_func" >&5
22829 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22830 if eval "test \"\${$as_ac_var+set}\" = set"; then
22831   echo $ECHO_N "(cached) $ECHO_C" >&6
22832 else
22833   cat >conftest.$ac_ext <<_ACEOF
22834 /* confdefs.h.  */
22835 _ACEOF
22836 cat confdefs.h >>conftest.$ac_ext
22837 cat >>conftest.$ac_ext <<_ACEOF
22838 /* end confdefs.h.  */
22839 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22840    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
22841 #define $ac_func innocuous_$ac_func
22842
22843 /* System header to define __stub macros and hopefully few prototypes,
22844     which can conflict with char $ac_func (); below.
22845     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22846     <limits.h> exists even on freestanding compilers.  */
22847
22848 #ifdef __STDC__
22849 # include <limits.h>
22850 #else
22851 # include <assert.h>
22852 #endif
22853
22854 #undef $ac_func
22855
22856 /* Override any gcc2 internal prototype to avoid an error.  */
22857 #ifdef __cplusplus
22858 extern "C"
22859 {
22860 #endif
22861 /* We use char because int might match the return type of a gcc2
22862    builtin and then its argument prototype would still apply.  */
22863 char $ac_func ();
22864 /* The GNU C library defines this for functions which it implements
22865     to always fail with ENOSYS.  Some functions are actually named
22866     something starting with __ and the normal name is an alias.  */
22867 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22868 choke me
22869 #else
22870 char (*f) () = $ac_func;
22871 #endif
22872 #ifdef __cplusplus
22873 }
22874 #endif
22875
22876 int
22877 main ()
22878 {
22879 return f != $ac_func;
22880   ;
22881   return 0;
22882 }
22883 _ACEOF
22884 rm -f conftest.$ac_objext conftest$ac_exeext
22885 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22886   (eval $ac_link) 2>conftest.er1
22887   ac_status=$?
22888   grep -v '^ *+' conftest.er1 >conftest.err
22889   rm -f conftest.er1
22890   cat conftest.err >&5
22891   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22892   (exit $ac_status); } &&
22893          { ac_try='test -z "$ac_c_werror_flag"
22894                          || test ! -s conftest.err'
22895   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22896   (eval $ac_try) 2>&5
22897   ac_status=$?
22898   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22899   (exit $ac_status); }; } &&
22900          { ac_try='test -s conftest$ac_exeext'
22901   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22902   (eval $ac_try) 2>&5
22903   ac_status=$?
22904   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22905   (exit $ac_status); }; }; then
22906   eval "$as_ac_var=yes"
22907 else
22908   echo "$as_me: failed program was:" >&5
22909 sed 's/^/| /' conftest.$ac_ext >&5
22910
22911 eval "$as_ac_var=no"
22912 fi
22913 rm -f conftest.err conftest.$ac_objext \
22914       conftest$ac_exeext conftest.$ac_ext
22915 fi
22916 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22917 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22918 if test `eval echo '${'$as_ac_var'}'` = yes; then
22919   cat >>confdefs.h <<_ACEOF
22920 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22921 _ACEOF
22922
22923 fi
22924 done
22925
22926
22927
22928   echo "$as_me:$LINENO: checking if errno is properly declared" >&5
22929 echo $ECHO_N "checking if errno is properly declared... $ECHO_C" >&6
22930   if test "${gt_cv_var_errno_declaration+set}" = set; then
22931   echo $ECHO_N "(cached) $ECHO_C" >&6
22932 else
22933
22934     cat >conftest.$ac_ext <<_ACEOF
22935 /* confdefs.h.  */
22936 _ACEOF
22937 cat confdefs.h >>conftest.$ac_ext
22938 cat >>conftest.$ac_ext <<_ACEOF
22939 /* end confdefs.h.  */
22940 #include <errno.h>
22941       extern struct { int foo; } errno;
22942 int
22943 main ()
22944 {
22945 errno.foo = 1;
22946   ;
22947   return 0;
22948 }
22949 _ACEOF
22950 rm -f conftest.$ac_objext
22951 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22952   (eval $ac_compile) 2>conftest.er1
22953   ac_status=$?
22954   grep -v '^ *+' conftest.er1 >conftest.err
22955   rm -f conftest.er1
22956   cat conftest.err >&5
22957   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22958   (exit $ac_status); } &&
22959          { ac_try='test -z "$ac_c_werror_flag"
22960                          || test ! -s conftest.err'
22961   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22962   (eval $ac_try) 2>&5
22963   ac_status=$?
22964   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22965   (exit $ac_status); }; } &&
22966          { ac_try='test -s conftest.$ac_objext'
22967   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22968   (eval $ac_try) 2>&5
22969   ac_status=$?
22970   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22971   (exit $ac_status); }; }; then
22972   gt_cv_var_errno_declaration=no
22973 else
22974   echo "$as_me: failed program was:" >&5
22975 sed 's/^/| /' conftest.$ac_ext >&5
22976
22977 gt_cv_var_errno_declaration=yes
22978 fi
22979 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22980 fi
22981
22982   echo "$as_me:$LINENO: result: $gt_cv_var_errno_declaration" >&5
22983 echo "${ECHO_T}$gt_cv_var_errno_declaration" >&6
22984   if test $gt_cv_var_errno_declaration = yes; then
22985
22986 cat >>confdefs.h <<\_ACEOF
22987 #define HAVE_ERRNO_DECL 1
22988 _ACEOF
22989
22990   fi
22991
22992
22993
22994   echo "$as_me:$LINENO: checking if environ is properly declared" >&5
22995 echo $ECHO_N "checking if environ is properly declared... $ECHO_C" >&6
22996   if test "${gt_cv_var_environ_declaration+set}" = set; then
22997   echo $ECHO_N "(cached) $ECHO_C" >&6
22998 else
22999
23000     cat >conftest.$ac_ext <<_ACEOF
23001 /* confdefs.h.  */
23002 _ACEOF
23003 cat confdefs.h >>conftest.$ac_ext
23004 cat >>conftest.$ac_ext <<_ACEOF
23005 /* end confdefs.h.  */
23006 #include <unistd.h>
23007       extern struct { int foo; } environ;
23008 int
23009 main ()
23010 {
23011 environ.foo = 1;
23012   ;
23013   return 0;
23014 }
23015 _ACEOF
23016 rm -f conftest.$ac_objext
23017 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23018   (eval $ac_compile) 2>conftest.er1
23019   ac_status=$?
23020   grep -v '^ *+' conftest.er1 >conftest.err
23021   rm -f conftest.er1
23022   cat conftest.err >&5
23023   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23024   (exit $ac_status); } &&
23025          { ac_try='test -z "$ac_c_werror_flag"
23026                          || test ! -s conftest.err'
23027   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23028   (eval $ac_try) 2>&5
23029   ac_status=$?
23030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23031   (exit $ac_status); }; } &&
23032          { ac_try='test -s conftest.$ac_objext'
23033   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23034   (eval $ac_try) 2>&5
23035   ac_status=$?
23036   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23037   (exit $ac_status); }; }; then
23038   gt_cv_var_environ_declaration=no
23039 else
23040   echo "$as_me: failed program was:" >&5
23041 sed 's/^/| /' conftest.$ac_ext >&5
23042
23043 gt_cv_var_environ_declaration=yes
23044 fi
23045 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23046 fi
23047
23048   echo "$as_me:$LINENO: result: $gt_cv_var_environ_declaration" >&5
23049 echo "${ECHO_T}$gt_cv_var_environ_declaration" >&6
23050   if test $gt_cv_var_environ_declaration = yes; then
23051
23052 cat >>confdefs.h <<\_ACEOF
23053 #define HAVE_ENVIRON_DECL 1
23054 _ACEOF
23055
23056   fi
23057
23058
23059   fi
23060   if test $ac_cv_func_unsetenv = no; then
23061
23062
23063   :
23064
23065
23066
23067
23068
23069
23070
23071   echo "$as_me:$LINENO: checking if errno is properly declared" >&5
23072 echo $ECHO_N "checking if errno is properly declared... $ECHO_C" >&6
23073   if test "${gt_cv_var_errno_declaration+set}" = set; then
23074   echo $ECHO_N "(cached) $ECHO_C" >&6
23075 else
23076
23077     cat >conftest.$ac_ext <<_ACEOF
23078 /* confdefs.h.  */
23079 _ACEOF
23080 cat confdefs.h >>conftest.$ac_ext
23081 cat >>conftest.$ac_ext <<_ACEOF
23082 /* end confdefs.h.  */
23083 #include <errno.h>
23084       extern struct { int foo; } errno;
23085 int
23086 main ()
23087 {
23088 errno.foo = 1;
23089   ;
23090   return 0;
23091 }
23092 _ACEOF
23093 rm -f conftest.$ac_objext
23094 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23095   (eval $ac_compile) 2>conftest.er1
23096   ac_status=$?
23097   grep -v '^ *+' conftest.er1 >conftest.err
23098   rm -f conftest.er1
23099   cat conftest.err >&5
23100   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23101   (exit $ac_status); } &&
23102          { ac_try='test -z "$ac_c_werror_flag"
23103                          || test ! -s conftest.err'
23104   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23105   (eval $ac_try) 2>&5
23106   ac_status=$?
23107   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23108   (exit $ac_status); }; } &&
23109          { ac_try='test -s conftest.$ac_objext'
23110   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23111   (eval $ac_try) 2>&5
23112   ac_status=$?
23113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23114   (exit $ac_status); }; }; then
23115   gt_cv_var_errno_declaration=no
23116 else
23117   echo "$as_me: failed program was:" >&5
23118 sed 's/^/| /' conftest.$ac_ext >&5
23119
23120 gt_cv_var_errno_declaration=yes
23121 fi
23122 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23123 fi
23124
23125   echo "$as_me:$LINENO: result: $gt_cv_var_errno_declaration" >&5
23126 echo "${ECHO_T}$gt_cv_var_errno_declaration" >&6
23127   if test $gt_cv_var_errno_declaration = yes; then
23128
23129 cat >>confdefs.h <<\_ACEOF
23130 #define HAVE_ERRNO_DECL 1
23131 _ACEOF
23132
23133   fi
23134
23135
23136
23137   echo "$as_me:$LINENO: checking if environ is properly declared" >&5
23138 echo $ECHO_N "checking if environ is properly declared... $ECHO_C" >&6
23139   if test "${gt_cv_var_environ_declaration+set}" = set; then
23140   echo $ECHO_N "(cached) $ECHO_C" >&6
23141 else
23142
23143     cat >conftest.$ac_ext <<_ACEOF
23144 /* confdefs.h.  */
23145 _ACEOF
23146 cat confdefs.h >>conftest.$ac_ext
23147 cat >>conftest.$ac_ext <<_ACEOF
23148 /* end confdefs.h.  */
23149 #include <unistd.h>
23150       extern struct { int foo; } environ;
23151 int
23152 main ()
23153 {
23154 environ.foo = 1;
23155   ;
23156   return 0;
23157 }
23158 _ACEOF
23159 rm -f conftest.$ac_objext
23160 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23161   (eval $ac_compile) 2>conftest.er1
23162   ac_status=$?
23163   grep -v '^ *+' conftest.er1 >conftest.err
23164   rm -f conftest.er1
23165   cat conftest.err >&5
23166   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23167   (exit $ac_status); } &&
23168          { ac_try='test -z "$ac_c_werror_flag"
23169                          || test ! -s conftest.err'
23170   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23171   (eval $ac_try) 2>&5
23172   ac_status=$?
23173   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23174   (exit $ac_status); }; } &&
23175          { ac_try='test -s conftest.$ac_objext'
23176   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23177   (eval $ac_try) 2>&5
23178   ac_status=$?
23179   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23180   (exit $ac_status); }; }; then
23181   gt_cv_var_environ_declaration=no
23182 else
23183   echo "$as_me: failed program was:" >&5
23184 sed 's/^/| /' conftest.$ac_ext >&5
23185
23186 gt_cv_var_environ_declaration=yes
23187 fi
23188 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23189 fi
23190
23191   echo "$as_me:$LINENO: result: $gt_cv_var_environ_declaration" >&5
23192 echo "${ECHO_T}$gt_cv_var_environ_declaration" >&6
23193   if test $gt_cv_var_environ_declaration = yes; then
23194
23195 cat >>confdefs.h <<\_ACEOF
23196 #define HAVE_ENVIRON_DECL 1
23197 _ACEOF
23198
23199   fi
23200
23201
23202   else
23203     echo "$as_me:$LINENO: checking for unsetenv() return type" >&5
23204 echo $ECHO_N "checking for unsetenv() return type... $ECHO_C" >&6
23205 if test "${gt_cv_func_unsetenv_ret+set}" = set; then
23206   echo $ECHO_N "(cached) $ECHO_C" >&6
23207 else
23208   cat >conftest.$ac_ext <<_ACEOF
23209 /* confdefs.h.  */
23210 _ACEOF
23211 cat confdefs.h >>conftest.$ac_ext
23212 cat >>conftest.$ac_ext <<_ACEOF
23213 /* end confdefs.h.  */
23214 #include <stdlib.h>
23215 extern
23216 #ifdef __cplusplus
23217 "C"
23218 #endif
23219 #if defined(__STDC__) || defined(__cplusplus)
23220 int unsetenv (const char *name);
23221 #else
23222 int unsetenv();
23223 #endif
23224
23225 int
23226 main ()
23227 {
23228
23229   ;
23230   return 0;
23231 }
23232 _ACEOF
23233 rm -f conftest.$ac_objext
23234 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23235   (eval $ac_compile) 2>conftest.er1
23236   ac_status=$?
23237   grep -v '^ *+' conftest.er1 >conftest.err
23238   rm -f conftest.er1
23239   cat conftest.err >&5
23240   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23241   (exit $ac_status); } &&
23242          { ac_try='test -z "$ac_c_werror_flag"
23243                          || test ! -s conftest.err'
23244   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23245   (eval $ac_try) 2>&5
23246   ac_status=$?
23247   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23248   (exit $ac_status); }; } &&
23249          { ac_try='test -s conftest.$ac_objext'
23250   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23251   (eval $ac_try) 2>&5
23252   ac_status=$?
23253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23254   (exit $ac_status); }; }; then
23255   gt_cv_func_unsetenv_ret='int'
23256 else
23257   echo "$as_me: failed program was:" >&5
23258 sed 's/^/| /' conftest.$ac_ext >&5
23259
23260 gt_cv_func_unsetenv_ret='void'
23261 fi
23262 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23263 fi
23264 echo "$as_me:$LINENO: result: $gt_cv_func_unsetenv_ret" >&5
23265 echo "${ECHO_T}$gt_cv_func_unsetenv_ret" >&6
23266     if test $gt_cv_func_unsetenv_ret = 'void'; then
23267
23268 cat >>confdefs.h <<\_ACEOF
23269 #define VOID_UNSETENV 1
23270 _ACEOF
23271
23272     fi
23273   fi
23274
23275
23276   echo "$as_me:$LINENO: checking whether stat accepts an empty string" >&5
23277 echo $ECHO_N "checking whether stat accepts an empty string... $ECHO_C" >&6
23278 if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then
23279   echo $ECHO_N "(cached) $ECHO_C" >&6
23280 else
23281   if test "$cross_compiling" = yes; then
23282   ac_cv_func_stat_empty_string_bug=yes
23283 else
23284   cat >conftest.$ac_ext <<_ACEOF
23285 /* confdefs.h.  */
23286 _ACEOF
23287 cat confdefs.h >>conftest.$ac_ext
23288 cat >>conftest.$ac_ext <<_ACEOF
23289 /* end confdefs.h.  */
23290 $ac_includes_default
23291 int
23292 main ()
23293 {
23294 struct stat sbuf;
23295   exit (stat ("", &sbuf) ? 1 : 0);
23296   ;
23297   return 0;
23298 }
23299 _ACEOF
23300 rm -f conftest$ac_exeext
23301 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23302   (eval $ac_link) 2>&5
23303   ac_status=$?
23304   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23305   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23306   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23307   (eval $ac_try) 2>&5
23308   ac_status=$?
23309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23310   (exit $ac_status); }; }; then
23311   ac_cv_func_stat_empty_string_bug=yes
23312 else
23313   echo "$as_me: program exited with status $ac_status" >&5
23314 echo "$as_me: failed program was:" >&5
23315 sed 's/^/| /' conftest.$ac_ext >&5
23316
23317 ( exit $ac_status )
23318 ac_cv_func_stat_empty_string_bug=no
23319 fi
23320 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23321 fi
23322 fi
23323 echo "$as_me:$LINENO: result: $ac_cv_func_stat_empty_string_bug" >&5
23324 echo "${ECHO_T}$ac_cv_func_stat_empty_string_bug" >&6
23325 if test $ac_cv_func_stat_empty_string_bug = yes; then
23326   case $LIBOBJS in
23327     "stat.$ac_objext"   | \
23328   *" stat.$ac_objext"   | \
23329     "stat.$ac_objext "* | \
23330   *" stat.$ac_objext "* ) ;;
23331   *) LIBOBJS="$LIBOBJS stat.$ac_objext" ;;
23332 esac
23333
23334
23335 cat >>confdefs.h <<_ACEOF
23336 #define HAVE_STAT_EMPTY_STRING_BUG 1
23337 _ACEOF
23338
23339 fi
23340
23341     if test $ac_cv_func_stat_empty_string_bug = yes; then
23342
23343   :
23344
23345   fi
23346
23347
23348
23349
23350
23351
23352
23353   # Define two additional variables used in the Makefile substitution.
23354
23355   if test "$ac_cv_header_stdbool_h" = yes; then
23356     STDBOOL_H=''
23357   else
23358     STDBOOL_H='stdbool.h'
23359   fi
23360
23361
23362   if test "$ac_cv_type__Bool" = yes; then
23363     HAVE__BOOL=1
23364   else
23365     HAVE__BOOL=0
23366   fi
23367
23368
23369
23370
23371 for ac_header in sys/inttypes.h
23372 do
23373 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
23374 if eval "test \"\${$as_ac_Header+set}\" = set"; then
23375   echo "$as_me:$LINENO: checking for $ac_header" >&5
23376 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
23377 if eval "test \"\${$as_ac_Header+set}\" = set"; then
23378   echo $ECHO_N "(cached) $ECHO_C" >&6
23379 fi
23380 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
23381 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
23382 else
23383   # Is the header compilable?
23384 echo "$as_me:$LINENO: checking $ac_header usability" >&5
23385 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
23386 cat >conftest.$ac_ext <<_ACEOF
23387 /* confdefs.h.  */
23388 _ACEOF
23389 cat confdefs.h >>conftest.$ac_ext
23390 cat >>conftest.$ac_ext <<_ACEOF
23391 /* end confdefs.h.  */
23392 $ac_includes_default
23393 #include <$ac_header>
23394 _ACEOF
23395 rm -f conftest.$ac_objext
23396 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23397   (eval $ac_compile) 2>conftest.er1
23398   ac_status=$?
23399   grep -v '^ *+' conftest.er1 >conftest.err
23400   rm -f conftest.er1
23401   cat conftest.err >&5
23402   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23403   (exit $ac_status); } &&
23404          { ac_try='test -z "$ac_c_werror_flag"
23405                          || test ! -s conftest.err'
23406   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23407   (eval $ac_try) 2>&5
23408   ac_status=$?
23409   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23410   (exit $ac_status); }; } &&
23411          { ac_try='test -s conftest.$ac_objext'
23412   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23413   (eval $ac_try) 2>&5
23414   ac_status=$?
23415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23416   (exit $ac_status); }; }; then
23417   ac_header_compiler=yes
23418 else
23419   echo "$as_me: failed program was:" >&5
23420 sed 's/^/| /' conftest.$ac_ext >&5
23421
23422 ac_header_compiler=no
23423 fi
23424 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23425 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23426 echo "${ECHO_T}$ac_header_compiler" >&6
23427
23428 # Is the header present?
23429 echo "$as_me:$LINENO: checking $ac_header presence" >&5
23430 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
23431 cat >conftest.$ac_ext <<_ACEOF
23432 /* confdefs.h.  */
23433 _ACEOF
23434 cat confdefs.h >>conftest.$ac_ext
23435 cat >>conftest.$ac_ext <<_ACEOF
23436 /* end confdefs.h.  */
23437 #include <$ac_header>
23438 _ACEOF
23439 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23440   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23441   ac_status=$?
23442   grep -v '^ *+' conftest.er1 >conftest.err
23443   rm -f conftest.er1
23444   cat conftest.err >&5
23445   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23446   (exit $ac_status); } >/dev/null; then
23447   if test -s conftest.err; then
23448     ac_cpp_err=$ac_c_preproc_warn_flag
23449     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
23450   else
23451     ac_cpp_err=
23452   fi
23453 else
23454   ac_cpp_err=yes
23455 fi
23456 if test -z "$ac_cpp_err"; then
23457   ac_header_preproc=yes
23458 else
23459   echo "$as_me: failed program was:" >&5
23460 sed 's/^/| /' conftest.$ac_ext >&5
23461
23462   ac_header_preproc=no
23463 fi
23464 rm -f conftest.err conftest.$ac_ext
23465 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23466 echo "${ECHO_T}$ac_header_preproc" >&6
23467
23468 # So?  What about this header?
23469 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23470   yes:no: )
23471     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23472 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23473     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23474 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23475     ac_header_preproc=yes
23476     ;;
23477   no:yes:* )
23478     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23479 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23480     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
23481 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
23482     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23483 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23484     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
23485 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
23486     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23487 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23488     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23489 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23490     (
23491       cat <<\_ASBOX
23492 ## ------------------------------ ##
23493 ## Report this to bug-cvs@gnu.org ##
23494 ## ------------------------------ ##
23495 _ASBOX
23496     ) |
23497       sed "s/^/$as_me: WARNING:     /" >&2
23498     ;;
23499 esac
23500 echo "$as_me:$LINENO: checking for $ac_header" >&5
23501 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
23502 if eval "test \"\${$as_ac_Header+set}\" = set"; then
23503   echo $ECHO_N "(cached) $ECHO_C" >&6
23504 else
23505   eval "$as_ac_Header=\$ac_header_preproc"
23506 fi
23507 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
23508 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
23509
23510 fi
23511 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23512   cat >>confdefs.h <<_ACEOF
23513 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23514 _ACEOF
23515
23516 fi
23517
23518 done
23519
23520
23521 echo "$as_me:$LINENO: checking for stdint.h" >&5
23522 echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6
23523 if test "${gl_cv_header_stdint_h+set}" = set; then
23524   echo $ECHO_N "(cached) $ECHO_C" >&6
23525 else
23526
23527   cat >conftest.$ac_ext <<_ACEOF
23528 /* confdefs.h.  */
23529 _ACEOF
23530 cat confdefs.h >>conftest.$ac_ext
23531 cat >>conftest.$ac_ext <<_ACEOF
23532 /* end confdefs.h.  */
23533 #include <stdint.h>
23534 int
23535 main ()
23536 {
23537
23538   ;
23539   return 0;
23540 }
23541 _ACEOF
23542 rm -f conftest.$ac_objext
23543 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23544   (eval $ac_compile) 2>conftest.er1
23545   ac_status=$?
23546   grep -v '^ *+' conftest.er1 >conftest.err
23547   rm -f conftest.er1
23548   cat conftest.err >&5
23549   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23550   (exit $ac_status); } &&
23551          { ac_try='test -z "$ac_c_werror_flag"
23552                          || test ! -s conftest.err'
23553   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23554   (eval $ac_try) 2>&5
23555   ac_status=$?
23556   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23557   (exit $ac_status); }; } &&
23558          { ac_try='test -s conftest.$ac_objext'
23559   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23560   (eval $ac_try) 2>&5
23561   ac_status=$?
23562   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23563   (exit $ac_status); }; }; then
23564   gl_cv_header_stdint_h=yes
23565 else
23566   echo "$as_me: failed program was:" >&5
23567 sed 's/^/| /' conftest.$ac_ext >&5
23568
23569 gl_cv_header_stdint_h=no
23570 fi
23571 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23572 fi
23573
23574 echo "$as_me:$LINENO: result: $gl_cv_header_stdint_h" >&5
23575 echo "${ECHO_T}$gl_cv_header_stdint_h" >&6
23576 if test $gl_cv_header_stdint_h = yes; then
23577
23578 cat >>confdefs.h <<\_ACEOF
23579 #define HAVE_STDINT_H 1
23580 _ACEOF
23581
23582   STDINT_H=''
23583 else
23584   STDINT_H='stdint.h'
23585
23586     echo "$as_me:$LINENO: checking whether 'long' is 64 bit wide" >&5
23587 echo $ECHO_N "checking whether 'long' is 64 bit wide... $ECHO_C" >&6
23588 if test "${gl_cv_long_bitsize_64+set}" = set; then
23589   echo $ECHO_N "(cached) $ECHO_C" >&6
23590 else
23591
23592     cat >conftest.$ac_ext <<_ACEOF
23593 /* confdefs.h.  */
23594 _ACEOF
23595 cat confdefs.h >>conftest.$ac_ext
23596 cat >>conftest.$ac_ext <<_ACEOF
23597 /* end confdefs.h.  */
23598
23599 #define POW63  ((((((long) 1 << 15) << 15) << 15) << 15) << 3)
23600 #define POW64  ((((((long) 1 << 15) << 15) << 15) << 15) << 4)
23601 typedef int array [2 * (POW63 != 0 && POW64 == 0) - 1];
23602
23603 int
23604 main ()
23605 {
23606
23607   ;
23608   return 0;
23609 }
23610 _ACEOF
23611 rm -f conftest.$ac_objext
23612 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23613   (eval $ac_compile) 2>conftest.er1
23614   ac_status=$?
23615   grep -v '^ *+' conftest.er1 >conftest.err
23616   rm -f conftest.er1
23617   cat conftest.err >&5
23618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23619   (exit $ac_status); } &&
23620          { ac_try='test -z "$ac_c_werror_flag"
23621                          || test ! -s conftest.err'
23622   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23623   (eval $ac_try) 2>&5
23624   ac_status=$?
23625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23626   (exit $ac_status); }; } &&
23627          { ac_try='test -s conftest.$ac_objext'
23628   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23629   (eval $ac_try) 2>&5
23630   ac_status=$?
23631   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23632   (exit $ac_status); }; }; then
23633   gl_cv_long_bitsize_64=yes
23634 else
23635   echo "$as_me: failed program was:" >&5
23636 sed 's/^/| /' conftest.$ac_ext >&5
23637
23638 gl_cv_long_bitsize_64=no
23639 fi
23640 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23641 fi
23642 echo "$as_me:$LINENO: result: $gl_cv_long_bitsize_64" >&5
23643 echo "${ECHO_T}$gl_cv_long_bitsize_64" >&6
23644   if test $gl_cv_long_bitsize_64 = yes; then
23645     HAVE_LONG_64BIT=1
23646   else
23647     HAVE_LONG_64BIT=0
23648   fi
23649
23650
23651     echo "$as_me:$LINENO: checking whether 'long long' is 64 bit wide" >&5
23652 echo $ECHO_N "checking whether 'long long' is 64 bit wide... $ECHO_C" >&6
23653 if test "${gl_cv_longlong_bitsize_64+set}" = set; then
23654   echo $ECHO_N "(cached) $ECHO_C" >&6
23655 else
23656
23657     cat >conftest.$ac_ext <<_ACEOF
23658 /* confdefs.h.  */
23659 _ACEOF
23660 cat confdefs.h >>conftest.$ac_ext
23661 cat >>conftest.$ac_ext <<_ACEOF
23662 /* end confdefs.h.  */
23663
23664 #define POW63  ((((((long long) 1 << 15) << 15) << 15) << 15) << 3)
23665 #define POW64  ((((((long long) 1 << 15) << 15) << 15) << 15) << 4)
23666 typedef int array [2 * (POW63 != 0 && POW64 == 0) - 1];
23667
23668 int
23669 main ()
23670 {
23671
23672   ;
23673   return 0;
23674 }
23675 _ACEOF
23676 rm -f conftest.$ac_objext
23677 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23678   (eval $ac_compile) 2>conftest.er1
23679   ac_status=$?
23680   grep -v '^ *+' conftest.er1 >conftest.err
23681   rm -f conftest.er1
23682   cat conftest.err >&5
23683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23684   (exit $ac_status); } &&
23685          { ac_try='test -z "$ac_c_werror_flag"
23686                          || test ! -s conftest.err'
23687   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23688   (eval $ac_try) 2>&5
23689   ac_status=$?
23690   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23691   (exit $ac_status); }; } &&
23692          { ac_try='test -s conftest.$ac_objext'
23693   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23694   (eval $ac_try) 2>&5
23695   ac_status=$?
23696   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23697   (exit $ac_status); }; }; then
23698   gl_cv_longlong_bitsize_64=yes
23699 else
23700   echo "$as_me: failed program was:" >&5
23701 sed 's/^/| /' conftest.$ac_ext >&5
23702
23703 gl_cv_longlong_bitsize_64=no
23704 fi
23705 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23706 fi
23707 echo "$as_me:$LINENO: result: $gl_cv_longlong_bitsize_64" >&5
23708 echo "${ECHO_T}$gl_cv_longlong_bitsize_64" >&6
23709   if test $gl_cv_longlong_bitsize_64 = yes; then
23710     HAVE_LONG_LONG_64BIT=1
23711   else
23712     HAVE_LONG_LONG_64BIT=0
23713   fi
23714
23715
23716 fi
23717
23718
23719
23720
23721
23722 for ac_func in strcasecmp
23723 do
23724 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23725 echo "$as_me:$LINENO: checking for $ac_func" >&5
23726 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
23727 if eval "test \"\${$as_ac_var+set}\" = set"; then
23728   echo $ECHO_N "(cached) $ECHO_C" >&6
23729 else
23730   cat >conftest.$ac_ext <<_ACEOF
23731 /* confdefs.h.  */
23732 _ACEOF
23733 cat confdefs.h >>conftest.$ac_ext
23734 cat >>conftest.$ac_ext <<_ACEOF
23735 /* end confdefs.h.  */
23736 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23737    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
23738 #define $ac_func innocuous_$ac_func
23739
23740 /* System header to define __stub macros and hopefully few prototypes,
23741     which can conflict with char $ac_func (); below.
23742     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23743     <limits.h> exists even on freestanding compilers.  */
23744
23745 #ifdef __STDC__
23746 # include <limits.h>
23747 #else
23748 # include <assert.h>
23749 #endif
23750
23751 #undef $ac_func
23752
23753 /* Override any gcc2 internal prototype to avoid an error.  */
23754 #ifdef __cplusplus
23755 extern "C"
23756 {
23757 #endif
23758 /* We use char because int might match the return type of a gcc2
23759    builtin and then its argument prototype would still apply.  */
23760 char $ac_func ();
23761 /* The GNU C library defines this for functions which it implements
23762     to always fail with ENOSYS.  Some functions are actually named
23763     something starting with __ and the normal name is an alias.  */
23764 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23765 choke me
23766 #else
23767 char (*f) () = $ac_func;
23768 #endif
23769 #ifdef __cplusplus
23770 }
23771 #endif
23772
23773 int
23774 main ()
23775 {
23776 return f != $ac_func;
23777   ;
23778   return 0;
23779 }
23780 _ACEOF
23781 rm -f conftest.$ac_objext conftest$ac_exeext
23782 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23783   (eval $ac_link) 2>conftest.er1
23784   ac_status=$?
23785   grep -v '^ *+' conftest.er1 >conftest.err
23786   rm -f conftest.er1
23787   cat conftest.err >&5
23788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23789   (exit $ac_status); } &&
23790          { ac_try='test -z "$ac_c_werror_flag"
23791                          || test ! -s conftest.err'
23792   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23793   (eval $ac_try) 2>&5
23794   ac_status=$?
23795   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23796   (exit $ac_status); }; } &&
23797          { ac_try='test -s conftest$ac_exeext'
23798   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23799   (eval $ac_try) 2>&5
23800   ac_status=$?
23801   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23802   (exit $ac_status); }; }; then
23803   eval "$as_ac_var=yes"
23804 else
23805   echo "$as_me: failed program was:" >&5
23806 sed 's/^/| /' conftest.$ac_ext >&5
23807
23808 eval "$as_ac_var=no"
23809 fi
23810 rm -f conftest.err conftest.$ac_objext \
23811       conftest$ac_exeext conftest.$ac_ext
23812 fi
23813 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
23814 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
23815 if test `eval echo '${'$as_ac_var'}'` = yes; then
23816   cat >>confdefs.h <<_ACEOF
23817 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23818 _ACEOF
23819
23820 else
23821   case $LIBOBJS in
23822     "$ac_func.$ac_objext"   | \
23823   *" $ac_func.$ac_objext"   | \
23824     "$ac_func.$ac_objext "* | \
23825   *" $ac_func.$ac_objext "* ) ;;
23826   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
23827 esac
23828
23829 fi
23830 done
23831
23832
23833   if test $ac_cv_func_strcasecmp = no; then
23834
23835   :
23836
23837   fi
23838
23839
23840
23841 for ac_func in strncasecmp
23842 do
23843 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23844 echo "$as_me:$LINENO: checking for $ac_func" >&5
23845 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
23846 if eval "test \"\${$as_ac_var+set}\" = set"; then
23847   echo $ECHO_N "(cached) $ECHO_C" >&6
23848 else
23849   cat >conftest.$ac_ext <<_ACEOF
23850 /* confdefs.h.  */
23851 _ACEOF
23852 cat confdefs.h >>conftest.$ac_ext
23853 cat >>conftest.$ac_ext <<_ACEOF
23854 /* end confdefs.h.  */
23855 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23856    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
23857 #define $ac_func innocuous_$ac_func
23858
23859 /* System header to define __stub macros and hopefully few prototypes,
23860     which can conflict with char $ac_func (); below.
23861     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23862     <limits.h> exists even on freestanding compilers.  */
23863
23864 #ifdef __STDC__
23865 # include <limits.h>
23866 #else
23867 # include <assert.h>
23868 #endif
23869
23870 #undef $ac_func
23871
23872 /* Override any gcc2 internal prototype to avoid an error.  */
23873 #ifdef __cplusplus
23874 extern "C"
23875 {
23876 #endif
23877 /* We use char because int might match the return type of a gcc2
23878    builtin and then its argument prototype would still apply.  */
23879 char $ac_func ();
23880 /* The GNU C library defines this for functions which it implements
23881     to always fail with ENOSYS.  Some functions are actually named
23882     something starting with __ and the normal name is an alias.  */
23883 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23884 choke me
23885 #else
23886 char (*f) () = $ac_func;
23887 #endif
23888 #ifdef __cplusplus
23889 }
23890 #endif
23891
23892 int
23893 main ()
23894 {
23895 return f != $ac_func;
23896   ;
23897   return 0;
23898 }
23899 _ACEOF
23900 rm -f conftest.$ac_objext conftest$ac_exeext
23901 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23902   (eval $ac_link) 2>conftest.er1
23903   ac_status=$?
23904   grep -v '^ *+' conftest.er1 >conftest.err
23905   rm -f conftest.er1
23906   cat conftest.err >&5
23907   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23908   (exit $ac_status); } &&
23909          { ac_try='test -z "$ac_c_werror_flag"
23910                          || test ! -s conftest.err'
23911   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23912   (eval $ac_try) 2>&5
23913   ac_status=$?
23914   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23915   (exit $ac_status); }; } &&
23916          { ac_try='test -s conftest$ac_exeext'
23917   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23918   (eval $ac_try) 2>&5
23919   ac_status=$?
23920   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23921   (exit $ac_status); }; }; then
23922   eval "$as_ac_var=yes"
23923 else
23924   echo "$as_me: failed program was:" >&5
23925 sed 's/^/| /' conftest.$ac_ext >&5
23926
23927 eval "$as_ac_var=no"
23928 fi
23929 rm -f conftest.err conftest.$ac_objext \
23930       conftest$ac_exeext conftest.$ac_ext
23931 fi
23932 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
23933 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
23934 if test `eval echo '${'$as_ac_var'}'` = yes; then
23935   cat >>confdefs.h <<_ACEOF
23936 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23937 _ACEOF
23938
23939 else
23940   case $LIBOBJS in
23941     "$ac_func.$ac_objext"   | \
23942   *" $ac_func.$ac_objext"   | \
23943     "$ac_func.$ac_objext "* | \
23944   *" $ac_func.$ac_objext "* ) ;;
23945   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
23946 esac
23947
23948 fi
23949 done
23950
23951
23952   if test $ac_cv_func_strncasecmp = no; then
23953
23954   :
23955
23956   fi
23957
23958
23959
23960
23961 for ac_func in strerror
23962 do
23963 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23964 echo "$as_me:$LINENO: checking for $ac_func" >&5
23965 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
23966 if eval "test \"\${$as_ac_var+set}\" = set"; then
23967   echo $ECHO_N "(cached) $ECHO_C" >&6
23968 else
23969   cat >conftest.$ac_ext <<_ACEOF
23970 /* confdefs.h.  */
23971 _ACEOF
23972 cat confdefs.h >>conftest.$ac_ext
23973 cat >>conftest.$ac_ext <<_ACEOF
23974 /* end confdefs.h.  */
23975 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23976    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
23977 #define $ac_func innocuous_$ac_func
23978
23979 /* System header to define __stub macros and hopefully few prototypes,
23980     which can conflict with char $ac_func (); below.
23981     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23982     <limits.h> exists even on freestanding compilers.  */
23983
23984 #ifdef __STDC__
23985 # include <limits.h>
23986 #else
23987 # include <assert.h>
23988 #endif
23989
23990 #undef $ac_func
23991
23992 /* Override any gcc2 internal prototype to avoid an error.  */
23993 #ifdef __cplusplus
23994 extern "C"
23995 {
23996 #endif
23997 /* We use char because int might match the return type of a gcc2
23998    builtin and then its argument prototype would still apply.  */
23999 char $ac_func ();
24000 /* The GNU C library defines this for functions which it implements
24001     to always fail with ENOSYS.  Some functions are actually named
24002     something starting with __ and the normal name is an alias.  */
24003 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24004 choke me
24005 #else
24006 char (*f) () = $ac_func;
24007 #endif
24008 #ifdef __cplusplus
24009 }
24010 #endif
24011
24012 int
24013 main ()
24014 {
24015 return f != $ac_func;
24016   ;
24017   return 0;
24018 }
24019 _ACEOF
24020 rm -f conftest.$ac_objext conftest$ac_exeext
24021 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24022   (eval $ac_link) 2>conftest.er1
24023   ac_status=$?
24024   grep -v '^ *+' conftest.er1 >conftest.err
24025   rm -f conftest.er1
24026   cat conftest.err >&5
24027   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24028   (exit $ac_status); } &&
24029          { ac_try='test -z "$ac_c_werror_flag"
24030                          || test ! -s conftest.err'
24031   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24032   (eval $ac_try) 2>&5
24033   ac_status=$?
24034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24035   (exit $ac_status); }; } &&
24036          { ac_try='test -s conftest$ac_exeext'
24037   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24038   (eval $ac_try) 2>&5
24039   ac_status=$?
24040   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24041   (exit $ac_status); }; }; then
24042   eval "$as_ac_var=yes"
24043 else
24044   echo "$as_me: failed program was:" >&5
24045 sed 's/^/| /' conftest.$ac_ext >&5
24046
24047 eval "$as_ac_var=no"
24048 fi
24049 rm -f conftest.err conftest.$ac_objext \
24050       conftest$ac_exeext conftest.$ac_ext
24051 fi
24052 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24053 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24054 if test `eval echo '${'$as_ac_var'}'` = yes; then
24055   cat >>confdefs.h <<_ACEOF
24056 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24057 _ACEOF
24058
24059 else
24060   case $LIBOBJS in
24061     "$ac_func.$ac_objext"   | \
24062   *" $ac_func.$ac_objext"   | \
24063     "$ac_func.$ac_objext "* | \
24064   *" $ac_func.$ac_objext "* ) ;;
24065   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
24066 esac
24067
24068 fi
24069 done
24070
24071
24072   if test $ac_cv_func_strerror = no; then
24073
24074   :
24075
24076   fi
24077
24078
24079
24080
24081 for ac_func in strstr
24082 do
24083 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24084 echo "$as_me:$LINENO: checking for $ac_func" >&5
24085 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24086 if eval "test \"\${$as_ac_var+set}\" = set"; then
24087   echo $ECHO_N "(cached) $ECHO_C" >&6
24088 else
24089   cat >conftest.$ac_ext <<_ACEOF
24090 /* confdefs.h.  */
24091 _ACEOF
24092 cat confdefs.h >>conftest.$ac_ext
24093 cat >>conftest.$ac_ext <<_ACEOF
24094 /* end confdefs.h.  */
24095 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24096    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24097 #define $ac_func innocuous_$ac_func
24098
24099 /* System header to define __stub macros and hopefully few prototypes,
24100     which can conflict with char $ac_func (); below.
24101     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24102     <limits.h> exists even on freestanding compilers.  */
24103
24104 #ifdef __STDC__
24105 # include <limits.h>
24106 #else
24107 # include <assert.h>
24108 #endif
24109
24110 #undef $ac_func
24111
24112 /* Override any gcc2 internal prototype to avoid an error.  */
24113 #ifdef __cplusplus
24114 extern "C"
24115 {
24116 #endif
24117 /* We use char because int might match the return type of a gcc2
24118    builtin and then its argument prototype would still apply.  */
24119 char $ac_func ();
24120 /* The GNU C library defines this for functions which it implements
24121     to always fail with ENOSYS.  Some functions are actually named
24122     something starting with __ and the normal name is an alias.  */
24123 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24124 choke me
24125 #else
24126 char (*f) () = $ac_func;
24127 #endif
24128 #ifdef __cplusplus
24129 }
24130 #endif
24131
24132 int
24133 main ()
24134 {
24135 return f != $ac_func;
24136   ;
24137   return 0;
24138 }
24139 _ACEOF
24140 rm -f conftest.$ac_objext conftest$ac_exeext
24141 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24142   (eval $ac_link) 2>conftest.er1
24143   ac_status=$?
24144   grep -v '^ *+' conftest.er1 >conftest.err
24145   rm -f conftest.er1
24146   cat conftest.err >&5
24147   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24148   (exit $ac_status); } &&
24149          { ac_try='test -z "$ac_c_werror_flag"
24150                          || test ! -s conftest.err'
24151   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24152   (eval $ac_try) 2>&5
24153   ac_status=$?
24154   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24155   (exit $ac_status); }; } &&
24156          { ac_try='test -s conftest$ac_exeext'
24157   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24158   (eval $ac_try) 2>&5
24159   ac_status=$?
24160   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24161   (exit $ac_status); }; }; then
24162   eval "$as_ac_var=yes"
24163 else
24164   echo "$as_me: failed program was:" >&5
24165 sed 's/^/| /' conftest.$ac_ext >&5
24166
24167 eval "$as_ac_var=no"
24168 fi
24169 rm -f conftest.err conftest.$ac_objext \
24170       conftest$ac_exeext conftest.$ac_ext
24171 fi
24172 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24173 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24174 if test `eval echo '${'$as_ac_var'}'` = yes; then
24175   cat >>confdefs.h <<_ACEOF
24176 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24177 _ACEOF
24178
24179 else
24180   case $LIBOBJS in
24181     "$ac_func.$ac_objext"   | \
24182   *" $ac_func.$ac_objext"   | \
24183     "$ac_func.$ac_objext "* | \
24184   *" $ac_func.$ac_objext "* ) ;;
24185   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
24186 esac
24187
24188 fi
24189 done
24190
24191
24192   if test $ac_cv_func_strstr = no; then
24193     :
24194   fi
24195
24196
24197
24198 for ac_func in strtol
24199 do
24200 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24201 echo "$as_me:$LINENO: checking for $ac_func" >&5
24202 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24203 if eval "test \"\${$as_ac_var+set}\" = set"; then
24204   echo $ECHO_N "(cached) $ECHO_C" >&6
24205 else
24206   cat >conftest.$ac_ext <<_ACEOF
24207 /* confdefs.h.  */
24208 _ACEOF
24209 cat confdefs.h >>conftest.$ac_ext
24210 cat >>conftest.$ac_ext <<_ACEOF
24211 /* end confdefs.h.  */
24212 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24213    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24214 #define $ac_func innocuous_$ac_func
24215
24216 /* System header to define __stub macros and hopefully few prototypes,
24217     which can conflict with char $ac_func (); below.
24218     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24219     <limits.h> exists even on freestanding compilers.  */
24220
24221 #ifdef __STDC__
24222 # include <limits.h>
24223 #else
24224 # include <assert.h>
24225 #endif
24226
24227 #undef $ac_func
24228
24229 /* Override any gcc2 internal prototype to avoid an error.  */
24230 #ifdef __cplusplus
24231 extern "C"
24232 {
24233 #endif
24234 /* We use char because int might match the return type of a gcc2
24235    builtin and then its argument prototype would still apply.  */
24236 char $ac_func ();
24237 /* The GNU C library defines this for functions which it implements
24238     to always fail with ENOSYS.  Some functions are actually named
24239     something starting with __ and the normal name is an alias.  */
24240 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24241 choke me
24242 #else
24243 char (*f) () = $ac_func;
24244 #endif
24245 #ifdef __cplusplus
24246 }
24247 #endif
24248
24249 int
24250 main ()
24251 {
24252 return f != $ac_func;
24253   ;
24254   return 0;
24255 }
24256 _ACEOF
24257 rm -f conftest.$ac_objext conftest$ac_exeext
24258 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24259   (eval $ac_link) 2>conftest.er1
24260   ac_status=$?
24261   grep -v '^ *+' conftest.er1 >conftest.err
24262   rm -f conftest.er1
24263   cat conftest.err >&5
24264   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24265   (exit $ac_status); } &&
24266          { ac_try='test -z "$ac_c_werror_flag"
24267                          || test ! -s conftest.err'
24268   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24269   (eval $ac_try) 2>&5
24270   ac_status=$?
24271   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24272   (exit $ac_status); }; } &&
24273          { ac_try='test -s conftest$ac_exeext'
24274   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24275   (eval $ac_try) 2>&5
24276   ac_status=$?
24277   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24278   (exit $ac_status); }; }; then
24279   eval "$as_ac_var=yes"
24280 else
24281   echo "$as_me: failed program was:" >&5
24282 sed 's/^/| /' conftest.$ac_ext >&5
24283
24284 eval "$as_ac_var=no"
24285 fi
24286 rm -f conftest.err conftest.$ac_objext \
24287       conftest$ac_exeext conftest.$ac_ext
24288 fi
24289 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24290 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24291 if test `eval echo '${'$as_ac_var'}'` = yes; then
24292   cat >>confdefs.h <<_ACEOF
24293 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24294 _ACEOF
24295
24296 else
24297   case $LIBOBJS in
24298     "$ac_func.$ac_objext"   | \
24299   *" $ac_func.$ac_objext"   | \
24300     "$ac_func.$ac_objext "* | \
24301   *" $ac_func.$ac_objext "* ) ;;
24302   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
24303 esac
24304
24305 fi
24306 done
24307
24308
24309   if test $ac_cv_func_strtol = no; then
24310
24311
24312
24313   :
24314
24315
24316
24317
24318
24319
24320   fi
24321
24322
24323
24324 for ac_func in strtoul
24325 do
24326 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24327 echo "$as_me:$LINENO: checking for $ac_func" >&5
24328 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24329 if eval "test \"\${$as_ac_var+set}\" = set"; then
24330   echo $ECHO_N "(cached) $ECHO_C" >&6
24331 else
24332   cat >conftest.$ac_ext <<_ACEOF
24333 /* confdefs.h.  */
24334 _ACEOF
24335 cat confdefs.h >>conftest.$ac_ext
24336 cat >>conftest.$ac_ext <<_ACEOF
24337 /* end confdefs.h.  */
24338 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24339    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24340 #define $ac_func innocuous_$ac_func
24341
24342 /* System header to define __stub macros and hopefully few prototypes,
24343     which can conflict with char $ac_func (); below.
24344     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24345     <limits.h> exists even on freestanding compilers.  */
24346
24347 #ifdef __STDC__
24348 # include <limits.h>
24349 #else
24350 # include <assert.h>
24351 #endif
24352
24353 #undef $ac_func
24354
24355 /* Override any gcc2 internal prototype to avoid an error.  */
24356 #ifdef __cplusplus
24357 extern "C"
24358 {
24359 #endif
24360 /* We use char because int might match the return type of a gcc2
24361    builtin and then its argument prototype would still apply.  */
24362 char $ac_func ();
24363 /* The GNU C library defines this for functions which it implements
24364     to always fail with ENOSYS.  Some functions are actually named
24365     something starting with __ and the normal name is an alias.  */
24366 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24367 choke me
24368 #else
24369 char (*f) () = $ac_func;
24370 #endif
24371 #ifdef __cplusplus
24372 }
24373 #endif
24374
24375 int
24376 main ()
24377 {
24378 return f != $ac_func;
24379   ;
24380   return 0;
24381 }
24382 _ACEOF
24383 rm -f conftest.$ac_objext conftest$ac_exeext
24384 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24385   (eval $ac_link) 2>conftest.er1
24386   ac_status=$?
24387   grep -v '^ *+' conftest.er1 >conftest.err
24388   rm -f conftest.er1
24389   cat conftest.err >&5
24390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24391   (exit $ac_status); } &&
24392          { ac_try='test -z "$ac_c_werror_flag"
24393                          || test ! -s conftest.err'
24394   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24395   (eval $ac_try) 2>&5
24396   ac_status=$?
24397   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24398   (exit $ac_status); }; } &&
24399          { ac_try='test -s conftest$ac_exeext'
24400   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24401   (eval $ac_try) 2>&5
24402   ac_status=$?
24403   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24404   (exit $ac_status); }; }; then
24405   eval "$as_ac_var=yes"
24406 else
24407   echo "$as_me: failed program was:" >&5
24408 sed 's/^/| /' conftest.$ac_ext >&5
24409
24410 eval "$as_ac_var=no"
24411 fi
24412 rm -f conftest.err conftest.$ac_objext \
24413       conftest$ac_exeext conftest.$ac_ext
24414 fi
24415 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24416 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24417 if test `eval echo '${'$as_ac_var'}'` = yes; then
24418   cat >>confdefs.h <<_ACEOF
24419 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24420 _ACEOF
24421
24422 else
24423   case $LIBOBJS in
24424     "$ac_func.$ac_objext"   | \
24425   *" $ac_func.$ac_objext"   | \
24426     "$ac_func.$ac_objext "* | \
24427   *" $ac_func.$ac_objext "* ) ;;
24428   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
24429 esac
24430
24431 fi
24432 done
24433
24434
24435   if test $ac_cv_func_strtoul = no; then
24436
24437
24438
24439
24440   :
24441
24442
24443
24444
24445
24446
24447
24448   fi
24449
24450
24451
24452
24453
24454   echo "$as_me:$LINENO: checking whether localtime_r is compatible with its POSIX signature" >&5
24455 echo $ECHO_N "checking whether localtime_r is compatible with its POSIX signature... $ECHO_C" >&6
24456 if test "${gl_cv_time_r_posix+set}" = set; then
24457   echo $ECHO_N "(cached) $ECHO_C" >&6
24458 else
24459   cat >conftest.$ac_ext <<_ACEOF
24460 /* confdefs.h.  */
24461 _ACEOF
24462 cat confdefs.h >>conftest.$ac_ext
24463 cat >>conftest.$ac_ext <<_ACEOF
24464 /* end confdefs.h.  */
24465 #include <time.h>
24466 int
24467 main ()
24468 {
24469 /* We don't need to append 'restrict's to the argument types,
24470            even though the POSIX signature has the 'restrict's,
24471            since C99 says they can't affect type compatibility.  */
24472         struct tm * (*ptr) (time_t const *, struct tm *) = localtime_r;
24473   ;
24474   return 0;
24475 }
24476 _ACEOF
24477 rm -f conftest.$ac_objext
24478 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24479   (eval $ac_compile) 2>conftest.er1
24480   ac_status=$?
24481   grep -v '^ *+' conftest.er1 >conftest.err
24482   rm -f conftest.er1
24483   cat conftest.err >&5
24484   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24485   (exit $ac_status); } &&
24486          { ac_try='test -z "$ac_c_werror_flag"
24487                          || test ! -s conftest.err'
24488   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24489   (eval $ac_try) 2>&5
24490   ac_status=$?
24491   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24492   (exit $ac_status); }; } &&
24493          { ac_try='test -s conftest.$ac_objext'
24494   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24495   (eval $ac_try) 2>&5
24496   ac_status=$?
24497   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24498   (exit $ac_status); }; }; then
24499   gl_cv_time_r_posix=yes
24500 else
24501   echo "$as_me: failed program was:" >&5
24502 sed 's/^/| /' conftest.$ac_ext >&5
24503
24504 gl_cv_time_r_posix=no
24505 fi
24506 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24507 fi
24508 echo "$as_me:$LINENO: result: $gl_cv_time_r_posix" >&5
24509 echo "${ECHO_T}$gl_cv_time_r_posix" >&6
24510   if test $gl_cv_time_r_posix = yes; then
24511
24512 cat >>confdefs.h <<\_ACEOF
24513 #define HAVE_TIME_R_POSIX 1
24514 _ACEOF
24515
24516   else
24517     case $LIBOBJS in
24518     "time_r.$ac_objext"   | \
24519   *" time_r.$ac_objext"   | \
24520     "time_r.$ac_objext "* | \
24521   *" time_r.$ac_objext "* ) ;;
24522   *) LIBOBJS="$LIBOBJS time_r.$ac_objext" ;;
24523 esac
24524
24525
24526   :
24527
24528   fi
24529
24530
24531
24532
24533
24534
24535   :
24536
24537
24538
24539
24540
24541
24542
24543
24544
24545
24546   :
24547
24548
24549
24550
24551
24552   echo "$as_me:$LINENO: checking for struct timespec" >&5
24553 echo $ECHO_N "checking for struct timespec... $ECHO_C" >&6
24554 if test "${fu_cv_sys_struct_timespec+set}" = set; then
24555   echo $ECHO_N "(cached) $ECHO_C" >&6
24556 else
24557   cat >conftest.$ac_ext <<_ACEOF
24558 /* confdefs.h.  */
24559 _ACEOF
24560 cat confdefs.h >>conftest.$ac_ext
24561 cat >>conftest.$ac_ext <<_ACEOF
24562 /* end confdefs.h.  */
24563
24564 #      if TIME_WITH_SYS_TIME
24565 #       include <sys/time.h>
24566 #       include <time.h>
24567 #      else
24568 #       if HAVE_SYS_TIME_H
24569 #        include <sys/time.h>
24570 #       else
24571 #        include <time.h>
24572 #       endif
24573 #      endif
24574
24575 int
24576 main ()
24577 {
24578 static struct timespec x; x.tv_sec = x.tv_nsec;
24579   ;
24580   return 0;
24581 }
24582 _ACEOF
24583 rm -f conftest.$ac_objext
24584 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24585   (eval $ac_compile) 2>conftest.er1
24586   ac_status=$?
24587   grep -v '^ *+' conftest.er1 >conftest.err
24588   rm -f conftest.er1
24589   cat conftest.err >&5
24590   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24591   (exit $ac_status); } &&
24592          { ac_try='test -z "$ac_c_werror_flag"
24593                          || test ! -s conftest.err'
24594   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24595   (eval $ac_try) 2>&5
24596   ac_status=$?
24597   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24598   (exit $ac_status); }; } &&
24599          { ac_try='test -s conftest.$ac_objext'
24600   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24601   (eval $ac_try) 2>&5
24602   ac_status=$?
24603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24604   (exit $ac_status); }; }; then
24605   fu_cv_sys_struct_timespec=yes
24606 else
24607   echo "$as_me: failed program was:" >&5
24608 sed 's/^/| /' conftest.$ac_ext >&5
24609
24610 fu_cv_sys_struct_timespec=no
24611 fi
24612 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24613
24614 fi
24615 echo "$as_me:$LINENO: result: $fu_cv_sys_struct_timespec" >&5
24616 echo "${ECHO_T}$fu_cv_sys_struct_timespec" >&6
24617
24618   if test $fu_cv_sys_struct_timespec = yes; then
24619
24620 cat >>confdefs.h <<\_ACEOF
24621 #define HAVE_STRUCT_TIMESPEC 1
24622 _ACEOF
24623
24624   fi
24625
24626   echo "$as_me:$LINENO: checking for nanoseconds member of struct stat.st_mtim" >&5
24627 echo $ECHO_N "checking for nanoseconds member of struct stat.st_mtim... $ECHO_C" >&6
24628 if test "${ac_cv_struct_st_mtim_nsec+set}" = set; then
24629   echo $ECHO_N "(cached) $ECHO_C" >&6
24630 else
24631   ac_save_CPPFLAGS="$CPPFLAGS"
24632     ac_cv_struct_st_mtim_nsec=no
24633     # tv_nsec -- the usual case
24634     # _tv_nsec -- Solaris 2.6, if
24635     #   (defined _XOPEN_SOURCE && _XOPEN_SOURCE_EXTENDED == 1
24636     #    && !defined __EXTENSIONS__)
24637     # st__tim.tv_nsec -- UnixWare 2.1.2
24638     for ac_val in tv_nsec _tv_nsec st__tim.tv_nsec; do
24639       CPPFLAGS="$ac_save_CPPFLAGS -DST_MTIM_NSEC=$ac_val"
24640       cat >conftest.$ac_ext <<_ACEOF
24641 /* confdefs.h.  */
24642 _ACEOF
24643 cat confdefs.h >>conftest.$ac_ext
24644 cat >>conftest.$ac_ext <<_ACEOF
24645 /* end confdefs.h.  */
24646 #include <sys/types.h>
24647 #include <sys/stat.h>
24648 int
24649 main ()
24650 {
24651 struct stat s; s.st_mtim.ST_MTIM_NSEC;
24652   ;
24653   return 0;
24654 }
24655 _ACEOF
24656 rm -f conftest.$ac_objext
24657 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24658   (eval $ac_compile) 2>conftest.er1
24659   ac_status=$?
24660   grep -v '^ *+' conftest.er1 >conftest.err
24661   rm -f conftest.er1
24662   cat conftest.err >&5
24663   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24664   (exit $ac_status); } &&
24665          { ac_try='test -z "$ac_c_werror_flag"
24666                          || test ! -s conftest.err'
24667   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24668   (eval $ac_try) 2>&5
24669   ac_status=$?
24670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24671   (exit $ac_status); }; } &&
24672          { ac_try='test -s conftest.$ac_objext'
24673   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24674   (eval $ac_try) 2>&5
24675   ac_status=$?
24676   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24677   (exit $ac_status); }; }; then
24678   ac_cv_struct_st_mtim_nsec=$ac_val; break
24679 else
24680   echo "$as_me: failed program was:" >&5
24681 sed 's/^/| /' conftest.$ac_ext >&5
24682
24683 fi
24684 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24685     done
24686     CPPFLAGS="$ac_save_CPPFLAGS"
24687 fi
24688 echo "$as_me:$LINENO: result: $ac_cv_struct_st_mtim_nsec" >&5
24689 echo "${ECHO_T}$ac_cv_struct_st_mtim_nsec" >&6
24690
24691   if test $ac_cv_struct_st_mtim_nsec != no; then
24692
24693 cat >>confdefs.h <<_ACEOF
24694 #define ST_MTIM_NSEC $ac_cv_struct_st_mtim_nsec
24695 _ACEOF
24696
24697   fi
24698
24699
24700
24701
24702
24703   echo "$as_me:$LINENO: checking whether nanosleep is declared" >&5
24704 echo $ECHO_N "checking whether nanosleep is declared... $ECHO_C" >&6
24705 if test "${ac_cv_have_decl_nanosleep+set}" = set; then
24706   echo $ECHO_N "(cached) $ECHO_C" >&6
24707 else
24708   cat >conftest.$ac_ext <<_ACEOF
24709 /* confdefs.h.  */
24710 _ACEOF
24711 cat confdefs.h >>conftest.$ac_ext
24712 cat >>conftest.$ac_ext <<_ACEOF
24713 /* end confdefs.h.  */
24714 #include <time.h>
24715
24716 int
24717 main ()
24718 {
24719 #ifndef nanosleep
24720   char *p = (char *) nanosleep;
24721 #endif
24722
24723   ;
24724   return 0;
24725 }
24726 _ACEOF
24727 rm -f conftest.$ac_objext
24728 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24729   (eval $ac_compile) 2>conftest.er1
24730   ac_status=$?
24731   grep -v '^ *+' conftest.er1 >conftest.err
24732   rm -f conftest.er1
24733   cat conftest.err >&5
24734   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24735   (exit $ac_status); } &&
24736          { ac_try='test -z "$ac_c_werror_flag"
24737                          || test ! -s conftest.err'
24738   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24739   (eval $ac_try) 2>&5
24740   ac_status=$?
24741   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24742   (exit $ac_status); }; } &&
24743          { ac_try='test -s conftest.$ac_objext'
24744   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24745   (eval $ac_try) 2>&5
24746   ac_status=$?
24747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24748   (exit $ac_status); }; }; then
24749   ac_cv_have_decl_nanosleep=yes
24750 else
24751   echo "$as_me: failed program was:" >&5
24752 sed 's/^/| /' conftest.$ac_ext >&5
24753
24754 ac_cv_have_decl_nanosleep=no
24755 fi
24756 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24757 fi
24758 echo "$as_me:$LINENO: result: $ac_cv_have_decl_nanosleep" >&5
24759 echo "${ECHO_T}$ac_cv_have_decl_nanosleep" >&6
24760 if test $ac_cv_have_decl_nanosleep = yes; then
24761
24762 cat >>confdefs.h <<_ACEOF
24763 #define HAVE_DECL_NANOSLEEP 1
24764 _ACEOF
24765
24766
24767 else
24768   cat >>confdefs.h <<_ACEOF
24769 #define HAVE_DECL_NANOSLEEP 0
24770 _ACEOF
24771
24772
24773 fi
24774
24775
24776
24777
24778
24779   echo "$as_me:$LINENO: checking whether tzset clobbers localtime buffer" >&5
24780 echo $ECHO_N "checking whether tzset clobbers localtime buffer... $ECHO_C" >&6
24781 if test "${gl_cv_func_tzset_clobber+set}" = set; then
24782   echo $ECHO_N "(cached) $ECHO_C" >&6
24783 else
24784
24785   if test "$cross_compiling" = yes; then
24786   gl_cv_func_tzset_clobber=yes
24787 else
24788   cat >conftest.$ac_ext <<_ACEOF
24789 /* confdefs.h.  */
24790 _ACEOF
24791 cat confdefs.h >>conftest.$ac_ext
24792 cat >>conftest.$ac_ext <<_ACEOF
24793 /* end confdefs.h.  */
24794
24795 #if TIME_WITH_SYS_TIME
24796 # include <sys/time.h>
24797 # include <time.h>
24798 #else
24799 # if HAVE_SYS_TIME_H
24800 #  include <sys/time.h>
24801 # else
24802 #  include <time.h>
24803 # endif
24804 #endif
24805 #include <stdlib.h>
24806
24807 int
24808 main ()
24809 {
24810   time_t t1 = 853958121;
24811   struct tm *p, s;
24812   putenv ("TZ=GMT0");
24813   p = localtime (&t1);
24814   s = *p;
24815   putenv ("TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00");
24816   tzset ();
24817   exit (p->tm_year != s.tm_year
24818         || p->tm_mon != s.tm_mon
24819         || p->tm_mday != s.tm_mday
24820         || p->tm_hour != s.tm_hour
24821         || p->tm_min != s.tm_min
24822         || p->tm_sec != s.tm_sec);
24823 }
24824
24825 _ACEOF
24826 rm -f conftest$ac_exeext
24827 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24828   (eval $ac_link) 2>&5
24829   ac_status=$?
24830   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24831   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24832   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24833   (eval $ac_try) 2>&5
24834   ac_status=$?
24835   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24836   (exit $ac_status); }; }; then
24837   gl_cv_func_tzset_clobber=no
24838 else
24839   echo "$as_me: program exited with status $ac_status" >&5
24840 echo "$as_me: failed program was:" >&5
24841 sed 's/^/| /' conftest.$ac_ext >&5
24842
24843 ( exit $ac_status )
24844 gl_cv_func_tzset_clobber=yes
24845 fi
24846 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24847 fi
24848 fi
24849 echo "$as_me:$LINENO: result: $gl_cv_func_tzset_clobber" >&5
24850 echo "${ECHO_T}$gl_cv_func_tzset_clobber" >&6
24851
24852
24853 cat >>confdefs.h <<\_ACEOF
24854 #define HAVE_RUN_TZSET_TEST 1
24855 _ACEOF
24856
24857
24858   if test $gl_cv_func_tzset_clobber = yes; then
24859
24860   case $LIBOBJS in
24861     "gettimeofday.$ac_objext"   | \
24862   *" gettimeofday.$ac_objext"   | \
24863     "gettimeofday.$ac_objext "* | \
24864   *" gettimeofday.$ac_objext "* ) ;;
24865   *) LIBOBJS="$LIBOBJS gettimeofday.$ac_objext" ;;
24866 esac
24867
24868
24869 cat >>confdefs.h <<\_ACEOF
24870 #define gmtime rpl_gmtime
24871 _ACEOF
24872
24873
24874 cat >>confdefs.h <<\_ACEOF
24875 #define localtime rpl_localtime
24876 _ACEOF
24877
24878
24879
24880
24881 cat >>confdefs.h <<\_ACEOF
24882 #define tzset rpl_tzset
24883 _ACEOF
24884
24885
24886 cat >>confdefs.h <<\_ACEOF
24887 #define TZSET_CLOBBERS_LOCALTIME_BUFFER 1
24888 _ACEOF
24889
24890   fi
24891
24892
24893
24894
24895
24896 cat >>confdefs.h <<\_ACEOF
24897 #define USE_UNLOCKED_IO 1
24898 _ACEOF
24899
24900
24901
24902
24903
24904   :
24905
24906
24907
24908
24909
24910
24911
24912
24913
24914
24915
24916
24917
24918
24919
24920
24921
24922
24923
24924
24925
24926
24927
24928
24929
24930
24931
24932
24933
24934
24935
24936
24937
24938
24939
24940
24941
24942
24943
24944
24945
24946
24947
24948
24949
24950 for ac_func in vasnprintf
24951 do
24952 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24953 echo "$as_me:$LINENO: checking for $ac_func" >&5
24954 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24955 if eval "test \"\${$as_ac_var+set}\" = set"; then
24956   echo $ECHO_N "(cached) $ECHO_C" >&6
24957 else
24958   cat >conftest.$ac_ext <<_ACEOF
24959 /* confdefs.h.  */
24960 _ACEOF
24961 cat confdefs.h >>conftest.$ac_ext
24962 cat >>conftest.$ac_ext <<_ACEOF
24963 /* end confdefs.h.  */
24964 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24965    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24966 #define $ac_func innocuous_$ac_func
24967
24968 /* System header to define __stub macros and hopefully few prototypes,
24969     which can conflict with char $ac_func (); below.
24970     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24971     <limits.h> exists even on freestanding compilers.  */
24972
24973 #ifdef __STDC__
24974 # include <limits.h>
24975 #else
24976 # include <assert.h>
24977 #endif
24978
24979 #undef $ac_func
24980
24981 /* Override any gcc2 internal prototype to avoid an error.  */
24982 #ifdef __cplusplus
24983 extern "C"
24984 {
24985 #endif
24986 /* We use char because int might match the return type of a gcc2
24987    builtin and then its argument prototype would still apply.  */
24988 char $ac_func ();
24989 /* The GNU C library defines this for functions which it implements
24990     to always fail with ENOSYS.  Some functions are actually named
24991     something starting with __ and the normal name is an alias.  */
24992 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24993 choke me
24994 #else
24995 char (*f) () = $ac_func;
24996 #endif
24997 #ifdef __cplusplus
24998 }
24999 #endif
25000
25001 int
25002 main ()
25003 {
25004 return f != $ac_func;
25005   ;
25006   return 0;
25007 }
25008 _ACEOF
25009 rm -f conftest.$ac_objext conftest$ac_exeext
25010 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25011   (eval $ac_link) 2>conftest.er1
25012   ac_status=$?
25013   grep -v '^ *+' conftest.er1 >conftest.err
25014   rm -f conftest.er1
25015   cat conftest.err >&5
25016   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25017   (exit $ac_status); } &&
25018          { ac_try='test -z "$ac_c_werror_flag"
25019                          || test ! -s conftest.err'
25020   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25021   (eval $ac_try) 2>&5
25022   ac_status=$?
25023   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25024   (exit $ac_status); }; } &&
25025          { ac_try='test -s conftest$ac_exeext'
25026   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25027   (eval $ac_try) 2>&5
25028   ac_status=$?
25029   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25030   (exit $ac_status); }; }; then
25031   eval "$as_ac_var=yes"
25032 else
25033   echo "$as_me: failed program was:" >&5
25034 sed 's/^/| /' conftest.$ac_ext >&5
25035
25036 eval "$as_ac_var=no"
25037 fi
25038 rm -f conftest.err conftest.$ac_objext \
25039       conftest$ac_exeext conftest.$ac_ext
25040 fi
25041 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
25042 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
25043 if test `eval echo '${'$as_ac_var'}'` = yes; then
25044   cat >>confdefs.h <<_ACEOF
25045 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25046 _ACEOF
25047
25048 else
25049   case $LIBOBJS in
25050     "$ac_func.$ac_objext"   | \
25051   *" $ac_func.$ac_objext"   | \
25052     "$ac_func.$ac_objext "* | \
25053   *" $ac_func.$ac_objext "* ) ;;
25054   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
25055 esac
25056
25057 fi
25058 done
25059
25060
25061   if test $ac_cv_func_vasnprintf = no; then
25062     case $LIBOBJS in
25063     "printf-args.$ac_objext"   | \
25064   *" printf-args.$ac_objext"   | \
25065     "printf-args.$ac_objext "* | \
25066   *" printf-args.$ac_objext "* ) ;;
25067   *) LIBOBJS="$LIBOBJS printf-args.$ac_objext" ;;
25068 esac
25069
25070     case $LIBOBJS in
25071     "printf-parse.$ac_objext"   | \
25072   *" printf-parse.$ac_objext"   | \
25073     "printf-parse.$ac_objext "* | \
25074   *" printf-parse.$ac_objext "* ) ;;
25075   *) LIBOBJS="$LIBOBJS printf-parse.$ac_objext" ;;
25076 esac
25077
25078     case $LIBOBJS in
25079     "asnprintf.$ac_objext"   | \
25080   *" asnprintf.$ac_objext"   | \
25081     "asnprintf.$ac_objext "* | \
25082   *" asnprintf.$ac_objext "* ) ;;
25083   *) LIBOBJS="$LIBOBJS asnprintf.$ac_objext" ;;
25084 esac
25085
25086
25087
25088
25089
25090
25091
25092
25093
25094
25095
25096
25097
25098
25099   echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
25100 echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6
25101 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
25102   echo $ECHO_N "(cached) $ECHO_C" >&6
25103 else
25104   cat >conftest.$ac_ext <<_ACEOF
25105 /* confdefs.h.  */
25106 _ACEOF
25107 cat confdefs.h >>conftest.$ac_ext
25108 cat >>conftest.$ac_ext <<_ACEOF
25109 /* end confdefs.h.  */
25110 $ac_includes_default
25111 int
25112 main ()
25113 {
25114 if ((ptrdiff_t *) 0)
25115   return 0;
25116 if (sizeof (ptrdiff_t))
25117   return 0;
25118   ;
25119   return 0;
25120 }
25121 _ACEOF
25122 rm -f conftest.$ac_objext
25123 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25124   (eval $ac_compile) 2>conftest.er1
25125   ac_status=$?
25126   grep -v '^ *+' conftest.er1 >conftest.err
25127   rm -f conftest.er1
25128   cat conftest.err >&5
25129   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25130   (exit $ac_status); } &&
25131          { ac_try='test -z "$ac_c_werror_flag"
25132                          || test ! -s conftest.err'
25133   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25134   (eval $ac_try) 2>&5
25135   ac_status=$?
25136   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25137   (exit $ac_status); }; } &&
25138          { ac_try='test -s conftest.$ac_objext'
25139   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25140   (eval $ac_try) 2>&5
25141   ac_status=$?
25142   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25143   (exit $ac_status); }; }; then
25144   ac_cv_type_ptrdiff_t=yes
25145 else
25146   echo "$as_me: failed program was:" >&5
25147 sed 's/^/| /' conftest.$ac_ext >&5
25148
25149 ac_cv_type_ptrdiff_t=no
25150 fi
25151 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25152 fi
25153 echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
25154 echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6
25155 if test $ac_cv_type_ptrdiff_t = yes; then
25156
25157 cat >>confdefs.h <<_ACEOF
25158 #define HAVE_PTRDIFF_T 1
25159 _ACEOF
25160
25161
25162 fi
25163
25164
25165
25166
25167
25168
25169
25170
25171
25172
25173
25174 for ac_func in snprintf wcslen
25175 do
25176 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25177 echo "$as_me:$LINENO: checking for $ac_func" >&5
25178 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
25179 if eval "test \"\${$as_ac_var+set}\" = set"; then
25180   echo $ECHO_N "(cached) $ECHO_C" >&6
25181 else
25182   cat >conftest.$ac_ext <<_ACEOF
25183 /* confdefs.h.  */
25184 _ACEOF
25185 cat confdefs.h >>conftest.$ac_ext
25186 cat >>conftest.$ac_ext <<_ACEOF
25187 /* end confdefs.h.  */
25188 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25189    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25190 #define $ac_func innocuous_$ac_func
25191
25192 /* System header to define __stub macros and hopefully few prototypes,
25193     which can conflict with char $ac_func (); below.
25194     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25195     <limits.h> exists even on freestanding compilers.  */
25196
25197 #ifdef __STDC__
25198 # include <limits.h>
25199 #else
25200 # include <assert.h>
25201 #endif
25202
25203 #undef $ac_func
25204
25205 /* Override any gcc2 internal prototype to avoid an error.  */
25206 #ifdef __cplusplus
25207 extern "C"
25208 {
25209 #endif
25210 /* We use char because int might match the return type of a gcc2
25211    builtin and then its argument prototype would still apply.  */
25212 char $ac_func ();
25213 /* The GNU C library defines this for functions which it implements
25214     to always fail with ENOSYS.  Some functions are actually named
25215     something starting with __ and the normal name is an alias.  */
25216 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
25217 choke me
25218 #else
25219 char (*f) () = $ac_func;
25220 #endif
25221 #ifdef __cplusplus
25222 }
25223 #endif
25224
25225 int
25226 main ()
25227 {
25228 return f != $ac_func;
25229   ;
25230   return 0;
25231 }
25232 _ACEOF
25233 rm -f conftest.$ac_objext conftest$ac_exeext
25234 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25235   (eval $ac_link) 2>conftest.er1
25236   ac_status=$?
25237   grep -v '^ *+' conftest.er1 >conftest.err
25238   rm -f conftest.er1
25239   cat conftest.err >&5
25240   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25241   (exit $ac_status); } &&
25242          { ac_try='test -z "$ac_c_werror_flag"
25243                          || test ! -s conftest.err'
25244   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25245   (eval $ac_try) 2>&5
25246   ac_status=$?
25247   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25248   (exit $ac_status); }; } &&
25249          { ac_try='test -s conftest$ac_exeext'
25250   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25251   (eval $ac_try) 2>&5
25252   ac_status=$?
25253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25254   (exit $ac_status); }; }; then
25255   eval "$as_ac_var=yes"
25256 else
25257   echo "$as_me: failed program was:" >&5
25258 sed 's/^/| /' conftest.$ac_ext >&5
25259
25260 eval "$as_ac_var=no"
25261 fi
25262 rm -f conftest.err conftest.$ac_objext \
25263       conftest$ac_exeext conftest.$ac_ext
25264 fi
25265 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
25266 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
25267 if test `eval echo '${'$as_ac_var'}'` = yes; then
25268   cat >>confdefs.h <<_ACEOF
25269 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25270 _ACEOF
25271
25272 fi
25273 done
25274
25275
25276
25277
25278   fi
25279
25280
25281
25282 for ac_func in vasprintf
25283 do
25284 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25285 echo "$as_me:$LINENO: checking for $ac_func" >&5
25286 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
25287 if eval "test \"\${$as_ac_var+set}\" = set"; then
25288   echo $ECHO_N "(cached) $ECHO_C" >&6
25289 else
25290   cat >conftest.$ac_ext <<_ACEOF
25291 /* confdefs.h.  */
25292 _ACEOF
25293 cat confdefs.h >>conftest.$ac_ext
25294 cat >>conftest.$ac_ext <<_ACEOF
25295 /* end confdefs.h.  */
25296 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25297    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25298 #define $ac_func innocuous_$ac_func
25299
25300 /* System header to define __stub macros and hopefully few prototypes,
25301     which can conflict with char $ac_func (); below.
25302     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25303     <limits.h> exists even on freestanding compilers.  */
25304
25305 #ifdef __STDC__
25306 # include <limits.h>
25307 #else
25308 # include <assert.h>
25309 #endif
25310
25311 #undef $ac_func
25312
25313 /* Override any gcc2 internal prototype to avoid an error.  */
25314 #ifdef __cplusplus
25315 extern "C"
25316 {
25317 #endif
25318 /* We use char because int might match the return type of a gcc2
25319    builtin and then its argument prototype would still apply.  */
25320 char $ac_func ();
25321 /* The GNU C library defines this for functions which it implements
25322     to always fail with ENOSYS.  Some functions are actually named
25323     something starting with __ and the normal name is an alias.  */
25324 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
25325 choke me
25326 #else
25327 char (*f) () = $ac_func;
25328 #endif
25329 #ifdef __cplusplus
25330 }
25331 #endif
25332
25333 int
25334 main ()
25335 {
25336 return f != $ac_func;
25337   ;
25338   return 0;
25339 }
25340 _ACEOF
25341 rm -f conftest.$ac_objext conftest$ac_exeext
25342 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25343   (eval $ac_link) 2>conftest.er1
25344   ac_status=$?
25345   grep -v '^ *+' conftest.er1 >conftest.err
25346   rm -f conftest.er1
25347   cat conftest.err >&5
25348   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25349   (exit $ac_status); } &&
25350          { ac_try='test -z "$ac_c_werror_flag"
25351                          || test ! -s conftest.err'
25352   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25353   (eval $ac_try) 2>&5
25354   ac_status=$?
25355   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25356   (exit $ac_status); }; } &&
25357          { ac_try='test -s conftest$ac_exeext'
25358   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25359   (eval $ac_try) 2>&5
25360   ac_status=$?
25361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25362   (exit $ac_status); }; }; then
25363   eval "$as_ac_var=yes"
25364 else
25365   echo "$as_me: failed program was:" >&5
25366 sed 's/^/| /' conftest.$ac_ext >&5
25367
25368 eval "$as_ac_var=no"
25369 fi
25370 rm -f conftest.err conftest.$ac_objext \
25371       conftest$ac_exeext conftest.$ac_ext
25372 fi
25373 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
25374 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
25375 if test `eval echo '${'$as_ac_var'}'` = yes; then
25376   cat >>confdefs.h <<_ACEOF
25377 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25378 _ACEOF
25379
25380 else
25381   case $LIBOBJS in
25382     "$ac_func.$ac_objext"   | \
25383   *" $ac_func.$ac_objext"   | \
25384     "$ac_func.$ac_objext "* | \
25385   *" $ac_func.$ac_objext "* ) ;;
25386   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
25387 esac
25388
25389 fi
25390 done
25391
25392
25393   if test $ac_cv_func_vasprintf = no; then
25394     case $LIBOBJS in
25395     "asprintf.$ac_objext"   | \
25396   *" asprintf.$ac_objext"   | \
25397     "asprintf.$ac_objext "* | \
25398   *" asprintf.$ac_objext "* ) ;;
25399   *) LIBOBJS="$LIBOBJS asprintf.$ac_objext" ;;
25400 esac
25401
25402
25403
25404
25405
25406   fi
25407
25408
25409
25410   case $LIBOBJS in
25411     "xmalloc.$ac_objext"   | \
25412   *" xmalloc.$ac_objext"   | \
25413     "xmalloc.$ac_objext "* | \
25414   *" xmalloc.$ac_objext "* ) ;;
25415   *) LIBOBJS="$LIBOBJS xmalloc.$ac_objext" ;;
25416 esac
25417
25418
25419
25420   :
25421
25422
25423
25424   :
25425
25426
25427
25428
25429
25430
25431
25432
25433   :
25434
25435
25436
25437
25438
25439
25440
25441
25442
25443
25444 for ac_header in stdint.h
25445 do
25446 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25447 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25448   echo "$as_me:$LINENO: checking for $ac_header" >&5
25449 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25450 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25451   echo $ECHO_N "(cached) $ECHO_C" >&6
25452 fi
25453 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25454 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25455 else
25456   # Is the header compilable?
25457 echo "$as_me:$LINENO: checking $ac_header usability" >&5
25458 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
25459 cat >conftest.$ac_ext <<_ACEOF
25460 /* confdefs.h.  */
25461 _ACEOF
25462 cat confdefs.h >>conftest.$ac_ext
25463 cat >>conftest.$ac_ext <<_ACEOF
25464 /* end confdefs.h.  */
25465 $ac_includes_default
25466 #include <$ac_header>
25467 _ACEOF
25468 rm -f conftest.$ac_objext
25469 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25470   (eval $ac_compile) 2>conftest.er1
25471   ac_status=$?
25472   grep -v '^ *+' conftest.er1 >conftest.err
25473   rm -f conftest.er1
25474   cat conftest.err >&5
25475   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25476   (exit $ac_status); } &&
25477          { ac_try='test -z "$ac_c_werror_flag"
25478                          || test ! -s conftest.err'
25479   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25480   (eval $ac_try) 2>&5
25481   ac_status=$?
25482   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25483   (exit $ac_status); }; } &&
25484          { ac_try='test -s conftest.$ac_objext'
25485   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25486   (eval $ac_try) 2>&5
25487   ac_status=$?
25488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25489   (exit $ac_status); }; }; then
25490   ac_header_compiler=yes
25491 else
25492   echo "$as_me: failed program was:" >&5
25493 sed 's/^/| /' conftest.$ac_ext >&5
25494
25495 ac_header_compiler=no
25496 fi
25497 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25498 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25499 echo "${ECHO_T}$ac_header_compiler" >&6
25500
25501 # Is the header present?
25502 echo "$as_me:$LINENO: checking $ac_header presence" >&5
25503 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
25504 cat >conftest.$ac_ext <<_ACEOF
25505 /* confdefs.h.  */
25506 _ACEOF
25507 cat confdefs.h >>conftest.$ac_ext
25508 cat >>conftest.$ac_ext <<_ACEOF
25509 /* end confdefs.h.  */
25510 #include <$ac_header>
25511 _ACEOF
25512 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25513   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25514   ac_status=$?
25515   grep -v '^ *+' conftest.er1 >conftest.err
25516   rm -f conftest.er1
25517   cat conftest.err >&5
25518   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25519   (exit $ac_status); } >/dev/null; then
25520   if test -s conftest.err; then
25521     ac_cpp_err=$ac_c_preproc_warn_flag
25522     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
25523   else
25524     ac_cpp_err=
25525   fi
25526 else
25527   ac_cpp_err=yes
25528 fi
25529 if test -z "$ac_cpp_err"; then
25530   ac_header_preproc=yes
25531 else
25532   echo "$as_me: failed program was:" >&5
25533 sed 's/^/| /' conftest.$ac_ext >&5
25534
25535   ac_header_preproc=no
25536 fi
25537 rm -f conftest.err conftest.$ac_ext
25538 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25539 echo "${ECHO_T}$ac_header_preproc" >&6
25540
25541 # So?  What about this header?
25542 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25543   yes:no: )
25544     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25545 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25546     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25547 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25548     ac_header_preproc=yes
25549     ;;
25550   no:yes:* )
25551     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25552 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25553     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
25554 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
25555     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25556 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25557     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
25558 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
25559     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25560 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25561     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25562 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25563     (
25564       cat <<\_ASBOX
25565 ## ------------------------------ ##
25566 ## Report this to bug-cvs@gnu.org ##
25567 ## ------------------------------ ##
25568 _ASBOX
25569     ) |
25570       sed "s/^/$as_me: WARNING:     /" >&2
25571     ;;
25572 esac
25573 echo "$as_me:$LINENO: checking for $ac_header" >&5
25574 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25575 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25576   echo $ECHO_N "(cached) $ECHO_C" >&6
25577 else
25578   eval "$as_ac_Header=\$ac_header_preproc"
25579 fi
25580 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25581 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25582
25583 fi
25584 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25585   cat >>confdefs.h <<_ACEOF
25586 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25587 _ACEOF
25588
25589 fi
25590
25591 done
25592
25593
25594
25595
25596   case $LIBOBJS in
25597     "yesno.$ac_objext"   | \
25598   *" yesno.$ac_objext"   | \
25599     "yesno.$ac_objext "* | \
25600   *" yesno.$ac_objext "* ) ;;
25601   *) LIBOBJS="$LIBOBJS yesno.$ac_objext" ;;
25602 esac
25603
25604
25605     :
25606
25607
25608
25609
25610         MKINSTALLDIRS=
25611   if test -n "$ac_aux_dir"; then
25612     case "$ac_aux_dir" in
25613       /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
25614       *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
25615     esac
25616   fi
25617   if test -z "$MKINSTALLDIRS"; then
25618     MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
25619   fi
25620
25621
25622
25623   echo "$as_me:$LINENO: checking whether NLS is requested" >&5
25624 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
25625     # Check whether --enable-nls or --disable-nls was given.
25626 if test "${enable_nls+set}" = set; then
25627   enableval="$enable_nls"
25628   USE_NLS=$enableval
25629 else
25630   USE_NLS=yes
25631 fi;
25632   echo "$as_me:$LINENO: result: $USE_NLS" >&5
25633 echo "${ECHO_T}$USE_NLS" >&6
25634
25635
25636
25637
25638
25639
25640 # Prepare PATH_SEPARATOR.
25641 # The user is always right.
25642 if test "${PATH_SEPARATOR+set}" != set; then
25643   echo "#! /bin/sh" >conf$$.sh
25644   echo  "exit 0"   >>conf$$.sh
25645   chmod +x conf$$.sh
25646   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
25647     PATH_SEPARATOR=';'
25648   else
25649     PATH_SEPARATOR=:
25650   fi
25651   rm -f conf$$.sh
25652 fi
25653
25654 # Find out how to test for executable files. Don't use a zero-byte file,
25655 # as systems may use methods other than mode bits to determine executability.
25656 cat >conf$$.file <<_ASEOF
25657 #! /bin/sh
25658 exit 0
25659 _ASEOF
25660 chmod +x conf$$.file
25661 if test -x conf$$.file >/dev/null 2>&1; then
25662   ac_executable_p="test -x"
25663 else
25664   ac_executable_p="test -f"
25665 fi
25666 rm -f conf$$.file
25667
25668 # Extract the first word of "msgfmt", so it can be a program name with args.
25669 set dummy msgfmt; ac_word=$2
25670 echo "$as_me:$LINENO: checking for $ac_word" >&5
25671 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25672 if test "${ac_cv_path_MSGFMT+set}" = set; then
25673   echo $ECHO_N "(cached) $ECHO_C" >&6
25674 else
25675   case "$MSGFMT" in
25676   [\\/]* | ?:[\\/]*)
25677     ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
25678     ;;
25679   *)
25680     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
25681     for ac_dir in $PATH; do
25682       IFS="$ac_save_IFS"
25683       test -z "$ac_dir" && ac_dir=.
25684       for ac_exec_ext in '' $ac_executable_extensions; do
25685         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
25686           echo "$as_me: trying $ac_dir/$ac_word..." >&5
25687           if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
25688      (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
25689             ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
25690             break 2
25691           fi
25692         fi
25693       done
25694     done
25695     IFS="$ac_save_IFS"
25696   test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
25697     ;;
25698 esac
25699 fi
25700 MSGFMT="$ac_cv_path_MSGFMT"
25701 if test "$MSGFMT" != ":"; then
25702   echo "$as_me:$LINENO: result: $MSGFMT" >&5
25703 echo "${ECHO_T}$MSGFMT" >&6
25704 else
25705   echo "$as_me:$LINENO: result: no" >&5
25706 echo "${ECHO_T}no" >&6
25707 fi
25708
25709   # Extract the first word of "gmsgfmt", so it can be a program name with args.
25710 set dummy gmsgfmt; ac_word=$2
25711 echo "$as_me:$LINENO: checking for $ac_word" >&5
25712 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25713 if test "${ac_cv_path_GMSGFMT+set}" = set; then
25714   echo $ECHO_N "(cached) $ECHO_C" >&6
25715 else
25716   case $GMSGFMT in
25717   [\\/]* | ?:[\\/]*)
25718   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
25719   ;;
25720   *)
25721   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25722 for as_dir in $PATH
25723 do
25724   IFS=$as_save_IFS
25725   test -z "$as_dir" && as_dir=.
25726   for ac_exec_ext in '' $ac_executable_extensions; do
25727   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25728     ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
25729     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25730     break 2
25731   fi
25732 done
25733 done
25734
25735   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
25736   ;;
25737 esac
25738 fi
25739 GMSGFMT=$ac_cv_path_GMSGFMT
25740
25741 if test -n "$GMSGFMT"; then
25742   echo "$as_me:$LINENO: result: $GMSGFMT" >&5
25743 echo "${ECHO_T}$GMSGFMT" >&6
25744 else
25745   echo "$as_me:$LINENO: result: no" >&5
25746 echo "${ECHO_T}no" >&6
25747 fi
25748
25749
25750
25751 # Prepare PATH_SEPARATOR.
25752 # The user is always right.
25753 if test "${PATH_SEPARATOR+set}" != set; then
25754   echo "#! /bin/sh" >conf$$.sh
25755   echo  "exit 0"   >>conf$$.sh
25756   chmod +x conf$$.sh
25757   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
25758     PATH_SEPARATOR=';'
25759   else
25760     PATH_SEPARATOR=:
25761   fi
25762   rm -f conf$$.sh
25763 fi
25764
25765 # Find out how to test for executable files. Don't use a zero-byte file,
25766 # as systems may use methods other than mode bits to determine executability.
25767 cat >conf$$.file <<_ASEOF
25768 #! /bin/sh
25769 exit 0
25770 _ASEOF
25771 chmod +x conf$$.file
25772 if test -x conf$$.file >/dev/null 2>&1; then
25773   ac_executable_p="test -x"
25774 else
25775   ac_executable_p="test -f"
25776 fi
25777 rm -f conf$$.file
25778
25779 # Extract the first word of "xgettext", so it can be a program name with args.
25780 set dummy xgettext; ac_word=$2
25781 echo "$as_me:$LINENO: checking for $ac_word" >&5
25782 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25783 if test "${ac_cv_path_XGETTEXT+set}" = set; then
25784   echo $ECHO_N "(cached) $ECHO_C" >&6
25785 else
25786   case "$XGETTEXT" in
25787   [\\/]* | ?:[\\/]*)
25788     ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
25789     ;;
25790   *)
25791     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
25792     for ac_dir in $PATH; do
25793       IFS="$ac_save_IFS"
25794       test -z "$ac_dir" && ac_dir=.
25795       for ac_exec_ext in '' $ac_executable_extensions; do
25796         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
25797           echo "$as_me: trying $ac_dir/$ac_word..." >&5
25798           if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
25799      (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
25800             ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
25801             break 2
25802           fi
25803         fi
25804       done
25805     done
25806     IFS="$ac_save_IFS"
25807   test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
25808     ;;
25809 esac
25810 fi
25811 XGETTEXT="$ac_cv_path_XGETTEXT"
25812 if test "$XGETTEXT" != ":"; then
25813   echo "$as_me:$LINENO: result: $XGETTEXT" >&5
25814 echo "${ECHO_T}$XGETTEXT" >&6
25815 else
25816   echo "$as_me:$LINENO: result: no" >&5
25817 echo "${ECHO_T}no" >&6
25818 fi
25819
25820     rm -f messages.po
25821
25822
25823 # Prepare PATH_SEPARATOR.
25824 # The user is always right.
25825 if test "${PATH_SEPARATOR+set}" != set; then
25826   echo "#! /bin/sh" >conf$$.sh
25827   echo  "exit 0"   >>conf$$.sh
25828   chmod +x conf$$.sh
25829   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
25830     PATH_SEPARATOR=';'
25831   else
25832     PATH_SEPARATOR=:
25833   fi
25834   rm -f conf$$.sh
25835 fi
25836
25837 # Find out how to test for executable files. Don't use a zero-byte file,
25838 # as systems may use methods other than mode bits to determine executability.
25839 cat >conf$$.file <<_ASEOF
25840 #! /bin/sh
25841 exit 0
25842 _ASEOF
25843 chmod +x conf$$.file
25844 if test -x conf$$.file >/dev/null 2>&1; then
25845   ac_executable_p="test -x"
25846 else
25847   ac_executable_p="test -f"
25848 fi
25849 rm -f conf$$.file
25850
25851 # Extract the first word of "msgmerge", so it can be a program name with args.
25852 set dummy msgmerge; ac_word=$2
25853 echo "$as_me:$LINENO: checking for $ac_word" >&5
25854 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25855 if test "${ac_cv_path_MSGMERGE+set}" = set; then
25856   echo $ECHO_N "(cached) $ECHO_C" >&6
25857 else
25858   case "$MSGMERGE" in
25859   [\\/]* | ?:[\\/]*)
25860     ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
25861     ;;
25862   *)
25863     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
25864     for ac_dir in $PATH; do
25865       IFS="$ac_save_IFS"
25866       test -z "$ac_dir" && ac_dir=.
25867       for ac_exec_ext in '' $ac_executable_extensions; do
25868         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
25869           echo "$as_me: trying $ac_dir/$ac_word..." >&5
25870           if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
25871             ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
25872             break 2
25873           fi
25874         fi
25875       done
25876     done
25877     IFS="$ac_save_IFS"
25878   test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
25879     ;;
25880 esac
25881 fi
25882 MSGMERGE="$ac_cv_path_MSGMERGE"
25883 if test "$MSGMERGE" != ":"; then
25884   echo "$as_me:$LINENO: result: $MSGMERGE" >&5
25885 echo "${ECHO_T}$MSGMERGE" >&6
25886 else
25887   echo "$as_me:$LINENO: result: no" >&5
25888 echo "${ECHO_T}no" >&6
25889 fi
25890
25891
25892       if test "$GMSGFMT" != ":"; then
25893             if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
25894        (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
25895       : ;
25896     else
25897       GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
25898       echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
25899 echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6
25900       GMSGFMT=":"
25901     fi
25902   fi
25903
25904       if test "$XGETTEXT" != ":"; then
25905             if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
25906        (if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
25907       : ;
25908     else
25909       echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
25910 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6
25911       XGETTEXT=":"
25912     fi
25913         rm -f messages.po
25914   fi
25915
25916             ac_config_commands="$ac_config_commands default-1"
25917
25918
25919
25920       if test "X$prefix" = "XNONE"; then
25921     acl_final_prefix="$ac_default_prefix"
25922   else
25923     acl_final_prefix="$prefix"
25924   fi
25925   if test "X$exec_prefix" = "XNONE"; then
25926     acl_final_exec_prefix='${prefix}'
25927   else
25928     acl_final_exec_prefix="$exec_prefix"
25929   fi
25930   acl_save_prefix="$prefix"
25931   prefix="$acl_final_prefix"
25932   eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
25933   prefix="$acl_save_prefix"
25934
25935 # Make sure we can run config.sub.
25936 $ac_config_sub sun4 >/dev/null 2>&1 ||
25937   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
25938 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
25939    { (exit 1); exit 1; }; }
25940
25941 echo "$as_me:$LINENO: checking build system type" >&5
25942 echo $ECHO_N "checking build system type... $ECHO_C" >&6
25943 if test "${ac_cv_build+set}" = set; then
25944   echo $ECHO_N "(cached) $ECHO_C" >&6
25945 else
25946   ac_cv_build_alias=$build_alias
25947 test -z "$ac_cv_build_alias" &&
25948   ac_cv_build_alias=`$ac_config_guess`
25949 test -z "$ac_cv_build_alias" &&
25950   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
25951 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
25952    { (exit 1); exit 1; }; }
25953 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
25954   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
25955 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
25956    { (exit 1); exit 1; }; }
25957
25958 fi
25959 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
25960 echo "${ECHO_T}$ac_cv_build" >&6
25961 build=$ac_cv_build
25962 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
25963 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
25964 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
25965
25966
25967 echo "$as_me:$LINENO: checking host system type" >&5
25968 echo $ECHO_N "checking host system type... $ECHO_C" >&6
25969 if test "${ac_cv_host+set}" = set; then
25970   echo $ECHO_N "(cached) $ECHO_C" >&6
25971 else
25972   ac_cv_host_alias=$host_alias
25973 test -z "$ac_cv_host_alias" &&
25974   ac_cv_host_alias=$ac_cv_build_alias
25975 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
25976   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
25977 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
25978    { (exit 1); exit 1; }; }
25979
25980 fi
25981 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
25982 echo "${ECHO_T}$ac_cv_host" >&6
25983 host=$ac_cv_host
25984 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
25985 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
25986 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
25987
25988
25989
25990 # Check whether --with-gnu-ld or --without-gnu-ld was given.
25991 if test "${with_gnu_ld+set}" = set; then
25992   withval="$with_gnu_ld"
25993   test "$withval" = no || with_gnu_ld=yes
25994 else
25995   with_gnu_ld=no
25996 fi;
25997 # Prepare PATH_SEPARATOR.
25998 # The user is always right.
25999 if test "${PATH_SEPARATOR+set}" != set; then
26000   echo "#! /bin/sh" >conf$$.sh
26001   echo  "exit 0"   >>conf$$.sh
26002   chmod +x conf$$.sh
26003   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
26004     PATH_SEPARATOR=';'
26005   else
26006     PATH_SEPARATOR=:
26007   fi
26008   rm -f conf$$.sh
26009 fi
26010 ac_prog=ld
26011 if test "$GCC" = yes; then
26012   # Check if gcc -print-prog-name=ld gives a path.
26013   echo "$as_me:$LINENO: checking for ld used by GCC" >&5
26014 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
26015   case $host in
26016   *-*-mingw*)
26017     # gcc leaves a trailing carriage return which upsets mingw
26018     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
26019   *)
26020     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
26021   esac
26022   case $ac_prog in
26023     # Accept absolute paths.
26024     [\\/]* | [A-Za-z]:[\\/]*)
26025       re_direlt='/[^/][^/]*/\.\./'
26026       # Canonicalize the path of ld
26027       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
26028       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
26029         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
26030       done
26031       test -z "$LD" && LD="$ac_prog"
26032       ;;
26033   "")
26034     # If it fails, then pretend we aren't using GCC.
26035     ac_prog=ld
26036     ;;
26037   *)
26038     # If it is relative, then search for the first ld in PATH.
26039     with_gnu_ld=unknown
26040     ;;
26041   esac
26042 elif test "$with_gnu_ld" = yes; then
26043   echo "$as_me:$LINENO: checking for GNU ld" >&5
26044 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
26045 else
26046   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
26047 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
26048 fi
26049 if test "${acl_cv_path_LD+set}" = set; then
26050   echo $ECHO_N "(cached) $ECHO_C" >&6
26051 else
26052   if test -z "$LD"; then
26053   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
26054   for ac_dir in $PATH; do
26055     test -z "$ac_dir" && ac_dir=.
26056     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
26057       acl_cv_path_LD="$ac_dir/$ac_prog"
26058       # Check to see if the program is GNU ld.  I'd rather use --version,
26059       # but apparently some GNU ld's only accept -v.
26060       # Break only if it was the GNU/non-GNU ld that we prefer.
26061       case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
26062       *GNU* | *'with BFD'*)
26063         test "$with_gnu_ld" != no && break ;;
26064       *)
26065         test "$with_gnu_ld" != yes && break ;;
26066       esac
26067     fi
26068   done
26069   IFS="$ac_save_ifs"
26070 else
26071   acl_cv_path_LD="$LD" # Let the user override the test with a path.
26072 fi
26073 fi
26074
26075 LD="$acl_cv_path_LD"
26076 if test -n "$LD"; then
26077   echo "$as_me:$LINENO: result: $LD" >&5
26078 echo "${ECHO_T}$LD" >&6
26079 else
26080   echo "$as_me:$LINENO: result: no" >&5
26081 echo "${ECHO_T}no" >&6
26082 fi
26083 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
26084 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
26085    { (exit 1); exit 1; }; }
26086 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
26087 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
26088 if test "${acl_cv_prog_gnu_ld+set}" = set; then
26089   echo $ECHO_N "(cached) $ECHO_C" >&6
26090 else
26091   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
26092 case `$LD -v 2>&1 </dev/null` in
26093 *GNU* | *'with BFD'*)
26094   acl_cv_prog_gnu_ld=yes ;;
26095 *)
26096   acl_cv_prog_gnu_ld=no ;;
26097 esac
26098 fi
26099 echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
26100 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
26101 with_gnu_ld=$acl_cv_prog_gnu_ld
26102
26103
26104
26105
26106                                                 echo "$as_me:$LINENO: checking for shared library run path origin" >&5
26107 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
26108 if test "${acl_cv_rpath+set}" = set; then
26109   echo $ECHO_N "(cached) $ECHO_C" >&6
26110 else
26111
26112     CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
26113     ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
26114     . ./conftest.sh
26115     rm -f ./conftest.sh
26116     acl_cv_rpath=done
26117
26118 fi
26119 echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
26120 echo "${ECHO_T}$acl_cv_rpath" >&6
26121   wl="$acl_cv_wl"
26122   libext="$acl_cv_libext"
26123   shlibext="$acl_cv_shlibext"
26124   hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
26125   hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
26126   hardcode_direct="$acl_cv_hardcode_direct"
26127   hardcode_minus_L="$acl_cv_hardcode_minus_L"
26128     # Check whether --enable-rpath or --disable-rpath was given.
26129 if test "${enable_rpath+set}" = set; then
26130   enableval="$enable_rpath"
26131   :
26132 else
26133   enable_rpath=yes
26134 fi;
26135
26136
26137
26138
26139
26140
26141
26142     use_additional=yes
26143
26144   acl_save_prefix="$prefix"
26145   prefix="$acl_final_prefix"
26146   acl_save_exec_prefix="$exec_prefix"
26147   exec_prefix="$acl_final_exec_prefix"
26148
26149     eval additional_includedir=\"$includedir\"
26150     eval additional_libdir=\"$libdir\"
26151
26152   exec_prefix="$acl_save_exec_prefix"
26153   prefix="$acl_save_prefix"
26154
26155
26156 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
26157 if test "${with_libiconv_prefix+set}" = set; then
26158   withval="$with_libiconv_prefix"
26159
26160     if test "X$withval" = "Xno"; then
26161       use_additional=no
26162     else
26163       if test "X$withval" = "X"; then
26164
26165   acl_save_prefix="$prefix"
26166   prefix="$acl_final_prefix"
26167   acl_save_exec_prefix="$exec_prefix"
26168   exec_prefix="$acl_final_exec_prefix"
26169
26170           eval additional_includedir=\"$includedir\"
26171           eval additional_libdir=\"$libdir\"
26172
26173   exec_prefix="$acl_save_exec_prefix"
26174   prefix="$acl_save_prefix"
26175
26176       else
26177         additional_includedir="$withval/include"
26178         additional_libdir="$withval/lib"
26179       fi
26180     fi
26181
26182 fi;
26183       LIBICONV=
26184   LTLIBICONV=
26185   INCICONV=
26186   rpathdirs=
26187   ltrpathdirs=
26188   names_already_handled=
26189   names_next_round='iconv '
26190   while test -n "$names_next_round"; do
26191     names_this_round="$names_next_round"
26192     names_next_round=
26193     for name in $names_this_round; do
26194       already_handled=
26195       for n in $names_already_handled; do
26196         if test "$n" = "$name"; then
26197           already_handled=yes
26198           break
26199         fi
26200       done
26201       if test -z "$already_handled"; then
26202         names_already_handled="$names_already_handled $name"
26203                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
26204         eval value=\"\$HAVE_LIB$uppername\"
26205         if test -n "$value"; then
26206           if test "$value" = yes; then
26207             eval value=\"\$LIB$uppername\"
26208             test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
26209             eval value=\"\$LTLIB$uppername\"
26210             test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
26211           else
26212                                     :
26213           fi
26214         else
26215                               found_dir=
26216           found_la=
26217           found_so=
26218           found_a=
26219           if test $use_additional = yes; then
26220             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
26221               found_dir="$additional_libdir"
26222               found_so="$additional_libdir/lib$name.$shlibext"
26223               if test -f "$additional_libdir/lib$name.la"; then
26224                 found_la="$additional_libdir/lib$name.la"
26225               fi
26226             else
26227               if test -f "$additional_libdir/lib$name.$libext"; then
26228                 found_dir="$additional_libdir"
26229                 found_a="$additional_libdir/lib$name.$libext"
26230                 if test -f "$additional_libdir/lib$name.la"; then
26231                   found_la="$additional_libdir/lib$name.la"
26232                 fi
26233               fi
26234             fi
26235           fi
26236           if test "X$found_dir" = "X"; then
26237             for x in $LDFLAGS $LTLIBICONV; do
26238
26239   acl_save_prefix="$prefix"
26240   prefix="$acl_final_prefix"
26241   acl_save_exec_prefix="$exec_prefix"
26242   exec_prefix="$acl_final_exec_prefix"
26243   eval x=\"$x\"
26244   exec_prefix="$acl_save_exec_prefix"
26245   prefix="$acl_save_prefix"
26246
26247               case "$x" in
26248                 -L*)
26249                   dir=`echo "X$x" | sed -e 's/^X-L//'`
26250                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
26251                     found_dir="$dir"
26252                     found_so="$dir/lib$name.$shlibext"
26253                     if test -f "$dir/lib$name.la"; then
26254                       found_la="$dir/lib$name.la"
26255                     fi
26256                   else
26257                     if test -f "$dir/lib$name.$libext"; then
26258                       found_dir="$dir"
26259                       found_a="$dir/lib$name.$libext"
26260                       if test -f "$dir/lib$name.la"; then
26261                         found_la="$dir/lib$name.la"
26262                       fi
26263                     fi
26264                   fi
26265                   ;;
26266               esac
26267               if test "X$found_dir" != "X"; then
26268                 break
26269               fi
26270             done
26271           fi
26272           if test "X$found_dir" != "X"; then
26273                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
26274             if test "X$found_so" != "X"; then
26275                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
26276                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
26277               else
26278                                                                                 haveit=
26279                 for x in $ltrpathdirs; do
26280                   if test "X$x" = "X$found_dir"; then
26281                     haveit=yes
26282                     break
26283                   fi
26284                 done
26285                 if test -z "$haveit"; then
26286                   ltrpathdirs="$ltrpathdirs $found_dir"
26287                 fi
26288                                 if test "$hardcode_direct" = yes; then
26289                                                       LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
26290                 else
26291                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
26292                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
26293                                                             haveit=
26294                     for x in $rpathdirs; do
26295                       if test "X$x" = "X$found_dir"; then
26296                         haveit=yes
26297                         break
26298                       fi
26299                     done
26300                     if test -z "$haveit"; then
26301                       rpathdirs="$rpathdirs $found_dir"
26302                     fi
26303                   else
26304                                                                                 haveit=
26305                     for x in $LDFLAGS $LIBICONV; do
26306
26307   acl_save_prefix="$prefix"
26308   prefix="$acl_final_prefix"
26309   acl_save_exec_prefix="$exec_prefix"
26310   exec_prefix="$acl_final_exec_prefix"
26311   eval x=\"$x\"
26312   exec_prefix="$acl_save_exec_prefix"
26313   prefix="$acl_save_prefix"
26314
26315                       if test "X$x" = "X-L$found_dir"; then
26316                         haveit=yes
26317                         break
26318                       fi
26319                     done
26320                     if test -z "$haveit"; then
26321                       LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
26322                     fi
26323                     if test "$hardcode_minus_L" != no; then
26324                                                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
26325                     else
26326                                                                                                                                                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
26327                     fi
26328                   fi
26329                 fi
26330               fi
26331             else
26332               if test "X$found_a" != "X"; then
26333                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
26334               else
26335                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
26336               fi
26337             fi
26338                         additional_includedir=
26339             case "$found_dir" in
26340               */lib | */lib/)
26341                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
26342                 additional_includedir="$basedir/include"
26343                 ;;
26344             esac
26345             if test "X$additional_includedir" != "X"; then
26346                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
26347                 haveit=
26348                 if test "X$additional_includedir" = "X/usr/local/include"; then
26349                   if test -n "$GCC"; then
26350                     case $host_os in
26351                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
26352                     esac
26353                   fi
26354                 fi
26355                 if test -z "$haveit"; then
26356                   for x in $CPPFLAGS $INCICONV; do
26357
26358   acl_save_prefix="$prefix"
26359   prefix="$acl_final_prefix"
26360   acl_save_exec_prefix="$exec_prefix"
26361   exec_prefix="$acl_final_exec_prefix"
26362   eval x=\"$x\"
26363   exec_prefix="$acl_save_exec_prefix"
26364   prefix="$acl_save_prefix"
26365
26366                     if test "X$x" = "X-I$additional_includedir"; then
26367                       haveit=yes
26368                       break
26369                     fi
26370                   done
26371                   if test -z "$haveit"; then
26372                     if test -d "$additional_includedir"; then
26373                                             INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
26374                     fi
26375                   fi
26376                 fi
26377               fi
26378             fi
26379                         if test -n "$found_la"; then
26380                                                         save_libdir="$libdir"
26381               case "$found_la" in
26382                 */* | *\\*) . "$found_la" ;;
26383                 *) . "./$found_la" ;;
26384               esac
26385               libdir="$save_libdir"
26386                             for dep in $dependency_libs; do
26387                 case "$dep" in
26388                   -L*)
26389                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
26390                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
26391                       haveit=
26392                       if test "X$additional_libdir" = "X/usr/local/lib"; then
26393                         if test -n "$GCC"; then
26394                           case $host_os in
26395                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
26396                           esac
26397                         fi
26398                       fi
26399                       if test -z "$haveit"; then
26400                         haveit=
26401                         for x in $LDFLAGS $LIBICONV; do
26402
26403   acl_save_prefix="$prefix"
26404   prefix="$acl_final_prefix"
26405   acl_save_exec_prefix="$exec_prefix"
26406   exec_prefix="$acl_final_exec_prefix"
26407   eval x=\"$x\"
26408   exec_prefix="$acl_save_exec_prefix"
26409   prefix="$acl_save_prefix"
26410
26411                           if test "X$x" = "X-L$additional_libdir"; then
26412                             haveit=yes
26413                             break
26414                           fi
26415                         done
26416                         if test -z "$haveit"; then
26417                           if test -d "$additional_libdir"; then
26418                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
26419                           fi
26420                         fi
26421                         haveit=
26422                         for x in $LDFLAGS $LTLIBICONV; do
26423
26424   acl_save_prefix="$prefix"
26425   prefix="$acl_final_prefix"
26426   acl_save_exec_prefix="$exec_prefix"
26427   exec_prefix="$acl_final_exec_prefix"
26428   eval x=\"$x\"
26429   exec_prefix="$acl_save_exec_prefix"
26430   prefix="$acl_save_prefix"
26431
26432                           if test "X$x" = "X-L$additional_libdir"; then
26433                             haveit=yes
26434                             break
26435                           fi
26436                         done
26437                         if test -z "$haveit"; then
26438                           if test -d "$additional_libdir"; then
26439                                                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
26440                           fi
26441                         fi
26442                       fi
26443                     fi
26444                     ;;
26445                   -R*)
26446                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
26447                     if test "$enable_rpath" != no; then
26448                                                                   haveit=
26449                       for x in $rpathdirs; do
26450                         if test "X$x" = "X$dir"; then
26451                           haveit=yes
26452                           break
26453                         fi
26454                       done
26455                       if test -z "$haveit"; then
26456                         rpathdirs="$rpathdirs $dir"
26457                       fi
26458                                                                   haveit=
26459                       for x in $ltrpathdirs; do
26460                         if test "X$x" = "X$dir"; then
26461                           haveit=yes
26462                           break
26463                         fi
26464                       done
26465                       if test -z "$haveit"; then
26466                         ltrpathdirs="$ltrpathdirs $dir"
26467                       fi
26468                     fi
26469                     ;;
26470                   -l*)
26471                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
26472                     ;;
26473                   *.la)
26474                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
26475                     ;;
26476                   *)
26477                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
26478                     LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
26479                     ;;
26480                 esac
26481               done
26482             fi
26483           else
26484                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
26485             LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
26486           fi
26487         fi
26488       fi
26489     done
26490   done
26491   if test "X$rpathdirs" != "X"; then
26492     if test -n "$hardcode_libdir_separator"; then
26493                         alldirs=
26494       for found_dir in $rpathdirs; do
26495         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
26496       done
26497             acl_save_libdir="$libdir"
26498       libdir="$alldirs"
26499       eval flag=\"$hardcode_libdir_flag_spec\"
26500       libdir="$acl_save_libdir"
26501       LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
26502     else
26503             for found_dir in $rpathdirs; do
26504         acl_save_libdir="$libdir"
26505         libdir="$found_dir"
26506         eval flag=\"$hardcode_libdir_flag_spec\"
26507         libdir="$acl_save_libdir"
26508         LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
26509       done
26510     fi
26511   fi
26512   if test "X$ltrpathdirs" != "X"; then
26513             for found_dir in $ltrpathdirs; do
26514       LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
26515     done
26516   fi
26517
26518
26519
26520
26521
26522
26523
26524
26525
26526
26527
26528
26529
26530
26531
26532
26533
26534
26535     echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5
26536 echo $ECHO_N "checking for CFPreferencesCopyAppValue... $ECHO_C" >&6
26537 if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then
26538   echo $ECHO_N "(cached) $ECHO_C" >&6
26539 else
26540   gt_save_CPPFLAGS="$CPPFLAGS"
26541      CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
26542      gt_save_LIBS="$LIBS"
26543      LIBS="$LIBS -framework CoreFoundation"
26544      cat >conftest.$ac_ext <<_ACEOF
26545 /* confdefs.h.  */
26546 _ACEOF
26547 cat confdefs.h >>conftest.$ac_ext
26548 cat >>conftest.$ac_ext <<_ACEOF
26549 /* end confdefs.h.  */
26550 #include <CFPreferences.h>
26551 int
26552 main ()
26553 {
26554 CFPreferencesCopyAppValue(NULL, NULL)
26555   ;
26556   return 0;
26557 }
26558 _ACEOF
26559 rm -f conftest.$ac_objext conftest$ac_exeext
26560 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26561   (eval $ac_link) 2>conftest.er1
26562   ac_status=$?
26563   grep -v '^ *+' conftest.er1 >conftest.err
26564   rm -f conftest.er1
26565   cat conftest.err >&5
26566   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26567   (exit $ac_status); } &&
26568          { ac_try='test -z "$ac_c_werror_flag"
26569                          || test ! -s conftest.err'
26570   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26571   (eval $ac_try) 2>&5
26572   ac_status=$?
26573   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26574   (exit $ac_status); }; } &&
26575          { ac_try='test -s conftest$ac_exeext'
26576   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26577   (eval $ac_try) 2>&5
26578   ac_status=$?
26579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26580   (exit $ac_status); }; }; then
26581   gt_cv_func_CFPreferencesCopyAppValue=yes
26582 else
26583   echo "$as_me: failed program was:" >&5
26584 sed 's/^/| /' conftest.$ac_ext >&5
26585
26586 gt_cv_func_CFPreferencesCopyAppValue=no
26587 fi
26588 rm -f conftest.err conftest.$ac_objext \
26589       conftest$ac_exeext conftest.$ac_ext
26590      CPPFLAGS="$gt_save_CPPFLAGS"
26591      LIBS="$gt_save_LIBS"
26592 fi
26593 echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
26594 echo "${ECHO_T}$gt_cv_func_CFPreferencesCopyAppValue" >&6
26595   if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
26596
26597 cat >>confdefs.h <<\_ACEOF
26598 #define HAVE_CFPREFERENCESCOPYAPPVALUE 1
26599 _ACEOF
26600
26601   fi
26602     echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5
26603 echo $ECHO_N "checking for CFLocaleCopyCurrent... $ECHO_C" >&6
26604 if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then
26605   echo $ECHO_N "(cached) $ECHO_C" >&6
26606 else
26607   gt_save_CPPFLAGS="$CPPFLAGS"
26608      CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
26609      gt_save_LIBS="$LIBS"
26610      LIBS="$LIBS -framework CoreFoundation"
26611      cat >conftest.$ac_ext <<_ACEOF
26612 /* confdefs.h.  */
26613 _ACEOF
26614 cat confdefs.h >>conftest.$ac_ext
26615 cat >>conftest.$ac_ext <<_ACEOF
26616 /* end confdefs.h.  */
26617 #include <CFLocale.h>
26618 int
26619 main ()
26620 {
26621 CFLocaleCopyCurrent();
26622   ;
26623   return 0;
26624 }
26625 _ACEOF
26626 rm -f conftest.$ac_objext conftest$ac_exeext
26627 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26628   (eval $ac_link) 2>conftest.er1
26629   ac_status=$?
26630   grep -v '^ *+' conftest.er1 >conftest.err
26631   rm -f conftest.er1
26632   cat conftest.err >&5
26633   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26634   (exit $ac_status); } &&
26635          { ac_try='test -z "$ac_c_werror_flag"
26636                          || test ! -s conftest.err'
26637   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26638   (eval $ac_try) 2>&5
26639   ac_status=$?
26640   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26641   (exit $ac_status); }; } &&
26642          { ac_try='test -s conftest$ac_exeext'
26643   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26644   (eval $ac_try) 2>&5
26645   ac_status=$?
26646   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26647   (exit $ac_status); }; }; then
26648   gt_cv_func_CFLocaleCopyCurrent=yes
26649 else
26650   echo "$as_me: failed program was:" >&5
26651 sed 's/^/| /' conftest.$ac_ext >&5
26652
26653 gt_cv_func_CFLocaleCopyCurrent=no
26654 fi
26655 rm -f conftest.err conftest.$ac_objext \
26656       conftest$ac_exeext conftest.$ac_ext
26657      CPPFLAGS="$gt_save_CPPFLAGS"
26658      LIBS="$gt_save_LIBS"
26659 fi
26660 echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
26661 echo "${ECHO_T}$gt_cv_func_CFLocaleCopyCurrent" >&6
26662   if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
26663
26664 cat >>confdefs.h <<\_ACEOF
26665 #define HAVE_CFLOCALECOPYCURRENT 1
26666 _ACEOF
26667
26668   fi
26669   INTL_MACOSX_LIBS=
26670   if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
26671     INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
26672   fi
26673
26674
26675
26676
26677   echo "$as_me:$LINENO: checking whether NLS is requested" >&5
26678 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
26679     # Check whether --enable-nls or --disable-nls was given.
26680 if test "${enable_nls+set}" = set; then
26681   enableval="$enable_nls"
26682   USE_NLS=$enableval
26683 else
26684   USE_NLS=yes
26685 fi;
26686   echo "$as_me:$LINENO: result: $USE_NLS" >&5
26687 echo "${ECHO_T}$USE_NLS" >&6
26688
26689
26690
26691
26692   LIBINTL=
26693   LTLIBINTL=
26694   POSUB=
26695
26696     if test "$USE_NLS" = "yes"; then
26697     gt_use_preinstalled_gnugettext=no
26698
26699
26700
26701
26702
26703
26704         echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
26705 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6
26706 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
26707   echo $ECHO_N "(cached) $ECHO_C" >&6
26708 else
26709   cat >conftest.$ac_ext <<_ACEOF
26710 /* confdefs.h.  */
26711 _ACEOF
26712 cat confdefs.h >>conftest.$ac_ext
26713 cat >>conftest.$ac_ext <<_ACEOF
26714 /* end confdefs.h.  */
26715 #include <libintl.h>
26716 extern int _nl_msg_cat_cntr;
26717 extern int *_nl_domain_bindings;
26718 int
26719 main ()
26720 {
26721 bindtextdomain ("", "");
26722 return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
26723   ;
26724   return 0;
26725 }
26726 _ACEOF
26727 rm -f conftest.$ac_objext conftest$ac_exeext
26728 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26729   (eval $ac_link) 2>conftest.er1
26730   ac_status=$?
26731   grep -v '^ *+' conftest.er1 >conftest.err
26732   rm -f conftest.er1
26733   cat conftest.err >&5
26734   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26735   (exit $ac_status); } &&
26736          { ac_try='test -z "$ac_c_werror_flag"
26737                          || test ! -s conftest.err'
26738   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26739   (eval $ac_try) 2>&5
26740   ac_status=$?
26741   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26742   (exit $ac_status); }; } &&
26743          { ac_try='test -s conftest$ac_exeext'
26744   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26745   (eval $ac_try) 2>&5
26746   ac_status=$?
26747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26748   (exit $ac_status); }; }; then
26749   gt_cv_func_gnugettext1_libc=yes
26750 else
26751   echo "$as_me: failed program was:" >&5
26752 sed 's/^/| /' conftest.$ac_ext >&5
26753
26754 gt_cv_func_gnugettext1_libc=no
26755 fi
26756 rm -f conftest.err conftest.$ac_objext \
26757       conftest$ac_exeext conftest.$ac_ext
26758 fi
26759 echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
26760 echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6
26761
26762         if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
26763
26764
26765
26766
26767
26768           am_save_CPPFLAGS="$CPPFLAGS"
26769
26770   for element in $INCICONV; do
26771     haveit=
26772     for x in $CPPFLAGS; do
26773
26774   acl_save_prefix="$prefix"
26775   prefix="$acl_final_prefix"
26776   acl_save_exec_prefix="$exec_prefix"
26777   exec_prefix="$acl_final_exec_prefix"
26778   eval x=\"$x\"
26779   exec_prefix="$acl_save_exec_prefix"
26780   prefix="$acl_save_prefix"
26781
26782       if test "X$x" = "X$element"; then
26783         haveit=yes
26784         break
26785       fi
26786     done
26787     if test -z "$haveit"; then
26788       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
26789     fi
26790   done
26791
26792
26793   echo "$as_me:$LINENO: checking for iconv" >&5
26794 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
26795 if test "${am_cv_func_iconv+set}" = set; then
26796   echo $ECHO_N "(cached) $ECHO_C" >&6
26797 else
26798
26799     am_cv_func_iconv="no, consider installing GNU libiconv"
26800     am_cv_lib_iconv=no
26801     cat >conftest.$ac_ext <<_ACEOF
26802 /* confdefs.h.  */
26803 _ACEOF
26804 cat confdefs.h >>conftest.$ac_ext
26805 cat >>conftest.$ac_ext <<_ACEOF
26806 /* end confdefs.h.  */
26807 #include <stdlib.h>
26808 #include <iconv.h>
26809 int
26810 main ()
26811 {
26812 iconv_t cd = iconv_open("","");
26813        iconv(cd,NULL,NULL,NULL,NULL);
26814        iconv_close(cd);
26815   ;
26816   return 0;
26817 }
26818 _ACEOF
26819 rm -f conftest.$ac_objext conftest$ac_exeext
26820 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26821   (eval $ac_link) 2>conftest.er1
26822   ac_status=$?
26823   grep -v '^ *+' conftest.er1 >conftest.err
26824   rm -f conftest.er1
26825   cat conftest.err >&5
26826   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26827   (exit $ac_status); } &&
26828          { ac_try='test -z "$ac_c_werror_flag"
26829                          || test ! -s conftest.err'
26830   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26831   (eval $ac_try) 2>&5
26832   ac_status=$?
26833   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26834   (exit $ac_status); }; } &&
26835          { ac_try='test -s conftest$ac_exeext'
26836   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26837   (eval $ac_try) 2>&5
26838   ac_status=$?
26839   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26840   (exit $ac_status); }; }; then
26841   am_cv_func_iconv=yes
26842 else
26843   echo "$as_me: failed program was:" >&5
26844 sed 's/^/| /' conftest.$ac_ext >&5
26845
26846 fi
26847 rm -f conftest.err conftest.$ac_objext \
26848       conftest$ac_exeext conftest.$ac_ext
26849     if test "$am_cv_func_iconv" != yes; then
26850       am_save_LIBS="$LIBS"
26851       LIBS="$LIBS $LIBICONV"
26852       cat >conftest.$ac_ext <<_ACEOF
26853 /* confdefs.h.  */
26854 _ACEOF
26855 cat confdefs.h >>conftest.$ac_ext
26856 cat >>conftest.$ac_ext <<_ACEOF
26857 /* end confdefs.h.  */
26858 #include <stdlib.h>
26859 #include <iconv.h>
26860 int
26861 main ()
26862 {
26863 iconv_t cd = iconv_open("","");
26864          iconv(cd,NULL,NULL,NULL,NULL);
26865          iconv_close(cd);
26866   ;
26867   return 0;
26868 }
26869 _ACEOF
26870 rm -f conftest.$ac_objext conftest$ac_exeext
26871 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26872   (eval $ac_link) 2>conftest.er1
26873   ac_status=$?
26874   grep -v '^ *+' conftest.er1 >conftest.err
26875   rm -f conftest.er1
26876   cat conftest.err >&5
26877   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26878   (exit $ac_status); } &&
26879          { ac_try='test -z "$ac_c_werror_flag"
26880                          || test ! -s conftest.err'
26881   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26882   (eval $ac_try) 2>&5
26883   ac_status=$?
26884   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26885   (exit $ac_status); }; } &&
26886          { ac_try='test -s conftest$ac_exeext'
26887   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26888   (eval $ac_try) 2>&5
26889   ac_status=$?
26890   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26891   (exit $ac_status); }; }; then
26892   am_cv_lib_iconv=yes
26893         am_cv_func_iconv=yes
26894 else
26895   echo "$as_me: failed program was:" >&5
26896 sed 's/^/| /' conftest.$ac_ext >&5
26897
26898 fi
26899 rm -f conftest.err conftest.$ac_objext \
26900       conftest$ac_exeext conftest.$ac_ext
26901       LIBS="$am_save_LIBS"
26902     fi
26903
26904 fi
26905 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
26906 echo "${ECHO_T}$am_cv_func_iconv" >&6
26907   if test "$am_cv_func_iconv" = yes; then
26908
26909 cat >>confdefs.h <<\_ACEOF
26910 #define HAVE_ICONV 1
26911 _ACEOF
26912
26913   fi
26914   if test "$am_cv_lib_iconv" = yes; then
26915     echo "$as_me:$LINENO: checking how to link with libiconv" >&5
26916 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
26917     echo "$as_me:$LINENO: result: $LIBICONV" >&5
26918 echo "${ECHO_T}$LIBICONV" >&6
26919   else
26920             CPPFLAGS="$am_save_CPPFLAGS"
26921     LIBICONV=
26922     LTLIBICONV=
26923   fi
26924
26925
26926
26927
26928
26929
26930     use_additional=yes
26931
26932   acl_save_prefix="$prefix"
26933   prefix="$acl_final_prefix"
26934   acl_save_exec_prefix="$exec_prefix"
26935   exec_prefix="$acl_final_exec_prefix"
26936
26937     eval additional_includedir=\"$includedir\"
26938     eval additional_libdir=\"$libdir\"
26939
26940   exec_prefix="$acl_save_exec_prefix"
26941   prefix="$acl_save_prefix"
26942
26943
26944 # Check whether --with-libintl-prefix or --without-libintl-prefix was given.
26945 if test "${with_libintl_prefix+set}" = set; then
26946   withval="$with_libintl_prefix"
26947
26948     if test "X$withval" = "Xno"; then
26949       use_additional=no
26950     else
26951       if test "X$withval" = "X"; then
26952
26953   acl_save_prefix="$prefix"
26954   prefix="$acl_final_prefix"
26955   acl_save_exec_prefix="$exec_prefix"
26956   exec_prefix="$acl_final_exec_prefix"
26957
26958           eval additional_includedir=\"$includedir\"
26959           eval additional_libdir=\"$libdir\"
26960
26961   exec_prefix="$acl_save_exec_prefix"
26962   prefix="$acl_save_prefix"
26963
26964       else
26965         additional_includedir="$withval/include"
26966         additional_libdir="$withval/lib"
26967       fi
26968     fi
26969
26970 fi;
26971       LIBINTL=
26972   LTLIBINTL=
26973   INCINTL=
26974   rpathdirs=
26975   ltrpathdirs=
26976   names_already_handled=
26977   names_next_round='intl '
26978   while test -n "$names_next_round"; do
26979     names_this_round="$names_next_round"
26980     names_next_round=
26981     for name in $names_this_round; do
26982       already_handled=
26983       for n in $names_already_handled; do
26984         if test "$n" = "$name"; then
26985           already_handled=yes
26986           break
26987         fi
26988       done
26989       if test -z "$already_handled"; then
26990         names_already_handled="$names_already_handled $name"
26991                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
26992         eval value=\"\$HAVE_LIB$uppername\"
26993         if test -n "$value"; then
26994           if test "$value" = yes; then
26995             eval value=\"\$LIB$uppername\"
26996             test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
26997             eval value=\"\$LTLIB$uppername\"
26998             test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
26999           else
27000                                     :
27001           fi
27002         else
27003                               found_dir=
27004           found_la=
27005           found_so=
27006           found_a=
27007           if test $use_additional = yes; then
27008             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
27009               found_dir="$additional_libdir"
27010               found_so="$additional_libdir/lib$name.$shlibext"
27011               if test -f "$additional_libdir/lib$name.la"; then
27012                 found_la="$additional_libdir/lib$name.la"
27013               fi
27014             else
27015               if test -f "$additional_libdir/lib$name.$libext"; then
27016                 found_dir="$additional_libdir"
27017                 found_a="$additional_libdir/lib$name.$libext"
27018                 if test -f "$additional_libdir/lib$name.la"; then
27019                   found_la="$additional_libdir/lib$name.la"
27020                 fi
27021               fi
27022             fi
27023           fi
27024           if test "X$found_dir" = "X"; then
27025             for x in $LDFLAGS $LTLIBINTL; do
27026
27027   acl_save_prefix="$prefix"
27028   prefix="$acl_final_prefix"
27029   acl_save_exec_prefix="$exec_prefix"
27030   exec_prefix="$acl_final_exec_prefix"
27031   eval x=\"$x\"
27032   exec_prefix="$acl_save_exec_prefix"
27033   prefix="$acl_save_prefix"
27034
27035               case "$x" in
27036                 -L*)
27037                   dir=`echo "X$x" | sed -e 's/^X-L//'`
27038                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
27039                     found_dir="$dir"
27040                     found_so="$dir/lib$name.$shlibext"
27041                     if test -f "$dir/lib$name.la"; then
27042                       found_la="$dir/lib$name.la"
27043                     fi
27044                   else
27045                     if test -f "$dir/lib$name.$libext"; then
27046                       found_dir="$dir"
27047                       found_a="$dir/lib$name.$libext"
27048                       if test -f "$dir/lib$name.la"; then
27049                         found_la="$dir/lib$name.la"
27050                       fi
27051                     fi
27052                   fi
27053                   ;;
27054               esac
27055               if test "X$found_dir" != "X"; then
27056                 break
27057               fi
27058             done
27059           fi
27060           if test "X$found_dir" != "X"; then
27061                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
27062             if test "X$found_so" != "X"; then
27063                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
27064                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
27065               else
27066                                                                                 haveit=
27067                 for x in $ltrpathdirs; do
27068                   if test "X$x" = "X$found_dir"; then
27069                     haveit=yes
27070                     break
27071                   fi
27072                 done
27073                 if test -z "$haveit"; then
27074                   ltrpathdirs="$ltrpathdirs $found_dir"
27075                 fi
27076                                 if test "$hardcode_direct" = yes; then
27077                                                       LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
27078                 else
27079                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
27080                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
27081                                                             haveit=
27082                     for x in $rpathdirs; do
27083                       if test "X$x" = "X$found_dir"; then
27084                         haveit=yes
27085                         break
27086                       fi
27087                     done
27088                     if test -z "$haveit"; then
27089                       rpathdirs="$rpathdirs $found_dir"
27090                     fi
27091                   else
27092                                                                                 haveit=
27093                     for x in $LDFLAGS $LIBINTL; do
27094
27095   acl_save_prefix="$prefix"
27096   prefix="$acl_final_prefix"
27097   acl_save_exec_prefix="$exec_prefix"
27098   exec_prefix="$acl_final_exec_prefix"
27099   eval x=\"$x\"
27100   exec_prefix="$acl_save_exec_prefix"
27101   prefix="$acl_save_prefix"
27102
27103                       if test "X$x" = "X-L$found_dir"; then
27104                         haveit=yes
27105                         break
27106                       fi
27107                     done
27108                     if test -z "$haveit"; then
27109                       LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
27110                     fi
27111                     if test "$hardcode_minus_L" != no; then
27112                                                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
27113                     else
27114                                                                                                                                                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
27115                     fi
27116                   fi
27117                 fi
27118               fi
27119             else
27120               if test "X$found_a" != "X"; then
27121                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
27122               else
27123                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
27124               fi
27125             fi
27126                         additional_includedir=
27127             case "$found_dir" in
27128               */lib | */lib/)
27129                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
27130                 additional_includedir="$basedir/include"
27131                 ;;
27132             esac
27133             if test "X$additional_includedir" != "X"; then
27134                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
27135                 haveit=
27136                 if test "X$additional_includedir" = "X/usr/local/include"; then
27137                   if test -n "$GCC"; then
27138                     case $host_os in
27139                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
27140                     esac
27141                   fi
27142                 fi
27143                 if test -z "$haveit"; then
27144                   for x in $CPPFLAGS $INCINTL; do
27145
27146   acl_save_prefix="$prefix"
27147   prefix="$acl_final_prefix"
27148   acl_save_exec_prefix="$exec_prefix"
27149   exec_prefix="$acl_final_exec_prefix"
27150   eval x=\"$x\"
27151   exec_prefix="$acl_save_exec_prefix"
27152   prefix="$acl_save_prefix"
27153
27154                     if test "X$x" = "X-I$additional_includedir"; then
27155                       haveit=yes
27156                       break
27157                     fi
27158                   done
27159                   if test -z "$haveit"; then
27160                     if test -d "$additional_includedir"; then
27161                                             INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
27162                     fi
27163                   fi
27164                 fi
27165               fi
27166             fi
27167                         if test -n "$found_la"; then
27168                                                         save_libdir="$libdir"
27169               case "$found_la" in
27170                 */* | *\\*) . "$found_la" ;;
27171                 *) . "./$found_la" ;;
27172               esac
27173               libdir="$save_libdir"
27174                             for dep in $dependency_libs; do
27175                 case "$dep" in
27176                   -L*)
27177                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
27178                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
27179                       haveit=
27180                       if test "X$additional_libdir" = "X/usr/local/lib"; then
27181                         if test -n "$GCC"; then
27182                           case $host_os in
27183                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
27184                           esac
27185                         fi
27186                       fi
27187                       if test -z "$haveit"; then
27188                         haveit=
27189                         for x in $LDFLAGS $LIBINTL; do
27190
27191   acl_save_prefix="$prefix"
27192   prefix="$acl_final_prefix"
27193   acl_save_exec_prefix="$exec_prefix"
27194   exec_prefix="$acl_final_exec_prefix"
27195   eval x=\"$x\"
27196   exec_prefix="$acl_save_exec_prefix"
27197   prefix="$acl_save_prefix"
27198
27199                           if test "X$x" = "X-L$additional_libdir"; then
27200                             haveit=yes
27201                             break
27202                           fi
27203                         done
27204                         if test -z "$haveit"; then
27205                           if test -d "$additional_libdir"; then
27206                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
27207                           fi
27208                         fi
27209                         haveit=
27210                         for x in $LDFLAGS $LTLIBINTL; do
27211
27212   acl_save_prefix="$prefix"
27213   prefix="$acl_final_prefix"
27214   acl_save_exec_prefix="$exec_prefix"
27215   exec_prefix="$acl_final_exec_prefix"
27216   eval x=\"$x\"
27217   exec_prefix="$acl_save_exec_prefix"
27218   prefix="$acl_save_prefix"
27219
27220                           if test "X$x" = "X-L$additional_libdir"; then
27221                             haveit=yes
27222                             break
27223                           fi
27224                         done
27225                         if test -z "$haveit"; then
27226                           if test -d "$additional_libdir"; then
27227                                                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
27228                           fi
27229                         fi
27230                       fi
27231                     fi
27232                     ;;
27233                   -R*)
27234                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
27235                     if test "$enable_rpath" != no; then
27236                                                                   haveit=
27237                       for x in $rpathdirs; do
27238                         if test "X$x" = "X$dir"; then
27239                           haveit=yes
27240                           break
27241                         fi
27242                       done
27243                       if test -z "$haveit"; then
27244                         rpathdirs="$rpathdirs $dir"
27245                       fi
27246                                                                   haveit=
27247                       for x in $ltrpathdirs; do
27248                         if test "X$x" = "X$dir"; then
27249                           haveit=yes
27250                           break
27251                         fi
27252                       done
27253                       if test -z "$haveit"; then
27254                         ltrpathdirs="$ltrpathdirs $dir"
27255                       fi
27256                     fi
27257                     ;;
27258                   -l*)
27259                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
27260                     ;;
27261                   *.la)
27262                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
27263                     ;;
27264                   *)
27265                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
27266                     LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
27267                     ;;
27268                 esac
27269               done
27270             fi
27271           else
27272                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
27273             LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
27274           fi
27275         fi
27276       fi
27277     done
27278   done
27279   if test "X$rpathdirs" != "X"; then
27280     if test -n "$hardcode_libdir_separator"; then
27281                         alldirs=
27282       for found_dir in $rpathdirs; do
27283         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
27284       done
27285             acl_save_libdir="$libdir"
27286       libdir="$alldirs"
27287       eval flag=\"$hardcode_libdir_flag_spec\"
27288       libdir="$acl_save_libdir"
27289       LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
27290     else
27291             for found_dir in $rpathdirs; do
27292         acl_save_libdir="$libdir"
27293         libdir="$found_dir"
27294         eval flag=\"$hardcode_libdir_flag_spec\"
27295         libdir="$acl_save_libdir"
27296         LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
27297       done
27298     fi
27299   fi
27300   if test "X$ltrpathdirs" != "X"; then
27301             for found_dir in $ltrpathdirs; do
27302       LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
27303     done
27304   fi
27305
27306           echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
27307 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6
27308 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
27309   echo $ECHO_N "(cached) $ECHO_C" >&6
27310 else
27311   gt_save_CPPFLAGS="$CPPFLAGS"
27312             CPPFLAGS="$CPPFLAGS $INCINTL"
27313             gt_save_LIBS="$LIBS"
27314             LIBS="$LIBS $LIBINTL"
27315                         cat >conftest.$ac_ext <<_ACEOF
27316 /* confdefs.h.  */
27317 _ACEOF
27318 cat confdefs.h >>conftest.$ac_ext
27319 cat >>conftest.$ac_ext <<_ACEOF
27320 /* end confdefs.h.  */
27321 #include <libintl.h>
27322 extern int _nl_msg_cat_cntr;
27323 extern
27324 #ifdef __cplusplus
27325 "C"
27326 #endif
27327 const char *_nl_expand_alias (const char *);
27328 int
27329 main ()
27330 {
27331 bindtextdomain ("", "");
27332 return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
27333   ;
27334   return 0;
27335 }
27336 _ACEOF
27337 rm -f conftest.$ac_objext conftest$ac_exeext
27338 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27339   (eval $ac_link) 2>conftest.er1
27340   ac_status=$?
27341   grep -v '^ *+' conftest.er1 >conftest.err
27342   rm -f conftest.er1
27343   cat conftest.err >&5
27344   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27345   (exit $ac_status); } &&
27346          { ac_try='test -z "$ac_c_werror_flag"
27347                          || test ! -s conftest.err'
27348   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27349   (eval $ac_try) 2>&5
27350   ac_status=$?
27351   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27352   (exit $ac_status); }; } &&
27353          { ac_try='test -s conftest$ac_exeext'
27354   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27355   (eval $ac_try) 2>&5
27356   ac_status=$?
27357   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27358   (exit $ac_status); }; }; then
27359   gt_cv_func_gnugettext1_libintl=yes
27360 else
27361   echo "$as_me: failed program was:" >&5
27362 sed 's/^/| /' conftest.$ac_ext >&5
27363
27364 gt_cv_func_gnugettext1_libintl=no
27365 fi
27366 rm -f conftest.err conftest.$ac_objext \
27367       conftest$ac_exeext conftest.$ac_ext
27368                         if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
27369               LIBS="$LIBS $LIBICONV"
27370               cat >conftest.$ac_ext <<_ACEOF
27371 /* confdefs.h.  */
27372 _ACEOF
27373 cat confdefs.h >>conftest.$ac_ext
27374 cat >>conftest.$ac_ext <<_ACEOF
27375 /* end confdefs.h.  */
27376 #include <libintl.h>
27377 extern int _nl_msg_cat_cntr;
27378 extern
27379 #ifdef __cplusplus
27380 "C"
27381 #endif
27382 const char *_nl_expand_alias (const char *);
27383 int
27384 main ()
27385 {
27386 bindtextdomain ("", "");
27387 return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
27388   ;
27389   return 0;
27390 }
27391 _ACEOF
27392 rm -f conftest.$ac_objext conftest$ac_exeext
27393 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27394   (eval $ac_link) 2>conftest.er1
27395   ac_status=$?
27396   grep -v '^ *+' conftest.er1 >conftest.err
27397   rm -f conftest.er1
27398   cat conftest.err >&5
27399   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27400   (exit $ac_status); } &&
27401          { ac_try='test -z "$ac_c_werror_flag"
27402                          || test ! -s conftest.err'
27403   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27404   (eval $ac_try) 2>&5
27405   ac_status=$?
27406   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27407   (exit $ac_status); }; } &&
27408          { ac_try='test -s conftest$ac_exeext'
27409   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27410   (eval $ac_try) 2>&5
27411   ac_status=$?
27412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27413   (exit $ac_status); }; }; then
27414   LIBINTL="$LIBINTL $LIBICONV"
27415                 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
27416                 gt_cv_func_gnugettext1_libintl=yes
27417
27418 else
27419   echo "$as_me: failed program was:" >&5
27420 sed 's/^/| /' conftest.$ac_ext >&5
27421
27422 fi
27423 rm -f conftest.err conftest.$ac_objext \
27424       conftest$ac_exeext conftest.$ac_ext
27425             fi
27426             CPPFLAGS="$gt_save_CPPFLAGS"
27427             LIBS="$gt_save_LIBS"
27428 fi
27429 echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
27430 echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6
27431         fi
27432
27433                                         if test "$gt_cv_func_gnugettext1_libc" = "yes" \
27434            || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
27435                 && test "$PACKAGE" != gettext-runtime \
27436                 && test "$PACKAGE" != gettext-tools; }; then
27437           gt_use_preinstalled_gnugettext=yes
27438         else
27439                     LIBINTL=
27440           LTLIBINTL=
27441           INCINTL=
27442         fi
27443
27444
27445
27446     if test -n "$INTL_MACOSX_LIBS"; then
27447       if test "$gt_use_preinstalled_gnugettext" = "yes" \
27448          || test "$nls_cv_use_gnu_gettext" = "yes"; then
27449                 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
27450         LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
27451       fi
27452     fi
27453
27454     if test "$gt_use_preinstalled_gnugettext" = "yes" \
27455        || test "$nls_cv_use_gnu_gettext" = "yes"; then
27456
27457 cat >>confdefs.h <<\_ACEOF
27458 #define ENABLE_NLS 1
27459 _ACEOF
27460
27461     else
27462       USE_NLS=no
27463     fi
27464   fi
27465
27466   echo "$as_me:$LINENO: checking whether to use NLS" >&5
27467 echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6
27468   echo "$as_me:$LINENO: result: $USE_NLS" >&5
27469 echo "${ECHO_T}$USE_NLS" >&6
27470   if test "$USE_NLS" = "yes"; then
27471     echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
27472 echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6
27473     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
27474       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
27475         gt_source="external libintl"
27476       else
27477         gt_source="libc"
27478       fi
27479     else
27480       gt_source="included intl directory"
27481     fi
27482     echo "$as_me:$LINENO: result: $gt_source" >&5
27483 echo "${ECHO_T}$gt_source" >&6
27484   fi
27485
27486   if test "$USE_NLS" = "yes"; then
27487
27488     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
27489       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
27490         echo "$as_me:$LINENO: checking how to link with libintl" >&5
27491 echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6
27492         echo "$as_me:$LINENO: result: $LIBINTL" >&5
27493 echo "${ECHO_T}$LIBINTL" >&6
27494
27495   for element in $INCINTL; do
27496     haveit=
27497     for x in $CPPFLAGS; do
27498
27499   acl_save_prefix="$prefix"
27500   prefix="$acl_final_prefix"
27501   acl_save_exec_prefix="$exec_prefix"
27502   exec_prefix="$acl_final_exec_prefix"
27503   eval x=\"$x\"
27504   exec_prefix="$acl_save_exec_prefix"
27505   prefix="$acl_save_prefix"
27506
27507       if test "X$x" = "X$element"; then
27508         haveit=yes
27509         break
27510       fi
27511     done
27512     if test -z "$haveit"; then
27513       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
27514     fi
27515   done
27516
27517       fi
27518
27519
27520 cat >>confdefs.h <<\_ACEOF
27521 #define HAVE_GETTEXT 1
27522 _ACEOF
27523
27524
27525 cat >>confdefs.h <<\_ACEOF
27526 #define HAVE_DCGETTEXT 1
27527 _ACEOF
27528
27529     fi
27530
27531         POSUB=po
27532   fi
27533
27534
27535
27536     INTLLIBS="$LIBINTL"
27537
27538
27539
27540
27541
27542
27543  # The error module still poses merge problems.
27544 echo "$as_me:$LINENO: checking whether strerror_r is declared" >&5
27545 echo $ECHO_N "checking whether strerror_r is declared... $ECHO_C" >&6
27546 if test "${ac_cv_have_decl_strerror_r+set}" = set; then
27547   echo $ECHO_N "(cached) $ECHO_C" >&6
27548 else
27549   cat >conftest.$ac_ext <<_ACEOF
27550 /* confdefs.h.  */
27551 _ACEOF
27552 cat confdefs.h >>conftest.$ac_ext
27553 cat >>conftest.$ac_ext <<_ACEOF
27554 /* end confdefs.h.  */
27555 $ac_includes_default
27556 int
27557 main ()
27558 {
27559 #ifndef strerror_r
27560   char *p = (char *) strerror_r;
27561 #endif
27562
27563   ;
27564   return 0;
27565 }
27566 _ACEOF
27567 rm -f conftest.$ac_objext
27568 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27569   (eval $ac_compile) 2>conftest.er1
27570   ac_status=$?
27571   grep -v '^ *+' conftest.er1 >conftest.err
27572   rm -f conftest.er1
27573   cat conftest.err >&5
27574   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27575   (exit $ac_status); } &&
27576          { ac_try='test -z "$ac_c_werror_flag"
27577                          || test ! -s conftest.err'
27578   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27579   (eval $ac_try) 2>&5
27580   ac_status=$?
27581   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27582   (exit $ac_status); }; } &&
27583          { ac_try='test -s conftest.$ac_objext'
27584   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27585   (eval $ac_try) 2>&5
27586   ac_status=$?
27587   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27588   (exit $ac_status); }; }; then
27589   ac_cv_have_decl_strerror_r=yes
27590 else
27591   echo "$as_me: failed program was:" >&5
27592 sed 's/^/| /' conftest.$ac_ext >&5
27593
27594 ac_cv_have_decl_strerror_r=no
27595 fi
27596 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27597 fi
27598 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_r" >&5
27599 echo "${ECHO_T}$ac_cv_have_decl_strerror_r" >&6
27600 if test $ac_cv_have_decl_strerror_r = yes; then
27601
27602 cat >>confdefs.h <<_ACEOF
27603 #define HAVE_DECL_STRERROR_R 1
27604 _ACEOF
27605
27606
27607 else
27608   cat >>confdefs.h <<_ACEOF
27609 #define HAVE_DECL_STRERROR_R 0
27610 _ACEOF
27611
27612
27613 fi
27614
27615
27616
27617 for ac_func in strerror_r
27618 do
27619 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27620 echo "$as_me:$LINENO: checking for $ac_func" >&5
27621 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27622 if eval "test \"\${$as_ac_var+set}\" = set"; then
27623   echo $ECHO_N "(cached) $ECHO_C" >&6
27624 else
27625   cat >conftest.$ac_ext <<_ACEOF
27626 /* confdefs.h.  */
27627 _ACEOF
27628 cat confdefs.h >>conftest.$ac_ext
27629 cat >>conftest.$ac_ext <<_ACEOF
27630 /* end confdefs.h.  */
27631 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27632    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27633 #define $ac_func innocuous_$ac_func
27634
27635 /* System header to define __stub macros and hopefully few prototypes,
27636     which can conflict with char $ac_func (); below.
27637     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27638     <limits.h> exists even on freestanding compilers.  */
27639
27640 #ifdef __STDC__
27641 # include <limits.h>
27642 #else
27643 # include <assert.h>
27644 #endif
27645
27646 #undef $ac_func
27647
27648 /* Override any gcc2 internal prototype to avoid an error.  */
27649 #ifdef __cplusplus
27650 extern "C"
27651 {
27652 #endif
27653 /* We use char because int might match the return type of a gcc2
27654    builtin and then its argument prototype would still apply.  */
27655 char $ac_func ();
27656 /* The GNU C library defines this for functions which it implements
27657     to always fail with ENOSYS.  Some functions are actually named
27658     something starting with __ and the normal name is an alias.  */
27659 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27660 choke me
27661 #else
27662 char (*f) () = $ac_func;
27663 #endif
27664 #ifdef __cplusplus
27665 }
27666 #endif
27667
27668 int
27669 main ()
27670 {
27671 return f != $ac_func;
27672   ;
27673   return 0;
27674 }
27675 _ACEOF
27676 rm -f conftest.$ac_objext conftest$ac_exeext
27677 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27678   (eval $ac_link) 2>conftest.er1
27679   ac_status=$?
27680   grep -v '^ *+' conftest.er1 >conftest.err
27681   rm -f conftest.er1
27682   cat conftest.err >&5
27683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27684   (exit $ac_status); } &&
27685          { ac_try='test -z "$ac_c_werror_flag"
27686                          || test ! -s conftest.err'
27687   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27688   (eval $ac_try) 2>&5
27689   ac_status=$?
27690   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27691   (exit $ac_status); }; } &&
27692          { ac_try='test -s conftest$ac_exeext'
27693   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27694   (eval $ac_try) 2>&5
27695   ac_status=$?
27696   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27697   (exit $ac_status); }; }; then
27698   eval "$as_ac_var=yes"
27699 else
27700   echo "$as_me: failed program was:" >&5
27701 sed 's/^/| /' conftest.$ac_ext >&5
27702
27703 eval "$as_ac_var=no"
27704 fi
27705 rm -f conftest.err conftest.$ac_objext \
27706       conftest$ac_exeext conftest.$ac_ext
27707 fi
27708 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27709 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27710 if test `eval echo '${'$as_ac_var'}'` = yes; then
27711   cat >>confdefs.h <<_ACEOF
27712 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27713 _ACEOF
27714
27715 fi
27716 done
27717
27718 echo "$as_me:$LINENO: checking whether strerror_r returns char *" >&5
27719 echo $ECHO_N "checking whether strerror_r returns char *... $ECHO_C" >&6
27720 if test "${ac_cv_func_strerror_r_char_p+set}" = set; then
27721   echo $ECHO_N "(cached) $ECHO_C" >&6
27722 else
27723
27724     ac_cv_func_strerror_r_char_p=no
27725     if test $ac_cv_have_decl_strerror_r = yes; then
27726       cat >conftest.$ac_ext <<_ACEOF
27727 /* confdefs.h.  */
27728 _ACEOF
27729 cat confdefs.h >>conftest.$ac_ext
27730 cat >>conftest.$ac_ext <<_ACEOF
27731 /* end confdefs.h.  */
27732 $ac_includes_default
27733 int
27734 main ()
27735 {
27736
27737           char buf[100];
27738           char x = *strerror_r (0, buf, sizeof buf);
27739           char *p = strerror_r (0, buf, sizeof buf);
27740
27741   ;
27742   return 0;
27743 }
27744 _ACEOF
27745 rm -f conftest.$ac_objext
27746 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27747   (eval $ac_compile) 2>conftest.er1
27748   ac_status=$?
27749   grep -v '^ *+' conftest.er1 >conftest.err
27750   rm -f conftest.er1
27751   cat conftest.err >&5
27752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27753   (exit $ac_status); } &&
27754          { ac_try='test -z "$ac_c_werror_flag"
27755                          || test ! -s conftest.err'
27756   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27757   (eval $ac_try) 2>&5
27758   ac_status=$?
27759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27760   (exit $ac_status); }; } &&
27761          { ac_try='test -s conftest.$ac_objext'
27762   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27763   (eval $ac_try) 2>&5
27764   ac_status=$?
27765   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27766   (exit $ac_status); }; }; then
27767   ac_cv_func_strerror_r_char_p=yes
27768 else
27769   echo "$as_me: failed program was:" >&5
27770 sed 's/^/| /' conftest.$ac_ext >&5
27771
27772 fi
27773 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27774     else
27775       # strerror_r is not declared.  Choose between
27776       # systems that have relatively inaccessible declarations for the
27777       # function.  BeOS and DEC UNIX 4.0 fall in this category, but the
27778       # former has a strerror_r that returns char*, while the latter
27779       # has a strerror_r that returns `int'.
27780       # This test should segfault on the DEC system.
27781       if test "$cross_compiling" = yes; then
27782   :
27783 else
27784   cat >conftest.$ac_ext <<_ACEOF
27785 /* confdefs.h.  */
27786 _ACEOF
27787 cat confdefs.h >>conftest.$ac_ext
27788 cat >>conftest.$ac_ext <<_ACEOF
27789 /* end confdefs.h.  */
27790 $ac_includes_default
27791         extern char *strerror_r ();
27792 int
27793 main ()
27794 {
27795 char buf[100];
27796           char x = *strerror_r (0, buf, sizeof buf);
27797           exit (!isalpha (x));
27798   ;
27799   return 0;
27800 }
27801 _ACEOF
27802 rm -f conftest$ac_exeext
27803 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27804   (eval $ac_link) 2>&5
27805   ac_status=$?
27806   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27807   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27808   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27809   (eval $ac_try) 2>&5
27810   ac_status=$?
27811   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27812   (exit $ac_status); }; }; then
27813   ac_cv_func_strerror_r_char_p=yes
27814 else
27815   echo "$as_me: program exited with status $ac_status" >&5
27816 echo "$as_me: failed program was:" >&5
27817 sed 's/^/| /' conftest.$ac_ext >&5
27818
27819 fi
27820 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27821 fi
27822     fi
27823
27824 fi
27825 echo "$as_me:$LINENO: result: $ac_cv_func_strerror_r_char_p" >&5
27826 echo "${ECHO_T}$ac_cv_func_strerror_r_char_p" >&6
27827 if test $ac_cv_func_strerror_r_char_p = yes; then
27828
27829 cat >>confdefs.h <<\_ACEOF
27830 #define STRERROR_R_CHAR_P 1
27831 _ACEOF
27832
27833 fi
27834
27835
27836
27837
27838
27839   if test $gl_cv_header_inttypes_h = no && test $gl_cv_header_stdint_h = no; then
27840
27841     test $ac_cv_type_long_long = yes \
27842       && ac_type='long long' \
27843       || ac_type='long'
27844
27845 cat >>confdefs.h <<_ACEOF
27846 #define intmax_t $ac_type
27847 _ACEOF
27848
27849   else
27850
27851 cat >>confdefs.h <<\_ACEOF
27852 #define HAVE_INTMAX_T 1
27853 _ACEOF
27854
27855   fi
27856
27857
27858
27859
27860
27861
27862
27863
27864 #
27865 # End GNULIB stuff.
27866 #
27867
27868
27869
27870 # Check for function existance.
27871
27872
27873
27874
27875
27876
27877
27878
27879
27880
27881
27882
27883
27884
27885
27886
27887
27888
27889
27890
27891
27892
27893
27894
27895
27896
27897 for ac_func in \
27898         fchdir \
27899         fchmod \
27900         fsync \
27901         ftime \
27902         geteuid \
27903         getgroups \
27904         getpagesize \
27905         gettimeofday \
27906         initgroups \
27907         login \
27908         logout \
27909         mknod \
27910         putenv \
27911         regcomp \
27912         regerror \
27913         regexec \
27914         regfree \
27915         sigaction \
27916         sigblock \
27917         sigprocmask \
27918         sigsetmask \
27919         sigvec \
27920         timezone \
27921         tzset \
27922         vprintf \
27923         wait3 \
27924
27925 do
27926 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27927 echo "$as_me:$LINENO: checking for $ac_func" >&5
27928 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27929 if eval "test \"\${$as_ac_var+set}\" = set"; then
27930   echo $ECHO_N "(cached) $ECHO_C" >&6
27931 else
27932   cat >conftest.$ac_ext <<_ACEOF
27933 /* confdefs.h.  */
27934 _ACEOF
27935 cat confdefs.h >>conftest.$ac_ext
27936 cat >>conftest.$ac_ext <<_ACEOF
27937 /* end confdefs.h.  */
27938 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27939    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27940 #define $ac_func innocuous_$ac_func
27941
27942 /* System header to define __stub macros and hopefully few prototypes,
27943     which can conflict with char $ac_func (); below.
27944     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27945     <limits.h> exists even on freestanding compilers.  */
27946
27947 #ifdef __STDC__
27948 # include <limits.h>
27949 #else
27950 # include <assert.h>
27951 #endif
27952
27953 #undef $ac_func
27954
27955 /* Override any gcc2 internal prototype to avoid an error.  */
27956 #ifdef __cplusplus
27957 extern "C"
27958 {
27959 #endif
27960 /* We use char because int might match the return type of a gcc2
27961    builtin and then its argument prototype would still apply.  */
27962 char $ac_func ();
27963 /* The GNU C library defines this for functions which it implements
27964     to always fail with ENOSYS.  Some functions are actually named
27965     something starting with __ and the normal name is an alias.  */
27966 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27967 choke me
27968 #else
27969 char (*f) () = $ac_func;
27970 #endif
27971 #ifdef __cplusplus
27972 }
27973 #endif
27974
27975 int
27976 main ()
27977 {
27978 return f != $ac_func;
27979   ;
27980   return 0;
27981 }
27982 _ACEOF
27983 rm -f conftest.$ac_objext conftest$ac_exeext
27984 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27985   (eval $ac_link) 2>conftest.er1
27986   ac_status=$?
27987   grep -v '^ *+' conftest.er1 >conftest.err
27988   rm -f conftest.er1
27989   cat conftest.err >&5
27990   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27991   (exit $ac_status); } &&
27992          { ac_try='test -z "$ac_c_werror_flag"
27993                          || test ! -s conftest.err'
27994   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27995   (eval $ac_try) 2>&5
27996   ac_status=$?
27997   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27998   (exit $ac_status); }; } &&
27999          { ac_try='test -s conftest$ac_exeext'
28000   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28001   (eval $ac_try) 2>&5
28002   ac_status=$?
28003   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28004   (exit $ac_status); }; }; then
28005   eval "$as_ac_var=yes"
28006 else
28007   echo "$as_me: failed program was:" >&5
28008 sed 's/^/| /' conftest.$ac_ext >&5
28009
28010 eval "$as_ac_var=no"
28011 fi
28012 rm -f conftest.err conftest.$ac_objext \
28013       conftest$ac_exeext conftest.$ac_ext
28014 fi
28015 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28016 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28017 if test `eval echo '${'$as_ac_var'}'` = yes; then
28018   cat >>confdefs.h <<_ACEOF
28019 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28020 _ACEOF
28021
28022 fi
28023 done
28024
28025 HAVE_PUTENV=$ac_cv_func_putenv
28026
28027
28028 if test $cross_compiling = yes ; then
28029
28030 cat >>confdefs.h <<\_ACEOF
28031 #define CROSS_COMPILING 1
28032 _ACEOF
28033
28034 else
28035         echo "$as_me:$LINENO: checking for char" >&5
28036 echo $ECHO_N "checking for char... $ECHO_C" >&6
28037 if test "${ac_cv_type_char+set}" = set; then
28038   echo $ECHO_N "(cached) $ECHO_C" >&6
28039 else
28040   cat >conftest.$ac_ext <<_ACEOF
28041 /* confdefs.h.  */
28042 _ACEOF
28043 cat confdefs.h >>conftest.$ac_ext
28044 cat >>conftest.$ac_ext <<_ACEOF
28045 /* end confdefs.h.  */
28046 $ac_includes_default
28047 int
28048 main ()
28049 {
28050 if ((char *) 0)
28051   return 0;
28052 if (sizeof (char))
28053   return 0;
28054   ;
28055   return 0;
28056 }
28057 _ACEOF
28058 rm -f conftest.$ac_objext
28059 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28060   (eval $ac_compile) 2>conftest.er1
28061   ac_status=$?
28062   grep -v '^ *+' conftest.er1 >conftest.err
28063   rm -f conftest.er1
28064   cat conftest.err >&5
28065   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28066   (exit $ac_status); } &&
28067          { ac_try='test -z "$ac_c_werror_flag"
28068                          || test ! -s conftest.err'
28069   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28070   (eval $ac_try) 2>&5
28071   ac_status=$?
28072   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28073   (exit $ac_status); }; } &&
28074          { ac_try='test -s conftest.$ac_objext'
28075   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28076   (eval $ac_try) 2>&5
28077   ac_status=$?
28078   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28079   (exit $ac_status); }; }; then
28080   ac_cv_type_char=yes
28081 else
28082   echo "$as_me: failed program was:" >&5
28083 sed 's/^/| /' conftest.$ac_ext >&5
28084
28085 ac_cv_type_char=no
28086 fi
28087 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28088 fi
28089 echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
28090 echo "${ECHO_T}$ac_cv_type_char" >&6
28091
28092 echo "$as_me:$LINENO: checking size of char" >&5
28093 echo $ECHO_N "checking size of char... $ECHO_C" >&6
28094 if test "${ac_cv_sizeof_char+set}" = set; then
28095   echo $ECHO_N "(cached) $ECHO_C" >&6
28096 else
28097   if test "$ac_cv_type_char" = yes; then
28098   # The cast to unsigned long works around a bug in the HP C Compiler
28099   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
28100   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
28101   # This bug is HP SR number 8606223364.
28102   if test "$cross_compiling" = yes; then
28103   # Depending upon the size, compute the lo and hi bounds.
28104 cat >conftest.$ac_ext <<_ACEOF
28105 /* confdefs.h.  */
28106 _ACEOF
28107 cat confdefs.h >>conftest.$ac_ext
28108 cat >>conftest.$ac_ext <<_ACEOF
28109 /* end confdefs.h.  */
28110 $ac_includes_default
28111 int
28112 main ()
28113 {
28114 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
28115 test_array [0] = 0
28116
28117   ;
28118   return 0;
28119 }
28120 _ACEOF
28121 rm -f conftest.$ac_objext
28122 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28123   (eval $ac_compile) 2>conftest.er1
28124   ac_status=$?
28125   grep -v '^ *+' conftest.er1 >conftest.err
28126   rm -f conftest.er1
28127   cat conftest.err >&5
28128   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28129   (exit $ac_status); } &&
28130          { ac_try='test -z "$ac_c_werror_flag"
28131                          || test ! -s conftest.err'
28132   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28133   (eval $ac_try) 2>&5
28134   ac_status=$?
28135   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28136   (exit $ac_status); }; } &&
28137          { ac_try='test -s conftest.$ac_objext'
28138   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28139   (eval $ac_try) 2>&5
28140   ac_status=$?
28141   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28142   (exit $ac_status); }; }; then
28143   ac_lo=0 ac_mid=0
28144   while :; do
28145     cat >conftest.$ac_ext <<_ACEOF
28146 /* confdefs.h.  */
28147 _ACEOF
28148 cat confdefs.h >>conftest.$ac_ext
28149 cat >>conftest.$ac_ext <<_ACEOF
28150 /* end confdefs.h.  */
28151 $ac_includes_default
28152 int
28153 main ()
28154 {
28155 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
28156 test_array [0] = 0
28157
28158   ;
28159   return 0;
28160 }
28161 _ACEOF
28162 rm -f conftest.$ac_objext
28163 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28164   (eval $ac_compile) 2>conftest.er1
28165   ac_status=$?
28166   grep -v '^ *+' conftest.er1 >conftest.err
28167   rm -f conftest.er1
28168   cat conftest.err >&5
28169   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28170   (exit $ac_status); } &&
28171          { ac_try='test -z "$ac_c_werror_flag"
28172                          || test ! -s conftest.err'
28173   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28174   (eval $ac_try) 2>&5
28175   ac_status=$?
28176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28177   (exit $ac_status); }; } &&
28178          { ac_try='test -s conftest.$ac_objext'
28179   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28180   (eval $ac_try) 2>&5
28181   ac_status=$?
28182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28183   (exit $ac_status); }; }; then
28184   ac_hi=$ac_mid; break
28185 else
28186   echo "$as_me: failed program was:" >&5
28187 sed 's/^/| /' conftest.$ac_ext >&5
28188
28189 ac_lo=`expr $ac_mid + 1`
28190                     if test $ac_lo -le $ac_mid; then
28191                       ac_lo= ac_hi=
28192                       break
28193                     fi
28194                     ac_mid=`expr 2 '*' $ac_mid + 1`
28195 fi
28196 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28197   done
28198 else
28199   echo "$as_me: failed program was:" >&5
28200 sed 's/^/| /' conftest.$ac_ext >&5
28201
28202 cat >conftest.$ac_ext <<_ACEOF
28203 /* confdefs.h.  */
28204 _ACEOF
28205 cat confdefs.h >>conftest.$ac_ext
28206 cat >>conftest.$ac_ext <<_ACEOF
28207 /* end confdefs.h.  */
28208 $ac_includes_default
28209 int
28210 main ()
28211 {
28212 static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
28213 test_array [0] = 0
28214
28215   ;
28216   return 0;
28217 }
28218 _ACEOF
28219 rm -f conftest.$ac_objext
28220 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28221   (eval $ac_compile) 2>conftest.er1
28222   ac_status=$?
28223   grep -v '^ *+' conftest.er1 >conftest.err
28224   rm -f conftest.er1
28225   cat conftest.err >&5
28226   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28227   (exit $ac_status); } &&
28228          { ac_try='test -z "$ac_c_werror_flag"
28229                          || test ! -s conftest.err'
28230   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28231   (eval $ac_try) 2>&5
28232   ac_status=$?
28233   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28234   (exit $ac_status); }; } &&
28235          { ac_try='test -s conftest.$ac_objext'
28236   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28237   (eval $ac_try) 2>&5
28238   ac_status=$?
28239   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28240   (exit $ac_status); }; }; then
28241   ac_hi=-1 ac_mid=-1
28242   while :; do
28243     cat >conftest.$ac_ext <<_ACEOF
28244 /* confdefs.h.  */
28245 _ACEOF
28246 cat confdefs.h >>conftest.$ac_ext
28247 cat >>conftest.$ac_ext <<_ACEOF
28248 /* end confdefs.h.  */
28249 $ac_includes_default
28250 int
28251 main ()
28252 {
28253 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
28254 test_array [0] = 0
28255
28256   ;
28257   return 0;
28258 }
28259 _ACEOF
28260 rm -f conftest.$ac_objext
28261 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28262   (eval $ac_compile) 2>conftest.er1
28263   ac_status=$?
28264   grep -v '^ *+' conftest.er1 >conftest.err
28265   rm -f conftest.er1
28266   cat conftest.err >&5
28267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28268   (exit $ac_status); } &&
28269          { ac_try='test -z "$ac_c_werror_flag"
28270                          || test ! -s conftest.err'
28271   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28272   (eval $ac_try) 2>&5
28273   ac_status=$?
28274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28275   (exit $ac_status); }; } &&
28276          { ac_try='test -s conftest.$ac_objext'
28277   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28278   (eval $ac_try) 2>&5
28279   ac_status=$?
28280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28281   (exit $ac_status); }; }; then
28282   ac_lo=$ac_mid; break
28283 else
28284   echo "$as_me: failed program was:" >&5
28285 sed 's/^/| /' conftest.$ac_ext >&5
28286
28287 ac_hi=`expr '(' $ac_mid ')' - 1`
28288                        if test $ac_mid -le $ac_hi; then
28289                          ac_lo= ac_hi=
28290                          break
28291                        fi
28292                        ac_mid=`expr 2 '*' $ac_mid`
28293 fi
28294 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28295   done
28296 else
28297   echo "$as_me: failed program was:" >&5
28298 sed 's/^/| /' conftest.$ac_ext >&5
28299
28300 ac_lo= ac_hi=
28301 fi
28302 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28303 fi
28304 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28305 # Binary search between lo and hi bounds.
28306 while test "x$ac_lo" != "x$ac_hi"; do
28307   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
28308   cat >conftest.$ac_ext <<_ACEOF
28309 /* confdefs.h.  */
28310 _ACEOF
28311 cat confdefs.h >>conftest.$ac_ext
28312 cat >>conftest.$ac_ext <<_ACEOF
28313 /* end confdefs.h.  */
28314 $ac_includes_default
28315 int
28316 main ()
28317 {
28318 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
28319 test_array [0] = 0
28320
28321   ;
28322   return 0;
28323 }
28324 _ACEOF
28325 rm -f conftest.$ac_objext
28326 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28327   (eval $ac_compile) 2>conftest.er1
28328   ac_status=$?
28329   grep -v '^ *+' conftest.er1 >conftest.err
28330   rm -f conftest.er1
28331   cat conftest.err >&5
28332   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28333   (exit $ac_status); } &&
28334          { ac_try='test -z "$ac_c_werror_flag"
28335                          || test ! -s conftest.err'
28336   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28337   (eval $ac_try) 2>&5
28338   ac_status=$?
28339   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28340   (exit $ac_status); }; } &&
28341          { ac_try='test -s conftest.$ac_objext'
28342   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28343   (eval $ac_try) 2>&5
28344   ac_status=$?
28345   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28346   (exit $ac_status); }; }; then
28347   ac_hi=$ac_mid
28348 else
28349   echo "$as_me: failed program was:" >&5
28350 sed 's/^/| /' conftest.$ac_ext >&5
28351
28352 ac_lo=`expr '(' $ac_mid ')' + 1`
28353 fi
28354 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28355 done
28356 case $ac_lo in
28357 ?*) ac_cv_sizeof_char=$ac_lo;;
28358 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
28359 See \`config.log' for more details." >&5
28360 echo "$as_me: error: cannot compute sizeof (char), 77
28361 See \`config.log' for more details." >&2;}
28362    { (exit 1); exit 1; }; } ;;
28363 esac
28364 else
28365   if test "$cross_compiling" = yes; then
28366   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
28367 See \`config.log' for more details." >&5
28368 echo "$as_me: error: cannot run test program while cross compiling
28369 See \`config.log' for more details." >&2;}
28370    { (exit 1); exit 1; }; }
28371 else
28372   cat >conftest.$ac_ext <<_ACEOF
28373 /* confdefs.h.  */
28374 _ACEOF
28375 cat confdefs.h >>conftest.$ac_ext
28376 cat >>conftest.$ac_ext <<_ACEOF
28377 /* end confdefs.h.  */
28378 $ac_includes_default
28379 long longval () { return (long) (sizeof (char)); }
28380 unsigned long ulongval () { return (long) (sizeof (char)); }
28381 #include <stdio.h>
28382 #include <stdlib.h>
28383 int
28384 main ()
28385 {
28386
28387   FILE *f = fopen ("conftest.val", "w");
28388   if (! f)
28389     exit (1);
28390   if (((long) (sizeof (char))) < 0)
28391     {
28392       long i = longval ();
28393       if (i != ((long) (sizeof (char))))
28394         exit (1);
28395       fprintf (f, "%ld\n", i);
28396     }
28397   else
28398     {
28399       unsigned long i = ulongval ();
28400       if (i != ((long) (sizeof (char))))
28401         exit (1);
28402       fprintf (f, "%lu\n", i);
28403     }
28404   exit (ferror (f) || fclose (f) != 0);
28405
28406   ;
28407   return 0;
28408 }
28409 _ACEOF
28410 rm -f conftest$ac_exeext
28411 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28412   (eval $ac_link) 2>&5
28413   ac_status=$?
28414   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28415   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28416   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28417   (eval $ac_try) 2>&5
28418   ac_status=$?
28419   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28420   (exit $ac_status); }; }; then
28421   ac_cv_sizeof_char=`cat conftest.val`
28422 else
28423   echo "$as_me: program exited with status $ac_status" >&5
28424 echo "$as_me: failed program was:" >&5
28425 sed 's/^/| /' conftest.$ac_ext >&5
28426
28427 ( exit $ac_status )
28428 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
28429 See \`config.log' for more details." >&5
28430 echo "$as_me: error: cannot compute sizeof (char), 77
28431 See \`config.log' for more details." >&2;}
28432    { (exit 1); exit 1; }; }
28433 fi
28434 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28435 fi
28436 fi
28437 rm -f conftest.val
28438 else
28439   ac_cv_sizeof_char=0
28440 fi
28441 fi
28442 echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
28443 echo "${ECHO_T}$ac_cv_sizeof_char" >&6
28444 cat >>confdefs.h <<_ACEOF
28445 #define SIZEOF_CHAR $ac_cv_sizeof_char
28446 _ACEOF
28447
28448
28449         echo "$as_me:$LINENO: checking for uniquely sized char" >&5
28450 echo $ECHO_N "checking for uniquely sized char... $ECHO_C" >&6
28451 if test "${ccvs_cv_unique_int_type_char+set}" = set; then
28452   echo $ECHO_N "(cached) $ECHO_C" >&6
28453 else
28454   if set |grep ^ccvs_cv_unique_int_type_ \
28455                         |grep "($ac_cv_sizeof_char)" >/dev/null ; then
28456                         ccvs_cv_unique_int_type_char=no
28457                 else
28458                         ccvs_cv_unique_int_type_char=yes\($ac_cv_sizeof_char\)
28459                 fi
28460 fi
28461 echo "$as_me:$LINENO: result: $ccvs_cv_unique_int_type_char" >&5
28462 echo "${ECHO_T}$ccvs_cv_unique_int_type_char" >&6
28463         if test $ccvs_cv_unique_int_type_char != no ; then
28464
28465 cat >>confdefs.h <<\_ACEOF
28466 #define UNIQUE_INT_TYPE_CHAR 1
28467 _ACEOF
28468
28469         fi
28470         echo "$as_me:$LINENO: checking for short" >&5
28471 echo $ECHO_N "checking for short... $ECHO_C" >&6
28472 if test "${ac_cv_type_short+set}" = set; then
28473   echo $ECHO_N "(cached) $ECHO_C" >&6
28474 else
28475   cat >conftest.$ac_ext <<_ACEOF
28476 /* confdefs.h.  */
28477 _ACEOF
28478 cat confdefs.h >>conftest.$ac_ext
28479 cat >>conftest.$ac_ext <<_ACEOF
28480 /* end confdefs.h.  */
28481 $ac_includes_default
28482 int
28483 main ()
28484 {
28485 if ((short *) 0)
28486   return 0;
28487 if (sizeof (short))
28488   return 0;
28489   ;
28490   return 0;
28491 }
28492 _ACEOF
28493 rm -f conftest.$ac_objext
28494 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28495   (eval $ac_compile) 2>conftest.er1
28496   ac_status=$?
28497   grep -v '^ *+' conftest.er1 >conftest.err
28498   rm -f conftest.er1
28499   cat conftest.err >&5
28500   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28501   (exit $ac_status); } &&
28502          { ac_try='test -z "$ac_c_werror_flag"
28503                          || test ! -s conftest.err'
28504   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28505   (eval $ac_try) 2>&5
28506   ac_status=$?
28507   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28508   (exit $ac_status); }; } &&
28509          { ac_try='test -s conftest.$ac_objext'
28510   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28511   (eval $ac_try) 2>&5
28512   ac_status=$?
28513   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28514   (exit $ac_status); }; }; then
28515   ac_cv_type_short=yes
28516 else
28517   echo "$as_me: failed program was:" >&5
28518 sed 's/^/| /' conftest.$ac_ext >&5
28519
28520 ac_cv_type_short=no
28521 fi
28522 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28523 fi
28524 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
28525 echo "${ECHO_T}$ac_cv_type_short" >&6
28526
28527 echo "$as_me:$LINENO: checking size of short" >&5
28528 echo $ECHO_N "checking size of short... $ECHO_C" >&6
28529 if test "${ac_cv_sizeof_short+set}" = set; then
28530   echo $ECHO_N "(cached) $ECHO_C" >&6
28531 else
28532   if test "$ac_cv_type_short" = yes; then
28533   # The cast to unsigned long works around a bug in the HP C Compiler
28534   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
28535   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
28536   # This bug is HP SR number 8606223364.
28537   if test "$cross_compiling" = yes; then
28538   # Depending upon the size, compute the lo and hi bounds.
28539 cat >conftest.$ac_ext <<_ACEOF
28540 /* confdefs.h.  */
28541 _ACEOF
28542 cat confdefs.h >>conftest.$ac_ext
28543 cat >>conftest.$ac_ext <<_ACEOF
28544 /* end confdefs.h.  */
28545 $ac_includes_default
28546 int
28547 main ()
28548 {
28549 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
28550 test_array [0] = 0
28551
28552   ;
28553   return 0;
28554 }
28555 _ACEOF
28556 rm -f conftest.$ac_objext
28557 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28558   (eval $ac_compile) 2>conftest.er1
28559   ac_status=$?
28560   grep -v '^ *+' conftest.er1 >conftest.err
28561   rm -f conftest.er1
28562   cat conftest.err >&5
28563   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28564   (exit $ac_status); } &&
28565          { ac_try='test -z "$ac_c_werror_flag"
28566                          || test ! -s conftest.err'
28567   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28568   (eval $ac_try) 2>&5
28569   ac_status=$?
28570   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28571   (exit $ac_status); }; } &&
28572          { ac_try='test -s conftest.$ac_objext'
28573   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28574   (eval $ac_try) 2>&5
28575   ac_status=$?
28576   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28577   (exit $ac_status); }; }; then
28578   ac_lo=0 ac_mid=0
28579   while :; do
28580     cat >conftest.$ac_ext <<_ACEOF
28581 /* confdefs.h.  */
28582 _ACEOF
28583 cat confdefs.h >>conftest.$ac_ext
28584 cat >>conftest.$ac_ext <<_ACEOF
28585 /* end confdefs.h.  */
28586 $ac_includes_default
28587 int
28588 main ()
28589 {
28590 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
28591 test_array [0] = 0
28592
28593   ;
28594   return 0;
28595 }
28596 _ACEOF
28597 rm -f conftest.$ac_objext
28598 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28599   (eval $ac_compile) 2>conftest.er1
28600   ac_status=$?
28601   grep -v '^ *+' conftest.er1 >conftest.err
28602   rm -f conftest.er1
28603   cat conftest.err >&5
28604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28605   (exit $ac_status); } &&
28606          { ac_try='test -z "$ac_c_werror_flag"
28607                          || test ! -s conftest.err'
28608   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28609   (eval $ac_try) 2>&5
28610   ac_status=$?
28611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28612   (exit $ac_status); }; } &&
28613          { ac_try='test -s conftest.$ac_objext'
28614   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28615   (eval $ac_try) 2>&5
28616   ac_status=$?
28617   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28618   (exit $ac_status); }; }; then
28619   ac_hi=$ac_mid; break
28620 else
28621   echo "$as_me: failed program was:" >&5
28622 sed 's/^/| /' conftest.$ac_ext >&5
28623
28624 ac_lo=`expr $ac_mid + 1`
28625                     if test $ac_lo -le $ac_mid; then
28626                       ac_lo= ac_hi=
28627                       break
28628                     fi
28629                     ac_mid=`expr 2 '*' $ac_mid + 1`
28630 fi
28631 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28632   done
28633 else
28634   echo "$as_me: failed program was:" >&5
28635 sed 's/^/| /' conftest.$ac_ext >&5
28636
28637 cat >conftest.$ac_ext <<_ACEOF
28638 /* confdefs.h.  */
28639 _ACEOF
28640 cat confdefs.h >>conftest.$ac_ext
28641 cat >>conftest.$ac_ext <<_ACEOF
28642 /* end confdefs.h.  */
28643 $ac_includes_default
28644 int
28645 main ()
28646 {
28647 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
28648 test_array [0] = 0
28649
28650   ;
28651   return 0;
28652 }
28653 _ACEOF
28654 rm -f conftest.$ac_objext
28655 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28656   (eval $ac_compile) 2>conftest.er1
28657   ac_status=$?
28658   grep -v '^ *+' conftest.er1 >conftest.err
28659   rm -f conftest.er1
28660   cat conftest.err >&5
28661   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28662   (exit $ac_status); } &&
28663          { ac_try='test -z "$ac_c_werror_flag"
28664                          || test ! -s conftest.err'
28665   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28666   (eval $ac_try) 2>&5
28667   ac_status=$?
28668   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28669   (exit $ac_status); }; } &&
28670          { ac_try='test -s conftest.$ac_objext'
28671   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28672   (eval $ac_try) 2>&5
28673   ac_status=$?
28674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28675   (exit $ac_status); }; }; then
28676   ac_hi=-1 ac_mid=-1
28677   while :; do
28678     cat >conftest.$ac_ext <<_ACEOF
28679 /* confdefs.h.  */
28680 _ACEOF
28681 cat confdefs.h >>conftest.$ac_ext
28682 cat >>conftest.$ac_ext <<_ACEOF
28683 /* end confdefs.h.  */
28684 $ac_includes_default
28685 int
28686 main ()
28687 {
28688 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
28689 test_array [0] = 0
28690
28691   ;
28692   return 0;
28693 }
28694 _ACEOF
28695 rm -f conftest.$ac_objext
28696 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28697   (eval $ac_compile) 2>conftest.er1
28698   ac_status=$?
28699   grep -v '^ *+' conftest.er1 >conftest.err
28700   rm -f conftest.er1
28701   cat conftest.err >&5
28702   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28703   (exit $ac_status); } &&
28704          { ac_try='test -z "$ac_c_werror_flag"
28705                          || test ! -s conftest.err'
28706   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28707   (eval $ac_try) 2>&5
28708   ac_status=$?
28709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28710   (exit $ac_status); }; } &&
28711          { ac_try='test -s conftest.$ac_objext'
28712   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28713   (eval $ac_try) 2>&5
28714   ac_status=$?
28715   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28716   (exit $ac_status); }; }; then
28717   ac_lo=$ac_mid; break
28718 else
28719   echo "$as_me: failed program was:" >&5
28720 sed 's/^/| /' conftest.$ac_ext >&5
28721
28722 ac_hi=`expr '(' $ac_mid ')' - 1`
28723                        if test $ac_mid -le $ac_hi; then
28724                          ac_lo= ac_hi=
28725                          break
28726                        fi
28727                        ac_mid=`expr 2 '*' $ac_mid`
28728 fi
28729 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28730   done
28731 else
28732   echo "$as_me: failed program was:" >&5
28733 sed 's/^/| /' conftest.$ac_ext >&5
28734
28735 ac_lo= ac_hi=
28736 fi
28737 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28738 fi
28739 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28740 # Binary search between lo and hi bounds.
28741 while test "x$ac_lo" != "x$ac_hi"; do
28742   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
28743   cat >conftest.$ac_ext <<_ACEOF
28744 /* confdefs.h.  */
28745 _ACEOF
28746 cat confdefs.h >>conftest.$ac_ext
28747 cat >>conftest.$ac_ext <<_ACEOF
28748 /* end confdefs.h.  */
28749 $ac_includes_default
28750 int
28751 main ()
28752 {
28753 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
28754 test_array [0] = 0
28755
28756   ;
28757   return 0;
28758 }
28759 _ACEOF
28760 rm -f conftest.$ac_objext
28761 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28762   (eval $ac_compile) 2>conftest.er1
28763   ac_status=$?
28764   grep -v '^ *+' conftest.er1 >conftest.err
28765   rm -f conftest.er1
28766   cat conftest.err >&5
28767   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28768   (exit $ac_status); } &&
28769          { ac_try='test -z "$ac_c_werror_flag"
28770                          || test ! -s conftest.err'
28771   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28772   (eval $ac_try) 2>&5
28773   ac_status=$?
28774   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28775   (exit $ac_status); }; } &&
28776          { ac_try='test -s conftest.$ac_objext'
28777   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28778   (eval $ac_try) 2>&5
28779   ac_status=$?
28780   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28781   (exit $ac_status); }; }; then
28782   ac_hi=$ac_mid
28783 else
28784   echo "$as_me: failed program was:" >&5
28785 sed 's/^/| /' conftest.$ac_ext >&5
28786
28787 ac_lo=`expr '(' $ac_mid ')' + 1`
28788 fi
28789 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28790 done
28791 case $ac_lo in
28792 ?*) ac_cv_sizeof_short=$ac_lo;;
28793 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
28794 See \`config.log' for more details." >&5
28795 echo "$as_me: error: cannot compute sizeof (short), 77
28796 See \`config.log' for more details." >&2;}
28797    { (exit 1); exit 1; }; } ;;
28798 esac
28799 else
28800   if test "$cross_compiling" = yes; then
28801   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
28802 See \`config.log' for more details." >&5
28803 echo "$as_me: error: cannot run test program while cross compiling
28804 See \`config.log' for more details." >&2;}
28805    { (exit 1); exit 1; }; }
28806 else
28807   cat >conftest.$ac_ext <<_ACEOF
28808 /* confdefs.h.  */
28809 _ACEOF
28810 cat confdefs.h >>conftest.$ac_ext
28811 cat >>conftest.$ac_ext <<_ACEOF
28812 /* end confdefs.h.  */
28813 $ac_includes_default
28814 long longval () { return (long) (sizeof (short)); }
28815 unsigned long ulongval () { return (long) (sizeof (short)); }
28816 #include <stdio.h>
28817 #include <stdlib.h>
28818 int
28819 main ()
28820 {
28821
28822   FILE *f = fopen ("conftest.val", "w");
28823   if (! f)
28824     exit (1);
28825   if (((long) (sizeof (short))) < 0)
28826     {
28827       long i = longval ();
28828       if (i != ((long) (sizeof (short))))
28829         exit (1);
28830       fprintf (f, "%ld\n", i);
28831     }
28832   else
28833     {
28834       unsigned long i = ulongval ();
28835       if (i != ((long) (sizeof (short))))
28836         exit (1);
28837       fprintf (f, "%lu\n", i);
28838     }
28839   exit (ferror (f) || fclose (f) != 0);
28840
28841   ;
28842   return 0;
28843 }
28844 _ACEOF
28845 rm -f conftest$ac_exeext
28846 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28847   (eval $ac_link) 2>&5
28848   ac_status=$?
28849   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28850   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28851   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28852   (eval $ac_try) 2>&5
28853   ac_status=$?
28854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28855   (exit $ac_status); }; }; then
28856   ac_cv_sizeof_short=`cat conftest.val`
28857 else
28858   echo "$as_me: program exited with status $ac_status" >&5
28859 echo "$as_me: failed program was:" >&5
28860 sed 's/^/| /' conftest.$ac_ext >&5
28861
28862 ( exit $ac_status )
28863 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
28864 See \`config.log' for more details." >&5
28865 echo "$as_me: error: cannot compute sizeof (short), 77
28866 See \`config.log' for more details." >&2;}
28867    { (exit 1); exit 1; }; }
28868 fi
28869 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28870 fi
28871 fi
28872 rm -f conftest.val
28873 else
28874   ac_cv_sizeof_short=0
28875 fi
28876 fi
28877 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
28878 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
28879 cat >>confdefs.h <<_ACEOF
28880 #define SIZEOF_SHORT $ac_cv_sizeof_short
28881 _ACEOF
28882
28883
28884         echo "$as_me:$LINENO: checking for uniquely sized short" >&5
28885 echo $ECHO_N "checking for uniquely sized short... $ECHO_C" >&6
28886 if test "${ccvs_cv_unique_int_type_short+set}" = set; then
28887   echo $ECHO_N "(cached) $ECHO_C" >&6
28888 else
28889   if set |grep ^ccvs_cv_unique_int_type_ \
28890                         |grep "($ac_cv_sizeof_short)" >/dev/null ; then
28891                         ccvs_cv_unique_int_type_short=no
28892                 else
28893                         ccvs_cv_unique_int_type_short=yes\($ac_cv_sizeof_short\)
28894                 fi
28895 fi
28896 echo "$as_me:$LINENO: result: $ccvs_cv_unique_int_type_short" >&5
28897 echo "${ECHO_T}$ccvs_cv_unique_int_type_short" >&6
28898         if test $ccvs_cv_unique_int_type_short != no ; then
28899
28900 cat >>confdefs.h <<\_ACEOF
28901 #define UNIQUE_INT_TYPE_SHORT 1
28902 _ACEOF
28903
28904         fi
28905         echo "$as_me:$LINENO: checking for int" >&5
28906 echo $ECHO_N "checking for int... $ECHO_C" >&6
28907 if test "${ac_cv_type_int+set}" = set; then
28908   echo $ECHO_N "(cached) $ECHO_C" >&6
28909 else
28910   cat >conftest.$ac_ext <<_ACEOF
28911 /* confdefs.h.  */
28912 _ACEOF
28913 cat confdefs.h >>conftest.$ac_ext
28914 cat >>conftest.$ac_ext <<_ACEOF
28915 /* end confdefs.h.  */
28916 $ac_includes_default
28917 int
28918 main ()
28919 {
28920 if ((int *) 0)
28921   return 0;
28922 if (sizeof (int))
28923   return 0;
28924   ;
28925   return 0;
28926 }
28927 _ACEOF
28928 rm -f conftest.$ac_objext
28929 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28930   (eval $ac_compile) 2>conftest.er1
28931   ac_status=$?
28932   grep -v '^ *+' conftest.er1 >conftest.err
28933   rm -f conftest.er1
28934   cat conftest.err >&5
28935   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28936   (exit $ac_status); } &&
28937          { ac_try='test -z "$ac_c_werror_flag"
28938                          || test ! -s conftest.err'
28939   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28940   (eval $ac_try) 2>&5
28941   ac_status=$?
28942   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28943   (exit $ac_status); }; } &&
28944          { ac_try='test -s conftest.$ac_objext'
28945   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28946   (eval $ac_try) 2>&5
28947   ac_status=$?
28948   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28949   (exit $ac_status); }; }; then
28950   ac_cv_type_int=yes
28951 else
28952   echo "$as_me: failed program was:" >&5
28953 sed 's/^/| /' conftest.$ac_ext >&5
28954
28955 ac_cv_type_int=no
28956 fi
28957 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28958 fi
28959 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
28960 echo "${ECHO_T}$ac_cv_type_int" >&6
28961
28962 echo "$as_me:$LINENO: checking size of int" >&5
28963 echo $ECHO_N "checking size of int... $ECHO_C" >&6
28964 if test "${ac_cv_sizeof_int+set}" = set; then
28965   echo $ECHO_N "(cached) $ECHO_C" >&6
28966 else
28967   if test "$ac_cv_type_int" = yes; then
28968   # The cast to unsigned long works around a bug in the HP C Compiler
28969   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
28970   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
28971   # This bug is HP SR number 8606223364.
28972   if test "$cross_compiling" = yes; then
28973   # Depending upon the size, compute the lo and hi bounds.
28974 cat >conftest.$ac_ext <<_ACEOF
28975 /* confdefs.h.  */
28976 _ACEOF
28977 cat confdefs.h >>conftest.$ac_ext
28978 cat >>conftest.$ac_ext <<_ACEOF
28979 /* end confdefs.h.  */
28980 $ac_includes_default
28981 int
28982 main ()
28983 {
28984 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
28985 test_array [0] = 0
28986
28987   ;
28988   return 0;
28989 }
28990 _ACEOF
28991 rm -f conftest.$ac_objext
28992 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28993   (eval $ac_compile) 2>conftest.er1
28994   ac_status=$?
28995   grep -v '^ *+' conftest.er1 >conftest.err
28996   rm -f conftest.er1
28997   cat conftest.err >&5
28998   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28999   (exit $ac_status); } &&
29000          { ac_try='test -z "$ac_c_werror_flag"
29001                          || test ! -s conftest.err'
29002   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29003   (eval $ac_try) 2>&5
29004   ac_status=$?
29005   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29006   (exit $ac_status); }; } &&
29007          { ac_try='test -s conftest.$ac_objext'
29008   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29009   (eval $ac_try) 2>&5
29010   ac_status=$?
29011   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29012   (exit $ac_status); }; }; then
29013   ac_lo=0 ac_mid=0
29014   while :; do
29015     cat >conftest.$ac_ext <<_ACEOF
29016 /* confdefs.h.  */
29017 _ACEOF
29018 cat confdefs.h >>conftest.$ac_ext
29019 cat >>conftest.$ac_ext <<_ACEOF
29020 /* end confdefs.h.  */
29021 $ac_includes_default
29022 int
29023 main ()
29024 {
29025 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
29026 test_array [0] = 0
29027
29028   ;
29029   return 0;
29030 }
29031 _ACEOF
29032 rm -f conftest.$ac_objext
29033 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29034   (eval $ac_compile) 2>conftest.er1
29035   ac_status=$?
29036   grep -v '^ *+' conftest.er1 >conftest.err
29037   rm -f conftest.er1
29038   cat conftest.err >&5
29039   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29040   (exit $ac_status); } &&
29041          { ac_try='test -z "$ac_c_werror_flag"
29042                          || test ! -s conftest.err'
29043   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29044   (eval $ac_try) 2>&5
29045   ac_status=$?
29046   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29047   (exit $ac_status); }; } &&
29048          { ac_try='test -s conftest.$ac_objext'
29049   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29050   (eval $ac_try) 2>&5
29051   ac_status=$?
29052   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29053   (exit $ac_status); }; }; then
29054   ac_hi=$ac_mid; break
29055 else
29056   echo "$as_me: failed program was:" >&5
29057 sed 's/^/| /' conftest.$ac_ext >&5
29058
29059 ac_lo=`expr $ac_mid + 1`
29060                     if test $ac_lo -le $ac_mid; then
29061                       ac_lo= ac_hi=
29062                       break
29063                     fi
29064                     ac_mid=`expr 2 '*' $ac_mid + 1`
29065 fi
29066 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29067   done
29068 else
29069   echo "$as_me: failed program was:" >&5
29070 sed 's/^/| /' conftest.$ac_ext >&5
29071
29072 cat >conftest.$ac_ext <<_ACEOF
29073 /* confdefs.h.  */
29074 _ACEOF
29075 cat confdefs.h >>conftest.$ac_ext
29076 cat >>conftest.$ac_ext <<_ACEOF
29077 /* end confdefs.h.  */
29078 $ac_includes_default
29079 int
29080 main ()
29081 {
29082 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
29083 test_array [0] = 0
29084
29085   ;
29086   return 0;
29087 }
29088 _ACEOF
29089 rm -f conftest.$ac_objext
29090 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29091   (eval $ac_compile) 2>conftest.er1
29092   ac_status=$?
29093   grep -v '^ *+' conftest.er1 >conftest.err
29094   rm -f conftest.er1
29095   cat conftest.err >&5
29096   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29097   (exit $ac_status); } &&
29098          { ac_try='test -z "$ac_c_werror_flag"
29099                          || test ! -s conftest.err'
29100   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29101   (eval $ac_try) 2>&5
29102   ac_status=$?
29103   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29104   (exit $ac_status); }; } &&
29105          { ac_try='test -s conftest.$ac_objext'
29106   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29107   (eval $ac_try) 2>&5
29108   ac_status=$?
29109   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29110   (exit $ac_status); }; }; then
29111   ac_hi=-1 ac_mid=-1
29112   while :; do
29113     cat >conftest.$ac_ext <<_ACEOF
29114 /* confdefs.h.  */
29115 _ACEOF
29116 cat confdefs.h >>conftest.$ac_ext
29117 cat >>conftest.$ac_ext <<_ACEOF
29118 /* end confdefs.h.  */
29119 $ac_includes_default
29120 int
29121 main ()
29122 {
29123 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
29124 test_array [0] = 0
29125
29126   ;
29127   return 0;
29128 }
29129 _ACEOF
29130 rm -f conftest.$ac_objext
29131 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29132   (eval $ac_compile) 2>conftest.er1
29133   ac_status=$?
29134   grep -v '^ *+' conftest.er1 >conftest.err
29135   rm -f conftest.er1
29136   cat conftest.err >&5
29137   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29138   (exit $ac_status); } &&
29139          { ac_try='test -z "$ac_c_werror_flag"
29140                          || test ! -s conftest.err'
29141   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29142   (eval $ac_try) 2>&5
29143   ac_status=$?
29144   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29145   (exit $ac_status); }; } &&
29146          { ac_try='test -s conftest.$ac_objext'
29147   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29148   (eval $ac_try) 2>&5
29149   ac_status=$?
29150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29151   (exit $ac_status); }; }; then
29152   ac_lo=$ac_mid; break
29153 else
29154   echo "$as_me: failed program was:" >&5
29155 sed 's/^/| /' conftest.$ac_ext >&5
29156
29157 ac_hi=`expr '(' $ac_mid ')' - 1`
29158                        if test $ac_mid -le $ac_hi; then
29159                          ac_lo= ac_hi=
29160                          break
29161                        fi
29162                        ac_mid=`expr 2 '*' $ac_mid`
29163 fi
29164 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29165   done
29166 else
29167   echo "$as_me: failed program was:" >&5
29168 sed 's/^/| /' conftest.$ac_ext >&5
29169
29170 ac_lo= ac_hi=
29171 fi
29172 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29173 fi
29174 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29175 # Binary search between lo and hi bounds.
29176 while test "x$ac_lo" != "x$ac_hi"; do
29177   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
29178   cat >conftest.$ac_ext <<_ACEOF
29179 /* confdefs.h.  */
29180 _ACEOF
29181 cat confdefs.h >>conftest.$ac_ext
29182 cat >>conftest.$ac_ext <<_ACEOF
29183 /* end confdefs.h.  */
29184 $ac_includes_default
29185 int
29186 main ()
29187 {
29188 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
29189 test_array [0] = 0
29190
29191   ;
29192   return 0;
29193 }
29194 _ACEOF
29195 rm -f conftest.$ac_objext
29196 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29197   (eval $ac_compile) 2>conftest.er1
29198   ac_status=$?
29199   grep -v '^ *+' conftest.er1 >conftest.err
29200   rm -f conftest.er1
29201   cat conftest.err >&5
29202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29203   (exit $ac_status); } &&
29204          { ac_try='test -z "$ac_c_werror_flag"
29205                          || test ! -s conftest.err'
29206   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29207   (eval $ac_try) 2>&5
29208   ac_status=$?
29209   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29210   (exit $ac_status); }; } &&
29211          { ac_try='test -s conftest.$ac_objext'
29212   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29213   (eval $ac_try) 2>&5
29214   ac_status=$?
29215   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29216   (exit $ac_status); }; }; then
29217   ac_hi=$ac_mid
29218 else
29219   echo "$as_me: failed program was:" >&5
29220 sed 's/^/| /' conftest.$ac_ext >&5
29221
29222 ac_lo=`expr '(' $ac_mid ')' + 1`
29223 fi
29224 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29225 done
29226 case $ac_lo in
29227 ?*) ac_cv_sizeof_int=$ac_lo;;
29228 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
29229 See \`config.log' for more details." >&5
29230 echo "$as_me: error: cannot compute sizeof (int), 77
29231 See \`config.log' for more details." >&2;}
29232    { (exit 1); exit 1; }; } ;;
29233 esac
29234 else
29235   if test "$cross_compiling" = yes; then
29236   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
29237 See \`config.log' for more details." >&5
29238 echo "$as_me: error: cannot run test program while cross compiling
29239 See \`config.log' for more details." >&2;}
29240    { (exit 1); exit 1; }; }
29241 else
29242   cat >conftest.$ac_ext <<_ACEOF
29243 /* confdefs.h.  */
29244 _ACEOF
29245 cat confdefs.h >>conftest.$ac_ext
29246 cat >>conftest.$ac_ext <<_ACEOF
29247 /* end confdefs.h.  */
29248 $ac_includes_default
29249 long longval () { return (long) (sizeof (int)); }
29250 unsigned long ulongval () { return (long) (sizeof (int)); }
29251 #include <stdio.h>
29252 #include <stdlib.h>
29253 int
29254 main ()
29255 {
29256
29257   FILE *f = fopen ("conftest.val", "w");
29258   if (! f)
29259     exit (1);
29260   if (((long) (sizeof (int))) < 0)
29261     {
29262       long i = longval ();
29263       if (i != ((long) (sizeof (int))))
29264         exit (1);
29265       fprintf (f, "%ld\n", i);
29266     }
29267   else
29268     {
29269       unsigned long i = ulongval ();
29270       if (i != ((long) (sizeof (int))))
29271         exit (1);
29272       fprintf (f, "%lu\n", i);
29273     }
29274   exit (ferror (f) || fclose (f) != 0);
29275
29276   ;
29277   return 0;
29278 }
29279 _ACEOF
29280 rm -f conftest$ac_exeext
29281 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29282   (eval $ac_link) 2>&5
29283   ac_status=$?
29284   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29285   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29286   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29287   (eval $ac_try) 2>&5
29288   ac_status=$?
29289   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29290   (exit $ac_status); }; }; then
29291   ac_cv_sizeof_int=`cat conftest.val`
29292 else
29293   echo "$as_me: program exited with status $ac_status" >&5
29294 echo "$as_me: failed program was:" >&5
29295 sed 's/^/| /' conftest.$ac_ext >&5
29296
29297 ( exit $ac_status )
29298 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
29299 See \`config.log' for more details." >&5
29300 echo "$as_me: error: cannot compute sizeof (int), 77
29301 See \`config.log' for more details." >&2;}
29302    { (exit 1); exit 1; }; }
29303 fi
29304 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29305 fi
29306 fi
29307 rm -f conftest.val
29308 else
29309   ac_cv_sizeof_int=0
29310 fi
29311 fi
29312 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
29313 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
29314 cat >>confdefs.h <<_ACEOF
29315 #define SIZEOF_INT $ac_cv_sizeof_int
29316 _ACEOF
29317
29318
29319         echo "$as_me:$LINENO: checking for uniquely sized int" >&5
29320 echo $ECHO_N "checking for uniquely sized int... $ECHO_C" >&6
29321 if test "${ccvs_cv_unique_int_type_int+set}" = set; then
29322   echo $ECHO_N "(cached) $ECHO_C" >&6
29323 else
29324   if set |grep ^ccvs_cv_unique_int_type_ \
29325                         |grep "($ac_cv_sizeof_int)" >/dev/null ; then
29326                         ccvs_cv_unique_int_type_int=no
29327                 else
29328                         ccvs_cv_unique_int_type_int=yes\($ac_cv_sizeof_int\)
29329                 fi
29330 fi
29331 echo "$as_me:$LINENO: result: $ccvs_cv_unique_int_type_int" >&5
29332 echo "${ECHO_T}$ccvs_cv_unique_int_type_int" >&6
29333         if test $ccvs_cv_unique_int_type_int != no ; then
29334
29335 cat >>confdefs.h <<\_ACEOF
29336 #define UNIQUE_INT_TYPE_INT 1
29337 _ACEOF
29338
29339         fi
29340         echo "$as_me:$LINENO: checking for long" >&5
29341 echo $ECHO_N "checking for long... $ECHO_C" >&6
29342 if test "${ac_cv_type_long+set}" = set; then
29343   echo $ECHO_N "(cached) $ECHO_C" >&6
29344 else
29345   cat >conftest.$ac_ext <<_ACEOF
29346 /* confdefs.h.  */
29347 _ACEOF
29348 cat confdefs.h >>conftest.$ac_ext
29349 cat >>conftest.$ac_ext <<_ACEOF
29350 /* end confdefs.h.  */
29351 $ac_includes_default
29352 int
29353 main ()
29354 {
29355 if ((long *) 0)
29356   return 0;
29357 if (sizeof (long))
29358   return 0;
29359   ;
29360   return 0;
29361 }
29362 _ACEOF
29363 rm -f conftest.$ac_objext
29364 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29365   (eval $ac_compile) 2>conftest.er1
29366   ac_status=$?
29367   grep -v '^ *+' conftest.er1 >conftest.err
29368   rm -f conftest.er1
29369   cat conftest.err >&5
29370   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29371   (exit $ac_status); } &&
29372          { ac_try='test -z "$ac_c_werror_flag"
29373                          || test ! -s conftest.err'
29374   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29375   (eval $ac_try) 2>&5
29376   ac_status=$?
29377   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29378   (exit $ac_status); }; } &&
29379          { ac_try='test -s conftest.$ac_objext'
29380   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29381   (eval $ac_try) 2>&5
29382   ac_status=$?
29383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29384   (exit $ac_status); }; }; then
29385   ac_cv_type_long=yes
29386 else
29387   echo "$as_me: failed program was:" >&5
29388 sed 's/^/| /' conftest.$ac_ext >&5
29389
29390 ac_cv_type_long=no
29391 fi
29392 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29393 fi
29394 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
29395 echo "${ECHO_T}$ac_cv_type_long" >&6
29396
29397 echo "$as_me:$LINENO: checking size of long" >&5
29398 echo $ECHO_N "checking size of long... $ECHO_C" >&6
29399 if test "${ac_cv_sizeof_long+set}" = set; then
29400   echo $ECHO_N "(cached) $ECHO_C" >&6
29401 else
29402   if test "$ac_cv_type_long" = yes; then
29403   # The cast to unsigned long works around a bug in the HP C Compiler
29404   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
29405   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
29406   # This bug is HP SR number 8606223364.
29407   if test "$cross_compiling" = yes; then
29408   # Depending upon the size, compute the lo and hi bounds.
29409 cat >conftest.$ac_ext <<_ACEOF
29410 /* confdefs.h.  */
29411 _ACEOF
29412 cat confdefs.h >>conftest.$ac_ext
29413 cat >>conftest.$ac_ext <<_ACEOF
29414 /* end confdefs.h.  */
29415 $ac_includes_default
29416 int
29417 main ()
29418 {
29419 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
29420 test_array [0] = 0
29421
29422   ;
29423   return 0;
29424 }
29425 _ACEOF
29426 rm -f conftest.$ac_objext
29427 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29428   (eval $ac_compile) 2>conftest.er1
29429   ac_status=$?
29430   grep -v '^ *+' conftest.er1 >conftest.err
29431   rm -f conftest.er1
29432   cat conftest.err >&5
29433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29434   (exit $ac_status); } &&
29435          { ac_try='test -z "$ac_c_werror_flag"
29436                          || test ! -s conftest.err'
29437   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29438   (eval $ac_try) 2>&5
29439   ac_status=$?
29440   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29441   (exit $ac_status); }; } &&
29442          { ac_try='test -s conftest.$ac_objext'
29443   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29444   (eval $ac_try) 2>&5
29445   ac_status=$?
29446   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29447   (exit $ac_status); }; }; then
29448   ac_lo=0 ac_mid=0
29449   while :; do
29450     cat >conftest.$ac_ext <<_ACEOF
29451 /* confdefs.h.  */
29452 _ACEOF
29453 cat confdefs.h >>conftest.$ac_ext
29454 cat >>conftest.$ac_ext <<_ACEOF
29455 /* end confdefs.h.  */
29456 $ac_includes_default
29457 int
29458 main ()
29459 {
29460 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
29461 test_array [0] = 0
29462
29463   ;
29464   return 0;
29465 }
29466 _ACEOF
29467 rm -f conftest.$ac_objext
29468 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29469   (eval $ac_compile) 2>conftest.er1
29470   ac_status=$?
29471   grep -v '^ *+' conftest.er1 >conftest.err
29472   rm -f conftest.er1
29473   cat conftest.err >&5
29474   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29475   (exit $ac_status); } &&
29476          { ac_try='test -z "$ac_c_werror_flag"
29477                          || test ! -s conftest.err'
29478   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29479   (eval $ac_try) 2>&5
29480   ac_status=$?
29481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29482   (exit $ac_status); }; } &&
29483          { ac_try='test -s conftest.$ac_objext'
29484   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29485   (eval $ac_try) 2>&5
29486   ac_status=$?
29487   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29488   (exit $ac_status); }; }; then
29489   ac_hi=$ac_mid; break
29490 else
29491   echo "$as_me: failed program was:" >&5
29492 sed 's/^/| /' conftest.$ac_ext >&5
29493
29494 ac_lo=`expr $ac_mid + 1`
29495                     if test $ac_lo -le $ac_mid; then
29496                       ac_lo= ac_hi=
29497                       break
29498                     fi
29499                     ac_mid=`expr 2 '*' $ac_mid + 1`
29500 fi
29501 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29502   done
29503 else
29504   echo "$as_me: failed program was:" >&5
29505 sed 's/^/| /' conftest.$ac_ext >&5
29506
29507 cat >conftest.$ac_ext <<_ACEOF
29508 /* confdefs.h.  */
29509 _ACEOF
29510 cat confdefs.h >>conftest.$ac_ext
29511 cat >>conftest.$ac_ext <<_ACEOF
29512 /* end confdefs.h.  */
29513 $ac_includes_default
29514 int
29515 main ()
29516 {
29517 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
29518 test_array [0] = 0
29519
29520   ;
29521   return 0;
29522 }
29523 _ACEOF
29524 rm -f conftest.$ac_objext
29525 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29526   (eval $ac_compile) 2>conftest.er1
29527   ac_status=$?
29528   grep -v '^ *+' conftest.er1 >conftest.err
29529   rm -f conftest.er1
29530   cat conftest.err >&5
29531   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29532   (exit $ac_status); } &&
29533          { ac_try='test -z "$ac_c_werror_flag"
29534                          || test ! -s conftest.err'
29535   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29536   (eval $ac_try) 2>&5
29537   ac_status=$?
29538   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29539   (exit $ac_status); }; } &&
29540          { ac_try='test -s conftest.$ac_objext'
29541   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29542   (eval $ac_try) 2>&5
29543   ac_status=$?
29544   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29545   (exit $ac_status); }; }; then
29546   ac_hi=-1 ac_mid=-1
29547   while :; do
29548     cat >conftest.$ac_ext <<_ACEOF
29549 /* confdefs.h.  */
29550 _ACEOF
29551 cat confdefs.h >>conftest.$ac_ext
29552 cat >>conftest.$ac_ext <<_ACEOF
29553 /* end confdefs.h.  */
29554 $ac_includes_default
29555 int
29556 main ()
29557 {
29558 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
29559 test_array [0] = 0
29560
29561   ;
29562   return 0;
29563 }
29564 _ACEOF
29565 rm -f conftest.$ac_objext
29566 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29567   (eval $ac_compile) 2>conftest.er1
29568   ac_status=$?
29569   grep -v '^ *+' conftest.er1 >conftest.err
29570   rm -f conftest.er1
29571   cat conftest.err >&5
29572   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29573   (exit $ac_status); } &&
29574          { ac_try='test -z "$ac_c_werror_flag"
29575                          || test ! -s conftest.err'
29576   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29577   (eval $ac_try) 2>&5
29578   ac_status=$?
29579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29580   (exit $ac_status); }; } &&
29581          { ac_try='test -s conftest.$ac_objext'
29582   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29583   (eval $ac_try) 2>&5
29584   ac_status=$?
29585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29586   (exit $ac_status); }; }; then
29587   ac_lo=$ac_mid; break
29588 else
29589   echo "$as_me: failed program was:" >&5
29590 sed 's/^/| /' conftest.$ac_ext >&5
29591
29592 ac_hi=`expr '(' $ac_mid ')' - 1`
29593                        if test $ac_mid -le $ac_hi; then
29594                          ac_lo= ac_hi=
29595                          break
29596                        fi
29597                        ac_mid=`expr 2 '*' $ac_mid`
29598 fi
29599 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29600   done
29601 else
29602   echo "$as_me: failed program was:" >&5
29603 sed 's/^/| /' conftest.$ac_ext >&5
29604
29605 ac_lo= ac_hi=
29606 fi
29607 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29608 fi
29609 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29610 # Binary search between lo and hi bounds.
29611 while test "x$ac_lo" != "x$ac_hi"; do
29612   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
29613   cat >conftest.$ac_ext <<_ACEOF
29614 /* confdefs.h.  */
29615 _ACEOF
29616 cat confdefs.h >>conftest.$ac_ext
29617 cat >>conftest.$ac_ext <<_ACEOF
29618 /* end confdefs.h.  */
29619 $ac_includes_default
29620 int
29621 main ()
29622 {
29623 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
29624 test_array [0] = 0
29625
29626   ;
29627   return 0;
29628 }
29629 _ACEOF
29630 rm -f conftest.$ac_objext
29631 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29632   (eval $ac_compile) 2>conftest.er1
29633   ac_status=$?
29634   grep -v '^ *+' conftest.er1 >conftest.err
29635   rm -f conftest.er1
29636   cat conftest.err >&5
29637   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29638   (exit $ac_status); } &&
29639          { ac_try='test -z "$ac_c_werror_flag"
29640                          || test ! -s conftest.err'
29641   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29642   (eval $ac_try) 2>&5
29643   ac_status=$?
29644   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29645   (exit $ac_status); }; } &&
29646          { ac_try='test -s conftest.$ac_objext'
29647   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29648   (eval $ac_try) 2>&5
29649   ac_status=$?
29650   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29651   (exit $ac_status); }; }; then
29652   ac_hi=$ac_mid
29653 else
29654   echo "$as_me: failed program was:" >&5
29655 sed 's/^/| /' conftest.$ac_ext >&5
29656
29657 ac_lo=`expr '(' $ac_mid ')' + 1`
29658 fi
29659 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29660 done
29661 case $ac_lo in
29662 ?*) ac_cv_sizeof_long=$ac_lo;;
29663 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
29664 See \`config.log' for more details." >&5
29665 echo "$as_me: error: cannot compute sizeof (long), 77
29666 See \`config.log' for more details." >&2;}
29667    { (exit 1); exit 1; }; } ;;
29668 esac
29669 else
29670   if test "$cross_compiling" = yes; then
29671   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
29672 See \`config.log' for more details." >&5
29673 echo "$as_me: error: cannot run test program while cross compiling
29674 See \`config.log' for more details." >&2;}
29675    { (exit 1); exit 1; }; }
29676 else
29677   cat >conftest.$ac_ext <<_ACEOF
29678 /* confdefs.h.  */
29679 _ACEOF
29680 cat confdefs.h >>conftest.$ac_ext
29681 cat >>conftest.$ac_ext <<_ACEOF
29682 /* end confdefs.h.  */
29683 $ac_includes_default
29684 long longval () { return (long) (sizeof (long)); }
29685 unsigned long ulongval () { return (long) (sizeof (long)); }
29686 #include <stdio.h>
29687 #include <stdlib.h>
29688 int
29689 main ()
29690 {
29691
29692   FILE *f = fopen ("conftest.val", "w");
29693   if (! f)
29694     exit (1);
29695   if (((long) (sizeof (long))) < 0)
29696     {
29697       long i = longval ();
29698       if (i != ((long) (sizeof (long))))
29699         exit (1);
29700       fprintf (f, "%ld\n", i);
29701     }
29702   else
29703     {
29704       unsigned long i = ulongval ();
29705       if (i != ((long) (sizeof (long))))
29706         exit (1);
29707       fprintf (f, "%lu\n", i);
29708     }
29709   exit (ferror (f) || fclose (f) != 0);
29710
29711   ;
29712   return 0;
29713 }
29714 _ACEOF
29715 rm -f conftest$ac_exeext
29716 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29717   (eval $ac_link) 2>&5
29718   ac_status=$?
29719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29720   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29721   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29722   (eval $ac_try) 2>&5
29723   ac_status=$?
29724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29725   (exit $ac_status); }; }; then
29726   ac_cv_sizeof_long=`cat conftest.val`
29727 else
29728   echo "$as_me: program exited with status $ac_status" >&5
29729 echo "$as_me: failed program was:" >&5
29730 sed 's/^/| /' conftest.$ac_ext >&5
29731
29732 ( exit $ac_status )
29733 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
29734 See \`config.log' for more details." >&5
29735 echo "$as_me: error: cannot compute sizeof (long), 77
29736 See \`config.log' for more details." >&2;}
29737    { (exit 1); exit 1; }; }
29738 fi
29739 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29740 fi
29741 fi
29742 rm -f conftest.val
29743 else
29744   ac_cv_sizeof_long=0
29745 fi
29746 fi
29747 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
29748 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
29749 cat >>confdefs.h <<_ACEOF
29750 #define SIZEOF_LONG $ac_cv_sizeof_long
29751 _ACEOF
29752
29753
29754         echo "$as_me:$LINENO: checking for uniquely sized long" >&5
29755 echo $ECHO_N "checking for uniquely sized long... $ECHO_C" >&6
29756 if test "${ccvs_cv_unique_int_type_long+set}" = set; then
29757   echo $ECHO_N "(cached) $ECHO_C" >&6
29758 else
29759   if set |grep ^ccvs_cv_unique_int_type_ \
29760                         |grep "($ac_cv_sizeof_long)" >/dev/null ; then
29761                         ccvs_cv_unique_int_type_long=no
29762                 else
29763                         ccvs_cv_unique_int_type_long=yes\($ac_cv_sizeof_long\)
29764                 fi
29765 fi
29766 echo "$as_me:$LINENO: result: $ccvs_cv_unique_int_type_long" >&5
29767 echo "${ECHO_T}$ccvs_cv_unique_int_type_long" >&6
29768         if test $ccvs_cv_unique_int_type_long != no ; then
29769
29770 cat >>confdefs.h <<\_ACEOF
29771 #define UNIQUE_INT_TYPE_LONG 1
29772 _ACEOF
29773
29774         fi
29775         if test $ac_cv_type_long_long != no; then
29776                 echo "$as_me:$LINENO: checking for long long" >&5
29777 echo $ECHO_N "checking for long long... $ECHO_C" >&6
29778 if test "${ac_cv_type_long_long+set}" = set; then
29779   echo $ECHO_N "(cached) $ECHO_C" >&6
29780 else
29781   cat >conftest.$ac_ext <<_ACEOF
29782 /* confdefs.h.  */
29783 _ACEOF
29784 cat confdefs.h >>conftest.$ac_ext
29785 cat >>conftest.$ac_ext <<_ACEOF
29786 /* end confdefs.h.  */
29787 $ac_includes_default
29788 int
29789 main ()
29790 {
29791 if ((long long *) 0)
29792   return 0;
29793 if (sizeof (long long))
29794   return 0;
29795   ;
29796   return 0;
29797 }
29798 _ACEOF
29799 rm -f conftest.$ac_objext
29800 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29801   (eval $ac_compile) 2>conftest.er1
29802   ac_status=$?
29803   grep -v '^ *+' conftest.er1 >conftest.err
29804   rm -f conftest.er1
29805   cat conftest.err >&5
29806   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29807   (exit $ac_status); } &&
29808          { ac_try='test -z "$ac_c_werror_flag"
29809                          || test ! -s conftest.err'
29810   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29811   (eval $ac_try) 2>&5
29812   ac_status=$?
29813   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29814   (exit $ac_status); }; } &&
29815          { ac_try='test -s conftest.$ac_objext'
29816   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29817   (eval $ac_try) 2>&5
29818   ac_status=$?
29819   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29820   (exit $ac_status); }; }; then
29821   ac_cv_type_long_long=yes
29822 else
29823   echo "$as_me: failed program was:" >&5
29824 sed 's/^/| /' conftest.$ac_ext >&5
29825
29826 ac_cv_type_long_long=no
29827 fi
29828 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29829 fi
29830 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
29831 echo "${ECHO_T}$ac_cv_type_long_long" >&6
29832
29833 echo "$as_me:$LINENO: checking size of long long" >&5
29834 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
29835 if test "${ac_cv_sizeof_long_long+set}" = set; then
29836   echo $ECHO_N "(cached) $ECHO_C" >&6
29837 else
29838   if test "$ac_cv_type_long_long" = yes; then
29839   # The cast to unsigned long works around a bug in the HP C Compiler
29840   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
29841   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
29842   # This bug is HP SR number 8606223364.
29843   if test "$cross_compiling" = yes; then
29844   # Depending upon the size, compute the lo and hi bounds.
29845 cat >conftest.$ac_ext <<_ACEOF
29846 /* confdefs.h.  */
29847 _ACEOF
29848 cat confdefs.h >>conftest.$ac_ext
29849 cat >>conftest.$ac_ext <<_ACEOF
29850 /* end confdefs.h.  */
29851 $ac_includes_default
29852 int
29853 main ()
29854 {
29855 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
29856 test_array [0] = 0
29857
29858   ;
29859   return 0;
29860 }
29861 _ACEOF
29862 rm -f conftest.$ac_objext
29863 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29864   (eval $ac_compile) 2>conftest.er1
29865   ac_status=$?
29866   grep -v '^ *+' conftest.er1 >conftest.err
29867   rm -f conftest.er1
29868   cat conftest.err >&5
29869   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29870   (exit $ac_status); } &&
29871          { ac_try='test -z "$ac_c_werror_flag"
29872                          || test ! -s conftest.err'
29873   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29874   (eval $ac_try) 2>&5
29875   ac_status=$?
29876   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29877   (exit $ac_status); }; } &&
29878          { ac_try='test -s conftest.$ac_objext'
29879   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29880   (eval $ac_try) 2>&5
29881   ac_status=$?
29882   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29883   (exit $ac_status); }; }; then
29884   ac_lo=0 ac_mid=0
29885   while :; do
29886     cat >conftest.$ac_ext <<_ACEOF
29887 /* confdefs.h.  */
29888 _ACEOF
29889 cat confdefs.h >>conftest.$ac_ext
29890 cat >>conftest.$ac_ext <<_ACEOF
29891 /* end confdefs.h.  */
29892 $ac_includes_default
29893 int
29894 main ()
29895 {
29896 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
29897 test_array [0] = 0
29898
29899   ;
29900   return 0;
29901 }
29902 _ACEOF
29903 rm -f conftest.$ac_objext
29904 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29905   (eval $ac_compile) 2>conftest.er1
29906   ac_status=$?
29907   grep -v '^ *+' conftest.er1 >conftest.err
29908   rm -f conftest.er1
29909   cat conftest.err >&5
29910   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29911   (exit $ac_status); } &&
29912          { ac_try='test -z "$ac_c_werror_flag"
29913                          || test ! -s conftest.err'
29914   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29915   (eval $ac_try) 2>&5
29916   ac_status=$?
29917   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29918   (exit $ac_status); }; } &&
29919          { ac_try='test -s conftest.$ac_objext'
29920   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29921   (eval $ac_try) 2>&5
29922   ac_status=$?
29923   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29924   (exit $ac_status); }; }; then
29925   ac_hi=$ac_mid; break
29926 else
29927   echo "$as_me: failed program was:" >&5
29928 sed 's/^/| /' conftest.$ac_ext >&5
29929
29930 ac_lo=`expr $ac_mid + 1`
29931                     if test $ac_lo -le $ac_mid; then
29932                       ac_lo= ac_hi=
29933                       break
29934                     fi
29935                     ac_mid=`expr 2 '*' $ac_mid + 1`
29936 fi
29937 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29938   done
29939 else
29940   echo "$as_me: failed program was:" >&5
29941 sed 's/^/| /' conftest.$ac_ext >&5
29942
29943 cat >conftest.$ac_ext <<_ACEOF
29944 /* confdefs.h.  */
29945 _ACEOF
29946 cat confdefs.h >>conftest.$ac_ext
29947 cat >>conftest.$ac_ext <<_ACEOF
29948 /* end confdefs.h.  */
29949 $ac_includes_default
29950 int
29951 main ()
29952 {
29953 static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
29954 test_array [0] = 0
29955
29956   ;
29957   return 0;
29958 }
29959 _ACEOF
29960 rm -f conftest.$ac_objext
29961 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29962   (eval $ac_compile) 2>conftest.er1
29963   ac_status=$?
29964   grep -v '^ *+' conftest.er1 >conftest.err
29965   rm -f conftest.er1
29966   cat conftest.err >&5
29967   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29968   (exit $ac_status); } &&
29969          { ac_try='test -z "$ac_c_werror_flag"
29970                          || test ! -s conftest.err'
29971   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29972   (eval $ac_try) 2>&5
29973   ac_status=$?
29974   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29975   (exit $ac_status); }; } &&
29976          { ac_try='test -s conftest.$ac_objext'
29977   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29978   (eval $ac_try) 2>&5
29979   ac_status=$?
29980   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29981   (exit $ac_status); }; }; then
29982   ac_hi=-1 ac_mid=-1
29983   while :; do
29984     cat >conftest.$ac_ext <<_ACEOF
29985 /* confdefs.h.  */
29986 _ACEOF
29987 cat confdefs.h >>conftest.$ac_ext
29988 cat >>conftest.$ac_ext <<_ACEOF
29989 /* end confdefs.h.  */
29990 $ac_includes_default
29991 int
29992 main ()
29993 {
29994 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
29995 test_array [0] = 0
29996
29997   ;
29998   return 0;
29999 }
30000 _ACEOF
30001 rm -f conftest.$ac_objext
30002 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30003   (eval $ac_compile) 2>conftest.er1
30004   ac_status=$?
30005   grep -v '^ *+' conftest.er1 >conftest.err
30006   rm -f conftest.er1
30007   cat conftest.err >&5
30008   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30009   (exit $ac_status); } &&
30010          { ac_try='test -z "$ac_c_werror_flag"
30011                          || test ! -s conftest.err'
30012   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30013   (eval $ac_try) 2>&5
30014   ac_status=$?
30015   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30016   (exit $ac_status); }; } &&
30017          { ac_try='test -s conftest.$ac_objext'
30018   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30019   (eval $ac_try) 2>&5
30020   ac_status=$?
30021   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30022   (exit $ac_status); }; }; then
30023   ac_lo=$ac_mid; break
30024 else
30025   echo "$as_me: failed program was:" >&5
30026 sed 's/^/| /' conftest.$ac_ext >&5
30027
30028 ac_hi=`expr '(' $ac_mid ')' - 1`
30029                        if test $ac_mid -le $ac_hi; then
30030                          ac_lo= ac_hi=
30031                          break
30032                        fi
30033                        ac_mid=`expr 2 '*' $ac_mid`
30034 fi
30035 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30036   done
30037 else
30038   echo "$as_me: failed program was:" >&5
30039 sed 's/^/| /' conftest.$ac_ext >&5
30040
30041 ac_lo= ac_hi=
30042 fi
30043 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30044 fi
30045 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30046 # Binary search between lo and hi bounds.
30047 while test "x$ac_lo" != "x$ac_hi"; do
30048   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
30049   cat >conftest.$ac_ext <<_ACEOF
30050 /* confdefs.h.  */
30051 _ACEOF
30052 cat confdefs.h >>conftest.$ac_ext
30053 cat >>conftest.$ac_ext <<_ACEOF
30054 /* end confdefs.h.  */
30055 $ac_includes_default
30056 int
30057 main ()
30058 {
30059 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
30060 test_array [0] = 0
30061
30062   ;
30063   return 0;
30064 }
30065 _ACEOF
30066 rm -f conftest.$ac_objext
30067 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30068   (eval $ac_compile) 2>conftest.er1
30069   ac_status=$?
30070   grep -v '^ *+' conftest.er1 >conftest.err
30071   rm -f conftest.er1
30072   cat conftest.err >&5
30073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30074   (exit $ac_status); } &&
30075          { ac_try='test -z "$ac_c_werror_flag"
30076                          || test ! -s conftest.err'
30077   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30078   (eval $ac_try) 2>&5
30079   ac_status=$?
30080   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30081   (exit $ac_status); }; } &&
30082          { ac_try='test -s conftest.$ac_objext'
30083   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30084   (eval $ac_try) 2>&5
30085   ac_status=$?
30086   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30087   (exit $ac_status); }; }; then
30088   ac_hi=$ac_mid
30089 else
30090   echo "$as_me: failed program was:" >&5
30091 sed 's/^/| /' conftest.$ac_ext >&5
30092
30093 ac_lo=`expr '(' $ac_mid ')' + 1`
30094 fi
30095 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30096 done
30097 case $ac_lo in
30098 ?*) ac_cv_sizeof_long_long=$ac_lo;;
30099 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
30100 See \`config.log' for more details." >&5
30101 echo "$as_me: error: cannot compute sizeof (long long), 77
30102 See \`config.log' for more details." >&2;}
30103    { (exit 1); exit 1; }; } ;;
30104 esac
30105 else
30106   if test "$cross_compiling" = yes; then
30107   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
30108 See \`config.log' for more details." >&5
30109 echo "$as_me: error: cannot run test program while cross compiling
30110 See \`config.log' for more details." >&2;}
30111    { (exit 1); exit 1; }; }
30112 else
30113   cat >conftest.$ac_ext <<_ACEOF
30114 /* confdefs.h.  */
30115 _ACEOF
30116 cat confdefs.h >>conftest.$ac_ext
30117 cat >>conftest.$ac_ext <<_ACEOF
30118 /* end confdefs.h.  */
30119 $ac_includes_default
30120 long longval () { return (long) (sizeof (long long)); }
30121 unsigned long ulongval () { return (long) (sizeof (long long)); }
30122 #include <stdio.h>
30123 #include <stdlib.h>
30124 int
30125 main ()
30126 {
30127
30128   FILE *f = fopen ("conftest.val", "w");
30129   if (! f)
30130     exit (1);
30131   if (((long) (sizeof (long long))) < 0)
30132     {
30133       long i = longval ();
30134       if (i != ((long) (sizeof (long long))))
30135         exit (1);
30136       fprintf (f, "%ld\n", i);
30137     }
30138   else
30139     {
30140       unsigned long i = ulongval ();
30141       if (i != ((long) (sizeof (long long))))
30142         exit (1);
30143       fprintf (f, "%lu\n", i);
30144     }
30145   exit (ferror (f) || fclose (f) != 0);
30146
30147   ;
30148   return 0;
30149 }
30150 _ACEOF
30151 rm -f conftest$ac_exeext
30152 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30153   (eval $ac_link) 2>&5
30154   ac_status=$?
30155   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30156   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30157   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30158   (eval $ac_try) 2>&5
30159   ac_status=$?
30160   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30161   (exit $ac_status); }; }; then
30162   ac_cv_sizeof_long_long=`cat conftest.val`
30163 else
30164   echo "$as_me: program exited with status $ac_status" >&5
30165 echo "$as_me: failed program was:" >&5
30166 sed 's/^/| /' conftest.$ac_ext >&5
30167
30168 ( exit $ac_status )
30169 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
30170 See \`config.log' for more details." >&5
30171 echo "$as_me: error: cannot compute sizeof (long long), 77
30172 See \`config.log' for more details." >&2;}
30173    { (exit 1); exit 1; }; }
30174 fi
30175 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30176 fi
30177 fi
30178 rm -f conftest.val
30179 else
30180   ac_cv_sizeof_long_long=0
30181 fi
30182 fi
30183 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
30184 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
30185 cat >>confdefs.h <<_ACEOF
30186 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
30187 _ACEOF
30188
30189
30190                 echo "$as_me:$LINENO: checking for uniquely sized long long" >&5
30191 echo $ECHO_N "checking for uniquely sized long long... $ECHO_C" >&6
30192 if test "${ccvs_cv_unique_int_type_long_long+set}" = set; then
30193   echo $ECHO_N "(cached) $ECHO_C" >&6
30194 else
30195   if set |grep ^ccvs_cv_unique_int_type_ \
30196                                 |grep "($ac_cv_sizeof_long_long)" >/dev/null ; then
30197                                 ccvs_cv_unique_int_type_long_long=no
30198                         else
30199                                 ccvs_cv_unique_int_type_long_long=yes\($ac_cv_sizeof_long_long\)
30200                         fi
30201 fi
30202 echo "$as_me:$LINENO: result: $ccvs_cv_unique_int_type_long_long" >&5
30203 echo "${ECHO_T}$ccvs_cv_unique_int_type_long_long" >&6
30204                 if test $ccvs_cv_unique_int_type_long_long != no ; then
30205
30206 cat >>confdefs.h <<\_ACEOF
30207 #define UNIQUE_INT_TYPE_LONG_LONG 1
30208 _ACEOF
30209
30210                 fi
30211         fi
30212         echo "$as_me:$LINENO: checking for size_t" >&5
30213 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
30214 if test "${ac_cv_type_size_t+set}" = set; then
30215   echo $ECHO_N "(cached) $ECHO_C" >&6
30216 else
30217   cat >conftest.$ac_ext <<_ACEOF
30218 /* confdefs.h.  */
30219 _ACEOF
30220 cat confdefs.h >>conftest.$ac_ext
30221 cat >>conftest.$ac_ext <<_ACEOF
30222 /* end confdefs.h.  */
30223 $ac_includes_default
30224 int
30225 main ()
30226 {
30227 if ((size_t *) 0)
30228   return 0;
30229 if (sizeof (size_t))
30230   return 0;
30231   ;
30232   return 0;
30233 }
30234 _ACEOF
30235 rm -f conftest.$ac_objext
30236 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30237   (eval $ac_compile) 2>conftest.er1
30238   ac_status=$?
30239   grep -v '^ *+' conftest.er1 >conftest.err
30240   rm -f conftest.er1
30241   cat conftest.err >&5
30242   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30243   (exit $ac_status); } &&
30244          { ac_try='test -z "$ac_c_werror_flag"
30245                          || test ! -s conftest.err'
30246   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30247   (eval $ac_try) 2>&5
30248   ac_status=$?
30249   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30250   (exit $ac_status); }; } &&
30251          { ac_try='test -s conftest.$ac_objext'
30252   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30253   (eval $ac_try) 2>&5
30254   ac_status=$?
30255   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30256   (exit $ac_status); }; }; then
30257   ac_cv_type_size_t=yes
30258 else
30259   echo "$as_me: failed program was:" >&5
30260 sed 's/^/| /' conftest.$ac_ext >&5
30261
30262 ac_cv_type_size_t=no
30263 fi
30264 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30265 fi
30266 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
30267 echo "${ECHO_T}$ac_cv_type_size_t" >&6
30268
30269 echo "$as_me:$LINENO: checking size of size_t" >&5
30270 echo $ECHO_N "checking size of size_t... $ECHO_C" >&6
30271 if test "${ac_cv_sizeof_size_t+set}" = set; then
30272   echo $ECHO_N "(cached) $ECHO_C" >&6
30273 else
30274   if test "$ac_cv_type_size_t" = yes; then
30275   # The cast to unsigned long works around a bug in the HP C Compiler
30276   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
30277   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
30278   # This bug is HP SR number 8606223364.
30279   if test "$cross_compiling" = yes; then
30280   # Depending upon the size, compute the lo and hi bounds.
30281 cat >conftest.$ac_ext <<_ACEOF
30282 /* confdefs.h.  */
30283 _ACEOF
30284 cat confdefs.h >>conftest.$ac_ext
30285 cat >>conftest.$ac_ext <<_ACEOF
30286 /* end confdefs.h.  */
30287 $ac_includes_default
30288 int
30289 main ()
30290 {
30291 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= 0)];
30292 test_array [0] = 0
30293
30294   ;
30295   return 0;
30296 }
30297 _ACEOF
30298 rm -f conftest.$ac_objext
30299 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30300   (eval $ac_compile) 2>conftest.er1
30301   ac_status=$?
30302   grep -v '^ *+' conftest.er1 >conftest.err
30303   rm -f conftest.er1
30304   cat conftest.err >&5
30305   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30306   (exit $ac_status); } &&
30307          { ac_try='test -z "$ac_c_werror_flag"
30308                          || test ! -s conftest.err'
30309   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30310   (eval $ac_try) 2>&5
30311   ac_status=$?
30312   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30313   (exit $ac_status); }; } &&
30314          { ac_try='test -s conftest.$ac_objext'
30315   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30316   (eval $ac_try) 2>&5
30317   ac_status=$?
30318   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30319   (exit $ac_status); }; }; then
30320   ac_lo=0 ac_mid=0
30321   while :; do
30322     cat >conftest.$ac_ext <<_ACEOF
30323 /* confdefs.h.  */
30324 _ACEOF
30325 cat confdefs.h >>conftest.$ac_ext
30326 cat >>conftest.$ac_ext <<_ACEOF
30327 /* end confdefs.h.  */
30328 $ac_includes_default
30329 int
30330 main ()
30331 {
30332 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)];
30333 test_array [0] = 0
30334
30335   ;
30336   return 0;
30337 }
30338 _ACEOF
30339 rm -f conftest.$ac_objext
30340 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30341   (eval $ac_compile) 2>conftest.er1
30342   ac_status=$?
30343   grep -v '^ *+' conftest.er1 >conftest.err
30344   rm -f conftest.er1
30345   cat conftest.err >&5
30346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30347   (exit $ac_status); } &&
30348          { ac_try='test -z "$ac_c_werror_flag"
30349                          || test ! -s conftest.err'
30350   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30351   (eval $ac_try) 2>&5
30352   ac_status=$?
30353   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30354   (exit $ac_status); }; } &&
30355          { ac_try='test -s conftest.$ac_objext'
30356   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30357   (eval $ac_try) 2>&5
30358   ac_status=$?
30359   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30360   (exit $ac_status); }; }; then
30361   ac_hi=$ac_mid; break
30362 else
30363   echo "$as_me: failed program was:" >&5
30364 sed 's/^/| /' conftest.$ac_ext >&5
30365
30366 ac_lo=`expr $ac_mid + 1`
30367                     if test $ac_lo -le $ac_mid; then
30368                       ac_lo= ac_hi=
30369                       break
30370                     fi
30371                     ac_mid=`expr 2 '*' $ac_mid + 1`
30372 fi
30373 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30374   done
30375 else
30376   echo "$as_me: failed program was:" >&5
30377 sed 's/^/| /' conftest.$ac_ext >&5
30378
30379 cat >conftest.$ac_ext <<_ACEOF
30380 /* confdefs.h.  */
30381 _ACEOF
30382 cat confdefs.h >>conftest.$ac_ext
30383 cat >>conftest.$ac_ext <<_ACEOF
30384 /* end confdefs.h.  */
30385 $ac_includes_default
30386 int
30387 main ()
30388 {
30389 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) < 0)];
30390 test_array [0] = 0
30391
30392   ;
30393   return 0;
30394 }
30395 _ACEOF
30396 rm -f conftest.$ac_objext
30397 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30398   (eval $ac_compile) 2>conftest.er1
30399   ac_status=$?
30400   grep -v '^ *+' conftest.er1 >conftest.err
30401   rm -f conftest.er1
30402   cat conftest.err >&5
30403   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30404   (exit $ac_status); } &&
30405          { ac_try='test -z "$ac_c_werror_flag"
30406                          || test ! -s conftest.err'
30407   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30408   (eval $ac_try) 2>&5
30409   ac_status=$?
30410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30411   (exit $ac_status); }; } &&
30412          { ac_try='test -s conftest.$ac_objext'
30413   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30414   (eval $ac_try) 2>&5
30415   ac_status=$?
30416   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30417   (exit $ac_status); }; }; then
30418   ac_hi=-1 ac_mid=-1
30419   while :; do
30420     cat >conftest.$ac_ext <<_ACEOF
30421 /* confdefs.h.  */
30422 _ACEOF
30423 cat confdefs.h >>conftest.$ac_ext
30424 cat >>conftest.$ac_ext <<_ACEOF
30425 /* end confdefs.h.  */
30426 $ac_includes_default
30427 int
30428 main ()
30429 {
30430 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= $ac_mid)];
30431 test_array [0] = 0
30432
30433   ;
30434   return 0;
30435 }
30436 _ACEOF
30437 rm -f conftest.$ac_objext
30438 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30439   (eval $ac_compile) 2>conftest.er1
30440   ac_status=$?
30441   grep -v '^ *+' conftest.er1 >conftest.err
30442   rm -f conftest.er1
30443   cat conftest.err >&5
30444   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30445   (exit $ac_status); } &&
30446          { ac_try='test -z "$ac_c_werror_flag"
30447                          || test ! -s conftest.err'
30448   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30449   (eval $ac_try) 2>&5
30450   ac_status=$?
30451   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30452   (exit $ac_status); }; } &&
30453          { ac_try='test -s conftest.$ac_objext'
30454   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30455   (eval $ac_try) 2>&5
30456   ac_status=$?
30457   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30458   (exit $ac_status); }; }; then
30459   ac_lo=$ac_mid; break
30460 else
30461   echo "$as_me: failed program was:" >&5
30462 sed 's/^/| /' conftest.$ac_ext >&5
30463
30464 ac_hi=`expr '(' $ac_mid ')' - 1`
30465                        if test $ac_mid -le $ac_hi; then
30466                          ac_lo= ac_hi=
30467                          break
30468                        fi
30469                        ac_mid=`expr 2 '*' $ac_mid`
30470 fi
30471 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30472   done
30473 else
30474   echo "$as_me: failed program was:" >&5
30475 sed 's/^/| /' conftest.$ac_ext >&5
30476
30477 ac_lo= ac_hi=
30478 fi
30479 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30480 fi
30481 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30482 # Binary search between lo and hi bounds.
30483 while test "x$ac_lo" != "x$ac_hi"; do
30484   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
30485   cat >conftest.$ac_ext <<_ACEOF
30486 /* confdefs.h.  */
30487 _ACEOF
30488 cat confdefs.h >>conftest.$ac_ext
30489 cat >>conftest.$ac_ext <<_ACEOF
30490 /* end confdefs.h.  */
30491 $ac_includes_default
30492 int
30493 main ()
30494 {
30495 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)];
30496 test_array [0] = 0
30497
30498   ;
30499   return 0;
30500 }
30501 _ACEOF
30502 rm -f conftest.$ac_objext
30503 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30504   (eval $ac_compile) 2>conftest.er1
30505   ac_status=$?
30506   grep -v '^ *+' conftest.er1 >conftest.err
30507   rm -f conftest.er1
30508   cat conftest.err >&5
30509   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30510   (exit $ac_status); } &&
30511          { ac_try='test -z "$ac_c_werror_flag"
30512                          || test ! -s conftest.err'
30513   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30514   (eval $ac_try) 2>&5
30515   ac_status=$?
30516   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30517   (exit $ac_status); }; } &&
30518          { ac_try='test -s conftest.$ac_objext'
30519   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30520   (eval $ac_try) 2>&5
30521   ac_status=$?
30522   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30523   (exit $ac_status); }; }; then
30524   ac_hi=$ac_mid
30525 else
30526   echo "$as_me: failed program was:" >&5
30527 sed 's/^/| /' conftest.$ac_ext >&5
30528
30529 ac_lo=`expr '(' $ac_mid ')' + 1`
30530 fi
30531 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30532 done
30533 case $ac_lo in
30534 ?*) ac_cv_sizeof_size_t=$ac_lo;;
30535 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77
30536 See \`config.log' for more details." >&5
30537 echo "$as_me: error: cannot compute sizeof (size_t), 77
30538 See \`config.log' for more details." >&2;}
30539    { (exit 1); exit 1; }; } ;;
30540 esac
30541 else
30542   if test "$cross_compiling" = yes; then
30543   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
30544 See \`config.log' for more details." >&5
30545 echo "$as_me: error: cannot run test program while cross compiling
30546 See \`config.log' for more details." >&2;}
30547    { (exit 1); exit 1; }; }
30548 else
30549   cat >conftest.$ac_ext <<_ACEOF
30550 /* confdefs.h.  */
30551 _ACEOF
30552 cat confdefs.h >>conftest.$ac_ext
30553 cat >>conftest.$ac_ext <<_ACEOF
30554 /* end confdefs.h.  */
30555 $ac_includes_default
30556 long longval () { return (long) (sizeof (size_t)); }
30557 unsigned long ulongval () { return (long) (sizeof (size_t)); }
30558 #include <stdio.h>
30559 #include <stdlib.h>
30560 int
30561 main ()
30562 {
30563
30564   FILE *f = fopen ("conftest.val", "w");
30565   if (! f)
30566     exit (1);
30567   if (((long) (sizeof (size_t))) < 0)
30568     {
30569       long i = longval ();
30570       if (i != ((long) (sizeof (size_t))))
30571         exit (1);
30572       fprintf (f, "%ld\n", i);
30573     }
30574   else
30575     {
30576       unsigned long i = ulongval ();
30577       if (i != ((long) (sizeof (size_t))))
30578         exit (1);
30579       fprintf (f, "%lu\n", i);
30580     }
30581   exit (ferror (f) || fclose (f) != 0);
30582
30583   ;
30584   return 0;
30585 }
30586 _ACEOF
30587 rm -f conftest$ac_exeext
30588 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30589   (eval $ac_link) 2>&5
30590   ac_status=$?
30591   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30592   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30593   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30594   (eval $ac_try) 2>&5
30595   ac_status=$?
30596   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30597   (exit $ac_status); }; }; then
30598   ac_cv_sizeof_size_t=`cat conftest.val`
30599 else
30600   echo "$as_me: program exited with status $ac_status" >&5
30601 echo "$as_me: failed program was:" >&5
30602 sed 's/^/| /' conftest.$ac_ext >&5
30603
30604 ( exit $ac_status )
30605 { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77
30606 See \`config.log' for more details." >&5
30607 echo "$as_me: error: cannot compute sizeof (size_t), 77
30608 See \`config.log' for more details." >&2;}
30609    { (exit 1); exit 1; }; }
30610 fi
30611 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30612 fi
30613 fi
30614 rm -f conftest.val
30615 else
30616   ac_cv_sizeof_size_t=0
30617 fi
30618 fi
30619 echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
30620 echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6
30621 cat >>confdefs.h <<_ACEOF
30622 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
30623 _ACEOF
30624
30625
30626         echo "$as_me:$LINENO: checking for uniquely sized size_t" >&5
30627 echo $ECHO_N "checking for uniquely sized size_t... $ECHO_C" >&6
30628 if test "${ccvs_cv_unique_int_type_size_t+set}" = set; then
30629   echo $ECHO_N "(cached) $ECHO_C" >&6
30630 else
30631   if set |grep ^ccvs_cv_unique_int_type_ \
30632                         |grep "($ac_cv_sizeof_size_t)" >/dev/null ; then
30633                         ccvs_cv_unique_int_type_size_t=no
30634                 else
30635                         ccvs_cv_unique_int_type_size_t=yes\($ac_cv_sizeof_size_t\)
30636                 fi
30637 fi
30638 echo "$as_me:$LINENO: result: $ccvs_cv_unique_int_type_size_t" >&5
30639 echo "${ECHO_T}$ccvs_cv_unique_int_type_size_t" >&6
30640         if test $ccvs_cv_unique_int_type_size_t != no ; then
30641
30642 cat >>confdefs.h <<\_ACEOF
30643 #define UNIQUE_INT_TYPE_SIZE_T 1
30644 _ACEOF
30645
30646         fi
30647         echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
30648 echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6
30649 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
30650   echo $ECHO_N "(cached) $ECHO_C" >&6
30651 else
30652   cat >conftest.$ac_ext <<_ACEOF
30653 /* confdefs.h.  */
30654 _ACEOF
30655 cat confdefs.h >>conftest.$ac_ext
30656 cat >>conftest.$ac_ext <<_ACEOF
30657 /* end confdefs.h.  */
30658 $ac_includes_default
30659 int
30660 main ()
30661 {
30662 if ((ptrdiff_t *) 0)
30663   return 0;
30664 if (sizeof (ptrdiff_t))
30665   return 0;
30666   ;
30667   return 0;
30668 }
30669 _ACEOF
30670 rm -f conftest.$ac_objext
30671 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30672   (eval $ac_compile) 2>conftest.er1
30673   ac_status=$?
30674   grep -v '^ *+' conftest.er1 >conftest.err
30675   rm -f conftest.er1
30676   cat conftest.err >&5
30677   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30678   (exit $ac_status); } &&
30679          { ac_try='test -z "$ac_c_werror_flag"
30680                          || test ! -s conftest.err'
30681   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30682   (eval $ac_try) 2>&5
30683   ac_status=$?
30684   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30685   (exit $ac_status); }; } &&
30686          { ac_try='test -s conftest.$ac_objext'
30687   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30688   (eval $ac_try) 2>&5
30689   ac_status=$?
30690   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30691   (exit $ac_status); }; }; then
30692   ac_cv_type_ptrdiff_t=yes
30693 else
30694   echo "$as_me: failed program was:" >&5
30695 sed 's/^/| /' conftest.$ac_ext >&5
30696
30697 ac_cv_type_ptrdiff_t=no
30698 fi
30699 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30700 fi
30701 echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
30702 echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6
30703
30704 echo "$as_me:$LINENO: checking size of ptrdiff_t" >&5
30705 echo $ECHO_N "checking size of ptrdiff_t... $ECHO_C" >&6
30706 if test "${ac_cv_sizeof_ptrdiff_t+set}" = set; then
30707   echo $ECHO_N "(cached) $ECHO_C" >&6
30708 else
30709   if test "$ac_cv_type_ptrdiff_t" = yes; then
30710   # The cast to unsigned long works around a bug in the HP C Compiler
30711   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
30712   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
30713   # This bug is HP SR number 8606223364.
30714   if test "$cross_compiling" = yes; then
30715   # Depending upon the size, compute the lo and hi bounds.
30716 cat >conftest.$ac_ext <<_ACEOF
30717 /* confdefs.h.  */
30718 _ACEOF
30719 cat confdefs.h >>conftest.$ac_ext
30720 cat >>conftest.$ac_ext <<_ACEOF
30721 /* end confdefs.h.  */
30722 $ac_includes_default
30723 int
30724 main ()
30725 {
30726 static int test_array [1 - 2 * !(((long) (sizeof (ptrdiff_t))) >= 0)];
30727 test_array [0] = 0
30728
30729   ;
30730   return 0;
30731 }
30732 _ACEOF
30733 rm -f conftest.$ac_objext
30734 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30735   (eval $ac_compile) 2>conftest.er1
30736   ac_status=$?
30737   grep -v '^ *+' conftest.er1 >conftest.err
30738   rm -f conftest.er1
30739   cat conftest.err >&5
30740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30741   (exit $ac_status); } &&
30742          { ac_try='test -z "$ac_c_werror_flag"
30743                          || test ! -s conftest.err'
30744   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30745   (eval $ac_try) 2>&5
30746   ac_status=$?
30747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30748   (exit $ac_status); }; } &&
30749          { ac_try='test -s conftest.$ac_objext'
30750   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30751   (eval $ac_try) 2>&5
30752   ac_status=$?
30753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30754   (exit $ac_status); }; }; then
30755   ac_lo=0 ac_mid=0
30756   while :; do
30757     cat >conftest.$ac_ext <<_ACEOF
30758 /* confdefs.h.  */
30759 _ACEOF
30760 cat confdefs.h >>conftest.$ac_ext
30761 cat >>conftest.$ac_ext <<_ACEOF
30762 /* end confdefs.h.  */
30763 $ac_includes_default
30764 int
30765 main ()
30766 {
30767 static int test_array [1 - 2 * !(((long) (sizeof (ptrdiff_t))) <= $ac_mid)];
30768 test_array [0] = 0
30769
30770   ;
30771   return 0;
30772 }
30773 _ACEOF
30774 rm -f conftest.$ac_objext
30775 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30776   (eval $ac_compile) 2>conftest.er1
30777   ac_status=$?
30778   grep -v '^ *+' conftest.er1 >conftest.err
30779   rm -f conftest.er1
30780   cat conftest.err >&5
30781   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30782   (exit $ac_status); } &&
30783          { ac_try='test -z "$ac_c_werror_flag"
30784                          || test ! -s conftest.err'
30785   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30786   (eval $ac_try) 2>&5
30787   ac_status=$?
30788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30789   (exit $ac_status); }; } &&
30790          { ac_try='test -s conftest.$ac_objext'
30791   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30792   (eval $ac_try) 2>&5
30793   ac_status=$?
30794   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30795   (exit $ac_status); }; }; then
30796   ac_hi=$ac_mid; break
30797 else
30798   echo "$as_me: failed program was:" >&5
30799 sed 's/^/| /' conftest.$ac_ext >&5
30800
30801 ac_lo=`expr $ac_mid + 1`
30802                     if test $ac_lo -le $ac_mid; then
30803                       ac_lo= ac_hi=
30804                       break
30805                     fi
30806                     ac_mid=`expr 2 '*' $ac_mid + 1`
30807 fi
30808 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30809   done
30810 else
30811   echo "$as_me: failed program was:" >&5
30812 sed 's/^/| /' conftest.$ac_ext >&5
30813
30814 cat >conftest.$ac_ext <<_ACEOF
30815 /* confdefs.h.  */
30816 _ACEOF
30817 cat confdefs.h >>conftest.$ac_ext
30818 cat >>conftest.$ac_ext <<_ACEOF
30819 /* end confdefs.h.  */
30820 $ac_includes_default
30821 int
30822 main ()
30823 {
30824 static int test_array [1 - 2 * !(((long) (sizeof (ptrdiff_t))) < 0)];
30825 test_array [0] = 0
30826
30827   ;
30828   return 0;
30829 }
30830 _ACEOF
30831 rm -f conftest.$ac_objext
30832 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30833   (eval $ac_compile) 2>conftest.er1
30834   ac_status=$?
30835   grep -v '^ *+' conftest.er1 >conftest.err
30836   rm -f conftest.er1
30837   cat conftest.err >&5
30838   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30839   (exit $ac_status); } &&
30840          { ac_try='test -z "$ac_c_werror_flag"
30841                          || test ! -s conftest.err'
30842   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30843   (eval $ac_try) 2>&5
30844   ac_status=$?
30845   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30846   (exit $ac_status); }; } &&
30847          { ac_try='test -s conftest.$ac_objext'
30848   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30849   (eval $ac_try) 2>&5
30850   ac_status=$?
30851   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30852   (exit $ac_status); }; }; then
30853   ac_hi=-1 ac_mid=-1
30854   while :; do
30855     cat >conftest.$ac_ext <<_ACEOF
30856 /* confdefs.h.  */
30857 _ACEOF
30858 cat confdefs.h >>conftest.$ac_ext
30859 cat >>conftest.$ac_ext <<_ACEOF
30860 /* end confdefs.h.  */
30861 $ac_includes_default
30862 int
30863 main ()
30864 {
30865 static int test_array [1 - 2 * !(((long) (sizeof (ptrdiff_t))) >= $ac_mid)];
30866 test_array [0] = 0
30867
30868   ;
30869   return 0;
30870 }
30871 _ACEOF
30872 rm -f conftest.$ac_objext
30873 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30874   (eval $ac_compile) 2>conftest.er1
30875   ac_status=$?
30876   grep -v '^ *+' conftest.er1 >conftest.err
30877   rm -f conftest.er1
30878   cat conftest.err >&5
30879   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30880   (exit $ac_status); } &&
30881          { ac_try='test -z "$ac_c_werror_flag"
30882                          || test ! -s conftest.err'
30883   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30884   (eval $ac_try) 2>&5
30885   ac_status=$?
30886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30887   (exit $ac_status); }; } &&
30888          { ac_try='test -s conftest.$ac_objext'
30889   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30890   (eval $ac_try) 2>&5
30891   ac_status=$?
30892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30893   (exit $ac_status); }; }; then
30894   ac_lo=$ac_mid; break
30895 else
30896   echo "$as_me: failed program was:" >&5
30897 sed 's/^/| /' conftest.$ac_ext >&5
30898
30899 ac_hi=`expr '(' $ac_mid ')' - 1`
30900                        if test $ac_mid -le $ac_hi; then
30901                          ac_lo= ac_hi=
30902                          break
30903                        fi
30904                        ac_mid=`expr 2 '*' $ac_mid`
30905 fi
30906 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30907   done
30908 else
30909   echo "$as_me: failed program was:" >&5
30910 sed 's/^/| /' conftest.$ac_ext >&5
30911
30912 ac_lo= ac_hi=
30913 fi
30914 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30915 fi
30916 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30917 # Binary search between lo and hi bounds.
30918 while test "x$ac_lo" != "x$ac_hi"; do
30919   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
30920   cat >conftest.$ac_ext <<_ACEOF
30921 /* confdefs.h.  */
30922 _ACEOF
30923 cat confdefs.h >>conftest.$ac_ext
30924 cat >>conftest.$ac_ext <<_ACEOF
30925 /* end confdefs.h.  */
30926 $ac_includes_default
30927 int
30928 main ()
30929 {
30930 static int test_array [1 - 2 * !(((long) (sizeof (ptrdiff_t))) <= $ac_mid)];
30931 test_array [0] = 0
30932
30933   ;
30934   return 0;
30935 }
30936 _ACEOF
30937 rm -f conftest.$ac_objext
30938 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30939   (eval $ac_compile) 2>conftest.er1
30940   ac_status=$?
30941   grep -v '^ *+' conftest.er1 >conftest.err
30942   rm -f conftest.er1
30943   cat conftest.err >&5
30944   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30945   (exit $ac_status); } &&
30946          { ac_try='test -z "$ac_c_werror_flag"
30947                          || test ! -s conftest.err'
30948   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30949   (eval $ac_try) 2>&5
30950   ac_status=$?
30951   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30952   (exit $ac_status); }; } &&
30953          { ac_try='test -s conftest.$ac_objext'
30954   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30955   (eval $ac_try) 2>&5
30956   ac_status=$?
30957   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30958   (exit $ac_status); }; }; then
30959   ac_hi=$ac_mid
30960 else
30961   echo "$as_me: failed program was:" >&5
30962 sed 's/^/| /' conftest.$ac_ext >&5
30963
30964 ac_lo=`expr '(' $ac_mid ')' + 1`
30965 fi
30966 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30967 done
30968 case $ac_lo in
30969 ?*) ac_cv_sizeof_ptrdiff_t=$ac_lo;;
30970 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (ptrdiff_t), 77
30971 See \`config.log' for more details." >&5
30972 echo "$as_me: error: cannot compute sizeof (ptrdiff_t), 77
30973 See \`config.log' for more details." >&2;}
30974    { (exit 1); exit 1; }; } ;;
30975 esac
30976 else
30977   if test "$cross_compiling" = yes; then
30978   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
30979 See \`config.log' for more details." >&5
30980 echo "$as_me: error: cannot run test program while cross compiling
30981 See \`config.log' for more details." >&2;}
30982    { (exit 1); exit 1; }; }
30983 else
30984   cat >conftest.$ac_ext <<_ACEOF
30985 /* confdefs.h.  */
30986 _ACEOF
30987 cat confdefs.h >>conftest.$ac_ext
30988 cat >>conftest.$ac_ext <<_ACEOF
30989 /* end confdefs.h.  */
30990 $ac_includes_default
30991 long longval () { return (long) (sizeof (ptrdiff_t)); }
30992 unsigned long ulongval () { return (long) (sizeof (ptrdiff_t)); }
30993 #include <stdio.h>
30994 #include <stdlib.h>
30995 int
30996 main ()
30997 {
30998
30999   FILE *f = fopen ("conftest.val", "w");
31000   if (! f)
31001     exit (1);
31002   if (((long) (sizeof (ptrdiff_t))) < 0)
31003     {
31004       long i = longval ();
31005       if (i != ((long) (sizeof (ptrdiff_t))))
31006         exit (1);
31007       fprintf (f, "%ld\n", i);
31008     }
31009   else
31010     {
31011       unsigned long i = ulongval ();
31012       if (i != ((long) (sizeof (ptrdiff_t))))
31013         exit (1);
31014       fprintf (f, "%lu\n", i);
31015     }
31016   exit (ferror (f) || fclose (f) != 0);
31017
31018   ;
31019   return 0;
31020 }
31021 _ACEOF
31022 rm -f conftest$ac_exeext
31023 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31024   (eval $ac_link) 2>&5
31025   ac_status=$?
31026   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31027   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31028   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31029   (eval $ac_try) 2>&5
31030   ac_status=$?
31031   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31032   (exit $ac_status); }; }; then
31033   ac_cv_sizeof_ptrdiff_t=`cat conftest.val`
31034 else
31035   echo "$as_me: program exited with status $ac_status" >&5
31036 echo "$as_me: failed program was:" >&5
31037 sed 's/^/| /' conftest.$ac_ext >&5
31038
31039 ( exit $ac_status )
31040 { { echo "$as_me:$LINENO: error: cannot compute sizeof (ptrdiff_t), 77
31041 See \`config.log' for more details." >&5
31042 echo "$as_me: error: cannot compute sizeof (ptrdiff_t), 77
31043 See \`config.log' for more details." >&2;}
31044    { (exit 1); exit 1; }; }
31045 fi
31046 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31047 fi
31048 fi
31049 rm -f conftest.val
31050 else
31051   ac_cv_sizeof_ptrdiff_t=0
31052 fi
31053 fi
31054 echo "$as_me:$LINENO: result: $ac_cv_sizeof_ptrdiff_t" >&5
31055 echo "${ECHO_T}$ac_cv_sizeof_ptrdiff_t" >&6
31056 cat >>confdefs.h <<_ACEOF
31057 #define SIZEOF_PTRDIFF_T $ac_cv_sizeof_ptrdiff_t
31058 _ACEOF
31059
31060
31061         echo "$as_me:$LINENO: checking for uniquely sized ptrdiff_t" >&5
31062 echo $ECHO_N "checking for uniquely sized ptrdiff_t... $ECHO_C" >&6
31063 if test "${ccvs_cv_unique_int_type_ptrdiff_t+set}" = set; then
31064   echo $ECHO_N "(cached) $ECHO_C" >&6
31065 else
31066   if set |grep ^ccvs_cv_unique_int_type_ \
31067                         |grep "($ac_cv_sizeof_ptrdiff_t)" >/dev/null ; then
31068                         ccvs_cv_unique_int_type_ptrdiff_t=no
31069                 else
31070                         ccvs_cv_unique_int_type_ptrdiff_t=yes\($ac_cv_sizeof_ptrdiff_t\)
31071                 fi
31072 fi
31073 echo "$as_me:$LINENO: result: $ccvs_cv_unique_int_type_ptrdiff_t" >&5
31074 echo "${ECHO_T}$ccvs_cv_unique_int_type_ptrdiff_t" >&6
31075         if test $ccvs_cv_unique_int_type_ptrdiff_t != no ; then
31076
31077 cat >>confdefs.h <<\_ACEOF
31078 #define UNIQUE_INT_TYPE_PTRDIFF_T 1
31079 _ACEOF
31080
31081         fi
31082         if test $gt_cv_c_wint_t != no; then
31083                 echo "$as_me:$LINENO: checking for wint_t" >&5
31084 echo $ECHO_N "checking for wint_t... $ECHO_C" >&6
31085 if test "${ac_cv_type_wint_t+set}" = set; then
31086   echo $ECHO_N "(cached) $ECHO_C" >&6
31087 else
31088   cat >conftest.$ac_ext <<_ACEOF
31089 /* confdefs.h.  */
31090 _ACEOF
31091 cat confdefs.h >>conftest.$ac_ext
31092 cat >>conftest.$ac_ext <<_ACEOF
31093 /* end confdefs.h.  */
31094 #include <stdio.h>
31095 #include <wchar.h>
31096
31097
31098 int
31099 main ()
31100 {
31101 if ((wint_t *) 0)
31102   return 0;
31103 if (sizeof (wint_t))
31104   return 0;
31105   ;
31106   return 0;
31107 }
31108 _ACEOF
31109 rm -f conftest.$ac_objext
31110 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31111   (eval $ac_compile) 2>conftest.er1
31112   ac_status=$?
31113   grep -v '^ *+' conftest.er1 >conftest.err
31114   rm -f conftest.er1
31115   cat conftest.err >&5
31116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31117   (exit $ac_status); } &&
31118          { ac_try='test -z "$ac_c_werror_flag"
31119                          || test ! -s conftest.err'
31120   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31121   (eval $ac_try) 2>&5
31122   ac_status=$?
31123   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31124   (exit $ac_status); }; } &&
31125          { ac_try='test -s conftest.$ac_objext'
31126   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31127   (eval $ac_try) 2>&5
31128   ac_status=$?
31129   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31130   (exit $ac_status); }; }; then
31131   ac_cv_type_wint_t=yes
31132 else
31133   echo "$as_me: failed program was:" >&5
31134 sed 's/^/| /' conftest.$ac_ext >&5
31135
31136 ac_cv_type_wint_t=no
31137 fi
31138 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31139 fi
31140 echo "$as_me:$LINENO: result: $ac_cv_type_wint_t" >&5
31141 echo "${ECHO_T}$ac_cv_type_wint_t" >&6
31142
31143 echo "$as_me:$LINENO: checking size of wint_t" >&5
31144 echo $ECHO_N "checking size of wint_t... $ECHO_C" >&6
31145 if test "${ac_cv_sizeof_wint_t+set}" = set; then
31146   echo $ECHO_N "(cached) $ECHO_C" >&6
31147 else
31148   if test "$ac_cv_type_wint_t" = yes; then
31149   # The cast to unsigned long works around a bug in the HP C Compiler
31150   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
31151   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
31152   # This bug is HP SR number 8606223364.
31153   if test "$cross_compiling" = yes; then
31154   # Depending upon the size, compute the lo and hi bounds.
31155 cat >conftest.$ac_ext <<_ACEOF
31156 /* confdefs.h.  */
31157 _ACEOF
31158 cat confdefs.h >>conftest.$ac_ext
31159 cat >>conftest.$ac_ext <<_ACEOF
31160 /* end confdefs.h.  */
31161 #include <stdio.h>
31162 #include <wchar.h>
31163
31164
31165 int
31166 main ()
31167 {
31168 static int test_array [1 - 2 * !(((long) (sizeof (wint_t))) >= 0)];
31169 test_array [0] = 0
31170
31171   ;
31172   return 0;
31173 }
31174 _ACEOF
31175 rm -f conftest.$ac_objext
31176 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31177   (eval $ac_compile) 2>conftest.er1
31178   ac_status=$?
31179   grep -v '^ *+' conftest.er1 >conftest.err
31180   rm -f conftest.er1
31181   cat conftest.err >&5
31182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31183   (exit $ac_status); } &&
31184          { ac_try='test -z "$ac_c_werror_flag"
31185                          || test ! -s conftest.err'
31186   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31187   (eval $ac_try) 2>&5
31188   ac_status=$?
31189   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31190   (exit $ac_status); }; } &&
31191          { ac_try='test -s conftest.$ac_objext'
31192   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31193   (eval $ac_try) 2>&5
31194   ac_status=$?
31195   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31196   (exit $ac_status); }; }; then
31197   ac_lo=0 ac_mid=0
31198   while :; do
31199     cat >conftest.$ac_ext <<_ACEOF
31200 /* confdefs.h.  */
31201 _ACEOF
31202 cat confdefs.h >>conftest.$ac_ext
31203 cat >>conftest.$ac_ext <<_ACEOF
31204 /* end confdefs.h.  */
31205 #include <stdio.h>
31206 #include <wchar.h>
31207
31208
31209 int
31210 main ()
31211 {
31212 static int test_array [1 - 2 * !(((long) (sizeof (wint_t))) <= $ac_mid)];
31213 test_array [0] = 0
31214
31215   ;
31216   return 0;
31217 }
31218 _ACEOF
31219 rm -f conftest.$ac_objext
31220 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31221   (eval $ac_compile) 2>conftest.er1
31222   ac_status=$?
31223   grep -v '^ *+' conftest.er1 >conftest.err
31224   rm -f conftest.er1
31225   cat conftest.err >&5
31226   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31227   (exit $ac_status); } &&
31228          { ac_try='test -z "$ac_c_werror_flag"
31229                          || test ! -s conftest.err'
31230   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31231   (eval $ac_try) 2>&5
31232   ac_status=$?
31233   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31234   (exit $ac_status); }; } &&
31235          { ac_try='test -s conftest.$ac_objext'
31236   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31237   (eval $ac_try) 2>&5
31238   ac_status=$?
31239   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31240   (exit $ac_status); }; }; then
31241   ac_hi=$ac_mid; break
31242 else
31243   echo "$as_me: failed program was:" >&5
31244 sed 's/^/| /' conftest.$ac_ext >&5
31245
31246 ac_lo=`expr $ac_mid + 1`
31247                     if test $ac_lo -le $ac_mid; then
31248                       ac_lo= ac_hi=
31249                       break
31250                     fi
31251                     ac_mid=`expr 2 '*' $ac_mid + 1`
31252 fi
31253 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31254   done
31255 else
31256   echo "$as_me: failed program was:" >&5
31257 sed 's/^/| /' conftest.$ac_ext >&5
31258
31259 cat >conftest.$ac_ext <<_ACEOF
31260 /* confdefs.h.  */
31261 _ACEOF
31262 cat confdefs.h >>conftest.$ac_ext
31263 cat >>conftest.$ac_ext <<_ACEOF
31264 /* end confdefs.h.  */
31265 #include <stdio.h>
31266 #include <wchar.h>
31267
31268
31269 int
31270 main ()
31271 {
31272 static int test_array [1 - 2 * !(((long) (sizeof (wint_t))) < 0)];
31273 test_array [0] = 0
31274
31275   ;
31276   return 0;
31277 }
31278 _ACEOF
31279 rm -f conftest.$ac_objext
31280 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31281   (eval $ac_compile) 2>conftest.er1
31282   ac_status=$?
31283   grep -v '^ *+' conftest.er1 >conftest.err
31284   rm -f conftest.er1
31285   cat conftest.err >&5
31286   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31287   (exit $ac_status); } &&
31288          { ac_try='test -z "$ac_c_werror_flag"
31289                          || test ! -s conftest.err'
31290   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31291   (eval $ac_try) 2>&5
31292   ac_status=$?
31293   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31294   (exit $ac_status); }; } &&
31295          { ac_try='test -s conftest.$ac_objext'
31296   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31297   (eval $ac_try) 2>&5
31298   ac_status=$?
31299   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31300   (exit $ac_status); }; }; then
31301   ac_hi=-1 ac_mid=-1
31302   while :; do
31303     cat >conftest.$ac_ext <<_ACEOF
31304 /* confdefs.h.  */
31305 _ACEOF
31306 cat confdefs.h >>conftest.$ac_ext
31307 cat >>conftest.$ac_ext <<_ACEOF
31308 /* end confdefs.h.  */
31309 #include <stdio.h>
31310 #include <wchar.h>
31311
31312
31313 int
31314 main ()
31315 {
31316 static int test_array [1 - 2 * !(((long) (sizeof (wint_t))) >= $ac_mid)];
31317 test_array [0] = 0
31318
31319   ;
31320   return 0;
31321 }
31322 _ACEOF
31323 rm -f conftest.$ac_objext
31324 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31325   (eval $ac_compile) 2>conftest.er1
31326   ac_status=$?
31327   grep -v '^ *+' conftest.er1 >conftest.err
31328   rm -f conftest.er1
31329   cat conftest.err >&5
31330   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31331   (exit $ac_status); } &&
31332          { ac_try='test -z "$ac_c_werror_flag"
31333                          || test ! -s conftest.err'
31334   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31335   (eval $ac_try) 2>&5
31336   ac_status=$?
31337   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31338   (exit $ac_status); }; } &&
31339          { ac_try='test -s conftest.$ac_objext'
31340   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31341   (eval $ac_try) 2>&5
31342   ac_status=$?
31343   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31344   (exit $ac_status); }; }; then
31345   ac_lo=$ac_mid; break
31346 else
31347   echo "$as_me: failed program was:" >&5
31348 sed 's/^/| /' conftest.$ac_ext >&5
31349
31350 ac_hi=`expr '(' $ac_mid ')' - 1`
31351                        if test $ac_mid -le $ac_hi; then
31352                          ac_lo= ac_hi=
31353                          break
31354                        fi
31355                        ac_mid=`expr 2 '*' $ac_mid`
31356 fi
31357 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31358   done
31359 else
31360   echo "$as_me: failed program was:" >&5
31361 sed 's/^/| /' conftest.$ac_ext >&5
31362
31363 ac_lo= ac_hi=
31364 fi
31365 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31366 fi
31367 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31368 # Binary search between lo and hi bounds.
31369 while test "x$ac_lo" != "x$ac_hi"; do
31370   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
31371   cat >conftest.$ac_ext <<_ACEOF
31372 /* confdefs.h.  */
31373 _ACEOF
31374 cat confdefs.h >>conftest.$ac_ext
31375 cat >>conftest.$ac_ext <<_ACEOF
31376 /* end confdefs.h.  */
31377 #include <stdio.h>
31378 #include <wchar.h>
31379
31380
31381 int
31382 main ()
31383 {
31384 static int test_array [1 - 2 * !(((long) (sizeof (wint_t))) <= $ac_mid)];
31385 test_array [0] = 0
31386
31387   ;
31388   return 0;
31389 }
31390 _ACEOF
31391 rm -f conftest.$ac_objext
31392 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31393   (eval $ac_compile) 2>conftest.er1
31394   ac_status=$?
31395   grep -v '^ *+' conftest.er1 >conftest.err
31396   rm -f conftest.er1
31397   cat conftest.err >&5
31398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31399   (exit $ac_status); } &&
31400          { ac_try='test -z "$ac_c_werror_flag"
31401                          || test ! -s conftest.err'
31402   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31403   (eval $ac_try) 2>&5
31404   ac_status=$?
31405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31406   (exit $ac_status); }; } &&
31407          { ac_try='test -s conftest.$ac_objext'
31408   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31409   (eval $ac_try) 2>&5
31410   ac_status=$?
31411   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31412   (exit $ac_status); }; }; then
31413   ac_hi=$ac_mid
31414 else
31415   echo "$as_me: failed program was:" >&5
31416 sed 's/^/| /' conftest.$ac_ext >&5
31417
31418 ac_lo=`expr '(' $ac_mid ')' + 1`
31419 fi
31420 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31421 done
31422 case $ac_lo in
31423 ?*) ac_cv_sizeof_wint_t=$ac_lo;;
31424 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (wint_t), 77
31425 See \`config.log' for more details." >&5
31426 echo "$as_me: error: cannot compute sizeof (wint_t), 77
31427 See \`config.log' for more details." >&2;}
31428    { (exit 1); exit 1; }; } ;;
31429 esac
31430 else
31431   if test "$cross_compiling" = yes; then
31432   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
31433 See \`config.log' for more details." >&5
31434 echo "$as_me: error: cannot run test program while cross compiling
31435 See \`config.log' for more details." >&2;}
31436    { (exit 1); exit 1; }; }
31437 else
31438   cat >conftest.$ac_ext <<_ACEOF
31439 /* confdefs.h.  */
31440 _ACEOF
31441 cat confdefs.h >>conftest.$ac_ext
31442 cat >>conftest.$ac_ext <<_ACEOF
31443 /* end confdefs.h.  */
31444 #include <stdio.h>
31445 #include <wchar.h>
31446
31447
31448 long longval () { return (long) (sizeof (wint_t)); }
31449 unsigned long ulongval () { return (long) (sizeof (wint_t)); }
31450 #include <stdio.h>
31451 #include <stdlib.h>
31452 int
31453 main ()
31454 {
31455
31456   FILE *f = fopen ("conftest.val", "w");
31457   if (! f)
31458     exit (1);
31459   if (((long) (sizeof (wint_t))) < 0)
31460     {
31461       long i = longval ();
31462       if (i != ((long) (sizeof (wint_t))))
31463         exit (1);
31464       fprintf (f, "%ld\n", i);
31465     }
31466   else
31467     {
31468       unsigned long i = ulongval ();
31469       if (i != ((long) (sizeof (wint_t))))
31470         exit (1);
31471       fprintf (f, "%lu\n", i);
31472     }
31473   exit (ferror (f) || fclose (f) != 0);
31474
31475   ;
31476   return 0;
31477 }
31478 _ACEOF
31479 rm -f conftest$ac_exeext
31480 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31481   (eval $ac_link) 2>&5
31482   ac_status=$?
31483   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31484   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31485   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31486   (eval $ac_try) 2>&5
31487   ac_status=$?
31488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31489   (exit $ac_status); }; }; then
31490   ac_cv_sizeof_wint_t=`cat conftest.val`
31491 else
31492   echo "$as_me: program exited with status $ac_status" >&5
31493 echo "$as_me: failed program was:" >&5
31494 sed 's/^/| /' conftest.$ac_ext >&5
31495
31496 ( exit $ac_status )
31497 { { echo "$as_me:$LINENO: error: cannot compute sizeof (wint_t), 77
31498 See \`config.log' for more details." >&5
31499 echo "$as_me: error: cannot compute sizeof (wint_t), 77
31500 See \`config.log' for more details." >&2;}
31501    { (exit 1); exit 1; }; }
31502 fi
31503 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31504 fi
31505 fi
31506 rm -f conftest.val
31507 else
31508   ac_cv_sizeof_wint_t=0
31509 fi
31510 fi
31511 echo "$as_me:$LINENO: result: $ac_cv_sizeof_wint_t" >&5
31512 echo "${ECHO_T}$ac_cv_sizeof_wint_t" >&6
31513 cat >>confdefs.h <<_ACEOF
31514 #define SIZEOF_WINT_T $ac_cv_sizeof_wint_t
31515 _ACEOF
31516
31517
31518                 echo "$as_me:$LINENO: checking for uniquely sized wint_t" >&5
31519 echo $ECHO_N "checking for uniquely sized wint_t... $ECHO_C" >&6
31520 if test "${ccvs_cv_unique_int_type_wint_t+set}" = set; then
31521   echo $ECHO_N "(cached) $ECHO_C" >&6
31522 else
31523   if set |grep ^ccvs_cv_unique_int_type_ \
31524                                 |grep "($ac_cv_sizeof_wint_t)" >/dev/null ; then
31525                                 ccvs_cv_unique_int_type_wint_t=no
31526                         else
31527                                 ccvs_cv_unique_int_type_wint_t=yes\($ac_cv_sizeof_wint_t\)
31528                         fi
31529 fi
31530 echo "$as_me:$LINENO: result: $ccvs_cv_unique_int_type_wint_t" >&5
31531 echo "${ECHO_T}$ccvs_cv_unique_int_type_wint_t" >&6
31532                 if test $ccvs_cv_unique_int_type_wint_t != no ; then
31533
31534 cat >>confdefs.h <<\_ACEOF
31535 #define UNIQUE_INT_TYPE_WINT_T 1
31536 _ACEOF
31537
31538                 fi
31539         fi
31540         if test $gt_cv_c_intmax_t != no; then
31541                 echo "$as_me:$LINENO: checking for intmax_t" >&5
31542 echo $ECHO_N "checking for intmax_t... $ECHO_C" >&6
31543 if test "${ac_cv_type_intmax_t+set}" = set; then
31544   echo $ECHO_N "(cached) $ECHO_C" >&6
31545 else
31546   cat >conftest.$ac_ext <<_ACEOF
31547 /* confdefs.h.  */
31548 _ACEOF
31549 cat confdefs.h >>conftest.$ac_ext
31550 cat >>conftest.$ac_ext <<_ACEOF
31551 /* end confdefs.h.  */
31552 #include <stdio.h>
31553 #ifdef HAVE_INTTYPES_H
31554 #include <inttypes.h>
31555 #else
31556 #ifdef HAVE_STDINT_H
31557 #include <stdint.h>
31558 #endif
31559 #endif
31560
31561
31562 int
31563 main ()
31564 {
31565 if ((intmax_t *) 0)
31566   return 0;
31567 if (sizeof (intmax_t))
31568   return 0;
31569   ;
31570   return 0;
31571 }
31572 _ACEOF
31573 rm -f conftest.$ac_objext
31574 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31575   (eval $ac_compile) 2>conftest.er1
31576   ac_status=$?
31577   grep -v '^ *+' conftest.er1 >conftest.err
31578   rm -f conftest.er1
31579   cat conftest.err >&5
31580   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31581   (exit $ac_status); } &&
31582          { ac_try='test -z "$ac_c_werror_flag"
31583                          || test ! -s conftest.err'
31584   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31585   (eval $ac_try) 2>&5
31586   ac_status=$?
31587   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31588   (exit $ac_status); }; } &&
31589          { ac_try='test -s conftest.$ac_objext'
31590   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31591   (eval $ac_try) 2>&5
31592   ac_status=$?
31593   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31594   (exit $ac_status); }; }; then
31595   ac_cv_type_intmax_t=yes
31596 else
31597   echo "$as_me: failed program was:" >&5
31598 sed 's/^/| /' conftest.$ac_ext >&5
31599
31600 ac_cv_type_intmax_t=no
31601 fi
31602 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31603 fi
31604 echo "$as_me:$LINENO: result: $ac_cv_type_intmax_t" >&5
31605 echo "${ECHO_T}$ac_cv_type_intmax_t" >&6
31606
31607 echo "$as_me:$LINENO: checking size of intmax_t" >&5
31608 echo $ECHO_N "checking size of intmax_t... $ECHO_C" >&6
31609 if test "${ac_cv_sizeof_intmax_t+set}" = set; then
31610   echo $ECHO_N "(cached) $ECHO_C" >&6
31611 else
31612   if test "$ac_cv_type_intmax_t" = yes; then
31613   # The cast to unsigned long works around a bug in the HP C Compiler
31614   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
31615   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
31616   # This bug is HP SR number 8606223364.
31617   if test "$cross_compiling" = yes; then
31618   # Depending upon the size, compute the lo and hi bounds.
31619 cat >conftest.$ac_ext <<_ACEOF
31620 /* confdefs.h.  */
31621 _ACEOF
31622 cat confdefs.h >>conftest.$ac_ext
31623 cat >>conftest.$ac_ext <<_ACEOF
31624 /* end confdefs.h.  */
31625 #include <stdio.h>
31626 #ifdef HAVE_INTTYPES_H
31627 #include <inttypes.h>
31628 #else
31629 #ifdef HAVE_STDINT_H
31630 #include <stdint.h>
31631 #endif
31632 #endif
31633
31634
31635 int
31636 main ()
31637 {
31638 static int test_array [1 - 2 * !(((long) (sizeof (intmax_t))) >= 0)];
31639 test_array [0] = 0
31640
31641   ;
31642   return 0;
31643 }
31644 _ACEOF
31645 rm -f conftest.$ac_objext
31646 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31647   (eval $ac_compile) 2>conftest.er1
31648   ac_status=$?
31649   grep -v '^ *+' conftest.er1 >conftest.err
31650   rm -f conftest.er1
31651   cat conftest.err >&5
31652   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31653   (exit $ac_status); } &&
31654          { ac_try='test -z "$ac_c_werror_flag"
31655                          || test ! -s conftest.err'
31656   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31657   (eval $ac_try) 2>&5
31658   ac_status=$?
31659   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31660   (exit $ac_status); }; } &&
31661          { ac_try='test -s conftest.$ac_objext'
31662   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31663   (eval $ac_try) 2>&5
31664   ac_status=$?
31665   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31666   (exit $ac_status); }; }; then
31667   ac_lo=0 ac_mid=0
31668   while :; do
31669     cat >conftest.$ac_ext <<_ACEOF
31670 /* confdefs.h.  */
31671 _ACEOF
31672 cat confdefs.h >>conftest.$ac_ext
31673 cat >>conftest.$ac_ext <<_ACEOF
31674 /* end confdefs.h.  */
31675 #include <stdio.h>
31676 #ifdef HAVE_INTTYPES_H
31677 #include <inttypes.h>
31678 #else
31679 #ifdef HAVE_STDINT_H
31680 #include <stdint.h>
31681 #endif
31682 #endif
31683
31684
31685 int
31686 main ()
31687 {
31688 static int test_array [1 - 2 * !(((long) (sizeof (intmax_t))) <= $ac_mid)];
31689 test_array [0] = 0
31690
31691   ;
31692   return 0;
31693 }
31694 _ACEOF
31695 rm -f conftest.$ac_objext
31696 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31697   (eval $ac_compile) 2>conftest.er1
31698   ac_status=$?
31699   grep -v '^ *+' conftest.er1 >conftest.err
31700   rm -f conftest.er1
31701   cat conftest.err >&5
31702   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31703   (exit $ac_status); } &&
31704          { ac_try='test -z "$ac_c_werror_flag"
31705                          || test ! -s conftest.err'
31706   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31707   (eval $ac_try) 2>&5
31708   ac_status=$?
31709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31710   (exit $ac_status); }; } &&
31711          { ac_try='test -s conftest.$ac_objext'
31712   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31713   (eval $ac_try) 2>&5
31714   ac_status=$?
31715   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31716   (exit $ac_status); }; }; then
31717   ac_hi=$ac_mid; break
31718 else
31719   echo "$as_me: failed program was:" >&5
31720 sed 's/^/| /' conftest.$ac_ext >&5
31721
31722 ac_lo=`expr $ac_mid + 1`
31723                     if test $ac_lo -le $ac_mid; then
31724                       ac_lo= ac_hi=
31725                       break
31726                     fi
31727                     ac_mid=`expr 2 '*' $ac_mid + 1`
31728 fi
31729 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31730   done
31731 else
31732   echo "$as_me: failed program was:" >&5
31733 sed 's/^/| /' conftest.$ac_ext >&5
31734
31735 cat >conftest.$ac_ext <<_ACEOF
31736 /* confdefs.h.  */
31737 _ACEOF
31738 cat confdefs.h >>conftest.$ac_ext
31739 cat >>conftest.$ac_ext <<_ACEOF
31740 /* end confdefs.h.  */
31741 #include <stdio.h>
31742 #ifdef HAVE_INTTYPES_H
31743 #include <inttypes.h>
31744 #else
31745 #ifdef HAVE_STDINT_H
31746 #include <stdint.h>
31747 #endif
31748 #endif
31749
31750
31751 int
31752 main ()
31753 {
31754 static int test_array [1 - 2 * !(((long) (sizeof (intmax_t))) < 0)];
31755 test_array [0] = 0
31756
31757   ;
31758   return 0;
31759 }
31760 _ACEOF
31761 rm -f conftest.$ac_objext
31762 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31763   (eval $ac_compile) 2>conftest.er1
31764   ac_status=$?
31765   grep -v '^ *+' conftest.er1 >conftest.err
31766   rm -f conftest.er1
31767   cat conftest.err >&5
31768   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31769   (exit $ac_status); } &&
31770          { ac_try='test -z "$ac_c_werror_flag"
31771                          || test ! -s conftest.err'
31772   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31773   (eval $ac_try) 2>&5
31774   ac_status=$?
31775   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31776   (exit $ac_status); }; } &&
31777          { ac_try='test -s conftest.$ac_objext'
31778   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31779   (eval $ac_try) 2>&5
31780   ac_status=$?
31781   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31782   (exit $ac_status); }; }; then
31783   ac_hi=-1 ac_mid=-1
31784   while :; do
31785     cat >conftest.$ac_ext <<_ACEOF
31786 /* confdefs.h.  */
31787 _ACEOF
31788 cat confdefs.h >>conftest.$ac_ext
31789 cat >>conftest.$ac_ext <<_ACEOF
31790 /* end confdefs.h.  */
31791 #include <stdio.h>
31792 #ifdef HAVE_INTTYPES_H
31793 #include <inttypes.h>
31794 #else
31795 #ifdef HAVE_STDINT_H
31796 #include <stdint.h>
31797 #endif
31798 #endif
31799
31800
31801 int
31802 main ()
31803 {
31804 static int test_array [1 - 2 * !(((long) (sizeof (intmax_t))) >= $ac_mid)];
31805 test_array [0] = 0
31806
31807   ;
31808   return 0;
31809 }
31810 _ACEOF
31811 rm -f conftest.$ac_objext
31812 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31813   (eval $ac_compile) 2>conftest.er1
31814   ac_status=$?
31815   grep -v '^ *+' conftest.er1 >conftest.err
31816   rm -f conftest.er1
31817   cat conftest.err >&5
31818   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31819   (exit $ac_status); } &&
31820          { ac_try='test -z "$ac_c_werror_flag"
31821                          || test ! -s conftest.err'
31822   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31823   (eval $ac_try) 2>&5
31824   ac_status=$?
31825   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31826   (exit $ac_status); }; } &&
31827          { ac_try='test -s conftest.$ac_objext'
31828   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31829   (eval $ac_try) 2>&5
31830   ac_status=$?
31831   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31832   (exit $ac_status); }; }; then
31833   ac_lo=$ac_mid; break
31834 else
31835   echo "$as_me: failed program was:" >&5
31836 sed 's/^/| /' conftest.$ac_ext >&5
31837
31838 ac_hi=`expr '(' $ac_mid ')' - 1`
31839                        if test $ac_mid -le $ac_hi; then
31840                          ac_lo= ac_hi=
31841                          break
31842                        fi
31843                        ac_mid=`expr 2 '*' $ac_mid`
31844 fi
31845 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31846   done
31847 else
31848   echo "$as_me: failed program was:" >&5
31849 sed 's/^/| /' conftest.$ac_ext >&5
31850
31851 ac_lo= ac_hi=
31852 fi
31853 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31854 fi
31855 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31856 # Binary search between lo and hi bounds.
31857 while test "x$ac_lo" != "x$ac_hi"; do
31858   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
31859   cat >conftest.$ac_ext <<_ACEOF
31860 /* confdefs.h.  */
31861 _ACEOF
31862 cat confdefs.h >>conftest.$ac_ext
31863 cat >>conftest.$ac_ext <<_ACEOF
31864 /* end confdefs.h.  */
31865 #include <stdio.h>
31866 #ifdef HAVE_INTTYPES_H
31867 #include <inttypes.h>
31868 #else
31869 #ifdef HAVE_STDINT_H
31870 #include <stdint.h>
31871 #endif
31872 #endif
31873
31874
31875 int
31876 main ()
31877 {
31878 static int test_array [1 - 2 * !(((long) (sizeof (intmax_t))) <= $ac_mid)];
31879 test_array [0] = 0
31880
31881   ;
31882   return 0;
31883 }
31884 _ACEOF
31885 rm -f conftest.$ac_objext
31886 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31887   (eval $ac_compile) 2>conftest.er1
31888   ac_status=$?
31889   grep -v '^ *+' conftest.er1 >conftest.err
31890   rm -f conftest.er1
31891   cat conftest.err >&5
31892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31893   (exit $ac_status); } &&
31894          { ac_try='test -z "$ac_c_werror_flag"
31895                          || test ! -s conftest.err'
31896   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31897   (eval $ac_try) 2>&5
31898   ac_status=$?
31899   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31900   (exit $ac_status); }; } &&
31901          { ac_try='test -s conftest.$ac_objext'
31902   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31903   (eval $ac_try) 2>&5
31904   ac_status=$?
31905   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31906   (exit $ac_status); }; }; then
31907   ac_hi=$ac_mid
31908 else
31909   echo "$as_me: failed program was:" >&5
31910 sed 's/^/| /' conftest.$ac_ext >&5
31911
31912 ac_lo=`expr '(' $ac_mid ')' + 1`
31913 fi
31914 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31915 done
31916 case $ac_lo in
31917 ?*) ac_cv_sizeof_intmax_t=$ac_lo;;
31918 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (intmax_t), 77
31919 See \`config.log' for more details." >&5
31920 echo "$as_me: error: cannot compute sizeof (intmax_t), 77
31921 See \`config.log' for more details." >&2;}
31922    { (exit 1); exit 1; }; } ;;
31923 esac
31924 else
31925   if test "$cross_compiling" = yes; then
31926   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
31927 See \`config.log' for more details." >&5
31928 echo "$as_me: error: cannot run test program while cross compiling
31929 See \`config.log' for more details." >&2;}
31930    { (exit 1); exit 1; }; }
31931 else
31932   cat >conftest.$ac_ext <<_ACEOF
31933 /* confdefs.h.  */
31934 _ACEOF
31935 cat confdefs.h >>conftest.$ac_ext
31936 cat >>conftest.$ac_ext <<_ACEOF
31937 /* end confdefs.h.  */
31938 #include <stdio.h>
31939 #ifdef HAVE_INTTYPES_H
31940 #include <inttypes.h>
31941 #else
31942 #ifdef HAVE_STDINT_H
31943 #include <stdint.h>
31944 #endif
31945 #endif
31946
31947
31948 long longval () { return (long) (sizeof (intmax_t)); }
31949 unsigned long ulongval () { return (long) (sizeof (intmax_t)); }
31950 #include <stdio.h>
31951 #include <stdlib.h>
31952 int
31953 main ()
31954 {
31955
31956   FILE *f = fopen ("conftest.val", "w");
31957   if (! f)
31958     exit (1);
31959   if (((long) (sizeof (intmax_t))) < 0)
31960     {
31961       long i = longval ();
31962       if (i != ((long) (sizeof (intmax_t))))
31963         exit (1);
31964       fprintf (f, "%ld\n", i);
31965     }
31966   else
31967     {
31968       unsigned long i = ulongval ();
31969       if (i != ((long) (sizeof (intmax_t))))
31970         exit (1);
31971       fprintf (f, "%lu\n", i);
31972     }
31973   exit (ferror (f) || fclose (f) != 0);
31974
31975   ;
31976   return 0;
31977 }
31978 _ACEOF
31979 rm -f conftest$ac_exeext
31980 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31981   (eval $ac_link) 2>&5
31982   ac_status=$?
31983   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31984   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31985   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31986   (eval $ac_try) 2>&5
31987   ac_status=$?
31988   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31989   (exit $ac_status); }; }; then
31990   ac_cv_sizeof_intmax_t=`cat conftest.val`
31991 else
31992   echo "$as_me: program exited with status $ac_status" >&5
31993 echo "$as_me: failed program was:" >&5
31994 sed 's/^/| /' conftest.$ac_ext >&5
31995
31996 ( exit $ac_status )
31997 { { echo "$as_me:$LINENO: error: cannot compute sizeof (intmax_t), 77
31998 See \`config.log' for more details." >&5
31999 echo "$as_me: error: cannot compute sizeof (intmax_t), 77
32000 See \`config.log' for more details." >&2;}
32001    { (exit 1); exit 1; }; }
32002 fi
32003 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
32004 fi
32005 fi
32006 rm -f conftest.val
32007 else
32008   ac_cv_sizeof_intmax_t=0
32009 fi
32010 fi
32011 echo "$as_me:$LINENO: result: $ac_cv_sizeof_intmax_t" >&5
32012 echo "${ECHO_T}$ac_cv_sizeof_intmax_t" >&6
32013 cat >>confdefs.h <<_ACEOF
32014 #define SIZEOF_INTMAX_T $ac_cv_sizeof_intmax_t
32015 _ACEOF
32016
32017
32018                 echo "$as_me:$LINENO: checking for uniquely sized intmax_t" >&5
32019 echo $ECHO_N "checking for uniquely sized intmax_t... $ECHO_C" >&6
32020 if test "${ccvs_cv_unique_int_type_intmax_t+set}" = set; then
32021   echo $ECHO_N "(cached) $ECHO_C" >&6
32022 else
32023   if set |grep ^ccvs_cv_unique_int_type_ \
32024                                 |grep "($ac_cv_sizeof_intmax_t)" >/dev/null ; then
32025                                 ccvs_cv_unique_int_type_intmax_t=no
32026                         else
32027                                 ccvs_cv_unique_int_type_intmax_t=yes\($ac_cv_sizeof_intmax_t\)
32028                         fi
32029 fi
32030 echo "$as_me:$LINENO: result: $ccvs_cv_unique_int_type_intmax_t" >&5
32031 echo "${ECHO_T}$ccvs_cv_unique_int_type_intmax_t" >&6
32032                 if test $ccvs_cv_unique_int_type_intmax_t != no ; then
32033
32034 cat >>confdefs.h <<\_ACEOF
32035 #define UNIQUE_INT_TYPE_INTMAX_T 1
32036 _ACEOF
32037
32038                 fi
32039         fi
32040
32041                                 echo "$as_me:$LINENO: checking for float" >&5
32042 echo $ECHO_N "checking for float... $ECHO_C" >&6
32043 if test "${ac_cv_type_float+set}" = set; then
32044   echo $ECHO_N "(cached) $ECHO_C" >&6
32045 else
32046   cat >conftest.$ac_ext <<_ACEOF
32047 /* confdefs.h.  */
32048 _ACEOF
32049 cat confdefs.h >>conftest.$ac_ext
32050 cat >>conftest.$ac_ext <<_ACEOF
32051 /* end confdefs.h.  */
32052 $ac_includes_default
32053 int
32054 main ()
32055 {
32056 if ((float *) 0)
32057   return 0;
32058 if (sizeof (float))
32059   return 0;
32060   ;
32061   return 0;
32062 }
32063 _ACEOF
32064 rm -f conftest.$ac_objext
32065 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32066   (eval $ac_compile) 2>conftest.er1
32067   ac_status=$?
32068   grep -v '^ *+' conftest.er1 >conftest.err
32069   rm -f conftest.er1
32070   cat conftest.err >&5
32071   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32072   (exit $ac_status); } &&
32073          { ac_try='test -z "$ac_c_werror_flag"
32074                          || test ! -s conftest.err'
32075   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32076   (eval $ac_try) 2>&5
32077   ac_status=$?
32078   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32079   (exit $ac_status); }; } &&
32080          { ac_try='test -s conftest.$ac_objext'
32081   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32082   (eval $ac_try) 2>&5
32083   ac_status=$?
32084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32085   (exit $ac_status); }; }; then
32086   ac_cv_type_float=yes
32087 else
32088   echo "$as_me: failed program was:" >&5
32089 sed 's/^/| /' conftest.$ac_ext >&5
32090
32091 ac_cv_type_float=no
32092 fi
32093 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32094 fi
32095 echo "$as_me:$LINENO: result: $ac_cv_type_float" >&5
32096 echo "${ECHO_T}$ac_cv_type_float" >&6
32097
32098 echo "$as_me:$LINENO: checking size of float" >&5
32099 echo $ECHO_N "checking size of float... $ECHO_C" >&6
32100 if test "${ac_cv_sizeof_float+set}" = set; then
32101   echo $ECHO_N "(cached) $ECHO_C" >&6
32102 else
32103   if test "$ac_cv_type_float" = yes; then
32104   # The cast to unsigned long works around a bug in the HP C Compiler
32105   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
32106   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
32107   # This bug is HP SR number 8606223364.
32108   if test "$cross_compiling" = yes; then
32109   # Depending upon the size, compute the lo and hi bounds.
32110 cat >conftest.$ac_ext <<_ACEOF
32111 /* confdefs.h.  */
32112 _ACEOF
32113 cat confdefs.h >>conftest.$ac_ext
32114 cat >>conftest.$ac_ext <<_ACEOF
32115 /* end confdefs.h.  */
32116 $ac_includes_default
32117 int
32118 main ()
32119 {
32120 static int test_array [1 - 2 * !(((long) (sizeof (float))) >= 0)];
32121 test_array [0] = 0
32122
32123   ;
32124   return 0;
32125 }
32126 _ACEOF
32127 rm -f conftest.$ac_objext
32128 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32129   (eval $ac_compile) 2>conftest.er1
32130   ac_status=$?
32131   grep -v '^ *+' conftest.er1 >conftest.err
32132   rm -f conftest.er1
32133   cat conftest.err >&5
32134   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32135   (exit $ac_status); } &&
32136          { ac_try='test -z "$ac_c_werror_flag"
32137                          || test ! -s conftest.err'
32138   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32139   (eval $ac_try) 2>&5
32140   ac_status=$?
32141   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32142   (exit $ac_status); }; } &&
32143          { ac_try='test -s conftest.$ac_objext'
32144   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32145   (eval $ac_try) 2>&5
32146   ac_status=$?
32147   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32148   (exit $ac_status); }; }; then
32149   ac_lo=0 ac_mid=0
32150   while :; do
32151     cat >conftest.$ac_ext <<_ACEOF
32152 /* confdefs.h.  */
32153 _ACEOF
32154 cat confdefs.h >>conftest.$ac_ext
32155 cat >>conftest.$ac_ext <<_ACEOF
32156 /* end confdefs.h.  */
32157 $ac_includes_default
32158 int
32159 main ()
32160 {
32161 static int test_array [1 - 2 * !(((long) (sizeof (float))) <= $ac_mid)];
32162 test_array [0] = 0
32163
32164   ;
32165   return 0;
32166 }
32167 _ACEOF
32168 rm -f conftest.$ac_objext
32169 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32170   (eval $ac_compile) 2>conftest.er1
32171   ac_status=$?
32172   grep -v '^ *+' conftest.er1 >conftest.err
32173   rm -f conftest.er1
32174   cat conftest.err >&5
32175   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32176   (exit $ac_status); } &&
32177          { ac_try='test -z "$ac_c_werror_flag"
32178                          || test ! -s conftest.err'
32179   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32180   (eval $ac_try) 2>&5
32181   ac_status=$?
32182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32183   (exit $ac_status); }; } &&
32184          { ac_try='test -s conftest.$ac_objext'
32185   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32186   (eval $ac_try) 2>&5
32187   ac_status=$?
32188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32189   (exit $ac_status); }; }; then
32190   ac_hi=$ac_mid; break
32191 else
32192   echo "$as_me: failed program was:" >&5
32193 sed 's/^/| /' conftest.$ac_ext >&5
32194
32195 ac_lo=`expr $ac_mid + 1`
32196                     if test $ac_lo -le $ac_mid; then
32197                       ac_lo= ac_hi=
32198                       break
32199                     fi
32200                     ac_mid=`expr 2 '*' $ac_mid + 1`
32201 fi
32202 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32203   done
32204 else
32205   echo "$as_me: failed program was:" >&5
32206 sed 's/^/| /' conftest.$ac_ext >&5
32207
32208 cat >conftest.$ac_ext <<_ACEOF
32209 /* confdefs.h.  */
32210 _ACEOF
32211 cat confdefs.h >>conftest.$ac_ext
32212 cat >>conftest.$ac_ext <<_ACEOF
32213 /* end confdefs.h.  */
32214 $ac_includes_default
32215 int
32216 main ()
32217 {
32218 static int test_array [1 - 2 * !(((long) (sizeof (float))) < 0)];
32219 test_array [0] = 0
32220
32221   ;
32222   return 0;
32223 }
32224 _ACEOF
32225 rm -f conftest.$ac_objext
32226 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32227   (eval $ac_compile) 2>conftest.er1
32228   ac_status=$?
32229   grep -v '^ *+' conftest.er1 >conftest.err
32230   rm -f conftest.er1
32231   cat conftest.err >&5
32232   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32233   (exit $ac_status); } &&
32234          { ac_try='test -z "$ac_c_werror_flag"
32235                          || test ! -s conftest.err'
32236   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32237   (eval $ac_try) 2>&5
32238   ac_status=$?
32239   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32240   (exit $ac_status); }; } &&
32241          { ac_try='test -s conftest.$ac_objext'
32242   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32243   (eval $ac_try) 2>&5
32244   ac_status=$?
32245   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32246   (exit $ac_status); }; }; then
32247   ac_hi=-1 ac_mid=-1
32248   while :; do
32249     cat >conftest.$ac_ext <<_ACEOF
32250 /* confdefs.h.  */
32251 _ACEOF
32252 cat confdefs.h >>conftest.$ac_ext
32253 cat >>conftest.$ac_ext <<_ACEOF
32254 /* end confdefs.h.  */
32255 $ac_includes_default
32256 int
32257 main ()
32258 {
32259 static int test_array [1 - 2 * !(((long) (sizeof (float))) >= $ac_mid)];
32260 test_array [0] = 0
32261
32262   ;
32263   return 0;
32264 }
32265 _ACEOF
32266 rm -f conftest.$ac_objext
32267 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32268   (eval $ac_compile) 2>conftest.er1
32269   ac_status=$?
32270   grep -v '^ *+' conftest.er1 >conftest.err
32271   rm -f conftest.er1
32272   cat conftest.err >&5
32273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32274   (exit $ac_status); } &&
32275          { ac_try='test -z "$ac_c_werror_flag"
32276                          || test ! -s conftest.err'
32277   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32278   (eval $ac_try) 2>&5
32279   ac_status=$?
32280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32281   (exit $ac_status); }; } &&
32282          { ac_try='test -s conftest.$ac_objext'
32283   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32284   (eval $ac_try) 2>&5
32285   ac_status=$?
32286   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32287   (exit $ac_status); }; }; then
32288   ac_lo=$ac_mid; break
32289 else
32290   echo "$as_me: failed program was:" >&5
32291 sed 's/^/| /' conftest.$ac_ext >&5
32292
32293 ac_hi=`expr '(' $ac_mid ')' - 1`
32294                        if test $ac_mid -le $ac_hi; then
32295                          ac_lo= ac_hi=
32296                          break
32297                        fi
32298                        ac_mid=`expr 2 '*' $ac_mid`
32299 fi
32300 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32301   done
32302 else
32303   echo "$as_me: failed program was:" >&5
32304 sed 's/^/| /' conftest.$ac_ext >&5
32305
32306 ac_lo= ac_hi=
32307 fi
32308 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32309 fi
32310 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32311 # Binary search between lo and hi bounds.
32312 while test "x$ac_lo" != "x$ac_hi"; do
32313   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
32314   cat >conftest.$ac_ext <<_ACEOF
32315 /* confdefs.h.  */
32316 _ACEOF
32317 cat confdefs.h >>conftest.$ac_ext
32318 cat >>conftest.$ac_ext <<_ACEOF
32319 /* end confdefs.h.  */
32320 $ac_includes_default
32321 int
32322 main ()
32323 {
32324 static int test_array [1 - 2 * !(((long) (sizeof (float))) <= $ac_mid)];
32325 test_array [0] = 0
32326
32327   ;
32328   return 0;
32329 }
32330 _ACEOF
32331 rm -f conftest.$ac_objext
32332 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32333   (eval $ac_compile) 2>conftest.er1
32334   ac_status=$?
32335   grep -v '^ *+' conftest.er1 >conftest.err
32336   rm -f conftest.er1
32337   cat conftest.err >&5
32338   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32339   (exit $ac_status); } &&
32340          { ac_try='test -z "$ac_c_werror_flag"
32341                          || test ! -s conftest.err'
32342   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32343   (eval $ac_try) 2>&5
32344   ac_status=$?
32345   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32346   (exit $ac_status); }; } &&
32347          { ac_try='test -s conftest.$ac_objext'
32348   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32349   (eval $ac_try) 2>&5
32350   ac_status=$?
32351   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32352   (exit $ac_status); }; }; then
32353   ac_hi=$ac_mid
32354 else
32355   echo "$as_me: failed program was:" >&5
32356 sed 's/^/| /' conftest.$ac_ext >&5
32357
32358 ac_lo=`expr '(' $ac_mid ')' + 1`
32359 fi
32360 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32361 done
32362 case $ac_lo in
32363 ?*) ac_cv_sizeof_float=$ac_lo;;
32364 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (float), 77
32365 See \`config.log' for more details." >&5
32366 echo "$as_me: error: cannot compute sizeof (float), 77
32367 See \`config.log' for more details." >&2;}
32368    { (exit 1); exit 1; }; } ;;
32369 esac
32370 else
32371   if test "$cross_compiling" = yes; then
32372   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
32373 See \`config.log' for more details." >&5
32374 echo "$as_me: error: cannot run test program while cross compiling
32375 See \`config.log' for more details." >&2;}
32376    { (exit 1); exit 1; }; }
32377 else
32378   cat >conftest.$ac_ext <<_ACEOF
32379 /* confdefs.h.  */
32380 _ACEOF
32381 cat confdefs.h >>conftest.$ac_ext
32382 cat >>conftest.$ac_ext <<_ACEOF
32383 /* end confdefs.h.  */
32384 $ac_includes_default
32385 long longval () { return (long) (sizeof (float)); }
32386 unsigned long ulongval () { return (long) (sizeof (float)); }
32387 #include <stdio.h>
32388 #include <stdlib.h>
32389 int
32390 main ()
32391 {
32392
32393   FILE *f = fopen ("conftest.val", "w");
32394   if (! f)
32395     exit (1);
32396   if (((long) (sizeof (float))) < 0)
32397     {
32398       long i = longval ();
32399       if (i != ((long) (sizeof (float))))
32400         exit (1);
32401       fprintf (f, "%ld\n", i);
32402     }
32403   else
32404     {
32405       unsigned long i = ulongval ();
32406       if (i != ((long) (sizeof (float))))
32407         exit (1);
32408       fprintf (f, "%lu\n", i);
32409     }
32410   exit (ferror (f) || fclose (f) != 0);
32411
32412   ;
32413   return 0;
32414 }
32415 _ACEOF
32416 rm -f conftest$ac_exeext
32417 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32418   (eval $ac_link) 2>&5
32419   ac_status=$?
32420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32421   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
32422   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32423   (eval $ac_try) 2>&5
32424   ac_status=$?
32425   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32426   (exit $ac_status); }; }; then
32427   ac_cv_sizeof_float=`cat conftest.val`
32428 else
32429   echo "$as_me: program exited with status $ac_status" >&5
32430 echo "$as_me: failed program was:" >&5
32431 sed 's/^/| /' conftest.$ac_ext >&5
32432
32433 ( exit $ac_status )
32434 { { echo "$as_me:$LINENO: error: cannot compute sizeof (float), 77
32435 See \`config.log' for more details." >&5
32436 echo "$as_me: error: cannot compute sizeof (float), 77
32437 See \`config.log' for more details." >&2;}
32438    { (exit 1); exit 1; }; }
32439 fi
32440 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
32441 fi
32442 fi
32443 rm -f conftest.val
32444 else
32445   ac_cv_sizeof_float=0
32446 fi
32447 fi
32448 echo "$as_me:$LINENO: result: $ac_cv_sizeof_float" >&5
32449 echo "${ECHO_T}$ac_cv_sizeof_float" >&6
32450 cat >>confdefs.h <<_ACEOF
32451 #define SIZEOF_FLOAT $ac_cv_sizeof_float
32452 _ACEOF
32453
32454
32455         echo "$as_me:$LINENO: checking for uniquely sized float" >&5
32456 echo $ECHO_N "checking for uniquely sized float... $ECHO_C" >&6
32457 if test "${ccvs_cv_unique_float_type_float+set}" = set; then
32458   echo $ECHO_N "(cached) $ECHO_C" >&6
32459 else
32460   if set |grep ^ccvs_cv_unique_float_type_ \
32461                         |grep "($ac_cv_sizeof_float)" >/dev/null ; then
32462                         ccvs_cv_unique_float_type_float=no
32463                 else
32464                         ccvs_cv_unique_float_type_float=yes\($ac_cv_sizeof_float\)
32465                 fi
32466 fi
32467 echo "$as_me:$LINENO: result: $ccvs_cv_unique_float_type_float" >&5
32468 echo "${ECHO_T}$ccvs_cv_unique_float_type_float" >&6
32469         if test $ccvs_cv_unique_float_type_float != no ; then
32470
32471 cat >>confdefs.h <<\_ACEOF
32472 #define UNIQUE_FLOAT_TYPE_FLOAT 1
32473 _ACEOF
32474
32475         fi
32476         echo "$as_me:$LINENO: checking for double" >&5
32477 echo $ECHO_N "checking for double... $ECHO_C" >&6
32478 if test "${ac_cv_type_double+set}" = set; then
32479   echo $ECHO_N "(cached) $ECHO_C" >&6
32480 else
32481   cat >conftest.$ac_ext <<_ACEOF
32482 /* confdefs.h.  */
32483 _ACEOF
32484 cat confdefs.h >>conftest.$ac_ext
32485 cat >>conftest.$ac_ext <<_ACEOF
32486 /* end confdefs.h.  */
32487 $ac_includes_default
32488 int
32489 main ()
32490 {
32491 if ((double *) 0)
32492   return 0;
32493 if (sizeof (double))
32494   return 0;
32495   ;
32496   return 0;
32497 }
32498 _ACEOF
32499 rm -f conftest.$ac_objext
32500 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32501   (eval $ac_compile) 2>conftest.er1
32502   ac_status=$?
32503   grep -v '^ *+' conftest.er1 >conftest.err
32504   rm -f conftest.er1
32505   cat conftest.err >&5
32506   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32507   (exit $ac_status); } &&
32508          { ac_try='test -z "$ac_c_werror_flag"
32509                          || test ! -s conftest.err'
32510   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32511   (eval $ac_try) 2>&5
32512   ac_status=$?
32513   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32514   (exit $ac_status); }; } &&
32515          { ac_try='test -s conftest.$ac_objext'
32516   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32517   (eval $ac_try) 2>&5
32518   ac_status=$?
32519   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32520   (exit $ac_status); }; }; then
32521   ac_cv_type_double=yes
32522 else
32523   echo "$as_me: failed program was:" >&5
32524 sed 's/^/| /' conftest.$ac_ext >&5
32525
32526 ac_cv_type_double=no
32527 fi
32528 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32529 fi
32530 echo "$as_me:$LINENO: result: $ac_cv_type_double" >&5
32531 echo "${ECHO_T}$ac_cv_type_double" >&6
32532
32533 echo "$as_me:$LINENO: checking size of double" >&5
32534 echo $ECHO_N "checking size of double... $ECHO_C" >&6
32535 if test "${ac_cv_sizeof_double+set}" = set; then
32536   echo $ECHO_N "(cached) $ECHO_C" >&6
32537 else
32538   if test "$ac_cv_type_double" = yes; then
32539   # The cast to unsigned long works around a bug in the HP C Compiler
32540   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
32541   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
32542   # This bug is HP SR number 8606223364.
32543   if test "$cross_compiling" = yes; then
32544   # Depending upon the size, compute the lo and hi bounds.
32545 cat >conftest.$ac_ext <<_ACEOF
32546 /* confdefs.h.  */
32547 _ACEOF
32548 cat confdefs.h >>conftest.$ac_ext
32549 cat >>conftest.$ac_ext <<_ACEOF
32550 /* end confdefs.h.  */
32551 $ac_includes_default
32552 int
32553 main ()
32554 {
32555 static int test_array [1 - 2 * !(((long) (sizeof (double))) >= 0)];
32556 test_array [0] = 0
32557
32558   ;
32559   return 0;
32560 }
32561 _ACEOF
32562 rm -f conftest.$ac_objext
32563 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32564   (eval $ac_compile) 2>conftest.er1
32565   ac_status=$?
32566   grep -v '^ *+' conftest.er1 >conftest.err
32567   rm -f conftest.er1
32568   cat conftest.err >&5
32569   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32570   (exit $ac_status); } &&
32571          { ac_try='test -z "$ac_c_werror_flag"
32572                          || test ! -s conftest.err'
32573   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32574   (eval $ac_try) 2>&5
32575   ac_status=$?
32576   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32577   (exit $ac_status); }; } &&
32578          { ac_try='test -s conftest.$ac_objext'
32579   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32580   (eval $ac_try) 2>&5
32581   ac_status=$?
32582   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32583   (exit $ac_status); }; }; then
32584   ac_lo=0 ac_mid=0
32585   while :; do
32586     cat >conftest.$ac_ext <<_ACEOF
32587 /* confdefs.h.  */
32588 _ACEOF
32589 cat confdefs.h >>conftest.$ac_ext
32590 cat >>conftest.$ac_ext <<_ACEOF
32591 /* end confdefs.h.  */
32592 $ac_includes_default
32593 int
32594 main ()
32595 {
32596 static int test_array [1 - 2 * !(((long) (sizeof (double))) <= $ac_mid)];
32597 test_array [0] = 0
32598
32599   ;
32600   return 0;
32601 }
32602 _ACEOF
32603 rm -f conftest.$ac_objext
32604 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32605   (eval $ac_compile) 2>conftest.er1
32606   ac_status=$?
32607   grep -v '^ *+' conftest.er1 >conftest.err
32608   rm -f conftest.er1
32609   cat conftest.err >&5
32610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32611   (exit $ac_status); } &&
32612          { ac_try='test -z "$ac_c_werror_flag"
32613                          || test ! -s conftest.err'
32614   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32615   (eval $ac_try) 2>&5
32616   ac_status=$?
32617   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32618   (exit $ac_status); }; } &&
32619          { ac_try='test -s conftest.$ac_objext'
32620   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32621   (eval $ac_try) 2>&5
32622   ac_status=$?
32623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32624   (exit $ac_status); }; }; then
32625   ac_hi=$ac_mid; break
32626 else
32627   echo "$as_me: failed program was:" >&5
32628 sed 's/^/| /' conftest.$ac_ext >&5
32629
32630 ac_lo=`expr $ac_mid + 1`
32631                     if test $ac_lo -le $ac_mid; then
32632                       ac_lo= ac_hi=
32633                       break
32634                     fi
32635                     ac_mid=`expr 2 '*' $ac_mid + 1`
32636 fi
32637 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32638   done
32639 else
32640   echo "$as_me: failed program was:" >&5
32641 sed 's/^/| /' conftest.$ac_ext >&5
32642
32643 cat >conftest.$ac_ext <<_ACEOF
32644 /* confdefs.h.  */
32645 _ACEOF
32646 cat confdefs.h >>conftest.$ac_ext
32647 cat >>conftest.$ac_ext <<_ACEOF
32648 /* end confdefs.h.  */
32649 $ac_includes_default
32650 int
32651 main ()
32652 {
32653 static int test_array [1 - 2 * !(((long) (sizeof (double))) < 0)];
32654 test_array [0] = 0
32655
32656   ;
32657   return 0;
32658 }
32659 _ACEOF
32660 rm -f conftest.$ac_objext
32661 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32662   (eval $ac_compile) 2>conftest.er1
32663   ac_status=$?
32664   grep -v '^ *+' conftest.er1 >conftest.err
32665   rm -f conftest.er1
32666   cat conftest.err >&5
32667   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32668   (exit $ac_status); } &&
32669          { ac_try='test -z "$ac_c_werror_flag"
32670                          || test ! -s conftest.err'
32671   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32672   (eval $ac_try) 2>&5
32673   ac_status=$?
32674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32675   (exit $ac_status); }; } &&
32676          { ac_try='test -s conftest.$ac_objext'
32677   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32678   (eval $ac_try) 2>&5
32679   ac_status=$?
32680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32681   (exit $ac_status); }; }; then
32682   ac_hi=-1 ac_mid=-1
32683   while :; do
32684     cat >conftest.$ac_ext <<_ACEOF
32685 /* confdefs.h.  */
32686 _ACEOF
32687 cat confdefs.h >>conftest.$ac_ext
32688 cat >>conftest.$ac_ext <<_ACEOF
32689 /* end confdefs.h.  */
32690 $ac_includes_default
32691 int
32692 main ()
32693 {
32694 static int test_array [1 - 2 * !(((long) (sizeof (double))) >= $ac_mid)];
32695 test_array [0] = 0
32696
32697   ;
32698   return 0;
32699 }
32700 _ACEOF
32701 rm -f conftest.$ac_objext
32702 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32703   (eval $ac_compile) 2>conftest.er1
32704   ac_status=$?
32705   grep -v '^ *+' conftest.er1 >conftest.err
32706   rm -f conftest.er1
32707   cat conftest.err >&5
32708   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32709   (exit $ac_status); } &&
32710          { ac_try='test -z "$ac_c_werror_flag"
32711                          || test ! -s conftest.err'
32712   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32713   (eval $ac_try) 2>&5
32714   ac_status=$?
32715   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32716   (exit $ac_status); }; } &&
32717          { ac_try='test -s conftest.$ac_objext'
32718   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32719   (eval $ac_try) 2>&5
32720   ac_status=$?
32721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32722   (exit $ac_status); }; }; then
32723   ac_lo=$ac_mid; break
32724 else
32725   echo "$as_me: failed program was:" >&5
32726 sed 's/^/| /' conftest.$ac_ext >&5
32727
32728 ac_hi=`expr '(' $ac_mid ')' - 1`
32729                        if test $ac_mid -le $ac_hi; then
32730                          ac_lo= ac_hi=
32731                          break
32732                        fi
32733                        ac_mid=`expr 2 '*' $ac_mid`
32734 fi
32735 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32736   done
32737 else
32738   echo "$as_me: failed program was:" >&5
32739 sed 's/^/| /' conftest.$ac_ext >&5
32740
32741 ac_lo= ac_hi=
32742 fi
32743 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32744 fi
32745 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32746 # Binary search between lo and hi bounds.
32747 while test "x$ac_lo" != "x$ac_hi"; do
32748   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
32749   cat >conftest.$ac_ext <<_ACEOF
32750 /* confdefs.h.  */
32751 _ACEOF
32752 cat confdefs.h >>conftest.$ac_ext
32753 cat >>conftest.$ac_ext <<_ACEOF
32754 /* end confdefs.h.  */
32755 $ac_includes_default
32756 int
32757 main ()
32758 {
32759 static int test_array [1 - 2 * !(((long) (sizeof (double))) <= $ac_mid)];
32760 test_array [0] = 0
32761
32762   ;
32763   return 0;
32764 }
32765 _ACEOF
32766 rm -f conftest.$ac_objext
32767 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32768   (eval $ac_compile) 2>conftest.er1
32769   ac_status=$?
32770   grep -v '^ *+' conftest.er1 >conftest.err
32771   rm -f conftest.er1
32772   cat conftest.err >&5
32773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32774   (exit $ac_status); } &&
32775          { ac_try='test -z "$ac_c_werror_flag"
32776                          || test ! -s conftest.err'
32777   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32778   (eval $ac_try) 2>&5
32779   ac_status=$?
32780   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32781   (exit $ac_status); }; } &&
32782          { ac_try='test -s conftest.$ac_objext'
32783   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32784   (eval $ac_try) 2>&5
32785   ac_status=$?
32786   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32787   (exit $ac_status); }; }; then
32788   ac_hi=$ac_mid
32789 else
32790   echo "$as_me: failed program was:" >&5
32791 sed 's/^/| /' conftest.$ac_ext >&5
32792
32793 ac_lo=`expr '(' $ac_mid ')' + 1`
32794 fi
32795 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32796 done
32797 case $ac_lo in
32798 ?*) ac_cv_sizeof_double=$ac_lo;;
32799 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (double), 77
32800 See \`config.log' for more details." >&5
32801 echo "$as_me: error: cannot compute sizeof (double), 77
32802 See \`config.log' for more details." >&2;}
32803    { (exit 1); exit 1; }; } ;;
32804 esac
32805 else
32806   if test "$cross_compiling" = yes; then
32807   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
32808 See \`config.log' for more details." >&5
32809 echo "$as_me: error: cannot run test program while cross compiling
32810 See \`config.log' for more details." >&2;}
32811    { (exit 1); exit 1; }; }
32812 else
32813   cat >conftest.$ac_ext <<_ACEOF
32814 /* confdefs.h.  */
32815 _ACEOF
32816 cat confdefs.h >>conftest.$ac_ext
32817 cat >>conftest.$ac_ext <<_ACEOF
32818 /* end confdefs.h.  */
32819 $ac_includes_default
32820 long longval () { return (long) (sizeof (double)); }
32821 unsigned long ulongval () { return (long) (sizeof (double)); }
32822 #include <stdio.h>
32823 #include <stdlib.h>
32824 int
32825 main ()
32826 {
32827
32828   FILE *f = fopen ("conftest.val", "w");
32829   if (! f)
32830     exit (1);
32831   if (((long) (sizeof (double))) < 0)
32832     {
32833       long i = longval ();
32834       if (i != ((long) (sizeof (double))))
32835         exit (1);
32836       fprintf (f, "%ld\n", i);
32837     }
32838   else
32839     {
32840       unsigned long i = ulongval ();
32841       if (i != ((long) (sizeof (double))))
32842         exit (1);
32843       fprintf (f, "%lu\n", i);
32844     }
32845   exit (ferror (f) || fclose (f) != 0);
32846
32847   ;
32848   return 0;
32849 }
32850 _ACEOF
32851 rm -f conftest$ac_exeext
32852 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32853   (eval $ac_link) 2>&5
32854   ac_status=$?
32855   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32856   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
32857   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32858   (eval $ac_try) 2>&5
32859   ac_status=$?
32860   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32861   (exit $ac_status); }; }; then
32862   ac_cv_sizeof_double=`cat conftest.val`
32863 else
32864   echo "$as_me: program exited with status $ac_status" >&5
32865 echo "$as_me: failed program was:" >&5
32866 sed 's/^/| /' conftest.$ac_ext >&5
32867
32868 ( exit $ac_status )
32869 { { echo "$as_me:$LINENO: error: cannot compute sizeof (double), 77
32870 See \`config.log' for more details." >&5
32871 echo "$as_me: error: cannot compute sizeof (double), 77
32872 See \`config.log' for more details." >&2;}
32873    { (exit 1); exit 1; }; }
32874 fi
32875 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
32876 fi
32877 fi
32878 rm -f conftest.val
32879 else
32880   ac_cv_sizeof_double=0
32881 fi
32882 fi
32883 echo "$as_me:$LINENO: result: $ac_cv_sizeof_double" >&5
32884 echo "${ECHO_T}$ac_cv_sizeof_double" >&6
32885 cat >>confdefs.h <<_ACEOF
32886 #define SIZEOF_DOUBLE $ac_cv_sizeof_double
32887 _ACEOF
32888
32889
32890         echo "$as_me:$LINENO: checking for uniquely sized double" >&5
32891 echo $ECHO_N "checking for uniquely sized double... $ECHO_C" >&6
32892 if test "${ccvs_cv_unique_float_type_double+set}" = set; then
32893   echo $ECHO_N "(cached) $ECHO_C" >&6
32894 else
32895   if set |grep ^ccvs_cv_unique_float_type_ \
32896                         |grep "($ac_cv_sizeof_double)" >/dev/null ; then
32897                         ccvs_cv_unique_float_type_double=no
32898                 else
32899                         ccvs_cv_unique_float_type_double=yes\($ac_cv_sizeof_double\)
32900                 fi
32901 fi
32902 echo "$as_me:$LINENO: result: $ccvs_cv_unique_float_type_double" >&5
32903 echo "${ECHO_T}$ccvs_cv_unique_float_type_double" >&6
32904         if test $ccvs_cv_unique_float_type_double != no ; then
32905
32906 cat >>confdefs.h <<\_ACEOF
32907 #define UNIQUE_FLOAT_TYPE_DOUBLE 1
32908 _ACEOF
32909
32910         fi
32911         if test $gt_cv_c_long_double != no; then
32912                 echo "$as_me:$LINENO: checking for long double" >&5
32913 echo $ECHO_N "checking for long double... $ECHO_C" >&6
32914 if test "${ac_cv_type_long_double+set}" = set; then
32915   echo $ECHO_N "(cached) $ECHO_C" >&6
32916 else
32917   cat >conftest.$ac_ext <<_ACEOF
32918 /* confdefs.h.  */
32919 _ACEOF
32920 cat confdefs.h >>conftest.$ac_ext
32921 cat >>conftest.$ac_ext <<_ACEOF
32922 /* end confdefs.h.  */
32923 $ac_includes_default
32924 int
32925 main ()
32926 {
32927 if ((long double *) 0)
32928   return 0;
32929 if (sizeof (long double))
32930   return 0;
32931   ;
32932   return 0;
32933 }
32934 _ACEOF
32935 rm -f conftest.$ac_objext
32936 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32937   (eval $ac_compile) 2>conftest.er1
32938   ac_status=$?
32939   grep -v '^ *+' conftest.er1 >conftest.err
32940   rm -f conftest.er1
32941   cat conftest.err >&5
32942   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32943   (exit $ac_status); } &&
32944          { ac_try='test -z "$ac_c_werror_flag"
32945                          || test ! -s conftest.err'
32946   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32947   (eval $ac_try) 2>&5
32948   ac_status=$?
32949   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32950   (exit $ac_status); }; } &&
32951          { ac_try='test -s conftest.$ac_objext'
32952   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32953   (eval $ac_try) 2>&5
32954   ac_status=$?
32955   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32956   (exit $ac_status); }; }; then
32957   ac_cv_type_long_double=yes
32958 else
32959   echo "$as_me: failed program was:" >&5
32960 sed 's/^/| /' conftest.$ac_ext >&5
32961
32962 ac_cv_type_long_double=no
32963 fi
32964 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32965 fi
32966 echo "$as_me:$LINENO: result: $ac_cv_type_long_double" >&5
32967 echo "${ECHO_T}$ac_cv_type_long_double" >&6
32968
32969 echo "$as_me:$LINENO: checking size of long double" >&5
32970 echo $ECHO_N "checking size of long double... $ECHO_C" >&6
32971 if test "${ac_cv_sizeof_long_double+set}" = set; then
32972   echo $ECHO_N "(cached) $ECHO_C" >&6
32973 else
32974   if test "$ac_cv_type_long_double" = yes; then
32975   # The cast to unsigned long works around a bug in the HP C Compiler
32976   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
32977   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
32978   # This bug is HP SR number 8606223364.
32979   if test "$cross_compiling" = yes; then
32980   # Depending upon the size, compute the lo and hi bounds.
32981 cat >conftest.$ac_ext <<_ACEOF
32982 /* confdefs.h.  */
32983 _ACEOF
32984 cat confdefs.h >>conftest.$ac_ext
32985 cat >>conftest.$ac_ext <<_ACEOF
32986 /* end confdefs.h.  */
32987 $ac_includes_default
32988 int
32989 main ()
32990 {
32991 static int test_array [1 - 2 * !(((long) (sizeof (long double))) >= 0)];
32992 test_array [0] = 0
32993
32994   ;
32995   return 0;
32996 }
32997 _ACEOF
32998 rm -f conftest.$ac_objext
32999 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33000   (eval $ac_compile) 2>conftest.er1
33001   ac_status=$?
33002   grep -v '^ *+' conftest.er1 >conftest.err
33003   rm -f conftest.er1
33004   cat conftest.err >&5
33005   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33006   (exit $ac_status); } &&
33007          { ac_try='test -z "$ac_c_werror_flag"
33008                          || test ! -s conftest.err'
33009   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33010   (eval $ac_try) 2>&5
33011   ac_status=$?
33012   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33013   (exit $ac_status); }; } &&
33014          { ac_try='test -s conftest.$ac_objext'
33015   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33016   (eval $ac_try) 2>&5
33017   ac_status=$?
33018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33019   (exit $ac_status); }; }; then
33020   ac_lo=0 ac_mid=0
33021   while :; do
33022     cat >conftest.$ac_ext <<_ACEOF
33023 /* confdefs.h.  */
33024 _ACEOF
33025 cat confdefs.h >>conftest.$ac_ext
33026 cat >>conftest.$ac_ext <<_ACEOF
33027 /* end confdefs.h.  */
33028 $ac_includes_default
33029 int
33030 main ()
33031 {
33032 static int test_array [1 - 2 * !(((long) (sizeof (long double))) <= $ac_mid)];
33033 test_array [0] = 0
33034
33035   ;
33036   return 0;
33037 }
33038 _ACEOF
33039 rm -f conftest.$ac_objext
33040 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33041   (eval $ac_compile) 2>conftest.er1
33042   ac_status=$?
33043   grep -v '^ *+' conftest.er1 >conftest.err
33044   rm -f conftest.er1
33045   cat conftest.err >&5
33046   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33047   (exit $ac_status); } &&
33048          { ac_try='test -z "$ac_c_werror_flag"
33049                          || test ! -s conftest.err'
33050   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33051   (eval $ac_try) 2>&5
33052   ac_status=$?
33053   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33054   (exit $ac_status); }; } &&
33055          { ac_try='test -s conftest.$ac_objext'
33056   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33057   (eval $ac_try) 2>&5
33058   ac_status=$?
33059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33060   (exit $ac_status); }; }; then
33061   ac_hi=$ac_mid; break
33062 else
33063   echo "$as_me: failed program was:" >&5
33064 sed 's/^/| /' conftest.$ac_ext >&5
33065
33066 ac_lo=`expr $ac_mid + 1`
33067                     if test $ac_lo -le $ac_mid; then
33068                       ac_lo= ac_hi=
33069                       break
33070                     fi
33071                     ac_mid=`expr 2 '*' $ac_mid + 1`
33072 fi
33073 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33074   done
33075 else
33076   echo "$as_me: failed program was:" >&5
33077 sed 's/^/| /' conftest.$ac_ext >&5
33078
33079 cat >conftest.$ac_ext <<_ACEOF
33080 /* confdefs.h.  */
33081 _ACEOF
33082 cat confdefs.h >>conftest.$ac_ext
33083 cat >>conftest.$ac_ext <<_ACEOF
33084 /* end confdefs.h.  */
33085 $ac_includes_default
33086 int
33087 main ()
33088 {
33089 static int test_array [1 - 2 * !(((long) (sizeof (long double))) < 0)];
33090 test_array [0] = 0
33091
33092   ;
33093   return 0;
33094 }
33095 _ACEOF
33096 rm -f conftest.$ac_objext
33097 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33098   (eval $ac_compile) 2>conftest.er1
33099   ac_status=$?
33100   grep -v '^ *+' conftest.er1 >conftest.err
33101   rm -f conftest.er1
33102   cat conftest.err >&5
33103   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33104   (exit $ac_status); } &&
33105          { ac_try='test -z "$ac_c_werror_flag"
33106                          || test ! -s conftest.err'
33107   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33108   (eval $ac_try) 2>&5
33109   ac_status=$?
33110   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33111   (exit $ac_status); }; } &&
33112          { ac_try='test -s conftest.$ac_objext'
33113   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33114   (eval $ac_try) 2>&5
33115   ac_status=$?
33116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33117   (exit $ac_status); }; }; then
33118   ac_hi=-1 ac_mid=-1
33119   while :; do
33120     cat >conftest.$ac_ext <<_ACEOF
33121 /* confdefs.h.  */
33122 _ACEOF
33123 cat confdefs.h >>conftest.$ac_ext
33124 cat >>conftest.$ac_ext <<_ACEOF
33125 /* end confdefs.h.  */
33126 $ac_includes_default
33127 int
33128 main ()
33129 {
33130 static int test_array [1 - 2 * !(((long) (sizeof (long double))) >= $ac_mid)];
33131 test_array [0] = 0
33132
33133   ;
33134   return 0;
33135 }
33136 _ACEOF
33137 rm -f conftest.$ac_objext
33138 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33139   (eval $ac_compile) 2>conftest.er1
33140   ac_status=$?
33141   grep -v '^ *+' conftest.er1 >conftest.err
33142   rm -f conftest.er1
33143   cat conftest.err >&5
33144   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33145   (exit $ac_status); } &&
33146          { ac_try='test -z "$ac_c_werror_flag"
33147                          || test ! -s conftest.err'
33148   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33149   (eval $ac_try) 2>&5
33150   ac_status=$?
33151   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33152   (exit $ac_status); }; } &&
33153          { ac_try='test -s conftest.$ac_objext'
33154   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33155   (eval $ac_try) 2>&5
33156   ac_status=$?
33157   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33158   (exit $ac_status); }; }; then
33159   ac_lo=$ac_mid; break
33160 else
33161   echo "$as_me: failed program was:" >&5
33162 sed 's/^/| /' conftest.$ac_ext >&5
33163
33164 ac_hi=`expr '(' $ac_mid ')' - 1`
33165                        if test $ac_mid -le $ac_hi; then
33166                          ac_lo= ac_hi=
33167                          break
33168                        fi
33169                        ac_mid=`expr 2 '*' $ac_mid`
33170 fi
33171 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33172   done
33173 else
33174   echo "$as_me: failed program was:" >&5
33175 sed 's/^/| /' conftest.$ac_ext >&5
33176
33177 ac_lo= ac_hi=
33178 fi
33179 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33180 fi
33181 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33182 # Binary search between lo and hi bounds.
33183 while test "x$ac_lo" != "x$ac_hi"; do
33184   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
33185   cat >conftest.$ac_ext <<_ACEOF
33186 /* confdefs.h.  */
33187 _ACEOF
33188 cat confdefs.h >>conftest.$ac_ext
33189 cat >>conftest.$ac_ext <<_ACEOF
33190 /* end confdefs.h.  */
33191 $ac_includes_default
33192 int
33193 main ()
33194 {
33195 static int test_array [1 - 2 * !(((long) (sizeof (long double))) <= $ac_mid)];
33196 test_array [0] = 0
33197
33198   ;
33199   return 0;
33200 }
33201 _ACEOF
33202 rm -f conftest.$ac_objext
33203 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33204   (eval $ac_compile) 2>conftest.er1
33205   ac_status=$?
33206   grep -v '^ *+' conftest.er1 >conftest.err
33207   rm -f conftest.er1
33208   cat conftest.err >&5
33209   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33210   (exit $ac_status); } &&
33211          { ac_try='test -z "$ac_c_werror_flag"
33212                          || test ! -s conftest.err'
33213   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33214   (eval $ac_try) 2>&5
33215   ac_status=$?
33216   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33217   (exit $ac_status); }; } &&
33218          { ac_try='test -s conftest.$ac_objext'
33219   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33220   (eval $ac_try) 2>&5
33221   ac_status=$?
33222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33223   (exit $ac_status); }; }; then
33224   ac_hi=$ac_mid
33225 else
33226   echo "$as_me: failed program was:" >&5
33227 sed 's/^/| /' conftest.$ac_ext >&5
33228
33229 ac_lo=`expr '(' $ac_mid ')' + 1`
33230 fi
33231 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33232 done
33233 case $ac_lo in
33234 ?*) ac_cv_sizeof_long_double=$ac_lo;;
33235 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long double), 77
33236 See \`config.log' for more details." >&5
33237 echo "$as_me: error: cannot compute sizeof (long double), 77
33238 See \`config.log' for more details." >&2;}
33239    { (exit 1); exit 1; }; } ;;
33240 esac
33241 else
33242   if test "$cross_compiling" = yes; then
33243   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
33244 See \`config.log' for more details." >&5
33245 echo "$as_me: error: cannot run test program while cross compiling
33246 See \`config.log' for more details." >&2;}
33247    { (exit 1); exit 1; }; }
33248 else
33249   cat >conftest.$ac_ext <<_ACEOF
33250 /* confdefs.h.  */
33251 _ACEOF
33252 cat confdefs.h >>conftest.$ac_ext
33253 cat >>conftest.$ac_ext <<_ACEOF
33254 /* end confdefs.h.  */
33255 $ac_includes_default
33256 long longval () { return (long) (sizeof (long double)); }
33257 unsigned long ulongval () { return (long) (sizeof (long double)); }
33258 #include <stdio.h>
33259 #include <stdlib.h>
33260 int
33261 main ()
33262 {
33263
33264   FILE *f = fopen ("conftest.val", "w");
33265   if (! f)
33266     exit (1);
33267   if (((long) (sizeof (long double))) < 0)
33268     {
33269       long i = longval ();
33270       if (i != ((long) (sizeof (long double))))
33271         exit (1);
33272       fprintf (f, "%ld\n", i);
33273     }
33274   else
33275     {
33276       unsigned long i = ulongval ();
33277       if (i != ((long) (sizeof (long double))))
33278         exit (1);
33279       fprintf (f, "%lu\n", i);
33280     }
33281   exit (ferror (f) || fclose (f) != 0);
33282
33283   ;
33284   return 0;
33285 }
33286 _ACEOF
33287 rm -f conftest$ac_exeext
33288 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33289   (eval $ac_link) 2>&5
33290   ac_status=$?
33291   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33292   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33293   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33294   (eval $ac_try) 2>&5
33295   ac_status=$?
33296   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33297   (exit $ac_status); }; }; then
33298   ac_cv_sizeof_long_double=`cat conftest.val`
33299 else
33300   echo "$as_me: program exited with status $ac_status" >&5
33301 echo "$as_me: failed program was:" >&5
33302 sed 's/^/| /' conftest.$ac_ext >&5
33303
33304 ( exit $ac_status )
33305 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long double), 77
33306 See \`config.log' for more details." >&5
33307 echo "$as_me: error: cannot compute sizeof (long double), 77
33308 See \`config.log' for more details." >&2;}
33309    { (exit 1); exit 1; }; }
33310 fi
33311 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33312 fi
33313 fi
33314 rm -f conftest.val
33315 else
33316   ac_cv_sizeof_long_double=0
33317 fi
33318 fi
33319 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_double" >&5
33320 echo "${ECHO_T}$ac_cv_sizeof_long_double" >&6
33321 cat >>confdefs.h <<_ACEOF
33322 #define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double
33323 _ACEOF
33324
33325
33326                 echo "$as_me:$LINENO: checking for uniquely sized long double" >&5
33327 echo $ECHO_N "checking for uniquely sized long double... $ECHO_C" >&6
33328 if test "${ccvs_cv_unique_float_type_long_double+set}" = set; then
33329   echo $ECHO_N "(cached) $ECHO_C" >&6
33330 else
33331   if set |grep ^ccvs_cv_unique_float_type_ \
33332                                 |grep "($ac_cv_sizeof_long_double)" >/dev/null ; then
33333                                 ccvs_cv_unique_float_type_long_double=no
33334                         else
33335                                 ccvs_cv_unique_float_type_long_double=yes\($ac_cv_sizeof_long_double\)
33336                         fi
33337 fi
33338 echo "$as_me:$LINENO: result: $ccvs_cv_unique_float_type_long_double" >&5
33339 echo "${ECHO_T}$ccvs_cv_unique_float_type_long_double" >&6
33340                 if test $ccvs_cv_unique_float_type_long_double != no ; then
33341
33342 cat >>confdefs.h <<\_ACEOF
33343 #define UNIQUE_FLOAT_TYPE_LONG_DOUBLE 1
33344 _ACEOF
33345
33346                 fi
33347         fi
33348 fi
33349
33350
33351 cat >>confdefs.h <<\_ACEOF
33352 #define HAVE_STRCHR 1
33353 _ACEOF
33354
33355
33356 cat >>confdefs.h <<\_ACEOF
33357 #define HAVE_MEMCHR 1
33358 _ACEOF
33359
33360
33361
33362 cat >>confdefs.h <<\_ACEOF
33363 #define REGEX_MALLOC 1
33364 _ACEOF
33365
33366
33367 cat >>confdefs.h <<\_ACEOF
33368 #define _REGEX_RE_COMP 1
33369 _ACEOF
33370
33371
33372
33373 for ac_header in unistd.h vfork.h
33374 do
33375 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
33376 if eval "test \"\${$as_ac_Header+set}\" = set"; then
33377   echo "$as_me:$LINENO: checking for $ac_header" >&5
33378 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
33379 if eval "test \"\${$as_ac_Header+set}\" = set"; then
33380   echo $ECHO_N "(cached) $ECHO_C" >&6
33381 fi
33382 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
33383 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
33384 else
33385   # Is the header compilable?
33386 echo "$as_me:$LINENO: checking $ac_header usability" >&5
33387 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
33388 cat >conftest.$ac_ext <<_ACEOF
33389 /* confdefs.h.  */
33390 _ACEOF
33391 cat confdefs.h >>conftest.$ac_ext
33392 cat >>conftest.$ac_ext <<_ACEOF
33393 /* end confdefs.h.  */
33394 $ac_includes_default
33395 #include <$ac_header>
33396 _ACEOF
33397 rm -f conftest.$ac_objext
33398 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33399   (eval $ac_compile) 2>conftest.er1
33400   ac_status=$?
33401   grep -v '^ *+' conftest.er1 >conftest.err
33402   rm -f conftest.er1
33403   cat conftest.err >&5
33404   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33405   (exit $ac_status); } &&
33406          { ac_try='test -z "$ac_c_werror_flag"
33407                          || test ! -s conftest.err'
33408   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33409   (eval $ac_try) 2>&5
33410   ac_status=$?
33411   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33412   (exit $ac_status); }; } &&
33413          { ac_try='test -s conftest.$ac_objext'
33414   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33415   (eval $ac_try) 2>&5
33416   ac_status=$?
33417   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33418   (exit $ac_status); }; }; then
33419   ac_header_compiler=yes
33420 else
33421   echo "$as_me: failed program was:" >&5
33422 sed 's/^/| /' conftest.$ac_ext >&5
33423
33424 ac_header_compiler=no
33425 fi
33426 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33427 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33428 echo "${ECHO_T}$ac_header_compiler" >&6
33429
33430 # Is the header present?
33431 echo "$as_me:$LINENO: checking $ac_header presence" >&5
33432 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
33433 cat >conftest.$ac_ext <<_ACEOF
33434 /* confdefs.h.  */
33435 _ACEOF
33436 cat confdefs.h >>conftest.$ac_ext
33437 cat >>conftest.$ac_ext <<_ACEOF
33438 /* end confdefs.h.  */
33439 #include <$ac_header>
33440 _ACEOF
33441 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
33442   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
33443   ac_status=$?
33444   grep -v '^ *+' conftest.er1 >conftest.err
33445   rm -f conftest.er1
33446   cat conftest.err >&5
33447   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33448   (exit $ac_status); } >/dev/null; then
33449   if test -s conftest.err; then
33450     ac_cpp_err=$ac_c_preproc_warn_flag
33451     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
33452   else
33453     ac_cpp_err=
33454   fi
33455 else
33456   ac_cpp_err=yes
33457 fi
33458 if test -z "$ac_cpp_err"; then
33459   ac_header_preproc=yes
33460 else
33461   echo "$as_me: failed program was:" >&5
33462 sed 's/^/| /' conftest.$ac_ext >&5
33463
33464   ac_header_preproc=no
33465 fi
33466 rm -f conftest.err conftest.$ac_ext
33467 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33468 echo "${ECHO_T}$ac_header_preproc" >&6
33469
33470 # So?  What about this header?
33471 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
33472   yes:no: )
33473     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
33474 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
33475     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
33476 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
33477     ac_header_preproc=yes
33478     ;;
33479   no:yes:* )
33480     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
33481 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
33482     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
33483 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
33484     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
33485 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
33486     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
33487 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
33488     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
33489 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
33490     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
33491 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
33492     (
33493       cat <<\_ASBOX
33494 ## ------------------------------ ##
33495 ## Report this to bug-cvs@gnu.org ##
33496 ## ------------------------------ ##
33497 _ASBOX
33498     ) |
33499       sed "s/^/$as_me: WARNING:     /" >&2
33500     ;;
33501 esac
33502 echo "$as_me:$LINENO: checking for $ac_header" >&5
33503 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
33504 if eval "test \"\${$as_ac_Header+set}\" = set"; then
33505   echo $ECHO_N "(cached) $ECHO_C" >&6
33506 else
33507   eval "$as_ac_Header=\$ac_header_preproc"
33508 fi
33509 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
33510 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
33511
33512 fi
33513 if test `eval echo '${'$as_ac_Header'}'` = yes; then
33514   cat >>confdefs.h <<_ACEOF
33515 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
33516 _ACEOF
33517
33518 fi
33519
33520 done
33521
33522
33523
33524 for ac_func in fork vfork
33525 do
33526 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33527 echo "$as_me:$LINENO: checking for $ac_func" >&5
33528 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33529 if eval "test \"\${$as_ac_var+set}\" = set"; then
33530   echo $ECHO_N "(cached) $ECHO_C" >&6
33531 else
33532   cat >conftest.$ac_ext <<_ACEOF
33533 /* confdefs.h.  */
33534 _ACEOF
33535 cat confdefs.h >>conftest.$ac_ext
33536 cat >>conftest.$ac_ext <<_ACEOF
33537 /* end confdefs.h.  */
33538 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33539    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
33540 #define $ac_func innocuous_$ac_func
33541
33542 /* System header to define __stub macros and hopefully few prototypes,
33543     which can conflict with char $ac_func (); below.
33544     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33545     <limits.h> exists even on freestanding compilers.  */
33546
33547 #ifdef __STDC__
33548 # include <limits.h>
33549 #else
33550 # include <assert.h>
33551 #endif
33552
33553 #undef $ac_func
33554
33555 /* Override any gcc2 internal prototype to avoid an error.  */
33556 #ifdef __cplusplus
33557 extern "C"
33558 {
33559 #endif
33560 /* We use char because int might match the return type of a gcc2
33561    builtin and then its argument prototype would still apply.  */
33562 char $ac_func ();
33563 /* The GNU C library defines this for functions which it implements
33564     to always fail with ENOSYS.  Some functions are actually named
33565     something starting with __ and the normal name is an alias.  */
33566 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33567 choke me
33568 #else
33569 char (*f) () = $ac_func;
33570 #endif
33571 #ifdef __cplusplus
33572 }
33573 #endif
33574
33575 int
33576 main ()
33577 {
33578 return f != $ac_func;
33579   ;
33580   return 0;
33581 }
33582 _ACEOF
33583 rm -f conftest.$ac_objext conftest$ac_exeext
33584 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33585   (eval $ac_link) 2>conftest.er1
33586   ac_status=$?
33587   grep -v '^ *+' conftest.er1 >conftest.err
33588   rm -f conftest.er1
33589   cat conftest.err >&5
33590   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33591   (exit $ac_status); } &&
33592          { ac_try='test -z "$ac_c_werror_flag"
33593                          || test ! -s conftest.err'
33594   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33595   (eval $ac_try) 2>&5
33596   ac_status=$?
33597   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33598   (exit $ac_status); }; } &&
33599          { ac_try='test -s conftest$ac_exeext'
33600   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33601   (eval $ac_try) 2>&5
33602   ac_status=$?
33603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33604   (exit $ac_status); }; }; then
33605   eval "$as_ac_var=yes"
33606 else
33607   echo "$as_me: failed program was:" >&5
33608 sed 's/^/| /' conftest.$ac_ext >&5
33609
33610 eval "$as_ac_var=no"
33611 fi
33612 rm -f conftest.err conftest.$ac_objext \
33613       conftest$ac_exeext conftest.$ac_ext
33614 fi
33615 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33616 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33617 if test `eval echo '${'$as_ac_var'}'` = yes; then
33618   cat >>confdefs.h <<_ACEOF
33619 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33620 _ACEOF
33621
33622 fi
33623 done
33624
33625 if test "x$ac_cv_func_fork" = xyes; then
33626   echo "$as_me:$LINENO: checking for working fork" >&5
33627 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
33628 if test "${ac_cv_func_fork_works+set}" = set; then
33629   echo $ECHO_N "(cached) $ECHO_C" >&6
33630 else
33631   if test "$cross_compiling" = yes; then
33632   ac_cv_func_fork_works=cross
33633 else
33634   cat >conftest.$ac_ext <<_ACEOF
33635 /* By Ruediger Kuhlmann. */
33636       #include <sys/types.h>
33637       #if HAVE_UNISTD_H
33638       # include <unistd.h>
33639       #endif
33640       /* Some systems only have a dummy stub for fork() */
33641       int main ()
33642       {
33643         if (fork() < 0)
33644           exit (1);
33645         exit (0);
33646       }
33647 _ACEOF
33648 rm -f conftest$ac_exeext
33649 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33650   (eval $ac_link) 2>&5
33651   ac_status=$?
33652   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33653   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33654   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33655   (eval $ac_try) 2>&5
33656   ac_status=$?
33657   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33658   (exit $ac_status); }; }; then
33659   ac_cv_func_fork_works=yes
33660 else
33661   echo "$as_me: program exited with status $ac_status" >&5
33662 echo "$as_me: failed program was:" >&5
33663 sed 's/^/| /' conftest.$ac_ext >&5
33664
33665 ( exit $ac_status )
33666 ac_cv_func_fork_works=no
33667 fi
33668 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33669 fi
33670 fi
33671 echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
33672 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
33673
33674 else
33675   ac_cv_func_fork_works=$ac_cv_func_fork
33676 fi
33677 if test "x$ac_cv_func_fork_works" = xcross; then
33678   case $host in
33679     *-*-amigaos* | *-*-msdosdjgpp*)
33680       # Override, as these systems have only a dummy fork() stub
33681       ac_cv_func_fork_works=no
33682       ;;
33683     *)
33684       ac_cv_func_fork_works=yes
33685       ;;
33686   esac
33687   { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
33688 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
33689 fi
33690 ac_cv_func_vfork_works=$ac_cv_func_vfork
33691 if test "x$ac_cv_func_vfork" = xyes; then
33692   echo "$as_me:$LINENO: checking for working vfork" >&5
33693 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
33694 if test "${ac_cv_func_vfork_works+set}" = set; then
33695   echo $ECHO_N "(cached) $ECHO_C" >&6
33696 else
33697   if test "$cross_compiling" = yes; then
33698   ac_cv_func_vfork_works=cross
33699 else
33700   cat >conftest.$ac_ext <<_ACEOF
33701 /* confdefs.h.  */
33702 _ACEOF
33703 cat confdefs.h >>conftest.$ac_ext
33704 cat >>conftest.$ac_ext <<_ACEOF
33705 /* end confdefs.h.  */
33706 /* Thanks to Paul Eggert for this test.  */
33707 #include <stdio.h>
33708 #include <stdlib.h>
33709 #include <sys/types.h>
33710 #include <sys/stat.h>
33711 #include <sys/wait.h>
33712 #if HAVE_UNISTD_H
33713 # include <unistd.h>
33714 #endif
33715 #if HAVE_VFORK_H
33716 # include <vfork.h>
33717 #endif
33718 /* On some sparc systems, changes by the child to local and incoming
33719    argument registers are propagated back to the parent.  The compiler
33720    is told about this with #include <vfork.h>, but some compilers
33721    (e.g. gcc -O) don't grok <vfork.h>.  Test for this by using a
33722    static variable whose address is put into a register that is
33723    clobbered by the vfork.  */
33724 static void
33725 #ifdef __cplusplus
33726 sparc_address_test (int arg)
33727 # else
33728 sparc_address_test (arg) int arg;
33729 #endif
33730 {
33731   static pid_t child;
33732   if (!child) {
33733     child = vfork ();
33734     if (child < 0) {
33735       perror ("vfork");
33736       _exit(2);
33737     }
33738     if (!child) {
33739       arg = getpid();
33740       write(-1, "", 0);
33741       _exit (arg);
33742     }
33743   }
33744 }
33745
33746 int
33747 main ()
33748 {
33749   pid_t parent = getpid ();
33750   pid_t child;
33751
33752   sparc_address_test (0);
33753
33754   child = vfork ();
33755
33756   if (child == 0) {
33757     /* Here is another test for sparc vfork register problems.  This
33758        test uses lots of local variables, at least as many local
33759        variables as main has allocated so far including compiler
33760        temporaries.  4 locals are enough for gcc 1.40.3 on a Solaris
33761        4.1.3 sparc, but we use 8 to be safe.  A buggy compiler should
33762        reuse the register of parent for one of the local variables,
33763        since it will think that parent can't possibly be used any more
33764        in this routine.  Assigning to the local variable will thus
33765        munge parent in the parent process.  */
33766     pid_t
33767       p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
33768       p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
33769     /* Convince the compiler that p..p7 are live; otherwise, it might
33770        use the same hardware register for all 8 local variables.  */
33771     if (p != p1 || p != p2 || p != p3 || p != p4
33772         || p != p5 || p != p6 || p != p7)
33773       _exit(1);
33774
33775     /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
33776        from child file descriptors.  If the child closes a descriptor
33777        before it execs or exits, this munges the parent's descriptor
33778        as well.  Test for this by closing stdout in the child.  */
33779     _exit(close(fileno(stdout)) != 0);
33780   } else {
33781     int status;
33782     struct stat st;
33783
33784     while (wait(&status) != child)
33785       ;
33786     exit(
33787          /* Was there some problem with vforking?  */
33788          child < 0
33789
33790          /* Did the child fail?  (This shouldn't happen.)  */
33791          || status
33792
33793          /* Did the vfork/compiler bug occur?  */
33794          || parent != getpid()
33795
33796          /* Did the file descriptor bug occur?  */
33797          || fstat(fileno(stdout), &st) != 0
33798          );
33799   }
33800 }
33801 _ACEOF
33802 rm -f conftest$ac_exeext
33803 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33804   (eval $ac_link) 2>&5
33805   ac_status=$?
33806   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33807   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33808   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33809   (eval $ac_try) 2>&5
33810   ac_status=$?
33811   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33812   (exit $ac_status); }; }; then
33813   ac_cv_func_vfork_works=yes
33814 else
33815   echo "$as_me: program exited with status $ac_status" >&5
33816 echo "$as_me: failed program was:" >&5
33817 sed 's/^/| /' conftest.$ac_ext >&5
33818
33819 ( exit $ac_status )
33820 ac_cv_func_vfork_works=no
33821 fi
33822 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33823 fi
33824 fi
33825 echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
33826 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
33827
33828 fi;
33829 if test "x$ac_cv_func_fork_works" = xcross; then
33830   ac_cv_func_vfork_works=$ac_cv_func_vfork
33831   { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
33832 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
33833 fi
33834
33835 if test "x$ac_cv_func_vfork_works" = xyes; then
33836
33837 cat >>confdefs.h <<\_ACEOF
33838 #define HAVE_WORKING_VFORK 1
33839 _ACEOF
33840
33841 else
33842
33843 cat >>confdefs.h <<\_ACEOF
33844 #define vfork fork
33845 _ACEOF
33846
33847 fi
33848 if test "x$ac_cv_func_fork_works" = xyes; then
33849
33850 cat >>confdefs.h <<\_ACEOF
33851 #define HAVE_WORKING_FORK 1
33852 _ACEOF
33853
33854 fi
33855
33856 echo "$as_me:$LINENO: checking whether closedir returns void" >&5
33857 echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6
33858 if test "${ac_cv_func_closedir_void+set}" = set; then
33859   echo $ECHO_N "(cached) $ECHO_C" >&6
33860 else
33861   if test "$cross_compiling" = yes; then
33862   ac_cv_func_closedir_void=yes
33863 else
33864   cat >conftest.$ac_ext <<_ACEOF
33865 /* confdefs.h.  */
33866 _ACEOF
33867 cat confdefs.h >>conftest.$ac_ext
33868 cat >>conftest.$ac_ext <<_ACEOF
33869 /* end confdefs.h.  */
33870 $ac_includes_default
33871 #include <$ac_header_dirent>
33872 #ifndef __cplusplus
33873 int closedir ();
33874 #endif
33875
33876 int
33877 main ()
33878 {
33879 exit (closedir (opendir (".")) != 0);
33880   ;
33881   return 0;
33882 }
33883 _ACEOF
33884 rm -f conftest$ac_exeext
33885 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33886   (eval $ac_link) 2>&5
33887   ac_status=$?
33888   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33889   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33890   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33891   (eval $ac_try) 2>&5
33892   ac_status=$?
33893   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33894   (exit $ac_status); }; }; then
33895   ac_cv_func_closedir_void=no
33896 else
33897   echo "$as_me: program exited with status $ac_status" >&5
33898 echo "$as_me: failed program was:" >&5
33899 sed 's/^/| /' conftest.$ac_ext >&5
33900
33901 ( exit $ac_status )
33902 ac_cv_func_closedir_void=yes
33903 fi
33904 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33905 fi
33906 fi
33907 echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
33908 echo "${ECHO_T}$ac_cv_func_closedir_void" >&6
33909 if test $ac_cv_func_closedir_void = yes; then
33910
33911 cat >>confdefs.h <<\_ACEOF
33912 #define CLOSEDIR_VOID 1
33913 _ACEOF
33914
33915 fi
33916
33917
33918 echo "$as_me:$LINENO: checking for library containing getspnam" >&5
33919 echo $ECHO_N "checking for library containing getspnam... $ECHO_C" >&6
33920 if test "${ac_cv_search_getspnam+set}" = set; then
33921   echo $ECHO_N "(cached) $ECHO_C" >&6
33922 else
33923   ac_func_search_save_LIBS=$LIBS
33924 ac_cv_search_getspnam=no
33925 cat >conftest.$ac_ext <<_ACEOF
33926 /* confdefs.h.  */
33927 _ACEOF
33928 cat confdefs.h >>conftest.$ac_ext
33929 cat >>conftest.$ac_ext <<_ACEOF
33930 /* end confdefs.h.  */
33931
33932 /* Override any gcc2 internal prototype to avoid an error.  */
33933 #ifdef __cplusplus
33934 extern "C"
33935 #endif
33936 /* We use char because int might match the return type of a gcc2
33937    builtin and then its argument prototype would still apply.  */
33938 char getspnam ();
33939 int
33940 main ()
33941 {
33942 getspnam ();
33943   ;
33944   return 0;
33945 }
33946 _ACEOF
33947 rm -f conftest.$ac_objext conftest$ac_exeext
33948 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33949   (eval $ac_link) 2>conftest.er1
33950   ac_status=$?
33951   grep -v '^ *+' conftest.er1 >conftest.err
33952   rm -f conftest.er1
33953   cat conftest.err >&5
33954   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33955   (exit $ac_status); } &&
33956          { ac_try='test -z "$ac_c_werror_flag"
33957                          || test ! -s conftest.err'
33958   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33959   (eval $ac_try) 2>&5
33960   ac_status=$?
33961   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33962   (exit $ac_status); }; } &&
33963          { ac_try='test -s conftest$ac_exeext'
33964   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33965   (eval $ac_try) 2>&5
33966   ac_status=$?
33967   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33968   (exit $ac_status); }; }; then
33969   ac_cv_search_getspnam="none required"
33970 else
33971   echo "$as_me: failed program was:" >&5
33972 sed 's/^/| /' conftest.$ac_ext >&5
33973
33974 fi
33975 rm -f conftest.err conftest.$ac_objext \
33976       conftest$ac_exeext conftest.$ac_ext
33977 if test "$ac_cv_search_getspnam" = no; then
33978   for ac_lib in sec gen; do
33979     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
33980     cat >conftest.$ac_ext <<_ACEOF
33981 /* confdefs.h.  */
33982 _ACEOF
33983 cat confdefs.h >>conftest.$ac_ext
33984 cat >>conftest.$ac_ext <<_ACEOF
33985 /* end confdefs.h.  */
33986
33987 /* Override any gcc2 internal prototype to avoid an error.  */
33988 #ifdef __cplusplus
33989 extern "C"
33990 #endif
33991 /* We use char because int might match the return type of a gcc2
33992    builtin and then its argument prototype would still apply.  */
33993 char getspnam ();
33994 int
33995 main ()
33996 {
33997 getspnam ();
33998   ;
33999   return 0;
34000 }
34001 _ACEOF
34002 rm -f conftest.$ac_objext conftest$ac_exeext
34003 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34004   (eval $ac_link) 2>conftest.er1
34005   ac_status=$?
34006   grep -v '^ *+' conftest.er1 >conftest.err
34007   rm -f conftest.er1
34008   cat conftest.err >&5
34009   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34010   (exit $ac_status); } &&
34011          { ac_try='test -z "$ac_c_werror_flag"
34012                          || test ! -s conftest.err'
34013   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34014   (eval $ac_try) 2>&5
34015   ac_status=$?
34016   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34017   (exit $ac_status); }; } &&
34018          { ac_try='test -s conftest$ac_exeext'
34019   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34020   (eval $ac_try) 2>&5
34021   ac_status=$?
34022   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34023   (exit $ac_status); }; }; then
34024   ac_cv_search_getspnam="-l$ac_lib"
34025 break
34026 else
34027   echo "$as_me: failed program was:" >&5
34028 sed 's/^/| /' conftest.$ac_ext >&5
34029
34030 fi
34031 rm -f conftest.err conftest.$ac_objext \
34032       conftest$ac_exeext conftest.$ac_ext
34033   done
34034 fi
34035 LIBS=$ac_func_search_save_LIBS
34036 fi
34037 echo "$as_me:$LINENO: result: $ac_cv_search_getspnam" >&5
34038 echo "${ECHO_T}$ac_cv_search_getspnam" >&6
34039 if test "$ac_cv_search_getspnam" != no; then
34040   test "$ac_cv_search_getspnam" = "none required" || LIBS="$ac_cv_search_getspnam $LIBS"
34041
34042 cat >>confdefs.h <<\_ACEOF
34043 #define HAVE_GETSPNAM 1
34044 _ACEOF
34045
34046 fi
34047
34048
34049 echo "$as_me:$LINENO: checking whether utime accepts a null argument" >&5
34050 echo $ECHO_N "checking whether utime accepts a null argument... $ECHO_C" >&6
34051 if test "${ac_cv_func_utime_null+set}" = set; then
34052   echo $ECHO_N "(cached) $ECHO_C" >&6
34053 else
34054   rm -f conftest.data; >conftest.data
34055 # Sequent interprets utime(file, 0) to mean use start of epoch.  Wrong.
34056 if test "$cross_compiling" = yes; then
34057   ac_cv_func_utime_null=no
34058 else
34059   cat >conftest.$ac_ext <<_ACEOF
34060 /* confdefs.h.  */
34061 _ACEOF
34062 cat confdefs.h >>conftest.$ac_ext
34063 cat >>conftest.$ac_ext <<_ACEOF
34064 /* end confdefs.h.  */
34065 $ac_includes_default
34066 int
34067 main ()
34068 {
34069 struct stat s, t;
34070   exit (!(stat ("conftest.data", &s) == 0
34071           && utime ("conftest.data", (long *)0) == 0
34072           && stat ("conftest.data", &t) == 0
34073           && t.st_mtime >= s.st_mtime
34074           && t.st_mtime - s.st_mtime < 120));
34075   ;
34076   return 0;
34077 }
34078 _ACEOF
34079 rm -f conftest$ac_exeext
34080 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34081   (eval $ac_link) 2>&5
34082   ac_status=$?
34083   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34084   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34085   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34086   (eval $ac_try) 2>&5
34087   ac_status=$?
34088   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34089   (exit $ac_status); }; }; then
34090   ac_cv_func_utime_null=yes
34091 else
34092   echo "$as_me: program exited with status $ac_status" >&5
34093 echo "$as_me: failed program was:" >&5
34094 sed 's/^/| /' conftest.$ac_ext >&5
34095
34096 ( exit $ac_status )
34097 ac_cv_func_utime_null=no
34098 fi
34099 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34100 fi
34101 rm -f core *.core
34102 fi
34103 echo "$as_me:$LINENO: result: $ac_cv_func_utime_null" >&5
34104 echo "${ECHO_T}$ac_cv_func_utime_null" >&6
34105 if test $ac_cv_func_utime_null = yes; then
34106
34107 cat >>confdefs.h <<\_ACEOF
34108 #define HAVE_UTIME_NULL 1
34109 _ACEOF
34110
34111 fi
34112 rm -f conftest.data
34113
34114 echo "$as_me:$LINENO: checking for long file names" >&5
34115 echo $ECHO_N "checking for long file names... $ECHO_C" >&6
34116 if test "${ac_cv_sys_long_file_names+set}" = set; then
34117   echo $ECHO_N "(cached) $ECHO_C" >&6
34118 else
34119   ac_cv_sys_long_file_names=yes
34120 # Test for long file names in all the places we know might matter:
34121 #      .                the current directory, where building will happen
34122 #      $prefix/lib      where we will be installing things
34123 #      $exec_prefix/lib likewise
34124 # eval it to expand exec_prefix.
34125 #      $TMPDIR          if set, where it might want to write temporary files
34126 # if $TMPDIR is not set:
34127 #      /tmp             where it might want to write temporary files
34128 #      /var/tmp         likewise
34129 #      /usr/tmp         likewise
34130 if test -n "$TMPDIR" && test -d "$TMPDIR" && test -w "$TMPDIR"; then
34131   ac_tmpdirs=$TMPDIR
34132 else
34133   ac_tmpdirs='/tmp /var/tmp /usr/tmp'
34134 fi
34135 for ac_dir in  . $ac_tmpdirs `eval echo $prefix/lib $exec_prefix/lib` ; do
34136   test -d $ac_dir || continue
34137   test -w $ac_dir || continue # It is less confusing to not echo anything here.
34138   ac_xdir=$ac_dir/cf$$
34139   (umask 077 && mkdir $ac_xdir 2>/dev/null) || continue
34140   ac_tf1=$ac_xdir/conftest9012345
34141   ac_tf2=$ac_xdir/conftest9012346
34142   (echo 1 >$ac_tf1) 2>/dev/null
34143   (echo 2 >$ac_tf2) 2>/dev/null
34144   ac_val=`cat $ac_tf1 2>/dev/null`
34145   if test ! -f $ac_tf1 || test "$ac_val" != 1; then
34146     ac_cv_sys_long_file_names=no
34147     rm -rf $ac_xdir 2>/dev/null
34148     break
34149   fi
34150   rm -rf $ac_xdir 2>/dev/null
34151 done
34152 fi
34153 echo "$as_me:$LINENO: result: $ac_cv_sys_long_file_names" >&5
34154 echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6
34155 if test $ac_cv_sys_long_file_names = yes; then
34156
34157 cat >>confdefs.h <<\_ACEOF
34158 #define HAVE_LONG_FILE_NAMES 1
34159 _ACEOF
34160
34161 fi
34162
34163
34164 echo "$as_me:$LINENO: checking whether printf supports %p" >&5
34165 echo $ECHO_N "checking whether printf supports %p... $ECHO_C" >&6
34166 if test "${cvs_cv_func_printf_ptr+set}" = set; then
34167   echo $ECHO_N "(cached) $ECHO_C" >&6
34168 else
34169   if test "$cross_compiling" = yes; then
34170   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
34171 See \`config.log' for more details." >&5
34172 echo "$as_me: error: cannot run test program while cross compiling
34173 See \`config.log' for more details." >&2;}
34174    { (exit 1); exit 1; }; }
34175 else
34176   cat >conftest.$ac_ext <<_ACEOF
34177 /* confdefs.h.  */
34178 _ACEOF
34179 cat confdefs.h >>conftest.$ac_ext
34180 cat >>conftest.$ac_ext <<_ACEOF
34181 /* end confdefs.h.  */
34182 #include <stdio.h>
34183 /* If printf supports %p, exit 0. */
34184 int
34185 main ()
34186 {
34187   void *p1, *p2;
34188   char buf[256];
34189   p1 = &p1; p2 = &p2;
34190   sprintf(buf, "%p", p1);
34191   exit(sscanf(buf, "%p", &p2) != 1 || p2 != p1);
34192 }
34193 _ACEOF
34194 rm -f conftest$ac_exeext
34195 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34196   (eval $ac_link) 2>&5
34197   ac_status=$?
34198   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34199   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34200   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34201   (eval $ac_try) 2>&5
34202   ac_status=$?
34203   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34204   (exit $ac_status); }; }; then
34205   cvs_cv_func_printf_ptr=yes
34206 else
34207   echo "$as_me: program exited with status $ac_status" >&5
34208 echo "$as_me: failed program was:" >&5
34209 sed 's/^/| /' conftest.$ac_ext >&5
34210
34211 ( exit $ac_status )
34212 cvs_cv_func_printf_ptr=no
34213 fi
34214 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34215 fi
34216 rm -f core core.* *.core
34217 fi
34218 echo "$as_me:$LINENO: result: $cvs_cv_func_printf_ptr" >&5
34219 echo "${ECHO_T}$cvs_cv_func_printf_ptr" >&6
34220 if test $cvs_cv_func_printf_ptr = yes; then
34221
34222 cat >>confdefs.h <<\_ACEOF
34223 #define HAVE_PRINTF_PTR 1
34224 _ACEOF
34225
34226 fi
34227
34228
34229 # Try to find connect and gethostbyname.
34230
34231 echo "$as_me:$LINENO: checking for main in -lnsl" >&5
34232 echo $ECHO_N "checking for main in -lnsl... $ECHO_C" >&6
34233 if test "${ac_cv_lib_nsl_main+set}" = set; then
34234   echo $ECHO_N "(cached) $ECHO_C" >&6
34235 else
34236   ac_check_lib_save_LIBS=$LIBS
34237 LIBS="-lnsl  $LIBS"
34238 cat >conftest.$ac_ext <<_ACEOF
34239 /* confdefs.h.  */
34240 _ACEOF
34241 cat confdefs.h >>conftest.$ac_ext
34242 cat >>conftest.$ac_ext <<_ACEOF
34243 /* end confdefs.h.  */
34244
34245
34246 int
34247 main ()
34248 {
34249 main ();
34250   ;
34251   return 0;
34252 }
34253 _ACEOF
34254 rm -f conftest.$ac_objext conftest$ac_exeext
34255 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34256   (eval $ac_link) 2>conftest.er1
34257   ac_status=$?
34258   grep -v '^ *+' conftest.er1 >conftest.err
34259   rm -f conftest.er1
34260   cat conftest.err >&5
34261   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34262   (exit $ac_status); } &&
34263          { ac_try='test -z "$ac_c_werror_flag"
34264                          || test ! -s conftest.err'
34265   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34266   (eval $ac_try) 2>&5
34267   ac_status=$?
34268   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34269   (exit $ac_status); }; } &&
34270          { ac_try='test -s conftest$ac_exeext'
34271   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34272   (eval $ac_try) 2>&5
34273   ac_status=$?
34274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34275   (exit $ac_status); }; }; then
34276   ac_cv_lib_nsl_main=yes
34277 else
34278   echo "$as_me: failed program was:" >&5
34279 sed 's/^/| /' conftest.$ac_ext >&5
34280
34281 ac_cv_lib_nsl_main=no
34282 fi
34283 rm -f conftest.err conftest.$ac_objext \
34284       conftest$ac_exeext conftest.$ac_ext
34285 LIBS=$ac_check_lib_save_LIBS
34286 fi
34287 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_main" >&5
34288 echo "${ECHO_T}$ac_cv_lib_nsl_main" >&6
34289 if test $ac_cv_lib_nsl_main = yes; then
34290   cat >>confdefs.h <<_ACEOF
34291 #define HAVE_LIBNSL 1
34292 _ACEOF
34293
34294   LIBS="-lnsl $LIBS"
34295
34296 fi
34297
34298 echo "$as_me:$LINENO: checking for library containing connect" >&5
34299 echo $ECHO_N "checking for library containing connect... $ECHO_C" >&6
34300 if test "${ac_cv_search_connect+set}" = set; then
34301   echo $ECHO_N "(cached) $ECHO_C" >&6
34302 else
34303   ac_func_search_save_LIBS=$LIBS
34304 ac_cv_search_connect=no
34305 cat >conftest.$ac_ext <<_ACEOF
34306 /* confdefs.h.  */
34307 _ACEOF
34308 cat confdefs.h >>conftest.$ac_ext
34309 cat >>conftest.$ac_ext <<_ACEOF
34310 /* end confdefs.h.  */
34311
34312 /* Override any gcc2 internal prototype to avoid an error.  */
34313 #ifdef __cplusplus
34314 extern "C"
34315 #endif
34316 /* We use char because int might match the return type of a gcc2
34317    builtin and then its argument prototype would still apply.  */
34318 char connect ();
34319 int
34320 main ()
34321 {
34322 connect ();
34323   ;
34324   return 0;
34325 }
34326 _ACEOF
34327 rm -f conftest.$ac_objext conftest$ac_exeext
34328 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34329   (eval $ac_link) 2>conftest.er1
34330   ac_status=$?
34331   grep -v '^ *+' conftest.er1 >conftest.err
34332   rm -f conftest.er1
34333   cat conftest.err >&5
34334   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34335   (exit $ac_status); } &&
34336          { ac_try='test -z "$ac_c_werror_flag"
34337                          || test ! -s conftest.err'
34338   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34339   (eval $ac_try) 2>&5
34340   ac_status=$?
34341   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34342   (exit $ac_status); }; } &&
34343          { ac_try='test -s conftest$ac_exeext'
34344   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34345   (eval $ac_try) 2>&5
34346   ac_status=$?
34347   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34348   (exit $ac_status); }; }; then
34349   ac_cv_search_connect="none required"
34350 else
34351   echo "$as_me: failed program was:" >&5
34352 sed 's/^/| /' conftest.$ac_ext >&5
34353
34354 fi
34355 rm -f conftest.err conftest.$ac_objext \
34356       conftest$ac_exeext conftest.$ac_ext
34357 if test "$ac_cv_search_connect" = no; then
34358   for ac_lib in xnet socket inet; do
34359     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
34360     cat >conftest.$ac_ext <<_ACEOF
34361 /* confdefs.h.  */
34362 _ACEOF
34363 cat confdefs.h >>conftest.$ac_ext
34364 cat >>conftest.$ac_ext <<_ACEOF
34365 /* end confdefs.h.  */
34366
34367 /* Override any gcc2 internal prototype to avoid an error.  */
34368 #ifdef __cplusplus
34369 extern "C"
34370 #endif
34371 /* We use char because int might match the return type of a gcc2
34372    builtin and then its argument prototype would still apply.  */
34373 char connect ();
34374 int
34375 main ()
34376 {
34377 connect ();
34378   ;
34379   return 0;
34380 }
34381 _ACEOF
34382 rm -f conftest.$ac_objext conftest$ac_exeext
34383 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34384   (eval $ac_link) 2>conftest.er1
34385   ac_status=$?
34386   grep -v '^ *+' conftest.er1 >conftest.err
34387   rm -f conftest.er1
34388   cat conftest.err >&5
34389   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34390   (exit $ac_status); } &&
34391          { ac_try='test -z "$ac_c_werror_flag"
34392                          || test ! -s conftest.err'
34393   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34394   (eval $ac_try) 2>&5
34395   ac_status=$?
34396   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34397   (exit $ac_status); }; } &&
34398          { ac_try='test -s conftest$ac_exeext'
34399   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34400   (eval $ac_try) 2>&5
34401   ac_status=$?
34402   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34403   (exit $ac_status); }; }; then
34404   ac_cv_search_connect="-l$ac_lib"
34405 break
34406 else
34407   echo "$as_me: failed program was:" >&5
34408 sed 's/^/| /' conftest.$ac_ext >&5
34409
34410 fi
34411 rm -f conftest.err conftest.$ac_objext \
34412       conftest$ac_exeext conftest.$ac_ext
34413   done
34414 fi
34415 LIBS=$ac_func_search_save_LIBS
34416 fi
34417 echo "$as_me:$LINENO: result: $ac_cv_search_connect" >&5
34418 echo "${ECHO_T}$ac_cv_search_connect" >&6
34419 if test "$ac_cv_search_connect" != no; then
34420   test "$ac_cv_search_connect" = "none required" || LIBS="$ac_cv_search_connect $LIBS"
34421
34422 cat >>confdefs.h <<\_ACEOF
34423 #define HAVE_CONNECT 1
34424 _ACEOF
34425
34426 fi
34427
34428 echo "$as_me:$LINENO: checking for library containing gethostbyname" >&5
34429 echo $ECHO_N "checking for library containing gethostbyname... $ECHO_C" >&6
34430 if test "${ac_cv_search_gethostbyname+set}" = set; then
34431   echo $ECHO_N "(cached) $ECHO_C" >&6
34432 else
34433   ac_func_search_save_LIBS=$LIBS
34434 ac_cv_search_gethostbyname=no
34435 cat >conftest.$ac_ext <<_ACEOF
34436 /* confdefs.h.  */
34437 _ACEOF
34438 cat confdefs.h >>conftest.$ac_ext
34439 cat >>conftest.$ac_ext <<_ACEOF
34440 /* end confdefs.h.  */
34441
34442 /* Override any gcc2 internal prototype to avoid an error.  */
34443 #ifdef __cplusplus
34444 extern "C"
34445 #endif
34446 /* We use char because int might match the return type of a gcc2
34447    builtin and then its argument prototype would still apply.  */
34448 char gethostbyname ();
34449 int
34450 main ()
34451 {
34452 gethostbyname ();
34453   ;
34454   return 0;
34455 }
34456 _ACEOF
34457 rm -f conftest.$ac_objext conftest$ac_exeext
34458 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34459   (eval $ac_link) 2>conftest.er1
34460   ac_status=$?
34461   grep -v '^ *+' conftest.er1 >conftest.err
34462   rm -f conftest.er1
34463   cat conftest.err >&5
34464   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34465   (exit $ac_status); } &&
34466          { ac_try='test -z "$ac_c_werror_flag"
34467                          || test ! -s conftest.err'
34468   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34469   (eval $ac_try) 2>&5
34470   ac_status=$?
34471   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34472   (exit $ac_status); }; } &&
34473          { ac_try='test -s conftest$ac_exeext'
34474   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34475   (eval $ac_try) 2>&5
34476   ac_status=$?
34477   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34478   (exit $ac_status); }; }; then
34479   ac_cv_search_gethostbyname="none required"
34480 else
34481   echo "$as_me: failed program was:" >&5
34482 sed 's/^/| /' conftest.$ac_ext >&5
34483
34484 fi
34485 rm -f conftest.err conftest.$ac_objext \
34486       conftest$ac_exeext conftest.$ac_ext
34487 if test "$ac_cv_search_gethostbyname" = no; then
34488   for ac_lib in netinet; do
34489     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
34490     cat >conftest.$ac_ext <<_ACEOF
34491 /* confdefs.h.  */
34492 _ACEOF
34493 cat confdefs.h >>conftest.$ac_ext
34494 cat >>conftest.$ac_ext <<_ACEOF
34495 /* end confdefs.h.  */
34496
34497 /* Override any gcc2 internal prototype to avoid an error.  */
34498 #ifdef __cplusplus
34499 extern "C"
34500 #endif
34501 /* We use char because int might match the return type of a gcc2
34502    builtin and then its argument prototype would still apply.  */
34503 char gethostbyname ();
34504 int
34505 main ()
34506 {
34507 gethostbyname ();
34508   ;
34509   return 0;
34510 }
34511 _ACEOF
34512 rm -f conftest.$ac_objext conftest$ac_exeext
34513 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34514   (eval $ac_link) 2>conftest.er1
34515   ac_status=$?
34516   grep -v '^ *+' conftest.er1 >conftest.err
34517   rm -f conftest.er1
34518   cat conftest.err >&5
34519   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34520   (exit $ac_status); } &&
34521          { ac_try='test -z "$ac_c_werror_flag"
34522                          || test ! -s conftest.err'
34523   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34524   (eval $ac_try) 2>&5
34525   ac_status=$?
34526   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34527   (exit $ac_status); }; } &&
34528          { ac_try='test -s conftest$ac_exeext'
34529   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34530   (eval $ac_try) 2>&5
34531   ac_status=$?
34532   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34533   (exit $ac_status); }; }; then
34534   ac_cv_search_gethostbyname="-l$ac_lib"
34535 break
34536 else
34537   echo "$as_me: failed program was:" >&5
34538 sed 's/^/| /' conftest.$ac_ext >&5
34539
34540 fi
34541 rm -f conftest.err conftest.$ac_objext \
34542       conftest$ac_exeext conftest.$ac_ext
34543   done
34544 fi
34545 LIBS=$ac_func_search_save_LIBS
34546 fi
34547 echo "$as_me:$LINENO: result: $ac_cv_search_gethostbyname" >&5
34548 echo "${ECHO_T}$ac_cv_search_gethostbyname" >&6
34549 if test "$ac_cv_search_gethostbyname" != no; then
34550   test "$ac_cv_search_gethostbyname" = "none required" || LIBS="$ac_cv_search_gethostbyname $LIBS"
34551
34552 fi
34553
34554
34555 echo "$as_me:$LINENO: checking for library containing hstrerror" >&5
34556 echo $ECHO_N "checking for library containing hstrerror... $ECHO_C" >&6
34557 if test "${ac_cv_search_hstrerror+set}" = set; then
34558   echo $ECHO_N "(cached) $ECHO_C" >&6
34559 else
34560   ac_func_search_save_LIBS=$LIBS
34561 ac_cv_search_hstrerror=no
34562 cat >conftest.$ac_ext <<_ACEOF
34563 /* confdefs.h.  */
34564 _ACEOF
34565 cat confdefs.h >>conftest.$ac_ext
34566 cat >>conftest.$ac_ext <<_ACEOF
34567 /* end confdefs.h.  */
34568
34569 /* Override any gcc2 internal prototype to avoid an error.  */
34570 #ifdef __cplusplus
34571 extern "C"
34572 #endif
34573 /* We use char because int might match the return type of a gcc2
34574    builtin and then its argument prototype would still apply.  */
34575 char hstrerror ();
34576 int
34577 main ()
34578 {
34579 hstrerror ();
34580   ;
34581   return 0;
34582 }
34583 _ACEOF
34584 rm -f conftest.$ac_objext conftest$ac_exeext
34585 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34586   (eval $ac_link) 2>conftest.er1
34587   ac_status=$?
34588   grep -v '^ *+' conftest.er1 >conftest.err
34589   rm -f conftest.er1
34590   cat conftest.err >&5
34591   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34592   (exit $ac_status); } &&
34593          { ac_try='test -z "$ac_c_werror_flag"
34594                          || test ! -s conftest.err'
34595   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34596   (eval $ac_try) 2>&5
34597   ac_status=$?
34598   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34599   (exit $ac_status); }; } &&
34600          { ac_try='test -s conftest$ac_exeext'
34601   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34602   (eval $ac_try) 2>&5
34603   ac_status=$?
34604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34605   (exit $ac_status); }; }; then
34606   ac_cv_search_hstrerror="none required"
34607 else
34608   echo "$as_me: failed program was:" >&5
34609 sed 's/^/| /' conftest.$ac_ext >&5
34610
34611 fi
34612 rm -f conftest.err conftest.$ac_objext \
34613       conftest$ac_exeext conftest.$ac_ext
34614 if test "$ac_cv_search_hstrerror" = no; then
34615   for ac_lib in resolv; do
34616     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
34617     cat >conftest.$ac_ext <<_ACEOF
34618 /* confdefs.h.  */
34619 _ACEOF
34620 cat confdefs.h >>conftest.$ac_ext
34621 cat >>conftest.$ac_ext <<_ACEOF
34622 /* end confdefs.h.  */
34623
34624 /* Override any gcc2 internal prototype to avoid an error.  */
34625 #ifdef __cplusplus
34626 extern "C"
34627 #endif
34628 /* We use char because int might match the return type of a gcc2
34629    builtin and then its argument prototype would still apply.  */
34630 char hstrerror ();
34631 int
34632 main ()
34633 {
34634 hstrerror ();
34635   ;
34636   return 0;
34637 }
34638 _ACEOF
34639 rm -f conftest.$ac_objext conftest$ac_exeext
34640 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34641   (eval $ac_link) 2>conftest.er1
34642   ac_status=$?
34643   grep -v '^ *+' conftest.er1 >conftest.err
34644   rm -f conftest.er1
34645   cat conftest.err >&5
34646   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34647   (exit $ac_status); } &&
34648          { ac_try='test -z "$ac_c_werror_flag"
34649                          || test ! -s conftest.err'
34650   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34651   (eval $ac_try) 2>&5
34652   ac_status=$?
34653   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34654   (exit $ac_status); }; } &&
34655          { ac_try='test -s conftest$ac_exeext'
34656   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34657   (eval $ac_try) 2>&5
34658   ac_status=$?
34659   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34660   (exit $ac_status); }; }; then
34661   ac_cv_search_hstrerror="-l$ac_lib"
34662 break
34663 else
34664   echo "$as_me: failed program was:" >&5
34665 sed 's/^/| /' conftest.$ac_ext >&5
34666
34667 fi
34668 rm -f conftest.err conftest.$ac_objext \
34669       conftest$ac_exeext conftest.$ac_ext
34670   done
34671 fi
34672 LIBS=$ac_func_search_save_LIBS
34673 fi
34674 echo "$as_me:$LINENO: result: $ac_cv_search_hstrerror" >&5
34675 echo "${ECHO_T}$ac_cv_search_hstrerror" >&6
34676 if test "$ac_cv_search_hstrerror" != no; then
34677   test "$ac_cv_search_hstrerror" = "none required" || LIBS="$ac_cv_search_hstrerror $LIBS"
34678
34679 cat >>confdefs.h <<\_ACEOF
34680 #define HAVE_HSTRERROR 1
34681 _ACEOF
34682
34683 fi
34684
34685
34686
34687
34688
34689
34690 KRB4=/usr/kerberos
34691
34692
34693 # Check whether --with-krb4 or --without-krb4 was given.
34694 if test "${with_krb4+set}" = set; then
34695   withval="$with_krb4"
34696   KRB4=$with_krb4
34697 fi; echo "$as_me:$LINENO: checking for KRB4 in $KRB4" >&5
34698 echo $ECHO_N "checking for KRB4 in $KRB4... $ECHO_C" >&6
34699 echo "$as_me:$LINENO: result: " >&5
34700 echo "${ECHO_T}" >&6
34701
34702
34703 krb_h=
34704 echo "$as_me:$LINENO: checking for krb.h" >&5
34705 echo $ECHO_N "checking for krb.h... $ECHO_C" >&6
34706 if test "$cross_compiling" != yes && test -r $KRB4/include/krb.h; then
34707    hold_cflags=$CFLAGS
34708    CFLAGS="$CFLAGS -I$KRB4/include"
34709    cat >conftest.$ac_ext <<_ACEOF
34710 /* confdefs.h.  */
34711 _ACEOF
34712 cat confdefs.h >>conftest.$ac_ext
34713 cat >>conftest.$ac_ext <<_ACEOF
34714 /* end confdefs.h.  */
34715 #include <krb.h>
34716 int
34717 main ()
34718 {
34719 int i;
34720   ;
34721   return 0;
34722 }
34723 _ACEOF
34724 rm -f conftest.$ac_objext conftest$ac_exeext
34725 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34726   (eval $ac_link) 2>conftest.er1
34727   ac_status=$?
34728   grep -v '^ *+' conftest.er1 >conftest.err
34729   rm -f conftest.er1
34730   cat conftest.err >&5
34731   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34732   (exit $ac_status); } &&
34733          { ac_try='test -z "$ac_c_werror_flag"
34734                          || test ! -s conftest.err'
34735   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34736   (eval $ac_try) 2>&5
34737   ac_status=$?
34738   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34739   (exit $ac_status); }; } &&
34740          { ac_try='test -s conftest$ac_exeext'
34741   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34742   (eval $ac_try) 2>&5
34743   ac_status=$?
34744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34745   (exit $ac_status); }; }; then
34746   krb_h=yes krb_incdir=$KRB4/include
34747 else
34748   echo "$as_me: failed program was:" >&5
34749 sed 's/^/| /' conftest.$ac_ext >&5
34750
34751 CFLAGS=$hold_cflags
34752            cat >conftest.$ac_ext <<_ACEOF
34753 /* confdefs.h.  */
34754 _ACEOF
34755 cat confdefs.h >>conftest.$ac_ext
34756 cat >>conftest.$ac_ext <<_ACEOF
34757 /* end confdefs.h.  */
34758 #include <krb.h>
34759 int
34760 main ()
34761 {
34762 int i;
34763   ;
34764   return 0;
34765 }
34766 _ACEOF
34767 rm -f conftest.$ac_objext conftest$ac_exeext
34768 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34769   (eval $ac_link) 2>conftest.er1
34770   ac_status=$?
34771   grep -v '^ *+' conftest.er1 >conftest.err
34772   rm -f conftest.er1
34773   cat conftest.err >&5
34774   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34775   (exit $ac_status); } &&
34776          { ac_try='test -z "$ac_c_werror_flag"
34777                          || test ! -s conftest.err'
34778   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34779   (eval $ac_try) 2>&5
34780   ac_status=$?
34781   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34782   (exit $ac_status); }; } &&
34783          { ac_try='test -s conftest$ac_exeext'
34784   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34785   (eval $ac_try) 2>&5
34786   ac_status=$?
34787   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34788   (exit $ac_status); }; }; then
34789   krb_h=yes krb_incdir=
34790 else
34791   echo "$as_me: failed program was:" >&5
34792 sed 's/^/| /' conftest.$ac_ext >&5
34793
34794 fi
34795 rm -f conftest.err conftest.$ac_objext \
34796       conftest$ac_exeext conftest.$ac_ext
34797 fi
34798 rm -f conftest.err conftest.$ac_objext \
34799       conftest$ac_exeext conftest.$ac_ext
34800    CFLAGS=$hold_cflags
34801 else
34802    cat >conftest.$ac_ext <<_ACEOF
34803 /* confdefs.h.  */
34804 _ACEOF
34805 cat confdefs.h >>conftest.$ac_ext
34806 cat >>conftest.$ac_ext <<_ACEOF
34807 /* end confdefs.h.  */
34808 #include <krb.h>
34809 int
34810 main ()
34811 {
34812 int i;
34813   ;
34814   return 0;
34815 }
34816 _ACEOF
34817 rm -f conftest.$ac_objext conftest$ac_exeext
34818 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34819   (eval $ac_link) 2>conftest.er1
34820   ac_status=$?
34821   grep -v '^ *+' conftest.er1 >conftest.err
34822   rm -f conftest.er1
34823   cat conftest.err >&5
34824   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34825   (exit $ac_status); } &&
34826          { ac_try='test -z "$ac_c_werror_flag"
34827                          || test ! -s conftest.err'
34828   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34829   (eval $ac_try) 2>&5
34830   ac_status=$?
34831   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34832   (exit $ac_status); }; } &&
34833          { ac_try='test -s conftest$ac_exeext'
34834   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34835   (eval $ac_try) 2>&5
34836   ac_status=$?
34837   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34838   (exit $ac_status); }; }; then
34839   krb_h=yes krb_incdir=
34840 else
34841   echo "$as_me: failed program was:" >&5
34842 sed 's/^/| /' conftest.$ac_ext >&5
34843
34844 fi
34845 rm -f conftest.err conftest.$ac_objext \
34846       conftest$ac_exeext conftest.$ac_ext
34847 fi
34848 if test -z "$krb_h"; then
34849   cat >conftest.$ac_ext <<_ACEOF
34850 /* confdefs.h.  */
34851 _ACEOF
34852 cat confdefs.h >>conftest.$ac_ext
34853 cat >>conftest.$ac_ext <<_ACEOF
34854 /* end confdefs.h.  */
34855 #include <krb.h>
34856 int
34857 main ()
34858 {
34859 int i;
34860   ;
34861   return 0;
34862 }
34863 _ACEOF
34864 rm -f conftest.$ac_objext conftest$ac_exeext
34865 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34866   (eval $ac_link) 2>conftest.er1
34867   ac_status=$?
34868   grep -v '^ *+' conftest.er1 >conftest.err
34869   rm -f conftest.er1
34870   cat conftest.err >&5
34871   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34872   (exit $ac_status); } &&
34873          { ac_try='test -z "$ac_c_werror_flag"
34874                          || test ! -s conftest.err'
34875   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34876   (eval $ac_try) 2>&5
34877   ac_status=$?
34878   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34879   (exit $ac_status); }; } &&
34880          { ac_try='test -s conftest$ac_exeext'
34881   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34882   (eval $ac_try) 2>&5
34883   ac_status=$?
34884   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34885   (exit $ac_status); }; }; then
34886   krb_h=yes krb_incdir=
34887 else
34888   echo "$as_me: failed program was:" >&5
34889 sed 's/^/| /' conftest.$ac_ext >&5
34890
34891 if test "$cross_compiling" != yes && test -r $KRB4/include/kerberosIV/krb.h; then
34892        hold_cflags=$CFLAGS
34893        CFLAGS="$CFLAGS -I$KRB4/include/kerberosIV"
34894        cat >conftest.$ac_ext <<_ACEOF
34895 /* confdefs.h.  */
34896 _ACEOF
34897 cat confdefs.h >>conftest.$ac_ext
34898 cat >>conftest.$ac_ext <<_ACEOF
34899 /* end confdefs.h.  */
34900 #include <krb.h>
34901 int
34902 main ()
34903 {
34904 int i;
34905   ;
34906   return 0;
34907 }
34908 _ACEOF
34909 rm -f conftest.$ac_objext conftest$ac_exeext
34910 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34911   (eval $ac_link) 2>conftest.er1
34912   ac_status=$?
34913   grep -v '^ *+' conftest.er1 >conftest.err
34914   rm -f conftest.er1
34915   cat conftest.err >&5
34916   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34917   (exit $ac_status); } &&
34918          { ac_try='test -z "$ac_c_werror_flag"
34919                          || test ! -s conftest.err'
34920   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34921   (eval $ac_try) 2>&5
34922   ac_status=$?
34923   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34924   (exit $ac_status); }; } &&
34925          { ac_try='test -s conftest$ac_exeext'
34926   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34927   (eval $ac_try) 2>&5
34928   ac_status=$?
34929   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34930   (exit $ac_status); }; }; then
34931   krb_h=yes krb_incdir=$KRB4/include/kerberosIV
34932 else
34933   echo "$as_me: failed program was:" >&5
34934 sed 's/^/| /' conftest.$ac_ext >&5
34935
34936 fi
34937 rm -f conftest.err conftest.$ac_objext \
34938       conftest$ac_exeext conftest.$ac_ext
34939        CFLAGS=$hold_cflags
34940      fi
34941 fi
34942 rm -f conftest.err conftest.$ac_objext \
34943       conftest$ac_exeext conftest.$ac_ext
34944 fi
34945 echo "$as_me:$LINENO: result: $krb_h" >&5
34946 echo "${ECHO_T}$krb_h" >&6
34947
34948 if test -n "$krb_h"; then
34949   krb_lib=
34950   if test "$cross_compiling" != yes && test -r $KRB4/lib/libkrb.a; then
34951        hold_ldflags=$LDFLAGS
34952        LDFLAGS="-L${KRB4}/lib $LDFLAGS"
34953        echo "$as_me:$LINENO: checking for printf in -lkrb" >&5
34954 echo $ECHO_N "checking for printf in -lkrb... $ECHO_C" >&6
34955 if test "${ac_cv_lib_krb_printf+set}" = set; then
34956   echo $ECHO_N "(cached) $ECHO_C" >&6
34957 else
34958   ac_check_lib_save_LIBS=$LIBS
34959 LIBS="-lkrb  $LIBS"
34960 cat >conftest.$ac_ext <<_ACEOF
34961 /* confdefs.h.  */
34962 _ACEOF
34963 cat confdefs.h >>conftest.$ac_ext
34964 cat >>conftest.$ac_ext <<_ACEOF
34965 /* end confdefs.h.  */
34966
34967 /* Override any gcc2 internal prototype to avoid an error.  */
34968 #ifdef __cplusplus
34969 extern "C"
34970 #endif
34971 /* We use char because int might match the return type of a gcc2
34972    builtin and then its argument prototype would still apply.  */
34973 char printf ();
34974 int
34975 main ()
34976 {
34977 printf ();
34978   ;
34979   return 0;
34980 }
34981 _ACEOF
34982 rm -f conftest.$ac_objext conftest$ac_exeext
34983 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34984   (eval $ac_link) 2>conftest.er1
34985   ac_status=$?
34986   grep -v '^ *+' conftest.er1 >conftest.err
34987   rm -f conftest.er1
34988   cat conftest.err >&5
34989   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34990   (exit $ac_status); } &&
34991          { ac_try='test -z "$ac_c_werror_flag"
34992                          || test ! -s conftest.err'
34993   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34994   (eval $ac_try) 2>&5
34995   ac_status=$?
34996   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34997   (exit $ac_status); }; } &&
34998          { ac_try='test -s conftest$ac_exeext'
34999   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35000   (eval $ac_try) 2>&5
35001   ac_status=$?
35002   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35003   (exit $ac_status); }; }; then
35004   ac_cv_lib_krb_printf=yes
35005 else
35006   echo "$as_me: failed program was:" >&5
35007 sed 's/^/| /' conftest.$ac_ext >&5
35008
35009 ac_cv_lib_krb_printf=no
35010 fi
35011 rm -f conftest.err conftest.$ac_objext \
35012       conftest$ac_exeext conftest.$ac_ext
35013 LIBS=$ac_check_lib_save_LIBS
35014 fi
35015 echo "$as_me:$LINENO: result: $ac_cv_lib_krb_printf" >&5
35016 echo "${ECHO_T}$ac_cv_lib_krb_printf" >&6
35017 if test $ac_cv_lib_krb_printf = yes; then
35018   krb_lib=yes krb_libdir=${KRB4}/lib
35019 else
35020   LDFLAGS=$hold_ldflags
35021             # Using open here instead of printf so we don't
35022             # get confused by the cached value for printf from above.
35023             echo "$as_me:$LINENO: checking for open in -lkrb" >&5
35024 echo $ECHO_N "checking for open in -lkrb... $ECHO_C" >&6
35025 if test "${ac_cv_lib_krb_open+set}" = set; then
35026   echo $ECHO_N "(cached) $ECHO_C" >&6
35027 else
35028   ac_check_lib_save_LIBS=$LIBS
35029 LIBS="-lkrb  $LIBS"
35030 cat >conftest.$ac_ext <<_ACEOF
35031 /* confdefs.h.  */
35032 _ACEOF
35033 cat confdefs.h >>conftest.$ac_ext
35034 cat >>conftest.$ac_ext <<_ACEOF
35035 /* end confdefs.h.  */
35036
35037 /* Override any gcc2 internal prototype to avoid an error.  */
35038 #ifdef __cplusplus
35039 extern "C"
35040 #endif
35041 /* We use char because int might match the return type of a gcc2
35042    builtin and then its argument prototype would still apply.  */
35043 char open ();
35044 int
35045 main ()
35046 {
35047 open ();
35048   ;
35049   return 0;
35050 }
35051 _ACEOF
35052 rm -f conftest.$ac_objext conftest$ac_exeext
35053 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35054   (eval $ac_link) 2>conftest.er1
35055   ac_status=$?
35056   grep -v '^ *+' conftest.er1 >conftest.err
35057   rm -f conftest.er1
35058   cat conftest.err >&5
35059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35060   (exit $ac_status); } &&
35061          { ac_try='test -z "$ac_c_werror_flag"
35062                          || test ! -s conftest.err'
35063   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35064   (eval $ac_try) 2>&5
35065   ac_status=$?
35066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35067   (exit $ac_status); }; } &&
35068          { ac_try='test -s conftest$ac_exeext'
35069   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35070   (eval $ac_try) 2>&5
35071   ac_status=$?
35072   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35073   (exit $ac_status); }; }; then
35074   ac_cv_lib_krb_open=yes
35075 else
35076   echo "$as_me: failed program was:" >&5
35077 sed 's/^/| /' conftest.$ac_ext >&5
35078
35079 ac_cv_lib_krb_open=no
35080 fi
35081 rm -f conftest.err conftest.$ac_objext \
35082       conftest$ac_exeext conftest.$ac_ext
35083 LIBS=$ac_check_lib_save_LIBS
35084 fi
35085 echo "$as_me:$LINENO: result: $ac_cv_lib_krb_open" >&5
35086 echo "${ECHO_T}$ac_cv_lib_krb_open" >&6
35087 if test $ac_cv_lib_krb_open = yes; then
35088   krb_lib=yes krb_libdir=
35089 fi
35090
35091 fi
35092
35093        LDFLAGS=$hold_ldflags
35094   else
35095        echo "$as_me:$LINENO: checking for printf in -lkrb" >&5
35096 echo $ECHO_N "checking for printf in -lkrb... $ECHO_C" >&6
35097 if test "${ac_cv_lib_krb_printf+set}" = set; then
35098   echo $ECHO_N "(cached) $ECHO_C" >&6
35099 else
35100   ac_check_lib_save_LIBS=$LIBS
35101 LIBS="-lkrb  $LIBS"
35102 cat >conftest.$ac_ext <<_ACEOF
35103 /* confdefs.h.  */
35104 _ACEOF
35105 cat confdefs.h >>conftest.$ac_ext
35106 cat >>conftest.$ac_ext <<_ACEOF
35107 /* end confdefs.h.  */
35108
35109 /* Override any gcc2 internal prototype to avoid an error.  */
35110 #ifdef __cplusplus
35111 extern "C"
35112 #endif
35113 /* We use char because int might match the return type of a gcc2
35114    builtin and then its argument prototype would still apply.  */
35115 char printf ();
35116 int
35117 main ()
35118 {
35119 printf ();
35120   ;
35121   return 0;
35122 }
35123 _ACEOF
35124 rm -f conftest.$ac_objext conftest$ac_exeext
35125 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35126   (eval $ac_link) 2>conftest.er1
35127   ac_status=$?
35128   grep -v '^ *+' conftest.er1 >conftest.err
35129   rm -f conftest.er1
35130   cat conftest.err >&5
35131   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35132   (exit $ac_status); } &&
35133          { ac_try='test -z "$ac_c_werror_flag"
35134                          || test ! -s conftest.err'
35135   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35136   (eval $ac_try) 2>&5
35137   ac_status=$?
35138   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35139   (exit $ac_status); }; } &&
35140          { ac_try='test -s conftest$ac_exeext'
35141   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35142   (eval $ac_try) 2>&5
35143   ac_status=$?
35144   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35145   (exit $ac_status); }; }; then
35146   ac_cv_lib_krb_printf=yes
35147 else
35148   echo "$as_me: failed program was:" >&5
35149 sed 's/^/| /' conftest.$ac_ext >&5
35150
35151 ac_cv_lib_krb_printf=no
35152 fi
35153 rm -f conftest.err conftest.$ac_objext \
35154       conftest$ac_exeext conftest.$ac_ext
35155 LIBS=$ac_check_lib_save_LIBS
35156 fi
35157 echo "$as_me:$LINENO: result: $ac_cv_lib_krb_printf" >&5
35158 echo "${ECHO_T}$ac_cv_lib_krb_printf" >&6
35159 if test $ac_cv_lib_krb_printf = yes; then
35160   krb_lib=yes krb_libdir=
35161 fi
35162
35163        echo "$as_me:$LINENO: checking for krb_recvauth" >&5
35164 echo $ECHO_N "checking for krb_recvauth... $ECHO_C" >&6
35165 if test "${ac_cv_func_krb_recvauth+set}" = set; then
35166   echo $ECHO_N "(cached) $ECHO_C" >&6
35167 else
35168   cat >conftest.$ac_ext <<_ACEOF
35169 /* confdefs.h.  */
35170 _ACEOF
35171 cat confdefs.h >>conftest.$ac_ext
35172 cat >>conftest.$ac_ext <<_ACEOF
35173 /* end confdefs.h.  */
35174 /* Define krb_recvauth to an innocuous variant, in case <limits.h> declares krb_recvauth.
35175    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
35176 #define krb_recvauth innocuous_krb_recvauth
35177
35178 /* System header to define __stub macros and hopefully few prototypes,
35179     which can conflict with char krb_recvauth (); below.
35180     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35181     <limits.h> exists even on freestanding compilers.  */
35182
35183 #ifdef __STDC__
35184 # include <limits.h>
35185 #else
35186 # include <assert.h>
35187 #endif
35188
35189 #undef krb_recvauth
35190
35191 /* Override any gcc2 internal prototype to avoid an error.  */
35192 #ifdef __cplusplus
35193 extern "C"
35194 {
35195 #endif
35196 /* We use char because int might match the return type of a gcc2
35197    builtin and then its argument prototype would still apply.  */
35198 char krb_recvauth ();
35199 /* The GNU C library defines this for functions which it implements
35200     to always fail with ENOSYS.  Some functions are actually named
35201     something starting with __ and the normal name is an alias.  */
35202 #if defined (__stub_krb_recvauth) || defined (__stub___krb_recvauth)
35203 choke me
35204 #else
35205 char (*f) () = krb_recvauth;
35206 #endif
35207 #ifdef __cplusplus
35208 }
35209 #endif
35210
35211 int
35212 main ()
35213 {
35214 return f != krb_recvauth;
35215   ;
35216   return 0;
35217 }
35218 _ACEOF
35219 rm -f conftest.$ac_objext conftest$ac_exeext
35220 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35221   (eval $ac_link) 2>conftest.er1
35222   ac_status=$?
35223   grep -v '^ *+' conftest.er1 >conftest.err
35224   rm -f conftest.er1
35225   cat conftest.err >&5
35226   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35227   (exit $ac_status); } &&
35228          { ac_try='test -z "$ac_c_werror_flag"
35229                          || test ! -s conftest.err'
35230   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35231   (eval $ac_try) 2>&5
35232   ac_status=$?
35233   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35234   (exit $ac_status); }; } &&
35235          { ac_try='test -s conftest$ac_exeext'
35236   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35237   (eval $ac_try) 2>&5
35238   ac_status=$?
35239   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35240   (exit $ac_status); }; }; then
35241   ac_cv_func_krb_recvauth=yes
35242 else
35243   echo "$as_me: failed program was:" >&5
35244 sed 's/^/| /' conftest.$ac_ext >&5
35245
35246 ac_cv_func_krb_recvauth=no
35247 fi
35248 rm -f conftest.err conftest.$ac_objext \
35249       conftest$ac_exeext conftest.$ac_ext
35250 fi
35251 echo "$as_me:$LINENO: result: $ac_cv_func_krb_recvauth" >&5
35252 echo "${ECHO_T}$ac_cv_func_krb_recvauth" >&6
35253 if test $ac_cv_func_krb_recvauth = yes; then
35254   krb_lib=yes krb_libdir=
35255 fi
35256
35257   fi
35258   if test -n "$krb_lib"; then
35259
35260 cat >>confdefs.h <<\_ACEOF
35261 #define HAVE_KERBEROS 1
35262 _ACEOF
35263
35264     cvs_client_objects="$cvs_client_objects kerberos4-client.o"
35265     test -n "${krb_libdir}" && LIBS="${LIBS} -L${krb_libdir}"
35266     # Put -L${krb_libdir} in LDFLAGS temporarily so that it appears before
35267     # -ldes in the command line.  Don't do it permanently so that we honor
35268     # the user's setting for LDFLAGS
35269     hold_ldflags=$LDFLAGS
35270     test -n "${krb_libdir}" && LDFLAGS="$LDFLAGS -L${krb_libdir}"
35271     echo "$as_me:$LINENO: checking for printf in -ldes" >&5
35272 echo $ECHO_N "checking for printf in -ldes... $ECHO_C" >&6
35273 if test "${ac_cv_lib_des_printf+set}" = set; then
35274   echo $ECHO_N "(cached) $ECHO_C" >&6
35275 else
35276   ac_check_lib_save_LIBS=$LIBS
35277 LIBS="-ldes  $LIBS"
35278 cat >conftest.$ac_ext <<_ACEOF
35279 /* confdefs.h.  */
35280 _ACEOF
35281 cat confdefs.h >>conftest.$ac_ext
35282 cat >>conftest.$ac_ext <<_ACEOF
35283 /* end confdefs.h.  */
35284
35285 /* Override any gcc2 internal prototype to avoid an error.  */
35286 #ifdef __cplusplus
35287 extern "C"
35288 #endif
35289 /* We use char because int might match the return type of a gcc2
35290    builtin and then its argument prototype would still apply.  */
35291 char printf ();
35292 int
35293 main ()
35294 {
35295 printf ();
35296   ;
35297   return 0;
35298 }
35299 _ACEOF
35300 rm -f conftest.$ac_objext conftest$ac_exeext
35301 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35302   (eval $ac_link) 2>conftest.er1
35303   ac_status=$?
35304   grep -v '^ *+' conftest.er1 >conftest.err
35305   rm -f conftest.er1
35306   cat conftest.err >&5
35307   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35308   (exit $ac_status); } &&
35309          { ac_try='test -z "$ac_c_werror_flag"
35310                          || test ! -s conftest.err'
35311   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35312   (eval $ac_try) 2>&5
35313   ac_status=$?
35314   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35315   (exit $ac_status); }; } &&
35316          { ac_try='test -s conftest$ac_exeext'
35317   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35318   (eval $ac_try) 2>&5
35319   ac_status=$?
35320   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35321   (exit $ac_status); }; }; then
35322   ac_cv_lib_des_printf=yes
35323 else
35324   echo "$as_me: failed program was:" >&5
35325 sed 's/^/| /' conftest.$ac_ext >&5
35326
35327 ac_cv_lib_des_printf=no
35328 fi
35329 rm -f conftest.err conftest.$ac_objext \
35330       conftest$ac_exeext conftest.$ac_ext
35331 LIBS=$ac_check_lib_save_LIBS
35332 fi
35333 echo "$as_me:$LINENO: result: $ac_cv_lib_des_printf" >&5
35334 echo "${ECHO_T}$ac_cv_lib_des_printf" >&6
35335 if test $ac_cv_lib_des_printf = yes; then
35336   LIBS="${LIBS} -ldes"
35337 fi
35338
35339
35340 echo "$as_me:$LINENO: checking for krb_recvauth in -lkrb" >&5
35341 echo $ECHO_N "checking for krb_recvauth in -lkrb... $ECHO_C" >&6
35342 if test "${ac_cv_lib_krb_krb_recvauth+set}" = set; then
35343   echo $ECHO_N "(cached) $ECHO_C" >&6
35344 else
35345   ac_check_lib_save_LIBS=$LIBS
35346 LIBS="-lkrb  $LIBS"
35347 cat >conftest.$ac_ext <<_ACEOF
35348 /* confdefs.h.  */
35349 _ACEOF
35350 cat confdefs.h >>conftest.$ac_ext
35351 cat >>conftest.$ac_ext <<_ACEOF
35352 /* end confdefs.h.  */
35353
35354 /* Override any gcc2 internal prototype to avoid an error.  */
35355 #ifdef __cplusplus
35356 extern "C"
35357 #endif
35358 /* We use char because int might match the return type of a gcc2
35359    builtin and then its argument prototype would still apply.  */
35360 char krb_recvauth ();
35361 int
35362 main ()
35363 {
35364 krb_recvauth ();
35365   ;
35366   return 0;
35367 }
35368 _ACEOF
35369 rm -f conftest.$ac_objext conftest$ac_exeext
35370 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35371   (eval $ac_link) 2>conftest.er1
35372   ac_status=$?
35373   grep -v '^ *+' conftest.er1 >conftest.err
35374   rm -f conftest.er1
35375   cat conftest.err >&5
35376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35377   (exit $ac_status); } &&
35378          { ac_try='test -z "$ac_c_werror_flag"
35379                          || test ! -s conftest.err'
35380   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35381   (eval $ac_try) 2>&5
35382   ac_status=$?
35383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35384   (exit $ac_status); }; } &&
35385          { ac_try='test -s conftest$ac_exeext'
35386   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35387   (eval $ac_try) 2>&5
35388   ac_status=$?
35389   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35390   (exit $ac_status); }; }; then
35391   ac_cv_lib_krb_krb_recvauth=yes
35392 else
35393   echo "$as_me: failed program was:" >&5
35394 sed 's/^/| /' conftest.$ac_ext >&5
35395
35396 ac_cv_lib_krb_krb_recvauth=no
35397 fi
35398 rm -f conftest.err conftest.$ac_objext \
35399       conftest$ac_exeext conftest.$ac_ext
35400 LIBS=$ac_check_lib_save_LIBS
35401 fi
35402 echo "$as_me:$LINENO: result: $ac_cv_lib_krb_krb_recvauth" >&5
35403 echo "${ECHO_T}$ac_cv_lib_krb_krb_recvauth" >&6
35404 if test $ac_cv_lib_krb_krb_recvauth = yes; then
35405   cat >>confdefs.h <<_ACEOF
35406 #define HAVE_LIBKRB 1
35407 _ACEOF
35408
35409   LIBS="-lkrb $LIBS"
35410
35411 fi
35412
35413
35414 echo "$as_me:$LINENO: checking for krb_recvauth in -lkrb4" >&5
35415 echo $ECHO_N "checking for krb_recvauth in -lkrb4... $ECHO_C" >&6
35416 if test "${ac_cv_lib_krb4_krb_recvauth+set}" = set; then
35417   echo $ECHO_N "(cached) $ECHO_C" >&6
35418 else
35419   ac_check_lib_save_LIBS=$LIBS
35420 LIBS="-lkrb4  $LIBS"
35421 cat >conftest.$ac_ext <<_ACEOF
35422 /* confdefs.h.  */
35423 _ACEOF
35424 cat confdefs.h >>conftest.$ac_ext
35425 cat >>conftest.$ac_ext <<_ACEOF
35426 /* end confdefs.h.  */
35427
35428 /* Override any gcc2 internal prototype to avoid an error.  */
35429 #ifdef __cplusplus
35430 extern "C"
35431 #endif
35432 /* We use char because int might match the return type of a gcc2
35433    builtin and then its argument prototype would still apply.  */
35434 char krb_recvauth ();
35435 int
35436 main ()
35437 {
35438 krb_recvauth ();
35439   ;
35440   return 0;
35441 }
35442 _ACEOF
35443 rm -f conftest.$ac_objext conftest$ac_exeext
35444 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35445   (eval $ac_link) 2>conftest.er1
35446   ac_status=$?
35447   grep -v '^ *+' conftest.er1 >conftest.err
35448   rm -f conftest.er1
35449   cat conftest.err >&5
35450   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35451   (exit $ac_status); } &&
35452          { ac_try='test -z "$ac_c_werror_flag"
35453                          || test ! -s conftest.err'
35454   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35455   (eval $ac_try) 2>&5
35456   ac_status=$?
35457   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35458   (exit $ac_status); }; } &&
35459          { ac_try='test -s conftest$ac_exeext'
35460   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35461   (eval $ac_try) 2>&5
35462   ac_status=$?
35463   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35464   (exit $ac_status); }; }; then
35465   ac_cv_lib_krb4_krb_recvauth=yes
35466 else
35467   echo "$as_me: failed program was:" >&5
35468 sed 's/^/| /' conftest.$ac_ext >&5
35469
35470 ac_cv_lib_krb4_krb_recvauth=no
35471 fi
35472 rm -f conftest.err conftest.$ac_objext \
35473       conftest$ac_exeext conftest.$ac_ext
35474 LIBS=$ac_check_lib_save_LIBS
35475 fi
35476 echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_krb_recvauth" >&5
35477 echo "${ECHO_T}$ac_cv_lib_krb4_krb_recvauth" >&6
35478 if test $ac_cv_lib_krb4_krb_recvauth = yes; then
35479   cat >>confdefs.h <<_ACEOF
35480 #define HAVE_LIBKRB4 1
35481 _ACEOF
35482
35483   LIBS="-lkrb4 $LIBS"
35484
35485 fi
35486
35487     LDFLAGS=$hold_ldflags
35488     if test -n "$krb_incdir"; then
35489       CPPFLAGS="$CPPFLAGS -I$krb_incdir"
35490     fi
35491   fi
35492 fi
35493
35494 for ac_func in krb_get_err_text
35495 do
35496 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35497 echo "$as_me:$LINENO: checking for $ac_func" >&5
35498 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35499 if eval "test \"\${$as_ac_var+set}\" = set"; then
35500   echo $ECHO_N "(cached) $ECHO_C" >&6
35501 else
35502   cat >conftest.$ac_ext <<_ACEOF
35503 /* confdefs.h.  */
35504 _ACEOF
35505 cat confdefs.h >>conftest.$ac_ext
35506 cat >>conftest.$ac_ext <<_ACEOF
35507 /* end confdefs.h.  */
35508 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35509    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
35510 #define $ac_func innocuous_$ac_func
35511
35512 /* System header to define __stub macros and hopefully few prototypes,
35513     which can conflict with char $ac_func (); below.
35514     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35515     <limits.h> exists even on freestanding compilers.  */
35516
35517 #ifdef __STDC__
35518 # include <limits.h>
35519 #else
35520 # include <assert.h>
35521 #endif
35522
35523 #undef $ac_func
35524
35525 /* Override any gcc2 internal prototype to avoid an error.  */
35526 #ifdef __cplusplus
35527 extern "C"
35528 {
35529 #endif
35530 /* We use char because int might match the return type of a gcc2
35531    builtin and then its argument prototype would still apply.  */
35532 char $ac_func ();
35533 /* The GNU C library defines this for functions which it implements
35534     to always fail with ENOSYS.  Some functions are actually named
35535     something starting with __ and the normal name is an alias.  */
35536 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35537 choke me
35538 #else
35539 char (*f) () = $ac_func;
35540 #endif
35541 #ifdef __cplusplus
35542 }
35543 #endif
35544
35545 int
35546 main ()
35547 {
35548 return f != $ac_func;
35549   ;
35550   return 0;
35551 }
35552 _ACEOF
35553 rm -f conftest.$ac_objext conftest$ac_exeext
35554 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35555   (eval $ac_link) 2>conftest.er1
35556   ac_status=$?
35557   grep -v '^ *+' conftest.er1 >conftest.err
35558   rm -f conftest.er1
35559   cat conftest.err >&5
35560   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35561   (exit $ac_status); } &&
35562          { ac_try='test -z "$ac_c_werror_flag"
35563                          || test ! -s conftest.err'
35564   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35565   (eval $ac_try) 2>&5
35566   ac_status=$?
35567   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35568   (exit $ac_status); }; } &&
35569          { ac_try='test -s conftest$ac_exeext'
35570   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35571   (eval $ac_try) 2>&5
35572   ac_status=$?
35573   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35574   (exit $ac_status); }; }; then
35575   eval "$as_ac_var=yes"
35576 else
35577   echo "$as_me: failed program was:" >&5
35578 sed 's/^/| /' conftest.$ac_ext >&5
35579
35580 eval "$as_ac_var=no"
35581 fi
35582 rm -f conftest.err conftest.$ac_objext \
35583       conftest$ac_exeext conftest.$ac_ext
35584 fi
35585 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35586 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35587 if test `eval echo '${'$as_ac_var'}'` = yes; then
35588   cat >>confdefs.h <<_ACEOF
35589 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35590 _ACEOF
35591
35592 fi
35593 done
35594
35595
35596
35597
35598 #
35599 # Use --with-gssapi[=DIR] to enable GSSAPI support.
35600 #
35601 # defaults to enabled with DIR in default list below
35602 #
35603 # Search for /SUNHEA/ and read the comments about this default below.
35604 #
35605
35606 # Check whether --with-gssapi or --without-gssapi was given.
35607 if test "${with_gssapi+set}" = set; then
35608   withval="$with_gssapi"
35609
35610 else
35611   with_gssapi=yes
35612 fi;
35613 #
35614 # Try to locate a GSSAPI installation if no location was specified, assuming
35615 # GSSAPI was enabled (the default).
35616 #
35617 if test -n "$acx_gssapi_cv_gssapi"; then
35618   # Granted, this is a slightly ugly way to print this info, but the
35619   # AC_CHECK_HEADER used in the search for a GSSAPI installation makes using
35620   # AC_CACHE_CHECK worse
35621   echo "$as_me:$LINENO: checking for GSSAPI" >&5
35622 echo $ECHO_N "checking for GSSAPI... $ECHO_C" >&6
35623 else :; fi
35624 if test "${acx_gssapi_cv_gssapi+set}" = set; then
35625   echo $ECHO_N "(cached) $ECHO_C" >&6
35626 else
35627
35628 if test x$with_gssapi = xyes; then
35629   # --with but no location specified
35630   # assume a gssapi.h or gssapi/gssapi.h locates our install.
35631   #
35632   # This isn't always strictly true.  For instance Solaris 7's SUNHEA (header)
35633   # package installs gssapi.h whether or not the necessary libraries are
35634   # installed.  I'm still not sure whether to consider this a bug.  The long
35635   # way around is to not consider GSSPAI installed unless gss_import_name is
35636   # found, but that brings up a lot of other hassles, like continuing to let
35637   # gcc & ld generate the error messages when the user uses --with-gssapi=dir
35638   # as a debugging aid.  The short way around is to disable GSSAPI by default,
35639   # but I think Sun users have been faced with this for awhile and I haven't
35640   # heard many complaints.
35641   acx_gssapi_save_CPPFLAGS=$CPPFLAGS
35642   for acx_gssapi_cv_gssapi in yes /usr/kerberos /usr/cygnus/kerbnet no; do
35643     if test x$acx_gssapi_cv_gssapi = xno; then
35644       break
35645     fi
35646     if test x$acx_gssapi_cv_gssapi = xyes; then
35647       echo "$as_me:$LINENO: checking for GSSAPI" >&5
35648 echo $ECHO_N "checking for GSSAPI... $ECHO_C" >&6
35649       echo "$as_me:$LINENO: result: " >&5
35650 echo "${ECHO_T}" >&6
35651     else
35652       CPPFLAGS="$acx_gssapi_save_CPPFLAGS -I$acx_gssapi_cv_gssapi/include"
35653       echo "$as_me:$LINENO: checking for GSSAPI in $acx_gssapi_cv_gssapi" >&5
35654 echo $ECHO_N "checking for GSSAPI in $acx_gssapi_cv_gssapi... $ECHO_C" >&6
35655       echo "$as_me:$LINENO: result: " >&5
35656 echo "${ECHO_T}" >&6
35657     fi
35658     unset ac_cv_header_gssapi_h
35659     unset ac_cv_header_gssapi_gssapi_h
35660     unset ac_cv_header_krb5_h
35661
35662
35663
35664 for ac_header in gssapi.h gssapi/gssapi.h krb5.h
35665 do
35666 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
35667 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35668   echo "$as_me:$LINENO: checking for $ac_header" >&5
35669 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35670 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35671   echo $ECHO_N "(cached) $ECHO_C" >&6
35672 fi
35673 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35674 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35675 else
35676   # Is the header compilable?
35677 echo "$as_me:$LINENO: checking $ac_header usability" >&5
35678 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
35679 cat >conftest.$ac_ext <<_ACEOF
35680 /* confdefs.h.  */
35681 _ACEOF
35682 cat confdefs.h >>conftest.$ac_ext
35683 cat >>conftest.$ac_ext <<_ACEOF
35684 /* end confdefs.h.  */
35685 $ac_includes_default
35686 #include <$ac_header>
35687 _ACEOF
35688 rm -f conftest.$ac_objext
35689 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35690   (eval $ac_compile) 2>conftest.er1
35691   ac_status=$?
35692   grep -v '^ *+' conftest.er1 >conftest.err
35693   rm -f conftest.er1
35694   cat conftest.err >&5
35695   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35696   (exit $ac_status); } &&
35697          { ac_try='test -z "$ac_c_werror_flag"
35698                          || test ! -s conftest.err'
35699   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35700   (eval $ac_try) 2>&5
35701   ac_status=$?
35702   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35703   (exit $ac_status); }; } &&
35704          { ac_try='test -s conftest.$ac_objext'
35705   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35706   (eval $ac_try) 2>&5
35707   ac_status=$?
35708   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35709   (exit $ac_status); }; }; then
35710   ac_header_compiler=yes
35711 else
35712   echo "$as_me: failed program was:" >&5
35713 sed 's/^/| /' conftest.$ac_ext >&5
35714
35715 ac_header_compiler=no
35716 fi
35717 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35718 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
35719 echo "${ECHO_T}$ac_header_compiler" >&6
35720
35721 # Is the header present?
35722 echo "$as_me:$LINENO: checking $ac_header presence" >&5
35723 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
35724 cat >conftest.$ac_ext <<_ACEOF
35725 /* confdefs.h.  */
35726 _ACEOF
35727 cat confdefs.h >>conftest.$ac_ext
35728 cat >>conftest.$ac_ext <<_ACEOF
35729 /* end confdefs.h.  */
35730 #include <$ac_header>
35731 _ACEOF
35732 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
35733   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
35734   ac_status=$?
35735   grep -v '^ *+' conftest.er1 >conftest.err
35736   rm -f conftest.er1
35737   cat conftest.err >&5
35738   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35739   (exit $ac_status); } >/dev/null; then
35740   if test -s conftest.err; then
35741     ac_cpp_err=$ac_c_preproc_warn_flag
35742     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
35743   else
35744     ac_cpp_err=
35745   fi
35746 else
35747   ac_cpp_err=yes
35748 fi
35749 if test -z "$ac_cpp_err"; then
35750   ac_header_preproc=yes
35751 else
35752   echo "$as_me: failed program was:" >&5
35753 sed 's/^/| /' conftest.$ac_ext >&5
35754
35755   ac_header_preproc=no
35756 fi
35757 rm -f conftest.err conftest.$ac_ext
35758 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
35759 echo "${ECHO_T}$ac_header_preproc" >&6
35760
35761 # So?  What about this header?
35762 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
35763   yes:no: )
35764     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
35765 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
35766     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
35767 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
35768     ac_header_preproc=yes
35769     ;;
35770   no:yes:* )
35771     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
35772 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
35773     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
35774 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
35775     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
35776 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
35777     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
35778 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
35779     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
35780 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
35781     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
35782 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
35783     (
35784       cat <<\_ASBOX
35785 ## ------------------------------ ##
35786 ## Report this to bug-cvs@gnu.org ##
35787 ## ------------------------------ ##
35788 _ASBOX
35789     ) |
35790       sed "s/^/$as_me: WARNING:     /" >&2
35791     ;;
35792 esac
35793 echo "$as_me:$LINENO: checking for $ac_header" >&5
35794 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35795 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35796   echo $ECHO_N "(cached) $ECHO_C" >&6
35797 else
35798   eval "$as_ac_Header=\$ac_header_preproc"
35799 fi
35800 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35801 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35802
35803 fi
35804 if test `eval echo '${'$as_ac_Header'}'` = yes; then
35805   cat >>confdefs.h <<_ACEOF
35806 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
35807 _ACEOF
35808
35809 fi
35810
35811 done
35812
35813     if (test "$ac_cv_header_gssapi_h" = yes ||
35814           test "$ac_cv_header_gssapi_gssapi_h" = yes) &&
35815         test "$ac_cv_header_krb5_h" = yes; then
35816       break
35817     fi
35818   done
35819   CPPFLAGS=$acx_gssapi_save_CPPFLAGS
35820 else
35821   acx_gssapi_cv_gssapi=$with_gssapi
35822 fi
35823 echo "$as_me:$LINENO: checking for GSSAPI" >&5
35824 echo $ECHO_N "checking for GSSAPI... $ECHO_C" >&6
35825
35826 fi
35827 echo "$as_me:$LINENO: result: $acx_gssapi_cv_gssapi" >&5
35828 echo "${ECHO_T}$acx_gssapi_cv_gssapi" >&6
35829
35830 #
35831 # Set up GSSAPI includes for later use.  We don't bother to check for
35832 # $acx_gssapi_cv_gssapi=no here since that will be caught later.
35833 #
35834 if test x$acx_gssapi_cv_gssapi = xyes; then
35835   # no special includes necessary
35836   GSSAPI_INCLUDES=""
35837 else
35838   # GSSAPI at $acx_gssapi_cv_gssapi (could be 'no')
35839   GSSAPI_INCLUDES=" -I$acx_gssapi_cv_gssapi/include"
35840 fi
35841
35842 #
35843 # Get the rest of the information CVS needs to compile with GSSAPI support
35844 #
35845 if test x$acx_gssapi_cv_gssapi != xno; then
35846   # define HAVE_GSSAPI and set up the includes
35847
35848 cat >>confdefs.h <<\_ACEOF
35849 #define HAVE_GSSAPI
35850 _ACEOF
35851
35852   CPPFLAGS=$CPPFLAGS$GSSAPI_INCLUDES
35853
35854   cvs_client_objects="$cvs_client_objects gssapi-client.o"
35855
35856   # locate any other headers
35857
35858
35859
35860
35861 for ac_header in gssapi.h gssapi/gssapi.h gssapi/gssapi_generic.h krb5.h
35862 do
35863 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
35864 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35865   echo "$as_me:$LINENO: checking for $ac_header" >&5
35866 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35867 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35868   echo $ECHO_N "(cached) $ECHO_C" >&6
35869 fi
35870 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35871 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35872 else
35873   # Is the header compilable?
35874 echo "$as_me:$LINENO: checking $ac_header usability" >&5
35875 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
35876 cat >conftest.$ac_ext <<_ACEOF
35877 /* confdefs.h.  */
35878 _ACEOF
35879 cat confdefs.h >>conftest.$ac_ext
35880 cat >>conftest.$ac_ext <<_ACEOF
35881 /* end confdefs.h.  */
35882 $ac_includes_default
35883 #include <$ac_header>
35884 _ACEOF
35885 rm -f conftest.$ac_objext
35886 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35887   (eval $ac_compile) 2>conftest.er1
35888   ac_status=$?
35889   grep -v '^ *+' conftest.er1 >conftest.err
35890   rm -f conftest.er1
35891   cat conftest.err >&5
35892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35893   (exit $ac_status); } &&
35894          { ac_try='test -z "$ac_c_werror_flag"
35895                          || test ! -s conftest.err'
35896   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35897   (eval $ac_try) 2>&5
35898   ac_status=$?
35899   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35900   (exit $ac_status); }; } &&
35901          { ac_try='test -s conftest.$ac_objext'
35902   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35903   (eval $ac_try) 2>&5
35904   ac_status=$?
35905   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35906   (exit $ac_status); }; }; then
35907   ac_header_compiler=yes
35908 else
35909   echo "$as_me: failed program was:" >&5
35910 sed 's/^/| /' conftest.$ac_ext >&5
35911
35912 ac_header_compiler=no
35913 fi
35914 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35915 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
35916 echo "${ECHO_T}$ac_header_compiler" >&6
35917
35918 # Is the header present?
35919 echo "$as_me:$LINENO: checking $ac_header presence" >&5
35920 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
35921 cat >conftest.$ac_ext <<_ACEOF
35922 /* confdefs.h.  */
35923 _ACEOF
35924 cat confdefs.h >>conftest.$ac_ext
35925 cat >>conftest.$ac_ext <<_ACEOF
35926 /* end confdefs.h.  */
35927 #include <$ac_header>
35928 _ACEOF
35929 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
35930   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
35931   ac_status=$?
35932   grep -v '^ *+' conftest.er1 >conftest.err
35933   rm -f conftest.er1
35934   cat conftest.err >&5
35935   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35936   (exit $ac_status); } >/dev/null; then
35937   if test -s conftest.err; then
35938     ac_cpp_err=$ac_c_preproc_warn_flag
35939     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
35940   else
35941     ac_cpp_err=
35942   fi
35943 else
35944   ac_cpp_err=yes
35945 fi
35946 if test -z "$ac_cpp_err"; then
35947   ac_header_preproc=yes
35948 else
35949   echo "$as_me: failed program was:" >&5
35950 sed 's/^/| /' conftest.$ac_ext >&5
35951
35952   ac_header_preproc=no
35953 fi
35954 rm -f conftest.err conftest.$ac_ext
35955 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
35956 echo "${ECHO_T}$ac_header_preproc" >&6
35957
35958 # So?  What about this header?
35959 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
35960   yes:no: )
35961     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
35962 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
35963     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
35964 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
35965     ac_header_preproc=yes
35966     ;;
35967   no:yes:* )
35968     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
35969 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
35970     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
35971 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
35972     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
35973 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
35974     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
35975 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
35976     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
35977 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
35978     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
35979 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
35980     (
35981       cat <<\_ASBOX
35982 ## ------------------------------ ##
35983 ## Report this to bug-cvs@gnu.org ##
35984 ## ------------------------------ ##
35985 _ASBOX
35986     ) |
35987       sed "s/^/$as_me: WARNING:     /" >&2
35988     ;;
35989 esac
35990 echo "$as_me:$LINENO: checking for $ac_header" >&5
35991 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35992 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35993   echo $ECHO_N "(cached) $ECHO_C" >&6
35994 else
35995   eval "$as_ac_Header=\$ac_header_preproc"
35996 fi
35997 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35998 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35999
36000 fi
36001 if test `eval echo '${'$as_ac_Header'}'` = yes; then
36002   cat >>confdefs.h <<_ACEOF
36003 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
36004 _ACEOF
36005
36006 fi
36007
36008 done
36009
36010   # And look through them for GSS_C_NT_HOSTBASED_SERVICE or its alternatives
36011   echo "$as_me:$LINENO: checking for GSS_C_NT_HOSTBASED_SERVICE" >&5
36012 echo $ECHO_N "checking for GSS_C_NT_HOSTBASED_SERVICE... $ECHO_C" >&6
36013 if test "${acx_gssapi_cv_gss_c_nt_hostbased_service+set}" = set; then
36014   echo $ECHO_N "(cached) $ECHO_C" >&6
36015 else
36016
36017     acx_gssapi_cv_gss_c_nt_hostbased_service=no
36018     if test "$ac_cv_header_gssapi_h" = "yes"; then
36019       cat >conftest.$ac_ext <<_ACEOF
36020 /* confdefs.h.  */
36021 _ACEOF
36022 cat confdefs.h >>conftest.$ac_ext
36023 cat >>conftest.$ac_ext <<_ACEOF
36024 /* end confdefs.h.  */
36025 #include <gssapi.h>
36026
36027 _ACEOF
36028 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
36029   $EGREP "GSS_C_NT_HOSTBASED_SERVICE" >/dev/null 2>&1; then
36030   acx_gssapi_cv_gss_c_nt_hostbased_service=yes
36031 else
36032
36033         cat >conftest.$ac_ext <<_ACEOF
36034 /* confdefs.h.  */
36035 _ACEOF
36036 cat confdefs.h >>conftest.$ac_ext
36037 cat >>conftest.$ac_ext <<_ACEOF
36038 /* end confdefs.h.  */
36039 #include <gssapi.h>
36040
36041 _ACEOF
36042 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
36043   $EGREP "gss_nt_service_name" >/dev/null 2>&1; then
36044   acx_gssapi_cv_gss_c_nt_hostbased_service=gss_nt_service_name
36045 fi
36046 rm -f conftest*
36047
36048
36049 fi
36050 rm -f conftest*
36051
36052     fi
36053     if test $acx_gssapi_cv_gss_c_nt_hostbased_service = no &&
36054        test "$ac_cv_header_gssapi_gssapi_h" = "yes"; then
36055       cat >conftest.$ac_ext <<_ACEOF
36056 /* confdefs.h.  */
36057 _ACEOF
36058 cat confdefs.h >>conftest.$ac_ext
36059 cat >>conftest.$ac_ext <<_ACEOF
36060 /* end confdefs.h.  */
36061 #include <gssapi/gssapi.h>
36062
36063 _ACEOF
36064 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
36065   $EGREP "GSS_C_NT_HOSTBASED_SERVICE" >/dev/null 2>&1; then
36066   acx_gssapi_cv_gss_c_nt_hostbased_service=yes
36067 else
36068
36069         cat >conftest.$ac_ext <<_ACEOF
36070 /* confdefs.h.  */
36071 _ACEOF
36072 cat confdefs.h >>conftest.$ac_ext
36073 cat >>conftest.$ac_ext <<_ACEOF
36074 /* end confdefs.h.  */
36075 #include <gssapi/gssapi.h>
36076
36077 _ACEOF
36078 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
36079   $EGREP "gss_nt_service_name" >/dev/null 2>&1; then
36080   acx_gssapi_cv_gss_c_nt_hostbased_service=gss_nt_service_name
36081 fi
36082 rm -f conftest*
36083
36084
36085 fi
36086 rm -f conftest*
36087
36088     else :; fi
36089     if test $acx_gssapi_cv_gss_c_nt_hostbased_service = no &&
36090        test "$ac_cv_header_gssapi_gssapi_generic_h" = "yes"; then
36091       cat >conftest.$ac_ext <<_ACEOF
36092 /* confdefs.h.  */
36093 _ACEOF
36094 cat confdefs.h >>conftest.$ac_ext
36095 cat >>conftest.$ac_ext <<_ACEOF
36096 /* end confdefs.h.  */
36097 #include <gssapi/gssapi_generic.h>
36098
36099 _ACEOF
36100 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
36101   $EGREP "GSS_C_NT_HOSTBASED_SERVICE" >/dev/null 2>&1; then
36102   acx_gssapi_cv_gss_c_nt_hostbased_service=yes
36103 else
36104
36105         cat >conftest.$ac_ext <<_ACEOF
36106 /* confdefs.h.  */
36107 _ACEOF
36108 cat confdefs.h >>conftest.$ac_ext
36109 cat >>conftest.$ac_ext <<_ACEOF
36110 /* end confdefs.h.  */
36111 #include <gssapi/gssapi_generic.h>
36112
36113 _ACEOF
36114 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
36115   $EGREP "gss_nt_service_name" >/dev/null 2>&1; then
36116   acx_gssapi_cv_gss_c_nt_hostbased_service=gss_nt_service_name
36117 fi
36118 rm -f conftest*
36119
36120
36121 fi
36122 rm -f conftest*
36123
36124     else :; fi
36125
36126 fi
36127 echo "$as_me:$LINENO: result: $acx_gssapi_cv_gss_c_nt_hostbased_service" >&5
36128 echo "${ECHO_T}$acx_gssapi_cv_gss_c_nt_hostbased_service" >&6
36129   if test $acx_gssapi_cv_gss_c_nt_hostbased_service != yes &&
36130      test $acx_gssapi_cv_gss_c_nt_hostbased_service != no; then
36131     # don't define for yes since that means it already means something and
36132     # don't define for no since we'd rather the compiler catch the error
36133     # It's debatable whether we'd prefer that the compiler catch the error
36134     #  - it seems our estranged developer is more likely to be familiar with
36135     #    the intricacies of the compiler than with those of autoconf, but by
36136     #    the same token, maybe we'd rather alert them to the fact that most
36137     #    of the support they need to fix the problem is installed if they can
36138     #    simply locate the appropriate symbol.
36139
36140 cat >>confdefs.h <<_ACEOF
36141 #define GSS_C_NT_HOSTBASED_SERVICE $acx_gssapi_cv_gss_c_nt_hostbased_service
36142 _ACEOF
36143
36144   else :; fi
36145
36146   # Expect the libs to be installed parallel to the headers
36147   #
36148   # We could try once with and once without, but I'm not sure it's worth the
36149   # trouble.
36150   if test x$acx_gssapi_cv_gssapi != xyes; then
36151     if test -z "$LIBS"; then
36152       LIBS="-L$acx_gssapi_cv_gssapi/lib"
36153     else
36154       LIBS="-L$acx_gssapi_cv_gssapi/lib $LIBS"
36155     fi
36156   else :; fi
36157
36158       #
36159   # Some of the order below is particular due to library dependencies
36160   #
36161
36162   #
36163   # des                 Heimdal K 0.3d, but Heimdal seems to be set up such
36164   #                     that it could have been installed from elsewhere.
36165   #
36166   echo "$as_me:$LINENO: checking for library containing des_set_odd_parity" >&5
36167 echo $ECHO_N "checking for library containing des_set_odd_parity... $ECHO_C" >&6
36168 if test "${ac_cv_search_des_set_odd_parity+set}" = set; then
36169   echo $ECHO_N "(cached) $ECHO_C" >&6
36170 else
36171   ac_func_search_save_LIBS=$LIBS
36172 ac_cv_search_des_set_odd_parity=no
36173 cat >conftest.$ac_ext <<_ACEOF
36174 /* confdefs.h.  */
36175 _ACEOF
36176 cat confdefs.h >>conftest.$ac_ext
36177 cat >>conftest.$ac_ext <<_ACEOF
36178 /* end confdefs.h.  */
36179
36180 /* Override any gcc2 internal prototype to avoid an error.  */
36181 #ifdef __cplusplus
36182 extern "C"
36183 #endif
36184 /* We use char because int might match the return type of a gcc2
36185    builtin and then its argument prototype would still apply.  */
36186 char des_set_odd_parity ();
36187 int
36188 main ()
36189 {
36190 des_set_odd_parity ();
36191   ;
36192   return 0;
36193 }
36194 _ACEOF
36195 rm -f conftest.$ac_objext conftest$ac_exeext
36196 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36197   (eval $ac_link) 2>conftest.er1
36198   ac_status=$?
36199   grep -v '^ *+' conftest.er1 >conftest.err
36200   rm -f conftest.er1
36201   cat conftest.err >&5
36202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36203   (exit $ac_status); } &&
36204          { ac_try='test -z "$ac_c_werror_flag"
36205                          || test ! -s conftest.err'
36206   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36207   (eval $ac_try) 2>&5
36208   ac_status=$?
36209   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36210   (exit $ac_status); }; } &&
36211          { ac_try='test -s conftest$ac_exeext'
36212   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36213   (eval $ac_try) 2>&5
36214   ac_status=$?
36215   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36216   (exit $ac_status); }; }; then
36217   ac_cv_search_des_set_odd_parity="none required"
36218 else
36219   echo "$as_me: failed program was:" >&5
36220 sed 's/^/| /' conftest.$ac_ext >&5
36221
36222 fi
36223 rm -f conftest.err conftest.$ac_objext \
36224       conftest$ac_exeext conftest.$ac_ext
36225 if test "$ac_cv_search_des_set_odd_parity" = no; then
36226   for ac_lib in des; do
36227     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
36228     cat >conftest.$ac_ext <<_ACEOF
36229 /* confdefs.h.  */
36230 _ACEOF
36231 cat confdefs.h >>conftest.$ac_ext
36232 cat >>conftest.$ac_ext <<_ACEOF
36233 /* end confdefs.h.  */
36234
36235 /* Override any gcc2 internal prototype to avoid an error.  */
36236 #ifdef __cplusplus
36237 extern "C"
36238 #endif
36239 /* We use char because int might match the return type of a gcc2
36240    builtin and then its argument prototype would still apply.  */
36241 char des_set_odd_parity ();
36242 int
36243 main ()
36244 {
36245 des_set_odd_parity ();
36246   ;
36247   return 0;
36248 }
36249 _ACEOF
36250 rm -f conftest.$ac_objext conftest$ac_exeext
36251 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36252   (eval $ac_link) 2>conftest.er1
36253   ac_status=$?
36254   grep -v '^ *+' conftest.er1 >conftest.err
36255   rm -f conftest.er1
36256   cat conftest.err >&5
36257   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36258   (exit $ac_status); } &&
36259          { ac_try='test -z "$ac_c_werror_flag"
36260                          || test ! -s conftest.err'
36261   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36262   (eval $ac_try) 2>&5
36263   ac_status=$?
36264   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36265   (exit $ac_status); }; } &&
36266          { ac_try='test -s conftest$ac_exeext'
36267   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36268   (eval $ac_try) 2>&5
36269   ac_status=$?
36270   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36271   (exit $ac_status); }; }; then
36272   ac_cv_search_des_set_odd_parity="-l$ac_lib"
36273 break
36274 else
36275   echo "$as_me: failed program was:" >&5
36276 sed 's/^/| /' conftest.$ac_ext >&5
36277
36278 fi
36279 rm -f conftest.err conftest.$ac_objext \
36280       conftest$ac_exeext conftest.$ac_ext
36281   done
36282 fi
36283 LIBS=$ac_func_search_save_LIBS
36284 fi
36285 echo "$as_me:$LINENO: result: $ac_cv_search_des_set_odd_parity" >&5
36286 echo "${ECHO_T}$ac_cv_search_des_set_odd_parity" >&6
36287 if test "$ac_cv_search_des_set_odd_parity" != no; then
36288   test "$ac_cv_search_des_set_odd_parity" = "none required" || LIBS="$ac_cv_search_des_set_odd_parity $LIBS"
36289
36290 fi
36291
36292
36293   #
36294   # com_err             Heimdal K 0.3d
36295   #
36296   # com_err             MIT K5 v1.2.2-beta1
36297   #
36298   echo "$as_me:$LINENO: checking for library containing com_err" >&5
36299 echo $ECHO_N "checking for library containing com_err... $ECHO_C" >&6
36300 if test "${ac_cv_search_com_err+set}" = set; then
36301   echo $ECHO_N "(cached) $ECHO_C" >&6
36302 else
36303   ac_func_search_save_LIBS=$LIBS
36304 ac_cv_search_com_err=no
36305 cat >conftest.$ac_ext <<_ACEOF
36306 /* confdefs.h.  */
36307 _ACEOF
36308 cat confdefs.h >>conftest.$ac_ext
36309 cat >>conftest.$ac_ext <<_ACEOF
36310 /* end confdefs.h.  */
36311
36312 /* Override any gcc2 internal prototype to avoid an error.  */
36313 #ifdef __cplusplus
36314 extern "C"
36315 #endif
36316 /* We use char because int might match the return type of a gcc2
36317    builtin and then its argument prototype would still apply.  */
36318 char com_err ();
36319 int
36320 main ()
36321 {
36322 com_err ();
36323   ;
36324   return 0;
36325 }
36326 _ACEOF
36327 rm -f conftest.$ac_objext conftest$ac_exeext
36328 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36329   (eval $ac_link) 2>conftest.er1
36330   ac_status=$?
36331   grep -v '^ *+' conftest.er1 >conftest.err
36332   rm -f conftest.er1
36333   cat conftest.err >&5
36334   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36335   (exit $ac_status); } &&
36336          { ac_try='test -z "$ac_c_werror_flag"
36337                          || test ! -s conftest.err'
36338   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36339   (eval $ac_try) 2>&5
36340   ac_status=$?
36341   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36342   (exit $ac_status); }; } &&
36343          { ac_try='test -s conftest$ac_exeext'
36344   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36345   (eval $ac_try) 2>&5
36346   ac_status=$?
36347   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36348   (exit $ac_status); }; }; then
36349   ac_cv_search_com_err="none required"
36350 else
36351   echo "$as_me: failed program was:" >&5
36352 sed 's/^/| /' conftest.$ac_ext >&5
36353
36354 fi
36355 rm -f conftest.err conftest.$ac_objext \
36356       conftest$ac_exeext conftest.$ac_ext
36357 if test "$ac_cv_search_com_err" = no; then
36358   for ac_lib in com_err; do
36359     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
36360     cat >conftest.$ac_ext <<_ACEOF
36361 /* confdefs.h.  */
36362 _ACEOF
36363 cat confdefs.h >>conftest.$ac_ext
36364 cat >>conftest.$ac_ext <<_ACEOF
36365 /* end confdefs.h.  */
36366
36367 /* Override any gcc2 internal prototype to avoid an error.  */
36368 #ifdef __cplusplus
36369 extern "C"
36370 #endif
36371 /* We use char because int might match the return type of a gcc2
36372    builtin and then its argument prototype would still apply.  */
36373 char com_err ();
36374 int
36375 main ()
36376 {
36377 com_err ();
36378   ;
36379   return 0;
36380 }
36381 _ACEOF
36382 rm -f conftest.$ac_objext conftest$ac_exeext
36383 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36384   (eval $ac_link) 2>conftest.er1
36385   ac_status=$?
36386   grep -v '^ *+' conftest.er1 >conftest.err
36387   rm -f conftest.er1
36388   cat conftest.err >&5
36389   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36390   (exit $ac_status); } &&
36391          { ac_try='test -z "$ac_c_werror_flag"
36392                          || test ! -s conftest.err'
36393   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36394   (eval $ac_try) 2>&5
36395   ac_status=$?
36396   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36397   (exit $ac_status); }; } &&
36398          { ac_try='test -s conftest$ac_exeext'
36399   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36400   (eval $ac_try) 2>&5
36401   ac_status=$?
36402   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36403   (exit $ac_status); }; }; then
36404   ac_cv_search_com_err="-l$ac_lib"
36405 break
36406 else
36407   echo "$as_me: failed program was:" >&5
36408 sed 's/^/| /' conftest.$ac_ext >&5
36409
36410 fi
36411 rm -f conftest.err conftest.$ac_objext \
36412       conftest$ac_exeext conftest.$ac_ext
36413   done
36414 fi
36415 LIBS=$ac_func_search_save_LIBS
36416 fi
36417 echo "$as_me:$LINENO: result: $ac_cv_search_com_err" >&5
36418 echo "${ECHO_T}$ac_cv_search_com_err" >&6
36419 if test "$ac_cv_search_com_err" != no; then
36420   test "$ac_cv_search_com_err" = "none required" || LIBS="$ac_cv_search_com_err $LIBS"
36421
36422 fi
36423
36424
36425   #
36426   # asn1                Heimdal K 0.3d          -lcom_err
36427   #
36428   echo "$as_me:$LINENO: checking for library containing initialize_asn1_error_table_r" >&5
36429 echo $ECHO_N "checking for library containing initialize_asn1_error_table_r... $ECHO_C" >&6
36430 if test "${ac_cv_search_initialize_asn1_error_table_r+set}" = set; then
36431   echo $ECHO_N "(cached) $ECHO_C" >&6
36432 else
36433   ac_func_search_save_LIBS=$LIBS
36434 ac_cv_search_initialize_asn1_error_table_r=no
36435 cat >conftest.$ac_ext <<_ACEOF
36436 /* confdefs.h.  */
36437 _ACEOF
36438 cat confdefs.h >>conftest.$ac_ext
36439 cat >>conftest.$ac_ext <<_ACEOF
36440 /* end confdefs.h.  */
36441
36442 /* Override any gcc2 internal prototype to avoid an error.  */
36443 #ifdef __cplusplus
36444 extern "C"
36445 #endif
36446 /* We use char because int might match the return type of a gcc2
36447    builtin and then its argument prototype would still apply.  */
36448 char initialize_asn1_error_table_r ();
36449 int
36450 main ()
36451 {
36452 initialize_asn1_error_table_r ();
36453   ;
36454   return 0;
36455 }
36456 _ACEOF
36457 rm -f conftest.$ac_objext conftest$ac_exeext
36458 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36459   (eval $ac_link) 2>conftest.er1
36460   ac_status=$?
36461   grep -v '^ *+' conftest.er1 >conftest.err
36462   rm -f conftest.er1
36463   cat conftest.err >&5
36464   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36465   (exit $ac_status); } &&
36466          { ac_try='test -z "$ac_c_werror_flag"
36467                          || test ! -s conftest.err'
36468   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36469   (eval $ac_try) 2>&5
36470   ac_status=$?
36471   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36472   (exit $ac_status); }; } &&
36473          { ac_try='test -s conftest$ac_exeext'
36474   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36475   (eval $ac_try) 2>&5
36476   ac_status=$?
36477   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36478   (exit $ac_status); }; }; then
36479   ac_cv_search_initialize_asn1_error_table_r="none required"
36480 else
36481   echo "$as_me: failed program was:" >&5
36482 sed 's/^/| /' conftest.$ac_ext >&5
36483
36484 fi
36485 rm -f conftest.err conftest.$ac_objext \
36486       conftest$ac_exeext conftest.$ac_ext
36487 if test "$ac_cv_search_initialize_asn1_error_table_r" = no; then
36488   for ac_lib in asn1; do
36489     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
36490     cat >conftest.$ac_ext <<_ACEOF
36491 /* confdefs.h.  */
36492 _ACEOF
36493 cat confdefs.h >>conftest.$ac_ext
36494 cat >>conftest.$ac_ext <<_ACEOF
36495 /* end confdefs.h.  */
36496
36497 /* Override any gcc2 internal prototype to avoid an error.  */
36498 #ifdef __cplusplus
36499 extern "C"
36500 #endif
36501 /* We use char because int might match the return type of a gcc2
36502    builtin and then its argument prototype would still apply.  */
36503 char initialize_asn1_error_table_r ();
36504 int
36505 main ()
36506 {
36507 initialize_asn1_error_table_r ();
36508   ;
36509   return 0;
36510 }
36511 _ACEOF
36512 rm -f conftest.$ac_objext conftest$ac_exeext
36513 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36514   (eval $ac_link) 2>conftest.er1
36515   ac_status=$?
36516   grep -v '^ *+' conftest.er1 >conftest.err
36517   rm -f conftest.er1
36518   cat conftest.err >&5
36519   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36520   (exit $ac_status); } &&
36521          { ac_try='test -z "$ac_c_werror_flag"
36522                          || test ! -s conftest.err'
36523   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36524   (eval $ac_try) 2>&5
36525   ac_status=$?
36526   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36527   (exit $ac_status); }; } &&
36528          { ac_try='test -s conftest$ac_exeext'
36529   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36530   (eval $ac_try) 2>&5
36531   ac_status=$?
36532   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36533   (exit $ac_status); }; }; then
36534   ac_cv_search_initialize_asn1_error_table_r="-l$ac_lib"
36535 break
36536 else
36537   echo "$as_me: failed program was:" >&5
36538 sed 's/^/| /' conftest.$ac_ext >&5
36539
36540 fi
36541 rm -f conftest.err conftest.$ac_objext \
36542       conftest$ac_exeext conftest.$ac_ext
36543   done
36544 fi
36545 LIBS=$ac_func_search_save_LIBS
36546 fi
36547 echo "$as_me:$LINENO: result: $ac_cv_search_initialize_asn1_error_table_r" >&5
36548 echo "${ECHO_T}$ac_cv_search_initialize_asn1_error_table_r" >&6
36549 if test "$ac_cv_search_initialize_asn1_error_table_r" != no; then
36550   test "$ac_cv_search_initialize_asn1_error_table_r" = "none required" || LIBS="$ac_cv_search_initialize_asn1_error_table_r $LIBS"
36551
36552 fi
36553
36554
36555   #
36556   # resolv              required, but not installed by Heimdal K 0.3d
36557   #
36558   # resolv              MIT K5 1.2.2-beta1
36559   #                     Linux 2.2.17
36560   #
36561   echo "$as_me:$LINENO: checking for library containing __dn_expand" >&5
36562 echo $ECHO_N "checking for library containing __dn_expand... $ECHO_C" >&6
36563 if test "${ac_cv_search___dn_expand+set}" = set; then
36564   echo $ECHO_N "(cached) $ECHO_C" >&6
36565 else
36566   ac_func_search_save_LIBS=$LIBS
36567 ac_cv_search___dn_expand=no
36568 cat >conftest.$ac_ext <<_ACEOF
36569 /* confdefs.h.  */
36570 _ACEOF
36571 cat confdefs.h >>conftest.$ac_ext
36572 cat >>conftest.$ac_ext <<_ACEOF
36573 /* end confdefs.h.  */
36574
36575 /* Override any gcc2 internal prototype to avoid an error.  */
36576 #ifdef __cplusplus
36577 extern "C"
36578 #endif
36579 /* We use char because int might match the return type of a gcc2
36580    builtin and then its argument prototype would still apply.  */
36581 char __dn_expand ();
36582 int
36583 main ()
36584 {
36585 __dn_expand ();
36586   ;
36587   return 0;
36588 }
36589 _ACEOF
36590 rm -f conftest.$ac_objext conftest$ac_exeext
36591 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36592   (eval $ac_link) 2>conftest.er1
36593   ac_status=$?
36594   grep -v '^ *+' conftest.er1 >conftest.err
36595   rm -f conftest.er1
36596   cat conftest.err >&5
36597   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36598   (exit $ac_status); } &&
36599          { ac_try='test -z "$ac_c_werror_flag"
36600                          || test ! -s conftest.err'
36601   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36602   (eval $ac_try) 2>&5
36603   ac_status=$?
36604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36605   (exit $ac_status); }; } &&
36606          { ac_try='test -s conftest$ac_exeext'
36607   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36608   (eval $ac_try) 2>&5
36609   ac_status=$?
36610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36611   (exit $ac_status); }; }; then
36612   ac_cv_search___dn_expand="none required"
36613 else
36614   echo "$as_me: failed program was:" >&5
36615 sed 's/^/| /' conftest.$ac_ext >&5
36616
36617 fi
36618 rm -f conftest.err conftest.$ac_objext \
36619       conftest$ac_exeext conftest.$ac_ext
36620 if test "$ac_cv_search___dn_expand" = no; then
36621   for ac_lib in resolv; do
36622     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
36623     cat >conftest.$ac_ext <<_ACEOF
36624 /* confdefs.h.  */
36625 _ACEOF
36626 cat confdefs.h >>conftest.$ac_ext
36627 cat >>conftest.$ac_ext <<_ACEOF
36628 /* end confdefs.h.  */
36629
36630 /* Override any gcc2 internal prototype to avoid an error.  */
36631 #ifdef __cplusplus
36632 extern "C"
36633 #endif
36634 /* We use char because int might match the return type of a gcc2
36635    builtin and then its argument prototype would still apply.  */
36636 char __dn_expand ();
36637 int
36638 main ()
36639 {
36640 __dn_expand ();
36641   ;
36642   return 0;
36643 }
36644 _ACEOF
36645 rm -f conftest.$ac_objext conftest$ac_exeext
36646 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36647   (eval $ac_link) 2>conftest.er1
36648   ac_status=$?
36649   grep -v '^ *+' conftest.er1 >conftest.err
36650   rm -f conftest.er1
36651   cat conftest.err >&5
36652   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36653   (exit $ac_status); } &&
36654          { ac_try='test -z "$ac_c_werror_flag"
36655                          || test ! -s conftest.err'
36656   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36657   (eval $ac_try) 2>&5
36658   ac_status=$?
36659   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36660   (exit $ac_status); }; } &&
36661          { ac_try='test -s conftest$ac_exeext'
36662   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36663   (eval $ac_try) 2>&5
36664   ac_status=$?
36665   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36666   (exit $ac_status); }; }; then
36667   ac_cv_search___dn_expand="-l$ac_lib"
36668 break
36669 else
36670   echo "$as_me: failed program was:" >&5
36671 sed 's/^/| /' conftest.$ac_ext >&5
36672
36673 fi
36674 rm -f conftest.err conftest.$ac_objext \
36675       conftest$ac_exeext conftest.$ac_ext
36676   done
36677 fi
36678 LIBS=$ac_func_search_save_LIBS
36679 fi
36680 echo "$as_me:$LINENO: result: $ac_cv_search___dn_expand" >&5
36681 echo "${ECHO_T}$ac_cv_search___dn_expand" >&6
36682 if test "$ac_cv_search___dn_expand" != no; then
36683   test "$ac_cv_search___dn_expand" = "none required" || LIBS="$ac_cv_search___dn_expand $LIBS"
36684
36685 fi
36686
36687
36688   #
36689   # crypt              Needed by roken under FreeBSD 4.6.
36690   #
36691   echo "$as_me:$LINENO: checking for library containing crypt" >&5
36692 echo $ECHO_N "checking for library containing crypt... $ECHO_C" >&6
36693 if test "${ac_cv_search_crypt+set}" = set; then
36694   echo $ECHO_N "(cached) $ECHO_C" >&6
36695 else
36696   ac_func_search_save_LIBS=$LIBS
36697 ac_cv_search_crypt=no
36698 cat >conftest.$ac_ext <<_ACEOF
36699 /* confdefs.h.  */
36700 _ACEOF
36701 cat confdefs.h >>conftest.$ac_ext
36702 cat >>conftest.$ac_ext <<_ACEOF
36703 /* end confdefs.h.  */
36704
36705 /* Override any gcc2 internal prototype to avoid an error.  */
36706 #ifdef __cplusplus
36707 extern "C"
36708 #endif
36709 /* We use char because int might match the return type of a gcc2
36710    builtin and then its argument prototype would still apply.  */
36711 char crypt ();
36712 int
36713 main ()
36714 {
36715 crypt ();
36716   ;
36717   return 0;
36718 }
36719 _ACEOF
36720 rm -f conftest.$ac_objext conftest$ac_exeext
36721 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36722   (eval $ac_link) 2>conftest.er1
36723   ac_status=$?
36724   grep -v '^ *+' conftest.er1 >conftest.err
36725   rm -f conftest.er1
36726   cat conftest.err >&5
36727   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36728   (exit $ac_status); } &&
36729          { ac_try='test -z "$ac_c_werror_flag"
36730                          || test ! -s conftest.err'
36731   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36732   (eval $ac_try) 2>&5
36733   ac_status=$?
36734   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36735   (exit $ac_status); }; } &&
36736          { ac_try='test -s conftest$ac_exeext'
36737   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36738   (eval $ac_try) 2>&5
36739   ac_status=$?
36740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36741   (exit $ac_status); }; }; then
36742   ac_cv_search_crypt="none required"
36743 else
36744   echo "$as_me: failed program was:" >&5
36745 sed 's/^/| /' conftest.$ac_ext >&5
36746
36747 fi
36748 rm -f conftest.err conftest.$ac_objext \
36749       conftest$ac_exeext conftest.$ac_ext
36750 if test "$ac_cv_search_crypt" = no; then
36751   for ac_lib in crypt; do
36752     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
36753     cat >conftest.$ac_ext <<_ACEOF
36754 /* confdefs.h.  */
36755 _ACEOF
36756 cat confdefs.h >>conftest.$ac_ext
36757 cat >>conftest.$ac_ext <<_ACEOF
36758 /* end confdefs.h.  */
36759
36760 /* Override any gcc2 internal prototype to avoid an error.  */
36761 #ifdef __cplusplus
36762 extern "C"
36763 #endif
36764 /* We use char because int might match the return type of a gcc2
36765    builtin and then its argument prototype would still apply.  */
36766 char crypt ();
36767 int
36768 main ()
36769 {
36770 crypt ();
36771   ;
36772   return 0;
36773 }
36774 _ACEOF
36775 rm -f conftest.$ac_objext conftest$ac_exeext
36776 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36777   (eval $ac_link) 2>conftest.er1
36778   ac_status=$?
36779   grep -v '^ *+' conftest.er1 >conftest.err
36780   rm -f conftest.er1
36781   cat conftest.err >&5
36782   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36783   (exit $ac_status); } &&
36784          { ac_try='test -z "$ac_c_werror_flag"
36785                          || test ! -s conftest.err'
36786   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36787   (eval $ac_try) 2>&5
36788   ac_status=$?
36789   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36790   (exit $ac_status); }; } &&
36791          { ac_try='test -s conftest$ac_exeext'
36792   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36793   (eval $ac_try) 2>&5
36794   ac_status=$?
36795   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36796   (exit $ac_status); }; }; then
36797   ac_cv_search_crypt="-l$ac_lib"
36798 break
36799 else
36800   echo "$as_me: failed program was:" >&5
36801 sed 's/^/| /' conftest.$ac_ext >&5
36802
36803 fi
36804 rm -f conftest.err conftest.$ac_objext \
36805       conftest$ac_exeext conftest.$ac_ext
36806   done
36807 fi
36808 LIBS=$ac_func_search_save_LIBS
36809 fi
36810 echo "$as_me:$LINENO: result: $ac_cv_search_crypt" >&5
36811 echo "${ECHO_T}$ac_cv_search_crypt" >&6
36812 if test "$ac_cv_search_crypt" != no; then
36813   test "$ac_cv_search_crypt" = "none required" || LIBS="$ac_cv_search_crypt $LIBS"
36814
36815 fi
36816
36817
36818   #
36819   # roken               Heimdal K 0.3d          -lresolv
36820   # roken               FreeBSD 4.6             -lcrypt
36821   #
36822   echo "$as_me:$LINENO: checking for library containing roken_gethostbyaddr" >&5
36823 echo $ECHO_N "checking for library containing roken_gethostbyaddr... $ECHO_C" >&6
36824 if test "${ac_cv_search_roken_gethostbyaddr+set}" = set; then
36825   echo $ECHO_N "(cached) $ECHO_C" >&6
36826 else
36827   ac_func_search_save_LIBS=$LIBS
36828 ac_cv_search_roken_gethostbyaddr=no
36829 cat >conftest.$ac_ext <<_ACEOF
36830 /* confdefs.h.  */
36831 _ACEOF
36832 cat confdefs.h >>conftest.$ac_ext
36833 cat >>conftest.$ac_ext <<_ACEOF
36834 /* end confdefs.h.  */
36835
36836 /* Override any gcc2 internal prototype to avoid an error.  */
36837 #ifdef __cplusplus
36838 extern "C"
36839 #endif
36840 /* We use char because int might match the return type of a gcc2
36841    builtin and then its argument prototype would still apply.  */
36842 char roken_gethostbyaddr ();
36843 int
36844 main ()
36845 {
36846 roken_gethostbyaddr ();
36847   ;
36848   return 0;
36849 }
36850 _ACEOF
36851 rm -f conftest.$ac_objext conftest$ac_exeext
36852 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36853   (eval $ac_link) 2>conftest.er1
36854   ac_status=$?
36855   grep -v '^ *+' conftest.er1 >conftest.err
36856   rm -f conftest.er1
36857   cat conftest.err >&5
36858   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36859   (exit $ac_status); } &&
36860          { ac_try='test -z "$ac_c_werror_flag"
36861                          || test ! -s conftest.err'
36862   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36863   (eval $ac_try) 2>&5
36864   ac_status=$?
36865   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36866   (exit $ac_status); }; } &&
36867          { ac_try='test -s conftest$ac_exeext'
36868   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36869   (eval $ac_try) 2>&5
36870   ac_status=$?
36871   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36872   (exit $ac_status); }; }; then
36873   ac_cv_search_roken_gethostbyaddr="none required"
36874 else
36875   echo "$as_me: failed program was:" >&5
36876 sed 's/^/| /' conftest.$ac_ext >&5
36877
36878 fi
36879 rm -f conftest.err conftest.$ac_objext \
36880       conftest$ac_exeext conftest.$ac_ext
36881 if test "$ac_cv_search_roken_gethostbyaddr" = no; then
36882   for ac_lib in roken; do
36883     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
36884     cat >conftest.$ac_ext <<_ACEOF
36885 /* confdefs.h.  */
36886 _ACEOF
36887 cat confdefs.h >>conftest.$ac_ext
36888 cat >>conftest.$ac_ext <<_ACEOF
36889 /* end confdefs.h.  */
36890
36891 /* Override any gcc2 internal prototype to avoid an error.  */
36892 #ifdef __cplusplus
36893 extern "C"
36894 #endif
36895 /* We use char because int might match the return type of a gcc2
36896    builtin and then its argument prototype would still apply.  */
36897 char roken_gethostbyaddr ();
36898 int
36899 main ()
36900 {
36901 roken_gethostbyaddr ();
36902   ;
36903   return 0;
36904 }
36905 _ACEOF
36906 rm -f conftest.$ac_objext conftest$ac_exeext
36907 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36908   (eval $ac_link) 2>conftest.er1
36909   ac_status=$?
36910   grep -v '^ *+' conftest.er1 >conftest.err
36911   rm -f conftest.er1
36912   cat conftest.err >&5
36913   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36914   (exit $ac_status); } &&
36915          { ac_try='test -z "$ac_c_werror_flag"
36916                          || test ! -s conftest.err'
36917   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36918   (eval $ac_try) 2>&5
36919   ac_status=$?
36920   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36921   (exit $ac_status); }; } &&
36922          { ac_try='test -s conftest$ac_exeext'
36923   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36924   (eval $ac_try) 2>&5
36925   ac_status=$?
36926   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36927   (exit $ac_status); }; }; then
36928   ac_cv_search_roken_gethostbyaddr="-l$ac_lib"
36929 break
36930 else
36931   echo "$as_me: failed program was:" >&5
36932 sed 's/^/| /' conftest.$ac_ext >&5
36933
36934 fi
36935 rm -f conftest.err conftest.$ac_objext \
36936       conftest$ac_exeext conftest.$ac_ext
36937   done
36938 fi
36939 LIBS=$ac_func_search_save_LIBS
36940 fi
36941 echo "$as_me:$LINENO: result: $ac_cv_search_roken_gethostbyaddr" >&5
36942 echo "${ECHO_T}$ac_cv_search_roken_gethostbyaddr" >&6
36943 if test "$ac_cv_search_roken_gethostbyaddr" != no; then
36944   test "$ac_cv_search_roken_gethostbyaddr" = "none required" || LIBS="$ac_cv_search_roken_gethostbyaddr $LIBS"
36945
36946 fi
36947
36948
36949   #
36950   # k5crypto            MIT K5 v1.2.2-beta1
36951   #
36952   echo "$as_me:$LINENO: checking for library containing valid_enctype" >&5
36953 echo $ECHO_N "checking for library containing valid_enctype... $ECHO_C" >&6
36954 if test "${ac_cv_search_valid_enctype+set}" = set; then
36955   echo $ECHO_N "(cached) $ECHO_C" >&6
36956 else
36957   ac_func_search_save_LIBS=$LIBS
36958 ac_cv_search_valid_enctype=no
36959 cat >conftest.$ac_ext <<_ACEOF
36960 /* confdefs.h.  */
36961 _ACEOF
36962 cat confdefs.h >>conftest.$ac_ext
36963 cat >>conftest.$ac_ext <<_ACEOF
36964 /* end confdefs.h.  */
36965
36966 /* Override any gcc2 internal prototype to avoid an error.  */
36967 #ifdef __cplusplus
36968 extern "C"
36969 #endif
36970 /* We use char because int might match the return type of a gcc2
36971    builtin and then its argument prototype would still apply.  */
36972 char valid_enctype ();
36973 int
36974 main ()
36975 {
36976 valid_enctype ();
36977   ;
36978   return 0;
36979 }
36980 _ACEOF
36981 rm -f conftest.$ac_objext conftest$ac_exeext
36982 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36983   (eval $ac_link) 2>conftest.er1
36984   ac_status=$?
36985   grep -v '^ *+' conftest.er1 >conftest.err
36986   rm -f conftest.er1
36987   cat conftest.err >&5
36988   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36989   (exit $ac_status); } &&
36990          { ac_try='test -z "$ac_c_werror_flag"
36991                          || test ! -s conftest.err'
36992   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36993   (eval $ac_try) 2>&5
36994   ac_status=$?
36995   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36996   (exit $ac_status); }; } &&
36997          { ac_try='test -s conftest$ac_exeext'
36998   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36999   (eval $ac_try) 2>&5
37000   ac_status=$?
37001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37002   (exit $ac_status); }; }; then
37003   ac_cv_search_valid_enctype="none required"
37004 else
37005   echo "$as_me: failed program was:" >&5
37006 sed 's/^/| /' conftest.$ac_ext >&5
37007
37008 fi
37009 rm -f conftest.err conftest.$ac_objext \
37010       conftest$ac_exeext conftest.$ac_ext
37011 if test "$ac_cv_search_valid_enctype" = no; then
37012   for ac_lib in k5crypto; do
37013     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
37014     cat >conftest.$ac_ext <<_ACEOF
37015 /* confdefs.h.  */
37016 _ACEOF
37017 cat confdefs.h >>conftest.$ac_ext
37018 cat >>conftest.$ac_ext <<_ACEOF
37019 /* end confdefs.h.  */
37020
37021 /* Override any gcc2 internal prototype to avoid an error.  */
37022 #ifdef __cplusplus
37023 extern "C"
37024 #endif
37025 /* We use char because int might match the return type of a gcc2
37026    builtin and then its argument prototype would still apply.  */
37027 char valid_enctype ();
37028 int
37029 main ()
37030 {
37031 valid_enctype ();
37032   ;
37033   return 0;
37034 }
37035 _ACEOF
37036 rm -f conftest.$ac_objext conftest$ac_exeext
37037 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37038   (eval $ac_link) 2>conftest.er1
37039   ac_status=$?
37040   grep -v '^ *+' conftest.er1 >conftest.err
37041   rm -f conftest.er1
37042   cat conftest.err >&5
37043   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37044   (exit $ac_status); } &&
37045          { ac_try='test -z "$ac_c_werror_flag"
37046                          || test ! -s conftest.err'
37047   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37048   (eval $ac_try) 2>&5
37049   ac_status=$?
37050   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37051   (exit $ac_status); }; } &&
37052          { ac_try='test -s conftest$ac_exeext'
37053   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37054   (eval $ac_try) 2>&5
37055   ac_status=$?
37056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37057   (exit $ac_status); }; }; then
37058   ac_cv_search_valid_enctype="-l$ac_lib"
37059 break
37060 else
37061   echo "$as_me: failed program was:" >&5
37062 sed 's/^/| /' conftest.$ac_ext >&5
37063
37064 fi
37065 rm -f conftest.err conftest.$ac_objext \
37066       conftest$ac_exeext conftest.$ac_ext
37067   done
37068 fi
37069 LIBS=$ac_func_search_save_LIBS
37070 fi
37071 echo "$as_me:$LINENO: result: $ac_cv_search_valid_enctype" >&5
37072 echo "${ECHO_T}$ac_cv_search_valid_enctype" >&6
37073 if test "$ac_cv_search_valid_enctype" != no; then
37074   test "$ac_cv_search_valid_enctype" = "none required" || LIBS="$ac_cv_search_valid_enctype $LIBS"
37075
37076 fi
37077
37078
37079   #
37080   # gen                 ? ? ?                   Needed on Irix 5.3 with some
37081   #                     Irix 5.3                version of Kerberos.  I'm not
37082   #                                             sure which since Irix didn't
37083   #                                             get any testing this time
37084   #                                             around.  Original comment:
37085   #
37086   # This is necessary on Irix 5.3, in order to link against libkrb5 --
37087   # there, an_to_ln.o refers to things defined only in -lgen.
37088   #
37089   echo "$as_me:$LINENO: checking for library containing compile" >&5
37090 echo $ECHO_N "checking for library containing compile... $ECHO_C" >&6
37091 if test "${ac_cv_search_compile+set}" = set; then
37092   echo $ECHO_N "(cached) $ECHO_C" >&6
37093 else
37094   ac_func_search_save_LIBS=$LIBS
37095 ac_cv_search_compile=no
37096 cat >conftest.$ac_ext <<_ACEOF
37097 /* confdefs.h.  */
37098 _ACEOF
37099 cat confdefs.h >>conftest.$ac_ext
37100 cat >>conftest.$ac_ext <<_ACEOF
37101 /* end confdefs.h.  */
37102
37103 /* Override any gcc2 internal prototype to avoid an error.  */
37104 #ifdef __cplusplus
37105 extern "C"
37106 #endif
37107 /* We use char because int might match the return type of a gcc2
37108    builtin and then its argument prototype would still apply.  */
37109 char compile ();
37110 int
37111 main ()
37112 {
37113 compile ();
37114   ;
37115   return 0;
37116 }
37117 _ACEOF
37118 rm -f conftest.$ac_objext conftest$ac_exeext
37119 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37120   (eval $ac_link) 2>conftest.er1
37121   ac_status=$?
37122   grep -v '^ *+' conftest.er1 >conftest.err
37123   rm -f conftest.er1
37124   cat conftest.err >&5
37125   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37126   (exit $ac_status); } &&
37127          { ac_try='test -z "$ac_c_werror_flag"
37128                          || test ! -s conftest.err'
37129   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37130   (eval $ac_try) 2>&5
37131   ac_status=$?
37132   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37133   (exit $ac_status); }; } &&
37134          { ac_try='test -s conftest$ac_exeext'
37135   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37136   (eval $ac_try) 2>&5
37137   ac_status=$?
37138   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37139   (exit $ac_status); }; }; then
37140   ac_cv_search_compile="none required"
37141 else
37142   echo "$as_me: failed program was:" >&5
37143 sed 's/^/| /' conftest.$ac_ext >&5
37144
37145 fi
37146 rm -f conftest.err conftest.$ac_objext \
37147       conftest$ac_exeext conftest.$ac_ext
37148 if test "$ac_cv_search_compile" = no; then
37149   for ac_lib in gen; do
37150     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
37151     cat >conftest.$ac_ext <<_ACEOF
37152 /* confdefs.h.  */
37153 _ACEOF
37154 cat confdefs.h >>conftest.$ac_ext
37155 cat >>conftest.$ac_ext <<_ACEOF
37156 /* end confdefs.h.  */
37157
37158 /* Override any gcc2 internal prototype to avoid an error.  */
37159 #ifdef __cplusplus
37160 extern "C"
37161 #endif
37162 /* We use char because int might match the return type of a gcc2
37163    builtin and then its argument prototype would still apply.  */
37164 char compile ();
37165 int
37166 main ()
37167 {
37168 compile ();
37169   ;
37170   return 0;
37171 }
37172 _ACEOF
37173 rm -f conftest.$ac_objext conftest$ac_exeext
37174 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37175   (eval $ac_link) 2>conftest.er1
37176   ac_status=$?
37177   grep -v '^ *+' conftest.er1 >conftest.err
37178   rm -f conftest.er1
37179   cat conftest.err >&5
37180   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37181   (exit $ac_status); } &&
37182          { ac_try='test -z "$ac_c_werror_flag"
37183                          || test ! -s conftest.err'
37184   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37185   (eval $ac_try) 2>&5
37186   ac_status=$?
37187   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37188   (exit $ac_status); }; } &&
37189          { ac_try='test -s conftest$ac_exeext'
37190   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37191   (eval $ac_try) 2>&5
37192   ac_status=$?
37193   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37194   (exit $ac_status); }; }; then
37195   ac_cv_search_compile="-l$ac_lib"
37196 break
37197 else
37198   echo "$as_me: failed program was:" >&5
37199 sed 's/^/| /' conftest.$ac_ext >&5
37200
37201 fi
37202 rm -f conftest.err conftest.$ac_objext \
37203       conftest$ac_exeext conftest.$ac_ext
37204   done
37205 fi
37206 LIBS=$ac_func_search_save_LIBS
37207 fi
37208 echo "$as_me:$LINENO: result: $ac_cv_search_compile" >&5
37209 echo "${ECHO_T}$ac_cv_search_compile" >&6
37210 if test "$ac_cv_search_compile" != no; then
37211   test "$ac_cv_search_compile" = "none required" || LIBS="$ac_cv_search_compile $LIBS"
37212
37213 fi
37214
37215
37216   #
37217   # krb5                ? ? ?                   -lgen -l???
37218   #                     Irix 5.3
37219   #
37220   # krb5                MIT K5 v1.1.1
37221   #
37222   # krb5                MIT K5 v1.2.2-beta1     -lcrypto -lcom_err
37223   #                     Linux 2.2.17
37224   #
37225   # krb5                MIT K5 v1.2.2-beta1     -lcrypto -lcom_err -lresolv
37226   #
37227   # krb5                Heimdal K 0.3d          -lasn1 -lroken -ldes
37228   #
37229   echo "$as_me:$LINENO: checking for library containing krb5_free_context" >&5
37230 echo $ECHO_N "checking for library containing krb5_free_context... $ECHO_C" >&6
37231 if test "${ac_cv_search_krb5_free_context+set}" = set; then
37232   echo $ECHO_N "(cached) $ECHO_C" >&6
37233 else
37234   ac_func_search_save_LIBS=$LIBS
37235 ac_cv_search_krb5_free_context=no
37236 cat >conftest.$ac_ext <<_ACEOF
37237 /* confdefs.h.  */
37238 _ACEOF
37239 cat confdefs.h >>conftest.$ac_ext
37240 cat >>conftest.$ac_ext <<_ACEOF
37241 /* end confdefs.h.  */
37242
37243 /* Override any gcc2 internal prototype to avoid an error.  */
37244 #ifdef __cplusplus
37245 extern "C"
37246 #endif
37247 /* We use char because int might match the return type of a gcc2
37248    builtin and then its argument prototype would still apply.  */
37249 char krb5_free_context ();
37250 int
37251 main ()
37252 {
37253 krb5_free_context ();
37254   ;
37255   return 0;
37256 }
37257 _ACEOF
37258 rm -f conftest.$ac_objext conftest$ac_exeext
37259 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37260   (eval $ac_link) 2>conftest.er1
37261   ac_status=$?
37262   grep -v '^ *+' conftest.er1 >conftest.err
37263   rm -f conftest.er1
37264   cat conftest.err >&5
37265   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37266   (exit $ac_status); } &&
37267          { ac_try='test -z "$ac_c_werror_flag"
37268                          || test ! -s conftest.err'
37269   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37270   (eval $ac_try) 2>&5
37271   ac_status=$?
37272   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37273   (exit $ac_status); }; } &&
37274          { ac_try='test -s conftest$ac_exeext'
37275   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37276   (eval $ac_try) 2>&5
37277   ac_status=$?
37278   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37279   (exit $ac_status); }; }; then
37280   ac_cv_search_krb5_free_context="none required"
37281 else
37282   echo "$as_me: failed program was:" >&5
37283 sed 's/^/| /' conftest.$ac_ext >&5
37284
37285 fi
37286 rm -f conftest.err conftest.$ac_objext \
37287       conftest$ac_exeext conftest.$ac_ext
37288 if test "$ac_cv_search_krb5_free_context" = no; then
37289   for ac_lib in krb5; do
37290     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
37291     cat >conftest.$ac_ext <<_ACEOF
37292 /* confdefs.h.  */
37293 _ACEOF
37294 cat confdefs.h >>conftest.$ac_ext
37295 cat >>conftest.$ac_ext <<_ACEOF
37296 /* end confdefs.h.  */
37297
37298 /* Override any gcc2 internal prototype to avoid an error.  */
37299 #ifdef __cplusplus
37300 extern "C"
37301 #endif
37302 /* We use char because int might match the return type of a gcc2
37303    builtin and then its argument prototype would still apply.  */
37304 char krb5_free_context ();
37305 int
37306 main ()
37307 {
37308 krb5_free_context ();
37309   ;
37310   return 0;
37311 }
37312 _ACEOF
37313 rm -f conftest.$ac_objext conftest$ac_exeext
37314 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37315   (eval $ac_link) 2>conftest.er1
37316   ac_status=$?
37317   grep -v '^ *+' conftest.er1 >conftest.err
37318   rm -f conftest.er1
37319   cat conftest.err >&5
37320   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37321   (exit $ac_status); } &&
37322          { ac_try='test -z "$ac_c_werror_flag"
37323                          || test ! -s conftest.err'
37324   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37325   (eval $ac_try) 2>&5
37326   ac_status=$?
37327   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37328   (exit $ac_status); }; } &&
37329          { ac_try='test -s conftest$ac_exeext'
37330   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37331   (eval $ac_try) 2>&5
37332   ac_status=$?
37333   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37334   (exit $ac_status); }; }; then
37335   ac_cv_search_krb5_free_context="-l$ac_lib"
37336 break
37337 else
37338   echo "$as_me: failed program was:" >&5
37339 sed 's/^/| /' conftest.$ac_ext >&5
37340
37341 fi
37342 rm -f conftest.err conftest.$ac_objext \
37343       conftest$ac_exeext conftest.$ac_ext
37344   done
37345 fi
37346 LIBS=$ac_func_search_save_LIBS
37347 fi
37348 echo "$as_me:$LINENO: result: $ac_cv_search_krb5_free_context" >&5
37349 echo "${ECHO_T}$ac_cv_search_krb5_free_context" >&6
37350 if test "$ac_cv_search_krb5_free_context" != no; then
37351   test "$ac_cv_search_krb5_free_context" = "none required" || LIBS="$ac_cv_search_krb5_free_context $LIBS"
37352
37353 fi
37354
37355
37356   #
37357   # gssapi_krb5         Only lib needed with MIT K5 v1.2.1, so find it first in
37358   #                     order to prefer MIT Kerberos.  If both MIT & Heimdal
37359   #                     Kerberos are installed and in the path, this will leave
37360   #                     some of the libraries above in LIBS unnecessarily, but
37361   #                     noone would ever do that, right?
37362   #
37363   # gssapi_krb5         MIT K5 v1.2.2-beta1     -lkrb5
37364   #
37365   # gssapi              Heimdal K 0.3d          -lkrb5
37366   #
37367   echo "$as_me:$LINENO: checking for library containing gss_import_name" >&5
37368 echo $ECHO_N "checking for library containing gss_import_name... $ECHO_C" >&6
37369 if test "${ac_cv_search_gss_import_name+set}" = set; then
37370   echo $ECHO_N "(cached) $ECHO_C" >&6
37371 else
37372   ac_func_search_save_LIBS=$LIBS
37373 ac_cv_search_gss_import_name=no
37374 cat >conftest.$ac_ext <<_ACEOF
37375 /* confdefs.h.  */
37376 _ACEOF
37377 cat confdefs.h >>conftest.$ac_ext
37378 cat >>conftest.$ac_ext <<_ACEOF
37379 /* end confdefs.h.  */
37380
37381 /* Override any gcc2 internal prototype to avoid an error.  */
37382 #ifdef __cplusplus
37383 extern "C"
37384 #endif
37385 /* We use char because int might match the return type of a gcc2
37386    builtin and then its argument prototype would still apply.  */
37387 char gss_import_name ();
37388 int
37389 main ()
37390 {
37391 gss_import_name ();
37392   ;
37393   return 0;
37394 }
37395 _ACEOF
37396 rm -f conftest.$ac_objext conftest$ac_exeext
37397 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37398   (eval $ac_link) 2>conftest.er1
37399   ac_status=$?
37400   grep -v '^ *+' conftest.er1 >conftest.err
37401   rm -f conftest.er1
37402   cat conftest.err >&5
37403   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37404   (exit $ac_status); } &&
37405          { ac_try='test -z "$ac_c_werror_flag"
37406                          || test ! -s conftest.err'
37407   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37408   (eval $ac_try) 2>&5
37409   ac_status=$?
37410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37411   (exit $ac_status); }; } &&
37412          { ac_try='test -s conftest$ac_exeext'
37413   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37414   (eval $ac_try) 2>&5
37415   ac_status=$?
37416   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37417   (exit $ac_status); }; }; then
37418   ac_cv_search_gss_import_name="none required"
37419 else
37420   echo "$as_me: failed program was:" >&5
37421 sed 's/^/| /' conftest.$ac_ext >&5
37422
37423 fi
37424 rm -f conftest.err conftest.$ac_objext \
37425       conftest$ac_exeext conftest.$ac_ext
37426 if test "$ac_cv_search_gss_import_name" = no; then
37427   for ac_lib in gssapi_krb5 gssapi; do
37428     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
37429     cat >conftest.$ac_ext <<_ACEOF
37430 /* confdefs.h.  */
37431 _ACEOF
37432 cat confdefs.h >>conftest.$ac_ext
37433 cat >>conftest.$ac_ext <<_ACEOF
37434 /* end confdefs.h.  */
37435
37436 /* Override any gcc2 internal prototype to avoid an error.  */
37437 #ifdef __cplusplus
37438 extern "C"
37439 #endif
37440 /* We use char because int might match the return type of a gcc2
37441    builtin and then its argument prototype would still apply.  */
37442 char gss_import_name ();
37443 int
37444 main ()
37445 {
37446 gss_import_name ();
37447   ;
37448   return 0;
37449 }
37450 _ACEOF
37451 rm -f conftest.$ac_objext conftest$ac_exeext
37452 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37453   (eval $ac_link) 2>conftest.er1
37454   ac_status=$?
37455   grep -v '^ *+' conftest.er1 >conftest.err
37456   rm -f conftest.er1
37457   cat conftest.err >&5
37458   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37459   (exit $ac_status); } &&
37460          { ac_try='test -z "$ac_c_werror_flag"
37461                          || test ! -s conftest.err'
37462   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37463   (eval $ac_try) 2>&5
37464   ac_status=$?
37465   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37466   (exit $ac_status); }; } &&
37467          { ac_try='test -s conftest$ac_exeext'
37468   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37469   (eval $ac_try) 2>&5
37470   ac_status=$?
37471   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37472   (exit $ac_status); }; }; then
37473   ac_cv_search_gss_import_name="-l$ac_lib"
37474 break
37475 else
37476   echo "$as_me: failed program was:" >&5
37477 sed 's/^/| /' conftest.$ac_ext >&5
37478
37479 fi
37480 rm -f conftest.err conftest.$ac_objext \
37481       conftest$ac_exeext conftest.$ac_ext
37482   done
37483 fi
37484 LIBS=$ac_func_search_save_LIBS
37485 fi
37486 echo "$as_me:$LINENO: result: $ac_cv_search_gss_import_name" >&5
37487 echo "${ECHO_T}$ac_cv_search_gss_import_name" >&6
37488 if test "$ac_cv_search_gss_import_name" != no; then
37489   test "$ac_cv_search_gss_import_name" = "none required" || LIBS="$ac_cv_search_gss_import_name $LIBS"
37490
37491 fi
37492
37493 fi
37494
37495
37496
37497 #
37498 # Use --with-zlib to build with a zlib other than the version distributed
37499 # with CVS.
37500 #
37501 # defaults to the included snapshot of zlib
37502 #
37503
37504 # Check whether --with-external-zlib or --without-external-zlib was given.
37505 if test "${with_external_zlib+set}" = set; then
37506   withval="$with_external_zlib"
37507   with_external_zlib=$withval
37508 else
37509   with_external_zlib=no
37510 fi;
37511
37512 #
37513 # Try to locate a ZLIB installation if no location was specified, assuming
37514 # external ZLIB was enabled.
37515 #
37516 if test -n "$acx_zlib_cv_external_zlib"; then
37517   # Granted, this is a slightly ugly way to print this info, but the
37518   # AC_CHECK_HEADER used in the search for a ZLIB installation makes using
37519   # AC_CACHE_CHECK worse
37520   echo "$as_me:$LINENO: checking for external ZLIB" >&5
37521 echo $ECHO_N "checking for external ZLIB... $ECHO_C" >&6
37522 else :; fi
37523 if test "${acx_zlib_cv_external_zlib+set}" = set; then
37524   echo $ECHO_N "(cached) $ECHO_C" >&6
37525 else
37526
37527   #
37528   # --with but no location specified
37529   # assume zlib.h locates our install.
37530   #
37531   acx_zlib_save_CPPFLAGS=$CPPFLAGS
37532   for acx_zlib_cv_external_zlib in yes /usr/local no; do
37533     if test x$acx_zlib_cv_external_zlib = xno; then
37534       break
37535     fi
37536     if test x$acx_zlib_cv_external_zlib = xyes; then
37537       echo "$as_me:$LINENO: checking for external ZLIB" >&5
37538 echo $ECHO_N "checking for external ZLIB... $ECHO_C" >&6
37539       echo "$as_me:$LINENO: result: " >&5
37540 echo "${ECHO_T}" >&6
37541     else
37542       CPPFLAGS="$acx_zlib_save_CPPFLAGS -I$acx_zlib_cv_external_zlib/include"
37543       echo "$as_me:$LINENO: checking for external ZLIB in $acx_zlib_cv_external_zlib" >&5
37544 echo $ECHO_N "checking for external ZLIB in $acx_zlib_cv_external_zlib... $ECHO_C" >&6
37545       echo "$as_me:$LINENO: result: " >&5
37546 echo "${ECHO_T}" >&6
37547     fi
37548     unset ac_cv_header_zlib_h
37549
37550 for ac_header in zlib.h
37551 do
37552 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
37553 if eval "test \"\${$as_ac_Header+set}\" = set"; then
37554   echo "$as_me:$LINENO: checking for $ac_header" >&5
37555 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
37556 if eval "test \"\${$as_ac_Header+set}\" = set"; then
37557   echo $ECHO_N "(cached) $ECHO_C" >&6
37558 fi
37559 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
37560 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
37561 else
37562   # Is the header compilable?
37563 echo "$as_me:$LINENO: checking $ac_header usability" >&5
37564 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
37565 cat >conftest.$ac_ext <<_ACEOF
37566 /* confdefs.h.  */
37567 _ACEOF
37568 cat confdefs.h >>conftest.$ac_ext
37569 cat >>conftest.$ac_ext <<_ACEOF
37570 /* end confdefs.h.  */
37571 $ac_includes_default
37572 #include <$ac_header>
37573 _ACEOF
37574 rm -f conftest.$ac_objext
37575 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37576   (eval $ac_compile) 2>conftest.er1
37577   ac_status=$?
37578   grep -v '^ *+' conftest.er1 >conftest.err
37579   rm -f conftest.er1
37580   cat conftest.err >&5
37581   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37582   (exit $ac_status); } &&
37583          { ac_try='test -z "$ac_c_werror_flag"
37584                          || test ! -s conftest.err'
37585   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37586   (eval $ac_try) 2>&5
37587   ac_status=$?
37588   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37589   (exit $ac_status); }; } &&
37590          { ac_try='test -s conftest.$ac_objext'
37591   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37592   (eval $ac_try) 2>&5
37593   ac_status=$?
37594   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37595   (exit $ac_status); }; }; then
37596   ac_header_compiler=yes
37597 else
37598   echo "$as_me: failed program was:" >&5
37599 sed 's/^/| /' conftest.$ac_ext >&5
37600
37601 ac_header_compiler=no
37602 fi
37603 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37604 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
37605 echo "${ECHO_T}$ac_header_compiler" >&6
37606
37607 # Is the header present?
37608 echo "$as_me:$LINENO: checking $ac_header presence" >&5
37609 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
37610 cat >conftest.$ac_ext <<_ACEOF
37611 /* confdefs.h.  */
37612 _ACEOF
37613 cat confdefs.h >>conftest.$ac_ext
37614 cat >>conftest.$ac_ext <<_ACEOF
37615 /* end confdefs.h.  */
37616 #include <$ac_header>
37617 _ACEOF
37618 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
37619   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
37620   ac_status=$?
37621   grep -v '^ *+' conftest.er1 >conftest.err
37622   rm -f conftest.er1
37623   cat conftest.err >&5
37624   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37625   (exit $ac_status); } >/dev/null; then
37626   if test -s conftest.err; then
37627     ac_cpp_err=$ac_c_preproc_warn_flag
37628     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
37629   else
37630     ac_cpp_err=
37631   fi
37632 else
37633   ac_cpp_err=yes
37634 fi
37635 if test -z "$ac_cpp_err"; then
37636   ac_header_preproc=yes
37637 else
37638   echo "$as_me: failed program was:" >&5
37639 sed 's/^/| /' conftest.$ac_ext >&5
37640
37641   ac_header_preproc=no
37642 fi
37643 rm -f conftest.err conftest.$ac_ext
37644 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
37645 echo "${ECHO_T}$ac_header_preproc" >&6
37646
37647 # So?  What about this header?
37648 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
37649   yes:no: )
37650     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
37651 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
37652     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
37653 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
37654     ac_header_preproc=yes
37655     ;;
37656   no:yes:* )
37657     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
37658 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
37659     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
37660 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
37661     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
37662 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
37663     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
37664 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
37665     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
37666 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
37667     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
37668 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
37669     (
37670       cat <<\_ASBOX
37671 ## ------------------------------ ##
37672 ## Report this to bug-cvs@gnu.org ##
37673 ## ------------------------------ ##
37674 _ASBOX
37675     ) |
37676       sed "s/^/$as_me: WARNING:     /" >&2
37677     ;;
37678 esac
37679 echo "$as_me:$LINENO: checking for $ac_header" >&5
37680 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
37681 if eval "test \"\${$as_ac_Header+set}\" = set"; then
37682   echo $ECHO_N "(cached) $ECHO_C" >&6
37683 else
37684   eval "$as_ac_Header=\$ac_header_preproc"
37685 fi
37686 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
37687 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
37688
37689 fi
37690 if test `eval echo '${'$as_ac_Header'}'` = yes; then
37691   cat >>confdefs.h <<_ACEOF
37692 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
37693 _ACEOF
37694
37695 fi
37696
37697 done
37698
37699     if test "$ac_cv_header_zlib_h" = yes; then
37700       break
37701     fi
37702   done
37703   CPPFLAGS=$acx_zlib_save_CPPFLAGS
37704 echo "$as_me:$LINENO: checking for external ZLIB" >&5
37705 echo $ECHO_N "checking for external ZLIB... $ECHO_C" >&6
37706
37707 fi
37708 echo "$as_me:$LINENO: result: $acx_zlib_cv_external_zlib" >&5
37709 echo "${ECHO_T}$acx_zlib_cv_external_zlib" >&6
37710
37711
37712 #
37713 # Output a pretty message naming our selected ZLIB "external" or "package"
37714 # so that any warnings printed by the version check make more sense.
37715 #
37716 echo "$as_me:$LINENO: checking selected ZLIB" >&5
37717 echo $ECHO_N "checking selected ZLIB... $ECHO_C" >&6
37718 if test "x$with_external_zlib" = xno; then
37719   echo "$as_me:$LINENO: result: package" >&5
37720 echo "${ECHO_T}package" >&6
37721 else
37722   echo "$as_me:$LINENO: result: external" >&5
37723 echo "${ECHO_T}external" >&6
37724 fi
37725
37726
37727 #
37728 # Verify that the ZLIB we aren't using isn't newer than the one we are.
37729 #
37730 if test "x$acx_zlib_cv_external_zlib" != xno; then
37731   LOCAL_ZLIB_VERSION=`sed -n '/^#define ZLIB_VERSION ".*"$/{
37732                               s/^#define ZLIB_VERSION "\(.*\)"$/\1/;
37733                               p;}' <$srcdir/zlib/zlib.h 2>&5`
37734   cat >conftest.$ac_ext <<_ACEOF
37735 /* confdefs.h.  */
37736 _ACEOF
37737 cat confdefs.h >>conftest.$ac_ext
37738 cat >>conftest.$ac_ext <<_ACEOF
37739 /* end confdefs.h.  */
37740 #include <zlib.h>
37741
37742 _ACEOF
37743 ac_extract_cpp_result=`(eval "$ac_cpp -dM conftest.$ac_ext") 2>&5 |
37744   sed -n "/^#define ZLIB_VERSION /{
37745             s/^#define ZLIB_VERSION //;
37746             s/^ *//;
37747             s/ *\$//;
37748             p;}" 2>&5`
37749 if test -n "$ac_extract_cpp_result"; then
37750   ZLIB_VERSION=$ac_extract_cpp_result
37751 fi
37752 rm -f conftest*
37753
37754   ZLIB_VERSION=`echo "$ZLIB_VERSION" |sed 's/"//g'`
37755   if test "x$LOCAL_ZLIB_VERSION" = "x$ZLIB_VERSION"; then
37756   # the strings are equal.  run ACTION-IF-EQUAL and bail
37757   :
37758 else
37759   # first unletter the versions
37760   # this only works for a single trailing letter
37761     asx_version_1=`echo "$LOCAL_ZLIB_VERSION" |
37762                  sed 's/\(abcedfghi\)/.\1/;
37763                       s/\(jklmnopqrs\)/.1\1/;
37764                       s/\(tuvwxyz\)/.2\1/;
37765                       y/abcdefghijklmnopqrstuvwxyz/12345678901234567890123456/;'`
37766   asx_version_2=`echo "$ZLIB_VERSION" |
37767                  sed 's/\(abcedfghi\)/.\1/;
37768                       s/\(jklmnopqrs\)/.1\1/;
37769                       s/\(tuvwxyz\)/.2\1/;
37770                       y/abcdefghijklmnopqrstuvwxyz/12345678901234567890123456/;'`
37771   asx_count=1
37772   asx_save_IFS=$IFS
37773   IFS=.
37774   asx_retval=-1
37775   for vsub1 in $asx_version_1; do
37776     vsub2=`echo "$asx_version_2" |awk -F. "{print \\\$$asx_count}"`
37777     if test -z "$vsub2" || test $vsub1 -gt $vsub2; then
37778       asx_retval=1
37779       break
37780     elif test $vsub1 -lt $vsub2; then
37781       break
37782     fi
37783     asx_count=`expr $asx_count + 1`
37784   done
37785   IFS=$asx_save_IFS
37786   if test $asx_retval -eq -1; then
37787     if test "x$with_external_zlib" = xno; then
37788        { echo "$as_me:$LINENO: WARNING: Found external ZLIB with a more recent version than the
37789            package version ($ZLIB_VERSION > $LOCAL_ZLIB_VERSION).  configure with the
37790            --with-external-zlib option to select the more recent version." >&5
37791 echo "$as_me: WARNING: Found external ZLIB with a more recent version than the
37792            package version ($ZLIB_VERSION > $LOCAL_ZLIB_VERSION).  configure with the
37793            --with-external-zlib option to select the more recent version." >&2;}
37794      fi
37795   else
37796 if test "x$with_external_zlib" != xno; then
37797        { echo "$as_me:$LINENO: WARNING: Package ZLIB is more recent than requested external version
37798            ($LOCAL_ZLIB_VERSION > $ZLIB_VERSION).  configure with the --without-external-zlib
37799            option to select the more recent version." >&5
37800 echo "$as_me: WARNING: Package ZLIB is more recent than requested external version
37801            ($LOCAL_ZLIB_VERSION > $ZLIB_VERSION).  configure with the --without-external-zlib
37802            option to select the more recent version." >&2;}
37803      fi
37804   fi
37805
37806 fi
37807
37808 fi
37809
37810
37811 # Now set with_external_zlib to our discovered value or the user specified
37812 # value, as appropriate.
37813 if test x$with_external_zlib = xyes; then
37814   with_external_zlib=$acx_zlib_cv_external_zlib
37815 fi
37816 # $with_external_zlib could still be "no"
37817
37818
37819 #
37820 # Set up ZLIB includes for later use.
37821 #
37822 if test x$with_external_zlib != xyes \
37823    && test x$with_external_zlib != no; then
37824   if test -z "$CPPFLAGS"; then
37825     CPPFLAGS="-I$with_external_zlib/include"
37826   else
37827     CPPFLAGS="$CPPFLAGS -I$with_external_zlib/include"
37828   fi
37829   if test -z "$LDFLAGS"; then
37830     LDFLAGS="-L$with_external_zlib/lib"
37831   else
37832     LDFLAGS="$LDFLAGS -L$with_external_zlib/lib"
37833   fi
37834 fi
37835
37836 ZLIB_CPPFLAGS=
37837 ZLIB_LIBS=
37838 ZLIB_SUBDIRS=
37839 if test x$with_external_zlib = xno; then
37840   # We need ZLIB_CPPFLAGS so that later executions of cpp from configure
37841   # don't try to interpret $(top_srcdir)
37842   ZLIB_CPPFLAGS='-I$(top_srcdir)/zlib'
37843   ZLIB_LIBS='$(top_builddir)/zlib/libz.a'
37844   # ZLIB_SUBDIRS is only used in the top level Makefiles.
37845   ZLIB_SUBDIRS=zlib
37846 else
37847   # We know what to do now, so set up the CPPFLAGS, LDFLAGS, and LIBS for later
37848   # use.
37849   if test -z "$LIBS"; then
37850     LIBS=-lz
37851   else
37852     LIBS="$LIBS -lz"
37853   fi
37854
37855   #
37856   # Verify external installed zlib works
37857   #
37858   # Ideally, we would also check that the version is newer
37859   #
37860   echo "$as_me:$LINENO: checking that ZLIB library works" >&5
37861 echo $ECHO_N "checking that ZLIB library works... $ECHO_C" >&6
37862   cat >conftest.$ac_ext <<_ACEOF
37863 /* confdefs.h.  */
37864 _ACEOF
37865 cat confdefs.h >>conftest.$ac_ext
37866 cat >>conftest.$ac_ext <<_ACEOF
37867 /* end confdefs.h.  */
37868 #include <zlib.h>
37869 int
37870 main ()
37871 {
37872 int i = Z_OK; const char *version = zlibVersion();
37873   ;
37874   return 0;
37875 }
37876 _ACEOF
37877 rm -f conftest.$ac_objext conftest$ac_exeext
37878 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37879   (eval $ac_link) 2>conftest.er1
37880   ac_status=$?
37881   grep -v '^ *+' conftest.er1 >conftest.err
37882   rm -f conftest.er1
37883   cat conftest.err >&5
37884   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37885   (exit $ac_status); } &&
37886          { ac_try='test -z "$ac_c_werror_flag"
37887                          || test ! -s conftest.err'
37888   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37889   (eval $ac_try) 2>&5
37890   ac_status=$?
37891   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37892   (exit $ac_status); }; } &&
37893          { ac_try='test -s conftest$ac_exeext'
37894   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37895   (eval $ac_try) 2>&5
37896   ac_status=$?
37897   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37898   (exit $ac_status); }; }; then
37899   echo "$as_me:$LINENO: result: yes" >&5
37900 echo "${ECHO_T}yes" >&6
37901 else
37902   echo "$as_me: failed program was:" >&5
37903 sed 's/^/| /' conftest.$ac_ext >&5
37904
37905 echo "$as_me:$LINENO: result: no" >&5
37906 echo "${ECHO_T}no" >&6
37907                { { echo "$as_me:$LINENO: error: ZLIB failed to link" >&5
37908 echo "$as_me: error: ZLIB failed to link" >&2;}
37909    { (exit 1); exit 1; }; }
37910 fi
37911 rm -f conftest.err conftest.$ac_objext \
37912       conftest$ac_exeext conftest.$ac_ext
37913 fi
37914
37915
37916
37917
37918 # What remote shell transport should our client cvs default to using?
37919
37920 # Check whether --with-rsh or --without-rsh was given.
37921 if test "${with_rsh+set}" = set; then
37922   withval="$with_rsh"
37923
37924 else
37925   with_rsh="ssh rsh"
37926 fi;
37927
37928 if test no = "$with_rsh"; then
37929   { echo "$as_me:$LINENO: WARNING: Failed to find usable remote shell. Using 'rsh'." >&5
37930 echo "$as_me: WARNING: Failed to find usable remote shell. Using 'rsh'." >&2;}
37931   with_rsh=rsh
37932 elif test yes = "$with_rsh"; then
37933   # Make --with-rsh mean the same thing as --with-rsh=rsh
37934   with_rsh=rsh
37935 fi
37936
37937 if echo $with_rsh |grep ^/ >/dev/null; then
37938   # If $with_rsh is an absolute path, issue a warning if the executable
37939   # doesn't exist or isn't usable, but then trust the user and use it
37940   # regardless
37941   with_default_rsh=$with_rsh
37942   echo "$as_me:$LINENO: checking for a remote shell" >&5
37943 echo $ECHO_N "checking for a remote shell... $ECHO_C" >&6
37944   if ! test -f $with_rsh \
37945       || ! test -x $with_rsh; then
37946     # warn the user that they may encounter problems
37947     { echo "$as_me:$LINENO: WARNING: $with_rsh is not a path to an executable file" >&5
37948 echo "$as_me: WARNING: $with_rsh is not a path to an executable file" >&2;}
37949   fi
37950 else
37951   # Search for a remote shell
37952   for ac_prog in $with_rsh
37953 do
37954   # Extract the first word of "$ac_prog", so it can be a program name with args.
37955 set dummy $ac_prog; ac_word=$2
37956 echo "$as_me:$LINENO: checking for $ac_word" >&5
37957 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
37958 if test "${ac_cv_prog_with_default_rsh+set}" = set; then
37959   echo $ECHO_N "(cached) $ECHO_C" >&6
37960 else
37961   if test -n "$with_default_rsh"; then
37962   ac_cv_prog_with_default_rsh="$with_default_rsh" # Let the user override the test.
37963 else
37964 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
37965 for as_dir in $PATH
37966 do
37967   IFS=$as_save_IFS
37968   test -z "$as_dir" && as_dir=.
37969   for ac_exec_ext in '' $ac_executable_extensions; do
37970   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
37971     ac_cv_prog_with_default_rsh="$ac_prog"
37972     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
37973     break 2
37974   fi
37975 done
37976 done
37977
37978 fi
37979 fi
37980 with_default_rsh=$ac_cv_prog_with_default_rsh
37981 if test -n "$with_default_rsh"; then
37982   echo "$as_me:$LINENO: result: $with_default_rsh" >&5
37983 echo "${ECHO_T}$with_default_rsh" >&6
37984 else
37985   echo "$as_me:$LINENO: result: no" >&5
37986 echo "${ECHO_T}no" >&6
37987 fi
37988
37989   test -n "$with_default_rsh" && break
37990 done
37991 test -n "$with_default_rsh" || with_default_rsh=""rsh""
37992
37993 fi
37994
37995
37996 cat >>confdefs.h <<_ACEOF
37997 #define RSH_DFLT "$with_default_rsh"
37998 _ACEOF
37999
38000 RSH_DFLT=$with_default_rsh
38001
38002
38003
38004
38005
38006 # Let the confiscator request a specific editor
38007
38008 # Check whether --with-editor or --without-editor was given.
38009 if test "${with_editor+set}" = set; then
38010   withval="$with_editor"
38011
38012 else
38013   with_editor=yes
38014 fi;
38015
38016 # If --with-editor was supplied with an argument, let it override $EDITOR from
38017 # the user's environment.  We need to unset EDITOR here because AC_CHECK_PROGS
38018 # will let the value of EDITOR ride when it is set rather than searching.  We
38019 # ignore the --without-editor case since it will be caught below.
38020 if test -n "$EDITOR" && test yes != $with_editor; then
38021   $as_unset EDITOR || test "${EDITOR+set}" != set || { EDITOR=; export EDITOR; }
38022 fi
38023
38024 # Set the default when --with-editor wasn't supplied or when it was supplied
38025 # without an argument.
38026 if test yes = $with_editor; then
38027   with_editor="vim vi emacs nano pico edit"
38028 fi
38029
38030 if echo $with_editor |grep ^/ >/dev/null; then
38031   # If $with_editor is an absolute path, issue a warning if the executable
38032   # doesn't exist or isn't usable, but then trust the user and use it
38033   # regardless
38034   EDITOR=$with_editor
38035   echo "$as_me:$LINENO: checking for an editor" >&5
38036 echo $ECHO_N "checking for an editor... $ECHO_C" >&6
38037   echo "$as_me:$LINENO: result: $EDITOR" >&5
38038 echo "${ECHO_T}$EDITOR" >&6
38039   if ! test -f $with_editor \
38040       || ! test -x $with_editor; then
38041     # warn the user that they may encounter problems
38042     { echo "$as_me:$LINENO: WARNING: \`$with_editor' is not a path to an executable file" >&5
38043 echo "$as_me: WARNING: \`$with_editor' is not a path to an executable file" >&2;}
38044   fi
38045 elif test no != "${with_editor}"; then
38046   # Search for an editor
38047   for ac_prog in $with_editor
38048 do
38049   # Extract the first word of "$ac_prog", so it can be a program name with args.
38050 set dummy $ac_prog; ac_word=$2
38051 echo "$as_me:$LINENO: checking for $ac_word" >&5
38052 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
38053 if test "${ac_cv_prog_EDITOR+set}" = set; then
38054   echo $ECHO_N "(cached) $ECHO_C" >&6
38055 else
38056   if test -n "$EDITOR"; then
38057   ac_cv_prog_EDITOR="$EDITOR" # Let the user override the test.
38058 else
38059 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38060 for as_dir in $PATH
38061 do
38062   IFS=$as_save_IFS
38063   test -z "$as_dir" && as_dir=.
38064   for ac_exec_ext in '' $ac_executable_extensions; do
38065   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
38066     ac_cv_prog_EDITOR="$ac_prog"
38067     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
38068     break 2
38069   fi
38070 done
38071 done
38072
38073 fi
38074 fi
38075 EDITOR=$ac_cv_prog_EDITOR
38076 if test -n "$EDITOR"; then
38077   echo "$as_me:$LINENO: result: $EDITOR" >&5
38078 echo "${ECHO_T}$EDITOR" >&6
38079 else
38080   echo "$as_me:$LINENO: result: no" >&5
38081 echo "${ECHO_T}no" >&6
38082 fi
38083
38084   test -n "$EDITOR" && break
38085 done
38086 test -n "$EDITOR" || EDITOR="no"
38087
38088     if test no = "${EDITOR}"; then
38089       { { echo "$as_me:$LINENO: error:
38090     Failed to find a text file editor.  CVS cannot be compiled
38091     without a default log message editor.  Searched for
38092     \`$with_editor'.  Try \`configure --with-editor'." >&5
38093 echo "$as_me: error:
38094     Failed to find a text file editor.  CVS cannot be compiled
38095     without a default log message editor.  Searched for
38096     \`$with_editor'.  Try \`configure --with-editor'." >&2;}
38097    { (exit 1); exit 1; }; }
38098     fi
38099 else
38100   { { echo "$as_me:$LINENO: error:
38101     CVS cannot be compiled without a default log message editor.
38102     Try \`configure --with-editor'." >&5
38103 echo "$as_me: error:
38104     CVS cannot be compiled without a default log message editor.
38105     Try \`configure --with-editor'." >&2;}
38106    { (exit 1); exit 1; }; }
38107 fi
38108
38109
38110 cat >>confdefs.h <<_ACEOF
38111 #define EDITOR_DFLT "$EDITOR"
38112 _ACEOF
38113
38114
38115
38116
38117
38118
38119 # Check whether --with-hardcoded-pam-service-name or --without-hardcoded-pam-service-name was given.
38120 if test "${with_hardcoded_pam_service_name+set}" = set; then
38121   withval="$with_hardcoded_pam_service_name"
38122
38123 else
38124   with_hardcoded_pam_service_name=cvs
38125 fi;
38126
38127 if test "x$with_hardcoded_pam_service_name" = xno ||
38128    test "x$with_hardcoded_pam_service_name" = xprogram_name; then
38129
38130 cat >>confdefs.h <<\_ACEOF
38131 #define PAM_SERVICE_NAME program_name
38132 _ACEOF
38133
38134 else
38135   if test x"$with_hardcoded_pam_service_name" = xyes; then
38136     with_hardcoded_pam_service_name=cvs
38137   fi
38138   cat >>confdefs.h <<_ACEOF
38139 #define PAM_SERVICE_NAME "$with_hardcoded_pam_service_name"
38140 _ACEOF
38141
38142 fi
38143
38144
38145
38146
38147 # Check whether --with-tmpdir or --without-tmpdir was given.
38148 if test "${with_tmpdir+set}" = set; then
38149   withval="$with_tmpdir"
38150
38151 fi;
38152
38153 echo "$as_me:$LINENO: checking for temporary directory" >&5
38154 echo $ECHO_N "checking for temporary directory... $ECHO_C" >&6
38155 if test -z "$with_tmpdir" || test yes = "$with_tmpdir"; then
38156   for with_tmpdir in /tmp /var/tmp no; do
38157     if test -d "$with_tmpdir" && test -x "$with_tmpdir" \
38158         && test -w "$with_tmpdir" && test -r "$with_tmpdir"; then
38159       break
38160     fi
38161   done
38162   if test no = "$with_tmpdir"; then
38163     { echo "$as_me:$LINENO: WARNING: Failed to find usable temporary directory.  Using '/tmp'." >&5
38164 echo "$as_me: WARNING: Failed to find usable temporary directory.  Using '/tmp'." >&2;}
38165     with_tmpdir=/tmp
38166   fi
38167   echo "$as_me:$LINENO: result: $with_tmpdir" >&5
38168 echo "${ECHO_T}$with_tmpdir" >&6
38169 elif ! echo "$with_tmpdir" |grep '^[\\/]'; then
38170   echo "$as_me:$LINENO: result: $with_tmpdir" >&5
38171 echo "${ECHO_T}$with_tmpdir" >&6
38172   { { echo "$as_me:$LINENO: error: --with-tmpdir requires an absolute path." >&5
38173 echo "$as_me: error: --with-tmpdir requires an absolute path." >&2;}
38174    { (exit 1); exit 1; }; }
38175 elif ! test -d "$with_tmpdir" || ! test -x "$with_tmpdir" \
38176         || ! test -w "$with_tmpdir" || ! test -r "$with_tmpdir"; then
38177   echo "$as_me:$LINENO: result: $with_tmpdir" >&5
38178 echo "${ECHO_T}$with_tmpdir" >&6
38179   { echo "$as_me:$LINENO: WARNING: User supplied temporary directory ('$with_tmpdir') does not
38180      exist or lacks sufficient permissions for read/write." >&5
38181 echo "$as_me: WARNING: User supplied temporary directory ('$with_tmpdir') does not
38182      exist or lacks sufficient permissions for read/write." >&2;}
38183 fi
38184
38185
38186 cat >>confdefs.h <<_ACEOF
38187 #define TMPDIR_DFLT "$with_tmpdir"
38188 _ACEOF
38189
38190
38191
38192
38193
38194
38195 # Check whether --with-umask or --without-umask was given.
38196 if test "${with_umask+set}" = set; then
38197   withval="$with_umask"
38198
38199 fi;
38200
38201 if test -z "$with_umask" || test yes = "$with_umask"; then
38202   with_umask=002
38203 elif test no = "$with_umask"; then
38204   with_umask=000
38205 fi
38206
38207
38208 cat >>confdefs.h <<_ACEOF
38209 #define UMASK_DFLT $with_umask
38210 _ACEOF
38211
38212
38213
38214
38215 # Check whether --with-cvs-admin-group or --without-cvs-admin-group was given.
38216 if test "${with_cvs_admin_group+set}" = set; then
38217   withval="$with_cvs_admin_group"
38218
38219 else
38220   with_cvs_admin_group=cvsadmin
38221 fi;
38222
38223 if test yes = "$with_cvs_admin_group"; then
38224   with_cvs_admin_group=cvsadmin
38225 fi
38226 if test no != "$with_cvs_admin_group"; then
38227
38228 cat >>confdefs.h <<_ACEOF
38229 #define CVS_ADMIN_GROUP "$with_cvs_admin_group"
38230 _ACEOF
38231
38232 fi
38233
38234
38235 # Check whether --enable-cvs-ndbm or --disable-cvs-ndbm was given.
38236 if test "${enable_cvs_ndbm+set}" = set; then
38237   enableval="$enable_cvs_ndbm"
38238
38239 else
38240   enable_cvs_ndbm=yes
38241 fi;
38242 if test no != "$enable_cvs_ndbm"; then
38243
38244 cat >>confdefs.h <<\_ACEOF
38245 #define MY_NDBM 1
38246 _ACEOF
38247
38248 fi
38249
38250
38251
38252
38253
38254
38255
38256
38257
38258 # Check for options requesting client and server feature. If none are
38259 # given and we have connect(), we want the full client & server arrangement.
38260 # Check whether --enable-client or --disable-client was given.
38261 if test "${enable_client+set}" = set; then
38262   enableval="$enable_client"
38263
38264 else
38265   enable_client=$ac_cv_search_connect
38266 fi;
38267 if test no != "$enable_client"; then
38268
38269 cat >>confdefs.h <<\_ACEOF
38270 #define CLIENT_SUPPORT 1
38271 _ACEOF
38272
38273 fi
38274
38275
38276
38277 # Check whether --enable-password-authenticated-client or --disable-password-authenticated-client was given.
38278 if test "${enable_password_authenticated_client+set}" = set; then
38279   enableval="$enable_password_authenticated_client"
38280
38281 else
38282   enable_password_authenticated_client=$enable_client
38283 fi;
38284
38285 if test xno != "x$enable_password_authenticated_client"; then
38286   if test xno != "x$enable_client"; then
38287
38288 cat >>confdefs.h <<\_ACEOF
38289 #define AUTH_CLIENT_SUPPORT 1
38290 _ACEOF
38291
38292   else
38293     { echo "$as_me:$LINENO: WARNING: --enable-password-authenticated-client is meaningless with
38294        the CVS client disabled (--disable-client)" >&5
38295 echo "$as_me: WARNING: --enable-password-authenticated-client is meaningless with
38296        the CVS client disabled (--disable-client)" >&2;}
38297   fi
38298 fi
38299
38300
38301
38302
38303 # Check whether --enable-server or --disable-server was given.
38304 if test "${enable_server+set}" = set; then
38305   enableval="$enable_server"
38306
38307 else
38308   enable_server=$ac_cv_search_connect
38309 fi;
38310
38311 if test no != "$enable_server"; then
38312
38313 cat >>confdefs.h <<\_ACEOF
38314 #define SERVER_SUPPORT 1
38315 _ACEOF
38316
38317
38318             echo "$as_me:$LINENO: checking for library containing crypt" >&5
38319 echo $ECHO_N "checking for library containing crypt... $ECHO_C" >&6
38320 if test "${ac_cv_search_crypt+set}" = set; then
38321   echo $ECHO_N "(cached) $ECHO_C" >&6
38322 else
38323   ac_func_search_save_LIBS=$LIBS
38324 ac_cv_search_crypt=no
38325 cat >conftest.$ac_ext <<_ACEOF
38326 /* confdefs.h.  */
38327 _ACEOF
38328 cat confdefs.h >>conftest.$ac_ext
38329 cat >>conftest.$ac_ext <<_ACEOF
38330 /* end confdefs.h.  */
38331
38332 /* Override any gcc2 internal prototype to avoid an error.  */
38333 #ifdef __cplusplus
38334 extern "C"
38335 #endif
38336 /* We use char because int might match the return type of a gcc2
38337    builtin and then its argument prototype would still apply.  */
38338 char crypt ();
38339 int
38340 main ()
38341 {
38342 crypt ();
38343   ;
38344   return 0;
38345 }
38346 _ACEOF
38347 rm -f conftest.$ac_objext conftest$ac_exeext
38348 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38349   (eval $ac_link) 2>conftest.er1
38350   ac_status=$?
38351   grep -v '^ *+' conftest.er1 >conftest.err
38352   rm -f conftest.er1
38353   cat conftest.err >&5
38354   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38355   (exit $ac_status); } &&
38356          { ac_try='test -z "$ac_c_werror_flag"
38357                          || test ! -s conftest.err'
38358   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38359   (eval $ac_try) 2>&5
38360   ac_status=$?
38361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38362   (exit $ac_status); }; } &&
38363          { ac_try='test -s conftest$ac_exeext'
38364   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38365   (eval $ac_try) 2>&5
38366   ac_status=$?
38367   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38368   (exit $ac_status); }; }; then
38369   ac_cv_search_crypt="none required"
38370 else
38371   echo "$as_me: failed program was:" >&5
38372 sed 's/^/| /' conftest.$ac_ext >&5
38373
38374 fi
38375 rm -f conftest.err conftest.$ac_objext \
38376       conftest$ac_exeext conftest.$ac_ext
38377 if test "$ac_cv_search_crypt" = no; then
38378   for ac_lib in crypt; do
38379     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
38380     cat >conftest.$ac_ext <<_ACEOF
38381 /* confdefs.h.  */
38382 _ACEOF
38383 cat confdefs.h >>conftest.$ac_ext
38384 cat >>conftest.$ac_ext <<_ACEOF
38385 /* end confdefs.h.  */
38386
38387 /* Override any gcc2 internal prototype to avoid an error.  */
38388 #ifdef __cplusplus
38389 extern "C"
38390 #endif
38391 /* We use char because int might match the return type of a gcc2
38392    builtin and then its argument prototype would still apply.  */
38393 char crypt ();
38394 int
38395 main ()
38396 {
38397 crypt ();
38398   ;
38399   return 0;
38400 }
38401 _ACEOF
38402 rm -f conftest.$ac_objext conftest$ac_exeext
38403 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38404   (eval $ac_link) 2>conftest.er1
38405   ac_status=$?
38406   grep -v '^ *+' conftest.er1 >conftest.err
38407   rm -f conftest.er1
38408   cat conftest.err >&5
38409   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38410   (exit $ac_status); } &&
38411          { ac_try='test -z "$ac_c_werror_flag"
38412                          || test ! -s conftest.err'
38413   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38414   (eval $ac_try) 2>&5
38415   ac_status=$?
38416   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38417   (exit $ac_status); }; } &&
38418          { ac_try='test -s conftest$ac_exeext'
38419   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38420   (eval $ac_try) 2>&5
38421   ac_status=$?
38422   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38423   (exit $ac_status); }; }; then
38424   ac_cv_search_crypt="-l$ac_lib"
38425 break
38426 else
38427   echo "$as_me: failed program was:" >&5
38428 sed 's/^/| /' conftest.$ac_ext >&5
38429
38430 fi
38431 rm -f conftest.err conftest.$ac_objext \
38432       conftest$ac_exeext conftest.$ac_ext
38433   done
38434 fi
38435 LIBS=$ac_func_search_save_LIBS
38436 fi
38437 echo "$as_me:$LINENO: result: $ac_cv_search_crypt" >&5
38438 echo "${ECHO_T}$ac_cv_search_crypt" >&6
38439 if test "$ac_cv_search_crypt" != no; then
38440   test "$ac_cv_search_crypt" = "none required" || LIBS="$ac_cv_search_crypt $LIBS"
38441
38442 cat >>confdefs.h <<\_ACEOF
38443 #define HAVE_CRYPT 1
38444 _ACEOF
38445
38446
38447 cat >>confdefs.h <<\_ACEOF
38448 #define AUTH_SERVER_SUPPORT 1
38449 _ACEOF
38450
38451 fi
38452
38453           # Check whether --enable-server-flow-control or --disable-server-flow-control was given.
38454 if test "${enable_server_flow_control+set}" = set; then
38455   enableval="$enable_server_flow_control"
38456   if test yes = $enable_server_flow_control; then
38457        enable_server_flow_control=1M,2M
38458      fi
38459 else
38460   enable_server_flow_control=1M,2M
38461 fi;
38462   if test no != $enable_server_flow_control; then
38463     ccvs_lwm=`expr "$enable_server_flow_control" : '\(.*\),'`
38464     ccvs_hwm=`expr "$enable_server_flow_control" : '.*,\(.*\)'`
38465     ccvs_lwm_E=`expr "$ccvs_lwm" : '[0-9][0-9]*\(.*\)'`
38466     ccvs_lwm=`expr "$ccvs_lwm" : '\([0-9][0-9]*\)'`
38467     test "" != "$ccvs_lwm" || ccvs_lwm_E="?"
38468     case $ccvs_lwm_E in
38469         G) ccvs_lwm="$ccvs_lwm * 1024 * 1024 * 1024";;
38470         M) ccvs_lwm="$ccvs_lwm * 1024 * 1024";;
38471         k) ccvs_lwm="$ccvs_lwm * 1024";;
38472         b | '') ;;
38473         *) { { echo "$as_me:$LINENO: error: Can't parse argument to --enable-server-flow-control
38474                         ('$enable_server_flow_control') as <lwm>,<hwm>" >&5
38475 echo "$as_me: error: Can't parse argument to --enable-server-flow-control
38476                         ('$enable_server_flow_control') as <lwm>,<hwm>" >&2;}
38477    { (exit 1); exit 1; }; }
38478       esac
38479     ccvs_hwm_E=`expr "$ccvs_hwm" : '[0-9][0-9]*\(.*\)'`
38480     ccvs_hwm=`expr "$ccvs_hwm" : '\([0-9][0-9]*\).*'`
38481     test "" != "$ccvs_hwm" || ccvs_hwm_E="?"
38482     case $ccvs_hwm_E in
38483         G) ccvs_hwm="$ccvs_hwm * 1024 * 1024 * 1024";;
38484         M) ccvs_hwm="$ccvs_hwm * 1024 * 1024";;
38485         k) ccvs_hwm="$ccvs_hwm * 1024";;
38486         b | '') ccvs_hwm="$ccvs_hwm";;
38487         *) { { echo "$as_me:$LINENO: error: Can't parse argument to --enable-server-flow-control
38488                         ('$enable_server_flow_control') as <lwm>,<hwm>" >&5
38489 echo "$as_me: error: Can't parse argument to --enable-server-flow-control
38490                         ('$enable_server_flow_control') as <lwm>,<hwm>" >&2;}
38491    { (exit 1); exit 1; }; }
38492       esac
38493
38494
38495 cat >>confdefs.h <<\_ACEOF
38496 #define SERVER_FLOWCONTROL 1
38497 _ACEOF
38498
38499
38500 cat >>confdefs.h <<_ACEOF
38501 #define SERVER_LO_WATER ($ccvs_lwm)
38502 _ACEOF
38503
38504
38505 cat >>confdefs.h <<_ACEOF
38506 #define SERVER_HI_WATER ($ccvs_hwm)
38507 _ACEOF
38508
38509   fi # enable_server_flow_control
38510 fi # enable_server
38511
38512
38513
38514
38515 # Check whether --enable-proxy or --disable-proxy was given.
38516 if test "${enable_proxy+set}" = set; then
38517   enableval="$enable_proxy"
38518
38519 else
38520   if test xno != "x$enable_client" && test xno != "x$enable_server"; then
38521      enable_proxy=yes
38522    else
38523      enable_proxy=no
38524    fi
38525 fi;
38526
38527 if test no != "$enable_proxy"; then
38528   if test xno = "x$enable_client" || test xno = "x$enable_server"; then
38529     { echo "$as_me:$LINENO: WARNING: --enable-proxy is meaningless when either the CVS client or the
38530        CVS server is disabled (--disable-client and --disable-server)." >&5
38531 echo "$as_me: WARNING: --enable-proxy is meaningless when either the CVS client or the
38532        CVS server is disabled (--disable-client and --disable-server)." >&2;}
38533   else
38534
38535 cat >>confdefs.h <<\_ACEOF
38536 #define PROXY_SUPPORT 1
38537 _ACEOF
38538
38539   fi
38540 fi
38541
38542
38543
38544 # Check whether --enable-pam or --disable-pam was given.
38545 if test "${enable_pam+set}" = set; then
38546   enableval="$enable_pam"
38547
38548 else
38549   enable_pam=no
38550
38551 fi;
38552
38553 if test yes = $enable_pam; then
38554   if test "${ac_cv_header_security_pam_appl_h+set}" = set; then
38555   echo "$as_me:$LINENO: checking for security/pam_appl.h" >&5
38556 echo $ECHO_N "checking for security/pam_appl.h... $ECHO_C" >&6
38557 if test "${ac_cv_header_security_pam_appl_h+set}" = set; then
38558   echo $ECHO_N "(cached) $ECHO_C" >&6
38559 fi
38560 echo "$as_me:$LINENO: result: $ac_cv_header_security_pam_appl_h" >&5
38561 echo "${ECHO_T}$ac_cv_header_security_pam_appl_h" >&6
38562 else
38563   # Is the header compilable?
38564 echo "$as_me:$LINENO: checking security/pam_appl.h usability" >&5
38565 echo $ECHO_N "checking security/pam_appl.h usability... $ECHO_C" >&6
38566 cat >conftest.$ac_ext <<_ACEOF
38567 /* confdefs.h.  */
38568 _ACEOF
38569 cat confdefs.h >>conftest.$ac_ext
38570 cat >>conftest.$ac_ext <<_ACEOF
38571 /* end confdefs.h.  */
38572 $ac_includes_default
38573 #include <security/pam_appl.h>
38574 _ACEOF
38575 rm -f conftest.$ac_objext
38576 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38577   (eval $ac_compile) 2>conftest.er1
38578   ac_status=$?
38579   grep -v '^ *+' conftest.er1 >conftest.err
38580   rm -f conftest.er1
38581   cat conftest.err >&5
38582   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38583   (exit $ac_status); } &&
38584          { ac_try='test -z "$ac_c_werror_flag"
38585                          || test ! -s conftest.err'
38586   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38587   (eval $ac_try) 2>&5
38588   ac_status=$?
38589   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38590   (exit $ac_status); }; } &&
38591          { ac_try='test -s conftest.$ac_objext'
38592   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38593   (eval $ac_try) 2>&5
38594   ac_status=$?
38595   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38596   (exit $ac_status); }; }; then
38597   ac_header_compiler=yes
38598 else
38599   echo "$as_me: failed program was:" >&5
38600 sed 's/^/| /' conftest.$ac_ext >&5
38601
38602 ac_header_compiler=no
38603 fi
38604 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38605 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
38606 echo "${ECHO_T}$ac_header_compiler" >&6
38607
38608 # Is the header present?
38609 echo "$as_me:$LINENO: checking security/pam_appl.h presence" >&5
38610 echo $ECHO_N "checking security/pam_appl.h presence... $ECHO_C" >&6
38611 cat >conftest.$ac_ext <<_ACEOF
38612 /* confdefs.h.  */
38613 _ACEOF
38614 cat confdefs.h >>conftest.$ac_ext
38615 cat >>conftest.$ac_ext <<_ACEOF
38616 /* end confdefs.h.  */
38617 #include <security/pam_appl.h>
38618 _ACEOF
38619 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
38620   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
38621   ac_status=$?
38622   grep -v '^ *+' conftest.er1 >conftest.err
38623   rm -f conftest.er1
38624   cat conftest.err >&5
38625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38626   (exit $ac_status); } >/dev/null; then
38627   if test -s conftest.err; then
38628     ac_cpp_err=$ac_c_preproc_warn_flag
38629     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
38630   else
38631     ac_cpp_err=
38632   fi
38633 else
38634   ac_cpp_err=yes
38635 fi
38636 if test -z "$ac_cpp_err"; then
38637   ac_header_preproc=yes
38638 else
38639   echo "$as_me: failed program was:" >&5
38640 sed 's/^/| /' conftest.$ac_ext >&5
38641
38642   ac_header_preproc=no
38643 fi
38644 rm -f conftest.err conftest.$ac_ext
38645 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
38646 echo "${ECHO_T}$ac_header_preproc" >&6
38647
38648 # So?  What about this header?
38649 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
38650   yes:no: )
38651     { echo "$as_me:$LINENO: WARNING: security/pam_appl.h: accepted by the compiler, rejected by the preprocessor!" >&5
38652 echo "$as_me: WARNING: security/pam_appl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
38653     { echo "$as_me:$LINENO: WARNING: security/pam_appl.h: proceeding with the compiler's result" >&5
38654 echo "$as_me: WARNING: security/pam_appl.h: proceeding with the compiler's result" >&2;}
38655     ac_header_preproc=yes
38656     ;;
38657   no:yes:* )
38658     { echo "$as_me:$LINENO: WARNING: security/pam_appl.h: present but cannot be compiled" >&5
38659 echo "$as_me: WARNING: security/pam_appl.h: present but cannot be compiled" >&2;}
38660     { echo "$as_me:$LINENO: WARNING: security/pam_appl.h:     check for missing prerequisite headers?" >&5
38661 echo "$as_me: WARNING: security/pam_appl.h:     check for missing prerequisite headers?" >&2;}
38662     { echo "$as_me:$LINENO: WARNING: security/pam_appl.h: see the Autoconf documentation" >&5
38663 echo "$as_me: WARNING: security/pam_appl.h: see the Autoconf documentation" >&2;}
38664     { echo "$as_me:$LINENO: WARNING: security/pam_appl.h:     section \"Present But Cannot Be Compiled\"" >&5
38665 echo "$as_me: WARNING: security/pam_appl.h:     section \"Present But Cannot Be Compiled\"" >&2;}
38666     { echo "$as_me:$LINENO: WARNING: security/pam_appl.h: proceeding with the preprocessor's result" >&5
38667 echo "$as_me: WARNING: security/pam_appl.h: proceeding with the preprocessor's result" >&2;}
38668     { echo "$as_me:$LINENO: WARNING: security/pam_appl.h: in the future, the compiler will take precedence" >&5
38669 echo "$as_me: WARNING: security/pam_appl.h: in the future, the compiler will take precedence" >&2;}
38670     (
38671       cat <<\_ASBOX
38672 ## ------------------------------ ##
38673 ## Report this to bug-cvs@gnu.org ##
38674 ## ------------------------------ ##
38675 _ASBOX
38676     ) |
38677       sed "s/^/$as_me: WARNING:     /" >&2
38678     ;;
38679 esac
38680 echo "$as_me:$LINENO: checking for security/pam_appl.h" >&5
38681 echo $ECHO_N "checking for security/pam_appl.h... $ECHO_C" >&6
38682 if test "${ac_cv_header_security_pam_appl_h+set}" = set; then
38683   echo $ECHO_N "(cached) $ECHO_C" >&6
38684 else
38685   ac_cv_header_security_pam_appl_h=$ac_header_preproc
38686 fi
38687 echo "$as_me:$LINENO: result: $ac_cv_header_security_pam_appl_h" >&5
38688 echo "${ECHO_T}$ac_cv_header_security_pam_appl_h" >&6
38689
38690 fi
38691 if test $ac_cv_header_security_pam_appl_h = yes; then
38692
38693 cat >>confdefs.h <<\_ACEOF
38694 #define HAVE_PAM 1
38695 _ACEOF
38696
38697     echo "$as_me:$LINENO: checking for pam_start in -lpam" >&5
38698 echo $ECHO_N "checking for pam_start in -lpam... $ECHO_C" >&6
38699 if test "${ac_cv_lib_pam_pam_start+set}" = set; then
38700   echo $ECHO_N "(cached) $ECHO_C" >&6
38701 else
38702   ac_check_lib_save_LIBS=$LIBS
38703 LIBS="-lpam  $LIBS"
38704 cat >conftest.$ac_ext <<_ACEOF
38705 /* confdefs.h.  */
38706 _ACEOF
38707 cat confdefs.h >>conftest.$ac_ext
38708 cat >>conftest.$ac_ext <<_ACEOF
38709 /* end confdefs.h.  */
38710
38711 /* Override any gcc2 internal prototype to avoid an error.  */
38712 #ifdef __cplusplus
38713 extern "C"
38714 #endif
38715 /* We use char because int might match the return type of a gcc2
38716    builtin and then its argument prototype would still apply.  */
38717 char pam_start ();
38718 int
38719 main ()
38720 {
38721 pam_start ();
38722   ;
38723   return 0;
38724 }
38725 _ACEOF
38726 rm -f conftest.$ac_objext conftest$ac_exeext
38727 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38728   (eval $ac_link) 2>conftest.er1
38729   ac_status=$?
38730   grep -v '^ *+' conftest.er1 >conftest.err
38731   rm -f conftest.er1
38732   cat conftest.err >&5
38733   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38734   (exit $ac_status); } &&
38735          { ac_try='test -z "$ac_c_werror_flag"
38736                          || test ! -s conftest.err'
38737   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38738   (eval $ac_try) 2>&5
38739   ac_status=$?
38740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38741   (exit $ac_status); }; } &&
38742          { ac_try='test -s conftest$ac_exeext'
38743   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38744   (eval $ac_try) 2>&5
38745   ac_status=$?
38746   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38747   (exit $ac_status); }; }; then
38748   ac_cv_lib_pam_pam_start=yes
38749 else
38750   echo "$as_me: failed program was:" >&5
38751 sed 's/^/| /' conftest.$ac_ext >&5
38752
38753 ac_cv_lib_pam_pam_start=no
38754 fi
38755 rm -f conftest.err conftest.$ac_objext \
38756       conftest$ac_exeext conftest.$ac_ext
38757 LIBS=$ac_check_lib_save_LIBS
38758 fi
38759 echo "$as_me:$LINENO: result: $ac_cv_lib_pam_pam_start" >&5
38760 echo "${ECHO_T}$ac_cv_lib_pam_pam_start" >&6
38761 if test $ac_cv_lib_pam_pam_start = yes; then
38762   LIBS="${LIBS} -lpam"
38763 else
38764   { { echo "$as_me:$LINENO: error: Could not find PAM libraries but the headers exist.
38765       Give the --disable-pam option to compile without PAM support (or fix
38766       your broken configuration)" >&5
38767 echo "$as_me: error: Could not find PAM libraries but the headers exist.
38768       Give the --disable-pam option to compile without PAM support (or fix
38769       your broken configuration)" >&2;}
38770    { (exit 1); exit 1; }; }
38771
38772 fi
38773
38774 else
38775   { { echo "$as_me:$LINENO: error: Could not find PAM headers" >&5
38776 echo "$as_me: error: Could not find PAM headers" >&2;}
38777    { (exit 1); exit 1; }; }
38778
38779 fi
38780
38781
38782 fi
38783
38784
38785
38786
38787 # Check whether --enable-case-sensitivity or --disable-case-sensitivity was given.
38788 if test "${enable_case_sensitivity+set}" = set; then
38789   enableval="$enable_case_sensitivity"
38790   case "$enable_case_sensitivity" in
38791        yes | no | auto) ;;
38792        *)
38793           { { echo "$as_me:$LINENO: error: Unrecognized argument to --enable-case-sensitivity: \`$enable_case_sensitivity'.  Acceptable values are \`yes', \`no', and \`auto'." >&5
38794 echo "$as_me: error: Unrecognized argument to --enable-case-sensitivity: \`$enable_case_sensitivity'.  Acceptable values are \`yes', \`no', and \`auto'." >&2;}
38795    { (exit 1); exit 1; }; }
38796           ;;
38797      esac
38798 else
38799   enable_case_sensitivity=auto
38800 fi;
38801
38802 acx_forced=' (forced)'
38803 echo "$as_me:$LINENO: checking for a case sensitive file system" >&5
38804 echo $ECHO_N "checking for a case sensitive file system... $ECHO_C" >&6
38805 if test $enable_case_sensitivity = auto; then
38806         if test "${acx_cv_case_sensitive+set}" = set; then
38807   echo $ECHO_N "(cached) $ECHO_C" >&6
38808 else
38809    rm -f ac_TEST_filenames_CASE_sensitive
38810     echo foo >ac_test_filenames_case_sensitive
38811     if test -f ac_TEST_filenames_CASE_sensitive; then
38812       acx_cv_case_sensitive=no
38813     else
38814       acx_cv_case_sensitive=yes
38815     fi
38816     rm ac_test_filenames_case_sensitive
38817
38818 fi
38819
38820   enable_case_sensitivity=$acx_cv_case_sensitive
38821   acx_forced=
38822 fi
38823 echo "$as_me:$LINENO: result: $enable_case_sensitivity$acx_forced" >&5
38824 echo "${ECHO_T}$enable_case_sensitivity$acx_forced" >&6
38825 if test $enable_case_sensitivity = no; then
38826
38827 cat >>confdefs.h <<\_ACEOF
38828 #define FILENAMES_CASE_INSENSITIVE 1
38829 _ACEOF
38830
38831       case $LIBOBJS in
38832     "fncase.$ac_objext"   | \
38833   *" fncase.$ac_objext"   | \
38834     "fncase.$ac_objext "* | \
38835   *" fncase.$ac_objext "* ) ;;
38836   *) LIBOBJS="$LIBOBJS fncase.$ac_objext" ;;
38837 esac
38838
38839 fi
38840
38841
38842
38843
38844 # Check whether --enable-encryption or --disable-encryption was given.
38845 if test "${enable_encryption+set}" = set; then
38846   enableval="$enable_encryption"
38847
38848 else
38849   enable_encryption=no
38850 fi;
38851 if test "x$enable_encryption" = xyes; then
38852   if test xno = "x$with_client" && test xno = "x$with_server"; then
38853     { echo "$as_me:$LINENO: WARNING: --enable-encryption is meaningless when neither the CVS client
38854        nor the CVS server is enabled (--disable-client and --disable-server)." >&5
38855 echo "$as_me: WARNING: --enable-encryption is meaningless when neither the CVS client
38856        nor the CVS server is enabled (--disable-client and --disable-server)." >&2;}
38857   else
38858
38859 cat >>confdefs.h <<\_ACEOF
38860 #define ENCRYPTION 1
38861 _ACEOF
38862
38863   fi
38864 fi
38865
38866
38867
38868
38869 # Check whether --enable-force-editor or --disable-force-editor was given.
38870 if test "${enable_force_editor+set}" = set; then
38871   enableval="$enable_force_editor"
38872
38873 else
38874   enable_force_editor=no
38875 fi;
38876
38877 if test yes = "$enable_force_editor"; then
38878
38879 cat >>confdefs.h <<\_ACEOF
38880 #define FORCE_USE_EDITOR 1
38881 _ACEOF
38882
38883 fi
38884
38885
38886
38887
38888 # Check for options requesting client and server feature. If none are
38889 # given and we have connect(), we want the full client & server arrangement.
38890 # Check whether --enable-lock-compatibility or --disable-lock-compatibility was given.
38891 if test "${enable_lock_compatibility+set}" = set; then
38892   enableval="$enable_lock_compatibility"
38893
38894 else
38895   enable_lock_compatibility=yes
38896 fi;
38897
38898 if test x$enable_lock_compatibility = xyes; then
38899
38900 cat >>confdefs.h <<\_ACEOF
38901 #define LOCK_COMPATIBILITY 1
38902 _ACEOF
38903
38904 fi
38905
38906
38907
38908
38909 # Check whether --enable-rootcommit or --disable-rootcommit was given.
38910 if test "${enable_rootcommit+set}" = set; then
38911   enableval="$enable_rootcommit"
38912
38913 else
38914   enable_rootcommit=no
38915 fi;
38916 if test "$enable_rootcommit" = no; then
38917
38918 cat >>confdefs.h <<\_ACEOF
38919 #define CVS_BADROOT 1
38920 _ACEOF
38921
38922 fi
38923
38924
38925 # Check whether --enable-old-info-support or --disable-old-info-support was given.
38926 if test "${enable_old_info_support+set}" = set; then
38927   enableval="$enable_old_info_support"
38928
38929 else
38930   enable_old_info_format_support=yes
38931 fi;
38932 if test "$enable_old_info_format_support" = yes; then
38933
38934 cat >>confdefs.h <<\_ACEOF
38935 #define SUPPORT_OLD_INFO_FMT_STRINGS 1
38936 _ACEOF
38937
38938 fi
38939
38940
38941
38942
38943
38944
38945
38946
38947 echo "$as_me:$LINENO: checking for cygwin32" >&5
38948 echo $ECHO_N "checking for cygwin32... $ECHO_C" >&6
38949 if test "${ccvs_cv_sys_cygwin32+set}" = set; then
38950   echo $ECHO_N "(cached) $ECHO_C" >&6
38951 else
38952   cat >conftest.$ac_ext <<_ACEOF
38953 /* confdefs.h.  */
38954 _ACEOF
38955 cat confdefs.h >>conftest.$ac_ext
38956 cat >>conftest.$ac_ext <<_ACEOF
38957 /* end confdefs.h.  */
38958
38959 int
38960 main ()
38961 {
38962 return __CYGWIN32__;
38963   ;
38964   return 0;
38965 }
38966 _ACEOF
38967 rm -f conftest.$ac_objext
38968 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38969   (eval $ac_compile) 2>conftest.er1
38970   ac_status=$?
38971   grep -v '^ *+' conftest.er1 >conftest.err
38972   rm -f conftest.er1
38973   cat conftest.err >&5
38974   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38975   (exit $ac_status); } &&
38976          { ac_try='test -z "$ac_c_werror_flag"
38977                          || test ! -s conftest.err'
38978   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38979   (eval $ac_try) 2>&5
38980   ac_status=$?
38981   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38982   (exit $ac_status); }; } &&
38983          { ac_try='test -s conftest.$ac_objext'
38984   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38985   (eval $ac_try) 2>&5
38986   ac_status=$?
38987   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38988   (exit $ac_status); }; }; then
38989   ccvs_cv_sys_cygwin32=yes
38990 else
38991   echo "$as_me: failed program was:" >&5
38992 sed 's/^/| /' conftest.$ac_ext >&5
38993
38994 ccvs_cv_sys_cygwin32=no
38995 fi
38996 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38997 fi
38998 echo "$as_me:$LINENO: result: $ccvs_cv_sys_cygwin32" >&5
38999 echo "${ECHO_T}$ccvs_cv_sys_cygwin32" >&6
39000 if test $ccvs_cv_sys_cygwin32 = yes; then
39001   LIBS="$LIBS -ladvapi32"
39002
39003
39004 cat >>confdefs.h <<\_ACEOF
39005 #define UTIME_EXPECTS_WRITABLE 1
39006 _ACEOF
39007
39008
39009
39010 cat >>confdefs.h <<\_ACEOF
39011 #define USE_SETMODE_STDOUT 1
39012 _ACEOF
39013
39014
39015 cat >>confdefs.h <<\_ACEOF
39016 #define HAVE_SETMODE 1
39017 _ACEOF
39018
39019 fi
39020
39021           ac_config_files="$ac_config_files contrib/validate_repo"
39022
39023           ac_config_files="$ac_config_files contrib/clmerge"
39024
39025           ac_config_files="$ac_config_files contrib/cln_hist"
39026
39027           ac_config_files="$ac_config_files contrib/commit_prep"
39028
39029           ac_config_files="$ac_config_files contrib/cvs_acls"
39030
39031           ac_config_files="$ac_config_files contrib/log"
39032
39033           ac_config_files="$ac_config_files contrib/log_accum"
39034
39035           ac_config_files="$ac_config_files contrib/mfpipe"
39036
39037           ac_config_files="$ac_config_files contrib/pvcs2rcs"
39038
39039           ac_config_files="$ac_config_files contrib/rcs2log:contrib/rcs2log.sh"
39040
39041           ac_config_files="$ac_config_files contrib/rcslock"
39042
39043           ac_config_files="$ac_config_files contrib/sccs2rcs"
39044
39045           ac_config_files="$ac_config_files doc/mkman:doc/mkman.pl"
39046
39047           ac_config_files="$ac_config_files src/cvsbug"
39048
39049
39050                                                                                                                                                                                                         ac_config_files="$ac_config_files Makefile contrib/Makefile contrib/pam/Makefile cvs.spec diff/Makefile doc/Makefile doc/i18n/Makefile doc/i18n/pt_BR/Makefile emx/Makefile lib/Makefile maint-aux/Makefile man/Makefile os2/Makefile src/Makefile src/sanity.config.sh tools/Makefile vms/Makefile windows-NT/Makefile windows-NT/SCC/Makefile zlib/Makefile"
39051
39052
39053 cat >confcache <<\_ACEOF
39054 # This file is a shell script that caches the results of configure
39055 # tests run on this system so they can be shared between configure
39056 # scripts and configure runs, see configure's option --config-cache.
39057 # It is not useful on other systems.  If it contains results you don't
39058 # want to keep, you may remove or edit it.
39059 #
39060 # config.status only pays attention to the cache file if you give it
39061 # the --recheck option to rerun configure.
39062 #
39063 # `ac_cv_env_foo' variables (set or unset) will be overridden when
39064 # loading this file, other *unset* `ac_cv_foo' will be assigned the
39065 # following values.
39066
39067 _ACEOF
39068
39069 # The following way of writing the cache mishandles newlines in values,
39070 # but we know of no workaround that is simple, portable, and efficient.
39071 # So, don't put newlines in cache variables' values.
39072 # Ultrix sh set writes to stderr and can't be redirected directly,
39073 # and sets the high bit in the cache file unless we assign to the vars.
39074 {
39075   (set) 2>&1 |
39076     case `(ac_space=' '; set | grep ac_space) 2>&1` in
39077     *ac_space=\ *)
39078       # `set' does not quote correctly, so add quotes (double-quote
39079       # substitution turns \\\\ into \\, and sed turns \\ into \).
39080       sed -n \
39081         "s/'/'\\\\''/g;
39082           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
39083       ;;
39084     *)
39085       # `set' quotes correctly as required by POSIX, so do not add quotes.
39086       sed -n \
39087         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
39088       ;;
39089     esac;
39090 } |
39091   sed '
39092      t clear
39093      : clear
39094      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
39095      t end
39096      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
39097      : end' >>confcache
39098 if diff $cache_file confcache >/dev/null 2>&1; then :; else
39099   if test -w $cache_file; then
39100     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
39101     cat confcache >$cache_file
39102   else
39103     echo "not updating unwritable cache $cache_file"
39104   fi
39105 fi
39106 rm -f confcache
39107
39108 test "x$prefix" = xNONE && prefix=$ac_default_prefix
39109 # Let make expand exec_prefix.
39110 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
39111
39112 # VPATH may cause trouble with some makes, so we remove $(srcdir),
39113 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
39114 # trailing colons and then remove the whole line if VPATH becomes empty
39115 # (actually we leave an empty line to preserve line numbers).
39116 if test "x$srcdir" = x.; then
39117   ac_vpsub='/^[  ]*VPATH[        ]*=/{
39118 s/:*\$(srcdir):*/:/;
39119 s/:*\${srcdir}:*/:/;
39120 s/:*@srcdir@:*/:/;
39121 s/^\([^=]*=[     ]*\):*/\1/;
39122 s/:*$//;
39123 s/^[^=]*=[       ]*$//;
39124 }'
39125 fi
39126
39127 DEFS=-DHAVE_CONFIG_H
39128
39129 ac_libobjs=
39130 ac_ltlibobjs=
39131 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
39132   # 1. Remove the extension, and $U if already installed.
39133   ac_i=`echo "$ac_i" |
39134          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
39135   # 2. Add them.
39136   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
39137   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
39138 done
39139 LIBOBJS=$ac_libobjs
39140
39141 LTLIBOBJS=$ac_ltlibobjs
39142
39143
39144 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
39145   { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
39146 Usually this means the macro was only invoked conditionally." >&5
39147 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
39148 Usually this means the macro was only invoked conditionally." >&2;}
39149    { (exit 1); exit 1; }; }
39150 fi
39151 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
39152   { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
39153 Usually this means the macro was only invoked conditionally." >&5
39154 echo "$as_me: error: conditional \"AMDEP\" was never defined.
39155 Usually this means the macro was only invoked conditionally." >&2;}
39156    { (exit 1); exit 1; }; }
39157 fi
39158 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
39159   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
39160 Usually this means the macro was only invoked conditionally." >&5
39161 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
39162 Usually this means the macro was only invoked conditionally." >&2;}
39163    { (exit 1); exit 1; }; }
39164 fi
39165 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
39166   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
39167 Usually this means the macro was only invoked conditionally." >&5
39168 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
39169 Usually this means the macro was only invoked conditionally." >&2;}
39170    { (exit 1); exit 1; }; }
39171 fi
39172 if test -z "${MAKE_TARGETS_IN_VPATH_TRUE}" && test -z "${MAKE_TARGETS_IN_VPATH_FALSE}"; then
39173   { { echo "$as_me:$LINENO: error: conditional \"MAKE_TARGETS_IN_VPATH\" was never defined.
39174 Usually this means the macro was only invoked conditionally." >&5
39175 echo "$as_me: error: conditional \"MAKE_TARGETS_IN_VPATH\" was never defined.
39176 Usually this means the macro was only invoked conditionally." >&2;}
39177    { (exit 1); exit 1; }; }
39178 fi
39179
39180 : ${CONFIG_STATUS=./config.status}
39181 ac_clean_files_save=$ac_clean_files
39182 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
39183 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
39184 echo "$as_me: creating $CONFIG_STATUS" >&6;}
39185 cat >$CONFIG_STATUS <<_ACEOF
39186 #! $SHELL
39187 # Generated by $as_me.
39188 # Run this file to recreate the current configuration.
39189 # Compiler output produced by configure, useful for debugging
39190 # configure, is in config.log if it exists.
39191
39192 debug=false
39193 ac_cs_recheck=false
39194 ac_cs_silent=false
39195 SHELL=\${CONFIG_SHELL-$SHELL}
39196 _ACEOF
39197
39198 cat >>$CONFIG_STATUS <<\_ACEOF
39199 ## --------------------- ##
39200 ## M4sh Initialization.  ##
39201 ## --------------------- ##
39202
39203 # Be Bourne compatible
39204 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
39205   emulate sh
39206   NULLCMD=:
39207   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
39208   # is contrary to our usage.  Disable this feature.
39209   alias -g '${1+"$@"}'='"$@"'
39210 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
39211   set -o posix
39212 fi
39213 DUALCASE=1; export DUALCASE # for MKS sh
39214
39215 # Support unset when possible.
39216 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
39217   as_unset=unset
39218 else
39219   as_unset=false
39220 fi
39221
39222
39223 # Work around bugs in pre-3.0 UWIN ksh.
39224 $as_unset ENV MAIL MAILPATH
39225 PS1='$ '
39226 PS2='> '
39227 PS4='+ '
39228
39229 # NLS nuisances.
39230 for as_var in \
39231   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
39232   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
39233   LC_TELEPHONE LC_TIME
39234 do
39235   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
39236     eval $as_var=C; export $as_var
39237   else
39238     $as_unset $as_var
39239   fi
39240 done
39241
39242 # Required to use basename.
39243 if expr a : '\(a\)' >/dev/null 2>&1; then
39244   as_expr=expr
39245 else
39246   as_expr=false
39247 fi
39248
39249 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
39250   as_basename=basename
39251 else
39252   as_basename=false
39253 fi
39254
39255
39256 # Name of the executable.
39257 as_me=`$as_basename "$0" ||
39258 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
39259          X"$0" : 'X\(//\)$' \| \
39260          X"$0" : 'X\(/\)$' \| \
39261          .     : '\(.\)' 2>/dev/null ||
39262 echo X/"$0" |
39263     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
39264           /^X\/\(\/\/\)$/{ s//\1/; q; }
39265           /^X\/\(\/\).*/{ s//\1/; q; }
39266           s/.*/./; q'`
39267
39268
39269 # PATH needs CR, and LINENO needs CR and PATH.
39270 # Avoid depending upon Character Ranges.
39271 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
39272 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
39273 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
39274 as_cr_digits='0123456789'
39275 as_cr_alnum=$as_cr_Letters$as_cr_digits
39276
39277 # The user is always right.
39278 if test "${PATH_SEPARATOR+set}" != set; then
39279   echo "#! /bin/sh" >conf$$.sh
39280   echo  "exit 0"   >>conf$$.sh
39281   chmod +x conf$$.sh
39282   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
39283     PATH_SEPARATOR=';'
39284   else
39285     PATH_SEPARATOR=:
39286   fi
39287   rm -f conf$$.sh
39288 fi
39289
39290
39291   as_lineno_1=$LINENO
39292   as_lineno_2=$LINENO
39293   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
39294   test "x$as_lineno_1" != "x$as_lineno_2" &&
39295   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
39296   # Find who we are.  Look in the path if we contain no path at all
39297   # relative or not.
39298   case $0 in
39299     *[\\/]* ) as_myself=$0 ;;
39300     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
39301 for as_dir in $PATH
39302 do
39303   IFS=$as_save_IFS
39304   test -z "$as_dir" && as_dir=.
39305   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
39306 done
39307
39308        ;;
39309   esac
39310   # We did not find ourselves, most probably we were run as `sh COMMAND'
39311   # in which case we are not to be found in the path.
39312   if test "x$as_myself" = x; then
39313     as_myself=$0
39314   fi
39315   if test ! -f "$as_myself"; then
39316     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
39317 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
39318    { (exit 1); exit 1; }; }
39319   fi
39320   case $CONFIG_SHELL in
39321   '')
39322     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
39323 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
39324 do
39325   IFS=$as_save_IFS
39326   test -z "$as_dir" && as_dir=.
39327   for as_base in sh bash ksh sh5; do
39328          case $as_dir in
39329          /*)
39330            if ("$as_dir/$as_base" -c '
39331   as_lineno_1=$LINENO
39332   as_lineno_2=$LINENO
39333   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
39334   test "x$as_lineno_1" != "x$as_lineno_2" &&
39335   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
39336              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
39337              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
39338              CONFIG_SHELL=$as_dir/$as_base
39339              export CONFIG_SHELL
39340              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
39341            fi;;
39342          esac
39343        done
39344 done
39345 ;;
39346   esac
39347
39348   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
39349   # uniformly replaced by the line number.  The first 'sed' inserts a
39350   # line-number line before each line; the second 'sed' does the real
39351   # work.  The second script uses 'N' to pair each line-number line
39352   # with the numbered line, and appends trailing '-' during
39353   # substitution so that $LINENO is not a special case at line end.
39354   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
39355   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
39356   sed '=' <$as_myself |
39357     sed '
39358       N
39359       s,$,-,
39360       : loop
39361       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
39362       t loop
39363       s,-$,,
39364       s,^['$as_cr_digits']*\n,,
39365     ' >$as_me.lineno &&
39366   chmod +x $as_me.lineno ||
39367     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
39368 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
39369    { (exit 1); exit 1; }; }
39370
39371   # Don't try to exec as it changes $[0], causing all sort of problems
39372   # (the dirname of $[0] is not the place where we might find the
39373   # original and so on.  Autoconf is especially sensible to this).
39374   . ./$as_me.lineno
39375   # Exit status is that of the last command.
39376   exit
39377 }
39378
39379
39380 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
39381   *c*,-n*) ECHO_N= ECHO_C='
39382 ' ECHO_T='      ' ;;
39383   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
39384   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
39385 esac
39386
39387 if expr a : '\(a\)' >/dev/null 2>&1; then
39388   as_expr=expr
39389 else
39390   as_expr=false
39391 fi
39392
39393 rm -f conf$$ conf$$.exe conf$$.file
39394 echo >conf$$.file
39395 if ln -s conf$$.file conf$$ 2>/dev/null; then
39396   # We could just check for DJGPP; but this test a) works b) is more generic
39397   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
39398   if test -f conf$$.exe; then
39399     # Don't use ln at all; we don't have any links
39400     as_ln_s='cp -p'
39401   else
39402     as_ln_s='ln -s'
39403   fi
39404 elif ln conf$$.file conf$$ 2>/dev/null; then
39405   as_ln_s=ln
39406 else
39407   as_ln_s='cp -p'
39408 fi
39409 rm -f conf$$ conf$$.exe conf$$.file
39410
39411 if mkdir -p . 2>/dev/null; then
39412   as_mkdir_p=:
39413 else
39414   test -d ./-p && rmdir ./-p
39415   as_mkdir_p=false
39416 fi
39417
39418 as_executable_p="test -f"
39419
39420 # Sed expression to map a string onto a valid CPP name.
39421 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
39422
39423 # Sed expression to map a string onto a valid variable name.
39424 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
39425
39426
39427 # IFS
39428 # We need space, tab and new line, in precisely that order.
39429 as_nl='
39430 '
39431 IFS="   $as_nl"
39432
39433 # CDPATH.
39434 $as_unset CDPATH
39435
39436 exec 6>&1
39437
39438 # Open the log real soon, to keep \$[0] and so on meaningful, and to
39439 # report actual input values of CONFIG_FILES etc. instead of their
39440 # values after options handling.  Logging --version etc. is OK.
39441 exec 5>>config.log
39442 {
39443   echo
39444   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
39445 ## Running $as_me. ##
39446 _ASBOX
39447 } >&5
39448 cat >&5 <<_CSEOF
39449
39450 This file was extended by Concurrent Versions System (CVS) $as_me 1.12.12, which was
39451 generated by GNU Autoconf 2.59.  Invocation command line was
39452
39453   CONFIG_FILES    = $CONFIG_FILES
39454   CONFIG_HEADERS  = $CONFIG_HEADERS
39455   CONFIG_LINKS    = $CONFIG_LINKS
39456   CONFIG_COMMANDS = $CONFIG_COMMANDS
39457   $ $0 $@
39458
39459 _CSEOF
39460 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
39461 echo >&5
39462 _ACEOF
39463
39464 # Files that config.status was made for.
39465 if test -n "$ac_config_files"; then
39466   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
39467 fi
39468
39469 if test -n "$ac_config_headers"; then
39470   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
39471 fi
39472
39473 if test -n "$ac_config_links"; then
39474   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
39475 fi
39476
39477 if test -n "$ac_config_commands"; then
39478   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
39479 fi
39480
39481 cat >>$CONFIG_STATUS <<\_ACEOF
39482
39483 ac_cs_usage="\
39484 \`$as_me' instantiates files from templates according to the
39485 current configuration.
39486
39487 Usage: $0 [OPTIONS] [FILE]...
39488
39489   -h, --help       print this help, then exit
39490   -V, --version    print version number, then exit
39491   -q, --quiet      do not print progress messages
39492   -d, --debug      don't remove temporary files
39493       --recheck    update $as_me by reconfiguring in the same conditions
39494   --file=FILE[:TEMPLATE]
39495                    instantiate the configuration file FILE
39496   --header=FILE[:TEMPLATE]
39497                    instantiate the configuration header FILE
39498
39499 Configuration files:
39500 $config_files
39501
39502 Configuration headers:
39503 $config_headers
39504
39505 Configuration commands:
39506 $config_commands
39507
39508 Report bugs to <bug-autoconf@gnu.org>."
39509 _ACEOF
39510
39511 cat >>$CONFIG_STATUS <<_ACEOF
39512 ac_cs_version="\\
39513 Concurrent Versions System (CVS) config.status 1.12.12
39514 configured by $0, generated by GNU Autoconf 2.59,
39515   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
39516
39517 Copyright (C) 2003 Free Software Foundation, Inc.
39518 This config.status script is free software; the Free Software Foundation
39519 gives unlimited permission to copy, distribute and modify it."
39520 srcdir=$srcdir
39521 INSTALL="$INSTALL"
39522 _ACEOF
39523
39524 cat >>$CONFIG_STATUS <<\_ACEOF
39525 # If no file are specified by the user, then we need to provide default
39526 # value.  By we need to know if files were specified by the user.
39527 ac_need_defaults=:
39528 while test $# != 0
39529 do
39530   case $1 in
39531   --*=*)
39532     ac_option=`expr "x$1" : 'x\([^=]*\)='`
39533     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
39534     ac_shift=:
39535     ;;
39536   -*)
39537     ac_option=$1
39538     ac_optarg=$2
39539     ac_shift=shift
39540     ;;
39541   *) # This is not an option, so the user has probably given explicit
39542      # arguments.
39543      ac_option=$1
39544      ac_need_defaults=false;;
39545   esac
39546
39547   case $ac_option in
39548   # Handling of the options.
39549 _ACEOF
39550 cat >>$CONFIG_STATUS <<\_ACEOF
39551   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
39552     ac_cs_recheck=: ;;
39553   --version | --vers* | -V )
39554     echo "$ac_cs_version"; exit 0 ;;
39555   --he | --h)
39556     # Conflict between --help and --header
39557     { { echo "$as_me:$LINENO: error: ambiguous option: $1
39558 Try \`$0 --help' for more information." >&5
39559 echo "$as_me: error: ambiguous option: $1
39560 Try \`$0 --help' for more information." >&2;}
39561    { (exit 1); exit 1; }; };;
39562   --help | --hel | -h )
39563     echo "$ac_cs_usage"; exit 0 ;;
39564   --debug | --d* | -d )
39565     debug=: ;;
39566   --file | --fil | --fi | --f )
39567     $ac_shift
39568     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
39569     ac_need_defaults=false;;
39570   --header | --heade | --head | --hea )
39571     $ac_shift
39572     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
39573     ac_need_defaults=false;;
39574   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
39575   | -silent | --silent | --silen | --sile | --sil | --si | --s)
39576     ac_cs_silent=: ;;
39577
39578   # This is an error.
39579   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
39580 Try \`$0 --help' for more information." >&5
39581 echo "$as_me: error: unrecognized option: $1
39582 Try \`$0 --help' for more information." >&2;}
39583    { (exit 1); exit 1; }; } ;;
39584
39585   *) ac_config_targets="$ac_config_targets $1" ;;
39586
39587   esac
39588   shift
39589 done
39590
39591 ac_configure_extra_args=
39592
39593 if $ac_cs_silent; then
39594   exec 6>/dev/null
39595   ac_configure_extra_args="$ac_configure_extra_args --silent"
39596 fi
39597
39598 _ACEOF
39599 cat >>$CONFIG_STATUS <<_ACEOF
39600 if \$ac_cs_recheck; then
39601   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
39602   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
39603 fi
39604
39605 _ACEOF
39606
39607 cat >>$CONFIG_STATUS <<_ACEOF
39608 #
39609 # INIT-COMMANDS section.
39610 #
39611
39612 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
39613 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
39614     # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
39615     # from automake.
39616     eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
39617     # Capture the value of LINGUAS because we need it to compute CATALOGS.
39618     LINGUAS="${LINGUAS-%UNSET%}"
39619
39620
39621 _ACEOF
39622
39623
39624
39625 cat >>$CONFIG_STATUS <<\_ACEOF
39626 for ac_config_target in $ac_config_targets
39627 do
39628   case "$ac_config_target" in
39629   # Handling of arguments.
39630   "contrib/validate_repo" ) CONFIG_FILES="$CONFIG_FILES contrib/validate_repo" ;;
39631   "contrib/clmerge" ) CONFIG_FILES="$CONFIG_FILES contrib/clmerge" ;;
39632   "contrib/cln_hist" ) CONFIG_FILES="$CONFIG_FILES contrib/cln_hist" ;;
39633   "contrib/commit_prep" ) CONFIG_FILES="$CONFIG_FILES contrib/commit_prep" ;;
39634   "contrib/cvs_acls" ) CONFIG_FILES="$CONFIG_FILES contrib/cvs_acls" ;;
39635   "contrib/log" ) CONFIG_FILES="$CONFIG_FILES contrib/log" ;;
39636   "contrib/log_accum" ) CONFIG_FILES="$CONFIG_FILES contrib/log_accum" ;;
39637   "contrib/mfpipe" ) CONFIG_FILES="$CONFIG_FILES contrib/mfpipe" ;;
39638   "contrib/pvcs2rcs" ) CONFIG_FILES="$CONFIG_FILES contrib/pvcs2rcs" ;;
39639   "contrib/rcs2log" ) CONFIG_FILES="$CONFIG_FILES contrib/rcs2log:contrib/rcs2log.sh" ;;
39640   "contrib/rcslock" ) CONFIG_FILES="$CONFIG_FILES contrib/rcslock" ;;
39641   "contrib/sccs2rcs" ) CONFIG_FILES="$CONFIG_FILES contrib/sccs2rcs" ;;
39642   "doc/mkman" ) CONFIG_FILES="$CONFIG_FILES doc/mkman:doc/mkman.pl" ;;
39643   "src/cvsbug" ) CONFIG_FILES="$CONFIG_FILES src/cvsbug" ;;
39644   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
39645   "contrib/Makefile" ) CONFIG_FILES="$CONFIG_FILES contrib/Makefile" ;;
39646   "contrib/pam/Makefile" ) CONFIG_FILES="$CONFIG_FILES contrib/pam/Makefile" ;;
39647   "cvs.spec" ) CONFIG_FILES="$CONFIG_FILES cvs.spec" ;;
39648   "diff/Makefile" ) CONFIG_FILES="$CONFIG_FILES diff/Makefile" ;;
39649   "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
39650   "doc/i18n/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/i18n/Makefile" ;;
39651   "doc/i18n/pt_BR/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/i18n/pt_BR/Makefile" ;;
39652   "emx/Makefile" ) CONFIG_FILES="$CONFIG_FILES emx/Makefile" ;;
39653   "lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
39654   "maint-aux/Makefile" ) CONFIG_FILES="$CONFIG_FILES maint-aux/Makefile" ;;
39655   "man/Makefile" ) CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
39656   "os2/Makefile" ) CONFIG_FILES="$CONFIG_FILES os2/Makefile" ;;
39657   "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
39658   "src/sanity.config.sh" ) CONFIG_FILES="$CONFIG_FILES src/sanity.config.sh" ;;
39659   "tools/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
39660   "vms/Makefile" ) CONFIG_FILES="$CONFIG_FILES vms/Makefile" ;;
39661   "windows-NT/Makefile" ) CONFIG_FILES="$CONFIG_FILES windows-NT/Makefile" ;;
39662   "windows-NT/SCC/Makefile" ) CONFIG_FILES="$CONFIG_FILES windows-NT/SCC/Makefile" ;;
39663   "zlib/Makefile" ) CONFIG_FILES="$CONFIG_FILES zlib/Makefile" ;;
39664   "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
39665   "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
39666   "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
39667   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
39668 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
39669    { (exit 1); exit 1; }; };;
39670   esac
39671 done
39672
39673 # If the user did not use the arguments to specify the items to instantiate,
39674 # then the envvar interface is used.  Set only those that are not.
39675 # We use the long form for the default assignment because of an extremely
39676 # bizarre bug on SunOS 4.1.3.
39677 if $ac_need_defaults; then
39678   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
39679   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
39680   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
39681 fi
39682
39683 # Have a temporary directory for convenience.  Make it in the build tree
39684 # simply because there is no reason to put it here, and in addition,
39685 # creating and moving files from /tmp can sometimes cause problems.
39686 # Create a temporary directory, and hook for its removal unless debugging.
39687 $debug ||
39688 {
39689   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
39690   trap '{ (exit 1); exit 1; }' 1 2 13 15
39691 }
39692
39693 # Create a (secure) tmp directory for tmp files.
39694
39695 {
39696   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
39697   test -n "$tmp" && test -d "$tmp"
39698 }  ||
39699 {
39700   tmp=./confstat$$-$RANDOM
39701   (umask 077 && mkdir $tmp)
39702 } ||
39703 {
39704    echo "$me: cannot create a temporary directory in ." >&2
39705    { (exit 1); exit 1; }
39706 }
39707
39708 _ACEOF
39709
39710 cat >>$CONFIG_STATUS <<_ACEOF
39711
39712 #
39713 # CONFIG_FILES section.
39714 #
39715
39716 # No need to generate the scripts if there are no CONFIG_FILES.
39717 # This happens for instance when ./config.status config.h
39718 if test -n "\$CONFIG_FILES"; then
39719   # Protect against being on the right side of a sed subst in config.status.
39720   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
39721    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
39722 s,@SHELL@,$SHELL,;t t
39723 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
39724 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
39725 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
39726 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
39727 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
39728 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
39729 s,@exec_prefix@,$exec_prefix,;t t
39730 s,@prefix@,$prefix,;t t
39731 s,@program_transform_name@,$program_transform_name,;t t
39732 s,@bindir@,$bindir,;t t
39733 s,@sbindir@,$sbindir,;t t
39734 s,@libexecdir@,$libexecdir,;t t
39735 s,@datadir@,$datadir,;t t
39736 s,@sysconfdir@,$sysconfdir,;t t
39737 s,@sharedstatedir@,$sharedstatedir,;t t
39738 s,@localstatedir@,$localstatedir,;t t
39739 s,@libdir@,$libdir,;t t
39740 s,@includedir@,$includedir,;t t
39741 s,@oldincludedir@,$oldincludedir,;t t
39742 s,@infodir@,$infodir,;t t
39743 s,@mandir@,$mandir,;t t
39744 s,@build_alias@,$build_alias,;t t
39745 s,@host_alias@,$host_alias,;t t
39746 s,@target_alias@,$target_alias,;t t
39747 s,@DEFS@,$DEFS,;t t
39748 s,@ECHO_C@,$ECHO_C,;t t
39749 s,@ECHO_N@,$ECHO_N,;t t
39750 s,@ECHO_T@,$ECHO_T,;t t
39751 s,@LIBS@,$LIBS,;t t
39752 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
39753 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
39754 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
39755 s,@CYGPATH_W@,$CYGPATH_W,;t t
39756 s,@PACKAGE@,$PACKAGE,;t t
39757 s,@VERSION@,$VERSION,;t t
39758 s,@ACLOCAL@,$ACLOCAL,;t t
39759 s,@AUTOCONF@,$AUTOCONF,;t t
39760 s,@AUTOMAKE@,$AUTOMAKE,;t t
39761 s,@AUTOHEADER@,$AUTOHEADER,;t t
39762 s,@MAKEINFO@,$MAKEINFO,;t t
39763 s,@install_sh@,$install_sh,;t t
39764 s,@STRIP@,$STRIP,;t t
39765 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
39766 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
39767 s,@mkdir_p@,$mkdir_p,;t t
39768 s,@AWK@,$AWK,;t t
39769 s,@SET_MAKE@,$SET_MAKE,;t t
39770 s,@am__leading_dot@,$am__leading_dot,;t t
39771 s,@AMTAR@,$AMTAR,;t t
39772 s,@am__tar@,$am__tar,;t t
39773 s,@am__untar@,$am__untar,;t t
39774 s,@ac_prefix_program@,$ac_prefix_program,;t t
39775 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
39776 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
39777 s,@MAINT@,$MAINT,;t t
39778 s,@CC@,$CC,;t t
39779 s,@CFLAGS@,$CFLAGS,;t t
39780 s,@LDFLAGS@,$LDFLAGS,;t t
39781 s,@CPPFLAGS@,$CPPFLAGS,;t t
39782 s,@ac_ct_CC@,$ac_ct_CC,;t t
39783 s,@EXEEXT@,$EXEEXT,;t t
39784 s,@OBJEXT@,$OBJEXT,;t t
39785 s,@DEPDIR@,$DEPDIR,;t t
39786 s,@am__include@,$am__include,;t t
39787 s,@am__quote@,$am__quote,;t t
39788 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
39789 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
39790 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
39791 s,@CCDEPMODE@,$CCDEPMODE,;t t
39792 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
39793 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
39794 s,@CPP@,$CPP,;t t
39795 s,@EGREP@,$EGREP,;t t
39796 s,@RANLIB@,$RANLIB,;t t
39797 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
39798 s,@LN_S@,$LN_S,;t t
39799 s,@PERL@,$PERL,;t t
39800 s,@CSH@,$CSH,;t t
39801 s,@MKTEMP@,$MKTEMP,;t t
39802 s,@SENDMAIL@,$SENDMAIL,;t t
39803 s,@PR@,$PR,;t t
39804 s,@ROFF@,$ROFF,;t t
39805 s,@PS2PDF@,$PS2PDF,;t t
39806 s,@TEXI2DVI@,$TEXI2DVI,;t t
39807 s,@MAKE_TARGETS_IN_VPATH_TRUE@,$MAKE_TARGETS_IN_VPATH_TRUE,;t t
39808 s,@MAKE_TARGETS_IN_VPATH_FALSE@,$MAKE_TARGETS_IN_VPATH_FALSE,;t t
39809 s,@LIBOBJS@,$LIBOBJS,;t t
39810 s,@ALLOCA@,$ALLOCA,;t t
39811 s,@ALLOCA_H@,$ALLOCA_H,;t t
39812 s,@STDBOOL_H@,$STDBOOL_H,;t t
39813 s,@HAVE__BOOL@,$HAVE__BOOL,;t t
39814 s,@FNMATCH_H@,$FNMATCH_H,;t t
39815 s,@YACC@,$YACC,;t t
39816 s,@YFLAGS@,$YFLAGS,;t t
39817 s,@LIB_CLOCK_GETTIME@,$LIB_CLOCK_GETTIME,;t t
39818 s,@GETOPT_H@,$GETOPT_H,;t t
39819 s,@LIB_NANOSLEEP@,$LIB_NANOSLEEP,;t t
39820 s,@HAVE_LONG_64BIT@,$HAVE_LONG_64BIT,;t t
39821 s,@HAVE_LONG_LONG_64BIT@,$HAVE_LONG_LONG_64BIT,;t t
39822 s,@STDINT_H@,$STDINT_H,;t t
39823 s,@EOVERFLOW@,$EOVERFLOW,;t t
39824 s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
39825 s,@USE_NLS@,$USE_NLS,;t t
39826 s,@MSGFMT@,$MSGFMT,;t t
39827 s,@GMSGFMT@,$GMSGFMT,;t t
39828 s,@XGETTEXT@,$XGETTEXT,;t t
39829 s,@MSGMERGE@,$MSGMERGE,;t t
39830 s,@build@,$build,;t t
39831 s,@build_cpu@,$build_cpu,;t t
39832 s,@build_vendor@,$build_vendor,;t t
39833 s,@build_os@,$build_os,;t t
39834 s,@host@,$host,;t t
39835 s,@host_cpu@,$host_cpu,;t t
39836 s,@host_vendor@,$host_vendor,;t t
39837 s,@host_os@,$host_os,;t t
39838 s,@INTL_MACOSX_LIBS@,$INTL_MACOSX_LIBS,;t t
39839 s,@LIBICONV@,$LIBICONV,;t t
39840 s,@LTLIBICONV@,$LTLIBICONV,;t t
39841 s,@INTLLIBS@,$INTLLIBS,;t t
39842 s,@LIBINTL@,$LIBINTL,;t t
39843 s,@LTLIBINTL@,$LTLIBINTL,;t t
39844 s,@POSUB@,$POSUB,;t t
39845 s,@HAVE_PUTENV@,$HAVE_PUTENV,;t t
39846 s,@cvs_client_objects@,$cvs_client_objects,;t t
39847 s,@KRB4@,$KRB4,;t t
39848 s,@ZLIB_SUBDIRS@,$ZLIB_SUBDIRS,;t t
39849 s,@ZLIB_CPPFLAGS@,$ZLIB_CPPFLAGS,;t t
39850 s,@ZLIB_LIBS@,$ZLIB_LIBS,;t t
39851 s,@with_default_rsh@,$with_default_rsh,;t t
39852 s,@RSH_DFLT@,$RSH_DFLT,;t t
39853 s,@EDITOR@,$EDITOR,;t t
39854 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
39855 /@MKTEMP_SH_FUNCTION@/r $MKTEMP_SH_FUNCTION
39856 s,@MKTEMP_SH_FUNCTION@,,;t t
39857 CEOF
39858
39859 _ACEOF
39860
39861   cat >>$CONFIG_STATUS <<\_ACEOF
39862   # Split the substitutions into bite-sized pieces for seds with
39863   # small command number limits, like on Digital OSF/1 and HP-UX.
39864   ac_max_sed_lines=48
39865   ac_sed_frag=1 # Number of current file.
39866   ac_beg=1 # First line for current file.
39867   ac_end=$ac_max_sed_lines # Line after last line for current file.
39868   ac_more_lines=:
39869   ac_sed_cmds=
39870   while $ac_more_lines; do
39871     if test $ac_beg -gt 1; then
39872       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
39873     else
39874       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
39875     fi
39876     if test ! -s $tmp/subs.frag; then
39877       ac_more_lines=false
39878     else
39879       # The purpose of the label and of the branching condition is to
39880       # speed up the sed processing (if there are no `@' at all, there
39881       # is no need to browse any of the substitutions).
39882       # These are the two extra sed commands mentioned above.
39883       (echo ':t
39884   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
39885       if test -z "$ac_sed_cmds"; then
39886         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
39887       else
39888         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
39889       fi
39890       ac_sed_frag=`expr $ac_sed_frag + 1`
39891       ac_beg=$ac_end
39892       ac_end=`expr $ac_end + $ac_max_sed_lines`
39893     fi
39894   done
39895   if test -z "$ac_sed_cmds"; then
39896     ac_sed_cmds=cat
39897   fi
39898 fi # test -n "$CONFIG_FILES"
39899
39900 _ACEOF
39901 cat >>$CONFIG_STATUS <<\_ACEOF
39902 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
39903   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
39904   case $ac_file in
39905   - | *:- | *:-:* ) # input from stdin
39906         cat >$tmp/stdin
39907         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
39908         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
39909   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
39910         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
39911   * )   ac_file_in=$ac_file.in ;;
39912   esac
39913
39914   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
39915   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
39916 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
39917          X"$ac_file" : 'X\(//\)[^/]' \| \
39918          X"$ac_file" : 'X\(//\)$' \| \
39919          X"$ac_file" : 'X\(/\)' \| \
39920          .     : '\(.\)' 2>/dev/null ||
39921 echo X"$ac_file" |
39922     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
39923           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
39924           /^X\(\/\/\)$/{ s//\1/; q; }
39925           /^X\(\/\).*/{ s//\1/; q; }
39926           s/.*/./; q'`
39927   { if $as_mkdir_p; then
39928     mkdir -p "$ac_dir"
39929   else
39930     as_dir="$ac_dir"
39931     as_dirs=
39932     while test ! -d "$as_dir"; do
39933       as_dirs="$as_dir $as_dirs"
39934       as_dir=`(dirname "$as_dir") 2>/dev/null ||
39935 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
39936          X"$as_dir" : 'X\(//\)[^/]' \| \
39937          X"$as_dir" : 'X\(//\)$' \| \
39938          X"$as_dir" : 'X\(/\)' \| \
39939          .     : '\(.\)' 2>/dev/null ||
39940 echo X"$as_dir" |
39941     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
39942           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
39943           /^X\(\/\/\)$/{ s//\1/; q; }
39944           /^X\(\/\).*/{ s//\1/; q; }
39945           s/.*/./; q'`
39946     done
39947     test ! -n "$as_dirs" || mkdir $as_dirs
39948   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
39949 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
39950    { (exit 1); exit 1; }; }; }
39951
39952   ac_builddir=.
39953
39954 if test "$ac_dir" != .; then
39955   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
39956   # A "../" for each directory in $ac_dir_suffix.
39957   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
39958 else
39959   ac_dir_suffix= ac_top_builddir=
39960 fi
39961
39962 case $srcdir in
39963   .)  # No --srcdir option.  We are building in place.
39964     ac_srcdir=.
39965     if test -z "$ac_top_builddir"; then
39966        ac_top_srcdir=.
39967     else
39968        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
39969     fi ;;
39970   [\\/]* | ?:[\\/]* )  # Absolute path.
39971     ac_srcdir=$srcdir$ac_dir_suffix;
39972     ac_top_srcdir=$srcdir ;;
39973   *) # Relative path.
39974     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
39975     ac_top_srcdir=$ac_top_builddir$srcdir ;;
39976 esac
39977
39978 # Do not use `cd foo && pwd` to compute absolute paths, because
39979 # the directories may not exist.
39980 case `pwd` in
39981 .) ac_abs_builddir="$ac_dir";;
39982 *)
39983   case "$ac_dir" in
39984   .) ac_abs_builddir=`pwd`;;
39985   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
39986   *) ac_abs_builddir=`pwd`/"$ac_dir";;
39987   esac;;
39988 esac
39989 case $ac_abs_builddir in
39990 .) ac_abs_top_builddir=${ac_top_builddir}.;;
39991 *)
39992   case ${ac_top_builddir}. in
39993   .) ac_abs_top_builddir=$ac_abs_builddir;;
39994   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
39995   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
39996   esac;;
39997 esac
39998 case $ac_abs_builddir in
39999 .) ac_abs_srcdir=$ac_srcdir;;
40000 *)
40001   case $ac_srcdir in
40002   .) ac_abs_srcdir=$ac_abs_builddir;;
40003   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
40004   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
40005   esac;;
40006 esac
40007 case $ac_abs_builddir in
40008 .) ac_abs_top_srcdir=$ac_top_srcdir;;
40009 *)
40010   case $ac_top_srcdir in
40011   .) ac_abs_top_srcdir=$ac_abs_builddir;;
40012   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
40013   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
40014   esac;;
40015 esac
40016
40017
40018   case $INSTALL in
40019   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
40020   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
40021   esac
40022
40023   if test x"$ac_file" != x-; then
40024     { echo "$as_me:$LINENO: creating $ac_file" >&5
40025 echo "$as_me: creating $ac_file" >&6;}
40026     rm -f "$ac_file"
40027   fi
40028   # Let's still pretend it is `configure' which instantiates (i.e., don't
40029   # use $as_me), people would be surprised to read:
40030   #    /* config.h.  Generated by config.status.  */
40031   if test x"$ac_file" = x-; then
40032     configure_input=
40033   else
40034     configure_input="$ac_file.  "
40035   fi
40036   configure_input=$configure_input"Generated from `echo $ac_file_in |
40037                                      sed 's,.*/,,'` by configure."
40038
40039   # First look for the input files in the build tree, otherwise in the
40040   # src tree.
40041   ac_file_inputs=`IFS=:
40042     for f in $ac_file_in; do
40043       case $f in
40044       -) echo $tmp/stdin ;;
40045       [\\/$]*)
40046          # Absolute (can't be DOS-style, as IFS=:)
40047          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
40048 echo "$as_me: error: cannot find input file: $f" >&2;}
40049    { (exit 1); exit 1; }; }
40050          echo "$f";;
40051       *) # Relative
40052          if test -f "$f"; then
40053            # Build tree
40054            echo "$f"
40055          elif test -f "$srcdir/$f"; then
40056            # Source tree
40057            echo "$srcdir/$f"
40058          else
40059            # /dev/null tree
40060            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
40061 echo "$as_me: error: cannot find input file: $f" >&2;}
40062    { (exit 1); exit 1; }; }
40063          fi;;
40064       esac
40065     done` || { (exit 1); exit 1; }
40066 _ACEOF
40067 cat >>$CONFIG_STATUS <<_ACEOF
40068   sed "$ac_vpsub
40069 $extrasub
40070 _ACEOF
40071 cat >>$CONFIG_STATUS <<\_ACEOF
40072 :t
40073 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
40074 s,@configure_input@,$configure_input,;t t
40075 s,@srcdir@,$ac_srcdir,;t t
40076 s,@abs_srcdir@,$ac_abs_srcdir,;t t
40077 s,@top_srcdir@,$ac_top_srcdir,;t t
40078 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
40079 s,@builddir@,$ac_builddir,;t t
40080 s,@abs_builddir@,$ac_abs_builddir,;t t
40081 s,@top_builddir@,$ac_top_builddir,;t t
40082 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
40083 s,@INSTALL@,$ac_INSTALL,;t t
40084 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
40085   rm -f $tmp/stdin
40086   if test x"$ac_file" != x-; then
40087     mv $tmp/out $ac_file
40088   else
40089     cat $tmp/out
40090     rm -f $tmp/out
40091   fi
40092
40093   # Run the commands associated with the file.
40094   case $ac_file in
40095     contrib/validate_repo ) chmod +x contrib/validate_repo ;;
40096     contrib/clmerge ) chmod +x contrib/clmerge ;;
40097     contrib/cln_hist ) chmod +x contrib/cln_hist ;;
40098     contrib/commit_prep ) chmod +x contrib/commit_prep ;;
40099     contrib/cvs_acls ) chmod +x contrib/cvs_acls ;;
40100     contrib/log ) chmod +x contrib/log ;;
40101     contrib/log_accum ) chmod +x contrib/log_accum ;;
40102     contrib/mfpipe ) chmod +x contrib/mfpipe ;;
40103     contrib/pvcs2rcs ) chmod +x contrib/pvcs2rcs ;;
40104     contrib/rcs2log ) chmod +x contrib/rcs2log ;;
40105     contrib/rcslock ) chmod +x contrib/rcslock ;;
40106     contrib/sccs2rcs ) chmod +x contrib/sccs2rcs ;;
40107     doc/mkman ) chmod +x doc/mkman ;;
40108     src/cvsbug ) chmod +x src/cvsbug ;;
40109   esac
40110 done
40111 _ACEOF
40112 cat >>$CONFIG_STATUS <<\_ACEOF
40113
40114 #
40115 # CONFIG_HEADER section.
40116 #
40117
40118 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
40119 # NAME is the cpp macro being defined and VALUE is the value it is being given.
40120 #
40121 # ac_d sets the value in "#define NAME VALUE" lines.
40122 ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
40123 ac_dB='[         ].*$,\1#\2'
40124 ac_dC=' '
40125 ac_dD=',;t'
40126 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
40127 ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
40128 ac_uB='$,\1#\2define\3'
40129 ac_uC=' '
40130 ac_uD=',;t'
40131
40132 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
40133   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
40134   case $ac_file in
40135   - | *:- | *:-:* ) # input from stdin
40136         cat >$tmp/stdin
40137         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
40138         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
40139   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
40140         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
40141   * )   ac_file_in=$ac_file.in ;;
40142   esac
40143
40144   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
40145 echo "$as_me: creating $ac_file" >&6;}
40146
40147   # First look for the input files in the build tree, otherwise in the
40148   # src tree.
40149   ac_file_inputs=`IFS=:
40150     for f in $ac_file_in; do
40151       case $f in
40152       -) echo $tmp/stdin ;;
40153       [\\/$]*)
40154          # Absolute (can't be DOS-style, as IFS=:)
40155          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
40156 echo "$as_me: error: cannot find input file: $f" >&2;}
40157    { (exit 1); exit 1; }; }
40158          # Do quote $f, to prevent DOS paths from being IFS'd.
40159          echo "$f";;
40160       *) # Relative
40161          if test -f "$f"; then
40162            # Build tree
40163            echo "$f"
40164          elif test -f "$srcdir/$f"; then
40165            # Source tree
40166            echo "$srcdir/$f"
40167          else
40168            # /dev/null tree
40169            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
40170 echo "$as_me: error: cannot find input file: $f" >&2;}
40171    { (exit 1); exit 1; }; }
40172          fi;;
40173       esac
40174     done` || { (exit 1); exit 1; }
40175   # Remove the trailing spaces.
40176   sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
40177
40178 _ACEOF
40179
40180 # Transform confdefs.h into two sed scripts, `conftest.defines' and
40181 # `conftest.undefs', that substitutes the proper values into
40182 # config.h.in to produce config.h.  The first handles `#define'
40183 # templates, and the second `#undef' templates.
40184 # And first: Protect against being on the right side of a sed subst in
40185 # config.status.  Protect against being in an unquoted here document
40186 # in config.status.
40187 rm -f conftest.defines conftest.undefs
40188 # Using a here document instead of a string reduces the quoting nightmare.
40189 # Putting comments in sed scripts is not portable.
40190 #
40191 # `end' is used to avoid that the second main sed command (meant for
40192 # 0-ary CPP macros) applies to n-ary macro definitions.
40193 # See the Autoconf documentation for `clear'.
40194 cat >confdef2sed.sed <<\_ACEOF
40195 s/[\\&,]/\\&/g
40196 s,[\\$`],\\&,g
40197 t clear
40198 : clear
40199 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
40200 t end
40201 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
40202 : end
40203 _ACEOF
40204 # If some macros were called several times there might be several times
40205 # the same #defines, which is useless.  Nevertheless, we may not want to
40206 # sort them, since we want the *last* AC-DEFINE to be honored.
40207 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
40208 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
40209 rm -f confdef2sed.sed
40210
40211 # This sed command replaces #undef with comments.  This is necessary, for
40212 # example, in the case of _POSIX_SOURCE, which is predefined and required
40213 # on some systems where configure will not decide to define it.
40214 cat >>conftest.undefs <<\_ACEOF
40215 s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
40216 _ACEOF
40217
40218 # Break up conftest.defines because some shells have a limit on the size
40219 # of here documents, and old seds have small limits too (100 cmds).
40220 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
40221 echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
40222 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
40223 echo '  :' >>$CONFIG_STATUS
40224 rm -f conftest.tail
40225 while grep . conftest.defines >/dev/null
40226 do
40227   # Write a limited-size here document to $tmp/defines.sed.
40228   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
40229   # Speed up: don't consider the non `#define' lines.
40230   echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
40231   # Work around the forget-to-reset-the-flag bug.
40232   echo 't clr' >>$CONFIG_STATUS
40233   echo ': clr' >>$CONFIG_STATUS
40234   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
40235   echo 'CEOF
40236   sed -f $tmp/defines.sed $tmp/in >$tmp/out
40237   rm -f $tmp/in
40238   mv $tmp/out $tmp/in
40239 ' >>$CONFIG_STATUS
40240   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
40241   rm -f conftest.defines
40242   mv conftest.tail conftest.defines
40243 done
40244 rm -f conftest.defines
40245 echo '  fi # grep' >>$CONFIG_STATUS
40246 echo >>$CONFIG_STATUS
40247
40248 # Break up conftest.undefs because some shells have a limit on the size
40249 # of here documents, and old seds have small limits too (100 cmds).
40250 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
40251 rm -f conftest.tail
40252 while grep . conftest.undefs >/dev/null
40253 do
40254   # Write a limited-size here document to $tmp/undefs.sed.
40255   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
40256   # Speed up: don't consider the non `#undef'
40257   echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
40258   # Work around the forget-to-reset-the-flag bug.
40259   echo 't clr' >>$CONFIG_STATUS
40260   echo ': clr' >>$CONFIG_STATUS
40261   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
40262   echo 'CEOF
40263   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
40264   rm -f $tmp/in
40265   mv $tmp/out $tmp/in
40266 ' >>$CONFIG_STATUS
40267   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
40268   rm -f conftest.undefs
40269   mv conftest.tail conftest.undefs
40270 done
40271 rm -f conftest.undefs
40272
40273 cat >>$CONFIG_STATUS <<\_ACEOF
40274   # Let's still pretend it is `configure' which instantiates (i.e., don't
40275   # use $as_me), people would be surprised to read:
40276   #    /* config.h.  Generated by config.status.  */
40277   if test x"$ac_file" = x-; then
40278     echo "/* Generated by configure.  */" >$tmp/config.h
40279   else
40280     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
40281   fi
40282   cat $tmp/in >>$tmp/config.h
40283   rm -f $tmp/in
40284   if test x"$ac_file" != x-; then
40285     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
40286       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
40287 echo "$as_me: $ac_file is unchanged" >&6;}
40288     else
40289       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
40290 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
40291          X"$ac_file" : 'X\(//\)[^/]' \| \
40292          X"$ac_file" : 'X\(//\)$' \| \
40293          X"$ac_file" : 'X\(/\)' \| \
40294          .     : '\(.\)' 2>/dev/null ||
40295 echo X"$ac_file" |
40296     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
40297           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
40298           /^X\(\/\/\)$/{ s//\1/; q; }
40299           /^X\(\/\).*/{ s//\1/; q; }
40300           s/.*/./; q'`
40301       { if $as_mkdir_p; then
40302     mkdir -p "$ac_dir"
40303   else
40304     as_dir="$ac_dir"
40305     as_dirs=
40306     while test ! -d "$as_dir"; do
40307       as_dirs="$as_dir $as_dirs"
40308       as_dir=`(dirname "$as_dir") 2>/dev/null ||
40309 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
40310          X"$as_dir" : 'X\(//\)[^/]' \| \
40311          X"$as_dir" : 'X\(//\)$' \| \
40312          X"$as_dir" : 'X\(/\)' \| \
40313          .     : '\(.\)' 2>/dev/null ||
40314 echo X"$as_dir" |
40315     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
40316           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
40317           /^X\(\/\/\)$/{ s//\1/; q; }
40318           /^X\(\/\).*/{ s//\1/; q; }
40319           s/.*/./; q'`
40320     done
40321     test ! -n "$as_dirs" || mkdir $as_dirs
40322   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
40323 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
40324    { (exit 1); exit 1; }; }; }
40325
40326       rm -f $ac_file
40327       mv $tmp/config.h $ac_file
40328     fi
40329   else
40330     cat $tmp/config.h
40331     rm -f $tmp/config.h
40332   fi
40333 # Compute $ac_file's index in $config_headers.
40334 _am_stamp_count=1
40335 for _am_header in $config_headers :; do
40336   case $_am_header in
40337     $ac_file | $ac_file:* )
40338       break ;;
40339     * )
40340       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
40341   esac
40342 done
40343 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
40344 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
40345          X$ac_file : 'X\(//\)[^/]' \| \
40346          X$ac_file : 'X\(//\)$' \| \
40347          X$ac_file : 'X\(/\)' \| \
40348          .     : '\(.\)' 2>/dev/null ||
40349 echo X$ac_file |
40350     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
40351           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
40352           /^X\(\/\/\)$/{ s//\1/; q; }
40353           /^X\(\/\).*/{ s//\1/; q; }
40354           s/.*/./; q'`/stamp-h$_am_stamp_count
40355 done
40356 _ACEOF
40357 cat >>$CONFIG_STATUS <<\_ACEOF
40358
40359 #
40360 # CONFIG_COMMANDS section.
40361 #
40362 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
40363   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
40364   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
40365   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
40366 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
40367          X"$ac_dest" : 'X\(//\)[^/]' \| \
40368          X"$ac_dest" : 'X\(//\)$' \| \
40369          X"$ac_dest" : 'X\(/\)' \| \
40370          .     : '\(.\)' 2>/dev/null ||
40371 echo X"$ac_dest" |
40372     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
40373           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
40374           /^X\(\/\/\)$/{ s//\1/; q; }
40375           /^X\(\/\).*/{ s//\1/; q; }
40376           s/.*/./; q'`
40377   { if $as_mkdir_p; then
40378     mkdir -p "$ac_dir"
40379   else
40380     as_dir="$ac_dir"
40381     as_dirs=
40382     while test ! -d "$as_dir"; do
40383       as_dirs="$as_dir $as_dirs"
40384       as_dir=`(dirname "$as_dir") 2>/dev/null ||
40385 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
40386          X"$as_dir" : 'X\(//\)[^/]' \| \
40387          X"$as_dir" : 'X\(//\)$' \| \
40388          X"$as_dir" : 'X\(/\)' \| \
40389          .     : '\(.\)' 2>/dev/null ||
40390 echo X"$as_dir" |
40391     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
40392           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
40393           /^X\(\/\/\)$/{ s//\1/; q; }
40394           /^X\(\/\).*/{ s//\1/; q; }
40395           s/.*/./; q'`
40396     done
40397     test ! -n "$as_dirs" || mkdir $as_dirs
40398   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
40399 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
40400    { (exit 1); exit 1; }; }; }
40401
40402   ac_builddir=.
40403
40404 if test "$ac_dir" != .; then
40405   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
40406   # A "../" for each directory in $ac_dir_suffix.
40407   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
40408 else
40409   ac_dir_suffix= ac_top_builddir=
40410 fi
40411
40412 case $srcdir in
40413   .)  # No --srcdir option.  We are building in place.
40414     ac_srcdir=.
40415     if test -z "$ac_top_builddir"; then
40416        ac_top_srcdir=.
40417     else
40418        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
40419     fi ;;
40420   [\\/]* | ?:[\\/]* )  # Absolute path.
40421     ac_srcdir=$srcdir$ac_dir_suffix;
40422     ac_top_srcdir=$srcdir ;;
40423   *) # Relative path.
40424     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
40425     ac_top_srcdir=$ac_top_builddir$srcdir ;;
40426 esac
40427
40428 # Do not use `cd foo && pwd` to compute absolute paths, because
40429 # the directories may not exist.
40430 case `pwd` in
40431 .) ac_abs_builddir="$ac_dir";;
40432 *)
40433   case "$ac_dir" in
40434   .) ac_abs_builddir=`pwd`;;
40435   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
40436   *) ac_abs_builddir=`pwd`/"$ac_dir";;
40437   esac;;
40438 esac
40439 case $ac_abs_builddir in
40440 .) ac_abs_top_builddir=${ac_top_builddir}.;;
40441 *)
40442   case ${ac_top_builddir}. in
40443   .) ac_abs_top_builddir=$ac_abs_builddir;;
40444   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
40445   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
40446   esac;;
40447 esac
40448 case $ac_abs_builddir in
40449 .) ac_abs_srcdir=$ac_srcdir;;
40450 *)
40451   case $ac_srcdir in
40452   .) ac_abs_srcdir=$ac_abs_builddir;;
40453   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
40454   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
40455   esac;;
40456 esac
40457 case $ac_abs_builddir in
40458 .) ac_abs_top_srcdir=$ac_top_srcdir;;
40459 *)
40460   case $ac_top_srcdir in
40461   .) ac_abs_top_srcdir=$ac_abs_builddir;;
40462   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
40463   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
40464   esac;;
40465 esac
40466
40467
40468   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
40469 echo "$as_me: executing $ac_dest commands" >&6;}
40470   case $ac_dest in
40471     depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
40472   # Strip MF so we end up with the name of the file.
40473   mf=`echo "$mf" | sed -e 's/:.*$//'`
40474   # Check whether this is an Automake generated Makefile or not.
40475   # We used to match only the files named `Makefile.in', but
40476   # some people rename them; so instead we look at the file content.
40477   # Grep'ing the first line is not enough: some people post-process
40478   # each Makefile.in and add a new line on top of each file to say so.
40479   # So let's grep whole file.
40480   if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
40481     dirpart=`(dirname "$mf") 2>/dev/null ||
40482 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
40483          X"$mf" : 'X\(//\)[^/]' \| \
40484          X"$mf" : 'X\(//\)$' \| \
40485          X"$mf" : 'X\(/\)' \| \
40486          .     : '\(.\)' 2>/dev/null ||
40487 echo X"$mf" |
40488     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
40489           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
40490           /^X\(\/\/\)$/{ s//\1/; q; }
40491           /^X\(\/\).*/{ s//\1/; q; }
40492           s/.*/./; q'`
40493   else
40494     continue
40495   fi
40496   # Extract the definition of DEPDIR, am__include, and am__quote
40497   # from the Makefile without running `make'.
40498   DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
40499   test -z "$DEPDIR" && continue
40500   am__include=`sed -n 's/^am__include = //p' < "$mf"`
40501   test -z "am__include" && continue
40502   am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
40503   # When using ansi2knr, U may be empty or an underscore; expand it
40504   U=`sed -n 's/^U = //p' < "$mf"`
40505   # Find all dependency output files, they are included files with
40506   # $(DEPDIR) in their names.  We invoke sed twice because it is the
40507   # simplest approach to changing $(DEPDIR) to its actual value in the
40508   # expansion.
40509   for file in `sed -n "
40510     s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
40511        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
40512     # Make sure the directory exists.
40513     test -f "$dirpart/$file" && continue
40514     fdir=`(dirname "$file") 2>/dev/null ||
40515 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
40516          X"$file" : 'X\(//\)[^/]' \| \
40517          X"$file" : 'X\(//\)$' \| \
40518          X"$file" : 'X\(/\)' \| \
40519          .     : '\(.\)' 2>/dev/null ||
40520 echo X"$file" |
40521     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
40522           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
40523           /^X\(\/\/\)$/{ s//\1/; q; }
40524           /^X\(\/\).*/{ s//\1/; q; }
40525           s/.*/./; q'`
40526     { if $as_mkdir_p; then
40527     mkdir -p $dirpart/$fdir
40528   else
40529     as_dir=$dirpart/$fdir
40530     as_dirs=
40531     while test ! -d "$as_dir"; do
40532       as_dirs="$as_dir $as_dirs"
40533       as_dir=`(dirname "$as_dir") 2>/dev/null ||
40534 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
40535          X"$as_dir" : 'X\(//\)[^/]' \| \
40536          X"$as_dir" : 'X\(//\)$' \| \
40537          X"$as_dir" : 'X\(/\)' \| \
40538          .     : '\(.\)' 2>/dev/null ||
40539 echo X"$as_dir" |
40540     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
40541           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
40542           /^X\(\/\/\)$/{ s//\1/; q; }
40543           /^X\(\/\).*/{ s//\1/; q; }
40544           s/.*/./; q'`
40545     done
40546     test ! -n "$as_dirs" || mkdir $as_dirs
40547   fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
40548 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
40549    { (exit 1); exit 1; }; }; }
40550
40551     # echo "creating $dirpart/$file"
40552     echo '# dummy' > "$dirpart/$file"
40553   done
40554 done
40555  ;;
40556     default-1 )
40557     for ac_file in $CONFIG_FILES; do
40558       # Support "outfile[:infile[:infile...]]"
40559       case "$ac_file" in
40560         *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
40561       esac
40562       # PO directories have a Makefile.in generated from Makefile.in.in.
40563       case "$ac_file" in */Makefile.in)
40564         # Adjust a relative srcdir.
40565         ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
40566         ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
40567         ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
40568         # In autoconf-2.13 it is called $ac_given_srcdir.
40569         # In autoconf-2.50 it is called $srcdir.
40570         test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
40571         case "$ac_given_srcdir" in
40572           .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
40573           /*) top_srcdir="$ac_given_srcdir" ;;
40574           *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
40575         esac
40576         # Treat a directory as a PO directory if and only if it has a
40577         # POTFILES.in file. This allows packages to have multiple PO
40578         # directories under different names or in different locations.
40579         if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
40580           rm -f "$ac_dir/POTFILES"
40581           test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
40582           cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[   ]*\$/d" -e "s,.*,     $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
40583           POMAKEFILEDEPS="POTFILES.in"
40584           # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
40585           # on $ac_dir but don't depend on user-specified configuration
40586           # parameters.
40587           if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
40588             # The LINGUAS file contains the set of available languages.
40589             if test -n "$OBSOLETE_ALL_LINGUAS"; then
40590               test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
40591             fi
40592             ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
40593             # Hide the ALL_LINGUAS assigment from automake.
40594             eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
40595             POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
40596           else
40597             # The set of available languages was given in configure.in.
40598             eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
40599           fi
40600           # Compute POFILES
40601           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
40602           # Compute UPDATEPOFILES
40603           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
40604           # Compute DUMMYPOFILES
40605           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
40606           # Compute GMOFILES
40607           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
40608           case "$ac_given_srcdir" in
40609             .) srcdirpre= ;;
40610             *) srcdirpre='$(srcdir)/' ;;
40611           esac
40612           POFILES=
40613           UPDATEPOFILES=
40614           DUMMYPOFILES=
40615           GMOFILES=
40616           for lang in $ALL_LINGUAS; do
40617             POFILES="$POFILES $srcdirpre$lang.po"
40618             UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
40619             DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
40620             GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
40621           done
40622           # CATALOGS depends on both $ac_dir and the user's LINGUAS
40623           # environment variable.
40624           INST_LINGUAS=
40625           if test -n "$ALL_LINGUAS"; then
40626             for presentlang in $ALL_LINGUAS; do
40627               useit=no
40628               if test "%UNSET%" != "$LINGUAS"; then
40629                 desiredlanguages="$LINGUAS"
40630               else
40631                 desiredlanguages="$ALL_LINGUAS"
40632               fi
40633               for desiredlang in $desiredlanguages; do
40634                 # Use the presentlang catalog if desiredlang is
40635                 #   a. equal to presentlang, or
40636                 #   b. a variant of presentlang (because in this case,
40637                 #      presentlang can be used as a fallback for messages
40638                 #      which are not translated in the desiredlang catalog).
40639                 case "$desiredlang" in
40640                   "$presentlang"*) useit=yes;;
40641                 esac
40642               done
40643               if test $useit = yes; then
40644                 INST_LINGUAS="$INST_LINGUAS $presentlang"
40645               fi
40646             done
40647           fi
40648           CATALOGS=
40649           if test -n "$INST_LINGUAS"; then
40650             for lang in $INST_LINGUAS; do
40651               CATALOGS="$CATALOGS $lang.gmo"
40652             done
40653           fi
40654           test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
40655           sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
40656           for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
40657             if test -f "$f"; then
40658               case "$f" in
40659                 *.orig | *.bak | *~) ;;
40660                 *) cat "$f" >> "$ac_dir/Makefile" ;;
40661               esac
40662             fi
40663           done
40664         fi
40665         ;;
40666       esac
40667     done ;;
40668   esac
40669 done
40670 _ACEOF
40671
40672 cat >>$CONFIG_STATUS <<\_ACEOF
40673
40674 { (exit 0); exit 0; }
40675 _ACEOF
40676 chmod +x $CONFIG_STATUS
40677 ac_clean_files=$ac_clean_files_save
40678
40679
40680 # configure is writing to config.log, and then calls config.status.
40681 # config.status does its own redirection, appending to config.log.
40682 # Unfortunately, on DOS this fails, as config.log is still kept open
40683 # by configure, so config.status won't be able to write to it; its
40684 # output is simply discarded.  So we exec the FD to /dev/null,
40685 # effectively closing config.log, so it can be properly (re)opened and
40686 # appended to by config.status.  When coming back to configure, we
40687 # need to make the FD available again.
40688 if test "$no_create" != yes; then
40689   ac_cs_success=:
40690   ac_config_status_args=
40691   test "$silent" = yes &&
40692     ac_config_status_args="$ac_config_status_args --quiet"
40693   exec 5>/dev/null
40694   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
40695   exec 5>>config.log
40696   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
40697   # would make configure fail if this is the last instruction.
40698   $ac_cs_success || { (exit 1); exit 1; }
40699 fi
40700
40701
40702
40703
40704 # Report the state of this version of CVS if this is from dev.
40705